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