@pstdio/ui 0.4.0 → 0.5.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 (111) hide show
  1. package/dist/MermaidComponent-DwEDwpo2.js +124 -0
  2. package/dist/MermaidComponent-DwEDwpo2.js.map +1 -0
  3. package/dist/chat-ui.js +609 -505
  4. package/dist/chat-ui.js.map +1 -1
  5. package/dist/components/chat-ui/components/chat-input-actions.d.ts +10 -0
  6. package/dist/components/chat-ui/components/chat-panel.d.ts +1 -0
  7. package/dist/components/chat-ui/tool-rendering/apply-patch-renderer.d.ts +2 -0
  8. package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +8 -7
  9. package/dist/components/chat-ui/tool-rendering/edit-renderer.d.ts +2 -0
  10. package/dist/components/chat-ui/tool-rendering/shared.d.ts +52 -0
  11. package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +6 -0
  12. package/dist/components/chat-ui/tool-rendering/todo-write-renderer.d.ts +2 -0
  13. package/dist/components/menu-item.d.ts +2 -1
  14. package/dist/components/resource-context-menu.d.ts +20 -0
  15. package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +2 -1
  16. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockActionsPlugin.d.ts +4 -0
  17. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +2 -0
  18. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeHighlightingPlugin.d.ts +1 -0
  19. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +11 -0
  20. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.d.ts +6 -0
  21. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +23 -0
  22. package/dist/components/rich-text/shared/plugins/MermaidPlugin/index.d.ts +1 -0
  23. package/dist/components/rich-text/utils/markdown.d.ts +1 -0
  24. package/dist/components/session-indicator.d.ts +1 -1
  25. package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +5 -1
  26. package/dist/components/tickets/tag-badge.d.ts +10 -0
  27. package/dist/components/tickets/tag-option-icon.d.ts +2 -0
  28. package/dist/components/tickets/ticket-board.d.ts +2 -0
  29. package/dist/components/tickets/ticket-card.d.ts +10 -0
  30. package/dist/components/tickets/ticket-grouping.d.ts +2 -2
  31. package/dist/components/tickets/ticket-list.d.ts +6 -1
  32. package/dist/components/tickets/tickets-workspace.d.ts +9 -3
  33. package/dist/components/tickets/types.d.ts +22 -5
  34. package/dist/components/tickets/workspace-helpers.d.ts +13 -0
  35. package/dist/get-file-type-icon-Bwqf1WXA.js +101 -0
  36. package/dist/get-file-type-icon-Bwqf1WXA.js.map +1 -0
  37. package/dist/index.d.ts +4 -2
  38. package/dist/index.js +1876 -1642
  39. package/dist/index.js.map +1 -1
  40. package/dist/rich-message-BVRk9BSD.js +1503 -0
  41. package/dist/rich-message-BVRk9BSD.js.map +1 -0
  42. package/dist/rich-text.js +414 -255
  43. package/dist/rich-text.js.map +1 -1
  44. package/dist/style.css +1 -1
  45. package/package.json +3 -1
  46. package/dist/components/attached-panel.utils.test.d.ts +0 -1
  47. package/dist/components/breadcrumb.stories.d.ts +0 -25
  48. package/dist/components/button.stories.d.ts +0 -18
  49. package/dist/components/chat-ui/components/ai-conversation.stories.d.ts +0 -6
  50. package/dist/components/chat-ui/components/ai-message.stories.d.ts +0 -6
  51. package/dist/components/chat-ui/components/ai-response.stories.d.ts +0 -7
  52. package/dist/components/chat-ui/components/attachment-list.stories.d.ts +0 -6
  53. package/dist/components/chat-ui/components/chat-input.stories.d.ts +0 -7
  54. package/dist/components/chat-ui/components/chat-panel-alerts.stories.d.ts +0 -9
  55. package/dist/components/chat-ui/components/chat-panel.stories.d.ts +0 -10
  56. package/dist/components/chat-ui/components/message-parts-renderer.stories.d.ts +0 -9
  57. package/dist/components/chat-ui/components/model-swap-separator.stories.d.ts +0 -6
  58. package/dist/components/chat-ui/components/tool-invocation-timeline.stories.d.ts +0 -6
  59. package/dist/components/chat-ui/components/workspace-hub.stories.d.ts +0 -6
  60. package/dist/components/checkbox.stories.d.ts +0 -15
  61. package/dist/components/column-file-browser.stories.d.ts +0 -15
  62. package/dist/components/data-table/data-table.stories.d.ts +0 -33
  63. package/dist/components/delete-confirmation-modal.stories.d.ts +0 -11
  64. package/dist/components/diff-bubble.stories.d.ts +0 -13
  65. package/dist/components/diff-drawer.stories.d.ts +0 -8
  66. package/dist/components/diff-view-adapter.test.d.ts +0 -1
  67. package/dist/components/drawer-inline.stories.d.ts +0 -8
  68. package/dist/components/empty-state.stories.d.ts +0 -34
  69. package/dist/components/file-selector.stories.d.ts +0 -17
  70. package/dist/components/folder-picker-dialog.stories.d.ts +0 -11
  71. package/dist/components/info-card.stories.d.ts +0 -41
  72. package/dist/components/item-section.stories.d.ts +0 -17
  73. package/dist/components/layout.stories.d.ts +0 -11
  74. package/dist/components/menu-item.stories.d.ts +0 -72
  75. package/dist/components/open-source-notices-screen.stories.d.ts +0 -12
  76. package/dist/components/param-editor-horizontal.stories.d.ts +0 -19
  77. package/dist/components/param-editor.stories.d.ts +0 -24
  78. package/dist/components/properties.stories.d.ts +0 -17
  79. package/dist/components/resource-badge.stories.d.ts +0 -7
  80. package/dist/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.d.ts +0 -9
  81. package/dist/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +0 -7
  82. package/dist/components/rich-text/prompt-input/prompt-input.stories.d.ts +0 -8
  83. package/dist/components/rich-text/rich-message/rich-message.stories.d.ts +0 -6
  84. package/dist/components/rich-text/shared/nodes/DataTableNode.stories.d.ts +0 -7
  85. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +0 -21
  86. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.test.d.ts +0 -1
  87. package/dist/components/rich-text/shared/transformers/markdown-transformers.test.d.ts +0 -1
  88. package/dist/components/scroll-area.stories.d.ts +0 -7
  89. package/dist/components/searchable-menu.stories.d.ts +0 -8
  90. package/dist/components/session-indicator.stories.d.ts +0 -12
  91. package/dist/components/sidebar/sidebar.store.test.d.ts +0 -1
  92. package/dist/components/sidebar/sidebar.stories.d.ts +0 -11
  93. package/dist/components/sidebar-tree/sidebar-tree-searchable-action-menu.stories.d.ts +0 -6
  94. package/dist/components/sidebar-tree/sidebar-tree.stories.d.ts +0 -13
  95. package/dist/components/slider.stories.d.ts +0 -15
  96. package/dist/components/style-guide.stories.d.ts +0 -23
  97. package/dist/components/switch.stories.d.ts +0 -16
  98. package/dist/components/tickets/display-menu.stories.d.ts +0 -6
  99. package/dist/components/tickets/filter-menu.stories.d.ts +0 -6
  100. package/dist/components/tickets/ticket-board.stories.d.ts +0 -5
  101. package/dist/components/tickets/ticket-card.stories.d.ts +0 -18
  102. package/dist/components/tickets/ticket-grouping.test.d.ts +0 -1
  103. package/dist/components/tickets/ticket-list.stories.d.ts +0 -10
  104. package/dist/components/tickets/tickets-workspace.stories.d.ts +0 -10
  105. package/dist/components/tickets/use-workspace-store.test.d.ts +0 -1
  106. package/dist/components/toaster.stories.d.ts +0 -11
  107. package/dist/components/workspace-badge.stories.d.ts +0 -13
  108. package/dist/get-file-type-icon-CirIyuE8.js +0 -92
  109. package/dist/get-file-type-icon-CirIyuE8.js.map +0 -1
  110. package/dist/rich-message-Bad4GxH2.js +0 -1423
  111. package/dist/rich-message-Bad4GxH2.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { Flex as fe, Box as V, Breadcrumb as ye, IconButton as he, chakra as It, Portal as He, HStack as j, Spacer as Pt, Checkbox as Ne, Text as W, Dialog as se, CloseButton as Qt, Stack as B, Button as pe, Grid as Zt, AbsoluteCenter as en, MenuItem as dt, Icon as ae, Badge as Pe, Menu as Y, Collapsible as je, createToaster as tn, Toaster as nn, Toast as ze, Spinner as Tt, Link as ut, Separator as it, InputGroup as ln, Input as on, Avatar as ft, Switch as Ie, Popover as we, SegmentGroup as Ce, Wrap as Dt } from "@chakra-ui/react";
2
- import { ChakraProvider as Ui } from "@chakra-ui/react";
3
- import { D as rn, a as _t, E as rt, A as sn } from "./empty-state-yGspgiPl.js";
4
- import { jsxs as x, jsx as o, Fragment as Lt } from "react/jsx-runtime";
1
+ import { Flex as ue, Box as G, Breadcrumb as Ce, IconButton as he, chakra as Wt, Portal as Be, HStack as H, Spacer as zt, Checkbox as Ge, Text as z, Dialog as de, CloseButton as an, Stack as F, Button as ge, Grid as cn, AbsoluteCenter as dn, MenuItem as gt, Icon as ee, Badge as ye, Menu as X, Collapsible as Ye, createToaster as un, Toaster as fn, Toast as Oe, Spinner as Et, Link as ht, Separator as st, InputGroup as pn, Input as gn, Avatar as mt, Switch as De, Popover as Ie, SegmentGroup as we, Wrap as Ot } from "@chakra-ui/react";
2
+ import { ChakraProvider as kr } from "@chakra-ui/react";
3
+ import { D as hn, a as At, E as at, A as mn } from "./empty-state-yGspgiPl.js";
4
+ import { jsxs as y, jsx as o, Fragment as dt } from "react/jsx-runtime";
5
5
  import { c as R } from "react/compiler-runtime";
6
- import * as at from "react";
7
- import { useRef as Be, useState as ge, useEffect as Oe, forwardRef as $t, Component as an, Children as cn, isValidElement as dn, cloneElement as un, Fragment as fn, createContext as pn, useContext as hn } from "react";
8
- import { T as xe, S as ke } from "./get-file-type-icon-CirIyuE8.js";
9
- import { g as Ki } from "./get-file-type-icon-CirIyuE8.js";
10
- import { SquareArrowOutUpRight as gn, Minus as mn, ChevronRight as Te, ChevronDown as Fe, FileText as bn, FolderOpen as Sn, Folder as xn, Home as yn, ChevronUp as vn, Info as Cn, Search as wn, CircleCheck as kn, CircleAlert as In, CirclePause as Pn, CircleDashed as Tn, PanelLeftClose as Dn, Sun as _n, Moon as Ln, FolderIcon as $n, Settings2 as Rn, List as Wn, KanbanSquare as En, ArrowDownUp as zn, Filter as An, GitCommitIcon as On, GitBranchIcon as Mn, Plus as Gn, MoreHorizontal as Nn } from "lucide-react";
11
- import { Editor as Bn, DiffEditor as Hn } from "@monaco-editor/react";
12
- import { useVirtualizer as Fn } from "@tanstack/react-virtual";
13
- import { Outlet as Vn } from "@tanstack/react-router";
14
- import { useStore as Rt } from "zustand";
15
- import { persist as Wt, createJSONStorage as Et } from "zustand/middleware";
16
- import { createStore as zt } from "zustand/vanilla";
17
- import { useReactTable as jn, getExpandedRowModel as Xn, getCoreRowModel as Un, flexRender as Yn } from "@tanstack/react-table";
6
+ import * as ut from "react";
7
+ import { useRef as je, useState as me, useEffect as Me, forwardRef as Mt, Component as bn, Children as xn, isValidElement as ft, cloneElement as Sn, Fragment as yn, createContext as vn, useContext as Cn } from "react";
8
+ import { T as Se, S as ke } from "./get-file-type-icon-Bwqf1WXA.js";
9
+ import { g as Tr } from "./get-file-type-icon-Bwqf1WXA.js";
10
+ import { SquareArrowOutUpRight as wn, Minus as In, ChevronRight as _e, ChevronDown as Xe, FileText as kn, FolderOpen as Pn, Folder as Tn, Home as Dn, ChevronUp as _n, Info as Ln, Search as $n, CircleCheck as Rn, CircleAlert as Wn, CircleStop as zn, CirclePause as En, CircleDashed as On, PanelLeftClose as An, Sun as Mn, Moon as Bn, FolderIcon as Nn, Settings2 as Gn, List as Hn, KanbanSquare as Fn, ArrowDownUp as Vn, Filter as jn, GitCommitIcon as Xn, GitBranchIcon as Un, CheckCircle as Yn, Clock as Kn, Eye as qn, Shield as Jn, Lightbulb as Qn, Flame as Zn, Flag as el, Star as tl, AlertTriangle as nl, Gauge as ll, Wrench as ol, BookOpen as il, Sparkles as rl, Bug as sl, Circle as al, Check as cl, Plus as dl, MoreHorizontal as ul } from "lucide-react";
11
+ import { Editor as fl, DiffEditor as pl } from "@monaco-editor/react";
12
+ import { useVirtualizer as gl } from "@tanstack/react-virtual";
13
+ import { Outlet as hl } from "@tanstack/react-router";
14
+ import { useStore as Bt } from "zustand";
15
+ import { persist as Nt, createJSONStorage as Gt } from "zustand/middleware";
16
+ import { createStore as Ht } from "zustand/vanilla";
17
+ import { useReactTable as ml, getExpandedRowModel as bl, getCoreRowModel as xl, flexRender as Sl } from "@tanstack/react-table";
18
18
  import "@fontsource/inter/400.css";
19
19
  import "@fontsource/inter/500.css";
20
20
  import "@fontsource/playfair-display/400.css";
@@ -23,98 +23,98 @@ import "@fontsource/playfair-display/700.css";
23
23
  import "@fontsource/onest/400.css";
24
24
  import "@fontsource/onest/500.css";
25
25
  import "@fontsource/onest/700.css";
26
- import { t as Ji } from "./theme-D0VvFB1Y.js";
27
- const Kn = (l, e) => {
26
+ import { t as _r } from "./theme-D0VvFB1Y.js";
27
+ const yl = (l, e) => {
28
28
  const {
29
29
  min: n,
30
30
  max: t
31
31
  } = e;
32
32
  return Math.min(Math.max(l, n), t);
33
- }, qn = "20rem", pt = 320, wi = (l) => {
33
+ }, vl = "20rem", bt = 320, tr = (l) => {
34
34
  const e = R(23);
35
- let n, t, i, s, r, a;
35
+ let n, t, r, s, i, a;
36
36
  e[0] !== l ? ({
37
37
  children: n,
38
38
  header: t,
39
- width: r,
40
- minWidth: i,
39
+ width: i,
40
+ minWidth: r,
41
41
  resizable: a,
42
42
  ...s
43
- } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = i, e[4] = s, e[5] = r, e[6] = a) : (n = e[1], t = e[2], i = e[3], s = e[4], r = e[5], a = e[6]);
44
- const c = r === void 0 ? "28rem" : r, d = a === void 0 ? !1 : a, u = Be(null), f = Be(Jn), [p, h] = ge(null), g = i ?? (d ? qn : c), S = p === null ? c : `${p}px`;
45
- let m, v;
46
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = () => () => f.current(), v = [], e[7] = m, e[8] = v) : (m = e[7], v = e[8]), Oe(m, v);
47
- let C;
48
- e[9] !== d ? (C = (T) => {
43
+ } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = r, e[4] = s, e[5] = i, e[6] = a) : (n = e[1], t = e[2], r = e[3], s = e[4], i = e[5], a = e[6]);
44
+ const c = i === void 0 ? "28rem" : i, d = a === void 0 ? !1 : a, u = je(null), f = je(Cl), [p, g] = me(null), h = r ?? (d ? vl : c), b = p === null ? c : `${p}px`;
45
+ let m, S;
46
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = () => () => f.current(), S = [], e[7] = m, e[8] = S) : (m = e[7], S = e[8]), Me(m, S);
47
+ let w;
48
+ e[9] !== d ? (w = (T) => {
49
49
  if (!d || !u.current)
50
50
  return;
51
51
  T.preventDefault();
52
- const b = u.current, P = T.clientX, w = b.getBoundingClientRect().width, _ = window.getComputedStyle(b), L = Number.parseFloat(_.minWidth) || pt, $ = b.parentElement?.getBoundingClientRect().width ?? window.innerWidth, z = Math.max(L, $ - pt), O = document.body.style.cursor, G = document.body.style.userSelect, H = (F) => {
53
- const A = F.clientX - P, E = Kn(w - A, {
54
- min: L,
55
- max: z
52
+ const L = u.current, _ = T.clientX, P = L.getBoundingClientRect().width, D = window.getComputedStyle(L), C = Number.parseFloat(D.minWidth) || bt, $ = L.parentElement?.getBoundingClientRect().width ?? window.innerWidth, W = Math.max(C, $ - bt), E = document.body.style.cursor, O = document.body.style.userSelect, B = (U) => {
53
+ const j = U.clientX - _, A = yl(P - j, {
54
+ min: C,
55
+ max: W
56
56
  });
57
- h(E);
58
- }, X = () => {
59
- window.removeEventListener("pointermove", H), window.removeEventListener("pointerup", X), document.body.style.cursor = O, document.body.style.userSelect = G, f.current = Qn;
57
+ g(A);
58
+ }, V = () => {
59
+ window.removeEventListener("pointermove", B), window.removeEventListener("pointerup", V), document.body.style.cursor = E, document.body.style.userSelect = O, f.current = wl;
60
60
  };
61
- f.current = X, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", window.addEventListener("pointermove", H), window.addEventListener("pointerup", X, {
61
+ f.current = V, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", window.addEventListener("pointermove", B), window.addEventListener("pointerup", V, {
62
62
  once: !0
63
63
  });
64
- }, e[9] = d, e[10] = C) : C = e[10];
65
- const k = C;
66
- let y;
67
- e[11] !== k || e[12] !== d ? (y = d ? /* @__PURE__ */ o(V, { role: "separator", "aria-label": "Resize attached panel", "aria-orientation": "vertical", position: "absolute", top: "0", bottom: "0", left: "0", width: "3", transform: "translateX(-50%)", cursor: "col-resize", touchAction: "none", zIndex: "1", onPointerDown: k }) : null, e[11] = k, e[12] = d, e[13] = y) : y = e[13];
68
- let I;
69
- e[14] !== n ? (I = /* @__PURE__ */ o(fe, { flex: "1", minH: 0, direction: "column", children: n }), e[14] = n, e[15] = I) : I = e[15];
70
- let D;
71
- return e[16] !== t || e[17] !== g || e[18] !== S || e[19] !== s || e[20] !== y || e[21] !== I ? (D = /* @__PURE__ */ x(fe, { ref: u, direction: "column", position: "relative", flexShrink: 0, w: S, minW: g, h: "100%", borderLeftWidth: "1px", bg: "bg", overflow: "hidden", ...s, children: [
72
- y,
64
+ }, e[9] = d, e[10] = w) : w = e[10];
65
+ const I = w;
66
+ let x;
67
+ e[11] !== I || e[12] !== d ? (x = d ? /* @__PURE__ */ o(G, { role: "separator", "aria-label": "Resize attached panel", "aria-orientation": "vertical", position: "absolute", top: "0", bottom: "0", left: "0", width: "3", transform: "translateX(-50%)", cursor: "col-resize", touchAction: "none", zIndex: "1", onPointerDown: I }) : null, e[11] = I, e[12] = d, e[13] = x) : x = e[13];
68
+ let v;
69
+ e[14] !== n ? (v = /* @__PURE__ */ o(ue, { flex: "1", minH: 0, direction: "column", children: n }), e[14] = n, e[15] = v) : v = e[15];
70
+ let k;
71
+ return e[16] !== t || e[17] !== h || e[18] !== b || e[19] !== s || e[20] !== x || e[21] !== v ? (k = /* @__PURE__ */ y(ue, { ref: u, direction: "column", position: "relative", flexShrink: 0, w: b, minW: h, h: "100%", borderLeftWidth: "1px", bg: "bg", overflow: "hidden", ...s, children: [
72
+ x,
73
73
  t,
74
- I
75
- ] }), e[16] = t, e[17] = g, e[18] = S, e[19] = s, e[20] = y, e[21] = I, e[22] = D) : D = e[22], D;
74
+ v
75
+ ] }), e[16] = t, e[17] = h, e[18] = b, e[19] = s, e[20] = x, e[21] = v, e[22] = k) : k = e[22], k;
76
76
  };
77
- function Jn() {
77
+ function Cl() {
78
78
  }
79
- function Qn() {
79
+ function wl() {
80
80
  }
81
- const ki = at.forwardRef(function(e, n) {
81
+ const nr = ut.forwardRef(function(e, n) {
82
82
  const t = R(21);
83
- let i, s, r, a, c;
83
+ let r, s, i, a, c;
84
84
  t[0] !== e ? ({
85
85
  separator: a,
86
86
  separatorGap: c,
87
87
  items: s,
88
- linkComponent: i,
89
- ...r
90
- } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5]);
88
+ linkComponent: r,
89
+ ...i
90
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = i, t[4] = a, t[5] = c) : (r = t[1], s = t[2], i = t[3], a = t[4], c = t[5]);
91
91
  let d;
92
- if (t[6] !== i || t[7] !== s || t[8] !== a) {
92
+ if (t[6] !== r || t[7] !== s || t[8] !== a) {
93
93
  let p;
94
- t[10] !== i || t[11] !== s.length || t[12] !== a ? (p = (h, g) => {
95
- const S = g === s.length - 1, m = !!(h.url || h.onClick);
96
- let v;
97
- return S && !m ? v = /* @__PURE__ */ o(ye.CurrentLink, { children: h.title }) : h.url ? v = i ? /* @__PURE__ */ o(ye.Link, { asChild: !0, children: /* @__PURE__ */ o(i, { to: h.url, children: h.title }) }) : /* @__PURE__ */ o(ye.Link, { href: h.url, children: h.title }) : h.onClick ? v = /* @__PURE__ */ o(ye.Link, { as: "button", type: "button", onClick: h.onClick, children: h.title }) : v = /* @__PURE__ */ o(ye.Link, { children: h.title }), /* @__PURE__ */ x(ye.Item, { children: [
98
- v,
99
- S ? null : /* @__PURE__ */ o(ye.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
100
- ] }, g);
101
- }, t[10] = i, t[11] = s.length, t[12] = a, t[13] = p) : p = t[13], d = s.map(p), t[6] = i, t[7] = s, t[8] = a, t[9] = d;
94
+ t[10] !== r || t[11] !== s.length || t[12] !== a ? (p = (g, h) => {
95
+ const b = h === s.length - 1, m = !!(g.url || g.onClick);
96
+ let S;
97
+ return b && !m ? S = /* @__PURE__ */ o(Ce.CurrentLink, { children: g.title }) : g.url ? S = r ? /* @__PURE__ */ o(Ce.Link, { asChild: !0, children: /* @__PURE__ */ o(r, { to: g.url, children: g.title }) }) : /* @__PURE__ */ o(Ce.Link, { href: g.url, children: g.title }) : g.onClick ? S = /* @__PURE__ */ o(Ce.Link, { as: "button", type: "button", onClick: g.onClick, children: g.title }) : S = /* @__PURE__ */ o(Ce.Link, { children: g.title }), /* @__PURE__ */ y(Ce.Item, { children: [
98
+ S,
99
+ b ? null : /* @__PURE__ */ o(Ce.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
100
+ ] }, h);
101
+ }, t[10] = r, t[11] = s.length, t[12] = a, t[13] = p) : p = t[13], d = s.map(p), t[6] = r, t[7] = s, t[8] = a, t[9] = d;
102
102
  } else
103
103
  d = t[9];
104
104
  let u;
105
- t[14] !== c || t[15] !== d ? (u = /* @__PURE__ */ o(ye.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = u) : u = t[16];
105
+ t[14] !== c || t[15] !== d ? (u = /* @__PURE__ */ o(Ce.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = u) : u = t[16];
106
106
  let f;
107
- return t[17] !== n || t[18] !== r || t[19] !== u ? (f = /* @__PURE__ */ o(ye.Root, { ref: n, ...r, children: u }), t[17] = n, t[18] = r, t[19] = u, t[20] = f) : f = t[20], f;
108
- }), Ii = $t(function(e, n) {
107
+ return t[17] !== n || t[18] !== i || t[19] !== u ? (f = /* @__PURE__ */ o(Ce.Root, { ref: n, ...i, children: u }), t[17] = n, t[18] = i, t[19] = u, t[20] = f) : f = t[20], f;
108
+ }), lr = Mt(function(e, n) {
109
109
  const t = R(21);
110
- let i, s, r, a, c;
110
+ let r, s, i, a, c;
111
111
  t[0] !== e ? ({
112
- children: i,
112
+ children: r,
113
113
  containerProps: s,
114
114
  isOpen: a,
115
115
  tooltip: c,
116
- ...r
117
- } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5]);
116
+ ...i
117
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = i, t[4] = a, t[5] = c) : (r = t[1], s = t[2], i = t[3], a = t[4], c = t[5]);
118
118
  const d = a === void 0 ? !1 : a, u = d ? "none" : "mid";
119
119
  let f;
120
120
  t[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
@@ -122,91 +122,91 @@ const ki = at.forwardRef(function(e, n) {
122
122
  boxShadow: "mid"
123
123
  }, t[6] = f) : f = t[6];
124
124
  const p = d ? "none" : "mid";
125
- let h;
126
- t[7] !== p ? (h = {
127
- boxShadow: p
128
- }, t[7] = p, t[8] = h) : h = t[8];
129
125
  let g;
130
- t[9] !== i || t[10] !== n || t[11] !== r || t[12] !== u || t[13] !== h ? (g = /* @__PURE__ */ o(he, { ref: n, rounded: "full", size: "lg", borderWidth: "1px", boxShadow: u, transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: f, _active: h, ...r, children: i }), t[9] = i, t[10] = n, t[11] = r, t[12] = u, t[13] = h, t[14] = g) : g = t[14];
131
- const S = g;
126
+ t[7] !== p ? (g = {
127
+ boxShadow: p
128
+ }, t[7] = p, t[8] = g) : g = t[8];
129
+ let h;
130
+ t[9] !== r || t[10] !== n || t[11] !== i || t[12] !== u || t[13] !== g ? (h = /* @__PURE__ */ o(he, { ref: n, rounded: "full", size: "lg", borderWidth: "1px", boxShadow: u, transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: f, _active: g, ...i, children: r }), t[9] = r, t[10] = n, t[11] = i, t[12] = u, t[13] = g, t[14] = h) : h = t[14];
131
+ const b = h;
132
132
  let m;
133
- t[15] !== S || t[16] !== c ? (m = c ? /* @__PURE__ */ o(xe, { content: c, children: S }) : S, t[15] = S, t[16] = c, t[17] = m) : m = t[17];
134
- let v;
135
- return t[18] !== s || t[19] !== m ? (v = /* @__PURE__ */ o(It.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...s, children: m }), t[18] = s, t[19] = m, t[20] = v) : v = t[20], v;
136
- }), Pi = $t(function(e, n) {
133
+ t[15] !== b || t[16] !== c ? (m = c ? /* @__PURE__ */ o(Se, { content: c, children: b }) : b, t[15] = b, t[16] = c, t[17] = m) : m = t[17];
134
+ let S;
135
+ return t[18] !== s || t[19] !== m ? (S = /* @__PURE__ */ o(Wt.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...s, children: m }), t[18] = s, t[19] = m, t[20] = S) : S = t[20], S;
136
+ }), or = Mt(function(e, n) {
137
137
  const t = R(28), {
138
- isOpen: i,
138
+ isOpen: r,
139
139
  title: s,
140
- menu: r,
140
+ menu: i,
141
141
  onClose: a,
142
142
  closeLabel: c,
143
143
  onPopOut: d,
144
144
  popOutLabel: u,
145
145
  width: f,
146
146
  height: p,
147
- containerProps: h,
148
- testId: g,
149
- "aria-label": S,
147
+ containerProps: g,
148
+ testId: h,
149
+ "aria-label": b,
150
150
  children: m
151
- } = e, v = i === void 0 ? !1 : i, C = f === void 0 ? "28rem" : f, k = p === void 0 ? "38rem" : p;
152
- if (!v)
151
+ } = e, S = r === void 0 ? !1 : r, w = f === void 0 ? "28rem" : f, I = p === void 0 ? "38rem" : p;
152
+ if (!S)
153
153
  return null;
154
- const y = S ?? s;
155
- let I;
156
- t[0] !== r ? (I = /* @__PURE__ */ o(j, { gap: "1", minW: "0", children: r }), t[0] = r, t[1] = I) : I = t[1];
157
- let D;
158
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ o(Pt, {}), t[2] = D) : D = t[2];
154
+ const x = b ?? s;
155
+ let v;
156
+ t[0] !== i ? (v = /* @__PURE__ */ o(H, { gap: "1", minW: "0", children: i }), t[0] = i, t[1] = v) : v = t[1];
157
+ let k;
158
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ o(zt, {}), t[2] = k) : k = t[2];
159
159
  let T;
160
- t[3] !== d || t[4] !== u ? (T = d ? /* @__PURE__ */ o(xe, { content: u, children: /* @__PURE__ */ o(he, { size: "xs", variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ o(gn, { size: 16 }) }) }) : null, t[3] = d, t[4] = u, t[5] = T) : T = t[5];
161
- let b;
162
- t[6] !== c || t[7] !== a ? (b = a ? /* @__PURE__ */ o(xe, { content: c, children: /* @__PURE__ */ o(he, { size: "xs", variant: "ghost", "aria-label": c, onClick: a, children: /* @__PURE__ */ o(mn, { size: 16 }) }) }) : null, t[6] = c, t[7] = a, t[8] = b) : b = t[8];
163
- let P;
164
- t[9] !== T || t[10] !== b ? (P = /* @__PURE__ */ x(j, { gap: "1", children: [
165
- T,
166
- b
167
- ] }), t[9] = T, t[10] = b, t[11] = P) : P = t[11];
168
- let w;
169
- t[12] !== I || t[13] !== P ? (w = /* @__PURE__ */ x(j, { alignItems: "center", gap: "sm", px: "xs", pt: "md", pb: "xs", children: [
170
- I,
171
- D,
172
- P
173
- ] }), t[12] = I, t[13] = P, t[14] = w) : w = t[14];
174
- let _;
175
- t[15] !== m ? (_ = /* @__PURE__ */ o(V, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: m }), t[15] = m, t[16] = _) : _ = t[16];
160
+ t[3] !== d || t[4] !== u ? (T = d ? /* @__PURE__ */ o(Se, { content: u, children: /* @__PURE__ */ o(he, { size: "xs", variant: "ghost", "aria-label": u, onClick: d, children: /* @__PURE__ */ o(wn, { size: 16 }) }) }) : null, t[3] = d, t[4] = u, t[5] = T) : T = t[5];
176
161
  let L;
177
- t[17] !== _ || t[18] !== w ? (L = /* @__PURE__ */ x(fe, { direction: "column", h: "full", children: [
178
- w,
162
+ t[6] !== c || t[7] !== a ? (L = a ? /* @__PURE__ */ o(Se, { content: c, children: /* @__PURE__ */ o(he, { size: "xs", variant: "ghost", "aria-label": c, onClick: a, children: /* @__PURE__ */ o(In, { size: 16 }) }) }) : null, t[6] = c, t[7] = a, t[8] = L) : L = t[8];
163
+ let _;
164
+ t[9] !== T || t[10] !== L ? (_ = /* @__PURE__ */ y(H, { gap: "1", children: [
165
+ T,
166
+ L
167
+ ] }), t[9] = T, t[10] = L, t[11] = _) : _ = t[11];
168
+ let P;
169
+ t[12] !== v || t[13] !== _ ? (P = /* @__PURE__ */ y(H, { alignItems: "center", gap: "sm", px: "xs", pt: "md", pb: "xs", children: [
170
+ v,
171
+ k,
179
172
  _
180
- ] }), t[17] = _, t[18] = w, t[19] = L) : L = t[19];
173
+ ] }), t[12] = v, t[13] = _, t[14] = P) : P = t[14];
174
+ let D;
175
+ t[15] !== m ? (D = /* @__PURE__ */ o(G, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: m }), t[15] = m, t[16] = D) : D = t[16];
176
+ let C;
177
+ t[17] !== D || t[18] !== P ? (C = /* @__PURE__ */ y(ue, { direction: "column", h: "full", children: [
178
+ P,
179
+ D
180
+ ] }), t[17] = D, t[18] = P, t[19] = C) : C = t[19];
181
181
  let $;
182
- return t[20] !== h || t[21] !== k || t[22] !== n || t[23] !== L || t[24] !== y || t[25] !== g || t[26] !== C ? ($ = /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(It.section, { ref: n, role: "dialog", "data-testid": g, "aria-label": y, position: "fixed", bottom: "3", right: "3", w: C, maxW: "calc(100vw - 2rem)", h: k, maxH: "calc(100vh - 2rem)", borderRadius: "3xl", boxShadow: "2xl", bg: "bg", zIndex: "dropdown", ...h, children: L }) }), t[20] = h, t[21] = k, t[22] = n, t[23] = L, t[24] = y, t[25] = g, t[26] = C, t[27] = $) : $ = t[27], $;
183
- }), Zn = at.forwardRef(function(e, n) {
182
+ return t[20] !== g || t[21] !== I || t[22] !== n || t[23] !== C || t[24] !== x || t[25] !== h || t[26] !== w ? ($ = /* @__PURE__ */ o(Be, { children: /* @__PURE__ */ o(Wt.section, { ref: n, role: "dialog", "data-testid": h, "aria-label": x, position: "fixed", bottom: "3", right: "3", w, maxW: "calc(100vw - 2rem)", h: I, maxH: "calc(100vh - 2rem)", borderRadius: "3xl", boxShadow: "2xl", bg: "bg", zIndex: "dropdown", ...g, children: C }) }), t[20] = g, t[21] = I, t[22] = n, t[23] = C, t[24] = x, t[25] = h, t[26] = w, t[27] = $) : $ = t[27], $;
183
+ }), Il = ut.forwardRef(function(e, n) {
184
184
  const t = R(26);
185
- let i, s, r, a, c, d;
185
+ let r, s, i, a, c, d;
186
186
  t[0] !== e ? ({
187
187
  icon: s,
188
- children: i,
189
- inputProps: r,
188
+ children: r,
189
+ inputProps: i,
190
190
  rootRef: c,
191
191
  disabled: d,
192
192
  ...a
193
- } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = d) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5], d = t[6]);
193
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = i, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], s = t[2], i = t[3], a = t[4], c = t[5], d = t[6]);
194
194
  const u = d === void 0 ? !1 : d, f = u ? "not-allowed" : "pointer";
195
195
  let p;
196
- t[7] !== r || t[8] !== n ? (p = /* @__PURE__ */ o(Ne.HiddenInput, { ref: n, ...r }), t[7] = r, t[8] = n, t[9] = p) : p = t[9];
197
- let h;
198
- t[10] !== s ? (h = s || /* @__PURE__ */ o(Ne.Indicator, {}), t[10] = s, t[11] = h) : h = t[11];
196
+ t[7] !== i || t[8] !== n ? (p = /* @__PURE__ */ o(Ge.HiddenInput, { ref: n, ...i }), t[7] = i, t[8] = n, t[9] = p) : p = t[9];
199
197
  let g;
200
- t[12] !== f || t[13] !== h ? (g = /* @__PURE__ */ o(Ne.Control, { borderRadius: "xs", cursor: f, children: h }), t[12] = f, t[13] = h, t[14] = g) : g = t[14];
201
- let S;
202
- t[15] !== i || t[16] !== f ? (S = i != null && /* @__PURE__ */ o(Ne.Label, { cursor: f, children: i }), t[15] = i, t[16] = f, t[17] = S) : S = t[17];
198
+ t[10] !== s ? (g = s || /* @__PURE__ */ o(Ge.Indicator, {}), t[10] = s, t[11] = g) : g = t[11];
199
+ let h;
200
+ t[12] !== f || t[13] !== g ? (h = /* @__PURE__ */ o(Ge.Control, { borderRadius: "xs", cursor: f, children: g }), t[12] = f, t[13] = g, t[14] = h) : h = t[14];
201
+ let b;
202
+ t[15] !== r || t[16] !== f ? (b = r != null && /* @__PURE__ */ o(Ge.Label, { cursor: f, children: r }), t[15] = r, t[16] = f, t[17] = b) : b = t[17];
203
203
  let m;
204
- return t[18] !== u || t[19] !== f || t[20] !== a || t[21] !== c || t[22] !== p || t[23] !== g || t[24] !== S ? (m = /* @__PURE__ */ x(Ne.Root, { ref: c, disabled: u, cursor: f, ...a, children: [
204
+ return t[18] !== u || t[19] !== f || t[20] !== a || t[21] !== c || t[22] !== p || t[23] !== h || t[24] !== b ? (m = /* @__PURE__ */ y(Ge.Root, { ref: c, disabled: u, cursor: f, ...a, children: [
205
205
  p,
206
- g,
207
- S
208
- ] }), t[18] = u, t[19] = f, t[20] = a, t[21] = c, t[22] = p, t[23] = g, t[24] = S, t[25] = m) : m = t[25], m;
209
- }), At = {
206
+ h,
207
+ b
208
+ ] }), t[18] = u, t[19] = f, t[20] = a, t[21] = c, t[22] = p, t[23] = h, t[24] = b, t[25] = m) : m = t[25], m;
209
+ }), Ft = {
210
210
  base: "vs-dark",
211
211
  inherit: !0,
212
212
  rules: [],
@@ -219,23 +219,23 @@ const ki = at.forwardRef(function(e, n) {
219
219
  "editorIndentGuide.background": "#404040",
220
220
  "editorIndentGuide.activeBackground": "#707070"
221
221
  }
222
- }, Ti = (l) => {
222
+ }, ir = (l) => {
223
223
  const e = R(15), {
224
224
  defaultCode: n,
225
225
  code: t,
226
- showLineNumbers: i,
226
+ showLineNumbers: r,
227
227
  isEditable: s,
228
- language: r,
228
+ language: i,
229
229
  onChange: a,
230
230
  disableScroll: c
231
- } = l, d = r === void 0 ? "javascript" : r;
231
+ } = l, d = i === void 0 ? "javascript" : i;
232
232
  let u;
233
233
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
234
234
  enabled: !1
235
235
  }, e[0] = u) : u = e[0];
236
- const f = !s, p = i ? "on" : "off";
237
- let h;
238
- e[1] !== c ? (h = c ? {
236
+ const f = !s, p = r ? "on" : "off";
237
+ let g;
238
+ e[1] !== c ? (g = c ? {
239
239
  scrollbar: {
240
240
  vertical: "hidden",
241
241
  horizontal: "hidden",
@@ -245,38 +245,38 @@ const ki = at.forwardRef(function(e, n) {
245
245
  scrollBeyondLastLine: !1,
246
246
  mouseWheelScrollSensitivity: 0,
247
247
  overviewRulerLanes: 0
248
- } : {}, e[1] = c, e[2] = h) : h = e[2];
249
- let g;
250
- e[3] !== f || e[4] !== p || e[5] !== h ? (g = {
248
+ } : {}, e[1] = c, e[2] = g) : g = e[2];
249
+ let h;
250
+ e[3] !== f || e[4] !== p || e[5] !== g ? (h = {
251
251
  tabSize: 2,
252
252
  minimap: u,
253
253
  fontSize: 12,
254
254
  readOnly: f,
255
255
  lineNumbers: p,
256
- ...h
257
- }, e[3] = f, e[4] = p, e[5] = h, e[6] = g) : g = e[6];
258
- const S = g;
256
+ ...g
257
+ }, e[3] = f, e[4] = p, e[5] = g, e[6] = h) : h = e[6];
258
+ const b = h;
259
259
  let m;
260
- e[7] !== a ? (m = (C) => {
261
- a?.(C || "");
260
+ e[7] !== a ? (m = (w) => {
261
+ a?.(w || "");
262
262
  }, e[7] = a, e[8] = m) : m = e[8];
263
- let v;
264
- return e[9] !== t || e[10] !== n || e[11] !== d || e[12] !== S || e[13] !== m ? (v = /* @__PURE__ */ o(Bn, { width: "100%", height: "100%", language: d, defaultValue: n, value: t, theme: "ps-theme", options: S, onChange: m, beforeMount: el, onMount: tl }), e[9] = t, e[10] = n, e[11] = d, e[12] = S, e[13] = m, e[14] = v) : v = e[14], v;
265
- }, Di = (l) => {
263
+ let S;
264
+ return e[9] !== t || e[10] !== n || e[11] !== d || e[12] !== b || e[13] !== m ? (S = /* @__PURE__ */ o(fl, { width: "100%", height: "100%", language: d, defaultValue: n, value: t, theme: "ps-theme", options: b, onChange: m, beforeMount: kl, onMount: Pl }), e[9] = t, e[10] = n, e[11] = d, e[12] = b, e[13] = m, e[14] = S) : S = e[14], S;
265
+ }, rr = (l) => {
266
266
  const e = R(11), {
267
267
  original: n,
268
268
  modified: t,
269
- showLineNumbers: i,
269
+ showLineNumbers: r,
270
270
  language: s,
271
- disableScroll: r
271
+ disableScroll: i
272
272
  } = l, a = s === void 0 ? "javascript" : s;
273
273
  let c;
274
274
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
275
275
  enabled: !1
276
276
  }, e[0] = c) : c = e[0];
277
- const d = i ? "on" : "off";
277
+ const d = r ? "on" : "off";
278
278
  let u;
279
- e[1] !== r ? (u = r ? {
279
+ e[1] !== i ? (u = i ? {
280
280
  scrollbar: {
281
281
  vertical: "hidden",
282
282
  horizontal: "hidden",
@@ -286,7 +286,7 @@ const ki = at.forwardRef(function(e, n) {
286
286
  scrollBeyondLastLine: !1,
287
287
  mouseWheelScrollSensitivity: 0,
288
288
  overviewRulerLanes: 0
289
- } : {}, e[1] = r, e[2] = u) : u = e[2];
289
+ } : {}, e[1] = i, e[2] = u) : u = e[2];
290
290
  let f;
291
291
  e[3] !== d || e[4] !== u ? (f = {
292
292
  tabSize: 2,
@@ -300,28 +300,28 @@ const ki = at.forwardRef(function(e, n) {
300
300
  ...u
301
301
  }, e[3] = d, e[4] = u, e[5] = f) : f = e[5];
302
302
  const p = f;
303
- let h;
304
- return e[6] !== a || e[7] !== t || e[8] !== p || e[9] !== n ? (h = /* @__PURE__ */ o(Hn, { width: "100%", height: "100%", language: a, original: n, modified: t, theme: "ps-theme", options: p, beforeMount: nl, onMount: ll }), e[6] = a, e[7] = t, e[8] = p, e[9] = n, e[10] = h) : h = e[10], h;
303
+ let g;
304
+ return e[6] !== a || e[7] !== t || e[8] !== p || e[9] !== n ? (g = /* @__PURE__ */ o(pl, { width: "100%", height: "100%", language: a, original: n, modified: t, theme: "ps-theme", options: p, beforeMount: Tl, onMount: Dl }), e[6] = a, e[7] = t, e[8] = p, e[9] = n, e[10] = g) : g = e[10], g;
305
305
  };
306
- function el(l) {
307
- l.editor.defineTheme("ps-theme", At);
306
+ function kl(l) {
307
+ l.editor.defineTheme("ps-theme", Ft);
308
308
  }
309
- async function tl(l, e) {
309
+ async function Pl(l, e) {
310
310
  e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
311
311
  jsx: e.languages.typescript.JsxEmit.React
312
312
  }), l.addCommand(e.KeyMod.CtrlCmd | e.KeyCode.KeyS, async () => {
313
313
  await l.getAction("editor.action.formatDocument")?.run();
314
314
  }), await l.getAction("editor.action.formatDocument")?.run();
315
315
  }
316
- function nl(l) {
317
- l.editor.defineTheme("ps-theme", At);
316
+ function Tl(l) {
317
+ l.editor.defineTheme("ps-theme", Ft);
318
318
  }
319
- function ll(l, e) {
319
+ function Dl(l, e) {
320
320
  e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
321
321
  jsx: e.languages.typescript.JsxEmit.React
322
322
  });
323
323
  }
324
- const ol = (l) => {
324
+ const _l = (l) => {
325
325
  const e = R(3);
326
326
  let n;
327
327
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
@@ -331,132 +331,132 @@ const ol = (l) => {
331
331
  width: "100%"
332
332
  }, e[0] = n) : n = e[0];
333
333
  let t;
334
- return e[1] !== l ? (t = /* @__PURE__ */ o(V, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
335
- }, _i = (l) => {
334
+ return e[1] !== l ? (t = /* @__PURE__ */ o(G, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
335
+ }, sr = (l) => {
336
336
  const e = R(2);
337
337
  let n;
338
- return e[0] !== l ? (n = /* @__PURE__ */ o(V, { p: "2", children: /* @__PURE__ */ o(W, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...l }) }), e[0] = l, e[1] = n) : n = e[1], n;
339
- }, Li = (l) => {
340
- const [e, n] = ge(!1), {
338
+ return e[0] !== l ? (n = /* @__PURE__ */ o(G, { p: "2", children: /* @__PURE__ */ o(z, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...l }) }), e[0] = l, e[1] = n) : n = e[1], n;
339
+ }, ar = (l) => {
340
+ const [e, n] = me(!1), {
341
341
  headline: t,
342
- buttonText: i,
342
+ buttonText: r,
343
343
  notificationText: s,
344
- onDelete: r,
344
+ onDelete: i,
345
345
  open: a,
346
346
  onClose: c
347
347
  } = l, d = async () => {
348
348
  n(!0);
349
349
  try {
350
- await r(), c();
350
+ await i(), c();
351
351
  } catch {
352
352
  } finally {
353
353
  n(!1);
354
354
  }
355
355
  };
356
- return /* @__PURE__ */ x(se.Root, { open: a, onOpenChange: c, children: [
357
- /* @__PURE__ */ o(se.Backdrop, {}),
358
- /* @__PURE__ */ o(se.Positioner, { children: /* @__PURE__ */ x(se.Content, { children: [
359
- /* @__PURE__ */ x(se.Header, { children: [
360
- /* @__PURE__ */ o(W, { textStyle: "heading/M", children: t }),
361
- /* @__PURE__ */ o(se.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ o(Qt, { size: "sm" }) })
356
+ return /* @__PURE__ */ y(de.Root, { open: a, onOpenChange: c, children: [
357
+ /* @__PURE__ */ o(de.Backdrop, {}),
358
+ /* @__PURE__ */ o(de.Positioner, { children: /* @__PURE__ */ y(de.Content, { children: [
359
+ /* @__PURE__ */ y(de.Header, { children: [
360
+ /* @__PURE__ */ o(z, { textStyle: "heading/M", children: t }),
361
+ /* @__PURE__ */ o(de.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ o(an, { size: "sm" }) })
362
362
  ] }),
363
- /* @__PURE__ */ o(se.Body, { children: s }),
364
- /* @__PURE__ */ o(se.Footer, { children: /* @__PURE__ */ x(B, { direction: "row", gap: "1", children: [
365
- /* @__PURE__ */ o(pe, { onClick: c, children: "Close" }),
366
- /* @__PURE__ */ o(pe, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: i })
363
+ /* @__PURE__ */ o(de.Body, { children: s }),
364
+ /* @__PURE__ */ o(de.Footer, { children: /* @__PURE__ */ y(F, { direction: "row", gap: "1", children: [
365
+ /* @__PURE__ */ o(ge, { onClick: c, children: "Close" }),
366
+ /* @__PURE__ */ o(ge, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: r })
367
367
  ] }) })
368
368
  ] }) })
369
369
  ] });
370
- }, il = (l) => {
370
+ }, Ll = (l) => {
371
371
  const e = R(42), {
372
372
  diff: n,
373
373
  isSelected: t,
374
- isExpanded: i,
374
+ isExpanded: r,
375
375
  onToggleExpanded: s
376
- } = l, r = t === void 0 ? !1 : t, a = i === void 0 ? !0 : i, c = n.newPath || n.oldPath || "unknown", d = n.additions ?? 0, u = n.deletions ?? 0, f = r ? "border.accent" : "border.muted", p = r ? "bg.active" : "bg";
377
- let h;
378
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
376
+ } = l, i = t === void 0 ? !1 : t, a = r === void 0 ? !0 : r, c = n.newPath || n.oldPath || "unknown", d = n.additions ?? 0, u = n.deletions ?? 0, f = i ? "border.accent" : "border.muted", p = i ? "bg.active" : "bg";
377
+ let g;
378
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
379
379
  borderColor: "border.accent"
380
- }, e[0] = h) : h = e[0];
381
- const g = a ? "1px solid" : "none", S = r ? "bg.active" : "bg.subtle";
380
+ }, e[0] = g) : g = e[0];
381
+ const h = a ? "1px solid" : "none", b = i ? "bg.active" : "bg.subtle";
382
382
  let m;
383
- e[1] !== S ? (m = {
384
- bg: S
385
- }, e[1] = S, e[2] = m) : m = e[2];
383
+ e[1] !== b ? (m = {
384
+ bg: b
385
+ }, e[1] = b, e[2] = m) : m = e[2];
386
+ let S;
387
+ e[3] !== s ? (S = () => s?.(), e[3] = s, e[4] = S) : S = e[4];
388
+ const w = a ? "Collapse" : "Expand";
389
+ let I;
390
+ e[5] !== s ? (I = (C) => {
391
+ C.stopPropagation(), s?.();
392
+ }, e[5] = s, e[6] = I) : I = e[6];
393
+ let x;
394
+ e[7] !== a ? (x = a ? /* @__PURE__ */ o(Xe, { size: 16 }) : /* @__PURE__ */ o(_e, { size: 16 }), e[7] = a, e[8] = x) : x = e[8];
386
395
  let v;
387
- e[3] !== s ? (v = () => s?.(), e[3] = s, e[4] = v) : v = e[4];
388
- const C = a ? "Collapse" : "Expand";
396
+ e[9] !== I || e[10] !== x || e[11] !== w ? (v = /* @__PURE__ */ o(he, { "aria-label": w, variant: "ghost", size: "2xs", onClick: I, flexShrink: 0, children: x }), e[9] = I, e[10] = x, e[11] = w, e[12] = v) : v = e[12];
389
397
  let k;
390
- e[5] !== s ? (k = (L) => {
391
- L.stopPropagation(), s?.();
392
- }, e[5] = s, e[6] = k) : k = e[6];
393
- let y;
394
- e[7] !== a ? (y = a ? /* @__PURE__ */ o(Fe, { size: 16 }) : /* @__PURE__ */ o(Te, { size: 16 }), e[7] = a, e[8] = y) : y = e[8];
395
- let I;
396
- e[9] !== k || e[10] !== y || e[11] !== C ? (I = /* @__PURE__ */ o(he, { "aria-label": C, variant: "ghost", size: "2xs", onClick: k, flexShrink: 0, children: y }), e[9] = k, e[10] = y, e[11] = C, e[12] = I) : I = e[12];
397
- let D;
398
- e[13] !== n.change || e[14] !== n.newPath || e[15] !== n.oldPath || e[16] !== c ? (D = n.change === "renamed" ? /* @__PURE__ */ x(W, { as: "span", textStyle: "sm", children: [
399
- /* @__PURE__ */ o(W, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
400
- /* @__PURE__ */ o(V, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ o(Te, { size: 12 }) }),
398
+ e[13] !== n.change || e[14] !== n.newPath || e[15] !== n.oldPath || e[16] !== c ? (k = n.change === "renamed" ? /* @__PURE__ */ y(z, { as: "span", textStyle: "sm", children: [
399
+ /* @__PURE__ */ o(z, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
400
+ /* @__PURE__ */ o(G, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ o(_e, { size: 12 }) }),
401
401
  n.newPath
402
- ] }) : n.change === "deleted" ? /* @__PURE__ */ o(W, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: c }) : /* @__PURE__ */ o(W, { as: "span", textStyle: "sm", children: c }), e[13] = n.change, e[14] = n.newPath, e[15] = n.oldPath, e[16] = c, e[17] = D) : D = e[17];
402
+ ] }) : n.change === "deleted" ? /* @__PURE__ */ o(z, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: c }) : /* @__PURE__ */ o(z, { as: "span", textStyle: "sm", children: c }), e[13] = n.change, e[14] = n.newPath, e[15] = n.oldPath, e[16] = c, e[17] = k) : k = e[17];
403
403
  let T;
404
- e[18] !== c || e[19] !== D ? (T = /* @__PURE__ */ o(V, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: c, children: D }), e[18] = c, e[19] = D, e[20] = T) : T = e[20];
405
- let b;
406
- e[21] !== d || e[22] !== u ? (b = /* @__PURE__ */ o(V, { flexShrink: 0, children: /* @__PURE__ */ o(_t, { variant: "ghost", additions: d, deletions: u }) }), e[21] = d, e[22] = u, e[23] = b) : b = e[23];
407
- let P;
408
- e[24] !== I || e[25] !== T || e[26] !== b || e[27] !== g || e[28] !== m || e[29] !== v ? (P = /* @__PURE__ */ x(Zt, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: g, borderColor: "border.muted", cursor: "pointer", transition: "background 0.14s ease", _hover: m, onClick: v, gap: "sm", children: [
409
- I,
410
- T,
411
- b
412
- ] }), e[24] = I, e[25] = T, e[26] = b, e[27] = g, e[28] = m, e[29] = v, e[30] = P) : P = e[30];
413
- let w;
414
- e[31] !== n.newContent || e[32] !== n.newPath || e[33] !== n.oldContent || e[34] !== n.oldPath || e[35] !== a ? (w = a && /* @__PURE__ */ o(V, { bg: "bg", children: /* @__PURE__ */ o(rn, { original: n.oldContent || "", modified: n.newContent || "", oldPath: n.oldPath, newPath: n.newPath, sideBySide: !1 }) }), e[31] = n.newContent, e[32] = n.newPath, e[33] = n.oldContent, e[34] = n.oldPath, e[35] = a, e[36] = w) : w = e[36];
404
+ e[18] !== c || e[19] !== k ? (T = /* @__PURE__ */ o(G, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: c, children: k }), e[18] = c, e[19] = k, e[20] = T) : T = e[20];
405
+ let L;
406
+ e[21] !== d || e[22] !== u ? (L = /* @__PURE__ */ o(G, { flexShrink: 0, children: /* @__PURE__ */ o(At, { variant: "ghost", additions: d, deletions: u }) }), e[21] = d, e[22] = u, e[23] = L) : L = e[23];
415
407
  let _;
416
- return e[37] !== P || e[38] !== w || e[39] !== f || e[40] !== p ? (_ = /* @__PURE__ */ x(V, { border: "1px solid", borderColor: f, borderRadius: "xs", overflow: "hidden", bg: p, width: "100%", maxW: "100%", transition: "border-color 0.14s ease", _hover: h, children: [
417
- P,
418
- w
419
- ] }), e[37] = P, e[38] = w, e[39] = f, e[40] = p, e[41] = _) : _ = e[41], _;
420
- }, ht = (l) => l.newPath ?? l.oldPath ?? "unknown";
421
- function $i(l) {
408
+ e[24] !== v || e[25] !== T || e[26] !== L || e[27] !== h || e[28] !== m || e[29] !== S ? (_ = /* @__PURE__ */ y(cn, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: h, borderColor: "border.muted", cursor: "pointer", transition: "background 0.14s ease", _hover: m, onClick: S, gap: "sm", children: [
409
+ v,
410
+ T,
411
+ L
412
+ ] }), e[24] = v, e[25] = T, e[26] = L, e[27] = h, e[28] = m, e[29] = S, e[30] = _) : _ = e[30];
413
+ let P;
414
+ e[31] !== n.newContent || e[32] !== n.newPath || e[33] !== n.oldContent || e[34] !== n.oldPath || e[35] !== a ? (P = a && /* @__PURE__ */ o(G, { bg: "bg", children: /* @__PURE__ */ o(hn, { original: n.oldContent || "", modified: n.newContent || "", oldPath: n.oldPath, newPath: n.newPath, sideBySide: !1 }) }), e[31] = n.newContent, e[32] = n.newPath, e[33] = n.oldContent, e[34] = n.oldPath, e[35] = a, e[36] = P) : P = e[36];
415
+ let D;
416
+ return e[37] !== _ || e[38] !== P || e[39] !== f || e[40] !== p ? (D = /* @__PURE__ */ y(G, { border: "1px solid", borderColor: f, borderRadius: "xs", overflow: "hidden", bg: p, width: "100%", maxW: "100%", transition: "border-color 0.14s ease", _hover: g, children: [
417
+ _,
418
+ P
419
+ ] }), e[37] = _, e[38] = P, e[39] = f, e[40] = p, e[41] = D) : D = e[41], D;
420
+ }, xt = (l) => l.newPath ?? l.oldPath ?? "unknown";
421
+ function cr(l) {
422
422
  const {
423
423
  diffs: e,
424
424
  selectedDiffPath: n = null
425
- } = l, t = Be(null), [i, s] = ge(() => /* @__PURE__ */ new Set()), r = Fn({
425
+ } = l, t = je(null), [r, s] = me(() => /* @__PURE__ */ new Set()), i = gl({
426
426
  count: e.length,
427
427
  getScrollElement: () => t.current,
428
428
  estimateSize: () => 42,
429
429
  overscan: 5
430
430
  });
431
- if (Oe(() => {
431
+ if (Me(() => {
432
432
  if (!n) return;
433
- const c = e.findIndex((d) => ht(d) === n);
434
- c < 0 || r.scrollToIndex(c, {
433
+ const c = e.findIndex((d) => xt(d) === n);
434
+ c < 0 || i.scrollToIndex(c, {
435
435
  align: "start"
436
436
  });
437
- }, [n, e, r]), e.length === 0)
438
- return /* @__PURE__ */ o(B, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ o(ke, { flex: "1", minH: "0", contentProps: {
437
+ }, [n, e, i]), e.length === 0)
438
+ return /* @__PURE__ */ o(F, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ o(ke, { flex: "1", minH: "0", contentProps: {
439
439
  p: "xs",
440
440
  spaceY: "xs"
441
- }, children: /* @__PURE__ */ o(rt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) });
441
+ }, children: /* @__PURE__ */ o(at, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) });
442
442
  const a = (c) => {
443
443
  s((d) => {
444
444
  const u = new Set(d);
445
445
  return u.has(c) ? u.delete(c) : u.add(c), u;
446
446
  });
447
447
  };
448
- return /* @__PURE__ */ o(B, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ o(V, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ o(ke, { position: "absolute", inset: "0", viewportRef: t, contentProps: {
448
+ return /* @__PURE__ */ o(F, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ o(G, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ o(ke, { position: "absolute", inset: "0", viewportRef: t, contentProps: {
449
449
  p: "xs"
450
- }, children: /* @__PURE__ */ o(V, { position: "relative", width: "100%", style: {
451
- height: r.getTotalSize()
452
- }, children: r.getVirtualItems().map((c) => {
453
- const d = e[c.index], u = ht(d);
454
- return /* @__PURE__ */ o(V, { "data-index": c.index, ref: r.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
450
+ }, children: /* @__PURE__ */ o(G, { position: "relative", width: "100%", style: {
451
+ height: i.getTotalSize()
452
+ }, children: i.getVirtualItems().map((c) => {
453
+ const d = e[c.index], u = xt(d);
454
+ return /* @__PURE__ */ o(G, { "data-index": c.index, ref: i.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
455
455
  transform: `translateY(${c.start}px)`
456
- }, children: /* @__PURE__ */ o(il, { diff: d, isSelected: n === u, isExpanded: !i.has(u), onToggleExpanded: () => a(u) }) }, c.key);
456
+ }, children: /* @__PURE__ */ o(Ll, { diff: d, isSelected: n === u, isExpanded: !r.has(u), onToggleExpanded: () => a(u) }) }, c.key);
457
457
  }) }) }) }) });
458
458
  }
459
- class Ot extends an {
459
+ class Vt extends bn {
460
460
  state = {
461
461
  error: null
462
462
  };
@@ -479,32 +479,32 @@ class Ot extends an {
479
479
  fallback: n,
480
480
  label: t
481
481
  } = this.props, {
482
- error: i
482
+ error: r
483
483
  } = this.state;
484
- return i ? n || /* @__PURE__ */ o(rl, { error: i, label: t, onReset: this.handleReset }) : e;
484
+ return r ? n || /* @__PURE__ */ o($l, { error: r, label: t, onReset: this.handleReset }) : e;
485
485
  }
486
486
  }
487
- const rl = (l) => {
487
+ const $l = (l) => {
488
488
  const e = R(12), {
489
489
  error: n,
490
490
  label: t,
491
- onReset: i
491
+ onReset: r
492
492
  } = l, s = t ?? "Something went wrong";
493
- let r;
494
- e[0] !== s ? (r = /* @__PURE__ */ o(W, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = r) : r = e[1];
493
+ let i;
494
+ e[0] !== s ? (i = /* @__PURE__ */ o(z, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = i) : i = e[1];
495
495
  const a = n.message || "An unexpected error occurred while rendering this section.";
496
496
  let c;
497
- e[2] !== a ? (c = /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
497
+ e[2] !== a ? (c = /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
498
498
  let d;
499
- e[4] !== i ? (d = i ? /* @__PURE__ */ o(pe, { size: "sm", variant: "solid", colorScheme: "black", onClick: i, children: "Try again" }) : null, e[4] = i, e[5] = d) : d = e[5];
499
+ e[4] !== r ? (d = r ? /* @__PURE__ */ o(ge, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
500
500
  let u;
501
- e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ x(B, { gap: "sm", children: [
501
+ e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ y(F, { gap: "sm", children: [
502
502
  c,
503
503
  d
504
504
  ] }), e[6] = c, e[7] = d, e[8] = u) : u = e[8];
505
505
  let f;
506
- return e[9] !== r || e[10] !== u ? (f = /* @__PURE__ */ o(ol, { height: "100%", width: "100%", children: /* @__PURE__ */ o(en, { children: /* @__PURE__ */ o(sn, { status: "error", title: r, children: u }) }) }), e[9] = r, e[10] = u, e[11] = f) : f = e[11], f;
507
- }, Mt = {
506
+ return e[9] !== i || e[10] !== u ? (f = /* @__PURE__ */ o(_l, { height: "100%", width: "100%", children: /* @__PURE__ */ o(dn, { children: /* @__PURE__ */ o(mn, { status: "error", title: i, children: u }) }) }), e[9] = i, e[10] = u, e[11] = f) : f = e[11], f;
507
+ }, jt = {
508
508
  default: {
509
509
  paddingX: "sm",
510
510
  paddingY: "xs",
@@ -523,511 +523,555 @@ const rl = (l) => {
523
523
  secondaryMarginLeft: "0",
524
524
  secondaryTextStyle: "label/XS/regular"
525
525
  }
526
- }, gt = (l) => {
527
- const e = R(48), {
526
+ }, St = (l) => {
527
+ const e = R(51), {
528
528
  primaryLabel: n,
529
529
  tooltipLabel: t,
530
- secondaryLabel: i,
531
- leftIcon: s,
532
- rightIcon: r,
533
- leftIconColor: a,
534
- rightIconColor: c,
535
- leftIconSize: d,
536
- rightIconSize: u,
537
- rightIconAriaLabel: f,
538
- rightTooltipLabel: p,
530
+ secondaryLabel: r,
531
+ shortcutLabel: s,
532
+ leftIcon: i,
533
+ rightIcon: a,
534
+ leftIconColor: c,
535
+ rightIconColor: d,
536
+ leftIconSize: u,
537
+ rightIconSize: f,
538
+ rightIconAriaLabel: p,
539
+ rightTooltipLabel: g,
539
540
  onRightIconClick: h,
540
- tagLabel: g,
541
- tagColorPalette: S,
542
- tagVariant: m,
543
- variant: v
544
- } = l, C = Mt[v], k = !!(h && r);
545
- let y;
546
- e[0] !== k ? (y = (E) => {
547
- k && (E.preventDefault(), E.stopPropagation());
548
- }, e[0] = k, e[1] = y) : y = e[1];
549
- const I = y;
550
- let D;
551
- e[2] !== k || e[3] !== h ? (D = (E) => {
552
- !k || !h || (E.preventDefault(), E.stopPropagation(), h());
553
- }, e[2] = k, e[3] = h, e[4] = D) : D = e[4];
554
- const T = D;
555
- let b;
556
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
541
+ tagLabel: b,
542
+ tagColorPalette: m,
543
+ tagVariant: S,
544
+ variant: w
545
+ } = l, I = jt[w], x = !!(h && a);
546
+ let v;
547
+ e[0] !== x ? (v = (J) => {
548
+ x && (J.preventDefault(), J.stopPropagation());
549
+ }, e[0] = x, e[1] = v) : v = e[1];
550
+ const k = v;
551
+ let T;
552
+ e[2] !== x || e[3] !== h ? (T = (J) => {
553
+ !x || !h || (J.preventDefault(), J.stopPropagation(), h());
554
+ }, e[2] = x, e[3] = h, e[4] = T) : T = e[4];
555
+ const L = T, _ = Rl;
556
+ let P;
557
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
557
558
  placement: "right"
558
- }, e[5] = b) : b = e[5];
559
- const P = !t;
560
- let w;
561
- e[6] !== s || e[7] !== a || e[8] !== d ? (w = s ? /* @__PURE__ */ o(ae, { as: s, boxSize: d, color: a }) : null, e[6] = s, e[7] = a, e[8] = d, e[9] = w) : w = e[9];
562
- let _;
563
- e[10] !== n || e[11] !== C.primaryTextStyle ? (_ = /* @__PURE__ */ o(W, { lineClamp: 1, textOverflow: "ellipsis", textStyle: C.primaryTextStyle, children: n }), e[10] = n, e[11] = C.primaryTextStyle, e[12] = _) : _ = e[12];
564
- let L;
565
- e[13] !== w || e[14] !== _ ? (L = /* @__PURE__ */ x(fe, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
566
- w,
567
- _
568
- ] }), e[13] = w, e[14] = _, e[15] = L) : L = e[15];
559
+ }, e[5] = P) : P = e[5];
560
+ const D = !t;
561
+ let C;
562
+ e[6] !== i || e[7] !== c || e[8] !== u ? (C = _(i, u, c), e[6] = i, e[7] = c, e[8] = u, e[9] = C) : C = e[9];
569
563
  let $;
570
- e[16] !== i || e[17] !== C.secondaryMarginLeft || e[18] !== C.secondaryTextStyle ? ($ = i && /* @__PURE__ */ o(W, { ml: C.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: C.secondaryTextStyle, color: "fg.menu-item.secondary", children: i }), e[16] = i, e[17] = C.secondaryMarginLeft, e[18] = C.secondaryTextStyle, e[19] = $) : $ = e[19];
571
- let z;
572
- e[20] !== L || e[21] !== $ ? (z = /* @__PURE__ */ x(B, { gap: "2xs", children: [
573
- L,
564
+ e[10] !== n || e[11] !== I.primaryTextStyle ? ($ = /* @__PURE__ */ o(z, { lineClamp: 1, textOverflow: "ellipsis", textStyle: I.primaryTextStyle, children: n }), e[10] = n, e[11] = I.primaryTextStyle, e[12] = $) : $ = e[12];
565
+ let W;
566
+ e[13] !== C || e[14] !== $ ? (W = /* @__PURE__ */ y(ue, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
567
+ C,
574
568
  $
575
- ] }), e[20] = L, e[21] = $, e[22] = z) : z = e[22];
569
+ ] }), e[13] = C, e[14] = $, e[15] = W) : W = e[15];
570
+ let E;
571
+ e[16] !== r || e[17] !== I.secondaryMarginLeft || e[18] !== I.secondaryTextStyle ? (E = r && /* @__PURE__ */ o(z, { ml: I.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: I.secondaryTextStyle, color: "fg.menu-item.secondary", children: r }), e[16] = r, e[17] = I.secondaryMarginLeft, e[18] = I.secondaryTextStyle, e[19] = E) : E = e[19];
576
572
  let O;
577
- e[23] !== P || e[24] !== z || e[25] !== t ? (O = /* @__PURE__ */ o(xe, { positioning: b, content: t, disabled: P, children: z }), e[23] = P, e[24] = z, e[25] = t, e[26] = O) : O = e[26];
578
- let G;
579
- e[27] !== T || e[28] !== I || e[29] !== k || e[30] !== r || e[31] !== f || e[32] !== c || e[33] !== u || e[34] !== p ? (G = r ? /* @__PURE__ */ o(xe, { positioning: {
573
+ e[20] !== W || e[21] !== E ? (O = /* @__PURE__ */ y(F, { gap: "2xs", children: [
574
+ W,
575
+ E
576
+ ] }), e[20] = W, e[21] = E, e[22] = O) : O = e[22];
577
+ let B;
578
+ e[23] !== D || e[24] !== O || e[25] !== t ? (B = /* @__PURE__ */ o(Se, { positioning: P, content: t, disabled: D, children: O }), e[23] = D, e[24] = O, e[25] = t, e[26] = B) : B = e[26];
579
+ let V;
580
+ e[27] !== s ? (V = s ? /* @__PURE__ */ o(ue, { alignItems: "center", children: s }) : null, e[27] = s, e[28] = V) : V = e[28];
581
+ let U;
582
+ e[29] !== L || e[30] !== k || e[31] !== x || e[32] !== a || e[33] !== p || e[34] !== d || e[35] !== f || e[36] !== g ? (U = a ? /* @__PURE__ */ o(Se, { positioning: {
580
583
  placement: "right"
581
- }, content: p, disabled: !p, children: /* @__PURE__ */ o(fe, { as: k ? "button" : "div", alignItems: "center", "aria-label": f, cursor: k ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: I, onClick: T, children: /* @__PURE__ */ o(ae, { as: r, boxSize: u, color: c }) }) }) : null, e[27] = T, e[28] = I, e[29] = k, e[30] = r, e[31] = f, e[32] = c, e[33] = u, e[34] = p, e[35] = G) : G = e[35];
582
- let H;
583
- e[36] !== G ? (H = /* @__PURE__ */ o(fe, { justifyContent: "flex-end", color: "fg.menu-item.default", children: G }), e[36] = G, e[37] = H) : H = e[37];
584
- let X;
585
- e[38] !== H || e[39] !== O ? (X = /* @__PURE__ */ x(fe, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
586
- O,
587
- H
588
- ] }), e[38] = H, e[39] = O, e[40] = X) : X = e[40];
589
- let F;
590
- e[41] !== S || e[42] !== g || e[43] !== m ? (F = g ? /* @__PURE__ */ o(Pe, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: S, variant: m, pointerEvents: "none", children: g }) : null, e[41] = S, e[42] = g, e[43] = m, e[44] = F) : F = e[44];
584
+ }, content: g, disabled: !g, children: /* @__PURE__ */ o(ue, { as: x ? "button" : "div", alignItems: "center", "aria-label": p, cursor: x ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: k, onClick: L, children: _(a, f, d) }) }) : null, e[29] = L, e[30] = k, e[31] = x, e[32] = a, e[33] = p, e[34] = d, e[35] = f, e[36] = g, e[37] = U) : U = e[37];
585
+ let j;
586
+ e[38] !== V || e[39] !== U ? (j = /* @__PURE__ */ y(ue, { justifyContent: "flex-end", alignItems: "center", gap: "xs", color: "fg.menu-item.default", children: [
587
+ V,
588
+ U
589
+ ] }), e[38] = V, e[39] = U, e[40] = j) : j = e[40];
591
590
  let A;
592
- return e[45] !== X || e[46] !== F ? (A = /* @__PURE__ */ x(Lt, { children: [
593
- X,
594
- F
595
- ] }), e[45] = X, e[46] = F, e[47] = A) : A = e[47], A;
596
- }, De = (l) => {
597
- const e = R(48), {
591
+ e[41] !== j || e[42] !== B ? (A = /* @__PURE__ */ y(ue, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
592
+ B,
593
+ j
594
+ ] }), e[41] = j, e[42] = B, e[43] = A) : A = e[43];
595
+ let Y;
596
+ e[44] !== m || e[45] !== b || e[46] !== S ? (Y = b ? /* @__PURE__ */ o(ye, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: m, variant: S, pointerEvents: "none", children: b }) : null, e[44] = m, e[45] = b, e[46] = S, e[47] = Y) : Y = e[47];
597
+ let N;
598
+ return e[48] !== A || e[49] !== Y ? (N = /* @__PURE__ */ y(dt, { children: [
599
+ A,
600
+ Y
601
+ ] }), e[48] = A, e[49] = Y, e[50] = N) : N = e[50], N;
602
+ }, Pe = (l) => {
603
+ const e = R(49), {
598
604
  id: n,
599
605
  children: t,
600
- asChild: i,
606
+ asChild: r,
601
607
  primaryLabel: s,
602
- tooltipLabel: r,
608
+ tooltipLabel: i,
603
609
  secondaryLabel: a,
604
- leftIcon: c,
605
- rightIcon: d,
606
- leftIconColor: u,
607
- rightIconColor: f,
608
- leftIconSize: p,
610
+ shortcutLabel: c,
611
+ leftIcon: d,
612
+ rightIcon: u,
613
+ leftIconColor: f,
614
+ rightIconColor: p,
615
+ leftIconSize: g,
609
616
  rightIconSize: h,
610
- rightIconAriaLabel: g,
611
- rightTooltipLabel: S,
612
- onRightIconClick: m,
613
- isDisabled: v,
614
- isSelected: C,
615
- tagLabel: k,
616
- tagColorPalette: y,
617
- tagVariant: I,
618
- variant: D,
619
- tabIndex: T,
620
- width: b,
617
+ rightIconAriaLabel: b,
618
+ rightTooltipLabel: m,
619
+ onRightIconClick: S,
620
+ isDisabled: w,
621
+ isSelected: I,
622
+ tagLabel: x,
623
+ tagColorPalette: v,
624
+ tagVariant: k,
625
+ variant: T,
626
+ tabIndex: L,
627
+ width: _,
621
628
  maxWidth: P,
622
- setRefElement: w
623
- } = l, _ = c === void 0 ? null : c, L = u === void 0 ? "fg.menu-item.default" : u, $ = f === void 0 ? "fg.menu-item.default" : f, z = y === void 0 ? "yellow" : y, O = I === void 0 ? "subtle" : I, G = D === void 0 ? "default" : D, {
624
- onClick: H,
625
- onMouseDown: X,
626
- onMouseEnter: F
627
- } = l, A = Mt[G], E = C ? "bg.menu-item.selected" : "bg.menu-item.default", K = p ?? A.iconSize, M = h ?? A.iconSize;
628
- let Z;
629
- e[0] !== _ || e[1] !== L || e[2] !== m || e[3] !== s || e[4] !== K || e[5] !== M || e[6] !== d || e[7] !== g || e[8] !== $ || e[9] !== S || e[10] !== a || e[11] !== z || e[12] !== k || e[13] !== O || e[14] !== r || e[15] !== G ? (Z = {
629
+ setRefElement: D
630
+ } = l, C = d === void 0 ? null : d, $ = f === void 0 ? "fg.menu-item.default" : f, W = p === void 0 ? "fg.menu-item.default" : p, E = v === void 0 ? "yellow" : v, O = k === void 0 ? "subtle" : k, B = T === void 0 ? "default" : T, {
631
+ onClick: V,
632
+ onMouseDown: U,
633
+ onMouseEnter: j
634
+ } = l, A = jt[B], Y = I ? "bg.menu-item.selected" : "bg.menu-item.default", N = g ?? A.iconSize, J = h ?? A.iconSize;
635
+ let Q;
636
+ e[0] !== C || e[1] !== $ || e[2] !== S || e[3] !== s || e[4] !== N || e[5] !== J || e[6] !== u || e[7] !== b || e[8] !== W || e[9] !== m || e[10] !== a || e[11] !== c || e[12] !== E || e[13] !== x || e[14] !== O || e[15] !== i || e[16] !== B ? (Q = {
630
637
  primaryLabel: s,
631
638
  secondaryLabel: a,
632
- tooltipLabel: r,
633
- leftIcon: _,
634
- rightIcon: d,
635
- leftIconColor: L,
636
- rightIconColor: $,
637
- leftIconSize: K,
638
- rightIconSize: M,
639
- rightIconAriaLabel: g,
640
- rightTooltipLabel: S,
641
- onRightIconClick: m,
642
- tagLabel: k,
643
- tagColorPalette: z,
639
+ shortcutLabel: c,
640
+ tooltipLabel: i,
641
+ leftIcon: C,
642
+ rightIcon: u,
643
+ leftIconColor: $,
644
+ rightIconColor: W,
645
+ leftIconSize: N,
646
+ rightIconSize: J,
647
+ rightIconAriaLabel: b,
648
+ rightTooltipLabel: m,
649
+ onRightIconClick: S,
650
+ tagLabel: x,
651
+ tagColorPalette: E,
644
652
  tagVariant: O,
645
- variant: G
646
- }, e[0] = _, e[1] = L, e[2] = m, e[3] = s, e[4] = K, e[5] = M, e[6] = d, e[7] = g, e[8] = $, e[9] = S, e[10] = a, e[11] = z, e[12] = k, e[13] = O, e[14] = r, e[15] = G, e[16] = Z) : Z = e[16];
647
- const U = Z, q = P ?? "20rem", J = v ? "default" : "pointer", ee = n ?? s;
648
- let te, ne;
649
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = {
653
+ variant: B
654
+ }, e[0] = C, e[1] = $, e[2] = S, e[3] = s, e[4] = N, e[5] = J, e[6] = u, e[7] = b, e[8] = W, e[9] = m, e[10] = a, e[11] = c, e[12] = E, e[13] = x, e[14] = O, e[15] = i, e[16] = B, e[17] = Q) : Q = e[17];
655
+ const q = Q, ne = P ?? "20rem", le = w ? "default" : "pointer", te = n ?? s;
656
+ let re, Z;
657
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = {
650
658
  bg: "bg.menu-item.hover"
651
- }, ne = {
659
+ }, Z = {
652
660
  bg: "bg.menu-item.focus"
653
- }, e[17] = te, e[18] = ne) : (te = e[17], ne = e[18]);
654
- let le;
655
- e[19] !== E || e[20] !== n || e[21] !== v || e[22] !== C || e[23] !== w || e[24] !== q || e[25] !== J || e[26] !== ee || e[27] !== T || e[28] !== A.minHeight || e[29] !== A.paddingX || e[30] !== A.paddingY || e[31] !== b ? (le = {
661
+ }, e[18] = re, e[19] = Z) : (re = e[18], Z = e[19]);
662
+ let pe;
663
+ e[20] !== Y || e[21] !== n || e[22] !== w || e[23] !== I || e[24] !== D || e[25] !== ne || e[26] !== le || e[27] !== te || e[28] !== L || e[29] !== A.minHeight || e[30] !== A.paddingX || e[31] !== A.paddingY || e[32] !== _ ? (pe = {
656
664
  id: n,
657
- ref: w,
658
- tabIndex: T,
659
- disabled: v,
660
- "aria-selected": C,
665
+ ref: D,
666
+ tabIndex: L,
667
+ disabled: w,
668
+ "aria-selected": I,
661
669
  paddingX: A.paddingX,
662
670
  paddingY: A.paddingY,
663
671
  height: "auto",
664
672
  minHeight: A.minHeight,
665
673
  role: "option",
666
- width: b,
667
- maxWidth: q,
674
+ width: _,
675
+ maxWidth: ne,
668
676
  overflow: "hidden",
669
677
  position: "relative",
670
- cursor: J,
671
- value: ee,
672
- bg: E,
673
- _hover: te,
674
- _focus: ne,
678
+ cursor: le,
679
+ value: te,
680
+ bg: Y,
681
+ _hover: re,
682
+ _focus: Z,
675
683
  textDecoration: "none",
676
684
  color: "inherit"
677
- }, e[19] = E, e[20] = n, e[21] = v, e[22] = C, e[23] = w, e[24] = q, e[25] = J, e[26] = ee, e[27] = T, e[28] = A.minHeight, e[29] = A.paddingX, e[30] = A.paddingY, e[31] = b, e[32] = le) : le = e[32];
678
- const re = le;
679
- if (i && t) {
680
- let de, ue;
681
- if (e[33] !== t || e[34] !== re || e[35] !== U) {
682
- ue = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
685
+ }, e[20] = Y, e[21] = n, e[22] = w, e[23] = I, e[24] = D, e[25] = ne, e[26] = le, e[27] = te, e[28] = L, e[29] = A.minHeight, e[30] = A.paddingX, e[31] = A.paddingY, e[32] = _, e[33] = pe) : pe = e[33];
686
+ const se = pe;
687
+ if (r && t) {
688
+ let ce, ie;
689
+ if (e[34] !== t || e[35] !== se || e[36] !== q) {
690
+ ie = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
683
691
  e: {
684
- const me = cn.only(t);
685
- if (!dn(me)) {
686
- ue = null;
692
+ const fe = xn.only(t);
693
+ if (!ft(fe)) {
694
+ ie = null;
687
695
  break e;
688
696
  }
689
- let ie;
690
- e[38] !== U ? (ie = /* @__PURE__ */ o(gt, { ...U }), e[38] = U, e[39] = ie) : ie = e[39], de = /* @__PURE__ */ o(dt, { asChild: !0, ...re, children: un(me, void 0, ie) });
697
+ let M;
698
+ e[39] !== q ? (M = /* @__PURE__ */ o(St, { ...q }), e[39] = q, e[40] = M) : M = e[40], ce = /* @__PURE__ */ o(gt, { asChild: !0, ...se, children: Sn(fe, void 0, M) });
691
699
  }
692
- e[33] = t, e[34] = re, e[35] = U, e[36] = de, e[37] = ue;
700
+ e[34] = t, e[35] = se, e[36] = q, e[37] = ce, e[38] = ie;
693
701
  } else
694
- de = e[36], ue = e[37];
695
- return ue !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ue : de;
702
+ ce = e[37], ie = e[38];
703
+ return ie !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ie : ce;
696
704
  }
697
705
  let oe;
698
- e[40] !== U ? (oe = /* @__PURE__ */ o(gt, { ...U }), e[40] = U, e[41] = oe) : oe = e[41];
699
- let ce;
700
- return e[42] !== re || e[43] !== H || e[44] !== X || e[45] !== F || e[46] !== oe ? (ce = /* @__PURE__ */ o(dt, { ...re, onClick: H, onMouseDown: X, onMouseEnter: F, children: oe }), e[42] = re, e[43] = H, e[44] = X, e[45] = F, e[46] = oe, e[47] = ce) : ce = e[47], ce;
701
- }, sl = (l) => l.isDirectory ? l.isGitRepo ? Sn : xn : bn, al = (l) => {
706
+ e[41] !== q ? (oe = /* @__PURE__ */ o(St, { ...q }), e[41] = q, e[42] = oe) : oe = e[42];
707
+ let ae;
708
+ return e[43] !== se || e[44] !== V || e[45] !== U || e[46] !== j || e[47] !== oe ? (ae = /* @__PURE__ */ o(gt, { ...se, onClick: V, onMouseDown: U, onMouseEnter: j, children: oe }), e[43] = se, e[44] = V, e[45] = U, e[46] = j, e[47] = oe, e[48] = ae) : ae = e[48], ae;
709
+ };
710
+ function Rl(l, e, n) {
711
+ return l ? ft(l) ? /* @__PURE__ */ o(ue, { alignItems: "center", justifyContent: "center", boxSize: e, color: n, children: l }) : typeof l != "function" && (typeof l != "object" || l === null) ? l : /* @__PURE__ */ o(ee, { as: l, boxSize: e, color: n }) : null;
712
+ }
713
+ const Wl = (l) => l.isDirectory ? l.isGitRepo ? Pn : Tn : kn, zl = (l) => {
702
714
  const e = R(18), {
703
715
  entry: n,
704
716
  selectedPath: t,
705
- selectedPathSet: i,
717
+ selectedPathSet: r,
706
718
  onEntryClick: s
707
719
  } = l;
708
- let r;
709
- e[0] !== n.isGitRepo || e[1] !== n.path || e[2] !== i ? (r = n.isGitRepo && i.has(n.path), e[0] = n.isGitRepo, e[1] = n.path, e[2] = i, e[3] = r) : r = e[3];
710
- const a = r, c = !n.isDirectory || a;
720
+ let i;
721
+ e[0] !== n.isGitRepo || e[1] !== n.path || e[2] !== r ? (i = n.isGitRepo && r.has(n.path), e[0] = n.isGitRepo, e[1] = n.path, e[2] = r, e[3] = i) : i = e[3];
722
+ const a = i, c = !n.isDirectory || a;
711
723
  let d;
712
724
  e[4] !== n || e[5] !== a || e[6] !== s ? (d = () => {
713
725
  a || s(n);
714
726
  }, e[4] = n, e[5] = a, e[6] = s, e[7] = d) : d = e[7];
715
727
  const u = d, f = n.name;
716
728
  let p;
717
- e[8] !== n ? (p = sl(n), e[8] = n, e[9] = p) : p = e[9];
718
- const h = n.isGitRepo ? "Git repo" : void 0, g = n.isGitRepo ? "green" : void 0, S = t === n.path;
729
+ e[8] !== n ? (p = Wl(n), e[8] = n, e[9] = p) : p = e[9];
730
+ const g = n.isGitRepo ? "Git repo" : void 0, h = n.isGitRepo ? "green" : void 0, b = t === n.path;
719
731
  let m;
720
- return e[10] !== n.name || e[11] !== u || e[12] !== c || e[13] !== p || e[14] !== h || e[15] !== g || e[16] !== S ? (m = /* @__PURE__ */ o(Y.Root, { children: /* @__PURE__ */ o(De, { primaryLabel: f, leftIcon: p, tagLabel: h, tagColorPalette: g, isDisabled: c, isSelected: S, width: "100%", maxWidth: "100%", onClick: u }) }), e[10] = n.name, e[11] = u, e[12] = c, e[13] = p, e[14] = h, e[15] = g, e[16] = S, e[17] = m) : m = e[17], m;
721
- }, Ri = (l) => {
732
+ return e[10] !== n.name || e[11] !== u || e[12] !== c || e[13] !== p || e[14] !== g || e[15] !== h || e[16] !== b ? (m = /* @__PURE__ */ o(X.Root, { children: /* @__PURE__ */ o(Pe, { primaryLabel: f, leftIcon: p, tagLabel: g, tagColorPalette: h, isDisabled: c, isSelected: b, width: "100%", maxWidth: "100%", onClick: u }) }), e[10] = n.name, e[11] = u, e[12] = c, e[13] = p, e[14] = g, e[15] = h, e[16] = b, e[17] = m) : m = e[17], m;
733
+ }, dr = (l) => {
722
734
  const e = R(54), {
723
735
  open: n,
724
736
  title: t,
725
- description: i,
737
+ description: r,
726
738
  currentPath: s,
727
- entries: r,
739
+ entries: i,
728
740
  selectedPath: a,
729
741
  selectedPaths: c,
730
742
  isLoading: d,
731
743
  error: u,
732
744
  isSelectDisabled: f,
733
745
  onClose: p,
734
- onSelect: h,
735
- onSelectHomeDirectory: g,
736
- onSelectParentDirectory: S,
746
+ onSelect: g,
747
+ onSelectHomeDirectory: h,
748
+ onSelectParentDirectory: b,
737
749
  onEntryClick: m
738
- } = l, v = t === void 0 ? "Select folder" : t, C = s === void 0 ? "" : s, k = a === void 0 ? null : a;
739
- let y;
740
- e[0] !== c ? (y = c === void 0 ? [] : c, e[0] = c, e[1] = y) : y = e[1];
741
- const I = y, D = d === void 0 ? !1 : d, T = u === void 0 ? "" : u, b = f === void 0 ? !1 : f;
742
- let P;
743
- e[2] !== I ? (P = new Set(I), e[2] = I, e[3] = P) : P = e[3];
744
- const w = P;
750
+ } = l, S = t === void 0 ? "Select folder" : t, w = s === void 0 ? "" : s, I = a === void 0 ? null : a;
751
+ let x;
752
+ e[0] !== c ? (x = c === void 0 ? [] : c, e[0] = c, e[1] = x) : x = e[1];
753
+ const v = x, k = d === void 0 ? !1 : d, T = u === void 0 ? "" : u, L = f === void 0 ? !1 : f;
745
754
  let _;
746
- e[4] !== p ? (_ = (re) => !re.open && p(), e[4] = p, e[5] = _) : _ = e[5];
747
- let L;
748
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ o(se.Backdrop, {}), e[6] = L) : L = e[6];
755
+ e[2] !== v ? (_ = new Set(v), e[2] = v, e[3] = _) : _ = e[3];
756
+ const P = _;
757
+ let D;
758
+ e[4] !== p ? (D = (pe) => !pe.open && p(), e[4] = p, e[5] = D) : D = e[5];
759
+ let C;
760
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ o(de.Backdrop, {}), e[6] = C) : C = e[6];
749
761
  let $;
750
- e[7] !== v ? ($ = /* @__PURE__ */ o(W, { textStyle: "heading/M", children: v }), e[7] = v, e[8] = $) : $ = e[8];
751
- let z;
752
- e[9] !== i ? (z = i ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: i }) : null, e[9] = i, e[10] = z) : z = e[10];
753
- let O;
754
- e[11] !== $ || e[12] !== z ? (O = /* @__PURE__ */ o(se.Header, { children: /* @__PURE__ */ x(B, { gap: "xs", children: [
762
+ e[7] !== S ? ($ = /* @__PURE__ */ o(z, { textStyle: "heading/M", children: S }), e[7] = S, e[8] = $) : $ = e[8];
763
+ let W;
764
+ e[9] !== r ? (W = r ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = W) : W = e[10];
765
+ let E;
766
+ e[11] !== $ || e[12] !== W ? (E = /* @__PURE__ */ o(de.Header, { children: /* @__PURE__ */ y(F, { gap: "xs", children: [
755
767
  $,
756
- z
757
- ] }) }), e[11] = $, e[12] = z, e[13] = O) : O = e[13];
758
- let G;
759
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ o(yn, { size: 16 }), e[14] = G) : G = e[14];
760
- let H;
761
- e[15] !== g ? (H = /* @__PURE__ */ o(pe, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: g, children: G }), e[15] = g, e[16] = H) : H = e[16];
762
- const X = !C || C === "/";
763
- let F;
764
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ o(vn, { size: 16 }), e[17] = F) : F = e[17];
765
- let A;
766
- e[18] !== S || e[19] !== X ? (A = /* @__PURE__ */ o(pe, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: S, disabled: X, children: F }), e[18] = S, e[19] = X, e[20] = A) : A = e[20];
767
- const E = C || "Home";
768
- let K;
769
- e[21] !== E ? (K = /* @__PURE__ */ o(W, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: E }), e[21] = E, e[22] = K) : K = e[22];
770
- let M;
771
- e[23] !== H || e[24] !== A || e[25] !== K ? (M = /* @__PURE__ */ x(B, { direction: "row", gap: "sm", align: "center", children: [
772
- H,
773
- A,
774
- K
775
- ] }), e[23] = H, e[24] = A, e[25] = K, e[26] = M) : M = e[26];
776
- let Z;
777
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = {
778
- padding: "sm"
779
- }, e[27] = Z) : Z = e[27];
768
+ W
769
+ ] }) }), e[11] = $, e[12] = W, e[13] = E) : E = e[13];
770
+ let O;
771
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(Dn, { size: 16 }), e[14] = O) : O = e[14];
772
+ let B;
773
+ e[15] !== h ? (B = /* @__PURE__ */ o(ge, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: h, children: O }), e[15] = h, e[16] = B) : B = e[16];
774
+ const V = !w || w === "/";
780
775
  let U;
781
- e[28] !== r || e[29] !== T || e[30] !== D || e[31] !== m || e[32] !== k || e[33] !== w ? (U = /* @__PURE__ */ o(ke, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: Z, children: D ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : T ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "red.500", children: T }) : r.length === 0 ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ o(B, { gap: "xs", children: r.map((re) => /* @__PURE__ */ o(al, { entry: re, selectedPath: k, selectedPathSet: w, onEntryClick: m }, re.path)) }) }), e[28] = r, e[29] = T, e[30] = D, e[31] = m, e[32] = k, e[33] = w, e[34] = U) : U = e[34];
782
- let q;
783
- e[35] !== M || e[36] !== U ? (q = /* @__PURE__ */ o(se.Body, { children: /* @__PURE__ */ x(B, { gap: "md", children: [
784
- M,
785
- U
786
- ] }) }), e[35] = M, e[36] = U, e[37] = q) : q = e[37];
776
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ o(_n, { size: 16 }), e[17] = U) : U = e[17];
777
+ let j;
778
+ e[18] !== b || e[19] !== V ? (j = /* @__PURE__ */ o(ge, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: b, disabled: V, children: U }), e[18] = b, e[19] = V, e[20] = j) : j = e[20];
779
+ const A = w || "Home";
780
+ let Y;
781
+ e[21] !== A ? (Y = /* @__PURE__ */ o(z, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: A }), e[21] = A, e[22] = Y) : Y = e[22];
782
+ let N;
783
+ e[23] !== B || e[24] !== j || e[25] !== Y ? (N = /* @__PURE__ */ y(F, { direction: "row", gap: "sm", align: "center", children: [
784
+ B,
785
+ j,
786
+ Y
787
+ ] }), e[23] = B, e[24] = j, e[25] = Y, e[26] = N) : N = e[26];
787
788
  let J;
788
- e[38] !== p ? (J = /* @__PURE__ */ o(pe, { variant: "outline", onClick: p, children: "Cancel" }), e[38] = p, e[39] = J) : J = e[39];
789
- let ee;
790
- e[40] !== b || e[41] !== h ? (ee = /* @__PURE__ */ o(pe, { onClick: h, disabled: b, children: "Select repository" }), e[40] = b, e[41] = h, e[42] = ee) : ee = e[42];
791
- let te;
792
- e[43] !== J || e[44] !== ee ? (te = /* @__PURE__ */ o(se.Footer, { children: /* @__PURE__ */ x(B, { direction: "row", gap: "sm", children: [
793
- J,
794
- ee
795
- ] }) }), e[43] = J, e[44] = ee, e[45] = te) : te = e[45];
789
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = {
790
+ padding: "sm"
791
+ }, e[27] = J) : J = e[27];
792
+ let Q;
793
+ e[28] !== i || e[29] !== T || e[30] !== k || e[31] !== m || e[32] !== I || e[33] !== P ? (Q = /* @__PURE__ */ o(ke, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: J, children: k ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : T ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "red.500", children: T }) : i.length === 0 ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ o(F, { gap: "xs", children: i.map((pe) => /* @__PURE__ */ o(zl, { entry: pe, selectedPath: I, selectedPathSet: P, onEntryClick: m }, pe.path)) }) }), e[28] = i, e[29] = T, e[30] = k, e[31] = m, e[32] = I, e[33] = P, e[34] = Q) : Q = e[34];
794
+ let q;
795
+ e[35] !== N || e[36] !== Q ? (q = /* @__PURE__ */ o(de.Body, { children: /* @__PURE__ */ y(F, { gap: "md", children: [
796
+ N,
797
+ Q
798
+ ] }) }), e[35] = N, e[36] = Q, e[37] = q) : q = e[37];
796
799
  let ne;
797
- e[46] !== O || e[47] !== q || e[48] !== te ? (ne = /* @__PURE__ */ o(se.Positioner, { children: /* @__PURE__ */ x(se.Content, { children: [
798
- O,
800
+ e[38] !== p ? (ne = /* @__PURE__ */ o(ge, { variant: "outline", onClick: p, children: "Cancel" }), e[38] = p, e[39] = ne) : ne = e[39];
801
+ let le;
802
+ e[40] !== L || e[41] !== g ? (le = /* @__PURE__ */ o(ge, { onClick: g, disabled: L, children: "Select repository" }), e[40] = L, e[41] = g, e[42] = le) : le = e[42];
803
+ let te;
804
+ e[43] !== ne || e[44] !== le ? (te = /* @__PURE__ */ o(de.Footer, { children: /* @__PURE__ */ y(F, { direction: "row", gap: "sm", children: [
805
+ ne,
806
+ le
807
+ ] }) }), e[43] = ne, e[44] = le, e[45] = te) : te = e[45];
808
+ let re;
809
+ e[46] !== E || e[47] !== q || e[48] !== te ? (re = /* @__PURE__ */ o(de.Positioner, { children: /* @__PURE__ */ y(de.Content, { children: [
810
+ E,
799
811
  q,
800
812
  te
801
- ] }) }), e[46] = O, e[47] = q, e[48] = te, e[49] = ne) : ne = e[49];
802
- let le;
803
- return e[50] !== n || e[51] !== ne || e[52] !== _ ? (le = /* @__PURE__ */ x(se.Root, { lazyMount: !0, unmountOnExit: !0, closeOnInteractOutside: !1, open: n, onOpenChange: _, children: [
804
- L,
805
- ne
806
- ] }), e[50] = n, e[51] = ne, e[52] = _, e[53] = le) : le = e[53], le;
813
+ ] }) }), e[46] = E, e[47] = q, e[48] = te, e[49] = re) : re = e[49];
814
+ let Z;
815
+ return e[50] !== n || e[51] !== re || e[52] !== D ? (Z = /* @__PURE__ */ y(de.Root, { lazyMount: !0, unmountOnExit: !0, closeOnInteractOutside: !1, open: n, onOpenChange: D, children: [
816
+ C,
817
+ re
818
+ ] }), e[50] = n, e[51] = re, e[52] = D, e[53] = Z) : Z = e[53], Z;
807
819
  };
808
- function cl(l) {
820
+ function El(l) {
809
821
  const e = R(14);
810
- let n, t, i, s, r, a;
822
+ let n, t, r, s, i, a;
811
823
  e[0] !== l ? ({
812
824
  children: n,
813
- h: i,
825
+ h: r,
814
826
  px: s,
815
- py: r,
827
+ py: i,
816
828
  borderBottomWidth: a,
817
829
  ...t
818
- } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = i, e[4] = s, e[5] = r, e[6] = a) : (n = e[1], t = e[2], i = e[3], s = e[4], r = e[5], a = e[6]);
819
- const c = i === void 0 ? "41px" : i, d = s === void 0 ? "xs" : s, u = r === void 0 ? "xs" : r, f = a === void 0 ? "1px" : a;
830
+ } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = r, e[4] = s, e[5] = i, e[6] = a) : (n = e[1], t = e[2], r = e[3], s = e[4], i = e[5], a = e[6]);
831
+ const c = r === void 0 ? "41px" : r, d = s === void 0 ? "xs" : s, u = i === void 0 ? "xs" : i, f = a === void 0 ? "1px" : a;
820
832
  let p;
821
- return e[7] !== f || e[8] !== n || e[9] !== c || e[10] !== d || e[11] !== u || e[12] !== t ? (p = /* @__PURE__ */ o(j, { ...t, h: c, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.muted", px: d, py: u, children: n }), e[7] = f, e[8] = n, e[9] = c, e[10] = d, e[11] = u, e[12] = t, e[13] = p) : p = e[13], p;
833
+ return e[7] !== f || e[8] !== n || e[9] !== c || e[10] !== d || e[11] !== u || e[12] !== t ? (p = /* @__PURE__ */ o(H, { ...t, h: c, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.muted", px: d, py: u, children: n }), e[7] = f, e[8] = n, e[9] = c, e[10] = d, e[11] = u, e[12] = t, e[13] = p) : p = e[13], p;
822
834
  }
823
- const Wi = (l) => {
835
+ const ur = (l) => {
824
836
  const e = R(17), {
825
837
  children: n,
826
838
  title: t,
827
- defaultOpen: i,
839
+ defaultOpen: r,
828
840
  action: s
829
- } = l, r = i === void 0 ? !0 : i;
841
+ } = l, i = r === void 0 ? !0 : r;
830
842
  let a;
831
843
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
832
844
  background: "bg.hover"
833
845
  }, e[0] = a) : a = e[0];
834
846
  let c;
835
- e[1] !== t ? (c = t && /* @__PURE__ */ o(W, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
847
+ e[1] !== t ? (c = t && /* @__PURE__ */ o(z, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
836
848
  let d;
837
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ o(je.Indicator, { transition: "transform 0.2s", _open: {
849
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ o(Ye.Indicator, { transition: "transform 0.2s", _open: {
838
850
  transform: "rotate(90deg)"
839
- }, children: /* @__PURE__ */ o(Te, { size: 16 }) }), e[3] = d) : d = e[3];
851
+ }, children: /* @__PURE__ */ o(_e, { size: 16 }) }), e[3] = d) : d = e[3];
840
852
  let u;
841
- e[4] !== c ? (u = /* @__PURE__ */ x(je.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
853
+ e[4] !== c ? (u = /* @__PURE__ */ y(Ye.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
842
854
  c,
843
855
  d
844
856
  ] }), e[4] = c, e[5] = u) : u = e[5];
845
857
  let f;
846
- e[6] !== s ? (f = s && /* @__PURE__ */ o(V, { marginLeft: "auto", onClick: dl, children: s }), e[6] = s, e[7] = f) : f = e[7];
858
+ e[6] !== s ? (f = s && /* @__PURE__ */ o(G, { marginLeft: "auto", onClick: Ol, children: s }), e[6] = s, e[7] = f) : f = e[7];
847
859
  let p;
848
- e[8] !== u || e[9] !== f ? (p = /* @__PURE__ */ x(fe, { children: [
860
+ e[8] !== u || e[9] !== f ? (p = /* @__PURE__ */ y(ue, { children: [
849
861
  u,
850
862
  f
851
863
  ] }), e[8] = u, e[9] = f, e[10] = p) : p = e[10];
852
- let h;
853
- e[11] !== n ? (h = /* @__PURE__ */ o(je.Content, { children: n }), e[11] = n, e[12] = h) : h = e[12];
854
864
  let g;
855
- return e[13] !== r || e[14] !== p || e[15] !== h ? (g = /* @__PURE__ */ x(je.Root, { defaultOpen: r, width: "full", children: [
865
+ e[11] !== n ? (g = /* @__PURE__ */ o(Ye.Content, { children: n }), e[11] = n, e[12] = g) : g = e[12];
866
+ let h;
867
+ return e[13] !== i || e[14] !== p || e[15] !== g ? (h = /* @__PURE__ */ y(Ye.Root, { defaultOpen: i, width: "full", children: [
856
868
  p,
857
- h
858
- ] }), e[13] = r, e[14] = p, e[15] = h, e[16] = g) : g = e[16], g;
869
+ g
870
+ ] }), e[13] = i, e[14] = p, e[15] = g, e[16] = h) : h = e[16], h;
859
871
  };
860
- function dl(l) {
872
+ function Ol(l) {
861
873
  return l.stopPropagation();
862
874
  }
863
- const Gt = "2.5625rem", ul = tn({
875
+ const Xt = "2.5625rem", Al = un({
864
876
  placement: "bottom-end",
865
877
  pauseOnPageIdle: !0,
866
878
  duration: 1e4
867
- }), Ei = () => {
879
+ }), fr = () => {
868
880
  const l = R(1);
869
881
  let e;
870
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(nn, { toaster: ul, insetInline: {
882
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ o(Be, { children: /* @__PURE__ */ o(fn, { toaster: Al, insetInline: {
871
883
  mdDown: "4"
872
- }, children: fl }) }), l[0] = e) : e = l[0], e;
884
+ }, children: Ml }) }), l[0] = e) : e = l[0], e;
873
885
  };
874
- function fl(l) {
875
- return /* @__PURE__ */ x(ze.Root, { width: {
886
+ function Ml(l) {
887
+ return /* @__PURE__ */ y(Oe.Root, { width: {
876
888
  md: "sm"
877
889
  }, alignItems: "start", children: [
878
- l.type === "loading" ? /* @__PURE__ */ o(Tt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ o(ze.Indicator, {}),
879
- /* @__PURE__ */ x(B, { gap: "1", flex: "1", minWidth: "0", maxWidth: "100%", children: [
880
- l.title && /* @__PURE__ */ o(ze.Title, { children: l.title }),
881
- l.description && /* @__PURE__ */ o(ze.Description, { maxHeight: "12rem", overflowY: "auto", paddingEnd: "1", whiteSpace: "pre-wrap", wordBreak: "break-word", children: l.description })
890
+ l.type === "loading" ? /* @__PURE__ */ o(Et, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ o(Oe.Indicator, {}),
891
+ /* @__PURE__ */ y(F, { gap: "1", flex: "1", minWidth: "0", maxWidth: "100%", children: [
892
+ l.title && /* @__PURE__ */ o(Oe.Title, { children: l.title }),
893
+ l.description && /* @__PURE__ */ o(Oe.Description, { maxHeight: "12rem", overflowY: "auto", paddingEnd: "1", whiteSpace: "pre-wrap", wordBreak: "break-word", children: l.description })
882
894
  ] }),
883
- l.action && /* @__PURE__ */ o(ze.ActionTrigger, { children: l.action.label }),
884
- l.closable && /* @__PURE__ */ o(ze.CloseTrigger, {})
895
+ l.action && /* @__PURE__ */ o(Oe.ActionTrigger, { children: l.action.label }),
896
+ l.closable && /* @__PURE__ */ o(Oe.CloseTrigger, {})
885
897
  ] });
886
898
  }
887
- const zi = (l) => {
899
+ const pr = (l) => {
888
900
  const e = R(12), {
889
901
  sidebar: n,
890
902
  errorLabel: t,
891
- children: i
903
+ children: r
892
904
  } = l;
893
905
  let s;
894
- e[0] !== n ? (s = n ? /* @__PURE__ */ o(fe, { minH: "0", flexShrink: 0, children: n }) : null, e[0] = n, e[1] = s) : s = e[1];
895
- const r = t ?? "Unable to render the panel.";
906
+ e[0] !== n ? (s = n ? /* @__PURE__ */ o(ue, { minH: "0", flexShrink: 0, children: n }) : null, e[0] = n, e[1] = s) : s = e[1];
907
+ const i = t ?? "Unable to render the panel.";
896
908
  let a;
897
- e[2] !== i ? (a = i ?? /* @__PURE__ */ o(Vn, {}), e[2] = i, e[3] = a) : a = e[3];
909
+ e[2] !== r ? (a = r ?? /* @__PURE__ */ o(hl, {}), e[2] = r, e[3] = a) : a = e[3];
898
910
  let c;
899
- e[4] !== a ? (c = /* @__PURE__ */ o(fe, { flex: "1", overflow: "hidden", minH: "0", minW: "0", children: a }), e[4] = a, e[5] = c) : c = e[5];
911
+ e[4] !== a ? (c = /* @__PURE__ */ o(ue, { flex: "1", overflow: "hidden", minH: "0", minW: "0", children: a }), e[4] = a, e[5] = c) : c = e[5];
900
912
  let d;
901
- e[6] !== r || e[7] !== c ? (d = /* @__PURE__ */ o(Ot, { label: r, children: c }), e[6] = r, e[7] = c, e[8] = d) : d = e[8];
913
+ e[6] !== i || e[7] !== c ? (d = /* @__PURE__ */ o(Vt, { label: i, children: c }), e[6] = i, e[7] = c, e[8] = d) : d = e[8];
902
914
  let u;
903
- return e[9] !== s || e[10] !== d ? (u = /* @__PURE__ */ x(fe, { height: "100%", width: "100%", minH: "0", minW: "0", children: [
915
+ return e[9] !== s || e[10] !== d ? (u = /* @__PURE__ */ y(ue, { height: "100%", width: "100%", minH: "0", minW: "0", children: [
904
916
  s,
905
917
  d
906
918
  ] }), e[9] = s, e[10] = d, e[11] = u) : u = e[11], u;
907
- }, Ai = (l) => {
919
+ }, gr = (l) => {
908
920
  const e = R(8), {
909
921
  actions: n,
910
922
  content: t
911
923
  } = l;
912
- let i;
913
- e[0] !== n ? (i = /* @__PURE__ */ o(cl, { "data-testid": "panel-section-actions", align: "flex-start", minH: Gt, flexWrap: "wrap", gap: "sm", py: "2xs", children: n }), e[0] = n, e[1] = i) : i = e[1];
924
+ let r;
925
+ e[0] !== n ? (r = /* @__PURE__ */ o(El, { "data-testid": "panel-section-actions", align: "flex-start", minH: Xt, flexWrap: "wrap", gap: "sm", py: "2xs", children: n }), e[0] = n, e[1] = r) : r = e[1];
914
926
  let s;
915
927
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
916
928
  minH: "100%"
917
929
  }, e[2] = s) : s = e[2];
918
- let r;
919
- e[3] !== t ? (r = /* @__PURE__ */ o(ke, { flex: "1", bg: "bg", contentProps: s, children: /* @__PURE__ */ o(Ot, { label: "Unable to render the panel.", children: /* @__PURE__ */ o(fe, { flex: "1", overflow: "hidden", minH: "0", children: t }) }) }), e[3] = t, e[4] = r) : r = e[4];
930
+ let i;
931
+ e[3] !== t ? (i = /* @__PURE__ */ o(ke, { flex: "1", bg: "bg", contentProps: s, children: /* @__PURE__ */ o(Vt, { label: "Unable to render the panel.", children: /* @__PURE__ */ o(ue, { flex: "1", overflow: "hidden", minH: "0", children: t }) }) }), e[3] = t, e[4] = i) : i = e[4];
920
932
  let a;
921
- return e[5] !== i || e[6] !== r ? (a = /* @__PURE__ */ x(B, { height: "100%", width: "100%", gap: "0", minH: "0", children: [
922
- i,
923
- r
924
- ] }), e[5] = i, e[6] = r, e[7] = a) : a = e[7], a;
925
- }, pl = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, hl = (l) => l.version ? `${l.name} v${l.version}` : l.name, Oi = (l) => {
933
+ return e[5] !== r || e[6] !== i ? (a = /* @__PURE__ */ y(F, { height: "100%", width: "100%", gap: "0", minH: "0", children: [
934
+ r,
935
+ i
936
+ ] }), e[5] = r, e[6] = i, e[7] = a) : a = e[7], a;
937
+ }, Bl = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Nl = (l) => l.version ? `${l.name} v${l.version}` : l.name, hr = (l) => {
926
938
  const e = R(30), {
927
939
  notices: n,
928
940
  title: t,
929
- description: i,
941
+ description: r,
930
942
  productName: s,
931
- productVersion: r,
943
+ productVersion: i,
932
944
  generatedAt: a,
933
945
  emptyTitle: c,
934
946
  emptyDescription: d
935
- } = l, u = t === void 0 ? "Open Source and Third-Party Notices" : t, f = i === void 0 ? "This product includes software developed by the open source community." : i, p = c === void 0 ? "No third-party notices available" : c, h = d === void 0 ? "No third-party packages were included in this build." : d;
936
- let g;
937
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
947
+ } = l, u = t === void 0 ? "Open Source and Third-Party Notices" : t, f = r === void 0 ? "This product includes software developed by the open source community." : r, p = c === void 0 ? "No third-party notices available" : c, g = d === void 0 ? "No third-party packages were included in this build." : d;
948
+ let h;
949
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
938
950
  base: "md",
939
951
  md: "xl"
940
- }, e[0] = g) : g = e[0];
941
- let S;
942
- e[1] !== u ? (S = /* @__PURE__ */ o(W, { textStyle: "heading/L", children: u }), e[1] = u, e[2] = S) : S = e[2];
952
+ }, e[0] = h) : h = e[0];
953
+ let b;
954
+ e[1] !== u ? (b = /* @__PURE__ */ o(z, { textStyle: "heading/L", children: u }), e[1] = u, e[2] = b) : b = e[2];
943
955
  let m;
944
- e[3] !== f ? (m = /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: f }), e[3] = f, e[4] = m) : m = e[4];
945
- let v;
946
- e[5] !== s ? (v = s ? /* @__PURE__ */ x(W, { textStyle: "label/XS", color: "fg.muted", children: [
956
+ e[3] !== f ? (m = /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: f }), e[3] = f, e[4] = m) : m = e[4];
957
+ let S;
958
+ e[5] !== s ? (S = s ? /* @__PURE__ */ y(z, { textStyle: "label/XS", color: "fg.muted", children: [
947
959
  "Product: ",
948
960
  s
949
- ] }) : null, e[5] = s, e[6] = v) : v = e[6];
950
- let C;
951
- e[7] !== r ? (C = r ? /* @__PURE__ */ x(W, { textStyle: "label/XS", color: "fg.muted", children: [
961
+ ] }) : null, e[5] = s, e[6] = S) : S = e[6];
962
+ let w;
963
+ e[7] !== i ? (w = i ? /* @__PURE__ */ y(z, { textStyle: "label/XS", color: "fg.muted", children: [
952
964
  "Version: ",
953
- r
954
- ] }) : null, e[7] = r, e[8] = C) : C = e[8];
955
- let k;
956
- e[9] !== n.length ? (k = /* @__PURE__ */ x(W, { textStyle: "label/XS", color: "fg.muted", children: [
965
+ i
966
+ ] }) : null, e[7] = i, e[8] = w) : w = e[8];
967
+ let I;
968
+ e[9] !== n.length ? (I = /* @__PURE__ */ y(z, { textStyle: "label/XS", color: "fg.muted", children: [
957
969
  "Packages: ",
958
970
  n.length
959
- ] }), e[9] = n.length, e[10] = k) : k = e[10];
960
- let y;
961
- e[11] !== a ? (y = a ? /* @__PURE__ */ x(W, { textStyle: "label/XS", color: "fg.muted", children: [
971
+ ] }), e[9] = n.length, e[10] = I) : I = e[10];
972
+ let x;
973
+ e[11] !== a ? (x = a ? /* @__PURE__ */ y(z, { textStyle: "label/XS", color: "fg.muted", children: [
962
974
  "Generated: ",
963
975
  a
964
- ] }) : null, e[11] = a, e[12] = y) : y = e[12];
965
- let I;
966
- e[13] !== y || e[14] !== v || e[15] !== C || e[16] !== k ? (I = /* @__PURE__ */ x(j, { gap: "md", flexWrap: "wrap", children: [
967
- v,
968
- C,
969
- k,
970
- y
971
- ] }), e[13] = y, e[14] = v, e[15] = C, e[16] = k, e[17] = I) : I = e[17];
972
- let D;
973
- e[18] !== I || e[19] !== S || e[20] !== m ? (D = /* @__PURE__ */ x(B, { gap: "xs", children: [
976
+ ] }) : null, e[11] = a, e[12] = x) : x = e[12];
977
+ let v;
978
+ e[13] !== x || e[14] !== S || e[15] !== w || e[16] !== I ? (v = /* @__PURE__ */ y(H, { gap: "md", flexWrap: "wrap", children: [
974
979
  S,
980
+ w,
981
+ I,
982
+ x
983
+ ] }), e[13] = x, e[14] = S, e[15] = w, e[16] = I, e[17] = v) : v = e[17];
984
+ let k;
985
+ e[18] !== v || e[19] !== b || e[20] !== m ? (k = /* @__PURE__ */ y(F, { gap: "xs", children: [
986
+ b,
975
987
  m,
976
- I
977
- ] }), e[18] = I, e[19] = S, e[20] = m, e[21] = D) : D = e[21];
988
+ v
989
+ ] }), e[18] = v, e[19] = b, e[20] = m, e[21] = k) : k = e[21];
978
990
  let T;
979
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ o(it, { borderColor: "border.muted" }), e[22] = T) : T = e[22];
980
- let b;
981
- e[23] !== h || e[24] !== p || e[25] !== n ? (b = n.length === 0 ? /* @__PURE__ */ x(B, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
982
- /* @__PURE__ */ o(W, { textStyle: "label/L/medium", children: p }),
983
- /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: h })
984
- ] }) : /* @__PURE__ */ o(B, { gap: "md", children: n.map(gl) }), e[23] = h, e[24] = p, e[25] = n, e[26] = b) : b = e[26];
985
- let P;
986
- return e[27] !== D || e[28] !== b ? (P = /* @__PURE__ */ x(B, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: g, gap: "lg", children: [
987
- D,
991
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ o(st, { borderColor: "border.muted" }), e[22] = T) : T = e[22];
992
+ let L;
993
+ e[23] !== g || e[24] !== p || e[25] !== n ? (L = n.length === 0 ? /* @__PURE__ */ y(F, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
994
+ /* @__PURE__ */ o(z, { textStyle: "label/L/medium", children: p }),
995
+ /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g })
996
+ ] }) : /* @__PURE__ */ o(F, { gap: "md", children: n.map(Gl) }), e[23] = g, e[24] = p, e[25] = n, e[26] = L) : L = e[26];
997
+ let _;
998
+ return e[27] !== k || e[28] !== L ? (_ = /* @__PURE__ */ y(F, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: h, gap: "lg", children: [
999
+ k,
988
1000
  T,
989
- b
990
- ] }), e[27] = D, e[28] = b, e[29] = P) : P = e[29], P;
1001
+ L
1002
+ ] }), e[27] = k, e[28] = L, e[29] = _) : _ = e[29], _;
991
1003
  };
992
- function gl(l, e) {
993
- return /* @__PURE__ */ o(V, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ x(B, { gap: "sm", children: [
994
- /* @__PURE__ */ x(B, { gap: "2xs", children: [
995
- /* @__PURE__ */ o(W, { textStyle: "label/L/medium", children: hl(l) }),
996
- /* @__PURE__ */ x(W, { textStyle: "label/S/regular", color: "fg.muted", children: [
1004
+ function Gl(l, e) {
1005
+ return /* @__PURE__ */ o(G, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ y(F, { gap: "sm", children: [
1006
+ /* @__PURE__ */ y(F, { gap: "2xs", children: [
1007
+ /* @__PURE__ */ o(z, { textStyle: "label/L/medium", children: Nl(l) }),
1008
+ /* @__PURE__ */ y(z, { textStyle: "label/S/regular", color: "fg.muted", children: [
997
1009
  "License: ",
998
1010
  l.license ?? "Unknown"
999
1011
  ] })
1000
1012
  ] }),
1001
- l.copyright ? /* @__PURE__ */ o(W, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
1002
- (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ x(B, { gap: "2xs", children: [
1003
- l.homepageUrl ? /* @__PURE__ */ o(ut, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1004
- l.sourceUrl ? /* @__PURE__ */ o(ut, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1013
+ l.copyright ? /* @__PURE__ */ o(z, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
1014
+ (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ y(F, { gap: "2xs", children: [
1015
+ l.homepageUrl ? /* @__PURE__ */ o(ht, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1016
+ l.sourceUrl ? /* @__PURE__ */ o(ht, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1005
1017
  ] }),
1006
- l.attribution ? /* @__PURE__ */ o(V, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ o(W, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
1007
- ] }) }, pl(l, e));
1018
+ l.attribution ? /* @__PURE__ */ o(G, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ o(z, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
1019
+ ] }) }, Bl(l, e));
1008
1020
  }
1009
- const Mi = (l) => {
1021
+ const mr = (l) => {
1010
1022
  const e = R(4), {
1011
1023
  items: n
1012
1024
  } = l;
1013
1025
  let t;
1014
- e[0] !== n ? (t = n.map(ml), e[0] = n, e[1] = t) : t = e[1];
1015
- let i;
1016
- return e[2] !== t ? (i = /* @__PURE__ */ o(B, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = i) : i = e[3], i;
1026
+ e[0] !== n ? (t = n.map(Hl), e[0] = n, e[1] = t) : t = e[1];
1027
+ let r;
1028
+ return e[2] !== t ? (r = /* @__PURE__ */ o(F, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
1017
1029
  };
1018
- function ml(l, e) {
1019
- return /* @__PURE__ */ x(j, { gap: "xs", alignItems: "center", children: [
1020
- /* @__PURE__ */ o(V, { width: "110px", flexShrink: 0, children: /* @__PURE__ */ x(j, { gap: "1", alignItems: "center", children: [
1021
- /* @__PURE__ */ o(W, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
1022
- l.description && /* @__PURE__ */ o(xe, { content: l.description, showArrow: !0, children: /* @__PURE__ */ o(ae, { as: Cn, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1030
+ function Hl(l, e) {
1031
+ return /* @__PURE__ */ y(H, { gap: "xs", alignItems: "center", children: [
1032
+ /* @__PURE__ */ o(G, { width: "110px", flexShrink: 0, children: /* @__PURE__ */ y(H, { gap: "1", alignItems: "center", children: [
1033
+ /* @__PURE__ */ o(z, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
1034
+ l.description && /* @__PURE__ */ o(Se, { content: l.description, showArrow: !0, children: /* @__PURE__ */ o(ee, { as: Ln, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1023
1035
  ] }) }),
1024
- /* @__PURE__ */ o(V, { flex: "1", children: l.value })
1036
+ /* @__PURE__ */ o(G, { flex: "1", children: l.value })
1025
1037
  ] }, `${l.label}-${e}`);
1026
1038
  }
1027
- const bl = (l, e) => {
1039
+ const et = (l) => {
1040
+ const e = R(16), {
1041
+ actions: n,
1042
+ children: t,
1043
+ contentMinWidth: r,
1044
+ contentBackground: s,
1045
+ positioning: i
1046
+ } = l, a = r === void 0 ? "220px" : r, c = s === void 0 ? "bg" : s;
1047
+ let d;
1048
+ e[0] !== i ? (d = i === void 0 ? {
1049
+ placement: "bottom-start"
1050
+ } : i, e[0] = i, e[1] = d) : d = e[1];
1051
+ const u = d;
1052
+ if (n.length === 0) {
1053
+ let b;
1054
+ return e[2] !== t ? (b = /* @__PURE__ */ o(dt, { children: t }), e[2] = t, e[3] = b) : b = e[3], b;
1055
+ }
1056
+ let f;
1057
+ e[4] !== t ? (f = /* @__PURE__ */ o(X.ContextTrigger, { asChild: !0, children: t }), e[4] = t, e[5] = f) : f = e[5];
1058
+ let p;
1059
+ e[6] !== n ? (p = n.map(Fl), e[6] = n, e[7] = p) : p = e[7];
1060
+ let g;
1061
+ e[8] !== c || e[9] !== a || e[10] !== p ? (g = /* @__PURE__ */ o(Be, { children: /* @__PURE__ */ o(X.Positioner, { children: /* @__PURE__ */ o(X.Content, { minW: a, bg: c, children: p }) }) }), e[8] = c, e[9] = a, e[10] = p, e[11] = g) : g = e[11];
1062
+ let h;
1063
+ return e[12] !== u || e[13] !== f || e[14] !== g ? (h = /* @__PURE__ */ y(X.Root, { positioning: u, children: [
1064
+ f,
1065
+ g
1066
+ ] }), e[12] = u, e[13] = f, e[14] = g, e[15] = h) : h = e[15], h;
1067
+ };
1068
+ function Fl(l) {
1069
+ return /* @__PURE__ */ o(Pe, { primaryLabel: l.label, leftIcon: l.icon ?? null, isDisabled: l.isDisabled, onClick: l.onClick }, l.key);
1070
+ }
1071
+ const Vl = (l, e) => {
1028
1072
  const n = e.trim().toLowerCase();
1029
1073
  return n ? l.filter((t) => [t.label, t.searchText].filter(Boolean).join(" ").toLowerCase().includes(n)) : l;
1030
- }, Sl = (l, e) => !l || !e ? !1 : l !== e, xl = (l, e, n) => !l || !e ? n : {
1074
+ }, jl = (l, e) => !l || !e ? !1 : l !== e, Xl = (l, e, n) => !l || !e ? n : {
1031
1075
  items: e.items,
1032
1076
  filterItems: e.filterItems ?? n.filterItems,
1033
1077
  showSearch: e.showSearch ?? n.showSearch,
@@ -1036,147 +1080,147 @@ const bl = (l, e) => {
1036
1080
  contentTestId: e.contentTestId ?? n.contentTestId,
1037
1081
  closeOnSelect: !1,
1038
1082
  listId: "parent"
1039
- }, Xe = {
1083
+ }, Ke = {
1040
1084
  borderColor: "border.muted",
1041
1085
  boxShadow: "none",
1042
1086
  outline: "none"
1043
- }, yl = (l) => {
1087
+ }, Ul = (l) => {
1044
1088
  const e = R(48), {
1045
1089
  trigger: n,
1046
1090
  items: t,
1047
- searchPlaceholder: i,
1091
+ searchPlaceholder: r,
1048
1092
  emptyState: s,
1049
- filterItems: r,
1093
+ filterItems: i,
1050
1094
  listId: a,
1051
1095
  header: c,
1052
1096
  width: d,
1053
1097
  maxListHeight: u,
1054
1098
  showSearch: f,
1055
1099
  closeOnSelect: p,
1056
- lazyMount: h,
1057
- open: g,
1058
- positioning: S,
1100
+ lazyMount: g,
1101
+ open: h,
1102
+ positioning: b,
1059
1103
  onOpenChange: m,
1060
- onFocusOutside: v,
1061
- contentTestId: C,
1062
- portalled: k,
1063
- parentList: y
1064
- } = l, I = r === void 0 ? bl : r, D = d === void 0 ? "260px" : d, T = u === void 0 ? "18rem" : u, b = f === void 0 ? !0 : f, P = p === void 0 ? !0 : p, w = h === void 0 ? !1 : h, _ = k === void 0 ? !0 : k, L = !!y, [$, z] = ge(!1), [O, G] = ge(""), [H, X] = ge("child"), F = Be(null), A = g ?? $, E = L && H === "parent", M = xl(E, y, {
1104
+ onFocusOutside: S,
1105
+ contentTestId: w,
1106
+ portalled: I,
1107
+ parentList: x
1108
+ } = l, v = i === void 0 ? Vl : i, k = d === void 0 ? "260px" : d, T = u === void 0 ? "18rem" : u, L = f === void 0 ? !0 : f, _ = p === void 0 ? !0 : p, P = g === void 0 ? !1 : g, D = I === void 0 ? !0 : I, C = !!x, [$, W] = me(!1), [E, O] = me(""), [B, V] = me("child"), U = je(null), j = h ?? $, A = C && B === "parent", N = Xl(A, x, {
1065
1109
  items: t,
1066
- filterItems: I,
1067
- showSearch: b,
1068
- searchPlaceholder: i,
1110
+ filterItems: v,
1111
+ showSearch: L,
1112
+ searchPlaceholder: r,
1069
1113
  emptyState: s,
1070
- contentTestId: C,
1071
- closeOnSelect: P,
1072
- listId: L ? "child" : a ?? ""
1073
- }), Z = M.filterItems(M.items, O), U = Be(M.listId);
1074
- Oe(() => {
1075
- if (!A) {
1076
- U.current = M.listId;
1114
+ contentTestId: w,
1115
+ closeOnSelect: _,
1116
+ listId: C ? "child" : a ?? ""
1117
+ }), J = N.filterItems(N.items, E), Q = je(N.listId);
1118
+ Me(() => {
1119
+ if (!j) {
1120
+ Q.current = N.listId;
1077
1121
  return;
1078
1122
  }
1079
- Sl(U.current, M.listId) && G(""), U.current = M.listId;
1080
- }, [A, M.listId]);
1123
+ jl(Q.current, N.listId) && O(""), Q.current = N.listId;
1124
+ }, [j, N.listId]);
1081
1125
  let q;
1082
- e[0] !== M || e[1] !== A ? (q = [A, M.showSearch], e[0] = M, e[1] = A, e[2] = q) : q = e[2], Oe(() => {
1083
- if (!A || !M.showSearch)
1126
+ e[0] !== N || e[1] !== j ? (q = [j, N.showSearch], e[0] = N, e[1] = j, e[2] = q) : q = e[2], Me(() => {
1127
+ if (!j || !N.showSearch)
1084
1128
  return;
1085
- const be = setTimeout(() => F.current?.focus(), 0);
1129
+ const be = setTimeout(() => U.current?.focus(), 0);
1086
1130
  return () => clearTimeout(be);
1087
1131
  }, q);
1088
- let J;
1089
- e[3] !== L || e[4] !== m || e[5] !== g ? (J = (be) => {
1090
- g === void 0 && z(be.open), G(""), be.open && L && X("child"), m?.(be);
1091
- }, e[3] = L, e[4] = m, e[5] = g, e[6] = J) : J = e[6];
1092
- const ee = J;
1132
+ let ne;
1133
+ e[3] !== C || e[4] !== m || e[5] !== h ? (ne = (be) => {
1134
+ h === void 0 && W(be.open), O(""), be.open && C && V("child"), m?.(be);
1135
+ }, e[3] = C, e[4] = m, e[5] = h, e[6] = ne) : ne = e[6];
1136
+ const le = ne;
1093
1137
  let te;
1094
- e[7] !== E || e[8] !== y ? (te = (be) => {
1095
- if (!E || !y)
1138
+ e[7] !== A || e[8] !== x ? (te = (be) => {
1139
+ if (!A || !x)
1096
1140
  return;
1097
- const ct = y.items.find((Jt) => Jt.id === be.value);
1098
- ct && (y.onSelect?.(ct), X("child"));
1099
- }, e[7] = E, e[8] = y, e[9] = te) : te = e[9];
1100
- const ne = te;
1101
- let le;
1102
- e[10] !== y ? (le = y ? /* @__PURE__ */ o("div", { onPointerDownCapture: vl, onClickCapture: (be) => {
1103
- be.stopPropagation(), !y.disabled && X(Cl);
1104
- }, children: /* @__PURE__ */ o(De, { primaryLabel: y.selectedLabel, leftIcon: y.selectedIcon, rightIcon: y.disabled ? void 0 : Fe, isDisabled: y.disabled }) }) : null, e[10] = y, e[11] = le) : le = e[11];
1105
- const oe = y ? le : c, ce = !!oe && !M.showSearch, de = M.showSearch ? /* @__PURE__ */ o(ln, { startElement: /* @__PURE__ */ o(wn, { size: 14 }), children: /* @__PURE__ */ o(on, { ref: F, borderRight: 0, borderLeft: 0, borderRadius: "0", borderColor: "border.muted", value: O, placeholder: M.searchPlaceholder, "aria-label": M.searchPlaceholder, autoComplete: "off", _hover: Xe, _active: Xe, _focus: Xe, _focusVisible: Xe, onChange: (be) => G(be.target.value), onKeyDown: wl }) }) : null, ue = Y, me = L ? ne : void 0;
1106
- let ie;
1107
- e[12] !== n ? (ie = /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: n }), e[12] = n, e[13] = ie) : ie = e[13];
1108
- const ve = He, N = !_, Q = Y, Me = Y, Qe = "bg", Ge = "0", Ut = "0", Yt = "popover";
1109
- let _e;
1110
- e[14] !== ce ? (_e = ce ? /* @__PURE__ */ o(Y.Separator, { margin: "0" }) : null, e[14] = ce, e[15] = _e) : _e = e[15];
1111
- const Ze = ke;
1141
+ const pt = x.items.find((sn) => sn.id === be.value);
1142
+ pt && (x.onSelect?.(pt), V("child"));
1143
+ }, e[7] = A, e[8] = x, e[9] = te) : te = e[9];
1144
+ const re = te;
1145
+ let Z;
1146
+ e[10] !== x ? (Z = x ? /* @__PURE__ */ o("div", { onPointerDownCapture: Yl, onClickCapture: (be) => {
1147
+ be.stopPropagation(), !x.disabled && V(Kl);
1148
+ }, children: /* @__PURE__ */ o(Pe, { primaryLabel: x.selectedLabel, leftIcon: x.selectedIcon, rightIcon: x.disabled ? void 0 : Xe, isDisabled: x.disabled }) }) : null, e[10] = x, e[11] = Z) : Z = e[11];
1149
+ const se = x ? Z : c, oe = !!se && !N.showSearch, ae = N.showSearch ? /* @__PURE__ */ o(pn, { startElement: /* @__PURE__ */ o($n, { size: 14 }), children: /* @__PURE__ */ o(gn, { ref: U, borderRight: 0, borderLeft: 0, borderRadius: "0", borderColor: "border.muted", value: E, placeholder: N.searchPlaceholder, "aria-label": N.searchPlaceholder, autoComplete: "off", _hover: Ke, _active: Ke, _focus: Ke, _focusVisible: Ke, onChange: (be) => O(be.target.value), onKeyDown: ql }) }) : null, ce = X, ie = C ? re : void 0;
1150
+ let fe;
1151
+ e[12] !== n ? (fe = /* @__PURE__ */ o(X.Trigger, { asChild: !0, children: n }), e[12] = n, e[13] = fe) : fe = e[13];
1152
+ const M = Be, K = !D, ve = X, Te = X, Ne = "bg", tn = "0", nn = "0", ln = "popover";
1112
1153
  let Le;
1113
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = {
1114
- overscrollBehavior: "contain"
1115
- }, e[16] = Le) : Le = e[16];
1116
- const Kt = "2xs", qt = "2xs", et = Z.length > 0 ? Z.map(kl) : M.emptyState;
1154
+ e[14] !== oe ? (Le = oe ? /* @__PURE__ */ o(X.Separator, { margin: "0" }) : null, e[14] = oe, e[15] = Le) : Le = e[15];
1155
+ const lt = ke;
1117
1156
  let $e;
1118
- e[17] !== Ze || e[18] !== M || e[19] !== T || e[20] !== Le || e[21] !== et ? ($e = /* @__PURE__ */ o(Ze, { maxH: T, "data-testid": M.contentTestId, viewportProps: Le, p: Kt, gap: qt, children: et }), e[17] = Ze, e[18] = M, e[19] = T, e[20] = Le, e[21] = et, e[22] = $e) : $e = e[22];
1157
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($e = {
1158
+ overscrollBehavior: "contain"
1159
+ }, e[16] = $e) : $e = e[16];
1160
+ const on = "2xs", rn = "2xs", ot = J.length > 0 ? J.map(Jl) : N.emptyState;
1119
1161
  let Re;
1120
- e[23] !== oe || e[24] !== de || e[25] !== Me.Content || e[26] !== _e || e[27] !== $e || e[28] !== D ? (Re = /* @__PURE__ */ x(Me.Content, { w: D, bg: Qe, gap: Ge, p: Ut, zIndex: Yt, children: [
1121
- oe,
1122
- de,
1123
- _e,
1124
- $e
1125
- ] }), e[23] = oe, e[24] = de, e[25] = Me.Content, e[26] = _e, e[27] = $e, e[28] = D, e[29] = Re) : Re = e[29];
1162
+ e[17] !== lt || e[18] !== N || e[19] !== T || e[20] !== $e || e[21] !== ot ? (Re = /* @__PURE__ */ o(lt, { maxH: T, "data-testid": N.contentTestId, viewportProps: $e, p: on, gap: rn, children: ot }), e[17] = lt, e[18] = N, e[19] = T, e[20] = $e, e[21] = ot, e[22] = Re) : Re = e[22];
1126
1163
  let We;
1127
- e[30] !== Q.Positioner || e[31] !== Re ? (We = /* @__PURE__ */ o(Q.Positioner, { children: Re }), e[30] = Q.Positioner, e[31] = Re, e[32] = We) : We = e[32];
1164
+ e[23] !== se || e[24] !== ae || e[25] !== Te.Content || e[26] !== Le || e[27] !== Re || e[28] !== k ? (We = /* @__PURE__ */ y(Te.Content, { w: k, bg: Ne, gap: tn, p: nn, zIndex: ln, children: [
1165
+ se,
1166
+ ae,
1167
+ Le,
1168
+ Re
1169
+ ] }), e[23] = se, e[24] = ae, e[25] = Te.Content, e[26] = Le, e[27] = Re, e[28] = k, e[29] = We) : We = e[29];
1170
+ let ze;
1171
+ e[30] !== ve.Positioner || e[31] !== We ? (ze = /* @__PURE__ */ o(ve.Positioner, { children: We }), e[30] = ve.Positioner, e[31] = We, e[32] = ze) : ze = e[32];
1128
1172
  let Ee;
1129
- e[33] !== ve || e[34] !== N || e[35] !== We ? (Ee = /* @__PURE__ */ o(ve, { disabled: N, children: We }), e[33] = ve, e[34] = N, e[35] = We, e[36] = Ee) : Ee = e[36];
1130
- let Ve;
1131
- return e[37] !== M || e[38] !== ee || e[39] !== w || e[40] !== v || e[41] !== g || e[42] !== S || e[43] !== ue.Root || e[44] !== me || e[45] !== ie || e[46] !== Ee ? (Ve = /* @__PURE__ */ x(ue.Root, { lazyMount: w, closeOnSelect: M.closeOnSelect, open: g, positioning: S, onOpenChange: ee, onFocusOutside: v, onSelect: me, children: [
1132
- ie,
1173
+ e[33] !== M || e[34] !== K || e[35] !== ze ? (Ee = /* @__PURE__ */ o(M, { disabled: K, children: ze }), e[33] = M, e[34] = K, e[35] = ze, e[36] = Ee) : Ee = e[36];
1174
+ let Ue;
1175
+ return e[37] !== N || e[38] !== le || e[39] !== P || e[40] !== S || e[41] !== h || e[42] !== b || e[43] !== ce.Root || e[44] !== ie || e[45] !== fe || e[46] !== Ee ? (Ue = /* @__PURE__ */ y(ce.Root, { lazyMount: P, closeOnSelect: N.closeOnSelect, open: h, positioning: b, onOpenChange: le, onFocusOutside: S, onSelect: ie, children: [
1176
+ fe,
1133
1177
  Ee
1134
- ] }), e[37] = M, e[38] = ee, e[39] = w, e[40] = v, e[41] = g, e[42] = S, e[43] = ue.Root, e[44] = me, e[45] = ie, e[46] = Ee, e[47] = Ve) : Ve = e[47], Ve;
1178
+ ] }), e[37] = N, e[38] = le, e[39] = P, e[40] = S, e[41] = h, e[42] = b, e[43] = ce.Root, e[44] = ie, e[45] = fe, e[46] = Ee, e[47] = Ue) : Ue = e[47], Ue;
1135
1179
  };
1136
- function vl(l) {
1180
+ function Yl(l) {
1137
1181
  return l.stopPropagation();
1138
1182
  }
1139
- function Cl(l) {
1183
+ function Kl(l) {
1140
1184
  return l === "child" ? "parent" : "child";
1141
1185
  }
1142
- function wl(l) {
1186
+ function ql(l) {
1143
1187
  return l.stopPropagation();
1144
1188
  }
1145
- function kl(l) {
1146
- return /* @__PURE__ */ o(fn, { children: /* @__PURE__ */ o(De, { id: l.id, primaryLabel: l.label, secondaryLabel: l.secondaryLabel, tooltipLabel: l.tooltipLabel, leftIcon: l.icon, variant: l.variant, isDisabled: l.isDisabled, isSelected: l.isSelected, onClick: l.onSelect }) }, l.id);
1189
+ function Jl(l) {
1190
+ return /* @__PURE__ */ o(yn, { children: /* @__PURE__ */ o(Pe, { id: l.id, primaryLabel: l.label, secondaryLabel: l.secondaryLabel, tooltipLabel: l.tooltipLabel, leftIcon: l.icon, variant: l.variant, isDisabled: l.isDisabled, isSelected: l.isSelected, onClick: l.onSelect }) }, l.id);
1147
1191
  }
1148
- const Il = (l) => l === "completed" ? kn : l === "failed" ? In : l === "disconnected" ? Pn : Tn, Pl = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : l === "disconnected" ? "fg.warning" : "fg.muted", Tl = (l) => {
1192
+ const Ql = (l) => l === "completed" ? Rn : l === "failed" ? Wn : l === "cancelled" ? zn : l === "disconnected" ? En : On, Zl = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : l === "cancelled" || l === "disconnected" ? "fg.warning" : "fg.muted", eo = (l) => {
1149
1193
  const e = R(11), {
1150
1194
  status: n,
1151
1195
  boxSize: t,
1152
- ariaLabel: i,
1196
+ ariaLabel: r,
1153
1197
  cursor: s,
1154
- onClick: r
1155
- } = l, a = t === void 0 ? "14px" : t, c = i === void 0 ? "Session status" : i;
1198
+ onClick: i
1199
+ } = l, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
1156
1200
  let d;
1157
- e[0] !== n ? (d = Il(n), e[0] = n, e[1] = d) : d = e[1];
1201
+ e[0] !== n ? (d = Ql(n), e[0] = n, e[1] = d) : d = e[1];
1158
1202
  let u;
1159
- e[2] !== n ? (u = Pl(n), e[2] = n, e[3] = u) : u = e[3];
1203
+ e[2] !== n ? (u = Zl(n), e[2] = n, e[3] = u) : u = e[3];
1160
1204
  let f;
1161
- return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== r || e[8] !== d || e[9] !== u ? (f = /* @__PURE__ */ o(ae, { as: d, boxSize: a, color: u, "aria-label": c, cursor: s, onClick: r }), e[4] = c, e[5] = a, e[6] = s, e[7] = r, e[8] = d, e[9] = u, e[10] = f) : f = e[10], f;
1162
- }, Dl = (l) => {
1205
+ return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== i || e[8] !== d || e[9] !== u ? (f = /* @__PURE__ */ o(ee, { as: d, boxSize: a, color: u, "aria-label": c, cursor: s, onClick: i }), e[4] = c, e[5] = a, e[6] = s, e[7] = i, e[8] = d, e[9] = u, e[10] = f) : f = e[10], f;
1206
+ }, to = (l) => {
1163
1207
  const e = R(14), {
1164
1208
  action: n
1165
1209
  } = l;
1166
1210
  let t;
1167
1211
  e[0] !== n.menuItems ? (t = n.menuItems ?? [], e[0] = n.menuItems, e[1] = t) : t = e[1];
1168
- let i;
1169
- e[2] !== t ? (i = t.map(_l), e[2] = t, e[3] = i) : i = e[3];
1170
- const s = i;
1171
1212
  let r;
1172
- e[4] !== n.icon || e[5] !== n.label ? (r = /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }), e[4] = n.icon, e[5] = n.label, e[6] = r) : r = e[6];
1213
+ e[2] !== t ? (r = t.map(no), e[2] = t, e[3] = r) : r = e[3];
1214
+ const s = r;
1215
+ let i;
1216
+ e[4] !== n.icon || e[5] !== n.label ? (i = /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }), e[4] = n.icon, e[5] = n.label, e[6] = i) : i = e[6];
1173
1217
  const a = n.searchPlaceholder ?? "Search…", c = n.emptyMenuLabel ?? "No results found";
1174
1218
  let d;
1175
- e[7] !== c ? (d = /* @__PURE__ */ o(De, { primaryLabel: c, isDisabled: !0, variant: "compact" }), e[7] = c, e[8] = d) : d = e[8];
1219
+ e[7] !== c ? (d = /* @__PURE__ */ o(Pe, { primaryLabel: c, isDisabled: !0, variant: "compact" }), e[7] = c, e[8] = d) : d = e[8];
1176
1220
  let u;
1177
- return e[9] !== s || e[10] !== r || e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ o(yl, { trigger: r, items: s, searchPlaceholder: a, emptyState: d, onFocusOutside: Ll }), e[9] = s, e[10] = r, e[11] = a, e[12] = d, e[13] = u) : u = e[13], u;
1221
+ return e[9] !== s || e[10] !== i || e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ o(Ul, { trigger: i, items: s, searchPlaceholder: a, emptyState: d, onFocusOutside: lo }), e[9] = s, e[10] = i, e[11] = a, e[12] = d, e[13] = u) : u = e[13], u;
1178
1222
  };
1179
- function _l(l) {
1223
+ function no(l) {
1180
1224
  return {
1181
1225
  id: l.id,
1182
1226
  label: l.label,
@@ -1186,160 +1230,160 @@ function _l(l) {
1186
1230
  onSelect: () => l.onAction?.()
1187
1231
  };
1188
1232
  }
1189
- function Ll(l) {
1233
+ function lo(l) {
1190
1234
  return l.preventDefault();
1191
1235
  }
1192
- const mt = (l) => {
1236
+ const yt = (l) => {
1193
1237
  const e = R(23), {
1194
1238
  node: n,
1195
1239
  expanded: t,
1196
- hasChildren: i,
1240
+ hasChildren: r,
1197
1241
  isDisabled: s
1198
1242
  } = l;
1199
- let r;
1200
- e[0] !== n.icon || e[1] !== n.iconColor ? (r = n.icon ? /* @__PURE__ */ o(V, { color: n.iconColor ?? "fg.muted", flexShrink: 0, children: n.icon }) : null, e[0] = n.icon, e[1] = n.iconColor, e[2] = r) : r = e[2];
1243
+ let i;
1244
+ e[0] !== n.icon || e[1] !== n.iconColor ? (i = n.icon ? /* @__PURE__ */ o(G, { color: n.iconColor ?? "fg.muted", flexShrink: 0, children: n.icon }) : null, e[0] = n.icon, e[1] = n.iconColor, e[2] = i) : i = e[2];
1201
1245
  let a;
1202
- e[3] !== s || e[4] !== n.label ? (a = typeof n.label == "string" ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: s ? "fg.muted" : "fg", truncate: !0, children: n.label }) : /* @__PURE__ */ o(V, { minW: "0", maxW: "full", overflow: "hidden", children: n.label }), e[3] = s, e[4] = n.label, e[5] = a) : a = e[5];
1246
+ e[3] !== s || e[4] !== n.label ? (a = typeof n.label == "string" ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: s ? "fg.muted" : "fg", truncate: !0, children: n.label }) : /* @__PURE__ */ o(G, { minW: "0", maxW: "full", overflow: "hidden", children: n.label }), e[3] = s, e[4] = n.label, e[5] = a) : a = e[5];
1203
1247
  let c;
1204
- e[6] !== n.indicator ? (c = n.indicator ? /* @__PURE__ */ o(xe, { content: n.indicator.tooltip, disabled: !n.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ o(V, { color: n.indicator.color ?? "fg.muted", flexShrink: 0, children: n.indicator.icon }) }) : null, e[6] = n.indicator, e[7] = c) : c = e[7];
1248
+ e[6] !== n.indicator ? (c = n.indicator ? /* @__PURE__ */ o(Se, { content: n.indicator.tooltip, disabled: !n.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ o(G, { color: n.indicator.color ?? "fg.muted", flexShrink: 0, children: n.indicator.icon }) }) : null, e[6] = n.indicator, e[7] = c) : c = e[7];
1205
1249
  let d;
1206
- e[8] !== t || e[9] !== i ? (d = i ? /* @__PURE__ */ o(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ o(Te, { size: 14, style: {
1250
+ e[8] !== t || e[9] !== r ? (d = r ? /* @__PURE__ */ o(G, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ o(_e, { size: 14, style: {
1207
1251
  transform: t ? "rotate(90deg)" : "rotate(0deg)",
1208
1252
  transition: "120ms"
1209
- } }) }) : null, e[8] = t, e[9] = i, e[10] = d) : d = e[10];
1253
+ } }) }) : null, e[8] = t, e[9] = r, e[10] = d) : d = e[10];
1210
1254
  let u;
1211
- e[11] !== a || e[12] !== c || e[13] !== d ? (u = /* @__PURE__ */ x(j, { gap: "1", minW: "0", children: [
1255
+ e[11] !== a || e[12] !== c || e[13] !== d ? (u = /* @__PURE__ */ y(H, { gap: "1", minW: "0", children: [
1212
1256
  a,
1213
1257
  c,
1214
1258
  d
1215
1259
  ] }), e[11] = a, e[12] = c, e[13] = d, e[14] = u) : u = e[14];
1216
1260
  let f;
1217
- e[15] !== n.description ? (f = n.description ? typeof n.description == "string" ? /* @__PURE__ */ o(W, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: n.description }) : /* @__PURE__ */ o(V, { minW: "0", maxW: "full", overflow: "hidden", children: n.description }) : null, e[15] = n.description, e[16] = f) : f = e[16];
1261
+ e[15] !== n.description ? (f = n.description ? typeof n.description == "string" ? /* @__PURE__ */ o(z, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: n.description }) : /* @__PURE__ */ o(G, { minW: "0", maxW: "full", overflow: "hidden", children: n.description }) : null, e[15] = n.description, e[16] = f) : f = e[16];
1218
1262
  let p;
1219
- e[17] !== u || e[18] !== f ? (p = /* @__PURE__ */ x(B, { gap: "0", minW: "0", flex: "1", children: [
1263
+ e[17] !== u || e[18] !== f ? (p = /* @__PURE__ */ y(F, { gap: "0", minW: "0", flex: "1", children: [
1220
1264
  u,
1221
1265
  f
1222
1266
  ] }), e[17] = u, e[18] = f, e[19] = p) : p = e[19];
1223
- let h;
1224
- return e[20] !== r || e[21] !== p ? (h = /* @__PURE__ */ x(j, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1225
- r,
1267
+ let g;
1268
+ return e[20] !== i || e[21] !== p ? (g = /* @__PURE__ */ y(H, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1269
+ i,
1226
1270
  p
1227
- ] }), e[20] = r, e[21] = p, e[22] = h) : h = e[22], h;
1228
- }, Nt = (l, e) => e.includes(l), $l = ({
1271
+ ] }), e[20] = i, e[21] = p, e[22] = g) : g = e[22], g;
1272
+ }, Ut = (l, e) => e.includes(l), oo = (l) => l ? ft(l) ? /* @__PURE__ */ o(G, { mr: "2", children: l }) : /* @__PURE__ */ o(ee, { as: l, boxSize: "14px", mr: "2" }) : null, io = ({
1229
1273
  sectionId: l,
1230
1274
  node: e,
1231
1275
  hasChildren: n,
1232
1276
  isDisabled: t,
1233
- isNavigable: i,
1277
+ isNavigable: r,
1234
1278
  onNavigate: s,
1235
- onToggleNode: r
1279
+ onToggleNode: i
1236
1280
  }) => {
1237
1281
  if (!t) {
1238
1282
  if (n) {
1239
- r(e.id);
1283
+ i(e.id);
1240
1284
  return;
1241
1285
  }
1242
- i && s?.({
1286
+ r && s?.({
1243
1287
  sectionId: l,
1244
1288
  nodeId: e.id,
1245
1289
  node: e,
1246
1290
  intent: e.navigationIntent
1247
1291
  });
1248
1292
  }
1249
- }, Rl = (l) => {
1293
+ }, ro = (l) => {
1250
1294
  const e = R(20), {
1251
1295
  action: n,
1252
1296
  sectionId: t,
1253
- nodeId: i
1297
+ nodeId: r
1254
1298
  } = l;
1255
1299
  if (n.menuItems && n.menuItems.length > 0) {
1256
1300
  if (n.menuItems.length >= 8) {
1257
1301
  let f;
1258
- return e[0] !== n ? (f = /* @__PURE__ */ o(Dl, { action: n }), e[0] = n, e[1] = f) : f = e[1], f;
1302
+ return e[0] !== n ? (f = /* @__PURE__ */ o(to, { action: n }), e[0] = n, e[1] = f) : f = e[1], f;
1259
1303
  }
1260
1304
  let a;
1261
- e[2] !== n.icon || e[3] !== n.label ? (a = /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }) }), e[2] = n.icon, e[3] = n.label, e[4] = a) : a = e[4];
1305
+ e[2] !== n.icon || e[3] !== n.label ? (a = /* @__PURE__ */ o(X.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }) }), e[2] = n.icon, e[3] = n.label, e[4] = a) : a = e[4];
1262
1306
  let c;
1263
- e[5] !== n.menuItems ? (c = n.menuItems.map(zl), e[5] = n.menuItems, e[6] = c) : c = e[6];
1307
+ e[5] !== n.menuItems ? (c = n.menuItems.map(co), e[5] = n.menuItems, e[6] = c) : c = e[6];
1264
1308
  let d;
1265
- e[7] !== c ? (d = /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ o(Y.Content, { minW: "160px", bg: "bg", children: c }) }), e[7] = c, e[8] = d) : d = e[8];
1309
+ e[7] !== c ? (d = /* @__PURE__ */ o(X.Positioner, { children: /* @__PURE__ */ o(X.Content, { minW: "160px", bg: "bg", children: c }) }), e[7] = c, e[8] = d) : d = e[8];
1266
1310
  let u;
1267
- return e[9] !== a || e[10] !== d ? (u = /* @__PURE__ */ x(Y.Root, { children: [
1311
+ return e[9] !== a || e[10] !== d ? (u = /* @__PURE__ */ y(X.Root, { children: [
1268
1312
  a,
1269
1313
  d
1270
1314
  ] }), e[9] = a, e[10] = d, e[11] = u) : u = e[11], u;
1271
1315
  }
1272
1316
  let s;
1273
- e[12] !== n || e[13] !== i || e[14] !== t ? (s = (a) => {
1317
+ e[12] !== n || e[13] !== r || e[14] !== t ? (s = (a) => {
1274
1318
  a.stopPropagation(), n.onAction?.({
1275
1319
  sectionId: t,
1276
- nodeId: i
1320
+ nodeId: r
1277
1321
  });
1278
- }, e[12] = n, e[13] = i, e[14] = t, e[15] = s) : s = e[15];
1279
- let r;
1280
- return e[16] !== n.icon || e[17] !== n.label || e[18] !== s ? (r = /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, onClick: s, children: n.icon }), e[16] = n.icon, e[17] = n.label, e[18] = s, e[19] = r) : r = e[19], r;
1281
- }, st = (l) => {
1322
+ }, e[12] = n, e[13] = r, e[14] = t, e[15] = s) : s = e[15];
1323
+ let i;
1324
+ return e[16] !== n.icon || e[17] !== n.label || e[18] !== s ? (i = /* @__PURE__ */ o(he, { variant: "ghost", size: "2xs", "aria-label": n.label, onClick: s, children: n.icon }), e[16] = n.icon, e[17] = n.label, e[18] = s, e[19] = i) : i = e[19], i;
1325
+ }, ct = (l) => {
1282
1326
  const e = R(11), {
1283
1327
  sectionId: n,
1284
1328
  nodeId: t,
1285
- actions: i
1329
+ actions: r
1286
1330
  } = l;
1287
- if (i.length === 0)
1331
+ if (r.length === 0)
1288
1332
  return null;
1289
- let s, r;
1333
+ let s, i;
1290
1334
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
1291
1335
  opacity: "1",
1292
1336
  pointerEvents: "auto"
1293
- }, r = {
1337
+ }, i = {
1294
1338
  opacity: "1",
1295
1339
  pointerEvents: "auto"
1296
- }, e[0] = s, e[1] = r) : (s = e[0], r = e[1]);
1340
+ }, e[0] = s, e[1] = i) : (s = e[0], i = e[1]);
1297
1341
  let a;
1298
- if (e[2] !== i || e[3] !== t || e[4] !== n) {
1342
+ if (e[2] !== r || e[3] !== t || e[4] !== n) {
1299
1343
  let d;
1300
- e[6] !== t || e[7] !== n ? (d = (u) => /* @__PURE__ */ o(Rl, { action: u, sectionId: n, nodeId: t }, u.id), e[6] = t, e[7] = n, e[8] = d) : d = e[8], a = i.map(d), e[2] = i, e[3] = t, e[4] = n, e[5] = a;
1344
+ e[6] !== t || e[7] !== n ? (d = (u) => /* @__PURE__ */ o(ro, { action: u, sectionId: n, nodeId: t }, u.id), e[6] = t, e[7] = n, e[8] = d) : d = e[8], a = r.map(d), e[2] = r, e[3] = t, e[4] = n, e[5] = a;
1301
1345
  } else
1302
1346
  a = e[5];
1303
1347
  let c;
1304
- return e[9] !== a ? (c = /* @__PURE__ */ o(j, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: s, _groupFocusWithin: r, transition: "opacity 120ms ease", onClick: Al, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1305
- }, Bt = (l) => {
1306
- const e = R(46), {
1348
+ return e[9] !== a ? (c = /* @__PURE__ */ o(H, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: s, _groupFocusWithin: i, transition: "opacity 120ms ease", onClick: uo, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1349
+ }, Yt = (l) => {
1350
+ const e = R(53), {
1307
1351
  sectionId: n,
1308
1352
  node: t,
1309
- level: i,
1353
+ level: r,
1310
1354
  expandedNodes: s,
1311
- activeNodeId: r,
1355
+ activeNodeId: i,
1312
1356
  linkComponent: a,
1313
1357
  onNavigate: c,
1314
1358
  onToggleNode: d
1315
1359
  } = l, u = (t.children?.length ?? 0) > 0;
1316
1360
  let f;
1317
- e[0] !== s || e[1] !== u || e[2] !== t.id ? (f = u && Nt(t.id, s), e[0] = s, e[1] = u, e[2] = t.id, e[3] = f) : f = e[3];
1318
- const p = f, h = t.isNavigable || t.navigationIntent !== void 0;
1319
- let g;
1320
- e[4] !== r || e[5] !== t.id ? (g = Array.isArray(r) ? r.includes(t.id) : r === t.id, e[4] = r, e[5] = t.id, e[6] = g) : g = e[6];
1321
- const S = g, m = t.disabled === !0, v = i > 0 ? `calc(var(--chakra-spacing-1) + ${i} * var(--chakra-spacing-3))` : void 0, C = !!(a && t.href && h && !u && !m);
1322
- let k;
1323
- e[7] !== u || e[8] !== m || e[9] !== h || e[10] !== t || e[11] !== c || e[12] !== d || e[13] !== n ? (k = () => $l({
1361
+ e[0] !== s || e[1] !== u || e[2] !== t.id ? (f = u && Ut(t.id, s), e[0] = s, e[1] = u, e[2] = t.id, e[3] = f) : f = e[3];
1362
+ const p = f, g = t.isNavigable || t.navigationIntent !== void 0;
1363
+ let h;
1364
+ e[4] !== i || e[5] !== t.id ? (h = Array.isArray(i) ? i.includes(t.id) : i === t.id, e[4] = i, e[5] = t.id, e[6] = h) : h = e[6];
1365
+ const b = h, m = t.disabled === !0, S = r > 0 ? `calc(var(--chakra-spacing-1) + ${r} * var(--chakra-spacing-3))` : void 0, w = !!(a && t.href && g && !u && !m);
1366
+ let I;
1367
+ e[7] !== u || e[8] !== m || e[9] !== g || e[10] !== t || e[11] !== c || e[12] !== d || e[13] !== n ? (I = () => io({
1324
1368
  sectionId: n,
1325
1369
  node: t,
1326
1370
  hasChildren: u,
1327
1371
  isDisabled: m,
1328
- isNavigable: h,
1372
+ isNavigable: g,
1329
1373
  onNavigate: c,
1330
1374
  onToggleNode: d
1331
- }), e[7] = u, e[8] = m, e[9] = h, e[10] = t, e[11] = c, e[12] = d, e[13] = n, e[14] = k) : k = e[14];
1332
- const y = k, I = S ? "bg.active" : "transparent", D = S ? "bg.active" : "bg.hover";
1375
+ }), e[7] = u, e[8] = m, e[9] = g, e[10] = t, e[11] = c, e[12] = d, e[13] = n, e[14] = I) : I = e[14];
1376
+ const x = I, v = b ? "bg.active" : "transparent", k = b ? "bg.active" : "bg.hover";
1333
1377
  let T;
1334
- e[15] !== D ? (T = {
1335
- bg: D
1336
- }, e[15] = D, e[16] = T) : T = e[16];
1337
- const b = m ? "default" : "pointer";
1338
- let P;
1339
- e[17] !== S || e[18] !== v || e[19] !== I || e[20] !== T || e[21] !== b ? (P = {
1378
+ e[15] !== k ? (T = {
1379
+ bg: k
1380
+ }, e[15] = k, e[16] = T) : T = e[16];
1381
+ const L = m ? "default" : "pointer";
1382
+ let _;
1383
+ e[17] !== b || e[18] !== S || e[19] !== v || e[20] !== T || e[21] !== L ? (_ = {
1340
1384
  className: "group",
1341
1385
  role: "option",
1342
- "aria-selected": S,
1386
+ "aria-selected": b,
1343
1387
  justify: "space-between",
1344
1388
  align: "center",
1345
1389
  w: "full",
@@ -1348,370 +1392,386 @@ const mt = (l) => {
1348
1392
  borderRadius: "xs",
1349
1393
  px: "1",
1350
1394
  py: "2xs",
1351
- pl: v,
1352
- bg: I,
1395
+ pl: S,
1396
+ bg: v,
1353
1397
  _hover: T,
1354
- cursor: b,
1398
+ cursor: L,
1355
1399
  overflow: "hidden"
1356
- }, e[17] = S, e[18] = v, e[19] = I, e[20] = T, e[21] = b, e[22] = P) : P = e[22];
1357
- const w = P;
1358
- let _;
1359
- e[23] !== a || e[24] !== C || e[25] !== p || e[26] !== y || e[27] !== u || e[28] !== m || e[29] !== t || e[30] !== w || e[31] !== n ? (_ = C && a && t.href ? /* @__PURE__ */ o(a, { to: t.href, children: /* @__PURE__ */ x(j, { ...w, onClick: y, children: [
1360
- /* @__PURE__ */ o(mt, { node: t, expanded: p, hasChildren: u, isDisabled: m }),
1361
- /* @__PURE__ */ o(st, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1362
- ] }) }) : /* @__PURE__ */ x(j, { ...w, onClick: y, children: [
1363
- /* @__PURE__ */ o(mt, { node: t, expanded: p, hasChildren: u, isDisabled: m }),
1364
- /* @__PURE__ */ o(st, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1365
- ] }), e[23] = a, e[24] = C, e[25] = p, e[26] = y, e[27] = u, e[28] = m, e[29] = t, e[30] = w, e[31] = n, e[32] = _) : _ = e[32];
1366
- let L;
1367
- e[33] !== a || e[34] !== r || e[35] !== p || e[36] !== s || e[37] !== i || e[38] !== t.children || e[39] !== c || e[40] !== d || e[41] !== n ? (L = p ? t.children?.map((z) => /* @__PURE__ */ o(Bt, { sectionId: n, node: z, level: i + 1, expandedNodes: s, activeNodeId: r, linkComponent: a, onNavigate: c, onToggleNode: d }, z.id)) : null, e[33] = a, e[34] = r, e[35] = p, e[36] = s, e[37] = i, e[38] = t.children, e[39] = c, e[40] = d, e[41] = n, e[42] = L) : L = e[42];
1368
- let $;
1369
- return e[43] !== _ || e[44] !== L ? ($ = /* @__PURE__ */ x(B, { gap: "1px", w: "full", minW: "0", maxW: "full", children: [
1370
- _,
1371
- L
1372
- ] }), e[43] = _, e[44] = L, e[45] = $) : $ = e[45], $;
1373
- }, Wl = (l) => {
1400
+ }, e[17] = b, e[18] = S, e[19] = v, e[20] = T, e[21] = L, e[22] = _) : _ = e[22];
1401
+ const P = _;
1402
+ let D;
1403
+ e[23] !== t.contextMenuItems ? (D = t.contextMenuItems ?? [], e[23] = t.contextMenuItems, e[24] = D) : D = e[24];
1404
+ let C;
1405
+ e[25] !== D ? (C = D.map(fo), e[25] = D, e[26] = C) : C = e[26];
1406
+ const $ = C;
1407
+ let W;
1408
+ e[27] !== a || e[28] !== w || e[29] !== p || e[30] !== x || e[31] !== u || e[32] !== m || e[33] !== t || e[34] !== P || e[35] !== n ? (W = w && a && t.href ? /* @__PURE__ */ o(a, { to: t.href, children: /* @__PURE__ */ y(H, { ...P, onClick: x, children: [
1409
+ /* @__PURE__ */ o(yt, { node: t, expanded: p, hasChildren: u, isDisabled: m }),
1410
+ /* @__PURE__ */ o(ct, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1411
+ ] }) }) : /* @__PURE__ */ y(H, { ...P, onClick: x, children: [
1412
+ /* @__PURE__ */ o(yt, { node: t, expanded: p, hasChildren: u, isDisabled: m }),
1413
+ /* @__PURE__ */ o(ct, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1414
+ ] }), e[27] = a, e[28] = w, e[29] = p, e[30] = x, e[31] = u, e[32] = m, e[33] = t, e[34] = P, e[35] = n, e[36] = W) : W = e[36];
1415
+ let E;
1416
+ e[37] !== $ || e[38] !== W ? (E = /* @__PURE__ */ o(et, { actions: $, contentMinWidth: "180px", children: W }), e[37] = $, e[38] = W, e[39] = E) : E = e[39];
1417
+ let O;
1418
+ e[40] !== a || e[41] !== i || e[42] !== p || e[43] !== s || e[44] !== r || e[45] !== t.children || e[46] !== c || e[47] !== d || e[48] !== n ? (O = p ? t.children?.map((V) => /* @__PURE__ */ o(Yt, { sectionId: n, node: V, level: r + 1, expandedNodes: s, activeNodeId: i, linkComponent: a, onNavigate: c, onToggleNode: d }, V.id)) : null, e[40] = a, e[41] = i, e[42] = p, e[43] = s, e[44] = r, e[45] = t.children, e[46] = c, e[47] = d, e[48] = n, e[49] = O) : O = e[49];
1419
+ let B;
1420
+ return e[50] !== E || e[51] !== O ? (B = /* @__PURE__ */ y(F, { gap: "1px", w: "full", minW: "0", maxW: "full", children: [
1421
+ E,
1422
+ O
1423
+ ] }), e[50] = E, e[51] = O, e[52] = B) : B = e[52], B;
1424
+ }, so = (l) => {
1374
1425
  const e = R(21), {
1375
1426
  section: n,
1376
1427
  collapsible: t,
1377
- expanded: i,
1428
+ expanded: r,
1378
1429
  onToggle: s
1379
- } = l, r = t ? "pointer" : "default";
1430
+ } = l, i = t ? "pointer" : "default";
1380
1431
  let a;
1381
1432
  e[0] !== t ? (a = t ? {
1382
1433
  bg: "bg.hover"
1383
1434
  } : void 0, e[0] = t, e[1] = a) : a = e[1];
1384
1435
  const c = t ? s : void 0;
1385
1436
  let d;
1386
- e[2] !== n.label ? (d = /* @__PURE__ */ o(W, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: n.label }), e[2] = n.label, e[3] = d) : d = e[3];
1437
+ e[2] !== n.label ? (d = /* @__PURE__ */ o(z, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: n.label }), e[2] = n.label, e[3] = d) : d = e[3];
1387
1438
  let u;
1388
- e[4] !== t || e[5] !== i ? (u = t ? /* @__PURE__ */ o(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ o(Te, { size: 14, style: {
1389
- transform: i ? "rotate(90deg)" : "rotate(0deg)",
1439
+ e[4] !== t || e[5] !== r ? (u = t ? /* @__PURE__ */ o(G, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ o(_e, { size: 14, style: {
1440
+ transform: r ? "rotate(90deg)" : "rotate(0deg)",
1390
1441
  transition: "120ms"
1391
- } }) }) : null, e[4] = t, e[5] = i, e[6] = u) : u = e[6];
1442
+ } }) }) : null, e[4] = t, e[5] = r, e[6] = u) : u = e[6];
1392
1443
  let f;
1393
- e[7] !== d || e[8] !== u ? (f = /* @__PURE__ */ x(j, { gap: "1", flex: "1", minW: "0", children: [
1444
+ e[7] !== d || e[8] !== u ? (f = /* @__PURE__ */ y(H, { gap: "1", flex: "1", minW: "0", children: [
1394
1445
  d,
1395
1446
  u
1396
1447
  ] }), e[7] = d, e[8] = u, e[9] = f) : f = e[9];
1397
1448
  let p;
1398
1449
  e[10] !== n.actions ? (p = n.actions ?? [], e[10] = n.actions, e[11] = p) : p = e[11];
1399
- let h;
1400
- e[12] !== n.id || e[13] !== p ? (h = /* @__PURE__ */ o(st, { sectionId: n.id, actions: p }), e[12] = n.id, e[13] = p, e[14] = h) : h = e[14];
1401
1450
  let g;
1402
- return e[15] !== r || e[16] !== a || e[17] !== c || e[18] !== f || e[19] !== h ? (g = /* @__PURE__ */ x(j, { className: "group", justify: "space-between", align: "center", w: "full", minW: "0", maxW: "full", px: "1", py: "2xs", minH: "7", cursor: r, borderRadius: "xs", _hover: a, onClick: c, children: [
1451
+ e[12] !== n.id || e[13] !== p ? (g = /* @__PURE__ */ o(ct, { sectionId: n.id, actions: p }), e[12] = n.id, e[13] = p, e[14] = g) : g = e[14];
1452
+ let h;
1453
+ return e[15] !== i || e[16] !== a || e[17] !== c || e[18] !== f || e[19] !== g ? (h = /* @__PURE__ */ y(H, { className: "group", justify: "space-between", align: "center", w: "full", minW: "0", maxW: "full", px: "1", py: "2xs", minH: "7", cursor: i, borderRadius: "xs", _hover: a, onClick: c, children: [
1403
1454
  f,
1404
- h
1405
- ] }), e[15] = r, e[16] = a, e[17] = c, e[18] = f, e[19] = h, e[20] = g) : g = e[20], g;
1406
- }, El = (l) => {
1455
+ g
1456
+ ] }), e[15] = i, e[16] = a, e[17] = c, e[18] = f, e[19] = g, e[20] = h) : h = e[20], h;
1457
+ }, ao = (l) => {
1407
1458
  const e = R(19), {
1408
1459
  sections: n,
1409
1460
  expandedSections: t,
1410
- expandedNodes: i,
1461
+ expandedNodes: r,
1411
1462
  activeNodeId: s,
1412
- linkComponent: r,
1463
+ linkComponent: i,
1413
1464
  onNavigate: a,
1414
1465
  onToggleSection: c,
1415
1466
  onToggleNode: d
1416
1467
  } = l;
1417
1468
  let u;
1418
- if (e[0] !== s || e[1] !== i || e[2] !== t || e[3] !== r || e[4] !== a || e[5] !== d || e[6] !== c || e[7] !== n) {
1469
+ if (e[0] !== s || e[1] !== r || e[2] !== t || e[3] !== i || e[4] !== a || e[5] !== d || e[6] !== c || e[7] !== n) {
1419
1470
  let p;
1420
- e[9] !== s || e[10] !== i || e[11] !== t || e[12] !== r || e[13] !== a || e[14] !== d || e[15] !== c ? (p = (h) => {
1421
- const g = h.collapsible !== !1 && h.label !== void 0, S = g ? Nt(h.id, t) : !0;
1422
- return /* @__PURE__ */ x(B, { gap: "0", w: "full", minW: "0", maxW: "full", "data-testid": `sidebar-section-${h.id}`, children: [
1423
- h.label ? /* @__PURE__ */ o(Wl, { section: h, collapsible: g, expanded: S, onToggle: () => c(h.id) }) : null,
1424
- S ? h.nodes.length > 0 ? /* @__PURE__ */ o(B, { gap: "1px", w: "full", minW: "0", maxW: "full", children: h.nodes.map((m) => /* @__PURE__ */ o(Bt, { sectionId: h.id, node: m, level: 0, expandedNodes: i, activeNodeId: s, linkComponent: r, onNavigate: a, onToggleNode: d }, m.id)) }) : h.emptyState ?? null : null
1425
- ] }, h.id);
1426
- }, e[9] = s, e[10] = i, e[11] = t, e[12] = r, e[13] = a, e[14] = d, e[15] = c, e[16] = p) : p = e[16], u = n.map(p), e[0] = s, e[1] = i, e[2] = t, e[3] = r, e[4] = a, e[5] = d, e[6] = c, e[7] = n, e[8] = u;
1471
+ e[9] !== s || e[10] !== r || e[11] !== t || e[12] !== i || e[13] !== a || e[14] !== d || e[15] !== c ? (p = (g) => {
1472
+ const h = g.collapsible !== !1 && g.label !== void 0, b = h ? Ut(g.id, t) : !0;
1473
+ return /* @__PURE__ */ y(F, { gap: "0", w: "full", minW: "0", maxW: "full", "data-testid": `sidebar-section-${g.id}`, children: [
1474
+ g.label ? /* @__PURE__ */ o(so, { section: g, collapsible: h, expanded: b, onToggle: () => c(g.id) }) : null,
1475
+ b ? g.nodes.length > 0 ? /* @__PURE__ */ o(F, { gap: "1px", w: "full", minW: "0", maxW: "full", children: g.nodes.map((m) => /* @__PURE__ */ o(Yt, { sectionId: g.id, node: m, level: 0, expandedNodes: r, activeNodeId: s, linkComponent: i, onNavigate: a, onToggleNode: d }, m.id)) }) : g.emptyState ?? null : null
1476
+ ] }, g.id);
1477
+ }, e[9] = s, e[10] = r, e[11] = t, e[12] = i, e[13] = a, e[14] = d, e[15] = c, e[16] = p) : p = e[16], u = n.map(p), e[0] = s, e[1] = r, e[2] = t, e[3] = i, e[4] = a, e[5] = d, e[6] = c, e[7] = n, e[8] = u;
1427
1478
  } else
1428
1479
  u = e[8];
1429
1480
  let f;
1430
- return e[17] !== u ? (f = /* @__PURE__ */ o(B, { role: "listbox", gap: "md", w: "full", minW: "0", maxW: "full", overflowX: "hidden", children: u }), e[17] = u, e[18] = f) : f = e[18], f;
1481
+ return e[17] !== u ? (f = /* @__PURE__ */ o(F, { role: "listbox", gap: "md", w: "full", minW: "0", maxW: "full", overflowX: "hidden", children: u }), e[17] = u, e[18] = f) : f = e[18], f;
1431
1482
  };
1432
- function zl(l) {
1433
- return /* @__PURE__ */ o(xe, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ x(Y.Item, { value: l.id, onClick: () => l.onAction?.(), children: [
1434
- l.icon ? /* @__PURE__ */ o(V, { mr: "2", children: l.icon }) : null,
1483
+ function co(l) {
1484
+ return /* @__PURE__ */ o(Se, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ y(X.Item, { value: l.id, disabled: l.disabled, onClick: () => l.onAction?.(), children: [
1485
+ oo(l.icon),
1435
1486
  l.label
1436
1487
  ] }) }, l.id);
1437
1488
  }
1438
- function Al(l) {
1489
+ function uo(l) {
1439
1490
  return l.stopPropagation();
1440
1491
  }
1441
- const bt = {
1492
+ function fo(l) {
1493
+ return {
1494
+ key: l.id,
1495
+ label: l.label,
1496
+ icon: l.icon,
1497
+ isDisabled: l.disabled,
1498
+ onClick: () => l.onAction?.()
1499
+ };
1500
+ }
1501
+ const vt = {
1442
1502
  open: !0,
1443
1503
  expandedSections: [],
1444
1504
  expandedNodes: []
1445
- }, Ol = "pstdio/ui/sidebar", Ml = (l) => `${Ol}/${l}`, Gl = () => ({
1505
+ }, po = "pstdio/ui/sidebar", go = (l) => `${po}/${l}`, ho = () => ({
1446
1506
  getItem: () => null,
1447
1507
  setItem: () => {
1448
1508
  },
1449
1509
  removeItem: () => {
1450
1510
  }
1451
- }), St = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], xt = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), Nl = (l) => ({
1511
+ }), Ct = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], wt = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), mo = (l) => ({
1452
1512
  open: l.open,
1453
1513
  expandedSections: l.expandedSections,
1454
1514
  expandedNodes: l.expandedNodes
1455
- }), Bl = (l) => {
1515
+ }), bo = (l) => {
1456
1516
  const {
1457
1517
  storageKey: e,
1458
1518
  initialState: n
1459
1519
  } = l, t = {
1460
- ...bt,
1520
+ ...vt,
1461
1521
  ...n
1462
1522
  };
1463
- return zt()(Wt((i) => ({
1523
+ return Ht()(Nt((r) => ({
1464
1524
  ...t,
1465
- openSidebar: () => i((s) => ({
1525
+ openSidebar: () => r((s) => ({
1466
1526
  ...s,
1467
1527
  open: !0
1468
1528
  })),
1469
- closeSidebar: () => i((s) => ({
1529
+ closeSidebar: () => r((s) => ({
1470
1530
  ...s,
1471
1531
  open: !1
1472
1532
  })),
1473
- toggleSidebar: () => i((s) => ({
1533
+ toggleSidebar: () => r((s) => ({
1474
1534
  ...s,
1475
1535
  open: !s.open
1476
1536
  })),
1477
- toggleSection: (s) => i((r) => ({
1478
- ...r,
1479
- expandedSections: St(r.expandedSections, s)
1537
+ toggleSection: (s) => r((i) => ({
1538
+ ...i,
1539
+ expandedSections: Ct(i.expandedSections, s)
1480
1540
  })),
1481
- toggleNode: (s) => i((r) => ({
1482
- ...r,
1483
- expandedNodes: St(r.expandedNodes, s)
1541
+ toggleNode: (s) => r((i) => ({
1542
+ ...i,
1543
+ expandedNodes: Ct(i.expandedNodes, s)
1484
1544
  })),
1485
- setSectionExpanded: (s, r) => i((a) => ({
1545
+ setSectionExpanded: (s, i) => r((a) => ({
1486
1546
  ...a,
1487
- expandedSections: xt(a.expandedSections, s, r)
1547
+ expandedSections: wt(a.expandedSections, s, i)
1488
1548
  })),
1489
- setNodeExpanded: (s, r) => i((a) => ({
1549
+ setNodeExpanded: (s, i) => r((a) => ({
1490
1550
  ...a,
1491
- expandedNodes: xt(a.expandedNodes, s, r)
1551
+ expandedNodes: wt(a.expandedNodes, s, i)
1492
1552
  })),
1493
- reset: () => i(bt)
1553
+ reset: () => r(vt)
1494
1554
  }), {
1495
- name: Ml(e),
1496
- storage: Et(() => typeof globalThis.localStorage > "u" ? Gl() : globalThis.localStorage),
1497
- partialize: Nl
1555
+ name: go(e),
1556
+ storage: Gt(() => typeof globalThis.localStorage > "u" ? ho() : globalThis.localStorage),
1557
+ partialize: mo
1498
1558
  }));
1499
- }, yt = /* @__PURE__ */ new Map(), Hl = (l, e) => {
1500
- const n = yt.get(l);
1559
+ }, It = /* @__PURE__ */ new Map(), xo = (l, e) => {
1560
+ const n = It.get(l);
1501
1561
  if (n)
1502
1562
  return n;
1503
- const t = Bl({
1563
+ const t = bo({
1504
1564
  storageKey: l,
1505
1565
  initialState: e
1506
1566
  });
1507
- return yt.set(l, t), t;
1567
+ return It.set(l, t), t;
1508
1568
  }, Ae = (l, e, n) => {
1509
1569
  const t = R(3);
1510
- let i;
1511
- return t[0] !== n || t[1] !== l ? (i = Hl(l, n), t[0] = n, t[1] = l, t[2] = i) : i = t[2], Rt(i, e);
1512
- }, Fl = (l) => {
1570
+ let r;
1571
+ return t[0] !== n || t[1] !== l ? (r = xo(l, n), t[0] = n, t[1] = l, t[2] = r) : r = t[2], Bt(r, e);
1572
+ }, So = (l) => {
1513
1573
  const e = R(2), {
1514
1574
  children: n
1515
1575
  } = l;
1516
1576
  if (!n)
1517
1577
  return null;
1518
1578
  let t;
1519
- return e[0] !== n ? (t = /* @__PURE__ */ o(V, { px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: n }), e[0] = n, e[1] = t) : t = e[1], t;
1520
- }, Vl = (l) => {
1579
+ return e[0] !== n ? (t = /* @__PURE__ */ o(G, { px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: n }), e[0] = n, e[1] = t) : t = e[1], t;
1580
+ }, yo = (l) => {
1521
1581
  const e = R(7), {
1522
1582
  children: n,
1523
1583
  onClose: t
1524
1584
  } = l;
1525
- let i;
1526
- e[0] !== n ? (i = /* @__PURE__ */ o(j, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = i) : i = e[1];
1527
- let s;
1528
- e[2] !== t ? (s = t ? /* @__PURE__ */ o(he, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ o(Dn, { size: 16 }) }) : null, e[2] = t, e[3] = s) : s = e[3];
1529
1585
  let r;
1530
- return e[4] !== i || e[5] !== s ? (r = /* @__PURE__ */ x(j, { "data-testid": "sidebar-header", justify: "space-between", align: "center", minH: Gt, p: "2xs", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1531
- i,
1586
+ e[0] !== n ? (r = /* @__PURE__ */ o(H, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = r) : r = e[1];
1587
+ let s;
1588
+ e[2] !== t ? (s = t ? /* @__PURE__ */ o(he, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ o(An, { size: 16 }) }) : null, e[2] = t, e[3] = s) : s = e[3];
1589
+ let i;
1590
+ return e[4] !== r || e[5] !== s ? (i = /* @__PURE__ */ y(H, { "data-testid": "sidebar-header", justify: "space-between", align: "center", minH: Xt, p: "2xs", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1591
+ r,
1532
1592
  s
1533
- ] }), e[4] = i, e[5] = s, e[6] = r) : r = e[6], r;
1534
- }, Gi = (l) => {
1593
+ ] }), e[4] = r, e[5] = s, e[6] = i) : i = e[6], i;
1594
+ }, br = (l) => {
1535
1595
  const e = R(28), {
1536
1596
  storageKey: n,
1537
1597
  sections: t,
1538
- activeNodeId: i,
1598
+ activeNodeId: r,
1539
1599
  header: s,
1540
- footer: r,
1600
+ footer: i,
1541
1601
  width: a,
1542
1602
  closable: c,
1543
1603
  emptyLabel: d,
1544
1604
  defaultExpandedSections: u,
1545
1605
  linkComponent: f,
1546
1606
  onNavigate: p,
1547
- onOpenChange: h
1548
- } = l, g = a === void 0 ? "240px" : a, S = c === void 0 ? !0 : c, m = d === void 0 ? "No items available." : d;
1549
- let v;
1550
- e[0] !== u ? (v = u ? {
1607
+ onOpenChange: g
1608
+ } = l, h = a === void 0 ? "240px" : a, b = c === void 0 ? !0 : c, m = d === void 0 ? "No items available." : d;
1609
+ let S;
1610
+ e[0] !== u ? (S = u ? {
1551
1611
  expandedSections: u
1552
- } : void 0, e[0] = u, e[1] = v) : v = e[1];
1553
- const C = v, k = Ae(n, jl, C), y = Ae(n, Xl, C), I = Ae(n, Ul, C), D = Ae(n, Yl, C), T = Ae(n, Kl, C), b = Ae(n, ql, C);
1554
- let P, w;
1555
- if (e[2] !== h || e[3] !== k ? (P = () => {
1556
- h?.(k);
1557
- }, w = [h, k], e[2] = h, e[3] = k, e[4] = P, e[5] = w) : (P = e[4], w = e[5]), Oe(P, w), !k && S)
1612
+ } : void 0, e[0] = u, e[1] = S) : S = e[1];
1613
+ const w = S, I = Ae(n, vo, w), x = Ae(n, Co, w), v = Ae(n, wo, w), k = Ae(n, Io, w), T = Ae(n, ko, w), L = Ae(n, Po, w);
1614
+ let _, P;
1615
+ if (e[2] !== g || e[3] !== I ? (_ = () => {
1616
+ g?.(I);
1617
+ }, P = [g, I], e[2] = g, e[3] = I, e[4] = _, e[5] = P) : (_ = e[4], P = e[5]), Me(_, P), !I && b)
1558
1618
  return null;
1559
- const _ = S ? D : void 0;
1560
- let L;
1561
- e[6] !== s || e[7] !== _ ? (L = /* @__PURE__ */ o(Vl, { onClose: _, children: s }), e[6] = s, e[7] = _, e[8] = L) : L = e[8];
1562
- let $, z;
1619
+ const D = b ? k : void 0;
1620
+ let C;
1621
+ e[6] !== s || e[7] !== D ? (C = /* @__PURE__ */ o(yo, { onClose: D, children: s }), e[6] = s, e[7] = D, e[8] = C) : C = e[8];
1622
+ let $, W;
1563
1623
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
1564
1624
  display: "block",
1565
1625
  style: {
1566
1626
  overflowX: "hidden"
1567
1627
  }
1568
- }, z = {
1628
+ }, W = {
1569
1629
  style: {
1570
1630
  minWidth: "100%",
1571
1631
  width: "100%"
1572
1632
  }
1573
- }, e[9] = $, e[10] = z) : ($ = e[9], z = e[10]);
1633
+ }, e[9] = $, e[10] = W) : ($ = e[9], W = e[10]);
1634
+ let E;
1635
+ e[11] !== r || e[12] !== m || e[13] !== v || e[14] !== x || e[15] !== f || e[16] !== p || e[17] !== t || e[18] !== L || e[19] !== T ? (E = /* @__PURE__ */ o(ke, { flex: "1", px: "xs", mt: "lg", viewportProps: $, contentProps: W, children: /* @__PURE__ */ o(G, { w: "full", minW: "0", children: t.length === 0 ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ o(ao, { sections: t, expandedSections: x, expandedNodes: v, activeNodeId: r, linkComponent: f, onNavigate: p, onToggleSection: T, onToggleNode: L }) }) }), e[11] = r, e[12] = m, e[13] = v, e[14] = x, e[15] = f, e[16] = p, e[17] = t, e[18] = L, e[19] = T, e[20] = E) : E = e[20];
1574
1636
  let O;
1575
- e[11] !== i || e[12] !== m || e[13] !== I || e[14] !== y || e[15] !== f || e[16] !== p || e[17] !== t || e[18] !== b || e[19] !== T ? (O = /* @__PURE__ */ o(ke, { flex: "1", px: "xs", mt: "lg", viewportProps: $, contentProps: z, children: /* @__PURE__ */ o(V, { w: "full", minW: "0", children: t.length === 0 ? /* @__PURE__ */ o(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ o(El, { sections: t, expandedSections: y, expandedNodes: I, activeNodeId: i, linkComponent: f, onNavigate: p, onToggleSection: T, onToggleNode: b }) }) }), e[11] = i, e[12] = m, e[13] = I, e[14] = y, e[15] = f, e[16] = p, e[17] = t, e[18] = b, e[19] = T, e[20] = O) : O = e[20];
1576
- let G;
1577
- e[21] !== r ? (G = /* @__PURE__ */ o(Fl, { children: r }), e[21] = r, e[22] = G) : G = e[22];
1578
- let H;
1579
- return e[23] !== O || e[24] !== G || e[25] !== L || e[26] !== g ? (H = /* @__PURE__ */ x(fe, { as: "aside", "data-testid": "sidebar", direction: "column", h: "100%", w: g, minW: g, maxW: g, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1580
- L,
1581
- O,
1582
- G
1583
- ] }), e[23] = O, e[24] = G, e[25] = L, e[26] = g, e[27] = H) : H = e[27], H;
1637
+ e[21] !== i ? (O = /* @__PURE__ */ o(So, { children: i }), e[21] = i, e[22] = O) : O = e[22];
1638
+ let B;
1639
+ return e[23] !== E || e[24] !== O || e[25] !== C || e[26] !== h ? (B = /* @__PURE__ */ y(ue, { as: "aside", "data-testid": "sidebar", direction: "column", h: "100%", w: h, minW: h, maxW: h, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1640
+ C,
1641
+ E,
1642
+ O
1643
+ ] }), e[23] = E, e[24] = O, e[25] = C, e[26] = h, e[27] = B) : B = e[27], B;
1584
1644
  };
1585
- function jl(l) {
1645
+ function vo(l) {
1586
1646
  return l.open;
1587
1647
  }
1588
- function Xl(l) {
1648
+ function Co(l) {
1589
1649
  return l.expandedSections;
1590
1650
  }
1591
- function Ul(l) {
1651
+ function wo(l) {
1592
1652
  return l.expandedNodes;
1593
1653
  }
1594
- function Yl(l) {
1654
+ function Io(l) {
1595
1655
  return l.closeSidebar;
1596
1656
  }
1597
- function Kl(l) {
1657
+ function ko(l) {
1598
1658
  return l.toggleSection;
1599
1659
  }
1600
- function ql(l) {
1660
+ function Po(l) {
1601
1661
  return l.toggleNode;
1602
1662
  }
1603
- const Ni = (l) => {
1663
+ const xr = (l) => {
1604
1664
  const e = R(19), {
1605
1665
  name: n,
1606
1666
  projectsLabel: t,
1607
- themeModeLabel: i,
1667
+ themeModeLabel: r,
1608
1668
  isDarkMode: s,
1609
- onSelectProjects: r,
1669
+ onSelectProjects: i,
1610
1670
  onToggleThemePreference: a
1611
1671
  } = l;
1612
1672
  let c;
1613
- e[0] !== n ? (c = /* @__PURE__ */ x(j, { gap: "2", minW: "0", flex: "1", children: [
1614
- /* @__PURE__ */ o(ft.Root, { size: "2xs", children: /* @__PURE__ */ o(ft.Fallback, { name: n }) }),
1615
- /* @__PURE__ */ o(W, { textStyle: "label/S/medium", truncate: !0, children: n })
1673
+ e[0] !== n ? (c = /* @__PURE__ */ y(H, { gap: "2", minW: "0", flex: "1", children: [
1674
+ /* @__PURE__ */ o(mt.Root, { size: "2xs", children: /* @__PURE__ */ o(mt.Fallback, { name: n }) }),
1675
+ /* @__PURE__ */ o(z, { textStyle: "label/S/medium", truncate: !0, children: n })
1616
1676
  ] }), e[0] = n, e[1] = c) : c = e[1];
1617
1677
  let d;
1618
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ o(Fe, { size: 14 }), e[2] = d) : d = e[2];
1678
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ o(Xe, { size: 14 }), e[2] = d) : d = e[2];
1619
1679
  let u;
1620
- e[3] !== c ? (u = /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ x(pe, { variant: "ghost", size: "sm", width: "full", justifyContent: "flex-start", children: [
1680
+ e[3] !== c ? (u = /* @__PURE__ */ o(X.Trigger, { asChild: !0, children: /* @__PURE__ */ y(ge, { variant: "ghost", size: "sm", width: "full", justifyContent: "flex-start", children: [
1621
1681
  c,
1622
1682
  d
1623
1683
  ] }) }), e[3] = c, e[4] = u) : u = e[4];
1624
1684
  let f;
1625
- e[5] !== r || e[6] !== t ? (f = /* @__PURE__ */ o(De, { onClick: r, primaryLabel: t, leftIcon: $n }), e[5] = r, e[6] = t, e[7] = f) : f = e[7];
1685
+ e[5] !== i || e[6] !== t ? (f = /* @__PURE__ */ o(Pe, { onClick: i, primaryLabel: t, leftIcon: Nn }), e[5] = i, e[6] = t, e[7] = f) : f = e[7];
1626
1686
  let p;
1627
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(Y.Separator, {}), e[8] = p) : p = e[8];
1628
- const h = s ? _n : Ln;
1629
- let g;
1630
- e[9] !== a || e[10] !== h || e[11] !== i ? (g = /* @__PURE__ */ o(De, { onClick: a, primaryLabel: i, leftIcon: h }), e[9] = a, e[10] = h, e[11] = i, e[12] = g) : g = e[12];
1631
- let S;
1632
- e[13] !== f || e[14] !== g ? (S = /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ x(Y.Content, { minW: "240px", bg: "bg", children: [
1687
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(X.Separator, {}), e[8] = p) : p = e[8];
1688
+ const g = s ? Mn : Bn;
1689
+ let h;
1690
+ e[9] !== a || e[10] !== g || e[11] !== r ? (h = /* @__PURE__ */ o(Pe, { onClick: a, primaryLabel: r, leftIcon: g }), e[9] = a, e[10] = g, e[11] = r, e[12] = h) : h = e[12];
1691
+ let b;
1692
+ e[13] !== f || e[14] !== h ? (b = /* @__PURE__ */ o(X.Positioner, { children: /* @__PURE__ */ y(X.Content, { minW: "240px", bg: "bg", children: [
1633
1693
  f,
1634
1694
  p,
1635
- g
1636
- ] }) }), e[13] = f, e[14] = g, e[15] = S) : S = e[15];
1695
+ h
1696
+ ] }) }), e[13] = f, e[14] = h, e[15] = b) : b = e[15];
1637
1697
  let m;
1638
- return e[16] !== u || e[17] !== S ? (m = /* @__PURE__ */ x(Y.Root, { children: [
1698
+ return e[16] !== u || e[17] !== b ? (m = /* @__PURE__ */ y(X.Root, { children: [
1639
1699
  u,
1640
- S
1641
- ] }), e[16] = u, e[17] = S, e[18] = m) : m = e[18], m;
1642
- }, Bi = at.forwardRef(function(e, n) {
1700
+ b
1701
+ ] }), e[16] = u, e[17] = b, e[18] = m) : m = e[18], m;
1702
+ }, Sr = ut.forwardRef(function(e, n) {
1643
1703
  const t = R(32);
1644
- let i, s, r, a, c, d, u;
1704
+ let r, s, i, a, c, d, u;
1645
1705
  t[0] !== e ? ({
1646
1706
  inputProps: s,
1647
- children: i,
1707
+ children: r,
1648
1708
  rootRef: a,
1649
1709
  trackLabel: u,
1650
1710
  thumbLabel: d,
1651
1711
  disabled: c,
1652
- ...r
1653
- } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = d, t[7] = u) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5], d = t[6], u = t[7]);
1712
+ ...i
1713
+ } = e, t[0] = e, t[1] = r, t[2] = s, t[3] = i, t[4] = a, t[5] = c, t[6] = d, t[7] = u) : (r = t[1], s = t[2], i = t[3], a = t[4], c = t[5], d = t[6], u = t[7]);
1654
1714
  const f = c === void 0 ? !1 : c, p = f ? "not-allowed" : "pointer";
1655
- let h;
1656
- t[8] !== s || t[9] !== n ? (h = /* @__PURE__ */ o(Ie.HiddenInput, { ref: n, ...s }), t[8] = s, t[9] = n, t[10] = h) : h = t[10];
1657
1715
  let g;
1658
- t[11] !== d ? (g = d && /* @__PURE__ */ o(Ie.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = g) : g = t[12];
1659
- let S;
1660
- t[13] !== g ? (S = /* @__PURE__ */ o(Ie.Thumb, { borderRadius: "full", children: g }), t[13] = g, t[14] = S) : S = t[14];
1716
+ t[8] !== s || t[9] !== n ? (g = /* @__PURE__ */ o(De.HiddenInput, { ref: n, ...s }), t[8] = s, t[9] = n, t[10] = g) : g = t[10];
1717
+ let h;
1718
+ t[11] !== d ? (h = d && /* @__PURE__ */ o(De.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = h) : h = t[12];
1719
+ let b;
1720
+ t[13] !== h ? (b = /* @__PURE__ */ o(De.Thumb, { borderRadius: "full", children: h }), t[13] = h, t[14] = b) : b = t[14];
1661
1721
  let m;
1662
- t[15] !== u ? (m = u && /* @__PURE__ */ o(Ie.Indicator, { fallback: u.off, children: u.on }), t[15] = u, t[16] = m) : m = t[16];
1663
- let v;
1664
- t[17] !== p || t[18] !== S || t[19] !== m ? (v = /* @__PURE__ */ x(Ie.Control, { borderRadius: "md", cursor: p, children: [
1665
- S,
1722
+ t[15] !== u ? (m = u && /* @__PURE__ */ o(De.Indicator, { fallback: u.off, children: u.on }), t[15] = u, t[16] = m) : m = t[16];
1723
+ let S;
1724
+ t[17] !== p || t[18] !== b || t[19] !== m ? (S = /* @__PURE__ */ y(De.Control, { borderRadius: "md", cursor: p, children: [
1725
+ b,
1666
1726
  m
1667
- ] }), t[17] = p, t[18] = S, t[19] = m, t[20] = v) : v = t[20];
1668
- let C;
1669
- t[21] !== i || t[22] !== p ? (C = i != null && /* @__PURE__ */ o(Ie.Label, { cursor: p, children: i }), t[21] = i, t[22] = p, t[23] = C) : C = t[23];
1670
- let k;
1671
- return t[24] !== f || t[25] !== p || t[26] !== r || t[27] !== a || t[28] !== h || t[29] !== v || t[30] !== C ? (k = /* @__PURE__ */ x(Ie.Root, { ref: a, disabled: f, cursor: p, ...r, children: [
1672
- h,
1673
- v,
1674
- C
1675
- ] }), t[24] = f, t[25] = p, t[26] = r, t[27] = a, t[28] = h, t[29] = v, t[30] = C, t[31] = k) : k = t[31], k;
1676
- }), Ye = (l) => {
1727
+ ] }), t[17] = p, t[18] = b, t[19] = m, t[20] = S) : S = t[20];
1728
+ let w;
1729
+ t[21] !== r || t[22] !== p ? (w = r != null && /* @__PURE__ */ o(De.Label, { cursor: p, children: r }), t[21] = r, t[22] = p, t[23] = w) : w = t[23];
1730
+ let I;
1731
+ return t[24] !== f || t[25] !== p || t[26] !== i || t[27] !== a || t[28] !== g || t[29] !== S || t[30] !== w ? (I = /* @__PURE__ */ y(De.Root, { ref: a, disabled: f, cursor: p, ...i, children: [
1732
+ g,
1733
+ S,
1734
+ w
1735
+ ] }), t[24] = f, t[25] = p, t[26] = i, t[27] = a, t[28] = g, t[29] = S, t[30] = w, t[31] = I) : I = t[31], I;
1736
+ }), Je = (l) => {
1677
1737
  const e = R(2);
1678
1738
  let n;
1679
- return e[0] !== l.children ? (n = /* @__PURE__ */ o(W, { textStyle: "label/XS/medium", color: "fg.muted", children: l.children }), e[0] = l.children, e[1] = n) : n = e[1], n;
1680
- }, tt = (l) => {
1739
+ return e[0] !== l.children ? (n = /* @__PURE__ */ o(z, { textStyle: "label/XS/medium", color: "fg.muted", children: l.children }), e[0] = l.children, e[1] = n) : n = e[1], n;
1740
+ }, it = (l) => {
1681
1741
  const e = R(19);
1682
1742
  let n;
1683
1743
  e[0] !== l.label || e[1] !== l.options || e[2] !== l.value ? (n = l.options.find((f) => f.value === l.value)?.label ?? l.label, e[0] = l.label, e[1] = l.options, e[2] = l.value, e[3] = n) : n = e[3];
1684
1744
  const t = n;
1685
- let i;
1686
- e[4] !== l.label ? (i = /* @__PURE__ */ o(Ye, { children: l.label }), e[4] = l.label, e[5] = i) : i = e[5];
1687
- let s;
1688
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o(ae, { as: Fe, color: "fg.muted" }), e[6] = s) : s = e[6];
1689
1745
  let r;
1690
- e[7] !== t ? (r = /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ x(pe, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
1746
+ e[4] !== l.label ? (r = /* @__PURE__ */ o(Je, { children: l.label }), e[4] = l.label, e[5] = r) : r = e[5];
1747
+ let s;
1748
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o(ee, { as: Xe, color: "fg.muted" }), e[6] = s) : s = e[6];
1749
+ let i;
1750
+ e[7] !== t ? (i = /* @__PURE__ */ o(X.Trigger, { asChild: !0, children: /* @__PURE__ */ y(ge, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
1691
1751
  t,
1692
1752
  s
1693
- ] }) }), e[7] = t, e[8] = r) : r = e[8];
1753
+ ] }) }), e[7] = t, e[8] = i) : i = e[8];
1694
1754
  let a;
1695
- e[9] !== l ? (a = l.options.map((f) => /* @__PURE__ */ o(Y.Item, { value: f.value, onClick: () => l.onSelect(f.value), children: /* @__PURE__ */ o(W, { textStyle: "label/S/regular", children: f.label }) }, f.value)), e[9] = l, e[10] = a) : a = e[10];
1755
+ e[9] !== l ? (a = l.options.map((f) => /* @__PURE__ */ o(X.Item, { value: f.value, onClick: () => l.onSelect(f.value), children: /* @__PURE__ */ o(z, { textStyle: "label/S/regular", children: f.label }) }, f.value)), e[9] = l, e[10] = a) : a = e[10];
1696
1756
  let c;
1697
- e[11] !== a ? (c = /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ o(Y.Content, { minW: "260px", bg: "bg", children: a }) }), e[11] = a, e[12] = c) : c = e[12];
1757
+ e[11] !== a ? (c = /* @__PURE__ */ o(X.Positioner, { children: /* @__PURE__ */ o(X.Content, { minW: "260px", bg: "bg", children: a }) }), e[11] = a, e[12] = c) : c = e[12];
1698
1758
  let d;
1699
- e[13] !== r || e[14] !== c ? (d = /* @__PURE__ */ x(Y.Root, { children: [
1700
- r,
1759
+ e[13] !== i || e[14] !== c ? (d = /* @__PURE__ */ y(X.Root, { children: [
1760
+ i,
1701
1761
  c
1702
- ] }), e[13] = r, e[14] = c, e[15] = d) : d = e[15];
1762
+ ] }), e[13] = i, e[14] = c, e[15] = d) : d = e[15];
1703
1763
  let u;
1704
- return e[16] !== i || e[17] !== d ? (u = /* @__PURE__ */ x(B, { gap: "2xs", children: [
1705
- i,
1764
+ return e[16] !== r || e[17] !== d ? (u = /* @__PURE__ */ y(F, { gap: "2xs", children: [
1765
+ r,
1706
1766
  d
1707
- ] }), e[16] = i, e[17] = d, e[18] = u) : u = e[18], u;
1708
- }, Jl = (l) => {
1767
+ ] }), e[16] = r, e[17] = d, e[18] = u) : u = e[18], u;
1768
+ }, To = (l) => {
1709
1769
  const e = R(60), {
1710
1770
  settings: n,
1711
1771
  groupingOptions: t,
1712
- orderingOptions: i,
1772
+ orderingOptions: r,
1713
1773
  displayPropertyOptions: s,
1714
- onViewModeChange: r,
1774
+ onViewModeChange: i,
1715
1775
  onColumnGroupingChange: a,
1716
1776
  onRowGroupingChange: c,
1717
1777
  onOrderingFieldChange: d,
@@ -1725,496 +1785,587 @@ const Ni = (l) => {
1725
1785
  mainAxis: 8
1726
1786
  }
1727
1787
  }, e[0] = p) : p = e[0];
1728
- let h;
1729
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(we.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ o(ae, { as: Rn, boxSize: "14px" }) }) }), e[1] = h) : h = e[1];
1730
1788
  let g;
1731
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o(Ye, { children: "View" }), e[2] = g) : g = e[2];
1732
- let S;
1733
- e[3] !== r ? (S = (E) => {
1734
- E.value && r(E.value);
1735
- }, e[3] = r, e[4] = S) : S = e[4];
1789
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ o(ee, { as: Gn, boxSize: "14px" }) }) }), e[1] = g) : g = e[1];
1790
+ let h;
1791
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(Je, { children: "View" }), e[2] = h) : h = e[2];
1792
+ let b;
1793
+ e[3] !== i ? (b = (A) => {
1794
+ A.value && i(A.value);
1795
+ }, e[3] = i, e[4] = b) : b = e[4];
1736
1796
  let m;
1737
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ o(Ce.Indicator, {}), e[5] = m) : m = e[5];
1738
- let v;
1739
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ x(Ce.Item, { value: "list", children: [
1740
- /* @__PURE__ */ o(Ce.ItemText, { children: /* @__PURE__ */ x(j, { as: "span", gap: "2xs", children: [
1741
- /* @__PURE__ */ o(Wn, { size: 14 }),
1797
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ o(we.Indicator, {}), e[5] = m) : m = e[5];
1798
+ let S;
1799
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(we.Item, { value: "list", children: [
1800
+ /* @__PURE__ */ o(we.ItemText, { children: /* @__PURE__ */ y(H, { as: "span", gap: "2xs", children: [
1801
+ /* @__PURE__ */ o(Hn, { size: 14 }),
1742
1802
  /* @__PURE__ */ o("span", { children: "List" })
1743
1803
  ] }) }),
1744
- /* @__PURE__ */ o(Ce.ItemHiddenInput, {})
1745
- ] }), e[6] = v) : v = e[6];
1746
- let C;
1747
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ x(Ce.Item, { value: "board", children: [
1748
- /* @__PURE__ */ o(Ce.ItemText, { children: /* @__PURE__ */ x(j, { as: "span", gap: "2xs", children: [
1749
- /* @__PURE__ */ o(En, { size: 14 }),
1804
+ /* @__PURE__ */ o(we.ItemHiddenInput, {})
1805
+ ] }), e[6] = S) : S = e[6];
1806
+ let w;
1807
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ y(we.Item, { value: "board", children: [
1808
+ /* @__PURE__ */ o(we.ItemText, { children: /* @__PURE__ */ y(H, { as: "span", gap: "2xs", children: [
1809
+ /* @__PURE__ */ o(Fn, { size: 14 }),
1750
1810
  /* @__PURE__ */ o("span", { children: "Board" })
1751
1811
  ] }) }),
1752
- /* @__PURE__ */ o(Ce.ItemHiddenInput, {})
1753
- ] }), e[7] = C) : C = e[7];
1754
- let k;
1755
- e[8] !== n.viewMode || e[9] !== S ? (k = /* @__PURE__ */ x(Ce.Root, { size: "sm", value: n.viewMode, onValueChange: S, children: [
1756
- m,
1757
- v,
1758
- C
1759
- ] }), e[8] = n.viewMode, e[9] = S, e[10] = k) : k = e[10];
1760
- let y;
1761
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ o(it, {}), e[11] = y) : y = e[11];
1812
+ /* @__PURE__ */ o(we.ItemHiddenInput, {})
1813
+ ] }), e[7] = w) : w = e[7];
1762
1814
  let I;
1763
- e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (I = (E) => {
1764
- a(E), (E === "none" || E === n.rowGrouping) && c("none");
1765
- }, e[12] = a, e[13] = c, e[14] = n.rowGrouping, e[15] = I) : I = e[15];
1766
- let D;
1767
- e[16] !== t || e[17] !== n.columnGrouping || e[18] !== I ? (D = /* @__PURE__ */ o(tt, { label: "Grouping", value: n.columnGrouping, options: t, onSelect: I }), e[16] = t, e[17] = n.columnGrouping, e[18] = I, e[19] = D) : D = e[19];
1815
+ e[8] !== n.viewMode || e[9] !== b ? (I = /* @__PURE__ */ y(we.Root, { size: "sm", value: n.viewMode, onValueChange: b, children: [
1816
+ m,
1817
+ S,
1818
+ w
1819
+ ] }), e[8] = n.viewMode, e[9] = b, e[10] = I) : I = e[10];
1820
+ let x;
1821
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(st, {}), e[11] = x) : x = e[11];
1822
+ let v;
1823
+ e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (v = (A) => {
1824
+ a(A), (A === "none" || A === n.rowGrouping) && c("none");
1825
+ }, e[12] = a, e[13] = c, e[14] = n.rowGrouping, e[15] = v) : v = e[15];
1826
+ let k;
1827
+ e[16] !== t || e[17] !== n.columnGrouping || e[18] !== v ? (k = /* @__PURE__ */ o(it, { label: "Grouping", value: n.columnGrouping, options: t, onSelect: v }), e[16] = t, e[17] = n.columnGrouping, e[18] = v, e[19] = k) : k = e[19];
1768
1828
  const T = n.rowGrouping;
1769
- let b;
1829
+ let L;
1770
1830
  if (e[20] !== t || e[21] !== n.columnGrouping) {
1771
- let E;
1772
- e[23] !== n.columnGrouping ? (E = (K) => K.value === "none" || K.value !== n.columnGrouping, e[23] = n.columnGrouping, e[24] = E) : E = e[24], b = t.filter(E), e[20] = t, e[21] = n.columnGrouping, e[22] = b;
1831
+ let A;
1832
+ e[23] !== n.columnGrouping ? (A = (Y) => Y.value === "none" || Y.value !== n.columnGrouping, e[23] = n.columnGrouping, e[24] = A) : A = e[24], L = t.filter(A), e[20] = t, e[21] = n.columnGrouping, e[22] = L;
1773
1833
  } else
1774
- b = e[22];
1775
- let P;
1776
- e[25] !== c || e[26] !== n.rowGrouping || e[27] !== b ? (P = /* @__PURE__ */ o(tt, { label: "Sub-grouping", value: T, options: b, onSelect: c }), e[25] = c, e[26] = n.rowGrouping, e[27] = b, e[28] = P) : P = e[28];
1777
- let w;
1778
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ o(Ye, { children: "Ordering" }), e[29] = w) : w = e[29];
1834
+ L = e[22];
1779
1835
  let _;
1780
- e[30] !== d || e[31] !== i || e[32] !== n.ordering.field ? (_ = /* @__PURE__ */ o(tt, { label: "Sort by", value: n.ordering.field, options: i, onSelect: d }), e[30] = d, e[31] = i, e[32] = n.ordering.field, e[33] = _) : _ = e[33];
1781
- const L = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
1836
+ e[25] !== c || e[26] !== n.rowGrouping || e[27] !== L ? (_ = /* @__PURE__ */ o(it, { label: "Sub-grouping", value: T, options: L, onSelect: c }), e[25] = c, e[26] = n.rowGrouping, e[27] = L, e[28] = _) : _ = e[28];
1837
+ let P;
1838
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ o(Je, { children: "Ordering" }), e[29] = P) : P = e[29];
1839
+ let D;
1840
+ e[30] !== d || e[31] !== r || e[32] !== n.ordering.field ? (D = /* @__PURE__ */ o(it, { label: "Sort by", value: n.ordering.field, options: r, onSelect: d }), e[30] = d, e[31] = r, e[32] = n.ordering.field, e[33] = D) : D = e[33];
1841
+ const C = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
1782
1842
  let $;
1783
- e[34] !== L ? ($ = /* @__PURE__ */ o(ae, { as: zn, transform: L }), e[34] = L, e[35] = $) : $ = e[35];
1784
- let z;
1785
- e[36] !== u || e[37] !== n.ordering.direction || e[38] !== $ ? (z = /* @__PURE__ */ o(he, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: u, "data-direction": n.ordering.direction, children: $ }), e[36] = u, e[37] = n.ordering.direction, e[38] = $, e[39] = z) : z = e[39];
1786
- let O;
1787
- e[40] !== _ || e[41] !== z ? (O = /* @__PURE__ */ x(B, { gap: "2xs", children: [
1788
- w,
1789
- /* @__PURE__ */ x(j, { gap: "2xs", children: [
1790
- _,
1791
- z
1843
+ e[34] !== C ? ($ = /* @__PURE__ */ o(ee, { as: Vn, transform: C }), e[34] = C, e[35] = $) : $ = e[35];
1844
+ let W;
1845
+ e[36] !== u || e[37] !== n.ordering.direction || e[38] !== $ ? (W = /* @__PURE__ */ o(he, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: u, "data-direction": n.ordering.direction, children: $ }), e[36] = u, e[37] = n.ordering.direction, e[38] = $, e[39] = W) : W = e[39];
1846
+ let E;
1847
+ e[40] !== D || e[41] !== W ? (E = /* @__PURE__ */ y(F, { gap: "2xs", children: [
1848
+ P,
1849
+ /* @__PURE__ */ y(H, { gap: "2xs", children: [
1850
+ D,
1851
+ W
1792
1852
  ] })
1793
- ] }), e[40] = _, e[41] = z, e[42] = O) : O = e[42];
1794
- let G;
1795
- e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ o(it, {}), e[43] = G) : G = e[43];
1796
- let H;
1797
- e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ o(Ye, { children: "Display properties" }), e[44] = H) : H = e[44];
1798
- let X;
1853
+ ] }), e[40] = D, e[41] = W, e[42] = E) : E = e[42];
1854
+ let O;
1855
+ e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(st, {}), e[43] = O) : O = e[43];
1856
+ let B;
1857
+ e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ o(Je, { children: "Display properties" }), e[44] = B) : B = e[44];
1858
+ let V;
1799
1859
  if (e[45] !== s || e[46] !== f || e[47] !== n.displayProperties) {
1800
- let E;
1801
- e[49] !== f || e[50] !== n.displayProperties ? (E = (K) => {
1802
- const M = n.displayProperties.includes(K.value);
1803
- return /* @__PURE__ */ o(pe, { size: "2xs", variant: M ? "solid" : "outline", onClick: () => f(K.value), children: K.label }, K.value);
1804
- }, e[49] = f, e[50] = n.displayProperties, e[51] = E) : E = e[51], X = s.map(E), e[45] = s, e[46] = f, e[47] = n.displayProperties, e[48] = X;
1860
+ let A;
1861
+ e[49] !== f || e[50] !== n.displayProperties ? (A = (Y) => {
1862
+ const N = n.displayProperties.includes(Y.value);
1863
+ return /* @__PURE__ */ o(ge, { size: "2xs", variant: N ? "solid" : "outline", onClick: () => f(Y.value), children: Y.label }, Y.value);
1864
+ }, e[49] = f, e[50] = n.displayProperties, e[51] = A) : A = e[51], V = s.map(A), e[45] = s, e[46] = f, e[47] = n.displayProperties, e[48] = V;
1805
1865
  } else
1806
- X = e[48];
1807
- let F;
1808
- e[52] !== X ? (F = /* @__PURE__ */ x(B, { gap: "2xs", children: [
1809
- H,
1810
- /* @__PURE__ */ o(j, { flexWrap: "wrap", gap: "2xs", children: X })
1811
- ] }), e[52] = X, e[53] = F) : F = e[53];
1812
- let A;
1813
- return e[54] !== D || e[55] !== P || e[56] !== O || e[57] !== F || e[58] !== k ? (A = /* @__PURE__ */ x(we.Root, { positioning: p, children: [
1814
- h,
1815
- /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(we.Positioner, { children: /* @__PURE__ */ o(we.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ x(B, { gap: "sm", children: [
1816
- g,
1866
+ V = e[48];
1867
+ let U;
1868
+ e[52] !== V ? (U = /* @__PURE__ */ y(F, { gap: "2xs", children: [
1869
+ B,
1870
+ /* @__PURE__ */ o(H, { flexWrap: "wrap", gap: "2xs", children: V })
1871
+ ] }), e[52] = V, e[53] = U) : U = e[53];
1872
+ let j;
1873
+ return e[54] !== k || e[55] !== _ || e[56] !== E || e[57] !== U || e[58] !== I ? (j = /* @__PURE__ */ y(Ie.Root, { positioning: p, children: [
1874
+ g,
1875
+ /* @__PURE__ */ o(Be, { children: /* @__PURE__ */ o(Ie.Positioner, { children: /* @__PURE__ */ o(Ie.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ y(F, { gap: "sm", children: [
1876
+ h,
1877
+ I,
1878
+ x,
1817
1879
  k,
1818
- y,
1819
- D,
1820
- P,
1880
+ _,
1881
+ E,
1821
1882
  O,
1822
- G,
1823
- F
1883
+ U
1824
1884
  ] }) }) }) })
1825
- ] }), e[54] = D, e[55] = P, e[56] = O, e[57] = F, e[58] = k, e[59] = A) : A = e[59], A;
1826
- }, Ql = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), Zl = (l) => {
1885
+ ] }), e[54] = k, e[55] = _, e[56] = E, e[57] = U, e[58] = I, e[59] = j) : j = e[59], j;
1886
+ }, Do = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), _o = (l) => {
1827
1887
  const e = R(39), {
1828
1888
  categories: n,
1829
1889
  filters: t,
1830
- countsByCategory: i,
1890
+ countsByCategory: r,
1831
1891
  onToggleFilterValue: s,
1832
- onClearFilter: r,
1892
+ onClearFilter: i,
1833
1893
  onClearAll: a
1834
- } = l, [c, d] = ge(n[0]?.id ?? "status");
1894
+ } = l, [c, d] = me(n[0]?.id ?? "status");
1835
1895
  let u;
1836
- e[0] !== c || e[1] !== n ? (u = n.find((_) => _.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = u) : u = e[2];
1837
- const f = u, p = Ql(t);
1838
- let h;
1839
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
1896
+ e[0] !== c || e[1] !== n ? (u = n.find((D) => D.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = u) : u = e[2];
1897
+ const f = u, p = Do(t);
1898
+ let g;
1899
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
1840
1900
  placement: "bottom-end",
1841
1901
  offset: {
1842
1902
  mainAxis: 8
1843
1903
  }
1844
- }, e[3] = h) : h = e[3];
1845
- const g = p > 0 ? "outline" : "ghost";
1846
- let S;
1847
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ o(ae, { as: An, boxSize: "14px" }), e[4] = S) : S = e[4];
1904
+ }, e[3] = g) : g = e[3];
1905
+ const h = p > 0 ? "outline" : "ghost";
1906
+ let b;
1907
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ o(ee, { as: jn, boxSize: "14px" }), e[4] = b) : b = e[4];
1848
1908
  let m;
1849
- e[5] !== p ? (m = p > 0 ? /* @__PURE__ */ o(Pe, { variant: "solid", children: p }) : null, e[5] = p, e[6] = m) : m = e[6];
1850
- let v;
1851
- e[7] !== m ? (v = /* @__PURE__ */ x(j, { gap: "2xs", children: [
1852
- S,
1909
+ e[5] !== p ? (m = p > 0 ? /* @__PURE__ */ o(ye, { variant: "solid", children: p }) : null, e[5] = p, e[6] = m) : m = e[6];
1910
+ let S;
1911
+ e[7] !== m ? (S = /* @__PURE__ */ y(H, { gap: "2xs", children: [
1912
+ b,
1853
1913
  m
1854
- ] }), e[7] = m, e[8] = v) : v = e[8];
1855
- let C;
1856
- e[9] !== g || e[10] !== v ? (C = /* @__PURE__ */ o(we.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { "aria-label": "Filter tickets", variant: g, size: "sm", children: v }) }), e[9] = g, e[10] = v, e[11] = C) : C = e[11];
1857
- let k;
1858
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ o(W, { textStyle: "label/XS/medium", color: "fg.muted", children: "Filters" }), e[12] = k) : k = e[12];
1859
- let y;
1860
- e[13] !== a ? (y = /* @__PURE__ */ x(j, { justifyContent: "space-between", children: [
1861
- k,
1862
- /* @__PURE__ */ o(pe, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
1863
- ] }), e[13] = a, e[14] = y) : y = e[14];
1914
+ ] }), e[7] = m, e[8] = S) : S = e[8];
1915
+ let w;
1916
+ e[9] !== h || e[10] !== S ? (w = /* @__PURE__ */ o(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { "aria-label": "Filter tickets", variant: h, size: "sm", children: S }) }), e[9] = h, e[10] = S, e[11] = w) : w = e[11];
1864
1917
  let I;
1918
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ o(z, { textStyle: "label/XS/medium", color: "fg.muted", children: "Filters" }), e[12] = I) : I = e[12];
1919
+ let x;
1920
+ e[13] !== a ? (x = /* @__PURE__ */ y(H, { justifyContent: "space-between", children: [
1921
+ I,
1922
+ /* @__PURE__ */ o(ge, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
1923
+ ] }), e[13] = a, e[14] = x) : x = e[14];
1924
+ let v;
1865
1925
  if (e[15] !== c || e[16] !== n || e[17] !== t) {
1866
- let _;
1867
- e[19] !== c || e[20] !== t ? (_ = (L) => {
1868
- const $ = t[L.id] ?? [];
1869
- return /* @__PURE__ */ x(pe, { variant: c === L.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(L.id), children: [
1870
- /* @__PURE__ */ o(W, { children: L.label }),
1871
- $.length > 0 ? /* @__PURE__ */ o(Pe, { variant: "subtle", children: $.length }) : null
1872
- ] }, L.id);
1873
- }, e[19] = c, e[20] = t, e[21] = _) : _ = e[21], I = n.map(_), e[15] = c, e[16] = n, e[17] = t, e[18] = I;
1926
+ let D;
1927
+ e[19] !== c || e[20] !== t ? (D = (C) => {
1928
+ const $ = t[C.id] ?? [];
1929
+ return /* @__PURE__ */ y(ge, { variant: c === C.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(C.id), children: [
1930
+ /* @__PURE__ */ o(z, { children: C.label }),
1931
+ $.length > 0 ? /* @__PURE__ */ o(ye, { variant: "subtle", children: $.length }) : null
1932
+ ] }, C.id);
1933
+ }, e[19] = c, e[20] = t, e[21] = D) : D = e[21], v = n.map(D), e[15] = c, e[16] = n, e[17] = t, e[18] = v;
1874
1934
  } else
1875
- I = e[18];
1876
- let D;
1877
- e[22] !== y || e[23] !== I ? (D = /* @__PURE__ */ x(B, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1878
- y,
1879
- I
1880
- ] }), e[22] = y, e[23] = I, e[24] = D) : D = e[24];
1935
+ v = e[18];
1936
+ let k;
1937
+ e[22] !== x || e[23] !== v ? (k = /* @__PURE__ */ y(F, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1938
+ x,
1939
+ v
1940
+ ] }), e[22] = x, e[23] = v, e[24] = k) : k = e[24];
1881
1941
  let T;
1882
- e[25] !== f || e[26] !== i || e[27] !== t || e[28] !== r || e[29] !== s ? (T = f ? /* @__PURE__ */ x(Lt, { children: [
1883
- /* @__PURE__ */ x(j, { justifyContent: "space-between", children: [
1884
- /* @__PURE__ */ o(W, { textStyle: "label/S/medium", children: f.label }),
1885
- /* @__PURE__ */ o(pe, { size: "2xs", variant: "ghost", onClick: () => r(f.id), children: "Clear" })
1942
+ e[25] !== f || e[26] !== r || e[27] !== t || e[28] !== i || e[29] !== s ? (T = f ? /* @__PURE__ */ y(dt, { children: [
1943
+ /* @__PURE__ */ y(H, { justifyContent: "space-between", children: [
1944
+ /* @__PURE__ */ o(z, { textStyle: "label/S/medium", children: f.label }),
1945
+ /* @__PURE__ */ o(ge, { size: "2xs", variant: "ghost", onClick: () => i(f.id), children: "Clear" })
1886
1946
  ] }),
1887
- /* @__PURE__ */ o(B, { gap: "2xs", children: f.options.map((_) => {
1888
- const L = (t[f.id] ?? []).includes(_.value), $ = i[f.id]?.[_.value] ?? 0;
1889
- return /* @__PURE__ */ o(V, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
1947
+ /* @__PURE__ */ o(F, { gap: "2xs", children: f.options.map((D) => {
1948
+ const C = (t[f.id] ?? []).includes(D.value), $ = r[f.id]?.[D.value] ?? 0;
1949
+ return /* @__PURE__ */ o(G, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
1890
1950
  bg: "bg.hover"
1891
- }, children: /* @__PURE__ */ o(Zn, { checked: L, onCheckedChange: () => s(f.id, _.value), children: /* @__PURE__ */ x(j, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
1892
- /* @__PURE__ */ o(W, { textStyle: "label/S/regular", children: _.label }),
1893
- /* @__PURE__ */ o(W, { textStyle: "label/XS/regular", color: "fg.muted", children: $ })
1894
- ] }) }) }, _.value);
1951
+ }, children: /* @__PURE__ */ o(Il, { checked: C, onCheckedChange: () => s(f.id, D.value), children: /* @__PURE__ */ y(H, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
1952
+ /* @__PURE__ */ o(z, { textStyle: "label/S/regular", children: D.label }),
1953
+ /* @__PURE__ */ o(z, { textStyle: "label/XS/regular", color: "fg.muted", children: $ })
1954
+ ] }) }) }, D.value);
1895
1955
  }) })
1896
- ] }) : null, e[25] = f, e[26] = i, e[27] = t, e[28] = r, e[29] = s, e[30] = T) : T = e[30];
1897
- let b;
1898
- e[31] !== T ? (b = /* @__PURE__ */ o(B, { flex: "1", p: "sm", gap: "sm", children: T }), e[31] = T, e[32] = b) : b = e[32];
1956
+ ] }) : null, e[25] = f, e[26] = r, e[27] = t, e[28] = i, e[29] = s, e[30] = T) : T = e[30];
1957
+ let L;
1958
+ e[31] !== T ? (L = /* @__PURE__ */ o(F, { flex: "1", p: "sm", gap: "sm", children: T }), e[31] = T, e[32] = L) : L = e[32];
1959
+ let _;
1960
+ e[33] !== k || e[34] !== L ? (_ = /* @__PURE__ */ o(Be, { children: /* @__PURE__ */ o(Ie.Positioner, { children: /* @__PURE__ */ o(Ie.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ y(H, { align: "stretch", gap: "0", minH: "320px", children: [
1961
+ k,
1962
+ L
1963
+ ] }) }) }) }), e[33] = k, e[34] = L, e[35] = _) : _ = e[35];
1899
1964
  let P;
1900
- e[33] !== D || e[34] !== b ? (P = /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(we.Positioner, { children: /* @__PURE__ */ o(we.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ x(j, { align: "stretch", gap: "0", minH: "320px", children: [
1901
- D,
1902
- b
1903
- ] }) }) }) }), e[33] = D, e[34] = b, e[35] = P) : P = e[35];
1904
- let w;
1905
- return e[36] !== P || e[37] !== C ? (w = /* @__PURE__ */ x(we.Root, { positioning: h, children: [
1906
- C,
1907
- P
1908
- ] }), e[36] = P, e[37] = C, e[38] = w) : w = e[38], w;
1909
- }, eo = {
1965
+ return e[36] !== _ || e[37] !== w ? (P = /* @__PURE__ */ y(Ie.Root, { positioning: g, children: [
1966
+ w,
1967
+ _
1968
+ ] }), e[36] = _, e[37] = w, e[38] = P) : P = e[38], P;
1969
+ }, Lo = {
1910
1970
  amber: "yellow"
1911
- }, to = /* @__PURE__ */ new Set(["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"]), no = (l) => l === "current_branch" ? On : Mn, lo = (l) => {
1971
+ }, $o = /* @__PURE__ */ new Set(["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"]), Ro = (l) => l === "current_branch" ? Xn : Un, Wo = (l) => {
1912
1972
  if (l.startsWith("#") || l.startsWith("rgb") || l.startsWith("hsl") || l.startsWith("var("))
1913
1973
  return l;
1914
- const e = eo[l] ?? l;
1915
- return to.has(e) ? `var(--chakra-colors-${e}-500)` : e;
1916
- }, oo = (l) => l ? l.description ? `${l.name}: ${l.description}` : l.name : null, Ht = (l, e) => {
1974
+ const e = Lo[l] ?? l;
1975
+ return $o.has(e) ? `var(--chakra-colors-${e}-500)` : e;
1976
+ }, zo = (l) => l ? l.description ? `${l.name}: ${l.description}` : l.name : null, Kt = (l, e) => {
1917
1977
  l.stopPropagation(), e?.();
1918
- }, io = (l, e) => {
1978
+ }, Eo = (l, e) => {
1919
1979
  l.stopPropagation(), e?.();
1920
- }, ro = (l) => {
1980
+ }, Oo = (l) => {
1921
1981
  const e = R(9), {
1922
1982
  sessionStatus: n,
1923
1983
  onSessionIndicatorClick: t
1924
1984
  } = l;
1925
1985
  if (!n)
1926
1986
  return null;
1927
- const i = t ? "Open latest session" : "Latest session status";
1987
+ const r = t ? "Open latest session" : "Latest session status";
1928
1988
  let s;
1929
- e[0] !== t ? (s = t ? (c) => Ht(c, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
1930
- let r;
1931
- e[2] !== n || e[3] !== i || e[4] !== s ? (r = /* @__PURE__ */ o(Tl, { status: n, boxSize: "12px", ariaLabel: i, cursor: "pointer", onClick: s }), e[2] = n, e[3] = i, e[4] = s, e[5] = r) : r = e[5];
1989
+ e[0] !== t ? (s = t ? (c) => Kt(c, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
1990
+ let i;
1991
+ e[2] !== n || e[3] !== r || e[4] !== s ? (i = /* @__PURE__ */ o(eo, { status: n, boxSize: "12px", ariaLabel: r, cursor: "pointer", onClick: s }), e[2] = n, e[3] = r, e[4] = s, e[5] = i) : i = e[5];
1932
1992
  let a;
1933
- return e[6] !== i || e[7] !== r ? (a = /* @__PURE__ */ o(xe, { content: i, children: r }), e[6] = i, e[7] = r, e[8] = a) : a = e[8], a;
1934
- }, so = (l) => {
1993
+ return e[6] !== r || e[7] !== i ? (a = /* @__PURE__ */ o(Se, { content: r, children: i }), e[6] = r, e[7] = i, e[8] = a) : a = e[8], a;
1994
+ }, Ao = (l) => {
1935
1995
  const e = R(13), {
1936
1996
  workspaceType: n,
1937
1997
  initializing: t,
1938
- shorthand: i
1998
+ shorthand: r
1939
1999
  } = l;
1940
2000
  let s;
1941
- e[0] !== n ? (s = no(n), e[0] = n, e[1] = s) : s = e[1];
1942
- const r = s, a = n === "worktree" ? "Worktree" : "Current branch";
2001
+ e[0] !== n ? (s = Ro(n), e[0] = n, e[1] = s) : s = e[1];
2002
+ const i = s, a = n === "worktree" ? "Worktree" : "Current branch";
1943
2003
  let c;
1944
- e[2] !== r || e[3] !== a ? (c = /* @__PURE__ */ o(ae, { as: r, boxSize: "12px", "aria-label": a }), e[2] = r, e[3] = a, e[4] = c) : c = e[4];
2004
+ e[2] !== i || e[3] !== a ? (c = /* @__PURE__ */ o(ee, { as: i, boxSize: "12px", "aria-label": a }), e[2] = i, e[3] = a, e[4] = c) : c = e[4];
1945
2005
  let d;
1946
- e[5] !== t ? (d = t ? /* @__PURE__ */ o(Tt, { size: "xs", color: "fg.muted" }) : null, e[5] = t, e[6] = d) : d = e[6];
2006
+ e[5] !== t ? (d = t ? /* @__PURE__ */ o(Et, { size: "xs", color: "fg.muted" }) : null, e[5] = t, e[6] = d) : d = e[6];
1947
2007
  let u;
1948
- e[7] !== i ? (u = i ? /* @__PURE__ */ o(W, { as: "span", textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: i }) : null, e[7] = i, e[8] = u) : u = e[8];
2008
+ e[7] !== r ? (u = r ? /* @__PURE__ */ o(z, { as: "span", textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: r }) : null, e[7] = r, e[8] = u) : u = e[8];
1949
2009
  let f;
1950
- return e[9] !== c || e[10] !== d || e[11] !== u ? (f = /* @__PURE__ */ x(j, { as: "span", gap: "0", alignItems: "center", color: "fg.muted", flexShrink: 0, children: [
2010
+ return e[9] !== c || e[10] !== d || e[11] !== u ? (f = /* @__PURE__ */ y(H, { as: "span", gap: "0", alignItems: "center", color: "fg.muted", flexShrink: 0, children: [
1951
2011
  c,
1952
2012
  d,
1953
2013
  u
1954
2014
  ] }), e[9] = c, e[10] = d, e[11] = u, e[12] = f) : f = e[12], f;
1955
- }, ao = (l) => {
2015
+ }, Mo = (l) => {
1956
2016
  const e = R(10), {
1957
2017
  attemptStatus: n
1958
2018
  } = l;
1959
2019
  if (!n)
1960
2020
  return null;
1961
2021
  let t;
1962
- e[0] !== n ? (t = oo(n), e[0] = n, e[1] = t) : t = e[1];
1963
- let i;
1964
- e[2] !== n.color ? (i = lo(n.color), e[2] = n.color, e[3] = i) : i = e[3];
1965
- const s = `Attempt status ${n.name}`;
2022
+ e[0] !== n ? (t = zo(n), e[0] = n, e[1] = t) : t = e[1];
1966
2023
  let r;
1967
- e[4] !== i || e[5] !== s ? (r = /* @__PURE__ */ o(V, { as: "span", boxSize: "8px", borderRadius: "full", backgroundColor: i, flexShrink: 0, "aria-label": s, "data-testid": "workspace-attempt-status" }), e[4] = i, e[5] = s, e[6] = r) : r = e[6];
2024
+ e[2] !== n.color ? (r = Wo(n.color), e[2] = n.color, e[3] = r) : r = e[3];
2025
+ const s = `Attempt status ${n.name}`;
2026
+ let i;
2027
+ e[4] !== r || e[5] !== s ? (i = /* @__PURE__ */ o(G, { as: "span", boxSize: "8px", borderRadius: "full", backgroundColor: r, flexShrink: 0, "aria-label": s, "data-testid": "workspace-attempt-status" }), e[4] = r, e[5] = s, e[6] = i) : i = e[6];
1968
2028
  let a;
1969
- return e[7] !== t || e[8] !== r ? (a = /* @__PURE__ */ o(xe, { content: t, children: r }), e[7] = t, e[8] = r, e[9] = a) : a = e[9], a;
1970
- }, co = (l) => {
2029
+ return e[7] !== t || e[8] !== i ? (a = /* @__PURE__ */ o(Se, { content: t, children: i }), e[7] = t, e[8] = i, e[9] = a) : a = e[9], a;
2030
+ }, Bo = (l) => {
1971
2031
  const e = R(3), {
1972
2032
  diffAdditions: n,
1973
2033
  diffDeletions: t
1974
2034
  } = l;
1975
2035
  if (typeof n != "number" || typeof t != "number")
1976
2036
  return null;
1977
- let i;
1978
- return e[0] !== n || e[1] !== t ? (i = /* @__PURE__ */ o(_t, { additions: n, deletions: t, variant: "ghost", size: "small", fileName: void 0 }), e[0] = n, e[1] = t, e[2] = i) : i = e[2], i;
1979
- }, uo = (l) => {
2037
+ let r;
2038
+ return e[0] !== n || e[1] !== t ? (r = /* @__PURE__ */ o(At, { additions: n, deletions: t, variant: "ghost", size: "small", fileName: void 0 }), e[0] = n, e[1] = t, e[2] = r) : r = e[2], r;
2039
+ }, No = (l) => {
1980
2040
  const e = R(5), {
1981
2041
  hasMultipleWorkspaces: n,
1982
2042
  onDropdownClick: t
1983
2043
  } = l;
1984
2044
  if (!n)
1985
2045
  return null;
1986
- const i = t ? "pointer" : "default";
2046
+ const r = t ? "pointer" : "default";
1987
2047
  let s;
1988
- e[0] !== t ? (s = t ? (a) => Ht(a, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
1989
- let r;
1990
- return e[2] !== i || e[3] !== s ? (r = /* @__PURE__ */ o(ae, { as: Fe, boxSize: "12px", color: "fg.muted", cursor: i, "aria-label": "Workspace selector", onClick: s }), e[2] = i, e[3] = s, e[4] = r) : r = e[4], r;
1991
- }, fo = (l) => {
2048
+ e[0] !== t ? (s = t ? (a) => Kt(a, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
2049
+ let i;
2050
+ return e[2] !== r || e[3] !== s ? (i = /* @__PURE__ */ o(ee, { as: Xe, boxSize: "12px", color: "fg.muted", cursor: r, "aria-label": "Workspace selector", onClick: s }), e[2] = r, e[3] = s, e[4] = i) : i = e[4], i;
2051
+ }, Go = (l) => {
1992
2052
  const e = R(26), {
1993
2053
  workspaceType: n,
1994
2054
  initializing: t,
1995
- shorthand: i,
2055
+ shorthand: r,
1996
2056
  attemptStatus: s,
1997
- sessionStatus: r,
2057
+ sessionStatus: i,
1998
2058
  showLeadingSessionIndicator: a,
1999
2059
  diffAdditions: c,
2000
2060
  diffDeletions: d,
2001
2061
  hasMultipleWorkspaces: u,
2002
2062
  onClick: f,
2003
2063
  onDropdownClick: p,
2004
- onSessionIndicatorClick: h
2005
- } = l, g = t === void 0 ? !1 : t, S = a === void 0 ? !0 : a, m = u === void 0 ? !1 : u;
2006
- let v;
2007
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
2064
+ onSessionIndicatorClick: g
2065
+ } = l, h = t === void 0 ? !1 : t, b = a === void 0 ? !0 : a, m = u === void 0 ? !1 : u;
2066
+ let S;
2067
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
2008
2068
  backgroundColor: "bg.hover"
2009
- }, e[0] = v) : v = e[0];
2010
- let C;
2011
- e[1] !== f ? (C = f ? (P) => io(P, f) : void 0, e[1] = f, e[2] = C) : C = e[2];
2012
- let k;
2013
- e[3] !== h || e[4] !== r || e[5] !== S ? (k = S ? /* @__PURE__ */ o(ro, { sessionStatus: r, onSessionIndicatorClick: h }) : null, e[3] = h, e[4] = r, e[5] = S, e[6] = k) : k = e[6];
2014
- let y;
2015
- e[7] !== g || e[8] !== i || e[9] !== n ? (y = /* @__PURE__ */ o(so, { workspaceType: n, initializing: g, shorthand: i }), e[7] = g, e[8] = i, e[9] = n, e[10] = y) : y = e[10];
2069
+ }, e[0] = S) : S = e[0];
2070
+ let w;
2071
+ e[1] !== f ? (w = f ? (_) => Eo(_, f) : void 0, e[1] = f, e[2] = w) : w = e[2];
2016
2072
  let I;
2017
- e[11] !== s ? (I = /* @__PURE__ */ o(ao, { attemptStatus: s }), e[11] = s, e[12] = I) : I = e[12];
2018
- let D;
2019
- e[13] !== c || e[14] !== d ? (D = /* @__PURE__ */ o(co, { diffAdditions: c, diffDeletions: d }), e[13] = c, e[14] = d, e[15] = D) : D = e[15];
2073
+ e[3] !== g || e[4] !== i || e[5] !== b ? (I = b ? /* @__PURE__ */ o(Oo, { sessionStatus: i, onSessionIndicatorClick: g }) : null, e[3] = g, e[4] = i, e[5] = b, e[6] = I) : I = e[6];
2074
+ let x;
2075
+ e[7] !== h || e[8] !== r || e[9] !== n ? (x = /* @__PURE__ */ o(Ao, { workspaceType: n, initializing: h, shorthand: r }), e[7] = h, e[8] = r, e[9] = n, e[10] = x) : x = e[10];
2076
+ let v;
2077
+ e[11] !== s ? (v = /* @__PURE__ */ o(Mo, { attemptStatus: s }), e[11] = s, e[12] = v) : v = e[12];
2078
+ let k;
2079
+ e[13] !== c || e[14] !== d ? (k = /* @__PURE__ */ o(Bo, { diffAdditions: c, diffDeletions: d }), e[13] = c, e[14] = d, e[15] = k) : k = e[15];
2020
2080
  let T;
2021
- e[16] !== m || e[17] !== p ? (T = /* @__PURE__ */ o(uo, { hasMultipleWorkspaces: m, onDropdownClick: p }), e[16] = m, e[17] = p, e[18] = T) : T = e[18];
2022
- let b;
2023
- return e[19] !== C || e[20] !== k || e[21] !== y || e[22] !== I || e[23] !== D || e[24] !== T ? (b = /* @__PURE__ */ x(j, { as: "span", display: "inline-flex", gap: "2xs", alignItems: "center", minW: "0", px: "2px", py: "1px", borderRadius: "xs", cursor: "pointer", transition: "background-color 0.2s ease-in-out", _hover: v, onClick: C, "data-testid": "workspace-badge", children: [
2024
- k,
2025
- y,
2081
+ e[16] !== m || e[17] !== p ? (T = /* @__PURE__ */ o(No, { hasMultipleWorkspaces: m, onDropdownClick: p }), e[16] = m, e[17] = p, e[18] = T) : T = e[18];
2082
+ let L;
2083
+ return e[19] !== w || e[20] !== I || e[21] !== x || e[22] !== v || e[23] !== k || e[24] !== T ? (L = /* @__PURE__ */ y(H, { as: "span", display: "inline-flex", gap: "2xs", alignItems: "center", minW: "0", px: "2px", py: "1px", borderRadius: "xs", cursor: "pointer", transition: "background-color 0.2s ease-in-out", _hover: S, onClick: w, "data-testid": "workspace-badge", children: [
2026
2084
  I,
2027
- D,
2085
+ x,
2086
+ v,
2087
+ k,
2028
2088
  T
2029
- ] }), e[19] = C, e[20] = k, e[21] = y, e[22] = I, e[23] = D, e[24] = T, e[25] = b) : b = e[25], b;
2030
- }, Ft = (l) => {
2031
- const e = R(29), {
2089
+ ] }), e[19] = w, e[20] = I, e[21] = x, e[22] = v, e[23] = k, e[24] = T, e[25] = L) : L = e[25], L;
2090
+ }, Ho = {
2091
+ circle: al,
2092
+ bug: sl,
2093
+ sparkles: rl,
2094
+ "book-open": il,
2095
+ wrench: ol,
2096
+ gauge: ll,
2097
+ "alert-triangle": nl,
2098
+ star: tl,
2099
+ flag: el,
2100
+ flame: Zn,
2101
+ lightbulb: Qn,
2102
+ shield: Jn,
2103
+ eye: qn,
2104
+ clock: Kn,
2105
+ "check-circle": Yn
2106
+ }, kt = (l) => l ? Ho[l] ?? null : null, qt = (l) => {
2107
+ const e = R(37), {
2108
+ value: n,
2109
+ label: t,
2110
+ color: r,
2111
+ options: s,
2112
+ onValueChange: i
2113
+ } = l, a = r === void 0 ? "purple" : r;
2114
+ let c, d;
2115
+ e[0] !== s || e[1] !== n ? (c = n ? s.find((x) => x.value === n) : void 0, d = kt(c?.icon), e[0] = s, e[1] = n, e[2] = c, e[3] = d) : (c = e[2], d = e[3]);
2116
+ const u = d, f = n ? c?.label ?? n : t ?? "—";
2117
+ if (!i || s.length === 0) {
2118
+ let x;
2119
+ e[4] !== u ? (x = u ? /* @__PURE__ */ o(ee, { as: u, boxSize: "12px" }) : null, e[4] = u, e[5] = x) : x = e[5];
2120
+ let v;
2121
+ e[6] !== f ? (v = /* @__PURE__ */ o(z, { as: "span", children: f }), e[6] = f, e[7] = v) : v = e[7];
2122
+ let k;
2123
+ e[8] !== x || e[9] !== v ? (k = /* @__PURE__ */ y(H, { as: "span", gap: "1", alignItems: "center", children: [
2124
+ x,
2125
+ v
2126
+ ] }), e[8] = x, e[9] = v, e[10] = k) : k = e[10];
2127
+ let T;
2128
+ return e[11] !== a || e[12] !== k ? (T = /* @__PURE__ */ o(ye, { variant: "subtle", colorPalette: a, textStyle: "label/XS/medium", children: k }), e[11] = a, e[12] = k, e[13] = T) : T = e[13], T;
2129
+ }
2130
+ let p;
2131
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
2132
+ opacity: 0.8
2133
+ }, e[14] = p) : p = e[14];
2134
+ let g;
2135
+ e[15] !== u ? (g = u ? /* @__PURE__ */ o(ee, { as: u, boxSize: "12px" }) : null, e[15] = u, e[16] = g) : g = e[16];
2136
+ let h;
2137
+ e[17] !== f ? (h = /* @__PURE__ */ o(z, { as: "span", children: f }), e[17] = f, e[18] = h) : h = e[18];
2138
+ let b;
2139
+ e[19] !== g || e[20] !== h ? (b = /* @__PURE__ */ y(H, { as: "span", gap: "1", alignItems: "center", children: [
2140
+ g,
2141
+ h
2142
+ ] }), e[19] = g, e[20] = h, e[21] = b) : b = e[21];
2143
+ let m;
2144
+ e[22] !== a || e[23] !== b ? (m = /* @__PURE__ */ o(X.Trigger, { asChild: !0, children: /* @__PURE__ */ o(ye, { variant: "subtle", colorPalette: a, textStyle: "label/XS/medium", cursor: "pointer", _hover: p, onClick: Fo, children: b }) }), e[22] = a, e[23] = b, e[24] = m) : m = e[24];
2145
+ let S;
2146
+ if (e[25] !== i || e[26] !== s || e[27] !== n) {
2147
+ let x;
2148
+ e[29] !== i || e[30] !== n ? (x = (v) => {
2149
+ const k = kt(v.icon);
2150
+ return /* @__PURE__ */ y(X.Item, { value: v.value, onClick: () => i(v.value), children: [
2151
+ k ? /* @__PURE__ */ o(ee, { as: k, boxSize: "14px", color: "fg.muted" }) : null,
2152
+ /* @__PURE__ */ o(z, { textStyle: "label/S/regular", flex: "1", children: v.label }),
2153
+ v.value === n && /* @__PURE__ */ o(ee, { as: cl, boxSize: "14px", color: "fg.muted" })
2154
+ ] }, v.value);
2155
+ }, e[29] = i, e[30] = n, e[31] = x) : x = e[31], S = s.map(x), e[25] = i, e[26] = s, e[27] = n, e[28] = S;
2156
+ } else
2157
+ S = e[28];
2158
+ let w;
2159
+ e[32] !== S ? (w = /* @__PURE__ */ o(X.Positioner, { children: /* @__PURE__ */ o(X.Content, { minW: "160px", bg: "bg", onClick: Vo, children: S }) }), e[32] = S, e[33] = w) : w = e[33];
2160
+ let I;
2161
+ return e[34] !== m || e[35] !== w ? (I = /* @__PURE__ */ y(X.Root, { children: [
2162
+ m,
2163
+ w
2164
+ ] }), e[34] = m, e[35] = w, e[36] = I) : I = e[36], I;
2165
+ };
2166
+ function Fo(l) {
2167
+ return l.stopPropagation();
2168
+ }
2169
+ function Vo(l) {
2170
+ return l.stopPropagation();
2171
+ }
2172
+ const Jt = (l) => {
2173
+ const e = R(34), {
2032
2174
  ticketId: n,
2033
2175
  parentPath: t,
2034
- title: i,
2176
+ title: r,
2035
2177
  badges: s,
2036
- workspaceBadge: r,
2037
- isSelected: a,
2038
- draggable: c,
2039
- onDragStart: d,
2040
- onDragEnd: u,
2041
- onClick: f
2178
+ tagBadges: i,
2179
+ workspaceBadge: a,
2180
+ isSelected: c,
2181
+ draggable: d,
2182
+ onDragStart: u,
2183
+ onDragEnd: f,
2184
+ onClick: p,
2185
+ onTagChange: g
2042
2186
  } = l;
2043
- let p;
2044
- e[0] !== t ? (p = t === void 0 ? [] : t, e[0] = t, e[1] = p) : p = e[1];
2045
- const h = p;
2046
- let g;
2047
- e[2] !== s ? (g = s === void 0 ? [] : s, e[2] = s, e[3] = g) : g = e[3];
2048
- const S = g, m = a === void 0 ? !1 : a;
2049
- let v;
2050
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
2187
+ let h;
2188
+ e[0] !== t ? (h = t === void 0 ? [] : t, e[0] = t, e[1] = h) : h = e[1];
2189
+ const b = h;
2190
+ let m;
2191
+ e[2] !== s ? (m = s === void 0 ? [] : s, e[2] = s, e[3] = m) : m = e[3];
2192
+ const S = m;
2193
+ let w;
2194
+ e[4] !== i ? (w = i === void 0 ? [] : i, e[4] = i, e[5] = w) : w = e[5];
2195
+ const I = w, x = c === void 0 ? !1 : c, v = S.length > 0 || I.length > 0;
2196
+ let k;
2197
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
2051
2198
  borderColor: "border.blue",
2052
2199
  boxShadow: "mid"
2053
- }, e[4] = v) : v = e[4];
2054
- const C = c ? "grab" : f ? "pointer" : "default", k = m ? "true" : void 0;
2055
- let y;
2056
- e[5] !== h ? (y = h.length > 0 && /* @__PURE__ */ x(W, { as: "span", color: "subtle", children: [
2057
- h.join(" / "),
2200
+ }, e[6] = k) : k = e[6];
2201
+ const T = d ? "grab" : p ? "pointer" : "default", L = x ? "true" : void 0;
2202
+ let _;
2203
+ e[7] !== b ? (_ = b.length > 0 && /* @__PURE__ */ y(z, { as: "span", color: "subtle", children: [
2204
+ b.join(" / "),
2058
2205
  " /",
2059
2206
  " "
2060
- ] }), e[5] = h, e[6] = y) : y = e[6];
2061
- let I;
2062
- e[7] !== y || e[8] !== n ? (I = /* @__PURE__ */ x(W, { textStyle: "label/S/regular", flexShrink: 0, children: [
2063
- y,
2207
+ ] }), e[7] = b, e[8] = _) : _ = e[8];
2208
+ let P;
2209
+ e[9] !== _ || e[10] !== n ? (P = /* @__PURE__ */ y(z, { textStyle: "label/S/regular", flexShrink: 0, children: [
2210
+ _,
2064
2211
  n
2065
- ] }), e[7] = y, e[8] = n, e[9] = I) : I = e[9];
2212
+ ] }), e[9] = _, e[10] = n, e[11] = P) : P = e[11];
2066
2213
  let D;
2067
- e[10] !== r ? (D = r ? /* @__PURE__ */ o(fo, { ...r }) : null, e[10] = r, e[11] = D) : D = e[11];
2068
- let T;
2069
- e[12] !== D || e[13] !== I ? (T = /* @__PURE__ */ o(j, { gap: "2xs", flexWrap: "wrap", alignItems: "center", children: /* @__PURE__ */ x(j, { gap: "2xs", flexShrink: 0, children: [
2070
- I,
2214
+ e[12] !== a ? (D = a ? /* @__PURE__ */ o(Go, { ...a }) : null, e[12] = a, e[13] = D) : D = e[13];
2215
+ let C;
2216
+ e[14] !== P || e[15] !== D ? (C = /* @__PURE__ */ o(H, { gap: "2xs", flexWrap: "wrap", alignItems: "center", children: /* @__PURE__ */ y(H, { gap: "2xs", flexShrink: 0, children: [
2217
+ P,
2071
2218
  D
2072
- ] }) }), e[12] = D, e[13] = I, e[14] = T) : T = e[14];
2073
- let b;
2074
- e[15] !== i ? (b = /* @__PURE__ */ o(j, { align: "start", gap: "2xs", flexWrap: "wrap", minW: "0", children: /* @__PURE__ */ o(W, { textStyle: "label/S/regular", flex: "1", minW: "0", overflowWrap: "anywhere", children: i }) }), e[15] = i, e[16] = b) : b = e[16];
2075
- let P;
2076
- e[17] !== S ? (P = S.length > 0 && /* @__PURE__ */ o(Dt, { gap: "2xs", children: S.map(po) }), e[17] = S, e[18] = P) : P = e[18];
2077
- let w;
2078
- return e[19] !== c || e[20] !== f || e[21] !== u || e[22] !== d || e[23] !== T || e[24] !== b || e[25] !== P || e[26] !== C || e[27] !== k ? (w = /* @__PURE__ */ x(B, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "100%", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: v, cursor: C, draggable: c, onDragStart: d, onDragEnd: u, onClick: f, "data-selected": k, "data-testid": "ticket-card", children: [
2079
- T,
2080
- b,
2081
- P
2082
- ] }), e[19] = c, e[20] = f, e[21] = u, e[22] = d, e[23] = T, e[24] = b, e[25] = P, e[26] = C, e[27] = k, e[28] = w) : w = e[28], w;
2219
+ ] }) }), e[14] = P, e[15] = D, e[16] = C) : C = e[16];
2220
+ let $;
2221
+ e[17] !== r ? ($ = /* @__PURE__ */ o(H, { align: "start", gap: "2xs", flexWrap: "wrap", minW: "0", children: /* @__PURE__ */ o(z, { textStyle: "label/S/regular", flex: "1", minW: "0", overflowWrap: "anywhere", children: r }) }), e[17] = r, e[18] = $) : $ = e[18];
2222
+ let W;
2223
+ e[19] !== S || e[20] !== v || e[21] !== g || e[22] !== I ? (W = v && /* @__PURE__ */ y(Ot, { gap: "2xs", children: [
2224
+ S.map(jo),
2225
+ I.map((O) => /* @__PURE__ */ o(qt, { value: O.value, label: O.label, color: O.value ? O.color : "gray", options: O.options, onValueChange: g ? (B) => g(O.tagName, B) : void 0 }, O.tagName))
2226
+ ] }), e[19] = S, e[20] = v, e[21] = g, e[22] = I, e[23] = W) : W = e[23];
2227
+ let E;
2228
+ return e[24] !== d || e[25] !== p || e[26] !== f || e[27] !== u || e[28] !== C || e[29] !== $ || e[30] !== W || e[31] !== T || e[32] !== L ? (E = /* @__PURE__ */ y(F, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "100%", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: k, cursor: T, draggable: d, onDragStart: u, onDragEnd: f, onClick: p, "data-selected": L, "data-testid": "ticket-card", children: [
2229
+ C,
2230
+ $,
2231
+ W
2232
+ ] }), e[24] = d, e[25] = p, e[26] = f, e[27] = u, e[28] = C, e[29] = $, e[30] = W, e[31] = T, e[32] = L, e[33] = E) : E = e[33], E;
2083
2233
  };
2084
- function po(l) {
2085
- return /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2234
+ function jo(l) {
2235
+ return /* @__PURE__ */ o(ye, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2086
2236
  }
2087
- const ho = (l) => {
2237
+ const Xo = (l) => {
2088
2238
  const e = R(27), {
2089
2239
  columns: n,
2090
2240
  selectedItemId: t,
2091
- onMoveItem: i,
2241
+ onMoveItem: r,
2092
2242
  onMoveToGroup: s,
2093
- onCreateStart: r,
2243
+ onCreateStart: i,
2094
2244
  onColumnAction: a
2095
- } = l, c = t === void 0 ? null : t, [d, u] = ge(null), [f, p] = ge(null), h = bo;
2096
- let g;
2097
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = () => {
2245
+ } = l, c = t === void 0 ? null : t, [d, u] = me(null), [f, p] = me(null), g = Ko;
2246
+ let h;
2247
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
2098
2248
  u(null), p(null);
2099
- }, e[0] = g) : g = e[0];
2100
- const S = g;
2249
+ }, e[0] = h) : h = e[0];
2250
+ const b = h;
2101
2251
  let m;
2102
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (P) => (w) => {
2103
- w.preventDefault(), w.dataTransfer.dropEffect = "move", u(P);
2252
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (_) => (P) => {
2253
+ P.preventDefault(), P.dataTransfer.dropEffect = "move", u(_);
2104
2254
  }, e[1] = m) : m = e[1];
2105
- const v = m;
2106
- let C;
2107
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (P) => {
2108
- P.currentTarget.contains(P.relatedTarget) || u(null);
2109
- }, e[2] = C) : C = e[2];
2110
- const k = C;
2111
- let y;
2112
- e[3] !== i ? (y = (P) => (w) => {
2113
- w.preventDefault(), u(null);
2114
- const _ = w.dataTransfer.getData("text/plain");
2115
- _ && i?.(_, P);
2116
- }, e[3] = i, e[4] = y) : y = e[4];
2117
- const I = y;
2118
- let D;
2119
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
2255
+ const S = m;
2256
+ let w;
2257
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (_) => {
2258
+ _.currentTarget.contains(_.relatedTarget) || u(null);
2259
+ }, e[2] = w) : w = e[2];
2260
+ const I = w;
2261
+ let x;
2262
+ e[3] !== r ? (x = (_) => (P) => {
2263
+ P.preventDefault(), u(null);
2264
+ const D = P.dataTransfer.getData("text/plain");
2265
+ D && r?.(D, _);
2266
+ }, e[3] = r, e[4] = x) : x = e[4];
2267
+ const v = x;
2268
+ let k;
2269
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
2120
2270
  display: "flex",
2121
2271
  alignItems: "stretch",
2122
2272
  gap: "0",
2123
2273
  pb: "2xs",
2124
2274
  minH: "100%"
2125
- }, e[5] = D) : D = e[5];
2275
+ }, e[5] = k) : k = e[5];
2126
2276
  let T;
2127
- if (e[6] !== d || e[7] !== f || e[8] !== n || e[9] !== I || e[10] !== a || e[11] !== r || e[12] !== i || e[13] !== s || e[14] !== c) {
2128
- let P;
2129
- e[16] !== d || e[17] !== f || e[18] !== I || e[19] !== a || e[20] !== r || e[21] !== i || e[22] !== s || e[23] !== c ? (P = (w) => /* @__PURE__ */ x(B, { "data-testid": `board-column-${w.id}`, gap: "xs", _notFirst: {
2277
+ if (e[6] !== d || e[7] !== f || e[8] !== n || e[9] !== v || e[10] !== a || e[11] !== i || e[12] !== r || e[13] !== s || e[14] !== c) {
2278
+ let _;
2279
+ e[16] !== d || e[17] !== f || e[18] !== v || e[19] !== a || e[20] !== i || e[21] !== r || e[22] !== s || e[23] !== c ? (_ = (P) => /* @__PURE__ */ y(F, { "data-testid": `board-column-${P.id}`, gap: "xs", _notFirst: {
2130
2280
  borderLeft: "1px solid",
2131
2281
  borderColor: "border.muted"
2132
- }, background: d === w.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: w.canDragIn ? v(w.id) : void 0, onDragLeave: w.canDragIn ? k : void 0, onDrop: w.canDragIn ? I(w.id) : void 0, children: [
2133
- /* @__PURE__ */ o(mo, { column: w, onCreateStart: r, onColumnAction: a }),
2282
+ }, background: d === P.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: P.canDragIn ? S(P.id) : void 0, onDragLeave: P.canDragIn ? I : void 0, onDrop: P.canDragIn ? v(P.id) : void 0, children: [
2283
+ /* @__PURE__ */ o(Yo, { column: P, onCreateStart: i, onColumnAction: a }),
2134
2284
  /* @__PURE__ */ o(ke, { flex: "1", minH: "0", verticalScrollbarProps: {
2135
2285
  margin: "0"
2136
2286
  }, contentProps: {
2137
2287
  spaceY: "sm",
2138
2288
  ps: "xs",
2139
2289
  pe: "xs"
2140
- }, children: w.groups && w.groups.length > 0 ? w.groups.map((_) => {
2141
- const L = `${w.id}::${_.key}`;
2142
- return /* @__PURE__ */ o(go, { group: _, selectedItemId: c, canDragIn: w.canDragIn, canDragOut: w.canDragOut, isDropTarget: f === L, onDragStart: h, onDragEnd: S, onGroupDragOver: ($) => {
2143
- $.preventDefault(), $.stopPropagation(), $.dataTransfer.dropEffect = "move", p(L), u(null);
2290
+ }, children: P.groups && P.groups.length > 0 ? P.groups.map((D) => {
2291
+ const C = `${P.id}::${D.key}`;
2292
+ return /* @__PURE__ */ o(Uo, { columnId: P.id, group: D, selectedItemId: c, canDragIn: P.canDragIn, canDragOut: P.canDragOut, isDropTarget: f === C, onDragStart: g, onDragEnd: b, onGroupDragOver: ($) => {
2293
+ $.preventDefault(), $.stopPropagation(), $.dataTransfer.dropEffect = "move", p(C), u(null);
2144
2294
  }, onGroupDragLeave: ($) => {
2145
2295
  $.currentTarget.contains($.relatedTarget) || p(null);
2146
2296
  }, onGroupDrop: ($) => {
2147
2297
  $.preventDefault(), $.stopPropagation(), p(null), u(null);
2148
- const z = $.dataTransfer.getData("text/plain");
2149
- z && (i?.(z, w.id), s?.(z, _.key));
2150
- } }, _.key);
2151
- }) : w.items.map((_) => /* @__PURE__ */ o(Ft, { ..._.cardProps, isSelected: _.id === c, draggable: w.canDragOut, onDragStart: w.canDragOut ? h(_.id) : void 0, onDragEnd: w.canDragOut ? S : void 0 }, _.id)) })
2152
- ] }, w.id), e[16] = d, e[17] = f, e[18] = I, e[19] = a, e[20] = r, e[21] = i, e[22] = s, e[23] = c, e[24] = P) : P = e[24], T = n.map(P), e[6] = d, e[7] = f, e[8] = n, e[9] = I, e[10] = a, e[11] = r, e[12] = i, e[13] = s, e[14] = c, e[15] = T;
2298
+ const W = $.dataTransfer.getData("text/plain");
2299
+ W && (r?.(W, P.id), s?.(W, D.key));
2300
+ } }, D.key);
2301
+ }) : P.items.map((D) => /* @__PURE__ */ o(et, { actions: D.contextMenuActions ?? [], children: /* @__PURE__ */ o(G, { children: /* @__PURE__ */ o(Jt, { ...D.cardProps, isSelected: D.id === c, draggable: P.canDragOut, onDragStart: P.canDragOut ? g(D.id) : void 0, onDragEnd: P.canDragOut ? b : void 0 }) }) }, D.id)) })
2302
+ ] }, P.id), e[16] = d, e[17] = f, e[18] = v, e[19] = a, e[20] = i, e[21] = r, e[22] = s, e[23] = c, e[24] = _) : _ = e[24], T = n.map(_), e[6] = d, e[7] = f, e[8] = n, e[9] = v, e[10] = a, e[11] = i, e[12] = r, e[13] = s, e[14] = c, e[15] = T;
2153
2303
  } else
2154
2304
  T = e[15];
2155
- let b;
2156
- return e[25] !== T ? (b = /* @__PURE__ */ o(ke, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: D, children: T }), e[25] = T, e[26] = b) : b = e[26], b;
2157
- }, go = (l) => {
2158
- const e = R(26), {
2159
- group: n,
2160
- selectedItemId: t,
2161
- canDragIn: i,
2162
- canDragOut: s,
2163
- isDropTarget: r,
2164
- onDragStart: a,
2165
- onDragEnd: c,
2166
- onGroupDragOver: d,
2167
- onGroupDragLeave: u,
2168
- onGroupDrop: f
2169
- } = l, [p, h] = ge(!0), g = r ? "bg.subtle" : "transparent", S = i ? d : void 0, m = i ? u : void 0, v = i ? f : void 0;
2170
- let C;
2171
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
2305
+ let L;
2306
+ return e[25] !== T ? (L = /* @__PURE__ */ o(ke, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: k, children: T }), e[25] = T, e[26] = L) : L = e[26], L;
2307
+ }, Uo = (l) => {
2308
+ const e = R(28), {
2309
+ columnId: n,
2310
+ group: t,
2311
+ selectedItemId: r,
2312
+ canDragIn: s,
2313
+ canDragOut: i,
2314
+ isDropTarget: a,
2315
+ onDragStart: c,
2316
+ onDragEnd: d,
2317
+ onGroupDragOver: u,
2318
+ onGroupDragLeave: f,
2319
+ onGroupDrop: p
2320
+ } = l, [g, h] = me(!0), b = a ? "bg.subtle" : "transparent", m = s ? u : void 0, S = s ? f : void 0, w = s ? p : void 0;
2321
+ let I;
2322
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
2172
2323
  bg: "bg.hover"
2173
- }, e[0] = C) : C = e[0];
2324
+ }, e[0] = I) : I = e[0];
2325
+ let x;
2326
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => h(qo), e[1] = x) : x = e[1];
2327
+ const v = g ? "rotate(90deg)" : "rotate(0deg)";
2174
2328
  let k;
2175
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => h(So), e[1] = k) : k = e[1];
2176
- const y = p ? "rotate(90deg)" : "rotate(0deg)";
2177
- let I;
2178
- e[2] !== y ? (I = /* @__PURE__ */ o(V, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ o(ae, { as: Te, boxSize: "14px", color: "fg.muted", transform: y, transition: "transform 0.15s ease" }) }), e[2] = y, e[3] = I) : I = e[3];
2179
- let D;
2180
- e[4] !== n.label ? (D = /* @__PURE__ */ o(W, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = D) : D = e[5];
2329
+ e[2] !== v ? (k = /* @__PURE__ */ o(G, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ o(ee, { as: _e, boxSize: "14px", color: "fg.muted", transform: v, transition: "transform 0.15s ease" }) }), e[2] = v, e[3] = k) : k = e[3];
2181
2330
  let T;
2182
- e[6] !== n.items.length ? (T = /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = T) : T = e[7];
2183
- let b;
2184
- e[8] !== I || e[9] !== D || e[10] !== T ? (b = /* @__PURE__ */ x(j, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: C, borderRadius: "sm", onClick: k, children: [
2185
- I,
2186
- D,
2187
- T
2188
- ] }), e[8] = I, e[9] = D, e[10] = T, e[11] = b) : b = e[11];
2331
+ e[4] !== t.label ? (T = /* @__PURE__ */ o(z, { textStyle: "label/S/medium", color: "fg.muted", children: t.label }), e[4] = t.label, e[5] = T) : T = e[5];
2332
+ let L;
2333
+ e[6] !== t.items.length ? (L = /* @__PURE__ */ o(ye, { variant: "subtle", colorPalette: "gray", size: "sm", children: t.items.length }), e[6] = t.items.length, e[7] = L) : L = e[7];
2334
+ let _;
2335
+ e[8] !== k || e[9] !== T || e[10] !== L ? (_ = /* @__PURE__ */ y(H, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: I, borderRadius: "sm", onClick: x, children: [
2336
+ k,
2337
+ T,
2338
+ L
2339
+ ] }), e[8] = k, e[9] = T, e[10] = L, e[11] = _) : _ = e[11];
2189
2340
  let P;
2190
- e[12] !== s || e[13] !== p || e[14] !== n.items || e[15] !== c || e[16] !== a || e[17] !== t ? (P = p && /* @__PURE__ */ o(B, { gap: "sm", pt: "xs", children: n.items.map((_) => /* @__PURE__ */ o(Ft, { ..._.cardProps, isSelected: _.id === t, draggable: s, onDragStart: s ? a(_.id) : void 0, onDragEnd: s ? c : void 0 }, _.id)) }), e[12] = s, e[13] = p, e[14] = n.items, e[15] = c, e[16] = a, e[17] = t, e[18] = P) : P = e[18];
2191
- let w;
2192
- return e[19] !== g || e[20] !== S || e[21] !== b || e[22] !== P || e[23] !== m || e[24] !== v ? (w = /* @__PURE__ */ x(B, { gap: "0", borderRadius: "sm", background: g, transition: "background 150ms ease", onDragOver: S, onDragLeave: m, onDrop: v, children: [
2193
- b,
2341
+ e[12] !== i || e[13] !== g || e[14] !== t.items || e[15] !== d || e[16] !== c || e[17] !== r ? (P = g && /* @__PURE__ */ o(F, { gap: "sm", pt: "xs", children: t.items.map((C) => /* @__PURE__ */ o(et, { actions: C.contextMenuActions ?? [], children: /* @__PURE__ */ o(G, { children: /* @__PURE__ */ o(Jt, { ...C.cardProps, isSelected: C.id === r, draggable: i, onDragStart: i ? c(C.id) : void 0, onDragEnd: i ? d : void 0 }) }) }, C.id)) }), e[12] = i, e[13] = g, e[14] = t.items, e[15] = d, e[16] = c, e[17] = r, e[18] = P) : P = e[18];
2342
+ let D;
2343
+ return e[19] !== n || e[20] !== t.key || e[21] !== b || e[22] !== m || e[23] !== _ || e[24] !== P || e[25] !== S || e[26] !== w ? (D = /* @__PURE__ */ y(F, { "data-column-id": n, "data-group-key": t.key, gap: "0", borderRadius: "sm", background: b, transition: "background 150ms ease", onDragOver: m, onDragLeave: S, onDrop: w, children: [
2344
+ _,
2194
2345
  P
2195
- ] }), e[19] = g, e[20] = S, e[21] = b, e[22] = P, e[23] = m, e[24] = v, e[25] = w) : w = e[25], w;
2196
- }, mo = (l) => {
2346
+ ] }), e[19] = n, e[20] = t.key, e[21] = b, e[22] = m, e[23] = _, e[24] = P, e[25] = S, e[26] = w, e[27] = D) : D = e[27], D;
2347
+ }, Yo = (l) => {
2197
2348
  const e = R(20), {
2198
2349
  column: n,
2199
2350
  onCreateStart: t,
2200
- onColumnAction: i
2351
+ onColumnAction: r
2201
2352
  } = l;
2202
2353
  let s;
2203
- e[0] !== n.label ? (s = /* @__PURE__ */ o(W, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = s) : s = e[1];
2204
- const r = n.color ?? "gray";
2354
+ e[0] !== n.label ? (s = /* @__PURE__ */ o(z, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = s) : s = e[1];
2355
+ const i = n.color ?? "gray";
2205
2356
  let a;
2206
- e[2] !== n.items.length || e[3] !== r ? (a = /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: r, children: n.items.length }), e[2] = n.items.length, e[3] = r, e[4] = a) : a = e[4];
2357
+ e[2] !== n.items.length || e[3] !== i ? (a = /* @__PURE__ */ o(ye, { variant: "subtle", colorPalette: i, children: n.items.length }), e[2] = n.items.length, e[3] = i, e[4] = a) : a = e[4];
2207
2358
  let c;
2208
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o(Pt, {}), e[5] = c) : c = e[5];
2359
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o(zt, {}), e[5] = c) : c = e[5];
2209
2360
  let d;
2210
- e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ o(xe, { content: "Create new ticket", children: /* @__PURE__ */ o(he, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ o(ae, { as: Gn, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
2361
+ e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ o(Se, { content: "Create new ticket", children: /* @__PURE__ */ o(he, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ o(ee, { as: dl, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
2211
2362
  let u;
2212
- e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== i ? (u = n.actions.length > 0 && /* @__PURE__ */ x(Y.Root, { children: [
2213
- /* @__PURE__ */ o(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ o(ae, { as: Nn, boxSize: "12px" }) }) }),
2214
- /* @__PURE__ */ o(Y.Positioner, { children: /* @__PURE__ */ o(Y.Content, { minW: "180px", bg: "bg", children: n.actions.map((p) => /* @__PURE__ */ o(De, { primaryLabel: p.label, leftIcon: p.icon, onClick: () => i?.(n.id, p.id) }, p.id)) }) })
2215
- ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = i, e[14] = u) : u = e[14];
2363
+ e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== r ? (u = n.actions.length > 0 && /* @__PURE__ */ y(X.Root, { children: [
2364
+ /* @__PURE__ */ o(X.Trigger, { asChild: !0, children: /* @__PURE__ */ o(he, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ o(ee, { as: ul, boxSize: "12px" }) }) }),
2365
+ /* @__PURE__ */ o(X.Positioner, { children: /* @__PURE__ */ o(X.Content, { minW: "180px", bg: "bg", children: n.actions.map((p) => /* @__PURE__ */ o(Pe, { primaryLabel: p.label, leftIcon: p.icon, onClick: () => r?.(n.id, p.id) }, p.id)) }) })
2366
+ ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = r, e[14] = u) : u = e[14];
2216
2367
  let f;
2217
- return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== u ? (f = /* @__PURE__ */ x(j, { padding: "xs", gap: "xs", alignItems: "center", children: [
2368
+ return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== u ? (f = /* @__PURE__ */ y(H, { padding: "xs", gap: "xs", alignItems: "center", children: [
2218
2369
  s,
2219
2370
  a,
2220
2371
  c,
@@ -2222,123 +2373,196 @@ const ho = (l) => {
2222
2373
  u
2223
2374
  ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = u, e[19] = f) : f = e[19], f;
2224
2375
  };
2225
- function bo(l) {
2376
+ function Ko(l) {
2226
2377
  return (e) => {
2227
2378
  e.dataTransfer.setData("text/plain", l), e.dataTransfer.effectAllowed = "move";
2228
2379
  };
2229
2380
  }
2230
- function So(l) {
2381
+ function qo(l) {
2231
2382
  return !l;
2232
2383
  }
2233
- const xo = [{
2384
+ const Jo = [{
2234
2385
  id: "ticket",
2235
2386
  header: "",
2236
2387
  cell: ({
2237
2388
  row: l
2238
- }) => /* @__PURE__ */ o(vo, { row: l })
2239
- }], yo = (l) => {
2389
+ }) => /* @__PURE__ */ o(Zo, { row: l })
2390
+ }], Qo = (l) => {
2240
2391
  const {
2241
2392
  items: e,
2242
2393
  selectedItemId: n = null,
2243
2394
  onItemClick: t
2244
- } = l, [i, s] = ge(!0), r = jn({
2395
+ } = l, [r, s] = me(!0), i = ml({
2245
2396
  data: e,
2246
- columns: xo,
2397
+ columns: Jo,
2247
2398
  state: {
2248
- expanded: i
2399
+ expanded: r
2249
2400
  },
2250
2401
  onExpandedChange: s,
2251
2402
  getSubRows: (a) => a.children,
2252
- getCoreRowModel: Un(),
2253
- getExpandedRowModel: Xn(),
2403
+ getCoreRowModel: xl(),
2404
+ getExpandedRowModel: bl(),
2254
2405
  getRowId: (a) => a.id
2255
2406
  });
2256
- return /* @__PURE__ */ o(V, { children: r.getRowModel().rows.map((a) => {
2407
+ return /* @__PURE__ */ o(G, { children: i.getRowModel().rows.map((a) => {
2257
2408
  const c = a.original, d = c.id === n, u = a.getCanExpand();
2258
- return /* @__PURE__ */ o(j, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: d ? "bg.active" : "transparent", _hover: {
2409
+ return /* @__PURE__ */ o(et, { actions: c.contextMenuActions ?? [], children: /* @__PURE__ */ o(H, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: d ? "bg.active" : "transparent", _hover: {
2259
2410
  background: d ? "bg.active" : "bg.hover"
2260
2411
  }, onClick: () => {
2261
2412
  u ? a.toggleExpanded() : (c.onClick?.(), t?.(c));
2262
- }, "data-selected": d ? "true" : void 0, children: Yn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
2413
+ }, "data-selected": d ? "true" : void 0, children: Sl(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }) }, a.id);
2263
2414
  }) });
2264
- }, vo = (l) => {
2265
- const e = R(25), {
2415
+ }, Zo = (l) => {
2416
+ const e = R(33), {
2266
2417
  row: n
2267
- } = l, t = n.original, i = n.depth, s = i > 0 ? `${i * 24}px` : void 0;
2268
- let r;
2269
- e[0] !== i || e[1] !== n ? (r = n.getCanExpand() ? /* @__PURE__ */ o(Co, { row: n }) : i > 0 ? /* @__PURE__ */ o(wo, {}) : null, e[0] = i, e[1] = n, e[2] = r) : r = e[2];
2270
- let a;
2271
- e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ o(ae, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[3] = t.statusColor, e[4] = t.statusIcon, e[5] = a) : a = e[5];
2418
+ } = l, t = n.original, r = n.depth;
2419
+ let s;
2420
+ e[0] !== t.ticketId ? (s = t.ticketId.trim(), e[0] = t.ticketId, e[1] = s) : s = e[1];
2421
+ const i = s.length > 0, a = r > 0 ? `${r * 24}px` : void 0;
2272
2422
  let c;
2273
- e[6] !== t.ticketId ? (c = /* @__PURE__ */ o(W, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
2423
+ e[2] !== r || e[3] !== n ? (c = n.getCanExpand() ? /* @__PURE__ */ o(ei, { row: n }) : r > 0 ? /* @__PURE__ */ o(ti, {}) : null, e[2] = r, e[3] = n, e[4] = c) : c = e[4];
2274
2424
  let d;
2275
- e[8] !== t.title ? (d = /* @__PURE__ */ o(W, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
2425
+ e[5] !== t.statusColor || e[6] !== t.statusIcon ? (d = t.statusIcon && /* @__PURE__ */ o(ee, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[5] = t.statusColor, e[6] = t.statusIcon, e[7] = d) : d = e[7];
2276
2426
  let u;
2277
- e[10] !== t.badges ? (u = t.badges && t.badges.length > 0 && /* @__PURE__ */ o(Dt, { gap: "2xs", flexShrink: 0, children: t.badges.map(ko) }), e[10] = t.badges, e[11] = u) : u = e[11];
2427
+ e[8] !== i || e[9] !== t.ticketId ? (u = i && /* @__PURE__ */ o(z, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[8] = i, e[9] = t.ticketId, e[10] = u) : u = e[10];
2278
2428
  let f;
2279
- e[12] !== t.assigneeIcon ? (f = t.assigneeIcon && /* @__PURE__ */ o(V, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = f) : f = e[13];
2429
+ e[11] !== t.title ? (f = /* @__PURE__ */ o(z, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[11] = t.title, e[12] = f) : f = e[12];
2280
2430
  let p;
2281
- e[14] !== t.date ? (p = t.date && /* @__PURE__ */ o(W, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = p) : p = e[15];
2431
+ e[13] !== t.countBadge ? (p = typeof t.countBadge == "number" && /* @__PURE__ */ o(ye, { variant: "subtle", colorPalette: "gray", size: "sm", flexShrink: 0, children: t.countBadge }), e[13] = t.countBadge, e[14] = p) : p = e[14];
2432
+ let g;
2433
+ e[15] !== t.badges || e[16] !== t.onTagChange || e[17] !== t.tagBadges ? (g = (t.badges && t.badges.length > 0 || t.tagBadges && t.tagBadges.length > 0) && /* @__PURE__ */ y(Ot, { gap: "2xs", flexShrink: 0, children: [
2434
+ t.badges?.map(ni),
2435
+ t.tagBadges?.map((S) => /* @__PURE__ */ o(qt, { value: S.value, label: S.label, color: S.value ? S.color : "gray", options: S.options, onValueChange: t.onTagChange ? (w) => t.onTagChange(S.tagName, w) : void 0 }, S.tagName))
2436
+ ] }), e[15] = t.badges, e[16] = t.onTagChange, e[17] = t.tagBadges, e[18] = g) : g = e[18];
2282
2437
  let h;
2283
- return e[16] !== s || e[17] !== r || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== u || e[22] !== f || e[23] !== p ? (h = /* @__PURE__ */ x(j, { gap: "sm", flex: "1", paddingLeft: s, children: [
2284
- r,
2285
- a,
2438
+ e[19] !== t.assigneeIcon ? (h = t.assigneeIcon && /* @__PURE__ */ o(G, { flexShrink: 0, children: t.assigneeIcon }), e[19] = t.assigneeIcon, e[20] = h) : h = e[20];
2439
+ let b;
2440
+ e[21] !== t.date ? (b = t.date && /* @__PURE__ */ o(z, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[21] = t.date, e[22] = b) : b = e[22];
2441
+ let m;
2442
+ return e[23] !== a || e[24] !== c || e[25] !== d || e[26] !== u || e[27] !== f || e[28] !== p || e[29] !== g || e[30] !== h || e[31] !== b ? (m = /* @__PURE__ */ y(H, { gap: "xs", flex: "1", paddingLeft: a, children: [
2286
2443
  c,
2287
2444
  d,
2288
2445
  u,
2289
2446
  f,
2290
- p
2291
- ] }), e[16] = s, e[17] = r, e[18] = a, e[19] = c, e[20] = d, e[21] = u, e[22] = f, e[23] = p, e[24] = h) : h = e[24], h;
2292
- }, Co = (l) => {
2447
+ p,
2448
+ g,
2449
+ h,
2450
+ b
2451
+ ] }), e[23] = a, e[24] = c, e[25] = d, e[26] = u, e[27] = f, e[28] = p, e[29] = g, e[30] = h, e[31] = b, e[32] = m) : m = e[32], m;
2452
+ }, ei = (l) => {
2293
2453
  const e = R(6), {
2294
2454
  row: n
2295
- } = l, t = n.getIsExpanded(), i = t ? "true" : void 0, s = t ? "Collapse group" : "Expand group", r = t ? "rotate(90deg)" : "rotate(0deg)";
2455
+ } = l, t = n.getIsExpanded(), r = t ? "true" : void 0, s = t ? "Collapse group" : "Expand group", i = t ? "rotate(90deg)" : "rotate(0deg)";
2296
2456
  let a;
2297
- e[0] !== r ? (a = /* @__PURE__ */ o(Te, { size: 14, style: {
2298
- color: "var(--chakra-colors-fg-muted)",
2299
- transform: r,
2300
- transition: "transform 0.15s ease"
2301
- } }), e[0] = r, e[1] = a) : a = e[1];
2457
+ e[0] !== i ? (a = /* @__PURE__ */ o(ee, { as: _e, boxSize: "14px", color: "fg.muted", transform: i, transition: "transform 0.15s ease" }), e[0] = i, e[1] = a) : a = e[1];
2302
2458
  let c;
2303
- return e[2] !== i || e[3] !== s || e[4] !== a ? (c = /* @__PURE__ */ o(V, { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", "data-expanded": i, "aria-label": s, children: a }), e[2] = i, e[3] = s, e[4] = a, e[5] = c) : c = e[5], c;
2304
- }, wo = () => {
2459
+ return e[2] !== r || e[3] !== s || e[4] !== a ? (c = /* @__PURE__ */ o(G, { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", "data-expanded": r, "aria-label": s, children: a }), e[2] = r, e[3] = s, e[4] = a, e[5] = c) : c = e[5], c;
2460
+ }, ti = () => {
2305
2461
  const l = R(1);
2306
2462
  let e;
2307
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x(V, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2308
- /* @__PURE__ */ o(V, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
2309
- /* @__PURE__ */ o(V, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
2463
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(G, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2464
+ /* @__PURE__ */ o(G, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
2465
+ /* @__PURE__ */ o(G, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
2310
2466
  ] }), l[0] = e) : e = l[0], e;
2311
2467
  };
2312
- function ko(l) {
2313
- return /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2468
+ function ni(l) {
2469
+ return /* @__PURE__ */ o(ye, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2314
2470
  }
2315
- const qe = {
2471
+ const li = {
2472
+ viewMode: "board",
2473
+ columnGrouping: "status",
2474
+ rowGrouping: "none",
2475
+ ordering: {
2476
+ field: "manual",
2477
+ direction: "asc"
2478
+ },
2479
+ displayProperties: []
2480
+ }, oi = [{
2481
+ value: "status",
2482
+ label: "Status"
2483
+ }, {
2484
+ value: "assignee",
2485
+ label: "Assignee"
2486
+ }, {
2487
+ value: "none",
2488
+ label: "No grouping"
2489
+ }], ii = [{
2490
+ value: "manual",
2491
+ label: "Manual"
2492
+ }, {
2493
+ value: "updated",
2494
+ label: "Updated"
2495
+ }, {
2496
+ value: "title",
2497
+ label: "Title"
2498
+ }, {
2499
+ value: "ticketId",
2500
+ label: "ID"
2501
+ }], ri = [{
2502
+ value: "id",
2503
+ label: "ID"
2504
+ }, {
2505
+ value: "status",
2506
+ label: "Status"
2507
+ }, {
2508
+ value: "updated",
2509
+ label: "Updated"
2510
+ }], tt = (l) => l.startsWith("tag:"), nt = (l) => l.slice(4), Fe = {
2316
2511
  status: "No status",
2317
2512
  assignee: "Unassigned"
2318
- }, Je = (l, e) => !l || l.trim() === "" ? e : l, vt = (l, e) => e === "none" ? "All" : e === "status" ? Je(l.status, qe.status) : Je(l.assignee, qe.assignee), Ct = (l, e) => l.localeCompare(e, void 0, {
2513
+ }, Ve = (l, e) => !l || l.trim() === "" ? e : l, Ze = (l, e) => l.tags?.find((n) => n.name === e)?.value ?? null, Pt = (l, e) => {
2514
+ if (e === "none")
2515
+ return "All";
2516
+ if (e === "status")
2517
+ return Ve(l.status, Fe.status);
2518
+ if (e === "assignee")
2519
+ return Ve(l.assignee, Fe.assignee);
2520
+ if (tt(e)) {
2521
+ const n = nt(e), t = Fe[e] ?? `No ${n}`;
2522
+ return Ve(Ze(l, n), t);
2523
+ }
2524
+ return "All";
2525
+ }, Tt = (l, e) => l.localeCompare(e, void 0, {
2319
2526
  numeric: !0
2320
- }), nt = (l, e) => e === "asc" ? l : l * -1, Ue = (l, e) => e.field === "manual" ? l : [...l].sort((n, t) => {
2527
+ }), He = (l, e) => e === "asc" ? l : l * -1, qe = (l, e, n = []) => e.field === "manual" ? l : [...l].sort((t, r) => {
2321
2528
  if (e.field === "updated") {
2322
- const i = new Date(n.updatedAt ?? 0).getTime(), s = new Date(t.updatedAt ?? 0).getTime();
2323
- return nt(i - s, e.direction);
2529
+ const s = new Date(t.updatedAt ?? 0).getTime(), i = new Date(r.updatedAt ?? 0).getTime();
2530
+ return He(s - i, e.direction);
2531
+ }
2532
+ if (e.field === "title")
2533
+ return He(t.title.localeCompare(r.title), e.direction);
2534
+ if (tt(e.field)) {
2535
+ const s = nt(e.field), i = n.find((d) => d.name === s), a = Ze(t, s), c = Ze(r, s);
2536
+ if (i) {
2537
+ const d = (p) => {
2538
+ if (p === null)
2539
+ return i.options.length;
2540
+ const g = i.options.findIndex((h) => h.value === p);
2541
+ return g === -1 ? i.options.length + 1 : g;
2542
+ }, u = d(a), f = d(c);
2543
+ return He(u - f, e.direction);
2544
+ }
2545
+ return He((a ?? "").localeCompare(c ?? "", void 0, {
2546
+ numeric: !0
2547
+ }), e.direction);
2324
2548
  }
2325
- return e.field === "title" ? nt(n.title.localeCompare(t.title), e.direction) : nt(n.ticketId.localeCompare(t.ticketId, void 0, {
2549
+ return He(t.ticketId.localeCompare(r.ticketId, void 0, {
2326
2550
  numeric: !0
2327
2551
  }), e.direction);
2328
- }), Io = (l, e) => {
2552
+ }), si = (l, e) => {
2329
2553
  const {
2330
2554
  columnGrouping: n,
2331
2555
  rowGrouping: t,
2332
- knownColumnKeys: i
2556
+ knownColumnKeys: r
2333
2557
  } = e, s = /* @__PURE__ */ new Map();
2334
- if (i)
2335
- for (const a of i)
2558
+ if (r)
2559
+ for (const a of r)
2336
2560
  s.set(a, []);
2337
2561
  for (const a of l) {
2338
- const c = vt(a, n);
2562
+ const c = Pt(a, n);
2339
2563
  s.set(c, [...s.get(c) ?? [], a]);
2340
2564
  }
2341
- return [...s.entries()].sort(([a], [c]) => Ct(a, c)).map(([a, c]) => {
2565
+ return [...s.entries()].sort(([a], [c]) => Tt(a, c)).map(([a, c]) => {
2342
2566
  if (t === "none")
2343
2567
  return {
2344
2568
  key: a,
@@ -2348,10 +2572,10 @@ const qe = {
2348
2572
  };
2349
2573
  const d = /* @__PURE__ */ new Map();
2350
2574
  for (const f of c) {
2351
- const p = vt(f, t);
2575
+ const p = Pt(f, t);
2352
2576
  d.set(p, [...d.get(p) ?? [], f]);
2353
2577
  }
2354
- const u = [...d.entries()].sort(([f], [p]) => Ct(f, p)).map(([f, p]) => ({
2578
+ const u = [...d.entries()].sort(([f], [p]) => Tt(f, p)).map(([f, p]) => ({
2355
2579
  key: f,
2356
2580
  label: f,
2357
2581
  tickets: p
@@ -2363,121 +2587,173 @@ const qe = {
2363
2587
  rows: u
2364
2588
  };
2365
2589
  });
2366
- }, Vt = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Je(l.status, qe.status)] : [Je(l.assignee, qe.assignee)], Po = (l, e) => {
2590
+ }, Qt = (l, e) => {
2591
+ if (e === "status")
2592
+ return [Ve(l.status, Fe.status)];
2593
+ if (e === "assignee")
2594
+ return [Ve(l.assignee, Fe.assignee)];
2595
+ if (tt(e)) {
2596
+ const n = nt(e), t = Ze(l, n);
2597
+ return t ? [t] : [];
2598
+ }
2599
+ return [];
2600
+ }, ai = (l, e) => {
2367
2601
  const n = Object.entries(e).filter(([, t]) => t && t.length > 0);
2368
- return n.length === 0 ? l : l.filter((t) => n.every(([i, s]) => Vt(t, i).some((a) => s?.includes(a))));
2369
- }, To = (l, e) => {
2602
+ return n.length === 0 ? l : l.filter((t) => n.every(([r, s]) => Qt(t, r).some((a) => s?.includes(a))));
2603
+ }, ci = (l, e) => {
2370
2604
  const n = {};
2371
2605
  for (const t of l)
2372
- for (const i of Vt(t, e))
2373
- n[i] = (n[i] ?? 0) + 1;
2606
+ for (const r of Qt(t, e))
2607
+ n[r] = (n[r] ?? 0) + 1;
2374
2608
  return n;
2375
- }, Do = {
2376
- viewMode: "board",
2377
- columnGrouping: "status",
2378
- rowGrouping: "none",
2379
- ordering: {
2380
- field: "manual",
2381
- direction: "asc"
2382
- },
2383
- displayProperties: ["labels"]
2384
- }, _o = [{
2385
- value: "status",
2386
- label: "Status"
2387
- }, {
2388
- value: "assignee",
2389
- label: "Assignee"
2390
- }, {
2391
- value: "none",
2392
- label: "No grouping"
2393
- }], Lo = [{
2394
- value: "manual",
2395
- label: "Manual"
2396
- }, {
2397
- value: "updated",
2398
- label: "Updated"
2399
- }, {
2400
- value: "title",
2401
- label: "Title"
2402
- }, {
2403
- value: "ticketId",
2404
- label: "ID"
2405
- }], $o = [{
2406
- value: "id",
2407
- label: "ID"
2408
- }, {
2409
- value: "status",
2410
- label: "Status"
2411
- }, {
2412
- value: "assignee",
2413
- label: "Assignee"
2414
- }, {
2415
- value: "labels",
2416
- label: "Labels"
2417
- }, {
2418
- value: "updated",
2419
- label: "Updated"
2420
- }], Ro = "pstdio/ui/tickets-workspace", Wo = (l) => `${Ro}/${l}`, lt = {
2421
- settings: Do,
2609
+ }, Qe = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), Dt = (l, e) => {
2610
+ const n = /* @__PURE__ */ new Set();
2611
+ for (const t of l)
2612
+ if (e === "status")
2613
+ t.status && n.add(t.status);
2614
+ else if (e === "assignee")
2615
+ t.assignee && n.add(t.assignee);
2616
+ else if (tt(e)) {
2617
+ const r = nt(e), s = t.tags?.find((i) => i.name === r);
2618
+ s && n.add(s.value);
2619
+ }
2620
+ return [...n].sort((t, r) => t.localeCompare(r, void 0, {
2621
+ numeric: !0
2622
+ })).map((t) => ({
2623
+ value: t,
2624
+ label: Qe(t)
2625
+ }));
2626
+ }, di = (l, e) => {
2627
+ const n = [{
2628
+ id: "status",
2629
+ label: "Status",
2630
+ options: Dt(l, "status")
2631
+ }, {
2632
+ id: "assignee",
2633
+ label: "Assignee",
2634
+ options: Dt(l, "assignee")
2635
+ }];
2636
+ for (const t of e) {
2637
+ const r = `tag:${t.name}`;
2638
+ n.push({
2639
+ id: r,
2640
+ label: t.label,
2641
+ options: t.options.map((s) => ({
2642
+ value: s.value,
2643
+ label: s.label
2644
+ }))
2645
+ });
2646
+ }
2647
+ return n;
2648
+ }, _t = (l, e) => {
2649
+ const n = [], t = (r) => e.includes(r);
2650
+ return t("status") && l.status && n.push({
2651
+ label: l.status,
2652
+ color: l.statusColor ?? "gray"
2653
+ }), t("assignee") && l.assignee && n.push({
2654
+ label: l.assignee,
2655
+ color: "blue"
2656
+ }), t("updated") && l.updatedAt && n.push({
2657
+ label: new Date(l.updatedAt).toLocaleDateString(),
2658
+ color: "gray"
2659
+ }), n;
2660
+ }, Lt = (l, e, n) => {
2661
+ const t = [];
2662
+ for (const r of n) {
2663
+ const s = `tag:${r.name}`;
2664
+ if (!e.includes(s)) continue;
2665
+ const i = l.tags?.find((c) => c.name === r.name), a = i ? r.options.find((c) => c.value === i.value) : void 0;
2666
+ t.push({
2667
+ tagName: r.name,
2668
+ label: r.label,
2669
+ value: i?.value ?? null,
2670
+ color: a?.color ?? "purple",
2671
+ options: r.options
2672
+ });
2673
+ }
2674
+ return t;
2675
+ }, ui = (l) => ({
2676
+ grouping: l.map((e) => ({
2677
+ value: `tag:${e.name}`,
2678
+ label: e.label
2679
+ })),
2680
+ ordering: l.map((e) => ({
2681
+ value: `tag:${e.name}`,
2682
+ label: e.label
2683
+ })),
2684
+ display: l.map((e) => ({
2685
+ value: `tag:${e.name}`,
2686
+ label: e.label
2687
+ }))
2688
+ }), fi = (l, e, n) => {
2689
+ if (l !== "none")
2690
+ return l === "status" && e ? e : n.find((t) => t.id === l)?.options.map((t) => t.value);
2691
+ }, $t = (l, e) => {
2692
+ const n = {
2693
+ ...l
2694
+ };
2695
+ return delete n[e], n;
2696
+ }, pi = "pstdio/ui/tickets-workspace", gi = (l) => `${pi}/${l}`, rt = {
2697
+ settings: li,
2422
2698
  filters: {}
2423
- }, Eo = () => ({
2699
+ }, hi = () => ({
2424
2700
  getItem: () => null,
2425
2701
  setItem: () => {
2426
2702
  },
2427
2703
  removeItem: () => {
2428
2704
  }
2429
- }), zo = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], Ao = (l) => {
2705
+ }), mi = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], bi = (l) => {
2430
2706
  const {
2431
2707
  storageKey: e,
2432
2708
  initialState: n
2433
2709
  } = l, t = {
2434
2710
  settings: {
2435
- ...lt.settings,
2711
+ ...rt.settings,
2436
2712
  ...n?.settings ?? {}
2437
2713
  },
2438
- filters: n?.filters ?? lt.filters
2714
+ filters: n?.filters ?? rt.filters
2439
2715
  };
2440
- return zt()(Wt((i) => ({
2716
+ return Ht()(Nt((r) => ({
2441
2717
  ...t,
2442
- setViewMode: (s) => i((r) => ({
2443
- ...r,
2718
+ setViewMode: (s) => r((i) => ({
2719
+ ...i,
2444
2720
  settings: {
2445
- ...r.settings,
2721
+ ...i.settings,
2446
2722
  viewMode: s
2447
2723
  }
2448
2724
  })),
2449
- setColumnGrouping: (s) => i((r) => ({
2450
- ...r,
2725
+ setColumnGrouping: (s) => r((i) => ({
2726
+ ...i,
2451
2727
  settings: {
2452
- ...r.settings,
2728
+ ...i.settings,
2453
2729
  columnGrouping: s
2454
2730
  }
2455
2731
  })),
2456
- setRowGrouping: (s) => i((r) => ({
2457
- ...r,
2732
+ setRowGrouping: (s) => r((i) => ({
2733
+ ...i,
2458
2734
  settings: {
2459
- ...r.settings,
2735
+ ...i.settings,
2460
2736
  rowGrouping: s
2461
2737
  }
2462
2738
  })),
2463
- setOrdering: (s) => i((r) => ({
2464
- ...r,
2739
+ setOrdering: (s) => r((i) => ({
2740
+ ...i,
2465
2741
  settings: {
2466
- ...r.settings,
2742
+ ...i.settings,
2467
2743
  ordering: s
2468
2744
  }
2469
2745
  })),
2470
- setOrderingField: (s) => i((r) => ({
2471
- ...r,
2746
+ setOrderingField: (s) => r((i) => ({
2747
+ ...i,
2472
2748
  settings: {
2473
- ...r.settings,
2749
+ ...i.settings,
2474
2750
  ordering: {
2475
- ...r.settings.ordering,
2751
+ ...i.settings.ordering,
2476
2752
  field: s
2477
2753
  }
2478
2754
  }
2479
2755
  })),
2480
- toggleSortDirection: () => i((s) => ({
2756
+ toggleSortDirection: () => r((s) => ({
2481
2757
  ...s,
2482
2758
  settings: {
2483
2759
  ...s.settings,
@@ -2487,349 +2763,307 @@ const qe = {
2487
2763
  }
2488
2764
  }
2489
2765
  })),
2490
- toggleDisplayProperty: (s) => i((r) => {
2491
- const a = r.settings.displayProperties.includes(s) ? r.settings.displayProperties.filter((c) => c !== s) : [...r.settings.displayProperties, s];
2766
+ toggleDisplayProperty: (s) => r((i) => {
2767
+ const a = i.settings.displayProperties.includes(s) ? i.settings.displayProperties.filter((c) => c !== s) : [...i.settings.displayProperties, s];
2492
2768
  return {
2493
- ...r,
2769
+ ...i,
2494
2770
  settings: {
2495
- ...r.settings,
2771
+ ...i.settings,
2496
2772
  displayProperties: a
2497
2773
  }
2498
2774
  };
2499
2775
  }),
2500
- setFilter: (s, r) => i((a) => ({
2776
+ setFilter: (s, i) => r((a) => ({
2501
2777
  ...a,
2502
2778
  filters: {
2503
2779
  ...a.filters,
2504
- [s]: r
2780
+ [s]: i
2505
2781
  }
2506
2782
  })),
2507
- toggleFilterValue: (s, r) => i((a) => {
2508
- const c = a.filters[s] ?? [], d = zo(c, r), u = {
2783
+ toggleFilterValue: (s, i) => r((a) => {
2784
+ const c = a.filters[s] ?? [], d = mi(c, i), u = d.length === 0 ? $t(a.filters, s) : {
2509
2785
  ...a.filters,
2510
2786
  [s]: d
2511
2787
  };
2512
- return d.length === 0 && delete u[s], {
2788
+ return {
2513
2789
  ...a,
2514
2790
  filters: u
2515
2791
  };
2516
2792
  }),
2517
- clearFilter: (s) => i((r) => {
2518
- const a = {
2519
- ...r.filters
2520
- };
2521
- return delete a[s], {
2522
- ...r,
2523
- filters: a
2524
- };
2525
- }),
2526
- clearAllFilters: () => i((s) => ({
2793
+ clearFilter: (s) => r((i) => ({
2794
+ ...i,
2795
+ filters: $t(i.filters, s)
2796
+ })),
2797
+ clearAllFilters: () => r((s) => ({
2527
2798
  ...s,
2528
2799
  filters: {}
2529
2800
  })),
2530
- reset: () => i(lt)
2801
+ reset: () => r(rt)
2531
2802
  }), {
2532
- name: Wo(e),
2533
- storage: Et(() => typeof globalThis.localStorage > "u" ? Eo() : globalThis.localStorage),
2534
- partialize: (i) => ({
2535
- settings: i.settings,
2536
- filters: i.filters
2803
+ name: gi(e),
2804
+ version: 1,
2805
+ migrate: (r, s) => {
2806
+ if (s === 0) {
2807
+ const i = r, a = {
2808
+ ...i.filters
2809
+ };
2810
+ delete a.labels;
2811
+ const c = i.settings.displayProperties.filter((d) => d !== "labels");
2812
+ return {
2813
+ ...i,
2814
+ settings: {
2815
+ ...i.settings,
2816
+ displayProperties: c
2817
+ },
2818
+ filters: a
2819
+ };
2820
+ }
2821
+ return r;
2822
+ },
2823
+ storage: Gt(() => typeof globalThis.localStorage > "u" ? hi() : globalThis.localStorage),
2824
+ partialize: (r) => ({
2825
+ settings: r.settings,
2826
+ filters: r.filters
2537
2827
  })
2538
2828
  }));
2539
- }, wt = /* @__PURE__ */ new Map(), Oo = (l) => {
2540
- const e = wt.get(l);
2829
+ }, Rt = /* @__PURE__ */ new Map(), xi = (l) => {
2830
+ const e = Rt.get(l);
2541
2831
  if (e)
2542
2832
  return e;
2543
- const n = Ao({
2833
+ const n = bi({
2544
2834
  storageKey: l
2545
2835
  });
2546
- return wt.set(l, n), n;
2547
- }, Se = (l, e) => {
2836
+ return Rt.set(l, n), n;
2837
+ }, xe = (l, e) => {
2548
2838
  const n = R(2);
2549
2839
  let t;
2550
- return n[0] !== l ? (t = Oo(l), n[0] = l, n[1] = t) : t = n[1], Rt(t, e);
2551
- }, Ke = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), Mo = {
2552
- status: (l) => l.status ? [l.status] : [],
2553
- assignee: (l) => l.assignee ? [l.assignee] : [],
2554
- labels: (l) => l.labels ?? []
2555
- }, ot = (l, e) => {
2556
- const n = /* @__PURE__ */ new Set();
2557
- for (const t of l) {
2558
- const i = Mo[e](t);
2559
- for (const s of i)
2560
- n.add(s);
2561
- }
2562
- return [...n].sort((t, i) => t.localeCompare(i, void 0, {
2563
- numeric: !0
2564
- })).map((t) => ({
2565
- value: t,
2566
- label: Ke(t)
2567
- }));
2568
- }, Go = (l) => [{
2569
- id: "status",
2570
- label: "Status",
2571
- options: ot(l, "status")
2572
- }, {
2573
- id: "assignee",
2574
- label: "Assignee",
2575
- options: ot(l, "assignee")
2576
- }, {
2577
- id: "labels",
2578
- label: "Labels",
2579
- options: ot(l, "labels")
2580
- }], kt = (l, e) => {
2581
- const n = [], t = (i) => e.includes(i);
2582
- if (t("status") && l.status && n.push({
2583
- label: l.status,
2584
- color: l.statusColor ?? "gray"
2585
- }), t("assignee") && l.assignee && n.push({
2586
- label: l.assignee,
2587
- color: "blue"
2588
- }), t("updated") && l.updatedAt && n.push({
2589
- label: new Date(l.updatedAt).toLocaleDateString(),
2590
- color: "gray"
2591
- }), t("labels"))
2592
- for (const i of l.labels ?? [])
2593
- n.push({
2594
- label: i,
2595
- color: "purple"
2596
- });
2597
- return n;
2598
- }, Hi = (l) => {
2599
- const e = R(64), {
2840
+ return n[0] !== l ? (t = xi(l), n[0] = l, n[1] = t) : t = n[1], Bt(t, e);
2841
+ }, yr = (l) => {
2842
+ const e = R(39), {
2600
2843
  tickets: n,
2601
2844
  storageKey: t,
2602
- selectedTicketId: i,
2603
- groupingOptions: s,
2604
- orderingOptions: r,
2605
- displayPropertyOptions: a,
2606
- filterCategories: c,
2607
- knownColumnKeys: d,
2608
- emptyTitle: u,
2609
- emptyDescription: f,
2610
- onTicketClick: p,
2611
- onMoveTicket: h,
2612
- onMoveToGroup: g,
2845
+ tagDefinitions: r,
2846
+ selectedTicketId: s,
2847
+ groupingOptions: i,
2848
+ orderingOptions: a,
2849
+ displayPropertyOptions: c,
2850
+ filterCategories: d,
2851
+ knownColumnKeys: u,
2852
+ emptyTitle: f,
2853
+ emptyDescription: p,
2854
+ onTicketClick: g,
2855
+ onTagChange: h,
2856
+ onMoveTicket: b,
2857
+ onMoveToGroup: m,
2613
2858
  onCreateTicket: S,
2614
- onColumnAction: m,
2615
- getBoardColumnConfig: v
2616
- } = l, C = i === void 0 ? null : i, k = s === void 0 ? _o : s, y = r === void 0 ? Lo : r, I = a === void 0 ? $o : a, D = u === void 0 ? "No tickets found" : u, T = f === void 0 ? "Try changing filters or display settings." : f, b = Se(t, No), P = Se(t, Bo), w = Se(t, Ho), _ = Se(t, Fo), L = Se(t, Vo), $ = Se(t, jo), z = Se(t, Xo), O = Se(t, Uo), G = Se(t, Yo), H = Se(t, Ko), X = Se(t, qo);
2617
- let F, A, E, K;
2618
- if (e[0] !== c || e[1] !== P || e[2] !== v || e[3] !== d || e[4] !== p || e[5] !== b.columnGrouping || e[6] !== b.displayProperties || e[7] !== b.ordering || e[8] !== b.rowGrouping || e[9] !== n) {
2619
- const te = Po(n, P);
2620
- F = c ?? Go(n);
2621
- let ne;
2622
- e[14] !== n ? (ne = (N) => [N.id, To(n, N.id)], e[14] = n, e[15] = ne) : ne = e[15], A = Object.fromEntries(F.map(ne));
2623
- const le = d ?? (b.columnGrouping !== "none" ? F.find((N) => N.id === b.columnGrouping)?.options.map(Jo) : void 0), re = Io(te, {
2624
- columnGrouping: b.columnGrouping,
2625
- rowGrouping: b.rowGrouping,
2626
- knownColumnKeys: le
2627
- });
2628
- let oe;
2629
- e[16] !== p || e[17] !== b.displayProperties ? (oe = (N) => ({
2630
- id: N.id,
2631
- ticketId: b.displayProperties.includes("id") ? N.ticketId : "",
2632
- title: N.title,
2633
- badges: kt(N, b.displayProperties),
2634
- onClick: () => p?.(N)
2635
- }), e[16] = p, e[17] = b.displayProperties, e[18] = oe) : oe = e[18];
2636
- const ce = oe;
2637
- let de;
2638
- e[19] !== b.ordering || e[20] !== ce ? (de = (N) => ({
2639
- id: `group::${N.key}`,
2640
- ticketId: "",
2641
- title: `${Ke(N.label)} (${N.tickets.length})`,
2642
- children: Ue(N.tickets, b.ordering).map((Q) => ce(Q))
2643
- }), e[19] = b.ordering, e[20] = ce, e[21] = de) : de = e[21];
2644
- const ue = de;
2645
- E = b.columnGrouping === "none" ? Ue(te, b.ordering).map((N) => ce(N)) : re.map((N) => N.rows.length > 0 ? {
2646
- id: `group::${N.key}`,
2647
- ticketId: "",
2648
- title: `${Ke(N.label)} (${N.tickets.length})`,
2649
- children: N.rows.map((Q) => ({
2650
- ...ue(Q),
2651
- id: `group::${N.key}::${Q.key}`
2652
- }))
2653
- } : ue(N));
2654
- let me;
2655
- e[22] !== p || e[23] !== b.displayProperties ? (me = (N) => N.map((Q) => ({
2656
- id: Q.id,
2657
- cardProps: {
2658
- ticketId: b.displayProperties.includes("id") ? Q.ticketId : "",
2659
- parentPath: Q.parentPath,
2660
- title: Q.title,
2661
- badges: kt(Q, b.displayProperties),
2662
- onClick: () => p?.(Q)
2663
- }
2664
- })), e[22] = p, e[23] = b.displayProperties, e[24] = me) : me = e[24];
2665
- const ie = me;
2666
- let ve;
2667
- e[25] !== v || e[26] !== b.ordering || e[27] !== ie ? (ve = (N) => {
2668
- const Q = v?.(N.key) ?? {}, Me = Ue(N.tickets, b.ordering), Qe = N.rows.length > 0 ? N.rows.map((Ge) => ({
2669
- key: Ge.key,
2670
- label: Ke(Ge.label),
2671
- items: ie(Ue(Ge.tickets, b.ordering))
2672
- })) : void 0;
2673
- return {
2674
- id: N.key,
2675
- label: N.label,
2676
- color: Q.color,
2677
- canDragIn: Q.canDragIn ?? !1,
2678
- canDragOut: Q.canDragOut ?? !1,
2679
- canCreate: Q.canCreate ?? !1,
2680
- actions: Q.actions ?? [],
2681
- items: ie(Me),
2682
- groups: Qe
2683
- };
2684
- }, e[25] = v, e[26] = b.ordering, e[27] = ie, e[28] = ve) : ve = e[28], K = re.map(ve), e[0] = c, e[1] = P, e[2] = v, e[3] = d, e[4] = p, e[5] = b.columnGrouping, e[6] = b.displayProperties, e[7] = b.ordering, e[8] = b.rowGrouping, e[9] = n, e[10] = F, e[11] = A, e[12] = E, e[13] = K;
2685
- } else
2686
- F = e[10], A = e[11], E = e[12], K = e[13];
2687
- const M = K;
2688
- let Z;
2689
- e[29] !== F || e[30] !== X || e[31] !== H || e[32] !== A || e[33] !== P || e[34] !== G ? (Z = /* @__PURE__ */ o(Zl, { categories: F, filters: P, countsByCategory: A, onToggleFilterValue: G, onClearFilter: H, onClearAll: X }), e[29] = F, e[30] = X, e[31] = H, e[32] = A, e[33] = P, e[34] = G, e[35] = Z) : Z = e[35];
2690
- let U;
2691
- e[36] !== I || e[37] !== k || e[38] !== y || e[39] !== _ || e[40] !== $ || e[41] !== L || e[42] !== w || e[43] !== b || e[44] !== O || e[45] !== z ? (U = /* @__PURE__ */ o(Jl, { settings: b, groupingOptions: k, orderingOptions: y, displayPropertyOptions: I, onViewModeChange: w, onColumnGroupingChange: _, onRowGroupingChange: L, onOrderingFieldChange: $, onSortDirectionToggle: z, onDisplayPropertyToggle: O }), e[36] = I, e[37] = k, e[38] = y, e[39] = _, e[40] = $, e[41] = L, e[42] = w, e[43] = b, e[44] = O, e[45] = z, e[46] = U) : U = e[46];
2692
- let q;
2693
- e[47] !== Z || e[48] !== U ? (q = /* @__PURE__ */ x(j, { justifyContent: "flex-end", gap: "2xs", children: [
2694
- Z,
2695
- U
2696
- ] }), e[47] = Z, e[48] = U, e[49] = q) : q = e[49];
2697
- let J;
2698
- e[50] !== M || e[51] !== T || e[52] !== D || e[53] !== E || e[54] !== m || e[55] !== S || e[56] !== h || e[57] !== g || e[58] !== C || e[59] !== b.viewMode ? (J = b.viewMode === "board" ? /* @__PURE__ */ o(V, { flex: "1", minH: "0", children: M.length > 0 ? /* @__PURE__ */ o(ho, { columns: M, selectedItemId: C, onMoveItem: h, onMoveToGroup: g, onCreateStart: S, onColumnAction: m }) : /* @__PURE__ */ o(rt, { title: D, description: T, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : E.length > 0 ? /* @__PURE__ */ o(yo, { items: E, selectedItemId: C }) : /* @__PURE__ */ o(rt, { title: D, description: T, borderWidth: "1px", borderRadius: "md" }), e[50] = M, e[51] = T, e[52] = D, e[53] = E, e[54] = m, e[55] = S, e[56] = h, e[57] = g, e[58] = C, e[59] = b.viewMode, e[60] = J) : J = e[60];
2699
- let ee;
2700
- return e[61] !== J || e[62] !== q ? (ee = /* @__PURE__ */ x(B, { gap: "sm", height: "100%", minH: "0", children: [
2701
- q,
2702
- J
2703
- ] }), e[61] = J, e[62] = q, e[63] = ee) : ee = e[63], ee;
2859
+ onColumnAction: w,
2860
+ getBoardColumnConfig: I
2861
+ } = l, x = r === void 0 ? [] : r, v = s === void 0 ? null : s, k = f === void 0 ? "No tickets found" : f, T = p === void 0 ? "Try changing filters or display settings." : p, L = ui(x), _ = i ?? [...oi, ...L.grouping], P = a ?? [...ii, ...L.ordering], D = c ?? [...ri, ...L.display], C = xe(t, Si), $ = xe(t, yi), W = xe(t, vi), E = xe(t, Ci), O = xe(t, wi), B = xe(t, Ii), V = xe(t, ki), U = xe(t, Pi), j = xe(t, Ti), A = xe(t, Di), Y = xe(t, _i), N = ai(n, $), J = d ?? di(n, x);
2862
+ let Q;
2863
+ e[0] !== n ? (Q = (M) => [M.id, ci(n, M.id)], e[0] = n, e[1] = Q) : Q = e[1];
2864
+ const q = Object.fromEntries(J.map(Q)), ne = fi(C.columnGrouping, u, J), le = si(N, {
2865
+ columnGrouping: C.columnGrouping,
2866
+ rowGrouping: C.rowGrouping,
2867
+ knownColumnKeys: ne
2868
+ }), te = (M) => ({
2869
+ id: M.id,
2870
+ ticketId: C.displayProperties.includes("id") ? M.ticketId : "",
2871
+ title: M.title,
2872
+ badges: _t(M, C.displayProperties),
2873
+ tagBadges: Lt(M, C.displayProperties, x),
2874
+ onClick: () => g?.(M),
2875
+ onTagChange: h ? (K, ve) => h(M.id, K, ve) : void 0
2876
+ }), re = (M) => ({
2877
+ id: `group::${M.key}`,
2878
+ ticketId: "",
2879
+ title: Qe(M.label),
2880
+ countBadge: M.tickets.length,
2881
+ children: qe(M.tickets, C.ordering, x).map((K) => te(K))
2882
+ }), Z = C.columnGrouping === "none" ? qe(N, C.ordering, x).map((M) => te(M)) : le.map((M) => M.rows.length > 0 ? {
2883
+ id: `group::${M.key}`,
2884
+ ticketId: "",
2885
+ title: Qe(M.label),
2886
+ countBadge: M.tickets.length,
2887
+ children: M.rows.map((K) => ({
2888
+ ...re(K),
2889
+ id: `group::${M.key}::${K.key}`
2890
+ }))
2891
+ } : re(M)), pe = (M) => M.map((K) => ({
2892
+ id: K.id,
2893
+ cardProps: {
2894
+ ticketId: C.displayProperties.includes("id") ? K.ticketId : "",
2895
+ parentPath: K.parentPath,
2896
+ title: K.title,
2897
+ badges: _t(K, C.displayProperties),
2898
+ tagBadges: Lt(K, C.displayProperties, x),
2899
+ onClick: () => g?.(K),
2900
+ onTagChange: h ? (ve, Te) => h(K.id, ve, Te) : void 0
2901
+ }
2902
+ })), se = le.map((M) => {
2903
+ const K = I?.(M.key) ?? {}, ve = qe(M.tickets, C.ordering, x), Te = M.rows.length > 0 ? M.rows.map((Ne) => ({
2904
+ key: Ne.key,
2905
+ label: Qe(Ne.label),
2906
+ items: pe(qe(Ne.tickets, C.ordering, x))
2907
+ })) : void 0;
2908
+ return {
2909
+ id: M.key,
2910
+ label: M.label,
2911
+ color: K.color,
2912
+ canDragIn: K.canDragIn ?? !1,
2913
+ canDragOut: K.canDragOut ?? !1,
2914
+ canCreate: K.canCreate ?? !1,
2915
+ actions: K.actions ?? [],
2916
+ items: pe(ve),
2917
+ groups: Te
2918
+ };
2919
+ });
2920
+ let oe;
2921
+ e[2] !== J || e[3] !== Y || e[4] !== A || e[5] !== q || e[6] !== $ || e[7] !== j ? (oe = /* @__PURE__ */ o(_o, { categories: J, filters: $, countsByCategory: q, onToggleFilterValue: j, onClearFilter: A, onClearAll: Y }), e[2] = J, e[3] = Y, e[4] = A, e[5] = q, e[6] = $, e[7] = j, e[8] = oe) : oe = e[8];
2922
+ let ae;
2923
+ e[9] !== D || e[10] !== _ || e[11] !== P || e[12] !== E || e[13] !== B || e[14] !== O || e[15] !== W || e[16] !== C || e[17] !== U || e[18] !== V ? (ae = /* @__PURE__ */ o(To, { settings: C, groupingOptions: _, orderingOptions: P, displayPropertyOptions: D, onViewModeChange: W, onColumnGroupingChange: E, onRowGroupingChange: O, onOrderingFieldChange: B, onSortDirectionToggle: V, onDisplayPropertyToggle: U }), e[9] = D, e[10] = _, e[11] = P, e[12] = E, e[13] = B, e[14] = O, e[15] = W, e[16] = C, e[17] = U, e[18] = V, e[19] = ae) : ae = e[19];
2924
+ let ce;
2925
+ e[20] !== oe || e[21] !== ae ? (ce = /* @__PURE__ */ y(H, { justifyContent: "flex-end", gap: "2xs", children: [
2926
+ oe,
2927
+ ae
2928
+ ] }), e[20] = oe, e[21] = ae, e[22] = ce) : ce = e[22];
2929
+ let ie;
2930
+ e[23] !== se || e[24] !== T || e[25] !== k || e[26] !== Z || e[27] !== w || e[28] !== S || e[29] !== b || e[30] !== m || e[31] !== v || e[32] !== C.columnGrouping || e[33] !== C.rowGrouping || e[34] !== C.viewMode ? (ie = C.viewMode === "board" ? /* @__PURE__ */ o(G, { flex: "1", minH: "0", children: se.length > 0 ? /* @__PURE__ */ o(Xo, { columns: se, selectedItemId: v, onMoveItem: (M, K) => b?.(M, K, {
2931
+ columnGrouping: C.columnGrouping
2932
+ }), onMoveToGroup: (M, K) => m?.(M, K, {
2933
+ rowGrouping: C.rowGrouping
2934
+ }), onCreateStart: S, onColumnAction: w }) : /* @__PURE__ */ o(at, { title: k, description: T, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : Z.length > 0 ? /* @__PURE__ */ o(Qo, { items: Z, selectedItemId: v }) : /* @__PURE__ */ o(at, { title: k, description: T, borderWidth: "1px", borderRadius: "md" }), e[23] = se, e[24] = T, e[25] = k, e[26] = Z, e[27] = w, e[28] = S, e[29] = b, e[30] = m, e[31] = v, e[32] = C.columnGrouping, e[33] = C.rowGrouping, e[34] = C.viewMode, e[35] = ie) : ie = e[35];
2935
+ let fe;
2936
+ return e[36] !== ce || e[37] !== ie ? (fe = /* @__PURE__ */ y(F, { gap: "sm", height: "100%", minH: "0", children: [
2937
+ ce,
2938
+ ie
2939
+ ] }), e[36] = ce, e[37] = ie, e[38] = fe) : fe = e[38], fe;
2704
2940
  };
2705
- function No(l) {
2941
+ function Si(l) {
2706
2942
  return l.settings;
2707
2943
  }
2708
- function Bo(l) {
2944
+ function yi(l) {
2709
2945
  return l.filters;
2710
2946
  }
2711
- function Ho(l) {
2947
+ function vi(l) {
2712
2948
  return l.setViewMode;
2713
2949
  }
2714
- function Fo(l) {
2950
+ function Ci(l) {
2715
2951
  return l.setColumnGrouping;
2716
2952
  }
2717
- function Vo(l) {
2953
+ function wi(l) {
2718
2954
  return l.setRowGrouping;
2719
2955
  }
2720
- function jo(l) {
2956
+ function Ii(l) {
2721
2957
  return l.setOrderingField;
2722
2958
  }
2723
- function Xo(l) {
2959
+ function ki(l) {
2724
2960
  return l.toggleSortDirection;
2725
2961
  }
2726
- function Uo(l) {
2962
+ function Pi(l) {
2727
2963
  return l.toggleDisplayProperty;
2728
2964
  }
2729
- function Yo(l) {
2965
+ function Ti(l) {
2730
2966
  return l.toggleFilterValue;
2731
2967
  }
2732
- function Ko(l) {
2968
+ function Di(l) {
2733
2969
  return l.clearFilter;
2734
2970
  }
2735
- function qo(l) {
2971
+ function _i(l) {
2736
2972
  return l.clearAllFilters;
2737
2973
  }
2738
- function Jo(l) {
2739
- return l.value;
2740
- }
2741
- const Qo = (l) => {
2974
+ const Li = (l) => {
2742
2975
  if (typeof document > "u") return;
2743
2976
  const e = document.documentElement, n = document.body, t = l === "dark" ? "light" : "dark";
2744
- for (const i of [e, n])
2745
- i && (i.classList.remove(t), i.classList.add(l), i.setAttribute("data-theme", l), i.style.colorScheme = l);
2746
- }, jt = "theme-preference", Xt = pn(null), Zo = () => {
2977
+ for (const r of [e, n])
2978
+ r && (r.classList.remove(t), r.classList.add(l), r.setAttribute("data-theme", l), r.style.colorScheme = l);
2979
+ }, Zt = "theme-preference", en = vn(null), $i = () => {
2747
2980
  if (typeof window > "u") return "light";
2748
- const l = window.localStorage.getItem(jt);
2981
+ const l = window.localStorage.getItem(Zt);
2749
2982
  return l === "dark" || l === "light" ? l : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2750
- }, Fi = (l) => {
2983
+ }, vr = (l) => {
2751
2984
  const e = R(11), {
2752
2985
  children: n,
2753
2986
  initialPreference: t
2754
2987
  } = l;
2755
- let i;
2756
- e[0] !== t ? (i = t === void 0 ? Zo() : t, e[0] = t, e[1] = i) : i = e[1];
2757
- const s = i, [r, a] = ge(s);
2988
+ let r;
2989
+ e[0] !== t ? (r = t === void 0 ? $i() : t, e[0] = t, e[1] = r) : r = e[1];
2990
+ const s = r, [i, a] = me(s);
2758
2991
  let c, d;
2759
- e[2] !== r ? (c = () => {
2760
- Qo(r), typeof window < "u" && window.localStorage.setItem(jt, r);
2761
- }, d = [r], e[2] = r, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), Oe(c, d);
2992
+ e[2] !== i ? (c = () => {
2993
+ Li(i), typeof window < "u" && window.localStorage.setItem(Zt, i);
2994
+ }, d = [i], e[2] = i, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), Me(c, d);
2762
2995
  let u;
2763
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(ei), e[5] = u) : u = e[5];
2996
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(Ri), e[5] = u) : u = e[5];
2764
2997
  const f = u;
2765
2998
  let p;
2766
- e[6] !== r ? (p = {
2767
- themePreference: r,
2999
+ e[6] !== i ? (p = {
3000
+ themePreference: i,
2768
3001
  setThemePreference: a,
2769
3002
  toggleThemePreference: f
2770
- }, e[6] = r, e[7] = p) : p = e[7];
2771
- let h;
2772
- return e[8] !== n || e[9] !== p ? (h = /* @__PURE__ */ o(Xt, { value: p, children: n }), e[8] = n, e[9] = p, e[10] = h) : h = e[10], h;
2773
- }, Vi = () => {
2774
- const l = hn(Xt);
3003
+ }, e[6] = i, e[7] = p) : p = e[7];
3004
+ let g;
3005
+ return e[8] !== n || e[9] !== p ? (g = /* @__PURE__ */ o(en, { value: p, children: n }), e[8] = n, e[9] = p, e[10] = g) : g = e[10], g;
3006
+ }, Cr = () => {
3007
+ const l = Cn(en);
2775
3008
  if (!l)
2776
3009
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
2777
3010
  return l;
2778
3011
  };
2779
- function ei(l) {
3012
+ function Ri(l) {
2780
3013
  return l === "dark" ? "light" : "dark";
2781
3014
  }
2782
3015
  export {
2783
- sn as AlertMessage,
2784
- wi as AttachedPanel,
2785
- ki as Breadcrumb,
2786
- Ii as BubbleButton,
2787
- Pi as BubblePanel,
2788
- Ui as ChakraProvider,
2789
- Zn as Checkbox,
2790
- Di as CodeDiffEditor,
2791
- Ti as CodeEditor,
2792
- ol as ContentPlaceholder,
2793
- _i as ContentPlaceholderLabel,
2794
- Li as DeleteConfirmationModal,
2795
- _t as DiffBubble,
2796
- $i as DiffDrawer,
2797
- Jl as DisplayMenu,
2798
- rt as EmptyState,
2799
- Ot as ErrorBoundary,
2800
- Zl as FilterMenu,
2801
- Ri as FolderPickerDialog,
2802
- cl as HorizontalMenuStack,
2803
- Wi as ItemSection,
2804
- De as MenuItem,
2805
- Oi as OpenSourceNoticesScreen,
2806
- zi as PanelLayout,
2807
- Ai as PanelSectionLayout,
2808
- Mi as Properties,
3016
+ mn as AlertMessage,
3017
+ tr as AttachedPanel,
3018
+ nr as Breadcrumb,
3019
+ lr as BubbleButton,
3020
+ or as BubblePanel,
3021
+ kr as ChakraProvider,
3022
+ Il as Checkbox,
3023
+ rr as CodeDiffEditor,
3024
+ ir as CodeEditor,
3025
+ _l as ContentPlaceholder,
3026
+ sr as ContentPlaceholderLabel,
3027
+ ar as DeleteConfirmationModal,
3028
+ At as DiffBubble,
3029
+ cr as DiffDrawer,
3030
+ To as DisplayMenu,
3031
+ at as EmptyState,
3032
+ Vt as ErrorBoundary,
3033
+ _o as FilterMenu,
3034
+ dr as FolderPickerDialog,
3035
+ El as HorizontalMenuStack,
3036
+ ur as ItemSection,
3037
+ Pe as MenuItem,
3038
+ hr as OpenSourceNoticesScreen,
3039
+ pr as PanelLayout,
3040
+ gr as PanelSectionLayout,
3041
+ mr as Properties,
3042
+ et as ResourceContextMenu,
2809
3043
  ke as ScrollArea,
2810
- yl as SearchableMenu,
2811
- Tl as SessionIndicator,
2812
- Gi as Sidebar,
2813
- Ni as SidebarProjectMenu,
2814
- El as SidebarTree,
2815
- Bi as Switch,
2816
- Fi as ThemePreferenceProvider,
2817
- ho as TicketBoard,
2818
- Ft as TicketCard,
2819
- yo as TicketList,
2820
- Hi as TicketsWorkspace,
2821
- Ei as Toaster,
2822
- xe as Tooltip,
2823
- fo as WorkspaceBadge,
2824
- Qo as applyThemePreference,
2825
- Ki as getFileTypeIcon,
2826
- Zo as getInitialThemePreference,
2827
- Ji as psTheme,
2828
- Pl as resolveSessionIndicatorColor,
2829
- Il as resolveSessionIndicatorIcon,
2830
- ul as toaster,
3044
+ Ul as SearchableMenu,
3045
+ eo as SessionIndicator,
3046
+ br as Sidebar,
3047
+ xr as SidebarProjectMenu,
3048
+ ao as SidebarTree,
3049
+ Sr as Switch,
3050
+ vr as ThemePreferenceProvider,
3051
+ Xo as TicketBoard,
3052
+ Jt as TicketCard,
3053
+ Qo as TicketList,
3054
+ yr as TicketsWorkspace,
3055
+ fr as Toaster,
3056
+ Se as Tooltip,
3057
+ Go as WorkspaceBadge,
3058
+ Li as applyThemePreference,
3059
+ Tr as getFileTypeIcon,
3060
+ $i as getInitialThemePreference,
3061
+ _r as psTheme,
3062
+ Zl as resolveSessionIndicatorColor,
3063
+ Ql as resolveSessionIndicatorIcon,
3064
+ Al as toaster,
2831
3065
  Ae as useSidebarStore,
2832
- Vi as useThemePreference,
2833
- Se as useTicketsWorkspaceStore
3066
+ Cr as useThemePreference,
3067
+ xe as useTicketsWorkspaceStore
2834
3068
  };
2835
3069
  //# sourceMappingURL=index.js.map