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