@pstdio/ui 0.3.1 → 0.4.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 (80) hide show
  1. package/dist/chat-ui.js +12 -11
  2. package/dist/chat-ui.js.map +1 -1
  3. package/dist/components/attached-panel.d.ts +9 -0
  4. package/dist/components/attached-panel.utils.d.ts +6 -0
  5. package/dist/components/bubble-button.d.ts +10 -0
  6. package/dist/components/bubble-panel.d.ts +18 -0
  7. package/dist/components/chat-ui/components/chat-panel-sticky-user-message.d.ts +1 -1
  8. package/dist/components/diff-card.d.ts +3 -0
  9. package/dist/components/diff-drawer.d.ts +1 -0
  10. package/dist/components/layout.d.ts +1 -2
  11. package/dist/components/layout.stories.d.ts +3 -3
  12. package/dist/components/panel-header.constants.d.ts +1 -0
  13. package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +1 -0
  14. package/dist/components/rich-text/shared/components/content-editable.d.ts +2 -1
  15. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/resolve-block-type.d.ts +17 -0
  16. package/dist/components/rich-text/shared/transformers/markdown-transformers.d.ts +1 -0
  17. package/dist/components/searchable-menu.d.ts +35 -2
  18. package/dist/components/searchable-menu.stories.d.ts +2 -0
  19. package/dist/components/session-indicator.d.ts +2 -2
  20. package/dist/components/session-indicator.stories.d.ts +1 -0
  21. package/dist/components/sidebar/sidebar-footer.d.ts +6 -0
  22. package/dist/components/sidebar/sidebar-header.d.ts +7 -0
  23. package/dist/components/sidebar/sidebar-project-menu.d.ts +10 -0
  24. package/dist/components/sidebar/sidebar.d.ts +2 -0
  25. package/dist/components/sidebar/sidebar.store.d.ts +47 -0
  26. package/dist/components/{sidebar-next/sidebar-next.stories.d.ts → sidebar/sidebar.stories.d.ts} +4 -3
  27. package/dist/components/{sidebar-next/sidebar-next.types.d.ts → sidebar/sidebar.types.d.ts} +3 -2
  28. package/dist/components/sidebar-tree/sidebar-node-content.d.ts +9 -0
  29. package/dist/components/sidebar-tree/sidebar-tree.d.ts +1 -1
  30. package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +10 -2
  31. package/dist/components/style-guide.stories.d.ts +6 -11
  32. package/dist/components/tickets/ticket-card.d.ts +2 -7
  33. package/dist/components/workspace-badge.d.ts +22 -0
  34. package/dist/components/workspace-badge.stories.d.ts +13 -0
  35. package/dist/get-file-type-icon-CirIyuE8.js +92 -0
  36. package/dist/get-file-type-icon-CirIyuE8.js.map +1 -0
  37. package/dist/index.d.ts +18 -19
  38. package/dist/index.js +1849 -1743
  39. package/dist/index.js.map +1 -1
  40. package/dist/{rich-message-ZT2CEiwt.js → rich-message-Bad4GxH2.js} +520 -503
  41. package/dist/rich-message-Bad4GxH2.js.map +1 -0
  42. package/dist/rich-text.js +276 -272
  43. package/dist/rich-text.js.map +1 -1
  44. package/dist/style.css +1 -1
  45. package/dist/test-utils/local-storage.d.ts +1 -0
  46. package/dist/theme/global.d.ts +3 -0
  47. package/dist/theme/primitives/colors.d.ts +116 -0
  48. package/dist/theme/recipes/button.d.ts +13 -13
  49. package/dist/theme/recipes/dialog.d.ts +1 -1
  50. package/dist/theme/recipes/drawer.d.ts +1 -1
  51. package/dist/theme/recipes/menu.d.ts +1 -1
  52. package/dist/theme/recipes/popover.d.ts +1 -1
  53. package/dist/theme/recipes/tooltip.d.ts +1 -1
  54. package/dist/theme/tokens/colors.d.ts +162 -8
  55. package/dist/{theme-BFV2Q048.js → theme-D0VvFB1Y.js} +292 -154
  56. package/dist/theme-D0VvFB1Y.js.map +1 -0
  57. package/dist/theme.js +1 -1
  58. package/package.json +2 -2
  59. package/dist/components/documentation/docs-changelog.d.ts +0 -20
  60. package/dist/components/documentation/docs-changelog.stories.d.ts +0 -15
  61. package/dist/components/documentation/docs-outline.d.ts +0 -13
  62. package/dist/components/documentation/docs-outline.stories.d.ts +0 -16
  63. package/dist/components/documentation/docs-pagination.d.ts +0 -10
  64. package/dist/components/documentation/docs-pagination.stories.d.ts +0 -14
  65. package/dist/components/documentation/docs-sidebar.d.ts +0 -14
  66. package/dist/components/documentation/docs-sidebar.stories.d.ts +0 -7
  67. package/dist/components/panel-menu.d.ts +0 -9
  68. package/dist/components/panel-menu.stories.d.ts +0 -8
  69. package/dist/components/sidebar-next/sidebar-next-footer.d.ts +0 -6
  70. package/dist/components/sidebar-next/sidebar-next-header.d.ts +0 -7
  71. package/dist/components/sidebar-next/sidebar-next.d.ts +0 -2
  72. package/dist/components/sidebar-next/sidebar-next.store.d.ts +0 -47
  73. package/dist/components/sidebar-next/sidebar-next.store.test.d.ts +0 -1
  74. package/dist/rich-message-ZT2CEiwt.js.map +0 -1
  75. package/dist/theme-BFV2Q048.js.map +0 -1
  76. package/dist/tooltip-Dze4WXVl.js +0 -86
  77. package/dist/tooltip-Dze4WXVl.js.map +0 -1
  78. /package/dist/components/{chat-ui/components/ai-conversation.test.d.ts → attached-panel.utils.test.d.ts} +0 -0
  79. /package/dist/components/{chat-ui/components/chat-panel.sticky-user-message.test.d.ts → rich-text/shared/transformers/markdown-transformers.test.d.ts} +0 -0
  80. /package/dist/components/{searchable-menu.test.d.ts → sidebar/sidebar.store.test.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -1,18 +1,20 @@
1
- import { Breadcrumb as ve, Checkbox as Ee, Box as j, Text as L, Dialog as fe, CloseButton as Rt, Stack as H, Button as he, IconButton as Se, Grid as Et, Timeline as xe, HStack as X, Image as zt, List as pt, Flex as Ie, Badge as Pe, Link as Ue, Heading as Ot, useEnvironmentContext as At, Icon as ue, Collapsible as De, MenuItem as nt, Menu as ie, AbsoluteCenter as Mt, Separator as Ye, Portal as He, InputGroup as Gt, Input as Nt, Switch as Te, Popover as ke, SegmentGroup as we, Wrap as mt, Spacer as Ht, createToaster as Wt, Toaster as Bt, Toast as _e, Spinner as Ft } from "@chakra-ui/react";
2
- import { ChakraProvider as ho } from "@chakra-ui/react";
3
- import { D as Vt, a as bt, E as Ke, A as jt } from "./empty-state-yGspgiPl.js";
4
- import { jsx as i, jsxs as x, Fragment as Qe } from "react/jsx-runtime";
5
- import { c as A } from "react/compiler-runtime";
6
- import * as Ze from "react";
7
- import { useState as pe, useRef as et, useEffect as ze, Children as Xt, isValidElement as Ut, cloneElement as Yt, Component as Kt, Fragment as qt, createContext as Jt, useContext as Qt } from "react";
8
- import { Editor as Zt, DiffEditor as en } from "@monaco-editor/react";
9
- import { useVirtualizer as tn } from "@tanstack/react-virtual";
10
- import { ChevronRight as Ce, ChevronDown as tt, FileText as qe, ChevronLeft as nn, FolderOpen as ln, Folder as on, Home as rn, ChevronUp as sn, Info as an, Search as cn, CircleCheck as dn, CircleAlert as un, CircleDashed as fn, PanelLeftClose as gn, Settings2 as hn, List as pn, KanbanSquare as mn, ArrowDownUp as bn, Filter as xn, GitBranchIcon as Sn, Plus as yn, MoreHorizontal as vn } from "lucide-react";
11
- import { S as ye, T as Le } from "./tooltip-Dze4WXVl.js";
12
- import { useStore as xt } from "zustand";
13
- import { persist as St, createJSONStorage as yt } from "zustand/middleware";
14
- import { createStore as vt } from "zustand/vanilla";
15
- import { useReactTable as Cn, getExpandedRowModel as wn, getCoreRowModel as In, flexRender as kn } from "@tanstack/react-table";
1
+ import { Flex as fe, Box as V, Breadcrumb as ye, IconButton as he, chakra as It, Portal as He, HStack as j, Spacer as Pt, Checkbox as Ne, Text as W, Dialog as se, CloseButton as Qt, Stack as B, Button as pe, Grid as Zt, AbsoluteCenter as en, MenuItem as dt, Icon as ae, Badge as Pe, Menu as Y, Collapsible as je, createToaster as tn, Toaster as nn, Toast as ze, Spinner as Tt, Link as ut, Separator as it, InputGroup as ln, Input as on, Avatar as ft, Switch as Ie, Popover as we, SegmentGroup as Ce, Wrap as Dt } from "@chakra-ui/react";
2
+ import { ChakraProvider as Ui } from "@chakra-ui/react";
3
+ import { D as rn, a as _t, E as rt, A as sn } from "./empty-state-yGspgiPl.js";
4
+ import { jsxs as x, jsx as o, Fragment as Lt } from "react/jsx-runtime";
5
+ import { c as R } from "react/compiler-runtime";
6
+ import * as at from "react";
7
+ import { useRef as Be, useState as ge, useEffect as Oe, forwardRef as $t, Component as an, Children as cn, isValidElement as dn, cloneElement as un, Fragment as fn, createContext as pn, useContext as hn } from "react";
8
+ import { T as xe, S as ke } from "./get-file-type-icon-CirIyuE8.js";
9
+ import { g as Ki } from "./get-file-type-icon-CirIyuE8.js";
10
+ import { SquareArrowOutUpRight as gn, Minus as mn, ChevronRight as Te, ChevronDown as Fe, FileText as bn, FolderOpen as Sn, Folder as xn, Home as yn, ChevronUp as vn, Info as Cn, Search as wn, CircleCheck as kn, CircleAlert as In, CirclePause as Pn, CircleDashed as Tn, PanelLeftClose as Dn, Sun as _n, Moon as Ln, FolderIcon as $n, Settings2 as Rn, List as Wn, KanbanSquare as En, ArrowDownUp as zn, Filter as An, GitCommitIcon as On, GitBranchIcon as Mn, Plus as Gn, MoreHorizontal as Nn } from "lucide-react";
11
+ import { Editor as Bn, DiffEditor as Hn } from "@monaco-editor/react";
12
+ import { useVirtualizer as Fn } from "@tanstack/react-virtual";
13
+ import { Outlet as Vn } from "@tanstack/react-router";
14
+ import { useStore as Rt } from "zustand";
15
+ import { persist as Wt, createJSONStorage as Et } from "zustand/middleware";
16
+ import { createStore as zt } from "zustand/vanilla";
17
+ import { useReactTable as jn, getExpandedRowModel as Xn, getCoreRowModel as Un, flexRender as Yn } from "@tanstack/react-table";
16
18
  import "@fontsource/inter/400.css";
17
19
  import "@fontsource/inter/500.css";
18
20
  import "@fontsource/playfair-display/400.css";
@@ -21,61 +23,190 @@ import "@fontsource/playfair-display/700.css";
21
23
  import "@fontsource/onest/400.css";
22
24
  import "@fontsource/onest/500.css";
23
25
  import "@fontsource/onest/700.css";
24
- import { t as mo } from "./theme-BFV2Q048.js";
25
- const Vi = Ze.forwardRef(function(e, n) {
26
- const t = A(21);
27
- let o, s, r, a, c;
26
+ import { t as Ji } from "./theme-D0VvFB1Y.js";
27
+ const Kn = (l, e) => {
28
+ const {
29
+ min: n,
30
+ max: t
31
+ } = e;
32
+ return Math.min(Math.max(l, n), t);
33
+ }, qn = "20rem", pt = 320, wi = (l) => {
34
+ const e = R(23);
35
+ let n, t, i, s, r, a;
36
+ e[0] !== l ? ({
37
+ children: n,
38
+ header: t,
39
+ width: r,
40
+ minWidth: i,
41
+ resizable: a,
42
+ ...s
43
+ } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = i, e[4] = s, e[5] = r, e[6] = a) : (n = e[1], t = e[2], i = e[3], s = e[4], r = e[5], a = e[6]);
44
+ const c = r === void 0 ? "28rem" : r, d = a === void 0 ? !1 : a, u = Be(null), f = Be(Jn), [p, h] = ge(null), g = i ?? (d ? qn : c), S = p === null ? c : `${p}px`;
45
+ let m, v;
46
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = () => () => f.current(), v = [], e[7] = m, e[8] = v) : (m = e[7], v = e[8]), Oe(m, v);
47
+ let C;
48
+ e[9] !== d ? (C = (T) => {
49
+ if (!d || !u.current)
50
+ return;
51
+ T.preventDefault();
52
+ const b = u.current, P = T.clientX, w = b.getBoundingClientRect().width, _ = window.getComputedStyle(b), L = Number.parseFloat(_.minWidth) || pt, $ = b.parentElement?.getBoundingClientRect().width ?? window.innerWidth, z = Math.max(L, $ - pt), O = document.body.style.cursor, G = document.body.style.userSelect, H = (F) => {
53
+ const A = F.clientX - P, E = Kn(w - A, {
54
+ min: L,
55
+ max: z
56
+ });
57
+ h(E);
58
+ }, X = () => {
59
+ window.removeEventListener("pointermove", H), window.removeEventListener("pointerup", X), document.body.style.cursor = O, document.body.style.userSelect = G, f.current = Qn;
60
+ };
61
+ f.current = X, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", window.addEventListener("pointermove", H), window.addEventListener("pointerup", X, {
62
+ once: !0
63
+ });
64
+ }, e[9] = d, e[10] = C) : C = e[10];
65
+ const k = C;
66
+ let y;
67
+ e[11] !== k || e[12] !== d ? (y = d ? /* @__PURE__ */ o(V, { role: "separator", "aria-label": "Resize attached panel", "aria-orientation": "vertical", position: "absolute", top: "0", bottom: "0", left: "0", width: "3", transform: "translateX(-50%)", cursor: "col-resize", touchAction: "none", zIndex: "1", onPointerDown: k }) : null, e[11] = k, e[12] = d, e[13] = y) : y = e[13];
68
+ let I;
69
+ e[14] !== n ? (I = /* @__PURE__ */ o(fe, { flex: "1", minH: 0, direction: "column", children: n }), e[14] = n, e[15] = I) : I = e[15];
70
+ let D;
71
+ return e[16] !== t || e[17] !== g || e[18] !== S || e[19] !== s || e[20] !== y || e[21] !== I ? (D = /* @__PURE__ */ x(fe, { ref: u, direction: "column", position: "relative", flexShrink: 0, w: S, minW: g, h: "100%", borderLeftWidth: "1px", bg: "bg", overflow: "hidden", ...s, children: [
72
+ y,
73
+ t,
74
+ I
75
+ ] }), e[16] = t, e[17] = g, e[18] = S, e[19] = s, e[20] = y, e[21] = I, e[22] = D) : D = e[22], D;
76
+ };
77
+ function Jn() {
78
+ }
79
+ function Qn() {
80
+ }
81
+ const ki = at.forwardRef(function(e, n) {
82
+ const t = R(21);
83
+ let i, s, r, a, c;
28
84
  t[0] !== e ? ({
29
85
  separator: a,
30
86
  separatorGap: c,
31
87
  items: s,
32
- linkComponent: o,
88
+ linkComponent: i,
33
89
  ...r
34
- } = e, t[0] = e, t[1] = o, t[2] = s, t[3] = r, t[4] = a, t[5] = c) : (o = t[1], s = t[2], r = t[3], a = t[4], c = t[5]);
90
+ } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5]);
35
91
  let d;
36
- if (t[6] !== o || t[7] !== s || t[8] !== a) {
37
- let g;
38
- t[10] !== o || t[11] !== s.length || t[12] !== a ? (g = (h, p) => {
39
- const m = p === s.length - 1, b = !!(h.url || h.onClick);
40
- let y;
41
- return m && !b ? y = /* @__PURE__ */ i(ve.CurrentLink, { children: h.title }) : h.url ? y = o ? /* @__PURE__ */ i(ve.Link, { asChild: !0, children: /* @__PURE__ */ i(o, { to: h.url, children: h.title }) }) : /* @__PURE__ */ i(ve.Link, { href: h.url, children: h.title }) : h.onClick ? y = /* @__PURE__ */ i(ve.Link, { as: "button", type: "button", onClick: h.onClick, children: h.title }) : y = /* @__PURE__ */ i(ve.Link, { children: h.title }), /* @__PURE__ */ x(ve.Item, { children: [
42
- y,
43
- m ? null : /* @__PURE__ */ i(ve.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
44
- ] }, p);
45
- }, t[10] = o, t[11] = s.length, t[12] = a, t[13] = g) : g = t[13], d = s.map(g), t[6] = o, t[7] = s, t[8] = a, t[9] = d;
92
+ if (t[6] !== i || t[7] !== s || t[8] !== a) {
93
+ let p;
94
+ t[10] !== i || t[11] !== s.length || t[12] !== a ? (p = (h, g) => {
95
+ const S = g === s.length - 1, m = !!(h.url || h.onClick);
96
+ let v;
97
+ return S && !m ? v = /* @__PURE__ */ o(ye.CurrentLink, { children: h.title }) : h.url ? v = i ? /* @__PURE__ */ o(ye.Link, { asChild: !0, children: /* @__PURE__ */ o(i, { to: h.url, children: h.title }) }) : /* @__PURE__ */ o(ye.Link, { href: h.url, children: h.title }) : h.onClick ? v = /* @__PURE__ */ o(ye.Link, { as: "button", type: "button", onClick: h.onClick, children: h.title }) : v = /* @__PURE__ */ o(ye.Link, { children: h.title }), /* @__PURE__ */ x(ye.Item, { children: [
98
+ v,
99
+ S ? null : /* @__PURE__ */ o(ye.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
100
+ ] }, g);
101
+ }, t[10] = i, t[11] = s.length, t[12] = a, t[13] = p) : p = t[13], d = s.map(p), t[6] = i, t[7] = s, t[8] = a, t[9] = d;
46
102
  } else
47
103
  d = t[9];
48
104
  let u;
49
- t[14] !== c || t[15] !== d ? (u = /* @__PURE__ */ i(ve.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = u) : u = t[16];
105
+ t[14] !== c || t[15] !== d ? (u = /* @__PURE__ */ o(ye.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = u) : u = t[16];
106
+ let f;
107
+ return t[17] !== n || t[18] !== r || t[19] !== u ? (f = /* @__PURE__ */ o(ye.Root, { ref: n, ...r, children: u }), t[17] = n, t[18] = r, t[19] = u, t[20] = f) : f = t[20], f;
108
+ }), Ii = $t(function(e, n) {
109
+ const t = R(21);
110
+ let i, s, r, a, c;
111
+ t[0] !== e ? ({
112
+ children: i,
113
+ containerProps: s,
114
+ isOpen: a,
115
+ tooltip: c,
116
+ ...r
117
+ } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5]);
118
+ const d = a === void 0 ? !1 : a, u = d ? "none" : "mid";
50
119
  let f;
51
- return t[17] !== n || t[18] !== r || t[19] !== u ? (f = /* @__PURE__ */ i(ve.Root, { ref: n, ...r, children: u }), t[17] = n, t[18] = r, t[19] = u, t[20] = f) : f = t[20], f;
52
- }), Pn = Ze.forwardRef(function(e, n) {
53
- const t = A(26);
54
- let o, s, r, a, c, d;
120
+ t[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
121
+ borderColor: "border.accent",
122
+ boxShadow: "mid"
123
+ }, t[6] = f) : f = t[6];
124
+ const p = d ? "none" : "mid";
125
+ let h;
126
+ t[7] !== p ? (h = {
127
+ boxShadow: p
128
+ }, t[7] = p, t[8] = h) : h = t[8];
129
+ let g;
130
+ t[9] !== i || t[10] !== n || t[11] !== r || t[12] !== u || t[13] !== h ? (g = /* @__PURE__ */ o(he, { ref: n, rounded: "full", size: "lg", borderWidth: "1px", boxShadow: u, transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: f, _active: h, ...r, children: i }), t[9] = i, t[10] = n, t[11] = r, t[12] = u, t[13] = h, t[14] = g) : g = t[14];
131
+ const S = g;
132
+ let m;
133
+ t[15] !== S || t[16] !== c ? (m = c ? /* @__PURE__ */ o(xe, { content: c, children: S }) : S, t[15] = S, t[16] = c, t[17] = m) : m = t[17];
134
+ let v;
135
+ return t[18] !== s || t[19] !== m ? (v = /* @__PURE__ */ o(It.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...s, children: m }), t[18] = s, t[19] = m, t[20] = v) : v = t[20], v;
136
+ }), Pi = $t(function(e, n) {
137
+ const t = R(28), {
138
+ isOpen: i,
139
+ title: s,
140
+ menu: r,
141
+ onClose: a,
142
+ closeLabel: c,
143
+ onPopOut: d,
144
+ popOutLabel: u,
145
+ width: f,
146
+ height: p,
147
+ containerProps: h,
148
+ testId: g,
149
+ "aria-label": S,
150
+ children: m
151
+ } = e, v = i === void 0 ? !1 : i, C = f === void 0 ? "28rem" : f, k = p === void 0 ? "38rem" : p;
152
+ if (!v)
153
+ return null;
154
+ const y = S ?? s;
155
+ let I;
156
+ t[0] !== r ? (I = /* @__PURE__ */ o(j, { gap: "1", minW: "0", children: r }), t[0] = r, t[1] = I) : I = t[1];
157
+ let D;
158
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ o(Pt, {}), t[2] = D) : D = t[2];
159
+ let T;
160
+ t[3] !== d || t[4] !== u ? (T = d ? /* @__PURE__ */ o(xe, { content: u, children: /* @__PURE__ */ o(he, { size: "xs", variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ o(gn, { size: 16 }) }) }) : null, t[3] = d, t[4] = u, t[5] = T) : T = t[5];
161
+ let b;
162
+ t[6] !== c || t[7] !== a ? (b = a ? /* @__PURE__ */ o(xe, { content: c, children: /* @__PURE__ */ o(he, { size: "xs", variant: "ghost", "aria-label": c, onClick: a, children: /* @__PURE__ */ o(mn, { size: 16 }) }) }) : null, t[6] = c, t[7] = a, t[8] = b) : b = t[8];
163
+ let P;
164
+ t[9] !== T || t[10] !== b ? (P = /* @__PURE__ */ x(j, { gap: "1", children: [
165
+ T,
166
+ b
167
+ ] }), t[9] = T, t[10] = b, t[11] = P) : P = t[11];
168
+ let w;
169
+ t[12] !== I || t[13] !== P ? (w = /* @__PURE__ */ x(j, { alignItems: "center", gap: "sm", px: "xs", pt: "md", pb: "xs", children: [
170
+ I,
171
+ D,
172
+ P
173
+ ] }), t[12] = I, t[13] = P, t[14] = w) : w = t[14];
174
+ let _;
175
+ t[15] !== m ? (_ = /* @__PURE__ */ o(V, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: m }), t[15] = m, t[16] = _) : _ = t[16];
176
+ let L;
177
+ t[17] !== _ || t[18] !== w ? (L = /* @__PURE__ */ x(fe, { direction: "column", h: "full", children: [
178
+ w,
179
+ _
180
+ ] }), t[17] = _, t[18] = w, t[19] = L) : L = t[19];
181
+ let $;
182
+ return t[20] !== h || t[21] !== k || t[22] !== n || t[23] !== L || t[24] !== y || t[25] !== g || t[26] !== C ? ($ = /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(It.section, { ref: n, role: "dialog", "data-testid": g, "aria-label": y, position: "fixed", bottom: "3", right: "3", w: C, maxW: "calc(100vw - 2rem)", h: k, maxH: "calc(100vh - 2rem)", borderRadius: "3xl", boxShadow: "2xl", bg: "bg", zIndex: "dropdown", ...h, children: L }) }), t[20] = h, t[21] = k, t[22] = n, t[23] = L, t[24] = y, t[25] = g, t[26] = C, t[27] = $) : $ = t[27], $;
183
+ }), Zn = at.forwardRef(function(e, n) {
184
+ const t = R(26);
185
+ let i, s, r, a, c, d;
55
186
  t[0] !== e ? ({
56
187
  icon: s,
57
- children: o,
188
+ children: i,
58
189
  inputProps: r,
59
190
  rootRef: c,
60
191
  disabled: d,
61
192
  ...a
62
- } = e, t[0] = e, t[1] = o, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = d) : (o = t[1], s = t[2], r = t[3], a = t[4], c = t[5], d = t[6]);
193
+ } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = d) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5], d = t[6]);
63
194
  const u = d === void 0 ? !1 : d, f = u ? "not-allowed" : "pointer";
64
- let g;
65
- t[7] !== r || t[8] !== n ? (g = /* @__PURE__ */ i(Ee.HiddenInput, { ref: n, ...r }), t[7] = r, t[8] = n, t[9] = g) : g = t[9];
66
- let h;
67
- t[10] !== s ? (h = s || /* @__PURE__ */ i(Ee.Indicator, {}), t[10] = s, t[11] = h) : h = t[11];
68
195
  let p;
69
- t[12] !== f || t[13] !== h ? (p = /* @__PURE__ */ i(Ee.Control, { borderRadius: "xs", cursor: f, children: h }), t[12] = f, t[13] = h, t[14] = p) : p = t[14];
196
+ t[7] !== r || t[8] !== n ? (p = /* @__PURE__ */ o(Ne.HiddenInput, { ref: n, ...r }), t[7] = r, t[8] = n, t[9] = p) : p = t[9];
197
+ let h;
198
+ t[10] !== s ? (h = s || /* @__PURE__ */ o(Ne.Indicator, {}), t[10] = s, t[11] = h) : h = t[11];
199
+ let g;
200
+ t[12] !== f || t[13] !== h ? (g = /* @__PURE__ */ o(Ne.Control, { borderRadius: "xs", cursor: f, children: h }), t[12] = f, t[13] = h, t[14] = g) : g = t[14];
201
+ let S;
202
+ t[15] !== i || t[16] !== f ? (S = i != null && /* @__PURE__ */ o(Ne.Label, { cursor: f, children: i }), t[15] = i, t[16] = f, t[17] = S) : S = t[17];
70
203
  let m;
71
- t[15] !== o || t[16] !== f ? (m = o != null && /* @__PURE__ */ i(Ee.Label, { cursor: f, children: o }), t[15] = o, t[16] = f, t[17] = m) : m = t[17];
72
- let b;
73
- return t[18] !== u || t[19] !== f || t[20] !== a || t[21] !== c || t[22] !== g || t[23] !== p || t[24] !== m ? (b = /* @__PURE__ */ x(Ee.Root, { ref: c, disabled: u, cursor: f, ...a, children: [
74
- g,
204
+ return t[18] !== u || t[19] !== f || t[20] !== a || t[21] !== c || t[22] !== p || t[23] !== g || t[24] !== S ? (m = /* @__PURE__ */ x(Ne.Root, { ref: c, disabled: u, cursor: f, ...a, children: [
75
205
  p,
76
- m
77
- ] }), t[18] = u, t[19] = f, t[20] = a, t[21] = c, t[22] = g, t[23] = p, t[24] = m, t[25] = b) : b = t[25], b;
78
- }), Ct = {
206
+ g,
207
+ S
208
+ ] }), t[18] = u, t[19] = f, t[20] = a, t[21] = c, t[22] = p, t[23] = g, t[24] = S, t[25] = m) : m = t[25], m;
209
+ }), At = {
79
210
  base: "vs-dark",
80
211
  inherit: !0,
81
212
  rules: [],
@@ -88,11 +219,11 @@ const Vi = Ze.forwardRef(function(e, n) {
88
219
  "editorIndentGuide.background": "#404040",
89
220
  "editorIndentGuide.activeBackground": "#707070"
90
221
  }
91
- }, ji = (l) => {
92
- const e = A(15), {
222
+ }, Ti = (l) => {
223
+ const e = R(15), {
93
224
  defaultCode: n,
94
225
  code: t,
95
- showLineNumbers: o,
226
+ showLineNumbers: i,
96
227
  isEditable: s,
97
228
  language: r,
98
229
  onChange: a,
@@ -102,7 +233,7 @@ const Vi = Ze.forwardRef(function(e, n) {
102
233
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
103
234
  enabled: !1
104
235
  }, e[0] = u) : u = e[0];
105
- const f = !s, g = o ? "on" : "off";
236
+ const f = !s, p = i ? "on" : "off";
106
237
  let h;
107
238
  e[1] !== c ? (h = c ? {
108
239
  scrollbar: {
@@ -115,27 +246,27 @@ const Vi = Ze.forwardRef(function(e, n) {
115
246
  mouseWheelScrollSensitivity: 0,
116
247
  overviewRulerLanes: 0
117
248
  } : {}, e[1] = c, e[2] = h) : h = e[2];
118
- let p;
119
- e[3] !== f || e[4] !== g || e[5] !== h ? (p = {
249
+ let g;
250
+ e[3] !== f || e[4] !== p || e[5] !== h ? (g = {
120
251
  tabSize: 2,
121
252
  minimap: u,
122
253
  fontSize: 12,
123
254
  readOnly: f,
124
- lineNumbers: g,
255
+ lineNumbers: p,
125
256
  ...h
126
- }, e[3] = f, e[4] = g, e[5] = h, e[6] = p) : p = e[6];
127
- const m = p;
128
- let b;
129
- e[7] !== a ? (b = (v) => {
130
- a?.(v || "");
131
- }, e[7] = a, e[8] = b) : b = e[8];
132
- let y;
133
- return e[9] !== t || e[10] !== n || e[11] !== d || e[12] !== m || e[13] !== b ? (y = /* @__PURE__ */ i(Zt, { width: "100%", height: "100%", language: d, defaultValue: n, value: t, theme: "ps-theme", options: m, onChange: b, beforeMount: Tn, onMount: Dn }), e[9] = t, e[10] = n, e[11] = d, e[12] = m, e[13] = b, e[14] = y) : y = e[14], y;
134
- }, Xi = (l) => {
135
- const e = A(11), {
257
+ }, e[3] = f, e[4] = p, e[5] = h, e[6] = g) : g = e[6];
258
+ const S = g;
259
+ let m;
260
+ e[7] !== a ? (m = (C) => {
261
+ a?.(C || "");
262
+ }, e[7] = a, e[8] = m) : m = e[8];
263
+ let v;
264
+ return e[9] !== t || e[10] !== n || e[11] !== d || e[12] !== S || e[13] !== m ? (v = /* @__PURE__ */ o(Bn, { width: "100%", height: "100%", language: d, defaultValue: n, value: t, theme: "ps-theme", options: S, onChange: m, beforeMount: el, onMount: tl }), e[9] = t, e[10] = n, e[11] = d, e[12] = S, e[13] = m, e[14] = v) : v = e[14], v;
265
+ }, Di = (l) => {
266
+ const e = R(11), {
136
267
  original: n,
137
268
  modified: t,
138
- showLineNumbers: o,
269
+ showLineNumbers: i,
139
270
  language: s,
140
271
  disableScroll: r
141
272
  } = l, a = s === void 0 ? "javascript" : s;
@@ -143,7 +274,7 @@ const Vi = Ze.forwardRef(function(e, n) {
143
274
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
144
275
  enabled: !1
145
276
  }, e[0] = c) : c = e[0];
146
- const d = o ? "on" : "off";
277
+ const d = i ? "on" : "off";
147
278
  let u;
148
279
  e[1] !== r ? (u = r ? {
149
280
  scrollbar: {
@@ -168,30 +299,30 @@ const Vi = Ze.forwardRef(function(e, n) {
168
299
  lineNumbers: d,
169
300
  ...u
170
301
  }, e[3] = d, e[4] = u, e[5] = f) : f = e[5];
171
- const g = f;
302
+ const p = f;
172
303
  let h;
173
- return e[6] !== a || e[7] !== t || e[8] !== g || e[9] !== n ? (h = /* @__PURE__ */ i(en, { width: "100%", height: "100%", language: a, original: n, modified: t, theme: "ps-theme", options: g, beforeMount: _n, onMount: $n }), e[6] = a, e[7] = t, e[8] = g, e[9] = n, e[10] = h) : h = e[10], h;
304
+ return e[6] !== a || e[7] !== t || e[8] !== p || e[9] !== n ? (h = /* @__PURE__ */ o(Hn, { width: "100%", height: "100%", language: a, original: n, modified: t, theme: "ps-theme", options: p, beforeMount: nl, onMount: ll }), e[6] = a, e[7] = t, e[8] = p, e[9] = n, e[10] = h) : h = e[10], h;
174
305
  };
175
- function Tn(l) {
176
- l.editor.defineTheme("ps-theme", Ct);
306
+ function el(l) {
307
+ l.editor.defineTheme("ps-theme", At);
177
308
  }
178
- async function Dn(l, e) {
309
+ async function tl(l, e) {
179
310
  e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
180
311
  jsx: e.languages.typescript.JsxEmit.React
181
312
  }), l.addCommand(e.KeyMod.CtrlCmd | e.KeyCode.KeyS, async () => {
182
313
  await l.getAction("editor.action.formatDocument")?.run();
183
314
  }), await l.getAction("editor.action.formatDocument")?.run();
184
315
  }
185
- function _n(l) {
186
- l.editor.defineTheme("ps-theme", Ct);
316
+ function nl(l) {
317
+ l.editor.defineTheme("ps-theme", At);
187
318
  }
188
- function $n(l, e) {
319
+ function ll(l, e) {
189
320
  e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
190
321
  jsx: e.languages.typescript.JsxEmit.React
191
322
  });
192
323
  }
193
- const Ln = (l) => {
194
- const e = A(3);
324
+ const ol = (l) => {
325
+ const e = R(3);
195
326
  let n;
196
327
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
197
328
  backgroundClip: "padding-box",
@@ -200,15 +331,15 @@ const Ln = (l) => {
200
331
  width: "100%"
201
332
  }, e[0] = n) : n = e[0];
202
333
  let t;
203
- return e[1] !== l ? (t = /* @__PURE__ */ i(j, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
204
- }, Ui = (l) => {
205
- const e = A(2);
334
+ return e[1] !== l ? (t = /* @__PURE__ */ o(V, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
335
+ }, _i = (l) => {
336
+ const e = R(2);
206
337
  let n;
207
- return e[0] !== l ? (n = /* @__PURE__ */ i(j, { p: "2", children: /* @__PURE__ */ i(L, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...l }) }), e[0] = l, e[1] = n) : n = e[1], n;
208
- }, Yi = (l) => {
209
- const [e, n] = pe(!1), {
338
+ return e[0] !== l ? (n = /* @__PURE__ */ o(V, { p: "2", children: /* @__PURE__ */ o(W, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...l }) }), e[0] = l, e[1] = n) : n = e[1], n;
339
+ }, Li = (l) => {
340
+ const [e, n] = ge(!1), {
210
341
  headline: t,
211
- buttonText: o,
342
+ buttonText: i,
212
343
  notificationText: s,
213
344
  onDelete: r,
214
345
  open: a,
@@ -222,399 +353,158 @@ const Ln = (l) => {
222
353
  n(!1);
223
354
  }
224
355
  };
225
- return /* @__PURE__ */ x(fe.Root, { open: a, onOpenChange: c, children: [
226
- /* @__PURE__ */ i(fe.Backdrop, {}),
227
- /* @__PURE__ */ i(fe.Positioner, { children: /* @__PURE__ */ x(fe.Content, { children: [
228
- /* @__PURE__ */ x(fe.Header, { children: [
229
- /* @__PURE__ */ i(L, { textStyle: "heading/M", children: t }),
230
- /* @__PURE__ */ i(fe.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ i(Rt, { size: "sm" }) })
356
+ return /* @__PURE__ */ x(se.Root, { open: a, onOpenChange: c, children: [
357
+ /* @__PURE__ */ o(se.Backdrop, {}),
358
+ /* @__PURE__ */ o(se.Positioner, { children: /* @__PURE__ */ x(se.Content, { children: [
359
+ /* @__PURE__ */ x(se.Header, { children: [
360
+ /* @__PURE__ */ o(W, { textStyle: "heading/M", children: t }),
361
+ /* @__PURE__ */ o(se.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ o(Qt, { size: "sm" }) })
231
362
  ] }),
232
- /* @__PURE__ */ i(fe.Body, { children: s }),
233
- /* @__PURE__ */ i(fe.Footer, { children: /* @__PURE__ */ x(H, { direction: "row", gap: "1", children: [
234
- /* @__PURE__ */ i(he, { onClick: c, children: "Close" }),
235
- /* @__PURE__ */ i(he, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: o })
363
+ /* @__PURE__ */ o(se.Body, { children: s }),
364
+ /* @__PURE__ */ o(se.Footer, { children: /* @__PURE__ */ x(B, { direction: "row", gap: "1", children: [
365
+ /* @__PURE__ */ o(pe, { onClick: c, children: "Close" }),
366
+ /* @__PURE__ */ o(pe, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: i })
236
367
  ] }) })
237
368
  ] }) })
238
369
  ] });
239
- }, Rn = (l) => {
240
- const e = A(36), {
241
- diff: n
242
- } = l, [t, o] = pe(!0), s = n.newPath || n.oldPath || "unknown", r = n.additions ?? 0, a = n.deletions ?? 0, c = t ? "1px solid" : "none";
243
- let d;
244
- e[0] !== t ? (d = () => o(!t), e[0] = t, e[1] = d) : d = e[1];
245
- const u = t ? "Collapse" : "Expand";
246
- let f;
247
- e[2] !== t ? (f = (_) => {
248
- _.stopPropagation(), o(!t);
249
- }, e[2] = t, e[3] = f) : f = e[3];
250
- let g;
251
- e[4] !== t ? (g = t ? /* @__PURE__ */ i(tt, { size: 16 }) : /* @__PURE__ */ i(Ce, { size: 16 }), e[4] = t, e[5] = g) : g = e[5];
370
+ }, il = (l) => {
371
+ const e = R(42), {
372
+ diff: n,
373
+ isSelected: t,
374
+ isExpanded: i,
375
+ onToggleExpanded: s
376
+ } = l, r = t === void 0 ? !1 : t, a = i === void 0 ? !0 : i, c = n.newPath || n.oldPath || "unknown", d = n.additions ?? 0, u = n.deletions ?? 0, f = r ? "border.accent" : "border.muted", p = r ? "bg.active" : "bg";
252
377
  let h;
253
- e[6] !== u || e[7] !== f || e[8] !== g ? (h = /* @__PURE__ */ i(Se, { "aria-label": u, variant: "ghost", size: "2xs", onClick: f, flexShrink: 0, children: g }), e[6] = u, e[7] = f, e[8] = g, e[9] = h) : h = e[9];
254
- let p;
255
- e[10] !== n.change || e[11] !== n.newPath || e[12] !== n.oldPath || e[13] !== s ? (p = n.change === "renamed" ? /* @__PURE__ */ x(L, { as: "span", textStyle: "sm", children: [
256
- /* @__PURE__ */ i(L, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
257
- /* @__PURE__ */ i(j, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(Ce, { size: 12 }) }),
258
- n.newPath
259
- ] }) : n.change === "deleted" ? /* @__PURE__ */ i(L, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: s }) : /* @__PURE__ */ i(L, { as: "span", textStyle: "sm", children: s }), e[10] = n.change, e[11] = n.newPath, e[12] = n.oldPath, e[13] = s, e[14] = p) : p = e[14];
378
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
379
+ borderColor: "border.accent"
380
+ }, e[0] = h) : h = e[0];
381
+ const g = a ? "1px solid" : "none", S = r ? "bg.active" : "bg.subtle";
260
382
  let m;
261
- e[15] !== s || e[16] !== p ? (m = /* @__PURE__ */ i(j, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: s, children: p }), e[15] = s, e[16] = p, e[17] = m) : m = e[17];
262
- let b;
263
- e[18] !== r || e[19] !== a ? (b = /* @__PURE__ */ i(j, { flexShrink: 0, children: /* @__PURE__ */ i(bt, { variant: "ghost", additions: r, deletions: a }) }), e[18] = r, e[19] = a, e[20] = b) : b = e[20];
264
- let y;
265
- e[21] !== c || e[22] !== d || e[23] !== h || e[24] !== m || e[25] !== b ? (y = /* @__PURE__ */ x(Et, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: c, borderColor: "border.muted", cursor: "pointer", onClick: d, gap: "sm", children: [
266
- h,
267
- m,
268
- b
269
- ] }), e[21] = c, e[22] = d, e[23] = h, e[24] = m, e[25] = b, e[26] = y) : y = e[26];
383
+ e[1] !== S ? (m = {
384
+ bg: S
385
+ }, e[1] = S, e[2] = m) : m = e[2];
270
386
  let v;
271
- e[27] !== n.newContent || e[28] !== n.newPath || e[29] !== n.oldContent || e[30] !== n.oldPath || e[31] !== t ? (v = t && /* @__PURE__ */ i(j, { bg: "bg", children: /* @__PURE__ */ i(Vt, { original: n.oldContent || "", modified: n.newContent || "", oldPath: n.oldPath, newPath: n.newPath, sideBySide: !1 }) }), e[27] = n.newContent, e[28] = n.newPath, e[29] = n.oldContent, e[30] = n.oldPath, e[31] = t, e[32] = v) : v = e[32];
387
+ e[3] !== s ? (v = () => s?.(), e[3] = s, e[4] = v) : v = e[4];
388
+ const C = a ? "Collapse" : "Expand";
272
389
  let k;
273
- return e[33] !== v || e[34] !== y ? (k = /* @__PURE__ */ x(j, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
274
- y,
275
- v
276
- ] }), e[33] = v, e[34] = y, e[35] = k) : k = e[35], k;
277
- };
278
- function Ki(l) {
390
+ e[5] !== s ? (k = (L) => {
391
+ L.stopPropagation(), s?.();
392
+ }, e[5] = s, e[6] = k) : k = e[6];
393
+ let y;
394
+ e[7] !== a ? (y = a ? /* @__PURE__ */ o(Fe, { size: 16 }) : /* @__PURE__ */ o(Te, { size: 16 }), e[7] = a, e[8] = y) : y = e[8];
395
+ let I;
396
+ e[9] !== k || e[10] !== y || e[11] !== C ? (I = /* @__PURE__ */ o(he, { "aria-label": C, variant: "ghost", size: "2xs", onClick: k, flexShrink: 0, children: y }), e[9] = k, e[10] = y, e[11] = C, e[12] = I) : I = e[12];
397
+ let D;
398
+ e[13] !== n.change || e[14] !== n.newPath || e[15] !== n.oldPath || e[16] !== c ? (D = n.change === "renamed" ? /* @__PURE__ */ x(W, { as: "span", textStyle: "sm", children: [
399
+ /* @__PURE__ */ o(W, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
400
+ /* @__PURE__ */ o(V, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ o(Te, { size: 12 }) }),
401
+ n.newPath
402
+ ] }) : n.change === "deleted" ? /* @__PURE__ */ o(W, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: c }) : /* @__PURE__ */ o(W, { as: "span", textStyle: "sm", children: c }), e[13] = n.change, e[14] = n.newPath, e[15] = n.oldPath, e[16] = c, e[17] = D) : D = e[17];
403
+ let T;
404
+ e[18] !== c || e[19] !== D ? (T = /* @__PURE__ */ o(V, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: c, children: D }), e[18] = c, e[19] = D, e[20] = T) : T = e[20];
405
+ let b;
406
+ e[21] !== d || e[22] !== u ? (b = /* @__PURE__ */ o(V, { flexShrink: 0, children: /* @__PURE__ */ o(_t, { variant: "ghost", additions: d, deletions: u }) }), e[21] = d, e[22] = u, e[23] = b) : b = e[23];
407
+ let P;
408
+ e[24] !== I || e[25] !== T || e[26] !== b || e[27] !== g || e[28] !== m || e[29] !== v ? (P = /* @__PURE__ */ x(Zt, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: g, borderColor: "border.muted", cursor: "pointer", transition: "background 0.14s ease", _hover: m, onClick: v, gap: "sm", children: [
409
+ I,
410
+ T,
411
+ b
412
+ ] }), e[24] = I, e[25] = T, e[26] = b, e[27] = g, e[28] = m, e[29] = v, e[30] = P) : P = e[30];
413
+ let w;
414
+ e[31] !== n.newContent || e[32] !== n.newPath || e[33] !== n.oldContent || e[34] !== n.oldPath || e[35] !== a ? (w = a && /* @__PURE__ */ o(V, { bg: "bg", children: /* @__PURE__ */ o(rn, { original: n.oldContent || "", modified: n.newContent || "", oldPath: n.oldPath, newPath: n.newPath, sideBySide: !1 }) }), e[31] = n.newContent, e[32] = n.newPath, e[33] = n.oldContent, e[34] = n.oldPath, e[35] = a, e[36] = w) : w = e[36];
415
+ let _;
416
+ return e[37] !== P || e[38] !== w || e[39] !== f || e[40] !== p ? (_ = /* @__PURE__ */ x(V, { border: "1px solid", borderColor: f, borderRadius: "xs", overflow: "hidden", bg: p, width: "100%", maxW: "100%", transition: "border-color 0.14s ease", _hover: h, children: [
417
+ P,
418
+ w
419
+ ] }), e[37] = P, e[38] = w, e[39] = f, e[40] = p, e[41] = _) : _ = e[41], _;
420
+ }, ht = (l) => l.newPath ?? l.oldPath ?? "unknown";
421
+ function $i(l) {
279
422
  const {
280
- diffs: e
281
- } = l, n = et(null), t = tn({
423
+ diffs: e,
424
+ selectedDiffPath: n = null
425
+ } = l, t = Be(null), [i, s] = ge(() => /* @__PURE__ */ new Set()), r = Fn({
282
426
  count: e.length,
283
- getScrollElement: () => n.current,
427
+ getScrollElement: () => t.current,
284
428
  estimateSize: () => 42,
285
429
  overscan: 5
286
430
  });
287
- return e.length === 0 ? /* @__PURE__ */ i(H, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
288
- p: "xs",
289
- spaceY: "xs"
290
- }, children: /* @__PURE__ */ i(Ke, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(H, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(j, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(ye, { position: "absolute", inset: "0", viewportRef: n, contentProps: {
431
+ if (Oe(() => {
432
+ if (!n) return;
433
+ const c = e.findIndex((d) => ht(d) === n);
434
+ c < 0 || r.scrollToIndex(c, {
435
+ align: "start"
436
+ });
437
+ }, [n, e, r]), e.length === 0)
438
+ return /* @__PURE__ */ o(B, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ o(ke, { flex: "1", minH: "0", contentProps: {
439
+ p: "xs",
440
+ spaceY: "xs"
441
+ }, children: /* @__PURE__ */ o(rt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) });
442
+ const a = (c) => {
443
+ s((d) => {
444
+ const u = new Set(d);
445
+ return u.has(c) ? u.delete(c) : u.add(c), u;
446
+ });
447
+ };
448
+ return /* @__PURE__ */ o(B, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ o(V, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ o(ke, { position: "absolute", inset: "0", viewportRef: t, contentProps: {
291
449
  p: "xs"
292
- }, children: /* @__PURE__ */ i(j, { position: "relative", width: "100%", style: {
293
- height: t.getTotalSize()
294
- }, children: t.getVirtualItems().map((o) => /* @__PURE__ */ i(j, { "data-index": o.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
295
- transform: `translateY(${o.start}px)`
296
- }, children: /* @__PURE__ */ i(Rn, { diff: e[o.index] }) }, o.key)) }) }) }) });
450
+ }, children: /* @__PURE__ */ o(V, { position: "relative", width: "100%", style: {
451
+ height: r.getTotalSize()
452
+ }, children: r.getVirtualItems().map((c) => {
453
+ const d = e[c.index], u = ht(d);
454
+ return /* @__PURE__ */ o(V, { "data-index": c.index, ref: r.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
455
+ transform: `translateY(${c.start}px)`
456
+ }, children: /* @__PURE__ */ o(il, { diff: d, isSelected: n === u, isExpanded: !i.has(u), onToggleExpanded: () => a(u) }) }, c.key);
457
+ }) }) }) }) });
297
458
  }
298
- const En = (l, e) => `${l.version}-${l.date}-${e}`, zn = (l, e) => `${l.title}-${e}`, lt = (l) => {
299
- const e = A(12);
300
- let n, t, o;
301
- e[0] !== l ? ({
302
- date: n,
303
- version: o,
304
- ...t
305
- } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = o) : (n = e[1], t = e[2], o = e[3]);
306
- let s;
307
- e[4] !== n ? (s = /* @__PURE__ */ i(xe.Title, { textStyle: "sm", color: "fg.muted", children: n }), e[4] = n, e[5] = s) : s = e[5];
308
- let r;
309
- e[6] !== o ? (r = /* @__PURE__ */ i(Ie, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ i(xe.Title, { textStyle: "md", fontWeight: "semibold", children: o }) }), e[6] = o, e[7] = r) : r = e[7];
310
- let a;
311
- return e[8] !== t || e[9] !== s || e[10] !== r ? (a = /* @__PURE__ */ x(H, { ...t, children: [
312
- s,
313
- r
314
- ] }), e[8] = t, e[9] = s, e[10] = r, e[11] = a) : a = e[11], a;
315
- }, qi = (l) => {
316
- const e = A(14), {
317
- entries: n,
318
- title: t,
319
- description: o
320
- } = l;
321
- let s;
322
- e[0] !== t ? (s = /* @__PURE__ */ i(Ot, { size: "4xl", children: t }), e[0] = t, e[1] = s) : s = e[1];
323
- let r;
324
- e[2] !== o ? (r = o ? /* @__PURE__ */ i(L, { color: "fg.muted", textStyle: "lg", children: o }) : null, e[2] = o, e[3] = r) : r = e[3];
325
- let a;
326
- e[4] !== s || e[5] !== r ? (a = /* @__PURE__ */ x(H, { textAlign: "center", children: [
327
- s,
328
- r
329
- ] }), e[4] = s, e[5] = r, e[6] = a) : a = e[6];
330
- let c;
331
- e[7] !== n ? (c = n.map(Mn), e[7] = n, e[8] = c) : c = e[8];
332
- let d;
333
- e[9] !== c ? (d = /* @__PURE__ */ i(j, { position: "relative", children: /* @__PURE__ */ i(xe.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
334
- let u;
335
- return e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ x(H, { gap: "20", children: [
336
- a,
337
- d
338
- ] }), e[11] = a, e[12] = d, e[13] = u) : u = e[13], u;
339
- };
340
- function On(l) {
341
- return /* @__PURE__ */ i(Pe, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: l }, l);
342
- }
343
- function An(l, e) {
344
- return /* @__PURE__ */ i(pt.Item, { children: /* @__PURE__ */ x(H, { gap: "1", children: [
345
- /* @__PURE__ */ i(L, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: l.title }),
346
- l.description ? /* @__PURE__ */ i(L, { color: "fg.subtle", textStyle: "xs", children: l.description }) : null,
347
- l.link ? /* @__PURE__ */ i(Ue, { href: l.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
348
- ] }) }, zn(l, e));
349
- }
350
- function Mn(l, e) {
351
- return /* @__PURE__ */ x(xe.Item, { children: [
352
- /* @__PURE__ */ i(xe.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
353
- base: "static",
354
- md: "sticky"
355
- }, children: /* @__PURE__ */ i(lt, { hideBelow: "md", date: l.date, version: l.version }) }),
356
- /* @__PURE__ */ x(xe.Connector, { children: [
357
- /* @__PURE__ */ i(xe.Separator, {}),
358
- /* @__PURE__ */ i(xe.Indicator, {})
359
- ] }),
360
- /* @__PURE__ */ i(xe.Content, { children: /* @__PURE__ */ x(H, { gap: "4", children: [
361
- /* @__PURE__ */ i(lt, { hideFrom: "md", date: l.date, version: l.version }),
362
- /* @__PURE__ */ x(H, { gap: "2", children: [
363
- /* @__PURE__ */ i(xe.Title, { fontSize: "lg", fontWeight: "medium", children: l.title }),
364
- l.description ? /* @__PURE__ */ i(L, { color: "fg.muted", textStyle: "sm", children: l.description }) : null
365
- ] }),
366
- l.tags && l.tags.length > 0 ? /* @__PURE__ */ i(X, { children: l.tags.map(On) }) : null,
367
- l.image ? /* @__PURE__ */ i(zt, { rounded: "l2", src: l.image, alt: l.title }) : null,
368
- l.changes && l.changes.length > 0 ? /* @__PURE__ */ i(pt.Root, { pl: "4", gap: "4", children: l.changes.map(An) }) : null
369
- ] }) })
370
- ] }, En(l, e));
371
- }
372
- const Gn = /^(#{1,3})\s+(.+)$/gm, Nn = ".rich-text__h1, .rich-text__h2, .rich-text__h3", Hn = (l, e) => l.classList.contains(`rich-text__h${e}`), Wn = (l) => l.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Be = (l) => {
373
- const e = [];
374
- let n = 0;
375
- for (const t of l.matchAll(Gn)) {
376
- const o = t[1].length, s = t[2].trim(), a = `${Wn(s) || "heading"}-${n}`;
377
- e.push({
378
- id: a,
379
- level: o,
380
- text: s
381
- }), n += 1;
382
- }
383
- return e;
384
- }, Bn = (l, e) => {
385
- const n = Array.from(e.querySelectorAll(Nn)), t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
386
- let s = 0;
387
- for (const r of l)
388
- for (let a = s; a < n.length; a += 1) {
389
- const c = n[a], d = c.textContent?.trim();
390
- if (!(!d || d !== r.text) && Hn(c, r.level)) {
391
- t.set(r.id, c), o.set(c, r.id), s = a + 1;
392
- break;
393
- }
394
- }
395
- return {
396
- elementsByHeadingId: t,
397
- headingIdByElement: o
459
+ class Ot extends an {
460
+ state = {
461
+ error: null
398
462
  };
399
- }, it = (l) => {
400
- const e = A(14), {
401
- heading: n,
402
- isActive: t,
403
- emphasized: o,
404
- variant: s,
405
- onSelect: r
406
- } = l, a = s === "line", c = `calc(${n.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", u = t || o ? "medium" : "normal", f = a ? "1px" : "0px", g = a ? t ? "fg" : "bg.muted" : "transparent";
407
- let h;
408
- e[0] !== a ? (h = a ? {
409
- borderStartColor: "bg.emphasized"
410
- } : {
411
- color: "fg"
412
- }, e[0] = a, e[1] = h) : h = e[1];
413
- let p;
414
- e[2] !== n.id || e[3] !== r ? (p = () => r(n.id), e[2] = n.id, e[3] = r, e[4] = p) : p = e[4];
415
- let m;
416
- return e[5] !== n.text || e[6] !== c || e[7] !== d || e[8] !== u || e[9] !== f || e[10] !== g || e[11] !== h || e[12] !== p ? (m = /* @__PURE__ */ i(j, { as: "button", py: "1.5", px: "0", width: "full", display: "flex", textAlign: "left", textStyle: "sm", cursor: "pointer", textDecoration: "none", transition: "all 0.15s ease", paddingInlineStart: c, color: d, fontWeight: u, borderStartWidth: f, borderStartColor: g, _hover: h, onClick: p, children: n.text }), e[5] = n.text, e[6] = c, e[7] = d, e[8] = u, e[9] = f, e[10] = g, e[11] = h, e[12] = p, e[13] = m) : m = e[13], m;
417
- }, Ji = (l) => {
418
- const e = A(39), {
419
- markdown: n,
420
- title: t,
421
- rootMargin: o
422
- } = l, s = t === void 0 ? "On this page" : t, r = o === void 0 ? "-20% 0% -35% 0%" : o, a = Be(n), c = At(), [d, u] = pe(a[0]?.id ?? ""), [f, g] = pe(!1);
423
- let h;
424
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
425
- elementsByHeadingId: /* @__PURE__ */ new Map(),
426
- headingIdByElement: /* @__PURE__ */ new Map()
427
- }, e[0] = h) : h = e[0];
428
- const p = et(h);
429
- let m, b;
430
- e[1] !== n ? (m = () => {
431
- const U = Be(n);
432
- u(U[0]?.id ?? "");
433
- }, b = [n], e[1] = n, e[2] = m, e[3] = b) : (m = e[2], b = e[3]), ze(m, b);
434
- let y, v;
435
- if (e[4] !== c || e[5] !== n || e[6] !== r ? (y = () => {
436
- const U = Be(n), Q = c.getDocument(), oe = c.getWindow(), se = Bn(U, Q);
437
- if (p.current = se, se.headingIdByElement.size === 0)
438
- return;
439
- const re = new oe.IntersectionObserver((ce) => {
440
- const de = ce.filter(Fn).sort(Vn);
441
- if (de.length === 0)
442
- return;
443
- const ae = de[0].target, ge = se.headingIdByElement.get(ae);
444
- ge && u(ge);
445
- }, {
446
- rootMargin: r
447
- });
448
- for (const ce of se.headingIdByElement.keys())
449
- re.observe(ce);
450
- return () => {
451
- re.disconnect();
463
+ static getDerivedStateFromError(e) {
464
+ return {
465
+ error: e
452
466
  };
453
- }, v = [c, n, r], e[4] = c, e[5] = n, e[6] = r, e[7] = y, e[8] = v) : (y = e[7], v = e[8]), ze(y, v), a.length === 0)
454
- return null;
455
- let k;
456
- e[9] !== d ? (k = (U) => U.id === d, e[9] = d, e[10] = k) : k = e[10];
457
- const _ = a.find(k);
458
- let D;
459
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = (U) => {
460
- const Q = p.current.elementsByHeadingId.get(U);
461
- u(U), g(!1), Q?.scrollIntoView({
462
- behavior: "smooth",
463
- block: "start"
464
- });
465
- }, e[11] = D) : D = e[11];
466
- const T = D;
467
- let P;
468
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (U) => g(U.open), e[12] = P) : P = e[12];
469
- let S;
470
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ i(ue, { as: qe, color: "fg.subtle" }), e[13] = S) : S = e[13];
471
- let w;
472
- e[14] !== s ? (w = /* @__PURE__ */ i(L, { textStyle: "sm", fontWeight: "medium", color: "fg", children: s }), e[14] = s, e[15] = w) : w = e[15];
473
- const C = f ? null : /* @__PURE__ */ x(Qe, { children: [
474
- /* @__PURE__ */ i(ue, { as: Ce, color: "fg.subtle" }),
475
- /* @__PURE__ */ i(L, { textStyle: "sm", color: "fg.muted", children: _?.text })
476
- ] });
477
- let I;
478
- e[16] !== w || e[17] !== C ? (I = /* @__PURE__ */ x(X, { children: [
479
- S,
480
- w,
481
- C
482
- ] }), e[16] = w, e[17] = C, e[18] = I) : I = e[18];
483
- const z = f ? "rotate(180deg)" : "rotate(0deg)";
484
- let $;
485
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ i(ue, { as: tt, color: "fg.subtle" }), e[19] = $) : $ = e[19];
486
- let O;
487
- e[20] !== z ? (O = /* @__PURE__ */ i(j, { transition: "transform 0.2s", transform: z, children: $ }), e[20] = z, e[21] = O) : O = e[21];
488
- let M;
489
- e[22] !== I || e[23] !== O ? (M = /* @__PURE__ */ x(De.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
490
- I,
491
- O
492
- ] }), e[22] = I, e[23] = O, e[24] = M) : M = e[24];
493
- let N;
494
- e[25] !== d ? (N = (U) => /* @__PURE__ */ i(it, { heading: U, variant: "minimal", emphasized: !1, isActive: d === U.id, onSelect: T }, U.id), e[25] = d, e[26] = N) : N = e[26];
495
- const W = ye, B = "md", G = "6", R = "xs", E = "sticky", V = "calc(100vh - 3rem)";
496
- let q;
497
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ i(ue, { as: qe, color: "fg.subtle" }), e[27] = q) : q = e[27];
498
- let Y;
499
- e[28] !== s ? (Y = /* @__PURE__ */ x(X, { mb: "4", children: [
500
- q,
501
- /* @__PURE__ */ i(L, { fontWeight: "medium", textStyle: "sm", children: s })
502
- ] }), e[28] = s, e[29] = Y) : Y = e[29];
503
- const K = H, Z = "0";
504
- let J;
505
- e[30] !== d ? (J = (U) => /* @__PURE__ */ i(it, { heading: U, variant: "line", emphasized: U.level === 1, isActive: d === U.id, onSelect: T }, U.id), e[30] = d, e[31] = J) : J = e[31];
506
- const ee = a.map(J);
507
- let te;
508
- e[32] !== K || e[33] !== ee ? (te = /* @__PURE__ */ i(K, { gap: Z, children: ee }), e[32] = K, e[33] = ee, e[34] = te) : te = e[34];
509
- let ne;
510
- return e[35] !== W || e[36] !== Y || e[37] !== te ? (ne = /* @__PURE__ */ x(W, { hideBelow: B, top: G, width: R, position: E, maxH: V, children: [
511
- Y,
512
- te
513
- ] }), e[35] = W, e[36] = Y, e[37] = te, e[38] = ne) : ne = e[38], /* @__PURE__ */ x(H, { gap: "0", width: "full", children: [
514
- /* @__PURE__ */ i(j, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ x(De.Root, { open: f, onOpenChange: P, children: [
515
- M,
516
- /* @__PURE__ */ i(De.Content, { children: /* @__PURE__ */ i(ye, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(H, { gap: "0", children: a.map(N) }) }) })
517
- ] }) }),
518
- ne
519
- ] });
520
- };
521
- function Fn(l) {
522
- return l.isIntersecting;
523
- }
524
- function Vn(l, e) {
525
- return l.boundingClientRect.top - e.boundingClientRect.top;
467
+ }
468
+ componentDidCatch(e, n) {
469
+ console.error("Dashboard error boundary caught an error", e, n);
470
+ }
471
+ handleReset = () => {
472
+ this.setState({
473
+ error: null
474
+ }), this.props.onReset?.();
475
+ };
476
+ render() {
477
+ const {
478
+ children: e,
479
+ fallback: n,
480
+ label: t
481
+ } = this.props, {
482
+ error: i
483
+ } = this.state;
484
+ return i ? n || /* @__PURE__ */ o(rl, { error: i, label: t, onReset: this.handleReset }) : e;
485
+ }
526
486
  }
527
- const ot = (l) => {
528
- const e = A(24), {
529
- item: n,
530
- direction: t
531
- } = l, o = t === "prev", s = o ? "Previous" : "Next", r = o ? "start" : "end", a = o ? "flex-start" : "flex-end";
532
- let c;
533
- e[0] !== o ? (c = o ? /* @__PURE__ */ i(nn, { size: 16 }) : null, e[0] = o, e[1] = c) : c = e[1];
534
- const d = o ? "flex-start" : "flex-end";
535
- let u;
536
- e[2] !== s ? (u = /* @__PURE__ */ i(L, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: s }), e[2] = s, e[3] = u) : u = e[3];
537
- let f;
538
- e[4] !== n.title ? (f = /* @__PURE__ */ i(L, { textStyle: "sm", fontWeight: "medium", children: n.title }), e[4] = n.title, e[5] = f) : f = e[5];
539
- let g;
540
- e[6] !== n.description ? (g = n.description ? /* @__PURE__ */ i(L, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: n.description }) : null, e[6] = n.description, e[7] = g) : g = e[7];
541
- let h;
542
- e[8] !== d || e[9] !== u || e[10] !== f || e[11] !== g ? (h = /* @__PURE__ */ x(H, { gap: "0", alignItems: d, children: [
543
- u,
544
- f,
545
- g
546
- ] }), e[8] = d, e[9] = u, e[10] = f, e[11] = g, e[12] = h) : h = e[12];
547
- let p;
548
- e[13] !== o ? (p = o ? null : /* @__PURE__ */ i(Ce, { size: 16 }), e[13] = o, e[14] = p) : p = e[14];
549
- let m;
550
- e[15] !== n.href || e[16] !== c || e[17] !== h || e[18] !== p ? (m = /* @__PURE__ */ x("a", { href: n.href, children: [
551
- c,
552
- h,
553
- p
554
- ] }), e[15] = n.href, e[16] = c, e[17] = h, e[18] = p, e[19] = m) : m = e[19];
555
- let b;
556
- return e[20] !== r || e[21] !== a || e[22] !== m ? (b = /* @__PURE__ */ i(he, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: r, justifyContent: a, flex: "1", children: m }), e[20] = r, e[21] = a, e[22] = m, e[23] = b) : b = e[23], b;
557
- }, Qi = (l) => {
558
- const e = A(11), {
559
- previous: n,
560
- next: t
561
- } = l;
562
- if (!n && !t)
563
- return null;
564
- let o;
565
- e[0] !== n ? (o = n ? /* @__PURE__ */ i(ot, { item: n, direction: "prev" }) : null, e[0] = n, e[1] = o) : o = e[1];
566
- let s;
567
- e[2] !== o ? (s = /* @__PURE__ */ i(j, { flex: "1", children: o }), e[2] = o, e[3] = s) : s = e[3];
487
+ const rl = (l) => {
488
+ const e = R(12), {
489
+ error: n,
490
+ label: t,
491
+ onReset: i
492
+ } = l, s = t ?? "Something went wrong";
568
493
  let r;
569
- e[4] !== t ? (r = t ? /* @__PURE__ */ i(ot, { item: t, direction: "next" }) : null, e[4] = t, e[5] = r) : r = e[5];
570
- let a;
571
- e[6] !== r ? (a = /* @__PURE__ */ i(j, { flex: "1", children: r }), e[6] = r, e[7] = a) : a = e[7];
572
- let c;
573
- return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ x(X, { justify: "space-between", gap: "4", children: [
574
- s,
575
- a
576
- ] }), e[8] = s, e[9] = a, e[10] = c) : c = e[10], c;
577
- }, jn = (l) => {
578
- const e = A(17), {
579
- children: n,
580
- title: t,
581
- defaultOpen: o,
582
- action: s
583
- } = l, r = o === void 0 ? !0 : o;
584
- let a;
585
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
586
- background: "bg.muted"
587
- }, e[0] = a) : a = e[0];
494
+ e[0] !== s ? (r = /* @__PURE__ */ o(W, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = r) : r = e[1];
495
+ const a = n.message || "An unexpected error occurred while rendering this section.";
588
496
  let c;
589
- e[1] !== t ? (c = t && /* @__PURE__ */ i(L, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
497
+ e[2] !== a ? (c = /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
590
498
  let d;
591
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(De.Indicator, { transition: "transform 0.2s", _open: {
592
- transform: "rotate(90deg)"
593
- }, children: /* @__PURE__ */ i(Ce, { size: 16 }) }), e[3] = d) : d = e[3];
499
+ e[4] !== i ? (d = i ? /* @__PURE__ */ o(pe, { size: "sm", variant: "solid", colorScheme: "black", onClick: i, children: "Try again" }) : null, e[4] = i, e[5] = d) : d = e[5];
594
500
  let u;
595
- e[4] !== c ? (u = /* @__PURE__ */ x(De.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
501
+ e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ x(B, { gap: "sm", children: [
596
502
  c,
597
503
  d
598
- ] }), e[4] = c, e[5] = u) : u = e[5];
504
+ ] }), e[6] = c, e[7] = d, e[8] = u) : u = e[8];
599
505
  let f;
600
- e[6] !== s ? (f = s && /* @__PURE__ */ i(j, { marginLeft: "auto", onClick: Xn, children: s }), e[6] = s, e[7] = f) : f = e[7];
601
- let g;
602
- e[8] !== u || e[9] !== f ? (g = /* @__PURE__ */ x(Ie, { children: [
603
- u,
604
- f
605
- ] }), e[8] = u, e[9] = f, e[10] = g) : g = e[10];
606
- let h;
607
- e[11] !== n ? (h = /* @__PURE__ */ i(De.Content, { children: n }), e[11] = n, e[12] = h) : h = e[12];
608
- let p;
609
- return e[13] !== r || e[14] !== g || e[15] !== h ? (p = /* @__PURE__ */ x(De.Root, { defaultOpen: r, width: "full", children: [
610
- g,
611
- h
612
- ] }), e[13] = r, e[14] = g, e[15] = h, e[16] = p) : p = e[16], p;
613
- };
614
- function Xn(l) {
615
- return l.stopPropagation();
616
- }
617
- const wt = {
506
+ return e[9] !== r || e[10] !== u ? (f = /* @__PURE__ */ o(ol, { height: "100%", width: "100%", children: /* @__PURE__ */ o(en, { children: /* @__PURE__ */ o(sn, { status: "error", title: r, children: u }) }) }), e[9] = r, e[10] = u, e[11] = f) : f = e[11], f;
507
+ }, Mt = {
618
508
  default: {
619
509
  paddingX: "sm",
620
510
  paddingY: "xs",
@@ -633,11 +523,11 @@ const wt = {
633
523
  secondaryMarginLeft: "0",
634
524
  secondaryTextStyle: "label/XS/regular"
635
525
  }
636
- }, rt = (l) => {
637
- const e = A(48), {
526
+ }, gt = (l) => {
527
+ const e = R(48), {
638
528
  primaryLabel: n,
639
529
  tooltipLabel: t,
640
- secondaryLabel: o,
530
+ secondaryLabel: i,
641
531
  leftIcon: s,
642
532
  rightIcon: r,
643
533
  leftIconColor: a,
@@ -645,69 +535,69 @@ const wt = {
645
535
  leftIconSize: d,
646
536
  rightIconSize: u,
647
537
  rightIconAriaLabel: f,
648
- rightTooltipLabel: g,
538
+ rightTooltipLabel: p,
649
539
  onRightIconClick: h,
650
- tagLabel: p,
651
- tagColorPalette: m,
652
- tagVariant: b,
653
- variant: y
654
- } = l, v = wt[y], k = !!(h && r);
655
- let _;
656
- e[0] !== k ? (_ = (E) => {
540
+ tagLabel: g,
541
+ tagColorPalette: S,
542
+ tagVariant: m,
543
+ variant: v
544
+ } = l, C = Mt[v], k = !!(h && r);
545
+ let y;
546
+ e[0] !== k ? (y = (E) => {
657
547
  k && (E.preventDefault(), E.stopPropagation());
658
- }, e[0] = k, e[1] = _) : _ = e[1];
659
- const D = _;
660
- let T;
661
- e[2] !== k || e[3] !== h ? (T = (E) => {
548
+ }, e[0] = k, e[1] = y) : y = e[1];
549
+ const I = y;
550
+ let D;
551
+ e[2] !== k || e[3] !== h ? (D = (E) => {
662
552
  !k || !h || (E.preventDefault(), E.stopPropagation(), h());
663
- }, e[2] = k, e[3] = h, e[4] = T) : T = e[4];
664
- const P = T;
665
- let S;
666
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
553
+ }, e[2] = k, e[3] = h, e[4] = D) : D = e[4];
554
+ const T = D;
555
+ let b;
556
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
667
557
  placement: "right"
668
- }, e[5] = S) : S = e[5];
669
- const w = !t;
670
- let C;
671
- e[6] !== s || e[7] !== a || e[8] !== d ? (C = s ? /* @__PURE__ */ i(ue, { as: s, boxSize: d, color: a }) : null, e[6] = s, e[7] = a, e[8] = d, e[9] = C) : C = e[9];
672
- let I;
673
- e[10] !== n || e[11] !== v.primaryTextStyle ? (I = /* @__PURE__ */ i(L, { lineClamp: 1, textOverflow: "ellipsis", textStyle: v.primaryTextStyle, children: n }), e[10] = n, e[11] = v.primaryTextStyle, e[12] = I) : I = e[12];
674
- let z;
675
- e[13] !== C || e[14] !== I ? (z = /* @__PURE__ */ x(Ie, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
676
- C,
677
- I
678
- ] }), e[13] = C, e[14] = I, e[15] = z) : z = e[15];
558
+ }, e[5] = b) : b = e[5];
559
+ const P = !t;
560
+ let w;
561
+ e[6] !== s || e[7] !== a || e[8] !== d ? (w = s ? /* @__PURE__ */ o(ae, { as: s, boxSize: d, color: a }) : null, e[6] = s, e[7] = a, e[8] = d, e[9] = w) : w = e[9];
562
+ let _;
563
+ e[10] !== n || e[11] !== C.primaryTextStyle ? (_ = /* @__PURE__ */ o(W, { lineClamp: 1, textOverflow: "ellipsis", textStyle: C.primaryTextStyle, children: n }), e[10] = n, e[11] = C.primaryTextStyle, e[12] = _) : _ = e[12];
564
+ let L;
565
+ e[13] !== w || e[14] !== _ ? (L = /* @__PURE__ */ x(fe, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
566
+ w,
567
+ _
568
+ ] }), e[13] = w, e[14] = _, e[15] = L) : L = e[15];
679
569
  let $;
680
- e[16] !== o || e[17] !== v.secondaryMarginLeft || e[18] !== v.secondaryTextStyle ? ($ = o && /* @__PURE__ */ i(L, { ml: v.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: v.secondaryTextStyle, color: "fg.menu-item.secondary", children: o }), e[16] = o, e[17] = v.secondaryMarginLeft, e[18] = v.secondaryTextStyle, e[19] = $) : $ = e[19];
681
- let O;
682
- e[20] !== z || e[21] !== $ ? (O = /* @__PURE__ */ x(H, { gap: "2xs", children: [
683
- z,
570
+ e[16] !== i || e[17] !== C.secondaryMarginLeft || e[18] !== C.secondaryTextStyle ? ($ = i && /* @__PURE__ */ o(W, { ml: C.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: C.secondaryTextStyle, color: "fg.menu-item.secondary", children: i }), e[16] = i, e[17] = C.secondaryMarginLeft, e[18] = C.secondaryTextStyle, e[19] = $) : $ = e[19];
571
+ let z;
572
+ e[20] !== L || e[21] !== $ ? (z = /* @__PURE__ */ x(B, { gap: "2xs", children: [
573
+ L,
684
574
  $
685
- ] }), e[20] = z, e[21] = $, e[22] = O) : O = e[22];
686
- let M;
687
- e[23] !== w || e[24] !== O || e[25] !== t ? (M = /* @__PURE__ */ i(Le, { positioning: S, content: t, disabled: w, children: O }), e[23] = w, e[24] = O, e[25] = t, e[26] = M) : M = e[26];
688
- let N;
689
- e[27] !== P || e[28] !== D || e[29] !== k || e[30] !== r || e[31] !== f || e[32] !== c || e[33] !== u || e[34] !== g ? (N = r ? /* @__PURE__ */ i(Le, { positioning: {
690
- placement: "right"
691
- }, content: g, disabled: !g, children: /* @__PURE__ */ i(Ie, { as: k ? "button" : "div", alignItems: "center", "aria-label": f, cursor: k ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: D, onClick: P, children: /* @__PURE__ */ i(ue, { as: r, boxSize: u, color: c }) }) }) : null, e[27] = P, e[28] = D, e[29] = k, e[30] = r, e[31] = f, e[32] = c, e[33] = u, e[34] = g, e[35] = N) : N = e[35];
692
- let W;
693
- e[36] !== N ? (W = /* @__PURE__ */ i(Ie, { justifyContent: "flex-end", color: "fg.menu-item.default", children: N }), e[36] = N, e[37] = W) : W = e[37];
694
- let B;
695
- e[38] !== W || e[39] !== M ? (B = /* @__PURE__ */ x(Ie, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
696
- M,
697
- W
698
- ] }), e[38] = W, e[39] = M, e[40] = B) : B = e[40];
575
+ ] }), e[20] = L, e[21] = $, e[22] = z) : z = e[22];
576
+ let O;
577
+ e[23] !== P || e[24] !== z || e[25] !== t ? (O = /* @__PURE__ */ o(xe, { positioning: b, content: t, disabled: P, children: z }), e[23] = P, e[24] = z, e[25] = t, e[26] = O) : O = e[26];
699
578
  let G;
700
- e[41] !== m || e[42] !== p || e[43] !== b ? (G = p ? /* @__PURE__ */ i(Pe, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: m, variant: b, pointerEvents: "none", children: p }) : null, e[41] = m, e[42] = p, e[43] = b, e[44] = G) : G = e[44];
701
- let R;
702
- return e[45] !== B || e[46] !== G ? (R = /* @__PURE__ */ x(Qe, { children: [
703
- B,
704
- G
705
- ] }), e[45] = B, e[46] = G, e[47] = R) : R = e[47], R;
706
- }, Re = (l) => {
707
- const e = A(48), {
579
+ e[27] !== T || e[28] !== I || e[29] !== k || e[30] !== r || e[31] !== f || e[32] !== c || e[33] !== u || e[34] !== p ? (G = r ? /* @__PURE__ */ o(xe, { positioning: {
580
+ placement: "right"
581
+ }, content: p, disabled: !p, children: /* @__PURE__ */ o(fe, { as: k ? "button" : "div", alignItems: "center", "aria-label": f, cursor: k ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: I, onClick: T, children: /* @__PURE__ */ o(ae, { as: r, boxSize: u, color: c }) }) }) : null, e[27] = T, e[28] = I, e[29] = k, e[30] = r, e[31] = f, e[32] = c, e[33] = u, e[34] = p, e[35] = G) : G = e[35];
582
+ let H;
583
+ e[36] !== G ? (H = /* @__PURE__ */ o(fe, { justifyContent: "flex-end", color: "fg.menu-item.default", children: G }), e[36] = G, e[37] = H) : H = e[37];
584
+ let X;
585
+ e[38] !== H || e[39] !== O ? (X = /* @__PURE__ */ x(fe, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
586
+ O,
587
+ H
588
+ ] }), e[38] = H, e[39] = O, e[40] = X) : X = e[40];
589
+ let F;
590
+ e[41] !== S || e[42] !== g || e[43] !== m ? (F = g ? /* @__PURE__ */ o(Pe, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: S, variant: m, pointerEvents: "none", children: g }) : null, e[41] = S, e[42] = g, e[43] = m, e[44] = F) : F = e[44];
591
+ let A;
592
+ return e[45] !== X || e[46] !== F ? (A = /* @__PURE__ */ x(Lt, { children: [
593
+ X,
594
+ F
595
+ ] }), e[45] = X, e[46] = F, e[47] = A) : A = e[47], A;
596
+ }, De = (l) => {
597
+ const e = R(48), {
708
598
  id: n,
709
599
  children: t,
710
- asChild: o,
600
+ asChild: i,
711
601
  primaryLabel: s,
712
602
  tooltipLabel: r,
713
603
  secondaryLabel: a,
@@ -715,66 +605,66 @@ const wt = {
715
605
  rightIcon: d,
716
606
  leftIconColor: u,
717
607
  rightIconColor: f,
718
- leftIconSize: g,
608
+ leftIconSize: p,
719
609
  rightIconSize: h,
720
- rightIconAriaLabel: p,
721
- rightTooltipLabel: m,
722
- onRightIconClick: b,
723
- isDisabled: y,
724
- isSelected: v,
610
+ rightIconAriaLabel: g,
611
+ rightTooltipLabel: S,
612
+ onRightIconClick: m,
613
+ isDisabled: v,
614
+ isSelected: C,
725
615
  tagLabel: k,
726
- tagColorPalette: _,
727
- tagVariant: D,
728
- variant: T,
729
- tabIndex: P,
730
- width: S,
731
- maxWidth: w,
732
- setRefElement: C
733
- } = l, I = c === void 0 ? null : c, z = u === void 0 ? "fg.menu-item.default" : u, $ = f === void 0 ? "fg.menu-item.default" : f, O = _ === void 0 ? "yellow" : _, M = D === void 0 ? "subtle" : D, N = T === void 0 ? "default" : T, {
734
- onClick: W,
735
- onMouseDown: B,
736
- onMouseEnter: G
737
- } = l, R = wt[N], E = v ? "bg.menu-item.selected" : "bg.menu-item.default", V = g ?? R.iconSize, q = h ?? R.iconSize;
738
- let Y;
739
- e[0] !== I || e[1] !== z || e[2] !== b || e[3] !== s || e[4] !== V || e[5] !== q || e[6] !== d || e[7] !== p || e[8] !== $ || e[9] !== m || e[10] !== a || e[11] !== O || e[12] !== k || e[13] !== M || e[14] !== r || e[15] !== N ? (Y = {
616
+ tagColorPalette: y,
617
+ tagVariant: I,
618
+ variant: D,
619
+ tabIndex: T,
620
+ width: b,
621
+ maxWidth: P,
622
+ setRefElement: w
623
+ } = l, _ = c === void 0 ? null : c, L = u === void 0 ? "fg.menu-item.default" : u, $ = f === void 0 ? "fg.menu-item.default" : f, z = y === void 0 ? "yellow" : y, O = I === void 0 ? "subtle" : I, G = D === void 0 ? "default" : D, {
624
+ onClick: H,
625
+ onMouseDown: X,
626
+ onMouseEnter: F
627
+ } = l, A = Mt[G], E = C ? "bg.menu-item.selected" : "bg.menu-item.default", K = p ?? A.iconSize, M = h ?? A.iconSize;
628
+ let Z;
629
+ e[0] !== _ || e[1] !== L || e[2] !== m || e[3] !== s || e[4] !== K || e[5] !== M || e[6] !== d || e[7] !== g || e[8] !== $ || e[9] !== S || e[10] !== a || e[11] !== z || e[12] !== k || e[13] !== O || e[14] !== r || e[15] !== G ? (Z = {
740
630
  primaryLabel: s,
741
631
  secondaryLabel: a,
742
632
  tooltipLabel: r,
743
- leftIcon: I,
633
+ leftIcon: _,
744
634
  rightIcon: d,
745
- leftIconColor: z,
635
+ leftIconColor: L,
746
636
  rightIconColor: $,
747
- leftIconSize: V,
748
- rightIconSize: q,
749
- rightIconAriaLabel: p,
750
- rightTooltipLabel: m,
751
- onRightIconClick: b,
637
+ leftIconSize: K,
638
+ rightIconSize: M,
639
+ rightIconAriaLabel: g,
640
+ rightTooltipLabel: S,
641
+ onRightIconClick: m,
752
642
  tagLabel: k,
753
- tagColorPalette: O,
754
- tagVariant: M,
755
- variant: N
756
- }, e[0] = I, e[1] = z, e[2] = b, e[3] = s, e[4] = V, e[5] = q, e[6] = d, e[7] = p, e[8] = $, e[9] = m, e[10] = a, e[11] = O, e[12] = k, e[13] = M, e[14] = r, e[15] = N, e[16] = Y) : Y = e[16];
757
- const K = Y, Z = w ?? "20rem", J = y ? "default" : "pointer", ee = n ?? s;
643
+ tagColorPalette: z,
644
+ tagVariant: O,
645
+ variant: G
646
+ }, e[0] = _, e[1] = L, e[2] = m, e[3] = s, e[4] = K, e[5] = M, e[6] = d, e[7] = g, e[8] = $, e[9] = S, e[10] = a, e[11] = z, e[12] = k, e[13] = O, e[14] = r, e[15] = G, e[16] = Z) : Z = e[16];
647
+ const U = Z, q = P ?? "20rem", J = v ? "default" : "pointer", ee = n ?? s;
758
648
  let te, ne;
759
649
  e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = {
760
650
  bg: "bg.menu-item.hover"
761
651
  }, ne = {
762
652
  bg: "bg.menu-item.focus"
763
653
  }, e[17] = te, e[18] = ne) : (te = e[17], ne = e[18]);
764
- let U;
765
- e[19] !== E || e[20] !== n || e[21] !== y || e[22] !== v || e[23] !== C || e[24] !== Z || e[25] !== J || e[26] !== ee || e[27] !== P || e[28] !== R.minHeight || e[29] !== R.paddingX || e[30] !== R.paddingY || e[31] !== S ? (U = {
654
+ let le;
655
+ e[19] !== E || e[20] !== n || e[21] !== v || e[22] !== C || e[23] !== w || e[24] !== q || e[25] !== J || e[26] !== ee || e[27] !== T || e[28] !== A.minHeight || e[29] !== A.paddingX || e[30] !== A.paddingY || e[31] !== b ? (le = {
766
656
  id: n,
767
- ref: C,
768
- tabIndex: P,
769
- disabled: y,
770
- "aria-selected": v,
771
- paddingX: R.paddingX,
772
- paddingY: R.paddingY,
657
+ ref: w,
658
+ tabIndex: T,
659
+ disabled: v,
660
+ "aria-selected": C,
661
+ paddingX: A.paddingX,
662
+ paddingY: A.paddingY,
773
663
  height: "auto",
774
- minHeight: R.minHeight,
664
+ minHeight: A.minHeight,
775
665
  role: "option",
776
- width: S,
777
- maxWidth: Z,
666
+ width: b,
667
+ maxWidth: q,
778
668
  overflow: "hidden",
779
669
  position: "relative",
780
670
  cursor: J,
@@ -784,186 +674,55 @@ const wt = {
784
674
  _focus: ne,
785
675
  textDecoration: "none",
786
676
  color: "inherit"
787
- }, e[19] = E, e[20] = n, e[21] = y, e[22] = v, e[23] = C, e[24] = Z, e[25] = J, e[26] = ee, e[27] = P, e[28] = R.minHeight, e[29] = R.paddingX, e[30] = R.paddingY, e[31] = S, e[32] = U) : U = e[32];
788
- const Q = U;
789
- if (o && t) {
790
- let re, ce;
791
- if (e[33] !== t || e[34] !== Q || e[35] !== K) {
792
- ce = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
677
+ }, e[19] = E, e[20] = n, e[21] = v, e[22] = C, e[23] = w, e[24] = q, e[25] = J, e[26] = ee, e[27] = T, e[28] = A.minHeight, e[29] = A.paddingX, e[30] = A.paddingY, e[31] = b, e[32] = le) : le = e[32];
678
+ const re = le;
679
+ if (i && t) {
680
+ let de, ue;
681
+ if (e[33] !== t || e[34] !== re || e[35] !== U) {
682
+ ue = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
793
683
  e: {
794
- const de = Xt.only(t);
795
- if (!Ut(de)) {
796
- ce = null;
684
+ const me = cn.only(t);
685
+ if (!dn(me)) {
686
+ ue = null;
797
687
  break e;
798
688
  }
799
- let ae;
800
- e[38] !== K ? (ae = /* @__PURE__ */ i(rt, { ...K }), e[38] = K, e[39] = ae) : ae = e[39], re = /* @__PURE__ */ i(nt, { asChild: !0, ...Q, children: Yt(de, void 0, ae) });
689
+ let ie;
690
+ e[38] !== U ? (ie = /* @__PURE__ */ o(gt, { ...U }), e[38] = U, e[39] = ie) : ie = e[39], de = /* @__PURE__ */ o(dt, { asChild: !0, ...re, children: un(me, void 0, ie) });
801
691
  }
802
- e[33] = t, e[34] = Q, e[35] = K, e[36] = re, e[37] = ce;
692
+ e[33] = t, e[34] = re, e[35] = U, e[36] = de, e[37] = ue;
803
693
  } else
804
- re = e[36], ce = e[37];
805
- return ce !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ce : re;
694
+ de = e[36], ue = e[37];
695
+ return ue !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ue : de;
806
696
  }
807
697
  let oe;
808
- e[40] !== K ? (oe = /* @__PURE__ */ i(rt, { ...K }), e[40] = K, e[41] = oe) : oe = e[41];
809
- let se;
810
- return e[42] !== Q || e[43] !== W || e[44] !== B || e[45] !== G || e[46] !== oe ? (se = /* @__PURE__ */ i(nt, { ...Q, onClick: W, onMouseDown: B, onMouseEnter: G, children: oe }), e[42] = Q, e[43] = W, e[44] = B, e[45] = G, e[46] = oe, e[47] = se) : se = e[47], se;
811
- }, Un = {
812
- default: {
813
- width: "64",
814
- headerHeight: "49px",
815
- headerPadding: "xs",
816
- headerTextStyle: "label/L/medium",
817
- contentPadding: "xs",
818
- contentGap: "xs"
819
- },
820
- compact: {
821
- width: "64",
822
- headerHeight: "49px",
823
- headerPadding: "xs",
824
- headerTextStyle: "label/L/medium",
825
- contentPadding: "2xs",
826
- contentGap: "2xs"
827
- }
828
- };
829
- function Yn(l) {
830
- const e = A(13), {
831
- title: n,
832
- children: t,
833
- variant: o
834
- } = l, r = Un[o === void 0 ? "default" : o];
835
- let a;
836
- e[0] !== r.headerHeight || e[1] !== r.headerPadding || e[2] !== r.headerTextStyle || e[3] !== n ? (a = n && /* @__PURE__ */ i(Ie, { height: r.headerHeight, p: r.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i(L, { pb: "0", textStyle: r.headerTextStyle, color: "fg.muted", children: n }) }), e[0] = r.headerHeight, e[1] = r.headerPadding, e[2] = r.headerTextStyle, e[3] = n, e[4] = a) : a = e[4];
837
- let c;
838
- e[5] !== t || e[6] !== r.contentGap || e[7] !== r.contentPadding ? (c = t && /* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
839
- p: r.contentPadding,
840
- spaceY: r.contentGap
841
- }, children: t }), e[5] = t, e[6] = r.contentGap, e[7] = r.contentPadding, e[8] = c) : c = e[8];
842
- let d;
843
- return e[9] !== r.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ x(H, { borderRightWidth: "1px", width: r.width, gap: "0", minH: "0", children: [
844
- a,
845
- c
846
- ] }), e[9] = r.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
847
- }
848
- const It = (l) => {
849
- const e = A(27), {
850
- item: n,
851
- activeLink: t,
852
- onSelectLink: o,
853
- shouldStartOpen: s
854
- } = l;
855
- let r;
856
- e[0] !== n.items ? (r = n.items ?? [], e[0] = n.items, e[1] = r) : r = e[1];
857
- const a = r, c = a.length > 0;
858
- if (!c && n.link) {
859
- const p = n.link, m = n.link === t;
860
- let b;
861
- e[2] !== p || e[3] !== o ? (b = () => o(p), e[2] = p, e[3] = o, e[4] = b) : b = e[4];
862
- let y;
863
- return e[5] !== m || e[6] !== n.text || e[7] !== b ? (y = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Re, { primaryLabel: n.text, isSelected: m, variant: "compact", onClick: b }) }), e[5] = m, e[6] = n.text, e[7] = b, e[8] = y) : y = e[8], y;
864
- }
865
- if (!c) {
866
- let p;
867
- return e[9] !== n.text ? (p = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Re, { primaryLabel: n.text, isDisabled: !0, variant: "compact" }) }), e[9] = n.text, e[10] = p) : p = e[10], p;
868
- }
869
- let d;
870
- e[11] !== n || e[12] !== s ? (d = s?.(n) ?? !1, e[11] = n, e[12] = s, e[13] = d) : d = e[13];
871
- const u = d, f = n.text;
872
- let g;
873
- if (e[14] !== t || e[15] !== a || e[16] !== o || e[17] !== s) {
874
- let p;
875
- e[19] !== t || e[20] !== o || e[21] !== s ? (p = (m, b) => /* @__PURE__ */ i(It, { item: m, activeLink: t, onSelectLink: o, shouldStartOpen: s }, `${m.text}-${m.link ?? b}`), e[19] = t, e[20] = o, e[21] = s, e[22] = p) : p = e[22], g = a.map(p), e[14] = t, e[15] = a, e[16] = o, e[17] = s, e[18] = g;
876
- } else
877
- g = e[18];
878
- let h;
879
- return e[23] !== u || e[24] !== n.text || e[25] !== g ? (h = /* @__PURE__ */ i(jn, { title: f, defaultOpen: u, children: g }), e[23] = u, e[24] = n.text, e[25] = g, e[26] = h) : h = e[26], h;
880
- }, Zi = (l) => {
881
- const e = A(9), {
882
- title: n,
883
- emptyMessage: t,
884
- menuItems: o,
885
- activeLink: s,
886
- onSelectLink: r,
887
- shouldStartOpen: a
888
- } = l;
889
- let c;
890
- e[0] !== s || e[1] !== t || e[2] !== o || e[3] !== r || e[4] !== a ? (c = o.length === 0 ? /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : o.map((u, f) => /* @__PURE__ */ i(It, { item: u, activeLink: s, onSelectLink: r, shouldStartOpen: a }, `${u.text}-${u.link ?? f}`)), e[0] = s, e[1] = t, e[2] = o, e[3] = r, e[4] = a, e[5] = c) : c = e[5];
891
- let d;
892
- return e[6] !== c || e[7] !== n ? (d = /* @__PURE__ */ i(Yn, { title: n, variant: "compact", children: c }), e[6] = c, e[7] = n, e[8] = d) : d = e[8], d;
893
- };
894
- class eo extends Kt {
895
- state = {
896
- error: null
897
- };
898
- static getDerivedStateFromError(e) {
899
- return {
900
- error: e
901
- };
902
- }
903
- componentDidCatch(e, n) {
904
- console.error("Dashboard error boundary caught an error", e, n);
905
- }
906
- handleReset = () => {
907
- this.setState({
908
- error: null
909
- }), this.props.onReset?.();
910
- };
911
- render() {
912
- const {
913
- children: e,
914
- fallback: n,
915
- label: t
916
- } = this.props, {
917
- error: o
918
- } = this.state;
919
- return o ? n || /* @__PURE__ */ i(Kn, { error: o, label: t, onReset: this.handleReset }) : e;
920
- }
921
- }
922
- const Kn = (l) => {
923
- const e = A(12), {
924
- error: n,
925
- label: t,
926
- onReset: o
927
- } = l, s = t ?? "Something went wrong";
928
- let r;
929
- e[0] !== s ? (r = /* @__PURE__ */ i(L, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = r) : r = e[1];
930
- const a = n.message || "An unexpected error occurred while rendering this section.";
931
- let c;
932
- e[2] !== a ? (c = /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
933
- let d;
934
- e[4] !== o ? (d = o ? /* @__PURE__ */ i(he, { size: "sm", variant: "solid", colorScheme: "black", onClick: o, children: "Try again" }) : null, e[4] = o, e[5] = d) : d = e[5];
935
- let u;
936
- e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ x(H, { gap: "sm", children: [
937
- c,
938
- d
939
- ] }), e[6] = c, e[7] = d, e[8] = u) : u = e[8];
940
- let f;
941
- return e[9] !== r || e[10] !== u ? (f = /* @__PURE__ */ i(Ln, { height: "100%", width: "100%", children: /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(jt, { status: "error", title: r, children: u }) }) }), e[9] = r, e[10] = u, e[11] = f) : f = e[11], f;
942
- }, qn = (l) => l.isDirectory ? l.isGitRepo ? ln : on : qe, Jn = (l) => {
943
- const e = A(18), {
698
+ e[40] !== U ? (oe = /* @__PURE__ */ o(gt, { ...U }), e[40] = U, e[41] = oe) : oe = e[41];
699
+ let ce;
700
+ return e[42] !== re || e[43] !== H || e[44] !== X || e[45] !== F || e[46] !== oe ? (ce = /* @__PURE__ */ o(dt, { ...re, onClick: H, onMouseDown: X, onMouseEnter: F, children: oe }), e[42] = re, e[43] = H, e[44] = X, e[45] = F, e[46] = oe, e[47] = ce) : ce = e[47], ce;
701
+ }, sl = (l) => l.isDirectory ? l.isGitRepo ? Sn : xn : bn, al = (l) => {
702
+ const e = R(18), {
944
703
  entry: n,
945
704
  selectedPath: t,
946
- selectedPathSet: o,
705
+ selectedPathSet: i,
947
706
  onEntryClick: s
948
707
  } = l;
949
708
  let r;
950
- e[0] !== n.isGitRepo || e[1] !== n.path || e[2] !== o ? (r = n.isGitRepo && o.has(n.path), e[0] = n.isGitRepo, e[1] = n.path, e[2] = o, e[3] = r) : r = e[3];
709
+ e[0] !== n.isGitRepo || e[1] !== n.path || e[2] !== i ? (r = n.isGitRepo && i.has(n.path), e[0] = n.isGitRepo, e[1] = n.path, e[2] = i, e[3] = r) : r = e[3];
951
710
  const a = r, c = !n.isDirectory || a;
952
711
  let d;
953
712
  e[4] !== n || e[5] !== a || e[6] !== s ? (d = () => {
954
713
  a || s(n);
955
714
  }, e[4] = n, e[5] = a, e[6] = s, e[7] = d) : d = e[7];
956
715
  const u = d, f = n.name;
957
- let g;
958
- e[8] !== n ? (g = qn(n), e[8] = n, e[9] = g) : g = e[9];
959
- const h = n.isGitRepo ? "Git repo" : void 0, p = n.isGitRepo ? "green" : void 0, m = t === n.path;
960
- let b;
961
- return e[10] !== n.name || e[11] !== u || e[12] !== c || e[13] !== g || e[14] !== h || e[15] !== p || e[16] !== m ? (b = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Re, { primaryLabel: f, leftIcon: g, tagLabel: h, tagColorPalette: p, isDisabled: c, isSelected: m, width: "100%", maxWidth: "100%", onClick: u }) }), e[10] = n.name, e[11] = u, e[12] = c, e[13] = g, e[14] = h, e[15] = p, e[16] = m, e[17] = b) : b = e[17], b;
962
- }, to = (l) => {
963
- const e = A(54), {
716
+ let p;
717
+ e[8] !== n ? (p = sl(n), e[8] = n, e[9] = p) : p = e[9];
718
+ const h = n.isGitRepo ? "Git repo" : void 0, g = n.isGitRepo ? "green" : void 0, S = t === n.path;
719
+ let m;
720
+ return e[10] !== n.name || e[11] !== u || e[12] !== c || e[13] !== p || e[14] !== h || e[15] !== g || e[16] !== S ? (m = /* @__PURE__ */ o(Y.Root, { children: /* @__PURE__ */ o(De, { primaryLabel: f, leftIcon: p, tagLabel: h, tagColorPalette: g, isDisabled: c, isSelected: S, width: "100%", maxWidth: "100%", onClick: u }) }), e[10] = n.name, e[11] = u, e[12] = c, e[13] = p, e[14] = h, e[15] = g, e[16] = S, e[17] = m) : m = e[17], m;
721
+ }, Ri = (l) => {
722
+ const e = R(54), {
964
723
  open: n,
965
724
  title: t,
966
- description: o,
725
+ description: i,
967
726
  currentPath: s,
968
727
  entries: r,
969
728
  selectedPath: a,
@@ -971,346 +730,561 @@ const Kn = (l) => {
971
730
  isLoading: d,
972
731
  error: u,
973
732
  isSelectDisabled: f,
974
- onClose: g,
733
+ onClose: p,
975
734
  onSelect: h,
976
- onSelectHomeDirectory: p,
977
- onSelectParentDirectory: m,
978
- onEntryClick: b
979
- } = l, y = t === void 0 ? "Select folder" : t, v = s === void 0 ? "" : s, k = a === void 0 ? null : a;
735
+ onSelectHomeDirectory: g,
736
+ onSelectParentDirectory: S,
737
+ onEntryClick: m
738
+ } = l, v = t === void 0 ? "Select folder" : t, C = s === void 0 ? "" : s, k = a === void 0 ? null : a;
739
+ let y;
740
+ e[0] !== c ? (y = c === void 0 ? [] : c, e[0] = c, e[1] = y) : y = e[1];
741
+ const I = y, D = d === void 0 ? !1 : d, T = u === void 0 ? "" : u, b = f === void 0 ? !1 : f;
742
+ let P;
743
+ e[2] !== I ? (P = new Set(I), e[2] = I, e[3] = P) : P = e[3];
744
+ const w = P;
980
745
  let _;
981
- e[0] !== c ? (_ = c === void 0 ? [] : c, e[0] = c, e[1] = _) : _ = e[1];
982
- const D = _, T = d === void 0 ? !1 : d, P = u === void 0 ? "" : u, S = f === void 0 ? !1 : f;
983
- let w;
984
- e[2] !== D ? (w = new Set(D), e[2] = D, e[3] = w) : w = e[3];
985
- const C = w;
986
- let I;
987
- e[4] !== g ? (I = (Q) => !Q.open && g(), e[4] = g, e[5] = I) : I = e[5];
988
- let z;
989
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ i(fe.Backdrop, {}), e[6] = z) : z = e[6];
746
+ e[4] !== p ? (_ = (re) => !re.open && p(), e[4] = p, e[5] = _) : _ = e[5];
747
+ let L;
748
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ o(se.Backdrop, {}), e[6] = L) : L = e[6];
990
749
  let $;
991
- e[7] !== y ? ($ = /* @__PURE__ */ i(L, { textStyle: "heading/M", children: y }), e[7] = y, e[8] = $) : $ = e[8];
750
+ e[7] !== v ? ($ = /* @__PURE__ */ o(W, { textStyle: "heading/M", children: v }), e[7] = v, e[8] = $) : $ = e[8];
751
+ let z;
752
+ e[9] !== i ? (z = i ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: i }) : null, e[9] = i, e[10] = z) : z = e[10];
992
753
  let O;
993
- e[9] !== o ? (O = o ? /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: "fg.muted", children: o }) : null, e[9] = o, e[10] = O) : O = e[10];
994
- let M;
995
- e[11] !== $ || e[12] !== O ? (M = /* @__PURE__ */ i(fe.Header, { children: /* @__PURE__ */ x(H, { gap: "xs", children: [
754
+ e[11] !== $ || e[12] !== z ? (O = /* @__PURE__ */ o(se.Header, { children: /* @__PURE__ */ x(B, { gap: "xs", children: [
996
755
  $,
997
- O
998
- ] }) }), e[11] = $, e[12] = O, e[13] = M) : M = e[13];
999
- let N;
1000
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ i(rn, { size: 16 }), e[14] = N) : N = e[14];
1001
- let W;
1002
- e[15] !== p ? (W = /* @__PURE__ */ i(he, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: p, children: N }), e[15] = p, e[16] = W) : W = e[16];
1003
- const B = !v || v === "/";
756
+ z
757
+ ] }) }), e[11] = $, e[12] = z, e[13] = O) : O = e[13];
1004
758
  let G;
1005
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ i(sn, { size: 16 }), e[17] = G) : G = e[17];
1006
- let R;
1007
- e[18] !== m || e[19] !== B ? (R = /* @__PURE__ */ i(he, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: m, disabled: B, children: G }), e[18] = m, e[19] = B, e[20] = R) : R = e[20];
1008
- const E = v || "Home";
1009
- let V;
1010
- e[21] !== E ? (V = /* @__PURE__ */ i(L, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: E }), e[21] = E, e[22] = V) : V = e[22];
1011
- let q;
1012
- e[23] !== W || e[24] !== R || e[25] !== V ? (q = /* @__PURE__ */ x(H, { direction: "row", gap: "sm", align: "center", children: [
1013
- W,
1014
- R,
1015
- V
1016
- ] }), e[23] = W, e[24] = R, e[25] = V, e[26] = q) : q = e[26];
1017
- let Y;
1018
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = {
1019
- padding: "sm"
1020
- }, e[27] = Y) : Y = e[27];
759
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ o(yn, { size: 16 }), e[14] = G) : G = e[14];
760
+ let H;
761
+ e[15] !== g ? (H = /* @__PURE__ */ o(pe, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: g, children: G }), e[15] = g, e[16] = H) : H = e[16];
762
+ const X = !C || C === "/";
763
+ let F;
764
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ o(vn, { size: 16 }), e[17] = F) : F = e[17];
765
+ let A;
766
+ e[18] !== S || e[19] !== X ? (A = /* @__PURE__ */ o(pe, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: S, disabled: X, children: F }), e[18] = S, e[19] = X, e[20] = A) : A = e[20];
767
+ const E = C || "Home";
1021
768
  let K;
1022
- e[28] !== r || e[29] !== P || e[30] !== T || e[31] !== b || e[32] !== k || e[33] !== C ? (K = /* @__PURE__ */ i(ye, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: Y, children: T ? /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : P ? /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: "red.500", children: P }) : r.length === 0 ? /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(H, { gap: "xs", children: r.map((Q) => /* @__PURE__ */ i(Jn, { entry: Q, selectedPath: k, selectedPathSet: C, onEntryClick: b }, Q.path)) }) }), e[28] = r, e[29] = P, e[30] = T, e[31] = b, e[32] = k, e[33] = C, e[34] = K) : K = e[34];
1023
- let Z;
1024
- e[35] !== q || e[36] !== K ? (Z = /* @__PURE__ */ i(fe.Body, { children: /* @__PURE__ */ x(H, { gap: "md", children: [
1025
- q,
769
+ e[21] !== E ? (K = /* @__PURE__ */ o(W, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: E }), e[21] = E, e[22] = K) : K = e[22];
770
+ let M;
771
+ e[23] !== H || e[24] !== A || e[25] !== K ? (M = /* @__PURE__ */ x(B, { direction: "row", gap: "sm", align: "center", children: [
772
+ H,
773
+ A,
1026
774
  K
1027
- ] }) }), e[35] = q, e[36] = K, e[37] = Z) : Z = e[37];
775
+ ] }), e[23] = H, e[24] = A, e[25] = K, e[26] = M) : M = e[26];
776
+ let Z;
777
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = {
778
+ padding: "sm"
779
+ }, e[27] = Z) : Z = e[27];
780
+ let U;
781
+ e[28] !== r || e[29] !== T || e[30] !== D || e[31] !== m || e[32] !== k || e[33] !== w ? (U = /* @__PURE__ */ o(ke, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: Z, children: D ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : T ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "red.500", children: T }) : r.length === 0 ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ o(B, { gap: "xs", children: r.map((re) => /* @__PURE__ */ o(al, { entry: re, selectedPath: k, selectedPathSet: w, onEntryClick: m }, re.path)) }) }), e[28] = r, e[29] = T, e[30] = D, e[31] = m, e[32] = k, e[33] = w, e[34] = U) : U = e[34];
782
+ let q;
783
+ e[35] !== M || e[36] !== U ? (q = /* @__PURE__ */ o(se.Body, { children: /* @__PURE__ */ x(B, { gap: "md", children: [
784
+ M,
785
+ U
786
+ ] }) }), e[35] = M, e[36] = U, e[37] = q) : q = e[37];
1028
787
  let J;
1029
- e[38] !== g ? (J = /* @__PURE__ */ i(he, { variant: "outline", onClick: g, children: "Cancel" }), e[38] = g, e[39] = J) : J = e[39];
788
+ e[38] !== p ? (J = /* @__PURE__ */ o(pe, { variant: "outline", onClick: p, children: "Cancel" }), e[38] = p, e[39] = J) : J = e[39];
1030
789
  let ee;
1031
- e[40] !== S || e[41] !== h ? (ee = /* @__PURE__ */ i(he, { onClick: h, disabled: S, children: "Select repository" }), e[40] = S, e[41] = h, e[42] = ee) : ee = e[42];
790
+ e[40] !== b || e[41] !== h ? (ee = /* @__PURE__ */ o(pe, { onClick: h, disabled: b, children: "Select repository" }), e[40] = b, e[41] = h, e[42] = ee) : ee = e[42];
1032
791
  let te;
1033
- e[43] !== J || e[44] !== ee ? (te = /* @__PURE__ */ i(fe.Footer, { children: /* @__PURE__ */ x(H, { direction: "row", gap: "sm", children: [
792
+ e[43] !== J || e[44] !== ee ? (te = /* @__PURE__ */ o(se.Footer, { children: /* @__PURE__ */ x(B, { direction: "row", gap: "sm", children: [
1034
793
  J,
1035
794
  ee
1036
795
  ] }) }), e[43] = J, e[44] = ee, e[45] = te) : te = e[45];
1037
796
  let ne;
1038
- e[46] !== M || e[47] !== Z || e[48] !== te ? (ne = /* @__PURE__ */ i(fe.Positioner, { children: /* @__PURE__ */ x(fe.Content, { children: [
1039
- M,
1040
- Z,
797
+ e[46] !== O || e[47] !== q || e[48] !== te ? (ne = /* @__PURE__ */ o(se.Positioner, { children: /* @__PURE__ */ x(se.Content, { children: [
798
+ O,
799
+ q,
1041
800
  te
1042
- ] }) }), e[46] = M, e[47] = Z, e[48] = te, e[49] = ne) : ne = e[49];
1043
- let U;
1044
- return e[50] !== n || e[51] !== ne || e[52] !== I ? (U = /* @__PURE__ */ x(fe.Root, { lazyMount: !0, unmountOnExit: !0, closeOnInteractOutside: !1, open: n, onOpenChange: I, children: [
1045
- z,
801
+ ] }) }), e[46] = O, e[47] = q, e[48] = te, e[49] = ne) : ne = e[49];
802
+ let le;
803
+ return e[50] !== n || e[51] !== ne || e[52] !== _ ? (le = /* @__PURE__ */ x(se.Root, { lazyMount: !0, unmountOnExit: !0, closeOnInteractOutside: !1, open: n, onOpenChange: _, children: [
804
+ L,
1046
805
  ne
1047
- ] }), e[50] = n, e[51] = ne, e[52] = I, e[53] = U) : U = e[53], U;
806
+ ] }), e[50] = n, e[51] = ne, e[52] = _, e[53] = le) : le = e[53], le;
1048
807
  };
1049
- function no(l) {
1050
- const e = A(6);
1051
- let n, t;
808
+ function cl(l) {
809
+ const e = R(14);
810
+ let n, t, i, s, r, a;
1052
811
  e[0] !== l ? ({
1053
812
  children: n,
813
+ h: i,
814
+ px: s,
815
+ py: r,
816
+ borderBottomWidth: a,
1054
817
  ...t
1055
- } = l, e[0] = l, e[1] = n, e[2] = t) : (n = e[1], t = e[2]);
1056
- let o;
1057
- return e[3] !== n || e[4] !== t ? (o = /* @__PURE__ */ i(X, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: n }), e[3] = n, e[4] = t, e[5] = o) : o = e[5], o;
818
+ } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = i, e[4] = s, e[5] = r, e[6] = a) : (n = e[1], t = e[2], i = e[3], s = e[4], r = e[5], a = e[6]);
819
+ const c = i === void 0 ? "41px" : i, d = s === void 0 ? "xs" : s, u = r === void 0 ? "xs" : r, f = a === void 0 ? "1px" : a;
820
+ let p;
821
+ return e[7] !== f || e[8] !== n || e[9] !== c || e[10] !== d || e[11] !== u || e[12] !== t ? (p = /* @__PURE__ */ o(j, { ...t, h: c, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.muted", px: d, py: u, children: n }), e[7] = f, e[8] = n, e[9] = c, e[10] = d, e[11] = u, e[12] = t, e[13] = p) : p = e[13], p;
1058
822
  }
1059
- const Qn = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Zn = (l) => l.version ? `${l.name} v${l.version}` : l.name, lo = (l) => {
1060
- const e = A(30), {
823
+ const Wi = (l) => {
824
+ const e = R(17), {
825
+ children: n,
826
+ title: t,
827
+ defaultOpen: i,
828
+ action: s
829
+ } = l, r = i === void 0 ? !0 : i;
830
+ let a;
831
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
832
+ background: "bg.hover"
833
+ }, e[0] = a) : a = e[0];
834
+ let c;
835
+ e[1] !== t ? (c = t && /* @__PURE__ */ o(W, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
836
+ let d;
837
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ o(je.Indicator, { transition: "transform 0.2s", _open: {
838
+ transform: "rotate(90deg)"
839
+ }, children: /* @__PURE__ */ o(Te, { size: 16 }) }), e[3] = d) : d = e[3];
840
+ let u;
841
+ e[4] !== c ? (u = /* @__PURE__ */ x(je.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
842
+ c,
843
+ d
844
+ ] }), e[4] = c, e[5] = u) : u = e[5];
845
+ let f;
846
+ e[6] !== s ? (f = s && /* @__PURE__ */ o(V, { marginLeft: "auto", onClick: dl, children: s }), e[6] = s, e[7] = f) : f = e[7];
847
+ let p;
848
+ e[8] !== u || e[9] !== f ? (p = /* @__PURE__ */ x(fe, { children: [
849
+ u,
850
+ f
851
+ ] }), e[8] = u, e[9] = f, e[10] = p) : p = e[10];
852
+ let h;
853
+ e[11] !== n ? (h = /* @__PURE__ */ o(je.Content, { children: n }), e[11] = n, e[12] = h) : h = e[12];
854
+ let g;
855
+ return e[13] !== r || e[14] !== p || e[15] !== h ? (g = /* @__PURE__ */ x(je.Root, { defaultOpen: r, width: "full", children: [
856
+ p,
857
+ h
858
+ ] }), e[13] = r, e[14] = p, e[15] = h, e[16] = g) : g = e[16], g;
859
+ };
860
+ function dl(l) {
861
+ return l.stopPropagation();
862
+ }
863
+ const Gt = "2.5625rem", ul = tn({
864
+ placement: "bottom-end",
865
+ pauseOnPageIdle: !0,
866
+ duration: 1e4
867
+ }), Ei = () => {
868
+ const l = R(1);
869
+ let e;
870
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(nn, { toaster: ul, insetInline: {
871
+ mdDown: "4"
872
+ }, children: fl }) }), l[0] = e) : e = l[0], e;
873
+ };
874
+ function fl(l) {
875
+ return /* @__PURE__ */ x(ze.Root, { width: {
876
+ md: "sm"
877
+ }, alignItems: "start", children: [
878
+ l.type === "loading" ? /* @__PURE__ */ o(Tt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ o(ze.Indicator, {}),
879
+ /* @__PURE__ */ x(B, { gap: "1", flex: "1", minWidth: "0", maxWidth: "100%", children: [
880
+ l.title && /* @__PURE__ */ o(ze.Title, { children: l.title }),
881
+ l.description && /* @__PURE__ */ o(ze.Description, { maxHeight: "12rem", overflowY: "auto", paddingEnd: "1", whiteSpace: "pre-wrap", wordBreak: "break-word", children: l.description })
882
+ ] }),
883
+ l.action && /* @__PURE__ */ o(ze.ActionTrigger, { children: l.action.label }),
884
+ l.closable && /* @__PURE__ */ o(ze.CloseTrigger, {})
885
+ ] });
886
+ }
887
+ const zi = (l) => {
888
+ const e = R(12), {
889
+ sidebar: n,
890
+ errorLabel: t,
891
+ children: i
892
+ } = l;
893
+ let s;
894
+ e[0] !== n ? (s = n ? /* @__PURE__ */ o(fe, { minH: "0", flexShrink: 0, children: n }) : null, e[0] = n, e[1] = s) : s = e[1];
895
+ const r = t ?? "Unable to render the panel.";
896
+ let a;
897
+ e[2] !== i ? (a = i ?? /* @__PURE__ */ o(Vn, {}), e[2] = i, e[3] = a) : a = e[3];
898
+ let c;
899
+ e[4] !== a ? (c = /* @__PURE__ */ o(fe, { flex: "1", overflow: "hidden", minH: "0", minW: "0", children: a }), e[4] = a, e[5] = c) : c = e[5];
900
+ let d;
901
+ e[6] !== r || e[7] !== c ? (d = /* @__PURE__ */ o(Ot, { label: r, children: c }), e[6] = r, e[7] = c, e[8] = d) : d = e[8];
902
+ let u;
903
+ return e[9] !== s || e[10] !== d ? (u = /* @__PURE__ */ x(fe, { height: "100%", width: "100%", minH: "0", minW: "0", children: [
904
+ s,
905
+ d
906
+ ] }), e[9] = s, e[10] = d, e[11] = u) : u = e[11], u;
907
+ }, Ai = (l) => {
908
+ const e = R(8), {
909
+ actions: n,
910
+ content: t
911
+ } = l;
912
+ let i;
913
+ e[0] !== n ? (i = /* @__PURE__ */ o(cl, { "data-testid": "panel-section-actions", align: "flex-start", minH: Gt, flexWrap: "wrap", gap: "sm", py: "2xs", children: n }), e[0] = n, e[1] = i) : i = e[1];
914
+ let s;
915
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
916
+ minH: "100%"
917
+ }, e[2] = s) : s = e[2];
918
+ let r;
919
+ e[3] !== t ? (r = /* @__PURE__ */ o(ke, { flex: "1", bg: "bg", contentProps: s, children: /* @__PURE__ */ o(Ot, { label: "Unable to render the panel.", children: /* @__PURE__ */ o(fe, { flex: "1", overflow: "hidden", minH: "0", children: t }) }) }), e[3] = t, e[4] = r) : r = e[4];
920
+ let a;
921
+ return e[5] !== i || e[6] !== r ? (a = /* @__PURE__ */ x(B, { height: "100%", width: "100%", gap: "0", minH: "0", children: [
922
+ i,
923
+ r
924
+ ] }), e[5] = i, e[6] = r, e[7] = a) : a = e[7], a;
925
+ }, pl = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, hl = (l) => l.version ? `${l.name} v${l.version}` : l.name, Oi = (l) => {
926
+ const e = R(30), {
1061
927
  notices: n,
1062
928
  title: t,
1063
- description: o,
929
+ description: i,
1064
930
  productName: s,
1065
931
  productVersion: r,
1066
932
  generatedAt: a,
1067
933
  emptyTitle: c,
1068
934
  emptyDescription: d
1069
- } = l, u = t === void 0 ? "Open Source and Third-Party Notices" : t, f = o === void 0 ? "This product includes software developed by the open source community." : o, g = c === void 0 ? "No third-party notices available" : c, h = d === void 0 ? "No third-party packages were included in this build." : d;
1070
- let p;
1071
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
935
+ } = l, u = t === void 0 ? "Open Source and Third-Party Notices" : t, f = i === void 0 ? "This product includes software developed by the open source community." : i, p = c === void 0 ? "No third-party notices available" : c, h = d === void 0 ? "No third-party packages were included in this build." : d;
936
+ let g;
937
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
1072
938
  base: "md",
1073
939
  md: "xl"
1074
- }, e[0] = p) : p = e[0];
940
+ }, e[0] = g) : g = e[0];
941
+ let S;
942
+ e[1] !== u ? (S = /* @__PURE__ */ o(W, { textStyle: "heading/L", children: u }), e[1] = u, e[2] = S) : S = e[2];
1075
943
  let m;
1076
- e[1] !== u ? (m = /* @__PURE__ */ i(L, { textStyle: "heading/L", children: u }), e[1] = u, e[2] = m) : m = e[2];
1077
- let b;
1078
- e[3] !== f ? (b = /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: "fg.muted", children: f }), e[3] = f, e[4] = b) : b = e[4];
1079
- let y;
1080
- e[5] !== s ? (y = s ? /* @__PURE__ */ x(L, { textStyle: "label/XS", color: "fg.muted", children: [
944
+ e[3] !== f ? (m = /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: f }), e[3] = f, e[4] = m) : m = e[4];
945
+ let v;
946
+ e[5] !== s ? (v = s ? /* @__PURE__ */ x(W, { textStyle: "label/XS", color: "fg.muted", children: [
1081
947
  "Product: ",
1082
948
  s
1083
- ] }) : null, e[5] = s, e[6] = y) : y = e[6];
1084
- let v;
1085
- e[7] !== r ? (v = r ? /* @__PURE__ */ x(L, { textStyle: "label/XS", color: "fg.muted", children: [
949
+ ] }) : null, e[5] = s, e[6] = v) : v = e[6];
950
+ let C;
951
+ e[7] !== r ? (C = r ? /* @__PURE__ */ x(W, { textStyle: "label/XS", color: "fg.muted", children: [
1086
952
  "Version: ",
1087
953
  r
1088
- ] }) : null, e[7] = r, e[8] = v) : v = e[8];
954
+ ] }) : null, e[7] = r, e[8] = C) : C = e[8];
1089
955
  let k;
1090
- e[9] !== n.length ? (k = /* @__PURE__ */ x(L, { textStyle: "label/XS", color: "fg.muted", children: [
956
+ e[9] !== n.length ? (k = /* @__PURE__ */ x(W, { textStyle: "label/XS", color: "fg.muted", children: [
1091
957
  "Packages: ",
1092
958
  n.length
1093
959
  ] }), e[9] = n.length, e[10] = k) : k = e[10];
1094
- let _;
1095
- e[11] !== a ? (_ = a ? /* @__PURE__ */ x(L, { textStyle: "label/XS", color: "fg.muted", children: [
960
+ let y;
961
+ e[11] !== a ? (y = a ? /* @__PURE__ */ x(W, { textStyle: "label/XS", color: "fg.muted", children: [
1096
962
  "Generated: ",
1097
963
  a
1098
- ] }) : null, e[11] = a, e[12] = _) : _ = e[12];
1099
- let D;
1100
- e[13] !== _ || e[14] !== y || e[15] !== v || e[16] !== k ? (D = /* @__PURE__ */ x(X, { gap: "md", flexWrap: "wrap", children: [
1101
- y,
964
+ ] }) : null, e[11] = a, e[12] = y) : y = e[12];
965
+ let I;
966
+ e[13] !== y || e[14] !== v || e[15] !== C || e[16] !== k ? (I = /* @__PURE__ */ x(j, { gap: "md", flexWrap: "wrap", children: [
1102
967
  v,
968
+ C,
1103
969
  k,
1104
- _
1105
- ] }), e[13] = _, e[14] = y, e[15] = v, e[16] = k, e[17] = D) : D = e[17];
1106
- let T;
1107
- e[18] !== D || e[19] !== m || e[20] !== b ? (T = /* @__PURE__ */ x(H, { gap: "xs", children: [
970
+ y
971
+ ] }), e[13] = y, e[14] = v, e[15] = C, e[16] = k, e[17] = I) : I = e[17];
972
+ let D;
973
+ e[18] !== I || e[19] !== S || e[20] !== m ? (D = /* @__PURE__ */ x(B, { gap: "xs", children: [
974
+ S,
1108
975
  m,
1109
- b,
1110
- D
1111
- ] }), e[18] = D, e[19] = m, e[20] = b, e[21] = T) : T = e[21];
976
+ I
977
+ ] }), e[18] = I, e[19] = S, e[20] = m, e[21] = D) : D = e[21];
978
+ let T;
979
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ o(it, { borderColor: "border.muted" }), e[22] = T) : T = e[22];
980
+ let b;
981
+ e[23] !== h || e[24] !== p || e[25] !== n ? (b = n.length === 0 ? /* @__PURE__ */ x(B, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
982
+ /* @__PURE__ */ o(W, { textStyle: "label/L/medium", children: p }),
983
+ /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: h })
984
+ ] }) : /* @__PURE__ */ o(B, { gap: "md", children: n.map(gl) }), e[23] = h, e[24] = p, e[25] = n, e[26] = b) : b = e[26];
1112
985
  let P;
1113
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ i(Ye, { borderColor: "border.muted" }), e[22] = P) : P = e[22];
1114
- let S;
1115
- e[23] !== h || e[24] !== g || e[25] !== n ? (S = n.length === 0 ? /* @__PURE__ */ x(H, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1116
- /* @__PURE__ */ i(L, { textStyle: "label/L/medium", children: g }),
1117
- /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: "fg.muted", children: h })
1118
- ] }) : /* @__PURE__ */ i(H, { gap: "md", children: n.map(el) }), e[23] = h, e[24] = g, e[25] = n, e[26] = S) : S = e[26];
1119
- let w;
1120
- return e[27] !== T || e[28] !== S ? (w = /* @__PURE__ */ x(H, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: p, gap: "lg", children: [
986
+ return e[27] !== D || e[28] !== b ? (P = /* @__PURE__ */ x(B, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: g, gap: "lg", children: [
987
+ D,
1121
988
  T,
1122
- P,
1123
- S
1124
- ] }), e[27] = T, e[28] = S, e[29] = w) : w = e[29], w;
989
+ b
990
+ ] }), e[27] = D, e[28] = b, e[29] = P) : P = e[29], P;
1125
991
  };
1126
- function el(l, e) {
1127
- return /* @__PURE__ */ i(j, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ x(H, { gap: "sm", children: [
1128
- /* @__PURE__ */ x(H, { gap: "2xs", children: [
1129
- /* @__PURE__ */ i(L, { textStyle: "label/L/medium", children: Zn(l) }),
1130
- /* @__PURE__ */ x(L, { textStyle: "label/S/regular", color: "fg.muted", children: [
992
+ function gl(l, e) {
993
+ return /* @__PURE__ */ o(V, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ x(B, { gap: "sm", children: [
994
+ /* @__PURE__ */ x(B, { gap: "2xs", children: [
995
+ /* @__PURE__ */ o(W, { textStyle: "label/L/medium", children: hl(l) }),
996
+ /* @__PURE__ */ x(W, { textStyle: "label/S/regular", color: "fg.muted", children: [
1131
997
  "License: ",
1132
998
  l.license ?? "Unknown"
1133
999
  ] })
1134
1000
  ] }),
1135
- l.copyright ? /* @__PURE__ */ i(L, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
1136
- (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ x(H, { gap: "2xs", children: [
1137
- l.homepageUrl ? /* @__PURE__ */ i(Ue, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1138
- l.sourceUrl ? /* @__PURE__ */ i(Ue, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1001
+ l.copyright ? /* @__PURE__ */ o(W, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
1002
+ (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ x(B, { gap: "2xs", children: [
1003
+ l.homepageUrl ? /* @__PURE__ */ o(ut, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1004
+ l.sourceUrl ? /* @__PURE__ */ o(ut, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1139
1005
  ] }),
1140
- l.attribution ? /* @__PURE__ */ i(j, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ i(L, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
1141
- ] }) }, Qn(l, e));
1006
+ l.attribution ? /* @__PURE__ */ o(V, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ o(W, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
1007
+ ] }) }, pl(l, e));
1142
1008
  }
1143
- const io = (l) => {
1144
- const e = A(4), {
1009
+ const Mi = (l) => {
1010
+ const e = R(4), {
1145
1011
  items: n
1146
1012
  } = l;
1147
1013
  let t;
1148
- e[0] !== n ? (t = n.map(tl), e[0] = n, e[1] = t) : t = e[1];
1149
- let o;
1150
- return e[2] !== t ? (o = /* @__PURE__ */ i(H, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = o) : o = e[3], o;
1014
+ e[0] !== n ? (t = n.map(ml), e[0] = n, e[1] = t) : t = e[1];
1015
+ let i;
1016
+ return e[2] !== t ? (i = /* @__PURE__ */ o(B, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = i) : i = e[3], i;
1151
1017
  };
1152
- function tl(l, e) {
1153
- return /* @__PURE__ */ x(X, { gap: "md", alignItems: "center", children: [
1154
- /* @__PURE__ */ i(j, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ x(X, { gap: "1", alignItems: "center", children: [
1155
- /* @__PURE__ */ i(L, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
1156
- l.description && /* @__PURE__ */ i(Le, { content: l.description, showArrow: !0, children: /* @__PURE__ */ i(ue, { as: an, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1018
+ function ml(l, e) {
1019
+ return /* @__PURE__ */ x(j, { gap: "xs", alignItems: "center", children: [
1020
+ /* @__PURE__ */ o(V, { width: "110px", flexShrink: 0, children: /* @__PURE__ */ x(j, { gap: "1", alignItems: "center", children: [
1021
+ /* @__PURE__ */ o(W, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
1022
+ l.description && /* @__PURE__ */ o(xe, { content: l.description, showArrow: !0, children: /* @__PURE__ */ o(ae, { as: Cn, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1157
1023
  ] }) }),
1158
- /* @__PURE__ */ i(j, { flex: "1", children: l.value })
1024
+ /* @__PURE__ */ o(V, { flex: "1", children: l.value })
1159
1025
  ] }, `${l.label}-${e}`);
1160
1026
  }
1161
- const nl = (l, e) => {
1027
+ const bl = (l, e) => {
1162
1028
  const n = e.trim().toLowerCase();
1163
1029
  return n ? l.filter((t) => [t.label, t.searchText].filter(Boolean).join(" ").toLowerCase().includes(n)) : l;
1164
- }, ll = (l) => {
1165
- const e = A(46), {
1030
+ }, Sl = (l, e) => !l || !e ? !1 : l !== e, xl = (l, e, n) => !l || !e ? n : {
1031
+ items: e.items,
1032
+ filterItems: e.filterItems ?? n.filterItems,
1033
+ showSearch: e.showSearch ?? n.showSearch,
1034
+ searchPlaceholder: e.searchPlaceholder ?? n.searchPlaceholder,
1035
+ emptyState: e.emptyState ?? n.emptyState,
1036
+ contentTestId: e.contentTestId ?? n.contentTestId,
1037
+ closeOnSelect: !1,
1038
+ listId: "parent"
1039
+ }, Xe = {
1040
+ borderColor: "border.muted",
1041
+ boxShadow: "none",
1042
+ outline: "none"
1043
+ }, yl = (l) => {
1044
+ const e = R(48), {
1166
1045
  trigger: n,
1167
1046
  items: t,
1168
- searchPlaceholder: o,
1047
+ searchPlaceholder: i,
1169
1048
  emptyState: s,
1170
- renderItem: r,
1171
- filterItems: a,
1049
+ filterItems: r,
1050
+ listId: a,
1172
1051
  header: c,
1173
1052
  width: d,
1174
1053
  maxListHeight: u,
1175
1054
  showSearch: f,
1176
- closeOnSelect: g,
1055
+ closeOnSelect: p,
1177
1056
  lazyMount: h,
1178
- open: p,
1179
- positioning: m,
1180
- onOpenChange: b,
1181
- onFocusOutside: y,
1182
- contentTestId: v,
1183
- portalled: k
1184
- } = l, _ = a === void 0 ? nl : a, D = d === void 0 ? "260px" : d, T = u === void 0 ? "18rem" : u, P = f === void 0 ? !0 : f, S = g === void 0 ? !0 : g, w = h === void 0 ? !1 : h, C = k === void 0 ? !0 : k, [I, z] = pe(!1), [$, O] = pe(""), M = et(null), N = p ?? I, W = _(t, $);
1185
- let B, G;
1186
- e[0] !== N || e[1] !== P ? (B = () => {
1187
- if (!N || !P)
1057
+ open: g,
1058
+ positioning: S,
1059
+ onOpenChange: m,
1060
+ onFocusOutside: v,
1061
+ contentTestId: C,
1062
+ portalled: k,
1063
+ parentList: y
1064
+ } = l, I = r === void 0 ? bl : r, D = d === void 0 ? "260px" : d, T = u === void 0 ? "18rem" : u, b = f === void 0 ? !0 : f, P = p === void 0 ? !0 : p, w = h === void 0 ? !1 : h, _ = k === void 0 ? !0 : k, L = !!y, [$, z] = ge(!1), [O, G] = ge(""), [H, X] = ge("child"), F = Be(null), A = g ?? $, E = L && H === "parent", M = xl(E, y, {
1065
+ items: t,
1066
+ filterItems: I,
1067
+ showSearch: b,
1068
+ searchPlaceholder: i,
1069
+ emptyState: s,
1070
+ contentTestId: C,
1071
+ closeOnSelect: P,
1072
+ listId: L ? "child" : a ?? ""
1073
+ }), Z = M.filterItems(M.items, O), U = Be(M.listId);
1074
+ Oe(() => {
1075
+ if (!A) {
1076
+ U.current = M.listId;
1188
1077
  return;
1189
- const me = setTimeout(() => M.current?.focus(), 0);
1190
- return () => clearTimeout(me);
1191
- }, G = [N, P], e[0] = N, e[1] = P, e[2] = B, e[3] = G) : (B = e[2], G = e[3]), ze(B, G);
1192
- let R;
1193
- e[4] !== b || e[5] !== p ? (R = (me) => {
1194
- p === void 0 && z(me.open), O(""), b?.(me);
1195
- }, e[4] = b, e[5] = p, e[6] = R) : R = e[6];
1196
- const E = R, V = !!(c && !P), q = ie;
1197
- let Y;
1198
- e[7] !== n ? (Y = /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: n }), e[7] = n, e[8] = Y) : Y = e[8];
1199
- const K = He, Z = !C, J = ie, ee = ie, te = "bg", ne = "0", U = "popover";
1200
- let Q;
1201
- e[9] !== $ || e[10] !== o || e[11] !== P ? (Q = P ? /* @__PURE__ */ i(Gt, { startElement: /* @__PURE__ */ i(cn, { size: 14 }), children: /* @__PURE__ */ i(Nt, { ref: M, borderRight: 0, borderLeft: 0, borderRadius: "0", value: $, placeholder: o, "aria-label": o, autoComplete: "off", onChange: (me) => O(me.target.value), onKeyDown: il }) }) : null, e[9] = $, e[10] = o, e[11] = P, e[12] = Q) : Q = e[12];
1202
- let oe;
1203
- e[13] !== V ? (oe = V ? /* @__PURE__ */ i(ie.Separator, { margin: "0" }) : null, e[13] = V, e[14] = oe) : oe = e[14];
1204
- const se = ye;
1205
- let re;
1206
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
1078
+ }
1079
+ Sl(U.current, M.listId) && G(""), U.current = M.listId;
1080
+ }, [A, M.listId]);
1081
+ let q;
1082
+ e[0] !== M || e[1] !== A ? (q = [A, M.showSearch], e[0] = M, e[1] = A, e[2] = q) : q = e[2], Oe(() => {
1083
+ if (!A || !M.showSearch)
1084
+ return;
1085
+ const be = setTimeout(() => F.current?.focus(), 0);
1086
+ return () => clearTimeout(be);
1087
+ }, q);
1088
+ let J;
1089
+ e[3] !== L || e[4] !== m || e[5] !== g ? (J = (be) => {
1090
+ g === void 0 && z(be.open), G(""), be.open && L && X("child"), m?.(be);
1091
+ }, e[3] = L, e[4] = m, e[5] = g, e[6] = J) : J = e[6];
1092
+ const ee = J;
1093
+ let te;
1094
+ e[7] !== E || e[8] !== y ? (te = (be) => {
1095
+ if (!E || !y)
1096
+ return;
1097
+ const ct = y.items.find((Jt) => Jt.id === be.value);
1098
+ ct && (y.onSelect?.(ct), X("child"));
1099
+ }, e[7] = E, e[8] = y, e[9] = te) : te = e[9];
1100
+ const ne = te;
1101
+ let le;
1102
+ e[10] !== y ? (le = y ? /* @__PURE__ */ o("div", { onPointerDownCapture: vl, onClickCapture: (be) => {
1103
+ be.stopPropagation(), !y.disabled && X(Cl);
1104
+ }, children: /* @__PURE__ */ o(De, { primaryLabel: y.selectedLabel, leftIcon: y.selectedIcon, rightIcon: y.disabled ? void 0 : Fe, isDisabled: y.disabled }) }) : null, e[10] = y, e[11] = le) : le = e[11];
1105
+ const oe = y ? le : c, ce = !!oe && !M.showSearch, de = M.showSearch ? /* @__PURE__ */ o(ln, { startElement: /* @__PURE__ */ o(wn, { size: 14 }), children: /* @__PURE__ */ o(on, { ref: F, borderRight: 0, borderLeft: 0, borderRadius: "0", borderColor: "border.muted", value: O, placeholder: M.searchPlaceholder, "aria-label": M.searchPlaceholder, autoComplete: "off", _hover: Xe, _active: Xe, _focus: Xe, _focusVisible: Xe, onChange: (be) => G(be.target.value), onKeyDown: wl }) }) : null, ue = Y, me = L ? ne : void 0;
1106
+ let ie;
1107
+ e[12] !== n ? (ie = /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: n }), e[12] = n, e[13] = ie) : ie = e[13];
1108
+ const ve = He, N = !_, Q = Y, Me = Y, Qe = "bg", Ge = "0", Ut = "0", Yt = "popover";
1109
+ let _e;
1110
+ e[14] !== ce ? (_e = ce ? /* @__PURE__ */ o(Y.Separator, { margin: "0" }) : null, e[14] = ce, e[15] = _e) : _e = e[15];
1111
+ const Ze = ke;
1112
+ let Le;
1113
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = {
1207
1114
  overscrollBehavior: "contain"
1208
- }, e[15] = re) : re = e[15];
1209
- const ce = W.length > 0 ? W.map((me) => /* @__PURE__ */ i(qt, { children: r(me) }, me.id)) : s;
1210
- let de;
1211
- e[16] !== se || e[17] !== v || e[18] !== T || e[19] !== re || e[20] !== ce ? (de = /* @__PURE__ */ i(se, { maxH: T, "data-testid": v, viewportProps: re, children: ce }), e[16] = se, e[17] = v, e[18] = T, e[19] = re, e[20] = ce, e[21] = de) : de = e[21];
1212
- let ae;
1213
- e[22] !== c || e[23] !== ee.Content || e[24] !== Q || e[25] !== oe || e[26] !== de || e[27] !== D ? (ae = /* @__PURE__ */ x(ee.Content, { w: D, bg: te, p: ne, zIndex: U, children: [
1214
- c,
1215
- Q,
1115
+ }, e[16] = Le) : Le = e[16];
1116
+ const Kt = "2xs", qt = "2xs", et = Z.length > 0 ? Z.map(kl) : M.emptyState;
1117
+ let $e;
1118
+ e[17] !== Ze || e[18] !== M || e[19] !== T || e[20] !== Le || e[21] !== et ? ($e = /* @__PURE__ */ o(Ze, { maxH: T, "data-testid": M.contentTestId, viewportProps: Le, p: Kt, gap: qt, children: et }), e[17] = Ze, e[18] = M, e[19] = T, e[20] = Le, e[21] = et, e[22] = $e) : $e = e[22];
1119
+ let Re;
1120
+ e[23] !== oe || e[24] !== de || e[25] !== Me.Content || e[26] !== _e || e[27] !== $e || e[28] !== D ? (Re = /* @__PURE__ */ x(Me.Content, { w: D, bg: Qe, gap: Ge, p: Ut, zIndex: Yt, children: [
1216
1121
  oe,
1217
- de
1218
- ] }), e[22] = c, e[23] = ee.Content, e[24] = Q, e[25] = oe, e[26] = de, e[27] = D, e[28] = ae) : ae = e[28];
1219
- let ge;
1220
- e[29] !== J.Positioner || e[30] !== ae ? (ge = /* @__PURE__ */ i(J.Positioner, { children: ae }), e[29] = J.Positioner, e[30] = ae, e[31] = ge) : ge = e[31];
1221
- let F;
1222
- e[32] !== K || e[33] !== Z || e[34] !== ge ? (F = /* @__PURE__ */ i(K, { disabled: Z, children: ge }), e[32] = K, e[33] = Z, e[34] = ge, e[35] = F) : F = e[35];
1223
- let le;
1224
- return e[36] !== S || e[37] !== E || e[38] !== w || e[39] !== y || e[40] !== p || e[41] !== m || e[42] !== q.Root || e[43] !== Y || e[44] !== F ? (le = /* @__PURE__ */ x(q.Root, { lazyMount: w, closeOnSelect: S, open: p, positioning: m, onOpenChange: E, onFocusOutside: y, children: [
1225
- Y,
1226
- F
1227
- ] }), e[36] = S, e[37] = E, e[38] = w, e[39] = y, e[40] = p, e[41] = m, e[42] = q.Root, e[43] = Y, e[44] = F, e[45] = le) : le = e[45], le;
1122
+ de,
1123
+ _e,
1124
+ $e
1125
+ ] }), e[23] = oe, e[24] = de, e[25] = Me.Content, e[26] = _e, e[27] = $e, e[28] = D, e[29] = Re) : Re = e[29];
1126
+ let We;
1127
+ e[30] !== Q.Positioner || e[31] !== Re ? (We = /* @__PURE__ */ o(Q.Positioner, { children: Re }), e[30] = Q.Positioner, e[31] = Re, e[32] = We) : We = e[32];
1128
+ let Ee;
1129
+ e[33] !== ve || e[34] !== N || e[35] !== We ? (Ee = /* @__PURE__ */ o(ve, { disabled: N, children: We }), e[33] = ve, e[34] = N, e[35] = We, e[36] = Ee) : Ee = e[36];
1130
+ let Ve;
1131
+ return e[37] !== M || e[38] !== ee || e[39] !== w || e[40] !== v || e[41] !== g || e[42] !== S || e[43] !== ue.Root || e[44] !== me || e[45] !== ie || e[46] !== Ee ? (Ve = /* @__PURE__ */ x(ue.Root, { lazyMount: w, closeOnSelect: M.closeOnSelect, open: g, positioning: S, onOpenChange: ee, onFocusOutside: v, onSelect: me, children: [
1132
+ ie,
1133
+ Ee
1134
+ ] }), e[37] = M, e[38] = ee, e[39] = w, e[40] = v, e[41] = g, e[42] = S, e[43] = ue.Root, e[44] = me, e[45] = ie, e[46] = Ee, e[47] = Ve) : Ve = e[47], Ve;
1228
1135
  };
1229
- function il(l) {
1136
+ function vl(l) {
1230
1137
  return l.stopPropagation();
1231
1138
  }
1232
- const ol = (l) => l === "completed" ? dn : l === "failed" ? un : fn, rl = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : "fg.muted", sl = (l) => {
1233
- const e = A(11), {
1139
+ function Cl(l) {
1140
+ return l === "child" ? "parent" : "child";
1141
+ }
1142
+ function wl(l) {
1143
+ return l.stopPropagation();
1144
+ }
1145
+ function kl(l) {
1146
+ return /* @__PURE__ */ o(fn, { children: /* @__PURE__ */ o(De, { id: l.id, primaryLabel: l.label, secondaryLabel: l.secondaryLabel, tooltipLabel: l.tooltipLabel, leftIcon: l.icon, variant: l.variant, isDisabled: l.isDisabled, isSelected: l.isSelected, onClick: l.onSelect }) }, l.id);
1147
+ }
1148
+ const Il = (l) => l === "completed" ? kn : l === "failed" ? In : l === "disconnected" ? Pn : Tn, Pl = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : l === "disconnected" ? "fg.warning" : "fg.muted", Tl = (l) => {
1149
+ const e = R(11), {
1234
1150
  status: n,
1235
1151
  boxSize: t,
1236
- ariaLabel: o,
1152
+ ariaLabel: i,
1237
1153
  cursor: s,
1238
1154
  onClick: r
1239
- } = l, a = t === void 0 ? "14px" : t, c = o === void 0 ? "Session status" : o;
1155
+ } = l, a = t === void 0 ? "14px" : t, c = i === void 0 ? "Session status" : i;
1240
1156
  let d;
1241
- e[0] !== n ? (d = ol(n), e[0] = n, e[1] = d) : d = e[1];
1157
+ e[0] !== n ? (d = Il(n), e[0] = n, e[1] = d) : d = e[1];
1242
1158
  let u;
1243
- e[2] !== n ? (u = rl(n), e[2] = n, e[3] = u) : u = e[3];
1159
+ e[2] !== n ? (u = Pl(n), e[2] = n, e[3] = u) : u = e[3];
1244
1160
  let f;
1245
- return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== r || e[8] !== d || e[9] !== u ? (f = /* @__PURE__ */ i(ue, { as: d, boxSize: a, color: u, "aria-label": c, cursor: s, onClick: r }), e[4] = c, e[5] = a, e[6] = s, e[7] = r, e[8] = d, e[9] = u, e[10] = f) : f = e[10], f;
1246
- }, al = (l) => {
1247
- const e = A(14), {
1161
+ return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== r || e[8] !== d || e[9] !== u ? (f = /* @__PURE__ */ o(ae, { as: d, boxSize: a, color: u, "aria-label": c, cursor: s, onClick: r }), e[4] = c, e[5] = a, e[6] = s, e[7] = r, e[8] = d, e[9] = u, e[10] = f) : f = e[10], f;
1162
+ }, Dl = (l) => {
1163
+ const e = R(14), {
1248
1164
  action: n
1249
1165
  } = l;
1250
1166
  let t;
1251
1167
  e[0] !== n.menuItems ? (t = n.menuItems ?? [], e[0] = n.menuItems, e[1] = t) : t = e[1];
1252
- let o;
1253
- e[2] !== t ? (o = t.map(cl), e[2] = t, e[3] = o) : o = e[3];
1254
- const s = o;
1168
+ let i;
1169
+ e[2] !== t ? (i = t.map(_l), e[2] = t, e[3] = i) : i = e[3];
1170
+ const s = i;
1255
1171
  let r;
1256
- e[4] !== n.icon || e[5] !== n.label ? (r = /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }), e[4] = n.icon, e[5] = n.label, e[6] = r) : r = e[6];
1172
+ e[4] !== n.icon || e[5] !== n.label ? (r = /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }), e[4] = n.icon, e[5] = n.label, e[6] = r) : r = e[6];
1257
1173
  const a = n.searchPlaceholder ?? "Search…", c = n.emptyMenuLabel ?? "No results found";
1258
1174
  let d;
1259
- e[7] !== c ? (d = /* @__PURE__ */ i(Re, { primaryLabel: c, isDisabled: !0, variant: "compact" }), e[7] = c, e[8] = d) : d = e[8];
1175
+ e[7] !== c ? (d = /* @__PURE__ */ o(De, { primaryLabel: c, isDisabled: !0, variant: "compact" }), e[7] = c, e[8] = d) : d = e[8];
1260
1176
  let u;
1261
- return e[9] !== s || e[10] !== r || e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ i(ll, { trigger: r, items: s, searchPlaceholder: a, emptyState: d, renderItem: dl, onFocusOutside: ul }), e[9] = s, e[10] = r, e[11] = a, e[12] = d, e[13] = u) : u = e[13], u;
1177
+ return e[9] !== s || e[10] !== r || e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ o(yl, { trigger: r, items: s, searchPlaceholder: a, emptyState: d, onFocusOutside: Ll }), e[9] = s, e[10] = r, e[11] = a, e[12] = d, e[13] = u) : u = e[13], u;
1262
1178
  };
1263
- function cl(l) {
1179
+ function _l(l) {
1264
1180
  return {
1265
- ...l,
1266
- searchText: [l.label, l.description].filter(Boolean).join(" ")
1181
+ id: l.id,
1182
+ label: l.label,
1183
+ searchText: [l.label, l.description].filter(Boolean).join(" "),
1184
+ tooltipLabel: l.description,
1185
+ variant: "compact",
1186
+ onSelect: () => l.onAction?.()
1267
1187
  };
1268
1188
  }
1269
- function dl(l) {
1270
- return /* @__PURE__ */ i(Re, { id: l.id, primaryLabel: l.label, tooltipLabel: l.description, variant: "compact", onClick: () => l.onAction?.() });
1271
- }
1272
- function ul(l) {
1189
+ function Ll(l) {
1273
1190
  return l.preventDefault();
1274
1191
  }
1275
- const kt = (l, e) => e.includes(l), fl = (l) => {
1276
- const e = A(20), {
1192
+ const mt = (l) => {
1193
+ const e = R(23), {
1194
+ node: n,
1195
+ expanded: t,
1196
+ hasChildren: i,
1197
+ isDisabled: s
1198
+ } = l;
1199
+ let r;
1200
+ e[0] !== n.icon || e[1] !== n.iconColor ? (r = n.icon ? /* @__PURE__ */ o(V, { color: n.iconColor ?? "fg.muted", flexShrink: 0, children: n.icon }) : null, e[0] = n.icon, e[1] = n.iconColor, e[2] = r) : r = e[2];
1201
+ let a;
1202
+ e[3] !== s || e[4] !== n.label ? (a = typeof n.label == "string" ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: s ? "fg.muted" : "fg", truncate: !0, children: n.label }) : /* @__PURE__ */ o(V, { minW: "0", maxW: "full", overflow: "hidden", children: n.label }), e[3] = s, e[4] = n.label, e[5] = a) : a = e[5];
1203
+ let c;
1204
+ e[6] !== n.indicator ? (c = n.indicator ? /* @__PURE__ */ o(xe, { content: n.indicator.tooltip, disabled: !n.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ o(V, { color: n.indicator.color ?? "fg.muted", flexShrink: 0, children: n.indicator.icon }) }) : null, e[6] = n.indicator, e[7] = c) : c = e[7];
1205
+ let d;
1206
+ e[8] !== t || e[9] !== i ? (d = i ? /* @__PURE__ */ o(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ o(Te, { size: 14, style: {
1207
+ transform: t ? "rotate(90deg)" : "rotate(0deg)",
1208
+ transition: "120ms"
1209
+ } }) }) : null, e[8] = t, e[9] = i, e[10] = d) : d = e[10];
1210
+ let u;
1211
+ e[11] !== a || e[12] !== c || e[13] !== d ? (u = /* @__PURE__ */ x(j, { gap: "1", minW: "0", children: [
1212
+ a,
1213
+ c,
1214
+ d
1215
+ ] }), e[11] = a, e[12] = c, e[13] = d, e[14] = u) : u = e[14];
1216
+ let f;
1217
+ e[15] !== n.description ? (f = n.description ? typeof n.description == "string" ? /* @__PURE__ */ o(W, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: n.description }) : /* @__PURE__ */ o(V, { minW: "0", maxW: "full", overflow: "hidden", children: n.description }) : null, e[15] = n.description, e[16] = f) : f = e[16];
1218
+ let p;
1219
+ e[17] !== u || e[18] !== f ? (p = /* @__PURE__ */ x(B, { gap: "0", minW: "0", flex: "1", children: [
1220
+ u,
1221
+ f
1222
+ ] }), e[17] = u, e[18] = f, e[19] = p) : p = e[19];
1223
+ let h;
1224
+ return e[20] !== r || e[21] !== p ? (h = /* @__PURE__ */ x(j, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1225
+ r,
1226
+ p
1227
+ ] }), e[20] = r, e[21] = p, e[22] = h) : h = e[22], h;
1228
+ }, Nt = (l, e) => e.includes(l), $l = ({
1229
+ sectionId: l,
1230
+ node: e,
1231
+ hasChildren: n,
1232
+ isDisabled: t,
1233
+ isNavigable: i,
1234
+ onNavigate: s,
1235
+ onToggleNode: r
1236
+ }) => {
1237
+ if (!t) {
1238
+ if (n) {
1239
+ r(e.id);
1240
+ return;
1241
+ }
1242
+ i && s?.({
1243
+ sectionId: l,
1244
+ nodeId: e.id,
1245
+ node: e,
1246
+ intent: e.navigationIntent
1247
+ });
1248
+ }
1249
+ }, Rl = (l) => {
1250
+ const e = R(20), {
1277
1251
  action: n,
1278
1252
  sectionId: t,
1279
- nodeId: o
1253
+ nodeId: i
1280
1254
  } = l;
1281
1255
  if (n.menuItems && n.menuItems.length > 0) {
1282
1256
  if (n.menuItems.length >= 8) {
1283
1257
  let f;
1284
- return e[0] !== n ? (f = /* @__PURE__ */ i(al, { action: n }), e[0] = n, e[1] = f) : f = e[1], f;
1258
+ return e[0] !== n ? (f = /* @__PURE__ */ o(Dl, { action: n }), e[0] = n, e[1] = f) : f = e[1], f;
1285
1259
  }
1286
1260
  let a;
1287
- e[2] !== n.icon || e[3] !== n.label ? (a = /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }) }), e[2] = n.icon, e[3] = n.label, e[4] = a) : a = e[4];
1261
+ e[2] !== n.icon || e[3] !== n.label ? (a = /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }) }), e[2] = n.icon, e[3] = n.label, e[4] = a) : a = e[4];
1288
1262
  let c;
1289
- e[5] !== n.menuItems ? (c = n.menuItems.map(hl), e[5] = n.menuItems, e[6] = c) : c = e[6];
1263
+ e[5] !== n.menuItems ? (c = n.menuItems.map(zl), e[5] = n.menuItems, e[6] = c) : c = e[6];
1290
1264
  let d;
1291
- e[7] !== c ? (d = /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "160px", bg: "bg", children: c }) }), e[7] = c, e[8] = d) : d = e[8];
1265
+ e[7] !== c ? (d = /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ o(Y.Content, { minW: "160px", bg: "bg", children: c }) }), e[7] = c, e[8] = d) : d = e[8];
1292
1266
  let u;
1293
- return e[9] !== a || e[10] !== d ? (u = /* @__PURE__ */ x(ie.Root, { children: [
1267
+ return e[9] !== a || e[10] !== d ? (u = /* @__PURE__ */ x(Y.Root, { children: [
1294
1268
  a,
1295
1269
  d
1296
1270
  ] }), e[9] = a, e[10] = d, e[11] = u) : u = e[11], u;
1297
1271
  }
1298
1272
  let s;
1299
- e[12] !== n || e[13] !== o || e[14] !== t ? (s = (a) => {
1273
+ e[12] !== n || e[13] !== i || e[14] !== t ? (s = (a) => {
1300
1274
  a.stopPropagation(), n.onAction?.({
1301
1275
  sectionId: t,
1302
- nodeId: o
1276
+ nodeId: i
1303
1277
  });
1304
- }, e[12] = n, e[13] = o, e[14] = t, e[15] = s) : s = e[15];
1278
+ }, e[12] = n, e[13] = i, e[14] = t, e[15] = s) : s = e[15];
1305
1279
  let r;
1306
- return e[16] !== n.icon || e[17] !== n.label || e[18] !== s ? (r = /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, onClick: s, children: n.icon }), e[16] = n.icon, e[17] = n.label, e[18] = s, e[19] = r) : r = e[19], r;
1307
- }, Je = (l) => {
1308
- const e = A(11), {
1280
+ return e[16] !== n.icon || e[17] !== n.label || e[18] !== s ? (r = /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, onClick: s, children: n.icon }), e[16] = n.icon, e[17] = n.label, e[18] = s, e[19] = r) : r = e[19], r;
1281
+ }, st = (l) => {
1282
+ const e = R(11), {
1309
1283
  sectionId: n,
1310
1284
  nodeId: t,
1311
- actions: o
1285
+ actions: i
1312
1286
  } = l;
1313
- if (o.length === 0)
1287
+ if (i.length === 0)
1314
1288
  return null;
1315
1289
  let s, r;
1316
1290
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
@@ -1321,18 +1295,18 @@ const kt = (l, e) => e.includes(l), fl = (l) => {
1321
1295
  pointerEvents: "auto"
1322
1296
  }, e[0] = s, e[1] = r) : (s = e[0], r = e[1]);
1323
1297
  let a;
1324
- if (e[2] !== o || e[3] !== t || e[4] !== n) {
1298
+ if (e[2] !== i || e[3] !== t || e[4] !== n) {
1325
1299
  let d;
1326
- e[6] !== t || e[7] !== n ? (d = (u) => /* @__PURE__ */ i(fl, { action: u, sectionId: n, nodeId: t }, u.id), e[6] = t, e[7] = n, e[8] = d) : d = e[8], a = o.map(d), e[2] = o, e[3] = t, e[4] = n, e[5] = a;
1300
+ e[6] !== t || e[7] !== n ? (d = (u) => /* @__PURE__ */ o(Rl, { action: u, sectionId: n, nodeId: t }, u.id), e[6] = t, e[7] = n, e[8] = d) : d = e[8], a = i.map(d), e[2] = i, e[3] = t, e[4] = n, e[5] = a;
1327
1301
  } else
1328
1302
  a = e[5];
1329
1303
  let c;
1330
- return e[9] !== a ? (c = /* @__PURE__ */ i(X, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: s, _groupFocusWithin: r, transition: "opacity 120ms ease", onClick: pl, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1331
- }, Pt = (l) => {
1332
- const e = A(63), {
1304
+ return e[9] !== a ? (c = /* @__PURE__ */ o(j, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: s, _groupFocusWithin: r, transition: "opacity 120ms ease", onClick: Al, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1305
+ }, Bt = (l) => {
1306
+ const e = R(46), {
1333
1307
  sectionId: n,
1334
1308
  node: t,
1335
- level: o,
1309
+ level: i,
1336
1310
  expandedNodes: s,
1337
1311
  activeNodeId: r,
1338
1312
  linkComponent: a,
@@ -1340,94 +1314,100 @@ const kt = (l, e) => e.includes(l), fl = (l) => {
1340
1314
  onToggleNode: d
1341
1315
  } = l, u = (t.children?.length ?? 0) > 0;
1342
1316
  let f;
1343
- e[0] !== s || e[1] !== u || e[2] !== t.id ? (f = u && kt(t.id, s), e[0] = s, e[1] = u, e[2] = t.id, e[3] = f) : f = e[3];
1344
- const g = f, h = t.isNavigable || t.navigationIntent !== void 0, p = r === t.id, m = t.disabled === !0, b = o > 0 ? `calc(var(--chakra-spacing-1) + ${o} * var(--chakra-spacing-3))` : void 0, y = !!(a && t.href && h && !u && !m);
1345
- let v;
1346
- e[4] !== u || e[5] !== m || e[6] !== h || e[7] !== t || e[8] !== c || e[9] !== d || e[10] !== n ? (v = () => {
1347
- if (!m) {
1348
- if (u) {
1349
- d(t.id);
1350
- return;
1351
- }
1352
- h && c?.({
1353
- sectionId: n,
1354
- nodeId: t.id,
1355
- node: t,
1356
- intent: t.navigationIntent
1357
- });
1358
- }
1359
- }, e[4] = u, e[5] = m, e[6] = h, e[7] = t, e[8] = c, e[9] = d, e[10] = n, e[11] = v) : v = e[11];
1360
- const k = v;
1361
- let _;
1362
- e[12] !== t.icon ? (_ = t.icon ? /* @__PURE__ */ i(j, { color: "fg.muted", flexShrink: 0, children: t.icon }) : null, e[12] = t.icon, e[13] = _) : _ = e[13];
1363
- const D = m ? "fg.muted" : "fg";
1317
+ e[0] !== s || e[1] !== u || e[2] !== t.id ? (f = u && Nt(t.id, s), e[0] = s, e[1] = u, e[2] = t.id, e[3] = f) : f = e[3];
1318
+ const p = f, h = t.isNavigable || t.navigationIntent !== void 0;
1319
+ let g;
1320
+ e[4] !== r || e[5] !== t.id ? (g = Array.isArray(r) ? r.includes(t.id) : r === t.id, e[4] = r, e[5] = t.id, e[6] = g) : g = e[6];
1321
+ const S = g, m = t.disabled === !0, v = i > 0 ? `calc(var(--chakra-spacing-1) + ${i} * var(--chakra-spacing-3))` : void 0, C = !!(a && t.href && h && !u && !m);
1322
+ let k;
1323
+ e[7] !== u || e[8] !== m || e[9] !== h || e[10] !== t || e[11] !== c || e[12] !== d || e[13] !== n ? (k = () => $l({
1324
+ sectionId: n,
1325
+ node: t,
1326
+ hasChildren: u,
1327
+ isDisabled: m,
1328
+ isNavigable: h,
1329
+ onNavigate: c,
1330
+ onToggleNode: d
1331
+ }), e[7] = u, e[8] = m, e[9] = h, e[10] = t, e[11] = c, e[12] = d, e[13] = n, e[14] = k) : k = e[14];
1332
+ const y = k, I = S ? "bg.active" : "transparent", D = S ? "bg.active" : "bg.hover";
1364
1333
  let T;
1365
- e[14] !== t.label || e[15] !== D ? (T = /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: D, truncate: !0, children: t.label }), e[14] = t.label, e[15] = D, e[16] = T) : T = e[16];
1334
+ e[15] !== D ? (T = {
1335
+ bg: D
1336
+ }, e[15] = D, e[16] = T) : T = e[16];
1337
+ const b = m ? "default" : "pointer";
1366
1338
  let P;
1367
- e[17] !== g || e[18] !== u ? (P = u ? /* @__PURE__ */ i(j, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(Ce, { size: 14, style: {
1368
- transform: g ? "rotate(90deg)" : "rotate(0deg)",
1369
- transition: "120ms"
1370
- } }) }) : null, e[17] = g, e[18] = u, e[19] = P) : P = e[19];
1371
- let S;
1372
- e[20] !== T || e[21] !== P ? (S = /* @__PURE__ */ x(X, { gap: "1", minW: "0", children: [
1373
- T,
1374
- P
1375
- ] }), e[20] = T, e[21] = P, e[22] = S) : S = e[22];
1376
- let w;
1377
- e[23] !== t.description ? (w = t.description ? /* @__PURE__ */ i(L, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[23] = t.description, e[24] = w) : w = e[24];
1378
- let C;
1379
- e[25] !== S || e[26] !== w ? (C = /* @__PURE__ */ x(H, { gap: "0", minW: "0", flex: "1", children: [
1380
- S,
1381
- w
1382
- ] }), e[25] = S, e[26] = w, e[27] = C) : C = e[27];
1383
- let I;
1384
- e[28] !== _ || e[29] !== C ? (I = /* @__PURE__ */ x(X, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1385
- _,
1386
- C
1387
- ] }), e[28] = _, e[29] = C, e[30] = I) : I = e[30];
1388
- const z = I, $ = p ? "bg.muted" : "transparent", O = p ? "bg.muted" : "bg.subtle";
1389
- let M;
1390
- e[31] !== O ? (M = {
1391
- bg: O
1392
- }, e[31] = O, e[32] = M) : M = e[32];
1393
- const N = m ? "default" : "pointer";
1394
- let W;
1395
- e[33] !== p || e[34] !== b || e[35] !== $ || e[36] !== M || e[37] !== N ? (W = {
1339
+ e[17] !== S || e[18] !== v || e[19] !== I || e[20] !== T || e[21] !== b ? (P = {
1396
1340
  className: "group",
1397
1341
  role: "option",
1398
- "aria-selected": p,
1342
+ "aria-selected": S,
1399
1343
  justify: "space-between",
1400
1344
  align: "center",
1345
+ w: "full",
1346
+ minW: "0",
1347
+ maxW: "full",
1401
1348
  borderRadius: "xs",
1402
1349
  px: "1",
1403
1350
  py: "2xs",
1404
- pl: b,
1405
- bg: $,
1406
- _hover: M,
1407
- cursor: N,
1351
+ pl: v,
1352
+ bg: I,
1353
+ _hover: T,
1354
+ cursor: b,
1408
1355
  overflow: "hidden"
1409
- }, e[33] = p, e[34] = b, e[35] = $, e[36] = M, e[37] = N, e[38] = W) : W = e[38];
1410
- const B = W, G = t.children ? "0" : "2xs";
1411
- let R;
1412
- e[39] !== a || e[40] !== y || e[41] !== k || e[42] !== t.actions || e[43] !== t.href || e[44] !== t.id || e[45] !== z || e[46] !== B || e[47] !== n ? (R = y && a && t.href ? /* @__PURE__ */ i(a, { to: t.href, children: /* @__PURE__ */ x(X, { ...B, onClick: k, children: [
1413
- z,
1414
- /* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1415
- ] }) }) : /* @__PURE__ */ x(X, { ...B, onClick: k, children: [
1416
- z,
1417
- /* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1418
- ] }), e[39] = a, e[40] = y, e[41] = k, e[42] = t.actions, e[43] = t.href, e[44] = t.id, e[45] = z, e[46] = B, e[47] = n, e[48] = R) : R = e[48];
1419
- let E;
1420
- e[49] !== a || e[50] !== r || e[51] !== g || e[52] !== s || e[53] !== o || e[54] !== t.children || e[55] !== c || e[56] !== d || e[57] !== n ? (E = g ? t.children?.map((q) => /* @__PURE__ */ i(Pt, { sectionId: n, node: q, level: o + 1, expandedNodes: s, activeNodeId: r, linkComponent: a, onNavigate: c, onToggleNode: d }, q.id)) : null, e[49] = a, e[50] = r, e[51] = g, e[52] = s, e[53] = o, e[54] = t.children, e[55] = c, e[56] = d, e[57] = n, e[58] = E) : E = e[58];
1421
- let V;
1422
- return e[59] !== G || e[60] !== R || e[61] !== E ? (V = /* @__PURE__ */ x(H, { gap: G, children: [
1423
- R,
1424
- E
1425
- ] }), e[59] = G, e[60] = R, e[61] = E, e[62] = V) : V = e[62], V;
1426
- }, gl = (l) => {
1427
- const e = A(19), {
1356
+ }, e[17] = S, e[18] = v, e[19] = I, e[20] = T, e[21] = b, e[22] = P) : P = e[22];
1357
+ const w = P;
1358
+ let _;
1359
+ e[23] !== a || e[24] !== C || e[25] !== p || e[26] !== y || e[27] !== u || e[28] !== m || e[29] !== t || e[30] !== w || e[31] !== n ? (_ = C && a && t.href ? /* @__PURE__ */ o(a, { to: t.href, children: /* @__PURE__ */ x(j, { ...w, onClick: y, children: [
1360
+ /* @__PURE__ */ o(mt, { node: t, expanded: p, hasChildren: u, isDisabled: m }),
1361
+ /* @__PURE__ */ o(st, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1362
+ ] }) }) : /* @__PURE__ */ x(j, { ...w, onClick: y, children: [
1363
+ /* @__PURE__ */ o(mt, { node: t, expanded: p, hasChildren: u, isDisabled: m }),
1364
+ /* @__PURE__ */ o(st, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1365
+ ] }), e[23] = a, e[24] = C, e[25] = p, e[26] = y, e[27] = u, e[28] = m, e[29] = t, e[30] = w, e[31] = n, e[32] = _) : _ = e[32];
1366
+ let L;
1367
+ e[33] !== a || e[34] !== r || e[35] !== p || e[36] !== s || e[37] !== i || e[38] !== t.children || e[39] !== c || e[40] !== d || e[41] !== n ? (L = p ? t.children?.map((z) => /* @__PURE__ */ o(Bt, { sectionId: n, node: z, level: i + 1, expandedNodes: s, activeNodeId: r, linkComponent: a, onNavigate: c, onToggleNode: d }, z.id)) : null, e[33] = a, e[34] = r, e[35] = p, e[36] = s, e[37] = i, e[38] = t.children, e[39] = c, e[40] = d, e[41] = n, e[42] = L) : L = e[42];
1368
+ let $;
1369
+ return e[43] !== _ || e[44] !== L ? ($ = /* @__PURE__ */ x(B, { gap: "1px", w: "full", minW: "0", maxW: "full", children: [
1370
+ _,
1371
+ L
1372
+ ] }), e[43] = _, e[44] = L, e[45] = $) : $ = e[45], $;
1373
+ }, Wl = (l) => {
1374
+ const e = R(21), {
1375
+ section: n,
1376
+ collapsible: t,
1377
+ expanded: i,
1378
+ onToggle: s
1379
+ } = l, r = t ? "pointer" : "default";
1380
+ let a;
1381
+ e[0] !== t ? (a = t ? {
1382
+ bg: "bg.hover"
1383
+ } : void 0, e[0] = t, e[1] = a) : a = e[1];
1384
+ const c = t ? s : void 0;
1385
+ let d;
1386
+ e[2] !== n.label ? (d = /* @__PURE__ */ o(W, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: n.label }), e[2] = n.label, e[3] = d) : d = e[3];
1387
+ let u;
1388
+ e[4] !== t || e[5] !== i ? (u = t ? /* @__PURE__ */ o(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ o(Te, { size: 14, style: {
1389
+ transform: i ? "rotate(90deg)" : "rotate(0deg)",
1390
+ transition: "120ms"
1391
+ } }) }) : null, e[4] = t, e[5] = i, e[6] = u) : u = e[6];
1392
+ let f;
1393
+ e[7] !== d || e[8] !== u ? (f = /* @__PURE__ */ x(j, { gap: "1", flex: "1", minW: "0", children: [
1394
+ d,
1395
+ u
1396
+ ] }), e[7] = d, e[8] = u, e[9] = f) : f = e[9];
1397
+ let p;
1398
+ e[10] !== n.actions ? (p = n.actions ?? [], e[10] = n.actions, e[11] = p) : p = e[11];
1399
+ let h;
1400
+ e[12] !== n.id || e[13] !== p ? (h = /* @__PURE__ */ o(st, { sectionId: n.id, actions: p }), e[12] = n.id, e[13] = p, e[14] = h) : h = e[14];
1401
+ let g;
1402
+ return e[15] !== r || e[16] !== a || e[17] !== c || e[18] !== f || e[19] !== h ? (g = /* @__PURE__ */ x(j, { className: "group", justify: "space-between", align: "center", w: "full", minW: "0", maxW: "full", px: "1", py: "2xs", minH: "7", cursor: r, borderRadius: "xs", _hover: a, onClick: c, children: [
1403
+ f,
1404
+ h
1405
+ ] }), e[15] = r, e[16] = a, e[17] = c, e[18] = f, e[19] = h, e[20] = g) : g = e[20], g;
1406
+ }, El = (l) => {
1407
+ const e = R(19), {
1428
1408
  sections: n,
1429
1409
  expandedSections: t,
1430
- expandedNodes: o,
1410
+ expandedNodes: i,
1431
1411
  activeNodeId: s,
1432
1412
  linkComponent: r,
1433
1413
  onNavigate: a,
@@ -1435,254 +1415,301 @@ const kt = (l, e) => e.includes(l), fl = (l) => {
1435
1415
  onToggleNode: d
1436
1416
  } = l;
1437
1417
  let u;
1438
- if (e[0] !== s || e[1] !== o || e[2] !== t || e[3] !== r || e[4] !== a || e[5] !== d || e[6] !== c || e[7] !== n) {
1439
- let g;
1440
- e[9] !== s || e[10] !== o || e[11] !== t || e[12] !== r || e[13] !== a || e[14] !== d || e[15] !== c ? (g = (h) => {
1441
- const p = h.label ? kt(h.id, t) : !0;
1442
- return /* @__PURE__ */ x(H, { gap: "0", "data-testid": `sidebar-section-${h.id}`, children: [
1443
- h.label ? /* @__PURE__ */ x(X, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
1444
- bg: "bg.subtle"
1445
- }, onClick: () => c(h.id), children: [
1446
- /* @__PURE__ */ x(X, { gap: "1", flex: "1", minW: "0", children: [
1447
- /* @__PURE__ */ i(L, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: h.label }),
1448
- /* @__PURE__ */ i(j, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(Ce, { size: 14, style: {
1449
- transform: p ? "rotate(90deg)" : "rotate(0deg)",
1450
- transition: "120ms"
1451
- } }) })
1452
- ] }),
1453
- /* @__PURE__ */ i(Je, { sectionId: h.id, actions: h.actions ?? [] })
1454
- ] }) : null,
1455
- p ? h.nodes.length > 0 ? h.nodes.map((m) => /* @__PURE__ */ i(Pt, { sectionId: h.id, node: m, level: 0, expandedNodes: o, activeNodeId: s, linkComponent: r, onNavigate: a, onToggleNode: d }, m.id)) : h.emptyState ?? null : null
1418
+ if (e[0] !== s || e[1] !== i || e[2] !== t || e[3] !== r || e[4] !== a || e[5] !== d || e[6] !== c || e[7] !== n) {
1419
+ let p;
1420
+ e[9] !== s || e[10] !== i || e[11] !== t || e[12] !== r || e[13] !== a || e[14] !== d || e[15] !== c ? (p = (h) => {
1421
+ const g = h.collapsible !== !1 && h.label !== void 0, S = g ? Nt(h.id, t) : !0;
1422
+ return /* @__PURE__ */ x(B, { gap: "0", w: "full", minW: "0", maxW: "full", "data-testid": `sidebar-section-${h.id}`, children: [
1423
+ h.label ? /* @__PURE__ */ o(Wl, { section: h, collapsible: g, expanded: S, onToggle: () => c(h.id) }) : null,
1424
+ S ? h.nodes.length > 0 ? /* @__PURE__ */ o(B, { gap: "1px", w: "full", minW: "0", maxW: "full", children: h.nodes.map((m) => /* @__PURE__ */ o(Bt, { sectionId: h.id, node: m, level: 0, expandedNodes: i, activeNodeId: s, linkComponent: r, onNavigate: a, onToggleNode: d }, m.id)) }) : h.emptyState ?? null : null
1456
1425
  ] }, h.id);
1457
- }, e[9] = s, e[10] = o, e[11] = t, e[12] = r, e[13] = a, e[14] = d, e[15] = c, e[16] = g) : g = e[16], u = n.map(g), e[0] = s, e[1] = o, e[2] = t, e[3] = r, e[4] = a, e[5] = d, e[6] = c, e[7] = n, e[8] = u;
1426
+ }, e[9] = s, e[10] = i, e[11] = t, e[12] = r, e[13] = a, e[14] = d, e[15] = c, e[16] = p) : p = e[16], u = n.map(p), e[0] = s, e[1] = i, e[2] = t, e[3] = r, e[4] = a, e[5] = d, e[6] = c, e[7] = n, e[8] = u;
1458
1427
  } else
1459
1428
  u = e[8];
1460
1429
  let f;
1461
- return e[17] !== u ? (f = /* @__PURE__ */ i(H, { role: "listbox", gap: "md", p: "md", children: u }), e[17] = u, e[18] = f) : f = e[18], f;
1430
+ return e[17] !== u ? (f = /* @__PURE__ */ o(B, { role: "listbox", gap: "md", w: "full", minW: "0", maxW: "full", overflowX: "hidden", children: u }), e[17] = u, e[18] = f) : f = e[18], f;
1462
1431
  };
1463
- function hl(l) {
1464
- return /* @__PURE__ */ i(Le, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ x(ie.Item, { value: l.id, onClick: () => l.onAction?.(), children: [
1465
- l.icon ? /* @__PURE__ */ i(j, { mr: "2", children: l.icon }) : null,
1432
+ function zl(l) {
1433
+ return /* @__PURE__ */ o(xe, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ x(Y.Item, { value: l.id, onClick: () => l.onAction?.(), children: [
1434
+ l.icon ? /* @__PURE__ */ o(V, { mr: "2", children: l.icon }) : null,
1466
1435
  l.label
1467
1436
  ] }) }, l.id);
1468
1437
  }
1469
- function pl(l) {
1438
+ function Al(l) {
1470
1439
  return l.stopPropagation();
1471
1440
  }
1472
- const st = {
1441
+ const bt = {
1473
1442
  open: !0,
1474
1443
  expandedSections: [],
1475
1444
  expandedNodes: []
1476
- }, ml = "pstdio/ui/sidebar-next", bl = (l) => `${ml}/${l}`, xl = () => ({
1445
+ }, Ol = "pstdio/ui/sidebar", Ml = (l) => `${Ol}/${l}`, Gl = () => ({
1477
1446
  getItem: () => null,
1478
1447
  setItem: () => {
1479
1448
  },
1480
1449
  removeItem: () => {
1481
1450
  }
1482
- }), at = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], ct = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), Sl = (l) => ({
1451
+ }), St = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], xt = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), Nl = (l) => ({
1483
1452
  open: l.open,
1484
1453
  expandedSections: l.expandedSections,
1485
1454
  expandedNodes: l.expandedNodes
1486
- }), yl = (l) => {
1455
+ }), Bl = (l) => {
1487
1456
  const {
1488
1457
  storageKey: e,
1489
1458
  initialState: n
1490
1459
  } = l, t = {
1491
- ...st,
1460
+ ...bt,
1492
1461
  ...n
1493
1462
  };
1494
- return vt()(St((o) => ({
1463
+ return zt()(Wt((i) => ({
1495
1464
  ...t,
1496
- openSidebar: () => o((s) => ({
1465
+ openSidebar: () => i((s) => ({
1497
1466
  ...s,
1498
1467
  open: !0
1499
1468
  })),
1500
- closeSidebar: () => o((s) => ({
1469
+ closeSidebar: () => i((s) => ({
1501
1470
  ...s,
1502
1471
  open: !1
1503
1472
  })),
1504
- toggleSidebar: () => o((s) => ({
1473
+ toggleSidebar: () => i((s) => ({
1505
1474
  ...s,
1506
1475
  open: !s.open
1507
1476
  })),
1508
- toggleSection: (s) => o((r) => ({
1477
+ toggleSection: (s) => i((r) => ({
1509
1478
  ...r,
1510
- expandedSections: at(r.expandedSections, s)
1479
+ expandedSections: St(r.expandedSections, s)
1511
1480
  })),
1512
- toggleNode: (s) => o((r) => ({
1481
+ toggleNode: (s) => i((r) => ({
1513
1482
  ...r,
1514
- expandedNodes: at(r.expandedNodes, s)
1483
+ expandedNodes: St(r.expandedNodes, s)
1515
1484
  })),
1516
- setSectionExpanded: (s, r) => o((a) => ({
1485
+ setSectionExpanded: (s, r) => i((a) => ({
1517
1486
  ...a,
1518
- expandedSections: ct(a.expandedSections, s, r)
1487
+ expandedSections: xt(a.expandedSections, s, r)
1519
1488
  })),
1520
- setNodeExpanded: (s, r) => o((a) => ({
1489
+ setNodeExpanded: (s, r) => i((a) => ({
1521
1490
  ...a,
1522
- expandedNodes: ct(a.expandedNodes, s, r)
1491
+ expandedNodes: xt(a.expandedNodes, s, r)
1523
1492
  })),
1524
- reset: () => o(st)
1493
+ reset: () => i(bt)
1525
1494
  }), {
1526
- name: bl(e),
1527
- storage: yt(() => typeof globalThis.localStorage > "u" ? xl() : globalThis.localStorage),
1528
- partialize: Sl
1495
+ name: Ml(e),
1496
+ storage: Et(() => typeof globalThis.localStorage > "u" ? Gl() : globalThis.localStorage),
1497
+ partialize: Nl
1529
1498
  }));
1530
- }, dt = /* @__PURE__ */ new Map(), vl = (l) => {
1531
- const e = dt.get(l);
1532
- if (e)
1533
- return e;
1534
- const n = yl({
1535
- storageKey: l
1499
+ }, yt = /* @__PURE__ */ new Map(), Hl = (l, e) => {
1500
+ const n = yt.get(l);
1501
+ if (n)
1502
+ return n;
1503
+ const t = Bl({
1504
+ storageKey: l,
1505
+ initialState: e
1536
1506
  });
1537
- return dt.set(l, n), n;
1538
- }, $e = (l, e) => {
1539
- const n = A(2);
1540
- let t;
1541
- return n[0] !== l ? (t = vl(l), n[0] = l, n[1] = t) : t = n[1], xt(t, e);
1542
- }, Cl = (l) => {
1543
- const e = A(2), {
1507
+ return yt.set(l, t), t;
1508
+ }, Ae = (l, e, n) => {
1509
+ const t = R(3);
1510
+ let i;
1511
+ return t[0] !== n || t[1] !== l ? (i = Hl(l, n), t[0] = n, t[1] = l, t[2] = i) : i = t[2], Rt(i, e);
1512
+ }, Fl = (l) => {
1513
+ const e = R(2), {
1544
1514
  children: n
1545
1515
  } = l;
1546
1516
  if (!n)
1547
1517
  return null;
1548
1518
  let t;
1549
- return e[0] !== n ? (t = /* @__PURE__ */ i(j, { px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: n }), e[0] = n, e[1] = t) : t = e[1], t;
1550
- }, wl = (l) => {
1551
- const e = A(7), {
1519
+ return e[0] !== n ? (t = /* @__PURE__ */ o(V, { px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: n }), e[0] = n, e[1] = t) : t = e[1], t;
1520
+ }, Vl = (l) => {
1521
+ const e = R(7), {
1552
1522
  children: n,
1553
1523
  onClose: t
1554
1524
  } = l;
1555
- let o;
1556
- e[0] !== n ? (o = /* @__PURE__ */ i(X, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = o) : o = e[1];
1525
+ let i;
1526
+ e[0] !== n ? (i = /* @__PURE__ */ o(j, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = i) : i = e[1];
1557
1527
  let s;
1558
- e[2] !== t ? (s = t ? /* @__PURE__ */ i(Se, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ i(gn, { size: 16 }) }) : null, e[2] = t, e[3] = s) : s = e[3];
1528
+ e[2] !== t ? (s = t ? /* @__PURE__ */ o(he, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ o(Dn, { size: 16 }) }) : null, e[2] = t, e[3] = s) : s = e[3];
1559
1529
  let r;
1560
- return e[4] !== o || e[5] !== s ? (r = /* @__PURE__ */ x(X, { justify: "space-between", align: "center", px: "4", py: "3", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1561
- o,
1530
+ return e[4] !== i || e[5] !== s ? (r = /* @__PURE__ */ x(j, { "data-testid": "sidebar-header", justify: "space-between", align: "center", minH: Gt, p: "2xs", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1531
+ i,
1562
1532
  s
1563
- ] }), e[4] = o, e[5] = s, e[6] = r) : r = e[6], r;
1564
- }, oo = (l) => {
1565
- const e = A(24), {
1533
+ ] }), e[4] = i, e[5] = s, e[6] = r) : r = e[6], r;
1534
+ }, Gi = (l) => {
1535
+ const e = R(28), {
1566
1536
  storageKey: n,
1567
1537
  sections: t,
1568
- activeNodeId: o,
1538
+ activeNodeId: i,
1569
1539
  header: s,
1570
1540
  footer: r,
1571
1541
  width: a,
1572
1542
  closable: c,
1573
1543
  emptyLabel: d,
1574
- linkComponent: u,
1575
- onNavigate: f,
1576
- onOpenChange: g
1577
- } = l, h = a === void 0 ? "240px" : a, p = c === void 0 ? !0 : c, m = d === void 0 ? "No items available." : d, b = $e(n, Il), y = $e(n, kl), v = $e(n, Pl), k = $e(n, Tl), _ = $e(n, Dl), D = $e(n, _l);
1578
- let T, P;
1579
- if (e[0] !== g || e[1] !== b ? (T = () => {
1580
- g?.(b);
1581
- }, P = [g, b], e[0] = g, e[1] = b, e[2] = T, e[3] = P) : (T = e[2], P = e[3]), ze(T, P), !b && p)
1544
+ defaultExpandedSections: u,
1545
+ linkComponent: f,
1546
+ onNavigate: p,
1547
+ onOpenChange: h
1548
+ } = l, g = a === void 0 ? "240px" : a, S = c === void 0 ? !0 : c, m = d === void 0 ? "No items available." : d;
1549
+ let v;
1550
+ e[0] !== u ? (v = u ? {
1551
+ expandedSections: u
1552
+ } : void 0, e[0] = u, e[1] = v) : v = e[1];
1553
+ const C = v, k = Ae(n, jl, C), y = Ae(n, Xl, C), I = Ae(n, Ul, C), D = Ae(n, Yl, C), T = Ae(n, Kl, C), b = Ae(n, ql, C);
1554
+ let P, w;
1555
+ if (e[2] !== h || e[3] !== k ? (P = () => {
1556
+ h?.(k);
1557
+ }, w = [h, k], e[2] = h, e[3] = k, e[4] = P, e[5] = w) : (P = e[4], w = e[5]), Oe(P, w), !k && S)
1582
1558
  return null;
1583
- const S = p ? k : void 0;
1584
- let w;
1585
- e[4] !== s || e[5] !== S ? (w = /* @__PURE__ */ i(wl, { onClose: S, children: s }), e[4] = s, e[5] = S, e[6] = w) : w = e[6];
1586
- let C;
1587
- e[7] !== o || e[8] !== m || e[9] !== v || e[10] !== y || e[11] !== u || e[12] !== f || e[13] !== t || e[14] !== D || e[15] !== _ ? (C = /* @__PURE__ */ i(ye, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ i(gl, { sections: t, expandedSections: y, expandedNodes: v, activeNodeId: o, linkComponent: u, onNavigate: f, onToggleSection: _, onToggleNode: D }) }), e[7] = o, e[8] = m, e[9] = v, e[10] = y, e[11] = u, e[12] = f, e[13] = t, e[14] = D, e[15] = _, e[16] = C) : C = e[16];
1588
- let I;
1589
- e[17] !== r ? (I = /* @__PURE__ */ i(Cl, { children: r }), e[17] = r, e[18] = I) : I = e[18];
1590
- let z;
1591
- return e[19] !== w || e[20] !== C || e[21] !== I || e[22] !== h ? (z = /* @__PURE__ */ x(Ie, { as: "aside", "data-testid": "sidebar", direction: "column", h: "100%", w: h, minW: h, maxW: h, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1592
- w,
1593
- C,
1594
- I
1595
- ] }), e[19] = w, e[20] = C, e[21] = I, e[22] = h, e[23] = z) : z = e[23], z;
1559
+ const _ = S ? D : void 0;
1560
+ let L;
1561
+ e[6] !== s || e[7] !== _ ? (L = /* @__PURE__ */ o(Vl, { onClose: _, children: s }), e[6] = s, e[7] = _, e[8] = L) : L = e[8];
1562
+ let $, z;
1563
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
1564
+ display: "block",
1565
+ style: {
1566
+ overflowX: "hidden"
1567
+ }
1568
+ }, z = {
1569
+ style: {
1570
+ minWidth: "100%",
1571
+ width: "100%"
1572
+ }
1573
+ }, e[9] = $, e[10] = z) : ($ = e[9], z = e[10]);
1574
+ let O;
1575
+ e[11] !== i || e[12] !== m || e[13] !== I || e[14] !== y || e[15] !== f || e[16] !== p || e[17] !== t || e[18] !== b || e[19] !== T ? (O = /* @__PURE__ */ o(ke, { flex: "1", px: "xs", mt: "lg", viewportProps: $, contentProps: z, children: /* @__PURE__ */ o(V, { w: "full", minW: "0", children: t.length === 0 ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ o(El, { sections: t, expandedSections: y, expandedNodes: I, activeNodeId: i, linkComponent: f, onNavigate: p, onToggleSection: T, onToggleNode: b }) }) }), e[11] = i, e[12] = m, e[13] = I, e[14] = y, e[15] = f, e[16] = p, e[17] = t, e[18] = b, e[19] = T, e[20] = O) : O = e[20];
1576
+ let G;
1577
+ e[21] !== r ? (G = /* @__PURE__ */ o(Fl, { children: r }), e[21] = r, e[22] = G) : G = e[22];
1578
+ let H;
1579
+ return e[23] !== O || e[24] !== G || e[25] !== L || e[26] !== g ? (H = /* @__PURE__ */ x(fe, { as: "aside", "data-testid": "sidebar", direction: "column", h: "100%", w: g, minW: g, maxW: g, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1580
+ L,
1581
+ O,
1582
+ G
1583
+ ] }), e[23] = O, e[24] = G, e[25] = L, e[26] = g, e[27] = H) : H = e[27], H;
1596
1584
  };
1597
- function Il(l) {
1585
+ function jl(l) {
1598
1586
  return l.open;
1599
1587
  }
1600
- function kl(l) {
1588
+ function Xl(l) {
1601
1589
  return l.expandedSections;
1602
1590
  }
1603
- function Pl(l) {
1591
+ function Ul(l) {
1604
1592
  return l.expandedNodes;
1605
1593
  }
1606
- function Tl(l) {
1594
+ function Yl(l) {
1607
1595
  return l.closeSidebar;
1608
1596
  }
1609
- function Dl(l) {
1597
+ function Kl(l) {
1610
1598
  return l.toggleSection;
1611
1599
  }
1612
- function _l(l) {
1600
+ function ql(l) {
1613
1601
  return l.toggleNode;
1614
1602
  }
1615
- const ro = Ze.forwardRef(function(e, n) {
1616
- const t = A(32);
1617
- let o, s, r, a, c, d, u;
1603
+ const Ni = (l) => {
1604
+ const e = R(19), {
1605
+ name: n,
1606
+ projectsLabel: t,
1607
+ themeModeLabel: i,
1608
+ isDarkMode: s,
1609
+ onSelectProjects: r,
1610
+ onToggleThemePreference: a
1611
+ } = l;
1612
+ let c;
1613
+ e[0] !== n ? (c = /* @__PURE__ */ x(j, { gap: "2", minW: "0", flex: "1", children: [
1614
+ /* @__PURE__ */ o(ft.Root, { size: "2xs", children: /* @__PURE__ */ o(ft.Fallback, { name: n }) }),
1615
+ /* @__PURE__ */ o(W, { textStyle: "label/S/medium", truncate: !0, children: n })
1616
+ ] }), e[0] = n, e[1] = c) : c = e[1];
1617
+ let d;
1618
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ o(Fe, { size: 14 }), e[2] = d) : d = e[2];
1619
+ let u;
1620
+ e[3] !== c ? (u = /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ x(pe, { variant: "ghost", size: "sm", width: "full", justifyContent: "flex-start", children: [
1621
+ c,
1622
+ d
1623
+ ] }) }), e[3] = c, e[4] = u) : u = e[4];
1624
+ let f;
1625
+ e[5] !== r || e[6] !== t ? (f = /* @__PURE__ */ o(De, { onClick: r, primaryLabel: t, leftIcon: $n }), e[5] = r, e[6] = t, e[7] = f) : f = e[7];
1626
+ let p;
1627
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(Y.Separator, {}), e[8] = p) : p = e[8];
1628
+ const h = s ? _n : Ln;
1629
+ let g;
1630
+ e[9] !== a || e[10] !== h || e[11] !== i ? (g = /* @__PURE__ */ o(De, { onClick: a, primaryLabel: i, leftIcon: h }), e[9] = a, e[10] = h, e[11] = i, e[12] = g) : g = e[12];
1631
+ let S;
1632
+ e[13] !== f || e[14] !== g ? (S = /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ x(Y.Content, { minW: "240px", bg: "bg", children: [
1633
+ f,
1634
+ p,
1635
+ g
1636
+ ] }) }), e[13] = f, e[14] = g, e[15] = S) : S = e[15];
1637
+ let m;
1638
+ return e[16] !== u || e[17] !== S ? (m = /* @__PURE__ */ x(Y.Root, { children: [
1639
+ u,
1640
+ S
1641
+ ] }), e[16] = u, e[17] = S, e[18] = m) : m = e[18], m;
1642
+ }, Bi = at.forwardRef(function(e, n) {
1643
+ const t = R(32);
1644
+ let i, s, r, a, c, d, u;
1618
1645
  t[0] !== e ? ({
1619
1646
  inputProps: s,
1620
- children: o,
1647
+ children: i,
1621
1648
  rootRef: a,
1622
1649
  trackLabel: u,
1623
1650
  thumbLabel: d,
1624
1651
  disabled: c,
1625
1652
  ...r
1626
- } = e, t[0] = e, t[1] = o, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = d, t[7] = u) : (o = t[1], s = t[2], r = t[3], a = t[4], c = t[5], d = t[6], u = t[7]);
1627
- const f = c === void 0 ? !1 : c, g = f ? "not-allowed" : "pointer";
1653
+ } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = d, t[7] = u) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5], d = t[6], u = t[7]);
1654
+ const f = c === void 0 ? !1 : c, p = f ? "not-allowed" : "pointer";
1628
1655
  let h;
1629
- t[8] !== s || t[9] !== n ? (h = /* @__PURE__ */ i(Te.HiddenInput, { ref: n, ...s }), t[8] = s, t[9] = n, t[10] = h) : h = t[10];
1630
- let p;
1631
- t[11] !== d ? (p = d && /* @__PURE__ */ i(Te.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = p) : p = t[12];
1656
+ t[8] !== s || t[9] !== n ? (h = /* @__PURE__ */ o(Ie.HiddenInput, { ref: n, ...s }), t[8] = s, t[9] = n, t[10] = h) : h = t[10];
1657
+ let g;
1658
+ t[11] !== d ? (g = d && /* @__PURE__ */ o(Ie.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = g) : g = t[12];
1659
+ let S;
1660
+ t[13] !== g ? (S = /* @__PURE__ */ o(Ie.Thumb, { borderRadius: "full", children: g }), t[13] = g, t[14] = S) : S = t[14];
1632
1661
  let m;
1633
- t[13] !== p ? (m = /* @__PURE__ */ i(Te.Thumb, { borderRadius: "full", children: p }), t[13] = p, t[14] = m) : m = t[14];
1634
- let b;
1635
- t[15] !== u ? (b = u && /* @__PURE__ */ i(Te.Indicator, { fallback: u.off, children: u.on }), t[15] = u, t[16] = b) : b = t[16];
1636
- let y;
1637
- t[17] !== g || t[18] !== m || t[19] !== b ? (y = /* @__PURE__ */ x(Te.Control, { borderRadius: "md", cursor: g, children: [
1638
- m,
1639
- b
1640
- ] }), t[17] = g, t[18] = m, t[19] = b, t[20] = y) : y = t[20];
1662
+ t[15] !== u ? (m = u && /* @__PURE__ */ o(Ie.Indicator, { fallback: u.off, children: u.on }), t[15] = u, t[16] = m) : m = t[16];
1641
1663
  let v;
1642
- t[21] !== o || t[22] !== g ? (v = o != null && /* @__PURE__ */ i(Te.Label, { cursor: g, children: o }), t[21] = o, t[22] = g, t[23] = v) : v = t[23];
1664
+ t[17] !== p || t[18] !== S || t[19] !== m ? (v = /* @__PURE__ */ x(Ie.Control, { borderRadius: "md", cursor: p, children: [
1665
+ S,
1666
+ m
1667
+ ] }), t[17] = p, t[18] = S, t[19] = m, t[20] = v) : v = t[20];
1668
+ let C;
1669
+ t[21] !== i || t[22] !== p ? (C = i != null && /* @__PURE__ */ o(Ie.Label, { cursor: p, children: i }), t[21] = i, t[22] = p, t[23] = C) : C = t[23];
1643
1670
  let k;
1644
- return t[24] !== f || t[25] !== g || t[26] !== r || t[27] !== a || t[28] !== h || t[29] !== y || t[30] !== v ? (k = /* @__PURE__ */ x(Te.Root, { ref: a, disabled: f, cursor: g, ...r, children: [
1671
+ return t[24] !== f || t[25] !== p || t[26] !== r || t[27] !== a || t[28] !== h || t[29] !== v || t[30] !== C ? (k = /* @__PURE__ */ x(Ie.Root, { ref: a, disabled: f, cursor: p, ...r, children: [
1645
1672
  h,
1646
- y,
1647
- v
1648
- ] }), t[24] = f, t[25] = g, t[26] = r, t[27] = a, t[28] = h, t[29] = y, t[30] = v, t[31] = k) : k = t[31], k;
1649
- }), Ae = (l) => {
1650
- const e = A(2);
1673
+ v,
1674
+ C
1675
+ ] }), t[24] = f, t[25] = p, t[26] = r, t[27] = a, t[28] = h, t[29] = v, t[30] = C, t[31] = k) : k = t[31], k;
1676
+ }), Ye = (l) => {
1677
+ const e = R(2);
1651
1678
  let n;
1652
- return e[0] !== l.children ? (n = /* @__PURE__ */ i(L, { textStyle: "label/XS/medium", color: "fg.muted", children: l.children }), e[0] = l.children, e[1] = n) : n = e[1], n;
1653
- }, Fe = (l) => {
1654
- const e = A(19);
1679
+ return e[0] !== l.children ? (n = /* @__PURE__ */ o(W, { textStyle: "label/XS/medium", color: "fg.muted", children: l.children }), e[0] = l.children, e[1] = n) : n = e[1], n;
1680
+ }, tt = (l) => {
1681
+ const e = R(19);
1655
1682
  let n;
1656
1683
  e[0] !== l.label || e[1] !== l.options || e[2] !== l.value ? (n = l.options.find((f) => f.value === l.value)?.label ?? l.label, e[0] = l.label, e[1] = l.options, e[2] = l.value, e[3] = n) : n = e[3];
1657
1684
  const t = n;
1658
- let o;
1659
- e[4] !== l.label ? (o = /* @__PURE__ */ i(Ae, { children: l.label }), e[4] = l.label, e[5] = o) : o = e[5];
1685
+ let i;
1686
+ e[4] !== l.label ? (i = /* @__PURE__ */ o(Ye, { children: l.label }), e[4] = l.label, e[5] = i) : i = e[5];
1660
1687
  let s;
1661
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ i(ue, { as: tt, color: "fg.muted" }), e[6] = s) : s = e[6];
1688
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o(ae, { as: Fe, color: "fg.muted" }), e[6] = s) : s = e[6];
1662
1689
  let r;
1663
- e[7] !== t ? (r = /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ x(he, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
1690
+ e[7] !== t ? (r = /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ x(pe, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
1664
1691
  t,
1665
1692
  s
1666
1693
  ] }) }), e[7] = t, e[8] = r) : r = e[8];
1667
1694
  let a;
1668
- e[9] !== l ? (a = l.options.map((f) => /* @__PURE__ */ i(ie.Item, { value: f.value, onClick: () => l.onSelect(f.value), children: /* @__PURE__ */ i(L, { textStyle: "label/S/regular", children: f.label }) }, f.value)), e[9] = l, e[10] = a) : a = e[10];
1695
+ e[9] !== l ? (a = l.options.map((f) => /* @__PURE__ */ o(Y.Item, { value: f.value, onClick: () => l.onSelect(f.value), children: /* @__PURE__ */ o(W, { textStyle: "label/S/regular", children: f.label }) }, f.value)), e[9] = l, e[10] = a) : a = e[10];
1669
1696
  let c;
1670
- e[11] !== a ? (c = /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "260px", bg: "bg", children: a }) }), e[11] = a, e[12] = c) : c = e[12];
1697
+ e[11] !== a ? (c = /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ o(Y.Content, { minW: "260px", bg: "bg", children: a }) }), e[11] = a, e[12] = c) : c = e[12];
1671
1698
  let d;
1672
- e[13] !== r || e[14] !== c ? (d = /* @__PURE__ */ x(ie.Root, { children: [
1699
+ e[13] !== r || e[14] !== c ? (d = /* @__PURE__ */ x(Y.Root, { children: [
1673
1700
  r,
1674
1701
  c
1675
1702
  ] }), e[13] = r, e[14] = c, e[15] = d) : d = e[15];
1676
1703
  let u;
1677
- return e[16] !== o || e[17] !== d ? (u = /* @__PURE__ */ x(H, { gap: "2xs", children: [
1678
- o,
1704
+ return e[16] !== i || e[17] !== d ? (u = /* @__PURE__ */ x(B, { gap: "2xs", children: [
1705
+ i,
1679
1706
  d
1680
- ] }), e[16] = o, e[17] = d, e[18] = u) : u = e[18], u;
1681
- }, $l = (l) => {
1682
- const e = A(60), {
1707
+ ] }), e[16] = i, e[17] = d, e[18] = u) : u = e[18], u;
1708
+ }, Jl = (l) => {
1709
+ const e = R(60), {
1683
1710
  settings: n,
1684
1711
  groupingOptions: t,
1685
- orderingOptions: o,
1712
+ orderingOptions: i,
1686
1713
  displayPropertyOptions: s,
1687
1714
  onViewModeChange: r,
1688
1715
  onColumnGroupingChange: a,
@@ -1691,123 +1718,123 @@ const ro = Ze.forwardRef(function(e, n) {
1691
1718
  onSortDirectionToggle: u,
1692
1719
  onDisplayPropertyToggle: f
1693
1720
  } = l;
1694
- let g;
1695
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
1721
+ let p;
1722
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
1696
1723
  placement: "bottom-end",
1697
1724
  offset: {
1698
1725
  mainAxis: 8
1699
1726
  }
1700
- }, e[0] = g) : g = e[0];
1727
+ }, e[0] = p) : p = e[0];
1701
1728
  let h;
1702
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ i(ke.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ i(ue, { as: hn, boxSize: "14px" }) }) }), e[1] = h) : h = e[1];
1703
- let p;
1704
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ i(Ae, { children: "View" }), e[2] = p) : p = e[2];
1705
- let m;
1706
- e[3] !== r ? (m = (E) => {
1729
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(we.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ o(ae, { as: Rn, boxSize: "14px" }) }) }), e[1] = h) : h = e[1];
1730
+ let g;
1731
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o(Ye, { children: "View" }), e[2] = g) : g = e[2];
1732
+ let S;
1733
+ e[3] !== r ? (S = (E) => {
1707
1734
  E.value && r(E.value);
1708
- }, e[3] = r, e[4] = m) : m = e[4];
1709
- let b;
1710
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ i(we.Indicator, {}), e[5] = b) : b = e[5];
1711
- let y;
1712
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ x(we.Item, { value: "list", children: [
1713
- /* @__PURE__ */ i(we.ItemText, { children: /* @__PURE__ */ x(X, { as: "span", gap: "2xs", children: [
1714
- /* @__PURE__ */ i(pn, { size: 14 }),
1715
- /* @__PURE__ */ i("span", { children: "List" })
1716
- ] }) }),
1717
- /* @__PURE__ */ i(we.ItemHiddenInput, {})
1718
- ] }), e[6] = y) : y = e[6];
1735
+ }, e[3] = r, e[4] = S) : S = e[4];
1736
+ let m;
1737
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ o(Ce.Indicator, {}), e[5] = m) : m = e[5];
1719
1738
  let v;
1720
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ x(we.Item, { value: "board", children: [
1721
- /* @__PURE__ */ i(we.ItemText, { children: /* @__PURE__ */ x(X, { as: "span", gap: "2xs", children: [
1722
- /* @__PURE__ */ i(mn, { size: 14 }),
1723
- /* @__PURE__ */ i("span", { children: "Board" })
1739
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ x(Ce.Item, { value: "list", children: [
1740
+ /* @__PURE__ */ o(Ce.ItemText, { children: /* @__PURE__ */ x(j, { as: "span", gap: "2xs", children: [
1741
+ /* @__PURE__ */ o(Wn, { size: 14 }),
1742
+ /* @__PURE__ */ o("span", { children: "List" })
1743
+ ] }) }),
1744
+ /* @__PURE__ */ o(Ce.ItemHiddenInput, {})
1745
+ ] }), e[6] = v) : v = e[6];
1746
+ let C;
1747
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ x(Ce.Item, { value: "board", children: [
1748
+ /* @__PURE__ */ o(Ce.ItemText, { children: /* @__PURE__ */ x(j, { as: "span", gap: "2xs", children: [
1749
+ /* @__PURE__ */ o(En, { size: 14 }),
1750
+ /* @__PURE__ */ o("span", { children: "Board" })
1724
1751
  ] }) }),
1725
- /* @__PURE__ */ i(we.ItemHiddenInput, {})
1726
- ] }), e[7] = v) : v = e[7];
1752
+ /* @__PURE__ */ o(Ce.ItemHiddenInput, {})
1753
+ ] }), e[7] = C) : C = e[7];
1727
1754
  let k;
1728
- e[8] !== n.viewMode || e[9] !== m ? (k = /* @__PURE__ */ x(we.Root, { size: "sm", value: n.viewMode, onValueChange: m, children: [
1729
- b,
1730
- y,
1731
- v
1732
- ] }), e[8] = n.viewMode, e[9] = m, e[10] = k) : k = e[10];
1733
- let _;
1734
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Ye, {}), e[11] = _) : _ = e[11];
1735
- let D;
1736
- e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (D = (E) => {
1755
+ e[8] !== n.viewMode || e[9] !== S ? (k = /* @__PURE__ */ x(Ce.Root, { size: "sm", value: n.viewMode, onValueChange: S, children: [
1756
+ m,
1757
+ v,
1758
+ C
1759
+ ] }), e[8] = n.viewMode, e[9] = S, e[10] = k) : k = e[10];
1760
+ let y;
1761
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ o(it, {}), e[11] = y) : y = e[11];
1762
+ let I;
1763
+ e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (I = (E) => {
1737
1764
  a(E), (E === "none" || E === n.rowGrouping) && c("none");
1738
- }, e[12] = a, e[13] = c, e[14] = n.rowGrouping, e[15] = D) : D = e[15];
1739
- let T;
1740
- e[16] !== t || e[17] !== n.columnGrouping || e[18] !== D ? (T = /* @__PURE__ */ i(Fe, { label: "Grouping", value: n.columnGrouping, options: t, onSelect: D }), e[16] = t, e[17] = n.columnGrouping, e[18] = D, e[19] = T) : T = e[19];
1741
- const P = n.rowGrouping;
1742
- let S;
1765
+ }, e[12] = a, e[13] = c, e[14] = n.rowGrouping, e[15] = I) : I = e[15];
1766
+ let D;
1767
+ e[16] !== t || e[17] !== n.columnGrouping || e[18] !== I ? (D = /* @__PURE__ */ o(tt, { label: "Grouping", value: n.columnGrouping, options: t, onSelect: I }), e[16] = t, e[17] = n.columnGrouping, e[18] = I, e[19] = D) : D = e[19];
1768
+ const T = n.rowGrouping;
1769
+ let b;
1743
1770
  if (e[20] !== t || e[21] !== n.columnGrouping) {
1744
1771
  let E;
1745
- e[23] !== n.columnGrouping ? (E = (V) => V.value === "none" || V.value !== n.columnGrouping, e[23] = n.columnGrouping, e[24] = E) : E = e[24], S = t.filter(E), e[20] = t, e[21] = n.columnGrouping, e[22] = S;
1772
+ e[23] !== n.columnGrouping ? (E = (K) => K.value === "none" || K.value !== n.columnGrouping, e[23] = n.columnGrouping, e[24] = E) : E = e[24], b = t.filter(E), e[20] = t, e[21] = n.columnGrouping, e[22] = b;
1746
1773
  } else
1747
- S = e[22];
1774
+ b = e[22];
1775
+ let P;
1776
+ e[25] !== c || e[26] !== n.rowGrouping || e[27] !== b ? (P = /* @__PURE__ */ o(tt, { label: "Sub-grouping", value: T, options: b, onSelect: c }), e[25] = c, e[26] = n.rowGrouping, e[27] = b, e[28] = P) : P = e[28];
1748
1777
  let w;
1749
- e[25] !== c || e[26] !== n.rowGrouping || e[27] !== S ? (w = /* @__PURE__ */ i(Fe, { label: "Sub-grouping", value: P, options: S, onSelect: c }), e[25] = c, e[26] = n.rowGrouping, e[27] = S, e[28] = w) : w = e[28];
1750
- let C;
1751
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ i(Ae, { children: "Ordering" }), e[29] = C) : C = e[29];
1752
- let I;
1753
- e[30] !== d || e[31] !== o || e[32] !== n.ordering.field ? (I = /* @__PURE__ */ i(Fe, { label: "Sort by", value: n.ordering.field, options: o, onSelect: d }), e[30] = d, e[31] = o, e[32] = n.ordering.field, e[33] = I) : I = e[33];
1754
- const z = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
1778
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ o(Ye, { children: "Ordering" }), e[29] = w) : w = e[29];
1779
+ let _;
1780
+ e[30] !== d || e[31] !== i || e[32] !== n.ordering.field ? (_ = /* @__PURE__ */ o(tt, { label: "Sort by", value: n.ordering.field, options: i, onSelect: d }), e[30] = d, e[31] = i, e[32] = n.ordering.field, e[33] = _) : _ = e[33];
1781
+ const L = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
1755
1782
  let $;
1756
- e[34] !== z ? ($ = /* @__PURE__ */ i(ue, { as: bn, transform: z }), e[34] = z, e[35] = $) : $ = e[35];
1783
+ e[34] !== L ? ($ = /* @__PURE__ */ o(ae, { as: zn, transform: L }), e[34] = L, e[35] = $) : $ = e[35];
1784
+ let z;
1785
+ e[36] !== u || e[37] !== n.ordering.direction || e[38] !== $ ? (z = /* @__PURE__ */ o(he, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: u, "data-direction": n.ordering.direction, children: $ }), e[36] = u, e[37] = n.ordering.direction, e[38] = $, e[39] = z) : z = e[39];
1757
1786
  let O;
1758
- e[36] !== u || e[37] !== n.ordering.direction || e[38] !== $ ? (O = /* @__PURE__ */ i(Se, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: u, "data-direction": n.ordering.direction, children: $ }), e[36] = u, e[37] = n.ordering.direction, e[38] = $, e[39] = O) : O = e[39];
1759
- let M;
1760
- e[40] !== I || e[41] !== O ? (M = /* @__PURE__ */ x(H, { gap: "2xs", children: [
1761
- C,
1762
- /* @__PURE__ */ x(X, { gap: "2xs", children: [
1763
- I,
1764
- O
1787
+ e[40] !== _ || e[41] !== z ? (O = /* @__PURE__ */ x(B, { gap: "2xs", children: [
1788
+ w,
1789
+ /* @__PURE__ */ x(j, { gap: "2xs", children: [
1790
+ _,
1791
+ z
1765
1792
  ] })
1766
- ] }), e[40] = I, e[41] = O, e[42] = M) : M = e[42];
1767
- let N;
1768
- e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ i(Ye, {}), e[43] = N) : N = e[43];
1769
- let W;
1770
- e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(Ae, { children: "Display properties" }), e[44] = W) : W = e[44];
1771
- let B;
1793
+ ] }), e[40] = _, e[41] = z, e[42] = O) : O = e[42];
1794
+ let G;
1795
+ e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ o(it, {}), e[43] = G) : G = e[43];
1796
+ let H;
1797
+ e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ o(Ye, { children: "Display properties" }), e[44] = H) : H = e[44];
1798
+ let X;
1772
1799
  if (e[45] !== s || e[46] !== f || e[47] !== n.displayProperties) {
1773
1800
  let E;
1774
- e[49] !== f || e[50] !== n.displayProperties ? (E = (V) => {
1775
- const q = n.displayProperties.includes(V.value);
1776
- return /* @__PURE__ */ i(he, { size: "2xs", variant: q ? "solid" : "outline", onClick: () => f(V.value), children: V.label }, V.value);
1777
- }, e[49] = f, e[50] = n.displayProperties, e[51] = E) : E = e[51], B = s.map(E), e[45] = s, e[46] = f, e[47] = n.displayProperties, e[48] = B;
1801
+ e[49] !== f || e[50] !== n.displayProperties ? (E = (K) => {
1802
+ const M = n.displayProperties.includes(K.value);
1803
+ return /* @__PURE__ */ o(pe, { size: "2xs", variant: M ? "solid" : "outline", onClick: () => f(K.value), children: K.label }, K.value);
1804
+ }, e[49] = f, e[50] = n.displayProperties, e[51] = E) : E = e[51], X = s.map(E), e[45] = s, e[46] = f, e[47] = n.displayProperties, e[48] = X;
1778
1805
  } else
1779
- B = e[48];
1780
- let G;
1781
- e[52] !== B ? (G = /* @__PURE__ */ x(H, { gap: "2xs", children: [
1782
- W,
1783
- /* @__PURE__ */ i(X, { flexWrap: "wrap", gap: "2xs", children: B })
1784
- ] }), e[52] = B, e[53] = G) : G = e[53];
1785
- let R;
1786
- return e[54] !== T || e[55] !== w || e[56] !== M || e[57] !== G || e[58] !== k ? (R = /* @__PURE__ */ x(ke.Root, { positioning: g, children: [
1806
+ X = e[48];
1807
+ let F;
1808
+ e[52] !== X ? (F = /* @__PURE__ */ x(B, { gap: "2xs", children: [
1809
+ H,
1810
+ /* @__PURE__ */ o(j, { flexWrap: "wrap", gap: "2xs", children: X })
1811
+ ] }), e[52] = X, e[53] = F) : F = e[53];
1812
+ let A;
1813
+ return e[54] !== D || e[55] !== P || e[56] !== O || e[57] !== F || e[58] !== k ? (A = /* @__PURE__ */ x(we.Root, { positioning: p, children: [
1787
1814
  h,
1788
- /* @__PURE__ */ i(He, { children: /* @__PURE__ */ i(ke.Positioner, { children: /* @__PURE__ */ i(ke.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ x(H, { gap: "sm", children: [
1789
- p,
1815
+ /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(we.Positioner, { children: /* @__PURE__ */ o(we.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ x(B, { gap: "sm", children: [
1816
+ g,
1790
1817
  k,
1791
- _,
1792
- T,
1793
- w,
1794
- M,
1795
- N,
1796
- G
1818
+ y,
1819
+ D,
1820
+ P,
1821
+ O,
1822
+ G,
1823
+ F
1797
1824
  ] }) }) }) })
1798
- ] }), e[54] = T, e[55] = w, e[56] = M, e[57] = G, e[58] = k, e[59] = R) : R = e[59], R;
1799
- }, Ll = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), Rl = (l) => {
1800
- const e = A(39), {
1825
+ ] }), e[54] = D, e[55] = P, e[56] = O, e[57] = F, e[58] = k, e[59] = A) : A = e[59], A;
1826
+ }, Ql = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), Zl = (l) => {
1827
+ const e = R(39), {
1801
1828
  categories: n,
1802
1829
  filters: t,
1803
- countsByCategory: o,
1830
+ countsByCategory: i,
1804
1831
  onToggleFilterValue: s,
1805
1832
  onClearFilter: r,
1806
1833
  onClearAll: a
1807
- } = l, [c, d] = pe(n[0]?.id ?? "status");
1834
+ } = l, [c, d] = ge(n[0]?.id ?? "status");
1808
1835
  let u;
1809
- e[0] !== c || e[1] !== n ? (u = n.find((I) => I.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = u) : u = e[2];
1810
- const f = u, g = Ll(t);
1836
+ e[0] !== c || e[1] !== n ? (u = n.find((_) => _.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = u) : u = e[2];
1837
+ const f = u, p = Ql(t);
1811
1838
  let h;
1812
1839
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
1813
1840
  placement: "bottom-end",
@@ -1815,224 +1842,323 @@ const ro = Ze.forwardRef(function(e, n) {
1815
1842
  mainAxis: 8
1816
1843
  }
1817
1844
  }, e[3] = h) : h = e[3];
1818
- const p = g > 0 ? "outline" : "ghost";
1845
+ const g = p > 0 ? "outline" : "ghost";
1846
+ let S;
1847
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ o(ae, { as: An, boxSize: "14px" }), e[4] = S) : S = e[4];
1819
1848
  let m;
1820
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(ue, { as: xn, boxSize: "14px" }), e[4] = m) : m = e[4];
1821
- let b;
1822
- e[5] !== g ? (b = g > 0 ? /* @__PURE__ */ i(Pe, { variant: "solid", children: g }) : null, e[5] = g, e[6] = b) : b = e[6];
1823
- let y;
1824
- e[7] !== b ? (y = /* @__PURE__ */ x(X, { gap: "2xs", children: [
1825
- m,
1826
- b
1827
- ] }), e[7] = b, e[8] = y) : y = e[8];
1849
+ e[5] !== p ? (m = p > 0 ? /* @__PURE__ */ o(Pe, { variant: "solid", children: p }) : null, e[5] = p, e[6] = m) : m = e[6];
1828
1850
  let v;
1829
- e[9] !== p || e[10] !== y ? (v = /* @__PURE__ */ i(ke.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Filter tickets", variant: p, size: "sm", children: y }) }), e[9] = p, e[10] = y, e[11] = v) : v = e[11];
1851
+ e[7] !== m ? (v = /* @__PURE__ */ x(j, { gap: "2xs", children: [
1852
+ S,
1853
+ m
1854
+ ] }), e[7] = m, e[8] = v) : v = e[8];
1855
+ let C;
1856
+ e[9] !== g || e[10] !== v ? (C = /* @__PURE__ */ o(we.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { "aria-label": "Filter tickets", variant: g, size: "sm", children: v }) }), e[9] = g, e[10] = v, e[11] = C) : C = e[11];
1830
1857
  let k;
1831
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i(L, { textStyle: "label/XS/medium", color: "fg.muted", children: "Filters" }), e[12] = k) : k = e[12];
1832
- let _;
1833
- e[13] !== a ? (_ = /* @__PURE__ */ x(X, { justifyContent: "space-between", children: [
1858
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ o(W, { textStyle: "label/XS/medium", color: "fg.muted", children: "Filters" }), e[12] = k) : k = e[12];
1859
+ let y;
1860
+ e[13] !== a ? (y = /* @__PURE__ */ x(j, { justifyContent: "space-between", children: [
1834
1861
  k,
1835
- /* @__PURE__ */ i(he, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
1836
- ] }), e[13] = a, e[14] = _) : _ = e[14];
1837
- let D;
1862
+ /* @__PURE__ */ o(pe, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
1863
+ ] }), e[13] = a, e[14] = y) : y = e[14];
1864
+ let I;
1838
1865
  if (e[15] !== c || e[16] !== n || e[17] !== t) {
1839
- let I;
1840
- e[19] !== c || e[20] !== t ? (I = (z) => {
1841
- const $ = t[z.id] ?? [];
1842
- return /* @__PURE__ */ x(he, { variant: c === z.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(z.id), children: [
1843
- /* @__PURE__ */ i(L, { children: z.label }),
1844
- $.length > 0 ? /* @__PURE__ */ i(Pe, { variant: "subtle", children: $.length }) : null
1845
- ] }, z.id);
1846
- }, e[19] = c, e[20] = t, e[21] = I) : I = e[21], D = n.map(I), e[15] = c, e[16] = n, e[17] = t, e[18] = D;
1866
+ let _;
1867
+ e[19] !== c || e[20] !== t ? (_ = (L) => {
1868
+ const $ = t[L.id] ?? [];
1869
+ return /* @__PURE__ */ x(pe, { variant: c === L.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(L.id), children: [
1870
+ /* @__PURE__ */ o(W, { children: L.label }),
1871
+ $.length > 0 ? /* @__PURE__ */ o(Pe, { variant: "subtle", children: $.length }) : null
1872
+ ] }, L.id);
1873
+ }, e[19] = c, e[20] = t, e[21] = _) : _ = e[21], I = n.map(_), e[15] = c, e[16] = n, e[17] = t, e[18] = I;
1847
1874
  } else
1848
- D = e[18];
1875
+ I = e[18];
1876
+ let D;
1877
+ e[22] !== y || e[23] !== I ? (D = /* @__PURE__ */ x(B, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1878
+ y,
1879
+ I
1880
+ ] }), e[22] = y, e[23] = I, e[24] = D) : D = e[24];
1849
1881
  let T;
1850
- e[22] !== _ || e[23] !== D ? (T = /* @__PURE__ */ x(H, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1851
- _,
1852
- D
1853
- ] }), e[22] = _, e[23] = D, e[24] = T) : T = e[24];
1854
- let P;
1855
- e[25] !== f || e[26] !== o || e[27] !== t || e[28] !== r || e[29] !== s ? (P = f ? /* @__PURE__ */ x(Qe, { children: [
1856
- /* @__PURE__ */ x(X, { justifyContent: "space-between", children: [
1857
- /* @__PURE__ */ i(L, { textStyle: "label/S/medium", children: f.label }),
1858
- /* @__PURE__ */ i(he, { size: "2xs", variant: "ghost", onClick: () => r(f.id), children: "Clear" })
1882
+ e[25] !== f || e[26] !== i || e[27] !== t || e[28] !== r || e[29] !== s ? (T = f ? /* @__PURE__ */ x(Lt, { children: [
1883
+ /* @__PURE__ */ x(j, { justifyContent: "space-between", children: [
1884
+ /* @__PURE__ */ o(W, { textStyle: "label/S/medium", children: f.label }),
1885
+ /* @__PURE__ */ o(pe, { size: "2xs", variant: "ghost", onClick: () => r(f.id), children: "Clear" })
1859
1886
  ] }),
1860
- /* @__PURE__ */ i(H, { gap: "2xs", children: f.options.map((I) => {
1861
- const z = (t[f.id] ?? []).includes(I.value), $ = o[f.id]?.[I.value] ?? 0;
1862
- return /* @__PURE__ */ i(j, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
1863
- bg: "bg.subtle"
1864
- }, children: /* @__PURE__ */ i(Pn, { checked: z, onCheckedChange: () => s(f.id, I.value), children: /* @__PURE__ */ x(X, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
1865
- /* @__PURE__ */ i(L, { textStyle: "label/S/regular", children: I.label }),
1866
- /* @__PURE__ */ i(L, { textStyle: "label/XS/regular", color: "fg.muted", children: $ })
1867
- ] }) }) }, I.value);
1887
+ /* @__PURE__ */ o(B, { gap: "2xs", children: f.options.map((_) => {
1888
+ const L = (t[f.id] ?? []).includes(_.value), $ = i[f.id]?.[_.value] ?? 0;
1889
+ return /* @__PURE__ */ o(V, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
1890
+ bg: "bg.hover"
1891
+ }, children: /* @__PURE__ */ o(Zn, { checked: L, onCheckedChange: () => s(f.id, _.value), children: /* @__PURE__ */ x(j, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
1892
+ /* @__PURE__ */ o(W, { textStyle: "label/S/regular", children: _.label }),
1893
+ /* @__PURE__ */ o(W, { textStyle: "label/XS/regular", color: "fg.muted", children: $ })
1894
+ ] }) }) }, _.value);
1868
1895
  }) })
1869
- ] }) : null, e[25] = f, e[26] = o, e[27] = t, e[28] = r, e[29] = s, e[30] = P) : P = e[30];
1870
- let S;
1871
- e[31] !== P ? (S = /* @__PURE__ */ i(H, { flex: "1", p: "sm", gap: "sm", children: P }), e[31] = P, e[32] = S) : S = e[32];
1896
+ ] }) : null, e[25] = f, e[26] = i, e[27] = t, e[28] = r, e[29] = s, e[30] = T) : T = e[30];
1897
+ let b;
1898
+ e[31] !== T ? (b = /* @__PURE__ */ o(B, { flex: "1", p: "sm", gap: "sm", children: T }), e[31] = T, e[32] = b) : b = e[32];
1899
+ let P;
1900
+ e[33] !== D || e[34] !== b ? (P = /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(we.Positioner, { children: /* @__PURE__ */ o(we.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ x(j, { align: "stretch", gap: "0", minH: "320px", children: [
1901
+ D,
1902
+ b
1903
+ ] }) }) }) }), e[33] = D, e[34] = b, e[35] = P) : P = e[35];
1872
1904
  let w;
1873
- e[33] !== T || e[34] !== S ? (w = /* @__PURE__ */ i(He, { children: /* @__PURE__ */ i(ke.Positioner, { children: /* @__PURE__ */ i(ke.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ x(X, { align: "stretch", gap: "0", minH: "320px", children: [
1874
- T,
1875
- S
1876
- ] }) }) }) }), e[33] = T, e[34] = S, e[35] = w) : w = e[35];
1877
- let C;
1878
- return e[36] !== w || e[37] !== v ? (C = /* @__PURE__ */ x(ke.Root, { positioning: h, children: [
1879
- v,
1880
- w
1881
- ] }), e[36] = w, e[37] = v, e[38] = C) : C = e[38], C;
1882
- }, Tt = (l) => {
1883
- const e = A(43), {
1884
- ticketId: n,
1885
- parentPath: t,
1886
- sessionIndicatorLabel: o,
1887
- sessionIndicatorStatus: s,
1888
- title: r,
1889
- badges: a,
1905
+ return e[36] !== P || e[37] !== C ? (w = /* @__PURE__ */ x(we.Root, { positioning: h, children: [
1906
+ C,
1907
+ P
1908
+ ] }), e[36] = P, e[37] = C, e[38] = w) : w = e[38], w;
1909
+ }, eo = {
1910
+ amber: "yellow"
1911
+ }, to = /* @__PURE__ */ new Set(["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"]), no = (l) => l === "current_branch" ? On : Mn, lo = (l) => {
1912
+ if (l.startsWith("#") || l.startsWith("rgb") || l.startsWith("hsl") || l.startsWith("var("))
1913
+ return l;
1914
+ const e = eo[l] ?? l;
1915
+ return to.has(e) ? `var(--chakra-colors-${e}-500)` : e;
1916
+ }, oo = (l) => l ? l.description ? `${l.name}: ${l.description}` : l.name : null, Ht = (l, e) => {
1917
+ l.stopPropagation(), e?.();
1918
+ }, io = (l, e) => {
1919
+ l.stopPropagation(), e?.();
1920
+ }, ro = (l) => {
1921
+ const e = R(9), {
1922
+ sessionStatus: n,
1923
+ onSessionIndicatorClick: t
1924
+ } = l;
1925
+ if (!n)
1926
+ return null;
1927
+ const i = t ? "Open latest session" : "Latest session status";
1928
+ let s;
1929
+ e[0] !== t ? (s = t ? (c) => Ht(c, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
1930
+ let r;
1931
+ e[2] !== n || e[3] !== i || e[4] !== s ? (r = /* @__PURE__ */ o(Tl, { status: n, boxSize: "12px", ariaLabel: i, cursor: "pointer", onClick: s }), e[2] = n, e[3] = i, e[4] = s, e[5] = r) : r = e[5];
1932
+ let a;
1933
+ return e[6] !== i || e[7] !== r ? (a = /* @__PURE__ */ o(xe, { content: i, children: r }), e[6] = i, e[7] = r, e[8] = a) : a = e[8], a;
1934
+ }, so = (l) => {
1935
+ const e = R(13), {
1936
+ workspaceType: n,
1937
+ initializing: t,
1938
+ shorthand: i
1939
+ } = l;
1940
+ let s;
1941
+ e[0] !== n ? (s = no(n), e[0] = n, e[1] = s) : s = e[1];
1942
+ const r = s, a = n === "worktree" ? "Worktree" : "Current branch";
1943
+ let c;
1944
+ e[2] !== r || e[3] !== a ? (c = /* @__PURE__ */ o(ae, { as: r, boxSize: "12px", "aria-label": a }), e[2] = r, e[3] = a, e[4] = c) : c = e[4];
1945
+ let d;
1946
+ e[5] !== t ? (d = t ? /* @__PURE__ */ o(Tt, { size: "xs", color: "fg.muted" }) : null, e[5] = t, e[6] = d) : d = e[6];
1947
+ let u;
1948
+ e[7] !== i ? (u = i ? /* @__PURE__ */ o(W, { as: "span", textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: i }) : null, e[7] = i, e[8] = u) : u = e[8];
1949
+ let f;
1950
+ return e[9] !== c || e[10] !== d || e[11] !== u ? (f = /* @__PURE__ */ x(j, { as: "span", gap: "0", alignItems: "center", color: "fg.muted", flexShrink: 0, children: [
1951
+ c,
1952
+ d,
1953
+ u
1954
+ ] }), e[9] = c, e[10] = d, e[11] = u, e[12] = f) : f = e[12], f;
1955
+ }, ao = (l) => {
1956
+ const e = R(10), {
1957
+ attemptStatus: n
1958
+ } = l;
1959
+ if (!n)
1960
+ return null;
1961
+ let t;
1962
+ e[0] !== n ? (t = oo(n), e[0] = n, e[1] = t) : t = e[1];
1963
+ let i;
1964
+ e[2] !== n.color ? (i = lo(n.color), e[2] = n.color, e[3] = i) : i = e[3];
1965
+ const s = `Attempt status ${n.name}`;
1966
+ let r;
1967
+ e[4] !== i || e[5] !== s ? (r = /* @__PURE__ */ o(V, { as: "span", boxSize: "8px", borderRadius: "full", backgroundColor: i, flexShrink: 0, "aria-label": s, "data-testid": "workspace-attempt-status" }), e[4] = i, e[5] = s, e[6] = r) : r = e[6];
1968
+ let a;
1969
+ return e[7] !== t || e[8] !== r ? (a = /* @__PURE__ */ o(xe, { content: t, children: r }), e[7] = t, e[8] = r, e[9] = a) : a = e[9], a;
1970
+ }, co = (l) => {
1971
+ const e = R(3), {
1972
+ diffAdditions: n,
1973
+ diffDeletions: t
1974
+ } = l;
1975
+ if (typeof n != "number" || typeof t != "number")
1976
+ return null;
1977
+ let i;
1978
+ return e[0] !== n || e[1] !== t ? (i = /* @__PURE__ */ o(_t, { additions: n, deletions: t, variant: "ghost", size: "small", fileName: void 0 }), e[0] = n, e[1] = t, e[2] = i) : i = e[2], i;
1979
+ }, uo = (l) => {
1980
+ const e = R(5), {
1981
+ hasMultipleWorkspaces: n,
1982
+ onDropdownClick: t
1983
+ } = l;
1984
+ if (!n)
1985
+ return null;
1986
+ const i = t ? "pointer" : "default";
1987
+ let s;
1988
+ e[0] !== t ? (s = t ? (a) => Ht(a, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
1989
+ let r;
1990
+ return e[2] !== i || e[3] !== s ? (r = /* @__PURE__ */ o(ae, { as: Fe, boxSize: "12px", color: "fg.muted", cursor: i, "aria-label": "Workspace selector", onClick: s }), e[2] = i, e[3] = s, e[4] = r) : r = e[4], r;
1991
+ }, fo = (l) => {
1992
+ const e = R(26), {
1993
+ workspaceType: n,
1994
+ initializing: t,
1995
+ shorthand: i,
1996
+ attemptStatus: s,
1997
+ sessionStatus: r,
1998
+ showLeadingSessionIndicator: a,
1890
1999
  diffAdditions: c,
1891
2000
  diffDeletions: d,
1892
- isSelected: u,
1893
- draggable: f,
1894
- onDragStart: g,
1895
- onDragEnd: h,
1896
- onClick: p,
1897
- onDiffBadgeClick: m,
1898
- onSessionIndicatorClick: b
1899
- } = l;
1900
- let y;
1901
- e[0] !== t ? (y = t === void 0 ? [] : t, e[0] = t, e[1] = y) : y = e[1];
1902
- const v = y;
2001
+ hasMultipleWorkspaces: u,
2002
+ onClick: f,
2003
+ onDropdownClick: p,
2004
+ onSessionIndicatorClick: h
2005
+ } = l, g = t === void 0 ? !1 : t, S = a === void 0 ? !0 : a, m = u === void 0 ? !1 : u;
2006
+ let v;
2007
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
2008
+ backgroundColor: "bg.hover"
2009
+ }, e[0] = v) : v = e[0];
2010
+ let C;
2011
+ e[1] !== f ? (C = f ? (P) => io(P, f) : void 0, e[1] = f, e[2] = C) : C = e[2];
1903
2012
  let k;
1904
- e[2] !== a ? (k = a === void 0 ? [] : a, e[2] = a, e[3] = k) : k = e[3];
1905
- const _ = k, D = u === void 0 ? !1 : u;
2013
+ e[3] !== h || e[4] !== r || e[5] !== S ? (k = S ? /* @__PURE__ */ o(ro, { sessionStatus: r, onSessionIndicatorClick: h }) : null, e[3] = h, e[4] = r, e[5] = S, e[6] = k) : k = e[6];
2014
+ let y;
2015
+ e[7] !== g || e[8] !== i || e[9] !== n ? (y = /* @__PURE__ */ o(so, { workspaceType: n, initializing: g, shorthand: i }), e[7] = g, e[8] = i, e[9] = n, e[10] = y) : y = e[10];
2016
+ let I;
2017
+ e[11] !== s ? (I = /* @__PURE__ */ o(ao, { attemptStatus: s }), e[11] = s, e[12] = I) : I = e[12];
2018
+ let D;
2019
+ e[13] !== c || e[14] !== d ? (D = /* @__PURE__ */ o(co, { diffAdditions: c, diffDeletions: d }), e[13] = c, e[14] = d, e[15] = D) : D = e[15];
1906
2020
  let T;
1907
- e[4] !== m ? (T = (V) => {
1908
- V.stopPropagation(), m?.();
1909
- }, e[4] = m, e[5] = T) : T = e[5];
1910
- const P = T;
1911
- let S;
1912
- e[6] !== b ? (S = (V) => {
1913
- V.stopPropagation(), b?.();
1914
- }, e[6] = b, e[7] = S) : S = e[7];
1915
- const w = S;
1916
- let C;
1917
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
2021
+ e[16] !== m || e[17] !== p ? (T = /* @__PURE__ */ o(uo, { hasMultipleWorkspaces: m, onDropdownClick: p }), e[16] = m, e[17] = p, e[18] = T) : T = e[18];
2022
+ let b;
2023
+ return e[19] !== C || e[20] !== k || e[21] !== y || e[22] !== I || e[23] !== D || e[24] !== T ? (b = /* @__PURE__ */ x(j, { as: "span", display: "inline-flex", gap: "2xs", alignItems: "center", minW: "0", px: "2px", py: "1px", borderRadius: "xs", cursor: "pointer", transition: "background-color 0.2s ease-in-out", _hover: v, onClick: C, "data-testid": "workspace-badge", children: [
2024
+ k,
2025
+ y,
2026
+ I,
2027
+ D,
2028
+ T
2029
+ ] }), e[19] = C, e[20] = k, e[21] = y, e[22] = I, e[23] = D, e[24] = T, e[25] = b) : b = e[25], b;
2030
+ }, Ft = (l) => {
2031
+ const e = R(29), {
2032
+ ticketId: n,
2033
+ parentPath: t,
2034
+ title: i,
2035
+ badges: s,
2036
+ workspaceBadge: r,
2037
+ isSelected: a,
2038
+ draggable: c,
2039
+ onDragStart: d,
2040
+ onDragEnd: u,
2041
+ onClick: f
2042
+ } = l;
2043
+ let p;
2044
+ e[0] !== t ? (p = t === void 0 ? [] : t, e[0] = t, e[1] = p) : p = e[1];
2045
+ const h = p;
2046
+ let g;
2047
+ e[2] !== s ? (g = s === void 0 ? [] : s, e[2] = s, e[3] = g) : g = e[3];
2048
+ const S = g, m = a === void 0 ? !1 : a;
2049
+ let v;
2050
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
1918
2051
  borderColor: "border.blue",
1919
2052
  boxShadow: "mid"
1920
- }, e[8] = C) : C = e[8];
1921
- const I = f ? "grab" : p ? "pointer" : "default", z = D ? "true" : void 0;
1922
- let $;
1923
- e[9] !== v ? ($ = v.length > 0 && /* @__PURE__ */ x(L, { as: "span", color: "subtle", children: [
1924
- v.join(" / "),
2053
+ }, e[4] = v) : v = e[4];
2054
+ const C = c ? "grab" : f ? "pointer" : "default", k = m ? "true" : void 0;
2055
+ let y;
2056
+ e[5] !== h ? (y = h.length > 0 && /* @__PURE__ */ x(W, { as: "span", color: "subtle", children: [
2057
+ h.join(" / "),
1925
2058
  " /",
1926
2059
  " "
1927
- ] }), e[9] = v, e[10] = $) : $ = e[10];
1928
- let O;
1929
- e[11] !== $ || e[12] !== n ? (O = /* @__PURE__ */ x(L, { textStyle: "label/S/regular", flexShrink: 0, children: [
1930
- $,
2060
+ ] }), e[5] = h, e[6] = y) : y = e[6];
2061
+ let I;
2062
+ e[7] !== y || e[8] !== n ? (I = /* @__PURE__ */ x(W, { textStyle: "label/S/regular", flexShrink: 0, children: [
2063
+ y,
1931
2064
  n
1932
- ] }), e[11] = $, e[12] = n, e[13] = O) : O = e[13];
1933
- let M;
1934
- e[14] !== w || e[15] !== b || e[16] !== o || e[17] !== s ? (M = o ? /* @__PURE__ */ i(Le, { content: `Session ${o}`, children: /* @__PURE__ */ i(sl, { status: s, boxSize: "12px", "aria-label": `Session ${o}`, cursor: b ? "pointer" : "default", onClick: b ? w : void 0 }) }) : null, e[14] = w, e[15] = b, e[16] = o, e[17] = s, e[18] = M) : M = e[18];
1935
- let N;
1936
- e[19] !== O || e[20] !== M ? (N = /* @__PURE__ */ x(X, { gap: "2xs", flexShrink: 0, children: [
1937
- O,
1938
- M
1939
- ] }), e[19] = O, e[20] = M, e[21] = N) : N = e[21];
1940
- let W;
1941
- e[22] !== c || e[23] !== d || e[24] !== P ? (W = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(bt, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(Sn, { size: "12" }), onClick: P, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = P, e[25] = W) : W = e[25];
1942
- let B;
1943
- e[26] !== N || e[27] !== W ? (B = /* @__PURE__ */ x(X, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1944
- N,
1945
- W
1946
- ] }), e[26] = N, e[27] = W, e[28] = B) : B = e[28];
1947
- let G;
1948
- e[29] !== r ? (G = /* @__PURE__ */ i(X, { align: "start", gap: "2xs", flexWrap: "wrap", minW: "0", children: /* @__PURE__ */ i(L, { textStyle: "label/S/regular", flex: "1", minW: "0", overflowWrap: "anywhere", children: r }) }), e[29] = r, e[30] = G) : G = e[30];
1949
- let R;
1950
- e[31] !== _ ? (R = _.length > 0 && /* @__PURE__ */ i(mt, { gap: "2xs", children: _.map(El) }), e[31] = _, e[32] = R) : R = e[32];
1951
- let E;
1952
- return e[33] !== f || e[34] !== p || e[35] !== h || e[36] !== g || e[37] !== B || e[38] !== G || e[39] !== R || e[40] !== I || e[41] !== z ? (E = /* @__PURE__ */ x(H, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "100%", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: C, cursor: I, draggable: f, onDragStart: g, onDragEnd: h, onClick: p, "data-selected": z, children: [
1953
- B,
1954
- G,
1955
- R
1956
- ] }), e[33] = f, e[34] = p, e[35] = h, e[36] = g, e[37] = B, e[38] = G, e[39] = R, e[40] = I, e[41] = z, e[42] = E) : E = e[42], E;
2065
+ ] }), e[7] = y, e[8] = n, e[9] = I) : I = e[9];
2066
+ let D;
2067
+ e[10] !== r ? (D = r ? /* @__PURE__ */ o(fo, { ...r }) : null, e[10] = r, e[11] = D) : D = e[11];
2068
+ let T;
2069
+ e[12] !== D || e[13] !== I ? (T = /* @__PURE__ */ o(j, { gap: "2xs", flexWrap: "wrap", alignItems: "center", children: /* @__PURE__ */ x(j, { gap: "2xs", flexShrink: 0, children: [
2070
+ I,
2071
+ D
2072
+ ] }) }), e[12] = D, e[13] = I, e[14] = T) : T = e[14];
2073
+ let b;
2074
+ e[15] !== i ? (b = /* @__PURE__ */ o(j, { align: "start", gap: "2xs", flexWrap: "wrap", minW: "0", children: /* @__PURE__ */ o(W, { textStyle: "label/S/regular", flex: "1", minW: "0", overflowWrap: "anywhere", children: i }) }), e[15] = i, e[16] = b) : b = e[16];
2075
+ let P;
2076
+ e[17] !== S ? (P = S.length > 0 && /* @__PURE__ */ o(Dt, { gap: "2xs", children: S.map(po) }), e[17] = S, e[18] = P) : P = e[18];
2077
+ let w;
2078
+ return e[19] !== c || e[20] !== f || e[21] !== u || e[22] !== d || e[23] !== T || e[24] !== b || e[25] !== P || e[26] !== C || e[27] !== k ? (w = /* @__PURE__ */ x(B, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "100%", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: v, cursor: C, draggable: c, onDragStart: d, onDragEnd: u, onClick: f, "data-selected": k, "data-testid": "ticket-card", children: [
2079
+ T,
2080
+ b,
2081
+ P
2082
+ ] }), e[19] = c, e[20] = f, e[21] = u, e[22] = d, e[23] = T, e[24] = b, e[25] = P, e[26] = C, e[27] = k, e[28] = w) : w = e[28], w;
1957
2083
  };
1958
- function El(l) {
1959
- return /* @__PURE__ */ i(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2084
+ function po(l) {
2085
+ return /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
1960
2086
  }
1961
- const zl = (l) => {
1962
- const e = A(27), {
2087
+ const ho = (l) => {
2088
+ const e = R(27), {
1963
2089
  columns: n,
1964
2090
  selectedItemId: t,
1965
- onMoveItem: o,
2091
+ onMoveItem: i,
1966
2092
  onMoveToGroup: s,
1967
2093
  onCreateStart: r,
1968
2094
  onColumnAction: a
1969
- } = l, c = t === void 0 ? null : t, [d, u] = pe(null), [f, g] = pe(null), h = Ml;
1970
- let p;
1971
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
1972
- u(null), g(null);
1973
- }, e[0] = p) : p = e[0];
1974
- const m = p;
1975
- let b;
1976
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = (w) => (C) => {
1977
- C.preventDefault(), C.dataTransfer.dropEffect = "move", u(w);
1978
- }, e[1] = b) : b = e[1];
1979
- const y = b;
1980
- let v;
1981
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (w) => {
1982
- w.currentTarget.contains(w.relatedTarget) || u(null);
1983
- }, e[2] = v) : v = e[2];
1984
- const k = v;
1985
- let _;
1986
- e[3] !== o ? (_ = (w) => (C) => {
1987
- C.preventDefault(), u(null);
1988
- const I = C.dataTransfer.getData("text/plain");
1989
- I && o?.(I, w);
1990
- }, e[3] = o, e[4] = _) : _ = e[4];
1991
- const D = _;
1992
- let T;
1993
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
2095
+ } = l, c = t === void 0 ? null : t, [d, u] = ge(null), [f, p] = ge(null), h = bo;
2096
+ let g;
2097
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = () => {
2098
+ u(null), p(null);
2099
+ }, e[0] = g) : g = e[0];
2100
+ const S = g;
2101
+ let m;
2102
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (P) => (w) => {
2103
+ w.preventDefault(), w.dataTransfer.dropEffect = "move", u(P);
2104
+ }, e[1] = m) : m = e[1];
2105
+ const v = m;
2106
+ let C;
2107
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (P) => {
2108
+ P.currentTarget.contains(P.relatedTarget) || u(null);
2109
+ }, e[2] = C) : C = e[2];
2110
+ const k = C;
2111
+ let y;
2112
+ e[3] !== i ? (y = (P) => (w) => {
2113
+ w.preventDefault(), u(null);
2114
+ const _ = w.dataTransfer.getData("text/plain");
2115
+ _ && i?.(_, P);
2116
+ }, e[3] = i, e[4] = y) : y = e[4];
2117
+ const I = y;
2118
+ let D;
2119
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
1994
2120
  display: "flex",
1995
2121
  alignItems: "stretch",
1996
2122
  gap: "0",
1997
2123
  pb: "2xs",
1998
2124
  minH: "100%"
1999
- }, e[5] = T) : T = e[5];
2000
- let P;
2001
- if (e[6] !== d || e[7] !== f || e[8] !== n || e[9] !== D || e[10] !== a || e[11] !== r || e[12] !== o || e[13] !== s || e[14] !== c) {
2002
- let w;
2003
- e[16] !== d || e[17] !== f || e[18] !== D || e[19] !== a || e[20] !== r || e[21] !== o || e[22] !== s || e[23] !== c ? (w = (C) => /* @__PURE__ */ x(H, { "data-testid": `board-column-${C.id}`, gap: "xs", _notFirst: {
2125
+ }, e[5] = D) : D = e[5];
2126
+ let T;
2127
+ if (e[6] !== d || e[7] !== f || e[8] !== n || e[9] !== I || e[10] !== a || e[11] !== r || e[12] !== i || e[13] !== s || e[14] !== c) {
2128
+ let P;
2129
+ e[16] !== d || e[17] !== f || e[18] !== I || e[19] !== a || e[20] !== r || e[21] !== i || e[22] !== s || e[23] !== c ? (P = (w) => /* @__PURE__ */ x(B, { "data-testid": `board-column-${w.id}`, gap: "xs", _notFirst: {
2004
2130
  borderLeft: "1px solid",
2005
2131
  borderColor: "border.muted"
2006
- }, background: d === C.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: C.canDragIn ? y(C.id) : void 0, onDragLeave: C.canDragIn ? k : void 0, onDrop: C.canDragIn ? D(C.id) : void 0, children: [
2007
- /* @__PURE__ */ i(Al, { column: C, onCreateStart: r, onColumnAction: a }),
2008
- /* @__PURE__ */ i(ye, { flex: "1", minH: "0", verticalScrollbarProps: {
2132
+ }, background: d === w.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: w.canDragIn ? v(w.id) : void 0, onDragLeave: w.canDragIn ? k : void 0, onDrop: w.canDragIn ? I(w.id) : void 0, children: [
2133
+ /* @__PURE__ */ o(mo, { column: w, onCreateStart: r, onColumnAction: a }),
2134
+ /* @__PURE__ */ o(ke, { flex: "1", minH: "0", verticalScrollbarProps: {
2009
2135
  margin: "0"
2010
2136
  }, contentProps: {
2011
2137
  spaceY: "sm",
2012
2138
  ps: "xs",
2013
2139
  pe: "xs"
2014
- }, children: C.groups && C.groups.length > 0 ? C.groups.map((I) => {
2015
- const z = `${C.id}::${I.key}`;
2016
- return /* @__PURE__ */ i(Ol, { group: I, selectedItemId: c, canDragIn: C.canDragIn, canDragOut: C.canDragOut, isDropTarget: f === z, onDragStart: h, onDragEnd: m, onGroupDragOver: ($) => {
2017
- $.preventDefault(), $.stopPropagation(), $.dataTransfer.dropEffect = "move", g(z), u(null);
2140
+ }, children: w.groups && w.groups.length > 0 ? w.groups.map((_) => {
2141
+ const L = `${w.id}::${_.key}`;
2142
+ return /* @__PURE__ */ o(go, { group: _, selectedItemId: c, canDragIn: w.canDragIn, canDragOut: w.canDragOut, isDropTarget: f === L, onDragStart: h, onDragEnd: S, onGroupDragOver: ($) => {
2143
+ $.preventDefault(), $.stopPropagation(), $.dataTransfer.dropEffect = "move", p(L), u(null);
2018
2144
  }, onGroupDragLeave: ($) => {
2019
- $.currentTarget.contains($.relatedTarget) || g(null);
2145
+ $.currentTarget.contains($.relatedTarget) || p(null);
2020
2146
  }, onGroupDrop: ($) => {
2021
- $.preventDefault(), $.stopPropagation(), g(null), u(null);
2022
- const O = $.dataTransfer.getData("text/plain");
2023
- O && (o?.(O, C.id), s?.(O, I.key));
2024
- } }, I.key);
2025
- }) : C.items.map((I) => /* @__PURE__ */ i(Tt, { ...I.cardProps, isSelected: I.id === c, draggable: C.canDragOut, onDragStart: C.canDragOut ? h(I.id) : void 0, onDragEnd: C.canDragOut ? m : void 0 }, I.id)) })
2026
- ] }, C.id), e[16] = d, e[17] = f, e[18] = D, e[19] = a, e[20] = r, e[21] = o, e[22] = s, e[23] = c, e[24] = w) : w = e[24], P = n.map(w), e[6] = d, e[7] = f, e[8] = n, e[9] = D, e[10] = a, e[11] = r, e[12] = o, e[13] = s, e[14] = c, e[15] = P;
2147
+ $.preventDefault(), $.stopPropagation(), p(null), u(null);
2148
+ const z = $.dataTransfer.getData("text/plain");
2149
+ z && (i?.(z, w.id), s?.(z, _.key));
2150
+ } }, _.key);
2151
+ }) : w.items.map((_) => /* @__PURE__ */ o(Ft, { ..._.cardProps, isSelected: _.id === c, draggable: w.canDragOut, onDragStart: w.canDragOut ? h(_.id) : void 0, onDragEnd: w.canDragOut ? S : void 0 }, _.id)) })
2152
+ ] }, w.id), e[16] = d, e[17] = f, e[18] = I, e[19] = a, e[20] = r, e[21] = i, e[22] = s, e[23] = c, e[24] = P) : P = e[24], T = n.map(P), e[6] = d, e[7] = f, e[8] = n, e[9] = I, e[10] = a, e[11] = r, e[12] = i, e[13] = s, e[14] = c, e[15] = T;
2027
2153
  } else
2028
- P = e[15];
2029
- let S;
2030
- return e[25] !== P ? (S = /* @__PURE__ */ i(ye, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: P }), e[25] = P, e[26] = S) : S = e[26], S;
2031
- }, Ol = (l) => {
2032
- const e = A(26), {
2154
+ T = e[15];
2155
+ let b;
2156
+ return e[25] !== T ? (b = /* @__PURE__ */ o(ke, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: D, children: T }), e[25] = T, e[26] = b) : b = e[26], b;
2157
+ }, go = (l) => {
2158
+ const e = R(26), {
2033
2159
  group: n,
2034
2160
  selectedItemId: t,
2035
- canDragIn: o,
2161
+ canDragIn: i,
2036
2162
  canDragOut: s,
2037
2163
  isDropTarget: r,
2038
2164
  onDragStart: a,
@@ -2040,55 +2166,55 @@ const zl = (l) => {
2040
2166
  onGroupDragOver: d,
2041
2167
  onGroupDragLeave: u,
2042
2168
  onGroupDrop: f
2043
- } = l, [g, h] = pe(!0), p = r ? "bg.subtle" : "transparent", m = o ? d : void 0, b = o ? u : void 0, y = o ? f : void 0;
2044
- let v;
2045
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
2046
- bg: "bg.muted"
2047
- }, e[0] = v) : v = e[0];
2169
+ } = l, [p, h] = ge(!0), g = r ? "bg.subtle" : "transparent", S = i ? d : void 0, m = i ? u : void 0, v = i ? f : void 0;
2170
+ let C;
2171
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
2172
+ bg: "bg.hover"
2173
+ }, e[0] = C) : C = e[0];
2048
2174
  let k;
2049
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => h(Gl), e[1] = k) : k = e[1];
2050
- const _ = g ? "rotate(90deg)" : "rotate(0deg)";
2175
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => h(So), e[1] = k) : k = e[1];
2176
+ const y = p ? "rotate(90deg)" : "rotate(0deg)";
2177
+ let I;
2178
+ e[2] !== y ? (I = /* @__PURE__ */ o(V, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ o(ae, { as: Te, boxSize: "14px", color: "fg.muted", transform: y, transition: "transform 0.15s ease" }) }), e[2] = y, e[3] = I) : I = e[3];
2051
2179
  let D;
2052
- e[2] !== _ ? (D = /* @__PURE__ */ i(j, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ i(ue, { as: Ce, boxSize: "14px", color: "fg.muted", transform: _, transition: "transform 0.15s ease" }) }), e[2] = _, e[3] = D) : D = e[3];
2180
+ e[4] !== n.label ? (D = /* @__PURE__ */ o(W, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = D) : D = e[5];
2053
2181
  let T;
2054
- e[4] !== n.label ? (T = /* @__PURE__ */ i(L, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = T) : T = e[5];
2055
- let P;
2056
- e[6] !== n.items.length ? (P = /* @__PURE__ */ i(Pe, { variant: "subtle", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = P) : P = e[7];
2057
- let S;
2058
- e[8] !== D || e[9] !== T || e[10] !== P ? (S = /* @__PURE__ */ x(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: v, borderRadius: "sm", onClick: k, children: [
2182
+ e[6] !== n.items.length ? (T = /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = T) : T = e[7];
2183
+ let b;
2184
+ e[8] !== I || e[9] !== D || e[10] !== T ? (b = /* @__PURE__ */ x(j, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: C, borderRadius: "sm", onClick: k, children: [
2185
+ I,
2059
2186
  D,
2060
- T,
2061
- P
2062
- ] }), e[8] = D, e[9] = T, e[10] = P, e[11] = S) : S = e[11];
2187
+ T
2188
+ ] }), e[8] = I, e[9] = D, e[10] = T, e[11] = b) : b = e[11];
2189
+ let P;
2190
+ e[12] !== s || e[13] !== p || e[14] !== n.items || e[15] !== c || e[16] !== a || e[17] !== t ? (P = p && /* @__PURE__ */ o(B, { gap: "sm", pt: "xs", children: n.items.map((_) => /* @__PURE__ */ o(Ft, { ..._.cardProps, isSelected: _.id === t, draggable: s, onDragStart: s ? a(_.id) : void 0, onDragEnd: s ? c : void 0 }, _.id)) }), e[12] = s, e[13] = p, e[14] = n.items, e[15] = c, e[16] = a, e[17] = t, e[18] = P) : P = e[18];
2063
2191
  let w;
2064
- e[12] !== s || e[13] !== g || e[14] !== n.items || e[15] !== c || e[16] !== a || e[17] !== t ? (w = g && /* @__PURE__ */ i(H, { gap: "sm", pt: "xs", children: n.items.map((I) => /* @__PURE__ */ i(Tt, { ...I.cardProps, isSelected: I.id === t, draggable: s, onDragStart: s ? a(I.id) : void 0, onDragEnd: s ? c : void 0 }, I.id)) }), e[12] = s, e[13] = g, e[14] = n.items, e[15] = c, e[16] = a, e[17] = t, e[18] = w) : w = e[18];
2065
- let C;
2066
- return e[19] !== p || e[20] !== m || e[21] !== S || e[22] !== w || e[23] !== b || e[24] !== y ? (C = /* @__PURE__ */ x(H, { gap: "0", borderRadius: "sm", background: p, transition: "background 150ms ease", onDragOver: m, onDragLeave: b, onDrop: y, children: [
2067
- S,
2068
- w
2069
- ] }), e[19] = p, e[20] = m, e[21] = S, e[22] = w, e[23] = b, e[24] = y, e[25] = C) : C = e[25], C;
2070
- }, Al = (l) => {
2071
- const e = A(20), {
2192
+ return e[19] !== g || e[20] !== S || e[21] !== b || e[22] !== P || e[23] !== m || e[24] !== v ? (w = /* @__PURE__ */ x(B, { gap: "0", borderRadius: "sm", background: g, transition: "background 150ms ease", onDragOver: S, onDragLeave: m, onDrop: v, children: [
2193
+ b,
2194
+ P
2195
+ ] }), e[19] = g, e[20] = S, e[21] = b, e[22] = P, e[23] = m, e[24] = v, e[25] = w) : w = e[25], w;
2196
+ }, mo = (l) => {
2197
+ const e = R(20), {
2072
2198
  column: n,
2073
2199
  onCreateStart: t,
2074
- onColumnAction: o
2200
+ onColumnAction: i
2075
2201
  } = l;
2076
2202
  let s;
2077
- e[0] !== n.label ? (s = /* @__PURE__ */ i(L, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = s) : s = e[1];
2203
+ e[0] !== n.label ? (s = /* @__PURE__ */ o(W, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = s) : s = e[1];
2078
2204
  const r = n.color ?? "gray";
2079
2205
  let a;
2080
- e[2] !== n.items.length || e[3] !== r ? (a = /* @__PURE__ */ i(Pe, { variant: "subtle", colorPalette: r, children: n.items.length }), e[2] = n.items.length, e[3] = r, e[4] = a) : a = e[4];
2206
+ e[2] !== n.items.length || e[3] !== r ? (a = /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: r, children: n.items.length }), e[2] = n.items.length, e[3] = r, e[4] = a) : a = e[4];
2081
2207
  let c;
2082
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(Ht, {}), e[5] = c) : c = e[5];
2208
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o(Pt, {}), e[5] = c) : c = e[5];
2083
2209
  let d;
2084
- e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ i(Le, { content: "Create new ticket", children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(ue, { as: yn, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
2210
+ e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ o(xe, { content: "Create new ticket", children: /* @__PURE__ */ o(he, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ o(ae, { as: Gn, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
2085
2211
  let u;
2086
- e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== o ? (u = n.actions.length > 0 && /* @__PURE__ */ x(ie.Root, { children: [
2087
- /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ i(ue, { as: vn, boxSize: "12px" }) }) }),
2088
- /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "180px", bg: "bg", children: n.actions.map((g) => /* @__PURE__ */ i(Re, { primaryLabel: g.label, leftIcon: g.icon, onClick: () => o?.(n.id, g.id) }, g.id)) }) })
2089
- ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = o, e[14] = u) : u = e[14];
2212
+ e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== i ? (u = n.actions.length > 0 && /* @__PURE__ */ x(Y.Root, { children: [
2213
+ /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ o(ae, { as: Nn, boxSize: "12px" }) }) }),
2214
+ /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ o(Y.Content, { minW: "180px", bg: "bg", children: n.actions.map((p) => /* @__PURE__ */ o(De, { primaryLabel: p.label, leftIcon: p.icon, onClick: () => i?.(n.id, p.id) }, p.id)) }) })
2215
+ ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = i, e[14] = u) : u = e[14];
2090
2216
  let f;
2091
- return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== u ? (f = /* @__PURE__ */ x(X, { padding: "xs", gap: "xs", alignItems: "center", children: [
2217
+ return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== u ? (f = /* @__PURE__ */ x(j, { padding: "xs", gap: "xs", alignItems: "center", children: [
2092
2218
  s,
2093
2219
  a,
2094
2220
  c,
@@ -2096,123 +2222,123 @@ const zl = (l) => {
2096
2222
  u
2097
2223
  ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = u, e[19] = f) : f = e[19], f;
2098
2224
  };
2099
- function Ml(l) {
2225
+ function bo(l) {
2100
2226
  return (e) => {
2101
2227
  e.dataTransfer.setData("text/plain", l), e.dataTransfer.effectAllowed = "move";
2102
2228
  };
2103
2229
  }
2104
- function Gl(l) {
2230
+ function So(l) {
2105
2231
  return !l;
2106
2232
  }
2107
- const Nl = [{
2233
+ const xo = [{
2108
2234
  id: "ticket",
2109
2235
  header: "",
2110
2236
  cell: ({
2111
2237
  row: l
2112
- }) => /* @__PURE__ */ i(Wl, { row: l })
2113
- }], Hl = (l) => {
2238
+ }) => /* @__PURE__ */ o(vo, { row: l })
2239
+ }], yo = (l) => {
2114
2240
  const {
2115
2241
  items: e,
2116
2242
  selectedItemId: n = null,
2117
2243
  onItemClick: t
2118
- } = l, [o, s] = pe(!0), r = Cn({
2244
+ } = l, [i, s] = ge(!0), r = jn({
2119
2245
  data: e,
2120
- columns: Nl,
2246
+ columns: xo,
2121
2247
  state: {
2122
- expanded: o
2248
+ expanded: i
2123
2249
  },
2124
2250
  onExpandedChange: s,
2125
2251
  getSubRows: (a) => a.children,
2126
- getCoreRowModel: In(),
2127
- getExpandedRowModel: wn(),
2252
+ getCoreRowModel: Un(),
2253
+ getExpandedRowModel: Xn(),
2128
2254
  getRowId: (a) => a.id
2129
2255
  });
2130
- return /* @__PURE__ */ i(j, { children: r.getRowModel().rows.map((a) => {
2256
+ return /* @__PURE__ */ o(V, { children: r.getRowModel().rows.map((a) => {
2131
2257
  const c = a.original, d = c.id === n, u = a.getCanExpand();
2132
- return /* @__PURE__ */ i(X, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: d ? "bg.muted" : "transparent", _hover: {
2133
- background: "bg.muted"
2258
+ return /* @__PURE__ */ o(j, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: d ? "bg.active" : "transparent", _hover: {
2259
+ background: d ? "bg.active" : "bg.hover"
2134
2260
  }, onClick: () => {
2135
2261
  u ? a.toggleExpanded() : (c.onClick?.(), t?.(c));
2136
- }, "data-selected": d ? "true" : void 0, children: kn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
2262
+ }, "data-selected": d ? "true" : void 0, children: Yn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
2137
2263
  }) });
2138
- }, Wl = (l) => {
2139
- const e = A(25), {
2264
+ }, vo = (l) => {
2265
+ const e = R(25), {
2140
2266
  row: n
2141
- } = l, t = n.original, o = n.depth, s = o > 0 ? `${o * 24}px` : void 0;
2267
+ } = l, t = n.original, i = n.depth, s = i > 0 ? `${i * 24}px` : void 0;
2142
2268
  let r;
2143
- e[0] !== o || e[1] !== n ? (r = n.getCanExpand() ? /* @__PURE__ */ i(Bl, { row: n }) : o > 0 ? /* @__PURE__ */ i(Fl, {}) : null, e[0] = o, e[1] = n, e[2] = r) : r = e[2];
2269
+ e[0] !== i || e[1] !== n ? (r = n.getCanExpand() ? /* @__PURE__ */ o(Co, { row: n }) : i > 0 ? /* @__PURE__ */ o(wo, {}) : null, e[0] = i, e[1] = n, e[2] = r) : r = e[2];
2144
2270
  let a;
2145
- e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(ue, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[3] = t.statusColor, e[4] = t.statusIcon, e[5] = a) : a = e[5];
2271
+ e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ o(ae, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[3] = t.statusColor, e[4] = t.statusIcon, e[5] = a) : a = e[5];
2146
2272
  let c;
2147
- e[6] !== t.ticketId ? (c = /* @__PURE__ */ i(L, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
2273
+ e[6] !== t.ticketId ? (c = /* @__PURE__ */ o(W, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
2148
2274
  let d;
2149
- e[8] !== t.title ? (d = /* @__PURE__ */ i(L, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
2275
+ e[8] !== t.title ? (d = /* @__PURE__ */ o(W, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
2150
2276
  let u;
2151
- e[10] !== t.badges ? (u = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(mt, { gap: "2xs", flexShrink: 0, children: t.badges.map(Vl) }), e[10] = t.badges, e[11] = u) : u = e[11];
2277
+ e[10] !== t.badges ? (u = t.badges && t.badges.length > 0 && /* @__PURE__ */ o(Dt, { gap: "2xs", flexShrink: 0, children: t.badges.map(ko) }), e[10] = t.badges, e[11] = u) : u = e[11];
2152
2278
  let f;
2153
- e[12] !== t.assigneeIcon ? (f = t.assigneeIcon && /* @__PURE__ */ i(j, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = f) : f = e[13];
2154
- let g;
2155
- e[14] !== t.date ? (g = t.date && /* @__PURE__ */ i(L, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = g) : g = e[15];
2279
+ e[12] !== t.assigneeIcon ? (f = t.assigneeIcon && /* @__PURE__ */ o(V, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = f) : f = e[13];
2280
+ let p;
2281
+ e[14] !== t.date ? (p = t.date && /* @__PURE__ */ o(W, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = p) : p = e[15];
2156
2282
  let h;
2157
- return e[16] !== s || e[17] !== r || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== u || e[22] !== f || e[23] !== g ? (h = /* @__PURE__ */ x(X, { gap: "sm", flex: "1", paddingLeft: s, children: [
2283
+ return e[16] !== s || e[17] !== r || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== u || e[22] !== f || e[23] !== p ? (h = /* @__PURE__ */ x(j, { gap: "sm", flex: "1", paddingLeft: s, children: [
2158
2284
  r,
2159
2285
  a,
2160
2286
  c,
2161
2287
  d,
2162
2288
  u,
2163
2289
  f,
2164
- g
2165
- ] }), e[16] = s, e[17] = r, e[18] = a, e[19] = c, e[20] = d, e[21] = u, e[22] = f, e[23] = g, e[24] = h) : h = e[24], h;
2166
- }, Bl = (l) => {
2167
- const e = A(6), {
2290
+ p
2291
+ ] }), e[16] = s, e[17] = r, e[18] = a, e[19] = c, e[20] = d, e[21] = u, e[22] = f, e[23] = p, e[24] = h) : h = e[24], h;
2292
+ }, Co = (l) => {
2293
+ const e = R(6), {
2168
2294
  row: n
2169
- } = l, t = n.getIsExpanded(), o = t ? "true" : void 0, s = t ? "Collapse group" : "Expand group", r = t ? "rotate(90deg)" : "rotate(0deg)";
2295
+ } = l, t = n.getIsExpanded(), i = t ? "true" : void 0, s = t ? "Collapse group" : "Expand group", r = t ? "rotate(90deg)" : "rotate(0deg)";
2170
2296
  let a;
2171
- e[0] !== r ? (a = /* @__PURE__ */ i(Ce, { size: 14, style: {
2297
+ e[0] !== r ? (a = /* @__PURE__ */ o(Te, { size: 14, style: {
2172
2298
  color: "var(--chakra-colors-fg-muted)",
2173
2299
  transform: r,
2174
2300
  transition: "transform 0.15s ease"
2175
2301
  } }), e[0] = r, e[1] = a) : a = e[1];
2176
2302
  let c;
2177
- return e[2] !== o || e[3] !== s || e[4] !== a ? (c = /* @__PURE__ */ i(j, { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", "data-expanded": o, "aria-label": s, children: a }), e[2] = o, e[3] = s, e[4] = a, e[5] = c) : c = e[5], c;
2178
- }, Fl = () => {
2179
- const l = A(1);
2303
+ return e[2] !== i || e[3] !== s || e[4] !== a ? (c = /* @__PURE__ */ o(V, { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", "data-expanded": i, "aria-label": s, children: a }), e[2] = i, e[3] = s, e[4] = a, e[5] = c) : c = e[5], c;
2304
+ }, wo = () => {
2305
+ const l = R(1);
2180
2306
  let e;
2181
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x(j, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2182
- /* @__PURE__ */ i(j, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
2183
- /* @__PURE__ */ i(j, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
2307
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x(V, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2308
+ /* @__PURE__ */ o(V, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
2309
+ /* @__PURE__ */ o(V, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
2184
2310
  ] }), l[0] = e) : e = l[0], e;
2185
2311
  };
2186
- function Vl(l) {
2187
- return /* @__PURE__ */ i(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2312
+ function ko(l) {
2313
+ return /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2188
2314
  }
2189
- const Ge = {
2315
+ const qe = {
2190
2316
  status: "No status",
2191
2317
  assignee: "Unassigned"
2192
- }, Ne = (l, e) => !l || l.trim() === "" ? e : l, ut = (l, e) => e === "none" ? "All" : e === "status" ? Ne(l.status, Ge.status) : Ne(l.assignee, Ge.assignee), ft = (l, e) => l.localeCompare(e, void 0, {
2318
+ }, Je = (l, e) => !l || l.trim() === "" ? e : l, vt = (l, e) => e === "none" ? "All" : e === "status" ? Je(l.status, qe.status) : Je(l.assignee, qe.assignee), Ct = (l, e) => l.localeCompare(e, void 0, {
2193
2319
  numeric: !0
2194
- }), Ve = (l, e) => e === "asc" ? l : l * -1, Oe = (l, e) => e.field === "manual" ? l : [...l].sort((n, t) => {
2320
+ }), nt = (l, e) => e === "asc" ? l : l * -1, Ue = (l, e) => e.field === "manual" ? l : [...l].sort((n, t) => {
2195
2321
  if (e.field === "updated") {
2196
- const o = new Date(n.updatedAt ?? 0).getTime(), s = new Date(t.updatedAt ?? 0).getTime();
2197
- return Ve(o - s, e.direction);
2322
+ const i = new Date(n.updatedAt ?? 0).getTime(), s = new Date(t.updatedAt ?? 0).getTime();
2323
+ return nt(i - s, e.direction);
2198
2324
  }
2199
- return e.field === "title" ? Ve(n.title.localeCompare(t.title), e.direction) : Ve(n.ticketId.localeCompare(t.ticketId, void 0, {
2325
+ return e.field === "title" ? nt(n.title.localeCompare(t.title), e.direction) : nt(n.ticketId.localeCompare(t.ticketId, void 0, {
2200
2326
  numeric: !0
2201
2327
  }), e.direction);
2202
- }), jl = (l, e) => {
2328
+ }), Io = (l, e) => {
2203
2329
  const {
2204
2330
  columnGrouping: n,
2205
2331
  rowGrouping: t,
2206
- knownColumnKeys: o
2332
+ knownColumnKeys: i
2207
2333
  } = e, s = /* @__PURE__ */ new Map();
2208
- if (o)
2209
- for (const a of o)
2334
+ if (i)
2335
+ for (const a of i)
2210
2336
  s.set(a, []);
2211
2337
  for (const a of l) {
2212
- const c = ut(a, n);
2338
+ const c = vt(a, n);
2213
2339
  s.set(c, [...s.get(c) ?? [], a]);
2214
2340
  }
2215
- return [...s.entries()].sort(([a], [c]) => ft(a, c)).map(([a, c]) => {
2341
+ return [...s.entries()].sort(([a], [c]) => Ct(a, c)).map(([a, c]) => {
2216
2342
  if (t === "none")
2217
2343
  return {
2218
2344
  key: a,
@@ -2222,13 +2348,13 @@ const Ge = {
2222
2348
  };
2223
2349
  const d = /* @__PURE__ */ new Map();
2224
2350
  for (const f of c) {
2225
- const g = ut(f, t);
2226
- d.set(g, [...d.get(g) ?? [], f]);
2351
+ const p = vt(f, t);
2352
+ d.set(p, [...d.get(p) ?? [], f]);
2227
2353
  }
2228
- const u = [...d.entries()].sort(([f], [g]) => ft(f, g)).map(([f, g]) => ({
2354
+ const u = [...d.entries()].sort(([f], [p]) => Ct(f, p)).map(([f, p]) => ({
2229
2355
  key: f,
2230
2356
  label: f,
2231
- tickets: g
2357
+ tickets: p
2232
2358
  }));
2233
2359
  return {
2234
2360
  key: a,
@@ -2237,16 +2363,16 @@ const Ge = {
2237
2363
  rows: u
2238
2364
  };
2239
2365
  });
2240
- }, Dt = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Ne(l.status, Ge.status)] : [Ne(l.assignee, Ge.assignee)], Xl = (l, e) => {
2366
+ }, Vt = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Je(l.status, qe.status)] : [Je(l.assignee, qe.assignee)], Po = (l, e) => {
2241
2367
  const n = Object.entries(e).filter(([, t]) => t && t.length > 0);
2242
- return n.length === 0 ? l : l.filter((t) => n.every(([o, s]) => Dt(t, o).some((a) => s?.includes(a))));
2243
- }, Ul = (l, e) => {
2368
+ return n.length === 0 ? l : l.filter((t) => n.every(([i, s]) => Vt(t, i).some((a) => s?.includes(a))));
2369
+ }, To = (l, e) => {
2244
2370
  const n = {};
2245
2371
  for (const t of l)
2246
- for (const o of Dt(t, e))
2247
- n[o] = (n[o] ?? 0) + 1;
2372
+ for (const i of Vt(t, e))
2373
+ n[i] = (n[i] ?? 0) + 1;
2248
2374
  return n;
2249
- }, Yl = {
2375
+ }, Do = {
2250
2376
  viewMode: "board",
2251
2377
  columnGrouping: "status",
2252
2378
  rowGrouping: "none",
@@ -2255,7 +2381,7 @@ const Ge = {
2255
2381
  direction: "asc"
2256
2382
  },
2257
2383
  displayProperties: ["labels"]
2258
- }, Kl = [{
2384
+ }, _o = [{
2259
2385
  value: "status",
2260
2386
  label: "Status"
2261
2387
  }, {
@@ -2264,7 +2390,7 @@ const Ge = {
2264
2390
  }, {
2265
2391
  value: "none",
2266
2392
  label: "No grouping"
2267
- }], ql = [{
2393
+ }], Lo = [{
2268
2394
  value: "manual",
2269
2395
  label: "Manual"
2270
2396
  }, {
@@ -2276,7 +2402,7 @@ const Ge = {
2276
2402
  }, {
2277
2403
  value: "ticketId",
2278
2404
  label: "ID"
2279
- }], Jl = [{
2405
+ }], $o = [{
2280
2406
  value: "id",
2281
2407
  label: "ID"
2282
2408
  }, {
@@ -2291,57 +2417,57 @@ const Ge = {
2291
2417
  }, {
2292
2418
  value: "updated",
2293
2419
  label: "Updated"
2294
- }], Ql = "pstdio/ui/tickets-workspace", Zl = (l) => `${Ql}/${l}`, je = {
2295
- settings: Yl,
2420
+ }], Ro = "pstdio/ui/tickets-workspace", Wo = (l) => `${Ro}/${l}`, lt = {
2421
+ settings: Do,
2296
2422
  filters: {}
2297
- }, ei = () => ({
2423
+ }, Eo = () => ({
2298
2424
  getItem: () => null,
2299
2425
  setItem: () => {
2300
2426
  },
2301
2427
  removeItem: () => {
2302
2428
  }
2303
- }), ti = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], ni = (l) => {
2429
+ }), zo = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], Ao = (l) => {
2304
2430
  const {
2305
2431
  storageKey: e,
2306
2432
  initialState: n
2307
2433
  } = l, t = {
2308
2434
  settings: {
2309
- ...je.settings,
2435
+ ...lt.settings,
2310
2436
  ...n?.settings ?? {}
2311
2437
  },
2312
- filters: n?.filters ?? je.filters
2438
+ filters: n?.filters ?? lt.filters
2313
2439
  };
2314
- return vt()(St((o) => ({
2440
+ return zt()(Wt((i) => ({
2315
2441
  ...t,
2316
- setViewMode: (s) => o((r) => ({
2442
+ setViewMode: (s) => i((r) => ({
2317
2443
  ...r,
2318
2444
  settings: {
2319
2445
  ...r.settings,
2320
2446
  viewMode: s
2321
2447
  }
2322
2448
  })),
2323
- setColumnGrouping: (s) => o((r) => ({
2449
+ setColumnGrouping: (s) => i((r) => ({
2324
2450
  ...r,
2325
2451
  settings: {
2326
2452
  ...r.settings,
2327
2453
  columnGrouping: s
2328
2454
  }
2329
2455
  })),
2330
- setRowGrouping: (s) => o((r) => ({
2456
+ setRowGrouping: (s) => i((r) => ({
2331
2457
  ...r,
2332
2458
  settings: {
2333
2459
  ...r.settings,
2334
2460
  rowGrouping: s
2335
2461
  }
2336
2462
  })),
2337
- setOrdering: (s) => o((r) => ({
2463
+ setOrdering: (s) => i((r) => ({
2338
2464
  ...r,
2339
2465
  settings: {
2340
2466
  ...r.settings,
2341
2467
  ordering: s
2342
2468
  }
2343
2469
  })),
2344
- setOrderingField: (s) => o((r) => ({
2470
+ setOrderingField: (s) => i((r) => ({
2345
2471
  ...r,
2346
2472
  settings: {
2347
2473
  ...r.settings,
@@ -2351,7 +2477,7 @@ const Ge = {
2351
2477
  }
2352
2478
  }
2353
2479
  })),
2354
- toggleSortDirection: () => o((s) => ({
2480
+ toggleSortDirection: () => i((s) => ({
2355
2481
  ...s,
2356
2482
  settings: {
2357
2483
  ...s.settings,
@@ -2361,7 +2487,7 @@ const Ge = {
2361
2487
  }
2362
2488
  }
2363
2489
  })),
2364
- toggleDisplayProperty: (s) => o((r) => {
2490
+ toggleDisplayProperty: (s) => i((r) => {
2365
2491
  const a = r.settings.displayProperties.includes(s) ? r.settings.displayProperties.filter((c) => c !== s) : [...r.settings.displayProperties, s];
2366
2492
  return {
2367
2493
  ...r,
@@ -2371,15 +2497,15 @@ const Ge = {
2371
2497
  }
2372
2498
  };
2373
2499
  }),
2374
- setFilter: (s, r) => o((a) => ({
2500
+ setFilter: (s, r) => i((a) => ({
2375
2501
  ...a,
2376
2502
  filters: {
2377
2503
  ...a.filters,
2378
2504
  [s]: r
2379
2505
  }
2380
2506
  })),
2381
- toggleFilterValue: (s, r) => o((a) => {
2382
- const c = a.filters[s] ?? [], d = ti(c, r), u = {
2507
+ toggleFilterValue: (s, r) => i((a) => {
2508
+ const c = a.filters[s] ?? [], d = zo(c, r), u = {
2383
2509
  ...a.filters,
2384
2510
  [s]: d
2385
2511
  };
@@ -2388,7 +2514,7 @@ const Ge = {
2388
2514
  filters: u
2389
2515
  };
2390
2516
  }),
2391
- clearFilter: (s) => o((r) => {
2517
+ clearFilter: (s) => i((r) => {
2392
2518
  const a = {
2393
2519
  ...r.filters
2394
2520
  };
@@ -2397,62 +2523,62 @@ const Ge = {
2397
2523
  filters: a
2398
2524
  };
2399
2525
  }),
2400
- clearAllFilters: () => o((s) => ({
2526
+ clearAllFilters: () => i((s) => ({
2401
2527
  ...s,
2402
2528
  filters: {}
2403
2529
  })),
2404
- reset: () => o(je)
2530
+ reset: () => i(lt)
2405
2531
  }), {
2406
- name: Zl(e),
2407
- storage: yt(() => typeof globalThis.localStorage > "u" ? ei() : globalThis.localStorage),
2408
- partialize: (o) => ({
2409
- settings: o.settings,
2410
- filters: o.filters
2532
+ name: Wo(e),
2533
+ storage: Et(() => typeof globalThis.localStorage > "u" ? Eo() : globalThis.localStorage),
2534
+ partialize: (i) => ({
2535
+ settings: i.settings,
2536
+ filters: i.filters
2411
2537
  })
2412
2538
  }));
2413
- }, gt = /* @__PURE__ */ new Map(), li = (l) => {
2414
- const e = gt.get(l);
2539
+ }, wt = /* @__PURE__ */ new Map(), Oo = (l) => {
2540
+ const e = wt.get(l);
2415
2541
  if (e)
2416
2542
  return e;
2417
- const n = ni({
2543
+ const n = Ao({
2418
2544
  storageKey: l
2419
2545
  });
2420
- return gt.set(l, n), n;
2421
- }, be = (l, e) => {
2422
- const n = A(2);
2546
+ return wt.set(l, n), n;
2547
+ }, Se = (l, e) => {
2548
+ const n = R(2);
2423
2549
  let t;
2424
- return n[0] !== l ? (t = li(l), n[0] = l, n[1] = t) : t = n[1], xt(t, e);
2425
- }, Me = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), ii = {
2550
+ return n[0] !== l ? (t = Oo(l), n[0] = l, n[1] = t) : t = n[1], Rt(t, e);
2551
+ }, Ke = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), Mo = {
2426
2552
  status: (l) => l.status ? [l.status] : [],
2427
2553
  assignee: (l) => l.assignee ? [l.assignee] : [],
2428
2554
  labels: (l) => l.labels ?? []
2429
- }, Xe = (l, e) => {
2555
+ }, ot = (l, e) => {
2430
2556
  const n = /* @__PURE__ */ new Set();
2431
2557
  for (const t of l) {
2432
- const o = ii[e](t);
2433
- for (const s of o)
2558
+ const i = Mo[e](t);
2559
+ for (const s of i)
2434
2560
  n.add(s);
2435
2561
  }
2436
- return [...n].sort((t, o) => t.localeCompare(o, void 0, {
2562
+ return [...n].sort((t, i) => t.localeCompare(i, void 0, {
2437
2563
  numeric: !0
2438
2564
  })).map((t) => ({
2439
2565
  value: t,
2440
- label: Me(t)
2566
+ label: Ke(t)
2441
2567
  }));
2442
- }, oi = (l) => [{
2568
+ }, Go = (l) => [{
2443
2569
  id: "status",
2444
2570
  label: "Status",
2445
- options: Xe(l, "status")
2571
+ options: ot(l, "status")
2446
2572
  }, {
2447
2573
  id: "assignee",
2448
2574
  label: "Assignee",
2449
- options: Xe(l, "assignee")
2575
+ options: ot(l, "assignee")
2450
2576
  }, {
2451
2577
  id: "labels",
2452
2578
  label: "Labels",
2453
- options: Xe(l, "labels")
2454
- }], ht = (l, e) => {
2455
- const n = [], t = (o) => e.includes(o);
2579
+ options: ot(l, "labels")
2580
+ }], kt = (l, e) => {
2581
+ const n = [], t = (i) => e.includes(i);
2456
2582
  if (t("status") && l.status && n.push({
2457
2583
  label: l.status,
2458
2584
  color: l.statusColor ?? "gray"
@@ -2463,17 +2589,17 @@ const Ge = {
2463
2589
  label: new Date(l.updatedAt).toLocaleDateString(),
2464
2590
  color: "gray"
2465
2591
  }), t("labels"))
2466
- for (const o of l.labels ?? [])
2592
+ for (const i of l.labels ?? [])
2467
2593
  n.push({
2468
- label: o,
2594
+ label: i,
2469
2595
  color: "purple"
2470
2596
  });
2471
2597
  return n;
2472
- }, so = (l) => {
2473
- const e = A(64), {
2598
+ }, Hi = (l) => {
2599
+ const e = R(64), {
2474
2600
  tickets: n,
2475
2601
  storageKey: t,
2476
- selectedTicketId: o,
2602
+ selectedTicketId: i,
2477
2603
  groupingOptions: s,
2478
2604
  orderingOptions: r,
2479
2605
  displayPropertyOptions: a,
@@ -2481,249 +2607,229 @@ const Ge = {
2481
2607
  knownColumnKeys: d,
2482
2608
  emptyTitle: u,
2483
2609
  emptyDescription: f,
2484
- onTicketClick: g,
2610
+ onTicketClick: p,
2485
2611
  onMoveTicket: h,
2486
- onMoveToGroup: p,
2487
- onCreateTicket: m,
2488
- onColumnAction: b,
2489
- getBoardColumnConfig: y
2490
- } = l, v = o === void 0 ? null : o, k = s === void 0 ? Kl : s, _ = r === void 0 ? ql : r, D = a === void 0 ? Jl : a, T = u === void 0 ? "No tickets found" : u, P = f === void 0 ? "Try changing filters or display settings." : f, S = be(t, ri), w = be(t, si), C = be(t, ai), I = be(t, ci), z = be(t, di), $ = be(t, ui), O = be(t, fi), M = be(t, gi), N = be(t, hi), W = be(t, pi), B = be(t, mi);
2491
- let G, R, E, V;
2492
- if (e[0] !== c || e[1] !== w || e[2] !== y || e[3] !== d || e[4] !== g || e[5] !== S.columnGrouping || e[6] !== S.displayProperties || e[7] !== S.ordering || e[8] !== S.rowGrouping || e[9] !== n) {
2493
- const te = Xl(n, w);
2494
- G = c ?? oi(n);
2612
+ onMoveToGroup: g,
2613
+ onCreateTicket: S,
2614
+ onColumnAction: m,
2615
+ getBoardColumnConfig: v
2616
+ } = l, C = i === void 0 ? null : i, k = s === void 0 ? _o : s, y = r === void 0 ? Lo : r, I = a === void 0 ? $o : a, D = u === void 0 ? "No tickets found" : u, T = f === void 0 ? "Try changing filters or display settings." : f, b = Se(t, No), P = Se(t, Bo), w = Se(t, Ho), _ = Se(t, Fo), L = Se(t, Vo), $ = Se(t, jo), z = Se(t, Xo), O = Se(t, Uo), G = Se(t, Yo), H = Se(t, Ko), X = Se(t, qo);
2617
+ let F, A, E, K;
2618
+ if (e[0] !== c || e[1] !== P || e[2] !== v || e[3] !== d || e[4] !== p || e[5] !== b.columnGrouping || e[6] !== b.displayProperties || e[7] !== b.ordering || e[8] !== b.rowGrouping || e[9] !== n) {
2619
+ const te = Po(n, P);
2620
+ F = c ?? Go(n);
2495
2621
  let ne;
2496
- e[14] !== n ? (ne = (F) => [F.id, Ul(n, F.id)], e[14] = n, e[15] = ne) : ne = e[15], R = Object.fromEntries(G.map(ne));
2497
- const U = d ?? (S.columnGrouping !== "none" ? G.find((F) => F.id === S.columnGrouping)?.options.map(bi) : void 0), Q = jl(te, {
2498
- columnGrouping: S.columnGrouping,
2499
- rowGrouping: S.rowGrouping,
2500
- knownColumnKeys: U
2622
+ e[14] !== n ? (ne = (N) => [N.id, To(n, N.id)], e[14] = n, e[15] = ne) : ne = e[15], A = Object.fromEntries(F.map(ne));
2623
+ const le = d ?? (b.columnGrouping !== "none" ? F.find((N) => N.id === b.columnGrouping)?.options.map(Jo) : void 0), re = Io(te, {
2624
+ columnGrouping: b.columnGrouping,
2625
+ rowGrouping: b.rowGrouping,
2626
+ knownColumnKeys: le
2501
2627
  });
2502
2628
  let oe;
2503
- e[16] !== g || e[17] !== S.displayProperties ? (oe = (F) => ({
2504
- id: F.id,
2505
- ticketId: S.displayProperties.includes("id") ? F.ticketId : "",
2506
- title: F.title,
2507
- badges: ht(F, S.displayProperties),
2508
- onClick: () => g?.(F)
2509
- }), e[16] = g, e[17] = S.displayProperties, e[18] = oe) : oe = e[18];
2510
- const se = oe;
2511
- let re;
2512
- e[19] !== S.ordering || e[20] !== se ? (re = (F) => ({
2513
- id: `group::${F.key}`,
2629
+ e[16] !== p || e[17] !== b.displayProperties ? (oe = (N) => ({
2630
+ id: N.id,
2631
+ ticketId: b.displayProperties.includes("id") ? N.ticketId : "",
2632
+ title: N.title,
2633
+ badges: kt(N, b.displayProperties),
2634
+ onClick: () => p?.(N)
2635
+ }), e[16] = p, e[17] = b.displayProperties, e[18] = oe) : oe = e[18];
2636
+ const ce = oe;
2637
+ let de;
2638
+ e[19] !== b.ordering || e[20] !== ce ? (de = (N) => ({
2639
+ id: `group::${N.key}`,
2514
2640
  ticketId: "",
2515
- title: `${Me(F.label)} (${F.tickets.length})`,
2516
- children: Oe(F.tickets, S.ordering).map((le) => se(le))
2517
- }), e[19] = S.ordering, e[20] = se, e[21] = re) : re = e[21];
2518
- const ce = re;
2519
- E = S.columnGrouping === "none" ? Oe(te, S.ordering).map((F) => se(F)) : Q.map((F) => F.rows.length > 0 ? {
2520
- id: `group::${F.key}`,
2641
+ title: `${Ke(N.label)} (${N.tickets.length})`,
2642
+ children: Ue(N.tickets, b.ordering).map((Q) => ce(Q))
2643
+ }), e[19] = b.ordering, e[20] = ce, e[21] = de) : de = e[21];
2644
+ const ue = de;
2645
+ E = b.columnGrouping === "none" ? Ue(te, b.ordering).map((N) => ce(N)) : re.map((N) => N.rows.length > 0 ? {
2646
+ id: `group::${N.key}`,
2521
2647
  ticketId: "",
2522
- title: `${Me(F.label)} (${F.tickets.length})`,
2523
- children: F.rows.map((le) => ({
2524
- ...ce(le),
2525
- id: `group::${F.key}::${le.key}`
2648
+ title: `${Ke(N.label)} (${N.tickets.length})`,
2649
+ children: N.rows.map((Q) => ({
2650
+ ...ue(Q),
2651
+ id: `group::${N.key}::${Q.key}`
2526
2652
  }))
2527
- } : ce(F));
2528
- let de;
2529
- e[22] !== g || e[23] !== S.displayProperties ? (de = (F) => F.map((le) => ({
2530
- id: le.id,
2653
+ } : ue(N));
2654
+ let me;
2655
+ e[22] !== p || e[23] !== b.displayProperties ? (me = (N) => N.map((Q) => ({
2656
+ id: Q.id,
2531
2657
  cardProps: {
2532
- ticketId: S.displayProperties.includes("id") ? le.ticketId : "",
2533
- parentPath: le.parentPath,
2534
- title: le.title,
2535
- badges: ht(le, S.displayProperties),
2536
- onClick: () => g?.(le)
2658
+ ticketId: b.displayProperties.includes("id") ? Q.ticketId : "",
2659
+ parentPath: Q.parentPath,
2660
+ title: Q.title,
2661
+ badges: kt(Q, b.displayProperties),
2662
+ onClick: () => p?.(Q)
2537
2663
  }
2538
- })), e[22] = g, e[23] = S.displayProperties, e[24] = de) : de = e[24];
2539
- const ae = de;
2540
- let ge;
2541
- e[25] !== y || e[26] !== S.ordering || e[27] !== ae ? (ge = (F) => {
2542
- const le = y?.(F.key) ?? {}, me = Oe(F.tickets, S.ordering), Lt = F.rows.length > 0 ? F.rows.map((We) => ({
2543
- key: We.key,
2544
- label: Me(We.label),
2545
- items: ae(Oe(We.tickets, S.ordering))
2664
+ })), e[22] = p, e[23] = b.displayProperties, e[24] = me) : me = e[24];
2665
+ const ie = me;
2666
+ let ve;
2667
+ e[25] !== v || e[26] !== b.ordering || e[27] !== ie ? (ve = (N) => {
2668
+ const Q = v?.(N.key) ?? {}, Me = Ue(N.tickets, b.ordering), Qe = N.rows.length > 0 ? N.rows.map((Ge) => ({
2669
+ key: Ge.key,
2670
+ label: Ke(Ge.label),
2671
+ items: ie(Ue(Ge.tickets, b.ordering))
2546
2672
  })) : void 0;
2547
2673
  return {
2548
- id: F.key,
2549
- label: F.label,
2550
- color: le.color,
2551
- canDragIn: le.canDragIn ?? !1,
2552
- canDragOut: le.canDragOut ?? !1,
2553
- canCreate: le.canCreate ?? !1,
2554
- actions: le.actions ?? [],
2555
- items: ae(me),
2556
- groups: Lt
2674
+ id: N.key,
2675
+ label: N.label,
2676
+ color: Q.color,
2677
+ canDragIn: Q.canDragIn ?? !1,
2678
+ canDragOut: Q.canDragOut ?? !1,
2679
+ canCreate: Q.canCreate ?? !1,
2680
+ actions: Q.actions ?? [],
2681
+ items: ie(Me),
2682
+ groups: Qe
2557
2683
  };
2558
- }, e[25] = y, e[26] = S.ordering, e[27] = ae, e[28] = ge) : ge = e[28], V = Q.map(ge), e[0] = c, e[1] = w, e[2] = y, e[3] = d, e[4] = g, e[5] = S.columnGrouping, e[6] = S.displayProperties, e[7] = S.ordering, e[8] = S.rowGrouping, e[9] = n, e[10] = G, e[11] = R, e[12] = E, e[13] = V;
2684
+ }, e[25] = v, e[26] = b.ordering, e[27] = ie, e[28] = ve) : ve = e[28], K = re.map(ve), e[0] = c, e[1] = P, e[2] = v, e[3] = d, e[4] = p, e[5] = b.columnGrouping, e[6] = b.displayProperties, e[7] = b.ordering, e[8] = b.rowGrouping, e[9] = n, e[10] = F, e[11] = A, e[12] = E, e[13] = K;
2559
2685
  } else
2560
- G = e[10], R = e[11], E = e[12], V = e[13];
2561
- const q = V;
2562
- let Y;
2563
- e[29] !== G || e[30] !== B || e[31] !== W || e[32] !== R || e[33] !== w || e[34] !== N ? (Y = /* @__PURE__ */ i(Rl, { categories: G, filters: w, countsByCategory: R, onToggleFilterValue: N, onClearFilter: W, onClearAll: B }), e[29] = G, e[30] = B, e[31] = W, e[32] = R, e[33] = w, e[34] = N, e[35] = Y) : Y = e[35];
2564
- let K;
2565
- e[36] !== D || e[37] !== k || e[38] !== _ || e[39] !== I || e[40] !== $ || e[41] !== z || e[42] !== C || e[43] !== S || e[44] !== M || e[45] !== O ? (K = /* @__PURE__ */ i($l, { settings: S, groupingOptions: k, orderingOptions: _, displayPropertyOptions: D, onViewModeChange: C, onColumnGroupingChange: I, onRowGroupingChange: z, onOrderingFieldChange: $, onSortDirectionToggle: O, onDisplayPropertyToggle: M }), e[36] = D, e[37] = k, e[38] = _, e[39] = I, e[40] = $, e[41] = z, e[42] = C, e[43] = S, e[44] = M, e[45] = O, e[46] = K) : K = e[46];
2686
+ F = e[10], A = e[11], E = e[12], K = e[13];
2687
+ const M = K;
2566
2688
  let Z;
2567
- e[47] !== Y || e[48] !== K ? (Z = /* @__PURE__ */ x(X, { justifyContent: "flex-end", gap: "2xs", children: [
2568
- Y,
2569
- K
2570
- ] }), e[47] = Y, e[48] = K, e[49] = Z) : Z = e[49];
2689
+ e[29] !== F || e[30] !== X || e[31] !== H || e[32] !== A || e[33] !== P || e[34] !== G ? (Z = /* @__PURE__ */ o(Zl, { categories: F, filters: P, countsByCategory: A, onToggleFilterValue: G, onClearFilter: H, onClearAll: X }), e[29] = F, e[30] = X, e[31] = H, e[32] = A, e[33] = P, e[34] = G, e[35] = Z) : Z = e[35];
2690
+ let U;
2691
+ e[36] !== I || e[37] !== k || e[38] !== y || e[39] !== _ || e[40] !== $ || e[41] !== L || e[42] !== w || e[43] !== b || e[44] !== O || e[45] !== z ? (U = /* @__PURE__ */ o(Jl, { settings: b, groupingOptions: k, orderingOptions: y, displayPropertyOptions: I, onViewModeChange: w, onColumnGroupingChange: _, onRowGroupingChange: L, onOrderingFieldChange: $, onSortDirectionToggle: z, onDisplayPropertyToggle: O }), e[36] = I, e[37] = k, e[38] = y, e[39] = _, e[40] = $, e[41] = L, e[42] = w, e[43] = b, e[44] = O, e[45] = z, e[46] = U) : U = e[46];
2692
+ let q;
2693
+ e[47] !== Z || e[48] !== U ? (q = /* @__PURE__ */ x(j, { justifyContent: "flex-end", gap: "2xs", children: [
2694
+ Z,
2695
+ U
2696
+ ] }), e[47] = Z, e[48] = U, e[49] = q) : q = e[49];
2571
2697
  let J;
2572
- e[50] !== q || e[51] !== P || e[52] !== T || e[53] !== E || e[54] !== b || e[55] !== m || e[56] !== h || e[57] !== p || e[58] !== v || e[59] !== S.viewMode ? (J = S.viewMode === "board" ? /* @__PURE__ */ i(j, { flex: "1", minH: "0", children: q.length > 0 ? /* @__PURE__ */ i(zl, { columns: q, selectedItemId: v, onMoveItem: h, onMoveToGroup: p, onCreateStart: m, onColumnAction: b }) : /* @__PURE__ */ i(Ke, { title: T, description: P, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : E.length > 0 ? /* @__PURE__ */ i(Hl, { items: E, selectedItemId: v }) : /* @__PURE__ */ i(Ke, { title: T, description: P, borderWidth: "1px", borderRadius: "md" }), e[50] = q, e[51] = P, e[52] = T, e[53] = E, e[54] = b, e[55] = m, e[56] = h, e[57] = p, e[58] = v, e[59] = S.viewMode, e[60] = J) : J = e[60];
2698
+ e[50] !== M || e[51] !== T || e[52] !== D || e[53] !== E || e[54] !== m || e[55] !== S || e[56] !== h || e[57] !== g || e[58] !== C || e[59] !== b.viewMode ? (J = b.viewMode === "board" ? /* @__PURE__ */ o(V, { flex: "1", minH: "0", children: M.length > 0 ? /* @__PURE__ */ o(ho, { columns: M, selectedItemId: C, onMoveItem: h, onMoveToGroup: g, onCreateStart: S, onColumnAction: m }) : /* @__PURE__ */ o(rt, { title: D, description: T, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : E.length > 0 ? /* @__PURE__ */ o(yo, { items: E, selectedItemId: C }) : /* @__PURE__ */ o(rt, { title: D, description: T, borderWidth: "1px", borderRadius: "md" }), e[50] = M, e[51] = T, e[52] = D, e[53] = E, e[54] = m, e[55] = S, e[56] = h, e[57] = g, e[58] = C, e[59] = b.viewMode, e[60] = J) : J = e[60];
2573
2699
  let ee;
2574
- return e[61] !== J || e[62] !== Z ? (ee = /* @__PURE__ */ x(H, { gap: "sm", height: "100%", minH: "0", children: [
2575
- Z,
2700
+ return e[61] !== J || e[62] !== q ? (ee = /* @__PURE__ */ x(B, { gap: "sm", height: "100%", minH: "0", children: [
2701
+ q,
2576
2702
  J
2577
- ] }), e[61] = J, e[62] = Z, e[63] = ee) : ee = e[63], ee;
2703
+ ] }), e[61] = J, e[62] = q, e[63] = ee) : ee = e[63], ee;
2578
2704
  };
2579
- function ri(l) {
2705
+ function No(l) {
2580
2706
  return l.settings;
2581
2707
  }
2582
- function si(l) {
2708
+ function Bo(l) {
2583
2709
  return l.filters;
2584
2710
  }
2585
- function ai(l) {
2711
+ function Ho(l) {
2586
2712
  return l.setViewMode;
2587
2713
  }
2588
- function ci(l) {
2714
+ function Fo(l) {
2589
2715
  return l.setColumnGrouping;
2590
2716
  }
2591
- function di(l) {
2717
+ function Vo(l) {
2592
2718
  return l.setRowGrouping;
2593
2719
  }
2594
- function ui(l) {
2720
+ function jo(l) {
2595
2721
  return l.setOrderingField;
2596
2722
  }
2597
- function fi(l) {
2723
+ function Xo(l) {
2598
2724
  return l.toggleSortDirection;
2599
2725
  }
2600
- function gi(l) {
2726
+ function Uo(l) {
2601
2727
  return l.toggleDisplayProperty;
2602
2728
  }
2603
- function hi(l) {
2729
+ function Yo(l) {
2604
2730
  return l.toggleFilterValue;
2605
2731
  }
2606
- function pi(l) {
2732
+ function Ko(l) {
2607
2733
  return l.clearFilter;
2608
2734
  }
2609
- function mi(l) {
2735
+ function qo(l) {
2610
2736
  return l.clearAllFilters;
2611
2737
  }
2612
- function bi(l) {
2738
+ function Jo(l) {
2613
2739
  return l.value;
2614
2740
  }
2615
- const xi = Wt({
2616
- placement: "bottom-end",
2617
- pauseOnPageIdle: !0
2618
- }), ao = () => {
2619
- const l = A(1);
2620
- let e;
2621
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(He, { children: /* @__PURE__ */ i(Bt, { toaster: xi, insetInline: {
2622
- mdDown: "4"
2623
- }, children: Si }) }), l[0] = e) : e = l[0], e;
2624
- };
2625
- function Si(l) {
2626
- return /* @__PURE__ */ x(_e.Root, { width: {
2627
- md: "sm"
2628
- }, children: [
2629
- l.type === "loading" ? /* @__PURE__ */ i(Ft, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i(_e.Indicator, {}),
2630
- /* @__PURE__ */ x(H, { gap: "1", flex: "1", maxWidth: "100%", children: [
2631
- l.title && /* @__PURE__ */ i(_e.Title, { children: l.title }),
2632
- l.description && /* @__PURE__ */ i(_e.Description, { children: l.description })
2633
- ] }),
2634
- l.action && /* @__PURE__ */ i(_e.ActionTrigger, { children: l.action.label }),
2635
- l.closable && /* @__PURE__ */ i(_e.CloseTrigger, {})
2636
- ] });
2637
- }
2638
- const yi = (l) => {
2741
+ const Qo = (l) => {
2639
2742
  if (typeof document > "u") return;
2640
2743
  const e = document.documentElement, n = document.body, t = l === "dark" ? "light" : "dark";
2641
- for (const o of [e, n])
2642
- o && (o.classList.remove(t), o.classList.add(l), o.setAttribute("data-theme", l), o.style.colorScheme = l);
2643
- }, _t = "theme-preference", $t = Jt(null), vi = () => {
2744
+ for (const i of [e, n])
2745
+ i && (i.classList.remove(t), i.classList.add(l), i.setAttribute("data-theme", l), i.style.colorScheme = l);
2746
+ }, jt = "theme-preference", Xt = pn(null), Zo = () => {
2644
2747
  if (typeof window > "u") return "light";
2645
- const l = window.localStorage.getItem(_t);
2748
+ const l = window.localStorage.getItem(jt);
2646
2749
  return l === "dark" || l === "light" ? l : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2647
- }, co = (l) => {
2648
- const e = A(11), {
2750
+ }, Fi = (l) => {
2751
+ const e = R(11), {
2649
2752
  children: n,
2650
2753
  initialPreference: t
2651
2754
  } = l;
2652
- let o;
2653
- e[0] !== t ? (o = t === void 0 ? vi() : t, e[0] = t, e[1] = o) : o = e[1];
2654
- const s = o, [r, a] = pe(s);
2755
+ let i;
2756
+ e[0] !== t ? (i = t === void 0 ? Zo() : t, e[0] = t, e[1] = i) : i = e[1];
2757
+ const s = i, [r, a] = ge(s);
2655
2758
  let c, d;
2656
2759
  e[2] !== r ? (c = () => {
2657
- yi(r), typeof window < "u" && window.localStorage.setItem(_t, r);
2658
- }, d = [r], e[2] = r, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), ze(c, d);
2760
+ Qo(r), typeof window < "u" && window.localStorage.setItem(jt, r);
2761
+ }, d = [r], e[2] = r, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), Oe(c, d);
2659
2762
  let u;
2660
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(Ci), e[5] = u) : u = e[5];
2763
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(ei), e[5] = u) : u = e[5];
2661
2764
  const f = u;
2662
- let g;
2663
- e[6] !== r ? (g = {
2765
+ let p;
2766
+ e[6] !== r ? (p = {
2664
2767
  themePreference: r,
2665
2768
  setThemePreference: a,
2666
2769
  toggleThemePreference: f
2667
- }, e[6] = r, e[7] = g) : g = e[7];
2770
+ }, e[6] = r, e[7] = p) : p = e[7];
2668
2771
  let h;
2669
- return e[8] !== n || e[9] !== g ? (h = /* @__PURE__ */ i($t, { value: g, children: n }), e[8] = n, e[9] = g, e[10] = h) : h = e[10], h;
2670
- }, uo = () => {
2671
- const l = Qt($t);
2772
+ return e[8] !== n || e[9] !== p ? (h = /* @__PURE__ */ o(Xt, { value: p, children: n }), e[8] = n, e[9] = p, e[10] = h) : h = e[10], h;
2773
+ }, Vi = () => {
2774
+ const l = hn(Xt);
2672
2775
  if (!l)
2673
2776
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
2674
2777
  return l;
2675
2778
  };
2676
- function Ci(l) {
2779
+ function ei(l) {
2677
2780
  return l === "dark" ? "light" : "dark";
2678
2781
  }
2679
2782
  export {
2680
- jt as AlertMessage,
2681
- Vi as Breadcrumb,
2682
- ho as ChakraProvider,
2683
- Pn as Checkbox,
2684
- Xi as CodeDiffEditor,
2685
- ji as CodeEditor,
2686
- Ln as ContentPlaceholder,
2687
- Ui as ContentPlaceholderLabel,
2688
- Yi as DeleteConfirmationModal,
2689
- bt as DiffBubble,
2690
- Ki as DiffDrawer,
2691
- $l as DisplayMenu,
2692
- qi as DocsChangelog,
2693
- Ji as DocsOutline,
2694
- Qi as DocsPagination,
2695
- Zi as DocsSidebar,
2696
- Ke as EmptyState,
2697
- eo as ErrorBoundary,
2698
- Rl as FilterMenu,
2699
- to as FolderPickerDialog,
2700
- no as HorizontalMenuStack,
2701
- jn as ItemSection,
2702
- Re as MenuItem,
2703
- lo as OpenSourceNoticesScreen,
2704
- Yn as PanelMenu,
2705
- io as Properties,
2706
- ye as ScrollArea,
2707
- ll as SearchableMenu,
2708
- sl as SessionIndicator,
2709
- oo as SidebarNext,
2710
- gl as SidebarTree,
2711
- ro as Switch,
2712
- co as ThemePreferenceProvider,
2713
- zl as TicketBoard,
2714
- Tt as TicketCard,
2715
- Hl as TicketList,
2716
- so as TicketsWorkspace,
2717
- ao as Toaster,
2718
- Le as Tooltip,
2719
- yi as applyThemePreference,
2720
- vi as getInitialThemePreference,
2721
- mo as psTheme,
2722
- rl as resolveSessionIndicatorColor,
2723
- ol as resolveSessionIndicatorIcon,
2724
- xi as toaster,
2725
- $e as useSidebarNextStore,
2726
- uo as useThemePreference,
2727
- be as useTicketsWorkspaceStore
2783
+ sn as AlertMessage,
2784
+ wi as AttachedPanel,
2785
+ ki as Breadcrumb,
2786
+ Ii as BubbleButton,
2787
+ Pi as BubblePanel,
2788
+ Ui as ChakraProvider,
2789
+ Zn as Checkbox,
2790
+ Di as CodeDiffEditor,
2791
+ Ti as CodeEditor,
2792
+ ol as ContentPlaceholder,
2793
+ _i as ContentPlaceholderLabel,
2794
+ Li as DeleteConfirmationModal,
2795
+ _t as DiffBubble,
2796
+ $i as DiffDrawer,
2797
+ Jl as DisplayMenu,
2798
+ rt as EmptyState,
2799
+ Ot as ErrorBoundary,
2800
+ Zl as FilterMenu,
2801
+ Ri as FolderPickerDialog,
2802
+ cl as HorizontalMenuStack,
2803
+ Wi as ItemSection,
2804
+ De as MenuItem,
2805
+ Oi as OpenSourceNoticesScreen,
2806
+ zi as PanelLayout,
2807
+ Ai as PanelSectionLayout,
2808
+ Mi as Properties,
2809
+ ke as ScrollArea,
2810
+ yl as SearchableMenu,
2811
+ Tl as SessionIndicator,
2812
+ Gi as Sidebar,
2813
+ Ni as SidebarProjectMenu,
2814
+ El as SidebarTree,
2815
+ Bi as Switch,
2816
+ Fi as ThemePreferenceProvider,
2817
+ ho as TicketBoard,
2818
+ Ft as TicketCard,
2819
+ yo as TicketList,
2820
+ Hi as TicketsWorkspace,
2821
+ Ei as Toaster,
2822
+ xe as Tooltip,
2823
+ fo as WorkspaceBadge,
2824
+ Qo as applyThemePreference,
2825
+ Ki as getFileTypeIcon,
2826
+ Zo as getInitialThemePreference,
2827
+ Ji as psTheme,
2828
+ Pl as resolveSessionIndicatorColor,
2829
+ Il as resolveSessionIndicatorIcon,
2830
+ ul as toaster,
2831
+ Ae as useSidebarStore,
2832
+ Vi as useThemePreference,
2833
+ Se as useTicketsWorkspaceStore
2728
2834
  };
2729
2835
  //# sourceMappingURL=index.js.map