@pstdio/ui 0.2.3 → 0.2.5

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 (38) hide show
  1. package/dist/chat-ui.js +627 -570
  2. package/dist/chat-ui.js.map +1 -1
  3. package/dist/components/chat-ui/agent-types.d.ts +7 -1
  4. package/dist/components/chat-ui/components/ai-message.d.ts +3 -10
  5. package/dist/components/chat-ui/components/chat-input.d.ts +1 -0
  6. package/dist/components/chat-ui/components/chat-panel-alerts.stories.d.ts +9 -0
  7. package/dist/components/chat-ui/components/chat-panel.d.ts +5 -0
  8. package/dist/components/chat-ui/components/chat-panel.stories.d.ts +1 -0
  9. package/dist/components/chat-ui/components/chat-skeleton.d.ts +1 -0
  10. package/dist/components/chat-ui/components/message-parts-renderer.stories.d.ts +1 -0
  11. package/dist/components/chat-ui/components/workspace-hub.d.ts +12 -0
  12. package/dist/components/chat-ui/components/workspace-hub.stories.d.ts +6 -0
  13. package/dist/components/chat-ui/index.d.ts +3 -0
  14. package/dist/components/diff-editor.d.ts +2 -0
  15. package/dist/components/diff-view-adapter.d.ts +14 -0
  16. package/dist/components/diff-view-adapter.test.d.ts +1 -0
  17. package/dist/components/menu-item.d.ts +0 -1
  18. package/dist/components/searchable-menu.d.ts +32 -0
  19. package/dist/components/searchable-menu.stories.d.ts +6 -0
  20. package/dist/components/searchable-menu.test.d.ts +1 -0
  21. package/dist/components/sidebar-tree/searchable-action-menu.d.ts +6 -0
  22. package/dist/components/sidebar-tree/sidebar-tree-searchable-action-menu.stories.d.ts +6 -0
  23. package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +2 -0
  24. package/dist/components/tickets/ticket-card.stories.d.ts +1 -0
  25. package/dist/components/tickets/types.d.ts +4 -6
  26. package/dist/empty-state-yGspgiPl.js +185 -0
  27. package/dist/empty-state-yGspgiPl.js.map +1 -0
  28. package/dist/index.d.ts +3 -1
  29. package/dist/index.js +1682 -1586
  30. package/dist/index.js.map +1 -1
  31. package/dist/theme/global.d.ts +10 -0
  32. package/dist/{theme-C7CIuIPZ.js → theme-BFV2Q048.js} +18 -8
  33. package/dist/theme-BFV2Q048.js.map +1 -0
  34. package/dist/theme.js +1 -1
  35. package/package.json +5 -3
  36. package/dist/empty-state-kQR0gd4j.js +0 -232
  37. package/dist/empty-state-kQR0gd4j.js.map +0 -1
  38. package/dist/theme-C7CIuIPZ.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import { Alert as $e, Breadcrumb as xe, Checkbox as ze, Box as V, Text as $, Dialog as se, CloseButton as zt, Stack as G, Button as de, IconButton as Se, Grid as At, Timeline as he, HStack as X, Image as Ot, List as mt, Flex as we, Badge as Te, Link as Ue, Heading as Gt, useEnvironmentContext as Mt, Icon as oe, Collapsible as _e, MenuItem as tt, Menu as le, AbsoluteCenter as Nt, Separator as Ye, Switch as De, Popover as Ie, SegmentGroup as ve, Portal as Qe, Wrap as bt, Spacer as Ht, createToaster as Wt, Toaster as Ft, Toast as Le, Spinner as Bt } from "@chakra-ui/react";
2
- import { ChakraProvider as Qi } from "@chakra-ui/react";
3
- import { jsx as i, jsxs as b, Fragment as Ze } from "react/jsx-runtime";
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";
4
5
  import { c as A } from "react/compiler-runtime";
5
- import * as Fe from "react";
6
- import { useState as me, useRef as xt, useEffect as He, Children as Vt, isValidElement as jt, cloneElement as Xt, Component as Ut, createContext as Yt, useContext as Kt } from "react";
7
- import { D as qt, a as St, E as Ke } from "./empty-state-kQR0gd4j.js";
8
- import { C as er, b as tr } from "./empty-state-kQR0gd4j.js";
9
- import { useVirtualizer as Jt } from "@tanstack/react-virtual";
10
- import { ChevronRight as ye, ChevronDown as et, FileText as qe, ChevronLeft as Qt, FolderOpen as Zt, Folder as en, Home as tn, ChevronUp as nn, Info as ln, CircleCheck as rn, CircleAlert as on, CircleDashed as sn, PanelLeftClose as an, Settings2 as cn, List as dn, KanbanSquare as un, ArrowDownUp as gn, Filter as fn, GitBranchIcon as pn, Plus as hn, MoreHorizontal as mn } from "lucide-react";
11
- import { S as Ce, T as Ee } from "./tooltip-Dze4WXVl.js";
12
- import { useStore as yt } from "zustand";
13
- import { persist as Ct, createJSONStorage as vt } from "zustand/middleware";
14
- import { createStore as wt } from "zustand/vanilla";
15
- import { useReactTable as bn, getExpandedRowModel as xn, getCoreRowModel as Sn, flexRender as yn } from "@tanstack/react-table";
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";
16
16
  import "@fontsource/inter/400.css";
17
17
  import "@fontsource/inter/500.css";
18
18
  import "@fontsource/playfair-display/400.css";
@@ -21,85 +21,176 @@ import "@fontsource/playfair-display/700.css";
21
21
  import "@fontsource/onest/400.css";
22
22
  import "@fontsource/onest/500.css";
23
23
  import "@fontsource/onest/700.css";
24
- import { t as lr } from "./theme-C7CIuIPZ.js";
25
- const Cn = Fe.forwardRef(function(e, n) {
26
- const t = A(19);
27
- let r, o, s, a, c, d;
28
- t[0] !== e ? ({
29
- title: d,
30
- children: r,
31
- icon: s,
32
- startElement: c,
33
- endElement: o,
34
- ...a
35
- } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
36
- let u;
37
- t[7] !== s || t[8] !== c ? (u = c || /* @__PURE__ */ i($e.Indicator, { children: s }), t[7] = s, t[8] = c, t[9] = u) : u = t[9];
38
- let g;
39
- t[10] !== r || t[11] !== d ? (g = r ? /* @__PURE__ */ b($e.Content, { children: [
40
- /* @__PURE__ */ i($e.Title, { children: d }),
41
- /* @__PURE__ */ i($e.Description, { children: r })
42
- ] }) : /* @__PURE__ */ i($e.Title, { flex: "1", children: d }), t[10] = r, t[11] = d, t[12] = g) : g = t[12];
43
- let f;
44
- return t[13] !== o || t[14] !== n || t[15] !== a || t[16] !== u || t[17] !== g ? (f = /* @__PURE__ */ b($e.Root, { ref: n, ...a, children: [
45
- u,
46
- g,
47
- o
48
- ] }), t[13] = o, t[14] = n, t[15] = a, t[16] = u, t[17] = g, t[18] = f) : f = t[18], f;
49
- }), Li = Fe.forwardRef(function(e, n) {
24
+ import { t as mo } from "./theme-BFV2Q048.js";
25
+ const Vi = Ze.forwardRef(function(e, n) {
50
26
  const t = A(21);
51
- let r, o, s, a, c;
27
+ let o, s, r, a, c;
52
28
  t[0] !== e ? ({
53
29
  separator: a,
54
30
  separatorGap: c,
55
- items: o,
56
- linkComponent: r,
57
- ...s
58
- } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5]);
31
+ items: s,
32
+ linkComponent: o,
33
+ ...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]);
59
35
  let d;
60
- if (t[6] !== r || t[7] !== o || t[8] !== a) {
61
- let f;
62
- t[10] !== r || t[11] !== o.length || t[12] !== a ? (f = (p, h) => {
63
- const m = h === o.length - 1, x = !!(p.url || p.onClick);
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);
64
40
  let y;
65
- return m && !x ? y = /* @__PURE__ */ i(xe.CurrentLink, { children: p.title }) : p.url ? y = r ? /* @__PURE__ */ i(xe.Link, { asChild: !0, children: /* @__PURE__ */ i(r, { to: p.url, children: p.title }) }) : /* @__PURE__ */ i(xe.Link, { href: p.url, children: p.title }) : p.onClick ? y = /* @__PURE__ */ i(xe.Link, { as: "button", type: "button", onClick: p.onClick, children: p.title }) : y = /* @__PURE__ */ i(xe.Link, { children: p.title }), /* @__PURE__ */ b(xe.Item, { children: [
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: [
66
42
  y,
67
- m ? null : /* @__PURE__ */ i(xe.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
68
- ] }, h);
69
- }, t[10] = r, t[11] = o.length, t[12] = a, t[13] = f) : f = t[13], d = o.map(f), t[6] = r, t[7] = o, t[8] = a, t[9] = d;
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;
70
46
  } else
71
47
  d = t[9];
72
48
  let u;
73
- t[14] !== c || t[15] !== d ? (u = /* @__PURE__ */ i(xe.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = u) : u = t[16];
74
- let g;
75
- return t[17] !== n || t[18] !== s || t[19] !== u ? (g = /* @__PURE__ */ i(xe.Root, { ref: n, ...s, children: u }), t[17] = n, t[18] = s, t[19] = u, t[20] = g) : g = t[20], g;
76
- }), vn = Fe.forwardRef(function(e, n) {
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];
50
+ 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) {
77
53
  const t = A(26);
78
- let r, o, s, a, c, d;
54
+ let o, s, r, a, c, d;
79
55
  t[0] !== e ? ({
80
- icon: o,
81
- children: r,
82
- inputProps: s,
56
+ icon: s,
57
+ children: o,
58
+ inputProps: r,
83
59
  rootRef: c,
84
60
  disabled: d,
85
61
  ...a
86
- } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
87
- const u = d === void 0 ? !1 : d, g = u ? "not-allowed" : "pointer";
88
- let f;
89
- t[7] !== s || t[8] !== n ? (f = /* @__PURE__ */ i(ze.HiddenInput, { ref: n, ...s }), t[7] = s, t[8] = n, t[9] = f) : f = t[9];
90
- let p;
91
- t[10] !== o ? (p = o || /* @__PURE__ */ i(ze.Indicator, {}), t[10] = o, t[11] = p) : p = t[11];
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]);
63
+ 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];
92
66
  let h;
93
- t[12] !== g || t[13] !== p ? (h = /* @__PURE__ */ i(ze.Control, { borderRadius: "xs", cursor: g, children: p }), t[12] = g, t[13] = p, t[14] = h) : h = t[14];
67
+ t[10] !== s ? (h = s || /* @__PURE__ */ i(Ee.Indicator, {}), t[10] = s, t[11] = h) : h = t[11];
68
+ 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];
94
70
  let m;
95
- t[15] !== r || t[16] !== g ? (m = r != null && /* @__PURE__ */ i(ze.Label, { cursor: g, children: r }), t[15] = r, t[16] = g, t[17] = m) : m = t[17];
96
- let x;
97
- return t[18] !== u || t[19] !== g || t[20] !== a || t[21] !== c || t[22] !== f || t[23] !== h || t[24] !== m ? (x = /* @__PURE__ */ b(ze.Root, { ref: c, disabled: u, cursor: g, ...a, children: [
98
- f,
99
- h,
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,
75
+ p,
100
76
  m
101
- ] }), t[18] = u, t[19] = g, t[20] = a, t[21] = c, t[22] = f, t[23] = h, t[24] = m, t[25] = x) : x = t[25], x;
102
- }), wn = (l) => {
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 = {
79
+ base: "vs-dark",
80
+ inherit: !0,
81
+ rules: [],
82
+ colors: {
83
+ "editor.background": "#0a0d15",
84
+ "editor.foreground": "#f5f5f5",
85
+ "editor.lineHighlightBackground": "#22252C",
86
+ "editorCursor.foreground": "#A7A7A7",
87
+ "editorWhitespace.foreground": "#3B3B3B",
88
+ "editorIndentGuide.background": "#404040",
89
+ "editorIndentGuide.activeBackground": "#707070"
90
+ }
91
+ }, ji = (l) => {
92
+ const e = A(15), {
93
+ defaultCode: n,
94
+ code: t,
95
+ showLineNumbers: o,
96
+ isEditable: s,
97
+ language: r,
98
+ onChange: a,
99
+ disableScroll: c
100
+ } = l, d = r === void 0 ? "javascript" : r;
101
+ let u;
102
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
103
+ enabled: !1
104
+ }, e[0] = u) : u = e[0];
105
+ const f = !s, g = o ? "on" : "off";
106
+ let h;
107
+ e[1] !== c ? (h = c ? {
108
+ scrollbar: {
109
+ vertical: "hidden",
110
+ horizontal: "hidden",
111
+ useShadows: !1,
112
+ alwaysConsumeMouseWheel: !1
113
+ },
114
+ scrollBeyondLastLine: !1,
115
+ mouseWheelScrollSensitivity: 0,
116
+ overviewRulerLanes: 0
117
+ } : {}, e[1] = c, e[2] = h) : h = e[2];
118
+ let p;
119
+ e[3] !== f || e[4] !== g || e[5] !== h ? (p = {
120
+ tabSize: 2,
121
+ minimap: u,
122
+ fontSize: 12,
123
+ readOnly: f,
124
+ lineNumbers: g,
125
+ ...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), {
136
+ original: n,
137
+ modified: t,
138
+ showLineNumbers: o,
139
+ language: s,
140
+ disableScroll: r
141
+ } = l, a = s === void 0 ? "javascript" : s;
142
+ let c;
143
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
144
+ enabled: !1
145
+ }, e[0] = c) : c = e[0];
146
+ const d = o ? "on" : "off";
147
+ let u;
148
+ e[1] !== r ? (u = r ? {
149
+ scrollbar: {
150
+ vertical: "hidden",
151
+ horizontal: "hidden",
152
+ useShadows: !1,
153
+ alwaysConsumeMouseWheel: !1
154
+ },
155
+ scrollBeyondLastLine: !1,
156
+ mouseWheelScrollSensitivity: 0,
157
+ overviewRulerLanes: 0
158
+ } : {}, e[1] = r, e[2] = u) : u = e[2];
159
+ let f;
160
+ e[3] !== d || e[4] !== u ? (f = {
161
+ tabSize: 2,
162
+ minimap: c,
163
+ fontSize: 12,
164
+ readOnly: !0,
165
+ originalEditable: !1,
166
+ renderSideBySide: !0,
167
+ useInlineViewWhenSpaceIsTooSmall: !0,
168
+ lineNumbers: d,
169
+ ...u
170
+ }, e[3] = d, e[4] = u, e[5] = f) : f = e[5];
171
+ const g = f;
172
+ 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;
174
+ };
175
+ function Tn(l) {
176
+ l.editor.defineTheme("ps-theme", Ct);
177
+ }
178
+ async function Dn(l, e) {
179
+ e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
180
+ jsx: e.languages.typescript.JsxEmit.React
181
+ }), l.addCommand(e.KeyMod.CtrlCmd | e.KeyCode.KeyS, async () => {
182
+ await l.getAction("editor.action.formatDocument")?.run();
183
+ }), await l.getAction("editor.action.formatDocument")?.run();
184
+ }
185
+ function _n(l) {
186
+ l.editor.defineTheme("ps-theme", Ct);
187
+ }
188
+ function $n(l, e) {
189
+ e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
190
+ jsx: e.languages.typescript.JsxEmit.React
191
+ });
192
+ }
193
+ const Ln = (l) => {
103
194
  const e = A(3);
104
195
  let n;
105
196
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
@@ -109,454 +200,421 @@ const Cn = Fe.forwardRef(function(e, n) {
109
200
  width: "100%"
110
201
  }, e[0] = n) : n = e[0];
111
202
  let t;
112
- return e[1] !== l ? (t = /* @__PURE__ */ i(V, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
113
- }, Ri = (l) => {
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) => {
114
205
  const e = A(2);
115
206
  let n;
116
- return e[0] !== l ? (n = /* @__PURE__ */ i(V, { p: "2", children: /* @__PURE__ */ i($, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...l }) }), e[0] = l, e[1] = n) : n = e[1], n;
117
- }, Ei = (l) => {
118
- const [e, n] = me(!1), {
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), {
119
210
  headline: t,
120
- buttonText: r,
121
- notificationText: o,
122
- onDelete: s,
211
+ buttonText: o,
212
+ notificationText: s,
213
+ onDelete: r,
123
214
  open: a,
124
215
  onClose: c
125
216
  } = l, d = async () => {
126
217
  n(!0);
127
218
  try {
128
- await s(), c();
219
+ await r(), c();
129
220
  } catch {
130
221
  } finally {
131
222
  n(!1);
132
223
  }
133
224
  };
134
- return /* @__PURE__ */ b(se.Root, { open: a, onOpenChange: c, children: [
135
- /* @__PURE__ */ i(se.Backdrop, {}),
136
- /* @__PURE__ */ i(se.Positioner, { children: /* @__PURE__ */ b(se.Content, { children: [
137
- /* @__PURE__ */ b(se.Header, { children: [
138
- /* @__PURE__ */ i($, { textStyle: "heading/M", children: t }),
139
- /* @__PURE__ */ i(se.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ i(zt, { size: "sm" }) })
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" }) })
140
231
  ] }),
141
- /* @__PURE__ */ i(se.Body, { children: o }),
142
- /* @__PURE__ */ i(se.Footer, { children: /* @__PURE__ */ b(G, { direction: "row", gap: "1", children: [
143
- /* @__PURE__ */ i(de, { onClick: c, children: "Close" }),
144
- /* @__PURE__ */ i(de, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: r })
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 })
145
236
  ] }) })
146
237
  ] }) })
147
238
  ] });
148
- }, In = (l) => {
149
- switch (l.split(".").pop()?.toLowerCase()) {
150
- case "ts":
151
- case "tsx":
152
- return "typescript";
153
- case "js":
154
- case "jsx":
155
- return "javascript";
156
- case "json":
157
- return "json";
158
- case "md":
159
- return "markdown";
160
- case "py":
161
- return "python";
162
- case "go":
163
- return "go";
164
- case "rs":
165
- return "rust";
166
- case "css":
167
- return "css";
168
- case "html":
169
- return "html";
170
- case "sh":
171
- return "shell";
172
- case "yml":
173
- case "yaml":
174
- return "yaml";
175
- default:
176
- return "plaintext";
177
- }
178
- }, kn = (l) => {
179
- const e = A(37), {
239
+ }, Rn = (l) => {
240
+ const e = A(36), {
180
241
  diff: n
181
- } = l, [t, r] = me(!0), o = n.newPath || n.oldPath || "unknown";
182
- let s;
183
- e[0] !== o ? (s = In(o), e[0] = o, e[1] = s) : s = e[1];
184
- const a = s, c = n.additions ?? 0, d = n.deletions ?? 0, u = t ? "1px solid" : "none";
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];
185
250
  let g;
186
- e[2] !== t ? (g = () => r(!t), e[2] = t, e[3] = g) : g = e[3];
187
- const f = t ? "Collapse" : "Expand";
188
- let p;
189
- e[4] !== t ? (p = (T) => {
190
- T.stopPropagation(), r(!t);
191
- }, e[4] = t, e[5] = p) : p = e[5];
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];
192
252
  let h;
193
- e[6] !== t ? (h = t ? /* @__PURE__ */ i(et, { size: 16 }) : /* @__PURE__ */ i(ye, { size: 16 }), e[6] = t, e[7] = h) : h = e[7];
194
- let m;
195
- e[8] !== f || e[9] !== p || e[10] !== h ? (m = /* @__PURE__ */ i(Se, { "aria-label": f, variant: "ghost", size: "2xs", onClick: p, flexShrink: 0, children: h }), e[8] = f, e[9] = p, e[10] = h, e[11] = m) : m = e[11];
196
- let x;
197
- e[12] !== n.change || e[13] !== n.newPath || e[14] !== n.oldPath || e[15] !== o ? (x = n.change === "renamed" ? /* @__PURE__ */ b($, { as: "span", textStyle: "sm", children: [
198
- /* @__PURE__ */ i($, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
199
- /* @__PURE__ */ i(V, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(ye, { size: 12 }) }),
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 }) }),
200
258
  n.newPath
201
- ] }) : n.change === "deleted" ? /* @__PURE__ */ i($, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: o }) : /* @__PURE__ */ i($, { as: "span", textStyle: "sm", children: o }), e[12] = n.change, e[13] = n.newPath, e[14] = n.oldPath, e[15] = o, e[16] = x) : x = e[16];
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];
260
+ 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];
202
264
  let y;
203
- e[17] !== o || e[18] !== x ? (y = /* @__PURE__ */ i(V, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: o, children: x }), e[17] = o, e[18] = x, e[19] = y) : y = e[19];
204
- let I;
205
- e[20] !== c || e[21] !== d ? (I = /* @__PURE__ */ i(V, { flexShrink: 0, children: /* @__PURE__ */ i(St, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = I) : I = e[22];
206
- let k;
207
- e[23] !== u || e[24] !== g || e[25] !== m || e[26] !== y || e[27] !== I ? (k = /* @__PURE__ */ b(At, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: u, borderColor: "border.muted", cursor: "pointer", onClick: g, gap: "sm", children: [
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,
208
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];
270
+ 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];
272
+ 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: [
209
274
  y,
210
- I
211
- ] }), e[23] = u, e[24] = g, e[25] = m, e[26] = y, e[27] = I, e[28] = k) : k = e[28];
212
- let P;
213
- e[29] !== n.newContent || e[30] !== n.oldContent || e[31] !== t || e[32] !== a ? (P = t && /* @__PURE__ */ i(V, { height: "400px", bg: "bg", children: /* @__PURE__ */ i(qt, { original: n.oldContent || "", modified: n.newContent || "", language: a, sideBySide: !1, disableScroll: !1 }) }), e[29] = n.newContent, e[30] = n.oldContent, e[31] = t, e[32] = a, e[33] = P) : P = e[33];
214
- let D;
215
- return e[34] !== k || e[35] !== P ? (D = /* @__PURE__ */ b(V, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
216
- k,
217
- P
218
- ] }), e[34] = k, e[35] = P, e[36] = D) : D = e[36], D;
275
+ v
276
+ ] }), e[33] = v, e[34] = y, e[35] = k) : k = e[35], k;
219
277
  };
220
- function zi(l) {
278
+ function Ki(l) {
221
279
  const {
222
280
  diffs: e
223
- } = l, n = xt(null), t = Jt({
281
+ } = l, n = et(null), t = tn({
224
282
  count: e.length,
225
283
  getScrollElement: () => n.current,
226
284
  estimateSize: () => 42,
227
285
  overscan: 5
228
286
  });
229
- return e.length === 0 ? /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", contentProps: {
287
+ return e.length === 0 ? /* @__PURE__ */ i(H, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
230
288
  p: "xs",
231
289
  spaceY: "xs"
232
- }, children: /* @__PURE__ */ i(Ke, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(V, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(Ce, { position: "absolute", inset: "0", viewportRef: n, contentProps: {
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: {
233
291
  p: "xs"
234
- }, children: /* @__PURE__ */ i(V, { position: "relative", width: "100%", style: {
292
+ }, children: /* @__PURE__ */ i(j, { position: "relative", width: "100%", style: {
235
293
  height: t.getTotalSize()
236
- }, children: t.getVirtualItems().map((r) => /* @__PURE__ */ i(V, { "data-index": r.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
237
- transform: `translateY(${r.start}px)`
238
- }, children: /* @__PURE__ */ i(kn, { diff: e[r.index] }) }, r.key)) }) }) }) });
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)) }) }) }) });
239
297
  }
240
- const Pn = (l, e) => `${l.version}-${l.date}-${e}`, Tn = (l, e) => `${l.title}-${e}`, nt = (l) => {
298
+ const En = (l, e) => `${l.version}-${l.date}-${e}`, zn = (l, e) => `${l.title}-${e}`, lt = (l) => {
241
299
  const e = A(12);
242
- let n, t, r;
300
+ let n, t, o;
243
301
  e[0] !== l ? ({
244
302
  date: n,
245
- version: r,
303
+ version: o,
246
304
  ...t
247
- } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = r) : (n = e[1], t = e[2], r = e[3]);
248
- let o;
249
- e[4] !== n ? (o = /* @__PURE__ */ i(he.Title, { textStyle: "sm", color: "fg.muted", children: n }), e[4] = n, e[5] = o) : o = e[5];
305
+ } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = o) : (n = e[1], t = e[2], o = e[3]);
250
306
  let s;
251
- e[6] !== r ? (s = /* @__PURE__ */ i(we, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ i(he.Title, { textStyle: "md", fontWeight: "semibold", children: r }) }), e[6] = r, e[7] = s) : s = e[7];
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];
252
310
  let a;
253
- return e[8] !== t || e[9] !== o || e[10] !== s ? (a = /* @__PURE__ */ b(G, { ...t, children: [
254
- o,
255
- s
256
- ] }), e[8] = t, e[9] = o, e[10] = s, e[11] = a) : a = e[11], a;
257
- }, Ai = (l) => {
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) => {
258
316
  const e = A(14), {
259
317
  entries: n,
260
318
  title: t,
261
- description: r
319
+ description: o
262
320
  } = l;
263
- let o;
264
- e[0] !== t ? (o = /* @__PURE__ */ i(Gt, { size: "4xl", children: t }), e[0] = t, e[1] = o) : o = e[1];
265
321
  let s;
266
- e[2] !== r ? (s = r ? /* @__PURE__ */ i($, { color: "fg.muted", textStyle: "lg", children: r }) : null, e[2] = r, e[3] = s) : s = e[3];
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];
267
325
  let a;
268
- e[4] !== o || e[5] !== s ? (a = /* @__PURE__ */ b(G, { textAlign: "center", children: [
269
- o,
270
- s
271
- ] }), e[4] = o, e[5] = s, e[6] = a) : a = e[6];
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];
272
330
  let c;
273
- e[7] !== n ? (c = n.map($n), e[7] = n, e[8] = c) : c = e[8];
331
+ e[7] !== n ? (c = n.map(Mn), e[7] = n, e[8] = c) : c = e[8];
274
332
  let d;
275
- e[9] !== c ? (d = /* @__PURE__ */ i(V, { position: "relative", children: /* @__PURE__ */ i(he.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
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];
276
334
  let u;
277
- return e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ b(G, { gap: "20", children: [
335
+ return e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ x(H, { gap: "20", children: [
278
336
  a,
279
337
  d
280
338
  ] }), e[11] = a, e[12] = d, e[13] = u) : u = e[13], u;
281
339
  };
282
- function Dn(l) {
283
- return /* @__PURE__ */ i(Te, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: l }, l);
340
+ function On(l) {
341
+ return /* @__PURE__ */ i(Pe, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: l }, l);
284
342
  }
285
- function _n(l, e) {
286
- return /* @__PURE__ */ i(mt.Item, { children: /* @__PURE__ */ b(G, { gap: "1", children: [
287
- /* @__PURE__ */ i($, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: l.title }),
288
- l.description ? /* @__PURE__ */ i($, { color: "fg.subtle", textStyle: "xs", children: l.description }) : null,
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,
289
347
  l.link ? /* @__PURE__ */ i(Ue, { href: l.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
290
- ] }) }, Tn(l, e));
348
+ ] }) }, zn(l, e));
291
349
  }
292
- function $n(l, e) {
293
- return /* @__PURE__ */ b(he.Item, { children: [
294
- /* @__PURE__ */ i(he.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
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: {
295
353
  base: "static",
296
354
  md: "sticky"
297
- }, children: /* @__PURE__ */ i(nt, { hideBelow: "md", date: l.date, version: l.version }) }),
298
- /* @__PURE__ */ b(he.Connector, { children: [
299
- /* @__PURE__ */ i(he.Separator, {}),
300
- /* @__PURE__ */ i(he.Indicator, {})
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, {})
301
359
  ] }),
302
- /* @__PURE__ */ i(he.Content, { children: /* @__PURE__ */ b(G, { gap: "4", children: [
303
- /* @__PURE__ */ i(nt, { hideFrom: "md", date: l.date, version: l.version }),
304
- /* @__PURE__ */ b(G, { gap: "2", children: [
305
- /* @__PURE__ */ i(he.Title, { fontSize: "lg", fontWeight: "medium", children: l.title }),
306
- l.description ? /* @__PURE__ */ i($, { color: "fg.muted", textStyle: "sm", children: l.description }) : null
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
307
365
  ] }),
308
- l.tags && l.tags.length > 0 ? /* @__PURE__ */ i(X, { children: l.tags.map(Dn) }) : null,
309
- l.image ? /* @__PURE__ */ i(Ot, { rounded: "l2", src: l.image, alt: l.title }) : null,
310
- l.changes && l.changes.length > 0 ? /* @__PURE__ */ i(mt.Root, { pl: "4", gap: "4", children: l.changes.map(_n) }) : null
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
311
369
  ] }) })
312
- ] }, Pn(l, e));
370
+ ] }, En(l, e));
313
371
  }
314
- const Ln = /^(#{1,3})\s+(.+)$/gm, Rn = ".rich-text__h1, .rich-text__h2, .rich-text__h3", En = (l, e) => l.classList.contains(`rich-text__h${e}`), zn = (l) => l.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Ve = (l) => {
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) => {
315
373
  const e = [];
316
374
  let n = 0;
317
- for (const t of l.matchAll(Ln)) {
318
- const r = t[1].length, o = t[2].trim(), a = `${zn(o) || "heading"}-${n}`;
375
+ for (const t of l.matchAll(Gn)) {
376
+ const o = t[1].length, s = t[2].trim(), a = `${Wn(s) || "heading"}-${n}`;
319
377
  e.push({
320
378
  id: a,
321
- level: r,
322
- text: o
379
+ level: o,
380
+ text: s
323
381
  }), n += 1;
324
382
  }
325
383
  return e;
326
- }, An = (l, e) => {
327
- const n = Array.from(e.querySelectorAll(Rn)), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
328
- let o = 0;
329
- for (const s of l)
330
- for (let a = o; a < n.length; a += 1) {
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) {
331
389
  const c = n[a], d = c.textContent?.trim();
332
- if (!(!d || d !== s.text) && En(c, s.level)) {
333
- t.set(s.id, c), r.set(c, s.id), o = a + 1;
390
+ if (!(!d || d !== r.text) && Hn(c, r.level)) {
391
+ t.set(r.id, c), o.set(c, r.id), s = a + 1;
334
392
  break;
335
393
  }
336
394
  }
337
395
  return {
338
396
  elementsByHeadingId: t,
339
- headingIdByElement: r
397
+ headingIdByElement: o
340
398
  };
341
- }, lt = (l) => {
399
+ }, it = (l) => {
342
400
  const e = A(14), {
343
401
  heading: n,
344
402
  isActive: t,
345
- emphasized: r,
346
- variant: o,
347
- onSelect: s
348
- } = l, a = o === "line", c = `calc(${n.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", u = t || r ? "medium" : "normal", g = a ? "1px" : "0px", f = a ? t ? "fg" : "bg.muted" : "transparent";
349
- let p;
350
- e[0] !== a ? (p = a ? {
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 ? {
351
409
  borderStartColor: "bg.emphasized"
352
410
  } : {
353
411
  color: "fg"
354
- }, e[0] = a, e[1] = p) : p = e[1];
355
- let h;
356
- e[2] !== n.id || e[3] !== s ? (h = () => s(n.id), e[2] = n.id, e[3] = s, e[4] = h) : h = e[4];
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];
357
415
  let m;
358
- return e[5] !== n.text || e[6] !== c || e[7] !== d || e[8] !== u || e[9] !== g || e[10] !== f || e[11] !== p || e[12] !== h ? (m = /* @__PURE__ */ i(V, { 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: g, borderStartColor: f, _hover: p, onClick: h, children: n.text }), e[5] = n.text, e[6] = c, e[7] = d, e[8] = u, e[9] = g, e[10] = f, e[11] = p, e[12] = h, e[13] = m) : m = e[13], m;
359
- }, Oi = (l) => {
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) => {
360
418
  const e = A(39), {
361
419
  markdown: n,
362
420
  title: t,
363
- rootMargin: r
364
- } = l, o = t === void 0 ? "On this page" : t, s = r === void 0 ? "-20% 0% -35% 0%" : r, a = Ve(n), c = Mt(), [d, u] = me(a[0]?.id ?? ""), [g, f] = me(!1);
365
- let p;
366
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
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 = {
367
425
  elementsByHeadingId: /* @__PURE__ */ new Map(),
368
426
  headingIdByElement: /* @__PURE__ */ new Map()
369
- }, e[0] = p) : p = e[0];
370
- const h = xt(p);
371
- let m, x;
427
+ }, e[0] = h) : h = e[0];
428
+ const p = et(h);
429
+ let m, b;
372
430
  e[1] !== n ? (m = () => {
373
- const U = Ve(n);
431
+ const U = Be(n);
374
432
  u(U[0]?.id ?? "");
375
- }, x = [n], e[1] = n, e[2] = m, e[3] = x) : (m = e[2], x = e[3]), He(m, x);
376
- let y, I;
377
- if (e[4] !== c || e[5] !== n || e[6] !== s ? (y = () => {
378
- const U = Ve(n), ie = c.getDocument(), ce = c.getWindow(), re = An(U, ie);
379
- if (h.current = re, re.headingIdByElement.size === 0)
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)
380
438
  return;
381
- const ue = new ce.IntersectionObserver((fe) => {
382
- const ae = fe.filter(On).sort(Gn);
383
- if (ae.length === 0)
439
+ const re = new oe.IntersectionObserver((ce) => {
440
+ const de = ce.filter(Fn).sort(Vn);
441
+ if (de.length === 0)
384
442
  return;
385
- const be = ae[0].target, ge = re.headingIdByElement.get(be);
443
+ const ae = de[0].target, ge = se.headingIdByElement.get(ae);
386
444
  ge && u(ge);
387
445
  }, {
388
- rootMargin: s
446
+ rootMargin: r
389
447
  });
390
- for (const fe of re.headingIdByElement.keys())
391
- ue.observe(fe);
448
+ for (const ce of se.headingIdByElement.keys())
449
+ re.observe(ce);
392
450
  return () => {
393
- ue.disconnect();
451
+ re.disconnect();
394
452
  };
395
- }, I = [c, n, s], e[4] = c, e[5] = n, e[6] = s, e[7] = y, e[8] = I) : (y = e[7], I = e[8]), He(y, I), a.length === 0)
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)
396
454
  return null;
397
455
  let k;
398
456
  e[9] !== d ? (k = (U) => U.id === d, e[9] = d, e[10] = k) : k = e[10];
399
- const P = a.find(k);
457
+ const _ = a.find(k);
400
458
  let D;
401
459
  e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = (U) => {
402
- const ie = h.current.elementsByHeadingId.get(U);
403
- u(U), f(!1), ie?.scrollIntoView({
460
+ const Q = p.current.elementsByHeadingId.get(U);
461
+ u(U), g(!1), Q?.scrollIntoView({
404
462
  behavior: "smooth",
405
463
  block: "start"
406
464
  });
407
465
  }, e[11] = D) : D = e[11];
408
466
  const T = D;
409
- let _;
410
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (U) => f(U.open), e[12] = _) : _ = e[12];
467
+ let P;
468
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (U) => g(U.open), e[12] = P) : P = e[12];
411
469
  let S;
412
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ i(oe, { as: qe, color: "fg.subtle" }), e[13] = S) : S = e[13];
413
- let C;
414
- e[14] !== o ? (C = /* @__PURE__ */ i($, { textStyle: "sm", fontWeight: "medium", color: "fg", children: o }), e[14] = o, e[15] = C) : C = e[15];
415
- const w = g ? null : /* @__PURE__ */ b(Ze, { children: [
416
- /* @__PURE__ */ i(oe, { as: ye, color: "fg.subtle" }),
417
- /* @__PURE__ */ i($, { textStyle: "sm", color: "fg.muted", children: P?.text })
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 })
418
476
  ] });
419
- let v;
420
- e[16] !== C || e[17] !== w ? (v = /* @__PURE__ */ b(X, { children: [
477
+ let I;
478
+ e[16] !== w || e[17] !== C ? (I = /* @__PURE__ */ x(X, { children: [
421
479
  S,
422
- C,
423
- w
424
- ] }), e[16] = C, e[17] = w, e[18] = v) : v = e[18];
425
- const E = g ? "rotate(180deg)" : "rotate(0deg)";
426
- let L;
427
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ i(oe, { as: et, color: "fg.subtle" }), e[19] = L) : L = e[19];
428
- let z;
429
- e[20] !== E ? (z = /* @__PURE__ */ i(V, { transition: "transform 0.2s", transform: E, children: L }), e[20] = E, e[21] = z) : z = e[21];
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];
430
486
  let O;
431
- e[22] !== v || e[23] !== z ? (O = /* @__PURE__ */ b(_e.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
432
- v,
433
- z
434
- ] }), e[22] = v, e[23] = z, e[24] = O) : O = e[24];
435
- let W;
436
- e[25] !== d ? (W = (U) => /* @__PURE__ */ i(lt, { heading: U, variant: "minimal", emphasized: !1, isActive: d === U.id, onSelect: T }, U.id), e[25] = d, e[26] = W) : W = e[26];
437
- const H = Ce, B = "md", N = "6", M = "xs", R = "sticky", F = "calc(100vh - 3rem)";
438
- let Y;
439
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ i(oe, { as: qe, color: "fg.subtle" }), e[27] = Y) : Y = e[27];
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)";
440
496
  let q;
441
- e[28] !== o ? (q = /* @__PURE__ */ b(X, { mb: "4", children: [
442
- Y,
443
- /* @__PURE__ */ i($, { fontWeight: "medium", textStyle: "sm", children: o })
444
- ] }), e[28] = o, e[29] = q) : q = e[29];
445
- const J = G, K = "0";
446
- let Q;
447
- e[30] !== d ? (Q = (U) => /* @__PURE__ */ i(lt, { heading: U, variant: "line", emphasized: U.level === 1, isActive: d === U.id, onSelect: T }, U.id), e[30] = d, e[31] = Q) : Q = e[31];
448
- const te = a.map(Q);
449
- let ee;
450
- e[32] !== J || e[33] !== te ? (ee = /* @__PURE__ */ i(J, { gap: K, children: te }), e[32] = J, e[33] = te, e[34] = ee) : ee = e[34];
451
- let Z;
452
- return e[35] !== H || e[36] !== q || e[37] !== ee ? (Z = /* @__PURE__ */ b(H, { hideBelow: B, top: N, width: M, position: R, maxH: F, children: [
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: [
453
500
  q,
454
- ee
455
- ] }), e[35] = H, e[36] = q, e[37] = ee, e[38] = Z) : Z = e[38], /* @__PURE__ */ b(G, { gap: "0", width: "full", children: [
456
- /* @__PURE__ */ i(V, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(_e.Root, { open: g, onOpenChange: _, children: [
457
- O,
458
- /* @__PURE__ */ i(_e.Content, { children: /* @__PURE__ */ i(Ce, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(G, { gap: "0", children: a.map(W) }) }) })
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) }) }) })
459
517
  ] }) }),
460
- Z
518
+ ne
461
519
  ] });
462
520
  };
463
- function On(l) {
521
+ function Fn(l) {
464
522
  return l.isIntersecting;
465
523
  }
466
- function Gn(l, e) {
524
+ function Vn(l, e) {
467
525
  return l.boundingClientRect.top - e.boundingClientRect.top;
468
526
  }
469
- const it = (l) => {
527
+ const ot = (l) => {
470
528
  const e = A(24), {
471
529
  item: n,
472
530
  direction: t
473
- } = l, r = t === "prev", o = r ? "Previous" : "Next", s = r ? "start" : "end", a = r ? "flex-start" : "flex-end";
531
+ } = l, o = t === "prev", s = o ? "Previous" : "Next", r = o ? "start" : "end", a = o ? "flex-start" : "flex-end";
474
532
  let c;
475
- e[0] !== r ? (c = r ? /* @__PURE__ */ i(Qt, { size: 16 }) : null, e[0] = r, e[1] = c) : c = e[1];
476
- const d = r ? "flex-start" : "flex-end";
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";
477
535
  let u;
478
- e[2] !== o ? (u = /* @__PURE__ */ i($, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: o }), e[2] = o, e[3] = u) : u = e[3];
479
- let g;
480
- e[4] !== n.title ? (g = /* @__PURE__ */ i($, { textStyle: "sm", fontWeight: "medium", children: n.title }), e[4] = n.title, e[5] = g) : g = e[5];
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];
481
537
  let f;
482
- e[6] !== n.description ? (f = n.description ? /* @__PURE__ */ i($, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: n.description }) : null, e[6] = n.description, e[7] = f) : f = e[7];
483
- let p;
484
- e[8] !== d || e[9] !== u || e[10] !== g || e[11] !== f ? (p = /* @__PURE__ */ b(G, { gap: "0", alignItems: d, children: [
485
- u,
486
- g,
487
- f
488
- ] }), e[8] = d, e[9] = u, e[10] = g, e[11] = f, e[12] = p) : p = e[12];
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];
489
541
  let h;
490
- e[13] !== r ? (h = r ? null : /* @__PURE__ */ i(ye, { size: 16 }), e[13] = r, e[14] = h) : h = e[14];
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];
491
549
  let m;
492
- e[15] !== n.href || e[16] !== c || e[17] !== p || e[18] !== h ? (m = /* @__PURE__ */ b("a", { href: n.href, children: [
550
+ e[15] !== n.href || e[16] !== c || e[17] !== h || e[18] !== p ? (m = /* @__PURE__ */ x("a", { href: n.href, children: [
493
551
  c,
494
- p,
495
- h
496
- ] }), e[15] = n.href, e[16] = c, e[17] = p, e[18] = h, e[19] = m) : m = e[19];
497
- let x;
498
- return e[20] !== s || e[21] !== a || e[22] !== m ? (x = /* @__PURE__ */ i(de, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: s, justifyContent: a, flex: "1", children: m }), e[20] = s, e[21] = a, e[22] = m, e[23] = x) : x = e[23], x;
499
- }, Gi = (l) => {
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) => {
500
558
  const e = A(11), {
501
559
  previous: n,
502
560
  next: t
503
561
  } = l;
504
562
  if (!n && !t)
505
563
  return null;
506
- let r;
507
- e[0] !== n ? (r = n ? /* @__PURE__ */ i(it, { item: n, direction: "prev" }) : null, e[0] = n, e[1] = r) : r = e[1];
508
564
  let o;
509
- e[2] !== r ? (o = /* @__PURE__ */ i(V, { flex: "1", children: r }), e[2] = r, e[3] = o) : o = e[3];
565
+ e[0] !== n ? (o = n ? /* @__PURE__ */ i(ot, { item: n, direction: "prev" }) : null, e[0] = n, e[1] = o) : o = e[1];
510
566
  let s;
511
- e[4] !== t ? (s = t ? /* @__PURE__ */ i(it, { item: t, direction: "next" }) : null, e[4] = t, e[5] = s) : s = e[5];
567
+ e[2] !== o ? (s = /* @__PURE__ */ i(j, { flex: "1", children: o }), e[2] = o, e[3] = s) : s = e[3];
568
+ 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];
512
570
  let a;
513
- e[6] !== s ? (a = /* @__PURE__ */ i(V, { flex: "1", children: s }), e[6] = s, e[7] = a) : a = e[7];
571
+ e[6] !== r ? (a = /* @__PURE__ */ i(j, { flex: "1", children: r }), e[6] = r, e[7] = a) : a = e[7];
514
572
  let c;
515
- return e[8] !== o || e[9] !== a ? (c = /* @__PURE__ */ b(X, { justify: "space-between", gap: "4", children: [
516
- o,
573
+ return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ x(X, { justify: "space-between", gap: "4", children: [
574
+ s,
517
575
  a
518
- ] }), e[8] = o, e[9] = a, e[10] = c) : c = e[10], c;
519
- }, Mn = (l) => {
576
+ ] }), e[8] = s, e[9] = a, e[10] = c) : c = e[10], c;
577
+ }, jn = (l) => {
520
578
  const e = A(17), {
521
579
  children: n,
522
580
  title: t,
523
- defaultOpen: r,
524
- action: o
525
- } = l, s = r === void 0 ? !0 : r;
581
+ defaultOpen: o,
582
+ action: s
583
+ } = l, r = o === void 0 ? !0 : o;
526
584
  let a;
527
585
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
528
586
  background: "bg.muted"
529
587
  }, e[0] = a) : a = e[0];
530
588
  let c;
531
- e[1] !== t ? (c = t && /* @__PURE__ */ i($, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
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];
532
590
  let d;
533
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(_e.Indicator, { transition: "transform 0.2s", _open: {
591
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(De.Indicator, { transition: "transform 0.2s", _open: {
534
592
  transform: "rotate(90deg)"
535
- }, children: /* @__PURE__ */ i(ye, { size: 16 }) }), e[3] = d) : d = e[3];
593
+ }, children: /* @__PURE__ */ i(Ce, { size: 16 }) }), e[3] = d) : d = e[3];
536
594
  let u;
537
- e[4] !== c ? (u = /* @__PURE__ */ b(_e.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
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: [
538
596
  c,
539
597
  d
540
598
  ] }), e[4] = c, e[5] = u) : u = e[5];
541
- let g;
542
- e[6] !== o ? (g = o && /* @__PURE__ */ i(V, { marginLeft: "auto", onClick: Nn, children: o }), e[6] = o, e[7] = g) : g = e[7];
543
599
  let f;
544
- e[8] !== u || e[9] !== g ? (f = /* @__PURE__ */ b(we, { children: [
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: [
545
603
  u,
546
- g
547
- ] }), e[8] = u, e[9] = g, e[10] = f) : f = e[10];
548
- let p;
549
- e[11] !== n ? (p = /* @__PURE__ */ i(_e.Content, { children: n }), e[11] = n, e[12] = p) : p = e[12];
604
+ f
605
+ ] }), e[8] = u, e[9] = f, e[10] = g) : g = e[10];
550
606
  let h;
551
- return e[13] !== s || e[14] !== f || e[15] !== p ? (h = /* @__PURE__ */ b(_e.Root, { defaultOpen: s, width: "full", children: [
552
- f,
553
- p
554
- ] }), e[13] = s, e[14] = f, e[15] = p, e[16] = h) : h = e[16], 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;
555
613
  };
556
- function Nn(l) {
614
+ function Xn(l) {
557
615
  return l.stopPropagation();
558
616
  }
559
- const It = {
617
+ const wt = {
560
618
  default: {
561
619
  paddingX: "sm",
562
620
  paddingY: "xs",
@@ -576,184 +634,181 @@ const It = {
576
634
  secondaryTextStyle: "label/XS/regular"
577
635
  }
578
636
  }, rt = (l) => {
579
- const e = A(49), {
637
+ const e = A(48), {
580
638
  primaryLabel: n,
581
639
  tooltipLabel: t,
582
- secondaryLabel: r,
583
- leftIcon: o,
584
- leftSlot: s,
585
- rightIcon: a,
586
- leftIconColor: c,
587
- rightIconColor: d,
588
- leftIconSize: u,
589
- rightIconSize: g,
640
+ secondaryLabel: o,
641
+ leftIcon: s,
642
+ rightIcon: r,
643
+ leftIconColor: a,
644
+ rightIconColor: c,
645
+ leftIconSize: d,
646
+ rightIconSize: u,
590
647
  rightIconAriaLabel: f,
591
- rightTooltipLabel: p,
648
+ rightTooltipLabel: g,
592
649
  onRightIconClick: h,
593
- tagLabel: m,
594
- tagColorPalette: x,
595
- tagVariant: y,
596
- variant: I
597
- } = l, k = It[I], P = !!(h && a);
598
- let D;
599
- e[0] !== P ? (D = (F) => {
600
- P && (F.preventDefault(), F.stopPropagation());
601
- }, e[0] = P, e[1] = D) : D = e[1];
602
- const T = D;
650
+ tagLabel: p,
651
+ tagColorPalette: m,
652
+ tagVariant: b,
653
+ variant: y
654
+ } = l, v = wt[y], k = !!(h && r);
603
655
  let _;
604
- e[2] !== P || e[3] !== h ? (_ = (F) => {
605
- !P || !h || (F.preventDefault(), F.stopPropagation(), h());
606
- }, e[2] = P, e[3] = h, e[4] = _) : _ = e[4];
607
- const S = _;
608
- let C;
609
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
656
+ e[0] !== k ? (_ = (E) => {
657
+ 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) => {
662
+ !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 = {
610
667
  placement: "right"
611
- }, e[5] = C) : C = e[5];
668
+ }, e[5] = S) : S = e[5];
612
669
  const w = !t;
613
- let v;
614
- e[6] !== o || e[7] !== c || e[8] !== u || e[9] !== s ? (v = s || (o ? /* @__PURE__ */ i(oe, { as: o, boxSize: u, color: c }) : null), e[6] = o, e[7] = c, e[8] = u, e[9] = s, e[10] = v) : v = e[10];
615
- let E;
616
- e[11] !== n || e[12] !== k.primaryTextStyle ? (E = /* @__PURE__ */ i($, { lineClamp: 1, textOverflow: "ellipsis", textStyle: k.primaryTextStyle, children: n }), e[11] = n, e[12] = k.primaryTextStyle, e[13] = E) : E = e[13];
617
- let L;
618
- e[14] !== v || e[15] !== E ? (L = /* @__PURE__ */ b(we, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
619
- v,
620
- E
621
- ] }), e[14] = v, e[15] = E, e[16] = L) : L = e[16];
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];
622
674
  let z;
623
- e[17] !== r || e[18] !== k.secondaryMarginLeft || e[19] !== k.secondaryTextStyle ? (z = r && /* @__PURE__ */ i($, { ml: k.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: k.secondaryTextStyle, color: "fg.menu-item.secondary", children: r }), e[17] = r, e[18] = k.secondaryMarginLeft, e[19] = k.secondaryTextStyle, e[20] = z) : z = e[20];
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];
679
+ 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];
624
681
  let O;
625
- e[21] !== L || e[22] !== z ? (O = /* @__PURE__ */ b(G, { gap: "2xs", children: [
626
- L,
627
- z
628
- ] }), e[21] = L, e[22] = z, e[23] = O) : O = e[23];
629
- let W;
630
- e[24] !== w || e[25] !== O || e[26] !== t ? (W = /* @__PURE__ */ i(Ee, { positioning: C, content: t, disabled: w, children: O }), e[24] = w, e[25] = O, e[26] = t, e[27] = W) : W = e[27];
631
- let H;
632
- e[28] !== S || e[29] !== T || e[30] !== P || e[31] !== a || e[32] !== f || e[33] !== d || e[34] !== g || e[35] !== p ? (H = a ? /* @__PURE__ */ i(Ee, { positioning: {
682
+ e[20] !== z || e[21] !== $ ? (O = /* @__PURE__ */ x(H, { gap: "2xs", children: [
683
+ z,
684
+ $
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: {
633
690
  placement: "right"
634
- }, content: p, disabled: !p, children: /* @__PURE__ */ i(we, { as: P ? "button" : "div", alignItems: "center", "aria-label": f, cursor: P ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: T, onClick: S, children: /* @__PURE__ */ i(oe, { as: a, boxSize: g, color: d }) }) }) : null, e[28] = S, e[29] = T, e[30] = P, e[31] = a, e[32] = f, e[33] = d, e[34] = g, e[35] = p, e[36] = H) : H = e[36];
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];
635
694
  let B;
636
- e[37] !== H ? (B = /* @__PURE__ */ i(we, { justifyContent: "flex-end", color: "fg.menu-item.default", children: H }), e[37] = H, e[38] = B) : B = e[38];
637
- let N;
638
- e[39] !== B || e[40] !== W ? (N = /* @__PURE__ */ b(we, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
639
- W,
640
- B
641
- ] }), e[39] = B, e[40] = W, e[41] = N) : N = e[41];
642
- let M;
643
- e[42] !== x || e[43] !== m || e[44] !== y ? (M = m ? /* @__PURE__ */ i(Te, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: x, variant: y, pointerEvents: "none", children: m }) : null, e[42] = x, e[43] = m, e[44] = y, e[45] = M) : M = e[45];
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];
699
+ 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];
644
701
  let R;
645
- return e[46] !== N || e[47] !== M ? (R = /* @__PURE__ */ b(Ze, { children: [
646
- N,
647
- M
648
- ] }), e[46] = N, e[47] = M, e[48] = R) : R = e[48], R;
649
- }, We = (l) => {
650
- const e = A(49), {
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), {
651
708
  id: n,
652
709
  children: t,
653
- asChild: r,
654
- primaryLabel: o,
655
- tooltipLabel: s,
710
+ asChild: o,
711
+ primaryLabel: s,
712
+ tooltipLabel: r,
656
713
  secondaryLabel: a,
657
714
  leftIcon: c,
658
- leftSlot: d,
659
- rightIcon: u,
660
- leftIconColor: g,
715
+ rightIcon: d,
716
+ leftIconColor: u,
661
717
  rightIconColor: f,
662
- leftIconSize: p,
718
+ leftIconSize: g,
663
719
  rightIconSize: h,
664
- rightIconAriaLabel: m,
665
- rightTooltipLabel: x,
666
- onRightIconClick: y,
667
- isDisabled: I,
668
- isSelected: k,
669
- tagLabel: P,
670
- tagColorPalette: D,
671
- tagVariant: T,
672
- variant: _,
673
- tabIndex: S,
674
- width: C,
720
+ rightIconAriaLabel: p,
721
+ rightTooltipLabel: m,
722
+ onRightIconClick: b,
723
+ isDisabled: y,
724
+ isSelected: v,
725
+ tagLabel: k,
726
+ tagColorPalette: _,
727
+ tagVariant: D,
728
+ variant: T,
729
+ tabIndex: P,
730
+ width: S,
675
731
  maxWidth: w,
676
- setRefElement: v
677
- } = l, E = c === void 0 ? null : c, L = g === void 0 ? "fg.menu-item.default" : g, z = f === void 0 ? "fg.menu-item.default" : f, O = D === void 0 ? "yellow" : D, W = T === void 0 ? "subtle" : T, H = _ === void 0 ? "default" : _, {
678
- onClick: B,
679
- onMouseDown: N,
680
- onMouseEnter: M
681
- } = l, R = It[H], F = k ? "bg.menu-item.selected" : "bg.menu-item.default", Y = p ?? R.iconSize, q = h ?? R.iconSize;
682
- let J;
683
- e[0] !== E || e[1] !== L || e[2] !== d || e[3] !== y || e[4] !== o || e[5] !== Y || e[6] !== q || e[7] !== u || e[8] !== m || e[9] !== z || e[10] !== x || e[11] !== a || e[12] !== O || e[13] !== P || e[14] !== W || e[15] !== s || e[16] !== H ? (J = {
684
- primaryLabel: o,
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 = {
740
+ primaryLabel: s,
685
741
  secondaryLabel: a,
686
- tooltipLabel: s,
687
- leftIcon: E,
688
- leftSlot: d,
689
- rightIcon: u,
690
- leftIconColor: L,
691
- rightIconColor: z,
692
- leftIconSize: Y,
742
+ tooltipLabel: r,
743
+ leftIcon: I,
744
+ rightIcon: d,
745
+ leftIconColor: z,
746
+ rightIconColor: $,
747
+ leftIconSize: V,
693
748
  rightIconSize: q,
694
- rightIconAriaLabel: m,
695
- rightTooltipLabel: x,
696
- onRightIconClick: y,
697
- tagLabel: P,
749
+ rightIconAriaLabel: p,
750
+ rightTooltipLabel: m,
751
+ onRightIconClick: b,
752
+ tagLabel: k,
698
753
  tagColorPalette: O,
699
- tagVariant: W,
700
- variant: H
701
- }, e[0] = E, e[1] = L, e[2] = d, e[3] = y, e[4] = o, e[5] = Y, e[6] = q, e[7] = u, e[8] = m, e[9] = z, e[10] = x, e[11] = a, e[12] = O, e[13] = P, e[14] = W, e[15] = s, e[16] = H, e[17] = J) : J = e[17];
702
- const K = J, Q = w ?? "20rem", te = I ? "default" : "pointer", ee = n ?? o;
703
- let Z, U;
704
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = {
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;
758
+ let te, ne;
759
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = {
705
760
  bg: "bg.menu-item.hover"
706
- }, U = {
761
+ }, ne = {
707
762
  bg: "bg.menu-item.focus"
708
- }, e[18] = Z, e[19] = U) : (Z = e[18], U = e[19]);
709
- let ie;
710
- e[20] !== F || e[21] !== n || e[22] !== I || e[23] !== k || e[24] !== v || e[25] !== Q || e[26] !== te || e[27] !== ee || e[28] !== S || e[29] !== R.minHeight || e[30] !== R.paddingX || e[31] !== R.paddingY || e[32] !== C ? (ie = {
763
+ }, 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 = {
711
766
  id: n,
712
- ref: v,
713
- tabIndex: S,
714
- disabled: I,
715
- "aria-selected": k,
767
+ ref: C,
768
+ tabIndex: P,
769
+ disabled: y,
770
+ "aria-selected": v,
716
771
  paddingX: R.paddingX,
717
772
  paddingY: R.paddingY,
718
773
  height: "auto",
719
774
  minHeight: R.minHeight,
720
775
  role: "option",
721
- width: C,
722
- maxWidth: Q,
776
+ width: S,
777
+ maxWidth: Z,
723
778
  overflow: "hidden",
724
779
  position: "relative",
725
- cursor: te,
780
+ cursor: J,
726
781
  value: ee,
727
- bg: F,
728
- _hover: Z,
729
- _focus: U,
782
+ bg: E,
783
+ _hover: te,
784
+ _focus: ne,
730
785
  textDecoration: "none",
731
786
  color: "inherit"
732
- }, e[20] = F, e[21] = n, e[22] = I, e[23] = k, e[24] = v, e[25] = Q, e[26] = te, e[27] = ee, e[28] = S, e[29] = R.minHeight, e[30] = R.paddingX, e[31] = R.paddingY, e[32] = C, e[33] = ie) : ie = e[33];
733
- const ce = ie;
734
- if (r && t) {
735
- let fe, ae;
736
- if (e[34] !== t || e[35] !== ce || e[36] !== K) {
737
- ae = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
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");
738
793
  e: {
739
- const be = Vt.only(t);
740
- if (!jt(be)) {
741
- ae = null;
794
+ const de = Xt.only(t);
795
+ if (!Ut(de)) {
796
+ ce = null;
742
797
  break e;
743
798
  }
744
- let ge;
745
- e[39] !== K ? (ge = /* @__PURE__ */ i(rt, { ...K }), e[39] = K, e[40] = ge) : ge = e[40], fe = /* @__PURE__ */ i(tt, { asChild: !0, ...ce, children: Xt(be, void 0, ge) });
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) });
746
801
  }
747
- e[34] = t, e[35] = ce, e[36] = K, e[37] = fe, e[38] = ae;
802
+ e[33] = t, e[34] = Q, e[35] = K, e[36] = re, e[37] = ce;
748
803
  } else
749
- fe = e[37], ae = e[38];
750
- return ae !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ae : fe;
804
+ re = e[36], ce = e[37];
805
+ return ce !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ce : re;
751
806
  }
752
- let re;
753
- e[41] !== K ? (re = /* @__PURE__ */ i(rt, { ...K }), e[41] = K, e[42] = re) : re = e[42];
754
- let ue;
755
- return e[43] !== ce || e[44] !== B || e[45] !== N || e[46] !== M || e[47] !== re ? (ue = /* @__PURE__ */ i(tt, { ...ce, onClick: B, onMouseDown: N, onMouseEnter: M, children: re }), e[43] = ce, e[44] = B, e[45] = N, e[46] = M, e[47] = re, e[48] = ue) : ue = e[48], ue;
756
- }, Hn = {
807
+ 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 = {
757
812
  default: {
758
813
  width: "64",
759
814
  headerHeight: "49px",
@@ -771,72 +826,72 @@ const It = {
771
826
  contentGap: "2xs"
772
827
  }
773
828
  };
774
- function Wn(l) {
829
+ function Yn(l) {
775
830
  const e = A(13), {
776
831
  title: n,
777
832
  children: t,
778
- variant: r
779
- } = l, s = Hn[r === void 0 ? "default" : r];
833
+ variant: o
834
+ } = l, r = Un[o === void 0 ? "default" : o];
780
835
  let a;
781
- e[0] !== s.headerHeight || e[1] !== s.headerPadding || e[2] !== s.headerTextStyle || e[3] !== n ? (a = n && /* @__PURE__ */ i(we, { height: s.headerHeight, p: s.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i($, { pb: "0", textStyle: s.headerTextStyle, color: "fg.muted", children: n }) }), e[0] = s.headerHeight, e[1] = s.headerPadding, e[2] = s.headerTextStyle, e[3] = n, e[4] = a) : a = e[4];
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];
782
837
  let c;
783
- e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", contentProps: {
784
- p: s.contentPadding,
785
- spaceY: s.contentGap
786
- }, children: t }), e[5] = t, e[6] = s.contentGap, e[7] = s.contentPadding, e[8] = c) : c = e[8];
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];
787
842
  let d;
788
- return e[9] !== s.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(G, { borderRightWidth: "1px", width: s.width, gap: "0", minH: "0", children: [
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: [
789
844
  a,
790
845
  c
791
- ] }), e[9] = s.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
846
+ ] }), e[9] = r.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
792
847
  }
793
- const kt = (l) => {
848
+ const It = (l) => {
794
849
  const e = A(27), {
795
850
  item: n,
796
851
  activeLink: t,
797
- onSelectLink: r,
798
- shouldStartOpen: o
852
+ onSelectLink: o,
853
+ shouldStartOpen: s
799
854
  } = l;
800
- let s;
801
- e[0] !== n.items ? (s = n.items ?? [], e[0] = n.items, e[1] = s) : s = e[1];
802
- const a = s, c = a.length > 0;
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;
803
858
  if (!c && n.link) {
804
- const h = n.link, m = n.link === t;
805
- let x;
806
- e[2] !== h || e[3] !== r ? (x = () => r(h), e[2] = h, e[3] = r, e[4] = x) : x = e[4];
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];
807
862
  let y;
808
- return e[5] !== m || e[6] !== n.text || e[7] !== x ? (y = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: n.text, isSelected: m, variant: "compact", onClick: x }) }), e[5] = m, e[6] = n.text, e[7] = x, e[8] = y) : y = e[8], 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;
809
864
  }
810
865
  if (!c) {
811
- let h;
812
- return e[9] !== n.text ? (h = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: n.text, isDisabled: !0, variant: "compact" }) }), e[9] = n.text, e[10] = h) : h = e[10], h;
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;
813
868
  }
814
869
  let d;
815
- e[11] !== n || e[12] !== o ? (d = o?.(n) ?? !1, e[11] = n, e[12] = o, e[13] = d) : d = e[13];
816
- const u = d, g = n.text;
817
- let f;
818
- if (e[14] !== t || e[15] !== a || e[16] !== r || e[17] !== o) {
819
- let h;
820
- e[19] !== t || e[20] !== r || e[21] !== o ? (h = (m, x) => /* @__PURE__ */ i(kt, { item: m, activeLink: t, onSelectLink: r, shouldStartOpen: o }, `${m.text}-${m.link ?? x}`), e[19] = t, e[20] = r, e[21] = o, e[22] = h) : h = e[22], f = a.map(h), e[14] = t, e[15] = a, e[16] = r, e[17] = o, e[18] = f;
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;
821
876
  } else
822
- f = e[18];
823
- let p;
824
- return e[23] !== u || e[24] !== n.text || e[25] !== f ? (p = /* @__PURE__ */ i(Mn, { title: g, defaultOpen: u, children: f }), e[23] = u, e[24] = n.text, e[25] = f, e[26] = p) : p = e[26], p;
825
- }, Mi = (l) => {
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) => {
826
881
  const e = A(9), {
827
882
  title: n,
828
883
  emptyMessage: t,
829
- menuItems: r,
830
- activeLink: o,
831
- onSelectLink: s,
884
+ menuItems: o,
885
+ activeLink: s,
886
+ onSelectLink: r,
832
887
  shouldStartOpen: a
833
888
  } = l;
834
889
  let c;
835
- e[0] !== o || e[1] !== t || e[2] !== r || e[3] !== s || e[4] !== a ? (c = r.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : r.map((u, g) => /* @__PURE__ */ i(kt, { item: u, activeLink: o, onSelectLink: s, shouldStartOpen: a }, `${u.text}-${u.link ?? g}`)), e[0] = o, e[1] = t, e[2] = r, e[3] = s, e[4] = a, e[5] = c) : c = e[5];
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];
836
891
  let d;
837
- return e[6] !== c || e[7] !== n ? (d = /* @__PURE__ */ i(Wn, { title: n, variant: "compact", children: c }), e[6] = c, e[7] = n, e[8] = d) : d = e[8], 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;
838
893
  };
839
- class Ni extends Ut {
894
+ class eo extends Kt {
840
895
  state = {
841
896
  error: null
842
897
  };
@@ -859,977 +914,1081 @@ class Ni extends Ut {
859
914
  fallback: n,
860
915
  label: t
861
916
  } = this.props, {
862
- error: r
917
+ error: o
863
918
  } = this.state;
864
- return r ? n || /* @__PURE__ */ i(Fn, { error: r, label: t, onReset: this.handleReset }) : e;
919
+ return o ? n || /* @__PURE__ */ i(Kn, { error: o, label: t, onReset: this.handleReset }) : e;
865
920
  }
866
921
  }
867
- const Fn = (l) => {
922
+ const Kn = (l) => {
868
923
  const e = A(12), {
869
924
  error: n,
870
925
  label: t,
871
- onReset: r
872
- } = l, o = t ?? "Something went wrong";
873
- let s;
874
- e[0] !== o ? (s = /* @__PURE__ */ i($, { textStyle: "paragraph/M/medium", children: o }), e[0] = o, e[1] = s) : s = e[1];
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];
875
930
  const a = n.message || "An unexpected error occurred while rendering this section.";
876
931
  let c;
877
- e[2] !== a ? (c = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
932
+ e[2] !== a ? (c = /* @__PURE__ */ i(L, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
878
933
  let d;
879
- e[4] !== r ? (d = r ? /* @__PURE__ */ i(de, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
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];
880
935
  let u;
881
- e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ b(G, { gap: "sm", children: [
936
+ e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ x(H, { gap: "sm", children: [
882
937
  c,
883
938
  d
884
939
  ] }), e[6] = c, e[7] = d, e[8] = u) : u = e[8];
885
- let g;
886
- return e[9] !== s || e[10] !== u ? (g = /* @__PURE__ */ i(wn, { height: "100%", width: "100%", children: /* @__PURE__ */ i(Nt, { children: /* @__PURE__ */ i(Cn, { status: "error", title: s, children: u }) }) }), e[9] = s, e[10] = u, e[11] = g) : g = e[11], g;
887
- }, Bn = (l) => l.isDirectory ? l.isGitRepo ? Zt : en : qe, Vn = (l) => {
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) => {
888
943
  const e = A(18), {
889
944
  entry: n,
890
945
  selectedPath: t,
891
- selectedPathSet: r,
892
- onEntryClick: o
946
+ selectedPathSet: o,
947
+ onEntryClick: s
893
948
  } = l;
894
- let s;
895
- e[0] !== n.isGitRepo || e[1] !== n.path || e[2] !== r ? (s = n.isGitRepo && r.has(n.path), e[0] = n.isGitRepo, e[1] = n.path, e[2] = r, e[3] = s) : s = e[3];
896
- const a = s, c = !n.isDirectory || a;
949
+ 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];
951
+ const a = r, c = !n.isDirectory || a;
897
952
  let d;
898
- e[4] !== n || e[5] !== a || e[6] !== o ? (d = () => {
899
- a || o(n);
900
- }, e[4] = n, e[5] = a, e[6] = o, e[7] = d) : d = e[7];
901
- const u = d, g = n.name;
902
- let f;
903
- e[8] !== n ? (f = Bn(n), e[8] = n, e[9] = f) : f = e[9];
904
- const p = n.isGitRepo ? "Git repo" : void 0, h = n.isGitRepo ? "green" : void 0, m = t === n.path;
905
- let x;
906
- return e[10] !== n.name || e[11] !== u || e[12] !== c || e[13] !== f || e[14] !== p || e[15] !== h || e[16] !== m ? (x = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: g, leftIcon: f, tagLabel: p, tagColorPalette: h, isDisabled: c, isSelected: m, width: "100%", maxWidth: "100%", onClick: u }) }), e[10] = n.name, e[11] = u, e[12] = c, e[13] = f, e[14] = p, e[15] = h, e[16] = m, e[17] = x) : x = e[17], x;
907
- }, Hi = (l) => {
953
+ e[4] !== n || e[5] !== a || e[6] !== s ? (d = () => {
954
+ a || s(n);
955
+ }, e[4] = n, e[5] = a, e[6] = s, e[7] = d) : d = e[7];
956
+ 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) => {
908
963
  const e = A(54), {
909
964
  open: n,
910
965
  title: t,
911
- description: r,
912
- currentPath: o,
913
- entries: s,
966
+ description: o,
967
+ currentPath: s,
968
+ entries: r,
914
969
  selectedPath: a,
915
970
  selectedPaths: c,
916
971
  isLoading: d,
917
972
  error: u,
918
- isSelectDisabled: g,
919
- onClose: f,
920
- onSelect: p,
921
- onSelectHomeDirectory: h,
973
+ isSelectDisabled: f,
974
+ onClose: g,
975
+ onSelect: h,
976
+ onSelectHomeDirectory: p,
922
977
  onSelectParentDirectory: m,
923
- onEntryClick: x
924
- } = l, y = t === void 0 ? "Select folder" : t, I = o === void 0 ? "" : o, k = a === void 0 ? null : a;
925
- let P;
926
- e[0] !== c ? (P = c === void 0 ? [] : c, e[0] = c, e[1] = P) : P = e[1];
927
- const D = P, T = d === void 0 ? !1 : d, _ = u === void 0 ? "" : u, S = g === void 0 ? !1 : g;
928
- let C;
929
- e[2] !== D ? (C = new Set(D), e[2] = D, e[3] = C) : C = e[3];
930
- const w = C;
931
- let v;
932
- e[4] !== f ? (v = (ie) => !ie.open && f(), e[4] = f, e[5] = v) : v = e[5];
933
- let E;
934
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ i(se.Backdrop, {}), e[6] = E) : E = e[6];
935
- let L;
936
- e[7] !== y ? (L = /* @__PURE__ */ i($, { textStyle: "heading/M", children: y }), e[7] = y, e[8] = L) : L = e[8];
978
+ onEntryClick: b
979
+ } = l, y = t === void 0 ? "Select folder" : t, v = s === void 0 ? "" : s, k = a === void 0 ? null : a;
980
+ 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];
937
988
  let z;
938
- e[9] !== r ? (z = r ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = z) : z = e[10];
989
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ i(fe.Backdrop, {}), e[6] = z) : z = e[6];
990
+ let $;
991
+ e[7] !== y ? ($ = /* @__PURE__ */ i(L, { textStyle: "heading/M", children: y }), e[7] = y, e[8] = $) : $ = e[8];
939
992
  let O;
940
- e[11] !== L || e[12] !== z ? (O = /* @__PURE__ */ i(se.Header, { children: /* @__PURE__ */ b(G, { gap: "xs", children: [
941
- L,
942
- z
943
- ] }) }), e[11] = L, e[12] = z, e[13] = O) : O = e[13];
944
- let W;
945
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(tn, { size: 16 }), e[14] = W) : W = e[14];
946
- let H;
947
- e[15] !== h ? (H = /* @__PURE__ */ i(de, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: h, children: W }), e[15] = h, e[16] = H) : H = e[16];
948
- const B = !I || I === "/";
949
- let N;
950
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ i(nn, { size: 16 }), e[17] = N) : N = e[17];
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];
951
994
  let M;
952
- e[18] !== m || e[19] !== B ? (M = /* @__PURE__ */ i(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: m, disabled: B, children: N }), e[18] = m, e[19] = B, e[20] = M) : M = e[20];
953
- const R = I || "Home";
954
- let F;
955
- e[21] !== R ? (F = /* @__PURE__ */ i($, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: R }), e[21] = R, e[22] = F) : F = e[22];
956
- let Y;
957
- e[23] !== H || e[24] !== M || e[25] !== F ? (Y = /* @__PURE__ */ b(G, { direction: "row", gap: "sm", align: "center", children: [
958
- H,
959
- M,
960
- F
961
- ] }), e[23] = H, e[24] = M, e[25] = F, e[26] = Y) : Y = e[26];
995
+ e[11] !== $ || e[12] !== O ? (M = /* @__PURE__ */ i(fe.Header, { children: /* @__PURE__ */ x(H, { gap: "xs", children: [
996
+ $,
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 === "/";
1004
+ 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];
962
1011
  let q;
963
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (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 = {
964
1019
  padding: "sm"
965
- }, e[27] = q) : q = e[27];
966
- let J;
967
- e[28] !== s || e[29] !== _ || e[30] !== T || e[31] !== x || e[32] !== k || e[33] !== w ? (J = /* @__PURE__ */ i(Ce, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: q, children: T ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : _ ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "red.500", children: _ }) : s.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(G, { gap: "xs", children: s.map((ie) => /* @__PURE__ */ i(Vn, { entry: ie, selectedPath: k, selectedPathSet: w, onEntryClick: x }, ie.path)) }) }), e[28] = s, e[29] = _, e[30] = T, e[31] = x, e[32] = k, e[33] = w, e[34] = J) : J = e[34];
1020
+ }, e[27] = Y) : Y = e[27];
968
1021
  let K;
969
- e[35] !== Y || e[36] !== J ? (K = /* @__PURE__ */ i(se.Body, { children: /* @__PURE__ */ b(G, { gap: "md", children: [
970
- Y,
971
- J
972
- ] }) }), e[35] = Y, e[36] = J, e[37] = K) : K = e[37];
973
- let Q;
974
- e[38] !== f ? (Q = /* @__PURE__ */ i(de, { variant: "outline", onClick: f, children: "Cancel" }), e[38] = f, e[39] = Q) : Q = e[39];
975
- let te;
976
- e[40] !== S || e[41] !== p ? (te = /* @__PURE__ */ i(de, { onClick: p, disabled: S, children: "Select repository" }), e[40] = S, e[41] = p, e[42] = te) : te = e[42];
977
- let ee;
978
- e[43] !== Q || e[44] !== te ? (ee = /* @__PURE__ */ i(se.Footer, { children: /* @__PURE__ */ b(G, { direction: "row", gap: "sm", children: [
979
- Q,
980
- te
981
- ] }) }), e[43] = Q, e[44] = te, e[45] = ee) : ee = e[45];
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];
982
1023
  let Z;
983
- e[46] !== O || e[47] !== K || e[48] !== ee ? (Z = /* @__PURE__ */ i(se.Positioner, { children: /* @__PURE__ */ b(se.Content, { children: [
984
- O,
985
- K,
1024
+ e[35] !== q || e[36] !== K ? (Z = /* @__PURE__ */ i(fe.Body, { children: /* @__PURE__ */ x(H, { gap: "md", children: [
1025
+ q,
1026
+ K
1027
+ ] }) }), e[35] = q, e[36] = K, e[37] = Z) : Z = e[37];
1028
+ 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];
1030
+ 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];
1032
+ let te;
1033
+ e[43] !== J || e[44] !== ee ? (te = /* @__PURE__ */ i(fe.Footer, { children: /* @__PURE__ */ x(H, { direction: "row", gap: "sm", children: [
1034
+ J,
986
1035
  ee
987
- ] }) }), e[46] = O, e[47] = K, e[48] = ee, e[49] = Z) : Z = e[49];
1036
+ ] }) }), e[43] = J, e[44] = ee, e[45] = te) : te = e[45];
1037
+ 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,
1041
+ te
1042
+ ] }) }), e[46] = M, e[47] = Z, e[48] = te, e[49] = ne) : ne = e[49];
988
1043
  let U;
989
- return e[50] !== n || e[51] !== Z || e[52] !== v ? (U = /* @__PURE__ */ b(se.Root, { closeOnInteractOutside: !1, open: n, onOpenChange: v, children: [
990
- E,
991
- Z
992
- ] }), e[50] = n, e[51] = Z, e[52] = v, e[53] = U) : U = e[53], 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,
1046
+ ne
1047
+ ] }), e[50] = n, e[51] = ne, e[52] = I, e[53] = U) : U = e[53], U;
993
1048
  };
994
- function Wi(l) {
1049
+ function no(l) {
995
1050
  const e = A(6);
996
1051
  let n, t;
997
1052
  e[0] !== l ? ({
998
1053
  children: n,
999
1054
  ...t
1000
1055
  } = l, e[0] = l, e[1] = n, e[2] = t) : (n = e[1], t = e[2]);
1001
- let r;
1002
- return e[3] !== n || e[4] !== t ? (r = /* @__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] = r) : r = e[5], r;
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;
1003
1058
  }
1004
- const jn = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Xn = (l) => l.version ? `${l.name} v${l.version}` : l.name, Fi = (l) => {
1059
+ const Qn = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Zn = (l) => l.version ? `${l.name} v${l.version}` : l.name, lo = (l) => {
1005
1060
  const e = A(30), {
1006
1061
  notices: n,
1007
1062
  title: t,
1008
- description: r,
1009
- productName: o,
1010
- productVersion: s,
1063
+ description: o,
1064
+ productName: s,
1065
+ productVersion: r,
1011
1066
  generatedAt: a,
1012
1067
  emptyTitle: c,
1013
1068
  emptyDescription: d
1014
- } = l, u = t === void 0 ? "Open Source and Third-Party Notices" : t, g = r === void 0 ? "This product includes software developed by the open source community." : r, f = c === void 0 ? "No third-party notices available" : c, p = d === void 0 ? "No third-party packages were included in this build." : d;
1015
- let h;
1016
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
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 = {
1017
1072
  base: "md",
1018
1073
  md: "xl"
1019
- }, e[0] = h) : h = e[0];
1074
+ }, e[0] = p) : p = e[0];
1020
1075
  let m;
1021
- e[1] !== u ? (m = /* @__PURE__ */ i($, { textStyle: "heading/L", children: u }), e[1] = u, e[2] = m) : m = e[2];
1022
- let x;
1023
- e[3] !== g ? (x = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = x) : x = e[4];
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];
1024
1079
  let y;
1025
- e[5] !== o ? (y = o ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
1080
+ e[5] !== s ? (y = s ? /* @__PURE__ */ x(L, { textStyle: "label/XS", color: "fg.muted", children: [
1026
1081
  "Product: ",
1027
- o
1028
- ] }) : null, e[5] = o, e[6] = y) : y = e[6];
1029
- let I;
1030
- e[7] !== s ? (I = s ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
1031
- "Version: ",
1032
1082
  s
1033
- ] }) : null, e[7] = s, e[8] = I) : I = e[8];
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: [
1086
+ "Version: ",
1087
+ r
1088
+ ] }) : null, e[7] = r, e[8] = v) : v = e[8];
1034
1089
  let k;
1035
- e[9] !== n.length ? (k = /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
1090
+ e[9] !== n.length ? (k = /* @__PURE__ */ x(L, { textStyle: "label/XS", color: "fg.muted", children: [
1036
1091
  "Packages: ",
1037
1092
  n.length
1038
1093
  ] }), e[9] = n.length, e[10] = k) : k = e[10];
1039
- let P;
1040
- e[11] !== a ? (P = a ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
1094
+ let _;
1095
+ e[11] !== a ? (_ = a ? /* @__PURE__ */ x(L, { textStyle: "label/XS", color: "fg.muted", children: [
1041
1096
  "Generated: ",
1042
1097
  a
1043
- ] }) : null, e[11] = a, e[12] = P) : P = e[12];
1098
+ ] }) : null, e[11] = a, e[12] = _) : _ = e[12];
1044
1099
  let D;
1045
- e[13] !== P || e[14] !== y || e[15] !== I || e[16] !== k ? (D = /* @__PURE__ */ b(X, { gap: "md", flexWrap: "wrap", children: [
1100
+ e[13] !== _ || e[14] !== y || e[15] !== v || e[16] !== k ? (D = /* @__PURE__ */ x(X, { gap: "md", flexWrap: "wrap", children: [
1046
1101
  y,
1047
- I,
1102
+ v,
1048
1103
  k,
1049
- P
1050
- ] }), e[13] = P, e[14] = y, e[15] = I, e[16] = k, e[17] = D) : D = e[17];
1104
+ _
1105
+ ] }), e[13] = _, e[14] = y, e[15] = v, e[16] = k, e[17] = D) : D = e[17];
1051
1106
  let T;
1052
- e[18] !== D || e[19] !== m || e[20] !== x ? (T = /* @__PURE__ */ b(G, { gap: "xs", children: [
1107
+ e[18] !== D || e[19] !== m || e[20] !== b ? (T = /* @__PURE__ */ x(H, { gap: "xs", children: [
1053
1108
  m,
1054
- x,
1109
+ b,
1055
1110
  D
1056
- ] }), e[18] = D, e[19] = m, e[20] = x, e[21] = T) : T = e[21];
1057
- let _;
1058
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Ye, { borderColor: "border.muted" }), e[22] = _) : _ = e[22];
1111
+ ] }), e[18] = D, e[19] = m, e[20] = b, e[21] = T) : T = e[21];
1112
+ 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];
1059
1114
  let S;
1060
- e[23] !== p || e[24] !== f || e[25] !== n ? (S = n.length === 0 ? /* @__PURE__ */ b(G, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1061
- /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: f }),
1062
- /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: p })
1063
- ] }) : /* @__PURE__ */ i(G, { gap: "md", children: n.map(Un) }), e[23] = p, e[24] = f, e[25] = n, e[26] = S) : S = e[26];
1064
- let C;
1065
- return e[27] !== T || e[28] !== S ? (C = /* @__PURE__ */ b(G, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: h, gap: "lg", children: [
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: [
1066
1121
  T,
1067
- _,
1122
+ P,
1068
1123
  S
1069
- ] }), e[27] = T, e[28] = S, e[29] = C) : C = e[29], C;
1124
+ ] }), e[27] = T, e[28] = S, e[29] = w) : w = e[29], w;
1070
1125
  };
1071
- function Un(l, e) {
1072
- return /* @__PURE__ */ i(V, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b(G, { gap: "sm", children: [
1073
- /* @__PURE__ */ b(G, { gap: "2xs", children: [
1074
- /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: Xn(l) }),
1075
- /* @__PURE__ */ b($, { textStyle: "label/S/regular", color: "fg.muted", children: [
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: [
1076
1131
  "License: ",
1077
1132
  l.license ?? "Unknown"
1078
1133
  ] })
1079
1134
  ] }),
1080
- l.copyright ? /* @__PURE__ */ i($, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
1081
- (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ b(G, { gap: "2xs", children: [
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: [
1082
1137
  l.homepageUrl ? /* @__PURE__ */ i(Ue, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1083
1138
  l.sourceUrl ? /* @__PURE__ */ i(Ue, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1084
1139
  ] }),
1085
- l.attribution ? /* @__PURE__ */ i(V, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
1086
- ] }) }, jn(l, e));
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));
1087
1142
  }
1088
- const Bi = (l) => {
1143
+ const io = (l) => {
1089
1144
  const e = A(4), {
1090
1145
  items: n
1091
1146
  } = l;
1092
1147
  let t;
1093
- e[0] !== n ? (t = n.map(Yn), e[0] = n, e[1] = t) : t = e[1];
1094
- let r;
1095
- return e[2] !== t ? (r = /* @__PURE__ */ i(G, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
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;
1096
1151
  };
1097
- function Yn(l, e) {
1098
- return /* @__PURE__ */ b(X, { gap: "md", alignItems: "center", children: [
1099
- /* @__PURE__ */ i(V, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(X, { gap: "1", alignItems: "center", children: [
1100
- /* @__PURE__ */ i($, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
1101
- l.description && /* @__PURE__ */ i(Ee, { content: l.description, showArrow: !0, children: /* @__PURE__ */ i(oe, { as: ln, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
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" }) })
1102
1157
  ] }) }),
1103
- /* @__PURE__ */ i(V, { flex: "1", children: l.value })
1158
+ /* @__PURE__ */ i(j, { flex: "1", children: l.value })
1104
1159
  ] }, `${l.label}-${e}`);
1105
1160
  }
1106
- const Kn = (l) => l === "completed" ? rn : l === "failed" ? on : sn, qn = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : "fg.muted", Jn = (l) => {
1107
- const e = A(11), {
1108
- status: n,
1109
- boxSize: t,
1110
- ariaLabel: r,
1111
- cursor: o,
1112
- onClick: s
1113
- } = l, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
1114
- let d;
1115
- e[0] !== n ? (d = Kn(n), e[0] = n, e[1] = d) : d = e[1];
1116
- let u;
1117
- e[2] !== n ? (u = qn(n), e[2] = n, e[3] = u) : u = e[3];
1118
- let g;
1119
- return e[4] !== c || e[5] !== a || e[6] !== o || e[7] !== s || e[8] !== d || e[9] !== u ? (g = /* @__PURE__ */ i(oe, { as: d, boxSize: a, color: u, "aria-label": c, cursor: o, onClick: s }), e[4] = c, e[5] = a, e[6] = o, e[7] = s, e[8] = d, e[9] = u, e[10] = g) : g = e[10], g;
1120
- }, Pt = (l, e) => e.includes(l), Qn = (l) => {
1121
- const e = A(18), {
1161
+ const nl = (l, e) => {
1162
+ const n = e.trim().toLowerCase();
1163
+ return n ? l.filter((t) => [t.label, t.searchText].filter(Boolean).join(" ").toLowerCase().includes(n)) : l;
1164
+ }, ll = (l) => {
1165
+ const e = A(46), {
1166
+ trigger: n,
1167
+ items: t,
1168
+ searchPlaceholder: o,
1169
+ emptyState: s,
1170
+ renderItem: r,
1171
+ filterItems: a,
1172
+ header: c,
1173
+ width: d,
1174
+ maxListHeight: u,
1175
+ showSearch: f,
1176
+ closeOnSelect: g,
1177
+ 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)
1188
+ 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 = {
1207
+ 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,
1216
+ 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;
1228
+ };
1229
+ function il(l) {
1230
+ return l.stopPropagation();
1231
+ }
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), {
1234
+ status: n,
1235
+ boxSize: t,
1236
+ ariaLabel: o,
1237
+ cursor: s,
1238
+ onClick: r
1239
+ } = l, a = t === void 0 ? "14px" : t, c = o === void 0 ? "Session status" : o;
1240
+ let d;
1241
+ e[0] !== n ? (d = ol(n), e[0] = n, e[1] = d) : d = e[1];
1242
+ let u;
1243
+ e[2] !== n ? (u = rl(n), e[2] = n, e[3] = u) : u = e[3];
1244
+ 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), {
1248
+ action: n
1249
+ } = l;
1250
+ let t;
1251
+ 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;
1255
+ 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];
1257
+ const a = n.searchPlaceholder ?? "Search…", c = n.emptyMenuLabel ?? "No results found";
1258
+ 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];
1260
+ 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;
1262
+ };
1263
+ function cl(l) {
1264
+ return {
1265
+ ...l,
1266
+ searchText: [l.label, l.description].filter(Boolean).join(" ")
1267
+ };
1268
+ }
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) {
1273
+ return l.preventDefault();
1274
+ }
1275
+ const kt = (l, e) => e.includes(l), fl = (l) => {
1276
+ const e = A(20), {
1122
1277
  action: n,
1123
1278
  sectionId: t,
1124
- nodeId: r
1279
+ nodeId: o
1125
1280
  } = l;
1126
1281
  if (n.menuItems && n.menuItems.length > 0) {
1282
+ if (n.menuItems.length >= 8) {
1283
+ let f;
1284
+ return e[0] !== n ? (f = /* @__PURE__ */ i(al, { action: n }), e[0] = n, e[1] = f) : f = e[1], f;
1285
+ }
1127
1286
  let a;
1128
- e[0] !== n.icon || e[1] !== n.label ? (a = /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }) }), e[0] = n.icon, e[1] = n.label, e[2] = a) : a = e[2];
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];
1129
1288
  let c;
1130
- e[3] !== n.menuItems ? (c = n.menuItems.map(el), e[3] = n.menuItems, e[4] = c) : c = e[4];
1289
+ e[5] !== n.menuItems ? (c = n.menuItems.map(hl), e[5] = n.menuItems, e[6] = c) : c = e[6];
1131
1290
  let d;
1132
- e[5] !== c ? (d = /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "160px", bg: "bg", children: c }) }), e[5] = c, e[6] = d) : d = e[6];
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];
1133
1292
  let u;
1134
- return e[7] !== a || e[8] !== d ? (u = /* @__PURE__ */ b(le.Root, { children: [
1293
+ return e[9] !== a || e[10] !== d ? (u = /* @__PURE__ */ x(ie.Root, { children: [
1135
1294
  a,
1136
1295
  d
1137
- ] }), e[7] = a, e[8] = d, e[9] = u) : u = e[9], u;
1296
+ ] }), e[9] = a, e[10] = d, e[11] = u) : u = e[11], u;
1138
1297
  }
1139
- let o;
1140
- e[10] !== n || e[11] !== r || e[12] !== t ? (o = (a) => {
1298
+ let s;
1299
+ e[12] !== n || e[13] !== o || e[14] !== t ? (s = (a) => {
1141
1300
  a.stopPropagation(), n.onAction?.({
1142
1301
  sectionId: t,
1143
- nodeId: r
1302
+ nodeId: o
1144
1303
  });
1145
- }, e[10] = n, e[11] = r, e[12] = t, e[13] = o) : o = e[13];
1146
- let s;
1147
- return e[14] !== n.icon || e[15] !== n.label || e[16] !== o ? (s = /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, onClick: o, children: n.icon }), e[14] = n.icon, e[15] = n.label, e[16] = o, e[17] = s) : s = e[17], s;
1304
+ }, e[12] = n, e[13] = o, e[14] = t, e[15] = s) : s = e[15];
1305
+ 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;
1148
1307
  }, Je = (l) => {
1149
1308
  const e = A(11), {
1150
1309
  sectionId: n,
1151
1310
  nodeId: t,
1152
- actions: r
1311
+ actions: o
1153
1312
  } = l;
1154
- if (r.length === 0)
1313
+ if (o.length === 0)
1155
1314
  return null;
1156
- let o, s;
1157
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
1315
+ let s, r;
1316
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
1158
1317
  opacity: "1",
1159
1318
  pointerEvents: "auto"
1160
- }, s = {
1319
+ }, r = {
1161
1320
  opacity: "1",
1162
1321
  pointerEvents: "auto"
1163
- }, e[0] = o, e[1] = s) : (o = e[0], s = e[1]);
1322
+ }, e[0] = s, e[1] = r) : (s = e[0], r = e[1]);
1164
1323
  let a;
1165
- if (e[2] !== r || e[3] !== t || e[4] !== n) {
1324
+ if (e[2] !== o || e[3] !== t || e[4] !== n) {
1166
1325
  let d;
1167
- e[6] !== t || e[7] !== n ? (d = (u) => /* @__PURE__ */ i(Qn, { action: u, sectionId: n, nodeId: t }, u.id), e[6] = t, e[7] = n, e[8] = d) : d = e[8], a = r.map(d), e[2] = r, e[3] = t, e[4] = n, e[5] = a;
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;
1168
1327
  } else
1169
1328
  a = e[5];
1170
1329
  let c;
1171
- return e[9] !== a ? (c = /* @__PURE__ */ i(X, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: o, _groupFocusWithin: s, transition: "opacity 120ms ease", onClick: tl, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1172
- }, Tt = (l) => {
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) => {
1173
1332
  const e = A(63), {
1174
1333
  sectionId: n,
1175
1334
  node: t,
1176
- level: r,
1177
- expandedNodes: o,
1178
- activeNodeId: s,
1335
+ level: o,
1336
+ expandedNodes: s,
1337
+ activeNodeId: r,
1179
1338
  linkComponent: a,
1180
1339
  onNavigate: c,
1181
1340
  onToggleNode: d
1182
1341
  } = l, u = (t.children?.length ?? 0) > 0;
1183
- let g;
1184
- e[0] !== o || e[1] !== u || e[2] !== t.id ? (g = u && Pt(t.id, o), e[0] = o, e[1] = u, e[2] = t.id, e[3] = g) : g = e[3];
1185
- const f = g, p = t.isNavigable || t.navigationIntent !== void 0, h = s === t.id, m = t.disabled === !0, x = r > 0 ? `calc(var(--chakra-spacing-1) + ${r} * var(--chakra-spacing-3))` : void 0, y = !!(a && t.href && p && !u && !m);
1186
- let I;
1187
- e[4] !== u || e[5] !== m || e[6] !== p || e[7] !== t || e[8] !== c || e[9] !== d || e[10] !== n ? (I = () => {
1342
+ 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 = () => {
1188
1347
  if (!m) {
1189
1348
  if (u) {
1190
1349
  d(t.id);
1191
1350
  return;
1192
1351
  }
1193
- p && c?.({
1352
+ h && c?.({
1194
1353
  sectionId: n,
1195
1354
  nodeId: t.id,
1196
1355
  node: t,
1197
1356
  intent: t.navigationIntent
1198
1357
  });
1199
1358
  }
1200
- }, e[4] = u, e[5] = m, e[6] = p, e[7] = t, e[8] = c, e[9] = d, e[10] = n, e[11] = I) : I = e[11];
1201
- const k = I;
1202
- let P;
1203
- e[12] !== t.icon ? (P = t.icon ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: t.icon }) : null, e[12] = t.icon, e[13] = P) : P = e[13];
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];
1204
1363
  const D = m ? "fg.muted" : "fg";
1205
1364
  let T;
1206
- e[14] !== t.label || e[15] !== D ? (T = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: D, truncate: !0, children: t.label }), e[14] = t.label, e[15] = D, e[16] = T) : T = e[16];
1207
- let _;
1208
- e[17] !== f || e[18] !== u ? (_ = u ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(ye, { size: 14, style: {
1209
- transform: f ? "rotate(90deg)" : "rotate(0deg)",
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];
1366
+ 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)",
1210
1369
  transition: "120ms"
1211
- } }) }) : null, e[17] = f, e[18] = u, e[19] = _) : _ = e[19];
1370
+ } }) }) : null, e[17] = g, e[18] = u, e[19] = P) : P = e[19];
1212
1371
  let S;
1213
- e[20] !== T || e[21] !== _ ? (S = /* @__PURE__ */ b(X, { gap: "1", minW: "0", children: [
1372
+ e[20] !== T || e[21] !== P ? (S = /* @__PURE__ */ x(X, { gap: "1", minW: "0", children: [
1214
1373
  T,
1215
- _
1216
- ] }), e[20] = T, e[21] = _, e[22] = S) : S = e[22];
1217
- let C;
1218
- e[23] !== t.description ? (C = t.description ? /* @__PURE__ */ i($, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[23] = t.description, e[24] = C) : C = e[24];
1374
+ P
1375
+ ] }), e[20] = T, e[21] = P, e[22] = S) : S = e[22];
1219
1376
  let w;
1220
- e[25] !== S || e[26] !== C ? (w = /* @__PURE__ */ b(G, { gap: "0", minW: "0", flex: "1", children: [
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: [
1221
1380
  S,
1222
- C
1223
- ] }), e[25] = S, e[26] = C, e[27] = w) : w = e[27];
1224
- let v;
1225
- e[28] !== P || e[29] !== w ? (v = /* @__PURE__ */ b(X, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1226
- P,
1227
1381
  w
1228
- ] }), e[28] = P, e[29] = w, e[30] = v) : v = e[30];
1229
- const E = v, L = h ? "bg.muted" : "transparent", z = h ? "bg.muted" : "bg.subtle";
1230
- let O;
1231
- e[31] !== z ? (O = {
1232
- bg: z
1233
- }, e[31] = z, e[32] = O) : O = e[32];
1234
- const W = m ? "default" : "pointer";
1235
- let H;
1236
- e[33] !== h || e[34] !== x || e[35] !== L || e[36] !== O || e[37] !== W ? (H = {
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 = {
1237
1396
  className: "group",
1238
1397
  role: "option",
1239
- "aria-selected": h,
1398
+ "aria-selected": p,
1240
1399
  justify: "space-between",
1241
1400
  align: "center",
1242
1401
  borderRadius: "xs",
1243
1402
  px: "1",
1244
1403
  py: "2xs",
1245
- pl: x,
1246
- bg: L,
1247
- _hover: O,
1248
- cursor: W,
1404
+ pl: b,
1405
+ bg: $,
1406
+ _hover: M,
1407
+ cursor: N,
1249
1408
  overflow: "hidden"
1250
- }, e[33] = h, e[34] = x, e[35] = L, e[36] = O, e[37] = W, e[38] = H) : H = e[38];
1251
- const B = H, N = t.children ? "0" : "2xs";
1252
- let M;
1253
- e[39] !== a || e[40] !== y || e[41] !== k || e[42] !== t.actions || e[43] !== t.href || e[44] !== t.id || e[45] !== E || e[46] !== B || e[47] !== n ? (M = y && a && t.href ? /* @__PURE__ */ i(a, { to: t.href, children: /* @__PURE__ */ b(X, { ...B, onClick: k, children: [
1254
- E,
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,
1255
1414
  /* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1256
- ] }) }) : /* @__PURE__ */ b(X, { ...B, onClick: k, children: [
1257
- E,
1415
+ ] }) }) : /* @__PURE__ */ x(X, { ...B, onClick: k, children: [
1416
+ z,
1258
1417
  /* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1259
- ] }), e[39] = a, e[40] = y, e[41] = k, e[42] = t.actions, e[43] = t.href, e[44] = t.id, e[45] = E, e[46] = B, e[47] = n, e[48] = M) : M = e[48];
1260
- let R;
1261
- e[49] !== a || e[50] !== s || e[51] !== f || e[52] !== o || e[53] !== r || e[54] !== t.children || e[55] !== c || e[56] !== d || e[57] !== n ? (R = f ? t.children?.map((Y) => /* @__PURE__ */ i(Tt, { sectionId: n, node: Y, level: r + 1, expandedNodes: o, activeNodeId: s, linkComponent: a, onNavigate: c, onToggleNode: d }, Y.id)) : null, e[49] = a, e[50] = s, e[51] = f, e[52] = o, e[53] = r, e[54] = t.children, e[55] = c, e[56] = d, e[57] = n, e[58] = R) : R = e[58];
1262
- let F;
1263
- return e[59] !== N || e[60] !== M || e[61] !== R ? (F = /* @__PURE__ */ b(G, { gap: N, children: [
1264
- M,
1265
- R
1266
- ] }), e[59] = N, e[60] = M, e[61] = R, e[62] = F) : F = e[62], F;
1267
- }, Zn = (l) => {
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) => {
1268
1427
  const e = A(19), {
1269
1428
  sections: n,
1270
1429
  expandedSections: t,
1271
- expandedNodes: r,
1272
- activeNodeId: o,
1273
- linkComponent: s,
1430
+ expandedNodes: o,
1431
+ activeNodeId: s,
1432
+ linkComponent: r,
1274
1433
  onNavigate: a,
1275
1434
  onToggleSection: c,
1276
1435
  onToggleNode: d
1277
1436
  } = l;
1278
1437
  let u;
1279
- if (e[0] !== o || e[1] !== r || e[2] !== t || e[3] !== s || e[4] !== a || e[5] !== d || e[6] !== c || e[7] !== n) {
1280
- let f;
1281
- e[9] !== o || e[10] !== r || e[11] !== t || e[12] !== s || e[13] !== a || e[14] !== d || e[15] !== c ? (f = (p) => {
1282
- const h = p.label ? Pt(p.id, t) : !0;
1283
- return /* @__PURE__ */ b(G, { gap: "0", "data-testid": `sidebar-section-${p.id}`, children: [
1284
- p.label ? /* @__PURE__ */ b(X, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
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: {
1285
1444
  bg: "bg.subtle"
1286
- }, onClick: () => c(p.id), children: [
1287
- /* @__PURE__ */ b(X, { gap: "1", flex: "1", minW: "0", children: [
1288
- /* @__PURE__ */ i($, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: p.label }),
1289
- /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(ye, { size: 14, style: {
1290
- transform: h ? "rotate(90deg)" : "rotate(0deg)",
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)",
1291
1450
  transition: "120ms"
1292
1451
  } }) })
1293
1452
  ] }),
1294
- /* @__PURE__ */ i(Je, { sectionId: p.id, actions: p.actions ?? [] })
1453
+ /* @__PURE__ */ i(Je, { sectionId: h.id, actions: h.actions ?? [] })
1295
1454
  ] }) : null,
1296
- h ? p.nodes.length > 0 ? p.nodes.map((m) => /* @__PURE__ */ i(Tt, { sectionId: p.id, node: m, level: 0, expandedNodes: r, activeNodeId: o, linkComponent: s, onNavigate: a, onToggleNode: d }, m.id)) : p.emptyState ?? null : null
1297
- ] }, p.id);
1298
- }, e[9] = o, e[10] = r, e[11] = t, e[12] = s, e[13] = a, e[14] = d, e[15] = c, e[16] = f) : f = e[16], u = n.map(f), e[0] = o, e[1] = r, e[2] = t, e[3] = s, e[4] = a, e[5] = d, e[6] = c, e[7] = n, e[8] = u;
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
1456
+ ] }, 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;
1299
1458
  } else
1300
1459
  u = e[8];
1301
- let g;
1302
- return e[17] !== u ? (g = /* @__PURE__ */ i(G, { role: "listbox", gap: "md", p: "md", children: u }), e[17] = u, e[18] = g) : g = e[18], g;
1460
+ 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;
1303
1462
  };
1304
- function el(l) {
1305
- return /* @__PURE__ */ i(Ee, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ b(le.Item, { value: l.id, onClick: () => l.onAction?.(), children: [
1306
- l.icon ? /* @__PURE__ */ i(V, { mr: "2", children: l.icon }) : null,
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,
1307
1466
  l.label
1308
1467
  ] }) }, l.id);
1309
1468
  }
1310
- function tl(l) {
1469
+ function pl(l) {
1311
1470
  return l.stopPropagation();
1312
1471
  }
1313
- const ot = {
1472
+ const st = {
1314
1473
  open: !0,
1315
1474
  expandedSections: [],
1316
1475
  expandedNodes: []
1317
- }, nl = "pstdio/ui/sidebar-next", ll = (l) => `${nl}/${l}`, il = () => ({
1476
+ }, ml = "pstdio/ui/sidebar-next", bl = (l) => `${ml}/${l}`, xl = () => ({
1318
1477
  getItem: () => null,
1319
1478
  setItem: () => {
1320
1479
  },
1321
1480
  removeItem: () => {
1322
1481
  }
1323
- }), st = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], at = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), rl = (l) => ({
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) => ({
1324
1483
  open: l.open,
1325
1484
  expandedSections: l.expandedSections,
1326
1485
  expandedNodes: l.expandedNodes
1327
- }), ol = (l) => {
1486
+ }), yl = (l) => {
1328
1487
  const {
1329
1488
  storageKey: e,
1330
1489
  initialState: n
1331
1490
  } = l, t = {
1332
- ...ot,
1491
+ ...st,
1333
1492
  ...n
1334
1493
  };
1335
- return wt()(Ct((r) => ({
1494
+ return vt()(St((o) => ({
1336
1495
  ...t,
1337
- openSidebar: () => r((o) => ({
1338
- ...o,
1496
+ openSidebar: () => o((s) => ({
1497
+ ...s,
1339
1498
  open: !0
1340
1499
  })),
1341
- closeSidebar: () => r((o) => ({
1342
- ...o,
1500
+ closeSidebar: () => o((s) => ({
1501
+ ...s,
1343
1502
  open: !1
1344
1503
  })),
1345
- toggleSidebar: () => r((o) => ({
1346
- ...o,
1347
- open: !o.open
1348
- })),
1349
- toggleSection: (o) => r((s) => ({
1504
+ toggleSidebar: () => o((s) => ({
1350
1505
  ...s,
1351
- expandedSections: st(s.expandedSections, o)
1506
+ open: !s.open
1352
1507
  })),
1353
- toggleNode: (o) => r((s) => ({
1354
- ...s,
1355
- expandedNodes: st(s.expandedNodes, o)
1508
+ toggleSection: (s) => o((r) => ({
1509
+ ...r,
1510
+ expandedSections: at(r.expandedSections, s)
1511
+ })),
1512
+ toggleNode: (s) => o((r) => ({
1513
+ ...r,
1514
+ expandedNodes: at(r.expandedNodes, s)
1356
1515
  })),
1357
- setSectionExpanded: (o, s) => r((a) => ({
1516
+ setSectionExpanded: (s, r) => o((a) => ({
1358
1517
  ...a,
1359
- expandedSections: at(a.expandedSections, o, s)
1518
+ expandedSections: ct(a.expandedSections, s, r)
1360
1519
  })),
1361
- setNodeExpanded: (o, s) => r((a) => ({
1520
+ setNodeExpanded: (s, r) => o((a) => ({
1362
1521
  ...a,
1363
- expandedNodes: at(a.expandedNodes, o, s)
1522
+ expandedNodes: ct(a.expandedNodes, s, r)
1364
1523
  })),
1365
- reset: () => r(ot)
1524
+ reset: () => o(st)
1366
1525
  }), {
1367
- name: ll(e),
1368
- storage: vt(() => typeof globalThis.localStorage > "u" ? il() : globalThis.localStorage),
1369
- partialize: rl
1526
+ name: bl(e),
1527
+ storage: yt(() => typeof globalThis.localStorage > "u" ? xl() : globalThis.localStorage),
1528
+ partialize: Sl
1370
1529
  }));
1371
- }, ct = /* @__PURE__ */ new Map(), sl = (l) => {
1372
- const e = ct.get(l);
1530
+ }, dt = /* @__PURE__ */ new Map(), vl = (l) => {
1531
+ const e = dt.get(l);
1373
1532
  if (e)
1374
1533
  return e;
1375
- const n = ol({
1534
+ const n = yl({
1376
1535
  storageKey: l
1377
1536
  });
1378
- return ct.set(l, n), n;
1379
- }, Re = (l, e) => {
1537
+ return dt.set(l, n), n;
1538
+ }, $e = (l, e) => {
1380
1539
  const n = A(2);
1381
1540
  let t;
1382
- return n[0] !== l ? (t = sl(l), n[0] = l, n[1] = t) : t = n[1], yt(t, e);
1383
- }, al = (l) => {
1541
+ return n[0] !== l ? (t = vl(l), n[0] = l, n[1] = t) : t = n[1], xt(t, e);
1542
+ }, Cl = (l) => {
1384
1543
  const e = A(2), {
1385
1544
  children: n
1386
1545
  } = l;
1387
1546
  if (!n)
1388
1547
  return null;
1389
1548
  let t;
1390
- return e[0] !== n ? (t = /* @__PURE__ */ i(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;
1391
- }, cl = (l) => {
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) => {
1392
1551
  const e = A(7), {
1393
1552
  children: n,
1394
1553
  onClose: t
1395
1554
  } = l;
1396
- let r;
1397
- e[0] !== n ? (r = /* @__PURE__ */ i(X, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = r) : r = e[1];
1398
1555
  let o;
1399
- e[2] !== t ? (o = t ? /* @__PURE__ */ i(Se, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ i(an, { size: 16 }) }) : null, e[2] = t, e[3] = o) : o = e[3];
1556
+ e[0] !== n ? (o = /* @__PURE__ */ i(X, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = o) : o = e[1];
1400
1557
  let s;
1401
- return e[4] !== r || e[5] !== o ? (s = /* @__PURE__ */ b(X, { justify: "space-between", align: "center", px: "4", py: "3", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1402
- r,
1403
- o
1404
- ] }), e[4] = r, e[5] = o, e[6] = s) : s = e[6], s;
1405
- }, Vi = (l) => {
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];
1559
+ 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,
1562
+ s
1563
+ ] }), e[4] = o, e[5] = s, e[6] = r) : r = e[6], r;
1564
+ }, oo = (l) => {
1406
1565
  const e = A(24), {
1407
1566
  storageKey: n,
1408
1567
  sections: t,
1409
- activeNodeId: r,
1410
- header: o,
1411
- footer: s,
1568
+ activeNodeId: o,
1569
+ header: s,
1570
+ footer: r,
1412
1571
  width: a,
1413
1572
  closable: c,
1414
1573
  emptyLabel: d,
1415
1574
  linkComponent: u,
1416
- onNavigate: g,
1417
- onOpenChange: f
1418
- } = l, p = a === void 0 ? "240px" : a, h = c === void 0 ? !0 : c, m = d === void 0 ? "No items available." : d, x = Re(n, dl), y = Re(n, ul), I = Re(n, gl), k = Re(n, fl), P = Re(n, pl), D = Re(n, hl);
1419
- let T, _;
1420
- if (e[0] !== f || e[1] !== x ? (T = () => {
1421
- f?.(x);
1422
- }, _ = [f, x], e[0] = f, e[1] = x, e[2] = T, e[3] = _) : (T = e[2], _ = e[3]), He(T, _), !x && h)
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)
1423
1582
  return null;
1424
- const S = h ? k : void 0;
1425
- let C;
1426
- e[4] !== o || e[5] !== S ? (C = /* @__PURE__ */ i(cl, { onClose: S, children: o }), e[4] = o, e[5] = S, e[6] = C) : C = e[6];
1583
+ const S = p ? k : void 0;
1427
1584
  let w;
1428
- e[7] !== r || e[8] !== m || e[9] !== I || e[10] !== y || e[11] !== u || e[12] !== g || e[13] !== t || e[14] !== D || e[15] !== P ? (w = /* @__PURE__ */ i(Ce, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ i(Zn, { sections: t, expandedSections: y, expandedNodes: I, activeNodeId: r, linkComponent: u, onNavigate: g, onToggleSection: P, onToggleNode: D }) }), e[7] = r, e[8] = m, e[9] = I, e[10] = y, e[11] = u, e[12] = g, e[13] = t, e[14] = D, e[15] = P, e[16] = w) : w = e[16];
1429
- let v;
1430
- e[17] !== s ? (v = /* @__PURE__ */ i(al, { children: s }), e[17] = s, e[18] = v) : v = e[18];
1431
- let E;
1432
- return e[19] !== C || e[20] !== w || e[21] !== v || e[22] !== p ? (E = /* @__PURE__ */ b(we, { as: "aside", "data-testid": "sidebar", direction: "column", h: "100%", w: p, minW: p, maxW: p, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1433
- C,
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: [
1434
1592
  w,
1435
- v
1436
- ] }), e[19] = C, e[20] = w, e[21] = v, e[22] = p, e[23] = E) : E = e[23], E;
1593
+ C,
1594
+ I
1595
+ ] }), e[19] = w, e[20] = C, e[21] = I, e[22] = h, e[23] = z) : z = e[23], z;
1437
1596
  };
1438
- function dl(l) {
1597
+ function Il(l) {
1439
1598
  return l.open;
1440
1599
  }
1441
- function ul(l) {
1600
+ function kl(l) {
1442
1601
  return l.expandedSections;
1443
1602
  }
1444
- function gl(l) {
1603
+ function Pl(l) {
1445
1604
  return l.expandedNodes;
1446
1605
  }
1447
- function fl(l) {
1606
+ function Tl(l) {
1448
1607
  return l.closeSidebar;
1449
1608
  }
1450
- function pl(l) {
1609
+ function Dl(l) {
1451
1610
  return l.toggleSection;
1452
1611
  }
1453
- function hl(l) {
1612
+ function _l(l) {
1454
1613
  return l.toggleNode;
1455
1614
  }
1456
- const ji = Fe.forwardRef(function(e, n) {
1615
+ const ro = Ze.forwardRef(function(e, n) {
1457
1616
  const t = A(32);
1458
- let r, o, s, a, c, d, u;
1617
+ let o, s, r, a, c, d, u;
1459
1618
  t[0] !== e ? ({
1460
- inputProps: o,
1461
- children: r,
1619
+ inputProps: s,
1620
+ children: o,
1462
1621
  rootRef: a,
1463
1622
  trackLabel: u,
1464
1623
  thumbLabel: d,
1465
1624
  disabled: c,
1466
- ...s
1467
- } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d, t[7] = u) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6], u = t[7]);
1468
- const g = c === void 0 ? !1 : c, f = g ? "not-allowed" : "pointer";
1469
- let p;
1470
- t[8] !== o || t[9] !== n ? (p = /* @__PURE__ */ i(De.HiddenInput, { ref: n, ...o }), t[8] = o, t[9] = n, t[10] = p) : p = t[10];
1625
+ ...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";
1471
1628
  let h;
1472
- t[11] !== d ? (h = d && /* @__PURE__ */ i(De.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = h) : h = t[12];
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];
1473
1632
  let m;
1474
- t[13] !== h ? (m = /* @__PURE__ */ i(De.Thumb, { borderRadius: "full", children: h }), t[13] = h, t[14] = m) : m = t[14];
1475
- let x;
1476
- t[15] !== u ? (x = u && /* @__PURE__ */ i(De.Indicator, { fallback: u.off, children: u.on }), t[15] = u, t[16] = x) : x = t[16];
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];
1477
1636
  let y;
1478
- t[17] !== f || t[18] !== m || t[19] !== x ? (y = /* @__PURE__ */ b(De.Control, { borderRadius: "md", cursor: f, children: [
1637
+ t[17] !== g || t[18] !== m || t[19] !== b ? (y = /* @__PURE__ */ x(Te.Control, { borderRadius: "md", cursor: g, children: [
1479
1638
  m,
1480
- x
1481
- ] }), t[17] = f, t[18] = m, t[19] = x, t[20] = y) : y = t[20];
1482
- let I;
1483
- t[21] !== r || t[22] !== f ? (I = r != null && /* @__PURE__ */ i(De.Label, { cursor: f, children: r }), t[21] = r, t[22] = f, t[23] = I) : I = t[23];
1639
+ b
1640
+ ] }), t[17] = g, t[18] = m, t[19] = b, t[20] = y) : y = t[20];
1641
+ 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];
1484
1643
  let k;
1485
- return t[24] !== g || t[25] !== f || t[26] !== s || t[27] !== a || t[28] !== p || t[29] !== y || t[30] !== I ? (k = /* @__PURE__ */ b(De.Root, { ref: a, disabled: g, cursor: f, ...s, children: [
1486
- p,
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: [
1645
+ h,
1487
1646
  y,
1488
- I
1489
- ] }), t[24] = g, t[25] = f, t[26] = s, t[27] = a, t[28] = p, t[29] = y, t[30] = I, t[31] = k) : k = t[31], k;
1490
- }), Me = (l) => {
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) => {
1491
1650
  const e = A(2);
1492
1651
  let n;
1493
- return e[0] !== l.children ? (n = /* @__PURE__ */ i($, { textStyle: "label/XS/medium", color: "fg.muted", children: l.children }), e[0] = l.children, e[1] = n) : n = e[1], n;
1494
- }, je = (l) => {
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) => {
1495
1654
  const e = A(19);
1496
1655
  let n;
1497
- e[0] !== l.label || e[1] !== l.options || e[2] !== l.value ? (n = l.options.find((g) => g.value === l.value)?.label ?? l.label, e[0] = l.label, e[1] = l.options, e[2] = l.value, e[3] = n) : n = e[3];
1656
+ 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];
1498
1657
  const t = n;
1499
- let r;
1500
- e[4] !== l.label ? (r = /* @__PURE__ */ i(Me, { children: l.label }), e[4] = l.label, e[5] = r) : r = e[5];
1501
1658
  let o;
1502
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i(oe, { as: et, color: "fg.muted" }), e[6] = o) : o = e[6];
1659
+ e[4] !== l.label ? (o = /* @__PURE__ */ i(Ae, { children: l.label }), e[4] = l.label, e[5] = o) : o = e[5];
1503
1660
  let s;
1504
- e[7] !== t ? (s = /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ b(de, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
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];
1662
+ 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: [
1505
1664
  t,
1506
- o
1507
- ] }) }), e[7] = t, e[8] = s) : s = e[8];
1665
+ s
1666
+ ] }) }), e[7] = t, e[8] = r) : r = e[8];
1508
1667
  let a;
1509
- e[9] !== l ? (a = l.options.map((g) => /* @__PURE__ */ i(le.Item, { value: g.value, onClick: () => l.onSelect(g.value), children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", children: g.label }) }, g.value)), e[9] = l, e[10] = a) : a = e[10];
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];
1510
1669
  let c;
1511
- e[11] !== a ? (c = /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "260px", bg: "bg", children: a }) }), e[11] = a, e[12] = c) : c = e[12];
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];
1512
1671
  let d;
1513
- e[13] !== s || e[14] !== c ? (d = /* @__PURE__ */ b(le.Root, { children: [
1514
- s,
1672
+ e[13] !== r || e[14] !== c ? (d = /* @__PURE__ */ x(ie.Root, { children: [
1673
+ r,
1515
1674
  c
1516
- ] }), e[13] = s, e[14] = c, e[15] = d) : d = e[15];
1675
+ ] }), e[13] = r, e[14] = c, e[15] = d) : d = e[15];
1517
1676
  let u;
1518
- return e[16] !== r || e[17] !== d ? (u = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1519
- r,
1677
+ return e[16] !== o || e[17] !== d ? (u = /* @__PURE__ */ x(H, { gap: "2xs", children: [
1678
+ o,
1520
1679
  d
1521
- ] }), e[16] = r, e[17] = d, e[18] = u) : u = e[18], u;
1522
- }, ml = (l) => {
1680
+ ] }), e[16] = o, e[17] = d, e[18] = u) : u = e[18], u;
1681
+ }, $l = (l) => {
1523
1682
  const e = A(60), {
1524
1683
  settings: n,
1525
1684
  groupingOptions: t,
1526
- orderingOptions: r,
1527
- displayPropertyOptions: o,
1528
- onViewModeChange: s,
1685
+ orderingOptions: o,
1686
+ displayPropertyOptions: s,
1687
+ onViewModeChange: r,
1529
1688
  onColumnGroupingChange: a,
1530
1689
  onRowGroupingChange: c,
1531
1690
  onOrderingFieldChange: d,
1532
1691
  onSortDirectionToggle: u,
1533
- onDisplayPropertyToggle: g
1692
+ onDisplayPropertyToggle: f
1534
1693
  } = l;
1535
- let f;
1536
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
1694
+ let g;
1695
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
1537
1696
  placement: "bottom-end",
1538
1697
  offset: {
1539
1698
  mainAxis: 8
1540
1699
  }
1541
- }, e[0] = f) : f = e[0];
1542
- let p;
1543
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ i(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ i(oe, { as: cn, boxSize: "14px" }) }) }), e[1] = p) : p = e[1];
1700
+ }, e[0] = g) : g = e[0];
1544
1701
  let h;
1545
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ i(Me, { children: "View" }), e[2] = h) : h = e[2];
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];
1546
1705
  let m;
1547
- e[3] !== s ? (m = (R) => {
1548
- R.value && s(R.value);
1549
- }, e[3] = s, e[4] = m) : m = e[4];
1550
- let x;
1551
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ i(ve.Indicator, {}), e[5] = x) : x = e[5];
1706
+ e[3] !== r ? (m = (E) => {
1707
+ 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];
1552
1711
  let y;
1553
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ b(ve.Item, { value: "list", children: [
1554
- /* @__PURE__ */ i(ve.ItemText, { children: /* @__PURE__ */ b(X, { as: "span", gap: "2xs", children: [
1555
- /* @__PURE__ */ i(dn, { size: 14 }),
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 }),
1556
1715
  /* @__PURE__ */ i("span", { children: "List" })
1557
1716
  ] }) }),
1558
- /* @__PURE__ */ i(ve.ItemHiddenInput, {})
1717
+ /* @__PURE__ */ i(we.ItemHiddenInput, {})
1559
1718
  ] }), e[6] = y) : y = e[6];
1560
- let I;
1561
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ b(ve.Item, { value: "board", children: [
1562
- /* @__PURE__ */ i(ve.ItemText, { children: /* @__PURE__ */ b(X, { as: "span", gap: "2xs", children: [
1563
- /* @__PURE__ */ i(un, { size: 14 }),
1719
+ 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 }),
1564
1723
  /* @__PURE__ */ i("span", { children: "Board" })
1565
1724
  ] }) }),
1566
- /* @__PURE__ */ i(ve.ItemHiddenInput, {})
1567
- ] }), e[7] = I) : I = e[7];
1725
+ /* @__PURE__ */ i(we.ItemHiddenInput, {})
1726
+ ] }), e[7] = v) : v = e[7];
1568
1727
  let k;
1569
- e[8] !== n.viewMode || e[9] !== m ? (k = /* @__PURE__ */ b(ve.Root, { size: "sm", value: n.viewMode, onValueChange: m, children: [
1570
- x,
1728
+ e[8] !== n.viewMode || e[9] !== m ? (k = /* @__PURE__ */ x(we.Root, { size: "sm", value: n.viewMode, onValueChange: m, children: [
1729
+ b,
1571
1730
  y,
1572
- I
1731
+ v
1573
1732
  ] }), e[8] = n.viewMode, e[9] = m, e[10] = k) : k = e[10];
1574
- let P;
1575
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ i(Ye, {}), e[11] = P) : P = e[11];
1733
+ let _;
1734
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Ye, {}), e[11] = _) : _ = e[11];
1576
1735
  let D;
1577
- e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (D = (R) => {
1578
- a(R), (R === "none" || R === n.rowGrouping) && c("none");
1736
+ e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (D = (E) => {
1737
+ a(E), (E === "none" || E === n.rowGrouping) && c("none");
1579
1738
  }, e[12] = a, e[13] = c, e[14] = n.rowGrouping, e[15] = D) : D = e[15];
1580
1739
  let T;
1581
- e[16] !== t || e[17] !== n.columnGrouping || e[18] !== D ? (T = /* @__PURE__ */ i(je, { 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];
1582
- const _ = n.rowGrouping;
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;
1583
1742
  let S;
1584
1743
  if (e[20] !== t || e[21] !== n.columnGrouping) {
1585
- let R;
1586
- e[23] !== n.columnGrouping ? (R = (F) => F.value === "none" || F.value !== n.columnGrouping, e[23] = n.columnGrouping, e[24] = R) : R = e[24], S = t.filter(R), e[20] = t, e[21] = n.columnGrouping, e[22] = S;
1744
+ 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;
1587
1746
  } else
1588
1747
  S = e[22];
1589
- let C;
1590
- e[25] !== c || e[26] !== n.rowGrouping || e[27] !== S ? (C = /* @__PURE__ */ i(je, { label: "Sub-grouping", value: _, options: S, onSelect: c }), e[25] = c, e[26] = n.rowGrouping, e[27] = S, e[28] = C) : C = e[28];
1591
1748
  let w;
1592
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ i(Me, { children: "Ordering" }), e[29] = w) : w = e[29];
1593
- let v;
1594
- e[30] !== d || e[31] !== r || e[32] !== n.ordering.field ? (v = /* @__PURE__ */ i(je, { label: "Sort by", value: n.ordering.field, options: r, onSelect: d }), e[30] = d, e[31] = r, e[32] = n.ordering.field, e[33] = v) : v = e[33];
1595
- const E = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
1596
- let L;
1597
- e[34] !== E ? (L = /* @__PURE__ */ i(oe, { as: gn, transform: E }), e[34] = E, e[35] = L) : L = e[35];
1598
- let z;
1599
- e[36] !== u || e[37] !== n.ordering.direction || e[38] !== L ? (z = /* @__PURE__ */ i(Se, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: u, "data-direction": n.ordering.direction, children: L }), e[36] = u, e[37] = n.ordering.direction, e[38] = L, e[39] = z) : z = e[39];
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)";
1755
+ let $;
1756
+ e[34] !== z ? ($ = /* @__PURE__ */ i(ue, { as: bn, transform: z }), e[34] = z, e[35] = $) : $ = e[35];
1600
1757
  let O;
1601
- e[40] !== v || e[41] !== z ? (O = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1602
- w,
1603
- /* @__PURE__ */ b(X, { gap: "2xs", children: [
1604
- v,
1605
- z
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
1606
1765
  ] })
1607
- ] }), e[40] = v, e[41] = z, e[42] = O) : O = e[42];
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];
1608
1769
  let W;
1609
- e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(Ye, {}), e[43] = W) : W = e[43];
1610
- let H;
1611
- e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ i(Me, { children: "Display properties" }), e[44] = H) : H = e[44];
1770
+ e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(Ae, { children: "Display properties" }), e[44] = W) : W = e[44];
1612
1771
  let B;
1613
- if (e[45] !== o || e[46] !== g || e[47] !== n.displayProperties) {
1614
- let R;
1615
- e[49] !== g || e[50] !== n.displayProperties ? (R = (F) => {
1616
- const Y = n.displayProperties.includes(F.value);
1617
- return /* @__PURE__ */ i(de, { size: "2xs", variant: Y ? "solid" : "outline", onClick: () => g(F.value), children: F.label }, F.value);
1618
- }, e[49] = g, e[50] = n.displayProperties, e[51] = R) : R = e[51], B = o.map(R), e[45] = o, e[46] = g, e[47] = n.displayProperties, e[48] = B;
1772
+ if (e[45] !== s || e[46] !== f || e[47] !== n.displayProperties) {
1773
+ 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;
1619
1778
  } else
1620
1779
  B = e[48];
1621
- let N;
1622
- e[52] !== B ? (N = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1623
- H,
1780
+ let G;
1781
+ e[52] !== B ? (G = /* @__PURE__ */ x(H, { gap: "2xs", children: [
1782
+ W,
1624
1783
  /* @__PURE__ */ i(X, { flexWrap: "wrap", gap: "2xs", children: B })
1625
- ] }), e[52] = B, e[53] = N) : N = e[53];
1626
- let M;
1627
- return e[54] !== T || e[55] !== C || e[56] !== O || e[57] !== N || e[58] !== k ? (M = /* @__PURE__ */ b(Ie.Root, { positioning: f, children: [
1628
- p,
1629
- /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ie.Positioner, { children: /* @__PURE__ */ i(Ie.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ b(G, { gap: "sm", children: [
1630
- h,
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: [
1787
+ 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,
1631
1790
  k,
1632
- P,
1791
+ _,
1633
1792
  T,
1634
- C,
1635
- O,
1636
- W,
1637
- N
1793
+ w,
1794
+ M,
1795
+ N,
1796
+ G
1638
1797
  ] }) }) }) })
1639
- ] }), e[54] = T, e[55] = C, e[56] = O, e[57] = N, e[58] = k, e[59] = M) : M = e[59], M;
1640
- }, bl = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), xl = (l) => {
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) => {
1641
1800
  const e = A(39), {
1642
1801
  categories: n,
1643
1802
  filters: t,
1644
- countsByCategory: r,
1645
- onToggleFilterValue: o,
1646
- onClearFilter: s,
1803
+ countsByCategory: o,
1804
+ onToggleFilterValue: s,
1805
+ onClearFilter: r,
1647
1806
  onClearAll: a
1648
- } = l, [c, d] = me(n[0]?.id ?? "status");
1807
+ } = l, [c, d] = pe(n[0]?.id ?? "status");
1649
1808
  let u;
1650
- e[0] !== c || e[1] !== n ? (u = n.find((v) => v.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = u) : u = e[2];
1651
- const g = u, f = bl(t);
1652
- let p;
1653
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
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);
1811
+ let h;
1812
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
1654
1813
  placement: "bottom-end",
1655
1814
  offset: {
1656
1815
  mainAxis: 8
1657
1816
  }
1658
- }, e[3] = p) : p = e[3];
1659
- const h = f > 0 ? "outline" : "ghost";
1817
+ }, e[3] = h) : h = e[3];
1818
+ const p = g > 0 ? "outline" : "ghost";
1660
1819
  let m;
1661
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(oe, { as: fn, boxSize: "14px" }), e[4] = m) : m = e[4];
1662
- let x;
1663
- e[5] !== f ? (x = f > 0 ? /* @__PURE__ */ i(Te, { variant: "solid", children: f }) : null, e[5] = f, e[6] = x) : x = e[6];
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];
1664
1823
  let y;
1665
- e[7] !== x ? (y = /* @__PURE__ */ b(X, { gap: "2xs", children: [
1824
+ e[7] !== b ? (y = /* @__PURE__ */ x(X, { gap: "2xs", children: [
1666
1825
  m,
1667
- x
1668
- ] }), e[7] = x, e[8] = y) : y = e[8];
1669
- let I;
1670
- e[9] !== h || e[10] !== y ? (I = /* @__PURE__ */ i(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Filter tickets", variant: h, size: "sm", children: y }) }), e[9] = h, e[10] = y, e[11] = I) : I = e[11];
1826
+ b
1827
+ ] }), e[7] = b, e[8] = y) : y = e[8];
1828
+ 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];
1671
1830
  let k;
1672
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i($, { textStyle: "label/XS/medium", color: "fg.muted", children: "Filters" }), e[12] = k) : k = e[12];
1673
- let P;
1674
- e[13] !== a ? (P = /* @__PURE__ */ b(X, { justifyContent: "space-between", children: [
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: [
1675
1834
  k,
1676
- /* @__PURE__ */ i(de, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
1677
- ] }), e[13] = a, e[14] = P) : P = e[14];
1835
+ /* @__PURE__ */ i(he, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
1836
+ ] }), e[13] = a, e[14] = _) : _ = e[14];
1678
1837
  let D;
1679
1838
  if (e[15] !== c || e[16] !== n || e[17] !== t) {
1680
- let v;
1681
- e[19] !== c || e[20] !== t ? (v = (E) => {
1682
- const L = t[E.id] ?? [];
1683
- return /* @__PURE__ */ b(de, { variant: c === E.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(E.id), children: [
1684
- /* @__PURE__ */ i($, { children: E.label }),
1685
- L.length > 0 ? /* @__PURE__ */ i(Te, { variant: "subtle", children: L.length }) : null
1686
- ] }, E.id);
1687
- }, e[19] = c, e[20] = t, e[21] = v) : v = e[21], D = n.map(v), e[15] = c, e[16] = n, e[17] = t, e[18] = D;
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;
1688
1847
  } else
1689
1848
  D = e[18];
1690
1849
  let T;
1691
- e[22] !== P || e[23] !== D ? (T = /* @__PURE__ */ b(G, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1692
- P,
1850
+ e[22] !== _ || e[23] !== D ? (T = /* @__PURE__ */ x(H, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1851
+ _,
1693
1852
  D
1694
- ] }), e[22] = P, e[23] = D, e[24] = T) : T = e[24];
1695
- let _;
1696
- e[25] !== g || e[26] !== r || e[27] !== t || e[28] !== s || e[29] !== o ? (_ = g ? /* @__PURE__ */ b(Ze, { children: [
1697
- /* @__PURE__ */ b(X, { justifyContent: "space-between", children: [
1698
- /* @__PURE__ */ i($, { textStyle: "label/S/medium", children: g.label }),
1699
- /* @__PURE__ */ i(de, { size: "2xs", variant: "ghost", onClick: () => s(g.id), children: "Clear" })
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" })
1700
1859
  ] }),
1701
- /* @__PURE__ */ i(G, { gap: "2xs", children: g.options.map((v) => {
1702
- const E = (t[g.id] ?? []).includes(v.value), L = r[g.id]?.[v.value] ?? 0;
1703
- return /* @__PURE__ */ i(V, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
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: {
1704
1863
  bg: "bg.subtle"
1705
- }, children: /* @__PURE__ */ i(vn, { checked: E, onCheckedChange: () => o(g.id, v.value), children: /* @__PURE__ */ b(X, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
1706
- /* @__PURE__ */ i($, { textStyle: "label/S/regular", children: v.label }),
1707
- /* @__PURE__ */ i($, { textStyle: "label/XS/regular", color: "fg.muted", children: L })
1708
- ] }) }) }, v.value);
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);
1709
1868
  }) })
1710
- ] }) : null, e[25] = g, e[26] = r, e[27] = t, e[28] = s, e[29] = o, e[30] = _) : _ = e[30];
1869
+ ] }) : null, e[25] = f, e[26] = o, e[27] = t, e[28] = r, e[29] = s, e[30] = P) : P = e[30];
1711
1870
  let S;
1712
- e[31] !== _ ? (S = /* @__PURE__ */ i(G, { flex: "1", p: "sm", gap: "sm", children: _ }), e[31] = _, e[32] = S) : S = e[32];
1713
- let C;
1714
- e[33] !== T || e[34] !== S ? (C = /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ie.Positioner, { children: /* @__PURE__ */ i(Ie.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ b(X, { align: "stretch", gap: "0", minH: "320px", children: [
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];
1872
+ 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: [
1715
1874
  T,
1716
1875
  S
1717
- ] }) }) }) }), e[33] = T, e[34] = S, e[35] = C) : C = e[35];
1718
- let w;
1719
- return e[36] !== C || e[37] !== I ? (w = /* @__PURE__ */ b(Ie.Root, { positioning: p, children: [
1720
- I,
1721
- C
1722
- ] }), e[36] = C, e[37] = I, e[38] = w) : w = e[38], w;
1723
- }, Dt = (l) => {
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) => {
1724
1883
  const e = A(43), {
1725
1884
  ticketId: n,
1726
1885
  parentPath: t,
1727
- sessionIndicatorLabel: r,
1728
- sessionIndicatorStatus: o,
1729
- title: s,
1886
+ sessionIndicatorLabel: o,
1887
+ sessionIndicatorStatus: s,
1888
+ title: r,
1730
1889
  badges: a,
1731
1890
  diffAdditions: c,
1732
1891
  diffDeletions: d,
1733
1892
  isSelected: u,
1734
- draggable: g,
1735
- onDragStart: f,
1736
- onDragEnd: p,
1737
- onClick: h,
1893
+ draggable: f,
1894
+ onDragStart: g,
1895
+ onDragEnd: h,
1896
+ onClick: p,
1738
1897
  onDiffBadgeClick: m,
1739
- onSessionIndicatorClick: x
1898
+ onSessionIndicatorClick: b
1740
1899
  } = l;
1741
1900
  let y;
1742
1901
  e[0] !== t ? (y = t === void 0 ? [] : t, e[0] = t, e[1] = y) : y = e[1];
1743
- const I = y;
1902
+ const v = y;
1744
1903
  let k;
1745
1904
  e[2] !== a ? (k = a === void 0 ? [] : a, e[2] = a, e[3] = k) : k = e[3];
1746
- const P = k, D = u === void 0 ? !1 : u;
1905
+ const _ = k, D = u === void 0 ? !1 : u;
1747
1906
  let T;
1748
- e[4] !== m ? (T = (F) => {
1749
- F.stopPropagation(), m?.();
1907
+ e[4] !== m ? (T = (V) => {
1908
+ V.stopPropagation(), m?.();
1750
1909
  }, e[4] = m, e[5] = T) : T = e[5];
1751
- const _ = T;
1910
+ const P = T;
1752
1911
  let S;
1753
- e[6] !== x ? (S = (F) => {
1754
- F.stopPropagation(), x?.();
1755
- }, e[6] = x, e[7] = S) : S = e[7];
1756
- const C = S;
1757
- let w;
1758
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
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 = {
1759
1918
  borderColor: "border.blue",
1760
1919
  boxShadow: "mid"
1761
- }, e[8] = w) : w = e[8];
1762
- const v = g ? "grab" : h ? "pointer" : "default", E = D ? "true" : void 0;
1763
- let L;
1764
- e[9] !== I ? (L = I.length > 0 && /* @__PURE__ */ b($, { as: "span", color: "subtle", children: [
1765
- I.join(" / "),
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(" / "),
1766
1925
  " /",
1767
1926
  " "
1768
- ] }), e[9] = I, e[10] = L) : L = e[10];
1769
- let z;
1770
- e[11] !== L || e[12] !== n ? (z = /* @__PURE__ */ b($, { textStyle: "label/S/regular", flexShrink: 0, children: [
1771
- L,
1772
- n
1773
- ] }), e[11] = L, e[12] = n, e[13] = z) : z = e[13];
1927
+ ] }), e[9] = v, e[10] = $) : $ = e[10];
1774
1928
  let O;
1775
- e[14] !== C || e[15] !== x || e[16] !== r || e[17] !== o ? (O = r ? /* @__PURE__ */ i(Ee, { content: `Session ${r}`, children: /* @__PURE__ */ i(Jn, { status: o, boxSize: "12px", "aria-label": `Session ${r}`, cursor: x ? "pointer" : "default", onClick: x ? C : void 0 }) }) : null, e[14] = C, e[15] = x, e[16] = r, e[17] = o, e[18] = O) : O = e[18];
1929
+ e[11] !== $ || e[12] !== n ? (O = /* @__PURE__ */ x(L, { textStyle: "label/S/regular", flexShrink: 0, children: [
1930
+ $,
1931
+ 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];
1776
1940
  let W;
1777
- e[19] !== z || e[20] !== O ? (W = /* @__PURE__ */ b(X, { gap: "2xs", flexShrink: 0, children: [
1778
- z,
1779
- O
1780
- ] }), e[19] = z, e[20] = O, e[21] = W) : W = e[21];
1781
- let H;
1782
- e[22] !== c || e[23] !== d || e[24] !== _ ? (H = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(St, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(pn, { size: "12" }), onClick: _, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = _, e[25] = H) : H = e[25];
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];
1783
1942
  let B;
1784
- e[26] !== W || e[27] !== H ? (B = /* @__PURE__ */ b(X, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1785
- W,
1786
- H
1787
- ] }), e[26] = W, e[27] = H, e[28] = B) : B = e[28];
1788
- let N;
1789
- e[29] !== s ? (N = /* @__PURE__ */ i(X, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", flex: "1", minW: "0", children: s }) }), e[29] = s, e[30] = N) : N = e[30];
1790
- let M;
1791
- e[31] !== P ? (M = P.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", children: P.map(Sl) }), e[31] = P, e[32] = M) : M = e[32];
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];
1792
1949
  let R;
1793
- return e[33] !== g || e[34] !== h || e[35] !== p || e[36] !== f || e[37] !== B || e[38] !== N || e[39] !== M || e[40] !== v || e[41] !== E ? (R = /* @__PURE__ */ b(G, { 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: w, cursor: v, draggable: g, onDragStart: f, onDragEnd: p, onClick: h, "data-selected": E, children: [
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: [
1794
1953
  B,
1795
- N,
1796
- M
1797
- ] }), e[33] = g, e[34] = h, e[35] = p, e[36] = f, e[37] = B, e[38] = N, e[39] = M, e[40] = v, e[41] = E, e[42] = R) : R = e[42], R;
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;
1798
1957
  };
1799
- function Sl(l) {
1800
- return /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
1958
+ function El(l) {
1959
+ return /* @__PURE__ */ i(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
1801
1960
  }
1802
- const yl = (l) => {
1961
+ const zl = (l) => {
1803
1962
  const e = A(27), {
1804
1963
  columns: n,
1805
1964
  selectedItemId: t,
1806
- onMoveItem: r,
1807
- onMoveToGroup: o,
1808
- onCreateStart: s,
1965
+ onMoveItem: o,
1966
+ onMoveToGroup: s,
1967
+ onCreateStart: r,
1809
1968
  onColumnAction: a
1810
- } = l, c = t === void 0 ? null : t, [d, u] = me(null), [g, f] = me(null), p = wl;
1811
- let h;
1812
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
1813
- u(null), f(null);
1814
- }, e[0] = h) : h = e[0];
1815
- const m = h;
1816
- let x;
1817
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (C) => (w) => {
1818
- w.preventDefault(), w.dataTransfer.dropEffect = "move", u(C);
1819
- }, e[1] = x) : x = e[1];
1820
- const y = x;
1821
- let I;
1822
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (C) => {
1823
- C.currentTarget.contains(C.relatedTarget) || u(null);
1824
- }, e[2] = I) : I = e[2];
1825
- const k = I;
1826
- let P;
1827
- e[3] !== r ? (P = (C) => (w) => {
1828
- w.preventDefault(), u(null);
1829
- const v = w.dataTransfer.getData("text/plain");
1830
- v && r?.(v, C);
1831
- }, e[3] = r, e[4] = P) : P = e[4];
1832
- const D = P;
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 = _;
1833
1992
  let T;
1834
1993
  e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
1835
1994
  display: "flex",
@@ -1838,244 +1997,222 @@ const yl = (l) => {
1838
1997
  pb: "2xs",
1839
1998
  minH: "100%"
1840
1999
  }, e[5] = T) : T = e[5];
1841
- let _;
1842
- if (e[6] !== d || e[7] !== g || e[8] !== n || e[9] !== D || e[10] !== a || e[11] !== s || e[12] !== r || e[13] !== o || e[14] !== c) {
1843
- let C;
1844
- e[16] !== d || e[17] !== g || e[18] !== D || e[19] !== a || e[20] !== s || e[21] !== r || e[22] !== o || e[23] !== c ? (C = (w) => /* @__PURE__ */ b(G, { "data-testid": `board-column-${w.id}`, gap: "xs", _notFirst: {
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: {
1845
2004
  borderLeft: "1px solid",
1846
2005
  borderColor: "border.muted"
1847
- }, 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 ? y(w.id) : void 0, onDragLeave: w.canDragIn ? k : void 0, onDrop: w.canDragIn ? D(w.id) : void 0, children: [
1848
- /* @__PURE__ */ i(vl, { column: w, onCreateStart: s, onColumnAction: a }),
1849
- /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", verticalScrollbarProps: {
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: {
1850
2009
  margin: "0"
1851
2010
  }, contentProps: {
1852
2011
  spaceY: "sm",
1853
2012
  ps: "xs",
1854
2013
  pe: "xs"
1855
- }, children: w.groups && w.groups.length > 0 ? w.groups.map((v) => {
1856
- const E = `${w.id}::${v.key}`;
1857
- return /* @__PURE__ */ i(Cl, { group: v, selectedItemId: c, canDragIn: w.canDragIn, canDragOut: w.canDragOut, isDropTarget: g === E, onDragStart: p, onDragEnd: m, onGroupDragOver: (L) => {
1858
- L.preventDefault(), L.stopPropagation(), L.dataTransfer.dropEffect = "move", f(E), u(null);
1859
- }, onGroupDragLeave: (L) => {
1860
- L.currentTarget.contains(L.relatedTarget) || f(null);
1861
- }, onGroupDrop: (L) => {
1862
- L.preventDefault(), L.stopPropagation(), f(null), u(null);
1863
- const z = L.dataTransfer.getData("text/plain");
1864
- z && (r?.(z, w.id), o?.(z, v.key));
1865
- } }, v.key);
1866
- }) : w.items.map((v) => /* @__PURE__ */ i(Dt, { ...v.cardProps, isSelected: v.id === c, draggable: w.canDragOut, onDragStart: w.canDragOut ? p(v.id) : void 0, onDragEnd: w.canDragOut ? m : void 0 }, v.id)) })
1867
- ] }, w.id), e[16] = d, e[17] = g, e[18] = D, e[19] = a, e[20] = s, e[21] = r, e[22] = o, e[23] = c, e[24] = C) : C = e[24], _ = n.map(C), e[6] = d, e[7] = g, e[8] = n, e[9] = D, e[10] = a, e[11] = s, e[12] = r, e[13] = o, e[14] = c, e[15] = _;
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);
2018
+ }, onGroupDragLeave: ($) => {
2019
+ $.currentTarget.contains($.relatedTarget) || g(null);
2020
+ }, 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;
1868
2027
  } else
1869
- _ = e[15];
2028
+ P = e[15];
1870
2029
  let S;
1871
- return e[25] !== _ ? (S = /* @__PURE__ */ i(Ce, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: _ }), e[25] = _, e[26] = S) : S = e[26], S;
1872
- }, Cl = (l) => {
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) => {
1873
2032
  const e = A(26), {
1874
2033
  group: n,
1875
2034
  selectedItemId: t,
1876
- canDragIn: r,
1877
- canDragOut: o,
1878
- isDropTarget: s,
2035
+ canDragIn: o,
2036
+ canDragOut: s,
2037
+ isDropTarget: r,
1879
2038
  onDragStart: a,
1880
2039
  onDragEnd: c,
1881
2040
  onGroupDragOver: d,
1882
2041
  onGroupDragLeave: u,
1883
- onGroupDrop: g
1884
- } = l, [f, p] = me(!0), h = s ? "bg.subtle" : "transparent", m = r ? d : void 0, x = r ? u : void 0, y = r ? g : void 0;
1885
- let I;
1886
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
2042
+ 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 = {
1887
2046
  bg: "bg.muted"
1888
- }, e[0] = I) : I = e[0];
2047
+ }, e[0] = v) : v = e[0];
1889
2048
  let k;
1890
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => p(Il), e[1] = k) : k = e[1];
1891
- const P = f ? "rotate(90deg)" : "rotate(0deg)";
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)";
1892
2051
  let D;
1893
- e[2] !== P ? (D = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ i(oe, { as: ye, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = D) : D = e[3];
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];
1894
2053
  let T;
1895
- e[4] !== n.label ? (T = /* @__PURE__ */ i($, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = T) : T = e[5];
1896
- let _;
1897
- e[6] !== n.items.length ? (_ = /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = _) : _ = e[7];
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];
1898
2057
  let S;
1899
- e[8] !== D || e[9] !== T || e[10] !== _ ? (S = /* @__PURE__ */ b(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: I, borderRadius: "sm", onClick: k, children: [
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: [
1900
2059
  D,
1901
2060
  T,
1902
- _
1903
- ] }), e[8] = D, e[9] = T, e[10] = _, e[11] = S) : S = e[11];
1904
- let C;
1905
- e[12] !== o || e[13] !== f || e[14] !== n.items || e[15] !== c || e[16] !== a || e[17] !== t ? (C = f && /* @__PURE__ */ i(G, { gap: "sm", pt: "xs", children: n.items.map((v) => /* @__PURE__ */ i(Dt, { ...v.cardProps, isSelected: v.id === t, draggable: o, onDragStart: o ? a(v.id) : void 0, onDragEnd: o ? c : void 0 }, v.id)) }), e[12] = o, e[13] = f, e[14] = n.items, e[15] = c, e[16] = a, e[17] = t, e[18] = C) : C = e[18];
2061
+ P
2062
+ ] }), e[8] = D, e[9] = T, e[10] = P, e[11] = S) : S = e[11];
1906
2063
  let w;
1907
- return e[19] !== h || e[20] !== m || e[21] !== S || e[22] !== C || e[23] !== x || e[24] !== y ? (w = /* @__PURE__ */ b(G, { gap: "0", borderRadius: "sm", background: h, transition: "background 150ms ease", onDragOver: m, onDragLeave: x, onDrop: y, children: [
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: [
1908
2067
  S,
1909
- C
1910
- ] }), e[19] = h, e[20] = m, e[21] = S, e[22] = C, e[23] = x, e[24] = y, e[25] = w) : w = e[25], w;
1911
- }, vl = (l) => {
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) => {
1912
2071
  const e = A(20), {
1913
2072
  column: n,
1914
2073
  onCreateStart: t,
1915
- onColumnAction: r
2074
+ onColumnAction: o
1916
2075
  } = l;
1917
- let o;
1918
- e[0] !== n.label ? (o = /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = o) : o = e[1];
1919
- const s = n.color ?? "gray";
2076
+ 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];
2078
+ const r = n.color ?? "gray";
1920
2079
  let a;
1921
- e[2] !== n.items.length || e[3] !== s ? (a = /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: s, children: n.items.length }), e[2] = n.items.length, e[3] = s, e[4] = a) : a = e[4];
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];
1922
2081
  let c;
1923
2082
  e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(Ht, {}), e[5] = c) : c = e[5];
1924
2083
  let d;
1925
- e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ i(Ee, { content: "Create new ticket", children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(oe, { as: hn, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
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];
1926
2085
  let u;
1927
- e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== r ? (u = n.actions.length > 0 && /* @__PURE__ */ b(le.Root, { children: [
1928
- /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ i(oe, { as: mn, boxSize: "12px" }) }) }),
1929
- /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "180px", bg: "bg", children: n.actions.map((f) => /* @__PURE__ */ i(We, { primaryLabel: f.label, leftIcon: f.icon, onClick: () => r?.(n.id, f.id) }, f.id)) }) })
1930
- ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = r, e[14] = u) : u = e[14];
1931
- let g;
1932
- return e[15] !== o || e[16] !== a || e[17] !== d || e[18] !== u ? (g = /* @__PURE__ */ b(X, { padding: "xs", gap: "xs", alignItems: "center", children: [
1933
- o,
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];
2090
+ 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: [
2092
+ s,
1934
2093
  a,
1935
2094
  c,
1936
2095
  d,
1937
2096
  u
1938
- ] }), e[15] = o, e[16] = a, e[17] = d, e[18] = u, e[19] = g) : g = e[19], g;
2097
+ ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = u, e[19] = f) : f = e[19], f;
1939
2098
  };
1940
- function wl(l) {
2099
+ function Ml(l) {
1941
2100
  return (e) => {
1942
2101
  e.dataTransfer.setData("text/plain", l), e.dataTransfer.effectAllowed = "move";
1943
2102
  };
1944
2103
  }
1945
- function Il(l) {
2104
+ function Gl(l) {
1946
2105
  return !l;
1947
2106
  }
1948
- const kl = [{
2107
+ const Nl = [{
1949
2108
  id: "ticket",
1950
2109
  header: "",
1951
2110
  cell: ({
1952
2111
  row: l
1953
- }) => /* @__PURE__ */ i(Tl, { row: l })
1954
- }], Pl = (l) => {
2112
+ }) => /* @__PURE__ */ i(Wl, { row: l })
2113
+ }], Hl = (l) => {
1955
2114
  const {
1956
2115
  items: e,
1957
2116
  selectedItemId: n = null,
1958
2117
  onItemClick: t
1959
- } = l, [r, o] = me(!0), s = bn({
2118
+ } = l, [o, s] = pe(!0), r = Cn({
1960
2119
  data: e,
1961
- columns: kl,
2120
+ columns: Nl,
1962
2121
  state: {
1963
- expanded: r
2122
+ expanded: o
1964
2123
  },
1965
- onExpandedChange: o,
2124
+ onExpandedChange: s,
1966
2125
  getSubRows: (a) => a.children,
1967
- getCoreRowModel: Sn(),
1968
- getExpandedRowModel: xn(),
2126
+ getCoreRowModel: In(),
2127
+ getExpandedRowModel: wn(),
1969
2128
  getRowId: (a) => a.id
1970
2129
  });
1971
- return /* @__PURE__ */ i(V, { children: s.getRowModel().rows.map((a) => {
2130
+ return /* @__PURE__ */ i(j, { children: r.getRowModel().rows.map((a) => {
1972
2131
  const c = a.original, d = c.id === n, u = a.getCanExpand();
1973
2132
  return /* @__PURE__ */ i(X, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: d ? "bg.muted" : "transparent", _hover: {
1974
2133
  background: "bg.muted"
1975
2134
  }, onClick: () => {
1976
2135
  u ? a.toggleExpanded() : (c.onClick?.(), t?.(c));
1977
- }, "data-selected": d ? "true" : void 0, children: yn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
2136
+ }, "data-selected": d ? "true" : void 0, children: kn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
1978
2137
  }) });
1979
- }, Tl = (l) => {
2138
+ }, Wl = (l) => {
1980
2139
  const e = A(25), {
1981
2140
  row: n
1982
- } = l, t = n.original, r = n.depth, o = r > 0 ? `${r * 24}px` : void 0;
1983
- let s;
1984
- e[0] !== r || e[1] !== n ? (s = n.getCanExpand() ? /* @__PURE__ */ i(Dl, { row: n }) : r > 0 ? /* @__PURE__ */ i(_l, {}) : null, e[0] = r, e[1] = n, e[2] = s) : s = e[2];
2141
+ } = l, t = n.original, o = n.depth, s = o > 0 ? `${o * 24}px` : void 0;
2142
+ 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];
1985
2144
  let a;
1986
- e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(oe, { 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];
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];
1987
2146
  let c;
1988
- e[6] !== t.ticketId ? (c = /* @__PURE__ */ i($, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
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];
1989
2148
  let d;
1990
- e[8] !== t.title ? (d = /* @__PURE__ */ i($, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
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];
1991
2150
  let u;
1992
- e[10] !== t.badges ? (u = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", flexShrink: 0, children: t.badges.map($l) }), e[10] = t.badges, e[11] = u) : u = e[11];
1993
- let g;
1994
- e[12] !== t.assigneeIcon ? (g = t.assigneeIcon && /* @__PURE__ */ i(V, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = g) : g = e[13];
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];
1995
2152
  let f;
1996
- e[14] !== t.date ? (f = t.date && /* @__PURE__ */ i($, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = f) : f = e[15];
1997
- let p;
1998
- return e[16] !== o || e[17] !== s || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== u || e[22] !== g || e[23] !== f ? (p = /* @__PURE__ */ b(X, { gap: "sm", flex: "1", paddingLeft: o, children: [
1999
- s,
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];
2156
+ 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: [
2158
+ r,
2000
2159
  a,
2001
2160
  c,
2002
2161
  d,
2003
2162
  u,
2004
- g,
2005
- f
2006
- ] }), e[16] = o, e[17] = s, e[18] = a, e[19] = c, e[20] = d, e[21] = u, e[22] = g, e[23] = f, e[24] = p) : p = e[24], p;
2007
- }, Dl = (l) => {
2163
+ 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) => {
2008
2167
  const e = A(6), {
2009
2168
  row: n
2010
- } = l, t = n.getIsExpanded(), r = t ? "true" : void 0, o = t ? "Collapse group" : "Expand group", s = t ? "rotate(90deg)" : "rotate(0deg)";
2169
+ } = l, t = n.getIsExpanded(), o = t ? "true" : void 0, s = t ? "Collapse group" : "Expand group", r = t ? "rotate(90deg)" : "rotate(0deg)";
2011
2170
  let a;
2012
- e[0] !== s ? (a = /* @__PURE__ */ i(ye, { size: 14, style: {
2171
+ e[0] !== r ? (a = /* @__PURE__ */ i(Ce, { size: 14, style: {
2013
2172
  color: "var(--chakra-colors-fg-muted)",
2014
- transform: s,
2173
+ transform: r,
2015
2174
  transition: "transform 0.15s ease"
2016
- } }), e[0] = s, e[1] = a) : a = e[1];
2175
+ } }), e[0] = r, e[1] = a) : a = e[1];
2017
2176
  let c;
2018
- return e[2] !== r || e[3] !== o || e[4] !== a ? (c = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", "data-expanded": r, "aria-label": o, children: a }), e[2] = r, e[3] = o, e[4] = a, e[5] = c) : c = e[5], c;
2019
- }, _l = () => {
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 = () => {
2020
2179
  const l = A(1);
2021
2180
  let e;
2022
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(V, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2023
- /* @__PURE__ */ i(V, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
2024
- /* @__PURE__ */ i(V, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
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" })
2025
2184
  ] }), l[0] = e) : e = l[0], e;
2026
2185
  };
2027
- function $l(l) {
2028
- return /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2186
+ function Vl(l) {
2187
+ return /* @__PURE__ */ i(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2029
2188
  }
2030
- const ke = {
2189
+ const Ge = {
2031
2190
  status: "No status",
2032
- complexity: "Unspecified",
2033
- assignee: "Unassigned",
2034
- priority: "Unspecified"
2035
- }, dt = {
2036
- high: 3,
2037
- medium: 2,
2038
- low: 1
2039
- }, ut = {
2040
- p0: 5,
2041
- p1: 4,
2042
- p2: 3,
2043
- p3: 2,
2044
- p4: 1
2045
- }, Pe = (l, e) => !l || l.trim() === "" ? e : l, gt = (l, e) => e === "none" ? "All" : e === "status" ? Pe(l.status, ke.status) : e === "complexity" ? Pe(l.complexity, ke.complexity) : e === "assignee" ? Pe(l.assignee, ke.assignee) : Pe(l.priority, ke.priority), ft = (l, e) => l.localeCompare(e, void 0, {
2191
+ 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, {
2046
2193
  numeric: !0
2047
- }), Ae = (l, e) => e === "asc" ? l : l * -1, Ge = (l, e) => e.field === "manual" ? l : [...l].sort((n, t) => {
2194
+ }), Ve = (l, e) => e === "asc" ? l : l * -1, Oe = (l, e) => e.field === "manual" ? l : [...l].sort((n, t) => {
2048
2195
  if (e.field === "updated") {
2049
- const r = new Date(n.updatedAt ?? 0).getTime(), o = new Date(t.updatedAt ?? 0).getTime();
2050
- return Ae(r - o, e.direction);
2051
- }
2052
- if (e.field === "title")
2053
- return Ae(n.title.localeCompare(t.title), e.direction);
2054
- if (e.field === "complexity") {
2055
- const r = dt[(n.complexity ?? "").toLowerCase()] ?? 0, o = dt[(t.complexity ?? "").toLowerCase()] ?? 0;
2056
- return Ae(r - o, e.direction);
2057
- }
2058
- if (e.field === "priority") {
2059
- const r = ut[(n.priority ?? "").toLowerCase()] ?? 0, o = ut[(t.priority ?? "").toLowerCase()] ?? 0;
2060
- return Ae(r - o, e.direction);
2196
+ const o = new Date(n.updatedAt ?? 0).getTime(), s = new Date(t.updatedAt ?? 0).getTime();
2197
+ return Ve(o - s, e.direction);
2061
2198
  }
2062
- return Ae(n.ticketId.localeCompare(t.ticketId, void 0, {
2199
+ return e.field === "title" ? Ve(n.title.localeCompare(t.title), e.direction) : Ve(n.ticketId.localeCompare(t.ticketId, void 0, {
2063
2200
  numeric: !0
2064
2201
  }), e.direction);
2065
- }), Ll = (l, e) => {
2202
+ }), jl = (l, e) => {
2066
2203
  const {
2067
2204
  columnGrouping: n,
2068
2205
  rowGrouping: t,
2069
- knownColumnKeys: r
2070
- } = e, o = /* @__PURE__ */ new Map();
2071
- if (r)
2072
- for (const a of r)
2073
- o.set(a, []);
2206
+ knownColumnKeys: o
2207
+ } = e, s = /* @__PURE__ */ new Map();
2208
+ if (o)
2209
+ for (const a of o)
2210
+ s.set(a, []);
2074
2211
  for (const a of l) {
2075
- const c = gt(a, n);
2076
- o.set(c, [...o.get(c) ?? [], a]);
2212
+ const c = ut(a, n);
2213
+ s.set(c, [...s.get(c) ?? [], a]);
2077
2214
  }
2078
- return [...o.entries()].sort(([a], [c]) => ft(a, c)).map(([a, c]) => {
2215
+ return [...s.entries()].sort(([a], [c]) => ft(a, c)).map(([a, c]) => {
2079
2216
  if (t === "none")
2080
2217
  return {
2081
2218
  key: a,
@@ -2084,14 +2221,14 @@ const ke = {
2084
2221
  rows: []
2085
2222
  };
2086
2223
  const d = /* @__PURE__ */ new Map();
2087
- for (const g of c) {
2088
- const f = gt(g, t);
2089
- d.set(f, [...d.get(f) ?? [], g]);
2224
+ for (const f of c) {
2225
+ const g = ut(f, t);
2226
+ d.set(g, [...d.get(g) ?? [], f]);
2090
2227
  }
2091
- const u = [...d.entries()].sort(([g], [f]) => ft(g, f)).map(([g, f]) => ({
2092
- key: g,
2093
- label: g,
2094
- tickets: f
2228
+ const u = [...d.entries()].sort(([f], [g]) => ft(f, g)).map(([f, g]) => ({
2229
+ key: f,
2230
+ label: f,
2231
+ tickets: g
2095
2232
  }));
2096
2233
  return {
2097
2234
  key: a,
@@ -2100,16 +2237,16 @@ const ke = {
2100
2237
  rows: u
2101
2238
  };
2102
2239
  });
2103
- }, _t = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Pe(l.status, ke.status)] : e === "assignee" ? [Pe(l.assignee, ke.assignee)] : e === "priority" ? [Pe(l.priority, ke.priority)] : [Pe(l.complexity, ke.complexity)], Rl = (l, e) => {
2240
+ }, Dt = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Ne(l.status, Ge.status)] : [Ne(l.assignee, Ge.assignee)], Xl = (l, e) => {
2104
2241
  const n = Object.entries(e).filter(([, t]) => t && t.length > 0);
2105
- return n.length === 0 ? l : l.filter((t) => n.every(([r, o]) => _t(t, r).some((a) => o?.includes(a))));
2106
- }, El = (l, e) => {
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) => {
2107
2244
  const n = {};
2108
2245
  for (const t of l)
2109
- for (const r of _t(t, e))
2110
- n[r] = (n[r] ?? 0) + 1;
2246
+ for (const o of Dt(t, e))
2247
+ n[o] = (n[o] ?? 0) + 1;
2111
2248
  return n;
2112
- }, zl = {
2249
+ }, Yl = {
2113
2250
  viewMode: "board",
2114
2251
  columnGrouping: "status",
2115
2252
  rowGrouping: "none",
@@ -2117,23 +2254,17 @@ const ke = {
2117
2254
  field: "manual",
2118
2255
  direction: "asc"
2119
2256
  },
2120
- displayProperties: ["complexity", "priority", "labels"]
2121
- }, Al = [{
2257
+ displayProperties: ["labels"]
2258
+ }, Kl = [{
2122
2259
  value: "status",
2123
2260
  label: "Status"
2124
- }, {
2125
- value: "complexity",
2126
- label: "Complexity"
2127
2261
  }, {
2128
2262
  value: "assignee",
2129
2263
  label: "Assignee"
2130
- }, {
2131
- value: "priority",
2132
- label: "Priority"
2133
2264
  }, {
2134
2265
  value: "none",
2135
2266
  label: "No grouping"
2136
- }], Ol = [{
2267
+ }], ql = [{
2137
2268
  value: "manual",
2138
2269
  label: "Manual"
2139
2270
  }, {
@@ -2142,16 +2273,10 @@ const ke = {
2142
2273
  }, {
2143
2274
  value: "title",
2144
2275
  label: "Title"
2145
- }, {
2146
- value: "complexity",
2147
- label: "Complexity"
2148
- }, {
2149
- value: "priority",
2150
- label: "Priority"
2151
2276
  }, {
2152
2277
  value: "ticketId",
2153
2278
  label: "ID"
2154
- }], Gl = [{
2279
+ }], Jl = [{
2155
2280
  value: "id",
2156
2281
  label: "ID"
2157
2282
  }, {
@@ -2160,474 +2285,445 @@ const ke = {
2160
2285
  }, {
2161
2286
  value: "assignee",
2162
2287
  label: "Assignee"
2163
- }, {
2164
- value: "priority",
2165
- label: "Priority"
2166
- }, {
2167
- value: "complexity",
2168
- label: "Complexity"
2169
2288
  }, {
2170
2289
  value: "labels",
2171
2290
  label: "Labels"
2172
2291
  }, {
2173
2292
  value: "updated",
2174
2293
  label: "Updated"
2175
- }], Ml = "pstdio/ui/tickets-workspace", Nl = (l) => `${Ml}/${l}`, Xe = {
2176
- settings: zl,
2294
+ }], Ql = "pstdio/ui/tickets-workspace", Zl = (l) => `${Ql}/${l}`, je = {
2295
+ settings: Yl,
2177
2296
  filters: {}
2178
- }, Hl = () => ({
2297
+ }, ei = () => ({
2179
2298
  getItem: () => null,
2180
2299
  setItem: () => {
2181
2300
  },
2182
2301
  removeItem: () => {
2183
2302
  }
2184
- }), Wl = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], Fl = (l) => {
2303
+ }), ti = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], ni = (l) => {
2185
2304
  const {
2186
2305
  storageKey: e,
2187
2306
  initialState: n
2188
2307
  } = l, t = {
2189
2308
  settings: {
2190
- ...Xe.settings,
2309
+ ...je.settings,
2191
2310
  ...n?.settings ?? {}
2192
2311
  },
2193
- filters: n?.filters ?? Xe.filters
2312
+ filters: n?.filters ?? je.filters
2194
2313
  };
2195
- return wt()(Ct((r) => ({
2314
+ return vt()(St((o) => ({
2196
2315
  ...t,
2197
- setViewMode: (o) => r((s) => ({
2198
- ...s,
2316
+ setViewMode: (s) => o((r) => ({
2317
+ ...r,
2199
2318
  settings: {
2200
- ...s.settings,
2201
- viewMode: o
2319
+ ...r.settings,
2320
+ viewMode: s
2202
2321
  }
2203
2322
  })),
2204
- setColumnGrouping: (o) => r((s) => ({
2205
- ...s,
2323
+ setColumnGrouping: (s) => o((r) => ({
2324
+ ...r,
2206
2325
  settings: {
2207
- ...s.settings,
2208
- columnGrouping: o
2326
+ ...r.settings,
2327
+ columnGrouping: s
2209
2328
  }
2210
2329
  })),
2211
- setRowGrouping: (o) => r((s) => ({
2212
- ...s,
2330
+ setRowGrouping: (s) => o((r) => ({
2331
+ ...r,
2213
2332
  settings: {
2214
- ...s.settings,
2215
- rowGrouping: o
2333
+ ...r.settings,
2334
+ rowGrouping: s
2216
2335
  }
2217
2336
  })),
2218
- setOrdering: (o) => r((s) => ({
2219
- ...s,
2337
+ setOrdering: (s) => o((r) => ({
2338
+ ...r,
2220
2339
  settings: {
2221
- ...s.settings,
2222
- ordering: o
2340
+ ...r.settings,
2341
+ ordering: s
2223
2342
  }
2224
2343
  })),
2225
- setOrderingField: (o) => r((s) => ({
2226
- ...s,
2344
+ setOrderingField: (s) => o((r) => ({
2345
+ ...r,
2227
2346
  settings: {
2228
- ...s.settings,
2347
+ ...r.settings,
2229
2348
  ordering: {
2230
- ...s.settings.ordering,
2231
- field: o
2349
+ ...r.settings.ordering,
2350
+ field: s
2232
2351
  }
2233
2352
  }
2234
2353
  })),
2235
- toggleSortDirection: () => r((o) => ({
2236
- ...o,
2354
+ toggleSortDirection: () => o((s) => ({
2355
+ ...s,
2237
2356
  settings: {
2238
- ...o.settings,
2357
+ ...s.settings,
2239
2358
  ordering: {
2240
- ...o.settings.ordering,
2241
- direction: o.settings.ordering.direction === "asc" ? "desc" : "asc"
2359
+ ...s.settings.ordering,
2360
+ direction: s.settings.ordering.direction === "asc" ? "desc" : "asc"
2242
2361
  }
2243
2362
  }
2244
2363
  })),
2245
- toggleDisplayProperty: (o) => r((s) => {
2246
- const a = s.settings.displayProperties.includes(o) ? s.settings.displayProperties.filter((c) => c !== o) : [...s.settings.displayProperties, o];
2364
+ toggleDisplayProperty: (s) => o((r) => {
2365
+ const a = r.settings.displayProperties.includes(s) ? r.settings.displayProperties.filter((c) => c !== s) : [...r.settings.displayProperties, s];
2247
2366
  return {
2248
- ...s,
2367
+ ...r,
2249
2368
  settings: {
2250
- ...s.settings,
2369
+ ...r.settings,
2251
2370
  displayProperties: a
2252
2371
  }
2253
2372
  };
2254
2373
  }),
2255
- setFilter: (o, s) => r((a) => ({
2374
+ setFilter: (s, r) => o((a) => ({
2256
2375
  ...a,
2257
2376
  filters: {
2258
2377
  ...a.filters,
2259
- [o]: s
2378
+ [s]: r
2260
2379
  }
2261
2380
  })),
2262
- toggleFilterValue: (o, s) => r((a) => {
2263
- const c = a.filters[o] ?? [], d = Wl(c, s), u = {
2381
+ toggleFilterValue: (s, r) => o((a) => {
2382
+ const c = a.filters[s] ?? [], d = ti(c, r), u = {
2264
2383
  ...a.filters,
2265
- [o]: d
2384
+ [s]: d
2266
2385
  };
2267
- return d.length === 0 && delete u[o], {
2386
+ return d.length === 0 && delete u[s], {
2268
2387
  ...a,
2269
2388
  filters: u
2270
2389
  };
2271
2390
  }),
2272
- clearFilter: (o) => r((s) => {
2391
+ clearFilter: (s) => o((r) => {
2273
2392
  const a = {
2274
- ...s.filters
2393
+ ...r.filters
2275
2394
  };
2276
- return delete a[o], {
2277
- ...s,
2395
+ return delete a[s], {
2396
+ ...r,
2278
2397
  filters: a
2279
2398
  };
2280
2399
  }),
2281
- clearAllFilters: () => r((o) => ({
2282
- ...o,
2400
+ clearAllFilters: () => o((s) => ({
2401
+ ...s,
2283
2402
  filters: {}
2284
2403
  })),
2285
- reset: () => r(Xe)
2404
+ reset: () => o(je)
2286
2405
  }), {
2287
- name: Nl(e),
2288
- storage: vt(() => typeof globalThis.localStorage > "u" ? Hl() : globalThis.localStorage),
2289
- partialize: (r) => ({
2290
- settings: r.settings,
2291
- filters: r.filters
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
2292
2411
  })
2293
2412
  }));
2294
- }, pt = /* @__PURE__ */ new Map(), Bl = (l) => {
2295
- const e = pt.get(l);
2413
+ }, gt = /* @__PURE__ */ new Map(), li = (l) => {
2414
+ const e = gt.get(l);
2296
2415
  if (e)
2297
2416
  return e;
2298
- const n = Fl({
2417
+ const n = ni({
2299
2418
  storageKey: l
2300
2419
  });
2301
- return pt.set(l, n), n;
2302
- }, pe = (l, e) => {
2420
+ return gt.set(l, n), n;
2421
+ }, be = (l, e) => {
2303
2422
  const n = A(2);
2304
2423
  let t;
2305
- return n[0] !== l ? (t = Bl(l), n[0] = l, n[1] = t) : t = n[1], yt(t, e);
2306
- }, Vl = {
2307
- p0: "red",
2308
- p1: "red",
2309
- p2: "orange",
2310
- p3: "yellow",
2311
- p4: "gray"
2312
- }, jl = {
2313
- high: "red",
2314
- medium: "yellow",
2315
- low: "green"
2316
- }, Ne = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), Xl = {
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 = {
2317
2426
  status: (l) => l.status ? [l.status] : [],
2318
2427
  assignee: (l) => l.assignee ? [l.assignee] : [],
2319
- priority: (l) => l.priority ? [l.priority] : [],
2320
- complexity: (l) => l.complexity ? [l.complexity] : [],
2321
2428
  labels: (l) => l.labels ?? []
2322
- }, Oe = (l, e) => {
2429
+ }, Xe = (l, e) => {
2323
2430
  const n = /* @__PURE__ */ new Set();
2324
2431
  for (const t of l) {
2325
- const r = Xl[e](t);
2326
- for (const o of r)
2327
- n.add(o);
2432
+ const o = ii[e](t);
2433
+ for (const s of o)
2434
+ n.add(s);
2328
2435
  }
2329
- return [...n].sort((t, r) => t.localeCompare(r, void 0, {
2436
+ return [...n].sort((t, o) => t.localeCompare(o, void 0, {
2330
2437
  numeric: !0
2331
2438
  })).map((t) => ({
2332
2439
  value: t,
2333
- label: Ne(t)
2440
+ label: Me(t)
2334
2441
  }));
2335
- }, Ul = (l) => [{
2442
+ }, oi = (l) => [{
2336
2443
  id: "status",
2337
2444
  label: "Status",
2338
- options: Oe(l, "status")
2445
+ options: Xe(l, "status")
2339
2446
  }, {
2340
2447
  id: "assignee",
2341
2448
  label: "Assignee",
2342
- options: Oe(l, "assignee")
2343
- }, {
2344
- id: "priority",
2345
- label: "Priority",
2346
- options: Oe(l, "priority")
2347
- }, {
2348
- id: "complexity",
2349
- label: "Complexity",
2350
- options: Oe(l, "complexity")
2449
+ options: Xe(l, "assignee")
2351
2450
  }, {
2352
2451
  id: "labels",
2353
2452
  label: "Labels",
2354
- options: Oe(l, "labels")
2453
+ options: Xe(l, "labels")
2355
2454
  }], ht = (l, e) => {
2356
- const n = [], t = (r) => e.includes(r);
2455
+ const n = [], t = (o) => e.includes(o);
2357
2456
  if (t("status") && l.status && n.push({
2358
2457
  label: l.status,
2359
2458
  color: l.statusColor ?? "gray"
2360
2459
  }), t("assignee") && l.assignee && n.push({
2361
2460
  label: l.assignee,
2362
2461
  color: "blue"
2363
- }), t("priority") && l.priority && n.push({
2364
- label: l.priority,
2365
- color: Vl[l.priority.toLowerCase()] ?? "gray"
2366
- }), t("complexity") && l.complexity && n.push({
2367
- label: l.complexity,
2368
- color: jl[l.complexity.toLowerCase()] ?? "gray"
2369
2462
  }), t("updated") && l.updatedAt && n.push({
2370
2463
  label: new Date(l.updatedAt).toLocaleDateString(),
2371
2464
  color: "gray"
2372
2465
  }), t("labels"))
2373
- for (const r of l.labels ?? [])
2466
+ for (const o of l.labels ?? [])
2374
2467
  n.push({
2375
- label: r,
2468
+ label: o,
2376
2469
  color: "purple"
2377
2470
  });
2378
2471
  return n;
2379
- }, Xi = (l) => {
2472
+ }, so = (l) => {
2380
2473
  const e = A(64), {
2381
2474
  tickets: n,
2382
2475
  storageKey: t,
2383
- selectedTicketId: r,
2384
- groupingOptions: o,
2385
- orderingOptions: s,
2476
+ selectedTicketId: o,
2477
+ groupingOptions: s,
2478
+ orderingOptions: r,
2386
2479
  displayPropertyOptions: a,
2387
2480
  filterCategories: c,
2388
2481
  knownColumnKeys: d,
2389
2482
  emptyTitle: u,
2390
- emptyDescription: g,
2391
- onTicketClick: f,
2392
- onMoveTicket: p,
2393
- onMoveToGroup: h,
2483
+ emptyDescription: f,
2484
+ onTicketClick: g,
2485
+ onMoveTicket: h,
2486
+ onMoveToGroup: p,
2394
2487
  onCreateTicket: m,
2395
- onColumnAction: x,
2488
+ onColumnAction: b,
2396
2489
  getBoardColumnConfig: y
2397
- } = l, I = r === void 0 ? null : r, k = o === void 0 ? Al : o, P = s === void 0 ? Ol : s, D = a === void 0 ? Gl : a, T = u === void 0 ? "No tickets found" : u, _ = g === void 0 ? "Try changing filters or display settings." : g, S = pe(t, Yl), C = pe(t, Kl), w = pe(t, ql), v = pe(t, Jl), E = pe(t, Ql), L = pe(t, Zl), z = pe(t, ei), O = pe(t, ti), W = pe(t, ni), H = pe(t, li), B = pe(t, ii);
2398
- let N, M, R, F;
2399
- if (e[0] !== c || e[1] !== C || e[2] !== y || e[3] !== d || e[4] !== f || e[5] !== S.columnGrouping || e[6] !== S.displayProperties || e[7] !== S.ordering || e[8] !== S.rowGrouping || e[9] !== n) {
2400
- const ee = Rl(n, C);
2401
- N = c ?? Ul(n);
2402
- let Z;
2403
- e[14] !== n ? (Z = (j) => [j.id, El(n, j.id)], e[14] = n, e[15] = Z) : Z = e[15], M = Object.fromEntries(N.map(Z));
2404
- const U = d ?? (S.columnGrouping !== "none" ? N.find((j) => j.id === S.columnGrouping)?.options.map(ri) : void 0), ie = Ll(ee, {
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);
2495
+ 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, {
2405
2498
  columnGrouping: S.columnGrouping,
2406
2499
  rowGrouping: S.rowGrouping,
2407
2500
  knownColumnKeys: U
2408
2501
  });
2409
- let ce;
2410
- e[16] !== f || e[17] !== S.displayProperties ? (ce = (j) => ({
2411
- id: j.id,
2412
- ticketId: S.displayProperties.includes("id") ? j.ticketId : "",
2413
- title: j.title,
2414
- badges: ht(j, S.displayProperties),
2415
- onClick: () => f?.(j)
2416
- }), e[16] = f, e[17] = S.displayProperties, e[18] = ce) : ce = e[18];
2417
- const re = ce;
2418
- let ue;
2419
- e[19] !== S.ordering || e[20] !== re ? (ue = (j) => ({
2420
- id: `group::${j.key}`,
2502
+ 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}`,
2421
2514
  ticketId: "",
2422
- title: `${Ne(j.label)} (${j.tickets.length})`,
2423
- children: Ge(j.tickets, S.ordering).map((ne) => re(ne))
2424
- }), e[19] = S.ordering, e[20] = re, e[21] = ue) : ue = e[21];
2425
- const fe = ue;
2426
- R = S.columnGrouping === "none" ? Ge(ee, S.ordering).map((j) => re(j)) : ie.map((j) => j.rows.length > 0 ? {
2427
- id: `group::${j.key}`,
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}`,
2428
2521
  ticketId: "",
2429
- title: `${Ne(j.label)} (${j.tickets.length})`,
2430
- children: j.rows.map((ne) => ({
2431
- ...fe(ne),
2432
- id: `group::${j.key}::${ne.key}`
2522
+ title: `${Me(F.label)} (${F.tickets.length})`,
2523
+ children: F.rows.map((le) => ({
2524
+ ...ce(le),
2525
+ id: `group::${F.key}::${le.key}`
2433
2526
  }))
2434
- } : fe(j));
2435
- let ae;
2436
- e[22] !== f || e[23] !== S.displayProperties ? (ae = (j) => j.map((ne) => ({
2437
- id: ne.id,
2527
+ } : ce(F));
2528
+ let de;
2529
+ e[22] !== g || e[23] !== S.displayProperties ? (de = (F) => F.map((le) => ({
2530
+ id: le.id,
2438
2531
  cardProps: {
2439
- ticketId: S.displayProperties.includes("id") ? ne.ticketId : "",
2440
- parentPath: ne.parentPath,
2441
- title: ne.title,
2442
- badges: ht(ne, S.displayProperties),
2443
- onClick: () => f?.(ne)
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)
2444
2537
  }
2445
- })), e[22] = f, e[23] = S.displayProperties, e[24] = ae) : ae = e[24];
2446
- const be = ae;
2538
+ })), e[22] = g, e[23] = S.displayProperties, e[24] = de) : de = e[24];
2539
+ const ae = de;
2447
2540
  let ge;
2448
- e[25] !== y || e[26] !== S.ordering || e[27] !== be ? (ge = (j) => {
2449
- const ne = y?.(j.key) ?? {}, Rt = Ge(j.tickets, S.ordering), Et = j.rows.length > 0 ? j.rows.map((Be) => ({
2450
- key: Be.key,
2451
- label: Ne(Be.label),
2452
- items: be(Ge(Be.tickets, S.ordering))
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))
2453
2546
  })) : void 0;
2454
2547
  return {
2455
- id: j.key,
2456
- label: j.label,
2457
- color: ne.color,
2458
- canDragIn: ne.canDragIn ?? !1,
2459
- canDragOut: ne.canDragOut ?? !1,
2460
- canCreate: ne.canCreate ?? !1,
2461
- actions: ne.actions ?? [],
2462
- items: be(Rt),
2463
- groups: Et
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
2464
2557
  };
2465
- }, e[25] = y, e[26] = S.ordering, e[27] = be, e[28] = ge) : ge = e[28], F = ie.map(ge), e[0] = c, e[1] = C, e[2] = y, e[3] = d, e[4] = f, e[5] = S.columnGrouping, e[6] = S.displayProperties, e[7] = S.ordering, e[8] = S.rowGrouping, e[9] = n, e[10] = N, e[11] = M, e[12] = R, e[13] = F;
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;
2466
2559
  } else
2467
- N = e[10], M = e[11], R = e[12], F = e[13];
2468
- const Y = F;
2469
- let q;
2470
- e[29] !== N || e[30] !== B || e[31] !== H || e[32] !== M || e[33] !== C || e[34] !== W ? (q = /* @__PURE__ */ i(xl, { categories: N, filters: C, countsByCategory: M, onToggleFilterValue: W, onClearFilter: H, onClearAll: B }), e[29] = N, e[30] = B, e[31] = H, e[32] = M, e[33] = C, e[34] = W, e[35] = q) : q = e[35];
2471
- let J;
2472
- e[36] !== D || e[37] !== k || e[38] !== P || e[39] !== v || e[40] !== L || e[41] !== E || e[42] !== w || e[43] !== S || e[44] !== O || e[45] !== z ? (J = /* @__PURE__ */ i(ml, { settings: S, groupingOptions: k, orderingOptions: P, displayPropertyOptions: D, onViewModeChange: w, onColumnGroupingChange: v, onRowGroupingChange: E, onOrderingFieldChange: L, onSortDirectionToggle: z, onDisplayPropertyToggle: O }), e[36] = D, e[37] = k, e[38] = P, e[39] = v, e[40] = L, e[41] = E, e[42] = w, e[43] = S, e[44] = O, e[45] = z, e[46] = J) : J = e[46];
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];
2473
2564
  let K;
2474
- e[47] !== q || e[48] !== J ? (K = /* @__PURE__ */ b(X, { justifyContent: "flex-end", gap: "2xs", children: [
2475
- q,
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];
2566
+ 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];
2571
+ 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];
2573
+ let ee;
2574
+ return e[61] !== J || e[62] !== Z ? (ee = /* @__PURE__ */ x(H, { gap: "sm", height: "100%", minH: "0", children: [
2575
+ Z,
2476
2576
  J
2477
- ] }), e[47] = q, e[48] = J, e[49] = K) : K = e[49];
2478
- let Q;
2479
- e[50] !== Y || e[51] !== _ || e[52] !== T || e[53] !== R || e[54] !== x || e[55] !== m || e[56] !== p || e[57] !== h || e[58] !== I || e[59] !== S.viewMode ? (Q = S.viewMode === "board" ? /* @__PURE__ */ i(V, { flex: "1", minH: "0", children: Y.length > 0 ? /* @__PURE__ */ i(yl, { columns: Y, selectedItemId: I, onMoveItem: p, onMoveToGroup: h, onCreateStart: m, onColumnAction: x }) : /* @__PURE__ */ i(Ke, { title: T, description: _, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : R.length > 0 ? /* @__PURE__ */ i(Pl, { items: R, selectedItemId: I }) : /* @__PURE__ */ i(Ke, { title: T, description: _, borderWidth: "1px", borderRadius: "md" }), e[50] = Y, e[51] = _, e[52] = T, e[53] = R, e[54] = x, e[55] = m, e[56] = p, e[57] = h, e[58] = I, e[59] = S.viewMode, e[60] = Q) : Q = e[60];
2480
- let te;
2481
- return e[61] !== Q || e[62] !== K ? (te = /* @__PURE__ */ b(G, { gap: "sm", height: "100%", minH: "0", children: [
2482
- K,
2483
- Q
2484
- ] }), e[61] = Q, e[62] = K, e[63] = te) : te = e[63], te;
2577
+ ] }), e[61] = J, e[62] = Z, e[63] = ee) : ee = e[63], ee;
2485
2578
  };
2486
- function Yl(l) {
2579
+ function ri(l) {
2487
2580
  return l.settings;
2488
2581
  }
2489
- function Kl(l) {
2582
+ function si(l) {
2490
2583
  return l.filters;
2491
2584
  }
2492
- function ql(l) {
2585
+ function ai(l) {
2493
2586
  return l.setViewMode;
2494
2587
  }
2495
- function Jl(l) {
2588
+ function ci(l) {
2496
2589
  return l.setColumnGrouping;
2497
2590
  }
2498
- function Ql(l) {
2591
+ function di(l) {
2499
2592
  return l.setRowGrouping;
2500
2593
  }
2501
- function Zl(l) {
2594
+ function ui(l) {
2502
2595
  return l.setOrderingField;
2503
2596
  }
2504
- function ei(l) {
2597
+ function fi(l) {
2505
2598
  return l.toggleSortDirection;
2506
2599
  }
2507
- function ti(l) {
2600
+ function gi(l) {
2508
2601
  return l.toggleDisplayProperty;
2509
2602
  }
2510
- function ni(l) {
2603
+ function hi(l) {
2511
2604
  return l.toggleFilterValue;
2512
2605
  }
2513
- function li(l) {
2606
+ function pi(l) {
2514
2607
  return l.clearFilter;
2515
2608
  }
2516
- function ii(l) {
2609
+ function mi(l) {
2517
2610
  return l.clearAllFilters;
2518
2611
  }
2519
- function ri(l) {
2612
+ function bi(l) {
2520
2613
  return l.value;
2521
2614
  }
2522
- const oi = Wt({
2615
+ const xi = Wt({
2523
2616
  placement: "bottom-end",
2524
2617
  pauseOnPageIdle: !0
2525
- }), Ui = () => {
2618
+ }), ao = () => {
2526
2619
  const l = A(1);
2527
2620
  let e;
2528
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ft, { toaster: oi, insetInline: {
2621
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(He, { children: /* @__PURE__ */ i(Bt, { toaster: xi, insetInline: {
2529
2622
  mdDown: "4"
2530
- }, children: si }) }), l[0] = e) : e = l[0], e;
2623
+ }, children: Si }) }), l[0] = e) : e = l[0], e;
2531
2624
  };
2532
- function si(l) {
2533
- return /* @__PURE__ */ b(Le.Root, { width: {
2625
+ function Si(l) {
2626
+ return /* @__PURE__ */ x(_e.Root, { width: {
2534
2627
  md: "sm"
2535
2628
  }, children: [
2536
- l.type === "loading" ? /* @__PURE__ */ i(Bt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i(Le.Indicator, {}),
2537
- /* @__PURE__ */ b(G, { gap: "1", flex: "1", maxWidth: "100%", children: [
2538
- l.title && /* @__PURE__ */ i(Le.Title, { children: l.title }),
2539
- l.description && /* @__PURE__ */ i(Le.Description, { children: l.description })
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 })
2540
2633
  ] }),
2541
- l.action && /* @__PURE__ */ i(Le.ActionTrigger, { children: l.action.label }),
2542
- l.closable && /* @__PURE__ */ i(Le.CloseTrigger, {})
2634
+ l.action && /* @__PURE__ */ i(_e.ActionTrigger, { children: l.action.label }),
2635
+ l.closable && /* @__PURE__ */ i(_e.CloseTrigger, {})
2543
2636
  ] });
2544
2637
  }
2545
- const ai = (l) => {
2638
+ const yi = (l) => {
2546
2639
  if (typeof document > "u") return;
2547
2640
  const e = document.documentElement, n = document.body, t = l === "dark" ? "light" : "dark";
2548
- for (const r of [e, n])
2549
- r && (r.classList.remove(t), r.classList.add(l), r.setAttribute("data-theme", l), r.style.colorScheme = l);
2550
- }, $t = "theme-preference", Lt = Yt(null), ci = () => {
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 = () => {
2551
2644
  if (typeof window > "u") return "light";
2552
- const l = window.localStorage.getItem($t);
2645
+ const l = window.localStorage.getItem(_t);
2553
2646
  return l === "dark" || l === "light" ? l : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2554
- }, Yi = (l) => {
2647
+ }, co = (l) => {
2555
2648
  const e = A(11), {
2556
2649
  children: n,
2557
2650
  initialPreference: t
2558
2651
  } = l;
2559
- let r;
2560
- e[0] !== t ? (r = t === void 0 ? ci() : t, e[0] = t, e[1] = r) : r = e[1];
2561
- const o = r, [s, a] = me(o);
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);
2562
2655
  let c, d;
2563
- e[2] !== s ? (c = () => {
2564
- ai(s), typeof window < "u" && window.localStorage.setItem($t, s);
2565
- }, d = [s], e[2] = s, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), He(c, d);
2656
+ 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);
2566
2659
  let u;
2567
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(di), e[5] = u) : u = e[5];
2568
- const g = u;
2569
- let f;
2570
- e[6] !== s ? (f = {
2571
- themePreference: s,
2660
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(Ci), e[5] = u) : u = e[5];
2661
+ const f = u;
2662
+ let g;
2663
+ e[6] !== r ? (g = {
2664
+ themePreference: r,
2572
2665
  setThemePreference: a,
2573
- toggleThemePreference: g
2574
- }, e[6] = s, e[7] = f) : f = e[7];
2575
- let p;
2576
- return e[8] !== n || e[9] !== f ? (p = /* @__PURE__ */ i(Lt, { value: f, children: n }), e[8] = n, e[9] = f, e[10] = p) : p = e[10], p;
2577
- }, Ki = () => {
2578
- const l = Kt(Lt);
2666
+ toggleThemePreference: f
2667
+ }, e[6] = r, e[7] = g) : g = e[7];
2668
+ 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);
2579
2672
  if (!l)
2580
2673
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
2581
2674
  return l;
2582
2675
  };
2583
- function di(l) {
2676
+ function Ci(l) {
2584
2677
  return l === "dark" ? "light" : "dark";
2585
2678
  }
2586
2679
  export {
2587
- Cn as AlertMessage,
2588
- Li as Breadcrumb,
2589
- Qi as ChakraProvider,
2590
- vn as Checkbox,
2591
- er as CodeDiffEditor,
2592
- tr as CodeEditor,
2593
- wn as ContentPlaceholder,
2594
- Ri as ContentPlaceholderLabel,
2595
- Ei as DeleteConfirmationModal,
2596
- St as DiffBubble,
2597
- zi as DiffDrawer,
2598
- ml as DisplayMenu,
2599
- Ai as DocsChangelog,
2600
- Oi as DocsOutline,
2601
- Gi as DocsPagination,
2602
- Mi as DocsSidebar,
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,
2603
2696
  Ke as EmptyState,
2604
- Ni as ErrorBoundary,
2605
- xl as FilterMenu,
2606
- Hi as FolderPickerDialog,
2607
- Wi as HorizontalMenuStack,
2608
- Mn as ItemSection,
2609
- We as MenuItem,
2610
- Fi as OpenSourceNoticesScreen,
2611
- Wn as PanelMenu,
2612
- Bi as Properties,
2613
- Ce as ScrollArea,
2614
- Jn as SessionIndicator,
2615
- Vi as SidebarNext,
2616
- Zn as SidebarTree,
2617
- ji as Switch,
2618
- Yi as ThemePreferenceProvider,
2619
- yl as TicketBoard,
2620
- Dt as TicketCard,
2621
- Pl as TicketList,
2622
- Xi as TicketsWorkspace,
2623
- Ui as Toaster,
2624
- Ee as Tooltip,
2625
- ai as applyThemePreference,
2626
- ci as getInitialThemePreference,
2627
- lr as psTheme,
2628
- oi as toaster,
2629
- Re as useSidebarNextStore,
2630
- Ki as useThemePreference,
2631
- pe as useTicketsWorkspaceStore
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
2632
2728
  };
2633
2729
  //# sourceMappingURL=index.js.map