@pstdio/ui 0.2.3 → 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.
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, E as Ke } from "./empty-state-kQR0gd4j.js";
8
- import { C as er, b as tr } from "./empty-state-kQR0gd4j.js";
9
- import { useVirtualizer as Jt } from "@tanstack/react-virtual";
10
- import { ChevronRight as ye, ChevronDown as et, FileText as qe, ChevronLeft as Qt, FolderOpen as Zt, Folder as en, Home as tn, ChevronUp as nn, Info as ln, CircleCheck as rn, CircleAlert as on, CircleDashed as sn, PanelLeftClose as an, Settings2 as cn, List as dn, KanbanSquare as un, ArrowDownUp as gn, Filter as fn, GitBranchIcon as pn, Plus as hn, MoreHorizontal as mn } from "lucide-react";
11
- import { S as Ce, T as Ee } from "./tooltip-Dze4WXVl.js";
12
- import { useStore as yt } from "zustand";
13
- import { persist as Ct, createJSONStorage as vt } from "zustand/middleware";
14
- import { createStore as wt } from "zustand/vanilla";
15
- import { useReactTable as bn, getExpandedRowModel as xn, getCoreRowModel as Sn, flexRender as yn } from "@tanstack/react-table";
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(ye, { size: 16 }), e[6] = t, e[7] = h) : h = e[7];
194
- let m;
195
- e[8] !== f || e[9] !== p || e[10] !== h ? (m = /* @__PURE__ */ i(Se, { "aria-label": f, variant: "ghost", size: "2xs", onClick: p, flexShrink: 0, children: h }), e[8] = f, e[9] = p, e[10] = h, e[11] = m) : m = e[11];
196
- let x;
197
- e[12] !== n.change || e[13] !== n.newPath || e[14] !== n.oldPath || e[15] !== o ? (x = n.change === "renamed" ? /* @__PURE__ */ b($, { as: "span", textStyle: "sm", children: [
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
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(Ce, { 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(Ce, { 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: ye, 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 = Ce, 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(Ce, { 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(ye, { 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
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,53 +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
811
  _focus: U,
730
812
  textDecoration: "none",
731
813
  color: "inherit"
732
- }, e[20] = F, e[21] = n, e[22] = I, e[23] = k, e[24] = v, e[25] = Q, e[26] = te, e[27] = ee, e[28] = S, e[29] = R.minHeight, e[30] = R.paddingX, e[31] = R.paddingY, e[32] = C, e[33] = ie) : ie = e[33];
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];
733
815
  const ce = ie;
734
- if (r && t) {
735
- let fe, ae;
816
+ if (o && t) {
817
+ let ge, ae;
736
818
  if (e[34] !== t || e[35] !== ce || e[36] !== K) {
737
819
  ae = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
738
820
  e: {
739
- const be = Vt.only(t);
740
- if (!jt(be)) {
821
+ const be = Ft.only(t);
822
+ if (!Vt(be)) {
741
823
  ae = null;
742
824
  break e;
743
825
  }
744
- let ge;
745
- e[39] !== K ? (ge = /* @__PURE__ */ i(rt, { ...K }), e[39] = K, e[40] = ge) : ge = e[40], fe = /* @__PURE__ */ i(tt, { asChild: !0, ...ce, children: Xt(be, void 0, ge) });
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) });
746
828
  }
747
- 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;
748
830
  } else
749
- fe = e[37], ae = e[38];
750
- 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;
751
833
  }
752
- let re;
753
- 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];
754
836
  let ue;
755
- return e[43] !== ce || e[44] !== B || e[45] !== N || e[46] !== M || e[47] !== re ? (ue = /* @__PURE__ */ i(tt, { ...ce, onClick: B, onMouseDown: N, onMouseEnter: M, children: re }), e[43] = ce, e[44] = B, e[45] = N, e[46] = M, e[47] = re, e[48] = ue) : ue = e[48], ue;
756
- }, Hn = {
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 = {
757
839
  default: {
758
840
  width: "64",
759
841
  headerHeight: "49px",
@@ -771,72 +853,72 @@ const It = {
771
853
  contentGap: "2xs"
772
854
  }
773
855
  };
774
- function Wn(l) {
775
- const e = A(13), {
856
+ function jn(l) {
857
+ const e = z(13), {
776
858
  title: n,
777
859
  children: t,
778
- variant: r
779
- } = l, s = Hn[r === void 0 ? "default" : r];
860
+ variant: o
861
+ } = l, s = Vn[o === void 0 ? "default" : o];
780
862
  let a;
781
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];
782
864
  let c;
783
- e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(Ce, { 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: {
784
866
  p: s.contentPadding,
785
867
  spaceY: s.contentGap
786
868
  }, children: t }), e[5] = t, e[6] = s.contentGap, e[7] = s.contentPadding, e[8] = c) : c = e[8];
787
869
  let d;
788
- return e[9] !== s.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(G, { borderRightWidth: "1px", width: s.width, gap: "0", minH: "0", children: [
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: [
789
871
  a,
790
872
  c
791
873
  ] }), e[9] = s.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
792
874
  }
793
875
  const kt = (l) => {
794
- const e = A(27), {
876
+ const e = z(27), {
795
877
  item: n,
796
878
  activeLink: t,
797
- onSelectLink: r,
798
- shouldStartOpen: o
879
+ onSelectLink: o,
880
+ shouldStartOpen: r
799
881
  } = l;
800
882
  let s;
801
883
  e[0] !== n.items ? (s = n.items ?? [], e[0] = n.items, e[1] = s) : s = e[1];
802
884
  const a = s, c = a.length > 0;
803
885
  if (!c && n.link) {
804
- const h = n.link, m = n.link === t;
805
- let x;
806
- e[2] !== h || e[3] !== r ? (x = () => r(h), e[2] = h, e[3] = r, e[4] = x) : x = e[4];
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];
807
889
  let y;
808
- return e[5] !== m || e[6] !== n.text || e[7] !== x ? (y = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: n.text, isSelected: m, variant: "compact", onClick: x }) }), e[5] = m, e[6] = n.text, e[7] = x, e[8] = y) : y = e[8], y;
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;
809
891
  }
810
892
  if (!c) {
811
- let h;
812
- return e[9] !== n.text ? (h = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: n.text, isDisabled: !0, variant: "compact" }) }), e[9] = n.text, e[10] = h) : h = e[10], h;
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;
813
895
  }
814
896
  let d;
815
- e[11] !== n || e[12] !== o ? (d = o?.(n) ?? !1, e[11] = n, e[12] = o, e[13] = d) : d = e[13];
897
+ e[11] !== n || e[12] !== r ? (d = r?.(n) ?? !1, e[11] = n, e[12] = r, e[13] = d) : d = e[13];
816
898
  const u = d, g = n.text;
817
899
  let f;
818
- if (e[14] !== t || e[15] !== a || e[16] !== r || e[17] !== o) {
819
- let h;
820
- e[19] !== t || e[20] !== r || e[21] !== o ? (h = (m, x) => /* @__PURE__ */ i(kt, { item: m, activeLink: t, onSelectLink: r, shouldStartOpen: o }, `${m.text}-${m.link ?? x}`), e[19] = t, e[20] = r, e[21] = o, e[22] = h) : h = e[22], f = a.map(h), e[14] = t, e[15] = a, e[16] = r, e[17] = o, e[18] = f;
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;
821
903
  } else
822
904
  f = e[18];
823
- let p;
824
- return e[23] !== u || e[24] !== n.text || e[25] !== f ? (p = /* @__PURE__ */ i(Mn, { title: g, defaultOpen: u, children: f }), e[23] = u, e[24] = n.text, e[25] = f, e[26] = p) : p = e[26], p;
825
- }, Mi = (l) => {
826
- 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), {
827
909
  title: n,
828
910
  emptyMessage: t,
829
- menuItems: r,
830
- activeLink: o,
911
+ menuItems: o,
912
+ activeLink: r,
831
913
  onSelectLink: s,
832
914
  shouldStartOpen: a
833
915
  } = l;
834
916
  let c;
835
- e[0] !== o || e[1] !== t || e[2] !== r || e[3] !== s || e[4] !== a ? (c = r.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : r.map((u, g) => /* @__PURE__ */ i(kt, { item: u, activeLink: o, onSelectLink: s, shouldStartOpen: a }, `${u.text}-${u.link ?? g}`)), e[0] = o, e[1] = t, e[2] = r, e[3] = s, e[4] = a, e[5] = c) : c = e[5];
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];
836
918
  let d;
837
- return e[6] !== c || e[7] !== n ? (d = /* @__PURE__ */ i(Wn, { title: n, variant: "compact", children: c }), e[6] = c, e[7] = n, e[8] = d) : d = e[8], d;
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;
838
920
  };
839
- class Ni extends Ut {
921
+ class Vi extends Xt {
840
922
  state = {
841
923
  error: null
842
924
  };
@@ -859,57 +941,57 @@ class Ni extends Ut {
859
941
  fallback: n,
860
942
  label: t
861
943
  } = this.props, {
862
- error: r
944
+ error: o
863
945
  } = this.state;
864
- 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;
865
947
  }
866
948
  }
867
- const Fn = (l) => {
868
- const e = A(12), {
949
+ const Xn = (l) => {
950
+ const e = z(12), {
869
951
  error: n,
870
952
  label: t,
871
- onReset: r
872
- } = l, o = t ?? "Something went wrong";
953
+ onReset: o
954
+ } = l, r = t ?? "Something went wrong";
873
955
  let s;
874
- 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];
875
957
  const a = n.message || "An unexpected error occurred while rendering this section.";
876
958
  let c;
877
959
  e[2] !== a ? (c = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
878
960
  let d;
879
- e[4] !== r ? (d = r ? /* @__PURE__ */ i(de, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
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];
880
962
  let u;
881
- 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: [
882
964
  c,
883
965
  d
884
966
  ] }), e[6] = c, e[7] = d, e[8] = u) : u = e[8];
885
967
  let g;
886
- return e[9] !== s || e[10] !== u ? (g = /* @__PURE__ */ i(wn, { height: "100%", width: "100%", children: /* @__PURE__ */ i(Nt, { children: /* @__PURE__ */ i(Cn, { status: "error", title: s, children: u }) }) }), e[9] = s, e[10] = u, e[11] = g) : g = e[11], g;
887
- }, Bn = (l) => l.isDirectory ? l.isGitRepo ? Zt : en : qe, Vn = (l) => {
888
- 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), {
889
971
  entry: n,
890
972
  selectedPath: t,
891
- selectedPathSet: r,
892
- onEntryClick: o
973
+ selectedPathSet: o,
974
+ onEntryClick: r
893
975
  } = l;
894
976
  let s;
895
- e[0] !== n.isGitRepo || e[1] !== n.path || e[2] !== r ? (s = n.isGitRepo && r.has(n.path), e[0] = n.isGitRepo, e[1] = n.path, e[2] = r, e[3] = s) : s = e[3];
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];
896
978
  const a = s, c = !n.isDirectory || a;
897
979
  let d;
898
- e[4] !== n || e[5] !== a || e[6] !== o ? (d = () => {
899
- a || o(n);
900
- }, e[4] = n, e[5] = a, e[6] = o, e[7] = d) : d = e[7];
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];
901
983
  const u = d, g = n.name;
902
984
  let f;
903
- e[8] !== n ? (f = Bn(n), e[8] = n, e[9] = f) : f = e[9];
904
- const p = n.isGitRepo ? "Git repo" : void 0, h = n.isGitRepo ? "green" : void 0, m = t === n.path;
905
- let x;
906
- return e[10] !== n.name || e[11] !== u || e[12] !== c || e[13] !== f || e[14] !== p || e[15] !== h || e[16] !== m ? (x = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: g, leftIcon: f, tagLabel: p, tagColorPalette: h, isDisabled: c, isSelected: m, width: "100%", maxWidth: "100%", onClick: u }) }), e[10] = n.name, e[11] = u, e[12] = c, e[13] = f, e[14] = p, e[15] = h, e[16] = m, e[17] = x) : x = e[17], x;
907
- }, Hi = (l) => {
908
- 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), {
909
991
  open: n,
910
992
  title: t,
911
- description: r,
912
- currentPath: o,
993
+ description: o,
994
+ currentPath: r,
913
995
  entries: s,
914
996
  selectedPath: a,
915
997
  selectedPaths: c,
@@ -917,497 +999,497 @@ const Fn = (l) => {
917
999
  error: u,
918
1000
  isSelectDisabled: g,
919
1001
  onClose: f,
920
- onSelect: p,
921
- onSelectHomeDirectory: h,
1002
+ onSelect: h,
1003
+ onSelectHomeDirectory: p,
922
1004
  onSelectParentDirectory: m,
923
- onEntryClick: x
924
- } = l, y = t === void 0 ? "Select folder" : t, I = o === void 0 ? "" : o, k = a === void 0 ? null : a;
1005
+ onEntryClick: b
1006
+ } = l, y = t === void 0 ? "Select folder" : t, w = r === void 0 ? "" : r, I = a === void 0 ? null : a;
925
1007
  let P;
926
1008
  e[0] !== c ? (P = c === void 0 ? [] : c, e[0] = c, e[1] = P) : P = e[1];
927
- const D = P, T = d === void 0 ? !1 : d, _ = u === void 0 ? "" : u, S = g === void 0 ? !1 : g;
928
- let C;
929
- e[2] !== D ? (C = new Set(D), e[2] = D, e[3] = C) : C = e[3];
930
- const w = C;
1009
+ const _ = P, T = d === void 0 ? !1 : d, D = u === void 0 ? "" : u, S = g === void 0 ? !1 : g;
931
1010
  let v;
932
- 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];
933
1015
  let E;
934
1016
  e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ i(se.Backdrop, {}), e[6] = E) : E = e[6];
935
1017
  let L;
936
1018
  e[7] !== y ? (L = /* @__PURE__ */ i($, { textStyle: "heading/M", children: y }), e[7] = y, e[8] = L) : L = e[8];
937
- let z;
938
- e[9] !== r ? (z = r ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = z) : z = e[10];
939
- let O;
940
- 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: [
941
1023
  L,
942
- z
943
- ] }) }), 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];
944
1026
  let W;
945
- 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];
946
1028
  let H;
947
- e[15] !== h ? (H = /* @__PURE__ */ i(de, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: h, children: W }), e[15] = h, e[16] = H) : H = e[16];
948
- const B = !I || I === "/";
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 === "/";
949
1031
  let N;
950
- 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];
951
1033
  let M;
952
- e[18] !== m || e[19] !== B ? (M = /* @__PURE__ */ i(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: m, disabled: B, children: N }), e[18] = m, e[19] = B, e[20] = M) : M = e[20];
953
- const R = I || "Home";
954
- let F;
955
- e[21] !== R ? (F = /* @__PURE__ */ i($, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: R }), e[21] = R, e[22] = F) : F = e[22];
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];
956
1038
  let Y;
957
- 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: [
958
1040
  H,
959
1041
  M,
960
- F
961
- ] }), e[23] = H, e[24] = M, e[25] = F, e[26] = Y) : Y = e[26];
962
- let q;
963
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = {
964
- padding: "sm"
965
- }, e[27] = q) : q = e[27];
1042
+ B
1043
+ ] }), e[23] = H, e[24] = M, e[25] = B, e[26] = Y) : Y = e[26];
966
1044
  let J;
967
- e[28] !== s || e[29] !== _ || e[30] !== T || e[31] !== x || e[32] !== k || e[33] !== w ? (J = /* @__PURE__ */ i(Ce, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: q, children: T ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : _ ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "red.500", children: _ }) : s.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(G, { gap: "xs", children: s.map((ie) => /* @__PURE__ */ i(Vn, { entry: ie, selectedPath: k, selectedPathSet: w, onEntryClick: x }, ie.path)) }) }), e[28] = s, e[29] = _, e[30] = T, e[31] = x, e[32] = k, e[33] = w, e[34] = J) : J = e[34];
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];
968
1050
  let K;
969
- 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: [
970
1052
  Y,
971
- J
972
- ] }) }), 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];
973
1055
  let Q;
974
1056
  e[38] !== f ? (Q = /* @__PURE__ */ i(de, { variant: "outline", onClick: f, children: "Cancel" }), e[38] = f, e[39] = Q) : Q = e[39];
975
1057
  let te;
976
- e[40] !== S || e[41] !== p ? (te = /* @__PURE__ */ i(de, { onClick: p, disabled: S, children: "Select repository" }), e[40] = S, e[41] = p, e[42] = te) : te = e[42];
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];
977
1059
  let ee;
978
- 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: [
979
1061
  Q,
980
1062
  te
981
1063
  ] }) }), e[43] = Q, e[44] = te, e[45] = ee) : ee = e[45];
982
1064
  let Z;
983
- e[46] !== O || e[47] !== K || e[48] !== ee ? (Z = /* @__PURE__ */ i(se.Positioner, { children: /* @__PURE__ */ b(se.Content, { children: [
984
- O,
1065
+ e[46] !== G || e[47] !== K || e[48] !== ee ? (Z = /* @__PURE__ */ i(se.Positioner, { children: /* @__PURE__ */ x(se.Content, { children: [
1066
+ G,
985
1067
  K,
986
1068
  ee
987
- ] }) }), 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];
988
1070
  let U;
989
- return e[50] !== n || e[51] !== Z || e[52] !== v ? (U = /* @__PURE__ */ b(se.Root, { closeOnInteractOutside: !1, open: n, onOpenChange: v, children: [
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: [
990
1072
  E,
991
1073
  Z
992
- ] }), 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;
993
1075
  };
994
- function Wi(l) {
995
- const e = A(6);
1076
+ function Xi(l) {
1077
+ const e = z(6);
996
1078
  let n, t;
997
1079
  e[0] !== l ? ({
998
1080
  children: n,
999
1081
  ...t
1000
1082
  } = l, e[0] = l, e[1] = n, e[2] = t) : (n = e[1], t = e[2]);
1001
- let r;
1002
- return e[3] !== n || e[4] !== t ? (r = /* @__PURE__ */ i(X, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: n }), e[3] = n, e[4] = t, e[5] = r) : r = e[5], r;
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;
1003
1085
  }
1004
- const jn = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Xn = (l) => l.version ? `${l.name} v${l.version}` : l.name, Fi = (l) => {
1005
- 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), {
1006
1088
  notices: n,
1007
1089
  title: t,
1008
- description: r,
1009
- productName: o,
1090
+ description: o,
1091
+ productName: r,
1010
1092
  productVersion: s,
1011
1093
  generatedAt: a,
1012
1094
  emptyTitle: c,
1013
1095
  emptyDescription: d
1014
- } = l, u = t === void 0 ? "Open Source and Third-Party Notices" : t, g = r === void 0 ? "This product includes software developed by the open source community." : r, f = c === void 0 ? "No third-party notices available" : c, p = d === void 0 ? "No third-party packages were included in this build." : d;
1015
- let h;
1016
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
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 = {
1017
1099
  base: "md",
1018
1100
  md: "xl"
1019
- }, e[0] = h) : h = e[0];
1101
+ }, e[0] = p) : p = e[0];
1020
1102
  let m;
1021
1103
  e[1] !== u ? (m = /* @__PURE__ */ i($, { textStyle: "heading/L", children: u }), e[1] = u, e[2] = m) : m = e[2];
1022
- let x;
1023
- e[3] !== g ? (x = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = x) : x = e[4];
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];
1024
1106
  let y;
1025
- 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: [
1026
1108
  "Product: ",
1027
- o
1028
- ] }) : null, e[5] = o, e[6] = y) : y = e[6];
1029
- let I;
1030
- e[7] !== s ? (I = s ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
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: [
1031
1113
  "Version: ",
1032
1114
  s
1033
- ] }) : null, e[7] = s, e[8] = I) : I = e[8];
1034
- let k;
1035
- 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: [
1036
1118
  "Packages: ",
1037
1119
  n.length
1038
- ] }), e[9] = n.length, e[10] = k) : k = e[10];
1120
+ ] }), e[9] = n.length, e[10] = I) : I = e[10];
1039
1121
  let P;
1040
- 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: [
1041
1123
  "Generated: ",
1042
1124
  a
1043
1125
  ] }) : null, e[11] = a, e[12] = P) : P = e[12];
1044
- let D;
1045
- 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: [
1046
1128
  y,
1129
+ w,
1047
1130
  I,
1048
- k,
1049
1131
  P
1050
- ] }), 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];
1051
1133
  let T;
1052
- 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: [
1053
1135
  m,
1054
- x,
1055
- D
1056
- ] }), e[18] = D, e[19] = m, e[20] = x, e[21] = T) : T = e[21];
1057
- let _;
1058
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Ye, { borderColor: "border.muted" }), e[22] = _) : _ = e[22];
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];
1059
1141
  let S;
1060
- e[23] !== p || e[24] !== f || e[25] !== n ? (S = n.length === 0 ? /* @__PURE__ */ b(G, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
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: [
1061
1143
  /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: f }),
1062
- /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: p })
1063
- ] }) : /* @__PURE__ */ i(G, { gap: "md", children: n.map(Un) }), e[23] = p, e[24] = f, e[25] = n, e[26] = S) : S = e[26];
1064
- let C;
1065
- return e[27] !== T || e[28] !== S ? (C = /* @__PURE__ */ b(G, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: h, gap: "lg", children: [
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: [
1066
1148
  T,
1067
- _,
1149
+ D,
1068
1150
  S
1069
- ] }), 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;
1070
1152
  };
1071
- function Un(l, e) {
1072
- return /* @__PURE__ */ i(V, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b(G, { gap: "sm", children: [
1073
- /* @__PURE__ */ b(G, { gap: "2xs", children: [
1074
- /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: Xn(l) }),
1075
- /* @__PURE__ */ b($, { textStyle: "label/S/regular", color: "fg.muted", children: [
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: [
1076
1158
  "License: ",
1077
1159
  l.license ?? "Unknown"
1078
1160
  ] })
1079
1161
  ] }),
1080
1162
  l.copyright ? /* @__PURE__ */ i($, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
1081
- (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ b(G, { gap: "2xs", children: [
1163
+ (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ x(O, { gap: "2xs", children: [
1082
1164
  l.homepageUrl ? /* @__PURE__ */ i(Ue, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1083
1165
  l.sourceUrl ? /* @__PURE__ */ i(Ue, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1084
1166
  ] }),
1085
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
1086
- ] }) }, jn(l, e));
1168
+ ] }) }, Kn(l, e));
1087
1169
  }
1088
- const Bi = (l) => {
1089
- const e = A(4), {
1170
+ const Yi = (l) => {
1171
+ const e = z(4), {
1090
1172
  items: n
1091
1173
  } = l;
1092
1174
  let t;
1093
- e[0] !== n ? (t = n.map(Yn), e[0] = n, e[1] = t) : t = e[1];
1094
- let r;
1095
- return e[2] !== t ? (r = /* @__PURE__ */ i(G, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
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;
1096
1178
  };
1097
- function Yn(l, e) {
1098
- return /* @__PURE__ */ b(X, { gap: "md", alignItems: "center", children: [
1099
- /* @__PURE__ */ i(V, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(X, { gap: "1", alignItems: "center", children: [
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: [
1100
1182
  /* @__PURE__ */ i($, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
1101
- l.description && /* @__PURE__ */ i(Ee, { content: l.description, showArrow: !0, children: /* @__PURE__ */ i(oe, { as: ln, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
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" }) })
1102
1184
  ] }) }),
1103
1185
  /* @__PURE__ */ i(V, { flex: "1", children: l.value })
1104
1186
  ] }, `${l.label}-${e}`);
1105
1187
  }
1106
- const Kn = (l) => l === "completed" ? rn : l === "failed" ? on : sn, qn = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : "fg.muted", Jn = (l) => {
1107
- const e = A(11), {
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), {
1108
1190
  status: n,
1109
1191
  boxSize: t,
1110
- ariaLabel: r,
1111
- cursor: o,
1192
+ ariaLabel: o,
1193
+ cursor: r,
1112
1194
  onClick: s
1113
- } = 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;
1114
1196
  let d;
1115
- 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];
1116
1198
  let u;
1117
- 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];
1118
1200
  let g;
1119
- return e[4] !== c || e[5] !== a || e[6] !== o || e[7] !== s || e[8] !== d || e[9] !== u ? (g = /* @__PURE__ */ i(oe, { as: d, boxSize: a, color: u, "aria-label": c, cursor: o, onClick: s }), e[4] = c, e[5] = a, e[6] = o, e[7] = s, e[8] = d, e[9] = u, e[10] = g) : g = e[10], g;
1120
- }, Pt = (l, e) => e.includes(l), Qn = (l) => {
1121
- const e = A(18), {
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), {
1122
1204
  action: n,
1123
1205
  sectionId: t,
1124
- nodeId: r
1206
+ nodeId: o
1125
1207
  } = l;
1126
1208
  if (n.menuItems && n.menuItems.length > 0) {
1127
1209
  let a;
1128
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];
1129
1211
  let c;
1130
- 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];
1131
1213
  let d;
1132
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];
1133
1215
  let u;
1134
- 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: [
1135
1217
  a,
1136
1218
  d
1137
1219
  ] }), e[7] = a, e[8] = d, e[9] = u) : u = e[9], u;
1138
1220
  }
1139
- let o;
1140
- 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) => {
1141
1223
  a.stopPropagation(), n.onAction?.({
1142
1224
  sectionId: t,
1143
- nodeId: r
1225
+ nodeId: o
1144
1226
  });
1145
- }, 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];
1146
1228
  let s;
1147
- return e[14] !== n.icon || e[15] !== n.label || e[16] !== o ? (s = /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, onClick: o, children: n.icon }), e[14] = n.icon, e[15] = n.label, e[16] = o, e[17] = s) : s = e[17], s;
1148
- }, Je = (l) => {
1149
- 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), {
1150
1232
  sectionId: n,
1151
1233
  nodeId: t,
1152
- actions: r
1234
+ actions: o
1153
1235
  } = l;
1154
- if (r.length === 0)
1236
+ if (o.length === 0)
1155
1237
  return null;
1156
- let o, s;
1157
- 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 = {
1158
1240
  opacity: "1",
1159
1241
  pointerEvents: "auto"
1160
1242
  }, s = {
1161
1243
  opacity: "1",
1162
1244
  pointerEvents: "auto"
1163
- }, 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]);
1164
1246
  let a;
1165
- if (e[2] !== r || e[3] !== t || e[4] !== n) {
1247
+ if (e[2] !== o || e[3] !== t || e[4] !== n) {
1166
1248
  let d;
1167
- e[6] !== t || e[7] !== n ? (d = (u) => /* @__PURE__ */ i(Qn, { action: u, sectionId: n, nodeId: t }, u.id), e[6] = t, e[7] = n, e[8] = d) : d = e[8], a = r.map(d), e[2] = r, e[3] = t, e[4] = n, e[5] = a;
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;
1168
1250
  } else
1169
1251
  a = e[5];
1170
1252
  let c;
1171
- return e[9] !== a ? (c = /* @__PURE__ */ i(X, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: o, _groupFocusWithin: s, transition: "opacity 120ms ease", onClick: tl, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1172
- }, Tt = (l) => {
1173
- 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), {
1174
1256
  sectionId: n,
1175
1257
  node: t,
1176
- level: r,
1177
- expandedNodes: o,
1258
+ level: o,
1259
+ expandedNodes: r,
1178
1260
  activeNodeId: s,
1179
1261
  linkComponent: a,
1180
1262
  onNavigate: c,
1181
1263
  onToggleNode: d
1182
1264
  } = l, u = (t.children?.length ?? 0) > 0;
1183
1265
  let g;
1184
- e[0] !== o || e[1] !== u || e[2] !== t.id ? (g = u && Pt(t.id, o), e[0] = o, e[1] = u, e[2] = t.id, e[3] = g) : g = e[3];
1185
- const f = g, p = t.isNavigable || t.navigationIntent !== void 0, h = s === t.id, m = t.disabled === !0, x = r > 0 ? `calc(var(--chakra-spacing-1) + ${r} * var(--chakra-spacing-3))` : void 0, y = !!(a && t.href && p && !u && !m);
1186
- let I;
1187
- e[4] !== u || e[5] !== m || e[6] !== p || e[7] !== t || e[8] !== c || e[9] !== d || e[10] !== n ? (I = () => {
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 = () => {
1188
1270
  if (!m) {
1189
1271
  if (u) {
1190
1272
  d(t.id);
1191
1273
  return;
1192
1274
  }
1193
- p && c?.({
1275
+ h && c?.({
1194
1276
  sectionId: n,
1195
1277
  nodeId: t.id,
1196
1278
  node: t,
1197
1279
  intent: t.navigationIntent
1198
1280
  });
1199
1281
  }
1200
- }, e[4] = u, e[5] = m, e[6] = p, e[7] = t, e[8] = c, e[9] = d, e[10] = n, e[11] = I) : I = e[11];
1201
- const k = I;
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;
1202
1284
  let P;
1203
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];
1204
- const D = m ? "fg.muted" : "fg";
1286
+ const _ = m ? "fg.muted" : "fg";
1205
1287
  let T;
1206
- e[14] !== t.label || e[15] !== D ? (T = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: D, truncate: !0, children: t.label }), e[14] = t.label, e[15] = D, e[16] = T) : T = e[16];
1207
- let _;
1208
- e[17] !== f || e[18] !== u ? (_ = u ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(ye, { size: 14, style: {
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: {
1209
1291
  transform: f ? "rotate(90deg)" : "rotate(0deg)",
1210
1292
  transition: "120ms"
1211
- } }) }) : 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];
1212
1294
  let S;
1213
- 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: [
1214
1296
  T,
1215
- _
1216
- ] }), e[20] = T, e[21] = _, e[22] = S) : S = e[22];
1217
- let C;
1218
- e[23] !== t.description ? (C = t.description ? /* @__PURE__ */ i($, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[23] = t.description, e[24] = C) : C = e[24];
1219
- let w;
1220
- e[25] !== S || e[26] !== C ? (w = /* @__PURE__ */ b(G, { gap: "0", minW: "0", flex: "1", children: [
1221
- S,
1222
- C
1223
- ] }), 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];
1224
1299
  let v;
1225
- 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: [
1226
1308
  P,
1227
- w
1228
- ] }), e[28] = P, e[29] = w, e[30] = v) : v = e[30];
1229
- const E = v, L = h ? "bg.muted" : "transparent", z = h ? "bg.muted" : "bg.subtle";
1230
- let O;
1231
- e[31] !== z ? (O = {
1232
- bg: z
1233
- }, e[31] = z, e[32] = O) : O = e[32];
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];
1234
1316
  const W = m ? "default" : "pointer";
1235
1317
  let H;
1236
- 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 = {
1237
1319
  className: "group",
1238
1320
  role: "option",
1239
- "aria-selected": h,
1321
+ "aria-selected": p,
1240
1322
  justify: "space-between",
1241
1323
  align: "center",
1242
1324
  borderRadius: "xs",
1243
1325
  px: "1",
1244
1326
  py: "2xs",
1245
- pl: x,
1327
+ pl: b,
1246
1328
  bg: L,
1247
- _hover: O,
1329
+ _hover: G,
1248
1330
  cursor: W,
1249
1331
  overflow: "hidden"
1250
- }, e[33] = h, e[34] = x, e[35] = L, e[36] = O, e[37] = W, e[38] = H) : H = e[38];
1251
- const B = H, N = t.children ? "0" : "2xs";
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";
1252
1334
  let M;
1253
- e[39] !== a || e[40] !== y || e[41] !== k || e[42] !== t.actions || e[43] !== t.href || e[44] !== t.id || e[45] !== E || e[46] !== B || e[47] !== n ? (M = y && a && t.href ? /* @__PURE__ */ i(a, { to: t.href, children: /* @__PURE__ */ b(X, { ...B, onClick: k, children: [
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: [
1254
1336
  E,
1255
- /* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1256
- ] }) }) : /* @__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: [
1257
1339
  E,
1258
- /* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1259
- ] }), e[39] = a, e[40] = y, e[41] = k, e[42] = t.actions, e[43] = t.href, e[44] = t.id, e[45] = E, e[46] = B, e[47] = n, e[48] = M) : M = e[48];
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];
1260
1342
  let R;
1261
- e[49] !== a || e[50] !== s || e[51] !== f || e[52] !== o || e[53] !== r || e[54] !== t.children || e[55] !== c || e[56] !== d || e[57] !== n ? (R = f ? t.children?.map((Y) => /* @__PURE__ */ i(Tt, { sectionId: n, node: Y, level: r + 1, expandedNodes: o, activeNodeId: s, linkComponent: a, onNavigate: c, onToggleNode: d }, Y.id)) : null, e[49] = a, e[50] = s, e[51] = f, e[52] = o, e[53] = r, e[54] = t.children, e[55] = c, e[56] = d, e[57] = n, e[58] = R) : R = e[58];
1262
- let F;
1263
- return e[59] !== N || e[60] !== M || e[61] !== R ? (F = /* @__PURE__ */ b(G, { gap: N, children: [
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: [
1264
1346
  M,
1265
1347
  R
1266
- ] }), e[59] = N, e[60] = M, e[61] = R, e[62] = F) : F = e[62], F;
1267
- }, Zn = (l) => {
1268
- 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), {
1269
1351
  sections: n,
1270
1352
  expandedSections: t,
1271
- expandedNodes: r,
1272
- activeNodeId: o,
1353
+ expandedNodes: o,
1354
+ activeNodeId: r,
1273
1355
  linkComponent: s,
1274
1356
  onNavigate: a,
1275
1357
  onToggleSection: c,
1276
1358
  onToggleNode: d
1277
1359
  } = l;
1278
1360
  let u;
1279
- if (e[0] !== o || e[1] !== r || e[2] !== t || e[3] !== s || e[4] !== a || e[5] !== d || e[6] !== c || e[7] !== n) {
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) {
1280
1362
  let f;
1281
- e[9] !== o || e[10] !== r || e[11] !== t || e[12] !== s || e[13] !== a || e[14] !== d || e[15] !== c ? (f = (p) => {
1282
- const h = p.label ? Pt(p.id, t) : !0;
1283
- return /* @__PURE__ */ b(G, { gap: "0", "data-testid": `sidebar-section-${p.id}`, children: [
1284
- p.label ? /* @__PURE__ */ b(X, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
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: {
1285
1367
  bg: "bg.subtle"
1286
- }, onClick: () => c(p.id), children: [
1287
- /* @__PURE__ */ b(X, { gap: "1", flex: "1", minW: "0", children: [
1288
- /* @__PURE__ */ i($, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: p.label }),
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 }),
1289
1371
  /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(ye, { size: 14, style: {
1290
- transform: h ? "rotate(90deg)" : "rotate(0deg)",
1372
+ transform: p ? "rotate(90deg)" : "rotate(0deg)",
1291
1373
  transition: "120ms"
1292
1374
  } }) })
1293
1375
  ] }),
1294
- /* @__PURE__ */ i(Je, { sectionId: p.id, actions: p.actions ?? [] })
1376
+ /* @__PURE__ */ i(qe, { sectionId: h.id, actions: h.actions ?? [] })
1295
1377
  ] }) : null,
1296
- h ? p.nodes.length > 0 ? p.nodes.map((m) => /* @__PURE__ */ i(Tt, { sectionId: p.id, node: m, level: 0, expandedNodes: r, activeNodeId: o, linkComponent: s, onNavigate: a, onToggleNode: d }, m.id)) : p.emptyState ?? null : null
1297
- ] }, p.id);
1298
- }, e[9] = o, e[10] = r, e[11] = t, e[12] = s, e[13] = a, e[14] = d, e[15] = c, e[16] = f) : f = e[16], u = n.map(f), e[0] = o, e[1] = r, e[2] = t, e[3] = s, e[4] = a, e[5] = d, e[6] = c, e[7] = n, e[8] = u;
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;
1299
1381
  } else
1300
1382
  u = e[8];
1301
1383
  let g;
1302
- return e[17] !== u ? (g = /* @__PURE__ */ i(G, { role: "listbox", gap: "md", p: "md", children: u }), e[17] = u, e[18] = g) : g = e[18], g;
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;
1303
1385
  };
1304
- function el(l) {
1305
- return /* @__PURE__ */ i(Ee, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ b(le.Item, { value: l.id, onClick: () => l.onAction?.(), children: [
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: [
1306
1388
  l.icon ? /* @__PURE__ */ i(V, { mr: "2", children: l.icon }) : null,
1307
1389
  l.label
1308
1390
  ] }) }, l.id);
1309
1391
  }
1310
- function tl(l) {
1392
+ function ol(l) {
1311
1393
  return l.stopPropagation();
1312
1394
  }
1313
- const ot = {
1395
+ const rt = {
1314
1396
  open: !0,
1315
1397
  expandedSections: [],
1316
1398
  expandedNodes: []
1317
- }, nl = "pstdio/ui/sidebar-next", ll = (l) => `${nl}/${l}`, il = () => ({
1399
+ }, rl = "pstdio/ui/sidebar-next", sl = (l) => `${rl}/${l}`, al = () => ({
1318
1400
  getItem: () => null,
1319
1401
  setItem: () => {
1320
1402
  },
1321
1403
  removeItem: () => {
1322
1404
  }
1323
- }), st = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], at = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), rl = (l) => ({
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) => ({
1324
1406
  open: l.open,
1325
1407
  expandedSections: l.expandedSections,
1326
1408
  expandedNodes: l.expandedNodes
1327
- }), ol = (l) => {
1409
+ }), dl = (l) => {
1328
1410
  const {
1329
1411
  storageKey: e,
1330
1412
  initialState: n
1331
1413
  } = l, t = {
1332
- ...ot,
1414
+ ...rt,
1333
1415
  ...n
1334
1416
  };
1335
- return wt()(Ct((r) => ({
1417
+ return vt()(St((o) => ({
1336
1418
  ...t,
1337
- openSidebar: () => r((o) => ({
1338
- ...o,
1419
+ openSidebar: () => o((r) => ({
1420
+ ...r,
1339
1421
  open: !0
1340
1422
  })),
1341
- closeSidebar: () => r((o) => ({
1342
- ...o,
1423
+ closeSidebar: () => o((r) => ({
1424
+ ...r,
1343
1425
  open: !1
1344
1426
  })),
1345
- toggleSidebar: () => r((o) => ({
1346
- ...o,
1347
- open: !o.open
1427
+ toggleSidebar: () => o((r) => ({
1428
+ ...r,
1429
+ open: !r.open
1348
1430
  })),
1349
- toggleSection: (o) => r((s) => ({
1431
+ toggleSection: (r) => o((s) => ({
1350
1432
  ...s,
1351
- expandedSections: st(s.expandedSections, o)
1433
+ expandedSections: st(s.expandedSections, r)
1352
1434
  })),
1353
- toggleNode: (o) => r((s) => ({
1435
+ toggleNode: (r) => o((s) => ({
1354
1436
  ...s,
1355
- expandedNodes: st(s.expandedNodes, o)
1437
+ expandedNodes: st(s.expandedNodes, r)
1356
1438
  })),
1357
- setSectionExpanded: (o, s) => r((a) => ({
1439
+ setSectionExpanded: (r, s) => o((a) => ({
1358
1440
  ...a,
1359
- expandedSections: at(a.expandedSections, o, s)
1441
+ expandedSections: at(a.expandedSections, r, s)
1360
1442
  })),
1361
- setNodeExpanded: (o, s) => r((a) => ({
1443
+ setNodeExpanded: (r, s) => o((a) => ({
1362
1444
  ...a,
1363
- expandedNodes: at(a.expandedNodes, o, s)
1445
+ expandedNodes: at(a.expandedNodes, r, s)
1364
1446
  })),
1365
- reset: () => r(ot)
1447
+ reset: () => o(rt)
1366
1448
  }), {
1367
- name: ll(e),
1368
- storage: vt(() => typeof globalThis.localStorage > "u" ? il() : globalThis.localStorage),
1369
- partialize: rl
1449
+ name: sl(e),
1450
+ storage: yt(() => typeof globalThis.localStorage > "u" ? al() : globalThis.localStorage),
1451
+ partialize: cl
1370
1452
  }));
1371
- }, ct = /* @__PURE__ */ new Map(), sl = (l) => {
1453
+ }, ct = /* @__PURE__ */ new Map(), ul = (l) => {
1372
1454
  const e = ct.get(l);
1373
1455
  if (e)
1374
1456
  return e;
1375
- const n = ol({
1457
+ const n = dl({
1376
1458
  storageKey: l
1377
1459
  });
1378
1460
  return ct.set(l, n), n;
1379
- }, Re = (l, e) => {
1380
- const n = A(2);
1461
+ }, $e = (l, e) => {
1462
+ const n = z(2);
1381
1463
  let t;
1382
- return n[0] !== l ? (t = sl(l), n[0] = l, n[1] = t) : t = n[1], yt(t, e);
1383
- }, al = (l) => {
1384
- 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), {
1385
1467
  children: n
1386
1468
  } = l;
1387
1469
  if (!n)
1388
1470
  return null;
1389
1471
  let t;
1390
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;
1391
- }, cl = (l) => {
1392
- const e = A(7), {
1473
+ }, gl = (l) => {
1474
+ const e = z(7), {
1393
1475
  children: n,
1394
1476
  onClose: t
1395
1477
  } = l;
1396
- let r;
1397
- e[0] !== n ? (r = /* @__PURE__ */ i(X, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = r) : r = e[1];
1398
1478
  let o;
1399
- e[2] !== t ? (o = t ? /* @__PURE__ */ i(Se, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ i(an, { size: 16 }) }) : null, e[2] = t, e[3] = o) : o = e[3];
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];
1400
1482
  let s;
1401
- return e[4] !== r || e[5] !== o ? (s = /* @__PURE__ */ b(X, { justify: "space-between", align: "center", px: "4", py: "3", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1402
- r,
1403
- o
1404
- ] }), e[4] = r, e[5] = o, e[6] = s) : s = e[6], s;
1405
- }, Vi = (l) => {
1406
- 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), {
1407
1489
  storageKey: n,
1408
1490
  sections: t,
1409
- activeNodeId: r,
1410
- header: o,
1491
+ activeNodeId: o,
1492
+ header: r,
1411
1493
  footer: s,
1412
1494
  width: a,
1413
1495
  closable: c,
@@ -1415,116 +1497,116 @@ const ot = {
1415
1497
  linkComponent: u,
1416
1498
  onNavigate: g,
1417
1499
  onOpenChange: f
1418
- } = l, p = a === void 0 ? "240px" : a, h = c === void 0 ? !0 : c, m = d === void 0 ? "No items available." : d, x = Re(n, dl), y = Re(n, ul), I = Re(n, gl), k = Re(n, fl), P = Re(n, pl), D = Re(n, hl);
1419
- let T, _;
1420
- if (e[0] !== f || e[1] !== x ? (T = () => {
1421
- f?.(x);
1422
- }, _ = [f, x], e[0] = f, e[1] = x, e[2] = T, e[3] = _) : (T = e[2], _ = e[3]), He(T, _), !x && h)
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)
1423
1505
  return null;
1424
- const S = h ? k : void 0;
1425
- let C;
1426
- e[4] !== o || e[5] !== S ? (C = /* @__PURE__ */ i(cl, { onClose: S, children: o }), e[4] = o, e[5] = S, e[6] = C) : C = e[6];
1427
- let w;
1428
- e[7] !== r || e[8] !== m || e[9] !== I || e[10] !== y || e[11] !== u || e[12] !== g || e[13] !== t || e[14] !== D || e[15] !== P ? (w = /* @__PURE__ */ i(Ce, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ i(Zn, { sections: t, expandedSections: y, expandedNodes: I, activeNodeId: r, linkComponent: u, onNavigate: g, onToggleSection: P, onToggleNode: D }) }), e[7] = r, e[8] = m, e[9] = I, e[10] = y, e[11] = u, e[12] = g, e[13] = t, e[14] = D, e[15] = P, e[16] = w) : w = e[16];
1506
+ const S = p ? I : void 0;
1429
1507
  let v;
1430
- 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];
1431
1513
  let E;
1432
- return e[19] !== C || e[20] !== w || e[21] !== v || e[22] !== p ? (E = /* @__PURE__ */ b(we, { as: "aside", "data-testid": "sidebar", direction: "column", h: "100%", w: p, minW: p, maxW: p, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1433
- C,
1434
- w,
1435
- v
1436
- ] }), 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;
1437
1519
  };
1438
- function dl(l) {
1520
+ function hl(l) {
1439
1521
  return l.open;
1440
1522
  }
1441
- function ul(l) {
1523
+ function pl(l) {
1442
1524
  return l.expandedSections;
1443
1525
  }
1444
- function gl(l) {
1526
+ function ml(l) {
1445
1527
  return l.expandedNodes;
1446
1528
  }
1447
- function fl(l) {
1529
+ function bl(l) {
1448
1530
  return l.closeSidebar;
1449
1531
  }
1450
- function pl(l) {
1532
+ function xl(l) {
1451
1533
  return l.toggleSection;
1452
1534
  }
1453
- function hl(l) {
1535
+ function Sl(l) {
1454
1536
  return l.toggleNode;
1455
1537
  }
1456
- const ji = Fe.forwardRef(function(e, n) {
1457
- const t = A(32);
1458
- 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;
1459
1541
  t[0] !== e ? ({
1460
- inputProps: o,
1461
- children: r,
1542
+ inputProps: r,
1543
+ children: o,
1462
1544
  rootRef: a,
1463
1545
  trackLabel: u,
1464
1546
  thumbLabel: d,
1465
1547
  disabled: c,
1466
1548
  ...s
1467
- } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d, t[7] = u) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6], u = t[7]);
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]);
1468
1550
  const g = c === void 0 ? !1 : c, f = g ? "not-allowed" : "pointer";
1469
- let p;
1470
- t[8] !== o || t[9] !== n ? (p = /* @__PURE__ */ i(De.HiddenInput, { ref: n, ...o }), t[8] = o, t[9] = n, t[10] = p) : p = t[10];
1471
1551
  let h;
1472
- t[11] !== d ? (h = d && /* @__PURE__ */ i(De.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = h) : h = t[12];
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];
1473
1555
  let m;
1474
- t[13] !== h ? (m = /* @__PURE__ */ i(De.Thumb, { borderRadius: "full", children: h }), t[13] = h, t[14] = m) : m = t[14];
1475
- let x;
1476
- t[15] !== u ? (x = u && /* @__PURE__ */ i(De.Indicator, { fallback: u.off, children: u.on }), t[15] = u, t[16] = x) : x = t[16];
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];
1477
1559
  let y;
1478
- 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: [
1479
1561
  m,
1480
- x
1481
- ] }), 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];
1482
1566
  let I;
1483
- t[21] !== r || t[22] !== f ? (I = r != null && /* @__PURE__ */ i(De.Label, { cursor: f, children: r }), t[21] = r, t[22] = f, t[23] = I) : I = t[23];
1484
- let k;
1485
- return t[24] !== g || t[25] !== f || t[26] !== s || t[27] !== a || t[28] !== p || t[29] !== y || t[30] !== I ? (k = /* @__PURE__ */ b(De.Root, { ref: a, disabled: g, cursor: f, ...s, children: [
1486
- p,
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,
1487
1569
  y,
1488
- I
1489
- ] }), t[24] = g, t[25] = f, t[26] = s, t[27] = a, t[28] = p, t[29] = y, t[30] = I, t[31] = k) : k = t[31], k;
1490
- }), Me = (l) => {
1491
- 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);
1492
1574
  let n;
1493
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;
1494
- }, je = (l) => {
1495
- const e = A(19);
1576
+ }, Fe = (l) => {
1577
+ const e = z(19);
1496
1578
  let n;
1497
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];
1498
1580
  const t = n;
1499
- let r;
1500
- e[4] !== l.label ? (r = /* @__PURE__ */ i(Me, { children: l.label }), e[4] = l.label, e[5] = r) : r = e[5];
1501
1581
  let o;
1502
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i(oe, { as: et, color: "fg.muted" }), e[6] = o) : o = e[6];
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];
1503
1585
  let s;
1504
- e[7] !== t ? (s = /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ b(de, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
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: [
1505
1587
  t,
1506
- o
1588
+ r
1507
1589
  ] }) }), e[7] = t, e[8] = s) : s = e[8];
1508
1590
  let a;
1509
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];
1510
1592
  let c;
1511
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];
1512
1594
  let d;
1513
- 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: [
1514
1596
  s,
1515
1597
  c
1516
1598
  ] }), e[13] = s, e[14] = c, e[15] = d) : d = e[15];
1517
1599
  let u;
1518
- return e[16] !== r || e[17] !== d ? (u = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1519
- r,
1600
+ return e[16] !== o || e[17] !== d ? (u = /* @__PURE__ */ x(O, { gap: "2xs", children: [
1601
+ o,
1520
1602
  d
1521
- ] }), e[16] = r, e[17] = d, e[18] = u) : u = e[18], u;
1522
- }, ml = (l) => {
1523
- 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), {
1524
1606
  settings: n,
1525
1607
  groupingOptions: t,
1526
- orderingOptions: r,
1527
- displayPropertyOptions: o,
1608
+ orderingOptions: o,
1609
+ displayPropertyOptions: r,
1528
1610
  onViewModeChange: s,
1529
1611
  onColumnGroupingChange: a,
1530
1612
  onRowGroupingChange: c,
@@ -1539,193 +1621,193 @@ const ji = Fe.forwardRef(function(e, n) {
1539
1621
  mainAxis: 8
1540
1622
  }
1541
1623
  }, e[0] = f) : f = e[0];
1542
- let p;
1543
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ i(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ i(oe, { as: cn, boxSize: "14px" }) }) }), e[1] = p) : p = e[1];
1544
1624
  let h;
1545
- 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];
1546
1628
  let m;
1547
1629
  e[3] !== s ? (m = (R) => {
1548
1630
  R.value && s(R.value);
1549
1631
  }, e[3] = s, e[4] = m) : m = e[4];
1550
- let x;
1551
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ i(ve.Indicator, {}), e[5] = x) : x = e[5];
1632
+ let b;
1633
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ i(Ce.Indicator, {}), e[5] = b) : b = e[5];
1552
1634
  let y;
1553
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ b(ve.Item, { value: "list", children: [
1554
- /* @__PURE__ */ i(ve.ItemText, { children: /* @__PURE__ */ b(X, { as: "span", gap: "2xs", children: [
1555
- /* @__PURE__ */ i(dn, { size: 14 }),
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 }),
1556
1638
  /* @__PURE__ */ i("span", { children: "List" })
1557
1639
  ] }) }),
1558
- /* @__PURE__ */ i(ve.ItemHiddenInput, {})
1640
+ /* @__PURE__ */ i(Ce.ItemHiddenInput, {})
1559
1641
  ] }), e[6] = y) : y = e[6];
1560
- let I;
1561
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ b(ve.Item, { value: "board", children: [
1562
- /* @__PURE__ */ i(ve.ItemText, { children: /* @__PURE__ */ b(X, { as: "span", gap: "2xs", children: [
1563
- /* @__PURE__ */ i(un, { size: 14 }),
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 }),
1564
1646
  /* @__PURE__ */ i("span", { children: "Board" })
1565
1647
  ] }) }),
1566
- /* @__PURE__ */ i(ve.ItemHiddenInput, {})
1567
- ] }), e[7] = I) : I = e[7];
1568
- let k;
1569
- e[8] !== n.viewMode || e[9] !== m ? (k = /* @__PURE__ */ b(ve.Root, { size: "sm", value: n.viewMode, onValueChange: m, children: [
1570
- x,
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,
1571
1653
  y,
1572
- I
1573
- ] }), 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];
1574
1656
  let P;
1575
1657
  e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ i(Ye, {}), e[11] = P) : P = e[11];
1576
- let D;
1577
- 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) => {
1578
1660
  a(R), (R === "none" || R === n.rowGrouping) && c("none");
1579
- }, 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];
1580
1662
  let T;
1581
- e[16] !== t || e[17] !== n.columnGrouping || e[18] !== D ? (T = /* @__PURE__ */ i(je, { label: "Grouping", value: n.columnGrouping, options: t, onSelect: D }), e[16] = t, e[17] = n.columnGrouping, e[18] = D, e[19] = T) : T = e[19];
1582
- const _ = n.rowGrouping;
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;
1583
1665
  let S;
1584
1666
  if (e[20] !== t || e[21] !== n.columnGrouping) {
1585
1667
  let R;
1586
- e[23] !== n.columnGrouping ? (R = (F) => F.value === "none" || F.value !== n.columnGrouping, e[23] = n.columnGrouping, e[24] = R) : R = e[24], S = t.filter(R), e[20] = t, e[21] = n.columnGrouping, e[22] = S;
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;
1587
1669
  } else
1588
1670
  S = e[22];
1589
- let C;
1590
- e[25] !== c || e[26] !== n.rowGrouping || e[27] !== S ? (C = /* @__PURE__ */ i(je, { label: "Sub-grouping", value: _, options: S, onSelect: c }), e[25] = c, e[26] = n.rowGrouping, e[27] = S, e[28] = C) : C = e[28];
1591
- let w;
1592
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ i(Me, { children: "Ordering" }), e[29] = w) : w = e[29];
1593
1671
  let v;
1594
- e[30] !== d || e[31] !== r || e[32] !== n.ordering.field ? (v = /* @__PURE__ */ i(je, { label: "Sort by", value: n.ordering.field, options: r, onSelect: d }), e[30] = d, e[31] = r, e[32] = n.ordering.field, e[33] = v) : v = e[33];
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];
1595
1677
  const E = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
1596
1678
  let L;
1597
- e[34] !== E ? (L = /* @__PURE__ */ i(oe, { as: gn, transform: E }), e[34] = E, e[35] = L) : L = e[35];
1598
- let z;
1599
- e[36] !== u || e[37] !== n.ordering.direction || e[38] !== L ? (z = /* @__PURE__ */ i(Se, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: u, "data-direction": n.ordering.direction, children: L }), e[36] = u, e[37] = n.ordering.direction, e[38] = L, e[39] = z) : z = e[39];
1600
- let O;
1601
- e[40] !== v || e[41] !== z ? (O = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1602
- w,
1603
- /* @__PURE__ */ b(X, { gap: "2xs", children: [
1604
- v,
1605
- z
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
1606
1688
  ] })
1607
- ] }), 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];
1608
1690
  let W;
1609
1691
  e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(Ye, {}), e[43] = W) : W = e[43];
1610
1692
  let H;
1611
- e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ i(Me, { children: "Display properties" }), e[44] = H) : H = e[44];
1612
- let B;
1613
- 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) {
1614
1696
  let R;
1615
- e[49] !== g || e[50] !== n.displayProperties ? (R = (F) => {
1616
- const Y = n.displayProperties.includes(F.value);
1617
- return /* @__PURE__ */ i(de, { size: "2xs", variant: Y ? "solid" : "outline", onClick: () => g(F.value), children: F.label }, F.value);
1618
- }, e[49] = g, e[50] = n.displayProperties, e[51] = R) : R = e[51], B = o.map(R), e[45] = o, e[46] = g, e[47] = n.displayProperties, e[48] = B;
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;
1619
1701
  } else
1620
- B = e[48];
1702
+ F = e[48];
1621
1703
  let N;
1622
- e[52] !== B ? (N = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1704
+ e[52] !== F ? (N = /* @__PURE__ */ x(O, { gap: "2xs", children: [
1623
1705
  H,
1624
- /* @__PURE__ */ i(X, { flexWrap: "wrap", gap: "2xs", children: B })
1625
- ] }), 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];
1626
1708
  let M;
1627
- return e[54] !== T || e[55] !== C || e[56] !== O || e[57] !== N || e[58] !== k ? (M = /* @__PURE__ */ b(Ie.Root, { positioning: f, children: [
1628
- p,
1629
- /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ie.Positioner, { children: /* @__PURE__ */ i(Ie.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ b(G, { gap: "sm", children: [
1630
- h,
1631
- 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,
1632
1714
  P,
1633
1715
  T,
1634
- C,
1635
- O,
1716
+ v,
1717
+ G,
1636
1718
  W,
1637
1719
  N
1638
1720
  ] }) }) }) })
1639
- ] }), e[54] = T, e[55] = C, e[56] = O, e[57] = N, e[58] = k, e[59] = M) : M = e[59], M;
1640
- }, bl = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), xl = (l) => {
1641
- 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), {
1642
1724
  categories: n,
1643
1725
  filters: t,
1644
- countsByCategory: r,
1645
- onToggleFilterValue: o,
1726
+ countsByCategory: o,
1727
+ onToggleFilterValue: r,
1646
1728
  onClearFilter: s,
1647
1729
  onClearAll: a
1648
1730
  } = l, [c, d] = me(n[0]?.id ?? "status");
1649
1731
  let u;
1650
- e[0] !== c || e[1] !== n ? (u = n.find((v) => v.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = u) : u = e[2];
1651
- const g = u, f = bl(t);
1652
- let p;
1653
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
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 = {
1654
1736
  placement: "bottom-end",
1655
1737
  offset: {
1656
1738
  mainAxis: 8
1657
1739
  }
1658
- }, e[3] = p) : p = e[3];
1659
- const h = f > 0 ? "outline" : "ghost";
1740
+ }, e[3] = h) : h = e[3];
1741
+ const p = f > 0 ? "outline" : "ghost";
1660
1742
  let m;
1661
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(oe, { as: fn, boxSize: "14px" }), e[4] = m) : m = e[4];
1662
- let x;
1663
- e[5] !== f ? (x = f > 0 ? /* @__PURE__ */ i(Te, { variant: "solid", children: f }) : null, e[5] = f, e[6] = x) : x = e[6];
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];
1664
1746
  let y;
1665
- e[7] !== x ? (y = /* @__PURE__ */ b(X, { gap: "2xs", children: [
1747
+ e[7] !== b ? (y = /* @__PURE__ */ x(X, { gap: "2xs", children: [
1666
1748
  m,
1667
- x
1668
- ] }), 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];
1669
1753
  let I;
1670
- e[9] !== h || e[10] !== y ? (I = /* @__PURE__ */ i(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Filter tickets", variant: h, size: "sm", children: y }) }), e[9] = h, e[10] = y, e[11] = I) : I = e[11];
1671
- let k;
1672
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i($, { textStyle: "label/XS/medium", color: "fg.muted", children: "Filters" }), e[12] = k) : k = e[12];
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];
1673
1755
  let P;
1674
- e[13] !== a ? (P = /* @__PURE__ */ b(X, { justifyContent: "space-between", children: [
1675
- k,
1756
+ e[13] !== a ? (P = /* @__PURE__ */ x(X, { justifyContent: "space-between", children: [
1757
+ I,
1676
1758
  /* @__PURE__ */ i(de, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
1677
1759
  ] }), e[13] = a, e[14] = P) : P = e[14];
1678
- let D;
1760
+ let _;
1679
1761
  if (e[15] !== c || e[16] !== n || e[17] !== t) {
1680
- let v;
1681
- e[19] !== c || e[20] !== t ? (v = (E) => {
1762
+ let C;
1763
+ e[19] !== c || e[20] !== t ? (C = (E) => {
1682
1764
  const L = t[E.id] ?? [];
1683
- return /* @__PURE__ */ b(de, { variant: c === E.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(E.id), children: [
1765
+ return /* @__PURE__ */ x(de, { variant: c === E.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(E.id), children: [
1684
1766
  /* @__PURE__ */ i($, { children: E.label }),
1685
- 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
1686
1768
  ] }, E.id);
1687
- }, e[19] = c, e[20] = t, e[21] = v) : v = e[21], D = n.map(v), e[15] = c, e[16] = n, e[17] = t, e[18] = D;
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] = _;
1688
1770
  } else
1689
- D = e[18];
1771
+ _ = e[18];
1690
1772
  let T;
1691
- e[22] !== P || e[23] !== D ? (T = /* @__PURE__ */ b(G, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1773
+ e[22] !== P || e[23] !== _ ? (T = /* @__PURE__ */ x(O, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1692
1774
  P,
1693
- D
1694
- ] }), e[22] = P, e[23] = D, e[24] = T) : T = e[24];
1695
- let _;
1696
- e[25] !== g || e[26] !== r || e[27] !== t || e[28] !== s || e[29] !== o ? (_ = g ? /* @__PURE__ */ b(Ze, { children: [
1697
- /* @__PURE__ */ b(X, { justifyContent: "space-between", children: [
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: [
1698
1780
  /* @__PURE__ */ i($, { textStyle: "label/S/medium", children: g.label }),
1699
1781
  /* @__PURE__ */ i(de, { size: "2xs", variant: "ghost", onClick: () => s(g.id), children: "Clear" })
1700
1782
  ] }),
1701
- /* @__PURE__ */ i(G, { gap: "2xs", children: g.options.map((v) => {
1702
- const E = (t[g.id] ?? []).includes(v.value), L = r[g.id]?.[v.value] ?? 0;
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;
1703
1785
  return /* @__PURE__ */ i(V, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
1704
1786
  bg: "bg.subtle"
1705
- }, children: /* @__PURE__ */ i(vn, { checked: E, onCheckedChange: () => o(g.id, v.value), children: /* @__PURE__ */ b(X, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
1706
- /* @__PURE__ */ i($, { textStyle: "label/S/regular", children: v.label }),
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 }),
1707
1789
  /* @__PURE__ */ i($, { textStyle: "label/XS/regular", color: "fg.muted", children: L })
1708
- ] }) }) }, v.value);
1790
+ ] }) }) }, C.value);
1709
1791
  }) })
1710
- ] }) : 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];
1711
1793
  let S;
1712
- e[31] !== _ ? (S = /* @__PURE__ */ i(G, { flex: "1", p: "sm", gap: "sm", children: _ }), e[31] = _, e[32] = S) : S = e[32];
1713
- let C;
1714
- e[33] !== T || e[34] !== S ? (C = /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ie.Positioner, { children: /* @__PURE__ */ i(Ie.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ b(X, { align: "stretch", gap: "0", minH: "320px", children: [
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: [
1715
1797
  T,
1716
1798
  S
1717
- ] }) }) }) }), e[33] = T, e[34] = S, e[35] = C) : C = e[35];
1718
- let w;
1719
- return e[36] !== C || e[37] !== I ? (w = /* @__PURE__ */ b(Ie.Root, { positioning: p, children: [
1720
- I,
1721
- C
1722
- ] }), e[36] = C, e[37] = I, e[38] = w) : w = e[38], w;
1723
- }, Dt = (l) => {
1724
- 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), {
1725
1807
  ticketId: n,
1726
1808
  parentPath: t,
1727
- sessionIndicatorLabel: r,
1728
- sessionIndicatorStatus: o,
1809
+ sessionIndicatorLabel: o,
1810
+ sessionIndicatorStatus: r,
1729
1811
  title: s,
1730
1812
  badges: a,
1731
1813
  diffAdditions: c,
@@ -1733,103 +1815,103 @@ const ji = Fe.forwardRef(function(e, n) {
1733
1815
  isSelected: u,
1734
1816
  draggable: g,
1735
1817
  onDragStart: f,
1736
- onDragEnd: p,
1737
- onClick: h,
1818
+ onDragEnd: h,
1819
+ onClick: p,
1738
1820
  onDiffBadgeClick: m,
1739
- onSessionIndicatorClick: x
1821
+ onSessionIndicatorClick: b
1740
1822
  } = l;
1741
1823
  let y;
1742
1824
  e[0] !== t ? (y = t === void 0 ? [] : t, e[0] = t, e[1] = y) : y = e[1];
1743
- const I = y;
1744
- let k;
1745
- e[2] !== a ? (k = a === void 0 ? [] : a, e[2] = a, e[3] = k) : k = e[3];
1746
- const P = k, D = u === void 0 ? !1 : u;
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;
1747
1829
  let T;
1748
- e[4] !== m ? (T = (F) => {
1749
- F.stopPropagation(), m?.();
1830
+ e[4] !== m ? (T = (B) => {
1831
+ B.stopPropagation(), m?.();
1750
1832
  }, e[4] = m, e[5] = T) : T = e[5];
1751
- const _ = T;
1833
+ const D = T;
1752
1834
  let S;
1753
- e[6] !== x ? (S = (F) => {
1754
- F.stopPropagation(), x?.();
1755
- }, e[6] = x, e[7] = S) : S = e[7];
1756
- const C = S;
1757
- let w;
1758
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
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 = {
1759
1841
  borderColor: "border.blue",
1760
1842
  boxShadow: "mid"
1761
- }, e[8] = w) : w = e[8];
1762
- 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;
1763
1845
  let L;
1764
- e[9] !== I ? (L = I.length > 0 && /* @__PURE__ */ b($, { as: "span", color: "subtle", children: [
1765
- I.join(" / "),
1846
+ e[9] !== w ? (L = w.length > 0 && /* @__PURE__ */ x($, { as: "span", color: "subtle", children: [
1847
+ w.join(" / "),
1766
1848
  " /",
1767
1849
  " "
1768
- ] }), e[9] = I, e[10] = L) : L = e[10];
1769
- let z;
1770
- e[11] !== L || e[12] !== n ? (z = /* @__PURE__ */ b($, { textStyle: "label/S/regular", flexShrink: 0, children: [
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: [
1771
1853
  L,
1772
1854
  n
1773
- ] }), e[11] = L, e[12] = n, e[13] = z) : z = e[13];
1774
- let O;
1775
- e[14] !== C || e[15] !== x || e[16] !== r || e[17] !== o ? (O = r ? /* @__PURE__ */ i(Ee, { content: `Session ${r}`, children: /* @__PURE__ */ i(Jn, { status: o, boxSize: "12px", "aria-label": `Session ${r}`, cursor: x ? "pointer" : "default", onClick: x ? C : void 0 }) }) : null, e[14] = C, e[15] = x, e[16] = r, e[17] = o, e[18] = O) : O = e[18];
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];
1776
1858
  let W;
1777
- e[19] !== z || e[20] !== O ? (W = /* @__PURE__ */ b(X, { gap: "2xs", flexShrink: 0, children: [
1778
- z,
1779
- O
1780
- ] }), e[19] = z, e[20] = O, e[21] = W) : W = e[21];
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];
1781
1863
  let H;
1782
- e[22] !== c || e[23] !== d || e[24] !== _ ? (H = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(St, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(pn, { size: "12" }), onClick: _, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = _, e[25] = H) : H = e[25];
1783
- let B;
1784
- 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: [
1785
1867
  W,
1786
1868
  H
1787
- ] }), 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];
1788
1870
  let N;
1789
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];
1790
1872
  let M;
1791
- e[31] !== P ? (M = P.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", children: P.map(Sl) }), e[31] = P, e[32] = M) : M = e[32];
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];
1792
1874
  let R;
1793
- return e[33] !== g || e[34] !== h || e[35] !== p || e[36] !== f || e[37] !== B || e[38] !== N || e[39] !== M || e[40] !== v || e[41] !== E ? (R = /* @__PURE__ */ b(G, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "100%", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: w, cursor: v, draggable: g, onDragStart: f, onDragEnd: p, onClick: h, "data-selected": E, children: [
1794
- 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,
1795
1877
  N,
1796
1878
  M
1797
- ] }), e[33] = g, e[34] = h, e[35] = p, e[36] = f, e[37] = B, e[38] = N, e[39] = M, e[40] = v, e[41] = E, e[42] = R) : R = e[42], R;
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;
1798
1880
  };
1799
- function Sl(l) {
1800
- 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);
1801
1883
  }
1802
- const yl = (l) => {
1803
- const e = A(27), {
1884
+ const kl = (l) => {
1885
+ const e = z(27), {
1804
1886
  columns: n,
1805
1887
  selectedItemId: t,
1806
- onMoveItem: r,
1807
- onMoveToGroup: o,
1888
+ onMoveItem: o,
1889
+ onMoveToGroup: r,
1808
1890
  onCreateStart: s,
1809
1891
  onColumnAction: a
1810
- } = l, c = t === void 0 ? null : t, [d, u] = me(null), [g, f] = me(null), p = wl;
1811
- let h;
1812
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
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 = () => {
1813
1895
  u(null), f(null);
1814
- }, e[0] = h) : h = e[0];
1815
- const m = h;
1816
- let x;
1817
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (C) => (w) => {
1818
- w.preventDefault(), w.dataTransfer.dropEffect = "move", u(C);
1819
- }, e[1] = x) : x = e[1];
1820
- const y = x;
1821
- let I;
1822
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (C) => {
1823
- C.currentTarget.contains(C.relatedTarget) || u(null);
1824
- }, e[2] = I) : I = e[2];
1825
- const k = I;
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;
1826
1908
  let P;
1827
- e[3] !== r ? (P = (C) => (w) => {
1828
- w.preventDefault(), u(null);
1829
- const v = w.dataTransfer.getData("text/plain");
1830
- v && r?.(v, C);
1831
- }, e[3] = r, e[4] = P) : P = e[4];
1832
- const D = P;
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;
1833
1915
  let T;
1834
1916
  e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
1835
1917
  display: "flex",
@@ -1838,134 +1920,134 @@ const yl = (l) => {
1838
1920
  pb: "2xs",
1839
1921
  minH: "100%"
1840
1922
  }, e[5] = T) : T = e[5];
1841
- let _;
1842
- if (e[6] !== d || e[7] !== g || e[8] !== n || e[9] !== D || e[10] !== a || e[11] !== s || e[12] !== r || e[13] !== o || e[14] !== c) {
1843
- let C;
1844
- e[16] !== d || e[17] !== g || e[18] !== D || e[19] !== a || e[20] !== s || e[21] !== r || e[22] !== o || e[23] !== c ? (C = (w) => /* @__PURE__ */ b(G, { "data-testid": `board-column-${w.id}`, gap: "xs", _notFirst: {
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: {
1845
1927
  borderLeft: "1px solid",
1846
1928
  borderColor: "border.muted"
1847
- }, background: d === w.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: w.canDragIn ? y(w.id) : void 0, onDragLeave: w.canDragIn ? k : void 0, onDrop: w.canDragIn ? D(w.id) : void 0, children: [
1848
- /* @__PURE__ */ i(vl, { column: w, onCreateStart: s, onColumnAction: a }),
1849
- /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", verticalScrollbarProps: {
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: {
1850
1932
  margin: "0"
1851
1933
  }, contentProps: {
1852
1934
  spaceY: "sm",
1853
1935
  ps: "xs",
1854
1936
  pe: "xs"
1855
- }, children: w.groups && w.groups.length > 0 ? w.groups.map((v) => {
1856
- const E = `${w.id}::${v.key}`;
1857
- return /* @__PURE__ */ i(Cl, { group: v, selectedItemId: c, canDragIn: w.canDragIn, canDragOut: w.canDragOut, isDropTarget: g === E, onDragStart: p, onDragEnd: m, onGroupDragOver: (L) => {
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) => {
1858
1940
  L.preventDefault(), L.stopPropagation(), L.dataTransfer.dropEffect = "move", f(E), u(null);
1859
1941
  }, onGroupDragLeave: (L) => {
1860
1942
  L.currentTarget.contains(L.relatedTarget) || f(null);
1861
1943
  }, onGroupDrop: (L) => {
1862
1944
  L.preventDefault(), L.stopPropagation(), f(null), u(null);
1863
- const z = L.dataTransfer.getData("text/plain");
1864
- z && (r?.(z, w.id), o?.(z, v.key));
1865
- } }, v.key);
1866
- }) : w.items.map((v) => /* @__PURE__ */ i(Dt, { ...v.cardProps, isSelected: v.id === c, draggable: w.canDragOut, onDragStart: w.canDragOut ? p(v.id) : void 0, onDragEnd: w.canDragOut ? m : void 0 }, v.id)) })
1867
- ] }, w.id), e[16] = d, e[17] = g, e[18] = D, e[19] = a, e[20] = s, e[21] = r, e[22] = o, e[23] = c, e[24] = C) : C = e[24], _ = n.map(C), e[6] = d, e[7] = g, e[8] = n, e[9] = D, e[10] = a, e[11] = s, e[12] = r, e[13] = o, e[14] = c, e[15] = _;
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;
1868
1950
  } else
1869
- _ = e[15];
1951
+ D = e[15];
1870
1952
  let S;
1871
- return e[25] !== _ ? (S = /* @__PURE__ */ i(Ce, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: _ }), e[25] = _, e[26] = S) : S = e[26], S;
1872
- }, Cl = (l) => {
1873
- 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), {
1874
1956
  group: n,
1875
1957
  selectedItemId: t,
1876
- canDragIn: r,
1877
- canDragOut: o,
1958
+ canDragIn: o,
1959
+ canDragOut: r,
1878
1960
  isDropTarget: s,
1879
1961
  onDragStart: a,
1880
1962
  onDragEnd: c,
1881
1963
  onGroupDragOver: d,
1882
1964
  onGroupDragLeave: u,
1883
1965
  onGroupDrop: g
1884
- } = l, [f, p] = me(!0), h = s ? "bg.subtle" : "transparent", m = r ? d : void 0, x = r ? u : void 0, y = r ? g : void 0;
1885
- let I;
1886
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
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 = {
1887
1969
  bg: "bg.muted"
1888
- }, e[0] = I) : I = e[0];
1889
- let k;
1890
- 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];
1891
1973
  const P = f ? "rotate(90deg)" : "rotate(0deg)";
1892
- let D;
1893
- e[2] !== P ? (D = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ i(oe, { as: ye, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = D) : D = e[3];
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];
1894
1976
  let T;
1895
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];
1896
- let _;
1897
- e[6] !== n.items.length ? (_ = /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = _) : _ = e[7];
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];
1898
1980
  let S;
1899
- e[8] !== D || e[9] !== T || e[10] !== _ ? (S = /* @__PURE__ */ b(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: I, borderRadius: "sm", onClick: k, children: [
1900
- 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
+ _,
1901
1983
  T,
1902
- _
1903
- ] }), e[8] = D, e[9] = T, e[10] = _, e[11] = S) : S = e[11];
1904
- let C;
1905
- e[12] !== o || e[13] !== f || e[14] !== n.items || e[15] !== c || e[16] !== a || e[17] !== t ? (C = f && /* @__PURE__ */ i(G, { gap: "sm", pt: "xs", children: n.items.map((v) => /* @__PURE__ */ i(Dt, { ...v.cardProps, isSelected: v.id === t, draggable: o, onDragStart: o ? a(v.id) : void 0, onDragEnd: o ? c : void 0 }, v.id)) }), e[12] = o, e[13] = f, e[14] = n.items, e[15] = c, e[16] = a, e[17] = t, e[18] = C) : C = e[18];
1906
- let w;
1907
- return e[19] !== h || e[20] !== m || e[21] !== S || e[22] !== C || e[23] !== x || e[24] !== y ? (w = /* @__PURE__ */ b(G, { gap: "0", borderRadius: "sm", background: h, transition: "background 150ms ease", onDragOver: m, onDragLeave: x, onDrop: y, children: [
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: [
1908
1990
  S,
1909
- C
1910
- ] }), e[19] = h, e[20] = m, e[21] = S, e[22] = C, e[23] = x, e[24] = y, e[25] = w) : w = e[25], w;
1911
- }, vl = (l) => {
1912
- 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), {
1913
1995
  column: n,
1914
1996
  onCreateStart: t,
1915
- onColumnAction: r
1997
+ onColumnAction: o
1916
1998
  } = l;
1917
- let o;
1918
- e[0] !== n.label ? (o = /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = o) : o = e[1];
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];
1919
2001
  const s = n.color ?? "gray";
1920
2002
  let a;
1921
- e[2] !== n.items.length || e[3] !== s ? (a = /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: s, children: n.items.length }), e[2] = n.items.length, e[3] = s, e[4] = a) : a = e[4];
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];
1922
2004
  let c;
1923
- 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];
1924
2006
  let d;
1925
- e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ i(Ee, { content: "Create new ticket", children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(oe, { as: hn, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
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];
1926
2008
  let u;
1927
- e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== r ? (u = n.actions.length > 0 && /* @__PURE__ */ b(le.Root, { children: [
1928
- /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ i(oe, { as: mn, boxSize: "12px" }) }) }),
1929
- /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "180px", bg: "bg", children: n.actions.map((f) => /* @__PURE__ */ i(We, { primaryLabel: f.label, leftIcon: f.icon, onClick: () => r?.(n.id, f.id) }, f.id)) }) })
1930
- ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = r, e[14] = u) : u = e[14];
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];
1931
2013
  let g;
1932
- return e[15] !== o || e[16] !== a || e[17] !== d || e[18] !== u ? (g = /* @__PURE__ */ b(X, { padding: "xs", gap: "xs", alignItems: "center", children: [
1933
- o,
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,
1934
2016
  a,
1935
2017
  c,
1936
2018
  d,
1937
2019
  u
1938
- ] }), 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;
1939
2021
  };
1940
- function wl(l) {
2022
+ function Tl(l) {
1941
2023
  return (e) => {
1942
2024
  e.dataTransfer.setData("text/plain", l), e.dataTransfer.effectAllowed = "move";
1943
2025
  };
1944
2026
  }
1945
- function Il(l) {
2027
+ function Dl(l) {
1946
2028
  return !l;
1947
2029
  }
1948
- const kl = [{
2030
+ const _l = [{
1949
2031
  id: "ticket",
1950
2032
  header: "",
1951
2033
  cell: ({
1952
2034
  row: l
1953
- }) => /* @__PURE__ */ i(Tl, { row: l })
1954
- }], Pl = (l) => {
2035
+ }) => /* @__PURE__ */ i(Ll, { row: l })
2036
+ }], $l = (l) => {
1955
2037
  const {
1956
2038
  items: e,
1957
2039
  selectedItemId: n = null,
1958
2040
  onItemClick: t
1959
- } = l, [r, o] = me(!0), s = bn({
2041
+ } = l, [o, r] = me(!0), s = xn({
1960
2042
  data: e,
1961
- columns: kl,
2043
+ columns: _l,
1962
2044
  state: {
1963
- expanded: r
2045
+ expanded: o
1964
2046
  },
1965
- onExpandedChange: o,
2047
+ onExpandedChange: r,
1966
2048
  getSubRows: (a) => a.children,
1967
- getCoreRowModel: Sn(),
1968
- getExpandedRowModel: xn(),
2049
+ getCoreRowModel: yn(),
2050
+ getExpandedRowModel: Sn(),
1969
2051
  getRowId: (a) => a.id
1970
2052
  });
1971
2053
  return /* @__PURE__ */ i(V, { children: s.getRowModel().rows.map((a) => {
@@ -1974,28 +2056,28 @@ const kl = [{
1974
2056
  background: "bg.muted"
1975
2057
  }, onClick: () => {
1976
2058
  u ? a.toggleExpanded() : (c.onClick?.(), t?.(c));
1977
- }, "data-selected": d ? "true" : void 0, children: yn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
2059
+ }, "data-selected": d ? "true" : void 0, children: vn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
1978
2060
  }) });
1979
- }, Tl = (l) => {
1980
- const e = A(25), {
2061
+ }, Ll = (l) => {
2062
+ const e = z(25), {
1981
2063
  row: n
1982
- } = 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;
1983
2065
  let s;
1984
- e[0] !== r || e[1] !== n ? (s = n.getCanExpand() ? /* @__PURE__ */ i(Dl, { row: n }) : r > 0 ? /* @__PURE__ */ i(_l, {}) : null, e[0] = r, e[1] = n, e[2] = s) : s = e[2];
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];
1985
2067
  let a;
1986
- e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(oe, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[3] = t.statusColor, e[4] = t.statusIcon, e[5] = a) : a = e[5];
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];
1987
2069
  let c;
1988
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];
1989
2071
  let d;
1990
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];
1991
2073
  let u;
1992
- e[10] !== t.badges ? (u = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", flexShrink: 0, children: t.badges.map($l) }), e[10] = t.badges, e[11] = u) : u = e[11];
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];
1993
2075
  let g;
1994
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];
1995
2077
  let f;
1996
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];
1997
- let p;
1998
- return e[16] !== o || e[17] !== s || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== u || e[22] !== g || e[23] !== f ? (p = /* @__PURE__ */ b(X, { gap: "sm", flex: "1", paddingLeft: o, children: [
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: [
1999
2081
  s,
2000
2082
  a,
2001
2083
  c,
@@ -2003,11 +2085,11 @@ const kl = [{
2003
2085
  u,
2004
2086
  g,
2005
2087
  f
2006
- ] }), e[16] = o, e[17] = s, e[18] = a, e[19] = c, e[20] = d, e[21] = u, e[22] = g, e[23] = f, e[24] = p) : p = e[24], p;
2007
- }, Dl = (l) => {
2008
- 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), {
2009
2091
  row: n
2010
- } = 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)";
2011
2093
  let a;
2012
2094
  e[0] !== s ? (a = /* @__PURE__ */ i(ye, { size: 14, style: {
2013
2095
  color: "var(--chakra-colors-fg-muted)",
@@ -2015,67 +2097,45 @@ const kl = [{
2015
2097
  transition: "transform 0.15s ease"
2016
2098
  } }), e[0] = s, e[1] = a) : a = e[1];
2017
2099
  let c;
2018
- return e[2] !== r || e[3] !== o || e[4] !== a ? (c = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", "data-expanded": r, "aria-label": o, children: a }), e[2] = r, e[3] = o, e[4] = a, e[5] = c) : c = e[5], c;
2019
- }, _l = () => {
2020
- 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);
2021
2103
  let e;
2022
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(V, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2104
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x(V, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2023
2105
  /* @__PURE__ */ i(V, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
2024
2106
  /* @__PURE__ */ i(V, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
2025
2107
  ] }), l[0] = e) : e = l[0], e;
2026
2108
  };
2027
- function $l(l) {
2028
- 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);
2029
2111
  }
2030
- const ke = {
2112
+ const Me = {
2031
2113
  status: "No status",
2032
- complexity: "Unspecified",
2033
- assignee: "Unassigned",
2034
- priority: "Unspecified"
2035
- }, dt = {
2036
- high: 3,
2037
- medium: 2,
2038
- low: 1
2039
- }, ut = {
2040
- p0: 5,
2041
- p1: 4,
2042
- p2: 3,
2043
- p3: 2,
2044
- p4: 1
2045
- }, Pe = (l, e) => !l || l.trim() === "" ? e : l, gt = (l, e) => e === "none" ? "All" : e === "status" ? Pe(l.status, ke.status) : e === "complexity" ? Pe(l.complexity, ke.complexity) : e === "assignee" ? Pe(l.assignee, ke.assignee) : Pe(l.priority, ke.priority), ft = (l, e) => l.localeCompare(e, void 0, {
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, {
2046
2116
  numeric: !0
2047
- }), 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) => {
2048
2118
  if (e.field === "updated") {
2049
- const r = new Date(n.updatedAt ?? 0).getTime(), o = new Date(t.updatedAt ?? 0).getTime();
2050
- return Ae(r - o, e.direction);
2051
- }
2052
- if (e.field === "title")
2053
- return Ae(n.title.localeCompare(t.title), e.direction);
2054
- if (e.field === "complexity") {
2055
- const r = dt[(n.complexity ?? "").toLowerCase()] ?? 0, o = dt[(t.complexity ?? "").toLowerCase()] ?? 0;
2056
- return Ae(r - o, e.direction);
2057
- }
2058
- if (e.field === "priority") {
2059
- const r = ut[(n.priority ?? "").toLowerCase()] ?? 0, o = ut[(t.priority ?? "").toLowerCase()] ?? 0;
2060
- return Ae(r - o, e.direction);
2119
+ const o = new Date(n.updatedAt ?? 0).getTime(), r = new Date(t.updatedAt ?? 0).getTime();
2120
+ return Ve(o - r, e.direction);
2061
2121
  }
2062
- 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, {
2063
2123
  numeric: !0
2064
2124
  }), e.direction);
2065
- }), Ll = (l, e) => {
2125
+ }), Al = (l, e) => {
2066
2126
  const {
2067
2127
  columnGrouping: n,
2068
2128
  rowGrouping: t,
2069
- knownColumnKeys: r
2070
- } = e, o = /* @__PURE__ */ new Map();
2071
- if (r)
2072
- for (const a of r)
2073
- 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, []);
2074
2134
  for (const a of l) {
2075
- const c = gt(a, n);
2076
- o.set(c, [...o.get(c) ?? [], a]);
2135
+ const c = dt(a, n);
2136
+ r.set(c, [...r.get(c) ?? [], a]);
2077
2137
  }
2078
- 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]) => {
2079
2139
  if (t === "none")
2080
2140
  return {
2081
2141
  key: a,
@@ -2085,10 +2145,10 @@ const ke = {
2085
2145
  };
2086
2146
  const d = /* @__PURE__ */ new Map();
2087
2147
  for (const g of c) {
2088
- const f = gt(g, t);
2148
+ const f = dt(g, t);
2089
2149
  d.set(f, [...d.get(f) ?? [], g]);
2090
2150
  }
2091
- 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]) => ({
2092
2152
  key: g,
2093
2153
  label: g,
2094
2154
  tickets: f
@@ -2100,16 +2160,16 @@ const ke = {
2100
2160
  rows: u
2101
2161
  };
2102
2162
  });
2103
- }, _t = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Pe(l.status, ke.status)] : e === "assignee" ? [Pe(l.assignee, ke.assignee)] : e === "priority" ? [Pe(l.priority, ke.priority)] : [Pe(l.complexity, ke.complexity)], Rl = (l, e) => {
2163
+ }, Dt = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Ne(l.status, Me.status)] : [Ne(l.assignee, Me.assignee)], Gl = (l, e) => {
2104
2164
  const n = Object.entries(e).filter(([, t]) => t && t.length > 0);
2105
- return n.length === 0 ? l : l.filter((t) => n.every(([r, o]) => _t(t, r).some((a) => o?.includes(a))));
2106
- }, El = (l, e) => {
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) => {
2107
2167
  const n = {};
2108
2168
  for (const t of l)
2109
- for (const r of _t(t, e))
2110
- n[r] = (n[r] ?? 0) + 1;
2169
+ for (const o of Dt(t, e))
2170
+ n[o] = (n[o] ?? 0) + 1;
2111
2171
  return n;
2112
- }, zl = {
2172
+ }, Ml = {
2113
2173
  viewMode: "board",
2114
2174
  columnGrouping: "status",
2115
2175
  rowGrouping: "none",
@@ -2117,23 +2177,17 @@ const ke = {
2117
2177
  field: "manual",
2118
2178
  direction: "asc"
2119
2179
  },
2120
- displayProperties: ["complexity", "priority", "labels"]
2121
- }, Al = [{
2180
+ displayProperties: ["labels"]
2181
+ }, Nl = [{
2122
2182
  value: "status",
2123
2183
  label: "Status"
2124
- }, {
2125
- value: "complexity",
2126
- label: "Complexity"
2127
2184
  }, {
2128
2185
  value: "assignee",
2129
2186
  label: "Assignee"
2130
- }, {
2131
- value: "priority",
2132
- label: "Priority"
2133
2187
  }, {
2134
2188
  value: "none",
2135
2189
  label: "No grouping"
2136
- }], Ol = [{
2190
+ }], Hl = [{
2137
2191
  value: "manual",
2138
2192
  label: "Manual"
2139
2193
  }, {
@@ -2142,16 +2196,10 @@ const ke = {
2142
2196
  }, {
2143
2197
  value: "title",
2144
2198
  label: "Title"
2145
- }, {
2146
- value: "complexity",
2147
- label: "Complexity"
2148
- }, {
2149
- value: "priority",
2150
- label: "Priority"
2151
2199
  }, {
2152
2200
  value: "ticketId",
2153
2201
  label: "ID"
2154
- }], Gl = [{
2202
+ }], Wl = [{
2155
2203
  value: "id",
2156
2204
  label: "ID"
2157
2205
  }, {
@@ -2160,90 +2208,84 @@ const ke = {
2160
2208
  }, {
2161
2209
  value: "assignee",
2162
2210
  label: "Assignee"
2163
- }, {
2164
- value: "priority",
2165
- label: "Priority"
2166
- }, {
2167
- value: "complexity",
2168
- label: "Complexity"
2169
2211
  }, {
2170
2212
  value: "labels",
2171
2213
  label: "Labels"
2172
2214
  }, {
2173
2215
  value: "updated",
2174
2216
  label: "Updated"
2175
- }], Ml = "pstdio/ui/tickets-workspace", Nl = (l) => `${Ml}/${l}`, Xe = {
2176
- settings: zl,
2217
+ }], Bl = "pstdio/ui/tickets-workspace", Fl = (l) => `${Bl}/${l}`, je = {
2218
+ settings: Ml,
2177
2219
  filters: {}
2178
- }, Hl = () => ({
2220
+ }, Vl = () => ({
2179
2221
  getItem: () => null,
2180
2222
  setItem: () => {
2181
2223
  },
2182
2224
  removeItem: () => {
2183
2225
  }
2184
- }), 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) => {
2185
2227
  const {
2186
2228
  storageKey: e,
2187
2229
  initialState: n
2188
2230
  } = l, t = {
2189
2231
  settings: {
2190
- ...Xe.settings,
2232
+ ...je.settings,
2191
2233
  ...n?.settings ?? {}
2192
2234
  },
2193
- filters: n?.filters ?? Xe.filters
2235
+ filters: n?.filters ?? je.filters
2194
2236
  };
2195
- return wt()(Ct((r) => ({
2237
+ return vt()(St((o) => ({
2196
2238
  ...t,
2197
- setViewMode: (o) => r((s) => ({
2239
+ setViewMode: (r) => o((s) => ({
2198
2240
  ...s,
2199
2241
  settings: {
2200
2242
  ...s.settings,
2201
- viewMode: o
2243
+ viewMode: r
2202
2244
  }
2203
2245
  })),
2204
- setColumnGrouping: (o) => r((s) => ({
2246
+ setColumnGrouping: (r) => o((s) => ({
2205
2247
  ...s,
2206
2248
  settings: {
2207
2249
  ...s.settings,
2208
- columnGrouping: o
2250
+ columnGrouping: r
2209
2251
  }
2210
2252
  })),
2211
- setRowGrouping: (o) => r((s) => ({
2253
+ setRowGrouping: (r) => o((s) => ({
2212
2254
  ...s,
2213
2255
  settings: {
2214
2256
  ...s.settings,
2215
- rowGrouping: o
2257
+ rowGrouping: r
2216
2258
  }
2217
2259
  })),
2218
- setOrdering: (o) => r((s) => ({
2260
+ setOrdering: (r) => o((s) => ({
2219
2261
  ...s,
2220
2262
  settings: {
2221
2263
  ...s.settings,
2222
- ordering: o
2264
+ ordering: r
2223
2265
  }
2224
2266
  })),
2225
- setOrderingField: (o) => r((s) => ({
2267
+ setOrderingField: (r) => o((s) => ({
2226
2268
  ...s,
2227
2269
  settings: {
2228
2270
  ...s.settings,
2229
2271
  ordering: {
2230
2272
  ...s.settings.ordering,
2231
- field: o
2273
+ field: r
2232
2274
  }
2233
2275
  }
2234
2276
  })),
2235
- toggleSortDirection: () => r((o) => ({
2236
- ...o,
2277
+ toggleSortDirection: () => o((r) => ({
2278
+ ...r,
2237
2279
  settings: {
2238
- ...o.settings,
2280
+ ...r.settings,
2239
2281
  ordering: {
2240
- ...o.settings.ordering,
2241
- direction: o.settings.ordering.direction === "asc" ? "desc" : "asc"
2282
+ ...r.settings.ordering,
2283
+ direction: r.settings.ordering.direction === "asc" ? "desc" : "asc"
2242
2284
  }
2243
2285
  }
2244
2286
  })),
2245
- toggleDisplayProperty: (o) => r((s) => {
2246
- 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];
2247
2289
  return {
2248
2290
  ...s,
2249
2291
  settings: {
@@ -2252,136 +2294,110 @@ const ke = {
2252
2294
  }
2253
2295
  };
2254
2296
  }),
2255
- setFilter: (o, s) => r((a) => ({
2297
+ setFilter: (r, s) => o((a) => ({
2256
2298
  ...a,
2257
2299
  filters: {
2258
2300
  ...a.filters,
2259
- [o]: s
2301
+ [r]: s
2260
2302
  }
2261
2303
  })),
2262
- toggleFilterValue: (o, s) => r((a) => {
2263
- 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 = {
2264
2306
  ...a.filters,
2265
- [o]: d
2307
+ [r]: d
2266
2308
  };
2267
- return d.length === 0 && delete u[o], {
2309
+ return d.length === 0 && delete u[r], {
2268
2310
  ...a,
2269
2311
  filters: u
2270
2312
  };
2271
2313
  }),
2272
- clearFilter: (o) => r((s) => {
2314
+ clearFilter: (r) => o((s) => {
2273
2315
  const a = {
2274
2316
  ...s.filters
2275
2317
  };
2276
- return delete a[o], {
2318
+ return delete a[r], {
2277
2319
  ...s,
2278
2320
  filters: a
2279
2321
  };
2280
2322
  }),
2281
- clearAllFilters: () => r((o) => ({
2282
- ...o,
2323
+ clearAllFilters: () => o((r) => ({
2324
+ ...r,
2283
2325
  filters: {}
2284
2326
  })),
2285
- reset: () => r(Xe)
2327
+ reset: () => o(je)
2286
2328
  }), {
2287
- name: Nl(e),
2288
- storage: vt(() => typeof globalThis.localStorage > "u" ? Hl() : globalThis.localStorage),
2289
- partialize: (r) => ({
2290
- settings: r.settings,
2291
- filters: r.filters
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
2292
2334
  })
2293
2335
  }));
2294
- }, pt = /* @__PURE__ */ new Map(), Bl = (l) => {
2295
- const e = pt.get(l);
2336
+ }, ft = /* @__PURE__ */ new Map(), Ul = (l) => {
2337
+ const e = ft.get(l);
2296
2338
  if (e)
2297
2339
  return e;
2298
- const n = Fl({
2340
+ const n = Xl({
2299
2341
  storageKey: l
2300
2342
  });
2301
- return pt.set(l, n), n;
2302
- }, pe = (l, e) => {
2303
- const n = A(2);
2343
+ return ft.set(l, n), n;
2344
+ }, he = (l, e) => {
2345
+ const n = z(2);
2304
2346
  let t;
2305
- return n[0] !== l ? (t = Bl(l), n[0] = l, n[1] = t) : t = n[1], yt(t, e);
2306
- }, Vl = {
2307
- p0: "red",
2308
- p1: "red",
2309
- p2: "orange",
2310
- p3: "yellow",
2311
- p4: "gray"
2312
- }, jl = {
2313
- high: "red",
2314
- medium: "yellow",
2315
- low: "green"
2316
- }, Ne = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), Xl = {
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 = {
2317
2349
  status: (l) => l.status ? [l.status] : [],
2318
2350
  assignee: (l) => l.assignee ? [l.assignee] : [],
2319
- priority: (l) => l.priority ? [l.priority] : [],
2320
- complexity: (l) => l.complexity ? [l.complexity] : [],
2321
2351
  labels: (l) => l.labels ?? []
2322
- }, Oe = (l, e) => {
2352
+ }, Xe = (l, e) => {
2323
2353
  const n = /* @__PURE__ */ new Set();
2324
2354
  for (const t of l) {
2325
- const r = Xl[e](t);
2326
- for (const o of r)
2327
- n.add(o);
2355
+ const o = Yl[e](t);
2356
+ for (const r of o)
2357
+ n.add(r);
2328
2358
  }
2329
- return [...n].sort((t, r) => t.localeCompare(r, void 0, {
2359
+ return [...n].sort((t, o) => t.localeCompare(o, void 0, {
2330
2360
  numeric: !0
2331
2361
  })).map((t) => ({
2332
2362
  value: t,
2333
- label: Ne(t)
2363
+ label: Ae(t)
2334
2364
  }));
2335
- }, Ul = (l) => [{
2365
+ }, Kl = (l) => [{
2336
2366
  id: "status",
2337
2367
  label: "Status",
2338
- options: Oe(l, "status")
2368
+ options: Xe(l, "status")
2339
2369
  }, {
2340
2370
  id: "assignee",
2341
2371
  label: "Assignee",
2342
- options: Oe(l, "assignee")
2343
- }, {
2344
- id: "priority",
2345
- label: "Priority",
2346
- options: Oe(l, "priority")
2347
- }, {
2348
- id: "complexity",
2349
- label: "Complexity",
2350
- options: Oe(l, "complexity")
2372
+ options: Xe(l, "assignee")
2351
2373
  }, {
2352
2374
  id: "labels",
2353
2375
  label: "Labels",
2354
- options: Oe(l, "labels")
2355
- }], ht = (l, e) => {
2356
- const n = [], t = (r) => e.includes(r);
2376
+ options: Xe(l, "labels")
2377
+ }], gt = (l, e) => {
2378
+ const n = [], t = (o) => e.includes(o);
2357
2379
  if (t("status") && l.status && n.push({
2358
2380
  label: l.status,
2359
2381
  color: l.statusColor ?? "gray"
2360
2382
  }), t("assignee") && l.assignee && n.push({
2361
2383
  label: l.assignee,
2362
2384
  color: "blue"
2363
- }), t("priority") && l.priority && n.push({
2364
- label: l.priority,
2365
- color: Vl[l.priority.toLowerCase()] ?? "gray"
2366
- }), t("complexity") && l.complexity && n.push({
2367
- label: l.complexity,
2368
- color: jl[l.complexity.toLowerCase()] ?? "gray"
2369
2385
  }), t("updated") && l.updatedAt && n.push({
2370
2386
  label: new Date(l.updatedAt).toLocaleDateString(),
2371
2387
  color: "gray"
2372
2388
  }), t("labels"))
2373
- for (const r of l.labels ?? [])
2389
+ for (const o of l.labels ?? [])
2374
2390
  n.push({
2375
- label: r,
2391
+ label: o,
2376
2392
  color: "purple"
2377
2393
  });
2378
2394
  return n;
2379
- }, Xi = (l) => {
2380
- const e = A(64), {
2395
+ }, qi = (l) => {
2396
+ const e = z(64), {
2381
2397
  tickets: n,
2382
2398
  storageKey: t,
2383
- selectedTicketId: r,
2384
- groupingOptions: o,
2399
+ selectedTicketId: o,
2400
+ groupingOptions: r,
2385
2401
  orderingOptions: s,
2386
2402
  displayPropertyOptions: a,
2387
2403
  filterCategories: c,
@@ -2389,19 +2405,19 @@ const ke = {
2389
2405
  emptyTitle: u,
2390
2406
  emptyDescription: g,
2391
2407
  onTicketClick: f,
2392
- onMoveTicket: p,
2393
- onMoveToGroup: h,
2408
+ onMoveTicket: h,
2409
+ onMoveToGroup: p,
2394
2410
  onCreateTicket: m,
2395
- onColumnAction: x,
2411
+ onColumnAction: b,
2396
2412
  getBoardColumnConfig: y
2397
- } = l, I = r === void 0 ? null : r, k = o === void 0 ? Al : o, P = s === void 0 ? Ol : s, D = a === void 0 ? Gl : a, T = u === void 0 ? "No tickets found" : u, _ = g === void 0 ? "Try changing filters or display settings." : g, S = pe(t, Yl), C = pe(t, Kl), w = pe(t, ql), v = pe(t, Jl), E = pe(t, Ql), L = pe(t, Zl), z = pe(t, ei), O = pe(t, ti), W = pe(t, ni), H = pe(t, li), B = pe(t, ii);
2398
- let N, M, R, F;
2399
- if (e[0] !== c || e[1] !== C || e[2] !== y || e[3] !== d || e[4] !== f || e[5] !== S.columnGrouping || e[6] !== S.displayProperties || e[7] !== S.ordering || e[8] !== S.rowGrouping || e[9] !== n) {
2400
- const ee = Rl(n, C);
2401
- N = c ?? Ul(n);
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);
2402
2418
  let Z;
2403
- e[14] !== n ? (Z = (j) => [j.id, El(n, j.id)], e[14] = n, e[15] = Z) : Z = e[15], M = Object.fromEntries(N.map(Z));
2404
- const U = d ?? (S.columnGrouping !== "none" ? N.find((j) => j.id === S.columnGrouping)?.options.map(ri) : void 0), ie = Ll(ee, {
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, {
2405
2421
  columnGrouping: S.columnGrouping,
2406
2422
  rowGrouping: S.rowGrouping,
2407
2423
  knownColumnKeys: U
@@ -2411,27 +2427,27 @@ const ke = {
2411
2427
  id: j.id,
2412
2428
  ticketId: S.displayProperties.includes("id") ? j.ticketId : "",
2413
2429
  title: j.title,
2414
- badges: ht(j, S.displayProperties),
2430
+ badges: gt(j, S.displayProperties),
2415
2431
  onClick: () => f?.(j)
2416
2432
  }), e[16] = f, e[17] = S.displayProperties, e[18] = ce) : ce = e[18];
2417
- const re = ce;
2433
+ const oe = ce;
2418
2434
  let ue;
2419
- e[19] !== S.ordering || e[20] !== re ? (ue = (j) => ({
2435
+ e[19] !== S.ordering || e[20] !== oe ? (ue = (j) => ({
2420
2436
  id: `group::${j.key}`,
2421
2437
  ticketId: "",
2422
- title: `${Ne(j.label)} (${j.tickets.length})`,
2423
- children: Ge(j.tickets, S.ordering).map((ne) => re(ne))
2424
- }), e[19] = S.ordering, e[20] = re, e[21] = ue) : ue = e[21];
2425
- const fe = ue;
2426
- R = S.columnGrouping === "none" ? Ge(ee, S.ordering).map((j) => re(j)) : ie.map((j) => j.rows.length > 0 ? {
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 ? {
2427
2443
  id: `group::${j.key}`,
2428
2444
  ticketId: "",
2429
- title: `${Ne(j.label)} (${j.tickets.length})`,
2445
+ title: `${Ae(j.label)} (${j.tickets.length})`,
2430
2446
  children: j.rows.map((ne) => ({
2431
- ...fe(ne),
2447
+ ...ge(ne),
2432
2448
  id: `group::${j.key}::${ne.key}`
2433
2449
  }))
2434
- } : fe(j));
2450
+ } : ge(j));
2435
2451
  let ae;
2436
2452
  e[22] !== f || e[23] !== S.displayProperties ? (ae = (j) => j.map((ne) => ({
2437
2453
  id: ne.id,
@@ -2439,17 +2455,17 @@ const ke = {
2439
2455
  ticketId: S.displayProperties.includes("id") ? ne.ticketId : "",
2440
2456
  parentPath: ne.parentPath,
2441
2457
  title: ne.title,
2442
- badges: ht(ne, S.displayProperties),
2458
+ badges: gt(ne, S.displayProperties),
2443
2459
  onClick: () => f?.(ne)
2444
2460
  }
2445
2461
  })), e[22] = f, e[23] = S.displayProperties, e[24] = ae) : ae = e[24];
2446
2462
  const be = ae;
2447
- let ge;
2448
- e[25] !== y || e[26] !== S.ordering || e[27] !== be ? (ge = (j) => {
2449
- const ne = y?.(j.key) ?? {}, Rt = Ge(j.tickets, S.ordering), Et = j.rows.length > 0 ? j.rows.map((Be) => ({
2450
- key: Be.key,
2451
- label: Ne(Be.label),
2452
- items: be(Ge(Be.tickets, S.ordering))
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))
2453
2469
  })) : void 0;
2454
2470
  return {
2455
2471
  id: j.key,
@@ -2459,112 +2475,112 @@ const ke = {
2459
2475
  canDragOut: ne.canDragOut ?? !1,
2460
2476
  canCreate: ne.canCreate ?? !1,
2461
2477
  actions: ne.actions ?? [],
2462
- items: be(Rt),
2463
- groups: Et
2478
+ items: be(Lt),
2479
+ groups: Rt
2464
2480
  };
2465
- }, e[25] = y, e[26] = S.ordering, e[27] = be, e[28] = ge) : ge = e[28], F = ie.map(ge), e[0] = c, e[1] = C, e[2] = y, e[3] = d, e[4] = f, e[5] = S.columnGrouping, e[6] = S.displayProperties, e[7] = S.ordering, e[8] = S.rowGrouping, e[9] = n, e[10] = N, e[11] = M, e[12] = R, e[13] = F;
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;
2466
2482
  } else
2467
- N = e[10], M = e[11], R = e[12], F = e[13];
2468
- const Y = F;
2469
- let q;
2470
- e[29] !== N || e[30] !== B || e[31] !== H || e[32] !== M || e[33] !== C || e[34] !== W ? (q = /* @__PURE__ */ i(xl, { categories: N, filters: C, countsByCategory: M, onToggleFilterValue: W, onClearFilter: H, onClearAll: B }), e[29] = N, e[30] = B, e[31] = H, e[32] = M, e[33] = C, e[34] = W, e[35] = q) : q = e[35];
2483
+ N = e[10], M = e[11], R = e[12], B = e[13];
2484
+ const Y = B;
2471
2485
  let J;
2472
- e[36] !== D || e[37] !== k || e[38] !== P || e[39] !== v || e[40] !== L || e[41] !== E || e[42] !== w || e[43] !== S || e[44] !== O || e[45] !== z ? (J = /* @__PURE__ */ i(ml, { settings: S, groupingOptions: k, orderingOptions: P, displayPropertyOptions: D, onViewModeChange: w, onColumnGroupingChange: v, onRowGroupingChange: E, onOrderingFieldChange: L, onSortDirectionToggle: z, onDisplayPropertyToggle: O }), e[36] = D, e[37] = k, e[38] = P, e[39] = v, e[40] = L, e[41] = E, e[42] = w, e[43] = S, e[44] = O, e[45] = z, e[46] = J) : J = e[46];
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];
2473
2489
  let K;
2474
- e[47] !== q || e[48] !== J ? (K = /* @__PURE__ */ b(X, { justifyContent: "flex-end", gap: "2xs", children: [
2475
- q,
2476
- J
2477
- ] }), 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];
2478
2494
  let Q;
2479
- e[50] !== Y || e[51] !== _ || e[52] !== T || e[53] !== R || e[54] !== x || e[55] !== m || e[56] !== p || e[57] !== h || e[58] !== I || e[59] !== S.viewMode ? (Q = S.viewMode === "board" ? /* @__PURE__ */ i(V, { flex: "1", minH: "0", children: Y.length > 0 ? /* @__PURE__ */ i(yl, { columns: Y, selectedItemId: I, onMoveItem: p, onMoveToGroup: h, onCreateStart: m, onColumnAction: x }) : /* @__PURE__ */ i(Ke, { title: T, description: _, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : R.length > 0 ? /* @__PURE__ */ i(Pl, { items: R, selectedItemId: I }) : /* @__PURE__ */ i(Ke, { title: T, description: _, borderWidth: "1px", borderRadius: "md" }), e[50] = Y, e[51] = _, e[52] = T, e[53] = R, e[54] = x, e[55] = m, e[56] = p, e[57] = h, e[58] = I, e[59] = S.viewMode, e[60] = Q) : Q = e[60];
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];
2480
2496
  let te;
2481
- 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: [
2482
2498
  K,
2483
2499
  Q
2484
2500
  ] }), e[61] = Q, e[62] = K, e[63] = te) : te = e[63], te;
2485
2501
  };
2486
- function Yl(l) {
2502
+ function Jl(l) {
2487
2503
  return l.settings;
2488
2504
  }
2489
- function Kl(l) {
2505
+ function ql(l) {
2490
2506
  return l.filters;
2491
2507
  }
2492
- function ql(l) {
2508
+ function Ql(l) {
2493
2509
  return l.setViewMode;
2494
2510
  }
2495
- function Jl(l) {
2511
+ function Zl(l) {
2496
2512
  return l.setColumnGrouping;
2497
2513
  }
2498
- function Ql(l) {
2514
+ function ei(l) {
2499
2515
  return l.setRowGrouping;
2500
2516
  }
2501
- function Zl(l) {
2517
+ function ti(l) {
2502
2518
  return l.setOrderingField;
2503
2519
  }
2504
- function ei(l) {
2520
+ function ni(l) {
2505
2521
  return l.toggleSortDirection;
2506
2522
  }
2507
- function ti(l) {
2523
+ function li(l) {
2508
2524
  return l.toggleDisplayProperty;
2509
2525
  }
2510
- function ni(l) {
2526
+ function ii(l) {
2511
2527
  return l.toggleFilterValue;
2512
2528
  }
2513
- function li(l) {
2529
+ function oi(l) {
2514
2530
  return l.clearFilter;
2515
2531
  }
2516
- function ii(l) {
2532
+ function ri(l) {
2517
2533
  return l.clearAllFilters;
2518
2534
  }
2519
- function ri(l) {
2535
+ function si(l) {
2520
2536
  return l.value;
2521
2537
  }
2522
- const oi = Wt({
2538
+ const ai = Ht({
2523
2539
  placement: "bottom-end",
2524
2540
  pauseOnPageIdle: !0
2525
- }), Ui = () => {
2526
- const l = A(1);
2541
+ }), Qi = () => {
2542
+ const l = z(1);
2527
2543
  let e;
2528
- 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: {
2529
2545
  mdDown: "4"
2530
- }, children: si }) }), l[0] = e) : e = l[0], e;
2546
+ }, children: ci }) }), l[0] = e) : e = l[0], e;
2531
2547
  };
2532
- function si(l) {
2533
- return /* @__PURE__ */ b(Le.Root, { width: {
2548
+ function ci(l) {
2549
+ return /* @__PURE__ */ x(_e.Root, { width: {
2534
2550
  md: "sm"
2535
2551
  }, children: [
2536
- l.type === "loading" ? /* @__PURE__ */ i(Bt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i(Le.Indicator, {}),
2537
- /* @__PURE__ */ b(G, { gap: "1", flex: "1", maxWidth: "100%", children: [
2538
- l.title && /* @__PURE__ */ i(Le.Title, { children: l.title }),
2539
- l.description && /* @__PURE__ */ i(Le.Description, { children: l.description })
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 })
2540
2556
  ] }),
2541
- l.action && /* @__PURE__ */ i(Le.ActionTrigger, { children: l.action.label }),
2542
- l.closable && /* @__PURE__ */ i(Le.CloseTrigger, {})
2557
+ l.action && /* @__PURE__ */ i(_e.ActionTrigger, { children: l.action.label }),
2558
+ l.closable && /* @__PURE__ */ i(_e.CloseTrigger, {})
2543
2559
  ] });
2544
2560
  }
2545
- const ai = (l) => {
2561
+ const di = (l) => {
2546
2562
  if (typeof document > "u") return;
2547
2563
  const e = document.documentElement, n = document.body, t = l === "dark" ? "light" : "dark";
2548
- for (const r of [e, n])
2549
- r && (r.classList.remove(t), r.classList.add(l), r.setAttribute("data-theme", l), r.style.colorScheme = l);
2550
- }, $t = "theme-preference", Lt = Yt(null), ci = () => {
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 = () => {
2551
2567
  if (typeof window > "u") return "light";
2552
- const l = window.localStorage.getItem($t);
2568
+ const l = window.localStorage.getItem(_t);
2553
2569
  return l === "dark" || l === "light" ? l : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2554
- }, Yi = (l) => {
2555
- const e = A(11), {
2570
+ }, Zi = (l) => {
2571
+ const e = z(11), {
2556
2572
  children: n,
2557
2573
  initialPreference: t
2558
2574
  } = l;
2559
- let r;
2560
- e[0] !== t ? (r = t === void 0 ? ci() : t, e[0] = t, e[1] = r) : r = e[1];
2561
- const o = r, [s, a] = me(o);
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);
2562
2578
  let c, d;
2563
2579
  e[2] !== s ? (c = () => {
2564
- ai(s), typeof window < "u" && window.localStorage.setItem($t, s);
2565
- }, d = [s], e[2] = s, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), He(c, d);
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);
2566
2582
  let u;
2567
- 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];
2568
2584
  const g = u;
2569
2585
  let f;
2570
2586
  e[6] !== s ? (f = {
@@ -2572,62 +2588,62 @@ const ai = (l) => {
2572
2588
  setThemePreference: a,
2573
2589
  toggleThemePreference: g
2574
2590
  }, e[6] = s, e[7] = f) : f = e[7];
2575
- let p;
2576
- return e[8] !== n || e[9] !== f ? (p = /* @__PURE__ */ i(Lt, { value: f, children: n }), e[8] = n, e[9] = f, e[10] = p) : p = e[10], p;
2577
- }, Ki = () => {
2578
- const l = Kt(Lt);
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);
2579
2595
  if (!l)
2580
2596
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
2581
2597
  return l;
2582
2598
  };
2583
- function di(l) {
2599
+ function fi(l) {
2584
2600
  return l === "dark" ? "light" : "dark";
2585
2601
  }
2586
2602
  export {
2587
2603
  Cn as AlertMessage,
2588
- Li as Breadcrumb,
2589
- Qi as ChakraProvider,
2590
- vn as Checkbox,
2591
- er as CodeDiffEditor,
2592
- tr as CodeEditor,
2593
- wn as ContentPlaceholder,
2594
- Ri as ContentPlaceholderLabel,
2595
- Ei as DeleteConfirmationModal,
2596
- St as DiffBubble,
2597
- zi as DiffDrawer,
2598
- ml as DisplayMenu,
2599
- Ai as DocsChangelog,
2600
- Oi as DocsOutline,
2601
- Gi as DocsPagination,
2602
- Mi as DocsSidebar,
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,
2603
2619
  Ke as EmptyState,
2604
- Ni as ErrorBoundary,
2605
- xl as FilterMenu,
2606
- Hi as FolderPickerDialog,
2607
- Wi as HorizontalMenuStack,
2608
- Mn as ItemSection,
2609
- We as MenuItem,
2610
- Fi as OpenSourceNoticesScreen,
2611
- Wn as PanelMenu,
2612
- Bi as Properties,
2613
- Ce as ScrollArea,
2614
- Jn as SessionIndicator,
2615
- Vi as SidebarNext,
2616
- Zn as SidebarTree,
2617
- ji as Switch,
2618
- Yi as ThemePreferenceProvider,
2619
- yl as TicketBoard,
2620
- Dt as TicketCard,
2621
- Pl as TicketList,
2622
- Xi as TicketsWorkspace,
2623
- Ui as Toaster,
2624
- Ee as Tooltip,
2625
- ai as applyThemePreference,
2626
- ci as getInitialThemePreference,
2627
- lr as psTheme,
2628
- oi as toaster,
2629
- Re as useSidebarNextStore,
2630
- Ki as useThemePreference,
2631
- pe as useTicketsWorkspaceStore
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
2632
2648
  };
2633
2649
  //# sourceMappingURL=index.js.map