@pstdio/ui 0.0.4 → 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/chat-ui.js +1162 -193
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/chat-ui/index.d.ts +8 -5
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
- package/dist/components/checkbox.d.ts +8 -0
- package/dist/components/checkbox.stories.d.ts +15 -0
- package/dist/components/documentation/docs-changelog.d.ts +20 -0
- package/dist/components/documentation/docs-changelog.stories.d.ts +15 -0
- package/dist/components/documentation/docs-outline.d.ts +13 -0
- package/dist/components/documentation/docs-outline.stories.d.ts +16 -0
- package/dist/components/documentation/docs-pagination.d.ts +10 -0
- package/dist/components/documentation/docs-pagination.stories.d.ts +14 -0
- package/dist/components/documentation/docs-sidebar.d.ts +14 -0
- package/dist/components/documentation/docs-sidebar.stories.d.ts +7 -0
- package/dist/components/folder-picker-dialog.d.ts +25 -0
- package/dist/components/folder-picker-dialog.stories.d.ts +11 -0
- package/dist/components/item-section.d.ts +1 -1
- package/dist/components/panel-menu.d.ts +2 -0
- package/dist/components/panel-menu.stories.d.ts +1 -0
- package/dist/components/properties.d.ts +4 -4
- package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +1 -0
- package/dist/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +1 -0
- package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
- package/dist/components/scroll-area.d.ts +16 -0
- package/dist/components/scroll-area.stories.d.ts +7 -0
- package/dist/components/session-indicator.d.ts +1 -1
- package/dist/components/switch.d.ts +15 -0
- package/dist/components/switch.stories.d.ts +16 -0
- package/dist/components/{ticket-card.d.ts → tickets/ticket-card.d.ts} +2 -1
- package/dist/components/tickets/ticket-list.d.ts +23 -0
- package/dist/components/tickets/ticket-list.stories.d.ts +10 -0
- package/dist/empty-state-B8mbv7ZH.js +128 -0
- package/dist/empty-state-B8mbv7ZH.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +1330 -321
- package/dist/index.js.map +1 -1
- package/dist/{rich-message-CiA3ripk.js → rich-message-CNDoACE7.js} +8 -7
- package/dist/{rich-message-CiA3ripk.js.map → rich-message-CNDoACE7.js.map} +1 -1
- package/dist/rich-text.js +267 -262
- package/dist/rich-text.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/primitives/colors.d.ts +12 -28
- package/dist/theme/recipes/menu.d.ts +1 -1
- package/dist/theme/recipes/progress-circle.d.ts +3 -3
- package/dist/theme/tokens/borders.d.ts +6 -6
- package/dist/theme/tokens/colors.d.ts +180 -0
- package/dist/{theme-9E0MRtZk.js → theme-C7CIuIPZ.js} +197 -115
- package/dist/theme-C7CIuIPZ.js.map +1 -0
- package/dist/theme.js +1 -1
- package/package.json +10 -8
- package/dist/theme-9E0MRtZk.js.map +0 -1
- /package/dist/components/{ticket-board.d.ts → tickets/ticket-board.d.ts} +0 -0
- /package/dist/components/{ticket-board.stories.d.ts → tickets/ticket-board.stories.d.ts} +0 -0
- /package/dist/components/{ticket-card.stories.d.ts → tickets/ticket-card.stories.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { Alert as
|
|
2
|
-
import { ChakraProvider as
|
|
3
|
-
import { jsx as
|
|
4
|
-
import { c as
|
|
5
|
-
import * as
|
|
6
|
-
import { useState as
|
|
7
|
-
import {
|
|
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
|
+
import { T as _e } from "./tooltip-Gm7PLwZG.js";
|
|
11
|
+
import { useReactTable as Rt, getExpandedRowModel as _t, getCoreRowModel as Lt, flexRender as zt } from "@tanstack/react-table";
|
|
8
12
|
import "@fontsource/inter/400.css";
|
|
9
13
|
import "@fontsource/inter/500.css";
|
|
10
14
|
import "@fontsource/playfair-display/400.css";
|
|
@@ -13,152 +17,575 @@ import "@fontsource/playfair-display/700.css";
|
|
|
13
17
|
import "@fontsource/onest/400.css";
|
|
14
18
|
import "@fontsource/onest/500.css";
|
|
15
19
|
import "@fontsource/onest/700.css";
|
|
16
|
-
import { t as
|
|
17
|
-
const
|
|
18
|
-
const t =
|
|
19
|
-
let
|
|
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;
|
|
20
24
|
t[0] !== e ? ({
|
|
21
|
-
title:
|
|
22
|
-
children:
|
|
25
|
+
title: d,
|
|
26
|
+
children: r,
|
|
23
27
|
icon: o,
|
|
24
|
-
startElement:
|
|
28
|
+
startElement: c,
|
|
25
29
|
endElement: s,
|
|
26
|
-
...
|
|
27
|
-
} = e, t[0] = e, t[1] =
|
|
30
|
+
...a
|
|
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]);
|
|
28
32
|
let h;
|
|
29
|
-
t[7] !== o || t[8] !==
|
|
30
|
-
let g;
|
|
31
|
-
t[10] !== i || t[11] !== c ? (g = i ? /* @__PURE__ */ m(V.Content, { children: [
|
|
32
|
-
/* @__PURE__ */ r(V.Title, { children: c }),
|
|
33
|
-
/* @__PURE__ */ r(V.Description, { children: i })
|
|
34
|
-
] }) : /* @__PURE__ */ r(V.Title, { flex: "1", children: c }), t[10] = i, t[11] = c, t[12] = g) : g = t[12];
|
|
33
|
+
t[7] !== o || t[8] !== c ? (h = c || /* @__PURE__ */ n(ke.Indicator, { children: o }), t[7] = o, t[8] = c, t[9] = h) : h = t[9];
|
|
35
34
|
let f;
|
|
36
|
-
|
|
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: [
|
|
37
41
|
h,
|
|
38
|
-
|
|
42
|
+
f,
|
|
39
43
|
s
|
|
40
|
-
] }), t[13] = s, t[14] =
|
|
41
|
-
}),
|
|
42
|
-
const
|
|
43
|
-
let
|
|
44
|
-
|
|
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
|
+
t[0] !== e ? ({
|
|
49
|
+
separator: a,
|
|
50
|
+
separatorGap: c,
|
|
51
|
+
items: s,
|
|
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
|
+
let 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
|
+
} else
|
|
67
|
+
d = t[9];
|
|
68
|
+
let h;
|
|
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
|
+
let f;
|
|
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 = {
|
|
45
102
|
backgroundClip: "padding-box",
|
|
46
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")`,
|
|
47
104
|
display: "flex",
|
|
48
105
|
width: "100%"
|
|
49
|
-
}, e[0] =
|
|
106
|
+
}, e[0] = l) : l = e[0];
|
|
50
107
|
let t;
|
|
51
|
-
return e[1] !==
|
|
52
|
-
},
|
|
53
|
-
const e =
|
|
54
|
-
let
|
|
55
|
-
return e[0] !==
|
|
56
|
-
},
|
|
57
|
-
const [e,
|
|
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), {
|
|
58
115
|
headline: t,
|
|
59
|
-
buttonText:
|
|
116
|
+
buttonText: r,
|
|
60
117
|
notificationText: s,
|
|
61
118
|
onDelete: o,
|
|
62
|
-
open:
|
|
63
|
-
onClose:
|
|
64
|
-
} =
|
|
65
|
-
|
|
119
|
+
open: a,
|
|
120
|
+
onClose: c
|
|
121
|
+
} = i, d = async () => {
|
|
122
|
+
l(!0);
|
|
66
123
|
try {
|
|
67
|
-
await o(),
|
|
124
|
+
await o(), c();
|
|
68
125
|
} catch {
|
|
69
126
|
} finally {
|
|
70
|
-
|
|
127
|
+
l(!1);
|
|
71
128
|
}
|
|
72
129
|
};
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
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" }) })
|
|
79
136
|
] }),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
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 })
|
|
84
141
|
] }) })
|
|
85
142
|
] }) })
|
|
86
143
|
] });
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
|
|
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;
|
|
90
218
|
t[0] !== e ? ({
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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;
|
|
272
|
+
e[0] !== i ? ({
|
|
273
|
+
date: l,
|
|
274
|
+
version: r,
|
|
275
|
+
...t
|
|
276
|
+
} = i, e[0] = i, e[1] = l, e[2] = t, e[3] = r) : (l = e[1], t = e[2], r = e[3]);
|
|
277
|
+
let s;
|
|
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];
|
|
281
|
+
let a;
|
|
282
|
+
return e[8] !== t || e[9] !== s || e[10] !== o ? (a = /* @__PURE__ */ b($, { ...t, children: [
|
|
283
|
+
s,
|
|
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,
|
|
289
|
+
title: t,
|
|
290
|
+
description: r
|
|
291
|
+
} = i;
|
|
292
|
+
let s;
|
|
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];
|
|
296
|
+
let a;
|
|
297
|
+
e[4] !== s || e[5] !== o ? (a = /* @__PURE__ */ b($, { textAlign: "center", children: [
|
|
298
|
+
s,
|
|
299
|
+
o
|
|
300
|
+
] }), e[4] = s, e[5] = o, e[6] = a) : a = e[6];
|
|
97
301
|
let c;
|
|
98
|
-
|
|
302
|
+
e[7] !== l ? (c = l.map(jt), e[7] = l, e[8] = c) : c = e[8];
|
|
303
|
+
let d;
|
|
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];
|
|
99
305
|
let h;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
] })
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
306
|
+
return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ b($, { gap: "20", children: [
|
|
307
|
+
a,
|
|
308
|
+
d
|
|
309
|
+
] }), e[11] = a, e[12] = d, e[13] = h) : h = e[13], h;
|
|
310
|
+
};
|
|
311
|
+
function Ot(i) {
|
|
312
|
+
return /* @__PURE__ */ n(Le, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: i }, i);
|
|
313
|
+
}
|
|
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));
|
|
320
|
+
}
|
|
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: {
|
|
324
|
+
base: "static",
|
|
325
|
+
md: "sticky"
|
|
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, {})
|
|
330
|
+
] }),
|
|
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
|
|
336
|
+
] }),
|
|
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
|
|
340
|
+
] }) })
|
|
341
|
+
] }, At(i, e));
|
|
342
|
+
}
|
|
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) => {
|
|
344
|
+
const e = [];
|
|
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}`;
|
|
348
|
+
e.push({
|
|
349
|
+
id: a,
|
|
350
|
+
level: r,
|
|
351
|
+
text: s
|
|
352
|
+
}), l += 1;
|
|
124
353
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
354
|
+
return e;
|
|
355
|
+
}, Nt = (i, e) => {
|
|
356
|
+
const l = Array.from(e.querySelectorAll(Vt)), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
357
|
+
let s = 0;
|
|
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;
|
|
363
|
+
break;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
return {
|
|
367
|
+
elementsByHeadingId: t,
|
|
368
|
+
headingIdByElement: r
|
|
129
369
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
370
|
+
}, je = (i) => {
|
|
371
|
+
const e = T(14), {
|
|
372
|
+
heading: l,
|
|
373
|
+
isActive: t,
|
|
374
|
+
emphasized: r,
|
|
375
|
+
variant: s,
|
|
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 ? {
|
|
380
|
+
borderStartColor: "bg.emphasized"
|
|
381
|
+
} : {
|
|
382
|
+
color: "fg"
|
|
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];
|
|
386
|
+
let p;
|
|
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,
|
|
391
|
+
title: t,
|
|
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 = {
|
|
396
|
+
elementsByHeadingId: /* @__PURE__ */ new Map(),
|
|
397
|
+
headingIdByElement: /* @__PURE__ */ new Map()
|
|
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)
|
|
409
|
+
return;
|
|
410
|
+
const oe = new be.IntersectionObserver((ie) => {
|
|
411
|
+
const se = ie.filter(Ut).sort(Kt);
|
|
412
|
+
if (se.length === 0)
|
|
413
|
+
return;
|
|
414
|
+
const he = se[0].target, ae = de.headingIdByElement.get(he);
|
|
415
|
+
ae && h(ae);
|
|
416
|
+
}, {
|
|
417
|
+
rootMargin: o
|
|
418
|
+
});
|
|
419
|
+
for (const ie of de.headingIdByElement.keys())
|
|
420
|
+
oe.observe(ie);
|
|
421
|
+
return () => {
|
|
422
|
+
oe.disconnect();
|
|
423
|
+
};
|
|
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)
|
|
425
|
+
return null;
|
|
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({
|
|
433
|
+
behavior: "smooth",
|
|
434
|
+
block: "start"
|
|
435
|
+
});
|
|
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];
|
|
442
|
+
let z;
|
|
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 })
|
|
447
|
+
] });
|
|
448
|
+
let W;
|
|
449
|
+
e[16] !== z || e[17] !== j ? (W = /* @__PURE__ */ b(ee, { children: [
|
|
450
|
+
R,
|
|
451
|
+
z,
|
|
452
|
+
j
|
|
453
|
+
] }), e[16] = z, e[17] = j, e[18] = W) : W = e[18];
|
|
454
|
+
const V = f ? "rotate(180deg)" : "rotate(0deg)";
|
|
455
|
+
let H;
|
|
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];
|
|
464
|
+
let O;
|
|
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";
|
|
475
|
+
let U;
|
|
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) }) }) })
|
|
488
|
+
] }) }),
|
|
489
|
+
K
|
|
490
|
+
] });
|
|
491
|
+
};
|
|
492
|
+
function Ut(i) {
|
|
493
|
+
return i.isIntersecting;
|
|
140
494
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
495
|
+
function Kt(i, e) {
|
|
496
|
+
return i.boundingClientRect.top - e.boundingClientRect.top;
|
|
497
|
+
}
|
|
498
|
+
const Xe = (i) => {
|
|
499
|
+
const e = T(24), {
|
|
500
|
+
item: l,
|
|
501
|
+
direction: t
|
|
502
|
+
} = i, r = t === "prev", s = r ? "Previous" : "Next", o = r ? "start" : "end", a = r ? "flex-start" : "flex-end";
|
|
503
|
+
let c;
|
|
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";
|
|
506
|
+
let h;
|
|
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];
|
|
508
|
+
let f;
|
|
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];
|
|
510
|
+
let m;
|
|
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: [
|
|
514
|
+
h,
|
|
515
|
+
f,
|
|
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];
|
|
520
|
+
let p;
|
|
521
|
+
e[15] !== l.href || e[16] !== c || e[17] !== u || e[18] !== g ? (p = /* @__PURE__ */ b("a", { href: l.href, children: [
|
|
522
|
+
c,
|
|
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,
|
|
531
|
+
next: t
|
|
532
|
+
} = i;
|
|
533
|
+
if (!l && !t)
|
|
534
|
+
return null;
|
|
535
|
+
let r;
|
|
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];
|
|
147
539
|
let o;
|
|
148
|
-
e[
|
|
149
|
-
const d = n.message || "An unexpected error occurred while rendering this section.";
|
|
540
|
+
e[4] !== t ? (o = t ? /* @__PURE__ */ n(Xe, { item: t, direction: "next" }) : null, e[4] = t, e[5] = o) : o = e[5];
|
|
150
541
|
let a;
|
|
151
|
-
e[
|
|
542
|
+
e[6] !== o ? (a = /* @__PURE__ */ n(L, { flex: "1", children: o }), e[6] = o, e[7] = a) : a = e[7];
|
|
152
543
|
let c;
|
|
153
|
-
e[
|
|
544
|
+
return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ b(ee, { justify: "space-between", gap: "4", children: [
|
|
545
|
+
s,
|
|
546
|
+
a
|
|
547
|
+
] }), e[8] = s, e[9] = a, e[10] = c) : c = e[10], c;
|
|
548
|
+
}, qt = (i) => {
|
|
549
|
+
const e = T(17), {
|
|
550
|
+
children: l,
|
|
551
|
+
title: t,
|
|
552
|
+
defaultOpen: r,
|
|
553
|
+
action: s
|
|
554
|
+
} = i, o = r === void 0 ? !0 : r;
|
|
555
|
+
let a;
|
|
556
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
557
|
+
background: "bg.muted"
|
|
558
|
+
}, e[0] = a) : a = e[0];
|
|
559
|
+
let c;
|
|
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];
|
|
561
|
+
let d;
|
|
562
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ n(pe.Indicator, { transition: "transform 0.2s", _open: {
|
|
563
|
+
transform: "rotate(90deg)"
|
|
564
|
+
}, children: /* @__PURE__ */ n(Te, { size: 16 }) }), e[3] = d) : d = e[3];
|
|
154
565
|
let h;
|
|
155
|
-
e[
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
] }), e[
|
|
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: [
|
|
567
|
+
c,
|
|
568
|
+
d
|
|
569
|
+
] }), e[4] = c, e[5] = h) : h = e[5];
|
|
570
|
+
let f;
|
|
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: [
|
|
574
|
+
h,
|
|
575
|
+
f
|
|
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];
|
|
159
579
|
let g;
|
|
160
|
-
return e[
|
|
161
|
-
|
|
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;
|
|
584
|
+
};
|
|
585
|
+
function Jt(i) {
|
|
586
|
+
return i.stopPropagation();
|
|
587
|
+
}
|
|
588
|
+
const Qt = {
|
|
162
589
|
default: {
|
|
163
590
|
paddingX: "sm",
|
|
164
591
|
paddingY: "xs",
|
|
@@ -177,259 +604,841 @@ const Ye = (l) => {
|
|
|
177
604
|
secondaryMarginLeft: "0",
|
|
178
605
|
secondaryTextStyle: "label/XS/regular"
|
|
179
606
|
}
|
|
180
|
-
},
|
|
181
|
-
const e =
|
|
182
|
-
id:
|
|
607
|
+
}, He = (i) => {
|
|
608
|
+
const e = T(67), {
|
|
609
|
+
id: l,
|
|
183
610
|
primaryLabel: t,
|
|
184
|
-
tooltipLabel:
|
|
611
|
+
tooltipLabel: r,
|
|
185
612
|
secondaryLabel: s,
|
|
186
613
|
leftIcon: o,
|
|
187
|
-
leftSlot:
|
|
188
|
-
rightIcon:
|
|
189
|
-
leftIconColor:
|
|
614
|
+
leftSlot: a,
|
|
615
|
+
rightIcon: c,
|
|
616
|
+
leftIconColor: d,
|
|
190
617
|
rightIconColor: h,
|
|
191
|
-
leftIconSize:
|
|
192
|
-
rightIconSize:
|
|
193
|
-
rightIconAriaLabel:
|
|
194
|
-
rightTooltipLabel:
|
|
195
|
-
onRightIconClick:
|
|
196
|
-
isDisabled:
|
|
197
|
-
isSelected:
|
|
198
|
-
tagLabel:
|
|
199
|
-
tagColorPalette:
|
|
200
|
-
tagVariant:
|
|
201
|
-
variant:
|
|
202
|
-
tabIndex:
|
|
203
|
-
width:
|
|
204
|
-
maxWidth:
|
|
205
|
-
setRefElement:
|
|
206
|
-
} =
|
|
207
|
-
onClick:
|
|
208
|
-
onMouseDown:
|
|
209
|
-
onMouseEnter:
|
|
210
|
-
} =
|
|
211
|
-
let
|
|
212
|
-
e[0] !==
|
|
213
|
-
|
|
214
|
-
}, e[0] =
|
|
215
|
-
const
|
|
216
|
-
let
|
|
217
|
-
e[2] !==
|
|
218
|
-
!
|
|
219
|
-
}, e[2] =
|
|
220
|
-
const
|
|
221
|
-
let
|
|
222
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
223
|
-
bg: "bg.
|
|
224
|
-
},
|
|
225
|
-
bg: "bg.
|
|
226
|
-
}, e[5] =
|
|
227
|
-
let
|
|
228
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
618
|
+
leftIconSize: f,
|
|
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, {
|
|
634
|
+
onClick: O,
|
|
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") ? (_ = {
|
|
650
|
+
bg: "bg.menu-item.hover"
|
|
651
|
+
}, le = {
|
|
652
|
+
bg: "bg.menu-item.focus"
|
|
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 = {
|
|
229
656
|
placement: "right"
|
|
230
|
-
}, e[7] =
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
e[8] !==
|
|
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];
|
|
663
|
+
let se;
|
|
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];
|
|
668
|
+
let he;
|
|
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];
|
|
675
|
+
let Se;
|
|
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];
|
|
677
|
+
let ye;
|
|
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];
|
|
683
|
+
let ve;
|
|
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 = {
|
|
696
|
+
default: {
|
|
697
|
+
width: "64",
|
|
698
|
+
headerHeight: "49px",
|
|
699
|
+
headerPadding: "xs",
|
|
700
|
+
headerTextStyle: "label/L/medium",
|
|
701
|
+
contentPadding: "xs",
|
|
702
|
+
contentGap: "xs"
|
|
703
|
+
},
|
|
704
|
+
compact: {
|
|
705
|
+
width: "64",
|
|
706
|
+
headerHeight: "49px",
|
|
707
|
+
headerPadding: "xs",
|
|
708
|
+
headerTextStyle: "label/L/medium",
|
|
709
|
+
contentPadding: "2xs",
|
|
710
|
+
contentGap: "2xs"
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
function el(i) {
|
|
714
|
+
const e = T(13), {
|
|
715
|
+
title: l,
|
|
716
|
+
children: t,
|
|
717
|
+
variant: r
|
|
718
|
+
} = i, o = Zt[r === void 0 ? "default" : r];
|
|
719
|
+
let a;
|
|
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];
|
|
721
|
+
let c;
|
|
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];
|
|
726
|
+
let d;
|
|
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: [
|
|
728
|
+
a,
|
|
729
|
+
c
|
|
730
|
+
] }), e[9] = o.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
|
|
731
|
+
}
|
|
732
|
+
const Ke = (i) => {
|
|
733
|
+
const e = T(27), {
|
|
734
|
+
item: l,
|
|
735
|
+
activeLink: t,
|
|
736
|
+
onSelectLink: r,
|
|
737
|
+
shouldStartOpen: s
|
|
738
|
+
} = i;
|
|
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;
|
|
748
|
+
}
|
|
749
|
+
if (!c) {
|
|
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;
|
|
752
|
+
}
|
|
753
|
+
let d;
|
|
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;
|
|
756
|
+
let m;
|
|
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,
|
|
767
|
+
emptyMessage: t,
|
|
768
|
+
menuItems: r,
|
|
769
|
+
activeLink: s,
|
|
770
|
+
onSelectLink: o,
|
|
771
|
+
shouldStartOpen: a
|
|
772
|
+
} = i;
|
|
773
|
+
let c;
|
|
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];
|
|
775
|
+
let 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;
|
|
777
|
+
};
|
|
778
|
+
class Jl extends ft {
|
|
779
|
+
state = {
|
|
780
|
+
error: null
|
|
781
|
+
};
|
|
782
|
+
static getDerivedStateFromError(e) {
|
|
783
|
+
return {
|
|
784
|
+
error: e
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
componentDidCatch(e, l) {
|
|
788
|
+
console.error("Dashboard error boundary caught an error", e, l);
|
|
789
|
+
}
|
|
790
|
+
handleReset = () => {
|
|
791
|
+
this.setState({
|
|
792
|
+
error: null
|
|
793
|
+
}), this.props.onReset?.();
|
|
794
|
+
};
|
|
795
|
+
render() {
|
|
796
|
+
const {
|
|
797
|
+
children: e,
|
|
798
|
+
fallback: l,
|
|
799
|
+
label: t
|
|
800
|
+
} = this.props, {
|
|
801
|
+
error: r
|
|
802
|
+
} = this.state;
|
|
803
|
+
return r ? l || /* @__PURE__ */ n(tl, { error: r, label: t, onReset: this.handleReset }) : e;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
const tl = (i) => {
|
|
807
|
+
const e = T(12), {
|
|
808
|
+
error: l,
|
|
809
|
+
label: t,
|
|
810
|
+
onReset: r
|
|
811
|
+
} = i, s = t ?? "Something went wrong";
|
|
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.";
|
|
815
|
+
let c;
|
|
816
|
+
e[2] !== a ? (c = /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
|
|
817
|
+
let d;
|
|
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];
|
|
819
|
+
let h;
|
|
820
|
+
e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ b($, { gap: "sm", children: [
|
|
821
|
+
c,
|
|
822
|
+
d
|
|
823
|
+
] }), e[6] = c, e[7] = d, e[8] = h) : h = e[8];
|
|
824
|
+
let f;
|
|
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,
|
|
849
|
+
title: t,
|
|
850
|
+
description: r,
|
|
851
|
+
currentPath: s,
|
|
852
|
+
entries: o,
|
|
853
|
+
selectedPath: a,
|
|
854
|
+
selectedPaths: c,
|
|
855
|
+
isLoading: d,
|
|
856
|
+
error: h,
|
|
857
|
+
isSelectDisabled: f,
|
|
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;
|
|
234
867
|
let z;
|
|
235
|
-
e[
|
|
236
|
-
|
|
237
|
-
e[16] !== $ || e[17] !== z ? (X = /* @__PURE__ */ m(te, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
|
|
238
|
-
$,
|
|
239
|
-
z
|
|
240
|
-
] }), e[16] = $, e[17] = z, e[18] = X) : X = e[18];
|
|
241
|
-
let A;
|
|
242
|
-
e[19] !== s || e[20] !== u.secondaryMarginLeft || e[21] !== u.secondaryTextStyle ? (A = s && /* @__PURE__ */ r(p, { ml: u.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: u.secondaryTextStyle, color: "fg.muted", children: s }), e[19] = s, e[20] = u.secondaryMarginLeft, e[21] = u.secondaryTextStyle, e[22] = A) : A = e[22];
|
|
243
|
-
let H;
|
|
244
|
-
e[23] !== X || e[24] !== A ? (H = /* @__PURE__ */ m(C, { gap: "2xs", children: [
|
|
245
|
-
X,
|
|
246
|
-
A
|
|
247
|
-
] }), e[23] = X, e[24] = A, e[25] = H) : H = e[25];
|
|
868
|
+
e[2] !== P ? (z = new Set(P), e[2] = P, e[3] = z) : z = e[3];
|
|
869
|
+
const j = z;
|
|
248
870
|
let W;
|
|
249
|
-
e[
|
|
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];
|
|
874
|
+
let H;
|
|
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];
|
|
250
878
|
let B;
|
|
251
|
-
e[
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
e[39] !== B ? (N = /* @__PURE__ */ r(te, { justifyContent: "flex-end", color: "fg", children: B }), e[39] = B, e[40] = N) : N = e[40];
|
|
879
|
+
e[11] !== H || e[12] !== E ? (B = /* @__PURE__ */ n(q.Header, { children: /* @__PURE__ */ b($, { gap: "xs", children: [
|
|
880
|
+
H,
|
|
881
|
+
E
|
|
882
|
+
] }) }), e[11] = H, e[12] = E, e[13] = B) : B = e[13];
|
|
256
883
|
let O;
|
|
257
|
-
e[
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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];
|
|
890
|
+
let G;
|
|
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,
|
|
898
|
+
G,
|
|
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];
|
|
261
912
|
let U;
|
|
262
|
-
e[
|
|
263
|
-
let
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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];
|
|
921
|
+
let K;
|
|
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], _;
|
|
932
|
+
};
|
|
933
|
+
function Zl(i) {
|
|
934
|
+
const e = T(6);
|
|
935
|
+
let l, t;
|
|
936
|
+
e[0] !== i ? ({
|
|
937
|
+
children: l,
|
|
938
|
+
...t
|
|
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;
|
|
942
|
+
}
|
|
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,
|
|
271
946
|
title: t,
|
|
272
|
-
description:
|
|
947
|
+
description: r,
|
|
273
948
|
productName: s,
|
|
274
949
|
productVersion: o,
|
|
275
|
-
generatedAt:
|
|
276
|
-
emptyTitle:
|
|
277
|
-
emptyDescription:
|
|
278
|
-
} =
|
|
279
|
-
let
|
|
280
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
950
|
+
generatedAt: a,
|
|
951
|
+
emptyTitle: c,
|
|
952
|
+
emptyDescription: d
|
|
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 = {
|
|
281
956
|
base: "md",
|
|
282
957
|
md: "xl"
|
|
283
|
-
}, e[0] =
|
|
284
|
-
let
|
|
285
|
-
e[1] !== h ? (
|
|
286
|
-
let S;
|
|
287
|
-
e[3] !== g ? (S = /* @__PURE__ */ r(p, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = S) : S = e[4];
|
|
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];
|
|
288
961
|
let x;
|
|
289
|
-
e[
|
|
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: [
|
|
290
965
|
"Product: ",
|
|
291
966
|
s
|
|
292
|
-
] }) : null, e[5] = s, e[6] =
|
|
293
|
-
let
|
|
294
|
-
e[7] !== o ? (
|
|
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: [
|
|
295
970
|
"Version: ",
|
|
296
971
|
o
|
|
297
|
-
] }) : null, e[7] = o, e[8] =
|
|
298
|
-
let
|
|
299
|
-
e[9] !==
|
|
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: [
|
|
300
975
|
"Packages: ",
|
|
301
|
-
|
|
302
|
-
] }), e[9] =
|
|
303
|
-
let
|
|
304
|
-
e[11] !==
|
|
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: [
|
|
305
980
|
"Generated: ",
|
|
306
|
-
|
|
307
|
-
] }) : null, e[11] =
|
|
308
|
-
let
|
|
309
|
-
e[13] !==
|
|
981
|
+
a
|
|
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,
|
|
986
|
+
y,
|
|
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,
|
|
310
993
|
x,
|
|
311
|
-
w,
|
|
312
|
-
I,
|
|
313
994
|
P
|
|
314
|
-
] }), e[
|
|
315
|
-
let
|
|
316
|
-
e[
|
|
317
|
-
|
|
318
|
-
|
|
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];
|
|
1003
|
+
let z;
|
|
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,
|
|
319
1007
|
R
|
|
320
|
-
] }), e[
|
|
321
|
-
let E;
|
|
322
|
-
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ r($e, { borderColor: "border.secondary" }), e[22] = E) : E = e[22];
|
|
323
|
-
let L;
|
|
324
|
-
e[23] !== b || e[24] !== f || e[25] !== n ? (L = n.length === 0 ? /* @__PURE__ */ m(C, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
|
|
325
|
-
/* @__PURE__ */ r(p, { textStyle: "label/L/medium", children: f }),
|
|
326
|
-
/* @__PURE__ */ r(p, { textStyle: "paragraph/S/regular", color: "fg.muted", children: b })
|
|
327
|
-
] }) : /* @__PURE__ */ r(C, { gap: "md", children: n.map(Ke) }), e[23] = b, e[24] = f, e[25] = n, e[26] = L) : L = e[26];
|
|
328
|
-
let M;
|
|
329
|
-
return e[27] !== v || e[28] !== L ? (M = /* @__PURE__ */ m(C, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: k, gap: "lg", children: [
|
|
330
|
-
v,
|
|
331
|
-
E,
|
|
332
|
-
L
|
|
333
|
-
] }), e[27] = v, e[28] = L, e[29] = M) : M = e[29], M;
|
|
1008
|
+
] }), e[27] = k, e[28] = R, e[29] = z) : z = e[29], z;
|
|
334
1009
|
};
|
|
335
|
-
function
|
|
336
|
-
return /* @__PURE__ */
|
|
337
|
-
/* @__PURE__ */
|
|
338
|
-
/* @__PURE__ */
|
|
339
|
-
/* @__PURE__ */
|
|
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: [
|
|
340
1015
|
"License: ",
|
|
341
|
-
|
|
1016
|
+
i.license ?? "Unknown"
|
|
342
1017
|
] })
|
|
343
1018
|
] }),
|
|
344
|
-
|
|
345
|
-
(
|
|
346
|
-
|
|
347
|
-
|
|
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
|
|
348
1023
|
] }),
|
|
349
|
-
|
|
350
|
-
] }) },
|
|
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));
|
|
1026
|
+
}
|
|
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];
|
|
1033
|
+
let r;
|
|
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;
|
|
1035
|
+
};
|
|
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" }) })
|
|
1041
|
+
] }) }),
|
|
1042
|
+
/* @__PURE__ */ n(L, { flex: "1", children: i.value })
|
|
1043
|
+
] }, `${i.label}-${e}`);
|
|
1044
|
+
}
|
|
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,
|
|
1048
|
+
boxSize: t,
|
|
1049
|
+
ariaLabel: r,
|
|
1050
|
+
cursor: s,
|
|
1051
|
+
onClick: o
|
|
1052
|
+
} = i, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
|
|
1053
|
+
let d;
|
|
1054
|
+
e[0] !== l ? (d = al(l), e[0] = l, e[1] = d) : d = e[1];
|
|
1055
|
+
let h;
|
|
1056
|
+
e[2] !== l ? (h = cl(l), e[2] = l, e[3] = h) : h = e[3];
|
|
1057
|
+
let f;
|
|
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;
|
|
1062
|
+
t[0] !== e ? ({
|
|
1063
|
+
inputProps: s,
|
|
1064
|
+
children: r,
|
|
1065
|
+
rootRef: a,
|
|
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];
|
|
1074
|
+
let g;
|
|
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];
|
|
1076
|
+
let p;
|
|
1077
|
+
t[13] !== g ? (p = /* @__PURE__ */ n(ue.Thumb, { borderRadius: "full", children: g }), t[13] = g, t[14] = p) : p = t[14];
|
|
1078
|
+
let x;
|
|
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: [
|
|
1082
|
+
p,
|
|
1083
|
+
x
|
|
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,
|
|
1096
|
+
parentPath: t,
|
|
1097
|
+
sessionIndicatorLabel: r,
|
|
1098
|
+
sessionIndicatorStatus: s,
|
|
1099
|
+
title: o,
|
|
1100
|
+
badges: a,
|
|
1101
|
+
diffAdditions: c,
|
|
1102
|
+
diffDeletions: d,
|
|
1103
|
+
isSelected: h,
|
|
1104
|
+
draggable: f,
|
|
1105
|
+
onDragStart: m,
|
|
1106
|
+
onDragEnd: u,
|
|
1107
|
+
onClick: g,
|
|
1108
|
+
onDiffBadgeClick: p,
|
|
1109
|
+
onSessionIndicatorClick: x
|
|
1110
|
+
} = i;
|
|
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;
|
|
1114
|
+
let v;
|
|
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 = {
|
|
1129
|
+
borderColor: "border.blue",
|
|
1130
|
+
boxShadow: "mid"
|
|
1131
|
+
}, e[8] = j) : j = e[8];
|
|
1132
|
+
const W = f ? "grab" : g ? "pointer" : "default", V = P ? "true" : void 0;
|
|
1133
|
+
let H;
|
|
1134
|
+
e[9] !== y ? (H = y.length > 0 && /* @__PURE__ */ b(C, { as: "span", color: "subtle", children: [
|
|
1135
|
+
y.join(" / "),
|
|
1136
|
+
" /",
|
|
1137
|
+
" "
|
|
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: [
|
|
1141
|
+
H,
|
|
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];
|
|
1146
|
+
let O;
|
|
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: [
|
|
1155
|
+
O,
|
|
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];
|
|
1160
|
+
let G;
|
|
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,
|
|
1166
|
+
G
|
|
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;
|
|
1168
|
+
};
|
|
1169
|
+
function fl(i) {
|
|
1170
|
+
return /* @__PURE__ */ n(Le, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
|
|
1171
|
+
}
|
|
1172
|
+
const nn = (i) => {
|
|
1173
|
+
const e = T(21), {
|
|
1174
|
+
columns: l,
|
|
1175
|
+
selectedItemId: t,
|
|
1176
|
+
onMoveItem: r,
|
|
1177
|
+
onCreateStart: s,
|
|
1178
|
+
onColumnAction: o
|
|
1179
|
+
} = i, a = t === void 0 ? null : t, [c, d] = De(null), h = ul;
|
|
1180
|
+
let f;
|
|
1181
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => {
|
|
1182
|
+
d(null);
|
|
1183
|
+
}, e[0] = f) : f = e[0];
|
|
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) => {
|
|
1192
|
+
k.currentTarget.contains(k.relatedTarget) || d(null);
|
|
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) {
|
|
1212
|
+
let k;
|
|
1213
|
+
e[13] !== c || e[14] !== y || e[15] !== o || e[16] !== s || e[17] !== a ? (k = (I) => /* @__PURE__ */ b($, { gap: "xs", _notFirst: {
|
|
1214
|
+
borderLeft: "1px solid",
|
|
1215
|
+
borderColor: "border"
|
|
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;
|
|
1222
|
+
} else
|
|
1223
|
+
w = e[12];
|
|
1224
|
+
let P;
|
|
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,
|
|
1229
|
+
onCreateStart: t,
|
|
1230
|
+
onColumnAction: r
|
|
1231
|
+
} = i;
|
|
1232
|
+
let s;
|
|
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";
|
|
1235
|
+
let a;
|
|
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];
|
|
1237
|
+
let c;
|
|
1238
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ n(ot, {}), e[5] = c) : c = e[5];
|
|
1239
|
+
let d;
|
|
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];
|
|
1241
|
+
let h;
|
|
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];
|
|
1246
|
+
let f;
|
|
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: [
|
|
1248
|
+
s,
|
|
1249
|
+
a,
|
|
1250
|
+
c,
|
|
1251
|
+
d,
|
|
1252
|
+
h
|
|
1253
|
+
] }), e[15] = s, e[16] = a, e[17] = d, e[18] = h, e[19] = f) : f = e[19], f;
|
|
1254
|
+
};
|
|
1255
|
+
function ul(i) {
|
|
1256
|
+
return (e) => {
|
|
1257
|
+
e.dataTransfer.setData("text/plain", i), e.dataTransfer.effectAllowed = "move";
|
|
1258
|
+
};
|
|
351
1259
|
}
|
|
352
|
-
const
|
|
1260
|
+
const gl = [{
|
|
1261
|
+
id: "ticket",
|
|
1262
|
+
header: "",
|
|
1263
|
+
cell: ({
|
|
1264
|
+
row: i
|
|
1265
|
+
}) => /* @__PURE__ */ n(pl, { row: i })
|
|
1266
|
+
}], rn = (i) => {
|
|
1267
|
+
const {
|
|
1268
|
+
items: e,
|
|
1269
|
+
selectedItemId: l = null,
|
|
1270
|
+
onItemClick: t
|
|
1271
|
+
} = i, r = Rt({
|
|
1272
|
+
data: e,
|
|
1273
|
+
columns: gl,
|
|
1274
|
+
state: {
|
|
1275
|
+
expanded: !0
|
|
1276
|
+
},
|
|
1277
|
+
getSubRows: (s) => s.children,
|
|
1278
|
+
getCoreRowModel: Lt(),
|
|
1279
|
+
getExpandedRowModel: _t(),
|
|
1280
|
+
getRowId: (s) => s.id
|
|
1281
|
+
});
|
|
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: {
|
|
1285
|
+
background: "bg.muted"
|
|
1286
|
+
}, onClick: () => {
|
|
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);
|
|
1289
|
+
}) });
|
|
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];
|
|
1296
|
+
let a;
|
|
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];
|
|
1298
|
+
let c;
|
|
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];
|
|
1300
|
+
let d;
|
|
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];
|
|
1302
|
+
let h;
|
|
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];
|
|
1304
|
+
let f;
|
|
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];
|
|
1306
|
+
let m;
|
|
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,
|
|
1311
|
+
a,
|
|
1312
|
+
c,
|
|
1313
|
+
d,
|
|
1314
|
+
h,
|
|
1315
|
+
f,
|
|
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
|
|
1321
|
+
} = i;
|
|
1322
|
+
let t;
|
|
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)";
|
|
1327
|
+
let s;
|
|
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);
|
|
1333
|
+
let e;
|
|
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" })
|
|
1337
|
+
] }), i[0] = e) : e = i[0], e;
|
|
1338
|
+
};
|
|
1339
|
+
function Sl(i) {
|
|
1340
|
+
return /* @__PURE__ */ n(Le, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
|
|
1341
|
+
}
|
|
1342
|
+
const yl = st({
|
|
353
1343
|
placement: "bottom-end",
|
|
354
1344
|
pauseOnPageIdle: !0
|
|
355
|
-
}),
|
|
356
|
-
const
|
|
1345
|
+
}), on = () => {
|
|
1346
|
+
const i = T(1);
|
|
357
1347
|
let e;
|
|
358
|
-
return
|
|
1348
|
+
return i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ n(at, { children: /* @__PURE__ */ n(ct, { toaster: yl, insetInline: {
|
|
359
1349
|
mdDown: "4"
|
|
360
|
-
}, children:
|
|
1350
|
+
}, children: Cl }) }), i[0] = e) : e = i[0], e;
|
|
361
1351
|
};
|
|
362
|
-
function
|
|
363
|
-
return /* @__PURE__ */
|
|
1352
|
+
function Cl(i) {
|
|
1353
|
+
return /* @__PURE__ */ b(Pe.Root, { width: {
|
|
364
1354
|
md: "sm"
|
|
365
1355
|
}, children: [
|
|
366
|
-
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
|
|
369
|
-
|
|
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 })
|
|
370
1360
|
] }),
|
|
371
|
-
|
|
372
|
-
|
|
1361
|
+
i.action && /* @__PURE__ */ n(Pe.ActionTrigger, { children: i.action.label }),
|
|
1362
|
+
i.closable && /* @__PURE__ */ n(Pe.CloseTrigger, {})
|
|
373
1363
|
] });
|
|
374
1364
|
}
|
|
375
|
-
const
|
|
1365
|
+
const vl = (i) => {
|
|
376
1366
|
if (typeof document > "u") return;
|
|
377
|
-
const e = document.documentElement,
|
|
378
|
-
for (const
|
|
379
|
-
|
|
380
|
-
},
|
|
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 = () => {
|
|
381
1371
|
if (typeof window > "u") return "light";
|
|
382
|
-
const
|
|
383
|
-
return
|
|
384
|
-
},
|
|
385
|
-
const e =
|
|
386
|
-
children:
|
|
1372
|
+
const i = window.localStorage.getItem(qe);
|
|
1373
|
+
return i === "dark" || i === "light" ? i : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1374
|
+
}, sn = (i) => {
|
|
1375
|
+
const e = T(11), {
|
|
1376
|
+
children: l,
|
|
387
1377
|
initialPreference: t
|
|
388
|
-
} =
|
|
389
|
-
let
|
|
390
|
-
e[0] !== t ? (
|
|
391
|
-
const s =
|
|
392
|
-
let
|
|
393
|
-
e[2] !== o ? (
|
|
394
|
-
|
|
395
|
-
},
|
|
1378
|
+
} = i;
|
|
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);
|
|
1382
|
+
let 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);
|
|
396
1386
|
let h;
|
|
397
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () =>
|
|
398
|
-
const
|
|
399
|
-
let
|
|
400
|
-
e[6] !== o ? (
|
|
1387
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => a(kl), e[5] = h) : h = e[5];
|
|
1388
|
+
const f = h;
|
|
1389
|
+
let m;
|
|
1390
|
+
e[6] !== o ? (m = {
|
|
401
1391
|
themePreference: o,
|
|
402
|
-
setThemePreference:
|
|
403
|
-
toggleThemePreference:
|
|
404
|
-
}, e[6] = o, e[7] =
|
|
405
|
-
let
|
|
406
|
-
return e[8] !==
|
|
407
|
-
},
|
|
408
|
-
const
|
|
409
|
-
if (!
|
|
1392
|
+
setThemePreference: a,
|
|
1393
|
+
toggleThemePreference: f
|
|
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);
|
|
1399
|
+
if (!i)
|
|
410
1400
|
throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
|
|
411
|
-
return
|
|
1401
|
+
return i;
|
|
412
1402
|
};
|
|
413
|
-
function
|
|
414
|
-
return
|
|
1403
|
+
function kl(i) {
|
|
1404
|
+
return i === "dark" ? "light" : "dark";
|
|
415
1405
|
}
|
|
416
1406
|
export {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
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,
|
|
422
1420
|
pt as EmptyState,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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,
|
|
1437
|
+
_e as Tooltip,
|
|
1438
|
+
vl as applyThemePreference,
|
|
1439
|
+
wl as getInitialThemePreference,
|
|
1440
|
+
mn as psTheme,
|
|
1441
|
+
yl as toaster,
|
|
1442
|
+
an as useThemePreference
|
|
434
1443
|
};
|
|
435
1444
|
//# sourceMappingURL=index.js.map
|