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