@pstdio/ui 0.2.2 → 0.2.4

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