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