@pstdio/ui 0.45.0 → 0.46.0-nightly.20261024001730
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--W7gDFCk.js → MermaidComponent-BTJWjd_T.js} +3 -3
- package/dist/{MermaidComponent--W7gDFCk.js.map → MermaidComponent-BTJWjd_T.js.map} +1 -1
- package/dist/chat-ui.d.ts +2 -2
- package/dist/chat-ui.js +924 -934
- package/dist/chat-ui.js.map +1 -1
- package/dist/{collection-view-grouping-BHuFPVAV.js → collection-page-C3j-h1JH.js} +23 -3
- package/dist/collection-page-C3j-h1JH.js.map +1 -0
- package/dist/{collection-view-search-CLvyY0cg.js → collection-view-search-DiSUDYU2.js} +47 -44
- package/dist/collection-view-search-DiSUDYU2.js.map +1 -0
- package/dist/collection-view.d.ts +3 -76
- package/dist/collection-view.js +2 -2
- package/dist/data-table.d.ts +4 -1
- package/dist/data-table.js +616 -565
- package/dist/data-table.js.map +1 -1
- package/dist/{diff-drawer-COlghuX8.js → diff-drawer-IV-OiDxD.js} +2 -2
- package/dist/{diff-drawer-COlghuX8.js.map → diff-drawer-IV-OiDxD.js.map} +1 -1
- package/dist/{diff-viewer-nCYtig03.js → diff-viewer-Ck7aEJ4M.js} +5 -5
- package/dist/{diff-viewer-nCYtig03.js.map → diff-viewer-Ck7aEJ4M.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-DXXkOgUC.js → display-sort-control-BD0Zyiag.js} +6 -6
- package/dist/{display-sort-control-DXXkOgUC.js.map → display-sort-control-BD0Zyiag.js.map} +1 -1
- package/dist/{edit-mode-data-table-lvGsQ1Da.js → edit-mode-data-table-B1I-A3MA.js} +535 -521
- package/dist/edit-mode-data-table-B1I-A3MA.js.map +1 -0
- package/dist/{index-DYCXgPCg.d.ts → index-BFMTwV4o.d.ts} +28 -4
- package/dist/index-Bk6mxsH4.d.ts +77 -0
- package/dist/{index-DzVOXj8n.d.ts → index-CngCuhvm.d.ts} +1 -0
- package/dist/index.d.ts +24 -2
- package/dist/index.js +478 -502
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +1 -1
- package/dist/kanban-renderer.js +707 -620
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{list-row-Dqb5Xfjf.js → list-row-kLM6WuQG.js} +449 -351
- package/dist/list-row-kLM6WuQG.js.map +1 -0
- package/dist/{markdown-editor-D419iTD2.js → markdown-editor-BdLGFMwE.js} +6 -6
- package/dist/{markdown-editor-D419iTD2.js.map → markdown-editor-BdLGFMwE.js.map} +1 -1
- package/dist/{mermaid-renderer-B8LpF3rD.js → mermaid-renderer-BRlf9f7T.js} +2 -2
- package/dist/{mermaid-renderer-B8LpF3rD.js.map → mermaid-renderer-BRlf9f7T.js.map} +1 -1
- package/dist/mermaid.js +1 -1
- package/dist/{number-input-DzRvKj64.js → number-input-BDNXzwm4.js} +2 -2
- package/dist/{number-input-DzRvKj64.js.map → number-input-BDNXzwm4.js.map} +1 -1
- package/dist/{param-editor-DyIO1rSf.js → param-editor-DjiG9M21.js} +2 -2
- package/dist/{param-editor-DyIO1rSf.js.map → param-editor-DjiG9M21.js.map} +1 -1
- package/dist/{param-editor-field-Bt7NP9OH.js → param-editor-field-A7rxJt6F.js} +5 -5
- package/dist/{param-editor-field-Bt7NP9OH.js.map → param-editor-field-A7rxJt6F.js.map} +1 -1
- package/dist/param-editor.js +3 -3
- package/dist/prism-JmhzmG59.js +428 -0
- package/dist/prism-JmhzmG59.js.map +1 -0
- package/dist/{rich-text-DBpBdWtn.js → rich-text-Chu0mWpT.js} +11 -14
- package/dist/rich-text-Chu0mWpT.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +3 -3
- package/dist/scroll-area-BEKr-RLs.js +117 -0
- package/dist/scroll-area-BEKr-RLs.js.map +1 -0
- package/dist/terminal.js +1 -1
- package/dist/{theme-rmCwx-aG.js → theme-DOfFdMxV.js} +41 -11
- package/dist/theme-DOfFdMxV.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-Bg8U7ZYc.js → tree-list-UO26kzU6.js} +493 -390
- package/dist/tree-list-UO26kzU6.js.map +1 -0
- package/dist/{workspace-badge-Dqi-Sh_Q.js → workspace-badge-dFFG6MXy.js} +2 -2
- package/dist/{workspace-badge-Dqi-Sh_Q.js.map → workspace-badge-dFFG6MXy.js.map} +1 -1
- package/examples/performance/README.md +11 -0
- package/examples/performance/extension.ts +18 -0
- package/examples/performance/view.tsx +57 -0
- package/package.json +4 -3
- package/dist/collection-view-grouping-BHuFPVAV.js.map +0 -1
- package/dist/collection-view-search-CLvyY0cg.js.map +0 -1
- package/dist/edit-mode-data-table-lvGsQ1Da.js.map +0 -1
- package/dist/list-row-Dqb5Xfjf.js.map +0 -1
- package/dist/prism-CQBZiF5P.js +0 -391
- package/dist/prism-CQBZiF5P.js.map +0 -1
- package/dist/rich-text-DBpBdWtn.js.map +0 -1
- package/dist/scroll-area-BfAlvhjh.js +0 -102
- package/dist/scroll-area-BfAlvhjh.js.map +0 -1
- package/dist/theme-rmCwx-aG.js.map +0 -1
- package/dist/tree-list-Bg8U7ZYc.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./activity-timeline-D-IDENMg.js";
|
|
2
|
-
import { n as c, t as l } from "./scroll-area-
|
|
3
|
-
import { c as u, l as d, o as f, r as p, t as m, u as h } from "./list-row-
|
|
2
|
+
import { n as c, t as l } from "./scroll-area-BEKr-RLs.js";
|
|
3
|
+
import { c as u, l as d, o as f, r as p, t as m, u as h } from "./list-row-kLM6WuQG.js";
|
|
4
4
|
import { t as g } from "./use-virtualizer-B6ABIiNI.js";
|
|
5
|
-
import { n as _, r as v, t as y } from "./tree-list-
|
|
6
|
-
import { a as b, c as x, i as S,
|
|
7
|
-
import { a as
|
|
8
|
-
import { a as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { i as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { n as
|
|
16
|
-
import { a as
|
|
17
|
-
import { t as
|
|
18
|
-
import { AbsoluteCenter as
|
|
5
|
+
import { n as _, r as v, t as y } from "./tree-list-UO26kzU6.js";
|
|
6
|
+
import { a as b, c as x, i as S, l as C, n as w, o as T, r as E, s as D, t as O } from "./prism-JmhzmG59.js";
|
|
7
|
+
import { a as k, i as A, n as j, o as M, r as N, t as P } from "./workspace-badge-dFFG6MXy.js";
|
|
8
|
+
import { a as F, i as I, n as L, r as R, t as z } from "./host-storage-CtscVB4w.js";
|
|
9
|
+
import { t as B } from "./drop-indicator-66rhST1K.js";
|
|
10
|
+
import { t as V } from "./empty-state-J96iLli9.js";
|
|
11
|
+
import { i as ee, n as te, r as H, t as ne } from "./icon-options-DJmsp8bw.js";
|
|
12
|
+
import { n as re, t as U } from "./radio-BPnviQ4h.js";
|
|
13
|
+
import { t as W } from "./browser-storage-CIj_9R9x.js";
|
|
14
|
+
import { n as G, r as K, t as q } from "./theme-DOfFdMxV.js";
|
|
15
|
+
import { n as ie, t as ae } from "./theme-BMHkV5Ry.js";
|
|
16
|
+
import { a as oe, 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-Bdi0s7vE.js";
|
|
17
|
+
import { t as he } from "./resolve-icon-component-BrIOFsnC.js";
|
|
18
|
+
import { AbsoluteCenter as ge, Badge as _e, Box as J, Breadcrumb as ve, Button as ye, Center as be, ChakraProvider as xe, CloseButton as Se, Collapsible as Ce, Dialog as Y, Editable as we, Flex as Te, Grid as Ee, HStack as De, Icon as Oe, IconButton as ke, Input as Ae, InputGroup as je, Kbd as Me, Menu as Ne, Popover as Pe, Portal as Fe, Skeleton as Ie, Spacer as Le, Spinner as Re, Stack as ze, Text as X, Textarea as Be, Toast as Ve, Toaster as He, chakra as Ue, createSlotRecipeContext as We, createToaster as Ge, defineRecipe as Ke, defineSlotRecipe as qe, useRecipe as Je, useSlotRecipe as Ye } from "@chakra-ui/react";
|
|
19
19
|
import { c as Z } from "react/compiler-runtime";
|
|
20
|
-
import { Fragment as
|
|
21
|
-
import * as
|
|
22
|
-
import { Component as
|
|
23
|
-
import { ArrowLeft as
|
|
20
|
+
import { Fragment as Xe, jsx as Q, jsxs as $ } from "react/jsx-runtime";
|
|
21
|
+
import * as Ze from "react";
|
|
22
|
+
import { Component as Qe, Fragment as $e, createContext as et, forwardRef as tt, useContext as nt, useEffect as rt, useRef as it, useState as at } from "react";
|
|
23
|
+
import { ArrowLeft as ot, ArrowRight as st, ArrowUp as ct, Bell as lt, Check as ut, ChevronDown as dt, ChevronRight as ft, Command as pt, Folder as mt, FolderPlus as ht, GripVertical as gt, HardDrive as _t, Home as vt, Minus as yt, Option as bt, Paperclip as xt, Plus as St, Search as Ct, SquareArrowOutUpRight as wt, Trash2 as Tt, X as Et } from "lucide-react";
|
|
24
24
|
import { DndContext as Dt, DragOverlay as Ot, KeyboardSensor as kt, PointerSensor as At, closestCenter as jt, pointerWithin as Mt, useSensor as Nt, useSensors as Pt } from "@dnd-kit/core";
|
|
25
25
|
import { SortableContext as Ft, arrayMove as It, sortableKeyboardCoordinates as Lt, useSortable as Rt, verticalListSortingStrategy as zt } from "@dnd-kit/sortable";
|
|
26
26
|
import { useStore as Bt } from "zustand";
|
|
@@ -29,10 +29,10 @@ import { createStore as Ut } from "zustand/vanilla";
|
|
|
29
29
|
import { CSS as Wt } from "@dnd-kit/utilities";
|
|
30
30
|
// src/components/activity/activity-composer.tsx
|
|
31
31
|
var Gt = (e) => {
|
|
32
|
-
let { actor: n, value: r, defaultValue: i = "", placeholder: a = "Leave a comment...", variant: o = "standalone", minRows: s = o === "standalone" ? 3 : 1, attachLabel: l = "Attach file", submitLabel: u = "Submit comment", actions: d, onAttach: f, onChange: p, onSubmit: m, ...h } = e, [g, _] =
|
|
32
|
+
let { actor: n, value: r, defaultValue: i = "", placeholder: a = "Leave a comment...", variant: o = "standalone", minRows: s = o === "standalone" ? 3 : 1, attachLabel: l = "Attach file", submitLabel: u = "Submit comment", actions: d, onAttach: f, onChange: p, onSubmit: m, ...h } = e, [g, _] = at(i), v = r ?? g, y = o === "inline", b = v.trim().length > 0, x = (e) => {
|
|
33
33
|
r === void 0 && _(e), p?.(e);
|
|
34
34
|
};
|
|
35
|
-
return /* @__PURE__ */ Q(
|
|
35
|
+
return /* @__PURE__ */ Q(Ue.form, {
|
|
36
36
|
width: "full",
|
|
37
37
|
background: "bg",
|
|
38
38
|
borderWidth: y ? "0" : "1px",
|
|
@@ -45,14 +45,14 @@ var Gt = (e) => {
|
|
|
45
45
|
e.preventDefault(), b && (m?.(v.trim()), r === void 0 && _(""));
|
|
46
46
|
},
|
|
47
47
|
...h,
|
|
48
|
-
children: /* @__PURE__ */ $(
|
|
48
|
+
children: /* @__PURE__ */ $(De, {
|
|
49
49
|
alignItems: "flex-start",
|
|
50
50
|
gap: "xs",
|
|
51
51
|
padding: y ? "sm" : "md",
|
|
52
52
|
children: [n ? /* @__PURE__ */ Q(t, { actor: n }) : null, /* @__PURE__ */ $(J, {
|
|
53
53
|
flex: "1",
|
|
54
54
|
minW: "0",
|
|
55
|
-
children: [/* @__PURE__ */ Q(
|
|
55
|
+
children: [/* @__PURE__ */ Q(Be, {
|
|
56
56
|
value: v,
|
|
57
57
|
rows: s,
|
|
58
58
|
resize: "none",
|
|
@@ -65,21 +65,21 @@ var Gt = (e) => {
|
|
|
65
65
|
placeholder: a,
|
|
66
66
|
_placeholder: { color: "fg.subtle" },
|
|
67
67
|
onChange: (e) => x(e.currentTarget.value)
|
|
68
|
-
}), /* @__PURE__ */ $(
|
|
68
|
+
}), /* @__PURE__ */ $(De, {
|
|
69
69
|
gap: "2xs",
|
|
70
70
|
marginTop: y ? "0" : "sm",
|
|
71
71
|
children: [
|
|
72
72
|
d,
|
|
73
|
-
/* @__PURE__ */ Q(
|
|
73
|
+
/* @__PURE__ */ Q(Le, {}),
|
|
74
74
|
/* @__PURE__ */ Q(c, {
|
|
75
75
|
content: l,
|
|
76
|
-
children: /* @__PURE__ */ Q(
|
|
76
|
+
children: /* @__PURE__ */ Q(ke, {
|
|
77
77
|
size: "2xs",
|
|
78
78
|
variant: "ghost",
|
|
79
79
|
"aria-label": l,
|
|
80
80
|
type: "button",
|
|
81
81
|
onClick: f,
|
|
82
|
-
children: /* @__PURE__ */ Q(
|
|
82
|
+
children: /* @__PURE__ */ Q(Oe, {
|
|
83
83
|
as: xt,
|
|
84
84
|
boxSize: "14px"
|
|
85
85
|
})
|
|
@@ -87,14 +87,14 @@ var Gt = (e) => {
|
|
|
87
87
|
}),
|
|
88
88
|
/* @__PURE__ */ Q(c, {
|
|
89
89
|
content: u,
|
|
90
|
-
children: /* @__PURE__ */ Q(
|
|
90
|
+
children: /* @__PURE__ */ Q(ke, {
|
|
91
91
|
size: "2xs",
|
|
92
92
|
variant: "subtle",
|
|
93
93
|
"aria-label": u,
|
|
94
94
|
type: "submit",
|
|
95
95
|
disabled: !b,
|
|
96
|
-
children: /* @__PURE__ */ Q(
|
|
97
|
-
as:
|
|
96
|
+
children: /* @__PURE__ */ Q(Oe, {
|
|
97
|
+
as: ct,
|
|
98
98
|
boxSize: "14px"
|
|
99
99
|
})
|
|
100
100
|
})
|
|
@@ -136,10 +136,10 @@ var Gt = (e) => {
|
|
|
136
136
|
label: e.label,
|
|
137
137
|
description: e.description ?? e.secondaryLabel,
|
|
138
138
|
icon: e.icon,
|
|
139
|
-
endContent: e.endContent ?? (e.shortcut || e.isSelected ? /* @__PURE__ */ $(
|
|
139
|
+
endContent: e.endContent ?? (e.shortcut || e.isSelected ? /* @__PURE__ */ $(De, {
|
|
140
140
|
gap: "2",
|
|
141
|
-
children: [e.shortcut, e.isSelected ? /* @__PURE__ */ Q(
|
|
142
|
-
as:
|
|
141
|
+
children: [e.shortcut, e.isSelected ? /* @__PURE__ */ Q(Oe, {
|
|
142
|
+
as: ut,
|
|
143
143
|
boxSize: "14px",
|
|
144
144
|
color: "fg.muted"
|
|
145
145
|
}) : null]
|
|
@@ -172,7 +172,7 @@ var Gt = (e) => {
|
|
|
172
172
|
},
|
|
173
173
|
overscan: 6
|
|
174
174
|
});
|
|
175
|
-
if (
|
|
175
|
+
if (rt(() => {
|
|
176
176
|
c < 0 || l.scrollToIndex(c, {
|
|
177
177
|
align: "auto",
|
|
178
178
|
behavior: "auto"
|
|
@@ -236,10 +236,10 @@ var Gt = (e) => {
|
|
|
236
236
|
children: d
|
|
237
237
|
}), t[24] = x, t[25] = d, t[26] = O) : O = t[26];
|
|
238
238
|
let k;
|
|
239
|
-
t[27] !== v || t[28] !== y || t[29] !== b || t[30] !== c || t[31] !== o || t[32] !== s || t[33] !== i || t[34] !== r || t[35] !== x ? (k = x && /* @__PURE__ */ Q(
|
|
239
|
+
t[27] !== v || t[28] !== y || t[29] !== b || t[30] !== c || t[31] !== o || t[32] !== s || t[33] !== i || t[34] !== r || t[35] !== x ? (k = x && /* @__PURE__ */ Q(je, {
|
|
240
240
|
startElement: o,
|
|
241
241
|
width: "full",
|
|
242
|
-
children: /* @__PURE__ */ Q(
|
|
242
|
+
children: /* @__PURE__ */ Q(Ae, {
|
|
243
243
|
ref: s,
|
|
244
244
|
value: r,
|
|
245
245
|
placeholder: i,
|
|
@@ -256,7 +256,7 @@ var Gt = (e) => {
|
|
|
256
256
|
let A;
|
|
257
257
|
t[37] !== C || t[38] !== S ? (A = S ? /* @__PURE__ */ Q(Y.CloseTrigger, {
|
|
258
258
|
asChild: !0,
|
|
259
|
-
children: /* @__PURE__ */ Q(
|
|
259
|
+
children: /* @__PURE__ */ Q(Se, {
|
|
260
260
|
"aria-label": C,
|
|
261
261
|
size: "sm",
|
|
262
262
|
mr: "2"
|
|
@@ -286,7 +286,7 @@ var Gt = (e) => {
|
|
|
286
286
|
t[49] !== m || t[50] !== M ? (N = /* @__PURE__ */ $(Y.Body, {
|
|
287
287
|
p: "0",
|
|
288
288
|
children: [m, M]
|
|
289
|
-
}), t[49] = m, t[50] = M, t[51] = N) : N = t[51], w = /* @__PURE__ */ $(
|
|
289
|
+
}), t[49] = m, t[50] = M, t[51] = N) : N = t[51], w = /* @__PURE__ */ $(Xe, { children: [
|
|
290
290
|
j,
|
|
291
291
|
N,
|
|
292
292
|
e || a ? /* @__PURE__ */ $(Y.Footer, {
|
|
@@ -309,7 +309,7 @@ var Gt = (e) => {
|
|
|
309
309
|
}, dn = (e, t, n) => typeof e == "function" ? e(t) : e ?? n, fn = (e) => {
|
|
310
310
|
let t = Z(109), { open: n, label: r, fullScreen: i, searchAutoFocus: a, entries: o, initialQuery: s, initialActiveIndex: c, mode: l, modes: u, resetKey: d, inputIcon: f, placeholder: p, emptyLabel: m, footerStart: h, footerEnd: g, filterEntries: _, onActiveEntryChange: v, onQueryChange: y, onClose: b, onEscape: x } = e, S = r === void 0 ? "Command palette" : r, C = i !== void 0 && i, w = a === void 0 || a, T = s === void 0 ? "" : s, E = c === void 0 ? 0 : c, D = d === void 0 ? "default" : d, O = m === void 0 ? "No results." : m, k;
|
|
311
311
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (k = { key: "palette" }, t[0] = k) : k = t[0];
|
|
312
|
-
let A =
|
|
312
|
+
let A = Ye(k), j;
|
|
313
313
|
t[1] !== C || t[2] !== A ? (j = A({ fullScreen: C }), t[1] = C, t[2] = A, t[3] = j) : j = t[3];
|
|
314
314
|
let M = j, N;
|
|
315
315
|
t[4] !== o || t[5] !== _ || t[6] !== l || t[7] !== u ? (N = (e) => {
|
|
@@ -325,12 +325,12 @@ var Gt = (e) => {
|
|
|
325
325
|
query: T,
|
|
326
326
|
activeId: P(T)[E]?.id ?? null
|
|
327
327
|
}), t[9] = P, t[10] = E, t[11] = T, t[12] = F) : F = t[12];
|
|
328
|
-
let [I, L] =
|
|
328
|
+
let [I, L] = at(F), { query: R, activeId: z } = I, B;
|
|
329
329
|
t[13] === D ? B = t[14] : (B = {
|
|
330
330
|
open: !1,
|
|
331
331
|
resetKey: D
|
|
332
332
|
}, t[13] = D, t[14] = B);
|
|
333
|
-
let [V, ee] =
|
|
333
|
+
let [V, ee] = at(B), te = it(null), H = it(null), ne = it(null), re = V.open !== n || V.resetKey !== D;
|
|
334
334
|
re && (ee({
|
|
335
335
|
open: n,
|
|
336
336
|
resetKey: D
|
|
@@ -391,15 +391,15 @@ var Gt = (e) => {
|
|
|
391
391
|
return () => clearTimeout(e);
|
|
392
392
|
}, t[41] = w, t[42] = V.open, t[43] = pe) : pe = t[43];
|
|
393
393
|
let me;
|
|
394
|
-
t[44] !== w || t[45] !== V ? (me = [V, w], t[44] = w, t[45] = V, t[46] = me) : me = t[46],
|
|
394
|
+
t[44] !== w || t[45] !== V ? (me = [V, w], t[44] = w, t[45] = V, t[46] = me) : me = t[46], rt(pe, me);
|
|
395
395
|
let he = U?.id, ge;
|
|
396
396
|
t[47] !== U || t[48] !== W || t[49] !== v ? (ge = () => {
|
|
397
397
|
v?.(U, W);
|
|
398
398
|
}, t[47] = U, t[48] = W, t[49] = v, t[50] = ge) : ge = t[50];
|
|
399
|
-
let J;
|
|
400
|
-
t[51] !== he || t[52] !== W ? (J = [he, W], t[51] = he, t[52] = W, t[53] = J) : J = t[53], nt(ge, J);
|
|
401
399
|
let _e;
|
|
402
|
-
t[
|
|
400
|
+
t[51] !== he || t[52] !== W ? (_e = [he, W], t[51] = he, t[52] = W, t[53] = _e) : _e = t[53], rt(ge, _e);
|
|
401
|
+
let J;
|
|
402
|
+
t[54] !== U || t[55] !== fe || t[56] !== G || t[57] !== x || t[58] !== R || t[59] !== ue || t[60] !== q || t[61] !== ce || t[62] !== ie ? (J = () => {
|
|
403
403
|
x?.({
|
|
404
404
|
...ie,
|
|
405
405
|
activeEntry: U,
|
|
@@ -409,8 +409,8 @@ var Gt = (e) => {
|
|
|
409
409
|
runActiveEntry: ue,
|
|
410
410
|
closePalette: fe
|
|
411
411
|
}) || (R.length > 0 ? (ce(""), q(0)) : fe());
|
|
412
|
-
}, t[54] = U, t[55] = fe, t[56] = G, t[57] = x, t[58] = R, t[59] = ue, t[60] = q, t[61] = ce, t[62] = ie, t[63] =
|
|
413
|
-
let ve =
|
|
412
|
+
}, t[54] = U, t[55] = fe, t[56] = G, t[57] = x, t[58] = R, t[59] = ue, t[60] = q, t[61] = ce, t[62] = ie, t[63] = J) : J = t[63];
|
|
413
|
+
let ve = J, ye;
|
|
414
414
|
t[64] !== G || t[65] !== ue || t[66] !== q ? (ye = (e) => {
|
|
415
415
|
e.key === "ArrowDown" ? (e.preventDefault(), q((e) => Math.min(e + 1, Math.max(G.length - 1, 0)))) : e.key === "ArrowUp" ? (e.preventDefault(), q(pn)) : e.key === "Enter" && (e.preventDefault(), ue());
|
|
416
416
|
}, t[64] = G, t[65] = ue, t[66] = q, t[67] = ye) : ye = t[67];
|
|
@@ -486,13 +486,13 @@ function pn(e) {
|
|
|
486
486
|
return Math.max(e - 1, 0);
|
|
487
487
|
}
|
|
488
488
|
// src/theme/recipes/shortcut-keys.ts
|
|
489
|
-
var mn =
|
|
489
|
+
var mn = Ke({ base: {
|
|
490
490
|
display: "inline-flex",
|
|
491
491
|
alignItems: "center",
|
|
492
492
|
gap: "shortcut-key-gap",
|
|
493
493
|
verticalAlign: "middle",
|
|
494
494
|
whiteSpace: "nowrap"
|
|
495
|
-
} }), hn =
|
|
495
|
+
} }), hn = Ue("span", mn), gn = {
|
|
496
496
|
alt: { label: "Alt" },
|
|
497
497
|
control: { label: "Ctrl" },
|
|
498
498
|
ctrl: { label: "Ctrl" },
|
|
@@ -505,19 +505,19 @@ var mn = Ge({ base: {
|
|
|
505
505
|
},
|
|
506
506
|
cmd: {
|
|
507
507
|
label: "Command",
|
|
508
|
-
Icon:
|
|
508
|
+
Icon: pt
|
|
509
509
|
},
|
|
510
510
|
command: {
|
|
511
511
|
label: "Command",
|
|
512
|
-
Icon:
|
|
512
|
+
Icon: pt
|
|
513
513
|
},
|
|
514
514
|
meta: {
|
|
515
515
|
label: "Command",
|
|
516
|
-
Icon:
|
|
516
|
+
Icon: pt
|
|
517
517
|
},
|
|
518
518
|
mod: {
|
|
519
519
|
label: "Command",
|
|
520
|
-
Icon:
|
|
520
|
+
Icon: pt
|
|
521
521
|
},
|
|
522
522
|
option: {
|
|
523
523
|
label: "Option",
|
|
@@ -527,11 +527,11 @@ var mn = Ge({ base: {
|
|
|
527
527
|
}, vn = {
|
|
528
528
|
arrowleft: {
|
|
529
529
|
label: "Arrow Left",
|
|
530
|
-
Icon:
|
|
530
|
+
Icon: ot
|
|
531
531
|
},
|
|
532
532
|
arrowright: {
|
|
533
533
|
label: "Arrow Right",
|
|
534
|
-
Icon:
|
|
534
|
+
Icon: st
|
|
535
535
|
}
|
|
536
536
|
}, yn = () => {
|
|
537
537
|
if (typeof navigator > "u") return "linux";
|
|
@@ -544,16 +544,16 @@ var mn = Ge({ base: {
|
|
|
544
544
|
let t = Z(4), { binding: n } = e, r;
|
|
545
545
|
if (t[0] !== n) {
|
|
546
546
|
let e = Sn(n);
|
|
547
|
-
r = e.map((t, n) => /* @__PURE__ */ $(
|
|
547
|
+
r = e.map((t, n) => /* @__PURE__ */ $($e, { children: [/* @__PURE__ */ Q(hn, { children: t.map(Tn) }), n < e.length - 1 ? " then " : null] }, `${t.map(wn).join("+")}-${n}`)), t[0] = n, t[1] = r;
|
|
548
548
|
} else r = t[1];
|
|
549
549
|
let i;
|
|
550
|
-
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ Q(
|
|
550
|
+
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ Q(Xe, { children: r }), t[2] = r, t[3] = i), i;
|
|
551
551
|
};
|
|
552
552
|
function wn(e) {
|
|
553
553
|
return e.label;
|
|
554
554
|
}
|
|
555
555
|
function Tn(e, t) {
|
|
556
|
-
return /* @__PURE__ */ Q(
|
|
556
|
+
return /* @__PURE__ */ Q(Me, {
|
|
557
557
|
"aria-label": e.label,
|
|
558
558
|
children: e.Icon ? /* @__PURE__ */ Q(e.Icon, {
|
|
559
559
|
size: 12,
|
|
@@ -566,7 +566,7 @@ function En(e) {
|
|
|
566
566
|
let t = Z(14), n, r, i, a, o, s;
|
|
567
567
|
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);
|
|
568
568
|
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;
|
|
569
|
-
return t[7] !== d || t[8] !== n || t[9] !== c || t[10] !== l || t[11] !== u || t[12] !== r ? (f = /* @__PURE__ */ Q(
|
|
569
|
+
return t[7] !== d || t[8] !== n || t[9] !== c || t[10] !== l || t[11] !== u || t[12] !== r ? (f = /* @__PURE__ */ Q(De, {
|
|
570
570
|
...r,
|
|
571
571
|
h: c,
|
|
572
572
|
justify: "space-between",
|
|
@@ -589,13 +589,13 @@ var Dn = (e) => {
|
|
|
589
589
|
children: r
|
|
590
590
|
}), t[1] = r, t[2] = c);
|
|
591
591
|
let l;
|
|
592
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Q(
|
|
592
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Q(Ce.Indicator, {
|
|
593
593
|
transition: "transform 0.2s",
|
|
594
594
|
_open: { transform: "rotate(90deg)" },
|
|
595
|
-
children: /* @__PURE__ */ Q(
|
|
595
|
+
children: /* @__PURE__ */ Q(ft, { size: 16 })
|
|
596
596
|
}), t[3] = l) : l = t[3];
|
|
597
597
|
let u;
|
|
598
|
-
t[4] === c ? u = t[5] : (u = /* @__PURE__ */ $(
|
|
598
|
+
t[4] === c ? u = t[5] : (u = /* @__PURE__ */ $(Ce.Trigger, {
|
|
599
599
|
_hover: s,
|
|
600
600
|
padding: "sm",
|
|
601
601
|
height: "2rem",
|
|
@@ -614,11 +614,11 @@ var Dn = (e) => {
|
|
|
614
614
|
children: a
|
|
615
615
|
}), t[6] = a, t[7] = d);
|
|
616
616
|
let f;
|
|
617
|
-
t[8] !== u || t[9] !== d ? (f = /* @__PURE__ */ $(
|
|
617
|
+
t[8] !== u || t[9] !== d ? (f = /* @__PURE__ */ $(Te, { children: [u, d] }), t[8] = u, t[9] = d, t[10] = f) : f = t[10];
|
|
618
618
|
let p;
|
|
619
|
-
t[11] === n ? p = t[12] : (p = /* @__PURE__ */ Q(
|
|
619
|
+
t[11] === n ? p = t[12] : (p = /* @__PURE__ */ Q(Ce.Content, { children: n }), t[11] = n, t[12] = p);
|
|
620
620
|
let m;
|
|
621
|
-
return t[13] !== o || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */ $(
|
|
621
|
+
return t[13] !== o || t[14] !== f || t[15] !== p ? (m = /* @__PURE__ */ $(Ce.Root, {
|
|
622
622
|
defaultOpen: o,
|
|
623
623
|
width: "full",
|
|
624
624
|
children: [f, p]
|
|
@@ -676,7 +676,7 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
676
676
|
}), n;
|
|
677
677
|
}, Bn = (e) => {
|
|
678
678
|
let t = Z(15), { actions: n, item: r, onRunAction: i } = e, a;
|
|
679
|
-
t[0] === r.priority ? a = t[1] : (a = Nn(r.priority) ? /* @__PURE__ */ Q(
|
|
679
|
+
t[0] === r.priority ? a = t[1] : (a = Nn(r.priority) ? /* @__PURE__ */ Q(_e, {
|
|
680
680
|
size: "sm",
|
|
681
681
|
colorPalette: Mn(r.priority),
|
|
682
682
|
textTransform: "capitalize",
|
|
@@ -684,7 +684,7 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
684
684
|
children: r.priority
|
|
685
685
|
}) : null, t[0] = r.priority, t[1] = a);
|
|
686
686
|
let o;
|
|
687
|
-
t[2] === r.status ? o = t[3] : (o = r.status === "open" ? /* @__PURE__ */ Q(
|
|
687
|
+
t[2] === r.status ? o = t[3] : (o = r.status === "open" ? /* @__PURE__ */ Q(_e, {
|
|
688
688
|
size: "sm",
|
|
689
689
|
colorPalette: "blue",
|
|
690
690
|
variant: "solid",
|
|
@@ -694,7 +694,7 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
694
694
|
let s;
|
|
695
695
|
if (t[4] !== n || t[5] !== r || t[6] !== i) {
|
|
696
696
|
let e;
|
|
697
|
-
t[8] !== r || t[9] !== i ? (e = (e) => /* @__PURE__ */ Q(
|
|
697
|
+
t[8] !== r || t[9] !== i ? (e = (e) => /* @__PURE__ */ Q(ye, {
|
|
698
698
|
size: "2xs",
|
|
699
699
|
variant: "outline",
|
|
700
700
|
colorPalette: e.destructive ? "red" : "gray",
|
|
@@ -709,7 +709,7 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
709
709
|
}, 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;
|
|
710
710
|
} else s = t[7];
|
|
711
711
|
let c;
|
|
712
|
-
return t[11] !== a || t[12] !== o || t[13] !== s ? (c = /* @__PURE__ */ $(
|
|
712
|
+
return t[11] !== a || t[12] !== o || t[13] !== s ? (c = /* @__PURE__ */ $(De, {
|
|
713
713
|
gap: "2",
|
|
714
714
|
minW: "0",
|
|
715
715
|
flexWrap: "wrap",
|
|
@@ -722,10 +722,10 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
722
722
|
}), t[11] = a, t[12] = o, t[13] = s, t[14] = c) : c = t[14], c;
|
|
723
723
|
}, Vn = (e) => {
|
|
724
724
|
let { activeIndex: t, items: n, onActivateItem: r, onActiveIndexChange: i, onRunAction: a } = e, o = In(n), s = 0;
|
|
725
|
-
return /* @__PURE__ */ Q(
|
|
725
|
+
return /* @__PURE__ */ Q(ze, {
|
|
726
726
|
gap: "2xs",
|
|
727
727
|
py: "xs",
|
|
728
|
-
children: o.map((n) => /* @__PURE__ */ $(
|
|
728
|
+
children: o.map((n) => /* @__PURE__ */ $(ze, {
|
|
729
729
|
gap: "2xs",
|
|
730
730
|
children: [/* @__PURE__ */ Q(X, {
|
|
731
731
|
textStyle: "label/XS/medium",
|
|
@@ -739,8 +739,8 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
739
739
|
id: n.id,
|
|
740
740
|
label: n.title,
|
|
741
741
|
description: Rn(n),
|
|
742
|
-
icon: /* @__PURE__ */ Q(
|
|
743
|
-
as:
|
|
742
|
+
icon: /* @__PURE__ */ Q(Oe, {
|
|
743
|
+
as: lt,
|
|
744
744
|
boxSize: "14px"
|
|
745
745
|
}),
|
|
746
746
|
iconColor: `${Mn(n.priority)}.500`,
|
|
@@ -761,7 +761,7 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
761
761
|
});
|
|
762
762
|
}, Hn = () => {
|
|
763
763
|
let e = Z(1), t;
|
|
764
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Q(
|
|
764
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Q(ze, {
|
|
765
765
|
gap: "2",
|
|
766
766
|
p: "sm",
|
|
767
767
|
children: [
|
|
@@ -772,18 +772,18 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
772
772
|
].map(Wn)
|
|
773
773
|
}), e[0] = t) : t = e[0], t;
|
|
774
774
|
}, Un = (e) => {
|
|
775
|
-
let t = Z(49), { autoFocus: n, emptyLabel: r, error: i, footerEnd: a, footerStart: o, items: s, loading: c, onActivateItem: l, onEscape: u, onQueryChange: d, query: f } = e, p = n !== void 0 && n, m = r === void 0 ? "No notifications." : r, h = c !== void 0 && c, [g, _] =
|
|
775
|
+
let t = Z(49), { autoFocus: n, emptyLabel: r, error: i, footerEnd: a, footerStart: o, items: s, loading: c, onActivateItem: l, onEscape: u, onQueryChange: d, query: f } = e, p = n !== void 0 && n, m = r === void 0 ? "No notifications." : r, h = c !== void 0 && c, [g, _] = at(""), [v, y] = at(0), b = it(null), S = f ?? g, C, w;
|
|
776
776
|
t[0] !== S || t[1] !== s ? (C = Fn(s, S), w = Ln(C), t[0] = S, t[1] = s, t[2] = C, t[3] = w) : (C = t[2], w = t[3]);
|
|
777
777
|
let T = w, E = T[v] ?? null, D, O;
|
|
778
778
|
t[4] === p ? (D = t[5], O = t[6]) : (D = () => {
|
|
779
779
|
if (!p) return;
|
|
780
780
|
let e = setTimeout(() => b.current?.focus(), 0);
|
|
781
781
|
return () => clearTimeout(e);
|
|
782
|
-
}, O = [p], t[4] = p, t[5] = D, t[6] = O),
|
|
782
|
+
}, O = [p], t[4] = p, t[5] = D, t[6] = O), rt(D, O);
|
|
783
783
|
let k, A;
|
|
784
784
|
t[7] === T.length ? (k = t[8], A = t[9]) : (k = () => {
|
|
785
785
|
y((e) => Math.min(e, Math.max(T.length - 1, 0)));
|
|
786
|
-
}, A = [T.length], t[7] = T.length, t[8] = k, t[9] = A),
|
|
786
|
+
}, A = [T.length], t[7] = T.length, t[8] = k, t[9] = A), rt(k, A);
|
|
787
787
|
let j;
|
|
788
788
|
t[10] !== d || t[11] !== f ? (j = (e) => {
|
|
789
789
|
f === void 0 && _(e), d?.(e), y(0);
|
|
@@ -848,13 +848,13 @@ var kn = "2.5rem", An = "2xs", jn = "sm", Mn = (e) => e === "urgent" ? "red" : e
|
|
|
848
848
|
}), t[38] = S, t[39] = p, t[40] = a, t[41] = o, t[42] = P, t[43] = L, t[44] = R, t[45] = z, t[46] = B, t[47] = M, t[48] = V) : V = t[48], V;
|
|
849
849
|
};
|
|
850
850
|
function Wn(e) {
|
|
851
|
-
return /* @__PURE__ */ $(
|
|
851
|
+
return /* @__PURE__ */ $(ze, {
|
|
852
852
|
gap: "2xs",
|
|
853
|
-
children: [/* @__PURE__ */ Q(
|
|
853
|
+
children: [/* @__PURE__ */ Q(Ie, {
|
|
854
854
|
h: "4",
|
|
855
855
|
w: e % 2 == 0 ? "68%" : "52%",
|
|
856
856
|
borderRadius: "xs"
|
|
857
|
-
}), /* @__PURE__ */ Q(
|
|
857
|
+
}), /* @__PURE__ */ Q(Ie, {
|
|
858
858
|
h: "3",
|
|
859
859
|
w: "88%",
|
|
860
860
|
borderRadius: "xs"
|
|
@@ -869,7 +869,7 @@ var Kn = (e) => {
|
|
|
869
869
|
let t = Z(6), n, r;
|
|
870
870
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
871
871
|
let i;
|
|
872
|
-
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ Q(
|
|
872
|
+
return t[3] !== n || t[4] !== r ? (i = /* @__PURE__ */ Q(Te, {
|
|
873
873
|
as: "aside",
|
|
874
874
|
direction: "column",
|
|
875
875
|
h: "full",
|
|
@@ -885,14 +885,14 @@ var Kn = (e) => {
|
|
|
885
885
|
let t = Z(15), n, r, i, a, o, s;
|
|
886
886
|
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);
|
|
887
887
|
let c = o === void 0 ? "28rem" : o, l = s !== void 0 && s, u = i ?? (l ? qn : c), d = l ? "full" : c, f;
|
|
888
|
-
t[7] === n ? f = t[8] : (f = /* @__PURE__ */ Q(
|
|
888
|
+
t[7] === n ? f = t[8] : (f = /* @__PURE__ */ Q(Te, {
|
|
889
889
|
flex: "1",
|
|
890
890
|
minH: 0,
|
|
891
891
|
direction: "column",
|
|
892
892
|
children: n
|
|
893
893
|
}), t[7] = n, t[8] = f);
|
|
894
894
|
let p;
|
|
895
|
-
return t[9] !== r || t[10] !== u || t[11] !== d || t[12] !== a || t[13] !== f ? (p = /* @__PURE__ */ $(
|
|
895
|
+
return t[9] !== r || t[10] !== u || t[11] !== d || t[12] !== a || t[13] !== f ? (p = /* @__PURE__ */ $(Te, {
|
|
896
896
|
direction: "column",
|
|
897
897
|
position: "relative",
|
|
898
898
|
flexShrink: 0,
|
|
@@ -904,15 +904,15 @@ var Kn = (e) => {
|
|
|
904
904
|
...a,
|
|
905
905
|
children: [r, f]
|
|
906
906
|
}), t[9] = r, t[10] = u, t[11] = d, t[12] = a, t[13] = f, t[14] = p) : p = t[14], p;
|
|
907
|
-
}, Yn =
|
|
907
|
+
}, Yn = tt(function(e, t) {
|
|
908
908
|
let n = Z(23), r, i, a, o, s;
|
|
909
909
|
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);
|
|
910
910
|
let l = o !== void 0 && o, u;
|
|
911
911
|
n[6] === Symbol.for("react.memo_cache_sentinel") ? (u = { key: "bubbleLauncher" }, n[6] = u) : u = n[6];
|
|
912
|
-
let d =
|
|
912
|
+
let d = Je(u), f, p;
|
|
913
913
|
n[7] === Symbol.for("react.memo_cache_sentinel") ? (f = { borderColor: "border.accent" }, p = { borderColor: "border.accent" }, n[7] = f, n[8] = p) : (f = n[7], p = n[8]);
|
|
914
914
|
let m;
|
|
915
|
-
n[9] !== r || n[10] !== t || n[11] !== a ? (m = /* @__PURE__ */ Q(
|
|
915
|
+
n[9] !== r || n[10] !== t || n[11] !== a ? (m = /* @__PURE__ */ Q(ke, {
|
|
916
916
|
ref: t,
|
|
917
917
|
rounded: "full",
|
|
918
918
|
size: "lg",
|
|
@@ -931,7 +931,7 @@ var Kn = (e) => {
|
|
|
931
931
|
children: h
|
|
932
932
|
}) : h, n[15] = h, n[16] = s, n[17] = _) : _ = n[17];
|
|
933
933
|
let v;
|
|
934
|
-
return n[18] !== i || n[19] !== l || n[20] !== g || n[21] !== _ ? (v = /* @__PURE__ */ Q(
|
|
934
|
+
return n[18] !== i || n[19] !== l || n[20] !== g || n[21] !== _ ? (v = /* @__PURE__ */ Q(Ue.div, {
|
|
935
935
|
position: "fixed",
|
|
936
936
|
bottom: "6",
|
|
937
937
|
right: "6",
|
|
@@ -943,10 +943,10 @@ var Kn = (e) => {
|
|
|
943
943
|
"aria-hidden": l,
|
|
944
944
|
children: _
|
|
945
945
|
}), n[18] = i, n[19] = l, n[20] = g, n[21] = _, n[22] = v) : v = n[22], v;
|
|
946
|
-
}), Xn =
|
|
946
|
+
}), Xn = tt(function(e, t) {
|
|
947
947
|
let n = Z(28), { isOpen: r, title: i, menu: a, header: o, onClose: s, closeLabel: l, onPopOut: u, popOutLabel: d, width: p, height: m, containerProps: h, testId: g, "aria-label": _, children: v, overlay: y } = e, b = r !== void 0 && r, x = p === void 0 ? "28rem" : p, S = m === void 0 ? "38rem" : m, C;
|
|
948
948
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (C = { key: "bubblePanel" }, n[0] = C) : C = n[0];
|
|
949
|
-
let w =
|
|
949
|
+
let w = Je(C), T = _ ?? i, E;
|
|
950
950
|
n[1] === w ? E = n[2] : (E = w(), n[1] = w, n[2] = E);
|
|
951
951
|
let D = !b, O = !b, k;
|
|
952
952
|
n[3] !== l || n[4] !== o || n[5] !== a || n[6] !== s || n[7] !== u || n[8] !== d ? (k = o === void 0 ? /* @__PURE__ */ $(f, {
|
|
@@ -954,17 +954,17 @@ var Kn = (e) => {
|
|
|
954
954
|
gap: "sm",
|
|
955
955
|
flexShrink: 0,
|
|
956
956
|
children: [
|
|
957
|
-
/* @__PURE__ */ Q(
|
|
957
|
+
/* @__PURE__ */ Q(De, {
|
|
958
958
|
gap: "1",
|
|
959
959
|
minW: "0",
|
|
960
960
|
children: a
|
|
961
961
|
}),
|
|
962
|
-
/* @__PURE__ */ Q(
|
|
963
|
-
/* @__PURE__ */ $(
|
|
962
|
+
/* @__PURE__ */ Q(Le, {}),
|
|
963
|
+
/* @__PURE__ */ $(De, {
|
|
964
964
|
gap: "1",
|
|
965
965
|
children: [u ? /* @__PURE__ */ Q(c, {
|
|
966
966
|
content: d,
|
|
967
|
-
children: /* @__PURE__ */ Q(
|
|
967
|
+
children: /* @__PURE__ */ Q(ke, {
|
|
968
968
|
size: "2xs",
|
|
969
969
|
variant: "ghost",
|
|
970
970
|
"aria-label": d,
|
|
@@ -973,7 +973,7 @@ var Kn = (e) => {
|
|
|
973
973
|
})
|
|
974
974
|
}) : null, s ? /* @__PURE__ */ Q(c, {
|
|
975
975
|
content: l,
|
|
976
|
-
children: /* @__PURE__ */ Q(
|
|
976
|
+
children: /* @__PURE__ */ Q(ke, {
|
|
977
977
|
size: "2xs",
|
|
978
978
|
variant: "ghost",
|
|
979
979
|
"aria-label": l,
|
|
@@ -994,13 +994,13 @@ var Kn = (e) => {
|
|
|
994
994
|
children: v
|
|
995
995
|
}), n[10] = v, n[11] = A);
|
|
996
996
|
let j;
|
|
997
|
-
n[12] !== k || n[13] !== A ? (j = /* @__PURE__ */ $(
|
|
997
|
+
n[12] !== k || n[13] !== A ? (j = /* @__PURE__ */ $(Te, {
|
|
998
998
|
direction: "column",
|
|
999
999
|
h: "full",
|
|
1000
1000
|
children: [k, A]
|
|
1001
1001
|
}), n[12] = k, n[13] = A, n[14] = j) : j = n[14];
|
|
1002
1002
|
let M;
|
|
1003
|
-
return n[15] !== h || n[16] !== S || n[17] !== b || n[18] !== y || n[19] !== t || n[20] !== j || n[21] !== T || n[22] !== E || n[23] !== D || n[24] !== O || n[25] !== g || n[26] !== x ? (M = /* @__PURE__ */ Q(
|
|
1003
|
+
return n[15] !== h || n[16] !== S || n[17] !== b || n[18] !== y || n[19] !== t || n[20] !== j || n[21] !== T || n[22] !== E || n[23] !== D || n[24] !== O || n[25] !== g || n[26] !== x ? (M = /* @__PURE__ */ Q(Fe, { children: /* @__PURE__ */ $(Ue.section, {
|
|
1004
1004
|
ref: t,
|
|
1005
1005
|
role: "dialog",
|
|
1006
1006
|
"data-testid": g,
|
|
@@ -1026,7 +1026,7 @@ var Kn = (e) => {
|
|
|
1026
1026
|
children: [j, y]
|
|
1027
1027
|
}) }), n[15] = h, n[16] = S, n[17] = b, n[18] = y, n[19] = t, n[20] = j, n[21] = T, n[22] = E, n[23] = D, n[24] = O, n[25] = g, n[26] = x, n[27] = M) : M = n[27], M;
|
|
1028
1028
|
}), Zn = (e) => {
|
|
1029
|
-
let [t, n] =
|
|
1029
|
+
let [t, n] = at(!1), { headline: r, buttonText: i, notificationText: a, onDelete: o, open: s, onClose: c, children: l } = e;
|
|
1030
1030
|
return /* @__PURE__ */ Q(Y.Root, {
|
|
1031
1031
|
size: "sm",
|
|
1032
1032
|
open: s,
|
|
@@ -1034,29 +1034,29 @@ var Kn = (e) => {
|
|
|
1034
1034
|
!e.open && !t && c();
|
|
1035
1035
|
},
|
|
1036
1036
|
closeOnInteractOutside: !1,
|
|
1037
|
-
children: /* @__PURE__ */ $(
|
|
1037
|
+
children: /* @__PURE__ */ $(Fe, { children: [/* @__PURE__ */ Q(Y.Backdrop, {}), /* @__PURE__ */ Q(Y.Positioner, { children: /* @__PURE__ */ $(Y.Content, { children: [
|
|
1038
1038
|
/* @__PURE__ */ $(Y.Header, { children: [/* @__PURE__ */ Q(X, {
|
|
1039
1039
|
textStyle: "heading/M",
|
|
1040
1040
|
children: r
|
|
1041
1041
|
}), /* @__PURE__ */ Q(Y.CloseTrigger, {
|
|
1042
1042
|
asChild: !0,
|
|
1043
|
-
children: /* @__PURE__ */ Q(
|
|
1043
|
+
children: /* @__PURE__ */ Q(Se, {
|
|
1044
1044
|
size: "sm",
|
|
1045
1045
|
disabled: t
|
|
1046
1046
|
})
|
|
1047
1047
|
})] }),
|
|
1048
|
-
/* @__PURE__ */ Q(Y.Body, { children: /* @__PURE__ */ $(
|
|
1048
|
+
/* @__PURE__ */ Q(Y.Body, { children: /* @__PURE__ */ $(ze, {
|
|
1049
1049
|
gap: "3",
|
|
1050
1050
|
children: [a ? /* @__PURE__ */ Q(X, { children: a }) : null, l]
|
|
1051
1051
|
}) }),
|
|
1052
|
-
/* @__PURE__ */ Q(Y.Footer, { children: /* @__PURE__ */ $(
|
|
1052
|
+
/* @__PURE__ */ Q(Y.Footer, { children: /* @__PURE__ */ $(ze, {
|
|
1053
1053
|
direction: "row",
|
|
1054
1054
|
gap: "1",
|
|
1055
|
-
children: [/* @__PURE__ */ Q(
|
|
1055
|
+
children: [/* @__PURE__ */ Q(ye, {
|
|
1056
1056
|
onClick: c,
|
|
1057
1057
|
disabled: t,
|
|
1058
1058
|
children: "Close"
|
|
1059
|
-
}), /* @__PURE__ */ Q(
|
|
1059
|
+
}), /* @__PURE__ */ Q(ye, {
|
|
1060
1060
|
loading: t,
|
|
1061
1061
|
variant: "destructive",
|
|
1062
1062
|
onClick: async () => {
|
|
@@ -1075,15 +1075,15 @@ var Kn = (e) => {
|
|
|
1075
1075
|
}, Qn = (e) => {
|
|
1076
1076
|
let t = Z(43), { drives: n, currentPath: r, disabled: i, onNavigate: a } = e, o;
|
|
1077
1077
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = { key: "folderPicker" }, t[0] = o) : o = t[0];
|
|
1078
|
-
let s =
|
|
1078
|
+
let s = Ye(o), c;
|
|
1079
1079
|
t[1] === s ? c = t[2] : (c = s({}), t[1] = s, t[2] = c);
|
|
1080
1080
|
let l = c, u, d, f, m, h, g, _, v, y, b;
|
|
1081
1081
|
if (t[3] !== r || t[4] !== i || t[5] !== n || t[6] !== l.driveTrigger) {
|
|
1082
1082
|
let e = r.match(/^[a-z]:[\\/]/i)?.[0].replaceAll("\\", "/").toUpperCase();
|
|
1083
|
-
f = n.find((t) => t.path.replaceAll("\\", "/").toUpperCase() === e), d = p, u =
|
|
1083
|
+
f = n.find((t) => t.path.replaceAll("\\", "/").toUpperCase() === e), d = p, u = ye, m = "sm", h = "ghost", g = l.driveTrigger, _ = "Drive", v = i, t[17] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ Q(_t, {}), t[17] = y) : y = t[17], b = f?.name ?? e?.slice(0, 2) ?? "Drive", t[3] = r, t[4] = i, t[5] = n, t[6] = l.driveTrigger, t[7] = u, t[8] = d, t[9] = f, t[10] = m, t[11] = h, t[12] = g, t[13] = _, t[14] = v, t[15] = y, t[16] = b;
|
|
1084
1084
|
} else u = t[7], d = t[8], f = t[9], m = t[10], h = t[11], g = t[12], _ = t[13], v = t[14], y = t[15], b = t[16];
|
|
1085
1085
|
let x;
|
|
1086
|
-
t[18] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ Q(
|
|
1086
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ Q(dt, {}), t[18] = x) : x = t[18];
|
|
1087
1087
|
let S;
|
|
1088
1088
|
t[19] !== u || t[20] !== m || t[21] !== h || t[22] !== g || t[23] !== _ || t[24] !== v || t[25] !== y || t[26] !== b ? (S = /* @__PURE__ */ $(u, {
|
|
1089
1089
|
size: m,
|
|
@@ -1134,7 +1134,7 @@ var Kn = (e) => {
|
|
|
1134
1134
|
}, $n = (e) => {
|
|
1135
1135
|
let t = Z(39), { entries: n, query: r, isLoading: i, isUnavailable: a, disabled: o, onNavigate: s } = e, c;
|
|
1136
1136
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = { key: "folderPicker" }, t[0] = c) : c = t[0];
|
|
1137
|
-
let u =
|
|
1137
|
+
let u = Ye(c), d;
|
|
1138
1138
|
t[1] === u ? d = t[2] : (d = u({}), t[1] = u, t[2] = d);
|
|
1139
1139
|
let f = d, p, h, g, _, v, y, b, x, S;
|
|
1140
1140
|
if (t[3] !== o || t[4] !== n || t[5] !== i || t[6] !== a || t[7] !== s || t[8] !== r || t[9] !== f.list || t[10] !== f.rows) {
|
|
@@ -1175,7 +1175,7 @@ var Kn = (e) => {
|
|
|
1175
1175
|
children: C
|
|
1176
1176
|
}), t[35] = h, t[36] = C, t[37] = S, t[38] = w) : w = t[38], w;
|
|
1177
1177
|
}, er = (e) => {
|
|
1178
|
-
let { currentPath: t, entries: n, drives: r = [], isUnavailable: i, isLoading: a, isOpening: o, error: s, onClose: c, onSelect: l, onNavigate: u, onCreateFolder: d } = e, f =
|
|
1178
|
+
let { currentPath: t, entries: n, drives: r = [], isUnavailable: i, isLoading: a, isOpening: o, error: s, onClose: c, onSelect: l, onNavigate: u, onCreateFolder: d } = e, f = Ye({ key: "folderPicker" })({}), [p, m] = at(t), [h, g] = at(t), [_, v] = at(""), [y, b] = at(!1), [x, S] = at(""), [C, w] = at(!1);
|
|
1179
1179
|
t !== h && (g(t), m(t), v(""));
|
|
1180
1180
|
let T = t.replaceAll("\\", "/"), E = T.match(/^\/\/[^/]+\/[^/]+/)?.[0] ?? T.match(/^[a-z]:\//i)?.[0] ?? "/", D = T.replace(/\/+$/, "").split("/").slice(0, -1).join("/"), O = D.length < E.length ? E : D, k = T.replace(/\/+$/, "") === E.replace(/\/+$/, ""), A = (e) => {
|
|
1181
1181
|
b(!1), S(""), u(e);
|
|
@@ -1189,7 +1189,7 @@ var Kn = (e) => {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
|
-
return /* @__PURE__ */ $(
|
|
1192
|
+
return /* @__PURE__ */ $(Xe, { children: [
|
|
1193
1193
|
/* @__PURE__ */ Q(Y.Header, {
|
|
1194
1194
|
css: f.header,
|
|
1195
1195
|
children: /* @__PURE__ */ Q(Y.Title, { children: "Open project folder" })
|
|
@@ -1200,7 +1200,7 @@ var Kn = (e) => {
|
|
|
1200
1200
|
/* @__PURE__ */ $(J, {
|
|
1201
1201
|
css: f.navigation,
|
|
1202
1202
|
children: [
|
|
1203
|
-
/* @__PURE__ */ Q(
|
|
1203
|
+
/* @__PURE__ */ Q(ye, {
|
|
1204
1204
|
size: "sm",
|
|
1205
1205
|
variant: "outline",
|
|
1206
1206
|
css: f.navigationButton,
|
|
@@ -1209,14 +1209,14 @@ var Kn = (e) => {
|
|
|
1209
1209
|
onClick: () => A("~"),
|
|
1210
1210
|
children: /* @__PURE__ */ Q(vt, {})
|
|
1211
1211
|
}),
|
|
1212
|
-
/* @__PURE__ */ Q(
|
|
1212
|
+
/* @__PURE__ */ Q(ye, {
|
|
1213
1213
|
size: "sm",
|
|
1214
1214
|
variant: "outline",
|
|
1215
1215
|
css: f.navigationButton,
|
|
1216
1216
|
"aria-label": "Go to parent directory",
|
|
1217
1217
|
disabled: a || o || C || k || !t || i,
|
|
1218
1218
|
onClick: () => A(O),
|
|
1219
|
-
children: /* @__PURE__ */ Q(
|
|
1219
|
+
children: /* @__PURE__ */ Q(ct, {})
|
|
1220
1220
|
}),
|
|
1221
1221
|
r.length > 0 && /* @__PURE__ */ Q(Qn, {
|
|
1222
1222
|
drives: r,
|
|
@@ -1224,7 +1224,7 @@ var Kn = (e) => {
|
|
|
1224
1224
|
disabled: !!(a || o || C),
|
|
1225
1225
|
onNavigate: A
|
|
1226
1226
|
}),
|
|
1227
|
-
/* @__PURE__ */ Q(
|
|
1227
|
+
/* @__PURE__ */ Q(Ae, {
|
|
1228
1228
|
css: f.path,
|
|
1229
1229
|
size: "sm",
|
|
1230
1230
|
variant: "borderless",
|
|
@@ -1237,7 +1237,7 @@ var Kn = (e) => {
|
|
|
1237
1237
|
},
|
|
1238
1238
|
disabled: a || o || C
|
|
1239
1239
|
}),
|
|
1240
|
-
!y && /* @__PURE__ */ $(
|
|
1240
|
+
!y && /* @__PURE__ */ $(ye, {
|
|
1241
1241
|
variant: "outline",
|
|
1242
1242
|
size: "sm",
|
|
1243
1243
|
disabled: !t || i || a || o,
|
|
@@ -1246,10 +1246,10 @@ var Kn = (e) => {
|
|
|
1246
1246
|
})
|
|
1247
1247
|
]
|
|
1248
1248
|
}),
|
|
1249
|
-
!y && /* @__PURE__ */ Q(
|
|
1249
|
+
!y && /* @__PURE__ */ Q(je, {
|
|
1250
1250
|
css: f.filter,
|
|
1251
1251
|
startElement: /* @__PURE__ */ Q(Ct, {}),
|
|
1252
|
-
children: /* @__PURE__ */ Q(
|
|
1252
|
+
children: /* @__PURE__ */ Q(Ae, {
|
|
1253
1253
|
size: "sm",
|
|
1254
1254
|
"aria-label": "Filter folders",
|
|
1255
1255
|
placeholder: "Filter folders",
|
|
@@ -1260,7 +1260,7 @@ var Kn = (e) => {
|
|
|
1260
1260
|
}),
|
|
1261
1261
|
y && /* @__PURE__ */ $(J, {
|
|
1262
1262
|
css: f.creation,
|
|
1263
|
-
children: [/* @__PURE__ */ Q(
|
|
1263
|
+
children: [/* @__PURE__ */ Q(Ae, {
|
|
1264
1264
|
size: "sm",
|
|
1265
1265
|
"aria-label": "New folder name",
|
|
1266
1266
|
placeholder: "New folder name",
|
|
@@ -1270,7 +1270,7 @@ var Kn = (e) => {
|
|
|
1270
1270
|
onKeyDown: (e) => {
|
|
1271
1271
|
e.key === "Enter" && j();
|
|
1272
1272
|
}
|
|
1273
|
-
}), /* @__PURE__ */ $(
|
|
1273
|
+
}), /* @__PURE__ */ $(ye, {
|
|
1274
1274
|
size: "sm",
|
|
1275
1275
|
variant: "primary",
|
|
1276
1276
|
disabled: !x.trim(),
|
|
@@ -1297,13 +1297,13 @@ var Kn = (e) => {
|
|
|
1297
1297
|
}),
|
|
1298
1298
|
/* @__PURE__ */ $(Y.Footer, {
|
|
1299
1299
|
css: f.footer,
|
|
1300
|
-
children: [/* @__PURE__ */ Q(
|
|
1300
|
+
children: [/* @__PURE__ */ Q(ye, {
|
|
1301
1301
|
size: "sm",
|
|
1302
1302
|
variant: "outline",
|
|
1303
1303
|
onClick: c,
|
|
1304
1304
|
disabled: a || o || C,
|
|
1305
1305
|
children: "Cancel"
|
|
1306
|
-
}), !y && /* @__PURE__ */ Q(
|
|
1306
|
+
}), !y && /* @__PURE__ */ Q(ye, {
|
|
1307
1307
|
size: "sm",
|
|
1308
1308
|
variant: "primary",
|
|
1309
1309
|
onClick: l,
|
|
@@ -1316,7 +1316,7 @@ var Kn = (e) => {
|
|
|
1316
1316
|
}, tr = (e) => {
|
|
1317
1317
|
let t = Z(15), n;
|
|
1318
1318
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = { key: "folderPicker" }, t[0] = n) : n = t[0];
|
|
1319
|
-
let r =
|
|
1319
|
+
let r = Ye(n), i;
|
|
1320
1320
|
t[1] === r ? i = t[2] : (i = r({}), t[1] = r, t[2] = i);
|
|
1321
1321
|
let a = i, o;
|
|
1322
1322
|
t[3] === e ? o = t[4] : (o = (t) => {
|
|
@@ -1365,7 +1365,7 @@ var Kn = (e) => {
|
|
|
1365
1365
|
let t = Z(16), { item: n, isCurrent: r, linkComponent: i } = e;
|
|
1366
1366
|
if (r && !ir(n)) {
|
|
1367
1367
|
let e = n.contextMenuActions?.length ? 0 : void 0, r;
|
|
1368
|
-
return t[0] !== n.title || t[1] !== e ? (r = /* @__PURE__ */ Q(
|
|
1368
|
+
return t[0] !== n.title || t[1] !== e ? (r = /* @__PURE__ */ Q(ve.CurrentLink, {
|
|
1369
1369
|
...rr,
|
|
1370
1370
|
tabIndex: e,
|
|
1371
1371
|
children: n.title
|
|
@@ -1373,7 +1373,7 @@ var Kn = (e) => {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
if (n.url && i) {
|
|
1375
1375
|
let e;
|
|
1376
|
-
return t[3] !== i || t[4] !== n.title || t[5] !== n.url ? (e = /* @__PURE__ */ Q(
|
|
1376
|
+
return t[3] !== i || t[4] !== n.title || t[5] !== n.url ? (e = /* @__PURE__ */ Q(ve.Link, {
|
|
1377
1377
|
asChild: !0,
|
|
1378
1378
|
...nr,
|
|
1379
1379
|
children: /* @__PURE__ */ Q(i, {
|
|
@@ -1384,7 +1384,7 @@ var Kn = (e) => {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
if (n.url) {
|
|
1386
1386
|
let e;
|
|
1387
|
-
return t[7] !== n.title || t[8] !== n.url ? (e = /* @__PURE__ */ Q(
|
|
1387
|
+
return t[7] !== n.title || t[8] !== n.url ? (e = /* @__PURE__ */ Q(ve.Link, {
|
|
1388
1388
|
href: n.url,
|
|
1389
1389
|
...nr,
|
|
1390
1390
|
children: n.title
|
|
@@ -1392,7 +1392,7 @@ var Kn = (e) => {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
if (n.onClick) {
|
|
1394
1394
|
let e;
|
|
1395
|
-
return t[10] !== n.onClick || t[11] !== n.title ? (e = /* @__PURE__ */ Q(
|
|
1395
|
+
return t[10] !== n.onClick || t[11] !== n.title ? (e = /* @__PURE__ */ Q(ve.Link, {
|
|
1396
1396
|
as: "button",
|
|
1397
1397
|
type: "button",
|
|
1398
1398
|
onClick: n.onClick,
|
|
@@ -1401,7 +1401,7 @@ var Kn = (e) => {
|
|
|
1401
1401
|
}), t[10] = n.onClick, t[11] = n.title, t[12] = e) : e = t[12], e;
|
|
1402
1402
|
}
|
|
1403
1403
|
let a = n.contextMenuActions?.length ? 0 : void 0, o;
|
|
1404
|
-
return t[13] !== n.title || t[14] !== a ? (o = /* @__PURE__ */ Q(
|
|
1404
|
+
return t[13] !== n.title || t[14] !== a ? (o = /* @__PURE__ */ Q(ve.Link, {
|
|
1405
1405
|
as: "span",
|
|
1406
1406
|
...rr,
|
|
1407
1407
|
tabIndex: a,
|
|
@@ -1415,7 +1415,7 @@ var Kn = (e) => {
|
|
|
1415
1415
|
let a;
|
|
1416
1416
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = { placement: "bottom-start" }, t[2] = a) : a = t[2];
|
|
1417
1417
|
let o;
|
|
1418
|
-
t[3] === i ? o = t[4] : (o = /* @__PURE__ */ Q(
|
|
1418
|
+
t[3] === i ? o = t[4] : (o = /* @__PURE__ */ Q(Ue.span, {
|
|
1419
1419
|
display: "inline-flex",
|
|
1420
1420
|
minW: "0",
|
|
1421
1421
|
tabIndex: -1,
|
|
@@ -1431,14 +1431,14 @@ var Kn = (e) => {
|
|
|
1431
1431
|
let t = Z(3), { separator: n } = e;
|
|
1432
1432
|
if (n === void 0) {
|
|
1433
1433
|
let e;
|
|
1434
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Q(
|
|
1434
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Q(ve.Separator, { flexShrink: 0 }), t[0] = e) : e = t[0], e;
|
|
1435
1435
|
}
|
|
1436
1436
|
let r;
|
|
1437
|
-
return t[1] === n ? r = t[2] : (r = /* @__PURE__ */ Q(
|
|
1437
|
+
return t[1] === n ? r = t[2] : (r = /* @__PURE__ */ Q(ve.Separator, {
|
|
1438
1438
|
flexShrink: 0,
|
|
1439
1439
|
children: n
|
|
1440
1440
|
}), t[1] = n, t[2] = r), r;
|
|
1441
|
-
}, cr =
|
|
1441
|
+
}, cr = Ze.forwardRef(function(e, t) {
|
|
1442
1442
|
let n = Z(21), r, i, a, o, s;
|
|
1443
1443
|
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);
|
|
1444
1444
|
let c;
|
|
@@ -1446,7 +1446,7 @@ var Kn = (e) => {
|
|
|
1446
1446
|
let e;
|
|
1447
1447
|
n[10] !== r || n[11] !== i.length || n[12] !== o ? (e = (e, t) => {
|
|
1448
1448
|
let n = t === i.length - 1;
|
|
1449
|
-
return /* @__PURE__ */ $(
|
|
1449
|
+
return /* @__PURE__ */ $(Ze.Fragment, { children: [/* @__PURE__ */ Q(ve.Item, {
|
|
1450
1450
|
minW: "0",
|
|
1451
1451
|
flexShrink: +!!n,
|
|
1452
1452
|
overflow: "hidden",
|
|
@@ -1459,7 +1459,7 @@ var Kn = (e) => {
|
|
|
1459
1459
|
}, 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;
|
|
1460
1460
|
} else c = n[9];
|
|
1461
1461
|
let l;
|
|
1462
|
-
n[14] !== s || n[15] !== c ? (l = /* @__PURE__ */ Q(
|
|
1462
|
+
n[14] !== s || n[15] !== c ? (l = /* @__PURE__ */ Q(ve.List, {
|
|
1463
1463
|
gap: s,
|
|
1464
1464
|
flexWrap: "nowrap",
|
|
1465
1465
|
minW: "0",
|
|
@@ -1468,7 +1468,7 @@ var Kn = (e) => {
|
|
|
1468
1468
|
children: c
|
|
1469
1469
|
}), n[14] = s, n[15] = c, n[16] = l) : l = n[16];
|
|
1470
1470
|
let u;
|
|
1471
|
-
return n[17] !== t || n[18] !== a || n[19] !== l ? (u = /* @__PURE__ */ Q(
|
|
1471
|
+
return n[17] !== t || n[18] !== a || n[19] !== l ? (u = /* @__PURE__ */ Q(ve.Root, {
|
|
1472
1472
|
ref: t,
|
|
1473
1473
|
...a,
|
|
1474
1474
|
children: l
|
|
@@ -1498,34 +1498,7 @@ var Kn = (e) => {
|
|
|
1498
1498
|
...e
|
|
1499
1499
|
})
|
|
1500
1500
|
}), t[0] = e, t[1] = n), n;
|
|
1501
|
-
}, fr =
|
|
1502
|
-
let { text: t, label: n = "Copy", onCopy: r, onCopyError: i, disabled: a, ...o } = e, [s, l] = it("ready"), u = rt(null);
|
|
1503
|
-
nt(() => () => {
|
|
1504
|
-
u.current && clearTimeout(u.current);
|
|
1505
|
-
}, []);
|
|
1506
|
-
let d = async () => {
|
|
1507
|
-
try {
|
|
1508
|
-
await navigator.clipboard.writeText(t), l("copied"), r?.();
|
|
1509
|
-
} catch (e) {
|
|
1510
|
-
l("failed"), i?.(e);
|
|
1511
|
-
}
|
|
1512
|
-
u.current && clearTimeout(u.current), u.current = setTimeout(() => l("ready"), 1500);
|
|
1513
|
-
}, f = n;
|
|
1514
|
-
return s === "copied" && (f = "Copied"), s === "failed" && (f = "Copy failed. Try again."), /* @__PURE__ */ Q(c, {
|
|
1515
|
-
content: f,
|
|
1516
|
-
openDelay: 300,
|
|
1517
|
-
closeDelay: 150,
|
|
1518
|
-
children: /* @__PURE__ */ Q(Oe, {
|
|
1519
|
-
variant: "ghost",
|
|
1520
|
-
size: "sm",
|
|
1521
|
-
...o,
|
|
1522
|
-
"aria-label": f,
|
|
1523
|
-
disabled: a || !t,
|
|
1524
|
-
onClick: d,
|
|
1525
|
-
children: Q(s === "copied" ? lt : pt, {})
|
|
1526
|
-
})
|
|
1527
|
-
});
|
|
1528
|
-
}, pr = class extends Ze {
|
|
1501
|
+
}, fr = class extends Qe {
|
|
1529
1502
|
state = { error: null };
|
|
1530
1503
|
static getDerivedStateFromError(e) {
|
|
1531
1504
|
return { error: e };
|
|
@@ -1538,20 +1511,20 @@ var Kn = (e) => {
|
|
|
1538
1511
|
};
|
|
1539
1512
|
render() {
|
|
1540
1513
|
let { children: e, fallback: t, label: n } = this.props, { error: r } = this.state;
|
|
1541
|
-
return r ? t || /* @__PURE__ */ Q(
|
|
1514
|
+
return r ? t || /* @__PURE__ */ Q(pr, {
|
|
1542
1515
|
error: r,
|
|
1543
1516
|
label: n,
|
|
1544
1517
|
onReset: this.handleReset
|
|
1545
1518
|
}) : e;
|
|
1546
1519
|
}
|
|
1547
|
-
},
|
|
1520
|
+
}, pr = (e) => {
|
|
1548
1521
|
let t = Z(8), { error: n, label: r, onReset: i } = e, a = r ?? "Something went wrong", o;
|
|
1549
1522
|
t[0] === a ? o = t[1] : (o = /* @__PURE__ */ Q(X, {
|
|
1550
1523
|
textStyle: "paragraph/M/medium",
|
|
1551
1524
|
children: a
|
|
1552
1525
|
}), t[0] = a, t[1] = o);
|
|
1553
1526
|
let s;
|
|
1554
|
-
t[2] === i ? s = t[3] : (s = i ? /* @__PURE__ */ Q(
|
|
1527
|
+
t[2] === i ? s = t[3] : (s = i ? /* @__PURE__ */ Q(ye, {
|
|
1555
1528
|
onClick: i,
|
|
1556
1529
|
children: "Try again"
|
|
1557
1530
|
}) : void 0, t[2] = i, t[3] = s);
|
|
@@ -1559,20 +1532,20 @@ var Kn = (e) => {
|
|
|
1559
1532
|
return t[4] !== o || t[5] !== s || t[6] !== c ? (l = /* @__PURE__ */ Q(ur, {
|
|
1560
1533
|
height: "100%",
|
|
1561
1534
|
width: "100%",
|
|
1562
|
-
children: /* @__PURE__ */ Q(
|
|
1535
|
+
children: /* @__PURE__ */ Q(ge, { children: /* @__PURE__ */ Q(x, {
|
|
1563
1536
|
status: "error",
|
|
1564
1537
|
title: o,
|
|
1565
1538
|
endElement: s,
|
|
1566
1539
|
children: c
|
|
1567
1540
|
}) })
|
|
1568
1541
|
}), t[4] = o, t[5] = s, t[6] = c, t[7] = l) : l = t[7], l;
|
|
1569
|
-
},
|
|
1542
|
+
}, mr = (e) => !!e && e !== "circle", hr = (e) => {
|
|
1570
1543
|
let t = Z(18), n, r, i, a, o;
|
|
1571
1544
|
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);
|
|
1572
1545
|
let s = o === void 0 || o, c;
|
|
1573
|
-
t[6] !== r || t[7] !== i ? (c =
|
|
1546
|
+
t[6] !== r || t[7] !== i ? (c = ne(r, i), t[6] = r, t[7] = i, t[8] = c) : c = t[8];
|
|
1574
1547
|
let l = c, u = `${n}.500/15`, d;
|
|
1575
|
-
t[9] !== l || t[10] !== n || t[11] !== r || t[12] !== s ? (d = s &&
|
|
1548
|
+
t[9] !== l || t[10] !== n || t[11] !== r || t[12] !== s ? (d = s && mr(r) ? /* @__PURE__ */ Q(Oe, {
|
|
1576
1549
|
as: l,
|
|
1577
1550
|
boxSize: "icon-xs",
|
|
1578
1551
|
color: `${n}.500`
|
|
@@ -1582,7 +1555,7 @@ var Kn = (e) => {
|
|
|
1582
1555
|
bg: `${n}.500`
|
|
1583
1556
|
}), t[9] = l, t[10] = n, t[11] = r, t[12] = s, t[13] = d) : d = t[13];
|
|
1584
1557
|
let f;
|
|
1585
|
-
return t[14] !== a || t[15] !== u || t[16] !== d ? (f = /* @__PURE__ */ Q(
|
|
1558
|
+
return t[14] !== a || t[15] !== u || t[16] !== d ? (f = /* @__PURE__ */ Q(be, {
|
|
1586
1559
|
boxSize: "tag-swatch",
|
|
1587
1560
|
flexShrink: 0,
|
|
1588
1561
|
borderRadius: "compact",
|
|
@@ -1590,7 +1563,7 @@ var Kn = (e) => {
|
|
|
1590
1563
|
...a,
|
|
1591
1564
|
children: d
|
|
1592
1565
|
}), t[14] = a, t[15] = u, t[16] = d, t[17] = f) : f = t[17], f;
|
|
1593
|
-
},
|
|
1566
|
+
}, gr = Ue("button", { base: {
|
|
1594
1567
|
display: "inline-flex",
|
|
1595
1568
|
borderRadius: "compact",
|
|
1596
1569
|
cursor: "pointer",
|
|
@@ -1599,7 +1572,7 @@ var Kn = (e) => {
|
|
|
1599
1572
|
cursor: "not-allowed",
|
|
1600
1573
|
opacity: .5
|
|
1601
1574
|
}
|
|
1602
|
-
} }),
|
|
1575
|
+
} }), _r = Ue("button", { base: {
|
|
1603
1576
|
boxSize: "tag-color-dot",
|
|
1604
1577
|
borderRadius: "full",
|
|
1605
1578
|
cursor: "pointer",
|
|
@@ -1608,7 +1581,7 @@ var Kn = (e) => {
|
|
|
1608
1581
|
outlineOffset: "3xs",
|
|
1609
1582
|
outlineColor: "transparent",
|
|
1610
1583
|
_selected: { outlineColor: "fg" }
|
|
1611
|
-
} }),
|
|
1584
|
+
} }), vr = Ue("button", { base: {
|
|
1612
1585
|
display: "inline-flex",
|
|
1613
1586
|
alignItems: "center",
|
|
1614
1587
|
justifyContent: "center",
|
|
@@ -1617,20 +1590,20 @@ var Kn = (e) => {
|
|
|
1617
1590
|
color: "fg.muted",
|
|
1618
1591
|
cursor: "pointer",
|
|
1619
1592
|
_hover: { bg: "bg.hover" }
|
|
1620
|
-
} }),
|
|
1621
|
-
let t = Z(39), { color: n, colorOptions: r, icon: i, iconOptions: a, onColorChange: o, onIconChange: s, disabled: c, showIcons: l, colorLabel: u, iconLabel: d, "aria-label": f } = e, p = r === void 0 ?
|
|
1593
|
+
} }), yr = (e) => {
|
|
1594
|
+
let t = Z(39), { color: n, colorOptions: r, icon: i, iconOptions: a, onColorChange: o, onIconChange: s, disabled: c, showIcons: l, colorLabel: u, iconLabel: d, "aria-label": f } = e, p = r === void 0 ? te : r, m = a === void 0 ? H : a, h = l === void 0 || l, g = u === void 0 ? "Color" : u, _ = d === void 0 ? "Icon" : d, v = f === void 0 ? "Pick color and icon" : f, y = i === "circle" ? null : i ?? null, b;
|
|
1622
1595
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { placement: "bottom-start" }, t[0] = b) : b = t[0];
|
|
1623
1596
|
let x;
|
|
1624
|
-
t[1] !== n || t[2] !== i || t[3] !== m || t[4] !== h ? (x = /* @__PURE__ */ Q(
|
|
1597
|
+
t[1] !== n || t[2] !== i || t[3] !== m || t[4] !== h ? (x = /* @__PURE__ */ Q(hr, {
|
|
1625
1598
|
color: n,
|
|
1626
1599
|
icon: i,
|
|
1627
1600
|
iconOptions: m,
|
|
1628
1601
|
showIcon: h
|
|
1629
1602
|
}), t[1] = n, t[2] = i, t[3] = m, t[4] = h, t[5] = x) : x = t[5];
|
|
1630
1603
|
let S;
|
|
1631
|
-
t[6] !== v || t[7] !== c || t[8] !== x ? (S = /* @__PURE__ */ Q(
|
|
1604
|
+
t[6] !== v || t[7] !== c || t[8] !== x ? (S = /* @__PURE__ */ Q(Pe.Trigger, {
|
|
1632
1605
|
asChild: !0,
|
|
1633
|
-
children: /* @__PURE__ */ Q(
|
|
1606
|
+
children: /* @__PURE__ */ Q(gr, {
|
|
1634
1607
|
type: "button",
|
|
1635
1608
|
disabled: c,
|
|
1636
1609
|
"aria-label": v,
|
|
@@ -1646,7 +1619,7 @@ var Kn = (e) => {
|
|
|
1646
1619
|
let T = `repeat(${h ? 10 : 5}, 1fr)`, E;
|
|
1647
1620
|
if (t[12] !== n || t[13] !== p || t[14] !== o) {
|
|
1648
1621
|
let e;
|
|
1649
|
-
t[16] !== n || t[17] !== o ? (e = (e) => /* @__PURE__ */ Q(
|
|
1622
|
+
t[16] !== n || t[17] !== o ? (e = (e) => /* @__PURE__ */ Q(_r, {
|
|
1650
1623
|
type: "button",
|
|
1651
1624
|
bg: `${e}.500`,
|
|
1652
1625
|
"aria-label": e,
|
|
@@ -1656,27 +1629,27 @@ var Kn = (e) => {
|
|
|
1656
1629
|
}, e), t[16] = n, t[17] = o, t[18] = e) : e = t[18], E = p.map(e), t[12] = n, t[13] = p, t[14] = o, t[15] = E;
|
|
1657
1630
|
} else E = t[15];
|
|
1658
1631
|
let D;
|
|
1659
|
-
t[19] !== T || t[20] !== E ? (D = /* @__PURE__ */ Q(
|
|
1632
|
+
t[19] !== T || t[20] !== E ? (D = /* @__PURE__ */ Q(Ee, {
|
|
1660
1633
|
templateColumns: T,
|
|
1661
1634
|
gap: "2xs",
|
|
1662
1635
|
justifyItems: "center",
|
|
1663
1636
|
children: E
|
|
1664
1637
|
}), t[19] = T, t[20] = E, t[21] = D) : D = t[21];
|
|
1665
1638
|
let O;
|
|
1666
|
-
t[22] !== n || t[23] !== _ || t[24] !== m || t[25] !== s || t[26] !== y || t[27] !== h ? (O = h ? /* @__PURE__ */ $(
|
|
1639
|
+
t[22] !== n || t[23] !== _ || t[24] !== m || t[25] !== s || t[26] !== y || t[27] !== h ? (O = h ? /* @__PURE__ */ $(Xe, { children: [
|
|
1667
1640
|
/* @__PURE__ */ Q(J, { borderTop: "subtle" }),
|
|
1668
1641
|
/* @__PURE__ */ Q(X, {
|
|
1669
1642
|
textStyle: "label/S/medium",
|
|
1670
1643
|
color: "fg.muted",
|
|
1671
1644
|
children: _
|
|
1672
1645
|
}),
|
|
1673
|
-
/* @__PURE__ */ Q(
|
|
1646
|
+
/* @__PURE__ */ Q(Ee, {
|
|
1674
1647
|
templateColumns: "repeat(8, 1fr)",
|
|
1675
1648
|
gap: "3xs",
|
|
1676
1649
|
justifyItems: "center",
|
|
1677
1650
|
children: m.map((e) => {
|
|
1678
1651
|
let t = e.value === y;
|
|
1679
|
-
return /* @__PURE__ */ Q(
|
|
1652
|
+
return /* @__PURE__ */ Q(vr, {
|
|
1680
1653
|
type: "button",
|
|
1681
1654
|
color: t ? `${n}.500` : void 0,
|
|
1682
1655
|
bg: t ? `${n}.500/15` : void 0,
|
|
@@ -1684,7 +1657,7 @@ var Kn = (e) => {
|
|
|
1684
1657
|
"aria-label": e.label,
|
|
1685
1658
|
"aria-pressed": t,
|
|
1686
1659
|
onClick: () => s?.(e.value),
|
|
1687
|
-
children: /* @__PURE__ */ Q(
|
|
1660
|
+
children: /* @__PURE__ */ Q(Oe, {
|
|
1688
1661
|
as: e.icon,
|
|
1689
1662
|
boxSize: "icon-xs"
|
|
1690
1663
|
})
|
|
@@ -1693,7 +1666,7 @@ var Kn = (e) => {
|
|
|
1693
1666
|
})
|
|
1694
1667
|
] }) : null, t[22] = n, t[23] = _, t[24] = m, t[25] = s, t[26] = y, t[27] = h, t[28] = O) : O = t[28];
|
|
1695
1668
|
let k;
|
|
1696
|
-
t[29] !== w || t[30] !== D || t[31] !== O ? (k = /* @__PURE__ */ $(
|
|
1669
|
+
t[29] !== w || t[30] !== D || t[31] !== O ? (k = /* @__PURE__ */ $(ze, {
|
|
1697
1670
|
gap: "compact",
|
|
1698
1671
|
p: "sm",
|
|
1699
1672
|
children: [
|
|
@@ -1703,17 +1676,17 @@ var Kn = (e) => {
|
|
|
1703
1676
|
]
|
|
1704
1677
|
}), t[29] = w, t[30] = D, t[31] = O, t[32] = k) : k = t[32];
|
|
1705
1678
|
let A;
|
|
1706
|
-
t[33] !== k || t[34] !== C ? (A = /* @__PURE__ */ Q(
|
|
1679
|
+
t[33] !== k || t[34] !== C ? (A = /* @__PURE__ */ Q(Fe, { children: /* @__PURE__ */ Q(Pe.Positioner, { children: /* @__PURE__ */ Q(Pe.Content, {
|
|
1707
1680
|
width: C,
|
|
1708
1681
|
bg: "bg.elevated",
|
|
1709
1682
|
children: k
|
|
1710
1683
|
}) }) }), t[33] = k, t[34] = C, t[35] = A) : A = t[35];
|
|
1711
1684
|
let j;
|
|
1712
|
-
return t[36] !== A || t[37] !== S ? (j = /* @__PURE__ */ $(
|
|
1685
|
+
return t[36] !== A || t[37] !== S ? (j = /* @__PURE__ */ $(Pe.Root, {
|
|
1713
1686
|
positioning: b,
|
|
1714
1687
|
children: [S, A]
|
|
1715
1688
|
}), t[36] = A, t[37] = S, t[38] = j) : j = t[38], j;
|
|
1716
|
-
},
|
|
1689
|
+
}, br = (e) => {
|
|
1717
1690
|
let t = Z(6), n, r;
|
|
1718
1691
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1719
1692
|
let i;
|
|
@@ -1725,7 +1698,7 @@ var Kn = (e) => {
|
|
|
1725
1698
|
...r,
|
|
1726
1699
|
children: n
|
|
1727
1700
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1728
|
-
},
|
|
1701
|
+
}, xr = (e) => {
|
|
1729
1702
|
let t = Z(6), n, r;
|
|
1730
1703
|
t[0] === e ? (n = t[1], r = t[2]) : ({children: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1731
1704
|
let i;
|
|
@@ -1734,9 +1707,9 @@ var Kn = (e) => {
|
|
|
1734
1707
|
...r,
|
|
1735
1708
|
children: n
|
|
1736
1709
|
}), t[3] = n, t[4] = r, t[5] = i) : i = t[5], i;
|
|
1737
|
-
},
|
|
1710
|
+
}, Sr = (e) => {
|
|
1738
1711
|
let t = Z(30), { icon: n, name: r, description: i, id: a, version: o, category: s, active: c, actionLabel: l } = e, u = c !== void 0 && c, d;
|
|
1739
|
-
t[0] === n ? d = t[1] : (d = /* @__PURE__ */ Q(
|
|
1712
|
+
t[0] === n ? d = t[1] : (d = /* @__PURE__ */ Q(Oe, {
|
|
1740
1713
|
boxSize: "1em",
|
|
1741
1714
|
fontSize: "2xl",
|
|
1742
1715
|
flexShrink: "0",
|
|
@@ -1750,25 +1723,25 @@ var Kn = (e) => {
|
|
|
1750
1723
|
children: r
|
|
1751
1724
|
}), t[2] = r, t[3] = f);
|
|
1752
1725
|
let p;
|
|
1753
|
-
t[4] === a ? p = t[5] : (p = /* @__PURE__ */ Q(
|
|
1726
|
+
t[4] === a ? p = t[5] : (p = /* @__PURE__ */ Q(_e, {
|
|
1754
1727
|
size: "sm",
|
|
1755
1728
|
variant: "outline",
|
|
1756
1729
|
children: a
|
|
1757
1730
|
}), t[4] = a, t[5] = p);
|
|
1758
1731
|
let m;
|
|
1759
|
-
t[6] === o ? m = t[7] : (m = o && /* @__PURE__ */ $(
|
|
1732
|
+
t[6] === o ? m = t[7] : (m = o && /* @__PURE__ */ $(_e, {
|
|
1760
1733
|
size: "sm",
|
|
1761
1734
|
variant: "outline",
|
|
1762
1735
|
children: ["v", o]
|
|
1763
1736
|
}), t[6] = o, t[7] = m);
|
|
1764
1737
|
let h;
|
|
1765
|
-
t[8] === s ? h = t[9] : (h = s && /* @__PURE__ */ Q(
|
|
1738
|
+
t[8] === s ? h = t[9] : (h = s && /* @__PURE__ */ Q(_e, {
|
|
1766
1739
|
size: "sm",
|
|
1767
1740
|
variant: "outline",
|
|
1768
1741
|
children: s
|
|
1769
1742
|
}), t[8] = s, t[9] = h);
|
|
1770
1743
|
let g;
|
|
1771
|
-
t[10] !== f || t[11] !== p || t[12] !== m || t[13] !== h ? (g = /* @__PURE__ */ $(
|
|
1744
|
+
t[10] !== f || t[11] !== p || t[12] !== m || t[13] !== h ? (g = /* @__PURE__ */ $(De, {
|
|
1772
1745
|
gap: "2",
|
|
1773
1746
|
flexWrap: "wrap",
|
|
1774
1747
|
children: [
|
|
@@ -1787,18 +1760,18 @@ var Kn = (e) => {
|
|
|
1787
1760
|
t[17] !== g || t[18] !== _ ? (v = /* @__PURE__ */ Q(J, {
|
|
1788
1761
|
flex: "1",
|
|
1789
1762
|
minW: "0",
|
|
1790
|
-
children: /* @__PURE__ */ $(
|
|
1763
|
+
children: /* @__PURE__ */ $(ze, {
|
|
1791
1764
|
gap: "1",
|
|
1792
1765
|
children: [g, _]
|
|
1793
1766
|
})
|
|
1794
1767
|
}), t[17] = g, t[18] = _, t[19] = v) : v = t[19];
|
|
1795
1768
|
let y;
|
|
1796
|
-
t[20] === u ? y = t[21] : (y = u && /* @__PURE__ */ Q(
|
|
1769
|
+
t[20] === u ? y = t[21] : (y = u && /* @__PURE__ */ Q(Oe, {
|
|
1797
1770
|
color: "fg.success",
|
|
1798
|
-
children: /* @__PURE__ */ Q(
|
|
1771
|
+
children: /* @__PURE__ */ Q(ut, {})
|
|
1799
1772
|
}), t[20] = u, t[21] = y);
|
|
1800
1773
|
let b = l ?? (u ? "Active" : "Connect"), x;
|
|
1801
|
-
t[22] !== u || t[23] !== b || t[24] !== y ? (x = /* @__PURE__ */ $(
|
|
1774
|
+
t[22] !== u || t[23] !== b || t[24] !== y ? (x = /* @__PURE__ */ $(ye, {
|
|
1802
1775
|
type: "button",
|
|
1803
1776
|
disabled: u,
|
|
1804
1777
|
size: "sm",
|
|
@@ -1809,7 +1782,7 @@ var Kn = (e) => {
|
|
|
1809
1782
|
children: [y, b]
|
|
1810
1783
|
}), t[22] = u, t[23] = b, t[24] = y, t[25] = x) : x = t[25];
|
|
1811
1784
|
let S;
|
|
1812
|
-
return t[26] !== d || t[27] !== x || t[28] !== v ? (S = /* @__PURE__ */ Q(
|
|
1785
|
+
return t[26] !== d || t[27] !== x || t[28] !== v ? (S = /* @__PURE__ */ Q(br, { children: /* @__PURE__ */ Q(xr, { children: /* @__PURE__ */ $(De, {
|
|
1813
1786
|
gap: "4",
|
|
1814
1787
|
alignItems: "flex-start",
|
|
1815
1788
|
children: [
|
|
@@ -1818,7 +1791,7 @@ var Kn = (e) => {
|
|
|
1818
1791
|
x
|
|
1819
1792
|
]
|
|
1820
1793
|
}) }) }), t[26] = d, t[27] = x, t[28] = v, t[29] = S) : S = t[29], S;
|
|
1821
|
-
},
|
|
1794
|
+
}, Cr = qe({
|
|
1822
1795
|
className: "ps-segmented-control",
|
|
1823
1796
|
slots: ["root", "item"],
|
|
1824
1797
|
base: {
|
|
@@ -1874,7 +1847,7 @@ var Kn = (e) => {
|
|
|
1874
1847
|
}
|
|
1875
1848
|
} },
|
|
1876
1849
|
defaultVariants: { size: "sm" }
|
|
1877
|
-
}), { withProvider:
|
|
1850
|
+
}), { withProvider: wr, withContext: Tr } = We({ recipe: Cr }), Er = wr("div", "root"), Dr = Tr("button", "item"), Or = (e) => {
|
|
1878
1851
|
let t = Z(20), n, r, i, a, o, s;
|
|
1879
1852
|
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);
|
|
1880
1853
|
let c;
|
|
@@ -1882,7 +1855,7 @@ var Kn = (e) => {
|
|
|
1882
1855
|
let e;
|
|
1883
1856
|
t[12] !== r || t[13] !== i || t[14] !== s ? (e = (e) => {
|
|
1884
1857
|
let t = e.value === s;
|
|
1885
|
-
return /* @__PURE__ */ Q(
|
|
1858
|
+
return /* @__PURE__ */ Q(Dr, {
|
|
1886
1859
|
type: "button",
|
|
1887
1860
|
"aria-pressed": t,
|
|
1888
1861
|
"data-selected": t ? "" : void 0,
|
|
@@ -1893,13 +1866,13 @@ var Kn = (e) => {
|
|
|
1893
1866
|
}, 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;
|
|
1894
1867
|
} else c = t[11];
|
|
1895
1868
|
let l;
|
|
1896
|
-
return t[16] !== n || t[17] !== o || t[18] !== c ? (l = /* @__PURE__ */ Q(
|
|
1869
|
+
return t[16] !== n || t[17] !== o || t[18] !== c ? (l = /* @__PURE__ */ Q(Er, {
|
|
1897
1870
|
role: "group",
|
|
1898
1871
|
"aria-label": n,
|
|
1899
1872
|
...o,
|
|
1900
1873
|
children: c
|
|
1901
1874
|
}), t[16] = n, t[17] = o, t[18] = c, t[19] = l) : l = t[19], l;
|
|
1902
|
-
},
|
|
1875
|
+
}, kr = Ge({
|
|
1903
1876
|
placement: "top",
|
|
1904
1877
|
pauseOnPageIdle: !0,
|
|
1905
1878
|
duration: 1e4,
|
|
@@ -1909,16 +1882,16 @@ var Kn = (e) => {
|
|
|
1909
1882
|
left: "var(--chakra-spacing-md)",
|
|
1910
1883
|
right: "var(--chakra-spacing-md)"
|
|
1911
1884
|
}
|
|
1912
|
-
}),
|
|
1885
|
+
}), Ar = () => {
|
|
1913
1886
|
let e = Z(1), t;
|
|
1914
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Q(
|
|
1915
|
-
toaster:
|
|
1887
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Q(Fe, { children: /* @__PURE__ */ Q(He, {
|
|
1888
|
+
toaster: kr,
|
|
1916
1889
|
insetInline: { mdDown: "4" },
|
|
1917
|
-
children:
|
|
1890
|
+
children: jr
|
|
1918
1891
|
}) }), e[0] = t) : t = e[0], t;
|
|
1919
1892
|
};
|
|
1920
|
-
function
|
|
1921
|
-
return /* @__PURE__ */ $(
|
|
1893
|
+
function jr(e) {
|
|
1894
|
+
return /* @__PURE__ */ $(Ve.Root, {
|
|
1922
1895
|
width: { md: "sm" },
|
|
1923
1896
|
alignItems: "start",
|
|
1924
1897
|
borderRadius: "xs",
|
|
@@ -1927,22 +1900,22 @@ function Mr(e) {
|
|
|
1927
1900
|
py: "xs",
|
|
1928
1901
|
minH: "auto",
|
|
1929
1902
|
children: [
|
|
1930
|
-
e.type === "loading" ? /* @__PURE__ */ Q(
|
|
1903
|
+
e.type === "loading" ? /* @__PURE__ */ Q(Re, {
|
|
1931
1904
|
size: "sm",
|
|
1932
1905
|
color: "blue.solid"
|
|
1933
|
-
}) : /* @__PURE__ */ Q(
|
|
1934
|
-
/* @__PURE__ */ $(
|
|
1906
|
+
}) : /* @__PURE__ */ Q(Ve.Indicator, {}),
|
|
1907
|
+
/* @__PURE__ */ $(ze, {
|
|
1935
1908
|
gap: "0",
|
|
1936
1909
|
flex: "1",
|
|
1937
1910
|
minWidth: "0",
|
|
1938
1911
|
maxWidth: "100%",
|
|
1939
|
-
children: [e.title && /* @__PURE__ */ Q(
|
|
1912
|
+
children: [e.title && /* @__PURE__ */ Q(Ve.Title, {
|
|
1940
1913
|
textStyle: "label/S/medium",
|
|
1941
1914
|
children: e.title
|
|
1942
1915
|
}), e.description && /* @__PURE__ */ Q(l, {
|
|
1943
1916
|
maxHeight: "12rem",
|
|
1944
1917
|
contentProps: { paddingEnd: "1" },
|
|
1945
|
-
children: /* @__PURE__ */ Q(
|
|
1918
|
+
children: /* @__PURE__ */ Q(Ve.Description, {
|
|
1946
1919
|
textStyle: "paragraph/S/regular",
|
|
1947
1920
|
whiteSpace: "pre-wrap",
|
|
1948
1921
|
wordBreak: "break-word",
|
|
@@ -1950,25 +1923,25 @@ function Mr(e) {
|
|
|
1950
1923
|
})
|
|
1951
1924
|
})]
|
|
1952
1925
|
}),
|
|
1953
|
-
e.action && /* @__PURE__ */ Q(
|
|
1954
|
-
/* @__PURE__ */ Q(
|
|
1926
|
+
e.action && /* @__PURE__ */ Q(Ve.ActionTrigger, { children: e.action.label }),
|
|
1927
|
+
/* @__PURE__ */ Q(Ve.CloseTrigger, {})
|
|
1955
1928
|
]
|
|
1956
1929
|
});
|
|
1957
1930
|
}
|
|
1958
1931
|
// src/components/sidenav/sidenav.store.ts
|
|
1959
|
-
var
|
|
1932
|
+
var Mr = {
|
|
1960
1933
|
open: !0,
|
|
1961
1934
|
expandedSections: [],
|
|
1962
1935
|
expandedNodes: [],
|
|
1963
1936
|
width: null
|
|
1964
|
-
},
|
|
1937
|
+
}, Nr = "pstdio/ui/sidenav", Pr = (e) => `${Nr}/${e}`, Fr = (e, t) => e.includes(t) ? e.filter((e) => e !== t) : [...e, t], Ir = (e, t, n) => n ? e.includes(t) ? e : [...e, t] : e.filter((e) => e !== t), Lr = (e) => ({
|
|
1965
1938
|
open: e.open,
|
|
1966
1939
|
expandedSections: e.expandedSections,
|
|
1967
1940
|
expandedNodes: e.expandedNodes,
|
|
1968
1941
|
width: e.width
|
|
1969
|
-
}),
|
|
1942
|
+
}), Rr = (e) => {
|
|
1970
1943
|
let { storageKey: t, initialState: n } = e, r = {
|
|
1971
|
-
...
|
|
1944
|
+
...Mr,
|
|
1972
1945
|
...n
|
|
1973
1946
|
};
|
|
1974
1947
|
return Ut()(Ht((e) => ({
|
|
@@ -1987,42 +1960,42 @@ var Nr = {
|
|
|
1987
1960
|
})),
|
|
1988
1961
|
toggleSection: (t) => e((e) => ({
|
|
1989
1962
|
...e,
|
|
1990
|
-
expandedSections:
|
|
1963
|
+
expandedSections: Fr(e.expandedSections, t)
|
|
1991
1964
|
})),
|
|
1992
1965
|
toggleNode: (t) => e((e) => ({
|
|
1993
1966
|
...e,
|
|
1994
|
-
expandedNodes:
|
|
1967
|
+
expandedNodes: Fr(e.expandedNodes, t)
|
|
1995
1968
|
})),
|
|
1996
1969
|
setSectionExpanded: (t, n) => e((e) => ({
|
|
1997
1970
|
...e,
|
|
1998
|
-
expandedSections:
|
|
1971
|
+
expandedSections: Ir(e.expandedSections, t, n)
|
|
1999
1972
|
})),
|
|
2000
1973
|
setNodeExpanded: (t, n) => e((e) => ({
|
|
2001
1974
|
...e,
|
|
2002
|
-
expandedNodes:
|
|
1975
|
+
expandedNodes: Ir(e.expandedNodes, t, n)
|
|
2003
1976
|
})),
|
|
2004
1977
|
setWidth: (t) => e((e) => ({
|
|
2005
1978
|
...e,
|
|
2006
1979
|
width: t
|
|
2007
1980
|
})),
|
|
2008
|
-
reset: () => e(
|
|
1981
|
+
reset: () => e(Mr)
|
|
2009
1982
|
}), {
|
|
2010
|
-
name:
|
|
2011
|
-
storage: Vt(
|
|
2012
|
-
partialize:
|
|
1983
|
+
name: Pr(t),
|
|
1984
|
+
storage: Vt(W),
|
|
1985
|
+
partialize: Lr
|
|
2013
1986
|
}));
|
|
2014
|
-
},
|
|
2015
|
-
let n =
|
|
1987
|
+
}, zr = /* @__PURE__ */ new Map(), Br = (e, t) => {
|
|
1988
|
+
let n = zr.get(e);
|
|
2016
1989
|
if (n) return n;
|
|
2017
|
-
let r =
|
|
1990
|
+
let r = Rr({
|
|
2018
1991
|
storageKey: e,
|
|
2019
1992
|
initialState: t
|
|
2020
1993
|
});
|
|
2021
|
-
return
|
|
2022
|
-
},
|
|
1994
|
+
return zr.set(e, r), r;
|
|
1995
|
+
}, Vr = (e, t, n) => {
|
|
2023
1996
|
let r = Z(3), i;
|
|
2024
|
-
return r[0] !== n || r[1] !== e ? (i =
|
|
2025
|
-
},
|
|
1997
|
+
return r[0] !== n || r[1] !== e ? (i = Br(e, n), r[0] = n, r[1] = e, r[2] = i) : i = r[2], Bt(i, t);
|
|
1998
|
+
}, Hr = (e) => {
|
|
2026
1999
|
let t = Z(2), { children: n } = e;
|
|
2027
2000
|
if (!n) return null;
|
|
2028
2001
|
let r;
|
|
@@ -2033,9 +2006,9 @@ var Nr = {
|
|
|
2033
2006
|
overflow: "hidden",
|
|
2034
2007
|
children: n
|
|
2035
2008
|
}), t[0] = n, t[1] = r), r;
|
|
2036
|
-
},
|
|
2009
|
+
}, Ur = (e) => {
|
|
2037
2010
|
let t = Z(2), { children: n } = e, r;
|
|
2038
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ Q(
|
|
2011
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ Q(De, {
|
|
2039
2012
|
"data-testid": "sidenav-header",
|
|
2040
2013
|
justify: "space-between",
|
|
2041
2014
|
align: "center",
|
|
@@ -2045,24 +2018,24 @@ var Nr = {
|
|
|
2045
2018
|
top: "0",
|
|
2046
2019
|
zIndex: "1",
|
|
2047
2020
|
gap: "0",
|
|
2048
|
-
children: /* @__PURE__ */ Q(
|
|
2021
|
+
children: /* @__PURE__ */ Q(De, {
|
|
2049
2022
|
minW: "0",
|
|
2050
2023
|
flex: "1",
|
|
2051
2024
|
children: n
|
|
2052
2025
|
})
|
|
2053
2026
|
}), t[0] = n, t[1] = r), r;
|
|
2054
|
-
},
|
|
2027
|
+
}, Wr = 240, Gr = 200, Kr = 480, qr = (e, t, n) => Math.min(Math.max(e, t), n), Jr = (e, t = Wr) => {
|
|
2055
2028
|
if (typeof e == "number") return e;
|
|
2056
2029
|
if (typeof e == "string") {
|
|
2057
2030
|
let t = parseInt(e, 10);
|
|
2058
2031
|
if (!Number.isNaN(t)) return t;
|
|
2059
2032
|
}
|
|
2060
2033
|
return t;
|
|
2061
|
-
},
|
|
2034
|
+
}, Yr = (e) => {
|
|
2062
2035
|
let t = Z(43), { storageKey: n, sections: r, activeNodeId: i, contextActions: a, header: o, footer: s, width: c, closable: u, emptyLabel: f, defaultExpandedSections: p, linkComponent: m, onNavigate: h, onOpenChange: g, resizable: _, defaultWidth: v, minWidth: b, maxWidth: x, virtualize: S } = e, C;
|
|
2063
2036
|
t[0] === a ? C = t[1] : (C = a === void 0 ? [] : a, t[0] = a, t[1] = C);
|
|
2064
|
-
let w = C, T = u === void 0 || u, E = f === void 0 ? "No items available." : f, D = _ === void 0 || _, O = b === void 0 ?
|
|
2065
|
-
t[2] !== v || t[3] !== c ? (M =
|
|
2037
|
+
let w = C, T = u === void 0 || u, E = f === void 0 ? "No items available." : f, D = _ === void 0 || _, O = b === void 0 ? Gr : b, k = x === void 0 ? Kr : x, A = S !== void 0 && S, j = it(null), M;
|
|
2038
|
+
t[2] !== v || t[3] !== c ? (M = Jr(c, v), t[2] = v, t[3] = c, t[4] = M) : M = t[4];
|
|
2066
2039
|
let N = M, P;
|
|
2067
2040
|
t[5] === p ? P = t[6] : (P = p ? { expandedSections: p } : {}, t[5] = p, t[6] = P);
|
|
2068
2041
|
let F;
|
|
@@ -2070,16 +2043,16 @@ var Nr = {
|
|
|
2070
2043
|
...P,
|
|
2071
2044
|
width: N
|
|
2072
2045
|
}, t[7] = N, t[8] = P, t[9] = F) : F = t[9];
|
|
2073
|
-
let I = F, L =
|
|
2046
|
+
let I = F, L = Vr(n, Xr, I), R = Vr(n, Zr, I), z = Vr(n, Qr, I), B = Vr(n, $r, I), V = Vr(n, ei, I), ee = Vr(n, ti, I), te, H;
|
|
2074
2047
|
t[10] !== g || t[11] !== L ? (te = () => {
|
|
2075
2048
|
g?.(L);
|
|
2076
|
-
}, H = [g, L], t[10] = g, t[11] = L, t[12] = te, t[13] = H) : (te = t[12], H = t[13]),
|
|
2049
|
+
}, H = [g, L], t[10] = g, t[11] = L, t[12] = te, t[13] = H) : (te = t[12], H = t[13]), rt(te, H);
|
|
2077
2050
|
let ne = R ?? N, re;
|
|
2078
|
-
t[14] !== k || t[15] !== O || t[16] !== ne ? (re =
|
|
2051
|
+
t[14] !== k || t[15] !== O || t[16] !== ne ? (re = qr(ne, O, k), t[14] = k, t[15] = O, t[16] = ne, t[17] = re) : re = t[17];
|
|
2079
2052
|
let U = re;
|
|
2080
2053
|
if (!L && T) return null;
|
|
2081
2054
|
let W = D ? `${U}px` : c ?? `${N}px`, G;
|
|
2082
|
-
t[18] === o ? G = t[19] : (G = /* @__PURE__ */ Q(
|
|
2055
|
+
t[18] === o ? G = t[19] : (G = /* @__PURE__ */ Q(Ur, { children: o }), t[18] = o, t[19] = G);
|
|
2083
2056
|
let K, q;
|
|
2084
2057
|
t[20] === Symbol.for("react.memo_cache_sentinel") ? (K = {
|
|
2085
2058
|
display: "block",
|
|
@@ -2127,9 +2100,9 @@ var Nr = {
|
|
|
2127
2100
|
})
|
|
2128
2101
|
}), t[22] = i, t[23] = E, t[24] = B, t[25] = z, t[26] = m, t[27] = h, t[28] = r, t[29] = ee, t[30] = V, t[31] = A, t[32] = ie) : ie = t[32];
|
|
2129
2102
|
let ae;
|
|
2130
|
-
t[33] === s ? ae = t[34] : (ae = /* @__PURE__ */ Q(
|
|
2103
|
+
t[33] === s ? ae = t[34] : (ae = /* @__PURE__ */ Q(Hr, { children: s }), t[33] = s, t[34] = ae);
|
|
2131
2104
|
let oe;
|
|
2132
|
-
t[35] !== G || t[36] !== ie || t[37] !== ae || t[38] !== W ? (oe = /* @__PURE__ */ $(
|
|
2105
|
+
t[35] !== G || t[36] !== ie || t[37] !== ae || t[38] !== W ? (oe = /* @__PURE__ */ $(Te, {
|
|
2133
2106
|
as: "aside",
|
|
2134
2107
|
"data-testid": "sidenav",
|
|
2135
2108
|
direction: "column",
|
|
@@ -2155,26 +2128,26 @@ var Nr = {
|
|
|
2155
2128
|
children: se
|
|
2156
2129
|
}), t[40] = se, t[41] = w, t[42] = ce) : ce = t[42], ce;
|
|
2157
2130
|
};
|
|
2158
|
-
function
|
|
2131
|
+
function Xr(e) {
|
|
2159
2132
|
return e.open;
|
|
2160
2133
|
}
|
|
2161
|
-
function
|
|
2134
|
+
function Zr(e) {
|
|
2162
2135
|
return e.width;
|
|
2163
2136
|
}
|
|
2164
|
-
function
|
|
2137
|
+
function Qr(e) {
|
|
2165
2138
|
return e.expandedSections;
|
|
2166
2139
|
}
|
|
2167
|
-
function
|
|
2140
|
+
function $r(e) {
|
|
2168
2141
|
return e.expandedNodes;
|
|
2169
2142
|
}
|
|
2170
|
-
function
|
|
2143
|
+
function ei(e) {
|
|
2171
2144
|
return e.toggleSection;
|
|
2172
2145
|
}
|
|
2173
|
-
function
|
|
2146
|
+
function ti(e) {
|
|
2174
2147
|
return e.toggleNode;
|
|
2175
2148
|
}
|
|
2176
2149
|
// src/components/tab-strip/tab-visibility.store.ts
|
|
2177
|
-
var
|
|
2150
|
+
var ni = { tabOverrides: {} }, ri = "pstdio/ui/tab-visibility", ii = (e) => `${ri}/${e}`, ai = (e, t) => e ?? (t ? "hidden" : "shown"), oi = (e, t, n) => {
|
|
2178
2151
|
if (n === void 0) {
|
|
2179
2152
|
if (!(t in e)) return e;
|
|
2180
2153
|
let { [t]: n, ...r } = e;
|
|
@@ -2184,39 +2157,39 @@ var ri = { tabOverrides: {} }, ii = "pstdio/ui/tab-visibility", ai = (e) => `${i
|
|
|
2184
2157
|
...e,
|
|
2185
2158
|
[t]: n
|
|
2186
2159
|
};
|
|
2187
|
-
},
|
|
2188
|
-
...
|
|
2160
|
+
}, si = (e, t, n) => oi(e, t, ai(e[t], n) === "hidden" ? "shown" : "hidden"), ci = (e) => ({ tabOverrides: e.tabOverrides }), li = (e) => Ut()(Ht((e) => ({
|
|
2161
|
+
...ni,
|
|
2189
2162
|
setTab: (t, n) => e((e) => ({
|
|
2190
2163
|
...e,
|
|
2191
|
-
tabOverrides:
|
|
2164
|
+
tabOverrides: oi(e.tabOverrides, t, n)
|
|
2192
2165
|
})),
|
|
2193
2166
|
toggleTab: (t, n) => e((e) => ({
|
|
2194
2167
|
...e,
|
|
2195
|
-
tabOverrides:
|
|
2168
|
+
tabOverrides: si(e.tabOverrides, t, n)
|
|
2196
2169
|
})),
|
|
2197
2170
|
clearTab: (t) => e((e) => ({
|
|
2198
2171
|
...e,
|
|
2199
|
-
tabOverrides:
|
|
2172
|
+
tabOverrides: oi(e.tabOverrides, t, void 0)
|
|
2200
2173
|
})),
|
|
2201
|
-
reset: () => e(
|
|
2174
|
+
reset: () => e(ni)
|
|
2202
2175
|
}), {
|
|
2203
|
-
name:
|
|
2204
|
-
storage: Vt(
|
|
2205
|
-
partialize:
|
|
2206
|
-
})),
|
|
2207
|
-
let t =
|
|
2176
|
+
name: ii(e.storageKey),
|
|
2177
|
+
storage: Vt(W),
|
|
2178
|
+
partialize: ci
|
|
2179
|
+
})), ui = /* @__PURE__ */ new Map(), di = (e) => {
|
|
2180
|
+
let t = ui.get(e);
|
|
2208
2181
|
if (t) return t;
|
|
2209
|
-
let n =
|
|
2210
|
-
return
|
|
2211
|
-
},
|
|
2182
|
+
let n = li({ storageKey: e });
|
|
2183
|
+
return ui.set(e, n), n;
|
|
2184
|
+
}, fi = (e, t) => {
|
|
2212
2185
|
let n = Z(2), r;
|
|
2213
|
-
return n[0] === e ? r = n[1] : (r =
|
|
2214
|
-
},
|
|
2186
|
+
return n[0] === e ? r = n[1] : (r = di(e), n[0] = e, n[1] = r), Bt(r, t);
|
|
2187
|
+
}, pi = (e, t) => typeof e == "string" ? e : t, mi = (e, t) => e ?? (t ? "hidden" : "shown"), hi = (e) => e.canHide === !0 || e.hiddenByDefault === !0, gi = (e, t) => mi(t[e.id], e.hiddenByDefault) === "shown", _i = (e, t) => {
|
|
2215
2188
|
let n = !1, r = [];
|
|
2216
|
-
for (let i of e) if (!
|
|
2189
|
+
for (let i of e) if (!gi(i, t)) n = !0;
|
|
2217
2190
|
else {
|
|
2218
2191
|
if (i.children && i.children.length > 0) {
|
|
2219
|
-
let e =
|
|
2192
|
+
let e = _i(i.children, t);
|
|
2220
2193
|
if (e !== i.children) {
|
|
2221
2194
|
n = !0, r.push({
|
|
2222
2195
|
...i,
|
|
@@ -2228,38 +2201,38 @@ var ri = { tabOverrides: {} }, ii = "pstdio/ui/tab-visibility", ai = (e) => `${i
|
|
|
2228
2201
|
r.push(i);
|
|
2229
2202
|
}
|
|
2230
2203
|
return n ? r : e;
|
|
2231
|
-
},
|
|
2204
|
+
}, vi = (e, t) => _i(e, t), yi = (e, t, n) => {
|
|
2232
2205
|
let r = !1, i = [];
|
|
2233
2206
|
for (let a of e) {
|
|
2234
|
-
if (
|
|
2207
|
+
if (mi(t[a.id], a.hiddenByDefault) === "hidden") {
|
|
2235
2208
|
r = !0;
|
|
2236
2209
|
continue;
|
|
2237
2210
|
}
|
|
2238
|
-
let e =
|
|
2211
|
+
let e = _i(a.nodes, n);
|
|
2239
2212
|
e.length === 0 && !a.emptyState && !a.actions?.length ? r = !0 : e === a.nodes ? i.push(a) : (r = !0, i.push({
|
|
2240
2213
|
...a,
|
|
2241
2214
|
nodes: e
|
|
2242
2215
|
}));
|
|
2243
2216
|
}
|
|
2244
2217
|
return r ? i : e;
|
|
2245
|
-
},
|
|
2246
|
-
let a = e.hiddenByDefault === !0, o =
|
|
2218
|
+
}, bi = (e, t) => e === "shown" ? t.visibleIcon : t.hiddenIcon, xi = (e, t, n, r, i) => {
|
|
2219
|
+
let a = e.hiddenByDefault === !0, o = mi(n[e.id], a);
|
|
2247
2220
|
return {
|
|
2248
2221
|
key: `section:${e.id}`,
|
|
2249
2222
|
label: t,
|
|
2250
2223
|
onClick: () => r.onToggleSection(e.id, a),
|
|
2251
|
-
endContent:
|
|
2224
|
+
endContent: bi(o, i)
|
|
2252
2225
|
};
|
|
2253
|
-
},
|
|
2254
|
-
let i = e.hiddenByDefault === !0, a =
|
|
2226
|
+
}, Si = (e, t, n, r) => {
|
|
2227
|
+
let i = e.hiddenByDefault === !0, a = mi(t[e.id], i);
|
|
2255
2228
|
return {
|
|
2256
2229
|
key: `node:${e.id}`,
|
|
2257
|
-
label:
|
|
2230
|
+
label: pi(e.label, e.id),
|
|
2258
2231
|
icon: e.icon,
|
|
2259
2232
|
onClick: () => n.onToggleNode(e.id, i),
|
|
2260
|
-
endContent:
|
|
2233
|
+
endContent: bi(a, r)
|
|
2261
2234
|
};
|
|
2262
|
-
},
|
|
2235
|
+
}, Ci = (e, t, n, r, i) => {
|
|
2263
2236
|
let a = [], o = (e) => {
|
|
2264
2237
|
e.length !== 0 && (a.length > 0 && (e[0] = {
|
|
2265
2238
|
...e[0],
|
|
@@ -2269,8 +2242,8 @@ var ri = { tabOverrides: {} }, ii = "pstdio/ui/tab-visibility", ai = (e) => `${i
|
|
|
2269
2242
|
let a = [];
|
|
2270
2243
|
for (let o of e) {
|
|
2271
2244
|
let e = o.label ?? o.menuLabel;
|
|
2272
|
-
e &&
|
|
2273
|
-
for (let e of o.nodes)
|
|
2245
|
+
e && hi(o) && a.push(xi(o, e, t, r, i));
|
|
2246
|
+
for (let e of o.nodes) hi(e) && a.push(Si(e, n, r, i));
|
|
2274
2247
|
}
|
|
2275
2248
|
return a;
|
|
2276
2249
|
};
|
|
@@ -2281,16 +2254,16 @@ var ri = { tabOverrides: {} }, ii = "pstdio/ui/tab-visibility", ai = (e) => `${i
|
|
|
2281
2254
|
separatorBefore: !0,
|
|
2282
2255
|
onClick: r.onResetAll
|
|
2283
2256
|
}), a;
|
|
2284
|
-
},
|
|
2257
|
+
}, wi = (e, t, n) => {
|
|
2285
2258
|
let r = !1, i = [];
|
|
2286
|
-
for (let a of e) a.closable === !0 ? i.push(a) : a.pinned === !0 && a.hiddenByDefault === !0 ||
|
|
2259
|
+
for (let a of e) a.closable === !0 ? i.push(a) : a.pinned === !0 && a.hiddenByDefault === !0 || mi(t[n(a)], a.hiddenByDefault) === "hidden" ? r = !0 : i.push(a);
|
|
2287
2260
|
return r ? i : e;
|
|
2288
|
-
},
|
|
2261
|
+
}, Ti = (e, t, n, r, i, a) => {
|
|
2289
2262
|
let o = [], s = 0;
|
|
2290
2263
|
for (let c of e) {
|
|
2291
2264
|
if (c.pinned === !0 || c.closable === !0) continue;
|
|
2292
2265
|
s += 1;
|
|
2293
|
-
let e = r(c), l = c.hiddenByDefault === !0, u =
|
|
2266
|
+
let e = r(c), l = c.hiddenByDefault === !0, u = mi(t[e], l);
|
|
2294
2267
|
o.push({
|
|
2295
2268
|
key: `tab:${e}`,
|
|
2296
2269
|
label: c.title ?? c.contributionId,
|
|
@@ -2306,77 +2279,80 @@ var ri = { tabOverrides: {} }, ii = "pstdio/ui/tab-visibility", ai = (e) => `${i
|
|
|
2306
2279
|
separatorBefore: !0,
|
|
2307
2280
|
onClick: n.onResetAll
|
|
2308
2281
|
}), o;
|
|
2309
|
-
}, { withProvider:
|
|
2310
|
-
let t = Z(43), { tab: n, selected: r, tabIndex: i, reorderable: a, dropEdge: o, onSelect: s, onClose: l, onKeyDown: u } = e, d = !a,
|
|
2311
|
-
t[0] !==
|
|
2282
|
+
}, { withProvider: Ei, withContext: Di } = We({ recipe: G }), Oi = Ei("div", "list"), ki = Di("div", "tab"), Ai = Di("button", "trigger"), ji = Di("span", "label"), Mi = Di("button", "close"), Ni = (e) => {
|
|
2283
|
+
let t = Z(43), { tab: n, selected: r, tabIndex: i, reorderable: a, dropEdge: o, onSelect: s, onClose: l, onKeyDown: u } = e, d = it(null), f = !a, p;
|
|
2284
|
+
t[0] !== f || t[1] !== n.id ? (p = {
|
|
2312
2285
|
id: n.id,
|
|
2313
|
-
disabled:
|
|
2314
|
-
}, t[0] =
|
|
2315
|
-
let { attributes:
|
|
2316
|
-
t[3] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2317
|
-
let
|
|
2318
|
-
t[4] !==
|
|
2319
|
-
let
|
|
2320
|
-
t[7] !==
|
|
2321
|
-
|
|
2322
|
-
}, t[7] =
|
|
2323
|
-
let E;
|
|
2324
|
-
t[11] === n.label ? E = t[12] : (E = /* @__PURE__ */ Q(Mi, { children: n.label }), t[11] = n.label, t[12] = E);
|
|
2286
|
+
disabled: f
|
|
2287
|
+
}, t[0] = f, t[1] = n.id, t[2] = p) : p = t[2];
|
|
2288
|
+
let { attributes: m, listeners: h, setNodeRef: g, setActivatorNodeRef: _, isDragging: v, isSorting: y } = Rt(p), b = r ? "" : void 0, x = v ? "" : void 0, S = !y && void 0, C;
|
|
2289
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (C = { placement: "bottom" }, t[3] = C) : C = t[3];
|
|
2290
|
+
let w;
|
|
2291
|
+
t[4] !== m || t[5] !== a ? (w = a ? m : {}, t[4] = m, t[5] = a, t[6] = w) : w = t[6];
|
|
2292
|
+
let T = a ? "Alt+ArrowLeft Alt+ArrowRight" : void 0, E;
|
|
2293
|
+
t[7] !== y || t[8] !== h || t[9] !== u ? (E = (e) => {
|
|
2294
|
+
h?.onKeyDown?.(e), !y && !e.defaultPrevented && u(e);
|
|
2295
|
+
}, t[7] = y, t[8] = h, t[9] = u, t[10] = E) : E = t[10];
|
|
2325
2296
|
let D;
|
|
2326
|
-
t[
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2297
|
+
t[11] === n.label ? D = t[12] : (D = /* @__PURE__ */ Q(ji, {
|
|
2298
|
+
ref: d,
|
|
2299
|
+
children: n.label
|
|
2300
|
+
}), t[11] = n.label, t[12] = D);
|
|
2301
|
+
let O;
|
|
2302
|
+
t[13] !== h || t[14] !== s || t[15] !== r || t[16] !== _ || t[17] !== w || t[18] !== T || t[19] !== E || t[20] !== D || t[21] !== n.icon || t[22] !== n.label || t[23] !== i ? (O = /* @__PURE__ */ $(Ai, {
|
|
2303
|
+
...w,
|
|
2304
|
+
...h,
|
|
2305
|
+
ref: _,
|
|
2330
2306
|
type: "button",
|
|
2331
2307
|
role: "tab",
|
|
2332
2308
|
"aria-selected": r,
|
|
2333
2309
|
"aria-label": n.label,
|
|
2334
|
-
"aria-keyshortcuts":
|
|
2310
|
+
"aria-keyshortcuts": T,
|
|
2335
2311
|
tabIndex: i,
|
|
2336
2312
|
onClick: s,
|
|
2337
|
-
onKeyDown:
|
|
2338
|
-
children: [n.icon,
|
|
2339
|
-
}), t[13] =
|
|
2340
|
-
let
|
|
2341
|
-
t[25] !==
|
|
2313
|
+
onKeyDown: E,
|
|
2314
|
+
children: [n.icon, D]
|
|
2315
|
+
}), t[13] = h, t[14] = s, t[15] = r, t[16] = _, t[17] = w, t[18] = T, t[19] = E, t[20] = D, t[21] = n.icon, t[22] = n.label, t[23] = i, t[24] = O) : O = t[24];
|
|
2316
|
+
let k;
|
|
2317
|
+
t[25] !== O || t[26] !== S || t[27] !== n.label ? (k = /* @__PURE__ */ Q(c, {
|
|
2342
2318
|
content: n.label,
|
|
2343
|
-
open:
|
|
2344
|
-
|
|
2319
|
+
open: S,
|
|
2320
|
+
overflowRef: d,
|
|
2345
2321
|
closeDelay: 150,
|
|
2346
|
-
positioning:
|
|
2347
|
-
children:
|
|
2348
|
-
}), t[25] =
|
|
2349
|
-
let
|
|
2350
|
-
t[29] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2351
|
-
let
|
|
2352
|
-
t[30] !== l || t[31] !==
|
|
2322
|
+
positioning: C,
|
|
2323
|
+
children: O
|
|
2324
|
+
}), t[25] = O, t[26] = S, t[27] = n.label, t[28] = k) : k = t[28];
|
|
2325
|
+
let A = `Close ${n.label}`, j = `Close ${n.label}`, M;
|
|
2326
|
+
t[29] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ Q(Et, { "aria-hidden": "true" }), t[29] = M) : M = t[29];
|
|
2327
|
+
let N;
|
|
2328
|
+
t[30] !== l || t[31] !== A || t[32] !== j ? (N = /* @__PURE__ */ Q(Mi, {
|
|
2353
2329
|
type: "button",
|
|
2354
|
-
"aria-label":
|
|
2355
|
-
title:
|
|
2330
|
+
"aria-label": A,
|
|
2331
|
+
title: j,
|
|
2356
2332
|
onClick: l,
|
|
2357
|
-
children:
|
|
2358
|
-
}), t[30] = l, t[31] =
|
|
2359
|
-
let
|
|
2360
|
-
t[34] === o ?
|
|
2333
|
+
children: M
|
|
2334
|
+
}), t[30] = l, t[31] = A, t[32] = j, t[33] = N) : N = t[33];
|
|
2335
|
+
let P;
|
|
2336
|
+
t[34] === o ? P = t[35] : (P = o ? /* @__PURE__ */ Q(B, {
|
|
2361
2337
|
"data-window-tab-drop": o,
|
|
2362
2338
|
orientation: "vertical",
|
|
2363
2339
|
left: o === "before" ? "0" : void 0,
|
|
2364
2340
|
right: o === "after" ? "0" : void 0
|
|
2365
|
-
}) : null, t[34] = o, t[35] =
|
|
2366
|
-
let
|
|
2367
|
-
return t[36] !==
|
|
2368
|
-
ref:
|
|
2341
|
+
}) : null, t[34] = o, t[35] = P);
|
|
2342
|
+
let F;
|
|
2343
|
+
return t[36] !== g || t[37] !== k || t[38] !== N || t[39] !== P || t[40] !== b || t[41] !== x ? (F = /* @__PURE__ */ $(ki, {
|
|
2344
|
+
ref: g,
|
|
2369
2345
|
role: "presentation",
|
|
2370
|
-
"data-selected":
|
|
2371
|
-
"data-dragging":
|
|
2346
|
+
"data-selected": b,
|
|
2347
|
+
"data-dragging": x,
|
|
2372
2348
|
children: [
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2349
|
+
k,
|
|
2350
|
+
N,
|
|
2351
|
+
P
|
|
2376
2352
|
]
|
|
2377
|
-
}), t[36] =
|
|
2378
|
-
},
|
|
2379
|
-
let t = Z(93), { tabs: n, selectedId: r, onSelect: i, onClose: a, onReorder: o, "aria-label": s } = e, c =
|
|
2353
|
+
}), t[36] = g, t[37] = k, t[38] = N, t[39] = P, t[40] = b, t[41] = x, t[42] = F) : F = t[42], F;
|
|
2354
|
+
}, Pi = (e) => {
|
|
2355
|
+
let t = Z(93), { tabs: n, selectedId: r, onSelect: i, onClose: a, onReorder: o, "aria-label": s } = e, c = it(null), u = it(null), [d, f] = at(), [p, m] = at(), h;
|
|
2380
2356
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (h = { activationConstraint: { distance: 6 } }, t[0] = h) : h = t[0];
|
|
2381
2357
|
let g;
|
|
2382
2358
|
t[1] === Symbol.for("react.memo_cache_sentinel") ? (g = { coordinateGetter: Lt }, t[1] = g) : g = t[1];
|
|
@@ -2405,7 +2381,7 @@ var ri = { tabOverrides: {} }, ii = "pstdio/ui/tab-visibility", ai = (e) => `${i
|
|
|
2405
2381
|
block: "nearest",
|
|
2406
2382
|
inline: "nearest"
|
|
2407
2383
|
});
|
|
2408
|
-
}, C = [r, d], t[5] = d, t[6] = r, t[7] = S, t[8] = C) : (S = t[7], C = t[8]),
|
|
2384
|
+
}, C = [r, d], t[5] = d, t[6] = r, t[7] = S, t[8] = C) : (S = t[7], C = t[8]), rt(S, C);
|
|
2409
2385
|
let w, T, E, D, O, k, A, j, M, N, P, F, I, L, R, z, B, V, ee, te, H, ne, re, U, W;
|
|
2410
2386
|
if (t[9] !== p || t[10] !== s || t[11] !== a || t[12] !== o || t[13] !== i || t[14] !== y || t[15] !== r || t[16] !== _ || t[17] !== n) {
|
|
2411
2387
|
let e = (e) => {
|
|
@@ -2445,11 +2421,11 @@ var ri = { tabOverrides: {} }, ii = "pstdio/ui/tab-visibility", ai = (e) => `${i
|
|
|
2445
2421
|
}, t[43] = z, t[44] = B) : (z = t[43], B = t[44]), t[45] === y ? (V = t[46], ee = t[47]) : (V = (e) => m(y(e)), ee = (e) => m(y(e)), t[45] = y, t[46] = V, t[47] = ee), te = x, t[48] !== o || t[49] !== y ? (H = (e) => {
|
|
2446
2422
|
let t = y(e);
|
|
2447
2423
|
x(), t && o?.(String(e.active.id), t.targetId);
|
|
2448
|
-
}, t[48] = o, t[49] = y, t[50] = H) : H = t[50], E = Ft, t[51] === n ? I = t[52] : (I = n.map(
|
|
2424
|
+
}, t[48] = o, t[49] = y, t[50] = H) : H = t[50], E = Ft, t[51] === n ? I = t[52] : (I = n.map(Fi), t[51] = n, t[52] = I), L = Ii, T = l, O = u, k = "fit-content", A = "0", j = "full", M = "window-tab", N = !1, P = !0, t[53] === Symbol.for("react.memo_cache_sentinel") ? (F = {
|
|
2449
2425
|
h: "full",
|
|
2450
2426
|
w: "full",
|
|
2451
2427
|
minW: "0!"
|
|
2452
|
-
}, t[53] = F) : F = t[53], w =
|
|
2428
|
+
}, t[53] = F) : F = t[53], w = Oi, ne = c, re = "tablist", U = s, W = n.map((t, a) => /* @__PURE__ */ Q(Ni, {
|
|
2453
2429
|
tab: t,
|
|
2454
2430
|
selected: t.id === r,
|
|
2455
2431
|
tabIndex: t.id === (r ?? n[0]?.id) ? 0 : -1,
|
|
@@ -2524,25 +2500,25 @@ var ri = { tabOverrides: {} }, ii = "pstdio/ui/tab-visibility", ai = (e) => `${i
|
|
|
2524
2500
|
children: [q, oe]
|
|
2525
2501
|
}), t[82] = D, t[83] = R, t[84] = z, t[85] = B, t[86] = V, t[87] = ee, t[88] = te, t[89] = H, t[90] = q, t[91] = oe, t[92] = se) : se = t[92], se;
|
|
2526
2502
|
};
|
|
2527
|
-
function
|
|
2503
|
+
function Fi(e) {
|
|
2528
2504
|
return e.id;
|
|
2529
2505
|
}
|
|
2530
|
-
function
|
|
2506
|
+
function Ii() {
|
|
2531
2507
|
return null;
|
|
2532
2508
|
}
|
|
2533
2509
|
// src/components/tab-strip/window-title-bar.tsx
|
|
2534
|
-
var { withProvider:
|
|
2510
|
+
var { withProvider: Li, withContext: Ri } = We({ recipe: K }), zi = Li("div", "root"), Bi = Ri("div", "content"), Vi = Ri("div", "actions"), Hi = (e) => {
|
|
2535
2511
|
let t = Z(8), { platform: n, children: r, actions: i } = e, a = n === "darwin" ? "mac" : "overlay", o;
|
|
2536
|
-
t[0] === i ? o = t[1] : (o = i && /* @__PURE__ */ Q(
|
|
2512
|
+
t[0] === i ? o = t[1] : (o = i && /* @__PURE__ */ Q(Vi, { children: i }), t[0] = i, t[1] = o);
|
|
2537
2513
|
let s;
|
|
2538
|
-
t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ $(
|
|
2514
|
+
t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ $(Bi, { children: [r, o] }), t[2] = r, t[3] = o, t[4] = s) : s = t[4];
|
|
2539
2515
|
let c;
|
|
2540
|
-
return t[5] !== a || t[6] !== s ? (c = /* @__PURE__ */ Q(
|
|
2516
|
+
return t[5] !== a || t[6] !== s ? (c = /* @__PURE__ */ Q(zi, {
|
|
2541
2517
|
controls: a,
|
|
2542
2518
|
"data-window-title-bar": "",
|
|
2543
2519
|
children: s
|
|
2544
2520
|
}), t[5] = a, t[6] = s, t[7] = c) : c = t[7], c;
|
|
2545
|
-
},
|
|
2521
|
+
}, Ui = (e) => {
|
|
2546
2522
|
let t = Z(7), { children: n, hasChanges: r } = e, i;
|
|
2547
2523
|
t[0] === n ? i = t[1] : (i = /* @__PURE__ */ Q(X, {
|
|
2548
2524
|
textStyle: "label/L/medium",
|
|
@@ -2557,12 +2533,12 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2557
2533
|
children: "*"
|
|
2558
2534
|
}) : null, t[2] = r, t[3] = a);
|
|
2559
2535
|
let o;
|
|
2560
|
-
return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */ $(
|
|
2536
|
+
return t[4] !== i || t[5] !== a ? (o = /* @__PURE__ */ $(De, {
|
|
2561
2537
|
gap: "3xs",
|
|
2562
2538
|
minWidth: "0",
|
|
2563
2539
|
children: [i, a]
|
|
2564
2540
|
}), t[4] = i, t[5] = a, t[6] = o) : o = t[6], o;
|
|
2565
|
-
},
|
|
2541
|
+
}, Wi = (e) => e.length === 0 ? "None" : e.length === 1 ? e[0].label : `${e[0].label} +${e.length - 1}`, Gi = (e) => {
|
|
2566
2542
|
let t = Z(54), { actions: n, disabled: r, label: i, options: a, optionName: o, onChange: s } = e, c, l, u, d, f, p, h, g, _, v, y, b, x, S;
|
|
2567
2543
|
if (t[0] !== n || t[1] !== r || t[2] !== i || t[3] !== s || t[4] !== o || t[5] !== a) {
|
|
2568
2544
|
let e;
|
|
@@ -2570,11 +2546,11 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2570
2546
|
let m = a.filter(e), C;
|
|
2571
2547
|
t[22] !== n || t[23] !== s ? (C = (e) => {
|
|
2572
2548
|
s(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
2573
|
-
}, t[22] = n, t[23] = s, t[24] = C) : C = t[24], S = C, u =
|
|
2549
|
+
}, t[22] = n, t[23] = s, t[24] = C) : C = t[24], S = C, u = Ne.Root, x = !1, l = Ne.Trigger, b = !0, c = ye, d = "2xs", f = "ghost", p = "xs", h = m.length === 0 ? "fg.subtle" : "fg", g = r, _ = `${i} for ${o}`, v = m[0]?.icon, y = Wi(m), 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] = h, t[13] = g, t[14] = _, t[15] = v, t[16] = y, t[17] = b, t[18] = x, t[19] = S;
|
|
2574
2550
|
} else c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], h = t[12], g = t[13], _ = t[14], v = t[15], y = t[16], b = t[17], x = t[18], S = t[19];
|
|
2575
2551
|
let C;
|
|
2576
|
-
t[25] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ Q(
|
|
2577
|
-
as:
|
|
2552
|
+
t[25] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ Q(Oe, {
|
|
2553
|
+
as: dt,
|
|
2578
2554
|
boxSize: "icon-2xs"
|
|
2579
2555
|
}), t[25] = C) : C = t[25];
|
|
2580
2556
|
let w;
|
|
@@ -2599,7 +2575,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2599
2575
|
let E;
|
|
2600
2576
|
if (t[40] !== n || t[41] !== a || t[42] !== S) {
|
|
2601
2577
|
let e;
|
|
2602
|
-
t[44] !== n || t[45] !== S ? (e = (e) => /* @__PURE__ */ Q(
|
|
2578
|
+
t[44] !== n || t[45] !== S ? (e = (e) => /* @__PURE__ */ Q(Ne.Item, {
|
|
2603
2579
|
value: e.value,
|
|
2604
2580
|
asChild: !0,
|
|
2605
2581
|
children: /* @__PURE__ */ Q(m, {
|
|
@@ -2609,8 +2585,8 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2609
2585
|
label: e.label,
|
|
2610
2586
|
icon: e.icon,
|
|
2611
2587
|
isSelected: n.includes(e.value),
|
|
2612
|
-
endContent: n.includes(e.value) ? /* @__PURE__ */ Q(
|
|
2613
|
-
as:
|
|
2588
|
+
endContent: n.includes(e.value) ? /* @__PURE__ */ Q(Oe, {
|
|
2589
|
+
as: ut,
|
|
2614
2590
|
boxSize: "icon-xs"
|
|
2615
2591
|
}) : void 0,
|
|
2616
2592
|
onActivate: () => S(e.value)
|
|
@@ -2618,7 +2594,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2618
2594
|
}, e.value), t[44] = n, t[45] = S, t[46] = e) : e = t[46], E = a.map(e), t[40] = n, t[41] = a, t[42] = S, t[43] = E;
|
|
2619
2595
|
} else E = t[43];
|
|
2620
2596
|
let D;
|
|
2621
|
-
t[47] === E ? D = t[48] : (D = /* @__PURE__ */ Q(
|
|
2597
|
+
t[47] === E ? D = t[48] : (D = /* @__PURE__ */ Q(Ne.Positioner, { children: /* @__PURE__ */ Q(Ne.Content, {
|
|
2622
2598
|
minW: "tag-action-menu",
|
|
2623
2599
|
bg: "bg",
|
|
2624
2600
|
children: E
|
|
@@ -2628,7 +2604,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2628
2604
|
closeOnSelect: x,
|
|
2629
2605
|
children: [T, D]
|
|
2630
2606
|
}), t[49] = u, t[50] = T, t[51] = D, t[52] = x, t[53] = O) : O = t[53], O;
|
|
2631
|
-
},
|
|
2607
|
+
}, Ki = (e) => {
|
|
2632
2608
|
let t = Z(68), { actionOptions: n, actionsLabel: r, colorOptions: i, iconOptions: a, value: o, isSaving: s, readOnly: c, showDefault: l, showIcons: u, onActionsChange: d, onColorChange: f, onDelete: p, onIconChange: m, onNameChange: h } = e, g = r === void 0 ? "Actions" : r, _ = s || c, v;
|
|
2633
2609
|
t[0] !== _ || t[1] !== o.id ? (v = {
|
|
2634
2610
|
id: o.id,
|
|
@@ -2646,12 +2622,12 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2646
2622
|
let N = c ? "default" : "grab", P;
|
|
2647
2623
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (P = { color: "fg.muted" }, t[10] = P) : P = t[10];
|
|
2648
2624
|
let F = `Reorder ${o.name}`, I;
|
|
2649
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ Q(
|
|
2625
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ Q(Oe, {
|
|
2650
2626
|
as: gt,
|
|
2651
2627
|
boxSize: "icon-xs"
|
|
2652
2628
|
}), t[11] = I) : I = t[11];
|
|
2653
2629
|
let L;
|
|
2654
|
-
t[12] !== y || t[13] !== b || t[14] !== N || t[15] !== F ? (L = /* @__PURE__ */ Q(
|
|
2630
|
+
t[12] !== y || t[13] !== b || t[14] !== N || t[15] !== F ? (L = /* @__PURE__ */ Q(Te, {
|
|
2655
2631
|
cursor: N,
|
|
2656
2632
|
color: "fg.subtle",
|
|
2657
2633
|
_groupHover: P,
|
|
@@ -2661,7 +2637,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2661
2637
|
children: I
|
|
2662
2638
|
}), t[12] = y, t[13] = b, t[14] = N, t[15] = F, t[16] = L) : L = t[16];
|
|
2663
2639
|
let R = `Change ${o.name} appearance`, z;
|
|
2664
|
-
t[17] !== i || t[18] !== _ || t[19] !== a || t[20] !== f || t[21] !== m || t[22] !== u || t[23] !== R || t[24] !== o.color || t[25] !== o.icon ? (z = /* @__PURE__ */ Q(
|
|
2640
|
+
t[17] !== i || t[18] !== _ || t[19] !== a || t[20] !== f || t[21] !== m || t[22] !== u || t[23] !== R || t[24] !== o.color || t[25] !== o.icon ? (z = /* @__PURE__ */ Q(yr, {
|
|
2665
2641
|
color: o.color,
|
|
2666
2642
|
colorOptions: i,
|
|
2667
2643
|
icon: o.icon,
|
|
@@ -2678,9 +2654,9 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2678
2654
|
t && t !== o.name && h(t);
|
|
2679
2655
|
}, t[27] = h, t[28] = o.name, t[29] = B) : B = t[29];
|
|
2680
2656
|
let V, ee;
|
|
2681
|
-
t[30] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ Q(
|
|
2657
|
+
t[30] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ Q(we.Preview, { textStyle: "paragraph/S/regular" }), ee = /* @__PURE__ */ Q(we.Input, { textStyle: "paragraph/S/regular" }), t[30] = V, t[31] = ee) : (V = t[30], ee = t[31]);
|
|
2682
2658
|
let te;
|
|
2683
|
-
t[32] !== _ || t[33] !== B || t[34] !== o.isNew || t[35] !== o.name ? (te = /* @__PURE__ */ $(
|
|
2659
|
+
t[32] !== _ || t[33] !== B || t[34] !== o.isNew || t[35] !== o.name ? (te = /* @__PURE__ */ $(we.Root, {
|
|
2684
2660
|
minWidth: "0",
|
|
2685
2661
|
defaultValue: o.name,
|
|
2686
2662
|
defaultEdit: o.isNew,
|
|
@@ -2690,14 +2666,14 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2690
2666
|
children: [V, ee]
|
|
2691
2667
|
}, o.name), t[32] = _, t[33] = B, t[34] = o.isNew, t[35] = o.name, t[36] = te) : te = t[36];
|
|
2692
2668
|
let H;
|
|
2693
|
-
t[37] !== l || t[38] !== o.isDefault ? (H = l && o.isDefault ? /* @__PURE__ */ Q(
|
|
2669
|
+
t[37] !== l || t[38] !== o.isDefault ? (H = l && o.isDefault ? /* @__PURE__ */ Q(_e, {
|
|
2694
2670
|
size: "sm",
|
|
2695
2671
|
variant: "subtle",
|
|
2696
2672
|
colorPalette: "blue",
|
|
2697
2673
|
children: "Default"
|
|
2698
2674
|
}) : null, t[37] = l, t[38] = o.isDefault, t[39] = H) : H = t[39];
|
|
2699
2675
|
let ne;
|
|
2700
|
-
t[40] !== te || t[41] !== H ? (ne = /* @__PURE__ */ $(
|
|
2676
|
+
t[40] !== te || t[41] !== H ? (ne = /* @__PURE__ */ $(Te, {
|
|
2701
2677
|
flex: "1",
|
|
2702
2678
|
minWidth: "0",
|
|
2703
2679
|
alignItems: "center",
|
|
@@ -2705,10 +2681,10 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2705
2681
|
children: [te, H]
|
|
2706
2682
|
}), t[40] = te, t[41] = H, t[42] = ne) : ne = t[42];
|
|
2707
2683
|
let re;
|
|
2708
|
-
t[43] !== n || t[44] !== g || t[45] !== _ || t[46] !== d || t[47] !== o.actions || t[48] !== o.name ? (re = n ? /* @__PURE__ */ Q(
|
|
2684
|
+
t[43] !== n || t[44] !== g || t[45] !== _ || t[46] !== d || t[47] !== o.actions || t[48] !== o.name ? (re = n ? /* @__PURE__ */ Q(Te, {
|
|
2709
2685
|
width: "tag-editor-commands",
|
|
2710
2686
|
justifyContent: "flex-end",
|
|
2711
|
-
children: /* @__PURE__ */ Q(
|
|
2687
|
+
children: /* @__PURE__ */ Q(Gi, {
|
|
2712
2688
|
actions: o.actions ?? [],
|
|
2713
2689
|
disabled: _,
|
|
2714
2690
|
label: g,
|
|
@@ -2718,12 +2694,12 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2718
2694
|
})
|
|
2719
2695
|
}) : null, t[43] = n, t[44] = g, t[45] = _, t[46] = d, t[47] = o.actions, t[48] = o.name, t[49] = re) : re = t[49];
|
|
2720
2696
|
let U = _ || o.isDefault, W = `Delete ${o.name}`, G;
|
|
2721
|
-
t[50] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ Q(
|
|
2697
|
+
t[50] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ Q(Oe, {
|
|
2722
2698
|
as: Tt,
|
|
2723
2699
|
boxSize: "icon-xs"
|
|
2724
2700
|
}), t[50] = G) : G = t[50];
|
|
2725
2701
|
let K;
|
|
2726
|
-
t[51] !== p || t[52] !== U || t[53] !== W ? (K = /* @__PURE__ */ Q(
|
|
2702
|
+
t[51] !== p || t[52] !== U || t[53] !== W ? (K = /* @__PURE__ */ Q(ke, {
|
|
2727
2703
|
size: "xs",
|
|
2728
2704
|
variant: "destructive-ghost",
|
|
2729
2705
|
onClick: p,
|
|
@@ -2732,7 +2708,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2732
2708
|
children: G
|
|
2733
2709
|
}), t[51] = p, t[52] = U, t[53] = W, t[54] = K) : K = t[54];
|
|
2734
2710
|
let q;
|
|
2735
|
-
return t[55] !== x || t[56] !== L || t[57] !== z || t[58] !== ne || t[59] !== re || t[60] !== K || t[61] !== E || t[62] !== D || t[63] !== O || t[64] !== k || t[65] !== A || t[66] !== M ? (q = /* @__PURE__ */ $(
|
|
2711
|
+
return t[55] !== x || t[56] !== L || t[57] !== z || t[58] !== ne || t[59] !== re || t[60] !== K || t[61] !== E || t[62] !== D || t[63] !== O || t[64] !== k || t[65] !== A || t[66] !== M ? (q = /* @__PURE__ */ $(Te, {
|
|
2736
2712
|
ref: x,
|
|
2737
2713
|
style: E,
|
|
2738
2714
|
className: "group",
|
|
@@ -2755,11 +2731,11 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2755
2731
|
K
|
|
2756
2732
|
]
|
|
2757
2733
|
}), t[55] = x, t[56] = L, t[57] = z, t[58] = ne, t[59] = re, t[60] = K, t[61] = E, t[62] = D, t[63] = O, t[64] = k, t[65] = A, t[66] = M, t[67] = q) : q = t[67], q;
|
|
2758
|
-
},
|
|
2734
|
+
}, qi = (e) => e.length > 0 ? Math.max(...e.map((e) => e.sortOrder)) + 1 : 0, Ji = (e) => {
|
|
2759
2735
|
let t = Z(12), { title: n, hasChanges: r, isSaving: i, onTitleChange: a } = e;
|
|
2760
2736
|
if (!a) {
|
|
2761
2737
|
let e;
|
|
2762
|
-
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ Q(
|
|
2738
|
+
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ Q(Ui, {
|
|
2763
2739
|
hasChanges: r,
|
|
2764
2740
|
children: n
|
|
2765
2741
|
}), t[0] = r, t[1] = n, t[2] = e) : e = t[2], e;
|
|
@@ -2770,16 +2746,16 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2770
2746
|
t && t !== n && a(t);
|
|
2771
2747
|
}, t[3] = a, t[4] = n, t[5] = o) : o = t[5];
|
|
2772
2748
|
let s, c;
|
|
2773
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(
|
|
2749
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(we.Preview, { textStyle: "label/L/medium" }), c = /* @__PURE__ */ Q(we.Input, { textStyle: "label/L/medium" }), t[6] = s, t[7] = c) : (s = t[6], c = t[7]);
|
|
2774
2750
|
let l;
|
|
2775
|
-
return t[8] !== i || t[9] !== o || t[10] !== n ? (l = /* @__PURE__ */ $(
|
|
2751
|
+
return t[8] !== i || t[9] !== o || t[10] !== n ? (l = /* @__PURE__ */ $(we.Root, {
|
|
2776
2752
|
defaultValue: n,
|
|
2777
2753
|
disabled: i,
|
|
2778
2754
|
selectOnFocus: !0,
|
|
2779
2755
|
onValueCommit: o,
|
|
2780
2756
|
children: [s, c]
|
|
2781
2757
|
}, n), t[8] = i, t[9] = o, t[10] = n, t[11] = l) : l = t[11], l;
|
|
2782
|
-
},
|
|
2758
|
+
}, Yi = Ue("button", { base: {
|
|
2783
2759
|
display: "flex",
|
|
2784
2760
|
alignItems: "center",
|
|
2785
2761
|
gap: "xs",
|
|
@@ -2800,9 +2776,9 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2800
2776
|
color: "fg.muted"
|
|
2801
2777
|
}
|
|
2802
2778
|
}
|
|
2803
|
-
} }),
|
|
2779
|
+
} }), Xi = (e) => {
|
|
2804
2780
|
let t = Z(9), { valueLabel: n, actionsLabel: r } = e, i;
|
|
2805
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Q(
|
|
2781
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Q(Te, {
|
|
2806
2782
|
width: "tag-editor-lead",
|
|
2807
2783
|
flexShrink: "0"
|
|
2808
2784
|
}), t[0] = i) : i = t[0];
|
|
@@ -2823,12 +2799,12 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2823
2799
|
children: r
|
|
2824
2800
|
}) : null, t[3] = r, t[4] = o);
|
|
2825
2801
|
let s;
|
|
2826
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(
|
|
2802
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(Te, {
|
|
2827
2803
|
width: "tag-editor-trailing",
|
|
2828
2804
|
flexShrink: "0"
|
|
2829
2805
|
}), t[5] = s) : s = t[5];
|
|
2830
2806
|
let c;
|
|
2831
|
-
return t[6] !== a || t[7] !== o ? (c = /* @__PURE__ */ $(
|
|
2807
|
+
return t[6] !== a || t[7] !== o ? (c = /* @__PURE__ */ $(Te, {
|
|
2832
2808
|
alignItems: "center",
|
|
2833
2809
|
gap: "compact",
|
|
2834
2810
|
paddingInline: "xs",
|
|
@@ -2843,9 +2819,9 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2843
2819
|
s
|
|
2844
2820
|
]
|
|
2845
2821
|
}), t[6] = a, t[7] = o, t[8] = c) : c = t[8], c;
|
|
2846
|
-
},
|
|
2822
|
+
}, Zi = (e) => {
|
|
2847
2823
|
let t = Z(22), { label: n, values: r, disabled: i, onSelect: a } = e, o;
|
|
2848
|
-
t[0] === r ? o = t[1] : (o = r.find(
|
|
2824
|
+
t[0] === r ? o = t[1] : (o = r.find($i), t[0] = r, t[1] = o);
|
|
2849
2825
|
let s = o, c;
|
|
2850
2826
|
t[2] === n ? c = t[3] : (c = /* @__PURE__ */ Q(X, {
|
|
2851
2827
|
textStyle: "paragraph/S/regular",
|
|
@@ -2853,14 +2829,14 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2853
2829
|
children: n
|
|
2854
2830
|
}), t[2] = n, t[3] = c);
|
|
2855
2831
|
let l = s?.name ?? "None", u;
|
|
2856
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Q(
|
|
2857
|
-
as:
|
|
2832
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Q(Oe, {
|
|
2833
|
+
as: dt,
|
|
2858
2834
|
boxSize: "icon-2xs"
|
|
2859
2835
|
}), t[4] = u) : u = t[4];
|
|
2860
2836
|
let d;
|
|
2861
|
-
t[5] !== i || t[6] !== n || t[7] !== l ? (d = /* @__PURE__ */ Q(
|
|
2837
|
+
t[5] !== i || t[6] !== n || t[7] !== l ? (d = /* @__PURE__ */ Q(Ne.Trigger, {
|
|
2862
2838
|
asChild: !0,
|
|
2863
|
-
children: /* @__PURE__ */ $(
|
|
2839
|
+
children: /* @__PURE__ */ $(ye, {
|
|
2864
2840
|
size: "2xs",
|
|
2865
2841
|
variant: "ghost",
|
|
2866
2842
|
gap: "xs",
|
|
@@ -2872,7 +2848,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2872
2848
|
let f;
|
|
2873
2849
|
if (t[9] !== a || t[10] !== r) {
|
|
2874
2850
|
let e;
|
|
2875
|
-
t[12] === a ? e = t[13] : (e = (e) => /* @__PURE__ */ Q(
|
|
2851
|
+
t[12] === a ? e = t[13] : (e = (e) => /* @__PURE__ */ Q(Ne.Item, {
|
|
2876
2852
|
value: e.id,
|
|
2877
2853
|
asChild: !0,
|
|
2878
2854
|
children: /* @__PURE__ */ Q(m, {
|
|
@@ -2881,8 +2857,8 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2881
2857
|
id: e.id,
|
|
2882
2858
|
label: e.name,
|
|
2883
2859
|
isSelected: e.isDefault,
|
|
2884
|
-
endContent: e.isDefault ? /* @__PURE__ */ Q(
|
|
2885
|
-
as:
|
|
2860
|
+
endContent: e.isDefault ? /* @__PURE__ */ Q(Oe, {
|
|
2861
|
+
as: ut,
|
|
2886
2862
|
boxSize: "icon-xs"
|
|
2887
2863
|
}) : void 0,
|
|
2888
2864
|
onActivate: () => a(e)
|
|
@@ -2890,15 +2866,15 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2890
2866
|
}, e.id), t[12] = a, t[13] = e), f = r.map(e), t[9] = a, t[10] = r, t[11] = f;
|
|
2891
2867
|
} else f = t[11];
|
|
2892
2868
|
let p;
|
|
2893
|
-
t[14] === f ? p = t[15] : (p = /* @__PURE__ */ Q(
|
|
2869
|
+
t[14] === f ? p = t[15] : (p = /* @__PURE__ */ Q(Ne.Positioner, { children: /* @__PURE__ */ Q(Ne.Content, {
|
|
2894
2870
|
minW: "tag-action-menu",
|
|
2895
2871
|
bg: "bg",
|
|
2896
2872
|
children: f
|
|
2897
2873
|
}) }), t[14] = f, t[15] = p);
|
|
2898
2874
|
let h;
|
|
2899
|
-
t[16] !== d || t[17] !== p ? (h = /* @__PURE__ */ $(
|
|
2875
|
+
t[16] !== d || t[17] !== p ? (h = /* @__PURE__ */ $(Ne.Root, { children: [d, p] }), t[16] = d, t[17] = p, t[18] = h) : h = t[18];
|
|
2900
2876
|
let g;
|
|
2901
|
-
return t[19] !== c || t[20] !== h ? (g = /* @__PURE__ */ $(
|
|
2877
|
+
return t[19] !== c || t[20] !== h ? (g = /* @__PURE__ */ $(Te, {
|
|
2902
2878
|
alignItems: "center",
|
|
2903
2879
|
gap: "sm",
|
|
2904
2880
|
paddingInline: "xs",
|
|
@@ -2908,25 +2884,25 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2908
2884
|
borderColor: "border.subtle",
|
|
2909
2885
|
children: [c, h]
|
|
2910
2886
|
}), t[19] = c, t[20] = h, t[21] = g) : g = t[21], g;
|
|
2911
|
-
},
|
|
2912
|
-
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] =
|
|
2887
|
+
}, Qi = (e) => {
|
|
2888
|
+
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] = at(null), j = Pt(Nt(At, { activationConstraint: { distance: 5 } })), M = (e, t) => {
|
|
2913
2889
|
let n = [...i];
|
|
2914
2890
|
n[e] = {
|
|
2915
2891
|
...n[e],
|
|
2916
2892
|
...t
|
|
2917
2893
|
}, a(n);
|
|
2918
2894
|
};
|
|
2919
|
-
return /* @__PURE__ */ $(
|
|
2895
|
+
return /* @__PURE__ */ $(Xe, { children: [/* @__PURE__ */ $(ze, {
|
|
2920
2896
|
gap: "2xs",
|
|
2921
|
-
children: [t || r ? /* @__PURE__ */ $(
|
|
2897
|
+
children: [t || r ? /* @__PURE__ */ $(Te, {
|
|
2922
2898
|
minHeight: "tag-editor-row",
|
|
2923
2899
|
alignItems: "center",
|
|
2924
2900
|
justifyContent: "space-between",
|
|
2925
2901
|
gap: "xs",
|
|
2926
|
-
children: [/* @__PURE__ */ $(
|
|
2902
|
+
children: [/* @__PURE__ */ $(ze, {
|
|
2927
2903
|
gap: "3xs",
|
|
2928
2904
|
minWidth: "0",
|
|
2929
|
-
children: [t ? /* @__PURE__ */ Q(
|
|
2905
|
+
children: [t ? /* @__PURE__ */ Q(Ji, {
|
|
2930
2906
|
title: t,
|
|
2931
2907
|
hasChanges: l,
|
|
2932
2908
|
isSaving: u,
|
|
@@ -2937,14 +2913,14 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2937
2913
|
children: n
|
|
2938
2914
|
}) : null]
|
|
2939
2915
|
}), r]
|
|
2940
|
-
}) : null, /* @__PURE__ */ $(
|
|
2916
|
+
}) : null, /* @__PURE__ */ $(ze, {
|
|
2941
2917
|
gap: "none",
|
|
2942
2918
|
borderWidth: E ? "1px" : void 0,
|
|
2943
2919
|
borderColor: E ? "border.subtle" : void 0,
|
|
2944
2920
|
borderRadius: E ? "md" : void 0,
|
|
2945
2921
|
overflow: E ? "hidden" : void 0,
|
|
2946
2922
|
children: [
|
|
2947
|
-
D ? /* @__PURE__ */ Q(
|
|
2923
|
+
D ? /* @__PURE__ */ Q(Xi, {
|
|
2948
2924
|
valueLabel: O,
|
|
2949
2925
|
actionsLabel: m ? h : void 0
|
|
2950
2926
|
}) : null,
|
|
@@ -2963,7 +2939,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2963
2939
|
children: /* @__PURE__ */ Q(Ft, {
|
|
2964
2940
|
items: i.map((e) => e.id),
|
|
2965
2941
|
strategy: zt,
|
|
2966
|
-
children: i.map((e, t) => /* @__PURE__ */ Q(
|
|
2942
|
+
children: i.map((e, t) => /* @__PURE__ */ Q(Ki, {
|
|
2967
2943
|
value: e,
|
|
2968
2944
|
isSaving: u,
|
|
2969
2945
|
readOnly: d,
|
|
@@ -2981,7 +2957,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2981
2957
|
}, e.id))
|
|
2982
2958
|
})
|
|
2983
2959
|
}),
|
|
2984
|
-
d ? null : /* @__PURE__ */ $(
|
|
2960
|
+
d ? null : /* @__PURE__ */ $(Yi, {
|
|
2985
2961
|
type: "button",
|
|
2986
2962
|
disabled: u,
|
|
2987
2963
|
onClick: () => {
|
|
@@ -2990,11 +2966,11 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
2990
2966
|
name: p,
|
|
2991
2967
|
color: v,
|
|
2992
2968
|
icon: y,
|
|
2993
|
-
sortOrder:
|
|
2969
|
+
sortOrder: qi(i),
|
|
2994
2970
|
isNew: !0
|
|
2995
2971
|
}]);
|
|
2996
2972
|
},
|
|
2997
|
-
children: [/* @__PURE__ */ Q(
|
|
2973
|
+
children: [/* @__PURE__ */ Q(Oe, {
|
|
2998
2974
|
as: St,
|
|
2999
2975
|
boxSize: "icon-xs"
|
|
3000
2976
|
}), /* @__PURE__ */ Q(X, {
|
|
@@ -3002,7 +2978,7 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
3002
2978
|
children: f
|
|
3003
2979
|
})]
|
|
3004
2980
|
}),
|
|
3005
|
-
w && i.length > 0 ? /* @__PURE__ */ Q(
|
|
2981
|
+
w && i.length > 0 ? /* @__PURE__ */ Q(Zi, {
|
|
3006
2982
|
label: g,
|
|
3007
2983
|
values: i,
|
|
3008
2984
|
disabled: u || d,
|
|
@@ -3021,13 +2997,13 @@ var { withProvider: Ri, withContext: zi } = Ue({ recipe: G }), Bi = Ri("div", "r
|
|
|
3021
2997
|
buttonText: b
|
|
3022
2998
|
})] });
|
|
3023
2999
|
};
|
|
3024
|
-
function
|
|
3000
|
+
function $i(e) {
|
|
3025
3001
|
return e.isDefault;
|
|
3026
3002
|
}
|
|
3027
3003
|
// src/components/tag-editor/tag-editor-save-bar.tsx
|
|
3028
|
-
var
|
|
3004
|
+
var ea = (e) => {
|
|
3029
3005
|
let t = Z(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;
|
|
3030
|
-
t[0] !== i || t[1] !== a || t[2] !== r || t[3] !== c ? (u = i ? /* @__PURE__ */ Q(
|
|
3006
|
+
t[0] !== i || t[1] !== a || t[2] !== r || t[3] !== c ? (u = i ? /* @__PURE__ */ Q(ye, {
|
|
3031
3007
|
size: "sm",
|
|
3032
3008
|
variant: "ghost",
|
|
3033
3009
|
onClick: r,
|
|
@@ -3035,7 +3011,7 @@ var ta = (e) => {
|
|
|
3035
3011
|
children: c
|
|
3036
3012
|
}) : null, t[0] = i, t[1] = a, t[2] = r, t[3] = c, t[4] = u) : u = t[4];
|
|
3037
3013
|
let d = !i, f;
|
|
3038
|
-
t[5] !== a || t[6] !== n || t[7] !== l || t[8] !== d ? (f = /* @__PURE__ */ Q(
|
|
3014
|
+
t[5] !== a || t[6] !== n || t[7] !== l || t[8] !== d ? (f = /* @__PURE__ */ Q(ye, {
|
|
3039
3015
|
size: "sm",
|
|
3040
3016
|
variant: "primary",
|
|
3041
3017
|
onClick: n,
|
|
@@ -3044,18 +3020,18 @@ var ta = (e) => {
|
|
|
3044
3020
|
children: l
|
|
3045
3021
|
}), t[5] = a, t[6] = n, t[7] = l, t[8] = d, t[9] = f) : f = t[9];
|
|
3046
3022
|
let p;
|
|
3047
|
-
return t[10] !== u || t[11] !== f ? (p = /* @__PURE__ */ $(
|
|
3023
|
+
return t[10] !== u || t[11] !== f ? (p = /* @__PURE__ */ $(De, {
|
|
3048
3024
|
gap: "xs",
|
|
3049
3025
|
children: [u, f]
|
|
3050
3026
|
}), t[10] = u, t[11] = f, t[12] = p) : p = t[12], p;
|
|
3051
|
-
},
|
|
3027
|
+
}, ta = (e, t) => e.sortOrder - t.sortOrder || e.name.localeCompare(t.name), na = (e, t) => e.map(t).sort(ta), ra = (e, t) => e.find((e) => e.id === t.id), ia = (e, t, n, r) => n.size > 0 || t.some((t) => {
|
|
3052
3028
|
if (t.isNew) return !0;
|
|
3053
|
-
let n =
|
|
3029
|
+
let n = ra(e, t);
|
|
3054
3030
|
return !n || r(n, t) || t.sortOrder !== n.sortOrder;
|
|
3055
|
-
}),
|
|
3056
|
-
let { errorTitle: t, loadingText: n = "Loading...", resetLabel: r, saveLabel: i, values: a, loadError: o, onSave: s, readOnly: c, toEditorValue: l, valueNeedsUpdate: u, ...d } = e, [f, p] =
|
|
3057
|
-
|
|
3058
|
-
a && p(
|
|
3031
|
+
}), aa = (e) => e instanceof Error ? e.message : e ? String(e) : null, oa = (e) => {
|
|
3032
|
+
let { errorTitle: t, loadingText: n = "Loading...", resetLabel: r, saveLabel: i, values: a, loadError: o, onSave: s, readOnly: c, toEditorValue: l, valueNeedsUpdate: u, ...d } = e, [f, p] = at([]), [m, h] = at(/* @__PURE__ */ new Set()), [g, _] = at(!1), [v, y] = at(null), b = a ?? [];
|
|
3033
|
+
rt(() => {
|
|
3034
|
+
a && p(na(a, l));
|
|
3059
3035
|
}, [a, l]);
|
|
3060
3036
|
let S = async () => {
|
|
3061
3037
|
_(!0), y(null);
|
|
@@ -3070,12 +3046,12 @@ var ta = (e) => {
|
|
|
3070
3046
|
} finally {
|
|
3071
3047
|
_(!1);
|
|
3072
3048
|
}
|
|
3073
|
-
}, C =
|
|
3049
|
+
}, C = ia(b, f, m, u), w = aa(o) ?? aa(v), T = (e) => {
|
|
3074
3050
|
e.isNew || h(/* @__PURE__ */ new Set([...m, e.id])), p(f.filter((t) => t.id !== e.id));
|
|
3075
3051
|
}, E = () => {
|
|
3076
|
-
p(
|
|
3052
|
+
p(na(b, l)), h(/* @__PURE__ */ new Set()), y(null);
|
|
3077
3053
|
};
|
|
3078
|
-
return /* @__PURE__ */ $(
|
|
3054
|
+
return /* @__PURE__ */ $(ze, {
|
|
3079
3055
|
boxSizing: "border-box",
|
|
3080
3056
|
minH: "100%",
|
|
3081
3057
|
p: "lg",
|
|
@@ -3088,14 +3064,14 @@ var ta = (e) => {
|
|
|
3088
3064
|
title: t,
|
|
3089
3065
|
size: "sm",
|
|
3090
3066
|
children: w
|
|
3091
|
-
}) : null, a === void 0 ? /* @__PURE__ */ $(
|
|
3067
|
+
}) : null, a === void 0 ? /* @__PURE__ */ $(De, {
|
|
3092
3068
|
gap: "sm",
|
|
3093
3069
|
color: "fg.muted",
|
|
3094
|
-
children: [/* @__PURE__ */ Q(
|
|
3070
|
+
children: [/* @__PURE__ */ Q(Re, { size: "sm" }), /* @__PURE__ */ Q(X, {
|
|
3095
3071
|
textStyle: "paragraph/S/regular",
|
|
3096
3072
|
children: n
|
|
3097
3073
|
})]
|
|
3098
|
-
}) : /* @__PURE__ */ Q(
|
|
3074
|
+
}) : /* @__PURE__ */ Q(Qi, {
|
|
3099
3075
|
...d,
|
|
3100
3076
|
readOnly: c,
|
|
3101
3077
|
values: f,
|
|
@@ -3107,7 +3083,7 @@ var ta = (e) => {
|
|
|
3107
3083
|
}))) : d.onSetDefault,
|
|
3108
3084
|
hasChanges: C,
|
|
3109
3085
|
isSaving: g,
|
|
3110
|
-
headerActions: c ? void 0 : /* @__PURE__ */ Q(
|
|
3086
|
+
headerActions: c ? void 0 : /* @__PURE__ */ Q(ea, {
|
|
3111
3087
|
hasChanges: C,
|
|
3112
3088
|
isSaving: g,
|
|
3113
3089
|
resetLabel: r,
|
|
@@ -3117,35 +3093,35 @@ var ta = (e) => {
|
|
|
3117
3093
|
})
|
|
3118
3094
|
})]
|
|
3119
3095
|
});
|
|
3120
|
-
},
|
|
3096
|
+
}, sa = {
|
|
3121
3097
|
sectionOrder: [],
|
|
3122
3098
|
nodeOrderBySection: {},
|
|
3123
3099
|
sectionSlotById: {},
|
|
3124
3100
|
groups: []
|
|
3125
|
-
},
|
|
3101
|
+
}, ca = "pstdio/ui/tree-list-order", la = (e) => `${ca}/${e}`, ua = (e) => {
|
|
3126
3102
|
let t = /* @__PURE__ */ new Set(), n = [];
|
|
3127
3103
|
for (let r of e) t.has(r) || (t.add(r), n.push(r));
|
|
3128
3104
|
return n;
|
|
3129
|
-
},
|
|
3105
|
+
}, da = (e) => ({
|
|
3130
3106
|
sectionOrder: e.sectionOrder,
|
|
3131
3107
|
nodeOrderBySection: e.nodeOrderBySection,
|
|
3132
3108
|
sectionSlotById: e.sectionSlotById,
|
|
3133
3109
|
groups: e.groups
|
|
3134
|
-
}),
|
|
3110
|
+
}), fa = (e) => {
|
|
3135
3111
|
let t = e.trim();
|
|
3136
3112
|
if (!t) throw Error("Enter a group name.");
|
|
3137
3113
|
return t;
|
|
3138
|
-
},
|
|
3139
|
-
...
|
|
3114
|
+
}, pa = (e) => Ut()(Ht((e) => ({
|
|
3115
|
+
...sa,
|
|
3140
3116
|
setSectionOrder: (t) => e((e) => ({
|
|
3141
3117
|
...e,
|
|
3142
|
-
sectionOrder:
|
|
3118
|
+
sectionOrder: ua(t)
|
|
3143
3119
|
})),
|
|
3144
3120
|
setNodeOrder: (t, n) => e((e) => ({
|
|
3145
3121
|
...e,
|
|
3146
3122
|
nodeOrderBySection: {
|
|
3147
3123
|
...e.nodeOrderBySection,
|
|
3148
|
-
[t]:
|
|
3124
|
+
[t]: ua(n)
|
|
3149
3125
|
}
|
|
3150
3126
|
})),
|
|
3151
3127
|
setSectionSlot: (t, n) => e((e) => ({
|
|
@@ -3158,12 +3134,12 @@ var ta = (e) => {
|
|
|
3158
3134
|
addGroup: (t, n) => e((e) => ({
|
|
3159
3135
|
groups: [...e.groups, {
|
|
3160
3136
|
...t,
|
|
3161
|
-
label:
|
|
3137
|
+
label: fa(t.label)
|
|
3162
3138
|
}],
|
|
3163
|
-
sectionOrder:
|
|
3139
|
+
sectionOrder: ua([...n, t.id])
|
|
3164
3140
|
})),
|
|
3165
3141
|
renameGroup: (t, n) => {
|
|
3166
|
-
let r =
|
|
3142
|
+
let r = fa(n);
|
|
3167
3143
|
e((e) => ({ groups: e.groups.map((e) => e.id === t ? {
|
|
3168
3144
|
...e,
|
|
3169
3145
|
label: r
|
|
@@ -3190,21 +3166,21 @@ var ta = (e) => {
|
|
|
3190
3166
|
nodeOrderBySection: r
|
|
3191
3167
|
};
|
|
3192
3168
|
}),
|
|
3193
|
-
reset: () => e(
|
|
3169
|
+
reset: () => e(sa)
|
|
3194
3170
|
}), {
|
|
3195
|
-
name:
|
|
3196
|
-
storage:
|
|
3197
|
-
partialize:
|
|
3198
|
-
})),
|
|
3171
|
+
name: la(e.storageKey),
|
|
3172
|
+
storage: L(e.storage),
|
|
3173
|
+
partialize: da
|
|
3174
|
+
})), ma = R((e, t) => pa({
|
|
3199
3175
|
storageKey: e,
|
|
3200
3176
|
storage: t
|
|
3201
|
-
})),
|
|
3202
|
-
let n = Z(3), r =
|
|
3203
|
-
return n[0] !== e || n[1] !== r ? (i =
|
|
3204
|
-
},
|
|
3177
|
+
})), ha = (e, t) => {
|
|
3178
|
+
let n = Z(3), r = I(), i;
|
|
3179
|
+
return n[0] !== e || n[1] !== r ? (i = ma(e, r), n[0] = e, n[1] = r, n[2] = i) : i = n[2], Bt(i, t);
|
|
3180
|
+
}, ga = (e, t) => {
|
|
3205
3181
|
let n = t.filter((e) => e.canReorder !== !1), r = 0, i = e.map((e) => e.canReorder === !1 ? e : n[r++]).filter((e) => !!e);
|
|
3206
3182
|
return i.push(...n.slice(r)), i.every((e, n) => e === t[n]) && i.length === t.length ? t : i;
|
|
3207
|
-
},
|
|
3183
|
+
}, _a = (e, t) => {
|
|
3208
3184
|
if (t.length === 0) return e;
|
|
3209
3185
|
let n = new Map(e.map((e, t) => [e.id, t])), r = /* @__PURE__ */ new Set(), i = [];
|
|
3210
3186
|
for (let a of t) {
|
|
@@ -3220,7 +3196,7 @@ var ta = (e) => {
|
|
|
3220
3196
|
}
|
|
3221
3197
|
}
|
|
3222
3198
|
return a ? i : e;
|
|
3223
|
-
},
|
|
3199
|
+
}, va = (e, t, n, r = []) => {
|
|
3224
3200
|
let i = new Map(e.flatMap((e) => e.nodes.map((e) => [e.id, e]))), a = r.length ? [...e, ...r.map((e) => ({
|
|
3225
3201
|
...e,
|
|
3226
3202
|
canHide: !0,
|
|
@@ -3233,7 +3209,7 @@ var ta = (e) => {
|
|
|
3233
3209
|
moveScope: n.moveScope,
|
|
3234
3210
|
nodes: []
|
|
3235
3211
|
}] : [];
|
|
3236
|
-
}), s = o.length > 0 ? [...a, ...o] : a, c = s !== e, l =
|
|
3212
|
+
}), s = o.length > 0 ? [...a, ...o] : a, c = s !== e, l = ga(s, _a(s, t));
|
|
3237
3213
|
l !== s && (c = !0);
|
|
3238
3214
|
let u = new Set(Object.entries(n).filter(([e]) => s.some((t) => t.id === e)).flatMap(([, e]) => e.filter((e) => i.has(e) && i.get(e)?.canReorder !== !1))), d = [];
|
|
3239
3215
|
for (let e of l) {
|
|
@@ -3249,17 +3225,17 @@ var ta = (e) => {
|
|
|
3249
3225
|
let r = (t ?? []).flatMap((e) => {
|
|
3250
3226
|
let t = i.get(e);
|
|
3251
3227
|
return t && t.canReorder !== !1 ? [t] : [];
|
|
3252
|
-
}), a = e.nodes.filter((e) => !u.has(e.id)), o =
|
|
3228
|
+
}), a = e.nodes.filter((e) => !u.has(e.id)), o = ga(e.nodes, [...r, ...a]);
|
|
3253
3229
|
o.length !== e.nodes.length || o.some((t, n) => t !== e.nodes[n]) ? (c = !0, d.push({
|
|
3254
3230
|
...e,
|
|
3255
3231
|
nodes: o
|
|
3256
3232
|
})) : d.push(e);
|
|
3257
3233
|
}
|
|
3258
3234
|
return c ? d : e;
|
|
3259
|
-
},
|
|
3235
|
+
}, ya = {
|
|
3260
3236
|
sectionOverrides: {},
|
|
3261
3237
|
nodeOverrides: {}
|
|
3262
|
-
},
|
|
3238
|
+
}, ba = "pstdio/ui/tree-list-visibility", xa = (e) => `${ba}/${e}`, Sa = (e, t) => e ?? (t ? "hidden" : "shown"), Ca = (e) => e === "hidden" ? "shown" : "hidden", wa = (e, t, n) => {
|
|
3263
3239
|
if (n === void 0) {
|
|
3264
3240
|
if (!(t in e)) return e;
|
|
3265
3241
|
let { [t]: n, ...r } = e;
|
|
@@ -3269,81 +3245,81 @@ var ta = (e) => {
|
|
|
3269
3245
|
...e,
|
|
3270
3246
|
[t]: n
|
|
3271
3247
|
};
|
|
3272
|
-
},
|
|
3248
|
+
}, Ta = (e, t, n) => wa(e, t, Ca(Sa(e[t], n))), Ea = (e) => ({
|
|
3273
3249
|
sectionOverrides: e.sectionOverrides,
|
|
3274
3250
|
nodeOverrides: e.nodeOverrides
|
|
3275
|
-
}),
|
|
3276
|
-
...
|
|
3251
|
+
}), Da = (e) => Ut()(Ht((e) => ({
|
|
3252
|
+
...ya,
|
|
3277
3253
|
setSection: (t, n) => e((e) => ({
|
|
3278
3254
|
...e,
|
|
3279
|
-
sectionOverrides:
|
|
3255
|
+
sectionOverrides: wa(e.sectionOverrides, t, n)
|
|
3280
3256
|
})),
|
|
3281
3257
|
setNode: (t, n) => e((e) => ({
|
|
3282
3258
|
...e,
|
|
3283
|
-
nodeOverrides:
|
|
3259
|
+
nodeOverrides: wa(e.nodeOverrides, t, n)
|
|
3284
3260
|
})),
|
|
3285
3261
|
toggleSection: (t, n) => e((e) => ({
|
|
3286
3262
|
...e,
|
|
3287
|
-
sectionOverrides:
|
|
3263
|
+
sectionOverrides: Ta(e.sectionOverrides, t, n)
|
|
3288
3264
|
})),
|
|
3289
3265
|
toggleNode: (t, n) => e((e) => ({
|
|
3290
3266
|
...e,
|
|
3291
|
-
nodeOverrides:
|
|
3267
|
+
nodeOverrides: Ta(e.nodeOverrides, t, n)
|
|
3292
3268
|
})),
|
|
3293
3269
|
clearSection: (t) => e((e) => ({
|
|
3294
3270
|
...e,
|
|
3295
|
-
sectionOverrides:
|
|
3271
|
+
sectionOverrides: wa(e.sectionOverrides, t, void 0)
|
|
3296
3272
|
})),
|
|
3297
3273
|
clearNode: (t) => e((e) => ({
|
|
3298
3274
|
...e,
|
|
3299
|
-
nodeOverrides:
|
|
3275
|
+
nodeOverrides: wa(e.nodeOverrides, t, void 0)
|
|
3300
3276
|
})),
|
|
3301
|
-
reset: () => e(
|
|
3277
|
+
reset: () => e(ya)
|
|
3302
3278
|
}), {
|
|
3303
|
-
name:
|
|
3304
|
-
storage:
|
|
3305
|
-
partialize:
|
|
3306
|
-
})),
|
|
3279
|
+
name: xa(e.storageKey),
|
|
3280
|
+
storage: L(e.storage),
|
|
3281
|
+
partialize: Ea
|
|
3282
|
+
})), Oa = R((e, t) => Da({
|
|
3307
3283
|
storageKey: e,
|
|
3308
3284
|
storage: t
|
|
3309
|
-
})),
|
|
3310
|
-
let n = Z(3), r =
|
|
3311
|
-
return n[0] !== e || n[1] !== r ? (i =
|
|
3312
|
-
},
|
|
3285
|
+
})), ka = (e, t) => {
|
|
3286
|
+
let n = Z(3), r = I(), i;
|
|
3287
|
+
return n[0] !== e || n[1] !== r ? (i = Oa(e, r), n[0] = e, n[1] = r, n[2] = i) : i = n[2], Bt(i, t);
|
|
3288
|
+
}, Aa = [], ja = (e, t) => typeof e == "string" && t.some((t) => t.id === e), Ma = (e) => {
|
|
3313
3289
|
let t = e.toLowerCase().split("."), n = [];
|
|
3314
3290
|
for (let e = 1; e < t.length; e += 1) n.push(t.slice(e).join("."));
|
|
3315
3291
|
return n;
|
|
3316
|
-
},
|
|
3292
|
+
}, Na = (e, t, n) => {
|
|
3317
3293
|
if (n) return e.defaults.folder;
|
|
3318
3294
|
let r = e.fileNames[t.toLowerCase()];
|
|
3319
3295
|
if (r) return r;
|
|
3320
|
-
for (let n of
|
|
3296
|
+
for (let n of Ma(t)) {
|
|
3321
3297
|
let t = e.fileExtensions[n];
|
|
3322
3298
|
if (t) return t;
|
|
3323
3299
|
}
|
|
3324
3300
|
return e.defaults.file;
|
|
3325
|
-
},
|
|
3301
|
+
}, Pa = (e, t) => {
|
|
3326
3302
|
if (t.fontId) {
|
|
3327
3303
|
let n = e.fonts.find((n) => n.fontFamily === `${e.id}-${t.fontId}`);
|
|
3328
3304
|
if (n) return n.fontFamily;
|
|
3329
3305
|
}
|
|
3330
3306
|
return e.fonts[0]?.fontFamily;
|
|
3331
|
-
},
|
|
3307
|
+
}, Fa = (e) => {
|
|
3332
3308
|
let t = /^\\([0-9a-fA-F]+)$/.exec(e);
|
|
3333
3309
|
return t ? String.fromCodePoint(Number.parseInt(t[1], 16)) : e;
|
|
3334
|
-
},
|
|
3310
|
+
}, Ia = (e, t, n = !1) => {
|
|
3335
3311
|
if (!e) return;
|
|
3336
|
-
let r =
|
|
3312
|
+
let r = Na(e, t, n);
|
|
3337
3313
|
if (!r) return;
|
|
3338
3314
|
let i = e.definitions[r];
|
|
3339
3315
|
if (!i?.fontCharacter) return;
|
|
3340
|
-
let a =
|
|
3316
|
+
let a = Pa(e, i);
|
|
3341
3317
|
if (a) return {
|
|
3342
3318
|
fontFamily: a,
|
|
3343
|
-
fontCharacter:
|
|
3319
|
+
fontCharacter: Fa(i.fontCharacter),
|
|
3344
3320
|
fontColor: i.fontColor
|
|
3345
3321
|
};
|
|
3346
|
-
},
|
|
3322
|
+
}, La = "data-pstdio-file-icon-fonts", Ra = (e) => {
|
|
3347
3323
|
let t = e.src.map((e) => `url("${e.url}")${e.format ? ` format("${e.format}")` : ""}`).join(", ");
|
|
3348
3324
|
return [
|
|
3349
3325
|
"@font-face {",
|
|
@@ -3353,24 +3329,24 @@ var ta = (e) => {
|
|
|
3353
3329
|
` font-style: ${e.style ?? "normal"};`,
|
|
3354
3330
|
"}"
|
|
3355
3331
|
].join("\n");
|
|
3356
|
-
},
|
|
3332
|
+
}, za = (e, t) => {
|
|
3357
3333
|
if (typeof document > "u") return;
|
|
3358
|
-
let n = document.querySelector(`style[${
|
|
3359
|
-
n || (n = document.createElement("style"), n.setAttribute(
|
|
3334
|
+
let n = document.querySelector(`style[${La}]`);
|
|
3335
|
+
n || (n = document.createElement("style"), n.setAttribute(La, ""), document.head.appendChild(n));
|
|
3360
3336
|
let r = t.find((t) => t.id === e);
|
|
3361
|
-
n.textContent = (r?.fonts ?? []).map(
|
|
3362
|
-
},
|
|
3363
|
-
if (typeof window > "u") return
|
|
3364
|
-
let t =
|
|
3365
|
-
return
|
|
3366
|
-
},
|
|
3367
|
-
let t = Z(18), { children: n, themePreferences: r } = e, i = r === void 0 ?
|
|
3368
|
-
t[0] === i ? a = t[1] : (a = () =>
|
|
3369
|
-
let [o, s] =
|
|
3337
|
+
n.textContent = (r?.fonts ?? []).map(Ra).join("\n\n");
|
|
3338
|
+
}, Ba = "file-icon-theme-preference", Va = (e) => e.find((e) => e.id.endsWith(".seti"))?.id ?? e[0]?.id ?? null, Ha = et(null), Ua = (e) => {
|
|
3339
|
+
if (typeof window > "u") return Va(e);
|
|
3340
|
+
let t = W().getItem(Ba);
|
|
3341
|
+
return ja(t, e) ? t : Va(e);
|
|
3342
|
+
}, Wa = (e) => {
|
|
3343
|
+
let t = Z(18), { children: n, themePreferences: r } = e, i = r === void 0 ? Aa : r, a;
|
|
3344
|
+
t[0] === i ? a = t[1] : (a = () => Ua(i), t[0] = i, t[1] = a);
|
|
3345
|
+
let [o, s] = at(a), c, l;
|
|
3370
3346
|
t[2] !== o || t[3] !== i ? (c = () => {
|
|
3371
|
-
let e =
|
|
3372
|
-
e === o ? (
|
|
3373
|
-
}, l = [o, i], t[2] = o, t[3] = i, t[4] = c, t[5] = l) : (c = t[4], l = t[5]),
|
|
3347
|
+
let e = ja(o, i) ? o : Va(i);
|
|
3348
|
+
e === o ? (za(e, i), typeof window < "u" && e && W().setItem(Ba, e)) : s(e);
|
|
3349
|
+
}, l = [o, i], t[2] = o, t[3] = i, t[4] = c, t[5] = l) : (c = t[4], l = t[5]), rt(c, l);
|
|
3374
3350
|
let u;
|
|
3375
3351
|
if (t[6] !== o || t[7] !== i) {
|
|
3376
3352
|
let e;
|
|
@@ -3384,16 +3360,16 @@ var ta = (e) => {
|
|
|
3384
3360
|
setFileIconThemePreference: s
|
|
3385
3361
|
}, t[11] = d, t[12] = o, t[13] = i, t[14] = f) : f = t[14];
|
|
3386
3362
|
let p;
|
|
3387
|
-
return t[15] !== n || t[16] !== f ? (p = /* @__PURE__ */ Q(
|
|
3363
|
+
return t[15] !== n || t[16] !== f ? (p = /* @__PURE__ */ Q(Ha, {
|
|
3388
3364
|
value: f,
|
|
3389
3365
|
children: n
|
|
3390
3366
|
}), t[15] = n, t[16] = f, t[17] = p) : p = t[17], p;
|
|
3391
|
-
},
|
|
3392
|
-
let e =
|
|
3367
|
+
}, Ga = () => {
|
|
3368
|
+
let e = nt(Ha);
|
|
3393
3369
|
if (!e) throw Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
|
|
3394
3370
|
return e;
|
|
3395
|
-
},
|
|
3396
|
-
let { isDirectory: n = !1, theme: r, size: i = 16 } = t, a =
|
|
3371
|
+
}, Ka = (e, t = {}) => {
|
|
3372
|
+
let { isDirectory: n = !1, theme: r, size: i = 16 } = t, a = Ia(r, e, n);
|
|
3397
3373
|
if (a) {
|
|
3398
3374
|
let e = {
|
|
3399
3375
|
fontFamily: `"${a.fontFamily}"`,
|
|
@@ -3412,6 +3388,6 @@ var ta = (e) => {
|
|
|
3412
3388
|
let o = b(e);
|
|
3413
3389
|
return /* @__PURE__ */ Q(o, { size: i });
|
|
3414
3390
|
};
|
|
3415
|
-
export { Kt as Activity, t as ActivityAvatar, i as ActivityComment, Gt as ActivityComposer, e as ActivityEvent, r as ActivityFeed, a as ActivityHeader, o as ActivityReply, n as ActivityRoot, s as ActivityTimeline, x as AlertMessage, Kn as AttachedMenu, Jn as AttachedPanel,
|
|
3391
|
+
export { Kt as Activity, t as ActivityAvatar, i as ActivityComment, Gt as ActivityComposer, e as ActivityEvent, r as ActivityFeed, a as ActivityHeader, o as ActivityReply, n as ActivityRoot, s as ActivityTimeline, x as AlertMessage, Kn as AttachedMenu, Jn as AttachedPanel, D as AttachmentChip, cr as Breadcrumb, Yn as BubbleButton, Xn as BubblePanel, xe as ChakraProvider, F as Checkbox, T as Chip, ur as ContentPlaceholder, dr as ContentPlaceholderLabel, C as CopyButton, qt as DEFAULT_PALETTE_ASSET_LIMIT, Zn as DeleteConfirmationModal, B as DropIndicator, V as EmptyState, fr as ErrorBoundary, Wa as FileIconThemePreferenceProvider, er as FolderPicker, tr as FolderPickerDialog, f as Header, En as HorizontalMenuStack, z as HostStorageProvider, yr as IconColorPicker, Sr as IntegrationCard, Dn as ItemSection, m as ListRow, Un as NotificationCenter, An as PANEL_HEADER_CONTROL_SIZE, kn as PANEL_HEADER_HEIGHT, jn as PANEL_HEADER_TAB_SIZE, fn as Palette, Cn as PaletteShortcut, U as Radio, re as RadioGroup, v as ResizableSplitLayout, u as ResourceActionMenu, S as ResourceBadge, d as ResourceContextMenu, h as ResourceMenuItems, l as ScrollArea, un as SearchModalContent, p as SearchableMenu, Or as SegmentedControl, j as SessionIndicator, Yr as Sidenav, br as SimpleCard, xr as SimpleCardBody, E as Slider, w as Switch, Qi as TagEditor, Ui as TagEditorHeading, ea as TagEditorSaveBar, oa as TagSettingsPanel, hr as TagSwatch, me as ThemePreferenceProvider, Ar as Toaster, c as Tooltip, y as TreeList, _ as TreeListDragProvider, Pi as WindowTabs, Hi as WindowTitleBar, P as WorkspaceBadge, za as applyFileIconThemePreference, ce as applyThemePreference, va as applyTreeListOrder, Ti as buildTabVisibilityMenuActions, Ci as buildTreeVisibilityMenuActions, ee as createGlyphIcon, ae as createMonacoThemeFromVsCodeTheme, ie as createThemePreferenceFromVsCodeTheme, Aa as defaultFileIconThemePreferences, oe as defaultThemePreferences, $t as filterPaletteEntries, vi as filterVisibleNodes, yi as filterVisibleSections, wi as filterVisibleTabs, b as getFileTypeIcon, ne as getIconComponent, ue as getInitialThemePreference, di as getTabVisibilityStore, de as getThemePreferenceClassName, pe as getThemePreferenceClassNames, se as getThemePreferenceMode, ma as getTreeListOrderStore, Oa as getTreeListVisibilityStore, M as handleDialogAcceptShortcut, O as installPrismGlobal, ja as isFileIconThemePreference, le as isThemePreference, te as optionColors, H as optionIcons, q as psTheme, Ka as resolveFileIconElement, Ia as resolveFileIconGlyph, he as resolveIconComponent, N as resolveSessionIndicatorColor, A as resolveSessionIndicatorIcon, mi as resolveVisibility, k as sessionCompletionStatuses, kr as toaster, Ga as useFileIconThemePreference, Vr as useSidenavStore, fi as useTabVisibilityStore, fe as useThemePreference, ha as useTreeListOrderStore, ka as useTreeListVisibilityStore };
|
|
3416
3392
|
|
|
3417
3393
|
//# sourceMappingURL=index.js.map
|