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