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