@pstdio/ui 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/chat-ui.js +515 -565
  2. package/dist/chat-ui.js.map +1 -1
  3. package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
  4. package/dist/components/checkbox.d.ts +8 -0
  5. package/dist/components/checkbox.stories.d.ts +15 -0
  6. package/dist/components/item-section.d.ts +1 -1
  7. package/dist/components/properties.d.ts +4 -4
  8. package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
  9. package/dist/components/scroll-area.d.ts +16 -0
  10. package/dist/components/scroll-area.stories.d.ts +7 -0
  11. package/dist/components/sidebar-next/sidebar-next-footer.d.ts +6 -0
  12. package/dist/components/sidebar-next/sidebar-next-header.d.ts +7 -0
  13. package/dist/components/sidebar-next/sidebar-next.d.ts +2 -0
  14. package/dist/components/sidebar-next/sidebar-next.store.d.ts +47 -0
  15. package/dist/components/sidebar-next/sidebar-next.store.test.d.ts +1 -0
  16. package/dist/components/sidebar-next/sidebar-next.stories.d.ts +10 -0
  17. package/dist/components/sidebar-next/sidebar-next.types.d.ts +13 -0
  18. package/dist/components/sidebar-tree/sidebar-tree.d.ts +12 -0
  19. package/dist/components/sidebar-tree/sidebar-tree.stories.d.ts +13 -0
  20. package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +46 -0
  21. package/dist/empty-state-B8mbv7ZH.js +128 -0
  22. package/dist/empty-state-B8mbv7ZH.js.map +1 -0
  23. package/dist/index.d.ts +11 -0
  24. package/dist/index.js +1361 -873
  25. package/dist/index.js.map +1 -1
  26. package/dist/{rich-message-CNDoACE7.js → rich-message-B2gxL8oy.js} +301 -321
  27. package/dist/rich-message-B2gxL8oy.js.map +1 -0
  28. package/dist/rich-text.js +294 -375
  29. package/dist/rich-text.js.map +1 -1
  30. package/dist/theme/recipes/progress-circle.d.ts +3 -3
  31. package/package.json +6 -1
  32. package/dist/empty-state-Bu1ocnPz.js +0 -70
  33. package/dist/empty-state-Bu1ocnPz.js.map +0 -1
  34. package/dist/rich-message-CNDoACE7.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,14 +1,17 @@
1
- import { Alert as Ce, Breadcrumb as fe, Box as B, Text as S, Dialog as Q, CloseButton as Ne, Stack as C, Button as me, Timeline as ae, HStack as te, Image as Ve, List as Ge, Flex as xe, Badge as De, Link as Ee, Heading as Ue, useEnvironmentContext as Ke, Icon as ne, Collapsible as oe, Menu as ue, MenuItem as qe, AbsoluteCenter as Je, Separator as Qe, Switch as pe, Wrap as Xe, IconButton as We, Spacer as Ze, createToaster as et, Portal as tt, Toaster as lt, Toast as we, Spinner as nt } from "@chakra-ui/react";
2
- import { ChakraProvider as ql } from "@chakra-ui/react";
3
- import { jsx as l, jsxs as u, Fragment as it } from "react/jsx-runtime";
4
- import { c as D } from "react/compiler-runtime";
5
- import * as Me from "react";
6
- import { useState as Te, useRef as rt, useEffect as ze, Component as ot, createContext as st, useContext as at } from "react";
7
- import { D as ct } from "./empty-state-Bu1ocnPz.js";
8
- import { E as Ql } from "./empty-state-Bu1ocnPz.js";
9
- import { ChevronRight as Pe, FileText as He, ChevronDown as dt, ChevronLeft as ht, FolderOpen as ft, Folder as gt, Home as mt, ChevronUp as ut, Info as pt, CircleCheck as xt, CircleAlert as bt, CircleDashed as St, GitBranchIcon as yt, Plus as vt, MoreHorizontal as Ct } from "lucide-react";
10
- import { T as _e } from "./tooltip-Gm7PLwZG.js";
11
- import { useReactTable as wt, getExpandedRowModel as kt, getCoreRowModel as It, flexRender as Tt } from "@tanstack/react-table";
1
+ import { Alert as Ie, Breadcrumb as de, Checkbox as Le, Box as D, Text as w, Dialog as J, CloseButton as ot, Stack as R, Button as ue, IconButton as $e, Grid as st, ScrollArea as Pe, Timeline as oe, HStack as F, Image as at, List as Ke, Flex as me, Badge as ze, Link as Be, Heading as ct, useEnvironmentContext as dt, Icon as ne, Collapsible as xe, MenuItem as ht, Menu as ie, AbsoluteCenter as ft, Separator as gt, Switch as be, Wrap as qe, Spacer as ut, createToaster as mt, Portal as pt, Toaster as bt, Toast as Te, Spinner as xt } from "@chakra-ui/react";
2
+ import { ChakraProvider as Vn } from "@chakra-ui/react";
3
+ import { jsx as i, jsxs as b, Fragment as St } from "react/jsx-runtime";
4
+ import { c as T } from "react/compiler-runtime";
5
+ import * as He from "react";
6
+ import { useState as Re, useRef as Je, useEffect as We, Component as yt, createContext as vt, useContext as Ct } from "react";
7
+ import { D as wt, a as Qe, E as kt } from "./empty-state-B8mbv7ZH.js";
8
+ import { useVirtualizer as It } from "@tanstack/react-virtual";
9
+ import { ChevronRight as pe, ChevronDown as Ze, FileText as Oe, ChevronLeft as Pt, FolderOpen as Tt, Folder as _t, Home as $t, ChevronUp as Rt, Info as Dt, CircleCheck as Lt, CircleAlert as Et, CircleDashed as zt, PanelLeftClose as Ht, GitBranchIcon as Nt, Plus as Wt, MoreHorizontal as At } from "lucide-react";
10
+ import { T as Ee } from "./tooltip-Gm7PLwZG.js";
11
+ import { useStore as Mt } from "zustand";
12
+ import { persist as Bt, createJSONStorage as Ot } from "zustand/middleware";
13
+ import { createStore as jt } from "zustand/vanilla";
14
+ import { useReactTable as Gt, getExpandedRowModel as Xt, getCoreRowModel as Ft, flexRender as Vt } from "@tanstack/react-table";
12
15
  import "@fontsource/inter/400.css";
13
16
  import "@fontsource/inter/500.css";
14
17
  import "@fontsource/playfair-display/400.css";
@@ -17,424 +20,575 @@ import "@fontsource/playfair-display/700.css";
17
20
  import "@fontsource/onest/400.css";
18
21
  import "@fontsource/onest/500.css";
19
22
  import "@fontsource/onest/700.css";
20
- import { t as en } from "./theme-C7CIuIPZ.js";
21
- const _t = Me.forwardRef(function(e, n) {
22
- const t = D(19);
23
- let o, s, r, a, c, d;
23
+ import { t as Un } from "./theme-C7CIuIPZ.js";
24
+ const Yt = He.forwardRef(function(e, l) {
25
+ const t = T(19);
26
+ let r, s, o, a, c, d;
24
27
  t[0] !== e ? ({
25
28
  title: d,
26
- children: o,
27
- icon: r,
29
+ children: r,
30
+ icon: o,
28
31
  startElement: c,
29
32
  endElement: s,
30
33
  ...a
31
- } = e, t[0] = e, t[1] = o, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = d) : (o = t[1], s = t[2], r = t[3], a = t[4], c = t[5], d = t[6]);
34
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6]);
32
35
  let h;
33
- t[7] !== r || t[8] !== c ? (h = c || /* @__PURE__ */ l(Ce.Indicator, { children: r }), t[7] = r, t[8] = c, t[9] = h) : h = t[9];
34
- let f;
35
- t[10] !== o || t[11] !== d ? (f = o ? /* @__PURE__ */ u(Ce.Content, { children: [
36
- /* @__PURE__ */ l(Ce.Title, { children: d }),
37
- /* @__PURE__ */ l(Ce.Description, { children: o })
38
- ] }) : /* @__PURE__ */ l(Ce.Title, { flex: "1", children: d }), t[10] = o, t[11] = d, t[12] = f) : f = t[12];
36
+ t[7] !== o || t[8] !== c ? (h = c || /* @__PURE__ */ i(Ie.Indicator, { children: o }), t[7] = o, t[8] = c, t[9] = h) : h = t[9];
39
37
  let g;
40
- return t[13] !== s || t[14] !== n || t[15] !== a || t[16] !== h || t[17] !== f ? (g = /* @__PURE__ */ u(Ce.Root, { ref: n, ...a, children: [
38
+ t[10] !== r || t[11] !== d ? (g = r ? /* @__PURE__ */ b(Ie.Content, { children: [
39
+ /* @__PURE__ */ i(Ie.Title, { children: d }),
40
+ /* @__PURE__ */ i(Ie.Description, { children: r })
41
+ ] }) : /* @__PURE__ */ i(Ie.Title, { flex: "1", children: d }), t[10] = r, t[11] = d, t[12] = g) : g = t[12];
42
+ let f;
43
+ return t[13] !== s || t[14] !== l || t[15] !== a || t[16] !== h || t[17] !== g ? (f = /* @__PURE__ */ b(Ie.Root, { ref: l, ...a, children: [
41
44
  h,
42
- f,
45
+ g,
43
46
  s
44
- ] }), t[13] = s, t[14] = n, t[15] = a, t[16] = h, t[17] = f, t[18] = g) : g = t[18], g;
45
- }), $l = Me.forwardRef(function(e, n) {
46
- const t = D(21);
47
- let o, s, r, a, c;
47
+ ] }), t[13] = s, t[14] = l, t[15] = a, t[16] = h, t[17] = g, t[18] = f) : f = t[18], f;
48
+ }), wn = He.forwardRef(function(e, l) {
49
+ const t = T(21);
50
+ let r, s, o, a, c;
48
51
  t[0] !== e ? ({
49
52
  separator: a,
50
53
  separatorGap: c,
51
54
  items: s,
52
- linkComponent: o,
53
- ...r
54
- } = e, t[0] = e, t[1] = o, t[2] = s, t[3] = r, t[4] = a, t[5] = c) : (o = t[1], s = t[2], r = t[3], a = t[4], c = t[5]);
55
+ linkComponent: r,
56
+ ...o
57
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5]);
55
58
  let d;
56
- if (t[6] !== o || t[7] !== s || t[8] !== a) {
57
- let g;
58
- t[10] !== o || t[11] !== s.length || t[12] !== a ? (g = (m, p) => {
59
- const x = p === s.length - 1, b = !!(m.url || m.onClick);
60
- let y;
61
- return x && !b ? y = /* @__PURE__ */ l(fe.CurrentLink, { children: m.title }) : m.url ? y = o ? /* @__PURE__ */ l(fe.Link, { asChild: !0, children: /* @__PURE__ */ l(o, { to: m.url, children: m.title }) }) : /* @__PURE__ */ l(fe.Link, { href: m.url, children: m.title }) : m.onClick ? y = /* @__PURE__ */ l(fe.Link, { as: "button", type: "button", onClick: m.onClick, children: m.title }) : y = /* @__PURE__ */ l(fe.Link, { children: m.title }), /* @__PURE__ */ u(fe.Item, { children: [
62
- y,
63
- x ? null : /* @__PURE__ */ l(fe.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
64
- ] }, p);
65
- }, t[10] = o, t[11] = s.length, t[12] = a, t[13] = g) : g = t[13], d = s.map(g), t[6] = o, t[7] = s, t[8] = a, t[9] = d;
59
+ if (t[6] !== r || t[7] !== s || t[8] !== a) {
60
+ let f;
61
+ t[10] !== r || t[11] !== s.length || t[12] !== a ? (f = (u, m) => {
62
+ const p = m === s.length - 1, x = !!(u.url || u.onClick);
63
+ let S;
64
+ return p && !x ? S = /* @__PURE__ */ i(de.CurrentLink, { children: u.title }) : u.url ? S = r ? /* @__PURE__ */ i(de.Link, { asChild: !0, children: /* @__PURE__ */ i(r, { to: u.url, children: u.title }) }) : /* @__PURE__ */ i(de.Link, { href: u.url, children: u.title }) : u.onClick ? S = /* @__PURE__ */ i(de.Link, { as: "button", type: "button", onClick: u.onClick, children: u.title }) : S = /* @__PURE__ */ i(de.Link, { children: u.title }), /* @__PURE__ */ b(de.Item, { children: [
65
+ S,
66
+ p ? null : /* @__PURE__ */ i(de.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
67
+ ] }, m);
68
+ }, t[10] = r, t[11] = s.length, t[12] = a, t[13] = f) : f = t[13], d = s.map(f), t[6] = r, t[7] = s, t[8] = a, t[9] = d;
66
69
  } else
67
70
  d = t[9];
68
71
  let h;
69
- t[14] !== c || t[15] !== d ? (h = /* @__PURE__ */ l(fe.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = h) : h = t[16];
72
+ t[14] !== c || t[15] !== d ? (h = /* @__PURE__ */ i(de.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = h) : h = t[16];
73
+ let g;
74
+ return t[17] !== l || t[18] !== o || t[19] !== h ? (g = /* @__PURE__ */ i(de.Root, { ref: l, ...o, children: h }), t[17] = l, t[18] = o, t[19] = h, t[20] = g) : g = t[20], g;
75
+ }), kn = He.forwardRef(function(e, l) {
76
+ const t = T(26);
77
+ let r, s, o, a, c, d;
78
+ t[0] !== e ? ({
79
+ icon: s,
80
+ children: r,
81
+ inputProps: o,
82
+ rootRef: c,
83
+ disabled: d,
84
+ ...a
85
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6]);
86
+ const h = d === void 0 ? !1 : d, g = h ? "not-allowed" : "pointer";
70
87
  let f;
71
- return t[17] !== n || t[18] !== r || t[19] !== h ? (f = /* @__PURE__ */ l(fe.Root, { ref: n, ...r, children: h }), t[17] = n, t[18] = r, t[19] = h, t[20] = f) : f = t[20], f;
72
- }), Dt = (i) => {
73
- const e = D(3);
74
- let n;
75
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
88
+ t[7] !== o || t[8] !== l ? (f = /* @__PURE__ */ i(Le.HiddenInput, { ref: l, ...o }), t[7] = o, t[8] = l, t[9] = f) : f = t[9];
89
+ let u;
90
+ t[10] !== s ? (u = s || /* @__PURE__ */ i(Le.Indicator, {}), t[10] = s, t[11] = u) : u = t[11];
91
+ let m;
92
+ t[12] !== g || t[13] !== u ? (m = /* @__PURE__ */ i(Le.Control, { borderRadius: "xs", cursor: g, children: u }), t[12] = g, t[13] = u, t[14] = m) : m = t[14];
93
+ let p;
94
+ t[15] !== r || t[16] !== g ? (p = r != null && /* @__PURE__ */ i(Le.Label, { cursor: g, children: r }), t[15] = r, t[16] = g, t[17] = p) : p = t[17];
95
+ let x;
96
+ return t[18] !== h || t[19] !== g || t[20] !== a || t[21] !== c || t[22] !== f || t[23] !== m || t[24] !== p ? (x = /* @__PURE__ */ b(Le.Root, { ref: c, disabled: h, cursor: g, ...a, children: [
97
+ f,
98
+ m,
99
+ p
100
+ ] }), t[18] = h, t[19] = g, t[20] = a, t[21] = c, t[22] = f, t[23] = m, t[24] = p, t[25] = x) : x = t[25], x;
101
+ }), Ut = (n) => {
102
+ const e = T(3);
103
+ let l;
104
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
76
105
  backgroundClip: "padding-box",
77
106
  backgroundImage: `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`,
78
107
  display: "flex",
79
108
  width: "100%"
80
- }, e[0] = n) : n = e[0];
109
+ }, e[0] = l) : l = e[0];
81
110
  let t;
82
- return e[1] !== i ? (t = /* @__PURE__ */ l(B, { ...i, css: n }), e[1] = i, e[2] = t) : t = e[2], t;
83
- }, Ll = (i) => {
84
- const e = D(2);
85
- let n;
86
- return e[0] !== i ? (n = /* @__PURE__ */ l(B, { p: "2", children: /* @__PURE__ */ l(S, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...i }) }), e[0] = i, e[1] = n) : n = e[1], n;
87
- }, Rl = (i) => {
88
- const [e, n] = Te(!1), {
111
+ return e[1] !== n ? (t = /* @__PURE__ */ i(D, { ...n, css: l }), e[1] = n, e[2] = t) : t = e[2], t;
112
+ }, In = (n) => {
113
+ const e = T(2);
114
+ let l;
115
+ return e[0] !== n ? (l = /* @__PURE__ */ i(D, { p: "2", children: /* @__PURE__ */ i(w, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...n }) }), e[0] = n, e[1] = l) : l = e[1], l;
116
+ }, Pn = (n) => {
117
+ const [e, l] = Re(!1), {
89
118
  headline: t,
90
- buttonText: o,
119
+ buttonText: r,
91
120
  notificationText: s,
92
- onDelete: r,
121
+ onDelete: o,
93
122
  open: a,
94
123
  onClose: c
95
- } = i, d = async () => {
96
- n(!0);
124
+ } = n, d = async () => {
125
+ l(!0);
97
126
  try {
98
- await r(), c();
127
+ await o(), c();
99
128
  } catch {
100
129
  } finally {
101
- n(!1);
130
+ l(!1);
102
131
  }
103
132
  };
104
- return /* @__PURE__ */ u(Q.Root, { open: a, onOpenChange: c, children: [
105
- /* @__PURE__ */ l(Q.Backdrop, {}),
106
- /* @__PURE__ */ l(Q.Positioner, { children: /* @__PURE__ */ u(Q.Content, { children: [
107
- /* @__PURE__ */ u(Q.Header, { children: [
108
- /* @__PURE__ */ l(S, { textStyle: "heading/M", children: t }),
109
- /* @__PURE__ */ l(Q.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ l(Ne, { size: "sm" }) })
133
+ return /* @__PURE__ */ b(J.Root, { open: a, onOpenChange: c, children: [
134
+ /* @__PURE__ */ i(J.Backdrop, {}),
135
+ /* @__PURE__ */ i(J.Positioner, { children: /* @__PURE__ */ b(J.Content, { children: [
136
+ /* @__PURE__ */ b(J.Header, { children: [
137
+ /* @__PURE__ */ i(w, { textStyle: "heading/M", children: t }),
138
+ /* @__PURE__ */ i(J.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ i(ot, { size: "sm" }) })
110
139
  ] }),
111
- /* @__PURE__ */ l(Q.Body, { children: s }),
112
- /* @__PURE__ */ l(Q.Footer, { children: /* @__PURE__ */ u(C, { direction: "row", gap: "1", children: [
113
- /* @__PURE__ */ l(me, { onClick: c, children: "Close" }),
114
- /* @__PURE__ */ l(me, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: o })
140
+ /* @__PURE__ */ i(J.Body, { children: s }),
141
+ /* @__PURE__ */ i(J.Footer, { children: /* @__PURE__ */ b(R, { direction: "row", gap: "1", children: [
142
+ /* @__PURE__ */ i(ue, { onClick: c, children: "Close" }),
143
+ /* @__PURE__ */ i(ue, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: r })
115
144
  ] }) })
116
145
  ] }) })
117
146
  ] });
118
- }, Pt = (i, e) => `${i.version}-${i.date}-${e}`, $t = (i, e) => `${i.title}-${e}`, Be = (i) => {
119
- const e = D(12);
120
- let n, t, o;
121
- e[0] !== i ? ({
122
- date: n,
123
- version: o,
147
+ }, Kt = (n) => {
148
+ switch (n.split(".").pop()?.toLowerCase()) {
149
+ case "ts":
150
+ case "tsx":
151
+ return "typescript";
152
+ case "js":
153
+ case "jsx":
154
+ return "javascript";
155
+ case "json":
156
+ return "json";
157
+ case "md":
158
+ return "markdown";
159
+ case "py":
160
+ return "python";
161
+ case "go":
162
+ return "go";
163
+ case "rs":
164
+ return "rust";
165
+ case "css":
166
+ return "css";
167
+ case "html":
168
+ return "html";
169
+ case "sh":
170
+ return "shell";
171
+ case "yml":
172
+ case "yaml":
173
+ return "yaml";
174
+ default:
175
+ return "plaintext";
176
+ }
177
+ }, qt = (n) => {
178
+ const e = T(37), {
179
+ diff: l
180
+ } = n, [t, r] = Re(!0), s = l.newPath || l.oldPath || "unknown";
181
+ let o;
182
+ e[0] !== s ? (o = Kt(s), e[0] = s, e[1] = o) : o = e[1];
183
+ const a = o, c = l.additions ?? 0, d = l.deletions ?? 0, h = t ? "1px solid" : "none";
184
+ let g;
185
+ e[2] !== t ? (g = () => r(!t), e[2] = t, e[3] = g) : g = e[3];
186
+ const f = t ? "Collapse" : "Expand";
187
+ let u;
188
+ e[4] !== t ? (u = (k) => {
189
+ k.stopPropagation(), r(!t);
190
+ }, e[4] = t, e[5] = u) : u = e[5];
191
+ let m;
192
+ e[6] !== t ? (m = t ? /* @__PURE__ */ i(Ze, { size: 16 }) : /* @__PURE__ */ i(pe, { size: 16 }), e[6] = t, e[7] = m) : m = e[7];
193
+ let p;
194
+ e[8] !== f || e[9] !== u || e[10] !== m ? (p = /* @__PURE__ */ i($e, { "aria-label": f, variant: "ghost", size: "2xs", onClick: u, flexShrink: 0, children: m }), e[8] = f, e[9] = u, e[10] = m, e[11] = p) : p = e[11];
195
+ let x;
196
+ e[12] !== l.change || e[13] !== l.newPath || e[14] !== l.oldPath || e[15] !== s ? (x = l.change === "renamed" ? /* @__PURE__ */ b(w, { as: "span", textStyle: "sm", children: [
197
+ /* @__PURE__ */ i(w, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: l.oldPath }),
198
+ /* @__PURE__ */ i(D, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(pe, { size: 12 }) }),
199
+ l.newPath
200
+ ] }) : l.change === "deleted" ? /* @__PURE__ */ i(w, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: s }) : /* @__PURE__ */ i(w, { as: "span", textStyle: "sm", children: s }), e[12] = l.change, e[13] = l.newPath, e[14] = l.oldPath, e[15] = s, e[16] = x) : x = e[16];
201
+ let S;
202
+ e[17] !== s || e[18] !== x ? (S = /* @__PURE__ */ i(D, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: s, children: x }), e[17] = s, e[18] = x, e[19] = S) : S = e[19];
203
+ let y;
204
+ e[20] !== c || e[21] !== d ? (y = /* @__PURE__ */ i(D, { flexShrink: 0, children: /* @__PURE__ */ i(Qe, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = y) : y = e[22];
205
+ let v;
206
+ e[23] !== h || e[24] !== g || e[25] !== p || e[26] !== S || e[27] !== y ? (v = /* @__PURE__ */ b(st, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: h, borderColor: "border.muted", cursor: "pointer", onClick: g, gap: "sm", children: [
207
+ p,
208
+ S,
209
+ y
210
+ ] }), e[23] = h, e[24] = g, e[25] = p, e[26] = S, e[27] = y, e[28] = v) : v = e[28];
211
+ let I;
212
+ e[29] !== l.newContent || e[30] !== l.oldContent || e[31] !== t || e[32] !== a ? (I = t && /* @__PURE__ */ i(D, { height: "400px", bg: "bg", children: /* @__PURE__ */ i(wt, { original: l.oldContent || "", modified: l.newContent || "", language: a, sideBySide: !1, disableScroll: !1 }) }), e[29] = l.newContent, e[30] = l.oldContent, e[31] = t, e[32] = a, e[33] = I) : I = e[33];
213
+ let P;
214
+ return e[34] !== v || e[35] !== I ? (P = /* @__PURE__ */ b(D, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
215
+ v,
216
+ I
217
+ ] }), e[34] = v, e[35] = I, e[36] = P) : P = e[36], P;
218
+ }, he = He.forwardRef(function(e, l) {
219
+ const t = T(33);
220
+ let r, s, o, a, c, d, h, g, f, u;
221
+ t[0] !== e ? ({
222
+ children: r,
223
+ viewportRef: u,
224
+ viewportProps: f,
225
+ contentProps: s,
226
+ verticalScrollbarProps: g,
227
+ horizontalScrollbarProps: o,
228
+ showVerticalScrollbar: c,
229
+ showHorizontalScrollbar: d,
230
+ showCorner: h,
231
+ ...a
232
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d, t[7] = h, t[8] = g, t[9] = f, t[10] = u) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6], h = t[7], g = t[8], f = t[9], u = t[10]);
233
+ const m = c === void 0 ? !0 : c, p = d === void 0 ? !1 : d, x = h === void 0 ? m && p : h;
234
+ let S;
235
+ t[11] !== r || t[12] !== s ? (S = /* @__PURE__ */ i(Pe.Content, { ...s, children: r }), t[11] = r, t[12] = s, t[13] = S) : S = t[13];
236
+ let y;
237
+ t[14] !== S || t[15] !== f || t[16] !== u ? (y = /* @__PURE__ */ i(Pe.Viewport, { ...f, ref: u, children: S }), t[14] = S, t[15] = f, t[16] = u, t[17] = y) : y = t[17];
238
+ let v;
239
+ t[18] !== m || t[19] !== g ? (v = m ? /* @__PURE__ */ i(Pe.Scrollbar, { ...g, borderRadius: "xs" }) : null, t[18] = m, t[19] = g, t[20] = v) : v = t[20];
240
+ let I;
241
+ t[21] !== o || t[22] !== p ? (I = p ? /* @__PURE__ */ i(Pe.Scrollbar, { orientation: "horizontal", ...o, borderRadius: "xs" }) : null, t[21] = o, t[22] = p, t[23] = I) : I = t[23];
242
+ let P;
243
+ t[24] !== x ? (P = x ? /* @__PURE__ */ i(Pe.Corner, {}) : null, t[24] = x, t[25] = P) : P = t[25];
244
+ let k;
245
+ return t[26] !== l || t[27] !== a || t[28] !== y || t[29] !== v || t[30] !== I || t[31] !== P ? (k = /* @__PURE__ */ b(Pe.Root, { ref: l, ...a, children: [
246
+ y,
247
+ v,
248
+ I,
249
+ P
250
+ ] }), t[26] = l, t[27] = a, t[28] = y, t[29] = v, t[30] = I, t[31] = P, t[32] = k) : k = t[32], k;
251
+ });
252
+ function Tn(n) {
253
+ const {
254
+ diffs: e
255
+ } = n, l = Je(null), t = It({
256
+ count: e.length,
257
+ getScrollElement: () => l.current,
258
+ estimateSize: () => 42,
259
+ overscan: 5
260
+ });
261
+ return e.length === 0 ? /* @__PURE__ */ i(R, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
262
+ p: "xs",
263
+ spaceY: "xs"
264
+ }, children: /* @__PURE__ */ i(kt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(R, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(D, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(he, { position: "absolute", inset: "0", viewportRef: l, contentProps: {
265
+ p: "xs"
266
+ }, children: /* @__PURE__ */ i(D, { position: "relative", width: "100%", style: {
267
+ height: t.getTotalSize()
268
+ }, children: t.getVirtualItems().map((r) => /* @__PURE__ */ i(D, { "data-index": r.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
269
+ transform: `translateY(${r.start}px)`
270
+ }, children: /* @__PURE__ */ i(qt, { diff: e[r.index] }) }, r.key)) }) }) }) });
271
+ }
272
+ const Jt = (n, e) => `${n.version}-${n.date}-${e}`, Qt = (n, e) => `${n.title}-${e}`, je = (n) => {
273
+ const e = T(12);
274
+ let l, t, r;
275
+ e[0] !== n ? ({
276
+ date: l,
277
+ version: r,
124
278
  ...t
125
- } = i, e[0] = i, e[1] = n, e[2] = t, e[3] = o) : (n = e[1], t = e[2], o = e[3]);
279
+ } = n, e[0] = n, e[1] = l, e[2] = t, e[3] = r) : (l = e[1], t = e[2], r = e[3]);
126
280
  let s;
127
- e[4] !== n ? (s = /* @__PURE__ */ l(ae.Title, { textStyle: "sm", color: "fg.muted", children: n }), e[4] = n, e[5] = s) : s = e[5];
128
- let r;
129
- e[6] !== o ? (r = /* @__PURE__ */ l(xe, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ l(ae.Title, { textStyle: "md", fontWeight: "semibold", children: o }) }), e[6] = o, e[7] = r) : r = e[7];
281
+ e[4] !== l ? (s = /* @__PURE__ */ i(oe.Title, { textStyle: "sm", color: "fg.muted", children: l }), e[4] = l, e[5] = s) : s = e[5];
282
+ let o;
283
+ e[6] !== r ? (o = /* @__PURE__ */ i(me, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ i(oe.Title, { textStyle: "md", fontWeight: "semibold", children: r }) }), e[6] = r, e[7] = o) : o = e[7];
130
284
  let a;
131
- return e[8] !== t || e[9] !== s || e[10] !== r ? (a = /* @__PURE__ */ u(C, { ...t, children: [
285
+ return e[8] !== t || e[9] !== s || e[10] !== o ? (a = /* @__PURE__ */ b(R, { ...t, children: [
132
286
  s,
133
- r
134
- ] }), e[8] = t, e[9] = s, e[10] = r, e[11] = a) : a = e[11], a;
135
- }, El = (i) => {
136
- const e = D(14), {
137
- entries: n,
287
+ o
288
+ ] }), e[8] = t, e[9] = s, e[10] = o, e[11] = a) : a = e[11], a;
289
+ }, _n = (n) => {
290
+ const e = T(14), {
291
+ entries: l,
138
292
  title: t,
139
- description: o
140
- } = i;
293
+ description: r
294
+ } = n;
141
295
  let s;
142
- e[0] !== t ? (s = /* @__PURE__ */ l(Ue, { size: "4xl", children: t }), e[0] = t, e[1] = s) : s = e[1];
143
- let r;
144
- e[2] !== o ? (r = o ? /* @__PURE__ */ l(S, { color: "fg.muted", textStyle: "lg", children: o }) : null, e[2] = o, e[3] = r) : r = e[3];
296
+ e[0] !== t ? (s = /* @__PURE__ */ i(ct, { size: "4xl", children: t }), e[0] = t, e[1] = s) : s = e[1];
297
+ let o;
298
+ e[2] !== r ? (o = r ? /* @__PURE__ */ i(w, { color: "fg.muted", textStyle: "lg", children: r }) : null, e[2] = r, e[3] = o) : o = e[3];
145
299
  let a;
146
- e[4] !== s || e[5] !== r ? (a = /* @__PURE__ */ u(C, { textAlign: "center", children: [
300
+ e[4] !== s || e[5] !== o ? (a = /* @__PURE__ */ b(R, { textAlign: "center", children: [
147
301
  s,
148
- r
149
- ] }), e[4] = s, e[5] = r, e[6] = a) : a = e[6];
302
+ o
303
+ ] }), e[4] = s, e[5] = o, e[6] = a) : a = e[6];
150
304
  let c;
151
- e[7] !== n ? (c = n.map(Et), e[7] = n, e[8] = c) : c = e[8];
305
+ e[7] !== l ? (c = l.map(tl), e[7] = l, e[8] = c) : c = e[8];
152
306
  let d;
153
- e[9] !== c ? (d = /* @__PURE__ */ l(B, { position: "relative", children: /* @__PURE__ */ l(ae.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
307
+ e[9] !== c ? (d = /* @__PURE__ */ i(D, { position: "relative", children: /* @__PURE__ */ i(oe.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
154
308
  let h;
155
- return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ u(C, { gap: "20", children: [
309
+ return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ b(R, { gap: "20", children: [
156
310
  a,
157
311
  d
158
312
  ] }), e[11] = a, e[12] = d, e[13] = h) : h = e[13], h;
159
313
  };
160
- function Lt(i) {
161
- return /* @__PURE__ */ l(De, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: i }, i);
314
+ function Zt(n) {
315
+ return /* @__PURE__ */ i(ze, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: n }, n);
162
316
  }
163
- function Rt(i, e) {
164
- return /* @__PURE__ */ l(Ge.Item, { children: /* @__PURE__ */ u(C, { gap: "1", children: [
165
- /* @__PURE__ */ l(S, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: i.title }),
166
- i.description ? /* @__PURE__ */ l(S, { color: "fg.subtle", textStyle: "xs", children: i.description }) : null,
167
- i.link ? /* @__PURE__ */ l(Ee, { href: i.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
168
- ] }) }, $t(i, e));
317
+ function el(n, e) {
318
+ return /* @__PURE__ */ i(Ke.Item, { children: /* @__PURE__ */ b(R, { gap: "1", children: [
319
+ /* @__PURE__ */ i(w, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: n.title }),
320
+ n.description ? /* @__PURE__ */ i(w, { color: "fg.subtle", textStyle: "xs", children: n.description }) : null,
321
+ n.link ? /* @__PURE__ */ i(Be, { href: n.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
322
+ ] }) }, Qt(n, e));
169
323
  }
170
- function Et(i, e) {
171
- return /* @__PURE__ */ u(ae.Item, { children: [
172
- /* @__PURE__ */ l(ae.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
324
+ function tl(n, e) {
325
+ return /* @__PURE__ */ b(oe.Item, { children: [
326
+ /* @__PURE__ */ i(oe.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
173
327
  base: "static",
174
328
  md: "sticky"
175
- }, children: /* @__PURE__ */ l(Be, { hideBelow: "md", date: i.date, version: i.version }) }),
176
- /* @__PURE__ */ u(ae.Connector, { children: [
177
- /* @__PURE__ */ l(ae.Separator, {}),
178
- /* @__PURE__ */ l(ae.Indicator, {})
329
+ }, children: /* @__PURE__ */ i(je, { hideBelow: "md", date: n.date, version: n.version }) }),
330
+ /* @__PURE__ */ b(oe.Connector, { children: [
331
+ /* @__PURE__ */ i(oe.Separator, {}),
332
+ /* @__PURE__ */ i(oe.Indicator, {})
179
333
  ] }),
180
- /* @__PURE__ */ l(ae.Content, { children: /* @__PURE__ */ u(C, { gap: "4", children: [
181
- /* @__PURE__ */ l(Be, { hideFrom: "md", date: i.date, version: i.version }),
182
- /* @__PURE__ */ u(C, { gap: "2", children: [
183
- /* @__PURE__ */ l(ae.Title, { fontSize: "lg", fontWeight: "medium", children: i.title }),
184
- i.description ? /* @__PURE__ */ l(S, { color: "fg.muted", textStyle: "sm", children: i.description }) : null
334
+ /* @__PURE__ */ i(oe.Content, { children: /* @__PURE__ */ b(R, { gap: "4", children: [
335
+ /* @__PURE__ */ i(je, { hideFrom: "md", date: n.date, version: n.version }),
336
+ /* @__PURE__ */ b(R, { gap: "2", children: [
337
+ /* @__PURE__ */ i(oe.Title, { fontSize: "lg", fontWeight: "medium", children: n.title }),
338
+ n.description ? /* @__PURE__ */ i(w, { color: "fg.muted", textStyle: "sm", children: n.description }) : null
185
339
  ] }),
186
- i.tags && i.tags.length > 0 ? /* @__PURE__ */ l(te, { children: i.tags.map(Lt) }) : null,
187
- i.image ? /* @__PURE__ */ l(Ve, { rounded: "l2", src: i.image, alt: i.title }) : null,
188
- i.changes && i.changes.length > 0 ? /* @__PURE__ */ l(Ge.Root, { pl: "4", gap: "4", children: i.changes.map(Rt) }) : null
340
+ n.tags && n.tags.length > 0 ? /* @__PURE__ */ i(F, { children: n.tags.map(Zt) }) : null,
341
+ n.image ? /* @__PURE__ */ i(at, { rounded: "l2", src: n.image, alt: n.title }) : null,
342
+ n.changes && n.changes.length > 0 ? /* @__PURE__ */ i(Ke.Root, { pl: "4", gap: "4", children: n.changes.map(el) }) : null
189
343
  ] }) })
190
- ] }, Pt(i, e));
344
+ ] }, Jt(n, e));
191
345
  }
192
- const zt = /^(#{1,3})\s+(.+)$/gm, Ht = ".rich-text__h1, .rich-text__h2, .rich-text__h3", Mt = (i, e) => i.classList.contains(`rich-text__h${e}`), Wt = (i) => i.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Re = (i) => {
346
+ const ll = /^(#{1,3})\s+(.+)$/gm, nl = ".rich-text__h1, .rich-text__h2, .rich-text__h3", il = (n, e) => n.classList.contains(`rich-text__h${e}`), rl = (n) => n.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Me = (n) => {
193
347
  const e = [];
194
- let n = 0;
195
- for (const t of i.matchAll(zt)) {
196
- const o = t[1].length, s = t[2].trim(), a = `${Wt(s) || "heading"}-${n}`;
348
+ let l = 0;
349
+ for (const t of n.matchAll(ll)) {
350
+ const r = t[1].length, s = t[2].trim(), a = `${rl(s) || "heading"}-${l}`;
197
351
  e.push({
198
352
  id: a,
199
- level: o,
353
+ level: r,
200
354
  text: s
201
- }), n += 1;
355
+ }), l += 1;
202
356
  }
203
357
  return e;
204
- }, Bt = (i, e) => {
205
- const n = Array.from(e.querySelectorAll(Ht)), t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
358
+ }, ol = (n, e) => {
359
+ const l = Array.from(e.querySelectorAll(nl)), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
206
360
  let s = 0;
207
- for (const r of i)
208
- for (let a = s; a < n.length; a += 1) {
209
- const c = n[a], d = c.textContent?.trim();
210
- if (!(!d || d !== r.text) && Mt(c, r.level)) {
211
- t.set(r.id, c), o.set(c, r.id), s = a + 1;
361
+ for (const o of n)
362
+ for (let a = s; a < l.length; a += 1) {
363
+ const c = l[a], d = c.textContent?.trim();
364
+ if (!(!d || d !== o.text) && il(c, o.level)) {
365
+ t.set(o.id, c), r.set(c, o.id), s = a + 1;
212
366
  break;
213
367
  }
214
368
  }
215
369
  return {
216
370
  elementsByHeadingId: t,
217
- headingIdByElement: o
371
+ headingIdByElement: r
218
372
  };
219
- }, Ae = (i) => {
220
- const e = D(14), {
221
- heading: n,
373
+ }, Ge = (n) => {
374
+ const e = T(14), {
375
+ heading: l,
222
376
  isActive: t,
223
- emphasized: o,
377
+ emphasized: r,
224
378
  variant: s,
225
- onSelect: r
226
- } = i, a = s === "line", c = `calc(${n.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", h = t || o ? "medium" : "normal", f = a ? "1px" : "0px", g = a ? t ? "fg" : "bg.muted" : "transparent";
227
- let m;
228
- e[0] !== a ? (m = a ? {
379
+ onSelect: o
380
+ } = n, a = s === "line", c = `calc(${l.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", h = t || r ? "medium" : "normal", g = a ? "1px" : "0px", f = a ? t ? "fg" : "bg.muted" : "transparent";
381
+ let u;
382
+ e[0] !== a ? (u = a ? {
229
383
  borderStartColor: "bg.emphasized"
230
384
  } : {
231
385
  color: "fg"
232
- }, e[0] = a, e[1] = m) : m = e[1];
386
+ }, e[0] = a, e[1] = u) : u = e[1];
387
+ let m;
388
+ e[2] !== l.id || e[3] !== o ? (m = () => o(l.id), e[2] = l.id, e[3] = o, e[4] = m) : m = e[4];
233
389
  let p;
234
- e[2] !== n.id || e[3] !== r ? (p = () => r(n.id), e[2] = n.id, e[3] = r, e[4] = p) : p = e[4];
235
- let x;
236
- return e[5] !== n.text || e[6] !== c || e[7] !== d || e[8] !== h || e[9] !== f || e[10] !== g || e[11] !== m || e[12] !== p ? (x = /* @__PURE__ */ l(B, { 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: h, borderStartWidth: f, borderStartColor: g, _hover: m, onClick: p, children: n.text }), e[5] = n.text, e[6] = c, e[7] = d, e[8] = h, e[9] = f, e[10] = g, e[11] = m, e[12] = p, e[13] = x) : x = e[13], x;
237
- }, zl = (i) => {
238
- const e = D(39), {
239
- markdown: n,
390
+ return e[5] !== l.text || e[6] !== c || e[7] !== d || e[8] !== h || e[9] !== g || e[10] !== f || e[11] !== u || e[12] !== m ? (p = /* @__PURE__ */ i(D, { 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: h, borderStartWidth: g, borderStartColor: f, _hover: u, onClick: m, children: l.text }), e[5] = l.text, e[6] = c, e[7] = d, e[8] = h, e[9] = g, e[10] = f, e[11] = u, e[12] = m, e[13] = p) : p = e[13], p;
391
+ }, $n = (n) => {
392
+ const e = T(39), {
393
+ markdown: l,
240
394
  title: t,
241
- rootMargin: o
242
- } = i, s = t === void 0 ? "On this page" : t, r = o === void 0 ? "-20% 0% -35% 0%" : o, a = Re(n), c = Ke(), [d, h] = Te(a[0]?.id ?? ""), [f, g] = Te(!1);
243
- let m;
244
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
395
+ rootMargin: r
396
+ } = n, s = t === void 0 ? "On this page" : t, o = r === void 0 ? "-20% 0% -35% 0%" : r, a = Me(l), c = dt(), [d, h] = Re(a[0]?.id ?? ""), [g, f] = Re(!1);
397
+ let u;
398
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
245
399
  elementsByHeadingId: /* @__PURE__ */ new Map(),
246
400
  headingIdByElement: /* @__PURE__ */ new Map()
247
- }, e[0] = m) : m = e[0];
248
- const p = rt(m);
249
- let x, b;
250
- e[1] !== n ? (x = () => {
251
- const $ = Re(n);
252
- h($[0]?.id ?? "");
253
- }, b = [n], e[1] = n, e[2] = x, e[3] = b) : (x = e[2], b = e[3]), ze(x, b);
254
- let y, I;
255
- if (e[4] !== c || e[5] !== n || e[6] !== r ? (y = () => {
256
- const $ = Re(n), ie = c.getDocument(), ke = c.getWindow(), re = Bt($, ie);
257
- if (p.current = re, re.headingIdByElement.size === 0)
401
+ }, e[0] = u) : u = e[0];
402
+ const m = Je(u);
403
+ let p, x;
404
+ e[1] !== l ? (p = () => {
405
+ const H = Me(l);
406
+ h(H[0]?.id ?? "");
407
+ }, x = [l], e[1] = l, e[2] = p, e[3] = x) : (p = e[2], x = e[3]), We(p, x);
408
+ let S, y;
409
+ if (e[4] !== c || e[5] !== l || e[6] !== o ? (S = () => {
410
+ const H = Me(l), le = c.getDocument(), Se = c.getWindow(), fe = ol(H, le);
411
+ if (m.current = fe, fe.headingIdByElement.size === 0)
258
412
  return;
259
- const ce = new ke.IntersectionObserver((se) => {
260
- const de = se.filter(At).sort(Ot);
261
- if (de.length === 0)
413
+ const se = new Se.IntersectionObserver((re) => {
414
+ const ae = re.filter(sl).sort(al);
415
+ if (ae.length === 0)
262
416
  return;
263
- const ge = de[0].target, he = re.headingIdByElement.get(ge);
264
- he && h(he);
417
+ const ge = ae[0].target, ce = fe.headingIdByElement.get(ge);
418
+ ce && h(ce);
265
419
  }, {
266
- rootMargin: r
420
+ rootMargin: o
267
421
  });
268
- for (const se of re.headingIdByElement.keys())
269
- ce.observe(se);
422
+ for (const re of fe.headingIdByElement.keys())
423
+ se.observe(re);
270
424
  return () => {
271
- ce.disconnect();
425
+ se.disconnect();
272
426
  };
273
- }, I = [c, n, r], e[4] = c, e[5] = n, e[6] = r, e[7] = y, e[8] = I) : (y = e[7], I = e[8]), ze(y, I), a.length === 0)
427
+ }, y = [c, l, o], e[4] = c, e[5] = l, e[6] = o, e[7] = S, e[8] = y) : (S = e[7], y = e[8]), We(S, y), a.length === 0)
274
428
  return null;
275
- let T;
276
- e[9] !== d ? (T = ($) => $.id === d, e[9] = d, e[10] = T) : T = e[10];
277
- const P = a.find(T);
278
- let k;
279
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = ($) => {
280
- const ie = p.current.elementsByHeadingId.get($);
281
- h($), g(!1), ie?.scrollIntoView({
429
+ let v;
430
+ e[9] !== d ? (v = (H) => H.id === d, e[9] = d, e[10] = v) : v = e[10];
431
+ const I = a.find(v);
432
+ let P;
433
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (H) => {
434
+ const le = m.current.elementsByHeadingId.get(H);
435
+ h(H), f(!1), le?.scrollIntoView({
282
436
  behavior: "smooth",
283
437
  block: "start"
284
438
  });
285
- }, e[11] = k) : k = e[11];
286
- const v = k;
439
+ }, e[11] = P) : P = e[11];
440
+ const k = P;
441
+ let C;
442
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (H) => f(H.open), e[12] = C) : C = e[12];
287
443
  let _;
288
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = ($) => g($.open), e[12] = _) : _ = e[12];
289
- let z;
290
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ l(ne, { as: He, color: "fg.subtle" }), e[13] = z) : z = e[13];
444
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(ne, { as: Oe, color: "fg.subtle" }), e[13] = _) : _ = e[13];
291
445
  let L;
292
- e[14] !== s ? (L = /* @__PURE__ */ l(S, { textStyle: "sm", fontWeight: "medium", color: "fg", children: s }), e[14] = s, e[15] = L) : L = e[15];
293
- const Y = f ? null : /* @__PURE__ */ u(it, { children: [
294
- /* @__PURE__ */ l(ne, { as: Pe, color: "fg.subtle" }),
295
- /* @__PURE__ */ l(S, { textStyle: "sm", color: "fg.muted", children: P?.text })
446
+ e[14] !== s ? (L = /* @__PURE__ */ i(w, { textStyle: "sm", fontWeight: "medium", color: "fg", children: s }), e[14] = s, e[15] = L) : L = e[15];
447
+ const B = g ? null : /* @__PURE__ */ b(St, { children: [
448
+ /* @__PURE__ */ i(ne, { as: pe, color: "fg.subtle" }),
449
+ /* @__PURE__ */ i(w, { textStyle: "sm", color: "fg.muted", children: I?.text })
296
450
  ] });
297
- let M;
298
- e[16] !== L || e[17] !== Y ? (M = /* @__PURE__ */ u(te, { children: [
299
- z,
451
+ let N;
452
+ e[16] !== L || e[17] !== B ? (N = /* @__PURE__ */ b(F, { children: [
453
+ _,
300
454
  L,
301
- Y
302
- ] }), e[16] = L, e[17] = Y, e[18] = M) : M = e[18];
303
- const j = f ? "rotate(180deg)" : "rotate(0deg)";
304
- let H;
305
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ l(ne, { as: dt, color: "fg.subtle" }), e[19] = H) : H = e[19];
306
- let R;
307
- e[20] !== j ? (R = /* @__PURE__ */ l(B, { transition: "transform 0.2s", transform: j, children: H }), e[20] = j, e[21] = R) : R = e[21];
455
+ B
456
+ ] }), e[16] = L, e[17] = B, e[18] = N) : N = e[18];
457
+ const O = g ? "rotate(180deg)" : "rotate(0deg)";
458
+ let z;
459
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ i(ne, { as: Ze, color: "fg.subtle" }), e[19] = z) : z = e[19];
460
+ let E;
461
+ e[20] !== O ? (E = /* @__PURE__ */ i(D, { transition: "transform 0.2s", transform: O, children: z }), e[20] = O, e[21] = E) : E = e[21];
308
462
  let A;
309
- e[22] !== M || e[23] !== R ? (A = /* @__PURE__ */ u(oe.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
310
- M,
311
- R
312
- ] }), e[22] = M, e[23] = R, e[24] = A) : A = e[24];
313
- let O;
314
- e[25] !== d ? (O = ($) => /* @__PURE__ */ l(Ae, { heading: $, variant: "minimal", emphasized: !1, isActive: d === $.id, onSelect: v }, $.id), e[25] = d, e[26] = O) : O = e[26];
315
- const W = B, N = "md", w = "6", G = "xs", Z = "auto", V = "sticky", X = "calc(100vh - 3rem)";
463
+ e[22] !== N || e[23] !== E ? (A = /* @__PURE__ */ b(xe.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
464
+ N,
465
+ E
466
+ ] }), e[22] = N, e[23] = E, e[24] = A) : A = e[24];
467
+ let M;
468
+ e[25] !== d ? (M = (H) => /* @__PURE__ */ i(Ge, { heading: H, variant: "minimal", emphasized: !1, isActive: d === H.id, onSelect: k }, H.id), e[25] = d, e[26] = M) : M = e[26];
469
+ const W = he, j = "md", $ = "6", G = "xs", Q = "sticky", Y = "calc(100vh - 3rem)";
470
+ let X;
471
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ i(ne, { as: Oe, color: "fg.subtle" }), e[27] = X) : X = e[27];
316
472
  let U;
317
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ l(ne, { as: He, color: "fg.subtle" }), e[27] = U) : U = e[27];
318
- let F;
319
- e[28] !== s ? (F = /* @__PURE__ */ u(te, { mb: "4", children: [
320
- U,
321
- /* @__PURE__ */ l(S, { fontWeight: "medium", textStyle: "sm", children: s })
322
- ] }), e[28] = s, e[29] = F) : F = e[29];
323
- const K = C, le = "0";
473
+ e[28] !== s ? (U = /* @__PURE__ */ b(F, { mb: "4", children: [
474
+ X,
475
+ /* @__PURE__ */ i(w, { fontWeight: "medium", textStyle: "sm", children: s })
476
+ ] }), e[28] = s, e[29] = U) : U = e[29];
477
+ const Z = R, te = "0";
478
+ let K;
479
+ e[30] !== d ? (K = (H) => /* @__PURE__ */ i(Ge, { heading: H, variant: "line", emphasized: H.level === 1, isActive: d === H.id, onSelect: k }, H.id), e[30] = d, e[31] = K) : K = e[31];
480
+ const ee = a.map(K);
481
+ let V;
482
+ e[32] !== Z || e[33] !== ee ? (V = /* @__PURE__ */ i(Z, { gap: te, children: ee }), e[32] = Z, e[33] = ee, e[34] = V) : V = e[34];
324
483
  let q;
325
- e[30] !== d ? (q = ($) => /* @__PURE__ */ l(Ae, { heading: $, variant: "line", emphasized: $.level === 1, isActive: d === $.id, onSelect: v }, $.id), e[30] = d, e[31] = q) : q = e[31];
326
- const ee = a.map(q);
327
- let J;
328
- e[32] !== K || e[33] !== ee ? (J = /* @__PURE__ */ l(K, { gap: le, children: ee }), e[32] = K, e[33] = ee, e[34] = J) : J = e[34];
329
- let E;
330
- return e[35] !== W || e[36] !== F || e[37] !== J ? (E = /* @__PURE__ */ u(W, { hideBelow: N, top: w, width: G, overflowY: Z, position: V, maxH: X, children: [
331
- F,
332
- J
333
- ] }), e[35] = W, e[36] = F, e[37] = J, e[38] = E) : E = e[38], /* @__PURE__ */ u(C, { gap: "0", width: "full", children: [
334
- /* @__PURE__ */ l(B, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ u(oe.Root, { open: f, onOpenChange: _, children: [
484
+ return e[35] !== W || e[36] !== U || e[37] !== V ? (q = /* @__PURE__ */ b(W, { hideBelow: j, top: $, width: G, position: Q, maxH: Y, children: [
485
+ U,
486
+ V
487
+ ] }), e[35] = W, e[36] = U, e[37] = V, e[38] = q) : q = e[38], /* @__PURE__ */ b(R, { gap: "0", width: "full", children: [
488
+ /* @__PURE__ */ i(D, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(xe.Root, { open: g, onOpenChange: C, children: [
335
489
  A,
336
- /* @__PURE__ */ l(oe.Content, { children: /* @__PURE__ */ l(B, { mt: "3", maxH: "30vh", overflowY: "auto", children: /* @__PURE__ */ l(C, { gap: "0", children: a.map(O) }) }) })
490
+ /* @__PURE__ */ i(xe.Content, { children: /* @__PURE__ */ i(he, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(R, { gap: "0", children: a.map(M) }) }) })
337
491
  ] }) }),
338
- E
492
+ q
339
493
  ] });
340
494
  };
341
- function At(i) {
342
- return i.isIntersecting;
495
+ function sl(n) {
496
+ return n.isIntersecting;
343
497
  }
344
- function Ot(i, e) {
345
- return i.boundingClientRect.top - e.boundingClientRect.top;
498
+ function al(n, e) {
499
+ return n.boundingClientRect.top - e.boundingClientRect.top;
346
500
  }
347
- const Oe = (i) => {
348
- const e = D(24), {
349
- item: n,
501
+ const Xe = (n) => {
502
+ const e = T(24), {
503
+ item: l,
350
504
  direction: t
351
- } = i, o = t === "prev", s = o ? "Previous" : "Next", r = o ? "start" : "end", a = o ? "flex-start" : "flex-end";
505
+ } = n, r = t === "prev", s = r ? "Previous" : "Next", o = r ? "start" : "end", a = r ? "flex-start" : "flex-end";
352
506
  let c;
353
- e[0] !== o ? (c = o ? /* @__PURE__ */ l(ht, { size: 16 }) : null, e[0] = o, e[1] = c) : c = e[1];
354
- const d = o ? "flex-start" : "flex-end";
507
+ e[0] !== r ? (c = r ? /* @__PURE__ */ i(Pt, { size: 16 }) : null, e[0] = r, e[1] = c) : c = e[1];
508
+ const d = r ? "flex-start" : "flex-end";
355
509
  let h;
356
- e[2] !== s ? (h = /* @__PURE__ */ l(S, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: s }), e[2] = s, e[3] = h) : h = e[3];
357
- let f;
358
- e[4] !== n.title ? (f = /* @__PURE__ */ l(S, { textStyle: "sm", fontWeight: "medium", children: n.title }), e[4] = n.title, e[5] = f) : f = e[5];
510
+ e[2] !== s ? (h = /* @__PURE__ */ i(w, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: s }), e[2] = s, e[3] = h) : h = e[3];
359
511
  let g;
360
- e[6] !== n.description ? (g = n.description ? /* @__PURE__ */ l(S, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: n.description }) : null, e[6] = n.description, e[7] = g) : g = e[7];
361
- let m;
362
- e[8] !== d || e[9] !== h || e[10] !== f || e[11] !== g ? (m = /* @__PURE__ */ u(C, { gap: "0", alignItems: d, children: [
512
+ e[4] !== l.title ? (g = /* @__PURE__ */ i(w, { textStyle: "sm", fontWeight: "medium", children: l.title }), e[4] = l.title, e[5] = g) : g = e[5];
513
+ let f;
514
+ e[6] !== l.description ? (f = l.description ? /* @__PURE__ */ i(w, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: l.description }) : null, e[6] = l.description, e[7] = f) : f = e[7];
515
+ let u;
516
+ e[8] !== d || e[9] !== h || e[10] !== g || e[11] !== f ? (u = /* @__PURE__ */ b(R, { gap: "0", alignItems: d, children: [
363
517
  h,
364
- f,
365
- g
366
- ] }), e[8] = d, e[9] = h, e[10] = f, e[11] = g, e[12] = m) : m = e[12];
518
+ g,
519
+ f
520
+ ] }), e[8] = d, e[9] = h, e[10] = g, e[11] = f, e[12] = u) : u = e[12];
521
+ let m;
522
+ e[13] !== r ? (m = r ? null : /* @__PURE__ */ i(pe, { size: 16 }), e[13] = r, e[14] = m) : m = e[14];
367
523
  let p;
368
- e[13] !== o ? (p = o ? null : /* @__PURE__ */ l(Pe, { size: 16 }), e[13] = o, e[14] = p) : p = e[14];
369
- let x;
370
- e[15] !== n.href || e[16] !== c || e[17] !== m || e[18] !== p ? (x = /* @__PURE__ */ u("a", { href: n.href, children: [
524
+ e[15] !== l.href || e[16] !== c || e[17] !== u || e[18] !== m ? (p = /* @__PURE__ */ b("a", { href: l.href, children: [
371
525
  c,
372
- m,
373
- p
374
- ] }), e[15] = n.href, e[16] = c, e[17] = m, e[18] = p, e[19] = x) : x = e[19];
375
- let b;
376
- return e[20] !== r || e[21] !== a || e[22] !== x ? (b = /* @__PURE__ */ l(me, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: r, justifyContent: a, flex: "1", children: x }), e[20] = r, e[21] = a, e[22] = x, e[23] = b) : b = e[23], b;
377
- }, Hl = (i) => {
378
- const e = D(11), {
379
- previous: n,
526
+ u,
527
+ m
528
+ ] }), e[15] = l.href, e[16] = c, e[17] = u, e[18] = m, e[19] = p) : p = e[19];
529
+ let x;
530
+ return e[20] !== o || e[21] !== a || e[22] !== p ? (x = /* @__PURE__ */ i(ue, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: o, justifyContent: a, flex: "1", children: p }), e[20] = o, e[21] = a, e[22] = p, e[23] = x) : x = e[23], x;
531
+ }, Rn = (n) => {
532
+ const e = T(11), {
533
+ previous: l,
380
534
  next: t
381
- } = i;
382
- if (!n && !t)
535
+ } = n;
536
+ if (!l && !t)
383
537
  return null;
384
- let o;
385
- e[0] !== n ? (o = n ? /* @__PURE__ */ l(Oe, { item: n, direction: "prev" }) : null, e[0] = n, e[1] = o) : o = e[1];
386
- let s;
387
- e[2] !== o ? (s = /* @__PURE__ */ l(B, { flex: "1", children: o }), e[2] = o, e[3] = s) : s = e[3];
388
538
  let r;
389
- e[4] !== t ? (r = t ? /* @__PURE__ */ l(Oe, { item: t, direction: "next" }) : null, e[4] = t, e[5] = r) : r = e[5];
539
+ e[0] !== l ? (r = l ? /* @__PURE__ */ i(Xe, { item: l, direction: "prev" }) : null, e[0] = l, e[1] = r) : r = e[1];
540
+ let s;
541
+ e[2] !== r ? (s = /* @__PURE__ */ i(D, { flex: "1", children: r }), e[2] = r, e[3] = s) : s = e[3];
542
+ let o;
543
+ e[4] !== t ? (o = t ? /* @__PURE__ */ i(Xe, { item: t, direction: "next" }) : null, e[4] = t, e[5] = o) : o = e[5];
390
544
  let a;
391
- e[6] !== r ? (a = /* @__PURE__ */ l(B, { flex: "1", children: r }), e[6] = r, e[7] = a) : a = e[7];
545
+ e[6] !== o ? (a = /* @__PURE__ */ i(D, { flex: "1", children: o }), e[6] = o, e[7] = a) : a = e[7];
392
546
  let c;
393
- return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ u(te, { justify: "space-between", gap: "4", children: [
547
+ return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ b(F, { justify: "space-between", gap: "4", children: [
394
548
  s,
395
549
  a
396
550
  ] }), e[8] = s, e[9] = a, e[10] = c) : c = e[10], c;
397
- }, Gt = (i) => {
398
- const e = D(17), {
399
- children: n,
551
+ }, cl = (n) => {
552
+ const e = T(17), {
553
+ children: l,
400
554
  title: t,
401
- defaultOpen: o,
555
+ defaultOpen: r,
402
556
  action: s
403
- } = i, r = o === void 0 ? !0 : o;
557
+ } = n, o = r === void 0 ? !0 : r;
404
558
  let a;
405
559
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
406
560
  background: "bg.muted"
407
561
  }, e[0] = a) : a = e[0];
408
562
  let c;
409
- e[1] !== t ? (c = t && /* @__PURE__ */ l(S, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
563
+ e[1] !== t ? (c = t && /* @__PURE__ */ i(w, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
410
564
  let d;
411
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ l(oe.Indicator, { transition: "transform 0.2s", _open: {
565
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(xe.Indicator, { transition: "transform 0.2s", _open: {
412
566
  transform: "rotate(90deg)"
413
- }, children: /* @__PURE__ */ l(Pe, { size: 16 }) }), e[3] = d) : d = e[3];
567
+ }, children: /* @__PURE__ */ i(pe, { size: 16 }) }), e[3] = d) : d = e[3];
414
568
  let h;
415
- e[4] !== c ? (h = /* @__PURE__ */ u(oe.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
569
+ e[4] !== c ? (h = /* @__PURE__ */ b(xe.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
416
570
  c,
417
571
  d
418
572
  ] }), e[4] = c, e[5] = h) : h = e[5];
419
- let f;
420
- e[6] !== s ? (f = s && /* @__PURE__ */ l(B, { marginLeft: "auto", onClick: Xt, children: s }), e[6] = s, e[7] = f) : f = e[7];
421
573
  let g;
422
- e[8] !== h || e[9] !== f ? (g = /* @__PURE__ */ u(xe, { children: [
574
+ e[6] !== s ? (g = s && /* @__PURE__ */ i(D, { marginLeft: "auto", onClick: dl, children: s }), e[6] = s, e[7] = g) : g = e[7];
575
+ let f;
576
+ e[8] !== h || e[9] !== g ? (f = /* @__PURE__ */ b(me, { children: [
423
577
  h,
424
- f
425
- ] }), e[8] = h, e[9] = f, e[10] = g) : g = e[10];
578
+ g
579
+ ] }), e[8] = h, e[9] = g, e[10] = f) : f = e[10];
580
+ let u;
581
+ e[11] !== l ? (u = /* @__PURE__ */ i(xe.Content, { children: l }), e[11] = l, e[12] = u) : u = e[12];
426
582
  let m;
427
- e[11] !== n ? (m = /* @__PURE__ */ l(oe.Content, { children: /* @__PURE__ */ l(ue.Root, { children: /* @__PURE__ */ l(C, { gap: "0", paddingLeft: "xs", paddingY: "xs", children: n }) }) }), e[11] = n, e[12] = m) : m = e[12];
428
- let p;
429
- return e[13] !== r || e[14] !== g || e[15] !== m ? (p = /* @__PURE__ */ u(oe.Root, { defaultOpen: r, width: "full", children: [
430
- g,
431
- m
432
- ] }), e[13] = r, e[14] = g, e[15] = m, e[16] = p) : p = e[16], p;
583
+ return e[13] !== o || e[14] !== f || e[15] !== u ? (m = /* @__PURE__ */ b(xe.Root, { defaultOpen: o, width: "full", children: [
584
+ f,
585
+ u
586
+ ] }), e[13] = o, e[14] = f, e[15] = u, e[16] = m) : m = e[16], m;
433
587
  };
434
- function Xt(i) {
435
- return i.stopPropagation();
588
+ function dl(n) {
589
+ return n.stopPropagation();
436
590
  }
437
- const Yt = {
591
+ const hl = {
438
592
  default: {
439
593
  paddingX: "sm",
440
594
  paddingY: "xs",
@@ -453,95 +607,95 @@ const Yt = {
453
607
  secondaryMarginLeft: "0",
454
608
  secondaryTextStyle: "label/XS/regular"
455
609
  }
456
- }, Le = (i) => {
457
- const e = D(67), {
458
- id: n,
610
+ }, Ae = (n) => {
611
+ const e = T(67), {
612
+ id: l,
459
613
  primaryLabel: t,
460
- tooltipLabel: o,
614
+ tooltipLabel: r,
461
615
  secondaryLabel: s,
462
- leftIcon: r,
616
+ leftIcon: o,
463
617
  leftSlot: a,
464
618
  rightIcon: c,
465
619
  leftIconColor: d,
466
620
  rightIconColor: h,
467
- leftIconSize: f,
468
- rightIconSize: g,
469
- rightIconAriaLabel: m,
470
- rightTooltipLabel: p,
471
- onRightIconClick: x,
472
- isDisabled: b,
473
- isSelected: y,
474
- tagLabel: I,
475
- tagColorPalette: T,
476
- tagVariant: P,
477
- variant: k,
478
- tabIndex: v,
479
- width: _,
480
- maxWidth: z,
621
+ leftIconSize: g,
622
+ rightIconSize: f,
623
+ rightIconAriaLabel: u,
624
+ rightTooltipLabel: m,
625
+ onRightIconClick: p,
626
+ isDisabled: x,
627
+ isSelected: S,
628
+ tagLabel: y,
629
+ tagColorPalette: v,
630
+ tagVariant: I,
631
+ variant: P,
632
+ tabIndex: k,
633
+ width: C,
634
+ maxWidth: _,
481
635
  setRefElement: L
482
- } = i, Y = r === void 0 ? null : r, M = d === void 0 ? "fg.menu-item.default" : d, j = h === void 0 ? "fg.menu-item.default" : h, H = T === void 0 ? "yellow" : T, R = P === void 0 ? "subtle" : P, A = k === void 0 ? "default" : k, {
483
- onClick: O,
636
+ } = n, B = o === void 0 ? null : o, N = d === void 0 ? "fg.menu-item.default" : d, O = h === void 0 ? "fg.menu-item.default" : h, z = v === void 0 ? "yellow" : v, E = I === void 0 ? "subtle" : I, A = P === void 0 ? "default" : P, {
637
+ onClick: M,
484
638
  onMouseDown: W,
485
- onMouseEnter: N
486
- } = i, w = Yt[A], G = y ? "bg.menu-item.selected" : "bg.menu-item.default", Z = f ?? w.iconSize, V = g ?? w.iconSize, X = !!(x && c);
639
+ onMouseEnter: j
640
+ } = n, $ = hl[A], G = S ? "bg.menu-item.selected" : "bg.menu-item.default", Q = g ?? $.iconSize, Y = f ?? $.iconSize, X = !!(p && c);
487
641
  let U;
488
- e[0] !== X ? (U = (Ie) => {
489
- X && (Ie.preventDefault(), Ie.stopPropagation());
642
+ e[0] !== X ? (U = (De) => {
643
+ X && (De.preventDefault(), De.stopPropagation());
490
644
  }, e[0] = X, e[1] = U) : U = e[1];
491
- const F = U;
492
- let K;
493
- e[2] !== X || e[3] !== x ? (K = (Ie) => {
494
- !X || !x || (Ie.preventDefault(), Ie.stopPropagation(), x());
495
- }, e[2] = X, e[3] = x, e[4] = K) : K = e[4];
496
- const le = K, q = z ?? "20rem", ee = b ? "default" : "pointer", J = n ?? t;
497
- let E, $;
498
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
645
+ const Z = U;
646
+ let te;
647
+ e[2] !== X || e[3] !== p ? (te = (De) => {
648
+ !X || !p || (De.preventDefault(), De.stopPropagation(), p());
649
+ }, e[2] = X, e[3] = p, e[4] = te) : te = e[4];
650
+ const K = te, ee = _ ?? "20rem", V = x ? "default" : "pointer", q = l ?? t;
651
+ let H, le;
652
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
499
653
  bg: "bg.menu-item.hover"
500
- }, $ = {
654
+ }, le = {
501
655
  bg: "bg.menu-item.focus"
502
- }, e[5] = E, e[6] = $) : (E = e[5], $ = e[6]);
503
- let ie;
504
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = {
656
+ }, e[5] = H, e[6] = le) : (H = e[5], le = e[6]);
657
+ let Se;
658
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = {
505
659
  placement: "right"
506
- }, e[7] = ie) : ie = e[7];
507
- const ke = !o;
508
- let re;
509
- e[8] !== Y || e[9] !== M || e[10] !== a || e[11] !== Z ? (re = a || (Y ? /* @__PURE__ */ l(ne, { as: Y, boxSize: Z, color: M }) : null), e[8] = Y, e[9] = M, e[10] = a, e[11] = Z, e[12] = re) : re = e[12];
510
- let ce;
511
- e[13] !== t || e[14] !== w.primaryTextStyle ? (ce = /* @__PURE__ */ l(S, { lineClamp: 1, textOverflow: "ellipsis", textStyle: w.primaryTextStyle, children: t }), e[13] = t, e[14] = w.primaryTextStyle, e[15] = ce) : ce = e[15];
660
+ }, e[7] = Se) : Se = e[7];
661
+ const fe = !r;
512
662
  let se;
513
- e[16] !== re || e[17] !== ce ? (se = /* @__PURE__ */ u(xe, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
514
- re,
515
- ce
516
- ] }), e[16] = re, e[17] = ce, e[18] = se) : se = e[18];
517
- let de;
518
- e[19] !== s || e[20] !== w.secondaryMarginLeft || e[21] !== w.secondaryTextStyle ? (de = s && /* @__PURE__ */ l(S, { ml: w.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: w.secondaryTextStyle, color: "fg.menu-item.secondary", children: s }), e[19] = s, e[20] = w.secondaryMarginLeft, e[21] = w.secondaryTextStyle, e[22] = de) : de = e[22];
519
- let ge;
520
- e[23] !== se || e[24] !== de ? (ge = /* @__PURE__ */ u(C, { gap: "2xs", children: [
663
+ e[8] !== B || e[9] !== N || e[10] !== a || e[11] !== Q ? (se = a || (B ? /* @__PURE__ */ i(ne, { as: B, boxSize: Q, color: N }) : null), e[8] = B, e[9] = N, e[10] = a, e[11] = Q, e[12] = se) : se = e[12];
664
+ let re;
665
+ e[13] !== t || e[14] !== $.primaryTextStyle ? (re = /* @__PURE__ */ i(w, { lineClamp: 1, textOverflow: "ellipsis", textStyle: $.primaryTextStyle, children: t }), e[13] = t, e[14] = $.primaryTextStyle, e[15] = re) : re = e[15];
666
+ let ae;
667
+ e[16] !== se || e[17] !== re ? (ae = /* @__PURE__ */ b(me, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
521
668
  se,
522
- de
523
- ] }), e[23] = se, e[24] = de, e[25] = ge) : ge = e[25];
524
- let he;
525
- e[26] !== ke || e[27] !== ge || e[28] !== o ? (he = /* @__PURE__ */ l(_e, { positioning: ie, content: o, disabled: ke, children: ge }), e[26] = ke, e[27] = ge, e[28] = o, e[29] = he) : he = e[29];
526
- let be;
527
- e[30] !== le || e[31] !== F || e[32] !== X || e[33] !== V || e[34] !== c || e[35] !== m || e[36] !== j || e[37] !== p ? (be = c ? /* @__PURE__ */ l(_e, { positioning: {
528
- placement: "right"
529
- }, content: p, disabled: !p, children: /* @__PURE__ */ l(xe, { as: X ? "button" : "div", alignItems: "center", "aria-label": m, cursor: X ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: F, onClick: le, children: /* @__PURE__ */ l(ne, { as: c, boxSize: V, color: j }) }) }) : null, e[30] = le, e[31] = F, e[32] = X, e[33] = V, e[34] = c, e[35] = m, e[36] = j, e[37] = p, e[38] = be) : be = e[38];
530
- let Se;
531
- e[39] !== be ? (Se = /* @__PURE__ */ l(xe, { justifyContent: "flex-end", color: "fg.menu-item.default", children: be }), e[39] = be, e[40] = Se) : Se = e[40];
669
+ re
670
+ ] }), e[16] = se, e[17] = re, e[18] = ae) : ae = e[18];
671
+ let ge;
672
+ e[19] !== s || e[20] !== $.secondaryMarginLeft || e[21] !== $.secondaryTextStyle ? (ge = s && /* @__PURE__ */ i(w, { ml: $.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: $.secondaryTextStyle, color: "fg.menu-item.secondary", children: s }), e[19] = s, e[20] = $.secondaryMarginLeft, e[21] = $.secondaryTextStyle, e[22] = ge) : ge = e[22];
673
+ let ce;
674
+ e[23] !== ae || e[24] !== ge ? (ce = /* @__PURE__ */ b(R, { gap: "2xs", children: [
675
+ ae,
676
+ ge
677
+ ] }), e[23] = ae, e[24] = ge, e[25] = ce) : ce = e[25];
532
678
  let ye;
533
- e[41] !== he || e[42] !== Se ? (ye = /* @__PURE__ */ u(xe, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
534
- he,
535
- Se
536
- ] }), e[41] = he, e[42] = Se, e[43] = ye) : ye = e[43];
679
+ e[26] !== fe || e[27] !== ce || e[28] !== r ? (ye = /* @__PURE__ */ i(Ee, { positioning: Se, content: r, disabled: fe, children: ce }), e[26] = fe, e[27] = ce, e[28] = r, e[29] = ye) : ye = e[29];
537
680
  let ve;
538
- e[44] !== H || e[45] !== I || e[46] !== R ? (ve = I ? /* @__PURE__ */ l(De, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: H, variant: R, pointerEvents: "none", children: I }) : null, e[44] = H, e[45] = I, e[46] = R, e[47] = ve) : ve = e[47];
539
- let $e;
540
- return e[48] !== G || e[49] !== n || e[50] !== b || e[51] !== y || e[52] !== O || e[53] !== W || e[54] !== N || e[55] !== L || e[56] !== J || e[57] !== ye || e[58] !== ve || e[59] !== q || e[60] !== ee || e[61] !== v || e[62] !== w.minHeight || e[63] !== w.paddingX || e[64] !== w.paddingY || e[65] !== _ ? ($e = /* @__PURE__ */ u(qe, { id: n, ref: L, tabIndex: v, disabled: b, "aria-selected": y, paddingX: w.paddingX, paddingY: w.paddingY, onClick: O, onMouseDown: W, onMouseEnter: N, height: "auto", minHeight: w.minHeight, role: "option", width: _, maxWidth: q, overflow: "hidden", position: "relative", cursor: ee, value: J, bg: G, _hover: E, _focus: $, children: [
681
+ e[30] !== K || e[31] !== Z || e[32] !== X || e[33] !== Y || e[34] !== c || e[35] !== u || e[36] !== O || e[37] !== m ? (ve = c ? /* @__PURE__ */ i(Ee, { positioning: {
682
+ placement: "right"
683
+ }, content: m, disabled: !m, children: /* @__PURE__ */ i(me, { as: X ? "button" : "div", alignItems: "center", "aria-label": u, cursor: X ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: Z, onClick: K, children: /* @__PURE__ */ i(ne, { as: c, boxSize: Y, color: O }) }) }) : null, e[30] = K, e[31] = Z, e[32] = X, e[33] = Y, e[34] = c, e[35] = u, e[36] = O, e[37] = m, e[38] = ve) : ve = e[38];
684
+ let Ce;
685
+ e[39] !== ve ? (Ce = /* @__PURE__ */ i(me, { justifyContent: "flex-end", color: "fg.menu-item.default", children: ve }), e[39] = ve, e[40] = Ce) : Ce = e[40];
686
+ let we;
687
+ e[41] !== ye || e[42] !== Ce ? (we = /* @__PURE__ */ b(me, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
541
688
  ye,
542
- ve
543
- ] }), e[48] = G, e[49] = n, e[50] = b, e[51] = y, e[52] = O, e[53] = W, e[54] = N, e[55] = L, e[56] = J, e[57] = ye, e[58] = ve, e[59] = q, e[60] = ee, e[61] = v, e[62] = w.minHeight, e[63] = w.paddingX, e[64] = w.paddingY, e[65] = _, e[66] = $e) : $e = e[66], $e;
544
- }, Ft = {
689
+ Ce
690
+ ] }), e[41] = ye, e[42] = Ce, e[43] = we) : we = e[43];
691
+ let ke;
692
+ e[44] !== z || e[45] !== y || e[46] !== E ? (ke = y ? /* @__PURE__ */ i(ze, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: z, variant: E, pointerEvents: "none", children: y }) : null, e[44] = z, e[45] = y, e[46] = E, e[47] = ke) : ke = e[47];
693
+ let Ne;
694
+ return e[48] !== G || e[49] !== l || e[50] !== x || e[51] !== S || e[52] !== M || e[53] !== W || e[54] !== j || e[55] !== L || e[56] !== q || e[57] !== we || e[58] !== ke || e[59] !== ee || e[60] !== V || e[61] !== k || e[62] !== $.minHeight || e[63] !== $.paddingX || e[64] !== $.paddingY || e[65] !== C ? (Ne = /* @__PURE__ */ b(ht, { id: l, ref: L, tabIndex: k, disabled: x, "aria-selected": S, paddingX: $.paddingX, paddingY: $.paddingY, onClick: M, onMouseDown: W, onMouseEnter: j, height: "auto", minHeight: $.minHeight, role: "option", width: C, maxWidth: ee, overflow: "hidden", position: "relative", cursor: V, value: q, bg: G, _hover: H, _focus: le, children: [
695
+ we,
696
+ ke
697
+ ] }), e[48] = G, e[49] = l, e[50] = x, e[51] = S, e[52] = M, e[53] = W, e[54] = j, e[55] = L, e[56] = q, e[57] = we, e[58] = ke, e[59] = ee, e[60] = V, e[61] = k, e[62] = $.minHeight, e[63] = $.paddingX, e[64] = $.paddingY, e[65] = C, e[66] = Ne) : Ne = e[66], Ne;
698
+ }, fl = {
545
699
  default: {
546
700
  width: "64",
547
701
  headerHeight: "49px",
@@ -559,69 +713,72 @@ const Yt = {
559
713
  contentGap: "2xs"
560
714
  }
561
715
  };
562
- function jt(i) {
563
- const e = D(13), {
564
- title: n,
716
+ function gl(n) {
717
+ const e = T(13), {
718
+ title: l,
565
719
  children: t,
566
- variant: o
567
- } = i, r = Ft[o === void 0 ? "default" : o];
720
+ variant: r
721
+ } = n, o = fl[r === void 0 ? "default" : r];
568
722
  let a;
569
- e[0] !== r.headerHeight || e[1] !== r.headerPadding || e[2] !== r.headerTextStyle || e[3] !== n ? (a = n && /* @__PURE__ */ l(xe, { height: r.headerHeight, p: r.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ l(S, { pb: "0", textStyle: r.headerTextStyle, color: "fg.muted", children: n }) }), e[0] = r.headerHeight, e[1] = r.headerPadding, e[2] = r.headerTextStyle, e[3] = n, e[4] = a) : a = e[4];
723
+ e[0] !== o.headerHeight || e[1] !== o.headerPadding || e[2] !== o.headerTextStyle || e[3] !== l ? (a = l && /* @__PURE__ */ i(me, { height: o.headerHeight, p: o.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i(w, { pb: "0", textStyle: o.headerTextStyle, color: "fg.muted", children: l }) }), e[0] = o.headerHeight, e[1] = o.headerPadding, e[2] = o.headerTextStyle, e[3] = l, e[4] = a) : a = e[4];
570
724
  let c;
571
- e[5] !== t || e[6] !== r.contentGap || e[7] !== r.contentPadding ? (c = t && /* @__PURE__ */ l(C, { p: r.contentPadding, gap: r.contentGap, flex: "1", minH: "0", overflowY: "auto", children: t }), e[5] = t, e[6] = r.contentGap, e[7] = r.contentPadding, e[8] = c) : c = e[8];
725
+ e[5] !== t || e[6] !== o.contentGap || e[7] !== o.contentPadding ? (c = t && /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
726
+ p: o.contentPadding,
727
+ spaceY: o.contentGap
728
+ }, children: t }), e[5] = t, e[6] = o.contentGap, e[7] = o.contentPadding, e[8] = c) : c = e[8];
572
729
  let d;
573
- return e[9] !== r.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ u(C, { borderRightWidth: "1px", width: r.width, gap: "0", minH: "0", children: [
730
+ return e[9] !== o.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(R, { borderRightWidth: "1px", width: o.width, gap: "0", minH: "0", children: [
574
731
  a,
575
732
  c
576
- ] }), e[9] = r.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
733
+ ] }), e[9] = o.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
577
734
  }
578
- const Ye = (i) => {
579
- const e = D(27), {
580
- item: n,
735
+ const et = (n) => {
736
+ const e = T(27), {
737
+ item: l,
581
738
  activeLink: t,
582
- onSelectLink: o,
739
+ onSelectLink: r,
583
740
  shouldStartOpen: s
584
- } = i;
585
- let r;
586
- e[0] !== n.items ? (r = n.items ?? [], e[0] = n.items, e[1] = r) : r = e[1];
587
- const a = r, c = a.length > 0;
588
- if (!c && n.link) {
589
- const p = n.link, x = n.link === t;
590
- let b;
591
- e[2] !== p || e[3] !== o ? (b = () => o(p), e[2] = p, e[3] = o, e[4] = b) : b = e[4];
592
- let y;
593
- return e[5] !== x || e[6] !== n.text || e[7] !== b ? (y = /* @__PURE__ */ l(ue.Root, { children: /* @__PURE__ */ l(Le, { primaryLabel: n.text, isSelected: x, variant: "compact", onClick: b }) }), e[5] = x, e[6] = n.text, e[7] = b, e[8] = y) : y = e[8], y;
741
+ } = n;
742
+ let o;
743
+ e[0] !== l.items ? (o = l.items ?? [], e[0] = l.items, e[1] = o) : o = e[1];
744
+ const a = o, c = a.length > 0;
745
+ if (!c && l.link) {
746
+ const m = l.link, p = l.link === t;
747
+ let x;
748
+ e[2] !== m || e[3] !== r ? (x = () => r(m), e[2] = m, e[3] = r, e[4] = x) : x = e[4];
749
+ let S;
750
+ return e[5] !== p || e[6] !== l.text || e[7] !== x ? (S = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: l.text, isSelected: p, variant: "compact", onClick: x }) }), e[5] = p, e[6] = l.text, e[7] = x, e[8] = S) : S = e[8], S;
594
751
  }
595
752
  if (!c) {
596
- let p;
597
- return e[9] !== n.text ? (p = /* @__PURE__ */ l(ue.Root, { children: /* @__PURE__ */ l(Le, { primaryLabel: n.text, isDisabled: !0, variant: "compact" }) }), e[9] = n.text, e[10] = p) : p = e[10], p;
753
+ let m;
754
+ return e[9] !== l.text ? (m = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: l.text, isDisabled: !0, variant: "compact" }) }), e[9] = l.text, e[10] = m) : m = e[10], m;
598
755
  }
599
756
  let d;
600
- e[11] !== n || e[12] !== s ? (d = s?.(n) ?? !1, e[11] = n, e[12] = s, e[13] = d) : d = e[13];
601
- const h = d, f = n.text;
602
- let g;
603
- if (e[14] !== t || e[15] !== a || e[16] !== o || e[17] !== s) {
604
- let p;
605
- e[19] !== t || e[20] !== o || e[21] !== s ? (p = (x, b) => /* @__PURE__ */ l(Ye, { item: x, activeLink: t, onSelectLink: o, shouldStartOpen: s }, `${x.text}-${x.link ?? b}`), e[19] = t, e[20] = o, e[21] = s, e[22] = p) : p = e[22], g = a.map(p), e[14] = t, e[15] = a, e[16] = o, e[17] = s, e[18] = g;
757
+ e[11] !== l || e[12] !== s ? (d = s?.(l) ?? !1, e[11] = l, e[12] = s, e[13] = d) : d = e[13];
758
+ const h = d, g = l.text;
759
+ let f;
760
+ if (e[14] !== t || e[15] !== a || e[16] !== r || e[17] !== s) {
761
+ let m;
762
+ e[19] !== t || e[20] !== r || e[21] !== s ? (m = (p, x) => /* @__PURE__ */ i(et, { item: p, activeLink: t, onSelectLink: r, shouldStartOpen: s }, `${p.text}-${p.link ?? x}`), e[19] = t, e[20] = r, e[21] = s, e[22] = m) : m = e[22], f = a.map(m), e[14] = t, e[15] = a, e[16] = r, e[17] = s, e[18] = f;
606
763
  } else
607
- g = e[18];
608
- let m;
609
- return e[23] !== h || e[24] !== n.text || e[25] !== g ? (m = /* @__PURE__ */ l(Gt, { title: f, defaultOpen: h, children: g }), e[23] = h, e[24] = n.text, e[25] = g, e[26] = m) : m = e[26], m;
610
- }, Ml = (i) => {
611
- const e = D(9), {
612
- title: n,
764
+ f = e[18];
765
+ let u;
766
+ return e[23] !== h || e[24] !== l.text || e[25] !== f ? (u = /* @__PURE__ */ i(cl, { title: g, defaultOpen: h, children: f }), e[23] = h, e[24] = l.text, e[25] = f, e[26] = u) : u = e[26], u;
767
+ }, Dn = (n) => {
768
+ const e = T(9), {
769
+ title: l,
613
770
  emptyMessage: t,
614
- menuItems: o,
771
+ menuItems: r,
615
772
  activeLink: s,
616
- onSelectLink: r,
773
+ onSelectLink: o,
617
774
  shouldStartOpen: a
618
- } = i;
775
+ } = n;
619
776
  let c;
620
- e[0] !== s || e[1] !== t || e[2] !== o || e[3] !== r || e[4] !== a ? (c = o.length === 0 ? /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : o.map((h, f) => /* @__PURE__ */ l(Ye, { item: h, activeLink: s, onSelectLink: r, shouldStartOpen: a }, `${h.text}-${h.link ?? f}`)), e[0] = s, e[1] = t, e[2] = o, e[3] = r, e[4] = a, e[5] = c) : c = e[5];
777
+ e[0] !== s || e[1] !== t || e[2] !== r || e[3] !== o || e[4] !== a ? (c = r.length === 0 ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : r.map((h, g) => /* @__PURE__ */ i(et, { item: h, activeLink: s, onSelectLink: o, shouldStartOpen: a }, `${h.text}-${h.link ?? g}`)), e[0] = s, e[1] = t, e[2] = r, e[3] = o, e[4] = a, e[5] = c) : c = e[5];
621
778
  let d;
622
- return e[6] !== c || e[7] !== n ? (d = /* @__PURE__ */ l(jt, { title: n, variant: "compact", children: c }), e[6] = c, e[7] = n, e[8] = d) : d = e[8], d;
779
+ return e[6] !== c || e[7] !== l ? (d = /* @__PURE__ */ i(gl, { title: l, variant: "compact", children: c }), e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
623
780
  };
624
- class Wl extends ot {
781
+ class Ln extends yt {
625
782
  state = {
626
783
  error: null
627
784
  };
@@ -630,8 +787,8 @@ class Wl extends ot {
630
787
  error: e
631
788
  };
632
789
  }
633
- componentDidCatch(e, n) {
634
- console.error("Dashboard error boundary caught an error", e, n);
790
+ componentDidCatch(e, l) {
791
+ console.error("Dashboard error boundary caught an error", e, l);
635
792
  }
636
793
  handleReset = () => {
637
794
  this.setState({
@@ -641,638 +798,969 @@ class Wl extends ot {
641
798
  render() {
642
799
  const {
643
800
  children: e,
644
- fallback: n,
801
+ fallback: l,
645
802
  label: t
646
803
  } = this.props, {
647
- error: o
804
+ error: r
648
805
  } = this.state;
649
- return o ? n || /* @__PURE__ */ l(Nt, { error: o, label: t, onReset: this.handleReset }) : e;
806
+ return r ? l || /* @__PURE__ */ i(ul, { error: r, label: t, onReset: this.handleReset }) : e;
650
807
  }
651
808
  }
652
- const Nt = (i) => {
653
- const e = D(12), {
654
- error: n,
809
+ const ul = (n) => {
810
+ const e = T(12), {
811
+ error: l,
655
812
  label: t,
656
- onReset: o
657
- } = i, s = t ?? "Something went wrong";
658
- let r;
659
- e[0] !== s ? (r = /* @__PURE__ */ l(S, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = r) : r = e[1];
660
- const a = n.message || "An unexpected error occurred while rendering this section.";
813
+ onReset: r
814
+ } = n, s = t ?? "Something went wrong";
815
+ let o;
816
+ e[0] !== s ? (o = /* @__PURE__ */ i(w, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = o) : o = e[1];
817
+ const a = l.message || "An unexpected error occurred while rendering this section.";
661
818
  let c;
662
- e[2] !== a ? (c = /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
819
+ e[2] !== a ? (c = /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
663
820
  let d;
664
- e[4] !== o ? (d = o ? /* @__PURE__ */ l(me, { size: "sm", variant: "solid", colorScheme: "black", onClick: o, children: "Try again" }) : null, e[4] = o, e[5] = d) : d = e[5];
821
+ e[4] !== r ? (d = r ? /* @__PURE__ */ i(ue, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
665
822
  let h;
666
- e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ u(C, { gap: "sm", children: [
823
+ e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ b(R, { gap: "sm", children: [
667
824
  c,
668
825
  d
669
826
  ] }), e[6] = c, e[7] = d, e[8] = h) : h = e[8];
827
+ let g;
828
+ return e[9] !== o || e[10] !== h ? (g = /* @__PURE__ */ i(Ut, { height: "100%", width: "100%", children: /* @__PURE__ */ i(ft, { children: /* @__PURE__ */ i(Yt, { status: "error", title: o, children: h }) }) }), e[9] = o, e[10] = h, e[11] = g) : g = e[11], g;
829
+ }, ml = (n) => n.isDirectory ? n.isGitRepo ? Tt : _t : Oe, pl = (n) => {
830
+ const e = T(18), {
831
+ entry: l,
832
+ selectedPath: t,
833
+ selectedPathSet: r,
834
+ onEntryClick: s
835
+ } = n;
836
+ let o;
837
+ e[0] !== l.isGitRepo || e[1] !== l.path || e[2] !== r ? (o = l.isGitRepo && r.has(l.path), e[0] = l.isGitRepo, e[1] = l.path, e[2] = r, e[3] = o) : o = e[3];
838
+ const a = o, c = !l.isDirectory || a;
839
+ let d;
840
+ e[4] !== l || e[5] !== a || e[6] !== s ? (d = () => {
841
+ a || s(l);
842
+ }, e[4] = l, e[5] = a, e[6] = s, e[7] = d) : d = e[7];
843
+ const h = d, g = l.name;
670
844
  let f;
671
- return e[9] !== r || e[10] !== h ? (f = /* @__PURE__ */ l(Dt, { height: "100%", width: "100%", children: /* @__PURE__ */ l(Je, { children: /* @__PURE__ */ l(_t, { status: "error", title: r, children: h }) }) }), e[9] = r, e[10] = h, e[11] = f) : f = e[11], f;
672
- }, Bl = (i) => {
673
- const e = D(53), {
674
- open: n,
845
+ e[8] !== l ? (f = ml(l), e[8] = l, e[9] = f) : f = e[9];
846
+ const u = l.isGitRepo ? "Git repo" : void 0, m = l.isGitRepo ? "green" : void 0, p = t === l.path;
847
+ let x;
848
+ return e[10] !== l.name || e[11] !== h || e[12] !== c || e[13] !== f || e[14] !== u || e[15] !== m || e[16] !== p ? (x = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: g, leftIcon: f, tagLabel: u, tagColorPalette: m, isDisabled: c, isSelected: p, width: "100%", maxWidth: "100%", onClick: h }) }), e[10] = l.name, e[11] = h, e[12] = c, e[13] = f, e[14] = u, e[15] = m, e[16] = p, e[17] = x) : x = e[17], x;
849
+ }, En = (n) => {
850
+ const e = T(54), {
851
+ open: l,
675
852
  title: t,
676
- description: o,
853
+ description: r,
677
854
  currentPath: s,
678
- entries: r,
855
+ entries: o,
679
856
  selectedPath: a,
680
857
  selectedPaths: c,
681
858
  isLoading: d,
682
859
  error: h,
683
- isSelectDisabled: f,
684
- onClose: g,
685
- onSelect: m,
686
- onSelectHomeDirectory: p,
687
- onSelectParentDirectory: x,
688
- onEntryClick: b
689
- } = i, y = t === void 0 ? "Select folder" : t, I = s === void 0 ? "" : s, T = a === void 0 ? null : a;
690
- let P;
691
- e[0] !== c ? (P = c === void 0 ? [] : c, e[0] = c, e[1] = P) : P = e[1];
692
- const k = P, v = d === void 0 ? !1 : d, _ = h === void 0 ? "" : h, z = f === void 0 ? !1 : f;
860
+ isSelectDisabled: g,
861
+ onClose: f,
862
+ onSelect: u,
863
+ onSelectHomeDirectory: m,
864
+ onSelectParentDirectory: p,
865
+ onEntryClick: x
866
+ } = n, S = t === void 0 ? "Select folder" : t, y = s === void 0 ? "" : s, v = a === void 0 ? null : a;
867
+ let I;
868
+ e[0] !== c ? (I = c === void 0 ? [] : c, e[0] = c, e[1] = I) : I = e[1];
869
+ const P = I, k = d === void 0 ? !1 : d, C = h === void 0 ? "" : h, _ = g === void 0 ? !1 : g;
693
870
  let L;
694
- e[2] !== k ? (L = new Set(k), e[2] = k, e[3] = L) : L = e[3];
695
- const Y = L;
696
- let M;
697
- e[4] !== g ? (M = (E) => !E.open && g(), e[4] = g, e[5] = M) : M = e[5];
698
- let j;
699
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ l(Q.Backdrop, {}), e[6] = j) : j = e[6];
700
- let H;
701
- e[7] !== y ? (H = /* @__PURE__ */ l(S, { textStyle: "heading/M", children: y }), e[7] = y, e[8] = H) : H = e[8];
702
- let R;
703
- e[9] !== o ? (R = o ? /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", color: "fg.muted", children: o }) : null, e[9] = o, e[10] = R) : R = e[10];
704
- let A;
705
- e[11] !== H || e[12] !== R ? (A = /* @__PURE__ */ l(Q.Header, { children: /* @__PURE__ */ u(C, { gap: "xs", children: [
706
- H,
707
- R
708
- ] }) }), e[11] = H, e[12] = R, e[13] = A) : A = e[13];
871
+ e[2] !== P ? (L = new Set(P), e[2] = P, e[3] = L) : L = e[3];
872
+ const B = L;
873
+ let N;
874
+ e[4] !== f ? (N = (le) => !le.open && f(), e[4] = f, e[5] = N) : N = e[5];
709
875
  let O;
710
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ l(mt, { size: 16 }), e[14] = O) : O = e[14];
876
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ i(J.Backdrop, {}), e[6] = O) : O = e[6];
877
+ let z;
878
+ e[7] !== S ? (z = /* @__PURE__ */ i(w, { textStyle: "heading/M", children: S }), e[7] = S, e[8] = z) : z = e[8];
879
+ let E;
880
+ e[9] !== r ? (E = r ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = E) : E = e[10];
881
+ let A;
882
+ e[11] !== z || e[12] !== E ? (A = /* @__PURE__ */ i(J.Header, { children: /* @__PURE__ */ b(R, { gap: "xs", children: [
883
+ z,
884
+ E
885
+ ] }) }), e[11] = z, e[12] = E, e[13] = A) : A = e[13];
886
+ let M;
887
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ i($t, { size: 16 }), e[14] = M) : M = e[14];
711
888
  let W;
712
- e[15] !== p ? (W = /* @__PURE__ */ l(me, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: p, children: O }), e[15] = p, e[16] = W) : W = e[16];
713
- const N = !I || I === "/";
714
- let w;
715
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ l(ut, { size: 16 }), e[17] = w) : w = e[17];
889
+ e[15] !== m ? (W = /* @__PURE__ */ i(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: M }), e[15] = m, e[16] = W) : W = e[16];
890
+ const j = !y || y === "/";
891
+ let $;
892
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ i(Rt, { size: 16 }), e[17] = $) : $ = e[17];
716
893
  let G;
717
- e[18] !== x || e[19] !== N ? (G = /* @__PURE__ */ l(me, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: x, disabled: N, children: w }), e[18] = x, e[19] = N, e[20] = G) : G = e[20];
718
- const Z = I || "Home";
719
- let V;
720
- e[21] !== Z ? (V = /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: Z }), e[21] = Z, e[22] = V) : V = e[22];
894
+ e[18] !== p || e[19] !== j ? (G = /* @__PURE__ */ i(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: p, disabled: j, children: $ }), e[18] = p, e[19] = j, e[20] = G) : G = e[20];
895
+ const Q = y || "Home";
896
+ let Y;
897
+ e[21] !== Q ? (Y = /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: Q }), e[21] = Q, e[22] = Y) : Y = e[22];
721
898
  let X;
722
- e[23] !== W || e[24] !== G || e[25] !== V ? (X = /* @__PURE__ */ u(C, { direction: "row", gap: "sm", align: "center", children: [
899
+ e[23] !== W || e[24] !== G || e[25] !== Y ? (X = /* @__PURE__ */ b(R, { direction: "row", gap: "sm", align: "center", children: [
723
900
  W,
724
901
  G,
725
- V
726
- ] }), e[23] = W, e[24] = G, e[25] = V, e[26] = X) : X = e[26];
902
+ Y
903
+ ] }), e[23] = W, e[24] = G, e[25] = Y, e[26] = X) : X = e[26];
727
904
  let U;
728
- e[27] !== r || e[28] !== _ || e[29] !== v || e[30] !== b || e[31] !== T || e[32] !== Y ? (U = /* @__PURE__ */ l(C, { gap: "xs", borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", padding: "sm", maxHeight: "320px", overflowY: "auto", children: v ? /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : _ ? /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", color: "red.500", children: _ }) : r.length === 0 ? /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ l(C, { gap: "xs", children: r.map((E) => {
729
- const $ = E.isDirectory ? E.isGitRepo ? ft : gt : He, ie = E.isGitRepo && Y.has(E.path);
730
- return /* @__PURE__ */ l(ue.Root, { children: /* @__PURE__ */ l(Le, { primaryLabel: E.name, leftIcon: $, tagLabel: E.isGitRepo ? "Git repo" : void 0, tagColorPalette: E.isGitRepo ? "green" : void 0, isDisabled: !E.isDirectory || ie, isSelected: T === E.path, width: "100%", maxWidth: "100%", onClick: () => {
731
- ie || b(E);
732
- } }) }, E.path);
733
- }) }) }), e[27] = r, e[28] = _, e[29] = v, e[30] = b, e[31] = T, e[32] = Y, e[33] = U) : U = e[33];
734
- let F;
735
- e[34] !== X || e[35] !== U ? (F = /* @__PURE__ */ l(Q.Body, { children: /* @__PURE__ */ u(C, { gap: "md", children: [
905
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
906
+ padding: "sm"
907
+ }, e[27] = U) : U = e[27];
908
+ let Z;
909
+ e[28] !== o || e[29] !== C || e[30] !== k || e[31] !== x || e[32] !== v || e[33] !== B ? (Z = /* @__PURE__ */ i(he, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: U, children: k ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : C ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "red.500", children: C }) : o.length === 0 ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(R, { gap: "xs", children: o.map((le) => /* @__PURE__ */ i(pl, { entry: le, selectedPath: v, selectedPathSet: B, onEntryClick: x }, le.path)) }) }), e[28] = o, e[29] = C, e[30] = k, e[31] = x, e[32] = v, e[33] = B, e[34] = Z) : Z = e[34];
910
+ let te;
911
+ e[35] !== X || e[36] !== Z ? (te = /* @__PURE__ */ i(J.Body, { children: /* @__PURE__ */ b(R, { gap: "md", children: [
736
912
  X,
737
- U
738
- ] }) }), e[34] = X, e[35] = U, e[36] = F) : F = e[36];
913
+ Z
914
+ ] }) }), e[35] = X, e[36] = Z, e[37] = te) : te = e[37];
739
915
  let K;
740
- e[37] !== g ? (K = /* @__PURE__ */ l(me, { variant: "outline", onClick: g, children: "Cancel" }), e[37] = g, e[38] = K) : K = e[38];
741
- let le;
742
- e[39] !== z || e[40] !== m ? (le = /* @__PURE__ */ l(me, { onClick: m, disabled: z, children: "Select repository" }), e[39] = z, e[40] = m, e[41] = le) : le = e[41];
743
- let q;
744
- e[42] !== K || e[43] !== le ? (q = /* @__PURE__ */ l(Q.Footer, { children: /* @__PURE__ */ u(C, { direction: "row", gap: "sm", children: [
745
- K,
746
- le
747
- ] }) }), e[42] = K, e[43] = le, e[44] = q) : q = e[44];
916
+ e[38] !== f ? (K = /* @__PURE__ */ i(ue, { variant: "outline", onClick: f, children: "Cancel" }), e[38] = f, e[39] = K) : K = e[39];
748
917
  let ee;
749
- e[45] !== A || e[46] !== F || e[47] !== q ? (ee = /* @__PURE__ */ l(Q.Positioner, { children: /* @__PURE__ */ u(Q.Content, { children: [
918
+ e[40] !== _ || e[41] !== u ? (ee = /* @__PURE__ */ i(ue, { onClick: u, disabled: _, children: "Select repository" }), e[40] = _, e[41] = u, e[42] = ee) : ee = e[42];
919
+ let V;
920
+ e[43] !== K || e[44] !== ee ? (V = /* @__PURE__ */ i(J.Footer, { children: /* @__PURE__ */ b(R, { direction: "row", gap: "sm", children: [
921
+ K,
922
+ ee
923
+ ] }) }), e[43] = K, e[44] = ee, e[45] = V) : V = e[45];
924
+ let q;
925
+ e[46] !== A || e[47] !== te || e[48] !== V ? (q = /* @__PURE__ */ i(J.Positioner, { children: /* @__PURE__ */ b(J.Content, { children: [
750
926
  A,
751
- F,
927
+ te,
928
+ V
929
+ ] }) }), e[46] = A, e[47] = te, e[48] = V, e[49] = q) : q = e[49];
930
+ let H;
931
+ return e[50] !== l || e[51] !== q || e[52] !== N ? (H = /* @__PURE__ */ b(J.Root, { closeOnInteractOutside: !1, open: l, onOpenChange: N, children: [
932
+ O,
752
933
  q
753
- ] }) }), e[45] = A, e[46] = F, e[47] = q, e[48] = ee) : ee = e[48];
754
- let J;
755
- return e[49] !== n || e[50] !== ee || e[51] !== M ? (J = /* @__PURE__ */ u(Q.Root, { closeOnInteractOutside: !1, open: n, onOpenChange: M, children: [
756
- j,
757
- ee
758
- ] }), e[49] = n, e[50] = ee, e[51] = M, e[52] = J) : J = e[52], J;
934
+ ] }), e[50] = l, e[51] = q, e[52] = N, e[53] = H) : H = e[53], H;
759
935
  };
760
- function Al(i) {
761
- const e = D(6);
762
- let n, t;
763
- e[0] !== i ? ({
764
- children: n,
936
+ function zn(n) {
937
+ const e = T(6);
938
+ let l, t;
939
+ e[0] !== n ? ({
940
+ children: l,
765
941
  ...t
766
- } = i, e[0] = i, e[1] = n, e[2] = t) : (n = e[1], t = e[2]);
767
- let o;
768
- return e[3] !== n || e[4] !== t ? (o = /* @__PURE__ */ l(te, { ...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;
942
+ } = n, e[0] = n, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
943
+ let r;
944
+ return e[3] !== l || e[4] !== t ? (r = /* @__PURE__ */ i(F, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: l }), e[3] = l, e[4] = t, e[5] = r) : r = e[5], r;
769
945
  }
770
- const Vt = (i, e) => `${i.name}-${i.version ?? "unknown"}-${e}`, Ut = (i) => i.version ? `${i.name} v${i.version}` : i.name, Ol = (i) => {
771
- const e = D(30), {
772
- notices: n,
946
+ const bl = (n, e) => `${n.name}-${n.version ?? "unknown"}-${e}`, xl = (n) => n.version ? `${n.name} v${n.version}` : n.name, Hn = (n) => {
947
+ const e = T(30), {
948
+ notices: l,
773
949
  title: t,
774
- description: o,
950
+ description: r,
775
951
  productName: s,
776
- productVersion: r,
952
+ productVersion: o,
777
953
  generatedAt: a,
778
954
  emptyTitle: c,
779
955
  emptyDescription: d
780
- } = i, h = t === void 0 ? "Open Source and Third-Party Notices" : t, f = o === void 0 ? "This product includes software developed by the open source community." : o, g = c === void 0 ? "No third-party notices available" : c, m = d === void 0 ? "No third-party packages were included in this build." : d;
781
- let p;
782
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
956
+ } = n, h = 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, u = d === void 0 ? "No third-party packages were included in this build." : d;
957
+ let m;
958
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
783
959
  base: "md",
784
960
  md: "xl"
785
- }, e[0] = p) : p = e[0];
961
+ }, e[0] = m) : m = e[0];
962
+ let p;
963
+ e[1] !== h ? (p = /* @__PURE__ */ i(w, { textStyle: "heading/L", children: h }), e[1] = h, e[2] = p) : p = e[2];
786
964
  let x;
787
- e[1] !== h ? (x = /* @__PURE__ */ l(S, { textStyle: "heading/L", children: h }), e[1] = h, e[2] = x) : x = e[2];
788
- let b;
789
- e[3] !== f ? (b = /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", color: "fg.muted", children: f }), e[3] = f, e[4] = b) : b = e[4];
790
- let y;
791
- e[5] !== s ? (y = s ? /* @__PURE__ */ u(S, { textStyle: "label/XS", color: "fg.muted", children: [
965
+ e[3] !== g ? (x = /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = x) : x = e[4];
966
+ let S;
967
+ e[5] !== s ? (S = s ? /* @__PURE__ */ b(w, { textStyle: "label/XS", color: "fg.muted", children: [
792
968
  "Product: ",
793
969
  s
794
- ] }) : null, e[5] = s, e[6] = y) : y = e[6];
795
- let I;
796
- e[7] !== r ? (I = r ? /* @__PURE__ */ u(S, { textStyle: "label/XS", color: "fg.muted", children: [
970
+ ] }) : null, e[5] = s, e[6] = S) : S = e[6];
971
+ let y;
972
+ e[7] !== o ? (y = o ? /* @__PURE__ */ b(w, { textStyle: "label/XS", color: "fg.muted", children: [
797
973
  "Version: ",
798
- r
799
- ] }) : null, e[7] = r, e[8] = I) : I = e[8];
800
- let T;
801
- e[9] !== n.length ? (T = /* @__PURE__ */ u(S, { textStyle: "label/XS", color: "fg.muted", children: [
974
+ o
975
+ ] }) : null, e[7] = o, e[8] = y) : y = e[8];
976
+ let v;
977
+ e[9] !== l.length ? (v = /* @__PURE__ */ b(w, { textStyle: "label/XS", color: "fg.muted", children: [
802
978
  "Packages: ",
803
- n.length
804
- ] }), e[9] = n.length, e[10] = T) : T = e[10];
805
- let P;
806
- e[11] !== a ? (P = a ? /* @__PURE__ */ u(S, { textStyle: "label/XS", color: "fg.muted", children: [
979
+ l.length
980
+ ] }), e[9] = l.length, e[10] = v) : v = e[10];
981
+ let I;
982
+ e[11] !== a ? (I = a ? /* @__PURE__ */ b(w, { textStyle: "label/XS", color: "fg.muted", children: [
807
983
  "Generated: ",
808
984
  a
809
- ] }) : null, e[11] = a, e[12] = P) : P = e[12];
810
- let k;
811
- e[13] !== P || e[14] !== y || e[15] !== I || e[16] !== T ? (k = /* @__PURE__ */ u(te, { gap: "md", flexWrap: "wrap", children: [
985
+ ] }) : null, e[11] = a, e[12] = I) : I = e[12];
986
+ let P;
987
+ e[13] !== I || e[14] !== S || e[15] !== y || e[16] !== v ? (P = /* @__PURE__ */ b(F, { gap: "md", flexWrap: "wrap", children: [
988
+ S,
812
989
  y,
813
- I,
814
- T,
815
- P
816
- ] }), e[13] = P, e[14] = y, e[15] = I, e[16] = T, e[17] = k) : k = e[17];
817
- let v;
818
- e[18] !== k || e[19] !== x || e[20] !== b ? (v = /* @__PURE__ */ u(C, { gap: "xs", children: [
990
+ v,
991
+ I
992
+ ] }), e[13] = I, e[14] = S, e[15] = y, e[16] = v, e[17] = P) : P = e[17];
993
+ let k;
994
+ e[18] !== P || e[19] !== p || e[20] !== x ? (k = /* @__PURE__ */ b(R, { gap: "xs", children: [
995
+ p,
819
996
  x,
820
- b,
821
- k
822
- ] }), e[18] = k, e[19] = x, e[20] = b, e[21] = v) : v = e[21];
997
+ P
998
+ ] }), e[18] = P, e[19] = p, e[20] = x, e[21] = k) : k = e[21];
999
+ let C;
1000
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ i(gt, { borderColor: "border.muted" }), e[22] = C) : C = e[22];
823
1001
  let _;
824
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ l(Qe, { borderColor: "border.muted" }), e[22] = _) : _ = e[22];
825
- let z;
826
- e[23] !== m || e[24] !== g || e[25] !== n ? (z = n.length === 0 ? /* @__PURE__ */ u(C, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
827
- /* @__PURE__ */ l(S, { textStyle: "label/L/medium", children: g }),
828
- /* @__PURE__ */ l(S, { textStyle: "paragraph/S/regular", color: "fg.muted", children: m })
829
- ] }) : /* @__PURE__ */ l(C, { gap: "md", children: n.map(Kt) }), e[23] = m, e[24] = g, e[25] = n, e[26] = z) : z = e[26];
1002
+ e[23] !== u || e[24] !== f || e[25] !== l ? (_ = l.length === 0 ? /* @__PURE__ */ b(R, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1003
+ /* @__PURE__ */ i(w, { textStyle: "label/L/medium", children: f }),
1004
+ /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", children: u })
1005
+ ] }) : /* @__PURE__ */ i(R, { gap: "md", children: l.map(Sl) }), e[23] = u, e[24] = f, e[25] = l, e[26] = _) : _ = e[26];
830
1006
  let L;
831
- return e[27] !== v || e[28] !== z ? (L = /* @__PURE__ */ u(C, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: p, gap: "lg", children: [
832
- v,
833
- _,
834
- z
835
- ] }), e[27] = v, e[28] = z, e[29] = L) : L = e[29], L;
1007
+ return e[27] !== k || e[28] !== _ ? (L = /* @__PURE__ */ b(R, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: m, gap: "lg", children: [
1008
+ k,
1009
+ C,
1010
+ _
1011
+ ] }), e[27] = k, e[28] = _, e[29] = L) : L = e[29], L;
836
1012
  };
837
- function Kt(i, e) {
838
- return /* @__PURE__ */ l(B, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ u(C, { gap: "sm", children: [
839
- /* @__PURE__ */ u(C, { gap: "2xs", children: [
840
- /* @__PURE__ */ l(S, { textStyle: "label/L/medium", children: Ut(i) }),
841
- /* @__PURE__ */ u(S, { textStyle: "label/S/regular", color: "fg.muted", children: [
1013
+ function Sl(n, e) {
1014
+ return /* @__PURE__ */ i(D, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b(R, { gap: "sm", children: [
1015
+ /* @__PURE__ */ b(R, { gap: "2xs", children: [
1016
+ /* @__PURE__ */ i(w, { textStyle: "label/L/medium", children: xl(n) }),
1017
+ /* @__PURE__ */ b(w, { textStyle: "label/S/regular", color: "fg.muted", children: [
842
1018
  "License: ",
843
- i.license ?? "Unknown"
1019
+ n.license ?? "Unknown"
844
1020
  ] })
845
1021
  ] }),
846
- i.copyright ? /* @__PURE__ */ l(S, { textStyle: "label/S/regular", color: "fg.muted", children: i.copyright }) : null,
847
- (i.homepageUrl || i.sourceUrl) && /* @__PURE__ */ u(C, { gap: "2xs", children: [
848
- i.homepageUrl ? /* @__PURE__ */ l(Ee, { href: i.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
849
- i.sourceUrl ? /* @__PURE__ */ l(Ee, { href: i.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1022
+ n.copyright ? /* @__PURE__ */ i(w, { textStyle: "label/S/regular", color: "fg.muted", children: n.copyright }) : null,
1023
+ (n.homepageUrl || n.sourceUrl) && /* @__PURE__ */ b(R, { gap: "2xs", children: [
1024
+ n.homepageUrl ? /* @__PURE__ */ i(Be, { href: n.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1025
+ n.sourceUrl ? /* @__PURE__ */ i(Be, { href: n.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
850
1026
  ] }),
851
- i.attribution ? /* @__PURE__ */ l(B, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ l(S, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: i.attribution }) }) : null
852
- ] }) }, Vt(i, e));
1027
+ n.attribution ? /* @__PURE__ */ i(D, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ i(w, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: n.attribution }) }) : null
1028
+ ] }) }, bl(n, e));
853
1029
  }
854
- const Gl = (i) => {
855
- const e = D(14), {
856
- items: n,
857
- title: t,
858
- defaultOpen: o
859
- } = i, s = o === void 0 ? !0 : o;
1030
+ const Nn = (n) => {
1031
+ const e = T(4), {
1032
+ items: l
1033
+ } = n;
1034
+ let t;
1035
+ e[0] !== l ? (t = l.map(yl), e[0] = l, e[1] = t) : t = e[1];
860
1036
  let r;
861
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
862
- background: "bg.muted"
863
- }, e[0] = r) : r = e[0];
864
- let a;
865
- e[1] !== t ? (a = t && /* @__PURE__ */ l(S, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = a) : a = e[2];
866
- let c;
867
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ l(oe.Indicator, { transition: "transform 0.2s", _open: {
868
- transform: "rotate(90deg)"
869
- }, children: /* @__PURE__ */ l(Pe, { size: 16 }) }), e[3] = c) : c = e[3];
870
- let d;
871
- e[4] !== a ? (d = /* @__PURE__ */ u(oe.Trigger, { _hover: r, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", gap: "2", alignItems: "center", cursor: "pointer", children: [
872
- a,
873
- c
874
- ] }), e[4] = a, e[5] = d) : d = e[5];
875
- let h;
876
- e[6] !== n ? (h = n.map(qt), e[6] = n, e[7] = h) : h = e[7];
877
- let f;
878
- e[8] !== h ? (f = /* @__PURE__ */ l(oe.Content, { children: /* @__PURE__ */ l(C, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: h }) }), e[8] = h, e[9] = f) : f = e[9];
879
- let g;
880
- return e[10] !== s || e[11] !== d || e[12] !== f ? (g = /* @__PURE__ */ u(oe.Root, { defaultOpen: s, width: "full", children: [
881
- d,
882
- f
883
- ] }), e[10] = s, e[11] = d, e[12] = f, e[13] = g) : g = e[13], g;
1037
+ return e[2] !== t ? (r = /* @__PURE__ */ i(R, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
884
1038
  };
885
- function qt(i, e) {
886
- return /* @__PURE__ */ u(te, { gap: "md", alignItems: "center", children: [
887
- /* @__PURE__ */ l(B, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ u(te, { gap: "1", alignItems: "center", children: [
888
- /* @__PURE__ */ l(S, { textStyle: "label/S/medium", color: "fg.muted", children: i.label }),
889
- i.description && /* @__PURE__ */ l(_e, { content: i.description, showArrow: !0, children: /* @__PURE__ */ l(ne, { as: pt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1039
+ function yl(n, e) {
1040
+ return /* @__PURE__ */ b(F, { gap: "md", alignItems: "center", children: [
1041
+ /* @__PURE__ */ i(D, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(F, { gap: "1", alignItems: "center", children: [
1042
+ /* @__PURE__ */ i(w, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }),
1043
+ n.description && /* @__PURE__ */ i(Ee, { content: n.description, showArrow: !0, children: /* @__PURE__ */ i(ne, { as: Dt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
890
1044
  ] }) }),
891
- /* @__PURE__ */ l(B, { flex: "1", children: i.value })
892
- ] }, `${i.label}-${e}`);
1045
+ /* @__PURE__ */ i(D, { flex: "1", children: n.value })
1046
+ ] }, `${n.label}-${e}`);
893
1047
  }
894
- const Jt = (i) => i === "completed" ? xt : i === "failed" ? bt : St, Qt = (i) => i === "completed" ? "fg.success" : i === "failed" ? "fg.error" : "fg.muted", Zt = (i) => {
895
- const e = D(11), {
896
- status: n,
1048
+ const vl = (n) => n === "completed" ? Lt : n === "failed" ? Et : zt, Cl = (n) => n === "completed" ? "fg.success" : n === "failed" ? "fg.error" : "fg.muted", wl = (n) => {
1049
+ const e = T(11), {
1050
+ status: l,
897
1051
  boxSize: t,
898
- ariaLabel: o,
1052
+ ariaLabel: r,
899
1053
  cursor: s,
900
- onClick: r
901
- } = i, a = t === void 0 ? "14px" : t, c = o === void 0 ? "Session status" : o;
1054
+ onClick: o
1055
+ } = n, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
902
1056
  let d;
903
- e[0] !== n ? (d = Jt(n), e[0] = n, e[1] = d) : d = e[1];
1057
+ e[0] !== l ? (d = vl(l), e[0] = l, e[1] = d) : d = e[1];
904
1058
  let h;
905
- e[2] !== n ? (h = Qt(n), e[2] = n, e[3] = h) : h = e[3];
906
- let f;
907
- return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== r || e[8] !== d || e[9] !== h ? (f = /* @__PURE__ */ l(ne, { as: d, boxSize: a, color: h, "aria-label": c, cursor: s, onClick: r }), e[4] = c, e[5] = a, e[6] = s, e[7] = r, e[8] = d, e[9] = h, e[10] = f) : f = e[10], f;
908
- }, Xl = Me.forwardRef(function(e, n) {
909
- const t = D(27);
910
- let o, s, r, a, c, d;
1059
+ e[2] !== l ? (h = Cl(l), e[2] = l, e[3] = h) : h = e[3];
1060
+ let g;
1061
+ return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== o || e[8] !== d || e[9] !== h ? (g = /* @__PURE__ */ i(ne, { as: d, boxSize: a, color: h, "aria-label": c, cursor: s, onClick: o }), e[4] = c, e[5] = a, e[6] = s, e[7] = o, e[8] = d, e[9] = h, e[10] = g) : g = e[10], g;
1062
+ }, tt = (n, e) => e.includes(n), kl = (n) => {
1063
+ const e = T(18), {
1064
+ action: l,
1065
+ sectionId: t,
1066
+ nodeId: r
1067
+ } = n;
1068
+ if (l.menuItems && l.menuItems.length > 0) {
1069
+ let a;
1070
+ e[0] !== l.icon || e[1] !== l.label ? (a = /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i($e, { variant: "ghost", size: "2xs", "aria-label": l.label, children: l.icon }) }), e[0] = l.icon, e[1] = l.label, e[2] = a) : a = e[2];
1071
+ let c;
1072
+ e[3] !== l.menuItems ? (c = l.menuItems.map(Pl), e[3] = l.menuItems, e[4] = c) : c = e[4];
1073
+ let d;
1074
+ e[5] !== c ? (d = /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "160px", bg: "bg", children: c }) }), e[5] = c, e[6] = d) : d = e[6];
1075
+ let h;
1076
+ return e[7] !== a || e[8] !== d ? (h = /* @__PURE__ */ b(ie.Root, { children: [
1077
+ a,
1078
+ d
1079
+ ] }), e[7] = a, e[8] = d, e[9] = h) : h = e[9], h;
1080
+ }
1081
+ let s;
1082
+ e[10] !== l || e[11] !== r || e[12] !== t ? (s = (a) => {
1083
+ a.stopPropagation(), l.onAction?.({
1084
+ sectionId: t,
1085
+ nodeId: r
1086
+ });
1087
+ }, e[10] = l, e[11] = r, e[12] = t, e[13] = s) : s = e[13];
1088
+ let o;
1089
+ return e[14] !== l.icon || e[15] !== l.label || e[16] !== s ? (o = /* @__PURE__ */ i($e, { variant: "ghost", size: "2xs", "aria-label": l.label, onClick: s, children: l.icon }), e[14] = l.icon, e[15] = l.label, e[16] = s, e[17] = o) : o = e[17], o;
1090
+ }, lt = (n) => {
1091
+ const e = T(11), {
1092
+ sectionId: l,
1093
+ nodeId: t,
1094
+ actions: r
1095
+ } = n;
1096
+ if (r.length === 0)
1097
+ return null;
1098
+ let s, o;
1099
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
1100
+ opacity: "1",
1101
+ pointerEvents: "auto"
1102
+ }, o = {
1103
+ opacity: "1",
1104
+ pointerEvents: "auto"
1105
+ }, e[0] = s, e[1] = o) : (s = e[0], o = e[1]);
1106
+ let a;
1107
+ if (e[2] !== r || e[3] !== t || e[4] !== l) {
1108
+ let d;
1109
+ e[6] !== t || e[7] !== l ? (d = (h) => /* @__PURE__ */ i(kl, { action: h, sectionId: l, nodeId: t }, h.id), e[6] = t, e[7] = l, e[8] = d) : d = e[8], a = r.map(d), e[2] = r, e[3] = t, e[4] = l, e[5] = a;
1110
+ } else
1111
+ a = e[5];
1112
+ let c;
1113
+ return e[9] !== a ? (c = /* @__PURE__ */ i(F, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: s, _groupFocusWithin: o, transition: "opacity 120ms ease", onClick: Tl, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1114
+ }, nt = (n) => {
1115
+ const e = T(60), {
1116
+ sectionId: l,
1117
+ node: t,
1118
+ level: r,
1119
+ expandedNodes: s,
1120
+ activeNodeId: o,
1121
+ onNavigate: a,
1122
+ onToggleNode: c
1123
+ } = n, d = (t.children?.length ?? 0) > 0;
1124
+ let h;
1125
+ e[0] !== s || e[1] !== d || e[2] !== t.id ? (h = d && tt(t.id, s), e[0] = s, e[1] = d, e[2] = t.id, e[3] = h) : h = e[3];
1126
+ const g = h, f = t.isNavigable || t.navigationIntent !== void 0, u = o === t.id, m = t.disabled === !0, p = r > 0 ? `calc(var(--chakra-spacing-1) + ${r} * var(--chakra-spacing-3))` : void 0;
1127
+ let x;
1128
+ e[4] !== d || e[5] !== m || e[6] !== f || e[7] !== t || e[8] !== a || e[9] !== c || e[10] !== l ? (x = () => {
1129
+ if (!m) {
1130
+ if (d) {
1131
+ c(t.id);
1132
+ return;
1133
+ }
1134
+ f && a?.({
1135
+ sectionId: l,
1136
+ nodeId: t.id,
1137
+ node: t,
1138
+ intent: t.navigationIntent
1139
+ });
1140
+ }
1141
+ }, e[4] = d, e[5] = m, e[6] = f, e[7] = t, e[8] = a, e[9] = c, e[10] = l, e[11] = x) : x = e[11];
1142
+ const S = x, y = t.children ? "0" : "2xs", v = u ? "bg.muted" : "transparent", I = u ? "bg.muted" : "bg.subtle";
1143
+ let P;
1144
+ e[12] !== I ? (P = {
1145
+ bg: I
1146
+ }, e[12] = I, e[13] = P) : P = e[13];
1147
+ const k = m ? "default" : "pointer";
1148
+ let C;
1149
+ e[14] !== t.icon ? (C = t.icon ? /* @__PURE__ */ i(D, { color: "fg.muted", flexShrink: 0, children: t.icon }) : null, e[14] = t.icon, e[15] = C) : C = e[15];
1150
+ const _ = m ? "fg.muted" : "fg";
1151
+ let L;
1152
+ e[16] !== t.label || e[17] !== _ ? (L = /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: _, truncate: !0, children: t.label }), e[16] = t.label, e[17] = _, e[18] = L) : L = e[18];
1153
+ let B;
1154
+ e[19] !== g || e[20] !== d ? (B = d ? /* @__PURE__ */ i(D, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(pe, { size: 14, style: {
1155
+ transform: g ? "rotate(90deg)" : "rotate(0deg)",
1156
+ transition: "120ms"
1157
+ } }) }) : null, e[19] = g, e[20] = d, e[21] = B) : B = e[21];
1158
+ let N;
1159
+ e[22] !== B || e[23] !== L ? (N = /* @__PURE__ */ b(F, { gap: "1", minW: "0", children: [
1160
+ L,
1161
+ B
1162
+ ] }), e[22] = B, e[23] = L, e[24] = N) : N = e[24];
1163
+ let O;
1164
+ e[25] !== t.description ? (O = t.description ? /* @__PURE__ */ i(w, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[25] = t.description, e[26] = O) : O = e[26];
1165
+ let z;
1166
+ e[27] !== N || e[28] !== O ? (z = /* @__PURE__ */ b(R, { gap: "0", minW: "0", flex: "1", children: [
1167
+ N,
1168
+ O
1169
+ ] }), e[27] = N, e[28] = O, e[29] = z) : z = e[29];
1170
+ let E;
1171
+ e[30] !== z || e[31] !== C ? (E = /* @__PURE__ */ b(F, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1172
+ C,
1173
+ z
1174
+ ] }), e[30] = z, e[31] = C, e[32] = E) : E = e[32];
1175
+ let A;
1176
+ e[33] !== t.actions ? (A = t.actions ?? [], e[33] = t.actions, e[34] = A) : A = e[34];
1177
+ let M;
1178
+ e[35] !== t.id || e[36] !== l || e[37] !== A ? (M = /* @__PURE__ */ i(lt, { sectionId: l, nodeId: t.id, actions: A }), e[35] = t.id, e[36] = l, e[37] = A, e[38] = M) : M = e[38];
1179
+ let W;
1180
+ e[39] !== S || e[40] !== p || e[41] !== E || e[42] !== M || e[43] !== v || e[44] !== P || e[45] !== k ? (W = /* @__PURE__ */ b(F, { className: "group", justify: "space-between", align: "center", borderRadius: "xs", px: "1", py: "2xs", pl: p, bg: v, _hover: P, cursor: k, onClick: S, overflow: "hidden", children: [
1181
+ E,
1182
+ M
1183
+ ] }), e[39] = S, e[40] = p, e[41] = E, e[42] = M, e[43] = v, e[44] = P, e[45] = k, e[46] = W) : W = e[46];
1184
+ let j;
1185
+ e[47] !== o || e[48] !== g || e[49] !== s || e[50] !== r || e[51] !== t.children || e[52] !== a || e[53] !== c || e[54] !== l ? (j = g ? t.children?.map((G) => /* @__PURE__ */ i(nt, { sectionId: l, node: G, level: r + 1, expandedNodes: s, activeNodeId: o, onNavigate: a, onToggleNode: c }, G.id)) : null, e[47] = o, e[48] = g, e[49] = s, e[50] = r, e[51] = t.children, e[52] = a, e[53] = c, e[54] = l, e[55] = j) : j = e[55];
1186
+ let $;
1187
+ return e[56] !== W || e[57] !== j || e[58] !== y ? ($ = /* @__PURE__ */ b(R, { gap: y, children: [
1188
+ W,
1189
+ j
1190
+ ] }), e[56] = W, e[57] = j, e[58] = y, e[59] = $) : $ = e[59], $;
1191
+ }, Il = (n) => {
1192
+ const e = T(17), {
1193
+ sections: l,
1194
+ expandedSections: t,
1195
+ expandedNodes: r,
1196
+ activeNodeId: s,
1197
+ onNavigate: o,
1198
+ onToggleSection: a,
1199
+ onToggleNode: c
1200
+ } = n;
1201
+ let d;
1202
+ if (e[0] !== s || e[1] !== r || e[2] !== t || e[3] !== o || e[4] !== c || e[5] !== a || e[6] !== l) {
1203
+ let g;
1204
+ e[8] !== s || e[9] !== r || e[10] !== t || e[11] !== o || e[12] !== c || e[13] !== a ? (g = (f) => {
1205
+ const u = f.label ? tt(f.id, t) : !0;
1206
+ return /* @__PURE__ */ b(R, { gap: "0", children: [
1207
+ f.label ? /* @__PURE__ */ b(F, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
1208
+ bg: "bg.subtle"
1209
+ }, onClick: () => a(f.id), children: [
1210
+ /* @__PURE__ */ b(F, { gap: "1", flex: "1", minW: "0", children: [
1211
+ /* @__PURE__ */ i(w, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: f.label }),
1212
+ /* @__PURE__ */ i(D, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(pe, { size: 14, style: {
1213
+ transform: u ? "rotate(90deg)" : "rotate(0deg)",
1214
+ transition: "120ms"
1215
+ } }) })
1216
+ ] }),
1217
+ /* @__PURE__ */ i(lt, { sectionId: f.id, actions: f.actions ?? [] })
1218
+ ] }) : null,
1219
+ u ? f.nodes.length > 0 ? f.nodes.map((m) => /* @__PURE__ */ i(nt, { sectionId: f.id, node: m, level: 0, expandedNodes: r, activeNodeId: s, onNavigate: o, onToggleNode: c }, m.id)) : f.emptyState ?? null : null
1220
+ ] }, f.id);
1221
+ }, e[8] = s, e[9] = r, e[10] = t, e[11] = o, e[12] = c, e[13] = a, e[14] = g) : g = e[14], d = l.map(g), e[0] = s, e[1] = r, e[2] = t, e[3] = o, e[4] = c, e[5] = a, e[6] = l, e[7] = d;
1222
+ } else
1223
+ d = e[7];
1224
+ let h;
1225
+ return e[15] !== d ? (h = /* @__PURE__ */ i(R, { gap: "md", p: "md", children: d }), e[15] = d, e[16] = h) : h = e[16], h;
1226
+ };
1227
+ function Pl(n) {
1228
+ return /* @__PURE__ */ b(ie.Item, { value: n.id, onClick: () => n.onAction?.(), children: [
1229
+ n.icon ? /* @__PURE__ */ i(D, { mr: "2", children: n.icon }) : null,
1230
+ n.label
1231
+ ] }, n.id);
1232
+ }
1233
+ function Tl(n) {
1234
+ return n.stopPropagation();
1235
+ }
1236
+ const Fe = {
1237
+ open: !0,
1238
+ expandedSections: [],
1239
+ expandedNodes: []
1240
+ }, _l = "pstdio/ui/sidebar-next", $l = (n) => `${_l}/${n}`, Rl = () => ({
1241
+ getItem: () => null,
1242
+ setItem: () => {
1243
+ },
1244
+ removeItem: () => {
1245
+ }
1246
+ }), Ve = (n, e) => n.includes(e) ? n.filter((l) => l !== e) : [...n, e], Ye = (n, e, l) => l ? n.includes(e) ? n : [...n, e] : n.filter((t) => t !== e), Dl = (n) => ({
1247
+ open: n.open,
1248
+ expandedSections: n.expandedSections,
1249
+ expandedNodes: n.expandedNodes
1250
+ }), Ll = (n) => {
1251
+ const {
1252
+ storageKey: e,
1253
+ initialState: l
1254
+ } = n, t = {
1255
+ ...Fe,
1256
+ ...l
1257
+ };
1258
+ return jt()(Bt((r) => ({
1259
+ ...t,
1260
+ openSidebar: () => r((s) => ({
1261
+ ...s,
1262
+ open: !0
1263
+ })),
1264
+ closeSidebar: () => r((s) => ({
1265
+ ...s,
1266
+ open: !1
1267
+ })),
1268
+ toggleSidebar: () => r((s) => ({
1269
+ ...s,
1270
+ open: !s.open
1271
+ })),
1272
+ toggleSection: (s) => r((o) => ({
1273
+ ...o,
1274
+ expandedSections: Ve(o.expandedSections, s)
1275
+ })),
1276
+ toggleNode: (s) => r((o) => ({
1277
+ ...o,
1278
+ expandedNodes: Ve(o.expandedNodes, s)
1279
+ })),
1280
+ setSectionExpanded: (s, o) => r((a) => ({
1281
+ ...a,
1282
+ expandedSections: Ye(a.expandedSections, s, o)
1283
+ })),
1284
+ setNodeExpanded: (s, o) => r((a) => ({
1285
+ ...a,
1286
+ expandedNodes: Ye(a.expandedNodes, s, o)
1287
+ })),
1288
+ reset: () => r(Fe)
1289
+ }), {
1290
+ name: $l(e),
1291
+ storage: Ot(() => typeof globalThis.localStorage > "u" ? Rl() : globalThis.localStorage),
1292
+ partialize: Dl
1293
+ }));
1294
+ }, Ue = /* @__PURE__ */ new Map(), El = (n) => {
1295
+ const e = Ue.get(n);
1296
+ if (e)
1297
+ return e;
1298
+ const l = Ll({
1299
+ storageKey: n
1300
+ });
1301
+ return Ue.set(n, l), l;
1302
+ }, _e = (n, e) => {
1303
+ const l = T(2);
1304
+ let t;
1305
+ return l[0] !== n ? (t = El(n), l[0] = n, l[1] = t) : t = l[1], Mt(t, e);
1306
+ }, zl = (n) => {
1307
+ const e = T(2), {
1308
+ children: l
1309
+ } = n;
1310
+ if (!l)
1311
+ return null;
1312
+ let t;
1313
+ return e[0] !== l ? (t = /* @__PURE__ */ i(D, { borderTopWidth: "1px", borderTopColor: "border.muted", px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", children: l }), e[0] = l, e[1] = t) : t = e[1], t;
1314
+ }, Hl = (n) => {
1315
+ const e = T(8), {
1316
+ children: l,
1317
+ onClose: t
1318
+ } = n;
1319
+ let r;
1320
+ e[0] !== l ? (r = /* @__PURE__ */ i(F, { minW: "0", flex: "1", children: l }), e[0] = l, e[1] = r) : r = e[1];
1321
+ let s;
1322
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ i(Ht, { size: 16 }), e[2] = s) : s = e[2];
1323
+ let o;
1324
+ e[3] !== t ? (o = /* @__PURE__ */ i($e, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: s }), e[3] = t, e[4] = o) : o = e[4];
1325
+ let a;
1326
+ return e[5] !== r || e[6] !== o ? (a = /* @__PURE__ */ b(F, { justify: "space-between", align: "center", minH: "11", px: "3", py: "2", borderBottomWidth: "1px", borderBottomColor: "border.muted", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1327
+ r,
1328
+ o
1329
+ ] }), e[5] = r, e[6] = o, e[7] = a) : a = e[7], a;
1330
+ }, Wn = (n) => {
1331
+ const e = T(23), {
1332
+ storageKey: l,
1333
+ sections: t,
1334
+ activeNodeId: r,
1335
+ header: s,
1336
+ footer: o,
1337
+ width: a,
1338
+ emptyLabel: c,
1339
+ onNavigate: d,
1340
+ onOpenChange: h
1341
+ } = n, g = a === void 0 ? "320px" : a, f = c === void 0 ? "No items available." : c, u = _e(l, Nl), m = _e(l, Wl), p = _e(l, Al), x = _e(l, Ml), S = _e(l, Bl), y = _e(l, Ol);
1342
+ let v, I;
1343
+ if (e[0] !== h || e[1] !== u ? (v = () => {
1344
+ h?.(u);
1345
+ }, I = [h, u], e[0] = h, e[1] = u, e[2] = v, e[3] = I) : (v = e[2], I = e[3]), We(v, I), !u)
1346
+ return null;
1347
+ let P;
1348
+ e[4] !== x || e[5] !== s ? (P = /* @__PURE__ */ i(Hl, { onClose: x, children: s }), e[4] = x, e[5] = s, e[6] = P) : P = e[6];
1349
+ let k;
1350
+ e[7] !== r || e[8] !== f || e[9] !== p || e[10] !== m || e[11] !== d || e[12] !== t || e[13] !== y || e[14] !== S ? (k = /* @__PURE__ */ i(he, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i(w, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: f }) : /* @__PURE__ */ i(Il, { sections: t, expandedSections: m, expandedNodes: p, activeNodeId: r, onNavigate: d, onToggleSection: S, onToggleNode: y }) }), e[7] = r, e[8] = f, e[9] = p, e[10] = m, e[11] = d, e[12] = t, e[13] = y, e[14] = S, e[15] = k) : k = e[15];
1351
+ let C;
1352
+ e[16] !== o ? (C = /* @__PURE__ */ i(zl, { children: o }), e[16] = o, e[17] = C) : C = e[17];
1353
+ let _;
1354
+ return e[18] !== P || e[19] !== k || e[20] !== C || e[21] !== g ? (_ = /* @__PURE__ */ b(me, { as: "aside", direction: "column", h: "100%", w: g, minW: g, maxW: g, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1355
+ P,
1356
+ k,
1357
+ C
1358
+ ] }), e[18] = P, e[19] = k, e[20] = C, e[21] = g, e[22] = _) : _ = e[22], _;
1359
+ };
1360
+ function Nl(n) {
1361
+ return n.open;
1362
+ }
1363
+ function Wl(n) {
1364
+ return n.expandedSections;
1365
+ }
1366
+ function Al(n) {
1367
+ return n.expandedNodes;
1368
+ }
1369
+ function Ml(n) {
1370
+ return n.closeSidebar;
1371
+ }
1372
+ function Bl(n) {
1373
+ return n.toggleSection;
1374
+ }
1375
+ function Ol(n) {
1376
+ return n.toggleNode;
1377
+ }
1378
+ const An = He.forwardRef(function(e, l) {
1379
+ const t = T(32);
1380
+ let r, s, o, a, c, d, h;
911
1381
  t[0] !== e ? ({
912
1382
  inputProps: s,
913
- children: o,
1383
+ children: r,
914
1384
  rootRef: a,
915
- trackLabel: d,
916
- thumbLabel: c,
917
- ...r
918
- } = e, t[0] = e, t[1] = o, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = d) : (o = t[1], s = t[2], r = t[3], a = t[4], c = t[5], d = t[6]);
919
- let h;
920
- t[7] !== s || t[8] !== n ? (h = /* @__PURE__ */ l(pe.HiddenInput, { ref: n, ...s }), t[7] = s, t[8] = n, t[9] = h) : h = t[9];
921
- let f;
922
- t[10] !== c ? (f = c && /* @__PURE__ */ l(pe.ThumbIndicator, { fallback: c?.off, children: c?.on }), t[10] = c, t[11] = f) : f = t[11];
923
- let g;
924
- t[12] !== f ? (g = /* @__PURE__ */ l(pe.Thumb, { borderRadius: "sm", children: f }), t[12] = f, t[13] = g) : g = t[13];
1385
+ trackLabel: h,
1386
+ thumbLabel: d,
1387
+ disabled: c,
1388
+ ...o
1389
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = o, t[4] = a, t[5] = c, t[6] = d, t[7] = h) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6], h = t[7]);
1390
+ const g = c === void 0 ? !1 : c, f = g ? "not-allowed" : "pointer";
1391
+ let u;
1392
+ t[8] !== s || t[9] !== l ? (u = /* @__PURE__ */ i(be.HiddenInput, { ref: l, ...s }), t[8] = s, t[9] = l, t[10] = u) : u = t[10];
925
1393
  let m;
926
- t[14] !== d ? (m = d && /* @__PURE__ */ l(pe.Indicator, { fallback: d.off, children: d.on }), t[14] = d, t[15] = m) : m = t[15];
1394
+ t[11] !== d ? (m = d && /* @__PURE__ */ i(be.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = m) : m = t[12];
927
1395
  let p;
928
- t[16] !== g || t[17] !== m ? (p = /* @__PURE__ */ u(pe.Control, { borderRadius: "sm", children: [
929
- g,
930
- m
931
- ] }), t[16] = g, t[17] = m, t[18] = p) : p = t[18];
1396
+ t[13] !== m ? (p = /* @__PURE__ */ i(be.Thumb, { borderRadius: "full", children: m }), t[13] = m, t[14] = p) : p = t[14];
932
1397
  let x;
933
- t[19] !== o ? (x = o != null && /* @__PURE__ */ l(pe.Label, { children: o }), t[19] = o, t[20] = x) : x = t[20];
934
- let b;
935
- return t[21] !== r || t[22] !== a || t[23] !== h || t[24] !== p || t[25] !== x ? (b = /* @__PURE__ */ u(pe.Root, { ref: a, ...r, children: [
936
- h,
1398
+ t[15] !== h ? (x = h && /* @__PURE__ */ i(be.Indicator, { fallback: h.off, children: h.on }), t[15] = h, t[16] = x) : x = t[16];
1399
+ let S;
1400
+ t[17] !== f || t[18] !== p || t[19] !== x ? (S = /* @__PURE__ */ b(be.Control, { borderRadius: "md", cursor: f, children: [
937
1401
  p,
938
1402
  x
939
- ] }), t[21] = r, t[22] = a, t[23] = h, t[24] = p, t[25] = x, t[26] = b) : b = t[26], b;
940
- }), el = (i) => {
941
- const e = D(43), {
942
- ticketId: n,
1403
+ ] }), t[17] = f, t[18] = p, t[19] = x, t[20] = S) : S = t[20];
1404
+ let y;
1405
+ t[21] !== r || t[22] !== f ? (y = r != null && /* @__PURE__ */ i(be.Label, { cursor: f, children: r }), t[21] = r, t[22] = f, t[23] = y) : y = t[23];
1406
+ let v;
1407
+ return t[24] !== g || t[25] !== f || t[26] !== o || t[27] !== a || t[28] !== u || t[29] !== S || t[30] !== y ? (v = /* @__PURE__ */ b(be.Root, { ref: a, disabled: g, cursor: f, ...o, children: [
1408
+ u,
1409
+ S,
1410
+ y
1411
+ ] }), t[24] = g, t[25] = f, t[26] = o, t[27] = a, t[28] = u, t[29] = S, t[30] = y, t[31] = v) : v = t[31], v;
1412
+ }), jl = (n) => {
1413
+ const e = T(43), {
1414
+ ticketId: l,
943
1415
  parentPath: t,
944
- sessionIndicatorLabel: o,
1416
+ sessionIndicatorLabel: r,
945
1417
  sessionIndicatorStatus: s,
946
- title: r,
1418
+ title: o,
947
1419
  badges: a,
948
1420
  diffAdditions: c,
949
1421
  diffDeletions: d,
950
1422
  isSelected: h,
951
- draggable: f,
952
- onDragStart: g,
953
- onDragEnd: m,
954
- onClick: p,
955
- onDiffBadgeClick: x,
956
- onSessionIndicatorClick: b
957
- } = i;
958
- let y;
959
- e[0] !== t ? (y = t === void 0 ? [] : t, e[0] = t, e[1] = y) : y = e[1];
960
- const I = y;
961
- let T;
962
- e[2] !== a ? (T = a === void 0 ? [] : a, e[2] = a, e[3] = T) : T = e[3];
963
- const P = T, k = h === void 0 ? !1 : h;
1423
+ draggable: g,
1424
+ onDragStart: f,
1425
+ onDragEnd: u,
1426
+ onClick: m,
1427
+ onDiffBadgeClick: p,
1428
+ onSessionIndicatorClick: x
1429
+ } = n;
1430
+ let S;
1431
+ e[0] !== t ? (S = t === void 0 ? [] : t, e[0] = t, e[1] = S) : S = e[1];
1432
+ const y = S;
964
1433
  let v;
965
- e[4] !== x ? (v = (V) => {
966
- V.stopPropagation(), x?.();
967
- }, e[4] = x, e[5] = v) : v = e[5];
968
- const _ = v;
969
- let z;
970
- e[6] !== b ? (z = (V) => {
971
- V.stopPropagation(), b?.();
972
- }, e[6] = b, e[7] = z) : z = e[7];
973
- const L = z;
974
- let Y;
975
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = {
1434
+ e[2] !== a ? (v = a === void 0 ? [] : a, e[2] = a, e[3] = v) : v = e[3];
1435
+ const I = v, P = h === void 0 ? !1 : h;
1436
+ let k;
1437
+ e[4] !== p ? (k = (Y) => {
1438
+ Y.stopPropagation(), p?.();
1439
+ }, e[4] = p, e[5] = k) : k = e[5];
1440
+ const C = k;
1441
+ let _;
1442
+ e[6] !== x ? (_ = (Y) => {
1443
+ Y.stopPropagation(), x?.();
1444
+ }, e[6] = x, e[7] = _) : _ = e[7];
1445
+ const L = _;
1446
+ let B;
1447
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
976
1448
  borderColor: "border.blue",
977
1449
  boxShadow: "mid"
978
- }, e[8] = Y) : Y = e[8];
979
- const M = f ? "grab" : p ? "pointer" : "default", j = k ? "true" : void 0;
980
- let H;
981
- e[9] !== I ? (H = I.length > 0 && /* @__PURE__ */ u(S, { as: "span", color: "subtle", children: [
982
- I.join(" / "),
1450
+ }, e[8] = B) : B = e[8];
1451
+ const N = g ? "grab" : m ? "pointer" : "default", O = P ? "true" : void 0;
1452
+ let z;
1453
+ e[9] !== y ? (z = y.length > 0 && /* @__PURE__ */ b(w, { as: "span", color: "subtle", children: [
1454
+ y.join(" / "),
983
1455
  " /",
984
1456
  " "
985
- ] }), e[9] = I, e[10] = H) : H = e[10];
986
- let R;
987
- e[11] !== H || e[12] !== n ? (R = /* @__PURE__ */ u(S, { textStyle: "label/S/regular", flexShrink: 0, children: [
988
- H,
989
- n
990
- ] }), e[11] = H, e[12] = n, e[13] = R) : R = e[13];
1457
+ ] }), e[9] = y, e[10] = z) : z = e[10];
1458
+ let E;
1459
+ e[11] !== z || e[12] !== l ? (E = /* @__PURE__ */ b(w, { textStyle: "label/S/regular", flexShrink: 0, children: [
1460
+ z,
1461
+ l
1462
+ ] }), e[11] = z, e[12] = l, e[13] = E) : E = e[13];
991
1463
  let A;
992
- e[14] !== L || e[15] !== b || e[16] !== o || e[17] !== s ? (A = o ? /* @__PURE__ */ l(_e, { content: `Session ${o}`, children: /* @__PURE__ */ l(Zt, { status: s, boxSize: "12px", "aria-label": `Session ${o}`, cursor: b ? "pointer" : "default", onClick: b ? L : void 0 }) }) : null, e[14] = L, e[15] = b, e[16] = o, e[17] = s, e[18] = A) : A = e[18];
993
- let O;
994
- e[19] !== R || e[20] !== A ? (O = /* @__PURE__ */ u(te, { gap: "2xs", flexShrink: 0, children: [
995
- R,
1464
+ e[14] !== L || e[15] !== x || e[16] !== r || e[17] !== s ? (A = r ? /* @__PURE__ */ i(Ee, { content: `Session ${r}`, children: /* @__PURE__ */ i(wl, { status: s, boxSize: "12px", "aria-label": `Session ${r}`, cursor: x ? "pointer" : "default", onClick: x ? L : void 0 }) }) : null, e[14] = L, e[15] = x, e[16] = r, e[17] = s, e[18] = A) : A = e[18];
1465
+ let M;
1466
+ e[19] !== E || e[20] !== A ? (M = /* @__PURE__ */ b(F, { gap: "2xs", flexShrink: 0, children: [
1467
+ E,
996
1468
  A
997
- ] }), e[19] = R, e[20] = A, e[21] = O) : O = e[21];
1469
+ ] }), e[19] = E, e[20] = A, e[21] = M) : M = e[21];
998
1470
  let W;
999
- e[22] !== c || e[23] !== d || e[24] !== _ ? (W = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ l(ct, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ l(yt, { size: "12" }), onClick: _, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = _, e[25] = W) : W = e[25];
1000
- let N;
1001
- e[26] !== O || e[27] !== W ? (N = /* @__PURE__ */ u(te, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1002
- O,
1471
+ e[22] !== c || e[23] !== d || e[24] !== C ? (W = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(Qe, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(Nt, { size: "12" }), onClick: C, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = C, e[25] = W) : W = e[25];
1472
+ let j;
1473
+ e[26] !== M || e[27] !== W ? (j = /* @__PURE__ */ b(F, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1474
+ M,
1003
1475
  W
1004
- ] }), e[26] = O, e[27] = W, e[28] = N) : N = e[28];
1005
- let w;
1006
- e[29] !== r ? (w = /* @__PURE__ */ l(te, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ l(S, { textStyle: "label/S/regular", flex: "1", minW: "0", children: r }) }), e[29] = r, e[30] = w) : w = e[30];
1476
+ ] }), e[26] = M, e[27] = W, e[28] = j) : j = e[28];
1477
+ let $;
1478
+ e[29] !== o ? ($ = /* @__PURE__ */ i(F, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ i(w, { textStyle: "label/S/regular", flex: "1", minW: "0", children: o }) }), e[29] = o, e[30] = $) : $ = e[30];
1007
1479
  let G;
1008
- e[31] !== P ? (G = P.length > 0 && /* @__PURE__ */ l(Xe, { gap: "2xs", children: P.map(tl) }), e[31] = P, e[32] = G) : G = e[32];
1009
- let Z;
1010
- return e[33] !== f || e[34] !== p || e[35] !== m || e[36] !== g || e[37] !== N || e[38] !== w || e[39] !== G || e[40] !== M || e[41] !== j ? (Z = /* @__PURE__ */ u(C, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "calc(100% - 8px)", alignSelf: "center", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: Y, cursor: M, draggable: f, onDragStart: g, onDragEnd: m, onClick: p, "data-selected": j, children: [
1011
- N,
1012
- w,
1480
+ e[31] !== I ? (G = I.length > 0 && /* @__PURE__ */ i(qe, { gap: "2xs", children: I.map(Gl) }), e[31] = I, e[32] = G) : G = e[32];
1481
+ let Q;
1482
+ return e[33] !== g || e[34] !== m || e[35] !== u || e[36] !== f || e[37] !== j || e[38] !== $ || e[39] !== G || e[40] !== N || e[41] !== O ? (Q = /* @__PURE__ */ b(R, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "calc(100% - 8px)", alignSelf: "center", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: B, cursor: N, draggable: g, onDragStart: f, onDragEnd: u, onClick: m, "data-selected": O, children: [
1483
+ j,
1484
+ $,
1013
1485
  G
1014
- ] }), e[33] = f, e[34] = p, e[35] = m, e[36] = g, e[37] = N, e[38] = w, e[39] = G, e[40] = M, e[41] = j, e[42] = Z) : Z = e[42], Z;
1486
+ ] }), e[33] = g, e[34] = m, e[35] = u, e[36] = f, e[37] = j, e[38] = $, e[39] = G, e[40] = N, e[41] = O, e[42] = Q) : Q = e[42], Q;
1015
1487
  };
1016
- function tl(i) {
1017
- return /* @__PURE__ */ l(De, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
1488
+ function Gl(n) {
1489
+ return /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: n.color ?? "gray", textStyle: "label/XS/medium", children: n.label }, n.label);
1018
1490
  }
1019
- const Yl = (i) => {
1020
- const e = D(20), {
1021
- columns: n,
1491
+ const Mn = (n) => {
1492
+ const e = T(21), {
1493
+ columns: l,
1022
1494
  selectedItemId: t,
1023
- onMoveItem: o,
1495
+ onMoveItem: r,
1024
1496
  onCreateStart: s,
1025
- onColumnAction: r
1026
- } = i, a = t === void 0 ? null : t, [c, d] = Te(null), h = nl;
1027
- let f;
1028
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => {
1497
+ onColumnAction: o
1498
+ } = n, a = t === void 0 ? null : t, [c, d] = Re(null), h = Fl;
1499
+ let g;
1500
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = () => {
1029
1501
  d(null);
1030
- }, e[0] = f) : f = e[0];
1031
- const g = f;
1032
- let m;
1033
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (k) => (v) => {
1034
- v.preventDefault(), v.dataTransfer.dropEffect = "move", d(k);
1035
- }, e[1] = m) : m = e[1];
1036
- const p = m;
1037
- let x;
1038
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (k) => {
1502
+ }, e[0] = g) : g = e[0];
1503
+ const f = g;
1504
+ let u;
1505
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (k) => (C) => {
1506
+ C.preventDefault(), C.dataTransfer.dropEffect = "move", d(k);
1507
+ }, e[1] = u) : u = e[1];
1508
+ const m = u;
1509
+ let p;
1510
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = (k) => {
1039
1511
  k.currentTarget.contains(k.relatedTarget) || d(null);
1040
- }, e[2] = x) : x = e[2];
1041
- const b = x;
1042
- let y;
1043
- e[3] !== o ? (y = (k) => (v) => {
1044
- v.preventDefault(), d(null);
1045
- const _ = v.dataTransfer.getData("text/plain");
1046
- _ && o?.(_, k);
1047
- }, e[3] = o, e[4] = y) : y = e[4];
1048
- const I = y;
1049
- let T;
1050
- if (e[5] !== c || e[6] !== n || e[7] !== I || e[8] !== r || e[9] !== s || e[10] !== a) {
1512
+ }, e[2] = p) : p = e[2];
1513
+ const x = p;
1514
+ let S;
1515
+ e[3] !== r ? (S = (k) => (C) => {
1516
+ C.preventDefault(), d(null);
1517
+ const _ = C.dataTransfer.getData("text/plain");
1518
+ _ && r?.(_, k);
1519
+ }, e[3] = r, e[4] = S) : S = e[4];
1520
+ const y = S;
1521
+ let v;
1522
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
1523
+ display: "flex",
1524
+ alignItems: "stretch",
1525
+ gap: "0",
1526
+ pb: "2xs",
1527
+ minH: "100%"
1528
+ }, e[5] = v) : v = e[5];
1529
+ let I;
1530
+ if (e[6] !== c || e[7] !== l || e[8] !== y || e[9] !== o || e[10] !== s || e[11] !== a) {
1051
1531
  let k;
1052
- e[12] !== c || e[13] !== I || e[14] !== r || e[15] !== s || e[16] !== a ? (k = (v) => /* @__PURE__ */ u(C, { gap: "xs", _notFirst: {
1532
+ e[13] !== c || e[14] !== y || e[15] !== o || e[16] !== s || e[17] !== a ? (k = (C) => /* @__PURE__ */ b(R, { gap: "xs", _notFirst: {
1053
1533
  borderLeft: "1px solid",
1054
1534
  borderColor: "border"
1055
- }, background: c === v.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: v.canDragIn ? p(v.id) : void 0, onDragLeave: v.canDragIn ? b : void 0, onDrop: v.canDragIn ? I(v.id) : void 0, children: [
1056
- /* @__PURE__ */ l(ll, { column: v, onCreateStart: s, onColumnAction: r }),
1057
- /* @__PURE__ */ l(C, { gap: "sm", flex: "1", minH: "0", overflowY: "auto", children: v.items.map((_) => /* @__PURE__ */ l(el, { ..._.cardProps, isSelected: _.id === a, draggable: v.canDragOut, onDragStart: v.canDragOut ? h(_.id) : void 0, onDragEnd: v.canDragOut ? g : void 0 }, _.id)) })
1058
- ] }, v.id), e[12] = c, e[13] = I, e[14] = r, e[15] = s, e[16] = a, e[17] = k) : k = e[17], T = n.map(k), e[5] = c, e[6] = n, e[7] = I, e[8] = r, e[9] = s, e[10] = a, e[11] = T;
1535
+ }, background: c === C.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: C.canDragIn ? m(C.id) : void 0, onDragLeave: C.canDragIn ? x : void 0, onDrop: C.canDragIn ? y(C.id) : void 0, children: [
1536
+ /* @__PURE__ */ i(Xl, { column: C, onCreateStart: s, onColumnAction: o }),
1537
+ /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
1538
+ spaceY: "sm"
1539
+ }, children: C.items.map((_) => /* @__PURE__ */ i(jl, { ..._.cardProps, isSelected: _.id === a, draggable: C.canDragOut, onDragStart: C.canDragOut ? h(_.id) : void 0, onDragEnd: C.canDragOut ? f : void 0 }, _.id)) })
1540
+ ] }, C.id), e[13] = c, e[14] = y, e[15] = o, e[16] = s, e[17] = a, e[18] = k) : k = e[18], I = l.map(k), e[6] = c, e[7] = l, e[8] = y, e[9] = o, e[10] = s, e[11] = a, e[12] = I;
1059
1541
  } else
1060
- T = e[11];
1542
+ I = e[12];
1061
1543
  let P;
1062
- return e[18] !== T ? (P = /* @__PURE__ */ l(C, { height: "100%", direction: "row", gap: "0", align: "stretch", overflowX: "auto", overflowY: "hidden", paddingBottom: "2xs", children: T }), e[18] = T, e[19] = P) : P = e[19], P;
1063
- }, ll = (i) => {
1064
- const e = D(20), {
1065
- column: n,
1544
+ return e[19] !== I ? (P = /* @__PURE__ */ i(he, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: v, children: I }), e[19] = I, e[20] = P) : P = e[20], P;
1545
+ }, Xl = (n) => {
1546
+ const e = T(20), {
1547
+ column: l,
1066
1548
  onCreateStart: t,
1067
- onColumnAction: o
1068
- } = i;
1549
+ onColumnAction: r
1550
+ } = n;
1069
1551
  let s;
1070
- e[0] !== n.label ? (s = /* @__PURE__ */ l(S, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = s) : s = e[1];
1071
- const r = n.color ?? "gray";
1552
+ e[0] !== l.label ? (s = /* @__PURE__ */ i(w, { textStyle: "label/L/medium", children: l.label }), e[0] = l.label, e[1] = s) : s = e[1];
1553
+ const o = l.color ?? "gray";
1072
1554
  let a;
1073
- e[2] !== n.items.length || e[3] !== r ? (a = /* @__PURE__ */ l(De, { variant: "subtle", colorPalette: r, children: n.items.length }), e[2] = n.items.length, e[3] = r, e[4] = a) : a = e[4];
1555
+ e[2] !== l.items.length || e[3] !== o ? (a = /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: o, children: l.items.length }), e[2] = l.items.length, e[3] = o, e[4] = a) : a = e[4];
1074
1556
  let c;
1075
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ l(Ze, {}), e[5] = c) : c = e[5];
1557
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(ut, {}), e[5] = c) : c = e[5];
1076
1558
  let d;
1077
- e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ l(_e, { content: "Create new ticket", children: /* @__PURE__ */ l(We, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ l(ne, { as: vt, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
1559
+ e[6] !== l.canCreate || e[7] !== l.id || e[8] !== t ? (d = l.canCreate && t && /* @__PURE__ */ i(Ee, { content: "Create new ticket", children: /* @__PURE__ */ i($e, { size: "2xs", variant: "outline", onClick: () => t(l.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(ne, { as: Wt, boxSize: "12px" }) }) }), e[6] = l.canCreate, e[7] = l.id, e[8] = t, e[9] = d) : d = e[9];
1078
1560
  let h;
1079
- e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== o ? (h = n.actions.length > 0 && /* @__PURE__ */ u(ue.Root, { children: [
1080
- /* @__PURE__ */ l(ue.Trigger, { asChild: !0, children: /* @__PURE__ */ l(We, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ l(ne, { as: Ct, boxSize: "12px" }) }) }),
1081
- /* @__PURE__ */ l(ue.Positioner, { children: /* @__PURE__ */ l(ue.Content, { minW: "180px", bg: "bg", children: n.actions.map((g) => /* @__PURE__ */ l(Le, { primaryLabel: g.label, leftIcon: g.icon, onClick: () => o?.(n.id, g.id) }, g.id)) }) })
1082
- ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = o, e[14] = h) : h = e[14];
1083
- let f;
1084
- return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== h ? (f = /* @__PURE__ */ u(te, { padding: "xs", gap: "xs", alignItems: "center", children: [
1561
+ e[10] !== l.actions || e[11] !== l.id || e[12] !== l.label || e[13] !== r ? (h = l.actions.length > 0 && /* @__PURE__ */ b(ie.Root, { children: [
1562
+ /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i($e, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${l.label}`, children: /* @__PURE__ */ i(ne, { as: At, boxSize: "12px" }) }) }),
1563
+ /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "180px", bg: "bg", children: l.actions.map((f) => /* @__PURE__ */ i(Ae, { primaryLabel: f.label, leftIcon: f.icon, onClick: () => r?.(l.id, f.id) }, f.id)) }) })
1564
+ ] }), e[10] = l.actions, e[11] = l.id, e[12] = l.label, e[13] = r, e[14] = h) : h = e[14];
1565
+ let g;
1566
+ return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== h ? (g = /* @__PURE__ */ b(F, { padding: "xs", gap: "xs", alignItems: "center", children: [
1085
1567
  s,
1086
1568
  a,
1087
1569
  c,
1088
1570
  d,
1089
1571
  h
1090
- ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = h, e[19] = f) : f = e[19], f;
1572
+ ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = h, e[19] = g) : g = e[19], g;
1091
1573
  };
1092
- function nl(i) {
1574
+ function Fl(n) {
1093
1575
  return (e) => {
1094
- e.dataTransfer.setData("text/plain", i), e.dataTransfer.effectAllowed = "move";
1576
+ e.dataTransfer.setData("text/plain", n), e.dataTransfer.effectAllowed = "move";
1095
1577
  };
1096
1578
  }
1097
- const il = [{
1579
+ const Vl = [{
1098
1580
  id: "ticket",
1099
1581
  header: "",
1100
1582
  cell: ({
1101
- row: i
1102
- }) => /* @__PURE__ */ l(rl, { row: i })
1103
- }], Fl = (i) => {
1583
+ row: n
1584
+ }) => /* @__PURE__ */ i(Yl, { row: n })
1585
+ }], Bn = (n) => {
1104
1586
  const {
1105
1587
  items: e,
1106
- selectedItemId: n = null,
1588
+ selectedItemId: l = null,
1107
1589
  onItemClick: t
1108
- } = i, o = wt({
1590
+ } = n, r = Gt({
1109
1591
  data: e,
1110
- columns: il,
1592
+ columns: Vl,
1111
1593
  state: {
1112
1594
  expanded: !0
1113
1595
  },
1114
1596
  getSubRows: (s) => s.children,
1115
- getCoreRowModel: It(),
1116
- getExpandedRowModel: kt(),
1597
+ getCoreRowModel: Ft(),
1598
+ getExpandedRowModel: Xt(),
1117
1599
  getRowId: (s) => s.id
1118
1600
  });
1119
- return /* @__PURE__ */ l(B, { children: o.getRowModel().rows.map((s) => {
1120
- const r = s.original, a = r.id === n;
1121
- return /* @__PURE__ */ l(te, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: a ? "bg.muted" : "transparent", _hover: {
1601
+ return /* @__PURE__ */ i(D, { children: r.getRowModel().rows.map((s) => {
1602
+ const o = s.original, a = o.id === l;
1603
+ return /* @__PURE__ */ i(F, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: a ? "bg.muted" : "transparent", _hover: {
1122
1604
  background: "bg.muted"
1123
1605
  }, onClick: () => {
1124
- r.onClick?.(), t?.(r);
1125
- }, "data-selected": a ? "true" : void 0, children: Tt(s.getVisibleCells()[0].column.columnDef.cell, s.getVisibleCells()[0].getContext()) }, s.id);
1606
+ o.onClick?.(), t?.(o);
1607
+ }, "data-selected": a ? "true" : void 0, children: Vt(s.getVisibleCells()[0].column.columnDef.cell, s.getVisibleCells()[0].getContext()) }, s.id);
1126
1608
  }) });
1127
- }, rl = (i) => {
1128
- const e = D(25), {
1129
- row: n
1130
- } = i, t = n.original, o = n.depth, s = o > 0 ? `${o * 24}px` : void 0;
1131
- let r;
1132
- e[0] !== o || e[1] !== n ? (r = n.getCanExpand() ? /* @__PURE__ */ l(ol, { row: n }) : o > 0 ? /* @__PURE__ */ l(sl, {}) : null, e[0] = o, e[1] = n, e[2] = r) : r = e[2];
1609
+ }, Yl = (n) => {
1610
+ const e = T(25), {
1611
+ row: l
1612
+ } = n, t = l.original, r = l.depth, s = r > 0 ? `${r * 24}px` : void 0;
1613
+ let o;
1614
+ e[0] !== r || e[1] !== l ? (o = l.getCanExpand() ? /* @__PURE__ */ i(Ul, { row: l }) : r > 0 ? /* @__PURE__ */ i(Kl, {}) : null, e[0] = r, e[1] = l, e[2] = o) : o = e[2];
1133
1615
  let a;
1134
- e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ l(ne, { 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];
1616
+ e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(ne, { 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];
1135
1617
  let c;
1136
- e[6] !== t.ticketId ? (c = /* @__PURE__ */ l(S, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
1618
+ e[6] !== t.ticketId ? (c = /* @__PURE__ */ i(w, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
1137
1619
  let d;
1138
- e[8] !== t.title ? (d = /* @__PURE__ */ l(S, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
1620
+ e[8] !== t.title ? (d = /* @__PURE__ */ i(w, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
1139
1621
  let h;
1140
- e[10] !== t.badges ? (h = t.badges && t.badges.length > 0 && /* @__PURE__ */ l(Xe, { gap: "2xs", flexShrink: 0, children: t.badges.map(al) }), e[10] = t.badges, e[11] = h) : h = e[11];
1141
- let f;
1142
- e[12] !== t.assigneeIcon ? (f = t.assigneeIcon && /* @__PURE__ */ l(B, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = f) : f = e[13];
1622
+ e[10] !== t.badges ? (h = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(qe, { gap: "2xs", flexShrink: 0, children: t.badges.map(ql) }), e[10] = t.badges, e[11] = h) : h = e[11];
1143
1623
  let g;
1144
- e[14] !== t.date ? (g = t.date && /* @__PURE__ */ l(S, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = g) : g = e[15];
1145
- let m;
1146
- return e[16] !== s || e[17] !== r || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== h || e[22] !== f || e[23] !== g ? (m = /* @__PURE__ */ u(te, { gap: "sm", flex: "1", paddingLeft: s, children: [
1147
- r,
1624
+ e[12] !== t.assigneeIcon ? (g = t.assigneeIcon && /* @__PURE__ */ i(D, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = g) : g = e[13];
1625
+ let f;
1626
+ e[14] !== t.date ? (f = t.date && /* @__PURE__ */ i(w, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = f) : f = e[15];
1627
+ let u;
1628
+ return e[16] !== s || e[17] !== o || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== h || e[22] !== g || e[23] !== f ? (u = /* @__PURE__ */ b(F, { gap: "sm", flex: "1", paddingLeft: s, children: [
1629
+ o,
1148
1630
  a,
1149
1631
  c,
1150
1632
  d,
1151
1633
  h,
1152
- f,
1153
- g
1154
- ] }), e[16] = s, e[17] = r, e[18] = a, e[19] = c, e[20] = d, e[21] = h, e[22] = f, e[23] = g, e[24] = m) : m = e[24], m;
1155
- }, ol = (i) => {
1156
- const e = D(7), {
1157
- row: n
1158
- } = i;
1634
+ g,
1635
+ f
1636
+ ] }), e[16] = s, e[17] = o, e[18] = a, e[19] = c, e[20] = d, e[21] = h, e[22] = g, e[23] = f, e[24] = u) : u = e[24], u;
1637
+ }, Ul = (n) => {
1638
+ const e = T(7), {
1639
+ row: l
1640
+ } = n;
1159
1641
  let t;
1160
- e[0] !== n ? (t = (a) => {
1161
- a.stopPropagation(), n.toggleExpanded();
1162
- }, e[0] = n, e[1] = t) : t = e[1];
1163
- const o = n.getIsExpanded() ? "rotate(90deg)" : "rotate(0deg)";
1642
+ e[0] !== l ? (t = (a) => {
1643
+ a.stopPropagation(), l.toggleExpanded();
1644
+ }, e[0] = l, e[1] = t) : t = e[1];
1645
+ const r = l.getIsExpanded() ? "rotate(90deg)" : "rotate(0deg)";
1164
1646
  let s;
1165
- e[2] !== o ? (s = /* @__PURE__ */ l(ne, { as: Pe, boxSize: "14px", color: "fg.muted", transform: o, transition: "transform 0.15s ease" }), e[2] = o, e[3] = s) : s = e[3];
1166
- let r;
1167
- return e[4] !== t || e[5] !== s ? (r = /* @__PURE__ */ l(B, { as: "button", onClick: t, cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", children: s }), e[4] = t, e[5] = s, e[6] = r) : r = e[6], r;
1168
- }, sl = () => {
1169
- const i = D(1);
1647
+ e[2] !== r ? (s = /* @__PURE__ */ i(ne, { as: pe, boxSize: "14px", color: "fg.muted", transform: r, transition: "transform 0.15s ease" }), e[2] = r, e[3] = s) : s = e[3];
1648
+ let o;
1649
+ return e[4] !== t || e[5] !== s ? (o = /* @__PURE__ */ i(D, { as: "button", onClick: t, cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", children: s }), e[4] = t, e[5] = s, e[6] = o) : o = e[6], o;
1650
+ }, Kl = () => {
1651
+ const n = T(1);
1170
1652
  let e;
1171
- return i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ u(B, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
1172
- /* @__PURE__ */ l(B, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
1173
- /* @__PURE__ */ l(B, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
1174
- ] }), i[0] = e) : e = i[0], e;
1653
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(D, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
1654
+ /* @__PURE__ */ i(D, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
1655
+ /* @__PURE__ */ i(D, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
1656
+ ] }), n[0] = e) : e = n[0], e;
1175
1657
  };
1176
- function al(i) {
1177
- return /* @__PURE__ */ l(De, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
1658
+ function ql(n) {
1659
+ return /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: n.color ?? "gray", textStyle: "label/XS/medium", children: n.label }, n.label);
1178
1660
  }
1179
- const cl = et({
1661
+ const Jl = mt({
1180
1662
  placement: "bottom-end",
1181
1663
  pauseOnPageIdle: !0
1182
- }), jl = () => {
1183
- const i = D(1);
1664
+ }), On = () => {
1665
+ const n = T(1);
1184
1666
  let e;
1185
- return i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ l(tt, { children: /* @__PURE__ */ l(lt, { toaster: cl, insetInline: {
1667
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(bt, { toaster: Jl, insetInline: {
1186
1668
  mdDown: "4"
1187
- }, children: dl }) }), i[0] = e) : e = i[0], e;
1669
+ }, children: Ql }) }), n[0] = e) : e = n[0], e;
1188
1670
  };
1189
- function dl(i) {
1190
- return /* @__PURE__ */ u(we.Root, { width: {
1671
+ function Ql(n) {
1672
+ return /* @__PURE__ */ b(Te.Root, { width: {
1191
1673
  md: "sm"
1192
1674
  }, children: [
1193
- i.type === "loading" ? /* @__PURE__ */ l(nt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ l(we.Indicator, {}),
1194
- /* @__PURE__ */ u(C, { gap: "1", flex: "1", maxWidth: "100%", children: [
1195
- i.title && /* @__PURE__ */ l(we.Title, { children: i.title }),
1196
- i.description && /* @__PURE__ */ l(we.Description, { children: i.description })
1675
+ n.type === "loading" ? /* @__PURE__ */ i(xt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i(Te.Indicator, {}),
1676
+ /* @__PURE__ */ b(R, { gap: "1", flex: "1", maxWidth: "100%", children: [
1677
+ n.title && /* @__PURE__ */ i(Te.Title, { children: n.title }),
1678
+ n.description && /* @__PURE__ */ i(Te.Description, { children: n.description })
1197
1679
  ] }),
1198
- i.action && /* @__PURE__ */ l(we.ActionTrigger, { children: i.action.label }),
1199
- i.closable && /* @__PURE__ */ l(we.CloseTrigger, {})
1680
+ n.action && /* @__PURE__ */ i(Te.ActionTrigger, { children: n.action.label }),
1681
+ n.closable && /* @__PURE__ */ i(Te.CloseTrigger, {})
1200
1682
  ] });
1201
1683
  }
1202
- const hl = (i) => {
1684
+ const Zl = (n) => {
1203
1685
  if (typeof document > "u") return;
1204
- const e = document.documentElement, n = document.body, t = i === "dark" ? "light" : "dark";
1205
- for (const o of [e, n])
1206
- o && (o.classList.remove(t), o.classList.add(i), o.setAttribute("data-theme", i), o.style.colorScheme = i);
1207
- }, Fe = "theme-preference", je = st(null), fl = () => {
1686
+ const e = document.documentElement, l = document.body, t = n === "dark" ? "light" : "dark";
1687
+ for (const r of [e, l])
1688
+ r && (r.classList.remove(t), r.classList.add(n), r.setAttribute("data-theme", n), r.style.colorScheme = n);
1689
+ }, it = "theme-preference", rt = vt(null), en = () => {
1208
1690
  if (typeof window > "u") return "light";
1209
- const i = window.localStorage.getItem(Fe);
1210
- return i === "dark" || i === "light" ? i : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1211
- }, Nl = (i) => {
1212
- const e = D(11), {
1213
- children: n,
1691
+ const n = window.localStorage.getItem(it);
1692
+ return n === "dark" || n === "light" ? n : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1693
+ }, jn = (n) => {
1694
+ const e = T(11), {
1695
+ children: l,
1214
1696
  initialPreference: t
1215
- } = i;
1216
- let o;
1217
- e[0] !== t ? (o = t === void 0 ? fl() : t, e[0] = t, e[1] = o) : o = e[1];
1218
- const s = o, [r, a] = Te(s);
1697
+ } = n;
1698
+ let r;
1699
+ e[0] !== t ? (r = t === void 0 ? en() : t, e[0] = t, e[1] = r) : r = e[1];
1700
+ const s = r, [o, a] = Re(s);
1219
1701
  let c, d;
1220
- e[2] !== r ? (c = () => {
1221
- hl(r), typeof window < "u" && window.localStorage.setItem(Fe, r);
1222
- }, d = [r], e[2] = r, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), ze(c, d);
1702
+ e[2] !== o ? (c = () => {
1703
+ Zl(o), typeof window < "u" && window.localStorage.setItem(it, o);
1704
+ }, d = [o], e[2] = o, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), We(c, d);
1223
1705
  let h;
1224
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => a(gl), e[5] = h) : h = e[5];
1225
- const f = h;
1226
- let g;
1227
- e[6] !== r ? (g = {
1228
- themePreference: r,
1706
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => a(tn), e[5] = h) : h = e[5];
1707
+ const g = h;
1708
+ let f;
1709
+ e[6] !== o ? (f = {
1710
+ themePreference: o,
1229
1711
  setThemePreference: a,
1230
- toggleThemePreference: f
1231
- }, e[6] = r, e[7] = g) : g = e[7];
1232
- let m;
1233
- return e[8] !== n || e[9] !== g ? (m = /* @__PURE__ */ l(je, { value: g, children: n }), e[8] = n, e[9] = g, e[10] = m) : m = e[10], m;
1234
- }, Vl = () => {
1235
- const i = at(je);
1236
- if (!i)
1712
+ toggleThemePreference: g
1713
+ }, e[6] = o, e[7] = f) : f = e[7];
1714
+ let u;
1715
+ return e[8] !== l || e[9] !== f ? (u = /* @__PURE__ */ i(rt, { value: f, children: l }), e[8] = l, e[9] = f, e[10] = u) : u = e[10], u;
1716
+ }, Gn = () => {
1717
+ const n = Ct(rt);
1718
+ if (!n)
1237
1719
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
1238
- return i;
1720
+ return n;
1239
1721
  };
1240
- function gl(i) {
1241
- return i === "dark" ? "light" : "dark";
1722
+ function tn(n) {
1723
+ return n === "dark" ? "light" : "dark";
1242
1724
  }
1243
1725
  export {
1244
- _t as AlertMessage,
1245
- $l as Breadcrumb,
1246
- ql as ChakraProvider,
1247
- Dt as ContentPlaceholder,
1248
- Ll as ContentPlaceholderLabel,
1249
- Rl as DeleteConfirmationModal,
1250
- ct as DiffBubble,
1251
- El as DocsChangelog,
1252
- zl as DocsOutline,
1253
- Hl as DocsPagination,
1254
- Ml as DocsSidebar,
1255
- Ql as EmptyState,
1256
- Wl as ErrorBoundary,
1257
- Bl as FolderPickerDialog,
1258
- Al as HorizontalMenuStack,
1259
- Gt as ItemSection,
1260
- Le as MenuItem,
1261
- Ol as OpenSourceNoticesScreen,
1262
- jt as PanelMenu,
1263
- Gl as Properties,
1264
- Zt as SessionIndicator,
1265
- Xl as Switch,
1266
- Nl as ThemePreferenceProvider,
1267
- Yl as TicketBoard,
1268
- el as TicketCard,
1269
- Fl as TicketList,
1270
- jl as Toaster,
1271
- _e as Tooltip,
1272
- hl as applyThemePreference,
1273
- fl as getInitialThemePreference,
1274
- en as psTheme,
1275
- cl as toaster,
1276
- Vl as useThemePreference
1726
+ Yt as AlertMessage,
1727
+ wn as Breadcrumb,
1728
+ Vn as ChakraProvider,
1729
+ kn as Checkbox,
1730
+ Ut as ContentPlaceholder,
1731
+ In as ContentPlaceholderLabel,
1732
+ Pn as DeleteConfirmationModal,
1733
+ Qe as DiffBubble,
1734
+ Tn as DiffDrawer,
1735
+ _n as DocsChangelog,
1736
+ $n as DocsOutline,
1737
+ Rn as DocsPagination,
1738
+ Dn as DocsSidebar,
1739
+ kt as EmptyState,
1740
+ Ln as ErrorBoundary,
1741
+ En as FolderPickerDialog,
1742
+ zn as HorizontalMenuStack,
1743
+ cl as ItemSection,
1744
+ Ae as MenuItem,
1745
+ Hn as OpenSourceNoticesScreen,
1746
+ gl as PanelMenu,
1747
+ Nn as Properties,
1748
+ he as ScrollArea,
1749
+ wl as SessionIndicator,
1750
+ Wn as SidebarNext,
1751
+ Il as SidebarTree,
1752
+ An as Switch,
1753
+ jn as ThemePreferenceProvider,
1754
+ Mn as TicketBoard,
1755
+ jl as TicketCard,
1756
+ Bn as TicketList,
1757
+ On as Toaster,
1758
+ Ee as Tooltip,
1759
+ Zl as applyThemePreference,
1760
+ en as getInitialThemePreference,
1761
+ Un as psTheme,
1762
+ Jl as toaster,
1763
+ _e as useSidebarNextStore,
1764
+ Gn as useThemePreference
1277
1765
  };
1278
1766
  //# sourceMappingURL=index.js.map