@pstdio/ui 0.1.0 → 0.1.1

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