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