@pstdio/ui 0.24.1 → 0.25.0

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