@pstdio/ui 0.24.1 → 0.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{MermaidComponent-BTgLnpLA.js → MermaidComponent-DSvPk-J8.js} +2 -2
  2. package/dist/{MermaidComponent-BTgLnpLA.js.map → MermaidComponent-DSvPk-J8.js.map} +1 -1
  3. package/dist/chat-ui.js +1325 -1414
  4. package/dist/chat-ui.js.map +1 -1
  5. package/dist/components/chat-ui/components/chat-input.d.ts +1 -1
  6. package/dist/components/chat-ui/components/chat-panel.d.ts +1 -1
  7. package/dist/components/tab-strip/window-tabs.d.ts +1 -0
  8. package/dist/data-table.js +5 -5
  9. package/dist/diff.js +2 -2
  10. package/dist/{edit-mode-data-table-BrydKuMM.js → edit-mode-data-table-2E4GSOou.js} +4 -4
  11. package/dist/{edit-mode-data-table-BrydKuMM.js.map → edit-mode-data-table-2E4GSOou.js.map} +1 -1
  12. package/dist/index.js +1232 -1153
  13. package/dist/index.js.map +1 -1
  14. package/dist/{kanban-renderer-toolbar-ebqlG13w.js → kanban-renderer-toolbar-Dcbxujbk.js} +3 -3
  15. package/dist/{kanban-renderer-toolbar-ebqlG13w.js.map → kanban-renderer-toolbar-Dcbxujbk.js.map} +1 -1
  16. package/dist/kanban-renderer.js +5 -5
  17. package/dist/{lazy-markdown-editor-Obb0M8xc.js → lazy-markdown-editor-DSlelhHV.js} +2 -2
  18. package/dist/{lazy-markdown-editor-Obb0M8xc.js.map → lazy-markdown-editor-DSlelhHV.js.map} +1 -1
  19. package/dist/{list-row-CRi3Luog.js → list-row-BDoV_iMV.js} +3 -3
  20. package/dist/list-row-BDoV_iMV.js.map +1 -0
  21. package/dist/{markdown-kuU19Oh3.js → markdown-Cli3KGu9.js} +4 -4
  22. package/dist/{markdown-kuU19Oh3.js.map → markdown-Cli3KGu9.js.map} +1 -1
  23. package/dist/{markdown-editor-Bj_QX4oN.js → markdown-editor-BHoRATej.js} +2 -2
  24. package/dist/{markdown-editor-Bj_QX4oN.js.map → markdown-editor-BHoRATej.js.map} +1 -1
  25. package/dist/{param-editor-DhoxgwGd.js → param-editor-CaRflJ3e.js} +2 -2
  26. package/dist/{param-editor-DhoxgwGd.js.map → param-editor-CaRflJ3e.js.map} +1 -1
  27. package/dist/{param-editor-field-DurcyLuw.js → param-editor-field-DVQlXbid.js} +3 -3
  28. package/dist/{param-editor-field-DurcyLuw.js.map → param-editor-field-DVQlXbid.js.map} +1 -1
  29. package/dist/{rich-message-dNYvLDd4.js → rich-message-gWYlm8Ji.js} +2 -2
  30. package/dist/{rich-message-dNYvLDd4.js.map → rich-message-gWYlm8Ji.js.map} +1 -1
  31. package/dist/rich-text.js +5 -5
  32. package/dist/theme/recipes/window-title-bar.d.ts +3 -0
  33. package/dist/{theme-Ca-KyNoi.js → theme-B5OVwYEU.js} +31 -22
  34. package/dist/theme-B5OVwYEU.js.map +1 -0
  35. package/dist/theme.js +1 -1
  36. package/dist/{tree-list-DXwHWodb.js → tree-list-CZvcg3_6.js} +2 -2
  37. package/dist/{tree-list-DXwHWodb.js.map → tree-list-CZvcg3_6.js.map} +1 -1
  38. package/package.json +2 -2
  39. package/dist/list-row-CRi3Luog.js.map +0 -1
  40. package/dist/theme-Ca-KyNoi.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { Avatar as at, Box as G, Text as H, Stack as Q, HStack as ae, chakra as Pe, Textarea as sn, Spacer as Ht, IconButton as Fe, Icon as ce, Timeline as Ie, Dialog as Z, CloseButton as Ft, Input as Mt, InputGroup as Vt, Kbd as an, Collapsible as Xe, Flex as de, Badge as Te, Button as ue, Skeleton as mt, Portal as Je, Breadcrumb as pe, AbsoluteCenter as cn, Center as dn, Popover as Ke, Grid as pt, defineSlotRecipe as un, createSlotRecipeContext as ut, createToaster as fn, Toaster as hn, Toast as Ne, Spinner as Gt, Editable as We, Menu as ge } from "@chakra-ui/react";
2
- import { ChakraProvider as Ki } from "@chakra-ui/react";
3
- import { jsx as s, jsxs as v, Fragment as Me } from "react/jsx-runtime";
4
- import { c as k } from "react/compiler-runtime";
5
- import * as gt from "react";
6
- import { Children as mn, useState as fe, useEffect as me, useRef as He, Fragment as bt, forwardRef as jt, Component as pn, createContext as gn, useContext as bn } from "react";
7
- import { Paperclip as Sn, ArrowUp as xn, Check as et, ArrowRight as vn, ArrowLeft as yn, Option as St, Command as Ye, ChevronRight as Cn, Bell as wn, X as Ut, Search as Qt, SquareArrowOutUpRight as In, Minus as Tn, FileText as Pn, FolderOpen as An, Folder as qt, Home as Rn, ChevronUp as kn, ChevronDown as Xt, GripVertical as En, Trash2 as $n, Plus as Dn } from "lucide-react";
1
+ import { Avatar as at, Box as G, Text as F, Stack as Q, HStack as ae, chakra as Pe, Textarea as pn, Spacer as Ft, IconButton as Fe, Icon as ce, Timeline as Ie, Dialog as Z, CloseButton as Mt, Input as Vt, InputGroup as Gt, Kbd as gn, Collapsible as Ke, Flex as de, Badge as Te, Button as ue, Skeleton as pt, Portal as Je, Breadcrumb as pe, AbsoluteCenter as bn, Center as Sn, Popover as Xe, Grid as gt, defineSlotRecipe as xn, createSlotRecipeContext as ft, createToaster as vn, Toaster as yn, Toast as Ne, Spinner as jt, Editable as We, Menu as ge } from "@chakra-ui/react";
2
+ import { ChakraProvider as ns } from "@chakra-ui/react";
3
+ import { jsx as s, jsxs as y, Fragment as Me } from "react/jsx-runtime";
4
+ import { c as O } from "react/compiler-runtime";
5
+ import * as bt from "react";
6
+ import { Children as Cn, useState as fe, useEffect as me, useRef as He, Fragment as St, forwardRef as Ut, Component as wn, createContext as In, useContext as Tn } from "react";
7
+ import { Paperclip as Pn, ArrowUp as An, Check as et, ArrowRight as Rn, ArrowLeft as kn, Option as xt, Command as Ye, ChevronRight as $n, Bell as En, X as Qt, Search as qt, SquareArrowOutUpRight as Dn, Minus as Ln, FileText as On, FolderOpen as _n, Folder as Kt, Home as zn, ChevronUp as Nn, ChevronDown as Xt, GripVertical as Bn, Trash2 as Wn, Plus as Hn } from "lucide-react";
8
8
  import { T as Ue, S as tt, c as Ve } from "./browser-storage-DPtOQJx0.js";
9
- import { useVirtualizer as Ln } from "@tanstack/react-virtual";
10
- import { L as Qe, H as On, R as Kt } from "./list-row-CRi3Luog.js";
11
- import { c as Zi, b as Ji } from "./list-row-CRi3Luog.js";
12
- import { T as _n } from "./tree-list-DXwHWodb.js";
13
- import { R as ts, a as ns } from "./tree-list-DXwHWodb.js";
14
- import { A as ft } from "./radio-cLMEBBZk.js";
15
- import { R as rs, a as ls } from "./radio-cLMEBBZk.js";
16
- import { g as zn, o as Nn, b as Bn } from "./param-editor-field-DurcyLuw.js";
17
- import { c as ss, d as as, e as cs, A as ds, B as us, C as fs, f as hs, D as ms, F as ps, H as gs, M as bs, N as Ss, h as xs, P as vs, j as ys, k as Cs, j as ws, l as Is, m as Ts, R as Ps, n as As, p as Rs, S as ks, q as Es, T as $s, V as Ds, r as Ls, s as Os, a as _s } from "./param-editor-field-DurcyLuw.js";
18
- import { S as Ns, W as Bs, h as Ws, r as Hs, a as Fs, s as Ms } from "./workspace-badge-BR_GgsAG.js";
19
- import { P as Gs, a as js, b as Us } from "./param-editor-DhoxgwGd.js";
20
- import { g as Wn } from "./lazy-markdown-editor-Obb0M8xc.js";
21
- import { C as qs, R as Xs, S as Ks, i as Ys } from "./lazy-markdown-editor-Obb0M8xc.js";
22
- import { E as Js } from "./empty-state-Bo4HVrgr.js";
9
+ import { useVirtualizer as Fn } from "@tanstack/react-virtual";
10
+ import { L as Qe, H as Mn, R as Yt } from "./list-row-BDoV_iMV.js";
11
+ import { c as rs, b as ls } from "./list-row-BDoV_iMV.js";
12
+ import { T as Vn } from "./tree-list-CZvcg3_6.js";
13
+ import { R as ss, a as as } from "./tree-list-CZvcg3_6.js";
14
+ import { A as ht } from "./radio-cLMEBBZk.js";
15
+ import { R as ds, a as us } from "./radio-cLMEBBZk.js";
16
+ import { g as Gn, o as jn, b as Un } from "./param-editor-field-DVQlXbid.js";
17
+ import { c as hs, d as ms, e as ps, A as gs, B as bs, C as Ss, f as xs, D as vs, F as ys, H as Cs, M as ws, N as Is, h as Ts, P as Ps, j as As, k as Rs, j as ks, l as $s, m as Es, R as Ds, n as Ls, p as Os, S as _s, q as zs, T as Ns, V as Bs, r as Ws, s as Hs, a as Fs } from "./param-editor-field-DVQlXbid.js";
18
+ import { S as Vs, W as Gs, h as js, r as Us, a as Qs, s as qs } from "./workspace-badge-BR_GgsAG.js";
19
+ import { P as Xs, a as Ys, b as Zs } from "./param-editor-CaRflJ3e.js";
20
+ import { g as Qn } from "./lazy-markdown-editor-DSlelhHV.js";
21
+ import { C as ea, R as ta, S as na, i as oa } from "./lazy-markdown-editor-DSlelhHV.js";
22
+ import { E as la } from "./empty-state-Bo4HVrgr.js";
23
23
  import { useStore as nt } from "zustand";
24
24
  import { persist as ot, createJSONStorage as rt } from "zustand/middleware";
25
25
  import { createStore as lt } from "zustand/vanilla";
26
- import { w as Hn, b as Fn } from "./theme-Ca-KyNoi.js";
27
- import { c as ta, a as na, t as oa } from "./theme-Ca-KyNoi.js";
28
- import { useSensors as Mn, useSensor as Vn, PointerSensor as Gn, DndContext as jn, closestCenter as Un } from "@dnd-kit/core";
29
- import { useSortable as Qn, SortableContext as qn, verticalListSortingStrategy as Xn, arrayMove as Kn } from "@dnd-kit/sortable";
30
- import { CSS as Yn } from "@dnd-kit/utilities";
26
+ import { useSensors as Zt, useSensor as ct, PointerSensor as Jt, KeyboardSensor as qn, DndContext as en, closestCenter as tn } from "@dnd-kit/core";
27
+ import { useSortable as nn, sortableKeyboardCoordinates as Kn, SortableContext as on, horizontalListSortingStrategy as Xn, verticalListSortingStrategy as Yn, arrayMove as Zn } from "@dnd-kit/sortable";
28
+ import { CSS as rn } from "@dnd-kit/utilities";
29
+ import { w as Jn, b as eo } from "./theme-B5OVwYEU.js";
30
+ import { c as sa, a as aa, t as ca } from "./theme-B5OVwYEU.js";
31
31
  import "@fontsource/inter/400.css";
32
32
  import "@fontsource/inter/500.css";
33
33
  import "@fontsource/playfair-display/400.css";
@@ -36,17 +36,17 @@ import "@fontsource/playfair-display/700.css";
36
36
  import "@fontsource/onest/400.css";
37
37
  import "@fontsource/onest/500.css";
38
38
  import "@fontsource/onest/700.css";
39
- import { T as la, a as ia, d as sa, b as aa, c as ca, e as da, g as ua, i as fa, u as ha } from "./theme-preference-Bpobguh4.js";
39
+ import { T as ua, a as fa, d as ha, b as ma, c as pa, e as ga, g as ba, i as Sa, u as xa } from "./theme-preference-Bpobguh4.js";
40
40
  const it = (o) => {
41
- const e = k(14), {
41
+ const e = O(14), {
42
42
  actor: t,
43
43
  icon: n,
44
44
  color: r,
45
45
  background: i
46
46
  } = o, l = r === void 0 ? "fg.muted" : r, c = i === void 0 ? "bg.muted" : i;
47
47
  if (n) {
48
- let p;
49
- return e[0] !== c || e[1] !== l || e[2] !== n ? (p = /* @__PURE__ */ s(G, { boxSize: "18px", borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: l, background: c, children: n }), e[0] = c, e[1] = l, e[2] = n, e[3] = p) : p = e[3], p;
48
+ let m;
49
+ return e[0] !== c || e[1] !== l || e[2] !== n ? (m = /* @__PURE__ */ s(G, { boxSize: "18px", borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: l, background: c, children: n }), e[0] = c, e[1] = l, e[2] = n, e[3] = m) : m = e[3], m;
50
50
  }
51
51
  const a = t?.avatarSrc, d = t?.avatarAlt ?? t?.name;
52
52
  let u;
@@ -54,17 +54,17 @@ const it = (o) => {
54
54
  const f = t?.name;
55
55
  let h;
56
56
  e[7] !== c || e[8] !== l || e[9] !== f ? (h = /* @__PURE__ */ s(at.Fallback, { name: f, background: c, color: l }), e[7] = c, e[8] = l, e[9] = f, e[10] = h) : h = e[10];
57
- let m;
58
- return e[11] !== u || e[12] !== h ? (m = /* @__PURE__ */ v(at.Root, { size: "2xs", flexShrink: 0, children: [
57
+ let p;
58
+ return e[11] !== u || e[12] !== h ? (p = /* @__PURE__ */ y(at.Root, { size: "2xs", flexShrink: 0, children: [
59
59
  u,
60
60
  h
61
- ] }), e[11] = u, e[12] = h, e[13] = m) : m = e[13], m;
62
- }, Zn = () => {
63
- const o = k(1);
61
+ ] }), e[11] = u, e[12] = h, e[13] = p) : p = e[13], p;
62
+ }, to = () => {
63
+ const o = O(1);
64
64
  let e;
65
65
  return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(G, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
66
- }, Yt = (o) => {
67
- const e = k(13), {
66
+ }, ln = (o) => {
67
+ const e = O(13), {
68
68
  actor: t,
69
69
  timestamp: n,
70
70
  actions: r
@@ -72,23 +72,23 @@ const it = (o) => {
72
72
  let i;
73
73
  e[0] !== t ? (i = /* @__PURE__ */ s(it, { actor: t }), e[0] = t, e[1] = i) : i = e[1];
74
74
  let l;
75
- e[2] !== t.name ? (l = /* @__PURE__ */ s(H, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[2] = t.name, e[3] = l) : l = e[3];
75
+ e[2] !== t.name ? (l = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[2] = t.name, e[3] = l) : l = e[3];
76
76
  let c;
77
- e[4] !== n ? (c = n ? /* @__PURE__ */ v(Me, { children: [
78
- /* @__PURE__ */ s(Zn, {}),
79
- /* @__PURE__ */ s(H, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: n })
77
+ e[4] !== n ? (c = n ? /* @__PURE__ */ y(Me, { children: [
78
+ /* @__PURE__ */ s(to, {}),
79
+ /* @__PURE__ */ s(F, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: n })
80
80
  ] }) : null, e[4] = n, e[5] = c) : c = e[5];
81
81
  let a;
82
82
  e[6] !== r ? (a = /* @__PURE__ */ s(G, { marginLeft: "auto", flexShrink: 0, children: r }), e[6] = r, e[7] = a) : a = e[7];
83
83
  let d;
84
- return e[8] !== i || e[9] !== l || e[10] !== c || e[11] !== a ? (d = /* @__PURE__ */ v(ae, { gap: "xs", alignItems: "center", minW: "0", children: [
84
+ return e[8] !== i || e[9] !== l || e[10] !== c || e[11] !== a ? (d = /* @__PURE__ */ y(ae, { gap: "xs", alignItems: "center", minW: "0", children: [
85
85
  i,
86
86
  l,
87
87
  c,
88
88
  a
89
89
  ] }), e[8] = i, e[9] = l, e[10] = c, e[11] = a, e[12] = d) : d = e[12], d;
90
- }, Jn = (o) => {
91
- const e = k(18);
90
+ }, no = (o) => {
91
+ const e = O(18);
92
92
  let t, n, r, i, l;
93
93
  e[0] !== o ? ({
94
94
  actor: n,
@@ -98,18 +98,18 @@ const it = (o) => {
98
98
  ...i
99
99
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5]);
100
100
  let c;
101
- e[6] !== t || e[7] !== n || e[8] !== l ? (c = /* @__PURE__ */ s(Yt, { actor: n, timestamp: l, actions: t }), e[6] = t, e[7] = n, e[8] = l, e[9] = c) : c = e[9];
101
+ e[6] !== t || e[7] !== n || e[8] !== l ? (c = /* @__PURE__ */ s(ln, { actor: n, timestamp: l, actions: t }), e[6] = t, e[7] = n, e[8] = l, e[9] = c) : c = e[9];
102
102
  let a;
103
- e[10] !== r ? (a = /* @__PURE__ */ s(G, { paddingLeft: "32px", children: /* @__PURE__ */ s(H, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", children: r }) }), e[10] = r, e[11] = a) : a = e[11];
103
+ e[10] !== r ? (a = /* @__PURE__ */ s(G, { paddingLeft: "32px", children: /* @__PURE__ */ s(F, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", children: r }) }), e[10] = r, e[11] = a) : a = e[11];
104
104
  let d;
105
- e[12] !== c || e[13] !== a ? (d = /* @__PURE__ */ v(Q, { gap: "xs", children: [
105
+ e[12] !== c || e[13] !== a ? (d = /* @__PURE__ */ y(Q, { gap: "xs", children: [
106
106
  c,
107
107
  a
108
108
  ] }), e[12] = c, e[13] = a, e[14] = d) : d = e[14];
109
109
  let u;
110
110
  return e[15] !== i || e[16] !== d ? (u = /* @__PURE__ */ s(G, { paddingX: "md", paddingY: "sm", ...i, children: d }), e[15] = i, e[16] = d, e[17] = u) : u = e[17], u;
111
- }, eo = (o) => {
112
- const e = k(27);
111
+ }, oo = (o) => {
112
+ const e = O(27);
113
113
  let t, n, r, i, l, c, a;
114
114
  e[0] !== o ? ({
115
115
  actor: n,
@@ -120,27 +120,27 @@ const it = (o) => {
120
120
  children: r,
121
121
  ...c
122
122
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c, e[7] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6], a = e[7]);
123
- const d = mn.count(l) > 0;
123
+ const d = Cn.count(l) > 0;
124
124
  let u;
125
- e[8] !== t || e[9] !== n || e[10] !== a ? (u = /* @__PURE__ */ s(Yt, { actor: n, timestamp: a, actions: t }), e[8] = t, e[9] = n, e[10] = a, e[11] = u) : u = e[11];
125
+ e[8] !== t || e[9] !== n || e[10] !== a ? (u = /* @__PURE__ */ s(ln, { actor: n, timestamp: a, actions: t }), e[8] = t, e[9] = n, e[10] = a, e[11] = u) : u = e[11];
126
126
  let f;
127
- e[12] !== r ? (f = /* @__PURE__ */ s(H, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", whiteSpace: "pre-wrap", children: r }), e[12] = r, e[13] = f) : f = e[13];
127
+ e[12] !== r ? (f = /* @__PURE__ */ s(F, { 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] !== u || e[15] !== f ? (h = /* @__PURE__ */ v(Q, { gap: "sm", padding: "md", children: [
129
+ e[14] !== u || e[15] !== f ? (h = /* @__PURE__ */ y(Q, { gap: "sm", padding: "md", children: [
130
130
  u,
131
131
  f
132
132
  ] }), e[14] = u, e[15] = f, e[16] = h) : h = e[16];
133
- let m;
134
- e[17] !== d || e[18] !== l ? (m = d ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: l }) : null, e[17] = d, e[18] = l, e[19] = m) : m = e[19];
135
133
  let p;
136
- e[20] !== i ? (p = i ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: i }) : null, e[20] = i, e[21] = p) : p = e[21];
134
+ e[17] !== d || e[18] !== l ? (p = d ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: l }) : null, e[17] = d, e[18] = l, e[19] = p) : p = e[19];
135
+ let m;
136
+ e[20] !== i ? (m = i ? /* @__PURE__ */ s(G, { 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] !== c || e[23] !== h || e[24] !== m || e[25] !== p ? (g = /* @__PURE__ */ v(G, { as: "article", width: "full", borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", background: "bg", overflow: "hidden", ...c, children: [
138
+ return e[22] !== c || e[23] !== h || e[24] !== p || e[25] !== m ? (g = /* @__PURE__ */ y(G, { as: "article", width: "full", borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", background: "bg", overflow: "hidden", ...c, children: [
139
139
  h,
140
- m,
141
- p
142
- ] }), e[22] = c, e[23] = h, e[24] = m, e[25] = p, e[26] = g) : g = e[26], g;
143
- }, to = (o) => {
140
+ p,
141
+ m
142
+ ] }), e[22] = c, e[23] = h, e[24] = p, e[25] = m, e[26] = g) : g = e[26], g;
143
+ }, ro = (o) => {
144
144
  const {
145
145
  actor: e,
146
146
  value: t,
@@ -154,36 +154,36 @@ const it = (o) => {
154
154
  onAttach: u,
155
155
  onChange: f,
156
156
  onSubmit: h,
157
- ...m
158
- } = o, [p, g] = fe(n), S = t ?? p, b = i === "inline", x = S.trim().length > 0, w = (y) => {
159
- t === void 0 && g(y), f?.(y);
160
- }, I = (y) => {
161
- y.preventDefault(), x && (h?.(S.trim()), t === void 0 && g(""));
157
+ ...p
158
+ } = o, [m, g] = fe(n), x = t ?? m, b = i === "inline", k = x.trim().length > 0, A = (S) => {
159
+ t === void 0 && g(S), f?.(S);
160
+ }, R = (S) => {
161
+ S.preventDefault(), k && (h?.(x.trim()), t === void 0 && g(""));
162
162
  };
163
163
  return /* @__PURE__ */ s(Pe.form, { width: "full", background: "bg", borderWidth: b ? "0" : "1px", borderColor: "border", borderRadius: b ? "0" : "sm", transition: "border-color 0.12s ease", _hover: b ? void 0 : {
164
164
  borderColor: "border"
165
165
  }, _focusWithin: b ? void 0 : {
166
166
  borderColor: "border.accent"
167
- }, onSubmit: I, ...m, children: /* @__PURE__ */ v(ae, { alignItems: "flex-start", gap: "xs", padding: b ? "sm" : "md", children: [
167
+ }, onSubmit: R, ...p, children: /* @__PURE__ */ y(ae, { alignItems: "flex-start", gap: "xs", padding: b ? "sm" : "md", children: [
168
168
  e ? /* @__PURE__ */ s(it, { actor: e }) : null,
169
- /* @__PURE__ */ v(G, { flex: "1", minW: "0", children: [
170
- /* @__PURE__ */ s(sn, { value: S, rows: l, resize: "none", border: "0", padding: "0", minH: b ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: r, _placeholder: {
169
+ /* @__PURE__ */ y(G, { flex: "1", minW: "0", children: [
170
+ /* @__PURE__ */ s(pn, { value: x, rows: l, resize: "none", border: "0", padding: "0", minH: b ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: r, _placeholder: {
171
171
  color: "fg.subtle"
172
- }, onChange: (y) => w(y.currentTarget.value) }),
173
- /* @__PURE__ */ v(ae, { gap: "2xs", marginTop: b ? "0" : "sm", children: [
172
+ }, onChange: (S) => A(S.currentTarget.value) }),
173
+ /* @__PURE__ */ y(ae, { gap: "2xs", marginTop: b ? "0" : "sm", children: [
174
174
  d,
175
- /* @__PURE__ */ s(Ht, {}),
176
- /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick: u, children: /* @__PURE__ */ s(ce, { as: Sn, boxSize: "14px" }) }) }),
177
- /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !x, children: /* @__PURE__ */ s(ce, { as: xn, boxSize: "14px" }) }) })
175
+ /* @__PURE__ */ s(Ft, {}),
176
+ /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick: u, children: /* @__PURE__ */ s(ce, { as: Pn, boxSize: "14px" }) }) }),
177
+ /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !k, children: /* @__PURE__ */ s(ce, { as: An, boxSize: "14px" }) }) })
178
178
  ] })
179
179
  ] })
180
180
  ] }) });
181
- }, no = () => {
182
- const o = k(1);
181
+ }, lo = () => {
182
+ const o = O(1);
183
183
  let e;
184
184
  return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(G, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
185
- }, oo = (o) => {
186
- const e = k(28);
185
+ }, io = (o) => {
186
+ const e = O(28);
187
187
  let t, n, r, i, l, c, a;
188
188
  e[0] !== o ? ({
189
189
  actor: t,
@@ -198,32 +198,32 @@ const it = (o) => {
198
198
  let f;
199
199
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(Ie.Separator, { borderColor: "border" }), e[8] = f) : f = e[8];
200
200
  let h;
201
- e[9] !== t || e[10] !== r || e[11] !== u || e[12] !== d ? (h = /* @__PURE__ */ v(Ie.Connector, { children: [
201
+ e[9] !== t || e[10] !== r || e[11] !== u || e[12] !== d ? (h = /* @__PURE__ */ y(Ie.Connector, { children: [
202
202
  f,
203
203
  /* @__PURE__ */ s(Ie.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ s(it, { actor: t, icon: r, color: d, background: u }) })
204
204
  ] }), e[9] = t, e[10] = r, e[11] = u, e[12] = d, e[13] = h) : h = e[13];
205
- let m;
206
- e[14] !== t ? (m = t ? /* @__PURE__ */ s(H, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = m) : m = e[15];
207
205
  let p;
208
- e[16] !== n ? (p = /* @__PURE__ */ s(G, { as: "span", display: "inline-flex", alignItems: "center", gap: "2xs", minW: "0", flexWrap: "wrap", children: n }), e[16] = n, e[17] = p) : p = e[17];
206
+ e[14] !== t ? (p = t ? /* @__PURE__ */ s(F, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = p) : p = e[15];
207
+ let m;
208
+ e[16] !== n ? (m = /* @__PURE__ */ s(G, { 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
- e[18] !== a ? (g = a ? /* @__PURE__ */ v(Me, { children: [
211
- /* @__PURE__ */ s(no, {}),
212
- /* @__PURE__ */ s(H, { as: "span", color: "fg.muted", flexShrink: 0, children: a })
210
+ e[18] !== a ? (g = a ? /* @__PURE__ */ y(Me, { children: [
211
+ /* @__PURE__ */ s(lo, {}),
212
+ /* @__PURE__ */ s(F, { as: "span", color: "fg.muted", flexShrink: 0, children: a })
213
213
  ] }) : null, e[18] = a, e[19] = g) : g = e[19];
214
- let S;
215
- e[20] !== m || e[21] !== p || e[22] !== g ? (S = /* @__PURE__ */ s(Ie.Content, { gap: "0", minW: "0", children: /* @__PURE__ */ v(Ie.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
216
- m,
214
+ let x;
215
+ e[20] !== p || e[21] !== m || e[22] !== g ? (x = /* @__PURE__ */ s(Ie.Content, { gap: "0", minW: "0", children: /* @__PURE__ */ y(Ie.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
217
216
  p,
217
+ m,
218
218
  g
219
- ] }) }), e[20] = m, e[21] = p, e[22] = g, e[23] = S) : S = e[23];
219
+ ] }) }), e[20] = p, e[21] = m, e[22] = g, e[23] = x) : x = e[23];
220
220
  let b;
221
- return e[24] !== i || e[25] !== h || e[26] !== S ? (b = /* @__PURE__ */ v(Ie.Item, { gap: "xs", minH: "24px", paddingX: "md", ...i, children: [
221
+ return e[24] !== i || e[25] !== h || e[26] !== x ? (b = /* @__PURE__ */ y(Ie.Item, { gap: "xs", minH: "24px", paddingX: "md", ...i, children: [
222
222
  h,
223
- S
224
- ] }), e[24] = i, e[25] = h, e[26] = S, e[27] = b) : b = e[27], b;
225
- }, ro = (o) => {
226
- const e = k(6);
223
+ x
224
+ ] }), e[24] = i, e[25] = h, e[26] = x, e[27] = b) : b = e[27], b;
225
+ }, so = (o) => {
226
+ const e = O(6);
227
227
  let t, n;
228
228
  e[0] !== o ? ({
229
229
  children: t,
@@ -231,8 +231,8 @@ const it = (o) => {
231
231
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
232
232
  let r;
233
233
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { width: "full", gap: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
234
- }, lo = (o) => {
235
- const e = k(12);
234
+ }, ao = (o) => {
235
+ const e = O(12);
236
236
  let t, n, r;
237
237
  e[0] !== o ? ({
238
238
  title: r,
@@ -241,16 +241,16 @@ const it = (o) => {
241
241
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r) : (t = e[1], n = e[2], r = e[3]);
242
242
  const i = r === void 0 ? "Activity" : r;
243
243
  let l;
244
- e[4] !== i ? (l = /* @__PURE__ */ s(H, { textStyle: "label/M/medium", color: "fg", children: i }), e[4] = i, e[5] = l) : l = e[5];
244
+ e[4] !== i ? (l = /* @__PURE__ */ s(F, { textStyle: "label/M/medium", color: "fg", children: i }), e[4] = i, e[5] = l) : l = e[5];
245
245
  let c;
246
246
  e[6] !== t ? (c = t ? /* @__PURE__ */ s(ae, { gap: "xs", children: t }) : null, e[6] = t, e[7] = c) : c = e[7];
247
247
  let a;
248
- return e[8] !== n || e[9] !== l || e[10] !== c ? (a = /* @__PURE__ */ v(ae, { alignItems: "center", justifyContent: "space-between", gap: "md", ...n, children: [
248
+ return e[8] !== n || e[9] !== l || e[10] !== c ? (a = /* @__PURE__ */ y(ae, { alignItems: "center", justifyContent: "space-between", gap: "md", ...n, children: [
249
249
  l,
250
250
  c
251
251
  ] }), e[8] = n, e[9] = l, e[10] = c, e[11] = a) : a = e[11], a;
252
- }, io = (o) => {
253
- const e = k(6);
252
+ }, co = (o) => {
253
+ const e = O(6);
254
254
  let t, n;
255
255
  e[0] !== o ? ({
256
256
  children: t,
@@ -258,8 +258,8 @@ const it = (o) => {
258
258
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
259
259
  let r;
260
260
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { gap: "md", width: "full", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
261
- }, so = (o) => {
262
- const e = k(7);
261
+ }, uo = (o) => {
262
+ const e = O(7);
263
263
  let t, n;
264
264
  e[0] !== o ? ({
265
265
  children: t,
@@ -271,23 +271,23 @@ const it = (o) => {
271
271
  }, e[3] = r) : r = e[3];
272
272
  let i;
273
273
  return e[4] !== t || e[5] !== n ? (i = /* @__PURE__ */ s(Ie.Root, { size: "sm", variant: "plain", width: "full", css: r, ...n, children: t }), e[4] = t, e[5] = n, e[6] = i) : i = e[6], i;
274
- }, fi = {
275
- Root: ro,
276
- Header: lo,
277
- Feed: io,
278
- Timeline: so,
279
- Event: oo,
280
- Comment: eo,
281
- Reply: Jn,
282
- Composer: to,
274
+ }, Si = {
275
+ Root: so,
276
+ Header: ao,
277
+ Feed: co,
278
+ Timeline: uo,
279
+ Event: io,
280
+ Comment: oo,
281
+ Reply: no,
282
+ Composer: ro,
283
283
  Avatar: it
284
- }, hi = 48, ao = (o) => {
284
+ }, xi = 48, fo = (o) => {
285
285
  const e = typeof o.label == "string" ? o.label : "", t = typeof o.secondaryLabel == "string" ? o.secondaryLabel : "";
286
286
  return `${e} ${o.searchText ?? ""} ${t}`;
287
- }, Zt = (o, e) => o.trimStart().startsWith(e), co = (o, e = [], t) => e.find((r) => r.inputPrefix && Zt(o, r.inputPrefix))?.id ?? t ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, uo = (o, e = [], t) => {
288
- const n = e.find((r) => r.id === t && r.inputPrefix && Zt(o, r.inputPrefix));
287
+ }, sn = (o, e) => o.trimStart().startsWith(e), ho = (o, e = [], t) => e.find((r) => r.inputPrefix && sn(o, r.inputPrefix))?.id ?? t ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, mo = (o, e = [], t) => {
288
+ const n = e.find((r) => r.id === t && r.inputPrefix && sn(o, r.inputPrefix));
289
289
  return n?.inputPrefix ? o.trimStart().slice(n.inputPrefix.length).trim() : o.trim();
290
- }, fo = (o, e) => {
290
+ }, po = (o, e) => {
291
291
  const t = {};
292
292
  return o.filter((n) => {
293
293
  const r = n.assetType;
@@ -295,20 +295,20 @@ const it = (o) => {
295
295
  const i = t[r] ?? 0;
296
296
  return i >= e ? !1 : (t[r] = i + 1, !0);
297
297
  });
298
- }, ho = (o, e) => {
299
- const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((r) => e.mode && r.mode !== e.mode ? !1 : t ? ao(r).toLowerCase().includes(t) : !0);
300
- return t || e.defaultAssetLimit === void 0 ? n : fo(n, e.defaultAssetLimit);
301
- }, mo = 24, po = 40, go = 384, bo = (o) => ({
298
+ }, go = (o, e) => {
299
+ const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((r) => e.mode && r.mode !== e.mode ? !1 : t ? fo(r).toLowerCase().includes(t) : !0);
300
+ return t || e.defaultAssetLimit === void 0 ? n : po(n, e.defaultAssetLimit);
301
+ }, bo = 24, So = 40, xo = 384, vo = (o) => ({
302
302
  id: o.id,
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__ */ v(ae, { gap: "2", children: [
306
+ endContent: o.endContent ?? (o.shortcut || o.isSelected ? /* @__PURE__ */ y(ae, { gap: "2", children: [
307
307
  o.shortcut,
308
308
  o.isSelected ? /* @__PURE__ */ s(ce, { as: et, boxSize: "14px", color: "fg.muted" }) : null
309
309
  ] }) : void 0),
310
310
  onActivate: o.onActivate
311
- }), So = (o) => {
311
+ }), yo = (o) => {
312
312
  const e = [];
313
313
  return o.forEach((t, n) => {
314
314
  const r = o[n - 1];
@@ -323,21 +323,21 @@ const it = (o) => {
323
323
  entryIndex: n
324
324
  });
325
325
  }), e;
326
- }, xo = (o, e) => o.findIndex((t) => t.type === "entry" && t.entryIndex === e), vo = (o) => {
326
+ }, Co = (o, e) => o.findIndex((t) => t.type === "entry" && t.entryIndex === e), wo = (o) => {
327
327
  const {
328
328
  entries: e,
329
329
  activeIndex: t,
330
330
  emptyLabel: n,
331
331
  onHover: r,
332
332
  scrollRef: i
333
- } = o, l = So(e), c = xo(l, t), a = Ln({
333
+ } = o, l = yo(e), c = Co(l, t), a = Fn({
334
334
  count: l.length,
335
335
  getScrollElement: () => i.current,
336
- estimateSize: (d) => l[d]?.type === "group" ? mo : po,
336
+ estimateSize: (d) => l[d]?.type === "group" ? bo : So,
337
337
  getItemKey: (d) => l[d]?.id ?? d,
338
338
  initialRect: {
339
339
  width: 0,
340
- height: go
340
+ height: xo
341
341
  },
342
342
  overscan: 6
343
343
  });
@@ -346,16 +346,16 @@ const it = (o) => {
346
346
  align: "auto",
347
347
  behavior: "auto"
348
348
  });
349
- }, [c, a]), e.length === 0 ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: n }) : /* @__PURE__ */ s(G, { role: "listbox", position: "relative", width: "100%", style: {
349
+ }, [c, a]), e.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: n }) : /* @__PURE__ */ s(G, { role: "listbox", position: "relative", width: "100%", style: {
350
350
  height: a.getTotalSize()
351
351
  }, children: a.getVirtualItems().map((d) => {
352
352
  const u = l[d.index];
353
353
  return u ? /* @__PURE__ */ s(G, { "data-index": d.index, ref: a.measureElement, position: "absolute", left: "0", width: "100%", style: {
354
354
  top: d.start
355
- }, children: u.type === "group" ? /* @__PURE__ */ s(H, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: u.label }) : /* @__PURE__ */ s(Qe, { variant: "full-width", ...bo(u.entry), isSelected: u.entryIndex === t, tabIndex: -1, onPointerMove: () => r(u.entryIndex) }) }, d.key) : null;
355
+ }, children: u.type === "group" ? /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: u.label }) : /* @__PURE__ */ s(Qe, { variant: "full-width", ...vo(u.entry), isSelected: u.entryIndex === t, tabIndex: -1, onPointerMove: () => r(u.entryIndex) }) }, d.key) : null;
356
356
  }) });
357
- }, xt = (o) => o != null, yo = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", Jt = (o) => {
358
- const e = k(49), {
357
+ }, vt = (o) => o != null, Io = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", an = (o) => {
358
+ const e = O(49), {
359
359
  children: t,
360
360
  searchValue: n,
361
361
  searchPlaceholder: r,
@@ -367,55 +367,55 @@ const it = (o) => {
367
367
  closeButtonLabel: u,
368
368
  bodyBefore: f,
369
369
  footerStart: h,
370
- footerEnd: m,
371
- scrollAreaProps: p,
370
+ footerEnd: p,
371
+ scrollAreaProps: m,
372
372
  onSearchChange: g,
373
- onSearchKeyDown: S
374
- } = o, b = i === void 0 ? r : i, x = d === void 0 ? !1 : d, w = u === void 0 ? "Close" : u;
375
- let I;
376
- if (e[0] !== f || e[1] !== t || e[2] !== w || e[3] !== m || e[4] !== h || e[5] !== g || e[6] !== S || e[7] !== p || e[8] !== b || e[9] !== a || e[10] !== l || e[11] !== c || e[12] !== r || e[13] !== n || e[14] !== x) {
377
- const y = xt(h), L = xt(m);
378
- let R;
379
- e[16] !== p ? (R = p ?? {}, e[16] = p, e[17] = R) : R = e[17];
380
- let E, P, C;
381
- e[18] !== R ? ({
382
- maxH: P,
373
+ onSearchKeyDown: x
374
+ } = o, b = i === void 0 ? r : i, k = d === void 0 ? !1 : d, A = u === void 0 ? "Close" : u;
375
+ let R;
376
+ if (e[0] !== f || e[1] !== t || e[2] !== A || e[3] !== p || e[4] !== h || e[5] !== g || e[6] !== x || e[7] !== m || e[8] !== b || e[9] !== a || e[10] !== l || e[11] !== c || e[12] !== r || e[13] !== n || e[14] !== k) {
377
+ const S = vt(h), $ = vt(p);
378
+ let I;
379
+ e[16] !== m ? (I = m ?? {}, e[16] = m, e[17] = I) : I = e[17];
380
+ let P, w, C;
381
+ e[18] !== I ? ({
382
+ maxH: w,
383
383
  showHorizontalScrollbar: C,
384
- ...E
385
- } = R, e[18] = R, e[19] = E, e[20] = P, e[21] = C) : (E = e[19], P = e[20], C = e[21]);
386
- const O = P === void 0 ? "24rem" : P, z = C === void 0 ? !1 : C;
387
- let A;
388
- e[22] !== g ? (A = (B) => g(B.target.value), e[22] = g, e[23] = A) : A = e[23];
389
- let _;
390
- e[24] !== S || e[25] !== b || e[26] !== a || e[27] !== c || e[28] !== r || e[29] !== n || e[30] !== A ? (_ = /* @__PURE__ */ s(Mt, { ref: c, value: n, placeholder: r, "aria-label": b, autoComplete: "off", autoFocus: a, mx: "xs", h: "3rem", variant: "borderless", onChange: A, onKeyDown: S }), e[24] = S, e[25] = b, e[26] = a, e[27] = c, e[28] = r, e[29] = n, e[30] = A, e[31] = _) : _ = e[31];
391
- let $;
392
- e[32] !== l || e[33] !== _ ? ($ = /* @__PURE__ */ s(Vt, { startElement: l, width: "full", children: _ }), e[32] = l, e[33] = _, e[34] = $) : $ = e[34];
384
+ ...P
385
+ } = I, e[18] = I, e[19] = P, e[20] = w, e[21] = C) : (P = e[19], w = e[20], C = e[21]);
386
+ const D = w === void 0 ? "24rem" : w, L = C === void 0 ? !1 : C;
393
387
  let T;
394
- e[35] !== w || e[36] !== x ? (T = x ? /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ft, { "aria-label": w, size: "sm", mr: "2" }) }) : null, e[35] = w, e[36] = x, e[37] = T) : T = e[37];
395
- let N;
396
- e[38] !== T || e[39] !== $ ? (N = /* @__PURE__ */ v(Z.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
397
- $,
398
- T
399
- ] }), e[38] = T, e[39] = $, e[40] = N) : N = e[40];
400
- let F;
401
- e[41] !== t || e[42] !== O || e[43] !== E || e[44] !== z ? (F = /* @__PURE__ */ s(tt, { maxH: O, showHorizontalScrollbar: z, ...E, children: t }), e[41] = t, e[42] = O, e[43] = E, e[44] = z, e[45] = F) : F = e[45];
402
- let X;
403
- e[46] !== f || e[47] !== F ? (X = /* @__PURE__ */ v(Z.Body, { p: "0", children: [
388
+ e[22] !== g ? (T = (W) => g(W.target.value), e[22] = g, e[23] = T) : T = e[23];
389
+ let z;
390
+ e[24] !== x || e[25] !== b || e[26] !== a || e[27] !== c || e[28] !== r || e[29] !== n || e[30] !== T ? (z = /* @__PURE__ */ s(Vt, { ref: c, value: n, placeholder: r, "aria-label": b, autoComplete: "off", autoFocus: a, mx: "xs", h: "3rem", variant: "borderless", onChange: T, onKeyDown: x }), e[24] = x, e[25] = b, e[26] = a, e[27] = c, e[28] = r, e[29] = n, e[30] = T, e[31] = z) : z = e[31];
391
+ let E;
392
+ e[32] !== l || e[33] !== z ? (E = /* @__PURE__ */ s(Gt, { startElement: l, width: "full", children: z }), e[32] = l, e[33] = z, e[34] = E) : E = e[34];
393
+ let v;
394
+ e[35] !== A || e[36] !== k ? (v = k ? /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Mt, { "aria-label": A, size: "sm", mr: "2" }) }) : null, e[35] = A, e[36] = k, e[37] = v) : v = e[37];
395
+ let _;
396
+ e[38] !== v || e[39] !== E ? (_ = /* @__PURE__ */ y(Z.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
397
+ E,
398
+ v
399
+ ] }), e[38] = v, e[39] = E, e[40] = _) : _ = e[40];
400
+ let B;
401
+ e[41] !== t || e[42] !== D || e[43] !== P || e[44] !== L ? (B = /* @__PURE__ */ s(tt, { maxH: D, showHorizontalScrollbar: L, ...P, children: t }), e[41] = t, e[42] = D, e[43] = P, e[44] = L, e[45] = B) : B = e[45];
402
+ let K;
403
+ e[46] !== f || e[47] !== B ? (K = /* @__PURE__ */ y(Z.Body, { p: "0", children: [
404
404
  f,
405
- F
406
- ] }), e[46] = f, e[47] = F, e[48] = X) : X = e[48], I = /* @__PURE__ */ v(Me, { children: [
407
- N,
408
- X,
409
- y || L ? /* @__PURE__ */ v(Z.Footer, { justifyContent: yo(y, L), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
410
- y ? /* @__PURE__ */ s(G, { minW: "0", children: h }) : null,
411
- L ? /* @__PURE__ */ s(G, { flexShrink: 0, children: m }) : null
405
+ B
406
+ ] }), e[46] = f, e[47] = B, e[48] = K) : K = e[48], R = /* @__PURE__ */ y(Me, { children: [
407
+ _,
408
+ K,
409
+ S || $ ? /* @__PURE__ */ y(Z.Footer, { justifyContent: Io(S, $), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
410
+ S ? /* @__PURE__ */ s(G, { minW: "0", children: h }) : null,
411
+ $ ? /* @__PURE__ */ s(G, { flexShrink: 0, children: p }) : null
412
412
  ] }) : null
413
- ] }), e[0] = f, e[1] = t, e[2] = w, e[3] = m, e[4] = h, e[5] = g, e[6] = S, e[7] = p, e[8] = b, e[9] = a, e[10] = l, e[11] = c, e[12] = r, e[13] = n, e[14] = x, e[15] = I;
413
+ ] }), e[0] = f, e[1] = t, e[2] = A, e[3] = p, e[4] = h, e[5] = g, e[6] = x, e[7] = m, e[8] = b, e[9] = a, e[10] = l, e[11] = c, e[12] = r, e[13] = n, e[14] = k, e[15] = R;
414
414
  } else
415
- I = e[15];
416
- return I;
417
- }, vt = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, mi = (o) => {
418
- const e = k(71), {
415
+ R = e[15];
416
+ return R;
417
+ }, yt = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, vi = (o) => {
418
+ const e = O(71), {
419
419
  open: t,
420
420
  entries: n,
421
421
  initialQuery: r,
@@ -427,61 +427,61 @@ const it = (o) => {
427
427
  placeholder: u,
428
428
  emptyLabel: f,
429
429
  footerStart: h,
430
- footerEnd: m,
431
- filterEntries: p,
430
+ footerEnd: p,
431
+ filterEntries: m,
432
432
  onActiveEntryChange: g,
433
- onQueryChange: S,
433
+ onQueryChange: x,
434
434
  onClose: b,
435
- onEscape: x
436
- } = o, w = r === void 0 ? "" : r, I = i === void 0 ? 0 : i, y = a === void 0 ? "default" : a, L = f === void 0 ? "No results." : f, [R, E] = fe(w), [P, C] = fe(I), O = He(null), z = He(null);
437
- let A;
438
- e[0] !== y ? (A = {
435
+ onEscape: k
436
+ } = o, A = r === void 0 ? "" : r, R = i === void 0 ? 0 : i, S = a === void 0 ? "default" : a, $ = f === void 0 ? "No results." : f, [I, P] = fe(A), [w, C] = fe(R), D = He(null), L = He(null);
437
+ let T;
438
+ e[0] !== S ? (T = {
439
439
  open: !1,
440
- resetKey: y
441
- }, e[0] = y, e[1] = A) : A = e[1];
442
- const _ = He(A);
443
- let $, T, N, F, X;
444
- if (e[2] !== P || e[3] !== n || e[4] !== p || e[5] !== d || e[6] !== l || e[7] !== c || e[8] !== u || e[9] !== R) {
445
- const M = l ?? co(R, c);
446
- T = p ? p(n, R, M) : ho(n, {
447
- query: R,
440
+ resetKey: S
441
+ }, e[0] = S, e[1] = T) : T = e[1];
442
+ const z = He(T);
443
+ let E, v, _, B, K;
444
+ if (e[2] !== w || e[3] !== n || e[4] !== m || e[5] !== d || e[6] !== l || e[7] !== c || e[8] !== u || e[9] !== I) {
445
+ const M = l ?? ho(I, c);
446
+ v = m ? m(n, I, M) : go(n, {
447
+ query: I,
448
448
  mode: M,
449
- getEffectiveQuery: (be) => uo(be, c, M)
450
- }), $ = T[P] ?? null, F = {
451
- query: R,
449
+ getEffectiveQuery: (be) => mo(be, c, M)
450
+ }), E = v[w] ?? null, B = {
451
+ query: I,
452
452
  mode: M,
453
- activeIndex: P,
454
- entries: T
455
- }, N = vt(d, F, null), X = vt(u, F, "Search"), e[2] = P, e[3] = n, e[4] = p, e[5] = d, e[6] = l, e[7] = c, e[8] = u, e[9] = R, e[10] = $, e[11] = T, e[12] = N, e[13] = F, e[14] = X;
453
+ activeIndex: w,
454
+ entries: v
455
+ }, _ = yt(d, B, null), K = yt(u, B, "Search"), e[2] = w, e[3] = n, e[4] = m, e[5] = d, e[6] = l, e[7] = c, e[8] = u, e[9] = I, e[10] = E, e[11] = v, e[12] = _, e[13] = B, e[14] = K;
456
456
  } else
457
- $ = e[10], T = e[11], N = e[12], F = e[13], X = e[14];
458
- const B = X;
459
- let W;
460
- e[15] !== S ? (W = (M) => {
461
- E(M), S?.(M);
462
- }, e[15] = S, e[16] = W) : W = e[16];
463
- const D = W;
457
+ E = e[10], v = e[11], _ = e[12], B = e[13], K = e[14];
458
+ const W = K;
459
+ let H;
460
+ e[15] !== x ? (H = (M) => {
461
+ P(M), x?.(M);
462
+ }, e[15] = x, e[16] = H) : H = e[16];
463
+ const N = H;
464
464
  let q;
465
- e[17] !== $ ? (q = () => {
466
- $?.onActivate();
467
- }, e[17] = $, e[18] = q) : q = e[18];
465
+ e[17] !== E ? (q = () => {
466
+ E?.onActivate();
467
+ }, e[17] = E, e[18] = q) : q = e[18];
468
468
  const j = q;
469
469
  let V;
470
470
  e[19] !== b ? (V = () => {
471
471
  b();
472
472
  }, e[19] = b, e[20] = V) : V = e[20];
473
473
  const U = V;
474
- let K, se;
475
- e[21] !== I || e[22] !== w || e[23] !== t || e[24] !== y ? (se = () => {
476
- const M = _.current;
477
- if (_.current = {
474
+ let X, se;
475
+ e[21] !== R || e[22] !== A || e[23] !== t || e[24] !== S ? (se = () => {
476
+ const M = z.current;
477
+ if (z.current = {
478
478
  open: t,
479
- resetKey: y
480
- }, !t || !(!M.open || M.resetKey !== y))
479
+ resetKey: S
480
+ }, !t || !(!M.open || M.resetKey !== S))
481
481
  return;
482
- E(w), C(I);
482
+ P(A), C(R);
483
483
  const Ce = setTimeout(() => {
484
- const we = O.current;
484
+ const we = D.current;
485
485
  if (!we)
486
486
  return;
487
487
  we.focus();
@@ -489,42 +489,42 @@ const it = (o) => {
489
489
  we.setSelectionRange(Se, Se);
490
490
  }, 0);
491
491
  return () => clearTimeout(Ce);
492
- }, K = [I, w, t, y], e[21] = I, e[22] = w, e[23] = t, e[24] = y, e[25] = K, e[26] = se) : (K = e[25], se = e[26]), me(se, K);
492
+ }, X = [R, A, t, S], e[21] = R, e[22] = A, e[23] = t, e[24] = S, e[25] = X, e[26] = se) : (X = e[25], se = e[26]), me(se, X);
493
493
  let J, ee;
494
- e[27] !== T.length ? (J = () => {
495
- C((M) => Math.min(M, Math.max(T.length - 1, 0)));
496
- }, ee = [T.length], e[27] = T.length, e[28] = J, e[29] = ee) : (J = e[28], ee = e[29]), me(J, ee);
494
+ e[27] !== v.length ? (J = () => {
495
+ C((M) => Math.min(M, Math.max(v.length - 1, 0)));
496
+ }, ee = [v.length], e[27] = v.length, e[28] = J, e[29] = ee) : (J = e[28], ee = e[29]), me(J, ee);
497
497
  let re, te;
498
- e[30] !== $ || e[31] !== P || e[32] !== g ? (re = () => {
499
- g?.($, P);
500
- }, te = [$, P, g], e[30] = $, e[31] = P, e[32] = g, e[33] = re, e[34] = te) : (re = e[33], te = e[34]), me(re, te);
498
+ e[30] !== E || e[31] !== w || e[32] !== g ? (re = () => {
499
+ g?.(E, w);
500
+ }, te = [E, w, g], e[30] = E, e[31] = w, e[32] = g, e[33] = re, e[34] = te) : (re = e[33], te = e[34]), me(re, te);
501
501
  let le;
502
- e[35] !== $ || e[36] !== U || e[37] !== T.length || e[38] !== x || e[39] !== R || e[40] !== j || e[41] !== D || e[42] !== F ? (le = () => {
503
- if (!x?.({
504
- ...F,
505
- activeEntry: $,
506
- entryCount: T.length,
507
- setQuery: D,
502
+ e[35] !== E || e[36] !== U || e[37] !== v.length || e[38] !== k || e[39] !== I || e[40] !== j || e[41] !== N || e[42] !== B ? (le = () => {
503
+ if (!k?.({
504
+ ...B,
505
+ activeEntry: E,
506
+ entryCount: v.length,
507
+ setQuery: N,
508
508
  setActiveIndex: C,
509
509
  runActiveEntry: j,
510
510
  closePalette: U
511
511
  })) {
512
- if (R.length > 0) {
513
- D(""), C(0);
512
+ if (I.length > 0) {
513
+ N(""), C(0);
514
514
  return;
515
515
  }
516
516
  U();
517
517
  }
518
- }, e[35] = $, e[36] = U, e[37] = T.length, e[38] = x, e[39] = R, e[40] = j, e[41] = D, e[42] = F, e[43] = le) : le = e[43];
518
+ }, e[35] = E, e[36] = U, e[37] = v.length, e[38] = k, e[39] = I, e[40] = j, e[41] = N, e[42] = B, e[43] = le) : le = e[43];
519
519
  const ne = le;
520
520
  let Y;
521
- e[44] !== T.length || e[45] !== ne || e[46] !== j ? (Y = (M) => {
521
+ e[44] !== v.length || e[45] !== ne || e[46] !== j ? (Y = (M) => {
522
522
  if (M.key === "ArrowDown") {
523
- M.preventDefault(), C((be) => Math.min(be + 1, Math.max(T.length - 1, 0)));
523
+ M.preventDefault(), C((be) => Math.min(be + 1, Math.max(v.length - 1, 0)));
524
524
  return;
525
525
  }
526
526
  if (M.key === "ArrowUp") {
527
- M.preventDefault(), C(Co);
527
+ M.preventDefault(), C(To);
528
528
  return;
529
529
  }
530
530
  if (M.key === "Enter") {
@@ -532,7 +532,7 @@ const it = (o) => {
532
532
  return;
533
533
  }
534
534
  M.key === "Escape" && (M.preventDefault(), M.stopPropagation(), ne());
535
- }, e[44] = T.length, e[45] = ne, e[46] = j, e[47] = Y) : Y = e[47];
535
+ }, e[44] = v.length, e[45] = ne, e[46] = j, e[47] = Y) : Y = e[47];
536
536
  const ie = Y;
537
537
  let oe;
538
538
  e[48] !== U ? (oe = (M) => !M.open && U(), e[48] = U, e[49] = oe) : oe = e[49];
@@ -542,7 +542,7 @@ const it = (o) => {
542
542
  e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = {
543
543
  maxH: "24rem",
544
544
  showHorizontalScrollbar: !1,
545
- viewportRef: z,
545
+ viewportRef: L,
546
546
  viewportProps: {
547
547
  style: {
548
548
  overflowAnchor: "none"
@@ -550,23 +550,23 @@ const it = (o) => {
550
550
  }
551
551
  }, e[51] = Ae) : Ae = e[51];
552
552
  let xe;
553
- e[52] !== D ? (xe = (M) => {
554
- D(M), C(0);
555
- }, e[52] = D, e[53] = xe) : xe = e[53];
553
+ e[52] !== N ? (xe = (M) => {
554
+ N(M), C(0);
555
+ }, e[52] = N, e[53] = xe) : xe = e[53];
556
556
  let ve;
557
- e[54] !== P || e[55] !== L || e[56] !== T ? (ve = /* @__PURE__ */ s(vo, { entries: T, activeIndex: P, emptyLabel: L, onHover: C, scrollRef: z }), e[54] = P, e[55] = L, e[56] = T, e[57] = ve) : ve = e[57];
557
+ e[54] !== w || e[55] !== $ || e[56] !== v ? (ve = /* @__PURE__ */ s(wo, { entries: v, activeIndex: w, emptyLabel: $, onHover: C, scrollRef: L }), e[54] = w, e[55] = $, e[56] = v, e[57] = ve) : ve = e[57];
558
558
  let ye;
559
- e[58] !== m || e[59] !== h || e[60] !== ie || e[61] !== R || e[62] !== N || e[63] !== B || e[64] !== xe || e[65] !== ve ? (ye = /* @__PURE__ */ s(Z.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(Z.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Jt, { searchValue: R, searchPlaceholder: B, searchIcon: N, searchInputRef: O, showCloseButton: !0, footerStart: h, footerEnd: m, scrollAreaProps: Ae, onSearchChange: xe, onSearchKeyDown: ie, children: ve }) }) }), e[58] = m, e[59] = h, e[60] = ie, e[61] = R, e[62] = N, e[63] = B, e[64] = xe, e[65] = ve, e[66] = ye) : ye = e[66];
559
+ e[58] !== p || e[59] !== h || e[60] !== ie || e[61] !== I || e[62] !== _ || e[63] !== W || e[64] !== xe || e[65] !== ve ? (ye = /* @__PURE__ */ s(Z.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(Z.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(an, { searchValue: I, searchPlaceholder: W, searchIcon: _, searchInputRef: D, showCloseButton: !0, footerStart: h, footerEnd: p, scrollAreaProps: Ae, onSearchChange: xe, onSearchKeyDown: ie, children: ve }) }) }), e[58] = p, e[59] = h, e[60] = ie, e[61] = I, e[62] = _, e[63] = W, e[64] = xe, e[65] = ve, e[66] = ye) : ye = e[66];
560
560
  let Re;
561
- return e[67] !== t || e[68] !== oe || e[69] !== ye ? (Re = /* @__PURE__ */ v(Z.Root, { open: t, onOpenChange: oe, children: [
561
+ return e[67] !== t || e[68] !== oe || e[69] !== ye ? (Re = /* @__PURE__ */ y(Z.Root, { open: t, onOpenChange: oe, children: [
562
562
  he,
563
563
  ye
564
564
  ] }), e[67] = t, e[68] = oe, e[69] = ye, e[70] = Re) : Re = e[70], Re;
565
565
  };
566
- function Co(o) {
566
+ function To(o) {
567
567
  return Math.max(o - 1, 0);
568
568
  }
569
- const wo = {
569
+ const Po = {
570
570
  alt: {
571
571
  label: "Alt"
572
572
  },
@@ -582,10 +582,10 @@ const wo = {
582
582
  shift: {
583
583
  label: "Shift"
584
584
  }
585
- }, Io = {
585
+ }, Ao = {
586
586
  alt: {
587
587
  label: "Option",
588
- Icon: St
588
+ Icon: xt
589
589
  },
590
590
  cmd: {
591
591
  label: "Command",
@@ -605,53 +605,53 @@ const wo = {
605
605
  },
606
606
  option: {
607
607
  label: "Option",
608
- Icon: St
608
+ Icon: xt
609
609
  },
610
610
  shift: {
611
611
  label: "Shift"
612
612
  }
613
- }, To = {
613
+ }, Ro = {
614
614
  arrowleft: {
615
615
  label: "Arrow Left",
616
- Icon: yn
616
+ Icon: kn
617
617
  },
618
618
  arrowright: {
619
619
  label: "Arrow Right",
620
- Icon: vn
620
+ Icon: Rn
621
621
  }
622
- }, Po = () => {
622
+ }, ko = () => {
623
623
  if (typeof navigator > "u") return "linux";
624
624
  const o = navigator.platform?.toLowerCase() ?? "";
625
625
  return o.includes("mac") ? "mac" : o.includes("win") ? "win" : "linux";
626
- }, Ao = (o, e = Po()) => {
627
- const t = o.toLowerCase(), n = e === "mac" ? Io : wo;
628
- return To[t] ?? n[t] ?? {
626
+ }, $o = (o, e = ko()) => {
627
+ const t = o.toLowerCase(), n = e === "mac" ? Ao : Po;
628
+ return Ro[t] ?? n[t] ?? {
629
629
  label: o
630
630
  };
631
- }, yt = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), Ro = (o) => (Array.isArray(o) ? o.map(yt) : [yt(o)]).map((t) => t.map((n) => Ao(n))), pi = (o) => {
632
- const e = k(4), {
631
+ }, Ct = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), Eo = (o) => (Array.isArray(o) ? o.map(Ct) : [Ct(o)]).map((t) => t.map((n) => $o(n))), yi = (o) => {
632
+ const e = O(4), {
633
633
  binding: t
634
634
  } = o;
635
635
  let n;
636
636
  if (e[0] !== t) {
637
- const i = Ro(t);
638
- n = i.map((l, c) => /* @__PURE__ */ v(bt, { children: [
639
- l.map((a, d) => /* @__PURE__ */ v(bt, { children: [
640
- /* @__PURE__ */ s(an, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": a.label, children: a.Icon ? /* @__PURE__ */ s(a.Icon, { size: 12, "aria-hidden": "true" }) : a.label }),
637
+ const i = Eo(t);
638
+ n = i.map((l, c) => /* @__PURE__ */ y(St, { children: [
639
+ l.map((a, d) => /* @__PURE__ */ y(St, { children: [
640
+ /* @__PURE__ */ s(gn, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": a.label, children: a.Icon ? /* @__PURE__ */ s(a.Icon, { size: 12, "aria-hidden": "true" }) : a.label }),
641
641
  d < l.length - 1 ? " " : null
642
642
  ] }, `${a.label}-${d}`)),
643
643
  c < i.length - 1 ? " then " : null
644
- ] }, `${l.map(ko).join("+")}-${c}`)), e[0] = t, e[1] = n;
644
+ ] }, `${l.map(Do).join("+")}-${c}`)), e[0] = t, e[1] = n;
645
645
  } else
646
646
  n = e[1];
647
647
  let r;
648
648
  return e[2] !== n ? (r = /* @__PURE__ */ s(Me, { children: n }), e[2] = n, e[3] = r) : r = e[3], r;
649
649
  };
650
- function ko(o) {
650
+ function Do(o) {
651
651
  return o.label;
652
652
  }
653
- function gi(o) {
654
- const e = k(14);
653
+ function Ci(o) {
654
+ const e = O(14);
655
655
  let t, n, r, i, l, c;
656
656
  e[0] !== o ? ({
657
657
  children: t,
@@ -665,8 +665,8 @@ function gi(o) {
665
665
  let h;
666
666
  return e[7] !== f || e[8] !== t || e[9] !== a || e[10] !== d || e[11] !== u || e[12] !== n ? (h = /* @__PURE__ */ s(ae, { ...n, h: a, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.subtle", px: d, py: u, children: t }), e[7] = f, e[8] = t, e[9] = a, e[10] = d, e[11] = u, e[12] = n, e[13] = h) : h = e[13], h;
667
667
  }
668
- const bi = (o) => {
669
- const e = k(17), {
668
+ const wi = (o) => {
669
+ const e = O(17), {
670
670
  children: t,
671
671
  title: n,
672
672
  defaultOpen: r,
@@ -677,38 +677,38 @@ const bi = (o) => {
677
677
  background: "bg.hover"
678
678
  }, e[0] = c) : c = e[0];
679
679
  let a;
680
- e[1] !== n ? (a = n && /* @__PURE__ */ s(H, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = a) : a = e[2];
680
+ e[1] !== n ? (a = n && /* @__PURE__ */ s(F, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = a) : a = e[2];
681
681
  let d;
682
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(Xe.Indicator, { transition: "transform 0.2s", _open: {
682
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(Ke.Indicator, { transition: "transform 0.2s", _open: {
683
683
  transform: "rotate(90deg)"
684
- }, children: /* @__PURE__ */ s(Cn, { size: 16 }) }), e[3] = d) : d = e[3];
684
+ }, children: /* @__PURE__ */ s($n, { size: 16 }) }), e[3] = d) : d = e[3];
685
685
  let u;
686
- e[4] !== a ? (u = /* @__PURE__ */ v(Xe.Trigger, { _hover: c, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
686
+ e[4] !== a ? (u = /* @__PURE__ */ y(Ke.Trigger, { _hover: c, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
687
687
  a,
688
688
  d
689
689
  ] }), e[4] = a, e[5] = u) : u = e[5];
690
690
  let f;
691
- e[6] !== i ? (f = i && /* @__PURE__ */ s(G, { marginLeft: "auto", onClick: Eo, children: i }), e[6] = i, e[7] = f) : f = e[7];
691
+ e[6] !== i ? (f = i && /* @__PURE__ */ s(G, { marginLeft: "auto", onClick: Lo, children: i }), e[6] = i, e[7] = f) : f = e[7];
692
692
  let h;
693
- e[8] !== u || e[9] !== f ? (h = /* @__PURE__ */ v(de, { children: [
693
+ e[8] !== u || e[9] !== f ? (h = /* @__PURE__ */ y(de, { children: [
694
694
  u,
695
695
  f
696
696
  ] }), e[8] = u, e[9] = f, e[10] = h) : h = e[10];
697
- let m;
698
- e[11] !== t ? (m = /* @__PURE__ */ s(Xe.Content, { children: t }), e[11] = t, e[12] = m) : m = e[12];
699
697
  let p;
700
- return e[13] !== l || e[14] !== h || e[15] !== m ? (p = /* @__PURE__ */ v(Xe.Root, { defaultOpen: l, width: "full", children: [
698
+ e[11] !== t ? (p = /* @__PURE__ */ s(Ke.Content, { children: t }), e[11] = t, e[12] = p) : p = e[12];
699
+ let m;
700
+ return e[13] !== l || e[14] !== h || e[15] !== p ? (m = /* @__PURE__ */ y(Ke.Root, { defaultOpen: l, width: "full", children: [
701
701
  h,
702
- m
703
- ] }), e[13] = l, e[14] = h, e[15] = m, e[16] = p) : p = e[16], p;
702
+ p
703
+ ] }), e[13] = l, e[14] = h, e[15] = p, e[16] = m) : m = e[16], m;
704
704
  };
705
- function Eo(o) {
705
+ function Lo(o) {
706
706
  return o.stopPropagation();
707
707
  }
708
- const $o = "2.5rem", Ct = "2xs", Si = "sm", en = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", Do = (o) => o !== "normal", Lo = (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 Oo = "2.5rem", wt = "2xs", Ii = "sm", cn = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", _o = (o) => o !== "normal", zo = (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(), No = (o, e) => {
709
709
  const t = e.trim().toLowerCase();
710
- return t ? o.filter((n) => Lo(n).includes(t)) : o;
711
- }, tn = (o) => {
710
+ return t ? o.filter((n) => zo(n).includes(t)) : o;
711
+ }, dn = (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 [{
714
714
  id: "needs-input",
@@ -723,23 +723,23 @@ const $o = "2.5rem", Ct = "2xs", Si = "sm", en = (o) => o === "urgent" ? "red" :
723
723
  label: "Other",
724
724
  items: n
725
725
  }].filter((r) => r.items.length > 0);
726
- }, _o = (o) => tn(o).flatMap((e) => e.items), zo = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), No = (o, e) => {
726
+ }, Bo = (o) => dn(o).flatMap((e) => e.items), Wo = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), Ho = (o, e) => {
727
727
  const t = [];
728
728
  return e.onDismiss && t.push({
729
729
  id: "dismiss",
730
730
  label: "Dismiss",
731
- icon: /* @__PURE__ */ s(Ut, { size: 14 }),
731
+ icon: /* @__PURE__ */ s(Qt, { size: 14 }),
732
732
  tooltip: "Dismiss",
733
733
  onAction: () => e.onDismiss?.(o)
734
734
  }), t;
735
- }, Bo = (o) => {
736
- const e = k(15), {
735
+ }, Fo = (o) => {
736
+ const e = O(15), {
737
737
  actions: t,
738
738
  item: n,
739
739
  onRunAction: r
740
740
  } = o;
741
741
  let i;
742
- e[0] !== n.priority ? (i = Do(n.priority) ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: en(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = i) : i = e[1];
742
+ e[0] !== n.priority ? (i = _o(n.priority) ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: cn(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = i) : i = e[1];
743
743
  let l;
744
744
  e[2] !== n.status ? (l = n.status === "open" ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = l) : l = e[3];
745
745
  let c;
@@ -747,37 +747,37 @@ const $o = "2.5rem", Ct = "2xs", Si = "sm", en = (o) => o === "urgent" ? "red" :
747
747
  let d;
748
748
  e[8] !== n || e[9] !== r ? (d = (u) => /* @__PURE__ */ s(ue, { size: "2xs", variant: "outline", colorPalette: u.destructive ? "red" : "gray", maxW: "9rem", onClick: (f) => {
749
749
  f.stopPropagation(), r?.(n, u);
750
- }, children: /* @__PURE__ */ s(H, { truncate: !0, children: u.label }) }, u.id), e[8] = n, e[9] = r, e[10] = d) : d = e[10], c = t.map(d), e[4] = t, e[5] = n, e[6] = r, e[7] = c;
750
+ }, children: /* @__PURE__ */ s(F, { truncate: !0, children: u.label }) }, u.id), e[8] = n, e[9] = r, e[10] = d) : d = e[10], c = t.map(d), e[4] = t, e[5] = n, e[6] = r, e[7] = c;
751
751
  } else
752
752
  c = e[7];
753
753
  let a;
754
- return e[11] !== i || e[12] !== l || e[13] !== c ? (a = /* @__PURE__ */ v(ae, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
754
+ return e[11] !== i || e[12] !== l || e[13] !== c ? (a = /* @__PURE__ */ y(ae, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
755
755
  i,
756
756
  l,
757
757
  c
758
758
  ] }), e[11] = i, e[12] = l, e[13] = c, e[14] = a) : a = e[14], a;
759
- }, Wo = (o) => {
759
+ }, Mo = (o) => {
760
760
  const {
761
761
  activeIndex: e,
762
762
  items: t,
763
763
  onActivateItem: n,
764
764
  onActiveIndexChange: r,
765
765
  onRunAction: i
766
- } = o, l = tn(t);
766
+ } = o, l = dn(t);
767
767
  let c = 0;
768
- return /* @__PURE__ */ s(Q, { gap: "2xs", py: "xs", children: l.map((a) => /* @__PURE__ */ v(Q, { gap: "2xs", children: [
769
- /* @__PURE__ */ s(H, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: a.label }),
768
+ return /* @__PURE__ */ s(Q, { gap: "2xs", py: "xs", children: l.map((a) => /* @__PURE__ */ y(Q, { gap: "2xs", children: [
769
+ /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: a.label }),
770
770
  a.items.map((d) => {
771
771
  const u = c;
772
- return c += 1, /* @__PURE__ */ s(Qe, { id: d.id, label: d.title, description: zo(d), icon: /* @__PURE__ */ s(ce, { as: wn, boxSize: "14px" }), iconColor: `${en(d.priority)}.500`, variant: "compact", isSelected: u === e, endContent: /* @__PURE__ */ s(Bo, { item: d, actions: d.actions ?? [], onRunAction: i }), actions: No(d, o), tabIndex: -1, onActivate: () => n?.(d), onPointerMove: () => r(u) }, d.id);
772
+ return c += 1, /* @__PURE__ */ s(Qe, { id: d.id, label: d.title, description: Wo(d), icon: /* @__PURE__ */ s(ce, { as: En, boxSize: "14px" }), iconColor: `${cn(d.priority)}.500`, variant: "compact", isSelected: u === e, endContent: /* @__PURE__ */ s(Fo, { item: d, actions: d.actions ?? [], onRunAction: i }), actions: Ho(d, o), tabIndex: -1, onActivate: () => n?.(d), onPointerMove: () => r(u) }, d.id);
773
773
  })
774
774
  ] }, a.id)) });
775
- }, Ho = () => {
776
- const o = k(1);
775
+ }, Vo = () => {
776
+ const o = O(1);
777
777
  let e;
778
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Q, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Fo) }), o[0] = e) : e = o[0], e;
779
- }, xi = (o) => {
780
- const e = k(37), {
778
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Q, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Go) }), o[0] = e) : e = o[0], e;
779
+ }, Ti = (o) => {
780
+ const e = O(37), {
781
781
  autoFocus: t,
782
782
  emptyLabel: n,
783
783
  error: r,
@@ -789,72 +789,72 @@ const $o = "2.5rem", Ct = "2xs", Si = "sm", en = (o) => o === "urgent" ? "red" :
789
789
  onEscape: u,
790
790
  onQueryChange: f,
791
791
  query: h
792
- } = o, m = t === void 0 ? !1 : t, p = n === void 0 ? "No notifications." : n, g = a === void 0 ? !1 : a, [S, b] = fe(""), [x, w] = fe(0), I = He(null), y = h ?? S;
793
- let L, R;
794
- e[0] !== y || e[1] !== c ? (L = Oo(c, y), R = _o(L), e[0] = y, e[1] = c, e[2] = L, e[3] = R) : (L = e[2], R = e[3]);
795
- const E = R, P = E[x] ?? null;
796
- let C, O;
797
- e[4] !== m ? (C = () => {
798
- if (!m)
792
+ } = o, p = t === void 0 ? !1 : t, m = n === void 0 ? "No notifications." : n, g = a === void 0 ? !1 : a, [x, b] = fe(""), [k, A] = fe(0), R = He(null), S = h ?? x;
793
+ let $, I;
794
+ e[0] !== S || e[1] !== c ? ($ = No(c, S), I = Bo($), e[0] = S, e[1] = c, e[2] = $, e[3] = I) : ($ = e[2], I = e[3]);
795
+ const P = I, w = P[k] ?? null;
796
+ let C, D;
797
+ e[4] !== p ? (C = () => {
798
+ if (!p)
799
799
  return;
800
- const D = setTimeout(() => I.current?.focus(), 0);
801
- return () => clearTimeout(D);
802
- }, O = [m], e[4] = m, e[5] = C, e[6] = O) : (C = e[5], O = e[6]), me(C, O);
803
- let z, A;
804
- e[7] !== E.length ? (z = () => {
805
- w((D) => Math.min(D, Math.max(E.length - 1, 0)));
806
- }, A = [E.length], e[7] = E.length, e[8] = z, e[9] = A) : (z = e[8], A = e[9]), me(z, A);
807
- let _;
808
- e[10] !== f || e[11] !== h ? (_ = (D) => {
809
- h === void 0 && b(D), f?.(D), w(0);
810
- }, e[10] = f, e[11] = h, e[12] = _) : _ = e[12];
811
- const $ = _;
812
- let T;
813
- e[13] !== P || e[14] !== y || e[15] !== E.length || e[16] !== d || e[17] !== u || e[18] !== $ ? (T = (D) => {
814
- if (D.key === "ArrowDown") {
815
- D.preventDefault(), w((q) => Math.min(q + 1, Math.max(E.length - 1, 0)));
800
+ const N = setTimeout(() => R.current?.focus(), 0);
801
+ return () => clearTimeout(N);
802
+ }, D = [p], e[4] = p, e[5] = C, e[6] = D) : (C = e[5], D = e[6]), me(C, D);
803
+ let L, T;
804
+ e[7] !== P.length ? (L = () => {
805
+ A((N) => Math.min(N, Math.max(P.length - 1, 0)));
806
+ }, T = [P.length], e[7] = P.length, e[8] = L, e[9] = T) : (L = e[8], T = e[9]), me(L, T);
807
+ let z;
808
+ e[10] !== f || e[11] !== h ? (z = (N) => {
809
+ h === void 0 && b(N), f?.(N), A(0);
810
+ }, e[10] = f, e[11] = h, e[12] = z) : z = e[12];
811
+ const E = z;
812
+ let v;
813
+ e[13] !== w || e[14] !== S || e[15] !== P.length || e[16] !== d || e[17] !== u || e[18] !== E ? (v = (N) => {
814
+ if (N.key === "ArrowDown") {
815
+ N.preventDefault(), A((q) => Math.min(q + 1, Math.max(P.length - 1, 0)));
816
816
  return;
817
817
  }
818
- if (D.key === "ArrowUp") {
819
- D.preventDefault(), w(Mo);
818
+ if (N.key === "ArrowUp") {
819
+ N.preventDefault(), A(jo);
820
820
  return;
821
821
  }
822
- if (D.key === "Enter") {
823
- D.preventDefault(), P && d?.(P);
822
+ if (N.key === "Enter") {
823
+ N.preventDefault(), w && d?.(w);
824
824
  return;
825
825
  }
826
- if (D.key === "Escape") {
827
- if (D.preventDefault(), y.length > 0) {
828
- $("");
826
+ if (N.key === "Escape") {
827
+ if (N.preventDefault(), S.length > 0) {
828
+ E("");
829
829
  return;
830
830
  }
831
831
  u?.();
832
832
  }
833
- }, e[13] = P, e[14] = y, e[15] = E.length, e[16] = d, e[17] = u, e[18] = $, e[19] = T) : T = e[19];
834
- const N = T;
835
- let F;
836
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ s(Qt, { size: 14 }), e[20] = F) : F = e[20];
837
- let X;
838
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = {
833
+ }, e[13] = w, e[14] = S, e[15] = P.length, e[16] = d, e[17] = u, e[18] = E, e[19] = v) : v = e[19];
834
+ const _ = v;
835
+ let B;
836
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(qt, { size: 14 }), e[20] = B) : B = e[20];
837
+ let K;
838
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = {
839
839
  maxH: "24rem",
840
840
  showHorizontalScrollbar: !1
841
- }, e[21] = X) : X = e[21];
842
- let B;
843
- e[22] !== x || e[23] !== p || e[24] !== r || e[25] !== L || e[26] !== g || e[27] !== o ? (B = r ? /* @__PURE__ */ s(G, { p: "sm", children: /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Ho, {}) : L.length === 0 ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: p }) : /* @__PURE__ */ s(Wo, { ...o, items: L, activeIndex: x, onActiveIndexChange: w }), e[22] = x, e[23] = p, e[24] = r, e[25] = L, e[26] = g, e[27] = o, e[28] = B) : B = e[28];
841
+ }, e[21] = K) : K = e[21];
844
842
  let W;
845
- return e[29] !== y || e[30] !== m || e[31] !== i || e[32] !== l || e[33] !== N || e[34] !== B || e[35] !== $ ? (W = /* @__PURE__ */ s(Jt, { searchValue: y, searchPlaceholder: "Search notifications", searchIcon: F, searchInputRef: I, searchAutoFocus: m, footerStart: l, footerEnd: i, scrollAreaProps: X, onSearchChange: $, onSearchKeyDown: N, children: B }), e[29] = y, e[30] = m, e[31] = i, e[32] = l, e[33] = N, e[34] = B, e[35] = $, e[36] = W) : W = e[36], W;
843
+ e[22] !== k || e[23] !== m || e[24] !== r || e[25] !== $ || e[26] !== g || e[27] !== o ? (W = r ? /* @__PURE__ */ s(G, { p: "sm", children: /* @__PURE__ */ s(ht, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Vo, {}) : $.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(Mo, { ...o, items: $, activeIndex: k, onActiveIndexChange: A }), e[22] = k, e[23] = m, e[24] = r, e[25] = $, e[26] = g, e[27] = o, e[28] = W) : W = e[28];
844
+ let H;
845
+ return e[29] !== S || e[30] !== p || e[31] !== i || e[32] !== l || e[33] !== _ || e[34] !== W || e[35] !== E ? (H = /* @__PURE__ */ s(an, { searchValue: S, searchPlaceholder: "Search notifications", searchIcon: B, searchInputRef: R, searchAutoFocus: p, footerStart: l, footerEnd: i, scrollAreaProps: K, onSearchChange: E, onSearchKeyDown: _, children: W }), e[29] = S, e[30] = p, e[31] = i, e[32] = l, e[33] = _, e[34] = W, e[35] = E, e[36] = H) : H = e[36], H;
846
846
  };
847
- function Fo(o) {
848
- return /* @__PURE__ */ v(Q, { gap: "2xs", children: [
849
- /* @__PURE__ */ s(mt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
850
- /* @__PURE__ */ s(mt, { h: "3", w: "88%", borderRadius: "xs" })
847
+ function Go(o) {
848
+ return /* @__PURE__ */ y(Q, { gap: "2xs", children: [
849
+ /* @__PURE__ */ s(pt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
850
+ /* @__PURE__ */ s(pt, { h: "3", w: "88%", borderRadius: "xs" })
851
851
  ] }, o);
852
852
  }
853
- function Mo(o) {
853
+ function jo(o) {
854
854
  return Math.max(o - 1, 0);
855
855
  }
856
- const vi = (o) => {
857
- const e = k(6);
856
+ const Pi = (o) => {
857
+ const e = O(6);
858
858
  let t, n;
859
859
  e[0] !== o ? ({
860
860
  children: t,
@@ -862,8 +862,8 @@ const vi = (o) => {
862
862
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
863
863
  let r;
864
864
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(de, { 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
- }, Vo = "20rem", yi = (o) => {
866
- const e = k(15);
865
+ }, Uo = "20rem", Ai = (o) => {
866
+ const e = O(15);
867
867
  let t, n, r, i, l, c;
868
868
  e[0] !== o ? ({
869
869
  children: t,
@@ -873,16 +873,16 @@ const vi = (o) => {
873
873
  resizable: c,
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] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
876
- const a = l === void 0 ? "28rem" : l, d = c === void 0 ? !1 : c, u = r ?? (d ? Vo : a), f = d ? "full" : a;
876
+ const a = l === void 0 ? "28rem" : l, d = c === void 0 ? !1 : c, u = r ?? (d ? Uo : a), f = d ? "full" : a;
877
877
  let h;
878
878
  e[7] !== t ? (h = /* @__PURE__ */ s(de, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
879
- let m;
880
- return e[9] !== n || e[10] !== u || e[11] !== f || e[12] !== i || e[13] !== h ? (m = /* @__PURE__ */ v(de, { direction: "column", position: "relative", flexShrink: 0, w: f, minW: u, h: "100%", bg: "bg", overflow: "hidden", ...i, children: [
879
+ let p;
880
+ return e[9] !== n || e[10] !== u || e[11] !== f || e[12] !== i || e[13] !== h ? (p = /* @__PURE__ */ y(de, { direction: "column", position: "relative", flexShrink: 0, w: f, minW: u, h: "100%", bg: "bg", overflow: "hidden", ...i, children: [
881
881
  n,
882
882
  h
883
- ] }), e[9] = n, e[10] = u, e[11] = f, e[12] = i, e[13] = h, e[14] = m) : m = e[14], m;
884
- }, Ci = jt(function(e, t) {
885
- const n = k(19);
883
+ ] }), e[9] = n, e[10] = u, e[11] = f, e[12] = i, e[13] = h, e[14] = p) : p = e[14], p;
884
+ }, Ri = Ut(function(e, t) {
885
+ const n = O(19);
886
886
  let r, i, l, c, a;
887
887
  n[0] !== e ? ({
888
888
  children: r,
@@ -898,15 +898,15 @@ const vi = (o) => {
898
898
  }, h = {
899
899
  borderColor: "border.accent"
900
900
  }, n[6] = f, n[7] = h) : (f = n[6], h = n[7]);
901
- let m;
902
- n[8] !== r || n[9] !== t || n[10] !== l || n[11] !== u ? (m = /* @__PURE__ */ s(Fe, { 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] = m) : m = n[12];
903
- const p = m;
901
+ let p;
902
+ n[8] !== r || n[9] !== t || n[10] !== l || n[11] !== u ? (p = /* @__PURE__ */ s(Fe, { 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
+ const m = p;
904
904
  let g;
905
- n[13] !== p || n[14] !== a ? (g = a ? /* @__PURE__ */ s(Ue, { content: a, children: p }) : p, n[13] = p, n[14] = a, n[15] = g) : g = n[15];
906
- let S;
907
- return n[16] !== i || n[17] !== g ? (S = /* @__PURE__ */ s(Pe.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), n[16] = i, n[17] = g, n[18] = S) : S = n[18], S;
908
- }), wi = jt(function(e, t) {
909
- const n = k(28), {
905
+ n[13] !== m || n[14] !== a ? (g = a ? /* @__PURE__ */ s(Ue, { content: a, children: m }) : m, n[13] = m, n[14] = a, n[15] = g) : g = n[15];
906
+ let x;
907
+ return n[16] !== i || n[17] !== g ? (x = /* @__PURE__ */ s(Pe.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), n[16] = i, n[17] = g, n[18] = x) : x = n[18], x;
908
+ }), ki = Ut(function(e, t) {
909
+ const n = O(28), {
910
910
  isOpen: r,
911
911
  title: i,
912
912
  menu: l,
@@ -916,43 +916,43 @@ const vi = (o) => {
916
916
  popOutLabel: u,
917
917
  width: f,
918
918
  height: h,
919
- containerProps: m,
920
- testId: p,
919
+ containerProps: p,
920
+ testId: m,
921
921
  "aria-label": g,
922
- children: S
923
- } = e, b = r === void 0 ? !1 : r, x = f === void 0 ? "28rem" : f, w = h === void 0 ? "38rem" : h;
922
+ children: x
923
+ } = e, b = r === void 0 ? !1 : r, k = f === void 0 ? "28rem" : f, A = h === void 0 ? "38rem" : h;
924
924
  if (!b)
925
925
  return null;
926
- const I = g ?? i;
927
- let y;
928
- n[0] !== l ? (y = /* @__PURE__ */ s(ae, { gap: "1", minW: "0", children: l }), n[0] = l, n[1] = y) : y = n[1];
929
- let L;
930
- n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ s(Ht, {}), n[2] = L) : L = n[2];
931
- let R;
932
- n[3] !== d || n[4] !== u ? (R = d ? /* @__PURE__ */ s(Ue, { content: u, children: /* @__PURE__ */ s(Fe, { size: Ct, variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ s(In, { size: 16 }) }) }) : null, n[3] = d, n[4] = u, n[5] = R) : R = n[5];
933
- let E;
934
- n[6] !== a || n[7] !== c ? (E = c ? /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: Ct, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(Tn, { size: 16 }) }) }) : null, n[6] = a, n[7] = c, n[8] = E) : E = n[8];
926
+ const R = g ?? i;
927
+ let S;
928
+ n[0] !== l ? (S = /* @__PURE__ */ s(ae, { gap: "1", minW: "0", children: l }), n[0] = l, n[1] = S) : S = n[1];
929
+ let $;
930
+ n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(Ft, {}), n[2] = $) : $ = n[2];
931
+ let I;
932
+ n[3] !== d || n[4] !== u ? (I = d ? /* @__PURE__ */ s(Ue, { content: u, children: /* @__PURE__ */ s(Fe, { size: wt, variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ s(Dn, { size: 16 }) }) }) : null, n[3] = d, n[4] = u, n[5] = I) : I = n[5];
935
933
  let P;
936
- n[9] !== R || n[10] !== E ? (P = /* @__PURE__ */ v(ae, { gap: "1", children: [
937
- R,
938
- E
939
- ] }), n[9] = R, n[10] = E, n[11] = P) : P = n[11];
940
- let C;
941
- n[12] !== y || n[13] !== P ? (C = /* @__PURE__ */ v(On, { variant: "main", gap: "sm", flexShrink: 0, children: [
942
- y,
943
- L,
934
+ n[6] !== a || n[7] !== c ? (P = c ? /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: wt, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(Ln, { size: 16 }) }) }) : null, n[6] = a, n[7] = c, n[8] = P) : P = n[8];
935
+ let w;
936
+ n[9] !== I || n[10] !== P ? (w = /* @__PURE__ */ y(ae, { gap: "1", children: [
937
+ I,
944
938
  P
945
- ] }), n[12] = y, n[13] = P, n[14] = C) : C = n[14];
946
- let O;
947
- n[15] !== S ? (O = /* @__PURE__ */ s(G, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: S }), n[15] = S, n[16] = O) : O = n[16];
948
- let z;
949
- n[17] !== O || n[18] !== C ? (z = /* @__PURE__ */ v(de, { direction: "column", h: "full", children: [
939
+ ] }), n[9] = I, n[10] = P, n[11] = w) : w = n[11];
940
+ let C;
941
+ n[12] !== S || n[13] !== w ? (C = /* @__PURE__ */ y(Mn, { variant: "main", gap: "sm", flexShrink: 0, children: [
942
+ S,
943
+ $,
944
+ w
945
+ ] }), n[12] = S, n[13] = w, n[14] = C) : C = n[14];
946
+ let D;
947
+ n[15] !== x ? (D = /* @__PURE__ */ s(G, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: x }), n[15] = x, n[16] = D) : D = n[16];
948
+ let L;
949
+ n[17] !== D || n[18] !== C ? (L = /* @__PURE__ */ y(de, { direction: "column", h: "full", children: [
950
950
  C,
951
- O
952
- ] }), n[17] = O, n[18] = C, n[19] = z) : z = n[19];
953
- let A;
954
- return n[20] !== m || n[21] !== w || n[22] !== t || n[23] !== z || n[24] !== I || n[25] !== p || n[26] !== x ? (A = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Pe.section, { ref: t, role: "dialog", "data-testid": p, "aria-label": I, position: "fixed", bottom: "3", right: "3", w: x, maxW: "calc(100vw - 2rem)", h: w, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...m, children: z }) }), n[20] = m, n[21] = w, n[22] = t, n[23] = z, n[24] = I, n[25] = p, n[26] = x, n[27] = A) : A = n[27], A;
955
- }), Go = (o) => {
951
+ D
952
+ ] }), n[17] = D, n[18] = C, n[19] = L) : L = n[19];
953
+ let T;
954
+ return n[20] !== p || n[21] !== A || n[22] !== t || n[23] !== L || n[24] !== R || n[25] !== m || n[26] !== k ? (T = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Pe.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": R, position: "fixed", bottom: "3", right: "3", w: k, maxW: "calc(100vw - 2rem)", h: A, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: L }) }), n[20] = p, n[21] = A, n[22] = t, n[23] = L, n[24] = R, n[25] = m, n[26] = k, n[27] = T) : T = n[27], T;
955
+ }), Qo = (o) => {
956
956
  const [e, t] = fe(!1), {
957
957
  headline: n,
958
958
  buttonText: r,
@@ -976,29 +976,29 @@ const vi = (o) => {
976
976
  // overlay (e.g. the settings dialog) a portal keeps the layers cooperating.
977
977
  /* @__PURE__ */ s(Z.Root, { open: c, onOpenChange: (f) => {
978
978
  f.open || a();
979
- }, closeOnInteractOutside: !1, children: /* @__PURE__ */ v(Je, { children: [
979
+ }, closeOnInteractOutside: !1, children: /* @__PURE__ */ y(Je, { children: [
980
980
  /* @__PURE__ */ s(Z.Backdrop, {}),
981
- /* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */ v(Z.Content, { children: [
982
- /* @__PURE__ */ v(Z.Header, { children: [
983
- /* @__PURE__ */ s(H, { textStyle: "heading/M", children: n }),
984
- /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ft, { size: "sm" }) })
981
+ /* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */ y(Z.Content, { children: [
982
+ /* @__PURE__ */ y(Z.Header, { children: [
983
+ /* @__PURE__ */ s(F, { textStyle: "heading/M", children: n }),
984
+ /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Mt, { size: "sm" }) })
985
985
  ] }),
986
- /* @__PURE__ */ s(Z.Body, { children: /* @__PURE__ */ v(Q, { gap: "3", children: [
987
- i ? /* @__PURE__ */ s(H, { children: i }) : null,
986
+ /* @__PURE__ */ s(Z.Body, { children: /* @__PURE__ */ y(Q, { gap: "3", children: [
987
+ i ? /* @__PURE__ */ s(F, { children: i }) : null,
988
988
  d
989
989
  ] }) }),
990
- /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ v(Q, { direction: "row", gap: "1", children: [
990
+ /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ y(Q, { direction: "row", gap: "1", children: [
991
991
  /* @__PURE__ */ s(ue, { onClick: a, children: "Close" }),
992
992
  /* @__PURE__ */ s(ue, { loading: e, variant: "destructive", onClick: u, children: r })
993
993
  ] }) })
994
994
  ] }) })
995
995
  ] }) })
996
996
  );
997
- }, jo = (o) => o.isDirectory ? o.isGitRepo ? An : qt : Pn, Uo = (o, e) => {
997
+ }, qo = (o) => o.isDirectory ? o.isGitRepo ? _n : Kt : On, Ko = (o, e) => {
998
998
  const t = e.trim().toLowerCase();
999
999
  return t ? o.filter((n) => `${n.name} ${n.path}`.toLowerCase().includes(t)) : o;
1000
- }, Qo = (o) => {
1001
- const e = k(22), {
1000
+ }, Xo = (o) => {
1001
+ const e = O(22), {
1002
1002
  entry: t,
1003
1003
  selectedPath: n,
1004
1004
  selectedPathSet: r,
@@ -1011,16 +1011,16 @@ const vi = (o) => {
1011
1011
  e[4] !== t || e[5] !== c || e[6] !== i ? (d = () => {
1012
1012
  c || i(t);
1013
1013
  }, e[4] = t, e[5] = c, e[6] = i, e[7] = d) : d = e[7];
1014
- const u = d, f = n === t.path, h = t.path, m = t.name;
1015
- let p;
1016
- e[8] !== t ? (p = jo(t), e[8] = t, e[9] = p) : p = e[9];
1014
+ const u = d, f = n === t.path, h = t.path, p = t.name;
1015
+ let m;
1016
+ e[8] !== t ? (m = qo(t), e[8] = t, e[9] = m) : m = e[9];
1017
1017
  let g;
1018
- e[10] !== p ? (g = /* @__PURE__ */ s(ce, { as: p, boxSize: "16px" }), e[10] = p, e[11] = g) : g = e[11];
1019
- let S;
1020
- e[12] !== t.isGitRepo ? (S = t.isGitRepo ? /* @__PURE__ */ s(Te, { 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] = S) : S = 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 x;
1020
+ e[12] !== t.isGitRepo ? (x = t.isGitRepo ? /* @__PURE__ */ s(Te, { 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] = x) : x = e[13];
1021
1021
  let b;
1022
- return e[14] !== t.name || e[15] !== t.path || e[16] !== u || e[17] !== a || e[18] !== f || e[19] !== g || e[20] !== S ? (b = /* @__PURE__ */ s(Qe, { variant: "compact", isSelected: f, id: h, label: m, icon: g, endContent: S, disabled: a, onActivate: u }), e[14] = t.name, e[15] = t.path, e[16] = u, e[17] = a, e[18] = f, e[19] = g, e[20] = S, e[21] = b) : b = e[21], b;
1023
- }, qo = (o) => {
1022
+ return e[14] !== t.name || e[15] !== t.path || e[16] !== u || e[17] !== a || e[18] !== f || e[19] !== g || e[20] !== x ? (b = /* @__PURE__ */ s(Qe, { variant: "compact", isSelected: f, id: h, label: p, icon: g, endContent: x, disabled: a, onActivate: u }), e[14] = t.name, e[15] = t.path, e[16] = u, e[17] = a, e[18] = f, e[19] = g, e[20] = x, e[21] = b) : b = e[21], b;
1023
+ }, Yo = (o) => {
1024
1024
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(o.key))
1025
1025
  return;
1026
1026
  const e = Array.from(o.currentTarget.querySelectorAll('button[role="option"]:not(:disabled)'));
@@ -1028,8 +1028,8 @@ const vi = (o) => {
1028
1028
  return;
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
- }, Ii = (o) => {
1032
- const e = k(68), {
1031
+ }, $i = (o) => {
1032
+ const e = O(68), {
1033
1033
  open: t,
1034
1034
  title: n,
1035
1035
  description: r,
@@ -1041,98 +1041,98 @@ const vi = (o) => {
1041
1041
  error: u,
1042
1042
  isSelectDisabled: f,
1043
1043
  onClose: h,
1044
- onSelect: m,
1045
- onSelectHomeDirectory: p,
1044
+ onSelect: p,
1045
+ onSelectHomeDirectory: m,
1046
1046
  onSelectParentDirectory: g,
1047
- onEntryClick: S
1048
- } = o, b = n === void 0 ? "Select folder" : n, x = i === void 0 ? "" : i, w = c === void 0 ? null : c;
1049
- let I;
1050
- e[0] !== a ? (I = a === void 0 ? [] : a, e[0] = a, e[1] = I) : I = e[1];
1051
- const y = I, L = d === void 0 ? !1 : d, R = u === void 0 ? "" : u, E = f === void 0 ? !1 : f, [P, C] = fe("");
1052
- let O;
1053
- e[2] !== y ? (O = new Set(y), e[2] = y, e[3] = O) : O = e[3];
1054
- const z = O, A = Uo(l, P), _ = x || "Home";
1055
- let $, T;
1056
- e[4] !== t || e[5] !== _ ? (T = () => {
1057
- !t || !_ || C("");
1058
- }, $ = [t, _], e[4] = t, e[5] = _, e[6] = $, e[7] = T) : ($ = e[6], T = e[7]), me(T, $);
1059
- const N = Z, F = !0, X = !0, B = !1;
1060
- let W;
1061
- e[8] !== h ? (W = (ze) => !ze.open && h(), e[8] = h, e[9] = W) : W = e[9];
1047
+ onEntryClick: x
1048
+ } = o, b = n === void 0 ? "Select folder" : n, k = i === void 0 ? "" : i, A = c === void 0 ? null : c;
1049
+ let R;
1050
+ e[0] !== a ? (R = a === void 0 ? [] : a, e[0] = a, e[1] = R) : R = e[1];
1051
+ const S = R, $ = d === void 0 ? !1 : d, I = u === void 0 ? "" : u, P = f === void 0 ? !1 : f, [w, C] = fe("");
1062
1052
  let D;
1063
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ s(Z.Backdrop, {}), e[10] = D) : D = e[10];
1053
+ e[2] !== S ? (D = new Set(S), e[2] = S, e[3] = D) : D = e[3];
1054
+ const L = D, T = Ko(l, w), z = k || "Home";
1055
+ let E, v;
1056
+ e[4] !== t || e[5] !== z ? (v = () => {
1057
+ !t || !z || C("");
1058
+ }, E = [t, z], e[4] = t, e[5] = z, e[6] = E, e[7] = v) : (E = e[6], v = e[7]), me(v, E);
1059
+ const _ = Z, B = !0, K = !0, W = !1;
1060
+ let H;
1061
+ e[8] !== h ? (H = (ze) => !ze.open && h(), e[8] = h, e[9] = H) : H = e[9];
1062
+ let N;
1063
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ s(Z.Backdrop, {}), e[10] = N) : N = e[10];
1064
1064
  const q = Z, j = Z;
1065
1065
  let V;
1066
- e[11] !== b ? (V = /* @__PURE__ */ s(H, { textStyle: "heading/M", children: b }), e[11] = b, e[12] = V) : V = e[12];
1066
+ e[11] !== b ? (V = /* @__PURE__ */ s(F, { textStyle: "heading/M", children: b }), e[11] = b, e[12] = V) : V = e[12];
1067
1067
  let U;
1068
- e[13] !== r ? (U = r ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = U) : U = e[14];
1069
- let K;
1070
- e[15] !== V || e[16] !== U ? (K = /* @__PURE__ */ s(Z.Header, { children: /* @__PURE__ */ v(Q, { gap: "xs", children: [
1068
+ e[13] !== r ? (U = r ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = U) : U = e[14];
1069
+ let X;
1070
+ e[15] !== V || e[16] !== U ? (X = /* @__PURE__ */ s(Z.Header, { children: /* @__PURE__ */ y(Q, { gap: "xs", children: [
1071
1071
  V,
1072
1072
  U
1073
- ] }) }), e[15] = V, e[16] = U, e[17] = K) : K = e[17];
1073
+ ] }) }), e[15] = V, e[16] = U, e[17] = X) : X = e[17];
1074
1074
  const se = Z, J = Q, ee = "md";
1075
1075
  let re;
1076
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ s(Rn, { size: 16 }), e[18] = re) : re = e[18];
1076
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ s(zn, { size: 16 }), e[18] = re) : re = e[18];
1077
1077
  let te;
1078
- e[19] !== p ? (te = /* @__PURE__ */ s(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: p, children: re }), e[19] = p, e[20] = te) : te = e[20];
1079
- const le = !x || x === "/";
1078
+ e[19] !== m ? (te = /* @__PURE__ */ s(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: re }), e[19] = m, e[20] = te) : te = e[20];
1079
+ const le = !k || k === "/";
1080
1080
  let ne;
1081
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(kn, { size: 16 }), e[21] = ne) : ne = e[21];
1081
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(Nn, { size: 16 }), e[21] = ne) : ne = e[21];
1082
1082
  let Y;
1083
1083
  e[22] !== g || e[23] !== le ? (Y = /* @__PURE__ */ s(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: le, children: ne }), e[22] = g, e[23] = le, e[24] = Y) : Y = e[24];
1084
1084
  let ie;
1085
- e[25] !== _ ? (ie = /* @__PURE__ */ s(H, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: _ }), e[25] = _, e[26] = ie) : ie = e[26];
1085
+ e[25] !== z ? (ie = /* @__PURE__ */ s(F, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: z }), e[25] = z, e[26] = ie) : ie = e[26];
1086
1086
  let oe;
1087
- e[27] !== te || e[28] !== Y || e[29] !== ie ? (oe = /* @__PURE__ */ v(Q, { direction: "row", gap: "sm", align: "center", children: [
1087
+ e[27] !== te || e[28] !== Y || e[29] !== ie ? (oe = /* @__PURE__ */ y(Q, { direction: "row", gap: "sm", align: "center", children: [
1088
1088
  te,
1089
1089
  Y,
1090
1090
  ie
1091
1091
  ] }), e[27] = te, e[28] = Y, e[29] = ie, e[30] = oe) : oe = e[30];
1092
1092
  const he = Q, Ae = "0", xe = "1px", ve = "md", ye = "border.subtle", Re = "hidden";
1093
1093
  let M;
1094
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ s(Qt, { size: 14 }), e[31] = M) : M = e[31];
1094
+ e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ s(qt, { size: 14 }), e[31] = M) : M = e[31];
1095
1095
  let be;
1096
1096
  e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = (ze) => C(ze.target.value), e[32] = be) : be = e[32];
1097
1097
  let Ce;
1098
- e[33] !== P ? (Ce = /* @__PURE__ */ s(Vt, { startElement: M, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Mt, { mx: "xs", value: P, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: be }) }), e[33] = P, e[34] = Ce) : Ce = e[34];
1099
- const we = L ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : R ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: R }) : A.length === 0 ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(tt, { maxHeight: "320px", contentProps: {
1098
+ e[33] !== w ? (Ce = /* @__PURE__ */ s(Gt, { startElement: M, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Vt, { mx: "xs", value: w, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: be }) }), e[33] = w, e[34] = Ce) : Ce = e[34];
1099
+ const we = $ ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : I ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: I }) : T.length === 0 ? /* @__PURE__ */ s(F, { 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(Q, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: qo, children: A.map((ze) => /* @__PURE__ */ s(Qo, { entry: ze, selectedPath: w, selectedPathSet: z, onEntryClick: S }, ze.path)) }) });
1101
+ }, children: /* @__PURE__ */ s(Q, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Yo, children: T.map((ze) => /* @__PURE__ */ s(Xo, { entry: ze, selectedPath: A, selectedPathSet: L, onEntryClick: x }, ze.path)) }) });
1102
1102
  let Se;
1103
- e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */ v(he, { gap: Ae, borderWidth: xe, borderRadius: ve, borderColor: ye, overflow: Re, children: [
1103
+ e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */ y(he, { gap: Ae, borderWidth: xe, borderRadius: ve, borderColor: ye, overflow: Re, children: [
1104
1104
  Ce,
1105
1105
  we
1106
1106
  ] }), e[35] = he, e[36] = Ce, e[37] = we, e[38] = Se) : Se = e[38];
1107
1107
  let ke;
1108
- e[39] !== J || e[40] !== oe || e[41] !== Se ? (ke = /* @__PURE__ */ v(J, { gap: ee, children: [
1108
+ e[39] !== J || e[40] !== oe || e[41] !== Se ? (ke = /* @__PURE__ */ y(J, { gap: ee, children: [
1109
1109
  oe,
1110
1110
  Se
1111
1111
  ] }), e[39] = J, e[40] = oe, e[41] = Se, e[42] = ke) : ke = e[42];
1112
- let Ee;
1113
- e[43] !== se.Body || e[44] !== ke ? (Ee = /* @__PURE__ */ s(se.Body, { children: ke }), e[43] = se.Body, e[44] = ke, e[45] = Ee) : Ee = e[45];
1114
1112
  let $e;
1115
- e[46] !== h ? ($e = /* @__PURE__ */ s(ue, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = $e) : $e = e[47];
1113
+ e[43] !== se.Body || e[44] !== ke ? ($e = /* @__PURE__ */ s(se.Body, { children: ke }), e[43] = se.Body, e[44] = ke, e[45] = $e) : $e = e[45];
1114
+ let Ee;
1115
+ e[46] !== h ? (Ee = /* @__PURE__ */ s(ue, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = Ee) : Ee = e[47];
1116
1116
  let De;
1117
- e[48] !== E || e[49] !== m ? (De = /* @__PURE__ */ s(ue, { onClick: m, disabled: E, children: "Select repository" }), e[48] = E, e[49] = m, e[50] = De) : De = e[50];
1117
+ e[48] !== P || e[49] !== p ? (De = /* @__PURE__ */ s(ue, { onClick: p, disabled: P, children: "Select repository" }), e[48] = P, e[49] = p, e[50] = De) : De = e[50];
1118
1118
  let Le;
1119
- e[51] !== $e || e[52] !== De ? (Le = /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ v(Q, { direction: "row", gap: "sm", children: [
1120
- $e,
1119
+ e[51] !== Ee || e[52] !== De ? (Le = /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ y(Q, { direction: "row", gap: "sm", children: [
1120
+ Ee,
1121
1121
  De
1122
- ] }) }), e[51] = $e, e[52] = De, e[53] = Le) : Le = e[53];
1122
+ ] }) }), e[51] = Ee, e[52] = De, e[53] = Le) : Le = e[53];
1123
1123
  let Oe;
1124
- e[54] !== j.Content || e[55] !== K || e[56] !== Ee || e[57] !== Le ? (Oe = /* @__PURE__ */ v(j.Content, { children: [
1125
- K,
1126
- Ee,
1124
+ e[54] !== j.Content || e[55] !== X || e[56] !== $e || e[57] !== Le ? (Oe = /* @__PURE__ */ y(j.Content, { children: [
1125
+ X,
1126
+ $e,
1127
1127
  Le
1128
- ] }), e[54] = j.Content, e[55] = K, e[56] = Ee, e[57] = Le, e[58] = Oe) : Oe = e[58];
1128
+ ] }), e[54] = j.Content, e[55] = X, e[56] = $e, e[57] = Le, e[58] = Oe) : Oe = e[58];
1129
1129
  let _e;
1130
1130
  e[59] !== q.Positioner || e[60] !== Oe ? (_e = /* @__PURE__ */ s(q.Positioner, { children: Oe }), e[59] = q.Positioner, e[60] = Oe, e[61] = _e) : _e = e[61];
1131
1131
  let qe;
1132
- return e[62] !== t || e[63] !== N.Root || e[64] !== W || e[65] !== D || e[66] !== _e ? (qe = /* @__PURE__ */ v(N.Root, { lazyMount: F, unmountOnExit: X, closeOnInteractOutside: B, open: t, onOpenChange: W, children: [
1133
- D,
1132
+ return e[62] !== t || e[63] !== _.Root || e[64] !== H || e[65] !== N || e[66] !== _e ? (qe = /* @__PURE__ */ y(_.Root, { lazyMount: B, unmountOnExit: K, closeOnInteractOutside: W, open: t, onOpenChange: H, children: [
1133
+ N,
1134
1134
  _e
1135
- ] }), e[62] = t, e[63] = N.Root, e[64] = W, e[65] = D, e[66] = _e, e[67] = qe) : qe = e[67], qe;
1135
+ ] }), e[62] = t, e[63] = _.Root, e[64] = H, e[65] = N, e[66] = _e, e[67] = qe) : qe = e[67], qe;
1136
1136
  }, Ze = {
1137
1137
  alignItems: "center",
1138
1138
  display: "inline-flex",
@@ -1152,7 +1152,7 @@ const vi = (o) => {
1152
1152
  _focusVisible: {
1153
1153
  outline: "none"
1154
1154
  }
1155
- }, wt = {
1155
+ }, It = {
1156
1156
  ...Ze,
1157
1157
  color: "fg",
1158
1158
  cursor: "default",
@@ -1160,15 +1160,15 @@ const vi = (o) => {
1160
1160
  _hover: {
1161
1161
  textDecoration: "none"
1162
1162
  }
1163
- }, Xo = (o) => !!(o.url || o.onClick), Ko = (o) => {
1164
- const e = k(14), {
1163
+ }, Zo = (o) => !!(o.url || o.onClick), Jo = (o) => {
1164
+ const e = O(14), {
1165
1165
  item: t,
1166
1166
  isCurrent: n,
1167
1167
  linkComponent: r
1168
1168
  } = o;
1169
- if (n && !Xo(t)) {
1169
+ if (n && !Zo(t)) {
1170
1170
  let l;
1171
- return e[0] !== t.title ? (l = /* @__PURE__ */ s(pe.CurrentLink, { ...wt, children: t.title }), e[0] = t.title, e[1] = l) : l = e[1], l;
1171
+ return e[0] !== t.title ? (l = /* @__PURE__ */ s(pe.CurrentLink, { ...It, children: t.title }), e[0] = t.title, e[1] = l) : l = e[1], l;
1172
1172
  }
1173
1173
  if (t.url && r) {
1174
1174
  let l;
@@ -1183,13 +1183,13 @@ const vi = (o) => {
1183
1183
  return e[9] !== t.onClick || e[10] !== t.title ? (l = /* @__PURE__ */ s(pe.Link, { as: "button", type: "button", onClick: t.onClick, ...Ze, children: t.title }), e[9] = t.onClick, e[10] = t.title, e[11] = l) : l = e[11], l;
1184
1184
  }
1185
1185
  let i;
1186
- return e[12] !== t.title ? (i = /* @__PURE__ */ s(pe.Link, { as: "span", ...wt, children: t.title }), e[12] = t.title, e[13] = i) : i = e[13], i;
1187
- }, Yo = (o) => {
1188
- const e = k(6), {
1186
+ return e[12] !== t.title ? (i = /* @__PURE__ */ s(pe.Link, { as: "span", ...It, children: t.title }), e[12] = t.title, e[13] = i) : i = e[13], i;
1187
+ }, er = (o) => {
1188
+ const e = O(6), {
1189
1189
  item: t
1190
1190
  } = o;
1191
1191
  let n;
1192
- e[0] !== o ? (n = /* @__PURE__ */ s(Ko, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1192
+ e[0] !== o ? (n = /* @__PURE__ */ s(Jo, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1193
1193
  const r = n;
1194
1194
  if (!t.contextMenuActions?.length)
1195
1195
  return r;
@@ -1198,9 +1198,9 @@ const vi = (o) => {
1198
1198
  placement: "bottom-start"
1199
1199
  }, e[2] = i) : i = e[2];
1200
1200
  let l;
1201
- return e[3] !== r || e[4] !== t.contextMenuActions ? (l = /* @__PURE__ */ s(Kt, { actions: t.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = l) : l = e[5], l;
1202
- }, Zo = (o) => {
1203
- const e = k(3), {
1201
+ return e[3] !== r || e[4] !== t.contextMenuActions ? (l = /* @__PURE__ */ s(Yt, { actions: t.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = l) : l = e[5], l;
1202
+ }, tr = (o) => {
1203
+ const e = O(3), {
1204
1204
  separator: t
1205
1205
  } = o;
1206
1206
  if (t === void 0) {
@@ -1209,8 +1209,8 @@ const vi = (o) => {
1209
1209
  }
1210
1210
  let n;
1211
1211
  return e[1] !== t ? (n = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = n) : n = e[2], n;
1212
- }, Ti = gt.forwardRef(function(e, t) {
1213
- const n = k(21);
1212
+ }, Ei = bt.forwardRef(function(e, t) {
1213
+ const n = O(21);
1214
1214
  let r, i, l, c, a;
1215
1215
  n[0] !== e ? ({
1216
1216
  separator: c,
@@ -1222,12 +1222,12 @@ const vi = (o) => {
1222
1222
  let d;
1223
1223
  if (n[6] !== r || n[7] !== i || n[8] !== c) {
1224
1224
  let h;
1225
- n[10] !== r || n[11] !== i.length || n[12] !== c ? (h = (m, p) => {
1226
- const g = p === i.length - 1;
1227
- return /* @__PURE__ */ v(gt.Fragment, { children: [
1228
- /* @__PURE__ */ s(pe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Yo, { item: m, isCurrent: g, linkComponent: r }) }),
1229
- g ? null : /* @__PURE__ */ s(Zo, { separator: c })
1230
- ] }, p);
1225
+ n[10] !== r || n[11] !== i.length || n[12] !== c ? (h = (p, m) => {
1226
+ const g = m === i.length - 1;
1227
+ return /* @__PURE__ */ y(bt.Fragment, { children: [
1228
+ /* @__PURE__ */ s(pe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(er, { item: p, isCurrent: g, linkComponent: r }) }),
1229
+ g ? null : /* @__PURE__ */ s(tr, { separator: c })
1230
+ ] }, m);
1231
1231
  }, n[10] = r, n[11] = i.length, n[12] = c, n[13] = h) : h = n[13], d = i.map(h), n[6] = r, n[7] = i, n[8] = c, n[9] = d;
1232
1232
  } else
1233
1233
  d = n[9];
@@ -1235,23 +1235,23 @@ const vi = (o) => {
1235
1235
  n[14] !== a || n[15] !== d ? (u = /* @__PURE__ */ s(pe.List, { gap: a, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: d }), n[14] = a, n[15] = d, n[16] = u) : u = n[16];
1236
1236
  let f;
1237
1237
  return n[17] !== t || n[18] !== l || n[19] !== u ? (f = /* @__PURE__ */ s(pe.Root, { ref: t, ...l, children: u }), n[17] = t, n[18] = l, n[19] = u, n[20] = f) : f = n[20], f;
1238
- }), Jo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, er = (o) => {
1239
- const e = k(3);
1238
+ }), nr = `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")`, or = (o) => {
1239
+ const e = O(3);
1240
1240
  let t;
1241
1241
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
1242
1242
  backgroundClip: "padding-box",
1243
- backgroundImage: Jo,
1243
+ backgroundImage: nr,
1244
1244
  display: "flex",
1245
1245
  width: "100%"
1246
1246
  }, e[0] = t) : t = e[0];
1247
1247
  let n;
1248
1248
  return e[1] !== o ? (n = /* @__PURE__ */ s(G, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1249
- }, Pi = (o) => {
1250
- const e = k(2);
1249
+ }, Di = (o) => {
1250
+ const e = O(2);
1251
1251
  let t;
1252
- return e[0] !== o ? (t = /* @__PURE__ */ s(G, { p: "2", children: /* @__PURE__ */ s(H, { 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(G, { p: "2", children: /* @__PURE__ */ s(F, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
1253
1253
  };
1254
- class Ai extends pn {
1254
+ class Li extends wn {
1255
1255
  state = {
1256
1256
  error: null
1257
1257
  };
@@ -1276,31 +1276,31 @@ class Ai extends pn {
1276
1276
  } = this.props, {
1277
1277
  error: r
1278
1278
  } = this.state;
1279
- return r ? t || /* @__PURE__ */ s(tr, { error: r, label: n, onReset: this.handleReset }) : e;
1279
+ return r ? t || /* @__PURE__ */ s(rr, { error: r, label: n, onReset: this.handleReset }) : e;
1280
1280
  }
1281
1281
  }
1282
- const tr = (o) => {
1283
- const e = k(12), {
1282
+ const rr = (o) => {
1283
+ const e = O(12), {
1284
1284
  error: t,
1285
1285
  label: n,
1286
1286
  onReset: r
1287
1287
  } = o, i = n ?? "Something went wrong";
1288
1288
  let l;
1289
- e[0] !== i ? (l = /* @__PURE__ */ s(H, { textStyle: "paragraph/M/medium", children: i }), e[0] = i, e[1] = l) : l = e[1];
1289
+ e[0] !== i ? (l = /* @__PURE__ */ s(F, { textStyle: "paragraph/M/medium", children: i }), e[0] = i, e[1] = l) : l = e[1];
1290
1290
  const c = t.message || "An unexpected error occurred while rendering this section.";
1291
1291
  let a;
1292
- e[2] !== c ? (a = /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", children: c }), e[2] = c, e[3] = a) : a = e[3];
1292
+ e[2] !== c ? (a = /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: c }), e[2] = c, e[3] = a) : a = e[3];
1293
1293
  let d;
1294
1294
  e[4] !== r ? (d = r ? /* @__PURE__ */ s(ue, { size: "sm", variant: "primary", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
1295
1295
  let u;
1296
- e[6] !== a || e[7] !== d ? (u = /* @__PURE__ */ v(Q, { gap: "sm", children: [
1296
+ e[6] !== a || e[7] !== d ? (u = /* @__PURE__ */ y(Q, { gap: "sm", children: [
1297
1297
  a,
1298
1298
  d
1299
1299
  ] }), e[6] = a, e[7] = d, e[8] = u) : u = e[8];
1300
1300
  let f;
1301
- return e[9] !== l || e[10] !== u ? (f = /* @__PURE__ */ s(er, { height: "100%", width: "100%", children: /* @__PURE__ */ s(cn, { children: /* @__PURE__ */ s(ft, { status: "error", title: l, children: u }) }) }), e[9] = l, e[10] = u, e[11] = f) : f = e[11], f;
1302
- }, nr = (o) => !!o && o !== "circle", or = (o) => {
1303
- const e = k(18);
1301
+ return e[9] !== l || e[10] !== u ? (f = /* @__PURE__ */ s(or, { height: "100%", width: "100%", children: /* @__PURE__ */ s(bn, { children: /* @__PURE__ */ s(ht, { status: "error", title: l, children: u }) }) }), e[9] = l, e[10] = u, e[11] = f) : f = e[11], f;
1302
+ }, lr = (o) => !!o && o !== "circle", ir = (o) => {
1303
+ const e = O(18);
1304
1304
  let t, n, r, i, l;
1305
1305
  e[0] !== o ? ({
1306
1306
  color: t,
@@ -1311,13 +1311,13 @@ const tr = (o) => {
1311
1311
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5]);
1312
1312
  const c = l === void 0 ? !0 : l;
1313
1313
  let a;
1314
- e[6] !== n || e[7] !== r ? (a = zn(n, r), e[6] = n, e[7] = r, e[8] = a) : a = e[8];
1314
+ e[6] !== n || e[7] !== r ? (a = Gn(n, r), e[6] = n, e[7] = r, e[8] = a) : a = e[8];
1315
1315
  const d = a, u = `${t}.500/15`;
1316
1316
  let f;
1317
- e[9] !== d || e[10] !== t || e[11] !== n || e[12] !== c ? (f = c && nr(n) ? /* @__PURE__ */ s(ce, { as: d, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(G, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = d, e[10] = t, e[11] = n, e[12] = c, e[13] = f) : f = e[13];
1317
+ e[9] !== d || e[10] !== t || e[11] !== n || e[12] !== c ? (f = c && lr(n) ? /* @__PURE__ */ s(ce, { as: d, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(G, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = d, e[10] = t, e[11] = n, e[12] = c, e[13] = f) : f = e[13];
1318
1318
  let h;
1319
- return e[14] !== i || e[15] !== u || e[16] !== f ? (h = /* @__PURE__ */ s(dn, { 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
- }, rr = Pe("button", {
1319
+ return e[14] !== i || e[15] !== u || e[16] !== f ? (h = /* @__PURE__ */ s(Sn, { 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
+ }, sr = Pe("button", {
1321
1321
  base: {
1322
1322
  display: "inline-flex",
1323
1323
  borderRadius: "compact",
@@ -1328,7 +1328,7 @@ const tr = (o) => {
1328
1328
  opacity: 0.5
1329
1329
  }
1330
1330
  }
1331
- }), lr = Pe("button", {
1331
+ }), ar = Pe("button", {
1332
1332
  base: {
1333
1333
  boxSize: "tag-color-dot",
1334
1334
  borderRadius: "full",
@@ -1341,7 +1341,7 @@ const tr = (o) => {
1341
1341
  outlineColor: "fg"
1342
1342
  }
1343
1343
  }
1344
- }), ir = Pe("button", {
1344
+ }), cr = Pe("button", {
1345
1345
  base: {
1346
1346
  display: "inline-flex",
1347
1347
  alignItems: "center",
@@ -1354,8 +1354,8 @@ const tr = (o) => {
1354
1354
  bg: "bg.hover"
1355
1355
  }
1356
1356
  }
1357
- }), sr = (o) => {
1358
- const e = k(39), {
1357
+ }), dr = (o) => {
1358
+ const e = O(39), {
1359
1359
  color: t,
1360
1360
  colorOptions: n,
1361
1361
  icon: r,
@@ -1367,53 +1367,53 @@ const tr = (o) => {
1367
1367
  colorLabel: u,
1368
1368
  iconLabel: f,
1369
1369
  "aria-label": h
1370
- } = o, m = n === void 0 ? Bn : n, p = i === void 0 ? Nn : i, g = d === void 0 ? !0 : d, S = u === void 0 ? "Color" : u, b = f === void 0 ? "Icon" : f, x = h === void 0 ? "Pick color and icon" : h, w = r === "circle" ? null : r ?? null;
1371
- let I;
1372
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
1370
+ } = o, p = n === void 0 ? Un : n, m = i === void 0 ? jn : i, g = d === void 0 ? !0 : d, x = u === void 0 ? "Color" : u, b = f === void 0 ? "Icon" : f, k = h === void 0 ? "Pick color and icon" : h, A = r === "circle" ? null : r ?? null;
1371
+ let R;
1372
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
1373
1373
  placement: "bottom-start"
1374
- }, e[0] = I) : I = e[0];
1375
- let y;
1376
- e[1] !== t || e[2] !== r || e[3] !== p || e[4] !== g ? (y = /* @__PURE__ */ s(or, { color: t, icon: r, iconOptions: p, showIcon: g }), e[1] = t, e[2] = r, e[3] = p, e[4] = g, e[5] = y) : y = e[5];
1377
- let L;
1378
- e[6] !== x || e[7] !== a || e[8] !== y ? (L = /* @__PURE__ */ s(Ke.Trigger, { asChild: !0, children: /* @__PURE__ */ s(rr, { type: "button", disabled: a, "aria-label": x, children: y }) }), e[6] = x, e[7] = a, e[8] = y, e[9] = L) : L = e[9];
1379
- const R = g ? "tag-picker" : "tag-picker-color-only";
1380
- let E;
1381
- e[10] !== S ? (E = /* @__PURE__ */ s(H, { textStyle: "label/S/medium", color: "fg.muted", children: S }), e[10] = S, e[11] = E) : E = e[11];
1382
- const P = `repeat(${g ? 10 : 5}, 1fr)`;
1374
+ }, e[0] = R) : R = e[0];
1375
+ let S;
1376
+ e[1] !== t || e[2] !== r || e[3] !== m || e[4] !== g ? (S = /* @__PURE__ */ s(ir, { 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];
1377
+ let $;
1378
+ e[6] !== k || e[7] !== a || e[8] !== S ? ($ = /* @__PURE__ */ s(Xe.Trigger, { asChild: !0, children: /* @__PURE__ */ s(sr, { type: "button", disabled: a, "aria-label": k, children: S }) }), e[6] = k, e[7] = a, e[8] = S, e[9] = $) : $ = e[9];
1379
+ const I = g ? "tag-picker" : "tag-picker-color-only";
1380
+ let P;
1381
+ e[10] !== x ? (P = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: x }), e[10] = x, e[11] = P) : P = e[11];
1382
+ const w = `repeat(${g ? 10 : 5}, 1fr)`;
1383
1383
  let C;
1384
- if (e[12] !== t || e[13] !== m || e[14] !== l) {
1385
- let T;
1386
- e[16] !== t || e[17] !== l ? (T = (N) => /* @__PURE__ */ s(lr, { type: "button", bg: `${N}.500`, "aria-label": N, "aria-pressed": N === t, "data-selected": N === t ? "" : void 0, onClick: () => l(N) }, N), e[16] = t, e[17] = l, e[18] = T) : T = e[18], C = m.map(T), e[12] = t, e[13] = m, e[14] = l, e[15] = C;
1384
+ if (e[12] !== t || e[13] !== p || e[14] !== l) {
1385
+ let v;
1386
+ e[16] !== t || e[17] !== l ? (v = (_) => /* @__PURE__ */ s(ar, { type: "button", bg: `${_}.500`, "aria-label": _, "aria-pressed": _ === t, "data-selected": _ === t ? "" : void 0, onClick: () => l(_) }, _), e[16] = t, e[17] = l, e[18] = v) : v = e[18], C = p.map(v), e[12] = t, e[13] = p, e[14] = l, e[15] = C;
1387
1387
  } else
1388
1388
  C = e[15];
1389
- let O;
1390
- e[19] !== P || e[20] !== C ? (O = /* @__PURE__ */ s(pt, { templateColumns: P, gap: "2xs", justifyItems: "center", children: C }), e[19] = P, e[20] = C, e[21] = O) : O = e[21];
1391
- let z;
1392
- e[22] !== t || e[23] !== b || e[24] !== p || e[25] !== c || e[26] !== w || e[27] !== g ? (z = g ? /* @__PURE__ */ v(Me, { children: [
1389
+ let D;
1390
+ e[19] !== w || e[20] !== C ? (D = /* @__PURE__ */ s(gt, { templateColumns: w, gap: "2xs", justifyItems: "center", children: C }), e[19] = w, e[20] = C, e[21] = D) : D = e[21];
1391
+ let L;
1392
+ e[22] !== t || e[23] !== b || e[24] !== m || e[25] !== c || e[26] !== A || e[27] !== g ? (L = g ? /* @__PURE__ */ y(Me, { children: [
1393
1393
  /* @__PURE__ */ s(G, { borderTop: "subtle" }),
1394
- /* @__PURE__ */ s(H, { textStyle: "label/S/medium", color: "fg.muted", children: b }),
1395
- /* @__PURE__ */ s(pt, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: p.map((T) => {
1396
- const N = T.value === w;
1397
- return /* @__PURE__ */ s(ir, { type: "button", color: N ? `${t}.500` : void 0, bg: N ? `${t}.500/15` : void 0, _hover: N ? {
1394
+ /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: b }),
1395
+ /* @__PURE__ */ s(gt, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((v) => {
1396
+ const _ = v.value === A;
1397
+ return /* @__PURE__ */ s(cr, { type: "button", color: _ ? `${t}.500` : void 0, bg: _ ? `${t}.500/15` : void 0, _hover: _ ? {
1398
1398
  bg: `${t}.500/15`
1399
- } : void 0, "aria-label": T.label, "aria-pressed": N, onClick: () => c?.(T.value), children: /* @__PURE__ */ s(ce, { as: T.icon, boxSize: "icon-xs" }) }, T.value ?? "none");
1399
+ } : void 0, "aria-label": v.label, "aria-pressed": _, onClick: () => c?.(v.value), children: /* @__PURE__ */ s(ce, { as: v.icon, boxSize: "icon-xs" }) }, v.value ?? "none");
1400
1400
  }) })
1401
- ] }) : null, e[22] = t, e[23] = b, e[24] = p, e[25] = c, e[26] = w, e[27] = g, e[28] = z) : z = e[28];
1402
- let A;
1403
- e[29] !== E || e[30] !== O || e[31] !== z ? (A = /* @__PURE__ */ v(Q, { gap: "compact", p: "sm", children: [
1404
- E,
1405
- O,
1401
+ ] }) : null, e[22] = t, e[23] = b, e[24] = m, e[25] = c, e[26] = A, e[27] = g, e[28] = L) : L = e[28];
1402
+ let T;
1403
+ e[29] !== P || e[30] !== D || e[31] !== L ? (T = /* @__PURE__ */ y(Q, { gap: "compact", p: "sm", children: [
1404
+ P,
1405
+ D,
1406
+ L
1407
+ ] }), e[29] = P, e[30] = D, e[31] = L, e[32] = T) : T = e[32];
1408
+ let z;
1409
+ e[33] !== T || e[34] !== I ? (z = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Xe.Positioner, { children: /* @__PURE__ */ s(Xe.Content, { width: I, bg: "bg.elevated", children: T }) }) }), e[33] = T, e[34] = I, e[35] = z) : z = e[35];
1410
+ let E;
1411
+ return e[36] !== z || e[37] !== $ ? (E = /* @__PURE__ */ y(Xe.Root, { positioning: R, children: [
1412
+ $,
1406
1413
  z
1407
- ] }), e[29] = E, e[30] = O, e[31] = z, e[32] = A) : A = e[32];
1408
- let _;
1409
- e[33] !== A || e[34] !== R ? (_ = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Ke.Positioner, { children: /* @__PURE__ */ s(Ke.Content, { width: R, bg: "bg.elevated", children: A }) }) }), e[33] = A, e[34] = R, e[35] = _) : _ = e[35];
1410
- let $;
1411
- return e[36] !== _ || e[37] !== L ? ($ = /* @__PURE__ */ v(Ke.Root, { positioning: I, children: [
1412
- L,
1413
- _
1414
- ] }), e[36] = _, e[37] = L, e[38] = $) : $ = e[38], $;
1415
- }, ar = (o) => {
1416
- const e = k(6);
1414
+ ] }), e[36] = z, e[37] = $, e[38] = E) : E = e[38], E;
1415
+ }, ur = (o) => {
1416
+ const e = O(6);
1417
1417
  let t, n;
1418
1418
  e[0] !== o ? ({
1419
1419
  children: t,
@@ -1421,8 +1421,8 @@ const tr = (o) => {
1421
1421
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1422
1422
  let r;
1423
1423
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(G, { 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
- }, cr = (o) => {
1425
- const e = k(6);
1424
+ }, fr = (o) => {
1425
+ const e = O(6);
1426
1426
  let t, n;
1427
1427
  e[0] !== o ? ({
1428
1428
  children: t,
@@ -1430,8 +1430,8 @@ const tr = (o) => {
1430
1430
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1431
1431
  let r;
1432
1432
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(G, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1433
- }, Ri = (o) => {
1434
- const e = k(30), {
1433
+ }, Oi = (o) => {
1434
+ const e = O(30), {
1435
1435
  icon: t,
1436
1436
  name: n,
1437
1437
  description: r,
@@ -1444,45 +1444,45 @@ const tr = (o) => {
1444
1444
  let f;
1445
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
- e[2] !== n ? (h = /* @__PURE__ */ s(H, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
1448
- let m;
1449
- e[4] !== i ? (m = /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: i }), e[4] = i, e[5] = m) : m = e[5];
1447
+ e[2] !== n ? (h = /* @__PURE__ */ s(F, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
1450
1448
  let p;
1451
- e[6] !== l ? (p = l && /* @__PURE__ */ v(Te, { size: "sm", variant: "outline", children: [
1449
+ e[4] !== i ? (p = /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: i }), e[4] = i, e[5] = p) : p = e[5];
1450
+ let m;
1451
+ e[6] !== l ? (m = l && /* @__PURE__ */ y(Te, { size: "sm", variant: "outline", children: [
1452
1452
  "v",
1453
1453
  l
1454
- ] }), e[6] = l, e[7] = p) : p = e[7];
1454
+ ] }), e[6] = l, e[7] = m) : m = e[7];
1455
1455
  let g;
1456
1456
  e[8] !== c ? (g = c && /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: c }), e[8] = c, e[9] = g) : g = e[9];
1457
- let S;
1458
- e[10] !== h || e[11] !== m || e[12] !== p || e[13] !== g ? (S = /* @__PURE__ */ v(ae, { gap: "2", flexWrap: "wrap", children: [
1457
+ let x;
1458
+ e[10] !== h || e[11] !== p || e[12] !== m || e[13] !== g ? (x = /* @__PURE__ */ y(ae, { gap: "2", flexWrap: "wrap", children: [
1459
1459
  h,
1460
- m,
1461
1460
  p,
1461
+ m,
1462
1462
  g
1463
- ] }), e[10] = h, e[11] = m, e[12] = p, e[13] = g, e[14] = S) : S = e[14];
1463
+ ] }), e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = x) : x = e[14];
1464
1464
  let b;
1465
- e[15] !== r ? (b = /* @__PURE__ */ s(H, { color: "fg.muted", children: r }), e[15] = r, e[16] = b) : b = e[16];
1466
- let x;
1467
- e[17] !== S || e[18] !== b ? (x = /* @__PURE__ */ s(G, { flex: "1", minW: "0", children: /* @__PURE__ */ v(Q, { gap: "1", children: [
1468
- S,
1465
+ e[15] !== r ? (b = /* @__PURE__ */ s(F, { color: "fg.muted", children: r }), e[15] = r, e[16] = b) : b = e[16];
1466
+ let k;
1467
+ e[17] !== x || e[18] !== b ? (k = /* @__PURE__ */ s(G, { flex: "1", minW: "0", children: /* @__PURE__ */ y(Q, { gap: "1", children: [
1468
+ x,
1469
1469
  b
1470
- ] }) }), e[17] = S, e[18] = b, e[19] = x) : x = e[19];
1471
- let w;
1472
- e[20] !== u ? (w = u && /* @__PURE__ */ s(ce, { color: "fg.success", children: /* @__PURE__ */ s(et, {}) }), e[20] = u, e[21] = w) : w = e[21];
1473
- const I = d ?? (u ? "Active" : "Connect");
1474
- let y;
1475
- e[22] !== u || e[23] !== I || e[24] !== w ? (y = /* @__PURE__ */ v(ue, { type: "button", disabled: u, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
1476
- w,
1477
- I
1478
- ] }), e[22] = u, e[23] = I, e[24] = w, e[25] = y) : y = e[25];
1479
- let L;
1480
- return e[26] !== f || e[27] !== y || e[28] !== x ? (L = /* @__PURE__ */ s(ar, { children: /* @__PURE__ */ s(cr, { children: /* @__PURE__ */ v(ae, { gap: "4", alignItems: "flex-start", children: [
1470
+ ] }) }), e[17] = x, e[18] = b, e[19] = k) : k = e[19];
1471
+ let A;
1472
+ e[20] !== u ? (A = u && /* @__PURE__ */ s(ce, { color: "fg.success", children: /* @__PURE__ */ s(et, {}) }), e[20] = u, e[21] = A) : A = e[21];
1473
+ const R = d ?? (u ? "Active" : "Connect");
1474
+ let S;
1475
+ e[22] !== u || e[23] !== R || e[24] !== A ? (S = /* @__PURE__ */ y(ue, { type: "button", disabled: u, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
1476
+ A,
1477
+ R
1478
+ ] }), e[22] = u, e[23] = R, e[24] = A, e[25] = S) : S = e[25];
1479
+ let $;
1480
+ return e[26] !== f || e[27] !== S || e[28] !== k ? ($ = /* @__PURE__ */ s(ur, { children: /* @__PURE__ */ s(fr, { children: /* @__PURE__ */ y(ae, { gap: "4", alignItems: "flex-start", children: [
1481
1481
  f,
1482
- x,
1483
- y
1484
- ] }) }) }), e[26] = f, e[27] = y, e[28] = x, e[29] = L) : L = e[29], L;
1485
- }, dr = un({
1482
+ k,
1483
+ S
1484
+ ] }) }) }), e[26] = f, e[27] = S, e[28] = k, e[29] = $) : $ = e[29], $;
1485
+ }, hr = xn({
1486
1486
  className: "ps-segmented-control",
1487
1487
  slots: ["root", "item"],
1488
1488
  base: {
@@ -1551,12 +1551,12 @@ const tr = (o) => {
1551
1551
  size: "sm"
1552
1552
  }
1553
1553
  }), {
1554
- withProvider: ur,
1555
- withContext: fr
1556
- } = ut({
1557
- recipe: dr
1558
- }), hr = ur("div", "root"), mr = fr("button", "item"), ki = (o) => {
1559
- const e = k(20);
1554
+ withProvider: mr,
1555
+ withContext: pr
1556
+ } = ft({
1557
+ recipe: hr
1558
+ }), gr = mr("div", "root"), br = pr("button", "item"), _i = (o) => {
1559
+ const e = O(20);
1560
1560
  let t, n, r, i, l, c;
1561
1561
  e[0] !== o ? ({
1562
1562
  options: i,
@@ -1571,29 +1571,29 @@ const tr = (o) => {
1571
1571
  let u;
1572
1572
  e[12] !== n || e[13] !== r || e[14] !== c ? (u = (f) => {
1573
1573
  const h = f.value === c;
1574
- return /* @__PURE__ */ s(mr, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1574
+ return /* @__PURE__ */ s(br, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1575
1575
  }, e[12] = n, e[13] = r, e[14] = c, e[15] = u) : u = e[15], a = i.map(u), e[7] = n, e[8] = r, e[9] = i, e[10] = c, e[11] = a;
1576
1576
  } else
1577
1577
  a = e[11];
1578
1578
  let d;
1579
- return e[16] !== t || e[17] !== l || e[18] !== a ? (d = /* @__PURE__ */ s(hr, { role: "group", "aria-label": t, ...l, children: a }), e[16] = t, e[17] = l, e[18] = a, e[19] = d) : d = e[19], d;
1580
- }, pr = fn({
1579
+ return e[16] !== t || e[17] !== l || e[18] !== a ? (d = /* @__PURE__ */ s(gr, { role: "group", "aria-label": t, ...l, children: a }), e[16] = t, e[17] = l, e[18] = a, e[19] = d) : d = e[19], d;
1580
+ }, Sr = vn({
1581
1581
  placement: "top",
1582
1582
  pauseOnPageIdle: !0,
1583
1583
  duration: 1e4
1584
- }), Ei = () => {
1585
- const o = k(1);
1584
+ }), zi = () => {
1585
+ const o = O(1);
1586
1586
  let e;
1587
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(hn, { toaster: pr, insetInline: {
1587
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(yn, { toaster: Sr, insetInline: {
1588
1588
  mdDown: "4"
1589
- }, children: gr }) }), o[0] = e) : e = o[0], e;
1589
+ }, children: xr }) }), o[0] = e) : e = o[0], e;
1590
1590
  };
1591
- function gr(o) {
1592
- return /* @__PURE__ */ v(Ne.Root, { width: {
1591
+ function xr(o) {
1592
+ return /* @__PURE__ */ y(Ne.Root, { width: {
1593
1593
  md: "sm"
1594
1594
  }, alignItems: "start", borderRadius: "xs", gap: "xs", px: "sm", py: "xs", minH: "auto", children: [
1595
- o.type === "loading" ? /* @__PURE__ */ s(Gt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Ne.Indicator, {}),
1596
- /* @__PURE__ */ v(Q, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1595
+ o.type === "loading" ? /* @__PURE__ */ s(jt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Ne.Indicator, {}),
1596
+ /* @__PURE__ */ y(Q, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1597
1597
  o.title && /* @__PURE__ */ s(Ne.Title, { textStyle: "label/S/medium", children: o.title }),
1598
1598
  o.description && /* @__PURE__ */ s(tt, { maxHeight: "12rem", contentProps: {
1599
1599
  paddingEnd: "1"
@@ -1603,8 +1603,8 @@ function gr(o) {
1603
1603
  /* @__PURE__ */ s(Ne.CloseTrigger, {})
1604
1604
  ] });
1605
1605
  }
1606
- const $i = (o) => {
1607
- const e = k(6);
1606
+ const Ni = (o) => {
1607
+ const e = O(6);
1608
1608
  let t, n;
1609
1609
  e[0] !== o ? ({
1610
1610
  children: t,
@@ -1612,22 +1612,22 @@ const $i = (o) => {
1612
1612
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1613
1613
  let r;
1614
1614
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { gap: "sm", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1615
- }, It = {
1615
+ }, Tt = {
1616
1616
  open: !0,
1617
1617
  expandedSections: [],
1618
1618
  expandedNodes: [],
1619
1619
  width: null
1620
- }, br = "pstdio/ui/sidenav", Sr = (o) => `${br}/${o}`, Tt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], Pt = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), xr = (o) => ({
1620
+ }, vr = "pstdio/ui/sidenav", yr = (o) => `${vr}/${o}`, Pt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], At = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), Cr = (o) => ({
1621
1621
  open: o.open,
1622
1622
  expandedSections: o.expandedSections,
1623
1623
  expandedNodes: o.expandedNodes,
1624
1624
  width: o.width
1625
- }), vr = (o) => {
1625
+ }), wr = (o) => {
1626
1626
  const {
1627
1627
  storageKey: e,
1628
1628
  initialState: t
1629
1629
  } = o, n = {
1630
- ...It,
1630
+ ...Tt,
1631
1631
  ...t
1632
1632
  };
1633
1633
  return lt()(ot((r) => ({
@@ -1646,66 +1646,66 @@ const $i = (o) => {
1646
1646
  })),
1647
1647
  toggleSection: (i) => r((l) => ({
1648
1648
  ...l,
1649
- expandedSections: Tt(l.expandedSections, i)
1649
+ expandedSections: Pt(l.expandedSections, i)
1650
1650
  })),
1651
1651
  toggleNode: (i) => r((l) => ({
1652
1652
  ...l,
1653
- expandedNodes: Tt(l.expandedNodes, i)
1653
+ expandedNodes: Pt(l.expandedNodes, i)
1654
1654
  })),
1655
1655
  setSectionExpanded: (i, l) => r((c) => ({
1656
1656
  ...c,
1657
- expandedSections: Pt(c.expandedSections, i, l)
1657
+ expandedSections: At(c.expandedSections, i, l)
1658
1658
  })),
1659
1659
  setNodeExpanded: (i, l) => r((c) => ({
1660
1660
  ...c,
1661
- expandedNodes: Pt(c.expandedNodes, i, l)
1661
+ expandedNodes: At(c.expandedNodes, i, l)
1662
1662
  })),
1663
1663
  setWidth: (i) => r((l) => ({
1664
1664
  ...l,
1665
1665
  width: i
1666
1666
  })),
1667
- reset: () => r(It)
1667
+ reset: () => r(Tt)
1668
1668
  }), {
1669
- name: Sr(e),
1669
+ name: yr(e),
1670
1670
  storage: rt(Ve),
1671
- partialize: xr
1671
+ partialize: Cr
1672
1672
  }));
1673
- }, At = /* @__PURE__ */ new Map(), yr = (o, e) => {
1674
- const t = At.get(o);
1673
+ }, Rt = /* @__PURE__ */ new Map(), Ir = (o, e) => {
1674
+ const t = Rt.get(o);
1675
1675
  if (t)
1676
1676
  return t;
1677
- const n = vr({
1677
+ const n = wr({
1678
1678
  storageKey: o,
1679
1679
  initialState: e
1680
1680
  });
1681
- return At.set(o, n), n;
1681
+ return Rt.set(o, n), n;
1682
1682
  }, Be = (o, e, t) => {
1683
- const n = k(3);
1683
+ const n = O(3);
1684
1684
  let r;
1685
- return n[0] !== t || n[1] !== o ? (r = yr(o, t), n[0] = t, n[1] = o, n[2] = r) : r = n[2], nt(r, e);
1686
- }, Cr = (o) => {
1687
- const e = k(2), {
1685
+ return n[0] !== t || n[1] !== o ? (r = Ir(o, t), n[0] = t, n[1] = o, n[2] = r) : r = n[2], nt(r, e);
1686
+ }, Tr = (o) => {
1687
+ const e = O(2), {
1688
1688
  children: t
1689
1689
  } = o;
1690
1690
  if (!t)
1691
1691
  return null;
1692
1692
  let n;
1693
1693
  return e[0] !== t ? (n = /* @__PURE__ */ s(G, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
1694
- }, wr = (o) => {
1695
- const e = k(2), {
1694
+ }, Pr = (o) => {
1695
+ const e = O(2), {
1696
1696
  children: t
1697
1697
  } = o;
1698
1698
  let n;
1699
- return e[0] !== t ? (n = /* @__PURE__ */ s(ae, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: $o, 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
- }, Ir = 240, Tr = 200, Pr = 480, Ar = (o, e, t) => Math.min(Math.max(o, e), t), Rr = (o, e = Ir) => {
1699
+ return e[0] !== t ? (n = /* @__PURE__ */ s(ae, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: Oo, 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
+ }, Ar = 240, Rr = 200, kr = 480, $r = (o, e, t) => Math.min(Math.max(o, e), t), Er = (o, e = Ar) => {
1701
1701
  if (typeof o == "number") return o;
1702
1702
  if (typeof o == "string") {
1703
1703
  const t = parseInt(o, 10);
1704
1704
  if (!Number.isNaN(t)) return t;
1705
1705
  }
1706
1706
  return e;
1707
- }, Di = (o) => {
1708
- const e = k(43), {
1707
+ }, Bi = (o) => {
1708
+ const e = O(43), {
1709
1709
  storageKey: t,
1710
1710
  sections: n,
1711
1711
  activeNodeId: r,
@@ -1717,43 +1717,43 @@ const $i = (o) => {
1717
1717
  emptyLabel: u,
1718
1718
  defaultExpandedSections: f,
1719
1719
  linkComponent: h,
1720
- onNavigate: m,
1721
- onOpenChange: p,
1720
+ onNavigate: p,
1721
+ onOpenChange: m,
1722
1722
  resizable: g,
1723
- defaultWidth: S,
1723
+ defaultWidth: x,
1724
1724
  minWidth: b,
1725
- maxWidth: x,
1726
- virtualize: w
1725
+ maxWidth: k,
1726
+ virtualize: A
1727
1727
  } = o;
1728
- let I;
1729
- e[0] !== i ? (I = i === void 0 ? [] : i, e[0] = i, e[1] = I) : I = e[1];
1730
- const y = I, L = d === void 0 ? !0 : d, R = u === void 0 ? "No items available." : u, E = g === void 0 ? !0 : g, P = b === void 0 ? Tr : b, C = x === void 0 ? Pr : x, O = w === void 0 ? !1 : w, z = He(null);
1731
- let A;
1732
- e[2] !== S || e[3] !== a ? (A = Rr(a, S), e[2] = S, e[3] = a, e[4] = A) : A = e[4];
1733
- const _ = A;
1734
- let $;
1735
- e[5] !== f ? ($ = f ? {
1736
- expandedSections: f
1737
- } : {}, e[5] = f, e[6] = $) : $ = e[6];
1728
+ let R;
1729
+ e[0] !== i ? (R = i === void 0 ? [] : i, e[0] = i, e[1] = R) : R = e[1];
1730
+ const S = R, $ = d === void 0 ? !0 : d, I = u === void 0 ? "No items available." : u, P = g === void 0 ? !0 : g, w = b === void 0 ? Rr : b, C = k === void 0 ? kr : k, D = A === void 0 ? !1 : A, L = He(null);
1738
1731
  let T;
1739
- e[7] !== _ || e[8] !== $ ? (T = {
1740
- ...$,
1741
- width: _
1742
- }, e[7] = _, e[8] = $, e[9] = T) : T = e[9];
1743
- const N = T, F = Be(t, kr, N), X = Be(t, Er, N), B = Be(t, $r, N), W = Be(t, Dr, N), D = Be(t, Lr, N), q = Be(t, Or, N);
1732
+ e[2] !== x || e[3] !== a ? (T = Er(a, x), e[2] = x, e[3] = a, e[4] = T) : T = e[4];
1733
+ const z = T;
1734
+ let E;
1735
+ e[5] !== f ? (E = f ? {
1736
+ expandedSections: f
1737
+ } : {}, e[5] = f, e[6] = E) : E = e[6];
1738
+ let v;
1739
+ e[7] !== z || e[8] !== E ? (v = {
1740
+ ...E,
1741
+ width: z
1742
+ }, e[7] = z, e[8] = E, e[9] = v) : v = e[9];
1743
+ const _ = v, B = Be(t, Dr, _), K = Be(t, Lr, _), W = Be(t, Or, _), H = Be(t, _r, _), N = Be(t, zr, _), q = Be(t, Nr, _);
1744
1744
  let j, V;
1745
- e[10] !== p || e[11] !== F ? (j = () => {
1746
- p?.(F);
1747
- }, V = [p, F], e[10] = p, e[11] = F, e[12] = j, e[13] = V) : (j = e[12], V = e[13]), me(j, V);
1748
- const U = X ?? _;
1749
- let K;
1750
- e[14] !== C || e[15] !== P || e[16] !== U ? (K = Ar(U, P, C), e[14] = C, e[15] = P, e[16] = U, e[17] = K) : K = e[17];
1751
- const se = K;
1752
- if (!F && L)
1745
+ e[10] !== m || e[11] !== B ? (j = () => {
1746
+ m?.(B);
1747
+ }, V = [m, B], e[10] = m, e[11] = B, e[12] = j, e[13] = V) : (j = e[12], V = e[13]), me(j, V);
1748
+ const U = K ?? z;
1749
+ let X;
1750
+ e[14] !== C || e[15] !== w || e[16] !== U ? (X = $r(U, w, C), e[14] = C, e[15] = w, e[16] = U, e[17] = X) : X = e[17];
1751
+ const se = X;
1752
+ if (!B && $)
1753
1753
  return null;
1754
- const J = E ? `${se}px` : a ?? `${_}px`;
1754
+ const J = P ? `${se}px` : a ?? `${z}px`;
1755
1755
  let ee;
1756
- e[18] !== l ? (ee = /* @__PURE__ */ s(wr, { children: l }), e[18] = l, e[19] = ee) : ee = e[19];
1756
+ e[18] !== l ? (ee = /* @__PURE__ */ s(Pr, { children: l }), e[18] = l, e[19] = ee) : ee = e[19];
1757
1757
  let re, te;
1758
1758
  e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
1759
1759
  display: "block",
@@ -1770,40 +1770,40 @@ const $i = (o) => {
1770
1770
  }
1771
1771
  }, e[20] = re, e[21] = te) : (re = e[20], te = e[21]);
1772
1772
  let le;
1773
- e[22] !== r || e[23] !== R || e[24] !== W || e[25] !== B || e[26] !== h || e[27] !== m || e[28] !== n || e[29] !== q || e[30] !== D || e[31] !== O ? (le = /* @__PURE__ */ s(tt, { flex: "1", mt: "lg", viewportRef: z, viewportProps: re, contentProps: te, children: /* @__PURE__ */ s(G, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: R }) : /* @__PURE__ */ s(_n, { sections: n, expandedSectionIds: B, expandedNodeIds: W, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: m, onToggleSection: D, onToggleNode: q, virtualize: O, scrollRef: z }) }) }), e[22] = r, e[23] = R, e[24] = W, e[25] = B, e[26] = h, e[27] = m, e[28] = n, e[29] = q, e[30] = D, e[31] = O, e[32] = le) : le = e[32];
1773
+ e[22] !== r || e[23] !== I || e[24] !== H || e[25] !== W || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== q || e[30] !== N || e[31] !== D ? (le = /* @__PURE__ */ s(tt, { flex: "1", mt: "lg", viewportRef: L, viewportProps: re, contentProps: te, children: /* @__PURE__ */ s(G, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: I }) : /* @__PURE__ */ s(Vn, { sections: n, expandedSectionIds: W, expandedNodeIds: H, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: N, onToggleNode: q, virtualize: D, scrollRef: L }) }) }), e[22] = r, e[23] = I, e[24] = H, e[25] = W, e[26] = h, e[27] = p, e[28] = n, e[29] = q, e[30] = N, e[31] = D, e[32] = le) : le = e[32];
1774
1774
  let ne;
1775
- e[33] !== c ? (ne = /* @__PURE__ */ s(Cr, { children: c }), e[33] = c, e[34] = ne) : ne = e[34];
1775
+ e[33] !== c ? (ne = /* @__PURE__ */ s(Tr, { children: c }), e[33] = c, e[34] = ne) : ne = e[34];
1776
1776
  let Y;
1777
- e[35] !== ee || e[36] !== le || e[37] !== ne || e[38] !== J ? (Y = /* @__PURE__ */ v(de, { 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: [
1777
+ e[35] !== ee || e[36] !== le || e[37] !== ne || e[38] !== J ? (Y = /* @__PURE__ */ y(de, { 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
1778
  ee,
1779
1779
  le,
1780
1780
  ne
1781
1781
  ] }), e[35] = ee, e[36] = le, e[37] = ne, e[38] = J, e[39] = Y) : Y = e[39];
1782
1782
  const ie = Y;
1783
1783
  let oe;
1784
- return e[40] !== ie || e[41] !== y ? (oe = /* @__PURE__ */ s(Kt, { actions: y, closeOnSelect: !1, children: ie }), e[40] = ie, e[41] = y, e[42] = oe) : oe = e[42], oe;
1784
+ return e[40] !== ie || e[41] !== S ? (oe = /* @__PURE__ */ s(Yt, { actions: S, closeOnSelect: !1, children: ie }), e[40] = ie, e[41] = S, e[42] = oe) : oe = e[42], oe;
1785
1785
  };
1786
- function kr(o) {
1786
+ function Dr(o) {
1787
1787
  return o.open;
1788
1788
  }
1789
- function Er(o) {
1789
+ function Lr(o) {
1790
1790
  return o.width;
1791
1791
  }
1792
- function $r(o) {
1792
+ function Or(o) {
1793
1793
  return o.expandedSections;
1794
1794
  }
1795
- function Dr(o) {
1795
+ function _r(o) {
1796
1796
  return o.expandedNodes;
1797
1797
  }
1798
- function Lr(o) {
1798
+ function zr(o) {
1799
1799
  return o.toggleSection;
1800
1800
  }
1801
- function Or(o) {
1801
+ function Nr(o) {
1802
1802
  return o.toggleNode;
1803
1803
  }
1804
- const Rt = {
1804
+ const kt = {
1805
1805
  tabOverrides: {}
1806
- }, _r = "pstdio/ui/tab-visibility", zr = (o) => `${_r}/${o}`, Nr = (o, e) => o ?? (e ? "hidden" : "shown"), ct = (o, e, t) => {
1806
+ }, Br = "pstdio/ui/tab-visibility", Wr = (o) => `${Br}/${o}`, Hr = (o, e) => o ?? (e ? "hidden" : "shown"), dt = (o, e, t) => {
1807
1807
  if (t === void 0) {
1808
1808
  if (!(e in o)) return o;
1809
1809
  const {
@@ -1816,51 +1816,51 @@ const Rt = {
1816
1816
  ...o,
1817
1817
  [e]: t
1818
1818
  };
1819
- }, Br = (o, e, t) => {
1820
- const n = Nr(o[e], t);
1821
- return ct(o, e, n === "hidden" ? "shown" : "hidden");
1822
- }, Wr = (o) => ({
1819
+ }, Fr = (o, e, t) => {
1820
+ const n = Hr(o[e], t);
1821
+ return dt(o, e, n === "hidden" ? "shown" : "hidden");
1822
+ }, Mr = (o) => ({
1823
1823
  tabOverrides: o.tabOverrides
1824
- }), Hr = (o) => lt()(ot((e) => ({
1825
- ...Rt,
1824
+ }), Vr = (o) => lt()(ot((e) => ({
1825
+ ...kt,
1826
1826
  setTab: (t, n) => e((r) => ({
1827
1827
  ...r,
1828
- tabOverrides: ct(r.tabOverrides, t, n)
1828
+ tabOverrides: dt(r.tabOverrides, t, n)
1829
1829
  })),
1830
1830
  toggleTab: (t, n) => e((r) => ({
1831
1831
  ...r,
1832
- tabOverrides: Br(r.tabOverrides, t, n)
1832
+ tabOverrides: Fr(r.tabOverrides, t, n)
1833
1833
  })),
1834
1834
  clearTab: (t) => e((n) => ({
1835
1835
  ...n,
1836
- tabOverrides: ct(n.tabOverrides, t, void 0)
1836
+ tabOverrides: dt(n.tabOverrides, t, void 0)
1837
1837
  })),
1838
- reset: () => e(Rt)
1838
+ reset: () => e(kt)
1839
1839
  }), {
1840
- name: zr(o.storageKey),
1840
+ name: Wr(o.storageKey),
1841
1841
  storage: rt(Ve),
1842
- partialize: Wr
1843
- })), kt = /* @__PURE__ */ new Map(), Fr = (o) => {
1844
- const e = kt.get(o);
1842
+ partialize: Mr
1843
+ })), $t = /* @__PURE__ */ new Map(), Gr = (o) => {
1844
+ const e = $t.get(o);
1845
1845
  if (e) return e;
1846
- const t = Hr({
1846
+ const t = Vr({
1847
1847
  storageKey: o
1848
1848
  });
1849
- return kt.set(o, t), t;
1850
- }, Li = (o, e) => {
1851
- const t = k(2);
1849
+ return $t.set(o, t), t;
1850
+ }, Wi = (o, e) => {
1851
+ const t = O(2);
1852
1852
  let n;
1853
- return t[0] !== o ? (n = Fr(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
1854
- }, Mr = (o, e) => typeof o == "string" ? o : e, Ge = (o, e) => o ?? (e ? "hidden" : "shown"), Et = (o) => o.canHide === !0 || o.hiddenByDefault === !0, Vr = (o, e) => Ge(e[o.id], o.hiddenByDefault) === "shown", ht = (o, e) => {
1853
+ return t[0] !== o ? (n = Gr(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
1854
+ }, jr = (o, e) => typeof o == "string" ? o : e, Ge = (o, e) => o ?? (e ? "hidden" : "shown"), Et = (o) => o.canHide === !0 || o.hiddenByDefault === !0, Ur = (o, e) => Ge(e[o.id], o.hiddenByDefault) === "shown", mt = (o, e) => {
1855
1855
  let t = !1;
1856
1856
  const n = [];
1857
1857
  for (const r of o) {
1858
- if (!Vr(r, e)) {
1858
+ if (!Ur(r, e)) {
1859
1859
  t = !0;
1860
1860
  continue;
1861
1861
  }
1862
1862
  if (r.children && r.children.length > 0) {
1863
- const i = ht(r.children, e);
1863
+ const i = mt(r.children, e);
1864
1864
  if (i !== r.children) {
1865
1865
  t = !0, n.push({
1866
1866
  ...r,
@@ -1872,7 +1872,7 @@ const Rt = {
1872
1872
  n.push(r);
1873
1873
  }
1874
1874
  return t ? n : o;
1875
- }, Oi = (o, e) => ht(o, e), _i = (o, e, t) => {
1875
+ }, Hi = (o, e) => mt(o, e), Fi = (o, e, t) => {
1876
1876
  let n = !1;
1877
1877
  const r = [];
1878
1878
  for (const i of o) {
@@ -1880,7 +1880,7 @@ const Rt = {
1880
1880
  n = !0;
1881
1881
  continue;
1882
1882
  }
1883
- const l = ht(i.nodes, t);
1883
+ const l = mt(i.nodes, t);
1884
1884
  if (l.length === 0 && !i.emptyState) {
1885
1885
  n = !0;
1886
1886
  continue;
@@ -1895,24 +1895,24 @@ const Rt = {
1895
1895
  r.push(i);
1896
1896
  }
1897
1897
  return n ? r : o;
1898
- }, nn = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Gr = (o, e, t, n) => {
1898
+ }, un = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Qr = (o, e, t, n) => {
1899
1899
  const r = o.hiddenByDefault === !0, i = Ge(e[o.id], r);
1900
1900
  return {
1901
1901
  key: `section:${o.id}`,
1902
1902
  label: o.label ?? o.id,
1903
1903
  onClick: () => t.onToggleSection(o.id, r),
1904
- endContent: nn(i, n)
1904
+ endContent: un(i, n)
1905
1905
  };
1906
- }, jr = (o, e, t, n) => {
1906
+ }, qr = (o, e, t, n) => {
1907
1907
  const r = o.hiddenByDefault === !0, i = Ge(e[o.id], r);
1908
1908
  return {
1909
1909
  key: `node:${o.id}`,
1910
- label: Mr(o.label, o.id),
1910
+ label: jr(o.label, o.id),
1911
1911
  icon: o.icon,
1912
1912
  onClick: () => t.onToggleNode(o.id, r),
1913
- endContent: nn(i, n)
1913
+ endContent: un(i, n)
1914
1914
  };
1915
- }, zi = (o, e, t, n, r) => {
1915
+ }, Mi = (o, e, t, n, r) => {
1916
1916
  const i = [], l = (a) => {
1917
1917
  a.length !== 0 && (i.length > 0 && (a[0] = {
1918
1918
  ...a[0],
@@ -1921,9 +1921,9 @@ const Rt = {
1921
1921
  }, c = (a) => {
1922
1922
  const d = [];
1923
1923
  for (const u of a) {
1924
- Et(u) && d.push(Gr(u, e, n, r));
1924
+ Et(u) && d.push(Qr(u, e, n, r));
1925
1925
  for (const f of u.nodes)
1926
- Et(f) && d.push(jr(f, t, n, r));
1926
+ Et(f) && d.push(qr(f, t, n, r));
1927
1927
  }
1928
1928
  return d;
1929
1929
  };
@@ -1934,7 +1934,7 @@ const Rt = {
1934
1934
  separatorBefore: !0,
1935
1935
  onClick: n.onResetAll
1936
1936
  }), i;
1937
- }, Ni = (o, e, t) => {
1937
+ }, Vi = (o, e, t) => {
1938
1938
  let n = !1;
1939
1939
  const r = [];
1940
1940
  for (const i of o) {
@@ -1953,7 +1953,7 @@ const Rt = {
1953
1953
  r.push(i);
1954
1954
  }
1955
1955
  return n ? r : o;
1956
- }, Bi = (o, e, t, n, r, i) => {
1956
+ }, Gi = (o, e, t, n, r, i) => {
1957
1957
  const l = [];
1958
1958
  let c = 0;
1959
1959
  for (const a of o) {
@@ -1976,88 +1976,167 @@ const Rt = {
1976
1976
  onClick: t.onResetAll
1977
1977
  }), l;
1978
1978
  }, {
1979
- withProvider: Ur,
1979
+ withProvider: Kr,
1980
1980
  withContext: st
1981
- } = ut({
1982
- recipe: Hn
1983
- }), Qr = Ur("div", "list"), qr = st("div", "tab"), Xr = st("button", "trigger"), Kr = st("span", "label"), Yr = st("button", "close"), Wi = (o) => {
1984
- const e = k(19), {
1981
+ } = ft({
1982
+ recipe: Jn
1983
+ }), Xr = Kr("div", "list"), Yr = st("div", "tab"), Zr = st("button", "trigger"), Jr = st("span", "label"), el = st("button", "close"), tl = (o) => {
1984
+ const e = O(38), {
1985
+ tab: t,
1986
+ selected: n,
1987
+ tabIndex: r,
1988
+ reorderable: i,
1989
+ onSelect: l,
1990
+ onClose: c,
1991
+ onKeyDown: a
1992
+ } = o, d = !i;
1993
+ let u;
1994
+ e[0] !== d || e[1] !== t.id ? (u = {
1995
+ id: t.id,
1996
+ disabled: d
1997
+ }, e[0] = d, e[1] = t.id, e[2] = u) : u = e[2];
1998
+ const {
1999
+ attributes: f,
2000
+ listeners: h,
2001
+ setNodeRef: p,
2002
+ setActivatorNodeRef: m,
2003
+ transform: g,
2004
+ transition: x,
2005
+ isDragging: b,
2006
+ isSorting: k
2007
+ } = nn(u), A = n ? "" : void 0, R = b ? "" : void 0;
2008
+ let S;
2009
+ e[3] !== g ? (S = rn.Translate.toString(g), e[3] = g, e[4] = S) : S = e[4];
2010
+ let $;
2011
+ e[5] !== f || e[6] !== i ? ($ = i ? f : {}, e[5] = f, e[6] = i, e[7] = $) : $ = e[7];
2012
+ let I;
2013
+ e[8] !== k || e[9] !== h || e[10] !== a ? (I = (E) => {
2014
+ h?.onKeyDown?.(E), !k && !E.defaultPrevented && a(E);
2015
+ }, e[8] = k, e[9] = h, e[10] = a, e[11] = I) : I = e[11];
2016
+ let P;
2017
+ e[12] !== t.label ? (P = /* @__PURE__ */ s(Jr, { children: t.label }), e[12] = t.label, e[13] = P) : P = e[13];
2018
+ let w;
2019
+ e[14] !== h || e[15] !== l || e[16] !== n || e[17] !== m || e[18] !== $ || e[19] !== I || e[20] !== P || e[21] !== t.icon || e[22] !== t.label || e[23] !== r ? (w = /* @__PURE__ */ y(Zr, { ...$, ...h, ref: m, type: "button", role: "tab", "aria-selected": n, "aria-label": t.label, tabIndex: r, title: t.label, onClick: l, onKeyDown: I, children: [
2020
+ t.icon,
2021
+ P
2022
+ ] }), e[14] = h, e[15] = l, e[16] = n, e[17] = m, e[18] = $, e[19] = I, e[20] = P, e[21] = t.icon, e[22] = t.label, e[23] = r, e[24] = w) : w = e[24];
2023
+ const C = `Close ${t.label}`, D = `Close ${t.label}`;
2024
+ let L;
2025
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ s(Qt, { "aria-hidden": "true" }), e[25] = L) : L = e[25];
2026
+ let T;
2027
+ e[26] !== c || e[27] !== D || e[28] !== C ? (T = /* @__PURE__ */ s(el, { type: "button", "aria-label": C, title: D, onClick: c, children: L }), e[26] = c, e[27] = D, e[28] = C, e[29] = T) : T = e[29];
2028
+ let z;
2029
+ return e[30] !== p || e[31] !== T || e[32] !== A || e[33] !== R || e[34] !== S || e[35] !== w || e[36] !== x ? (z = /* @__PURE__ */ y(Yr, { ref: p, role: "presentation", "data-selected": A, "data-dragging": R, transform: S, transition: x, children: [
2030
+ w,
2031
+ T
2032
+ ] }), e[30] = p, e[31] = T, e[32] = A, e[33] = R, e[34] = S, e[35] = w, e[36] = x, e[37] = z) : z = e[37], z;
2033
+ }, ji = (o) => {
2034
+ const e = O(48), {
1985
2035
  tabs: t,
1986
2036
  selectedId: n,
1987
2037
  onSelect: r,
1988
2038
  onClose: i,
1989
- "aria-label": l
1990
- } = o, c = He(null);
1991
- let a, d;
1992
- e[0] !== n ? (a = () => {
1993
- n && c.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({
2039
+ onReorder: l,
2040
+ "aria-label": c
2041
+ } = o, a = He(null);
2042
+ let d;
2043
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
2044
+ activationConstraint: {
2045
+ distance: 6
2046
+ }
2047
+ }, e[0] = d) : d = e[0];
2048
+ let u;
2049
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
2050
+ coordinateGetter: Kn
2051
+ }, e[1] = u) : u = e[1];
2052
+ const f = Zt(ct(Jt, d), ct(qn, u));
2053
+ let h, p;
2054
+ e[2] !== n ? (h = () => {
2055
+ n && a.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({
1994
2056
  block: "nearest",
1995
2057
  inline: "nearest"
1996
2058
  });
1997
- }, d = [n], e[0] = n, e[1] = a, e[2] = d) : (a = e[1], d = e[2]), me(a, d);
1998
- let u, f, h, m, p;
1999
- if (e[3] !== l || e[4] !== i || e[5] !== r || e[6] !== n || e[7] !== t) {
2000
- const S = (x) => {
2001
- const w = c.current?.querySelectorAll('[role="tab"]'), I = w?.[x + 1] ?? w?.[x - 1];
2002
- i(t[x].id), I?.focus();
2003
- }, b = (x, w) => {
2004
- let I;
2005
- if (x.key === "ArrowRight")
2006
- I = (w + 1) % t.length;
2007
- else if (x.key === "ArrowLeft")
2008
- I = (w - 1 + t.length) % t.length;
2009
- else if (x.key === "Home")
2010
- I = 0;
2011
- else if (x.key === "End")
2012
- I = t.length - 1;
2013
- else if (x.key === "Delete") {
2014
- x.preventDefault(), S(w);
2059
+ }, p = [n], e[2] = n, e[3] = h, e[4] = p) : (h = e[3], p = e[4]), me(h, p);
2060
+ let m, g, x, b, k, A, R, S, $, I, P, w, C;
2061
+ if (e[5] !== c || e[6] !== i || e[7] !== l || e[8] !== r || e[9] !== n || e[10] !== f || e[11] !== t) {
2062
+ const z = (v) => {
2063
+ const _ = a.current?.querySelectorAll('[role="tab"]'), B = _?.[v + 1] ?? _?.[v - 1];
2064
+ i(t[v].id), B?.focus();
2065
+ }, E = (v, _) => {
2066
+ let B;
2067
+ if (v.key === "ArrowRight")
2068
+ B = (_ + 1) % t.length;
2069
+ else if (v.key === "ArrowLeft")
2070
+ B = (_ - 1 + t.length) % t.length;
2071
+ else if (v.key === "Home")
2072
+ B = 0;
2073
+ else if (v.key === "End")
2074
+ B = t.length - 1;
2075
+ else if (v.key === "Delete") {
2076
+ v.preventDefault(), z(_);
2015
2077
  return;
2016
2078
  } else
2017
2079
  return;
2018
- x.preventDefault(), c.current?.querySelectorAll('[role="tab"]')[I]?.focus(), r(t[I].id);
2080
+ v.preventDefault(), a.current?.querySelectorAll('[role="tab"]')[B]?.focus(), r(t[B].id);
2019
2081
  };
2020
- u = Qr, f = c, h = "tablist", m = l, p = t.map((x, w) => /* @__PURE__ */ v(qr, { role: "presentation", "data-selected": x.id === n ? "" : void 0, children: [
2021
- /* @__PURE__ */ v(Xr, { type: "button", role: "tab", "aria-selected": x.id === n, "aria-label": x.label, tabIndex: x.id === (n ?? t[0]?.id) ? 0 : -1, title: x.label, onClick: () => r(x.id), onKeyDown: (I) => b(I, w), children: [
2022
- x.icon,
2023
- /* @__PURE__ */ s(Kr, { children: x.label })
2024
- ] }),
2025
- /* @__PURE__ */ s(Yr, { type: "button", "aria-label": `Close ${x.label}`, title: `Close ${x.label}`, onClick: () => S(w), children: /* @__PURE__ */ s(Ut, { "aria-hidden": "true" }) })
2026
- ] }, x.id)), e[3] = l, e[4] = i, e[5] = r, e[6] = n, e[7] = t, e[8] = u, e[9] = f, e[10] = h, e[11] = m, e[12] = p;
2082
+ x = en, b = f, k = tn, e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = [nl], e[25] = A) : A = e[25], e[26] !== l ? (R = (v) => {
2083
+ const {
2084
+ active: _,
2085
+ over: B
2086
+ } = v;
2087
+ B && _.id !== B.id && l?.(String(_.id), String(B.id));
2088
+ }, e[26] = l, e[27] = R) : R = e[27], g = on, e[28] !== t ? (w = t.map(ol), e[28] = t, e[29] = w) : w = e[29], C = Xn, m = Xr, S = a, $ = "tablist", I = c, P = t.map((v, _) => /* @__PURE__ */ s(tl, { tab: v, selected: v.id === n, tabIndex: v.id === (n ?? t[0]?.id) ? 0 : -1, reorderable: !!l, onSelect: () => r(v.id), onClose: () => z(_), onKeyDown: (B) => E(B, _) }, v.id)), e[5] = c, e[6] = i, e[7] = l, e[8] = r, e[9] = n, e[10] = f, e[11] = t, e[12] = m, e[13] = g, e[14] = x, e[15] = b, e[16] = k, e[17] = A, e[18] = R, e[19] = S, e[20] = $, e[21] = I, e[22] = P, e[23] = w, e[24] = C;
2027
2089
  } else
2028
- u = e[8], f = e[9], h = e[10], m = e[11], p = e[12];
2029
- let g;
2030
- return e[13] !== u || e[14] !== f || e[15] !== h || e[16] !== m || e[17] !== p ? (g = /* @__PURE__ */ s(u, { ref: f, role: h, "aria-label": m, children: p }), e[13] = u, e[14] = f, e[15] = h, e[16] = m, e[17] = p, e[18] = g) : g = e[18], g;
2031
- }, {
2032
- withProvider: Zr,
2033
- withContext: Jr
2034
- } = ut({
2035
- recipe: Fn
2036
- }), el = Zr("div", "root"), tl = Jr("div", "content"), Hi = (o) => {
2037
- const e = k(5), {
2090
+ m = e[12], g = e[13], x = e[14], b = e[15], k = e[16], A = e[17], R = e[18], S = e[19], $ = e[20], I = e[21], P = e[22], w = e[23], C = e[24];
2091
+ let D;
2092
+ e[30] !== m || e[31] !== S || e[32] !== $ || e[33] !== I || e[34] !== P ? (D = /* @__PURE__ */ s(m, { ref: S, role: $, "aria-label": I, children: P }), e[30] = m, e[31] = S, e[32] = $, e[33] = I, e[34] = P, e[35] = D) : D = e[35];
2093
+ let L;
2094
+ e[36] !== g || e[37] !== D || e[38] !== w || e[39] !== C ? (L = /* @__PURE__ */ s(g, { items: w, strategy: C, children: D }), e[36] = g, e[37] = D, e[38] = w, e[39] = C, e[40] = L) : L = e[40];
2095
+ let T;
2096
+ return e[41] !== x || e[42] !== b || e[43] !== k || e[44] !== A || e[45] !== R || e[46] !== L ? (T = /* @__PURE__ */ s(x, { sensors: b, collisionDetection: k, modifiers: A, onDragEnd: R, children: L }), e[41] = x, e[42] = b, e[43] = k, e[44] = A, e[45] = R, e[46] = L, e[47] = T) : T = e[47], T;
2097
+ };
2098
+ function nl(o) {
2099
+ const {
2100
+ transform: e
2101
+ } = o;
2102
+ return {
2103
+ ...e,
2104
+ y: 0
2105
+ };
2106
+ }
2107
+ function ol(o) {
2108
+ return o.id;
2109
+ }
2110
+ const {
2111
+ withProvider: rl,
2112
+ withContext: ll
2113
+ } = ft({
2114
+ recipe: eo
2115
+ }), il = rl("div", "root"), sl = ll("div", "content"), Ui = (o) => {
2116
+ const e = O(5), {
2038
2117
  platform: t,
2039
2118
  children: n
2040
2119
  } = o, r = t === "darwin" ? "mac" : "overlay";
2041
2120
  let i;
2042
- e[0] !== n ? (i = /* @__PURE__ */ s(tl, { children: n }), e[0] = n, e[1] = i) : i = e[1];
2121
+ e[0] !== n ? (i = /* @__PURE__ */ s(sl, { children: n }), e[0] = n, e[1] = i) : i = e[1];
2043
2122
  let l;
2044
- return e[2] !== r || e[3] !== i ? (l = /* @__PURE__ */ s(el, { controls: r, "data-window-title-bar": "", children: i }), e[2] = r, e[3] = i, e[4] = l) : l = e[4], l;
2045
- }, nl = (o) => {
2046
- const e = k(7), {
2123
+ return e[2] !== r || e[3] !== i ? (l = /* @__PURE__ */ s(il, { controls: r, "data-window-title-bar": "", children: i }), e[2] = r, e[3] = i, e[4] = l) : l = e[4], l;
2124
+ }, al = (o) => {
2125
+ const e = O(7), {
2047
2126
  children: t,
2048
2127
  hasChanges: n
2049
2128
  } = o;
2050
2129
  let r;
2051
- e[0] !== t ? (r = /* @__PURE__ */ s(H, { textStyle: "label/L/medium", truncate: !0, children: t }), e[0] = t, e[1] = r) : r = e[1];
2130
+ e[0] !== t ? (r = /* @__PURE__ */ s(F, { textStyle: "label/L/medium", truncate: !0, children: t }), e[0] = t, e[1] = r) : r = e[1];
2052
2131
  let i;
2053
- e[2] !== n ? (i = n ? /* @__PURE__ */ s(H, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = n, e[3] = i) : i = e[3];
2132
+ e[2] !== n ? (i = n ? /* @__PURE__ */ s(F, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = n, e[3] = i) : i = e[3];
2054
2133
  let l;
2055
- return e[4] !== r || e[5] !== i ? (l = /* @__PURE__ */ v(ae, { gap: "3xs", minWidth: "0", children: [
2134
+ return e[4] !== r || e[5] !== i ? (l = /* @__PURE__ */ y(ae, { gap: "3xs", minWidth: "0", children: [
2056
2135
  r,
2057
2136
  i
2058
2137
  ] }), e[4] = r, e[5] = i, e[6] = l) : l = e[6], l;
2059
- }, ol = (o) => o.length === 0 ? "None" : o.length === 1 ? o[0].label : `${o[0].label} +${o.length - 1}`, rl = (o) => {
2060
- const e = k(54), {
2138
+ }, cl = (o) => o.length === 0 ? "None" : o.length === 1 ? o[0].label : `${o[0].label} +${o.length - 1}`, dl = (o) => {
2139
+ const e = O(54), {
2061
2140
  actions: t,
2062
2141
  disabled: n,
2063
2142
  label: r,
@@ -2065,42 +2144,42 @@ const Rt = {
2065
2144
  optionName: l,
2066
2145
  onChange: c
2067
2146
  } = o;
2068
- let a, d, u, f, h, m, p, g, S, b, x, w, I, y;
2147
+ let a, d, u, f, h, p, m, g, x, b, k, A, R, S;
2069
2148
  if (e[0] !== t || e[1] !== n || e[2] !== r || e[3] !== c || e[4] !== l || e[5] !== i) {
2149
+ let L;
2150
+ e[20] !== t ? (L = (E) => t.includes(E.value), e[20] = t, e[21] = L) : L = e[21];
2151
+ const T = i.filter(L);
2070
2152
  let z;
2071
- e[20] !== t ? (z = ($) => t.includes($.value), e[20] = t, e[21] = z) : z = e[21];
2072
- const A = i.filter(z);
2073
- let _;
2074
- e[22] !== t || e[23] !== c ? (_ = ($) => {
2075
- c(t.includes($) ? t.filter((T) => T !== $) : [...t, $]);
2076
- }, e[22] = t, e[23] = c, e[24] = _) : _ = e[24], y = _, u = ge.Root, I = !1, d = ge.Trigger, w = !0, a = ue, f = "2xs", h = "ghost", m = "xs", p = A.length === 0 ? "fg.subtle" : "fg", g = n, S = `${r} for ${l}`, b = A[0]?.icon, x = ol(A), e[0] = t, e[1] = n, e[2] = r, e[3] = c, e[4] = l, e[5] = i, e[6] = a, e[7] = d, e[8] = u, e[9] = f, e[10] = h, e[11] = m, e[12] = p, e[13] = g, e[14] = S, e[15] = b, e[16] = x, e[17] = w, e[18] = I, e[19] = y;
2153
+ e[22] !== t || e[23] !== c ? (z = (E) => {
2154
+ c(t.includes(E) ? t.filter((v) => v !== E) : [...t, E]);
2155
+ }, e[22] = t, e[23] = c, e[24] = z) : z = e[24], S = z, u = ge.Root, R = !1, d = ge.Trigger, A = !0, a = ue, f = "2xs", h = "ghost", p = "xs", m = T.length === 0 ? "fg.subtle" : "fg", g = n, x = `${r} for ${l}`, b = T[0]?.icon, k = cl(T), e[0] = t, e[1] = n, e[2] = r, e[3] = c, e[4] = l, e[5] = i, e[6] = a, e[7] = d, e[8] = u, e[9] = f, e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = x, e[15] = b, e[16] = k, e[17] = A, e[18] = R, e[19] = S;
2077
2156
  } else
2078
- a = e[6], d = e[7], u = e[8], f = e[9], h = e[10], m = e[11], p = e[12], g = e[13], S = e[14], b = e[15], x = e[16], w = e[17], I = e[18], y = e[19];
2079
- let L;
2080
- e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ s(ce, { as: Xt, boxSize: "icon-2xs" }), e[25] = L) : L = e[25];
2081
- let R;
2082
- e[26] !== a || e[27] !== f || e[28] !== h || e[29] !== m || e[30] !== p || e[31] !== g || e[32] !== S || e[33] !== b || e[34] !== x ? (R = /* @__PURE__ */ v(a, { size: f, variant: h, gap: m, color: p, disabled: g, "aria-label": S, children: [
2157
+ a = e[6], d = e[7], u = e[8], f = e[9], h = e[10], p = e[11], m = e[12], g = e[13], x = e[14], b = e[15], k = e[16], A = e[17], R = e[18], S = e[19];
2158
+ let $;
2159
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(ce, { as: Xt, boxSize: "icon-2xs" }), e[25] = $) : $ = e[25];
2160
+ let I;
2161
+ e[26] !== a || e[27] !== f || e[28] !== h || e[29] !== p || e[30] !== m || e[31] !== g || e[32] !== x || e[33] !== b || e[34] !== k ? (I = /* @__PURE__ */ y(a, { size: f, variant: h, gap: p, color: m, disabled: g, "aria-label": x, children: [
2083
2162
  b,
2084
- x,
2085
- L
2086
- ] }), e[26] = a, e[27] = f, e[28] = h, e[29] = m, e[30] = p, e[31] = g, e[32] = S, e[33] = b, e[34] = x, e[35] = R) : R = e[35];
2087
- let E;
2088
- e[36] !== d || e[37] !== R || e[38] !== w ? (E = /* @__PURE__ */ s(d, { asChild: w, children: R }), e[36] = d, e[37] = R, e[38] = w, e[39] = E) : E = e[39];
2163
+ k,
2164
+ $
2165
+ ] }), e[26] = a, e[27] = f, e[28] = h, e[29] = p, e[30] = m, e[31] = g, e[32] = x, e[33] = b, e[34] = k, e[35] = I) : I = e[35];
2089
2166
  let P;
2090
- if (e[40] !== t || e[41] !== i || e[42] !== y) {
2091
- let z;
2092
- e[44] !== t || e[45] !== y ? (z = (A) => /* @__PURE__ */ s(ge.Item, { value: A.value, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: A.value, label: A.label, icon: A.icon, isSelected: t.includes(A.value), endContent: t.includes(A.value) ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => y(A.value) }) }, A.value), e[44] = t, e[45] = y, e[46] = z) : z = e[46], P = i.map(z), e[40] = t, e[41] = i, e[42] = y, e[43] = P;
2167
+ e[36] !== d || e[37] !== I || e[38] !== A ? (P = /* @__PURE__ */ s(d, { asChild: A, children: I }), e[36] = d, e[37] = I, e[38] = A, e[39] = P) : P = e[39];
2168
+ let w;
2169
+ if (e[40] !== t || e[41] !== i || e[42] !== S) {
2170
+ let L;
2171
+ e[44] !== t || e[45] !== S ? (L = (T) => /* @__PURE__ */ s(ge.Item, { value: T.value, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: T.value, label: T.label, icon: T.icon, isSelected: t.includes(T.value), endContent: t.includes(T.value) ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => S(T.value) }) }, T.value), e[44] = t, e[45] = S, e[46] = L) : L = e[46], w = i.map(L), e[40] = t, e[41] = i, e[42] = S, e[43] = w;
2093
2172
  } else
2094
- P = e[43];
2173
+ w = e[43];
2095
2174
  let C;
2096
- e[47] !== P ? (C = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: P }) }), e[47] = P, e[48] = C) : C = e[48];
2097
- let O;
2098
- return e[49] !== u || e[50] !== E || e[51] !== C || e[52] !== I ? (O = /* @__PURE__ */ v(u, { closeOnSelect: I, children: [
2099
- E,
2175
+ e[47] !== w ? (C = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: w }) }), e[47] = w, e[48] = C) : C = e[48];
2176
+ let D;
2177
+ return e[49] !== u || e[50] !== P || e[51] !== C || e[52] !== R ? (D = /* @__PURE__ */ y(u, { closeOnSelect: R, children: [
2178
+ P,
2100
2179
  C
2101
- ] }), e[49] = u, e[50] = E, e[51] = C, e[52] = I, e[53] = O) : O = e[53], O;
2102
- }, ll = (o) => {
2103
- const e = k(69), {
2180
+ ] }), e[49] = u, e[50] = P, e[51] = C, e[52] = R, e[53] = D) : D = e[53], D;
2181
+ }, ul = (o) => {
2182
+ const e = O(69), {
2104
2183
  actionOptions: t,
2105
2184
  actionsLabel: n,
2106
2185
  colorOptions: r,
@@ -2112,48 +2191,48 @@ const Rt = {
2112
2191
  showIcons: u,
2113
2192
  onActionsChange: f,
2114
2193
  onColorChange: h,
2115
- onDelete: m,
2116
- onIconChange: p,
2194
+ onDelete: p,
2195
+ onIconChange: m,
2117
2196
  onNameChange: g
2118
- } = o, S = n === void 0 ? "Actions" : n, b = c || a;
2119
- let x;
2120
- e[0] !== b || e[1] !== l.id ? (x = {
2197
+ } = o, x = n === void 0 ? "Actions" : n, b = c || a;
2198
+ let k;
2199
+ e[0] !== b || e[1] !== l.id ? (k = {
2121
2200
  id: l.id,
2122
2201
  disabled: b
2123
- }, e[0] = b, e[1] = l.id, e[2] = x) : x = e[2];
2202
+ }, e[0] = b, e[1] = l.id, e[2] = k) : k = e[2];
2124
2203
  const {
2125
- attributes: w,
2126
- listeners: I,
2127
- setNodeRef: y,
2128
- transform: L,
2129
- transition: R,
2130
- isDragging: E
2131
- } = Qn(x);
2132
- let P;
2133
- e[3] !== L ? (P = Yn.Transform.toString(L), e[3] = L, e[4] = P) : P = e[4];
2204
+ attributes: A,
2205
+ listeners: R,
2206
+ setNodeRef: S,
2207
+ transform: $,
2208
+ transition: I,
2209
+ isDragging: P
2210
+ } = nn(k);
2211
+ let w;
2212
+ e[3] !== $ ? (w = rn.Transform.toString($), e[3] = $, e[4] = w) : w = e[4];
2134
2213
  let C;
2135
- e[5] !== P || e[6] !== R ? (C = {
2136
- transform: P,
2137
- transition: R
2138
- }, e[5] = P, e[6] = R, e[7] = C) : C = e[7];
2139
- const O = E ? "bg.elevated" : "transparent", z = E ? "compact" : "none", A = E ? "1px" : void 0, _ = E ? "lg" : void 0, $ = E ? "bg.elevated" : "bg.muted";
2140
- let T;
2141
- e[8] !== $ ? (T = {
2142
- bg: $
2143
- }, e[8] = $, e[9] = T) : T = e[9];
2144
- const N = a ? "default" : "grab";
2145
- let F;
2146
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = {
2147
- color: "fg.muted"
2148
- }, e[10] = F) : F = e[10];
2149
- const X = `Reorder ${l.name}`;
2214
+ e[5] !== w || e[6] !== I ? (C = {
2215
+ transform: w,
2216
+ transition: I
2217
+ }, e[5] = w, e[6] = I, e[7] = C) : C = e[7];
2218
+ const D = P ? "bg.elevated" : "transparent", L = P ? "compact" : "none", T = P ? "1px" : void 0, z = P ? "lg" : void 0, E = P ? "bg.elevated" : "bg.muted";
2219
+ let v;
2220
+ e[8] !== E ? (v = {
2221
+ bg: E
2222
+ }, e[8] = E, e[9] = v) : v = e[9];
2223
+ const _ = a ? "default" : "grab";
2150
2224
  let B;
2151
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(ce, { as: En, boxSize: "icon-xs" }), e[11] = B) : B = e[11];
2225
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
2226
+ color: "fg.muted"
2227
+ }, e[10] = B) : B = e[10];
2228
+ const K = `Reorder ${l.name}`;
2152
2229
  let W;
2153
- e[12] !== w || e[13] !== I || e[14] !== N || e[15] !== X ? (W = /* @__PURE__ */ s(de, { cursor: N, color: "fg.subtle", _groupHover: F, "aria-label": X, ...w, ...I, children: B }), e[12] = w, e[13] = I, e[14] = N, e[15] = X, e[16] = W) : W = e[16];
2154
- const D = `Change ${l.name} appearance`;
2230
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ s(ce, { as: Bn, boxSize: "icon-xs" }), e[11] = W) : W = e[11];
2231
+ let H;
2232
+ e[12] !== A || e[13] !== R || e[14] !== _ || e[15] !== K ? (H = /* @__PURE__ */ s(de, { cursor: _, color: "fg.subtle", _groupHover: B, "aria-label": K, ...A, ...R, children: W }), e[12] = A, e[13] = R, e[14] = _, e[15] = K, e[16] = H) : H = e[16];
2233
+ const N = `Change ${l.name} appearance`;
2155
2234
  let q;
2156
- e[17] !== r || e[18] !== b || e[19] !== i || e[20] !== h || e[21] !== p || e[22] !== u || e[23] !== D || e[24] !== l.color || e[25] !== l.icon ? (q = /* @__PURE__ */ s(sr, { color: l.color, colorOptions: r, icon: l.icon, iconOptions: i, showIcons: u, onColorChange: h, onIconChange: p, disabled: b, "aria-label": D }), e[17] = r, e[18] = b, e[19] = i, e[20] = h, e[21] = p, e[22] = u, e[23] = D, e[24] = l.color, e[25] = l.icon, e[26] = q) : q = e[26];
2235
+ e[17] !== r || e[18] !== b || e[19] !== i || e[20] !== h || e[21] !== m || e[22] !== u || e[23] !== N || e[24] !== l.color || e[25] !== l.icon ? (q = /* @__PURE__ */ s(dr, { color: l.color, colorOptions: r, icon: l.icon, iconOptions: i, showIcons: u, onColorChange: h, onIconChange: m, disabled: b, "aria-label": N }), e[17] = r, e[18] = b, e[19] = i, e[20] = h, e[21] = m, e[22] = u, e[23] = N, e[24] = l.color, e[25] = l.icon, e[26] = q) : q = e[26];
2157
2236
  let j;
2158
2237
  e[27] !== g || e[28] !== l.name ? (j = (oe) => {
2159
2238
  const he = oe.value.trim();
@@ -2161,20 +2240,20 @@ const Rt = {
2161
2240
  }, e[27] = g, e[28] = l.name, e[29] = j) : j = e[29];
2162
2241
  let V, U;
2163
2242
  e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ s(We.Preview, { textStyle: "paragraph/S/regular" }), U = /* @__PURE__ */ s(We.Input, { textStyle: "paragraph/S/regular" }), e[30] = V, e[31] = U) : (V = e[30], U = e[31]);
2164
- let K;
2165
- e[32] !== b || e[33] !== j || e[34] !== l.isNew || e[35] !== l.name ? (K = /* @__PURE__ */ v(We.Root, { minWidth: "0", defaultValue: l.name, defaultEdit: l.isNew, selectOnFocus: !0, disabled: b, onValueCommit: j, children: [
2243
+ let X;
2244
+ e[32] !== b || e[33] !== j || e[34] !== l.isNew || e[35] !== l.name ? (X = /* @__PURE__ */ y(We.Root, { minWidth: "0", defaultValue: l.name, defaultEdit: l.isNew, selectOnFocus: !0, disabled: b, onValueCommit: j, children: [
2166
2245
  V,
2167
2246
  U
2168
- ] }, l.name), e[32] = b, e[33] = j, e[34] = l.isNew, e[35] = l.name, e[36] = K) : K = e[36];
2247
+ ] }, l.name), e[32] = b, e[33] = j, e[34] = l.isNew, e[35] = l.name, e[36] = X) : X = e[36];
2169
2248
  let se;
2170
2249
  e[37] !== d || e[38] !== l.isDefault ? (se = d && l.isDefault ? /* @__PURE__ */ s(Te, { size: "sm", variant: "subtle", colorPalette: "blue", children: "Default" }) : null, e[37] = d, e[38] = l.isDefault, e[39] = se) : se = e[39];
2171
2250
  let J;
2172
- e[40] !== K || e[41] !== se ? (J = /* @__PURE__ */ v(de, { flex: "1", minWidth: "0", alignItems: "center", gap: "xs", children: [
2173
- K,
2251
+ e[40] !== X || e[41] !== se ? (J = /* @__PURE__ */ y(de, { flex: "1", minWidth: "0", alignItems: "center", gap: "xs", children: [
2252
+ X,
2174
2253
  se
2175
- ] }), e[40] = K, e[41] = se, e[42] = J) : J = e[42];
2254
+ ] }), e[40] = X, e[41] = se, e[42] = J) : J = e[42];
2176
2255
  let ee;
2177
- e[43] !== t || e[44] !== S || e[45] !== b || e[46] !== f || e[47] !== l.actions || e[48] !== l.name ? (ee = t ? /* @__PURE__ */ s(de, { width: "tag-editor-commands", justifyContent: "flex-end", children: /* @__PURE__ */ s(rl, { actions: l.actions ?? [], disabled: b, label: S, optionName: l.name, options: t, onChange: f }) }) : null, e[43] = t, e[44] = S, e[45] = b, e[46] = f, e[47] = l.actions, e[48] = l.name, e[49] = ee) : ee = e[49];
2256
+ e[43] !== t || e[44] !== x || e[45] !== b || e[46] !== f || e[47] !== l.actions || e[48] !== l.name ? (ee = t ? /* @__PURE__ */ s(de, { width: "tag-editor-commands", justifyContent: "flex-end", children: /* @__PURE__ */ s(dl, { actions: l.actions ?? [], disabled: b, label: x, optionName: l.name, options: t, onChange: f }) }) : null, e[43] = t, e[44] = x, e[45] = b, e[46] = f, e[47] = l.actions, e[48] = l.name, e[49] = ee) : ee = e[49];
2178
2257
  let re;
2179
2258
  e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
2180
2259
  color: "fg.error",
@@ -2182,19 +2261,19 @@ const Rt = {
2182
2261
  }, e[50] = re) : re = e[50];
2183
2262
  const te = b || l.isDefault, le = `Delete ${l.name}`;
2184
2263
  let ne;
2185
- e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(ce, { as: $n, boxSize: "icon-xs" }), e[51] = ne) : ne = e[51];
2264
+ e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(ce, { as: Wn, boxSize: "icon-xs" }), e[51] = ne) : ne = e[51];
2186
2265
  let Y;
2187
- e[52] !== m || e[53] !== te || e[54] !== le ? (Y = /* @__PURE__ */ s(Fe, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: re, onClick: m, disabled: te, "aria-label": le, children: ne }), e[52] = m, e[53] = te, e[54] = le, e[55] = Y) : Y = e[55];
2266
+ e[52] !== p || e[53] !== te || e[54] !== le ? (Y = /* @__PURE__ */ s(Fe, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: re, onClick: p, disabled: te, "aria-label": le, children: ne }), e[52] = p, e[53] = te, e[54] = le, e[55] = Y) : Y = e[55];
2188
2267
  let ie;
2189
- return e[56] !== y || e[57] !== W || e[58] !== q || e[59] !== J || e[60] !== ee || e[61] !== Y || e[62] !== C || e[63] !== O || e[64] !== z || e[65] !== A || e[66] !== _ || e[67] !== T ? (ie = /* @__PURE__ */ v(de, { ref: y, style: C, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: O, borderRadius: z, borderWidth: A, boxShadow: _, _hover: T, children: [
2190
- W,
2268
+ return e[56] !== S || e[57] !== H || e[58] !== q || e[59] !== J || e[60] !== ee || e[61] !== Y || e[62] !== C || e[63] !== D || e[64] !== L || e[65] !== T || e[66] !== z || e[67] !== v ? (ie = /* @__PURE__ */ y(de, { ref: S, style: C, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: D, borderRadius: L, borderWidth: T, boxShadow: z, _hover: v, children: [
2269
+ H,
2191
2270
  q,
2192
2271
  J,
2193
2272
  ee,
2194
2273
  Y
2195
- ] }), e[56] = y, e[57] = W, e[58] = q, e[59] = J, e[60] = ee, e[61] = Y, e[62] = C, e[63] = O, e[64] = z, e[65] = A, e[66] = _, e[67] = T, e[68] = ie) : ie = e[68], ie;
2196
- }, il = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, sl = (o) => {
2197
- const e = k(12), {
2274
+ ] }), e[56] = S, e[57] = H, e[58] = q, e[59] = J, e[60] = ee, e[61] = Y, e[62] = C, e[63] = D, e[64] = L, e[65] = T, e[66] = z, e[67] = v, e[68] = ie) : ie = e[68], ie;
2275
+ }, fl = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, hl = (o) => {
2276
+ const e = O(12), {
2198
2277
  title: t,
2199
2278
  hasChanges: n,
2200
2279
  isSaving: r,
@@ -2202,7 +2281,7 @@ const Rt = {
2202
2281
  } = o;
2203
2282
  if (!i) {
2204
2283
  let u;
2205
- return e[0] !== n || e[1] !== t ? (u = /* @__PURE__ */ s(nl, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = u) : u = e[2], u;
2284
+ return e[0] !== n || e[1] !== t ? (u = /* @__PURE__ */ s(al, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = u) : u = e[2], u;
2206
2285
  }
2207
2286
  let l;
2208
2287
  e[3] !== i || e[4] !== t ? (l = (u) => {
@@ -2212,11 +2291,11 @@ const Rt = {
2212
2291
  let c, a;
2213
2292
  e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(We.Preview, { textStyle: "label/L/medium" }), a = /* @__PURE__ */ s(We.Input, { textStyle: "label/L/medium" }), e[6] = c, e[7] = a) : (c = e[6], a = e[7]);
2214
2293
  let d;
2215
- return e[8] !== r || e[9] !== l || e[10] !== t ? (d = /* @__PURE__ */ v(We.Root, { defaultValue: t, disabled: r, selectOnFocus: !0, onValueCommit: l, children: [
2294
+ return e[8] !== r || e[9] !== l || e[10] !== t ? (d = /* @__PURE__ */ y(We.Root, { defaultValue: t, disabled: r, selectOnFocus: !0, onValueCommit: l, children: [
2216
2295
  c,
2217
2296
  a
2218
2297
  ] }, t), e[8] = r, e[9] = l, e[10] = t, e[11] = d) : d = e[11], d;
2219
- }, al = Pe("button", {
2298
+ }, ml = Pe("button", {
2220
2299
  base: {
2221
2300
  display: "flex",
2222
2301
  alignItems: "center",
@@ -2239,65 +2318,65 @@ const Rt = {
2239
2318
  }
2240
2319
  }
2241
2320
  }
2242
- }), cl = (o) => {
2243
- const e = k(9), {
2321
+ }), pl = (o) => {
2322
+ const e = O(9), {
2244
2323
  valueLabel: t,
2245
2324
  actionsLabel: n
2246
2325
  } = o;
2247
2326
  let r;
2248
2327
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(de, { width: "tag-editor-lead", flexShrink: "0" }), e[0] = r) : r = e[0];
2249
2328
  let i;
2250
- e[1] !== t ? (i = /* @__PURE__ */ s(H, { flex: "1", minWidth: "0", textStyle: "label/XS/caps", color: "fg.subtle", children: t }), e[1] = t, e[2] = i) : i = e[2];
2329
+ e[1] !== t ? (i = /* @__PURE__ */ s(F, { flex: "1", minWidth: "0", textStyle: "label/XS/caps", color: "fg.subtle", children: t }), e[1] = t, e[2] = i) : i = e[2];
2251
2330
  let l;
2252
- e[3] !== n ? (l = n ? /* @__PURE__ */ s(H, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: n }) : null, e[3] = n, e[4] = l) : l = e[4];
2331
+ e[3] !== n ? (l = n ? /* @__PURE__ */ s(F, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: n }) : null, e[3] = n, e[4] = l) : l = e[4];
2253
2332
  let c;
2254
2333
  e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(de, { width: "tag-editor-trailing", flexShrink: "0" }), e[5] = c) : c = e[5];
2255
2334
  let a;
2256
- return e[6] !== i || e[7] !== l ? (a = /* @__PURE__ */ v(de, { alignItems: "center", gap: "compact", paddingInline: "xs", height: "tag-editor-add-row", bg: "bg.subtle", borderBottomWidth: "1px", borderColor: "border.subtle", children: [
2335
+ return e[6] !== i || e[7] !== l ? (a = /* @__PURE__ */ y(de, { alignItems: "center", gap: "compact", paddingInline: "xs", height: "tag-editor-add-row", bg: "bg.subtle", borderBottomWidth: "1px", borderColor: "border.subtle", children: [
2257
2336
  r,
2258
2337
  i,
2259
2338
  l,
2260
2339
  c
2261
2340
  ] }), e[6] = i, e[7] = l, e[8] = a) : a = e[8], a;
2262
- }, dl = (o) => {
2263
- const e = k(22), {
2341
+ }, gl = (o) => {
2342
+ const e = O(22), {
2264
2343
  label: t,
2265
2344
  values: n,
2266
2345
  disabled: r,
2267
2346
  onSelect: i
2268
2347
  } = o;
2269
2348
  let l;
2270
- e[0] !== n ? (l = n.find(fl), e[0] = n, e[1] = l) : l = e[1];
2349
+ e[0] !== n ? (l = n.find(Sl), e[0] = n, e[1] = l) : l = e[1];
2271
2350
  const c = l;
2272
2351
  let a;
2273
- e[2] !== t ? (a = /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }), e[2] = t, e[3] = a) : a = e[3];
2352
+ e[2] !== t ? (a = /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }), e[2] = t, e[3] = a) : a = e[3];
2274
2353
  const d = c?.name ?? "None";
2275
2354
  let u;
2276
2355
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(ce, { as: Xt, boxSize: "icon-2xs" }), e[4] = u) : u = e[4];
2277
2356
  let f;
2278
- e[5] !== r || e[6] !== t || e[7] !== d ? (f = /* @__PURE__ */ s(ge.Trigger, { asChild: !0, children: /* @__PURE__ */ v(ue, { size: "2xs", variant: "ghost", gap: "xs", disabled: r, "aria-label": t, children: [
2357
+ e[5] !== r || e[6] !== t || e[7] !== d ? (f = /* @__PURE__ */ s(ge.Trigger, { asChild: !0, children: /* @__PURE__ */ y(ue, { size: "2xs", variant: "ghost", gap: "xs", disabled: r, "aria-label": t, children: [
2279
2358
  d,
2280
2359
  u
2281
2360
  ] }) }), e[5] = r, e[6] = t, e[7] = d, e[8] = f) : f = e[8];
2282
2361
  let h;
2283
2362
  if (e[9] !== i || e[10] !== n) {
2284
- let S;
2285
- e[12] !== i ? (S = (b) => /* @__PURE__ */ s(ge.Item, { value: b.id, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: b.id, label: b.name, isSelected: b.isDefault, endContent: b.isDefault ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => i(b) }) }, b.id), e[12] = i, e[13] = S) : S = e[13], h = n.map(S), e[9] = i, e[10] = n, e[11] = h;
2363
+ let x;
2364
+ e[12] !== i ? (x = (b) => /* @__PURE__ */ s(ge.Item, { value: b.id, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: b.id, label: b.name, isSelected: b.isDefault, endContent: b.isDefault ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => i(b) }) }, b.id), e[12] = i, e[13] = x) : x = e[13], h = n.map(x), e[9] = i, e[10] = n, e[11] = h;
2286
2365
  } else
2287
2366
  h = e[11];
2288
- let m;
2289
- e[14] !== h ? (m = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: h }) }), e[14] = h, e[15] = m) : m = e[15];
2290
2367
  let p;
2291
- e[16] !== f || e[17] !== m ? (p = /* @__PURE__ */ v(ge.Root, { children: [
2368
+ e[14] !== h ? (p = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: h }) }), e[14] = h, e[15] = p) : p = e[15];
2369
+ let m;
2370
+ e[16] !== f || e[17] !== p ? (m = /* @__PURE__ */ y(ge.Root, { children: [
2292
2371
  f,
2293
- m
2294
- ] }), e[16] = f, e[17] = m, e[18] = p) : p = e[18];
2372
+ p
2373
+ ] }), e[16] = f, e[17] = p, e[18] = m) : m = e[18];
2295
2374
  let g;
2296
- return e[19] !== a || e[20] !== p ? (g = /* @__PURE__ */ v(de, { alignItems: "center", gap: "sm", paddingInline: "xs", paddingBlock: "xs", bg: "bg.subtle", borderTopWidth: "1px", borderColor: "border.subtle", children: [
2375
+ return e[19] !== a || e[20] !== m ? (g = /* @__PURE__ */ y(de, { alignItems: "center", gap: "sm", paddingInline: "xs", paddingBlock: "xs", bg: "bg.subtle", borderTopWidth: "1px", borderColor: "border.subtle", children: [
2297
2376
  a,
2298
- p
2299
- ] }), e[19] = a, e[20] = p, e[21] = g) : g = e[21], g;
2300
- }, ul = (o) => {
2377
+ m
2378
+ ] }), e[19] = a, e[20] = m, e[21] = g) : g = e[21], g;
2379
+ }, bl = (o) => {
2301
2380
  const {
2302
2381
  title: e,
2303
2382
  description: t,
@@ -2311,90 +2390,90 @@ const Rt = {
2311
2390
  isSaving: u,
2312
2391
  readOnly: f,
2313
2392
  addLabel: h = "Add option",
2314
- addName: m = "New option",
2315
- actionOptions: p,
2393
+ addName: p = "New option",
2394
+ actionOptions: m,
2316
2395
  actionsLabel: g,
2317
- defaultValueLabel: S = "Default value",
2396
+ defaultValueLabel: x = "Default value",
2318
2397
  colorOptions: b,
2319
- defaultAddColor: x = "blue",
2320
- defaultAddIcon: w = null,
2321
- deleteButtonText: I = "Delete tag",
2322
- deleteHeadline: y = "Delete tag?",
2323
- deleteNotificationText: L = (B) => `This will delete "${B.name}".`,
2324
- iconOptions: R,
2325
- showDefault: E,
2326
- showIcons: P = !0,
2398
+ defaultAddColor: k = "blue",
2399
+ defaultAddIcon: A = null,
2400
+ deleteButtonText: R = "Delete tag",
2401
+ deleteHeadline: S = "Delete tag?",
2402
+ deleteNotificationText: $ = (W) => `This will delete "${W.name}".`,
2403
+ iconOptions: I,
2404
+ showDefault: P,
2405
+ showIcons: w = !0,
2327
2406
  framed: C,
2328
- showColumnHeaders: O,
2329
- valueColumnLabel: z = "Name"
2330
- } = o, [A, _] = fe(null), $ = Mn(Vn(Gn, {
2407
+ showColumnHeaders: D,
2408
+ valueColumnLabel: L = "Name"
2409
+ } = o, [T, z] = fe(null), E = Zt(ct(Jt, {
2331
2410
  activationConstraint: {
2332
2411
  distance: 5
2333
2412
  }
2334
- })), T = (B, W) => {
2335
- const D = [...r];
2336
- D[B] = {
2337
- ...D[B],
2338
- ...W
2339
- }, i(D);
2340
- }, N = () => {
2413
+ })), v = (W, H) => {
2414
+ const N = [...r];
2415
+ N[W] = {
2416
+ ...N[W],
2417
+ ...H
2418
+ }, i(N);
2419
+ }, _ = () => {
2341
2420
  i([...r, {
2342
2421
  id: `new-${crypto.randomUUID()}`,
2343
- name: m,
2344
- color: x,
2345
- icon: w,
2346
- sortOrder: il(r),
2422
+ name: p,
2423
+ color: k,
2424
+ icon: A,
2425
+ sortOrder: fl(r),
2347
2426
  isNew: !0
2348
2427
  }]);
2349
- }, F = () => {
2350
- A && (l ? l(A) : i(r.filter((B) => B.id !== A.id)), _(null));
2428
+ }, B = () => {
2429
+ T && (l ? l(T) : i(r.filter((W) => W.id !== T.id)), z(null));
2351
2430
  };
2352
- return /* @__PURE__ */ v(Me, { children: [
2353
- /* @__PURE__ */ v(Q, { gap: "2xs", children: [
2354
- e || n ? /* @__PURE__ */ v(de, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2355
- /* @__PURE__ */ v(Q, { gap: "3xs", minWidth: "0", children: [
2356
- e ? /* @__PURE__ */ s(sl, { title: e, hasChanges: d, isSaving: u, onTitleChange: a }) : null,
2357
- t ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2431
+ return /* @__PURE__ */ y(Me, { children: [
2432
+ /* @__PURE__ */ y(Q, { gap: "2xs", children: [
2433
+ e || n ? /* @__PURE__ */ y(de, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2434
+ /* @__PURE__ */ y(Q, { gap: "3xs", minWidth: "0", children: [
2435
+ e ? /* @__PURE__ */ s(hl, { title: e, hasChanges: d, isSaving: u, onTitleChange: a }) : null,
2436
+ t ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2358
2437
  ] }),
2359
2438
  n
2360
2439
  ] }) : null,
2361
- /* @__PURE__ */ v(Q, { gap: "none", borderWidth: C ? "1px" : void 0, borderColor: C ? "border.subtle" : void 0, borderRadius: C ? "md" : void 0, overflow: C ? "hidden" : void 0, children: [
2362
- O ? /* @__PURE__ */ s(cl, { valueLabel: z, actionsLabel: p ? g : void 0 }) : null,
2363
- /* @__PURE__ */ s(jn, { sensors: $, collisionDetection: Un, onDragEnd: f ? void 0 : (B) => {
2440
+ /* @__PURE__ */ y(Q, { gap: "none", borderWidth: C ? "1px" : void 0, borderColor: C ? "border.subtle" : void 0, borderRadius: C ? "md" : void 0, overflow: C ? "hidden" : void 0, children: [
2441
+ D ? /* @__PURE__ */ s(pl, { valueLabel: L, actionsLabel: m ? g : void 0 }) : null,
2442
+ /* @__PURE__ */ s(en, { sensors: E, collisionDetection: tn, onDragEnd: f ? void 0 : (W) => {
2364
2443
  const {
2365
- active: W,
2366
- over: D
2367
- } = B;
2368
- if (!D || W.id === D.id) return;
2369
- const q = r.findIndex((V) => V.id === W.id), j = r.findIndex((V) => V.id === D.id);
2370
- q < 0 || j < 0 || i(Kn(r, q, j).map((V, U) => ({
2444
+ active: H,
2445
+ over: N
2446
+ } = W;
2447
+ if (!N || H.id === N.id) return;
2448
+ const q = r.findIndex((V) => V.id === H.id), j = r.findIndex((V) => V.id === N.id);
2449
+ q < 0 || j < 0 || i(Zn(r, q, j).map((V, U) => ({
2371
2450
  ...V,
2372
2451
  sortOrder: U
2373
2452
  })));
2374
- }, children: /* @__PURE__ */ s(qn, { items: r.map((B) => B.id), strategy: Xn, children: r.map((B, W) => /* @__PURE__ */ s(ll, { value: B, isSaving: u, readOnly: f, showDefault: E, showIcons: P, actionOptions: p, actionsLabel: g, colorOptions: b, iconOptions: R, onNameChange: (D) => T(W, {
2375
- name: D
2376
- }), onColorChange: (D) => T(W, {
2377
- color: D
2378
- }), onIconChange: (D) => T(W, {
2379
- icon: D
2380
- }), onActionsChange: (D) => T(W, {
2381
- actions: D
2382
- }), onDelete: () => _(B) }, B.id)) }) }),
2383
- f ? null : /* @__PURE__ */ v(al, { type: "button", disabled: u, onClick: N, children: [
2384
- /* @__PURE__ */ s(ce, { as: Dn, boxSize: "icon-xs" }),
2385
- /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", children: h })
2453
+ }, children: /* @__PURE__ */ s(on, { items: r.map((W) => W.id), strategy: Yn, children: r.map((W, H) => /* @__PURE__ */ s(ul, { value: W, isSaving: u, readOnly: f, showDefault: P, showIcons: w, actionOptions: m, actionsLabel: g, colorOptions: b, iconOptions: I, onNameChange: (N) => v(H, {
2454
+ name: N
2455
+ }), onColorChange: (N) => v(H, {
2456
+ color: N
2457
+ }), onIconChange: (N) => v(H, {
2458
+ icon: N
2459
+ }), onActionsChange: (N) => v(H, {
2460
+ actions: N
2461
+ }), onDelete: () => z(W) }, W.id)) }) }),
2462
+ f ? null : /* @__PURE__ */ y(ml, { type: "button", disabled: u, onClick: _, children: [
2463
+ /* @__PURE__ */ s(ce, { as: Hn, boxSize: "icon-xs" }),
2464
+ /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: h })
2386
2465
  ] }),
2387
- E && r.length > 0 ? /* @__PURE__ */ s(dl, { label: S, values: r, disabled: u || f, onSelect: (B) => c?.(B) }) : null
2466
+ P && r.length > 0 ? /* @__PURE__ */ s(gl, { label: x, values: r, disabled: u || f, onSelect: (W) => c?.(W) }) : null
2388
2467
  ] })
2389
2468
  ] }),
2390
- /* @__PURE__ */ s(Go, { open: !!A, onClose: () => _(null), onDelete: F, headline: y, notificationText: A ? L(A) : "", buttonText: I })
2469
+ /* @__PURE__ */ s(Qo, { open: !!T, onClose: () => z(null), onDelete: B, headline: S, notificationText: T ? $(T) : "", buttonText: R })
2391
2470
  ] });
2392
2471
  };
2393
- function fl(o) {
2472
+ function Sl(o) {
2394
2473
  return o.isDefault;
2395
2474
  }
2396
- const hl = (o) => {
2397
- const e = k(13), {
2475
+ const xl = (o) => {
2476
+ const e = O(13), {
2398
2477
  onSave: t,
2399
2478
  onReset: n,
2400
2479
  hasChanges: r,
@@ -2407,16 +2486,16 @@ const hl = (o) => {
2407
2486
  const f = !r;
2408
2487
  let h;
2409
2488
  e[5] !== i || e[6] !== t || e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ s(ue, { 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];
2410
- let m;
2411
- return e[10] !== u || e[11] !== h ? (m = /* @__PURE__ */ v(ae, { gap: "xs", children: [
2489
+ let p;
2490
+ return e[10] !== u || e[11] !== h ? (p = /* @__PURE__ */ y(ae, { gap: "xs", children: [
2412
2491
  u,
2413
2492
  h
2414
- ] }), e[10] = u, e[11] = h, e[12] = m) : m = e[12], m;
2415
- }, ml = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), $t = (o, e) => o.map(e).sort(ml), pl = (o, e) => o.find((t) => t.id === e.id), gl = (o, e, t, n) => t.size > 0 ? !0 : e.some((r) => {
2493
+ ] }), e[10] = u, e[11] = h, e[12] = p) : p = e[12], p;
2494
+ }, vl = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), Dt = (o, e) => o.map(e).sort(vl), yl = (o, e) => o.find((t) => t.id === e.id), Cl = (o, e, t, n) => t.size > 0 ? !0 : e.some((r) => {
2416
2495
  if (r.isNew) return !0;
2417
- const i = pl(o, r);
2496
+ const i = yl(o, r);
2418
2497
  return i ? n(i, r) || r.sortOrder !== i.sortOrder : !0;
2419
- }), Dt = (o) => o instanceof Error ? o.message : o ? String(o) : null, Fi = (o) => {
2498
+ }), Lt = (o) => o instanceof Error ? o.message : o ? String(o) : null, Qi = (o) => {
2420
2499
  const {
2421
2500
  errorTitle: e,
2422
2501
  loadingText: t = "Loading...",
@@ -2429,64 +2508,64 @@ const hl = (o) => {
2429
2508
  toEditorValue: d,
2430
2509
  valueNeedsUpdate: u,
2431
2510
  ...f
2432
- } = o, [h, m] = fe([]), [p, g] = fe(/* @__PURE__ */ new Set()), [S, b] = fe(!1), [x, w] = fe(null), I = i ?? [];
2511
+ } = o, [h, p] = fe([]), [m, g] = fe(/* @__PURE__ */ new Set()), [x, b] = fe(!1), [k, A] = fe(null), R = i ?? [];
2433
2512
  me(() => {
2434
- i && m($t(i, d));
2513
+ i && p(Dt(i, d));
2435
2514
  }, [i, d]);
2436
- const y = async () => {
2437
- b(!0), w(null);
2515
+ const S = async () => {
2516
+ b(!0), A(null);
2438
2517
  try {
2439
2518
  await c({
2440
- deletedIds: p,
2519
+ deletedIds: m,
2441
2520
  drafts: h,
2442
- values: I
2521
+ values: R
2443
2522
  }), g(/* @__PURE__ */ new Set());
2444
2523
  } catch (C) {
2445
- w(C);
2524
+ A(C);
2446
2525
  } finally {
2447
2526
  b(!1);
2448
2527
  }
2449
- }, L = gl(I, h, p, u), R = Dt(l) ?? Dt(x), E = (C) => {
2450
- C.isNew || g(/* @__PURE__ */ new Set([...p, C.id])), m(h.filter((O) => O.id !== C.id));
2451
- }, P = () => {
2452
- m($t(I, d)), g(/* @__PURE__ */ new Set()), w(null);
2528
+ }, $ = Cl(R, h, m, u), I = Lt(l) ?? Lt(k), P = (C) => {
2529
+ C.isNew || g(/* @__PURE__ */ new Set([...m, C.id])), p(h.filter((D) => D.id !== C.id));
2530
+ }, w = () => {
2531
+ p(Dt(R, d)), g(/* @__PURE__ */ new Set()), A(null);
2453
2532
  };
2454
- return /* @__PURE__ */ v(Q, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2455
- R ? /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: e, size: "sm", children: R }) : null,
2456
- i === void 0 ? /* @__PURE__ */ v(ae, { gap: "sm", color: "fg.muted", children: [
2457
- /* @__PURE__ */ s(Gt, { size: "sm" }),
2458
- /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", children: t })
2459
- ] }) : /* @__PURE__ */ s(ul, { ...f, readOnly: a, values: h, onValuesChange: m, onDeleteValue: E, onSetDefault: f.showDefault ? (C) => m(h.map((O) => ({
2460
- ...O,
2461
- isDefault: O.id === C.id
2462
- }))) : f.onSetDefault, hasChanges: L, isSaving: S, headerActions: a ? void 0 : /* @__PURE__ */ s(hl, { hasChanges: L, isSaving: S, resetLabel: n, saveLabel: r, onSave: () => {
2463
- y();
2464
- }, onReset: P }) })
2533
+ return /* @__PURE__ */ y(Q, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2534
+ I ? /* @__PURE__ */ s(ht, { status: "error", colorPalette: "red", title: e, size: "sm", children: I }) : null,
2535
+ i === void 0 ? /* @__PURE__ */ y(ae, { gap: "sm", color: "fg.muted", children: [
2536
+ /* @__PURE__ */ s(jt, { size: "sm" }),
2537
+ /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: t })
2538
+ ] }) : /* @__PURE__ */ s(bl, { ...f, readOnly: a, values: h, onValuesChange: p, onDeleteValue: P, onSetDefault: f.showDefault ? (C) => p(h.map((D) => ({
2539
+ ...D,
2540
+ isDefault: D.id === C.id
2541
+ }))) : f.onSetDefault, hasChanges: $, isSaving: x, headerActions: a ? void 0 : /* @__PURE__ */ s(xl, { hasChanges: $, isSaving: x, resetLabel: n, saveLabel: r, onSave: () => {
2542
+ S();
2543
+ }, onReset: w }) })
2465
2544
  ] });
2466
- }, Lt = {
2545
+ }, Ot = {
2467
2546
  sectionOrder: [],
2468
2547
  nodeOrderBySection: {},
2469
2548
  sectionSlotById: {}
2470
- }, bl = "pstdio/ui/tree-list-order", Sl = (o) => `${bl}/${o}`, Ot = (o) => {
2549
+ }, wl = "pstdio/ui/tree-list-order", Il = (o) => `${wl}/${o}`, _t = (o) => {
2471
2550
  const e = /* @__PURE__ */ new Set(), t = [];
2472
2551
  for (const n of o)
2473
2552
  e.has(n) || (e.add(n), t.push(n));
2474
2553
  return t;
2475
- }, xl = (o) => ({
2554
+ }, Tl = (o) => ({
2476
2555
  sectionOrder: o.sectionOrder,
2477
2556
  nodeOrderBySection: o.nodeOrderBySection,
2478
2557
  sectionSlotById: o.sectionSlotById
2479
- }), vl = (o) => lt()(ot((e) => ({
2480
- ...Lt,
2558
+ }), Pl = (o) => lt()(ot((e) => ({
2559
+ ...Ot,
2481
2560
  setSectionOrder: (t) => e((n) => ({
2482
2561
  ...n,
2483
- sectionOrder: Ot(t)
2562
+ sectionOrder: _t(t)
2484
2563
  })),
2485
2564
  setNodeOrder: (t, n) => e((r) => ({
2486
2565
  ...r,
2487
2566
  nodeOrderBySection: {
2488
2567
  ...r.nodeOrderBySection,
2489
- [t]: Ot(n)
2568
+ [t]: _t(n)
2490
2569
  }
2491
2570
  })),
2492
2571
  setSectionSlot: (t, n) => e((r) => ({
@@ -2511,23 +2590,23 @@ const hl = (o) => {
2511
2590
  nodeOrderBySection: i
2512
2591
  };
2513
2592
  }),
2514
- reset: () => e(Lt)
2593
+ reset: () => e(Ot)
2515
2594
  }), {
2516
- name: Sl(o.storageKey),
2595
+ name: Il(o.storageKey),
2517
2596
  storage: rt(Ve),
2518
- partialize: xl
2519
- })), _t = /* @__PURE__ */ new Map(), yl = (o) => {
2520
- const e = _t.get(o);
2597
+ partialize: Tl
2598
+ })), zt = /* @__PURE__ */ new Map(), Al = (o) => {
2599
+ const e = zt.get(o);
2521
2600
  if (e) return e;
2522
- const t = vl({
2601
+ const t = Pl({
2523
2602
  storageKey: o
2524
2603
  });
2525
- return _t.set(o, t), t;
2526
- }, Mi = (o, e) => {
2527
- const t = k(2);
2604
+ return zt.set(o, t), t;
2605
+ }, qi = (o, e) => {
2606
+ const t = O(2);
2528
2607
  let n;
2529
- return t[0] !== o ? (n = yl(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2530
- }, Cl = (o, e) => {
2608
+ return t[0] !== o ? (n = Al(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2609
+ }, Rl = (o, e) => {
2531
2610
  if (e.length === 0) return o;
2532
2611
  const t = new Map(o.map((l, c) => [l.id, c])), n = /* @__PURE__ */ new Set(), r = [];
2533
2612
  for (const l of e) {
@@ -2545,35 +2624,35 @@ const hl = (o) => {
2545
2624
  }
2546
2625
  }
2547
2626
  return i ? r : o;
2548
- }, Vi = (o, e, t) => {
2627
+ }, Ki = (o, e, t) => {
2549
2628
  let n = !1;
2550
- const r = Cl(o, e);
2629
+ const r = Rl(o, e);
2551
2630
  r !== o && (n = !0);
2552
2631
  const i = new Map(o.flatMap((a) => a.nodes.map((d) => [d.id, d]))), l = new Set(Object.entries(t).filter(([a]) => o.some((d) => d.id === a)).flatMap(([, a]) => a.filter((d) => i.has(d)))), c = [];
2553
2632
  for (const a of r) {
2554
2633
  const d = t[a.id];
2555
2634
  if (!(a.id in t)) {
2556
- const m = a.nodes.filter((p) => !l.has(p.id));
2557
- m.length === a.nodes.length ? c.push(a) : (n = !0, c.push({
2635
+ const p = a.nodes.filter((m) => !l.has(m.id));
2636
+ p.length === a.nodes.length ? c.push(a) : (n = !0, c.push({
2558
2637
  ...a,
2559
- nodes: m
2638
+ nodes: p
2560
2639
  }));
2561
2640
  continue;
2562
2641
  }
2563
- const u = (d ?? []).flatMap((m) => {
2564
- const p = i.get(m);
2565
- return p ? [p] : [];
2566
- }), f = a.nodes.filter((m) => !l.has(m.id)), h = [...u, ...f];
2567
- h.length !== a.nodes.length || h.some((m, p) => m !== a.nodes[p]) ? (n = !0, c.push({
2642
+ const u = (d ?? []).flatMap((p) => {
2643
+ const m = i.get(p);
2644
+ return m ? [m] : [];
2645
+ }), f = a.nodes.filter((p) => !l.has(p.id)), h = [...u, ...f];
2646
+ h.length !== a.nodes.length || h.some((p, m) => p !== a.nodes[m]) ? (n = !0, c.push({
2568
2647
  ...a,
2569
2648
  nodes: h
2570
2649
  })) : c.push(a);
2571
2650
  }
2572
2651
  return n ? c : o;
2573
- }, zt = {
2652
+ }, Nt = {
2574
2653
  sectionOverrides: {},
2575
2654
  nodeOverrides: {}
2576
- }, wl = "pstdio/ui/tree-list-visibility", Il = (o) => `${wl}/${o}`, Tl = (o, e) => o ?? (e ? "hidden" : "shown"), Pl = (o) => o === "hidden" ? "shown" : "hidden", je = (o, e, t) => {
2655
+ }, kl = "pstdio/ui/tree-list-visibility", $l = (o) => `${kl}/${o}`, El = (o, e) => o ?? (e ? "hidden" : "shown"), Dl = (o) => o === "hidden" ? "shown" : "hidden", je = (o, e, t) => {
2577
2656
  if (t === void 0) {
2578
2657
  if (!(e in o)) return o;
2579
2658
  const {
@@ -2586,14 +2665,14 @@ const hl = (o) => {
2586
2665
  ...o,
2587
2666
  [e]: t
2588
2667
  };
2589
- }, Nt = (o, e, t) => {
2590
- const n = Pl(Tl(o[e], t));
2668
+ }, Bt = (o, e, t) => {
2669
+ const n = Dl(El(o[e], t));
2591
2670
  return je(o, e, n);
2592
- }, Al = (o) => ({
2671
+ }, Ll = (o) => ({
2593
2672
  sectionOverrides: o.sectionOverrides,
2594
2673
  nodeOverrides: o.nodeOverrides
2595
- }), Rl = (o) => lt()(ot((e) => ({
2596
- ...zt,
2674
+ }), Ol = (o) => lt()(ot((e) => ({
2675
+ ...Nt,
2597
2676
  setSection: (t, n) => e((r) => ({
2598
2677
  ...r,
2599
2678
  sectionOverrides: je(r.sectionOverrides, t, n)
@@ -2604,11 +2683,11 @@ const hl = (o) => {
2604
2683
  })),
2605
2684
  toggleSection: (t, n) => e((r) => ({
2606
2685
  ...r,
2607
- sectionOverrides: Nt(r.sectionOverrides, t, n)
2686
+ sectionOverrides: Bt(r.sectionOverrides, t, n)
2608
2687
  })),
2609
2688
  toggleNode: (t, n) => e((r) => ({
2610
2689
  ...r,
2611
- nodeOverrides: Nt(r.nodeOverrides, t, n)
2690
+ nodeOverrides: Bt(r.nodeOverrides, t, n)
2612
2691
  })),
2613
2692
  clearSection: (t) => e((n) => ({
2614
2693
  ...n,
@@ -2618,94 +2697,94 @@ const hl = (o) => {
2618
2697
  ...n,
2619
2698
  nodeOverrides: je(n.nodeOverrides, t, void 0)
2620
2699
  })),
2621
- reset: () => e(zt)
2700
+ reset: () => e(Nt)
2622
2701
  }), {
2623
- name: Il(o.storageKey),
2702
+ name: $l(o.storageKey),
2624
2703
  storage: rt(Ve),
2625
- partialize: Al
2626
- })), Bt = /* @__PURE__ */ new Map(), kl = (o) => {
2627
- const e = Bt.get(o);
2704
+ partialize: Ll
2705
+ })), Wt = /* @__PURE__ */ new Map(), _l = (o) => {
2706
+ const e = Wt.get(o);
2628
2707
  if (e) return e;
2629
- const t = Rl({
2708
+ const t = Ol({
2630
2709
  storageKey: o
2631
2710
  });
2632
- return Bt.set(o, t), t;
2633
- }, Gi = (o, e) => {
2634
- const t = k(2);
2711
+ return Wt.set(o, t), t;
2712
+ }, Xi = (o, e) => {
2713
+ const t = O(2);
2635
2714
  let n;
2636
- return t[0] !== o ? (n = kl(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2637
- }, El = [], on = (o, e) => typeof o == "string" && e.some((t) => t.id === o), $l = (o) => {
2715
+ return t[0] !== o ? (n = _l(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2716
+ }, zl = [], fn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), Nl = (o) => {
2638
2717
  const e = o.toLowerCase().split("."), t = [];
2639
2718
  for (let n = 1; n < e.length; n += 1) t.push(e.slice(n).join("."));
2640
2719
  return t;
2641
- }, Dl = (o, e, t) => {
2720
+ }, Bl = (o, e, t) => {
2642
2721
  if (t) return o.defaults.folder;
2643
2722
  const n = o.fileNames[e.toLowerCase()];
2644
2723
  if (n) return n;
2645
- for (const r of $l(e)) {
2724
+ for (const r of Nl(e)) {
2646
2725
  const i = o.fileExtensions[r];
2647
2726
  if (i) return i;
2648
2727
  }
2649
2728
  return o.defaults.file;
2650
- }, Ll = (o, e) => {
2729
+ }, Wl = (o, e) => {
2651
2730
  if (e.fontId) {
2652
2731
  const t = o.fonts.find((n) => n.fontFamily === `${o.id}-${e.fontId}`);
2653
2732
  if (t) return t.fontFamily;
2654
2733
  }
2655
2734
  return o.fonts[0]?.fontFamily;
2656
- }, Ol = (o) => {
2735
+ }, Hl = (o) => {
2657
2736
  const e = /^\\([0-9a-fA-F]+)$/.exec(o);
2658
2737
  return e ? String.fromCodePoint(Number.parseInt(e[1], 16)) : o;
2659
- }, _l = (o, e, t = !1) => {
2738
+ }, Fl = (o, e, t = !1) => {
2660
2739
  if (!o) return;
2661
- const n = Dl(o, e, t);
2740
+ const n = Bl(o, e, t);
2662
2741
  if (!n) return;
2663
2742
  const r = o.definitions[n];
2664
2743
  if (!r?.fontCharacter) return;
2665
- const i = Ll(o, r);
2744
+ const i = Wl(o, r);
2666
2745
  if (i)
2667
2746
  return {
2668
2747
  fontFamily: i,
2669
- fontCharacter: Ol(r.fontCharacter),
2748
+ fontCharacter: Hl(r.fontCharacter),
2670
2749
  fontColor: r.fontColor
2671
2750
  };
2672
- }, Wt = "data-pstdio-file-icon-fonts", zl = (o) => {
2751
+ }, Ht = "data-pstdio-file-icon-fonts", Ml = (o) => {
2673
2752
  const e = o.src.map((t) => `url("${t.url}")${t.format ? ` format("${t.format}")` : ""}`).join(", ");
2674
2753
  return ["@font-face {", ` font-family: "${o.fontFamily}";`, ` src: ${e};`, ` font-weight: ${o.weight ?? "normal"};`, ` font-style: ${o.style ?? "normal"};`, "}"].join(`
2675
2754
  `);
2676
- }, Nl = (o, e) => {
2755
+ }, Vl = (o, e) => {
2677
2756
  if (typeof document > "u") return;
2678
- let t = document.querySelector(`style[${Wt}]`);
2679
- t || (t = document.createElement("style"), t.setAttribute(Wt, ""), document.head.appendChild(t));
2757
+ let t = document.querySelector(`style[${Ht}]`);
2758
+ t || (t = document.createElement("style"), t.setAttribute(Ht, ""), document.head.appendChild(t));
2680
2759
  const n = e.find((r) => r.id === o);
2681
- t.textContent = (n?.fonts ?? []).map(zl).join(`
2760
+ t.textContent = (n?.fonts ?? []).map(Ml).join(`
2682
2761
 
2683
2762
  `);
2684
- }, rn = "file-icon-theme-preference", dt = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, ln = gn(null), Bl = (o) => {
2685
- if (typeof window > "u") return dt(o);
2686
- const e = Ve().getItem(rn);
2687
- return on(e, o) ? e : dt(o);
2688
- }, ji = (o) => {
2689
- const e = k(18), {
2763
+ }, hn = "file-icon-theme-preference", ut = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, mn = In(null), Gl = (o) => {
2764
+ if (typeof window > "u") return ut(o);
2765
+ const e = Ve().getItem(hn);
2766
+ return fn(e, o) ? e : ut(o);
2767
+ }, Yi = (o) => {
2768
+ const e = O(18), {
2690
2769
  children: t,
2691
2770
  themePreferences: n
2692
- } = o, r = n === void 0 ? El : n;
2771
+ } = o, r = n === void 0 ? zl : n;
2693
2772
  let i;
2694
- e[0] !== r ? (i = () => Bl(r), e[0] = r, e[1] = i) : i = e[1];
2773
+ e[0] !== r ? (i = () => Gl(r), e[0] = r, e[1] = i) : i = e[1];
2695
2774
  const [l, c] = fe(i);
2696
2775
  let a, d;
2697
2776
  e[2] !== l || e[3] !== r ? (a = () => {
2698
- const p = on(l, r) ? l : dt(r);
2699
- if (p !== l) {
2700
- c(p);
2777
+ const m = fn(l, r) ? l : ut(r);
2778
+ if (m !== l) {
2779
+ c(m);
2701
2780
  return;
2702
2781
  }
2703
- Nl(p, r), typeof window < "u" && p && Ve().setItem(rn, p);
2782
+ Vl(m, r), typeof window < "u" && m && Ve().setItem(hn, m);
2704
2783
  }, d = [l, r], e[2] = l, e[3] = r, e[4] = a, e[5] = d) : (a = e[4], d = e[5]), me(a, d);
2705
2784
  let u;
2706
2785
  if (e[6] !== l || e[7] !== r) {
2707
- let p;
2708
- e[9] !== l ? (p = (g) => g.id === l, e[9] = l, e[10] = p) : p = e[10], u = r.find(p), e[6] = l, e[7] = r, e[8] = u;
2786
+ let m;
2787
+ 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;
2709
2788
  } else
2710
2789
  u = e[8];
2711
2790
  const f = u;
@@ -2716,19 +2795,19 @@ const hl = (o) => {
2716
2795
  activeFileIconTheme: f,
2717
2796
  setFileIconThemePreference: c
2718
2797
  }, e[11] = f, e[12] = l, e[13] = r, e[14] = h) : h = e[14];
2719
- let m;
2720
- return e[15] !== t || e[16] !== h ? (m = /* @__PURE__ */ s(ln, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = m) : m = e[17], m;
2721
- }, Ui = () => {
2722
- const o = bn(ln);
2798
+ let p;
2799
+ return e[15] !== t || e[16] !== h ? (p = /* @__PURE__ */ s(mn, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = p) : p = e[17], p;
2800
+ }, Zi = () => {
2801
+ const o = Tn(mn);
2723
2802
  if (!o)
2724
2803
  throw new Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
2725
2804
  return o;
2726
- }, Qi = (o, e = {}) => {
2805
+ }, Ji = (o, e = {}) => {
2727
2806
  const {
2728
2807
  isDirectory: t = !1,
2729
2808
  theme: n,
2730
2809
  size: r = 16
2731
- } = e, i = _l(n, o, t);
2810
+ } = e, i = Fl(n, o, t);
2732
2811
  if (i) {
2733
2812
  const c = {
2734
2813
  fontFamily: `"${i.fontFamily}"`,
@@ -2739,151 +2818,151 @@ const hl = (o) => {
2739
2818
  };
2740
2819
  return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: c, children: i.fontCharacter });
2741
2820
  }
2742
- if (t) return /* @__PURE__ */ s(qt, { size: r });
2743
- const l = Wn(o);
2821
+ if (t) return /* @__PURE__ */ s(Kt, { size: r });
2822
+ const l = Qn(o);
2744
2823
  return /* @__PURE__ */ s(l, { size: r });
2745
2824
  };
2746
2825
  export {
2747
- ss as ANCHOR_GRID_VALUES,
2748
- as as ActionInput,
2749
- fi as Activity,
2826
+ hs as ANCHOR_GRID_VALUES,
2827
+ ms as ActionInput,
2828
+ Si as Activity,
2750
2829
  it as ActivityAvatar,
2751
- eo as ActivityComment,
2752
- to as ActivityComposer,
2753
- oo as ActivityEvent,
2754
- io as ActivityFeed,
2755
- lo as ActivityHeader,
2756
- Jn as ActivityReply,
2757
- ro as ActivityRoot,
2758
- so as ActivityTimeline,
2759
- ft as AlertMessage,
2760
- cs as AnchorGridInput,
2761
- vi as AttachedMenu,
2762
- yi as AttachedPanel,
2763
- ds as AttachmentChip,
2764
- us as BooleanInput,
2765
- Ti as Breadcrumb,
2766
- Ci as BubbleButton,
2767
- wi as BubblePanel,
2768
- Ki as ChakraProvider,
2769
- qs as Checkbox,
2770
- fs as Chip,
2771
- hs as ColorInput,
2772
- er as ContentPlaceholder,
2773
- Pi as ContentPlaceholderLabel,
2774
- hi as DEFAULT_PALETTE_ASSET_LIMIT,
2775
- ms as DateInput,
2776
- Go as DeleteConfirmationModal,
2777
- Js as EmptyState,
2778
- Ai as ErrorBoundary,
2779
- ji as FileIconThemePreferenceProvider,
2780
- ps as FileUploadInput,
2781
- On as Header,
2782
- gi as HorizontalMenuStack,
2783
- gs as HorizontalTextInput,
2784
- sr as IconColorPicker,
2785
- Ri as IntegrationCard,
2786
- bi as ItemSection,
2830
+ oo as ActivityComment,
2831
+ ro as ActivityComposer,
2832
+ io as ActivityEvent,
2833
+ co as ActivityFeed,
2834
+ ao as ActivityHeader,
2835
+ no as ActivityReply,
2836
+ so as ActivityRoot,
2837
+ uo as ActivityTimeline,
2838
+ ht as AlertMessage,
2839
+ ps as AnchorGridInput,
2840
+ Pi as AttachedMenu,
2841
+ Ai as AttachedPanel,
2842
+ gs as AttachmentChip,
2843
+ bs as BooleanInput,
2844
+ Ei as Breadcrumb,
2845
+ Ri as BubbleButton,
2846
+ ki as BubblePanel,
2847
+ ns as ChakraProvider,
2848
+ ea as Checkbox,
2849
+ Ss as Chip,
2850
+ xs as ColorInput,
2851
+ or as ContentPlaceholder,
2852
+ Di as ContentPlaceholderLabel,
2853
+ xi as DEFAULT_PALETTE_ASSET_LIMIT,
2854
+ vs as DateInput,
2855
+ Qo as DeleteConfirmationModal,
2856
+ la as EmptyState,
2857
+ Li as ErrorBoundary,
2858
+ Yi as FileIconThemePreferenceProvider,
2859
+ ys as FileUploadInput,
2860
+ Mn as Header,
2861
+ Ci as HorizontalMenuStack,
2862
+ Cs as HorizontalTextInput,
2863
+ dr as IconColorPicker,
2864
+ Oi as IntegrationCard,
2865
+ wi as ItemSection,
2787
2866
  Qe as ListRow,
2788
- bs as MarkdownInput,
2789
- xi as NotificationCenter,
2790
- Ss as NumberInput,
2791
- Ct as PANEL_HEADER_CONTROL_SIZE,
2792
- $o as PANEL_HEADER_HEIGHT,
2793
- Si as PANEL_HEADER_TAB_SIZE,
2794
- mi as Palette,
2795
- pi as PaletteShortcut,
2796
- Gs as ParamEditor,
2797
- xs as ParamEditorControlItem,
2798
- $i as ParamEditorControlList,
2799
- vs as ParamEditorField,
2800
- ys as ParamEditorFieldLabel,
2801
- Cs as ParamEditorInlineGroup,
2802
- ws as ParamEditorLabel,
2803
- Is as ParamEditorReadOnlyField,
2804
- Ts as ParamEditorReadOnlyValue,
2805
- js as ParamEditorRow,
2806
- Us as ParamEditorSection,
2807
- rs as Radio,
2808
- ls as RadioGroup,
2809
- Ps as RangeInput,
2810
- Ii as RepoPickerDialog,
2811
- ts as ResizableSplitLayout,
2812
- Zi as ResourceActionMenu,
2813
- Xs as ResourceBadge,
2814
- Kt as ResourceContextMenu,
2815
- As as ResourceInput,
2867
+ ws as MarkdownInput,
2868
+ Ti as NotificationCenter,
2869
+ Is as NumberInput,
2870
+ wt as PANEL_HEADER_CONTROL_SIZE,
2871
+ Oo as PANEL_HEADER_HEIGHT,
2872
+ Ii as PANEL_HEADER_TAB_SIZE,
2873
+ vi as Palette,
2874
+ yi as PaletteShortcut,
2875
+ Xs as ParamEditor,
2876
+ Ts as ParamEditorControlItem,
2877
+ Ni as ParamEditorControlList,
2878
+ Ps as ParamEditorField,
2879
+ As as ParamEditorFieldLabel,
2880
+ Rs as ParamEditorInlineGroup,
2881
+ ks as ParamEditorLabel,
2882
+ $s as ParamEditorReadOnlyField,
2883
+ Es as ParamEditorReadOnlyValue,
2884
+ Ys as ParamEditorRow,
2885
+ Zs as ParamEditorSection,
2886
+ ds as Radio,
2887
+ us as RadioGroup,
2888
+ Ds as RangeInput,
2889
+ $i as RepoPickerDialog,
2890
+ ss as ResizableSplitLayout,
2891
+ rs as ResourceActionMenu,
2892
+ ta as ResourceBadge,
2893
+ Yt as ResourceContextMenu,
2894
+ Ls as ResourceInput,
2816
2895
  tt as ScrollArea,
2817
- Jt as SearchModalContent,
2818
- Ji as SearchableMenu,
2819
- ki as SegmentedControl,
2820
- Rs as SegmentedInput,
2821
- ks as SelectionInput,
2822
- Ns as SessionIndicator,
2823
- Di as Sidenav,
2824
- ar as SimpleCard,
2825
- cr as SimpleCardBody,
2826
- Es as Slider,
2827
- Ks as Switch,
2828
- ul as TagEditor,
2829
- nl as TagEditorHeading,
2830
- hl as TagEditorSaveBar,
2831
- Fi as TagSettingsPanel,
2832
- or as TagSwatch,
2833
- $s as TextInput,
2834
- la as ThemePreferenceProvider,
2835
- Ei as Toaster,
2896
+ an as SearchModalContent,
2897
+ ls as SearchableMenu,
2898
+ _i as SegmentedControl,
2899
+ Os as SegmentedInput,
2900
+ _s as SelectionInput,
2901
+ Vs as SessionIndicator,
2902
+ Bi as Sidenav,
2903
+ ur as SimpleCard,
2904
+ fr as SimpleCardBody,
2905
+ zs as Slider,
2906
+ na as Switch,
2907
+ bl as TagEditor,
2908
+ al as TagEditorHeading,
2909
+ xl as TagEditorSaveBar,
2910
+ Qi as TagSettingsPanel,
2911
+ ir as TagSwatch,
2912
+ Ns as TextInput,
2913
+ ua as ThemePreferenceProvider,
2914
+ zi as Toaster,
2836
2915
  Ue as Tooltip,
2837
- _n as TreeList,
2838
- ns as TreeListDragProvider,
2839
- Ds as VectorInput,
2840
- Wi as WindowTabs,
2841
- Hi as WindowTitleBar,
2842
- Bs as WorkspaceBadge,
2843
- Nl as applyFileIconThemePreference,
2844
- ia as applyThemePreference,
2845
- Vi as applyTreeListOrder,
2846
- Bi as buildTabVisibilityMenuActions,
2847
- zi as buildTreeVisibilityMenuActions,
2848
- Ls as createGlyphIcon,
2849
- ta as createMonacoThemeFromVsCodeTheme,
2850
- na as createThemePreferenceFromVsCodeTheme,
2851
- El as defaultFileIconThemePreferences,
2852
- sa as defaultThemePreferences,
2853
- ho as filterPaletteEntries,
2854
- Oi as filterVisibleNodes,
2855
- _i as filterVisibleSections,
2856
- Ni as filterVisibleTabs,
2857
- Wn as getFileTypeIcon,
2858
- zn as getIconComponent,
2859
- aa as getInitialThemePreference,
2860
- Fr as getTabVisibilityStore,
2861
- ca as getThemePreferenceClassName,
2862
- da as getThemePreferenceClassNames,
2863
- ua as getThemePreferenceMode,
2864
- yl as getTreeListOrderStore,
2865
- kl as getTreeListVisibilityStore,
2866
- Ws as handleDialogAcceptShortcut,
2867
- Ys as installPrismGlobal,
2868
- Os as isAnchorGridValue,
2869
- on as isFileIconThemePreference,
2870
- _s as isParamEditorRichControl,
2871
- fa as isThemePreference,
2872
- Bn as optionColors,
2873
- Nn as optionIcons,
2874
- oa as psTheme,
2875
- Qi as resolveFileIconElement,
2876
- _l as resolveFileIconGlyph,
2877
- Hs as resolveSessionIndicatorColor,
2878
- Fs as resolveSessionIndicatorIcon,
2916
+ Vn as TreeList,
2917
+ as as TreeListDragProvider,
2918
+ Bs as VectorInput,
2919
+ ji as WindowTabs,
2920
+ Ui as WindowTitleBar,
2921
+ Gs as WorkspaceBadge,
2922
+ Vl as applyFileIconThemePreference,
2923
+ fa as applyThemePreference,
2924
+ Ki as applyTreeListOrder,
2925
+ Gi as buildTabVisibilityMenuActions,
2926
+ Mi as buildTreeVisibilityMenuActions,
2927
+ Ws as createGlyphIcon,
2928
+ sa as createMonacoThemeFromVsCodeTheme,
2929
+ aa as createThemePreferenceFromVsCodeTheme,
2930
+ zl as defaultFileIconThemePreferences,
2931
+ ha as defaultThemePreferences,
2932
+ go as filterPaletteEntries,
2933
+ Hi as filterVisibleNodes,
2934
+ Fi as filterVisibleSections,
2935
+ Vi as filterVisibleTabs,
2936
+ Qn as getFileTypeIcon,
2937
+ Gn as getIconComponent,
2938
+ ma as getInitialThemePreference,
2939
+ Gr as getTabVisibilityStore,
2940
+ pa as getThemePreferenceClassName,
2941
+ ga as getThemePreferenceClassNames,
2942
+ ba as getThemePreferenceMode,
2943
+ Al as getTreeListOrderStore,
2944
+ _l as getTreeListVisibilityStore,
2945
+ js as handleDialogAcceptShortcut,
2946
+ oa as installPrismGlobal,
2947
+ Hs as isAnchorGridValue,
2948
+ fn as isFileIconThemePreference,
2949
+ Fs as isParamEditorRichControl,
2950
+ Sa as isThemePreference,
2951
+ Un as optionColors,
2952
+ jn as optionIcons,
2953
+ ca as psTheme,
2954
+ Ji as resolveFileIconElement,
2955
+ Fl as resolveFileIconGlyph,
2956
+ Us as resolveSessionIndicatorColor,
2957
+ Qs as resolveSessionIndicatorIcon,
2879
2958
  Ge as resolveVisibility,
2880
- Ms as sessionCompletionStatuses,
2881
- pr as toaster,
2882
- Ui as useFileIconThemePreference,
2959
+ qs as sessionCompletionStatuses,
2960
+ Sr as toaster,
2961
+ Zi as useFileIconThemePreference,
2883
2962
  Be as useSidenavStore,
2884
- Li as useTabVisibilityStore,
2885
- ha as useThemePreference,
2886
- Mi as useTreeListOrderStore,
2887
- Gi as useTreeListVisibilityStore
2963
+ Wi as useTabVisibilityStore,
2964
+ xa as useThemePreference,
2965
+ qi as useTreeListOrderStore,
2966
+ Xi as useTreeListVisibilityStore
2888
2967
  };
2889
2968
  //# sourceMappingURL=index.js.map