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