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