@pstdio/ui 0.2.1 → 0.2.3

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 (48) hide show
  1. package/dist/chat-ui.js +679 -623
  2. package/dist/chat-ui.js.map +1 -1
  3. package/dist/components/chat-ui/agent-types.d.ts +1 -0
  4. package/dist/components/chat-ui/components/ai-conversation.d.ts +21 -579
  5. package/dist/components/chat-ui/components/ai-conversation.test.d.ts +1 -0
  6. package/dist/components/chat-ui/components/ai-message.d.ts +8 -8
  7. package/dist/components/chat-ui/components/chat-panel-sticky-user-message.d.ts +4 -0
  8. package/dist/components/chat-ui/components/chat-panel.sticky-user-message.test.d.ts +1 -0
  9. package/dist/components/chat-ui/components/chat-panel.stories.d.ts +1 -0
  10. package/dist/components/chat-ui/components/message-parts-renderer.stories.d.ts +1 -0
  11. package/dist/components/chat-ui/components/message-types.d.ts +8 -0
  12. package/dist/components/menu-item.d.ts +3 -1
  13. package/dist/components/menu-item.stories.d.ts +1 -1
  14. package/dist/components/rich-text/rich-message/rich-message.d.ts +1 -0
  15. package/dist/components/rich-text/shared/components/content-editable.d.ts +2 -1
  16. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +2 -0
  17. package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.test.d.ts +1 -0
  18. package/dist/components/scroll-area.d.ts +1 -0
  19. package/dist/components/sidebar-next/sidebar-next.types.d.ts +2 -1
  20. package/dist/components/sidebar-tree/sidebar-tree.d.ts +2 -1
  21. package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +9 -1
  22. package/dist/components/tickets/display-menu.d.ts +15 -0
  23. package/dist/components/tickets/display-menu.stories.d.ts +6 -0
  24. package/dist/components/tickets/filter-menu.d.ts +11 -0
  25. package/dist/components/tickets/filter-menu.stories.d.ts +6 -0
  26. package/dist/components/tickets/ticket-board.d.ts +7 -0
  27. package/dist/components/tickets/ticket-grouping.d.ts +22 -0
  28. package/dist/components/tickets/ticket-grouping.test.d.ts +1 -0
  29. package/dist/components/tickets/tickets-workspace.d.ts +29 -0
  30. package/dist/components/tickets/tickets-workspace.stories.d.ts +10 -0
  31. package/dist/components/tickets/types.d.ts +49 -0
  32. package/dist/components/tickets/use-workspace-store.d.ts +51 -0
  33. package/dist/components/tickets/use-workspace-store.test.d.ts +1 -0
  34. package/dist/index.d.ts +7 -1
  35. package/dist/index.js +2073 -1209
  36. package/dist/index.js.map +1 -1
  37. package/dist/rich-message-ZT2CEiwt.js +1406 -0
  38. package/dist/rich-message-ZT2CEiwt.js.map +1 -0
  39. package/dist/rich-text.js +5 -5
  40. package/dist/rich-text.js.map +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/tooltip-Dze4WXVl.js +86 -0
  43. package/dist/tooltip-Dze4WXVl.js.map +1 -0
  44. package/package.json +3 -3
  45. package/dist/rich-message-B2gxL8oy.js +0 -1382
  46. package/dist/rich-message-B2gxL8oy.js.map +0 -1
  47. package/dist/tooltip-Gm7PLwZG.js +0 -51
  48. package/dist/tooltip-Gm7PLwZG.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import { Alert as Ie, Breadcrumb as de, Checkbox as Le, Box as E, Text as C, Dialog as J, CloseButton as rt, Stack as D, Button as ue, IconButton as _e, Grid as st, ScrollArea as Pe, Timeline as re, HStack as F, Image as at, List as Ke, Flex as pe, Badge as ze, Link as Be, Heading as ct, useEnvironmentContext as dt, Icon as ne, Collapsible as xe, MenuItem as ht, Menu as ie, AbsoluteCenter as ft, Separator as gt, Switch as be, Wrap as qe, Spacer as ut, createToaster as pt, Portal as mt, Toaster as bt, Toast as $e, Spinner as xt } from "@chakra-ui/react";
2
- import { ChakraProvider as Vn } from "@chakra-ui/react";
3
- import { jsx as i, jsxs as b, Fragment as St } from "react/jsx-runtime";
4
- import { c as $ } from "react/compiler-runtime";
5
- import * as He from "react";
6
- import { useState as Re, useRef as Je, useEffect as We, Component as yt, createContext as vt, useContext as Ct } from "react";
7
- import { D as wt, a as Qe, E as kt } from "./empty-state-kQR0gd4j.js";
8
- import { C as Un, b as Kn } from "./empty-state-kQR0gd4j.js";
9
- import { useVirtualizer as It } from "@tanstack/react-virtual";
10
- import { ChevronRight as me, ChevronDown as Ze, FileText as Oe, ChevronLeft as Pt, FolderOpen as $t, Folder as Tt, Home as _t, ChevronUp as Rt, Info as Dt, CircleCheck as Lt, CircleAlert as Et, CircleDashed as zt, PanelLeftClose as Ht, GitBranchIcon as Nt, Plus as Wt, MoreHorizontal as At } from "lucide-react";
11
- import { T as Ee } from "./tooltip-Gm7PLwZG.js";
12
- import { useStore as Mt } from "zustand";
13
- import { persist as Bt, createJSONStorage as Ot } from "zustand/middleware";
14
- import { createStore as jt } from "zustand/vanilla";
15
- import { useReactTable as Gt, getExpandedRowModel as Xt, getCoreRowModel as Ft, flexRender as Vt } from "@tanstack/react-table";
1
+ import { Alert as $e, Breadcrumb as xe, Checkbox as ze, Box as V, Text as $, Dialog as se, CloseButton as zt, Stack as G, Button as de, IconButton as Se, Grid as At, Timeline as he, HStack as X, Image as Ot, List as mt, Flex as we, Badge as Te, Link as Ue, Heading as Gt, useEnvironmentContext as Mt, Icon as oe, Collapsible as _e, MenuItem as tt, Menu as le, AbsoluteCenter as Nt, Separator as Ye, Switch as De, Popover as Ie, SegmentGroup as ve, Portal as Qe, Wrap as bt, Spacer as Ht, createToaster as Wt, Toaster as Ft, Toast as Le, Spinner as Bt } from "@chakra-ui/react";
2
+ import { ChakraProvider as Qi } from "@chakra-ui/react";
3
+ import { jsx as i, jsxs as b, Fragment as Ze } from "react/jsx-runtime";
4
+ import { c as A } from "react/compiler-runtime";
5
+ import * as Fe from "react";
6
+ import { useState as me, useRef as xt, useEffect as He, Children as Vt, isValidElement as jt, cloneElement as Xt, Component as Ut, createContext as Yt, useContext as Kt } from "react";
7
+ import { D as qt, a as St, E as Ke } from "./empty-state-kQR0gd4j.js";
8
+ import { C as er, b as tr } from "./empty-state-kQR0gd4j.js";
9
+ import { useVirtualizer as Jt } from "@tanstack/react-virtual";
10
+ import { ChevronRight as ye, ChevronDown as et, FileText as qe, ChevronLeft as Qt, FolderOpen as Zt, Folder as en, Home as tn, ChevronUp as nn, Info as ln, CircleCheck as rn, CircleAlert as on, CircleDashed as sn, PanelLeftClose as an, Settings2 as cn, List as dn, KanbanSquare as un, ArrowDownUp as gn, Filter as fn, GitBranchIcon as pn, Plus as hn, MoreHorizontal as mn } from "lucide-react";
11
+ import { S as Ce, T as Ee } from "./tooltip-Dze4WXVl.js";
12
+ import { useStore as yt } from "zustand";
13
+ import { persist as Ct, createJSONStorage as vt } from "zustand/middleware";
14
+ import { createStore as wt } from "zustand/vanilla";
15
+ import { useReactTable as bn, getExpandedRowModel as xn, getCoreRowModel as Sn, flexRender as yn } from "@tanstack/react-table";
16
16
  import "@fontsource/inter/400.css";
17
17
  import "@fontsource/inter/500.css";
18
18
  import "@fontsource/playfair-display/400.css";
@@ -21,132 +21,132 @@ import "@fontsource/playfair-display/700.css";
21
21
  import "@fontsource/onest/400.css";
22
22
  import "@fontsource/onest/500.css";
23
23
  import "@fontsource/onest/700.css";
24
- import { t as Jn } from "./theme-C7CIuIPZ.js";
25
- const Yt = He.forwardRef(function(e, l) {
26
- const t = $(19);
27
- let o, r, s, a, c, d;
24
+ import { t as lr } from "./theme-C7CIuIPZ.js";
25
+ const Cn = Fe.forwardRef(function(e, n) {
26
+ const t = A(19);
27
+ let r, o, s, a, c, d;
28
28
  t[0] !== e ? ({
29
29
  title: d,
30
- children: o,
30
+ children: r,
31
31
  icon: s,
32
32
  startElement: c,
33
- endElement: r,
33
+ endElement: o,
34
34
  ...a
35
- } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
36
- let h;
37
- t[7] !== s || t[8] !== c ? (h = c || /* @__PURE__ */ i(Ie.Indicator, { children: s }), t[7] = s, t[8] = c, t[9] = h) : h = t[9];
35
+ } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
36
+ let u;
37
+ t[7] !== s || t[8] !== c ? (u = c || /* @__PURE__ */ i($e.Indicator, { children: s }), t[7] = s, t[8] = c, t[9] = u) : u = t[9];
38
38
  let g;
39
- t[10] !== o || t[11] !== d ? (g = o ? /* @__PURE__ */ b(Ie.Content, { children: [
40
- /* @__PURE__ */ i(Ie.Title, { children: d }),
41
- /* @__PURE__ */ i(Ie.Description, { children: o })
42
- ] }) : /* @__PURE__ */ i(Ie.Title, { flex: "1", children: d }), t[10] = o, t[11] = d, t[12] = g) : g = t[12];
39
+ t[10] !== r || t[11] !== d ? (g = r ? /* @__PURE__ */ b($e.Content, { children: [
40
+ /* @__PURE__ */ i($e.Title, { children: d }),
41
+ /* @__PURE__ */ i($e.Description, { children: r })
42
+ ] }) : /* @__PURE__ */ i($e.Title, { flex: "1", children: d }), t[10] = r, t[11] = d, t[12] = g) : g = t[12];
43
43
  let f;
44
- return t[13] !== r || t[14] !== l || t[15] !== a || t[16] !== h || t[17] !== g ? (f = /* @__PURE__ */ b(Ie.Root, { ref: l, ...a, children: [
45
- h,
44
+ return t[13] !== o || t[14] !== n || t[15] !== a || t[16] !== u || t[17] !== g ? (f = /* @__PURE__ */ b($e.Root, { ref: n, ...a, children: [
45
+ u,
46
46
  g,
47
- r
48
- ] }), t[13] = r, t[14] = l, t[15] = a, t[16] = h, t[17] = g, t[18] = f) : f = t[18], f;
49
- }), wn = He.forwardRef(function(e, l) {
50
- const t = $(21);
51
- let o, r, s, a, c;
47
+ o
48
+ ] }), t[13] = o, t[14] = n, t[15] = a, t[16] = u, t[17] = g, t[18] = f) : f = t[18], f;
49
+ }), Li = Fe.forwardRef(function(e, n) {
50
+ const t = A(21);
51
+ let r, o, s, a, c;
52
52
  t[0] !== e ? ({
53
53
  separator: a,
54
54
  separatorGap: c,
55
- items: r,
56
- linkComponent: o,
55
+ items: o,
56
+ linkComponent: r,
57
57
  ...s
58
- } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5]);
58
+ } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5]);
59
59
  let d;
60
- if (t[6] !== o || t[7] !== r || t[8] !== a) {
60
+ if (t[6] !== r || t[7] !== o || t[8] !== a) {
61
61
  let f;
62
- t[10] !== o || t[11] !== r.length || t[12] !== a ? (f = (u, p) => {
63
- const m = p === r.length - 1, x = !!(u.url || u.onClick);
64
- let S;
65
- return m && !x ? S = /* @__PURE__ */ i(de.CurrentLink, { children: u.title }) : u.url ? S = o ? /* @__PURE__ */ i(de.Link, { asChild: !0, children: /* @__PURE__ */ i(o, { to: u.url, children: u.title }) }) : /* @__PURE__ */ i(de.Link, { href: u.url, children: u.title }) : u.onClick ? S = /* @__PURE__ */ i(de.Link, { as: "button", type: "button", onClick: u.onClick, children: u.title }) : S = /* @__PURE__ */ i(de.Link, { children: u.title }), /* @__PURE__ */ b(de.Item, { children: [
66
- S,
67
- m ? null : /* @__PURE__ */ i(de.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
68
- ] }, p);
69
- }, t[10] = o, t[11] = r.length, t[12] = a, t[13] = f) : f = t[13], d = r.map(f), t[6] = o, t[7] = r, t[8] = a, t[9] = d;
62
+ t[10] !== r || t[11] !== o.length || t[12] !== a ? (f = (p, h) => {
63
+ const m = h === o.length - 1, x = !!(p.url || p.onClick);
64
+ let y;
65
+ return m && !x ? y = /* @__PURE__ */ i(xe.CurrentLink, { children: p.title }) : p.url ? y = r ? /* @__PURE__ */ i(xe.Link, { asChild: !0, children: /* @__PURE__ */ i(r, { to: p.url, children: p.title }) }) : /* @__PURE__ */ i(xe.Link, { href: p.url, children: p.title }) : p.onClick ? y = /* @__PURE__ */ i(xe.Link, { as: "button", type: "button", onClick: p.onClick, children: p.title }) : y = /* @__PURE__ */ i(xe.Link, { children: p.title }), /* @__PURE__ */ b(xe.Item, { children: [
66
+ y,
67
+ m ? null : /* @__PURE__ */ i(xe.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
68
+ ] }, h);
69
+ }, t[10] = r, t[11] = o.length, t[12] = a, t[13] = f) : f = t[13], d = o.map(f), t[6] = r, t[7] = o, t[8] = a, t[9] = d;
70
70
  } else
71
71
  d = t[9];
72
- let h;
73
- t[14] !== c || t[15] !== d ? (h = /* @__PURE__ */ i(de.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = h) : h = t[16];
72
+ let u;
73
+ t[14] !== c || t[15] !== d ? (u = /* @__PURE__ */ i(xe.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = u) : u = t[16];
74
74
  let g;
75
- return t[17] !== l || t[18] !== s || t[19] !== h ? (g = /* @__PURE__ */ i(de.Root, { ref: l, ...s, children: h }), t[17] = l, t[18] = s, t[19] = h, t[20] = g) : g = t[20], g;
76
- }), kn = He.forwardRef(function(e, l) {
77
- const t = $(26);
78
- let o, r, s, a, c, d;
75
+ return t[17] !== n || t[18] !== s || t[19] !== u ? (g = /* @__PURE__ */ i(xe.Root, { ref: n, ...s, children: u }), t[17] = n, t[18] = s, t[19] = u, t[20] = g) : g = t[20], g;
76
+ }), vn = Fe.forwardRef(function(e, n) {
77
+ const t = A(26);
78
+ let r, o, s, a, c, d;
79
79
  t[0] !== e ? ({
80
- icon: r,
81
- children: o,
80
+ icon: o,
81
+ children: r,
82
82
  inputProps: s,
83
83
  rootRef: c,
84
84
  disabled: d,
85
85
  ...a
86
- } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
87
- const h = d === void 0 ? !1 : d, g = h ? "not-allowed" : "pointer";
86
+ } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
87
+ const u = d === void 0 ? !1 : d, g = u ? "not-allowed" : "pointer";
88
88
  let f;
89
- t[7] !== s || t[8] !== l ? (f = /* @__PURE__ */ i(Le.HiddenInput, { ref: l, ...s }), t[7] = s, t[8] = l, t[9] = f) : f = t[9];
90
- let u;
91
- t[10] !== r ? (u = r || /* @__PURE__ */ i(Le.Indicator, {}), t[10] = r, t[11] = u) : u = t[11];
89
+ t[7] !== s || t[8] !== n ? (f = /* @__PURE__ */ i(ze.HiddenInput, { ref: n, ...s }), t[7] = s, t[8] = n, t[9] = f) : f = t[9];
92
90
  let p;
93
- t[12] !== g || t[13] !== u ? (p = /* @__PURE__ */ i(Le.Control, { borderRadius: "xs", cursor: g, children: u }), t[12] = g, t[13] = u, t[14] = p) : p = t[14];
91
+ t[10] !== o ? (p = o || /* @__PURE__ */ i(ze.Indicator, {}), t[10] = o, t[11] = p) : p = t[11];
92
+ let h;
93
+ t[12] !== g || t[13] !== p ? (h = /* @__PURE__ */ i(ze.Control, { borderRadius: "xs", cursor: g, children: p }), t[12] = g, t[13] = p, t[14] = h) : h = t[14];
94
94
  let m;
95
- t[15] !== o || t[16] !== g ? (m = o != null && /* @__PURE__ */ i(Le.Label, { cursor: g, children: o }), t[15] = o, t[16] = g, t[17] = m) : m = t[17];
95
+ t[15] !== r || t[16] !== g ? (m = r != null && /* @__PURE__ */ i(ze.Label, { cursor: g, children: r }), t[15] = r, t[16] = g, t[17] = m) : m = t[17];
96
96
  let x;
97
- return t[18] !== h || t[19] !== g || t[20] !== a || t[21] !== c || t[22] !== f || t[23] !== p || t[24] !== m ? (x = /* @__PURE__ */ b(Le.Root, { ref: c, disabled: h, cursor: g, ...a, children: [
97
+ return t[18] !== u || t[19] !== g || t[20] !== a || t[21] !== c || t[22] !== f || t[23] !== h || t[24] !== m ? (x = /* @__PURE__ */ b(ze.Root, { ref: c, disabled: u, cursor: g, ...a, children: [
98
98
  f,
99
- p,
99
+ h,
100
100
  m
101
- ] }), t[18] = h, t[19] = g, t[20] = a, t[21] = c, t[22] = f, t[23] = p, t[24] = m, t[25] = x) : x = t[25], x;
102
- }), Ut = (n) => {
103
- const e = $(3);
104
- let l;
105
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
101
+ ] }), t[18] = u, t[19] = g, t[20] = a, t[21] = c, t[22] = f, t[23] = h, t[24] = m, t[25] = x) : x = t[25], x;
102
+ }), wn = (l) => {
103
+ const e = A(3);
104
+ let n;
105
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
106
106
  backgroundClip: "padding-box",
107
107
  backgroundImage: `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`,
108
108
  display: "flex",
109
109
  width: "100%"
110
- }, e[0] = l) : l = e[0];
110
+ }, e[0] = n) : n = e[0];
111
111
  let t;
112
- return e[1] !== n ? (t = /* @__PURE__ */ i(E, { ...n, css: l }), e[1] = n, e[2] = t) : t = e[2], t;
113
- }, In = (n) => {
114
- const e = $(2);
115
- let l;
116
- return e[0] !== n ? (l = /* @__PURE__ */ i(E, { p: "2", children: /* @__PURE__ */ i(C, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...n }) }), e[0] = n, e[1] = l) : l = e[1], l;
117
- }, Pn = (n) => {
118
- const [e, l] = Re(!1), {
112
+ return e[1] !== l ? (t = /* @__PURE__ */ i(V, { ...l, css: n }), e[1] = l, e[2] = t) : t = e[2], t;
113
+ }, Ri = (l) => {
114
+ const e = A(2);
115
+ let n;
116
+ return e[0] !== l ? (n = /* @__PURE__ */ i(V, { p: "2", children: /* @__PURE__ */ i($, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...l }) }), e[0] = l, e[1] = n) : n = e[1], n;
117
+ }, Ei = (l) => {
118
+ const [e, n] = me(!1), {
119
119
  headline: t,
120
- buttonText: o,
121
- notificationText: r,
120
+ buttonText: r,
121
+ notificationText: o,
122
122
  onDelete: s,
123
123
  open: a,
124
124
  onClose: c
125
- } = n, d = async () => {
126
- l(!0);
125
+ } = l, d = async () => {
126
+ n(!0);
127
127
  try {
128
128
  await s(), c();
129
129
  } catch {
130
130
  } finally {
131
- l(!1);
131
+ n(!1);
132
132
  }
133
133
  };
134
- return /* @__PURE__ */ b(J.Root, { open: a, onOpenChange: c, children: [
135
- /* @__PURE__ */ i(J.Backdrop, {}),
136
- /* @__PURE__ */ i(J.Positioner, { children: /* @__PURE__ */ b(J.Content, { children: [
137
- /* @__PURE__ */ b(J.Header, { children: [
138
- /* @__PURE__ */ i(C, { textStyle: "heading/M", children: t }),
139
- /* @__PURE__ */ i(J.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ i(rt, { size: "sm" }) })
134
+ return /* @__PURE__ */ b(se.Root, { open: a, onOpenChange: c, children: [
135
+ /* @__PURE__ */ i(se.Backdrop, {}),
136
+ /* @__PURE__ */ i(se.Positioner, { children: /* @__PURE__ */ b(se.Content, { children: [
137
+ /* @__PURE__ */ b(se.Header, { children: [
138
+ /* @__PURE__ */ i($, { textStyle: "heading/M", children: t }),
139
+ /* @__PURE__ */ i(se.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ i(zt, { size: "sm" }) })
140
140
  ] }),
141
- /* @__PURE__ */ i(J.Body, { children: r }),
142
- /* @__PURE__ */ i(J.Footer, { children: /* @__PURE__ */ b(D, { direction: "row", gap: "1", children: [
143
- /* @__PURE__ */ i(ue, { onClick: c, children: "Close" }),
144
- /* @__PURE__ */ i(ue, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: o })
141
+ /* @__PURE__ */ i(se.Body, { children: o }),
142
+ /* @__PURE__ */ i(se.Footer, { children: /* @__PURE__ */ b(G, { direction: "row", gap: "1", children: [
143
+ /* @__PURE__ */ i(de, { onClick: c, children: "Close" }),
144
+ /* @__PURE__ */ i(de, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: r })
145
145
  ] }) })
146
146
  ] }) })
147
147
  ] });
148
- }, Kt = (n) => {
149
- switch (n.split(".").pop()?.toLowerCase()) {
148
+ }, In = (l) => {
149
+ switch (l.split(".").pop()?.toLowerCase()) {
150
150
  case "ts":
151
151
  case "tsx":
152
152
  return "typescript";
@@ -175,421 +175,388 @@ const Yt = He.forwardRef(function(e, l) {
175
175
  default:
176
176
  return "plaintext";
177
177
  }
178
- }, qt = (n) => {
179
- const e = $(37), {
180
- diff: l
181
- } = n, [t, o] = Re(!0), r = l.newPath || l.oldPath || "unknown";
178
+ }, kn = (l) => {
179
+ const e = A(37), {
180
+ diff: n
181
+ } = l, [t, r] = me(!0), o = n.newPath || n.oldPath || "unknown";
182
182
  let s;
183
- e[0] !== r ? (s = Kt(r), e[0] = r, e[1] = s) : s = e[1];
184
- const a = s, c = l.additions ?? 0, d = l.deletions ?? 0, h = t ? "1px solid" : "none";
183
+ e[0] !== o ? (s = In(o), e[0] = o, e[1] = s) : s = e[1];
184
+ const a = s, c = n.additions ?? 0, d = n.deletions ?? 0, u = t ? "1px solid" : "none";
185
185
  let g;
186
- e[2] !== t ? (g = () => o(!t), e[2] = t, e[3] = g) : g = e[3];
186
+ e[2] !== t ? (g = () => r(!t), e[2] = t, e[3] = g) : g = e[3];
187
187
  const f = t ? "Collapse" : "Expand";
188
- let u;
189
- e[4] !== t ? (u = (I) => {
190
- I.stopPropagation(), o(!t);
191
- }, e[4] = t, e[5] = u) : u = e[5];
192
188
  let p;
193
- e[6] !== t ? (p = t ? /* @__PURE__ */ i(Ze, { size: 16 }) : /* @__PURE__ */ i(me, { size: 16 }), e[6] = t, e[7] = p) : p = e[7];
189
+ e[4] !== t ? (p = (T) => {
190
+ T.stopPropagation(), r(!t);
191
+ }, e[4] = t, e[5] = p) : p = e[5];
192
+ let h;
193
+ e[6] !== t ? (h = t ? /* @__PURE__ */ i(et, { size: 16 }) : /* @__PURE__ */ i(ye, { size: 16 }), e[6] = t, e[7] = h) : h = e[7];
194
194
  let m;
195
- e[8] !== f || e[9] !== u || e[10] !== p ? (m = /* @__PURE__ */ i(_e, { "aria-label": f, variant: "ghost", size: "2xs", onClick: u, flexShrink: 0, children: p }), e[8] = f, e[9] = u, e[10] = p, e[11] = m) : m = e[11];
195
+ e[8] !== f || e[9] !== p || e[10] !== h ? (m = /* @__PURE__ */ i(Se, { "aria-label": f, variant: "ghost", size: "2xs", onClick: p, flexShrink: 0, children: h }), e[8] = f, e[9] = p, e[10] = h, e[11] = m) : m = e[11];
196
196
  let x;
197
- e[12] !== l.change || e[13] !== l.newPath || e[14] !== l.oldPath || e[15] !== r ? (x = l.change === "renamed" ? /* @__PURE__ */ b(C, { as: "span", textStyle: "sm", children: [
198
- /* @__PURE__ */ i(C, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: l.oldPath }),
199
- /* @__PURE__ */ i(E, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(me, { size: 12 }) }),
200
- l.newPath
201
- ] }) : l.change === "deleted" ? /* @__PURE__ */ i(C, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: r }) : /* @__PURE__ */ i(C, { as: "span", textStyle: "sm", children: r }), e[12] = l.change, e[13] = l.newPath, e[14] = l.oldPath, e[15] = r, e[16] = x) : x = e[16];
202
- let S;
203
- e[17] !== r || e[18] !== x ? (S = /* @__PURE__ */ i(E, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: r, children: x }), e[17] = r, e[18] = x, e[19] = S) : S = e[19];
197
+ e[12] !== n.change || e[13] !== n.newPath || e[14] !== n.oldPath || e[15] !== o ? (x = n.change === "renamed" ? /* @__PURE__ */ b($, { as: "span", textStyle: "sm", children: [
198
+ /* @__PURE__ */ i($, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: n.oldPath }),
199
+ /* @__PURE__ */ i(V, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(ye, { size: 12 }) }),
200
+ n.newPath
201
+ ] }) : n.change === "deleted" ? /* @__PURE__ */ i($, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: o }) : /* @__PURE__ */ i($, { as: "span", textStyle: "sm", children: o }), e[12] = n.change, e[13] = n.newPath, e[14] = n.oldPath, e[15] = o, e[16] = x) : x = e[16];
204
202
  let y;
205
- e[20] !== c || e[21] !== d ? (y = /* @__PURE__ */ i(E, { flexShrink: 0, children: /* @__PURE__ */ i(Qe, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = y) : y = e[22];
206
- let v;
207
- e[23] !== h || e[24] !== g || e[25] !== m || e[26] !== S || e[27] !== y ? (v = /* @__PURE__ */ b(st, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: h, borderColor: "border.muted", cursor: "pointer", onClick: g, gap: "sm", children: [
208
- m,
209
- S,
210
- y
211
- ] }), e[23] = h, e[24] = g, e[25] = m, e[26] = S, e[27] = y, e[28] = v) : v = e[28];
212
- let k;
213
- e[29] !== l.newContent || e[30] !== l.oldContent || e[31] !== t || e[32] !== a ? (k = t && /* @__PURE__ */ i(E, { height: "400px", bg: "bg", children: /* @__PURE__ */ i(wt, { original: l.oldContent || "", modified: l.newContent || "", language: a, sideBySide: !1, disableScroll: !1 }) }), e[29] = l.newContent, e[30] = l.oldContent, e[31] = t, e[32] = a, e[33] = k) : k = e[33];
214
- let P;
215
- return e[34] !== v || e[35] !== k ? (P = /* @__PURE__ */ b(E, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
216
- v,
217
- k
218
- ] }), e[34] = v, e[35] = k, e[36] = P) : P = e[36], P;
219
- }, he = He.forwardRef(function(e, l) {
220
- const t = $(33);
221
- let o, r, s, a, c, d, h, g, f, u;
222
- t[0] !== e ? ({
223
- children: o,
224
- viewportRef: u,
225
- viewportProps: f,
226
- contentProps: r,
227
- verticalScrollbarProps: g,
228
- horizontalScrollbarProps: s,
229
- showVerticalScrollbar: c,
230
- showHorizontalScrollbar: d,
231
- showCorner: h,
232
- ...a
233
- } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c, t[6] = d, t[7] = h, t[8] = g, t[9] = f, t[10] = u) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5], d = t[6], h = t[7], g = t[8], f = t[9], u = t[10]);
234
- const p = c === void 0 ? !0 : c, m = d === void 0 ? !1 : d, x = h === void 0 ? p && m : h;
235
- let S;
236
- t[11] !== o || t[12] !== r ? (S = /* @__PURE__ */ i(Pe.Content, { ...r, children: o }), t[11] = o, t[12] = r, t[13] = S) : S = t[13];
237
- let y;
238
- t[14] !== S || t[15] !== f || t[16] !== u ? (y = /* @__PURE__ */ i(Pe.Viewport, { ...f, ref: u, children: S }), t[14] = S, t[15] = f, t[16] = u, t[17] = y) : y = t[17];
239
- let v;
240
- t[18] !== p || t[19] !== g ? (v = p ? /* @__PURE__ */ i(Pe.Scrollbar, { ...g, borderRadius: "xs" }) : null, t[18] = p, t[19] = g, t[20] = v) : v = t[20];
241
- let k;
242
- t[21] !== s || t[22] !== m ? (k = m ? /* @__PURE__ */ i(Pe.Scrollbar, { orientation: "horizontal", ...s, borderRadius: "xs" }) : null, t[21] = s, t[22] = m, t[23] = k) : k = t[23];
243
- let P;
244
- t[24] !== x ? (P = x ? /* @__PURE__ */ i(Pe.Corner, {}) : null, t[24] = x, t[25] = P) : P = t[25];
203
+ e[17] !== o || e[18] !== x ? (y = /* @__PURE__ */ i(V, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: o, children: x }), e[17] = o, e[18] = x, e[19] = y) : y = e[19];
245
204
  let I;
246
- return t[26] !== l || t[27] !== a || t[28] !== y || t[29] !== v || t[30] !== k || t[31] !== P ? (I = /* @__PURE__ */ b(Pe.Root, { ref: l, ...a, children: [
205
+ e[20] !== c || e[21] !== d ? (I = /* @__PURE__ */ i(V, { flexShrink: 0, children: /* @__PURE__ */ i(St, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = I) : I = e[22];
206
+ let k;
207
+ e[23] !== u || e[24] !== g || e[25] !== m || e[26] !== y || e[27] !== I ? (k = /* @__PURE__ */ b(At, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: u, borderColor: "border.muted", cursor: "pointer", onClick: g, gap: "sm", children: [
208
+ m,
247
209
  y,
248
- v,
210
+ I
211
+ ] }), e[23] = u, e[24] = g, e[25] = m, e[26] = y, e[27] = I, e[28] = k) : k = e[28];
212
+ let P;
213
+ e[29] !== n.newContent || e[30] !== n.oldContent || e[31] !== t || e[32] !== a ? (P = t && /* @__PURE__ */ i(V, { height: "400px", bg: "bg", children: /* @__PURE__ */ i(qt, { original: n.oldContent || "", modified: n.newContent || "", language: a, sideBySide: !1, disableScroll: !1 }) }), e[29] = n.newContent, e[30] = n.oldContent, e[31] = t, e[32] = a, e[33] = P) : P = e[33];
214
+ let D;
215
+ return e[34] !== k || e[35] !== P ? (D = /* @__PURE__ */ b(V, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
249
216
  k,
250
217
  P
251
- ] }), t[26] = l, t[27] = a, t[28] = y, t[29] = v, t[30] = k, t[31] = P, t[32] = I) : I = t[32], I;
252
- });
253
- function $n(n) {
218
+ ] }), e[34] = k, e[35] = P, e[36] = D) : D = e[36], D;
219
+ };
220
+ function zi(l) {
254
221
  const {
255
222
  diffs: e
256
- } = n, l = Je(null), t = It({
223
+ } = l, n = xt(null), t = Jt({
257
224
  count: e.length,
258
- getScrollElement: () => l.current,
225
+ getScrollElement: () => n.current,
259
226
  estimateSize: () => 42,
260
227
  overscan: 5
261
228
  });
262
- return e.length === 0 ? /* @__PURE__ */ i(D, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
229
+ return e.length === 0 ? /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", contentProps: {
263
230
  p: "xs",
264
231
  spaceY: "xs"
265
- }, children: /* @__PURE__ */ i(kt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(D, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(E, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(he, { position: "absolute", inset: "0", viewportRef: l, contentProps: {
232
+ }, children: /* @__PURE__ */ i(Ke, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(G, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(V, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(Ce, { position: "absolute", inset: "0", viewportRef: n, contentProps: {
266
233
  p: "xs"
267
- }, children: /* @__PURE__ */ i(E, { position: "relative", width: "100%", style: {
234
+ }, children: /* @__PURE__ */ i(V, { position: "relative", width: "100%", style: {
268
235
  height: t.getTotalSize()
269
- }, children: t.getVirtualItems().map((o) => /* @__PURE__ */ i(E, { "data-index": o.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
270
- transform: `translateY(${o.start}px)`
271
- }, children: /* @__PURE__ */ i(qt, { diff: e[o.index] }) }, o.key)) }) }) }) });
236
+ }, children: t.getVirtualItems().map((r) => /* @__PURE__ */ i(V, { "data-index": r.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
237
+ transform: `translateY(${r.start}px)`
238
+ }, children: /* @__PURE__ */ i(kn, { diff: e[r.index] }) }, r.key)) }) }) }) });
272
239
  }
273
- const Jt = (n, e) => `${n.version}-${n.date}-${e}`, Qt = (n, e) => `${n.title}-${e}`, je = (n) => {
274
- const e = $(12);
275
- let l, t, o;
276
- e[0] !== n ? ({
277
- date: l,
278
- version: o,
240
+ const Pn = (l, e) => `${l.version}-${l.date}-${e}`, Tn = (l, e) => `${l.title}-${e}`, nt = (l) => {
241
+ const e = A(12);
242
+ let n, t, r;
243
+ e[0] !== l ? ({
244
+ date: n,
245
+ version: r,
279
246
  ...t
280
- } = n, e[0] = n, e[1] = l, e[2] = t, e[3] = o) : (l = e[1], t = e[2], o = e[3]);
281
- let r;
282
- e[4] !== l ? (r = /* @__PURE__ */ i(re.Title, { textStyle: "sm", color: "fg.muted", children: l }), e[4] = l, e[5] = r) : r = e[5];
247
+ } = l, e[0] = l, e[1] = n, e[2] = t, e[3] = r) : (n = e[1], t = e[2], r = e[3]);
248
+ let o;
249
+ e[4] !== n ? (o = /* @__PURE__ */ i(he.Title, { textStyle: "sm", color: "fg.muted", children: n }), e[4] = n, e[5] = o) : o = e[5];
283
250
  let s;
284
- e[6] !== o ? (s = /* @__PURE__ */ i(pe, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ i(re.Title, { textStyle: "md", fontWeight: "semibold", children: o }) }), e[6] = o, e[7] = s) : s = e[7];
251
+ e[6] !== r ? (s = /* @__PURE__ */ i(we, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ i(he.Title, { textStyle: "md", fontWeight: "semibold", children: r }) }), e[6] = r, e[7] = s) : s = e[7];
285
252
  let a;
286
- return e[8] !== t || e[9] !== r || e[10] !== s ? (a = /* @__PURE__ */ b(D, { ...t, children: [
287
- r,
253
+ return e[8] !== t || e[9] !== o || e[10] !== s ? (a = /* @__PURE__ */ b(G, { ...t, children: [
254
+ o,
288
255
  s
289
- ] }), e[8] = t, e[9] = r, e[10] = s, e[11] = a) : a = e[11], a;
290
- }, Tn = (n) => {
291
- const e = $(14), {
292
- entries: l,
256
+ ] }), e[8] = t, e[9] = o, e[10] = s, e[11] = a) : a = e[11], a;
257
+ }, Ai = (l) => {
258
+ const e = A(14), {
259
+ entries: n,
293
260
  title: t,
294
- description: o
295
- } = n;
296
- let r;
297
- e[0] !== t ? (r = /* @__PURE__ */ i(ct, { size: "4xl", children: t }), e[0] = t, e[1] = r) : r = e[1];
261
+ description: r
262
+ } = l;
263
+ let o;
264
+ e[0] !== t ? (o = /* @__PURE__ */ i(Gt, { size: "4xl", children: t }), e[0] = t, e[1] = o) : o = e[1];
298
265
  let s;
299
- e[2] !== o ? (s = o ? /* @__PURE__ */ i(C, { color: "fg.muted", textStyle: "lg", children: o }) : null, e[2] = o, e[3] = s) : s = e[3];
266
+ e[2] !== r ? (s = r ? /* @__PURE__ */ i($, { color: "fg.muted", textStyle: "lg", children: r }) : null, e[2] = r, e[3] = s) : s = e[3];
300
267
  let a;
301
- e[4] !== r || e[5] !== s ? (a = /* @__PURE__ */ b(D, { textAlign: "center", children: [
302
- r,
268
+ e[4] !== o || e[5] !== s ? (a = /* @__PURE__ */ b(G, { textAlign: "center", children: [
269
+ o,
303
270
  s
304
- ] }), e[4] = r, e[5] = s, e[6] = a) : a = e[6];
271
+ ] }), e[4] = o, e[5] = s, e[6] = a) : a = e[6];
305
272
  let c;
306
- e[7] !== l ? (c = l.map(tl), e[7] = l, e[8] = c) : c = e[8];
273
+ e[7] !== n ? (c = n.map($n), e[7] = n, e[8] = c) : c = e[8];
307
274
  let d;
308
- e[9] !== c ? (d = /* @__PURE__ */ i(E, { position: "relative", children: /* @__PURE__ */ i(re.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
309
- let h;
310
- return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ b(D, { gap: "20", children: [
275
+ e[9] !== c ? (d = /* @__PURE__ */ i(V, { position: "relative", children: /* @__PURE__ */ i(he.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
276
+ let u;
277
+ return e[11] !== a || e[12] !== d ? (u = /* @__PURE__ */ b(G, { gap: "20", children: [
311
278
  a,
312
279
  d
313
- ] }), e[11] = a, e[12] = d, e[13] = h) : h = e[13], h;
280
+ ] }), e[11] = a, e[12] = d, e[13] = u) : u = e[13], u;
314
281
  };
315
- function Zt(n) {
316
- return /* @__PURE__ */ i(ze, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: n }, n);
282
+ function Dn(l) {
283
+ return /* @__PURE__ */ i(Te, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: l }, l);
317
284
  }
318
- function el(n, e) {
319
- return /* @__PURE__ */ i(Ke.Item, { children: /* @__PURE__ */ b(D, { gap: "1", children: [
320
- /* @__PURE__ */ i(C, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: n.title }),
321
- n.description ? /* @__PURE__ */ i(C, { color: "fg.subtle", textStyle: "xs", children: n.description }) : null,
322
- n.link ? /* @__PURE__ */ i(Be, { href: n.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
323
- ] }) }, Qt(n, e));
285
+ function _n(l, e) {
286
+ return /* @__PURE__ */ i(mt.Item, { children: /* @__PURE__ */ b(G, { gap: "1", children: [
287
+ /* @__PURE__ */ i($, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: l.title }),
288
+ l.description ? /* @__PURE__ */ i($, { color: "fg.subtle", textStyle: "xs", children: l.description }) : null,
289
+ l.link ? /* @__PURE__ */ i(Ue, { href: l.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
290
+ ] }) }, Tn(l, e));
324
291
  }
325
- function tl(n, e) {
326
- return /* @__PURE__ */ b(re.Item, { children: [
327
- /* @__PURE__ */ i(re.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
292
+ function $n(l, e) {
293
+ return /* @__PURE__ */ b(he.Item, { children: [
294
+ /* @__PURE__ */ i(he.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
328
295
  base: "static",
329
296
  md: "sticky"
330
- }, children: /* @__PURE__ */ i(je, { hideBelow: "md", date: n.date, version: n.version }) }),
331
- /* @__PURE__ */ b(re.Connector, { children: [
332
- /* @__PURE__ */ i(re.Separator, {}),
333
- /* @__PURE__ */ i(re.Indicator, {})
297
+ }, children: /* @__PURE__ */ i(nt, { hideBelow: "md", date: l.date, version: l.version }) }),
298
+ /* @__PURE__ */ b(he.Connector, { children: [
299
+ /* @__PURE__ */ i(he.Separator, {}),
300
+ /* @__PURE__ */ i(he.Indicator, {})
334
301
  ] }),
335
- /* @__PURE__ */ i(re.Content, { children: /* @__PURE__ */ b(D, { gap: "4", children: [
336
- /* @__PURE__ */ i(je, { hideFrom: "md", date: n.date, version: n.version }),
337
- /* @__PURE__ */ b(D, { gap: "2", children: [
338
- /* @__PURE__ */ i(re.Title, { fontSize: "lg", fontWeight: "medium", children: n.title }),
339
- n.description ? /* @__PURE__ */ i(C, { color: "fg.muted", textStyle: "sm", children: n.description }) : null
302
+ /* @__PURE__ */ i(he.Content, { children: /* @__PURE__ */ b(G, { gap: "4", children: [
303
+ /* @__PURE__ */ i(nt, { hideFrom: "md", date: l.date, version: l.version }),
304
+ /* @__PURE__ */ b(G, { gap: "2", children: [
305
+ /* @__PURE__ */ i(he.Title, { fontSize: "lg", fontWeight: "medium", children: l.title }),
306
+ l.description ? /* @__PURE__ */ i($, { color: "fg.muted", textStyle: "sm", children: l.description }) : null
340
307
  ] }),
341
- n.tags && n.tags.length > 0 ? /* @__PURE__ */ i(F, { children: n.tags.map(Zt) }) : null,
342
- n.image ? /* @__PURE__ */ i(at, { rounded: "l2", src: n.image, alt: n.title }) : null,
343
- n.changes && n.changes.length > 0 ? /* @__PURE__ */ i(Ke.Root, { pl: "4", gap: "4", children: n.changes.map(el) }) : null
308
+ l.tags && l.tags.length > 0 ? /* @__PURE__ */ i(X, { children: l.tags.map(Dn) }) : null,
309
+ l.image ? /* @__PURE__ */ i(Ot, { rounded: "l2", src: l.image, alt: l.title }) : null,
310
+ l.changes && l.changes.length > 0 ? /* @__PURE__ */ i(mt.Root, { pl: "4", gap: "4", children: l.changes.map(_n) }) : null
344
311
  ] }) })
345
- ] }, Jt(n, e));
312
+ ] }, Pn(l, e));
346
313
  }
347
- const ll = /^(#{1,3})\s+(.+)$/gm, nl = ".rich-text__h1, .rich-text__h2, .rich-text__h3", il = (n, e) => n.classList.contains(`rich-text__h${e}`), ol = (n) => n.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Me = (n) => {
314
+ const Ln = /^(#{1,3})\s+(.+)$/gm, Rn = ".rich-text__h1, .rich-text__h2, .rich-text__h3", En = (l, e) => l.classList.contains(`rich-text__h${e}`), zn = (l) => l.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Ve = (l) => {
348
315
  const e = [];
349
- let l = 0;
350
- for (const t of n.matchAll(ll)) {
351
- const o = t[1].length, r = t[2].trim(), a = `${ol(r) || "heading"}-${l}`;
316
+ let n = 0;
317
+ for (const t of l.matchAll(Ln)) {
318
+ const r = t[1].length, o = t[2].trim(), a = `${zn(o) || "heading"}-${n}`;
352
319
  e.push({
353
320
  id: a,
354
- level: o,
355
- text: r
356
- }), l += 1;
321
+ level: r,
322
+ text: o
323
+ }), n += 1;
357
324
  }
358
325
  return e;
359
- }, rl = (n, e) => {
360
- const l = Array.from(e.querySelectorAll(nl)), t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
361
- let r = 0;
362
- for (const s of n)
363
- for (let a = r; a < l.length; a += 1) {
364
- const c = l[a], d = c.textContent?.trim();
365
- if (!(!d || d !== s.text) && il(c, s.level)) {
366
- t.set(s.id, c), o.set(c, s.id), r = a + 1;
326
+ }, An = (l, e) => {
327
+ const n = Array.from(e.querySelectorAll(Rn)), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
328
+ let o = 0;
329
+ for (const s of l)
330
+ for (let a = o; a < n.length; a += 1) {
331
+ const c = n[a], d = c.textContent?.trim();
332
+ if (!(!d || d !== s.text) && En(c, s.level)) {
333
+ t.set(s.id, c), r.set(c, s.id), o = a + 1;
367
334
  break;
368
335
  }
369
336
  }
370
337
  return {
371
338
  elementsByHeadingId: t,
372
- headingIdByElement: o
339
+ headingIdByElement: r
373
340
  };
374
- }, Ge = (n) => {
375
- const e = $(14), {
376
- heading: l,
341
+ }, lt = (l) => {
342
+ const e = A(14), {
343
+ heading: n,
377
344
  isActive: t,
378
- emphasized: o,
379
- variant: r,
345
+ emphasized: r,
346
+ variant: o,
380
347
  onSelect: s
381
- } = n, a = r === "line", c = `calc(${l.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", h = t || o ? "medium" : "normal", g = a ? "1px" : "0px", f = a ? t ? "fg" : "bg.muted" : "transparent";
382
- let u;
383
- e[0] !== a ? (u = a ? {
348
+ } = l, a = o === "line", c = `calc(${n.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", u = t || r ? "medium" : "normal", g = a ? "1px" : "0px", f = a ? t ? "fg" : "bg.muted" : "transparent";
349
+ let p;
350
+ e[0] !== a ? (p = a ? {
384
351
  borderStartColor: "bg.emphasized"
385
352
  } : {
386
353
  color: "fg"
387
- }, e[0] = a, e[1] = u) : u = e[1];
388
- let p;
389
- e[2] !== l.id || e[3] !== s ? (p = () => s(l.id), e[2] = l.id, e[3] = s, e[4] = p) : p = e[4];
354
+ }, e[0] = a, e[1] = p) : p = e[1];
355
+ let h;
356
+ e[2] !== n.id || e[3] !== s ? (h = () => s(n.id), e[2] = n.id, e[3] = s, e[4] = h) : h = e[4];
390
357
  let m;
391
- return e[5] !== l.text || e[6] !== c || e[7] !== d || e[8] !== h || e[9] !== g || e[10] !== f || e[11] !== u || e[12] !== p ? (m = /* @__PURE__ */ i(E, { as: "button", py: "1.5", px: "0", width: "full", display: "flex", textAlign: "left", textStyle: "sm", cursor: "pointer", textDecoration: "none", transition: "all 0.15s ease", paddingInlineStart: c, color: d, fontWeight: h, borderStartWidth: g, borderStartColor: f, _hover: u, onClick: p, children: l.text }), e[5] = l.text, e[6] = c, e[7] = d, e[8] = h, e[9] = g, e[10] = f, e[11] = u, e[12] = p, e[13] = m) : m = e[13], m;
392
- }, _n = (n) => {
393
- const e = $(39), {
394
- markdown: l,
358
+ return e[5] !== n.text || e[6] !== c || e[7] !== d || e[8] !== u || e[9] !== g || e[10] !== f || e[11] !== p || e[12] !== h ? (m = /* @__PURE__ */ i(V, { as: "button", py: "1.5", px: "0", width: "full", display: "flex", textAlign: "left", textStyle: "sm", cursor: "pointer", textDecoration: "none", transition: "all 0.15s ease", paddingInlineStart: c, color: d, fontWeight: u, borderStartWidth: g, borderStartColor: f, _hover: p, onClick: h, children: n.text }), e[5] = n.text, e[6] = c, e[7] = d, e[8] = u, e[9] = g, e[10] = f, e[11] = p, e[12] = h, e[13] = m) : m = e[13], m;
359
+ }, Oi = (l) => {
360
+ const e = A(39), {
361
+ markdown: n,
395
362
  title: t,
396
- rootMargin: o
397
- } = n, r = t === void 0 ? "On this page" : t, s = o === void 0 ? "-20% 0% -35% 0%" : o, a = Me(l), c = dt(), [d, h] = Re(a[0]?.id ?? ""), [g, f] = Re(!1);
398
- let u;
399
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
363
+ rootMargin: r
364
+ } = l, o = t === void 0 ? "On this page" : t, s = r === void 0 ? "-20% 0% -35% 0%" : r, a = Ve(n), c = Mt(), [d, u] = me(a[0]?.id ?? ""), [g, f] = me(!1);
365
+ let p;
366
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
400
367
  elementsByHeadingId: /* @__PURE__ */ new Map(),
401
368
  headingIdByElement: /* @__PURE__ */ new Map()
402
- }, e[0] = u) : u = e[0];
403
- const p = Je(u);
369
+ }, e[0] = p) : p = e[0];
370
+ const h = xt(p);
404
371
  let m, x;
405
- e[1] !== l ? (m = () => {
406
- const W = Me(l);
407
- h(W[0]?.id ?? "");
408
- }, x = [l], e[1] = l, e[2] = m, e[3] = x) : (m = e[2], x = e[3]), We(m, x);
409
- let S, y;
410
- if (e[4] !== c || e[5] !== l || e[6] !== s ? (S = () => {
411
- const W = Me(l), le = c.getDocument(), Se = c.getWindow(), fe = rl(W, le);
412
- if (p.current = fe, fe.headingIdByElement.size === 0)
372
+ e[1] !== n ? (m = () => {
373
+ const U = Ve(n);
374
+ u(U[0]?.id ?? "");
375
+ }, x = [n], e[1] = n, e[2] = m, e[3] = x) : (m = e[2], x = e[3]), He(m, x);
376
+ let y, I;
377
+ if (e[4] !== c || e[5] !== n || e[6] !== s ? (y = () => {
378
+ const U = Ve(n), ie = c.getDocument(), ce = c.getWindow(), re = An(U, ie);
379
+ if (h.current = re, re.headingIdByElement.size === 0)
413
380
  return;
414
- const se = new Se.IntersectionObserver((oe) => {
415
- const ae = oe.filter(sl).sort(al);
381
+ const ue = new ce.IntersectionObserver((fe) => {
382
+ const ae = fe.filter(On).sort(Gn);
416
383
  if (ae.length === 0)
417
384
  return;
418
- const ge = ae[0].target, ce = fe.headingIdByElement.get(ge);
419
- ce && h(ce);
385
+ const be = ae[0].target, ge = re.headingIdByElement.get(be);
386
+ ge && u(ge);
420
387
  }, {
421
388
  rootMargin: s
422
389
  });
423
- for (const oe of fe.headingIdByElement.keys())
424
- se.observe(oe);
390
+ for (const fe of re.headingIdByElement.keys())
391
+ ue.observe(fe);
425
392
  return () => {
426
- se.disconnect();
393
+ ue.disconnect();
427
394
  };
428
- }, y = [c, l, s], e[4] = c, e[5] = l, e[6] = s, e[7] = S, e[8] = y) : (S = e[7], y = e[8]), We(S, y), a.length === 0)
395
+ }, I = [c, n, s], e[4] = c, e[5] = n, e[6] = s, e[7] = y, e[8] = I) : (y = e[7], I = e[8]), He(y, I), a.length === 0)
429
396
  return null;
430
- let v;
431
- e[9] !== d ? (v = (W) => W.id === d, e[9] = d, e[10] = v) : v = e[10];
432
- const k = a.find(v);
433
- let P;
434
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (W) => {
435
- const le = p.current.elementsByHeadingId.get(W);
436
- h(W), f(!1), le?.scrollIntoView({
397
+ let k;
398
+ e[9] !== d ? (k = (U) => U.id === d, e[9] = d, e[10] = k) : k = e[10];
399
+ const P = a.find(k);
400
+ let D;
401
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = (U) => {
402
+ const ie = h.current.elementsByHeadingId.get(U);
403
+ u(U), f(!1), ie?.scrollIntoView({
437
404
  behavior: "smooth",
438
405
  block: "start"
439
406
  });
440
- }, e[11] = P) : P = e[11];
441
- const I = P;
442
- let w;
443
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (W) => f(W.open), e[12] = w) : w = e[12];
444
- let T;
445
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ i(ne, { as: Oe, color: "fg.subtle" }), e[13] = T) : T = e[13];
446
- let R;
447
- e[14] !== r ? (R = /* @__PURE__ */ i(C, { textStyle: "sm", fontWeight: "medium", color: "fg", children: r }), e[14] = r, e[15] = R) : R = e[15];
448
- const z = g ? null : /* @__PURE__ */ b(St, { children: [
449
- /* @__PURE__ */ i(ne, { as: me, color: "fg.subtle" }),
450
- /* @__PURE__ */ i(C, { textStyle: "sm", color: "fg.muted", children: k?.text })
407
+ }, e[11] = D) : D = e[11];
408
+ const T = D;
409
+ let _;
410
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (U) => f(U.open), e[12] = _) : _ = e[12];
411
+ let S;
412
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ i(oe, { as: qe, color: "fg.subtle" }), e[13] = S) : S = e[13];
413
+ let C;
414
+ e[14] !== o ? (C = /* @__PURE__ */ i($, { textStyle: "sm", fontWeight: "medium", color: "fg", children: o }), e[14] = o, e[15] = C) : C = e[15];
415
+ const w = g ? null : /* @__PURE__ */ b(Ze, { children: [
416
+ /* @__PURE__ */ i(oe, { as: ye, color: "fg.subtle" }),
417
+ /* @__PURE__ */ i($, { textStyle: "sm", color: "fg.muted", children: P?.text })
451
418
  ] });
419
+ let v;
420
+ e[16] !== C || e[17] !== w ? (v = /* @__PURE__ */ b(X, { children: [
421
+ S,
422
+ C,
423
+ w
424
+ ] }), e[16] = C, e[17] = w, e[18] = v) : v = e[18];
425
+ const E = g ? "rotate(180deg)" : "rotate(0deg)";
452
426
  let L;
453
- e[16] !== R || e[17] !== z ? (L = /* @__PURE__ */ b(F, { children: [
454
- T,
455
- R,
427
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ i(oe, { as: et, color: "fg.subtle" }), e[19] = L) : L = e[19];
428
+ let z;
429
+ e[20] !== E ? (z = /* @__PURE__ */ i(V, { transition: "transform 0.2s", transform: E, children: L }), e[20] = E, e[21] = z) : z = e[21];
430
+ let O;
431
+ e[22] !== v || e[23] !== z ? (O = /* @__PURE__ */ b(_e.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
432
+ v,
456
433
  z
457
- ] }), e[16] = R, e[17] = z, e[18] = L) : L = e[18];
458
- const O = g ? "rotate(180deg)" : "rotate(0deg)";
459
- let N;
460
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ i(ne, { as: Ze, color: "fg.subtle" }), e[19] = N) : N = e[19];
461
- let H;
462
- e[20] !== O ? (H = /* @__PURE__ */ i(E, { transition: "transform 0.2s", transform: O, children: N }), e[20] = O, e[21] = H) : H = e[21];
463
- let M;
464
- e[22] !== L || e[23] !== H ? (M = /* @__PURE__ */ b(xe.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
465
- L,
466
- H
467
- ] }), e[22] = L, e[23] = H, e[24] = M) : M = e[24];
468
- let B;
469
- e[25] !== d ? (B = (W) => /* @__PURE__ */ i(Ge, { heading: W, variant: "minimal", emphasized: !1, isActive: d === W.id, onSelect: I }, W.id), e[25] = d, e[26] = B) : B = e[26];
470
- const A = he, j = "md", _ = "6", G = "xs", Q = "sticky", Y = "calc(100vh - 3rem)";
471
- let X;
472
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ i(ne, { as: Oe, color: "fg.subtle" }), e[27] = X) : X = e[27];
473
- let U;
474
- e[28] !== r ? (U = /* @__PURE__ */ b(F, { mb: "4", children: [
475
- X,
476
- /* @__PURE__ */ i(C, { fontWeight: "medium", textStyle: "sm", children: r })
477
- ] }), e[28] = r, e[29] = U) : U = e[29];
478
- const Z = D, te = "0";
479
- let K;
480
- e[30] !== d ? (K = (W) => /* @__PURE__ */ i(Ge, { heading: W, variant: "line", emphasized: W.level === 1, isActive: d === W.id, onSelect: I }, W.id), e[30] = d, e[31] = K) : K = e[31];
481
- const ee = a.map(K);
482
- let V;
483
- e[32] !== Z || e[33] !== ee ? (V = /* @__PURE__ */ i(Z, { gap: te, children: ee }), e[32] = Z, e[33] = ee, e[34] = V) : V = e[34];
434
+ ] }), e[22] = v, e[23] = z, e[24] = O) : O = e[24];
435
+ let W;
436
+ e[25] !== d ? (W = (U) => /* @__PURE__ */ i(lt, { heading: U, variant: "minimal", emphasized: !1, isActive: d === U.id, onSelect: T }, U.id), e[25] = d, e[26] = W) : W = e[26];
437
+ const H = Ce, B = "md", N = "6", M = "xs", R = "sticky", F = "calc(100vh - 3rem)";
438
+ let Y;
439
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ i(oe, { as: qe, color: "fg.subtle" }), e[27] = Y) : Y = e[27];
484
440
  let q;
485
- return e[35] !== A || e[36] !== U || e[37] !== V ? (q = /* @__PURE__ */ b(A, { hideBelow: j, top: _, width: G, position: Q, maxH: Y, children: [
486
- U,
487
- V
488
- ] }), e[35] = A, e[36] = U, e[37] = V, e[38] = q) : q = e[38], /* @__PURE__ */ b(D, { gap: "0", width: "full", children: [
489
- /* @__PURE__ */ i(E, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(xe.Root, { open: g, onOpenChange: w, children: [
490
- M,
491
- /* @__PURE__ */ i(xe.Content, { children: /* @__PURE__ */ i(he, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(D, { gap: "0", children: a.map(B) }) }) })
441
+ e[28] !== o ? (q = /* @__PURE__ */ b(X, { mb: "4", children: [
442
+ Y,
443
+ /* @__PURE__ */ i($, { fontWeight: "medium", textStyle: "sm", children: o })
444
+ ] }), e[28] = o, e[29] = q) : q = e[29];
445
+ const J = G, K = "0";
446
+ let Q;
447
+ e[30] !== d ? (Q = (U) => /* @__PURE__ */ i(lt, { heading: U, variant: "line", emphasized: U.level === 1, isActive: d === U.id, onSelect: T }, U.id), e[30] = d, e[31] = Q) : Q = e[31];
448
+ const te = a.map(Q);
449
+ let ee;
450
+ e[32] !== J || e[33] !== te ? (ee = /* @__PURE__ */ i(J, { gap: K, children: te }), e[32] = J, e[33] = te, e[34] = ee) : ee = e[34];
451
+ let Z;
452
+ return e[35] !== H || e[36] !== q || e[37] !== ee ? (Z = /* @__PURE__ */ b(H, { hideBelow: B, top: N, width: M, position: R, maxH: F, children: [
453
+ q,
454
+ ee
455
+ ] }), e[35] = H, e[36] = q, e[37] = ee, e[38] = Z) : Z = e[38], /* @__PURE__ */ b(G, { gap: "0", width: "full", children: [
456
+ /* @__PURE__ */ i(V, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(_e.Root, { open: g, onOpenChange: _, children: [
457
+ O,
458
+ /* @__PURE__ */ i(_e.Content, { children: /* @__PURE__ */ i(Ce, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(G, { gap: "0", children: a.map(W) }) }) })
492
459
  ] }) }),
493
- q
460
+ Z
494
461
  ] });
495
462
  };
496
- function sl(n) {
497
- return n.isIntersecting;
463
+ function On(l) {
464
+ return l.isIntersecting;
498
465
  }
499
- function al(n, e) {
500
- return n.boundingClientRect.top - e.boundingClientRect.top;
466
+ function Gn(l, e) {
467
+ return l.boundingClientRect.top - e.boundingClientRect.top;
501
468
  }
502
- const Xe = (n) => {
503
- const e = $(24), {
504
- item: l,
469
+ const it = (l) => {
470
+ const e = A(24), {
471
+ item: n,
505
472
  direction: t
506
- } = n, o = t === "prev", r = o ? "Previous" : "Next", s = o ? "start" : "end", a = o ? "flex-start" : "flex-end";
473
+ } = l, r = t === "prev", o = r ? "Previous" : "Next", s = r ? "start" : "end", a = r ? "flex-start" : "flex-end";
507
474
  let c;
508
- e[0] !== o ? (c = o ? /* @__PURE__ */ i(Pt, { size: 16 }) : null, e[0] = o, e[1] = c) : c = e[1];
509
- const d = o ? "flex-start" : "flex-end";
510
- let h;
511
- e[2] !== r ? (h = /* @__PURE__ */ i(C, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: r }), e[2] = r, e[3] = h) : h = e[3];
475
+ e[0] !== r ? (c = r ? /* @__PURE__ */ i(Qt, { size: 16 }) : null, e[0] = r, e[1] = c) : c = e[1];
476
+ const d = r ? "flex-start" : "flex-end";
477
+ let u;
478
+ e[2] !== o ? (u = /* @__PURE__ */ i($, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: o }), e[2] = o, e[3] = u) : u = e[3];
512
479
  let g;
513
- e[4] !== l.title ? (g = /* @__PURE__ */ i(C, { textStyle: "sm", fontWeight: "medium", children: l.title }), e[4] = l.title, e[5] = g) : g = e[5];
480
+ e[4] !== n.title ? (g = /* @__PURE__ */ i($, { textStyle: "sm", fontWeight: "medium", children: n.title }), e[4] = n.title, e[5] = g) : g = e[5];
514
481
  let f;
515
- e[6] !== l.description ? (f = l.description ? /* @__PURE__ */ i(C, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: l.description }) : null, e[6] = l.description, e[7] = f) : f = e[7];
516
- let u;
517
- e[8] !== d || e[9] !== h || e[10] !== g || e[11] !== f ? (u = /* @__PURE__ */ b(D, { gap: "0", alignItems: d, children: [
518
- h,
482
+ e[6] !== n.description ? (f = n.description ? /* @__PURE__ */ i($, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: n.description }) : null, e[6] = n.description, e[7] = f) : f = e[7];
483
+ let p;
484
+ e[8] !== d || e[9] !== u || e[10] !== g || e[11] !== f ? (p = /* @__PURE__ */ b(G, { gap: "0", alignItems: d, children: [
485
+ u,
519
486
  g,
520
487
  f
521
- ] }), e[8] = d, e[9] = h, e[10] = g, e[11] = f, e[12] = u) : u = e[12];
522
- let p;
523
- e[13] !== o ? (p = o ? null : /* @__PURE__ */ i(me, { size: 16 }), e[13] = o, e[14] = p) : p = e[14];
488
+ ] }), e[8] = d, e[9] = u, e[10] = g, e[11] = f, e[12] = p) : p = e[12];
489
+ let h;
490
+ e[13] !== r ? (h = r ? null : /* @__PURE__ */ i(ye, { size: 16 }), e[13] = r, e[14] = h) : h = e[14];
524
491
  let m;
525
- e[15] !== l.href || e[16] !== c || e[17] !== u || e[18] !== p ? (m = /* @__PURE__ */ b("a", { href: l.href, children: [
492
+ e[15] !== n.href || e[16] !== c || e[17] !== p || e[18] !== h ? (m = /* @__PURE__ */ b("a", { href: n.href, children: [
526
493
  c,
527
- u,
528
- p
529
- ] }), e[15] = l.href, e[16] = c, e[17] = u, e[18] = p, e[19] = m) : m = e[19];
494
+ p,
495
+ h
496
+ ] }), e[15] = n.href, e[16] = c, e[17] = p, e[18] = h, e[19] = m) : m = e[19];
530
497
  let x;
531
- return e[20] !== s || e[21] !== a || e[22] !== m ? (x = /* @__PURE__ */ i(ue, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: s, justifyContent: a, flex: "1", children: m }), e[20] = s, e[21] = a, e[22] = m, e[23] = x) : x = e[23], x;
532
- }, Rn = (n) => {
533
- const e = $(11), {
534
- previous: l,
498
+ return e[20] !== s || e[21] !== a || e[22] !== m ? (x = /* @__PURE__ */ i(de, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: s, justifyContent: a, flex: "1", children: m }), e[20] = s, e[21] = a, e[22] = m, e[23] = x) : x = e[23], x;
499
+ }, Gi = (l) => {
500
+ const e = A(11), {
501
+ previous: n,
535
502
  next: t
536
- } = n;
537
- if (!l && !t)
503
+ } = l;
504
+ if (!n && !t)
538
505
  return null;
539
- let o;
540
- e[0] !== l ? (o = l ? /* @__PURE__ */ i(Xe, { item: l, direction: "prev" }) : null, e[0] = l, e[1] = o) : o = e[1];
541
506
  let r;
542
- e[2] !== o ? (r = /* @__PURE__ */ i(E, { flex: "1", children: o }), e[2] = o, e[3] = r) : r = e[3];
507
+ e[0] !== n ? (r = n ? /* @__PURE__ */ i(it, { item: n, direction: "prev" }) : null, e[0] = n, e[1] = r) : r = e[1];
508
+ let o;
509
+ e[2] !== r ? (o = /* @__PURE__ */ i(V, { flex: "1", children: r }), e[2] = r, e[3] = o) : o = e[3];
543
510
  let s;
544
- e[4] !== t ? (s = t ? /* @__PURE__ */ i(Xe, { item: t, direction: "next" }) : null, e[4] = t, e[5] = s) : s = e[5];
511
+ e[4] !== t ? (s = t ? /* @__PURE__ */ i(it, { item: t, direction: "next" }) : null, e[4] = t, e[5] = s) : s = e[5];
545
512
  let a;
546
- e[6] !== s ? (a = /* @__PURE__ */ i(E, { flex: "1", children: s }), e[6] = s, e[7] = a) : a = e[7];
513
+ e[6] !== s ? (a = /* @__PURE__ */ i(V, { flex: "1", children: s }), e[6] = s, e[7] = a) : a = e[7];
547
514
  let c;
548
- return e[8] !== r || e[9] !== a ? (c = /* @__PURE__ */ b(F, { justify: "space-between", gap: "4", children: [
549
- r,
515
+ return e[8] !== o || e[9] !== a ? (c = /* @__PURE__ */ b(X, { justify: "space-between", gap: "4", children: [
516
+ o,
550
517
  a
551
- ] }), e[8] = r, e[9] = a, e[10] = c) : c = e[10], c;
552
- }, cl = (n) => {
553
- const e = $(17), {
554
- children: l,
518
+ ] }), e[8] = o, e[9] = a, e[10] = c) : c = e[10], c;
519
+ }, Mn = (l) => {
520
+ const e = A(17), {
521
+ children: n,
555
522
  title: t,
556
- defaultOpen: o,
557
- action: r
558
- } = n, s = o === void 0 ? !0 : o;
523
+ defaultOpen: r,
524
+ action: o
525
+ } = l, s = r === void 0 ? !0 : r;
559
526
  let a;
560
527
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
561
528
  background: "bg.muted"
562
529
  }, e[0] = a) : a = e[0];
563
530
  let c;
564
- e[1] !== t ? (c = t && /* @__PURE__ */ i(C, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
531
+ e[1] !== t ? (c = t && /* @__PURE__ */ i($, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
565
532
  let d;
566
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(xe.Indicator, { transition: "transform 0.2s", _open: {
533
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(_e.Indicator, { transition: "transform 0.2s", _open: {
567
534
  transform: "rotate(90deg)"
568
- }, children: /* @__PURE__ */ i(me, { size: 16 }) }), e[3] = d) : d = e[3];
569
- let h;
570
- e[4] !== c ? (h = /* @__PURE__ */ b(xe.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
535
+ }, children: /* @__PURE__ */ i(ye, { size: 16 }) }), e[3] = d) : d = e[3];
536
+ let u;
537
+ e[4] !== c ? (u = /* @__PURE__ */ b(_e.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
571
538
  c,
572
539
  d
573
- ] }), e[4] = c, e[5] = h) : h = e[5];
540
+ ] }), e[4] = c, e[5] = u) : u = e[5];
574
541
  let g;
575
- e[6] !== r ? (g = r && /* @__PURE__ */ i(E, { marginLeft: "auto", onClick: dl, children: r }), e[6] = r, e[7] = g) : g = e[7];
542
+ e[6] !== o ? (g = o && /* @__PURE__ */ i(V, { marginLeft: "auto", onClick: Nn, children: o }), e[6] = o, e[7] = g) : g = e[7];
576
543
  let f;
577
- e[8] !== h || e[9] !== g ? (f = /* @__PURE__ */ b(pe, { children: [
578
- h,
544
+ e[8] !== u || e[9] !== g ? (f = /* @__PURE__ */ b(we, { children: [
545
+ u,
579
546
  g
580
- ] }), e[8] = h, e[9] = g, e[10] = f) : f = e[10];
581
- let u;
582
- e[11] !== l ? (u = /* @__PURE__ */ i(xe.Content, { children: l }), e[11] = l, e[12] = u) : u = e[12];
547
+ ] }), e[8] = u, e[9] = g, e[10] = f) : f = e[10];
583
548
  let p;
584
- return e[13] !== s || e[14] !== f || e[15] !== u ? (p = /* @__PURE__ */ b(xe.Root, { defaultOpen: s, width: "full", children: [
549
+ e[11] !== n ? (p = /* @__PURE__ */ i(_e.Content, { children: n }), e[11] = n, e[12] = p) : p = e[12];
550
+ let h;
551
+ return e[13] !== s || e[14] !== f || e[15] !== p ? (h = /* @__PURE__ */ b(_e.Root, { defaultOpen: s, width: "full", children: [
585
552
  f,
586
- u
587
- ] }), e[13] = s, e[14] = f, e[15] = u, e[16] = p) : p = e[16], p;
553
+ p
554
+ ] }), e[13] = s, e[14] = f, e[15] = p, e[16] = h) : h = e[16], h;
588
555
  };
589
- function dl(n) {
590
- return n.stopPropagation();
556
+ function Nn(l) {
557
+ return l.stopPropagation();
591
558
  }
592
- const hl = {
559
+ const It = {
593
560
  default: {
594
561
  paddingX: "sm",
595
562
  paddingY: "xs",
@@ -608,95 +575,185 @@ const hl = {
608
575
  secondaryMarginLeft: "0",
609
576
  secondaryTextStyle: "label/XS/regular"
610
577
  }
611
- }, Ae = (n) => {
612
- const e = $(67), {
613
- id: l,
614
- primaryLabel: t,
615
- tooltipLabel: o,
578
+ }, rt = (l) => {
579
+ const e = A(49), {
580
+ primaryLabel: n,
581
+ tooltipLabel: t,
616
582
  secondaryLabel: r,
617
- leftIcon: s,
618
- leftSlot: a,
619
- rightIcon: c,
620
- leftIconColor: d,
621
- rightIconColor: h,
622
- leftIconSize: g,
623
- rightIconSize: f,
624
- rightIconAriaLabel: u,
583
+ leftIcon: o,
584
+ leftSlot: s,
585
+ rightIcon: a,
586
+ leftIconColor: c,
587
+ rightIconColor: d,
588
+ leftIconSize: u,
589
+ rightIconSize: g,
590
+ rightIconAriaLabel: f,
625
591
  rightTooltipLabel: p,
626
- onRightIconClick: m,
627
- isDisabled: x,
628
- isSelected: S,
629
- tagLabel: y,
630
- tagColorPalette: v,
631
- tagVariant: k,
632
- variant: P,
633
- tabIndex: I,
634
- width: w,
635
- maxWidth: T,
636
- setRefElement: R
637
- } = n, z = s === void 0 ? null : s, L = d === void 0 ? "fg.menu-item.default" : d, O = h === void 0 ? "fg.menu-item.default" : h, N = v === void 0 ? "yellow" : v, H = k === void 0 ? "subtle" : k, M = P === void 0 ? "default" : P, {
592
+ onRightIconClick: h,
593
+ tagLabel: m,
594
+ tagColorPalette: x,
595
+ tagVariant: y,
596
+ variant: I
597
+ } = l, k = It[I], P = !!(h && a);
598
+ let D;
599
+ e[0] !== P ? (D = (F) => {
600
+ P && (F.preventDefault(), F.stopPropagation());
601
+ }, e[0] = P, e[1] = D) : D = e[1];
602
+ const T = D;
603
+ let _;
604
+ e[2] !== P || e[3] !== h ? (_ = (F) => {
605
+ !P || !h || (F.preventDefault(), F.stopPropagation(), h());
606
+ }, e[2] = P, e[3] = h, e[4] = _) : _ = e[4];
607
+ const S = _;
608
+ let C;
609
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
610
+ placement: "right"
611
+ }, e[5] = C) : C = e[5];
612
+ const w = !t;
613
+ let v;
614
+ e[6] !== o || e[7] !== c || e[8] !== u || e[9] !== s ? (v = s || (o ? /* @__PURE__ */ i(oe, { as: o, boxSize: u, color: c }) : null), e[6] = o, e[7] = c, e[8] = u, e[9] = s, e[10] = v) : v = e[10];
615
+ let E;
616
+ e[11] !== n || e[12] !== k.primaryTextStyle ? (E = /* @__PURE__ */ i($, { lineClamp: 1, textOverflow: "ellipsis", textStyle: k.primaryTextStyle, children: n }), e[11] = n, e[12] = k.primaryTextStyle, e[13] = E) : E = e[13];
617
+ let L;
618
+ e[14] !== v || e[15] !== E ? (L = /* @__PURE__ */ b(we, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
619
+ v,
620
+ E
621
+ ] }), e[14] = v, e[15] = E, e[16] = L) : L = e[16];
622
+ let z;
623
+ e[17] !== r || e[18] !== k.secondaryMarginLeft || e[19] !== k.secondaryTextStyle ? (z = r && /* @__PURE__ */ i($, { ml: k.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: k.secondaryTextStyle, color: "fg.menu-item.secondary", children: r }), e[17] = r, e[18] = k.secondaryMarginLeft, e[19] = k.secondaryTextStyle, e[20] = z) : z = e[20];
624
+ let O;
625
+ e[21] !== L || e[22] !== z ? (O = /* @__PURE__ */ b(G, { gap: "2xs", children: [
626
+ L,
627
+ z
628
+ ] }), e[21] = L, e[22] = z, e[23] = O) : O = e[23];
629
+ let W;
630
+ e[24] !== w || e[25] !== O || e[26] !== t ? (W = /* @__PURE__ */ i(Ee, { positioning: C, content: t, disabled: w, children: O }), e[24] = w, e[25] = O, e[26] = t, e[27] = W) : W = e[27];
631
+ let H;
632
+ e[28] !== S || e[29] !== T || e[30] !== P || e[31] !== a || e[32] !== f || e[33] !== d || e[34] !== g || e[35] !== p ? (H = a ? /* @__PURE__ */ i(Ee, { positioning: {
633
+ placement: "right"
634
+ }, content: p, disabled: !p, children: /* @__PURE__ */ i(we, { as: P ? "button" : "div", alignItems: "center", "aria-label": f, cursor: P ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: T, onClick: S, children: /* @__PURE__ */ i(oe, { as: a, boxSize: g, color: d }) }) }) : null, e[28] = S, e[29] = T, e[30] = P, e[31] = a, e[32] = f, e[33] = d, e[34] = g, e[35] = p, e[36] = H) : H = e[36];
635
+ let B;
636
+ e[37] !== H ? (B = /* @__PURE__ */ i(we, { justifyContent: "flex-end", color: "fg.menu-item.default", children: H }), e[37] = H, e[38] = B) : B = e[38];
637
+ let N;
638
+ e[39] !== B || e[40] !== W ? (N = /* @__PURE__ */ b(we, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
639
+ W,
640
+ B
641
+ ] }), e[39] = B, e[40] = W, e[41] = N) : N = e[41];
642
+ let M;
643
+ e[42] !== x || e[43] !== m || e[44] !== y ? (M = m ? /* @__PURE__ */ i(Te, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: x, variant: y, pointerEvents: "none", children: m }) : null, e[42] = x, e[43] = m, e[44] = y, e[45] = M) : M = e[45];
644
+ let R;
645
+ return e[46] !== N || e[47] !== M ? (R = /* @__PURE__ */ b(Ze, { children: [
646
+ N,
647
+ M
648
+ ] }), e[46] = N, e[47] = M, e[48] = R) : R = e[48], R;
649
+ }, We = (l) => {
650
+ const e = A(49), {
651
+ id: n,
652
+ children: t,
653
+ asChild: r,
654
+ primaryLabel: o,
655
+ tooltipLabel: s,
656
+ secondaryLabel: a,
657
+ leftIcon: c,
658
+ leftSlot: d,
659
+ rightIcon: u,
660
+ leftIconColor: g,
661
+ rightIconColor: f,
662
+ leftIconSize: p,
663
+ rightIconSize: h,
664
+ rightIconAriaLabel: m,
665
+ rightTooltipLabel: x,
666
+ onRightIconClick: y,
667
+ isDisabled: I,
668
+ isSelected: k,
669
+ tagLabel: P,
670
+ tagColorPalette: D,
671
+ tagVariant: T,
672
+ variant: _,
673
+ tabIndex: S,
674
+ width: C,
675
+ maxWidth: w,
676
+ setRefElement: v
677
+ } = l, E = c === void 0 ? null : c, L = g === void 0 ? "fg.menu-item.default" : g, z = f === void 0 ? "fg.menu-item.default" : f, O = D === void 0 ? "yellow" : D, W = T === void 0 ? "subtle" : T, H = _ === void 0 ? "default" : _, {
638
678
  onClick: B,
639
- onMouseDown: A,
640
- onMouseEnter: j
641
- } = n, _ = hl[M], G = S ? "bg.menu-item.selected" : "bg.menu-item.default", Q = g ?? _.iconSize, Y = f ?? _.iconSize, X = !!(m && c);
642
- let U;
643
- e[0] !== X ? (U = (De) => {
644
- X && (De.preventDefault(), De.stopPropagation());
645
- }, e[0] = X, e[1] = U) : U = e[1];
646
- const Z = U;
647
- let te;
648
- e[2] !== X || e[3] !== m ? (te = (De) => {
649
- !X || !m || (De.preventDefault(), De.stopPropagation(), m());
650
- }, e[2] = X, e[3] = m, e[4] = te) : te = e[4];
651
- const K = te, ee = T ?? "20rem", V = x ? "default" : "pointer", q = l ?? t;
652
- let W, le;
653
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {
679
+ onMouseDown: N,
680
+ onMouseEnter: M
681
+ } = l, R = It[H], F = k ? "bg.menu-item.selected" : "bg.menu-item.default", Y = p ?? R.iconSize, q = h ?? R.iconSize;
682
+ let J;
683
+ e[0] !== E || e[1] !== L || e[2] !== d || e[3] !== y || e[4] !== o || e[5] !== Y || e[6] !== q || e[7] !== u || e[8] !== m || e[9] !== z || e[10] !== x || e[11] !== a || e[12] !== O || e[13] !== P || e[14] !== W || e[15] !== s || e[16] !== H ? (J = {
684
+ primaryLabel: o,
685
+ secondaryLabel: a,
686
+ tooltipLabel: s,
687
+ leftIcon: E,
688
+ leftSlot: d,
689
+ rightIcon: u,
690
+ leftIconColor: L,
691
+ rightIconColor: z,
692
+ leftIconSize: Y,
693
+ rightIconSize: q,
694
+ rightIconAriaLabel: m,
695
+ rightTooltipLabel: x,
696
+ onRightIconClick: y,
697
+ tagLabel: P,
698
+ tagColorPalette: O,
699
+ tagVariant: W,
700
+ variant: H
701
+ }, e[0] = E, e[1] = L, e[2] = d, e[3] = y, e[4] = o, e[5] = Y, e[6] = q, e[7] = u, e[8] = m, e[9] = z, e[10] = x, e[11] = a, e[12] = O, e[13] = P, e[14] = W, e[15] = s, e[16] = H, e[17] = J) : J = e[17];
702
+ const K = J, Q = w ?? "20rem", te = I ? "default" : "pointer", ee = n ?? o;
703
+ let Z, U;
704
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = {
654
705
  bg: "bg.menu-item.hover"
655
- }, le = {
706
+ }, U = {
656
707
  bg: "bg.menu-item.focus"
657
- }, e[5] = W, e[6] = le) : (W = e[5], le = e[6]);
658
- let Se;
659
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = {
660
- placement: "right"
661
- }, e[7] = Se) : Se = e[7];
662
- const fe = !o;
663
- let se;
664
- e[8] !== z || e[9] !== L || e[10] !== a || e[11] !== Q ? (se = a || (z ? /* @__PURE__ */ i(ne, { as: z, boxSize: Q, color: L }) : null), e[8] = z, e[9] = L, e[10] = a, e[11] = Q, e[12] = se) : se = e[12];
665
- let oe;
666
- e[13] !== t || e[14] !== _.primaryTextStyle ? (oe = /* @__PURE__ */ i(C, { lineClamp: 1, textOverflow: "ellipsis", textStyle: _.primaryTextStyle, children: t }), e[13] = t, e[14] = _.primaryTextStyle, e[15] = oe) : oe = e[15];
667
- let ae;
668
- e[16] !== se || e[17] !== oe ? (ae = /* @__PURE__ */ b(pe, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
669
- se,
670
- oe
671
- ] }), e[16] = se, e[17] = oe, e[18] = ae) : ae = e[18];
672
- let ge;
673
- e[19] !== r || e[20] !== _.secondaryMarginLeft || e[21] !== _.secondaryTextStyle ? (ge = r && /* @__PURE__ */ i(C, { ml: _.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: _.secondaryTextStyle, color: "fg.menu-item.secondary", children: r }), e[19] = r, e[20] = _.secondaryMarginLeft, e[21] = _.secondaryTextStyle, e[22] = ge) : ge = e[22];
674
- let ce;
675
- e[23] !== ae || e[24] !== ge ? (ce = /* @__PURE__ */ b(D, { gap: "2xs", children: [
676
- ae,
677
- ge
678
- ] }), e[23] = ae, e[24] = ge, e[25] = ce) : ce = e[25];
679
- let ye;
680
- e[26] !== fe || e[27] !== ce || e[28] !== o ? (ye = /* @__PURE__ */ i(Ee, { positioning: Se, content: o, disabled: fe, children: ce }), e[26] = fe, e[27] = ce, e[28] = o, e[29] = ye) : ye = e[29];
681
- let ve;
682
- e[30] !== K || e[31] !== Z || e[32] !== X || e[33] !== Y || e[34] !== c || e[35] !== u || e[36] !== O || e[37] !== p ? (ve = c ? /* @__PURE__ */ i(Ee, { positioning: {
683
- placement: "right"
684
- }, content: p, disabled: !p, children: /* @__PURE__ */ i(pe, { as: X ? "button" : "div", alignItems: "center", "aria-label": u, cursor: X ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: Z, onClick: K, children: /* @__PURE__ */ i(ne, { as: c, boxSize: Y, color: O }) }) }) : null, e[30] = K, e[31] = Z, e[32] = X, e[33] = Y, e[34] = c, e[35] = u, e[36] = O, e[37] = p, e[38] = ve) : ve = e[38];
685
- let Ce;
686
- e[39] !== ve ? (Ce = /* @__PURE__ */ i(pe, { justifyContent: "flex-end", color: "fg.menu-item.default", children: ve }), e[39] = ve, e[40] = Ce) : Ce = e[40];
687
- let we;
688
- e[41] !== ye || e[42] !== Ce ? (we = /* @__PURE__ */ b(pe, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
689
- ye,
690
- Ce
691
- ] }), e[41] = ye, e[42] = Ce, e[43] = we) : we = e[43];
692
- let ke;
693
- e[44] !== N || e[45] !== y || e[46] !== H ? (ke = y ? /* @__PURE__ */ i(ze, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: N, variant: H, pointerEvents: "none", children: y }) : null, e[44] = N, e[45] = y, e[46] = H, e[47] = ke) : ke = e[47];
694
- let Ne;
695
- return e[48] !== G || e[49] !== l || e[50] !== x || e[51] !== S || e[52] !== B || e[53] !== A || e[54] !== j || e[55] !== R || e[56] !== q || e[57] !== we || e[58] !== ke || e[59] !== ee || e[60] !== V || e[61] !== I || e[62] !== _.minHeight || e[63] !== _.paddingX || e[64] !== _.paddingY || e[65] !== w ? (Ne = /* @__PURE__ */ b(ht, { id: l, ref: R, tabIndex: I, disabled: x, "aria-selected": S, paddingX: _.paddingX, paddingY: _.paddingY, onClick: B, onMouseDown: A, onMouseEnter: j, height: "auto", minHeight: _.minHeight, role: "option", width: w, maxWidth: ee, overflow: "hidden", position: "relative", cursor: V, value: q, bg: G, _hover: W, _focus: le, children: [
696
- we,
697
- ke
698
- ] }), e[48] = G, e[49] = l, e[50] = x, e[51] = S, e[52] = B, e[53] = A, e[54] = j, e[55] = R, e[56] = q, e[57] = we, e[58] = ke, e[59] = ee, e[60] = V, e[61] = I, e[62] = _.minHeight, e[63] = _.paddingX, e[64] = _.paddingY, e[65] = w, e[66] = Ne) : Ne = e[66], Ne;
699
- }, fl = {
708
+ }, e[18] = Z, e[19] = U) : (Z = e[18], U = e[19]);
709
+ let ie;
710
+ e[20] !== F || e[21] !== n || e[22] !== I || e[23] !== k || e[24] !== v || e[25] !== Q || e[26] !== te || e[27] !== ee || e[28] !== S || e[29] !== R.minHeight || e[30] !== R.paddingX || e[31] !== R.paddingY || e[32] !== C ? (ie = {
711
+ id: n,
712
+ ref: v,
713
+ tabIndex: S,
714
+ disabled: I,
715
+ "aria-selected": k,
716
+ paddingX: R.paddingX,
717
+ paddingY: R.paddingY,
718
+ height: "auto",
719
+ minHeight: R.minHeight,
720
+ role: "option",
721
+ width: C,
722
+ maxWidth: Q,
723
+ overflow: "hidden",
724
+ position: "relative",
725
+ cursor: te,
726
+ value: ee,
727
+ bg: F,
728
+ _hover: Z,
729
+ _focus: U,
730
+ textDecoration: "none",
731
+ color: "inherit"
732
+ }, e[20] = F, e[21] = n, e[22] = I, e[23] = k, e[24] = v, e[25] = Q, e[26] = te, e[27] = ee, e[28] = S, e[29] = R.minHeight, e[30] = R.paddingX, e[31] = R.paddingY, e[32] = C, e[33] = ie) : ie = e[33];
733
+ const ce = ie;
734
+ if (r && t) {
735
+ let fe, ae;
736
+ if (e[34] !== t || e[35] !== ce || e[36] !== K) {
737
+ ae = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
738
+ e: {
739
+ const be = Vt.only(t);
740
+ if (!jt(be)) {
741
+ ae = null;
742
+ break e;
743
+ }
744
+ let ge;
745
+ e[39] !== K ? (ge = /* @__PURE__ */ i(rt, { ...K }), e[39] = K, e[40] = ge) : ge = e[40], fe = /* @__PURE__ */ i(tt, { asChild: !0, ...ce, children: Xt(be, void 0, ge) });
746
+ }
747
+ e[34] = t, e[35] = ce, e[36] = K, e[37] = fe, e[38] = ae;
748
+ } else
749
+ fe = e[37], ae = e[38];
750
+ return ae !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? ae : fe;
751
+ }
752
+ let re;
753
+ e[41] !== K ? (re = /* @__PURE__ */ i(rt, { ...K }), e[41] = K, e[42] = re) : re = e[42];
754
+ let ue;
755
+ return e[43] !== ce || e[44] !== B || e[45] !== N || e[46] !== M || e[47] !== re ? (ue = /* @__PURE__ */ i(tt, { ...ce, onClick: B, onMouseDown: N, onMouseEnter: M, children: re }), e[43] = ce, e[44] = B, e[45] = N, e[46] = M, e[47] = re, e[48] = ue) : ue = e[48], ue;
756
+ }, Hn = {
700
757
  default: {
701
758
  width: "64",
702
759
  headerHeight: "49px",
@@ -714,72 +771,72 @@ const hl = {
714
771
  contentGap: "2xs"
715
772
  }
716
773
  };
717
- function gl(n) {
718
- const e = $(13), {
719
- title: l,
774
+ function Wn(l) {
775
+ const e = A(13), {
776
+ title: n,
720
777
  children: t,
721
- variant: o
722
- } = n, s = fl[o === void 0 ? "default" : o];
778
+ variant: r
779
+ } = l, s = Hn[r === void 0 ? "default" : r];
723
780
  let a;
724
- e[0] !== s.headerHeight || e[1] !== s.headerPadding || e[2] !== s.headerTextStyle || e[3] !== l ? (a = l && /* @__PURE__ */ i(pe, { height: s.headerHeight, p: s.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i(C, { pb: "0", textStyle: s.headerTextStyle, color: "fg.muted", children: l }) }), e[0] = s.headerHeight, e[1] = s.headerPadding, e[2] = s.headerTextStyle, e[3] = l, e[4] = a) : a = e[4];
781
+ e[0] !== s.headerHeight || e[1] !== s.headerPadding || e[2] !== s.headerTextStyle || e[3] !== n ? (a = n && /* @__PURE__ */ i(we, { height: s.headerHeight, p: s.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i($, { pb: "0", textStyle: s.headerTextStyle, color: "fg.muted", children: n }) }), e[0] = s.headerHeight, e[1] = s.headerPadding, e[2] = s.headerTextStyle, e[3] = n, e[4] = a) : a = e[4];
725
782
  let c;
726
- e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
783
+ e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", contentProps: {
727
784
  p: s.contentPadding,
728
785
  spaceY: s.contentGap
729
786
  }, children: t }), e[5] = t, e[6] = s.contentGap, e[7] = s.contentPadding, e[8] = c) : c = e[8];
730
787
  let d;
731
- return e[9] !== s.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(D, { borderRightWidth: "1px", width: s.width, gap: "0", minH: "0", children: [
788
+ return e[9] !== s.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(G, { borderRightWidth: "1px", width: s.width, gap: "0", minH: "0", children: [
732
789
  a,
733
790
  c
734
791
  ] }), e[9] = s.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
735
792
  }
736
- const et = (n) => {
737
- const e = $(27), {
738
- item: l,
793
+ const kt = (l) => {
794
+ const e = A(27), {
795
+ item: n,
739
796
  activeLink: t,
740
- onSelectLink: o,
741
- shouldStartOpen: r
742
- } = n;
797
+ onSelectLink: r,
798
+ shouldStartOpen: o
799
+ } = l;
743
800
  let s;
744
- e[0] !== l.items ? (s = l.items ?? [], e[0] = l.items, e[1] = s) : s = e[1];
801
+ e[0] !== n.items ? (s = n.items ?? [], e[0] = n.items, e[1] = s) : s = e[1];
745
802
  const a = s, c = a.length > 0;
746
- if (!c && l.link) {
747
- const p = l.link, m = l.link === t;
803
+ if (!c && n.link) {
804
+ const h = n.link, m = n.link === t;
748
805
  let x;
749
- e[2] !== p || e[3] !== o ? (x = () => o(p), e[2] = p, e[3] = o, e[4] = x) : x = e[4];
750
- let S;
751
- return e[5] !== m || e[6] !== l.text || e[7] !== x ? (S = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: l.text, isSelected: m, variant: "compact", onClick: x }) }), e[5] = m, e[6] = l.text, e[7] = x, e[8] = S) : S = e[8], S;
806
+ e[2] !== h || e[3] !== r ? (x = () => r(h), e[2] = h, e[3] = r, e[4] = x) : x = e[4];
807
+ let y;
808
+ return e[5] !== m || e[6] !== n.text || e[7] !== x ? (y = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: n.text, isSelected: m, variant: "compact", onClick: x }) }), e[5] = m, e[6] = n.text, e[7] = x, e[8] = y) : y = e[8], y;
752
809
  }
753
810
  if (!c) {
754
- let p;
755
- return e[9] !== l.text ? (p = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: l.text, isDisabled: !0, variant: "compact" }) }), e[9] = l.text, e[10] = p) : p = e[10], p;
811
+ let h;
812
+ return e[9] !== n.text ? (h = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: n.text, isDisabled: !0, variant: "compact" }) }), e[9] = n.text, e[10] = h) : h = e[10], h;
756
813
  }
757
814
  let d;
758
- e[11] !== l || e[12] !== r ? (d = r?.(l) ?? !1, e[11] = l, e[12] = r, e[13] = d) : d = e[13];
759
- const h = d, g = l.text;
815
+ e[11] !== n || e[12] !== o ? (d = o?.(n) ?? !1, e[11] = n, e[12] = o, e[13] = d) : d = e[13];
816
+ const u = d, g = n.text;
760
817
  let f;
761
- if (e[14] !== t || e[15] !== a || e[16] !== o || e[17] !== r) {
762
- let p;
763
- e[19] !== t || e[20] !== o || e[21] !== r ? (p = (m, x) => /* @__PURE__ */ i(et, { item: m, activeLink: t, onSelectLink: o, shouldStartOpen: r }, `${m.text}-${m.link ?? x}`), e[19] = t, e[20] = o, e[21] = r, e[22] = p) : p = e[22], f = a.map(p), e[14] = t, e[15] = a, e[16] = o, e[17] = r, e[18] = f;
818
+ if (e[14] !== t || e[15] !== a || e[16] !== r || e[17] !== o) {
819
+ let h;
820
+ e[19] !== t || e[20] !== r || e[21] !== o ? (h = (m, x) => /* @__PURE__ */ i(kt, { item: m, activeLink: t, onSelectLink: r, shouldStartOpen: o }, `${m.text}-${m.link ?? x}`), e[19] = t, e[20] = r, e[21] = o, e[22] = h) : h = e[22], f = a.map(h), e[14] = t, e[15] = a, e[16] = r, e[17] = o, e[18] = f;
764
821
  } else
765
822
  f = e[18];
766
- let u;
767
- return e[23] !== h || e[24] !== l.text || e[25] !== f ? (u = /* @__PURE__ */ i(cl, { title: g, defaultOpen: h, children: f }), e[23] = h, e[24] = l.text, e[25] = f, e[26] = u) : u = e[26], u;
768
- }, Dn = (n) => {
769
- const e = $(9), {
770
- title: l,
823
+ let p;
824
+ return e[23] !== u || e[24] !== n.text || e[25] !== f ? (p = /* @__PURE__ */ i(Mn, { title: g, defaultOpen: u, children: f }), e[23] = u, e[24] = n.text, e[25] = f, e[26] = p) : p = e[26], p;
825
+ }, Mi = (l) => {
826
+ const e = A(9), {
827
+ title: n,
771
828
  emptyMessage: t,
772
- menuItems: o,
773
- activeLink: r,
829
+ menuItems: r,
830
+ activeLink: o,
774
831
  onSelectLink: s,
775
832
  shouldStartOpen: a
776
- } = n;
833
+ } = l;
777
834
  let c;
778
- e[0] !== r || e[1] !== t || e[2] !== o || e[3] !== s || e[4] !== a ? (c = o.length === 0 ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : o.map((h, g) => /* @__PURE__ */ i(et, { item: h, activeLink: r, onSelectLink: s, shouldStartOpen: a }, `${h.text}-${h.link ?? g}`)), e[0] = r, e[1] = t, e[2] = o, e[3] = s, e[4] = a, e[5] = c) : c = e[5];
835
+ e[0] !== o || e[1] !== t || e[2] !== r || e[3] !== s || e[4] !== a ? (c = r.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : r.map((u, g) => /* @__PURE__ */ i(kt, { item: u, activeLink: o, onSelectLink: s, shouldStartOpen: a }, `${u.text}-${u.link ?? g}`)), e[0] = o, e[1] = t, e[2] = r, e[3] = s, e[4] = a, e[5] = c) : c = e[5];
779
836
  let d;
780
- return e[6] !== c || e[7] !== l ? (d = /* @__PURE__ */ i(gl, { title: l, variant: "compact", children: c }), e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
837
+ return e[6] !== c || e[7] !== n ? (d = /* @__PURE__ */ i(Wn, { title: n, variant: "compact", children: c }), e[6] = c, e[7] = n, e[8] = d) : d = e[8], d;
781
838
  };
782
- class Ln extends yt {
839
+ class Ni extends Ut {
783
840
  state = {
784
841
  error: null
785
842
  };
@@ -788,8 +845,8 @@ class Ln extends yt {
788
845
  error: e
789
846
  };
790
847
  }
791
- componentDidCatch(e, l) {
792
- console.error("Dashboard error boundary caught an error", e, l);
848
+ componentDidCatch(e, n) {
849
+ console.error("Dashboard error boundary caught an error", e, n);
793
850
  }
794
851
  handleReset = () => {
795
852
  this.setState({
@@ -799,971 +856,1778 @@ class Ln extends yt {
799
856
  render() {
800
857
  const {
801
858
  children: e,
802
- fallback: l,
859
+ fallback: n,
803
860
  label: t
804
861
  } = this.props, {
805
- error: o
862
+ error: r
806
863
  } = this.state;
807
- return o ? l || /* @__PURE__ */ i(ul, { error: o, label: t, onReset: this.handleReset }) : e;
864
+ return r ? n || /* @__PURE__ */ i(Fn, { error: r, label: t, onReset: this.handleReset }) : e;
808
865
  }
809
866
  }
810
- const ul = (n) => {
811
- const e = $(12), {
812
- error: l,
867
+ const Fn = (l) => {
868
+ const e = A(12), {
869
+ error: n,
813
870
  label: t,
814
- onReset: o
815
- } = n, r = t ?? "Something went wrong";
871
+ onReset: r
872
+ } = l, o = t ?? "Something went wrong";
816
873
  let s;
817
- e[0] !== r ? (s = /* @__PURE__ */ i(C, { textStyle: "paragraph/M/medium", children: r }), e[0] = r, e[1] = s) : s = e[1];
818
- const a = l.message || "An unexpected error occurred while rendering this section.";
874
+ e[0] !== o ? (s = /* @__PURE__ */ i($, { textStyle: "paragraph/M/medium", children: o }), e[0] = o, e[1] = s) : s = e[1];
875
+ const a = n.message || "An unexpected error occurred while rendering this section.";
819
876
  let c;
820
- e[2] !== a ? (c = /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
877
+ e[2] !== a ? (c = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
821
878
  let d;
822
- e[4] !== o ? (d = o ? /* @__PURE__ */ i(ue, { size: "sm", variant: "solid", colorScheme: "black", onClick: o, children: "Try again" }) : null, e[4] = o, e[5] = d) : d = e[5];
823
- let h;
824
- e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ b(D, { gap: "sm", children: [
879
+ e[4] !== r ? (d = r ? /* @__PURE__ */ i(de, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
880
+ let u;
881
+ e[6] !== c || e[7] !== d ? (u = /* @__PURE__ */ b(G, { gap: "sm", children: [
825
882
  c,
826
883
  d
827
- ] }), e[6] = c, e[7] = d, e[8] = h) : h = e[8];
884
+ ] }), e[6] = c, e[7] = d, e[8] = u) : u = e[8];
828
885
  let g;
829
- return e[9] !== s || e[10] !== h ? (g = /* @__PURE__ */ i(Ut, { height: "100%", width: "100%", children: /* @__PURE__ */ i(ft, { children: /* @__PURE__ */ i(Yt, { status: "error", title: s, children: h }) }) }), e[9] = s, e[10] = h, e[11] = g) : g = e[11], g;
830
- }, pl = (n) => n.isDirectory ? n.isGitRepo ? $t : Tt : Oe, ml = (n) => {
831
- const e = $(18), {
832
- entry: l,
886
+ return e[9] !== s || e[10] !== u ? (g = /* @__PURE__ */ i(wn, { height: "100%", width: "100%", children: /* @__PURE__ */ i(Nt, { children: /* @__PURE__ */ i(Cn, { status: "error", title: s, children: u }) }) }), e[9] = s, e[10] = u, e[11] = g) : g = e[11], g;
887
+ }, Bn = (l) => l.isDirectory ? l.isGitRepo ? Zt : en : qe, Vn = (l) => {
888
+ const e = A(18), {
889
+ entry: n,
833
890
  selectedPath: t,
834
- selectedPathSet: o,
835
- onEntryClick: r
836
- } = n;
891
+ selectedPathSet: r,
892
+ onEntryClick: o
893
+ } = l;
837
894
  let s;
838
- e[0] !== l.isGitRepo || e[1] !== l.path || e[2] !== o ? (s = l.isGitRepo && o.has(l.path), e[0] = l.isGitRepo, e[1] = l.path, e[2] = o, e[3] = s) : s = e[3];
839
- const a = s, c = !l.isDirectory || a;
895
+ e[0] !== n.isGitRepo || e[1] !== n.path || e[2] !== r ? (s = n.isGitRepo && r.has(n.path), e[0] = n.isGitRepo, e[1] = n.path, e[2] = r, e[3] = s) : s = e[3];
896
+ const a = s, c = !n.isDirectory || a;
840
897
  let d;
841
- e[4] !== l || e[5] !== a || e[6] !== r ? (d = () => {
842
- a || r(l);
843
- }, e[4] = l, e[5] = a, e[6] = r, e[7] = d) : d = e[7];
844
- const h = d, g = l.name;
898
+ e[4] !== n || e[5] !== a || e[6] !== o ? (d = () => {
899
+ a || o(n);
900
+ }, e[4] = n, e[5] = a, e[6] = o, e[7] = d) : d = e[7];
901
+ const u = d, g = n.name;
845
902
  let f;
846
- e[8] !== l ? (f = pl(l), e[8] = l, e[9] = f) : f = e[9];
847
- const u = l.isGitRepo ? "Git repo" : void 0, p = l.isGitRepo ? "green" : void 0, m = t === l.path;
903
+ e[8] !== n ? (f = Bn(n), e[8] = n, e[9] = f) : f = e[9];
904
+ const p = n.isGitRepo ? "Git repo" : void 0, h = n.isGitRepo ? "green" : void 0, m = t === n.path;
848
905
  let x;
849
- return e[10] !== l.name || e[11] !== h || e[12] !== c || e[13] !== f || e[14] !== u || e[15] !== p || e[16] !== m ? (x = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: g, leftIcon: f, tagLabel: u, tagColorPalette: p, isDisabled: c, isSelected: m, width: "100%", maxWidth: "100%", onClick: h }) }), e[10] = l.name, e[11] = h, e[12] = c, e[13] = f, e[14] = u, e[15] = p, e[16] = m, e[17] = x) : x = e[17], x;
850
- }, En = (n) => {
851
- const e = $(54), {
852
- open: l,
906
+ return e[10] !== n.name || e[11] !== u || e[12] !== c || e[13] !== f || e[14] !== p || e[15] !== h || e[16] !== m ? (x = /* @__PURE__ */ i(le.Root, { children: /* @__PURE__ */ i(We, { primaryLabel: g, leftIcon: f, tagLabel: p, tagColorPalette: h, isDisabled: c, isSelected: m, width: "100%", maxWidth: "100%", onClick: u }) }), e[10] = n.name, e[11] = u, e[12] = c, e[13] = f, e[14] = p, e[15] = h, e[16] = m, e[17] = x) : x = e[17], x;
907
+ }, Hi = (l) => {
908
+ const e = A(54), {
909
+ open: n,
853
910
  title: t,
854
- description: o,
855
- currentPath: r,
911
+ description: r,
912
+ currentPath: o,
856
913
  entries: s,
857
914
  selectedPath: a,
858
915
  selectedPaths: c,
859
916
  isLoading: d,
860
- error: h,
917
+ error: u,
861
918
  isSelectDisabled: g,
862
919
  onClose: f,
863
- onSelect: u,
864
- onSelectHomeDirectory: p,
920
+ onSelect: p,
921
+ onSelectHomeDirectory: h,
865
922
  onSelectParentDirectory: m,
866
923
  onEntryClick: x
867
- } = n, S = t === void 0 ? "Select folder" : t, y = r === void 0 ? "" : r, v = a === void 0 ? null : a;
868
- let k;
869
- e[0] !== c ? (k = c === void 0 ? [] : c, e[0] = c, e[1] = k) : k = e[1];
870
- const P = k, I = d === void 0 ? !1 : d, w = h === void 0 ? "" : h, T = g === void 0 ? !1 : g;
871
- let R;
872
- e[2] !== P ? (R = new Set(P), e[2] = P, e[3] = R) : R = e[3];
873
- const z = R;
924
+ } = l, y = t === void 0 ? "Select folder" : t, I = o === void 0 ? "" : o, k = a === void 0 ? null : a;
925
+ let P;
926
+ e[0] !== c ? (P = c === void 0 ? [] : c, e[0] = c, e[1] = P) : P = e[1];
927
+ const D = P, T = d === void 0 ? !1 : d, _ = u === void 0 ? "" : u, S = g === void 0 ? !1 : g;
928
+ let C;
929
+ e[2] !== D ? (C = new Set(D), e[2] = D, e[3] = C) : C = e[3];
930
+ const w = C;
931
+ let v;
932
+ e[4] !== f ? (v = (ie) => !ie.open && f(), e[4] = f, e[5] = v) : v = e[5];
933
+ let E;
934
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ i(se.Backdrop, {}), e[6] = E) : E = e[6];
874
935
  let L;
875
- e[4] !== f ? (L = (le) => !le.open && f(), e[4] = f, e[5] = L) : L = e[5];
936
+ e[7] !== y ? (L = /* @__PURE__ */ i($, { textStyle: "heading/M", children: y }), e[7] = y, e[8] = L) : L = e[8];
937
+ let z;
938
+ e[9] !== r ? (z = r ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = z) : z = e[10];
876
939
  let O;
877
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ i(J.Backdrop, {}), e[6] = O) : O = e[6];
878
- let N;
879
- e[7] !== S ? (N = /* @__PURE__ */ i(C, { textStyle: "heading/M", children: S }), e[7] = S, e[8] = N) : N = e[8];
940
+ e[11] !== L || e[12] !== z ? (O = /* @__PURE__ */ i(se.Header, { children: /* @__PURE__ */ b(G, { gap: "xs", children: [
941
+ L,
942
+ z
943
+ ] }) }), e[11] = L, e[12] = z, e[13] = O) : O = e[13];
944
+ let W;
945
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(tn, { size: 16 }), e[14] = W) : W = e[14];
880
946
  let H;
881
- e[9] !== o ? (H = o ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: o }) : null, e[9] = o, e[10] = H) : H = e[10];
947
+ e[15] !== h ? (H = /* @__PURE__ */ i(de, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: h, children: W }), e[15] = h, e[16] = H) : H = e[16];
948
+ const B = !I || I === "/";
949
+ let N;
950
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ i(nn, { size: 16 }), e[17] = N) : N = e[17];
882
951
  let M;
883
- e[11] !== N || e[12] !== H ? (M = /* @__PURE__ */ i(J.Header, { children: /* @__PURE__ */ b(D, { gap: "xs", children: [
884
- N,
885
- H
886
- ] }) }), e[11] = N, e[12] = H, e[13] = M) : M = e[13];
887
- let B;
888
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ i(_t, { size: 16 }), e[14] = B) : B = e[14];
889
- let A;
890
- e[15] !== p ? (A = /* @__PURE__ */ i(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: p, children: B }), e[15] = p, e[16] = A) : A = e[16];
891
- const j = !y || y === "/";
892
- let _;
893
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Rt, { size: 16 }), e[17] = _) : _ = e[17];
894
- let G;
895
- e[18] !== m || e[19] !== j ? (G = /* @__PURE__ */ i(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: m, disabled: j, children: _ }), e[18] = m, e[19] = j, e[20] = G) : G = e[20];
896
- const Q = y || "Home";
952
+ e[18] !== m || e[19] !== B ? (M = /* @__PURE__ */ i(de, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: m, disabled: B, children: N }), e[18] = m, e[19] = B, e[20] = M) : M = e[20];
953
+ const R = I || "Home";
954
+ let F;
955
+ e[21] !== R ? (F = /* @__PURE__ */ i($, { "data-testid": "folder-picker-path", textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: R }), e[21] = R, e[22] = F) : F = e[22];
897
956
  let Y;
898
- e[21] !== Q ? (Y = /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: Q }), e[21] = Q, e[22] = Y) : Y = e[22];
899
- let X;
900
- e[23] !== A || e[24] !== G || e[25] !== Y ? (X = /* @__PURE__ */ b(D, { direction: "row", gap: "sm", align: "center", children: [
901
- A,
902
- G,
903
- Y
904
- ] }), e[23] = A, e[24] = G, e[25] = Y, e[26] = X) : X = e[26];
905
- let U;
906
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
957
+ e[23] !== H || e[24] !== M || e[25] !== F ? (Y = /* @__PURE__ */ b(G, { direction: "row", gap: "sm", align: "center", children: [
958
+ H,
959
+ M,
960
+ F
961
+ ] }), e[23] = H, e[24] = M, e[25] = F, e[26] = Y) : Y = e[26];
962
+ let q;
963
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = {
907
964
  padding: "sm"
908
- }, e[27] = U) : U = e[27];
909
- let Z;
910
- e[28] !== s || e[29] !== w || e[30] !== I || e[31] !== x || e[32] !== v || e[33] !== z ? (Z = /* @__PURE__ */ i(he, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: U, children: I ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : w ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "red.500", children: w }) : s.length === 0 ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(D, { gap: "xs", children: s.map((le) => /* @__PURE__ */ i(ml, { entry: le, selectedPath: v, selectedPathSet: z, onEntryClick: x }, le.path)) }) }), e[28] = s, e[29] = w, e[30] = I, e[31] = x, e[32] = v, e[33] = z, e[34] = Z) : Z = e[34];
911
- let te;
912
- e[35] !== X || e[36] !== Z ? (te = /* @__PURE__ */ i(J.Body, { children: /* @__PURE__ */ b(D, { gap: "md", children: [
913
- X,
914
- Z
915
- ] }) }), e[35] = X, e[36] = Z, e[37] = te) : te = e[37];
965
+ }, e[27] = q) : q = e[27];
966
+ let J;
967
+ e[28] !== s || e[29] !== _ || e[30] !== T || e[31] !== x || e[32] !== k || e[33] !== w ? (J = /* @__PURE__ */ i(Ce, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: q, children: T ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : _ ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "red.500", children: _ }) : s.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(G, { gap: "xs", children: s.map((ie) => /* @__PURE__ */ i(Vn, { entry: ie, selectedPath: k, selectedPathSet: w, onEntryClick: x }, ie.path)) }) }), e[28] = s, e[29] = _, e[30] = T, e[31] = x, e[32] = k, e[33] = w, e[34] = J) : J = e[34];
916
968
  let K;
917
- e[38] !== f ? (K = /* @__PURE__ */ i(ue, { variant: "outline", onClick: f, children: "Cancel" }), e[38] = f, e[39] = K) : K = e[39];
969
+ e[35] !== Y || e[36] !== J ? (K = /* @__PURE__ */ i(se.Body, { children: /* @__PURE__ */ b(G, { gap: "md", children: [
970
+ Y,
971
+ J
972
+ ] }) }), e[35] = Y, e[36] = J, e[37] = K) : K = e[37];
973
+ let Q;
974
+ e[38] !== f ? (Q = /* @__PURE__ */ i(de, { variant: "outline", onClick: f, children: "Cancel" }), e[38] = f, e[39] = Q) : Q = e[39];
975
+ let te;
976
+ e[40] !== S || e[41] !== p ? (te = /* @__PURE__ */ i(de, { onClick: p, disabled: S, children: "Select repository" }), e[40] = S, e[41] = p, e[42] = te) : te = e[42];
918
977
  let ee;
919
- e[40] !== T || e[41] !== u ? (ee = /* @__PURE__ */ i(ue, { onClick: u, disabled: T, children: "Select repository" }), e[40] = T, e[41] = u, e[42] = ee) : ee = e[42];
920
- let V;
921
- e[43] !== K || e[44] !== ee ? (V = /* @__PURE__ */ i(J.Footer, { children: /* @__PURE__ */ b(D, { direction: "row", gap: "sm", children: [
978
+ e[43] !== Q || e[44] !== te ? (ee = /* @__PURE__ */ i(se.Footer, { children: /* @__PURE__ */ b(G, { direction: "row", gap: "sm", children: [
979
+ Q,
980
+ te
981
+ ] }) }), e[43] = Q, e[44] = te, e[45] = ee) : ee = e[45];
982
+ let Z;
983
+ e[46] !== O || e[47] !== K || e[48] !== ee ? (Z = /* @__PURE__ */ i(se.Positioner, { children: /* @__PURE__ */ b(se.Content, { children: [
984
+ O,
922
985
  K,
923
986
  ee
924
- ] }) }), e[43] = K, e[44] = ee, e[45] = V) : V = e[45];
925
- let q;
926
- e[46] !== M || e[47] !== te || e[48] !== V ? (q = /* @__PURE__ */ i(J.Positioner, { children: /* @__PURE__ */ b(J.Content, { children: [
927
- M,
928
- te,
929
- V
930
- ] }) }), e[46] = M, e[47] = te, e[48] = V, e[49] = q) : q = e[49];
931
- let W;
932
- return e[50] !== l || e[51] !== q || e[52] !== L ? (W = /* @__PURE__ */ b(J.Root, { closeOnInteractOutside: !1, open: l, onOpenChange: L, children: [
933
- O,
934
- q
935
- ] }), e[50] = l, e[51] = q, e[52] = L, e[53] = W) : W = e[53], W;
987
+ ] }) }), e[46] = O, e[47] = K, e[48] = ee, e[49] = Z) : Z = e[49];
988
+ let U;
989
+ return e[50] !== n || e[51] !== Z || e[52] !== v ? (U = /* @__PURE__ */ b(se.Root, { closeOnInteractOutside: !1, open: n, onOpenChange: v, children: [
990
+ E,
991
+ Z
992
+ ] }), e[50] = n, e[51] = Z, e[52] = v, e[53] = U) : U = e[53], U;
936
993
  };
937
- function zn(n) {
938
- const e = $(6);
939
- let l, t;
940
- e[0] !== n ? ({
941
- children: l,
994
+ function Wi(l) {
995
+ const e = A(6);
996
+ let n, t;
997
+ e[0] !== l ? ({
998
+ children: n,
942
999
  ...t
943
- } = n, e[0] = n, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
944
- let o;
945
- return e[3] !== l || e[4] !== t ? (o = /* @__PURE__ */ i(F, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: l }), e[3] = l, e[4] = t, e[5] = o) : o = e[5], o;
1000
+ } = l, e[0] = l, e[1] = n, e[2] = t) : (n = e[1], t = e[2]);
1001
+ let r;
1002
+ return e[3] !== n || e[4] !== t ? (r = /* @__PURE__ */ i(X, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: n }), e[3] = n, e[4] = t, e[5] = r) : r = e[5], r;
946
1003
  }
947
- const bl = (n, e) => `${n.name}-${n.version ?? "unknown"}-${e}`, xl = (n) => n.version ? `${n.name} v${n.version}` : n.name, Hn = (n) => {
948
- const e = $(30), {
949
- notices: l,
1004
+ const jn = (l, e) => `${l.name}-${l.version ?? "unknown"}-${e}`, Xn = (l) => l.version ? `${l.name} v${l.version}` : l.name, Fi = (l) => {
1005
+ const e = A(30), {
1006
+ notices: n,
950
1007
  title: t,
951
- description: o,
952
- productName: r,
1008
+ description: r,
1009
+ productName: o,
953
1010
  productVersion: s,
954
1011
  generatedAt: a,
955
1012
  emptyTitle: c,
956
1013
  emptyDescription: d
957
- } = n, h = t === void 0 ? "Open Source and Third-Party Notices" : t, g = o === void 0 ? "This product includes software developed by the open source community." : o, f = c === void 0 ? "No third-party notices available" : c, u = d === void 0 ? "No third-party packages were included in this build." : d;
958
- let p;
959
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
1014
+ } = l, u = t === void 0 ? "Open Source and Third-Party Notices" : t, g = r === void 0 ? "This product includes software developed by the open source community." : r, f = c === void 0 ? "No third-party notices available" : c, p = d === void 0 ? "No third-party packages were included in this build." : d;
1015
+ let h;
1016
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
960
1017
  base: "md",
961
1018
  md: "xl"
962
- }, e[0] = p) : p = e[0];
1019
+ }, e[0] = h) : h = e[0];
963
1020
  let m;
964
- e[1] !== h ? (m = /* @__PURE__ */ i(C, { textStyle: "heading/L", children: h }), e[1] = h, e[2] = m) : m = e[2];
1021
+ e[1] !== u ? (m = /* @__PURE__ */ i($, { textStyle: "heading/L", children: u }), e[1] = u, e[2] = m) : m = e[2];
965
1022
  let x;
966
- e[3] !== g ? (x = /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = x) : x = e[4];
967
- let S;
968
- e[5] !== r ? (S = r ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
969
- "Product: ",
970
- r
971
- ] }) : null, e[5] = r, e[6] = S) : S = e[6];
1023
+ e[3] !== g ? (x = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = x) : x = e[4];
972
1024
  let y;
973
- e[7] !== s ? (y = s ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
1025
+ e[5] !== o ? (y = o ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
1026
+ "Product: ",
1027
+ o
1028
+ ] }) : null, e[5] = o, e[6] = y) : y = e[6];
1029
+ let I;
1030
+ e[7] !== s ? (I = s ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
974
1031
  "Version: ",
975
1032
  s
976
- ] }) : null, e[7] = s, e[8] = y) : y = e[8];
977
- let v;
978
- e[9] !== l.length ? (v = /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
979
- "Packages: ",
980
- l.length
981
- ] }), e[9] = l.length, e[10] = v) : v = e[10];
1033
+ ] }) : null, e[7] = s, e[8] = I) : I = e[8];
982
1034
  let k;
983
- e[11] !== a ? (k = a ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
1035
+ e[9] !== n.length ? (k = /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
1036
+ "Packages: ",
1037
+ n.length
1038
+ ] }), e[9] = n.length, e[10] = k) : k = e[10];
1039
+ let P;
1040
+ e[11] !== a ? (P = a ? /* @__PURE__ */ b($, { textStyle: "label/XS", color: "fg.muted", children: [
984
1041
  "Generated: ",
985
1042
  a
986
- ] }) : null, e[11] = a, e[12] = k) : k = e[12];
987
- let P;
988
- e[13] !== k || e[14] !== S || e[15] !== y || e[16] !== v ? (P = /* @__PURE__ */ b(F, { gap: "md", flexWrap: "wrap", children: [
989
- S,
1043
+ ] }) : null, e[11] = a, e[12] = P) : P = e[12];
1044
+ let D;
1045
+ e[13] !== P || e[14] !== y || e[15] !== I || e[16] !== k ? (D = /* @__PURE__ */ b(X, { gap: "md", flexWrap: "wrap", children: [
990
1046
  y,
991
- v,
992
- k
993
- ] }), e[13] = k, e[14] = S, e[15] = y, e[16] = v, e[17] = P) : P = e[17];
994
- let I;
995
- e[18] !== P || e[19] !== m || e[20] !== x ? (I = /* @__PURE__ */ b(D, { gap: "xs", children: [
996
- m,
997
- x,
1047
+ I,
1048
+ k,
998
1049
  P
999
- ] }), e[18] = P, e[19] = m, e[20] = x, e[21] = I) : I = e[21];
1000
- let w;
1001
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ i(gt, { borderColor: "border.muted" }), e[22] = w) : w = e[22];
1050
+ ] }), e[13] = P, e[14] = y, e[15] = I, e[16] = k, e[17] = D) : D = e[17];
1002
1051
  let T;
1003
- e[23] !== u || e[24] !== f || e[25] !== l ? (T = l.length === 0 ? /* @__PURE__ */ b(D, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1004
- /* @__PURE__ */ i(C, { textStyle: "label/L/medium", children: f }),
1005
- /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: u })
1006
- ] }) : /* @__PURE__ */ i(D, { gap: "md", children: l.map(Sl) }), e[23] = u, e[24] = f, e[25] = l, e[26] = T) : T = e[26];
1007
- let R;
1008
- return e[27] !== I || e[28] !== T ? (R = /* @__PURE__ */ b(D, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: p, gap: "lg", children: [
1009
- I,
1010
- w,
1011
- T
1012
- ] }), e[27] = I, e[28] = T, e[29] = R) : R = e[29], R;
1052
+ e[18] !== D || e[19] !== m || e[20] !== x ? (T = /* @__PURE__ */ b(G, { gap: "xs", children: [
1053
+ m,
1054
+ x,
1055
+ D
1056
+ ] }), e[18] = D, e[19] = m, e[20] = x, e[21] = T) : T = e[21];
1057
+ let _;
1058
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Ye, { borderColor: "border.muted" }), e[22] = _) : _ = e[22];
1059
+ let S;
1060
+ e[23] !== p || e[24] !== f || e[25] !== n ? (S = n.length === 0 ? /* @__PURE__ */ b(G, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1061
+ /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: f }),
1062
+ /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", children: p })
1063
+ ] }) : /* @__PURE__ */ i(G, { gap: "md", children: n.map(Un) }), e[23] = p, e[24] = f, e[25] = n, e[26] = S) : S = e[26];
1064
+ let C;
1065
+ return e[27] !== T || e[28] !== S ? (C = /* @__PURE__ */ b(G, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: h, gap: "lg", children: [
1066
+ T,
1067
+ _,
1068
+ S
1069
+ ] }), e[27] = T, e[28] = S, e[29] = C) : C = e[29], C;
1013
1070
  };
1014
- function Sl(n, e) {
1015
- return /* @__PURE__ */ i(E, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b(D, { gap: "sm", children: [
1016
- /* @__PURE__ */ b(D, { gap: "2xs", children: [
1017
- /* @__PURE__ */ i(C, { textStyle: "label/L/medium", children: xl(n) }),
1018
- /* @__PURE__ */ b(C, { textStyle: "label/S/regular", color: "fg.muted", children: [
1071
+ function Un(l, e) {
1072
+ return /* @__PURE__ */ i(V, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b(G, { gap: "sm", children: [
1073
+ /* @__PURE__ */ b(G, { gap: "2xs", children: [
1074
+ /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: Xn(l) }),
1075
+ /* @__PURE__ */ b($, { textStyle: "label/S/regular", color: "fg.muted", children: [
1019
1076
  "License: ",
1020
- n.license ?? "Unknown"
1077
+ l.license ?? "Unknown"
1021
1078
  ] })
1022
1079
  ] }),
1023
- n.copyright ? /* @__PURE__ */ i(C, { textStyle: "label/S/regular", color: "fg.muted", children: n.copyright }) : null,
1024
- (n.homepageUrl || n.sourceUrl) && /* @__PURE__ */ b(D, { gap: "2xs", children: [
1025
- n.homepageUrl ? /* @__PURE__ */ i(Be, { href: n.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1026
- n.sourceUrl ? /* @__PURE__ */ i(Be, { href: n.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1080
+ l.copyright ? /* @__PURE__ */ i($, { textStyle: "label/S/regular", color: "fg.muted", children: l.copyright }) : null,
1081
+ (l.homepageUrl || l.sourceUrl) && /* @__PURE__ */ b(G, { gap: "2xs", children: [
1082
+ l.homepageUrl ? /* @__PURE__ */ i(Ue, { href: l.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1083
+ l.sourceUrl ? /* @__PURE__ */ i(Ue, { href: l.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1027
1084
  ] }),
1028
- n.attribution ? /* @__PURE__ */ i(E, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ i(C, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: n.attribution }) }) : null
1029
- ] }) }, bl(n, e));
1085
+ l.attribution ? /* @__PURE__ */ i(V, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: l.attribution }) }) : null
1086
+ ] }) }, jn(l, e));
1030
1087
  }
1031
- const Nn = (n) => {
1032
- const e = $(4), {
1033
- items: l
1034
- } = n;
1088
+ const Bi = (l) => {
1089
+ const e = A(4), {
1090
+ items: n
1091
+ } = l;
1035
1092
  let t;
1036
- e[0] !== l ? (t = l.map(yl), e[0] = l, e[1] = t) : t = e[1];
1037
- let o;
1038
- return e[2] !== t ? (o = /* @__PURE__ */ i(D, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = o) : o = e[3], o;
1093
+ e[0] !== n ? (t = n.map(Yn), e[0] = n, e[1] = t) : t = e[1];
1094
+ let r;
1095
+ return e[2] !== t ? (r = /* @__PURE__ */ i(G, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
1039
1096
  };
1040
- function yl(n, e) {
1041
- return /* @__PURE__ */ b(F, { gap: "md", alignItems: "center", children: [
1042
- /* @__PURE__ */ i(E, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(F, { gap: "1", alignItems: "center", children: [
1043
- /* @__PURE__ */ i(C, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }),
1044
- n.description && /* @__PURE__ */ i(Ee, { content: n.description, showArrow: !0, children: /* @__PURE__ */ i(ne, { as: Dt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1097
+ function Yn(l, e) {
1098
+ return /* @__PURE__ */ b(X, { gap: "md", alignItems: "center", children: [
1099
+ /* @__PURE__ */ i(V, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(X, { gap: "1", alignItems: "center", children: [
1100
+ /* @__PURE__ */ i($, { textStyle: "label/S/medium", color: "fg.muted", children: l.label }),
1101
+ l.description && /* @__PURE__ */ i(Ee, { content: l.description, showArrow: !0, children: /* @__PURE__ */ i(oe, { as: ln, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1045
1102
  ] }) }),
1046
- /* @__PURE__ */ i(E, { flex: "1", children: n.value })
1047
- ] }, `${n.label}-${e}`);
1103
+ /* @__PURE__ */ i(V, { flex: "1", children: l.value })
1104
+ ] }, `${l.label}-${e}`);
1048
1105
  }
1049
- const vl = (n) => n === "completed" ? Lt : n === "failed" ? Et : zt, Cl = (n) => n === "completed" ? "fg.success" : n === "failed" ? "fg.error" : "fg.muted", wl = (n) => {
1050
- const e = $(11), {
1051
- status: l,
1106
+ const Kn = (l) => l === "completed" ? rn : l === "failed" ? on : sn, qn = (l) => l === "completed" ? "fg.success" : l === "failed" ? "fg.error" : "fg.muted", Jn = (l) => {
1107
+ const e = A(11), {
1108
+ status: n,
1052
1109
  boxSize: t,
1053
- ariaLabel: o,
1054
- cursor: r,
1110
+ ariaLabel: r,
1111
+ cursor: o,
1055
1112
  onClick: s
1056
- } = n, a = t === void 0 ? "14px" : t, c = o === void 0 ? "Session status" : o;
1113
+ } = l, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
1057
1114
  let d;
1058
- e[0] !== l ? (d = vl(l), e[0] = l, e[1] = d) : d = e[1];
1059
- let h;
1060
- e[2] !== l ? (h = Cl(l), e[2] = l, e[3] = h) : h = e[3];
1115
+ e[0] !== n ? (d = Kn(n), e[0] = n, e[1] = d) : d = e[1];
1116
+ let u;
1117
+ e[2] !== n ? (u = qn(n), e[2] = n, e[3] = u) : u = e[3];
1061
1118
  let g;
1062
- return e[4] !== c || e[5] !== a || e[6] !== r || e[7] !== s || e[8] !== d || e[9] !== h ? (g = /* @__PURE__ */ i(ne, { as: d, boxSize: a, color: h, "aria-label": c, cursor: r, onClick: s }), e[4] = c, e[5] = a, e[6] = r, e[7] = s, e[8] = d, e[9] = h, e[10] = g) : g = e[10], g;
1063
- }, tt = (n, e) => e.includes(n), kl = (n) => {
1064
- const e = $(18), {
1065
- action: l,
1119
+ return e[4] !== c || e[5] !== a || e[6] !== o || e[7] !== s || e[8] !== d || e[9] !== u ? (g = /* @__PURE__ */ i(oe, { as: d, boxSize: a, color: u, "aria-label": c, cursor: o, onClick: s }), e[4] = c, e[5] = a, e[6] = o, e[7] = s, e[8] = d, e[9] = u, e[10] = g) : g = e[10], g;
1120
+ }, Pt = (l, e) => e.includes(l), Qn = (l) => {
1121
+ const e = A(18), {
1122
+ action: n,
1066
1123
  sectionId: t,
1067
- nodeId: o
1068
- } = n;
1069
- if (l.menuItems && l.menuItems.length > 0) {
1124
+ nodeId: r
1125
+ } = l;
1126
+ if (n.menuItems && n.menuItems.length > 0) {
1070
1127
  let a;
1071
- e[0] !== l.icon || e[1] !== l.label ? (a = /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(_e, { variant: "ghost", size: "2xs", "aria-label": l.label, children: l.icon }) }), e[0] = l.icon, e[1] = l.label, e[2] = a) : a = e[2];
1128
+ e[0] !== n.icon || e[1] !== n.label ? (a = /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, children: n.icon }) }), e[0] = n.icon, e[1] = n.label, e[2] = a) : a = e[2];
1072
1129
  let c;
1073
- e[3] !== l.menuItems ? (c = l.menuItems.map(Pl), e[3] = l.menuItems, e[4] = c) : c = e[4];
1130
+ e[3] !== n.menuItems ? (c = n.menuItems.map(el), e[3] = n.menuItems, e[4] = c) : c = e[4];
1074
1131
  let d;
1075
- e[5] !== c ? (d = /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "160px", bg: "bg", children: c }) }), e[5] = c, e[6] = d) : d = e[6];
1076
- let h;
1077
- return e[7] !== a || e[8] !== d ? (h = /* @__PURE__ */ b(ie.Root, { children: [
1132
+ e[5] !== c ? (d = /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "160px", bg: "bg", children: c }) }), e[5] = c, e[6] = d) : d = e[6];
1133
+ let u;
1134
+ return e[7] !== a || e[8] !== d ? (u = /* @__PURE__ */ b(le.Root, { children: [
1078
1135
  a,
1079
1136
  d
1080
- ] }), e[7] = a, e[8] = d, e[9] = h) : h = e[9], h;
1137
+ ] }), e[7] = a, e[8] = d, e[9] = u) : u = e[9], u;
1081
1138
  }
1082
- let r;
1083
- e[10] !== l || e[11] !== o || e[12] !== t ? (r = (a) => {
1084
- a.stopPropagation(), l.onAction?.({
1139
+ let o;
1140
+ e[10] !== n || e[11] !== r || e[12] !== t ? (o = (a) => {
1141
+ a.stopPropagation(), n.onAction?.({
1085
1142
  sectionId: t,
1086
- nodeId: o
1143
+ nodeId: r
1087
1144
  });
1088
- }, e[10] = l, e[11] = o, e[12] = t, e[13] = r) : r = e[13];
1145
+ }, e[10] = n, e[11] = r, e[12] = t, e[13] = o) : o = e[13];
1089
1146
  let s;
1090
- return e[14] !== l.icon || e[15] !== l.label || e[16] !== r ? (s = /* @__PURE__ */ i(_e, { variant: "ghost", size: "2xs", "aria-label": l.label, onClick: r, children: l.icon }), e[14] = l.icon, e[15] = l.label, e[16] = r, e[17] = s) : s = e[17], s;
1091
- }, lt = (n) => {
1092
- const e = $(11), {
1093
- sectionId: l,
1147
+ return e[14] !== n.icon || e[15] !== n.label || e[16] !== o ? (s = /* @__PURE__ */ i(Se, { variant: "ghost", size: "2xs", "aria-label": n.label, onClick: o, children: n.icon }), e[14] = n.icon, e[15] = n.label, e[16] = o, e[17] = s) : s = e[17], s;
1148
+ }, Je = (l) => {
1149
+ const e = A(11), {
1150
+ sectionId: n,
1094
1151
  nodeId: t,
1095
- actions: o
1096
- } = n;
1097
- if (o.length === 0)
1152
+ actions: r
1153
+ } = l;
1154
+ if (r.length === 0)
1098
1155
  return null;
1099
- let r, s;
1100
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
1156
+ let o, s;
1157
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
1101
1158
  opacity: "1",
1102
1159
  pointerEvents: "auto"
1103
1160
  }, s = {
1104
1161
  opacity: "1",
1105
1162
  pointerEvents: "auto"
1106
- }, e[0] = r, e[1] = s) : (r = e[0], s = e[1]);
1163
+ }, e[0] = o, e[1] = s) : (o = e[0], s = e[1]);
1107
1164
  let a;
1108
- if (e[2] !== o || e[3] !== t || e[4] !== l) {
1165
+ if (e[2] !== r || e[3] !== t || e[4] !== n) {
1109
1166
  let d;
1110
- e[6] !== t || e[7] !== l ? (d = (h) => /* @__PURE__ */ i(kl, { action: h, sectionId: l, nodeId: t }, h.id), e[6] = t, e[7] = l, e[8] = d) : d = e[8], a = o.map(d), e[2] = o, e[3] = t, e[4] = l, e[5] = a;
1167
+ e[6] !== t || e[7] !== n ? (d = (u) => /* @__PURE__ */ i(Qn, { action: u, sectionId: n, nodeId: t }, u.id), e[6] = t, e[7] = n, e[8] = d) : d = e[8], a = r.map(d), e[2] = r, e[3] = t, e[4] = n, e[5] = a;
1111
1168
  } else
1112
1169
  a = e[5];
1113
1170
  let c;
1114
- return e[9] !== a ? (c = /* @__PURE__ */ i(F, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: r, _groupFocusWithin: s, transition: "opacity 120ms ease", onClick: $l, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1115
- }, nt = (n) => {
1116
- const e = $(61), {
1117
- sectionId: l,
1171
+ return e[9] !== a ? (c = /* @__PURE__ */ i(X, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: o, _groupFocusWithin: s, transition: "opacity 120ms ease", onClick: tl, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1172
+ }, Tt = (l) => {
1173
+ const e = A(63), {
1174
+ sectionId: n,
1118
1175
  node: t,
1119
- level: o,
1120
- expandedNodes: r,
1176
+ level: r,
1177
+ expandedNodes: o,
1121
1178
  activeNodeId: s,
1122
- onNavigate: a,
1123
- onToggleNode: c
1124
- } = n, d = (t.children?.length ?? 0) > 0;
1125
- let h;
1126
- e[0] !== r || e[1] !== d || e[2] !== t.id ? (h = d && tt(t.id, r), e[0] = r, e[1] = d, e[2] = t.id, e[3] = h) : h = e[3];
1127
- const g = h, f = t.isNavigable || t.navigationIntent !== void 0, u = s === t.id, p = t.disabled === !0, m = o > 0 ? `calc(var(--chakra-spacing-1) + ${o} * var(--chakra-spacing-3))` : void 0;
1128
- let x;
1129
- e[4] !== d || e[5] !== p || e[6] !== f || e[7] !== t || e[8] !== a || e[9] !== c || e[10] !== l ? (x = () => {
1130
- if (!p) {
1131
- if (d) {
1132
- c(t.id);
1179
+ linkComponent: a,
1180
+ onNavigate: c,
1181
+ onToggleNode: d
1182
+ } = l, u = (t.children?.length ?? 0) > 0;
1183
+ let g;
1184
+ e[0] !== o || e[1] !== u || e[2] !== t.id ? (g = u && Pt(t.id, o), e[0] = o, e[1] = u, e[2] = t.id, e[3] = g) : g = e[3];
1185
+ const f = g, p = t.isNavigable || t.navigationIntent !== void 0, h = s === t.id, m = t.disabled === !0, x = r > 0 ? `calc(var(--chakra-spacing-1) + ${r} * var(--chakra-spacing-3))` : void 0, y = !!(a && t.href && p && !u && !m);
1186
+ let I;
1187
+ e[4] !== u || e[5] !== m || e[6] !== p || e[7] !== t || e[8] !== c || e[9] !== d || e[10] !== n ? (I = () => {
1188
+ if (!m) {
1189
+ if (u) {
1190
+ d(t.id);
1133
1191
  return;
1134
1192
  }
1135
- f && a?.({
1136
- sectionId: l,
1193
+ p && c?.({
1194
+ sectionId: n,
1137
1195
  nodeId: t.id,
1138
1196
  node: t,
1139
1197
  intent: t.navigationIntent
1140
1198
  });
1141
1199
  }
1142
- }, e[4] = d, e[5] = p, e[6] = f, e[7] = t, e[8] = a, e[9] = c, e[10] = l, e[11] = x) : x = e[11];
1143
- const S = x, y = t.children ? "0" : "2xs", v = u ? "bg.muted" : "transparent", k = u ? "bg.muted" : "bg.subtle";
1200
+ }, e[4] = u, e[5] = m, e[6] = p, e[7] = t, e[8] = c, e[9] = d, e[10] = n, e[11] = I) : I = e[11];
1201
+ const k = I;
1144
1202
  let P;
1145
- e[12] !== k ? (P = {
1146
- bg: k
1147
- }, e[12] = k, e[13] = P) : P = e[13];
1148
- const I = p ? "default" : "pointer";
1149
- let w;
1150
- e[14] !== t.icon ? (w = t.icon ? /* @__PURE__ */ i(E, { color: "fg.muted", flexShrink: 0, children: t.icon }) : null, e[14] = t.icon, e[15] = w) : w = e[15];
1151
- const T = p ? "fg.muted" : "fg";
1152
- let R;
1153
- e[16] !== t.label || e[17] !== T ? (R = /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: T, truncate: !0, children: t.label }), e[16] = t.label, e[17] = T, e[18] = R) : R = e[18];
1154
- let z;
1155
- e[19] !== g || e[20] !== d ? (z = d ? /* @__PURE__ */ i(E, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(me, { size: 14, style: {
1156
- transform: g ? "rotate(90deg)" : "rotate(0deg)",
1203
+ e[12] !== t.icon ? (P = t.icon ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: t.icon }) : null, e[12] = t.icon, e[13] = P) : P = e[13];
1204
+ const D = m ? "fg.muted" : "fg";
1205
+ let T;
1206
+ e[14] !== t.label || e[15] !== D ? (T = /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: D, truncate: !0, children: t.label }), e[14] = t.label, e[15] = D, e[16] = T) : T = e[16];
1207
+ let _;
1208
+ e[17] !== f || e[18] !== u ? (_ = u ? /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(ye, { size: 14, style: {
1209
+ transform: f ? "rotate(90deg)" : "rotate(0deg)",
1157
1210
  transition: "120ms"
1158
- } }) }) : null, e[19] = g, e[20] = d, e[21] = z) : z = e[21];
1159
- let L;
1160
- e[22] !== z || e[23] !== R ? (L = /* @__PURE__ */ b(F, { gap: "1", minW: "0", children: [
1161
- R,
1162
- z
1163
- ] }), e[22] = z, e[23] = R, e[24] = L) : L = e[24];
1211
+ } }) }) : null, e[17] = f, e[18] = u, e[19] = _) : _ = e[19];
1212
+ let S;
1213
+ e[20] !== T || e[21] !== _ ? (S = /* @__PURE__ */ b(X, { gap: "1", minW: "0", children: [
1214
+ T,
1215
+ _
1216
+ ] }), e[20] = T, e[21] = _, e[22] = S) : S = e[22];
1217
+ let C;
1218
+ e[23] !== t.description ? (C = t.description ? /* @__PURE__ */ i($, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[23] = t.description, e[24] = C) : C = e[24];
1219
+ let w;
1220
+ e[25] !== S || e[26] !== C ? (w = /* @__PURE__ */ b(G, { gap: "0", minW: "0", flex: "1", children: [
1221
+ S,
1222
+ C
1223
+ ] }), e[25] = S, e[26] = C, e[27] = w) : w = e[27];
1224
+ let v;
1225
+ e[28] !== P || e[29] !== w ? (v = /* @__PURE__ */ b(X, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1226
+ P,
1227
+ w
1228
+ ] }), e[28] = P, e[29] = w, e[30] = v) : v = e[30];
1229
+ const E = v, L = h ? "bg.muted" : "transparent", z = h ? "bg.muted" : "bg.subtle";
1164
1230
  let O;
1165
- e[25] !== t.description ? (O = t.description ? /* @__PURE__ */ i(C, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[25] = t.description, e[26] = O) : O = e[26];
1166
- let N;
1167
- e[27] !== L || e[28] !== O ? (N = /* @__PURE__ */ b(D, { gap: "0", minW: "0", flex: "1", children: [
1168
- L,
1169
- O
1170
- ] }), e[27] = L, e[28] = O, e[29] = N) : N = e[29];
1231
+ e[31] !== z ? (O = {
1232
+ bg: z
1233
+ }, e[31] = z, e[32] = O) : O = e[32];
1234
+ const W = m ? "default" : "pointer";
1171
1235
  let H;
1172
- e[30] !== N || e[31] !== w ? (H = /* @__PURE__ */ b(F, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1173
- w,
1174
- N
1175
- ] }), e[30] = N, e[31] = w, e[32] = H) : H = e[32];
1236
+ e[33] !== h || e[34] !== x || e[35] !== L || e[36] !== O || e[37] !== W ? (H = {
1237
+ className: "group",
1238
+ role: "option",
1239
+ "aria-selected": h,
1240
+ justify: "space-between",
1241
+ align: "center",
1242
+ borderRadius: "xs",
1243
+ px: "1",
1244
+ py: "2xs",
1245
+ pl: x,
1246
+ bg: L,
1247
+ _hover: O,
1248
+ cursor: W,
1249
+ overflow: "hidden"
1250
+ }, e[33] = h, e[34] = x, e[35] = L, e[36] = O, e[37] = W, e[38] = H) : H = e[38];
1251
+ const B = H, N = t.children ? "0" : "2xs";
1176
1252
  let M;
1177
- e[33] !== t.actions ? (M = t.actions ?? [], e[33] = t.actions, e[34] = M) : M = e[34];
1178
- let B;
1179
- e[35] !== t.id || e[36] !== l || e[37] !== M ? (B = /* @__PURE__ */ i(lt, { sectionId: l, nodeId: t.id, actions: M }), e[35] = t.id, e[36] = l, e[37] = M, e[38] = B) : B = e[38];
1180
- let A;
1181
- e[39] !== S || e[40] !== u || e[41] !== m || e[42] !== H || e[43] !== B || e[44] !== v || e[45] !== P || e[46] !== I ? (A = /* @__PURE__ */ b(F, { className: "group", role: "option", "aria-selected": u, justify: "space-between", align: "center", borderRadius: "xs", px: "1", py: "2xs", pl: m, bg: v, _hover: P, cursor: I, onClick: S, overflow: "hidden", children: [
1182
- H,
1183
- B
1184
- ] }), e[39] = S, e[40] = u, e[41] = m, e[42] = H, e[43] = B, e[44] = v, e[45] = P, e[46] = I, e[47] = A) : A = e[47];
1185
- let j;
1186
- e[48] !== s || e[49] !== g || e[50] !== r || e[51] !== o || e[52] !== t.children || e[53] !== a || e[54] !== c || e[55] !== l ? (j = g ? t.children?.map((G) => /* @__PURE__ */ i(nt, { sectionId: l, node: G, level: o + 1, expandedNodes: r, activeNodeId: s, onNavigate: a, onToggleNode: c }, G.id)) : null, e[48] = s, e[49] = g, e[50] = r, e[51] = o, e[52] = t.children, e[53] = a, e[54] = c, e[55] = l, e[56] = j) : j = e[56];
1187
- let _;
1188
- return e[57] !== A || e[58] !== j || e[59] !== y ? (_ = /* @__PURE__ */ b(D, { gap: y, children: [
1189
- A,
1190
- j
1191
- ] }), e[57] = A, e[58] = j, e[59] = y, e[60] = _) : _ = e[60], _;
1192
- }, Il = (n) => {
1193
- const e = $(17), {
1194
- sections: l,
1253
+ e[39] !== a || e[40] !== y || e[41] !== k || e[42] !== t.actions || e[43] !== t.href || e[44] !== t.id || e[45] !== E || e[46] !== B || e[47] !== n ? (M = y && a && t.href ? /* @__PURE__ */ i(a, { to: t.href, children: /* @__PURE__ */ b(X, { ...B, onClick: k, children: [
1254
+ E,
1255
+ /* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1256
+ ] }) }) : /* @__PURE__ */ b(X, { ...B, onClick: k, children: [
1257
+ E,
1258
+ /* @__PURE__ */ i(Je, { sectionId: n, nodeId: t.id, actions: t.actions ?? [] })
1259
+ ] }), e[39] = a, e[40] = y, e[41] = k, e[42] = t.actions, e[43] = t.href, e[44] = t.id, e[45] = E, e[46] = B, e[47] = n, e[48] = M) : M = e[48];
1260
+ let R;
1261
+ e[49] !== a || e[50] !== s || e[51] !== f || e[52] !== o || e[53] !== r || e[54] !== t.children || e[55] !== c || e[56] !== d || e[57] !== n ? (R = f ? t.children?.map((Y) => /* @__PURE__ */ i(Tt, { sectionId: n, node: Y, level: r + 1, expandedNodes: o, activeNodeId: s, linkComponent: a, onNavigate: c, onToggleNode: d }, Y.id)) : null, e[49] = a, e[50] = s, e[51] = f, e[52] = o, e[53] = r, e[54] = t.children, e[55] = c, e[56] = d, e[57] = n, e[58] = R) : R = e[58];
1262
+ let F;
1263
+ return e[59] !== N || e[60] !== M || e[61] !== R ? (F = /* @__PURE__ */ b(G, { gap: N, children: [
1264
+ M,
1265
+ R
1266
+ ] }), e[59] = N, e[60] = M, e[61] = R, e[62] = F) : F = e[62], F;
1267
+ }, Zn = (l) => {
1268
+ const e = A(19), {
1269
+ sections: n,
1195
1270
  expandedSections: t,
1196
- expandedNodes: o,
1197
- activeNodeId: r,
1198
- onNavigate: s,
1199
- onToggleSection: a,
1200
- onToggleNode: c
1201
- } = n;
1202
- let d;
1203
- if (e[0] !== r || e[1] !== o || e[2] !== t || e[3] !== s || e[4] !== c || e[5] !== a || e[6] !== l) {
1204
- let g;
1205
- e[8] !== r || e[9] !== o || e[10] !== t || e[11] !== s || e[12] !== c || e[13] !== a ? (g = (f) => {
1206
- const u = f.label ? tt(f.id, t) : !0;
1207
- return /* @__PURE__ */ b(D, { gap: "0", children: [
1208
- f.label ? /* @__PURE__ */ b(F, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
1271
+ expandedNodes: r,
1272
+ activeNodeId: o,
1273
+ linkComponent: s,
1274
+ onNavigate: a,
1275
+ onToggleSection: c,
1276
+ onToggleNode: d
1277
+ } = l;
1278
+ let u;
1279
+ if (e[0] !== o || e[1] !== r || e[2] !== t || e[3] !== s || e[4] !== a || e[5] !== d || e[6] !== c || e[7] !== n) {
1280
+ let f;
1281
+ e[9] !== o || e[10] !== r || e[11] !== t || e[12] !== s || e[13] !== a || e[14] !== d || e[15] !== c ? (f = (p) => {
1282
+ const h = p.label ? Pt(p.id, t) : !0;
1283
+ return /* @__PURE__ */ b(G, { gap: "0", "data-testid": `sidebar-section-${p.id}`, children: [
1284
+ p.label ? /* @__PURE__ */ b(X, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
1209
1285
  bg: "bg.subtle"
1210
- }, onClick: () => a(f.id), children: [
1211
- /* @__PURE__ */ b(F, { gap: "1", flex: "1", minW: "0", children: [
1212
- /* @__PURE__ */ i(C, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: f.label }),
1213
- /* @__PURE__ */ i(E, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(me, { size: 14, style: {
1214
- transform: u ? "rotate(90deg)" : "rotate(0deg)",
1286
+ }, onClick: () => c(p.id), children: [
1287
+ /* @__PURE__ */ b(X, { gap: "1", flex: "1", minW: "0", children: [
1288
+ /* @__PURE__ */ i($, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: p.label }),
1289
+ /* @__PURE__ */ i(V, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(ye, { size: 14, style: {
1290
+ transform: h ? "rotate(90deg)" : "rotate(0deg)",
1215
1291
  transition: "120ms"
1216
1292
  } }) })
1217
1293
  ] }),
1218
- /* @__PURE__ */ i(lt, { sectionId: f.id, actions: f.actions ?? [] })
1294
+ /* @__PURE__ */ i(Je, { sectionId: p.id, actions: p.actions ?? [] })
1219
1295
  ] }) : null,
1220
- u ? f.nodes.length > 0 ? f.nodes.map((p) => /* @__PURE__ */ i(nt, { sectionId: f.id, node: p, level: 0, expandedNodes: o, activeNodeId: r, onNavigate: s, onToggleNode: c }, p.id)) : f.emptyState ?? null : null
1221
- ] }, f.id);
1222
- }, e[8] = r, e[9] = o, e[10] = t, e[11] = s, e[12] = c, e[13] = a, e[14] = g) : g = e[14], d = l.map(g), e[0] = r, e[1] = o, e[2] = t, e[3] = s, e[4] = c, e[5] = a, e[6] = l, e[7] = d;
1296
+ h ? p.nodes.length > 0 ? p.nodes.map((m) => /* @__PURE__ */ i(Tt, { sectionId: p.id, node: m, level: 0, expandedNodes: r, activeNodeId: o, linkComponent: s, onNavigate: a, onToggleNode: d }, m.id)) : p.emptyState ?? null : null
1297
+ ] }, p.id);
1298
+ }, e[9] = o, e[10] = r, e[11] = t, e[12] = s, e[13] = a, e[14] = d, e[15] = c, e[16] = f) : f = e[16], u = n.map(f), e[0] = o, e[1] = r, e[2] = t, e[3] = s, e[4] = a, e[5] = d, e[6] = c, e[7] = n, e[8] = u;
1223
1299
  } else
1224
- d = e[7];
1225
- let h;
1226
- return e[15] !== d ? (h = /* @__PURE__ */ i(D, { role: "listbox", gap: "md", p: "md", children: d }), e[15] = d, e[16] = h) : h = e[16], h;
1300
+ u = e[8];
1301
+ let g;
1302
+ return e[17] !== u ? (g = /* @__PURE__ */ i(G, { role: "listbox", gap: "md", p: "md", children: u }), e[17] = u, e[18] = g) : g = e[18], g;
1227
1303
  };
1228
- function Pl(n) {
1229
- return /* @__PURE__ */ b(ie.Item, { value: n.id, onClick: () => n.onAction?.(), children: [
1230
- n.icon ? /* @__PURE__ */ i(E, { mr: "2", children: n.icon }) : null,
1231
- n.label
1232
- ] }, n.id);
1304
+ function el(l) {
1305
+ return /* @__PURE__ */ i(Ee, { content: l.description, disabled: !l.description, openDelay: 300, children: /* @__PURE__ */ b(le.Item, { value: l.id, onClick: () => l.onAction?.(), children: [
1306
+ l.icon ? /* @__PURE__ */ i(V, { mr: "2", children: l.icon }) : null,
1307
+ l.label
1308
+ ] }) }, l.id);
1233
1309
  }
1234
- function $l(n) {
1235
- return n.stopPropagation();
1310
+ function tl(l) {
1311
+ return l.stopPropagation();
1236
1312
  }
1237
- const Fe = {
1313
+ const ot = {
1238
1314
  open: !0,
1239
1315
  expandedSections: [],
1240
1316
  expandedNodes: []
1241
- }, Tl = "pstdio/ui/sidebar-next", _l = (n) => `${Tl}/${n}`, Rl = () => ({
1317
+ }, nl = "pstdio/ui/sidebar-next", ll = (l) => `${nl}/${l}`, il = () => ({
1242
1318
  getItem: () => null,
1243
1319
  setItem: () => {
1244
1320
  },
1245
1321
  removeItem: () => {
1246
1322
  }
1247
- }), Ve = (n, e) => n.includes(e) ? n.filter((l) => l !== e) : [...n, e], Ye = (n, e, l) => l ? n.includes(e) ? n : [...n, e] : n.filter((t) => t !== e), Dl = (n) => ({
1248
- open: n.open,
1249
- expandedSections: n.expandedSections,
1250
- expandedNodes: n.expandedNodes
1251
- }), Ll = (n) => {
1323
+ }), st = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], at = (l, e, n) => n ? l.includes(e) ? l : [...l, e] : l.filter((t) => t !== e), rl = (l) => ({
1324
+ open: l.open,
1325
+ expandedSections: l.expandedSections,
1326
+ expandedNodes: l.expandedNodes
1327
+ }), ol = (l) => {
1252
1328
  const {
1253
1329
  storageKey: e,
1254
- initialState: l
1255
- } = n, t = {
1256
- ...Fe,
1257
- ...l
1330
+ initialState: n
1331
+ } = l, t = {
1332
+ ...ot,
1333
+ ...n
1258
1334
  };
1259
- return jt()(Bt((o) => ({
1335
+ return wt()(Ct((r) => ({
1260
1336
  ...t,
1261
- openSidebar: () => o((r) => ({
1262
- ...r,
1337
+ openSidebar: () => r((o) => ({
1338
+ ...o,
1263
1339
  open: !0
1264
1340
  })),
1265
- closeSidebar: () => o((r) => ({
1266
- ...r,
1341
+ closeSidebar: () => r((o) => ({
1342
+ ...o,
1267
1343
  open: !1
1268
1344
  })),
1269
- toggleSidebar: () => o((r) => ({
1270
- ...r,
1271
- open: !r.open
1345
+ toggleSidebar: () => r((o) => ({
1346
+ ...o,
1347
+ open: !o.open
1272
1348
  })),
1273
- toggleSection: (r) => o((s) => ({
1349
+ toggleSection: (o) => r((s) => ({
1274
1350
  ...s,
1275
- expandedSections: Ve(s.expandedSections, r)
1351
+ expandedSections: st(s.expandedSections, o)
1276
1352
  })),
1277
- toggleNode: (r) => o((s) => ({
1353
+ toggleNode: (o) => r((s) => ({
1278
1354
  ...s,
1279
- expandedNodes: Ve(s.expandedNodes, r)
1355
+ expandedNodes: st(s.expandedNodes, o)
1280
1356
  })),
1281
- setSectionExpanded: (r, s) => o((a) => ({
1357
+ setSectionExpanded: (o, s) => r((a) => ({
1282
1358
  ...a,
1283
- expandedSections: Ye(a.expandedSections, r, s)
1359
+ expandedSections: at(a.expandedSections, o, s)
1284
1360
  })),
1285
- setNodeExpanded: (r, s) => o((a) => ({
1361
+ setNodeExpanded: (o, s) => r((a) => ({
1286
1362
  ...a,
1287
- expandedNodes: Ye(a.expandedNodes, r, s)
1363
+ expandedNodes: at(a.expandedNodes, o, s)
1288
1364
  })),
1289
- reset: () => o(Fe)
1365
+ reset: () => r(ot)
1290
1366
  }), {
1291
- name: _l(e),
1292
- storage: Ot(() => typeof globalThis.localStorage > "u" ? Rl() : globalThis.localStorage),
1293
- partialize: Dl
1367
+ name: ll(e),
1368
+ storage: vt(() => typeof globalThis.localStorage > "u" ? il() : globalThis.localStorage),
1369
+ partialize: rl
1294
1370
  }));
1295
- }, Ue = /* @__PURE__ */ new Map(), El = (n) => {
1296
- const e = Ue.get(n);
1371
+ }, ct = /* @__PURE__ */ new Map(), sl = (l) => {
1372
+ const e = ct.get(l);
1297
1373
  if (e)
1298
1374
  return e;
1299
- const l = Ll({
1300
- storageKey: n
1375
+ const n = ol({
1376
+ storageKey: l
1301
1377
  });
1302
- return Ue.set(n, l), l;
1303
- }, Te = (n, e) => {
1304
- const l = $(2);
1378
+ return ct.set(l, n), n;
1379
+ }, Re = (l, e) => {
1380
+ const n = A(2);
1305
1381
  let t;
1306
- return l[0] !== n ? (t = El(n), l[0] = n, l[1] = t) : t = l[1], Mt(t, e);
1307
- }, zl = (n) => {
1308
- const e = $(2), {
1309
- children: l
1310
- } = n;
1311
- if (!l)
1382
+ return n[0] !== l ? (t = sl(l), n[0] = l, n[1] = t) : t = n[1], yt(t, e);
1383
+ }, al = (l) => {
1384
+ const e = A(2), {
1385
+ children: n
1386
+ } = l;
1387
+ if (!n)
1312
1388
  return null;
1313
1389
  let t;
1314
- return e[0] !== l ? (t = /* @__PURE__ */ i(E, { px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: l }), e[0] = l, e[1] = t) : t = e[1], t;
1315
- }, Hl = (n) => {
1316
- const e = $(7), {
1317
- children: l,
1390
+ return e[0] !== n ? (t = /* @__PURE__ */ i(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;
1391
+ }, cl = (l) => {
1392
+ const e = A(7), {
1393
+ children: n,
1318
1394
  onClose: t
1319
- } = n;
1320
- let o;
1321
- e[0] !== l ? (o = /* @__PURE__ */ i(F, { minW: "0", flex: "1", children: l }), e[0] = l, e[1] = o) : o = e[1];
1395
+ } = l;
1322
1396
  let r;
1323
- e[2] !== t ? (r = t ? /* @__PURE__ */ i(_e, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ i(Ht, { size: 16 }) }) : null, e[2] = t, e[3] = r) : r = e[3];
1397
+ e[0] !== n ? (r = /* @__PURE__ */ i(X, { minW: "0", flex: "1", children: n }), e[0] = n, e[1] = r) : r = e[1];
1398
+ let o;
1399
+ e[2] !== t ? (o = t ? /* @__PURE__ */ i(Se, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ i(an, { size: 16 }) }) : null, e[2] = t, e[3] = o) : o = e[3];
1324
1400
  let s;
1325
- return e[4] !== o || e[5] !== r ? (s = /* @__PURE__ */ b(F, { justify: "space-between", align: "center", px: "4", py: "3", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1326
- o,
1327
- r
1328
- ] }), e[4] = o, e[5] = r, e[6] = s) : s = e[6], s;
1329
- }, Wn = (n) => {
1330
- const e = $(23), {
1331
- storageKey: l,
1401
+ return e[4] !== r || e[5] !== o ? (s = /* @__PURE__ */ b(X, { justify: "space-between", align: "center", px: "4", py: "3", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1402
+ r,
1403
+ o
1404
+ ] }), e[4] = r, e[5] = o, e[6] = s) : s = e[6], s;
1405
+ }, Vi = (l) => {
1406
+ const e = A(24), {
1407
+ storageKey: n,
1332
1408
  sections: t,
1333
- activeNodeId: o,
1334
- header: r,
1409
+ activeNodeId: r,
1410
+ header: o,
1335
1411
  footer: s,
1336
1412
  width: a,
1337
1413
  closable: c,
1338
1414
  emptyLabel: d,
1339
- onNavigate: h,
1340
- onOpenChange: g
1341
- } = n, f = a === void 0 ? "240px" : a, u = c === void 0 ? !0 : c, p = d === void 0 ? "No items available." : d, m = Te(l, Nl), x = Te(l, Wl), S = Te(l, Al), y = Te(l, Ml), v = Te(l, Bl), k = Te(l, Ol);
1342
- let P, I;
1343
- if (e[0] !== g || e[1] !== m ? (P = () => {
1344
- g?.(m);
1345
- }, I = [g, m], e[0] = g, e[1] = m, e[2] = P, e[3] = I) : (P = e[2], I = e[3]), We(P, I), !m && u)
1415
+ linkComponent: u,
1416
+ onNavigate: g,
1417
+ onOpenChange: f
1418
+ } = l, p = a === void 0 ? "240px" : a, h = c === void 0 ? !0 : c, m = d === void 0 ? "No items available." : d, x = Re(n, dl), y = Re(n, ul), I = Re(n, gl), k = Re(n, fl), P = Re(n, pl), D = Re(n, hl);
1419
+ let T, _;
1420
+ if (e[0] !== f || e[1] !== x ? (T = () => {
1421
+ f?.(x);
1422
+ }, _ = [f, x], e[0] = f, e[1] = x, e[2] = T, e[3] = _) : (T = e[2], _ = e[3]), He(T, _), !x && h)
1346
1423
  return null;
1347
- const w = u ? y : void 0;
1348
- let T;
1349
- e[4] !== r || e[5] !== w ? (T = /* @__PURE__ */ i(Hl, { onClose: w, children: r }), e[4] = r, e[5] = w, e[6] = T) : T = e[6];
1350
- let R;
1351
- e[7] !== o || e[8] !== p || e[9] !== S || e[10] !== x || e[11] !== h || e[12] !== t || e[13] !== k || e[14] !== v ? (R = /* @__PURE__ */ i(he, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: p }) : /* @__PURE__ */ i(Il, { sections: t, expandedSections: x, expandedNodes: S, activeNodeId: o, onNavigate: h, onToggleSection: v, onToggleNode: k }) }), e[7] = o, e[8] = p, e[9] = S, e[10] = x, e[11] = h, e[12] = t, e[13] = k, e[14] = v, e[15] = R) : R = e[15];
1352
- let z;
1353
- e[16] !== s ? (z = /* @__PURE__ */ i(zl, { children: s }), e[16] = s, e[17] = z) : z = e[17];
1354
- let L;
1355
- return e[18] !== T || e[19] !== R || e[20] !== z || e[21] !== f ? (L = /* @__PURE__ */ b(pe, { as: "aside", direction: "column", h: "100%", w: f, minW: f, maxW: f, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1356
- T,
1357
- R,
1358
- z
1359
- ] }), e[18] = T, e[19] = R, e[20] = z, e[21] = f, e[22] = L) : L = e[22], L;
1424
+ const S = h ? k : void 0;
1425
+ let C;
1426
+ e[4] !== o || e[5] !== S ? (C = /* @__PURE__ */ i(cl, { onClose: S, children: o }), e[4] = o, e[5] = S, e[6] = C) : C = e[6];
1427
+ let w;
1428
+ e[7] !== r || e[8] !== m || e[9] !== I || e[10] !== y || e[11] !== u || e[12] !== g || e[13] !== t || e[14] !== D || e[15] !== P ? (w = /* @__PURE__ */ i(Ce, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i($, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: m }) : /* @__PURE__ */ i(Zn, { sections: t, expandedSections: y, expandedNodes: I, activeNodeId: r, linkComponent: u, onNavigate: g, onToggleSection: P, onToggleNode: D }) }), e[7] = r, e[8] = m, e[9] = I, e[10] = y, e[11] = u, e[12] = g, e[13] = t, e[14] = D, e[15] = P, e[16] = w) : w = e[16];
1429
+ let v;
1430
+ e[17] !== s ? (v = /* @__PURE__ */ i(al, { children: s }), e[17] = s, e[18] = v) : v = e[18];
1431
+ let E;
1432
+ return e[19] !== C || e[20] !== w || e[21] !== v || e[22] !== p ? (E = /* @__PURE__ */ b(we, { as: "aside", "data-testid": "sidebar", direction: "column", h: "100%", w: p, minW: p, maxW: p, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1433
+ C,
1434
+ w,
1435
+ v
1436
+ ] }), e[19] = C, e[20] = w, e[21] = v, e[22] = p, e[23] = E) : E = e[23], E;
1360
1437
  };
1361
- function Nl(n) {
1362
- return n.open;
1438
+ function dl(l) {
1439
+ return l.open;
1363
1440
  }
1364
- function Wl(n) {
1365
- return n.expandedSections;
1441
+ function ul(l) {
1442
+ return l.expandedSections;
1366
1443
  }
1367
- function Al(n) {
1368
- return n.expandedNodes;
1444
+ function gl(l) {
1445
+ return l.expandedNodes;
1369
1446
  }
1370
- function Ml(n) {
1371
- return n.closeSidebar;
1447
+ function fl(l) {
1448
+ return l.closeSidebar;
1372
1449
  }
1373
- function Bl(n) {
1374
- return n.toggleSection;
1450
+ function pl(l) {
1451
+ return l.toggleSection;
1375
1452
  }
1376
- function Ol(n) {
1377
- return n.toggleNode;
1453
+ function hl(l) {
1454
+ return l.toggleNode;
1378
1455
  }
1379
- const An = He.forwardRef(function(e, l) {
1380
- const t = $(32);
1381
- let o, r, s, a, c, d, h;
1456
+ const ji = Fe.forwardRef(function(e, n) {
1457
+ const t = A(32);
1458
+ let r, o, s, a, c, d, u;
1382
1459
  t[0] !== e ? ({
1383
- inputProps: r,
1384
- children: o,
1460
+ inputProps: o,
1461
+ children: r,
1385
1462
  rootRef: a,
1386
- trackLabel: h,
1463
+ trackLabel: u,
1387
1464
  thumbLabel: d,
1388
1465
  disabled: c,
1389
1466
  ...s
1390
- } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c, t[6] = d, t[7] = h) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5], d = t[6], h = t[7]);
1467
+ } = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = a, t[5] = c, t[6] = d, t[7] = u) : (r = t[1], o = t[2], s = t[3], a = t[4], c = t[5], d = t[6], u = t[7]);
1391
1468
  const g = c === void 0 ? !1 : c, f = g ? "not-allowed" : "pointer";
1392
- let u;
1393
- t[8] !== r || t[9] !== l ? (u = /* @__PURE__ */ i(be.HiddenInput, { ref: l, ...r }), t[8] = r, t[9] = l, t[10] = u) : u = t[10];
1394
1469
  let p;
1395
- t[11] !== d ? (p = d && /* @__PURE__ */ i(be.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = p) : p = t[12];
1470
+ t[8] !== o || t[9] !== n ? (p = /* @__PURE__ */ i(De.HiddenInput, { ref: n, ...o }), t[8] = o, t[9] = n, t[10] = p) : p = t[10];
1471
+ let h;
1472
+ t[11] !== d ? (h = d && /* @__PURE__ */ i(De.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = h) : h = t[12];
1396
1473
  let m;
1397
- t[13] !== p ? (m = /* @__PURE__ */ i(be.Thumb, { borderRadius: "full", children: p }), t[13] = p, t[14] = m) : m = t[14];
1474
+ t[13] !== h ? (m = /* @__PURE__ */ i(De.Thumb, { borderRadius: "full", children: h }), t[13] = h, t[14] = m) : m = t[14];
1398
1475
  let x;
1399
- t[15] !== h ? (x = h && /* @__PURE__ */ i(be.Indicator, { fallback: h.off, children: h.on }), t[15] = h, t[16] = x) : x = t[16];
1400
- let S;
1401
- t[17] !== f || t[18] !== m || t[19] !== x ? (S = /* @__PURE__ */ b(be.Control, { borderRadius: "md", cursor: f, children: [
1476
+ t[15] !== u ? (x = u && /* @__PURE__ */ i(De.Indicator, { fallback: u.off, children: u.on }), t[15] = u, t[16] = x) : x = t[16];
1477
+ let y;
1478
+ t[17] !== f || t[18] !== m || t[19] !== x ? (y = /* @__PURE__ */ b(De.Control, { borderRadius: "md", cursor: f, children: [
1402
1479
  m,
1403
1480
  x
1404
- ] }), t[17] = f, t[18] = m, t[19] = x, t[20] = S) : S = t[20];
1481
+ ] }), t[17] = f, t[18] = m, t[19] = x, t[20] = y) : y = t[20];
1482
+ let I;
1483
+ t[21] !== r || t[22] !== f ? (I = r != null && /* @__PURE__ */ i(De.Label, { cursor: f, children: r }), t[21] = r, t[22] = f, t[23] = I) : I = t[23];
1484
+ let k;
1485
+ return t[24] !== g || t[25] !== f || t[26] !== s || t[27] !== a || t[28] !== p || t[29] !== y || t[30] !== I ? (k = /* @__PURE__ */ b(De.Root, { ref: a, disabled: g, cursor: f, ...s, children: [
1486
+ p,
1487
+ y,
1488
+ I
1489
+ ] }), t[24] = g, t[25] = f, t[26] = s, t[27] = a, t[28] = p, t[29] = y, t[30] = I, t[31] = k) : k = t[31], k;
1490
+ }), Me = (l) => {
1491
+ const e = A(2);
1492
+ let n;
1493
+ return e[0] !== l.children ? (n = /* @__PURE__ */ i($, { textStyle: "label/XS/medium", color: "fg.muted", children: l.children }), e[0] = l.children, e[1] = n) : n = e[1], n;
1494
+ }, je = (l) => {
1495
+ const e = A(19);
1496
+ let n;
1497
+ e[0] !== l.label || e[1] !== l.options || e[2] !== l.value ? (n = l.options.find((g) => g.value === l.value)?.label ?? l.label, e[0] = l.label, e[1] = l.options, e[2] = l.value, e[3] = n) : n = e[3];
1498
+ const t = n;
1499
+ let r;
1500
+ e[4] !== l.label ? (r = /* @__PURE__ */ i(Me, { children: l.label }), e[4] = l.label, e[5] = r) : r = e[5];
1501
+ let o;
1502
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i(oe, { as: et, color: "fg.muted" }), e[6] = o) : o = e[6];
1503
+ let s;
1504
+ e[7] !== t ? (s = /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ b(de, { size: "sm", variant: "outline", width: "full", justifyContent: "space-between", children: [
1505
+ t,
1506
+ o
1507
+ ] }) }), e[7] = t, e[8] = s) : s = e[8];
1508
+ let a;
1509
+ e[9] !== l ? (a = l.options.map((g) => /* @__PURE__ */ i(le.Item, { value: g.value, onClick: () => l.onSelect(g.value), children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", children: g.label }) }, g.value)), e[9] = l, e[10] = a) : a = e[10];
1510
+ let c;
1511
+ e[11] !== a ? (c = /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "260px", bg: "bg", children: a }) }), e[11] = a, e[12] = c) : c = e[12];
1512
+ let d;
1513
+ e[13] !== s || e[14] !== c ? (d = /* @__PURE__ */ b(le.Root, { children: [
1514
+ s,
1515
+ c
1516
+ ] }), e[13] = s, e[14] = c, e[15] = d) : d = e[15];
1517
+ let u;
1518
+ return e[16] !== r || e[17] !== d ? (u = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1519
+ r,
1520
+ d
1521
+ ] }), e[16] = r, e[17] = d, e[18] = u) : u = e[18], u;
1522
+ }, ml = (l) => {
1523
+ const e = A(60), {
1524
+ settings: n,
1525
+ groupingOptions: t,
1526
+ orderingOptions: r,
1527
+ displayPropertyOptions: o,
1528
+ onViewModeChange: s,
1529
+ onColumnGroupingChange: a,
1530
+ onRowGroupingChange: c,
1531
+ onOrderingFieldChange: d,
1532
+ onSortDirectionToggle: u,
1533
+ onDisplayPropertyToggle: g
1534
+ } = l;
1535
+ let f;
1536
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
1537
+ placement: "bottom-end",
1538
+ offset: {
1539
+ mainAxis: 8
1540
+ }
1541
+ }, e[0] = f) : f = e[0];
1542
+ let p;
1543
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ i(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Display settings", variant: "ghost", size: "sm", children: /* @__PURE__ */ i(oe, { as: cn, boxSize: "14px" }) }) }), e[1] = p) : p = e[1];
1544
+ let h;
1545
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ i(Me, { children: "View" }), e[2] = h) : h = e[2];
1546
+ let m;
1547
+ e[3] !== s ? (m = (R) => {
1548
+ R.value && s(R.value);
1549
+ }, e[3] = s, e[4] = m) : m = e[4];
1550
+ let x;
1551
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ i(ve.Indicator, {}), e[5] = x) : x = e[5];
1405
1552
  let y;
1406
- t[21] !== o || t[22] !== f ? (y = o != null && /* @__PURE__ */ i(be.Label, { cursor: f, children: o }), t[21] = o, t[22] = f, t[23] = y) : y = t[23];
1553
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ b(ve.Item, { value: "list", children: [
1554
+ /* @__PURE__ */ i(ve.ItemText, { children: /* @__PURE__ */ b(X, { as: "span", gap: "2xs", children: [
1555
+ /* @__PURE__ */ i(dn, { size: 14 }),
1556
+ /* @__PURE__ */ i("span", { children: "List" })
1557
+ ] }) }),
1558
+ /* @__PURE__ */ i(ve.ItemHiddenInput, {})
1559
+ ] }), e[6] = y) : y = e[6];
1560
+ let I;
1561
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ b(ve.Item, { value: "board", children: [
1562
+ /* @__PURE__ */ i(ve.ItemText, { children: /* @__PURE__ */ b(X, { as: "span", gap: "2xs", children: [
1563
+ /* @__PURE__ */ i(un, { size: 14 }),
1564
+ /* @__PURE__ */ i("span", { children: "Board" })
1565
+ ] }) }),
1566
+ /* @__PURE__ */ i(ve.ItemHiddenInput, {})
1567
+ ] }), e[7] = I) : I = e[7];
1568
+ let k;
1569
+ e[8] !== n.viewMode || e[9] !== m ? (k = /* @__PURE__ */ b(ve.Root, { size: "sm", value: n.viewMode, onValueChange: m, children: [
1570
+ x,
1571
+ y,
1572
+ I
1573
+ ] }), e[8] = n.viewMode, e[9] = m, e[10] = k) : k = e[10];
1574
+ let P;
1575
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ i(Ye, {}), e[11] = P) : P = e[11];
1576
+ let D;
1577
+ e[12] !== a || e[13] !== c || e[14] !== n.rowGrouping ? (D = (R) => {
1578
+ a(R), (R === "none" || R === n.rowGrouping) && c("none");
1579
+ }, e[12] = a, e[13] = c, e[14] = n.rowGrouping, e[15] = D) : D = e[15];
1580
+ let T;
1581
+ e[16] !== t || e[17] !== n.columnGrouping || e[18] !== D ? (T = /* @__PURE__ */ i(je, { label: "Grouping", value: n.columnGrouping, options: t, onSelect: D }), e[16] = t, e[17] = n.columnGrouping, e[18] = D, e[19] = T) : T = e[19];
1582
+ const _ = n.rowGrouping;
1583
+ let S;
1584
+ if (e[20] !== t || e[21] !== n.columnGrouping) {
1585
+ let R;
1586
+ e[23] !== n.columnGrouping ? (R = (F) => F.value === "none" || F.value !== n.columnGrouping, e[23] = n.columnGrouping, e[24] = R) : R = e[24], S = t.filter(R), e[20] = t, e[21] = n.columnGrouping, e[22] = S;
1587
+ } else
1588
+ S = e[22];
1589
+ let C;
1590
+ e[25] !== c || e[26] !== n.rowGrouping || e[27] !== S ? (C = /* @__PURE__ */ i(je, { label: "Sub-grouping", value: _, options: S, onSelect: c }), e[25] = c, e[26] = n.rowGrouping, e[27] = S, e[28] = C) : C = e[28];
1591
+ let w;
1592
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ i(Me, { children: "Ordering" }), e[29] = w) : w = e[29];
1407
1593
  let v;
1408
- return t[24] !== g || t[25] !== f || t[26] !== s || t[27] !== a || t[28] !== u || t[29] !== S || t[30] !== y ? (v = /* @__PURE__ */ b(be.Root, { ref: a, disabled: g, cursor: f, ...s, children: [
1409
- u,
1410
- S,
1411
- y
1412
- ] }), t[24] = g, t[25] = f, t[26] = s, t[27] = a, t[28] = u, t[29] = S, t[30] = y, t[31] = v) : v = t[31], v;
1413
- }), jl = (n) => {
1414
- const e = $(43), {
1415
- ticketId: l,
1594
+ e[30] !== d || e[31] !== r || e[32] !== n.ordering.field ? (v = /* @__PURE__ */ i(je, { label: "Sort by", value: n.ordering.field, options: r, onSelect: d }), e[30] = d, e[31] = r, e[32] = n.ordering.field, e[33] = v) : v = e[33];
1595
+ const E = n.ordering.direction === "asc" ? "rotate(0deg)" : "rotate(180deg)";
1596
+ let L;
1597
+ e[34] !== E ? (L = /* @__PURE__ */ i(oe, { as: gn, transform: E }), e[34] = E, e[35] = L) : L = e[35];
1598
+ let z;
1599
+ e[36] !== u || e[37] !== n.ordering.direction || e[38] !== L ? (z = /* @__PURE__ */ i(Se, { mt: "lg", "aria-label": "Toggle sort direction", size: "sm", variant: "outline", onClick: u, "data-direction": n.ordering.direction, children: L }), e[36] = u, e[37] = n.ordering.direction, e[38] = L, e[39] = z) : z = e[39];
1600
+ let O;
1601
+ e[40] !== v || e[41] !== z ? (O = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1602
+ w,
1603
+ /* @__PURE__ */ b(X, { gap: "2xs", children: [
1604
+ v,
1605
+ z
1606
+ ] })
1607
+ ] }), e[40] = v, e[41] = z, e[42] = O) : O = e[42];
1608
+ let W;
1609
+ e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ i(Ye, {}), e[43] = W) : W = e[43];
1610
+ let H;
1611
+ e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ i(Me, { children: "Display properties" }), e[44] = H) : H = e[44];
1612
+ let B;
1613
+ if (e[45] !== o || e[46] !== g || e[47] !== n.displayProperties) {
1614
+ let R;
1615
+ e[49] !== g || e[50] !== n.displayProperties ? (R = (F) => {
1616
+ const Y = n.displayProperties.includes(F.value);
1617
+ return /* @__PURE__ */ i(de, { size: "2xs", variant: Y ? "solid" : "outline", onClick: () => g(F.value), children: F.label }, F.value);
1618
+ }, e[49] = g, e[50] = n.displayProperties, e[51] = R) : R = e[51], B = o.map(R), e[45] = o, e[46] = g, e[47] = n.displayProperties, e[48] = B;
1619
+ } else
1620
+ B = e[48];
1621
+ let N;
1622
+ e[52] !== B ? (N = /* @__PURE__ */ b(G, { gap: "2xs", children: [
1623
+ H,
1624
+ /* @__PURE__ */ i(X, { flexWrap: "wrap", gap: "2xs", children: B })
1625
+ ] }), e[52] = B, e[53] = N) : N = e[53];
1626
+ let M;
1627
+ return e[54] !== T || e[55] !== C || e[56] !== O || e[57] !== N || e[58] !== k ? (M = /* @__PURE__ */ b(Ie.Root, { positioning: f, children: [
1628
+ p,
1629
+ /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ie.Positioner, { children: /* @__PURE__ */ i(Ie.Content, { width: "320px", p: "sm", bg: "bg", children: /* @__PURE__ */ b(G, { gap: "sm", children: [
1630
+ h,
1631
+ k,
1632
+ P,
1633
+ T,
1634
+ C,
1635
+ O,
1636
+ W,
1637
+ N
1638
+ ] }) }) }) })
1639
+ ] }), e[54] = T, e[55] = C, e[56] = O, e[57] = N, e[58] = k, e[59] = M) : M = e[59], M;
1640
+ }, bl = (l) => Object.values(l).reduce((e, n) => e + (n?.length ?? 0), 0), xl = (l) => {
1641
+ const e = A(39), {
1642
+ categories: n,
1643
+ filters: t,
1644
+ countsByCategory: r,
1645
+ onToggleFilterValue: o,
1646
+ onClearFilter: s,
1647
+ onClearAll: a
1648
+ } = l, [c, d] = me(n[0]?.id ?? "status");
1649
+ let u;
1650
+ e[0] !== c || e[1] !== n ? (u = n.find((v) => v.id === c) ?? n[0], e[0] = c, e[1] = n, e[2] = u) : u = e[2];
1651
+ const g = u, f = bl(t);
1652
+ let p;
1653
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
1654
+ placement: "bottom-end",
1655
+ offset: {
1656
+ mainAxis: 8
1657
+ }
1658
+ }, e[3] = p) : p = e[3];
1659
+ const h = f > 0 ? "outline" : "ghost";
1660
+ let m;
1661
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(oe, { as: fn, boxSize: "14px" }), e[4] = m) : m = e[4];
1662
+ let x;
1663
+ e[5] !== f ? (x = f > 0 ? /* @__PURE__ */ i(Te, { variant: "solid", children: f }) : null, e[5] = f, e[6] = x) : x = e[6];
1664
+ let y;
1665
+ e[7] !== x ? (y = /* @__PURE__ */ b(X, { gap: "2xs", children: [
1666
+ m,
1667
+ x
1668
+ ] }), e[7] = x, e[8] = y) : y = e[8];
1669
+ let I;
1670
+ e[9] !== h || e[10] !== y ? (I = /* @__PURE__ */ i(Ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { "aria-label": "Filter tickets", variant: h, size: "sm", children: y }) }), e[9] = h, e[10] = y, e[11] = I) : I = e[11];
1671
+ let k;
1672
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i($, { textStyle: "label/XS/medium", color: "fg.muted", children: "Filters" }), e[12] = k) : k = e[12];
1673
+ let P;
1674
+ e[13] !== a ? (P = /* @__PURE__ */ b(X, { justifyContent: "space-between", children: [
1675
+ k,
1676
+ /* @__PURE__ */ i(de, { size: "2xs", variant: "ghost", onClick: a, children: "Clear all" })
1677
+ ] }), e[13] = a, e[14] = P) : P = e[14];
1678
+ let D;
1679
+ if (e[15] !== c || e[16] !== n || e[17] !== t) {
1680
+ let v;
1681
+ e[19] !== c || e[20] !== t ? (v = (E) => {
1682
+ const L = t[E.id] ?? [];
1683
+ return /* @__PURE__ */ b(de, { variant: c === E.id ? "subtle" : "ghost", size: "sm", justifyContent: "space-between", onClick: () => d(E.id), children: [
1684
+ /* @__PURE__ */ i($, { children: E.label }),
1685
+ L.length > 0 ? /* @__PURE__ */ i(Te, { variant: "subtle", children: L.length }) : null
1686
+ ] }, E.id);
1687
+ }, e[19] = c, e[20] = t, e[21] = v) : v = e[21], D = n.map(v), e[15] = c, e[16] = n, e[17] = t, e[18] = D;
1688
+ } else
1689
+ D = e[18];
1690
+ let T;
1691
+ e[22] !== P || e[23] !== D ? (T = /* @__PURE__ */ b(G, { width: "220px", borderRightWidth: "1px", borderColor: "border.muted", p: "sm", gap: "2xs", children: [
1692
+ P,
1693
+ D
1694
+ ] }), e[22] = P, e[23] = D, e[24] = T) : T = e[24];
1695
+ let _;
1696
+ e[25] !== g || e[26] !== r || e[27] !== t || e[28] !== s || e[29] !== o ? (_ = g ? /* @__PURE__ */ b(Ze, { children: [
1697
+ /* @__PURE__ */ b(X, { justifyContent: "space-between", children: [
1698
+ /* @__PURE__ */ i($, { textStyle: "label/S/medium", children: g.label }),
1699
+ /* @__PURE__ */ i(de, { size: "2xs", variant: "ghost", onClick: () => s(g.id), children: "Clear" })
1700
+ ] }),
1701
+ /* @__PURE__ */ i(G, { gap: "2xs", children: g.options.map((v) => {
1702
+ const E = (t[g.id] ?? []).includes(v.value), L = r[g.id]?.[v.value] ?? 0;
1703
+ return /* @__PURE__ */ i(V, { px: "xs", py: "2xs", borderRadius: "sm", _hover: {
1704
+ bg: "bg.subtle"
1705
+ }, children: /* @__PURE__ */ i(vn, { checked: E, onCheckedChange: () => o(g.id, v.value), children: /* @__PURE__ */ b(X, { gap: "2xs", justifyContent: "space-between", width: "full", children: [
1706
+ /* @__PURE__ */ i($, { textStyle: "label/S/regular", children: v.label }),
1707
+ /* @__PURE__ */ i($, { textStyle: "label/XS/regular", color: "fg.muted", children: L })
1708
+ ] }) }) }, v.value);
1709
+ }) })
1710
+ ] }) : null, e[25] = g, e[26] = r, e[27] = t, e[28] = s, e[29] = o, e[30] = _) : _ = e[30];
1711
+ let S;
1712
+ e[31] !== _ ? (S = /* @__PURE__ */ i(G, { flex: "1", p: "sm", gap: "sm", children: _ }), e[31] = _, e[32] = S) : S = e[32];
1713
+ let C;
1714
+ e[33] !== T || e[34] !== S ? (C = /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ie.Positioner, { children: /* @__PURE__ */ i(Ie.Content, { width: "560px", p: "0", bg: "bg", overflow: "hidden", children: /* @__PURE__ */ b(X, { align: "stretch", gap: "0", minH: "320px", children: [
1715
+ T,
1716
+ S
1717
+ ] }) }) }) }), e[33] = T, e[34] = S, e[35] = C) : C = e[35];
1718
+ let w;
1719
+ return e[36] !== C || e[37] !== I ? (w = /* @__PURE__ */ b(Ie.Root, { positioning: p, children: [
1720
+ I,
1721
+ C
1722
+ ] }), e[36] = C, e[37] = I, e[38] = w) : w = e[38], w;
1723
+ }, Dt = (l) => {
1724
+ const e = A(43), {
1725
+ ticketId: n,
1416
1726
  parentPath: t,
1417
- sessionIndicatorLabel: o,
1418
- sessionIndicatorStatus: r,
1727
+ sessionIndicatorLabel: r,
1728
+ sessionIndicatorStatus: o,
1419
1729
  title: s,
1420
1730
  badges: a,
1421
1731
  diffAdditions: c,
1422
1732
  diffDeletions: d,
1423
- isSelected: h,
1733
+ isSelected: u,
1424
1734
  draggable: g,
1425
1735
  onDragStart: f,
1426
- onDragEnd: u,
1427
- onClick: p,
1736
+ onDragEnd: p,
1737
+ onClick: h,
1428
1738
  onDiffBadgeClick: m,
1429
1739
  onSessionIndicatorClick: x
1430
- } = n;
1431
- let S;
1432
- e[0] !== t ? (S = t === void 0 ? [] : t, e[0] = t, e[1] = S) : S = e[1];
1433
- const y = S;
1434
- let v;
1435
- e[2] !== a ? (v = a === void 0 ? [] : a, e[2] = a, e[3] = v) : v = e[3];
1436
- const k = v, P = h === void 0 ? !1 : h;
1437
- let I;
1438
- e[4] !== m ? (I = (Y) => {
1439
- Y.stopPropagation(), m?.();
1440
- }, e[4] = m, e[5] = I) : I = e[5];
1441
- const w = I;
1740
+ } = l;
1741
+ let y;
1742
+ e[0] !== t ? (y = t === void 0 ? [] : t, e[0] = t, e[1] = y) : y = e[1];
1743
+ const I = y;
1744
+ let k;
1745
+ e[2] !== a ? (k = a === void 0 ? [] : a, e[2] = a, e[3] = k) : k = e[3];
1746
+ const P = k, D = u === void 0 ? !1 : u;
1442
1747
  let T;
1443
- e[6] !== x ? (T = (Y) => {
1444
- Y.stopPropagation(), x?.();
1445
- }, e[6] = x, e[7] = T) : T = e[7];
1446
- const R = T;
1447
- let z;
1448
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = {
1748
+ e[4] !== m ? (T = (F) => {
1749
+ F.stopPropagation(), m?.();
1750
+ }, e[4] = m, e[5] = T) : T = e[5];
1751
+ const _ = T;
1752
+ let S;
1753
+ e[6] !== x ? (S = (F) => {
1754
+ F.stopPropagation(), x?.();
1755
+ }, e[6] = x, e[7] = S) : S = e[7];
1756
+ const C = S;
1757
+ let w;
1758
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
1449
1759
  borderColor: "border.blue",
1450
1760
  boxShadow: "mid"
1451
- }, e[8] = z) : z = e[8];
1452
- const L = g ? "grab" : p ? "pointer" : "default", O = P ? "true" : void 0;
1453
- let N;
1454
- e[9] !== y ? (N = y.length > 0 && /* @__PURE__ */ b(C, { as: "span", color: "subtle", children: [
1455
- y.join(" / "),
1761
+ }, e[8] = w) : w = e[8];
1762
+ const v = g ? "grab" : h ? "pointer" : "default", E = D ? "true" : void 0;
1763
+ let L;
1764
+ e[9] !== I ? (L = I.length > 0 && /* @__PURE__ */ b($, { as: "span", color: "subtle", children: [
1765
+ I.join(" / "),
1456
1766
  " /",
1457
1767
  " "
1458
- ] }), e[9] = y, e[10] = N) : N = e[10];
1768
+ ] }), e[9] = I, e[10] = L) : L = e[10];
1769
+ let z;
1770
+ e[11] !== L || e[12] !== n ? (z = /* @__PURE__ */ b($, { textStyle: "label/S/regular", flexShrink: 0, children: [
1771
+ L,
1772
+ n
1773
+ ] }), e[11] = L, e[12] = n, e[13] = z) : z = e[13];
1774
+ let O;
1775
+ e[14] !== C || e[15] !== x || e[16] !== r || e[17] !== o ? (O = r ? /* @__PURE__ */ i(Ee, { content: `Session ${r}`, children: /* @__PURE__ */ i(Jn, { status: o, boxSize: "12px", "aria-label": `Session ${r}`, cursor: x ? "pointer" : "default", onClick: x ? C : void 0 }) }) : null, e[14] = C, e[15] = x, e[16] = r, e[17] = o, e[18] = O) : O = e[18];
1776
+ let W;
1777
+ e[19] !== z || e[20] !== O ? (W = /* @__PURE__ */ b(X, { gap: "2xs", flexShrink: 0, children: [
1778
+ z,
1779
+ O
1780
+ ] }), e[19] = z, e[20] = O, e[21] = W) : W = e[21];
1459
1781
  let H;
1460
- e[11] !== N || e[12] !== l ? (H = /* @__PURE__ */ b(C, { textStyle: "label/S/regular", flexShrink: 0, children: [
1461
- N,
1462
- l
1463
- ] }), e[11] = N, e[12] = l, e[13] = H) : H = e[13];
1464
- let M;
1465
- e[14] !== R || e[15] !== x || e[16] !== o || e[17] !== r ? (M = o ? /* @__PURE__ */ i(Ee, { content: `Session ${o}`, children: /* @__PURE__ */ i(wl, { status: r, boxSize: "12px", "aria-label": `Session ${o}`, cursor: x ? "pointer" : "default", onClick: x ? R : void 0 }) }) : null, e[14] = R, e[15] = x, e[16] = o, e[17] = r, e[18] = M) : M = e[18];
1782
+ e[22] !== c || e[23] !== d || e[24] !== _ ? (H = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(St, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(pn, { size: "12" }), onClick: _, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = _, e[25] = H) : H = e[25];
1466
1783
  let B;
1467
- e[19] !== H || e[20] !== M ? (B = /* @__PURE__ */ b(F, { gap: "2xs", flexShrink: 0, children: [
1468
- H,
1469
- M
1470
- ] }), e[19] = H, e[20] = M, e[21] = B) : B = e[21];
1471
- let A;
1472
- e[22] !== c || e[23] !== d || e[24] !== w ? (A = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(Qe, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(Nt, { size: "12" }), onClick: w, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = w, e[25] = A) : A = e[25];
1473
- let j;
1474
- e[26] !== B || e[27] !== A ? (j = /* @__PURE__ */ b(F, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1784
+ e[26] !== W || e[27] !== H ? (B = /* @__PURE__ */ b(X, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1785
+ W,
1786
+ H
1787
+ ] }), e[26] = W, e[27] = H, e[28] = B) : B = e[28];
1788
+ let N;
1789
+ e[29] !== s ? (N = /* @__PURE__ */ i(X, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ i($, { textStyle: "label/S/regular", flex: "1", minW: "0", children: s }) }), e[29] = s, e[30] = N) : N = e[30];
1790
+ let M;
1791
+ e[31] !== P ? (M = P.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", children: P.map(Sl) }), e[31] = P, e[32] = M) : M = e[32];
1792
+ let R;
1793
+ return e[33] !== g || e[34] !== h || e[35] !== p || e[36] !== f || e[37] !== B || e[38] !== N || e[39] !== M || e[40] !== v || e[41] !== E ? (R = /* @__PURE__ */ b(G, { 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: w, cursor: v, draggable: g, onDragStart: f, onDragEnd: p, onClick: h, "data-selected": E, children: [
1475
1794
  B,
1476
- A
1477
- ] }), e[26] = B, e[27] = A, e[28] = j) : j = e[28];
1478
- let _;
1479
- e[29] !== s ? (_ = /* @__PURE__ */ i(F, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ i(C, { textStyle: "label/S/regular", flex: "1", minW: "0", children: s }) }), e[29] = s, e[30] = _) : _ = e[30];
1480
- let G;
1481
- e[31] !== k ? (G = k.length > 0 && /* @__PURE__ */ i(qe, { gap: "2xs", children: k.map(Gl) }), e[31] = k, e[32] = G) : G = e[32];
1482
- let Q;
1483
- return e[33] !== g || e[34] !== p || e[35] !== u || e[36] !== f || e[37] !== j || e[38] !== _ || e[39] !== G || e[40] !== L || e[41] !== O ? (Q = /* @__PURE__ */ b(D, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "calc(100% - 8px)", alignSelf: "center", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: z, cursor: L, draggable: g, onDragStart: f, onDragEnd: u, onClick: p, "data-selected": O, children: [
1484
- j,
1485
- _,
1486
- G
1487
- ] }), e[33] = g, e[34] = p, e[35] = u, e[36] = f, e[37] = j, e[38] = _, e[39] = G, e[40] = L, e[41] = O, e[42] = Q) : Q = e[42], Q;
1795
+ N,
1796
+ M
1797
+ ] }), e[33] = g, e[34] = h, e[35] = p, e[36] = f, e[37] = B, e[38] = N, e[39] = M, e[40] = v, e[41] = E, e[42] = R) : R = e[42], R;
1488
1798
  };
1489
- function Gl(n) {
1490
- return /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: n.color ?? "gray", textStyle: "label/XS/medium", children: n.label }, n.label);
1799
+ function Sl(l) {
1800
+ return /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
1491
1801
  }
1492
- const Mn = (n) => {
1493
- const e = $(21), {
1494
- columns: l,
1802
+ const yl = (l) => {
1803
+ const e = A(27), {
1804
+ columns: n,
1495
1805
  selectedItemId: t,
1496
- onMoveItem: o,
1497
- onCreateStart: r,
1498
- onColumnAction: s
1499
- } = n, a = t === void 0 ? null : t, [c, d] = Re(null), h = Fl;
1500
- let g;
1501
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = () => {
1502
- d(null);
1503
- }, e[0] = g) : g = e[0];
1504
- const f = g;
1505
- let u;
1506
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (I) => (w) => {
1507
- w.preventDefault(), w.dataTransfer.dropEffect = "move", d(I);
1508
- }, e[1] = u) : u = e[1];
1509
- const p = u;
1510
- let m;
1511
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (I) => {
1512
- I.currentTarget.contains(I.relatedTarget) || d(null);
1513
- }, e[2] = m) : m = e[2];
1514
- const x = m;
1515
- let S;
1516
- e[3] !== o ? (S = (I) => (w) => {
1517
- w.preventDefault(), d(null);
1518
- const T = w.dataTransfer.getData("text/plain");
1519
- T && o?.(T, I);
1520
- }, e[3] = o, e[4] = S) : S = e[4];
1521
- const y = S;
1522
- let v;
1523
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
1806
+ onMoveItem: r,
1807
+ onMoveToGroup: o,
1808
+ onCreateStart: s,
1809
+ onColumnAction: a
1810
+ } = l, c = t === void 0 ? null : t, [d, u] = me(null), [g, f] = me(null), p = wl;
1811
+ let h;
1812
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
1813
+ u(null), f(null);
1814
+ }, e[0] = h) : h = e[0];
1815
+ const m = h;
1816
+ let x;
1817
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (C) => (w) => {
1818
+ w.preventDefault(), w.dataTransfer.dropEffect = "move", u(C);
1819
+ }, e[1] = x) : x = e[1];
1820
+ const y = x;
1821
+ let I;
1822
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (C) => {
1823
+ C.currentTarget.contains(C.relatedTarget) || u(null);
1824
+ }, e[2] = I) : I = e[2];
1825
+ const k = I;
1826
+ let P;
1827
+ e[3] !== r ? (P = (C) => (w) => {
1828
+ w.preventDefault(), u(null);
1829
+ const v = w.dataTransfer.getData("text/plain");
1830
+ v && r?.(v, C);
1831
+ }, e[3] = r, e[4] = P) : P = e[4];
1832
+ const D = P;
1833
+ let T;
1834
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
1524
1835
  display: "flex",
1525
1836
  alignItems: "stretch",
1526
1837
  gap: "0",
1527
1838
  pb: "2xs",
1528
1839
  minH: "100%"
1529
- }, e[5] = v) : v = e[5];
1530
- let k;
1531
- if (e[6] !== c || e[7] !== l || e[8] !== y || e[9] !== s || e[10] !== r || e[11] !== a) {
1532
- let I;
1533
- e[13] !== c || e[14] !== y || e[15] !== s || e[16] !== r || e[17] !== a ? (I = (w) => /* @__PURE__ */ b(D, { gap: "xs", _notFirst: {
1840
+ }, e[5] = T) : T = e[5];
1841
+ let _;
1842
+ if (e[6] !== d || e[7] !== g || e[8] !== n || e[9] !== D || e[10] !== a || e[11] !== s || e[12] !== r || e[13] !== o || e[14] !== c) {
1843
+ let C;
1844
+ e[16] !== d || e[17] !== g || e[18] !== D || e[19] !== a || e[20] !== s || e[21] !== r || e[22] !== o || e[23] !== c ? (C = (w) => /* @__PURE__ */ b(G, { "data-testid": `board-column-${w.id}`, gap: "xs", _notFirst: {
1534
1845
  borderLeft: "1px solid",
1535
- borderColor: "border"
1536
- }, background: c === w.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: w.canDragIn ? p(w.id) : void 0, onDragLeave: w.canDragIn ? x : void 0, onDrop: w.canDragIn ? y(w.id) : void 0, children: [
1537
- /* @__PURE__ */ i(Xl, { column: w, onCreateStart: r, onColumnAction: s }),
1538
- /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
1539
- spaceY: "sm"
1540
- }, children: w.items.map((T) => /* @__PURE__ */ i(jl, { ...T.cardProps, isSelected: T.id === a, draggable: w.canDragOut, onDragStart: w.canDragOut ? h(T.id) : void 0, onDragEnd: w.canDragOut ? f : void 0 }, T.id)) })
1541
- ] }, w.id), e[13] = c, e[14] = y, e[15] = s, e[16] = r, e[17] = a, e[18] = I) : I = e[18], k = l.map(I), e[6] = c, e[7] = l, e[8] = y, e[9] = s, e[10] = r, e[11] = a, e[12] = k;
1846
+ borderColor: "border.muted"
1847
+ }, 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 ? y(w.id) : void 0, onDragLeave: w.canDragIn ? k : void 0, onDrop: w.canDragIn ? D(w.id) : void 0, children: [
1848
+ /* @__PURE__ */ i(vl, { column: w, onCreateStart: s, onColumnAction: a }),
1849
+ /* @__PURE__ */ i(Ce, { flex: "1", minH: "0", verticalScrollbarProps: {
1850
+ margin: "0"
1851
+ }, contentProps: {
1852
+ spaceY: "sm",
1853
+ ps: "xs",
1854
+ pe: "xs"
1855
+ }, children: w.groups && w.groups.length > 0 ? w.groups.map((v) => {
1856
+ const E = `${w.id}::${v.key}`;
1857
+ return /* @__PURE__ */ i(Cl, { group: v, selectedItemId: c, canDragIn: w.canDragIn, canDragOut: w.canDragOut, isDropTarget: g === E, onDragStart: p, onDragEnd: m, onGroupDragOver: (L) => {
1858
+ L.preventDefault(), L.stopPropagation(), L.dataTransfer.dropEffect = "move", f(E), u(null);
1859
+ }, onGroupDragLeave: (L) => {
1860
+ L.currentTarget.contains(L.relatedTarget) || f(null);
1861
+ }, onGroupDrop: (L) => {
1862
+ L.preventDefault(), L.stopPropagation(), f(null), u(null);
1863
+ const z = L.dataTransfer.getData("text/plain");
1864
+ z && (r?.(z, w.id), o?.(z, v.key));
1865
+ } }, v.key);
1866
+ }) : w.items.map((v) => /* @__PURE__ */ i(Dt, { ...v.cardProps, isSelected: v.id === c, draggable: w.canDragOut, onDragStart: w.canDragOut ? p(v.id) : void 0, onDragEnd: w.canDragOut ? m : void 0 }, v.id)) })
1867
+ ] }, w.id), e[16] = d, e[17] = g, e[18] = D, e[19] = a, e[20] = s, e[21] = r, e[22] = o, e[23] = c, e[24] = C) : C = e[24], _ = n.map(C), e[6] = d, e[7] = g, e[8] = n, e[9] = D, e[10] = a, e[11] = s, e[12] = r, e[13] = o, e[14] = c, e[15] = _;
1542
1868
  } else
1543
- k = e[12];
1544
- let P;
1545
- return e[19] !== k ? (P = /* @__PURE__ */ i(he, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: v, children: k }), e[19] = k, e[20] = P) : P = e[20], P;
1546
- }, Xl = (n) => {
1547
- const e = $(20), {
1548
- column: l,
1869
+ _ = e[15];
1870
+ let S;
1871
+ return e[25] !== _ ? (S = /* @__PURE__ */ i(Ce, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: _ }), e[25] = _, e[26] = S) : S = e[26], S;
1872
+ }, Cl = (l) => {
1873
+ const e = A(26), {
1874
+ group: n,
1875
+ selectedItemId: t,
1876
+ canDragIn: r,
1877
+ canDragOut: o,
1878
+ isDropTarget: s,
1879
+ onDragStart: a,
1880
+ onDragEnd: c,
1881
+ onGroupDragOver: d,
1882
+ onGroupDragLeave: u,
1883
+ onGroupDrop: g
1884
+ } = l, [f, p] = me(!0), h = s ? "bg.subtle" : "transparent", m = r ? d : void 0, x = r ? u : void 0, y = r ? g : void 0;
1885
+ let I;
1886
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
1887
+ bg: "bg.muted"
1888
+ }, e[0] = I) : I = e[0];
1889
+ let k;
1890
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => p(Il), e[1] = k) : k = e[1];
1891
+ const P = f ? "rotate(90deg)" : "rotate(0deg)";
1892
+ let D;
1893
+ e[2] !== P ? (D = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ i(oe, { as: ye, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = D) : D = e[3];
1894
+ let T;
1895
+ e[4] !== n.label ? (T = /* @__PURE__ */ i($, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = T) : T = e[5];
1896
+ let _;
1897
+ e[6] !== n.items.length ? (_ = /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = _) : _ = e[7];
1898
+ let S;
1899
+ e[8] !== D || e[9] !== T || e[10] !== _ ? (S = /* @__PURE__ */ b(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: I, borderRadius: "sm", onClick: k, children: [
1900
+ D,
1901
+ T,
1902
+ _
1903
+ ] }), e[8] = D, e[9] = T, e[10] = _, e[11] = S) : S = e[11];
1904
+ let C;
1905
+ e[12] !== o || e[13] !== f || e[14] !== n.items || e[15] !== c || e[16] !== a || e[17] !== t ? (C = f && /* @__PURE__ */ i(G, { gap: "sm", pt: "xs", children: n.items.map((v) => /* @__PURE__ */ i(Dt, { ...v.cardProps, isSelected: v.id === t, draggable: o, onDragStart: o ? a(v.id) : void 0, onDragEnd: o ? c : void 0 }, v.id)) }), e[12] = o, e[13] = f, e[14] = n.items, e[15] = c, e[16] = a, e[17] = t, e[18] = C) : C = e[18];
1906
+ let w;
1907
+ return e[19] !== h || e[20] !== m || e[21] !== S || e[22] !== C || e[23] !== x || e[24] !== y ? (w = /* @__PURE__ */ b(G, { gap: "0", borderRadius: "sm", background: h, transition: "background 150ms ease", onDragOver: m, onDragLeave: x, onDrop: y, children: [
1908
+ S,
1909
+ C
1910
+ ] }), e[19] = h, e[20] = m, e[21] = S, e[22] = C, e[23] = x, e[24] = y, e[25] = w) : w = e[25], w;
1911
+ }, vl = (l) => {
1912
+ const e = A(20), {
1913
+ column: n,
1549
1914
  onCreateStart: t,
1550
- onColumnAction: o
1551
- } = n;
1552
- let r;
1553
- e[0] !== l.label ? (r = /* @__PURE__ */ i(C, { textStyle: "label/L/medium", children: l.label }), e[0] = l.label, e[1] = r) : r = e[1];
1554
- const s = l.color ?? "gray";
1915
+ onColumnAction: r
1916
+ } = l;
1917
+ let o;
1918
+ e[0] !== n.label ? (o = /* @__PURE__ */ i($, { textStyle: "label/L/medium", children: n.label }), e[0] = n.label, e[1] = o) : o = e[1];
1919
+ const s = n.color ?? "gray";
1555
1920
  let a;
1556
- e[2] !== l.items.length || e[3] !== s ? (a = /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: s, children: l.items.length }), e[2] = l.items.length, e[3] = s, e[4] = a) : a = e[4];
1921
+ e[2] !== n.items.length || e[3] !== s ? (a = /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: s, children: n.items.length }), e[2] = n.items.length, e[3] = s, e[4] = a) : a = e[4];
1557
1922
  let c;
1558
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(ut, {}), e[5] = c) : c = e[5];
1923
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(Ht, {}), e[5] = c) : c = e[5];
1559
1924
  let d;
1560
- e[6] !== l.canCreate || e[7] !== l.id || e[8] !== t ? (d = l.canCreate && t && /* @__PURE__ */ i(Ee, { content: "Create new ticket", children: /* @__PURE__ */ i(_e, { size: "2xs", variant: "outline", onClick: () => t(l.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(ne, { as: Wt, boxSize: "12px" }) }) }), e[6] = l.canCreate, e[7] = l.id, e[8] = t, e[9] = d) : d = e[9];
1561
- let h;
1562
- e[10] !== l.actions || e[11] !== l.id || e[12] !== l.label || e[13] !== o ? (h = l.actions.length > 0 && /* @__PURE__ */ b(ie.Root, { children: [
1563
- /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(_e, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${l.label}`, children: /* @__PURE__ */ i(ne, { as: At, boxSize: "12px" }) }) }),
1564
- /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "180px", bg: "bg", children: l.actions.map((f) => /* @__PURE__ */ i(Ae, { primaryLabel: f.label, leftIcon: f.icon, onClick: () => o?.(l.id, f.id) }, f.id)) }) })
1565
- ] }), e[10] = l.actions, e[11] = l.id, e[12] = l.label, e[13] = o, e[14] = h) : h = e[14];
1925
+ e[6] !== n.canCreate || e[7] !== n.id || e[8] !== t ? (d = n.canCreate && t && /* @__PURE__ */ i(Ee, { content: "Create new ticket", children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "outline", onClick: () => t(n.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(oe, { as: hn, boxSize: "12px" }) }) }), e[6] = n.canCreate, e[7] = n.id, e[8] = t, e[9] = d) : d = e[9];
1926
+ let u;
1927
+ e[10] !== n.actions || e[11] !== n.id || e[12] !== n.label || e[13] !== r ? (u = n.actions.length > 0 && /* @__PURE__ */ b(le.Root, { children: [
1928
+ /* @__PURE__ */ i(le.Trigger, { asChild: !0, children: /* @__PURE__ */ i(Se, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${n.label}`, children: /* @__PURE__ */ i(oe, { as: mn, boxSize: "12px" }) }) }),
1929
+ /* @__PURE__ */ i(le.Positioner, { children: /* @__PURE__ */ i(le.Content, { minW: "180px", bg: "bg", children: n.actions.map((f) => /* @__PURE__ */ i(We, { primaryLabel: f.label, leftIcon: f.icon, onClick: () => r?.(n.id, f.id) }, f.id)) }) })
1930
+ ] }), e[10] = n.actions, e[11] = n.id, e[12] = n.label, e[13] = r, e[14] = u) : u = e[14];
1566
1931
  let g;
1567
- return e[15] !== r || e[16] !== a || e[17] !== d || e[18] !== h ? (g = /* @__PURE__ */ b(F, { padding: "xs", gap: "xs", alignItems: "center", children: [
1568
- r,
1932
+ return e[15] !== o || e[16] !== a || e[17] !== d || e[18] !== u ? (g = /* @__PURE__ */ b(X, { padding: "xs", gap: "xs", alignItems: "center", children: [
1933
+ o,
1569
1934
  a,
1570
1935
  c,
1571
1936
  d,
1572
- h
1573
- ] }), e[15] = r, e[16] = a, e[17] = d, e[18] = h, e[19] = g) : g = e[19], g;
1937
+ u
1938
+ ] }), e[15] = o, e[16] = a, e[17] = d, e[18] = u, e[19] = g) : g = e[19], g;
1574
1939
  };
1575
- function Fl(n) {
1940
+ function wl(l) {
1576
1941
  return (e) => {
1577
- e.dataTransfer.setData("text/plain", n), e.dataTransfer.effectAllowed = "move";
1942
+ e.dataTransfer.setData("text/plain", l), e.dataTransfer.effectAllowed = "move";
1578
1943
  };
1579
1944
  }
1580
- const Vl = [{
1945
+ function Il(l) {
1946
+ return !l;
1947
+ }
1948
+ const kl = [{
1581
1949
  id: "ticket",
1582
1950
  header: "",
1583
1951
  cell: ({
1584
- row: n
1585
- }) => /* @__PURE__ */ i(Yl, { row: n })
1586
- }], Bn = (n) => {
1952
+ row: l
1953
+ }) => /* @__PURE__ */ i(Tl, { row: l })
1954
+ }], Pl = (l) => {
1587
1955
  const {
1588
1956
  items: e,
1589
- selectedItemId: l = null,
1957
+ selectedItemId: n = null,
1590
1958
  onItemClick: t
1591
- } = n, o = Gt({
1959
+ } = l, [r, o] = me(!0), s = bn({
1592
1960
  data: e,
1593
- columns: Vl,
1961
+ columns: kl,
1594
1962
  state: {
1595
- expanded: !0
1963
+ expanded: r
1596
1964
  },
1597
- getSubRows: (r) => r.children,
1598
- getCoreRowModel: Ft(),
1599
- getExpandedRowModel: Xt(),
1600
- getRowId: (r) => r.id
1965
+ onExpandedChange: o,
1966
+ getSubRows: (a) => a.children,
1967
+ getCoreRowModel: Sn(),
1968
+ getExpandedRowModel: xn(),
1969
+ getRowId: (a) => a.id
1601
1970
  });
1602
- return /* @__PURE__ */ i(E, { children: o.getRowModel().rows.map((r) => {
1603
- const s = r.original, a = s.id === l;
1604
- return /* @__PURE__ */ i(F, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: a ? "bg.muted" : "transparent", _hover: {
1971
+ return /* @__PURE__ */ i(V, { children: s.getRowModel().rows.map((a) => {
1972
+ const c = a.original, d = c.id === n, u = a.getCanExpand();
1973
+ return /* @__PURE__ */ i(X, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: d ? "bg.muted" : "transparent", _hover: {
1605
1974
  background: "bg.muted"
1606
1975
  }, onClick: () => {
1607
- s.onClick?.(), t?.(s);
1608
- }, "data-selected": a ? "true" : void 0, children: Vt(r.getVisibleCells()[0].column.columnDef.cell, r.getVisibleCells()[0].getContext()) }, r.id);
1976
+ u ? a.toggleExpanded() : (c.onClick?.(), t?.(c));
1977
+ }, "data-selected": d ? "true" : void 0, children: yn(a.getVisibleCells()[0].column.columnDef.cell, a.getVisibleCells()[0].getContext()) }, a.id);
1609
1978
  }) });
1610
- }, Yl = (n) => {
1611
- const e = $(25), {
1612
- row: l
1613
- } = n, t = l.original, o = l.depth, r = o > 0 ? `${o * 24}px` : void 0;
1979
+ }, Tl = (l) => {
1980
+ const e = A(25), {
1981
+ row: n
1982
+ } = l, t = n.original, r = n.depth, o = r > 0 ? `${r * 24}px` : void 0;
1614
1983
  let s;
1615
- e[0] !== o || e[1] !== l ? (s = l.getCanExpand() ? /* @__PURE__ */ i(Ul, { row: l }) : o > 0 ? /* @__PURE__ */ i(Kl, {}) : null, e[0] = o, e[1] = l, e[2] = s) : s = e[2];
1984
+ e[0] !== r || e[1] !== n ? (s = n.getCanExpand() ? /* @__PURE__ */ i(Dl, { row: n }) : r > 0 ? /* @__PURE__ */ i(_l, {}) : null, e[0] = r, e[1] = n, e[2] = s) : s = e[2];
1616
1985
  let a;
1617
- e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(ne, { 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];
1986
+ e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(oe, { 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];
1618
1987
  let c;
1619
- e[6] !== t.ticketId ? (c = /* @__PURE__ */ i(C, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
1988
+ e[6] !== t.ticketId ? (c = /* @__PURE__ */ i($, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
1620
1989
  let d;
1621
- e[8] !== t.title ? (d = /* @__PURE__ */ i(C, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
1622
- let h;
1623
- e[10] !== t.badges ? (h = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(qe, { gap: "2xs", flexShrink: 0, children: t.badges.map(ql) }), e[10] = t.badges, e[11] = h) : h = e[11];
1990
+ e[8] !== t.title ? (d = /* @__PURE__ */ i($, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
1991
+ let u;
1992
+ e[10] !== t.badges ? (u = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(bt, { gap: "2xs", flexShrink: 0, children: t.badges.map($l) }), e[10] = t.badges, e[11] = u) : u = e[11];
1624
1993
  let g;
1625
- e[12] !== t.assigneeIcon ? (g = t.assigneeIcon && /* @__PURE__ */ i(E, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = g) : g = e[13];
1994
+ e[12] !== t.assigneeIcon ? (g = t.assigneeIcon && /* @__PURE__ */ i(V, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = g) : g = e[13];
1626
1995
  let f;
1627
- e[14] !== t.date ? (f = t.date && /* @__PURE__ */ i(C, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = f) : f = e[15];
1628
- let u;
1629
- return e[16] !== r || e[17] !== s || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== h || e[22] !== g || e[23] !== f ? (u = /* @__PURE__ */ b(F, { gap: "sm", flex: "1", paddingLeft: r, children: [
1996
+ e[14] !== t.date ? (f = t.date && /* @__PURE__ */ i($, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = f) : f = e[15];
1997
+ let p;
1998
+ return e[16] !== o || e[17] !== s || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== u || e[22] !== g || e[23] !== f ? (p = /* @__PURE__ */ b(X, { gap: "sm", flex: "1", paddingLeft: o, children: [
1630
1999
  s,
1631
2000
  a,
1632
2001
  c,
1633
2002
  d,
1634
- h,
2003
+ u,
1635
2004
  g,
1636
2005
  f
1637
- ] }), e[16] = r, e[17] = s, e[18] = a, e[19] = c, e[20] = d, e[21] = h, e[22] = g, e[23] = f, e[24] = u) : u = e[24], u;
1638
- }, Ul = (n) => {
1639
- const e = $(7), {
1640
- row: l
1641
- } = n;
1642
- let t;
1643
- e[0] !== l ? (t = (a) => {
1644
- a.stopPropagation(), l.toggleExpanded();
1645
- }, e[0] = l, e[1] = t) : t = e[1];
1646
- const o = l.getIsExpanded() ? "rotate(90deg)" : "rotate(0deg)";
1647
- let r;
1648
- e[2] !== o ? (r = /* @__PURE__ */ i(ne, { as: me, boxSize: "14px", color: "fg.muted", transform: o, transition: "transform 0.15s ease" }), e[2] = o, e[3] = r) : r = e[3];
1649
- let s;
1650
- return e[4] !== t || e[5] !== r ? (s = /* @__PURE__ */ i(E, { as: "button", onClick: t, cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", children: r }), e[4] = t, e[5] = r, e[6] = s) : s = e[6], s;
1651
- }, Kl = () => {
1652
- const n = $(1);
2006
+ ] }), e[16] = o, e[17] = s, e[18] = a, e[19] = c, e[20] = d, e[21] = u, e[22] = g, e[23] = f, e[24] = p) : p = e[24], p;
2007
+ }, Dl = (l) => {
2008
+ const e = A(6), {
2009
+ row: n
2010
+ } = l, t = n.getIsExpanded(), r = t ? "true" : void 0, o = t ? "Collapse group" : "Expand group", s = t ? "rotate(90deg)" : "rotate(0deg)";
2011
+ let a;
2012
+ e[0] !== s ? (a = /* @__PURE__ */ i(ye, { size: 14, style: {
2013
+ color: "var(--chakra-colors-fg-muted)",
2014
+ transform: s,
2015
+ transition: "transform 0.15s ease"
2016
+ } }), e[0] = s, e[1] = a) : a = e[1];
2017
+ let c;
2018
+ return e[2] !== r || e[3] !== o || e[4] !== a ? (c = /* @__PURE__ */ i(V, { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", "data-expanded": r, "aria-label": o, children: a }), e[2] = r, e[3] = o, e[4] = a, e[5] = c) : c = e[5], c;
2019
+ }, _l = () => {
2020
+ const l = A(1);
1653
2021
  let e;
1654
- return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(E, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
1655
- /* @__PURE__ */ i(E, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
1656
- /* @__PURE__ */ i(E, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
1657
- ] }), n[0] = e) : e = n[0], e;
2022
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(V, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
2023
+ /* @__PURE__ */ i(V, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
2024
+ /* @__PURE__ */ i(V, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
2025
+ ] }), l[0] = e) : e = l[0], e;
2026
+ };
2027
+ function $l(l) {
2028
+ return /* @__PURE__ */ i(Te, { variant: "subtle", colorPalette: l.color ?? "gray", textStyle: "label/XS/medium", children: l.label }, l.label);
2029
+ }
2030
+ const ke = {
2031
+ status: "No status",
2032
+ complexity: "Unspecified",
2033
+ assignee: "Unassigned",
2034
+ priority: "Unspecified"
2035
+ }, dt = {
2036
+ high: 3,
2037
+ medium: 2,
2038
+ low: 1
2039
+ }, ut = {
2040
+ p0: 5,
2041
+ p1: 4,
2042
+ p2: 3,
2043
+ p3: 2,
2044
+ p4: 1
2045
+ }, Pe = (l, e) => !l || l.trim() === "" ? e : l, gt = (l, e) => e === "none" ? "All" : e === "status" ? Pe(l.status, ke.status) : e === "complexity" ? Pe(l.complexity, ke.complexity) : e === "assignee" ? Pe(l.assignee, ke.assignee) : Pe(l.priority, ke.priority), ft = (l, e) => l.localeCompare(e, void 0, {
2046
+ numeric: !0
2047
+ }), Ae = (l, e) => e === "asc" ? l : l * -1, Ge = (l, e) => e.field === "manual" ? l : [...l].sort((n, t) => {
2048
+ if (e.field === "updated") {
2049
+ const r = new Date(n.updatedAt ?? 0).getTime(), o = new Date(t.updatedAt ?? 0).getTime();
2050
+ return Ae(r - o, e.direction);
2051
+ }
2052
+ if (e.field === "title")
2053
+ return Ae(n.title.localeCompare(t.title), e.direction);
2054
+ if (e.field === "complexity") {
2055
+ const r = dt[(n.complexity ?? "").toLowerCase()] ?? 0, o = dt[(t.complexity ?? "").toLowerCase()] ?? 0;
2056
+ return Ae(r - o, e.direction);
2057
+ }
2058
+ if (e.field === "priority") {
2059
+ const r = ut[(n.priority ?? "").toLowerCase()] ?? 0, o = ut[(t.priority ?? "").toLowerCase()] ?? 0;
2060
+ return Ae(r - o, e.direction);
2061
+ }
2062
+ return Ae(n.ticketId.localeCompare(t.ticketId, void 0, {
2063
+ numeric: !0
2064
+ }), e.direction);
2065
+ }), Ll = (l, e) => {
2066
+ const {
2067
+ columnGrouping: n,
2068
+ rowGrouping: t,
2069
+ knownColumnKeys: r
2070
+ } = e, o = /* @__PURE__ */ new Map();
2071
+ if (r)
2072
+ for (const a of r)
2073
+ o.set(a, []);
2074
+ for (const a of l) {
2075
+ const c = gt(a, n);
2076
+ o.set(c, [...o.get(c) ?? [], a]);
2077
+ }
2078
+ return [...o.entries()].sort(([a], [c]) => ft(a, c)).map(([a, c]) => {
2079
+ if (t === "none")
2080
+ return {
2081
+ key: a,
2082
+ label: a,
2083
+ tickets: c,
2084
+ rows: []
2085
+ };
2086
+ const d = /* @__PURE__ */ new Map();
2087
+ for (const g of c) {
2088
+ const f = gt(g, t);
2089
+ d.set(f, [...d.get(f) ?? [], g]);
2090
+ }
2091
+ const u = [...d.entries()].sort(([g], [f]) => ft(g, f)).map(([g, f]) => ({
2092
+ key: g,
2093
+ label: g,
2094
+ tickets: f
2095
+ }));
2096
+ return {
2097
+ key: a,
2098
+ label: a,
2099
+ tickets: c,
2100
+ rows: u
2101
+ };
2102
+ });
2103
+ }, _t = (l, e) => e === "labels" ? l.labels ?? [] : e === "status" ? [Pe(l.status, ke.status)] : e === "assignee" ? [Pe(l.assignee, ke.assignee)] : e === "priority" ? [Pe(l.priority, ke.priority)] : [Pe(l.complexity, ke.complexity)], Rl = (l, e) => {
2104
+ const n = Object.entries(e).filter(([, t]) => t && t.length > 0);
2105
+ return n.length === 0 ? l : l.filter((t) => n.every(([r, o]) => _t(t, r).some((a) => o?.includes(a))));
2106
+ }, El = (l, e) => {
2107
+ const n = {};
2108
+ for (const t of l)
2109
+ for (const r of _t(t, e))
2110
+ n[r] = (n[r] ?? 0) + 1;
2111
+ return n;
2112
+ }, zl = {
2113
+ viewMode: "board",
2114
+ columnGrouping: "status",
2115
+ rowGrouping: "none",
2116
+ ordering: {
2117
+ field: "manual",
2118
+ direction: "asc"
2119
+ },
2120
+ displayProperties: ["complexity", "priority", "labels"]
2121
+ }, Al = [{
2122
+ value: "status",
2123
+ label: "Status"
2124
+ }, {
2125
+ value: "complexity",
2126
+ label: "Complexity"
2127
+ }, {
2128
+ value: "assignee",
2129
+ label: "Assignee"
2130
+ }, {
2131
+ value: "priority",
2132
+ label: "Priority"
2133
+ }, {
2134
+ value: "none",
2135
+ label: "No grouping"
2136
+ }], Ol = [{
2137
+ value: "manual",
2138
+ label: "Manual"
2139
+ }, {
2140
+ value: "updated",
2141
+ label: "Updated"
2142
+ }, {
2143
+ value: "title",
2144
+ label: "Title"
2145
+ }, {
2146
+ value: "complexity",
2147
+ label: "Complexity"
2148
+ }, {
2149
+ value: "priority",
2150
+ label: "Priority"
2151
+ }, {
2152
+ value: "ticketId",
2153
+ label: "ID"
2154
+ }], Gl = [{
2155
+ value: "id",
2156
+ label: "ID"
2157
+ }, {
2158
+ value: "status",
2159
+ label: "Status"
2160
+ }, {
2161
+ value: "assignee",
2162
+ label: "Assignee"
2163
+ }, {
2164
+ value: "priority",
2165
+ label: "Priority"
2166
+ }, {
2167
+ value: "complexity",
2168
+ label: "Complexity"
2169
+ }, {
2170
+ value: "labels",
2171
+ label: "Labels"
2172
+ }, {
2173
+ value: "updated",
2174
+ label: "Updated"
2175
+ }], Ml = "pstdio/ui/tickets-workspace", Nl = (l) => `${Ml}/${l}`, Xe = {
2176
+ settings: zl,
2177
+ filters: {}
2178
+ }, Hl = () => ({
2179
+ getItem: () => null,
2180
+ setItem: () => {
2181
+ },
2182
+ removeItem: () => {
2183
+ }
2184
+ }), Wl = (l, e) => l.includes(e) ? l.filter((n) => n !== e) : [...l, e], Fl = (l) => {
2185
+ const {
2186
+ storageKey: e,
2187
+ initialState: n
2188
+ } = l, t = {
2189
+ settings: {
2190
+ ...Xe.settings,
2191
+ ...n?.settings ?? {}
2192
+ },
2193
+ filters: n?.filters ?? Xe.filters
2194
+ };
2195
+ return wt()(Ct((r) => ({
2196
+ ...t,
2197
+ setViewMode: (o) => r((s) => ({
2198
+ ...s,
2199
+ settings: {
2200
+ ...s.settings,
2201
+ viewMode: o
2202
+ }
2203
+ })),
2204
+ setColumnGrouping: (o) => r((s) => ({
2205
+ ...s,
2206
+ settings: {
2207
+ ...s.settings,
2208
+ columnGrouping: o
2209
+ }
2210
+ })),
2211
+ setRowGrouping: (o) => r((s) => ({
2212
+ ...s,
2213
+ settings: {
2214
+ ...s.settings,
2215
+ rowGrouping: o
2216
+ }
2217
+ })),
2218
+ setOrdering: (o) => r((s) => ({
2219
+ ...s,
2220
+ settings: {
2221
+ ...s.settings,
2222
+ ordering: o
2223
+ }
2224
+ })),
2225
+ setOrderingField: (o) => r((s) => ({
2226
+ ...s,
2227
+ settings: {
2228
+ ...s.settings,
2229
+ ordering: {
2230
+ ...s.settings.ordering,
2231
+ field: o
2232
+ }
2233
+ }
2234
+ })),
2235
+ toggleSortDirection: () => r((o) => ({
2236
+ ...o,
2237
+ settings: {
2238
+ ...o.settings,
2239
+ ordering: {
2240
+ ...o.settings.ordering,
2241
+ direction: o.settings.ordering.direction === "asc" ? "desc" : "asc"
2242
+ }
2243
+ }
2244
+ })),
2245
+ toggleDisplayProperty: (o) => r((s) => {
2246
+ const a = s.settings.displayProperties.includes(o) ? s.settings.displayProperties.filter((c) => c !== o) : [...s.settings.displayProperties, o];
2247
+ return {
2248
+ ...s,
2249
+ settings: {
2250
+ ...s.settings,
2251
+ displayProperties: a
2252
+ }
2253
+ };
2254
+ }),
2255
+ setFilter: (o, s) => r((a) => ({
2256
+ ...a,
2257
+ filters: {
2258
+ ...a.filters,
2259
+ [o]: s
2260
+ }
2261
+ })),
2262
+ toggleFilterValue: (o, s) => r((a) => {
2263
+ const c = a.filters[o] ?? [], d = Wl(c, s), u = {
2264
+ ...a.filters,
2265
+ [o]: d
2266
+ };
2267
+ return d.length === 0 && delete u[o], {
2268
+ ...a,
2269
+ filters: u
2270
+ };
2271
+ }),
2272
+ clearFilter: (o) => r((s) => {
2273
+ const a = {
2274
+ ...s.filters
2275
+ };
2276
+ return delete a[o], {
2277
+ ...s,
2278
+ filters: a
2279
+ };
2280
+ }),
2281
+ clearAllFilters: () => r((o) => ({
2282
+ ...o,
2283
+ filters: {}
2284
+ })),
2285
+ reset: () => r(Xe)
2286
+ }), {
2287
+ name: Nl(e),
2288
+ storage: vt(() => typeof globalThis.localStorage > "u" ? Hl() : globalThis.localStorage),
2289
+ partialize: (r) => ({
2290
+ settings: r.settings,
2291
+ filters: r.filters
2292
+ })
2293
+ }));
2294
+ }, pt = /* @__PURE__ */ new Map(), Bl = (l) => {
2295
+ const e = pt.get(l);
2296
+ if (e)
2297
+ return e;
2298
+ const n = Fl({
2299
+ storageKey: l
2300
+ });
2301
+ return pt.set(l, n), n;
2302
+ }, pe = (l, e) => {
2303
+ const n = A(2);
2304
+ let t;
2305
+ return n[0] !== l ? (t = Bl(l), n[0] = l, n[1] = t) : t = n[1], yt(t, e);
2306
+ }, Vl = {
2307
+ p0: "red",
2308
+ p1: "red",
2309
+ p2: "orange",
2310
+ p3: "yellow",
2311
+ p4: "gray"
2312
+ }, jl = {
2313
+ high: "red",
2314
+ medium: "yellow",
2315
+ low: "green"
2316
+ }, Ne = (l) => l.replaceAll("_", " ").split(" ").filter((e) => e.length > 0).map((e) => e[0].toUpperCase() + e.slice(1)).join(" "), Xl = {
2317
+ status: (l) => l.status ? [l.status] : [],
2318
+ assignee: (l) => l.assignee ? [l.assignee] : [],
2319
+ priority: (l) => l.priority ? [l.priority] : [],
2320
+ complexity: (l) => l.complexity ? [l.complexity] : [],
2321
+ labels: (l) => l.labels ?? []
2322
+ }, Oe = (l, e) => {
2323
+ const n = /* @__PURE__ */ new Set();
2324
+ for (const t of l) {
2325
+ const r = Xl[e](t);
2326
+ for (const o of r)
2327
+ n.add(o);
2328
+ }
2329
+ return [...n].sort((t, r) => t.localeCompare(r, void 0, {
2330
+ numeric: !0
2331
+ })).map((t) => ({
2332
+ value: t,
2333
+ label: Ne(t)
2334
+ }));
2335
+ }, Ul = (l) => [{
2336
+ id: "status",
2337
+ label: "Status",
2338
+ options: Oe(l, "status")
2339
+ }, {
2340
+ id: "assignee",
2341
+ label: "Assignee",
2342
+ options: Oe(l, "assignee")
2343
+ }, {
2344
+ id: "priority",
2345
+ label: "Priority",
2346
+ options: Oe(l, "priority")
2347
+ }, {
2348
+ id: "complexity",
2349
+ label: "Complexity",
2350
+ options: Oe(l, "complexity")
2351
+ }, {
2352
+ id: "labels",
2353
+ label: "Labels",
2354
+ options: Oe(l, "labels")
2355
+ }], ht = (l, e) => {
2356
+ const n = [], t = (r) => e.includes(r);
2357
+ if (t("status") && l.status && n.push({
2358
+ label: l.status,
2359
+ color: l.statusColor ?? "gray"
2360
+ }), t("assignee") && l.assignee && n.push({
2361
+ label: l.assignee,
2362
+ color: "blue"
2363
+ }), t("priority") && l.priority && n.push({
2364
+ label: l.priority,
2365
+ color: Vl[l.priority.toLowerCase()] ?? "gray"
2366
+ }), t("complexity") && l.complexity && n.push({
2367
+ label: l.complexity,
2368
+ color: jl[l.complexity.toLowerCase()] ?? "gray"
2369
+ }), t("updated") && l.updatedAt && n.push({
2370
+ label: new Date(l.updatedAt).toLocaleDateString(),
2371
+ color: "gray"
2372
+ }), t("labels"))
2373
+ for (const r of l.labels ?? [])
2374
+ n.push({
2375
+ label: r,
2376
+ color: "purple"
2377
+ });
2378
+ return n;
2379
+ }, Xi = (l) => {
2380
+ const e = A(64), {
2381
+ tickets: n,
2382
+ storageKey: t,
2383
+ selectedTicketId: r,
2384
+ groupingOptions: o,
2385
+ orderingOptions: s,
2386
+ displayPropertyOptions: a,
2387
+ filterCategories: c,
2388
+ knownColumnKeys: d,
2389
+ emptyTitle: u,
2390
+ emptyDescription: g,
2391
+ onTicketClick: f,
2392
+ onMoveTicket: p,
2393
+ onMoveToGroup: h,
2394
+ onCreateTicket: m,
2395
+ onColumnAction: x,
2396
+ getBoardColumnConfig: y
2397
+ } = l, I = r === void 0 ? null : r, k = o === void 0 ? Al : o, P = s === void 0 ? Ol : s, D = a === void 0 ? Gl : a, T = u === void 0 ? "No tickets found" : u, _ = g === void 0 ? "Try changing filters or display settings." : g, S = pe(t, Yl), C = pe(t, Kl), w = pe(t, ql), v = pe(t, Jl), E = pe(t, Ql), L = pe(t, Zl), z = pe(t, ei), O = pe(t, ti), W = pe(t, ni), H = pe(t, li), B = pe(t, ii);
2398
+ let N, M, R, F;
2399
+ if (e[0] !== c || e[1] !== C || e[2] !== y || e[3] !== d || e[4] !== f || e[5] !== S.columnGrouping || e[6] !== S.displayProperties || e[7] !== S.ordering || e[8] !== S.rowGrouping || e[9] !== n) {
2400
+ const ee = Rl(n, C);
2401
+ N = c ?? Ul(n);
2402
+ let Z;
2403
+ e[14] !== n ? (Z = (j) => [j.id, El(n, j.id)], e[14] = n, e[15] = Z) : Z = e[15], M = Object.fromEntries(N.map(Z));
2404
+ const U = d ?? (S.columnGrouping !== "none" ? N.find((j) => j.id === S.columnGrouping)?.options.map(ri) : void 0), ie = Ll(ee, {
2405
+ columnGrouping: S.columnGrouping,
2406
+ rowGrouping: S.rowGrouping,
2407
+ knownColumnKeys: U
2408
+ });
2409
+ let ce;
2410
+ e[16] !== f || e[17] !== S.displayProperties ? (ce = (j) => ({
2411
+ id: j.id,
2412
+ ticketId: S.displayProperties.includes("id") ? j.ticketId : "",
2413
+ title: j.title,
2414
+ badges: ht(j, S.displayProperties),
2415
+ onClick: () => f?.(j)
2416
+ }), e[16] = f, e[17] = S.displayProperties, e[18] = ce) : ce = e[18];
2417
+ const re = ce;
2418
+ let ue;
2419
+ e[19] !== S.ordering || e[20] !== re ? (ue = (j) => ({
2420
+ id: `group::${j.key}`,
2421
+ ticketId: "",
2422
+ title: `${Ne(j.label)} (${j.tickets.length})`,
2423
+ children: Ge(j.tickets, S.ordering).map((ne) => re(ne))
2424
+ }), e[19] = S.ordering, e[20] = re, e[21] = ue) : ue = e[21];
2425
+ const fe = ue;
2426
+ R = S.columnGrouping === "none" ? Ge(ee, S.ordering).map((j) => re(j)) : ie.map((j) => j.rows.length > 0 ? {
2427
+ id: `group::${j.key}`,
2428
+ ticketId: "",
2429
+ title: `${Ne(j.label)} (${j.tickets.length})`,
2430
+ children: j.rows.map((ne) => ({
2431
+ ...fe(ne),
2432
+ id: `group::${j.key}::${ne.key}`
2433
+ }))
2434
+ } : fe(j));
2435
+ let ae;
2436
+ e[22] !== f || e[23] !== S.displayProperties ? (ae = (j) => j.map((ne) => ({
2437
+ id: ne.id,
2438
+ cardProps: {
2439
+ ticketId: S.displayProperties.includes("id") ? ne.ticketId : "",
2440
+ parentPath: ne.parentPath,
2441
+ title: ne.title,
2442
+ badges: ht(ne, S.displayProperties),
2443
+ onClick: () => f?.(ne)
2444
+ }
2445
+ })), e[22] = f, e[23] = S.displayProperties, e[24] = ae) : ae = e[24];
2446
+ const be = ae;
2447
+ let ge;
2448
+ e[25] !== y || e[26] !== S.ordering || e[27] !== be ? (ge = (j) => {
2449
+ const ne = y?.(j.key) ?? {}, Rt = Ge(j.tickets, S.ordering), Et = j.rows.length > 0 ? j.rows.map((Be) => ({
2450
+ key: Be.key,
2451
+ label: Ne(Be.label),
2452
+ items: be(Ge(Be.tickets, S.ordering))
2453
+ })) : void 0;
2454
+ return {
2455
+ id: j.key,
2456
+ label: j.label,
2457
+ color: ne.color,
2458
+ canDragIn: ne.canDragIn ?? !1,
2459
+ canDragOut: ne.canDragOut ?? !1,
2460
+ canCreate: ne.canCreate ?? !1,
2461
+ actions: ne.actions ?? [],
2462
+ items: be(Rt),
2463
+ groups: Et
2464
+ };
2465
+ }, e[25] = y, e[26] = S.ordering, e[27] = be, e[28] = ge) : ge = e[28], F = ie.map(ge), e[0] = c, e[1] = C, e[2] = y, e[3] = d, e[4] = f, e[5] = S.columnGrouping, e[6] = S.displayProperties, e[7] = S.ordering, e[8] = S.rowGrouping, e[9] = n, e[10] = N, e[11] = M, e[12] = R, e[13] = F;
2466
+ } else
2467
+ N = e[10], M = e[11], R = e[12], F = e[13];
2468
+ const Y = F;
2469
+ let q;
2470
+ e[29] !== N || e[30] !== B || e[31] !== H || e[32] !== M || e[33] !== C || e[34] !== W ? (q = /* @__PURE__ */ i(xl, { categories: N, filters: C, countsByCategory: M, onToggleFilterValue: W, onClearFilter: H, onClearAll: B }), e[29] = N, e[30] = B, e[31] = H, e[32] = M, e[33] = C, e[34] = W, e[35] = q) : q = e[35];
2471
+ let J;
2472
+ e[36] !== D || e[37] !== k || e[38] !== P || e[39] !== v || e[40] !== L || e[41] !== E || e[42] !== w || e[43] !== S || e[44] !== O || e[45] !== z ? (J = /* @__PURE__ */ i(ml, { settings: S, groupingOptions: k, orderingOptions: P, displayPropertyOptions: D, onViewModeChange: w, onColumnGroupingChange: v, onRowGroupingChange: E, onOrderingFieldChange: L, onSortDirectionToggle: z, onDisplayPropertyToggle: O }), e[36] = D, e[37] = k, e[38] = P, e[39] = v, e[40] = L, e[41] = E, e[42] = w, e[43] = S, e[44] = O, e[45] = z, e[46] = J) : J = e[46];
2473
+ let K;
2474
+ e[47] !== q || e[48] !== J ? (K = /* @__PURE__ */ b(X, { justifyContent: "flex-end", gap: "2xs", children: [
2475
+ q,
2476
+ J
2477
+ ] }), e[47] = q, e[48] = J, e[49] = K) : K = e[49];
2478
+ let Q;
2479
+ e[50] !== Y || e[51] !== _ || e[52] !== T || e[53] !== R || e[54] !== x || e[55] !== m || e[56] !== p || e[57] !== h || e[58] !== I || e[59] !== S.viewMode ? (Q = S.viewMode === "board" ? /* @__PURE__ */ i(V, { flex: "1", minH: "0", children: Y.length > 0 ? /* @__PURE__ */ i(yl, { columns: Y, selectedItemId: I, onMoveItem: p, onMoveToGroup: h, onCreateStart: m, onColumnAction: x }) : /* @__PURE__ */ i(Ke, { title: T, description: _, height: "100%", borderWidth: "1px", borderRadius: "md" }) }) : R.length > 0 ? /* @__PURE__ */ i(Pl, { items: R, selectedItemId: I }) : /* @__PURE__ */ i(Ke, { title: T, description: _, borderWidth: "1px", borderRadius: "md" }), e[50] = Y, e[51] = _, e[52] = T, e[53] = R, e[54] = x, e[55] = m, e[56] = p, e[57] = h, e[58] = I, e[59] = S.viewMode, e[60] = Q) : Q = e[60];
2480
+ let te;
2481
+ return e[61] !== Q || e[62] !== K ? (te = /* @__PURE__ */ b(G, { gap: "sm", height: "100%", minH: "0", children: [
2482
+ K,
2483
+ Q
2484
+ ] }), e[61] = Q, e[62] = K, e[63] = te) : te = e[63], te;
1658
2485
  };
1659
- function ql(n) {
1660
- return /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: n.color ?? "gray", textStyle: "label/XS/medium", children: n.label }, n.label);
2486
+ function Yl(l) {
2487
+ return l.settings;
2488
+ }
2489
+ function Kl(l) {
2490
+ return l.filters;
2491
+ }
2492
+ function ql(l) {
2493
+ return l.setViewMode;
2494
+ }
2495
+ function Jl(l) {
2496
+ return l.setColumnGrouping;
2497
+ }
2498
+ function Ql(l) {
2499
+ return l.setRowGrouping;
2500
+ }
2501
+ function Zl(l) {
2502
+ return l.setOrderingField;
1661
2503
  }
1662
- const Jl = pt({
2504
+ function ei(l) {
2505
+ return l.toggleSortDirection;
2506
+ }
2507
+ function ti(l) {
2508
+ return l.toggleDisplayProperty;
2509
+ }
2510
+ function ni(l) {
2511
+ return l.toggleFilterValue;
2512
+ }
2513
+ function li(l) {
2514
+ return l.clearFilter;
2515
+ }
2516
+ function ii(l) {
2517
+ return l.clearAllFilters;
2518
+ }
2519
+ function ri(l) {
2520
+ return l.value;
2521
+ }
2522
+ const oi = Wt({
1663
2523
  placement: "bottom-end",
1664
2524
  pauseOnPageIdle: !0
1665
- }), On = () => {
1666
- const n = $(1);
2525
+ }), Ui = () => {
2526
+ const l = A(1);
1667
2527
  let e;
1668
- return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(mt, { children: /* @__PURE__ */ i(bt, { toaster: Jl, insetInline: {
2528
+ return l[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(Qe, { children: /* @__PURE__ */ i(Ft, { toaster: oi, insetInline: {
1669
2529
  mdDown: "4"
1670
- }, children: Ql }) }), n[0] = e) : e = n[0], e;
2530
+ }, children: si }) }), l[0] = e) : e = l[0], e;
1671
2531
  };
1672
- function Ql(n) {
1673
- return /* @__PURE__ */ b($e.Root, { width: {
2532
+ function si(l) {
2533
+ return /* @__PURE__ */ b(Le.Root, { width: {
1674
2534
  md: "sm"
1675
2535
  }, children: [
1676
- n.type === "loading" ? /* @__PURE__ */ i(xt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i($e.Indicator, {}),
1677
- /* @__PURE__ */ b(D, { gap: "1", flex: "1", maxWidth: "100%", children: [
1678
- n.title && /* @__PURE__ */ i($e.Title, { children: n.title }),
1679
- n.description && /* @__PURE__ */ i($e.Description, { children: n.description })
2536
+ l.type === "loading" ? /* @__PURE__ */ i(Bt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i(Le.Indicator, {}),
2537
+ /* @__PURE__ */ b(G, { gap: "1", flex: "1", maxWidth: "100%", children: [
2538
+ l.title && /* @__PURE__ */ i(Le.Title, { children: l.title }),
2539
+ l.description && /* @__PURE__ */ i(Le.Description, { children: l.description })
1680
2540
  ] }),
1681
- n.action && /* @__PURE__ */ i($e.ActionTrigger, { children: n.action.label }),
1682
- n.closable && /* @__PURE__ */ i($e.CloseTrigger, {})
2541
+ l.action && /* @__PURE__ */ i(Le.ActionTrigger, { children: l.action.label }),
2542
+ l.closable && /* @__PURE__ */ i(Le.CloseTrigger, {})
1683
2543
  ] });
1684
2544
  }
1685
- const Zl = (n) => {
2545
+ const ai = (l) => {
1686
2546
  if (typeof document > "u") return;
1687
- const e = document.documentElement, l = document.body, t = n === "dark" ? "light" : "dark";
1688
- for (const o of [e, l])
1689
- o && (o.classList.remove(t), o.classList.add(n), o.setAttribute("data-theme", n), o.style.colorScheme = n);
1690
- }, it = "theme-preference", ot = vt(null), en = () => {
2547
+ const e = document.documentElement, n = document.body, t = l === "dark" ? "light" : "dark";
2548
+ for (const r of [e, n])
2549
+ r && (r.classList.remove(t), r.classList.add(l), r.setAttribute("data-theme", l), r.style.colorScheme = l);
2550
+ }, $t = "theme-preference", Lt = Yt(null), ci = () => {
1691
2551
  if (typeof window > "u") return "light";
1692
- const n = window.localStorage.getItem(it);
1693
- return n === "dark" || n === "light" ? n : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1694
- }, jn = (n) => {
1695
- const e = $(11), {
1696
- children: l,
2552
+ const l = window.localStorage.getItem($t);
2553
+ return l === "dark" || l === "light" ? l : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2554
+ }, Yi = (l) => {
2555
+ const e = A(11), {
2556
+ children: n,
1697
2557
  initialPreference: t
1698
- } = n;
1699
- let o;
1700
- e[0] !== t ? (o = t === void 0 ? en() : t, e[0] = t, e[1] = o) : o = e[1];
1701
- const r = o, [s, a] = Re(r);
2558
+ } = l;
2559
+ let r;
2560
+ e[0] !== t ? (r = t === void 0 ? ci() : t, e[0] = t, e[1] = r) : r = e[1];
2561
+ const o = r, [s, a] = me(o);
1702
2562
  let c, d;
1703
2563
  e[2] !== s ? (c = () => {
1704
- Zl(s), typeof window < "u" && window.localStorage.setItem(it, s);
1705
- }, d = [s], e[2] = s, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), We(c, d);
1706
- let h;
1707
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => a(tn), e[5] = h) : h = e[5];
1708
- const g = h;
2564
+ ai(s), typeof window < "u" && window.localStorage.setItem($t, s);
2565
+ }, d = [s], e[2] = s, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), He(c, d);
2566
+ let u;
2567
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => a(di), e[5] = u) : u = e[5];
2568
+ const g = u;
1709
2569
  let f;
1710
2570
  e[6] !== s ? (f = {
1711
2571
  themePreference: s,
1712
2572
  setThemePreference: a,
1713
2573
  toggleThemePreference: g
1714
2574
  }, e[6] = s, e[7] = f) : f = e[7];
1715
- let u;
1716
- return e[8] !== l || e[9] !== f ? (u = /* @__PURE__ */ i(ot, { value: f, children: l }), e[8] = l, e[9] = f, e[10] = u) : u = e[10], u;
1717
- }, Gn = () => {
1718
- const n = Ct(ot);
1719
- if (!n)
2575
+ let p;
2576
+ return e[8] !== n || e[9] !== f ? (p = /* @__PURE__ */ i(Lt, { value: f, children: n }), e[8] = n, e[9] = f, e[10] = p) : p = e[10], p;
2577
+ }, Ki = () => {
2578
+ const l = Kt(Lt);
2579
+ if (!l)
1720
2580
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
1721
- return n;
2581
+ return l;
1722
2582
  };
1723
- function tn(n) {
1724
- return n === "dark" ? "light" : "dark";
2583
+ function di(l) {
2584
+ return l === "dark" ? "light" : "dark";
1725
2585
  }
1726
2586
  export {
1727
- Yt as AlertMessage,
1728
- wn as Breadcrumb,
1729
- Vn as ChakraProvider,
1730
- kn as Checkbox,
1731
- Un as CodeDiffEditor,
1732
- Kn as CodeEditor,
1733
- Ut as ContentPlaceholder,
1734
- In as ContentPlaceholderLabel,
1735
- Pn as DeleteConfirmationModal,
1736
- Qe as DiffBubble,
1737
- $n as DiffDrawer,
1738
- Tn as DocsChangelog,
1739
- _n as DocsOutline,
1740
- Rn as DocsPagination,
1741
- Dn as DocsSidebar,
1742
- kt as EmptyState,
1743
- Ln as ErrorBoundary,
1744
- En as FolderPickerDialog,
1745
- zn as HorizontalMenuStack,
1746
- cl as ItemSection,
1747
- Ae as MenuItem,
1748
- Hn as OpenSourceNoticesScreen,
1749
- gl as PanelMenu,
1750
- Nn as Properties,
1751
- he as ScrollArea,
1752
- wl as SessionIndicator,
1753
- Wn as SidebarNext,
1754
- Il as SidebarTree,
1755
- An as Switch,
1756
- jn as ThemePreferenceProvider,
1757
- Mn as TicketBoard,
1758
- jl as TicketCard,
1759
- Bn as TicketList,
1760
- On as Toaster,
2587
+ Cn as AlertMessage,
2588
+ Li as Breadcrumb,
2589
+ Qi as ChakraProvider,
2590
+ vn as Checkbox,
2591
+ er as CodeDiffEditor,
2592
+ tr as CodeEditor,
2593
+ wn as ContentPlaceholder,
2594
+ Ri as ContentPlaceholderLabel,
2595
+ Ei as DeleteConfirmationModal,
2596
+ St as DiffBubble,
2597
+ zi as DiffDrawer,
2598
+ ml as DisplayMenu,
2599
+ Ai as DocsChangelog,
2600
+ Oi as DocsOutline,
2601
+ Gi as DocsPagination,
2602
+ Mi as DocsSidebar,
2603
+ Ke as EmptyState,
2604
+ Ni as ErrorBoundary,
2605
+ xl as FilterMenu,
2606
+ Hi as FolderPickerDialog,
2607
+ Wi as HorizontalMenuStack,
2608
+ Mn as ItemSection,
2609
+ We as MenuItem,
2610
+ Fi as OpenSourceNoticesScreen,
2611
+ Wn as PanelMenu,
2612
+ Bi as Properties,
2613
+ Ce as ScrollArea,
2614
+ Jn as SessionIndicator,
2615
+ Vi as SidebarNext,
2616
+ Zn as SidebarTree,
2617
+ ji as Switch,
2618
+ Yi as ThemePreferenceProvider,
2619
+ yl as TicketBoard,
2620
+ Dt as TicketCard,
2621
+ Pl as TicketList,
2622
+ Xi as TicketsWorkspace,
2623
+ Ui as Toaster,
1761
2624
  Ee as Tooltip,
1762
- Zl as applyThemePreference,
1763
- en as getInitialThemePreference,
1764
- Jn as psTheme,
1765
- Jl as toaster,
1766
- Te as useSidebarNextStore,
1767
- Gn as useThemePreference
2625
+ ai as applyThemePreference,
2626
+ ci as getInitialThemePreference,
2627
+ lr as psTheme,
2628
+ oi as toaster,
2629
+ Re as useSidebarNextStore,
2630
+ Ki as useThemePreference,
2631
+ pe as useTicketsWorkspaceStore
1768
2632
  };
1769
2633
  //# sourceMappingURL=index.js.map