@pstdio/ui 0.24.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MermaidComponent-BTgLnpLA.js → MermaidComponent-BVdDqDRU.js} +2 -2
- package/dist/{MermaidComponent-BTgLnpLA.js.map → MermaidComponent-BVdDqDRU.js.map} +1 -1
- package/dist/chat-ui.js +1326 -1414
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/activity/activity-comment.d.ts +10 -2
- package/dist/components/activity/index.d.ts +3 -1
- package/dist/components/activity/resource-activity-feed.d.ts +58 -0
- package/dist/components/chat-ui/components/chat-input.d.ts +1 -1
- package/dist/components/chat-ui/components/chat-panel.d.ts +1 -1
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +1 -1
- package/dist/components/chat-ui/tool-rendering/shared.d.ts +1 -1
- package/dist/components/tab-strip/window-tabs.d.ts +1 -0
- package/dist/data-table.js +5 -5
- package/dist/diff.js +2 -2
- package/dist/{edit-mode-data-table-BrydKuMM.js → edit-mode-data-table-B8UpWb7i.js} +4 -4
- package/dist/{edit-mode-data-table-BrydKuMM.js.map → edit-mode-data-table-B8UpWb7i.js.map} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2047 -1735
- package/dist/index.js.map +1 -1
- package/dist/{kanban-renderer-toolbar-ebqlG13w.js → kanban-renderer-toolbar-DzY6THJY.js} +3 -3
- package/dist/{kanban-renderer-toolbar-ebqlG13w.js.map → kanban-renderer-toolbar-DzY6THJY.js.map} +1 -1
- package/dist/kanban-renderer.js +5 -5
- package/dist/{lazy-markdown-editor-Obb0M8xc.js → lazy-markdown-editor-ClZPZuaU.js} +2 -2
- package/dist/{lazy-markdown-editor-Obb0M8xc.js.map → lazy-markdown-editor-ClZPZuaU.js.map} +1 -1
- package/dist/{list-row-CRi3Luog.js → list-row-BDoV_iMV.js} +3 -3
- package/dist/list-row-BDoV_iMV.js.map +1 -0
- package/dist/{markdown-editor-Bj_QX4oN.js → markdown-editor-CAVqJ9yR.js} +2 -2
- package/dist/{markdown-editor-Bj_QX4oN.js.map → markdown-editor-CAVqJ9yR.js.map} +1 -1
- package/dist/{markdown-kuU19Oh3.js → markdown-gNucAjnF.js} +9 -9
- package/dist/{markdown-kuU19Oh3.js.map → markdown-gNucAjnF.js.map} +1 -1
- package/dist/{param-editor-DhoxgwGd.js → param-editor-CTx3mDxQ.js} +2 -2
- package/dist/{param-editor-DhoxgwGd.js.map → param-editor-CTx3mDxQ.js.map} +1 -1
- package/dist/{param-editor-field-DurcyLuw.js → param-editor-field-DteDEyeU.js} +3 -3
- package/dist/{param-editor-field-DurcyLuw.js.map → param-editor-field-DteDEyeU.js.map} +1 -1
- package/dist/prompt-input-DNpRL5tI.js +564 -0
- package/dist/prompt-input-DNpRL5tI.js.map +1 -0
- package/dist/rich-message-CuPiKxKX.js +78 -0
- package/dist/rich-message-CuPiKxKX.js.map +1 -0
- package/dist/rich-text.js +24 -23
- package/dist/rich-text.js.map +1 -1
- package/dist/theme/primitives/colors.d.ts +0 -23
- package/dist/theme/recipes/activity-comment.d.ts +36 -0
- package/dist/theme/recipes/alert.d.ts +1 -1
- package/dist/theme/recipes/dialog.d.ts +1 -1
- package/dist/theme/recipes/drawer.d.ts +1 -1
- package/dist/theme/recipes/menu.d.ts +1 -1
- package/dist/theme/recipes/popover.d.ts +1 -1
- package/dist/theme/recipes/progress-circle.d.ts +3 -3
- package/dist/theme/recipes/switch.d.ts +1 -1
- package/dist/theme/recipes/timeline.d.ts +1 -1
- package/dist/theme/recipes/tooltip.d.ts +1 -1
- package/dist/theme/recipes/window-title-bar.d.ts +4 -1
- package/dist/{theme-Ca-KyNoi.js → theme-Dc7hVvMC.js} +120 -801
- package/dist/theme-Dc7hVvMC.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-DXwHWodb.js → tree-list-CZvcg3_6.js} +2 -2
- package/dist/{tree-list-DXwHWodb.js.map → tree-list-CZvcg3_6.js.map} +1 -1
- package/package.json +2 -2
- package/dist/list-row-CRi3Luog.js.map +0 -1
- package/dist/rich-message-dNYvLDd4.js +0 -628
- package/dist/rich-message-dNYvLDd4.js.map +0 -1
- package/dist/theme/recipes/landing-story.d.ts +0 -10
- package/dist/theme/recipes/landing-tool-demo.d.ts +0 -1
- package/dist/theme/recipes/landing.d.ts +0 -23
- package/dist/theme-Ca-KyNoi.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { Avatar as
|
|
2
|
-
import { ChakraProvider as
|
|
3
|
-
import { jsx as s, jsxs as
|
|
4
|
-
import { c as
|
|
5
|
-
import * as
|
|
6
|
-
import { Children as
|
|
7
|
-
import { Paperclip as
|
|
8
|
-
import { T as Ue, S as
|
|
9
|
-
import { useVirtualizer as
|
|
10
|
-
import { L as Qe, H as
|
|
11
|
-
import { c as
|
|
12
|
-
import { T as
|
|
13
|
-
import { R as
|
|
14
|
-
import { A as
|
|
15
|
-
import { R as
|
|
16
|
-
import { g as
|
|
17
|
-
import { c as
|
|
18
|
-
import { S as
|
|
19
|
-
import { P as
|
|
20
|
-
import { g as
|
|
21
|
-
import { C as
|
|
22
|
-
import { E as
|
|
23
|
-
import { useStore as
|
|
24
|
-
import { persist as
|
|
25
|
-
import { createStore as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
1
|
+
import { Avatar as ft, Box as j, defineSlotRecipe as Gt, createSlotRecipeContext as et, Text as M, Stack as X, HStack as le, chakra as Ae, Textarea as In, Spacer as jt, IconButton as Fe, Icon as ce, Timeline as Ie, Spinner as pt, Button as de, Dialog as Z, CloseButton as Ut, Input as Qt, InputGroup as Xt, Kbd as Tn, Collapsible as qe, Flex as fe, Badge as Te, Skeleton as bt, Portal as tt, Breadcrumb as pe, AbsoluteCenter as An, Center as Pn, Popover as Ke, Grid as St, createToaster as kn, Toaster as Rn, Toast as Ne, Editable as We, Menu as ge } from "@chakra-ui/react";
|
|
2
|
+
import { ChakraProvider as Rs } from "@chakra-ui/react";
|
|
3
|
+
import { jsx as s, jsxs as C, Fragment as He } from "react/jsx-runtime";
|
|
4
|
+
import { c as O } from "react/compiler-runtime";
|
|
5
|
+
import * as xt from "react";
|
|
6
|
+
import { Children as $n, useState as ue, Suspense as Ln, lazy as En, useEffect as me, useRef as Me, Fragment as vt, forwardRef as qt, Component as Dn, createContext as _n, useContext as On } from "react";
|
|
7
|
+
import { Paperclip as zn, ArrowUp as Nn, Sparkles as Bn, ScanSearch as Wn, MessageCircle as Mn, Info as Fn, GitBranch as Hn, ExternalLink as Vn, Component as Gn, CircleAlert as jn, Bell as Kt, Activity as Un, Check as nt, ArrowRight as Qn, ArrowLeft as Xn, Option as yt, Command as Ye, ChevronRight as qn, X as Yt, Search as Zt, SquareArrowOutUpRight as Kn, Minus as Yn, FileText as Zn, FolderOpen as Jn, Folder as Jt, Home as eo, ChevronUp as to, ChevronDown as en, GripVertical as no, Trash2 as oo, Plus as lo } from "lucide-react";
|
|
8
|
+
import { T as Ue, S as ot, c as Ve } from "./browser-storage-DPtOQJx0.js";
|
|
9
|
+
import { useVirtualizer as io } from "@tanstack/react-virtual";
|
|
10
|
+
import { L as Qe, H as ro, R as tn } from "./list-row-BDoV_iMV.js";
|
|
11
|
+
import { c as Ls, b as Es } from "./list-row-BDoV_iMV.js";
|
|
12
|
+
import { T as so } from "./tree-list-CZvcg3_6.js";
|
|
13
|
+
import { R as _s, a as Os } from "./tree-list-CZvcg3_6.js";
|
|
14
|
+
import { A as lt } from "./radio-cLMEBBZk.js";
|
|
15
|
+
import { R as Ns, a as Bs } from "./radio-cLMEBBZk.js";
|
|
16
|
+
import { g as ao, o as co, b as fo } from "./param-editor-field-DteDEyeU.js";
|
|
17
|
+
import { c as Ms, d as Fs, e as Hs, A as Vs, B as Gs, C as js, f as Us, D as Qs, F as Xs, H as qs, M as Ks, N as Ys, h as Zs, P as Js, j as ea, k as ta, j as na, l as oa, m as la, R as ia, n as ra, p as sa, S as aa, q as ca, T as da, V as fa, r as ua, s as ha, a as ma } from "./param-editor-field-DteDEyeU.js";
|
|
18
|
+
import { S as ga, W as ba, h as Sa, r as xa, a as va, s as ya } from "./workspace-badge-BR_GgsAG.js";
|
|
19
|
+
import { P as wa, a as Ia, b as Ta } from "./param-editor-CTx3mDxQ.js";
|
|
20
|
+
import { g as uo } from "./lazy-markdown-editor-ClZPZuaU.js";
|
|
21
|
+
import { C as Pa, R as ka, S as Ra, i as $a } from "./lazy-markdown-editor-ClZPZuaU.js";
|
|
22
|
+
import { E as ho } from "./empty-state-Bo4HVrgr.js";
|
|
23
|
+
import { useStore as it } from "zustand";
|
|
24
|
+
import { persist as rt, createJSONStorage as st } from "zustand/middleware";
|
|
25
|
+
import { createStore as at } from "zustand/vanilla";
|
|
26
|
+
import { useSensors as nn, useSensor as ut, PointerSensor as on, KeyboardSensor as mo, DndContext as ln, closestCenter as rn } from "@dnd-kit/core";
|
|
27
|
+
import { useSortable as sn, sortableKeyboardCoordinates as po, SortableContext as an, horizontalListSortingStrategy as go, verticalListSortingStrategy as bo, arrayMove as So } from "@dnd-kit/sortable";
|
|
28
|
+
import { CSS as cn } from "@dnd-kit/utilities";
|
|
29
|
+
import { w as xo, b as vo } from "./theme-Dc7hVvMC.js";
|
|
30
|
+
import { c as Ea, a as Da, t as _a } from "./theme-Dc7hVvMC.js";
|
|
31
31
|
import "@fontsource/inter/400.css";
|
|
32
32
|
import "@fontsource/inter/500.css";
|
|
33
33
|
import "@fontsource/playfair-display/400.css";
|
|
@@ -36,283 +36,515 @@ import "@fontsource/playfair-display/700.css";
|
|
|
36
36
|
import "@fontsource/onest/400.css";
|
|
37
37
|
import "@fontsource/onest/500.css";
|
|
38
38
|
import "@fontsource/onest/700.css";
|
|
39
|
-
import { T as
|
|
40
|
-
const
|
|
41
|
-
const e =
|
|
39
|
+
import { T as za, a as Na, d as Ba, b as Wa, c as Ma, e as Fa, g as Ha, i as Va, u as Ga } from "./theme-preference-Bpobguh4.js";
|
|
40
|
+
const ct = (o) => {
|
|
41
|
+
const e = O(14), {
|
|
42
42
|
actor: t,
|
|
43
43
|
icon: n,
|
|
44
|
-
color:
|
|
45
|
-
background:
|
|
46
|
-
} = o,
|
|
44
|
+
color: l,
|
|
45
|
+
background: r
|
|
46
|
+
} = o, i = l === void 0 ? "fg.muted" : l, c = r === void 0 ? "bg.muted" : r;
|
|
47
47
|
if (n) {
|
|
48
|
-
let
|
|
49
|
-
return e[0] !== c || e[1] !==
|
|
48
|
+
let m;
|
|
49
|
+
return e[0] !== c || e[1] !== i || e[2] !== n ? (m = /* @__PURE__ */ s(j, { boxSize: "18px", borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: i, background: c, children: n }), e[0] = c, e[1] = i, e[2] = n, e[3] = m) : m = e[3], m;
|
|
50
50
|
}
|
|
51
|
-
const a = t?.avatarSrc,
|
|
52
|
-
let
|
|
53
|
-
e[4] !== a || e[5] !==
|
|
54
|
-
const
|
|
51
|
+
const a = t?.avatarSrc, f = t?.avatarAlt ?? t?.name;
|
|
52
|
+
let d;
|
|
53
|
+
e[4] !== a || e[5] !== f ? (d = /* @__PURE__ */ s(ft.Image, { src: a, alt: f }), e[4] = a, e[5] = f, e[6] = d) : d = e[6];
|
|
54
|
+
const u = t?.name;
|
|
55
55
|
let h;
|
|
56
|
-
e[7] !== c || e[8] !==
|
|
57
|
-
let
|
|
58
|
-
return e[11] !==
|
|
59
|
-
|
|
56
|
+
e[7] !== c || e[8] !== i || e[9] !== u ? (h = /* @__PURE__ */ s(ft.Fallback, { name: u, background: c, color: i }), e[7] = c, e[8] = i, e[9] = u, e[10] = h) : h = e[10];
|
|
57
|
+
let p;
|
|
58
|
+
return e[11] !== d || e[12] !== h ? (p = /* @__PURE__ */ C(ft.Root, { size: "2xs", flexShrink: 0, children: [
|
|
59
|
+
d,
|
|
60
60
|
h
|
|
61
|
-
] }), e[11] =
|
|
62
|
-
},
|
|
63
|
-
|
|
61
|
+
] }), e[11] = d, e[12] = h, e[13] = p) : p = e[13], p;
|
|
62
|
+
}, yo = Gt({
|
|
63
|
+
className: "activity-comment",
|
|
64
|
+
slots: ["root", "body", "content"],
|
|
65
|
+
base: {
|
|
66
|
+
root: {
|
|
67
|
+
width: "full",
|
|
68
|
+
borderWidth: "1px",
|
|
69
|
+
borderRadius: "xs",
|
|
70
|
+
overflow: "hidden"
|
|
71
|
+
},
|
|
72
|
+
body: {
|
|
73
|
+
display: "flex",
|
|
74
|
+
flexDirection: "column"
|
|
75
|
+
},
|
|
76
|
+
content: {
|
|
77
|
+
color: "fg",
|
|
78
|
+
overflowWrap: "anywhere",
|
|
79
|
+
whiteSpace: "pre-wrap"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
variants: {
|
|
83
|
+
tone: {
|
|
84
|
+
default: {
|
|
85
|
+
root: {
|
|
86
|
+
background: "bg",
|
|
87
|
+
borderColor: "border.subtle"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
attention: {
|
|
91
|
+
root: {
|
|
92
|
+
background: "bg.warning",
|
|
93
|
+
borderColor: "border.warning"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
size: {
|
|
98
|
+
comfortable: {
|
|
99
|
+
body: {
|
|
100
|
+
gap: "sm",
|
|
101
|
+
padding: "md"
|
|
102
|
+
},
|
|
103
|
+
content: {
|
|
104
|
+
textStyle: "label/S/regular"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
compact: {
|
|
108
|
+
body: {
|
|
109
|
+
gap: "xs",
|
|
110
|
+
padding: "sm"
|
|
111
|
+
},
|
|
112
|
+
content: {
|
|
113
|
+
textStyle: "label/S/regular"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
defaultVariants: {
|
|
119
|
+
tone: "default",
|
|
120
|
+
size: "comfortable"
|
|
121
|
+
}
|
|
122
|
+
}), {
|
|
123
|
+
withContext: dn,
|
|
124
|
+
withProvider: Co
|
|
125
|
+
} = et({
|
|
126
|
+
recipe: yo
|
|
127
|
+
}), wo = () => {
|
|
128
|
+
const o = O(1);
|
|
64
129
|
let e;
|
|
65
|
-
return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(
|
|
66
|
-
},
|
|
67
|
-
const e =
|
|
130
|
+
return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(j, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
|
|
131
|
+
}, fn = (o) => {
|
|
132
|
+
const e = O(16), {
|
|
68
133
|
actor: t,
|
|
69
|
-
|
|
70
|
-
|
|
134
|
+
icon: n,
|
|
135
|
+
iconColor: l,
|
|
136
|
+
iconBackground: r,
|
|
137
|
+
timestamp: i,
|
|
138
|
+
actions: c
|
|
71
139
|
} = o;
|
|
72
|
-
let i;
|
|
73
|
-
e[0] !== t ? (i = /* @__PURE__ */ s(it, { actor: t }), e[0] = t, e[1] = i) : i = e[1];
|
|
74
|
-
let l;
|
|
75
|
-
e[2] !== t.name ? (l = /* @__PURE__ */ s(H, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[2] = t.name, e[3] = l) : l = e[3];
|
|
76
|
-
let c;
|
|
77
|
-
e[4] !== n ? (c = n ? /* @__PURE__ */ v(Me, { children: [
|
|
78
|
-
/* @__PURE__ */ s(Zn, {}),
|
|
79
|
-
/* @__PURE__ */ s(H, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: n })
|
|
80
|
-
] }) : null, e[4] = n, e[5] = c) : c = e[5];
|
|
81
140
|
let a;
|
|
82
|
-
e[
|
|
141
|
+
e[0] !== t || e[1] !== n || e[2] !== r || e[3] !== l ? (a = /* @__PURE__ */ s(ct, { actor: t, icon: n, color: l, background: r }), e[0] = t, e[1] = n, e[2] = r, e[3] = l, e[4] = a) : a = e[4];
|
|
142
|
+
let f;
|
|
143
|
+
e[5] !== t.name ? (f = /* @__PURE__ */ s(M, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[5] = t.name, e[6] = f) : f = e[6];
|
|
83
144
|
let d;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
145
|
+
e[7] !== i ? (d = i ? /* @__PURE__ */ C(He, { children: [
|
|
146
|
+
/* @__PURE__ */ s(wo, {}),
|
|
147
|
+
/* @__PURE__ */ s(M, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: i })
|
|
148
|
+
] }) : null, e[7] = i, e[8] = d) : d = e[8];
|
|
149
|
+
let u;
|
|
150
|
+
e[9] !== c ? (u = /* @__PURE__ */ s(j, { marginLeft: "auto", flexShrink: 0, children: c }), e[9] = c, e[10] = u) : u = e[10];
|
|
151
|
+
let h;
|
|
152
|
+
return e[11] !== a || e[12] !== f || e[13] !== d || e[14] !== u ? (h = /* @__PURE__ */ C(le, { gap: "xs", alignItems: "center", minW: "0", children: [
|
|
153
|
+
a,
|
|
154
|
+
f,
|
|
155
|
+
d,
|
|
156
|
+
u
|
|
157
|
+
] }), e[11] = a, e[12] = f, e[13] = d, e[14] = u, e[15] = h) : h = e[15], h;
|
|
158
|
+
}, Io = Co("article", "root"), To = dn("div", "body"), Ao = dn("div", "content"), Po = (o) => {
|
|
159
|
+
const e = O(18);
|
|
160
|
+
let t, n, l, r, i;
|
|
93
161
|
e[0] !== o ? ({
|
|
94
162
|
actor: n,
|
|
95
|
-
timestamp:
|
|
163
|
+
timestamp: i,
|
|
96
164
|
actions: t,
|
|
97
|
-
children:
|
|
98
|
-
...
|
|
99
|
-
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] =
|
|
165
|
+
children: l,
|
|
166
|
+
...r
|
|
167
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5]);
|
|
100
168
|
let c;
|
|
101
|
-
e[6] !== t || e[7] !== n || e[8] !==
|
|
169
|
+
e[6] !== t || e[7] !== n || e[8] !== i ? (c = /* @__PURE__ */ s(fn, { actor: n, timestamp: i, actions: t }), e[6] = t, e[7] = n, e[8] = i, e[9] = c) : c = e[9];
|
|
102
170
|
let a;
|
|
103
|
-
e[10] !==
|
|
104
|
-
let
|
|
105
|
-
e[12] !== c || e[13] !== a ? (
|
|
171
|
+
e[10] !== l ? (a = /* @__PURE__ */ s(j, { paddingLeft: "32px", children: /* @__PURE__ */ s(M, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", children: l }) }), e[10] = l, e[11] = a) : a = e[11];
|
|
172
|
+
let f;
|
|
173
|
+
e[12] !== c || e[13] !== a ? (f = /* @__PURE__ */ C(X, { gap: "xs", children: [
|
|
106
174
|
c,
|
|
107
175
|
a
|
|
108
|
-
] }), e[12] = c, e[13] = a, e[14] =
|
|
109
|
-
let
|
|
110
|
-
return e[15] !==
|
|
111
|
-
},
|
|
112
|
-
const e =
|
|
113
|
-
let t, n, r, i,
|
|
176
|
+
] }), e[12] = c, e[13] = a, e[14] = f) : f = e[14];
|
|
177
|
+
let d;
|
|
178
|
+
return e[15] !== r || e[16] !== f ? (d = /* @__PURE__ */ s(j, { paddingX: "md", paddingY: "sm", ...r, children: f }), e[15] = r, e[16] = f, e[17] = d) : d = e[17], d;
|
|
179
|
+
}, un = (o) => {
|
|
180
|
+
const e = O(33);
|
|
181
|
+
let t, n, l, r, i, c, a, f, d, u;
|
|
114
182
|
e[0] !== o ? ({
|
|
115
183
|
actor: n,
|
|
116
|
-
|
|
184
|
+
icon: i,
|
|
185
|
+
iconColor: a,
|
|
186
|
+
iconBackground: c,
|
|
187
|
+
timestamp: u,
|
|
117
188
|
actions: t,
|
|
118
|
-
replies:
|
|
119
|
-
composer:
|
|
120
|
-
children:
|
|
121
|
-
...
|
|
122
|
-
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] =
|
|
123
|
-
const
|
|
124
|
-
let u;
|
|
125
|
-
e[8] !== t || e[9] !== n || e[10] !== a ? (u = /* @__PURE__ */ s(Yt, { actor: n, timestamp: a, actions: t }), e[8] = t, e[9] = n, e[10] = a, e[11] = u) : u = e[11];
|
|
126
|
-
let f;
|
|
127
|
-
e[12] !== r ? (f = /* @__PURE__ */ s(H, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", whiteSpace: "pre-wrap", children: r }), e[12] = r, e[13] = f) : f = e[13];
|
|
128
|
-
let h;
|
|
129
|
-
e[14] !== u || e[15] !== f ? (h = /* @__PURE__ */ v(Q, { gap: "sm", padding: "md", children: [
|
|
130
|
-
u,
|
|
131
|
-
f
|
|
132
|
-
] }), e[14] = u, e[15] = f, e[16] = h) : h = e[16];
|
|
133
|
-
let m;
|
|
134
|
-
e[17] !== d || e[18] !== l ? (m = d ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: l }) : null, e[17] = d, e[18] = l, e[19] = m) : m = e[19];
|
|
189
|
+
replies: f,
|
|
190
|
+
composer: r,
|
|
191
|
+
children: l,
|
|
192
|
+
...d
|
|
193
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c, e[7] = a, e[8] = f, e[9] = d, e[10] = u) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6], a = e[7], f = e[8], d = e[9], u = e[10]);
|
|
194
|
+
const h = $n.count(f) > 0;
|
|
135
195
|
let p;
|
|
136
|
-
e[
|
|
196
|
+
e[11] !== t || e[12] !== n || e[13] !== i || e[14] !== c || e[15] !== a || e[16] !== u ? (p = /* @__PURE__ */ s(fn, { actor: n, icon: i, iconColor: a, iconBackground: c, timestamp: u, actions: t }), e[11] = t, e[12] = n, e[13] = i, e[14] = c, e[15] = a, e[16] = u, e[17] = p) : p = e[17];
|
|
197
|
+
let m;
|
|
198
|
+
e[18] !== l ? (m = /* @__PURE__ */ s(Ao, { children: l }), e[18] = l, e[19] = m) : m = e[19];
|
|
137
199
|
let g;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
m
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
},
|
|
200
|
+
e[20] !== p || e[21] !== m ? (g = /* @__PURE__ */ C(To, { children: [
|
|
201
|
+
p,
|
|
202
|
+
m
|
|
203
|
+
] }), e[20] = p, e[21] = m, e[22] = g) : g = e[22];
|
|
204
|
+
let S;
|
|
205
|
+
e[23] !== h || e[24] !== f ? (S = h ? /* @__PURE__ */ s(j, { borderTopWidth: "1px", borderColor: "border.subtle", children: f }) : null, e[23] = h, e[24] = f, e[25] = S) : S = e[25];
|
|
206
|
+
let b;
|
|
207
|
+
e[26] !== r ? (b = r ? /* @__PURE__ */ s(j, { borderTopWidth: "1px", borderColor: "border.subtle", children: r }) : null, e[26] = r, e[27] = b) : b = e[27];
|
|
208
|
+
let T;
|
|
209
|
+
return e[28] !== d || e[29] !== g || e[30] !== S || e[31] !== b ? (T = /* @__PURE__ */ C(Io, { ...d, children: [
|
|
210
|
+
g,
|
|
211
|
+
S,
|
|
212
|
+
b
|
|
213
|
+
] }), e[28] = d, e[29] = g, e[30] = S, e[31] = b, e[32] = T) : T = e[32], T;
|
|
214
|
+
}, ko = (o) => {
|
|
144
215
|
const {
|
|
145
216
|
actor: e,
|
|
146
217
|
value: t,
|
|
147
218
|
defaultValue: n = "",
|
|
148
|
-
placeholder:
|
|
149
|
-
variant:
|
|
150
|
-
minRows:
|
|
219
|
+
placeholder: l = "Leave a comment...",
|
|
220
|
+
variant: r = "standalone",
|
|
221
|
+
minRows: i = r === "standalone" ? 3 : 1,
|
|
151
222
|
attachLabel: c = "Attach file",
|
|
152
223
|
submitLabel: a = "Submit comment",
|
|
153
|
-
actions:
|
|
154
|
-
onAttach:
|
|
155
|
-
onChange:
|
|
224
|
+
actions: f,
|
|
225
|
+
onAttach: d,
|
|
226
|
+
onChange: u,
|
|
156
227
|
onSubmit: h,
|
|
157
|
-
...
|
|
158
|
-
} = o, [
|
|
159
|
-
t === void 0 && g(
|
|
160
|
-
},
|
|
161
|
-
|
|
228
|
+
...p
|
|
229
|
+
} = o, [m, g] = ue(n), S = t ?? m, b = r === "inline", T = S.trim().length > 0, I = (x) => {
|
|
230
|
+
t === void 0 && g(x), u?.(x);
|
|
231
|
+
}, R = (x) => {
|
|
232
|
+
x.preventDefault(), T && (h?.(S.trim()), t === void 0 && g(""));
|
|
162
233
|
};
|
|
163
|
-
return /* @__PURE__ */ s(
|
|
234
|
+
return /* @__PURE__ */ s(Ae.form, { width: "full", background: "bg", borderWidth: b ? "0" : "1px", borderColor: "border", borderRadius: b ? "0" : "sm", transition: "border-color 0.12s ease", _hover: b ? void 0 : {
|
|
164
235
|
borderColor: "border"
|
|
165
236
|
}, _focusWithin: b ? void 0 : {
|
|
166
237
|
borderColor: "border.accent"
|
|
167
|
-
}, onSubmit:
|
|
168
|
-
e ? /* @__PURE__ */ s(
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */ s(
|
|
238
|
+
}, onSubmit: R, ...p, children: /* @__PURE__ */ C(le, { alignItems: "flex-start", gap: "xs", padding: b ? "sm" : "md", children: [
|
|
239
|
+
e ? /* @__PURE__ */ s(ct, { actor: e }) : null,
|
|
240
|
+
/* @__PURE__ */ C(j, { flex: "1", minW: "0", children: [
|
|
241
|
+
/* @__PURE__ */ s(In, { value: S, rows: i, resize: "none", border: "0", padding: "0", minH: b ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: l, _placeholder: {
|
|
171
242
|
color: "fg.subtle"
|
|
172
|
-
}, onChange: (
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
|
|
175
|
-
/* @__PURE__ */ s(
|
|
176
|
-
/* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick:
|
|
177
|
-
/* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !
|
|
243
|
+
}, onChange: (x) => I(x.currentTarget.value) }),
|
|
244
|
+
/* @__PURE__ */ C(le, { gap: "2xs", marginTop: b ? "0" : "sm", children: [
|
|
245
|
+
f,
|
|
246
|
+
/* @__PURE__ */ s(jt, {}),
|
|
247
|
+
/* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick: d, children: /* @__PURE__ */ s(ce, { as: zn, boxSize: "14px" }) }) }),
|
|
248
|
+
/* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !T, children: /* @__PURE__ */ s(ce, { as: Nn, boxSize: "14px" }) }) })
|
|
178
249
|
] })
|
|
179
250
|
] })
|
|
180
251
|
] }) });
|
|
181
|
-
},
|
|
182
|
-
const o =
|
|
252
|
+
}, Ro = () => {
|
|
253
|
+
const o = O(1);
|
|
183
254
|
let e;
|
|
184
|
-
return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(
|
|
185
|
-
},
|
|
186
|
-
const e =
|
|
187
|
-
let t, n, r, i,
|
|
255
|
+
return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(j, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
|
|
256
|
+
}, hn = (o) => {
|
|
257
|
+
const e = O(28);
|
|
258
|
+
let t, n, l, r, i, c, a;
|
|
188
259
|
e[0] !== o ? ({
|
|
189
260
|
actor: t,
|
|
190
|
-
icon:
|
|
191
|
-
iconColor:
|
|
261
|
+
icon: l,
|
|
262
|
+
iconColor: i,
|
|
192
263
|
iconBackground: c,
|
|
193
264
|
timestamp: a,
|
|
194
265
|
children: n,
|
|
195
|
-
...
|
|
196
|
-
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] =
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
266
|
+
...r
|
|
267
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c, e[7] = a) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6], a = e[7]);
|
|
268
|
+
const f = i === void 0 ? "fg" : i, d = c === void 0 ? "transparent" : c;
|
|
269
|
+
let u;
|
|
270
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(Ie.Separator, { borderColor: "border" }), e[8] = u) : u = e[8];
|
|
200
271
|
let h;
|
|
201
|
-
e[9] !== t || e[10] !==
|
|
202
|
-
|
|
203
|
-
/* @__PURE__ */ s(Ie.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ s(
|
|
204
|
-
] }), e[9] = t, e[10] =
|
|
205
|
-
let m;
|
|
206
|
-
e[14] !== t ? (m = t ? /* @__PURE__ */ s(H, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = m) : m = e[15];
|
|
272
|
+
e[9] !== t || e[10] !== l || e[11] !== d || e[12] !== f ? (h = /* @__PURE__ */ C(Ie.Connector, { children: [
|
|
273
|
+
u,
|
|
274
|
+
/* @__PURE__ */ s(Ie.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ s(ct, { actor: t, icon: l, color: f, background: d }) })
|
|
275
|
+
] }), e[9] = t, e[10] = l, e[11] = d, e[12] = f, e[13] = h) : h = e[13];
|
|
207
276
|
let p;
|
|
208
|
-
e[
|
|
277
|
+
e[14] !== t ? (p = t ? /* @__PURE__ */ s(M, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = p) : p = e[15];
|
|
278
|
+
let m;
|
|
279
|
+
e[16] !== n ? (m = /* @__PURE__ */ s(j, { as: "span", display: "inline-flex", alignItems: "center", gap: "2xs", minW: "0", flexWrap: "wrap", children: n }), e[16] = n, e[17] = m) : m = e[17];
|
|
209
280
|
let g;
|
|
210
|
-
e[18] !== a ? (g = a ? /* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */ s(
|
|
212
|
-
/* @__PURE__ */ s(
|
|
281
|
+
e[18] !== a ? (g = a ? /* @__PURE__ */ C(He, { children: [
|
|
282
|
+
/* @__PURE__ */ s(Ro, {}),
|
|
283
|
+
/* @__PURE__ */ s(M, { as: "span", color: "fg.muted", flexShrink: 0, children: a })
|
|
213
284
|
] }) : null, e[18] = a, e[19] = g) : g = e[19];
|
|
214
285
|
let S;
|
|
215
|
-
e[20] !==
|
|
216
|
-
m,
|
|
286
|
+
e[20] !== p || e[21] !== m || e[22] !== g ? (S = /* @__PURE__ */ s(Ie.Content, { gap: "0", minW: "0", children: /* @__PURE__ */ C(Ie.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
|
|
217
287
|
p,
|
|
288
|
+
m,
|
|
218
289
|
g
|
|
219
|
-
] }) }), e[20] =
|
|
290
|
+
] }) }), e[20] = p, e[21] = m, e[22] = g, e[23] = S) : S = e[23];
|
|
220
291
|
let b;
|
|
221
|
-
return e[24] !==
|
|
292
|
+
return e[24] !== r || e[25] !== h || e[26] !== S ? (b = /* @__PURE__ */ C(Ie.Item, { gap: "xs", minH: "24px", paddingX: "md", ...r, children: [
|
|
222
293
|
h,
|
|
223
294
|
S
|
|
224
|
-
] }), e[24] =
|
|
225
|
-
},
|
|
226
|
-
const e =
|
|
295
|
+
] }), e[24] = r, e[25] = h, e[26] = S, e[27] = b) : b = e[27], b;
|
|
296
|
+
}, $o = (o) => {
|
|
297
|
+
const e = O(6);
|
|
227
298
|
let t, n;
|
|
228
299
|
e[0] !== o ? ({
|
|
229
300
|
children: t,
|
|
230
301
|
...n
|
|
231
302
|
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
232
|
-
let
|
|
233
|
-
return e[3] !== t || e[4] !== n ? (
|
|
234
|
-
},
|
|
235
|
-
const e =
|
|
236
|
-
let t, n,
|
|
303
|
+
let l;
|
|
304
|
+
return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(X, { width: "full", gap: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
|
|
305
|
+
}, Lo = (o) => {
|
|
306
|
+
const e = O(12);
|
|
307
|
+
let t, n, l;
|
|
237
308
|
e[0] !== o ? ({
|
|
238
|
-
title:
|
|
309
|
+
title: l,
|
|
239
310
|
actions: t,
|
|
240
311
|
...n
|
|
241
|
-
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] =
|
|
242
|
-
const
|
|
243
|
-
let
|
|
244
|
-
e[4] !==
|
|
312
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l) : (t = e[1], n = e[2], l = e[3]);
|
|
313
|
+
const r = l === void 0 ? "Activity" : l;
|
|
314
|
+
let i;
|
|
315
|
+
e[4] !== r ? (i = /* @__PURE__ */ s(M, { textStyle: "label/M/medium", color: "fg", children: r }), e[4] = r, e[5] = i) : i = e[5];
|
|
245
316
|
let c;
|
|
246
|
-
e[6] !== t ? (c = t ? /* @__PURE__ */ s(
|
|
317
|
+
e[6] !== t ? (c = t ? /* @__PURE__ */ s(le, { gap: "xs", children: t }) : null, e[6] = t, e[7] = c) : c = e[7];
|
|
247
318
|
let a;
|
|
248
|
-
return e[8] !== n || e[9] !==
|
|
249
|
-
|
|
319
|
+
return e[8] !== n || e[9] !== i || e[10] !== c ? (a = /* @__PURE__ */ C(le, { alignItems: "center", justifyContent: "space-between", gap: "md", ...n, children: [
|
|
320
|
+
i,
|
|
250
321
|
c
|
|
251
|
-
] }), e[8] = n, e[9] =
|
|
252
|
-
},
|
|
253
|
-
const e =
|
|
322
|
+
] }), e[8] = n, e[9] = i, e[10] = c, e[11] = a) : a = e[11], a;
|
|
323
|
+
}, mn = (o) => {
|
|
324
|
+
const e = O(6);
|
|
254
325
|
let t, n;
|
|
255
326
|
e[0] !== o ? ({
|
|
256
327
|
children: t,
|
|
257
328
|
...n
|
|
258
329
|
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
259
|
-
let
|
|
260
|
-
return e[3] !== t || e[4] !== n ? (
|
|
261
|
-
},
|
|
262
|
-
const e =
|
|
330
|
+
let l;
|
|
331
|
+
return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(X, { gap: "md", width: "full", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
|
|
332
|
+
}, pn = (o) => {
|
|
333
|
+
const e = O(7);
|
|
263
334
|
let t, n;
|
|
264
335
|
e[0] !== o ? ({
|
|
265
336
|
children: t,
|
|
266
337
|
...n
|
|
267
338
|
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
268
|
-
let
|
|
269
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
339
|
+
let l;
|
|
340
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
270
341
|
"--timeline-indicator-size": "18px"
|
|
271
|
-
}, e[3] =
|
|
342
|
+
}, e[3] = l) : l = e[3];
|
|
343
|
+
let r;
|
|
344
|
+
return e[4] !== t || e[5] !== n ? (r = /* @__PURE__ */ s(Ie.Root, { size: "sm", variant: "plain", width: "full", css: l, ...n, children: t }), e[4] = t, e[5] = n, e[6] = r) : r = e[6], r;
|
|
345
|
+
}, Eo = /* @__PURE__ */ En(() => import("./rich-message-CuPiKxKX.js").then((o) => ({
|
|
346
|
+
default: o.RichMessage
|
|
347
|
+
}))), Do = {
|
|
348
|
+
activity: Un,
|
|
349
|
+
bell: Kt,
|
|
350
|
+
"circle-alert": jn,
|
|
351
|
+
component: Gn,
|
|
352
|
+
"external-link": Vn,
|
|
353
|
+
"git-branch": Hn,
|
|
354
|
+
info: Fn,
|
|
355
|
+
"message-circle": Mn,
|
|
356
|
+
"scan-search": Wn,
|
|
357
|
+
sparkles: Bn
|
|
358
|
+
}, Je = (o) => {
|
|
359
|
+
const e = O(2), t = Do[o.name];
|
|
360
|
+
let n;
|
|
361
|
+
return e[0] !== t ? (n = /* @__PURE__ */ s(ce, { as: t, boxSize: "13px" }), e[0] = t, e[1] = n) : n = e[1], n;
|
|
362
|
+
}, Ct = (o) => {
|
|
363
|
+
const e = O(12), {
|
|
364
|
+
item: t,
|
|
365
|
+
size: n,
|
|
366
|
+
onActionSelect: l,
|
|
367
|
+
onRelatedResourceSelect: r
|
|
368
|
+
} = o, i = t.kind === "message" ? t.attention?.actions : void 0;
|
|
369
|
+
if (!t.relatedResources?.length && !i?.length)
|
|
370
|
+
return null;
|
|
371
|
+
let c;
|
|
372
|
+
e[0] !== i || e[1] !== t || e[2] !== l || e[3] !== n ? (c = i?.map((d) => /* @__PURE__ */ C(de, { type: "button", size: n === "compact" ? "2xs" : "xs", variant: "outline", disabled: !l, onClick: () => l?.(d, t), children: [
|
|
373
|
+
d.icon ? /* @__PURE__ */ s(Je, { name: d.icon }) : null,
|
|
374
|
+
d.label
|
|
375
|
+
] }, d.id)), e[0] = i, e[1] = t, e[2] = l, e[3] = n, e[4] = c) : c = e[4];
|
|
376
|
+
let a;
|
|
377
|
+
e[5] !== t || e[6] !== r || e[7] !== n ? (a = t.relatedResources?.map((d) => /* @__PURE__ */ s(de, { type: "button", size: n === "compact" ? "2xs" : "xs", variant: "ghost", disabled: !r, onClick: () => r?.(d, t), children: d.label }, `${d.type}:${d.id}`)), e[5] = t, e[6] = r, e[7] = n, e[8] = a) : a = e[8];
|
|
378
|
+
let f;
|
|
379
|
+
return e[9] !== c || e[10] !== a ? (f = /* @__PURE__ */ C(le, { gap: "2xs", flexWrap: "wrap", children: [
|
|
380
|
+
c,
|
|
381
|
+
a
|
|
382
|
+
] }), e[9] = c, e[10] = a, e[11] = f) : f = e[11], f;
|
|
383
|
+
}, _o = (o) => {
|
|
384
|
+
const e = O(7), {
|
|
385
|
+
attention: t
|
|
386
|
+
} = o;
|
|
387
|
+
if (!t.statusLabel)
|
|
388
|
+
return null;
|
|
389
|
+
const n = t.icon ?? "bell";
|
|
390
|
+
let l;
|
|
391
|
+
e[0] !== n ? (l = /* @__PURE__ */ s(Je, { name: n }), e[0] = n, e[1] = l) : l = e[1];
|
|
392
|
+
let r;
|
|
393
|
+
e[2] !== t.statusLabel ? (r = /* @__PURE__ */ s(M, { textStyle: "label/XS/medium", children: t.statusLabel }), e[2] = t.statusLabel, e[3] = r) : r = e[3];
|
|
272
394
|
let i;
|
|
273
|
-
return e[4] !==
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
395
|
+
return e[4] !== l || e[5] !== r ? (i = /* @__PURE__ */ C(le, { gap: "2xs", color: "fg.warning", children: [
|
|
396
|
+
l,
|
|
397
|
+
r
|
|
398
|
+
] }), e[4] = l, e[5] = r, e[6] = i) : i = e[6], i;
|
|
399
|
+
}, Oo = (o) => {
|
|
400
|
+
const e = O(50), {
|
|
401
|
+
item: t,
|
|
402
|
+
size: n,
|
|
403
|
+
fallbackActorName: l,
|
|
404
|
+
formatTimestamp: r,
|
|
405
|
+
onActionSelect: i,
|
|
406
|
+
onRelatedResourceSelect: c
|
|
407
|
+
} = o;
|
|
408
|
+
let a;
|
|
409
|
+
e[0] !== l || e[1] !== t.actor ? (a = t.actor ?? {
|
|
410
|
+
name: l
|
|
411
|
+
}, e[0] = l, e[1] = t.actor, e[2] = a) : a = e[2];
|
|
412
|
+
const f = a;
|
|
413
|
+
let d;
|
|
414
|
+
e[3] !== r || e[4] !== t ? (d = t.timestampLabel ?? r(t.createdAt, t), e[3] = r, e[4] = t, e[5] = d) : d = e[5];
|
|
415
|
+
let u;
|
|
416
|
+
e[6] !== t.createdAt || e[7] !== d ? (u = /* @__PURE__ */ s("time", { dateTime: t.createdAt, children: d }), e[6] = t.createdAt, e[7] = d, e[8] = u) : u = e[8];
|
|
417
|
+
const h = u;
|
|
418
|
+
if (t.kind === "event") {
|
|
419
|
+
let P;
|
|
420
|
+
e[9] !== t.icon ? (P = t.icon ? /* @__PURE__ */ s(Je, { name: t.icon }) : void 0, e[9] = t.icon, e[10] = P) : P = e[10];
|
|
421
|
+
const w = n === "compact" ? "sm" : "md";
|
|
422
|
+
let y;
|
|
423
|
+
e[11] !== t.summary ? (y = /* @__PURE__ */ s(M, { as: "span", children: t.summary }), e[11] = t.summary, e[12] = y) : y = e[12];
|
|
424
|
+
let L;
|
|
425
|
+
e[13] !== t || e[14] !== c || e[15] !== n ? (L = /* @__PURE__ */ s(Ct, { item: t, size: n, onRelatedResourceSelect: c }), e[13] = t, e[14] = c, e[15] = n, e[16] = L) : L = e[16];
|
|
426
|
+
let D;
|
|
427
|
+
return e[17] !== f || e[18] !== P || e[19] !== w || e[20] !== y || e[21] !== L || e[22] !== h ? (D = /* @__PURE__ */ s(pn, { children: /* @__PURE__ */ C(hn, { actor: f, icon: P, timestamp: h, paddingX: w, children: [
|
|
428
|
+
y,
|
|
429
|
+
L
|
|
430
|
+
] }) }), e[17] = f, e[18] = P, e[19] = w, e[20] = y, e[21] = L, e[22] = h, e[23] = D) : D = e[23], D;
|
|
431
|
+
}
|
|
432
|
+
const p = t.attention?.icon ?? "bell";
|
|
433
|
+
let m;
|
|
434
|
+
e[24] !== p || e[25] !== t.attention ? (m = t.attention ? /* @__PURE__ */ s(Je, { name: p }) : void 0, e[24] = p, e[25] = t.attention, e[26] = m) : m = e[26];
|
|
435
|
+
const g = t.attention ? "fg.warning" : void 0, S = t.attention ? "bg.warning" : void 0;
|
|
436
|
+
let b;
|
|
437
|
+
e[27] !== t.attention ? (b = t.attention ? /* @__PURE__ */ s(_o, { attention: t.attention }) : void 0, e[27] = t.attention, e[28] = b) : b = e[28];
|
|
438
|
+
const T = t.attention ? "attention" : "default", I = n === "compact" ? "xs" : "sm";
|
|
439
|
+
let R;
|
|
440
|
+
e[29] !== t.markdown ? (R = /* @__PURE__ */ s(Ln, { fallback: /* @__PURE__ */ s(M, { children: t.markdown }), children: /* @__PURE__ */ s(Eo, { defaultState: t.markdown, fullWidth: !0 }) }), e[29] = t.markdown, e[30] = R) : R = e[30];
|
|
441
|
+
let x;
|
|
442
|
+
e[31] !== t || e[32] !== i || e[33] !== c || e[34] !== n ? (x = /* @__PURE__ */ s(Ct, { item: t, size: n, onActionSelect: i, onRelatedResourceSelect: c }), e[31] = t, e[32] = i, e[33] = c, e[34] = n, e[35] = x) : x = e[35];
|
|
443
|
+
let $;
|
|
444
|
+
e[36] !== x || e[37] !== I || e[38] !== R ? ($ = /* @__PURE__ */ C(X, { gap: I, children: [
|
|
445
|
+
R,
|
|
446
|
+
x
|
|
447
|
+
] }), e[36] = x, e[37] = I, e[38] = R, e[39] = $) : $ = e[39];
|
|
448
|
+
let A;
|
|
449
|
+
return e[40] !== f || e[41] !== n || e[42] !== $ || e[43] !== m || e[44] !== g || e[45] !== S || e[46] !== b || e[47] !== T || e[48] !== h ? (A = /* @__PURE__ */ s(un, { actor: f, icon: m, iconColor: g, iconBackground: S, timestamp: h, actions: b, tone: T, size: n, children: $ }), e[40] = f, e[41] = n, e[42] = $, e[43] = m, e[44] = g, e[45] = S, e[46] = b, e[47] = T, e[48] = h, e[49] = A) : A = e[49], A;
|
|
450
|
+
}, zo = (o) => o, Gr = (o) => {
|
|
451
|
+
const e = O(56);
|
|
452
|
+
let t, n, l, r, i, c, a, f, d, u, h, p, m, g, S, b, T;
|
|
453
|
+
e[0] !== o ? ({
|
|
454
|
+
items: n,
|
|
455
|
+
size: a,
|
|
456
|
+
isLoading: f,
|
|
457
|
+
error: t,
|
|
458
|
+
hasMore: u,
|
|
459
|
+
isLoadingMore: h,
|
|
460
|
+
emptyTitle: p,
|
|
461
|
+
emptyDescription: m,
|
|
462
|
+
errorTitle: g,
|
|
463
|
+
loadMoreLabel: S,
|
|
464
|
+
loadingLabel: b,
|
|
465
|
+
fallbackActorName: T,
|
|
466
|
+
formatTimestamp: d,
|
|
467
|
+
onActionSelect: l,
|
|
468
|
+
onLoadMore: r,
|
|
469
|
+
onRelatedResourceSelect: i,
|
|
470
|
+
...c
|
|
471
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c, e[7] = a, e[8] = f, e[9] = d, e[10] = u, e[11] = h, e[12] = p, e[13] = m, e[14] = g, e[15] = S, e[16] = b, e[17] = T) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6], a = e[7], f = e[8], d = e[9], u = e[10], h = e[11], p = e[12], m = e[13], g = e[14], S = e[15], b = e[16], T = e[17]);
|
|
472
|
+
const I = a === void 0 ? "comfortable" : a, R = f === void 0 ? !1 : f, x = u === void 0 ? !1 : u, $ = h === void 0 ? !1 : h, A = p === void 0 ? "No activity yet" : p, P = m === void 0 ? "Events and messages will appear here." : m, w = g === void 0 ? "Activity unavailable" : g, y = S === void 0 ? "Load more" : S, L = b === void 0 ? "Loading activity" : b, D = T === void 0 ? "System" : T, k = d === void 0 ? zo : d;
|
|
473
|
+
if (t) {
|
|
474
|
+
let E;
|
|
475
|
+
return e[18] !== t || e[19] !== w || e[20] !== c ? (E = /* @__PURE__ */ s(lt, { status: "error", colorPalette: "red", title: w, size: "sm", ...c, children: t }), e[18] = t, e[19] = w, e[20] = c, e[21] = E) : E = e[21], E;
|
|
476
|
+
}
|
|
477
|
+
if (R && n.length === 0) {
|
|
478
|
+
let E;
|
|
479
|
+
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ s(pt, { size: "sm" }), e[22] = E) : E = e[22];
|
|
480
|
+
let H;
|
|
481
|
+
e[23] !== L ? (H = /* @__PURE__ */ s(M, { textStyle: "label/S/regular", children: L }), e[23] = L, e[24] = H) : H = e[24];
|
|
482
|
+
let W;
|
|
483
|
+
return e[25] !== c || e[26] !== H ? (W = /* @__PURE__ */ C(le, { role: "status", "aria-live": "polite", gap: "xs", color: "fg.muted", ...c, children: [
|
|
484
|
+
E,
|
|
485
|
+
H
|
|
486
|
+
] }), e[25] = c, e[26] = H, e[27] = W) : W = e[27], W;
|
|
487
|
+
}
|
|
488
|
+
if (n.length === 0) {
|
|
489
|
+
let E;
|
|
490
|
+
return e[28] !== P || e[29] !== A || e[30] !== c ? (E = /* @__PURE__ */ s(ho, { title: A, description: P, ...c }), e[28] = P, e[29] = A, e[30] = c, e[31] = E) : E = e[31], E;
|
|
491
|
+
}
|
|
492
|
+
const N = I === "compact" ? "sm" : "md";
|
|
493
|
+
let _;
|
|
494
|
+
if (e[32] !== D || e[33] !== k || e[34] !== n || e[35] !== l || e[36] !== i || e[37] !== I) {
|
|
495
|
+
let E;
|
|
496
|
+
e[39] !== D || e[40] !== k || e[41] !== l || e[42] !== i || e[43] !== I ? (E = (H) => /* @__PURE__ */ s(Oo, { item: H, size: I, fallbackActorName: D, formatTimestamp: k, onActionSelect: l, onRelatedResourceSelect: i }, H.id), e[39] = D, e[40] = k, e[41] = l, e[42] = i, e[43] = I, e[44] = E) : E = e[44], _ = n.map(E), e[32] = D, e[33] = k, e[34] = n, e[35] = l, e[36] = i, e[37] = I, e[38] = _;
|
|
497
|
+
} else
|
|
498
|
+
_ = e[38];
|
|
499
|
+
let v;
|
|
500
|
+
e[45] !== x || e[46] !== $ || e[47] !== y || e[48] !== r || e[49] !== I ? (v = x ? /* @__PURE__ */ s(de, { type: "button", width: "full", size: I === "compact" ? "xs" : "sm", variant: "ghost", loading: $, onClick: r, children: y }) : null, e[45] = x, e[46] = $, e[47] = y, e[48] = r, e[49] = I, e[50] = v) : v = e[50];
|
|
501
|
+
let z;
|
|
502
|
+
return e[51] !== c || e[52] !== N || e[53] !== _ || e[54] !== v ? (z = /* @__PURE__ */ C(mn, { gap: N, ...c, children: [
|
|
503
|
+
_,
|
|
504
|
+
v
|
|
505
|
+
] }), e[51] = c, e[52] = N, e[53] = _, e[54] = v, e[55] = z) : z = e[55], z;
|
|
506
|
+
}, jr = {
|
|
507
|
+
Root: $o,
|
|
508
|
+
Header: Lo,
|
|
509
|
+
Feed: mn,
|
|
510
|
+
Timeline: pn,
|
|
511
|
+
Event: hn,
|
|
512
|
+
Comment: un,
|
|
513
|
+
Reply: Po,
|
|
514
|
+
Composer: ko,
|
|
515
|
+
Avatar: ct
|
|
516
|
+
}, Ur = 48, No = (o) => {
|
|
285
517
|
const e = typeof o.label == "string" ? o.label : "", t = typeof o.secondaryLabel == "string" ? o.secondaryLabel : "";
|
|
286
518
|
return `${e} ${o.searchText ?? ""} ${t}`;
|
|
287
|
-
},
|
|
288
|
-
const n = e.find((
|
|
519
|
+
}, gn = (o, e) => o.trimStart().startsWith(e), Bo = (o, e = [], t) => e.find((l) => l.inputPrefix && gn(o, l.inputPrefix))?.id ?? t ?? e.find((l) => !l.inputPrefix)?.id ?? e[0]?.id, Wo = (o, e = [], t) => {
|
|
520
|
+
const n = e.find((l) => l.id === t && l.inputPrefix && gn(o, l.inputPrefix));
|
|
289
521
|
return n?.inputPrefix ? o.trimStart().slice(n.inputPrefix.length).trim() : o.trim();
|
|
290
|
-
},
|
|
522
|
+
}, Mo = (o, e) => {
|
|
291
523
|
const t = {};
|
|
292
524
|
return o.filter((n) => {
|
|
293
|
-
const
|
|
294
|
-
if (!
|
|
295
|
-
const
|
|
296
|
-
return
|
|
525
|
+
const l = n.assetType;
|
|
526
|
+
if (!l) return !0;
|
|
527
|
+
const r = t[l] ?? 0;
|
|
528
|
+
return r >= e ? !1 : (t[l] = r + 1, !0);
|
|
297
529
|
});
|
|
298
|
-
},
|
|
299
|
-
const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((
|
|
300
|
-
return t || e.defaultAssetLimit === void 0 ? n :
|
|
301
|
-
},
|
|
530
|
+
}, Fo = (o, e) => {
|
|
531
|
+
const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((l) => e.mode && l.mode !== e.mode ? !1 : t ? No(l).toLowerCase().includes(t) : !0);
|
|
532
|
+
return t || e.defaultAssetLimit === void 0 ? n : Mo(n, e.defaultAssetLimit);
|
|
533
|
+
}, Ho = 24, Vo = 40, Go = 384, jo = (o) => ({
|
|
302
534
|
id: o.id,
|
|
303
535
|
label: o.label,
|
|
304
536
|
description: o.description ?? o.secondaryLabel,
|
|
305
537
|
icon: o.icon,
|
|
306
|
-
endContent: o.endContent ?? (o.shortcut || o.isSelected ? /* @__PURE__ */
|
|
538
|
+
endContent: o.endContent ?? (o.shortcut || o.isSelected ? /* @__PURE__ */ C(le, { gap: "2", children: [
|
|
307
539
|
o.shortcut,
|
|
308
|
-
o.isSelected ? /* @__PURE__ */ s(ce, { as:
|
|
540
|
+
o.isSelected ? /* @__PURE__ */ s(ce, { as: nt, boxSize: "14px", color: "fg.muted" }) : null
|
|
309
541
|
] }) : void 0),
|
|
310
542
|
onActivate: o.onActivate
|
|
311
|
-
}),
|
|
543
|
+
}), Uo = (o) => {
|
|
312
544
|
const e = [];
|
|
313
545
|
return o.forEach((t, n) => {
|
|
314
|
-
const
|
|
315
|
-
t.group && t.group !==
|
|
546
|
+
const l = o[n - 1];
|
|
547
|
+
t.group && t.group !== l?.group && e.push({
|
|
316
548
|
type: "group",
|
|
317
549
|
id: `group:${t.group}:${t.id}`,
|
|
318
550
|
label: t.group
|
|
@@ -323,21 +555,21 @@ const it = (o) => {
|
|
|
323
555
|
entryIndex: n
|
|
324
556
|
});
|
|
325
557
|
}), e;
|
|
326
|
-
},
|
|
558
|
+
}, Qo = (o, e) => o.findIndex((t) => t.type === "entry" && t.entryIndex === e), Xo = (o) => {
|
|
327
559
|
const {
|
|
328
560
|
entries: e,
|
|
329
561
|
activeIndex: t,
|
|
330
562
|
emptyLabel: n,
|
|
331
|
-
onHover:
|
|
332
|
-
scrollRef:
|
|
333
|
-
} = o,
|
|
334
|
-
count:
|
|
335
|
-
getScrollElement: () =>
|
|
336
|
-
estimateSize: (
|
|
337
|
-
getItemKey: (
|
|
563
|
+
onHover: l,
|
|
564
|
+
scrollRef: r
|
|
565
|
+
} = o, i = Uo(e), c = Qo(i, t), a = io({
|
|
566
|
+
count: i.length,
|
|
567
|
+
getScrollElement: () => r.current,
|
|
568
|
+
estimateSize: (f) => i[f]?.type === "group" ? Ho : Vo,
|
|
569
|
+
getItemKey: (f) => i[f]?.id ?? f,
|
|
338
570
|
initialRect: {
|
|
339
571
|
width: 0,
|
|
340
|
-
height:
|
|
572
|
+
height: Go
|
|
341
573
|
},
|
|
342
574
|
overscan: 6
|
|
343
575
|
});
|
|
@@ -346,142 +578,142 @@ const it = (o) => {
|
|
|
346
578
|
align: "auto",
|
|
347
579
|
behavior: "auto"
|
|
348
580
|
});
|
|
349
|
-
}, [c, a]), e.length === 0 ? /* @__PURE__ */ s(
|
|
581
|
+
}, [c, a]), e.length === 0 ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: n }) : /* @__PURE__ */ s(j, { role: "listbox", position: "relative", width: "100%", style: {
|
|
350
582
|
height: a.getTotalSize()
|
|
351
|
-
}, children: a.getVirtualItems().map((
|
|
352
|
-
const
|
|
353
|
-
return
|
|
354
|
-
top:
|
|
355
|
-
}, children:
|
|
583
|
+
}, children: a.getVirtualItems().map((f) => {
|
|
584
|
+
const d = i[f.index];
|
|
585
|
+
return d ? /* @__PURE__ */ s(j, { "data-index": f.index, ref: a.measureElement, position: "absolute", left: "0", width: "100%", style: {
|
|
586
|
+
top: f.start
|
|
587
|
+
}, children: d.type === "group" ? /* @__PURE__ */ s(M, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: d.label }) : /* @__PURE__ */ s(Qe, { variant: "full-width", ...jo(d.entry), isSelected: d.entryIndex === t, tabIndex: -1, onPointerMove: () => l(d.entryIndex) }) }, f.key) : null;
|
|
356
588
|
}) });
|
|
357
|
-
},
|
|
358
|
-
const e =
|
|
589
|
+
}, wt = (o) => o != null, qo = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", bn = (o) => {
|
|
590
|
+
const e = O(49), {
|
|
359
591
|
children: t,
|
|
360
592
|
searchValue: n,
|
|
361
|
-
searchPlaceholder:
|
|
362
|
-
searchAriaLabel:
|
|
363
|
-
searchIcon:
|
|
593
|
+
searchPlaceholder: l,
|
|
594
|
+
searchAriaLabel: r,
|
|
595
|
+
searchIcon: i,
|
|
364
596
|
searchInputRef: c,
|
|
365
597
|
searchAutoFocus: a,
|
|
366
|
-
showCloseButton:
|
|
367
|
-
closeButtonLabel:
|
|
368
|
-
bodyBefore:
|
|
598
|
+
showCloseButton: f,
|
|
599
|
+
closeButtonLabel: d,
|
|
600
|
+
bodyBefore: u,
|
|
369
601
|
footerStart: h,
|
|
370
|
-
footerEnd:
|
|
371
|
-
scrollAreaProps:
|
|
602
|
+
footerEnd: p,
|
|
603
|
+
scrollAreaProps: m,
|
|
372
604
|
onSearchChange: g,
|
|
373
605
|
onSearchKeyDown: S
|
|
374
|
-
} = o, b =
|
|
375
|
-
let
|
|
376
|
-
if (e[0] !==
|
|
377
|
-
const
|
|
378
|
-
let R;
|
|
379
|
-
e[16] !== p ? (R = p ?? {}, e[16] = p, e[17] = R) : R = e[17];
|
|
380
|
-
let E, P, C;
|
|
381
|
-
e[18] !== R ? ({
|
|
382
|
-
maxH: P,
|
|
383
|
-
showHorizontalScrollbar: C,
|
|
384
|
-
...E
|
|
385
|
-
} = R, e[18] = R, e[19] = E, e[20] = P, e[21] = C) : (E = e[19], P = e[20], C = e[21]);
|
|
386
|
-
const O = P === void 0 ? "24rem" : P, z = C === void 0 ? !1 : C;
|
|
606
|
+
} = o, b = r === void 0 ? l : r, T = f === void 0 ? !1 : f, I = d === void 0 ? "Close" : d;
|
|
607
|
+
let R;
|
|
608
|
+
if (e[0] !== u || e[1] !== t || e[2] !== I || e[3] !== p || e[4] !== h || e[5] !== g || e[6] !== S || e[7] !== m || e[8] !== b || e[9] !== a || e[10] !== i || e[11] !== c || e[12] !== l || e[13] !== n || e[14] !== T) {
|
|
609
|
+
const x = wt(h), $ = wt(p);
|
|
387
610
|
let A;
|
|
388
|
-
e[
|
|
389
|
-
let
|
|
390
|
-
e[
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
611
|
+
e[16] !== m ? (A = m ?? {}, e[16] = m, e[17] = A) : A = e[17];
|
|
612
|
+
let P, w, y;
|
|
613
|
+
e[18] !== A ? ({
|
|
614
|
+
maxH: w,
|
|
615
|
+
showHorizontalScrollbar: y,
|
|
616
|
+
...P
|
|
617
|
+
} = A, e[18] = A, e[19] = P, e[20] = w, e[21] = y) : (P = e[19], w = e[20], y = e[21]);
|
|
618
|
+
const L = w === void 0 ? "24rem" : w, D = y === void 0 ? !1 : y;
|
|
619
|
+
let k;
|
|
620
|
+
e[22] !== g ? (k = (W) => g(W.target.value), e[22] = g, e[23] = k) : k = e[23];
|
|
395
621
|
let N;
|
|
396
|
-
e[
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
622
|
+
e[24] !== S || e[25] !== b || e[26] !== a || e[27] !== c || e[28] !== l || e[29] !== n || e[30] !== k ? (N = /* @__PURE__ */ s(Qt, { ref: c, value: n, placeholder: l, "aria-label": b, autoComplete: "off", autoFocus: a, mx: "xs", h: "3rem", variant: "borderless", onChange: k, onKeyDown: S }), e[24] = S, e[25] = b, e[26] = a, e[27] = c, e[28] = l, e[29] = n, e[30] = k, e[31] = N) : N = e[31];
|
|
623
|
+
let _;
|
|
624
|
+
e[32] !== i || e[33] !== N ? (_ = /* @__PURE__ */ s(Xt, { startElement: i, width: "full", children: N }), e[32] = i, e[33] = N, e[34] = _) : _ = e[34];
|
|
625
|
+
let v;
|
|
626
|
+
e[35] !== I || e[36] !== T ? (v = T ? /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ut, { "aria-label": I, size: "sm", mr: "2" }) }) : null, e[35] = I, e[36] = T, e[37] = v) : v = e[37];
|
|
627
|
+
let z;
|
|
628
|
+
e[38] !== v || e[39] !== _ ? (z = /* @__PURE__ */ C(Z.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
|
|
629
|
+
_,
|
|
630
|
+
v
|
|
631
|
+
] }), e[38] = v, e[39] = _, e[40] = z) : z = e[40];
|
|
632
|
+
let E;
|
|
633
|
+
e[41] !== t || e[42] !== L || e[43] !== P || e[44] !== D ? (E = /* @__PURE__ */ s(ot, { maxH: L, showHorizontalScrollbar: D, ...P, children: t }), e[41] = t, e[42] = L, e[43] = P, e[44] = D, e[45] = E) : E = e[45];
|
|
634
|
+
let H;
|
|
635
|
+
e[46] !== u || e[47] !== E ? (H = /* @__PURE__ */ C(Z.Body, { p: "0", children: [
|
|
636
|
+
u,
|
|
637
|
+
E
|
|
638
|
+
] }), e[46] = u, e[47] = E, e[48] = H) : H = e[48], R = /* @__PURE__ */ C(He, { children: [
|
|
639
|
+
z,
|
|
640
|
+
H,
|
|
641
|
+
x || $ ? /* @__PURE__ */ C(Z.Footer, { justifyContent: qo(x, $), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
|
|
642
|
+
x ? /* @__PURE__ */ s(j, { minW: "0", children: h }) : null,
|
|
643
|
+
$ ? /* @__PURE__ */ s(j, { flexShrink: 0, children: p }) : null
|
|
412
644
|
] }) : null
|
|
413
|
-
] }), e[0] =
|
|
645
|
+
] }), e[0] = u, e[1] = t, e[2] = I, e[3] = p, e[4] = h, e[5] = g, e[6] = S, e[7] = m, e[8] = b, e[9] = a, e[10] = i, e[11] = c, e[12] = l, e[13] = n, e[14] = T, e[15] = R;
|
|
414
646
|
} else
|
|
415
|
-
|
|
416
|
-
return
|
|
417
|
-
},
|
|
418
|
-
const e =
|
|
647
|
+
R = e[15];
|
|
648
|
+
return R;
|
|
649
|
+
}, It = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, Qr = (o) => {
|
|
650
|
+
const e = O(71), {
|
|
419
651
|
open: t,
|
|
420
652
|
entries: n,
|
|
421
|
-
initialQuery:
|
|
422
|
-
initialActiveIndex:
|
|
423
|
-
mode:
|
|
653
|
+
initialQuery: l,
|
|
654
|
+
initialActiveIndex: r,
|
|
655
|
+
mode: i,
|
|
424
656
|
modes: c,
|
|
425
657
|
resetKey: a,
|
|
426
|
-
inputIcon:
|
|
427
|
-
placeholder:
|
|
428
|
-
emptyLabel:
|
|
658
|
+
inputIcon: f,
|
|
659
|
+
placeholder: d,
|
|
660
|
+
emptyLabel: u,
|
|
429
661
|
footerStart: h,
|
|
430
|
-
footerEnd:
|
|
431
|
-
filterEntries:
|
|
662
|
+
footerEnd: p,
|
|
663
|
+
filterEntries: m,
|
|
432
664
|
onActiveEntryChange: g,
|
|
433
665
|
onQueryChange: S,
|
|
434
666
|
onClose: b,
|
|
435
|
-
onEscape:
|
|
436
|
-
} = o,
|
|
437
|
-
let
|
|
438
|
-
e[0] !==
|
|
667
|
+
onEscape: T
|
|
668
|
+
} = o, I = l === void 0 ? "" : l, R = r === void 0 ? 0 : r, x = a === void 0 ? "default" : a, $ = u === void 0 ? "No results." : u, [A, P] = ue(I), [w, y] = ue(R), L = Me(null), D = Me(null);
|
|
669
|
+
let k;
|
|
670
|
+
e[0] !== x ? (k = {
|
|
439
671
|
open: !1,
|
|
440
|
-
resetKey:
|
|
441
|
-
}, e[0] =
|
|
442
|
-
const
|
|
443
|
-
let
|
|
444
|
-
if (e[2] !==
|
|
445
|
-
const
|
|
446
|
-
|
|
447
|
-
query:
|
|
448
|
-
mode:
|
|
449
|
-
getEffectiveQuery: (be) =>
|
|
450
|
-
}),
|
|
451
|
-
query:
|
|
452
|
-
mode:
|
|
453
|
-
activeIndex:
|
|
454
|
-
entries:
|
|
455
|
-
},
|
|
672
|
+
resetKey: x
|
|
673
|
+
}, e[0] = x, e[1] = k) : k = e[1];
|
|
674
|
+
const N = Me(k);
|
|
675
|
+
let _, v, z, E, H;
|
|
676
|
+
if (e[2] !== w || e[3] !== n || e[4] !== m || e[5] !== f || e[6] !== i || e[7] !== c || e[8] !== d || e[9] !== A) {
|
|
677
|
+
const V = i ?? Bo(A, c);
|
|
678
|
+
v = m ? m(n, A, V) : Fo(n, {
|
|
679
|
+
query: A,
|
|
680
|
+
mode: V,
|
|
681
|
+
getEffectiveQuery: (be) => Wo(be, c, V)
|
|
682
|
+
}), _ = v[w] ?? null, E = {
|
|
683
|
+
query: A,
|
|
684
|
+
mode: V,
|
|
685
|
+
activeIndex: w,
|
|
686
|
+
entries: v
|
|
687
|
+
}, z = It(f, E, null), H = It(d, E, "Search"), e[2] = w, e[3] = n, e[4] = m, e[5] = f, e[6] = i, e[7] = c, e[8] = d, e[9] = A, e[10] = _, e[11] = v, e[12] = z, e[13] = E, e[14] = H;
|
|
456
688
|
} else
|
|
457
|
-
|
|
458
|
-
const
|
|
459
|
-
let
|
|
460
|
-
e[15] !== S ? (
|
|
461
|
-
|
|
462
|
-
}, e[15] = S, e[16] =
|
|
463
|
-
const
|
|
689
|
+
_ = e[10], v = e[11], z = e[12], E = e[13], H = e[14];
|
|
690
|
+
const W = H;
|
|
691
|
+
let F;
|
|
692
|
+
e[15] !== S ? (F = (V) => {
|
|
693
|
+
P(V), S?.(V);
|
|
694
|
+
}, e[15] = S, e[16] = F) : F = e[16];
|
|
695
|
+
const B = F;
|
|
464
696
|
let q;
|
|
465
|
-
e[17] !==
|
|
466
|
-
|
|
467
|
-
}, e[17] =
|
|
468
|
-
const
|
|
469
|
-
let
|
|
470
|
-
e[19] !== b ? (
|
|
697
|
+
e[17] !== _ ? (q = () => {
|
|
698
|
+
_?.onActivate();
|
|
699
|
+
}, e[17] = _, e[18] = q) : q = e[18];
|
|
700
|
+
const U = q;
|
|
701
|
+
let G;
|
|
702
|
+
e[19] !== b ? (G = () => {
|
|
471
703
|
b();
|
|
472
|
-
}, e[19] = b, e[20] =
|
|
473
|
-
const
|
|
474
|
-
let K,
|
|
475
|
-
e[21] !==
|
|
476
|
-
const
|
|
477
|
-
if (
|
|
704
|
+
}, e[19] = b, e[20] = G) : G = e[20];
|
|
705
|
+
const Q = G;
|
|
706
|
+
let K, ae;
|
|
707
|
+
e[21] !== R || e[22] !== I || e[23] !== t || e[24] !== x ? (ae = () => {
|
|
708
|
+
const V = N.current;
|
|
709
|
+
if (N.current = {
|
|
478
710
|
open: t,
|
|
479
|
-
resetKey:
|
|
480
|
-
}, !t || !(!
|
|
711
|
+
resetKey: x
|
|
712
|
+
}, !t || !(!V.open || V.resetKey !== x))
|
|
481
713
|
return;
|
|
482
|
-
|
|
714
|
+
P(I), y(R);
|
|
483
715
|
const Ce = setTimeout(() => {
|
|
484
|
-
const we =
|
|
716
|
+
const we = L.current;
|
|
485
717
|
if (!we)
|
|
486
718
|
return;
|
|
487
719
|
we.focus();
|
|
@@ -489,84 +721,84 @@ const it = (o) => {
|
|
|
489
721
|
we.setSelectionRange(Se, Se);
|
|
490
722
|
}, 0);
|
|
491
723
|
return () => clearTimeout(Ce);
|
|
492
|
-
}, K = [
|
|
724
|
+
}, K = [R, I, t, x], e[21] = R, e[22] = I, e[23] = t, e[24] = x, e[25] = K, e[26] = ae) : (K = e[25], ae = e[26]), me(ae, K);
|
|
493
725
|
let J, ee;
|
|
494
|
-
e[27] !==
|
|
495
|
-
|
|
496
|
-
}, ee = [
|
|
497
|
-
let
|
|
498
|
-
e[30] !==
|
|
499
|
-
g?.(
|
|
500
|
-
}, te = [
|
|
501
|
-
let
|
|
502
|
-
e[35] !==
|
|
503
|
-
if (!
|
|
504
|
-
...
|
|
505
|
-
activeEntry:
|
|
506
|
-
entryCount:
|
|
507
|
-
setQuery:
|
|
508
|
-
setActiveIndex:
|
|
509
|
-
runActiveEntry:
|
|
510
|
-
closePalette:
|
|
726
|
+
e[27] !== v.length ? (J = () => {
|
|
727
|
+
y((V) => Math.min(V, Math.max(v.length - 1, 0)));
|
|
728
|
+
}, ee = [v.length], e[27] = v.length, e[28] = J, e[29] = ee) : (J = e[28], ee = e[29]), me(J, ee);
|
|
729
|
+
let ie, te;
|
|
730
|
+
e[30] !== _ || e[31] !== w || e[32] !== g ? (ie = () => {
|
|
731
|
+
g?.(_, w);
|
|
732
|
+
}, te = [_, w, g], e[30] = _, e[31] = w, e[32] = g, e[33] = ie, e[34] = te) : (ie = e[33], te = e[34]), me(ie, te);
|
|
733
|
+
let re;
|
|
734
|
+
e[35] !== _ || e[36] !== Q || e[37] !== v.length || e[38] !== T || e[39] !== A || e[40] !== U || e[41] !== B || e[42] !== E ? (re = () => {
|
|
735
|
+
if (!T?.({
|
|
736
|
+
...E,
|
|
737
|
+
activeEntry: _,
|
|
738
|
+
entryCount: v.length,
|
|
739
|
+
setQuery: B,
|
|
740
|
+
setActiveIndex: y,
|
|
741
|
+
runActiveEntry: U,
|
|
742
|
+
closePalette: Q
|
|
511
743
|
})) {
|
|
512
|
-
if (
|
|
513
|
-
|
|
744
|
+
if (A.length > 0) {
|
|
745
|
+
B(""), y(0);
|
|
514
746
|
return;
|
|
515
747
|
}
|
|
516
|
-
|
|
748
|
+
Q();
|
|
517
749
|
}
|
|
518
|
-
}, e[35] =
|
|
519
|
-
const ne =
|
|
750
|
+
}, e[35] = _, e[36] = Q, e[37] = v.length, e[38] = T, e[39] = A, e[40] = U, e[41] = B, e[42] = E, e[43] = re) : re = e[43];
|
|
751
|
+
const ne = re;
|
|
520
752
|
let Y;
|
|
521
|
-
e[44] !==
|
|
522
|
-
if (
|
|
523
|
-
|
|
753
|
+
e[44] !== v.length || e[45] !== ne || e[46] !== U ? (Y = (V) => {
|
|
754
|
+
if (V.key === "ArrowDown") {
|
|
755
|
+
V.preventDefault(), y((be) => Math.min(be + 1, Math.max(v.length - 1, 0)));
|
|
524
756
|
return;
|
|
525
757
|
}
|
|
526
|
-
if (
|
|
527
|
-
|
|
758
|
+
if (V.key === "ArrowUp") {
|
|
759
|
+
V.preventDefault(), y(Ko);
|
|
528
760
|
return;
|
|
529
761
|
}
|
|
530
|
-
if (
|
|
531
|
-
|
|
762
|
+
if (V.key === "Enter") {
|
|
763
|
+
V.preventDefault(), U();
|
|
532
764
|
return;
|
|
533
765
|
}
|
|
534
|
-
|
|
535
|
-
}, e[44] =
|
|
536
|
-
const
|
|
766
|
+
V.key === "Escape" && (V.preventDefault(), V.stopPropagation(), ne());
|
|
767
|
+
}, e[44] = v.length, e[45] = ne, e[46] = U, e[47] = Y) : Y = e[47];
|
|
768
|
+
const se = Y;
|
|
537
769
|
let oe;
|
|
538
|
-
e[48] !==
|
|
770
|
+
e[48] !== Q ? (oe = (V) => !V.open && Q(), e[48] = Q, e[49] = oe) : oe = e[49];
|
|
539
771
|
let he;
|
|
540
772
|
e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ s(Z.Backdrop, {}), e[50] = he) : he = e[50];
|
|
541
|
-
let
|
|
542
|
-
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
773
|
+
let Pe;
|
|
774
|
+
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = {
|
|
543
775
|
maxH: "24rem",
|
|
544
776
|
showHorizontalScrollbar: !1,
|
|
545
|
-
viewportRef:
|
|
777
|
+
viewportRef: D,
|
|
546
778
|
viewportProps: {
|
|
547
779
|
style: {
|
|
548
780
|
overflowAnchor: "none"
|
|
549
781
|
}
|
|
550
782
|
}
|
|
551
|
-
}, e[51] =
|
|
783
|
+
}, e[51] = Pe) : Pe = e[51];
|
|
552
784
|
let xe;
|
|
553
|
-
e[52] !==
|
|
554
|
-
|
|
555
|
-
}, e[52] =
|
|
785
|
+
e[52] !== B ? (xe = (V) => {
|
|
786
|
+
B(V), y(0);
|
|
787
|
+
}, e[52] = B, e[53] = xe) : xe = e[53];
|
|
556
788
|
let ve;
|
|
557
|
-
e[54] !==
|
|
789
|
+
e[54] !== w || e[55] !== $ || e[56] !== v ? (ve = /* @__PURE__ */ s(Xo, { entries: v, activeIndex: w, emptyLabel: $, onHover: y, scrollRef: D }), e[54] = w, e[55] = $, e[56] = v, e[57] = ve) : ve = e[57];
|
|
558
790
|
let ye;
|
|
559
|
-
e[58] !==
|
|
560
|
-
let
|
|
561
|
-
return e[67] !== t || e[68] !== oe || e[69] !== ye ? (
|
|
791
|
+
e[58] !== p || e[59] !== h || e[60] !== se || e[61] !== A || e[62] !== z || e[63] !== W || e[64] !== xe || e[65] !== ve ? (ye = /* @__PURE__ */ s(Z.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(Z.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(bn, { searchValue: A, searchPlaceholder: W, searchIcon: z, searchInputRef: L, showCloseButton: !0, footerStart: h, footerEnd: p, scrollAreaProps: Pe, onSearchChange: xe, onSearchKeyDown: se, children: ve }) }) }), e[58] = p, e[59] = h, e[60] = se, e[61] = A, e[62] = z, e[63] = W, e[64] = xe, e[65] = ve, e[66] = ye) : ye = e[66];
|
|
792
|
+
let ke;
|
|
793
|
+
return e[67] !== t || e[68] !== oe || e[69] !== ye ? (ke = /* @__PURE__ */ C(Z.Root, { open: t, onOpenChange: oe, children: [
|
|
562
794
|
he,
|
|
563
795
|
ye
|
|
564
|
-
] }), e[67] = t, e[68] = oe, e[69] = ye, e[70] =
|
|
796
|
+
] }), e[67] = t, e[68] = oe, e[69] = ye, e[70] = ke) : ke = e[70], ke;
|
|
565
797
|
};
|
|
566
|
-
function
|
|
798
|
+
function Ko(o) {
|
|
567
799
|
return Math.max(o - 1, 0);
|
|
568
800
|
}
|
|
569
|
-
const
|
|
801
|
+
const Yo = {
|
|
570
802
|
alt: {
|
|
571
803
|
label: "Alt"
|
|
572
804
|
},
|
|
@@ -582,10 +814,10 @@ const wo = {
|
|
|
582
814
|
shift: {
|
|
583
815
|
label: "Shift"
|
|
584
816
|
}
|
|
585
|
-
},
|
|
817
|
+
}, Zo = {
|
|
586
818
|
alt: {
|
|
587
819
|
label: "Option",
|
|
588
|
-
Icon:
|
|
820
|
+
Icon: yt
|
|
589
821
|
},
|
|
590
822
|
cmd: {
|
|
591
823
|
label: "Command",
|
|
@@ -605,111 +837,111 @@ const wo = {
|
|
|
605
837
|
},
|
|
606
838
|
option: {
|
|
607
839
|
label: "Option",
|
|
608
|
-
Icon:
|
|
840
|
+
Icon: yt
|
|
609
841
|
},
|
|
610
842
|
shift: {
|
|
611
843
|
label: "Shift"
|
|
612
844
|
}
|
|
613
|
-
},
|
|
845
|
+
}, Jo = {
|
|
614
846
|
arrowleft: {
|
|
615
847
|
label: "Arrow Left",
|
|
616
|
-
Icon:
|
|
848
|
+
Icon: Xn
|
|
617
849
|
},
|
|
618
850
|
arrowright: {
|
|
619
851
|
label: "Arrow Right",
|
|
620
|
-
Icon:
|
|
852
|
+
Icon: Qn
|
|
621
853
|
}
|
|
622
|
-
},
|
|
854
|
+
}, el = () => {
|
|
623
855
|
if (typeof navigator > "u") return "linux";
|
|
624
856
|
const o = navigator.platform?.toLowerCase() ?? "";
|
|
625
857
|
return o.includes("mac") ? "mac" : o.includes("win") ? "win" : "linux";
|
|
626
|
-
},
|
|
627
|
-
const t = o.toLowerCase(), n = e === "mac" ?
|
|
628
|
-
return
|
|
858
|
+
}, tl = (o, e = el()) => {
|
|
859
|
+
const t = o.toLowerCase(), n = e === "mac" ? Zo : Yo;
|
|
860
|
+
return Jo[t] ?? n[t] ?? {
|
|
629
861
|
label: o
|
|
630
862
|
};
|
|
631
|
-
},
|
|
632
|
-
const e =
|
|
863
|
+
}, Tt = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), nl = (o) => (Array.isArray(o) ? o.map(Tt) : [Tt(o)]).map((t) => t.map((n) => tl(n))), Xr = (o) => {
|
|
864
|
+
const e = O(4), {
|
|
633
865
|
binding: t
|
|
634
866
|
} = o;
|
|
635
867
|
let n;
|
|
636
868
|
if (e[0] !== t) {
|
|
637
|
-
const
|
|
638
|
-
n =
|
|
639
|
-
|
|
640
|
-
/* @__PURE__ */ s(
|
|
641
|
-
|
|
642
|
-
] }, `${a.label}-${
|
|
643
|
-
c <
|
|
644
|
-
] }, `${
|
|
869
|
+
const r = nl(t);
|
|
870
|
+
n = r.map((i, c) => /* @__PURE__ */ C(vt, { children: [
|
|
871
|
+
i.map((a, f) => /* @__PURE__ */ C(vt, { children: [
|
|
872
|
+
/* @__PURE__ */ s(Tn, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": a.label, children: a.Icon ? /* @__PURE__ */ s(a.Icon, { size: 12, "aria-hidden": "true" }) : a.label }),
|
|
873
|
+
f < i.length - 1 ? " " : null
|
|
874
|
+
] }, `${a.label}-${f}`)),
|
|
875
|
+
c < r.length - 1 ? " then " : null
|
|
876
|
+
] }, `${i.map(ol).join("+")}-${c}`)), e[0] = t, e[1] = n;
|
|
645
877
|
} else
|
|
646
878
|
n = e[1];
|
|
647
|
-
let
|
|
648
|
-
return e[2] !== n ? (
|
|
879
|
+
let l;
|
|
880
|
+
return e[2] !== n ? (l = /* @__PURE__ */ s(He, { children: n }), e[2] = n, e[3] = l) : l = e[3], l;
|
|
649
881
|
};
|
|
650
|
-
function
|
|
882
|
+
function ol(o) {
|
|
651
883
|
return o.label;
|
|
652
884
|
}
|
|
653
|
-
function
|
|
654
|
-
const e =
|
|
655
|
-
let t, n, r, i,
|
|
885
|
+
function qr(o) {
|
|
886
|
+
const e = O(14);
|
|
887
|
+
let t, n, l, r, i, c;
|
|
656
888
|
e[0] !== o ? ({
|
|
657
889
|
children: t,
|
|
658
|
-
h:
|
|
659
|
-
px:
|
|
660
|
-
py:
|
|
890
|
+
h: l,
|
|
891
|
+
px: r,
|
|
892
|
+
py: i,
|
|
661
893
|
borderBottomWidth: c,
|
|
662
894
|
...n
|
|
663
|
-
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] =
|
|
664
|
-
const a =
|
|
895
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6]);
|
|
896
|
+
const a = l === void 0 ? "41px" : l, f = r === void 0 ? "xs" : r, d = i === void 0 ? "xs" : i, u = c === void 0 ? "1px" : c;
|
|
665
897
|
let h;
|
|
666
|
-
return e[7] !==
|
|
898
|
+
return e[7] !== u || e[8] !== t || e[9] !== a || e[10] !== f || e[11] !== d || e[12] !== n ? (h = /* @__PURE__ */ s(le, { ...n, h: a, justify: "space-between", align: "center", borderBottomWidth: u, borderColor: "border.subtle", px: f, py: d, children: t }), e[7] = u, e[8] = t, e[9] = a, e[10] = f, e[11] = d, e[12] = n, e[13] = h) : h = e[13], h;
|
|
667
899
|
}
|
|
668
|
-
const
|
|
669
|
-
const e =
|
|
900
|
+
const Kr = (o) => {
|
|
901
|
+
const e = O(17), {
|
|
670
902
|
children: t,
|
|
671
903
|
title: n,
|
|
672
|
-
defaultOpen:
|
|
673
|
-
action:
|
|
674
|
-
} = o,
|
|
904
|
+
defaultOpen: l,
|
|
905
|
+
action: r
|
|
906
|
+
} = o, i = l === void 0 ? !0 : l;
|
|
675
907
|
let c;
|
|
676
908
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
677
909
|
background: "bg.hover"
|
|
678
910
|
}, e[0] = c) : c = e[0];
|
|
679
911
|
let a;
|
|
680
|
-
e[1] !== n ? (a = n && /* @__PURE__ */ s(
|
|
681
|
-
let
|
|
682
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
912
|
+
e[1] !== n ? (a = n && /* @__PURE__ */ s(M, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = a) : a = e[2];
|
|
913
|
+
let f;
|
|
914
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(qe.Indicator, { transition: "transform 0.2s", _open: {
|
|
683
915
|
transform: "rotate(90deg)"
|
|
684
|
-
}, children: /* @__PURE__ */ s(
|
|
685
|
-
let
|
|
686
|
-
e[4] !== a ? (
|
|
916
|
+
}, children: /* @__PURE__ */ s(qn, { size: 16 }) }), e[3] = f) : f = e[3];
|
|
917
|
+
let d;
|
|
918
|
+
e[4] !== a ? (d = /* @__PURE__ */ C(qe.Trigger, { _hover: c, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
|
|
687
919
|
a,
|
|
688
|
-
d
|
|
689
|
-
] }), e[4] = a, e[5] = u) : u = e[5];
|
|
690
|
-
let f;
|
|
691
|
-
e[6] !== i ? (f = i && /* @__PURE__ */ s(G, { marginLeft: "auto", onClick: Eo, children: i }), e[6] = i, e[7] = f) : f = e[7];
|
|
692
|
-
let h;
|
|
693
|
-
e[8] !== u || e[9] !== f ? (h = /* @__PURE__ */ v(de, { children: [
|
|
694
|
-
u,
|
|
695
920
|
f
|
|
696
|
-
] }), e[
|
|
697
|
-
let
|
|
698
|
-
e[
|
|
921
|
+
] }), e[4] = a, e[5] = d) : d = e[5];
|
|
922
|
+
let u;
|
|
923
|
+
e[6] !== r ? (u = r && /* @__PURE__ */ s(j, { marginLeft: "auto", onClick: ll, children: r }), e[6] = r, e[7] = u) : u = e[7];
|
|
924
|
+
let h;
|
|
925
|
+
e[8] !== d || e[9] !== u ? (h = /* @__PURE__ */ C(fe, { children: [
|
|
926
|
+
d,
|
|
927
|
+
u
|
|
928
|
+
] }), e[8] = d, e[9] = u, e[10] = h) : h = e[10];
|
|
699
929
|
let p;
|
|
700
|
-
|
|
930
|
+
e[11] !== t ? (p = /* @__PURE__ */ s(qe.Content, { children: t }), e[11] = t, e[12] = p) : p = e[12];
|
|
931
|
+
let m;
|
|
932
|
+
return e[13] !== i || e[14] !== h || e[15] !== p ? (m = /* @__PURE__ */ C(qe.Root, { defaultOpen: i, width: "full", children: [
|
|
701
933
|
h,
|
|
702
|
-
|
|
703
|
-
] }), e[13] =
|
|
934
|
+
p
|
|
935
|
+
] }), e[13] = i, e[14] = h, e[15] = p, e[16] = m) : m = e[16], m;
|
|
704
936
|
};
|
|
705
|
-
function
|
|
937
|
+
function ll(o) {
|
|
706
938
|
return o.stopPropagation();
|
|
707
939
|
}
|
|
708
|
-
const
|
|
940
|
+
const il = "2.5rem", At = "2xs", Yr = "sm", Sn = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", rl = (o) => o !== "normal", sl = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), al = (o, e) => {
|
|
709
941
|
const t = e.trim().toLowerCase();
|
|
710
|
-
return t ? o.filter((n) =>
|
|
711
|
-
},
|
|
712
|
-
const e = o.filter((
|
|
942
|
+
return t ? o.filter((n) => sl(n).includes(t)) : o;
|
|
943
|
+
}, xn = (o) => {
|
|
944
|
+
const e = o.filter((l) => l.kind === "blocked"), t = o.filter((l) => l.kind !== "blocked" && (l.priority === "urgent" || l.priority === "high")), n = o.filter((l) => l.kind !== "blocked" && (l.priority === "normal" || l.priority === "low"));
|
|
713
945
|
return [{
|
|
714
946
|
id: "needs-input",
|
|
715
947
|
label: "Needs input",
|
|
@@ -722,249 +954,249 @@ const $o = "2.5rem", Ct = "2xs", Si = "sm", en = (o) => o === "urgent" ? "red" :
|
|
|
722
954
|
id: "other",
|
|
723
955
|
label: "Other",
|
|
724
956
|
items: n
|
|
725
|
-
}].filter((
|
|
726
|
-
},
|
|
957
|
+
}].filter((l) => l.items.length > 0);
|
|
958
|
+
}, cl = (o) => xn(o).flatMap((e) => e.items), dl = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), fl = (o, e) => {
|
|
727
959
|
const t = [];
|
|
728
960
|
return e.onDismiss && t.push({
|
|
729
961
|
id: "dismiss",
|
|
730
962
|
label: "Dismiss",
|
|
731
|
-
icon: /* @__PURE__ */ s(
|
|
963
|
+
icon: /* @__PURE__ */ s(Yt, { size: 14 }),
|
|
732
964
|
tooltip: "Dismiss",
|
|
733
965
|
onAction: () => e.onDismiss?.(o)
|
|
734
966
|
}), t;
|
|
735
|
-
},
|
|
736
|
-
const e =
|
|
967
|
+
}, ul = (o) => {
|
|
968
|
+
const e = O(15), {
|
|
737
969
|
actions: t,
|
|
738
970
|
item: n,
|
|
739
|
-
onRunAction:
|
|
971
|
+
onRunAction: l
|
|
740
972
|
} = o;
|
|
973
|
+
let r;
|
|
974
|
+
e[0] !== n.priority ? (r = rl(n.priority) ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: Sn(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = r) : r = e[1];
|
|
741
975
|
let i;
|
|
742
|
-
e[
|
|
743
|
-
let l;
|
|
744
|
-
e[2] !== n.status ? (l = n.status === "open" ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = l) : l = e[3];
|
|
976
|
+
e[2] !== n.status ? (i = n.status === "open" ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = i) : i = e[3];
|
|
745
977
|
let c;
|
|
746
|
-
if (e[4] !== t || e[5] !== n || e[6] !==
|
|
747
|
-
let
|
|
748
|
-
e[8] !== n || e[9] !==
|
|
749
|
-
|
|
750
|
-
}, children: /* @__PURE__ */ s(
|
|
978
|
+
if (e[4] !== t || e[5] !== n || e[6] !== l) {
|
|
979
|
+
let f;
|
|
980
|
+
e[8] !== n || e[9] !== l ? (f = (d) => /* @__PURE__ */ s(de, { size: "2xs", variant: "outline", colorPalette: d.destructive ? "red" : "gray", maxW: "9rem", onClick: (u) => {
|
|
981
|
+
u.stopPropagation(), l?.(n, d);
|
|
982
|
+
}, children: /* @__PURE__ */ s(M, { truncate: !0, children: d.label }) }, d.id), e[8] = n, e[9] = l, e[10] = f) : f = e[10], c = t.map(f), e[4] = t, e[5] = n, e[6] = l, e[7] = c;
|
|
751
983
|
} else
|
|
752
984
|
c = e[7];
|
|
753
985
|
let a;
|
|
754
|
-
return e[11] !==
|
|
986
|
+
return e[11] !== r || e[12] !== i || e[13] !== c ? (a = /* @__PURE__ */ C(le, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
|
|
987
|
+
r,
|
|
755
988
|
i,
|
|
756
|
-
l,
|
|
757
989
|
c
|
|
758
|
-
] }), e[11] =
|
|
759
|
-
},
|
|
990
|
+
] }), e[11] = r, e[12] = i, e[13] = c, e[14] = a) : a = e[14], a;
|
|
991
|
+
}, hl = (o) => {
|
|
760
992
|
const {
|
|
761
993
|
activeIndex: e,
|
|
762
994
|
items: t,
|
|
763
995
|
onActivateItem: n,
|
|
764
|
-
onActiveIndexChange:
|
|
765
|
-
onRunAction:
|
|
766
|
-
} = o,
|
|
996
|
+
onActiveIndexChange: l,
|
|
997
|
+
onRunAction: r
|
|
998
|
+
} = o, i = xn(t);
|
|
767
999
|
let c = 0;
|
|
768
|
-
return /* @__PURE__ */ s(
|
|
769
|
-
/* @__PURE__ */ s(
|
|
770
|
-
a.items.map((
|
|
771
|
-
const
|
|
772
|
-
return c += 1, /* @__PURE__ */ s(Qe, { id:
|
|
1000
|
+
return /* @__PURE__ */ s(X, { gap: "2xs", py: "xs", children: i.map((a) => /* @__PURE__ */ C(X, { gap: "2xs", children: [
|
|
1001
|
+
/* @__PURE__ */ s(M, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: a.label }),
|
|
1002
|
+
a.items.map((f) => {
|
|
1003
|
+
const d = c;
|
|
1004
|
+
return c += 1, /* @__PURE__ */ s(Qe, { id: f.id, label: f.title, description: dl(f), icon: /* @__PURE__ */ s(ce, { as: Kt, boxSize: "14px" }), iconColor: `${Sn(f.priority)}.500`, variant: "compact", isSelected: d === e, endContent: /* @__PURE__ */ s(ul, { item: f, actions: f.actions ?? [], onRunAction: r }), actions: fl(f, o), tabIndex: -1, onActivate: () => n?.(f), onPointerMove: () => l(d) }, f.id);
|
|
773
1005
|
})
|
|
774
1006
|
] }, a.id)) });
|
|
775
|
-
},
|
|
776
|
-
const o =
|
|
1007
|
+
}, ml = () => {
|
|
1008
|
+
const o = O(1);
|
|
777
1009
|
let e;
|
|
778
|
-
return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(
|
|
779
|
-
},
|
|
780
|
-
const e =
|
|
1010
|
+
return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(X, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(pl) }), o[0] = e) : e = o[0], e;
|
|
1011
|
+
}, Zr = (o) => {
|
|
1012
|
+
const e = O(37), {
|
|
781
1013
|
autoFocus: t,
|
|
782
1014
|
emptyLabel: n,
|
|
783
|
-
error:
|
|
784
|
-
footerEnd:
|
|
785
|
-
footerStart:
|
|
1015
|
+
error: l,
|
|
1016
|
+
footerEnd: r,
|
|
1017
|
+
footerStart: i,
|
|
786
1018
|
items: c,
|
|
787
1019
|
loading: a,
|
|
788
|
-
onActivateItem:
|
|
789
|
-
onEscape:
|
|
790
|
-
onQueryChange:
|
|
1020
|
+
onActivateItem: f,
|
|
1021
|
+
onEscape: d,
|
|
1022
|
+
onQueryChange: u,
|
|
791
1023
|
query: h
|
|
792
|
-
} = o,
|
|
793
|
-
let
|
|
794
|
-
e[0] !==
|
|
795
|
-
const
|
|
796
|
-
let
|
|
797
|
-
e[4] !==
|
|
798
|
-
if (!
|
|
1024
|
+
} = o, p = t === void 0 ? !1 : t, m = n === void 0 ? "No notifications." : n, g = a === void 0 ? !1 : a, [S, b] = ue(""), [T, I] = ue(0), R = Me(null), x = h ?? S;
|
|
1025
|
+
let $, A;
|
|
1026
|
+
e[0] !== x || e[1] !== c ? ($ = al(c, x), A = cl($), e[0] = x, e[1] = c, e[2] = $, e[3] = A) : ($ = e[2], A = e[3]);
|
|
1027
|
+
const P = A, w = P[T] ?? null;
|
|
1028
|
+
let y, L;
|
|
1029
|
+
e[4] !== p ? (y = () => {
|
|
1030
|
+
if (!p)
|
|
799
1031
|
return;
|
|
800
|
-
const
|
|
801
|
-
return () => clearTimeout(
|
|
802
|
-
},
|
|
803
|
-
let
|
|
804
|
-
e[7] !==
|
|
805
|
-
|
|
806
|
-
},
|
|
807
|
-
let
|
|
808
|
-
e[10] !==
|
|
809
|
-
h === void 0 && b(
|
|
810
|
-
}, e[10] =
|
|
811
|
-
const
|
|
812
|
-
let
|
|
813
|
-
e[13] !==
|
|
814
|
-
if (
|
|
815
|
-
|
|
1032
|
+
const B = setTimeout(() => R.current?.focus(), 0);
|
|
1033
|
+
return () => clearTimeout(B);
|
|
1034
|
+
}, L = [p], e[4] = p, e[5] = y, e[6] = L) : (y = e[5], L = e[6]), me(y, L);
|
|
1035
|
+
let D, k;
|
|
1036
|
+
e[7] !== P.length ? (D = () => {
|
|
1037
|
+
I((B) => Math.min(B, Math.max(P.length - 1, 0)));
|
|
1038
|
+
}, k = [P.length], e[7] = P.length, e[8] = D, e[9] = k) : (D = e[8], k = e[9]), me(D, k);
|
|
1039
|
+
let N;
|
|
1040
|
+
e[10] !== u || e[11] !== h ? (N = (B) => {
|
|
1041
|
+
h === void 0 && b(B), u?.(B), I(0);
|
|
1042
|
+
}, e[10] = u, e[11] = h, e[12] = N) : N = e[12];
|
|
1043
|
+
const _ = N;
|
|
1044
|
+
let v;
|
|
1045
|
+
e[13] !== w || e[14] !== x || e[15] !== P.length || e[16] !== f || e[17] !== d || e[18] !== _ ? (v = (B) => {
|
|
1046
|
+
if (B.key === "ArrowDown") {
|
|
1047
|
+
B.preventDefault(), I((q) => Math.min(q + 1, Math.max(P.length - 1, 0)));
|
|
816
1048
|
return;
|
|
817
1049
|
}
|
|
818
|
-
if (
|
|
819
|
-
|
|
1050
|
+
if (B.key === "ArrowUp") {
|
|
1051
|
+
B.preventDefault(), I(gl);
|
|
820
1052
|
return;
|
|
821
1053
|
}
|
|
822
|
-
if (
|
|
823
|
-
|
|
1054
|
+
if (B.key === "Enter") {
|
|
1055
|
+
B.preventDefault(), w && f?.(w);
|
|
824
1056
|
return;
|
|
825
1057
|
}
|
|
826
|
-
if (
|
|
827
|
-
if (
|
|
828
|
-
|
|
1058
|
+
if (B.key === "Escape") {
|
|
1059
|
+
if (B.preventDefault(), x.length > 0) {
|
|
1060
|
+
_("");
|
|
829
1061
|
return;
|
|
830
1062
|
}
|
|
831
|
-
|
|
1063
|
+
d?.();
|
|
832
1064
|
}
|
|
833
|
-
}, e[13] =
|
|
834
|
-
const
|
|
835
|
-
let
|
|
836
|
-
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
837
|
-
let
|
|
838
|
-
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1065
|
+
}, e[13] = w, e[14] = x, e[15] = P.length, e[16] = f, e[17] = d, e[18] = _, e[19] = v) : v = e[19];
|
|
1066
|
+
const z = v;
|
|
1067
|
+
let E;
|
|
1068
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ s(Zt, { size: 14 }), e[20] = E) : E = e[20];
|
|
1069
|
+
let H;
|
|
1070
|
+
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
|
|
839
1071
|
maxH: "24rem",
|
|
840
1072
|
showHorizontalScrollbar: !1
|
|
841
|
-
}, e[21] =
|
|
842
|
-
let B;
|
|
843
|
-
e[22] !== x || e[23] !== p || e[24] !== r || e[25] !== L || e[26] !== g || e[27] !== o ? (B = r ? /* @__PURE__ */ s(G, { p: "sm", children: /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Ho, {}) : L.length === 0 ? /* @__PURE__ */ s(H, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: p }) : /* @__PURE__ */ s(Wo, { ...o, items: L, activeIndex: x, onActiveIndexChange: w }), e[22] = x, e[23] = p, e[24] = r, e[25] = L, e[26] = g, e[27] = o, e[28] = B) : B = e[28];
|
|
1073
|
+
}, e[21] = H) : H = e[21];
|
|
844
1074
|
let W;
|
|
845
|
-
|
|
1075
|
+
e[22] !== T || e[23] !== m || e[24] !== l || e[25] !== $ || e[26] !== g || e[27] !== o ? (W = l ? /* @__PURE__ */ s(j, { p: "sm", children: /* @__PURE__ */ s(lt, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: l }) }) : g ? /* @__PURE__ */ s(ml, {}) : $.length === 0 ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(hl, { ...o, items: $, activeIndex: T, onActiveIndexChange: I }), e[22] = T, e[23] = m, e[24] = l, e[25] = $, e[26] = g, e[27] = o, e[28] = W) : W = e[28];
|
|
1076
|
+
let F;
|
|
1077
|
+
return e[29] !== x || e[30] !== p || e[31] !== r || e[32] !== i || e[33] !== z || e[34] !== W || e[35] !== _ ? (F = /* @__PURE__ */ s(bn, { searchValue: x, searchPlaceholder: "Search notifications", searchIcon: E, searchInputRef: R, searchAutoFocus: p, footerStart: i, footerEnd: r, scrollAreaProps: H, onSearchChange: _, onSearchKeyDown: z, children: W }), e[29] = x, e[30] = p, e[31] = r, e[32] = i, e[33] = z, e[34] = W, e[35] = _, e[36] = F) : F = e[36], F;
|
|
846
1078
|
};
|
|
847
|
-
function
|
|
848
|
-
return /* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */ s(
|
|
850
|
-
/* @__PURE__ */ s(
|
|
1079
|
+
function pl(o) {
|
|
1080
|
+
return /* @__PURE__ */ C(X, { gap: "2xs", children: [
|
|
1081
|
+
/* @__PURE__ */ s(bt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
|
|
1082
|
+
/* @__PURE__ */ s(bt, { h: "3", w: "88%", borderRadius: "xs" })
|
|
851
1083
|
] }, o);
|
|
852
1084
|
}
|
|
853
|
-
function
|
|
1085
|
+
function gl(o) {
|
|
854
1086
|
return Math.max(o - 1, 0);
|
|
855
1087
|
}
|
|
856
|
-
const
|
|
857
|
-
const e =
|
|
1088
|
+
const Jr = (o) => {
|
|
1089
|
+
const e = O(6);
|
|
858
1090
|
let t, n;
|
|
859
1091
|
e[0] !== o ? ({
|
|
860
1092
|
children: t,
|
|
861
1093
|
...n
|
|
862
1094
|
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
863
|
-
let
|
|
864
|
-
return e[3] !== t || e[4] !== n ? (
|
|
865
|
-
},
|
|
866
|
-
const e =
|
|
867
|
-
let t, n, r, i,
|
|
1095
|
+
let l;
|
|
1096
|
+
return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(fe, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
|
|
1097
|
+
}, bl = "20rem", es = (o) => {
|
|
1098
|
+
const e = O(15);
|
|
1099
|
+
let t, n, l, r, i, c;
|
|
868
1100
|
e[0] !== o ? ({
|
|
869
1101
|
children: t,
|
|
870
1102
|
header: n,
|
|
871
|
-
width:
|
|
872
|
-
minWidth:
|
|
1103
|
+
width: i,
|
|
1104
|
+
minWidth: l,
|
|
873
1105
|
resizable: c,
|
|
874
|
-
...
|
|
875
|
-
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] =
|
|
876
|
-
const a =
|
|
1106
|
+
...r
|
|
1107
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6]);
|
|
1108
|
+
const a = i === void 0 ? "28rem" : i, f = c === void 0 ? !1 : c, d = l ?? (f ? bl : a), u = f ? "full" : a;
|
|
877
1109
|
let h;
|
|
878
|
-
e[7] !== t ? (h = /* @__PURE__ */ s(
|
|
879
|
-
let
|
|
880
|
-
return e[9] !== n || e[10] !==
|
|
1110
|
+
e[7] !== t ? (h = /* @__PURE__ */ s(fe, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
|
|
1111
|
+
let p;
|
|
1112
|
+
return e[9] !== n || e[10] !== d || e[11] !== u || e[12] !== r || e[13] !== h ? (p = /* @__PURE__ */ C(fe, { direction: "column", position: "relative", flexShrink: 0, w: u, minW: d, h: "100%", bg: "bg", overflow: "hidden", ...r, children: [
|
|
881
1113
|
n,
|
|
882
1114
|
h
|
|
883
|
-
] }), e[9] = n, e[10] =
|
|
884
|
-
},
|
|
885
|
-
const n =
|
|
886
|
-
let r, i,
|
|
1115
|
+
] }), e[9] = n, e[10] = d, e[11] = u, e[12] = r, e[13] = h, e[14] = p) : p = e[14], p;
|
|
1116
|
+
}, ts = qt(function(e, t) {
|
|
1117
|
+
const n = O(19);
|
|
1118
|
+
let l, r, i, c, a;
|
|
887
1119
|
n[0] !== e ? ({
|
|
888
|
-
children:
|
|
889
|
-
containerProps:
|
|
1120
|
+
children: l,
|
|
1121
|
+
containerProps: r,
|
|
890
1122
|
isOpen: c,
|
|
891
1123
|
tooltip: a,
|
|
892
|
-
...
|
|
893
|
-
} = e, n[0] = e, n[1] =
|
|
894
|
-
const
|
|
895
|
-
let
|
|
896
|
-
n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1124
|
+
...i
|
|
1125
|
+
} = e, n[0] = e, n[1] = l, n[2] = r, n[3] = i, n[4] = c, n[5] = a) : (l = n[1], r = n[2], i = n[3], c = n[4], a = n[5]);
|
|
1126
|
+
const d = (c === void 0 ? !1 : c) ? "border.accent" : "border";
|
|
1127
|
+
let u, h;
|
|
1128
|
+
n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
897
1129
|
borderColor: "border.accent"
|
|
898
1130
|
}, h = {
|
|
899
1131
|
borderColor: "border.accent"
|
|
900
|
-
}, n[6] =
|
|
901
|
-
let
|
|
902
|
-
n[8] !==
|
|
903
|
-
const
|
|
1132
|
+
}, n[6] = u, n[7] = h) : (u = n[6], h = n[7]);
|
|
1133
|
+
let p;
|
|
1134
|
+
n[8] !== l || n[9] !== t || n[10] !== i || n[11] !== d ? (p = /* @__PURE__ */ s(Fe, { ref: t, rounded: "full", size: "lg", borderWidth: "1px", borderColor: d, transition: "border-color 0.2s ease-in-out", _hover: u, _active: h, ...i, children: l }), n[8] = l, n[9] = t, n[10] = i, n[11] = d, n[12] = p) : p = n[12];
|
|
1135
|
+
const m = p;
|
|
904
1136
|
let g;
|
|
905
|
-
n[13] !==
|
|
1137
|
+
n[13] !== m || n[14] !== a ? (g = a ? /* @__PURE__ */ s(Ue, { content: a, children: m }) : m, n[13] = m, n[14] = a, n[15] = g) : g = n[15];
|
|
906
1138
|
let S;
|
|
907
|
-
return n[16] !==
|
|
908
|
-
}),
|
|
909
|
-
const n =
|
|
910
|
-
isOpen:
|
|
911
|
-
title:
|
|
912
|
-
menu:
|
|
1139
|
+
return n[16] !== r || n[17] !== g ? (S = /* @__PURE__ */ s(Ae.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...r, children: g }), n[16] = r, n[17] = g, n[18] = S) : S = n[18], S;
|
|
1140
|
+
}), ns = qt(function(e, t) {
|
|
1141
|
+
const n = O(28), {
|
|
1142
|
+
isOpen: l,
|
|
1143
|
+
title: r,
|
|
1144
|
+
menu: i,
|
|
913
1145
|
onClose: c,
|
|
914
1146
|
closeLabel: a,
|
|
915
|
-
onPopOut:
|
|
916
|
-
popOutLabel:
|
|
917
|
-
width:
|
|
1147
|
+
onPopOut: f,
|
|
1148
|
+
popOutLabel: d,
|
|
1149
|
+
width: u,
|
|
918
1150
|
height: h,
|
|
919
|
-
containerProps:
|
|
920
|
-
testId:
|
|
1151
|
+
containerProps: p,
|
|
1152
|
+
testId: m,
|
|
921
1153
|
"aria-label": g,
|
|
922
1154
|
children: S
|
|
923
|
-
} = e, b =
|
|
1155
|
+
} = e, b = l === void 0 ? !1 : l, T = u === void 0 ? "28rem" : u, I = h === void 0 ? "38rem" : h;
|
|
924
1156
|
if (!b)
|
|
925
1157
|
return null;
|
|
926
|
-
const
|
|
1158
|
+
const R = g ?? r;
|
|
1159
|
+
let x;
|
|
1160
|
+
n[0] !== i ? (x = /* @__PURE__ */ s(le, { gap: "1", minW: "0", children: i }), n[0] = i, n[1] = x) : x = n[1];
|
|
1161
|
+
let $;
|
|
1162
|
+
n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(jt, {}), n[2] = $) : $ = n[2];
|
|
1163
|
+
let A;
|
|
1164
|
+
n[3] !== f || n[4] !== d ? (A = f ? /* @__PURE__ */ s(Ue, { content: d, children: /* @__PURE__ */ s(Fe, { size: At, variant: "ghost", "aria-label": d, onClick: f, children: /* @__PURE__ */ s(Kn, { size: 16 }) }) }) : null, n[3] = f, n[4] = d, n[5] = A) : A = n[5];
|
|
1165
|
+
let P;
|
|
1166
|
+
n[6] !== a || n[7] !== c ? (P = c ? /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: At, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(Yn, { size: 16 }) }) }) : null, n[6] = a, n[7] = c, n[8] = P) : P = n[8];
|
|
1167
|
+
let w;
|
|
1168
|
+
n[9] !== A || n[10] !== P ? (w = /* @__PURE__ */ C(le, { gap: "1", children: [
|
|
1169
|
+
A,
|
|
1170
|
+
P
|
|
1171
|
+
] }), n[9] = A, n[10] = P, n[11] = w) : w = n[11];
|
|
927
1172
|
let y;
|
|
928
|
-
n[
|
|
1173
|
+
n[12] !== x || n[13] !== w ? (y = /* @__PURE__ */ C(ro, { variant: "main", gap: "sm", flexShrink: 0, children: [
|
|
1174
|
+
x,
|
|
1175
|
+
$,
|
|
1176
|
+
w
|
|
1177
|
+
] }), n[12] = x, n[13] = w, n[14] = y) : y = n[14];
|
|
929
1178
|
let L;
|
|
930
|
-
n[
|
|
931
|
-
let
|
|
932
|
-
n[
|
|
933
|
-
let E;
|
|
934
|
-
n[6] !== a || n[7] !== c ? (E = c ? /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: Ct, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(Tn, { size: 16 }) }) }) : null, n[6] = a, n[7] = c, n[8] = E) : E = n[8];
|
|
935
|
-
let P;
|
|
936
|
-
n[9] !== R || n[10] !== E ? (P = /* @__PURE__ */ v(ae, { gap: "1", children: [
|
|
937
|
-
R,
|
|
938
|
-
E
|
|
939
|
-
] }), n[9] = R, n[10] = E, n[11] = P) : P = n[11];
|
|
940
|
-
let C;
|
|
941
|
-
n[12] !== y || n[13] !== P ? (C = /* @__PURE__ */ v(On, { variant: "main", gap: "sm", flexShrink: 0, children: [
|
|
1179
|
+
n[15] !== S ? (L = /* @__PURE__ */ s(j, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: S }), n[15] = S, n[16] = L) : L = n[16];
|
|
1180
|
+
let D;
|
|
1181
|
+
n[17] !== L || n[18] !== y ? (D = /* @__PURE__ */ C(fe, { direction: "column", h: "full", children: [
|
|
942
1182
|
y,
|
|
943
|
-
L
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
n[17] !== O || n[18] !== C ? (z = /* @__PURE__ */ v(de, { direction: "column", h: "full", children: [
|
|
950
|
-
C,
|
|
951
|
-
O
|
|
952
|
-
] }), n[17] = O, n[18] = C, n[19] = z) : z = n[19];
|
|
953
|
-
let A;
|
|
954
|
-
return n[20] !== m || n[21] !== w || n[22] !== t || n[23] !== z || n[24] !== I || n[25] !== p || n[26] !== x ? (A = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Pe.section, { ref: t, role: "dialog", "data-testid": p, "aria-label": I, position: "fixed", bottom: "3", right: "3", w: x, maxW: "calc(100vw - 2rem)", h: w, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...m, children: z }) }), n[20] = m, n[21] = w, n[22] = t, n[23] = z, n[24] = I, n[25] = p, n[26] = x, n[27] = A) : A = n[27], A;
|
|
955
|
-
}), Go = (o) => {
|
|
956
|
-
const [e, t] = fe(!1), {
|
|
1183
|
+
L
|
|
1184
|
+
] }), n[17] = L, n[18] = y, n[19] = D) : D = n[19];
|
|
1185
|
+
let k;
|
|
1186
|
+
return n[20] !== p || n[21] !== I || n[22] !== t || n[23] !== D || n[24] !== R || n[25] !== m || n[26] !== T ? (k = /* @__PURE__ */ s(tt, { children: /* @__PURE__ */ s(Ae.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": R, position: "fixed", bottom: "3", right: "3", w: T, maxW: "calc(100vw - 2rem)", h: I, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: D }) }), n[20] = p, n[21] = I, n[22] = t, n[23] = D, n[24] = R, n[25] = m, n[26] = T, n[27] = k) : k = n[27], k;
|
|
1187
|
+
}), Sl = (o) => {
|
|
1188
|
+
const [e, t] = ue(!1), {
|
|
957
1189
|
headline: n,
|
|
958
|
-
buttonText:
|
|
959
|
-
notificationText:
|
|
960
|
-
onDelete:
|
|
1190
|
+
buttonText: l,
|
|
1191
|
+
notificationText: r,
|
|
1192
|
+
onDelete: i,
|
|
961
1193
|
open: c,
|
|
962
1194
|
onClose: a,
|
|
963
|
-
children:
|
|
964
|
-
} = o,
|
|
1195
|
+
children: f
|
|
1196
|
+
} = o, d = async () => {
|
|
965
1197
|
t(!0);
|
|
966
1198
|
try {
|
|
967
|
-
await
|
|
1199
|
+
await i(), a();
|
|
968
1200
|
} catch {
|
|
969
1201
|
} finally {
|
|
970
1202
|
t(!1);
|
|
@@ -974,53 +1206,53 @@ const vi = (o) => {
|
|
|
974
1206
|
// Destructive confirmations dismiss only through their explicit controls —
|
|
975
1207
|
// outside interactions must never cancel them, and when nested inside another
|
|
976
1208
|
// overlay (e.g. the settings dialog) a portal keeps the layers cooperating.
|
|
977
|
-
/* @__PURE__ */ s(Z.Root, { open: c, onOpenChange: (
|
|
978
|
-
|
|
979
|
-
}, closeOnInteractOutside: !1, children: /* @__PURE__ */
|
|
1209
|
+
/* @__PURE__ */ s(Z.Root, { open: c, onOpenChange: (u) => {
|
|
1210
|
+
u.open || a();
|
|
1211
|
+
}, closeOnInteractOutside: !1, children: /* @__PURE__ */ C(tt, { children: [
|
|
980
1212
|
/* @__PURE__ */ s(Z.Backdrop, {}),
|
|
981
|
-
/* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */
|
|
982
|
-
/* @__PURE__ */
|
|
983
|
-
/* @__PURE__ */ s(
|
|
984
|
-
/* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(
|
|
1213
|
+
/* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */ C(Z.Content, { children: [
|
|
1214
|
+
/* @__PURE__ */ C(Z.Header, { children: [
|
|
1215
|
+
/* @__PURE__ */ s(M, { textStyle: "heading/M", children: n }),
|
|
1216
|
+
/* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Ut, { size: "sm" }) })
|
|
985
1217
|
] }),
|
|
986
|
-
/* @__PURE__ */ s(Z.Body, { children: /* @__PURE__ */
|
|
987
|
-
|
|
988
|
-
|
|
1218
|
+
/* @__PURE__ */ s(Z.Body, { children: /* @__PURE__ */ C(X, { gap: "3", children: [
|
|
1219
|
+
r ? /* @__PURE__ */ s(M, { children: r }) : null,
|
|
1220
|
+
f
|
|
989
1221
|
] }) }),
|
|
990
|
-
/* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */
|
|
991
|
-
/* @__PURE__ */ s(
|
|
992
|
-
/* @__PURE__ */ s(
|
|
1222
|
+
/* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ C(X, { direction: "row", gap: "1", children: [
|
|
1223
|
+
/* @__PURE__ */ s(de, { onClick: a, children: "Close" }),
|
|
1224
|
+
/* @__PURE__ */ s(de, { loading: e, variant: "destructive", onClick: d, children: l })
|
|
993
1225
|
] }) })
|
|
994
1226
|
] }) })
|
|
995
1227
|
] }) })
|
|
996
1228
|
);
|
|
997
|
-
},
|
|
1229
|
+
}, xl = (o) => o.isDirectory ? o.isGitRepo ? Jn : Jt : Zn, vl = (o, e) => {
|
|
998
1230
|
const t = e.trim().toLowerCase();
|
|
999
1231
|
return t ? o.filter((n) => `${n.name} ${n.path}`.toLowerCase().includes(t)) : o;
|
|
1000
|
-
},
|
|
1001
|
-
const e =
|
|
1232
|
+
}, yl = (o) => {
|
|
1233
|
+
const e = O(22), {
|
|
1002
1234
|
entry: t,
|
|
1003
1235
|
selectedPath: n,
|
|
1004
|
-
selectedPathSet:
|
|
1005
|
-
onEntryClick:
|
|
1236
|
+
selectedPathSet: l,
|
|
1237
|
+
onEntryClick: r
|
|
1006
1238
|
} = o;
|
|
1007
|
-
let
|
|
1008
|
-
e[0] !== t.isGitRepo || e[1] !== t.path || e[2] !==
|
|
1009
|
-
const c =
|
|
1010
|
-
let
|
|
1011
|
-
e[4] !== t || e[5] !== c || e[6] !==
|
|
1012
|
-
c ||
|
|
1013
|
-
}, e[4] = t, e[5] = c, e[6] =
|
|
1014
|
-
const
|
|
1015
|
-
let
|
|
1016
|
-
e[8] !== t ? (
|
|
1239
|
+
let i;
|
|
1240
|
+
e[0] !== t.isGitRepo || e[1] !== t.path || e[2] !== l ? (i = t.isGitRepo && l.has(t.path), e[0] = t.isGitRepo, e[1] = t.path, e[2] = l, e[3] = i) : i = e[3];
|
|
1241
|
+
const c = i, a = !t.isDirectory || c;
|
|
1242
|
+
let f;
|
|
1243
|
+
e[4] !== t || e[5] !== c || e[6] !== r ? (f = () => {
|
|
1244
|
+
c || r(t);
|
|
1245
|
+
}, e[4] = t, e[5] = c, e[6] = r, e[7] = f) : f = e[7];
|
|
1246
|
+
const d = f, u = n === t.path, h = t.path, p = t.name;
|
|
1247
|
+
let m;
|
|
1248
|
+
e[8] !== t ? (m = xl(t), e[8] = t, e[9] = m) : m = e[9];
|
|
1017
1249
|
let g;
|
|
1018
|
-
e[10] !==
|
|
1250
|
+
e[10] !== m ? (g = /* @__PURE__ */ s(ce, { as: m, boxSize: "16px" }), e[10] = m, e[11] = g) : g = e[11];
|
|
1019
1251
|
let S;
|
|
1020
1252
|
e[12] !== t.isGitRepo ? (S = t.isGitRepo ? /* @__PURE__ */ s(Te, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = S) : S = e[13];
|
|
1021
1253
|
let b;
|
|
1022
|
-
return e[14] !== t.name || e[15] !== t.path || e[16] !==
|
|
1023
|
-
},
|
|
1254
|
+
return e[14] !== t.name || e[15] !== t.path || e[16] !== d || e[17] !== a || e[18] !== u || e[19] !== g || e[20] !== S ? (b = /* @__PURE__ */ s(Qe, { variant: "compact", isSelected: u, id: h, label: p, icon: g, endContent: S, disabled: a, onActivate: d }), e[14] = t.name, e[15] = t.path, e[16] = d, e[17] = a, e[18] = u, e[19] = g, e[20] = S, e[21] = b) : b = e[21], b;
|
|
1255
|
+
}, Cl = (o) => {
|
|
1024
1256
|
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(o.key))
|
|
1025
1257
|
return;
|
|
1026
1258
|
const e = Array.from(o.currentTarget.querySelectorAll('button[role="option"]:not(:disabled)'));
|
|
@@ -1028,111 +1260,111 @@ const vi = (o) => {
|
|
|
1028
1260
|
return;
|
|
1029
1261
|
const t = e.indexOf(document.activeElement), n = o.key === "Home" ? 0 : o.key === "End" ? e.length - 1 : o.key === "ArrowUp" ? t <= 0 ? e.length - 1 : t - 1 : t < 0 || t === e.length - 1 ? 0 : t + 1;
|
|
1030
1262
|
o.preventDefault(), e[n]?.focus();
|
|
1031
|
-
},
|
|
1032
|
-
const e =
|
|
1263
|
+
}, os = (o) => {
|
|
1264
|
+
const e = O(68), {
|
|
1033
1265
|
open: t,
|
|
1034
1266
|
title: n,
|
|
1035
|
-
description:
|
|
1036
|
-
currentPath:
|
|
1037
|
-
entries:
|
|
1267
|
+
description: l,
|
|
1268
|
+
currentPath: r,
|
|
1269
|
+
entries: i,
|
|
1038
1270
|
selectedPath: c,
|
|
1039
1271
|
selectedPaths: a,
|
|
1040
|
-
isLoading:
|
|
1041
|
-
error:
|
|
1042
|
-
isSelectDisabled:
|
|
1272
|
+
isLoading: f,
|
|
1273
|
+
error: d,
|
|
1274
|
+
isSelectDisabled: u,
|
|
1043
1275
|
onClose: h,
|
|
1044
|
-
onSelect:
|
|
1045
|
-
onSelectHomeDirectory:
|
|
1276
|
+
onSelect: p,
|
|
1277
|
+
onSelectHomeDirectory: m,
|
|
1046
1278
|
onSelectParentDirectory: g,
|
|
1047
1279
|
onEntryClick: S
|
|
1048
|
-
} = o, b = n === void 0 ? "Select folder" : n,
|
|
1049
|
-
let
|
|
1050
|
-
e[0] !== a ? (
|
|
1051
|
-
const
|
|
1052
|
-
let
|
|
1053
|
-
e[2] !==
|
|
1054
|
-
const
|
|
1055
|
-
let
|
|
1056
|
-
e[4] !== t || e[5] !==
|
|
1057
|
-
!t || !
|
|
1058
|
-
},
|
|
1059
|
-
const
|
|
1060
|
-
let
|
|
1061
|
-
e[8] !== h ? (
|
|
1062
|
-
let
|
|
1063
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1064
|
-
const q = Z,
|
|
1065
|
-
let
|
|
1066
|
-
e[11] !== b ? (
|
|
1067
|
-
let
|
|
1068
|
-
e[13] !==
|
|
1280
|
+
} = o, b = n === void 0 ? "Select folder" : n, T = r === void 0 ? "" : r, I = c === void 0 ? null : c;
|
|
1281
|
+
let R;
|
|
1282
|
+
e[0] !== a ? (R = a === void 0 ? [] : a, e[0] = a, e[1] = R) : R = e[1];
|
|
1283
|
+
const x = R, $ = f === void 0 ? !1 : f, A = d === void 0 ? "" : d, P = u === void 0 ? !1 : u, [w, y] = ue("");
|
|
1284
|
+
let L;
|
|
1285
|
+
e[2] !== x ? (L = new Set(x), e[2] = x, e[3] = L) : L = e[3];
|
|
1286
|
+
const D = L, k = vl(i, w), N = T || "Home";
|
|
1287
|
+
let _, v;
|
|
1288
|
+
e[4] !== t || e[5] !== N ? (v = () => {
|
|
1289
|
+
!t || !N || y("");
|
|
1290
|
+
}, _ = [t, N], e[4] = t, e[5] = N, e[6] = _, e[7] = v) : (_ = e[6], v = e[7]), me(v, _);
|
|
1291
|
+
const z = Z, E = !0, H = !0, W = !1;
|
|
1292
|
+
let F;
|
|
1293
|
+
e[8] !== h ? (F = (ze) => !ze.open && h(), e[8] = h, e[9] = F) : F = e[9];
|
|
1294
|
+
let B;
|
|
1295
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(Z.Backdrop, {}), e[10] = B) : B = e[10];
|
|
1296
|
+
const q = Z, U = Z;
|
|
1297
|
+
let G;
|
|
1298
|
+
e[11] !== b ? (G = /* @__PURE__ */ s(M, { textStyle: "heading/M", children: b }), e[11] = b, e[12] = G) : G = e[12];
|
|
1299
|
+
let Q;
|
|
1300
|
+
e[13] !== l ? (Q = l ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", children: l }) : null, e[13] = l, e[14] = Q) : Q = e[14];
|
|
1069
1301
|
let K;
|
|
1070
|
-
e[15] !==
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
] }) }), e[15] =
|
|
1074
|
-
const
|
|
1075
|
-
let
|
|
1076
|
-
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1302
|
+
e[15] !== G || e[16] !== Q ? (K = /* @__PURE__ */ s(Z.Header, { children: /* @__PURE__ */ C(X, { gap: "xs", children: [
|
|
1303
|
+
G,
|
|
1304
|
+
Q
|
|
1305
|
+
] }) }), e[15] = G, e[16] = Q, e[17] = K) : K = e[17];
|
|
1306
|
+
const ae = Z, J = X, ee = "md";
|
|
1307
|
+
let ie;
|
|
1308
|
+
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ s(eo, { size: 16 }), e[18] = ie) : ie = e[18];
|
|
1077
1309
|
let te;
|
|
1078
|
-
e[19] !==
|
|
1079
|
-
const
|
|
1310
|
+
e[19] !== m ? (te = /* @__PURE__ */ s(de, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: ie }), e[19] = m, e[20] = te) : te = e[20];
|
|
1311
|
+
const re = !T || T === "/";
|
|
1080
1312
|
let ne;
|
|
1081
|
-
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(
|
|
1313
|
+
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(to, { size: 16 }), e[21] = ne) : ne = e[21];
|
|
1082
1314
|
let Y;
|
|
1083
|
-
e[22] !== g || e[23] !==
|
|
1084
|
-
let
|
|
1085
|
-
e[25] !==
|
|
1315
|
+
e[22] !== g || e[23] !== re ? (Y = /* @__PURE__ */ s(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: re, children: ne }), e[22] = g, e[23] = re, e[24] = Y) : Y = e[24];
|
|
1316
|
+
let se;
|
|
1317
|
+
e[25] !== N ? (se = /* @__PURE__ */ s(M, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: N }), e[25] = N, e[26] = se) : se = e[26];
|
|
1086
1318
|
let oe;
|
|
1087
|
-
e[27] !== te || e[28] !== Y || e[29] !==
|
|
1319
|
+
e[27] !== te || e[28] !== Y || e[29] !== se ? (oe = /* @__PURE__ */ C(X, { direction: "row", gap: "sm", align: "center", children: [
|
|
1088
1320
|
te,
|
|
1089
1321
|
Y,
|
|
1090
|
-
|
|
1091
|
-
] }), e[27] = te, e[28] = Y, e[29] =
|
|
1092
|
-
const he =
|
|
1093
|
-
let
|
|
1094
|
-
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1322
|
+
se
|
|
1323
|
+
] }), e[27] = te, e[28] = Y, e[29] = se, e[30] = oe) : oe = e[30];
|
|
1324
|
+
const he = X, Pe = "0", xe = "1px", ve = "md", ye = "border.subtle", ke = "hidden";
|
|
1325
|
+
let V;
|
|
1326
|
+
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ s(Zt, { size: 14 }), e[31] = V) : V = e[31];
|
|
1095
1327
|
let be;
|
|
1096
|
-
e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = (ze) =>
|
|
1328
|
+
e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = (ze) => y(ze.target.value), e[32] = be) : be = e[32];
|
|
1097
1329
|
let Ce;
|
|
1098
|
-
e[33] !==
|
|
1099
|
-
const we =
|
|
1330
|
+
e[33] !== w ? (Ce = /* @__PURE__ */ s(Xt, { startElement: V, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Qt, { mx: "xs", value: w, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: be }) }), e[33] = w, e[34] = Ce) : Ce = e[34];
|
|
1331
|
+
const we = $ ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : A ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: A }) : k.length === 0 ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(ot, { maxHeight: "320px", contentProps: {
|
|
1100
1332
|
padding: "sm"
|
|
1101
|
-
}, children: /* @__PURE__ */ s(
|
|
1333
|
+
}, children: /* @__PURE__ */ s(X, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Cl, children: k.map((ze) => /* @__PURE__ */ s(yl, { entry: ze, selectedPath: I, selectedPathSet: D, onEntryClick: S }, ze.path)) }) });
|
|
1102
1334
|
let Se;
|
|
1103
|
-
e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */
|
|
1335
|
+
e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */ C(he, { gap: Pe, borderWidth: xe, borderRadius: ve, borderColor: ye, overflow: ke, children: [
|
|
1104
1336
|
Ce,
|
|
1105
1337
|
we
|
|
1106
1338
|
] }), e[35] = he, e[36] = Ce, e[37] = we, e[38] = Se) : Se = e[38];
|
|
1107
|
-
let
|
|
1108
|
-
e[39] !== J || e[40] !== oe || e[41] !== Se ? (
|
|
1339
|
+
let Re;
|
|
1340
|
+
e[39] !== J || e[40] !== oe || e[41] !== Se ? (Re = /* @__PURE__ */ C(J, { gap: ee, children: [
|
|
1109
1341
|
oe,
|
|
1110
1342
|
Se
|
|
1111
|
-
] }), e[39] = J, e[40] = oe, e[41] = Se, e[42] =
|
|
1112
|
-
let Ee;
|
|
1113
|
-
e[43] !== se.Body || e[44] !== ke ? (Ee = /* @__PURE__ */ s(se.Body, { children: ke }), e[43] = se.Body, e[44] = ke, e[45] = Ee) : Ee = e[45];
|
|
1343
|
+
] }), e[39] = J, e[40] = oe, e[41] = Se, e[42] = Re) : Re = e[42];
|
|
1114
1344
|
let $e;
|
|
1115
|
-
e[
|
|
1116
|
-
let De;
|
|
1117
|
-
e[48] !== E || e[49] !== m ? (De = /* @__PURE__ */ s(ue, { onClick: m, disabled: E, children: "Select repository" }), e[48] = E, e[49] = m, e[50] = De) : De = e[50];
|
|
1345
|
+
e[43] !== ae.Body || e[44] !== Re ? ($e = /* @__PURE__ */ s(ae.Body, { children: Re }), e[43] = ae.Body, e[44] = Re, e[45] = $e) : $e = e[45];
|
|
1118
1346
|
let Le;
|
|
1119
|
-
e[
|
|
1347
|
+
e[46] !== h ? (Le = /* @__PURE__ */ s(de, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = Le) : Le = e[47];
|
|
1348
|
+
let Ee;
|
|
1349
|
+
e[48] !== P || e[49] !== p ? (Ee = /* @__PURE__ */ s(de, { onClick: p, disabled: P, children: "Select repository" }), e[48] = P, e[49] = p, e[50] = Ee) : Ee = e[50];
|
|
1350
|
+
let De;
|
|
1351
|
+
e[51] !== Le || e[52] !== Ee ? (De = /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ C(X, { direction: "row", gap: "sm", children: [
|
|
1352
|
+
Le,
|
|
1353
|
+
Ee
|
|
1354
|
+
] }) }), e[51] = Le, e[52] = Ee, e[53] = De) : De = e[53];
|
|
1355
|
+
let _e;
|
|
1356
|
+
e[54] !== U.Content || e[55] !== K || e[56] !== $e || e[57] !== De ? (_e = /* @__PURE__ */ C(U.Content, { children: [
|
|
1357
|
+
K,
|
|
1120
1358
|
$e,
|
|
1121
1359
|
De
|
|
1122
|
-
] })
|
|
1360
|
+
] }), e[54] = U.Content, e[55] = K, e[56] = $e, e[57] = De, e[58] = _e) : _e = e[58];
|
|
1123
1361
|
let Oe;
|
|
1124
|
-
e[
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
e[59] !== q.Positioner || e[60] !== Oe ? (_e = /* @__PURE__ */ s(q.Positioner, { children: Oe }), e[59] = q.Positioner, e[60] = Oe, e[61] = _e) : _e = e[61];
|
|
1131
|
-
let qe;
|
|
1132
|
-
return e[62] !== t || e[63] !== N.Root || e[64] !== W || e[65] !== D || e[66] !== _e ? (qe = /* @__PURE__ */ v(N.Root, { lazyMount: F, unmountOnExit: X, closeOnInteractOutside: B, open: t, onOpenChange: W, children: [
|
|
1133
|
-
D,
|
|
1134
|
-
_e
|
|
1135
|
-
] }), e[62] = t, e[63] = N.Root, e[64] = W, e[65] = D, e[66] = _e, e[67] = qe) : qe = e[67], qe;
|
|
1362
|
+
e[59] !== q.Positioner || e[60] !== _e ? (Oe = /* @__PURE__ */ s(q.Positioner, { children: _e }), e[59] = q.Positioner, e[60] = _e, e[61] = Oe) : Oe = e[61];
|
|
1363
|
+
let Xe;
|
|
1364
|
+
return e[62] !== t || e[63] !== z.Root || e[64] !== F || e[65] !== B || e[66] !== Oe ? (Xe = /* @__PURE__ */ C(z.Root, { lazyMount: E, unmountOnExit: H, closeOnInteractOutside: W, open: t, onOpenChange: F, children: [
|
|
1365
|
+
B,
|
|
1366
|
+
Oe
|
|
1367
|
+
] }), e[62] = t, e[63] = z.Root, e[64] = F, e[65] = B, e[66] = Oe, e[67] = Xe) : Xe = e[67], Xe;
|
|
1136
1368
|
}, Ze = {
|
|
1137
1369
|
alignItems: "center",
|
|
1138
1370
|
display: "inline-flex",
|
|
@@ -1152,7 +1384,7 @@ const vi = (o) => {
|
|
|
1152
1384
|
_focusVisible: {
|
|
1153
1385
|
outline: "none"
|
|
1154
1386
|
}
|
|
1155
|
-
},
|
|
1387
|
+
}, Pt = {
|
|
1156
1388
|
...Ze,
|
|
1157
1389
|
color: "fg",
|
|
1158
1390
|
cursor: "default",
|
|
@@ -1160,98 +1392,98 @@ const vi = (o) => {
|
|
|
1160
1392
|
_hover: {
|
|
1161
1393
|
textDecoration: "none"
|
|
1162
1394
|
}
|
|
1163
|
-
},
|
|
1164
|
-
const e =
|
|
1395
|
+
}, wl = (o) => !!(o.url || o.onClick), Il = (o) => {
|
|
1396
|
+
const e = O(14), {
|
|
1165
1397
|
item: t,
|
|
1166
1398
|
isCurrent: n,
|
|
1167
|
-
linkComponent:
|
|
1399
|
+
linkComponent: l
|
|
1168
1400
|
} = o;
|
|
1169
|
-
if (n && !
|
|
1170
|
-
let
|
|
1171
|
-
return e[0] !== t.title ? (
|
|
1401
|
+
if (n && !wl(t)) {
|
|
1402
|
+
let i;
|
|
1403
|
+
return e[0] !== t.title ? (i = /* @__PURE__ */ s(pe.CurrentLink, { ...Pt, children: t.title }), e[0] = t.title, e[1] = i) : i = e[1], i;
|
|
1172
1404
|
}
|
|
1173
|
-
if (t.url &&
|
|
1174
|
-
let
|
|
1175
|
-
return e[2] !==
|
|
1405
|
+
if (t.url && l) {
|
|
1406
|
+
let i;
|
|
1407
|
+
return e[2] !== l || e[3] !== t.title || e[4] !== t.url ? (i = /* @__PURE__ */ s(pe.Link, { asChild: !0, ...Ze, children: /* @__PURE__ */ s(l, { to: t.url, children: t.title }) }), e[2] = l, e[3] = t.title, e[4] = t.url, e[5] = i) : i = e[5], i;
|
|
1176
1408
|
}
|
|
1177
1409
|
if (t.url) {
|
|
1178
|
-
let
|
|
1179
|
-
return e[6] !== t.title || e[7] !== t.url ? (
|
|
1410
|
+
let i;
|
|
1411
|
+
return e[6] !== t.title || e[7] !== t.url ? (i = /* @__PURE__ */ s(pe.Link, { href: t.url, ...Ze, children: t.title }), e[6] = t.title, e[7] = t.url, e[8] = i) : i = e[8], i;
|
|
1180
1412
|
}
|
|
1181
1413
|
if (t.onClick) {
|
|
1182
|
-
let
|
|
1183
|
-
return e[9] !== t.onClick || e[10] !== t.title ? (
|
|
1414
|
+
let i;
|
|
1415
|
+
return e[9] !== t.onClick || e[10] !== t.title ? (i = /* @__PURE__ */ s(pe.Link, { as: "button", type: "button", onClick: t.onClick, ...Ze, children: t.title }), e[9] = t.onClick, e[10] = t.title, e[11] = i) : i = e[11], i;
|
|
1184
1416
|
}
|
|
1185
|
-
let
|
|
1186
|
-
return e[12] !== t.title ? (
|
|
1187
|
-
},
|
|
1188
|
-
const e =
|
|
1417
|
+
let r;
|
|
1418
|
+
return e[12] !== t.title ? (r = /* @__PURE__ */ s(pe.Link, { as: "span", ...Pt, children: t.title }), e[12] = t.title, e[13] = r) : r = e[13], r;
|
|
1419
|
+
}, Tl = (o) => {
|
|
1420
|
+
const e = O(6), {
|
|
1189
1421
|
item: t
|
|
1190
1422
|
} = o;
|
|
1191
1423
|
let n;
|
|
1192
|
-
e[0] !== o ? (n = /* @__PURE__ */ s(
|
|
1193
|
-
const
|
|
1424
|
+
e[0] !== o ? (n = /* @__PURE__ */ s(Il, { ...o }), e[0] = o, e[1] = n) : n = e[1];
|
|
1425
|
+
const l = n;
|
|
1194
1426
|
if (!t.contextMenuActions?.length)
|
|
1195
|
-
return
|
|
1196
|
-
let
|
|
1197
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1427
|
+
return l;
|
|
1428
|
+
let r;
|
|
1429
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
1198
1430
|
placement: "bottom-start"
|
|
1199
|
-
}, e[2] =
|
|
1200
|
-
let
|
|
1201
|
-
return e[3] !==
|
|
1202
|
-
},
|
|
1203
|
-
const e =
|
|
1431
|
+
}, e[2] = r) : r = e[2];
|
|
1432
|
+
let i;
|
|
1433
|
+
return e[3] !== l || e[4] !== t.contextMenuActions ? (i = /* @__PURE__ */ s(tn, { actions: t.contextMenuActions, positioning: r, children: l }), e[3] = l, e[4] = t.contextMenuActions, e[5] = i) : i = e[5], i;
|
|
1434
|
+
}, Al = (o) => {
|
|
1435
|
+
const e = O(3), {
|
|
1204
1436
|
separator: t
|
|
1205
1437
|
} = o;
|
|
1206
1438
|
if (t === void 0) {
|
|
1207
|
-
let
|
|
1208
|
-
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1439
|
+
let l;
|
|
1440
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0 }), e[0] = l) : l = e[0], l;
|
|
1209
1441
|
}
|
|
1210
1442
|
let n;
|
|
1211
1443
|
return e[1] !== t ? (n = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = n) : n = e[2], n;
|
|
1212
|
-
},
|
|
1213
|
-
const n =
|
|
1214
|
-
let r, i,
|
|
1444
|
+
}, ls = xt.forwardRef(function(e, t) {
|
|
1445
|
+
const n = O(21);
|
|
1446
|
+
let l, r, i, c, a;
|
|
1215
1447
|
n[0] !== e ? ({
|
|
1216
1448
|
separator: c,
|
|
1217
1449
|
separatorGap: a,
|
|
1218
|
-
items:
|
|
1219
|
-
linkComponent:
|
|
1220
|
-
...
|
|
1221
|
-
} = e, n[0] = e, n[1] =
|
|
1222
|
-
let
|
|
1223
|
-
if (n[6] !==
|
|
1450
|
+
items: r,
|
|
1451
|
+
linkComponent: l,
|
|
1452
|
+
...i
|
|
1453
|
+
} = e, n[0] = e, n[1] = l, n[2] = r, n[3] = i, n[4] = c, n[5] = a) : (l = n[1], r = n[2], i = n[3], c = n[4], a = n[5]);
|
|
1454
|
+
let f;
|
|
1455
|
+
if (n[6] !== l || n[7] !== r || n[8] !== c) {
|
|
1224
1456
|
let h;
|
|
1225
|
-
n[10] !==
|
|
1226
|
-
const g =
|
|
1227
|
-
return /* @__PURE__ */
|
|
1228
|
-
/* @__PURE__ */ s(pe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(
|
|
1229
|
-
g ? null : /* @__PURE__ */ s(
|
|
1230
|
-
] },
|
|
1231
|
-
}, n[10] =
|
|
1457
|
+
n[10] !== l || n[11] !== r.length || n[12] !== c ? (h = (p, m) => {
|
|
1458
|
+
const g = m === r.length - 1;
|
|
1459
|
+
return /* @__PURE__ */ C(xt.Fragment, { children: [
|
|
1460
|
+
/* @__PURE__ */ s(pe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Tl, { item: p, isCurrent: g, linkComponent: l }) }),
|
|
1461
|
+
g ? null : /* @__PURE__ */ s(Al, { separator: c })
|
|
1462
|
+
] }, m);
|
|
1463
|
+
}, n[10] = l, n[11] = r.length, n[12] = c, n[13] = h) : h = n[13], f = r.map(h), n[6] = l, n[7] = r, n[8] = c, n[9] = f;
|
|
1232
1464
|
} else
|
|
1233
|
-
|
|
1465
|
+
f = n[9];
|
|
1466
|
+
let d;
|
|
1467
|
+
n[14] !== a || n[15] !== f ? (d = /* @__PURE__ */ s(pe.List, { gap: a, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: f }), n[14] = a, n[15] = f, n[16] = d) : d = n[16];
|
|
1234
1468
|
let u;
|
|
1235
|
-
n[
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
}), Jo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, er = (o) => {
|
|
1239
|
-
const e = k(3);
|
|
1469
|
+
return n[17] !== t || n[18] !== i || n[19] !== d ? (u = /* @__PURE__ */ s(pe.Root, { ref: t, ...i, children: d }), n[17] = t, n[18] = i, n[19] = d, n[20] = u) : u = n[20], u;
|
|
1470
|
+
}), Pl = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, kl = (o) => {
|
|
1471
|
+
const e = O(3);
|
|
1240
1472
|
let t;
|
|
1241
1473
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
|
|
1242
1474
|
backgroundClip: "padding-box",
|
|
1243
|
-
backgroundImage:
|
|
1475
|
+
backgroundImage: Pl,
|
|
1244
1476
|
display: "flex",
|
|
1245
1477
|
width: "100%"
|
|
1246
1478
|
}, e[0] = t) : t = e[0];
|
|
1247
1479
|
let n;
|
|
1248
|
-
return e[1] !== o ? (n = /* @__PURE__ */ s(
|
|
1249
|
-
},
|
|
1250
|
-
const e =
|
|
1480
|
+
return e[1] !== o ? (n = /* @__PURE__ */ s(j, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
|
|
1481
|
+
}, is = (o) => {
|
|
1482
|
+
const e = O(2);
|
|
1251
1483
|
let t;
|
|
1252
|
-
return e[0] !== o ? (t = /* @__PURE__ */ s(
|
|
1484
|
+
return e[0] !== o ? (t = /* @__PURE__ */ s(j, { p: "2", children: /* @__PURE__ */ s(M, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
|
|
1253
1485
|
};
|
|
1254
|
-
class
|
|
1486
|
+
class rs extends Dn {
|
|
1255
1487
|
state = {
|
|
1256
1488
|
error: null
|
|
1257
1489
|
};
|
|
@@ -1274,50 +1506,50 @@ class Ai extends pn {
|
|
|
1274
1506
|
fallback: t,
|
|
1275
1507
|
label: n
|
|
1276
1508
|
} = this.props, {
|
|
1277
|
-
error:
|
|
1509
|
+
error: l
|
|
1278
1510
|
} = this.state;
|
|
1279
|
-
return
|
|
1511
|
+
return l ? t || /* @__PURE__ */ s(Rl, { error: l, label: n, onReset: this.handleReset }) : e;
|
|
1280
1512
|
}
|
|
1281
1513
|
}
|
|
1282
|
-
const
|
|
1283
|
-
const e =
|
|
1514
|
+
const Rl = (o) => {
|
|
1515
|
+
const e = O(12), {
|
|
1284
1516
|
error: t,
|
|
1285
1517
|
label: n,
|
|
1286
|
-
onReset:
|
|
1287
|
-
} = o,
|
|
1288
|
-
let
|
|
1289
|
-
e[0] !==
|
|
1518
|
+
onReset: l
|
|
1519
|
+
} = o, r = n ?? "Something went wrong";
|
|
1520
|
+
let i;
|
|
1521
|
+
e[0] !== r ? (i = /* @__PURE__ */ s(M, { textStyle: "paragraph/M/medium", children: r }), e[0] = r, e[1] = i) : i = e[1];
|
|
1290
1522
|
const c = t.message || "An unexpected error occurred while rendering this section.";
|
|
1291
1523
|
let a;
|
|
1292
|
-
e[2] !== c ? (a = /* @__PURE__ */ s(
|
|
1524
|
+
e[2] !== c ? (a = /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", children: c }), e[2] = c, e[3] = a) : a = e[3];
|
|
1525
|
+
let f;
|
|
1526
|
+
e[4] !== l ? (f = l ? /* @__PURE__ */ s(de, { size: "sm", variant: "primary", onClick: l, children: "Try again" }) : null, e[4] = l, e[5] = f) : f = e[5];
|
|
1293
1527
|
let d;
|
|
1294
|
-
e[
|
|
1295
|
-
let u;
|
|
1296
|
-
e[6] !== a || e[7] !== d ? (u = /* @__PURE__ */ v(Q, { gap: "sm", children: [
|
|
1528
|
+
e[6] !== a || e[7] !== f ? (d = /* @__PURE__ */ C(X, { gap: "sm", children: [
|
|
1297
1529
|
a,
|
|
1298
|
-
|
|
1299
|
-
] }), e[6] = a, e[7] =
|
|
1300
|
-
let
|
|
1301
|
-
return e[9] !==
|
|
1302
|
-
},
|
|
1303
|
-
const e =
|
|
1304
|
-
let t, n, r, i
|
|
1530
|
+
f
|
|
1531
|
+
] }), e[6] = a, e[7] = f, e[8] = d) : d = e[8];
|
|
1532
|
+
let u;
|
|
1533
|
+
return e[9] !== i || e[10] !== d ? (u = /* @__PURE__ */ s(kl, { height: "100%", width: "100%", children: /* @__PURE__ */ s(An, { children: /* @__PURE__ */ s(lt, { status: "error", title: i, children: d }) }) }), e[9] = i, e[10] = d, e[11] = u) : u = e[11], u;
|
|
1534
|
+
}, $l = (o) => !!o && o !== "circle", Ll = (o) => {
|
|
1535
|
+
const e = O(18);
|
|
1536
|
+
let t, n, l, r, i;
|
|
1305
1537
|
e[0] !== o ? ({
|
|
1306
1538
|
color: t,
|
|
1307
1539
|
icon: n,
|
|
1308
|
-
iconOptions:
|
|
1309
|
-
showIcon:
|
|
1310
|
-
...
|
|
1311
|
-
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] =
|
|
1312
|
-
const c =
|
|
1540
|
+
iconOptions: l,
|
|
1541
|
+
showIcon: i,
|
|
1542
|
+
...r
|
|
1543
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5]);
|
|
1544
|
+
const c = i === void 0 ? !0 : i;
|
|
1313
1545
|
let a;
|
|
1314
|
-
e[6] !== n || e[7] !==
|
|
1315
|
-
const
|
|
1316
|
-
let
|
|
1317
|
-
e[9] !==
|
|
1546
|
+
e[6] !== n || e[7] !== l ? (a = ao(n, l), e[6] = n, e[7] = l, e[8] = a) : a = e[8];
|
|
1547
|
+
const f = a, d = `${t}.500/15`;
|
|
1548
|
+
let u;
|
|
1549
|
+
e[9] !== f || e[10] !== t || e[11] !== n || e[12] !== c ? (u = c && $l(n) ? /* @__PURE__ */ s(ce, { as: f, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(j, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = f, e[10] = t, e[11] = n, e[12] = c, e[13] = u) : u = e[13];
|
|
1318
1550
|
let h;
|
|
1319
|
-
return e[14] !==
|
|
1320
|
-
},
|
|
1551
|
+
return e[14] !== r || e[15] !== d || e[16] !== u ? (h = /* @__PURE__ */ s(Pn, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: d, ...r, children: u }), e[14] = r, e[15] = d, e[16] = u, e[17] = h) : h = e[17], h;
|
|
1552
|
+
}, El = Ae("button", {
|
|
1321
1553
|
base: {
|
|
1322
1554
|
display: "inline-flex",
|
|
1323
1555
|
borderRadius: "compact",
|
|
@@ -1328,7 +1560,7 @@ const tr = (o) => {
|
|
|
1328
1560
|
opacity: 0.5
|
|
1329
1561
|
}
|
|
1330
1562
|
}
|
|
1331
|
-
}),
|
|
1563
|
+
}), Dl = Ae("button", {
|
|
1332
1564
|
base: {
|
|
1333
1565
|
boxSize: "tag-color-dot",
|
|
1334
1566
|
borderRadius: "full",
|
|
@@ -1341,7 +1573,7 @@ const tr = (o) => {
|
|
|
1341
1573
|
outlineColor: "fg"
|
|
1342
1574
|
}
|
|
1343
1575
|
}
|
|
1344
|
-
}),
|
|
1576
|
+
}), _l = Ae("button", {
|
|
1345
1577
|
base: {
|
|
1346
1578
|
display: "inline-flex",
|
|
1347
1579
|
alignItems: "center",
|
|
@@ -1354,135 +1586,135 @@ const tr = (o) => {
|
|
|
1354
1586
|
bg: "bg.hover"
|
|
1355
1587
|
}
|
|
1356
1588
|
}
|
|
1357
|
-
}),
|
|
1358
|
-
const e =
|
|
1589
|
+
}), Ol = (o) => {
|
|
1590
|
+
const e = O(39), {
|
|
1359
1591
|
color: t,
|
|
1360
1592
|
colorOptions: n,
|
|
1361
|
-
icon:
|
|
1362
|
-
iconOptions:
|
|
1363
|
-
onColorChange:
|
|
1593
|
+
icon: l,
|
|
1594
|
+
iconOptions: r,
|
|
1595
|
+
onColorChange: i,
|
|
1364
1596
|
onIconChange: c,
|
|
1365
1597
|
disabled: a,
|
|
1366
|
-
showIcons:
|
|
1367
|
-
colorLabel:
|
|
1368
|
-
iconLabel:
|
|
1598
|
+
showIcons: f,
|
|
1599
|
+
colorLabel: d,
|
|
1600
|
+
iconLabel: u,
|
|
1369
1601
|
"aria-label": h
|
|
1370
|
-
} = o,
|
|
1371
|
-
let
|
|
1372
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1602
|
+
} = o, p = n === void 0 ? fo : n, m = r === void 0 ? co : r, g = f === void 0 ? !0 : f, S = d === void 0 ? "Color" : d, b = u === void 0 ? "Icon" : u, T = h === void 0 ? "Pick color and icon" : h, I = l === "circle" ? null : l ?? null;
|
|
1603
|
+
let R;
|
|
1604
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
|
|
1373
1605
|
placement: "bottom-start"
|
|
1374
|
-
}, e[0] =
|
|
1606
|
+
}, e[0] = R) : R = e[0];
|
|
1607
|
+
let x;
|
|
1608
|
+
e[1] !== t || e[2] !== l || e[3] !== m || e[4] !== g ? (x = /* @__PURE__ */ s(Ll, { color: t, icon: l, iconOptions: m, showIcon: g }), e[1] = t, e[2] = l, e[3] = m, e[4] = g, e[5] = x) : x = e[5];
|
|
1609
|
+
let $;
|
|
1610
|
+
e[6] !== T || e[7] !== a || e[8] !== x ? ($ = /* @__PURE__ */ s(Ke.Trigger, { asChild: !0, children: /* @__PURE__ */ s(El, { type: "button", disabled: a, "aria-label": T, children: x }) }), e[6] = T, e[7] = a, e[8] = x, e[9] = $) : $ = e[9];
|
|
1611
|
+
const A = g ? "tag-picker" : "tag-picker-color-only";
|
|
1612
|
+
let P;
|
|
1613
|
+
e[10] !== S ? (P = /* @__PURE__ */ s(M, { textStyle: "label/S/medium", color: "fg.muted", children: S }), e[10] = S, e[11] = P) : P = e[11];
|
|
1614
|
+
const w = `repeat(${g ? 10 : 5}, 1fr)`;
|
|
1375
1615
|
let y;
|
|
1376
|
-
e[
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
const R = g ? "tag-picker" : "tag-picker-color-only";
|
|
1380
|
-
let E;
|
|
1381
|
-
e[10] !== S ? (E = /* @__PURE__ */ s(H, { textStyle: "label/S/medium", color: "fg.muted", children: S }), e[10] = S, e[11] = E) : E = e[11];
|
|
1382
|
-
const P = `repeat(${g ? 10 : 5}, 1fr)`;
|
|
1383
|
-
let C;
|
|
1384
|
-
if (e[12] !== t || e[13] !== m || e[14] !== l) {
|
|
1385
|
-
let T;
|
|
1386
|
-
e[16] !== t || e[17] !== l ? (T = (N) => /* @__PURE__ */ s(lr, { type: "button", bg: `${N}.500`, "aria-label": N, "aria-pressed": N === t, "data-selected": N === t ? "" : void 0, onClick: () => l(N) }, N), e[16] = t, e[17] = l, e[18] = T) : T = e[18], C = m.map(T), e[12] = t, e[13] = m, e[14] = l, e[15] = C;
|
|
1616
|
+
if (e[12] !== t || e[13] !== p || e[14] !== i) {
|
|
1617
|
+
let v;
|
|
1618
|
+
e[16] !== t || e[17] !== i ? (v = (z) => /* @__PURE__ */ s(Dl, { type: "button", bg: `${z}.500`, "aria-label": z, "aria-pressed": z === t, "data-selected": z === t ? "" : void 0, onClick: () => i(z) }, z), e[16] = t, e[17] = i, e[18] = v) : v = e[18], y = p.map(v), e[12] = t, e[13] = p, e[14] = i, e[15] = y;
|
|
1387
1619
|
} else
|
|
1388
|
-
|
|
1389
|
-
let
|
|
1390
|
-
e[19] !==
|
|
1391
|
-
let
|
|
1392
|
-
e[22] !== t || e[23] !== b || e[24] !==
|
|
1393
|
-
/* @__PURE__ */ s(
|
|
1394
|
-
/* @__PURE__ */ s(
|
|
1395
|
-
/* @__PURE__ */ s(
|
|
1396
|
-
const
|
|
1397
|
-
return /* @__PURE__ */ s(
|
|
1620
|
+
y = e[15];
|
|
1621
|
+
let L;
|
|
1622
|
+
e[19] !== w || e[20] !== y ? (L = /* @__PURE__ */ s(St, { templateColumns: w, gap: "2xs", justifyItems: "center", children: y }), e[19] = w, e[20] = y, e[21] = L) : L = e[21];
|
|
1623
|
+
let D;
|
|
1624
|
+
e[22] !== t || e[23] !== b || e[24] !== m || e[25] !== c || e[26] !== I || e[27] !== g ? (D = g ? /* @__PURE__ */ C(He, { children: [
|
|
1625
|
+
/* @__PURE__ */ s(j, { borderTop: "subtle" }),
|
|
1626
|
+
/* @__PURE__ */ s(M, { textStyle: "label/S/medium", color: "fg.muted", children: b }),
|
|
1627
|
+
/* @__PURE__ */ s(St, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((v) => {
|
|
1628
|
+
const z = v.value === I;
|
|
1629
|
+
return /* @__PURE__ */ s(_l, { type: "button", color: z ? `${t}.500` : void 0, bg: z ? `${t}.500/15` : void 0, _hover: z ? {
|
|
1398
1630
|
bg: `${t}.500/15`
|
|
1399
|
-
} : void 0, "aria-label":
|
|
1631
|
+
} : void 0, "aria-label": v.label, "aria-pressed": z, onClick: () => c?.(v.value), children: /* @__PURE__ */ s(ce, { as: v.icon, boxSize: "icon-xs" }) }, v.value ?? "none");
|
|
1400
1632
|
}) })
|
|
1401
|
-
] }) : null, e[22] = t, e[23] = b, e[24] =
|
|
1402
|
-
let
|
|
1403
|
-
e[29] !==
|
|
1404
|
-
|
|
1405
|
-
O,
|
|
1406
|
-
z
|
|
1407
|
-
] }), e[29] = E, e[30] = O, e[31] = z, e[32] = A) : A = e[32];
|
|
1408
|
-
let _;
|
|
1409
|
-
e[33] !== A || e[34] !== R ? (_ = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Ke.Positioner, { children: /* @__PURE__ */ s(Ke.Content, { width: R, bg: "bg.elevated", children: A }) }) }), e[33] = A, e[34] = R, e[35] = _) : _ = e[35];
|
|
1410
|
-
let $;
|
|
1411
|
-
return e[36] !== _ || e[37] !== L ? ($ = /* @__PURE__ */ v(Ke.Root, { positioning: I, children: [
|
|
1633
|
+
] }) : null, e[22] = t, e[23] = b, e[24] = m, e[25] = c, e[26] = I, e[27] = g, e[28] = D) : D = e[28];
|
|
1634
|
+
let k;
|
|
1635
|
+
e[29] !== P || e[30] !== L || e[31] !== D ? (k = /* @__PURE__ */ C(X, { gap: "compact", p: "sm", children: [
|
|
1636
|
+
P,
|
|
1412
1637
|
L,
|
|
1413
|
-
|
|
1414
|
-
] }), e[
|
|
1415
|
-
|
|
1416
|
-
|
|
1638
|
+
D
|
|
1639
|
+
] }), e[29] = P, e[30] = L, e[31] = D, e[32] = k) : k = e[32];
|
|
1640
|
+
let N;
|
|
1641
|
+
e[33] !== k || e[34] !== A ? (N = /* @__PURE__ */ s(tt, { children: /* @__PURE__ */ s(Ke.Positioner, { children: /* @__PURE__ */ s(Ke.Content, { width: A, bg: "bg.elevated", children: k }) }) }), e[33] = k, e[34] = A, e[35] = N) : N = e[35];
|
|
1642
|
+
let _;
|
|
1643
|
+
return e[36] !== N || e[37] !== $ ? (_ = /* @__PURE__ */ C(Ke.Root, { positioning: R, children: [
|
|
1644
|
+
$,
|
|
1645
|
+
N
|
|
1646
|
+
] }), e[36] = N, e[37] = $, e[38] = _) : _ = e[38], _;
|
|
1647
|
+
}, zl = (o) => {
|
|
1648
|
+
const e = O(6);
|
|
1417
1649
|
let t, n;
|
|
1418
1650
|
e[0] !== o ? ({
|
|
1419
1651
|
children: t,
|
|
1420
1652
|
...n
|
|
1421
1653
|
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
1422
|
-
let
|
|
1423
|
-
return e[3] !== t || e[4] !== n ? (
|
|
1424
|
-
},
|
|
1425
|
-
const e =
|
|
1654
|
+
let l;
|
|
1655
|
+
return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(j, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
|
|
1656
|
+
}, Nl = (o) => {
|
|
1657
|
+
const e = O(6);
|
|
1426
1658
|
let t, n;
|
|
1427
1659
|
e[0] !== o ? ({
|
|
1428
1660
|
children: t,
|
|
1429
1661
|
...n
|
|
1430
1662
|
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
1431
|
-
let
|
|
1432
|
-
return e[3] !== t || e[4] !== n ? (
|
|
1433
|
-
},
|
|
1434
|
-
const e =
|
|
1663
|
+
let l;
|
|
1664
|
+
return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(j, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
|
|
1665
|
+
}, ss = (o) => {
|
|
1666
|
+
const e = O(30), {
|
|
1435
1667
|
icon: t,
|
|
1436
1668
|
name: n,
|
|
1437
|
-
description:
|
|
1438
|
-
id:
|
|
1439
|
-
version:
|
|
1669
|
+
description: l,
|
|
1670
|
+
id: r,
|
|
1671
|
+
version: i,
|
|
1440
1672
|
category: c,
|
|
1441
1673
|
active: a,
|
|
1442
|
-
actionLabel:
|
|
1443
|
-
} = o,
|
|
1444
|
-
let
|
|
1445
|
-
e[0] !== t ? (
|
|
1674
|
+
actionLabel: f
|
|
1675
|
+
} = o, d = a === void 0 ? !1 : a;
|
|
1676
|
+
let u;
|
|
1677
|
+
e[0] !== t ? (u = /* @__PURE__ */ s(ce, { boxSize: "1em", fontSize: "2xl", flexShrink: "0", color: "fg.muted", children: t }), e[0] = t, e[1] = u) : u = e[1];
|
|
1446
1678
|
let h;
|
|
1447
|
-
e[2] !== n ? (h = /* @__PURE__ */ s(
|
|
1448
|
-
let m;
|
|
1449
|
-
e[4] !== i ? (m = /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: i }), e[4] = i, e[5] = m) : m = e[5];
|
|
1679
|
+
e[2] !== n ? (h = /* @__PURE__ */ s(M, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
|
|
1450
1680
|
let p;
|
|
1451
|
-
e[
|
|
1681
|
+
e[4] !== r ? (p = /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: r }), e[4] = r, e[5] = p) : p = e[5];
|
|
1682
|
+
let m;
|
|
1683
|
+
e[6] !== i ? (m = i && /* @__PURE__ */ C(Te, { size: "sm", variant: "outline", children: [
|
|
1452
1684
|
"v",
|
|
1453
|
-
|
|
1454
|
-
] }), e[6] =
|
|
1685
|
+
i
|
|
1686
|
+
] }), e[6] = i, e[7] = m) : m = e[7];
|
|
1455
1687
|
let g;
|
|
1456
1688
|
e[8] !== c ? (g = c && /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: c }), e[8] = c, e[9] = g) : g = e[9];
|
|
1457
1689
|
let S;
|
|
1458
|
-
e[10] !== h || e[11] !==
|
|
1690
|
+
e[10] !== h || e[11] !== p || e[12] !== m || e[13] !== g ? (S = /* @__PURE__ */ C(le, { gap: "2", flexWrap: "wrap", children: [
|
|
1459
1691
|
h,
|
|
1460
|
-
m,
|
|
1461
1692
|
p,
|
|
1693
|
+
m,
|
|
1462
1694
|
g
|
|
1463
|
-
] }), e[10] = h, e[11] =
|
|
1695
|
+
] }), e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = S) : S = e[14];
|
|
1464
1696
|
let b;
|
|
1465
|
-
e[15] !==
|
|
1466
|
-
let
|
|
1467
|
-
e[17] !== S || e[18] !== b ? (
|
|
1697
|
+
e[15] !== l ? (b = /* @__PURE__ */ s(M, { color: "fg.muted", children: l }), e[15] = l, e[16] = b) : b = e[16];
|
|
1698
|
+
let T;
|
|
1699
|
+
e[17] !== S || e[18] !== b ? (T = /* @__PURE__ */ s(j, { flex: "1", minW: "0", children: /* @__PURE__ */ C(X, { gap: "1", children: [
|
|
1468
1700
|
S,
|
|
1469
1701
|
b
|
|
1470
|
-
] }) }), e[17] = S, e[18] = b, e[19] =
|
|
1471
|
-
let
|
|
1472
|
-
e[20] !==
|
|
1473
|
-
const
|
|
1474
|
-
let
|
|
1475
|
-
e[22] !==
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
] }), e[22] =
|
|
1479
|
-
let
|
|
1480
|
-
return e[26] !==
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
] }) }) }), e[26] =
|
|
1485
|
-
},
|
|
1702
|
+
] }) }), e[17] = S, e[18] = b, e[19] = T) : T = e[19];
|
|
1703
|
+
let I;
|
|
1704
|
+
e[20] !== d ? (I = d && /* @__PURE__ */ s(ce, { color: "fg.success", children: /* @__PURE__ */ s(nt, {}) }), e[20] = d, e[21] = I) : I = e[21];
|
|
1705
|
+
const R = f ?? (d ? "Active" : "Connect");
|
|
1706
|
+
let x;
|
|
1707
|
+
e[22] !== d || e[23] !== R || e[24] !== I ? (x = /* @__PURE__ */ C(de, { type: "button", disabled: d, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
|
|
1708
|
+
I,
|
|
1709
|
+
R
|
|
1710
|
+
] }), e[22] = d, e[23] = R, e[24] = I, e[25] = x) : x = e[25];
|
|
1711
|
+
let $;
|
|
1712
|
+
return e[26] !== u || e[27] !== x || e[28] !== T ? ($ = /* @__PURE__ */ s(zl, { children: /* @__PURE__ */ s(Nl, { children: /* @__PURE__ */ C(le, { gap: "4", alignItems: "flex-start", children: [
|
|
1713
|
+
u,
|
|
1714
|
+
T,
|
|
1715
|
+
x
|
|
1716
|
+
] }) }) }), e[26] = u, e[27] = x, e[28] = T, e[29] = $) : $ = e[29], $;
|
|
1717
|
+
}, Bl = Gt({
|
|
1486
1718
|
className: "ps-segmented-control",
|
|
1487
1719
|
slots: ["root", "item"],
|
|
1488
1720
|
base: {
|
|
@@ -1551,51 +1783,51 @@ const tr = (o) => {
|
|
|
1551
1783
|
size: "sm"
|
|
1552
1784
|
}
|
|
1553
1785
|
}), {
|
|
1554
|
-
withProvider:
|
|
1555
|
-
withContext:
|
|
1556
|
-
} =
|
|
1557
|
-
recipe:
|
|
1558
|
-
}),
|
|
1559
|
-
const e =
|
|
1560
|
-
let t, n, r, i,
|
|
1786
|
+
withProvider: Wl,
|
|
1787
|
+
withContext: Ml
|
|
1788
|
+
} = et({
|
|
1789
|
+
recipe: Bl
|
|
1790
|
+
}), Fl = Wl("div", "root"), Hl = Ml("button", "item"), as = (o) => {
|
|
1791
|
+
const e = O(20);
|
|
1792
|
+
let t, n, l, r, i, c;
|
|
1561
1793
|
e[0] !== o ? ({
|
|
1562
|
-
options:
|
|
1794
|
+
options: r,
|
|
1563
1795
|
value: c,
|
|
1564
|
-
onValueChange:
|
|
1796
|
+
onValueChange: l,
|
|
1565
1797
|
disabled: n,
|
|
1566
1798
|
"aria-label": t,
|
|
1567
|
-
...
|
|
1568
|
-
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] =
|
|
1799
|
+
...i
|
|
1800
|
+
} = o, e[0] = o, e[1] = t, e[2] = n, e[3] = l, e[4] = r, e[5] = i, e[6] = c) : (t = e[1], n = e[2], l = e[3], r = e[4], i = e[5], c = e[6]);
|
|
1569
1801
|
let a;
|
|
1570
|
-
if (e[7] !== n || e[8] !==
|
|
1571
|
-
let
|
|
1572
|
-
e[12] !== n || e[13] !==
|
|
1573
|
-
const h =
|
|
1574
|
-
return /* @__PURE__ */ s(
|
|
1575
|
-
}, e[12] = n, e[13] =
|
|
1802
|
+
if (e[7] !== n || e[8] !== l || e[9] !== r || e[10] !== c) {
|
|
1803
|
+
let d;
|
|
1804
|
+
e[12] !== n || e[13] !== l || e[14] !== c ? (d = (u) => {
|
|
1805
|
+
const h = u.value === c;
|
|
1806
|
+
return /* @__PURE__ */ s(Hl, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => l(u.value), children: u.label }, u.value);
|
|
1807
|
+
}, e[12] = n, e[13] = l, e[14] = c, e[15] = d) : d = e[15], a = r.map(d), e[7] = n, e[8] = l, e[9] = r, e[10] = c, e[11] = a;
|
|
1576
1808
|
} else
|
|
1577
1809
|
a = e[11];
|
|
1578
|
-
let
|
|
1579
|
-
return e[16] !== t || e[17] !==
|
|
1580
|
-
},
|
|
1810
|
+
let f;
|
|
1811
|
+
return e[16] !== t || e[17] !== i || e[18] !== a ? (f = /* @__PURE__ */ s(Fl, { role: "group", "aria-label": t, ...i, children: a }), e[16] = t, e[17] = i, e[18] = a, e[19] = f) : f = e[19], f;
|
|
1812
|
+
}, Vl = kn({
|
|
1581
1813
|
placement: "top",
|
|
1582
1814
|
pauseOnPageIdle: !0,
|
|
1583
1815
|
duration: 1e4
|
|
1584
|
-
}),
|
|
1585
|
-
const o =
|
|
1816
|
+
}), cs = () => {
|
|
1817
|
+
const o = O(1);
|
|
1586
1818
|
let e;
|
|
1587
|
-
return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(
|
|
1819
|
+
return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(tt, { children: /* @__PURE__ */ s(Rn, { toaster: Vl, insetInline: {
|
|
1588
1820
|
mdDown: "4"
|
|
1589
|
-
}, children:
|
|
1821
|
+
}, children: Gl }) }), o[0] = e) : e = o[0], e;
|
|
1590
1822
|
};
|
|
1591
|
-
function
|
|
1592
|
-
return /* @__PURE__ */
|
|
1823
|
+
function Gl(o) {
|
|
1824
|
+
return /* @__PURE__ */ C(Ne.Root, { width: {
|
|
1593
1825
|
md: "sm"
|
|
1594
1826
|
}, alignItems: "start", borderRadius: "xs", gap: "xs", px: "sm", py: "xs", minH: "auto", children: [
|
|
1595
|
-
o.type === "loading" ? /* @__PURE__ */ s(
|
|
1596
|
-
/* @__PURE__ */
|
|
1827
|
+
o.type === "loading" ? /* @__PURE__ */ s(pt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Ne.Indicator, {}),
|
|
1828
|
+
/* @__PURE__ */ C(X, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
|
|
1597
1829
|
o.title && /* @__PURE__ */ s(Ne.Title, { textStyle: "label/S/medium", children: o.title }),
|
|
1598
|
-
o.description && /* @__PURE__ */ s(
|
|
1830
|
+
o.description && /* @__PURE__ */ s(ot, { maxHeight: "12rem", contentProps: {
|
|
1599
1831
|
paddingEnd: "1"
|
|
1600
1832
|
}, children: /* @__PURE__ */ s(Ne.Description, { textStyle: "paragraph/S/regular", whiteSpace: "pre-wrap", wordBreak: "break-word", children: o.description }) })
|
|
1601
1833
|
] }),
|
|
@@ -1603,159 +1835,159 @@ function gr(o) {
|
|
|
1603
1835
|
/* @__PURE__ */ s(Ne.CloseTrigger, {})
|
|
1604
1836
|
] });
|
|
1605
1837
|
}
|
|
1606
|
-
const
|
|
1607
|
-
const e =
|
|
1838
|
+
const ds = (o) => {
|
|
1839
|
+
const e = O(6);
|
|
1608
1840
|
let t, n;
|
|
1609
1841
|
e[0] !== o ? ({
|
|
1610
1842
|
children: t,
|
|
1611
1843
|
...n
|
|
1612
1844
|
} = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
|
|
1613
|
-
let
|
|
1614
|
-
return e[3] !== t || e[4] !== n ? (
|
|
1615
|
-
},
|
|
1845
|
+
let l;
|
|
1846
|
+
return e[3] !== t || e[4] !== n ? (l = /* @__PURE__ */ s(X, { gap: "sm", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = l) : l = e[5], l;
|
|
1847
|
+
}, kt = {
|
|
1616
1848
|
open: !0,
|
|
1617
1849
|
expandedSections: [],
|
|
1618
1850
|
expandedNodes: [],
|
|
1619
1851
|
width: null
|
|
1620
|
-
},
|
|
1852
|
+
}, jl = "pstdio/ui/sidenav", Ul = (o) => `${jl}/${o}`, Rt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], $t = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), Ql = (o) => ({
|
|
1621
1853
|
open: o.open,
|
|
1622
1854
|
expandedSections: o.expandedSections,
|
|
1623
1855
|
expandedNodes: o.expandedNodes,
|
|
1624
1856
|
width: o.width
|
|
1625
|
-
}),
|
|
1857
|
+
}), Xl = (o) => {
|
|
1626
1858
|
const {
|
|
1627
1859
|
storageKey: e,
|
|
1628
1860
|
initialState: t
|
|
1629
1861
|
} = o, n = {
|
|
1630
|
-
...
|
|
1862
|
+
...kt,
|
|
1631
1863
|
...t
|
|
1632
1864
|
};
|
|
1633
|
-
return
|
|
1865
|
+
return at()(rt((l) => ({
|
|
1634
1866
|
...n,
|
|
1635
|
-
openSidenav: () =>
|
|
1636
|
-
...
|
|
1867
|
+
openSidenav: () => l((r) => ({
|
|
1868
|
+
...r,
|
|
1637
1869
|
open: !0
|
|
1638
1870
|
})),
|
|
1639
|
-
closeSidenav: () =>
|
|
1640
|
-
...
|
|
1871
|
+
closeSidenav: () => l((r) => ({
|
|
1872
|
+
...r,
|
|
1641
1873
|
open: !1
|
|
1642
1874
|
})),
|
|
1643
|
-
toggleSidenav: () =>
|
|
1644
|
-
...
|
|
1645
|
-
open: !
|
|
1875
|
+
toggleSidenav: () => l((r) => ({
|
|
1876
|
+
...r,
|
|
1877
|
+
open: !r.open
|
|
1646
1878
|
})),
|
|
1647
|
-
toggleSection: (
|
|
1648
|
-
...
|
|
1649
|
-
expandedSections:
|
|
1879
|
+
toggleSection: (r) => l((i) => ({
|
|
1880
|
+
...i,
|
|
1881
|
+
expandedSections: Rt(i.expandedSections, r)
|
|
1650
1882
|
})),
|
|
1651
|
-
toggleNode: (
|
|
1652
|
-
...
|
|
1653
|
-
expandedNodes:
|
|
1883
|
+
toggleNode: (r) => l((i) => ({
|
|
1884
|
+
...i,
|
|
1885
|
+
expandedNodes: Rt(i.expandedNodes, r)
|
|
1654
1886
|
})),
|
|
1655
|
-
setSectionExpanded: (
|
|
1887
|
+
setSectionExpanded: (r, i) => l((c) => ({
|
|
1656
1888
|
...c,
|
|
1657
|
-
expandedSections:
|
|
1889
|
+
expandedSections: $t(c.expandedSections, r, i)
|
|
1658
1890
|
})),
|
|
1659
|
-
setNodeExpanded: (
|
|
1891
|
+
setNodeExpanded: (r, i) => l((c) => ({
|
|
1660
1892
|
...c,
|
|
1661
|
-
expandedNodes:
|
|
1893
|
+
expandedNodes: $t(c.expandedNodes, r, i)
|
|
1662
1894
|
})),
|
|
1663
|
-
setWidth: (
|
|
1664
|
-
...
|
|
1665
|
-
width:
|
|
1895
|
+
setWidth: (r) => l((i) => ({
|
|
1896
|
+
...i,
|
|
1897
|
+
width: r
|
|
1666
1898
|
})),
|
|
1667
|
-
reset: () =>
|
|
1899
|
+
reset: () => l(kt)
|
|
1668
1900
|
}), {
|
|
1669
|
-
name:
|
|
1670
|
-
storage:
|
|
1671
|
-
partialize:
|
|
1901
|
+
name: Ul(e),
|
|
1902
|
+
storage: st(Ve),
|
|
1903
|
+
partialize: Ql
|
|
1672
1904
|
}));
|
|
1673
|
-
},
|
|
1674
|
-
const t =
|
|
1905
|
+
}, Lt = /* @__PURE__ */ new Map(), ql = (o, e) => {
|
|
1906
|
+
const t = Lt.get(o);
|
|
1675
1907
|
if (t)
|
|
1676
1908
|
return t;
|
|
1677
|
-
const n =
|
|
1909
|
+
const n = Xl({
|
|
1678
1910
|
storageKey: o,
|
|
1679
1911
|
initialState: e
|
|
1680
1912
|
});
|
|
1681
|
-
return
|
|
1913
|
+
return Lt.set(o, n), n;
|
|
1682
1914
|
}, Be = (o, e, t) => {
|
|
1683
|
-
const n =
|
|
1684
|
-
let
|
|
1685
|
-
return n[0] !== t || n[1] !== o ? (
|
|
1686
|
-
},
|
|
1687
|
-
const e =
|
|
1915
|
+
const n = O(3);
|
|
1916
|
+
let l;
|
|
1917
|
+
return n[0] !== t || n[1] !== o ? (l = ql(o, t), n[0] = t, n[1] = o, n[2] = l) : l = n[2], it(l, e);
|
|
1918
|
+
}, Kl = (o) => {
|
|
1919
|
+
const e = O(2), {
|
|
1688
1920
|
children: t
|
|
1689
1921
|
} = o;
|
|
1690
1922
|
if (!t)
|
|
1691
1923
|
return null;
|
|
1692
1924
|
let n;
|
|
1693
|
-
return e[0] !== t ? (n = /* @__PURE__ */ s(
|
|
1694
|
-
},
|
|
1695
|
-
const e =
|
|
1925
|
+
return e[0] !== t ? (n = /* @__PURE__ */ s(j, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
|
|
1926
|
+
}, Yl = (o) => {
|
|
1927
|
+
const e = O(2), {
|
|
1696
1928
|
children: t
|
|
1697
1929
|
} = o;
|
|
1698
1930
|
let n;
|
|
1699
|
-
return e[0] !== t ? (n = /* @__PURE__ */ s(
|
|
1700
|
-
},
|
|
1931
|
+
return e[0] !== t ? (n = /* @__PURE__ */ s(le, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: il, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(le, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
|
|
1932
|
+
}, Zl = 240, Jl = 200, ei = 480, ti = (o, e, t) => Math.min(Math.max(o, e), t), ni = (o, e = Zl) => {
|
|
1701
1933
|
if (typeof o == "number") return o;
|
|
1702
1934
|
if (typeof o == "string") {
|
|
1703
1935
|
const t = parseInt(o, 10);
|
|
1704
1936
|
if (!Number.isNaN(t)) return t;
|
|
1705
1937
|
}
|
|
1706
1938
|
return e;
|
|
1707
|
-
},
|
|
1708
|
-
const e =
|
|
1939
|
+
}, fs = (o) => {
|
|
1940
|
+
const e = O(43), {
|
|
1709
1941
|
storageKey: t,
|
|
1710
1942
|
sections: n,
|
|
1711
|
-
activeNodeId:
|
|
1712
|
-
contextActions:
|
|
1713
|
-
header:
|
|
1943
|
+
activeNodeId: l,
|
|
1944
|
+
contextActions: r,
|
|
1945
|
+
header: i,
|
|
1714
1946
|
footer: c,
|
|
1715
1947
|
width: a,
|
|
1716
|
-
closable:
|
|
1717
|
-
emptyLabel:
|
|
1718
|
-
defaultExpandedSections:
|
|
1948
|
+
closable: f,
|
|
1949
|
+
emptyLabel: d,
|
|
1950
|
+
defaultExpandedSections: u,
|
|
1719
1951
|
linkComponent: h,
|
|
1720
|
-
onNavigate:
|
|
1721
|
-
onOpenChange:
|
|
1952
|
+
onNavigate: p,
|
|
1953
|
+
onOpenChange: m,
|
|
1722
1954
|
resizable: g,
|
|
1723
1955
|
defaultWidth: S,
|
|
1724
1956
|
minWidth: b,
|
|
1725
|
-
maxWidth:
|
|
1726
|
-
virtualize:
|
|
1957
|
+
maxWidth: T,
|
|
1958
|
+
virtualize: I
|
|
1727
1959
|
} = o;
|
|
1728
|
-
let
|
|
1729
|
-
e[0] !==
|
|
1730
|
-
const
|
|
1731
|
-
let
|
|
1732
|
-
e[2] !== S || e[3] !== a ? (
|
|
1733
|
-
const
|
|
1734
|
-
let
|
|
1735
|
-
e[5] !==
|
|
1736
|
-
expandedSections:
|
|
1737
|
-
} : {}, e[5] =
|
|
1738
|
-
let
|
|
1739
|
-
e[7] !==
|
|
1740
|
-
|
|
1741
|
-
width:
|
|
1742
|
-
}, e[7] =
|
|
1743
|
-
const
|
|
1744
|
-
let
|
|
1745
|
-
e[10] !==
|
|
1746
|
-
|
|
1747
|
-
},
|
|
1748
|
-
const
|
|
1960
|
+
let R;
|
|
1961
|
+
e[0] !== r ? (R = r === void 0 ? [] : r, e[0] = r, e[1] = R) : R = e[1];
|
|
1962
|
+
const x = R, $ = f === void 0 ? !0 : f, A = d === void 0 ? "No items available." : d, P = g === void 0 ? !0 : g, w = b === void 0 ? Jl : b, y = T === void 0 ? ei : T, L = I === void 0 ? !1 : I, D = Me(null);
|
|
1963
|
+
let k;
|
|
1964
|
+
e[2] !== S || e[3] !== a ? (k = ni(a, S), e[2] = S, e[3] = a, e[4] = k) : k = e[4];
|
|
1965
|
+
const N = k;
|
|
1966
|
+
let _;
|
|
1967
|
+
e[5] !== u ? (_ = u ? {
|
|
1968
|
+
expandedSections: u
|
|
1969
|
+
} : {}, e[5] = u, e[6] = _) : _ = e[6];
|
|
1970
|
+
let v;
|
|
1971
|
+
e[7] !== N || e[8] !== _ ? (v = {
|
|
1972
|
+
..._,
|
|
1973
|
+
width: N
|
|
1974
|
+
}, e[7] = N, e[8] = _, e[9] = v) : v = e[9];
|
|
1975
|
+
const z = v, E = Be(t, oi, z), H = Be(t, li, z), W = Be(t, ii, z), F = Be(t, ri, z), B = Be(t, si, z), q = Be(t, ai, z);
|
|
1976
|
+
let U, G;
|
|
1977
|
+
e[10] !== m || e[11] !== E ? (U = () => {
|
|
1978
|
+
m?.(E);
|
|
1979
|
+
}, G = [m, E], e[10] = m, e[11] = E, e[12] = U, e[13] = G) : (U = e[12], G = e[13]), me(U, G);
|
|
1980
|
+
const Q = H ?? N;
|
|
1749
1981
|
let K;
|
|
1750
|
-
e[14] !==
|
|
1751
|
-
const
|
|
1752
|
-
if (!
|
|
1982
|
+
e[14] !== y || e[15] !== w || e[16] !== Q ? (K = ti(Q, w, y), e[14] = y, e[15] = w, e[16] = Q, e[17] = K) : K = e[17];
|
|
1983
|
+
const ae = K;
|
|
1984
|
+
if (!E && $)
|
|
1753
1985
|
return null;
|
|
1754
|
-
const J =
|
|
1986
|
+
const J = P ? `${ae}px` : a ?? `${N}px`;
|
|
1755
1987
|
let ee;
|
|
1756
|
-
e[18] !==
|
|
1757
|
-
let
|
|
1758
|
-
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1988
|
+
e[18] !== i ? (ee = /* @__PURE__ */ s(Yl, { children: i }), e[18] = i, e[19] = ee) : ee = e[19];
|
|
1989
|
+
let ie, te;
|
|
1990
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = {
|
|
1759
1991
|
display: "block",
|
|
1760
1992
|
style: {
|
|
1761
1993
|
overflowX: "hidden"
|
|
@@ -1768,455 +2000,534 @@ const $i = (o) => {
|
|
|
1768
2000
|
display: "flex",
|
|
1769
2001
|
flexDirection: "column"
|
|
1770
2002
|
}
|
|
1771
|
-
}, e[20] =
|
|
1772
|
-
let
|
|
1773
|
-
e[22] !==
|
|
2003
|
+
}, e[20] = ie, e[21] = te) : (ie = e[20], te = e[21]);
|
|
2004
|
+
let re;
|
|
2005
|
+
e[22] !== l || e[23] !== A || e[24] !== F || e[25] !== W || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== q || e[30] !== B || e[31] !== L ? (re = /* @__PURE__ */ s(ot, { flex: "1", mt: "lg", viewportRef: D, viewportProps: ie, contentProps: te, children: /* @__PURE__ */ s(j, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: A }) : /* @__PURE__ */ s(so, { sections: n, expandedSectionIds: W, expandedNodeIds: F, activeNodeId: l, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: B, onToggleNode: q, virtualize: L, scrollRef: D }) }) }), e[22] = l, e[23] = A, e[24] = F, e[25] = W, e[26] = h, e[27] = p, e[28] = n, e[29] = q, e[30] = B, e[31] = L, e[32] = re) : re = e[32];
|
|
1774
2006
|
let ne;
|
|
1775
|
-
e[33] !== c ? (ne = /* @__PURE__ */ s(
|
|
2007
|
+
e[33] !== c ? (ne = /* @__PURE__ */ s(Kl, { children: c }), e[33] = c, e[34] = ne) : ne = e[34];
|
|
1776
2008
|
let Y;
|
|
1777
|
-
e[35] !== ee || e[36] !==
|
|
2009
|
+
e[35] !== ee || e[36] !== re || e[37] !== ne || e[38] !== J ? (Y = /* @__PURE__ */ C(fe, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: J, minW: J, maxW: J, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
|
|
1778
2010
|
ee,
|
|
1779
|
-
|
|
2011
|
+
re,
|
|
1780
2012
|
ne
|
|
1781
|
-
] }), e[35] = ee, e[36] =
|
|
1782
|
-
const
|
|
2013
|
+
] }), e[35] = ee, e[36] = re, e[37] = ne, e[38] = J, e[39] = Y) : Y = e[39];
|
|
2014
|
+
const se = Y;
|
|
1783
2015
|
let oe;
|
|
1784
|
-
return e[40] !==
|
|
2016
|
+
return e[40] !== se || e[41] !== x ? (oe = /* @__PURE__ */ s(tn, { actions: x, closeOnSelect: !1, children: se }), e[40] = se, e[41] = x, e[42] = oe) : oe = e[42], oe;
|
|
1785
2017
|
};
|
|
1786
|
-
function
|
|
2018
|
+
function oi(o) {
|
|
1787
2019
|
return o.open;
|
|
1788
2020
|
}
|
|
1789
|
-
function
|
|
2021
|
+
function li(o) {
|
|
1790
2022
|
return o.width;
|
|
1791
2023
|
}
|
|
1792
|
-
function
|
|
2024
|
+
function ii(o) {
|
|
1793
2025
|
return o.expandedSections;
|
|
1794
2026
|
}
|
|
1795
|
-
function
|
|
2027
|
+
function ri(o) {
|
|
1796
2028
|
return o.expandedNodes;
|
|
1797
2029
|
}
|
|
1798
|
-
function
|
|
2030
|
+
function si(o) {
|
|
1799
2031
|
return o.toggleSection;
|
|
1800
2032
|
}
|
|
1801
|
-
function
|
|
2033
|
+
function ai(o) {
|
|
1802
2034
|
return o.toggleNode;
|
|
1803
2035
|
}
|
|
1804
|
-
const
|
|
2036
|
+
const Et = {
|
|
1805
2037
|
tabOverrides: {}
|
|
1806
|
-
},
|
|
2038
|
+
}, ci = "pstdio/ui/tab-visibility", di = (o) => `${ci}/${o}`, fi = (o, e) => o ?? (e ? "hidden" : "shown"), ht = (o, e, t) => {
|
|
1807
2039
|
if (t === void 0) {
|
|
1808
2040
|
if (!(e in o)) return o;
|
|
1809
2041
|
const {
|
|
1810
2042
|
[e]: n,
|
|
1811
|
-
...
|
|
2043
|
+
...l
|
|
1812
2044
|
} = o;
|
|
1813
|
-
return
|
|
2045
|
+
return l;
|
|
1814
2046
|
}
|
|
1815
2047
|
return o[e] === t ? o : {
|
|
1816
2048
|
...o,
|
|
1817
2049
|
[e]: t
|
|
1818
2050
|
};
|
|
1819
|
-
},
|
|
1820
|
-
const n =
|
|
1821
|
-
return
|
|
1822
|
-
},
|
|
2051
|
+
}, ui = (o, e, t) => {
|
|
2052
|
+
const n = fi(o[e], t);
|
|
2053
|
+
return ht(o, e, n === "hidden" ? "shown" : "hidden");
|
|
2054
|
+
}, hi = (o) => ({
|
|
1823
2055
|
tabOverrides: o.tabOverrides
|
|
1824
|
-
}),
|
|
1825
|
-
...
|
|
1826
|
-
setTab: (t, n) => e((
|
|
1827
|
-
...
|
|
1828
|
-
tabOverrides:
|
|
2056
|
+
}), mi = (o) => at()(rt((e) => ({
|
|
2057
|
+
...Et,
|
|
2058
|
+
setTab: (t, n) => e((l) => ({
|
|
2059
|
+
...l,
|
|
2060
|
+
tabOverrides: ht(l.tabOverrides, t, n)
|
|
1829
2061
|
})),
|
|
1830
|
-
toggleTab: (t, n) => e((
|
|
1831
|
-
...
|
|
1832
|
-
tabOverrides:
|
|
2062
|
+
toggleTab: (t, n) => e((l) => ({
|
|
2063
|
+
...l,
|
|
2064
|
+
tabOverrides: ui(l.tabOverrides, t, n)
|
|
1833
2065
|
})),
|
|
1834
2066
|
clearTab: (t) => e((n) => ({
|
|
1835
2067
|
...n,
|
|
1836
|
-
tabOverrides:
|
|
2068
|
+
tabOverrides: ht(n.tabOverrides, t, void 0)
|
|
1837
2069
|
})),
|
|
1838
|
-
reset: () => e(
|
|
2070
|
+
reset: () => e(Et)
|
|
1839
2071
|
}), {
|
|
1840
|
-
name:
|
|
1841
|
-
storage:
|
|
1842
|
-
partialize:
|
|
1843
|
-
})),
|
|
1844
|
-
const e =
|
|
2072
|
+
name: di(o.storageKey),
|
|
2073
|
+
storage: st(Ve),
|
|
2074
|
+
partialize: hi
|
|
2075
|
+
})), Dt = /* @__PURE__ */ new Map(), pi = (o) => {
|
|
2076
|
+
const e = Dt.get(o);
|
|
1845
2077
|
if (e) return e;
|
|
1846
|
-
const t =
|
|
2078
|
+
const t = mi({
|
|
1847
2079
|
storageKey: o
|
|
1848
2080
|
});
|
|
1849
|
-
return
|
|
1850
|
-
},
|
|
1851
|
-
const t =
|
|
2081
|
+
return Dt.set(o, t), t;
|
|
2082
|
+
}, us = (o, e) => {
|
|
2083
|
+
const t = O(2);
|
|
1852
2084
|
let n;
|
|
1853
|
-
return t[0] !== o ? (n =
|
|
1854
|
-
},
|
|
2085
|
+
return t[0] !== o ? (n = pi(o), t[0] = o, t[1] = n) : n = t[1], it(n, e);
|
|
2086
|
+
}, gi = (o, e) => typeof o == "string" ? o : e, Ge = (o, e) => o ?? (e ? "hidden" : "shown"), _t = (o) => o.canHide === !0 || o.hiddenByDefault === !0, bi = (o, e) => Ge(e[o.id], o.hiddenByDefault) === "shown", gt = (o, e) => {
|
|
1855
2087
|
let t = !1;
|
|
1856
2088
|
const n = [];
|
|
1857
|
-
for (const
|
|
1858
|
-
if (!
|
|
2089
|
+
for (const l of o) {
|
|
2090
|
+
if (!bi(l, e)) {
|
|
1859
2091
|
t = !0;
|
|
1860
2092
|
continue;
|
|
1861
2093
|
}
|
|
1862
|
-
if (
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
2094
|
+
if (l.children && l.children.length > 0) {
|
|
2095
|
+
const r = gt(l.children, e);
|
|
2096
|
+
if (r !== l.children) {
|
|
1865
2097
|
t = !0, n.push({
|
|
1866
|
-
...
|
|
1867
|
-
children:
|
|
2098
|
+
...l,
|
|
2099
|
+
children: r
|
|
1868
2100
|
});
|
|
1869
2101
|
continue;
|
|
1870
2102
|
}
|
|
1871
2103
|
}
|
|
1872
|
-
n.push(
|
|
2104
|
+
n.push(l);
|
|
1873
2105
|
}
|
|
1874
2106
|
return t ? n : o;
|
|
1875
|
-
},
|
|
2107
|
+
}, hs = (o, e) => gt(o, e), ms = (o, e, t) => {
|
|
1876
2108
|
let n = !1;
|
|
1877
|
-
const
|
|
1878
|
-
for (const
|
|
1879
|
-
if (Ge(e[
|
|
2109
|
+
const l = [];
|
|
2110
|
+
for (const r of o) {
|
|
2111
|
+
if (Ge(e[r.id], r.hiddenByDefault) === "hidden") {
|
|
1880
2112
|
n = !0;
|
|
1881
2113
|
continue;
|
|
1882
2114
|
}
|
|
1883
|
-
const
|
|
1884
|
-
if (
|
|
2115
|
+
const i = gt(r.nodes, t);
|
|
2116
|
+
if (i.length === 0 && !r.emptyState) {
|
|
1885
2117
|
n = !0;
|
|
1886
2118
|
continue;
|
|
1887
2119
|
}
|
|
1888
|
-
if (
|
|
1889
|
-
n = !0,
|
|
1890
|
-
...
|
|
1891
|
-
nodes:
|
|
2120
|
+
if (i !== r.nodes) {
|
|
2121
|
+
n = !0, l.push({
|
|
2122
|
+
...r,
|
|
2123
|
+
nodes: i
|
|
1892
2124
|
});
|
|
1893
2125
|
continue;
|
|
1894
2126
|
}
|
|
1895
|
-
|
|
2127
|
+
l.push(r);
|
|
1896
2128
|
}
|
|
1897
|
-
return n ?
|
|
1898
|
-
},
|
|
1899
|
-
const
|
|
2129
|
+
return n ? l : o;
|
|
2130
|
+
}, vn = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Si = (o, e, t, n) => {
|
|
2131
|
+
const l = o.hiddenByDefault === !0, r = Ge(e[o.id], l);
|
|
1900
2132
|
return {
|
|
1901
2133
|
key: `section:${o.id}`,
|
|
1902
2134
|
label: o.label ?? o.id,
|
|
1903
|
-
onClick: () => t.onToggleSection(o.id,
|
|
1904
|
-
endContent:
|
|
2135
|
+
onClick: () => t.onToggleSection(o.id, l),
|
|
2136
|
+
endContent: vn(r, n)
|
|
1905
2137
|
};
|
|
1906
|
-
},
|
|
1907
|
-
const
|
|
2138
|
+
}, xi = (o, e, t, n) => {
|
|
2139
|
+
const l = o.hiddenByDefault === !0, r = Ge(e[o.id], l);
|
|
1908
2140
|
return {
|
|
1909
2141
|
key: `node:${o.id}`,
|
|
1910
|
-
label:
|
|
2142
|
+
label: gi(o.label, o.id),
|
|
1911
2143
|
icon: o.icon,
|
|
1912
|
-
onClick: () => t.onToggleNode(o.id,
|
|
1913
|
-
endContent:
|
|
2144
|
+
onClick: () => t.onToggleNode(o.id, l),
|
|
2145
|
+
endContent: vn(r, n)
|
|
1914
2146
|
};
|
|
1915
|
-
},
|
|
1916
|
-
const
|
|
1917
|
-
a.length !== 0 && (
|
|
2147
|
+
}, ps = (o, e, t, n, l) => {
|
|
2148
|
+
const r = [], i = (a) => {
|
|
2149
|
+
a.length !== 0 && (r.length > 0 && (a[0] = {
|
|
1918
2150
|
...a[0],
|
|
1919
2151
|
separatorBefore: !0
|
|
1920
|
-
}),
|
|
2152
|
+
}), r.push(...a));
|
|
1921
2153
|
}, c = (a) => {
|
|
1922
|
-
const
|
|
1923
|
-
for (const
|
|
1924
|
-
|
|
1925
|
-
for (const
|
|
1926
|
-
|
|
2154
|
+
const f = [];
|
|
2155
|
+
for (const d of a) {
|
|
2156
|
+
_t(d) && f.push(Si(d, e, n, l));
|
|
2157
|
+
for (const u of d.nodes)
|
|
2158
|
+
_t(u) && f.push(xi(u, t, n, l));
|
|
1927
2159
|
}
|
|
1928
|
-
return
|
|
2160
|
+
return f;
|
|
1929
2161
|
};
|
|
1930
|
-
return
|
|
2162
|
+
return i(c(o.headerSections ?? [])), i(c(o.sections)), i(c(o.footerSections ?? [])), r.length === 0 || r.push({
|
|
1931
2163
|
key: "__reset-visibility",
|
|
1932
2164
|
label: "Reset to default",
|
|
1933
|
-
icon:
|
|
2165
|
+
icon: l.resetIcon,
|
|
1934
2166
|
separatorBefore: !0,
|
|
1935
2167
|
onClick: n.onResetAll
|
|
1936
|
-
}),
|
|
1937
|
-
},
|
|
2168
|
+
}), r;
|
|
2169
|
+
}, gs = (o, e, t) => {
|
|
1938
2170
|
let n = !1;
|
|
1939
|
-
const
|
|
1940
|
-
for (const
|
|
1941
|
-
if (
|
|
1942
|
-
|
|
2171
|
+
const l = [];
|
|
2172
|
+
for (const r of o) {
|
|
2173
|
+
if (r.closable === !0) {
|
|
2174
|
+
l.push(r);
|
|
1943
2175
|
continue;
|
|
1944
2176
|
}
|
|
1945
|
-
if (
|
|
2177
|
+
if (r.pinned === !0 && r.hiddenByDefault === !0) {
|
|
1946
2178
|
n = !0;
|
|
1947
2179
|
continue;
|
|
1948
2180
|
}
|
|
1949
|
-
if (Ge(e[t(
|
|
2181
|
+
if (Ge(e[t(r)], r.hiddenByDefault) === "hidden") {
|
|
1950
2182
|
n = !0;
|
|
1951
2183
|
continue;
|
|
1952
2184
|
}
|
|
1953
|
-
|
|
2185
|
+
l.push(r);
|
|
1954
2186
|
}
|
|
1955
|
-
return n ?
|
|
1956
|
-
},
|
|
1957
|
-
const
|
|
2187
|
+
return n ? l : o;
|
|
2188
|
+
}, bs = (o, e, t, n, l, r) => {
|
|
2189
|
+
const i = [];
|
|
1958
2190
|
let c = 0;
|
|
1959
2191
|
for (const a of o) {
|
|
1960
2192
|
if (a.pinned === !0 || a.closable === !0) continue;
|
|
1961
2193
|
c += 1;
|
|
1962
|
-
const
|
|
1963
|
-
|
|
1964
|
-
key: `tab:${
|
|
2194
|
+
const f = n(a), d = a.hiddenByDefault === !0, u = Ge(e[f], d);
|
|
2195
|
+
i.push({
|
|
2196
|
+
key: `tab:${f}`,
|
|
1965
2197
|
label: a.title ?? a.contributionId,
|
|
1966
|
-
icon:
|
|
1967
|
-
onClick: () => t.onToggleTab(
|
|
1968
|
-
endContent:
|
|
2198
|
+
icon: r?.(a),
|
|
2199
|
+
onClick: () => t.onToggleTab(f, d),
|
|
2200
|
+
endContent: u === "shown" ? l.visibleIcon : l.hiddenIcon
|
|
1969
2201
|
});
|
|
1970
2202
|
}
|
|
1971
|
-
return c === 0 ||
|
|
2203
|
+
return c === 0 || i.push({
|
|
1972
2204
|
key: "__reset-tabs",
|
|
1973
2205
|
label: "Reset to default",
|
|
1974
|
-
icon:
|
|
2206
|
+
icon: l.resetIcon,
|
|
1975
2207
|
separatorBefore: !0,
|
|
1976
2208
|
onClick: t.onResetAll
|
|
1977
|
-
}),
|
|
2209
|
+
}), i;
|
|
1978
2210
|
}, {
|
|
1979
|
-
withProvider:
|
|
1980
|
-
withContext:
|
|
1981
|
-
} =
|
|
1982
|
-
recipe:
|
|
1983
|
-
}),
|
|
1984
|
-
const e =
|
|
2211
|
+
withProvider: vi,
|
|
2212
|
+
withContext: dt
|
|
2213
|
+
} = et({
|
|
2214
|
+
recipe: xo
|
|
2215
|
+
}), yi = vi("div", "list"), Ci = dt("div", "tab"), wi = dt("button", "trigger"), Ii = dt("span", "label"), Ti = dt("button", "close"), Ai = (o) => {
|
|
2216
|
+
const e = O(38), {
|
|
2217
|
+
tab: t,
|
|
2218
|
+
selected: n,
|
|
2219
|
+
tabIndex: l,
|
|
2220
|
+
reorderable: r,
|
|
2221
|
+
onSelect: i,
|
|
2222
|
+
onClose: c,
|
|
2223
|
+
onKeyDown: a
|
|
2224
|
+
} = o, f = !r;
|
|
2225
|
+
let d;
|
|
2226
|
+
e[0] !== f || e[1] !== t.id ? (d = {
|
|
2227
|
+
id: t.id,
|
|
2228
|
+
disabled: f
|
|
2229
|
+
}, e[0] = f, e[1] = t.id, e[2] = d) : d = e[2];
|
|
2230
|
+
const {
|
|
2231
|
+
attributes: u,
|
|
2232
|
+
listeners: h,
|
|
2233
|
+
setNodeRef: p,
|
|
2234
|
+
setActivatorNodeRef: m,
|
|
2235
|
+
transform: g,
|
|
2236
|
+
transition: S,
|
|
2237
|
+
isDragging: b,
|
|
2238
|
+
isSorting: T
|
|
2239
|
+
} = sn(d), I = n ? "" : void 0, R = b ? "" : void 0;
|
|
2240
|
+
let x;
|
|
2241
|
+
e[3] !== g ? (x = cn.Translate.toString(g), e[3] = g, e[4] = x) : x = e[4];
|
|
2242
|
+
let $;
|
|
2243
|
+
e[5] !== u || e[6] !== r ? ($ = r ? u : {}, e[5] = u, e[6] = r, e[7] = $) : $ = e[7];
|
|
2244
|
+
let A;
|
|
2245
|
+
e[8] !== T || e[9] !== h || e[10] !== a ? (A = (_) => {
|
|
2246
|
+
h?.onKeyDown?.(_), !T && !_.defaultPrevented && a(_);
|
|
2247
|
+
}, e[8] = T, e[9] = h, e[10] = a, e[11] = A) : A = e[11];
|
|
2248
|
+
let P;
|
|
2249
|
+
e[12] !== t.label ? (P = /* @__PURE__ */ s(Ii, { children: t.label }), e[12] = t.label, e[13] = P) : P = e[13];
|
|
2250
|
+
let w;
|
|
2251
|
+
e[14] !== h || e[15] !== i || e[16] !== n || e[17] !== m || e[18] !== $ || e[19] !== A || e[20] !== P || e[21] !== t.icon || e[22] !== t.label || e[23] !== l ? (w = /* @__PURE__ */ C(wi, { ...$, ...h, ref: m, type: "button", role: "tab", "aria-selected": n, "aria-label": t.label, tabIndex: l, title: t.label, onClick: i, onKeyDown: A, children: [
|
|
2252
|
+
t.icon,
|
|
2253
|
+
P
|
|
2254
|
+
] }), e[14] = h, e[15] = i, e[16] = n, e[17] = m, e[18] = $, e[19] = A, e[20] = P, e[21] = t.icon, e[22] = t.label, e[23] = l, e[24] = w) : w = e[24];
|
|
2255
|
+
const y = `Close ${t.label}`, L = `Close ${t.label}`;
|
|
2256
|
+
let D;
|
|
2257
|
+
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ s(Yt, { "aria-hidden": "true" }), e[25] = D) : D = e[25];
|
|
2258
|
+
let k;
|
|
2259
|
+
e[26] !== c || e[27] !== L || e[28] !== y ? (k = /* @__PURE__ */ s(Ti, { type: "button", "aria-label": y, title: L, onClick: c, children: D }), e[26] = c, e[27] = L, e[28] = y, e[29] = k) : k = e[29];
|
|
2260
|
+
let N;
|
|
2261
|
+
return e[30] !== p || e[31] !== k || e[32] !== I || e[33] !== R || e[34] !== x || e[35] !== w || e[36] !== S ? (N = /* @__PURE__ */ C(Ci, { ref: p, role: "presentation", "data-selected": I, "data-dragging": R, transform: x, transition: S, children: [
|
|
2262
|
+
w,
|
|
2263
|
+
k
|
|
2264
|
+
] }), e[30] = p, e[31] = k, e[32] = I, e[33] = R, e[34] = x, e[35] = w, e[36] = S, e[37] = N) : N = e[37], N;
|
|
2265
|
+
}, Ss = (o) => {
|
|
2266
|
+
const e = O(48), {
|
|
1985
2267
|
tabs: t,
|
|
1986
2268
|
selectedId: n,
|
|
1987
|
-
onSelect:
|
|
1988
|
-
onClose:
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
2269
|
+
onSelect: l,
|
|
2270
|
+
onClose: r,
|
|
2271
|
+
onReorder: i,
|
|
2272
|
+
"aria-label": c
|
|
2273
|
+
} = o, a = Me(null);
|
|
2274
|
+
let f;
|
|
2275
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
2276
|
+
activationConstraint: {
|
|
2277
|
+
distance: 6
|
|
2278
|
+
}
|
|
2279
|
+
}, e[0] = f) : f = e[0];
|
|
2280
|
+
let d;
|
|
2281
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
2282
|
+
coordinateGetter: po
|
|
2283
|
+
}, e[1] = d) : d = e[1];
|
|
2284
|
+
const u = nn(ut(on, f), ut(mo, d));
|
|
2285
|
+
let h, p;
|
|
2286
|
+
e[2] !== n ? (h = () => {
|
|
2287
|
+
n && a.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({
|
|
1994
2288
|
block: "nearest",
|
|
1995
2289
|
inline: "nearest"
|
|
1996
2290
|
});
|
|
1997
|
-
},
|
|
1998
|
-
let
|
|
1999
|
-
if (e[
|
|
2000
|
-
const
|
|
2001
|
-
const
|
|
2002
|
-
|
|
2003
|
-
},
|
|
2004
|
-
let
|
|
2005
|
-
if (
|
|
2006
|
-
|
|
2007
|
-
else if (
|
|
2008
|
-
|
|
2009
|
-
else if (
|
|
2010
|
-
|
|
2011
|
-
else if (
|
|
2012
|
-
|
|
2013
|
-
else if (
|
|
2014
|
-
|
|
2291
|
+
}, p = [n], e[2] = n, e[3] = h, e[4] = p) : (h = e[3], p = e[4]), me(h, p);
|
|
2292
|
+
let m, g, S, b, T, I, R, x, $, A, P, w, y;
|
|
2293
|
+
if (e[5] !== c || e[6] !== r || e[7] !== i || e[8] !== l || e[9] !== n || e[10] !== u || e[11] !== t) {
|
|
2294
|
+
const N = (v) => {
|
|
2295
|
+
const z = a.current?.querySelectorAll('[role="tab"]'), E = z?.[v + 1] ?? z?.[v - 1];
|
|
2296
|
+
r(t[v].id), E?.focus();
|
|
2297
|
+
}, _ = (v, z) => {
|
|
2298
|
+
let E;
|
|
2299
|
+
if (v.key === "ArrowRight")
|
|
2300
|
+
E = (z + 1) % t.length;
|
|
2301
|
+
else if (v.key === "ArrowLeft")
|
|
2302
|
+
E = (z - 1 + t.length) % t.length;
|
|
2303
|
+
else if (v.key === "Home")
|
|
2304
|
+
E = 0;
|
|
2305
|
+
else if (v.key === "End")
|
|
2306
|
+
E = t.length - 1;
|
|
2307
|
+
else if (v.key === "Delete") {
|
|
2308
|
+
v.preventDefault(), N(z);
|
|
2015
2309
|
return;
|
|
2016
2310
|
} else
|
|
2017
2311
|
return;
|
|
2018
|
-
|
|
2312
|
+
v.preventDefault(), a.current?.querySelectorAll('[role="tab"]')[E]?.focus(), l(t[E].id);
|
|
2019
2313
|
};
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
]
|
|
2314
|
+
S = ln, b = u, T = rn, e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = [Pi], e[25] = I) : I = e[25], e[26] !== i ? (R = (v) => {
|
|
2315
|
+
const {
|
|
2316
|
+
active: z,
|
|
2317
|
+
over: E
|
|
2318
|
+
} = v;
|
|
2319
|
+
E && z.id !== E.id && i?.(String(z.id), String(E.id));
|
|
2320
|
+
}, e[26] = i, e[27] = R) : R = e[27], g = an, e[28] !== t ? (w = t.map(ki), e[28] = t, e[29] = w) : w = e[29], y = go, m = yi, x = a, $ = "tablist", A = c, P = t.map((v, z) => /* @__PURE__ */ s(Ai, { tab: v, selected: v.id === n, tabIndex: v.id === (n ?? t[0]?.id) ? 0 : -1, reorderable: !!i, onSelect: () => l(v.id), onClose: () => N(z), onKeyDown: (E) => _(E, z) }, v.id)), e[5] = c, e[6] = r, e[7] = i, e[8] = l, e[9] = n, e[10] = u, e[11] = t, e[12] = m, e[13] = g, e[14] = S, e[15] = b, e[16] = T, e[17] = I, e[18] = R, e[19] = x, e[20] = $, e[21] = A, e[22] = P, e[23] = w, e[24] = y;
|
|
2027
2321
|
} else
|
|
2028
|
-
|
|
2029
|
-
let
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
const
|
|
2322
|
+
m = e[12], g = e[13], S = e[14], b = e[15], T = e[16], I = e[17], R = e[18], x = e[19], $ = e[20], A = e[21], P = e[22], w = e[23], y = e[24];
|
|
2323
|
+
let L;
|
|
2324
|
+
e[30] !== m || e[31] !== x || e[32] !== $ || e[33] !== A || e[34] !== P ? (L = /* @__PURE__ */ s(m, { ref: x, role: $, "aria-label": A, children: P }), e[30] = m, e[31] = x, e[32] = $, e[33] = A, e[34] = P, e[35] = L) : L = e[35];
|
|
2325
|
+
let D;
|
|
2326
|
+
e[36] !== g || e[37] !== L || e[38] !== w || e[39] !== y ? (D = /* @__PURE__ */ s(g, { items: w, strategy: y, children: L }), e[36] = g, e[37] = L, e[38] = w, e[39] = y, e[40] = D) : D = e[40];
|
|
2327
|
+
let k;
|
|
2328
|
+
return e[41] !== S || e[42] !== b || e[43] !== T || e[44] !== I || e[45] !== R || e[46] !== D ? (k = /* @__PURE__ */ s(S, { sensors: b, collisionDetection: T, modifiers: I, onDragEnd: R, children: D }), e[41] = S, e[42] = b, e[43] = T, e[44] = I, e[45] = R, e[46] = D, e[47] = k) : k = e[47], k;
|
|
2329
|
+
};
|
|
2330
|
+
function Pi(o) {
|
|
2331
|
+
const {
|
|
2332
|
+
transform: e
|
|
2333
|
+
} = o;
|
|
2334
|
+
return {
|
|
2335
|
+
...e,
|
|
2336
|
+
y: 0
|
|
2337
|
+
};
|
|
2338
|
+
}
|
|
2339
|
+
function ki(o) {
|
|
2340
|
+
return o.id;
|
|
2341
|
+
}
|
|
2342
|
+
const {
|
|
2343
|
+
withProvider: Ri,
|
|
2344
|
+
withContext: $i
|
|
2345
|
+
} = et({
|
|
2346
|
+
recipe: vo
|
|
2347
|
+
}), Li = Ri("div", "root"), Ei = $i("div", "content"), xs = (o) => {
|
|
2348
|
+
const e = O(5), {
|
|
2038
2349
|
platform: t,
|
|
2039
2350
|
children: n
|
|
2040
|
-
} = o,
|
|
2351
|
+
} = o, l = t === "darwin" ? "mac" : "overlay";
|
|
2352
|
+
let r;
|
|
2353
|
+
e[0] !== n ? (r = /* @__PURE__ */ s(Ei, { children: n }), e[0] = n, e[1] = r) : r = e[1];
|
|
2041
2354
|
let i;
|
|
2042
|
-
e[
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
}, nl = (o) => {
|
|
2046
|
-
const e = k(7), {
|
|
2355
|
+
return e[2] !== l || e[3] !== r ? (i = /* @__PURE__ */ s(Li, { controls: l, "data-window-title-bar": "", children: r }), e[2] = l, e[3] = r, e[4] = i) : i = e[4], i;
|
|
2356
|
+
}, Di = (o) => {
|
|
2357
|
+
const e = O(7), {
|
|
2047
2358
|
children: t,
|
|
2048
2359
|
hasChanges: n
|
|
2049
2360
|
} = o;
|
|
2361
|
+
let l;
|
|
2362
|
+
e[0] !== t ? (l = /* @__PURE__ */ s(M, { textStyle: "label/L/medium", truncate: !0, children: t }), e[0] = t, e[1] = l) : l = e[1];
|
|
2050
2363
|
let r;
|
|
2051
|
-
e[
|
|
2364
|
+
e[2] !== n ? (r = n ? /* @__PURE__ */ s(M, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = n, e[3] = r) : r = e[3];
|
|
2052
2365
|
let i;
|
|
2053
|
-
e[
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
}, ol = (o) => o.length === 0 ? "None" : o.length === 1 ? o[0].label : `${o[0].label} +${o.length - 1}`, rl = (o) => {
|
|
2060
|
-
const e = k(54), {
|
|
2366
|
+
return e[4] !== l || e[5] !== r ? (i = /* @__PURE__ */ C(le, { gap: "3xs", minWidth: "0", children: [
|
|
2367
|
+
l,
|
|
2368
|
+
r
|
|
2369
|
+
] }), e[4] = l, e[5] = r, e[6] = i) : i = e[6], i;
|
|
2370
|
+
}, _i = (o) => o.length === 0 ? "None" : o.length === 1 ? o[0].label : `${o[0].label} +${o.length - 1}`, Oi = (o) => {
|
|
2371
|
+
const e = O(54), {
|
|
2061
2372
|
actions: t,
|
|
2062
2373
|
disabled: n,
|
|
2063
|
-
label:
|
|
2064
|
-
options:
|
|
2065
|
-
optionName:
|
|
2374
|
+
label: l,
|
|
2375
|
+
options: r,
|
|
2376
|
+
optionName: i,
|
|
2066
2377
|
onChange: c
|
|
2067
2378
|
} = o;
|
|
2068
|
-
let a, d, u,
|
|
2069
|
-
if (e[0] !== t || e[1] !== n || e[2] !==
|
|
2070
|
-
let
|
|
2071
|
-
e[20] !== t ? (
|
|
2072
|
-
const
|
|
2073
|
-
let
|
|
2074
|
-
e[22] !== t || e[23] !== c ? (
|
|
2075
|
-
c(t.includes(
|
|
2076
|
-
}, e[22] = t, e[23] = c, e[24] =
|
|
2379
|
+
let a, f, d, u, h, p, m, g, S, b, T, I, R, x;
|
|
2380
|
+
if (e[0] !== t || e[1] !== n || e[2] !== l || e[3] !== c || e[4] !== i || e[5] !== r) {
|
|
2381
|
+
let D;
|
|
2382
|
+
e[20] !== t ? (D = (_) => t.includes(_.value), e[20] = t, e[21] = D) : D = e[21];
|
|
2383
|
+
const k = r.filter(D);
|
|
2384
|
+
let N;
|
|
2385
|
+
e[22] !== t || e[23] !== c ? (N = (_) => {
|
|
2386
|
+
c(t.includes(_) ? t.filter((v) => v !== _) : [...t, _]);
|
|
2387
|
+
}, e[22] = t, e[23] = c, e[24] = N) : N = e[24], x = N, d = ge.Root, R = !1, f = ge.Trigger, I = !0, a = de, u = "2xs", h = "ghost", p = "xs", m = k.length === 0 ? "fg.subtle" : "fg", g = n, S = `${l} for ${i}`, b = k[0]?.icon, T = _i(k), e[0] = t, e[1] = n, e[2] = l, e[3] = c, e[4] = i, e[5] = r, e[6] = a, e[7] = f, e[8] = d, e[9] = u, e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = S, e[15] = b, e[16] = T, e[17] = I, e[18] = R, e[19] = x;
|
|
2077
2388
|
} else
|
|
2078
|
-
a = e[6],
|
|
2079
|
-
let
|
|
2080
|
-
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2081
|
-
let
|
|
2082
|
-
e[26] !== a || e[27] !==
|
|
2389
|
+
a = e[6], f = e[7], d = e[8], u = e[9], h = e[10], p = e[11], m = e[12], g = e[13], S = e[14], b = e[15], T = e[16], I = e[17], R = e[18], x = e[19];
|
|
2390
|
+
let $;
|
|
2391
|
+
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(ce, { as: en, boxSize: "icon-2xs" }), e[25] = $) : $ = e[25];
|
|
2392
|
+
let A;
|
|
2393
|
+
e[26] !== a || e[27] !== u || e[28] !== h || e[29] !== p || e[30] !== m || e[31] !== g || e[32] !== S || e[33] !== b || e[34] !== T ? (A = /* @__PURE__ */ C(a, { size: u, variant: h, gap: p, color: m, disabled: g, "aria-label": S, children: [
|
|
2083
2394
|
b,
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
] }), e[26] = a, e[27] =
|
|
2087
|
-
let E;
|
|
2088
|
-
e[36] !== d || e[37] !== R || e[38] !== w ? (E = /* @__PURE__ */ s(d, { asChild: w, children: R }), e[36] = d, e[37] = R, e[38] = w, e[39] = E) : E = e[39];
|
|
2395
|
+
T,
|
|
2396
|
+
$
|
|
2397
|
+
] }), e[26] = a, e[27] = u, e[28] = h, e[29] = p, e[30] = m, e[31] = g, e[32] = S, e[33] = b, e[34] = T, e[35] = A) : A = e[35];
|
|
2089
2398
|
let P;
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2399
|
+
e[36] !== f || e[37] !== A || e[38] !== I ? (P = /* @__PURE__ */ s(f, { asChild: I, children: A }), e[36] = f, e[37] = A, e[38] = I, e[39] = P) : P = e[39];
|
|
2400
|
+
let w;
|
|
2401
|
+
if (e[40] !== t || e[41] !== r || e[42] !== x) {
|
|
2402
|
+
let D;
|
|
2403
|
+
e[44] !== t || e[45] !== x ? (D = (k) => /* @__PURE__ */ s(ge.Item, { value: k.value, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: k.value, label: k.label, icon: k.icon, isSelected: t.includes(k.value), endContent: t.includes(k.value) ? /* @__PURE__ */ s(ce, { as: nt, boxSize: "icon-xs" }) : void 0, onActivate: () => x(k.value) }) }, k.value), e[44] = t, e[45] = x, e[46] = D) : D = e[46], w = r.map(D), e[40] = t, e[41] = r, e[42] = x, e[43] = w;
|
|
2093
2404
|
} else
|
|
2094
|
-
|
|
2095
|
-
let
|
|
2096
|
-
e[47] !==
|
|
2097
|
-
let
|
|
2098
|
-
return e[49] !==
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
] }), e[49] =
|
|
2102
|
-
},
|
|
2103
|
-
const e =
|
|
2405
|
+
w = e[43];
|
|
2406
|
+
let y;
|
|
2407
|
+
e[47] !== w ? (y = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: w }) }), e[47] = w, e[48] = y) : y = e[48];
|
|
2408
|
+
let L;
|
|
2409
|
+
return e[49] !== d || e[50] !== P || e[51] !== y || e[52] !== R ? (L = /* @__PURE__ */ C(d, { closeOnSelect: R, children: [
|
|
2410
|
+
P,
|
|
2411
|
+
y
|
|
2412
|
+
] }), e[49] = d, e[50] = P, e[51] = y, e[52] = R, e[53] = L) : L = e[53], L;
|
|
2413
|
+
}, zi = (o) => {
|
|
2414
|
+
const e = O(69), {
|
|
2104
2415
|
actionOptions: t,
|
|
2105
2416
|
actionsLabel: n,
|
|
2106
|
-
colorOptions:
|
|
2107
|
-
iconOptions:
|
|
2108
|
-
value:
|
|
2417
|
+
colorOptions: l,
|
|
2418
|
+
iconOptions: r,
|
|
2419
|
+
value: i,
|
|
2109
2420
|
isSaving: c,
|
|
2110
2421
|
readOnly: a,
|
|
2111
|
-
showDefault:
|
|
2112
|
-
showIcons:
|
|
2113
|
-
onActionsChange:
|
|
2422
|
+
showDefault: f,
|
|
2423
|
+
showIcons: d,
|
|
2424
|
+
onActionsChange: u,
|
|
2114
2425
|
onColorChange: h,
|
|
2115
|
-
onDelete:
|
|
2116
|
-
onIconChange:
|
|
2426
|
+
onDelete: p,
|
|
2427
|
+
onIconChange: m,
|
|
2117
2428
|
onNameChange: g
|
|
2118
2429
|
} = o, S = n === void 0 ? "Actions" : n, b = c || a;
|
|
2119
|
-
let
|
|
2120
|
-
e[0] !== b || e[1] !==
|
|
2121
|
-
id:
|
|
2430
|
+
let T;
|
|
2431
|
+
e[0] !== b || e[1] !== i.id ? (T = {
|
|
2432
|
+
id: i.id,
|
|
2122
2433
|
disabled: b
|
|
2123
|
-
}, e[0] = b, e[1] =
|
|
2434
|
+
}, e[0] = b, e[1] = i.id, e[2] = T) : T = e[2];
|
|
2124
2435
|
const {
|
|
2125
|
-
attributes:
|
|
2126
|
-
listeners:
|
|
2127
|
-
setNodeRef:
|
|
2128
|
-
transform:
|
|
2129
|
-
transition:
|
|
2130
|
-
isDragging:
|
|
2131
|
-
} =
|
|
2132
|
-
let
|
|
2133
|
-
e[3] !==
|
|
2134
|
-
let
|
|
2135
|
-
e[5] !==
|
|
2136
|
-
transform:
|
|
2137
|
-
transition:
|
|
2138
|
-
}, e[5] =
|
|
2139
|
-
const
|
|
2140
|
-
let
|
|
2141
|
-
e[8] !==
|
|
2142
|
-
bg:
|
|
2143
|
-
}, e[8] =
|
|
2144
|
-
const
|
|
2145
|
-
let
|
|
2146
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2436
|
+
attributes: I,
|
|
2437
|
+
listeners: R,
|
|
2438
|
+
setNodeRef: x,
|
|
2439
|
+
transform: $,
|
|
2440
|
+
transition: A,
|
|
2441
|
+
isDragging: P
|
|
2442
|
+
} = sn(T);
|
|
2443
|
+
let w;
|
|
2444
|
+
e[3] !== $ ? (w = cn.Transform.toString($), e[3] = $, e[4] = w) : w = e[4];
|
|
2445
|
+
let y;
|
|
2446
|
+
e[5] !== w || e[6] !== A ? (y = {
|
|
2447
|
+
transform: w,
|
|
2448
|
+
transition: A
|
|
2449
|
+
}, e[5] = w, e[6] = A, e[7] = y) : y = e[7];
|
|
2450
|
+
const L = P ? "bg.elevated" : "transparent", D = P ? "compact" : "none", k = P ? "1px" : void 0, N = P ? "lg" : void 0, _ = P ? "bg.elevated" : "bg.muted";
|
|
2451
|
+
let v;
|
|
2452
|
+
e[8] !== _ ? (v = {
|
|
2453
|
+
bg: _
|
|
2454
|
+
}, e[8] = _, e[9] = v) : v = e[9];
|
|
2455
|
+
const z = a ? "default" : "grab";
|
|
2456
|
+
let E;
|
|
2457
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
2147
2458
|
color: "fg.muted"
|
|
2148
|
-
}, e[10] =
|
|
2149
|
-
const
|
|
2150
|
-
let B;
|
|
2151
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(ce, { as: En, boxSize: "icon-xs" }), e[11] = B) : B = e[11];
|
|
2459
|
+
}, e[10] = E) : E = e[10];
|
|
2460
|
+
const H = `Reorder ${i.name}`;
|
|
2152
2461
|
let W;
|
|
2153
|
-
e[
|
|
2154
|
-
|
|
2462
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ s(ce, { as: no, boxSize: "icon-xs" }), e[11] = W) : W = e[11];
|
|
2463
|
+
let F;
|
|
2464
|
+
e[12] !== I || e[13] !== R || e[14] !== z || e[15] !== H ? (F = /* @__PURE__ */ s(fe, { cursor: z, color: "fg.subtle", _groupHover: E, "aria-label": H, ...I, ...R, children: W }), e[12] = I, e[13] = R, e[14] = z, e[15] = H, e[16] = F) : F = e[16];
|
|
2465
|
+
const B = `Change ${i.name} appearance`;
|
|
2155
2466
|
let q;
|
|
2156
|
-
e[17] !==
|
|
2157
|
-
let
|
|
2158
|
-
e[27] !== g || e[28] !==
|
|
2467
|
+
e[17] !== l || e[18] !== b || e[19] !== r || e[20] !== h || e[21] !== m || e[22] !== d || e[23] !== B || e[24] !== i.color || e[25] !== i.icon ? (q = /* @__PURE__ */ s(Ol, { color: i.color, colorOptions: l, icon: i.icon, iconOptions: r, showIcons: d, onColorChange: h, onIconChange: m, disabled: b, "aria-label": B }), e[17] = l, e[18] = b, e[19] = r, e[20] = h, e[21] = m, e[22] = d, e[23] = B, e[24] = i.color, e[25] = i.icon, e[26] = q) : q = e[26];
|
|
2468
|
+
let U;
|
|
2469
|
+
e[27] !== g || e[28] !== i.name ? (U = (oe) => {
|
|
2159
2470
|
const he = oe.value.trim();
|
|
2160
|
-
he && he !==
|
|
2161
|
-
}, e[27] = g, e[28] =
|
|
2162
|
-
let
|
|
2163
|
-
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2471
|
+
he && he !== i.name && g(he);
|
|
2472
|
+
}, e[27] = g, e[28] = i.name, e[29] = U) : U = e[29];
|
|
2473
|
+
let G, Q;
|
|
2474
|
+
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ s(We.Preview, { textStyle: "paragraph/S/regular" }), Q = /* @__PURE__ */ s(We.Input, { textStyle: "paragraph/S/regular" }), e[30] = G, e[31] = Q) : (G = e[30], Q = e[31]);
|
|
2164
2475
|
let K;
|
|
2165
|
-
e[32] !== b || e[33] !==
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
] },
|
|
2169
|
-
let
|
|
2170
|
-
e[37] !==
|
|
2476
|
+
e[32] !== b || e[33] !== U || e[34] !== i.isNew || e[35] !== i.name ? (K = /* @__PURE__ */ C(We.Root, { minWidth: "0", defaultValue: i.name, defaultEdit: i.isNew, selectOnFocus: !0, disabled: b, onValueCommit: U, children: [
|
|
2477
|
+
G,
|
|
2478
|
+
Q
|
|
2479
|
+
] }, i.name), e[32] = b, e[33] = U, e[34] = i.isNew, e[35] = i.name, e[36] = K) : K = e[36];
|
|
2480
|
+
let ae;
|
|
2481
|
+
e[37] !== f || e[38] !== i.isDefault ? (ae = f && i.isDefault ? /* @__PURE__ */ s(Te, { size: "sm", variant: "subtle", colorPalette: "blue", children: "Default" }) : null, e[37] = f, e[38] = i.isDefault, e[39] = ae) : ae = e[39];
|
|
2171
2482
|
let J;
|
|
2172
|
-
e[40] !== K || e[41] !==
|
|
2483
|
+
e[40] !== K || e[41] !== ae ? (J = /* @__PURE__ */ C(fe, { flex: "1", minWidth: "0", alignItems: "center", gap: "xs", children: [
|
|
2173
2484
|
K,
|
|
2174
|
-
|
|
2175
|
-
] }), e[40] = K, e[41] =
|
|
2485
|
+
ae
|
|
2486
|
+
] }), e[40] = K, e[41] = ae, e[42] = J) : J = e[42];
|
|
2176
2487
|
let ee;
|
|
2177
|
-
e[43] !== t || e[44] !== S || e[45] !== b || e[46] !==
|
|
2178
|
-
let
|
|
2179
|
-
e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2488
|
+
e[43] !== t || e[44] !== S || e[45] !== b || e[46] !== u || e[47] !== i.actions || e[48] !== i.name ? (ee = t ? /* @__PURE__ */ s(fe, { width: "tag-editor-commands", justifyContent: "flex-end", children: /* @__PURE__ */ s(Oi, { actions: i.actions ?? [], disabled: b, label: S, optionName: i.name, options: t, onChange: u }) }) : null, e[43] = t, e[44] = S, e[45] = b, e[46] = u, e[47] = i.actions, e[48] = i.name, e[49] = ee) : ee = e[49];
|
|
2489
|
+
let ie;
|
|
2490
|
+
e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ie = {
|
|
2180
2491
|
color: "fg.error",
|
|
2181
2492
|
bg: "bg.error"
|
|
2182
|
-
}, e[50] =
|
|
2183
|
-
const te = b ||
|
|
2493
|
+
}, e[50] = ie) : ie = e[50];
|
|
2494
|
+
const te = b || i.isDefault, re = `Delete ${i.name}`;
|
|
2184
2495
|
let ne;
|
|
2185
|
-
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(ce, { as:
|
|
2496
|
+
e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(ce, { as: oo, boxSize: "icon-xs" }), e[51] = ne) : ne = e[51];
|
|
2186
2497
|
let Y;
|
|
2187
|
-
e[52] !==
|
|
2188
|
-
let
|
|
2189
|
-
return e[56] !==
|
|
2190
|
-
|
|
2498
|
+
e[52] !== p || e[53] !== te || e[54] !== re ? (Y = /* @__PURE__ */ s(Fe, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: ie, onClick: p, disabled: te, "aria-label": re, children: ne }), e[52] = p, e[53] = te, e[54] = re, e[55] = Y) : Y = e[55];
|
|
2499
|
+
let se;
|
|
2500
|
+
return e[56] !== x || e[57] !== F || e[58] !== q || e[59] !== J || e[60] !== ee || e[61] !== Y || e[62] !== y || e[63] !== L || e[64] !== D || e[65] !== k || e[66] !== N || e[67] !== v ? (se = /* @__PURE__ */ C(fe, { ref: x, style: y, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: L, borderRadius: D, borderWidth: k, boxShadow: N, _hover: v, children: [
|
|
2501
|
+
F,
|
|
2191
2502
|
q,
|
|
2192
2503
|
J,
|
|
2193
2504
|
ee,
|
|
2194
2505
|
Y
|
|
2195
|
-
] }), e[56] =
|
|
2196
|
-
},
|
|
2197
|
-
const e =
|
|
2506
|
+
] }), e[56] = x, e[57] = F, e[58] = q, e[59] = J, e[60] = ee, e[61] = Y, e[62] = y, e[63] = L, e[64] = D, e[65] = k, e[66] = N, e[67] = v, e[68] = se) : se = e[68], se;
|
|
2507
|
+
}, Ni = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, Bi = (o) => {
|
|
2508
|
+
const e = O(12), {
|
|
2198
2509
|
title: t,
|
|
2199
2510
|
hasChanges: n,
|
|
2200
|
-
isSaving:
|
|
2201
|
-
onTitleChange:
|
|
2511
|
+
isSaving: l,
|
|
2512
|
+
onTitleChange: r
|
|
2202
2513
|
} = o;
|
|
2203
|
-
if (!
|
|
2204
|
-
let
|
|
2205
|
-
return e[0] !== n || e[1] !== t ? (
|
|
2514
|
+
if (!r) {
|
|
2515
|
+
let d;
|
|
2516
|
+
return e[0] !== n || e[1] !== t ? (d = /* @__PURE__ */ s(Di, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = d) : d = e[2], d;
|
|
2206
2517
|
}
|
|
2207
|
-
let
|
|
2208
|
-
e[3] !==
|
|
2209
|
-
const
|
|
2210
|
-
|
|
2211
|
-
}, e[3] =
|
|
2518
|
+
let i;
|
|
2519
|
+
e[3] !== r || e[4] !== t ? (i = (d) => {
|
|
2520
|
+
const u = d.value.trim();
|
|
2521
|
+
u && u !== t && r(u);
|
|
2522
|
+
}, e[3] = r, e[4] = t, e[5] = i) : i = e[5];
|
|
2212
2523
|
let c, a;
|
|
2213
2524
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(We.Preview, { textStyle: "label/L/medium" }), a = /* @__PURE__ */ s(We.Input, { textStyle: "label/L/medium" }), e[6] = c, e[7] = a) : (c = e[6], a = e[7]);
|
|
2214
|
-
let
|
|
2215
|
-
return e[8] !==
|
|
2525
|
+
let f;
|
|
2526
|
+
return e[8] !== l || e[9] !== i || e[10] !== t ? (f = /* @__PURE__ */ C(We.Root, { defaultValue: t, disabled: l, selectOnFocus: !0, onValueCommit: i, children: [
|
|
2216
2527
|
c,
|
|
2217
2528
|
a
|
|
2218
|
-
] }, t), e[8] =
|
|
2219
|
-
},
|
|
2529
|
+
] }, t), e[8] = l, e[9] = i, e[10] = t, e[11] = f) : f = e[11], f;
|
|
2530
|
+
}, Wi = Ae("button", {
|
|
2220
2531
|
base: {
|
|
2221
2532
|
display: "flex",
|
|
2222
2533
|
alignItems: "center",
|
|
@@ -2239,260 +2550,260 @@ const Rt = {
|
|
|
2239
2550
|
}
|
|
2240
2551
|
}
|
|
2241
2552
|
}
|
|
2242
|
-
}),
|
|
2243
|
-
const e =
|
|
2553
|
+
}), Mi = (o) => {
|
|
2554
|
+
const e = O(9), {
|
|
2244
2555
|
valueLabel: t,
|
|
2245
2556
|
actionsLabel: n
|
|
2246
2557
|
} = o;
|
|
2558
|
+
let l;
|
|
2559
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ s(fe, { width: "tag-editor-lead", flexShrink: "0" }), e[0] = l) : l = e[0];
|
|
2247
2560
|
let r;
|
|
2248
|
-
e[
|
|
2561
|
+
e[1] !== t ? (r = /* @__PURE__ */ s(M, { flex: "1", minWidth: "0", textStyle: "label/XS/caps", color: "fg.subtle", children: t }), e[1] = t, e[2] = r) : r = e[2];
|
|
2249
2562
|
let i;
|
|
2250
|
-
e[
|
|
2251
|
-
let l;
|
|
2252
|
-
e[3] !== n ? (l = n ? /* @__PURE__ */ s(H, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: n }) : null, e[3] = n, e[4] = l) : l = e[4];
|
|
2563
|
+
e[3] !== n ? (i = n ? /* @__PURE__ */ s(M, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: n }) : null, e[3] = n, e[4] = i) : i = e[4];
|
|
2253
2564
|
let c;
|
|
2254
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(
|
|
2565
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(fe, { width: "tag-editor-trailing", flexShrink: "0" }), e[5] = c) : c = e[5];
|
|
2255
2566
|
let a;
|
|
2256
|
-
return e[6] !==
|
|
2567
|
+
return e[6] !== r || e[7] !== i ? (a = /* @__PURE__ */ C(fe, { alignItems: "center", gap: "compact", paddingInline: "xs", height: "tag-editor-add-row", bg: "bg.subtle", borderBottomWidth: "1px", borderColor: "border.subtle", children: [
|
|
2568
|
+
l,
|
|
2257
2569
|
r,
|
|
2258
2570
|
i,
|
|
2259
|
-
l,
|
|
2260
2571
|
c
|
|
2261
|
-
] }), e[6] =
|
|
2262
|
-
},
|
|
2263
|
-
const e =
|
|
2572
|
+
] }), e[6] = r, e[7] = i, e[8] = a) : a = e[8], a;
|
|
2573
|
+
}, Fi = (o) => {
|
|
2574
|
+
const e = O(22), {
|
|
2264
2575
|
label: t,
|
|
2265
2576
|
values: n,
|
|
2266
|
-
disabled:
|
|
2267
|
-
onSelect:
|
|
2577
|
+
disabled: l,
|
|
2578
|
+
onSelect: r
|
|
2268
2579
|
} = o;
|
|
2269
|
-
let
|
|
2270
|
-
e[0] !== n ? (
|
|
2271
|
-
const c =
|
|
2580
|
+
let i;
|
|
2581
|
+
e[0] !== n ? (i = n.find(Vi), e[0] = n, e[1] = i) : i = e[1];
|
|
2582
|
+
const c = i;
|
|
2272
2583
|
let a;
|
|
2273
|
-
e[2] !== t ? (a = /* @__PURE__ */ s(
|
|
2274
|
-
const
|
|
2584
|
+
e[2] !== t ? (a = /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }), e[2] = t, e[3] = a) : a = e[3];
|
|
2585
|
+
const f = c?.name ?? "None";
|
|
2586
|
+
let d;
|
|
2587
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(ce, { as: en, boxSize: "icon-2xs" }), e[4] = d) : d = e[4];
|
|
2275
2588
|
let u;
|
|
2276
|
-
e[
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
u
|
|
2281
|
-
] }) }), e[5] = r, e[6] = t, e[7] = d, e[8] = f) : f = e[8];
|
|
2589
|
+
e[5] !== l || e[6] !== t || e[7] !== f ? (u = /* @__PURE__ */ s(ge.Trigger, { asChild: !0, children: /* @__PURE__ */ C(de, { size: "2xs", variant: "ghost", gap: "xs", disabled: l, "aria-label": t, children: [
|
|
2590
|
+
f,
|
|
2591
|
+
d
|
|
2592
|
+
] }) }), e[5] = l, e[6] = t, e[7] = f, e[8] = u) : u = e[8];
|
|
2282
2593
|
let h;
|
|
2283
|
-
if (e[9] !==
|
|
2594
|
+
if (e[9] !== r || e[10] !== n) {
|
|
2284
2595
|
let S;
|
|
2285
|
-
e[12] !==
|
|
2596
|
+
e[12] !== r ? (S = (b) => /* @__PURE__ */ s(ge.Item, { value: b.id, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: b.id, label: b.name, isSelected: b.isDefault, endContent: b.isDefault ? /* @__PURE__ */ s(ce, { as: nt, boxSize: "icon-xs" }) : void 0, onActivate: () => r(b) }) }, b.id), e[12] = r, e[13] = S) : S = e[13], h = n.map(S), e[9] = r, e[10] = n, e[11] = h;
|
|
2286
2597
|
} else
|
|
2287
2598
|
h = e[11];
|
|
2288
|
-
let m;
|
|
2289
|
-
e[14] !== h ? (m = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: h }) }), e[14] = h, e[15] = m) : m = e[15];
|
|
2290
2599
|
let p;
|
|
2291
|
-
e[
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2600
|
+
e[14] !== h ? (p = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: h }) }), e[14] = h, e[15] = p) : p = e[15];
|
|
2601
|
+
let m;
|
|
2602
|
+
e[16] !== u || e[17] !== p ? (m = /* @__PURE__ */ C(ge.Root, { children: [
|
|
2603
|
+
u,
|
|
2604
|
+
p
|
|
2605
|
+
] }), e[16] = u, e[17] = p, e[18] = m) : m = e[18];
|
|
2295
2606
|
let g;
|
|
2296
|
-
return e[19] !== a || e[20] !==
|
|
2607
|
+
return e[19] !== a || e[20] !== m ? (g = /* @__PURE__ */ C(fe, { alignItems: "center", gap: "sm", paddingInline: "xs", paddingBlock: "xs", bg: "bg.subtle", borderTopWidth: "1px", borderColor: "border.subtle", children: [
|
|
2297
2608
|
a,
|
|
2298
|
-
|
|
2299
|
-
] }), e[19] = a, e[20] =
|
|
2300
|
-
},
|
|
2609
|
+
m
|
|
2610
|
+
] }), e[19] = a, e[20] = m, e[21] = g) : g = e[21], g;
|
|
2611
|
+
}, Hi = (o) => {
|
|
2301
2612
|
const {
|
|
2302
2613
|
title: e,
|
|
2303
2614
|
description: t,
|
|
2304
2615
|
headerActions: n,
|
|
2305
|
-
values:
|
|
2306
|
-
onValuesChange:
|
|
2307
|
-
onDeleteValue:
|
|
2616
|
+
values: l,
|
|
2617
|
+
onValuesChange: r,
|
|
2618
|
+
onDeleteValue: i,
|
|
2308
2619
|
onSetDefault: c,
|
|
2309
2620
|
onTitleChange: a,
|
|
2310
|
-
hasChanges:
|
|
2311
|
-
isSaving:
|
|
2312
|
-
readOnly:
|
|
2621
|
+
hasChanges: f,
|
|
2622
|
+
isSaving: d,
|
|
2623
|
+
readOnly: u,
|
|
2313
2624
|
addLabel: h = "Add option",
|
|
2314
|
-
addName:
|
|
2315
|
-
actionOptions:
|
|
2625
|
+
addName: p = "New option",
|
|
2626
|
+
actionOptions: m,
|
|
2316
2627
|
actionsLabel: g,
|
|
2317
2628
|
defaultValueLabel: S = "Default value",
|
|
2318
2629
|
colorOptions: b,
|
|
2319
|
-
defaultAddColor:
|
|
2320
|
-
defaultAddIcon:
|
|
2321
|
-
deleteButtonText:
|
|
2322
|
-
deleteHeadline:
|
|
2323
|
-
deleteNotificationText:
|
|
2324
|
-
iconOptions:
|
|
2325
|
-
showDefault:
|
|
2326
|
-
showIcons:
|
|
2327
|
-
framed:
|
|
2328
|
-
showColumnHeaders:
|
|
2329
|
-
valueColumnLabel:
|
|
2330
|
-
} = o, [
|
|
2630
|
+
defaultAddColor: T = "blue",
|
|
2631
|
+
defaultAddIcon: I = null,
|
|
2632
|
+
deleteButtonText: R = "Delete tag",
|
|
2633
|
+
deleteHeadline: x = "Delete tag?",
|
|
2634
|
+
deleteNotificationText: $ = (W) => `This will delete "${W.name}".`,
|
|
2635
|
+
iconOptions: A,
|
|
2636
|
+
showDefault: P,
|
|
2637
|
+
showIcons: w = !0,
|
|
2638
|
+
framed: y,
|
|
2639
|
+
showColumnHeaders: L,
|
|
2640
|
+
valueColumnLabel: D = "Name"
|
|
2641
|
+
} = o, [k, N] = ue(null), _ = nn(ut(on, {
|
|
2331
2642
|
activationConstraint: {
|
|
2332
2643
|
distance: 5
|
|
2333
2644
|
}
|
|
2334
|
-
})),
|
|
2335
|
-
const
|
|
2336
|
-
|
|
2337
|
-
...
|
|
2338
|
-
...
|
|
2339
|
-
},
|
|
2340
|
-
},
|
|
2341
|
-
|
|
2645
|
+
})), v = (W, F) => {
|
|
2646
|
+
const B = [...l];
|
|
2647
|
+
B[W] = {
|
|
2648
|
+
...B[W],
|
|
2649
|
+
...F
|
|
2650
|
+
}, r(B);
|
|
2651
|
+
}, z = () => {
|
|
2652
|
+
r([...l, {
|
|
2342
2653
|
id: `new-${crypto.randomUUID()}`,
|
|
2343
|
-
name:
|
|
2344
|
-
color:
|
|
2345
|
-
icon:
|
|
2346
|
-
sortOrder:
|
|
2654
|
+
name: p,
|
|
2655
|
+
color: T,
|
|
2656
|
+
icon: I,
|
|
2657
|
+
sortOrder: Ni(l),
|
|
2347
2658
|
isNew: !0
|
|
2348
2659
|
}]);
|
|
2349
|
-
},
|
|
2350
|
-
|
|
2660
|
+
}, E = () => {
|
|
2661
|
+
k && (i ? i(k) : r(l.filter((W) => W.id !== k.id)), N(null));
|
|
2351
2662
|
};
|
|
2352
|
-
return /* @__PURE__ */
|
|
2353
|
-
/* @__PURE__ */
|
|
2354
|
-
e || n ? /* @__PURE__ */
|
|
2355
|
-
/* @__PURE__ */
|
|
2356
|
-
e ? /* @__PURE__ */ s(
|
|
2357
|
-
t ? /* @__PURE__ */ s(
|
|
2663
|
+
return /* @__PURE__ */ C(He, { children: [
|
|
2664
|
+
/* @__PURE__ */ C(X, { gap: "2xs", children: [
|
|
2665
|
+
e || n ? /* @__PURE__ */ C(fe, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
|
|
2666
|
+
/* @__PURE__ */ C(X, { gap: "3xs", minWidth: "0", children: [
|
|
2667
|
+
e ? /* @__PURE__ */ s(Bi, { title: e, hasChanges: f, isSaving: d, onTitleChange: a }) : null,
|
|
2668
|
+
t ? /* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
|
|
2358
2669
|
] }),
|
|
2359
2670
|
n
|
|
2360
2671
|
] }) : null,
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
|
|
2363
|
-
/* @__PURE__ */ s(
|
|
2672
|
+
/* @__PURE__ */ C(X, { gap: "none", borderWidth: y ? "1px" : void 0, borderColor: y ? "border.subtle" : void 0, borderRadius: y ? "md" : void 0, overflow: y ? "hidden" : void 0, children: [
|
|
2673
|
+
L ? /* @__PURE__ */ s(Mi, { valueLabel: D, actionsLabel: m ? g : void 0 }) : null,
|
|
2674
|
+
/* @__PURE__ */ s(ln, { sensors: _, collisionDetection: rn, onDragEnd: u ? void 0 : (W) => {
|
|
2364
2675
|
const {
|
|
2365
|
-
active:
|
|
2366
|
-
over:
|
|
2367
|
-
} =
|
|
2368
|
-
if (!
|
|
2369
|
-
const q =
|
|
2370
|
-
q < 0 ||
|
|
2371
|
-
...
|
|
2372
|
-
sortOrder:
|
|
2676
|
+
active: F,
|
|
2677
|
+
over: B
|
|
2678
|
+
} = W;
|
|
2679
|
+
if (!B || F.id === B.id) return;
|
|
2680
|
+
const q = l.findIndex((G) => G.id === F.id), U = l.findIndex((G) => G.id === B.id);
|
|
2681
|
+
q < 0 || U < 0 || r(So(l, q, U).map((G, Q) => ({
|
|
2682
|
+
...G,
|
|
2683
|
+
sortOrder: Q
|
|
2373
2684
|
})));
|
|
2374
|
-
}, children: /* @__PURE__ */ s(
|
|
2375
|
-
name:
|
|
2376
|
-
}), onColorChange: (
|
|
2377
|
-
color:
|
|
2378
|
-
}), onIconChange: (
|
|
2379
|
-
icon:
|
|
2380
|
-
}), onActionsChange: (
|
|
2381
|
-
actions:
|
|
2382
|
-
}), onDelete: () =>
|
|
2383
|
-
|
|
2384
|
-
/* @__PURE__ */ s(ce, { as:
|
|
2385
|
-
/* @__PURE__ */ s(
|
|
2685
|
+
}, children: /* @__PURE__ */ s(an, { items: l.map((W) => W.id), strategy: bo, children: l.map((W, F) => /* @__PURE__ */ s(zi, { value: W, isSaving: d, readOnly: u, showDefault: P, showIcons: w, actionOptions: m, actionsLabel: g, colorOptions: b, iconOptions: A, onNameChange: (B) => v(F, {
|
|
2686
|
+
name: B
|
|
2687
|
+
}), onColorChange: (B) => v(F, {
|
|
2688
|
+
color: B
|
|
2689
|
+
}), onIconChange: (B) => v(F, {
|
|
2690
|
+
icon: B
|
|
2691
|
+
}), onActionsChange: (B) => v(F, {
|
|
2692
|
+
actions: B
|
|
2693
|
+
}), onDelete: () => N(W) }, W.id)) }) }),
|
|
2694
|
+
u ? null : /* @__PURE__ */ C(Wi, { type: "button", disabled: d, onClick: z, children: [
|
|
2695
|
+
/* @__PURE__ */ s(ce, { as: lo, boxSize: "icon-xs" }),
|
|
2696
|
+
/* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", children: h })
|
|
2386
2697
|
] }),
|
|
2387
|
-
|
|
2698
|
+
P && l.length > 0 ? /* @__PURE__ */ s(Fi, { label: S, values: l, disabled: d || u, onSelect: (W) => c?.(W) }) : null
|
|
2388
2699
|
] })
|
|
2389
2700
|
] }),
|
|
2390
|
-
/* @__PURE__ */ s(
|
|
2701
|
+
/* @__PURE__ */ s(Sl, { open: !!k, onClose: () => N(null), onDelete: E, headline: x, notificationText: k ? $(k) : "", buttonText: R })
|
|
2391
2702
|
] });
|
|
2392
2703
|
};
|
|
2393
|
-
function
|
|
2704
|
+
function Vi(o) {
|
|
2394
2705
|
return o.isDefault;
|
|
2395
2706
|
}
|
|
2396
|
-
const
|
|
2397
|
-
const e =
|
|
2707
|
+
const Gi = (o) => {
|
|
2708
|
+
const e = O(13), {
|
|
2398
2709
|
onSave: t,
|
|
2399
2710
|
onReset: n,
|
|
2400
|
-
hasChanges:
|
|
2401
|
-
isSaving:
|
|
2402
|
-
resetLabel:
|
|
2711
|
+
hasChanges: l,
|
|
2712
|
+
isSaving: r,
|
|
2713
|
+
resetLabel: i,
|
|
2403
2714
|
saveLabel: c
|
|
2404
|
-
} = o, a =
|
|
2405
|
-
let
|
|
2406
|
-
e[0] !==
|
|
2407
|
-
const
|
|
2715
|
+
} = o, a = i === void 0 ? "Reset" : i, f = c === void 0 ? "Save" : c;
|
|
2716
|
+
let d;
|
|
2717
|
+
e[0] !== l || e[1] !== r || e[2] !== n || e[3] !== a ? (d = l ? /* @__PURE__ */ s(de, { size: "sm", variant: "ghost", onClick: n, disabled: r, children: a }) : null, e[0] = l, e[1] = r, e[2] = n, e[3] = a, e[4] = d) : d = e[4];
|
|
2718
|
+
const u = !l;
|
|
2408
2719
|
let h;
|
|
2409
|
-
e[5] !==
|
|
2410
|
-
let
|
|
2411
|
-
return e[10] !==
|
|
2412
|
-
|
|
2720
|
+
e[5] !== r || e[6] !== t || e[7] !== f || e[8] !== u ? (h = /* @__PURE__ */ s(de, { size: "sm", variant: "primary", onClick: t, loading: r, disabled: u, children: f }), e[5] = r, e[6] = t, e[7] = f, e[8] = u, e[9] = h) : h = e[9];
|
|
2721
|
+
let p;
|
|
2722
|
+
return e[10] !== d || e[11] !== h ? (p = /* @__PURE__ */ C(le, { gap: "xs", children: [
|
|
2723
|
+
d,
|
|
2413
2724
|
h
|
|
2414
|
-
] }), e[10] =
|
|
2415
|
-
},
|
|
2416
|
-
if (
|
|
2417
|
-
const
|
|
2418
|
-
return
|
|
2419
|
-
}),
|
|
2725
|
+
] }), e[10] = d, e[11] = h, e[12] = p) : p = e[12], p;
|
|
2726
|
+
}, ji = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), Ot = (o, e) => o.map(e).sort(ji), Ui = (o, e) => o.find((t) => t.id === e.id), Qi = (o, e, t, n) => t.size > 0 ? !0 : e.some((l) => {
|
|
2727
|
+
if (l.isNew) return !0;
|
|
2728
|
+
const r = Ui(o, l);
|
|
2729
|
+
return r ? n(r, l) || l.sortOrder !== r.sortOrder : !0;
|
|
2730
|
+
}), zt = (o) => o instanceof Error ? o.message : o ? String(o) : null, vs = (o) => {
|
|
2420
2731
|
const {
|
|
2421
2732
|
errorTitle: e,
|
|
2422
2733
|
loadingText: t = "Loading...",
|
|
2423
2734
|
resetLabel: n,
|
|
2424
|
-
saveLabel:
|
|
2425
|
-
values:
|
|
2426
|
-
loadError:
|
|
2735
|
+
saveLabel: l,
|
|
2736
|
+
values: r,
|
|
2737
|
+
loadError: i,
|
|
2427
2738
|
onSave: c,
|
|
2428
2739
|
readOnly: a,
|
|
2429
|
-
toEditorValue:
|
|
2430
|
-
valueNeedsUpdate:
|
|
2431
|
-
...
|
|
2432
|
-
} = o, [h,
|
|
2740
|
+
toEditorValue: f,
|
|
2741
|
+
valueNeedsUpdate: d,
|
|
2742
|
+
...u
|
|
2743
|
+
} = o, [h, p] = ue([]), [m, g] = ue(/* @__PURE__ */ new Set()), [S, b] = ue(!1), [T, I] = ue(null), R = r ?? [];
|
|
2433
2744
|
me(() => {
|
|
2434
|
-
|
|
2435
|
-
}, [
|
|
2436
|
-
const
|
|
2437
|
-
b(!0),
|
|
2745
|
+
r && p(Ot(r, f));
|
|
2746
|
+
}, [r, f]);
|
|
2747
|
+
const x = async () => {
|
|
2748
|
+
b(!0), I(null);
|
|
2438
2749
|
try {
|
|
2439
2750
|
await c({
|
|
2440
|
-
deletedIds:
|
|
2751
|
+
deletedIds: m,
|
|
2441
2752
|
drafts: h,
|
|
2442
|
-
values:
|
|
2753
|
+
values: R
|
|
2443
2754
|
}), g(/* @__PURE__ */ new Set());
|
|
2444
|
-
} catch (
|
|
2445
|
-
|
|
2755
|
+
} catch (y) {
|
|
2756
|
+
I(y);
|
|
2446
2757
|
} finally {
|
|
2447
2758
|
b(!1);
|
|
2448
2759
|
}
|
|
2449
|
-
},
|
|
2450
|
-
|
|
2451
|
-
},
|
|
2452
|
-
|
|
2760
|
+
}, $ = Qi(R, h, m, d), A = zt(i) ?? zt(T), P = (y) => {
|
|
2761
|
+
y.isNew || g(/* @__PURE__ */ new Set([...m, y.id])), p(h.filter((L) => L.id !== y.id));
|
|
2762
|
+
}, w = () => {
|
|
2763
|
+
p(Ot(R, f)), g(/* @__PURE__ */ new Set()), I(null);
|
|
2453
2764
|
};
|
|
2454
|
-
return /* @__PURE__ */
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
/* @__PURE__ */ s(
|
|
2458
|
-
/* @__PURE__ */ s(
|
|
2459
|
-
] }) : /* @__PURE__ */ s(
|
|
2460
|
-
...
|
|
2461
|
-
isDefault:
|
|
2462
|
-
}))) :
|
|
2463
|
-
|
|
2464
|
-
}, onReset:
|
|
2765
|
+
return /* @__PURE__ */ C(X, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
|
|
2766
|
+
A ? /* @__PURE__ */ s(lt, { status: "error", colorPalette: "red", title: e, size: "sm", children: A }) : null,
|
|
2767
|
+
r === void 0 ? /* @__PURE__ */ C(le, { gap: "sm", color: "fg.muted", children: [
|
|
2768
|
+
/* @__PURE__ */ s(pt, { size: "sm" }),
|
|
2769
|
+
/* @__PURE__ */ s(M, { textStyle: "paragraph/S/regular", children: t })
|
|
2770
|
+
] }) : /* @__PURE__ */ s(Hi, { ...u, readOnly: a, values: h, onValuesChange: p, onDeleteValue: P, onSetDefault: u.showDefault ? (y) => p(h.map((L) => ({
|
|
2771
|
+
...L,
|
|
2772
|
+
isDefault: L.id === y.id
|
|
2773
|
+
}))) : u.onSetDefault, hasChanges: $, isSaving: S, headerActions: a ? void 0 : /* @__PURE__ */ s(Gi, { hasChanges: $, isSaving: S, resetLabel: n, saveLabel: l, onSave: () => {
|
|
2774
|
+
x();
|
|
2775
|
+
}, onReset: w }) })
|
|
2465
2776
|
] });
|
|
2466
|
-
},
|
|
2777
|
+
}, Nt = {
|
|
2467
2778
|
sectionOrder: [],
|
|
2468
2779
|
nodeOrderBySection: {},
|
|
2469
2780
|
sectionSlotById: {}
|
|
2470
|
-
},
|
|
2781
|
+
}, Xi = "pstdio/ui/tree-list-order", qi = (o) => `${Xi}/${o}`, Bt = (o) => {
|
|
2471
2782
|
const e = /* @__PURE__ */ new Set(), t = [];
|
|
2472
2783
|
for (const n of o)
|
|
2473
2784
|
e.has(n) || (e.add(n), t.push(n));
|
|
2474
2785
|
return t;
|
|
2475
|
-
},
|
|
2786
|
+
}, Ki = (o) => ({
|
|
2476
2787
|
sectionOrder: o.sectionOrder,
|
|
2477
2788
|
nodeOrderBySection: o.nodeOrderBySection,
|
|
2478
2789
|
sectionSlotById: o.sectionSlotById
|
|
2479
|
-
}),
|
|
2480
|
-
...
|
|
2790
|
+
}), Yi = (o) => at()(rt((e) => ({
|
|
2791
|
+
...Nt,
|
|
2481
2792
|
setSectionOrder: (t) => e((n) => ({
|
|
2482
2793
|
...n,
|
|
2483
|
-
sectionOrder:
|
|
2794
|
+
sectionOrder: Bt(t)
|
|
2484
2795
|
})),
|
|
2485
|
-
setNodeOrder: (t, n) => e((
|
|
2486
|
-
...
|
|
2796
|
+
setNodeOrder: (t, n) => e((l) => ({
|
|
2797
|
+
...l,
|
|
2487
2798
|
nodeOrderBySection: {
|
|
2488
|
-
...
|
|
2489
|
-
[t]:
|
|
2799
|
+
...l.nodeOrderBySection,
|
|
2800
|
+
[t]: Bt(n)
|
|
2490
2801
|
}
|
|
2491
2802
|
})),
|
|
2492
|
-
setSectionSlot: (t, n) => e((
|
|
2493
|
-
...
|
|
2803
|
+
setSectionSlot: (t, n) => e((l) => ({
|
|
2804
|
+
...l,
|
|
2494
2805
|
sectionSlotById: {
|
|
2495
|
-
...
|
|
2806
|
+
...l.sectionSlotById,
|
|
2496
2807
|
[t]: n
|
|
2497
2808
|
}
|
|
2498
2809
|
})),
|
|
@@ -2503,112 +2814,112 @@ const hl = (o) => {
|
|
|
2503
2814
|
resetNodeOrder: (t) => e((n) => {
|
|
2504
2815
|
if (!(t in n.nodeOrderBySection)) return n;
|
|
2505
2816
|
const {
|
|
2506
|
-
[t]:
|
|
2507
|
-
...
|
|
2817
|
+
[t]: l,
|
|
2818
|
+
...r
|
|
2508
2819
|
} = n.nodeOrderBySection;
|
|
2509
2820
|
return {
|
|
2510
2821
|
...n,
|
|
2511
|
-
nodeOrderBySection:
|
|
2822
|
+
nodeOrderBySection: r
|
|
2512
2823
|
};
|
|
2513
2824
|
}),
|
|
2514
|
-
reset: () => e(
|
|
2825
|
+
reset: () => e(Nt)
|
|
2515
2826
|
}), {
|
|
2516
|
-
name:
|
|
2517
|
-
storage:
|
|
2518
|
-
partialize:
|
|
2519
|
-
})),
|
|
2520
|
-
const e =
|
|
2827
|
+
name: qi(o.storageKey),
|
|
2828
|
+
storage: st(Ve),
|
|
2829
|
+
partialize: Ki
|
|
2830
|
+
})), Wt = /* @__PURE__ */ new Map(), Zi = (o) => {
|
|
2831
|
+
const e = Wt.get(o);
|
|
2521
2832
|
if (e) return e;
|
|
2522
|
-
const t =
|
|
2833
|
+
const t = Yi({
|
|
2523
2834
|
storageKey: o
|
|
2524
2835
|
});
|
|
2525
|
-
return
|
|
2526
|
-
},
|
|
2527
|
-
const t =
|
|
2836
|
+
return Wt.set(o, t), t;
|
|
2837
|
+
}, ys = (o, e) => {
|
|
2838
|
+
const t = O(2);
|
|
2528
2839
|
let n;
|
|
2529
|
-
return t[0] !== o ? (n =
|
|
2530
|
-
},
|
|
2840
|
+
return t[0] !== o ? (n = Zi(o), t[0] = o, t[1] = n) : n = t[1], it(n, e);
|
|
2841
|
+
}, Ji = (o, e) => {
|
|
2531
2842
|
if (e.length === 0) return o;
|
|
2532
|
-
const t = new Map(o.map((
|
|
2533
|
-
for (const
|
|
2534
|
-
const c = t.get(
|
|
2535
|
-
c === void 0 || n.has(c) || (n.add(c),
|
|
2843
|
+
const t = new Map(o.map((i, c) => [i.id, c])), n = /* @__PURE__ */ new Set(), l = [];
|
|
2844
|
+
for (const i of e) {
|
|
2845
|
+
const c = t.get(i);
|
|
2846
|
+
c === void 0 || n.has(c) || (n.add(c), l.push(o[c]));
|
|
2536
2847
|
}
|
|
2537
|
-
let
|
|
2538
|
-
for (let
|
|
2539
|
-
n.has(
|
|
2540
|
-
if (!
|
|
2541
|
-
for (let
|
|
2542
|
-
if (o[
|
|
2543
|
-
|
|
2848
|
+
let r = l.length > 0 && l.length !== o.length;
|
|
2849
|
+
for (let i = 0; i < o.length; i += 1)
|
|
2850
|
+
n.has(i) || (l.length !== i && !r && (r = !0), l.push(o[i]));
|
|
2851
|
+
if (!r) {
|
|
2852
|
+
for (let i = 0; i < o.length; i += 1)
|
|
2853
|
+
if (o[i] !== l[i]) {
|
|
2854
|
+
r = !0;
|
|
2544
2855
|
break;
|
|
2545
2856
|
}
|
|
2546
2857
|
}
|
|
2547
|
-
return
|
|
2548
|
-
},
|
|
2858
|
+
return r ? l : o;
|
|
2859
|
+
}, Cs = (o, e, t) => {
|
|
2549
2860
|
let n = !1;
|
|
2550
|
-
const
|
|
2551
|
-
|
|
2552
|
-
const
|
|
2553
|
-
for (const a of
|
|
2554
|
-
const
|
|
2861
|
+
const l = Ji(o, e);
|
|
2862
|
+
l !== o && (n = !0);
|
|
2863
|
+
const r = new Map(o.flatMap((a) => a.nodes.map((f) => [f.id, f]))), i = new Set(Object.entries(t).filter(([a]) => o.some((f) => f.id === a)).flatMap(([, a]) => a.filter((f) => r.has(f)))), c = [];
|
|
2864
|
+
for (const a of l) {
|
|
2865
|
+
const f = t[a.id];
|
|
2555
2866
|
if (!(a.id in t)) {
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2867
|
+
const p = a.nodes.filter((m) => !i.has(m.id));
|
|
2868
|
+
p.length === a.nodes.length ? c.push(a) : (n = !0, c.push({
|
|
2558
2869
|
...a,
|
|
2559
|
-
nodes:
|
|
2870
|
+
nodes: p
|
|
2560
2871
|
}));
|
|
2561
2872
|
continue;
|
|
2562
2873
|
}
|
|
2563
|
-
const
|
|
2564
|
-
const
|
|
2565
|
-
return
|
|
2566
|
-
}),
|
|
2567
|
-
h.length !== a.nodes.length || h.some((
|
|
2874
|
+
const d = (f ?? []).flatMap((p) => {
|
|
2875
|
+
const m = r.get(p);
|
|
2876
|
+
return m ? [m] : [];
|
|
2877
|
+
}), u = a.nodes.filter((p) => !i.has(p.id)), h = [...d, ...u];
|
|
2878
|
+
h.length !== a.nodes.length || h.some((p, m) => p !== a.nodes[m]) ? (n = !0, c.push({
|
|
2568
2879
|
...a,
|
|
2569
2880
|
nodes: h
|
|
2570
2881
|
})) : c.push(a);
|
|
2571
2882
|
}
|
|
2572
2883
|
return n ? c : o;
|
|
2573
|
-
},
|
|
2884
|
+
}, Mt = {
|
|
2574
2885
|
sectionOverrides: {},
|
|
2575
2886
|
nodeOverrides: {}
|
|
2576
|
-
},
|
|
2887
|
+
}, er = "pstdio/ui/tree-list-visibility", tr = (o) => `${er}/${o}`, nr = (o, e) => o ?? (e ? "hidden" : "shown"), or = (o) => o === "hidden" ? "shown" : "hidden", je = (o, e, t) => {
|
|
2577
2888
|
if (t === void 0) {
|
|
2578
2889
|
if (!(e in o)) return o;
|
|
2579
2890
|
const {
|
|
2580
2891
|
[e]: n,
|
|
2581
|
-
...
|
|
2892
|
+
...l
|
|
2582
2893
|
} = o;
|
|
2583
|
-
return
|
|
2894
|
+
return l;
|
|
2584
2895
|
}
|
|
2585
2896
|
return o[e] === t ? o : {
|
|
2586
2897
|
...o,
|
|
2587
2898
|
[e]: t
|
|
2588
2899
|
};
|
|
2589
|
-
},
|
|
2590
|
-
const n =
|
|
2900
|
+
}, Ft = (o, e, t) => {
|
|
2901
|
+
const n = or(nr(o[e], t));
|
|
2591
2902
|
return je(o, e, n);
|
|
2592
|
-
},
|
|
2903
|
+
}, lr = (o) => ({
|
|
2593
2904
|
sectionOverrides: o.sectionOverrides,
|
|
2594
2905
|
nodeOverrides: o.nodeOverrides
|
|
2595
|
-
}),
|
|
2596
|
-
...
|
|
2597
|
-
setSection: (t, n) => e((
|
|
2598
|
-
...
|
|
2599
|
-
sectionOverrides: je(
|
|
2906
|
+
}), ir = (o) => at()(rt((e) => ({
|
|
2907
|
+
...Mt,
|
|
2908
|
+
setSection: (t, n) => e((l) => ({
|
|
2909
|
+
...l,
|
|
2910
|
+
sectionOverrides: je(l.sectionOverrides, t, n)
|
|
2600
2911
|
})),
|
|
2601
|
-
setNode: (t, n) => e((
|
|
2602
|
-
...
|
|
2603
|
-
nodeOverrides: je(
|
|
2912
|
+
setNode: (t, n) => e((l) => ({
|
|
2913
|
+
...l,
|
|
2914
|
+
nodeOverrides: je(l.nodeOverrides, t, n)
|
|
2604
2915
|
})),
|
|
2605
|
-
toggleSection: (t, n) => e((
|
|
2606
|
-
...
|
|
2607
|
-
sectionOverrides:
|
|
2916
|
+
toggleSection: (t, n) => e((l) => ({
|
|
2917
|
+
...l,
|
|
2918
|
+
sectionOverrides: Ft(l.sectionOverrides, t, n)
|
|
2608
2919
|
})),
|
|
2609
|
-
toggleNode: (t, n) => e((
|
|
2610
|
-
...
|
|
2611
|
-
nodeOverrides:
|
|
2920
|
+
toggleNode: (t, n) => e((l) => ({
|
|
2921
|
+
...l,
|
|
2922
|
+
nodeOverrides: Ft(l.nodeOverrides, t, n)
|
|
2612
2923
|
})),
|
|
2613
2924
|
clearSection: (t) => e((n) => ({
|
|
2614
2925
|
...n,
|
|
@@ -2618,272 +2929,273 @@ const hl = (o) => {
|
|
|
2618
2929
|
...n,
|
|
2619
2930
|
nodeOverrides: je(n.nodeOverrides, t, void 0)
|
|
2620
2931
|
})),
|
|
2621
|
-
reset: () => e(
|
|
2932
|
+
reset: () => e(Mt)
|
|
2622
2933
|
}), {
|
|
2623
|
-
name:
|
|
2624
|
-
storage:
|
|
2625
|
-
partialize:
|
|
2626
|
-
})),
|
|
2627
|
-
const e =
|
|
2934
|
+
name: tr(o.storageKey),
|
|
2935
|
+
storage: st(Ve),
|
|
2936
|
+
partialize: lr
|
|
2937
|
+
})), Ht = /* @__PURE__ */ new Map(), rr = (o) => {
|
|
2938
|
+
const e = Ht.get(o);
|
|
2628
2939
|
if (e) return e;
|
|
2629
|
-
const t =
|
|
2940
|
+
const t = ir({
|
|
2630
2941
|
storageKey: o
|
|
2631
2942
|
});
|
|
2632
|
-
return
|
|
2633
|
-
},
|
|
2634
|
-
const t =
|
|
2943
|
+
return Ht.set(o, t), t;
|
|
2944
|
+
}, ws = (o, e) => {
|
|
2945
|
+
const t = O(2);
|
|
2635
2946
|
let n;
|
|
2636
|
-
return t[0] !== o ? (n =
|
|
2637
|
-
},
|
|
2947
|
+
return t[0] !== o ? (n = rr(o), t[0] = o, t[1] = n) : n = t[1], it(n, e);
|
|
2948
|
+
}, sr = [], yn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), ar = (o) => {
|
|
2638
2949
|
const e = o.toLowerCase().split("."), t = [];
|
|
2639
2950
|
for (let n = 1; n < e.length; n += 1) t.push(e.slice(n).join("."));
|
|
2640
2951
|
return t;
|
|
2641
|
-
},
|
|
2952
|
+
}, cr = (o, e, t) => {
|
|
2642
2953
|
if (t) return o.defaults.folder;
|
|
2643
2954
|
const n = o.fileNames[e.toLowerCase()];
|
|
2644
2955
|
if (n) return n;
|
|
2645
|
-
for (const
|
|
2646
|
-
const
|
|
2647
|
-
if (
|
|
2956
|
+
for (const l of ar(e)) {
|
|
2957
|
+
const r = o.fileExtensions[l];
|
|
2958
|
+
if (r) return r;
|
|
2648
2959
|
}
|
|
2649
2960
|
return o.defaults.file;
|
|
2650
|
-
},
|
|
2961
|
+
}, dr = (o, e) => {
|
|
2651
2962
|
if (e.fontId) {
|
|
2652
2963
|
const t = o.fonts.find((n) => n.fontFamily === `${o.id}-${e.fontId}`);
|
|
2653
2964
|
if (t) return t.fontFamily;
|
|
2654
2965
|
}
|
|
2655
2966
|
return o.fonts[0]?.fontFamily;
|
|
2656
|
-
},
|
|
2967
|
+
}, fr = (o) => {
|
|
2657
2968
|
const e = /^\\([0-9a-fA-F]+)$/.exec(o);
|
|
2658
2969
|
return e ? String.fromCodePoint(Number.parseInt(e[1], 16)) : o;
|
|
2659
|
-
},
|
|
2970
|
+
}, ur = (o, e, t = !1) => {
|
|
2660
2971
|
if (!o) return;
|
|
2661
|
-
const n =
|
|
2972
|
+
const n = cr(o, e, t);
|
|
2662
2973
|
if (!n) return;
|
|
2663
|
-
const
|
|
2664
|
-
if (!
|
|
2665
|
-
const
|
|
2666
|
-
if (
|
|
2974
|
+
const l = o.definitions[n];
|
|
2975
|
+
if (!l?.fontCharacter) return;
|
|
2976
|
+
const r = dr(o, l);
|
|
2977
|
+
if (r)
|
|
2667
2978
|
return {
|
|
2668
|
-
fontFamily:
|
|
2669
|
-
fontCharacter:
|
|
2670
|
-
fontColor:
|
|
2979
|
+
fontFamily: r,
|
|
2980
|
+
fontCharacter: fr(l.fontCharacter),
|
|
2981
|
+
fontColor: l.fontColor
|
|
2671
2982
|
};
|
|
2672
|
-
},
|
|
2983
|
+
}, Vt = "data-pstdio-file-icon-fonts", hr = (o) => {
|
|
2673
2984
|
const e = o.src.map((t) => `url("${t.url}")${t.format ? ` format("${t.format}")` : ""}`).join(", ");
|
|
2674
2985
|
return ["@font-face {", ` font-family: "${o.fontFamily}";`, ` src: ${e};`, ` font-weight: ${o.weight ?? "normal"};`, ` font-style: ${o.style ?? "normal"};`, "}"].join(`
|
|
2675
2986
|
`);
|
|
2676
|
-
},
|
|
2987
|
+
}, mr = (o, e) => {
|
|
2677
2988
|
if (typeof document > "u") return;
|
|
2678
|
-
let t = document.querySelector(`style[${
|
|
2679
|
-
t || (t = document.createElement("style"), t.setAttribute(
|
|
2680
|
-
const n = e.find((
|
|
2681
|
-
t.textContent = (n?.fonts ?? []).map(
|
|
2989
|
+
let t = document.querySelector(`style[${Vt}]`);
|
|
2990
|
+
t || (t = document.createElement("style"), t.setAttribute(Vt, ""), document.head.appendChild(t));
|
|
2991
|
+
const n = e.find((l) => l.id === o);
|
|
2992
|
+
t.textContent = (n?.fonts ?? []).map(hr).join(`
|
|
2682
2993
|
|
|
2683
2994
|
`);
|
|
2684
|
-
},
|
|
2685
|
-
if (typeof window > "u") return
|
|
2686
|
-
const e = Ve().getItem(
|
|
2687
|
-
return
|
|
2688
|
-
},
|
|
2689
|
-
const e =
|
|
2995
|
+
}, Cn = "file-icon-theme-preference", mt = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, wn = _n(null), pr = (o) => {
|
|
2996
|
+
if (typeof window > "u") return mt(o);
|
|
2997
|
+
const e = Ve().getItem(Cn);
|
|
2998
|
+
return yn(e, o) ? e : mt(o);
|
|
2999
|
+
}, Is = (o) => {
|
|
3000
|
+
const e = O(18), {
|
|
2690
3001
|
children: t,
|
|
2691
3002
|
themePreferences: n
|
|
2692
|
-
} = o,
|
|
2693
|
-
let
|
|
2694
|
-
e[0] !==
|
|
2695
|
-
const [
|
|
2696
|
-
let a,
|
|
2697
|
-
e[2] !==
|
|
2698
|
-
const
|
|
2699
|
-
if (
|
|
2700
|
-
c(
|
|
3003
|
+
} = o, l = n === void 0 ? sr : n;
|
|
3004
|
+
let r;
|
|
3005
|
+
e[0] !== l ? (r = () => pr(l), e[0] = l, e[1] = r) : r = e[1];
|
|
3006
|
+
const [i, c] = ue(r);
|
|
3007
|
+
let a, f;
|
|
3008
|
+
e[2] !== i || e[3] !== l ? (a = () => {
|
|
3009
|
+
const m = yn(i, l) ? i : mt(l);
|
|
3010
|
+
if (m !== i) {
|
|
3011
|
+
c(m);
|
|
2701
3012
|
return;
|
|
2702
3013
|
}
|
|
2703
|
-
|
|
2704
|
-
},
|
|
2705
|
-
let
|
|
2706
|
-
if (e[6] !==
|
|
2707
|
-
let
|
|
2708
|
-
e[9] !==
|
|
3014
|
+
mr(m, l), typeof window < "u" && m && Ve().setItem(Cn, m);
|
|
3015
|
+
}, f = [i, l], e[2] = i, e[3] = l, e[4] = a, e[5] = f) : (a = e[4], f = e[5]), me(a, f);
|
|
3016
|
+
let d;
|
|
3017
|
+
if (e[6] !== i || e[7] !== l) {
|
|
3018
|
+
let m;
|
|
3019
|
+
e[9] !== i ? (m = (g) => g.id === i, e[9] = i, e[10] = m) : m = e[10], d = l.find(m), e[6] = i, e[7] = l, e[8] = d;
|
|
2709
3020
|
} else
|
|
2710
|
-
|
|
2711
|
-
const
|
|
3021
|
+
d = e[8];
|
|
3022
|
+
const u = d;
|
|
2712
3023
|
let h;
|
|
2713
|
-
e[11] !==
|
|
2714
|
-
fileIconThemePreference:
|
|
2715
|
-
fileIconThemePreferences:
|
|
2716
|
-
activeFileIconTheme:
|
|
3024
|
+
e[11] !== u || e[12] !== i || e[13] !== l ? (h = {
|
|
3025
|
+
fileIconThemePreference: i,
|
|
3026
|
+
fileIconThemePreferences: l,
|
|
3027
|
+
activeFileIconTheme: u,
|
|
2717
3028
|
setFileIconThemePreference: c
|
|
2718
|
-
}, e[11] =
|
|
2719
|
-
let
|
|
2720
|
-
return e[15] !== t || e[16] !== h ? (
|
|
2721
|
-
},
|
|
2722
|
-
const o =
|
|
3029
|
+
}, e[11] = u, e[12] = i, e[13] = l, e[14] = h) : h = e[14];
|
|
3030
|
+
let p;
|
|
3031
|
+
return e[15] !== t || e[16] !== h ? (p = /* @__PURE__ */ s(wn, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = p) : p = e[17], p;
|
|
3032
|
+
}, Ts = () => {
|
|
3033
|
+
const o = On(wn);
|
|
2723
3034
|
if (!o)
|
|
2724
3035
|
throw new Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
|
|
2725
3036
|
return o;
|
|
2726
|
-
},
|
|
3037
|
+
}, As = (o, e = {}) => {
|
|
2727
3038
|
const {
|
|
2728
3039
|
isDirectory: t = !1,
|
|
2729
3040
|
theme: n,
|
|
2730
|
-
size:
|
|
2731
|
-
} = e,
|
|
2732
|
-
if (
|
|
3041
|
+
size: l = 16
|
|
3042
|
+
} = e, r = ur(n, o, t);
|
|
3043
|
+
if (r) {
|
|
2733
3044
|
const c = {
|
|
2734
|
-
fontFamily: `"${
|
|
2735
|
-
color:
|
|
2736
|
-
fontSize:
|
|
3045
|
+
fontFamily: `"${r.fontFamily}"`,
|
|
3046
|
+
color: r.fontColor,
|
|
3047
|
+
fontSize: l,
|
|
2737
3048
|
lineHeight: 1,
|
|
2738
3049
|
display: "inline-flex"
|
|
2739
3050
|
};
|
|
2740
|
-
return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: c, children:
|
|
3051
|
+
return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: c, children: r.fontCharacter });
|
|
2741
3052
|
}
|
|
2742
|
-
if (t) return /* @__PURE__ */ s(
|
|
2743
|
-
const
|
|
2744
|
-
return /* @__PURE__ */ s(
|
|
3053
|
+
if (t) return /* @__PURE__ */ s(Jt, { size: l });
|
|
3054
|
+
const i = uo(o);
|
|
3055
|
+
return /* @__PURE__ */ s(i, { size: l });
|
|
2745
3056
|
};
|
|
2746
3057
|
export {
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
3058
|
+
Ms as ANCHOR_GRID_VALUES,
|
|
3059
|
+
Fs as ActionInput,
|
|
3060
|
+
jr as Activity,
|
|
3061
|
+
ct as ActivityAvatar,
|
|
3062
|
+
un as ActivityComment,
|
|
3063
|
+
ko as ActivityComposer,
|
|
3064
|
+
hn as ActivityEvent,
|
|
3065
|
+
mn as ActivityFeed,
|
|
3066
|
+
Lo as ActivityHeader,
|
|
3067
|
+
Po as ActivityReply,
|
|
3068
|
+
$o as ActivityRoot,
|
|
3069
|
+
pn as ActivityTimeline,
|
|
3070
|
+
lt as AlertMessage,
|
|
3071
|
+
Hs as AnchorGridInput,
|
|
3072
|
+
Jr as AttachedMenu,
|
|
3073
|
+
es as AttachedPanel,
|
|
3074
|
+
Vs as AttachmentChip,
|
|
3075
|
+
Gs as BooleanInput,
|
|
3076
|
+
ls as Breadcrumb,
|
|
3077
|
+
ts as BubbleButton,
|
|
3078
|
+
ns as BubblePanel,
|
|
3079
|
+
Rs as ChakraProvider,
|
|
3080
|
+
Pa as Checkbox,
|
|
3081
|
+
js as Chip,
|
|
3082
|
+
Us as ColorInput,
|
|
3083
|
+
kl as ContentPlaceholder,
|
|
3084
|
+
is as ContentPlaceholderLabel,
|
|
3085
|
+
Ur as DEFAULT_PALETTE_ASSET_LIMIT,
|
|
3086
|
+
Qs as DateInput,
|
|
3087
|
+
Sl as DeleteConfirmationModal,
|
|
3088
|
+
ho as EmptyState,
|
|
3089
|
+
rs as ErrorBoundary,
|
|
3090
|
+
Is as FileIconThemePreferenceProvider,
|
|
3091
|
+
Xs as FileUploadInput,
|
|
3092
|
+
ro as Header,
|
|
3093
|
+
qr as HorizontalMenuStack,
|
|
3094
|
+
qs as HorizontalTextInput,
|
|
3095
|
+
Ol as IconColorPicker,
|
|
3096
|
+
ss as IntegrationCard,
|
|
3097
|
+
Kr as ItemSection,
|
|
2787
3098
|
Qe as ListRow,
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
3099
|
+
Ks as MarkdownInput,
|
|
3100
|
+
Zr as NotificationCenter,
|
|
3101
|
+
Ys as NumberInput,
|
|
3102
|
+
At as PANEL_HEADER_CONTROL_SIZE,
|
|
3103
|
+
il as PANEL_HEADER_HEIGHT,
|
|
3104
|
+
Yr as PANEL_HEADER_TAB_SIZE,
|
|
3105
|
+
Qr as Palette,
|
|
3106
|
+
Xr as PaletteShortcut,
|
|
3107
|
+
wa as ParamEditor,
|
|
3108
|
+
Zs as ParamEditorControlItem,
|
|
3109
|
+
ds as ParamEditorControlList,
|
|
3110
|
+
Js as ParamEditorField,
|
|
3111
|
+
ea as ParamEditorFieldLabel,
|
|
3112
|
+
ta as ParamEditorInlineGroup,
|
|
3113
|
+
na as ParamEditorLabel,
|
|
3114
|
+
oa as ParamEditorReadOnlyField,
|
|
3115
|
+
la as ParamEditorReadOnlyValue,
|
|
3116
|
+
Ia as ParamEditorRow,
|
|
3117
|
+
Ta as ParamEditorSection,
|
|
3118
|
+
Ns as Radio,
|
|
3119
|
+
Bs as RadioGroup,
|
|
3120
|
+
ia as RangeInput,
|
|
3121
|
+
os as RepoPickerDialog,
|
|
3122
|
+
_s as ResizableSplitLayout,
|
|
3123
|
+
Ls as ResourceActionMenu,
|
|
3124
|
+
Gr as ResourceActivityFeed,
|
|
3125
|
+
ka as ResourceBadge,
|
|
3126
|
+
tn as ResourceContextMenu,
|
|
3127
|
+
ra as ResourceInput,
|
|
3128
|
+
ot as ScrollArea,
|
|
3129
|
+
bn as SearchModalContent,
|
|
3130
|
+
Es as SearchableMenu,
|
|
3131
|
+
as as SegmentedControl,
|
|
3132
|
+
sa as SegmentedInput,
|
|
3133
|
+
aa as SelectionInput,
|
|
3134
|
+
ga as SessionIndicator,
|
|
3135
|
+
fs as Sidenav,
|
|
3136
|
+
zl as SimpleCard,
|
|
3137
|
+
Nl as SimpleCardBody,
|
|
3138
|
+
ca as Slider,
|
|
3139
|
+
Ra as Switch,
|
|
3140
|
+
Hi as TagEditor,
|
|
3141
|
+
Di as TagEditorHeading,
|
|
3142
|
+
Gi as TagEditorSaveBar,
|
|
3143
|
+
vs as TagSettingsPanel,
|
|
3144
|
+
Ll as TagSwatch,
|
|
3145
|
+
da as TextInput,
|
|
3146
|
+
za as ThemePreferenceProvider,
|
|
3147
|
+
cs as Toaster,
|
|
2836
3148
|
Ue as Tooltip,
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
3149
|
+
so as TreeList,
|
|
3150
|
+
Os as TreeListDragProvider,
|
|
3151
|
+
fa as VectorInput,
|
|
3152
|
+
Ss as WindowTabs,
|
|
3153
|
+
xs as WindowTitleBar,
|
|
3154
|
+
ba as WorkspaceBadge,
|
|
3155
|
+
mr as applyFileIconThemePreference,
|
|
3156
|
+
Na as applyThemePreference,
|
|
3157
|
+
Cs as applyTreeListOrder,
|
|
3158
|
+
bs as buildTabVisibilityMenuActions,
|
|
3159
|
+
ps as buildTreeVisibilityMenuActions,
|
|
3160
|
+
ua as createGlyphIcon,
|
|
3161
|
+
Ea as createMonacoThemeFromVsCodeTheme,
|
|
3162
|
+
Da as createThemePreferenceFromVsCodeTheme,
|
|
3163
|
+
sr as defaultFileIconThemePreferences,
|
|
3164
|
+
Ba as defaultThemePreferences,
|
|
3165
|
+
Fo as filterPaletteEntries,
|
|
3166
|
+
hs as filterVisibleNodes,
|
|
3167
|
+
ms as filterVisibleSections,
|
|
3168
|
+
gs as filterVisibleTabs,
|
|
3169
|
+
uo as getFileTypeIcon,
|
|
3170
|
+
ao as getIconComponent,
|
|
3171
|
+
Wa as getInitialThemePreference,
|
|
3172
|
+
pi as getTabVisibilityStore,
|
|
3173
|
+
Ma as getThemePreferenceClassName,
|
|
3174
|
+
Fa as getThemePreferenceClassNames,
|
|
3175
|
+
Ha as getThemePreferenceMode,
|
|
3176
|
+
Zi as getTreeListOrderStore,
|
|
3177
|
+
rr as getTreeListVisibilityStore,
|
|
3178
|
+
Sa as handleDialogAcceptShortcut,
|
|
3179
|
+
$a as installPrismGlobal,
|
|
3180
|
+
ha as isAnchorGridValue,
|
|
3181
|
+
yn as isFileIconThemePreference,
|
|
3182
|
+
ma as isParamEditorRichControl,
|
|
3183
|
+
Va as isThemePreference,
|
|
3184
|
+
fo as optionColors,
|
|
3185
|
+
co as optionIcons,
|
|
3186
|
+
_a as psTheme,
|
|
3187
|
+
As as resolveFileIconElement,
|
|
3188
|
+
ur as resolveFileIconGlyph,
|
|
3189
|
+
xa as resolveSessionIndicatorColor,
|
|
3190
|
+
va as resolveSessionIndicatorIcon,
|
|
2879
3191
|
Ge as resolveVisibility,
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
3192
|
+
ya as sessionCompletionStatuses,
|
|
3193
|
+
Vl as toaster,
|
|
3194
|
+
Ts as useFileIconThemePreference,
|
|
2883
3195
|
Be as useSidenavStore,
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
3196
|
+
us as useTabVisibilityStore,
|
|
3197
|
+
Ga as useThemePreference,
|
|
3198
|
+
ys as useTreeListOrderStore,
|
|
3199
|
+
ws as useTreeListVisibilityStore
|
|
2888
3200
|
};
|
|
2889
3201
|
//# sourceMappingURL=index.js.map
|