@pstdio/ui 0.24.2 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +8 -1
  2. package/dist/{MermaidComponent-DSvPk-J8.js → MermaidComponent-X__B6qib.js} +3 -3
  3. package/dist/{MermaidComponent-DSvPk-J8.js.map → MermaidComponent-X__B6qib.js.map} +1 -1
  4. package/dist/activity-timeline-BynMjXSB.js +283 -0
  5. package/dist/activity-timeline-BynMjXSB.js.map +1 -0
  6. package/dist/alert-ubcrW24X.js +33 -0
  7. package/dist/alert-ubcrW24X.js.map +1 -0
  8. package/dist/browser-storage-BinyFNJX.js +40 -0
  9. package/dist/browser-storage-BinyFNJX.js.map +1 -0
  10. package/dist/chat-ui.js +1515 -1428
  11. package/dist/chat-ui.js.map +1 -1
  12. package/dist/components/activity/activity-comment.d.ts +10 -2
  13. package/dist/components/chat-ui/components/chat-history-story.d.ts +14 -0
  14. package/dist/components/chat-ui/components/chat-input-history.d.ts +6 -0
  15. package/dist/components/chat-ui/components/chat-input.d.ts +2 -0
  16. package/dist/components/chat-ui/components/chat-panel-composer.d.ts +49 -0
  17. package/dist/components/chat-ui/components/use-chat-input-history.d.ts +16 -0
  18. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  19. package/dist/components/rich-text/index.d.ts +2 -0
  20. package/dist/components/rich-text/markdown-editor/markdown-editor-scrolling.play.d.ts +4 -0
  21. package/dist/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +3 -1
  22. package/dist/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +2 -0
  23. package/dist/components/rich-text/prompt-input/prompt-input.d.ts +2 -0
  24. package/dist/components/rich-text/resource-activity-feed/resource-activity-feed.d.ts +58 -0
  25. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +1 -0
  26. package/dist/data-table.js +6 -6
  27. package/dist/diff.js +524 -522
  28. package/dist/diff.js.map +1 -1
  29. package/dist/{edit-mode-data-table-2E4GSOou.js → edit-mode-data-table-Nfmfi7bz.js} +23 -22
  30. package/dist/{edit-mode-data-table-2E4GSOou.js.map → edit-mode-data-table-Nfmfi7bz.js.map} +1 -1
  31. package/dist/index.d.ts +0 -1
  32. package/dist/index.js +1619 -1852
  33. package/dist/index.js.map +1 -1
  34. package/dist/{kanban-renderer-toolbar-Dcbxujbk.js → kanban-renderer-toolbar-Buek4icz.js} +34 -33
  35. package/dist/{kanban-renderer-toolbar-Dcbxujbk.js.map → kanban-renderer-toolbar-Buek4icz.js.map} +1 -1
  36. package/dist/kanban-renderer.js +31 -30
  37. package/dist/kanban-renderer.js.map +1 -1
  38. package/dist/lazy-markdown-editor-PzIBc9-l.js +42 -0
  39. package/dist/lazy-markdown-editor-PzIBc9-l.js.map +1 -0
  40. package/dist/{list-row-BDoV_iMV.js → list-row-DHzRa9-O.js} +2 -2
  41. package/dist/{list-row-BDoV_iMV.js.map → list-row-DHzRa9-O.js.map} +1 -1
  42. package/dist/{markdown-Cli3KGu9.js → markdown-BCfPxNpb.js} +322 -302
  43. package/dist/markdown-BCfPxNpb.js.map +1 -0
  44. package/dist/markdown-editor-CsJ4KNGu.js +1034 -0
  45. package/dist/markdown-editor-CsJ4KNGu.js.map +1 -0
  46. package/dist/{mermaid-renderer-CVnuKs-A.js → mermaid-renderer-D0YP0FmJ.js} +3 -3
  47. package/dist/{mermaid-renderer-CVnuKs-A.js.map → mermaid-renderer-D0YP0FmJ.js.map} +1 -1
  48. package/dist/mermaid.js +1 -1
  49. package/dist/{param-editor-CaRflJ3e.js → param-editor-CFM2Nf3l.js} +2 -2
  50. package/dist/{param-editor-CaRflJ3e.js.map → param-editor-CFM2Nf3l.js.map} +1 -1
  51. package/dist/param-editor-field-Bj-AGUY6.js +1728 -0
  52. package/dist/param-editor-field-Bj-AGUY6.js.map +1 -0
  53. package/dist/param-editor.d.ts +2 -0
  54. package/dist/param-editor.js +47 -0
  55. package/dist/param-editor.js.map +1 -0
  56. package/dist/prism-n5gcERyD.js +202 -0
  57. package/dist/prism-n5gcERyD.js.map +1 -0
  58. package/dist/radio-BfjibByI.js +51 -0
  59. package/dist/radio-BfjibByI.js.map +1 -0
  60. package/dist/rich-message-q6Y6QJOq.js +633 -0
  61. package/dist/rich-message-q6Y6QJOq.js.map +1 -0
  62. package/dist/rich-text.js +342 -177
  63. package/dist/rich-text.js.map +1 -1
  64. package/dist/scroll-area-BMbg1WcD.js +91 -0
  65. package/dist/scroll-area-BMbg1WcD.js.map +1 -0
  66. package/dist/slider-DBHjdxsU.js +1092 -0
  67. package/dist/slider-DBHjdxsU.js.map +1 -0
  68. package/dist/style.css +1 -1
  69. package/dist/terminal.js +96 -93
  70. package/dist/terminal.js.map +1 -1
  71. package/dist/theme/primitives/colors.d.ts +0 -23
  72. package/dist/theme/recipes/activity-comment.d.ts +36 -0
  73. package/dist/theme/recipes/alert.d.ts +1 -1
  74. package/dist/theme/recipes/dialog.d.ts +1 -1
  75. package/dist/theme/recipes/drawer.d.ts +1 -1
  76. package/dist/theme/recipes/menu.d.ts +1 -1
  77. package/dist/theme/recipes/popover.d.ts +1 -1
  78. package/dist/theme/recipes/progress-circle.d.ts +3 -3
  79. package/dist/theme/recipes/switch.d.ts +1 -1
  80. package/dist/theme/recipes/timeline.d.ts +10 -1
  81. package/dist/theme/recipes/tooltip.d.ts +1 -1
  82. package/dist/theme/recipes/window-title-bar.d.ts +1 -1
  83. package/dist/{theme-B5OVwYEU.js → theme-AzJH4Om3.js} +127 -808
  84. package/dist/theme-AzJH4Om3.js.map +1 -0
  85. package/dist/{theme-preference-Bpobguh4.js → theme-preference-DxGW1qg-.js} +2 -2
  86. package/dist/{theme-preference-Bpobguh4.js.map → theme-preference-DxGW1qg-.js.map} +1 -1
  87. package/dist/theme.js +1 -1
  88. package/dist/{tree-list-CZvcg3_6.js → tree-list-CPjbGTvs.js} +2 -2
  89. package/dist/{tree-list-CZvcg3_6.js.map → tree-list-CPjbGTvs.js.map} +1 -1
  90. package/dist/{workspace-badge-BR_GgsAG.js → workspace-badge-CuOcmnZc.js} +2 -2
  91. package/dist/{workspace-badge-BR_GgsAG.js.map → workspace-badge-CuOcmnZc.js.map} +1 -1
  92. package/package.json +7 -2
  93. package/dist/browser-storage-DPtOQJx0.js +0 -127
  94. package/dist/browser-storage-DPtOQJx0.js.map +0 -1
  95. package/dist/lazy-markdown-editor-DSlelhHV.js +0 -235
  96. package/dist/lazy-markdown-editor-DSlelhHV.js.map +0 -1
  97. package/dist/markdown-Cli3KGu9.js.map +0 -1
  98. package/dist/markdown-editor-BHoRATej.js +0 -1019
  99. package/dist/markdown-editor-BHoRATej.js.map +0 -1
  100. package/dist/param-editor-field-DVQlXbid.js +0 -2810
  101. package/dist/param-editor-field-DVQlXbid.js.map +0 -1
  102. package/dist/radio-cLMEBBZk.js +0 -76
  103. package/dist/radio-cLMEBBZk.js.map +0 -1
  104. package/dist/rich-message-gWYlm8Ji.js +0 -628
  105. package/dist/rich-message-gWYlm8Ji.js.map +0 -1
  106. package/dist/theme/recipes/landing-story.d.ts +0 -10
  107. package/dist/theme/recipes/landing-tool-demo.d.ts +0 -1
  108. package/dist/theme/recipes/landing.d.ts +0 -23
  109. package/dist/theme-B5OVwYEU.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,33 +1,34 @@
1
- import { Avatar as at, Box as G, Text as F, Stack as Q, HStack as ae, chakra as Pe, Textarea as pn, Spacer as Ft, IconButton as Fe, Icon as ce, Timeline as Ie, Dialog as Z, CloseButton as Mt, Input as Vt, InputGroup as Gt, Kbd as gn, Collapsible as Ke, Flex as de, Badge as Te, Button as ue, Skeleton as pt, Portal as Je, Breadcrumb as pe, AbsoluteCenter as bn, Center as Sn, Popover as Xe, Grid as gt, defineSlotRecipe as xn, createSlotRecipeContext as ft, createToaster as vn, Toaster as yn, Toast as Ne, Spinner as jt, Editable as We, Menu as ge } from "@chakra-ui/react";
2
- import { ChakraProvider as ns } from "@chakra-ui/react";
3
- import { jsx as s, jsxs as y, Fragment as Me } from "react/jsx-runtime";
4
- import { c as O } from "react/compiler-runtime";
5
- import * as bt from "react";
6
- import { Children as Cn, useState as fe, useEffect as me, useRef as He, Fragment as St, forwardRef as Ut, Component as wn, createContext as In, useContext as Tn } from "react";
7
- import { Paperclip as Pn, ArrowUp as An, Check as et, ArrowRight as Rn, ArrowLeft as kn, Option as xt, Command as Ye, ChevronRight as $n, Bell as En, X as Qt, Search as qt, SquareArrowOutUpRight as Dn, Minus as Ln, FileText as On, FolderOpen as _n, Folder as Kt, Home as zn, ChevronUp as Nn, ChevronDown as Xt, GripVertical as Bn, Trash2 as Wn, Plus as Hn } from "lucide-react";
8
- import { T as Ue, S as tt, c as Ve } from "./browser-storage-DPtOQJx0.js";
9
- import { useVirtualizer as Fn } from "@tanstack/react-virtual";
10
- import { L as Qe, H as Mn, R as Yt } from "./list-row-BDoV_iMV.js";
11
- import { c as rs, b as ls } from "./list-row-BDoV_iMV.js";
12
- import { T as Vn } from "./tree-list-CZvcg3_6.js";
13
- import { R as ss, a as as } from "./tree-list-CZvcg3_6.js";
14
- import { A as ht } from "./radio-cLMEBBZk.js";
15
- import { R as ds, a as us } from "./radio-cLMEBBZk.js";
16
- import { g as Gn, o as jn, b as Un } from "./param-editor-field-DVQlXbid.js";
17
- import { c as hs, d as ms, e as ps, A as gs, B as bs, C as Ss, f as xs, D as vs, F as ys, H as Cs, M as ws, N as Is, h as Ts, P as Ps, j as As, k as Rs, j as ks, l as $s, m as Es, R as Ds, n as Ls, p as Os, S as _s, q as zs, T as Ns, V as Bs, r as Ws, s as Hs, a as Fs } from "./param-editor-field-DVQlXbid.js";
18
- import { S as Vs, W as Gs, h as js, r as Us, a as Qs, s as qs } from "./workspace-badge-BR_GgsAG.js";
19
- import { P as Xs, a as Ys, b as Zs } from "./param-editor-CaRflJ3e.js";
20
- import { g as Qn } from "./lazy-markdown-editor-DSlelhHV.js";
21
- import { C as ea, R as ta, S as na, i as oa } from "./lazy-markdown-editor-DSlelhHV.js";
22
- import { E as la } from "./empty-state-Bo4HVrgr.js";
23
- import { useStore as nt } from "zustand";
24
- import { persist as ot, createJSONStorage as rt } from "zustand/middleware";
25
- import { createStore as lt } from "zustand/vanilla";
26
- import { useSensors as Zt, useSensor as ct, PointerSensor as Jt, KeyboardSensor as qn, DndContext as en, closestCenter as tn } from "@dnd-kit/core";
27
- import { useSortable as nn, sortableKeyboardCoordinates as Kn, SortableContext as on, horizontalListSortingStrategy as Xn, verticalListSortingStrategy as Yn, arrayMove as Zn } from "@dnd-kit/sortable";
28
- import { CSS as rn } from "@dnd-kit/utilities";
29
- import { w as Jn, b as eo } from "./theme-B5OVwYEU.js";
30
- import { c as sa, a as aa, t as ca } from "./theme-B5OVwYEU.js";
1
+ import { chakra as Te, HStack as de, Box as se, Textarea as fn, Spacer as Bt, IconButton as Me, Icon as ae, Text as F, Dialog as X, CloseButton as Wt, Input as Mt, InputGroup as Ht, Kbd as hn, Collapsible as Qe, Flex as ce, Stack as ne, Badge as Ie, Button as ue, Skeleton as ft, Portal as Ye, Breadcrumb as pe, AbsoluteCenter as mn, Center as pn, Popover as Ke, Grid as ht, defineSlotRecipe as gn, createSlotRecipeContext as ct, createToaster as bn, Toaster as Sn, Toast as ze, Spinner as Ft, Editable as Be, Menu as ge } from "@chakra-ui/react";
2
+ import { ChakraProvider as Yl } from "@chakra-ui/react";
3
+ import { d as Vt, e as xn, c as vn, b as yn, a as Cn, A as wn, f as In, g as Tn } from "./activity-timeline-BynMjXSB.js";
4
+ import { jsx as s, jsxs as D, Fragment as Ze } from "react/jsx-runtime";
5
+ import { Paperclip as An, ArrowUp as Pn, Check as Je, ArrowRight as Dn, ArrowLeft as Rn, Option as mt, Command as qe, ChevronRight as $n, Bell as En, X as Gt, Search as jt, SquareArrowOutUpRight as kn, Minus as On, FileText as Ln, FolderOpen as _n, Folder as Ut, Home as zn, ChevronUp as Nn, ChevronDown as Qt, GripVertical as Bn, Trash2 as Wn, Plus as Mn } from "lucide-react";
6
+ import * as pt from "react";
7
+ import { useState as fe, useEffect as me, useRef as We, Fragment as gt, forwardRef as Kt, Component as Hn, createContext as Fn, useContext as Vn } from "react";
8
+ import { T as Ge, S as et } from "./scroll-area-BMbg1WcD.js";
9
+ import { c as B } from "react/compiler-runtime";
10
+ import { useVirtualizer as Gn } from "@tanstack/react-virtual";
11
+ import { L as je, H as jn, R as qt } from "./list-row-DHzRa9-O.js";
12
+ import { c as Jl, b as es } from "./list-row-DHzRa9-O.js";
13
+ import { T as Un } from "./tree-list-CPjbGTvs.js";
14
+ import { R as ns, a as os } from "./tree-list-CPjbGTvs.js";
15
+ import { A as dt } from "./alert-ubcrW24X.js";
16
+ import { g as Qn, o as Kn, a as qn } from "./slider-DBHjdxsU.js";
17
+ import { A as is, C as ls, S as ss, c as as } from "./slider-DBHjdxsU.js";
18
+ import { S as ds, W as us, h as fs, r as hs, a as ms, s as ps } from "./workspace-badge-CuOcmnZc.js";
19
+ import { g as Xn } from "./prism-n5gcERyD.js";
20
+ import { C as bs, R as Ss, S as xs, i as vs } from "./prism-n5gcERyD.js";
21
+ import { E as Cs } from "./empty-state-Bo4HVrgr.js";
22
+ import { R as Is, a as Ts } from "./radio-BfjibByI.js";
23
+ import { useStore as tt } from "zustand";
24
+ import { persist as nt, createJSONStorage as ot } from "zustand/middleware";
25
+ import { createStore as rt } from "zustand/vanilla";
26
+ import { c as He } from "./browser-storage-BinyFNJX.js";
27
+ import { useSensors as Xt, useSensor as lt, PointerSensor as Yt, KeyboardSensor as Yn, DndContext as Zt, closestCenter as Jt } from "@dnd-kit/core";
28
+ import { useSortable as en, sortableKeyboardCoordinates as Zn, SortableContext as tn, horizontalListSortingStrategy as Jn, verticalListSortingStrategy as eo, arrayMove as to } from "@dnd-kit/sortable";
29
+ import { CSS as nn } from "@dnd-kit/utilities";
30
+ import { w as no, b as oo } from "./theme-AzJH4Om3.js";
31
+ import { c as Ps, a as Ds, t as Rs } from "./theme-AzJH4Om3.js";
31
32
  import "@fontsource/inter/400.css";
32
33
  import "@fontsource/inter/500.css";
33
34
  import "@fontsource/playfair-display/400.css";
@@ -36,118 +37,15 @@ import "@fontsource/playfair-display/700.css";
36
37
  import "@fontsource/onest/400.css";
37
38
  import "@fontsource/onest/500.css";
38
39
  import "@fontsource/onest/700.css";
39
- import { T as ua, a as fa, d as ha, b as ma, c as pa, e as ga, g as ba, i as Sa, u as xa } from "./theme-preference-Bpobguh4.js";
40
- const it = (o) => {
41
- const e = O(14), {
42
- actor: t,
43
- icon: n,
44
- color: r,
45
- background: i
46
- } = o, l = r === void 0 ? "fg.muted" : r, c = i === void 0 ? "bg.muted" : i;
47
- if (n) {
48
- let m;
49
- return e[0] !== c || e[1] !== l || e[2] !== n ? (m = /* @__PURE__ */ s(G, { boxSize: "18px", borderRadius: "full", display: "inline-flex", alignItems: "center", justifyContent: "center", flexShrink: 0, color: l, background: c, children: n }), e[0] = c, e[1] = l, e[2] = n, e[3] = m) : m = e[3], m;
50
- }
51
- const a = t?.avatarSrc, d = t?.avatarAlt ?? t?.name;
52
- let u;
53
- e[4] !== a || e[5] !== d ? (u = /* @__PURE__ */ s(at.Image, { src: a, alt: d }), e[4] = a, e[5] = d, e[6] = u) : u = e[6];
54
- const f = t?.name;
55
- let h;
56
- e[7] !== c || e[8] !== l || e[9] !== f ? (h = /* @__PURE__ */ s(at.Fallback, { name: f, background: c, color: l }), e[7] = c, e[8] = l, e[9] = f, e[10] = h) : h = e[10];
57
- let p;
58
- return e[11] !== u || e[12] !== h ? (p = /* @__PURE__ */ y(at.Root, { size: "2xs", flexShrink: 0, children: [
59
- u,
60
- h
61
- ] }), e[11] = u, e[12] = h, e[13] = p) : p = e[13], p;
62
- }, to = () => {
63
- const o = O(1);
64
- let e;
65
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(G, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
66
- }, ln = (o) => {
67
- const e = O(13), {
68
- actor: t,
69
- timestamp: n,
70
- actions: r
71
- } = o;
72
- let i;
73
- e[0] !== t ? (i = /* @__PURE__ */ s(it, { actor: t }), e[0] = t, e[1] = i) : i = e[1];
74
- let l;
75
- e[2] !== t.name ? (l = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg", truncate: !0, children: t.name }), e[2] = t.name, e[3] = l) : l = e[3];
76
- let c;
77
- e[4] !== n ? (c = n ? /* @__PURE__ */ y(Me, { children: [
78
- /* @__PURE__ */ s(to, {}),
79
- /* @__PURE__ */ s(F, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, children: n })
80
- ] }) : null, e[4] = n, e[5] = c) : c = e[5];
81
- let a;
82
- e[6] !== r ? (a = /* @__PURE__ */ s(G, { marginLeft: "auto", flexShrink: 0, children: r }), e[6] = r, e[7] = a) : a = e[7];
83
- let d;
84
- return e[8] !== i || e[9] !== l || e[10] !== c || e[11] !== a ? (d = /* @__PURE__ */ y(ae, { gap: "xs", alignItems: "center", minW: "0", children: [
85
- i,
86
- l,
87
- c,
88
- a
89
- ] }), e[8] = i, e[9] = l, e[10] = c, e[11] = a, e[12] = d) : d = e[12], d;
90
- }, no = (o) => {
91
- const e = O(18);
92
- let t, n, r, i, l;
93
- e[0] !== o ? ({
94
- actor: n,
95
- timestamp: l,
96
- actions: t,
97
- children: r,
98
- ...i
99
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5]);
100
- let c;
101
- e[6] !== t || e[7] !== n || e[8] !== l ? (c = /* @__PURE__ */ s(ln, { actor: n, timestamp: l, actions: t }), e[6] = t, e[7] = n, e[8] = l, e[9] = c) : c = e[9];
102
- let a;
103
- e[10] !== r ? (a = /* @__PURE__ */ s(G, { paddingLeft: "32px", children: /* @__PURE__ */ s(F, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", children: r }) }), e[10] = r, e[11] = a) : a = e[11];
104
- let d;
105
- e[12] !== c || e[13] !== a ? (d = /* @__PURE__ */ y(Q, { gap: "xs", children: [
106
- c,
107
- a
108
- ] }), e[12] = c, e[13] = a, e[14] = d) : d = e[14];
109
- let u;
110
- return e[15] !== i || e[16] !== d ? (u = /* @__PURE__ */ s(G, { paddingX: "md", paddingY: "sm", ...i, children: d }), e[15] = i, e[16] = d, e[17] = u) : u = e[17], u;
111
- }, oo = (o) => {
112
- const e = O(27);
113
- let t, n, r, i, l, c, a;
114
- e[0] !== o ? ({
115
- actor: n,
116
- timestamp: a,
117
- actions: t,
118
- replies: l,
119
- composer: i,
120
- children: r,
121
- ...c
122
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c, e[7] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6], a = e[7]);
123
- const d = Cn.count(l) > 0;
124
- let u;
125
- e[8] !== t || e[9] !== n || e[10] !== a ? (u = /* @__PURE__ */ s(ln, { actor: n, timestamp: a, actions: t }), e[8] = t, e[9] = n, e[10] = a, e[11] = u) : u = e[11];
126
- let f;
127
- e[12] !== r ? (f = /* @__PURE__ */ s(F, { as: "div", textStyle: "label/S/regular", color: "fg", overflowWrap: "anywhere", whiteSpace: "pre-wrap", children: r }), e[12] = r, e[13] = f) : f = e[13];
128
- let h;
129
- e[14] !== u || e[15] !== f ? (h = /* @__PURE__ */ y(Q, { gap: "sm", padding: "md", children: [
130
- u,
131
- f
132
- ] }), e[14] = u, e[15] = f, e[16] = h) : h = e[16];
133
- let p;
134
- e[17] !== d || e[18] !== l ? (p = d ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: l }) : null, e[17] = d, e[18] = l, e[19] = p) : p = e[19];
135
- let m;
136
- e[20] !== i ? (m = i ? /* @__PURE__ */ s(G, { borderTopWidth: "1px", borderColor: "border.subtle", children: i }) : null, e[20] = i, e[21] = m) : m = e[21];
137
- let g;
138
- return e[22] !== c || e[23] !== h || e[24] !== p || e[25] !== m ? (g = /* @__PURE__ */ y(G, { as: "article", width: "full", borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", background: "bg", overflow: "hidden", ...c, children: [
139
- h,
140
- p,
141
- m
142
- ] }), e[22] = c, e[23] = h, e[24] = p, e[25] = m, e[26] = g) : g = e[26], g;
143
- }, ro = (o) => {
40
+ import { T as Es, a as ks, d as Os, b as Ls, c as _s, e as zs, g as Ns, i as Bs, u as Ws } from "./theme-preference-DxGW1qg-.js";
41
+ const ro = (n) => {
144
42
  const {
145
43
  actor: e,
146
44
  value: t,
147
- defaultValue: n = "",
45
+ defaultValue: o = "",
148
46
  placeholder: r = "Leave a comment...",
149
- variant: i = "standalone",
150
- minRows: l = i === "standalone" ? 3 : 1,
47
+ variant: l = "standalone",
48
+ minRows: i = l === "standalone" ? 3 : 1,
151
49
  attachLabel: c = "Attach file",
152
50
  submitLabel: a = "Submit comment",
153
51
  actions: d,
@@ -155,163 +53,70 @@ const it = (o) => {
155
53
  onChange: f,
156
54
  onSubmit: h,
157
55
  ...p
158
- } = o, [m, g] = fe(n), x = t ?? m, b = i === "inline", k = x.trim().length > 0, A = (S) => {
159
- t === void 0 && g(S), f?.(S);
160
- }, R = (S) => {
161
- S.preventDefault(), k && (h?.(x.trim()), t === void 0 && g(""));
56
+ } = n, [m, g] = fe(o), v = t ?? m, S = l === "inline", R = v.trim().length > 0, A = (b) => {
57
+ t === void 0 && g(b), f?.(b);
58
+ }, P = (b) => {
59
+ b.preventDefault(), R && (h?.(v.trim()), t === void 0 && g(""));
162
60
  };
163
- return /* @__PURE__ */ s(Pe.form, { width: "full", background: "bg", borderWidth: b ? "0" : "1px", borderColor: "border", borderRadius: b ? "0" : "sm", transition: "border-color 0.12s ease", _hover: b ? void 0 : {
61
+ return /* @__PURE__ */ s(Te.form, { width: "full", background: "bg", borderWidth: S ? "0" : "1px", borderColor: "border", borderRadius: S ? "0" : "sm", transition: "border-color 0.12s ease", _hover: S ? void 0 : {
164
62
  borderColor: "border"
165
- }, _focusWithin: b ? void 0 : {
63
+ }, _focusWithin: S ? void 0 : {
166
64
  borderColor: "border.accent"
167
- }, onSubmit: R, ...p, children: /* @__PURE__ */ y(ae, { alignItems: "flex-start", gap: "xs", padding: b ? "sm" : "md", children: [
168
- e ? /* @__PURE__ */ s(it, { actor: e }) : null,
169
- /* @__PURE__ */ y(G, { flex: "1", minW: "0", children: [
170
- /* @__PURE__ */ s(pn, { value: x, rows: l, resize: "none", border: "0", padding: "0", minH: b ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: r, _placeholder: {
65
+ }, onSubmit: P, ...p, children: /* @__PURE__ */ D(de, { alignItems: "flex-start", gap: "xs", padding: S ? "sm" : "md", children: [
66
+ e ? /* @__PURE__ */ s(Vt, { actor: e }) : null,
67
+ /* @__PURE__ */ D(se, { flex: "1", minW: "0", children: [
68
+ /* @__PURE__ */ s(fn, { value: v, rows: i, resize: "none", border: "0", padding: "0", minH: S ? "1.5rem" : "4rem", background: "transparent", color: "fg", textStyle: "label/S/regular", placeholder: r, _placeholder: {
171
69
  color: "fg.subtle"
172
- }, onChange: (S) => A(S.currentTarget.value) }),
173
- /* @__PURE__ */ y(ae, { gap: "2xs", marginTop: b ? "0" : "sm", children: [
70
+ }, onChange: (b) => A(b.currentTarget.value) }),
71
+ /* @__PURE__ */ D(de, { gap: "2xs", marginTop: S ? "0" : "sm", children: [
174
72
  d,
175
- /* @__PURE__ */ s(Ft, {}),
176
- /* @__PURE__ */ s(Ue, { content: c, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick: u, children: /* @__PURE__ */ s(ce, { as: Pn, boxSize: "14px" }) }) }),
177
- /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !k, children: /* @__PURE__ */ s(ce, { as: An, boxSize: "14px" }) }) })
73
+ /* @__PURE__ */ s(Bt, {}),
74
+ /* @__PURE__ */ s(Ge, { content: c, children: /* @__PURE__ */ s(Me, { size: "2xs", variant: "ghost", "aria-label": c, type: "button", onClick: u, children: /* @__PURE__ */ s(ae, { as: An, boxSize: "14px" }) }) }),
75
+ /* @__PURE__ */ s(Ge, { content: a, children: /* @__PURE__ */ s(Me, { size: "2xs", variant: "subtle", "aria-label": a, type: "submit", disabled: !R, children: /* @__PURE__ */ s(ae, { as: Pn, boxSize: "14px" }) }) })
178
76
  ] })
179
77
  ] })
180
78
  ] }) });
181
- }, lo = () => {
182
- const o = O(1);
183
- let e;
184
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(G, { as: "span", boxSize: "3px", borderRadius: "full", background: "fg.subtle", flexShrink: 0 }), o[0] = e) : e = o[0], e;
185
- }, io = (o) => {
186
- const e = O(28);
187
- let t, n, r, i, l, c, a;
188
- e[0] !== o ? ({
189
- actor: t,
190
- icon: r,
191
- iconColor: l,
192
- iconBackground: c,
193
- timestamp: a,
194
- children: n,
195
- ...i
196
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c, e[7] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6], a = e[7]);
197
- const d = l === void 0 ? "fg" : l, u = c === void 0 ? "transparent" : c;
198
- let f;
199
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(Ie.Separator, { borderColor: "border" }), e[8] = f) : f = e[8];
200
- let h;
201
- e[9] !== t || e[10] !== r || e[11] !== u || e[12] !== d ? (h = /* @__PURE__ */ y(Ie.Connector, { children: [
202
- f,
203
- /* @__PURE__ */ s(Ie.Indicator, { outline: "none", border: "none", background: "bg", children: /* @__PURE__ */ s(it, { actor: t, icon: r, color: d, background: u }) })
204
- ] }), e[9] = t, e[10] = r, e[11] = u, e[12] = d, e[13] = h) : h = e[13];
205
- let p;
206
- e[14] !== t ? (p = t ? /* @__PURE__ */ s(F, { as: "span", color: "fg", fontWeight: "500", flexShrink: 0, children: t.name }) : null, e[14] = t, e[15] = p) : p = e[15];
207
- let m;
208
- e[16] !== n ? (m = /* @__PURE__ */ s(G, { as: "span", display: "inline-flex", alignItems: "center", gap: "2xs", minW: "0", flexWrap: "wrap", children: n }), e[16] = n, e[17] = m) : m = e[17];
209
- let g;
210
- e[18] !== a ? (g = a ? /* @__PURE__ */ y(Me, { children: [
211
- /* @__PURE__ */ s(lo, {}),
212
- /* @__PURE__ */ s(F, { as: "span", color: "fg.muted", flexShrink: 0, children: a })
213
- ] }) : null, e[18] = a, e[19] = g) : g = e[19];
214
- let x;
215
- e[20] !== p || e[21] !== m || e[22] !== g ? (x = /* @__PURE__ */ s(Ie.Content, { gap: "0", minW: "0", children: /* @__PURE__ */ y(Ie.Title, { marginTop: "0", gap: "xs", minW: "0", fontWeight: "normal", textStyle: "label/S/regular", color: "fg.muted", children: [
216
- p,
217
- m,
218
- g
219
- ] }) }), e[20] = p, e[21] = m, e[22] = g, e[23] = x) : x = e[23];
220
- let b;
221
- return e[24] !== i || e[25] !== h || e[26] !== x ? (b = /* @__PURE__ */ y(Ie.Item, { gap: "xs", minH: "24px", paddingX: "md", ...i, children: [
222
- h,
223
- x
224
- ] }), e[24] = i, e[25] = h, e[26] = x, e[27] = b) : b = e[27], b;
225
- }, so = (o) => {
226
- const e = O(6);
227
- let t, n;
228
- e[0] !== o ? ({
229
- children: t,
230
- ...n
231
- } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
232
- let r;
233
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { width: "full", gap: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
234
- }, ao = (o) => {
235
- const e = O(12);
236
- let t, n, r;
237
- e[0] !== o ? ({
238
- title: r,
239
- actions: t,
240
- ...n
241
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r) : (t = e[1], n = e[2], r = e[3]);
242
- const i = r === void 0 ? "Activity" : r;
243
- let l;
244
- e[4] !== i ? (l = /* @__PURE__ */ s(F, { textStyle: "label/M/medium", color: "fg", children: i }), e[4] = i, e[5] = l) : l = e[5];
245
- let c;
246
- e[6] !== t ? (c = t ? /* @__PURE__ */ s(ae, { gap: "xs", children: t }) : null, e[6] = t, e[7] = c) : c = e[7];
247
- let a;
248
- return e[8] !== n || e[9] !== l || e[10] !== c ? (a = /* @__PURE__ */ y(ae, { alignItems: "center", justifyContent: "space-between", gap: "md", ...n, children: [
249
- l,
250
- c
251
- ] }), e[8] = n, e[9] = l, e[10] = c, e[11] = a) : a = e[11], a;
252
- }, co = (o) => {
253
- const e = O(6);
254
- let t, n;
255
- e[0] !== o ? ({
256
- children: t,
257
- ...n
258
- } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
259
- let r;
260
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { gap: "md", width: "full", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
261
- }, uo = (o) => {
262
- const e = O(7);
263
- let t, n;
264
- e[0] !== o ? ({
265
- children: t,
266
- ...n
267
- } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
268
- let r;
269
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
270
- "--timeline-indicator-size": "18px"
271
- }, e[3] = r) : r = e[3];
272
- let i;
273
- return e[4] !== t || e[5] !== n ? (i = /* @__PURE__ */ s(Ie.Root, { size: "sm", variant: "plain", width: "full", css: r, ...n, children: t }), e[4] = t, e[5] = n, e[6] = i) : i = e[6], i;
274
- }, Si = {
275
- Root: so,
276
- Header: ao,
277
- Feed: co,
278
- Timeline: uo,
279
- Event: io,
280
- Comment: oo,
281
- Reply: no,
79
+ }, ml = {
80
+ Root: Tn,
81
+ Header: In,
82
+ Feed: wn,
83
+ Timeline: Cn,
84
+ Event: yn,
85
+ Comment: vn,
86
+ Reply: xn,
282
87
  Composer: ro,
283
- Avatar: it
284
- }, xi = 48, fo = (o) => {
285
- const e = typeof o.label == "string" ? o.label : "", t = typeof o.secondaryLabel == "string" ? o.secondaryLabel : "";
286
- return `${e} ${o.searchText ?? ""} ${t}`;
287
- }, sn = (o, e) => o.trimStart().startsWith(e), ho = (o, e = [], t) => e.find((r) => r.inputPrefix && sn(o, r.inputPrefix))?.id ?? t ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, mo = (o, e = [], t) => {
288
- const n = e.find((r) => r.id === t && r.inputPrefix && sn(o, r.inputPrefix));
289
- return n?.inputPrefix ? o.trimStart().slice(n.inputPrefix.length).trim() : o.trim();
290
- }, po = (o, e) => {
88
+ Avatar: Vt
89
+ }, pl = 48, io = (n) => {
90
+ const e = typeof n.label == "string" ? n.label : "", t = typeof n.secondaryLabel == "string" ? n.secondaryLabel : "";
91
+ return `${e} ${n.searchText ?? ""} ${t}`;
92
+ }, on = (n, e) => n.trimStart().startsWith(e), lo = (n, e = [], t) => e.find((r) => r.inputPrefix && on(n, r.inputPrefix))?.id ?? t ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, so = (n, e = [], t) => {
93
+ const o = e.find((r) => r.id === t && r.inputPrefix && on(n, r.inputPrefix));
94
+ return o?.inputPrefix ? n.trimStart().slice(o.inputPrefix.length).trim() : n.trim();
95
+ }, ao = (n, e) => {
291
96
  const t = {};
292
- return o.filter((n) => {
293
- const r = n.assetType;
97
+ return n.filter((o) => {
98
+ const r = o.assetType;
294
99
  if (!r) return !0;
295
- const i = t[r] ?? 0;
296
- return i >= e ? !1 : (t[r] = i + 1, !0);
100
+ const l = t[r] ?? 0;
101
+ return l >= e ? !1 : (t[r] = l + 1, !0);
297
102
  });
298
- }, go = (o, e) => {
299
- const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), n = o.filter((r) => e.mode && r.mode !== e.mode ? !1 : t ? fo(r).toLowerCase().includes(t) : !0);
300
- return t || e.defaultAssetLimit === void 0 ? n : po(n, e.defaultAssetLimit);
301
- }, bo = 24, So = 40, xo = 384, vo = (o) => ({
302
- id: o.id,
303
- label: o.label,
304
- description: o.description ?? o.secondaryLabel,
305
- icon: o.icon,
306
- endContent: o.endContent ?? (o.shortcut || o.isSelected ? /* @__PURE__ */ y(ae, { gap: "2", children: [
307
- o.shortcut,
308
- o.isSelected ? /* @__PURE__ */ s(ce, { as: et, boxSize: "14px", color: "fg.muted" }) : null
103
+ }, co = (n, e) => {
104
+ const t = (e.getEffectiveQuery?.(e.query) ?? e.query.trim()).toLowerCase(), o = n.filter((r) => e.mode && r.mode !== e.mode ? !1 : t ? io(r).toLowerCase().includes(t) : !0);
105
+ return t || e.defaultAssetLimit === void 0 ? o : ao(o, e.defaultAssetLimit);
106
+ }, uo = 24, fo = 40, ho = 384, mo = (n) => ({
107
+ id: n.id,
108
+ label: n.label,
109
+ description: n.description ?? n.secondaryLabel,
110
+ icon: n.icon,
111
+ endContent: n.endContent ?? (n.shortcut || n.isSelected ? /* @__PURE__ */ D(de, { gap: "2", children: [
112
+ n.shortcut,
113
+ n.isSelected ? /* @__PURE__ */ s(ae, { as: Je, boxSize: "14px", color: "fg.muted" }) : null
309
114
  ] }) : void 0),
310
- onActivate: o.onActivate
311
- }), yo = (o) => {
115
+ onActivate: n.onActivate
116
+ }), po = (n) => {
312
117
  const e = [];
313
- return o.forEach((t, n) => {
314
- const r = o[n - 1];
118
+ return n.forEach((t, o) => {
119
+ const r = n[o - 1];
315
120
  t.group && t.group !== r?.group && e.push({
316
121
  type: "group",
317
122
  id: `group:${t.group}:${t.id}`,
@@ -320,24 +125,24 @@ const it = (o) => {
320
125
  type: "entry",
321
126
  id: t.id,
322
127
  entry: t,
323
- entryIndex: n
128
+ entryIndex: o
324
129
  });
325
130
  }), e;
326
- }, Co = (o, e) => o.findIndex((t) => t.type === "entry" && t.entryIndex === e), wo = (o) => {
131
+ }, go = (n, e) => n.findIndex((t) => t.type === "entry" && t.entryIndex === e), bo = (n) => {
327
132
  const {
328
133
  entries: e,
329
134
  activeIndex: t,
330
- emptyLabel: n,
135
+ emptyLabel: o,
331
136
  onHover: r,
332
- scrollRef: i
333
- } = o, l = yo(e), c = Co(l, t), a = Fn({
334
- count: l.length,
335
- getScrollElement: () => i.current,
336
- estimateSize: (d) => l[d]?.type === "group" ? bo : So,
337
- getItemKey: (d) => l[d]?.id ?? d,
137
+ scrollRef: l
138
+ } = n, i = po(e), c = go(i, t), a = Gn({
139
+ count: i.length,
140
+ getScrollElement: () => l.current,
141
+ estimateSize: (d) => i[d]?.type === "group" ? uo : fo,
142
+ getItemKey: (d) => i[d]?.id ?? d,
338
143
  initialRect: {
339
144
  width: 0,
340
- height: xo
145
+ height: ho
341
146
  },
342
147
  overscan: 6
343
148
  });
@@ -346,21 +151,21 @@ const it = (o) => {
346
151
  align: "auto",
347
152
  behavior: "auto"
348
153
  });
349
- }, [c, a]), e.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: n }) : /* @__PURE__ */ s(G, { role: "listbox", position: "relative", width: "100%", style: {
154
+ }, [c, a]), e.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: o }) : /* @__PURE__ */ s(se, { role: "listbox", position: "relative", width: "100%", style: {
350
155
  height: a.getTotalSize()
351
156
  }, children: a.getVirtualItems().map((d) => {
352
- const u = l[d.index];
353
- return u ? /* @__PURE__ */ s(G, { "data-index": d.index, ref: a.measureElement, position: "absolute", left: "0", width: "100%", style: {
157
+ const u = i[d.index];
158
+ return u ? /* @__PURE__ */ s(se, { "data-index": d.index, ref: a.measureElement, position: "absolute", left: "0", width: "100%", style: {
354
159
  top: d.start
355
- }, children: u.type === "group" ? /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: u.label }) : /* @__PURE__ */ s(Qe, { variant: "full-width", ...vo(u.entry), isSelected: u.entryIndex === t, tabIndex: -1, onPointerMove: () => r(u.entryIndex) }) }, d.key) : null;
160
+ }, children: u.type === "group" ? /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: u.label }) : /* @__PURE__ */ s(je, { variant: "full-width", ...mo(u.entry), isSelected: u.entryIndex === t, tabIndex: -1, onPointerMove: () => r(u.entryIndex) }) }, d.key) : null;
356
161
  }) });
357
- }, vt = (o) => o != null, Io = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", an = (o) => {
358
- const e = O(49), {
162
+ }, bt = (n) => n != null, So = (n, e) => n && e ? "space-between" : e ? "flex-end" : "flex-start", rn = (n) => {
163
+ const e = B(49), {
359
164
  children: t,
360
- searchValue: n,
165
+ searchValue: o,
361
166
  searchPlaceholder: r,
362
- searchAriaLabel: i,
363
- searchIcon: l,
167
+ searchAriaLabel: l,
168
+ searchIcon: i,
364
169
  searchInputRef: c,
365
170
  searchAutoFocus: a,
366
171
  showCloseButton: d,
@@ -370,57 +175,57 @@ const it = (o) => {
370
175
  footerEnd: p,
371
176
  scrollAreaProps: m,
372
177
  onSearchChange: g,
373
- onSearchKeyDown: x
374
- } = o, b = i === void 0 ? r : i, k = d === void 0 ? !1 : d, A = u === void 0 ? "Close" : u;
375
- let R;
376
- if (e[0] !== f || e[1] !== t || e[2] !== A || e[3] !== p || e[4] !== h || e[5] !== g || e[6] !== x || e[7] !== m || e[8] !== b || e[9] !== a || e[10] !== l || e[11] !== c || e[12] !== r || e[13] !== n || e[14] !== k) {
377
- const S = vt(h), $ = vt(p);
178
+ onSearchKeyDown: v
179
+ } = n, S = l === void 0 ? r : l, R = d === void 0 ? !1 : d, A = u === void 0 ? "Close" : u;
180
+ let P;
181
+ if (e[0] !== f || e[1] !== t || e[2] !== A || e[3] !== p || e[4] !== h || e[5] !== g || e[6] !== v || e[7] !== m || e[8] !== S || e[9] !== a || e[10] !== i || e[11] !== c || e[12] !== r || e[13] !== o || e[14] !== R) {
182
+ const b = bt(h), $ = bt(p);
183
+ let w;
184
+ e[16] !== m ? (w = m ?? {}, e[16] = m, e[17] = w) : w = e[17];
185
+ let T, C, y;
186
+ e[18] !== w ? ({
187
+ maxH: C,
188
+ showHorizontalScrollbar: y,
189
+ ...T
190
+ } = w, e[18] = w, e[19] = T, e[20] = C, e[21] = y) : (T = e[19], C = e[20], y = e[21]);
191
+ const k = C === void 0 ? "24rem" : C, O = y === void 0 ? !1 : y;
378
192
  let I;
379
- e[16] !== m ? (I = m ?? {}, e[16] = m, e[17] = I) : I = e[17];
380
- let P, w, C;
381
- e[18] !== I ? ({
382
- maxH: w,
383
- showHorizontalScrollbar: C,
384
- ...P
385
- } = I, e[18] = I, e[19] = P, e[20] = w, e[21] = C) : (P = e[19], w = e[20], C = e[21]);
386
- const D = w === void 0 ? "24rem" : w, L = C === void 0 ? !1 : C;
387
- let T;
388
- e[22] !== g ? (T = (W) => g(W.target.value), e[22] = g, e[23] = T) : T = e[23];
389
- let z;
390
- e[24] !== x || e[25] !== b || e[26] !== a || e[27] !== c || e[28] !== r || e[29] !== n || e[30] !== T ? (z = /* @__PURE__ */ s(Vt, { ref: c, value: n, placeholder: r, "aria-label": b, autoComplete: "off", autoFocus: a, mx: "xs", h: "3rem", variant: "borderless", onChange: T, onKeyDown: x }), e[24] = x, e[25] = b, e[26] = a, e[27] = c, e[28] = r, e[29] = n, e[30] = T, e[31] = z) : z = e[31];
391
- let E;
392
- e[32] !== l || e[33] !== z ? (E = /* @__PURE__ */ s(Gt, { startElement: l, width: "full", children: z }), e[32] = l, e[33] = z, e[34] = E) : E = e[34];
393
- let v;
394
- e[35] !== A || e[36] !== k ? (v = k ? /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Mt, { "aria-label": A, size: "sm", mr: "2" }) }) : null, e[35] = A, e[36] = k, e[37] = v) : v = e[37];
193
+ e[22] !== g ? (I = (W) => g(W.target.value), e[22] = g, e[23] = I) : I = e[23];
395
194
  let _;
396
- e[38] !== v || e[39] !== E ? (_ = /* @__PURE__ */ y(Z.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
195
+ e[24] !== v || e[25] !== S || e[26] !== a || e[27] !== c || e[28] !== r || e[29] !== o || e[30] !== I ? (_ = /* @__PURE__ */ s(Mt, { ref: c, value: o, placeholder: r, "aria-label": S, autoComplete: "off", autoFocus: a, mx: "xs", h: "3rem", variant: "borderless", onChange: I, onKeyDown: v }), e[24] = v, e[25] = S, e[26] = a, e[27] = c, e[28] = r, e[29] = o, e[30] = I, e[31] = _) : _ = e[31];
196
+ let E;
197
+ e[32] !== i || e[33] !== _ ? (E = /* @__PURE__ */ s(Ht, { startElement: i, width: "full", children: _ }), e[32] = i, e[33] = _, e[34] = E) : E = e[34];
198
+ let x;
199
+ e[35] !== A || e[36] !== R ? (x = R ? /* @__PURE__ */ s(X.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Wt, { "aria-label": A, size: "sm", mr: "2" }) }) : null, e[35] = A, e[36] = R, e[37] = x) : x = e[37];
200
+ let L;
201
+ e[38] !== x || e[39] !== E ? (L = /* @__PURE__ */ D(X.Header, { px: "0", py: "0", borderBottomWidth: "1px", borderBottomColor: "border.subtle", children: [
397
202
  E,
398
- v
399
- ] }), e[38] = v, e[39] = E, e[40] = _) : _ = e[40];
400
- let B;
401
- e[41] !== t || e[42] !== D || e[43] !== P || e[44] !== L ? (B = /* @__PURE__ */ s(tt, { maxH: D, showHorizontalScrollbar: L, ...P, children: t }), e[41] = t, e[42] = D, e[43] = P, e[44] = L, e[45] = B) : B = e[45];
402
- let K;
403
- e[46] !== f || e[47] !== B ? (K = /* @__PURE__ */ y(Z.Body, { p: "0", children: [
203
+ x
204
+ ] }), e[38] = x, e[39] = E, e[40] = L) : L = e[40];
205
+ let N;
206
+ e[41] !== t || e[42] !== k || e[43] !== T || e[44] !== O ? (N = /* @__PURE__ */ s(et, { maxH: k, showHorizontalScrollbar: O, ...T, children: t }), e[41] = t, e[42] = k, e[43] = T, e[44] = O, e[45] = N) : N = e[45];
207
+ let Q;
208
+ e[46] !== f || e[47] !== N ? (Q = /* @__PURE__ */ D(X.Body, { p: "0", children: [
404
209
  f,
405
- B
406
- ] }), e[46] = f, e[47] = B, e[48] = K) : K = e[48], R = /* @__PURE__ */ y(Me, { children: [
407
- _,
408
- K,
409
- S || $ ? /* @__PURE__ */ y(Z.Footer, { justifyContent: Io(S, $), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
410
- S ? /* @__PURE__ */ s(G, { minW: "0", children: h }) : null,
411
- $ ? /* @__PURE__ */ s(G, { flexShrink: 0, children: p }) : null
210
+ N
211
+ ] }), e[46] = f, e[47] = N, e[48] = Q) : Q = e[48], P = /* @__PURE__ */ D(Ze, { children: [
212
+ L,
213
+ Q,
214
+ b || $ ? /* @__PURE__ */ D(X.Footer, { justifyContent: So(b, $), px: "sm", py: "xs", borderTopWidth: "1px", borderTopColor: "border.subtle", children: [
215
+ b ? /* @__PURE__ */ s(se, { minW: "0", children: h }) : null,
216
+ $ ? /* @__PURE__ */ s(se, { flexShrink: 0, children: p }) : null
412
217
  ] }) : null
413
- ] }), e[0] = f, e[1] = t, e[2] = A, e[3] = p, e[4] = h, e[5] = g, e[6] = x, e[7] = m, e[8] = b, e[9] = a, e[10] = l, e[11] = c, e[12] = r, e[13] = n, e[14] = k, e[15] = R;
218
+ ] }), e[0] = f, e[1] = t, e[2] = A, e[3] = p, e[4] = h, e[5] = g, e[6] = v, e[7] = m, e[8] = S, e[9] = a, e[10] = i, e[11] = c, e[12] = r, e[13] = o, e[14] = R, e[15] = P;
414
219
  } else
415
- R = e[15];
416
- return R;
417
- }, yt = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, vi = (o) => {
418
- const e = O(71), {
220
+ P = e[15];
221
+ return P;
222
+ }, St = (n, e, t) => typeof n == "function" ? n(e) : n ?? t, gl = (n) => {
223
+ const e = B(71), {
419
224
  open: t,
420
- entries: n,
225
+ entries: o,
421
226
  initialQuery: r,
422
- initialActiveIndex: i,
423
- mode: l,
227
+ initialActiveIndex: l,
228
+ mode: i,
424
229
  modes: c,
425
230
  resetKey: a,
426
231
  inputIcon: d,
@@ -430,58 +235,58 @@ const it = (o) => {
430
235
  footerEnd: p,
431
236
  filterEntries: m,
432
237
  onActiveEntryChange: g,
433
- onQueryChange: x,
434
- onClose: b,
435
- onEscape: k
436
- } = o, A = r === void 0 ? "" : r, R = i === void 0 ? 0 : i, S = a === void 0 ? "default" : a, $ = f === void 0 ? "No results." : f, [I, P] = fe(A), [w, C] = fe(R), D = He(null), L = He(null);
437
- let T;
438
- e[0] !== S ? (T = {
238
+ onQueryChange: v,
239
+ onClose: S,
240
+ onEscape: R
241
+ } = n, A = r === void 0 ? "" : r, P = l === void 0 ? 0 : l, b = a === void 0 ? "default" : a, $ = f === void 0 ? "No results." : f, [w, T] = fe(A), [C, y] = fe(P), k = We(null), O = We(null);
242
+ let I;
243
+ e[0] !== b ? (I = {
439
244
  open: !1,
440
- resetKey: S
441
- }, e[0] = S, e[1] = T) : T = e[1];
442
- const z = He(T);
443
- let E, v, _, B, K;
444
- if (e[2] !== w || e[3] !== n || e[4] !== m || e[5] !== d || e[6] !== l || e[7] !== c || e[8] !== u || e[9] !== I) {
445
- const M = l ?? ho(I, c);
446
- v = m ? m(n, I, M) : go(n, {
447
- query: I,
448
- mode: M,
449
- getEffectiveQuery: (be) => mo(be, c, M)
450
- }), E = v[w] ?? null, B = {
451
- query: I,
452
- mode: M,
453
- activeIndex: w,
454
- entries: v
455
- }, _ = yt(d, B, null), K = yt(u, B, "Search"), e[2] = w, e[3] = n, e[4] = m, e[5] = d, e[6] = l, e[7] = c, e[8] = u, e[9] = I, e[10] = E, e[11] = v, e[12] = _, e[13] = B, e[14] = K;
245
+ resetKey: b
246
+ }, e[0] = b, e[1] = I) : I = e[1];
247
+ const _ = We(I);
248
+ let E, x, L, N, Q;
249
+ if (e[2] !== C || e[3] !== o || e[4] !== m || e[5] !== d || e[6] !== i || e[7] !== c || e[8] !== u || e[9] !== w) {
250
+ const H = i ?? lo(w, c);
251
+ x = m ? m(o, w, H) : co(o, {
252
+ query: w,
253
+ mode: H,
254
+ getEffectiveQuery: (be) => so(be, c, H)
255
+ }), E = x[C] ?? null, N = {
256
+ query: w,
257
+ mode: H,
258
+ activeIndex: C,
259
+ entries: x
260
+ }, L = St(d, N, null), Q = St(u, N, "Search"), e[2] = C, e[3] = o, e[4] = m, e[5] = d, e[6] = i, e[7] = c, e[8] = u, e[9] = w, e[10] = E, e[11] = x, e[12] = L, e[13] = N, e[14] = Q;
456
261
  } else
457
- E = e[10], v = e[11], _ = e[12], B = e[13], K = e[14];
458
- const W = K;
459
- let H;
460
- e[15] !== x ? (H = (M) => {
461
- P(M), x?.(M);
462
- }, e[15] = x, e[16] = H) : H = e[16];
463
- const N = H;
464
- let q;
465
- e[17] !== E ? (q = () => {
262
+ E = e[10], x = e[11], L = e[12], N = e[13], Q = e[14];
263
+ const W = Q;
264
+ let M;
265
+ e[15] !== v ? (M = (H) => {
266
+ T(H), v?.(H);
267
+ }, e[15] = v, e[16] = M) : M = e[16];
268
+ const z = M;
269
+ let U;
270
+ e[17] !== E ? (U = () => {
466
271
  E?.onActivate();
467
- }, e[17] = E, e[18] = q) : q = e[18];
468
- const j = q;
272
+ }, e[17] = E, e[18] = U) : U = e[18];
273
+ const G = U;
469
274
  let V;
470
- e[19] !== b ? (V = () => {
471
- b();
472
- }, e[19] = b, e[20] = V) : V = e[20];
473
- const U = V;
474
- let X, se;
475
- e[21] !== R || e[22] !== A || e[23] !== t || e[24] !== S ? (se = () => {
476
- const M = z.current;
477
- if (z.current = {
275
+ e[19] !== S ? (V = () => {
276
+ S();
277
+ }, e[19] = S, e[20] = V) : V = e[20];
278
+ const j = V;
279
+ let K, le;
280
+ e[21] !== P || e[22] !== A || e[23] !== t || e[24] !== b ? (le = () => {
281
+ const H = _.current;
282
+ if (_.current = {
478
283
  open: t,
479
- resetKey: S
480
- }, !t || !(!M.open || M.resetKey !== S))
284
+ resetKey: b
285
+ }, !t || !(!H.open || H.resetKey !== b))
481
286
  return;
482
- P(A), C(R);
287
+ T(A), y(P);
483
288
  const Ce = setTimeout(() => {
484
- const we = D.current;
289
+ const we = k.current;
485
290
  if (!we)
486
291
  return;
487
292
  we.focus();
@@ -489,60 +294,60 @@ const it = (o) => {
489
294
  we.setSelectionRange(Se, Se);
490
295
  }, 0);
491
296
  return () => clearTimeout(Ce);
492
- }, X = [R, A, t, S], e[21] = R, e[22] = A, e[23] = t, e[24] = S, e[25] = X, e[26] = se) : (X = e[25], se = e[26]), me(se, X);
493
- let J, ee;
494
- e[27] !== v.length ? (J = () => {
495
- C((M) => Math.min(M, Math.max(v.length - 1, 0)));
496
- }, ee = [v.length], e[27] = v.length, e[28] = J, e[29] = ee) : (J = e[28], ee = e[29]), me(J, ee);
497
- let re, te;
498
- e[30] !== E || e[31] !== w || e[32] !== g ? (re = () => {
499
- g?.(E, w);
500
- }, te = [E, w, g], e[30] = E, e[31] = w, e[32] = g, e[33] = re, e[34] = te) : (re = e[33], te = e[34]), me(re, te);
501
- let le;
502
- e[35] !== E || e[36] !== U || e[37] !== v.length || e[38] !== k || e[39] !== I || e[40] !== j || e[41] !== N || e[42] !== B ? (le = () => {
503
- if (!k?.({
504
- ...B,
297
+ }, K = [P, A, t, b], e[21] = P, e[22] = A, e[23] = t, e[24] = b, e[25] = K, e[26] = le) : (K = e[25], le = e[26]), me(le, K);
298
+ let Y, Z;
299
+ e[27] !== x.length ? (Y = () => {
300
+ y((H) => Math.min(H, Math.max(x.length - 1, 0)));
301
+ }, Z = [x.length], e[27] = x.length, e[28] = Y, e[29] = Z) : (Y = e[28], Z = e[29]), me(Y, Z);
302
+ let oe, J;
303
+ e[30] !== E || e[31] !== C || e[32] !== g ? (oe = () => {
304
+ g?.(E, C);
305
+ }, J = [E, C, g], e[30] = E, e[31] = C, e[32] = g, e[33] = oe, e[34] = J) : (oe = e[33], J = e[34]), me(oe, J);
306
+ let re;
307
+ e[35] !== E || e[36] !== j || e[37] !== x.length || e[38] !== R || e[39] !== w || e[40] !== G || e[41] !== z || e[42] !== N ? (re = () => {
308
+ if (!R?.({
309
+ ...N,
505
310
  activeEntry: E,
506
- entryCount: v.length,
507
- setQuery: N,
508
- setActiveIndex: C,
509
- runActiveEntry: j,
510
- closePalette: U
311
+ entryCount: x.length,
312
+ setQuery: z,
313
+ setActiveIndex: y,
314
+ runActiveEntry: G,
315
+ closePalette: j
511
316
  })) {
512
- if (I.length > 0) {
513
- N(""), C(0);
317
+ if (w.length > 0) {
318
+ z(""), y(0);
514
319
  return;
515
320
  }
516
- U();
321
+ j();
517
322
  }
518
- }, e[35] = E, e[36] = U, e[37] = v.length, e[38] = k, e[39] = I, e[40] = j, e[41] = N, e[42] = B, e[43] = le) : le = e[43];
519
- const ne = le;
520
- let Y;
521
- e[44] !== v.length || e[45] !== ne || e[46] !== j ? (Y = (M) => {
522
- if (M.key === "ArrowDown") {
523
- M.preventDefault(), C((be) => Math.min(be + 1, Math.max(v.length - 1, 0)));
323
+ }, e[35] = E, e[36] = j, e[37] = x.length, e[38] = R, e[39] = w, e[40] = G, e[41] = z, e[42] = N, e[43] = re) : re = e[43];
324
+ const ee = re;
325
+ let q;
326
+ e[44] !== x.length || e[45] !== ee || e[46] !== G ? (q = (H) => {
327
+ if (H.key === "ArrowDown") {
328
+ H.preventDefault(), y((be) => Math.min(be + 1, Math.max(x.length - 1, 0)));
524
329
  return;
525
330
  }
526
- if (M.key === "ArrowUp") {
527
- M.preventDefault(), C(To);
331
+ if (H.key === "ArrowUp") {
332
+ H.preventDefault(), y(xo);
528
333
  return;
529
334
  }
530
- if (M.key === "Enter") {
531
- M.preventDefault(), j();
335
+ if (H.key === "Enter") {
336
+ H.preventDefault(), G();
532
337
  return;
533
338
  }
534
- M.key === "Escape" && (M.preventDefault(), M.stopPropagation(), ne());
535
- }, e[44] = v.length, e[45] = ne, e[46] = j, e[47] = Y) : Y = e[47];
536
- const ie = Y;
537
- let oe;
538
- e[48] !== U ? (oe = (M) => !M.open && U(), e[48] = U, e[49] = oe) : oe = e[49];
339
+ H.key === "Escape" && (H.preventDefault(), H.stopPropagation(), ee());
340
+ }, e[44] = x.length, e[45] = ee, e[46] = G, e[47] = q) : q = e[47];
341
+ const ie = q;
342
+ let te;
343
+ e[48] !== j ? (te = (H) => !H.open && j(), e[48] = j, e[49] = te) : te = e[49];
539
344
  let he;
540
- e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ s(Z.Backdrop, {}), e[50] = he) : he = e[50];
345
+ e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ s(X.Backdrop, {}), e[50] = he) : he = e[50];
541
346
  let Ae;
542
347
  e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = {
543
348
  maxH: "24rem",
544
349
  showHorizontalScrollbar: !1,
545
- viewportRef: L,
350
+ viewportRef: O,
546
351
  viewportProps: {
547
352
  style: {
548
353
  overflowAnchor: "none"
@@ -550,23 +355,23 @@ const it = (o) => {
550
355
  }
551
356
  }, e[51] = Ae) : Ae = e[51];
552
357
  let xe;
553
- e[52] !== N ? (xe = (M) => {
554
- N(M), C(0);
555
- }, e[52] = N, e[53] = xe) : xe = e[53];
358
+ e[52] !== z ? (xe = (H) => {
359
+ z(H), y(0);
360
+ }, e[52] = z, e[53] = xe) : xe = e[53];
556
361
  let ve;
557
- e[54] !== w || e[55] !== $ || e[56] !== v ? (ve = /* @__PURE__ */ s(wo, { entries: v, activeIndex: w, emptyLabel: $, onHover: C, scrollRef: L }), e[54] = w, e[55] = $, e[56] = v, e[57] = ve) : ve = e[57];
362
+ e[54] !== C || e[55] !== $ || e[56] !== x ? (ve = /* @__PURE__ */ s(bo, { entries: x, activeIndex: C, emptyLabel: $, onHover: y, scrollRef: O }), e[54] = C, e[55] = $, e[56] = x, e[57] = ve) : ve = e[57];
558
363
  let ye;
559
- e[58] !== p || e[59] !== h || e[60] !== ie || e[61] !== I || e[62] !== _ || e[63] !== W || e[64] !== xe || e[65] !== ve ? (ye = /* @__PURE__ */ s(Z.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(Z.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(an, { searchValue: I, searchPlaceholder: W, searchIcon: _, searchInputRef: D, showCloseButton: !0, footerStart: h, footerEnd: p, scrollAreaProps: Ae, onSearchChange: xe, onSearchKeyDown: ie, children: ve }) }) }), e[58] = p, e[59] = h, e[60] = ie, e[61] = I, e[62] = _, e[63] = W, e[64] = xe, e[65] = ve, e[66] = ye) : ye = e[66];
560
- let Re;
561
- return e[67] !== t || e[68] !== oe || e[69] !== ye ? (Re = /* @__PURE__ */ y(Z.Root, { open: t, onOpenChange: oe, children: [
364
+ e[58] !== p || e[59] !== h || e[60] !== ie || e[61] !== w || e[62] !== L || e[63] !== W || e[64] !== xe || e[65] !== ve ? (ye = /* @__PURE__ */ s(X.Positioner, { alignItems: "center", justifyContent: "center", p: "md", children: /* @__PURE__ */ s(X.Content, { maxW: "44rem", w: "full", p: "0", overflow: "hidden", borderWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(rn, { searchValue: w, searchPlaceholder: W, searchIcon: L, searchInputRef: k, showCloseButton: !0, footerStart: h, footerEnd: p, scrollAreaProps: Ae, onSearchChange: xe, onSearchKeyDown: ie, children: ve }) }) }), e[58] = p, e[59] = h, e[60] = ie, e[61] = w, e[62] = L, e[63] = W, e[64] = xe, e[65] = ve, e[66] = ye) : ye = e[66];
365
+ let Pe;
366
+ return e[67] !== t || e[68] !== te || e[69] !== ye ? (Pe = /* @__PURE__ */ D(X.Root, { open: t, onOpenChange: te, children: [
562
367
  he,
563
368
  ye
564
- ] }), e[67] = t, e[68] = oe, e[69] = ye, e[70] = Re) : Re = e[70], Re;
369
+ ] }), e[67] = t, e[68] = te, e[69] = ye, e[70] = Pe) : Pe = e[70], Pe;
565
370
  };
566
- function To(o) {
567
- return Math.max(o - 1, 0);
371
+ function xo(n) {
372
+ return Math.max(n - 1, 0);
568
373
  }
569
- const Po = {
374
+ const vo = {
570
375
  alt: {
571
376
  label: "Alt"
572
377
  },
@@ -582,134 +387,134 @@ const Po = {
582
387
  shift: {
583
388
  label: "Shift"
584
389
  }
585
- }, Ao = {
390
+ }, yo = {
586
391
  alt: {
587
392
  label: "Option",
588
- Icon: xt
393
+ Icon: mt
589
394
  },
590
395
  cmd: {
591
396
  label: "Command",
592
- Icon: Ye
397
+ Icon: qe
593
398
  },
594
399
  command: {
595
400
  label: "Command",
596
- Icon: Ye
401
+ Icon: qe
597
402
  },
598
403
  meta: {
599
404
  label: "Command",
600
- Icon: Ye
405
+ Icon: qe
601
406
  },
602
407
  mod: {
603
408
  label: "Command",
604
- Icon: Ye
409
+ Icon: qe
605
410
  },
606
411
  option: {
607
412
  label: "Option",
608
- Icon: xt
413
+ Icon: mt
609
414
  },
610
415
  shift: {
611
416
  label: "Shift"
612
417
  }
613
- }, Ro = {
418
+ }, Co = {
614
419
  arrowleft: {
615
420
  label: "Arrow Left",
616
- Icon: kn
421
+ Icon: Rn
617
422
  },
618
423
  arrowright: {
619
424
  label: "Arrow Right",
620
- Icon: Rn
425
+ Icon: Dn
621
426
  }
622
- }, ko = () => {
427
+ }, wo = () => {
623
428
  if (typeof navigator > "u") return "linux";
624
- const o = navigator.platform?.toLowerCase() ?? "";
625
- return o.includes("mac") ? "mac" : o.includes("win") ? "win" : "linux";
626
- }, $o = (o, e = ko()) => {
627
- const t = o.toLowerCase(), n = e === "mac" ? Ao : Po;
628
- return Ro[t] ?? n[t] ?? {
629
- label: o
429
+ const n = navigator.platform?.toLowerCase() ?? "";
430
+ return n.includes("mac") ? "mac" : n.includes("win") ? "win" : "linux";
431
+ }, Io = (n, e = wo()) => {
432
+ const t = n.toLowerCase(), o = e === "mac" ? yo : vo;
433
+ return Co[t] ?? o[t] ?? {
434
+ label: n
630
435
  };
631
- }, Ct = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), Eo = (o) => (Array.isArray(o) ? o.map(Ct) : [Ct(o)]).map((t) => t.map((n) => $o(n))), yi = (o) => {
632
- const e = O(4), {
436
+ }, xt = (n) => n.split("+").map((e) => e.trim()).filter(Boolean), To = (n) => (Array.isArray(n) ? n.map(xt) : [xt(n)]).map((t) => t.map((o) => Io(o))), bl = (n) => {
437
+ const e = B(4), {
633
438
  binding: t
634
- } = o;
635
- let n;
439
+ } = n;
440
+ let o;
636
441
  if (e[0] !== t) {
637
- const i = Eo(t);
638
- n = i.map((l, c) => /* @__PURE__ */ y(St, { children: [
639
- l.map((a, d) => /* @__PURE__ */ y(St, { children: [
640
- /* @__PURE__ */ s(gn, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": a.label, children: a.Icon ? /* @__PURE__ */ s(a.Icon, { size: 12, "aria-hidden": "true" }) : a.label }),
641
- d < l.length - 1 ? " " : null
442
+ const l = To(t);
443
+ o = l.map((i, c) => /* @__PURE__ */ D(gt, { children: [
444
+ i.map((a, d) => /* @__PURE__ */ D(gt, { children: [
445
+ /* @__PURE__ */ s(hn, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": a.label, children: a.Icon ? /* @__PURE__ */ s(a.Icon, { size: 12, "aria-hidden": "true" }) : a.label }),
446
+ d < i.length - 1 ? " " : null
642
447
  ] }, `${a.label}-${d}`)),
643
- c < i.length - 1 ? " then " : null
644
- ] }, `${l.map(Do).join("+")}-${c}`)), e[0] = t, e[1] = n;
448
+ c < l.length - 1 ? " then " : null
449
+ ] }, `${i.map(Ao).join("+")}-${c}`)), e[0] = t, e[1] = o;
645
450
  } else
646
- n = e[1];
451
+ o = e[1];
647
452
  let r;
648
- return e[2] !== n ? (r = /* @__PURE__ */ s(Me, { children: n }), e[2] = n, e[3] = r) : r = e[3], r;
453
+ return e[2] !== o ? (r = /* @__PURE__ */ s(Ze, { children: o }), e[2] = o, e[3] = r) : r = e[3], r;
649
454
  };
650
- function Do(o) {
651
- return o.label;
455
+ function Ao(n) {
456
+ return n.label;
652
457
  }
653
- function Ci(o) {
654
- const e = O(14);
655
- let t, n, r, i, l, c;
656
- e[0] !== o ? ({
458
+ function Sl(n) {
459
+ const e = B(14);
460
+ let t, o, r, l, i, c;
461
+ e[0] !== n ? ({
657
462
  children: t,
658
463
  h: r,
659
- px: i,
660
- py: l,
464
+ px: l,
465
+ py: i,
661
466
  borderBottomWidth: c,
662
- ...n
663
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
664
- const a = r === void 0 ? "41px" : r, d = i === void 0 ? "xs" : i, u = l === void 0 ? "xs" : l, f = c === void 0 ? "1px" : c;
467
+ ...o
468
+ } = n, e[0] = n, e[1] = t, e[2] = o, e[3] = r, e[4] = l, e[5] = i, e[6] = c) : (t = e[1], o = e[2], r = e[3], l = e[4], i = e[5], c = e[6]);
469
+ const a = r === void 0 ? "41px" : r, d = l === void 0 ? "xs" : l, u = i === void 0 ? "xs" : i, f = c === void 0 ? "1px" : c;
665
470
  let h;
666
- return e[7] !== f || e[8] !== t || e[9] !== a || e[10] !== d || e[11] !== u || e[12] !== n ? (h = /* @__PURE__ */ s(ae, { ...n, h: a, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.subtle", px: d, py: u, children: t }), e[7] = f, e[8] = t, e[9] = a, e[10] = d, e[11] = u, e[12] = n, e[13] = h) : h = e[13], h;
471
+ return e[7] !== f || e[8] !== t || e[9] !== a || e[10] !== d || e[11] !== u || e[12] !== o ? (h = /* @__PURE__ */ s(de, { ...o, h: a, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.subtle", px: d, py: u, children: t }), e[7] = f, e[8] = t, e[9] = a, e[10] = d, e[11] = u, e[12] = o, e[13] = h) : h = e[13], h;
667
472
  }
668
- const wi = (o) => {
669
- const e = O(17), {
473
+ const xl = (n) => {
474
+ const e = B(17), {
670
475
  children: t,
671
- title: n,
476
+ title: o,
672
477
  defaultOpen: r,
673
- action: i
674
- } = o, l = r === void 0 ? !0 : r;
478
+ action: l
479
+ } = n, i = r === void 0 ? !0 : r;
675
480
  let c;
676
481
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
677
482
  background: "bg.hover"
678
483
  }, e[0] = c) : c = e[0];
679
484
  let a;
680
- e[1] !== n ? (a = n && /* @__PURE__ */ s(F, { fontWeight: "600", textStyle: "label/S/medium", children: n }), e[1] = n, e[2] = a) : a = e[2];
485
+ e[1] !== o ? (a = o && /* @__PURE__ */ s(F, { fontWeight: "600", textStyle: "label/S/medium", children: o }), e[1] = o, e[2] = a) : a = e[2];
681
486
  let d;
682
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(Ke.Indicator, { transition: "transform 0.2s", _open: {
487
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ s(Qe.Indicator, { transition: "transform 0.2s", _open: {
683
488
  transform: "rotate(90deg)"
684
489
  }, children: /* @__PURE__ */ s($n, { size: 16 }) }), e[3] = d) : d = e[3];
685
490
  let u;
686
- e[4] !== a ? (u = /* @__PURE__ */ y(Ke.Trigger, { _hover: c, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
491
+ e[4] !== a ? (u = /* @__PURE__ */ D(Qe.Trigger, { _hover: c, padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
687
492
  a,
688
493
  d
689
494
  ] }), e[4] = a, e[5] = u) : u = e[5];
690
495
  let f;
691
- e[6] !== i ? (f = i && /* @__PURE__ */ s(G, { marginLeft: "auto", onClick: Lo, children: i }), e[6] = i, e[7] = f) : f = e[7];
496
+ e[6] !== l ? (f = l && /* @__PURE__ */ s(se, { marginLeft: "auto", onClick: Po, children: l }), e[6] = l, e[7] = f) : f = e[7];
692
497
  let h;
693
- e[8] !== u || e[9] !== f ? (h = /* @__PURE__ */ y(de, { children: [
498
+ e[8] !== u || e[9] !== f ? (h = /* @__PURE__ */ D(ce, { children: [
694
499
  u,
695
500
  f
696
501
  ] }), e[8] = u, e[9] = f, e[10] = h) : h = e[10];
697
502
  let p;
698
- e[11] !== t ? (p = /* @__PURE__ */ s(Ke.Content, { children: t }), e[11] = t, e[12] = p) : p = e[12];
503
+ e[11] !== t ? (p = /* @__PURE__ */ s(Qe.Content, { children: t }), e[11] = t, e[12] = p) : p = e[12];
699
504
  let m;
700
- return e[13] !== l || e[14] !== h || e[15] !== p ? (m = /* @__PURE__ */ y(Ke.Root, { defaultOpen: l, width: "full", children: [
505
+ return e[13] !== i || e[14] !== h || e[15] !== p ? (m = /* @__PURE__ */ D(Qe.Root, { defaultOpen: i, width: "full", children: [
701
506
  h,
702
507
  p
703
- ] }), e[13] = l, e[14] = h, e[15] = p, e[16] = m) : m = e[16], m;
508
+ ] }), e[13] = i, e[14] = h, e[15] = p, e[16] = m) : m = e[16], m;
704
509
  };
705
- function Lo(o) {
706
- return o.stopPropagation();
510
+ function Po(n) {
511
+ return n.stopPropagation();
707
512
  }
708
- const Oo = "2.5rem", wt = "2xs", Ii = "sm", cn = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", _o = (o) => o !== "normal", zo = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), No = (o, e) => {
513
+ const Do = "2.5rem", vt = "2xs", vl = "sm", ln = (n) => n === "urgent" ? "red" : n === "high" ? "orange" : n === "low" ? "gray" : "blue", Ro = (n) => n !== "normal", $o = (n) => [n.title, n.body, n.kind, n.priority, n.status, n.sourceLabel, n.targetLabel, n.searchText, ...(n.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), Eo = (n, e) => {
709
514
  const t = e.trim().toLowerCase();
710
- return t ? o.filter((n) => zo(n).includes(t)) : o;
711
- }, dn = (o) => {
712
- const e = o.filter((r) => r.kind === "blocked"), t = o.filter((r) => r.kind !== "blocked" && (r.priority === "urgent" || r.priority === "high")), n = o.filter((r) => r.kind !== "blocked" && (r.priority === "normal" || r.priority === "low"));
515
+ return t ? n.filter((o) => $o(o).includes(t)) : n;
516
+ }, sn = (n) => {
517
+ const e = n.filter((r) => r.kind === "blocked"), t = n.filter((r) => r.kind !== "blocked" && (r.priority === "urgent" || r.priority === "high")), o = n.filter((r) => r.kind !== "blocked" && (r.priority === "normal" || r.priority === "low"));
713
518
  return [{
714
519
  id: "needs-input",
715
520
  label: "Needs input",
@@ -721,195 +526,195 @@ const Oo = "2.5rem", wt = "2xs", Ii = "sm", cn = (o) => o === "urgent" ? "red" :
721
526
  }, {
722
527
  id: "other",
723
528
  label: "Other",
724
- items: n
529
+ items: o
725
530
  }].filter((r) => r.items.length > 0);
726
- }, Bo = (o) => dn(o).flatMap((e) => e.items), Wo = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), Ho = (o, e) => {
531
+ }, ko = (n) => sn(n).flatMap((e) => e.items), Oo = (n) => [n.body, n.targetLabel, n.sourceLabel, n.timeLabel].filter(Boolean).join(" · "), Lo = (n, e) => {
727
532
  const t = [];
728
533
  return e.onDismiss && t.push({
729
534
  id: "dismiss",
730
535
  label: "Dismiss",
731
- icon: /* @__PURE__ */ s(Qt, { size: 14 }),
536
+ icon: /* @__PURE__ */ s(Gt, { size: 14 }),
732
537
  tooltip: "Dismiss",
733
- onAction: () => e.onDismiss?.(o)
538
+ onAction: () => e.onDismiss?.(n)
734
539
  }), t;
735
- }, Fo = (o) => {
736
- const e = O(15), {
540
+ }, _o = (n) => {
541
+ const e = B(15), {
737
542
  actions: t,
738
- item: n,
543
+ item: o,
739
544
  onRunAction: r
740
- } = o;
741
- let i;
742
- e[0] !== n.priority ? (i = _o(n.priority) ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: cn(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = i) : i = e[1];
545
+ } = n;
743
546
  let l;
744
- e[2] !== n.status ? (l = n.status === "open" ? /* @__PURE__ */ s(Te, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = l) : l = e[3];
547
+ e[0] !== o.priority ? (l = Ro(o.priority) ? /* @__PURE__ */ s(Ie, { size: "sm", colorPalette: ln(o.priority), textTransform: "capitalize", flexShrink: 0, children: o.priority }) : null, e[0] = o.priority, e[1] = l) : l = e[1];
548
+ let i;
549
+ e[2] !== o.status ? (i = o.status === "open" ? /* @__PURE__ */ s(Ie, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = o.status, e[3] = i) : i = e[3];
745
550
  let c;
746
- if (e[4] !== t || e[5] !== n || e[6] !== r) {
551
+ if (e[4] !== t || e[5] !== o || e[6] !== r) {
747
552
  let d;
748
- e[8] !== n || e[9] !== r ? (d = (u) => /* @__PURE__ */ s(ue, { size: "2xs", variant: "outline", colorPalette: u.destructive ? "red" : "gray", maxW: "9rem", onClick: (f) => {
749
- f.stopPropagation(), r?.(n, u);
750
- }, children: /* @__PURE__ */ s(F, { truncate: !0, children: u.label }) }, u.id), e[8] = n, e[9] = r, e[10] = d) : d = e[10], c = t.map(d), e[4] = t, e[5] = n, e[6] = r, e[7] = c;
553
+ e[8] !== o || e[9] !== r ? (d = (u) => /* @__PURE__ */ s(ue, { size: "2xs", variant: "outline", colorPalette: u.destructive ? "red" : "gray", maxW: "9rem", onClick: (f) => {
554
+ f.stopPropagation(), r?.(o, u);
555
+ }, children: /* @__PURE__ */ s(F, { truncate: !0, children: u.label }) }, u.id), e[8] = o, e[9] = r, e[10] = d) : d = e[10], c = t.map(d), e[4] = t, e[5] = o, e[6] = r, e[7] = c;
751
556
  } else
752
557
  c = e[7];
753
558
  let a;
754
- return e[11] !== i || e[12] !== l || e[13] !== c ? (a = /* @__PURE__ */ y(ae, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
755
- i,
559
+ return e[11] !== l || e[12] !== i || e[13] !== c ? (a = /* @__PURE__ */ D(de, { gap: "2", minW: "0", flexWrap: "wrap", justify: "flex-end", children: [
756
560
  l,
561
+ i,
757
562
  c
758
- ] }), e[11] = i, e[12] = l, e[13] = c, e[14] = a) : a = e[14], a;
759
- }, Mo = (o) => {
563
+ ] }), e[11] = l, e[12] = i, e[13] = c, e[14] = a) : a = e[14], a;
564
+ }, zo = (n) => {
760
565
  const {
761
566
  activeIndex: e,
762
567
  items: t,
763
- onActivateItem: n,
568
+ onActivateItem: o,
764
569
  onActiveIndexChange: r,
765
- onRunAction: i
766
- } = o, l = dn(t);
570
+ onRunAction: l
571
+ } = n, i = sn(t);
767
572
  let c = 0;
768
- return /* @__PURE__ */ s(Q, { gap: "2xs", py: "xs", children: l.map((a) => /* @__PURE__ */ y(Q, { gap: "2xs", children: [
573
+ return /* @__PURE__ */ s(ne, { gap: "2xs", py: "xs", children: i.map((a) => /* @__PURE__ */ D(ne, { gap: "2xs", children: [
769
574
  /* @__PURE__ */ s(F, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: a.label }),
770
575
  a.items.map((d) => {
771
576
  const u = c;
772
- return c += 1, /* @__PURE__ */ s(Qe, { id: d.id, label: d.title, description: Wo(d), icon: /* @__PURE__ */ s(ce, { as: En, boxSize: "14px" }), iconColor: `${cn(d.priority)}.500`, variant: "compact", isSelected: u === e, endContent: /* @__PURE__ */ s(Fo, { item: d, actions: d.actions ?? [], onRunAction: i }), actions: Ho(d, o), tabIndex: -1, onActivate: () => n?.(d), onPointerMove: () => r(u) }, d.id);
577
+ return c += 1, /* @__PURE__ */ s(je, { id: d.id, label: d.title, description: Oo(d), icon: /* @__PURE__ */ s(ae, { as: En, boxSize: "14px" }), iconColor: `${ln(d.priority)}.500`, variant: "compact", isSelected: u === e, endContent: /* @__PURE__ */ s(_o, { item: d, actions: d.actions ?? [], onRunAction: l }), actions: Lo(d, n), tabIndex: -1, onActivate: () => o?.(d), onPointerMove: () => r(u) }, d.id);
773
578
  })
774
579
  ] }, a.id)) });
775
- }, Vo = () => {
776
- const o = O(1);
580
+ }, No = () => {
581
+ const n = B(1);
777
582
  let e;
778
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Q, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Go) }), o[0] = e) : e = o[0], e;
779
- }, Ti = (o) => {
780
- const e = O(37), {
583
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(ne, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Bo) }), n[0] = e) : e = n[0], e;
584
+ }, yl = (n) => {
585
+ const e = B(37), {
781
586
  autoFocus: t,
782
- emptyLabel: n,
587
+ emptyLabel: o,
783
588
  error: r,
784
- footerEnd: i,
785
- footerStart: l,
589
+ footerEnd: l,
590
+ footerStart: i,
786
591
  items: c,
787
592
  loading: a,
788
593
  onActivateItem: d,
789
594
  onEscape: u,
790
595
  onQueryChange: f,
791
596
  query: h
792
- } = o, p = t === void 0 ? !1 : t, m = n === void 0 ? "No notifications." : n, g = a === void 0 ? !1 : a, [x, b] = fe(""), [k, A] = fe(0), R = He(null), S = h ?? x;
793
- let $, I;
794
- e[0] !== S || e[1] !== c ? ($ = No(c, S), I = Bo($), e[0] = S, e[1] = c, e[2] = $, e[3] = I) : ($ = e[2], I = e[3]);
795
- const P = I, w = P[k] ?? null;
796
- let C, D;
797
- e[4] !== p ? (C = () => {
597
+ } = n, p = t === void 0 ? !1 : t, m = o === void 0 ? "No notifications." : o, g = a === void 0 ? !1 : a, [v, S] = fe(""), [R, A] = fe(0), P = We(null), b = h ?? v;
598
+ let $, w;
599
+ e[0] !== b || e[1] !== c ? ($ = Eo(c, b), w = ko($), e[0] = b, e[1] = c, e[2] = $, e[3] = w) : ($ = e[2], w = e[3]);
600
+ const T = w, C = T[R] ?? null;
601
+ let y, k;
602
+ e[4] !== p ? (y = () => {
798
603
  if (!p)
799
604
  return;
800
- const N = setTimeout(() => R.current?.focus(), 0);
801
- return () => clearTimeout(N);
802
- }, D = [p], e[4] = p, e[5] = C, e[6] = D) : (C = e[5], D = e[6]), me(C, D);
803
- let L, T;
804
- e[7] !== P.length ? (L = () => {
805
- A((N) => Math.min(N, Math.max(P.length - 1, 0)));
806
- }, T = [P.length], e[7] = P.length, e[8] = L, e[9] = T) : (L = e[8], T = e[9]), me(L, T);
807
- let z;
808
- e[10] !== f || e[11] !== h ? (z = (N) => {
809
- h === void 0 && b(N), f?.(N), A(0);
810
- }, e[10] = f, e[11] = h, e[12] = z) : z = e[12];
811
- const E = z;
812
- let v;
813
- e[13] !== w || e[14] !== S || e[15] !== P.length || e[16] !== d || e[17] !== u || e[18] !== E ? (v = (N) => {
814
- if (N.key === "ArrowDown") {
815
- N.preventDefault(), A((q) => Math.min(q + 1, Math.max(P.length - 1, 0)));
605
+ const z = setTimeout(() => P.current?.focus(), 0);
606
+ return () => clearTimeout(z);
607
+ }, k = [p], e[4] = p, e[5] = y, e[6] = k) : (y = e[5], k = e[6]), me(y, k);
608
+ let O, I;
609
+ e[7] !== T.length ? (O = () => {
610
+ A((z) => Math.min(z, Math.max(T.length - 1, 0)));
611
+ }, I = [T.length], e[7] = T.length, e[8] = O, e[9] = I) : (O = e[8], I = e[9]), me(O, I);
612
+ let _;
613
+ e[10] !== f || e[11] !== h ? (_ = (z) => {
614
+ h === void 0 && S(z), f?.(z), A(0);
615
+ }, e[10] = f, e[11] = h, e[12] = _) : _ = e[12];
616
+ const E = _;
617
+ let x;
618
+ e[13] !== C || e[14] !== b || e[15] !== T.length || e[16] !== d || e[17] !== u || e[18] !== E ? (x = (z) => {
619
+ if (z.key === "ArrowDown") {
620
+ z.preventDefault(), A((U) => Math.min(U + 1, Math.max(T.length - 1, 0)));
816
621
  return;
817
622
  }
818
- if (N.key === "ArrowUp") {
819
- N.preventDefault(), A(jo);
623
+ if (z.key === "ArrowUp") {
624
+ z.preventDefault(), A(Wo);
820
625
  return;
821
626
  }
822
- if (N.key === "Enter") {
823
- N.preventDefault(), w && d?.(w);
627
+ if (z.key === "Enter") {
628
+ z.preventDefault(), C && d?.(C);
824
629
  return;
825
630
  }
826
- if (N.key === "Escape") {
827
- if (N.preventDefault(), S.length > 0) {
631
+ if (z.key === "Escape") {
632
+ if (z.preventDefault(), b.length > 0) {
828
633
  E("");
829
634
  return;
830
635
  }
831
636
  u?.();
832
637
  }
833
- }, e[13] = w, e[14] = S, e[15] = P.length, e[16] = d, e[17] = u, e[18] = E, e[19] = v) : v = e[19];
834
- const _ = v;
835
- let B;
836
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ s(qt, { size: 14 }), e[20] = B) : B = e[20];
837
- let K;
838
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = {
638
+ }, e[13] = C, e[14] = b, e[15] = T.length, e[16] = d, e[17] = u, e[18] = E, e[19] = x) : x = e[19];
639
+ const L = x;
640
+ let N;
641
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ s(jt, { size: 14 }), e[20] = N) : N = e[20];
642
+ let Q;
643
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = {
839
644
  maxH: "24rem",
840
645
  showHorizontalScrollbar: !1
841
- }, e[21] = K) : K = e[21];
646
+ }, e[21] = Q) : Q = e[21];
842
647
  let W;
843
- e[22] !== k || e[23] !== m || e[24] !== r || e[25] !== $ || e[26] !== g || e[27] !== o ? (W = r ? /* @__PURE__ */ s(G, { p: "sm", children: /* @__PURE__ */ s(ht, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Vo, {}) : $.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(Mo, { ...o, items: $, activeIndex: k, onActiveIndexChange: A }), e[22] = k, e[23] = m, e[24] = r, e[25] = $, e[26] = g, e[27] = o, e[28] = W) : W = e[28];
844
- let H;
845
- return e[29] !== S || e[30] !== p || e[31] !== i || e[32] !== l || e[33] !== _ || e[34] !== W || e[35] !== E ? (H = /* @__PURE__ */ s(an, { searchValue: S, searchPlaceholder: "Search notifications", searchIcon: B, searchInputRef: R, searchAutoFocus: p, footerStart: l, footerEnd: i, scrollAreaProps: K, onSearchChange: E, onSearchKeyDown: _, children: W }), e[29] = S, e[30] = p, e[31] = i, e[32] = l, e[33] = _, e[34] = W, e[35] = E, e[36] = H) : H = e[36], H;
648
+ e[22] !== R || e[23] !== m || e[24] !== r || e[25] !== $ || e[26] !== g || e[27] !== n ? (W = r ? /* @__PURE__ */ s(se, { p: "sm", children: /* @__PURE__ */ s(dt, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(No, {}) : $.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(zo, { ...n, items: $, activeIndex: R, onActiveIndexChange: A }), e[22] = R, e[23] = m, e[24] = r, e[25] = $, e[26] = g, e[27] = n, e[28] = W) : W = e[28];
649
+ let M;
650
+ return e[29] !== b || e[30] !== p || e[31] !== l || e[32] !== i || e[33] !== L || e[34] !== W || e[35] !== E ? (M = /* @__PURE__ */ s(rn, { searchValue: b, searchPlaceholder: "Search notifications", searchIcon: N, searchInputRef: P, searchAutoFocus: p, footerStart: i, footerEnd: l, scrollAreaProps: Q, onSearchChange: E, onSearchKeyDown: L, children: W }), e[29] = b, e[30] = p, e[31] = l, e[32] = i, e[33] = L, e[34] = W, e[35] = E, e[36] = M) : M = e[36], M;
846
651
  };
847
- function Go(o) {
848
- return /* @__PURE__ */ y(Q, { gap: "2xs", children: [
849
- /* @__PURE__ */ s(pt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
850
- /* @__PURE__ */ s(pt, { h: "3", w: "88%", borderRadius: "xs" })
851
- ] }, o);
652
+ function Bo(n) {
653
+ return /* @__PURE__ */ D(ne, { gap: "2xs", children: [
654
+ /* @__PURE__ */ s(ft, { h: "4", w: n % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
655
+ /* @__PURE__ */ s(ft, { h: "3", w: "88%", borderRadius: "xs" })
656
+ ] }, n);
852
657
  }
853
- function jo(o) {
854
- return Math.max(o - 1, 0);
658
+ function Wo(n) {
659
+ return Math.max(n - 1, 0);
855
660
  }
856
- const Pi = (o) => {
857
- const e = O(6);
858
- let t, n;
859
- e[0] !== o ? ({
661
+ const Cl = (n) => {
662
+ const e = B(6);
663
+ let t, o;
664
+ e[0] !== n ? ({
860
665
  children: t,
861
- ...n
862
- } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
666
+ ...o
667
+ } = n, e[0] = n, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
863
668
  let r;
864
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(de, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
865
- }, Uo = "20rem", Ai = (o) => {
866
- const e = O(15);
867
- let t, n, r, i, l, c;
868
- e[0] !== o ? ({
669
+ return e[3] !== t || e[4] !== o ? (r = /* @__PURE__ */ s(ce, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...o, children: t }), e[3] = t, e[4] = o, e[5] = r) : r = e[5], r;
670
+ }, Mo = "20rem", wl = (n) => {
671
+ const e = B(15);
672
+ let t, o, r, l, i, c;
673
+ e[0] !== n ? ({
869
674
  children: t,
870
- header: n,
871
- width: l,
675
+ header: o,
676
+ width: i,
872
677
  minWidth: r,
873
678
  resizable: c,
874
- ...i
875
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
876
- const a = l === void 0 ? "28rem" : l, d = c === void 0 ? !1 : c, u = r ?? (d ? Uo : a), f = d ? "full" : a;
679
+ ...l
680
+ } = n, e[0] = n, e[1] = t, e[2] = o, e[3] = r, e[4] = l, e[5] = i, e[6] = c) : (t = e[1], o = e[2], r = e[3], l = e[4], i = e[5], c = e[6]);
681
+ const a = i === void 0 ? "28rem" : i, d = c === void 0 ? !1 : c, u = r ?? (d ? Mo : a), f = d ? "full" : a;
877
682
  let h;
878
- e[7] !== t ? (h = /* @__PURE__ */ s(de, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
683
+ e[7] !== t ? (h = /* @__PURE__ */ s(ce, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
879
684
  let p;
880
- return e[9] !== n || e[10] !== u || e[11] !== f || e[12] !== i || e[13] !== h ? (p = /* @__PURE__ */ y(de, { direction: "column", position: "relative", flexShrink: 0, w: f, minW: u, h: "100%", bg: "bg", overflow: "hidden", ...i, children: [
881
- n,
685
+ return e[9] !== o || e[10] !== u || e[11] !== f || e[12] !== l || e[13] !== h ? (p = /* @__PURE__ */ D(ce, { direction: "column", position: "relative", flexShrink: 0, w: f, minW: u, h: "100%", bg: "bg", overflow: "hidden", ...l, children: [
686
+ o,
882
687
  h
883
- ] }), e[9] = n, e[10] = u, e[11] = f, e[12] = i, e[13] = h, e[14] = p) : p = e[14], p;
884
- }, Ri = Ut(function(e, t) {
885
- const n = O(19);
886
- let r, i, l, c, a;
887
- n[0] !== e ? ({
688
+ ] }), e[9] = o, e[10] = u, e[11] = f, e[12] = l, e[13] = h, e[14] = p) : p = e[14], p;
689
+ }, Il = Kt(function(e, t) {
690
+ const o = B(19);
691
+ let r, l, i, c, a;
692
+ o[0] !== e ? ({
888
693
  children: r,
889
- containerProps: i,
694
+ containerProps: l,
890
695
  isOpen: c,
891
696
  tooltip: a,
892
- ...l
893
- } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = c, n[5] = a) : (r = n[1], i = n[2], l = n[3], c = n[4], a = n[5]);
697
+ ...i
698
+ } = e, o[0] = e, o[1] = r, o[2] = l, o[3] = i, o[4] = c, o[5] = a) : (r = o[1], l = o[2], i = o[3], c = o[4], a = o[5]);
894
699
  const u = (c === void 0 ? !1 : c) ? "border.accent" : "border";
895
700
  let f, h;
896
- n[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
701
+ o[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
897
702
  borderColor: "border.accent"
898
703
  }, h = {
899
704
  borderColor: "border.accent"
900
- }, n[6] = f, n[7] = h) : (f = n[6], h = n[7]);
705
+ }, o[6] = f, o[7] = h) : (f = o[6], h = o[7]);
901
706
  let p;
902
- n[8] !== r || n[9] !== t || n[10] !== l || n[11] !== u ? (p = /* @__PURE__ */ s(Fe, { ref: t, rounded: "full", size: "lg", borderWidth: "1px", borderColor: u, transition: "border-color 0.2s ease-in-out", _hover: f, _active: h, ...l, children: r }), n[8] = r, n[9] = t, n[10] = l, n[11] = u, n[12] = p) : p = n[12];
707
+ o[8] !== r || o[9] !== t || o[10] !== i || o[11] !== u ? (p = /* @__PURE__ */ s(Me, { ref: t, rounded: "full", size: "lg", borderWidth: "1px", borderColor: u, transition: "border-color 0.2s ease-in-out", _hover: f, _active: h, ...i, children: r }), o[8] = r, o[9] = t, o[10] = i, o[11] = u, o[12] = p) : p = o[12];
903
708
  const m = p;
904
709
  let g;
905
- n[13] !== m || n[14] !== a ? (g = a ? /* @__PURE__ */ s(Ue, { content: a, children: m }) : m, n[13] = m, n[14] = a, n[15] = g) : g = n[15];
906
- let x;
907
- return n[16] !== i || n[17] !== g ? (x = /* @__PURE__ */ s(Pe.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), n[16] = i, n[17] = g, n[18] = x) : x = n[18], x;
908
- }), ki = Ut(function(e, t) {
909
- const n = O(28), {
710
+ o[13] !== m || o[14] !== a ? (g = a ? /* @__PURE__ */ s(Ge, { content: a, children: m }) : m, o[13] = m, o[14] = a, o[15] = g) : g = o[15];
711
+ let v;
712
+ return o[16] !== l || o[17] !== g ? (v = /* @__PURE__ */ s(Te.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...l, children: g }), o[16] = l, o[17] = g, o[18] = v) : v = o[18], v;
713
+ }), Tl = Kt(function(e, t) {
714
+ const o = B(28), {
910
715
  isOpen: r,
911
- title: i,
912
- menu: l,
716
+ title: l,
717
+ menu: i,
913
718
  onClose: c,
914
719
  closeLabel: a,
915
720
  onPopOut: d,
@@ -919,52 +724,52 @@ const Pi = (o) => {
919
724
  containerProps: p,
920
725
  testId: m,
921
726
  "aria-label": g,
922
- children: x
923
- } = e, b = r === void 0 ? !1 : r, k = f === void 0 ? "28rem" : f, A = h === void 0 ? "38rem" : h;
924
- if (!b)
727
+ children: v
728
+ } = e, S = r === void 0 ? !1 : r, R = f === void 0 ? "28rem" : f, A = h === void 0 ? "38rem" : h;
729
+ if (!S)
925
730
  return null;
926
- const R = g ?? i;
927
- let S;
928
- n[0] !== l ? (S = /* @__PURE__ */ s(ae, { gap: "1", minW: "0", children: l }), n[0] = l, n[1] = S) : S = n[1];
731
+ const P = g ?? l;
732
+ let b;
733
+ o[0] !== i ? (b = /* @__PURE__ */ s(de, { gap: "1", minW: "0", children: i }), o[0] = i, o[1] = b) : b = o[1];
929
734
  let $;
930
- n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(Ft, {}), n[2] = $) : $ = n[2];
931
- let I;
932
- n[3] !== d || n[4] !== u ? (I = d ? /* @__PURE__ */ s(Ue, { content: u, children: /* @__PURE__ */ s(Fe, { size: wt, variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ s(Dn, { size: 16 }) }) }) : null, n[3] = d, n[4] = u, n[5] = I) : I = n[5];
933
- let P;
934
- n[6] !== a || n[7] !== c ? (P = c ? /* @__PURE__ */ s(Ue, { content: a, children: /* @__PURE__ */ s(Fe, { size: wt, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(Ln, { size: 16 }) }) }) : null, n[6] = a, n[7] = c, n[8] = P) : P = n[8];
735
+ o[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(Bt, {}), o[2] = $) : $ = o[2];
935
736
  let w;
936
- n[9] !== I || n[10] !== P ? (w = /* @__PURE__ */ y(ae, { gap: "1", children: [
937
- I,
938
- P
939
- ] }), n[9] = I, n[10] = P, n[11] = w) : w = n[11];
737
+ o[3] !== d || o[4] !== u ? (w = d ? /* @__PURE__ */ s(Ge, { content: u, children: /* @__PURE__ */ s(Me, { size: vt, variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ s(kn, { size: 16 }) }) }) : null, o[3] = d, o[4] = u, o[5] = w) : w = o[5];
738
+ let T;
739
+ o[6] !== a || o[7] !== c ? (T = c ? /* @__PURE__ */ s(Ge, { content: a, children: /* @__PURE__ */ s(Me, { size: vt, variant: "ghost", "aria-label": a, onClick: c, children: /* @__PURE__ */ s(On, { size: 16 }) }) }) : null, o[6] = a, o[7] = c, o[8] = T) : T = o[8];
940
740
  let C;
941
- n[12] !== S || n[13] !== w ? (C = /* @__PURE__ */ y(Mn, { variant: "main", gap: "sm", flexShrink: 0, children: [
942
- S,
741
+ o[9] !== w || o[10] !== T ? (C = /* @__PURE__ */ D(de, { gap: "1", children: [
742
+ w,
743
+ T
744
+ ] }), o[9] = w, o[10] = T, o[11] = C) : C = o[11];
745
+ let y;
746
+ o[12] !== b || o[13] !== C ? (y = /* @__PURE__ */ D(jn, { variant: "main", gap: "sm", flexShrink: 0, children: [
747
+ b,
943
748
  $,
944
- w
945
- ] }), n[12] = S, n[13] = w, n[14] = C) : C = n[14];
946
- let D;
947
- n[15] !== x ? (D = /* @__PURE__ */ s(G, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: x }), n[15] = x, n[16] = D) : D = n[16];
948
- let L;
949
- n[17] !== D || n[18] !== C ? (L = /* @__PURE__ */ y(de, { direction: "column", h: "full", children: [
950
- C,
951
- D
952
- ] }), n[17] = D, n[18] = C, n[19] = L) : L = n[19];
953
- let T;
954
- return n[20] !== p || n[21] !== A || n[22] !== t || n[23] !== L || n[24] !== R || n[25] !== m || n[26] !== k ? (T = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Pe.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": R, position: "fixed", bottom: "3", right: "3", w: k, maxW: "calc(100vw - 2rem)", h: A, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: L }) }), n[20] = p, n[21] = A, n[22] = t, n[23] = L, n[24] = R, n[25] = m, n[26] = k, n[27] = T) : T = n[27], T;
955
- }), Qo = (o) => {
749
+ C
750
+ ] }), o[12] = b, o[13] = C, o[14] = y) : y = o[14];
751
+ let k;
752
+ o[15] !== v ? (k = /* @__PURE__ */ s(se, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: v }), o[15] = v, o[16] = k) : k = o[16];
753
+ let O;
754
+ o[17] !== k || o[18] !== y ? (O = /* @__PURE__ */ D(ce, { direction: "column", h: "full", children: [
755
+ y,
756
+ k
757
+ ] }), o[17] = k, o[18] = y, o[19] = O) : O = o[19];
758
+ let I;
759
+ return o[20] !== p || o[21] !== A || o[22] !== t || o[23] !== O || o[24] !== P || o[25] !== m || o[26] !== R ? (I = /* @__PURE__ */ s(Ye, { children: /* @__PURE__ */ s(Te.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": P, position: "fixed", bottom: "3", right: "3", w: R, maxW: "calc(100vw - 2rem)", h: A, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: O }) }), o[20] = p, o[21] = A, o[22] = t, o[23] = O, o[24] = P, o[25] = m, o[26] = R, o[27] = I) : I = o[27], I;
760
+ }), Ho = (n) => {
956
761
  const [e, t] = fe(!1), {
957
- headline: n,
762
+ headline: o,
958
763
  buttonText: r,
959
- notificationText: i,
960
- onDelete: l,
764
+ notificationText: l,
765
+ onDelete: i,
961
766
  open: c,
962
767
  onClose: a,
963
768
  children: d
964
- } = o, u = async () => {
769
+ } = n, u = async () => {
965
770
  t(!0);
966
771
  try {
967
- await l(), a();
772
+ await i(), a();
968
773
  } catch {
969
774
  } finally {
970
775
  t(!1);
@@ -974,67 +779,67 @@ const Pi = (o) => {
974
779
  // Destructive confirmations dismiss only through their explicit controls —
975
780
  // outside interactions must never cancel them, and when nested inside another
976
781
  // overlay (e.g. the settings dialog) a portal keeps the layers cooperating.
977
- /* @__PURE__ */ s(Z.Root, { open: c, onOpenChange: (f) => {
782
+ /* @__PURE__ */ s(X.Root, { open: c, onOpenChange: (f) => {
978
783
  f.open || a();
979
- }, closeOnInteractOutside: !1, children: /* @__PURE__ */ y(Je, { children: [
980
- /* @__PURE__ */ s(Z.Backdrop, {}),
981
- /* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */ y(Z.Content, { children: [
982
- /* @__PURE__ */ y(Z.Header, { children: [
983
- /* @__PURE__ */ s(F, { textStyle: "heading/M", children: n }),
984
- /* @__PURE__ */ s(Z.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Mt, { size: "sm" }) })
784
+ }, closeOnInteractOutside: !1, children: /* @__PURE__ */ D(Ye, { children: [
785
+ /* @__PURE__ */ s(X.Backdrop, {}),
786
+ /* @__PURE__ */ s(X.Positioner, { children: /* @__PURE__ */ D(X.Content, { children: [
787
+ /* @__PURE__ */ D(X.Header, { children: [
788
+ /* @__PURE__ */ s(F, { textStyle: "heading/M", children: o }),
789
+ /* @__PURE__ */ s(X.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(Wt, { size: "sm" }) })
985
790
  ] }),
986
- /* @__PURE__ */ s(Z.Body, { children: /* @__PURE__ */ y(Q, { gap: "3", children: [
987
- i ? /* @__PURE__ */ s(F, { children: i }) : null,
791
+ /* @__PURE__ */ s(X.Body, { children: /* @__PURE__ */ D(ne, { gap: "3", children: [
792
+ l ? /* @__PURE__ */ s(F, { children: l }) : null,
988
793
  d
989
794
  ] }) }),
990
- /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ y(Q, { direction: "row", gap: "1", children: [
795
+ /* @__PURE__ */ s(X.Footer, { children: /* @__PURE__ */ D(ne, { direction: "row", gap: "1", children: [
991
796
  /* @__PURE__ */ s(ue, { onClick: a, children: "Close" }),
992
797
  /* @__PURE__ */ s(ue, { loading: e, variant: "destructive", onClick: u, children: r })
993
798
  ] }) })
994
799
  ] }) })
995
800
  ] }) })
996
801
  );
997
- }, qo = (o) => o.isDirectory ? o.isGitRepo ? _n : Kt : On, Ko = (o, e) => {
802
+ }, Fo = (n) => n.isDirectory ? n.isGitRepo ? _n : Ut : Ln, Vo = (n, e) => {
998
803
  const t = e.trim().toLowerCase();
999
- return t ? o.filter((n) => `${n.name} ${n.path}`.toLowerCase().includes(t)) : o;
1000
- }, Xo = (o) => {
1001
- const e = O(22), {
804
+ return t ? n.filter((o) => `${o.name} ${o.path}`.toLowerCase().includes(t)) : n;
805
+ }, Go = (n) => {
806
+ const e = B(22), {
1002
807
  entry: t,
1003
- selectedPath: n,
808
+ selectedPath: o,
1004
809
  selectedPathSet: r,
1005
- onEntryClick: i
1006
- } = o;
1007
- let l;
1008
- e[0] !== t.isGitRepo || e[1] !== t.path || e[2] !== r ? (l = t.isGitRepo && r.has(t.path), e[0] = t.isGitRepo, e[1] = t.path, e[2] = r, e[3] = l) : l = e[3];
1009
- const c = l, a = !t.isDirectory || c;
810
+ onEntryClick: l
811
+ } = n;
812
+ let i;
813
+ e[0] !== t.isGitRepo || e[1] !== t.path || e[2] !== r ? (i = t.isGitRepo && r.has(t.path), e[0] = t.isGitRepo, e[1] = t.path, e[2] = r, e[3] = i) : i = e[3];
814
+ const c = i, a = !t.isDirectory || c;
1010
815
  let d;
1011
- e[4] !== t || e[5] !== c || e[6] !== i ? (d = () => {
1012
- c || i(t);
1013
- }, e[4] = t, e[5] = c, e[6] = i, e[7] = d) : d = e[7];
1014
- const u = d, f = n === t.path, h = t.path, p = t.name;
816
+ e[4] !== t || e[5] !== c || e[6] !== l ? (d = () => {
817
+ c || l(t);
818
+ }, e[4] = t, e[5] = c, e[6] = l, e[7] = d) : d = e[7];
819
+ const u = d, f = o === t.path, h = t.path, p = t.name;
1015
820
  let m;
1016
- e[8] !== t ? (m = qo(t), e[8] = t, e[9] = m) : m = e[9];
821
+ e[8] !== t ? (m = Fo(t), e[8] = t, e[9] = m) : m = e[9];
1017
822
  let g;
1018
- e[10] !== m ? (g = /* @__PURE__ */ s(ce, { as: m, boxSize: "16px" }), e[10] = m, e[11] = g) : g = e[11];
1019
- let x;
1020
- e[12] !== t.isGitRepo ? (x = t.isGitRepo ? /* @__PURE__ */ s(Te, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = x) : x = e[13];
1021
- let b;
1022
- return e[14] !== t.name || e[15] !== t.path || e[16] !== u || e[17] !== a || e[18] !== f || e[19] !== g || e[20] !== x ? (b = /* @__PURE__ */ s(Qe, { variant: "compact", isSelected: f, id: h, label: p, icon: g, endContent: x, disabled: a, onActivate: u }), e[14] = t.name, e[15] = t.path, e[16] = u, e[17] = a, e[18] = f, e[19] = g, e[20] = x, e[21] = b) : b = e[21], b;
1023
- }, Yo = (o) => {
1024
- if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(o.key))
823
+ e[10] !== m ? (g = /* @__PURE__ */ s(ae, { as: m, boxSize: "16px" }), e[10] = m, e[11] = g) : g = e[11];
824
+ let v;
825
+ e[12] !== t.isGitRepo ? (v = t.isGitRepo ? /* @__PURE__ */ s(Ie, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = v) : v = e[13];
826
+ let S;
827
+ return e[14] !== t.name || e[15] !== t.path || e[16] !== u || e[17] !== a || e[18] !== f || e[19] !== g || e[20] !== v ? (S = /* @__PURE__ */ s(je, { variant: "compact", isSelected: f, id: h, label: p, icon: g, endContent: v, disabled: a, onActivate: u }), e[14] = t.name, e[15] = t.path, e[16] = u, e[17] = a, e[18] = f, e[19] = g, e[20] = v, e[21] = S) : S = e[21], S;
828
+ }, jo = (n) => {
829
+ if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(n.key))
1025
830
  return;
1026
- const e = Array.from(o.currentTarget.querySelectorAll('button[role="option"]:not(:disabled)'));
831
+ const e = Array.from(n.currentTarget.querySelectorAll('button[role="option"]:not(:disabled)'));
1027
832
  if (e.length === 0)
1028
833
  return;
1029
- const t = e.indexOf(document.activeElement), n = o.key === "Home" ? 0 : o.key === "End" ? e.length - 1 : o.key === "ArrowUp" ? t <= 0 ? e.length - 1 : t - 1 : t < 0 || t === e.length - 1 ? 0 : t + 1;
1030
- o.preventDefault(), e[n]?.focus();
1031
- }, $i = (o) => {
1032
- const e = O(68), {
834
+ const t = e.indexOf(document.activeElement), o = n.key === "Home" ? 0 : n.key === "End" ? e.length - 1 : n.key === "ArrowUp" ? t <= 0 ? e.length - 1 : t - 1 : t < 0 || t === e.length - 1 ? 0 : t + 1;
835
+ n.preventDefault(), e[o]?.focus();
836
+ }, Al = (n) => {
837
+ const e = B(68), {
1033
838
  open: t,
1034
- title: n,
839
+ title: o,
1035
840
  description: r,
1036
- currentPath: i,
1037
- entries: l,
841
+ currentPath: l,
842
+ entries: i,
1038
843
  selectedPath: c,
1039
844
  selectedPaths: a,
1040
845
  isLoading: d,
@@ -1044,96 +849,96 @@ const Pi = (o) => {
1044
849
  onSelect: p,
1045
850
  onSelectHomeDirectory: m,
1046
851
  onSelectParentDirectory: g,
1047
- onEntryClick: x
1048
- } = o, b = n === void 0 ? "Select folder" : n, k = i === void 0 ? "" : i, A = c === void 0 ? null : c;
1049
- let R;
1050
- e[0] !== a ? (R = a === void 0 ? [] : a, e[0] = a, e[1] = R) : R = e[1];
1051
- const S = R, $ = d === void 0 ? !1 : d, I = u === void 0 ? "" : u, P = f === void 0 ? !1 : f, [w, C] = fe("");
1052
- let D;
1053
- e[2] !== S ? (D = new Set(S), e[2] = S, e[3] = D) : D = e[3];
1054
- const L = D, T = Ko(l, w), z = k || "Home";
1055
- let E, v;
1056
- e[4] !== t || e[5] !== z ? (v = () => {
1057
- !t || !z || C("");
1058
- }, E = [t, z], e[4] = t, e[5] = z, e[6] = E, e[7] = v) : (E = e[6], v = e[7]), me(v, E);
1059
- const _ = Z, B = !0, K = !0, W = !1;
1060
- let H;
1061
- e[8] !== h ? (H = (ze) => !ze.open && h(), e[8] = h, e[9] = H) : H = e[9];
1062
- let N;
1063
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ s(Z.Backdrop, {}), e[10] = N) : N = e[10];
1064
- const q = Z, j = Z;
852
+ onEntryClick: v
853
+ } = n, S = o === void 0 ? "Select folder" : o, R = l === void 0 ? "" : l, A = c === void 0 ? null : c;
854
+ let P;
855
+ e[0] !== a ? (P = a === void 0 ? [] : a, e[0] = a, e[1] = P) : P = e[1];
856
+ const b = P, $ = d === void 0 ? !1 : d, w = u === void 0 ? "" : u, T = f === void 0 ? !1 : f, [C, y] = fe("");
857
+ let k;
858
+ e[2] !== b ? (k = new Set(b), e[2] = b, e[3] = k) : k = e[3];
859
+ const O = k, I = Vo(i, C), _ = R || "Home";
860
+ let E, x;
861
+ e[4] !== t || e[5] !== _ ? (x = () => {
862
+ !t || !_ || y("");
863
+ }, E = [t, _], e[4] = t, e[5] = _, e[6] = E, e[7] = x) : (E = e[6], x = e[7]), me(x, E);
864
+ const L = X, N = !0, Q = !0, W = !1;
865
+ let M;
866
+ e[8] !== h ? (M = (_e) => !_e.open && h(), e[8] = h, e[9] = M) : M = e[9];
867
+ let z;
868
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ s(X.Backdrop, {}), e[10] = z) : z = e[10];
869
+ const U = X, G = X;
1065
870
  let V;
1066
- e[11] !== b ? (V = /* @__PURE__ */ s(F, { textStyle: "heading/M", children: b }), e[11] = b, e[12] = V) : V = e[12];
1067
- let U;
1068
- e[13] !== r ? (U = r ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = U) : U = e[14];
1069
- let X;
1070
- e[15] !== V || e[16] !== U ? (X = /* @__PURE__ */ s(Z.Header, { children: /* @__PURE__ */ y(Q, { gap: "xs", children: [
871
+ e[11] !== S ? (V = /* @__PURE__ */ s(F, { textStyle: "heading/M", children: S }), e[11] = S, e[12] = V) : V = e[12];
872
+ let j;
873
+ e[13] !== r ? (j = r ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[13] = r, e[14] = j) : j = e[14];
874
+ let K;
875
+ e[15] !== V || e[16] !== j ? (K = /* @__PURE__ */ s(X.Header, { children: /* @__PURE__ */ D(ne, { gap: "xs", children: [
1071
876
  V,
1072
- U
1073
- ] }) }), e[15] = V, e[16] = U, e[17] = X) : X = e[17];
1074
- const se = Z, J = Q, ee = "md";
1075
- let re;
1076
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ s(zn, { size: 16 }), e[18] = re) : re = e[18];
1077
- let te;
1078
- e[19] !== m ? (te = /* @__PURE__ */ s(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: re }), e[19] = m, e[20] = te) : te = e[20];
1079
- const le = !k || k === "/";
1080
- let ne;
1081
- e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(Nn, { size: 16 }), e[21] = ne) : ne = e[21];
1082
- let Y;
1083
- e[22] !== g || e[23] !== le ? (Y = /* @__PURE__ */ s(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: le, children: ne }), e[22] = g, e[23] = le, e[24] = Y) : Y = e[24];
1084
- let ie;
1085
- e[25] !== z ? (ie = /* @__PURE__ */ s(F, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: z }), e[25] = z, e[26] = ie) : ie = e[26];
877
+ j
878
+ ] }) }), e[15] = V, e[16] = j, e[17] = K) : K = e[17];
879
+ const le = X, Y = ne, Z = "md";
1086
880
  let oe;
1087
- e[27] !== te || e[28] !== Y || e[29] !== ie ? (oe = /* @__PURE__ */ y(Q, { direction: "row", gap: "sm", align: "center", children: [
1088
- te,
1089
- Y,
881
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ s(zn, { size: 16 }), e[18] = oe) : oe = e[18];
882
+ let J;
883
+ e[19] !== m ? (J = /* @__PURE__ */ s(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: m, children: oe }), e[19] = m, e[20] = J) : J = e[20];
884
+ const re = !R || R === "/";
885
+ let ee;
886
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ s(Nn, { size: 16 }), e[21] = ee) : ee = e[21];
887
+ let q;
888
+ e[22] !== g || e[23] !== re ? (q = /* @__PURE__ */ s(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: g, disabled: re, children: ee }), e[22] = g, e[23] = re, e[24] = q) : q = e[24];
889
+ let ie;
890
+ e[25] !== _ ? (ie = /* @__PURE__ */ s(F, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: _ }), e[25] = _, e[26] = ie) : ie = e[26];
891
+ let te;
892
+ e[27] !== J || e[28] !== q || e[29] !== ie ? (te = /* @__PURE__ */ D(ne, { direction: "row", gap: "sm", align: "center", children: [
893
+ J,
894
+ q,
1090
895
  ie
1091
- ] }), e[27] = te, e[28] = Y, e[29] = ie, e[30] = oe) : oe = e[30];
1092
- const he = Q, Ae = "0", xe = "1px", ve = "md", ye = "border.subtle", Re = "hidden";
1093
- let M;
1094
- e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ s(qt, { size: 14 }), e[31] = M) : M = e[31];
896
+ ] }), e[27] = J, e[28] = q, e[29] = ie, e[30] = te) : te = e[30];
897
+ const he = ne, Ae = "0", xe = "1px", ve = "md", ye = "border.subtle", Pe = "hidden";
898
+ let H;
899
+ e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ s(jt, { size: 14 }), e[31] = H) : H = e[31];
1095
900
  let be;
1096
- e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = (ze) => C(ze.target.value), e[32] = be) : be = e[32];
901
+ e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = (_e) => y(_e.target.value), e[32] = be) : be = e[32];
1097
902
  let Ce;
1098
- e[33] !== w ? (Ce = /* @__PURE__ */ s(Gt, { startElement: M, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Vt, { mx: "xs", value: w, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: be }) }), e[33] = w, e[34] = Ce) : Ce = e[34];
1099
- const we = $ ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : I ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: I }) : T.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(tt, { maxHeight: "320px", contentProps: {
903
+ e[33] !== C ? (Ce = /* @__PURE__ */ s(Ht, { startElement: H, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Mt, { mx: "xs", value: C, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: be }) }), e[33] = C, e[34] = Ce) : Ce = e[34];
904
+ const we = $ ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : w ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: w }) : I.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(et, { maxHeight: "320px", contentProps: {
1100
905
  padding: "sm"
1101
- }, children: /* @__PURE__ */ s(Q, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Yo, children: T.map((ze) => /* @__PURE__ */ s(Xo, { entry: ze, selectedPath: A, selectedPathSet: L, onEntryClick: x }, ze.path)) }) });
906
+ }, children: /* @__PURE__ */ s(ne, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: jo, children: I.map((_e) => /* @__PURE__ */ s(Go, { entry: _e, selectedPath: A, selectedPathSet: O, onEntryClick: v }, _e.path)) }) });
1102
907
  let Se;
1103
- e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */ y(he, { gap: Ae, borderWidth: xe, borderRadius: ve, borderColor: ye, overflow: Re, children: [
908
+ e[35] !== he || e[36] !== Ce || e[37] !== we ? (Se = /* @__PURE__ */ D(he, { gap: Ae, borderWidth: xe, borderRadius: ve, borderColor: ye, overflow: Pe, children: [
1104
909
  Ce,
1105
910
  we
1106
911
  ] }), e[35] = he, e[36] = Ce, e[37] = we, e[38] = Se) : Se = e[38];
1107
- let ke;
1108
- e[39] !== J || e[40] !== oe || e[41] !== Se ? (ke = /* @__PURE__ */ y(J, { gap: ee, children: [
1109
- oe,
912
+ let De;
913
+ e[39] !== Y || e[40] !== te || e[41] !== Se ? (De = /* @__PURE__ */ D(Y, { gap: Z, children: [
914
+ te,
1110
915
  Se
1111
- ] }), e[39] = J, e[40] = oe, e[41] = Se, e[42] = ke) : ke = e[42];
916
+ ] }), e[39] = Y, e[40] = te, e[41] = Se, e[42] = De) : De = e[42];
917
+ let Re;
918
+ e[43] !== le.Body || e[44] !== De ? (Re = /* @__PURE__ */ s(le.Body, { children: De }), e[43] = le.Body, e[44] = De, e[45] = Re) : Re = e[45];
1112
919
  let $e;
1113
- e[43] !== se.Body || e[44] !== ke ? ($e = /* @__PURE__ */ s(se.Body, { children: ke }), e[43] = se.Body, e[44] = ke, e[45] = $e) : $e = e[45];
920
+ e[46] !== h ? ($e = /* @__PURE__ */ s(ue, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = $e) : $e = e[47];
1114
921
  let Ee;
1115
- e[46] !== h ? (Ee = /* @__PURE__ */ s(ue, { variant: "outline", onClick: h, children: "Cancel" }), e[46] = h, e[47] = Ee) : Ee = e[47];
1116
- let De;
1117
- e[48] !== P || e[49] !== p ? (De = /* @__PURE__ */ s(ue, { onClick: p, disabled: P, children: "Select repository" }), e[48] = P, e[49] = p, e[50] = De) : De = e[50];
1118
- let Le;
1119
- e[51] !== Ee || e[52] !== De ? (Le = /* @__PURE__ */ s(Z.Footer, { children: /* @__PURE__ */ y(Q, { direction: "row", gap: "sm", children: [
1120
- Ee,
1121
- De
1122
- ] }) }), e[51] = Ee, e[52] = De, e[53] = Le) : Le = e[53];
1123
- let Oe;
1124
- e[54] !== j.Content || e[55] !== X || e[56] !== $e || e[57] !== Le ? (Oe = /* @__PURE__ */ y(j.Content, { children: [
1125
- X,
922
+ e[48] !== T || e[49] !== p ? (Ee = /* @__PURE__ */ s(ue, { onClick: p, disabled: T, children: "Select repository" }), e[48] = T, e[49] = p, e[50] = Ee) : Ee = e[50];
923
+ let ke;
924
+ e[51] !== $e || e[52] !== Ee ? (ke = /* @__PURE__ */ s(X.Footer, { children: /* @__PURE__ */ D(ne, { direction: "row", gap: "sm", children: [
1126
925
  $e,
926
+ Ee
927
+ ] }) }), e[51] = $e, e[52] = Ee, e[53] = ke) : ke = e[53];
928
+ let Oe;
929
+ e[54] !== G.Content || e[55] !== K || e[56] !== Re || e[57] !== ke ? (Oe = /* @__PURE__ */ D(G.Content, { children: [
930
+ K,
931
+ Re,
932
+ ke
933
+ ] }), e[54] = G.Content, e[55] = K, e[56] = Re, e[57] = ke, e[58] = Oe) : Oe = e[58];
934
+ let Le;
935
+ e[59] !== U.Positioner || e[60] !== Oe ? (Le = /* @__PURE__ */ s(U.Positioner, { children: Oe }), e[59] = U.Positioner, e[60] = Oe, e[61] = Le) : Le = e[61];
936
+ let Ue;
937
+ return e[62] !== t || e[63] !== L.Root || e[64] !== M || e[65] !== z || e[66] !== Le ? (Ue = /* @__PURE__ */ D(L.Root, { lazyMount: N, unmountOnExit: Q, closeOnInteractOutside: W, open: t, onOpenChange: M, children: [
938
+ z,
1127
939
  Le
1128
- ] }), e[54] = j.Content, e[55] = X, e[56] = $e, e[57] = Le, e[58] = Oe) : Oe = e[58];
1129
- let _e;
1130
- e[59] !== q.Positioner || e[60] !== Oe ? (_e = /* @__PURE__ */ s(q.Positioner, { children: Oe }), e[59] = q.Positioner, e[60] = Oe, e[61] = _e) : _e = e[61];
1131
- let qe;
1132
- return e[62] !== t || e[63] !== _.Root || e[64] !== H || e[65] !== N || e[66] !== _e ? (qe = /* @__PURE__ */ y(_.Root, { lazyMount: B, unmountOnExit: K, closeOnInteractOutside: W, open: t, onOpenChange: H, children: [
1133
- N,
1134
- _e
1135
- ] }), e[62] = t, e[63] = _.Root, e[64] = H, e[65] = N, e[66] = _e, e[67] = qe) : qe = e[67], qe;
1136
- }, Ze = {
940
+ ] }), e[62] = t, e[63] = L.Root, e[64] = M, e[65] = z, e[66] = Le, e[67] = Ue) : Ue = e[67], Ue;
941
+ }, Xe = {
1137
942
  alignItems: "center",
1138
943
  display: "inline-flex",
1139
944
  gap: "2xs",
@@ -1152,106 +957,106 @@ const Pi = (o) => {
1152
957
  _focusVisible: {
1153
958
  outline: "none"
1154
959
  }
1155
- }, It = {
1156
- ...Ze,
960
+ }, yt = {
961
+ ...Xe,
1157
962
  color: "fg",
1158
963
  cursor: "default",
1159
964
  textDecoration: "none",
1160
965
  _hover: {
1161
966
  textDecoration: "none"
1162
967
  }
1163
- }, Zo = (o) => !!(o.url || o.onClick), Jo = (o) => {
1164
- const e = O(14), {
968
+ }, Uo = (n) => !!(n.url || n.onClick), Qo = (n) => {
969
+ const e = B(14), {
1165
970
  item: t,
1166
- isCurrent: n,
971
+ isCurrent: o,
1167
972
  linkComponent: r
1168
- } = o;
1169
- if (n && !Zo(t)) {
1170
- let l;
1171
- return e[0] !== t.title ? (l = /* @__PURE__ */ s(pe.CurrentLink, { ...It, children: t.title }), e[0] = t.title, e[1] = l) : l = e[1], l;
973
+ } = n;
974
+ if (o && !Uo(t)) {
975
+ let i;
976
+ return e[0] !== t.title ? (i = /* @__PURE__ */ s(pe.CurrentLink, { ...yt, children: t.title }), e[0] = t.title, e[1] = i) : i = e[1], i;
1172
977
  }
1173
978
  if (t.url && r) {
1174
- let l;
1175
- return e[2] !== r || e[3] !== t.title || e[4] !== t.url ? (l = /* @__PURE__ */ s(pe.Link, { asChild: !0, ...Ze, children: /* @__PURE__ */ s(r, { to: t.url, children: t.title }) }), e[2] = r, e[3] = t.title, e[4] = t.url, e[5] = l) : l = e[5], l;
979
+ let i;
980
+ return e[2] !== r || e[3] !== t.title || e[4] !== t.url ? (i = /* @__PURE__ */ s(pe.Link, { asChild: !0, ...Xe, children: /* @__PURE__ */ s(r, { to: t.url, children: t.title }) }), e[2] = r, e[3] = t.title, e[4] = t.url, e[5] = i) : i = e[5], i;
1176
981
  }
1177
982
  if (t.url) {
1178
- let l;
1179
- return e[6] !== t.title || e[7] !== t.url ? (l = /* @__PURE__ */ s(pe.Link, { href: t.url, ...Ze, children: t.title }), e[6] = t.title, e[7] = t.url, e[8] = l) : l = e[8], l;
983
+ let i;
984
+ return e[6] !== t.title || e[7] !== t.url ? (i = /* @__PURE__ */ s(pe.Link, { href: t.url, ...Xe, children: t.title }), e[6] = t.title, e[7] = t.url, e[8] = i) : i = e[8], i;
1180
985
  }
1181
986
  if (t.onClick) {
1182
- let l;
1183
- return e[9] !== t.onClick || e[10] !== t.title ? (l = /* @__PURE__ */ s(pe.Link, { as: "button", type: "button", onClick: t.onClick, ...Ze, children: t.title }), e[9] = t.onClick, e[10] = t.title, e[11] = l) : l = e[11], l;
987
+ let i;
988
+ return e[9] !== t.onClick || e[10] !== t.title ? (i = /* @__PURE__ */ s(pe.Link, { as: "button", type: "button", onClick: t.onClick, ...Xe, children: t.title }), e[9] = t.onClick, e[10] = t.title, e[11] = i) : i = e[11], i;
1184
989
  }
1185
- let i;
1186
- return e[12] !== t.title ? (i = /* @__PURE__ */ s(pe.Link, { as: "span", ...It, children: t.title }), e[12] = t.title, e[13] = i) : i = e[13], i;
1187
- }, er = (o) => {
1188
- const e = O(6), {
990
+ let l;
991
+ return e[12] !== t.title ? (l = /* @__PURE__ */ s(pe.Link, { as: "span", ...yt, children: t.title }), e[12] = t.title, e[13] = l) : l = e[13], l;
992
+ }, Ko = (n) => {
993
+ const e = B(6), {
1189
994
  item: t
1190
- } = o;
1191
- let n;
1192
- e[0] !== o ? (n = /* @__PURE__ */ s(Jo, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1193
- const r = n;
995
+ } = n;
996
+ let o;
997
+ e[0] !== n ? (o = /* @__PURE__ */ s(Qo, { ...n }), e[0] = n, e[1] = o) : o = e[1];
998
+ const r = o;
1194
999
  if (!t.contextMenuActions?.length)
1195
1000
  return r;
1196
- let i;
1197
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
1198
- placement: "bottom-start"
1199
- }, e[2] = i) : i = e[2];
1200
1001
  let l;
1201
- return e[3] !== r || e[4] !== t.contextMenuActions ? (l = /* @__PURE__ */ s(Yt, { actions: t.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = l) : l = e[5], l;
1202
- }, tr = (o) => {
1203
- const e = O(3), {
1002
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
1003
+ placement: "bottom-start"
1004
+ }, e[2] = l) : l = e[2];
1005
+ let i;
1006
+ return e[3] !== r || e[4] !== t.contextMenuActions ? (i = /* @__PURE__ */ s(qt, { actions: t.contextMenuActions, positioning: l, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = i) : i = e[5], i;
1007
+ }, qo = (n) => {
1008
+ const e = B(3), {
1204
1009
  separator: t
1205
- } = o;
1010
+ } = n;
1206
1011
  if (t === void 0) {
1207
1012
  let r;
1208
1013
  return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0 }), e[0] = r) : r = e[0], r;
1209
1014
  }
1210
- let n;
1211
- return e[1] !== t ? (n = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = n) : n = e[2], n;
1212
- }, Ei = bt.forwardRef(function(e, t) {
1213
- const n = O(21);
1214
- let r, i, l, c, a;
1215
- n[0] !== e ? ({
1015
+ let o;
1016
+ return e[1] !== t ? (o = /* @__PURE__ */ s(pe.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = o) : o = e[2], o;
1017
+ }, Pl = pt.forwardRef(function(e, t) {
1018
+ const o = B(21);
1019
+ let r, l, i, c, a;
1020
+ o[0] !== e ? ({
1216
1021
  separator: c,
1217
1022
  separatorGap: a,
1218
- items: i,
1023
+ items: l,
1219
1024
  linkComponent: r,
1220
- ...l
1221
- } = e, n[0] = e, n[1] = r, n[2] = i, n[3] = l, n[4] = c, n[5] = a) : (r = n[1], i = n[2], l = n[3], c = n[4], a = n[5]);
1025
+ ...i
1026
+ } = e, o[0] = e, o[1] = r, o[2] = l, o[3] = i, o[4] = c, o[5] = a) : (r = o[1], l = o[2], i = o[3], c = o[4], a = o[5]);
1222
1027
  let d;
1223
- if (n[6] !== r || n[7] !== i || n[8] !== c) {
1028
+ if (o[6] !== r || o[7] !== l || o[8] !== c) {
1224
1029
  let h;
1225
- n[10] !== r || n[11] !== i.length || n[12] !== c ? (h = (p, m) => {
1226
- const g = m === i.length - 1;
1227
- return /* @__PURE__ */ y(bt.Fragment, { children: [
1228
- /* @__PURE__ */ s(pe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(er, { item: p, isCurrent: g, linkComponent: r }) }),
1229
- g ? null : /* @__PURE__ */ s(tr, { separator: c })
1030
+ o[10] !== r || o[11] !== l.length || o[12] !== c ? (h = (p, m) => {
1031
+ const g = m === l.length - 1;
1032
+ return /* @__PURE__ */ D(pt.Fragment, { children: [
1033
+ /* @__PURE__ */ s(pe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Ko, { item: p, isCurrent: g, linkComponent: r }) }),
1034
+ g ? null : /* @__PURE__ */ s(qo, { separator: c })
1230
1035
  ] }, m);
1231
- }, n[10] = r, n[11] = i.length, n[12] = c, n[13] = h) : h = n[13], d = i.map(h), n[6] = r, n[7] = i, n[8] = c, n[9] = d;
1036
+ }, o[10] = r, o[11] = l.length, o[12] = c, o[13] = h) : h = o[13], d = l.map(h), o[6] = r, o[7] = l, o[8] = c, o[9] = d;
1232
1037
  } else
1233
- d = n[9];
1038
+ d = o[9];
1234
1039
  let u;
1235
- n[14] !== a || n[15] !== d ? (u = /* @__PURE__ */ s(pe.List, { gap: a, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: d }), n[14] = a, n[15] = d, n[16] = u) : u = n[16];
1040
+ o[14] !== a || o[15] !== d ? (u = /* @__PURE__ */ s(pe.List, { gap: a, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: d }), o[14] = a, o[15] = d, o[16] = u) : u = o[16];
1236
1041
  let f;
1237
- return n[17] !== t || n[18] !== l || n[19] !== u ? (f = /* @__PURE__ */ s(pe.Root, { ref: t, ...l, children: u }), n[17] = t, n[18] = l, n[19] = u, n[20] = f) : f = n[20], f;
1238
- }), nr = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, or = (o) => {
1239
- const e = O(3);
1042
+ return o[17] !== t || o[18] !== i || o[19] !== u ? (f = /* @__PURE__ */ s(pe.Root, { ref: t, ...i, children: u }), o[17] = t, o[18] = i, o[19] = u, o[20] = f) : f = o[20], f;
1043
+ }), Xo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, Yo = (n) => {
1044
+ const e = B(3);
1240
1045
  let t;
1241
1046
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
1242
1047
  backgroundClip: "padding-box",
1243
- backgroundImage: nr,
1048
+ backgroundImage: Xo,
1244
1049
  display: "flex",
1245
1050
  width: "100%"
1246
1051
  }, e[0] = t) : t = e[0];
1247
- let n;
1248
- return e[1] !== o ? (n = /* @__PURE__ */ s(G, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1249
- }, Di = (o) => {
1250
- const e = O(2);
1052
+ let o;
1053
+ return e[1] !== n ? (o = /* @__PURE__ */ s(se, { ...n, css: t }), e[1] = n, e[2] = o) : o = e[2], o;
1054
+ }, Dl = (n) => {
1055
+ const e = B(2);
1251
1056
  let t;
1252
- return e[0] !== o ? (t = /* @__PURE__ */ s(G, { p: "2", children: /* @__PURE__ */ s(F, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
1057
+ return e[0] !== n ? (t = /* @__PURE__ */ s(se, { p: "2", children: /* @__PURE__ */ s(F, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...n }) }), e[0] = n, e[1] = t) : t = e[1], t;
1253
1058
  };
1254
- class Li extends wn {
1059
+ class Rl extends Hn {
1255
1060
  state = {
1256
1061
  error: null
1257
1062
  };
@@ -1272,52 +1077,52 @@ class Li extends wn {
1272
1077
  const {
1273
1078
  children: e,
1274
1079
  fallback: t,
1275
- label: n
1080
+ label: o
1276
1081
  } = this.props, {
1277
1082
  error: r
1278
1083
  } = this.state;
1279
- return r ? t || /* @__PURE__ */ s(rr, { error: r, label: n, onReset: this.handleReset }) : e;
1084
+ return r ? t || /* @__PURE__ */ s(Zo, { error: r, label: o, onReset: this.handleReset }) : e;
1280
1085
  }
1281
1086
  }
1282
- const rr = (o) => {
1283
- const e = O(12), {
1087
+ const Zo = (n) => {
1088
+ const e = B(12), {
1284
1089
  error: t,
1285
- label: n,
1090
+ label: o,
1286
1091
  onReset: r
1287
- } = o, i = n ?? "Something went wrong";
1288
- let l;
1289
- e[0] !== i ? (l = /* @__PURE__ */ s(F, { textStyle: "paragraph/M/medium", children: i }), e[0] = i, e[1] = l) : l = e[1];
1092
+ } = n, l = o ?? "Something went wrong";
1093
+ let i;
1094
+ e[0] !== l ? (i = /* @__PURE__ */ s(F, { textStyle: "paragraph/M/medium", children: l }), e[0] = l, e[1] = i) : i = e[1];
1290
1095
  const c = t.message || "An unexpected error occurred while rendering this section.";
1291
1096
  let a;
1292
1097
  e[2] !== c ? (a = /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: c }), e[2] = c, e[3] = a) : a = e[3];
1293
1098
  let d;
1294
1099
  e[4] !== r ? (d = r ? /* @__PURE__ */ s(ue, { size: "sm", variant: "primary", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
1295
1100
  let u;
1296
- e[6] !== a || e[7] !== d ? (u = /* @__PURE__ */ y(Q, { gap: "sm", children: [
1101
+ e[6] !== a || e[7] !== d ? (u = /* @__PURE__ */ D(ne, { gap: "sm", children: [
1297
1102
  a,
1298
1103
  d
1299
1104
  ] }), e[6] = a, e[7] = d, e[8] = u) : u = e[8];
1300
1105
  let f;
1301
- return e[9] !== l || e[10] !== u ? (f = /* @__PURE__ */ s(or, { height: "100%", width: "100%", children: /* @__PURE__ */ s(bn, { children: /* @__PURE__ */ s(ht, { status: "error", title: l, children: u }) }) }), e[9] = l, e[10] = u, e[11] = f) : f = e[11], f;
1302
- }, lr = (o) => !!o && o !== "circle", ir = (o) => {
1303
- const e = O(18);
1304
- let t, n, r, i, l;
1305
- e[0] !== o ? ({
1106
+ return e[9] !== i || e[10] !== u ? (f = /* @__PURE__ */ s(Yo, { height: "100%", width: "100%", children: /* @__PURE__ */ s(mn, { children: /* @__PURE__ */ s(dt, { status: "error", title: i, children: u }) }) }), e[9] = i, e[10] = u, e[11] = f) : f = e[11], f;
1107
+ }, Jo = (n) => !!n && n !== "circle", er = (n) => {
1108
+ const e = B(18);
1109
+ let t, o, r, l, i;
1110
+ e[0] !== n ? ({
1306
1111
  color: t,
1307
- icon: n,
1112
+ icon: o,
1308
1113
  iconOptions: r,
1309
- showIcon: l,
1310
- ...i
1311
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5]);
1312
- const c = l === void 0 ? !0 : l;
1114
+ showIcon: i,
1115
+ ...l
1116
+ } = n, e[0] = n, e[1] = t, e[2] = o, e[3] = r, e[4] = l, e[5] = i) : (t = e[1], o = e[2], r = e[3], l = e[4], i = e[5]);
1117
+ const c = i === void 0 ? !0 : i;
1313
1118
  let a;
1314
- e[6] !== n || e[7] !== r ? (a = Gn(n, r), e[6] = n, e[7] = r, e[8] = a) : a = e[8];
1119
+ e[6] !== o || e[7] !== r ? (a = Qn(o, r), e[6] = o, e[7] = r, e[8] = a) : a = e[8];
1315
1120
  const d = a, u = `${t}.500/15`;
1316
1121
  let f;
1317
- e[9] !== d || e[10] !== t || e[11] !== n || e[12] !== c ? (f = c && lr(n) ? /* @__PURE__ */ s(ce, { as: d, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(G, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = d, e[10] = t, e[11] = n, e[12] = c, e[13] = f) : f = e[13];
1122
+ e[9] !== d || e[10] !== t || e[11] !== o || e[12] !== c ? (f = c && Jo(o) ? /* @__PURE__ */ s(ae, { as: d, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(se, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = d, e[10] = t, e[11] = o, e[12] = c, e[13] = f) : f = e[13];
1318
1123
  let h;
1319
- return e[14] !== i || e[15] !== u || e[16] !== f ? (h = /* @__PURE__ */ s(Sn, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: u, ...i, children: f }), e[14] = i, e[15] = u, e[16] = f, e[17] = h) : h = e[17], h;
1320
- }, sr = Pe("button", {
1124
+ return e[14] !== l || e[15] !== u || e[16] !== f ? (h = /* @__PURE__ */ s(pn, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: u, ...l, children: f }), e[14] = l, e[15] = u, e[16] = f, e[17] = h) : h = e[17], h;
1125
+ }, tr = Te("button", {
1321
1126
  base: {
1322
1127
  display: "inline-flex",
1323
1128
  borderRadius: "compact",
@@ -1328,7 +1133,7 @@ const rr = (o) => {
1328
1133
  opacity: 0.5
1329
1134
  }
1330
1135
  }
1331
- }), ar = Pe("button", {
1136
+ }), nr = Te("button", {
1332
1137
  base: {
1333
1138
  boxSize: "tag-color-dot",
1334
1139
  borderRadius: "full",
@@ -1341,7 +1146,7 @@ const rr = (o) => {
1341
1146
  outlineColor: "fg"
1342
1147
  }
1343
1148
  }
1344
- }), cr = Pe("button", {
1149
+ }), or = Te("button", {
1345
1150
  base: {
1346
1151
  display: "inline-flex",
1347
1152
  alignItems: "center",
@@ -1354,135 +1159,135 @@ const rr = (o) => {
1354
1159
  bg: "bg.hover"
1355
1160
  }
1356
1161
  }
1357
- }), dr = (o) => {
1358
- const e = O(39), {
1162
+ }), rr = (n) => {
1163
+ const e = B(39), {
1359
1164
  color: t,
1360
- colorOptions: n,
1165
+ colorOptions: o,
1361
1166
  icon: r,
1362
- iconOptions: i,
1363
- onColorChange: l,
1167
+ iconOptions: l,
1168
+ onColorChange: i,
1364
1169
  onIconChange: c,
1365
1170
  disabled: a,
1366
1171
  showIcons: d,
1367
1172
  colorLabel: u,
1368
1173
  iconLabel: f,
1369
1174
  "aria-label": h
1370
- } = o, p = n === void 0 ? Un : n, m = i === void 0 ? jn : i, g = d === void 0 ? !0 : d, x = u === void 0 ? "Color" : u, b = f === void 0 ? "Icon" : f, k = h === void 0 ? "Pick color and icon" : h, A = r === "circle" ? null : r ?? null;
1371
- let R;
1372
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
1175
+ } = n, p = o === void 0 ? qn : o, m = l === void 0 ? Kn : l, g = d === void 0 ? !0 : d, v = u === void 0 ? "Color" : u, S = f === void 0 ? "Icon" : f, R = h === void 0 ? "Pick color and icon" : h, A = r === "circle" ? null : r ?? null;
1176
+ let P;
1177
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
1373
1178
  placement: "bottom-start"
1374
- }, e[0] = R) : R = e[0];
1375
- let S;
1376
- e[1] !== t || e[2] !== r || e[3] !== m || e[4] !== g ? (S = /* @__PURE__ */ s(ir, { color: t, icon: r, iconOptions: m, showIcon: g }), e[1] = t, e[2] = r, e[3] = m, e[4] = g, e[5] = S) : S = e[5];
1179
+ }, e[0] = P) : P = e[0];
1180
+ let b;
1181
+ e[1] !== t || e[2] !== r || e[3] !== m || e[4] !== g ? (b = /* @__PURE__ */ s(er, { color: t, icon: r, iconOptions: m, showIcon: g }), e[1] = t, e[2] = r, e[3] = m, e[4] = g, e[5] = b) : b = e[5];
1377
1182
  let $;
1378
- e[6] !== k || e[7] !== a || e[8] !== S ? ($ = /* @__PURE__ */ s(Xe.Trigger, { asChild: !0, children: /* @__PURE__ */ s(sr, { type: "button", disabled: a, "aria-label": k, children: S }) }), e[6] = k, e[7] = a, e[8] = S, e[9] = $) : $ = e[9];
1379
- const I = g ? "tag-picker" : "tag-picker-color-only";
1380
- let P;
1381
- e[10] !== x ? (P = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: x }), e[10] = x, e[11] = P) : P = e[11];
1382
- const w = `repeat(${g ? 10 : 5}, 1fr)`;
1383
- let C;
1384
- if (e[12] !== t || e[13] !== p || e[14] !== l) {
1385
- let v;
1386
- e[16] !== t || e[17] !== l ? (v = (_) => /* @__PURE__ */ s(ar, { type: "button", bg: `${_}.500`, "aria-label": _, "aria-pressed": _ === t, "data-selected": _ === t ? "" : void 0, onClick: () => l(_) }, _), e[16] = t, e[17] = l, e[18] = v) : v = e[18], C = p.map(v), e[12] = t, e[13] = p, e[14] = l, e[15] = C;
1183
+ e[6] !== R || e[7] !== a || e[8] !== b ? ($ = /* @__PURE__ */ s(Ke.Trigger, { asChild: !0, children: /* @__PURE__ */ s(tr, { type: "button", disabled: a, "aria-label": R, children: b }) }), e[6] = R, e[7] = a, e[8] = b, e[9] = $) : $ = e[9];
1184
+ const w = g ? "tag-picker" : "tag-picker-color-only";
1185
+ let T;
1186
+ e[10] !== v ? (T = /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: v }), e[10] = v, e[11] = T) : T = e[11];
1187
+ const C = `repeat(${g ? 10 : 5}, 1fr)`;
1188
+ let y;
1189
+ if (e[12] !== t || e[13] !== p || e[14] !== i) {
1190
+ let x;
1191
+ e[16] !== t || e[17] !== i ? (x = (L) => /* @__PURE__ */ s(nr, { type: "button", bg: `${L}.500`, "aria-label": L, "aria-pressed": L === t, "data-selected": L === t ? "" : void 0, onClick: () => i(L) }, L), e[16] = t, e[17] = i, e[18] = x) : x = e[18], y = p.map(x), e[12] = t, e[13] = p, e[14] = i, e[15] = y;
1387
1192
  } else
1388
- C = e[15];
1389
- let D;
1390
- e[19] !== w || e[20] !== C ? (D = /* @__PURE__ */ s(gt, { templateColumns: w, gap: "2xs", justifyItems: "center", children: C }), e[19] = w, e[20] = C, e[21] = D) : D = e[21];
1391
- let L;
1392
- e[22] !== t || e[23] !== b || e[24] !== m || e[25] !== c || e[26] !== A || e[27] !== g ? (L = g ? /* @__PURE__ */ y(Me, { children: [
1393
- /* @__PURE__ */ s(G, { borderTop: "subtle" }),
1394
- /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: b }),
1395
- /* @__PURE__ */ s(gt, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((v) => {
1396
- const _ = v.value === A;
1397
- return /* @__PURE__ */ s(cr, { type: "button", color: _ ? `${t}.500` : void 0, bg: _ ? `${t}.500/15` : void 0, _hover: _ ? {
1193
+ y = e[15];
1194
+ let k;
1195
+ e[19] !== C || e[20] !== y ? (k = /* @__PURE__ */ s(ht, { templateColumns: C, gap: "2xs", justifyItems: "center", children: y }), e[19] = C, e[20] = y, e[21] = k) : k = e[21];
1196
+ let O;
1197
+ e[22] !== t || e[23] !== S || e[24] !== m || e[25] !== c || e[26] !== A || e[27] !== g ? (O = g ? /* @__PURE__ */ D(Ze, { children: [
1198
+ /* @__PURE__ */ s(se, { borderTop: "subtle" }),
1199
+ /* @__PURE__ */ s(F, { textStyle: "label/S/medium", color: "fg.muted", children: S }),
1200
+ /* @__PURE__ */ s(ht, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((x) => {
1201
+ const L = x.value === A;
1202
+ return /* @__PURE__ */ s(or, { type: "button", color: L ? `${t}.500` : void 0, bg: L ? `${t}.500/15` : void 0, _hover: L ? {
1398
1203
  bg: `${t}.500/15`
1399
- } : void 0, "aria-label": v.label, "aria-pressed": _, onClick: () => c?.(v.value), children: /* @__PURE__ */ s(ce, { as: v.icon, boxSize: "icon-xs" }) }, v.value ?? "none");
1204
+ } : void 0, "aria-label": x.label, "aria-pressed": L, onClick: () => c?.(x.value), children: /* @__PURE__ */ s(ae, { as: x.icon, boxSize: "icon-xs" }) }, x.value ?? "none");
1400
1205
  }) })
1401
- ] }) : null, e[22] = t, e[23] = b, e[24] = m, e[25] = c, e[26] = A, e[27] = g, e[28] = L) : L = e[28];
1402
- let T;
1403
- e[29] !== P || e[30] !== D || e[31] !== L ? (T = /* @__PURE__ */ y(Q, { gap: "compact", p: "sm", children: [
1404
- P,
1405
- D,
1406
- L
1407
- ] }), e[29] = P, e[30] = D, e[31] = L, e[32] = T) : T = e[32];
1408
- let z;
1409
- e[33] !== T || e[34] !== I ? (z = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Xe.Positioner, { children: /* @__PURE__ */ s(Xe.Content, { width: I, bg: "bg.elevated", children: T }) }) }), e[33] = T, e[34] = I, e[35] = z) : z = e[35];
1206
+ ] }) : null, e[22] = t, e[23] = S, e[24] = m, e[25] = c, e[26] = A, e[27] = g, e[28] = O) : O = e[28];
1207
+ let I;
1208
+ e[29] !== T || e[30] !== k || e[31] !== O ? (I = /* @__PURE__ */ D(ne, { gap: "compact", p: "sm", children: [
1209
+ T,
1210
+ k,
1211
+ O
1212
+ ] }), e[29] = T, e[30] = k, e[31] = O, e[32] = I) : I = e[32];
1213
+ let _;
1214
+ e[33] !== I || e[34] !== w ? (_ = /* @__PURE__ */ s(Ye, { children: /* @__PURE__ */ s(Ke.Positioner, { children: /* @__PURE__ */ s(Ke.Content, { width: w, bg: "bg.elevated", children: I }) }) }), e[33] = I, e[34] = w, e[35] = _) : _ = e[35];
1410
1215
  let E;
1411
- return e[36] !== z || e[37] !== $ ? (E = /* @__PURE__ */ y(Xe.Root, { positioning: R, children: [
1216
+ return e[36] !== _ || e[37] !== $ ? (E = /* @__PURE__ */ D(Ke.Root, { positioning: P, children: [
1412
1217
  $,
1413
- z
1414
- ] }), e[36] = z, e[37] = $, e[38] = E) : E = e[38], E;
1415
- }, ur = (o) => {
1416
- const e = O(6);
1417
- let t, n;
1418
- e[0] !== o ? ({
1218
+ _
1219
+ ] }), e[36] = _, e[37] = $, e[38] = E) : E = e[38], E;
1220
+ }, ir = (n) => {
1221
+ const e = B(6);
1222
+ let t, o;
1223
+ e[0] !== n ? ({
1419
1224
  children: t,
1420
- ...n
1421
- } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1225
+ ...o
1226
+ } = n, e[0] = n, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
1422
1227
  let r;
1423
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(G, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1424
- }, fr = (o) => {
1425
- const e = O(6);
1426
- let t, n;
1427
- e[0] !== o ? ({
1228
+ return e[3] !== t || e[4] !== o ? (r = /* @__PURE__ */ s(se, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...o, children: t }), e[3] = t, e[4] = o, e[5] = r) : r = e[5], r;
1229
+ }, lr = (n) => {
1230
+ const e = B(6);
1231
+ let t, o;
1232
+ e[0] !== n ? ({
1428
1233
  children: t,
1429
- ...n
1430
- } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1234
+ ...o
1235
+ } = n, e[0] = n, e[1] = t, e[2] = o) : (t = e[1], o = e[2]);
1431
1236
  let r;
1432
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(G, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1433
- }, Oi = (o) => {
1434
- const e = O(30), {
1237
+ return e[3] !== t || e[4] !== o ? (r = /* @__PURE__ */ s(se, { p: "md", ...o, children: t }), e[3] = t, e[4] = o, e[5] = r) : r = e[5], r;
1238
+ }, $l = (n) => {
1239
+ const e = B(30), {
1435
1240
  icon: t,
1436
- name: n,
1241
+ name: o,
1437
1242
  description: r,
1438
- id: i,
1439
- version: l,
1243
+ id: l,
1244
+ version: i,
1440
1245
  category: c,
1441
1246
  active: a,
1442
1247
  actionLabel: d
1443
- } = o, u = a === void 0 ? !1 : a;
1248
+ } = n, u = a === void 0 ? !1 : a;
1444
1249
  let f;
1445
- e[0] !== t ? (f = /* @__PURE__ */ s(ce, { boxSize: "1em", fontSize: "2xl", flexShrink: "0", color: "fg.muted", children: t }), e[0] = t, e[1] = f) : f = e[1];
1250
+ e[0] !== t ? (f = /* @__PURE__ */ s(ae, { boxSize: "1em", fontSize: "2xl", flexShrink: "0", color: "fg.muted", children: t }), e[0] = t, e[1] = f) : f = e[1];
1446
1251
  let h;
1447
- e[2] !== n ? (h = /* @__PURE__ */ s(F, { textStyle: "sm", fontWeight: "semibold", children: n }), e[2] = n, e[3] = h) : h = e[3];
1252
+ e[2] !== o ? (h = /* @__PURE__ */ s(F, { textStyle: "sm", fontWeight: "semibold", children: o }), e[2] = o, e[3] = h) : h = e[3];
1448
1253
  let p;
1449
- e[4] !== i ? (p = /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: i }), e[4] = i, e[5] = p) : p = e[5];
1254
+ e[4] !== l ? (p = /* @__PURE__ */ s(Ie, { size: "sm", variant: "outline", children: l }), e[4] = l, e[5] = p) : p = e[5];
1450
1255
  let m;
1451
- e[6] !== l ? (m = l && /* @__PURE__ */ y(Te, { size: "sm", variant: "outline", children: [
1256
+ e[6] !== i ? (m = i && /* @__PURE__ */ D(Ie, { size: "sm", variant: "outline", children: [
1452
1257
  "v",
1453
- l
1454
- ] }), e[6] = l, e[7] = m) : m = e[7];
1258
+ i
1259
+ ] }), e[6] = i, e[7] = m) : m = e[7];
1455
1260
  let g;
1456
- e[8] !== c ? (g = c && /* @__PURE__ */ s(Te, { size: "sm", variant: "outline", children: c }), e[8] = c, e[9] = g) : g = e[9];
1457
- let x;
1458
- e[10] !== h || e[11] !== p || e[12] !== m || e[13] !== g ? (x = /* @__PURE__ */ y(ae, { gap: "2", flexWrap: "wrap", children: [
1261
+ e[8] !== c ? (g = c && /* @__PURE__ */ s(Ie, { size: "sm", variant: "outline", children: c }), e[8] = c, e[9] = g) : g = e[9];
1262
+ let v;
1263
+ e[10] !== h || e[11] !== p || e[12] !== m || e[13] !== g ? (v = /* @__PURE__ */ D(de, { gap: "2", flexWrap: "wrap", children: [
1459
1264
  h,
1460
1265
  p,
1461
1266
  m,
1462
1267
  g
1463
- ] }), e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = x) : x = e[14];
1464
- let b;
1465
- e[15] !== r ? (b = /* @__PURE__ */ s(F, { color: "fg.muted", children: r }), e[15] = r, e[16] = b) : b = e[16];
1466
- let k;
1467
- e[17] !== x || e[18] !== b ? (k = /* @__PURE__ */ s(G, { flex: "1", minW: "0", children: /* @__PURE__ */ y(Q, { gap: "1", children: [
1468
- x,
1469
- b
1470
- ] }) }), e[17] = x, e[18] = b, e[19] = k) : k = e[19];
1471
- let A;
1472
- e[20] !== u ? (A = u && /* @__PURE__ */ s(ce, { color: "fg.success", children: /* @__PURE__ */ s(et, {}) }), e[20] = u, e[21] = A) : A = e[21];
1473
- const R = d ?? (u ? "Active" : "Connect");
1268
+ ] }), e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = v) : v = e[14];
1474
1269
  let S;
1475
- e[22] !== u || e[23] !== R || e[24] !== A ? (S = /* @__PURE__ */ y(ue, { type: "button", disabled: u, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
1270
+ e[15] !== r ? (S = /* @__PURE__ */ s(F, { color: "fg.muted", children: r }), e[15] = r, e[16] = S) : S = e[16];
1271
+ let R;
1272
+ e[17] !== v || e[18] !== S ? (R = /* @__PURE__ */ s(se, { flex: "1", minW: "0", children: /* @__PURE__ */ D(ne, { gap: "1", children: [
1273
+ v,
1274
+ S
1275
+ ] }) }), e[17] = v, e[18] = S, e[19] = R) : R = e[19];
1276
+ let A;
1277
+ e[20] !== u ? (A = u && /* @__PURE__ */ s(ae, { color: "fg.success", children: /* @__PURE__ */ s(Je, {}) }), e[20] = u, e[21] = A) : A = e[21];
1278
+ const P = d ?? (u ? "Active" : "Connect");
1279
+ let b;
1280
+ e[22] !== u || e[23] !== P || e[24] !== A ? (b = /* @__PURE__ */ D(ue, { type: "button", disabled: u, size: "sm", variant: "outline", colorPalette: "gray", bg: "bg", flexShrink: "0", children: [
1476
1281
  A,
1477
- R
1478
- ] }), e[22] = u, e[23] = R, e[24] = A, e[25] = S) : S = e[25];
1282
+ P
1283
+ ] }), e[22] = u, e[23] = P, e[24] = A, e[25] = b) : b = e[25];
1479
1284
  let $;
1480
- return e[26] !== f || e[27] !== S || e[28] !== k ? ($ = /* @__PURE__ */ s(ur, { children: /* @__PURE__ */ s(fr, { children: /* @__PURE__ */ y(ae, { gap: "4", alignItems: "flex-start", children: [
1285
+ return e[26] !== f || e[27] !== b || e[28] !== R ? ($ = /* @__PURE__ */ s(ir, { children: /* @__PURE__ */ s(lr, { children: /* @__PURE__ */ D(de, { gap: "4", alignItems: "flex-start", children: [
1481
1286
  f,
1482
- k,
1483
- S
1484
- ] }) }) }), e[26] = f, e[27] = S, e[28] = k, e[29] = $) : $ = e[29], $;
1485
- }, hr = xn({
1287
+ R,
1288
+ b
1289
+ ] }) }) }), e[26] = f, e[27] = b, e[28] = R, e[29] = $) : $ = e[29], $;
1290
+ }, sr = gn({
1486
1291
  className: "ps-segmented-control",
1487
1292
  slots: ["root", "item"],
1488
1293
  base: {
@@ -1551,166 +1356,157 @@ const rr = (o) => {
1551
1356
  size: "sm"
1552
1357
  }
1553
1358
  }), {
1554
- withProvider: mr,
1555
- withContext: pr
1556
- } = ft({
1557
- recipe: hr
1558
- }), gr = mr("div", "root"), br = pr("button", "item"), _i = (o) => {
1559
- const e = O(20);
1560
- let t, n, r, i, l, c;
1561
- e[0] !== o ? ({
1562
- options: i,
1359
+ withProvider: ar,
1360
+ withContext: cr
1361
+ } = ct({
1362
+ recipe: sr
1363
+ }), dr = ar("div", "root"), ur = cr("button", "item"), El = (n) => {
1364
+ const e = B(20);
1365
+ let t, o, r, l, i, c;
1366
+ e[0] !== n ? ({
1367
+ options: l,
1563
1368
  value: c,
1564
1369
  onValueChange: r,
1565
- disabled: n,
1370
+ disabled: o,
1566
1371
  "aria-label": t,
1567
- ...l
1568
- } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = c) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], c = e[6]);
1372
+ ...i
1373
+ } = n, e[0] = n, e[1] = t, e[2] = o, e[3] = r, e[4] = l, e[5] = i, e[6] = c) : (t = e[1], o = e[2], r = e[3], l = e[4], i = e[5], c = e[6]);
1569
1374
  let a;
1570
- if (e[7] !== n || e[8] !== r || e[9] !== i || e[10] !== c) {
1375
+ if (e[7] !== o || e[8] !== r || e[9] !== l || e[10] !== c) {
1571
1376
  let u;
1572
- e[12] !== n || e[13] !== r || e[14] !== c ? (u = (f) => {
1377
+ e[12] !== o || e[13] !== r || e[14] !== c ? (u = (f) => {
1573
1378
  const h = f.value === c;
1574
- return /* @__PURE__ */ s(br, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1575
- }, e[12] = n, e[13] = r, e[14] = c, e[15] = u) : u = e[15], a = i.map(u), e[7] = n, e[8] = r, e[9] = i, e[10] = c, e[11] = a;
1379
+ return /* @__PURE__ */ s(ur, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: o, onClick: () => r(f.value), children: f.label }, f.value);
1380
+ }, e[12] = o, e[13] = r, e[14] = c, e[15] = u) : u = e[15], a = l.map(u), e[7] = o, e[8] = r, e[9] = l, e[10] = c, e[11] = a;
1576
1381
  } else
1577
1382
  a = e[11];
1578
1383
  let d;
1579
- return e[16] !== t || e[17] !== l || e[18] !== a ? (d = /* @__PURE__ */ s(gr, { role: "group", "aria-label": t, ...l, children: a }), e[16] = t, e[17] = l, e[18] = a, e[19] = d) : d = e[19], d;
1580
- }, Sr = vn({
1384
+ return e[16] !== t || e[17] !== i || e[18] !== a ? (d = /* @__PURE__ */ s(dr, { role: "group", "aria-label": t, ...i, children: a }), e[16] = t, e[17] = i, e[18] = a, e[19] = d) : d = e[19], d;
1385
+ }, fr = bn({
1581
1386
  placement: "top",
1582
1387
  pauseOnPageIdle: !0,
1583
1388
  duration: 1e4
1584
- }), zi = () => {
1585
- const o = O(1);
1389
+ }), kl = () => {
1390
+ const n = B(1);
1586
1391
  let e;
1587
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(yn, { toaster: Sr, insetInline: {
1392
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Ye, { children: /* @__PURE__ */ s(Sn, { toaster: fr, insetInline: {
1588
1393
  mdDown: "4"
1589
- }, children: xr }) }), o[0] = e) : e = o[0], e;
1394
+ }, children: hr }) }), n[0] = e) : e = n[0], e;
1590
1395
  };
1591
- function xr(o) {
1592
- return /* @__PURE__ */ y(Ne.Root, { width: {
1396
+ function hr(n) {
1397
+ return /* @__PURE__ */ D(ze.Root, { width: {
1593
1398
  md: "sm"
1594
1399
  }, alignItems: "start", borderRadius: "xs", gap: "xs", px: "sm", py: "xs", minH: "auto", children: [
1595
- o.type === "loading" ? /* @__PURE__ */ s(jt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(Ne.Indicator, {}),
1596
- /* @__PURE__ */ y(Q, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1597
- o.title && /* @__PURE__ */ s(Ne.Title, { textStyle: "label/S/medium", children: o.title }),
1598
- o.description && /* @__PURE__ */ s(tt, { maxHeight: "12rem", contentProps: {
1400
+ n.type === "loading" ? /* @__PURE__ */ s(Ft, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ s(ze.Indicator, {}),
1401
+ /* @__PURE__ */ D(ne, { gap: "0", flex: "1", minWidth: "0", maxWidth: "100%", children: [
1402
+ n.title && /* @__PURE__ */ s(ze.Title, { textStyle: "label/S/medium", children: n.title }),
1403
+ n.description && /* @__PURE__ */ s(et, { maxHeight: "12rem", contentProps: {
1599
1404
  paddingEnd: "1"
1600
- }, children: /* @__PURE__ */ s(Ne.Description, { textStyle: "paragraph/S/regular", whiteSpace: "pre-wrap", wordBreak: "break-word", children: o.description }) })
1405
+ }, children: /* @__PURE__ */ s(ze.Description, { textStyle: "paragraph/S/regular", whiteSpace: "pre-wrap", wordBreak: "break-word", children: n.description }) })
1601
1406
  ] }),
1602
- o.action && /* @__PURE__ */ s(Ne.ActionTrigger, { children: o.action.label }),
1603
- /* @__PURE__ */ s(Ne.CloseTrigger, {})
1407
+ n.action && /* @__PURE__ */ s(ze.ActionTrigger, { children: n.action.label }),
1408
+ /* @__PURE__ */ s(ze.CloseTrigger, {})
1604
1409
  ] });
1605
1410
  }
1606
- const Ni = (o) => {
1607
- const e = O(6);
1608
- let t, n;
1609
- e[0] !== o ? ({
1610
- children: t,
1611
- ...n
1612
- } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1613
- let r;
1614
- return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(Q, { gap: "sm", minW: "0", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1615
- }, Tt = {
1411
+ const Ct = {
1616
1412
  open: !0,
1617
1413
  expandedSections: [],
1618
1414
  expandedNodes: [],
1619
1415
  width: null
1620
- }, vr = "pstdio/ui/sidenav", yr = (o) => `${vr}/${o}`, Pt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], At = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), Cr = (o) => ({
1621
- open: o.open,
1622
- expandedSections: o.expandedSections,
1623
- expandedNodes: o.expandedNodes,
1624
- width: o.width
1625
- }), wr = (o) => {
1416
+ }, mr = "pstdio/ui/sidenav", pr = (n) => `${mr}/${n}`, wt = (n, e) => n.includes(e) ? n.filter((t) => t !== e) : [...n, e], It = (n, e, t) => t ? n.includes(e) ? n : [...n, e] : n.filter((o) => o !== e), gr = (n) => ({
1417
+ open: n.open,
1418
+ expandedSections: n.expandedSections,
1419
+ expandedNodes: n.expandedNodes,
1420
+ width: n.width
1421
+ }), br = (n) => {
1626
1422
  const {
1627
1423
  storageKey: e,
1628
1424
  initialState: t
1629
- } = o, n = {
1630
- ...Tt,
1425
+ } = n, o = {
1426
+ ...Ct,
1631
1427
  ...t
1632
1428
  };
1633
- return lt()(ot((r) => ({
1634
- ...n,
1635
- openSidenav: () => r((i) => ({
1636
- ...i,
1429
+ return rt()(nt((r) => ({
1430
+ ...o,
1431
+ openSidenav: () => r((l) => ({
1432
+ ...l,
1637
1433
  open: !0
1638
1434
  })),
1639
- closeSidenav: () => r((i) => ({
1640
- ...i,
1435
+ closeSidenav: () => r((l) => ({
1436
+ ...l,
1641
1437
  open: !1
1642
1438
  })),
1643
- toggleSidenav: () => r((i) => ({
1644
- ...i,
1645
- open: !i.open
1646
- })),
1647
- toggleSection: (i) => r((l) => ({
1439
+ toggleSidenav: () => r((l) => ({
1648
1440
  ...l,
1649
- expandedSections: Pt(l.expandedSections, i)
1441
+ open: !l.open
1650
1442
  })),
1651
- toggleNode: (i) => r((l) => ({
1652
- ...l,
1653
- expandedNodes: Pt(l.expandedNodes, i)
1443
+ toggleSection: (l) => r((i) => ({
1444
+ ...i,
1445
+ expandedSections: wt(i.expandedSections, l)
1654
1446
  })),
1655
- setSectionExpanded: (i, l) => r((c) => ({
1447
+ toggleNode: (l) => r((i) => ({
1448
+ ...i,
1449
+ expandedNodes: wt(i.expandedNodes, l)
1450
+ })),
1451
+ setSectionExpanded: (l, i) => r((c) => ({
1656
1452
  ...c,
1657
- expandedSections: At(c.expandedSections, i, l)
1453
+ expandedSections: It(c.expandedSections, l, i)
1658
1454
  })),
1659
- setNodeExpanded: (i, l) => r((c) => ({
1455
+ setNodeExpanded: (l, i) => r((c) => ({
1660
1456
  ...c,
1661
- expandedNodes: At(c.expandedNodes, i, l)
1457
+ expandedNodes: It(c.expandedNodes, l, i)
1662
1458
  })),
1663
- setWidth: (i) => r((l) => ({
1664
- ...l,
1665
- width: i
1459
+ setWidth: (l) => r((i) => ({
1460
+ ...i,
1461
+ width: l
1666
1462
  })),
1667
- reset: () => r(Tt)
1463
+ reset: () => r(Ct)
1668
1464
  }), {
1669
- name: yr(e),
1670
- storage: rt(Ve),
1671
- partialize: Cr
1465
+ name: pr(e),
1466
+ storage: ot(He),
1467
+ partialize: gr
1672
1468
  }));
1673
- }, Rt = /* @__PURE__ */ new Map(), Ir = (o, e) => {
1674
- const t = Rt.get(o);
1469
+ }, Tt = /* @__PURE__ */ new Map(), Sr = (n, e) => {
1470
+ const t = Tt.get(n);
1675
1471
  if (t)
1676
1472
  return t;
1677
- const n = wr({
1678
- storageKey: o,
1473
+ const o = br({
1474
+ storageKey: n,
1679
1475
  initialState: e
1680
1476
  });
1681
- return Rt.set(o, n), n;
1682
- }, Be = (o, e, t) => {
1683
- const n = O(3);
1477
+ return Tt.set(n, o), o;
1478
+ }, Ne = (n, e, t) => {
1479
+ const o = B(3);
1684
1480
  let r;
1685
- return n[0] !== t || n[1] !== o ? (r = Ir(o, t), n[0] = t, n[1] = o, n[2] = r) : r = n[2], nt(r, e);
1686
- }, Tr = (o) => {
1687
- const e = O(2), {
1481
+ return o[0] !== t || o[1] !== n ? (r = Sr(n, t), o[0] = t, o[1] = n, o[2] = r) : r = o[2], tt(r, e);
1482
+ }, xr = (n) => {
1483
+ const e = B(2), {
1688
1484
  children: t
1689
- } = o;
1485
+ } = n;
1690
1486
  if (!t)
1691
1487
  return null;
1692
- let n;
1693
- return e[0] !== t ? (n = /* @__PURE__ */ s(G, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
1694
- }, Pr = (o) => {
1695
- const e = O(2), {
1488
+ let o;
1489
+ return e[0] !== t ? (o = /* @__PURE__ */ s(se, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = o) : o = e[1], o;
1490
+ }, vr = (n) => {
1491
+ const e = B(2), {
1696
1492
  children: t
1697
- } = o;
1698
- let n;
1699
- return e[0] !== t ? (n = /* @__PURE__ */ s(ae, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: Oo, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(ae, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
1700
- }, Ar = 240, Rr = 200, kr = 480, $r = (o, e, t) => Math.min(Math.max(o, e), t), Er = (o, e = Ar) => {
1701
- if (typeof o == "number") return o;
1702
- if (typeof o == "string") {
1703
- const t = parseInt(o, 10);
1493
+ } = n;
1494
+ let o;
1495
+ return e[0] !== t ? (o = /* @__PURE__ */ s(de, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: Do, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(de, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = o) : o = e[1], o;
1496
+ }, yr = 240, Cr = 200, wr = 480, Ir = (n, e, t) => Math.min(Math.max(n, e), t), Tr = (n, e = yr) => {
1497
+ if (typeof n == "number") return n;
1498
+ if (typeof n == "string") {
1499
+ const t = parseInt(n, 10);
1704
1500
  if (!Number.isNaN(t)) return t;
1705
1501
  }
1706
1502
  return e;
1707
- }, Bi = (o) => {
1708
- const e = O(43), {
1503
+ }, Ol = (n) => {
1504
+ const e = B(43), {
1709
1505
  storageKey: t,
1710
- sections: n,
1506
+ sections: o,
1711
1507
  activeNodeId: r,
1712
- contextActions: i,
1713
- header: l,
1508
+ contextActions: l,
1509
+ header: i,
1714
1510
  footer: c,
1715
1511
  width: a,
1716
1512
  closable: d,
@@ -1720,47 +1516,47 @@ const Ni = (o) => {
1720
1516
  onNavigate: p,
1721
1517
  onOpenChange: m,
1722
1518
  resizable: g,
1723
- defaultWidth: x,
1724
- minWidth: b,
1725
- maxWidth: k,
1519
+ defaultWidth: v,
1520
+ minWidth: S,
1521
+ maxWidth: R,
1726
1522
  virtualize: A
1727
- } = o;
1728
- let R;
1729
- e[0] !== i ? (R = i === void 0 ? [] : i, e[0] = i, e[1] = R) : R = e[1];
1730
- const S = R, $ = d === void 0 ? !0 : d, I = u === void 0 ? "No items available." : u, P = g === void 0 ? !0 : g, w = b === void 0 ? Rr : b, C = k === void 0 ? kr : k, D = A === void 0 ? !1 : A, L = He(null);
1731
- let T;
1732
- e[2] !== x || e[3] !== a ? (T = Er(a, x), e[2] = x, e[3] = a, e[4] = T) : T = e[4];
1733
- const z = T;
1523
+ } = n;
1524
+ let P;
1525
+ e[0] !== l ? (P = l === void 0 ? [] : l, e[0] = l, e[1] = P) : P = e[1];
1526
+ const b = P, $ = d === void 0 ? !0 : d, w = u === void 0 ? "No items available." : u, T = g === void 0 ? !0 : g, C = S === void 0 ? Cr : S, y = R === void 0 ? wr : R, k = A === void 0 ? !1 : A, O = We(null);
1527
+ let I;
1528
+ e[2] !== v || e[3] !== a ? (I = Tr(a, v), e[2] = v, e[3] = a, e[4] = I) : I = e[4];
1529
+ const _ = I;
1734
1530
  let E;
1735
1531
  e[5] !== f ? (E = f ? {
1736
1532
  expandedSections: f
1737
1533
  } : {}, e[5] = f, e[6] = E) : E = e[6];
1738
- let v;
1739
- e[7] !== z || e[8] !== E ? (v = {
1534
+ let x;
1535
+ e[7] !== _ || e[8] !== E ? (x = {
1740
1536
  ...E,
1741
- width: z
1742
- }, e[7] = z, e[8] = E, e[9] = v) : v = e[9];
1743
- const _ = v, B = Be(t, Dr, _), K = Be(t, Lr, _), W = Be(t, Or, _), H = Be(t, _r, _), N = Be(t, zr, _), q = Be(t, Nr, _);
1744
- let j, V;
1745
- e[10] !== m || e[11] !== B ? (j = () => {
1746
- m?.(B);
1747
- }, V = [m, B], e[10] = m, e[11] = B, e[12] = j, e[13] = V) : (j = e[12], V = e[13]), me(j, V);
1748
- const U = K ?? z;
1749
- let X;
1750
- e[14] !== C || e[15] !== w || e[16] !== U ? (X = $r(U, w, C), e[14] = C, e[15] = w, e[16] = U, e[17] = X) : X = e[17];
1751
- const se = X;
1752
- if (!B && $)
1537
+ width: _
1538
+ }, e[7] = _, e[8] = E, e[9] = x) : x = e[9];
1539
+ const L = x, N = Ne(t, Ar, L), Q = Ne(t, Pr, L), W = Ne(t, Dr, L), M = Ne(t, Rr, L), z = Ne(t, $r, L), U = Ne(t, Er, L);
1540
+ let G, V;
1541
+ e[10] !== m || e[11] !== N ? (G = () => {
1542
+ m?.(N);
1543
+ }, V = [m, N], e[10] = m, e[11] = N, e[12] = G, e[13] = V) : (G = e[12], V = e[13]), me(G, V);
1544
+ const j = Q ?? _;
1545
+ let K;
1546
+ e[14] !== y || e[15] !== C || e[16] !== j ? (K = Ir(j, C, y), e[14] = y, e[15] = C, e[16] = j, e[17] = K) : K = e[17];
1547
+ const le = K;
1548
+ if (!N && $)
1753
1549
  return null;
1754
- const J = P ? `${se}px` : a ?? `${z}px`;
1755
- let ee;
1756
- e[18] !== l ? (ee = /* @__PURE__ */ s(Pr, { children: l }), e[18] = l, e[19] = ee) : ee = e[19];
1757
- let re, te;
1758
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
1550
+ const Y = T ? `${le}px` : a ?? `${_}px`;
1551
+ let Z;
1552
+ e[18] !== i ? (Z = /* @__PURE__ */ s(vr, { children: i }), e[18] = i, e[19] = Z) : Z = e[19];
1553
+ let oe, J;
1554
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = {
1759
1555
  display: "block",
1760
1556
  style: {
1761
1557
  overflowX: "hidden"
1762
1558
  }
1763
- }, te = {
1559
+ }, J = {
1764
1560
  style: {
1765
1561
  minWidth: "100%",
1766
1562
  width: "100%",
@@ -1768,228 +1564,228 @@ const Ni = (o) => {
1768
1564
  display: "flex",
1769
1565
  flexDirection: "column"
1770
1566
  }
1771
- }, e[20] = re, e[21] = te) : (re = e[20], te = e[21]);
1772
- let le;
1773
- e[22] !== r || e[23] !== I || e[24] !== H || e[25] !== W || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== q || e[30] !== N || e[31] !== D ? (le = /* @__PURE__ */ s(tt, { flex: "1", mt: "lg", viewportRef: L, viewportProps: re, contentProps: te, children: /* @__PURE__ */ s(G, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: I }) : /* @__PURE__ */ s(Vn, { sections: n, expandedSectionIds: W, expandedNodeIds: H, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: N, onToggleNode: q, virtualize: D, scrollRef: L }) }) }), e[22] = r, e[23] = I, e[24] = H, e[25] = W, e[26] = h, e[27] = p, e[28] = n, e[29] = q, e[30] = N, e[31] = D, e[32] = le) : le = e[32];
1774
- let ne;
1775
- e[33] !== c ? (ne = /* @__PURE__ */ s(Tr, { children: c }), e[33] = c, e[34] = ne) : ne = e[34];
1776
- let Y;
1777
- e[35] !== ee || e[36] !== le || e[37] !== ne || e[38] !== J ? (Y = /* @__PURE__ */ y(de, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: J, minW: J, maxW: J, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
1778
- ee,
1779
- le,
1780
- ne
1781
- ] }), e[35] = ee, e[36] = le, e[37] = ne, e[38] = J, e[39] = Y) : Y = e[39];
1782
- const ie = Y;
1783
- let oe;
1784
- return e[40] !== ie || e[41] !== S ? (oe = /* @__PURE__ */ s(Yt, { actions: S, closeOnSelect: !1, children: ie }), e[40] = ie, e[41] = S, e[42] = oe) : oe = e[42], oe;
1567
+ }, e[20] = oe, e[21] = J) : (oe = e[20], J = e[21]);
1568
+ let re;
1569
+ e[22] !== r || e[23] !== w || e[24] !== M || e[25] !== W || e[26] !== h || e[27] !== p || e[28] !== o || e[29] !== U || e[30] !== z || e[31] !== k ? (re = /* @__PURE__ */ s(et, { flex: "1", mt: "lg", viewportRef: O, viewportProps: oe, contentProps: J, children: /* @__PURE__ */ s(se, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: o.length === 0 ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: w }) : /* @__PURE__ */ s(Un, { sections: o, expandedSectionIds: W, expandedNodeIds: M, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: z, onToggleNode: U, virtualize: k, scrollRef: O }) }) }), e[22] = r, e[23] = w, e[24] = M, e[25] = W, e[26] = h, e[27] = p, e[28] = o, e[29] = U, e[30] = z, e[31] = k, e[32] = re) : re = e[32];
1570
+ let ee;
1571
+ e[33] !== c ? (ee = /* @__PURE__ */ s(xr, { children: c }), e[33] = c, e[34] = ee) : ee = e[34];
1572
+ let q;
1573
+ e[35] !== Z || e[36] !== re || e[37] !== ee || e[38] !== Y ? (q = /* @__PURE__ */ D(ce, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: Y, minW: Y, maxW: Y, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
1574
+ Z,
1575
+ re,
1576
+ ee
1577
+ ] }), e[35] = Z, e[36] = re, e[37] = ee, e[38] = Y, e[39] = q) : q = e[39];
1578
+ const ie = q;
1579
+ let te;
1580
+ return e[40] !== ie || e[41] !== b ? (te = /* @__PURE__ */ s(qt, { actions: b, closeOnSelect: !1, children: ie }), e[40] = ie, e[41] = b, e[42] = te) : te = e[42], te;
1785
1581
  };
1786
- function Dr(o) {
1787
- return o.open;
1582
+ function Ar(n) {
1583
+ return n.open;
1788
1584
  }
1789
- function Lr(o) {
1790
- return o.width;
1585
+ function Pr(n) {
1586
+ return n.width;
1791
1587
  }
1792
- function Or(o) {
1793
- return o.expandedSections;
1588
+ function Dr(n) {
1589
+ return n.expandedSections;
1794
1590
  }
1795
- function _r(o) {
1796
- return o.expandedNodes;
1591
+ function Rr(n) {
1592
+ return n.expandedNodes;
1797
1593
  }
1798
- function zr(o) {
1799
- return o.toggleSection;
1594
+ function $r(n) {
1595
+ return n.toggleSection;
1800
1596
  }
1801
- function Nr(o) {
1802
- return o.toggleNode;
1597
+ function Er(n) {
1598
+ return n.toggleNode;
1803
1599
  }
1804
- const kt = {
1600
+ const At = {
1805
1601
  tabOverrides: {}
1806
- }, Br = "pstdio/ui/tab-visibility", Wr = (o) => `${Br}/${o}`, Hr = (o, e) => o ?? (e ? "hidden" : "shown"), dt = (o, e, t) => {
1602
+ }, kr = "pstdio/ui/tab-visibility", Or = (n) => `${kr}/${n}`, Lr = (n, e) => n ?? (e ? "hidden" : "shown"), st = (n, e, t) => {
1807
1603
  if (t === void 0) {
1808
- if (!(e in o)) return o;
1604
+ if (!(e in n)) return n;
1809
1605
  const {
1810
- [e]: n,
1606
+ [e]: o,
1811
1607
  ...r
1812
- } = o;
1608
+ } = n;
1813
1609
  return r;
1814
1610
  }
1815
- return o[e] === t ? o : {
1816
- ...o,
1611
+ return n[e] === t ? n : {
1612
+ ...n,
1817
1613
  [e]: t
1818
1614
  };
1819
- }, Fr = (o, e, t) => {
1820
- const n = Hr(o[e], t);
1821
- return dt(o, e, n === "hidden" ? "shown" : "hidden");
1822
- }, Mr = (o) => ({
1823
- tabOverrides: o.tabOverrides
1824
- }), Vr = (o) => lt()(ot((e) => ({
1825
- ...kt,
1826
- setTab: (t, n) => e((r) => ({
1615
+ }, _r = (n, e, t) => {
1616
+ const o = Lr(n[e], t);
1617
+ return st(n, e, o === "hidden" ? "shown" : "hidden");
1618
+ }, zr = (n) => ({
1619
+ tabOverrides: n.tabOverrides
1620
+ }), Nr = (n) => rt()(nt((e) => ({
1621
+ ...At,
1622
+ setTab: (t, o) => e((r) => ({
1827
1623
  ...r,
1828
- tabOverrides: dt(r.tabOverrides, t, n)
1624
+ tabOverrides: st(r.tabOverrides, t, o)
1829
1625
  })),
1830
- toggleTab: (t, n) => e((r) => ({
1626
+ toggleTab: (t, o) => e((r) => ({
1831
1627
  ...r,
1832
- tabOverrides: Fr(r.tabOverrides, t, n)
1628
+ tabOverrides: _r(r.tabOverrides, t, o)
1833
1629
  })),
1834
- clearTab: (t) => e((n) => ({
1835
- ...n,
1836
- tabOverrides: dt(n.tabOverrides, t, void 0)
1630
+ clearTab: (t) => e((o) => ({
1631
+ ...o,
1632
+ tabOverrides: st(o.tabOverrides, t, void 0)
1837
1633
  })),
1838
- reset: () => e(kt)
1634
+ reset: () => e(At)
1839
1635
  }), {
1840
- name: Wr(o.storageKey),
1841
- storage: rt(Ve),
1842
- partialize: Mr
1843
- })), $t = /* @__PURE__ */ new Map(), Gr = (o) => {
1844
- const e = $t.get(o);
1636
+ name: Or(n.storageKey),
1637
+ storage: ot(He),
1638
+ partialize: zr
1639
+ })), Pt = /* @__PURE__ */ new Map(), Br = (n) => {
1640
+ const e = Pt.get(n);
1845
1641
  if (e) return e;
1846
- const t = Vr({
1847
- storageKey: o
1642
+ const t = Nr({
1643
+ storageKey: n
1848
1644
  });
1849
- return $t.set(o, t), t;
1850
- }, Wi = (o, e) => {
1851
- const t = O(2);
1852
- let n;
1853
- return t[0] !== o ? (n = Gr(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
1854
- }, jr = (o, e) => typeof o == "string" ? o : e, Ge = (o, e) => o ?? (e ? "hidden" : "shown"), Et = (o) => o.canHide === !0 || o.hiddenByDefault === !0, Ur = (o, e) => Ge(e[o.id], o.hiddenByDefault) === "shown", mt = (o, e) => {
1645
+ return Pt.set(n, t), t;
1646
+ }, Ll = (n, e) => {
1647
+ const t = B(2);
1648
+ let o;
1649
+ return t[0] !== n ? (o = Br(n), t[0] = n, t[1] = o) : o = t[1], tt(o, e);
1650
+ }, Wr = (n, e) => typeof n == "string" ? n : e, Fe = (n, e) => n ?? (e ? "hidden" : "shown"), Dt = (n) => n.canHide === !0 || n.hiddenByDefault === !0, Mr = (n, e) => Fe(e[n.id], n.hiddenByDefault) === "shown", ut = (n, e) => {
1855
1651
  let t = !1;
1856
- const n = [];
1857
- for (const r of o) {
1858
- if (!Ur(r, e)) {
1652
+ const o = [];
1653
+ for (const r of n) {
1654
+ if (!Mr(r, e)) {
1859
1655
  t = !0;
1860
1656
  continue;
1861
1657
  }
1862
1658
  if (r.children && r.children.length > 0) {
1863
- const i = mt(r.children, e);
1864
- if (i !== r.children) {
1865
- t = !0, n.push({
1659
+ const l = ut(r.children, e);
1660
+ if (l !== r.children) {
1661
+ t = !0, o.push({
1866
1662
  ...r,
1867
- children: i
1663
+ children: l
1868
1664
  });
1869
1665
  continue;
1870
1666
  }
1871
1667
  }
1872
- n.push(r);
1668
+ o.push(r);
1873
1669
  }
1874
- return t ? n : o;
1875
- }, Hi = (o, e) => mt(o, e), Fi = (o, e, t) => {
1876
- let n = !1;
1670
+ return t ? o : n;
1671
+ }, _l = (n, e) => ut(n, e), zl = (n, e, t) => {
1672
+ let o = !1;
1877
1673
  const r = [];
1878
- for (const i of o) {
1879
- if (Ge(e[i.id], i.hiddenByDefault) === "hidden") {
1880
- n = !0;
1674
+ for (const l of n) {
1675
+ if (Fe(e[l.id], l.hiddenByDefault) === "hidden") {
1676
+ o = !0;
1881
1677
  continue;
1882
1678
  }
1883
- const l = mt(i.nodes, t);
1884
- if (l.length === 0 && !i.emptyState) {
1885
- n = !0;
1679
+ const i = ut(l.nodes, t);
1680
+ if (i.length === 0 && !l.emptyState) {
1681
+ o = !0;
1886
1682
  continue;
1887
1683
  }
1888
- if (l !== i.nodes) {
1889
- n = !0, r.push({
1890
- ...i,
1891
- nodes: l
1684
+ if (i !== l.nodes) {
1685
+ o = !0, r.push({
1686
+ ...l,
1687
+ nodes: i
1892
1688
  });
1893
1689
  continue;
1894
1690
  }
1895
- r.push(i);
1691
+ r.push(l);
1896
1692
  }
1897
- return n ? r : o;
1898
- }, un = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Qr = (o, e, t, n) => {
1899
- const r = o.hiddenByDefault === !0, i = Ge(e[o.id], r);
1693
+ return o ? r : n;
1694
+ }, an = (n, e) => n === "shown" ? e.visibleIcon : e.hiddenIcon, Hr = (n, e, t, o) => {
1695
+ const r = n.hiddenByDefault === !0, l = Fe(e[n.id], r);
1900
1696
  return {
1901
- key: `section:${o.id}`,
1902
- label: o.label ?? o.id,
1903
- onClick: () => t.onToggleSection(o.id, r),
1904
- endContent: un(i, n)
1697
+ key: `section:${n.id}`,
1698
+ label: n.label ?? n.id,
1699
+ onClick: () => t.onToggleSection(n.id, r),
1700
+ endContent: an(l, o)
1905
1701
  };
1906
- }, qr = (o, e, t, n) => {
1907
- const r = o.hiddenByDefault === !0, i = Ge(e[o.id], r);
1702
+ }, Fr = (n, e, t, o) => {
1703
+ const r = n.hiddenByDefault === !0, l = Fe(e[n.id], r);
1908
1704
  return {
1909
- key: `node:${o.id}`,
1910
- label: jr(o.label, o.id),
1911
- icon: o.icon,
1912
- onClick: () => t.onToggleNode(o.id, r),
1913
- endContent: un(i, n)
1705
+ key: `node:${n.id}`,
1706
+ label: Wr(n.label, n.id),
1707
+ icon: n.icon,
1708
+ onClick: () => t.onToggleNode(n.id, r),
1709
+ endContent: an(l, o)
1914
1710
  };
1915
- }, Mi = (o, e, t, n, r) => {
1916
- const i = [], l = (a) => {
1917
- a.length !== 0 && (i.length > 0 && (a[0] = {
1711
+ }, Nl = (n, e, t, o, r) => {
1712
+ const l = [], i = (a) => {
1713
+ a.length !== 0 && (l.length > 0 && (a[0] = {
1918
1714
  ...a[0],
1919
1715
  separatorBefore: !0
1920
- }), i.push(...a));
1716
+ }), l.push(...a));
1921
1717
  }, c = (a) => {
1922
1718
  const d = [];
1923
1719
  for (const u of a) {
1924
- Et(u) && d.push(Qr(u, e, n, r));
1720
+ Dt(u) && d.push(Hr(u, e, o, r));
1925
1721
  for (const f of u.nodes)
1926
- Et(f) && d.push(qr(f, t, n, r));
1722
+ Dt(f) && d.push(Fr(f, t, o, r));
1927
1723
  }
1928
1724
  return d;
1929
1725
  };
1930
- return l(c(o.headerSections ?? [])), l(c(o.sections)), l(c(o.footerSections ?? [])), i.length === 0 || i.push({
1726
+ return i(c(n.headerSections ?? [])), i(c(n.sections)), i(c(n.footerSections ?? [])), l.length === 0 || l.push({
1931
1727
  key: "__reset-visibility",
1932
1728
  label: "Reset to default",
1933
1729
  icon: r.resetIcon,
1934
1730
  separatorBefore: !0,
1935
- onClick: n.onResetAll
1936
- }), i;
1937
- }, Vi = (o, e, t) => {
1938
- let n = !1;
1731
+ onClick: o.onResetAll
1732
+ }), l;
1733
+ }, Bl = (n, e, t) => {
1734
+ let o = !1;
1939
1735
  const r = [];
1940
- for (const i of o) {
1941
- if (i.closable === !0) {
1942
- r.push(i);
1736
+ for (const l of n) {
1737
+ if (l.closable === !0) {
1738
+ r.push(l);
1943
1739
  continue;
1944
1740
  }
1945
- if (i.pinned === !0 && i.hiddenByDefault === !0) {
1946
- n = !0;
1741
+ if (l.pinned === !0 && l.hiddenByDefault === !0) {
1742
+ o = !0;
1947
1743
  continue;
1948
1744
  }
1949
- if (Ge(e[t(i)], i.hiddenByDefault) === "hidden") {
1950
- n = !0;
1745
+ if (Fe(e[t(l)], l.hiddenByDefault) === "hidden") {
1746
+ o = !0;
1951
1747
  continue;
1952
1748
  }
1953
- r.push(i);
1749
+ r.push(l);
1954
1750
  }
1955
- return n ? r : o;
1956
- }, Gi = (o, e, t, n, r, i) => {
1957
- const l = [];
1751
+ return o ? r : n;
1752
+ }, Wl = (n, e, t, o, r, l) => {
1753
+ const i = [];
1958
1754
  let c = 0;
1959
- for (const a of o) {
1755
+ for (const a of n) {
1960
1756
  if (a.pinned === !0 || a.closable === !0) continue;
1961
1757
  c += 1;
1962
- const d = n(a), u = a.hiddenByDefault === !0, f = Ge(e[d], u);
1963
- l.push({
1758
+ const d = o(a), u = a.hiddenByDefault === !0, f = Fe(e[d], u);
1759
+ i.push({
1964
1760
  key: `tab:${d}`,
1965
1761
  label: a.title ?? a.contributionId,
1966
- icon: i?.(a),
1762
+ icon: l?.(a),
1967
1763
  onClick: () => t.onToggleTab(d, u),
1968
1764
  endContent: f === "shown" ? r.visibleIcon : r.hiddenIcon
1969
1765
  });
1970
1766
  }
1971
- return c === 0 || l.push({
1767
+ return c === 0 || i.push({
1972
1768
  key: "__reset-tabs",
1973
1769
  label: "Reset to default",
1974
1770
  icon: r.resetIcon,
1975
1771
  separatorBefore: !0,
1976
1772
  onClick: t.onResetAll
1977
- }), l;
1773
+ }), i;
1978
1774
  }, {
1979
- withProvider: Kr,
1980
- withContext: st
1981
- } = ft({
1982
- recipe: Jn
1983
- }), Xr = Kr("div", "list"), Yr = st("div", "tab"), Zr = st("button", "trigger"), Jr = st("span", "label"), el = st("button", "close"), tl = (o) => {
1984
- const e = O(38), {
1775
+ withProvider: Vr,
1776
+ withContext: it
1777
+ } = ct({
1778
+ recipe: no
1779
+ }), Gr = Vr("div", "list"), jr = it("div", "tab"), Ur = it("button", "trigger"), Qr = it("span", "label"), Kr = it("button", "close"), qr = (n) => {
1780
+ const e = B(38), {
1985
1781
  tab: t,
1986
- selected: n,
1782
+ selected: o,
1987
1783
  tabIndex: r,
1988
- reorderable: i,
1989
- onSelect: l,
1784
+ reorderable: l,
1785
+ onSelect: i,
1990
1786
  onClose: c,
1991
1787
  onKeyDown: a
1992
- } = o, d = !i;
1788
+ } = n, d = !l;
1993
1789
  let u;
1994
1790
  e[0] !== d || e[1] !== t.id ? (u = {
1995
1791
  id: t.id,
@@ -2001,44 +1797,44 @@ const kt = {
2001
1797
  setNodeRef: p,
2002
1798
  setActivatorNodeRef: m,
2003
1799
  transform: g,
2004
- transition: x,
2005
- isDragging: b,
2006
- isSorting: k
2007
- } = nn(u), A = n ? "" : void 0, R = b ? "" : void 0;
2008
- let S;
2009
- e[3] !== g ? (S = rn.Translate.toString(g), e[3] = g, e[4] = S) : S = e[4];
1800
+ transition: v,
1801
+ isDragging: S,
1802
+ isSorting: R
1803
+ } = en(u), A = o ? "" : void 0, P = S ? "" : void 0;
1804
+ let b;
1805
+ e[3] !== g ? (b = nn.Translate.toString(g), e[3] = g, e[4] = b) : b = e[4];
2010
1806
  let $;
2011
- e[5] !== f || e[6] !== i ? ($ = i ? f : {}, e[5] = f, e[6] = i, e[7] = $) : $ = e[7];
2012
- let I;
2013
- e[8] !== k || e[9] !== h || e[10] !== a ? (I = (E) => {
2014
- h?.onKeyDown?.(E), !k && !E.defaultPrevented && a(E);
2015
- }, e[8] = k, e[9] = h, e[10] = a, e[11] = I) : I = e[11];
2016
- let P;
2017
- e[12] !== t.label ? (P = /* @__PURE__ */ s(Jr, { children: t.label }), e[12] = t.label, e[13] = P) : P = e[13];
1807
+ e[5] !== f || e[6] !== l ? ($ = l ? f : {}, e[5] = f, e[6] = l, e[7] = $) : $ = e[7];
2018
1808
  let w;
2019
- e[14] !== h || e[15] !== l || e[16] !== n || e[17] !== m || e[18] !== $ || e[19] !== I || e[20] !== P || e[21] !== t.icon || e[22] !== t.label || e[23] !== r ? (w = /* @__PURE__ */ y(Zr, { ...$, ...h, ref: m, type: "button", role: "tab", "aria-selected": n, "aria-label": t.label, tabIndex: r, title: t.label, onClick: l, onKeyDown: I, children: [
2020
- t.icon,
2021
- P
2022
- ] }), e[14] = h, e[15] = l, e[16] = n, e[17] = m, e[18] = $, e[19] = I, e[20] = P, e[21] = t.icon, e[22] = t.label, e[23] = r, e[24] = w) : w = e[24];
2023
- const C = `Close ${t.label}`, D = `Close ${t.label}`;
2024
- let L;
2025
- e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ s(Qt, { "aria-hidden": "true" }), e[25] = L) : L = e[25];
1809
+ e[8] !== R || e[9] !== h || e[10] !== a ? (w = (E) => {
1810
+ h?.onKeyDown?.(E), !R && !E.defaultPrevented && a(E);
1811
+ }, e[8] = R, e[9] = h, e[10] = a, e[11] = w) : w = e[11];
2026
1812
  let T;
2027
- e[26] !== c || e[27] !== D || e[28] !== C ? (T = /* @__PURE__ */ s(el, { type: "button", "aria-label": C, title: D, onClick: c, children: L }), e[26] = c, e[27] = D, e[28] = C, e[29] = T) : T = e[29];
2028
- let z;
2029
- return e[30] !== p || e[31] !== T || e[32] !== A || e[33] !== R || e[34] !== S || e[35] !== w || e[36] !== x ? (z = /* @__PURE__ */ y(Yr, { ref: p, role: "presentation", "data-selected": A, "data-dragging": R, transform: S, transition: x, children: [
2030
- w,
1813
+ e[12] !== t.label ? (T = /* @__PURE__ */ s(Qr, { children: t.label }), e[12] = t.label, e[13] = T) : T = e[13];
1814
+ let C;
1815
+ e[14] !== h || e[15] !== i || e[16] !== o || e[17] !== m || e[18] !== $ || e[19] !== w || e[20] !== T || e[21] !== t.icon || e[22] !== t.label || e[23] !== r ? (C = /* @__PURE__ */ D(Ur, { ...$, ...h, ref: m, type: "button", role: "tab", "aria-selected": o, "aria-label": t.label, tabIndex: r, title: t.label, onClick: i, onKeyDown: w, children: [
1816
+ t.icon,
2031
1817
  T
2032
- ] }), e[30] = p, e[31] = T, e[32] = A, e[33] = R, e[34] = S, e[35] = w, e[36] = x, e[37] = z) : z = e[37], z;
2033
- }, ji = (o) => {
2034
- const e = O(48), {
1818
+ ] }), e[14] = h, e[15] = i, e[16] = o, e[17] = m, e[18] = $, e[19] = w, e[20] = T, e[21] = t.icon, e[22] = t.label, e[23] = r, e[24] = C) : C = e[24];
1819
+ const y = `Close ${t.label}`, k = `Close ${t.label}`;
1820
+ let O;
1821
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ s(Gt, { "aria-hidden": "true" }), e[25] = O) : O = e[25];
1822
+ let I;
1823
+ e[26] !== c || e[27] !== k || e[28] !== y ? (I = /* @__PURE__ */ s(Kr, { type: "button", "aria-label": y, title: k, onClick: c, children: O }), e[26] = c, e[27] = k, e[28] = y, e[29] = I) : I = e[29];
1824
+ let _;
1825
+ return e[30] !== p || e[31] !== I || e[32] !== A || e[33] !== P || e[34] !== b || e[35] !== C || e[36] !== v ? (_ = /* @__PURE__ */ D(jr, { ref: p, role: "presentation", "data-selected": A, "data-dragging": P, transform: b, transition: v, children: [
1826
+ C,
1827
+ I
1828
+ ] }), e[30] = p, e[31] = I, e[32] = A, e[33] = P, e[34] = b, e[35] = C, e[36] = v, e[37] = _) : _ = e[37], _;
1829
+ }, Ml = (n) => {
1830
+ const e = B(48), {
2035
1831
  tabs: t,
2036
- selectedId: n,
1832
+ selectedId: o,
2037
1833
  onSelect: r,
2038
- onClose: i,
2039
- onReorder: l,
1834
+ onClose: l,
1835
+ onReorder: i,
2040
1836
  "aria-label": c
2041
- } = o, a = He(null);
1837
+ } = n, a = We(null);
2042
1838
  let d;
2043
1839
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
2044
1840
  activationConstraint: {
@@ -2047,144 +1843,144 @@ const kt = {
2047
1843
  }, e[0] = d) : d = e[0];
2048
1844
  let u;
2049
1845
  e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
2050
- coordinateGetter: Kn
1846
+ coordinateGetter: Zn
2051
1847
  }, e[1] = u) : u = e[1];
2052
- const f = Zt(ct(Jt, d), ct(qn, u));
1848
+ const f = Xt(lt(Yt, d), lt(Yn, u));
2053
1849
  let h, p;
2054
- e[2] !== n ? (h = () => {
2055
- n && a.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({
1850
+ e[2] !== o ? (h = () => {
1851
+ o && a.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({
2056
1852
  block: "nearest",
2057
1853
  inline: "nearest"
2058
1854
  });
2059
- }, p = [n], e[2] = n, e[3] = h, e[4] = p) : (h = e[3], p = e[4]), me(h, p);
2060
- let m, g, x, b, k, A, R, S, $, I, P, w, C;
2061
- if (e[5] !== c || e[6] !== i || e[7] !== l || e[8] !== r || e[9] !== n || e[10] !== f || e[11] !== t) {
2062
- const z = (v) => {
2063
- const _ = a.current?.querySelectorAll('[role="tab"]'), B = _?.[v + 1] ?? _?.[v - 1];
2064
- i(t[v].id), B?.focus();
2065
- }, E = (v, _) => {
2066
- let B;
2067
- if (v.key === "ArrowRight")
2068
- B = (_ + 1) % t.length;
2069
- else if (v.key === "ArrowLeft")
2070
- B = (_ - 1 + t.length) % t.length;
2071
- else if (v.key === "Home")
2072
- B = 0;
2073
- else if (v.key === "End")
2074
- B = t.length - 1;
2075
- else if (v.key === "Delete") {
2076
- v.preventDefault(), z(_);
1855
+ }, p = [o], e[2] = o, e[3] = h, e[4] = p) : (h = e[3], p = e[4]), me(h, p);
1856
+ let m, g, v, S, R, A, P, b, $, w, T, C, y;
1857
+ if (e[5] !== c || e[6] !== l || e[7] !== i || e[8] !== r || e[9] !== o || e[10] !== f || e[11] !== t) {
1858
+ const _ = (x) => {
1859
+ const L = a.current?.querySelectorAll('[role="tab"]'), N = L?.[x + 1] ?? L?.[x - 1];
1860
+ l(t[x].id), N?.focus();
1861
+ }, E = (x, L) => {
1862
+ let N;
1863
+ if (x.key === "ArrowRight")
1864
+ N = (L + 1) % t.length;
1865
+ else if (x.key === "ArrowLeft")
1866
+ N = (L - 1 + t.length) % t.length;
1867
+ else if (x.key === "Home")
1868
+ N = 0;
1869
+ else if (x.key === "End")
1870
+ N = t.length - 1;
1871
+ else if (x.key === "Delete") {
1872
+ x.preventDefault(), _(L);
2077
1873
  return;
2078
1874
  } else
2079
1875
  return;
2080
- v.preventDefault(), a.current?.querySelectorAll('[role="tab"]')[B]?.focus(), r(t[B].id);
1876
+ x.preventDefault(), a.current?.querySelectorAll('[role="tab"]')[N]?.focus(), r(t[N].id);
2081
1877
  };
2082
- x = en, b = f, k = tn, e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = [nl], e[25] = A) : A = e[25], e[26] !== l ? (R = (v) => {
1878
+ v = Zt, S = f, R = Jt, e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = [Xr], e[25] = A) : A = e[25], e[26] !== i ? (P = (x) => {
2083
1879
  const {
2084
- active: _,
2085
- over: B
2086
- } = v;
2087
- B && _.id !== B.id && l?.(String(_.id), String(B.id));
2088
- }, e[26] = l, e[27] = R) : R = e[27], g = on, e[28] !== t ? (w = t.map(ol), e[28] = t, e[29] = w) : w = e[29], C = Xn, m = Xr, S = a, $ = "tablist", I = c, P = t.map((v, _) => /* @__PURE__ */ s(tl, { tab: v, selected: v.id === n, tabIndex: v.id === (n ?? t[0]?.id) ? 0 : -1, reorderable: !!l, onSelect: () => r(v.id), onClose: () => z(_), onKeyDown: (B) => E(B, _) }, v.id)), e[5] = c, e[6] = i, e[7] = l, e[8] = r, e[9] = n, e[10] = f, e[11] = t, e[12] = m, e[13] = g, e[14] = x, e[15] = b, e[16] = k, e[17] = A, e[18] = R, e[19] = S, e[20] = $, e[21] = I, e[22] = P, e[23] = w, e[24] = C;
1880
+ active: L,
1881
+ over: N
1882
+ } = x;
1883
+ N && L.id !== N.id && i?.(String(L.id), String(N.id));
1884
+ }, e[26] = i, e[27] = P) : P = e[27], g = tn, e[28] !== t ? (C = t.map(Yr), e[28] = t, e[29] = C) : C = e[29], y = Jn, m = Gr, b = a, $ = "tablist", w = c, T = t.map((x, L) => /* @__PURE__ */ s(qr, { tab: x, selected: x.id === o, tabIndex: x.id === (o ?? t[0]?.id) ? 0 : -1, reorderable: !!i, onSelect: () => r(x.id), onClose: () => _(L), onKeyDown: (N) => E(N, L) }, x.id)), e[5] = c, e[6] = l, e[7] = i, e[8] = r, e[9] = o, e[10] = f, e[11] = t, e[12] = m, e[13] = g, e[14] = v, e[15] = S, e[16] = R, e[17] = A, e[18] = P, e[19] = b, e[20] = $, e[21] = w, e[22] = T, e[23] = C, e[24] = y;
2089
1885
  } else
2090
- m = e[12], g = e[13], x = e[14], b = e[15], k = e[16], A = e[17], R = e[18], S = e[19], $ = e[20], I = e[21], P = e[22], w = e[23], C = e[24];
2091
- let D;
2092
- e[30] !== m || e[31] !== S || e[32] !== $ || e[33] !== I || e[34] !== P ? (D = /* @__PURE__ */ s(m, { ref: S, role: $, "aria-label": I, children: P }), e[30] = m, e[31] = S, e[32] = $, e[33] = I, e[34] = P, e[35] = D) : D = e[35];
2093
- let L;
2094
- e[36] !== g || e[37] !== D || e[38] !== w || e[39] !== C ? (L = /* @__PURE__ */ s(g, { items: w, strategy: C, children: D }), e[36] = g, e[37] = D, e[38] = w, e[39] = C, e[40] = L) : L = e[40];
2095
- let T;
2096
- return e[41] !== x || e[42] !== b || e[43] !== k || e[44] !== A || e[45] !== R || e[46] !== L ? (T = /* @__PURE__ */ s(x, { sensors: b, collisionDetection: k, modifiers: A, onDragEnd: R, children: L }), e[41] = x, e[42] = b, e[43] = k, e[44] = A, e[45] = R, e[46] = L, e[47] = T) : T = e[47], T;
1886
+ m = e[12], g = e[13], v = e[14], S = e[15], R = e[16], A = e[17], P = e[18], b = e[19], $ = e[20], w = e[21], T = e[22], C = e[23], y = e[24];
1887
+ let k;
1888
+ e[30] !== m || e[31] !== b || e[32] !== $ || e[33] !== w || e[34] !== T ? (k = /* @__PURE__ */ s(m, { ref: b, role: $, "aria-label": w, children: T }), e[30] = m, e[31] = b, e[32] = $, e[33] = w, e[34] = T, e[35] = k) : k = e[35];
1889
+ let O;
1890
+ e[36] !== g || e[37] !== k || e[38] !== C || e[39] !== y ? (O = /* @__PURE__ */ s(g, { items: C, strategy: y, children: k }), e[36] = g, e[37] = k, e[38] = C, e[39] = y, e[40] = O) : O = e[40];
1891
+ let I;
1892
+ return e[41] !== v || e[42] !== S || e[43] !== R || e[44] !== A || e[45] !== P || e[46] !== O ? (I = /* @__PURE__ */ s(v, { sensors: S, collisionDetection: R, modifiers: A, onDragEnd: P, children: O }), e[41] = v, e[42] = S, e[43] = R, e[44] = A, e[45] = P, e[46] = O, e[47] = I) : I = e[47], I;
2097
1893
  };
2098
- function nl(o) {
1894
+ function Xr(n) {
2099
1895
  const {
2100
1896
  transform: e
2101
- } = o;
1897
+ } = n;
2102
1898
  return {
2103
1899
  ...e,
2104
1900
  y: 0
2105
1901
  };
2106
1902
  }
2107
- function ol(o) {
2108
- return o.id;
1903
+ function Yr(n) {
1904
+ return n.id;
2109
1905
  }
2110
1906
  const {
2111
- withProvider: rl,
2112
- withContext: ll
2113
- } = ft({
2114
- recipe: eo
2115
- }), il = rl("div", "root"), sl = ll("div", "content"), Ui = (o) => {
2116
- const e = O(5), {
1907
+ withProvider: Zr,
1908
+ withContext: Jr
1909
+ } = ct({
1910
+ recipe: oo
1911
+ }), ei = Zr("div", "root"), ti = Jr("div", "content"), Hl = (n) => {
1912
+ const e = B(5), {
2117
1913
  platform: t,
2118
- children: n
2119
- } = o, r = t === "darwin" ? "mac" : "overlay";
2120
- let i;
2121
- e[0] !== n ? (i = /* @__PURE__ */ s(sl, { children: n }), e[0] = n, e[1] = i) : i = e[1];
1914
+ children: o
1915
+ } = n, r = t === "darwin" ? "mac" : "overlay";
2122
1916
  let l;
2123
- return e[2] !== r || e[3] !== i ? (l = /* @__PURE__ */ s(il, { controls: r, "data-window-title-bar": "", children: i }), e[2] = r, e[3] = i, e[4] = l) : l = e[4], l;
2124
- }, al = (o) => {
2125
- const e = O(7), {
1917
+ e[0] !== o ? (l = /* @__PURE__ */ s(ti, { children: o }), e[0] = o, e[1] = l) : l = e[1];
1918
+ let i;
1919
+ return e[2] !== r || e[3] !== l ? (i = /* @__PURE__ */ s(ei, { controls: r, "data-window-title-bar": "", children: l }), e[2] = r, e[3] = l, e[4] = i) : i = e[4], i;
1920
+ }, ni = (n) => {
1921
+ const e = B(7), {
2126
1922
  children: t,
2127
- hasChanges: n
2128
- } = o;
1923
+ hasChanges: o
1924
+ } = n;
2129
1925
  let r;
2130
1926
  e[0] !== t ? (r = /* @__PURE__ */ s(F, { textStyle: "label/L/medium", truncate: !0, children: t }), e[0] = t, e[1] = r) : r = e[1];
2131
- let i;
2132
- e[2] !== n ? (i = n ? /* @__PURE__ */ s(F, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = n, e[3] = i) : i = e[3];
2133
1927
  let l;
2134
- return e[4] !== r || e[5] !== i ? (l = /* @__PURE__ */ y(ae, { gap: "3xs", minWidth: "0", children: [
1928
+ e[2] !== o ? (l = o ? /* @__PURE__ */ s(F, { textStyle: "label/L/medium", color: "fg.muted", "aria-label": "Unsaved changes", children: "*" }) : null, e[2] = o, e[3] = l) : l = e[3];
1929
+ let i;
1930
+ return e[4] !== r || e[5] !== l ? (i = /* @__PURE__ */ D(de, { gap: "3xs", minWidth: "0", children: [
2135
1931
  r,
2136
- i
2137
- ] }), e[4] = r, e[5] = i, e[6] = l) : l = e[6], l;
2138
- }, cl = (o) => o.length === 0 ? "None" : o.length === 1 ? o[0].label : `${o[0].label} +${o.length - 1}`, dl = (o) => {
2139
- const e = O(54), {
1932
+ l
1933
+ ] }), e[4] = r, e[5] = l, e[6] = i) : i = e[6], i;
1934
+ }, oi = (n) => n.length === 0 ? "None" : n.length === 1 ? n[0].label : `${n[0].label} +${n.length - 1}`, ri = (n) => {
1935
+ const e = B(54), {
2140
1936
  actions: t,
2141
- disabled: n,
1937
+ disabled: o,
2142
1938
  label: r,
2143
- options: i,
2144
- optionName: l,
1939
+ options: l,
1940
+ optionName: i,
2145
1941
  onChange: c
2146
- } = o;
2147
- let a, d, u, f, h, p, m, g, x, b, k, A, R, S;
2148
- if (e[0] !== t || e[1] !== n || e[2] !== r || e[3] !== c || e[4] !== l || e[5] !== i) {
2149
- let L;
2150
- e[20] !== t ? (L = (E) => t.includes(E.value), e[20] = t, e[21] = L) : L = e[21];
2151
- const T = i.filter(L);
2152
- let z;
2153
- e[22] !== t || e[23] !== c ? (z = (E) => {
2154
- c(t.includes(E) ? t.filter((v) => v !== E) : [...t, E]);
2155
- }, e[22] = t, e[23] = c, e[24] = z) : z = e[24], S = z, u = ge.Root, R = !1, d = ge.Trigger, A = !0, a = ue, f = "2xs", h = "ghost", p = "xs", m = T.length === 0 ? "fg.subtle" : "fg", g = n, x = `${r} for ${l}`, b = T[0]?.icon, k = cl(T), e[0] = t, e[1] = n, e[2] = r, e[3] = c, e[4] = l, e[5] = i, e[6] = a, e[7] = d, e[8] = u, e[9] = f, e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = x, e[15] = b, e[16] = k, e[17] = A, e[18] = R, e[19] = S;
1942
+ } = n;
1943
+ let a, d, u, f, h, p, m, g, v, S, R, A, P, b;
1944
+ if (e[0] !== t || e[1] !== o || e[2] !== r || e[3] !== c || e[4] !== i || e[5] !== l) {
1945
+ let O;
1946
+ e[20] !== t ? (O = (E) => t.includes(E.value), e[20] = t, e[21] = O) : O = e[21];
1947
+ const I = l.filter(O);
1948
+ let _;
1949
+ e[22] !== t || e[23] !== c ? (_ = (E) => {
1950
+ c(t.includes(E) ? t.filter((x) => x !== E) : [...t, E]);
1951
+ }, e[22] = t, e[23] = c, e[24] = _) : _ = e[24], b = _, u = ge.Root, P = !1, d = ge.Trigger, A = !0, a = ue, f = "2xs", h = "ghost", p = "xs", m = I.length === 0 ? "fg.subtle" : "fg", g = o, v = `${r} for ${i}`, S = I[0]?.icon, R = oi(I), e[0] = t, e[1] = o, e[2] = r, e[3] = c, e[4] = i, e[5] = l, e[6] = a, e[7] = d, e[8] = u, e[9] = f, e[10] = h, e[11] = p, e[12] = m, e[13] = g, e[14] = v, e[15] = S, e[16] = R, e[17] = A, e[18] = P, e[19] = b;
2156
1952
  } else
2157
- a = e[6], d = e[7], u = e[8], f = e[9], h = e[10], p = e[11], m = e[12], g = e[13], x = e[14], b = e[15], k = e[16], A = e[17], R = e[18], S = e[19];
1953
+ a = e[6], d = e[7], u = e[8], f = e[9], h = e[10], p = e[11], m = e[12], g = e[13], v = e[14], S = e[15], R = e[16], A = e[17], P = e[18], b = e[19];
2158
1954
  let $;
2159
- e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(ce, { as: Xt, boxSize: "icon-2xs" }), e[25] = $) : $ = e[25];
2160
- let I;
2161
- e[26] !== a || e[27] !== f || e[28] !== h || e[29] !== p || e[30] !== m || e[31] !== g || e[32] !== x || e[33] !== b || e[34] !== k ? (I = /* @__PURE__ */ y(a, { size: f, variant: h, gap: p, color: m, disabled: g, "aria-label": x, children: [
2162
- b,
2163
- k,
2164
- $
2165
- ] }), e[26] = a, e[27] = f, e[28] = h, e[29] = p, e[30] = m, e[31] = g, e[32] = x, e[33] = b, e[34] = k, e[35] = I) : I = e[35];
2166
- let P;
2167
- e[36] !== d || e[37] !== I || e[38] !== A ? (P = /* @__PURE__ */ s(d, { asChild: A, children: I }), e[36] = d, e[37] = I, e[38] = A, e[39] = P) : P = e[39];
1955
+ e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ s(ae, { as: Qt, boxSize: "icon-2xs" }), e[25] = $) : $ = e[25];
2168
1956
  let w;
2169
- if (e[40] !== t || e[41] !== i || e[42] !== S) {
2170
- let L;
2171
- e[44] !== t || e[45] !== S ? (L = (T) => /* @__PURE__ */ s(ge.Item, { value: T.value, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: T.value, label: T.label, icon: T.icon, isSelected: t.includes(T.value), endContent: t.includes(T.value) ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => S(T.value) }) }, T.value), e[44] = t, e[45] = S, e[46] = L) : L = e[46], w = i.map(L), e[40] = t, e[41] = i, e[42] = S, e[43] = w;
2172
- } else
2173
- w = e[43];
1957
+ e[26] !== a || e[27] !== f || e[28] !== h || e[29] !== p || e[30] !== m || e[31] !== g || e[32] !== v || e[33] !== S || e[34] !== R ? (w = /* @__PURE__ */ D(a, { size: f, variant: h, gap: p, color: m, disabled: g, "aria-label": v, children: [
1958
+ S,
1959
+ R,
1960
+ $
1961
+ ] }), e[26] = a, e[27] = f, e[28] = h, e[29] = p, e[30] = m, e[31] = g, e[32] = v, e[33] = S, e[34] = R, e[35] = w) : w = e[35];
1962
+ let T;
1963
+ e[36] !== d || e[37] !== w || e[38] !== A ? (T = /* @__PURE__ */ s(d, { asChild: A, children: w }), e[36] = d, e[37] = w, e[38] = A, e[39] = T) : T = e[39];
2174
1964
  let C;
2175
- e[47] !== w ? (C = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: w }) }), e[47] = w, e[48] = C) : C = e[48];
2176
- let D;
2177
- return e[49] !== u || e[50] !== P || e[51] !== C || e[52] !== R ? (D = /* @__PURE__ */ y(u, { closeOnSelect: R, children: [
2178
- P,
2179
- C
2180
- ] }), e[49] = u, e[50] = P, e[51] = C, e[52] = R, e[53] = D) : D = e[53], D;
2181
- }, ul = (o) => {
2182
- const e = O(69), {
1965
+ if (e[40] !== t || e[41] !== l || e[42] !== b) {
1966
+ let O;
1967
+ e[44] !== t || e[45] !== b ? (O = (I) => /* @__PURE__ */ s(ge.Item, { value: I.value, asChild: !0, children: /* @__PURE__ */ s(je, { asChild: !0, variant: "full-width", id: I.value, label: I.label, icon: I.icon, isSelected: t.includes(I.value), endContent: t.includes(I.value) ? /* @__PURE__ */ s(ae, { as: Je, boxSize: "icon-xs" }) : void 0, onActivate: () => b(I.value) }) }, I.value), e[44] = t, e[45] = b, e[46] = O) : O = e[46], C = l.map(O), e[40] = t, e[41] = l, e[42] = b, e[43] = C;
1968
+ } else
1969
+ C = e[43];
1970
+ let y;
1971
+ e[47] !== C ? (y = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: C }) }), e[47] = C, e[48] = y) : y = e[48];
1972
+ let k;
1973
+ return e[49] !== u || e[50] !== T || e[51] !== y || e[52] !== P ? (k = /* @__PURE__ */ D(u, { closeOnSelect: P, children: [
1974
+ T,
1975
+ y
1976
+ ] }), e[49] = u, e[50] = T, e[51] = y, e[52] = P, e[53] = k) : k = e[53], k;
1977
+ }, ii = (n) => {
1978
+ const e = B(69), {
2183
1979
  actionOptions: t,
2184
- actionsLabel: n,
1980
+ actionsLabel: o,
2185
1981
  colorOptions: r,
2186
- iconOptions: i,
2187
- value: l,
1982
+ iconOptions: l,
1983
+ value: i,
2188
1984
  isSaving: c,
2189
1985
  readOnly: a,
2190
1986
  showDefault: d,
@@ -2194,108 +1990,108 @@ const {
2194
1990
  onDelete: p,
2195
1991
  onIconChange: m,
2196
1992
  onNameChange: g
2197
- } = o, x = n === void 0 ? "Actions" : n, b = c || a;
2198
- let k;
2199
- e[0] !== b || e[1] !== l.id ? (k = {
2200
- id: l.id,
2201
- disabled: b
2202
- }, e[0] = b, e[1] = l.id, e[2] = k) : k = e[2];
1993
+ } = n, v = o === void 0 ? "Actions" : o, S = c || a;
1994
+ let R;
1995
+ e[0] !== S || e[1] !== i.id ? (R = {
1996
+ id: i.id,
1997
+ disabled: S
1998
+ }, e[0] = S, e[1] = i.id, e[2] = R) : R = e[2];
2203
1999
  const {
2204
2000
  attributes: A,
2205
- listeners: R,
2206
- setNodeRef: S,
2001
+ listeners: P,
2002
+ setNodeRef: b,
2207
2003
  transform: $,
2208
- transition: I,
2209
- isDragging: P
2210
- } = nn(k);
2211
- let w;
2212
- e[3] !== $ ? (w = rn.Transform.toString($), e[3] = $, e[4] = w) : w = e[4];
2004
+ transition: w,
2005
+ isDragging: T
2006
+ } = en(R);
2213
2007
  let C;
2214
- e[5] !== w || e[6] !== I ? (C = {
2215
- transform: w,
2216
- transition: I
2217
- }, e[5] = w, e[6] = I, e[7] = C) : C = e[7];
2218
- const D = P ? "bg.elevated" : "transparent", L = P ? "compact" : "none", T = P ? "1px" : void 0, z = P ? "lg" : void 0, E = P ? "bg.elevated" : "bg.muted";
2219
- let v;
2220
- e[8] !== E ? (v = {
2008
+ e[3] !== $ ? (C = nn.Transform.toString($), e[3] = $, e[4] = C) : C = e[4];
2009
+ let y;
2010
+ e[5] !== C || e[6] !== w ? (y = {
2011
+ transform: C,
2012
+ transition: w
2013
+ }, e[5] = C, e[6] = w, e[7] = y) : y = e[7];
2014
+ const k = T ? "bg.elevated" : "transparent", O = T ? "compact" : "none", I = T ? "1px" : void 0, _ = T ? "lg" : void 0, E = T ? "bg.elevated" : "bg.muted";
2015
+ let x;
2016
+ e[8] !== E ? (x = {
2221
2017
  bg: E
2222
- }, e[8] = E, e[9] = v) : v = e[9];
2223
- const _ = a ? "default" : "grab";
2224
- let B;
2225
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
2018
+ }, e[8] = E, e[9] = x) : x = e[9];
2019
+ const L = a ? "default" : "grab";
2020
+ let N;
2021
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = {
2226
2022
  color: "fg.muted"
2227
- }, e[10] = B) : B = e[10];
2228
- const K = `Reorder ${l.name}`;
2023
+ }, e[10] = N) : N = e[10];
2024
+ const Q = `Reorder ${i.name}`;
2229
2025
  let W;
2230
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ s(ce, { as: Bn, boxSize: "icon-xs" }), e[11] = W) : W = e[11];
2231
- let H;
2232
- e[12] !== A || e[13] !== R || e[14] !== _ || e[15] !== K ? (H = /* @__PURE__ */ s(de, { cursor: _, color: "fg.subtle", _groupHover: B, "aria-label": K, ...A, ...R, children: W }), e[12] = A, e[13] = R, e[14] = _, e[15] = K, e[16] = H) : H = e[16];
2233
- const N = `Change ${l.name} appearance`;
2234
- let q;
2235
- e[17] !== r || e[18] !== b || e[19] !== i || e[20] !== h || e[21] !== m || e[22] !== u || e[23] !== N || e[24] !== l.color || e[25] !== l.icon ? (q = /* @__PURE__ */ s(dr, { color: l.color, colorOptions: r, icon: l.icon, iconOptions: i, showIcons: u, onColorChange: h, onIconChange: m, disabled: b, "aria-label": N }), e[17] = r, e[18] = b, e[19] = i, e[20] = h, e[21] = m, e[22] = u, e[23] = N, e[24] = l.color, e[25] = l.icon, e[26] = q) : q = e[26];
2236
- let j;
2237
- e[27] !== g || e[28] !== l.name ? (j = (oe) => {
2238
- const he = oe.value.trim();
2239
- he && he !== l.name && g(he);
2240
- }, e[27] = g, e[28] = l.name, e[29] = j) : j = e[29];
2241
- let V, U;
2242
- e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ s(We.Preview, { textStyle: "paragraph/S/regular" }), U = /* @__PURE__ */ s(We.Input, { textStyle: "paragraph/S/regular" }), e[30] = V, e[31] = U) : (V = e[30], U = e[31]);
2243
- let X;
2244
- e[32] !== b || e[33] !== j || e[34] !== l.isNew || e[35] !== l.name ? (X = /* @__PURE__ */ y(We.Root, { minWidth: "0", defaultValue: l.name, defaultEdit: l.isNew, selectOnFocus: !0, disabled: b, onValueCommit: j, children: [
2026
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ s(ae, { as: Bn, boxSize: "icon-xs" }), e[11] = W) : W = e[11];
2027
+ let M;
2028
+ e[12] !== A || e[13] !== P || e[14] !== L || e[15] !== Q ? (M = /* @__PURE__ */ s(ce, { cursor: L, color: "fg.subtle", _groupHover: N, "aria-label": Q, ...A, ...P, children: W }), e[12] = A, e[13] = P, e[14] = L, e[15] = Q, e[16] = M) : M = e[16];
2029
+ const z = `Change ${i.name} appearance`;
2030
+ let U;
2031
+ e[17] !== r || e[18] !== S || e[19] !== l || e[20] !== h || e[21] !== m || e[22] !== u || e[23] !== z || e[24] !== i.color || e[25] !== i.icon ? (U = /* @__PURE__ */ s(rr, { color: i.color, colorOptions: r, icon: i.icon, iconOptions: l, showIcons: u, onColorChange: h, onIconChange: m, disabled: S, "aria-label": z }), e[17] = r, e[18] = S, e[19] = l, e[20] = h, e[21] = m, e[22] = u, e[23] = z, e[24] = i.color, e[25] = i.icon, e[26] = U) : U = e[26];
2032
+ let G;
2033
+ e[27] !== g || e[28] !== i.name ? (G = (te) => {
2034
+ const he = te.value.trim();
2035
+ he && he !== i.name && g(he);
2036
+ }, e[27] = g, e[28] = i.name, e[29] = G) : G = e[29];
2037
+ let V, j;
2038
+ e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ s(Be.Preview, { textStyle: "paragraph/S/regular" }), j = /* @__PURE__ */ s(Be.Input, { textStyle: "paragraph/S/regular" }), e[30] = V, e[31] = j) : (V = e[30], j = e[31]);
2039
+ let K;
2040
+ e[32] !== S || e[33] !== G || e[34] !== i.isNew || e[35] !== i.name ? (K = /* @__PURE__ */ D(Be.Root, { minWidth: "0", defaultValue: i.name, defaultEdit: i.isNew, selectOnFocus: !0, disabled: S, onValueCommit: G, children: [
2245
2041
  V,
2246
- U
2247
- ] }, l.name), e[32] = b, e[33] = j, e[34] = l.isNew, e[35] = l.name, e[36] = X) : X = e[36];
2248
- let se;
2249
- e[37] !== d || e[38] !== l.isDefault ? (se = d && l.isDefault ? /* @__PURE__ */ s(Te, { size: "sm", variant: "subtle", colorPalette: "blue", children: "Default" }) : null, e[37] = d, e[38] = l.isDefault, e[39] = se) : se = e[39];
2250
- let J;
2251
- e[40] !== X || e[41] !== se ? (J = /* @__PURE__ */ y(de, { flex: "1", minWidth: "0", alignItems: "center", gap: "xs", children: [
2252
- X,
2253
- se
2254
- ] }), e[40] = X, e[41] = se, e[42] = J) : J = e[42];
2255
- let ee;
2256
- e[43] !== t || e[44] !== x || e[45] !== b || e[46] !== f || e[47] !== l.actions || e[48] !== l.name ? (ee = t ? /* @__PURE__ */ s(de, { width: "tag-editor-commands", justifyContent: "flex-end", children: /* @__PURE__ */ s(dl, { actions: l.actions ?? [], disabled: b, label: x, optionName: l.name, options: t, onChange: f }) }) : null, e[43] = t, e[44] = x, e[45] = b, e[46] = f, e[47] = l.actions, e[48] = l.name, e[49] = ee) : ee = e[49];
2257
- let re;
2258
- e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
2042
+ j
2043
+ ] }, i.name), e[32] = S, e[33] = G, e[34] = i.isNew, e[35] = i.name, e[36] = K) : K = e[36];
2044
+ let le;
2045
+ e[37] !== d || e[38] !== i.isDefault ? (le = d && i.isDefault ? /* @__PURE__ */ s(Ie, { size: "sm", variant: "subtle", colorPalette: "blue", children: "Default" }) : null, e[37] = d, e[38] = i.isDefault, e[39] = le) : le = e[39];
2046
+ let Y;
2047
+ e[40] !== K || e[41] !== le ? (Y = /* @__PURE__ */ D(ce, { flex: "1", minWidth: "0", alignItems: "center", gap: "xs", children: [
2048
+ K,
2049
+ le
2050
+ ] }), e[40] = K, e[41] = le, e[42] = Y) : Y = e[42];
2051
+ let Z;
2052
+ e[43] !== t || e[44] !== v || e[45] !== S || e[46] !== f || e[47] !== i.actions || e[48] !== i.name ? (Z = t ? /* @__PURE__ */ s(ce, { width: "tag-editor-commands", justifyContent: "flex-end", children: /* @__PURE__ */ s(ri, { actions: i.actions ?? [], disabled: S, label: v, optionName: i.name, options: t, onChange: f }) }) : null, e[43] = t, e[44] = v, e[45] = S, e[46] = f, e[47] = i.actions, e[48] = i.name, e[49] = Z) : Z = e[49];
2053
+ let oe;
2054
+ e[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = {
2259
2055
  color: "fg.error",
2260
2056
  bg: "bg.error"
2261
- }, e[50] = re) : re = e[50];
2262
- const te = b || l.isDefault, le = `Delete ${l.name}`;
2263
- let ne;
2264
- e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ s(ce, { as: Wn, boxSize: "icon-xs" }), e[51] = ne) : ne = e[51];
2265
- let Y;
2266
- e[52] !== p || e[53] !== te || e[54] !== le ? (Y = /* @__PURE__ */ s(Fe, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: re, onClick: p, disabled: te, "aria-label": le, children: ne }), e[52] = p, e[53] = te, e[54] = le, e[55] = Y) : Y = e[55];
2057
+ }, e[50] = oe) : oe = e[50];
2058
+ const J = S || i.isDefault, re = `Delete ${i.name}`;
2059
+ let ee;
2060
+ e[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ s(ae, { as: Wn, boxSize: "icon-xs" }), e[51] = ee) : ee = e[51];
2061
+ let q;
2062
+ e[52] !== p || e[53] !== J || e[54] !== re ? (q = /* @__PURE__ */ s(Me, { size: "xs", variant: "ghost", color: "fg.subtle", _groupHover: oe, onClick: p, disabled: J, "aria-label": re, children: ee }), e[52] = p, e[53] = J, e[54] = re, e[55] = q) : q = e[55];
2267
2063
  let ie;
2268
- return e[56] !== S || e[57] !== H || e[58] !== q || e[59] !== J || e[60] !== ee || e[61] !== Y || e[62] !== C || e[63] !== D || e[64] !== L || e[65] !== T || e[66] !== z || e[67] !== v ? (ie = /* @__PURE__ */ y(de, { ref: S, style: C, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: D, borderRadius: L, borderWidth: T, boxShadow: z, _hover: v, children: [
2269
- H,
2270
- q,
2271
- J,
2272
- ee,
2273
- Y
2274
- ] }), e[56] = S, e[57] = H, e[58] = q, e[59] = J, e[60] = ee, e[61] = Y, e[62] = C, e[63] = D, e[64] = L, e[65] = T, e[66] = z, e[67] = v, e[68] = ie) : ie = e[68], ie;
2275
- }, fl = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, hl = (o) => {
2276
- const e = O(12), {
2064
+ return e[56] !== b || e[57] !== M || e[58] !== U || e[59] !== Y || e[60] !== Z || e[61] !== q || e[62] !== y || e[63] !== k || e[64] !== O || e[65] !== I || e[66] !== _ || e[67] !== x ? (ie = /* @__PURE__ */ D(ce, { ref: b, style: y, className: "group", height: "tag-editor-row", alignItems: "center", gap: "compact", px: "xs", borderBottomWidth: "1px", borderColor: "border.subtle", bg: k, borderRadius: O, borderWidth: I, boxShadow: _, _hover: x, children: [
2065
+ M,
2066
+ U,
2067
+ Y,
2068
+ Z,
2069
+ q
2070
+ ] }), e[56] = b, e[57] = M, e[58] = U, e[59] = Y, e[60] = Z, e[61] = q, e[62] = y, e[63] = k, e[64] = O, e[65] = I, e[66] = _, e[67] = x, e[68] = ie) : ie = e[68], ie;
2071
+ }, li = (n) => n.length > 0 ? Math.max(...n.map((e) => e.sortOrder)) + 1 : 0, si = (n) => {
2072
+ const e = B(12), {
2277
2073
  title: t,
2278
- hasChanges: n,
2074
+ hasChanges: o,
2279
2075
  isSaving: r,
2280
- onTitleChange: i
2281
- } = o;
2282
- if (!i) {
2076
+ onTitleChange: l
2077
+ } = n;
2078
+ if (!l) {
2283
2079
  let u;
2284
- return e[0] !== n || e[1] !== t ? (u = /* @__PURE__ */ s(al, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = u) : u = e[2], u;
2080
+ return e[0] !== o || e[1] !== t ? (u = /* @__PURE__ */ s(ni, { hasChanges: o, children: t }), e[0] = o, e[1] = t, e[2] = u) : u = e[2], u;
2285
2081
  }
2286
- let l;
2287
- e[3] !== i || e[4] !== t ? (l = (u) => {
2082
+ let i;
2083
+ e[3] !== l || e[4] !== t ? (i = (u) => {
2288
2084
  const f = u.value.trim();
2289
- f && f !== t && i(f);
2290
- }, e[3] = i, e[4] = t, e[5] = l) : l = e[5];
2085
+ f && f !== t && l(f);
2086
+ }, e[3] = l, e[4] = t, e[5] = i) : i = e[5];
2291
2087
  let c, a;
2292
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(We.Preview, { textStyle: "label/L/medium" }), a = /* @__PURE__ */ s(We.Input, { textStyle: "label/L/medium" }), e[6] = c, e[7] = a) : (c = e[6], a = e[7]);
2088
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(Be.Preview, { textStyle: "label/L/medium" }), a = /* @__PURE__ */ s(Be.Input, { textStyle: "label/L/medium" }), e[6] = c, e[7] = a) : (c = e[6], a = e[7]);
2293
2089
  let d;
2294
- return e[8] !== r || e[9] !== l || e[10] !== t ? (d = /* @__PURE__ */ y(We.Root, { defaultValue: t, disabled: r, selectOnFocus: !0, onValueCommit: l, children: [
2090
+ return e[8] !== r || e[9] !== i || e[10] !== t ? (d = /* @__PURE__ */ D(Be.Root, { defaultValue: t, disabled: r, selectOnFocus: !0, onValueCommit: i, children: [
2295
2091
  c,
2296
2092
  a
2297
- ] }, t), e[8] = r, e[9] = l, e[10] = t, e[11] = d) : d = e[11], d;
2298
- }, ml = Pe("button", {
2093
+ ] }, t), e[8] = r, e[9] = i, e[10] = t, e[11] = d) : d = e[11], d;
2094
+ }, ai = Te("button", {
2299
2095
  base: {
2300
2096
  display: "flex",
2301
2097
  alignItems: "center",
@@ -2318,72 +2114,72 @@ const {
2318
2114
  }
2319
2115
  }
2320
2116
  }
2321
- }), pl = (o) => {
2322
- const e = O(9), {
2117
+ }), ci = (n) => {
2118
+ const e = B(9), {
2323
2119
  valueLabel: t,
2324
- actionsLabel: n
2325
- } = o;
2120
+ actionsLabel: o
2121
+ } = n;
2326
2122
  let r;
2327
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(de, { width: "tag-editor-lead", flexShrink: "0" }), e[0] = r) : r = e[0];
2328
- let i;
2329
- e[1] !== t ? (i = /* @__PURE__ */ s(F, { flex: "1", minWidth: "0", textStyle: "label/XS/caps", color: "fg.subtle", children: t }), e[1] = t, e[2] = i) : i = e[2];
2123
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ s(ce, { width: "tag-editor-lead", flexShrink: "0" }), e[0] = r) : r = e[0];
2330
2124
  let l;
2331
- e[3] !== n ? (l = n ? /* @__PURE__ */ s(F, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: n }) : null, e[3] = n, e[4] = l) : l = e[4];
2125
+ e[1] !== t ? (l = /* @__PURE__ */ s(F, { flex: "1", minWidth: "0", textStyle: "label/XS/caps", color: "fg.subtle", children: t }), e[1] = t, e[2] = l) : l = e[2];
2126
+ let i;
2127
+ e[3] !== o ? (i = o ? /* @__PURE__ */ s(F, { width: "tag-editor-commands", textAlign: "right", textStyle: "label/XS/caps", color: "fg.subtle", children: o }) : null, e[3] = o, e[4] = i) : i = e[4];
2332
2128
  let c;
2333
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(de, { width: "tag-editor-trailing", flexShrink: "0" }), e[5] = c) : c = e[5];
2129
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s(ce, { width: "tag-editor-trailing", flexShrink: "0" }), e[5] = c) : c = e[5];
2334
2130
  let a;
2335
- return e[6] !== i || e[7] !== l ? (a = /* @__PURE__ */ y(de, { alignItems: "center", gap: "compact", paddingInline: "xs", height: "tag-editor-add-row", bg: "bg.subtle", borderBottomWidth: "1px", borderColor: "border.subtle", children: [
2131
+ return e[6] !== l || e[7] !== i ? (a = /* @__PURE__ */ D(ce, { alignItems: "center", gap: "compact", paddingInline: "xs", height: "tag-editor-add-row", bg: "bg.subtle", borderBottomWidth: "1px", borderColor: "border.subtle", children: [
2336
2132
  r,
2337
- i,
2338
2133
  l,
2134
+ i,
2339
2135
  c
2340
- ] }), e[6] = i, e[7] = l, e[8] = a) : a = e[8], a;
2341
- }, gl = (o) => {
2342
- const e = O(22), {
2136
+ ] }), e[6] = l, e[7] = i, e[8] = a) : a = e[8], a;
2137
+ }, di = (n) => {
2138
+ const e = B(22), {
2343
2139
  label: t,
2344
- values: n,
2140
+ values: o,
2345
2141
  disabled: r,
2346
- onSelect: i
2347
- } = o;
2348
- let l;
2349
- e[0] !== n ? (l = n.find(Sl), e[0] = n, e[1] = l) : l = e[1];
2350
- const c = l;
2142
+ onSelect: l
2143
+ } = n;
2144
+ let i;
2145
+ e[0] !== o ? (i = o.find(fi), e[0] = o, e[1] = i) : i = e[1];
2146
+ const c = i;
2351
2147
  let a;
2352
2148
  e[2] !== t ? (a = /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }), e[2] = t, e[3] = a) : a = e[3];
2353
2149
  const d = c?.name ?? "None";
2354
2150
  let u;
2355
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(ce, { as: Xt, boxSize: "icon-2xs" }), e[4] = u) : u = e[4];
2151
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(ae, { as: Qt, boxSize: "icon-2xs" }), e[4] = u) : u = e[4];
2356
2152
  let f;
2357
- e[5] !== r || e[6] !== t || e[7] !== d ? (f = /* @__PURE__ */ s(ge.Trigger, { asChild: !0, children: /* @__PURE__ */ y(ue, { size: "2xs", variant: "ghost", gap: "xs", disabled: r, "aria-label": t, children: [
2153
+ e[5] !== r || e[6] !== t || e[7] !== d ? (f = /* @__PURE__ */ s(ge.Trigger, { asChild: !0, children: /* @__PURE__ */ D(ue, { size: "2xs", variant: "ghost", gap: "xs", disabled: r, "aria-label": t, children: [
2358
2154
  d,
2359
2155
  u
2360
2156
  ] }) }), e[5] = r, e[6] = t, e[7] = d, e[8] = f) : f = e[8];
2361
2157
  let h;
2362
- if (e[9] !== i || e[10] !== n) {
2363
- let x;
2364
- e[12] !== i ? (x = (b) => /* @__PURE__ */ s(ge.Item, { value: b.id, asChild: !0, children: /* @__PURE__ */ s(Qe, { asChild: !0, variant: "full-width", id: b.id, label: b.name, isSelected: b.isDefault, endContent: b.isDefault ? /* @__PURE__ */ s(ce, { as: et, boxSize: "icon-xs" }) : void 0, onActivate: () => i(b) }) }, b.id), e[12] = i, e[13] = x) : x = e[13], h = n.map(x), e[9] = i, e[10] = n, e[11] = h;
2158
+ if (e[9] !== l || e[10] !== o) {
2159
+ let v;
2160
+ e[12] !== l ? (v = (S) => /* @__PURE__ */ s(ge.Item, { value: S.id, asChild: !0, children: /* @__PURE__ */ s(je, { asChild: !0, variant: "full-width", id: S.id, label: S.name, isSelected: S.isDefault, endContent: S.isDefault ? /* @__PURE__ */ s(ae, { as: Je, boxSize: "icon-xs" }) : void 0, onActivate: () => l(S) }) }, S.id), e[12] = l, e[13] = v) : v = e[13], h = o.map(v), e[9] = l, e[10] = o, e[11] = h;
2365
2161
  } else
2366
2162
  h = e[11];
2367
2163
  let p;
2368
2164
  e[14] !== h ? (p = /* @__PURE__ */ s(ge.Positioner, { children: /* @__PURE__ */ s(ge.Content, { minW: "tag-action-menu", bg: "bg", children: h }) }), e[14] = h, e[15] = p) : p = e[15];
2369
2165
  let m;
2370
- e[16] !== f || e[17] !== p ? (m = /* @__PURE__ */ y(ge.Root, { children: [
2166
+ e[16] !== f || e[17] !== p ? (m = /* @__PURE__ */ D(ge.Root, { children: [
2371
2167
  f,
2372
2168
  p
2373
2169
  ] }), e[16] = f, e[17] = p, e[18] = m) : m = e[18];
2374
2170
  let g;
2375
- return e[19] !== a || e[20] !== m ? (g = /* @__PURE__ */ y(de, { alignItems: "center", gap: "sm", paddingInline: "xs", paddingBlock: "xs", bg: "bg.subtle", borderTopWidth: "1px", borderColor: "border.subtle", children: [
2171
+ return e[19] !== a || e[20] !== m ? (g = /* @__PURE__ */ D(ce, { alignItems: "center", gap: "sm", paddingInline: "xs", paddingBlock: "xs", bg: "bg.subtle", borderTopWidth: "1px", borderColor: "border.subtle", children: [
2376
2172
  a,
2377
2173
  m
2378
2174
  ] }), e[19] = a, e[20] = m, e[21] = g) : g = e[21], g;
2379
- }, bl = (o) => {
2175
+ }, ui = (n) => {
2380
2176
  const {
2381
2177
  title: e,
2382
2178
  description: t,
2383
- headerActions: n,
2179
+ headerActions: o,
2384
2180
  values: r,
2385
- onValuesChange: i,
2386
- onDeleteValue: l,
2181
+ onValuesChange: l,
2182
+ onDeleteValue: i,
2387
2183
  onSetDefault: c,
2388
2184
  onTitleChange: a,
2389
2185
  hasChanges: d,
@@ -2393,576 +2189,547 @@ const {
2393
2189
  addName: p = "New option",
2394
2190
  actionOptions: m,
2395
2191
  actionsLabel: g,
2396
- defaultValueLabel: x = "Default value",
2397
- colorOptions: b,
2398
- defaultAddColor: k = "blue",
2192
+ defaultValueLabel: v = "Default value",
2193
+ colorOptions: S,
2194
+ defaultAddColor: R = "blue",
2399
2195
  defaultAddIcon: A = null,
2400
- deleteButtonText: R = "Delete tag",
2401
- deleteHeadline: S = "Delete tag?",
2196
+ deleteButtonText: P = "Delete tag",
2197
+ deleteHeadline: b = "Delete tag?",
2402
2198
  deleteNotificationText: $ = (W) => `This will delete "${W.name}".`,
2403
- iconOptions: I,
2404
- showDefault: P,
2405
- showIcons: w = !0,
2406
- framed: C,
2407
- showColumnHeaders: D,
2408
- valueColumnLabel: L = "Name"
2409
- } = o, [T, z] = fe(null), E = Zt(ct(Jt, {
2199
+ iconOptions: w,
2200
+ showDefault: T,
2201
+ showIcons: C = !0,
2202
+ framed: y,
2203
+ showColumnHeaders: k,
2204
+ valueColumnLabel: O = "Name"
2205
+ } = n, [I, _] = fe(null), E = Xt(lt(Yt, {
2410
2206
  activationConstraint: {
2411
2207
  distance: 5
2412
2208
  }
2413
- })), v = (W, H) => {
2414
- const N = [...r];
2415
- N[W] = {
2416
- ...N[W],
2417
- ...H
2418
- }, i(N);
2419
- }, _ = () => {
2420
- i([...r, {
2209
+ })), x = (W, M) => {
2210
+ const z = [...r];
2211
+ z[W] = {
2212
+ ...z[W],
2213
+ ...M
2214
+ }, l(z);
2215
+ }, L = () => {
2216
+ l([...r, {
2421
2217
  id: `new-${crypto.randomUUID()}`,
2422
2218
  name: p,
2423
- color: k,
2219
+ color: R,
2424
2220
  icon: A,
2425
- sortOrder: fl(r),
2221
+ sortOrder: li(r),
2426
2222
  isNew: !0
2427
2223
  }]);
2428
- }, B = () => {
2429
- T && (l ? l(T) : i(r.filter((W) => W.id !== T.id)), z(null));
2224
+ }, N = () => {
2225
+ I && (i ? i(I) : l(r.filter((W) => W.id !== I.id)), _(null));
2430
2226
  };
2431
- return /* @__PURE__ */ y(Me, { children: [
2432
- /* @__PURE__ */ y(Q, { gap: "2xs", children: [
2433
- e || n ? /* @__PURE__ */ y(de, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2434
- /* @__PURE__ */ y(Q, { gap: "3xs", minWidth: "0", children: [
2435
- e ? /* @__PURE__ */ s(hl, { title: e, hasChanges: d, isSaving: u, onTitleChange: a }) : null,
2227
+ return /* @__PURE__ */ D(Ze, { children: [
2228
+ /* @__PURE__ */ D(ne, { gap: "2xs", children: [
2229
+ e || o ? /* @__PURE__ */ D(ce, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2230
+ /* @__PURE__ */ D(ne, { gap: "3xs", minWidth: "0", children: [
2231
+ e ? /* @__PURE__ */ s(si, { title: e, hasChanges: d, isSaving: u, onTitleChange: a }) : null,
2436
2232
  t ? /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2437
2233
  ] }),
2438
- n
2234
+ o
2439
2235
  ] }) : null,
2440
- /* @__PURE__ */ y(Q, { gap: "none", borderWidth: C ? "1px" : void 0, borderColor: C ? "border.subtle" : void 0, borderRadius: C ? "md" : void 0, overflow: C ? "hidden" : void 0, children: [
2441
- D ? /* @__PURE__ */ s(pl, { valueLabel: L, actionsLabel: m ? g : void 0 }) : null,
2442
- /* @__PURE__ */ s(en, { sensors: E, collisionDetection: tn, onDragEnd: f ? void 0 : (W) => {
2236
+ /* @__PURE__ */ D(ne, { gap: "none", borderWidth: y ? "1px" : void 0, borderColor: y ? "border.subtle" : void 0, borderRadius: y ? "md" : void 0, overflow: y ? "hidden" : void 0, children: [
2237
+ k ? /* @__PURE__ */ s(ci, { valueLabel: O, actionsLabel: m ? g : void 0 }) : null,
2238
+ /* @__PURE__ */ s(Zt, { sensors: E, collisionDetection: Jt, onDragEnd: f ? void 0 : (W) => {
2443
2239
  const {
2444
- active: H,
2445
- over: N
2240
+ active: M,
2241
+ over: z
2446
2242
  } = W;
2447
- if (!N || H.id === N.id) return;
2448
- const q = r.findIndex((V) => V.id === H.id), j = r.findIndex((V) => V.id === N.id);
2449
- q < 0 || j < 0 || i(Zn(r, q, j).map((V, U) => ({
2243
+ if (!z || M.id === z.id) return;
2244
+ const U = r.findIndex((V) => V.id === M.id), G = r.findIndex((V) => V.id === z.id);
2245
+ U < 0 || G < 0 || l(to(r, U, G).map((V, j) => ({
2450
2246
  ...V,
2451
- sortOrder: U
2247
+ sortOrder: j
2452
2248
  })));
2453
- }, children: /* @__PURE__ */ s(on, { items: r.map((W) => W.id), strategy: Yn, children: r.map((W, H) => /* @__PURE__ */ s(ul, { value: W, isSaving: u, readOnly: f, showDefault: P, showIcons: w, actionOptions: m, actionsLabel: g, colorOptions: b, iconOptions: I, onNameChange: (N) => v(H, {
2454
- name: N
2455
- }), onColorChange: (N) => v(H, {
2456
- color: N
2457
- }), onIconChange: (N) => v(H, {
2458
- icon: N
2459
- }), onActionsChange: (N) => v(H, {
2460
- actions: N
2461
- }), onDelete: () => z(W) }, W.id)) }) }),
2462
- f ? null : /* @__PURE__ */ y(ml, { type: "button", disabled: u, onClick: _, children: [
2463
- /* @__PURE__ */ s(ce, { as: Hn, boxSize: "icon-xs" }),
2249
+ }, children: /* @__PURE__ */ s(tn, { items: r.map((W) => W.id), strategy: eo, children: r.map((W, M) => /* @__PURE__ */ s(ii, { value: W, isSaving: u, readOnly: f, showDefault: T, showIcons: C, actionOptions: m, actionsLabel: g, colorOptions: S, iconOptions: w, onNameChange: (z) => x(M, {
2250
+ name: z
2251
+ }), onColorChange: (z) => x(M, {
2252
+ color: z
2253
+ }), onIconChange: (z) => x(M, {
2254
+ icon: z
2255
+ }), onActionsChange: (z) => x(M, {
2256
+ actions: z
2257
+ }), onDelete: () => _(W) }, W.id)) }) }),
2258
+ f ? null : /* @__PURE__ */ D(ai, { type: "button", disabled: u, onClick: L, children: [
2259
+ /* @__PURE__ */ s(ae, { as: Mn, boxSize: "icon-xs" }),
2464
2260
  /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: h })
2465
2261
  ] }),
2466
- P && r.length > 0 ? /* @__PURE__ */ s(gl, { label: x, values: r, disabled: u || f, onSelect: (W) => c?.(W) }) : null
2262
+ T && r.length > 0 ? /* @__PURE__ */ s(di, { label: v, values: r, disabled: u || f, onSelect: (W) => c?.(W) }) : null
2467
2263
  ] })
2468
2264
  ] }),
2469
- /* @__PURE__ */ s(Qo, { open: !!T, onClose: () => z(null), onDelete: B, headline: S, notificationText: T ? $(T) : "", buttonText: R })
2265
+ /* @__PURE__ */ s(Ho, { open: !!I, onClose: () => _(null), onDelete: N, headline: b, notificationText: I ? $(I) : "", buttonText: P })
2470
2266
  ] });
2471
2267
  };
2472
- function Sl(o) {
2473
- return o.isDefault;
2268
+ function fi(n) {
2269
+ return n.isDefault;
2474
2270
  }
2475
- const xl = (o) => {
2476
- const e = O(13), {
2271
+ const hi = (n) => {
2272
+ const e = B(13), {
2477
2273
  onSave: t,
2478
- onReset: n,
2274
+ onReset: o,
2479
2275
  hasChanges: r,
2480
- isSaving: i,
2481
- resetLabel: l,
2276
+ isSaving: l,
2277
+ resetLabel: i,
2482
2278
  saveLabel: c
2483
- } = o, a = l === void 0 ? "Reset" : l, d = c === void 0 ? "Save" : c;
2279
+ } = n, a = i === void 0 ? "Reset" : i, d = c === void 0 ? "Save" : c;
2484
2280
  let u;
2485
- e[0] !== r || e[1] !== i || e[2] !== n || e[3] !== a ? (u = r ? /* @__PURE__ */ s(ue, { size: "sm", variant: "ghost", onClick: n, disabled: i, children: a }) : null, e[0] = r, e[1] = i, e[2] = n, e[3] = a, e[4] = u) : u = e[4];
2281
+ e[0] !== r || e[1] !== l || e[2] !== o || e[3] !== a ? (u = r ? /* @__PURE__ */ s(ue, { size: "sm", variant: "ghost", onClick: o, disabled: l, children: a }) : null, e[0] = r, e[1] = l, e[2] = o, e[3] = a, e[4] = u) : u = e[4];
2486
2282
  const f = !r;
2487
2283
  let h;
2488
- e[5] !== i || e[6] !== t || e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ s(ue, { size: "sm", variant: "primary", onClick: t, loading: i, disabled: f, children: d }), e[5] = i, e[6] = t, e[7] = d, e[8] = f, e[9] = h) : h = e[9];
2284
+ e[5] !== l || e[6] !== t || e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ s(ue, { size: "sm", variant: "primary", onClick: t, loading: l, disabled: f, children: d }), e[5] = l, e[6] = t, e[7] = d, e[8] = f, e[9] = h) : h = e[9];
2489
2285
  let p;
2490
- return e[10] !== u || e[11] !== h ? (p = /* @__PURE__ */ y(ae, { gap: "xs", children: [
2286
+ return e[10] !== u || e[11] !== h ? (p = /* @__PURE__ */ D(de, { gap: "xs", children: [
2491
2287
  u,
2492
2288
  h
2493
2289
  ] }), e[10] = u, e[11] = h, e[12] = p) : p = e[12], p;
2494
- }, vl = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), Dt = (o, e) => o.map(e).sort(vl), yl = (o, e) => o.find((t) => t.id === e.id), Cl = (o, e, t, n) => t.size > 0 ? !0 : e.some((r) => {
2290
+ }, mi = (n, e) => n.sortOrder - e.sortOrder || n.name.localeCompare(e.name), Rt = (n, e) => n.map(e).sort(mi), pi = (n, e) => n.find((t) => t.id === e.id), gi = (n, e, t, o) => t.size > 0 ? !0 : e.some((r) => {
2495
2291
  if (r.isNew) return !0;
2496
- const i = yl(o, r);
2497
- return i ? n(i, r) || r.sortOrder !== i.sortOrder : !0;
2498
- }), Lt = (o) => o instanceof Error ? o.message : o ? String(o) : null, Qi = (o) => {
2292
+ const l = pi(n, r);
2293
+ return l ? o(l, r) || r.sortOrder !== l.sortOrder : !0;
2294
+ }), $t = (n) => n instanceof Error ? n.message : n ? String(n) : null, Fl = (n) => {
2499
2295
  const {
2500
2296
  errorTitle: e,
2501
2297
  loadingText: t = "Loading...",
2502
- resetLabel: n,
2298
+ resetLabel: o,
2503
2299
  saveLabel: r,
2504
- values: i,
2505
- loadError: l,
2300
+ values: l,
2301
+ loadError: i,
2506
2302
  onSave: c,
2507
2303
  readOnly: a,
2508
2304
  toEditorValue: d,
2509
2305
  valueNeedsUpdate: u,
2510
2306
  ...f
2511
- } = o, [h, p] = fe([]), [m, g] = fe(/* @__PURE__ */ new Set()), [x, b] = fe(!1), [k, A] = fe(null), R = i ?? [];
2307
+ } = n, [h, p] = fe([]), [m, g] = fe(/* @__PURE__ */ new Set()), [v, S] = fe(!1), [R, A] = fe(null), P = l ?? [];
2512
2308
  me(() => {
2513
- i && p(Dt(i, d));
2514
- }, [i, d]);
2515
- const S = async () => {
2516
- b(!0), A(null);
2309
+ l && p(Rt(l, d));
2310
+ }, [l, d]);
2311
+ const b = async () => {
2312
+ S(!0), A(null);
2517
2313
  try {
2518
2314
  await c({
2519
2315
  deletedIds: m,
2520
2316
  drafts: h,
2521
- values: R
2317
+ values: P
2522
2318
  }), g(/* @__PURE__ */ new Set());
2523
- } catch (C) {
2524
- A(C);
2319
+ } catch (y) {
2320
+ A(y);
2525
2321
  } finally {
2526
- b(!1);
2322
+ S(!1);
2527
2323
  }
2528
- }, $ = Cl(R, h, m, u), I = Lt(l) ?? Lt(k), P = (C) => {
2529
- C.isNew || g(/* @__PURE__ */ new Set([...m, C.id])), p(h.filter((D) => D.id !== C.id));
2530
- }, w = () => {
2531
- p(Dt(R, d)), g(/* @__PURE__ */ new Set()), A(null);
2324
+ }, $ = gi(P, h, m, u), w = $t(i) ?? $t(R), T = (y) => {
2325
+ y.isNew || g(/* @__PURE__ */ new Set([...m, y.id])), p(h.filter((k) => k.id !== y.id));
2326
+ }, C = () => {
2327
+ p(Rt(P, d)), g(/* @__PURE__ */ new Set()), A(null);
2532
2328
  };
2533
- return /* @__PURE__ */ y(Q, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2534
- I ? /* @__PURE__ */ s(ht, { status: "error", colorPalette: "red", title: e, size: "sm", children: I }) : null,
2535
- i === void 0 ? /* @__PURE__ */ y(ae, { gap: "sm", color: "fg.muted", children: [
2536
- /* @__PURE__ */ s(jt, { size: "sm" }),
2329
+ return /* @__PURE__ */ D(ne, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2330
+ w ? /* @__PURE__ */ s(dt, { status: "error", colorPalette: "red", title: e, size: "sm", children: w }) : null,
2331
+ l === void 0 ? /* @__PURE__ */ D(de, { gap: "sm", color: "fg.muted", children: [
2332
+ /* @__PURE__ */ s(Ft, { size: "sm" }),
2537
2333
  /* @__PURE__ */ s(F, { textStyle: "paragraph/S/regular", children: t })
2538
- ] }) : /* @__PURE__ */ s(bl, { ...f, readOnly: a, values: h, onValuesChange: p, onDeleteValue: P, onSetDefault: f.showDefault ? (C) => p(h.map((D) => ({
2539
- ...D,
2540
- isDefault: D.id === C.id
2541
- }))) : f.onSetDefault, hasChanges: $, isSaving: x, headerActions: a ? void 0 : /* @__PURE__ */ s(xl, { hasChanges: $, isSaving: x, resetLabel: n, saveLabel: r, onSave: () => {
2542
- S();
2543
- }, onReset: w }) })
2334
+ ] }) : /* @__PURE__ */ s(ui, { ...f, readOnly: a, values: h, onValuesChange: p, onDeleteValue: T, onSetDefault: f.showDefault ? (y) => p(h.map((k) => ({
2335
+ ...k,
2336
+ isDefault: k.id === y.id
2337
+ }))) : f.onSetDefault, hasChanges: $, isSaving: v, headerActions: a ? void 0 : /* @__PURE__ */ s(hi, { hasChanges: $, isSaving: v, resetLabel: o, saveLabel: r, onSave: () => {
2338
+ b();
2339
+ }, onReset: C }) })
2544
2340
  ] });
2545
- }, Ot = {
2341
+ }, Et = {
2546
2342
  sectionOrder: [],
2547
2343
  nodeOrderBySection: {},
2548
2344
  sectionSlotById: {}
2549
- }, wl = "pstdio/ui/tree-list-order", Il = (o) => `${wl}/${o}`, _t = (o) => {
2345
+ }, bi = "pstdio/ui/tree-list-order", Si = (n) => `${bi}/${n}`, kt = (n) => {
2550
2346
  const e = /* @__PURE__ */ new Set(), t = [];
2551
- for (const n of o)
2552
- e.has(n) || (e.add(n), t.push(n));
2347
+ for (const o of n)
2348
+ e.has(o) || (e.add(o), t.push(o));
2553
2349
  return t;
2554
- }, Tl = (o) => ({
2555
- sectionOrder: o.sectionOrder,
2556
- nodeOrderBySection: o.nodeOrderBySection,
2557
- sectionSlotById: o.sectionSlotById
2558
- }), Pl = (o) => lt()(ot((e) => ({
2559
- ...Ot,
2560
- setSectionOrder: (t) => e((n) => ({
2561
- ...n,
2562
- sectionOrder: _t(t)
2350
+ }, xi = (n) => ({
2351
+ sectionOrder: n.sectionOrder,
2352
+ nodeOrderBySection: n.nodeOrderBySection,
2353
+ sectionSlotById: n.sectionSlotById
2354
+ }), vi = (n) => rt()(nt((e) => ({
2355
+ ...Et,
2356
+ setSectionOrder: (t) => e((o) => ({
2357
+ ...o,
2358
+ sectionOrder: kt(t)
2563
2359
  })),
2564
- setNodeOrder: (t, n) => e((r) => ({
2360
+ setNodeOrder: (t, o) => e((r) => ({
2565
2361
  ...r,
2566
2362
  nodeOrderBySection: {
2567
2363
  ...r.nodeOrderBySection,
2568
- [t]: _t(n)
2364
+ [t]: kt(o)
2569
2365
  }
2570
2366
  })),
2571
- setSectionSlot: (t, n) => e((r) => ({
2367
+ setSectionSlot: (t, o) => e((r) => ({
2572
2368
  ...r,
2573
2369
  sectionSlotById: {
2574
2370
  ...r.sectionSlotById,
2575
- [t]: n
2371
+ [t]: o
2576
2372
  }
2577
2373
  })),
2578
2374
  resetSectionOrder: () => e((t) => ({
2579
2375
  ...t,
2580
2376
  sectionOrder: []
2581
2377
  })),
2582
- resetNodeOrder: (t) => e((n) => {
2583
- if (!(t in n.nodeOrderBySection)) return n;
2378
+ resetNodeOrder: (t) => e((o) => {
2379
+ if (!(t in o.nodeOrderBySection)) return o;
2584
2380
  const {
2585
2381
  [t]: r,
2586
- ...i
2587
- } = n.nodeOrderBySection;
2382
+ ...l
2383
+ } = o.nodeOrderBySection;
2588
2384
  return {
2589
- ...n,
2590
- nodeOrderBySection: i
2385
+ ...o,
2386
+ nodeOrderBySection: l
2591
2387
  };
2592
2388
  }),
2593
- reset: () => e(Ot)
2389
+ reset: () => e(Et)
2594
2390
  }), {
2595
- name: Il(o.storageKey),
2596
- storage: rt(Ve),
2597
- partialize: Tl
2598
- })), zt = /* @__PURE__ */ new Map(), Al = (o) => {
2599
- const e = zt.get(o);
2391
+ name: Si(n.storageKey),
2392
+ storage: ot(He),
2393
+ partialize: xi
2394
+ })), Ot = /* @__PURE__ */ new Map(), yi = (n) => {
2395
+ const e = Ot.get(n);
2600
2396
  if (e) return e;
2601
- const t = Pl({
2602
- storageKey: o
2397
+ const t = vi({
2398
+ storageKey: n
2603
2399
  });
2604
- return zt.set(o, t), t;
2605
- }, qi = (o, e) => {
2606
- const t = O(2);
2607
- let n;
2608
- return t[0] !== o ? (n = Al(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2609
- }, Rl = (o, e) => {
2610
- if (e.length === 0) return o;
2611
- const t = new Map(o.map((l, c) => [l.id, c])), n = /* @__PURE__ */ new Set(), r = [];
2612
- for (const l of e) {
2613
- const c = t.get(l);
2614
- c === void 0 || n.has(c) || (n.add(c), r.push(o[c]));
2400
+ return Ot.set(n, t), t;
2401
+ }, Vl = (n, e) => {
2402
+ const t = B(2);
2403
+ let o;
2404
+ return t[0] !== n ? (o = yi(n), t[0] = n, t[1] = o) : o = t[1], tt(o, e);
2405
+ }, Ci = (n, e) => {
2406
+ if (e.length === 0) return n;
2407
+ const t = new Map(n.map((i, c) => [i.id, c])), o = /* @__PURE__ */ new Set(), r = [];
2408
+ for (const i of e) {
2409
+ const c = t.get(i);
2410
+ c === void 0 || o.has(c) || (o.add(c), r.push(n[c]));
2615
2411
  }
2616
- let i = r.length > 0 && r.length !== o.length;
2617
- for (let l = 0; l < o.length; l += 1)
2618
- n.has(l) || (r.length !== l && !i && (i = !0), r.push(o[l]));
2619
- if (!i) {
2620
- for (let l = 0; l < o.length; l += 1)
2621
- if (o[l] !== r[l]) {
2622
- i = !0;
2412
+ let l = r.length > 0 && r.length !== n.length;
2413
+ for (let i = 0; i < n.length; i += 1)
2414
+ o.has(i) || (r.length !== i && !l && (l = !0), r.push(n[i]));
2415
+ if (!l) {
2416
+ for (let i = 0; i < n.length; i += 1)
2417
+ if (n[i] !== r[i]) {
2418
+ l = !0;
2623
2419
  break;
2624
2420
  }
2625
2421
  }
2626
- return i ? r : o;
2627
- }, Ki = (o, e, t) => {
2628
- let n = !1;
2629
- const r = Rl(o, e);
2630
- r !== o && (n = !0);
2631
- const i = new Map(o.flatMap((a) => a.nodes.map((d) => [d.id, d]))), l = new Set(Object.entries(t).filter(([a]) => o.some((d) => d.id === a)).flatMap(([, a]) => a.filter((d) => i.has(d)))), c = [];
2422
+ return l ? r : n;
2423
+ }, Gl = (n, e, t) => {
2424
+ let o = !1;
2425
+ const r = Ci(n, e);
2426
+ r !== n && (o = !0);
2427
+ const l = new Map(n.flatMap((a) => a.nodes.map((d) => [d.id, d]))), i = new Set(Object.entries(t).filter(([a]) => n.some((d) => d.id === a)).flatMap(([, a]) => a.filter((d) => l.has(d)))), c = [];
2632
2428
  for (const a of r) {
2633
2429
  const d = t[a.id];
2634
2430
  if (!(a.id in t)) {
2635
- const p = a.nodes.filter((m) => !l.has(m.id));
2636
- p.length === a.nodes.length ? c.push(a) : (n = !0, c.push({
2431
+ const p = a.nodes.filter((m) => !i.has(m.id));
2432
+ p.length === a.nodes.length ? c.push(a) : (o = !0, c.push({
2637
2433
  ...a,
2638
2434
  nodes: p
2639
2435
  }));
2640
2436
  continue;
2641
2437
  }
2642
2438
  const u = (d ?? []).flatMap((p) => {
2643
- const m = i.get(p);
2439
+ const m = l.get(p);
2644
2440
  return m ? [m] : [];
2645
- }), f = a.nodes.filter((p) => !l.has(p.id)), h = [...u, ...f];
2646
- h.length !== a.nodes.length || h.some((p, m) => p !== a.nodes[m]) ? (n = !0, c.push({
2441
+ }), f = a.nodes.filter((p) => !i.has(p.id)), h = [...u, ...f];
2442
+ h.length !== a.nodes.length || h.some((p, m) => p !== a.nodes[m]) ? (o = !0, c.push({
2647
2443
  ...a,
2648
2444
  nodes: h
2649
2445
  })) : c.push(a);
2650
2446
  }
2651
- return n ? c : o;
2652
- }, Nt = {
2447
+ return o ? c : n;
2448
+ }, Lt = {
2653
2449
  sectionOverrides: {},
2654
2450
  nodeOverrides: {}
2655
- }, kl = "pstdio/ui/tree-list-visibility", $l = (o) => `${kl}/${o}`, El = (o, e) => o ?? (e ? "hidden" : "shown"), Dl = (o) => o === "hidden" ? "shown" : "hidden", je = (o, e, t) => {
2451
+ }, wi = "pstdio/ui/tree-list-visibility", Ii = (n) => `${wi}/${n}`, Ti = (n, e) => n ?? (e ? "hidden" : "shown"), Ai = (n) => n === "hidden" ? "shown" : "hidden", Ve = (n, e, t) => {
2656
2452
  if (t === void 0) {
2657
- if (!(e in o)) return o;
2453
+ if (!(e in n)) return n;
2658
2454
  const {
2659
- [e]: n,
2455
+ [e]: o,
2660
2456
  ...r
2661
- } = o;
2457
+ } = n;
2662
2458
  return r;
2663
2459
  }
2664
- return o[e] === t ? o : {
2665
- ...o,
2460
+ return n[e] === t ? n : {
2461
+ ...n,
2666
2462
  [e]: t
2667
2463
  };
2668
- }, Bt = (o, e, t) => {
2669
- const n = Dl(El(o[e], t));
2670
- return je(o, e, n);
2671
- }, Ll = (o) => ({
2672
- sectionOverrides: o.sectionOverrides,
2673
- nodeOverrides: o.nodeOverrides
2674
- }), Ol = (o) => lt()(ot((e) => ({
2675
- ...Nt,
2676
- setSection: (t, n) => e((r) => ({
2464
+ }, _t = (n, e, t) => {
2465
+ const o = Ai(Ti(n[e], t));
2466
+ return Ve(n, e, o);
2467
+ }, Pi = (n) => ({
2468
+ sectionOverrides: n.sectionOverrides,
2469
+ nodeOverrides: n.nodeOverrides
2470
+ }), Di = (n) => rt()(nt((e) => ({
2471
+ ...Lt,
2472
+ setSection: (t, o) => e((r) => ({
2677
2473
  ...r,
2678
- sectionOverrides: je(r.sectionOverrides, t, n)
2474
+ sectionOverrides: Ve(r.sectionOverrides, t, o)
2679
2475
  })),
2680
- setNode: (t, n) => e((r) => ({
2476
+ setNode: (t, o) => e((r) => ({
2681
2477
  ...r,
2682
- nodeOverrides: je(r.nodeOverrides, t, n)
2478
+ nodeOverrides: Ve(r.nodeOverrides, t, o)
2683
2479
  })),
2684
- toggleSection: (t, n) => e((r) => ({
2480
+ toggleSection: (t, o) => e((r) => ({
2685
2481
  ...r,
2686
- sectionOverrides: Bt(r.sectionOverrides, t, n)
2482
+ sectionOverrides: _t(r.sectionOverrides, t, o)
2687
2483
  })),
2688
- toggleNode: (t, n) => e((r) => ({
2484
+ toggleNode: (t, o) => e((r) => ({
2689
2485
  ...r,
2690
- nodeOverrides: Bt(r.nodeOverrides, t, n)
2486
+ nodeOverrides: _t(r.nodeOverrides, t, o)
2691
2487
  })),
2692
- clearSection: (t) => e((n) => ({
2693
- ...n,
2694
- sectionOverrides: je(n.sectionOverrides, t, void 0)
2488
+ clearSection: (t) => e((o) => ({
2489
+ ...o,
2490
+ sectionOverrides: Ve(o.sectionOverrides, t, void 0)
2695
2491
  })),
2696
- clearNode: (t) => e((n) => ({
2697
- ...n,
2698
- nodeOverrides: je(n.nodeOverrides, t, void 0)
2492
+ clearNode: (t) => e((o) => ({
2493
+ ...o,
2494
+ nodeOverrides: Ve(o.nodeOverrides, t, void 0)
2699
2495
  })),
2700
- reset: () => e(Nt)
2496
+ reset: () => e(Lt)
2701
2497
  }), {
2702
- name: $l(o.storageKey),
2703
- storage: rt(Ve),
2704
- partialize: Ll
2705
- })), Wt = /* @__PURE__ */ new Map(), _l = (o) => {
2706
- const e = Wt.get(o);
2498
+ name: Ii(n.storageKey),
2499
+ storage: ot(He),
2500
+ partialize: Pi
2501
+ })), zt = /* @__PURE__ */ new Map(), Ri = (n) => {
2502
+ const e = zt.get(n);
2707
2503
  if (e) return e;
2708
- const t = Ol({
2709
- storageKey: o
2504
+ const t = Di({
2505
+ storageKey: n
2710
2506
  });
2711
- return Wt.set(o, t), t;
2712
- }, Xi = (o, e) => {
2713
- const t = O(2);
2714
- let n;
2715
- return t[0] !== o ? (n = _l(o), t[0] = o, t[1] = n) : n = t[1], nt(n, e);
2716
- }, zl = [], fn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), Nl = (o) => {
2717
- const e = o.toLowerCase().split("."), t = [];
2718
- for (let n = 1; n < e.length; n += 1) t.push(e.slice(n).join("."));
2507
+ return zt.set(n, t), t;
2508
+ }, jl = (n, e) => {
2509
+ const t = B(2);
2510
+ let o;
2511
+ return t[0] !== n ? (o = Ri(n), t[0] = n, t[1] = o) : o = t[1], tt(o, e);
2512
+ }, $i = [], cn = (n, e) => typeof n == "string" && e.some((t) => t.id === n), Ei = (n) => {
2513
+ const e = n.toLowerCase().split("."), t = [];
2514
+ for (let o = 1; o < e.length; o += 1) t.push(e.slice(o).join("."));
2719
2515
  return t;
2720
- }, Bl = (o, e, t) => {
2721
- if (t) return o.defaults.folder;
2722
- const n = o.fileNames[e.toLowerCase()];
2723
- if (n) return n;
2724
- for (const r of Nl(e)) {
2725
- const i = o.fileExtensions[r];
2726
- if (i) return i;
2516
+ }, ki = (n, e, t) => {
2517
+ if (t) return n.defaults.folder;
2518
+ const o = n.fileNames[e.toLowerCase()];
2519
+ if (o) return o;
2520
+ for (const r of Ei(e)) {
2521
+ const l = n.fileExtensions[r];
2522
+ if (l) return l;
2727
2523
  }
2728
- return o.defaults.file;
2729
- }, Wl = (o, e) => {
2524
+ return n.defaults.file;
2525
+ }, Oi = (n, e) => {
2730
2526
  if (e.fontId) {
2731
- const t = o.fonts.find((n) => n.fontFamily === `${o.id}-${e.fontId}`);
2527
+ const t = n.fonts.find((o) => o.fontFamily === `${n.id}-${e.fontId}`);
2732
2528
  if (t) return t.fontFamily;
2733
2529
  }
2734
- return o.fonts[0]?.fontFamily;
2735
- }, Hl = (o) => {
2736
- const e = /^\\([0-9a-fA-F]+)$/.exec(o);
2737
- return e ? String.fromCodePoint(Number.parseInt(e[1], 16)) : o;
2738
- }, Fl = (o, e, t = !1) => {
2739
- if (!o) return;
2740
- const n = Bl(o, e, t);
2530
+ return n.fonts[0]?.fontFamily;
2531
+ }, Li = (n) => {
2532
+ const e = /^\\([0-9a-fA-F]+)$/.exec(n);
2533
+ return e ? String.fromCodePoint(Number.parseInt(e[1], 16)) : n;
2534
+ }, _i = (n, e, t = !1) => {
2741
2535
  if (!n) return;
2742
- const r = o.definitions[n];
2536
+ const o = ki(n, e, t);
2537
+ if (!o) return;
2538
+ const r = n.definitions[o];
2743
2539
  if (!r?.fontCharacter) return;
2744
- const i = Wl(o, r);
2745
- if (i)
2540
+ const l = Oi(n, r);
2541
+ if (l)
2746
2542
  return {
2747
- fontFamily: i,
2748
- fontCharacter: Hl(r.fontCharacter),
2543
+ fontFamily: l,
2544
+ fontCharacter: Li(r.fontCharacter),
2749
2545
  fontColor: r.fontColor
2750
2546
  };
2751
- }, Ht = "data-pstdio-file-icon-fonts", Ml = (o) => {
2752
- const e = o.src.map((t) => `url("${t.url}")${t.format ? ` format("${t.format}")` : ""}`).join(", ");
2753
- return ["@font-face {", ` font-family: "${o.fontFamily}";`, ` src: ${e};`, ` font-weight: ${o.weight ?? "normal"};`, ` font-style: ${o.style ?? "normal"};`, "}"].join(`
2547
+ }, Nt = "data-pstdio-file-icon-fonts", zi = (n) => {
2548
+ const e = n.src.map((t) => `url("${t.url}")${t.format ? ` format("${t.format}")` : ""}`).join(", ");
2549
+ return ["@font-face {", ` font-family: "${n.fontFamily}";`, ` src: ${e};`, ` font-weight: ${n.weight ?? "normal"};`, ` font-style: ${n.style ?? "normal"};`, "}"].join(`
2754
2550
  `);
2755
- }, Vl = (o, e) => {
2551
+ }, Ni = (n, e) => {
2756
2552
  if (typeof document > "u") return;
2757
- let t = document.querySelector(`style[${Ht}]`);
2758
- t || (t = document.createElement("style"), t.setAttribute(Ht, ""), document.head.appendChild(t));
2759
- const n = e.find((r) => r.id === o);
2760
- t.textContent = (n?.fonts ?? []).map(Ml).join(`
2553
+ let t = document.querySelector(`style[${Nt}]`);
2554
+ t || (t = document.createElement("style"), t.setAttribute(Nt, ""), document.head.appendChild(t));
2555
+ const o = e.find((r) => r.id === n);
2556
+ t.textContent = (o?.fonts ?? []).map(zi).join(`
2761
2557
 
2762
2558
  `);
2763
- }, hn = "file-icon-theme-preference", ut = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, mn = In(null), Gl = (o) => {
2764
- if (typeof window > "u") return ut(o);
2765
- const e = Ve().getItem(hn);
2766
- return fn(e, o) ? e : ut(o);
2767
- }, Yi = (o) => {
2768
- const e = O(18), {
2559
+ }, dn = "file-icon-theme-preference", at = (n) => n.find((e) => e.id.endsWith(".seti"))?.id ?? n[0]?.id ?? null, un = Fn(null), Bi = (n) => {
2560
+ if (typeof window > "u") return at(n);
2561
+ const e = He().getItem(dn);
2562
+ return cn(e, n) ? e : at(n);
2563
+ }, Ul = (n) => {
2564
+ const e = B(18), {
2769
2565
  children: t,
2770
- themePreferences: n
2771
- } = o, r = n === void 0 ? zl : n;
2772
- let i;
2773
- e[0] !== r ? (i = () => Gl(r), e[0] = r, e[1] = i) : i = e[1];
2774
- const [l, c] = fe(i);
2566
+ themePreferences: o
2567
+ } = n, r = o === void 0 ? $i : o;
2568
+ let l;
2569
+ e[0] !== r ? (l = () => Bi(r), e[0] = r, e[1] = l) : l = e[1];
2570
+ const [i, c] = fe(l);
2775
2571
  let a, d;
2776
- e[2] !== l || e[3] !== r ? (a = () => {
2777
- const m = fn(l, r) ? l : ut(r);
2778
- if (m !== l) {
2572
+ e[2] !== i || e[3] !== r ? (a = () => {
2573
+ const m = cn(i, r) ? i : at(r);
2574
+ if (m !== i) {
2779
2575
  c(m);
2780
2576
  return;
2781
2577
  }
2782
- Vl(m, r), typeof window < "u" && m && Ve().setItem(hn, m);
2783
- }, d = [l, r], e[2] = l, e[3] = r, e[4] = a, e[5] = d) : (a = e[4], d = e[5]), me(a, d);
2578
+ Ni(m, r), typeof window < "u" && m && He().setItem(dn, m);
2579
+ }, d = [i, r], e[2] = i, e[3] = r, e[4] = a, e[5] = d) : (a = e[4], d = e[5]), me(a, d);
2784
2580
  let u;
2785
- if (e[6] !== l || e[7] !== r) {
2581
+ if (e[6] !== i || e[7] !== r) {
2786
2582
  let m;
2787
- e[9] !== l ? (m = (g) => g.id === l, e[9] = l, e[10] = m) : m = e[10], u = r.find(m), e[6] = l, e[7] = r, e[8] = u;
2583
+ e[9] !== i ? (m = (g) => g.id === i, e[9] = i, e[10] = m) : m = e[10], u = r.find(m), e[6] = i, e[7] = r, e[8] = u;
2788
2584
  } else
2789
2585
  u = e[8];
2790
2586
  const f = u;
2791
2587
  let h;
2792
- e[11] !== f || e[12] !== l || e[13] !== r ? (h = {
2793
- fileIconThemePreference: l,
2588
+ e[11] !== f || e[12] !== i || e[13] !== r ? (h = {
2589
+ fileIconThemePreference: i,
2794
2590
  fileIconThemePreferences: r,
2795
2591
  activeFileIconTheme: f,
2796
2592
  setFileIconThemePreference: c
2797
- }, e[11] = f, e[12] = l, e[13] = r, e[14] = h) : h = e[14];
2593
+ }, e[11] = f, e[12] = i, e[13] = r, e[14] = h) : h = e[14];
2798
2594
  let p;
2799
- return e[15] !== t || e[16] !== h ? (p = /* @__PURE__ */ s(mn, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = p) : p = e[17], p;
2800
- }, Zi = () => {
2801
- const o = Tn(mn);
2802
- if (!o)
2595
+ return e[15] !== t || e[16] !== h ? (p = /* @__PURE__ */ s(un, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = p) : p = e[17], p;
2596
+ }, Ql = () => {
2597
+ const n = Vn(un);
2598
+ if (!n)
2803
2599
  throw new Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
2804
- return o;
2805
- }, Ji = (o, e = {}) => {
2600
+ return n;
2601
+ }, Kl = (n, e = {}) => {
2806
2602
  const {
2807
2603
  isDirectory: t = !1,
2808
- theme: n,
2604
+ theme: o,
2809
2605
  size: r = 16
2810
- } = e, i = Fl(n, o, t);
2811
- if (i) {
2606
+ } = e, l = _i(o, n, t);
2607
+ if (l) {
2812
2608
  const c = {
2813
- fontFamily: `"${i.fontFamily}"`,
2814
- color: i.fontColor,
2609
+ fontFamily: `"${l.fontFamily}"`,
2610
+ color: l.fontColor,
2815
2611
  fontSize: r,
2816
2612
  lineHeight: 1,
2817
2613
  display: "inline-flex"
2818
2614
  };
2819
- return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: c, children: i.fontCharacter });
2615
+ return /* @__PURE__ */ s("span", { "aria-hidden": "true", style: c, children: l.fontCharacter });
2820
2616
  }
2821
- if (t) return /* @__PURE__ */ s(Kt, { size: r });
2822
- const l = Qn(o);
2823
- return /* @__PURE__ */ s(l, { size: r });
2617
+ if (t) return /* @__PURE__ */ s(Ut, { size: r });
2618
+ const i = Xn(n);
2619
+ return /* @__PURE__ */ s(i, { size: r });
2824
2620
  };
2825
2621
  export {
2826
- hs as ANCHOR_GRID_VALUES,
2827
- ms as ActionInput,
2828
- Si as Activity,
2829
- it as ActivityAvatar,
2830
- oo as ActivityComment,
2622
+ ml as Activity,
2623
+ Vt as ActivityAvatar,
2624
+ vn as ActivityComment,
2831
2625
  ro as ActivityComposer,
2832
- io as ActivityEvent,
2833
- co as ActivityFeed,
2834
- ao as ActivityHeader,
2835
- no as ActivityReply,
2836
- so as ActivityRoot,
2837
- uo as ActivityTimeline,
2838
- ht as AlertMessage,
2839
- ps as AnchorGridInput,
2840
- Pi as AttachedMenu,
2841
- Ai as AttachedPanel,
2842
- gs as AttachmentChip,
2843
- bs as BooleanInput,
2844
- Ei as Breadcrumb,
2845
- Ri as BubbleButton,
2846
- ki as BubblePanel,
2847
- ns as ChakraProvider,
2848
- ea as Checkbox,
2849
- Ss as Chip,
2850
- xs as ColorInput,
2851
- or as ContentPlaceholder,
2852
- Di as ContentPlaceholderLabel,
2853
- xi as DEFAULT_PALETTE_ASSET_LIMIT,
2854
- vs as DateInput,
2855
- Qo as DeleteConfirmationModal,
2856
- la as EmptyState,
2857
- Li as ErrorBoundary,
2858
- Yi as FileIconThemePreferenceProvider,
2859
- ys as FileUploadInput,
2860
- Mn as Header,
2861
- Ci as HorizontalMenuStack,
2862
- Cs as HorizontalTextInput,
2863
- dr as IconColorPicker,
2864
- Oi as IntegrationCard,
2865
- wi as ItemSection,
2866
- Qe as ListRow,
2867
- ws as MarkdownInput,
2868
- Ti as NotificationCenter,
2869
- Is as NumberInput,
2870
- wt as PANEL_HEADER_CONTROL_SIZE,
2871
- Oo as PANEL_HEADER_HEIGHT,
2872
- Ii as PANEL_HEADER_TAB_SIZE,
2873
- vi as Palette,
2874
- yi as PaletteShortcut,
2875
- Xs as ParamEditor,
2876
- Ts as ParamEditorControlItem,
2877
- Ni as ParamEditorControlList,
2878
- Ps as ParamEditorField,
2879
- As as ParamEditorFieldLabel,
2880
- Rs as ParamEditorInlineGroup,
2881
- ks as ParamEditorLabel,
2882
- $s as ParamEditorReadOnlyField,
2883
- Es as ParamEditorReadOnlyValue,
2884
- Ys as ParamEditorRow,
2885
- Zs as ParamEditorSection,
2886
- ds as Radio,
2887
- us as RadioGroup,
2888
- Ds as RangeInput,
2889
- $i as RepoPickerDialog,
2890
- ss as ResizableSplitLayout,
2891
- rs as ResourceActionMenu,
2892
- ta as ResourceBadge,
2893
- Yt as ResourceContextMenu,
2894
- Ls as ResourceInput,
2895
- tt as ScrollArea,
2896
- an as SearchModalContent,
2897
- ls as SearchableMenu,
2898
- _i as SegmentedControl,
2899
- Os as SegmentedInput,
2900
- _s as SelectionInput,
2901
- Vs as SessionIndicator,
2902
- Bi as Sidenav,
2903
- ur as SimpleCard,
2904
- fr as SimpleCardBody,
2905
- zs as Slider,
2906
- na as Switch,
2907
- bl as TagEditor,
2908
- al as TagEditorHeading,
2909
- xl as TagEditorSaveBar,
2910
- Qi as TagSettingsPanel,
2911
- ir as TagSwatch,
2912
- Ns as TextInput,
2913
- ua as ThemePreferenceProvider,
2914
- zi as Toaster,
2915
- Ue as Tooltip,
2916
- Vn as TreeList,
2917
- as as TreeListDragProvider,
2918
- Bs as VectorInput,
2919
- ji as WindowTabs,
2920
- Ui as WindowTitleBar,
2921
- Gs as WorkspaceBadge,
2922
- Vl as applyFileIconThemePreference,
2923
- fa as applyThemePreference,
2924
- Ki as applyTreeListOrder,
2925
- Gi as buildTabVisibilityMenuActions,
2926
- Mi as buildTreeVisibilityMenuActions,
2927
- Ws as createGlyphIcon,
2928
- sa as createMonacoThemeFromVsCodeTheme,
2929
- aa as createThemePreferenceFromVsCodeTheme,
2930
- zl as defaultFileIconThemePreferences,
2931
- ha as defaultThemePreferences,
2932
- go as filterPaletteEntries,
2933
- Hi as filterVisibleNodes,
2934
- Fi as filterVisibleSections,
2935
- Vi as filterVisibleTabs,
2936
- Qn as getFileTypeIcon,
2937
- Gn as getIconComponent,
2938
- ma as getInitialThemePreference,
2939
- Gr as getTabVisibilityStore,
2940
- pa as getThemePreferenceClassName,
2941
- ga as getThemePreferenceClassNames,
2942
- ba as getThemePreferenceMode,
2943
- Al as getTreeListOrderStore,
2944
- _l as getTreeListVisibilityStore,
2945
- js as handleDialogAcceptShortcut,
2946
- oa as installPrismGlobal,
2947
- Hs as isAnchorGridValue,
2948
- fn as isFileIconThemePreference,
2949
- Fs as isParamEditorRichControl,
2950
- Sa as isThemePreference,
2951
- Un as optionColors,
2952
- jn as optionIcons,
2953
- ca as psTheme,
2954
- Ji as resolveFileIconElement,
2955
- Fl as resolveFileIconGlyph,
2956
- Us as resolveSessionIndicatorColor,
2957
- Qs as resolveSessionIndicatorIcon,
2958
- Ge as resolveVisibility,
2959
- qs as sessionCompletionStatuses,
2960
- Sr as toaster,
2961
- Zi as useFileIconThemePreference,
2962
- Be as useSidenavStore,
2963
- Wi as useTabVisibilityStore,
2964
- xa as useThemePreference,
2965
- qi as useTreeListOrderStore,
2966
- Xi as useTreeListVisibilityStore
2626
+ yn as ActivityEvent,
2627
+ wn as ActivityFeed,
2628
+ In as ActivityHeader,
2629
+ xn as ActivityReply,
2630
+ Tn as ActivityRoot,
2631
+ Cn as ActivityTimeline,
2632
+ dt as AlertMessage,
2633
+ Cl as AttachedMenu,
2634
+ wl as AttachedPanel,
2635
+ is as AttachmentChip,
2636
+ Pl as Breadcrumb,
2637
+ Il as BubbleButton,
2638
+ Tl as BubblePanel,
2639
+ Yl as ChakraProvider,
2640
+ bs as Checkbox,
2641
+ ls as Chip,
2642
+ Yo as ContentPlaceholder,
2643
+ Dl as ContentPlaceholderLabel,
2644
+ pl as DEFAULT_PALETTE_ASSET_LIMIT,
2645
+ Ho as DeleteConfirmationModal,
2646
+ Cs as EmptyState,
2647
+ Rl as ErrorBoundary,
2648
+ Ul as FileIconThemePreferenceProvider,
2649
+ jn as Header,
2650
+ Sl as HorizontalMenuStack,
2651
+ rr as IconColorPicker,
2652
+ $l as IntegrationCard,
2653
+ xl as ItemSection,
2654
+ je as ListRow,
2655
+ yl as NotificationCenter,
2656
+ vt as PANEL_HEADER_CONTROL_SIZE,
2657
+ Do as PANEL_HEADER_HEIGHT,
2658
+ vl as PANEL_HEADER_TAB_SIZE,
2659
+ gl as Palette,
2660
+ bl as PaletteShortcut,
2661
+ Is as Radio,
2662
+ Ts as RadioGroup,
2663
+ Al as RepoPickerDialog,
2664
+ ns as ResizableSplitLayout,
2665
+ Jl as ResourceActionMenu,
2666
+ Ss as ResourceBadge,
2667
+ qt as ResourceContextMenu,
2668
+ et as ScrollArea,
2669
+ rn as SearchModalContent,
2670
+ es as SearchableMenu,
2671
+ El as SegmentedControl,
2672
+ ds as SessionIndicator,
2673
+ Ol as Sidenav,
2674
+ ir as SimpleCard,
2675
+ lr as SimpleCardBody,
2676
+ ss as Slider,
2677
+ xs as Switch,
2678
+ ui as TagEditor,
2679
+ ni as TagEditorHeading,
2680
+ hi as TagEditorSaveBar,
2681
+ Fl as TagSettingsPanel,
2682
+ er as TagSwatch,
2683
+ Es as ThemePreferenceProvider,
2684
+ kl as Toaster,
2685
+ Ge as Tooltip,
2686
+ Un as TreeList,
2687
+ os as TreeListDragProvider,
2688
+ Ml as WindowTabs,
2689
+ Hl as WindowTitleBar,
2690
+ us as WorkspaceBadge,
2691
+ Ni as applyFileIconThemePreference,
2692
+ ks as applyThemePreference,
2693
+ Gl as applyTreeListOrder,
2694
+ Wl as buildTabVisibilityMenuActions,
2695
+ Nl as buildTreeVisibilityMenuActions,
2696
+ as as createGlyphIcon,
2697
+ Ps as createMonacoThemeFromVsCodeTheme,
2698
+ Ds as createThemePreferenceFromVsCodeTheme,
2699
+ $i as defaultFileIconThemePreferences,
2700
+ Os as defaultThemePreferences,
2701
+ co as filterPaletteEntries,
2702
+ _l as filterVisibleNodes,
2703
+ zl as filterVisibleSections,
2704
+ Bl as filterVisibleTabs,
2705
+ Xn as getFileTypeIcon,
2706
+ Qn as getIconComponent,
2707
+ Ls as getInitialThemePreference,
2708
+ Br as getTabVisibilityStore,
2709
+ _s as getThemePreferenceClassName,
2710
+ zs as getThemePreferenceClassNames,
2711
+ Ns as getThemePreferenceMode,
2712
+ yi as getTreeListOrderStore,
2713
+ Ri as getTreeListVisibilityStore,
2714
+ fs as handleDialogAcceptShortcut,
2715
+ vs as installPrismGlobal,
2716
+ cn as isFileIconThemePreference,
2717
+ Bs as isThemePreference,
2718
+ qn as optionColors,
2719
+ Kn as optionIcons,
2720
+ Rs as psTheme,
2721
+ Kl as resolveFileIconElement,
2722
+ _i as resolveFileIconGlyph,
2723
+ hs as resolveSessionIndicatorColor,
2724
+ ms as resolveSessionIndicatorIcon,
2725
+ Fe as resolveVisibility,
2726
+ ps as sessionCompletionStatuses,
2727
+ fr as toaster,
2728
+ Ql as useFileIconThemePreference,
2729
+ Ne as useSidenavStore,
2730
+ Ll as useTabVisibilityStore,
2731
+ Ws as useThemePreference,
2732
+ Vl as useTreeListOrderStore,
2733
+ jl as useTreeListVisibilityStore
2967
2734
  };
2968
2735
  //# sourceMappingURL=index.js.map