@pstdio/ui 0.2.0 → 0.2.2

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