@pstdio/ui 0.2.1 → 0.2.2
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 +643 -597
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/chat-ui/agent-types.d.ts +1 -0
- package/dist/components/chat-ui/components/ai-conversation.d.ts +21 -579
- package/dist/components/chat-ui/components/ai-conversation.test.d.ts +1 -0
- package/dist/components/chat-ui/components/ai-message.d.ts +8 -8
- package/dist/components/chat-ui/components/message-parts-renderer.stories.d.ts +1 -0
- package/dist/components/chat-ui/components/message-types.d.ts +8 -0
- package/dist/components/menu-item.d.ts +3 -1
- package/dist/components/menu-item.stories.d.ts +1 -1
- package/dist/components/rich-text/rich-message/rich-message.d.ts +1 -0
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +2 -0
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.test.d.ts +1 -0
- package/dist/components/scroll-area.d.ts +1 -0
- package/dist/components/sidebar-next/sidebar-next.types.d.ts +2 -1
- package/dist/components/sidebar-tree/sidebar-tree.d.ts +2 -1
- package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +9 -1
- package/dist/components/tickets/display-menu.d.ts +15 -0
- package/dist/components/tickets/display-menu.stories.d.ts +6 -0
- package/dist/components/tickets/filter-menu.d.ts +11 -0
- package/dist/components/tickets/filter-menu.stories.d.ts +6 -0
- package/dist/components/tickets/ticket-board.d.ts +7 -0
- package/dist/components/tickets/ticket-grouping.d.ts +22 -0
- package/dist/components/tickets/ticket-grouping.test.d.ts +1 -0
- package/dist/components/tickets/tickets-workspace.d.ts +29 -0
- package/dist/components/tickets/tickets-workspace.stories.d.ts +10 -0
- package/dist/components/tickets/types.d.ts +49 -0
- package/dist/components/tickets/use-workspace-store.d.ts +51 -0
- package/dist/components/tickets/use-workspace-store.test.d.ts +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +2069 -1206
- package/dist/index.js.map +1 -1
- package/dist/{rich-message-B2gxL8oy.js → rich-message-C0_i-4Ux.js} +323 -308
- package/dist/rich-message-C0_i-4Ux.js.map +1 -0
- package/dist/rich-text.js +2 -2
- package/dist/scroll-area-DZs-GiIp.js +267 -0
- package/dist/scroll-area-DZs-GiIp.js.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/empty-state-kQR0gd4j.js +0 -232
- package/dist/empty-state-kQR0gd4j.js.map +0 -1
- package/dist/rich-message-B2gxL8oy.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Alert as
|
|
2
|
-
import { ChakraProvider as
|
|
3
|
-
import { jsx as i, jsxs as b, Fragment as
|
|
4
|
-
import { c as
|
|
5
|
-
import * as
|
|
6
|
-
import { useState as
|
|
7
|
-
import { D as
|
|
8
|
-
import { C as
|
|
9
|
-
import { useVirtualizer as
|
|
10
|
-
import { ChevronRight as
|
|
1
|
+
import { Alert as $e, Breadcrumb as xe, Checkbox as ze, Box as V, Text as $, Dialog as se, CloseButton as zt, Stack as G, Button as de, IconButton as Se, Grid as At, Timeline as he, HStack as X, Image as Ot, List as mt, Flex as we, Badge as Te, Link as Ue, Heading as Gt, useEnvironmentContext as Mt, Icon as oe, Collapsible as _e, MenuItem as tt, Menu as le, AbsoluteCenter as Nt, Separator as Ye, Switch as De, Popover as Ie, SegmentGroup as ve, Portal as Qe, Wrap as bt, Spacer as Ht, createToaster as Wt, Toaster as Ft, Toast as Le, Spinner as Bt } from "@chakra-ui/react";
|
|
2
|
+
import { ChakraProvider as Qi } from "@chakra-ui/react";
|
|
3
|
+
import { jsx as i, jsxs as b, Fragment as Ze } from "react/jsx-runtime";
|
|
4
|
+
import { c as A } from "react/compiler-runtime";
|
|
5
|
+
import * as Fe from "react";
|
|
6
|
+
import { useState as me, useRef as xt, useEffect as He, Children as Vt, isValidElement as jt, cloneElement as Xt, Component as Ut, createContext as Yt, useContext as Kt } from "react";
|
|
7
|
+
import { D as qt, a as St, S as ye, E as Ke } from "./scroll-area-DZs-GiIp.js";
|
|
8
|
+
import { C as er, b as tr } from "./scroll-area-DZs-GiIp.js";
|
|
9
|
+
import { useVirtualizer as Jt } from "@tanstack/react-virtual";
|
|
10
|
+
import { ChevronRight as Ce, ChevronDown as et, FileText as qe, ChevronLeft as Qt, FolderOpen as Zt, Folder as en, Home as tn, ChevronUp as nn, Info as ln, CircleCheck as rn, CircleAlert as on, CircleDashed as sn, PanelLeftClose as an, Settings2 as cn, List as dn, KanbanSquare as un, ArrowDownUp as gn, Filter as fn, GitBranchIcon as pn, Plus as hn, MoreHorizontal as mn } from "lucide-react";
|
|
11
11
|
import { T as Ee } from "./tooltip-Gm7PLwZG.js";
|
|
12
|
-
import { useStore as
|
|
13
|
-
import { persist as
|
|
14
|
-
import { createStore as
|
|
15
|
-
import { useReactTable as
|
|
12
|
+
import { useStore as yt } from "zustand";
|
|
13
|
+
import { persist as Ct, createJSONStorage as vt } from "zustand/middleware";
|
|
14
|
+
import { createStore as wt } from "zustand/vanilla";
|
|
15
|
+
import { useReactTable as bn, getExpandedRowModel as xn, getCoreRowModel as Sn, flexRender as yn } from "@tanstack/react-table";
|
|
16
16
|
import "@fontsource/inter/400.css";
|
|
17
17
|
import "@fontsource/inter/500.css";
|
|
18
18
|
import "@fontsource/playfair-display/400.css";
|
|
@@ -21,132 +21,132 @@ import "@fontsource/playfair-display/700.css";
|
|
|
21
21
|
import "@fontsource/onest/400.css";
|
|
22
22
|
import "@fontsource/onest/500.css";
|
|
23
23
|
import "@fontsource/onest/700.css";
|
|
24
|
-
import { t as
|
|
25
|
-
const
|
|
26
|
-
const t =
|
|
27
|
-
let
|
|
24
|
+
import { t as lr } from "./theme-C7CIuIPZ.js";
|
|
25
|
+
const Cn = Fe.forwardRef(function(e, n) {
|
|
26
|
+
const t = A(19);
|
|
27
|
+
let r, o, s, a, c, d;
|
|
28
28
|
t[0] !== e ? ({
|
|
29
29
|
title: d,
|
|
30
|
-
children:
|
|
30
|
+
children: r,
|
|
31
31
|
icon: s,
|
|
32
32
|
startElement: c,
|
|
33
|
-
endElement:
|
|
33
|
+
endElement: o,
|
|
34
34
|
...a
|
|
35
|
-
} = e, t[0] = e, t[1] =
|
|
36
|
-
let
|
|
37
|
-
t[7] !== s || t[8] !== c ? (
|
|
35
|
+
} = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
|
|
36
|
+
let u;
|
|
37
|
+
t[7] !== s || t[8] !== c ? (u = c || /* @__PURE__ */ i($e.Indicator, { children: s }), t[7] = s, t[8] = c, t[9] = u) : u = t[9];
|
|
38
38
|
let g;
|
|
39
|
-
t[10] !==
|
|
40
|
-
/* @__PURE__ */ i(
|
|
41
|
-
/* @__PURE__ */ i(
|
|
42
|
-
] }) : /* @__PURE__ */ i(
|
|
39
|
+
t[10] !== r || t[11] !== d ? (g = r ? /* @__PURE__ */ b($e.Content, { children: [
|
|
40
|
+
/* @__PURE__ */ i($e.Title, { children: d }),
|
|
41
|
+
/* @__PURE__ */ i($e.Description, { children: r })
|
|
42
|
+
] }) : /* @__PURE__ */ i($e.Title, { flex: "1", children: d }), t[10] = r, t[11] = d, t[12] = g) : g = t[12];
|
|
43
43
|
let f;
|
|
44
|
-
return t[13] !==
|
|
45
|
-
|
|
44
|
+
return t[13] !== o || t[14] !== n || t[15] !== a || t[16] !== u || t[17] !== g ? (f = /* @__PURE__ */ b($e.Root, { ref: n, ...a, children: [
|
|
45
|
+
u,
|
|
46
46
|
g,
|
|
47
|
-
|
|
48
|
-
] }), t[13] =
|
|
49
|
-
}),
|
|
50
|
-
const t =
|
|
51
|
-
let
|
|
47
|
+
o
|
|
48
|
+
] }), t[13] = o, t[14] = n, t[15] = a, t[16] = u, t[17] = g, t[18] = f) : f = t[18], f;
|
|
49
|
+
}), Li = Fe.forwardRef(function(e, n) {
|
|
50
|
+
const t = A(21);
|
|
51
|
+
let r, o, s, a, c;
|
|
52
52
|
t[0] !== e ? ({
|
|
53
53
|
separator: a,
|
|
54
54
|
separatorGap: c,
|
|
55
|
-
items:
|
|
56
|
-
linkComponent:
|
|
55
|
+
items: o,
|
|
56
|
+
linkComponent: r,
|
|
57
57
|
...s
|
|
58
|
-
} = e, t[0] = e, t[1] =
|
|
58
|
+
} = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5]);
|
|
59
59
|
let d;
|
|
60
|
-
if (t[6] !==
|
|
60
|
+
if (t[6] !== r || t[7] !== o || t[8] !== a) {
|
|
61
61
|
let f;
|
|
62
|
-
t[10] !==
|
|
63
|
-
const m =
|
|
64
|
-
let
|
|
65
|
-
return m && !x ?
|
|
66
|
-
|
|
67
|
-
m ? null : /* @__PURE__ */ i(
|
|
68
|
-
] },
|
|
69
|
-
}, t[10] =
|
|
62
|
+
t[10] !== r || t[11] !== o.length || t[12] !== a ? (f = (p, h) => {
|
|
63
|
+
const m = h === o.length - 1, x = !!(p.url || p.onClick);
|
|
64
|
+
let y;
|
|
65
|
+
return m && !x ? y = /* @__PURE__ */ i(xe.CurrentLink, { children: p.title }) : p.url ? y = r ? /* @__PURE__ */ i(xe.Link, { asChild: !0, children: /* @__PURE__ */ i(r, { to: p.url, children: p.title }) }) : /* @__PURE__ */ i(xe.Link, { href: p.url, children: p.title }) : p.onClick ? y = /* @__PURE__ */ i(xe.Link, { as: "button", type: "button", onClick: p.onClick, children: p.title }) : y = /* @__PURE__ */ i(xe.Link, { children: p.title }), /* @__PURE__ */ b(xe.Item, { children: [
|
|
66
|
+
y,
|
|
67
|
+
m ? null : /* @__PURE__ */ i(xe.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
|
|
68
|
+
] }, h);
|
|
69
|
+
}, t[10] = r, t[11] = o.length, t[12] = a, t[13] = f) : f = t[13], d = o.map(f), t[6] = r, t[7] = o, t[8] = a, t[9] = d;
|
|
70
70
|
} else
|
|
71
71
|
d = t[9];
|
|
72
|
-
let
|
|
73
|
-
t[14] !== c || t[15] !== d ? (
|
|
72
|
+
let u;
|
|
73
|
+
t[14] !== c || t[15] !== d ? (u = /* @__PURE__ */ i(xe.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = u) : u = t[16];
|
|
74
74
|
let g;
|
|
75
|
-
return t[17] !==
|
|
76
|
-
}),
|
|
77
|
-
const t =
|
|
78
|
-
let
|
|
75
|
+
return t[17] !== n || t[18] !== s || t[19] !== u ? (g = /* @__PURE__ */ i(xe.Root, { ref: n, ...s, children: u }), t[17] = n, t[18] = s, t[19] = u, t[20] = g) : g = t[20], g;
|
|
76
|
+
}), vn = Fe.forwardRef(function(e, n) {
|
|
77
|
+
const t = A(26);
|
|
78
|
+
let r, o, s, a, c, d;
|
|
79
79
|
t[0] !== e ? ({
|
|
80
|
-
icon:
|
|
81
|
-
children:
|
|
80
|
+
icon: o,
|
|
81
|
+
children: r,
|
|
82
82
|
inputProps: s,
|
|
83
83
|
rootRef: c,
|
|
84
84
|
disabled: d,
|
|
85
85
|
...a
|
|
86
|
-
} = e, t[0] = e, t[1] =
|
|
87
|
-
const
|
|
86
|
+
} = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
|
|
87
|
+
const u = d === void 0 ? !1 : d, g = u ? "not-allowed" : "pointer";
|
|
88
88
|
let f;
|
|
89
|
-
t[7] !== s || t[8] !==
|
|
90
|
-
let u;
|
|
91
|
-
t[10] !== r ? (u = r || /* @__PURE__ */ i(Le.Indicator, {}), t[10] = r, t[11] = u) : u = t[11];
|
|
89
|
+
t[7] !== s || t[8] !== n ? (f = /* @__PURE__ */ i(ze.HiddenInput, { ref: n, ...s }), t[7] = s, t[8] = n, t[9] = f) : f = t[9];
|
|
92
90
|
let p;
|
|
93
|
-
t[
|
|
91
|
+
t[10] !== o ? (p = o || /* @__PURE__ */ i(ze.Indicator, {}), t[10] = o, t[11] = p) : p = t[11];
|
|
92
|
+
let h;
|
|
93
|
+
t[12] !== g || t[13] !== p ? (h = /* @__PURE__ */ i(ze.Control, { borderRadius: "xs", cursor: g, children: p }), t[12] = g, t[13] = p, t[14] = h) : h = t[14];
|
|
94
94
|
let m;
|
|
95
|
-
t[15] !==
|
|
95
|
+
t[15] !== r || t[16] !== g ? (m = r != null && /* @__PURE__ */ i(ze.Label, { cursor: g, children: r }), t[15] = r, t[16] = g, t[17] = m) : m = t[17];
|
|
96
96
|
let x;
|
|
97
|
-
return t[18] !==
|
|
97
|
+
return t[18] !== u || t[19] !== g || t[20] !== a || t[21] !== c || t[22] !== f || t[23] !== h || t[24] !== m ? (x = /* @__PURE__ */ b(ze.Root, { ref: c, disabled: u, cursor: g, ...a, children: [
|
|
98
98
|
f,
|
|
99
|
-
|
|
99
|
+
h,
|
|
100
100
|
m
|
|
101
|
-
] }), t[18] =
|
|
102
|
-
}),
|
|
103
|
-
const e =
|
|
104
|
-
let
|
|
105
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
101
|
+
] }), t[18] = u, t[19] = g, t[20] = a, t[21] = c, t[22] = f, t[23] = h, t[24] = m, t[25] = x) : x = t[25], x;
|
|
102
|
+
}), wn = (l) => {
|
|
103
|
+
const e = A(3);
|
|
104
|
+
let n;
|
|
105
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
106
106
|
backgroundClip: "padding-box",
|
|
107
107
|
backgroundImage: `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`,
|
|
108
108
|
display: "flex",
|
|
109
109
|
width: "100%"
|
|
110
|
-
}, e[0] =
|
|
110
|
+
}, e[0] = n) : n = e[0];
|
|
111
111
|
let t;
|
|
112
|
-
return e[1] !==
|
|
113
|
-
},
|
|
114
|
-
const e =
|
|
115
|
-
let
|
|
116
|
-
return e[0] !==
|
|
117
|
-
},
|
|
118
|
-
const [e,
|
|
112
|
+
return e[1] !== l ? (t = /* @__PURE__ */ i(V, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
|
|
113
|
+
}, Ri = (l) => {
|
|
114
|
+
const e = A(2);
|
|
115
|
+
let n;
|
|
116
|
+
return e[0] !== l ? (n = /* @__PURE__ */ i(V, { p: "2", children: /* @__PURE__ */ i($, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...l }) }), e[0] = l, e[1] = n) : n = e[1], n;
|
|
117
|
+
}, Ei = (l) => {
|
|
118
|
+
const [e, n] = me(!1), {
|
|
119
119
|
headline: t,
|
|
120
|
-
buttonText:
|
|
121
|
-
notificationText:
|
|
120
|
+
buttonText: r,
|
|
121
|
+
notificationText: o,
|
|
122
122
|
onDelete: s,
|
|
123
123
|
open: a,
|
|
124
124
|
onClose: c
|
|
125
|
-
} =
|
|
126
|
-
|
|
125
|
+
} = l, d = async () => {
|
|
126
|
+
n(!0);
|
|
127
127
|
try {
|
|
128
128
|
await s(), c();
|
|
129
129
|
} catch {
|
|
130
130
|
} finally {
|
|
131
|
-
|
|
131
|
+
n(!1);
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
return /* @__PURE__ */ b(
|
|
135
|
-
/* @__PURE__ */ i(
|
|
136
|
-
/* @__PURE__ */ i(
|
|
137
|
-
/* @__PURE__ */ b(
|
|
138
|
-
/* @__PURE__ */ i(
|
|
139
|
-
/* @__PURE__ */ i(
|
|
134
|
+
return /* @__PURE__ */ b(se.Root, { open: a, onOpenChange: c, children: [
|
|
135
|
+
/* @__PURE__ */ i(se.Backdrop, {}),
|
|
136
|
+
/* @__PURE__ */ i(se.Positioner, { children: /* @__PURE__ */ b(se.Content, { children: [
|
|
137
|
+
/* @__PURE__ */ b(se.Header, { children: [
|
|
138
|
+
/* @__PURE__ */ i($, { textStyle: "heading/M", children: t }),
|
|
139
|
+
/* @__PURE__ */ i(se.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ i(zt, { size: "sm" }) })
|
|
140
140
|
] }),
|
|
141
|
-
/* @__PURE__ */ i(
|
|
142
|
-
/* @__PURE__ */ i(
|
|
143
|
-
/* @__PURE__ */ i(
|
|
144
|
-
/* @__PURE__ */ i(
|
|
141
|
+
/* @__PURE__ */ i(se.Body, { children: o }),
|
|
142
|
+
/* @__PURE__ */ i(se.Footer, { children: /* @__PURE__ */ b(G, { direction: "row", gap: "1", children: [
|
|
143
|
+
/* @__PURE__ */ i(de, { onClick: c, children: "Close" }),
|
|
144
|
+
/* @__PURE__ */ i(de, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: r })
|
|
145
145
|
] }) })
|
|
146
146
|
] }) })
|
|
147
147
|
] });
|
|
148
|
-
},
|
|
149
|
-
switch (
|
|
148
|
+
}, In = (l) => {
|
|
149
|
+
switch (l.split(".").pop()?.toLowerCase()) {
|
|
150
150
|
case "ts":
|
|
151
151
|
case "tsx":
|
|
152
152
|
return "typescript";
|
|
@@ -175,421 +175,388 @@ const Yt = He.forwardRef(function(e, l) {
|
|
|
175
175
|
default:
|
|
176
176
|
return "plaintext";
|
|
177
177
|
}
|
|
178
|
-
},
|
|
179
|
-
const e =
|
|
180
|
-
diff:
|
|
181
|
-
} =
|
|
178
|
+
}, kn = (l) => {
|
|
179
|
+
const e = A(37), {
|
|
180
|
+
diff: n
|
|
181
|
+
} = l, [t, r] = me(!0), o = n.newPath || n.oldPath || "unknown";
|
|
182
182
|
let s;
|
|
183
|
-
e[0] !==
|
|
184
|
-
const a = s, c =
|
|
183
|
+
e[0] !== o ? (s = In(o), e[0] = o, e[1] = s) : s = e[1];
|
|
184
|
+
const a = s, c = n.additions ?? 0, d = n.deletions ?? 0, u = t ? "1px solid" : "none";
|
|
185
185
|
let g;
|
|
186
|
-
e[2] !== t ? (g = () =>
|
|
186
|
+
e[2] !== t ? (g = () => r(!t), e[2] = t, e[3] = g) : g = e[3];
|
|
187
187
|
const f = t ? "Collapse" : "Expand";
|
|
188
|
-
let u;
|
|
189
|
-
e[4] !== t ? (u = (I) => {
|
|
190
|
-
I.stopPropagation(), o(!t);
|
|
191
|
-
}, e[4] = t, e[5] = u) : u = e[5];
|
|
192
188
|
let p;
|
|
193
|
-
e[
|
|
189
|
+
e[4] !== t ? (p = (T) => {
|
|
190
|
+
T.stopPropagation(), r(!t);
|
|
191
|
+
}, e[4] = t, e[5] = p) : p = e[5];
|
|
192
|
+
let h;
|
|
193
|
+
e[6] !== t ? (h = t ? /* @__PURE__ */ i(et, { size: 16 }) : /* @__PURE__ */ i(Ce, { size: 16 }), e[6] = t, e[7] = h) : h = e[7];
|
|
194
194
|
let m;
|
|
195
|
-
e[8] !== f || e[9] !==
|
|
195
|
+
e[8] !== f || e[9] !== p || e[10] !== h ? (m = /* @__PURE__ */ i(Se, { "aria-label": f, variant: "ghost", size: "2xs", onClick: p, flexShrink: 0, children: h }), e[8] = f, e[9] = p, e[10] = h, e[11] = m) : m = e[11];
|
|
196
196
|
let x;
|
|
197
|
-
e[12] !==
|
|
198
|
-
/* @__PURE__ */ i(
|
|
199
|
-
/* @__PURE__ */ i(
|
|
200
|
-
|
|
201
|
-
] }) :
|
|
202
|
-
let S;
|
|
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];
|
|
197
|
+
e[12] !== n.change || e[13] !== n.newPath || e[14] !== n.oldPath || e[15] !== o ? (x = n.change === "renamed" ? /* @__PURE__ */ b($, { as: "span", textStyle: "sm", children: [
|
|
198
|
+
/* @__PURE__ */ i($, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
|
|
199
|
+
/* @__PURE__ */ i(V, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(Ce, { size: 12 }) }),
|
|
200
|
+
n.newPath
|
|
201
|
+
] }) : n.change === "deleted" ? /* @__PURE__ */ i($, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: o }) : /* @__PURE__ */ i($, { as: "span", textStyle: "sm", children: o }), e[12] = n.change, e[13] = n.newPath, e[14] = n.oldPath, e[15] = o, e[16] = x) : x = e[16];
|
|
204
202
|
let y;
|
|
205
|
-
e[
|
|
206
|
-
let v;
|
|
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,
|
|
209
|
-
S,
|
|
210
|
-
y
|
|
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];
|
|
214
|
-
let P;
|
|
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: [
|
|
216
|
-
v,
|
|
217
|
-
k
|
|
218
|
-
] }), e[34] = v, e[35] = k, e[36] = P) : P = e[36], P;
|
|
219
|
-
}, he = He.forwardRef(function(e, l) {
|
|
220
|
-
const t = $(33);
|
|
221
|
-
let o, r, s, a, c, d, h, g, f, u;
|
|
222
|
-
t[0] !== e ? ({
|
|
223
|
-
children: o,
|
|
224
|
-
viewportRef: u,
|
|
225
|
-
viewportProps: f,
|
|
226
|
-
contentProps: r,
|
|
227
|
-
verticalScrollbarProps: g,
|
|
228
|
-
horizontalScrollbarProps: s,
|
|
229
|
-
showVerticalScrollbar: c,
|
|
230
|
-
showHorizontalScrollbar: d,
|
|
231
|
-
showCorner: h,
|
|
232
|
-
...a
|
|
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;
|
|
235
|
-
let S;
|
|
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];
|
|
237
|
-
let y;
|
|
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];
|
|
239
|
-
let v;
|
|
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];
|
|
243
|
-
let P;
|
|
244
|
-
t[24] !== x ? (P = x ? /* @__PURE__ */ i(Pe.Corner, {}) : null, t[24] = x, t[25] = P) : P = t[25];
|
|
203
|
+
e[17] !== o || e[18] !== x ? (y = /* @__PURE__ */ i(V, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: o, children: x }), e[17] = o, e[18] = x, e[19] = y) : y = e[19];
|
|
245
204
|
let I;
|
|
246
|
-
|
|
205
|
+
e[20] !== c || e[21] !== d ? (I = /* @__PURE__ */ i(V, { flexShrink: 0, children: /* @__PURE__ */ i(St, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = I) : I = e[22];
|
|
206
|
+
let k;
|
|
207
|
+
e[23] !== u || e[24] !== g || e[25] !== m || e[26] !== y || e[27] !== I ? (k = /* @__PURE__ */ b(At, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: u, borderColor: "border.muted", cursor: "pointer", onClick: g, gap: "sm", children: [
|
|
208
|
+
m,
|
|
247
209
|
y,
|
|
248
|
-
|
|
210
|
+
I
|
|
211
|
+
] }), e[23] = u, e[24] = g, e[25] = m, e[26] = y, e[27] = I, e[28] = k) : k = e[28];
|
|
212
|
+
let P;
|
|
213
|
+
e[29] !== n.newContent || e[30] !== n.oldContent || e[31] !== t || e[32] !== a ? (P = t && /* @__PURE__ */ i(V, { height: "400px", bg: "bg", children: /* @__PURE__ */ i(qt, { original: n.oldContent || "", modified: n.newContent || "", language: a, sideBySide: !1, disableScroll: !1 }) }), e[29] = n.newContent, e[30] = n.oldContent, e[31] = t, e[32] = a, e[33] = P) : P = e[33];
|
|
214
|
+
let D;
|
|
215
|
+
return e[34] !== k || e[35] !== P ? (D = /* @__PURE__ */ b(V, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
|
|
249
216
|
k,
|
|
250
217
|
P
|
|
251
|
-
] }),
|
|
252
|
-
}
|
|
253
|
-
function
|
|
218
|
+
] }), e[34] = k, e[35] = P, e[36] = D) : D = e[36], D;
|
|
219
|
+
};
|
|
220
|
+
function zi(l) {
|
|
254
221
|
const {
|
|
255
222
|
diffs: e
|
|
256
|
-
} =
|
|
223
|
+
} = l, n = xt(null), t = Jt({
|
|
257
224
|
count: e.length,
|
|
258
|
-
getScrollElement: () =>
|
|
225
|
+
getScrollElement: () => n.current,
|
|
259
226
|
estimateSize: () => 42,
|
|
260
227
|
overscan: 5
|
|
261
228
|
});
|
|
262
|
-
return e.length === 0 ? /* @__PURE__ */ i(
|
|
229
|
+
return e.length === 0 ? /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
|
|
263
230
|
p: "xs",
|
|
264
231
|
spaceY: "xs"
|
|
265
|
-
}, children: /* @__PURE__ */ i(
|
|
232
|
+
}, children: /* @__PURE__ */ i(Ke, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(V, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(ye, { position: "absolute", inset: "0", viewportRef: n, contentProps: {
|
|
266
233
|
p: "xs"
|
|
267
|
-
}, children: /* @__PURE__ */ i(
|
|
234
|
+
}, children: /* @__PURE__ */ i(V, { position: "relative", width: "100%", style: {
|
|
268
235
|
height: t.getTotalSize()
|
|
269
|
-
}, children: t.getVirtualItems().map((
|
|
270
|
-
transform: `translateY(${
|
|
271
|
-
}, children: /* @__PURE__ */ i(
|
|
236
|
+
}, children: t.getVirtualItems().map((r) => /* @__PURE__ */ i(V, { "data-index": r.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
|
|
237
|
+
transform: `translateY(${r.start}px)`
|
|
238
|
+
}, children: /* @__PURE__ */ i(kn, { diff: e[r.index] }) }, r.key)) }) }) }) });
|
|
272
239
|
}
|
|
273
|
-
const
|
|
274
|
-
const e =
|
|
275
|
-
let
|
|
276
|
-
e[0] !==
|
|
277
|
-
date:
|
|
278
|
-
version:
|
|
240
|
+
const Pn = (l, e) => `${l.version}-${l.date}-${e}`, Tn = (l, e) => `${l.title}-${e}`, nt = (l) => {
|
|
241
|
+
const e = A(12);
|
|
242
|
+
let n, t, r;
|
|
243
|
+
e[0] !== l ? ({
|
|
244
|
+
date: n,
|
|
245
|
+
version: r,
|
|
279
246
|
...t
|
|
280
|
-
} =
|
|
281
|
-
let
|
|
282
|
-
e[4] !==
|
|
247
|
+
} = l, e[0] = l, e[1] = n, e[2] = t, e[3] = r) : (n = e[1], t = e[2], r = e[3]);
|
|
248
|
+
let o;
|
|
249
|
+
e[4] !== n ? (o = /* @__PURE__ */ i(he.Title, { textStyle: "sm", color: "fg.muted", children: n }), e[4] = n, e[5] = o) : o = e[5];
|
|
283
250
|
let s;
|
|
284
|
-
e[6] !==
|
|
251
|
+
e[6] !== r ? (s = /* @__PURE__ */ i(we, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ i(he.Title, { textStyle: "md", fontWeight: "semibold", children: r }) }), e[6] = r, e[7] = s) : s = e[7];
|
|
285
252
|
let a;
|
|
286
|
-
return e[8] !== t || e[9] !==
|
|
287
|
-
|
|
253
|
+
return e[8] !== t || e[9] !== o || e[10] !== s ? (a = /* @__PURE__ */ b(G, { ...t, children: [
|
|
254
|
+
o,
|
|
288
255
|
s
|
|
289
|
-
] }), e[8] = t, e[9] =
|
|
290
|
-
},
|
|
291
|
-
const e =
|
|
292
|
-
entries:
|
|
256
|
+
] }), e[8] = t, e[9] = o, e[10] = s, e[11] = a) : a = e[11], a;
|
|
257
|
+
}, Ai = (l) => {
|
|
258
|
+
const e = A(14), {
|
|
259
|
+
entries: n,
|
|
293
260
|
title: t,
|
|
294
|
-
description:
|
|
295
|
-
} =
|
|
296
|
-
let
|
|
297
|
-
e[0] !== t ? (
|
|
261
|
+
description: r
|
|
262
|
+
} = l;
|
|
263
|
+
let o;
|
|
264
|
+
e[0] !== t ? (o = /* @__PURE__ */ i(Gt, { size: "4xl", children: t }), e[0] = t, e[1] = o) : o = e[1];
|
|
298
265
|
let s;
|
|
299
|
-
e[2] !==
|
|
266
|
+
e[2] !== r ? (s = r ? /* @__PURE__ */ i($, { color: "fg.muted", textStyle: "lg", children: r }) : null, e[2] = r, e[3] = s) : s = e[3];
|
|
300
267
|
let a;
|
|
301
|
-
e[4] !==
|
|
302
|
-
|
|
268
|
+
e[4] !== o || e[5] !== s ? (a = /* @__PURE__ */ b(G, { textAlign: "center", children: [
|
|
269
|
+
o,
|
|
303
270
|
s
|
|
304
|
-
] }), e[4] =
|
|
271
|
+
] }), e[4] = o, e[5] = s, e[6] = a) : a = e[6];
|
|
305
272
|
let c;
|
|
306
|
-
e[7] !==
|
|
273
|
+
e[7] !== n ? (c = n.map($n), e[7] = n, e[8] = c) : c = e[8];
|
|
307
274
|
let d;
|
|
308
|
-
e[9] !== c ? (d = /* @__PURE__ */ i(
|
|
309
|
-
let
|
|
310
|
-
return e[11] !== a || e[12] !== d ? (
|
|
275
|
+
e[9] !== c ? (d = /* @__PURE__ */ i(V, { position: "relative", children: /* @__PURE__ */ i(he.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
|
|
276
|
+
let u;
|
|
277
|
+
return e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ b(G, { gap: "20", children: [
|
|
311
278
|
a,
|
|
312
279
|
d
|
|
313
|
-
] }), e[11] = a, e[12] = d, e[13] =
|
|
280
|
+
] }), e[11] = a, e[12] = d, e[13] = u) : u = e[13], u;
|
|
314
281
|
};
|
|
315
|
-
function
|
|
316
|
-
return /* @__PURE__ */ i(
|
|
282
|
+
function Dn(l) {
|
|
283
|
+
return /* @__PURE__ */ i(Te, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: l }, l);
|
|
317
284
|
}
|
|
318
|
-
function
|
|
319
|
-
return /* @__PURE__ */ i(
|
|
320
|
-
/* @__PURE__ */ i(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
] }) },
|
|
285
|
+
function _n(l, e) {
|
|
286
|
+
return /* @__PURE__ */ i(mt.Item, { children: /* @__PURE__ */ b(G, { gap: "1", children: [
|
|
287
|
+
/* @__PURE__ */ i($, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: l.title }),
|
|
288
|
+
l.description ? /* @__PURE__ */ i($, { color: "fg.subtle", textStyle: "xs", children: l.description }) : null,
|
|
289
|
+
l.link ? /* @__PURE__ */ i(Ue, { href: l.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
|
|
290
|
+
] }) }, Tn(l, e));
|
|
324
291
|
}
|
|
325
|
-
function
|
|
326
|
-
return /* @__PURE__ */ b(
|
|
327
|
-
/* @__PURE__ */ i(
|
|
292
|
+
function $n(l, e) {
|
|
293
|
+
return /* @__PURE__ */ b(he.Item, { children: [
|
|
294
|
+
/* @__PURE__ */ i(he.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
|
|
328
295
|
base: "static",
|
|
329
296
|
md: "sticky"
|
|
330
|
-
}, children: /* @__PURE__ */ i(
|
|
331
|
-
/* @__PURE__ */ b(
|
|
332
|
-
/* @__PURE__ */ i(
|
|
333
|
-
/* @__PURE__ */ i(
|
|
297
|
+
}, children: /* @__PURE__ */ i(nt, { hideBelow: "md", date: l.date, version: l.version }) }),
|
|
298
|
+
/* @__PURE__ */ b(he.Connector, { children: [
|
|
299
|
+
/* @__PURE__ */ i(he.Separator, {}),
|
|
300
|
+
/* @__PURE__ */ i(he.Indicator, {})
|
|
334
301
|
] }),
|
|
335
|
-
/* @__PURE__ */ i(
|
|
336
|
-
/* @__PURE__ */ i(
|
|
337
|
-
/* @__PURE__ */ b(
|
|
338
|
-
/* @__PURE__ */ i(
|
|
339
|
-
|
|
302
|
+
/* @__PURE__ */ i(he.Content, { children: /* @__PURE__ */ b(G, { gap: "4", children: [
|
|
303
|
+
/* @__PURE__ */ i(nt, { hideFrom: "md", date: l.date, version: l.version }),
|
|
304
|
+
/* @__PURE__ */ b(G, { gap: "2", children: [
|
|
305
|
+
/* @__PURE__ */ i(he.Title, { fontSize: "lg", fontWeight: "medium", children: l.title }),
|
|
306
|
+
l.description ? /* @__PURE__ */ i($, { color: "fg.muted", textStyle: "sm", children: l.description }) : null
|
|
340
307
|
] }),
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
308
|
+
l.tags && l.tags.length > 0 ? /* @__PURE__ */ i(X, { children: l.tags.map(Dn) }) : null,
|
|
309
|
+
l.image ? /* @__PURE__ */ i(Ot, { rounded: "l2", src: l.image, alt: l.title }) : null,
|
|
310
|
+
l.changes && l.changes.length > 0 ? /* @__PURE__ */ i(mt.Root, { pl: "4", gap: "4", children: l.changes.map(_n) }) : null
|
|
344
311
|
] }) })
|
|
345
|
-
] },
|
|
312
|
+
] }, Pn(l, e));
|
|
346
313
|
}
|
|
347
|
-
const
|
|
314
|
+
const Ln = /^(#{1,3})\s+(.+)$/gm, Rn = ".rich-text__h1, .rich-text__h2, .rich-text__h3", En = (l, e) => l.classList.contains(`rich-text__h${e}`), zn = (l) => l.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Ve = (l) => {
|
|
348
315
|
const e = [];
|
|
349
|
-
let
|
|
350
|
-
for (const t of
|
|
351
|
-
const
|
|
316
|
+
let n = 0;
|
|
317
|
+
for (const t of l.matchAll(Ln)) {
|
|
318
|
+
const r = t[1].length, o = t[2].trim(), a = `${zn(o) || "heading"}-${n}`;
|
|
352
319
|
e.push({
|
|
353
320
|
id: a,
|
|
354
|
-
level:
|
|
355
|
-
text:
|
|
356
|
-
}),
|
|
321
|
+
level: r,
|
|
322
|
+
text: o
|
|
323
|
+
}), n += 1;
|
|
357
324
|
}
|
|
358
325
|
return e;
|
|
359
|
-
},
|
|
360
|
-
const
|
|
361
|
-
let
|
|
362
|
-
for (const s of
|
|
363
|
-
for (let a =
|
|
364
|
-
const c =
|
|
365
|
-
if (!(!d || d !== s.text) &&
|
|
366
|
-
t.set(s.id, c),
|
|
326
|
+
}, An = (l, e) => {
|
|
327
|
+
const n = Array.from(e.querySelectorAll(Rn)), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
328
|
+
let o = 0;
|
|
329
|
+
for (const s of l)
|
|
330
|
+
for (let a = o; a < n.length; a += 1) {
|
|
331
|
+
const c = n[a], d = c.textContent?.trim();
|
|
332
|
+
if (!(!d || d !== s.text) && En(c, s.level)) {
|
|
333
|
+
t.set(s.id, c), r.set(c, s.id), o = a + 1;
|
|
367
334
|
break;
|
|
368
335
|
}
|
|
369
336
|
}
|
|
370
337
|
return {
|
|
371
338
|
elementsByHeadingId: t,
|
|
372
|
-
headingIdByElement:
|
|
339
|
+
headingIdByElement: r
|
|
373
340
|
};
|
|
374
|
-
},
|
|
375
|
-
const e =
|
|
376
|
-
heading:
|
|
341
|
+
}, lt = (l) => {
|
|
342
|
+
const e = A(14), {
|
|
343
|
+
heading: n,
|
|
377
344
|
isActive: t,
|
|
378
|
-
emphasized:
|
|
379
|
-
variant:
|
|
345
|
+
emphasized: r,
|
|
346
|
+
variant: o,
|
|
380
347
|
onSelect: s
|
|
381
|
-
} =
|
|
382
|
-
let
|
|
383
|
-
e[0] !== a ? (
|
|
348
|
+
} = l, a = o === "line", c = `calc(${n.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", u = t || r ? "medium" : "normal", g = a ? "1px" : "0px", f = a ? t ? "fg" : "bg.muted" : "transparent";
|
|
349
|
+
let p;
|
|
350
|
+
e[0] !== a ? (p = a ? {
|
|
384
351
|
borderStartColor: "bg.emphasized"
|
|
385
352
|
} : {
|
|
386
353
|
color: "fg"
|
|
387
|
-
}, e[0] = a, e[1] =
|
|
388
|
-
let
|
|
389
|
-
e[2] !==
|
|
354
|
+
}, e[0] = a, e[1] = p) : p = e[1];
|
|
355
|
+
let h;
|
|
356
|
+
e[2] !== n.id || e[3] !== s ? (h = () => s(n.id), e[2] = n.id, e[3] = s, e[4] = h) : h = e[4];
|
|
390
357
|
let m;
|
|
391
|
-
return e[5] !==
|
|
392
|
-
},
|
|
393
|
-
const e =
|
|
394
|
-
markdown:
|
|
358
|
+
return e[5] !== n.text || e[6] !== c || e[7] !== d || e[8] !== u || e[9] !== g || e[10] !== f || e[11] !== p || e[12] !== h ? (m = /* @__PURE__ */ i(V, { 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: u, borderStartWidth: g, borderStartColor: f, _hover: p, onClick: h, children: n.text }), e[5] = n.text, e[6] = c, e[7] = d, e[8] = u, e[9] = g, e[10] = f, e[11] = p, e[12] = h, e[13] = m) : m = e[13], m;
|
|
359
|
+
}, Oi = (l) => {
|
|
360
|
+
const e = A(39), {
|
|
361
|
+
markdown: n,
|
|
395
362
|
title: t,
|
|
396
|
-
rootMargin:
|
|
397
|
-
} =
|
|
398
|
-
let
|
|
399
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
363
|
+
rootMargin: r
|
|
364
|
+
} = l, o = t === void 0 ? "On this page" : t, s = r === void 0 ? "-20% 0% -35% 0%" : r, a = Ve(n), c = Mt(), [d, u] = me(a[0]?.id ?? ""), [g, f] = me(!1);
|
|
365
|
+
let p;
|
|
366
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
400
367
|
elementsByHeadingId: /* @__PURE__ */ new Map(),
|
|
401
368
|
headingIdByElement: /* @__PURE__ */ new Map()
|
|
402
|
-
}, e[0] =
|
|
403
|
-
const
|
|
369
|
+
}, e[0] = p) : p = e[0];
|
|
370
|
+
const h = xt(p);
|
|
404
371
|
let m, x;
|
|
405
|
-
e[1] !==
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
}, x = [
|
|
409
|
-
let
|
|
410
|
-
if (e[4] !== c || e[5] !==
|
|
411
|
-
const
|
|
412
|
-
if (
|
|
372
|
+
e[1] !== n ? (m = () => {
|
|
373
|
+
const U = Ve(n);
|
|
374
|
+
u(U[0]?.id ?? "");
|
|
375
|
+
}, x = [n], e[1] = n, e[2] = m, e[3] = x) : (m = e[2], x = e[3]), He(m, x);
|
|
376
|
+
let y, I;
|
|
377
|
+
if (e[4] !== c || e[5] !== n || e[6] !== s ? (y = () => {
|
|
378
|
+
const U = Ve(n), ie = c.getDocument(), ce = c.getWindow(), re = An(U, ie);
|
|
379
|
+
if (h.current = re, re.headingIdByElement.size === 0)
|
|
413
380
|
return;
|
|
414
|
-
const
|
|
415
|
-
const ae =
|
|
381
|
+
const ue = new ce.IntersectionObserver((fe) => {
|
|
382
|
+
const ae = fe.filter(On).sort(Gn);
|
|
416
383
|
if (ae.length === 0)
|
|
417
384
|
return;
|
|
418
|
-
const
|
|
419
|
-
|
|
385
|
+
const be = ae[0].target, ge = re.headingIdByElement.get(be);
|
|
386
|
+
ge && u(ge);
|
|
420
387
|
}, {
|
|
421
388
|
rootMargin: s
|
|
422
389
|
});
|
|
423
|
-
for (const
|
|
424
|
-
|
|
390
|
+
for (const fe of re.headingIdByElement.keys())
|
|
391
|
+
ue.observe(fe);
|
|
425
392
|
return () => {
|
|
426
|
-
|
|
393
|
+
ue.disconnect();
|
|
427
394
|
};
|
|
428
|
-
},
|
|
395
|
+
}, I = [c, n, s], e[4] = c, e[5] = n, e[6] = s, e[7] = y, e[8] = I) : (y = e[7], I = e[8]), He(y, I), a.length === 0)
|
|
429
396
|
return null;
|
|
430
|
-
let
|
|
431
|
-
e[9] !== d ? (
|
|
432
|
-
const
|
|
433
|
-
let
|
|
434
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
435
|
-
const
|
|
436
|
-
|
|
397
|
+
let k;
|
|
398
|
+
e[9] !== d ? (k = (U) => U.id === d, e[9] = d, e[10] = k) : k = e[10];
|
|
399
|
+
const P = a.find(k);
|
|
400
|
+
let D;
|
|
401
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = (U) => {
|
|
402
|
+
const ie = h.current.elementsByHeadingId.get(U);
|
|
403
|
+
u(U), f(!1), ie?.scrollIntoView({
|
|
437
404
|
behavior: "smooth",
|
|
438
405
|
block: "start"
|
|
439
406
|
});
|
|
440
|
-
}, e[11] =
|
|
441
|
-
const
|
|
442
|
-
let
|
|
443
|
-
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
444
|
-
let
|
|
445
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
446
|
-
let
|
|
447
|
-
e[14] !==
|
|
448
|
-
const
|
|
449
|
-
/* @__PURE__ */ i(
|
|
450
|
-
/* @__PURE__ */ i(
|
|
407
|
+
}, e[11] = D) : D = e[11];
|
|
408
|
+
const T = D;
|
|
409
|
+
let _;
|
|
410
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (U) => f(U.open), e[12] = _) : _ = e[12];
|
|
411
|
+
let S;
|
|
412
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ i(oe, { as: qe, color: "fg.subtle" }), e[13] = S) : S = e[13];
|
|
413
|
+
let C;
|
|
414
|
+
e[14] !== o ? (C = /* @__PURE__ */ i($, { textStyle: "sm", fontWeight: "medium", color: "fg", children: o }), e[14] = o, e[15] = C) : C = e[15];
|
|
415
|
+
const w = g ? null : /* @__PURE__ */ b(Ze, { children: [
|
|
416
|
+
/* @__PURE__ */ i(oe, { as: Ce, color: "fg.subtle" }),
|
|
417
|
+
/* @__PURE__ */ i($, { textStyle: "sm", color: "fg.muted", children: P?.text })
|
|
451
418
|
] });
|
|
419
|
+
let v;
|
|
420
|
+
e[16] !== C || e[17] !== w ? (v = /* @__PURE__ */ b(X, { children: [
|
|
421
|
+
S,
|
|
422
|
+
C,
|
|
423
|
+
w
|
|
424
|
+
] }), e[16] = C, e[17] = w, e[18] = v) : v = e[18];
|
|
425
|
+
const E = g ? "rotate(180deg)" : "rotate(0deg)";
|
|
452
426
|
let L;
|
|
453
|
-
e[
|
|
454
|
-
|
|
455
|
-
|
|
427
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ i(oe, { as: et, color: "fg.subtle" }), e[19] = L) : L = e[19];
|
|
428
|
+
let z;
|
|
429
|
+
e[20] !== E ? (z = /* @__PURE__ */ i(V, { transition: "transform 0.2s", transform: E, children: L }), e[20] = E, e[21] = z) : z = e[21];
|
|
430
|
+
let O;
|
|
431
|
+
e[22] !== v || e[23] !== z ? (O = /* @__PURE__ */ b(_e.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
432
|
+
v,
|
|
456
433
|
z
|
|
457
|
-
] }), e[
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
let
|
|
462
|
-
e[
|
|
463
|
-
let M;
|
|
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)";
|
|
471
|
-
let X;
|
|
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];
|
|
473
|
-
let U;
|
|
474
|
-
e[28] !== r ? (U = /* @__PURE__ */ b(F, { mb: "4", children: [
|
|
475
|
-
X,
|
|
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";
|
|
479
|
-
let 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];
|
|
481
|
-
const ee = a.map(K);
|
|
482
|
-
let V;
|
|
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];
|
|
434
|
+
] }), e[22] = v, e[23] = z, e[24] = O) : O = e[24];
|
|
435
|
+
let W;
|
|
436
|
+
e[25] !== d ? (W = (U) => /* @__PURE__ */ i(lt, { heading: U, variant: "minimal", emphasized: !1, isActive: d === U.id, onSelect: T }, U.id), e[25] = d, e[26] = W) : W = e[26];
|
|
437
|
+
const H = ye, B = "md", N = "6", M = "xs", R = "sticky", F = "calc(100vh - 3rem)";
|
|
438
|
+
let Y;
|
|
439
|
+
e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ i(oe, { as: qe, color: "fg.subtle" }), e[27] = Y) : Y = e[27];
|
|
484
440
|
let q;
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
] }), e[
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
441
|
+
e[28] !== o ? (q = /* @__PURE__ */ b(X, { mb: "4", children: [
|
|
442
|
+
Y,
|
|
443
|
+
/* @__PURE__ */ i($, { fontWeight: "medium", textStyle: "sm", children: o })
|
|
444
|
+
] }), e[28] = o, e[29] = q) : q = e[29];
|
|
445
|
+
const J = G, K = "0";
|
|
446
|
+
let Q;
|
|
447
|
+
e[30] !== d ? (Q = (U) => /* @__PURE__ */ i(lt, { heading: U, variant: "line", emphasized: U.level === 1, isActive: d === U.id, onSelect: T }, U.id), e[30] = d, e[31] = Q) : Q = e[31];
|
|
448
|
+
const te = a.map(Q);
|
|
449
|
+
let ee;
|
|
450
|
+
e[32] !== J || e[33] !== te ? (ee = /* @__PURE__ */ i(J, { gap: K, children: te }), e[32] = J, e[33] = te, e[34] = ee) : ee = e[34];
|
|
451
|
+
let Z;
|
|
452
|
+
return e[35] !== H || e[36] !== q || e[37] !== ee ? (Z = /* @__PURE__ */ b(H, { hideBelow: B, top: N, width: M, position: R, maxH: F, children: [
|
|
453
|
+
q,
|
|
454
|
+
ee
|
|
455
|
+
] }), e[35] = H, e[36] = q, e[37] = ee, e[38] = Z) : Z = e[38], /* @__PURE__ */ b(G, { gap: "0", width: "full", children: [
|
|
456
|
+
/* @__PURE__ */ i(V, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(_e.Root, { open: g, onOpenChange: _, children: [
|
|
457
|
+
O,
|
|
458
|
+
/* @__PURE__ */ i(_e.Content, { children: /* @__PURE__ */ i(ye, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(G, { gap: "0", children: a.map(W) }) }) })
|
|
492
459
|
] }) }),
|
|
493
|
-
|
|
460
|
+
Z
|
|
494
461
|
] });
|
|
495
462
|
};
|
|
496
|
-
function
|
|
497
|
-
return
|
|
463
|
+
function On(l) {
|
|
464
|
+
return l.isIntersecting;
|
|
498
465
|
}
|
|
499
|
-
function
|
|
500
|
-
return
|
|
466
|
+
function Gn(l, e) {
|
|
467
|
+
return l.boundingClientRect.top - e.boundingClientRect.top;
|
|
501
468
|
}
|
|
502
|
-
const
|
|
503
|
-
const e =
|
|
504
|
-
item:
|
|
469
|
+
const it = (l) => {
|
|
470
|
+
const e = A(24), {
|
|
471
|
+
item: n,
|
|
505
472
|
direction: t
|
|
506
|
-
} =
|
|
473
|
+
} = l, r = t === "prev", o = r ? "Previous" : "Next", s = r ? "start" : "end", a = r ? "flex-start" : "flex-end";
|
|
507
474
|
let c;
|
|
508
|
-
e[0] !==
|
|
509
|
-
const d =
|
|
510
|
-
let
|
|
511
|
-
e[2] !==
|
|
475
|
+
e[0] !== r ? (c = r ? /* @__PURE__ */ i(Qt, { size: 16 }) : null, e[0] = r, e[1] = c) : c = e[1];
|
|
476
|
+
const d = r ? "flex-start" : "flex-end";
|
|
477
|
+
let u;
|
|
478
|
+
e[2] !== o ? (u = /* @__PURE__ */ i($, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: o }), e[2] = o, e[3] = u) : u = e[3];
|
|
512
479
|
let g;
|
|
513
|
-
e[4] !==
|
|
480
|
+
e[4] !== n.title ? (g = /* @__PURE__ */ i($, { textStyle: "sm", fontWeight: "medium", children: n.title }), e[4] = n.title, e[5] = g) : g = e[5];
|
|
514
481
|
let f;
|
|
515
|
-
e[6] !==
|
|
516
|
-
let
|
|
517
|
-
e[8] !== d || e[9] !==
|
|
518
|
-
|
|
482
|
+
e[6] !== n.description ? (f = n.description ? /* @__PURE__ */ i($, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: n.description }) : null, e[6] = n.description, e[7] = f) : f = e[7];
|
|
483
|
+
let p;
|
|
484
|
+
e[8] !== d || e[9] !== u || e[10] !== g || e[11] !== f ? (p = /* @__PURE__ */ b(G, { gap: "0", alignItems: d, children: [
|
|
485
|
+
u,
|
|
519
486
|
g,
|
|
520
487
|
f
|
|
521
|
-
] }), e[8] = d, e[9] =
|
|
522
|
-
let
|
|
523
|
-
e[13] !==
|
|
488
|
+
] }), e[8] = d, e[9] = u, e[10] = g, e[11] = f, e[12] = p) : p = e[12];
|
|
489
|
+
let h;
|
|
490
|
+
e[13] !== r ? (h = r ? null : /* @__PURE__ */ i(Ce, { size: 16 }), e[13] = r, e[14] = h) : h = e[14];
|
|
524
491
|
let m;
|
|
525
|
-
e[15] !==
|
|
492
|
+
e[15] !== n.href || e[16] !== c || e[17] !== p || e[18] !== h ? (m = /* @__PURE__ */ b("a", { href: n.href, children: [
|
|
526
493
|
c,
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
] }), e[15] =
|
|
494
|
+
p,
|
|
495
|
+
h
|
|
496
|
+
] }), e[15] = n.href, e[16] = c, e[17] = p, e[18] = h, e[19] = m) : m = e[19];
|
|
530
497
|
let x;
|
|
531
|
-
return e[20] !== s || e[21] !== a || e[22] !== m ? (x = /* @__PURE__ */ i(
|
|
532
|
-
},
|
|
533
|
-
const e =
|
|
534
|
-
previous:
|
|
498
|
+
return e[20] !== s || e[21] !== a || e[22] !== m ? (x = /* @__PURE__ */ i(de, { 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;
|
|
499
|
+
}, Gi = (l) => {
|
|
500
|
+
const e = A(11), {
|
|
501
|
+
previous: n,
|
|
535
502
|
next: t
|
|
536
|
-
} =
|
|
537
|
-
if (!
|
|
503
|
+
} = l;
|
|
504
|
+
if (!n && !t)
|
|
538
505
|
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];
|
|
541
506
|
let r;
|
|
542
|
-
e[
|
|
507
|
+
e[0] !== n ? (r = n ? /* @__PURE__ */ i(it, { item: n, direction: "prev" }) : null, e[0] = n, e[1] = r) : r = e[1];
|
|
508
|
+
let o;
|
|
509
|
+
e[2] !== r ? (o = /* @__PURE__ */ i(V, { flex: "1", children: r }), e[2] = r, e[3] = o) : o = e[3];
|
|
543
510
|
let s;
|
|
544
|
-
e[4] !== t ? (s = t ? /* @__PURE__ */ i(
|
|
511
|
+
e[4] !== t ? (s = t ? /* @__PURE__ */ i(it, { item: t, direction: "next" }) : null, e[4] = t, e[5] = s) : s = e[5];
|
|
545
512
|
let a;
|
|
546
|
-
e[6] !== s ? (a = /* @__PURE__ */ i(
|
|
513
|
+
e[6] !== s ? (a = /* @__PURE__ */ i(V, { flex: "1", children: s }), e[6] = s, e[7] = a) : a = e[7];
|
|
547
514
|
let c;
|
|
548
|
-
return e[8] !==
|
|
549
|
-
|
|
515
|
+
return e[8] !== o || e[9] !== a ? (c = /* @__PURE__ */ b(X, { justify: "space-between", gap: "4", children: [
|
|
516
|
+
o,
|
|
550
517
|
a
|
|
551
|
-
] }), e[8] =
|
|
552
|
-
},
|
|
553
|
-
const e =
|
|
554
|
-
children:
|
|
518
|
+
] }), e[8] = o, e[9] = a, e[10] = c) : c = e[10], c;
|
|
519
|
+
}, Mn = (l) => {
|
|
520
|
+
const e = A(17), {
|
|
521
|
+
children: n,
|
|
555
522
|
title: t,
|
|
556
|
-
defaultOpen:
|
|
557
|
-
action:
|
|
558
|
-
} =
|
|
523
|
+
defaultOpen: r,
|
|
524
|
+
action: o
|
|
525
|
+
} = l, s = r === void 0 ? !0 : r;
|
|
559
526
|
let a;
|
|
560
527
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
561
528
|
background: "bg.muted"
|
|
562
529
|
}, e[0] = a) : a = e[0];
|
|
563
530
|
let c;
|
|
564
|
-
e[1] !== t ? (c = t && /* @__PURE__ */ i(
|
|
531
|
+
e[1] !== t ? (c = t && /* @__PURE__ */ i($, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
|
|
565
532
|
let d;
|
|
566
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(
|
|
533
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(_e.Indicator, { transition: "transform 0.2s", _open: {
|
|
567
534
|
transform: "rotate(90deg)"
|
|
568
|
-
}, children: /* @__PURE__ */ i(
|
|
569
|
-
let
|
|
570
|
-
e[4] !== c ? (
|
|
535
|
+
}, children: /* @__PURE__ */ i(Ce, { size: 16 }) }), e[3] = d) : d = e[3];
|
|
536
|
+
let u;
|
|
537
|
+
e[4] !== c ? (u = /* @__PURE__ */ b(_e.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
|
|
571
538
|
c,
|
|
572
539
|
d
|
|
573
|
-
] }), e[4] = c, e[5] =
|
|
540
|
+
] }), e[4] = c, e[5] = u) : u = e[5];
|
|
574
541
|
let g;
|
|
575
|
-
e[6] !==
|
|
542
|
+
e[6] !== o ? (g = o && /* @__PURE__ */ i(V, { marginLeft: "auto", onClick: Nn, children: o }), e[6] = o, e[7] = g) : g = e[7];
|
|
576
543
|
let f;
|
|
577
|
-
e[8] !==
|
|
578
|
-
|
|
544
|
+
e[8] !== u || e[9] !== g ? (f = /* @__PURE__ */ b(we, { children: [
|
|
545
|
+
u,
|
|
579
546
|
g
|
|
580
|
-
] }), e[8] =
|
|
581
|
-
let u;
|
|
582
|
-
e[11] !== l ? (u = /* @__PURE__ */ i(xe.Content, { children: l }), e[11] = l, e[12] = u) : u = e[12];
|
|
547
|
+
] }), e[8] = u, e[9] = g, e[10] = f) : f = e[10];
|
|
583
548
|
let p;
|
|
584
|
-
|
|
549
|
+
e[11] !== n ? (p = /* @__PURE__ */ i(_e.Content, { children: n }), e[11] = n, e[12] = p) : p = e[12];
|
|
550
|
+
let h;
|
|
551
|
+
return e[13] !== s || e[14] !== f || e[15] !== p ? (h = /* @__PURE__ */ b(_e.Root, { defaultOpen: s, width: "full", children: [
|
|
585
552
|
f,
|
|
586
|
-
|
|
587
|
-
] }), e[13] = s, e[14] = f, e[15] =
|
|
553
|
+
p
|
|
554
|
+
] }), e[13] = s, e[14] = f, e[15] = p, e[16] = h) : h = e[16], h;
|
|
588
555
|
};
|
|
589
|
-
function
|
|
590
|
-
return
|
|
556
|
+
function Nn(l) {
|
|
557
|
+
return l.stopPropagation();
|
|
591
558
|
}
|
|
592
|
-
const
|
|
559
|
+
const It = {
|
|
593
560
|
default: {
|
|
594
561
|
paddingX: "sm",
|
|
595
562
|
paddingY: "xs",
|
|
@@ -608,95 +575,188 @@ const hl = {
|
|
|
608
575
|
secondaryMarginLeft: "0",
|
|
609
576
|
secondaryTextStyle: "label/XS/regular"
|
|
610
577
|
}
|
|
611
|
-
},
|
|
612
|
-
const e =
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
tooltipLabel: o,
|
|
578
|
+
}, rt = (l) => {
|
|
579
|
+
const e = A(49), {
|
|
580
|
+
primaryLabel: n,
|
|
581
|
+
tooltipLabel: t,
|
|
616
582
|
secondaryLabel: r,
|
|
617
|
-
leftIcon:
|
|
618
|
-
leftSlot:
|
|
619
|
-
rightIcon:
|
|
620
|
-
leftIconColor:
|
|
621
|
-
rightIconColor:
|
|
622
|
-
leftIconSize:
|
|
623
|
-
rightIconSize:
|
|
624
|
-
rightIconAriaLabel:
|
|
583
|
+
leftIcon: o,
|
|
584
|
+
leftSlot: s,
|
|
585
|
+
rightIcon: a,
|
|
586
|
+
leftIconColor: c,
|
|
587
|
+
rightIconColor: d,
|
|
588
|
+
leftIconSize: u,
|
|
589
|
+
rightIconSize: g,
|
|
590
|
+
rightIconAriaLabel: f,
|
|
625
591
|
rightTooltipLabel: p,
|
|
626
|
-
onRightIconClick:
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
592
|
+
onRightIconClick: h,
|
|
593
|
+
tagLabel: m,
|
|
594
|
+
tagColorPalette: x,
|
|
595
|
+
tagVariant: y,
|
|
596
|
+
variant: I
|
|
597
|
+
} = l, k = It[I], P = !!(h && a);
|
|
598
|
+
let D;
|
|
599
|
+
e[0] !== P ? (D = (F) => {
|
|
600
|
+
P && (F.preventDefault(), F.stopPropagation());
|
|
601
|
+
}, e[0] = P, e[1] = D) : D = e[1];
|
|
602
|
+
const T = D;
|
|
603
|
+
let _;
|
|
604
|
+
e[2] !== P || e[3] !== h ? (_ = (F) => {
|
|
605
|
+
!P || !h || (F.preventDefault(), F.stopPropagation(), h());
|
|
606
|
+
}, e[2] = P, e[3] = h, e[4] = _) : _ = e[4];
|
|
607
|
+
const S = _;
|
|
608
|
+
let C;
|
|
609
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
610
|
+
placement: "right"
|
|
611
|
+
}, e[5] = C) : C = e[5];
|
|
612
|
+
const w = !t;
|
|
613
|
+
let v;
|
|
614
|
+
e[6] !== o || e[7] !== c || e[8] !== u || e[9] !== s ? (v = s || (o ? /* @__PURE__ */ i(oe, { as: o, boxSize: u, color: c }) : null), e[6] = o, e[7] = c, e[8] = u, e[9] = s, e[10] = v) : v = e[10];
|
|
615
|
+
let E;
|
|
616
|
+
e[11] !== n || e[12] !== k.primaryTextStyle ? (E = /* @__PURE__ */ i($, { lineClamp: 1, textOverflow: "ellipsis", textStyle: k.primaryTextStyle, children: n }), e[11] = n, e[12] = k.primaryTextStyle, e[13] = E) : E = e[13];
|
|
617
|
+
let L;
|
|
618
|
+
e[14] !== v || e[15] !== E ? (L = /* @__PURE__ */ b(we, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
|
|
619
|
+
v,
|
|
620
|
+
E
|
|
621
|
+
] }), e[14] = v, e[15] = E, e[16] = L) : L = e[16];
|
|
622
|
+
let z;
|
|
623
|
+
e[17] !== r || e[18] !== k.secondaryMarginLeft || e[19] !== k.secondaryTextStyle ? (z = r && /* @__PURE__ */ i($, { ml: k.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: k.secondaryTextStyle, color: "fg.menu-item.secondary", children: r }), e[17] = r, e[18] = k.secondaryMarginLeft, e[19] = k.secondaryTextStyle, e[20] = z) : z = e[20];
|
|
624
|
+
let O;
|
|
625
|
+
e[21] !== L || e[22] !== z ? (O = /* @__PURE__ */ b(G, { gap: "2xs", children: [
|
|
626
|
+
L,
|
|
627
|
+
z
|
|
628
|
+
] }), e[21] = L, e[22] = z, e[23] = O) : O = e[23];
|
|
629
|
+
let W;
|
|
630
|
+
e[24] !== w || e[25] !== O || e[26] !== t ? (W = /* @__PURE__ */ i(Ee, { positioning: C, content: t, disabled: w, children: O }), e[24] = w, e[25] = O, e[26] = t, e[27] = W) : W = e[27];
|
|
631
|
+
let H;
|
|
632
|
+
e[28] !== S || e[29] !== T || e[30] !== P || e[31] !== a || e[32] !== f || e[33] !== d || e[34] !== g || e[35] !== p ? (H = a ? /* @__PURE__ */ i(Ee, { positioning: {
|
|
633
|
+
placement: "right"
|
|
634
|
+
}, content: p, disabled: !p, children: /* @__PURE__ */ i(we, { as: P ? "button" : "div", alignItems: "center", "aria-label": f, cursor: P ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: T, onClick: S, children: /* @__PURE__ */ i(oe, { as: a, boxSize: g, color: d }) }) }) : null, e[28] = S, e[29] = T, e[30] = P, e[31] = a, e[32] = f, e[33] = d, e[34] = g, e[35] = p, e[36] = H) : H = e[36];
|
|
635
|
+
let B;
|
|
636
|
+
e[37] !== H ? (B = /* @__PURE__ */ i(we, { justifyContent: "flex-end", color: "fg.menu-item.default", children: H }), e[37] = H, e[38] = B) : B = e[38];
|
|
637
|
+
let N;
|
|
638
|
+
e[39] !== B || e[40] !== W ? (N = /* @__PURE__ */ b(we, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
|
|
639
|
+
W,
|
|
640
|
+
B
|
|
641
|
+
] }), e[39] = B, e[40] = W, e[41] = N) : N = e[41];
|
|
642
|
+
let M;
|
|
643
|
+
e[42] !== x || e[43] !== m || e[44] !== y ? (M = m ? /* @__PURE__ */ i(Te, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: x, variant: y, pointerEvents: "none", children: m }) : null, e[42] = x, e[43] = m, e[44] = y, e[45] = M) : M = e[45];
|
|
644
|
+
let R;
|
|
645
|
+
return e[46] !== N || e[47] !== M ? (R = /* @__PURE__ */ b(Ze, { children: [
|
|
646
|
+
N,
|
|
647
|
+
M
|
|
648
|
+
] }), e[46] = N, e[47] = M, e[48] = R) : R = e[48], R;
|
|
649
|
+
}, We = (l) => {
|
|
650
|
+
const e = A(49), {
|
|
651
|
+
id: n,
|
|
652
|
+
children: t,
|
|
653
|
+
asChild: r,
|
|
654
|
+
primaryLabel: o,
|
|
655
|
+
tooltipLabel: s,
|
|
656
|
+
secondaryLabel: a,
|
|
657
|
+
leftIcon: c,
|
|
658
|
+
leftSlot: d,
|
|
659
|
+
rightIcon: u,
|
|
660
|
+
leftIconColor: g,
|
|
661
|
+
rightIconColor: f,
|
|
662
|
+
leftIconSize: p,
|
|
663
|
+
rightIconSize: h,
|
|
664
|
+
rightIconAriaLabel: m,
|
|
665
|
+
rightTooltipLabel: x,
|
|
666
|
+
onRightIconClick: y,
|
|
667
|
+
isDisabled: I,
|
|
668
|
+
isSelected: k,
|
|
669
|
+
tagLabel: P,
|
|
670
|
+
tagColorPalette: D,
|
|
671
|
+
tagVariant: T,
|
|
672
|
+
variant: _,
|
|
673
|
+
tabIndex: S,
|
|
674
|
+
width: C,
|
|
675
|
+
maxWidth: w,
|
|
676
|
+
setRefElement: v
|
|
677
|
+
} = l, E = c === void 0 ? null : c, L = g === void 0 ? "fg.menu-item.default" : g, z = f === void 0 ? "fg.menu-item.default" : f, O = D === void 0 ? "yellow" : D, W = T === void 0 ? "subtle" : T, H = _ === void 0 ? "default" : _, {
|
|
638
678
|
onClick: B,
|
|
639
|
-
onMouseDown:
|
|
640
|
-
onMouseEnter:
|
|
641
|
-
} =
|
|
642
|
-
let
|
|
643
|
-
e[0] !==
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
679
|
+
onMouseDown: N,
|
|
680
|
+
onMouseEnter: M
|
|
681
|
+
} = l, R = It[H], F = k ? "bg.menu-item.selected" : "bg.menu-item.default", Y = p ?? R.iconSize, q = h ?? R.iconSize;
|
|
682
|
+
let J;
|
|
683
|
+
e[0] !== E || e[1] !== L || e[2] !== d || e[3] !== y || e[4] !== o || e[5] !== Y || e[6] !== q || e[7] !== u || e[8] !== m || e[9] !== z || e[10] !== x || e[11] !== a || e[12] !== O || e[13] !== P || e[14] !== W || e[15] !== s || e[16] !== H ? (J = {
|
|
684
|
+
primaryLabel: o,
|
|
685
|
+
secondaryLabel: a,
|
|
686
|
+
tooltipLabel: s,
|
|
687
|
+
leftIcon: E,
|
|
688
|
+
leftSlot: d,
|
|
689
|
+
rightIcon: u,
|
|
690
|
+
leftIconColor: L,
|
|
691
|
+
rightIconColor: z,
|
|
692
|
+
leftIconSize: Y,
|
|
693
|
+
rightIconSize: q,
|
|
694
|
+
rightIconAriaLabel: m,
|
|
695
|
+
rightTooltipLabel: x,
|
|
696
|
+
onRightIconClick: y,
|
|
697
|
+
tagLabel: P,
|
|
698
|
+
tagColorPalette: O,
|
|
699
|
+
tagVariant: W,
|
|
700
|
+
variant: H
|
|
701
|
+
}, e[0] = E, e[1] = L, e[2] = d, e[3] = y, e[4] = o, e[5] = Y, e[6] = q, e[7] = u, e[8] = m, e[9] = z, e[10] = x, e[11] = a, e[12] = O, e[13] = P, e[14] = W, e[15] = s, e[16] = H, e[17] = J) : J = e[17];
|
|
702
|
+
const K = J, Q = w ?? "20rem", te = I ? "default" : "pointer", ee = n ?? o;
|
|
703
|
+
let Z, U;
|
|
704
|
+
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = {
|
|
654
705
|
bg: "bg.menu-item.hover"
|
|
655
|
-
},
|
|
706
|
+
}, U = {
|
|
656
707
|
bg: "bg.menu-item.focus"
|
|
657
|
-
}, e[
|
|
658
|
-
let
|
|
659
|
-
e[
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
708
|
+
}, e[18] = Z, e[19] = U) : (Z = e[18], U = e[19]);
|
|
709
|
+
let ie;
|
|
710
|
+
e[20] !== F || e[21] !== n || e[22] !== I || e[23] !== k || e[24] !== v || e[25] !== Q || e[26] !== te || e[27] !== ee || e[28] !== S || e[29] !== R.minHeight || e[30] !== R.paddingX || e[31] !== R.paddingY || e[32] !== C ? (ie = {
|
|
711
|
+
id: n,
|
|
712
|
+
ref: v,
|
|
713
|
+
tabIndex: S,
|
|
714
|
+
disabled: I,
|
|
715
|
+
"aria-selected": k,
|
|
716
|
+
paddingX: R.paddingX,
|
|
717
|
+
paddingY: R.paddingY,
|
|
718
|
+
height: "auto",
|
|
719
|
+
minHeight: R.minHeight,
|
|
720
|
+
role: "option",
|
|
721
|
+
width: C,
|
|
722
|
+
maxWidth: Q,
|
|
723
|
+
overflow: "hidden",
|
|
724
|
+
position: "relative",
|
|
725
|
+
cursor: te,
|
|
726
|
+
value: ee,
|
|
727
|
+
bg: F,
|
|
728
|
+
_hover: Z,
|
|
729
|
+
_focus: U
|
|
730
|
+
}, e[20] = F, e[21] = n, e[22] = I, e[23] = k, e[24] = v, e[25] = Q, e[26] = te, e[27] = ee, e[28] = S, e[29] = R.minHeight, e[30] = R.paddingX, e[31] = R.paddingY, e[32] = C, e[33] = ie) : ie = e[33];
|
|
731
|
+
const ce = ie;
|
|
732
|
+
if (r && t) {
|
|
733
|
+
let fe, ae;
|
|
734
|
+
if (e[34] !== t || e[35] !== ce || e[36] !== K) {
|
|
735
|
+
ae = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
736
|
+
e: {
|
|
737
|
+
const be = Vt.only(t);
|
|
738
|
+
if (!jt(be)) {
|
|
739
|
+
ae = null;
|
|
740
|
+
break e;
|
|
741
|
+
}
|
|
742
|
+
let ge;
|
|
743
|
+
e[39] !== K ? (ge = /* @__PURE__ */ i(rt, { ...K }), e[39] = K, e[40] = ge) : ge = e[40], fe = /* @__PURE__ */ i(tt, { asChild: !0, ...ce, children: Xt(be, {
|
|
744
|
+
style: {
|
|
745
|
+
textDecoration: "none",
|
|
746
|
+
color: "inherit"
|
|
747
|
+
}
|
|
748
|
+
}, ge) });
|
|
749
|
+
}
|
|
750
|
+
e[34] = t, e[35] = ce, e[36] = K, e[37] = fe, e[38] = ae;
|
|
751
|
+
} else
|
|
752
|
+
fe = e[37], ae = e[38];
|
|
753
|
+
return ae !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ae : fe;
|
|
754
|
+
}
|
|
755
|
+
let re;
|
|
756
|
+
e[41] !== K ? (re = /* @__PURE__ */ i(rt, { ...K }), e[41] = K, e[42] = re) : re = e[42];
|
|
757
|
+
let ue;
|
|
758
|
+
return e[43] !== ce || e[44] !== B || e[45] !== N || e[46] !== M || e[47] !== re ? (ue = /* @__PURE__ */ i(tt, { ...ce, onClick: B, onMouseDown: N, onMouseEnter: M, children: re }), e[43] = ce, e[44] = B, e[45] = N, e[46] = M, e[47] = re, e[48] = ue) : ue = e[48], ue;
|
|
759
|
+
}, Hn = {
|
|
700
760
|
default: {
|
|
701
761
|
width: "64",
|
|
702
762
|
headerHeight: "49px",
|
|
@@ -714,72 +774,72 @@ const hl = {
|
|
|
714
774
|
contentGap: "2xs"
|
|
715
775
|
}
|
|
716
776
|
};
|
|
717
|
-
function
|
|
718
|
-
const e =
|
|
719
|
-
title:
|
|
777
|
+
function Wn(l) {
|
|
778
|
+
const e = A(13), {
|
|
779
|
+
title: n,
|
|
720
780
|
children: t,
|
|
721
|
-
variant:
|
|
722
|
-
} =
|
|
781
|
+
variant: r
|
|
782
|
+
} = l, s = Hn[r === void 0 ? "default" : r];
|
|
723
783
|
let a;
|
|
724
|
-
e[0] !== s.headerHeight || e[1] !== s.headerPadding || e[2] !== s.headerTextStyle || e[3] !==
|
|
784
|
+
e[0] !== s.headerHeight || e[1] !== s.headerPadding || e[2] !== s.headerTextStyle || e[3] !== n ? (a = n && /* @__PURE__ */ i(we, { height: s.headerHeight, p: s.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i($, { pb: "0", textStyle: s.headerTextStyle, color: "fg.muted", children: n }) }), e[0] = s.headerHeight, e[1] = s.headerPadding, e[2] = s.headerTextStyle, e[3] = n, e[4] = a) : a = e[4];
|
|
725
785
|
let c;
|
|
726
|
-
e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(
|
|
786
|
+
e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
|
|
727
787
|
p: s.contentPadding,
|
|
728
788
|
spaceY: s.contentGap
|
|
729
789
|
}, children: t }), e[5] = t, e[6] = s.contentGap, e[7] = s.contentPadding, e[8] = c) : c = e[8];
|
|
730
790
|
let d;
|
|
731
|
-
return e[9] !== s.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(
|
|
791
|
+
return e[9] !== s.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(G, { borderRightWidth: "1px", width: s.width, gap: "0", minH: "0", children: [
|
|
732
792
|
a,
|
|
733
793
|
c
|
|
734
794
|
] }), e[9] = s.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
|
|
735
795
|
}
|
|
736
|
-
const
|
|
737
|
-
const e =
|
|
738
|
-
item:
|
|
796
|
+
const kt = (l) => {
|
|
797
|
+
const e = A(27), {
|
|
798
|
+
item: n,
|
|
739
799
|
activeLink: t,
|
|
740
|
-
onSelectLink:
|
|
741
|
-
shouldStartOpen:
|
|
742
|
-
} =
|
|
800
|
+
onSelectLink: r,
|
|
801
|
+
shouldStartOpen: o
|
|
802
|
+
} = l;
|
|
743
803
|
let s;
|
|
744
|
-
e[0] !==
|
|
804
|
+
e[0] !== n.items ? (s = n.items ?? [], e[0] = n.items, e[1] = s) : s = e[1];
|
|
745
805
|
const a = s, c = a.length > 0;
|
|
746
|
-
if (!c &&
|
|
747
|
-
const
|
|
806
|
+
if (!c && n.link) {
|
|
807
|
+
const h = n.link, m = n.link === t;
|
|
748
808
|
let x;
|
|
749
|
-
e[2] !==
|
|
750
|
-
let
|
|
751
|
-
return e[5] !== m || e[6] !==
|
|
809
|
+
e[2] !== h || e[3] !== r ? (x = () => r(h), e[2] = h, e[3] = r, e[4] = x) : x = e[4];
|
|
810
|
+
let y;
|
|
811
|
+
return e[5] !== m || e[6] !== n.text || e[7] !== x ? (y = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: n.text, isSelected: m, variant: "compact", onClick: x }) }), e[5] = m, e[6] = n.text, e[7] = x, e[8] = y) : y = e[8], y;
|
|
752
812
|
}
|
|
753
813
|
if (!c) {
|
|
754
|
-
let
|
|
755
|
-
return e[9] !==
|
|
814
|
+
let h;
|
|
815
|
+
return e[9] !== n.text ? (h = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: n.text, isDisabled: !0, variant: "compact" }) }), e[9] = n.text, e[10] = h) : h = e[10], h;
|
|
756
816
|
}
|
|
757
817
|
let d;
|
|
758
|
-
e[11] !==
|
|
759
|
-
const
|
|
818
|
+
e[11] !== n || e[12] !== o ? (d = o?.(n) ?? !1, e[11] = n, e[12] = o, e[13] = d) : d = e[13];
|
|
819
|
+
const u = d, g = n.text;
|
|
760
820
|
let f;
|
|
761
|
-
if (e[14] !== t || e[15] !== a || e[16] !==
|
|
762
|
-
let
|
|
763
|
-
e[19] !== t || e[20] !==
|
|
821
|
+
if (e[14] !== t || e[15] !== a || e[16] !== r || e[17] !== o) {
|
|
822
|
+
let h;
|
|
823
|
+
e[19] !== t || e[20] !== r || e[21] !== o ? (h = (m, x) => /* @__PURE__ */ i(kt, { item: m, activeLink: t, onSelectLink: r, shouldStartOpen: o }, `${m.text}-${m.link ?? x}`), e[19] = t, e[20] = r, e[21] = o, e[22] = h) : h = e[22], f = a.map(h), e[14] = t, e[15] = a, e[16] = r, e[17] = o, e[18] = f;
|
|
764
824
|
} else
|
|
765
825
|
f = e[18];
|
|
766
|
-
let
|
|
767
|
-
return e[23] !==
|
|
768
|
-
},
|
|
769
|
-
const e =
|
|
770
|
-
title:
|
|
826
|
+
let p;
|
|
827
|
+
return e[23] !== u || e[24] !== n.text || e[25] !== f ? (p = /* @__PURE__ */ i(Mn, { title: g, defaultOpen: u, children: f }), e[23] = u, e[24] = n.text, e[25] = f, e[26] = p) : p = e[26], p;
|
|
828
|
+
}, Mi = (l) => {
|
|
829
|
+
const e = A(9), {
|
|
830
|
+
title: n,
|
|
771
831
|
emptyMessage: t,
|
|
772
|
-
menuItems:
|
|
773
|
-
activeLink:
|
|
832
|
+
menuItems: r,
|
|
833
|
+
activeLink: o,
|
|
774
834
|
onSelectLink: s,
|
|
775
835
|
shouldStartOpen: a
|
|
776
|
-
} =
|
|
836
|
+
} = l;
|
|
777
837
|
let c;
|
|
778
|
-
e[0] !==
|
|
838
|
+
e[0] !== o || e[1] !== t || e[2] !== r || e[3] !== s || e[4] !== a ? (c = r.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : r.map((u, g) => /* @__PURE__ */ i(kt, { item: u, activeLink: o, onSelectLink: s, shouldStartOpen: a }, `${u.text}-${u.link ?? g}`)), e[0] = o, e[1] = t, e[2] = r, e[3] = s, e[4] = a, e[5] = c) : c = e[5];
|
|
779
839
|
let d;
|
|
780
|
-
return e[6] !== c || e[7] !==
|
|
840
|
+
return e[6] !== c || e[7] !== n ? (d = /* @__PURE__ */ i(Wn, { title: n, variant: "compact", children: c }), e[6] = c, e[7] = n, e[8] = d) : d = e[8], d;
|
|
781
841
|
};
|
|
782
|
-
class
|
|
842
|
+
class Ni extends Ut {
|
|
783
843
|
state = {
|
|
784
844
|
error: null
|
|
785
845
|
};
|
|
@@ -788,8 +848,8 @@ class Ln extends yt {
|
|
|
788
848
|
error: e
|
|
789
849
|
};
|
|
790
850
|
}
|
|
791
|
-
componentDidCatch(e,
|
|
792
|
-
console.error("Dashboard error boundary caught an error", e,
|
|
851
|
+
componentDidCatch(e, n) {
|
|
852
|
+
console.error("Dashboard error boundary caught an error", e, n);
|
|
793
853
|
}
|
|
794
854
|
handleReset = () => {
|
|
795
855
|
this.setState({
|
|
@@ -799,971 +859,1774 @@ class Ln extends yt {
|
|
|
799
859
|
render() {
|
|
800
860
|
const {
|
|
801
861
|
children: e,
|
|
802
|
-
fallback:
|
|
862
|
+
fallback: n,
|
|
803
863
|
label: t
|
|
804
864
|
} = this.props, {
|
|
805
|
-
error:
|
|
865
|
+
error: r
|
|
806
866
|
} = this.state;
|
|
807
|
-
return
|
|
867
|
+
return r ? n || /* @__PURE__ */ i(Fn, { error: r, label: t, onReset: this.handleReset }) : e;
|
|
808
868
|
}
|
|
809
869
|
}
|
|
810
|
-
const
|
|
811
|
-
const e =
|
|
812
|
-
error:
|
|
870
|
+
const Fn = (l) => {
|
|
871
|
+
const e = A(12), {
|
|
872
|
+
error: n,
|
|
813
873
|
label: t,
|
|
814
|
-
onReset:
|
|
815
|
-
} =
|
|
874
|
+
onReset: r
|
|
875
|
+
} = l, o = t ?? "Something went wrong";
|
|
816
876
|
let s;
|
|
817
|
-
e[0] !==
|
|
818
|
-
const a =
|
|
877
|
+
e[0] !== o ? (s = /* @__PURE__ */ i($, { textStyle: "paragraph/M/medium", children: o }), e[0] = o, e[1] = s) : s = e[1];
|
|
878
|
+
const a = n.message || "An unexpected error occurred while rendering this section.";
|
|
819
879
|
let c;
|
|
820
|
-
e[2] !== a ? (c = /* @__PURE__ */ i(
|
|
880
|
+
e[2] !== a ? (c = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
|
|
821
881
|
let d;
|
|
822
|
-
e[4] !==
|
|
823
|
-
let
|
|
824
|
-
e[6] !== c || e[7] !== d ? (
|
|
882
|
+
e[4] !== r ? (d = r ? /* @__PURE__ */ i(de, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
|
|
883
|
+
let u;
|
|
884
|
+
e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ b(G, { gap: "sm", children: [
|
|
825
885
|
c,
|
|
826
886
|
d
|
|
827
|
-
] }), e[6] = c, e[7] = d, e[8] =
|
|
887
|
+
] }), e[6] = c, e[7] = d, e[8] = u) : u = e[8];
|
|
828
888
|
let g;
|
|
829
|
-
return e[9] !== s || e[10] !==
|
|
830
|
-
},
|
|
831
|
-
const e =
|
|
832
|
-
entry:
|
|
889
|
+
return e[9] !== s || e[10] !== u ? (g = /* @__PURE__ */ i(wn, { height: "100%", width: "100%", children: /* @__PURE__ */ i(Nt, { children: /* @__PURE__ */ i(Cn, { status: "error", title: s, children: u }) }) }), e[9] = s, e[10] = u, e[11] = g) : g = e[11], g;
|
|
890
|
+
}, Bn = (l) => l.isDirectory ? l.isGitRepo ? Zt : en : qe, Vn = (l) => {
|
|
891
|
+
const e = A(18), {
|
|
892
|
+
entry: n,
|
|
833
893
|
selectedPath: t,
|
|
834
|
-
selectedPathSet:
|
|
835
|
-
onEntryClick:
|
|
836
|
-
} =
|
|
894
|
+
selectedPathSet: r,
|
|
895
|
+
onEntryClick: o
|
|
896
|
+
} = l;
|
|
837
897
|
let s;
|
|
838
|
-
e[0] !==
|
|
839
|
-
const a = s, c = !
|
|
898
|
+
e[0] !== n.isGitRepo || e[1] !== n.path || e[2] !== r ? (s = n.isGitRepo && r.has(n.path), e[0] = n.isGitRepo, e[1] = n.path, e[2] = r, e[3] = s) : s = e[3];
|
|
899
|
+
const a = s, c = !n.isDirectory || a;
|
|
840
900
|
let d;
|
|
841
|
-
e[4] !==
|
|
842
|
-
a ||
|
|
843
|
-
}, e[4] =
|
|
844
|
-
const
|
|
901
|
+
e[4] !== n || e[5] !== a || e[6] !== o ? (d = () => {
|
|
902
|
+
a || o(n);
|
|
903
|
+
}, e[4] = n, e[5] = a, e[6] = o, e[7] = d) : d = e[7];
|
|
904
|
+
const u = d, g = n.name;
|
|
845
905
|
let f;
|
|
846
|
-
e[8] !==
|
|
847
|
-
const
|
|
906
|
+
e[8] !== n ? (f = Bn(n), e[8] = n, e[9] = f) : f = e[9];
|
|
907
|
+
const p = n.isGitRepo ? "Git repo" : void 0, h = n.isGitRepo ? "green" : void 0, m = t === n.path;
|
|
848
908
|
let x;
|
|
849
|
-
return e[10] !==
|
|
850
|
-
},
|
|
851
|
-
const e =
|
|
852
|
-
open:
|
|
909
|
+
return e[10] !== n.name || e[11] !== u || e[12] !== c || e[13] !== f || e[14] !== p || e[15] !== h || e[16] !== m ? (x = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: g, leftIcon: f, tagLabel: p, tagColorPalette: h, isDisabled: c, isSelected: m, width: "100%", maxWidth: "100%", onClick: u }) }), e[10] = n.name, e[11] = u, e[12] = c, e[13] = f, e[14] = p, e[15] = h, e[16] = m, e[17] = x) : x = e[17], x;
|
|
910
|
+
}, Hi = (l) => {
|
|
911
|
+
const e = A(54), {
|
|
912
|
+
open: n,
|
|
853
913
|
title: t,
|
|
854
|
-
description:
|
|
855
|
-
currentPath:
|
|
914
|
+
description: r,
|
|
915
|
+
currentPath: o,
|
|
856
916
|
entries: s,
|
|
857
917
|
selectedPath: a,
|
|
858
918
|
selectedPaths: c,
|
|
859
919
|
isLoading: d,
|
|
860
|
-
error:
|
|
920
|
+
error: u,
|
|
861
921
|
isSelectDisabled: g,
|
|
862
922
|
onClose: f,
|
|
863
|
-
onSelect:
|
|
864
|
-
onSelectHomeDirectory:
|
|
923
|
+
onSelect: p,
|
|
924
|
+
onSelectHomeDirectory: h,
|
|
865
925
|
onSelectParentDirectory: m,
|
|
866
926
|
onEntryClick: x
|
|
867
|
-
} =
|
|
868
|
-
let
|
|
869
|
-
e[0] !== c ? (
|
|
870
|
-
const
|
|
871
|
-
let
|
|
872
|
-
e[2] !==
|
|
873
|
-
const
|
|
927
|
+
} = l, y = t === void 0 ? "Select folder" : t, I = o === void 0 ? "" : o, k = a === void 0 ? null : a;
|
|
928
|
+
let P;
|
|
929
|
+
e[0] !== c ? (P = c === void 0 ? [] : c, e[0] = c, e[1] = P) : P = e[1];
|
|
930
|
+
const D = P, T = d === void 0 ? !1 : d, _ = u === void 0 ? "" : u, S = g === void 0 ? !1 : g;
|
|
931
|
+
let C;
|
|
932
|
+
e[2] !== D ? (C = new Set(D), e[2] = D, e[3] = C) : C = e[3];
|
|
933
|
+
const w = C;
|
|
934
|
+
let v;
|
|
935
|
+
e[4] !== f ? (v = (ie) => !ie.open && f(), e[4] = f, e[5] = v) : v = e[5];
|
|
936
|
+
let E;
|
|
937
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ i(se.Backdrop, {}), e[6] = E) : E = e[6];
|
|
874
938
|
let L;
|
|
875
|
-
e[
|
|
939
|
+
e[7] !== y ? (L = /* @__PURE__ */ i($, { textStyle: "heading/M", children: y }), e[7] = y, e[8] = L) : L = e[8];
|
|
940
|
+
let z;
|
|
941
|
+
e[9] !== r ? (z = r ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = z) : z = e[10];
|
|
876
942
|
let O;
|
|
877
|
-
e[
|
|
878
|
-
|
|
879
|
-
|
|
943
|
+
e[11] !== L || e[12] !== z ? (O = /* @__PURE__ */ i(se.Header, { children: /* @__PURE__ */ b(G, { gap: "xs", children: [
|
|
944
|
+
L,
|
|
945
|
+
z
|
|
946
|
+
] }) }), e[11] = L, e[12] = z, e[13] = O) : O = e[13];
|
|
947
|
+
let W;
|
|
948
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(tn, { size: 16 }), e[14] = W) : W = e[14];
|
|
880
949
|
let H;
|
|
881
|
-
e[
|
|
950
|
+
e[15] !== h ? (H = /* @__PURE__ */ i(de, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: h, children: W }), e[15] = h, e[16] = H) : H = e[16];
|
|
951
|
+
const B = !I || I === "/";
|
|
952
|
+
let N;
|
|
953
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ i(nn, { size: 16 }), e[17] = N) : N = e[17];
|
|
882
954
|
let M;
|
|
883
|
-
e[
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
]
|
|
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];
|
|
891
|
-
const j = !y || y === "/";
|
|
892
|
-
let _;
|
|
893
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Rt, { size: 16 }), e[17] = _) : _ = e[17];
|
|
894
|
-
let G;
|
|
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];
|
|
896
|
-
const Q = y || "Home";
|
|
955
|
+
e[18] !== m || e[19] !== B ? (M = /* @__PURE__ */ i(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: m, disabled: B, children: N }), e[18] = m, e[19] = B, e[20] = M) : M = e[20];
|
|
956
|
+
const R = I || "Home";
|
|
957
|
+
let F;
|
|
958
|
+
e[21] !== R ? (F = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: R }), e[21] = R, e[22] = F) : F = e[22];
|
|
897
959
|
let Y;
|
|
898
|
-
e[
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
let U;
|
|
906
|
-
e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
|
|
960
|
+
e[23] !== H || e[24] !== M || e[25] !== F ? (Y = /* @__PURE__ */ b(G, { direction: "row", gap: "sm", align: "center", children: [
|
|
961
|
+
H,
|
|
962
|
+
M,
|
|
963
|
+
F
|
|
964
|
+
] }), e[23] = H, e[24] = M, e[25] = F, e[26] = Y) : Y = e[26];
|
|
965
|
+
let q;
|
|
966
|
+
e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = {
|
|
907
967
|
padding: "sm"
|
|
908
|
-
}, e[27] =
|
|
909
|
-
let
|
|
910
|
-
e[28] !== s || e[29] !==
|
|
911
|
-
let te;
|
|
912
|
-
e[35] !== X || e[36] !== Z ? (te = /* @__PURE__ */ i(J.Body, { children: /* @__PURE__ */ b(D, { gap: "md", children: [
|
|
913
|
-
X,
|
|
914
|
-
Z
|
|
915
|
-
] }) }), e[35] = X, e[36] = Z, e[37] = te) : te = e[37];
|
|
968
|
+
}, e[27] = q) : q = e[27];
|
|
969
|
+
let J;
|
|
970
|
+
e[28] !== s || e[29] !== _ || e[30] !== T || e[31] !== x || e[32] !== k || e[33] !== w ? (J = /* @__PURE__ */ i(ye, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: q, children: T ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : _ ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "red.500", children: _ }) : s.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(G, { gap: "xs", children: s.map((ie) => /* @__PURE__ */ i(Vn, { entry: ie, selectedPath: k, selectedPathSet: w, onEntryClick: x }, ie.path)) }) }), e[28] = s, e[29] = _, e[30] = T, e[31] = x, e[32] = k, e[33] = w, e[34] = J) : J = e[34];
|
|
916
971
|
let K;
|
|
917
|
-
e[
|
|
972
|
+
e[35] !== Y || e[36] !== J ? (K = /* @__PURE__ */ i(se.Body, { children: /* @__PURE__ */ b(G, { gap: "md", children: [
|
|
973
|
+
Y,
|
|
974
|
+
J
|
|
975
|
+
] }) }), e[35] = Y, e[36] = J, e[37] = K) : K = e[37];
|
|
976
|
+
let Q;
|
|
977
|
+
e[38] !== f ? (Q = /* @__PURE__ */ i(de, { variant: "outline", onClick: f, children: "Cancel" }), e[38] = f, e[39] = Q) : Q = e[39];
|
|
978
|
+
let te;
|
|
979
|
+
e[40] !== S || e[41] !== p ? (te = /* @__PURE__ */ i(de, { onClick: p, disabled: S, children: "Select repository" }), e[40] = S, e[41] = p, e[42] = te) : te = e[42];
|
|
918
980
|
let ee;
|
|
919
|
-
e[
|
|
920
|
-
|
|
921
|
-
|
|
981
|
+
e[43] !== Q || e[44] !== te ? (ee = /* @__PURE__ */ i(se.Footer, { children: /* @__PURE__ */ b(G, { direction: "row", gap: "sm", children: [
|
|
982
|
+
Q,
|
|
983
|
+
te
|
|
984
|
+
] }) }), e[43] = Q, e[44] = te, e[45] = ee) : ee = e[45];
|
|
985
|
+
let Z;
|
|
986
|
+
e[46] !== O || e[47] !== K || e[48] !== ee ? (Z = /* @__PURE__ */ i(se.Positioner, { children: /* @__PURE__ */ b(se.Content, { children: [
|
|
987
|
+
O,
|
|
922
988
|
K,
|
|
923
989
|
ee
|
|
924
|
-
] }) }), e[
|
|
925
|
-
let
|
|
926
|
-
e[
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
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: [
|
|
933
|
-
O,
|
|
934
|
-
q
|
|
935
|
-
] }), e[50] = l, e[51] = q, e[52] = L, e[53] = W) : W = e[53], W;
|
|
990
|
+
] }) }), e[46] = O, e[47] = K, e[48] = ee, e[49] = Z) : Z = e[49];
|
|
991
|
+
let U;
|
|
992
|
+
return e[50] !== n || e[51] !== Z || e[52] !== v ? (U = /* @__PURE__ */ b(se.Root, { closeOnInteractOutside: !1, open: n, onOpenChange: v, children: [
|
|
993
|
+
E,
|
|
994
|
+
Z
|
|
995
|
+
] }), e[50] = n, e[51] = Z, e[52] = v, e[53] = U) : U = e[53], U;
|
|
936
996
|
};
|
|
937
|
-
function
|
|
938
|
-
const e =
|
|
939
|
-
let
|
|
940
|
-
e[0] !==
|
|
941
|
-
children:
|
|
997
|
+
function Wi(l) {
|
|
998
|
+
const e = A(6);
|
|
999
|
+
let n, t;
|
|
1000
|
+
e[0] !== l ? ({
|
|
1001
|
+
children: n,
|
|
942
1002
|
...t
|
|
943
|
-
} =
|
|
944
|
-
let
|
|
945
|
-
return e[3] !==
|
|
1003
|
+
} = l, e[0] = l, e[1] = n, e[2] = t) : (n = e[1], t = e[2]);
|
|
1004
|
+
let r;
|
|
1005
|
+
return e[3] !== n || e[4] !== t ? (r = /* @__PURE__ */ i(X, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: n }), e[3] = n, e[4] = t, e[5] = r) : r = e[5], r;
|
|
946
1006
|
}
|
|
947
|
-
const
|
|
948
|
-
const e =
|
|
949
|
-
notices:
|
|
1007
|
+
const jn = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Xn = (l) => l.version ? `${l.name} v${l.version}` : l.name, Fi = (l) => {
|
|
1008
|
+
const e = A(30), {
|
|
1009
|
+
notices: n,
|
|
950
1010
|
title: t,
|
|
951
|
-
description:
|
|
952
|
-
productName:
|
|
1011
|
+
description: r,
|
|
1012
|
+
productName: o,
|
|
953
1013
|
productVersion: s,
|
|
954
1014
|
generatedAt: a,
|
|
955
1015
|
emptyTitle: c,
|
|
956
1016
|
emptyDescription: d
|
|
957
|
-
} =
|
|
958
|
-
let
|
|
959
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1017
|
+
} = l, u = t === void 0 ? "Open Source and Third-Party Notices" : t, g = r === void 0 ? "This product includes software developed by the open source community." : r, f = c === void 0 ? "No third-party notices available" : c, p = d === void 0 ? "No third-party packages were included in this build." : d;
|
|
1018
|
+
let h;
|
|
1019
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
960
1020
|
base: "md",
|
|
961
1021
|
md: "xl"
|
|
962
|
-
}, e[0] =
|
|
1022
|
+
}, e[0] = h) : h = e[0];
|
|
963
1023
|
let m;
|
|
964
|
-
e[1] !==
|
|
1024
|
+
e[1] !== u ? (m = /* @__PURE__ */ i($, { textStyle: "heading/L", children: u }), e[1] = u, e[2] = m) : m = e[2];
|
|
965
1025
|
let x;
|
|
966
|
-
e[3] !== g ? (x = /* @__PURE__ */ i(
|
|
967
|
-
let S;
|
|
968
|
-
e[5] !== r ? (S = r ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
|
|
969
|
-
"Product: ",
|
|
970
|
-
r
|
|
971
|
-
] }) : null, e[5] = r, e[6] = S) : S = e[6];
|
|
1026
|
+
e[3] !== g ? (x = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = x) : x = e[4];
|
|
972
1027
|
let y;
|
|
973
|
-
e[
|
|
1028
|
+
e[5] !== o ? (y = o ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
|
|
1029
|
+
"Product: ",
|
|
1030
|
+
o
|
|
1031
|
+
] }) : null, e[5] = o, e[6] = y) : y = e[6];
|
|
1032
|
+
let I;
|
|
1033
|
+
e[7] !== s ? (I = s ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
|
|
974
1034
|
"Version: ",
|
|
975
1035
|
s
|
|
976
|
-
] }) : null, e[7] = s, e[8] =
|
|
977
|
-
let v;
|
|
978
|
-
e[9] !== l.length ? (v = /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
|
|
979
|
-
"Packages: ",
|
|
980
|
-
l.length
|
|
981
|
-
] }), e[9] = l.length, e[10] = v) : v = e[10];
|
|
1036
|
+
] }) : null, e[7] = s, e[8] = I) : I = e[8];
|
|
982
1037
|
let k;
|
|
983
|
-
e[
|
|
1038
|
+
e[9] !== n.length ? (k = /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
|
|
1039
|
+
"Packages: ",
|
|
1040
|
+
n.length
|
|
1041
|
+
] }), e[9] = n.length, e[10] = k) : k = e[10];
|
|
1042
|
+
let P;
|
|
1043
|
+
e[11] !== a ? (P = a ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
|
|
984
1044
|
"Generated: ",
|
|
985
1045
|
a
|
|
986
|
-
] }) : null, e[11] = a, e[12] =
|
|
987
|
-
let
|
|
988
|
-
e[13] !==
|
|
989
|
-
S,
|
|
1046
|
+
] }) : null, e[11] = a, e[12] = P) : P = e[12];
|
|
1047
|
+
let D;
|
|
1048
|
+
e[13] !== P || e[14] !== y || e[15] !== I || e[16] !== k ? (D = /* @__PURE__ */ b(X, { gap: "md", flexWrap: "wrap", children: [
|
|
990
1049
|
y,
|
|
991
|
-
|
|
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,
|
|
997
|
-
x,
|
|
1050
|
+
I,
|
|
1051
|
+
k,
|
|
998
1052
|
P
|
|
999
|
-
] }), e[
|
|
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];
|
|
1053
|
+
] }), e[13] = P, e[14] = y, e[15] = I, e[16] = k, e[17] = D) : D = e[17];
|
|
1002
1054
|
let T;
|
|
1003
|
-
e[
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1055
|
+
e[18] !== D || e[19] !== m || e[20] !== x ? (T = /* @__PURE__ */ b(G, { gap: "xs", children: [
|
|
1056
|
+
m,
|
|
1057
|
+
x,
|
|
1058
|
+
D
|
|
1059
|
+
] }), e[18] = D, e[19] = m, e[20] = x, e[21] = T) : T = e[21];
|
|
1060
|
+
let _;
|
|
1061
|
+
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Ye, { borderColor: "border.muted" }), e[22] = _) : _ = e[22];
|
|
1062
|
+
let S;
|
|
1063
|
+
e[23] !== p || e[24] !== f || e[25] !== n ? (S = n.length === 0 ? /* @__PURE__ */ b(G, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
|
|
1064
|
+
/* @__PURE__ */ i($, { textStyle: "label/L/medium", children: f }),
|
|
1065
|
+
/* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: p })
|
|
1066
|
+
] }) : /* @__PURE__ */ i(G, { gap: "md", children: n.map(Un) }), e[23] = p, e[24] = f, e[25] = n, e[26] = S) : S = e[26];
|
|
1067
|
+
let C;
|
|
1068
|
+
return e[27] !== T || e[28] !== S ? (C = /* @__PURE__ */ b(G, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: h, gap: "lg", children: [
|
|
1069
|
+
T,
|
|
1070
|
+
_,
|
|
1071
|
+
S
|
|
1072
|
+
] }), e[27] = T, e[28] = S, e[29] = C) : C = e[29], C;
|
|
1013
1073
|
};
|
|
1014
|
-
function
|
|
1015
|
-
return /* @__PURE__ */ i(
|
|
1016
|
-
/* @__PURE__ */ b(
|
|
1017
|
-
/* @__PURE__ */ i(
|
|
1018
|
-
/* @__PURE__ */ b(
|
|
1074
|
+
function Un(l, e) {
|
|
1075
|
+
return /* @__PURE__ */ i(V, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b(G, { gap: "sm", children: [
|
|
1076
|
+
/* @__PURE__ */ b(G, { gap: "2xs", children: [
|
|
1077
|
+
/* @__PURE__ */ i($, { textStyle: "label/L/medium", children: Xn(l) }),
|
|
1078
|
+
/* @__PURE__ */ b($, { textStyle: "label/S/regular", color: "fg.muted", children: [
|
|
1019
1079
|
"License: ",
|
|
1020
|
-
|
|
1080
|
+
l.license ?? "Unknown"
|
|
1021
1081
|
] })
|
|
1022
1082
|
] }),
|
|
1023
|
-
|
|
1024
|
-
(
|
|
1025
|
-
|
|
1026
|
-
|
|
1083
|
+
l.copyright ? /* @__PURE__ */ i($, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
|
|
1084
|
+
(l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ b(G, { gap: "2xs", children: [
|
|
1085
|
+
l.homepageUrl ? /* @__PURE__ */ i(Ue, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
|
|
1086
|
+
l.sourceUrl ? /* @__PURE__ */ i(Ue, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
|
|
1027
1087
|
] }),
|
|
1028
|
-
|
|
1029
|
-
] }) },
|
|
1088
|
+
l.attribution ? /* @__PURE__ */ i(V, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
|
|
1089
|
+
] }) }, jn(l, e));
|
|
1030
1090
|
}
|
|
1031
|
-
const
|
|
1032
|
-
const e =
|
|
1033
|
-
items:
|
|
1034
|
-
} =
|
|
1091
|
+
const Bi = (l) => {
|
|
1092
|
+
const e = A(4), {
|
|
1093
|
+
items: n
|
|
1094
|
+
} = l;
|
|
1035
1095
|
let t;
|
|
1036
|
-
e[0] !==
|
|
1037
|
-
let
|
|
1038
|
-
return e[2] !== t ? (
|
|
1096
|
+
e[0] !== n ? (t = n.map(Yn), e[0] = n, e[1] = t) : t = e[1];
|
|
1097
|
+
let r;
|
|
1098
|
+
return e[2] !== t ? (r = /* @__PURE__ */ i(G, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
|
|
1039
1099
|
};
|
|
1040
|
-
function
|
|
1041
|
-
return /* @__PURE__ */ b(
|
|
1042
|
-
/* @__PURE__ */ i(
|
|
1043
|
-
/* @__PURE__ */ i(
|
|
1044
|
-
|
|
1100
|
+
function Yn(l, e) {
|
|
1101
|
+
return /* @__PURE__ */ b(X, { gap: "md", alignItems: "center", children: [
|
|
1102
|
+
/* @__PURE__ */ i(V, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(X, { gap: "1", alignItems: "center", children: [
|
|
1103
|
+
/* @__PURE__ */ i($, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
|
|
1104
|
+
l.description && /* @__PURE__ */ i(Ee, { content: l.description, showArrow: !0, children: /* @__PURE__ */ i(oe, { as: ln, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
|
|
1045
1105
|
] }) }),
|
|
1046
|
-
/* @__PURE__ */ i(
|
|
1047
|
-
] }, `${
|
|
1106
|
+
/* @__PURE__ */ i(V, { flex: "1", children: l.value })
|
|
1107
|
+
] }, `${l.label}-${e}`);
|
|
1048
1108
|
}
|
|
1049
|
-
const
|
|
1050
|
-
const e =
|
|
1051
|
-
status:
|
|
1109
|
+
const Kn = (l) => l === "completed" ? rn : l === "failed" ? on : sn, qn = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : "fg.muted", Jn = (l) => {
|
|
1110
|
+
const e = A(11), {
|
|
1111
|
+
status: n,
|
|
1052
1112
|
boxSize: t,
|
|
1053
|
-
ariaLabel:
|
|
1054
|
-
cursor:
|
|
1113
|
+
ariaLabel: r,
|
|
1114
|
+
cursor: o,
|
|
1055
1115
|
onClick: s
|
|
1056
|
-
} =
|
|
1116
|
+
} = l, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
|
|
1057
1117
|
let d;
|
|
1058
|
-
e[0] !==
|
|
1059
|
-
let
|
|
1060
|
-
e[2] !==
|
|
1118
|
+
e[0] !== n ? (d = Kn(n), e[0] = n, e[1] = d) : d = e[1];
|
|
1119
|
+
let u;
|
|
1120
|
+
e[2] !== n ? (u = qn(n), e[2] = n, e[3] = u) : u = e[3];
|
|
1061
1121
|
let g;
|
|
1062
|
-
return e[4] !== c || e[5] !== a || e[6] !==
|
|
1063
|
-
},
|
|
1064
|
-
const e =
|
|
1065
|
-
action:
|
|
1122
|
+
return e[4] !== c || e[5] !== a || e[6] !== o || e[7] !== s || e[8] !== d || e[9] !== u ? (g = /* @__PURE__ */ i(oe, { as: d, boxSize: a, color: u, "aria-label": c, cursor: o, onClick: s }), e[4] = c, e[5] = a, e[6] = o, e[7] = s, e[8] = d, e[9] = u, e[10] = g) : g = e[10], g;
|
|
1123
|
+
}, Pt = (l, e) => e.includes(l), Qn = (l) => {
|
|
1124
|
+
const e = A(18), {
|
|
1125
|
+
action: n,
|
|
1066
1126
|
sectionId: t,
|
|
1067
|
-
nodeId:
|
|
1068
|
-
} =
|
|
1069
|
-
if (
|
|
1127
|
+
nodeId: r
|
|
1128
|
+
} = l;
|
|
1129
|
+
if (n.menuItems && n.menuItems.length > 0) {
|
|
1070
1130
|
let a;
|
|
1071
|
-
e[0] !==
|
|
1131
|
+
e[0] !== n.icon || e[1] !== n.label ? (a = /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }) }), e[0] = n.icon, e[1] = n.label, e[2] = a) : a = e[2];
|
|
1072
1132
|
let c;
|
|
1073
|
-
e[3] !==
|
|
1133
|
+
e[3] !== n.menuItems ? (c = n.menuItems.map(el), e[3] = n.menuItems, e[4] = c) : c = e[4];
|
|
1074
1134
|
let d;
|
|
1075
|
-
e[5] !== c ? (d = /* @__PURE__ */ i(
|
|
1076
|
-
let
|
|
1077
|
-
return e[7] !== a || e[8] !== d ? (
|
|
1135
|
+
e[5] !== c ? (d = /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "160px", bg: "bg", children: c }) }), e[5] = c, e[6] = d) : d = e[6];
|
|
1136
|
+
let u;
|
|
1137
|
+
return e[7] !== a || e[8] !== d ? (u = /* @__PURE__ */ b(le.Root, { children: [
|
|
1078
1138
|
a,
|
|
1079
1139
|
d
|
|
1080
|
-
] }), e[7] = a, e[8] = d, e[9] =
|
|
1140
|
+
] }), e[7] = a, e[8] = d, e[9] = u) : u = e[9], u;
|
|
1081
1141
|
}
|
|
1082
|
-
let
|
|
1083
|
-
e[10] !==
|
|
1084
|
-
a.stopPropagation(),
|
|
1142
|
+
let o;
|
|
1143
|
+
e[10] !== n || e[11] !== r || e[12] !== t ? (o = (a) => {
|
|
1144
|
+
a.stopPropagation(), n.onAction?.({
|
|
1085
1145
|
sectionId: t,
|
|
1086
|
-
nodeId:
|
|
1146
|
+
nodeId: r
|
|
1087
1147
|
});
|
|
1088
|
-
}, e[10] =
|
|
1148
|
+
}, e[10] = n, e[11] = r, e[12] = t, e[13] = o) : o = e[13];
|
|
1089
1149
|
let s;
|
|
1090
|
-
return e[14] !==
|
|
1091
|
-
},
|
|
1092
|
-
const e =
|
|
1093
|
-
sectionId:
|
|
1150
|
+
return e[14] !== n.icon || e[15] !== n.label || e[16] !== o ? (s = /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, onClick: o, children: n.icon }), e[14] = n.icon, e[15] = n.label, e[16] = o, e[17] = s) : s = e[17], s;
|
|
1151
|
+
}, Je = (l) => {
|
|
1152
|
+
const e = A(11), {
|
|
1153
|
+
sectionId: n,
|
|
1094
1154
|
nodeId: t,
|
|
1095
|
-
actions:
|
|
1096
|
-
} =
|
|
1097
|
-
if (
|
|
1155
|
+
actions: r
|
|
1156
|
+
} = l;
|
|
1157
|
+
if (r.length === 0)
|
|
1098
1158
|
return null;
|
|
1099
|
-
let
|
|
1100
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1159
|
+
let o, s;
|
|
1160
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
1101
1161
|
opacity: "1",
|
|
1102
1162
|
pointerEvents: "auto"
|
|
1103
1163
|
}, s = {
|
|
1104
1164
|
opacity: "1",
|
|
1105
1165
|
pointerEvents: "auto"
|
|
1106
|
-
}, e[0] =
|
|
1166
|
+
}, e[0] = o, e[1] = s) : (o = e[0], s = e[1]);
|
|
1107
1167
|
let a;
|
|
1108
|
-
if (e[2] !==
|
|
1168
|
+
if (e[2] !== r || e[3] !== t || e[4] !== n) {
|
|
1109
1169
|
let d;
|
|
1110
|
-
e[6] !== t || e[7] !==
|
|
1170
|
+
e[6] !== t || e[7] !== n ? (d = (u) => /* @__PURE__ */ i(Qn, { action: u, sectionId: n, nodeId: t }, u.id), e[6] = t, e[7] = n, e[8] = d) : d = e[8], a = r.map(d), e[2] = r, e[3] = t, e[4] = n, e[5] = a;
|
|
1111
1171
|
} else
|
|
1112
1172
|
a = e[5];
|
|
1113
1173
|
let c;
|
|
1114
|
-
return e[9] !== a ? (c = /* @__PURE__ */ i(
|
|
1115
|
-
},
|
|
1116
|
-
const e =
|
|
1117
|
-
sectionId:
|
|
1174
|
+
return e[9] !== a ? (c = /* @__PURE__ */ i(X, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: o, _groupFocusWithin: s, transition: "opacity 120ms ease", onClick: tl, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
|
|
1175
|
+
}, Tt = (l) => {
|
|
1176
|
+
const e = A(63), {
|
|
1177
|
+
sectionId: n,
|
|
1118
1178
|
node: t,
|
|
1119
|
-
level:
|
|
1120
|
-
expandedNodes:
|
|
1179
|
+
level: r,
|
|
1180
|
+
expandedNodes: o,
|
|
1121
1181
|
activeNodeId: s,
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1182
|
+
linkComponent: a,
|
|
1183
|
+
onNavigate: c,
|
|
1184
|
+
onToggleNode: d
|
|
1185
|
+
} = l, u = (t.children?.length ?? 0) > 0;
|
|
1186
|
+
let g;
|
|
1187
|
+
e[0] !== o || e[1] !== u || e[2] !== t.id ? (g = u && Pt(t.id, o), e[0] = o, e[1] = u, e[2] = t.id, e[3] = g) : g = e[3];
|
|
1188
|
+
const f = g, p = t.isNavigable || t.navigationIntent !== void 0, h = s === t.id, m = t.disabled === !0, x = r > 0 ? `calc(var(--chakra-spacing-1) + ${r} * var(--chakra-spacing-3))` : void 0, y = !!(a && t.href && p && !u && !m);
|
|
1189
|
+
let I;
|
|
1190
|
+
e[4] !== u || e[5] !== m || e[6] !== p || e[7] !== t || e[8] !== c || e[9] !== d || e[10] !== n ? (I = () => {
|
|
1191
|
+
if (!m) {
|
|
1192
|
+
if (u) {
|
|
1193
|
+
d(t.id);
|
|
1133
1194
|
return;
|
|
1134
1195
|
}
|
|
1135
|
-
|
|
1136
|
-
sectionId:
|
|
1196
|
+
p && c?.({
|
|
1197
|
+
sectionId: n,
|
|
1137
1198
|
nodeId: t.id,
|
|
1138
1199
|
node: t,
|
|
1139
1200
|
intent: t.navigationIntent
|
|
1140
1201
|
});
|
|
1141
1202
|
}
|
|
1142
|
-
}, e[4] =
|
|
1143
|
-
const
|
|
1203
|
+
}, e[4] = u, e[5] = m, e[6] = p, e[7] = t, e[8] = c, e[9] = d, e[10] = n, e[11] = I) : I = e[11];
|
|
1204
|
+
const k = I;
|
|
1144
1205
|
let P;
|
|
1145
|
-
e[12] !==
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
let
|
|
1150
|
-
e[
|
|
1151
|
-
|
|
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: {
|
|
1156
|
-
transform: g ? "rotate(90deg)" : "rotate(0deg)",
|
|
1206
|
+
e[12] !== t.icon ? (P = t.icon ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: t.icon }) : null, e[12] = t.icon, e[13] = P) : P = e[13];
|
|
1207
|
+
const D = m ? "fg.muted" : "fg";
|
|
1208
|
+
let T;
|
|
1209
|
+
e[14] !== t.label || e[15] !== D ? (T = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: D, truncate: !0, children: t.label }), e[14] = t.label, e[15] = D, e[16] = T) : T = e[16];
|
|
1210
|
+
let _;
|
|
1211
|
+
e[17] !== f || e[18] !== u ? (_ = u ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(Ce, { size: 14, style: {
|
|
1212
|
+
transform: f ? "rotate(90deg)" : "rotate(0deg)",
|
|
1157
1213
|
transition: "120ms"
|
|
1158
|
-
} }) }) : null, e[
|
|
1159
|
-
let
|
|
1160
|
-
e[
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
] }), e[
|
|
1214
|
+
} }) }) : null, e[17] = f, e[18] = u, e[19] = _) : _ = e[19];
|
|
1215
|
+
let S;
|
|
1216
|
+
e[20] !== T || e[21] !== _ ? (S = /* @__PURE__ */ b(X, { gap: "1", minW: "0", children: [
|
|
1217
|
+
T,
|
|
1218
|
+
_
|
|
1219
|
+
] }), e[20] = T, e[21] = _, e[22] = S) : S = e[22];
|
|
1220
|
+
let C;
|
|
1221
|
+
e[23] !== t.description ? (C = t.description ? /* @__PURE__ */ i($, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[23] = t.description, e[24] = C) : C = e[24];
|
|
1222
|
+
let w;
|
|
1223
|
+
e[25] !== S || e[26] !== C ? (w = /* @__PURE__ */ b(G, { gap: "0", minW: "0", flex: "1", children: [
|
|
1224
|
+
S,
|
|
1225
|
+
C
|
|
1226
|
+
] }), e[25] = S, e[26] = C, e[27] = w) : w = e[27];
|
|
1227
|
+
let v;
|
|
1228
|
+
e[28] !== P || e[29] !== w ? (v = /* @__PURE__ */ b(X, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
|
|
1229
|
+
P,
|
|
1230
|
+
w
|
|
1231
|
+
] }), e[28] = P, e[29] = w, e[30] = v) : v = e[30];
|
|
1232
|
+
const E = v, L = h ? "bg.muted" : "transparent", z = h ? "bg.muted" : "bg.subtle";
|
|
1164
1233
|
let O;
|
|
1165
|
-
e[
|
|
1166
|
-
|
|
1167
|
-
e[
|
|
1168
|
-
|
|
1169
|
-
O
|
|
1170
|
-
] }), e[27] = L, e[28] = O, e[29] = N) : N = e[29];
|
|
1234
|
+
e[31] !== z ? (O = {
|
|
1235
|
+
bg: z
|
|
1236
|
+
}, e[31] = z, e[32] = O) : O = e[32];
|
|
1237
|
+
const W = m ? "default" : "pointer";
|
|
1171
1238
|
let H;
|
|
1172
|
-
e[
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1239
|
+
e[33] !== h || e[34] !== x || e[35] !== L || e[36] !== O || e[37] !== W ? (H = {
|
|
1240
|
+
className: "group",
|
|
1241
|
+
role: "option",
|
|
1242
|
+
"aria-selected": h,
|
|
1243
|
+
justify: "space-between",
|
|
1244
|
+
align: "center",
|
|
1245
|
+
borderRadius: "xs",
|
|
1246
|
+
px: "1",
|
|
1247
|
+
py: "2xs",
|
|
1248
|
+
pl: x,
|
|
1249
|
+
bg: L,
|
|
1250
|
+
_hover: O,
|
|
1251
|
+
cursor: W,
|
|
1252
|
+
overflow: "hidden"
|
|
1253
|
+
}, e[33] = h, e[34] = x, e[35] = L, e[36] = O, e[37] = W, e[38] = H) : H = e[38];
|
|
1254
|
+
const B = H, N = t.children ? "0" : "2xs";
|
|
1176
1255
|
let M;
|
|
1177
|
-
e[
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
sections: l,
|
|
1256
|
+
e[39] !== a || e[40] !== y || e[41] !== k || e[42] !== t.actions || e[43] !== t.href || e[44] !== t.id || e[45] !== E || e[46] !== B || e[47] !== n ? (M = y && a && t.href ? /* @__PURE__ */ i(a, { to: t.href, children: /* @__PURE__ */ b(X, { ...B, onClick: k, children: [
|
|
1257
|
+
E,
|
|
1258
|
+
/* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
|
|
1259
|
+
] }) }) : /* @__PURE__ */ b(X, { ...B, onClick: k, children: [
|
|
1260
|
+
E,
|
|
1261
|
+
/* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
|
|
1262
|
+
] }), e[39] = a, e[40] = y, e[41] = k, e[42] = t.actions, e[43] = t.href, e[44] = t.id, e[45] = E, e[46] = B, e[47] = n, e[48] = M) : M = e[48];
|
|
1263
|
+
let R;
|
|
1264
|
+
e[49] !== a || e[50] !== s || e[51] !== f || e[52] !== o || e[53] !== r || e[54] !== t.children || e[55] !== c || e[56] !== d || e[57] !== n ? (R = f ? t.children?.map((Y) => /* @__PURE__ */ i(Tt, { sectionId: n, node: Y, level: r + 1, expandedNodes: o, activeNodeId: s, linkComponent: a, onNavigate: c, onToggleNode: d }, Y.id)) : null, e[49] = a, e[50] = s, e[51] = f, e[52] = o, e[53] = r, e[54] = t.children, e[55] = c, e[56] = d, e[57] = n, e[58] = R) : R = e[58];
|
|
1265
|
+
let F;
|
|
1266
|
+
return e[59] !== N || e[60] !== M || e[61] !== R ? (F = /* @__PURE__ */ b(G, { gap: N, children: [
|
|
1267
|
+
M,
|
|
1268
|
+
R
|
|
1269
|
+
] }), e[59] = N, e[60] = M, e[61] = R, e[62] = F) : F = e[62], F;
|
|
1270
|
+
}, Zn = (l) => {
|
|
1271
|
+
const e = A(19), {
|
|
1272
|
+
sections: n,
|
|
1195
1273
|
expandedSections: t,
|
|
1196
|
-
expandedNodes:
|
|
1197
|
-
activeNodeId:
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1274
|
+
expandedNodes: r,
|
|
1275
|
+
activeNodeId: o,
|
|
1276
|
+
linkComponent: s,
|
|
1277
|
+
onNavigate: a,
|
|
1278
|
+
onToggleSection: c,
|
|
1279
|
+
onToggleNode: d
|
|
1280
|
+
} = l;
|
|
1281
|
+
let u;
|
|
1282
|
+
if (e[0] !== o || e[1] !== r || e[2] !== t || e[3] !== s || e[4] !== a || e[5] !== d || e[6] !== c || e[7] !== n) {
|
|
1283
|
+
let f;
|
|
1284
|
+
e[9] !== o || e[10] !== r || e[11] !== t || e[12] !== s || e[13] !== a || e[14] !== d || e[15] !== c ? (f = (p) => {
|
|
1285
|
+
const h = p.label ? Pt(p.id, t) : !0;
|
|
1286
|
+
return /* @__PURE__ */ b(G, { gap: "0", children: [
|
|
1287
|
+
p.label ? /* @__PURE__ */ b(X, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
|
|
1209
1288
|
bg: "bg.subtle"
|
|
1210
|
-
}, onClick: () =>
|
|
1211
|
-
/* @__PURE__ */ b(
|
|
1212
|
-
/* @__PURE__ */ i(
|
|
1213
|
-
/* @__PURE__ */ i(
|
|
1214
|
-
transform:
|
|
1289
|
+
}, onClick: () => c(p.id), children: [
|
|
1290
|
+
/* @__PURE__ */ b(X, { gap: "1", flex: "1", minW: "0", children: [
|
|
1291
|
+
/* @__PURE__ */ i($, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: p.label }),
|
|
1292
|
+
/* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(Ce, { size: 14, style: {
|
|
1293
|
+
transform: h ? "rotate(90deg)" : "rotate(0deg)",
|
|
1215
1294
|
transition: "120ms"
|
|
1216
1295
|
} }) })
|
|
1217
1296
|
] }),
|
|
1218
|
-
/* @__PURE__ */ i(
|
|
1297
|
+
/* @__PURE__ */ i(Je, { sectionId: p.id, actions: p.actions ?? [] })
|
|
1219
1298
|
] }) : null,
|
|
1220
|
-
|
|
1221
|
-
] },
|
|
1222
|
-
}, e[
|
|
1299
|
+
h ? p.nodes.length > 0 ? p.nodes.map((m) => /* @__PURE__ */ i(Tt, { sectionId: p.id, node: m, level: 0, expandedNodes: r, activeNodeId: o, linkComponent: s, onNavigate: a, onToggleNode: d }, m.id)) : p.emptyState ?? null : null
|
|
1300
|
+
] }, p.id);
|
|
1301
|
+
}, e[9] = o, e[10] = r, e[11] = t, e[12] = s, e[13] = a, e[14] = d, e[15] = c, e[16] = f) : f = e[16], u = n.map(f), e[0] = o, e[1] = r, e[2] = t, e[3] = s, e[4] = a, e[5] = d, e[6] = c, e[7] = n, e[8] = u;
|
|
1223
1302
|
} else
|
|
1224
|
-
|
|
1225
|
-
let
|
|
1226
|
-
return e[
|
|
1303
|
+
u = e[8];
|
|
1304
|
+
let g;
|
|
1305
|
+
return e[17] !== u ? (g = /* @__PURE__ */ i(G, { role: "listbox", gap: "md", p: "md", children: u }), e[17] = u, e[18] = g) : g = e[18], g;
|
|
1227
1306
|
};
|
|
1228
|
-
function
|
|
1229
|
-
return /* @__PURE__ */ b(
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
] },
|
|
1307
|
+
function el(l) {
|
|
1308
|
+
return /* @__PURE__ */ i(Ee, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ b(le.Item, { value: l.id, onClick: () => l.onAction?.(), children: [
|
|
1309
|
+
l.icon ? /* @__PURE__ */ i(V, { mr: "2", children: l.icon }) : null,
|
|
1310
|
+
l.label
|
|
1311
|
+
] }) }, l.id);
|
|
1233
1312
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return
|
|
1313
|
+
function tl(l) {
|
|
1314
|
+
return l.stopPropagation();
|
|
1236
1315
|
}
|
|
1237
|
-
const
|
|
1316
|
+
const ot = {
|
|
1238
1317
|
open: !0,
|
|
1239
1318
|
expandedSections: [],
|
|
1240
1319
|
expandedNodes: []
|
|
1241
|
-
},
|
|
1320
|
+
}, nl = "pstdio/ui/sidebar-next", ll = (l) => `${nl}/${l}`, il = () => ({
|
|
1242
1321
|
getItem: () => null,
|
|
1243
1322
|
setItem: () => {
|
|
1244
1323
|
},
|
|
1245
1324
|
removeItem: () => {
|
|
1246
1325
|
}
|
|
1247
|
-
}),
|
|
1248
|
-
open:
|
|
1249
|
-
expandedSections:
|
|
1250
|
-
expandedNodes:
|
|
1251
|
-
}),
|
|
1326
|
+
}), st = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], at = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), rl = (l) => ({
|
|
1327
|
+
open: l.open,
|
|
1328
|
+
expandedSections: l.expandedSections,
|
|
1329
|
+
expandedNodes: l.expandedNodes
|
|
1330
|
+
}), ol = (l) => {
|
|
1252
1331
|
const {
|
|
1253
1332
|
storageKey: e,
|
|
1254
|
-
initialState:
|
|
1255
|
-
} =
|
|
1256
|
-
...
|
|
1257
|
-
...
|
|
1333
|
+
initialState: n
|
|
1334
|
+
} = l, t = {
|
|
1335
|
+
...ot,
|
|
1336
|
+
...n
|
|
1258
1337
|
};
|
|
1259
|
-
return
|
|
1338
|
+
return wt()(Ct((r) => ({
|
|
1260
1339
|
...t,
|
|
1261
|
-
openSidebar: () =>
|
|
1262
|
-
...
|
|
1340
|
+
openSidebar: () => r((o) => ({
|
|
1341
|
+
...o,
|
|
1263
1342
|
open: !0
|
|
1264
1343
|
})),
|
|
1265
|
-
closeSidebar: () =>
|
|
1266
|
-
...
|
|
1344
|
+
closeSidebar: () => r((o) => ({
|
|
1345
|
+
...o,
|
|
1267
1346
|
open: !1
|
|
1268
1347
|
})),
|
|
1269
|
-
toggleSidebar: () =>
|
|
1270
|
-
...
|
|
1271
|
-
open: !
|
|
1348
|
+
toggleSidebar: () => r((o) => ({
|
|
1349
|
+
...o,
|
|
1350
|
+
open: !o.open
|
|
1272
1351
|
})),
|
|
1273
|
-
toggleSection: (
|
|
1352
|
+
toggleSection: (o) => r((s) => ({
|
|
1274
1353
|
...s,
|
|
1275
|
-
expandedSections:
|
|
1354
|
+
expandedSections: st(s.expandedSections, o)
|
|
1276
1355
|
})),
|
|
1277
|
-
toggleNode: (
|
|
1356
|
+
toggleNode: (o) => r((s) => ({
|
|
1278
1357
|
...s,
|
|
1279
|
-
expandedNodes:
|
|
1358
|
+
expandedNodes: st(s.expandedNodes, o)
|
|
1280
1359
|
})),
|
|
1281
|
-
setSectionExpanded: (
|
|
1360
|
+
setSectionExpanded: (o, s) => r((a) => ({
|
|
1282
1361
|
...a,
|
|
1283
|
-
expandedSections:
|
|
1362
|
+
expandedSections: at(a.expandedSections, o, s)
|
|
1284
1363
|
})),
|
|
1285
|
-
setNodeExpanded: (
|
|
1364
|
+
setNodeExpanded: (o, s) => r((a) => ({
|
|
1286
1365
|
...a,
|
|
1287
|
-
expandedNodes:
|
|
1366
|
+
expandedNodes: at(a.expandedNodes, o, s)
|
|
1288
1367
|
})),
|
|
1289
|
-
reset: () =>
|
|
1368
|
+
reset: () => r(ot)
|
|
1290
1369
|
}), {
|
|
1291
|
-
name:
|
|
1292
|
-
storage:
|
|
1293
|
-
partialize:
|
|
1370
|
+
name: ll(e),
|
|
1371
|
+
storage: vt(() => typeof globalThis.localStorage > "u" ? il() : globalThis.localStorage),
|
|
1372
|
+
partialize: rl
|
|
1294
1373
|
}));
|
|
1295
|
-
},
|
|
1296
|
-
const e =
|
|
1374
|
+
}, ct = /* @__PURE__ */ new Map(), sl = (l) => {
|
|
1375
|
+
const e = ct.get(l);
|
|
1297
1376
|
if (e)
|
|
1298
1377
|
return e;
|
|
1299
|
-
const
|
|
1300
|
-
storageKey:
|
|
1378
|
+
const n = ol({
|
|
1379
|
+
storageKey: l
|
|
1301
1380
|
});
|
|
1302
|
-
return
|
|
1303
|
-
},
|
|
1304
|
-
const
|
|
1381
|
+
return ct.set(l, n), n;
|
|
1382
|
+
}, Re = (l, e) => {
|
|
1383
|
+
const n = A(2);
|
|
1305
1384
|
let t;
|
|
1306
|
-
return
|
|
1307
|
-
},
|
|
1308
|
-
const e =
|
|
1309
|
-
children:
|
|
1310
|
-
} =
|
|
1311
|
-
if (!
|
|
1385
|
+
return n[0] !== l ? (t = sl(l), n[0] = l, n[1] = t) : t = n[1], yt(t, e);
|
|
1386
|
+
}, al = (l) => {
|
|
1387
|
+
const e = A(2), {
|
|
1388
|
+
children: n
|
|
1389
|
+
} = l;
|
|
1390
|
+
if (!n)
|
|
1312
1391
|
return null;
|
|
1313
1392
|
let t;
|
|
1314
|
-
return e[0] !==
|
|
1315
|
-
},
|
|
1316
|
-
const e =
|
|
1317
|
-
children:
|
|
1393
|
+
return e[0] !== n ? (t = /* @__PURE__ */ i(V, { px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: n }), e[0] = n, e[1] = t) : t = e[1], t;
|
|
1394
|
+
}, cl = (l) => {
|
|
1395
|
+
const e = A(7), {
|
|
1396
|
+
children: n,
|
|
1318
1397
|
onClose: t
|
|
1319
|
-
} =
|
|
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];
|
|
1398
|
+
} = l;
|
|
1322
1399
|
let r;
|
|
1323
|
-
e[
|
|
1400
|
+
e[0] !== n ? (r = /* @__PURE__ */ i(X, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = r) : r = e[1];
|
|
1401
|
+
let o;
|
|
1402
|
+
e[2] !== t ? (o = t ? /* @__PURE__ */ i(Se, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ i(an, { size: 16 }) }) : null, e[2] = t, e[3] = o) : o = e[3];
|
|
1324
1403
|
let s;
|
|
1325
|
-
return e[4] !==
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
] }), e[4] =
|
|
1329
|
-
},
|
|
1330
|
-
const e =
|
|
1331
|
-
storageKey:
|
|
1404
|
+
return e[4] !== r || e[5] !== o ? (s = /* @__PURE__ */ b(X, { justify: "space-between", align: "center", px: "4", py: "3", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
|
|
1405
|
+
r,
|
|
1406
|
+
o
|
|
1407
|
+
] }), e[4] = r, e[5] = o, e[6] = s) : s = e[6], s;
|
|
1408
|
+
}, Vi = (l) => {
|
|
1409
|
+
const e = A(24), {
|
|
1410
|
+
storageKey: n,
|
|
1332
1411
|
sections: t,
|
|
1333
|
-
activeNodeId:
|
|
1334
|
-
header:
|
|
1412
|
+
activeNodeId: r,
|
|
1413
|
+
header: o,
|
|
1335
1414
|
footer: s,
|
|
1336
1415
|
width: a,
|
|
1337
1416
|
closable: c,
|
|
1338
1417
|
emptyLabel: d,
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1418
|
+
linkComponent: u,
|
|
1419
|
+
onNavigate: g,
|
|
1420
|
+
onOpenChange: f
|
|
1421
|
+
} = l, p = a === void 0 ? "240px" : a, h = c === void 0 ? !0 : c, m = d === void 0 ? "No items available." : d, x = Re(n, dl), y = Re(n, ul), I = Re(n, gl), k = Re(n, fl), P = Re(n, pl), D = Re(n, hl);
|
|
1422
|
+
let T, _;
|
|
1423
|
+
if (e[0] !== f || e[1] !== x ? (T = () => {
|
|
1424
|
+
f?.(x);
|
|
1425
|
+
}, _ = [f, x], e[0] = f, e[1] = x, e[2] = T, e[3] = _) : (T = e[2], _ = e[3]), He(T, _), !x && h)
|
|
1346
1426
|
return null;
|
|
1347
|
-
const
|
|
1348
|
-
let
|
|
1349
|
-
e[4] !==
|
|
1350
|
-
let
|
|
1351
|
-
e[7] !==
|
|
1352
|
-
let
|
|
1353
|
-
e[
|
|
1354
|
-
let
|
|
1355
|
-
return e[
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
] }), e[
|
|
1427
|
+
const S = h ? k : void 0;
|
|
1428
|
+
let C;
|
|
1429
|
+
e[4] !== o || e[5] !== S ? (C = /* @__PURE__ */ i(cl, { onClose: S, children: o }), e[4] = o, e[5] = S, e[6] = C) : C = e[6];
|
|
1430
|
+
let w;
|
|
1431
|
+
e[7] !== r || e[8] !== m || e[9] !== I || e[10] !== y || e[11] !== u || e[12] !== g || e[13] !== t || e[14] !== D || e[15] !== P ? (w = /* @__PURE__ */ i(ye, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ i(Zn, { sections: t, expandedSections: y, expandedNodes: I, activeNodeId: r, linkComponent: u, onNavigate: g, onToggleSection: P, onToggleNode: D }) }), e[7] = r, e[8] = m, e[9] = I, e[10] = y, e[11] = u, e[12] = g, e[13] = t, e[14] = D, e[15] = P, e[16] = w) : w = e[16];
|
|
1432
|
+
let v;
|
|
1433
|
+
e[17] !== s ? (v = /* @__PURE__ */ i(al, { children: s }), e[17] = s, e[18] = v) : v = e[18];
|
|
1434
|
+
let E;
|
|
1435
|
+
return e[19] !== C || e[20] !== w || e[21] !== v || e[22] !== p ? (E = /* @__PURE__ */ b(we, { as: "aside", direction: "column", h: "100%", w: p, minW: p, maxW: p, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
|
|
1436
|
+
C,
|
|
1437
|
+
w,
|
|
1438
|
+
v
|
|
1439
|
+
] }), e[19] = C, e[20] = w, e[21] = v, e[22] = p, e[23] = E) : E = e[23], E;
|
|
1360
1440
|
};
|
|
1361
|
-
function
|
|
1362
|
-
return
|
|
1441
|
+
function dl(l) {
|
|
1442
|
+
return l.open;
|
|
1363
1443
|
}
|
|
1364
|
-
function
|
|
1365
|
-
return
|
|
1444
|
+
function ul(l) {
|
|
1445
|
+
return l.expandedSections;
|
|
1366
1446
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
1447
|
+
function gl(l) {
|
|
1448
|
+
return l.expandedNodes;
|
|
1369
1449
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1450
|
+
function fl(l) {
|
|
1451
|
+
return l.closeSidebar;
|
|
1372
1452
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return
|
|
1453
|
+
function pl(l) {
|
|
1454
|
+
return l.toggleSection;
|
|
1375
1455
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1456
|
+
function hl(l) {
|
|
1457
|
+
return l.toggleNode;
|
|
1378
1458
|
}
|
|
1379
|
-
const
|
|
1380
|
-
const t =
|
|
1381
|
-
let
|
|
1459
|
+
const ji = Fe.forwardRef(function(e, n) {
|
|
1460
|
+
const t = A(32);
|
|
1461
|
+
let r, o, s, a, c, d, u;
|
|
1382
1462
|
t[0] !== e ? ({
|
|
1383
|
-
inputProps:
|
|
1384
|
-
children:
|
|
1463
|
+
inputProps: o,
|
|
1464
|
+
children: r,
|
|
1385
1465
|
rootRef: a,
|
|
1386
|
-
trackLabel:
|
|
1466
|
+
trackLabel: u,
|
|
1387
1467
|
thumbLabel: d,
|
|
1388
1468
|
disabled: c,
|
|
1389
1469
|
...s
|
|
1390
|
-
} = e, t[0] = e, t[1] =
|
|
1470
|
+
} = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d, t[7] = u) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6], u = t[7]);
|
|
1391
1471
|
const g = c === void 0 ? !1 : c, f = g ? "not-allowed" : "pointer";
|
|
1392
|
-
let u;
|
|
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];
|
|
1394
1472
|
let p;
|
|
1395
|
-
t[
|
|
1473
|
+
t[8] !== o || t[9] !== n ? (p = /* @__PURE__ */ i(De.HiddenInput, { ref: n, ...o }), t[8] = o, t[9] = n, t[10] = p) : p = t[10];
|
|
1474
|
+
let h;
|
|
1475
|
+
t[11] !== d ? (h = d && /* @__PURE__ */ i(De.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = h) : h = t[12];
|
|
1396
1476
|
let m;
|
|
1397
|
-
t[13] !==
|
|
1477
|
+
t[13] !== h ? (m = /* @__PURE__ */ i(De.Thumb, { borderRadius: "full", children: h }), t[13] = h, t[14] = m) : m = t[14];
|
|
1398
1478
|
let x;
|
|
1399
|
-
t[15] !==
|
|
1400
|
-
let
|
|
1401
|
-
t[17] !== f || t[18] !== m || t[19] !== x ? (
|
|
1479
|
+
t[15] !== u ? (x = u && /* @__PURE__ */ i(De.Indicator, { fallback: u.off, children: u.on }), t[15] = u, t[16] = x) : x = t[16];
|
|
1480
|
+
let y;
|
|
1481
|
+
t[17] !== f || t[18] !== m || t[19] !== x ? (y = /* @__PURE__ */ b(De.Control, { borderRadius: "md", cursor: f, children: [
|
|
1402
1482
|
m,
|
|
1403
1483
|
x
|
|
1404
|
-
] }), t[17] = f, t[18] = m, t[19] = x, t[20] =
|
|
1484
|
+
] }), t[17] = f, t[18] = m, t[19] = x, t[20] = y) : y = t[20];
|
|
1485
|
+
let I;
|
|
1486
|
+
t[21] !== r || t[22] !== f ? (I = r != null && /* @__PURE__ */ i(De.Label, { cursor: f, children: r }), t[21] = r, t[22] = f, t[23] = I) : I = t[23];
|
|
1487
|
+
let k;
|
|
1488
|
+
return t[24] !== g || t[25] !== f || t[26] !== s || t[27] !== a || t[28] !== p || t[29] !== y || t[30] !== I ? (k = /* @__PURE__ */ b(De.Root, { ref: a, disabled: g, cursor: f, ...s, children: [
|
|
1489
|
+
p,
|
|
1490
|
+
y,
|
|
1491
|
+
I
|
|
1492
|
+
] }), t[24] = g, t[25] = f, t[26] = s, t[27] = a, t[28] = p, t[29] = y, t[30] = I, t[31] = k) : k = t[31], k;
|
|
1493
|
+
}), Me = (l) => {
|
|
1494
|
+
const e = A(2);
|
|
1495
|
+
let n;
|
|
1496
|
+
return e[0] !== l.children ? (n = /* @__PURE__ */ i($, { textStyle: "label/XS/medium", color: "fg.muted", children: l.children }), e[0] = l.children, e[1] = n) : n = e[1], n;
|
|
1497
|
+
}, je = (l) => {
|
|
1498
|
+
const e = A(19);
|
|
1499
|
+
let n;
|
|
1500
|
+
e[0] !== l.label || e[1] !== l.options || e[2] !== l.value ? (n = l.options.find((g) => g.value === l.value)?.label ?? l.label, e[0] = l.label, e[1] = l.options, e[2] = l.value, e[3] = n) : n = e[3];
|
|
1501
|
+
const t = n;
|
|
1502
|
+
let r;
|
|
1503
|
+
e[4] !== l.label ? (r = /* @__PURE__ */ i(Me, { children: l.label }), e[4] = l.label, e[5] = r) : r = e[5];
|
|
1504
|
+
let o;
|
|
1505
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i(oe, { as: et, color: "fg.muted" }), e[6] = o) : o = e[6];
|
|
1506
|
+
let s;
|
|
1507
|
+
e[7] !== t ? (s = /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ b(de, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
|
|
1508
|
+
t,
|
|
1509
|
+
o
|
|
1510
|
+
] }) }), e[7] = t, e[8] = s) : s = e[8];
|
|
1511
|
+
let a;
|
|
1512
|
+
e[9] !== l ? (a = l.options.map((g) => /* @__PURE__ */ i(le.Item, { value: g.value, onClick: () => l.onSelect(g.value), children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", children: g.label }) }, g.value)), e[9] = l, e[10] = a) : a = e[10];
|
|
1513
|
+
let c;
|
|
1514
|
+
e[11] !== a ? (c = /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "260px", bg: "bg", children: a }) }), e[11] = a, e[12] = c) : c = e[12];
|
|
1515
|
+
let d;
|
|
1516
|
+
e[13] !== s || e[14] !== c ? (d = /* @__PURE__ */ b(le.Root, { children: [
|
|
1517
|
+
s,
|
|
1518
|
+
c
|
|
1519
|
+
] }), e[13] = s, e[14] = c, e[15] = d) : d = e[15];
|
|
1520
|
+
let u;
|
|
1521
|
+
return e[16] !== r || e[17] !== d ? (u = /* @__PURE__ */ b(G, { gap: "2xs", children: [
|
|
1522
|
+
r,
|
|
1523
|
+
d
|
|
1524
|
+
] }), e[16] = r, e[17] = d, e[18] = u) : u = e[18], u;
|
|
1525
|
+
}, ml = (l) => {
|
|
1526
|
+
const e = A(60), {
|
|
1527
|
+
settings: n,
|
|
1528
|
+
groupingOptions: t,
|
|
1529
|
+
orderingOptions: r,
|
|
1530
|
+
displayPropertyOptions: o,
|
|
1531
|
+
onViewModeChange: s,
|
|
1532
|
+
onColumnGroupingChange: a,
|
|
1533
|
+
onRowGroupingChange: c,
|
|
1534
|
+
onOrderingFieldChange: d,
|
|
1535
|
+
onSortDirectionToggle: u,
|
|
1536
|
+
onDisplayPropertyToggle: g
|
|
1537
|
+
} = l;
|
|
1538
|
+
let f;
|
|
1539
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
1540
|
+
placement: "bottom-end",
|
|
1541
|
+
offset: {
|
|
1542
|
+
mainAxis: 8
|
|
1543
|
+
}
|
|
1544
|
+
}, e[0] = f) : f = e[0];
|
|
1545
|
+
let p;
|
|
1546
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ i(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ i(oe, { as: cn, boxSize: "14px" }) }) }), e[1] = p) : p = e[1];
|
|
1547
|
+
let h;
|
|
1548
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ i(Me, { children: "View" }), e[2] = h) : h = e[2];
|
|
1549
|
+
let m;
|
|
1550
|
+
e[3] !== s ? (m = (R) => {
|
|
1551
|
+
R.value && s(R.value);
|
|
1552
|
+
}, e[3] = s, e[4] = m) : m = e[4];
|
|
1553
|
+
let x;
|
|
1554
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ i(ve.Indicator, {}), e[5] = x) : x = e[5];
|
|
1405
1555
|
let y;
|
|
1406
|
-
|
|
1556
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ b(ve.Item, { value: "list", children: [
|
|
1557
|
+
/* @__PURE__ */ i(ve.ItemText, { children: /* @__PURE__ */ b(X, { as: "span", gap: "2xs", children: [
|
|
1558
|
+
/* @__PURE__ */ i(dn, { size: 14 }),
|
|
1559
|
+
/* @__PURE__ */ i("span", { children: "List" })
|
|
1560
|
+
] }) }),
|
|
1561
|
+
/* @__PURE__ */ i(ve.ItemHiddenInput, {})
|
|
1562
|
+
] }), e[6] = y) : y = e[6];
|
|
1563
|
+
let I;
|
|
1564
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ b(ve.Item, { value: "board", children: [
|
|
1565
|
+
/* @__PURE__ */ i(ve.ItemText, { children: /* @__PURE__ */ b(X, { as: "span", gap: "2xs", children: [
|
|
1566
|
+
/* @__PURE__ */ i(un, { size: 14 }),
|
|
1567
|
+
/* @__PURE__ */ i("span", { children: "Board" })
|
|
1568
|
+
] }) }),
|
|
1569
|
+
/* @__PURE__ */ i(ve.ItemHiddenInput, {})
|
|
1570
|
+
] }), e[7] = I) : I = e[7];
|
|
1571
|
+
let k;
|
|
1572
|
+
e[8] !== n.viewMode || e[9] !== m ? (k = /* @__PURE__ */ b(ve.Root, { size: "sm", value: n.viewMode, onValueChange: m, children: [
|
|
1573
|
+
x,
|
|
1574
|
+
y,
|
|
1575
|
+
I
|
|
1576
|
+
] }), e[8] = n.viewMode, e[9] = m, e[10] = k) : k = e[10];
|
|
1577
|
+
let P;
|
|
1578
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ i(Ye, {}), e[11] = P) : P = e[11];
|
|
1579
|
+
let D;
|
|
1580
|
+
e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (D = (R) => {
|
|
1581
|
+
a(R), (R === "none" || R === n.rowGrouping) && c("none");
|
|
1582
|
+
}, e[12] = a, e[13] = c, e[14] = n.rowGrouping, e[15] = D) : D = e[15];
|
|
1583
|
+
let T;
|
|
1584
|
+
e[16] !== t || e[17] !== n.columnGrouping || e[18] !== D ? (T = /* @__PURE__ */ i(je, { label: "Grouping", value: n.columnGrouping, options: t, onSelect: D }), e[16] = t, e[17] = n.columnGrouping, e[18] = D, e[19] = T) : T = e[19];
|
|
1585
|
+
const _ = n.rowGrouping;
|
|
1586
|
+
let S;
|
|
1587
|
+
if (e[20] !== t || e[21] !== n.columnGrouping) {
|
|
1588
|
+
let R;
|
|
1589
|
+
e[23] !== n.columnGrouping ? (R = (F) => F.value === "none" || F.value !== n.columnGrouping, e[23] = n.columnGrouping, e[24] = R) : R = e[24], S = t.filter(R), e[20] = t, e[21] = n.columnGrouping, e[22] = S;
|
|
1590
|
+
} else
|
|
1591
|
+
S = e[22];
|
|
1592
|
+
let C;
|
|
1593
|
+
e[25] !== c || e[26] !== n.rowGrouping || e[27] !== S ? (C = /* @__PURE__ */ i(je, { label: "Sub-grouping", value: _, options: S, onSelect: c }), e[25] = c, e[26] = n.rowGrouping, e[27] = S, e[28] = C) : C = e[28];
|
|
1594
|
+
let w;
|
|
1595
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ i(Me, { children: "Ordering" }), e[29] = w) : w = e[29];
|
|
1407
1596
|
let v;
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
}),
|
|
1414
|
-
|
|
1415
|
-
|
|
1597
|
+
e[30] !== d || e[31] !== r || e[32] !== n.ordering.field ? (v = /* @__PURE__ */ i(je, { label: "Sort by", value: n.ordering.field, options: r, onSelect: d }), e[30] = d, e[31] = r, e[32] = n.ordering.field, e[33] = v) : v = e[33];
|
|
1598
|
+
const E = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
|
|
1599
|
+
let L;
|
|
1600
|
+
e[34] !== E ? (L = /* @__PURE__ */ i(oe, { as: gn, transform: E }), e[34] = E, e[35] = L) : L = e[35];
|
|
1601
|
+
let z;
|
|
1602
|
+
e[36] !== u || e[37] !== n.ordering.direction || e[38] !== L ? (z = /* @__PURE__ */ i(Se, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: u, "data-direction": n.ordering.direction, children: L }), e[36] = u, e[37] = n.ordering.direction, e[38] = L, e[39] = z) : z = e[39];
|
|
1603
|
+
let O;
|
|
1604
|
+
e[40] !== v || e[41] !== z ? (O = /* @__PURE__ */ b(G, { gap: "2xs", children: [
|
|
1605
|
+
w,
|
|
1606
|
+
/* @__PURE__ */ b(X, { gap: "2xs", children: [
|
|
1607
|
+
v,
|
|
1608
|
+
z
|
|
1609
|
+
] })
|
|
1610
|
+
] }), e[40] = v, e[41] = z, e[42] = O) : O = e[42];
|
|
1611
|
+
let W;
|
|
1612
|
+
e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(Ye, {}), e[43] = W) : W = e[43];
|
|
1613
|
+
let H;
|
|
1614
|
+
e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ i(Me, { children: "Display properties" }), e[44] = H) : H = e[44];
|
|
1615
|
+
let B;
|
|
1616
|
+
if (e[45] !== o || e[46] !== g || e[47] !== n.displayProperties) {
|
|
1617
|
+
let R;
|
|
1618
|
+
e[49] !== g || e[50] !== n.displayProperties ? (R = (F) => {
|
|
1619
|
+
const Y = n.displayProperties.includes(F.value);
|
|
1620
|
+
return /* @__PURE__ */ i(de, { size: "2xs", variant: Y ? "solid" : "outline", onClick: () => g(F.value), children: F.label }, F.value);
|
|
1621
|
+
}, e[49] = g, e[50] = n.displayProperties, e[51] = R) : R = e[51], B = o.map(R), e[45] = o, e[46] = g, e[47] = n.displayProperties, e[48] = B;
|
|
1622
|
+
} else
|
|
1623
|
+
B = e[48];
|
|
1624
|
+
let N;
|
|
1625
|
+
e[52] !== B ? (N = /* @__PURE__ */ b(G, { gap: "2xs", children: [
|
|
1626
|
+
H,
|
|
1627
|
+
/* @__PURE__ */ i(X, { flexWrap: "wrap", gap: "2xs", children: B })
|
|
1628
|
+
] }), e[52] = B, e[53] = N) : N = e[53];
|
|
1629
|
+
let M;
|
|
1630
|
+
return e[54] !== T || e[55] !== C || e[56] !== O || e[57] !== N || e[58] !== k ? (M = /* @__PURE__ */ b(Ie.Root, { positioning: f, children: [
|
|
1631
|
+
p,
|
|
1632
|
+
/* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ie.Positioner, { children: /* @__PURE__ */ i(Ie.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ b(G, { gap: "sm", children: [
|
|
1633
|
+
h,
|
|
1634
|
+
k,
|
|
1635
|
+
P,
|
|
1636
|
+
T,
|
|
1637
|
+
C,
|
|
1638
|
+
O,
|
|
1639
|
+
W,
|
|
1640
|
+
N
|
|
1641
|
+
] }) }) }) })
|
|
1642
|
+
] }), e[54] = T, e[55] = C, e[56] = O, e[57] = N, e[58] = k, e[59] = M) : M = e[59], M;
|
|
1643
|
+
}, bl = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), xl = (l) => {
|
|
1644
|
+
const e = A(39), {
|
|
1645
|
+
categories: n,
|
|
1646
|
+
filters: t,
|
|
1647
|
+
countsByCategory: r,
|
|
1648
|
+
onToggleFilterValue: o,
|
|
1649
|
+
onClearFilter: s,
|
|
1650
|
+
onClearAll: a
|
|
1651
|
+
} = l, [c, d] = me(n[0]?.id ?? "status");
|
|
1652
|
+
let u;
|
|
1653
|
+
e[0] !== c || e[1] !== n ? (u = n.find((v) => v.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = u) : u = e[2];
|
|
1654
|
+
const g = u, f = bl(t);
|
|
1655
|
+
let p;
|
|
1656
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
1657
|
+
placement: "bottom-end",
|
|
1658
|
+
offset: {
|
|
1659
|
+
mainAxis: 8
|
|
1660
|
+
}
|
|
1661
|
+
}, e[3] = p) : p = e[3];
|
|
1662
|
+
const h = f > 0 ? "outline" : "ghost";
|
|
1663
|
+
let m;
|
|
1664
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(oe, { as: fn, boxSize: "14px" }), e[4] = m) : m = e[4];
|
|
1665
|
+
let x;
|
|
1666
|
+
e[5] !== f ? (x = f > 0 ? /* @__PURE__ */ i(Te, { variant: "solid", children: f }) : null, e[5] = f, e[6] = x) : x = e[6];
|
|
1667
|
+
let y;
|
|
1668
|
+
e[7] !== x ? (y = /* @__PURE__ */ b(X, { gap: "2xs", children: [
|
|
1669
|
+
m,
|
|
1670
|
+
x
|
|
1671
|
+
] }), e[7] = x, e[8] = y) : y = e[8];
|
|
1672
|
+
let I;
|
|
1673
|
+
e[9] !== h || e[10] !== y ? (I = /* @__PURE__ */ i(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Filter tickets", variant: h, size: "sm", children: y }) }), e[9] = h, e[10] = y, e[11] = I) : I = e[11];
|
|
1674
|
+
let k;
|
|
1675
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i($, { textStyle: "label/XS/medium", color: "fg.muted", children: "Filters" }), e[12] = k) : k = e[12];
|
|
1676
|
+
let P;
|
|
1677
|
+
e[13] !== a ? (P = /* @__PURE__ */ b(X, { justifyContent: "space-between", children: [
|
|
1678
|
+
k,
|
|
1679
|
+
/* @__PURE__ */ i(de, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
|
|
1680
|
+
] }), e[13] = a, e[14] = P) : P = e[14];
|
|
1681
|
+
let D;
|
|
1682
|
+
if (e[15] !== c || e[16] !== n || e[17] !== t) {
|
|
1683
|
+
let v;
|
|
1684
|
+
e[19] !== c || e[20] !== t ? (v = (E) => {
|
|
1685
|
+
const L = t[E.id] ?? [];
|
|
1686
|
+
return /* @__PURE__ */ b(de, { variant: c === E.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(E.id), children: [
|
|
1687
|
+
/* @__PURE__ */ i($, { children: E.label }),
|
|
1688
|
+
L.length > 0 ? /* @__PURE__ */ i(Te, { variant: "subtle", children: L.length }) : null
|
|
1689
|
+
] }, E.id);
|
|
1690
|
+
}, e[19] = c, e[20] = t, e[21] = v) : v = e[21], D = n.map(v), e[15] = c, e[16] = n, e[17] = t, e[18] = D;
|
|
1691
|
+
} else
|
|
1692
|
+
D = e[18];
|
|
1693
|
+
let T;
|
|
1694
|
+
e[22] !== P || e[23] !== D ? (T = /* @__PURE__ */ b(G, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
|
|
1695
|
+
P,
|
|
1696
|
+
D
|
|
1697
|
+
] }), e[22] = P, e[23] = D, e[24] = T) : T = e[24];
|
|
1698
|
+
let _;
|
|
1699
|
+
e[25] !== g || e[26] !== r || e[27] !== t || e[28] !== s || e[29] !== o ? (_ = g ? /* @__PURE__ */ b(Ze, { children: [
|
|
1700
|
+
/* @__PURE__ */ b(X, { justifyContent: "space-between", children: [
|
|
1701
|
+
/* @__PURE__ */ i($, { textStyle: "label/S/medium", children: g.label }),
|
|
1702
|
+
/* @__PURE__ */ i(de, { size: "2xs", variant: "ghost", onClick: () => s(g.id), children: "Clear" })
|
|
1703
|
+
] }),
|
|
1704
|
+
/* @__PURE__ */ i(G, { gap: "2xs", children: g.options.map((v) => {
|
|
1705
|
+
const E = (t[g.id] ?? []).includes(v.value), L = r[g.id]?.[v.value] ?? 0;
|
|
1706
|
+
return /* @__PURE__ */ i(V, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
|
|
1707
|
+
bg: "bg.subtle"
|
|
1708
|
+
}, children: /* @__PURE__ */ i(vn, { checked: E, onCheckedChange: () => o(g.id, v.value), children: /* @__PURE__ */ b(X, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
|
|
1709
|
+
/* @__PURE__ */ i($, { textStyle: "label/S/regular", children: v.label }),
|
|
1710
|
+
/* @__PURE__ */ i($, { textStyle: "label/XS/regular", color: "fg.muted", children: L })
|
|
1711
|
+
] }) }) }, v.value);
|
|
1712
|
+
}) })
|
|
1713
|
+
] }) : null, e[25] = g, e[26] = r, e[27] = t, e[28] = s, e[29] = o, e[30] = _) : _ = e[30];
|
|
1714
|
+
let S;
|
|
1715
|
+
e[31] !== _ ? (S = /* @__PURE__ */ i(G, { flex: "1", p: "sm", gap: "sm", children: _ }), e[31] = _, e[32] = S) : S = e[32];
|
|
1716
|
+
let C;
|
|
1717
|
+
e[33] !== T || e[34] !== S ? (C = /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ie.Positioner, { children: /* @__PURE__ */ i(Ie.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ b(X, { align: "stretch", gap: "0", minH: "320px", children: [
|
|
1718
|
+
T,
|
|
1719
|
+
S
|
|
1720
|
+
] }) }) }) }), e[33] = T, e[34] = S, e[35] = C) : C = e[35];
|
|
1721
|
+
let w;
|
|
1722
|
+
return e[36] !== C || e[37] !== I ? (w = /* @__PURE__ */ b(Ie.Root, { positioning: p, children: [
|
|
1723
|
+
I,
|
|
1724
|
+
C
|
|
1725
|
+
] }), e[36] = C, e[37] = I, e[38] = w) : w = e[38], w;
|
|
1726
|
+
}, Dt = (l) => {
|
|
1727
|
+
const e = A(43), {
|
|
1728
|
+
ticketId: n,
|
|
1416
1729
|
parentPath: t,
|
|
1417
|
-
sessionIndicatorLabel:
|
|
1418
|
-
sessionIndicatorStatus:
|
|
1730
|
+
sessionIndicatorLabel: r,
|
|
1731
|
+
sessionIndicatorStatus: o,
|
|
1419
1732
|
title: s,
|
|
1420
1733
|
badges: a,
|
|
1421
1734
|
diffAdditions: c,
|
|
1422
1735
|
diffDeletions: d,
|
|
1423
|
-
isSelected:
|
|
1736
|
+
isSelected: u,
|
|
1424
1737
|
draggable: g,
|
|
1425
1738
|
onDragStart: f,
|
|
1426
|
-
onDragEnd:
|
|
1427
|
-
onClick:
|
|
1739
|
+
onDragEnd: p,
|
|
1740
|
+
onClick: h,
|
|
1428
1741
|
onDiffBadgeClick: m,
|
|
1429
1742
|
onSessionIndicatorClick: x
|
|
1430
|
-
} =
|
|
1431
|
-
let
|
|
1432
|
-
e[0] !== t ? (
|
|
1433
|
-
const
|
|
1434
|
-
let
|
|
1435
|
-
e[2] !== a ? (
|
|
1436
|
-
const
|
|
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;
|
|
1743
|
+
} = l;
|
|
1744
|
+
let y;
|
|
1745
|
+
e[0] !== t ? (y = t === void 0 ? [] : t, e[0] = t, e[1] = y) : y = e[1];
|
|
1746
|
+
const I = y;
|
|
1747
|
+
let k;
|
|
1748
|
+
e[2] !== a ? (k = a === void 0 ? [] : a, e[2] = a, e[3] = k) : k = e[3];
|
|
1749
|
+
const P = k, D = u === void 0 ? !1 : u;
|
|
1442
1750
|
let T;
|
|
1443
|
-
e[
|
|
1444
|
-
|
|
1445
|
-
}, e[
|
|
1446
|
-
const
|
|
1447
|
-
let
|
|
1448
|
-
e[
|
|
1751
|
+
e[4] !== m ? (T = (F) => {
|
|
1752
|
+
F.stopPropagation(), m?.();
|
|
1753
|
+
}, e[4] = m, e[5] = T) : T = e[5];
|
|
1754
|
+
const _ = T;
|
|
1755
|
+
let S;
|
|
1756
|
+
e[6] !== x ? (S = (F) => {
|
|
1757
|
+
F.stopPropagation(), x?.();
|
|
1758
|
+
}, e[6] = x, e[7] = S) : S = e[7];
|
|
1759
|
+
const C = S;
|
|
1760
|
+
let w;
|
|
1761
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
|
|
1449
1762
|
borderColor: "border.blue",
|
|
1450
1763
|
boxShadow: "mid"
|
|
1451
|
-
}, e[8] =
|
|
1452
|
-
const
|
|
1453
|
-
let
|
|
1454
|
-
e[9] !==
|
|
1455
|
-
|
|
1764
|
+
}, e[8] = w) : w = e[8];
|
|
1765
|
+
const v = g ? "grab" : h ? "pointer" : "default", E = D ? "true" : void 0;
|
|
1766
|
+
let L;
|
|
1767
|
+
e[9] !== I ? (L = I.length > 0 && /* @__PURE__ */ b($, { as: "span", color: "subtle", children: [
|
|
1768
|
+
I.join(" / "),
|
|
1456
1769
|
" /",
|
|
1457
1770
|
" "
|
|
1458
|
-
] }), e[9] =
|
|
1771
|
+
] }), e[9] = I, e[10] = L) : L = e[10];
|
|
1772
|
+
let z;
|
|
1773
|
+
e[11] !== L || e[12] !== n ? (z = /* @__PURE__ */ b($, { textStyle: "label/S/regular", flexShrink: 0, children: [
|
|
1774
|
+
L,
|
|
1775
|
+
n
|
|
1776
|
+
] }), e[11] = L, e[12] = n, e[13] = z) : z = e[13];
|
|
1777
|
+
let O;
|
|
1778
|
+
e[14] !== C || e[15] !== x || e[16] !== r || e[17] !== o ? (O = r ? /* @__PURE__ */ i(Ee, { content: `Session ${r}`, children: /* @__PURE__ */ i(Jn, { status: o, boxSize: "12px", "aria-label": `Session ${r}`, cursor: x ? "pointer" : "default", onClick: x ? C : void 0 }) }) : null, e[14] = C, e[15] = x, e[16] = r, e[17] = o, e[18] = O) : O = e[18];
|
|
1779
|
+
let W;
|
|
1780
|
+
e[19] !== z || e[20] !== O ? (W = /* @__PURE__ */ b(X, { gap: "2xs", flexShrink: 0, children: [
|
|
1781
|
+
z,
|
|
1782
|
+
O
|
|
1783
|
+
] }), e[19] = z, e[20] = O, e[21] = W) : W = e[21];
|
|
1459
1784
|
let H;
|
|
1460
|
-
e[
|
|
1461
|
-
N,
|
|
1462
|
-
l
|
|
1463
|
-
] }), e[11] = N, e[12] = l, e[13] = H) : H = e[13];
|
|
1464
|
-
let M;
|
|
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];
|
|
1785
|
+
e[22] !== c || e[23] !== d || e[24] !== _ ? (H = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(St, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(pn, { size: "12" }), onClick: _, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = _, e[25] = H) : H = e[25];
|
|
1466
1786
|
let B;
|
|
1467
|
-
e[
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
] }), e[
|
|
1471
|
-
let
|
|
1472
|
-
e[
|
|
1473
|
-
let
|
|
1474
|
-
e[
|
|
1787
|
+
e[26] !== W || e[27] !== H ? (B = /* @__PURE__ */ b(X, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
|
|
1788
|
+
W,
|
|
1789
|
+
H
|
|
1790
|
+
] }), e[26] = W, e[27] = H, e[28] = B) : B = e[28];
|
|
1791
|
+
let N;
|
|
1792
|
+
e[29] !== s ? (N = /* @__PURE__ */ i(X, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", flex: "1", minW: "0", children: s }) }), e[29] = s, e[30] = N) : N = e[30];
|
|
1793
|
+
let M;
|
|
1794
|
+
e[31] !== P ? (M = P.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", children: P.map(Sl) }), e[31] = P, e[32] = M) : M = e[32];
|
|
1795
|
+
let R;
|
|
1796
|
+
return e[33] !== g || e[34] !== h || e[35] !== p || e[36] !== f || e[37] !== B || e[38] !== N || e[39] !== M || e[40] !== v || e[41] !== E ? (R = /* @__PURE__ */ b(G, { 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: w, cursor: v, draggable: g, onDragStart: f, onDragEnd: p, onClick: h, "data-selected": E, children: [
|
|
1475
1797
|
B,
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
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];
|
|
1480
|
-
let G;
|
|
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];
|
|
1482
|
-
let Q;
|
|
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: [
|
|
1484
|
-
j,
|
|
1485
|
-
_,
|
|
1486
|
-
G
|
|
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;
|
|
1798
|
+
N,
|
|
1799
|
+
M
|
|
1800
|
+
] }), e[33] = g, e[34] = h, e[35] = p, e[36] = f, e[37] = B, e[38] = N, e[39] = M, e[40] = v, e[41] = E, e[42] = R) : R = e[42], R;
|
|
1488
1801
|
};
|
|
1489
|
-
function
|
|
1490
|
-
return /* @__PURE__ */ i(
|
|
1802
|
+
function Sl(l) {
|
|
1803
|
+
return /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
|
|
1491
1804
|
}
|
|
1492
|
-
const
|
|
1493
|
-
const e =
|
|
1494
|
-
columns:
|
|
1805
|
+
const yl = (l) => {
|
|
1806
|
+
const e = A(27), {
|
|
1807
|
+
columns: n,
|
|
1495
1808
|
selectedItemId: t,
|
|
1496
|
-
onMoveItem:
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1809
|
+
onMoveItem: r,
|
|
1810
|
+
onMoveToGroup: o,
|
|
1811
|
+
onCreateStart: s,
|
|
1812
|
+
onColumnAction: a
|
|
1813
|
+
} = l, c = t === void 0 ? null : t, [d, u] = me(null), [g, f] = me(null), p = wl;
|
|
1814
|
+
let h;
|
|
1815
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
|
|
1816
|
+
u(null), f(null);
|
|
1817
|
+
}, e[0] = h) : h = e[0];
|
|
1818
|
+
const m = h;
|
|
1819
|
+
let x;
|
|
1820
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (C) => (w) => {
|
|
1821
|
+
w.preventDefault(), w.dataTransfer.dropEffect = "move", u(C);
|
|
1822
|
+
}, e[1] = x) : x = e[1];
|
|
1823
|
+
const y = x;
|
|
1824
|
+
let I;
|
|
1825
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (C) => {
|
|
1826
|
+
C.currentTarget.contains(C.relatedTarget) || u(null);
|
|
1827
|
+
}, e[2] = I) : I = e[2];
|
|
1828
|
+
const k = I;
|
|
1829
|
+
let P;
|
|
1830
|
+
e[3] !== r ? (P = (C) => (w) => {
|
|
1831
|
+
w.preventDefault(), u(null);
|
|
1832
|
+
const v = w.dataTransfer.getData("text/plain");
|
|
1833
|
+
v && r?.(v, C);
|
|
1834
|
+
}, e[3] = r, e[4] = P) : P = e[4];
|
|
1835
|
+
const D = P;
|
|
1836
|
+
let T;
|
|
1837
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
1524
1838
|
display: "flex",
|
|
1525
1839
|
alignItems: "stretch",
|
|
1526
1840
|
gap: "0",
|
|
1527
1841
|
pb: "2xs",
|
|
1528
1842
|
minH: "100%"
|
|
1529
|
-
}, e[5] =
|
|
1530
|
-
let
|
|
1531
|
-
if (e[6] !==
|
|
1532
|
-
let
|
|
1533
|
-
e[
|
|
1843
|
+
}, e[5] = T) : T = e[5];
|
|
1844
|
+
let _;
|
|
1845
|
+
if (e[6] !== d || e[7] !== g || e[8] !== n || e[9] !== D || e[10] !== a || e[11] !== s || e[12] !== r || e[13] !== o || e[14] !== c) {
|
|
1846
|
+
let C;
|
|
1847
|
+
e[16] !== d || e[17] !== g || e[18] !== D || e[19] !== a || e[20] !== s || e[21] !== r || e[22] !== o || e[23] !== c ? (C = (w) => /* @__PURE__ */ b(G, { "data-testid": `board-column-${w.id}`, gap: "xs", _notFirst: {
|
|
1534
1848
|
borderLeft: "1px solid",
|
|
1535
1849
|
borderColor: "border"
|
|
1536
|
-
}, background:
|
|
1537
|
-
/* @__PURE__ */ i(
|
|
1538
|
-
/* @__PURE__ */ i(
|
|
1850
|
+
}, background: d === w.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: w.canDragIn ? y(w.id) : void 0, onDragLeave: w.canDragIn ? k : void 0, onDrop: w.canDragIn ? D(w.id) : void 0, children: [
|
|
1851
|
+
/* @__PURE__ */ i(vl, { column: w, onCreateStart: s, onColumnAction: a }),
|
|
1852
|
+
/* @__PURE__ */ i(ye, { flex: "1", minH: "0", contentProps: {
|
|
1539
1853
|
spaceY: "sm"
|
|
1540
|
-
}, children: w.
|
|
1541
|
-
|
|
1854
|
+
}, children: w.groups && w.groups.length > 0 ? w.groups.map((v) => {
|
|
1855
|
+
const E = `${w.id}::${v.key}`;
|
|
1856
|
+
return /* @__PURE__ */ i(Cl, { group: v, selectedItemId: c, canDragIn: w.canDragIn, canDragOut: w.canDragOut, isDropTarget: g === E, onDragStart: p, onDragEnd: m, onGroupDragOver: (L) => {
|
|
1857
|
+
L.preventDefault(), L.stopPropagation(), L.dataTransfer.dropEffect = "move", f(E), u(null);
|
|
1858
|
+
}, onGroupDragLeave: (L) => {
|
|
1859
|
+
L.currentTarget.contains(L.relatedTarget) || f(null);
|
|
1860
|
+
}, onGroupDrop: (L) => {
|
|
1861
|
+
L.preventDefault(), L.stopPropagation(), f(null), u(null);
|
|
1862
|
+
const z = L.dataTransfer.getData("text/plain");
|
|
1863
|
+
z && (r?.(z, w.id), o?.(z, v.key));
|
|
1864
|
+
} }, v.key);
|
|
1865
|
+
}) : w.items.map((v) => /* @__PURE__ */ i(Dt, { ...v.cardProps, isSelected: v.id === c, draggable: w.canDragOut, onDragStart: w.canDragOut ? p(v.id) : void 0, onDragEnd: w.canDragOut ? m : void 0 }, v.id)) })
|
|
1866
|
+
] }, w.id), e[16] = d, e[17] = g, e[18] = D, e[19] = a, e[20] = s, e[21] = r, e[22] = o, e[23] = c, e[24] = C) : C = e[24], _ = n.map(C), e[6] = d, e[7] = g, e[8] = n, e[9] = D, e[10] = a, e[11] = s, e[12] = r, e[13] = o, e[14] = c, e[15] = _;
|
|
1542
1867
|
} else
|
|
1543
|
-
|
|
1544
|
-
let
|
|
1545
|
-
return e[
|
|
1546
|
-
},
|
|
1547
|
-
const e =
|
|
1548
|
-
|
|
1868
|
+
_ = e[15];
|
|
1869
|
+
let S;
|
|
1870
|
+
return e[25] !== _ ? (S = /* @__PURE__ */ i(ye, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: _ }), e[25] = _, e[26] = S) : S = e[26], S;
|
|
1871
|
+
}, Cl = (l) => {
|
|
1872
|
+
const e = A(26), {
|
|
1873
|
+
group: n,
|
|
1874
|
+
selectedItemId: t,
|
|
1875
|
+
canDragIn: r,
|
|
1876
|
+
canDragOut: o,
|
|
1877
|
+
isDropTarget: s,
|
|
1878
|
+
onDragStart: a,
|
|
1879
|
+
onDragEnd: c,
|
|
1880
|
+
onGroupDragOver: d,
|
|
1881
|
+
onGroupDragLeave: u,
|
|
1882
|
+
onGroupDrop: g
|
|
1883
|
+
} = l, [f, p] = me(!0), h = s ? "bg.subtle" : "transparent", m = r ? d : void 0, x = r ? u : void 0, y = r ? g : void 0;
|
|
1884
|
+
let I;
|
|
1885
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
|
|
1886
|
+
bg: "bg.muted"
|
|
1887
|
+
}, e[0] = I) : I = e[0];
|
|
1888
|
+
let k;
|
|
1889
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => p(Il), e[1] = k) : k = e[1];
|
|
1890
|
+
const P = f ? "rotate(90deg)" : "rotate(0deg)";
|
|
1891
|
+
let D;
|
|
1892
|
+
e[2] !== P ? (D = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ i(oe, { as: Ce, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = D) : D = e[3];
|
|
1893
|
+
let T;
|
|
1894
|
+
e[4] !== n.label ? (T = /* @__PURE__ */ i($, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = T) : T = e[5];
|
|
1895
|
+
let _;
|
|
1896
|
+
e[6] !== n.items.length ? (_ = /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = _) : _ = e[7];
|
|
1897
|
+
let S;
|
|
1898
|
+
e[8] !== D || e[9] !== T || e[10] !== _ ? (S = /* @__PURE__ */ b(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: I, borderRadius: "sm", onClick: k, children: [
|
|
1899
|
+
D,
|
|
1900
|
+
T,
|
|
1901
|
+
_
|
|
1902
|
+
] }), e[8] = D, e[9] = T, e[10] = _, e[11] = S) : S = e[11];
|
|
1903
|
+
let C;
|
|
1904
|
+
e[12] !== o || e[13] !== f || e[14] !== n.items || e[15] !== c || e[16] !== a || e[17] !== t ? (C = f && /* @__PURE__ */ i(G, { gap: "sm", pt: "xs", children: n.items.map((v) => /* @__PURE__ */ i(Dt, { ...v.cardProps, isSelected: v.id === t, draggable: o, onDragStart: o ? a(v.id) : void 0, onDragEnd: o ? c : void 0 }, v.id)) }), e[12] = o, e[13] = f, e[14] = n.items, e[15] = c, e[16] = a, e[17] = t, e[18] = C) : C = e[18];
|
|
1905
|
+
let w;
|
|
1906
|
+
return e[19] !== h || e[20] !== m || e[21] !== S || e[22] !== C || e[23] !== x || e[24] !== y ? (w = /* @__PURE__ */ b(G, { gap: "0", borderRadius: "sm", background: h, transition: "background 150ms ease", onDragOver: m, onDragLeave: x, onDrop: y, children: [
|
|
1907
|
+
S,
|
|
1908
|
+
C
|
|
1909
|
+
] }), e[19] = h, e[20] = m, e[21] = S, e[22] = C, e[23] = x, e[24] = y, e[25] = w) : w = e[25], w;
|
|
1910
|
+
}, vl = (l) => {
|
|
1911
|
+
const e = A(20), {
|
|
1912
|
+
column: n,
|
|
1549
1913
|
onCreateStart: t,
|
|
1550
|
-
onColumnAction:
|
|
1551
|
-
} =
|
|
1552
|
-
let
|
|
1553
|
-
e[0] !==
|
|
1554
|
-
const s =
|
|
1914
|
+
onColumnAction: r
|
|
1915
|
+
} = l;
|
|
1916
|
+
let o;
|
|
1917
|
+
e[0] !== n.label ? (o = /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = o) : o = e[1];
|
|
1918
|
+
const s = n.color ?? "gray";
|
|
1555
1919
|
let a;
|
|
1556
|
-
e[2] !==
|
|
1920
|
+
e[2] !== n.items.length || e[3] !== s ? (a = /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: s, children: n.items.length }), e[2] = n.items.length, e[3] = s, e[4] = a) : a = e[4];
|
|
1557
1921
|
let c;
|
|
1558
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(
|
|
1922
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(Ht, {}), e[5] = c) : c = e[5];
|
|
1559
1923
|
let d;
|
|
1560
|
-
e[6] !==
|
|
1561
|
-
let
|
|
1562
|
-
e[10] !==
|
|
1563
|
-
/* @__PURE__ */ i(
|
|
1564
|
-
/* @__PURE__ */ i(
|
|
1565
|
-
] }), e[10] =
|
|
1924
|
+
e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ i(Ee, { content: "Create new ticket", children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(oe, { as: hn, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
|
|
1925
|
+
let u;
|
|
1926
|
+
e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== r ? (u = n.actions.length > 0 && /* @__PURE__ */ b(le.Root, { children: [
|
|
1927
|
+
/* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ i(oe, { as: mn, boxSize: "12px" }) }) }),
|
|
1928
|
+
/* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "180px", bg: "bg", children: n.actions.map((f) => /* @__PURE__ */ i(We, { primaryLabel: f.label, leftIcon: f.icon, onClick: () => r?.(n.id, f.id) }, f.id)) }) })
|
|
1929
|
+
] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = r, e[14] = u) : u = e[14];
|
|
1566
1930
|
let g;
|
|
1567
|
-
return e[15] !==
|
|
1568
|
-
|
|
1931
|
+
return e[15] !== o || e[16] !== a || e[17] !== d || e[18] !== u ? (g = /* @__PURE__ */ b(X, { padding: "xs", gap: "xs", alignItems: "center", children: [
|
|
1932
|
+
o,
|
|
1569
1933
|
a,
|
|
1570
1934
|
c,
|
|
1571
1935
|
d,
|
|
1572
|
-
|
|
1573
|
-
] }), e[15] =
|
|
1936
|
+
u
|
|
1937
|
+
] }), e[15] = o, e[16] = a, e[17] = d, e[18] = u, e[19] = g) : g = e[19], g;
|
|
1574
1938
|
};
|
|
1575
|
-
function
|
|
1939
|
+
function wl(l) {
|
|
1576
1940
|
return (e) => {
|
|
1577
|
-
e.dataTransfer.setData("text/plain",
|
|
1941
|
+
e.dataTransfer.setData("text/plain", l), e.dataTransfer.effectAllowed = "move";
|
|
1578
1942
|
};
|
|
1579
1943
|
}
|
|
1580
|
-
|
|
1944
|
+
function Il(l) {
|
|
1945
|
+
return !l;
|
|
1946
|
+
}
|
|
1947
|
+
const kl = [{
|
|
1581
1948
|
id: "ticket",
|
|
1582
1949
|
header: "",
|
|
1583
1950
|
cell: ({
|
|
1584
|
-
row:
|
|
1585
|
-
}) => /* @__PURE__ */ i(
|
|
1586
|
-
}],
|
|
1951
|
+
row: l
|
|
1952
|
+
}) => /* @__PURE__ */ i(Tl, { row: l })
|
|
1953
|
+
}], Pl = (l) => {
|
|
1587
1954
|
const {
|
|
1588
1955
|
items: e,
|
|
1589
|
-
selectedItemId:
|
|
1956
|
+
selectedItemId: n = null,
|
|
1590
1957
|
onItemClick: t
|
|
1591
|
-
} =
|
|
1958
|
+
} = l, [r, o] = me(!0), s = bn({
|
|
1592
1959
|
data: e,
|
|
1593
|
-
columns:
|
|
1960
|
+
columns: kl,
|
|
1594
1961
|
state: {
|
|
1595
|
-
expanded:
|
|
1962
|
+
expanded: r
|
|
1596
1963
|
},
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1964
|
+
onExpandedChange: o,
|
|
1965
|
+
getSubRows: (a) => a.children,
|
|
1966
|
+
getCoreRowModel: Sn(),
|
|
1967
|
+
getExpandedRowModel: xn(),
|
|
1968
|
+
getRowId: (a) => a.id
|
|
1601
1969
|
});
|
|
1602
|
-
return /* @__PURE__ */ i(
|
|
1603
|
-
const
|
|
1604
|
-
return /* @__PURE__ */ i(
|
|
1970
|
+
return /* @__PURE__ */ i(V, { children: s.getRowModel().rows.map((a) => {
|
|
1971
|
+
const c = a.original, d = c.id === n, u = a.getCanExpand();
|
|
1972
|
+
return /* @__PURE__ */ i(X, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: d ? "bg.muted" : "transparent", _hover: {
|
|
1605
1973
|
background: "bg.muted"
|
|
1606
1974
|
}, onClick: () => {
|
|
1607
|
-
|
|
1608
|
-
}, "data-selected":
|
|
1975
|
+
u ? a.toggleExpanded() : (c.onClick?.(), t?.(c));
|
|
1976
|
+
}, "data-selected": d ? "true" : void 0, children: yn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
|
|
1609
1977
|
}) });
|
|
1610
|
-
},
|
|
1611
|
-
const e =
|
|
1612
|
-
row:
|
|
1613
|
-
} =
|
|
1978
|
+
}, Tl = (l) => {
|
|
1979
|
+
const e = A(25), {
|
|
1980
|
+
row: n
|
|
1981
|
+
} = l, t = n.original, r = n.depth, o = r > 0 ? `${r * 24}px` : void 0;
|
|
1614
1982
|
let s;
|
|
1615
|
-
e[0] !==
|
|
1983
|
+
e[0] !== r || e[1] !== n ? (s = n.getCanExpand() ? /* @__PURE__ */ i(Dl, { row: n }) : r > 0 ? /* @__PURE__ */ i(_l, {}) : null, e[0] = r, e[1] = n, e[2] = s) : s = e[2];
|
|
1616
1984
|
let a;
|
|
1617
|
-
e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(
|
|
1985
|
+
e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(oe, { 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];
|
|
1618
1986
|
let c;
|
|
1619
|
-
e[6] !== t.ticketId ? (c = /* @__PURE__ */ i(
|
|
1987
|
+
e[6] !== t.ticketId ? (c = /* @__PURE__ */ i($, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
|
|
1620
1988
|
let d;
|
|
1621
|
-
e[8] !== t.title ? (d = /* @__PURE__ */ i(
|
|
1622
|
-
let
|
|
1623
|
-
e[10] !== t.badges ? (
|
|
1989
|
+
e[8] !== t.title ? (d = /* @__PURE__ */ i($, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
|
|
1990
|
+
let u;
|
|
1991
|
+
e[10] !== t.badges ? (u = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", flexShrink: 0, children: t.badges.map($l) }), e[10] = t.badges, e[11] = u) : u = e[11];
|
|
1624
1992
|
let g;
|
|
1625
|
-
e[12] !== t.assigneeIcon ? (g = t.assigneeIcon && /* @__PURE__ */ i(
|
|
1993
|
+
e[12] !== t.assigneeIcon ? (g = t.assigneeIcon && /* @__PURE__ */ i(V, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = g) : g = e[13];
|
|
1626
1994
|
let f;
|
|
1627
|
-
e[14] !== t.date ? (f = t.date && /* @__PURE__ */ i(
|
|
1628
|
-
let
|
|
1629
|
-
return e[16] !==
|
|
1995
|
+
e[14] !== t.date ? (f = t.date && /* @__PURE__ */ i($, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = f) : f = e[15];
|
|
1996
|
+
let p;
|
|
1997
|
+
return e[16] !== o || e[17] !== s || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== u || e[22] !== g || e[23] !== f ? (p = /* @__PURE__ */ b(X, { gap: "sm", flex: "1", paddingLeft: o, children: [
|
|
1630
1998
|
s,
|
|
1631
1999
|
a,
|
|
1632
2000
|
c,
|
|
1633
2001
|
d,
|
|
1634
|
-
|
|
2002
|
+
u,
|
|
1635
2003
|
g,
|
|
1636
2004
|
f
|
|
1637
|
-
] }), e[16] =
|
|
1638
|
-
},
|
|
1639
|
-
const e =
|
|
1640
|
-
row:
|
|
1641
|
-
} = n;
|
|
1642
|
-
let
|
|
1643
|
-
e[0] !==
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
const n = $(1);
|
|
2005
|
+
] }), e[16] = o, e[17] = s, e[18] = a, e[19] = c, e[20] = d, e[21] = u, e[22] = g, e[23] = f, e[24] = p) : p = e[24], p;
|
|
2006
|
+
}, Dl = (l) => {
|
|
2007
|
+
const e = A(6), {
|
|
2008
|
+
row: n
|
|
2009
|
+
} = l, t = n.getIsExpanded(), r = t ? "true" : void 0, o = t ? "Collapse group" : "Expand group", s = t ? "rotate(90deg)" : "rotate(0deg)";
|
|
2010
|
+
let a;
|
|
2011
|
+
e[0] !== s ? (a = /* @__PURE__ */ i(Ce, { size: 14, style: {
|
|
2012
|
+
color: "var(--chakra-colors-fg-muted)",
|
|
2013
|
+
transform: s,
|
|
2014
|
+
transition: "transform 0.15s ease"
|
|
2015
|
+
} }), e[0] = s, e[1] = a) : a = e[1];
|
|
2016
|
+
let c;
|
|
2017
|
+
return e[2] !== r || e[3] !== o || e[4] !== a ? (c = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", "data-expanded": r, "aria-label": o, children: a }), e[2] = r, e[3] = o, e[4] = a, e[5] = c) : c = e[5], c;
|
|
2018
|
+
}, _l = () => {
|
|
2019
|
+
const l = A(1);
|
|
1653
2020
|
let e;
|
|
1654
|
-
return
|
|
1655
|
-
/* @__PURE__ */ i(
|
|
1656
|
-
/* @__PURE__ */ i(
|
|
1657
|
-
] }),
|
|
2021
|
+
return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(V, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
|
|
2022
|
+
/* @__PURE__ */ i(V, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
|
|
2023
|
+
/* @__PURE__ */ i(V, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
|
|
2024
|
+
] }), l[0] = e) : e = l[0], e;
|
|
2025
|
+
};
|
|
2026
|
+
function $l(l) {
|
|
2027
|
+
return /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
|
|
2028
|
+
}
|
|
2029
|
+
const ke = {
|
|
2030
|
+
status: "No status",
|
|
2031
|
+
complexity: "Unspecified",
|
|
2032
|
+
assignee: "Unassigned",
|
|
2033
|
+
priority: "Unspecified"
|
|
2034
|
+
}, dt = {
|
|
2035
|
+
high: 3,
|
|
2036
|
+
medium: 2,
|
|
2037
|
+
low: 1
|
|
2038
|
+
}, ut = {
|
|
2039
|
+
p0: 5,
|
|
2040
|
+
p1: 4,
|
|
2041
|
+
p2: 3,
|
|
2042
|
+
p3: 2,
|
|
2043
|
+
p4: 1
|
|
2044
|
+
}, Pe = (l, e) => !l || l.trim() === "" ? e : l, gt = (l, e) => e === "none" ? "All" : e === "status" ? Pe(l.status, ke.status) : e === "complexity" ? Pe(l.complexity, ke.complexity) : e === "assignee" ? Pe(l.assignee, ke.assignee) : Pe(l.priority, ke.priority), ft = (l, e) => l.localeCompare(e, void 0, {
|
|
2045
|
+
numeric: !0
|
|
2046
|
+
}), Ae = (l, e) => e === "asc" ? l : l * -1, Ge = (l, e) => e.field === "manual" ? l : [...l].sort((n, t) => {
|
|
2047
|
+
if (e.field === "updated") {
|
|
2048
|
+
const r = new Date(n.updatedAt ?? 0).getTime(), o = new Date(t.updatedAt ?? 0).getTime();
|
|
2049
|
+
return Ae(r - o, e.direction);
|
|
2050
|
+
}
|
|
2051
|
+
if (e.field === "title")
|
|
2052
|
+
return Ae(n.title.localeCompare(t.title), e.direction);
|
|
2053
|
+
if (e.field === "complexity") {
|
|
2054
|
+
const r = dt[(n.complexity ?? "").toLowerCase()] ?? 0, o = dt[(t.complexity ?? "").toLowerCase()] ?? 0;
|
|
2055
|
+
return Ae(r - o, e.direction);
|
|
2056
|
+
}
|
|
2057
|
+
if (e.field === "priority") {
|
|
2058
|
+
const r = ut[(n.priority ?? "").toLowerCase()] ?? 0, o = ut[(t.priority ?? "").toLowerCase()] ?? 0;
|
|
2059
|
+
return Ae(r - o, e.direction);
|
|
2060
|
+
}
|
|
2061
|
+
return Ae(n.ticketId.localeCompare(t.ticketId, void 0, {
|
|
2062
|
+
numeric: !0
|
|
2063
|
+
}), e.direction);
|
|
2064
|
+
}), Ll = (l, e) => {
|
|
2065
|
+
const {
|
|
2066
|
+
columnGrouping: n,
|
|
2067
|
+
rowGrouping: t,
|
|
2068
|
+
knownColumnKeys: r
|
|
2069
|
+
} = e, o = /* @__PURE__ */ new Map();
|
|
2070
|
+
if (r)
|
|
2071
|
+
for (const a of r)
|
|
2072
|
+
o.set(a, []);
|
|
2073
|
+
for (const a of l) {
|
|
2074
|
+
const c = gt(a, n);
|
|
2075
|
+
o.set(c, [...o.get(c) ?? [], a]);
|
|
2076
|
+
}
|
|
2077
|
+
return [...o.entries()].sort(([a], [c]) => ft(a, c)).map(([a, c]) => {
|
|
2078
|
+
if (t === "none")
|
|
2079
|
+
return {
|
|
2080
|
+
key: a,
|
|
2081
|
+
label: a,
|
|
2082
|
+
tickets: c,
|
|
2083
|
+
rows: []
|
|
2084
|
+
};
|
|
2085
|
+
const d = /* @__PURE__ */ new Map();
|
|
2086
|
+
for (const g of c) {
|
|
2087
|
+
const f = gt(g, t);
|
|
2088
|
+
d.set(f, [...d.get(f) ?? [], g]);
|
|
2089
|
+
}
|
|
2090
|
+
const u = [...d.entries()].sort(([g], [f]) => ft(g, f)).map(([g, f]) => ({
|
|
2091
|
+
key: g,
|
|
2092
|
+
label: g,
|
|
2093
|
+
tickets: f
|
|
2094
|
+
}));
|
|
2095
|
+
return {
|
|
2096
|
+
key: a,
|
|
2097
|
+
label: a,
|
|
2098
|
+
tickets: c,
|
|
2099
|
+
rows: u
|
|
2100
|
+
};
|
|
2101
|
+
});
|
|
2102
|
+
}, _t = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Pe(l.status, ke.status)] : e === "assignee" ? [Pe(l.assignee, ke.assignee)] : e === "priority" ? [Pe(l.priority, ke.priority)] : [Pe(l.complexity, ke.complexity)], Rl = (l, e) => {
|
|
2103
|
+
const n = Object.entries(e).filter(([, t]) => t && t.length > 0);
|
|
2104
|
+
return n.length === 0 ? l : l.filter((t) => n.every(([r, o]) => _t(t, r).some((a) => o?.includes(a))));
|
|
2105
|
+
}, El = (l, e) => {
|
|
2106
|
+
const n = {};
|
|
2107
|
+
for (const t of l)
|
|
2108
|
+
for (const r of _t(t, e))
|
|
2109
|
+
n[r] = (n[r] ?? 0) + 1;
|
|
2110
|
+
return n;
|
|
2111
|
+
}, zl = {
|
|
2112
|
+
viewMode: "board",
|
|
2113
|
+
columnGrouping: "status",
|
|
2114
|
+
rowGrouping: "none",
|
|
2115
|
+
ordering: {
|
|
2116
|
+
field: "manual",
|
|
2117
|
+
direction: "asc"
|
|
2118
|
+
},
|
|
2119
|
+
displayProperties: ["complexity", "priority", "labels"]
|
|
2120
|
+
}, Al = [{
|
|
2121
|
+
value: "status",
|
|
2122
|
+
label: "Status"
|
|
2123
|
+
}, {
|
|
2124
|
+
value: "complexity",
|
|
2125
|
+
label: "Complexity"
|
|
2126
|
+
}, {
|
|
2127
|
+
value: "assignee",
|
|
2128
|
+
label: "Assignee"
|
|
2129
|
+
}, {
|
|
2130
|
+
value: "priority",
|
|
2131
|
+
label: "Priority"
|
|
2132
|
+
}, {
|
|
2133
|
+
value: "none",
|
|
2134
|
+
label: "No grouping"
|
|
2135
|
+
}], Ol = [{
|
|
2136
|
+
value: "manual",
|
|
2137
|
+
label: "Manual"
|
|
2138
|
+
}, {
|
|
2139
|
+
value: "updated",
|
|
2140
|
+
label: "Updated"
|
|
2141
|
+
}, {
|
|
2142
|
+
value: "title",
|
|
2143
|
+
label: "Title"
|
|
2144
|
+
}, {
|
|
2145
|
+
value: "complexity",
|
|
2146
|
+
label: "Complexity"
|
|
2147
|
+
}, {
|
|
2148
|
+
value: "priority",
|
|
2149
|
+
label: "Priority"
|
|
2150
|
+
}, {
|
|
2151
|
+
value: "ticketId",
|
|
2152
|
+
label: "ID"
|
|
2153
|
+
}], Gl = [{
|
|
2154
|
+
value: "id",
|
|
2155
|
+
label: "ID"
|
|
2156
|
+
}, {
|
|
2157
|
+
value: "status",
|
|
2158
|
+
label: "Status"
|
|
2159
|
+
}, {
|
|
2160
|
+
value: "assignee",
|
|
2161
|
+
label: "Assignee"
|
|
2162
|
+
}, {
|
|
2163
|
+
value: "priority",
|
|
2164
|
+
label: "Priority"
|
|
2165
|
+
}, {
|
|
2166
|
+
value: "complexity",
|
|
2167
|
+
label: "Complexity"
|
|
2168
|
+
}, {
|
|
2169
|
+
value: "labels",
|
|
2170
|
+
label: "Labels"
|
|
2171
|
+
}, {
|
|
2172
|
+
value: "updated",
|
|
2173
|
+
label: "Updated"
|
|
2174
|
+
}], Ml = "pstdio/ui/tickets-workspace", Nl = (l) => `${Ml}/${l}`, Xe = {
|
|
2175
|
+
settings: zl,
|
|
2176
|
+
filters: {}
|
|
2177
|
+
}, Hl = () => ({
|
|
2178
|
+
getItem: () => null,
|
|
2179
|
+
setItem: () => {
|
|
2180
|
+
},
|
|
2181
|
+
removeItem: () => {
|
|
2182
|
+
}
|
|
2183
|
+
}), Wl = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], Fl = (l) => {
|
|
2184
|
+
const {
|
|
2185
|
+
storageKey: e,
|
|
2186
|
+
initialState: n
|
|
2187
|
+
} = l, t = {
|
|
2188
|
+
settings: {
|
|
2189
|
+
...Xe.settings,
|
|
2190
|
+
...n?.settings ?? {}
|
|
2191
|
+
},
|
|
2192
|
+
filters: n?.filters ?? Xe.filters
|
|
2193
|
+
};
|
|
2194
|
+
return wt()(Ct((r) => ({
|
|
2195
|
+
...t,
|
|
2196
|
+
setViewMode: (o) => r((s) => ({
|
|
2197
|
+
...s,
|
|
2198
|
+
settings: {
|
|
2199
|
+
...s.settings,
|
|
2200
|
+
viewMode: o
|
|
2201
|
+
}
|
|
2202
|
+
})),
|
|
2203
|
+
setColumnGrouping: (o) => r((s) => ({
|
|
2204
|
+
...s,
|
|
2205
|
+
settings: {
|
|
2206
|
+
...s.settings,
|
|
2207
|
+
columnGrouping: o
|
|
2208
|
+
}
|
|
2209
|
+
})),
|
|
2210
|
+
setRowGrouping: (o) => r((s) => ({
|
|
2211
|
+
...s,
|
|
2212
|
+
settings: {
|
|
2213
|
+
...s.settings,
|
|
2214
|
+
rowGrouping: o
|
|
2215
|
+
}
|
|
2216
|
+
})),
|
|
2217
|
+
setOrdering: (o) => r((s) => ({
|
|
2218
|
+
...s,
|
|
2219
|
+
settings: {
|
|
2220
|
+
...s.settings,
|
|
2221
|
+
ordering: o
|
|
2222
|
+
}
|
|
2223
|
+
})),
|
|
2224
|
+
setOrderingField: (o) => r((s) => ({
|
|
2225
|
+
...s,
|
|
2226
|
+
settings: {
|
|
2227
|
+
...s.settings,
|
|
2228
|
+
ordering: {
|
|
2229
|
+
...s.settings.ordering,
|
|
2230
|
+
field: o
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
})),
|
|
2234
|
+
toggleSortDirection: () => r((o) => ({
|
|
2235
|
+
...o,
|
|
2236
|
+
settings: {
|
|
2237
|
+
...o.settings,
|
|
2238
|
+
ordering: {
|
|
2239
|
+
...o.settings.ordering,
|
|
2240
|
+
direction: o.settings.ordering.direction === "asc" ? "desc" : "asc"
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
})),
|
|
2244
|
+
toggleDisplayProperty: (o) => r((s) => {
|
|
2245
|
+
const a = s.settings.displayProperties.includes(o) ? s.settings.displayProperties.filter((c) => c !== o) : [...s.settings.displayProperties, o];
|
|
2246
|
+
return {
|
|
2247
|
+
...s,
|
|
2248
|
+
settings: {
|
|
2249
|
+
...s.settings,
|
|
2250
|
+
displayProperties: a
|
|
2251
|
+
}
|
|
2252
|
+
};
|
|
2253
|
+
}),
|
|
2254
|
+
setFilter: (o, s) => r((a) => ({
|
|
2255
|
+
...a,
|
|
2256
|
+
filters: {
|
|
2257
|
+
...a.filters,
|
|
2258
|
+
[o]: s
|
|
2259
|
+
}
|
|
2260
|
+
})),
|
|
2261
|
+
toggleFilterValue: (o, s) => r((a) => {
|
|
2262
|
+
const c = a.filters[o] ?? [], d = Wl(c, s), u = {
|
|
2263
|
+
...a.filters,
|
|
2264
|
+
[o]: d
|
|
2265
|
+
};
|
|
2266
|
+
return d.length === 0 && delete u[o], {
|
|
2267
|
+
...a,
|
|
2268
|
+
filters: u
|
|
2269
|
+
};
|
|
2270
|
+
}),
|
|
2271
|
+
clearFilter: (o) => r((s) => {
|
|
2272
|
+
const a = {
|
|
2273
|
+
...s.filters
|
|
2274
|
+
};
|
|
2275
|
+
return delete a[o], {
|
|
2276
|
+
...s,
|
|
2277
|
+
filters: a
|
|
2278
|
+
};
|
|
2279
|
+
}),
|
|
2280
|
+
clearAllFilters: () => r((o) => ({
|
|
2281
|
+
...o,
|
|
2282
|
+
filters: {}
|
|
2283
|
+
})),
|
|
2284
|
+
reset: () => r(Xe)
|
|
2285
|
+
}), {
|
|
2286
|
+
name: Nl(e),
|
|
2287
|
+
storage: vt(() => typeof globalThis.localStorage > "u" ? Hl() : globalThis.localStorage),
|
|
2288
|
+
partialize: (r) => ({
|
|
2289
|
+
settings: r.settings,
|
|
2290
|
+
filters: r.filters
|
|
2291
|
+
})
|
|
2292
|
+
}));
|
|
2293
|
+
}, pt = /* @__PURE__ */ new Map(), Bl = (l) => {
|
|
2294
|
+
const e = pt.get(l);
|
|
2295
|
+
if (e)
|
|
2296
|
+
return e;
|
|
2297
|
+
const n = Fl({
|
|
2298
|
+
storageKey: l
|
|
2299
|
+
});
|
|
2300
|
+
return pt.set(l, n), n;
|
|
2301
|
+
}, pe = (l, e) => {
|
|
2302
|
+
const n = A(2);
|
|
2303
|
+
let t;
|
|
2304
|
+
return n[0] !== l ? (t = Bl(l), n[0] = l, n[1] = t) : t = n[1], yt(t, e);
|
|
2305
|
+
}, Vl = {
|
|
2306
|
+
p0: "red",
|
|
2307
|
+
p1: "red",
|
|
2308
|
+
p2: "orange",
|
|
2309
|
+
p3: "yellow",
|
|
2310
|
+
p4: "gray"
|
|
2311
|
+
}, jl = {
|
|
2312
|
+
high: "red",
|
|
2313
|
+
medium: "yellow",
|
|
2314
|
+
low: "green"
|
|
2315
|
+
}, Ne = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), Xl = {
|
|
2316
|
+
status: (l) => l.status ? [l.status] : [],
|
|
2317
|
+
assignee: (l) => l.assignee ? [l.assignee] : [],
|
|
2318
|
+
priority: (l) => l.priority ? [l.priority] : [],
|
|
2319
|
+
complexity: (l) => l.complexity ? [l.complexity] : [],
|
|
2320
|
+
labels: (l) => l.labels ?? []
|
|
2321
|
+
}, Oe = (l, e) => {
|
|
2322
|
+
const n = /* @__PURE__ */ new Set();
|
|
2323
|
+
for (const t of l) {
|
|
2324
|
+
const r = Xl[e](t);
|
|
2325
|
+
for (const o of r)
|
|
2326
|
+
n.add(o);
|
|
2327
|
+
}
|
|
2328
|
+
return [...n].sort((t, r) => t.localeCompare(r, void 0, {
|
|
2329
|
+
numeric: !0
|
|
2330
|
+
})).map((t) => ({
|
|
2331
|
+
value: t,
|
|
2332
|
+
label: Ne(t)
|
|
2333
|
+
}));
|
|
2334
|
+
}, Ul = (l) => [{
|
|
2335
|
+
id: "status",
|
|
2336
|
+
label: "Status",
|
|
2337
|
+
options: Oe(l, "status")
|
|
2338
|
+
}, {
|
|
2339
|
+
id: "assignee",
|
|
2340
|
+
label: "Assignee",
|
|
2341
|
+
options: Oe(l, "assignee")
|
|
2342
|
+
}, {
|
|
2343
|
+
id: "priority",
|
|
2344
|
+
label: "Priority",
|
|
2345
|
+
options: Oe(l, "priority")
|
|
2346
|
+
}, {
|
|
2347
|
+
id: "complexity",
|
|
2348
|
+
label: "Complexity",
|
|
2349
|
+
options: Oe(l, "complexity")
|
|
2350
|
+
}, {
|
|
2351
|
+
id: "labels",
|
|
2352
|
+
label: "Labels",
|
|
2353
|
+
options: Oe(l, "labels")
|
|
2354
|
+
}], ht = (l, e) => {
|
|
2355
|
+
const n = [], t = (r) => e.includes(r);
|
|
2356
|
+
if (t("status") && l.status && n.push({
|
|
2357
|
+
label: l.status,
|
|
2358
|
+
color: l.statusColor ?? "gray"
|
|
2359
|
+
}), t("assignee") && l.assignee && n.push({
|
|
2360
|
+
label: l.assignee,
|
|
2361
|
+
color: "blue"
|
|
2362
|
+
}), t("priority") && l.priority && n.push({
|
|
2363
|
+
label: l.priority,
|
|
2364
|
+
color: Vl[l.priority.toLowerCase()] ?? "gray"
|
|
2365
|
+
}), t("complexity") && l.complexity && n.push({
|
|
2366
|
+
label: l.complexity,
|
|
2367
|
+
color: jl[l.complexity.toLowerCase()] ?? "gray"
|
|
2368
|
+
}), t("updated") && l.updatedAt && n.push({
|
|
2369
|
+
label: new Date(l.updatedAt).toLocaleDateString(),
|
|
2370
|
+
color: "gray"
|
|
2371
|
+
}), t("labels"))
|
|
2372
|
+
for (const r of l.labels ?? [])
|
|
2373
|
+
n.push({
|
|
2374
|
+
label: r,
|
|
2375
|
+
color: "purple"
|
|
2376
|
+
});
|
|
2377
|
+
return n;
|
|
2378
|
+
}, Xi = (l) => {
|
|
2379
|
+
const e = A(64), {
|
|
2380
|
+
tickets: n,
|
|
2381
|
+
storageKey: t,
|
|
2382
|
+
selectedTicketId: r,
|
|
2383
|
+
groupingOptions: o,
|
|
2384
|
+
orderingOptions: s,
|
|
2385
|
+
displayPropertyOptions: a,
|
|
2386
|
+
filterCategories: c,
|
|
2387
|
+
knownColumnKeys: d,
|
|
2388
|
+
emptyTitle: u,
|
|
2389
|
+
emptyDescription: g,
|
|
2390
|
+
onTicketClick: f,
|
|
2391
|
+
onMoveTicket: p,
|
|
2392
|
+
onMoveToGroup: h,
|
|
2393
|
+
onCreateTicket: m,
|
|
2394
|
+
onColumnAction: x,
|
|
2395
|
+
getBoardColumnConfig: y
|
|
2396
|
+
} = l, I = r === void 0 ? null : r, k = o === void 0 ? Al : o, P = s === void 0 ? Ol : s, D = a === void 0 ? Gl : a, T = u === void 0 ? "No tickets found" : u, _ = g === void 0 ? "Try changing filters or display settings." : g, S = pe(t, Yl), C = pe(t, Kl), w = pe(t, ql), v = pe(t, Jl), E = pe(t, Ql), L = pe(t, Zl), z = pe(t, ei), O = pe(t, ti), W = pe(t, ni), H = pe(t, li), B = pe(t, ii);
|
|
2397
|
+
let N, M, R, F;
|
|
2398
|
+
if (e[0] !== c || e[1] !== C || e[2] !== y || e[3] !== d || e[4] !== f || e[5] !== S.columnGrouping || e[6] !== S.displayProperties || e[7] !== S.ordering || e[8] !== S.rowGrouping || e[9] !== n) {
|
|
2399
|
+
const ee = Rl(n, C);
|
|
2400
|
+
N = c ?? Ul(n);
|
|
2401
|
+
let Z;
|
|
2402
|
+
e[14] !== n ? (Z = (j) => [j.id, El(n, j.id)], e[14] = n, e[15] = Z) : Z = e[15], M = Object.fromEntries(N.map(Z));
|
|
2403
|
+
const U = d ?? (S.columnGrouping !== "none" ? N.find((j) => j.id === S.columnGrouping)?.options.map(ri) : void 0), ie = Ll(ee, {
|
|
2404
|
+
columnGrouping: S.columnGrouping,
|
|
2405
|
+
rowGrouping: S.rowGrouping,
|
|
2406
|
+
knownColumnKeys: U
|
|
2407
|
+
});
|
|
2408
|
+
let ce;
|
|
2409
|
+
e[16] !== f || e[17] !== S.displayProperties ? (ce = (j) => ({
|
|
2410
|
+
id: j.id,
|
|
2411
|
+
ticketId: S.displayProperties.includes("id") ? j.ticketId : "",
|
|
2412
|
+
title: j.title,
|
|
2413
|
+
badges: ht(j, S.displayProperties),
|
|
2414
|
+
onClick: () => f?.(j)
|
|
2415
|
+
}), e[16] = f, e[17] = S.displayProperties, e[18] = ce) : ce = e[18];
|
|
2416
|
+
const re = ce;
|
|
2417
|
+
let ue;
|
|
2418
|
+
e[19] !== S.ordering || e[20] !== re ? (ue = (j) => ({
|
|
2419
|
+
id: `group::${j.key}`,
|
|
2420
|
+
ticketId: "",
|
|
2421
|
+
title: `${Ne(j.label)} (${j.tickets.length})`,
|
|
2422
|
+
children: Ge(j.tickets, S.ordering).map((ne) => re(ne))
|
|
2423
|
+
}), e[19] = S.ordering, e[20] = re, e[21] = ue) : ue = e[21];
|
|
2424
|
+
const fe = ue;
|
|
2425
|
+
R = S.columnGrouping === "none" ? Ge(ee, S.ordering).map((j) => re(j)) : ie.map((j) => j.rows.length > 0 ? {
|
|
2426
|
+
id: `group::${j.key}`,
|
|
2427
|
+
ticketId: "",
|
|
2428
|
+
title: `${Ne(j.label)} (${j.tickets.length})`,
|
|
2429
|
+
children: j.rows.map((ne) => ({
|
|
2430
|
+
...fe(ne),
|
|
2431
|
+
id: `group::${j.key}::${ne.key}`
|
|
2432
|
+
}))
|
|
2433
|
+
} : fe(j));
|
|
2434
|
+
let ae;
|
|
2435
|
+
e[22] !== f || e[23] !== S.displayProperties ? (ae = (j) => j.map((ne) => ({
|
|
2436
|
+
id: ne.id,
|
|
2437
|
+
cardProps: {
|
|
2438
|
+
ticketId: S.displayProperties.includes("id") ? ne.ticketId : "",
|
|
2439
|
+
parentPath: ne.parentPath,
|
|
2440
|
+
title: ne.title,
|
|
2441
|
+
badges: ht(ne, S.displayProperties),
|
|
2442
|
+
onClick: () => f?.(ne)
|
|
2443
|
+
}
|
|
2444
|
+
})), e[22] = f, e[23] = S.displayProperties, e[24] = ae) : ae = e[24];
|
|
2445
|
+
const be = ae;
|
|
2446
|
+
let ge;
|
|
2447
|
+
e[25] !== y || e[26] !== S.ordering || e[27] !== be ? (ge = (j) => {
|
|
2448
|
+
const ne = y?.(j.key) ?? {}, Rt = Ge(j.tickets, S.ordering), Et = j.rows.length > 0 ? j.rows.map((Be) => ({
|
|
2449
|
+
key: Be.key,
|
|
2450
|
+
label: Ne(Be.label),
|
|
2451
|
+
items: be(Ge(Be.tickets, S.ordering))
|
|
2452
|
+
})) : void 0;
|
|
2453
|
+
return {
|
|
2454
|
+
id: j.key,
|
|
2455
|
+
label: j.label,
|
|
2456
|
+
color: ne.color,
|
|
2457
|
+
canDragIn: ne.canDragIn ?? !1,
|
|
2458
|
+
canDragOut: ne.canDragOut ?? !1,
|
|
2459
|
+
canCreate: ne.canCreate ?? !1,
|
|
2460
|
+
actions: ne.actions ?? [],
|
|
2461
|
+
items: be(Rt),
|
|
2462
|
+
groups: Et
|
|
2463
|
+
};
|
|
2464
|
+
}, e[25] = y, e[26] = S.ordering, e[27] = be, e[28] = ge) : ge = e[28], F = ie.map(ge), e[0] = c, e[1] = C, e[2] = y, e[3] = d, e[4] = f, e[5] = S.columnGrouping, e[6] = S.displayProperties, e[7] = S.ordering, e[8] = S.rowGrouping, e[9] = n, e[10] = N, e[11] = M, e[12] = R, e[13] = F;
|
|
2465
|
+
} else
|
|
2466
|
+
N = e[10], M = e[11], R = e[12], F = e[13];
|
|
2467
|
+
const Y = F;
|
|
2468
|
+
let q;
|
|
2469
|
+
e[29] !== N || e[30] !== B || e[31] !== H || e[32] !== M || e[33] !== C || e[34] !== W ? (q = /* @__PURE__ */ i(xl, { categories: N, filters: C, countsByCategory: M, onToggleFilterValue: W, onClearFilter: H, onClearAll: B }), e[29] = N, e[30] = B, e[31] = H, e[32] = M, e[33] = C, e[34] = W, e[35] = q) : q = e[35];
|
|
2470
|
+
let J;
|
|
2471
|
+
e[36] !== D || e[37] !== k || e[38] !== P || e[39] !== v || e[40] !== L || e[41] !== E || e[42] !== w || e[43] !== S || e[44] !== O || e[45] !== z ? (J = /* @__PURE__ */ i(ml, { settings: S, groupingOptions: k, orderingOptions: P, displayPropertyOptions: D, onViewModeChange: w, onColumnGroupingChange: v, onRowGroupingChange: E, onOrderingFieldChange: L, onSortDirectionToggle: z, onDisplayPropertyToggle: O }), e[36] = D, e[37] = k, e[38] = P, e[39] = v, e[40] = L, e[41] = E, e[42] = w, e[43] = S, e[44] = O, e[45] = z, e[46] = J) : J = e[46];
|
|
2472
|
+
let K;
|
|
2473
|
+
e[47] !== q || e[48] !== J ? (K = /* @__PURE__ */ b(X, { justifyContent: "flex-end", gap: "2xs", children: [
|
|
2474
|
+
q,
|
|
2475
|
+
J
|
|
2476
|
+
] }), e[47] = q, e[48] = J, e[49] = K) : K = e[49];
|
|
2477
|
+
let Q;
|
|
2478
|
+
e[50] !== Y || e[51] !== _ || e[52] !== T || e[53] !== R || e[54] !== x || e[55] !== m || e[56] !== p || e[57] !== h || e[58] !== I || e[59] !== S.viewMode ? (Q = S.viewMode === "board" ? /* @__PURE__ */ i(V, { flex: "1", minH: "0", children: Y.length > 0 ? /* @__PURE__ */ i(yl, { columns: Y, selectedItemId: I, onMoveItem: p, onMoveToGroup: h, onCreateStart: m, onColumnAction: x }) : /* @__PURE__ */ i(Ke, { title: T, description: _, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : R.length > 0 ? /* @__PURE__ */ i(Pl, { items: R, selectedItemId: I }) : /* @__PURE__ */ i(Ke, { title: T, description: _, borderWidth: "1px", borderRadius: "md" }), e[50] = Y, e[51] = _, e[52] = T, e[53] = R, e[54] = x, e[55] = m, e[56] = p, e[57] = h, e[58] = I, e[59] = S.viewMode, e[60] = Q) : Q = e[60];
|
|
2479
|
+
let te;
|
|
2480
|
+
return e[61] !== Q || e[62] !== K ? (te = /* @__PURE__ */ b(G, { gap: "sm", height: "100%", minH: "0", children: [
|
|
2481
|
+
K,
|
|
2482
|
+
Q
|
|
2483
|
+
] }), e[61] = Q, e[62] = K, e[63] = te) : te = e[63], te;
|
|
1658
2484
|
};
|
|
1659
|
-
function
|
|
1660
|
-
return
|
|
2485
|
+
function Yl(l) {
|
|
2486
|
+
return l.settings;
|
|
2487
|
+
}
|
|
2488
|
+
function Kl(l) {
|
|
2489
|
+
return l.filters;
|
|
2490
|
+
}
|
|
2491
|
+
function ql(l) {
|
|
2492
|
+
return l.setViewMode;
|
|
2493
|
+
}
|
|
2494
|
+
function Jl(l) {
|
|
2495
|
+
return l.setColumnGrouping;
|
|
2496
|
+
}
|
|
2497
|
+
function Ql(l) {
|
|
2498
|
+
return l.setRowGrouping;
|
|
2499
|
+
}
|
|
2500
|
+
function Zl(l) {
|
|
2501
|
+
return l.setOrderingField;
|
|
1661
2502
|
}
|
|
1662
|
-
|
|
2503
|
+
function ei(l) {
|
|
2504
|
+
return l.toggleSortDirection;
|
|
2505
|
+
}
|
|
2506
|
+
function ti(l) {
|
|
2507
|
+
return l.toggleDisplayProperty;
|
|
2508
|
+
}
|
|
2509
|
+
function ni(l) {
|
|
2510
|
+
return l.toggleFilterValue;
|
|
2511
|
+
}
|
|
2512
|
+
function li(l) {
|
|
2513
|
+
return l.clearFilter;
|
|
2514
|
+
}
|
|
2515
|
+
function ii(l) {
|
|
2516
|
+
return l.clearAllFilters;
|
|
2517
|
+
}
|
|
2518
|
+
function ri(l) {
|
|
2519
|
+
return l.value;
|
|
2520
|
+
}
|
|
2521
|
+
const oi = Wt({
|
|
1663
2522
|
placement: "bottom-end",
|
|
1664
2523
|
pauseOnPageIdle: !0
|
|
1665
|
-
}),
|
|
1666
|
-
const
|
|
2524
|
+
}), Ui = () => {
|
|
2525
|
+
const l = A(1);
|
|
1667
2526
|
let e;
|
|
1668
|
-
return
|
|
2527
|
+
return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ft, { toaster: oi, insetInline: {
|
|
1669
2528
|
mdDown: "4"
|
|
1670
|
-
}, children:
|
|
2529
|
+
}, children: si }) }), l[0] = e) : e = l[0], e;
|
|
1671
2530
|
};
|
|
1672
|
-
function
|
|
1673
|
-
return /* @__PURE__ */ b(
|
|
2531
|
+
function si(l) {
|
|
2532
|
+
return /* @__PURE__ */ b(Le.Root, { width: {
|
|
1674
2533
|
md: "sm"
|
|
1675
2534
|
}, children: [
|
|
1676
|
-
|
|
1677
|
-
/* @__PURE__ */ b(
|
|
1678
|
-
|
|
1679
|
-
|
|
2535
|
+
l.type === "loading" ? /* @__PURE__ */ i(Bt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i(Le.Indicator, {}),
|
|
2536
|
+
/* @__PURE__ */ b(G, { gap: "1", flex: "1", maxWidth: "100%", children: [
|
|
2537
|
+
l.title && /* @__PURE__ */ i(Le.Title, { children: l.title }),
|
|
2538
|
+
l.description && /* @__PURE__ */ i(Le.Description, { children: l.description })
|
|
1680
2539
|
] }),
|
|
1681
|
-
|
|
1682
|
-
|
|
2540
|
+
l.action && /* @__PURE__ */ i(Le.ActionTrigger, { children: l.action.label }),
|
|
2541
|
+
l.closable && /* @__PURE__ */ i(Le.CloseTrigger, {})
|
|
1683
2542
|
] });
|
|
1684
2543
|
}
|
|
1685
|
-
const
|
|
2544
|
+
const ai = (l) => {
|
|
1686
2545
|
if (typeof document > "u") return;
|
|
1687
|
-
const e = document.documentElement,
|
|
1688
|
-
for (const
|
|
1689
|
-
|
|
1690
|
-
},
|
|
2546
|
+
const e = document.documentElement, n = document.body, t = l === "dark" ? "light" : "dark";
|
|
2547
|
+
for (const r of [e, n])
|
|
2548
|
+
r && (r.classList.remove(t), r.classList.add(l), r.setAttribute("data-theme", l), r.style.colorScheme = l);
|
|
2549
|
+
}, $t = "theme-preference", Lt = Yt(null), ci = () => {
|
|
1691
2550
|
if (typeof window > "u") return "light";
|
|
1692
|
-
const
|
|
1693
|
-
return
|
|
1694
|
-
},
|
|
1695
|
-
const e =
|
|
1696
|
-
children:
|
|
2551
|
+
const l = window.localStorage.getItem($t);
|
|
2552
|
+
return l === "dark" || l === "light" ? l : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2553
|
+
}, Yi = (l) => {
|
|
2554
|
+
const e = A(11), {
|
|
2555
|
+
children: n,
|
|
1697
2556
|
initialPreference: t
|
|
1698
|
-
} =
|
|
1699
|
-
let
|
|
1700
|
-
e[0] !== t ? (
|
|
1701
|
-
const
|
|
2557
|
+
} = l;
|
|
2558
|
+
let r;
|
|
2559
|
+
e[0] !== t ? (r = t === void 0 ? ci() : t, e[0] = t, e[1] = r) : r = e[1];
|
|
2560
|
+
const o = r, [s, a] = me(o);
|
|
1702
2561
|
let c, d;
|
|
1703
2562
|
e[2] !== s ? (c = () => {
|
|
1704
|
-
|
|
1705
|
-
}, d = [s], e[2] = s, e[3] = c, e[4] = d) : (c = e[3], d = e[4]),
|
|
1706
|
-
let
|
|
1707
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1708
|
-
const g =
|
|
2563
|
+
ai(s), typeof window < "u" && window.localStorage.setItem($t, s);
|
|
2564
|
+
}, d = [s], e[2] = s, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), He(c, d);
|
|
2565
|
+
let u;
|
|
2566
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(di), e[5] = u) : u = e[5];
|
|
2567
|
+
const g = u;
|
|
1709
2568
|
let f;
|
|
1710
2569
|
e[6] !== s ? (f = {
|
|
1711
2570
|
themePreference: s,
|
|
1712
2571
|
setThemePreference: a,
|
|
1713
2572
|
toggleThemePreference: g
|
|
1714
2573
|
}, e[6] = s, e[7] = f) : f = e[7];
|
|
1715
|
-
let
|
|
1716
|
-
return e[8] !==
|
|
1717
|
-
},
|
|
1718
|
-
const
|
|
1719
|
-
if (!
|
|
2574
|
+
let p;
|
|
2575
|
+
return e[8] !== n || e[9] !== f ? (p = /* @__PURE__ */ i(Lt, { value: f, children: n }), e[8] = n, e[9] = f, e[10] = p) : p = e[10], p;
|
|
2576
|
+
}, Ki = () => {
|
|
2577
|
+
const l = Kt(Lt);
|
|
2578
|
+
if (!l)
|
|
1720
2579
|
throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
|
|
1721
|
-
return
|
|
2580
|
+
return l;
|
|
1722
2581
|
};
|
|
1723
|
-
function
|
|
1724
|
-
return
|
|
2582
|
+
function di(l) {
|
|
2583
|
+
return l === "dark" ? "light" : "dark";
|
|
1725
2584
|
}
|
|
1726
2585
|
export {
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
2586
|
+
Cn as AlertMessage,
|
|
2587
|
+
Li as Breadcrumb,
|
|
2588
|
+
Qi as ChakraProvider,
|
|
2589
|
+
vn as Checkbox,
|
|
2590
|
+
er as CodeDiffEditor,
|
|
2591
|
+
tr as CodeEditor,
|
|
2592
|
+
wn as ContentPlaceholder,
|
|
2593
|
+
Ri as ContentPlaceholderLabel,
|
|
2594
|
+
Ei as DeleteConfirmationModal,
|
|
2595
|
+
St as DiffBubble,
|
|
2596
|
+
zi as DiffDrawer,
|
|
2597
|
+
ml as DisplayMenu,
|
|
2598
|
+
Ai as DocsChangelog,
|
|
2599
|
+
Oi as DocsOutline,
|
|
2600
|
+
Gi as DocsPagination,
|
|
2601
|
+
Mi as DocsSidebar,
|
|
2602
|
+
Ke as EmptyState,
|
|
2603
|
+
Ni as ErrorBoundary,
|
|
2604
|
+
xl as FilterMenu,
|
|
2605
|
+
Hi as FolderPickerDialog,
|
|
2606
|
+
Wi as HorizontalMenuStack,
|
|
2607
|
+
Mn as ItemSection,
|
|
2608
|
+
We as MenuItem,
|
|
2609
|
+
Fi as OpenSourceNoticesScreen,
|
|
2610
|
+
Wn as PanelMenu,
|
|
2611
|
+
Bi as Properties,
|
|
2612
|
+
ye as ScrollArea,
|
|
2613
|
+
Jn as SessionIndicator,
|
|
2614
|
+
Vi as SidebarNext,
|
|
2615
|
+
Zn as SidebarTree,
|
|
2616
|
+
ji as Switch,
|
|
2617
|
+
Yi as ThemePreferenceProvider,
|
|
2618
|
+
yl as TicketBoard,
|
|
2619
|
+
Dt as TicketCard,
|
|
2620
|
+
Pl as TicketList,
|
|
2621
|
+
Xi as TicketsWorkspace,
|
|
2622
|
+
Ui as Toaster,
|
|
1761
2623
|
Ee as Tooltip,
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
2624
|
+
ai as applyThemePreference,
|
|
2625
|
+
ci as getInitialThemePreference,
|
|
2626
|
+
lr as psTheme,
|
|
2627
|
+
oi as toaster,
|
|
2628
|
+
Re as useSidebarNextStore,
|
|
2629
|
+
Ki as useThemePreference,
|
|
2630
|
+
pe as useTicketsWorkspaceStore
|
|
1768
2631
|
};
|
|
1769
2632
|
//# sourceMappingURL=index.js.map
|