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