@pstdio/ui 0.4.0 → 0.5.1

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 (134) hide show
  1. package/dist/MermaidComponent-x3aKzNXm.js +124 -0
  2. package/dist/MermaidComponent-x3aKzNXm.js.map +1 -0
  3. package/dist/chat-ui.js +1364 -795
  4. package/dist/chat-ui.js.map +1 -1
  5. package/dist/components/chat-ui/agent-types.d.ts +4 -0
  6. package/dist/components/chat-ui/components/chat-input-actions.d.ts +10 -0
  7. package/dist/components/chat-ui/components/chat-input-question-prompt.d.ts +33 -0
  8. package/dist/components/chat-ui/components/chat-input.d.ts +3 -1
  9. package/dist/components/chat-ui/components/chat-panel-sticky-user-message.d.ts +9 -0
  10. package/dist/components/chat-ui/components/chat-panel.d.ts +4 -1
  11. package/dist/components/chat-ui/components/message-parts-renderer.d.ts +1 -0
  12. package/dist/components/chat-ui/components/timeline-tool-blocks.d.ts +14 -0
  13. package/dist/components/chat-ui/components/timeline.d.ts +22 -0
  14. package/dist/components/chat-ui/components/tool-invocation-timeline.d.ts +2 -1
  15. package/dist/components/chat-ui/index.d.ts +1 -0
  16. package/dist/components/chat-ui/tool-rendering/apply-patch-renderer.d.ts +2 -0
  17. package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
  18. package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +10 -7
  19. package/dist/components/chat-ui/tool-rendering/edit-renderer.d.ts +2 -0
  20. package/dist/components/chat-ui/tool-rendering/question-renderer.d.ts +10 -0
  21. package/dist/components/chat-ui/tool-rendering/shared.d.ts +52 -0
  22. package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +6 -0
  23. package/dist/components/chat-ui/tool-rendering/todowrite-renderer.d.ts +10 -0
  24. package/dist/components/chat-ui/utils/get-icon.d.ts +2 -0
  25. package/dist/components/chat-ui/utils/tool-name.d.ts +2 -0
  26. package/dist/components/menu-item.d.ts +2 -1
  27. package/dist/components/radio.d.ts +8 -0
  28. package/dist/components/resource-context-menu.d.ts +20 -0
  29. package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +2 -1
  30. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockActionsPlugin.d.ts +4 -0
  31. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +2 -0
  32. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeHighlightingPlugin.d.ts +1 -0
  33. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +11 -0
  34. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.d.ts +6 -0
  35. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +23 -0
  36. package/dist/components/rich-text/shared/plugins/MermaidPlugin/index.d.ts +1 -0
  37. package/dist/components/rich-text/utils/markdown.d.ts +1 -0
  38. package/dist/components/session-indicator.d.ts +1 -1
  39. package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +5 -1
  40. package/dist/components/tickets/tag-badge.d.ts +10 -0
  41. package/dist/components/tickets/tag-option-icon.d.ts +2 -0
  42. package/dist/components/tickets/ticket-board.d.ts +8 -2
  43. package/dist/components/tickets/ticket-card.d.ts +10 -0
  44. package/dist/components/tickets/ticket-grouping.d.ts +2 -2
  45. package/dist/components/tickets/ticket-list.d.ts +9 -1
  46. package/dist/components/tickets/tickets-workspace.d.ts +11 -3
  47. package/dist/components/tickets/types.d.ts +22 -5
  48. package/dist/components/tickets/workspace-helpers.d.ts +18 -0
  49. package/dist/get-file-type-icon-Bwqf1WXA.js +101 -0
  50. package/dist/get-file-type-icon-Bwqf1WXA.js.map +1 -0
  51. package/dist/index.d.ts +6 -2
  52. package/dist/index.js +1886 -1583
  53. package/dist/index.js.map +1 -1
  54. package/dist/radio-C42qncrD.js +236 -0
  55. package/dist/radio-C42qncrD.js.map +1 -0
  56. package/dist/rich-message-CoXTd5kw.js +1512 -0
  57. package/dist/rich-message-CoXTd5kw.js.map +1 -0
  58. package/dist/rich-text.js +414 -255
  59. package/dist/rich-text.js.map +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/theme/recipes/button.d.ts +6 -0
  62. package/dist/{theme-D0VvFB1Y.js → theme-BLGUwVOD.js} +7 -1
  63. package/dist/theme-BLGUwVOD.js.map +1 -0
  64. package/dist/theme.js +1 -1
  65. package/package.json +3 -1
  66. package/dist/components/attached-panel.utils.test.d.ts +0 -1
  67. package/dist/components/breadcrumb.stories.d.ts +0 -25
  68. package/dist/components/button.stories.d.ts +0 -18
  69. package/dist/components/chat-ui/components/ai-conversation.stories.d.ts +0 -6
  70. package/dist/components/chat-ui/components/ai-message.stories.d.ts +0 -6
  71. package/dist/components/chat-ui/components/ai-response.stories.d.ts +0 -7
  72. package/dist/components/chat-ui/components/attachment-list.stories.d.ts +0 -6
  73. package/dist/components/chat-ui/components/chat-input.stories.d.ts +0 -7
  74. package/dist/components/chat-ui/components/chat-panel-alerts.stories.d.ts +0 -9
  75. package/dist/components/chat-ui/components/chat-panel.stories.d.ts +0 -10
  76. package/dist/components/chat-ui/components/message-parts-renderer.stories.d.ts +0 -9
  77. package/dist/components/chat-ui/components/model-swap-separator.stories.d.ts +0 -6
  78. package/dist/components/chat-ui/components/tool-invocation-timeline.stories.d.ts +0 -6
  79. package/dist/components/chat-ui/components/workspace-hub.stories.d.ts +0 -6
  80. package/dist/components/checkbox.stories.d.ts +0 -15
  81. package/dist/components/column-file-browser.stories.d.ts +0 -15
  82. package/dist/components/data-table/data-table.stories.d.ts +0 -33
  83. package/dist/components/delete-confirmation-modal.stories.d.ts +0 -11
  84. package/dist/components/diff-bubble.stories.d.ts +0 -13
  85. package/dist/components/diff-drawer.stories.d.ts +0 -8
  86. package/dist/components/diff-view-adapter.test.d.ts +0 -1
  87. package/dist/components/drawer-inline.stories.d.ts +0 -8
  88. package/dist/components/empty-state.stories.d.ts +0 -34
  89. package/dist/components/file-selector.stories.d.ts +0 -17
  90. package/dist/components/folder-picker-dialog.stories.d.ts +0 -11
  91. package/dist/components/info-card.stories.d.ts +0 -41
  92. package/dist/components/item-section.stories.d.ts +0 -17
  93. package/dist/components/layout.stories.d.ts +0 -11
  94. package/dist/components/menu-item.stories.d.ts +0 -72
  95. package/dist/components/open-source-notices-screen.stories.d.ts +0 -12
  96. package/dist/components/param-editor-horizontal.stories.d.ts +0 -19
  97. package/dist/components/param-editor.stories.d.ts +0 -24
  98. package/dist/components/properties.stories.d.ts +0 -17
  99. package/dist/components/resource-badge.stories.d.ts +0 -7
  100. package/dist/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.d.ts +0 -9
  101. package/dist/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +0 -7
  102. package/dist/components/rich-text/prompt-input/prompt-input.stories.d.ts +0 -8
  103. package/dist/components/rich-text/rich-message/rich-message.stories.d.ts +0 -6
  104. package/dist/components/rich-text/shared/nodes/DataTableNode.stories.d.ts +0 -7
  105. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +0 -21
  106. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.test.d.ts +0 -1
  107. package/dist/components/rich-text/shared/transformers/markdown-transformers.test.d.ts +0 -1
  108. package/dist/components/scroll-area.stories.d.ts +0 -7
  109. package/dist/components/searchable-menu.stories.d.ts +0 -8
  110. package/dist/components/session-indicator.stories.d.ts +0 -12
  111. package/dist/components/sidebar/sidebar.store.test.d.ts +0 -1
  112. package/dist/components/sidebar/sidebar.stories.d.ts +0 -11
  113. package/dist/components/sidebar-tree/sidebar-tree-searchable-action-menu.stories.d.ts +0 -6
  114. package/dist/components/sidebar-tree/sidebar-tree.stories.d.ts +0 -13
  115. package/dist/components/slider.stories.d.ts +0 -15
  116. package/dist/components/style-guide.stories.d.ts +0 -23
  117. package/dist/components/switch.stories.d.ts +0 -16
  118. package/dist/components/tickets/display-menu.stories.d.ts +0 -6
  119. package/dist/components/tickets/filter-menu.stories.d.ts +0 -6
  120. package/dist/components/tickets/ticket-board.stories.d.ts +0 -5
  121. package/dist/components/tickets/ticket-card.stories.d.ts +0 -18
  122. package/dist/components/tickets/ticket-grouping.test.d.ts +0 -1
  123. package/dist/components/tickets/ticket-list.stories.d.ts +0 -10
  124. package/dist/components/tickets/tickets-workspace.stories.d.ts +0 -10
  125. package/dist/components/tickets/use-workspace-store.test.d.ts +0 -1
  126. package/dist/components/toaster.stories.d.ts +0 -11
  127. package/dist/components/workspace-badge.stories.d.ts +0 -13
  128. package/dist/empty-state-yGspgiPl.js +0 -185
  129. package/dist/empty-state-yGspgiPl.js.map +0 -1
  130. package/dist/get-file-type-icon-CirIyuE8.js +0 -92
  131. package/dist/get-file-type-icon-CirIyuE8.js.map +0 -1
  132. package/dist/rich-message-Bad4GxH2.js +0 -1423
  133. package/dist/rich-message-Bad4GxH2.js.map +0 -1
  134. package/dist/theme-D0VvFB1Y.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,20 +1,21 @@
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 B, Breadcrumb as ye, IconButton as ge, chakra as Dt, Portal as Me, HStack as N, Spacer as _t, Text as z, Dialog as de, CloseButton as an, Stack as H, Button as pe, Grid as cn, AbsoluteCenter as dn, MenuItem as ut, Icon as te, Badge as Se, Menu as j, Collapsible as je, createToaster as un, Toaster as fn, Toast as ze, Spinner as Lt, Link as ft, Separator as it, InputGroup as pn, Input as gn, Avatar as pt, Switch as Pe, Popover as Ce, SegmentGroup as ve, Wrap as $t } from "@chakra-ui/react";
2
+ import { ChakraProvider as $r } from "@chakra-ui/react";
3
+ import { D as hn, b as Rt, E as rt, A as mn, C as bn } from "./radio-C42qncrD.js";
4
+ import { R as Wr, a as Er } from "./radio-C42qncrD.js";
5
+ import { jsxs as y, jsx as o, Fragment as at } from "react/jsx-runtime";
5
6
  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";
7
+ import * as Wt from "react";
8
+ import { useRef as He, useState as he, useEffect as Ae, forwardRef as Et, Component as xn, Children as Sn, isValidElement as ct, cloneElement as yn, Fragment as zt, createContext as vn, useContext as Cn } from "react";
9
+ import { T as xe, S as we } from "./get-file-type-icon-Bwqf1WXA.js";
10
+ import { g as Or } from "./get-file-type-icon-Bwqf1WXA.js";
11
+ import { SquareArrowOutUpRight as wn, Minus as In, ChevronRight as De, ChevronDown as Fe, FileText as kn, FolderOpen as Tn, Folder as Pn, Home as Dn, ChevronUp as _n, Info as Ln, Search as $n, CircleCheck as Rn, CircleAlert as Wn, CircleStop as En, CirclePause as zn, CircleDashed as On, PanelLeftClose as An, Sun as Mn, Moon as Gn, FolderIcon as Bn, Settings2 as Nn, List as Hn, KanbanSquare as Fn, ArrowDownUp as Vn, Filter as jn, GitCommitIcon as Xn, GitBranchIcon as Un, CheckCircle as Kn, Clock as Yn, 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";
12
+ import { Editor as fl, DiffEditor as pl } from "@monaco-editor/react";
13
+ import { useVirtualizer as gl } from "@tanstack/react-virtual";
14
+ import { Outlet as hl } from "@tanstack/react-router";
15
+ import { useStore as Ot } from "zustand";
16
+ import { persist as At, createJSONStorage as Mt } from "zustand/middleware";
17
+ import { createStore as Gt } from "zustand/vanilla";
18
+ import { useReactTable as ml, getExpandedRowModel as bl, getCoreRowModel as xl, flexRender as Sl } from "@tanstack/react-table";
18
19
  import "@fontsource/inter/400.css";
19
20
  import "@fontsource/inter/500.css";
20
21
  import "@fontsource/playfair-display/400.css";
@@ -23,14 +24,14 @@ import "@fontsource/playfair-display/700.css";
23
24
  import "@fontsource/onest/400.css";
24
25
  import "@fontsource/onest/500.css";
25
26
  import "@fontsource/onest/700.css";
26
- import { t as Ji } from "./theme-D0VvFB1Y.js";
27
- const Kn = (l, e) => {
27
+ import { t as Mr } from "./theme-BLGUwVOD.js";
28
+ const yl = (l, e) => {
28
29
  const {
29
30
  min: n,
30
31
  max: t
31
32
  } = e;
32
33
  return Math.min(Math.max(l, n), t);
33
- }, qn = "20rem", pt = 320, wi = (l) => {
34
+ }, vl = "20rem", gt = 320, sr = (l) => {
34
35
  const e = R(23);
35
36
  let n, t, i, s, r, a;
36
37
  e[0] !== l ? ({
@@ -41,44 +42,44 @@ const Kn = (l, e) => {
41
42
  resizable: a,
42
43
  ...s
43
44
  } = 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) => {
49
- if (!d || !u.current)
45
+ const c = r === void 0 ? "28rem" : r, u = a === void 0 ? !1 : a, d = He(null), f = He(Cl), [p, g] = he(null), h = i ?? (u ? vl : c), b = p === null ? c : `${p}px`;
46
+ let m, S;
47
+ 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]), Ae(m, S);
48
+ let w;
49
+ e[9] !== u ? (w = (P) => {
50
+ if (!u || !d.current)
50
51
  return;
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
+ P.preventDefault();
53
+ const L = d.current, _ = P.clientX, k = L.getBoundingClientRect().width, D = window.getComputedStyle(L), C = Number.parseFloat(D.minWidth) || gt, $ = L.parentElement?.getBoundingClientRect().width ?? window.innerWidth, W = Math.max(C, $ - gt), E = document.body.style.cursor, O = document.body.style.userSelect, M = (X) => {
54
+ const V = X.clientX - _, A = yl(k - V, {
55
+ min: C,
56
+ max: W
56
57
  });
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;
58
+ g(A);
59
+ }, F = () => {
60
+ window.removeEventListener("pointermove", M), window.removeEventListener("pointerup", F), document.body.style.cursor = E, document.body.style.userSelect = O, f.current = wl;
60
61
  };
61
- f.current = X, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", window.addEventListener("pointermove", H), window.addEventListener("pointerup", X, {
62
+ f.current = F, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", window.addEventListener("pointermove", M), window.addEventListener("pointerup", F, {
62
63
  once: !0
63
64
  });
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,
65
+ }, e[9] = u, e[10] = w) : w = e[10];
66
+ const I = w;
67
+ let x;
68
+ e[11] !== I || e[12] !== u ? (x = u ? /* @__PURE__ */ o(B, { 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] = u, e[13] = x) : x = e[13];
69
+ let v;
70
+ e[14] !== n ? (v = /* @__PURE__ */ o(ue, { flex: "1", minH: 0, direction: "column", children: n }), e[14] = n, e[15] = v) : v = e[15];
71
+ let T;
72
+ return e[16] !== t || e[17] !== h || e[18] !== b || e[19] !== s || e[20] !== x || e[21] !== v ? (T = /* @__PURE__ */ y(ue, { ref: d, direction: "column", position: "relative", flexShrink: 0, w: b, minW: h, h: "100%", borderLeftWidth: "1px", bg: "bg", overflow: "hidden", ...s, children: [
73
+ x,
73
74
  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;
75
+ v
76
+ ] }), e[16] = t, e[17] = h, e[18] = b, e[19] = s, e[20] = x, e[21] = v, e[22] = T) : T = e[22], T;
76
77
  };
77
- function Jn() {
78
+ function Cl() {
78
79
  }
79
- function Qn() {
80
+ function wl() {
80
81
  }
81
- const ki = at.forwardRef(function(e, n) {
82
+ const ar = Wt.forwardRef(function(e, n) {
82
83
  const t = R(21);
83
84
  let i, s, r, a, c;
84
85
  t[0] !== e ? ({
@@ -88,24 +89,24 @@ const ki = at.forwardRef(function(e, n) {
88
89
  linkComponent: i,
89
90
  ...r
90
91
  } = 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]);
91
- let d;
92
+ let u;
92
93
  if (t[6] !== i || t[7] !== s || t[8] !== a) {
93
94
  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;
95
+ t[10] !== i || t[11] !== s.length || t[12] !== a ? (p = (g, h) => {
96
+ const b = h === s.length - 1, m = !!(g.url || g.onClick);
97
+ let S;
98
+ return b && !m ? S = /* @__PURE__ */ o(ye.CurrentLink, { children: g.title }) : g.url ? S = i ? /* @__PURE__ */ o(ye.Link, { asChild: !0, children: /* @__PURE__ */ o(i, { to: g.url, children: g.title }) }) : /* @__PURE__ */ o(ye.Link, { href: g.url, children: g.title }) : g.onClick ? S = /* @__PURE__ */ o(ye.Link, { as: "button", type: "button", onClick: g.onClick, children: g.title }) : S = /* @__PURE__ */ o(ye.Link, { children: g.title }), /* @__PURE__ */ y(ye.Item, { children: [
99
+ S,
100
+ b ? null : /* @__PURE__ */ o(ye.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
101
+ ] }, h);
102
+ }, t[10] = i, t[11] = s.length, t[12] = a, t[13] = p) : p = t[13], u = s.map(p), t[6] = i, t[7] = s, t[8] = a, t[9] = u;
102
103
  } else
103
- d = t[9];
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];
104
+ u = t[9];
105
+ let d;
106
+ t[14] !== c || t[15] !== u ? (d = /* @__PURE__ */ o(ye.List, { gap: c, children: u }), t[14] = c, t[15] = u, t[16] = d) : d = t[16];
106
107
  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) {
108
+ return t[17] !== n || t[18] !== r || t[19] !== d ? (f = /* @__PURE__ */ o(ye.Root, { ref: n, ...r, children: d }), t[17] = n, t[18] = r, t[19] = d, t[20] = f) : f = t[20], f;
109
+ }), cr = Et(function(e, n) {
109
110
  const t = R(21);
110
111
  let i, s, r, a, c;
111
112
  t[0] !== e ? ({
@@ -115,98 +116,72 @@ const ki = at.forwardRef(function(e, n) {
115
116
  tooltip: c,
116
117
  ...r
117
118
  } = 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]);
118
- const d = a === void 0 ? !1 : a, u = d ? "none" : "mid";
119
+ const u = a === void 0 ? !1 : a, d = u ? "none" : "mid";
119
120
  let f;
120
121
  t[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
121
122
  borderColor: "border.accent",
122
123
  boxShadow: "mid"
123
124
  }, t[6] = f) : f = t[6];
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];
125
+ const p = u ? "none" : "mid";
129
126
  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;
127
+ t[7] !== p ? (g = {
128
+ boxShadow: p
129
+ }, t[7] = p, t[8] = g) : g = t[8];
130
+ let h;
131
+ t[9] !== i || t[10] !== n || t[11] !== r || t[12] !== d || t[13] !== g ? (h = /* @__PURE__ */ o(ge, { ref: n, rounded: "full", size: "lg", borderWidth: "1px", boxShadow: d, transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: f, _active: g, ...r, children: i }), t[9] = i, t[10] = n, t[11] = r, t[12] = d, t[13] = g, t[14] = h) : h = t[14];
132
+ const b = h;
132
133
  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) {
134
+ t[15] !== b || t[16] !== c ? (m = c ? /* @__PURE__ */ o(xe, { content: c, children: b }) : b, t[15] = b, t[16] = c, t[17] = m) : m = t[17];
135
+ let S;
136
+ return t[18] !== s || t[19] !== m ? (S = /* @__PURE__ */ o(Dt.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;
137
+ }), dr = Et(function(e, n) {
137
138
  const t = R(28), {
138
139
  isOpen: i,
139
140
  title: s,
140
141
  menu: r,
141
142
  onClose: a,
142
143
  closeLabel: c,
143
- onPopOut: d,
144
- popOutLabel: u,
144
+ onPopOut: u,
145
+ popOutLabel: d,
145
146
  width: f,
146
147
  height: p,
147
- containerProps: h,
148
- testId: g,
149
- "aria-label": S,
148
+ containerProps: g,
149
+ testId: h,
150
+ "aria-label": b,
150
151
  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)
152
+ } = e, S = i === void 0 ? !1 : i, w = f === void 0 ? "28rem" : f, I = p === void 0 ? "38rem" : p;
153
+ if (!S)
153
154
  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];
155
+ const x = b ?? s;
156
+ let v;
157
+ t[0] !== r ? (v = /* @__PURE__ */ o(N, { gap: "1", minW: "0", children: r }), t[0] = r, t[1] = v) : v = t[1];
159
158
  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];
159
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ o(_t, {}), t[2] = T) : T = t[2];
163
160
  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];
161
+ t[3] !== u || t[4] !== d ? (P = u ? /* @__PURE__ */ o(xe, { content: d, children: /* @__PURE__ */ o(ge, { size: "xs", variant: "ghost", "aria-label": d, onClick: u, children: /* @__PURE__ */ o(wn, { size: 16 }) }) }) : null, t[3] = u, t[4] = d, t[5] = P) : P = t[5];
176
162
  let L;
177
- t[17] !== _ || t[18] !== w ? (L = /* @__PURE__ */ x(fe, { direction: "column", h: "full", children: [
178
- w,
163
+ t[6] !== c || t[7] !== a ? (L = a ? /* @__PURE__ */ o(xe, { content: c, children: /* @__PURE__ */ o(ge, { 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];
164
+ let _;
165
+ t[9] !== P || t[10] !== L ? (_ = /* @__PURE__ */ y(N, { gap: "1", children: [
166
+ P,
167
+ L
168
+ ] }), t[9] = P, t[10] = L, t[11] = _) : _ = t[11];
169
+ let k;
170
+ t[12] !== v || t[13] !== _ ? (k = /* @__PURE__ */ y(N, { alignItems: "center", gap: "sm", px: "xs", pt: "md", pb: "xs", children: [
171
+ v,
172
+ T,
179
173
  _
180
- ] }), t[17] = _, t[18] = w, t[19] = L) : L = t[19];
174
+ ] }), t[12] = v, t[13] = _, t[14] = k) : k = t[14];
175
+ let D;
176
+ t[15] !== m ? (D = /* @__PURE__ */ o(B, { flex: "1", minH: 0, display: "flex", flexDirection: "column", gap: "sm", children: m }), t[15] = m, t[16] = D) : D = t[16];
177
+ let C;
178
+ t[17] !== D || t[18] !== k ? (C = /* @__PURE__ */ y(ue, { direction: "column", h: "full", children: [
179
+ k,
180
+ D
181
+ ] }), t[17] = D, t[18] = k, t[19] = C) : C = t[19];
181
182
  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) {
184
- const t = R(26);
185
- let i, s, r, a, c, d;
186
- t[0] !== e ? ({
187
- icon: s,
188
- children: i,
189
- inputProps: r,
190
- rootRef: c,
191
- disabled: d,
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]);
194
- const u = d === void 0 ? !1 : d, f = u ? "not-allowed" : "pointer";
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];
199
- 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];
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: [
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 = {
183
+ return t[20] !== g || t[21] !== I || t[22] !== n || t[23] !== C || t[24] !== x || t[25] !== h || t[26] !== w ? ($ = /* @__PURE__ */ o(Me, { children: /* @__PURE__ */ o(Dt.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], $;
184
+ }), Bt = {
210
185
  base: "vs-dark",
211
186
  inherit: !0,
212
187
  rules: [],
@@ -219,7 +194,7 @@ const ki = at.forwardRef(function(e, n) {
219
194
  "editorIndentGuide.background": "#404040",
220
195
  "editorIndentGuide.activeBackground": "#707070"
221
196
  }
222
- }, Ti = (l) => {
197
+ }, ur = (l) => {
223
198
  const e = R(15), {
224
199
  defaultCode: n,
225
200
  code: t,
@@ -228,14 +203,14 @@ const ki = at.forwardRef(function(e, n) {
228
203
  language: r,
229
204
  onChange: a,
230
205
  disableScroll: c
231
- } = l, d = r === void 0 ? "javascript" : r;
232
- let u;
233
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
206
+ } = l, u = r === void 0 ? "javascript" : r;
207
+ let d;
208
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
234
209
  enabled: !1
235
- }, e[0] = u) : u = e[0];
210
+ }, e[0] = d) : d = e[0];
236
211
  const f = !s, p = i ? "on" : "off";
237
- let h;
238
- e[1] !== c ? (h = c ? {
212
+ let g;
213
+ e[1] !== c ? (g = c ? {
239
214
  scrollbar: {
240
215
  vertical: "hidden",
241
216
  horizontal: "hidden",
@@ -245,24 +220,24 @@ const ki = at.forwardRef(function(e, n) {
245
220
  scrollBeyondLastLine: !1,
246
221
  mouseWheelScrollSensitivity: 0,
247
222
  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 = {
223
+ } : {}, e[1] = c, e[2] = g) : g = e[2];
224
+ let h;
225
+ e[3] !== f || e[4] !== p || e[5] !== g ? (h = {
251
226
  tabSize: 2,
252
- minimap: u,
227
+ minimap: d,
253
228
  fontSize: 12,
254
229
  readOnly: f,
255
230
  lineNumbers: p,
256
- ...h
257
- }, e[3] = f, e[4] = p, e[5] = h, e[6] = g) : g = e[6];
258
- const S = g;
231
+ ...g
232
+ }, e[3] = f, e[4] = p, e[5] = g, e[6] = h) : h = e[6];
233
+ const b = h;
259
234
  let m;
260
- e[7] !== a ? (m = (C) => {
261
- a?.(C || "");
235
+ e[7] !== a ? (m = (w) => {
236
+ a?.(w || "");
262
237
  }, 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) => {
238
+ let S;
239
+ return e[9] !== t || e[10] !== n || e[11] !== u || e[12] !== b || e[13] !== m ? (S = /* @__PURE__ */ o(fl, { width: "100%", height: "100%", language: u, defaultValue: n, value: t, theme: "ps-theme", options: b, onChange: m, beforeMount: Il, onMount: kl }), e[9] = t, e[10] = n, e[11] = u, e[12] = b, e[13] = m, e[14] = S) : S = e[14], S;
240
+ }, fr = (l) => {
266
241
  const e = R(11), {
267
242
  original: n,
268
243
  modified: t,
@@ -274,9 +249,9 @@ const ki = at.forwardRef(function(e, n) {
274
249
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
275
250
  enabled: !1
276
251
  }, e[0] = c) : c = e[0];
277
- const d = i ? "on" : "off";
278
- let u;
279
- e[1] !== r ? (u = r ? {
252
+ const u = i ? "on" : "off";
253
+ let d;
254
+ e[1] !== r ? (d = r ? {
280
255
  scrollbar: {
281
256
  vertical: "hidden",
282
257
  horizontal: "hidden",
@@ -286,9 +261,9 @@ const ki = at.forwardRef(function(e, n) {
286
261
  scrollBeyondLastLine: !1,
287
262
  mouseWheelScrollSensitivity: 0,
288
263
  overviewRulerLanes: 0
289
- } : {}, e[1] = r, e[2] = u) : u = e[2];
264
+ } : {}, e[1] = r, e[2] = d) : d = e[2];
290
265
  let f;
291
- e[3] !== d || e[4] !== u ? (f = {
266
+ e[3] !== u || e[4] !== d ? (f = {
292
267
  tabSize: 2,
293
268
  minimap: c,
294
269
  fontSize: 12,
@@ -296,32 +271,32 @@ const ki = at.forwardRef(function(e, n) {
296
271
  originalEditable: !1,
297
272
  renderSideBySide: !0,
298
273
  useInlineViewWhenSpaceIsTooSmall: !0,
299
- lineNumbers: d,
300
- ...u
301
- }, e[3] = d, e[4] = u, e[5] = f) : f = e[5];
274
+ lineNumbers: u,
275
+ ...d
276
+ }, e[3] = u, e[4] = d, e[5] = f) : f = e[5];
302
277
  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;
278
+ let g;
279
+ 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: Pl }), e[6] = a, e[7] = t, e[8] = p, e[9] = n, e[10] = g) : g = e[10], g;
305
280
  };
306
- function el(l) {
307
- l.editor.defineTheme("ps-theme", At);
281
+ function Il(l) {
282
+ l.editor.defineTheme("ps-theme", Bt);
308
283
  }
309
- async function tl(l, e) {
284
+ async function kl(l, e) {
310
285
  e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
311
286
  jsx: e.languages.typescript.JsxEmit.React
312
287
  }), l.addCommand(e.KeyMod.CtrlCmd | e.KeyCode.KeyS, async () => {
313
288
  await l.getAction("editor.action.formatDocument")?.run();
314
289
  }), await l.getAction("editor.action.formatDocument")?.run();
315
290
  }
316
- function nl(l) {
317
- l.editor.defineTheme("ps-theme", At);
291
+ function Tl(l) {
292
+ l.editor.defineTheme("ps-theme", Bt);
318
293
  }
319
- function ll(l, e) {
294
+ function Pl(l, e) {
320
295
  e.editor.setTheme("ps-theme"), e.languages.typescript.typescriptDefaults.setCompilerOptions({
321
296
  jsx: e.languages.typescript.JsxEmit.React
322
297
  });
323
298
  }
324
- const ol = (l) => {
299
+ const Dl = (l) => {
325
300
  const e = R(3);
326
301
  let n;
327
302
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
@@ -331,20 +306,20 @@ const ol = (l) => {
331
306
  width: "100%"
332
307
  }, e[0] = n) : n = e[0];
333
308
  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) => {
309
+ return e[1] !== l ? (t = /* @__PURE__ */ o(B, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
310
+ }, pr = (l) => {
336
311
  const e = R(2);
337
312
  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), {
313
+ return e[0] !== l ? (n = /* @__PURE__ */ o(B, { 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;
314
+ }, gr = (l) => {
315
+ const [e, n] = he(!1), {
341
316
  headline: t,
342
317
  buttonText: i,
343
318
  notificationText: s,
344
319
  onDelete: r,
345
320
  open: a,
346
321
  onClose: c
347
- } = l, d = async () => {
322
+ } = l, u = async () => {
348
323
  n(!0);
349
324
  try {
350
325
  await r(), c();
@@ -353,110 +328,110 @@ const ol = (l) => {
353
328
  n(!1);
354
329
  }
355
330
  };
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" }) })
331
+ return /* @__PURE__ */ y(de.Root, { open: a, onOpenChange: c, children: [
332
+ /* @__PURE__ */ o(de.Backdrop, {}),
333
+ /* @__PURE__ */ o(de.Positioner, { children: /* @__PURE__ */ y(de.Content, { children: [
334
+ /* @__PURE__ */ y(de.Header, { children: [
335
+ /* @__PURE__ */ o(z, { textStyle: "heading/M", children: t }),
336
+ /* @__PURE__ */ o(de.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ o(an, { size: "sm" }) })
362
337
  ] }),
363
- /* @__PURE__ */ o(se.Body, { children: s }),
364
- /* @__PURE__ */ o(se.Footer, { children: /* @__PURE__ */ x(B, { direction: "row", gap: "1", children: [
338
+ /* @__PURE__ */ o(de.Body, { children: s }),
339
+ /* @__PURE__ */ o(de.Footer, { children: /* @__PURE__ */ y(H, { direction: "row", gap: "1", children: [
365
340
  /* @__PURE__ */ o(pe, { onClick: c, children: "Close" }),
366
- /* @__PURE__ */ o(pe, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: i })
341
+ /* @__PURE__ */ o(pe, { loading: e, variant: "solid", colorPalette: "red", onClick: u, children: i })
367
342
  ] }) })
368
343
  ] }) })
369
344
  ] });
370
- }, il = (l) => {
345
+ }, _l = (l) => {
371
346
  const e = R(42), {
372
347
  diff: n,
373
348
  isSelected: t,
374
349
  isExpanded: i,
375
350
  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 = {
351
+ } = l, r = t === void 0 ? !1 : t, a = i === void 0 ? !0 : i, c = n.newPath || n.oldPath || "unknown", u = n.additions ?? 0, d = n.deletions ?? 0, f = r ? "border.accent" : "border.muted", p = r ? "bg.active" : "bg";
352
+ let g;
353
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
379
354
  borderColor: "border.accent"
380
- }, e[0] = h) : h = e[0];
381
- const g = a ? "1px solid" : "none", S = r ? "bg.active" : "bg.subtle";
355
+ }, e[0] = g) : g = e[0];
356
+ const h = a ? "1px solid" : "none", b = r ? "bg.active" : "bg.subtle";
382
357
  let m;
383
- e[1] !== S ? (m = {
384
- bg: S
385
- }, e[1] = S, e[2] = m) : m = e[2];
386
- let v;
387
- e[3] !== s ? (v = () => s?.(), e[3] = s, e[4] = v) : v = e[4];
388
- const C = a ? "Collapse" : "Expand";
389
- 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];
358
+ e[1] !== b ? (m = {
359
+ bg: b
360
+ }, e[1] = b, e[2] = m) : m = e[2];
361
+ let S;
362
+ e[3] !== s ? (S = () => s?.(), e[3] = s, e[4] = S) : S = e[4];
363
+ const w = a ? "Collapse" : "Expand";
395
364
  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 }) }),
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];
365
+ e[5] !== s ? (I = (C) => {
366
+ C.stopPropagation(), s?.();
367
+ }, e[5] = s, e[6] = I) : I = e[6];
368
+ let x;
369
+ e[7] !== a ? (x = a ? /* @__PURE__ */ o(Fe, { size: 16 }) : /* @__PURE__ */ o(De, { size: 16 }), e[7] = a, e[8] = x) : x = e[8];
370
+ let v;
371
+ e[9] !== I || e[10] !== x || e[11] !== w ? (v = /* @__PURE__ */ o(ge, { "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];
403
372
  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];
373
+ e[13] !== n.change || e[14] !== n.newPath || e[15] !== n.oldPath || e[16] !== c ? (T = n.change === "renamed" ? /* @__PURE__ */ y(z, { as: "span", textStyle: "sm", children: [
374
+ /* @__PURE__ */ o(z, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
375
+ /* @__PURE__ */ o(B, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ o(De, { size: 12 }) }),
376
+ n.newPath
377
+ ] }) : 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] = T) : T = e[17];
407
378
  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];
379
+ e[18] !== c || e[19] !== T ? (P = /* @__PURE__ */ o(B, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: c, children: T }), e[18] = c, e[19] = T, e[20] = P) : P = e[20];
380
+ let L;
381
+ e[21] !== u || e[22] !== d ? (L = /* @__PURE__ */ o(B, { flexShrink: 0, children: /* @__PURE__ */ o(Rt, { variant: "ghost", additions: u, deletions: d }) }), e[21] = u, e[22] = d, e[23] = L) : L = e[23];
415
382
  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: [
383
+ e[24] !== v || e[25] !== P || 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: [
384
+ v,
417
385
  P,
418
- w
419
- ] }), e[37] = P, e[38] = w, e[39] = f, e[40] = p, e[41] = _) : _ = e[41], _;
386
+ L
387
+ ] }), e[24] = v, e[25] = P, e[26] = L, e[27] = h, e[28] = m, e[29] = S, e[30] = _) : _ = e[30];
388
+ let k;
389
+ e[31] !== n.newContent || e[32] !== n.newPath || e[33] !== n.oldContent || e[34] !== n.oldPath || e[35] !== a ? (k = a && /* @__PURE__ */ o(B, { 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] = k) : k = e[36];
390
+ let D;
391
+ return e[37] !== _ || e[38] !== k || e[39] !== f || e[40] !== p ? (D = /* @__PURE__ */ y(B, { border: "1px solid", borderColor: f, borderRadius: "xs", overflow: "hidden", bg: p, width: "100%", maxW: "100%", transition: "border-color 0.14s ease", _hover: g, children: [
392
+ _,
393
+ k
394
+ ] }), e[37] = _, e[38] = k, e[39] = f, e[40] = p, e[41] = D) : D = e[41], D;
420
395
  }, ht = (l) => l.newPath ?? l.oldPath ?? "unknown";
421
- function $i(l) {
396
+ function hr(l) {
422
397
  const {
423
398
  diffs: e,
424
399
  selectedDiffPath: n = null
425
- } = l, t = Be(null), [i, s] = ge(() => /* @__PURE__ */ new Set()), r = Fn({
400
+ } = l, t = He(null), [i, s] = he(() => /* @__PURE__ */ new Set()), r = gl({
426
401
  count: e.length,
427
402
  getScrollElement: () => t.current,
428
403
  estimateSize: () => 42,
429
404
  overscan: 5
430
405
  });
431
- if (Oe(() => {
406
+ if (Ae(() => {
432
407
  if (!n) return;
433
- const c = e.findIndex((d) => ht(d) === n);
408
+ const c = e.findIndex((u) => ht(u) === n);
434
409
  c < 0 || r.scrollToIndex(c, {
435
410
  align: "start"
436
411
  });
437
412
  }, [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: {
413
+ return /* @__PURE__ */ o(H, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ o(we, { flex: "1", minH: "0", contentProps: {
439
414
  p: "xs",
440
415
  spaceY: "xs"
441
416
  }, children: /* @__PURE__ */ o(rt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) });
442
417
  const a = (c) => {
443
- s((d) => {
444
- const u = new Set(d);
445
- return u.has(c) ? u.delete(c) : u.add(c), u;
418
+ s((u) => {
419
+ const d = new Set(u);
420
+ return d.has(c) ? d.delete(c) : d.add(c), d;
446
421
  });
447
422
  };
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: {
423
+ return /* @__PURE__ */ o(H, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ o(B, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ o(we, { position: "absolute", inset: "0", viewportRef: t, contentProps: {
449
424
  p: "xs"
450
- }, children: /* @__PURE__ */ o(V, { position: "relative", width: "100%", style: {
425
+ }, children: /* @__PURE__ */ o(B, { position: "relative", width: "100%", style: {
451
426
  height: r.getTotalSize()
452
427
  }, 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: {
428
+ const u = e[c.index], d = ht(u);
429
+ return /* @__PURE__ */ o(B, { "data-index": c.index, ref: r.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
455
430
  transform: `translateY(${c.start}px)`
456
- }, children: /* @__PURE__ */ o(il, { diff: d, isSelected: n === u, isExpanded: !i.has(u), onToggleExpanded: () => a(u) }) }, c.key);
431
+ }, children: /* @__PURE__ */ o(_l, { diff: u, isSelected: n === d, isExpanded: !i.has(d), onToggleExpanded: () => a(d) }) }, c.key);
457
432
  }) }) }) }) });
458
433
  }
459
- class Ot extends an {
434
+ class Nt extends xn {
460
435
  state = {
461
436
  error: null
462
437
  };
@@ -481,30 +456,30 @@ class Ot extends an {
481
456
  } = this.props, {
482
457
  error: i
483
458
  } = this.state;
484
- return i ? n || /* @__PURE__ */ o(rl, { error: i, label: t, onReset: this.handleReset }) : e;
459
+ return i ? n || /* @__PURE__ */ o(Ll, { error: i, label: t, onReset: this.handleReset }) : e;
485
460
  }
486
461
  }
487
- const rl = (l) => {
462
+ const Ll = (l) => {
488
463
  const e = R(12), {
489
464
  error: n,
490
465
  label: t,
491
466
  onReset: i
492
467
  } = l, s = t ?? "Something went wrong";
493
468
  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];
469
+ e[0] !== s ? (r = /* @__PURE__ */ o(z, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = r) : r = e[1];
495
470
  const a = n.message || "An unexpected error occurred while rendering this section.";
496
471
  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];
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];
472
+ e[2] !== a ? (c = /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
500
473
  let u;
501
- e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ x(B, { gap: "sm", children: [
474
+ e[4] !== i ? (u = i ? /* @__PURE__ */ o(pe, { size: "sm", variant: "solid", colorScheme: "black", onClick: i, children: "Try again" }) : null, e[4] = i, e[5] = u) : u = e[5];
475
+ let d;
476
+ e[6] !== c || e[7] !== u ? (d = /* @__PURE__ */ y(H, { gap: "sm", children: [
502
477
  c,
503
- d
504
- ] }), e[6] = c, e[7] = d, e[8] = u) : u = e[8];
478
+ u
479
+ ] }), e[6] = c, e[7] = u, e[8] = d) : d = e[8];
505
480
  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 = {
481
+ return e[9] !== r || e[10] !== d ? (f = /* @__PURE__ */ o(Dl, { height: "100%", width: "100%", children: /* @__PURE__ */ o(dn, { children: /* @__PURE__ */ o(mn, { status: "error", title: r, children: d }) }) }), e[9] = r, e[10] = d, e[11] = f) : f = e[11], f;
482
+ }, Ht = {
508
483
  default: {
509
484
  paddingX: "sm",
510
485
  paddingY: "xs",
@@ -523,182 +498,194 @@ const rl = (l) => {
523
498
  secondaryMarginLeft: "0",
524
499
  secondaryTextStyle: "label/XS/regular"
525
500
  }
526
- }, gt = (l) => {
527
- const e = R(48), {
501
+ }, mt = (l) => {
502
+ const e = R(51), {
528
503
  primaryLabel: n,
529
504
  tooltipLabel: t,
530
505
  secondaryLabel: i,
531
- leftIcon: s,
532
- rightIcon: r,
533
- leftIconColor: a,
534
- rightIconColor: c,
506
+ shortcutLabel: s,
507
+ leftIcon: r,
508
+ rightIcon: a,
509
+ leftIconColor: c,
510
+ rightIconColor: u,
535
511
  leftIconSize: d,
536
- rightIconSize: u,
537
- rightIconAriaLabel: f,
538
- rightTooltipLabel: p,
512
+ rightIconSize: f,
513
+ rightIconAriaLabel: p,
514
+ rightTooltipLabel: g,
539
515
  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 = {
516
+ tagLabel: b,
517
+ tagColorPalette: m,
518
+ tagVariant: S,
519
+ variant: w
520
+ } = l, I = Ht[w], x = !!(h && a);
521
+ let v;
522
+ e[0] !== x ? (v = (J) => {
523
+ x && (J.preventDefault(), J.stopPropagation());
524
+ }, e[0] = x, e[1] = v) : v = e[1];
525
+ const T = v;
526
+ let P;
527
+ e[2] !== x || e[3] !== h ? (P = (J) => {
528
+ !x || !h || (J.preventDefault(), J.stopPropagation(), h());
529
+ }, e[2] = x, e[3] = h, e[4] = P) : P = e[4];
530
+ const L = P, _ = $l;
531
+ let k;
532
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
557
533
  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];
534
+ }, e[5] = k) : k = e[5];
535
+ const D = !t;
536
+ let C;
537
+ e[6] !== r || e[7] !== c || e[8] !== d ? (C = _(r, d, c), e[6] = r, e[7] = c, e[8] = d, e[9] = C) : C = e[9];
569
538
  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,
539
+ 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];
540
+ let W;
541
+ e[13] !== C || e[14] !== $ ? (W = /* @__PURE__ */ y(ue, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
542
+ C,
574
543
  $
575
- ] }), e[20] = L, e[21] = $, e[22] = z) : z = e[22];
544
+ ] }), e[13] = C, e[14] = $, e[15] = W) : W = e[15];
545
+ let E;
546
+ e[16] !== i || e[17] !== I.secondaryMarginLeft || e[18] !== I.secondaryTextStyle ? (E = i && /* @__PURE__ */ o(z, { ml: I.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: I.secondaryTextStyle, color: "fg.menu-item.secondary", children: i }), e[16] = i, e[17] = I.secondaryMarginLeft, e[18] = I.secondaryTextStyle, e[19] = E) : E = e[19];
576
547
  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: {
580
- 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];
548
+ e[20] !== W || e[21] !== E ? (O = /* @__PURE__ */ y(H, { gap: "2xs", children: [
549
+ W,
550
+ E
551
+ ] }), e[20] = W, e[21] = E, e[22] = O) : O = e[22];
552
+ let M;
553
+ e[23] !== D || e[24] !== O || e[25] !== t ? (M = /* @__PURE__ */ o(xe, { positioning: k, content: t, disabled: D, children: O }), e[23] = D, e[24] = O, e[25] = t, e[26] = M) : M = e[26];
589
554
  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];
555
+ e[27] !== s ? (F = s ? /* @__PURE__ */ o(ue, { alignItems: "center", children: s }) : null, e[27] = s, e[28] = F) : F = e[28];
556
+ let X;
557
+ e[29] !== L || e[30] !== T || e[31] !== x || e[32] !== a || e[33] !== p || e[34] !== u || e[35] !== f || e[36] !== g ? (X = a ? /* @__PURE__ */ o(xe, { positioning: {
558
+ placement: "right"
559
+ }, 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: T, onClick: L, children: _(a, f, u) }) }) : null, e[29] = L, e[30] = T, e[31] = x, e[32] = a, e[33] = p, e[34] = u, e[35] = f, e[36] = g, e[37] = X) : X = e[37];
560
+ let V;
561
+ e[38] !== F || e[39] !== X ? (V = /* @__PURE__ */ y(ue, { justifyContent: "flex-end", alignItems: "center", gap: "xs", color: "fg.menu-item.default", children: [
562
+ F,
563
+ X
564
+ ] }), e[38] = F, e[39] = X, e[40] = V) : V = e[40];
591
565
  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), {
566
+ e[41] !== V || e[42] !== M ? (A = /* @__PURE__ */ y(ue, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
567
+ M,
568
+ V
569
+ ] }), e[41] = V, e[42] = M, e[43] = A) : A = e[43];
570
+ let K;
571
+ e[44] !== m || e[45] !== b || e[46] !== S ? (K = b ? /* @__PURE__ */ o(Se, { 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] = K) : K = e[47];
572
+ let G;
573
+ return e[48] !== A || e[49] !== K ? (G = /* @__PURE__ */ y(at, { children: [
574
+ A,
575
+ K
576
+ ] }), e[48] = A, e[49] = K, e[50] = G) : G = e[50], G;
577
+ }, Ie = (l) => {
578
+ const e = R(49), {
598
579
  id: n,
599
580
  children: t,
600
581
  asChild: i,
601
582
  primaryLabel: s,
602
583
  tooltipLabel: r,
603
584
  secondaryLabel: a,
604
- leftIcon: c,
585
+ shortcutLabel: c,
586
+ leftIcon: u,
605
587
  rightIcon: d,
606
- leftIconColor: u,
607
- rightIconColor: f,
608
- leftIconSize: p,
588
+ leftIconColor: f,
589
+ rightIconColor: p,
590
+ leftIconSize: g,
609
591
  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,
621
- 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,
592
+ rightIconAriaLabel: b,
593
+ rightTooltipLabel: m,
594
+ onRightIconClick: S,
595
+ isDisabled: w,
596
+ isSelected: I,
597
+ tagLabel: x,
598
+ tagColorPalette: v,
599
+ tagVariant: T,
600
+ variant: P,
601
+ tabIndex: L,
602
+ width: _,
603
+ maxWidth: k,
604
+ setRefElement: D
605
+ } = l, C = u === void 0 ? null : u, $ = f === void 0 ? "fg.menu-item.default" : f, W = p === void 0 ? "fg.menu-item.default" : p, E = v === void 0 ? "yellow" : v, O = T === void 0 ? "subtle" : T, M = P === void 0 ? "default" : P, {
606
+ onClick: F,
625
607
  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 = {
608
+ onMouseEnter: V
609
+ } = l, A = Ht[M], K = I ? "bg.menu-item.selected" : "bg.menu-item.default", G = g ?? A.iconSize, J = h ?? A.iconSize;
610
+ let Q;
611
+ e[0] !== C || e[1] !== $ || e[2] !== S || e[3] !== s || e[4] !== G || e[5] !== J || e[6] !== d || 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] !== r || e[16] !== M ? (Q = {
630
612
  primaryLabel: s,
631
613
  secondaryLabel: a,
614
+ shortcutLabel: c,
632
615
  tooltipLabel: r,
633
- leftIcon: _,
616
+ leftIcon: C,
634
617
  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,
618
+ leftIconColor: $,
619
+ rightIconColor: W,
620
+ leftIconSize: G,
621
+ rightIconSize: J,
622
+ rightIconAriaLabel: b,
623
+ rightTooltipLabel: m,
624
+ onRightIconClick: S,
625
+ tagLabel: x,
626
+ tagColorPalette: E,
644
627
  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 = {
628
+ variant: M
629
+ }, e[0] = C, e[1] = $, e[2] = S, e[3] = s, e[4] = G, e[5] = J, e[6] = d, 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] = r, e[16] = M, e[17] = Q) : Q = e[17];
630
+ const q = Q, le = k ?? "20rem", oe = w ? "default" : "pointer", Z = n ?? s;
631
+ let se, ee;
632
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (se = {
650
633
  bg: "bg.menu-item.hover"
651
- }, ne = {
634
+ }, ee = {
652
635
  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 = {
636
+ }, e[18] = se, e[19] = ee) : (se = e[18], ee = e[19]);
637
+ let ie;
638
+ e[20] !== K || e[21] !== n || e[22] !== w || e[23] !== I || e[24] !== D || e[25] !== le || e[26] !== oe || e[27] !== Z || e[28] !== L || e[29] !== A.minHeight || e[30] !== A.paddingX || e[31] !== A.paddingY || e[32] !== _ ? (ie = {
656
639
  id: n,
657
- ref: w,
658
- tabIndex: T,
659
- disabled: v,
660
- "aria-selected": C,
640
+ ref: D,
641
+ tabIndex: L,
642
+ disabled: w,
643
+ "aria-selected": I,
661
644
  paddingX: A.paddingX,
662
645
  paddingY: A.paddingY,
663
646
  height: "auto",
664
647
  minHeight: A.minHeight,
665
648
  role: "option",
666
- width: b,
667
- maxWidth: q,
649
+ width: _,
650
+ maxWidth: le,
668
651
  overflow: "hidden",
669
652
  position: "relative",
670
- cursor: J,
671
- value: ee,
672
- bg: E,
673
- _hover: te,
674
- _focus: ne,
653
+ cursor: oe,
654
+ value: Z,
655
+ bg: K,
656
+ _hover: se,
657
+ _focus: ee,
675
658
  textDecoration: "none",
676
659
  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;
660
+ }, e[20] = K, e[21] = n, e[22] = w, e[23] = I, e[24] = D, e[25] = le, e[26] = oe, e[27] = Z, e[28] = L, e[29] = A.minHeight, e[30] = A.paddingX, e[31] = A.paddingY, e[32] = _, e[33] = ie) : ie = e[33];
661
+ const ne = ie;
679
662
  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");
663
+ let fe, Y;
664
+ if (e[34] !== t || e[35] !== ne || e[36] !== q) {
665
+ Y = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
683
666
  e: {
684
- const me = cn.only(t);
685
- if (!dn(me)) {
686
- ue = null;
667
+ const U = Sn.only(t);
668
+ if (!ct(U)) {
669
+ Y = null;
687
670
  break e;
688
671
  }
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) });
672
+ let ae;
673
+ e[39] !== q ? (ae = /* @__PURE__ */ o(mt, { ...q }), e[39] = q, e[40] = ae) : ae = e[40], fe = /* @__PURE__ */ o(ut, { asChild: !0, ...ne, children: yn(U, void 0, ae) });
691
674
  }
692
- e[33] = t, e[34] = re, e[35] = U, e[36] = de, e[37] = ue;
675
+ e[34] = t, e[35] = ne, e[36] = q, e[37] = fe, e[38] = Y;
693
676
  } else
694
- de = e[36], ue = e[37];
695
- return ue !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ue : de;
677
+ fe = e[37], Y = e[38];
678
+ return Y !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? Y : fe;
696
679
  }
697
- let oe;
698
- e[40] !== U ? (oe = /* @__PURE__ */ o(gt, { ...U }), e[40] = U, e[41] = oe) : oe = e[41];
680
+ let re;
681
+ e[41] !== q ? (re = /* @__PURE__ */ o(mt, { ...q }), e[41] = q, e[42] = re) : re = e[42];
699
682
  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) => {
683
+ return e[43] !== ne || e[44] !== F || e[45] !== X || e[46] !== V || e[47] !== re ? (ce = /* @__PURE__ */ o(ut, { ...ne, onClick: F, onMouseDown: X, onMouseEnter: V, children: re }), e[43] = ne, e[44] = F, e[45] = X, e[46] = V, e[47] = re, e[48] = ce) : ce = e[48], ce;
684
+ };
685
+ function $l(l, e, n) {
686
+ return l ? ct(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(te, { as: l, boxSize: e, color: n }) : null;
687
+ }
688
+ const Rl = (l) => l.isDirectory ? l.isGitRepo ? Tn : Pn : kn, Wl = (l) => {
702
689
  const e = R(18), {
703
690
  entry: n,
704
691
  selectedPath: t,
@@ -708,17 +695,17 @@ const rl = (l) => {
708
695
  let r;
709
696
  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
697
  const a = r, c = !n.isDirectory || a;
711
- let d;
712
- e[4] !== n || e[5] !== a || e[6] !== s ? (d = () => {
698
+ let u;
699
+ e[4] !== n || e[5] !== a || e[6] !== s ? (u = () => {
713
700
  a || s(n);
714
- }, e[4] = n, e[5] = a, e[6] = s, e[7] = d) : d = e[7];
715
- const u = d, f = n.name;
701
+ }, e[4] = n, e[5] = a, e[6] = s, e[7] = u) : u = e[7];
702
+ const d = u, f = n.name;
716
703
  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;
704
+ e[8] !== n ? (p = Rl(n), e[8] = n, e[9] = p) : p = e[9];
705
+ const g = n.isGitRepo ? "Git repo" : void 0, h = n.isGitRepo ? "green" : void 0, b = t === n.path;
719
706
  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) => {
707
+ return e[10] !== n.name || e[11] !== d || e[12] !== c || e[13] !== p || e[14] !== g || e[15] !== h || e[16] !== b ? (m = /* @__PURE__ */ o(j.Root, { children: /* @__PURE__ */ o(Ie, { primaryLabel: f, leftIcon: p, tagLabel: g, tagColorPalette: h, isDisabled: c, isSelected: b, width: "100%", maxWidth: "100%", onClick: d }) }), e[10] = n.name, e[11] = d, e[12] = c, e[13] = p, e[14] = g, e[15] = h, e[16] = b, e[17] = m) : m = e[17], m;
708
+ }, mr = (l) => {
722
709
  const e = R(54), {
723
710
  open: n,
724
711
  title: t,
@@ -727,85 +714,85 @@ const rl = (l) => {
727
714
  entries: r,
728
715
  selectedPath: a,
729
716
  selectedPaths: c,
730
- isLoading: d,
731
- error: u,
717
+ isLoading: u,
718
+ error: d,
732
719
  isSelectDisabled: f,
733
720
  onClose: p,
734
- onSelect: h,
735
- onSelectHomeDirectory: g,
736
- onSelectParentDirectory: S,
721
+ onSelect: g,
722
+ onSelectHomeDirectory: h,
723
+ onSelectParentDirectory: b,
737
724
  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;
725
+ } = l, S = t === void 0 ? "Select folder" : t, w = s === void 0 ? "" : s, I = a === void 0 ? null : a;
726
+ let x;
727
+ e[0] !== c ? (x = c === void 0 ? [] : c, e[0] = c, e[1] = x) : x = e[1];
728
+ const v = x, T = u === void 0 ? !1 : u, P = d === void 0 ? "" : d, L = f === void 0 ? !1 : f;
745
729
  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];
730
+ e[2] !== v ? (_ = new Set(v), e[2] = v, e[3] = _) : _ = e[3];
731
+ const k = _;
732
+ let D;
733
+ e[4] !== p ? (D = (ie) => !ie.open && p(), e[4] = p, e[5] = D) : D = e[5];
734
+ let C;
735
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ o(de.Backdrop, {}), e[6] = C) : C = e[6];
749
736
  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: [
737
+ e[7] !== S ? ($ = /* @__PURE__ */ o(z, { textStyle: "heading/M", children: S }), e[7] = S, e[8] = $) : $ = e[8];
738
+ let W;
739
+ e[9] !== i ? (W = i ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: i }) : null, e[9] = i, e[10] = W) : W = e[10];
740
+ let E;
741
+ e[11] !== $ || e[12] !== W ? (E = /* @__PURE__ */ o(de.Header, { children: /* @__PURE__ */ y(H, { gap: "xs", children: [
755
742
  $,
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];
743
+ W
744
+ ] }) }), e[11] = $, e[12] = W, e[13] = E) : E = e[13];
745
+ let O;
746
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(Dn, { size: 16 }), e[14] = O) : O = e[14];
770
747
  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,
748
+ e[15] !== h ? (M = /* @__PURE__ */ o(pe, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: h, children: O }), e[15] = h, e[16] = M) : M = e[16];
749
+ const F = !w || w === "/";
750
+ let X;
751
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ o(_n, { size: 16 }), e[17] = X) : X = e[17];
752
+ let V;
753
+ e[18] !== b || e[19] !== F ? (V = /* @__PURE__ */ o(pe, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: b, disabled: F, children: X }), e[18] = b, e[19] = F, e[20] = V) : V = e[20];
754
+ const A = w || "Home";
755
+ let K;
756
+ e[21] !== A ? (K = /* @__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] = K) : K = e[22];
757
+ let G;
758
+ e[23] !== M || e[24] !== V || e[25] !== K ? (G = /* @__PURE__ */ y(H, { direction: "row", gap: "sm", align: "center", children: [
759
+ M,
760
+ V,
774
761
  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 = {
762
+ ] }), e[23] = M, e[24] = V, e[25] = K, e[26] = G) : G = e[26];
763
+ let J;
764
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = {
778
765
  padding: "sm"
779
- }, e[27] = Z) : Z = e[27];
780
- 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];
766
+ }, e[27] = J) : J = e[27];
767
+ let Q;
768
+ e[28] !== r || e[29] !== P || e[30] !== T || e[31] !== m || e[32] !== I || e[33] !== k ? (Q = /* @__PURE__ */ o(we, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: J, children: T ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : P ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "red.500", children: P }) : r.length === 0 ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ o(H, { gap: "xs", children: r.map((ie) => /* @__PURE__ */ o(Wl, { entry: ie, selectedPath: I, selectedPathSet: k, onEntryClick: m }, ie.path)) }) }), e[28] = r, e[29] = P, e[30] = T, e[31] = m, e[32] = I, e[33] = k, e[34] = Q) : Q = e[34];
782
769
  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];
787
- 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];
796
- 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,
799
- q,
800
- te
801
- ] }) }), e[46] = O, e[47] = q, e[48] = te, e[49] = ne) : ne = e[49];
770
+ e[35] !== G || e[36] !== Q ? (q = /* @__PURE__ */ o(de.Body, { children: /* @__PURE__ */ y(H, { gap: "md", children: [
771
+ G,
772
+ Q
773
+ ] }) }), e[35] = G, e[36] = Q, e[37] = q) : q = e[37];
802
774
  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;
775
+ e[38] !== p ? (le = /* @__PURE__ */ o(pe, { variant: "outline", onClick: p, children: "Cancel" }), e[38] = p, e[39] = le) : le = e[39];
776
+ let oe;
777
+ e[40] !== L || e[41] !== g ? (oe = /* @__PURE__ */ o(pe, { onClick: g, disabled: L, children: "Select repository" }), e[40] = L, e[41] = g, e[42] = oe) : oe = e[42];
778
+ let Z;
779
+ e[43] !== le || e[44] !== oe ? (Z = /* @__PURE__ */ o(de.Footer, { children: /* @__PURE__ */ y(H, { direction: "row", gap: "sm", children: [
780
+ le,
781
+ oe
782
+ ] }) }), e[43] = le, e[44] = oe, e[45] = Z) : Z = e[45];
783
+ let se;
784
+ e[46] !== E || e[47] !== q || e[48] !== Z ? (se = /* @__PURE__ */ o(de.Positioner, { children: /* @__PURE__ */ y(de.Content, { children: [
785
+ E,
786
+ q,
787
+ Z
788
+ ] }) }), e[46] = E, e[47] = q, e[48] = Z, e[49] = se) : se = e[49];
789
+ let ee;
790
+ return e[50] !== n || e[51] !== se || e[52] !== D ? (ee = /* @__PURE__ */ y(de.Root, { lazyMount: !0, unmountOnExit: !0, closeOnInteractOutside: !1, open: n, onOpenChange: D, children: [
791
+ C,
792
+ se
793
+ ] }), e[50] = n, e[51] = se, e[52] = D, e[53] = ee) : ee = e[53], ee;
807
794
  };
808
- function cl(l) {
795
+ function El(l) {
809
796
  const e = R(14);
810
797
  let n, t, i, s, r, a;
811
798
  e[0] !== l ? ({
@@ -816,11 +803,11 @@ function cl(l) {
816
803
  borderBottomWidth: a,
817
804
  ...t
818
805
  } = 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;
806
+ const c = i === void 0 ? "41px" : i, u = s === void 0 ? "xs" : s, d = r === void 0 ? "xs" : r, f = a === void 0 ? "1px" : a;
820
807
  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;
808
+ return e[7] !== f || e[8] !== n || e[9] !== c || e[10] !== u || e[11] !== d || e[12] !== t ? (p = /* @__PURE__ */ o(N, { ...t, h: c, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.muted", px: u, py: d, children: n }), e[7] = f, e[8] = n, e[9] = c, e[10] = u, e[11] = d, e[12] = t, e[13] = p) : p = e[13], p;
822
809
  }
823
- const Wi = (l) => {
810
+ const br = (l) => {
824
811
  const e = R(17), {
825
812
  children: n,
826
813
  title: t,
@@ -832,51 +819,51 @@ const Wi = (l) => {
832
819
  background: "bg.hover"
833
820
  }, e[0] = a) : a = e[0];
834
821
  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];
836
- let d;
837
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ o(je.Indicator, { transition: "transform 0.2s", _open: {
838
- transform: "rotate(90deg)"
839
- }, children: /* @__PURE__ */ o(Te, { size: 16 }) }), e[3] = d) : d = e[3];
822
+ 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];
840
823
  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: [
824
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ o(je.Indicator, { transition: "transform 0.2s", _open: {
825
+ transform: "rotate(90deg)"
826
+ }, children: /* @__PURE__ */ o(De, { size: 16 }) }), e[3] = u) : u = e[3];
827
+ let d;
828
+ e[4] !== c ? (d = /* @__PURE__ */ y(je.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
842
829
  c,
843
- d
844
- ] }), e[4] = c, e[5] = u) : u = e[5];
830
+ u
831
+ ] }), e[4] = c, e[5] = d) : d = e[5];
845
832
  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];
833
+ e[6] !== s ? (f = s && /* @__PURE__ */ o(B, { marginLeft: "auto", onClick: zl, children: s }), e[6] = s, e[7] = f) : f = e[7];
847
834
  let p;
848
- e[8] !== u || e[9] !== f ? (p = /* @__PURE__ */ x(fe, { children: [
849
- u,
835
+ e[8] !== d || e[9] !== f ? (p = /* @__PURE__ */ y(ue, { children: [
836
+ d,
850
837
  f
851
- ] }), 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];
838
+ ] }), e[8] = d, e[9] = f, e[10] = p) : p = e[10];
854
839
  let g;
855
- return e[13] !== r || e[14] !== p || e[15] !== h ? (g = /* @__PURE__ */ x(je.Root, { defaultOpen: r, width: "full", children: [
840
+ e[11] !== n ? (g = /* @__PURE__ */ o(je.Content, { children: n }), e[11] = n, e[12] = g) : g = e[12];
841
+ let h;
842
+ return e[13] !== r || e[14] !== p || e[15] !== g ? (h = /* @__PURE__ */ y(je.Root, { defaultOpen: r, width: "full", children: [
856
843
  p,
857
- h
858
- ] }), e[13] = r, e[14] = p, e[15] = h, e[16] = g) : g = e[16], g;
844
+ g
845
+ ] }), e[13] = r, e[14] = p, e[15] = g, e[16] = h) : h = e[16], h;
859
846
  };
860
- function dl(l) {
847
+ function zl(l) {
861
848
  return l.stopPropagation();
862
849
  }
863
- const Gt = "2.5625rem", ul = tn({
850
+ const Ft = "2.5625rem", Ol = un({
864
851
  placement: "bottom-end",
865
852
  pauseOnPageIdle: !0,
866
853
  duration: 1e4
867
- }), Ei = () => {
854
+ }), xr = () => {
868
855
  const l = R(1);
869
856
  let e;
870
- return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ o(He, { children: /* @__PURE__ */ o(nn, { toaster: ul, insetInline: {
857
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ o(Me, { children: /* @__PURE__ */ o(fn, { toaster: Ol, insetInline: {
871
858
  mdDown: "4"
872
- }, children: fl }) }), l[0] = e) : e = l[0], e;
859
+ }, children: Al }) }), l[0] = e) : e = l[0], e;
873
860
  };
874
- function fl(l) {
875
- return /* @__PURE__ */ x(ze.Root, { width: {
861
+ function Al(l) {
862
+ return /* @__PURE__ */ y(ze.Root, { width: {
876
863
  md: "sm"
877
864
  }, 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: [
865
+ l.type === "loading" ? /* @__PURE__ */ o(Lt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ o(ze.Indicator, {}),
866
+ /* @__PURE__ */ y(H, { gap: "1", flex: "1", minWidth: "0", maxWidth: "100%", children: [
880
867
  l.title && /* @__PURE__ */ o(ze.Title, { children: l.title }),
881
868
  l.description && /* @__PURE__ */ o(ze.Description, { maxHeight: "12rem", overflowY: "auto", paddingEnd: "1", whiteSpace: "pre-wrap", wordBreak: "break-word", children: l.description })
882
869
  ] }),
@@ -884,45 +871,45 @@ function fl(l) {
884
871
  l.closable && /* @__PURE__ */ o(ze.CloseTrigger, {})
885
872
  ] });
886
873
  }
887
- const zi = (l) => {
874
+ const Sr = (l) => {
888
875
  const e = R(12), {
889
876
  sidebar: n,
890
877
  errorLabel: t,
891
878
  children: i
892
879
  } = l;
893
880
  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];
881
+ e[0] !== n ? (s = n ? /* @__PURE__ */ o(ue, { minH: "0", flexShrink: 0, children: n }) : null, e[0] = n, e[1] = s) : s = e[1];
895
882
  const r = t ?? "Unable to render the panel.";
896
883
  let a;
897
- e[2] !== i ? (a = i ?? /* @__PURE__ */ o(Vn, {}), e[2] = i, e[3] = a) : a = e[3];
884
+ e[2] !== i ? (a = i ?? /* @__PURE__ */ o(hl, {}), e[2] = i, e[3] = a) : a = e[3];
898
885
  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];
900
- 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];
886
+ 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];
902
887
  let u;
903
- return e[9] !== s || e[10] !== d ? (u = /* @__PURE__ */ x(fe, { height: "100%", width: "100%", minH: "0", minW: "0", children: [
888
+ e[6] !== r || e[7] !== c ? (u = /* @__PURE__ */ o(Nt, { label: r, children: c }), e[6] = r, e[7] = c, e[8] = u) : u = e[8];
889
+ let d;
890
+ return e[9] !== s || e[10] !== u ? (d = /* @__PURE__ */ y(ue, { height: "100%", width: "100%", minH: "0", minW: "0", children: [
904
891
  s,
905
- d
906
- ] }), e[9] = s, e[10] = d, e[11] = u) : u = e[11], u;
907
- }, Ai = (l) => {
892
+ u
893
+ ] }), e[9] = s, e[10] = u, e[11] = d) : d = e[11], d;
894
+ }, yr = (l) => {
908
895
  const e = R(8), {
909
896
  actions: n,
910
897
  content: t
911
898
  } = l;
912
899
  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];
900
+ e[0] !== n ? (i = /* @__PURE__ */ o(El, { "data-testid": "panel-section-actions", align: "flex-start", minH: Ft, flexWrap: "wrap", gap: "sm", py: "2xs", children: n }), e[0] = n, e[1] = i) : i = e[1];
914
901
  let s;
915
902
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
916
903
  minH: "100%"
917
904
  }, e[2] = s) : s = e[2];
918
905
  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];
906
+ e[3] !== t ? (r = /* @__PURE__ */ o(we, { flex: "1", bg: "bg", contentProps: s, children: /* @__PURE__ */ o(Nt, { label: "Unable to render the panel.", children: /* @__PURE__ */ o(ue, { flex: "1", overflow: "hidden", minH: "0", children: t }) }) }), e[3] = t, e[4] = r) : r = e[4];
920
907
  let a;
921
- return e[5] !== i || e[6] !== r ? (a = /* @__PURE__ */ x(B, { height: "100%", width: "100%", gap: "0", minH: "0", children: [
908
+ return e[5] !== i || e[6] !== r ? (a = /* @__PURE__ */ y(H, { height: "100%", width: "100%", gap: "0", minH: "0", children: [
922
909
  i,
923
910
  r
924
911
  ] }), 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) => {
912
+ }, Ml = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Gl = (l) => l.version ? `${l.name} v${l.version}` : l.name, vr = (l) => {
926
913
  const e = R(30), {
927
914
  notices: n,
928
915
  title: t,
@@ -931,103 +918,135 @@ const zi = (l) => {
931
918
  productVersion: r,
932
919
  generatedAt: a,
933
920
  emptyTitle: c,
934
- 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 = {
921
+ emptyDescription: u
922
+ } = l, d = 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, g = u === void 0 ? "No third-party packages were included in this build." : u;
923
+ let h;
924
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
938
925
  base: "md",
939
926
  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];
927
+ }, e[0] = h) : h = e[0];
928
+ let b;
929
+ e[1] !== d ? (b = /* @__PURE__ */ o(z, { textStyle: "heading/L", children: d }), e[1] = d, e[2] = b) : b = e[2];
943
930
  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: [
931
+ 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];
932
+ let S;
933
+ e[5] !== s ? (S = s ? /* @__PURE__ */ y(z, { textStyle: "label/XS", color: "fg.muted", children: [
947
934
  "Product: ",
948
935
  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: [
936
+ ] }) : null, e[5] = s, e[6] = S) : S = e[6];
937
+ let w;
938
+ e[7] !== r ? (w = r ? /* @__PURE__ */ y(z, { textStyle: "label/XS", color: "fg.muted", children: [
952
939
  "Version: ",
953
940
  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: [
941
+ ] }) : null, e[7] = r, e[8] = w) : w = e[8];
942
+ let I;
943
+ e[9] !== n.length ? (I = /* @__PURE__ */ y(z, { textStyle: "label/XS", color: "fg.muted", children: [
957
944
  "Packages: ",
958
945
  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: [
946
+ ] }), e[9] = n.length, e[10] = I) : I = e[10];
947
+ let x;
948
+ e[11] !== a ? (x = a ? /* @__PURE__ */ y(z, { textStyle: "label/XS", color: "fg.muted", children: [
962
949
  "Generated: ",
963
950
  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: [
951
+ ] }) : null, e[11] = a, e[12] = x) : x = e[12];
952
+ let v;
953
+ e[13] !== x || e[14] !== S || e[15] !== w || e[16] !== I ? (v = /* @__PURE__ */ y(N, { gap: "md", flexWrap: "wrap", children: [
974
954
  S,
975
- m,
976
- I
977
- ] }), e[18] = I, e[19] = S, e[20] = m, e[21] = D) : D = e[21];
955
+ w,
956
+ I,
957
+ x
958
+ ] }), e[13] = x, e[14] = S, e[15] = w, e[16] = I, e[17] = v) : v = e[17];
978
959
  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];
960
+ e[18] !== v || e[19] !== b || e[20] !== m ? (T = /* @__PURE__ */ y(H, { gap: "xs", children: [
961
+ b,
962
+ m,
963
+ v
964
+ ] }), e[18] = v, e[19] = b, e[20] = m, e[21] = T) : T = e[21];
985
965
  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,
966
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ o(it, { borderColor: "border.muted" }), e[22] = P) : P = e[22];
967
+ let L;
968
+ e[23] !== g || e[24] !== p || e[25] !== n ? (L = n.length === 0 ? /* @__PURE__ */ y(H, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
969
+ /* @__PURE__ */ o(z, { textStyle: "label/L/medium", children: p }),
970
+ /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g })
971
+ ] }) : /* @__PURE__ */ o(H, { gap: "md", children: n.map(Bl) }), e[23] = g, e[24] = p, e[25] = n, e[26] = L) : L = e[26];
972
+ let _;
973
+ return e[27] !== T || e[28] !== L ? (_ = /* @__PURE__ */ y(H, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: h, gap: "lg", children: [
988
974
  T,
989
- b
990
- ] }), e[27] = D, e[28] = b, e[29] = P) : P = e[29], P;
975
+ P,
976
+ L
977
+ ] }), e[27] = T, e[28] = L, e[29] = _) : _ = e[29], _;
991
978
  };
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: [
979
+ function Bl(l, e) {
980
+ return /* @__PURE__ */ o(B, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ y(H, { gap: "sm", children: [
981
+ /* @__PURE__ */ y(H, { gap: "2xs", children: [
982
+ /* @__PURE__ */ o(z, { textStyle: "label/L/medium", children: Gl(l) }),
983
+ /* @__PURE__ */ y(z, { textStyle: "label/S/regular", color: "fg.muted", children: [
997
984
  "License: ",
998
985
  l.license ?? "Unknown"
999
986
  ] })
1000
987
  ] }),
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
988
+ l.copyright ? /* @__PURE__ */ o(z, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
989
+ (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ y(H, { gap: "2xs", children: [
990
+ l.homepageUrl ? /* @__PURE__ */ o(ft, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
991
+ l.sourceUrl ? /* @__PURE__ */ o(ft, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1005
992
  ] }),
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));
993
+ l.attribution ? /* @__PURE__ */ o(B, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ o(z, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
994
+ ] }) }, Ml(l, e));
1008
995
  }
1009
- const Mi = (l) => {
996
+ const Cr = (l) => {
1010
997
  const e = R(4), {
1011
998
  items: n
1012
999
  } = l;
1013
1000
  let t;
1014
- e[0] !== n ? (t = n.map(ml), e[0] = n, e[1] = t) : t = e[1];
1001
+ e[0] !== n ? (t = n.map(Nl), e[0] = n, e[1] = t) : t = e[1];
1015
1002
  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;
1003
+ return e[2] !== t ? (i = /* @__PURE__ */ o(H, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = i) : i = e[3], i;
1017
1004
  };
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" }) })
1005
+ function Nl(l, e) {
1006
+ return /* @__PURE__ */ y(N, { gap: "xs", alignItems: "center", children: [
1007
+ /* @__PURE__ */ o(B, { width: "110px", flexShrink: 0, children: /* @__PURE__ */ y(N, { gap: "1", alignItems: "center", children: [
1008
+ /* @__PURE__ */ o(z, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
1009
+ l.description && /* @__PURE__ */ o(xe, { content: l.description, showArrow: !0, children: /* @__PURE__ */ o(te, { as: Ln, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1023
1010
  ] }) }),
1024
- /* @__PURE__ */ o(V, { flex: "1", children: l.value })
1011
+ /* @__PURE__ */ o(B, { flex: "1", children: l.value })
1025
1012
  ] }, `${l.label}-${e}`);
1026
1013
  }
1027
- const bl = (l, e) => {
1014
+ const Je = (l) => {
1015
+ const e = R(16), {
1016
+ actions: n,
1017
+ children: t,
1018
+ contentMinWidth: i,
1019
+ contentBackground: s,
1020
+ positioning: r
1021
+ } = l, a = i === void 0 ? "220px" : i, c = s === void 0 ? "bg" : s;
1022
+ let u;
1023
+ e[0] !== r ? (u = r === void 0 ? {
1024
+ placement: "bottom-start"
1025
+ } : r, e[0] = r, e[1] = u) : u = e[1];
1026
+ const d = u;
1027
+ if (n.length === 0) {
1028
+ let b;
1029
+ return e[2] !== t ? (b = /* @__PURE__ */ o(at, { children: t }), e[2] = t, e[3] = b) : b = e[3], b;
1030
+ }
1031
+ let f;
1032
+ e[4] !== t ? (f = /* @__PURE__ */ o(j.ContextTrigger, { asChild: !0, children: t }), e[4] = t, e[5] = f) : f = e[5];
1033
+ let p;
1034
+ e[6] !== n ? (p = n.map(Hl), e[6] = n, e[7] = p) : p = e[7];
1035
+ let g;
1036
+ e[8] !== c || e[9] !== a || e[10] !== p ? (g = /* @__PURE__ */ o(Me, { children: /* @__PURE__ */ o(j.Positioner, { children: /* @__PURE__ */ o(j.Content, { minW: a, bg: c, children: p }) }) }), e[8] = c, e[9] = a, e[10] = p, e[11] = g) : g = e[11];
1037
+ let h;
1038
+ return e[12] !== d || e[13] !== f || e[14] !== g ? (h = /* @__PURE__ */ y(j.Root, { positioning: d, children: [
1039
+ f,
1040
+ g
1041
+ ] }), e[12] = d, e[13] = f, e[14] = g, e[15] = h) : h = e[15], h;
1042
+ };
1043
+ function Hl(l) {
1044
+ return /* @__PURE__ */ o(Ie, { primaryLabel: l.label, leftIcon: l.icon ?? null, isDisabled: l.isDisabled, onClick: l.onClick }, l.key);
1045
+ }
1046
+ const Fl = (l, e) => {
1028
1047
  const n = e.trim().toLowerCase();
1029
1048
  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 : {
1049
+ }, Vl = (l, e) => !l || !e ? !1 : l !== e, jl = (l, e, n) => !l || !e ? n : {
1031
1050
  items: e.items,
1032
1051
  filterItems: e.filterItems ?? n.filterItems,
1033
1052
  showSearch: e.showSearch ?? n.showSearch,
@@ -1040,7 +1059,7 @@ const bl = (l, e) => {
1040
1059
  borderColor: "border.muted",
1041
1060
  boxShadow: "none",
1042
1061
  outline: "none"
1043
- }, yl = (l) => {
1062
+ }, Xl = (l) => {
1044
1063
  const e = R(48), {
1045
1064
  trigger: n,
1046
1065
  items: t,
@@ -1049,103 +1068,103 @@ const bl = (l, e) => {
1049
1068
  filterItems: r,
1050
1069
  listId: a,
1051
1070
  header: c,
1052
- width: d,
1053
- maxListHeight: u,
1071
+ width: u,
1072
+ maxListHeight: d,
1054
1073
  showSearch: f,
1055
1074
  closeOnSelect: p,
1056
- lazyMount: h,
1057
- open: g,
1058
- positioning: S,
1075
+ lazyMount: g,
1076
+ open: h,
1077
+ positioning: b,
1059
1078
  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, {
1079
+ onFocusOutside: S,
1080
+ contentTestId: w,
1081
+ portalled: I,
1082
+ parentList: x
1083
+ } = l, v = r === void 0 ? Fl : r, T = u === void 0 ? "260px" : u, P = d === void 0 ? "18rem" : d, L = f === void 0 ? !0 : f, _ = p === void 0 ? !0 : p, k = g === void 0 ? !1 : g, D = I === void 0 ? !0 : I, C = !!x, [$, W] = he(!1), [E, O] = he(""), [M, F] = he("child"), X = He(null), V = h ?? $, A = C && M === "parent", G = jl(A, x, {
1065
1084
  items: t,
1066
- filterItems: I,
1067
- showSearch: b,
1085
+ filterItems: v,
1086
+ showSearch: L,
1068
1087
  searchPlaceholder: i,
1069
1088
  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;
1089
+ contentTestId: w,
1090
+ closeOnSelect: _,
1091
+ listId: C ? "child" : a ?? ""
1092
+ }), J = G.filterItems(G.items, E), Q = He(G.listId);
1093
+ Ae(() => {
1094
+ if (!V) {
1095
+ Q.current = G.listId;
1077
1096
  return;
1078
1097
  }
1079
- Sl(U.current, M.listId) && G(""), U.current = M.listId;
1080
- }, [A, M.listId]);
1098
+ Vl(Q.current, G.listId) && O(""), Q.current = G.listId;
1099
+ }, [V, G.listId]);
1081
1100
  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)
1101
+ e[0] !== G || e[1] !== V ? (q = [V, G.showSearch], e[0] = G, e[1] = V, e[2] = q) : q = e[2], Ae(() => {
1102
+ if (!V || !G.showSearch)
1084
1103
  return;
1085
- const be = setTimeout(() => F.current?.focus(), 0);
1086
- return () => clearTimeout(be);
1104
+ const me = setTimeout(() => X.current?.focus(), 0);
1105
+ return () => clearTimeout(me);
1087
1106
  }, 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;
1093
- let te;
1094
- e[7] !== E || e[8] !== y ? (te = (be) => {
1095
- if (!E || !y)
1096
- 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
1107
  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";
1108
+ e[3] !== C || e[4] !== m || e[5] !== h ? (le = (me) => {
1109
+ h === void 0 && W(me.open), O(""), me.open && C && F("child"), m?.(me);
1110
+ }, e[3] = C, e[4] = m, e[5] = h, e[6] = le) : le = e[6];
1111
+ const oe = le;
1112
+ let Z;
1113
+ e[7] !== A || e[8] !== x ? (Z = (me) => {
1114
+ if (!A || !x)
1115
+ return;
1116
+ const dt = x.items.find((sn) => sn.id === me.value);
1117
+ dt && (x.onSelect?.(dt), F("child"));
1118
+ }, e[7] = A, e[8] = x, e[9] = Z) : Z = e[9];
1119
+ const se = Z;
1120
+ let ee;
1121
+ e[10] !== x ? (ee = x ? /* @__PURE__ */ o("div", { onPointerDownCapture: Ul, onClickCapture: (me) => {
1122
+ me.stopPropagation(), !x.disabled && F(Kl);
1123
+ }, children: /* @__PURE__ */ o(Ie, { primaryLabel: x.selectedLabel, leftIcon: x.selectedIcon, rightIcon: x.disabled ? void 0 : Fe, isDisabled: x.disabled }) }) : null, e[10] = x, e[11] = ee) : ee = e[11];
1124
+ const ne = x ? ee : c, re = !!ne && !G.showSearch, ce = G.showSearch ? /* @__PURE__ */ o(pn, { startElement: /* @__PURE__ */ o($n, { size: 14 }), children: /* @__PURE__ */ o(gn, { ref: X, borderRight: 0, borderLeft: 0, borderRadius: "0", borderColor: "border.muted", value: E, placeholder: G.searchPlaceholder, "aria-label": G.searchPlaceholder, autoComplete: "off", _hover: Xe, _active: Xe, _focus: Xe, _focusVisible: Xe, onChange: (me) => O(me.target.value), onKeyDown: Yl }) }) : null, fe = j, Y = C ? se : void 0;
1125
+ let U;
1126
+ e[12] !== n ? (U = /* @__PURE__ */ o(j.Trigger, { asChild: !0, children: n }), e[12] = n, e[13] = U) : U = e[13];
1127
+ const ae = Me, ke = !D, Te = j, et = j, en = "bg", tn = "0", nn = "0", ln = "popover";
1109
1128
  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;
1129
+ e[14] !== re ? (_e = re ? /* @__PURE__ */ o(j.Separator, { margin: "0" }) : null, e[14] = re, e[15] = _e) : _e = e[15];
1130
+ const tt = we;
1112
1131
  let Le;
1113
1132
  e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = {
1114
1133
  overscrollBehavior: "contain"
1115
1134
  }, e[16] = Le) : Le = e[16];
1116
- const Kt = "2xs", qt = "2xs", et = Z.length > 0 ? Z.map(kl) : M.emptyState;
1135
+ const on = "2xs", rn = "2xs", nt = J.length > 0 ? J.map(ql) : G.emptyState;
1117
1136
  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];
1137
+ e[17] !== tt || e[18] !== G || e[19] !== P || e[20] !== Le || e[21] !== nt ? ($e = /* @__PURE__ */ o(tt, { maxH: P, "data-testid": G.contentTestId, viewportProps: Le, p: on, gap: rn, children: nt }), e[17] = tt, e[18] = G, e[19] = P, e[20] = Le, e[21] = nt, e[22] = $e) : $e = e[22];
1119
1138
  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,
1139
+ e[23] !== ne || e[24] !== ce || e[25] !== et.Content || e[26] !== _e || e[27] !== $e || e[28] !== T ? (Re = /* @__PURE__ */ y(et.Content, { w: T, bg: en, gap: tn, p: nn, zIndex: ln, children: [
1140
+ ne,
1141
+ ce,
1123
1142
  _e,
1124
1143
  $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];
1144
+ ] }), e[23] = ne, e[24] = ce, e[25] = et.Content, e[26] = _e, e[27] = $e, e[28] = T, e[29] = Re) : Re = e[29];
1126
1145
  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];
1146
+ e[30] !== Te.Positioner || e[31] !== Re ? (We = /* @__PURE__ */ o(Te.Positioner, { children: Re }), e[30] = Te.Positioner, e[31] = Re, e[32] = We) : We = e[32];
1128
1147
  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];
1148
+ e[33] !== ae || e[34] !== ke || e[35] !== We ? (Ee = /* @__PURE__ */ o(ae, { disabled: ke, children: We }), e[33] = ae, e[34] = ke, e[35] = We, e[36] = Ee) : Ee = e[36];
1130
1149
  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,
1150
+ return e[37] !== G || e[38] !== oe || e[39] !== k || e[40] !== S || e[41] !== h || e[42] !== b || e[43] !== fe.Root || e[44] !== Y || e[45] !== U || e[46] !== Ee ? (Ve = /* @__PURE__ */ y(fe.Root, { lazyMount: k, closeOnSelect: G.closeOnSelect, open: h, positioning: b, onOpenChange: oe, onFocusOutside: S, onSelect: Y, children: [
1151
+ U,
1133
1152
  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;
1153
+ ] }), e[37] = G, e[38] = oe, e[39] = k, e[40] = S, e[41] = h, e[42] = b, e[43] = fe.Root, e[44] = Y, e[45] = U, e[46] = Ee, e[47] = Ve) : Ve = e[47], Ve;
1135
1154
  };
1136
- function vl(l) {
1155
+ function Ul(l) {
1137
1156
  return l.stopPropagation();
1138
1157
  }
1139
- function Cl(l) {
1158
+ function Kl(l) {
1140
1159
  return l === "child" ? "parent" : "child";
1141
1160
  }
1142
- function wl(l) {
1161
+ function Yl(l) {
1143
1162
  return l.stopPropagation();
1144
1163
  }
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);
1164
+ function ql(l) {
1165
+ return /* @__PURE__ */ o(zt, { children: /* @__PURE__ */ o(Ie, { 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
1166
  }
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) => {
1167
+ const Jl = (l) => l === "completed" ? Rn : l === "failed" ? Wn : l === "cancelled" ? En : l === "disconnected" ? zn : On, Ql = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : l === "cancelled" || l === "disconnected" ? "fg.warning" : "fg.muted", Zl = (l) => {
1149
1168
  const e = R(11), {
1150
1169
  status: n,
1151
1170
  boxSize: t,
@@ -1153,30 +1172,30 @@ const Il = (l) => l === "completed" ? kn : l === "failed" ? In : l === "disconne
1153
1172
  cursor: s,
1154
1173
  onClick: r
1155
1174
  } = l, a = t === void 0 ? "14px" : t, c = i === void 0 ? "Session status" : i;
1156
- let d;
1157
- e[0] !== n ? (d = Il(n), e[0] = n, e[1] = d) : d = e[1];
1158
1175
  let u;
1159
- e[2] !== n ? (u = Pl(n), e[2] = n, e[3] = u) : u = e[3];
1176
+ e[0] !== n ? (u = Jl(n), e[0] = n, e[1] = u) : u = e[1];
1177
+ let d;
1178
+ e[2] !== n ? (d = Ql(n), e[2] = n, e[3] = d) : d = e[3];
1160
1179
  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) => {
1180
+ return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== r || e[8] !== u || e[9] !== d ? (f = /* @__PURE__ */ o(te, { as: u, boxSize: a, color: d, "aria-label": c, cursor: s, onClick: r }), e[4] = c, e[5] = a, e[6] = s, e[7] = r, e[8] = u, e[9] = d, e[10] = f) : f = e[10], f;
1181
+ }, eo = (l) => {
1163
1182
  const e = R(14), {
1164
1183
  action: n
1165
1184
  } = l;
1166
1185
  let t;
1167
1186
  e[0] !== n.menuItems ? (t = n.menuItems ?? [], e[0] = n.menuItems, e[1] = t) : t = e[1];
1168
1187
  let i;
1169
- e[2] !== t ? (i = t.map(_l), e[2] = t, e[3] = i) : i = e[3];
1188
+ e[2] !== t ? (i = t.map(to), e[2] = t, e[3] = i) : i = e[3];
1170
1189
  const s = i;
1171
1190
  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];
1191
+ e[4] !== n.icon || e[5] !== n.label ? (r = /* @__PURE__ */ o(ge, { 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];
1173
1192
  const a = n.searchPlaceholder ?? "Search…", c = n.emptyMenuLabel ?? "No results found";
1174
- 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];
1176
1193
  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;
1194
+ e[7] !== c ? (u = /* @__PURE__ */ o(Ie, { primaryLabel: c, isDisabled: !0, variant: "compact" }), e[7] = c, e[8] = u) : u = e[8];
1195
+ let d;
1196
+ return e[9] !== s || e[10] !== r || e[11] !== a || e[12] !== u ? (d = /* @__PURE__ */ o(Xl, { trigger: r, items: s, searchPlaceholder: a, emptyState: u, onFocusOutside: no }), e[9] = s, e[10] = r, e[11] = a, e[12] = u, e[13] = d) : d = e[13], d;
1178
1197
  };
1179
- function _l(l) {
1198
+ function to(l) {
1180
1199
  return {
1181
1200
  id: l.id,
1182
1201
  label: l.label,
@@ -1186,10 +1205,10 @@ function _l(l) {
1186
1205
  onSelect: () => l.onAction?.()
1187
1206
  };
1188
1207
  }
1189
- function Ll(l) {
1208
+ function no(l) {
1190
1209
  return l.preventDefault();
1191
1210
  }
1192
- const mt = (l) => {
1211
+ const bt = (l) => {
1193
1212
  const e = R(23), {
1194
1213
  node: n,
1195
1214
  expanded: t,
@@ -1197,35 +1216,35 @@ const mt = (l) => {
1197
1216
  isDisabled: s
1198
1217
  } = l;
1199
1218
  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];
1219
+ e[0] !== n.icon || e[1] !== n.iconColor ? (r = n.icon ? /* @__PURE__ */ o(B, { 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];
1201
1220
  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];
1221
+ e[3] !== n.indicator ? (a = n.indicator ? /* @__PURE__ */ o(xe, { content: n.indicator.tooltip, disabled: !n.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ o(B, { color: n.indicator.color ?? "fg.muted", flexShrink: 0, children: n.indicator.icon }) }) : null, e[3] = n.indicator, e[4] = a) : a = e[4];
1203
1222
  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];
1205
- 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: {
1223
+ e[5] !== s || e[6] !== n.label ? (c = typeof n.label == "string" ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: s ? "fg.muted" : "fg", truncate: !0, children: n.label }) : /* @__PURE__ */ o(B, { minW: "0", maxW: "full", overflow: "hidden", children: n.label }), e[5] = s, e[6] = n.label, e[7] = c) : c = e[7];
1224
+ let u;
1225
+ e[8] !== t || e[9] !== i ? (u = i ? /* @__PURE__ */ o(B, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ o(De, { size: 14, style: {
1207
1226
  transform: t ? "rotate(90deg)" : "rotate(0deg)",
1208
1227
  transition: "120ms"
1209
- } }) }) : null, e[8] = t, e[9] = i, e[10] = d) : d = e[10];
1210
- let u;
1211
- e[11] !== a || e[12] !== c || e[13] !== d ? (u = /* @__PURE__ */ x(j, { gap: "1", minW: "0", children: [
1212
- a,
1228
+ } }) }) : null, e[8] = t, e[9] = i, e[10] = u) : u = e[10];
1229
+ let d;
1230
+ e[11] !== c || e[12] !== u ? (d = /* @__PURE__ */ y(N, { gap: "1", minW: "0", children: [
1213
1231
  c,
1214
- d
1215
- ] }), e[11] = a, e[12] = c, e[13] = d, e[14] = u) : u = e[14];
1232
+ u
1233
+ ] }), e[11] = c, e[12] = u, e[13] = d) : d = e[13];
1216
1234
  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];
1235
+ e[14] !== 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(B, { minW: "0", maxW: "full", overflow: "hidden", children: n.description }) : null, e[14] = n.description, e[15] = f) : f = e[15];
1218
1236
  let p;
1219
- e[17] !== u || e[18] !== f ? (p = /* @__PURE__ */ x(B, { gap: "0", minW: "0", flex: "1", children: [
1220
- u,
1237
+ e[16] !== d || e[17] !== f ? (p = /* @__PURE__ */ y(H, { gap: "0", minW: "0", flex: "1", children: [
1238
+ d,
1221
1239
  f
1222
- ] }), 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: [
1240
+ ] }), e[16] = d, e[17] = f, e[18] = p) : p = e[18];
1241
+ let g;
1242
+ return e[19] !== r || e[20] !== a || e[21] !== p ? (g = /* @__PURE__ */ y(N, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1225
1243
  r,
1244
+ a,
1226
1245
  p
1227
- ] }), e[20] = r, e[21] = p, e[22] = h) : h = e[22], h;
1228
- }, Nt = (l, e) => e.includes(l), $l = ({
1246
+ ] }), e[19] = r, e[20] = a, e[21] = p, e[22] = g) : g = e[22], g;
1247
+ }, Vt = (l, e) => e.includes(l), lo = (l) => l ? ct(l) ? /* @__PURE__ */ o(B, { mr: "2", children: l }) : /* @__PURE__ */ o(te, { as: l, boxSize: "14px", mr: "2" }) : null, oo = ({
1229
1248
  sectionId: l,
1230
1249
  node: e,
1231
1250
  hasChildren: n,
@@ -1246,7 +1265,7 @@ const mt = (l) => {
1246
1265
  intent: e.navigationIntent
1247
1266
  });
1248
1267
  }
1249
- }, Rl = (l) => {
1268
+ }, io = (l) => {
1250
1269
  const e = R(20), {
1251
1270
  action: n,
1252
1271
  sectionId: t,
@@ -1255,19 +1274,19 @@ const mt = (l) => {
1255
1274
  if (n.menuItems && n.menuItems.length > 0) {
1256
1275
  if (n.menuItems.length >= 8) {
1257
1276
  let f;
1258
- return e[0] !== n ? (f = /* @__PURE__ */ o(Dl, { action: n }), e[0] = n, e[1] = f) : f = e[1], f;
1277
+ return e[0] !== n ? (f = /* @__PURE__ */ o(eo, { action: n }), e[0] = n, e[1] = f) : f = e[1], f;
1259
1278
  }
1260
1279
  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];
1280
+ e[2] !== n.icon || e[3] !== n.label ? (a = /* @__PURE__ */ o(j.Trigger, { asChild: !0, children: /* @__PURE__ */ o(ge, { 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
1281
  let c;
1263
- e[5] !== n.menuItems ? (c = n.menuItems.map(zl), e[5] = n.menuItems, e[6] = c) : c = e[6];
1264
- 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];
1282
+ e[5] !== n.menuItems ? (c = n.menuItems.map(ao), e[5] = n.menuItems, e[6] = c) : c = e[6];
1266
1283
  let u;
1267
- return e[9] !== a || e[10] !== d ? (u = /* @__PURE__ */ x(Y.Root, { children: [
1284
+ e[7] !== c ? (u = /* @__PURE__ */ o(j.Positioner, { children: /* @__PURE__ */ o(j.Content, { minW: "160px", bg: "bg", children: c }) }), e[7] = c, e[8] = u) : u = e[8];
1285
+ let d;
1286
+ return e[9] !== a || e[10] !== u ? (d = /* @__PURE__ */ y(j.Root, { children: [
1268
1287
  a,
1269
- d
1270
- ] }), e[9] = a, e[10] = d, e[11] = u) : u = e[11], u;
1288
+ u
1289
+ ] }), e[9] = a, e[10] = u, e[11] = d) : d = e[11], d;
1271
1290
  }
1272
1291
  let s;
1273
1292
  e[12] !== n || e[13] !== i || e[14] !== t ? (s = (a) => {
@@ -1277,7 +1296,7 @@ const mt = (l) => {
1277
1296
  });
1278
1297
  }, e[12] = n, e[13] = i, e[14] = t, e[15] = s) : s = e[15];
1279
1298
  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;
1299
+ return e[16] !== n.icon || e[17] !== n.label || e[18] !== s ? (r = /* @__PURE__ */ o(ge, { 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
1300
  }, st = (l) => {
1282
1301
  const e = R(11), {
1283
1302
  sectionId: n,
@@ -1296,14 +1315,14 @@ const mt = (l) => {
1296
1315
  }, e[0] = s, e[1] = r) : (s = e[0], r = e[1]);
1297
1316
  let a;
1298
1317
  if (e[2] !== i || e[3] !== t || e[4] !== n) {
1299
- 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;
1318
+ let u;
1319
+ e[6] !== t || e[7] !== n ? (u = (d) => /* @__PURE__ */ o(io, { action: d, sectionId: n, nodeId: t }, d.id), e[6] = t, e[7] = n, e[8] = u) : u = e[8], a = i.map(u), e[2] = i, e[3] = t, e[4] = n, e[5] = a;
1301
1320
  } else
1302
1321
  a = e[5];
1303
1322
  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), {
1323
+ return e[9] !== a ? (c = /* @__PURE__ */ o(N, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: s, _groupFocusWithin: r, transition: "opacity 120ms ease", onClick: co, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1324
+ }, jt = (l) => {
1325
+ const e = R(53), {
1307
1326
  sectionId: n,
1308
1327
  node: t,
1309
1328
  level: i,
@@ -1311,35 +1330,35 @@ const mt = (l) => {
1311
1330
  activeNodeId: r,
1312
1331
  linkComponent: a,
1313
1332
  onNavigate: c,
1314
- onToggleNode: d
1315
- } = l, u = (t.children?.length ?? 0) > 0;
1333
+ onToggleNode: u
1334
+ } = l, d = (t.children?.length ?? 0) > 0;
1316
1335
  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({
1336
+ e[0] !== s || e[1] !== d || e[2] !== t.id ? (f = d && Vt(t.id, s), e[0] = s, e[1] = d, e[2] = t.id, e[3] = f) : f = e[3];
1337
+ const p = f, g = t.isNavigable || t.navigationIntent !== void 0;
1338
+ let h;
1339
+ e[4] !== r || e[5] !== t.id ? (h = Array.isArray(r) ? r.includes(t.id) : r === t.id, e[4] = r, e[5] = t.id, e[6] = h) : h = e[6];
1340
+ const b = h, m = t.disabled === !0, S = i > 0 ? `calc(var(--chakra-spacing-1) + ${i} * var(--chakra-spacing-3))` : void 0, w = !!(a && t.href && g && !d && !m);
1341
+ let I;
1342
+ e[7] !== d || e[8] !== m || e[9] !== g || e[10] !== t || e[11] !== c || e[12] !== u || e[13] !== n ? (I = () => oo({
1324
1343
  sectionId: n,
1325
1344
  node: t,
1326
- hasChildren: u,
1345
+ hasChildren: d,
1327
1346
  isDisabled: m,
1328
- isNavigable: h,
1347
+ isNavigable: g,
1329
1348
  onNavigate: c,
1330
- 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";
1333
- 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";
1349
+ onToggleNode: u
1350
+ }), e[7] = d, e[8] = m, e[9] = g, e[10] = t, e[11] = c, e[12] = u, e[13] = n, e[14] = I) : I = e[14];
1351
+ const x = I, v = b ? "bg.active" : "transparent", T = b ? "bg.active" : "bg.hover";
1338
1352
  let P;
1339
- e[17] !== S || e[18] !== v || e[19] !== I || e[20] !== T || e[21] !== b ? (P = {
1353
+ e[15] !== T ? (P = {
1354
+ bg: T
1355
+ }, e[15] = T, e[16] = P) : P = e[16];
1356
+ const L = m ? "default" : "pointer";
1357
+ let _;
1358
+ e[17] !== b || e[18] !== S || e[19] !== v || e[20] !== P || e[21] !== L ? (_ = {
1340
1359
  className: "group",
1341
1360
  role: "option",
1342
- "aria-selected": S,
1361
+ "aria-selected": b,
1343
1362
  justify: "space-between",
1344
1363
  align: "center",
1345
1364
  w: "full",
@@ -1348,29 +1367,36 @@ const mt = (l) => {
1348
1367
  borderRadius: "xs",
1349
1368
  px: "1",
1350
1369
  py: "2xs",
1351
- pl: v,
1352
- bg: I,
1353
- _hover: T,
1354
- cursor: b,
1370
+ pl: S,
1371
+ bg: v,
1372
+ _hover: P,
1373
+ cursor: L,
1355
1374
  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 }),
1375
+ }, e[17] = b, e[18] = S, e[19] = v, e[20] = P, e[21] = L, e[22] = _) : _ = e[22];
1376
+ const k = _;
1377
+ let D;
1378
+ e[23] !== t.contextMenuItems ? (D = t.contextMenuItems ?? [], e[23] = t.contextMenuItems, e[24] = D) : D = e[24];
1379
+ let C;
1380
+ e[25] !== D ? (C = D.map(uo), e[25] = D, e[26] = C) : C = e[26];
1381
+ const $ = C;
1382
+ let W;
1383
+ e[27] !== a || e[28] !== w || e[29] !== p || e[30] !== x || e[31] !== d || e[32] !== m || e[33] !== t || e[34] !== k || e[35] !== n ? (W = w && a && t.href ? /* @__PURE__ */ o(a, { to: t.href, children: /* @__PURE__ */ y(N, { ...k, onClick: x, children: [
1384
+ /* @__PURE__ */ o(bt, { node: t, expanded: p, hasChildren: d, isDisabled: m }),
1361
1385
  /* @__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 }),
1386
+ ] }) }) : /* @__PURE__ */ y(N, { ...k, onClick: x, children: [
1387
+ /* @__PURE__ */ o(bt, { node: t, expanded: p, hasChildren: d, isDisabled: m }),
1364
1388
  /* @__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) => {
1389
+ ] }), e[27] = a, e[28] = w, e[29] = p, e[30] = x, e[31] = d, e[32] = m, e[33] = t, e[34] = k, e[35] = n, e[36] = W) : W = e[36];
1390
+ let E;
1391
+ e[37] !== $ || e[38] !== W ? (E = /* @__PURE__ */ o(Je, { actions: $, contentMinWidth: "180px", children: W }), e[37] = $, e[38] = W, e[39] = E) : E = e[39];
1392
+ let O;
1393
+ e[40] !== a || e[41] !== r || e[42] !== p || e[43] !== s || e[44] !== i || e[45] !== t.children || e[46] !== c || e[47] !== u || e[48] !== n ? (O = p ? t.children?.map((F) => /* @__PURE__ */ o(jt, { sectionId: n, node: F, level: i + 1, expandedNodes: s, activeNodeId: r, linkComponent: a, onNavigate: c, onToggleNode: u }, F.id)) : null, e[40] = a, e[41] = r, e[42] = p, e[43] = s, e[44] = i, e[45] = t.children, e[46] = c, e[47] = u, e[48] = n, e[49] = O) : O = e[49];
1394
+ let M;
1395
+ return e[50] !== E || e[51] !== O ? (M = /* @__PURE__ */ y(H, { gap: "1px", w: "full", minW: "0", maxW: "full", children: [
1396
+ E,
1397
+ O
1398
+ ] }), e[50] = E, e[51] = O, e[52] = M) : M = e[52], M;
1399
+ }, ro = (l) => {
1374
1400
  const e = R(21), {
1375
1401
  section: n,
1376
1402
  collapsible: t,
@@ -1382,28 +1408,28 @@ const mt = (l) => {
1382
1408
  bg: "bg.hover"
1383
1409
  } : void 0, e[0] = t, e[1] = a) : a = e[1];
1384
1410
  const c = t ? s : void 0;
1385
- 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];
1387
1411
  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: {
1412
+ e[2] !== n.label ? (u = /* @__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] = u) : u = e[3];
1413
+ let d;
1414
+ e[4] !== t || e[5] !== i ? (d = t ? /* @__PURE__ */ o(B, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ o(De, { size: 14, style: {
1389
1415
  transform: i ? "rotate(90deg)" : "rotate(0deg)",
1390
1416
  transition: "120ms"
1391
- } }) }) : null, e[4] = t, e[5] = i, e[6] = u) : u = e[6];
1417
+ } }) }) : null, e[4] = t, e[5] = i, e[6] = d) : d = e[6];
1392
1418
  let f;
1393
- e[7] !== d || e[8] !== u ? (f = /* @__PURE__ */ x(j, { gap: "1", flex: "1", minW: "0", children: [
1394
- d,
1395
- u
1396
- ] }), e[7] = d, e[8] = u, e[9] = f) : f = e[9];
1419
+ e[7] !== u || e[8] !== d ? (f = /* @__PURE__ */ y(N, { gap: "1", flex: "1", minW: "0", children: [
1420
+ u,
1421
+ d
1422
+ ] }), e[7] = u, e[8] = d, e[9] = f) : f = e[9];
1397
1423
  let p;
1398
1424
  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
1425
  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: [
1426
+ e[12] !== n.id || e[13] !== p ? (g = /* @__PURE__ */ o(st, { sectionId: n.id, actions: p }), e[12] = n.id, e[13] = p, e[14] = g) : g = e[14];
1427
+ let h;
1428
+ return e[15] !== r || e[16] !== a || e[17] !== c || e[18] !== f || e[19] !== g ? (h = /* @__PURE__ */ y(N, { 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: [
1403
1429
  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) => {
1430
+ g
1431
+ ] }), e[15] = r, e[16] = a, e[17] = c, e[18] = f, e[19] = g, e[20] = h) : h = e[20], h;
1432
+ }, so = (l) => {
1407
1433
  const e = R(19), {
1408
1434
  sections: n,
1409
1435
  expandedSections: t,
@@ -1412,55 +1438,64 @@ const mt = (l) => {
1412
1438
  linkComponent: r,
1413
1439
  onNavigate: a,
1414
1440
  onToggleSection: c,
1415
- onToggleNode: d
1441
+ onToggleNode: u
1416
1442
  } = l;
1417
- 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) {
1443
+ let d;
1444
+ if (e[0] !== s || e[1] !== i || e[2] !== t || e[3] !== r || e[4] !== a || e[5] !== u || e[6] !== c || e[7] !== n) {
1419
1445
  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;
1446
+ e[9] !== s || e[10] !== i || e[11] !== t || e[12] !== r || e[13] !== a || e[14] !== u || e[15] !== c ? (p = (g) => {
1447
+ const h = g.collapsible !== !1 && g.label !== void 0, b = h ? Vt(g.id, t) : !0;
1448
+ return /* @__PURE__ */ y(H, { gap: "0", w: "full", minW: "0", maxW: "full", "data-testid": `sidebar-section-${g.id}`, children: [
1449
+ g.label ? /* @__PURE__ */ o(ro, { section: g, collapsible: h, expanded: b, onToggle: () => c(g.id) }) : null,
1450
+ b ? g.nodes.length > 0 ? /* @__PURE__ */ o(H, { gap: "1px", w: "full", minW: "0", maxW: "full", children: g.nodes.map((m) => /* @__PURE__ */ o(jt, { sectionId: g.id, node: m, level: 0, expandedNodes: i, activeNodeId: s, linkComponent: r, onNavigate: a, onToggleNode: u }, m.id)) }) : g.emptyState ?? null : null
1451
+ ] }, g.id);
1452
+ }, e[9] = s, e[10] = i, e[11] = t, e[12] = r, e[13] = a, e[14] = u, e[15] = c, e[16] = p) : p = e[16], d = n.map(p), e[0] = s, e[1] = i, e[2] = t, e[3] = r, e[4] = a, e[5] = u, e[6] = c, e[7] = n, e[8] = d;
1427
1453
  } else
1428
- u = e[8];
1454
+ d = e[8];
1429
1455
  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;
1456
+ return e[17] !== d ? (f = /* @__PURE__ */ o(H, { role: "listbox", gap: "md", w: "full", minW: "0", maxW: "full", overflowX: "hidden", children: d }), e[17] = d, e[18] = f) : f = e[18], f;
1431
1457
  };
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,
1458
+ function ao(l) {
1459
+ return /* @__PURE__ */ o(xe, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ y(j.Item, { value: l.id, disabled: l.disabled, onClick: () => l.onAction?.(), children: [
1460
+ lo(l.icon),
1435
1461
  l.label
1436
1462
  ] }) }, l.id);
1437
1463
  }
1438
- function Al(l) {
1464
+ function co(l) {
1439
1465
  return l.stopPropagation();
1440
1466
  }
1441
- const bt = {
1467
+ function uo(l) {
1468
+ return {
1469
+ key: l.id,
1470
+ label: l.label,
1471
+ icon: l.icon,
1472
+ isDisabled: l.disabled,
1473
+ onClick: () => l.onAction?.()
1474
+ };
1475
+ }
1476
+ const xt = {
1442
1477
  open: !0,
1443
1478
  expandedSections: [],
1444
1479
  expandedNodes: []
1445
- }, Ol = "pstdio/ui/sidebar", Ml = (l) => `${Ol}/${l}`, Gl = () => ({
1480
+ }, fo = "pstdio/ui/sidebar", po = (l) => `${fo}/${l}`, go = () => ({
1446
1481
  getItem: () => null,
1447
1482
  setItem: () => {
1448
1483
  },
1449
1484
  removeItem: () => {
1450
1485
  }
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) => ({
1486
+ }), St = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], yt = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), ho = (l) => ({
1452
1487
  open: l.open,
1453
1488
  expandedSections: l.expandedSections,
1454
1489
  expandedNodes: l.expandedNodes
1455
- }), Bl = (l) => {
1490
+ }), mo = (l) => {
1456
1491
  const {
1457
1492
  storageKey: e,
1458
1493
  initialState: n
1459
1494
  } = l, t = {
1460
- ...bt,
1495
+ ...xt,
1461
1496
  ...n
1462
1497
  };
1463
- return zt()(Wt((i) => ({
1498
+ return Gt()(At((i) => ({
1464
1499
  ...t,
1465
1500
  openSidebar: () => i((s) => ({
1466
1501
  ...s,
@@ -1484,54 +1519,54 @@ const bt = {
1484
1519
  })),
1485
1520
  setSectionExpanded: (s, r) => i((a) => ({
1486
1521
  ...a,
1487
- expandedSections: xt(a.expandedSections, s, r)
1522
+ expandedSections: yt(a.expandedSections, s, r)
1488
1523
  })),
1489
1524
  setNodeExpanded: (s, r) => i((a) => ({
1490
1525
  ...a,
1491
- expandedNodes: xt(a.expandedNodes, s, r)
1526
+ expandedNodes: yt(a.expandedNodes, s, r)
1492
1527
  })),
1493
- reset: () => i(bt)
1528
+ reset: () => i(xt)
1494
1529
  }), {
1495
- name: Ml(e),
1496
- storage: Et(() => typeof globalThis.localStorage > "u" ? Gl() : globalThis.localStorage),
1497
- partialize: Nl
1530
+ name: po(e),
1531
+ storage: Mt(() => typeof globalThis.localStorage > "u" ? go() : globalThis.localStorage),
1532
+ partialize: ho
1498
1533
  }));
1499
- }, yt = /* @__PURE__ */ new Map(), Hl = (l, e) => {
1500
- const n = yt.get(l);
1534
+ }, vt = /* @__PURE__ */ new Map(), bo = (l, e) => {
1535
+ const n = vt.get(l);
1501
1536
  if (n)
1502
1537
  return n;
1503
- const t = Bl({
1538
+ const t = mo({
1504
1539
  storageKey: l,
1505
1540
  initialState: e
1506
1541
  });
1507
- return yt.set(l, t), t;
1508
- }, Ae = (l, e, n) => {
1542
+ return vt.set(l, t), t;
1543
+ }, Oe = (l, e, n) => {
1509
1544
  const t = R(3);
1510
1545
  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) => {
1546
+ return t[0] !== n || t[1] !== l ? (i = bo(l, n), t[0] = n, t[1] = l, t[2] = i) : i = t[2], Ot(i, e);
1547
+ }, xo = (l) => {
1513
1548
  const e = R(2), {
1514
1549
  children: n
1515
1550
  } = l;
1516
1551
  if (!n)
1517
1552
  return null;
1518
1553
  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) => {
1554
+ return e[0] !== n ? (t = /* @__PURE__ */ o(B, { px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: n }), e[0] = n, e[1] = t) : t = e[1], t;
1555
+ }, So = (l) => {
1521
1556
  const e = R(7), {
1522
1557
  children: n,
1523
1558
  onClose: t
1524
1559
  } = l;
1525
1560
  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];
1561
+ e[0] !== n ? (i = /* @__PURE__ */ o(N, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = i) : i = e[1];
1527
1562
  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];
1563
+ e[2] !== t ? (s = t ? /* @__PURE__ */ o(ge, { 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];
1529
1564
  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: [
1565
+ return e[4] !== i || e[5] !== s ? (r = /* @__PURE__ */ y(N, { "data-testid": "sidebar-header", justify: "space-between", align: "center", minH: Ft, p: "2xs", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1531
1566
  i,
1532
1567
  s
1533
1568
  ] }), e[4] = i, e[5] = s, e[6] = r) : r = e[6], r;
1534
- }, Gi = (l) => {
1569
+ }, wr = (l) => {
1535
1570
  const e = R(28), {
1536
1571
  storageKey: n,
1537
1572
  sections: t,
@@ -1540,67 +1575,67 @@ const bt = {
1540
1575
  footer: r,
1541
1576
  width: a,
1542
1577
  closable: c,
1543
- emptyLabel: d,
1544
- defaultExpandedSections: u,
1578
+ emptyLabel: u,
1579
+ defaultExpandedSections: d,
1545
1580
  linkComponent: f,
1546
1581
  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 ? {
1551
- 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)
1582
+ onOpenChange: g
1583
+ } = l, h = a === void 0 ? "240px" : a, b = c === void 0 ? !0 : c, m = u === void 0 ? "No items available." : u;
1584
+ let S;
1585
+ e[0] !== d ? (S = d ? {
1586
+ expandedSections: d
1587
+ } : void 0, e[0] = d, e[1] = S) : S = e[1];
1588
+ const w = S, I = Oe(n, yo, w), x = Oe(n, vo, w), v = Oe(n, Co, w), T = Oe(n, wo, w), P = Oe(n, Io, w), L = Oe(n, ko, w);
1589
+ let _, k;
1590
+ if (e[2] !== g || e[3] !== I ? (_ = () => {
1591
+ g?.(I);
1592
+ }, k = [g, I], e[2] = g, e[3] = I, e[4] = _, e[5] = k) : (_ = e[4], k = e[5]), Ae(_, k), !I && b)
1558
1593
  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;
1594
+ const D = b ? T : void 0;
1595
+ let C;
1596
+ e[6] !== s || e[7] !== D ? (C = /* @__PURE__ */ o(So, { onClose: D, children: s }), e[6] = s, e[7] = D, e[8] = C) : C = e[8];
1597
+ let $, W;
1563
1598
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
1564
1599
  display: "block",
1565
1600
  style: {
1566
1601
  overflowX: "hidden"
1567
1602
  }
1568
- }, z = {
1603
+ }, W = {
1569
1604
  style: {
1570
1605
  minWidth: "100%",
1571
1606
  width: "100%"
1572
1607
  }
1573
- }, e[9] = $, e[10] = z) : ($ = e[9], z = e[10]);
1608
+ }, e[9] = $, e[10] = W) : ($ = e[9], W = e[10]);
1609
+ let E;
1610
+ e[11] !== i || e[12] !== m || e[13] !== v || e[14] !== x || e[15] !== f || e[16] !== p || e[17] !== t || e[18] !== L || e[19] !== P ? (E = /* @__PURE__ */ o(we, { flex: "1", px: "xs", mt: "lg", viewportProps: $, contentProps: W, children: /* @__PURE__ */ o(B, { w: "full", minW: "0", children: t.length === 0 ? /* @__PURE__ */ o(z, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ o(so, { sections: t, expandedSections: x, expandedNodes: v, activeNodeId: i, linkComponent: f, onNavigate: p, onToggleSection: P, onToggleNode: L }) }) }), e[11] = i, e[12] = m, e[13] = v, e[14] = x, e[15] = f, e[16] = p, e[17] = t, e[18] = L, e[19] = P, e[20] = E) : E = e[20];
1574
1611
  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;
1612
+ e[21] !== r ? (O = /* @__PURE__ */ o(xo, { children: r }), e[21] = r, e[22] = O) : O = e[22];
1613
+ let M;
1614
+ return e[23] !== E || e[24] !== O || e[25] !== C || e[26] !== h ? (M = /* @__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: [
1615
+ C,
1616
+ E,
1617
+ O
1618
+ ] }), e[23] = E, e[24] = O, e[25] = C, e[26] = h, e[27] = M) : M = e[27], M;
1584
1619
  };
1585
- function jl(l) {
1620
+ function yo(l) {
1586
1621
  return l.open;
1587
1622
  }
1588
- function Xl(l) {
1623
+ function vo(l) {
1589
1624
  return l.expandedSections;
1590
1625
  }
1591
- function Ul(l) {
1626
+ function Co(l) {
1592
1627
  return l.expandedNodes;
1593
1628
  }
1594
- function Yl(l) {
1629
+ function wo(l) {
1595
1630
  return l.closeSidebar;
1596
1631
  }
1597
- function Kl(l) {
1632
+ function Io(l) {
1598
1633
  return l.toggleSection;
1599
1634
  }
1600
- function ql(l) {
1635
+ function ko(l) {
1601
1636
  return l.toggleNode;
1602
1637
  }
1603
- const Ni = (l) => {
1638
+ const Ir = (l) => {
1604
1639
  const e = R(19), {
1605
1640
  name: n,
1606
1641
  projectsLabel: t,
@@ -1610,103 +1645,238 @@ const Ni = (l) => {
1610
1645
  onToggleThemePreference: a
1611
1646
  } = l;
1612
1647
  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 })
1648
+ e[0] !== n ? (c = /* @__PURE__ */ y(N, { gap: "2", minW: "0", flex: "1", children: [
1649
+ /* @__PURE__ */ o(pt.Root, { size: "2xs", children: /* @__PURE__ */ o(pt.Fallback, { name: n }) }),
1650
+ /* @__PURE__ */ o(z, { textStyle: "label/S/medium", truncate: !0, children: n })
1616
1651
  ] }), e[0] = n, e[1] = c) : c = e[1];
1617
- let d;
1618
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ o(Fe, { size: 14 }), e[2] = d) : d = e[2];
1619
1652
  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: [
1653
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ o(Fe, { size: 14 }), e[2] = u) : u = e[2];
1654
+ let d;
1655
+ e[3] !== c ? (d = /* @__PURE__ */ o(j.Trigger, { asChild: !0, children: /* @__PURE__ */ y(pe, { variant: "ghost", size: "sm", width: "full", justifyContent: "flex-start", children: [
1621
1656
  c,
1622
- d
1623
- ] }) }), e[3] = c, e[4] = u) : u = e[4];
1657
+ u
1658
+ ] }) }), e[3] = c, e[4] = d) : d = e[4];
1624
1659
  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];
1660
+ e[5] !== r || e[6] !== t ? (f = /* @__PURE__ */ o(Ie, { onClick: r, primaryLabel: t, leftIcon: Bn }), e[5] = r, e[6] = t, e[7] = f) : f = e[7];
1626
1661
  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: [
1662
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ o(j.Separator, {}), e[8] = p) : p = e[8];
1663
+ const g = s ? Mn : Gn;
1664
+ let h;
1665
+ e[9] !== a || e[10] !== g || e[11] !== i ? (h = /* @__PURE__ */ o(Ie, { onClick: a, primaryLabel: i, leftIcon: g }), e[9] = a, e[10] = g, e[11] = i, e[12] = h) : h = e[12];
1666
+ let b;
1667
+ e[13] !== f || e[14] !== h ? (b = /* @__PURE__ */ o(j.Positioner, { children: /* @__PURE__ */ y(j.Content, { minW: "240px", bg: "bg", children: [
1633
1668
  f,
1634
1669
  p,
1635
- g
1636
- ] }) }), e[13] = f, e[14] = g, e[15] = S) : S = e[15];
1670
+ h
1671
+ ] }) }), e[13] = f, e[14] = h, e[15] = b) : b = e[15];
1637
1672
  let m;
1638
- return e[16] !== u || e[17] !== S ? (m = /* @__PURE__ */ x(Y.Root, { children: [
1639
- u,
1640
- S
1641
- ] }), e[16] = u, e[17] = S, e[18] = m) : m = e[18], m;
1642
- }, Bi = at.forwardRef(function(e, n) {
1673
+ return e[16] !== d || e[17] !== b ? (m = /* @__PURE__ */ y(j.Root, { children: [
1674
+ d,
1675
+ b
1676
+ ] }), e[16] = d, e[17] = b, e[18] = m) : m = e[18], m;
1677
+ }, kr = Wt.forwardRef(function(e, n) {
1643
1678
  const t = R(32);
1644
- let i, s, r, a, c, d, u;
1679
+ let i, s, r, a, c, u, d;
1645
1680
  t[0] !== e ? ({
1646
1681
  inputProps: s,
1647
1682
  children: i,
1648
1683
  rootRef: a,
1649
- trackLabel: u,
1650
- thumbLabel: d,
1684
+ trackLabel: d,
1685
+ thumbLabel: u,
1651
1686
  disabled: c,
1652
1687
  ...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]);
1688
+ } = e, t[0] = e, t[1] = i, t[2] = s, t[3] = r, t[4] = a, t[5] = c, t[6] = u, t[7] = d) : (i = t[1], s = t[2], r = t[3], a = t[4], c = t[5], u = t[6], d = t[7]);
1654
1689
  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
1690
  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];
1691
+ t[8] !== s || t[9] !== n ? (g = /* @__PURE__ */ o(Pe.HiddenInput, { ref: n, ...s }), t[8] = s, t[9] = n, t[10] = g) : g = t[10];
1692
+ let h;
1693
+ t[11] !== u ? (h = u && /* @__PURE__ */ o(Pe.ThumbIndicator, { fallback: u?.off, children: u?.on }), t[11] = u, t[12] = h) : h = t[12];
1694
+ let b;
1695
+ t[13] !== h ? (b = /* @__PURE__ */ o(Pe.Thumb, { borderRadius: "full", children: h }), t[13] = h, t[14] = b) : b = t[14];
1661
1696
  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,
1697
+ t[15] !== d ? (m = d && /* @__PURE__ */ o(Pe.Indicator, { fallback: d.off, children: d.on }), t[15] = d, t[16] = m) : m = t[16];
1698
+ let S;
1699
+ t[17] !== p || t[18] !== b || t[19] !== m ? (S = /* @__PURE__ */ y(Pe.Control, { borderRadius: "md", cursor: p, children: [
1700
+ b,
1666
1701
  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) => {
1702
+ ] }), t[17] = p, t[18] = b, t[19] = m, t[20] = S) : S = t[20];
1703
+ let w;
1704
+ t[21] !== i || t[22] !== p ? (w = i != null && /* @__PURE__ */ o(Pe.Label, { cursor: p, children: i }), t[21] = i, t[22] = p, t[23] = w) : w = t[23];
1705
+ let I;
1706
+ return t[24] !== f || t[25] !== p || t[26] !== r || t[27] !== a || t[28] !== g || t[29] !== S || t[30] !== w ? (I = /* @__PURE__ */ y(Pe.Root, { ref: a, disabled: f, cursor: p, ...r, children: [
1707
+ g,
1708
+ S,
1709
+ w
1710
+ ] }), t[24] = f, t[25] = p, t[26] = r, t[27] = a, t[28] = g, t[29] = S, t[30] = w, t[31] = I) : I = t[31], I;
1711
+ }), To = {
1712
+ viewMode: "board",
1713
+ columnGrouping: "status",
1714
+ rowGrouping: "none",
1715
+ ordering: {
1716
+ field: "manual",
1717
+ direction: "asc"
1718
+ },
1719
+ displayProperties: []
1720
+ }, Po = [{
1721
+ value: "status",
1722
+ label: "Status"
1723
+ }, {
1724
+ value: "assignee",
1725
+ label: "Assignee"
1726
+ }, {
1727
+ value: "none",
1728
+ label: "No grouping"
1729
+ }], Do = [{
1730
+ value: "manual",
1731
+ label: "Manual"
1732
+ }, {
1733
+ value: "updated",
1734
+ label: "Updated"
1735
+ }, {
1736
+ value: "title",
1737
+ label: "Title"
1738
+ }, {
1739
+ value: "ticketId",
1740
+ label: "ID"
1741
+ }], _o = [{
1742
+ value: "id",
1743
+ label: "ID"
1744
+ }, {
1745
+ value: "status",
1746
+ label: "Status"
1747
+ }, {
1748
+ value: "updated",
1749
+ label: "Updated"
1750
+ }], Qe = (l) => l.startsWith("tag:"), Ze = (l) => l.slice(4), Ke = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), Ct = (l, e) => {
1751
+ const n = /* @__PURE__ */ new Set();
1752
+ for (const t of l)
1753
+ if (e === "status")
1754
+ t.status && n.add(t.status);
1755
+ else if (e === "assignee")
1756
+ t.assignee && n.add(t.assignee);
1757
+ else if (Qe(e)) {
1758
+ const i = Ze(e), s = t.tags?.find((r) => r.name === i);
1759
+ s && n.add(s.value);
1760
+ }
1761
+ return [...n].sort((t, i) => t.localeCompare(i, void 0, {
1762
+ numeric: !0
1763
+ })).map((t) => ({
1764
+ value: t,
1765
+ label: Ke(t)
1766
+ }));
1767
+ }, Lo = (l, e) => {
1768
+ const n = [{
1769
+ id: "status",
1770
+ label: "Status",
1771
+ options: Ct(l, "status")
1772
+ }, {
1773
+ id: "assignee",
1774
+ label: "Assignee",
1775
+ options: Ct(l, "assignee")
1776
+ }];
1777
+ for (const t of e) {
1778
+ const i = `tag:${t.name}`;
1779
+ n.push({
1780
+ id: i,
1781
+ label: t.label,
1782
+ options: t.options.map((s) => ({
1783
+ value: s.value,
1784
+ label: s.label
1785
+ }))
1786
+ });
1787
+ }
1788
+ return n;
1789
+ }, Xt = (l, e) => {
1790
+ const n = [], t = (i) => e.includes(i);
1791
+ return t("status") && l.status && n.push({
1792
+ label: l.status,
1793
+ color: l.statusColor ?? "gray"
1794
+ }), t("assignee") && l.assignee && n.push({
1795
+ label: l.assignee,
1796
+ color: "blue"
1797
+ }), t("updated") && l.updatedAt && n.push({
1798
+ label: new Date(l.updatedAt).toLocaleDateString(),
1799
+ color: "gray"
1800
+ }), n;
1801
+ }, Ut = (l, e, n) => {
1802
+ const t = [];
1803
+ for (const i of n) {
1804
+ const s = `tag:${i.name}`;
1805
+ if (!e.includes(s)) continue;
1806
+ const r = l.tags?.find((c) => c.name === i.name), a = r ? i.options.find((c) => c.value === r.value) : void 0;
1807
+ t.push({
1808
+ tagName: i.name,
1809
+ label: i.label,
1810
+ value: r?.value ?? null,
1811
+ color: a?.color ?? "purple",
1812
+ options: i.options
1813
+ });
1814
+ }
1815
+ return t;
1816
+ }, $o = (l) => ({
1817
+ grouping: l.map((e) => ({
1818
+ value: `tag:${e.name}`,
1819
+ label: e.label
1820
+ })),
1821
+ ordering: l.map((e) => ({
1822
+ value: `tag:${e.name}`,
1823
+ label: e.label
1824
+ })),
1825
+ display: l.map((e) => ({
1826
+ value: `tag:${e.name}`,
1827
+ label: e.label
1828
+ }))
1829
+ }), Ro = (l) => {
1830
+ const e = l.find((n) => n.value === "none");
1831
+ return e ? [e, ...l.filter((n) => n.value !== "none")] : l;
1832
+ }, Wo = (l, e) => e === "none" ? l.filter((n) => n.value === "none") : l.filter((n) => n.value === "none" || n.value !== e), Eo = (l, e) => l === "none" ? "all" : e?.columnKey, zo = (l, e, n, t) => {
1833
+ if (l === "none")
1834
+ return;
1835
+ const i = t?.[l];
1836
+ return i && i.length > 0 ? i : l === "status" && e ? e : n.find((s) => s.id === l)?.options.map((s) => s.value);
1837
+ }, wt = (l, e) => {
1838
+ const n = {
1839
+ ...l
1840
+ };
1841
+ return delete n[e], n;
1842
+ }, Ue = (l) => {
1677
1843
  const e = R(2);
1678
1844
  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) => {
1681
- const e = R(19);
1682
- let n;
1683
- 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
- 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
- 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: [
1691
- t,
1692
- s
1693
- ] }) }), e[7] = t, e[8] = r) : r = e[8];
1694
- 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];
1696
- 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];
1698
- let d;
1699
- e[13] !== r || e[14] !== c ? (d = /* @__PURE__ */ x(Y.Root, { children: [
1700
- r,
1701
- c
1702
- ] }), e[13] = r, e[14] = c, e[15] = d) : d = e[15];
1703
- let u;
1704
- return e[16] !== i || e[17] !== d ? (u = /* @__PURE__ */ x(B, { gap: "2xs", children: [
1705
- i,
1706
- d
1707
- ] }), e[16] = i, e[17] = d, e[18] = u) : u = e[18], u;
1708
- }, Jl = (l) => {
1709
- const e = R(60), {
1845
+ 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;
1846
+ }, lt = (l) => {
1847
+ const e = R(34);
1848
+ let n, t, i, s, r, a, c, u, d, f;
1849
+ if (e[0] !== l) {
1850
+ const m = Ro(l.options), S = m.find((v) => v.value === l.value)?.label ?? l.label, w = m[0]?.value === "none";
1851
+ s = H, d = "2xs", e[11] !== l.label ? (f = /* @__PURE__ */ o(Ue, { children: l.label }), e[11] = l.label, e[12] = f) : f = e[12], i = j.Root;
1852
+ let I;
1853
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ o(te, { as: Fe, color: "fg.muted" }), e[13] = I) : I = e[13], u = /* @__PURE__ */ o(j.Trigger, { asChild: !0, children: /* @__PURE__ */ y(pe, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
1854
+ S,
1855
+ I
1856
+ ] }) }), t = j.Positioner, n = j.Content, r = "260px", a = "bg";
1857
+ let x;
1858
+ e[14] !== w || e[15] !== l ? (x = (v, T) => /* @__PURE__ */ y(zt, { children: [
1859
+ w && T === 1 ? /* @__PURE__ */ o(j.Separator, {}) : null,
1860
+ /* @__PURE__ */ o(j.Item, { value: v.value, onClick: () => l.onSelect(v.value), children: /* @__PURE__ */ o(z, { textStyle: "label/S/regular", children: v.label }) })
1861
+ ] }, v.value), e[14] = w, e[15] = l, e[16] = x) : x = e[16], c = m.map(x), e[0] = l, e[1] = n, e[2] = t, e[3] = i, e[4] = s, e[5] = r, e[6] = a, e[7] = c, e[8] = u, e[9] = d, e[10] = f;
1862
+ } else
1863
+ n = e[1], t = e[2], i = e[3], s = e[4], r = e[5], a = e[6], c = e[7], u = e[8], d = e[9], f = e[10];
1864
+ let p;
1865
+ e[17] !== n || e[18] !== r || e[19] !== a || e[20] !== c ? (p = /* @__PURE__ */ o(n, { minW: r, bg: a, children: c }), e[17] = n, e[18] = r, e[19] = a, e[20] = c, e[21] = p) : p = e[21];
1866
+ let g;
1867
+ e[22] !== t || e[23] !== p ? (g = /* @__PURE__ */ o(t, { children: p }), e[22] = t, e[23] = p, e[24] = g) : g = e[24];
1868
+ let h;
1869
+ e[25] !== i || e[26] !== u || e[27] !== g ? (h = /* @__PURE__ */ y(i, { children: [
1870
+ u,
1871
+ g
1872
+ ] }), e[25] = i, e[26] = u, e[27] = g, e[28] = h) : h = e[28];
1873
+ let b;
1874
+ return e[29] !== s || e[30] !== d || e[31] !== f || e[32] !== h ? (b = /* @__PURE__ */ y(s, { gap: d, children: [
1875
+ f,
1876
+ h
1877
+ ] }), e[29] = s, e[30] = d, e[31] = f, e[32] = h, e[33] = b) : b = e[33], b;
1878
+ }, Oo = (l) => {
1879
+ const e = R(58), {
1710
1880
  settings: n,
1711
1881
  groupingOptions: t,
1712
1882
  orderingOptions: i,
@@ -1714,8 +1884,8 @@ const Ni = (l) => {
1714
1884
  onViewModeChange: r,
1715
1885
  onColumnGroupingChange: a,
1716
1886
  onRowGroupingChange: c,
1717
- onOrderingFieldChange: d,
1718
- onSortDirectionToggle: u,
1887
+ onOrderingFieldChange: u,
1888
+ onSortDirectionToggle: d,
1719
1889
  onDisplayPropertyToggle: f
1720
1890
  } = l;
1721
1891
  let p;
@@ -1725,105 +1895,101 @@ const Ni = (l) => {
1725
1895
  mainAxis: 8
1726
1896
  }
1727
1897
  }, 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
1898
  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];
1899
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o(Ce.Trigger, { asChild: !0, children: /* @__PURE__ */ o(ge, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ o(te, { as: Nn, boxSize: "14px" }) }) }), e[1] = g) : g = e[1];
1900
+ let h;
1901
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(Ue, { children: "View" }), e[2] = h) : h = e[2];
1902
+ let b;
1903
+ e[3] !== r ? (b = (A) => {
1904
+ A.value && r(A.value);
1905
+ }, e[3] = r, e[4] = b) : b = e[4];
1736
1906
  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 }),
1907
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ o(ve.Indicator, {}), e[5] = m) : m = e[5];
1908
+ let S;
1909
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(ve.Item, { value: "list", children: [
1910
+ /* @__PURE__ */ o(ve.ItemText, { children: /* @__PURE__ */ y(N, { as: "span", gap: "2xs", children: [
1911
+ /* @__PURE__ */ o(Hn, { size: 14 }),
1742
1912
  /* @__PURE__ */ o("span", { children: "List" })
1743
1913
  ] }) }),
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 }),
1914
+ /* @__PURE__ */ o(ve.ItemHiddenInput, {})
1915
+ ] }), e[6] = S) : S = e[6];
1916
+ let w;
1917
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ y(ve.Item, { value: "board", children: [
1918
+ /* @__PURE__ */ o(ve.ItemText, { children: /* @__PURE__ */ y(N, { as: "span", gap: "2xs", children: [
1919
+ /* @__PURE__ */ o(Fn, { size: 14 }),
1750
1920
  /* @__PURE__ */ o("span", { children: "Board" })
1751
1921
  ] }) }),
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];
1922
+ /* @__PURE__ */ o(ve.ItemHiddenInput, {})
1923
+ ] }), e[7] = w) : w = e[7];
1762
1924
  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];
1768
- const T = n.rowGrouping;
1769
- let b;
1770
- 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;
1773
- } 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];
1925
+ e[8] !== n.viewMode || e[9] !== b ? (I = /* @__PURE__ */ y(ve.Root, { size: "sm", value: n.viewMode, onValueChange: b, children: [
1926
+ m,
1927
+ S,
1928
+ w
1929
+ ] }), e[8] = n.viewMode, e[9] = b, e[10] = I) : I = e[10];
1930
+ let x;
1931
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ o(it, {}), e[11] = x) : x = e[11];
1932
+ let v;
1933
+ e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (v = (A) => {
1934
+ a(A), (A === "none" || A === n.rowGrouping) && c("none");
1935
+ }, e[12] = a, e[13] = c, e[14] = n.rowGrouping, e[15] = v) : v = e[15];
1936
+ let T;
1937
+ e[16] !== t || e[17] !== n.columnGrouping || e[18] !== v ? (T = /* @__PURE__ */ o(lt, { label: "Grouping", value: n.columnGrouping, options: t, onSelect: v }), e[16] = t, e[17] = n.columnGrouping, e[18] = v, e[19] = T) : T = e[19];
1938
+ const P = n.rowGrouping;
1939
+ let L;
1940
+ e[20] !== t || e[21] !== n.columnGrouping ? (L = Wo(t, n.columnGrouping), e[20] = t, e[21] = n.columnGrouping, e[22] = L) : L = e[22];
1779
1941
  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)";
1942
+ e[23] !== c || e[24] !== n.rowGrouping || e[25] !== L ? (_ = /* @__PURE__ */ o(lt, { label: "Sub-grouping", value: P, options: L, onSelect: c }), e[23] = c, e[24] = n.rowGrouping, e[25] = L, e[26] = _) : _ = e[26];
1943
+ let k;
1944
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ o(Ue, { children: "Ordering" }), e[27] = k) : k = e[27];
1945
+ let D;
1946
+ e[28] !== u || e[29] !== i || e[30] !== n.ordering.field ? (D = /* @__PURE__ */ o(lt, { label: "Sort by", value: n.ordering.field, options: i, onSelect: u }), e[28] = u, e[29] = i, e[30] = n.ordering.field, e[31] = D) : D = e[31];
1947
+ const C = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
1782
1948
  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
1949
+ e[32] !== C ? ($ = /* @__PURE__ */ o(te, { as: Vn, transform: C }), e[32] = C, e[33] = $) : $ = e[33];
1950
+ let W;
1951
+ e[34] !== d || e[35] !== n.ordering.direction || e[36] !== $ ? (W = /* @__PURE__ */ o(ge, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: d, "data-direction": n.ordering.direction, children: $ }), e[34] = d, e[35] = n.ordering.direction, e[36] = $, e[37] = W) : W = e[37];
1952
+ let E;
1953
+ e[38] !== D || e[39] !== W ? (E = /* @__PURE__ */ y(H, { gap: "2xs", children: [
1954
+ k,
1955
+ /* @__PURE__ */ y(N, { gap: "2xs", children: [
1956
+ D,
1957
+ W
1792
1958
  ] })
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;
1799
- 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;
1805
- } else
1806
- X = e[48];
1959
+ ] }), e[38] = D, e[39] = W, e[40] = E) : E = e[40];
1960
+ let O;
1961
+ e[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ o(it, {}), e[41] = O) : O = e[41];
1962
+ let M;
1963
+ e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ o(Ue, { children: "Display properties" }), e[42] = M) : M = e[42];
1807
1964
  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,
1817
- k,
1818
- y,
1819
- D,
1820
- P,
1965
+ if (e[43] !== s || e[44] !== f || e[45] !== n.displayProperties) {
1966
+ let A;
1967
+ e[47] !== f || e[48] !== n.displayProperties ? (A = (K) => {
1968
+ const G = n.displayProperties.includes(K.value);
1969
+ return /* @__PURE__ */ o(pe, { size: "2xs", variant: G ? "solid" : "outline", onClick: () => f(K.value), children: K.label }, K.value);
1970
+ }, e[47] = f, e[48] = n.displayProperties, e[49] = A) : A = e[49], F = s.map(A), e[43] = s, e[44] = f, e[45] = n.displayProperties, e[46] = F;
1971
+ } else
1972
+ F = e[46];
1973
+ let X;
1974
+ e[50] !== F ? (X = /* @__PURE__ */ y(H, { gap: "2xs", children: [
1975
+ M,
1976
+ /* @__PURE__ */ o(N, { flexWrap: "wrap", gap: "2xs", children: F })
1977
+ ] }), e[50] = F, e[51] = X) : X = e[51];
1978
+ let V;
1979
+ return e[52] !== T || e[53] !== _ || e[54] !== E || e[55] !== X || e[56] !== I ? (V = /* @__PURE__ */ y(Ce.Root, { positioning: p, children: [
1980
+ g,
1981
+ /* @__PURE__ */ o(Me, { children: /* @__PURE__ */ o(Ce.Positioner, { children: /* @__PURE__ */ o(Ce.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ y(H, { gap: "sm", children: [
1982
+ h,
1983
+ I,
1984
+ x,
1985
+ T,
1986
+ _,
1987
+ E,
1821
1988
  O,
1822
- G,
1823
- F
1989
+ X
1824
1990
  ] }) }) }) })
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) => {
1991
+ ] }), e[52] = T, e[53] = _, e[54] = E, e[55] = X, e[56] = I, e[57] = V) : V = e[57], V;
1992
+ }, Ao = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), Mo = (l) => {
1827
1993
  const e = R(39), {
1828
1994
  categories: n,
1829
1995
  filters: t,
@@ -1831,93 +1997,93 @@ const Ni = (l) => {
1831
1997
  onToggleFilterValue: s,
1832
1998
  onClearFilter: r,
1833
1999
  onClearAll: a
1834
- } = l, [c, d] = ge(n[0]?.id ?? "status");
1835
- 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 = {
2000
+ } = l, [c, u] = he(n[0]?.id ?? "status");
2001
+ let d;
2002
+ e[0] !== c || e[1] !== n ? (d = n.find((D) => D.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = d) : d = e[2];
2003
+ const f = d, p = Ao(t);
2004
+ let g;
2005
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
1840
2006
  placement: "bottom-end",
1841
2007
  offset: {
1842
2008
  mainAxis: 8
1843
2009
  }
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];
2010
+ }, e[3] = g) : g = e[3];
2011
+ const h = p > 0 ? "outline" : "ghost";
2012
+ let b;
2013
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ o(te, { as: jn, boxSize: "14px" }), e[4] = b) : b = e[4];
1848
2014
  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,
2015
+ e[5] !== p ? (m = p > 0 ? /* @__PURE__ */ o(Se, { variant: "solid", children: p }) : null, e[5] = p, e[6] = m) : m = e[6];
2016
+ let S;
2017
+ e[7] !== m ? (S = /* @__PURE__ */ y(N, { gap: "2xs", children: [
2018
+ b,
1853
2019
  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];
2020
+ ] }), e[7] = m, e[8] = S) : S = e[8];
2021
+ let w;
2022
+ e[9] !== h || e[10] !== S ? (w = /* @__PURE__ */ o(Ce.Trigger, { asChild: !0, children: /* @__PURE__ */ o(ge, { "aria-label": "Filter tickets", variant: h, size: "sm", children: S }) }), e[9] = h, e[10] = S, e[11] = w) : w = e[11];
1864
2023
  let I;
2024
+ 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];
2025
+ let x;
2026
+ e[13] !== a ? (x = /* @__PURE__ */ y(N, { justifyContent: "space-between", children: [
2027
+ I,
2028
+ /* @__PURE__ */ o(pe, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
2029
+ ] }), e[13] = a, e[14] = x) : x = e[14];
2030
+ let v;
1865
2031
  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;
2032
+ let D;
2033
+ e[19] !== c || e[20] !== t ? (D = (C) => {
2034
+ const $ = t[C.id] ?? [];
2035
+ return /* @__PURE__ */ y(pe, { variant: c === C.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => u(C.id), children: [
2036
+ /* @__PURE__ */ o(z, { children: C.label }),
2037
+ $.length > 0 ? /* @__PURE__ */ o(Se, { variant: "subtle", children: $.length }) : null
2038
+ ] }, C.id);
2039
+ }, 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
2040
  } 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];
2041
+ v = e[18];
1881
2042
  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 }),
2043
+ e[22] !== x || e[23] !== v ? (T = /* @__PURE__ */ y(H, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
2044
+ x,
2045
+ v
2046
+ ] }), e[22] = x, e[23] = v, e[24] = T) : T = e[24];
2047
+ let P;
2048
+ e[25] !== f || e[26] !== i || e[27] !== t || e[28] !== r || e[29] !== s ? (P = f ? /* @__PURE__ */ y(at, { children: [
2049
+ /* @__PURE__ */ y(N, { justifyContent: "space-between", children: [
2050
+ /* @__PURE__ */ o(z, { textStyle: "label/S/medium", children: f.label }),
1885
2051
  /* @__PURE__ */ o(pe, { size: "2xs", variant: "ghost", onClick: () => r(f.id), children: "Clear" })
1886
2052
  ] }),
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: {
2053
+ /* @__PURE__ */ o(H, { gap: "2xs", children: f.options.map((D) => {
2054
+ const C = (t[f.id] ?? []).includes(D.value), $ = i[f.id]?.[D.value] ?? 0;
2055
+ return /* @__PURE__ */ o(B, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
1890
2056
  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);
2057
+ }, children: /* @__PURE__ */ o(bn, { checked: C, onCheckedChange: () => s(f.id, D.value), children: /* @__PURE__ */ y(N, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
2058
+ /* @__PURE__ */ o(z, { textStyle: "label/S/regular", children: D.label }),
2059
+ /* @__PURE__ */ o(z, { textStyle: "label/XS/regular", color: "fg.muted", children: $ })
2060
+ ] }) }) }, D.value);
1895
2061
  }) })
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];
1899
- 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 = {
2062
+ ] }) : null, e[25] = f, e[26] = i, e[27] = t, e[28] = r, e[29] = s, e[30] = P) : P = e[30];
2063
+ let L;
2064
+ e[31] !== P ? (L = /* @__PURE__ */ o(H, { flex: "1", p: "sm", gap: "sm", children: P }), e[31] = P, e[32] = L) : L = e[32];
2065
+ let _;
2066
+ e[33] !== T || e[34] !== L ? (_ = /* @__PURE__ */ o(Me, { children: /* @__PURE__ */ o(Ce.Positioner, { children: /* @__PURE__ */ o(Ce.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ y(N, { align: "stretch", gap: "0", minH: "320px", children: [
2067
+ T,
2068
+ L
2069
+ ] }) }) }) }), e[33] = T, e[34] = L, e[35] = _) : _ = e[35];
2070
+ let k;
2071
+ return e[36] !== _ || e[37] !== w ? (k = /* @__PURE__ */ y(Ce.Root, { positioning: g, children: [
2072
+ w,
2073
+ _
2074
+ ] }), e[36] = _, e[37] = w, e[38] = k) : k = e[38], k;
2075
+ }, Go = {
1910
2076
  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) => {
2077
+ }, Bo = /* @__PURE__ */ new Set(["gray", "red", "orange", "yellow", "green", "teal", "blue", "cyan", "purple", "pink"]), No = (l) => l === "current_branch" ? Xn : Un, Ho = (l) => {
1912
2078
  if (l.startsWith("#") || l.startsWith("rgb") || l.startsWith("hsl") || l.startsWith("var("))
1913
2079
  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) => {
2080
+ const e = Go[l] ?? l;
2081
+ return Bo.has(e) ? `var(--chakra-colors-${e}-500)` : e;
2082
+ }, Fo = (l) => l ? l.description ? `${l.name}: ${l.description}` : l.name : null, Kt = (l, e) => {
1917
2083
  l.stopPropagation(), e?.();
1918
- }, io = (l, e) => {
2084
+ }, Vo = (l, e) => {
1919
2085
  l.stopPropagation(), e?.();
1920
- }, ro = (l) => {
2086
+ }, jo = (l) => {
1921
2087
  const e = R(9), {
1922
2088
  sessionStatus: n,
1923
2089
  onSessionIndicatorClick: t
@@ -1926,48 +2092,48 @@ const Ni = (l) => {
1926
2092
  return null;
1927
2093
  const i = t ? "Open latest session" : "Latest session status";
1928
2094
  let s;
1929
- e[0] !== t ? (s = t ? (c) => Ht(c, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
2095
+ e[0] !== t ? (s = t ? (c) => Kt(c, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
1930
2096
  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];
2097
+ e[2] !== n || e[3] !== i || e[4] !== s ? (r = /* @__PURE__ */ o(Zl, { 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];
1932
2098
  let a;
1933
2099
  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) => {
2100
+ }, Xo = (l) => {
1935
2101
  const e = R(13), {
1936
2102
  workspaceType: n,
1937
2103
  initializing: t,
1938
2104
  shorthand: i
1939
2105
  } = l;
1940
2106
  let s;
1941
- e[0] !== n ? (s = no(n), e[0] = n, e[1] = s) : s = e[1];
2107
+ e[0] !== n ? (s = No(n), e[0] = n, e[1] = s) : s = e[1];
1942
2108
  const r = s, a = n === "worktree" ? "Worktree" : "Current branch";
1943
2109
  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];
1945
- 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];
2110
+ e[2] !== r || e[3] !== a ? (c = /* @__PURE__ */ o(te, { as: r, boxSize: "12px", "aria-label": a }), e[2] = r, e[3] = a, e[4] = c) : c = e[4];
1947
2111
  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];
2112
+ e[5] !== t ? (u = t ? /* @__PURE__ */ o(Lt, { size: "xs", color: "fg.muted" }) : null, e[5] = t, e[6] = u) : u = e[6];
2113
+ let d;
2114
+ e[7] !== i ? (d = i ? /* @__PURE__ */ o(z, { as: "span", textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: i }) : null, e[7] = i, e[8] = d) : d = e[8];
1949
2115
  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: [
2116
+ return e[9] !== c || e[10] !== u || e[11] !== d ? (f = /* @__PURE__ */ y(N, { as: "span", gap: "0", alignItems: "center", color: "fg.muted", flexShrink: 0, children: [
1951
2117
  c,
1952
- d,
1953
- u
1954
- ] }), e[9] = c, e[10] = d, e[11] = u, e[12] = f) : f = e[12], f;
1955
- }, ao = (l) => {
2118
+ u,
2119
+ d
2120
+ ] }), e[9] = c, e[10] = u, e[11] = d, e[12] = f) : f = e[12], f;
2121
+ }, Uo = (l) => {
1956
2122
  const e = R(10), {
1957
2123
  attemptStatus: n
1958
2124
  } = l;
1959
2125
  if (!n)
1960
2126
  return null;
1961
2127
  let t;
1962
- e[0] !== n ? (t = oo(n), e[0] = n, e[1] = t) : t = e[1];
2128
+ e[0] !== n ? (t = Fo(n), e[0] = n, e[1] = t) : t = e[1];
1963
2129
  let i;
1964
- e[2] !== n.color ? (i = lo(n.color), e[2] = n.color, e[3] = i) : i = e[3];
2130
+ e[2] !== n.color ? (i = Ho(n.color), e[2] = n.color, e[3] = i) : i = e[3];
1965
2131
  const s = `Attempt status ${n.name}`;
1966
2132
  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];
2133
+ e[4] !== i || e[5] !== s ? (r = /* @__PURE__ */ o(B, { 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];
1968
2134
  let a;
1969
2135
  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) => {
2136
+ }, Ko = (l) => {
1971
2137
  const e = R(3), {
1972
2138
  diffAdditions: n,
1973
2139
  diffDeletions: t
@@ -1975,8 +2141,8 @@ const Ni = (l) => {
1975
2141
  if (typeof n != "number" || typeof t != "number")
1976
2142
  return null;
1977
2143
  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) => {
2144
+ return e[0] !== n || e[1] !== t ? (i = /* @__PURE__ */ o(Rt, { additions: n, deletions: t, variant: "ghost", size: "small", fileName: void 0 }), e[0] = n, e[1] = t, e[2] = i) : i = e[2], i;
2145
+ }, Yo = (l) => {
1980
2146
  const e = R(5), {
1981
2147
  hasMultipleWorkspaces: n,
1982
2148
  onDropdownClick: t
@@ -1985,10 +2151,10 @@ const Ni = (l) => {
1985
2151
  return null;
1986
2152
  const i = t ? "pointer" : "default";
1987
2153
  let s;
1988
- e[0] !== t ? (s = t ? (a) => Ht(a, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
2154
+ e[0] !== t ? (s = t ? (a) => Kt(a, t) : void 0, e[0] = t, e[1] = s) : s = e[1];
1989
2155
  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) => {
2156
+ return e[2] !== i || e[3] !== s ? (r = /* @__PURE__ */ o(te, { 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;
2157
+ }, qo = (l) => {
1992
2158
  const e = R(26), {
1993
2159
  workspaceType: n,
1994
2160
  initializing: t,
@@ -1997,94 +2163,184 @@ const Ni = (l) => {
1997
2163
  sessionStatus: r,
1998
2164
  showLeadingSessionIndicator: a,
1999
2165
  diffAdditions: c,
2000
- diffDeletions: d,
2001
- hasMultipleWorkspaces: u,
2166
+ diffDeletions: u,
2167
+ hasMultipleWorkspaces: d,
2002
2168
  onClick: f,
2003
2169
  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 = {
2170
+ onSessionIndicatorClick: g
2171
+ } = l, h = t === void 0 ? !1 : t, b = a === void 0 ? !0 : a, m = d === void 0 ? !1 : d;
2172
+ let S;
2173
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
2008
2174
  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];
2175
+ }, e[0] = S) : S = e[0];
2176
+ let w;
2177
+ e[1] !== f ? (w = f ? (_) => Vo(_, f) : void 0, e[1] = f, e[2] = w) : w = e[2];
2016
2178
  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];
2179
+ e[3] !== g || e[4] !== r || e[5] !== b ? (I = b ? /* @__PURE__ */ o(jo, { sessionStatus: r, onSessionIndicatorClick: g }) : null, e[3] = g, e[4] = r, e[5] = b, e[6] = I) : I = e[6];
2180
+ let x;
2181
+ e[7] !== h || e[8] !== i || e[9] !== n ? (x = /* @__PURE__ */ o(Xo, { workspaceType: n, initializing: h, shorthand: i }), e[7] = h, e[8] = i, e[9] = n, e[10] = x) : x = e[10];
2182
+ let v;
2183
+ e[11] !== s ? (v = /* @__PURE__ */ o(Uo, { attemptStatus: s }), e[11] = s, e[12] = v) : v = e[12];
2020
2184
  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,
2185
+ e[13] !== c || e[14] !== u ? (T = /* @__PURE__ */ o(Ko, { diffAdditions: c, diffDeletions: u }), e[13] = c, e[14] = u, e[15] = T) : T = e[15];
2186
+ let P;
2187
+ e[16] !== m || e[17] !== p ? (P = /* @__PURE__ */ o(Yo, { hasMultipleWorkspaces: m, onDropdownClick: p }), e[16] = m, e[17] = p, e[18] = P) : P = e[18];
2188
+ let L;
2189
+ return e[19] !== w || e[20] !== I || e[21] !== x || e[22] !== v || e[23] !== T || e[24] !== P ? (L = /* @__PURE__ */ y(N, { 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
2190
  I,
2027
- D,
2028
- 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), {
2191
+ x,
2192
+ v,
2193
+ T,
2194
+ P
2195
+ ] }), e[19] = w, e[20] = I, e[21] = x, e[22] = v, e[23] = T, e[24] = P, e[25] = L) : L = e[25], L;
2196
+ }, Jo = {
2197
+ circle: al,
2198
+ bug: sl,
2199
+ sparkles: rl,
2200
+ "book-open": il,
2201
+ wrench: ol,
2202
+ gauge: ll,
2203
+ "alert-triangle": nl,
2204
+ star: tl,
2205
+ flag: el,
2206
+ flame: Zn,
2207
+ lightbulb: Qn,
2208
+ shield: Jn,
2209
+ eye: qn,
2210
+ clock: Yn,
2211
+ "check-circle": Kn
2212
+ }, It = (l) => l ? Jo[l] ?? null : null, Yt = (l) => {
2213
+ const e = R(37), {
2214
+ value: n,
2215
+ label: t,
2216
+ color: i,
2217
+ options: s,
2218
+ onValueChange: r
2219
+ } = l, a = i === void 0 ? "purple" : i;
2220
+ let c, u;
2221
+ e[0] !== s || e[1] !== n ? (c = n ? s.find((x) => x.value === n) : void 0, u = It(c?.icon), e[0] = s, e[1] = n, e[2] = c, e[3] = u) : (c = e[2], u = e[3]);
2222
+ const d = u, f = n ? c?.label ?? n : t ?? "—";
2223
+ if (!r || s.length === 0) {
2224
+ let x;
2225
+ e[4] !== d ? (x = d ? /* @__PURE__ */ o(te, { as: d, boxSize: "12px" }) : null, e[4] = d, e[5] = x) : x = e[5];
2226
+ let v;
2227
+ e[6] !== f ? (v = /* @__PURE__ */ o(z, { as: "span", children: f }), e[6] = f, e[7] = v) : v = e[7];
2228
+ let T;
2229
+ e[8] !== x || e[9] !== v ? (T = /* @__PURE__ */ y(N, { as: "span", gap: "1", alignItems: "center", children: [
2230
+ x,
2231
+ v
2232
+ ] }), e[8] = x, e[9] = v, e[10] = T) : T = e[10];
2233
+ let P;
2234
+ return e[11] !== a || e[12] !== T ? (P = /* @__PURE__ */ o(Se, { variant: "subtle", colorPalette: a, textStyle: "label/XS/medium", children: T }), e[11] = a, e[12] = T, e[13] = P) : P = e[13], P;
2235
+ }
2236
+ let p;
2237
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
2238
+ opacity: 0.8
2239
+ }, e[14] = p) : p = e[14];
2240
+ let g;
2241
+ e[15] !== d ? (g = d ? /* @__PURE__ */ o(te, { as: d, boxSize: "12px" }) : null, e[15] = d, e[16] = g) : g = e[16];
2242
+ let h;
2243
+ e[17] !== f ? (h = /* @__PURE__ */ o(z, { as: "span", children: f }), e[17] = f, e[18] = h) : h = e[18];
2244
+ let b;
2245
+ e[19] !== g || e[20] !== h ? (b = /* @__PURE__ */ y(N, { as: "span", gap: "1", alignItems: "center", children: [
2246
+ g,
2247
+ h
2248
+ ] }), e[19] = g, e[20] = h, e[21] = b) : b = e[21];
2249
+ let m;
2250
+ e[22] !== a || e[23] !== b ? (m = /* @__PURE__ */ o(j.Trigger, { asChild: !0, children: /* @__PURE__ */ o(Se, { variant: "subtle", colorPalette: a, textStyle: "label/XS/medium", cursor: "pointer", _hover: p, onClick: Qo, children: b }) }), e[22] = a, e[23] = b, e[24] = m) : m = e[24];
2251
+ let S;
2252
+ if (e[25] !== r || e[26] !== s || e[27] !== n) {
2253
+ let x;
2254
+ e[29] !== r || e[30] !== n ? (x = (v) => {
2255
+ const T = It(v.icon);
2256
+ return /* @__PURE__ */ y(j.Item, { value: v.value, onClick: () => r(v.value), children: [
2257
+ T ? /* @__PURE__ */ o(te, { as: T, boxSize: "14px", color: "fg.muted" }) : null,
2258
+ /* @__PURE__ */ o(z, { textStyle: "label/S/regular", flex: "1", children: v.label }),
2259
+ v.value === n && /* @__PURE__ */ o(te, { as: cl, boxSize: "14px", color: "fg.muted" })
2260
+ ] }, v.value);
2261
+ }, e[29] = r, e[30] = n, e[31] = x) : x = e[31], S = s.map(x), e[25] = r, e[26] = s, e[27] = n, e[28] = S;
2262
+ } else
2263
+ S = e[28];
2264
+ let w;
2265
+ e[32] !== S ? (w = /* @__PURE__ */ o(j.Positioner, { children: /* @__PURE__ */ o(j.Content, { minW: "160px", bg: "bg", onClick: Zo, children: S }) }), e[32] = S, e[33] = w) : w = e[33];
2266
+ let I;
2267
+ return e[34] !== m || e[35] !== w ? (I = /* @__PURE__ */ y(j.Root, { children: [
2268
+ m,
2269
+ w
2270
+ ] }), e[34] = m, e[35] = w, e[36] = I) : I = e[36], I;
2271
+ };
2272
+ function Qo(l) {
2273
+ return l.stopPropagation();
2274
+ }
2275
+ function Zo(l) {
2276
+ return l.stopPropagation();
2277
+ }
2278
+ const qt = (l) => {
2279
+ const e = R(34), {
2032
2280
  ticketId: n,
2033
2281
  parentPath: t,
2034
2282
  title: i,
2035
2283
  badges: s,
2036
- workspaceBadge: r,
2037
- isSelected: a,
2038
- draggable: c,
2284
+ tagBadges: r,
2285
+ workspaceBadge: a,
2286
+ isSelected: c,
2287
+ draggable: u,
2039
2288
  onDragStart: d,
2040
- onDragEnd: u,
2041
- onClick: f
2289
+ onDragEnd: f,
2290
+ onClick: p,
2291
+ onTagChange: g
2042
2292
  } = 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 = {
2293
+ let h;
2294
+ e[0] !== t ? (h = t === void 0 ? [] : t, e[0] = t, e[1] = h) : h = e[1];
2295
+ const b = h;
2296
+ let m;
2297
+ e[2] !== s ? (m = s === void 0 ? [] : s, e[2] = s, e[3] = m) : m = e[3];
2298
+ const S = m;
2299
+ let w;
2300
+ e[4] !== r ? (w = r === void 0 ? [] : r, e[4] = r, e[5] = w) : w = e[5];
2301
+ const I = w, x = c === void 0 ? !1 : c, v = S.length > 0 || I.length > 0;
2302
+ let T;
2303
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
2051
2304
  borderColor: "border.blue",
2052
2305
  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(" / "),
2306
+ }, e[6] = T) : T = e[6];
2307
+ const P = u ? "grab" : p ? "pointer" : "default", L = x ? "true" : void 0;
2308
+ let _;
2309
+ e[7] !== b ? (_ = b.length > 0 && /* @__PURE__ */ y(z, { as: "span", color: "subtle", children: [
2310
+ b.join(" / "),
2058
2311
  " /",
2059
2312
  " "
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,
2313
+ ] }), e[7] = b, e[8] = _) : _ = e[8];
2314
+ let k;
2315
+ e[9] !== _ || e[10] !== n ? (k = /* @__PURE__ */ y(z, { textStyle: "label/S/regular", flexShrink: 0, children: [
2316
+ _,
2064
2317
  n
2065
- ] }), e[7] = y, e[8] = n, e[9] = I) : I = e[9];
2318
+ ] }), e[9] = _, e[10] = n, e[11] = k) : k = e[11];
2066
2319
  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,
2320
+ e[12] !== a ? (D = a ? /* @__PURE__ */ o(qo, { ...a }) : null, e[12] = a, e[13] = D) : D = e[13];
2321
+ let C;
2322
+ e[14] !== k || e[15] !== D ? (C = /* @__PURE__ */ o(N, { gap: "2xs", flexWrap: "wrap", alignItems: "center", children: /* @__PURE__ */ y(N, { gap: "2xs", flexShrink: 0, children: [
2323
+ k,
2071
2324
  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;
2325
+ ] }) }), e[14] = k, e[15] = D, e[16] = C) : C = e[16];
2326
+ let $;
2327
+ e[17] !== i ? ($ = /* @__PURE__ */ o(N, { align: "start", gap: "2xs", flexWrap: "wrap", minW: "0", children: /* @__PURE__ */ o(z, { textStyle: "label/S/regular", flex: "1", minW: "0", overflowWrap: "anywhere", children: i }) }), e[17] = i, e[18] = $) : $ = e[18];
2328
+ let W;
2329
+ e[19] !== S || e[20] !== v || e[21] !== g || e[22] !== I ? (W = v && /* @__PURE__ */ y($t, { gap: "2xs", children: [
2330
+ S.map(ei),
2331
+ I.map((O) => /* @__PURE__ */ o(Yt, { value: O.value, label: O.label, color: O.value ? O.color : "gray", options: O.options, onValueChange: g ? (M) => g(O.tagName, M) : void 0 }, O.tagName))
2332
+ ] }), e[19] = S, e[20] = v, e[21] = g, e[22] = I, e[23] = W) : W = e[23];
2333
+ let E;
2334
+ return e[24] !== u || e[25] !== p || e[26] !== f || e[27] !== d || e[28] !== C || e[29] !== $ || e[30] !== W || e[31] !== P || e[32] !== L ? (E = /* @__PURE__ */ y(H, { 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: T, cursor: P, draggable: u, onDragStart: d, onDragEnd: f, onClick: p, "data-selected": L, "data-testid": "ticket-card", children: [
2335
+ C,
2336
+ $,
2337
+ W
2338
+ ] }), e[24] = u, e[25] = p, e[26] = f, e[27] = d, e[28] = C, e[29] = $, e[30] = W, e[31] = P, e[32] = L, e[33] = E) : E = e[33], E;
2083
2339
  };
2084
- function po(l) {
2085
- return /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2340
+ function ei(l) {
2341
+ return /* @__PURE__ */ o(Se, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2086
2342
  }
2087
- const ho = (l) => {
2343
+ const ti = (l) => {
2088
2344
  const e = R(27), {
2089
2345
  columns: n,
2090
2346
  selectedItemId: t,
@@ -2092,240 +2348,309 @@ const ho = (l) => {
2092
2348
  onMoveToGroup: s,
2093
2349
  onCreateStart: r,
2094
2350
  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 = () => {
2098
- u(null), p(null);
2099
- }, e[0] = g) : g = e[0];
2100
- const S = g;
2351
+ } = l, c = t === void 0 ? null : t, [u, d] = he(null), [f, p] = he(null), g = oi;
2352
+ let h;
2353
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
2354
+ d(null), p(null);
2355
+ }, e[0] = h) : h = e[0];
2356
+ const b = h;
2101
2357
  let m;
2102
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (P) => (w) => {
2103
- w.preventDefault(), w.dataTransfer.dropEffect = "move", u(P);
2358
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (_) => (k) => {
2359
+ k.preventDefault(), k.dataTransfer.dropEffect = "move", d(_);
2104
2360
  }, 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 = {
2361
+ const S = m;
2362
+ let w;
2363
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (_) => {
2364
+ _.currentTarget.contains(_.relatedTarget) || d(null);
2365
+ }, e[2] = w) : w = e[2];
2366
+ const I = w;
2367
+ let x;
2368
+ e[3] !== i ? (x = (_) => (k) => {
2369
+ k.preventDefault(), d(null);
2370
+ const D = k.dataTransfer.getData("text/plain");
2371
+ D && i?.(D, _);
2372
+ }, e[3] = i, e[4] = x) : x = e[4];
2373
+ const v = x;
2374
+ let T;
2375
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
2120
2376
  display: "flex",
2121
2377
  alignItems: "stretch",
2122
2378
  gap: "0",
2123
2379
  pb: "2xs",
2124
2380
  minH: "100%"
2125
- }, e[5] = D) : D = e[5];
2126
- 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: {
2381
+ }, e[5] = T) : T = e[5];
2382
+ let P;
2383
+ if (e[6] !== u || e[7] !== f || e[8] !== n || e[9] !== v || e[10] !== a || e[11] !== r || e[12] !== i || e[13] !== s || e[14] !== c) {
2384
+ let _;
2385
+ e[16] !== u || e[17] !== f || e[18] !== v || e[19] !== a || e[20] !== r || e[21] !== i || e[22] !== s || e[23] !== c ? (_ = (k) => /* @__PURE__ */ y(H, { "data-testid": `board-column-${k.id}`, gap: "xs", _notFirst: {
2130
2386
  borderLeft: "1px solid",
2131
2387
  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 }),
2134
- /* @__PURE__ */ o(ke, { flex: "1", minH: "0", verticalScrollbarProps: {
2388
+ }, background: u === k.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: k.canDragIn ? S(k.id) : void 0, onDragLeave: k.canDragIn ? I : void 0, onDrop: k.canDragIn ? v(k.id) : void 0, children: [
2389
+ /* @__PURE__ */ o(li, { column: k, onCreateStart: r, onColumnAction: a }),
2390
+ /* @__PURE__ */ o(we, { flex: "1", minH: "0", verticalScrollbarProps: {
2135
2391
  margin: "0"
2136
2392
  }, contentProps: {
2137
2393
  spaceY: "sm",
2138
2394
  ps: "xs",
2139
2395
  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);
2396
+ }, children: k.groups && k.groups.length > 0 ? k.groups.map((D) => {
2397
+ const C = `${k.id}::${D.key}`;
2398
+ return /* @__PURE__ */ o(ni, { columnId: k.id, group: D, selectedItemId: c, canDragIn: k.canDragIn, canDragOut: k.canDragOut, isDropTarget: f === C, onDragStart: g, onDragEnd: b, onGroupDragOver: ($) => {
2399
+ $.preventDefault(), $.stopPropagation(), $.dataTransfer.dropEffect = "move", p(C), d(null);
2144
2400
  }, onGroupDragLeave: ($) => {
2145
2401
  $.currentTarget.contains($.relatedTarget) || p(null);
2146
- }, onGroupDrop: ($) => {
2147
- $.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;
2402
+ }, onGroupDrop: ($, W) => {
2403
+ $.preventDefault(), $.stopPropagation(), p(null), d(null);
2404
+ const E = $.dataTransfer.getData("text/plain");
2405
+ E && (i?.(E, k.id, {
2406
+ beforeItemId: W
2407
+ }), s?.(E, D.key, {
2408
+ beforeItemId: W
2409
+ }));
2410
+ } }, D.key);
2411
+ }) : k.items.map((D) => /* @__PURE__ */ o(Je, { actions: D.contextMenuActions ?? [], children: /* @__PURE__ */ o(B, { onDragOver: k.canDragIn ? (C) => {
2412
+ C.preventDefault(), C.stopPropagation(), C.dataTransfer.dropEffect = "move", d(k.id);
2413
+ } : void 0, onDrop: k.canDragIn ? (C) => {
2414
+ C.preventDefault(), C.stopPropagation(), d(null);
2415
+ const $ = C.dataTransfer.getData("text/plain");
2416
+ !$ || $ === D.id || i?.($, k.id, {
2417
+ beforeItemId: D.id
2418
+ });
2419
+ } : void 0, children: /* @__PURE__ */ o(qt, { ...D.cardProps, isSelected: D.id === c, draggable: k.canDragOut, onDragStart: k.canDragOut ? g(D.id) : void 0, onDragEnd: k.canDragOut ? b : void 0 }) }) }, D.id)) })
2420
+ ] }, k.id), e[16] = u, e[17] = f, e[18] = v, e[19] = a, e[20] = r, e[21] = i, e[22] = s, e[23] = c, e[24] = _) : _ = e[24], P = n.map(_), e[6] = u, e[7] = f, e[8] = n, e[9] = v, e[10] = a, e[11] = r, e[12] = i, e[13] = s, e[14] = c, e[15] = P;
2153
2421
  } else
2154
- 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,
2422
+ P = e[15];
2423
+ let L;
2424
+ return e[25] !== P ? (L = /* @__PURE__ */ o(we, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: P }), e[25] = P, e[26] = L) : L = e[26], L;
2425
+ }, ni = (l) => {
2426
+ const e = R(30), {
2427
+ columnId: n,
2428
+ group: t,
2429
+ selectedItemId: i,
2430
+ canDragIn: s,
2431
+ canDragOut: r,
2432
+ isDropTarget: a,
2433
+ onDragStart: c,
2434
+ onDragEnd: u,
2166
2435
  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 = {
2172
- bg: "bg.hover"
2173
- }, e[0] = C) : C = e[0];
2174
- 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)";
2436
+ onGroupDragLeave: f,
2437
+ onGroupDrop: p
2438
+ } = l, [g, h] = he(!0), b = a ? "bg.subtle" : "transparent", m = s ? d : void 0, S = s ? f : void 0, w = s ? p : void 0;
2177
2439
  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];
2440
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
2441
+ bg: "bg.hover"
2442
+ }, e[0] = I) : I = e[0];
2443
+ let x;
2444
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => h(ii), e[1] = x) : x = e[1];
2445
+ const v = g ? "rotate(90deg)" : "rotate(0deg)";
2181
2446
  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];
2447
+ e[2] !== v ? (T = /* @__PURE__ */ o(B, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ o(te, { as: De, boxSize: "14px", color: "fg.muted", transform: v, transition: "transform 0.15s ease" }) }), e[2] = v, e[3] = T) : T = e[3];
2189
2448
  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,
2194
- 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) => {
2449
+ e[4] !== t.label ? (P = /* @__PURE__ */ o(z, { textStyle: "label/S/medium", color: "fg.muted", children: t.label }), e[4] = t.label, e[5] = P) : P = e[5];
2450
+ let L;
2451
+ e[6] !== t.items.length ? (L = /* @__PURE__ */ o(Se, { variant: "subtle", colorPalette: "gray", size: "sm", children: t.items.length }), e[6] = t.items.length, e[7] = L) : L = e[7];
2452
+ let _;
2453
+ e[8] !== T || e[9] !== P || e[10] !== L ? (_ = /* @__PURE__ */ y(N, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: I, borderRadius: "sm", onClick: x, children: [
2454
+ T,
2455
+ P,
2456
+ L
2457
+ ] }), e[8] = T, e[9] = P, e[10] = L, e[11] = _) : _ = e[11];
2458
+ let k;
2459
+ e[12] !== s || e[13] !== r || e[14] !== g || e[15] !== t.items || e[16] !== u || e[17] !== c || e[18] !== p || e[19] !== i ? (k = g && /* @__PURE__ */ o(H, { gap: "sm", pt: "xs", children: t.items.map((C) => /* @__PURE__ */ o(Je, { actions: C.contextMenuActions ?? [], children: /* @__PURE__ */ o(B, { onDragOver: s ? ri : void 0, onDrop: s ? ($) => {
2460
+ $.preventDefault(), $.stopPropagation();
2461
+ const W = $.dataTransfer.getData("text/plain");
2462
+ !W || W === C.id || p($, C.id);
2463
+ } : void 0, children: /* @__PURE__ */ o(qt, { ...C.cardProps, isSelected: C.id === i, draggable: r, onDragStart: r ? c(C.id) : void 0, onDragEnd: r ? u : void 0 }) }) }, C.id)) }), e[12] = s, e[13] = r, e[14] = g, e[15] = t.items, e[16] = u, e[17] = c, e[18] = p, e[19] = i, e[20] = k) : k = e[20];
2464
+ let D;
2465
+ return e[21] !== n || e[22] !== t.key || e[23] !== b || e[24] !== m || e[25] !== _ || e[26] !== k || e[27] !== S || e[28] !== w ? (D = /* @__PURE__ */ y(H, { "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: [
2466
+ _,
2467
+ k
2468
+ ] }), e[21] = n, e[22] = t.key, e[23] = b, e[24] = m, e[25] = _, e[26] = k, e[27] = S, e[28] = w, e[29] = D) : D = e[29], D;
2469
+ }, li = (l) => {
2197
2470
  const e = R(20), {
2198
2471
  column: n,
2199
2472
  onCreateStart: t,
2200
2473
  onColumnAction: i
2201
2474
  } = l;
2202
2475
  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];
2476
+ 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];
2204
2477
  const r = n.color ?? "gray";
2205
2478
  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];
2479
+ e[2] !== n.items.length || e[3] !== r ? (a = /* @__PURE__ */ o(Se, { variant: "subtle", colorPalette: r, children: n.items.length }), e[2] = n.items.length, e[3] = r, e[4] = a) : a = e[4];
2207
2480
  let c;
2208
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o(Pt, {}), e[5] = c) : c = e[5];
2209
- 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];
2481
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o(_t, {}), e[5] = c) : c = e[5];
2211
2482
  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];
2483
+ e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (u = n.canCreate && t && /* @__PURE__ */ o(xe, { content: "Create new ticket", children: /* @__PURE__ */ o(ge, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ o(te, { as: dl, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = u) : u = e[9];
2484
+ let d;
2485
+ e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== i ? (d = n.actions.length > 0 && /* @__PURE__ */ y(j.Root, { children: [
2486
+ /* @__PURE__ */ o(j.Trigger, { asChild: !0, children: /* @__PURE__ */ o(ge, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ o(te, { as: ul, boxSize: "12px" }) }) }),
2487
+ /* @__PURE__ */ o(j.Positioner, { children: /* @__PURE__ */ o(j.Content, { minW: "180px", bg: "bg", children: n.actions.map((p) => /* @__PURE__ */ o(Ie, { primaryLabel: p.label, leftIcon: p.icon, onClick: () => i?.(n.id, p.id) }, p.id)) }) })
2488
+ ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = i, e[14] = d) : d = e[14];
2216
2489
  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: [
2490
+ return e[15] !== s || e[16] !== a || e[17] !== u || e[18] !== d ? (f = /* @__PURE__ */ y(N, { padding: "xs", gap: "xs", alignItems: "center", children: [
2218
2491
  s,
2219
2492
  a,
2220
2493
  c,
2221
- d,
2222
- u
2223
- ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = u, e[19] = f) : f = e[19], f;
2494
+ u,
2495
+ d
2496
+ ] }), e[15] = s, e[16] = a, e[17] = u, e[18] = d, e[19] = f) : f = e[19], f;
2224
2497
  };
2225
- function bo(l) {
2498
+ function oi(l) {
2226
2499
  return (e) => {
2227
2500
  e.dataTransfer.setData("text/plain", l), e.dataTransfer.effectAllowed = "move";
2228
2501
  };
2229
2502
  }
2230
- function So(l) {
2503
+ function ii(l) {
2231
2504
  return !l;
2232
2505
  }
2233
- const xo = [{
2506
+ function ri(l) {
2507
+ l.preventDefault(), l.stopPropagation(), l.dataTransfer.dropEffect = "move";
2508
+ }
2509
+ const si = 12, ai = (l) => {
2510
+ if (!(l <= 0))
2511
+ return `${l * si}px`;
2512
+ }, ci = [{
2234
2513
  id: "ticket",
2235
2514
  header: "",
2236
2515
  cell: ({
2237
2516
  row: l
2238
- }) => /* @__PURE__ */ o(vo, { row: l })
2239
- }], yo = (l) => {
2517
+ }) => /* @__PURE__ */ o(ui, { row: l })
2518
+ }], di = (l) => {
2240
2519
  const {
2241
2520
  items: e,
2242
2521
  selectedItemId: n = null,
2243
2522
  onItemClick: t
2244
- } = l, [i, s] = ge(!0), r = jn({
2523
+ } = l, [i, s] = he(!0), r = ml({
2245
2524
  data: e,
2246
- columns: xo,
2525
+ columns: ci,
2247
2526
  state: {
2248
2527
  expanded: i
2249
2528
  },
2250
2529
  onExpandedChange: s,
2251
2530
  getSubRows: (a) => a.children,
2252
- getCoreRowModel: Un(),
2253
- getExpandedRowModel: Xn(),
2531
+ getCoreRowModel: xl(),
2532
+ getExpandedRowModel: bl(),
2254
2533
  getRowId: (a) => a.id
2255
2534
  });
2256
- return /* @__PURE__ */ o(V, { children: r.getRowModel().rows.map((a) => {
2257
- 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: {
2259
- background: d ? "bg.active" : "bg.hover"
2535
+ return /* @__PURE__ */ o(B, { children: r.getRowModel().rows.map((a) => {
2536
+ const c = a.original, u = c.id === n, d = a.getCanExpand();
2537
+ return /* @__PURE__ */ o(Je, { actions: c.contextMenuActions ?? [], children: /* @__PURE__ */ o(N, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: u ? "bg.active" : "transparent", _hover: {
2538
+ background: u ? "bg.active" : "bg.hover"
2260
2539
  }, onClick: () => {
2261
- 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);
2540
+ d ? a.toggleExpanded() : (c.onClick?.(), t?.(c));
2541
+ }, "data-selected": u ? "true" : void 0, draggable: c.draggable, onDragStart: (f) => {
2542
+ c.draggable && (f.dataTransfer.setData("text/plain", c.id), f.dataTransfer.effectAllowed = "move");
2543
+ }, onDragOver: (f) => {
2544
+ c.onDropTicket && (f.preventDefault(), f.dataTransfer.dropEffect = "move");
2545
+ }, onDrop: (f) => {
2546
+ if (!c.onDropTicket)
2547
+ return;
2548
+ f.preventDefault();
2549
+ const p = f.dataTransfer.getData("text/plain");
2550
+ !p || p === c.id || c.onDropTicket(p);
2551
+ }, children: Sl(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }) }, a.id);
2263
2552
  }) });
2264
- }, vo = (l) => {
2265
- const e = R(25), {
2553
+ }, ui = (l) => {
2554
+ const e = R(35), {
2266
2555
  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];
2556
+ } = l, t = n.original, i = n.depth;
2557
+ let s;
2558
+ e[0] !== t.ticketId ? (s = t.ticketId.trim(), e[0] = t.ticketId, e[1] = s) : s = e[1];
2559
+ const r = s.length > 0;
2270
2560
  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];
2561
+ e[2] !== i ? (a = ai(i), e[2] = i, e[3] = a) : a = e[3];
2272
2562
  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];
2274
- 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];
2563
+ e[4] !== i || e[5] !== n ? (c = n.getCanExpand() ? /* @__PURE__ */ o(fi, { row: n }) : i > 0 ? /* @__PURE__ */ o(pi, {}) : null, e[4] = i, e[5] = n, e[6] = c) : c = e[6];
2276
2564
  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];
2565
+ e[7] !== t.statusColor || e[8] !== t.statusIcon ? (u = t.statusIcon && /* @__PURE__ */ o(te, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[7] = t.statusColor, e[8] = t.statusIcon, e[9] = u) : u = e[9];
2566
+ let d;
2567
+ e[10] !== r || e[11] !== t.ticketId ? (d = r && /* @__PURE__ */ o(z, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[10] = r, e[11] = t.ticketId, e[12] = d) : d = e[12];
2278
2568
  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];
2569
+ e[13] !== t.title ? (f = /* @__PURE__ */ o(z, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[13] = t.title, e[14] = f) : f = e[14];
2280
2570
  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];
2571
+ e[15] !== t.countBadge ? (p = typeof t.countBadge == "number" && /* @__PURE__ */ o(Se, { variant: "subtle", colorPalette: "gray", size: "sm", flexShrink: 0, children: t.countBadge }), e[15] = t.countBadge, e[16] = p) : p = e[16];
2572
+ let g;
2573
+ e[17] !== t.badges || e[18] !== t.onTagChange || e[19] !== t.tagBadges ? (g = (t.badges && t.badges.length > 0 || t.tagBadges && t.tagBadges.length > 0) && /* @__PURE__ */ y($t, { gap: "2xs", flexShrink: 0, children: [
2574
+ t.badges?.map(gi),
2575
+ t.tagBadges?.map((S) => /* @__PURE__ */ o(Yt, { 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))
2576
+ ] }), e[17] = t.badges, e[18] = t.onTagChange, e[19] = t.tagBadges, e[20] = g) : g = e[20];
2282
2577
  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,
2578
+ e[21] !== t.assigneeIcon ? (h = t.assigneeIcon && /* @__PURE__ */ o(B, { flexShrink: 0, children: t.assigneeIcon }), e[21] = t.assigneeIcon, e[22] = h) : h = e[22];
2579
+ let b;
2580
+ e[23] !== t.date ? (b = t.date && /* @__PURE__ */ o(z, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[23] = t.date, e[24] = b) : b = e[24];
2581
+ let m;
2582
+ return e[25] !== a || e[26] !== c || e[27] !== u || e[28] !== d || e[29] !== f || e[30] !== p || e[31] !== g || e[32] !== h || e[33] !== b ? (m = /* @__PURE__ */ y(N, { gap: "xs", flex: "1", paddingLeft: a, children: [
2286
2583
  c,
2287
- d,
2288
2584
  u,
2585
+ d,
2289
2586
  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) => {
2587
+ p,
2588
+ g,
2589
+ h,
2590
+ b
2591
+ ] }), e[25] = a, e[26] = c, e[27] = u, e[28] = d, e[29] = f, e[30] = p, e[31] = g, e[32] = h, e[33] = b, e[34] = m) : m = e[34], m;
2592
+ }, fi = (l) => {
2293
2593
  const e = R(6), {
2294
2594
  row: n
2295
2595
  } = l, t = n.getIsExpanded(), i = t ? "true" : void 0, s = t ? "Collapse group" : "Expand group", r = t ? "rotate(90deg)" : "rotate(0deg)";
2296
2596
  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];
2597
+ e[0] !== r ? (a = /* @__PURE__ */ o(te, { as: De, boxSize: "14px", color: "fg.muted", transform: r, transition: "transform 0.15s ease" }), e[0] = r, e[1] = a) : a = e[1];
2302
2598
  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 = () => {
2599
+ return e[2] !== i || e[3] !== s || e[4] !== a ? (c = /* @__PURE__ */ o(B, { 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;
2600
+ }, pi = () => {
2305
2601
  const l = R(1);
2306
2602
  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" })
2603
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(B, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2604
+ /* @__PURE__ */ o(B, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
2605
+ /* @__PURE__ */ o(B, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
2310
2606
  ] }), l[0] = e) : e = l[0], e;
2311
2607
  };
2312
- function ko(l) {
2313
- return /* @__PURE__ */ o(Pe, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2608
+ function gi(l) {
2609
+ return /* @__PURE__ */ o(Se, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2314
2610
  }
2315
- const qe = {
2611
+ const Be = {
2316
2612
  status: "No status",
2317
2613
  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, {
2614
+ }, Ne = (l, e) => !l || l.trim() === "" ? e : l, Ye = (l, e) => l.tags?.find((n) => n.name === e)?.value ?? null, kt = (l, e) => {
2615
+ if (e === "none")
2616
+ return "All";
2617
+ if (e === "status")
2618
+ return Ne(l.status, Be.status);
2619
+ if (e === "assignee")
2620
+ return Ne(l.assignee, Be.assignee);
2621
+ if (Qe(e)) {
2622
+ const n = Ze(e), t = Be[e] ?? `No ${n}`;
2623
+ return Ne(Ye(l, n), t);
2624
+ }
2625
+ return "All";
2626
+ }, Tt = (l, e) => l.localeCompare(e, void 0, {
2319
2627
  numeric: !0
2320
- }), nt = (l, e) => e === "asc" ? l : l * -1, Ue = (l, e) => e.field === "manual" ? l : [...l].sort((n, t) => {
2628
+ }), Ge = (l, e) => e === "asc" ? l : l * -1, qe = (l, e, n = []) => e.field === "manual" ? l : [...l].sort((t, i) => {
2321
2629
  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);
2630
+ const s = new Date(t.updatedAt ?? 0).getTime(), r = new Date(i.updatedAt ?? 0).getTime();
2631
+ return Ge(s - r, e.direction);
2632
+ }
2633
+ if (e.field === "title")
2634
+ return Ge(t.title.localeCompare(i.title), e.direction);
2635
+ if (Qe(e.field)) {
2636
+ const s = Ze(e.field), r = n.find((u) => u.name === s), a = Ye(t, s), c = Ye(i, s);
2637
+ if (r) {
2638
+ const u = (p) => {
2639
+ if (p === null)
2640
+ return r.options.length;
2641
+ const g = r.options.findIndex((h) => h.value === p);
2642
+ return g === -1 ? r.options.length + 1 : g;
2643
+ }, d = u(a), f = u(c);
2644
+ return Ge(d - f, e.direction);
2645
+ }
2646
+ return Ge((a ?? "").localeCompare(c ?? "", void 0, {
2647
+ numeric: !0
2648
+ }), e.direction);
2324
2649
  }
2325
- return e.field === "title" ? nt(n.title.localeCompare(t.title), e.direction) : nt(n.ticketId.localeCompare(t.ticketId, void 0, {
2650
+ return Ge(t.ticketId.localeCompare(i.ticketId, void 0, {
2326
2651
  numeric: !0
2327
2652
  }), e.direction);
2328
- }), Io = (l, e) => {
2653
+ }), hi = (l, e) => {
2329
2654
  const {
2330
2655
  columnGrouping: n,
2331
2656
  rowGrouping: t,
@@ -2335,10 +2660,10 @@ const qe = {
2335
2660
  for (const a of i)
2336
2661
  s.set(a, []);
2337
2662
  for (const a of l) {
2338
- const c = vt(a, n);
2663
+ const c = kt(a, n);
2339
2664
  s.set(c, [...s.get(c) ?? [], a]);
2340
2665
  }
2341
- return [...s.entries()].sort(([a], [c]) => Ct(a, c)).map(([a, c]) => {
2666
+ return [...s.entries()].sort(([a], [c]) => Tt(a, c)).map(([a, c]) => {
2342
2667
  if (t === "none")
2343
2668
  return {
2344
2669
  key: a,
@@ -2346,12 +2671,12 @@ const qe = {
2346
2671
  tickets: c,
2347
2672
  rows: []
2348
2673
  };
2349
- const d = /* @__PURE__ */ new Map();
2674
+ const u = /* @__PURE__ */ new Map();
2350
2675
  for (const f of c) {
2351
- const p = vt(f, t);
2352
- d.set(p, [...d.get(p) ?? [], f]);
2676
+ const p = kt(f, t);
2677
+ u.set(p, [...u.get(p) ?? [], f]);
2353
2678
  }
2354
- const u = [...d.entries()].sort(([f], [p]) => Ct(f, p)).map(([f, p]) => ({
2679
+ const d = [...u.entries()].sort(([f], [p]) => Tt(f, p)).map(([f, p]) => ({
2355
2680
  key: f,
2356
2681
  label: f,
2357
2682
  tickets: p
@@ -2360,84 +2685,49 @@ const qe = {
2360
2685
  key: a,
2361
2686
  label: a,
2362
2687
  tickets: c,
2363
- rows: u
2688
+ rows: d
2364
2689
  };
2365
2690
  });
2366
- }, Vt = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Je(l.status, qe.status)] : [Je(l.assignee, qe.assignee)], Po = (l, e) => {
2691
+ }, Jt = (l, e) => {
2692
+ if (e === "status")
2693
+ return [Ne(l.status, Be.status)];
2694
+ if (e === "assignee")
2695
+ return [Ne(l.assignee, Be.assignee)];
2696
+ if (Qe(e)) {
2697
+ const n = Ze(e), t = Ye(l, n);
2698
+ return t ? [t] : [];
2699
+ }
2700
+ return [];
2701
+ }, mi = (l, e) => {
2367
2702
  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) => {
2703
+ return n.length === 0 ? l : l.filter((t) => n.every(([i, s]) => Jt(t, i).some((a) => s?.includes(a))));
2704
+ }, bi = (l, e) => {
2370
2705
  const n = {};
2371
2706
  for (const t of l)
2372
- for (const i of Vt(t, e))
2707
+ for (const i of Jt(t, e))
2373
2708
  n[i] = (n[i] ?? 0) + 1;
2374
2709
  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,
2710
+ }, xi = "pstdio/ui/tickets-workspace", Si = (l) => `${xi}/${l}`, ot = {
2711
+ settings: To,
2422
2712
  filters: {}
2423
- }, Eo = () => ({
2713
+ }, yi = () => ({
2424
2714
  getItem: () => null,
2425
2715
  setItem: () => {
2426
2716
  },
2427
2717
  removeItem: () => {
2428
2718
  }
2429
- }), zo = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], Ao = (l) => {
2719
+ }), vi = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], Ci = (l) => {
2430
2720
  const {
2431
2721
  storageKey: e,
2432
2722
  initialState: n
2433
2723
  } = l, t = {
2434
2724
  settings: {
2435
- ...lt.settings,
2725
+ ...ot.settings,
2436
2726
  ...n?.settings ?? {}
2437
2727
  },
2438
- filters: n?.filters ?? lt.filters
2728
+ filters: n?.filters ?? ot.filters
2439
2729
  };
2440
- return zt()(Wt((i) => ({
2730
+ return Gt()(At((i) => ({
2441
2731
  ...t,
2442
2732
  setViewMode: (s) => i((r) => ({
2443
2733
  ...r,
@@ -2505,331 +2795,344 @@ const qe = {
2505
2795
  }
2506
2796
  })),
2507
2797
  toggleFilterValue: (s, r) => i((a) => {
2508
- const c = a.filters[s] ?? [], d = zo(c, r), u = {
2798
+ const c = a.filters[s] ?? [], u = vi(c, r), d = u.length === 0 ? wt(a.filters, s) : {
2509
2799
  ...a.filters,
2510
- [s]: d
2800
+ [s]: u
2511
2801
  };
2512
- return d.length === 0 && delete u[s], {
2802
+ return {
2513
2803
  ...a,
2514
- filters: u
2515
- };
2516
- }),
2517
- clearFilter: (s) => i((r) => {
2518
- const a = {
2519
- ...r.filters
2520
- };
2521
- return delete a[s], {
2522
- ...r,
2523
- filters: a
2804
+ filters: d
2524
2805
  };
2525
2806
  }),
2807
+ clearFilter: (s) => i((r) => ({
2808
+ ...r,
2809
+ filters: wt(r.filters, s)
2810
+ })),
2526
2811
  clearAllFilters: () => i((s) => ({
2527
2812
  ...s,
2528
2813
  filters: {}
2529
2814
  })),
2530
- reset: () => i(lt)
2815
+ reset: () => i(ot)
2531
2816
  }), {
2532
- name: Wo(e),
2533
- storage: Et(() => typeof globalThis.localStorage > "u" ? Eo() : globalThis.localStorage),
2817
+ name: Si(e),
2818
+ version: 1,
2819
+ migrate: (i, s) => {
2820
+ if (s === 0) {
2821
+ const r = i, a = {
2822
+ ...r.filters
2823
+ };
2824
+ delete a.labels;
2825
+ const c = r.settings.displayProperties.filter((u) => u !== "labels");
2826
+ return {
2827
+ ...r,
2828
+ settings: {
2829
+ ...r.settings,
2830
+ displayProperties: c
2831
+ },
2832
+ filters: a
2833
+ };
2834
+ }
2835
+ return i;
2836
+ },
2837
+ storage: Mt(() => typeof globalThis.localStorage > "u" ? yi() : globalThis.localStorage),
2534
2838
  partialize: (i) => ({
2535
2839
  settings: i.settings,
2536
2840
  filters: i.filters
2537
2841
  })
2538
2842
  }));
2539
- }, wt = /* @__PURE__ */ new Map(), Oo = (l) => {
2540
- const e = wt.get(l);
2843
+ }, Pt = /* @__PURE__ */ new Map(), wi = (l) => {
2844
+ const e = Pt.get(l);
2541
2845
  if (e)
2542
2846
  return e;
2543
- const n = Ao({
2847
+ const n = Ci({
2544
2848
  storageKey: l
2545
2849
  });
2546
- return wt.set(l, n), n;
2547
- }, Se = (l, e) => {
2850
+ return Pt.set(l, n), n;
2851
+ }, be = (l, e) => {
2548
2852
  const n = R(2);
2549
2853
  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"
2854
+ return n[0] !== l ? (t = wi(l), n[0] = l, n[1] = t) : t = n[1], Ot(t, e);
2855
+ }, Ii = (l) => {
2856
+ const {
2857
+ settings: e,
2858
+ visibleTickets: n,
2859
+ grouped: t,
2860
+ tagDefinitions: i,
2861
+ onTicketClick: s,
2862
+ onTagChange: r,
2863
+ onMoveTicket: a,
2864
+ onMoveToGroup: c
2865
+ } = l, u = (f, p) => ({
2866
+ id: f.id,
2867
+ ticketId: e.displayProperties.includes("id") ? f.ticketId : "",
2868
+ title: f.title,
2869
+ badges: Xt(f, e.displayProperties),
2870
+ tagBadges: Ut(f, e.displayProperties, i),
2871
+ onClick: () => s?.(f),
2872
+ onTagChange: r ? (g, h) => r(f.id, g, h) : void 0,
2873
+ draggable: !!a,
2874
+ onDropTicket: e.ordering.field === "manual" && a ? (g) => {
2875
+ const h = Eo(e.columnGrouping, p);
2876
+ if (!h)
2877
+ return;
2878
+ a(g, h, {
2879
+ columnGrouping: e.columnGrouping,
2880
+ beforeTicketId: f.id
2596
2881
  });
2597
- return n;
2598
- }, Hi = (l) => {
2599
- const e = R(64), {
2882
+ const b = p?.rowKey;
2883
+ e.rowGrouping !== "none" && c && b && c(g, b, {
2884
+ rowGrouping: e.rowGrouping,
2885
+ beforeTicketId: f.id
2886
+ });
2887
+ } : void 0
2888
+ }), d = (f, p) => ({
2889
+ id: p ? `group::${p.columnKey}::${f.key}` : `group::${f.key}`,
2890
+ ticketId: "",
2891
+ title: Ke(f.label),
2892
+ countBadge: f.tickets.length,
2893
+ onDropTicket: a && e.columnGrouping !== "none" ? (g) => {
2894
+ const h = p?.columnKey ?? f.key;
2895
+ a(g, h, {
2896
+ columnGrouping: e.columnGrouping
2897
+ }), e.rowGrouping !== "none" && c && p && c(g, f.key, {
2898
+ rowGrouping: e.rowGrouping
2899
+ });
2900
+ } : void 0,
2901
+ children: qe(f.tickets, e.ordering, i).map((g) => u(g, {
2902
+ columnKey: p?.columnKey ?? f.key,
2903
+ rowKey: p ? f.key : void 0
2904
+ }))
2905
+ });
2906
+ return e.columnGrouping === "none" ? qe(n, e.ordering, i).map((f) => u(f)) : t.map((f) => f.rows.length > 0 ? {
2907
+ id: `group::${f.key}`,
2908
+ ticketId: "",
2909
+ title: Ke(f.label),
2910
+ countBadge: f.tickets.length,
2911
+ onDropTicket: a ? (p) => {
2912
+ a(p, f.key, {
2913
+ columnGrouping: e.columnGrouping
2914
+ });
2915
+ } : void 0,
2916
+ children: f.rows.map((p) => d(p, {
2917
+ columnKey: f.key
2918
+ }))
2919
+ } : d(f));
2920
+ }, Tr = (l) => {
2921
+ const e = R(39), {
2600
2922
  tickets: n,
2601
2923
  storageKey: t,
2602
- selectedTicketId: i,
2603
- groupingOptions: s,
2604
- orderingOptions: r,
2605
- displayPropertyOptions: a,
2606
- filterCategories: c,
2924
+ tagDefinitions: i,
2925
+ selectedTicketId: s,
2926
+ groupingOptions: r,
2927
+ orderingOptions: a,
2928
+ displayPropertyOptions: c,
2929
+ filterCategories: u,
2607
2930
  knownColumnKeys: d,
2608
- emptyTitle: u,
2609
- emptyDescription: f,
2610
- onTicketClick: p,
2611
- onMoveTicket: h,
2612
- onMoveToGroup: g,
2931
+ emptyTitle: f,
2932
+ emptyDescription: p,
2933
+ onTicketClick: g,
2934
+ onTagChange: h,
2935
+ onMoveTicket: b,
2936
+ onMoveToGroup: m,
2613
2937
  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;
2938
+ onColumnAction: w,
2939
+ getBoardColumnConfig: I
2940
+ } = l, x = i === void 0 ? [] : i, v = s === void 0 ? null : s, T = f === void 0 ? "No tickets found" : f, P = p === void 0 ? "Try changing filters or display settings." : p, L = $o(x), _ = r ?? [...Po, ...L.grouping], k = a ?? [...Do, ...L.ordering], D = c ?? [..._o, ...L.display], C = be(t, ki), $ = be(t, Ti), W = be(t, Pi), E = be(t, Di), O = be(t, _i), M = be(t, Li), F = be(t, $i), X = be(t, Ri), V = be(t, Wi), A = be(t, Ei), K = be(t, zi), G = mi(n, $), J = u ?? Lo(n, x);
2941
+ let Q;
2942
+ e[0] !== n ? (Q = (Y) => [Y.id, bi(n, Y.id)], e[0] = n, e[1] = Q) : Q = e[1];
2943
+ const q = Object.fromEntries(J.map(Q)), le = zo(C.columnGrouping, d, J, $), oe = hi(G, {
2944
+ columnGrouping: C.columnGrouping,
2945
+ rowGrouping: C.rowGrouping,
2946
+ knownColumnKeys: le
2947
+ }), Z = Ii({
2948
+ settings: C,
2949
+ visibleTickets: G,
2950
+ grouped: oe,
2951
+ tagDefinitions: x,
2952
+ onTicketClick: g,
2953
+ onTagChange: h,
2954
+ onMoveTicket: b,
2955
+ onMoveToGroup: m
2956
+ }), se = (Y) => Y.map((U) => ({
2957
+ id: U.id,
2958
+ cardProps: {
2959
+ ticketId: C.displayProperties.includes("id") ? U.ticketId : "",
2960
+ parentPath: U.parentPath,
2961
+ title: U.title,
2962
+ badges: Xt(U, C.displayProperties),
2963
+ tagBadges: Ut(U, C.displayProperties, x),
2964
+ onClick: () => g?.(U),
2965
+ onTagChange: h ? (ae, ke) => h(U.id, ae, ke) : void 0
2966
+ }
2967
+ })), ee = oe.map((Y) => {
2968
+ const U = I?.(Y.key) ?? {}, ae = qe(Y.tickets, C.ordering, x), ke = Y.rows.length > 0 ? Y.rows.map((Te) => ({
2969
+ key: Te.key,
2970
+ label: Ke(Te.label),
2971
+ items: se(qe(Te.tickets, C.ordering, x))
2972
+ })) : void 0;
2973
+ return {
2974
+ id: Y.key,
2975
+ label: Y.label,
2976
+ color: U.color,
2977
+ canDragIn: U.canDragIn ?? !1,
2978
+ canDragOut: U.canDragOut ?? !1,
2979
+ canCreate: U.canCreate ?? !1,
2980
+ actions: U.actions ?? [],
2981
+ items: se(ae),
2982
+ groups: ke
2983
+ };
2984
+ });
2985
+ let ie;
2986
+ e[2] !== J || e[3] !== K || e[4] !== A || e[5] !== q || e[6] !== $ || e[7] !== V ? (ie = /* @__PURE__ */ o(Mo, { categories: J, filters: $, countsByCategory: q, onToggleFilterValue: V, onClearFilter: A, onClearAll: K }), e[2] = J, e[3] = K, e[4] = A, e[5] = q, e[6] = $, e[7] = V, e[8] = ie) : ie = e[8];
2987
+ let ne;
2988
+ e[9] !== D || e[10] !== _ || e[11] !== k || e[12] !== E || e[13] !== M || e[14] !== O || e[15] !== W || e[16] !== C || e[17] !== X || e[18] !== F ? (ne = /* @__PURE__ */ o(Oo, { settings: C, groupingOptions: _, orderingOptions: k, displayPropertyOptions: D, onViewModeChange: W, onColumnGroupingChange: E, onRowGroupingChange: O, onOrderingFieldChange: M, onSortDirectionToggle: F, onDisplayPropertyToggle: X }), e[9] = D, e[10] = _, e[11] = k, e[12] = E, e[13] = M, e[14] = O, e[15] = W, e[16] = C, e[17] = X, e[18] = F, e[19] = ne) : ne = e[19];
2989
+ let re;
2990
+ e[20] !== ie || e[21] !== ne ? (re = /* @__PURE__ */ y(N, { justifyContent: "flex-end", gap: "2xs", children: [
2991
+ ie,
2992
+ ne
2993
+ ] }), e[20] = ie, e[21] = ne, e[22] = re) : re = e[22];
2994
+ let ce;
2995
+ e[23] !== ee || e[24] !== P || e[25] !== T || 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 ? (ce = C.viewMode === "board" ? /* @__PURE__ */ o(B, { flex: "1", minH: "0", children: ee.length > 0 ? /* @__PURE__ */ o(ti, { columns: ee, selectedItemId: v, onMoveItem: (Y, U, ae) => b?.(Y, U, {
2996
+ columnGrouping: C.columnGrouping,
2997
+ beforeTicketId: ae?.beforeItemId
2998
+ }), onMoveToGroup: (Y, U, ae) => m?.(Y, U, {
2999
+ rowGrouping: C.rowGrouping,
3000
+ beforeTicketId: ae?.beforeItemId
3001
+ }), onCreateStart: S, onColumnAction: w }) : /* @__PURE__ */ o(rt, { title: T, description: P, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : Z.length > 0 ? /* @__PURE__ */ o(di, { items: Z, selectedItemId: v }) : /* @__PURE__ */ o(rt, { title: T, description: P, borderWidth: "1px", borderRadius: "md" }), e[23] = ee, e[24] = P, e[25] = T, 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] = ce) : ce = e[35];
3002
+ let fe;
3003
+ return e[36] !== re || e[37] !== ce ? (fe = /* @__PURE__ */ y(H, { gap: "sm", height: "100%", minH: "0", children: [
3004
+ re,
3005
+ ce
3006
+ ] }), e[36] = re, e[37] = ce, e[38] = fe) : fe = e[38], fe;
2704
3007
  };
2705
- function No(l) {
3008
+ function ki(l) {
2706
3009
  return l.settings;
2707
3010
  }
2708
- function Bo(l) {
3011
+ function Ti(l) {
2709
3012
  return l.filters;
2710
3013
  }
2711
- function Ho(l) {
3014
+ function Pi(l) {
2712
3015
  return l.setViewMode;
2713
3016
  }
2714
- function Fo(l) {
3017
+ function Di(l) {
2715
3018
  return l.setColumnGrouping;
2716
3019
  }
2717
- function Vo(l) {
3020
+ function _i(l) {
2718
3021
  return l.setRowGrouping;
2719
3022
  }
2720
- function jo(l) {
3023
+ function Li(l) {
2721
3024
  return l.setOrderingField;
2722
3025
  }
2723
- function Xo(l) {
3026
+ function $i(l) {
2724
3027
  return l.toggleSortDirection;
2725
3028
  }
2726
- function Uo(l) {
3029
+ function Ri(l) {
2727
3030
  return l.toggleDisplayProperty;
2728
3031
  }
2729
- function Yo(l) {
3032
+ function Wi(l) {
2730
3033
  return l.toggleFilterValue;
2731
3034
  }
2732
- function Ko(l) {
3035
+ function Ei(l) {
2733
3036
  return l.clearFilter;
2734
3037
  }
2735
- function qo(l) {
3038
+ function zi(l) {
2736
3039
  return l.clearAllFilters;
2737
3040
  }
2738
- function Jo(l) {
2739
- return l.value;
2740
- }
2741
- const Qo = (l) => {
3041
+ const Oi = (l) => {
2742
3042
  if (typeof document > "u") return;
2743
3043
  const e = document.documentElement, n = document.body, t = l === "dark" ? "light" : "dark";
2744
3044
  for (const i of [e, n])
2745
3045
  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 = () => {
3046
+ }, Qt = "theme-preference", Zt = vn(null), Ai = () => {
2747
3047
  if (typeof window > "u") return "light";
2748
- const l = window.localStorage.getItem(jt);
3048
+ const l = window.localStorage.getItem(Qt);
2749
3049
  return l === "dark" || l === "light" ? l : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2750
- }, Fi = (l) => {
3050
+ }, Pr = (l) => {
2751
3051
  const e = R(11), {
2752
3052
  children: n,
2753
3053
  initialPreference: t
2754
3054
  } = l;
2755
3055
  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);
2758
- let c, d;
3056
+ e[0] !== t ? (i = t === void 0 ? Ai() : t, e[0] = t, e[1] = i) : i = e[1];
3057
+ const s = i, [r, a] = he(s);
3058
+ let c, u;
2759
3059
  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);
2762
- let u;
2763
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(ei), e[5] = u) : u = e[5];
2764
- const f = u;
3060
+ Oi(r), typeof window < "u" && window.localStorage.setItem(Qt, r);
3061
+ }, u = [r], e[2] = r, e[3] = c, e[4] = u) : (c = e[3], u = e[4]), Ae(c, u);
3062
+ let d;
3063
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => a(Mi), e[5] = d) : d = e[5];
3064
+ const f = d;
2765
3065
  let p;
2766
3066
  e[6] !== r ? (p = {
2767
3067
  themePreference: r,
2768
3068
  setThemePreference: a,
2769
3069
  toggleThemePreference: f
2770
3070
  }, 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);
3071
+ let g;
3072
+ return e[8] !== n || e[9] !== p ? (g = /* @__PURE__ */ o(Zt, { value: p, children: n }), e[8] = n, e[9] = p, e[10] = g) : g = e[10], g;
3073
+ }, Dr = () => {
3074
+ const l = Cn(Zt);
2775
3075
  if (!l)
2776
3076
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
2777
3077
  return l;
2778
3078
  };
2779
- function ei(l) {
3079
+ function Mi(l) {
2780
3080
  return l === "dark" ? "light" : "dark";
2781
3081
  }
2782
3082
  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,
3083
+ mn as AlertMessage,
3084
+ sr as AttachedPanel,
3085
+ ar as Breadcrumb,
3086
+ cr as BubbleButton,
3087
+ dr as BubblePanel,
3088
+ $r as ChakraProvider,
3089
+ bn as Checkbox,
3090
+ fr as CodeDiffEditor,
3091
+ ur as CodeEditor,
3092
+ Dl as ContentPlaceholder,
3093
+ pr as ContentPlaceholderLabel,
3094
+ gr as DeleteConfirmationModal,
3095
+ Rt as DiffBubble,
3096
+ hr as DiffDrawer,
3097
+ Oo as DisplayMenu,
2798
3098
  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,
2809
- 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,
3099
+ Nt as ErrorBoundary,
3100
+ Mo as FilterMenu,
3101
+ mr as FolderPickerDialog,
3102
+ El as HorizontalMenuStack,
3103
+ br as ItemSection,
3104
+ Ie as MenuItem,
3105
+ vr as OpenSourceNoticesScreen,
3106
+ Sr as PanelLayout,
3107
+ yr as PanelSectionLayout,
3108
+ Cr as Properties,
3109
+ Wr as Radio,
3110
+ Er as RadioGroup,
3111
+ Je as ResourceContextMenu,
3112
+ we as ScrollArea,
3113
+ Xl as SearchableMenu,
3114
+ Zl as SessionIndicator,
3115
+ wr as Sidebar,
3116
+ Ir as SidebarProjectMenu,
3117
+ so as SidebarTree,
3118
+ kr as Switch,
3119
+ Pr as ThemePreferenceProvider,
3120
+ ti as TicketBoard,
3121
+ qt as TicketCard,
3122
+ di as TicketList,
3123
+ Tr as TicketsWorkspace,
3124
+ xr as Toaster,
2822
3125
  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,
2831
- Ae as useSidebarStore,
2832
- Vi as useThemePreference,
2833
- Se as useTicketsWorkspaceStore
3126
+ qo as WorkspaceBadge,
3127
+ Oi as applyThemePreference,
3128
+ Or as getFileTypeIcon,
3129
+ Ai as getInitialThemePreference,
3130
+ Mr as psTheme,
3131
+ Ql as resolveSessionIndicatorColor,
3132
+ Jl as resolveSessionIndicatorIcon,
3133
+ Ol as toaster,
3134
+ Oe as useSidebarStore,
3135
+ Dr as useThemePreference,
3136
+ be as useTicketsWorkspaceStore
2834
3137
  };
2835
3138
  //# sourceMappingURL=index.js.map