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