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