@pstdio/ui 0.0.4 → 0.1.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 (47) hide show
  1. package/dist/chat-ui.js +1212 -193
  2. package/dist/chat-ui.js.map +1 -1
  3. package/dist/components/chat-ui/index.d.ts +8 -5
  4. package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
  5. package/dist/components/documentation/docs-changelog.d.ts +20 -0
  6. package/dist/components/documentation/docs-changelog.stories.d.ts +15 -0
  7. package/dist/components/documentation/docs-outline.d.ts +13 -0
  8. package/dist/components/documentation/docs-outline.stories.d.ts +16 -0
  9. package/dist/components/documentation/docs-pagination.d.ts +10 -0
  10. package/dist/components/documentation/docs-pagination.stories.d.ts +14 -0
  11. package/dist/components/documentation/docs-sidebar.d.ts +14 -0
  12. package/dist/components/documentation/docs-sidebar.stories.d.ts +7 -0
  13. package/dist/components/folder-picker-dialog.d.ts +25 -0
  14. package/dist/components/folder-picker-dialog.stories.d.ts +11 -0
  15. package/dist/components/panel-menu.d.ts +2 -0
  16. package/dist/components/panel-menu.stories.d.ts +1 -0
  17. package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +1 -0
  18. package/dist/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +1 -0
  19. package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
  20. package/dist/components/session-indicator.d.ts +1 -1
  21. package/dist/components/switch.d.ts +15 -0
  22. package/dist/components/switch.stories.d.ts +16 -0
  23. package/dist/components/{ticket-card.d.ts → tickets/ticket-card.d.ts} +2 -1
  24. package/dist/components/tickets/ticket-list.d.ts +23 -0
  25. package/dist/components/tickets/ticket-list.stories.d.ts +10 -0
  26. package/dist/empty-state-Bu1ocnPz.js +70 -0
  27. package/dist/empty-state-Bu1ocnPz.js.map +1 -0
  28. package/dist/index.d.ts +27 -0
  29. package/dist/index.js +1148 -305
  30. package/dist/index.js.map +1 -1
  31. package/dist/{rich-message-CiA3ripk.js → rich-message-CNDoACE7.js} +8 -7
  32. package/dist/{rich-message-CiA3ripk.js.map → rich-message-CNDoACE7.js.map} +1 -1
  33. package/dist/rich-text.js +267 -262
  34. package/dist/rich-text.js.map +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/theme/primitives/colors.d.ts +12 -28
  37. package/dist/theme/recipes/menu.d.ts +1 -1
  38. package/dist/theme/tokens/borders.d.ts +6 -6
  39. package/dist/theme/tokens/colors.d.ts +180 -0
  40. package/dist/{theme-9E0MRtZk.js → theme-C7CIuIPZ.js} +197 -115
  41. package/dist/theme-C7CIuIPZ.js.map +1 -0
  42. package/dist/theme.js +1 -1
  43. package/package.json +6 -8
  44. package/dist/theme-9E0MRtZk.js.map +0 -1
  45. /package/dist/components/{ticket-board.d.ts → tickets/ticket-board.d.ts} +0 -0
  46. /package/dist/components/{ticket-board.stories.d.ts → tickets/ticket-board.stories.d.ts} +0 -0
  47. /package/dist/components/{ticket-card.stories.d.ts → tickets/ticket-card.stories.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -1,10 +1,14 @@
1
- import { Alert as V, Box as le, Text as p, Dialog as _, CloseButton as Re, Stack as C, Button as Se, EmptyState as Y, VStack as De, AbsoluteCenter as Ee, MenuItem as Le, Icon as xe, Flex as te, Badge as Me, Link as we, HStack as _e, Separator as $e, createToaster as ze, Portal as Xe, Toaster as Ae, Toast as j, Spinner as He } from "@chakra-ui/react";
2
- import { ChakraProvider as kt } from "@chakra-ui/react";
3
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
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
4
  import { c as D } from "react/compiler-runtime";
5
- import * as ve from "react";
6
- import { useState as Te, Component as We, createContext as Be, useEffect as Ne, useContext as Oe } from "react";
7
- import { T as Ce } from "./tooltip-Gm7PLwZG.js";
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";
8
12
  import "@fontsource/inter/400.css";
9
13
  import "@fontsource/inter/500.css";
10
14
  import "@fontsource/playfair-display/400.css";
@@ -13,32 +17,59 @@ import "@fontsource/playfair-display/700.css";
13
17
  import "@fontsource/onest/400.css";
14
18
  import "@fontsource/onest/500.css";
15
19
  import "@fontsource/onest/700.css";
16
- import { t as Pt } from "./theme-9E0MRtZk.js";
17
- const Ue = ve.forwardRef(function(e, n) {
20
+ import { t as en } from "./theme-C7CIuIPZ.js";
21
+ const _t = Me.forwardRef(function(e, n) {
18
22
  const t = D(19);
19
- let i, s, o, d, a, c;
23
+ let o, s, r, a, c, d;
20
24
  t[0] !== e ? ({
21
- title: c,
22
- children: i,
23
- icon: o,
24
- startElement: a,
25
+ title: d,
26
+ children: o,
27
+ icon: r,
28
+ startElement: c,
25
29
  endElement: s,
26
- ...d
27
- } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = o, t[4] = d, t[5] = a, t[6] = c) : (i = t[1], s = t[2], o = t[3], d = t[4], a = t[5], c = t[6]);
30
+ ...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]);
28
32
  let h;
29
- t[7] !== o || t[8] !== a ? (h = a || /* @__PURE__ */ r(V.Indicator, { children: o }), t[7] = o, t[8] = a, t[9] = h) : h = t[9];
30
- let g;
31
- t[10] !== i || t[11] !== c ? (g = i ? /* @__PURE__ */ m(V.Content, { children: [
32
- /* @__PURE__ */ r(V.Title, { children: c }),
33
- /* @__PURE__ */ r(V.Description, { children: i })
34
- ] }) : /* @__PURE__ */ r(V.Title, { flex: "1", children: c }), t[10] = i, t[11] = c, t[12] = g) : g = t[12];
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];
35
34
  let f;
36
- return t[13] !== s || t[14] !== n || t[15] !== d || t[16] !== h || t[17] !== g ? (f = /* @__PURE__ */ m(V.Root, { ref: n, ...d, children: [
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];
39
+ 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: [
37
41
  h,
38
- g,
42
+ f,
39
43
  s
40
- ] }), t[13] = s, t[14] = n, t[15] = d, t[16] = h, t[17] = g, t[18] = f) : f = t[18], f;
41
- }), Ve = (l) => {
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;
48
+ t[0] !== e ? ({
49
+ separator: a,
50
+ separatorGap: c,
51
+ 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
+ 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;
66
+ } else
67
+ d = t[9];
68
+ 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];
70
+ 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) => {
42
73
  const e = D(3);
43
74
  let n;
44
75
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
@@ -48,117 +79,362 @@ const Ue = ve.forwardRef(function(e, n) {
48
79
  width: "100%"
49
80
  }, e[0] = n) : n = e[0];
50
81
  let t;
51
- return e[1] !== l ? (t = /* @__PURE__ */ r(le, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
52
- }, ft = (l) => {
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) => {
53
84
  const e = D(2);
54
85
  let n;
55
- return e[0] !== l ? (n = /* @__PURE__ */ r(le, { p: "2", children: /* @__PURE__ */ r(p, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...l }) }), e[0] = l, e[1] = n) : n = e[1], n;
56
- }, ut = (l) => {
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) => {
57
88
  const [e, n] = Te(!1), {
58
89
  headline: t,
59
- buttonText: i,
90
+ buttonText: o,
60
91
  notificationText: s,
61
- onDelete: o,
62
- open: d,
63
- onClose: a
64
- } = l, c = async () => {
92
+ onDelete: r,
93
+ open: a,
94
+ onClose: c
95
+ } = i, d = async () => {
65
96
  n(!0);
66
97
  try {
67
- await o(), a();
98
+ await r(), c();
68
99
  } catch {
69
100
  } finally {
70
101
  n(!1);
71
102
  }
72
103
  };
73
- return /* @__PURE__ */ m(_.Root, { open: d, onOpenChange: a, children: [
74
- /* @__PURE__ */ r(_.Backdrop, {}),
75
- /* @__PURE__ */ r(_.Positioner, { children: /* @__PURE__ */ m(_.Content, { children: [
76
- /* @__PURE__ */ m(_.Header, { children: [
77
- /* @__PURE__ */ r(p, { textStyle: "heading/M", children: t }),
78
- /* @__PURE__ */ r(_.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ r(Re, { size: "sm" }) })
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" }) })
79
110
  ] }),
80
- /* @__PURE__ */ r(_.Body, { children: s }),
81
- /* @__PURE__ */ r(_.Footer, { children: /* @__PURE__ */ m(C, { direction: "row", gap: "1", children: [
82
- /* @__PURE__ */ r(Se, { onClick: a, children: "Close" }),
83
- /* @__PURE__ */ r(Se, { loading: e, variant: "solid", colorPalette: "red", onClick: c, children: i })
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 })
84
115
  ] }) })
85
116
  ] }) })
86
117
  ] });
87
- }, pt = ve.forwardRef(function(e, n) {
88
- const t = D(19);
89
- let i, s, o, d, a;
90
- t[0] !== e ? ({
91
- title: a,
92
- description: s,
93
- icon: o,
94
- children: i,
95
- ...d
96
- } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = o, t[4] = d, t[5] = a) : (i = t[1], s = t[2], o = t[3], d = t[4], a = t[5]);
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,
124
+ ...t
125
+ } = i, e[0] = i, e[1] = n, e[2] = t, e[3] = o) : (n = e[1], t = e[2], o = e[3]);
126
+ 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];
130
+ let a;
131
+ return e[8] !== t || e[9] !== s || e[10] !== r ? (a = /* @__PURE__ */ u(C, { ...t, children: [
132
+ 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,
138
+ title: t,
139
+ description: o
140
+ } = i;
141
+ 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];
145
+ let a;
146
+ e[4] !== s || e[5] !== r ? (a = /* @__PURE__ */ u(C, { textAlign: "center", children: [
147
+ s,
148
+ r
149
+ ] }), e[4] = s, e[5] = r, e[6] = a) : a = e[6];
97
150
  let c;
98
- t[6] !== o ? (c = o && /* @__PURE__ */ r(Y.Indicator, { children: o }), t[6] = o, t[7] = c) : c = t[7];
151
+ e[7] !== n ? (c = n.map(Et), e[7] = n, e[8] = c) : c = e[8];
152
+ 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];
99
154
  let h;
100
- t[8] !== s || t[9] !== a ? (h = s ? /* @__PURE__ */ m(De, { textAlign: "center", children: [
101
- /* @__PURE__ */ r(Y.Title, { fontWeight: "normal", children: a }),
102
- /* @__PURE__ */ r(Y.Description, { children: s })
103
- ] }) : /* @__PURE__ */ r(Y.Title, { fontWeight: "normal", children: a }), t[8] = s, t[9] = a, t[10] = h) : h = t[10];
104
- let g;
105
- t[11] !== i || t[12] !== c || t[13] !== h ? (g = /* @__PURE__ */ m(Y.Content, { children: [
106
- c,
107
- h,
108
- i
109
- ] }), t[11] = i, t[12] = c, t[13] = h, t[14] = g) : g = t[14];
110
- let f;
111
- return t[15] !== n || t[16] !== d || t[17] !== g ? (f = /* @__PURE__ */ r(Y.Root, { ref: n, ...d, children: g }), t[15] = n, t[16] = d, t[17] = g, t[18] = f) : f = t[18], f;
112
- });
113
- class bt extends We {
114
- state = {
115
- error: null
116
- };
117
- static getDerivedStateFromError(e) {
118
- return {
119
- error: e
120
- };
121
- }
122
- componentDidCatch(e, n) {
123
- console.error("Dashboard error boundary caught an error", e, n);
155
+ return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ u(C, { gap: "20", children: [
156
+ a,
157
+ d
158
+ ] }), e[11] = a, e[12] = d, e[13] = h) : h = e[13], h;
159
+ };
160
+ function Lt(i) {
161
+ return /* @__PURE__ */ l(De, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: i }, i);
162
+ }
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));
169
+ }
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: {
173
+ base: "static",
174
+ 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, {})
179
+ ] }),
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
185
+ ] }),
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
189
+ ] }) })
190
+ ] }, Pt(i, e));
191
+ }
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) => {
193
+ 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}`;
197
+ e.push({
198
+ id: a,
199
+ level: o,
200
+ text: s
201
+ }), n += 1;
124
202
  }
125
- handleReset = () => {
126
- this.setState({
127
- error: null
128
- }), this.props.onReset?.();
203
+ return e;
204
+ }, Bt = (i, e) => {
205
+ const n = Array.from(e.querySelectorAll(Ht)), t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
206
+ 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;
212
+ break;
213
+ }
214
+ }
215
+ return {
216
+ elementsByHeadingId: t,
217
+ headingIdByElement: o
129
218
  };
130
- render() {
131
- const {
132
- children: e,
133
- fallback: n,
134
- label: t
135
- } = this.props, {
136
- error: i
137
- } = this.state;
138
- return i ? n || /* @__PURE__ */ r(Ye, { error: i, label: t, onReset: this.handleReset }) : e;
139
- }
219
+ }, Ae = (i) => {
220
+ const e = D(14), {
221
+ heading: n,
222
+ isActive: t,
223
+ emphasized: o,
224
+ 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 ? {
229
+ borderStartColor: "bg.emphasized"
230
+ } : {
231
+ color: "fg"
232
+ }, e[0] = a, e[1] = m) : m = e[1];
233
+ 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,
240
+ 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 = {
245
+ elementsByHeadingId: /* @__PURE__ */ new Map(),
246
+ 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)
258
+ return;
259
+ const ce = new ke.IntersectionObserver((se) => {
260
+ const de = se.filter(At).sort(Ot);
261
+ if (de.length === 0)
262
+ return;
263
+ const ge = de[0].target, he = re.headingIdByElement.get(ge);
264
+ he && h(he);
265
+ }, {
266
+ rootMargin: r
267
+ });
268
+ for (const se of re.headingIdByElement.keys())
269
+ ce.observe(se);
270
+ return () => {
271
+ ce.disconnect();
272
+ };
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)
274
+ 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({
282
+ behavior: "smooth",
283
+ block: "start"
284
+ });
285
+ }, e[11] = k) : k = e[11];
286
+ const v = k;
287
+ 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];
291
+ 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 })
296
+ ] });
297
+ let M;
298
+ e[16] !== L || e[17] !== Y ? (M = /* @__PURE__ */ u(te, { children: [
299
+ z,
300
+ 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];
308
+ 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)";
316
+ 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";
324
+ 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: [
335
+ 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) }) }) })
337
+ ] }) }),
338
+ E
339
+ ] });
340
+ };
341
+ function At(i) {
342
+ return i.isIntersecting;
140
343
  }
141
- const Ye = (l) => {
142
- const e = D(12), {
143
- error: n,
144
- label: t,
145
- onReset: i
146
- } = l, s = t ?? "Something went wrong";
344
+ function Ot(i, e) {
345
+ return i.boundingClientRect.top - e.boundingClientRect.top;
346
+ }
347
+ const Oe = (i) => {
348
+ const e = D(24), {
349
+ item: n,
350
+ direction: t
351
+ } = i, o = t === "prev", s = o ? "Previous" : "Next", r = o ? "start" : "end", a = o ? "flex-start" : "flex-end";
352
+ 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";
355
+ 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];
359
+ 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: [
363
+ h,
364
+ f,
365
+ g
366
+ ] }), e[8] = d, e[9] = h, e[10] = f, e[11] = g, e[12] = m) : m = e[12];
367
+ 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: [
371
+ 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,
380
+ next: t
381
+ } = i;
382
+ if (!n && !t)
383
+ return null;
147
384
  let o;
148
- e[0] !== s ? (o = /* @__PURE__ */ r(p, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = o) : o = e[1];
149
- const d = n.message || "An unexpected error occurred while rendering this section.";
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
+ 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];
390
+ let a;
391
+ e[6] !== r ? (a = /* @__PURE__ */ l(B, { flex: "1", children: r }), e[6] = r, e[7] = a) : a = e[7];
392
+ let c;
393
+ return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ u(te, { justify: "space-between", gap: "4", children: [
394
+ s,
395
+ a
396
+ ] }), e[8] = s, e[9] = a, e[10] = c) : c = e[10], c;
397
+ }, Gt = (i) => {
398
+ const e = D(17), {
399
+ children: n,
400
+ title: t,
401
+ defaultOpen: o,
402
+ action: s
403
+ } = i, r = o === void 0 ? !0 : o;
150
404
  let a;
151
- e[2] !== d ? (a = /* @__PURE__ */ r(p, { textStyle: "paragraph/S/regular", children: d }), e[2] = d, e[3] = a) : a = e[3];
405
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
406
+ background: "bg.muted"
407
+ }, e[0] = a) : a = e[0];
152
408
  let c;
153
- e[4] !== i ? (c = i ? /* @__PURE__ */ r(Se, { size: "sm", variant: "solid", colorScheme: "black", onClick: i, children: "Try again" }) : null, e[4] = i, e[5] = c) : c = e[5];
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];
410
+ let d;
411
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ l(oe.Indicator, { transition: "transform 0.2s", _open: {
412
+ transform: "rotate(90deg)"
413
+ }, children: /* @__PURE__ */ l(Pe, { size: 16 }) }), e[3] = d) : d = e[3];
154
414
  let h;
155
- e[6] !== a || e[7] !== c ? (h = /* @__PURE__ */ m(C, { gap: "sm", children: [
156
- a,
157
- c
158
- ] }), e[6] = a, e[7] = c, e[8] = h) : h = e[8];
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: [
416
+ c,
417
+ d
418
+ ] }), 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];
159
421
  let g;
160
- return e[9] !== o || e[10] !== h ? (g = /* @__PURE__ */ r(Ve, { height: "100%", width: "100%", children: /* @__PURE__ */ r(Ee, { children: /* @__PURE__ */ r(Ue, { status: "error", title: o, children: h }) }) }), e[9] = o, e[10] = h, e[11] = g) : g = e[11], g;
161
- }, je = {
422
+ e[8] !== h || e[9] !== f ? (g = /* @__PURE__ */ u(xe, { children: [
423
+ h,
424
+ f
425
+ ] }), e[8] = h, e[9] = f, e[10] = g) : g = e[10];
426
+ 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;
433
+ };
434
+ function Xt(i) {
435
+ return i.stopPropagation();
436
+ }
437
+ const Yt = {
162
438
  default: {
163
439
  paddingX: "sm",
164
440
  paddingY: "xs",
@@ -177,259 +453,826 @@ const Ye = (l) => {
177
453
  secondaryMarginLeft: "0",
178
454
  secondaryTextStyle: "label/XS/regular"
179
455
  }
180
- }, yt = (l) => {
456
+ }, Le = (i) => {
181
457
  const e = D(67), {
182
458
  id: n,
183
459
  primaryLabel: t,
184
- tooltipLabel: i,
460
+ tooltipLabel: o,
185
461
  secondaryLabel: s,
186
- leftIcon: o,
187
- leftSlot: d,
188
- rightIcon: a,
189
- leftIconColor: c,
462
+ leftIcon: r,
463
+ leftSlot: a,
464
+ rightIcon: c,
465
+ leftIconColor: d,
190
466
  rightIconColor: h,
191
- leftIconSize: g,
192
- rightIconSize: f,
193
- rightIconAriaLabel: b,
194
- rightTooltipLabel: k,
195
- onRightIconClick: y,
196
- isDisabled: S,
197
- isSelected: x,
198
- tagLabel: w,
199
- tagColorPalette: I,
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,
200
476
  tagVariant: P,
201
- variant: R,
477
+ variant: k,
202
478
  tabIndex: v,
203
- width: E,
204
- maxWidth: L,
205
- setRefElement: M
206
- } = l, G = o === void 0 ? null : o, re = c === void 0 ? "fg" : c, ne = h === void 0 ? "fg" : h, ie = I === void 0 ? "yellow" : I, oe = P === void 0 ? "subtle" : P, Pe = R === void 0 ? "default" : R, {
207
- onClick: ae,
208
- onMouseDown: ce,
209
- onMouseEnter: se
210
- } = l, u = je[Pe], de = x ? "bg.emphasized" : void 0, he = g ?? u.iconSize, me = f ?? u.iconSize, T = !!(y && a);
479
+ width: _,
480
+ maxWidth: z,
481
+ 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,
484
+ 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);
487
+ let U;
488
+ e[0] !== X ? (U = (Ie) => {
489
+ X && (Ie.preventDefault(), Ie.stopPropagation());
490
+ }, e[0] = X, e[1] = U) : U = e[1];
491
+ const F = U;
211
492
  let K;
212
- e[0] !== T ? (K = (F) => {
213
- T && (F.preventDefault(), F.stopPropagation());
214
- }, e[0] = T, e[1] = K) : K = e[1];
215
- const ge = K;
216
- let q;
217
- e[2] !== T || e[3] !== y ? (q = (F) => {
218
- !T || !y || (F.preventDefault(), F.stopPropagation(), y());
219
- }, e[2] = T, e[3] = y, e[4] = q) : q = e[4];
220
- const fe = q, ue = L ?? "20rem", pe = S ? "default" : "pointer", be = n ?? t;
221
- let J, Q;
222
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = {
223
- bg: "bg.muted"
224
- }, Q = {
225
- bg: "bg.muted"
226
- }, e[5] = J, e[6] = Q) : (J = e[5], Q = e[6]);
227
- let Z;
228
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = {
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 = {
499
+ bg: "bg.menu-item.hover"
500
+ }, $ = {
501
+ 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 = {
229
505
  placement: "right"
230
- }, e[7] = Z) : Z = e[7];
231
- const ye = !i;
232
- let $;
233
- e[8] !== G || e[9] !== re || e[10] !== d || e[11] !== he ? ($ = d || (G ? /* @__PURE__ */ r(xe, { as: G, boxSize: he, color: re }) : null), e[8] = G, e[9] = re, e[10] = d, e[11] = he, e[12] = $) : $ = e[12];
234
- let z;
235
- e[13] !== t || e[14] !== u.primaryTextStyle ? (z = /* @__PURE__ */ r(p, { lineClamp: 1, textOverflow: "ellipsis", textStyle: u.primaryTextStyle, children: t }), e[13] = t, e[14] = u.primaryTextStyle, e[15] = z) : z = e[15];
236
- let X;
237
- e[16] !== $ || e[17] !== z ? (X = /* @__PURE__ */ m(te, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
238
- $,
239
- z
240
- ] }), e[16] = $, e[17] = z, e[18] = X) : X = e[18];
241
- let A;
242
- e[19] !== s || e[20] !== u.secondaryMarginLeft || e[21] !== u.secondaryTextStyle ? (A = s && /* @__PURE__ */ r(p, { ml: u.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: u.secondaryTextStyle, color: "fg.muted", children: s }), e[19] = s, e[20] = u.secondaryMarginLeft, e[21] = u.secondaryTextStyle, e[22] = A) : A = e[22];
243
- let H;
244
- e[23] !== X || e[24] !== A ? (H = /* @__PURE__ */ m(C, { gap: "2xs", children: [
245
- X,
246
- A
247
- ] }), e[23] = X, e[24] = A, e[25] = H) : H = e[25];
248
- let W;
249
- e[26] !== ye || e[27] !== H || e[28] !== i ? (W = /* @__PURE__ */ r(Ce, { positioning: Z, content: i, disabled: ye, children: H }), e[26] = ye, e[27] = H, e[28] = i, e[29] = W) : W = e[29];
250
- let B;
251
- e[30] !== fe || e[31] !== ge || e[32] !== T || e[33] !== me || e[34] !== a || e[35] !== b || e[36] !== ne || e[37] !== k ? (B = a ? /* @__PURE__ */ r(Ce, { positioning: {
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];
512
+ 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: [
521
+ 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: {
252
528
  placement: "right"
253
- }, content: k, disabled: !k, children: /* @__PURE__ */ r(te, { as: T ? "button" : "div", alignItems: "center", "aria-label": b, cursor: T ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: ge, onClick: fe, children: /* @__PURE__ */ r(xe, { as: a, boxSize: me, color: ne }) }) }) : null, e[30] = fe, e[31] = ge, e[32] = T, e[33] = me, e[34] = a, e[35] = b, e[36] = ne, e[37] = k, e[38] = B) : B = e[38];
254
- let N;
255
- e[39] !== B ? (N = /* @__PURE__ */ r(te, { justifyContent: "flex-end", color: "fg", children: B }), e[39] = B, e[40] = N) : N = e[40];
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];
532
+ 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];
537
+ 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: [
541
+ 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 = {
545
+ default: {
546
+ width: "64",
547
+ headerHeight: "49px",
548
+ headerPadding: "xs",
549
+ headerTextStyle: "label/L/medium",
550
+ contentPadding: "xs",
551
+ contentGap: "xs"
552
+ },
553
+ compact: {
554
+ width: "64",
555
+ headerHeight: "49px",
556
+ headerPadding: "xs",
557
+ headerTextStyle: "label/L/medium",
558
+ contentPadding: "2xs",
559
+ contentGap: "2xs"
560
+ }
561
+ };
562
+ function jt(i) {
563
+ const e = D(13), {
564
+ title: n,
565
+ children: t,
566
+ variant: o
567
+ } = i, r = Ft[o === void 0 ? "default" : o];
568
+ 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];
570
+ 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];
572
+ 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: [
574
+ a,
575
+ c
576
+ ] }), e[9] = r.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
577
+ }
578
+ const Ye = (i) => {
579
+ const e = D(27), {
580
+ item: n,
581
+ activeLink: t,
582
+ onSelectLink: o,
583
+ 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;
594
+ }
595
+ 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;
598
+ }
599
+ 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;
606
+ } 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,
613
+ emptyMessage: t,
614
+ menuItems: o,
615
+ activeLink: s,
616
+ onSelectLink: r,
617
+ shouldStartOpen: a
618
+ } = i;
619
+ 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];
621
+ 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;
623
+ };
624
+ class Wl extends ot {
625
+ state = {
626
+ error: null
627
+ };
628
+ static getDerivedStateFromError(e) {
629
+ return {
630
+ error: e
631
+ };
632
+ }
633
+ componentDidCatch(e, n) {
634
+ console.error("Dashboard error boundary caught an error", e, n);
635
+ }
636
+ handleReset = () => {
637
+ this.setState({
638
+ error: null
639
+ }), this.props.onReset?.();
640
+ };
641
+ render() {
642
+ const {
643
+ children: e,
644
+ fallback: n,
645
+ label: t
646
+ } = this.props, {
647
+ error: o
648
+ } = this.state;
649
+ return o ? n || /* @__PURE__ */ l(Nt, { error: o, label: t, onReset: this.handleReset }) : e;
650
+ }
651
+ }
652
+ const Nt = (i) => {
653
+ const e = D(12), {
654
+ error: n,
655
+ 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.";
661
+ 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];
663
+ 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];
665
+ let h;
666
+ e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ u(C, { gap: "sm", children: [
667
+ c,
668
+ d
669
+ ] }), e[6] = c, e[7] = d, e[8] = h) : h = e[8];
670
+ 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,
675
+ title: t,
676
+ description: o,
677
+ currentPath: s,
678
+ entries: r,
679
+ selectedPath: a,
680
+ selectedPaths: c,
681
+ isLoading: d,
682
+ 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;
693
+ 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];
256
709
  let O;
257
- e[41] !== W || e[42] !== N ? (O = /* @__PURE__ */ m(te, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
710
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ l(mt, { size: 16 }), e[14] = O) : O = e[14];
711
+ 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];
716
+ 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];
721
+ let X;
722
+ e[23] !== W || e[24] !== G || e[25] !== V ? (X = /* @__PURE__ */ u(C, { direction: "row", gap: "sm", align: "center", children: [
258
723
  W,
259
- N
260
- ] }), e[41] = W, e[42] = N, e[43] = O) : O = e[43];
724
+ G,
725
+ V
726
+ ] }), e[23] = W, e[24] = G, e[25] = V, e[26] = X) : X = e[26];
261
727
  let U;
262
- e[44] !== ie || e[45] !== w || e[46] !== oe ? (U = w ? /* @__PURE__ */ r(Me, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: ie, variant: oe, pointerEvents: "none", children: w }) : null, e[44] = ie, e[45] = w, e[46] = oe, e[47] = U) : U = e[47];
263
- let ee;
264
- return e[48] !== de || e[49] !== n || e[50] !== S || e[51] !== x || e[52] !== ae || e[53] !== ce || e[54] !== se || e[55] !== M || e[56] !== be || e[57] !== O || e[58] !== U || e[59] !== ue || e[60] !== pe || e[61] !== v || e[62] !== u.minHeight || e[63] !== u.paddingX || e[64] !== u.paddingY || e[65] !== E ? (ee = /* @__PURE__ */ m(Le, { id: n, ref: M, tabIndex: v, disabled: S, "aria-selected": x, paddingX: u.paddingX, paddingY: u.paddingY, onClick: ae, onMouseDown: ce, onMouseEnter: se, height: "auto", minHeight: u.minHeight, role: "option", width: E, maxWidth: ue, overflow: "hidden", position: "relative", cursor: pe, value: be, bg: de, _hover: J, _focus: Q, children: [
265
- O,
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: [
736
+ X,
266
737
  U
267
- ] }), e[48] = de, e[49] = n, e[50] = S, e[51] = x, e[52] = ae, e[53] = ce, e[54] = se, e[55] = M, e[56] = be, e[57] = O, e[58] = U, e[59] = ue, e[60] = pe, e[61] = v, e[62] = u.minHeight, e[63] = u.paddingX, e[64] = u.paddingY, e[65] = E, e[66] = ee) : ee = e[66], ee;
268
- }, Fe = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Ge = (l) => l.version ? `${l.name} v${l.version}` : l.name, St = (l) => {
738
+ ] }) }), e[34] = X, e[35] = U, e[36] = F) : F = e[36];
739
+ 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];
748
+ let ee;
749
+ e[45] !== A || e[46] !== F || e[47] !== q ? (ee = /* @__PURE__ */ l(Q.Positioner, { children: /* @__PURE__ */ u(Q.Content, { children: [
750
+ A,
751
+ F,
752
+ 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;
759
+ };
760
+ function Al(i) {
761
+ const e = D(6);
762
+ let n, t;
763
+ e[0] !== i ? ({
764
+ children: n,
765
+ ...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;
769
+ }
770
+ const Vt = (i, e) => `${i.name}-${i.version ?? "unknown"}-${e}`, Ut = (i) => i.version ? `${i.name} v${i.version}` : i.name, Ol = (i) => {
269
771
  const e = D(30), {
270
772
  notices: n,
271
773
  title: t,
272
- description: i,
774
+ description: o,
273
775
  productName: s,
274
- productVersion: o,
275
- generatedAt: d,
276
- emptyTitle: a,
277
- emptyDescription: c
278
- } = l, h = t === void 0 ? "Open Source and Third-Party Notices" : t, g = i === void 0 ? "This product includes software developed by the open source community." : i, f = a === void 0 ? "No third-party notices available" : a, b = c === void 0 ? "No third-party packages were included in this build." : c;
279
- let k;
280
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
776
+ productVersion: r,
777
+ generatedAt: a,
778
+ emptyTitle: c,
779
+ 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 = {
281
783
  base: "md",
282
784
  md: "xl"
283
- }, e[0] = k) : k = e[0];
284
- let y;
285
- e[1] !== h ? (y = /* @__PURE__ */ r(p, { textStyle: "heading/L", children: h }), e[1] = h, e[2] = y) : y = e[2];
286
- let S;
287
- e[3] !== g ? (S = /* @__PURE__ */ r(p, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = S) : S = e[4];
785
+ }, e[0] = p) : p = e[0];
288
786
  let x;
289
- e[5] !== s ? (x = s ? /* @__PURE__ */ m(p, { textStyle: "label/XS", color: "fg.muted", children: [
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: [
290
792
  "Product: ",
291
793
  s
292
- ] }) : null, e[5] = s, e[6] = x) : x = e[6];
293
- let w;
294
- e[7] !== o ? (w = o ? /* @__PURE__ */ m(p, { textStyle: "label/XS", color: "fg.muted", children: [
295
- "Version: ",
296
- o
297
- ] }) : null, e[7] = o, e[8] = w) : w = e[8];
794
+ ] }) : null, e[5] = s, e[6] = y) : y = e[6];
298
795
  let I;
299
- e[9] !== n.length ? (I = /* @__PURE__ */ m(p, { textStyle: "label/XS", color: "fg.muted", children: [
796
+ e[7] !== r ? (I = r ? /* @__PURE__ */ u(S, { textStyle: "label/XS", color: "fg.muted", children: [
797
+ "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: [
300
802
  "Packages: ",
301
803
  n.length
302
- ] }), e[9] = n.length, e[10] = I) : I = e[10];
804
+ ] }), e[9] = n.length, e[10] = T) : T = e[10];
303
805
  let P;
304
- e[11] !== d ? (P = d ? /* @__PURE__ */ m(p, { textStyle: "label/XS", color: "fg.muted", children: [
806
+ e[11] !== a ? (P = a ? /* @__PURE__ */ u(S, { textStyle: "label/XS", color: "fg.muted", children: [
305
807
  "Generated: ",
306
- d
307
- ] }) : null, e[11] = d, e[12] = P) : P = e[12];
308
- let R;
309
- e[13] !== P || e[14] !== x || e[15] !== w || e[16] !== I ? (R = /* @__PURE__ */ m(_e, { gap: "md", flexWrap: "wrap", children: [
310
- x,
311
- w,
808
+ 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: [
812
+ y,
312
813
  I,
814
+ T,
313
815
  P
314
- ] }), e[13] = P, e[14] = x, e[15] = w, e[16] = I, e[17] = R) : R = e[17];
816
+ ] }), e[13] = P, e[14] = y, e[15] = I, e[16] = T, e[17] = k) : k = e[17];
315
817
  let v;
316
- e[18] !== R || e[19] !== y || e[20] !== S ? (v = /* @__PURE__ */ m(C, { gap: "xs", children: [
317
- y,
318
- S,
319
- R
320
- ] }), e[18] = R, e[19] = y, e[20] = S, e[21] = v) : v = e[21];
321
- let E;
322
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ r($e, { borderColor: "border.secondary" }), e[22] = E) : E = e[22];
818
+ e[18] !== k || e[19] !== x || e[20] !== b ? (v = /* @__PURE__ */ u(C, { gap: "xs", children: [
819
+ x,
820
+ b,
821
+ k
822
+ ] }), e[18] = k, e[19] = x, e[20] = b, e[21] = v) : v = e[21];
823
+ 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];
323
830
  let L;
324
- e[23] !== b || e[24] !== f || e[25] !== n ? (L = n.length === 0 ? /* @__PURE__ */ m(C, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
325
- /* @__PURE__ */ r(p, { textStyle: "label/L/medium", children: f }),
326
- /* @__PURE__ */ r(p, { textStyle: "paragraph/S/regular", color: "fg.muted", children: b })
327
- ] }) : /* @__PURE__ */ r(C, { gap: "md", children: n.map(Ke) }), e[23] = b, e[24] = f, e[25] = n, e[26] = L) : L = e[26];
328
- let M;
329
- return e[27] !== v || e[28] !== L ? (M = /* @__PURE__ */ m(C, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: k, gap: "lg", children: [
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: [
330
832
  v,
331
- E,
332
- L
333
- ] }), e[27] = v, e[28] = L, e[29] = M) : M = e[29], M;
833
+ _,
834
+ z
835
+ ] }), e[27] = v, e[28] = z, e[29] = L) : L = e[29], L;
334
836
  };
335
- function Ke(l, e) {
336
- return /* @__PURE__ */ r(le, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ m(C, { gap: "sm", children: [
337
- /* @__PURE__ */ m(C, { gap: "2xs", children: [
338
- /* @__PURE__ */ r(p, { textStyle: "label/L/medium", children: Ge(l) }),
339
- /* @__PURE__ */ m(p, { textStyle: "label/S/regular", color: "fg.muted", children: [
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: [
340
842
  "License: ",
341
- l.license ?? "Unknown"
843
+ i.license ?? "Unknown"
342
844
  ] })
343
845
  ] }),
344
- l.copyright ? /* @__PURE__ */ r(p, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
345
- (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ m(C, { gap: "2xs", children: [
346
- l.homepageUrl ? /* @__PURE__ */ r(we, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
347
- l.sourceUrl ? /* @__PURE__ */ r(we, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
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
348
850
  ] }),
349
- l.attribution ? /* @__PURE__ */ r(le, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ r(p, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
350
- ] }) }, Fe(l, e));
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));
351
853
  }
352
- const qe = ze({
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;
860
+ 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;
884
+ };
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" }) })
890
+ ] }) }),
891
+ /* @__PURE__ */ l(B, { flex: "1", children: i.value })
892
+ ] }, `${i.label}-${e}`);
893
+ }
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,
897
+ boxSize: t,
898
+ ariaLabel: o,
899
+ cursor: s,
900
+ onClick: r
901
+ } = i, a = t === void 0 ? "14px" : t, c = o === void 0 ? "Session status" : o;
902
+ let d;
903
+ e[0] !== n ? (d = Jt(n), e[0] = n, e[1] = d) : d = e[1];
904
+ 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;
911
+ t[0] !== e ? ({
912
+ inputProps: s,
913
+ children: o,
914
+ 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];
925
+ 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];
927
+ 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];
932
+ 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,
937
+ p,
938
+ 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,
943
+ parentPath: t,
944
+ sessionIndicatorLabel: o,
945
+ sessionIndicatorStatus: s,
946
+ title: r,
947
+ badges: a,
948
+ diffAdditions: c,
949
+ diffDeletions: d,
950
+ 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;
964
+ 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 = {
976
+ borderColor: "border.blue",
977
+ 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(" / "),
983
+ " /",
984
+ " "
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];
991
+ 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,
996
+ A
997
+ ] }), e[19] = R, e[20] = A, e[21] = O) : O = e[21];
998
+ 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,
1003
+ 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];
1007
+ 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,
1013
+ 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;
1015
+ };
1016
+ function tl(i) {
1017
+ return /* @__PURE__ */ l(De, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
1018
+ }
1019
+ const Yl = (i) => {
1020
+ const e = D(20), {
1021
+ columns: n,
1022
+ selectedItemId: t,
1023
+ onMoveItem: o,
1024
+ 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 = () => {
1029
+ 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) => {
1039
+ 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) {
1051
+ 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: {
1053
+ borderLeft: "1px solid",
1054
+ 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;
1059
+ } else
1060
+ T = e[11];
1061
+ 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,
1066
+ onCreateStart: t,
1067
+ onColumnAction: o
1068
+ } = i;
1069
+ 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";
1072
+ 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];
1074
+ let c;
1075
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ l(Ze, {}), e[5] = c) : c = e[5];
1076
+ 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];
1078
+ 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: [
1085
+ s,
1086
+ a,
1087
+ c,
1088
+ d,
1089
+ h
1090
+ ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = h, e[19] = f) : f = e[19], f;
1091
+ };
1092
+ function nl(i) {
1093
+ return (e) => {
1094
+ e.dataTransfer.setData("text/plain", i), e.dataTransfer.effectAllowed = "move";
1095
+ };
1096
+ }
1097
+ const il = [{
1098
+ id: "ticket",
1099
+ header: "",
1100
+ cell: ({
1101
+ row: i
1102
+ }) => /* @__PURE__ */ l(rl, { row: i })
1103
+ }], Fl = (i) => {
1104
+ const {
1105
+ items: e,
1106
+ selectedItemId: n = null,
1107
+ onItemClick: t
1108
+ } = i, o = wt({
1109
+ data: e,
1110
+ columns: il,
1111
+ state: {
1112
+ expanded: !0
1113
+ },
1114
+ getSubRows: (s) => s.children,
1115
+ getCoreRowModel: It(),
1116
+ getExpandedRowModel: kt(),
1117
+ getRowId: (s) => s.id
1118
+ });
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: {
1122
+ background: "bg.muted"
1123
+ }, 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);
1126
+ }) });
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];
1133
+ 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];
1135
+ 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];
1137
+ 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];
1139
+ 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];
1143
+ 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,
1148
+ a,
1149
+ c,
1150
+ d,
1151
+ 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;
1159
+ 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)";
1164
+ 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);
1170
+ 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;
1175
+ };
1176
+ function al(i) {
1177
+ return /* @__PURE__ */ l(De, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
1178
+ }
1179
+ const cl = et({
353
1180
  placement: "bottom-end",
354
1181
  pauseOnPageIdle: !0
355
- }), xt = () => {
356
- const l = D(1);
1182
+ }), jl = () => {
1183
+ const i = D(1);
357
1184
  let e;
358
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ r(Xe, { children: /* @__PURE__ */ r(Ae, { toaster: qe, insetInline: {
1185
+ return i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ l(tt, { children: /* @__PURE__ */ l(lt, { toaster: cl, insetInline: {
359
1186
  mdDown: "4"
360
- }, children: Je }) }), l[0] = e) : e = l[0], e;
1187
+ }, children: dl }) }), i[0] = e) : e = i[0], e;
361
1188
  };
362
- function Je(l) {
363
- return /* @__PURE__ */ m(j.Root, { width: {
1189
+ function dl(i) {
1190
+ return /* @__PURE__ */ u(we.Root, { width: {
364
1191
  md: "sm"
365
1192
  }, children: [
366
- l.type === "loading" ? /* @__PURE__ */ r(He, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ r(j.Indicator, {}),
367
- /* @__PURE__ */ m(C, { gap: "1", flex: "1", maxWidth: "100%", children: [
368
- l.title && /* @__PURE__ */ r(j.Title, { children: l.title }),
369
- l.description && /* @__PURE__ */ r(j.Description, { children: l.description })
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 })
370
1197
  ] }),
371
- l.action && /* @__PURE__ */ r(j.ActionTrigger, { children: l.action.label }),
372
- l.closable && /* @__PURE__ */ r(j.CloseTrigger, {})
1198
+ i.action && /* @__PURE__ */ l(we.ActionTrigger, { children: i.action.label }),
1199
+ i.closable && /* @__PURE__ */ l(we.CloseTrigger, {})
373
1200
  ] });
374
1201
  }
375
- const Qe = (l) => {
1202
+ const hl = (i) => {
376
1203
  if (typeof document > "u") return;
377
- const e = document.documentElement, n = document.body, t = l === "dark" ? "light" : "dark";
378
- for (const i of [e, n])
379
- i && (i.classList.remove(t), i.classList.add(l), i.setAttribute("data-theme", l), i.style.colorScheme = l);
380
- }, ke = "theme-preference", Ie = Be(null), Ze = () => {
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 = () => {
381
1208
  if (typeof window > "u") return "light";
382
- const l = window.localStorage.getItem(ke);
383
- return l === "dark" || l === "light" ? l : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
384
- }, wt = (l) => {
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) => {
385
1212
  const e = D(11), {
386
1213
  children: n,
387
1214
  initialPreference: t
388
- } = l;
389
- let i;
390
- e[0] !== t ? (i = t === void 0 ? Ze() : t, e[0] = t, e[1] = i) : i = e[1];
391
- const s = i, [o, d] = Te(s);
392
- let a, c;
393
- e[2] !== o ? (a = () => {
394
- Qe(o), typeof window < "u" && window.localStorage.setItem(ke, o);
395
- }, c = [o], e[2] = o, e[3] = a, e[4] = c) : (a = e[3], c = e[4]), Ne(a, c);
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);
1219
+ 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);
396
1223
  let h;
397
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => d(et), e[5] = h) : h = e[5];
398
- const g = h;
399
- let f;
400
- e[6] !== o ? (f = {
401
- themePreference: o,
402
- setThemePreference: d,
403
- toggleThemePreference: g
404
- }, e[6] = o, e[7] = f) : f = e[7];
405
- let b;
406
- return e[8] !== n || e[9] !== f ? (b = /* @__PURE__ */ r(Ie, { value: f, children: n }), e[8] = n, e[9] = f, e[10] = b) : b = e[10], b;
407
- }, Ct = () => {
408
- const l = Oe(Ie);
409
- if (!l)
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,
1229
+ 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)
410
1237
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
411
- return l;
1238
+ return i;
412
1239
  };
413
- function et(l) {
414
- return l === "dark" ? "light" : "dark";
1240
+ function gl(i) {
1241
+ return i === "dark" ? "light" : "dark";
415
1242
  }
416
1243
  export {
417
- Ue as AlertMessage,
418
- kt as ChakraProvider,
419
- Ve as ContentPlaceholder,
420
- ft as ContentPlaceholderLabel,
421
- ut as DeleteConfirmationModal,
422
- pt as EmptyState,
423
- bt as ErrorBoundary,
424
- yt as MenuItem,
425
- St as OpenSourceNoticesScreen,
426
- wt as ThemePreferenceProvider,
427
- xt as Toaster,
428
- Ce as Tooltip,
429
- Qe as applyThemePreference,
430
- Ze as getInitialThemePreference,
431
- Pt as psTheme,
432
- qe as toaster,
433
- Ct as useThemePreference
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
434
1277
  };
435
1278
  //# sourceMappingURL=index.js.map