@pstdio/ui 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,18 @@
1
- import { Alert as ke, Breadcrumb as ce, Checkbox as Re, Box as L, Text as C, Dialog as q, CloseButton as Qe, Stack as $, Button as fe, IconButton as We, Grid as Ze, ScrollArea as Ie, Timeline as re, HStack as ee, Image as et, List as Ve, Flex as ge, Badge as Le, Link as Ae, Heading as tt, useEnvironmentContext as lt, Icon as ne, Collapsible as pe, MenuItem as nt, Menu as xe, AbsoluteCenter as it, Separator as rt, Switch as ue, Wrap as Fe, Spacer as ot, createToaster as st, Portal as at, Toaster as ct, Toast as Pe, Spinner as dt } from "@chakra-ui/react";
2
- import { ChakraProvider as hn } from "@chakra-ui/react";
3
- import { jsx as n, jsxs as b, Fragment as ht } from "react/jsx-runtime";
4
- import { c as T } from "react/compiler-runtime";
5
- import * as ze from "react";
6
- import { useState as De, useRef as Ye, useEffect as Be, Component as ft, createContext as mt, useContext as ut } from "react";
7
- import { D as gt, a as Ne, E as pt } from "./empty-state-B8mbv7ZH.js";
8
- import { useVirtualizer as xt } from "@tanstack/react-virtual";
9
- import { ChevronRight as Te, ChevronDown as Ue, FileText as Oe, ChevronLeft as bt, FolderOpen as St, Folder as yt, Home as Ct, ChevronUp as vt, Info as wt, CircleCheck as kt, CircleAlert as It, CircleDashed as Pt, GitBranchIcon as Dt, Plus as Tt, MoreHorizontal as $t } from "lucide-react";
10
- import { T as _e } from "./tooltip-Gm7PLwZG.js";
11
- import { useReactTable as Rt, getExpandedRowModel as _t, getCoreRowModel as Lt, flexRender as zt } from "@tanstack/react-table";
1
+ import { Alert as Ie, Breadcrumb as de, Checkbox as Le, Box as E, Text as C, Dialog as J, CloseButton as rt, Stack as D, Button as ue, IconButton as _e, Grid as st, ScrollArea as Pe, Timeline as re, HStack as F, Image as at, List as Ke, Flex as pe, Badge as ze, Link as Be, Heading as ct, useEnvironmentContext as dt, Icon as ne, Collapsible as xe, MenuItem as ht, Menu as ie, AbsoluteCenter as ft, Separator as gt, Switch as be, Wrap as qe, Spacer as ut, createToaster as pt, Portal as mt, Toaster as bt, Toast as $e, Spinner as xt } from "@chakra-ui/react";
2
+ import { ChakraProvider as Vn } from "@chakra-ui/react";
3
+ import { jsx as i, jsxs as b, Fragment as St } from "react/jsx-runtime";
4
+ import { c as $ } from "react/compiler-runtime";
5
+ import * as He from "react";
6
+ import { useState as Re, useRef as Je, useEffect as We, Component as yt, createContext as vt, useContext as Ct } from "react";
7
+ import { D as wt, a as Qe, E as kt } from "./empty-state-kQR0gd4j.js";
8
+ import { C as Un, b as Kn } from "./empty-state-kQR0gd4j.js";
9
+ import { useVirtualizer as It } from "@tanstack/react-virtual";
10
+ import { ChevronRight as me, ChevronDown as Ze, FileText as Oe, ChevronLeft as Pt, FolderOpen as $t, Folder as Tt, Home as _t, ChevronUp as Rt, Info as Dt, CircleCheck as Lt, CircleAlert as Et, CircleDashed as zt, PanelLeftClose as Ht, GitBranchIcon as Nt, Plus as Wt, MoreHorizontal as At } from "lucide-react";
11
+ import { T as Ee } from "./tooltip-Gm7PLwZG.js";
12
+ import { useStore as Mt } from "zustand";
13
+ import { persist as Bt, createJSONStorage as Ot } from "zustand/middleware";
14
+ import { createStore as jt } from "zustand/vanilla";
15
+ import { useReactTable as Gt, getExpandedRowModel as Xt, getCoreRowModel as Ft, flexRender as Vt } from "@tanstack/react-table";
12
16
  import "@fontsource/inter/400.css";
13
17
  import "@fontsource/inter/500.css";
14
18
  import "@fontsource/playfair-display/400.css";
@@ -17,86 +21,86 @@ import "@fontsource/playfair-display/700.css";
17
21
  import "@fontsource/onest/400.css";
18
22
  import "@fontsource/onest/500.css";
19
23
  import "@fontsource/onest/700.css";
20
- import { t as mn } from "./theme-C7CIuIPZ.js";
21
- const Et = ze.forwardRef(function(e, l) {
22
- const t = T(19);
23
- let r, s, o, a, c, d;
24
+ import { t as Jn } from "./theme-C7CIuIPZ.js";
25
+ const Yt = He.forwardRef(function(e, l) {
26
+ const t = $(19);
27
+ let o, r, s, a, c, d;
24
28
  t[0] !== e ? ({
25
29
  title: d,
26
- children: r,
27
- icon: o,
30
+ children: o,
31
+ icon: s,
28
32
  startElement: c,
29
- endElement: s,
33
+ endElement: r,
30
34
  ...a
31
- } = 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
+ } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
32
36
  let h;
33
- t[7] !== o || t[8] !== c ? (h = c || /* @__PURE__ */ n(ke.Indicator, { children: o }), t[7] = o, t[8] = c, t[9] = h) : h = t[9];
37
+ t[7] !== s || t[8] !== c ? (h = c || /* @__PURE__ */ i(Ie.Indicator, { children: s }), t[7] = s, t[8] = c, t[9] = h) : h = t[9];
38
+ let g;
39
+ t[10] !== o || t[11] !== d ? (g = o ? /* @__PURE__ */ b(Ie.Content, { children: [
40
+ /* @__PURE__ */ i(Ie.Title, { children: d }),
41
+ /* @__PURE__ */ i(Ie.Description, { children: o })
42
+ ] }) : /* @__PURE__ */ i(Ie.Title, { flex: "1", children: d }), t[10] = o, t[11] = d, t[12] = g) : g = t[12];
34
43
  let f;
35
- t[10] !== r || t[11] !== d ? (f = r ? /* @__PURE__ */ b(ke.Content, { children: [
36
- /* @__PURE__ */ n(ke.Title, { children: d }),
37
- /* @__PURE__ */ n(ke.Description, { children: r })
38
- ] }) : /* @__PURE__ */ n(ke.Title, { flex: "1", children: d }), t[10] = r, t[11] = d, t[12] = f) : f = t[12];
39
- let m;
40
- return t[13] !== s || t[14] !== l || t[15] !== a || t[16] !== h || t[17] !== f ? (m = /* @__PURE__ */ b(ke.Root, { ref: l, ...a, children: [
44
+ return t[13] !== r || t[14] !== l || t[15] !== a || t[16] !== h || t[17] !== g ? (f = /* @__PURE__ */ b(Ie.Root, { ref: l, ...a, children: [
41
45
  h,
42
- f,
43
- s
44
- ] }), t[13] = s, t[14] = l, t[15] = a, t[16] = h, t[17] = f, t[18] = m) : m = t[18], m;
45
- }), jl = ze.forwardRef(function(e, l) {
46
- const t = T(21);
47
- let r, s, o, a, c;
46
+ g,
47
+ r
48
+ ] }), t[13] = r, t[14] = l, t[15] = a, t[16] = h, t[17] = g, t[18] = f) : f = t[18], f;
49
+ }), wn = He.forwardRef(function(e, l) {
50
+ const t = $(21);
51
+ let o, r, s, a, c;
48
52
  t[0] !== e ? ({
49
53
  separator: a,
50
54
  separatorGap: c,
51
- items: s,
52
- linkComponent: r,
53
- ...o
54
- } = 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]);
55
+ items: r,
56
+ linkComponent: o,
57
+ ...s
58
+ } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5]);
55
59
  let d;
56
- if (t[6] !== r || t[7] !== s || t[8] !== a) {
57
- let m;
58
- t[10] !== r || t[11] !== s.length || t[12] !== a ? (m = (u, g) => {
59
- const p = g === s.length - 1, x = !!(u.url || u.onClick);
60
+ if (t[6] !== o || t[7] !== r || t[8] !== a) {
61
+ let f;
62
+ t[10] !== o || t[11] !== r.length || t[12] !== a ? (f = (u, p) => {
63
+ const m = p === r.length - 1, x = !!(u.url || u.onClick);
60
64
  let S;
61
- return p && !x ? S = /* @__PURE__ */ n(ce.CurrentLink, { children: u.title }) : u.url ? S = r ? /* @__PURE__ */ n(ce.Link, { asChild: !0, children: /* @__PURE__ */ n(r, { to: u.url, children: u.title }) }) : /* @__PURE__ */ n(ce.Link, { href: u.url, children: u.title }) : u.onClick ? S = /* @__PURE__ */ n(ce.Link, { as: "button", type: "button", onClick: u.onClick, children: u.title }) : S = /* @__PURE__ */ n(ce.Link, { children: u.title }), /* @__PURE__ */ b(ce.Item, { children: [
65
+ return m && !x ? S = /* @__PURE__ */ i(de.CurrentLink, { children: u.title }) : u.url ? S = o ? /* @__PURE__ */ i(de.Link, { asChild: !0, children: /* @__PURE__ */ i(o, { to: u.url, children: u.title }) }) : /* @__PURE__ */ i(de.Link, { href: u.url, children: u.title }) : u.onClick ? S = /* @__PURE__ */ i(de.Link, { as: "button", type: "button", onClick: u.onClick, children: u.title }) : S = /* @__PURE__ */ i(de.Link, { children: u.title }), /* @__PURE__ */ b(de.Item, { children: [
62
66
  S,
63
- p ? null : /* @__PURE__ */ n(ce.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
64
- ] }, g);
65
- }, t[10] = r, t[11] = s.length, t[12] = a, t[13] = m) : m = t[13], d = s.map(m), t[6] = r, t[7] = s, t[8] = a, t[9] = d;
67
+ m ? null : /* @__PURE__ */ i(de.Separator, { as: "span", "aria-hidden": !0, ml: "xs", children: a })
68
+ ] }, p);
69
+ }, t[10] = o, t[11] = r.length, t[12] = a, t[13] = f) : f = t[13], d = r.map(f), t[6] = o, t[7] = r, t[8] = a, t[9] = d;
66
70
  } else
67
71
  d = t[9];
68
72
  let h;
69
- t[14] !== c || t[15] !== d ? (h = /* @__PURE__ */ n(ce.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = h) : h = t[16];
70
- let f;
71
- return t[17] !== l || t[18] !== o || t[19] !== h ? (f = /* @__PURE__ */ n(ce.Root, { ref: l, ...o, children: h }), t[17] = l, t[18] = o, t[19] = h, t[20] = f) : f = t[20], f;
72
- }), Xl = ze.forwardRef(function(e, l) {
73
- const t = T(26);
74
- let r, s, o, a, c, d;
73
+ t[14] !== c || t[15] !== d ? (h = /* @__PURE__ */ i(de.List, { gap: c, children: d }), t[14] = c, t[15] = d, t[16] = h) : h = t[16];
74
+ let g;
75
+ return t[17] !== l || t[18] !== s || t[19] !== h ? (g = /* @__PURE__ */ i(de.Root, { ref: l, ...s, children: h }), t[17] = l, t[18] = s, t[19] = h, t[20] = g) : g = t[20], g;
76
+ }), kn = He.forwardRef(function(e, l) {
77
+ const t = $(26);
78
+ let o, r, s, a, c, d;
75
79
  t[0] !== e ? ({
76
- icon: s,
77
- children: r,
78
- inputProps: o,
80
+ icon: r,
81
+ children: o,
82
+ inputProps: s,
79
83
  rootRef: c,
80
84
  disabled: d,
81
85
  ...a
82
- } = 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]);
83
- const h = d === void 0 ? !1 : d, f = h ? "not-allowed" : "pointer";
84
- let m;
85
- t[7] !== o || t[8] !== l ? (m = /* @__PURE__ */ n(Re.HiddenInput, { ref: l, ...o }), t[7] = o, t[8] = l, t[9] = m) : m = t[9];
86
+ } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c, t[6] = d) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5], d = t[6]);
87
+ const h = d === void 0 ? !1 : d, g = h ? "not-allowed" : "pointer";
88
+ let f;
89
+ t[7] !== s || t[8] !== l ? (f = /* @__PURE__ */ i(Le.HiddenInput, { ref: l, ...s }), t[7] = s, t[8] = l, t[9] = f) : f = t[9];
86
90
  let u;
87
- t[10] !== s ? (u = s || /* @__PURE__ */ n(Re.Indicator, {}), t[10] = s, t[11] = u) : u = t[11];
88
- let g;
89
- t[12] !== f || t[13] !== u ? (g = /* @__PURE__ */ n(Re.Control, { borderRadius: "xs", cursor: f, children: u }), t[12] = f, t[13] = u, t[14] = g) : g = t[14];
91
+ t[10] !== r ? (u = r || /* @__PURE__ */ i(Le.Indicator, {}), t[10] = r, t[11] = u) : u = t[11];
90
92
  let p;
91
- t[15] !== r || t[16] !== f ? (p = r != null && /* @__PURE__ */ n(Re.Label, { cursor: f, children: r }), t[15] = r, t[16] = f, t[17] = p) : p = t[17];
93
+ t[12] !== g || t[13] !== u ? (p = /* @__PURE__ */ i(Le.Control, { borderRadius: "xs", cursor: g, children: u }), t[12] = g, t[13] = u, t[14] = p) : p = t[14];
94
+ let m;
95
+ t[15] !== o || t[16] !== g ? (m = o != null && /* @__PURE__ */ i(Le.Label, { cursor: g, children: o }), t[15] = o, t[16] = g, t[17] = m) : m = t[17];
92
96
  let x;
93
- return t[18] !== h || t[19] !== f || t[20] !== a || t[21] !== c || t[22] !== m || t[23] !== g || t[24] !== p ? (x = /* @__PURE__ */ b(Re.Root, { ref: c, disabled: h, cursor: f, ...a, children: [
94
- m,
95
- g,
96
- p
97
- ] }), t[18] = h, t[19] = f, t[20] = a, t[21] = c, t[22] = m, t[23] = g, t[24] = p, t[25] = x) : x = t[25], x;
98
- }), Ht = (i) => {
99
- const e = T(3);
97
+ return t[18] !== h || t[19] !== g || t[20] !== a || t[21] !== c || t[22] !== f || t[23] !== p || t[24] !== m ? (x = /* @__PURE__ */ b(Le.Root, { ref: c, disabled: h, cursor: g, ...a, children: [
98
+ f,
99
+ p,
100
+ m
101
+ ] }), t[18] = h, t[19] = g, t[20] = a, t[21] = c, t[22] = f, t[23] = p, t[24] = m, t[25] = x) : x = t[25], x;
102
+ }), Ut = (n) => {
103
+ const e = $(3);
100
104
  let l;
101
105
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
102
106
  backgroundClip: "padding-box",
@@ -105,44 +109,44 @@ const Et = ze.forwardRef(function(e, l) {
105
109
  width: "100%"
106
110
  }, e[0] = l) : l = e[0];
107
111
  let t;
108
- return e[1] !== i ? (t = /* @__PURE__ */ n(L, { ...i, css: l }), e[1] = i, e[2] = t) : t = e[2], t;
109
- }, Vl = (i) => {
110
- const e = T(2);
112
+ return e[1] !== n ? (t = /* @__PURE__ */ i(E, { ...n, css: l }), e[1] = n, e[2] = t) : t = e[2], t;
113
+ }, In = (n) => {
114
+ const e = $(2);
111
115
  let l;
112
- return e[0] !== i ? (l = /* @__PURE__ */ n(L, { p: "2", children: /* @__PURE__ */ n(C, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...i }) }), e[0] = i, e[1] = l) : l = e[1], l;
113
- }, Fl = (i) => {
114
- const [e, l] = De(!1), {
116
+ return e[0] !== n ? (l = /* @__PURE__ */ i(E, { p: "2", children: /* @__PURE__ */ i(C, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...n }) }), e[0] = n, e[1] = l) : l = e[1], l;
117
+ }, Pn = (n) => {
118
+ const [e, l] = Re(!1), {
115
119
  headline: t,
116
- buttonText: r,
117
- notificationText: s,
118
- onDelete: o,
120
+ buttonText: o,
121
+ notificationText: r,
122
+ onDelete: s,
119
123
  open: a,
120
124
  onClose: c
121
- } = i, d = async () => {
125
+ } = n, d = async () => {
122
126
  l(!0);
123
127
  try {
124
- await o(), c();
128
+ await s(), c();
125
129
  } catch {
126
130
  } finally {
127
131
  l(!1);
128
132
  }
129
133
  };
130
- return /* @__PURE__ */ b(q.Root, { open: a, onOpenChange: c, children: [
131
- /* @__PURE__ */ n(q.Backdrop, {}),
132
- /* @__PURE__ */ n(q.Positioner, { children: /* @__PURE__ */ b(q.Content, { children: [
133
- /* @__PURE__ */ b(q.Header, { children: [
134
- /* @__PURE__ */ n(C, { textStyle: "heading/M", children: t }),
135
- /* @__PURE__ */ n(q.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ n(Qe, { size: "sm" }) })
134
+ return /* @__PURE__ */ b(J.Root, { open: a, onOpenChange: c, children: [
135
+ /* @__PURE__ */ i(J.Backdrop, {}),
136
+ /* @__PURE__ */ i(J.Positioner, { children: /* @__PURE__ */ b(J.Content, { children: [
137
+ /* @__PURE__ */ b(J.Header, { children: [
138
+ /* @__PURE__ */ i(C, { textStyle: "heading/M", children: t }),
139
+ /* @__PURE__ */ i(J.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ i(rt, { size: "sm" }) })
136
140
  ] }),
137
- /* @__PURE__ */ n(q.Body, { children: s }),
138
- /* @__PURE__ */ n(q.Footer, { children: /* @__PURE__ */ b($, { direction: "row", gap: "1", children: [
139
- /* @__PURE__ */ n(fe, { onClick: c, children: "Close" }),
140
- /* @__PURE__ */ n(fe, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: r })
141
+ /* @__PURE__ */ i(J.Body, { children: r }),
142
+ /* @__PURE__ */ i(J.Footer, { children: /* @__PURE__ */ b(D, { direction: "row", gap: "1", children: [
143
+ /* @__PURE__ */ i(ue, { onClick: c, children: "Close" }),
144
+ /* @__PURE__ */ i(ue, { loading: e, variant: "solid", colorPalette: "red", onClick: d, children: o })
141
145
  ] }) })
142
146
  ] }) })
143
147
  ] });
144
- }, Mt = (i) => {
145
- switch (i.split(".").pop()?.toLowerCase()) {
148
+ }, Kt = (n) => {
149
+ switch (n.split(".").pop()?.toLowerCase()) {
146
150
  case "ts":
147
151
  case "tsx":
148
152
  return "typescript";
@@ -171,421 +175,421 @@ const Et = ze.forwardRef(function(e, l) {
171
175
  default:
172
176
  return "plaintext";
173
177
  }
174
- }, Wt = (i) => {
175
- const e = T(37), {
178
+ }, qt = (n) => {
179
+ const e = $(37), {
176
180
  diff: l
177
- } = i, [t, r] = De(!0), s = l.newPath || l.oldPath || "unknown";
178
- let o;
179
- e[0] !== s ? (o = Mt(s), e[0] = s, e[1] = o) : o = e[1];
180
- const a = o, c = l.additions ?? 0, d = l.deletions ?? 0, h = t ? "1px solid" : "none";
181
- let f;
182
- e[2] !== t ? (f = () => r(!t), e[2] = t, e[3] = f) : f = e[3];
183
- const m = t ? "Collapse" : "Expand";
181
+ } = n, [t, o] = Re(!0), r = l.newPath || l.oldPath || "unknown";
182
+ let s;
183
+ e[0] !== r ? (s = Kt(r), e[0] = r, e[1] = s) : s = e[1];
184
+ const a = s, c = l.additions ?? 0, d = l.deletions ?? 0, h = t ? "1px solid" : "none";
185
+ let g;
186
+ e[2] !== t ? (g = () => o(!t), e[2] = t, e[3] = g) : g = e[3];
187
+ const f = t ? "Collapse" : "Expand";
184
188
  let u;
185
- e[4] !== t ? (u = (k) => {
186
- k.stopPropagation(), r(!t);
189
+ e[4] !== t ? (u = (I) => {
190
+ I.stopPropagation(), o(!t);
187
191
  }, e[4] = t, e[5] = u) : u = e[5];
188
- let g;
189
- e[6] !== t ? (g = t ? /* @__PURE__ */ n(Ue, { size: 16 }) : /* @__PURE__ */ n(Te, { size: 16 }), e[6] = t, e[7] = g) : g = e[7];
190
192
  let p;
191
- e[8] !== m || e[9] !== u || e[10] !== g ? (p = /* @__PURE__ */ n(We, { "aria-label": m, variant: "ghost", size: "2xs", onClick: u, flexShrink: 0, children: g }), e[8] = m, e[9] = u, e[10] = g, e[11] = p) : p = e[11];
193
+ e[6] !== t ? (p = t ? /* @__PURE__ */ i(Ze, { size: 16 }) : /* @__PURE__ */ i(me, { size: 16 }), e[6] = t, e[7] = p) : p = e[7];
194
+ let m;
195
+ e[8] !== f || e[9] !== u || e[10] !== p ? (m = /* @__PURE__ */ i(_e, { "aria-label": f, variant: "ghost", size: "2xs", onClick: u, flexShrink: 0, children: p }), e[8] = f, e[9] = u, e[10] = p, e[11] = m) : m = e[11];
192
196
  let x;
193
- e[12] !== l.change || e[13] !== l.newPath || e[14] !== l.oldPath || e[15] !== s ? (x = l.change === "renamed" ? /* @__PURE__ */ b(C, { as: "span", textStyle: "sm", children: [
194
- /* @__PURE__ */ n(C, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: l.oldPath }),
195
- /* @__PURE__ */ n(L, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ n(Te, { size: 12 }) }),
197
+ e[12] !== l.change || e[13] !== l.newPath || e[14] !== l.oldPath || e[15] !== r ? (x = l.change === "renamed" ? /* @__PURE__ */ b(C, { as: "span", textStyle: "sm", children: [
198
+ /* @__PURE__ */ i(C, { as: "span", color: "fg.muted", textDecoration: "line-through", mr: "xs", children: l.oldPath }),
199
+ /* @__PURE__ */ i(E, { as: "span", display: "inline-flex", alignItems: "center", verticalAlign: "middle", mr: "xs", children: /* @__PURE__ */ i(me, { size: 12 }) }),
196
200
  l.newPath
197
- ] }) : l.change === "deleted" ? /* @__PURE__ */ n(C, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: s }) : /* @__PURE__ */ n(C, { 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
+ ] }) : l.change === "deleted" ? /* @__PURE__ */ i(C, { as: "span", color: "fg.muted", textDecoration: "line-through", textStyle: "sm", children: r }) : /* @__PURE__ */ i(C, { as: "span", textStyle: "sm", children: r }), e[12] = l.change, e[13] = l.newPath, e[14] = l.oldPath, e[15] = r, e[16] = x) : x = e[16];
198
202
  let S;
199
- e[17] !== s || e[18] !== x ? (S = /* @__PURE__ */ n(L, { 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
+ e[17] !== r || e[18] !== x ? (S = /* @__PURE__ */ i(E, { minW: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", title: r, children: x }), e[17] = r, e[18] = x, e[19] = S) : S = e[19];
200
204
  let y;
201
- e[20] !== c || e[21] !== d ? (y = /* @__PURE__ */ n(L, { flexShrink: 0, children: /* @__PURE__ */ n(Ne, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = y) : y = e[22];
205
+ e[20] !== c || e[21] !== d ? (y = /* @__PURE__ */ i(E, { flexShrink: 0, children: /* @__PURE__ */ i(Qe, { variant: "ghost", additions: c, deletions: d }) }), e[20] = c, e[21] = d, e[22] = y) : y = e[22];
202
206
  let v;
203
- e[23] !== h || e[24] !== f || e[25] !== p || e[26] !== S || e[27] !== y ? (v = /* @__PURE__ */ b(Ze, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: h, borderColor: "border.muted", cursor: "pointer", onClick: f, gap: "sm", children: [
204
- p,
207
+ e[23] !== h || e[24] !== g || e[25] !== m || e[26] !== S || e[27] !== y ? (v = /* @__PURE__ */ b(st, { templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: h, borderColor: "border.muted", cursor: "pointer", onClick: g, gap: "sm", children: [
208
+ m,
205
209
  S,
206
210
  y
207
- ] }), e[23] = h, e[24] = f, e[25] = p, e[26] = S, e[27] = y, e[28] = v) : v = e[28];
208
- let w;
209
- e[29] !== l.newContent || e[30] !== l.oldContent || e[31] !== t || e[32] !== a ? (w = t && /* @__PURE__ */ n(L, { height: "400px", bg: "bg", children: /* @__PURE__ */ n(gt, { 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] = w) : w = e[33];
211
+ ] }), e[23] = h, e[24] = g, e[25] = m, e[26] = S, e[27] = y, e[28] = v) : v = e[28];
212
+ let k;
213
+ e[29] !== l.newContent || e[30] !== l.oldContent || e[31] !== t || e[32] !== a ? (k = t && /* @__PURE__ */ i(E, { height: "400px", bg: "bg", children: /* @__PURE__ */ i(wt, { original: l.oldContent || "", modified: l.newContent || "", language: a, sideBySide: !1, disableScroll: !1 }) }), e[29] = l.newContent, e[30] = l.oldContent, e[31] = t, e[32] = a, e[33] = k) : k = e[33];
210
214
  let P;
211
- return e[34] !== v || e[35] !== w ? (P = /* @__PURE__ */ b(L, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
215
+ return e[34] !== v || e[35] !== k ? (P = /* @__PURE__ */ b(E, { border: "1px solid", borderColor: "border.muted", borderRadius: "xs", overflow: "hidden", bg: "bg", width: "100%", maxW: "100%", children: [
212
216
  v,
213
- w
214
- ] }), e[34] = v, e[35] = w, e[36] = P) : P = e[36], P;
215
- }, me = ze.forwardRef(function(e, l) {
216
- const t = T(33);
217
- let r, s, o, a, c, d, h, f, m, u;
217
+ k
218
+ ] }), e[34] = v, e[35] = k, e[36] = P) : P = e[36], P;
219
+ }, he = He.forwardRef(function(e, l) {
220
+ const t = $(33);
221
+ let o, r, s, a, c, d, h, g, f, u;
218
222
  t[0] !== e ? ({
219
- children: r,
223
+ children: o,
220
224
  viewportRef: u,
221
- viewportProps: m,
222
- contentProps: s,
223
- verticalScrollbarProps: f,
224
- horizontalScrollbarProps: o,
225
+ viewportProps: f,
226
+ contentProps: r,
227
+ verticalScrollbarProps: g,
228
+ horizontalScrollbarProps: s,
225
229
  showVerticalScrollbar: c,
226
230
  showHorizontalScrollbar: d,
227
231
  showCorner: h,
228
232
  ...a
229
- } = 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] = f, t[9] = m, t[10] = u) : (r = t[1], s = t[2], o = t[3], a = t[4], c = t[5], d = t[6], h = t[7], f = t[8], m = t[9], u = t[10]);
230
- const g = c === void 0 ? !0 : c, p = d === void 0 ? !1 : d, x = h === void 0 ? g && p : h;
233
+ } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c, t[6] = d, t[7] = h, t[8] = g, t[9] = f, t[10] = u) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5], d = t[6], h = t[7], g = t[8], f = t[9], u = t[10]);
234
+ const p = c === void 0 ? !0 : c, m = d === void 0 ? !1 : d, x = h === void 0 ? p && m : h;
231
235
  let S;
232
- t[11] !== r || t[12] !== s ? (S = /* @__PURE__ */ n(Ie.Content, { ...s, children: r }), t[11] = r, t[12] = s, t[13] = S) : S = t[13];
236
+ t[11] !== o || t[12] !== r ? (S = /* @__PURE__ */ i(Pe.Content, { ...r, children: o }), t[11] = o, t[12] = r, t[13] = S) : S = t[13];
233
237
  let y;
234
- t[14] !== S || t[15] !== m || t[16] !== u ? (y = /* @__PURE__ */ n(Ie.Viewport, { ...m, ref: u, children: S }), t[14] = S, t[15] = m, t[16] = u, t[17] = y) : y = t[17];
238
+ t[14] !== S || t[15] !== f || t[16] !== u ? (y = /* @__PURE__ */ i(Pe.Viewport, { ...f, ref: u, children: S }), t[14] = S, t[15] = f, t[16] = u, t[17] = y) : y = t[17];
235
239
  let v;
236
- t[18] !== g || t[19] !== f ? (v = g ? /* @__PURE__ */ n(Ie.Scrollbar, { ...f, borderRadius: "xs" }) : null, t[18] = g, t[19] = f, t[20] = v) : v = t[20];
237
- let w;
238
- t[21] !== o || t[22] !== p ? (w = p ? /* @__PURE__ */ n(Ie.Scrollbar, { orientation: "horizontal", ...o, borderRadius: "xs" }) : null, t[21] = o, t[22] = p, t[23] = w) : w = t[23];
239
- let P;
240
- t[24] !== x ? (P = x ? /* @__PURE__ */ n(Ie.Corner, {}) : null, t[24] = x, t[25] = P) : P = t[25];
240
+ t[18] !== p || t[19] !== g ? (v = p ? /* @__PURE__ */ i(Pe.Scrollbar, { ...g, borderRadius: "xs" }) : null, t[18] = p, t[19] = g, t[20] = v) : v = t[20];
241
241
  let k;
242
- return t[26] !== l || t[27] !== a || t[28] !== y || t[29] !== v || t[30] !== w || t[31] !== P ? (k = /* @__PURE__ */ b(Ie.Root, { ref: l, ...a, children: [
242
+ t[21] !== s || t[22] !== m ? (k = m ? /* @__PURE__ */ i(Pe.Scrollbar, { orientation: "horizontal", ...s, borderRadius: "xs" }) : null, t[21] = s, t[22] = m, t[23] = k) : k = t[23];
243
+ let P;
244
+ t[24] !== x ? (P = x ? /* @__PURE__ */ i(Pe.Corner, {}) : null, t[24] = x, t[25] = P) : P = t[25];
245
+ let I;
246
+ return t[26] !== l || t[27] !== a || t[28] !== y || t[29] !== v || t[30] !== k || t[31] !== P ? (I = /* @__PURE__ */ b(Pe.Root, { ref: l, ...a, children: [
243
247
  y,
244
248
  v,
245
- w,
249
+ k,
246
250
  P
247
- ] }), t[26] = l, t[27] = a, t[28] = y, t[29] = v, t[30] = w, t[31] = P, t[32] = k) : k = t[32], k;
251
+ ] }), t[26] = l, t[27] = a, t[28] = y, t[29] = v, t[30] = k, t[31] = P, t[32] = I) : I = t[32], I;
248
252
  });
249
- function Yl(i) {
253
+ function $n(n) {
250
254
  const {
251
255
  diffs: e
252
- } = i, l = Ye(null), t = xt({
256
+ } = n, l = Je(null), t = It({
253
257
  count: e.length,
254
258
  getScrollElement: () => l.current,
255
259
  estimateSize: () => 42,
256
260
  overscan: 5
257
261
  });
258
- return e.length === 0 ? /* @__PURE__ */ n($, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ n(me, { flex: "1", minH: "0", contentProps: {
262
+ return e.length === 0 ? /* @__PURE__ */ i(D, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
259
263
  p: "xs",
260
264
  spaceY: "xs"
261
- }, children: /* @__PURE__ */ n(pt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ n($, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ n(L, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ n(me, { position: "absolute", inset: "0", viewportRef: l, contentProps: {
265
+ }, children: /* @__PURE__ */ i(kt, { title: "No changes detected", description: "Make some changes to see the diff here.", paddingY: "sm" }) }) }) : /* @__PURE__ */ i(D, { h: "full", minH: "0", gap: "0", children: /* @__PURE__ */ i(E, { position: "relative", flex: "1", minH: "0", children: /* @__PURE__ */ i(he, { position: "absolute", inset: "0", viewportRef: l, contentProps: {
262
266
  p: "xs"
263
- }, children: /* @__PURE__ */ n(L, { position: "relative", width: "100%", style: {
267
+ }, children: /* @__PURE__ */ i(E, { position: "relative", width: "100%", style: {
264
268
  height: t.getTotalSize()
265
- }, children: t.getVirtualItems().map((r) => /* @__PURE__ */ n(L, { "data-index": r.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
266
- transform: `translateY(${r.start}px)`
267
- }, children: /* @__PURE__ */ n(Wt, { diff: e[r.index] }) }, r.key)) }) }) }) });
269
+ }, children: t.getVirtualItems().map((o) => /* @__PURE__ */ i(E, { "data-index": o.index, ref: t.measureElement, position: "absolute", top: "0", left: "0", width: "100%", pb: "xs", style: {
270
+ transform: `translateY(${o.start}px)`
271
+ }, children: /* @__PURE__ */ i(qt, { diff: e[o.index] }) }, o.key)) }) }) }) });
268
272
  }
269
- const At = (i, e) => `${i.version}-${i.date}-${e}`, Bt = (i, e) => `${i.title}-${e}`, Ge = (i) => {
270
- const e = T(12);
271
- let l, t, r;
272
- e[0] !== i ? ({
273
+ const Jt = (n, e) => `${n.version}-${n.date}-${e}`, Qt = (n, e) => `${n.title}-${e}`, je = (n) => {
274
+ const e = $(12);
275
+ let l, t, o;
276
+ e[0] !== n ? ({
273
277
  date: l,
274
- version: r,
278
+ version: o,
275
279
  ...t
276
- } = i, e[0] = i, e[1] = l, e[2] = t, e[3] = r) : (l = e[1], t = e[2], r = e[3]);
280
+ } = n, e[0] = n, e[1] = l, e[2] = t, e[3] = o) : (l = e[1], t = e[2], o = e[3]);
281
+ let r;
282
+ e[4] !== l ? (r = /* @__PURE__ */ i(re.Title, { textStyle: "sm", color: "fg.muted", children: l }), e[4] = l, e[5] = r) : r = e[5];
277
283
  let s;
278
- e[4] !== l ? (s = /* @__PURE__ */ n(re.Title, { textStyle: "sm", color: "fg.muted", children: l }), e[4] = l, e[5] = s) : s = e[5];
279
- let o;
280
- e[6] !== r ? (o = /* @__PURE__ */ n(ge, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ n(re.Title, { textStyle: "md", fontWeight: "semibold", children: r }) }), e[6] = r, e[7] = o) : o = e[7];
284
+ e[6] !== o ? (s = /* @__PURE__ */ i(pe, { px: "3", py: "2", rounded: "l3", align: "center", justify: "center", borderWidth: "1px", textAlign: "center", alignSelf: "flex-start", children: /* @__PURE__ */ i(re.Title, { textStyle: "md", fontWeight: "semibold", children: o }) }), e[6] = o, e[7] = s) : s = e[7];
281
285
  let a;
282
- return e[8] !== t || e[9] !== s || e[10] !== o ? (a = /* @__PURE__ */ b($, { ...t, children: [
283
- s,
284
- o
285
- ] }), e[8] = t, e[9] = s, e[10] = o, e[11] = a) : a = e[11], a;
286
- }, Nl = (i) => {
287
- const e = T(14), {
286
+ return e[8] !== t || e[9] !== r || e[10] !== s ? (a = /* @__PURE__ */ b(D, { ...t, children: [
287
+ r,
288
+ s
289
+ ] }), e[8] = t, e[9] = r, e[10] = s, e[11] = a) : a = e[11], a;
290
+ }, Tn = (n) => {
291
+ const e = $(14), {
288
292
  entries: l,
289
293
  title: t,
290
- description: r
291
- } = i;
294
+ description: o
295
+ } = n;
296
+ let r;
297
+ e[0] !== t ? (r = /* @__PURE__ */ i(ct, { size: "4xl", children: t }), e[0] = t, e[1] = r) : r = e[1];
292
298
  let s;
293
- e[0] !== t ? (s = /* @__PURE__ */ n(tt, { size: "4xl", children: t }), e[0] = t, e[1] = s) : s = e[1];
294
- let o;
295
- e[2] !== r ? (o = r ? /* @__PURE__ */ n(C, { color: "fg.muted", textStyle: "lg", children: r }) : null, e[2] = r, e[3] = o) : o = e[3];
299
+ e[2] !== o ? (s = o ? /* @__PURE__ */ i(C, { color: "fg.muted", textStyle: "lg", children: o }) : null, e[2] = o, e[3] = s) : s = e[3];
296
300
  let a;
297
- e[4] !== s || e[5] !== o ? (a = /* @__PURE__ */ b($, { textAlign: "center", children: [
298
- s,
299
- o
300
- ] }), e[4] = s, e[5] = o, e[6] = a) : a = e[6];
301
+ e[4] !== r || e[5] !== s ? (a = /* @__PURE__ */ b(D, { textAlign: "center", children: [
302
+ r,
303
+ s
304
+ ] }), e[4] = r, e[5] = s, e[6] = a) : a = e[6];
301
305
  let c;
302
- e[7] !== l ? (c = l.map(jt), e[7] = l, e[8] = c) : c = e[8];
306
+ e[7] !== l ? (c = l.map(tl), e[7] = l, e[8] = c) : c = e[8];
303
307
  let d;
304
- e[9] !== c ? (d = /* @__PURE__ */ n(L, { position: "relative", children: /* @__PURE__ */ n(re.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
308
+ e[9] !== c ? (d = /* @__PURE__ */ i(E, { position: "relative", children: /* @__PURE__ */ i(re.Root, { size: "sm", variant: "solid", children: c }) }), e[9] = c, e[10] = d) : d = e[10];
305
309
  let h;
306
- return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ b($, { gap: "20", children: [
310
+ return e[11] !== a || e[12] !== d ? (h = /* @__PURE__ */ b(D, { gap: "20", children: [
307
311
  a,
308
312
  d
309
313
  ] }), e[11] = a, e[12] = d, e[13] = h) : h = e[13], h;
310
314
  };
311
- function Ot(i) {
312
- return /* @__PURE__ */ n(Le, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: i }, i);
315
+ function Zt(n) {
316
+ return /* @__PURE__ */ i(ze, { size: "md", rounded: "l2", variant: "subtle", colorPalette: "gray", textTransform: "capitalize", children: n }, n);
313
317
  }
314
- function Gt(i, e) {
315
- return /* @__PURE__ */ n(Ve.Item, { children: /* @__PURE__ */ b($, { gap: "1", children: [
316
- /* @__PURE__ */ n(C, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: i.title }),
317
- i.description ? /* @__PURE__ */ n(C, { color: "fg.subtle", textStyle: "xs", children: i.description }) : null,
318
- i.link ? /* @__PURE__ */ n(Ae, { href: i.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
319
- ] }) }, Bt(i, e));
318
+ function el(n, e) {
319
+ return /* @__PURE__ */ i(Ke.Item, { children: /* @__PURE__ */ b(D, { gap: "1", children: [
320
+ /* @__PURE__ */ i(C, { color: "fg.muted", fontWeight: "normal", textStyle: "sm", children: n.title }),
321
+ n.description ? /* @__PURE__ */ i(C, { color: "fg.subtle", textStyle: "xs", children: n.description }) : null,
322
+ n.link ? /* @__PURE__ */ i(Be, { href: n.link, textStyle: "xs", width: "fit-content", children: "Learn more" }) : null
323
+ ] }) }, Qt(n, e));
320
324
  }
321
- function jt(i, e) {
325
+ function tl(n, e) {
322
326
  return /* @__PURE__ */ b(re.Item, { children: [
323
- /* @__PURE__ */ n(re.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
327
+ /* @__PURE__ */ i(re.Content, { top: "6", width: "48", flexShrink: "0", hideBelow: "md", position: {
324
328
  base: "static",
325
329
  md: "sticky"
326
- }, children: /* @__PURE__ */ n(Ge, { hideBelow: "md", date: i.date, version: i.version }) }),
330
+ }, children: /* @__PURE__ */ i(je, { hideBelow: "md", date: n.date, version: n.version }) }),
327
331
  /* @__PURE__ */ b(re.Connector, { children: [
328
- /* @__PURE__ */ n(re.Separator, {}),
329
- /* @__PURE__ */ n(re.Indicator, {})
332
+ /* @__PURE__ */ i(re.Separator, {}),
333
+ /* @__PURE__ */ i(re.Indicator, {})
330
334
  ] }),
331
- /* @__PURE__ */ n(re.Content, { children: /* @__PURE__ */ b($, { gap: "4", children: [
332
- /* @__PURE__ */ n(Ge, { hideFrom: "md", date: i.date, version: i.version }),
333
- /* @__PURE__ */ b($, { gap: "2", children: [
334
- /* @__PURE__ */ n(re.Title, { fontSize: "lg", fontWeight: "medium", children: i.title }),
335
- i.description ? /* @__PURE__ */ n(C, { color: "fg.muted", textStyle: "sm", children: i.description }) : null
335
+ /* @__PURE__ */ i(re.Content, { children: /* @__PURE__ */ b(D, { gap: "4", children: [
336
+ /* @__PURE__ */ i(je, { hideFrom: "md", date: n.date, version: n.version }),
337
+ /* @__PURE__ */ b(D, { gap: "2", children: [
338
+ /* @__PURE__ */ i(re.Title, { fontSize: "lg", fontWeight: "medium", children: n.title }),
339
+ n.description ? /* @__PURE__ */ i(C, { color: "fg.muted", textStyle: "sm", children: n.description }) : null
336
340
  ] }),
337
- i.tags && i.tags.length > 0 ? /* @__PURE__ */ n(ee, { children: i.tags.map(Ot) }) : null,
338
- i.image ? /* @__PURE__ */ n(et, { rounded: "l2", src: i.image, alt: i.title }) : null,
339
- i.changes && i.changes.length > 0 ? /* @__PURE__ */ n(Ve.Root, { pl: "4", gap: "4", children: i.changes.map(Gt) }) : null
341
+ n.tags && n.tags.length > 0 ? /* @__PURE__ */ i(F, { children: n.tags.map(Zt) }) : null,
342
+ n.image ? /* @__PURE__ */ i(at, { rounded: "l2", src: n.image, alt: n.title }) : null,
343
+ n.changes && n.changes.length > 0 ? /* @__PURE__ */ i(Ke.Root, { pl: "4", gap: "4", children: n.changes.map(el) }) : null
340
344
  ] }) })
341
- ] }, At(i, e));
345
+ ] }, Jt(n, e));
342
346
  }
343
- const Xt = /^(#{1,3})\s+(.+)$/gm, Vt = ".rich-text__h1, .rich-text__h2, .rich-text__h3", Ft = (i, e) => i.classList.contains(`rich-text__h${e}`), Yt = (i) => i.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Me = (i) => {
347
+ const ll = /^(#{1,3})\s+(.+)$/gm, nl = ".rich-text__h1, .rich-text__h2, .rich-text__h3", il = (n, e) => n.classList.contains(`rich-text__h${e}`), ol = (n) => n.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, ""), Me = (n) => {
344
348
  const e = [];
345
349
  let l = 0;
346
- for (const t of i.matchAll(Xt)) {
347
- const r = t[1].length, s = t[2].trim(), a = `${Yt(s) || "heading"}-${l}`;
350
+ for (const t of n.matchAll(ll)) {
351
+ const o = t[1].length, r = t[2].trim(), a = `${ol(r) || "heading"}-${l}`;
348
352
  e.push({
349
353
  id: a,
350
- level: r,
351
- text: s
354
+ level: o,
355
+ text: r
352
356
  }), l += 1;
353
357
  }
354
358
  return e;
355
- }, Nt = (i, e) => {
356
- const l = Array.from(e.querySelectorAll(Vt)), t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
357
- let s = 0;
358
- for (const o of i)
359
- for (let a = s; a < l.length; a += 1) {
359
+ }, rl = (n, e) => {
360
+ const l = Array.from(e.querySelectorAll(nl)), t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
361
+ let r = 0;
362
+ for (const s of n)
363
+ for (let a = r; a < l.length; a += 1) {
360
364
  const c = l[a], d = c.textContent?.trim();
361
- if (!(!d || d !== o.text) && Ft(c, o.level)) {
362
- t.set(o.id, c), r.set(c, o.id), s = a + 1;
365
+ if (!(!d || d !== s.text) && il(c, s.level)) {
366
+ t.set(s.id, c), o.set(c, s.id), r = a + 1;
363
367
  break;
364
368
  }
365
369
  }
366
370
  return {
367
371
  elementsByHeadingId: t,
368
- headingIdByElement: r
372
+ headingIdByElement: o
369
373
  };
370
- }, je = (i) => {
371
- const e = T(14), {
374
+ }, Ge = (n) => {
375
+ const e = $(14), {
372
376
  heading: l,
373
377
  isActive: t,
374
- emphasized: r,
375
- variant: s,
376
- onSelect: o
377
- } = i, a = s === "line", c = `calc(${l.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", h = t || r ? "medium" : "normal", f = a ? "1px" : "0px", m = a ? t ? "fg" : "bg.muted" : "transparent";
378
+ emphasized: o,
379
+ variant: r,
380
+ onSelect: s
381
+ } = n, a = r === "line", c = `calc(${l.level} * 0.75rem)`, d = t ? "fg" : "fg.muted", h = t || o ? "medium" : "normal", g = a ? "1px" : "0px", f = a ? t ? "fg" : "bg.muted" : "transparent";
378
382
  let u;
379
383
  e[0] !== a ? (u = a ? {
380
384
  borderStartColor: "bg.emphasized"
381
385
  } : {
382
386
  color: "fg"
383
387
  }, e[0] = a, e[1] = u) : u = e[1];
384
- let g;
385
- e[2] !== l.id || e[3] !== o ? (g = () => o(l.id), e[2] = l.id, e[3] = o, e[4] = g) : g = e[4];
386
388
  let p;
387
- return e[5] !== l.text || e[6] !== c || e[7] !== d || e[8] !== h || e[9] !== f || e[10] !== m || e[11] !== u || e[12] !== g ? (p = /* @__PURE__ */ n(L, { 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: f, borderStartColor: m, _hover: u, onClick: g, children: l.text }), e[5] = l.text, e[6] = c, e[7] = d, e[8] = h, e[9] = f, e[10] = m, e[11] = u, e[12] = g, e[13] = p) : p = e[13], p;
388
- }, Ul = (i) => {
389
- const e = T(39), {
389
+ e[2] !== l.id || e[3] !== s ? (p = () => s(l.id), e[2] = l.id, e[3] = s, e[4] = p) : p = e[4];
390
+ let m;
391
+ return e[5] !== l.text || e[6] !== c || e[7] !== d || e[8] !== h || e[9] !== g || e[10] !== f || e[11] !== u || e[12] !== p ? (m = /* @__PURE__ */ i(E, { as: "button", py: "1.5", px: "0", width: "full", display: "flex", textAlign: "left", textStyle: "sm", cursor: "pointer", textDecoration: "none", transition: "all 0.15s ease", paddingInlineStart: c, color: d, fontWeight: h, borderStartWidth: g, borderStartColor: f, _hover: u, onClick: p, children: l.text }), e[5] = l.text, e[6] = c, e[7] = d, e[8] = h, e[9] = g, e[10] = f, e[11] = u, e[12] = p, e[13] = m) : m = e[13], m;
392
+ }, _n = (n) => {
393
+ const e = $(39), {
390
394
  markdown: l,
391
395
  title: t,
392
- rootMargin: r
393
- } = i, s = t === void 0 ? "On this page" : t, o = r === void 0 ? "-20% 0% -35% 0%" : r, a = Me(l), c = lt(), [d, h] = De(a[0]?.id ?? ""), [f, m] = De(!1);
396
+ rootMargin: o
397
+ } = n, r = t === void 0 ? "On this page" : t, s = o === void 0 ? "-20% 0% -35% 0%" : o, a = Me(l), c = dt(), [d, h] = Re(a[0]?.id ?? ""), [g, f] = Re(!1);
394
398
  let u;
395
399
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
396
400
  elementsByHeadingId: /* @__PURE__ */ new Map(),
397
401
  headingIdByElement: /* @__PURE__ */ new Map()
398
402
  }, e[0] = u) : u = e[0];
399
- const g = Ye(u);
400
- let p, x;
401
- e[1] !== l ? (p = () => {
402
- const _ = Me(l);
403
- h(_[0]?.id ?? "");
404
- }, x = [l], e[1] = l, e[2] = p, e[3] = x) : (p = e[2], x = e[3]), Be(p, x);
403
+ const p = Je(u);
404
+ let m, x;
405
+ e[1] !== l ? (m = () => {
406
+ const W = Me(l);
407
+ h(W[0]?.id ?? "");
408
+ }, x = [l], e[1] = l, e[2] = m, e[3] = x) : (m = e[2], x = e[3]), We(m, x);
405
409
  let S, y;
406
- if (e[4] !== c || e[5] !== l || e[6] !== o ? (S = () => {
407
- const _ = Me(l), le = c.getDocument(), be = c.getWindow(), de = Nt(_, le);
408
- if (g.current = de, de.headingIdByElement.size === 0)
410
+ if (e[4] !== c || e[5] !== l || e[6] !== s ? (S = () => {
411
+ const W = Me(l), le = c.getDocument(), Se = c.getWindow(), fe = rl(W, le);
412
+ if (p.current = fe, fe.headingIdByElement.size === 0)
409
413
  return;
410
- const oe = new be.IntersectionObserver((ie) => {
411
- const se = ie.filter(Ut).sort(Kt);
412
- if (se.length === 0)
414
+ const se = new Se.IntersectionObserver((oe) => {
415
+ const ae = oe.filter(sl).sort(al);
416
+ if (ae.length === 0)
413
417
  return;
414
- const he = se[0].target, ae = de.headingIdByElement.get(he);
415
- ae && h(ae);
418
+ const ge = ae[0].target, ce = fe.headingIdByElement.get(ge);
419
+ ce && h(ce);
416
420
  }, {
417
- rootMargin: o
421
+ rootMargin: s
418
422
  });
419
- for (const ie of de.headingIdByElement.keys())
420
- oe.observe(ie);
423
+ for (const oe of fe.headingIdByElement.keys())
424
+ se.observe(oe);
421
425
  return () => {
422
- oe.disconnect();
426
+ se.disconnect();
423
427
  };
424
- }, 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]), Be(S, y), a.length === 0)
428
+ }, y = [c, l, s], e[4] = c, e[5] = l, e[6] = s, e[7] = S, e[8] = y) : (S = e[7], y = e[8]), We(S, y), a.length === 0)
425
429
  return null;
426
430
  let v;
427
- e[9] !== d ? (v = (_) => _.id === d, e[9] = d, e[10] = v) : v = e[10];
428
- const w = a.find(v);
431
+ e[9] !== d ? (v = (W) => W.id === d, e[9] = d, e[10] = v) : v = e[10];
432
+ const k = a.find(v);
429
433
  let P;
430
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (_) => {
431
- const le = g.current.elementsByHeadingId.get(_);
432
- h(_), m(!1), le?.scrollIntoView({
434
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (W) => {
435
+ const le = p.current.elementsByHeadingId.get(W);
436
+ h(W), f(!1), le?.scrollIntoView({
433
437
  behavior: "smooth",
434
438
  block: "start"
435
439
  });
436
440
  }, e[11] = P) : P = e[11];
437
- const k = P;
438
- let I;
439
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (_) => m(_.open), e[12] = I) : I = e[12];
441
+ const I = P;
442
+ let w;
443
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (W) => f(W.open), e[12] = w) : w = e[12];
444
+ let T;
445
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ i(ne, { as: Oe, color: "fg.subtle" }), e[13] = T) : T = e[13];
440
446
  let R;
441
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ n(ne, { as: Oe, color: "fg.subtle" }), e[13] = R) : R = e[13];
442
- let z;
443
- e[14] !== s ? (z = /* @__PURE__ */ n(C, { textStyle: "sm", fontWeight: "medium", color: "fg", children: s }), e[14] = s, e[15] = z) : z = e[15];
444
- const j = f ? null : /* @__PURE__ */ b(ht, { children: [
445
- /* @__PURE__ */ n(ne, { as: Te, color: "fg.subtle" }),
446
- /* @__PURE__ */ n(C, { textStyle: "sm", color: "fg.muted", children: w?.text })
447
+ e[14] !== r ? (R = /* @__PURE__ */ i(C, { textStyle: "sm", fontWeight: "medium", color: "fg", children: r }), e[14] = r, e[15] = R) : R = e[15];
448
+ const z = g ? null : /* @__PURE__ */ b(St, { children: [
449
+ /* @__PURE__ */ i(ne, { as: me, color: "fg.subtle" }),
450
+ /* @__PURE__ */ i(C, { textStyle: "sm", color: "fg.muted", children: k?.text })
447
451
  ] });
448
- let W;
449
- e[16] !== z || e[17] !== j ? (W = /* @__PURE__ */ b(ee, { children: [
452
+ let L;
453
+ e[16] !== R || e[17] !== z ? (L = /* @__PURE__ */ b(F, { children: [
454
+ T,
450
455
  R,
451
- z,
452
- j
453
- ] }), e[16] = z, e[17] = j, e[18] = W) : W = e[18];
454
- const V = f ? "rotate(180deg)" : "rotate(0deg)";
456
+ z
457
+ ] }), e[16] = R, e[17] = z, e[18] = L) : L = e[18];
458
+ const O = g ? "rotate(180deg)" : "rotate(0deg)";
459
+ let N;
460
+ e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ i(ne, { as: Ze, color: "fg.subtle" }), e[19] = N) : N = e[19];
455
461
  let H;
456
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ n(ne, { as: Ue, color: "fg.subtle" }), e[19] = H) : H = e[19];
457
- let E;
458
- e[20] !== V ? (E = /* @__PURE__ */ n(L, { transition: "transform 0.2s", transform: V, children: H }), e[20] = V, e[21] = E) : E = e[21];
459
- let B;
460
- e[22] !== W || e[23] !== E ? (B = /* @__PURE__ */ b(pe.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
461
- W,
462
- E
463
- ] }), e[22] = W, e[23] = E, e[24] = B) : B = e[24];
464
- let O;
465
- e[25] !== d ? (O = (_) => /* @__PURE__ */ n(je, { heading: _, variant: "minimal", emphasized: !1, isActive: d === _.id, onSelect: k }, _.id), e[25] = d, e[26] = O) : O = e[26];
466
- const A = me, F = "md", D = "6", G = "xs", J = "sticky", Y = "calc(100vh - 3rem)";
462
+ e[20] !== O ? (H = /* @__PURE__ */ i(E, { transition: "transform 0.2s", transform: O, children: N }), e[20] = O, e[21] = H) : H = e[21];
467
463
  let M;
468
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ n(ne, { as: Oe, color: "fg.subtle" }), e[27] = M) : M = e[27];
469
- let N;
470
- e[28] !== s ? (N = /* @__PURE__ */ b(ee, { mb: "4", children: [
471
- M,
472
- /* @__PURE__ */ n(C, { fontWeight: "medium", textStyle: "sm", children: s })
473
- ] }), e[28] = s, e[29] = N) : N = e[29];
474
- const Q = $, te = "0";
475
- let U;
476
- e[30] !== d ? (U = (_) => /* @__PURE__ */ n(je, { heading: _, variant: "line", emphasized: _.level === 1, isActive: d === _.id, onSelect: k }, _.id), e[30] = d, e[31] = U) : U = e[31];
477
- const Z = a.map(U);
464
+ e[22] !== L || e[23] !== H ? (M = /* @__PURE__ */ b(xe.Trigger, { width: "full", display: "flex", alignItems: "center", justifyContent: "space-between", children: [
465
+ L,
466
+ H
467
+ ] }), e[22] = L, e[23] = H, e[24] = M) : M = e[24];
468
+ let B;
469
+ e[25] !== d ? (B = (W) => /* @__PURE__ */ i(Ge, { heading: W, variant: "minimal", emphasized: !1, isActive: d === W.id, onSelect: I }, W.id), e[25] = d, e[26] = B) : B = e[26];
470
+ const A = he, j = "md", _ = "6", G = "xs", Q = "sticky", Y = "calc(100vh - 3rem)";
478
471
  let X;
479
- e[32] !== Q || e[33] !== Z ? (X = /* @__PURE__ */ n(Q, { gap: te, children: Z }), e[32] = Q, e[33] = Z, e[34] = X) : X = e[34];
472
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ i(ne, { as: Oe, color: "fg.subtle" }), e[27] = X) : X = e[27];
473
+ let U;
474
+ e[28] !== r ? (U = /* @__PURE__ */ b(F, { mb: "4", children: [
475
+ X,
476
+ /* @__PURE__ */ i(C, { fontWeight: "medium", textStyle: "sm", children: r })
477
+ ] }), e[28] = r, e[29] = U) : U = e[29];
478
+ const Z = D, te = "0";
480
479
  let K;
481
- return e[35] !== A || e[36] !== N || e[37] !== X ? (K = /* @__PURE__ */ b(A, { hideBelow: F, top: D, width: G, position: J, maxH: Y, children: [
482
- N,
483
- X
484
- ] }), e[35] = A, e[36] = N, e[37] = X, e[38] = K) : K = e[38], /* @__PURE__ */ b($, { gap: "0", width: "full", children: [
485
- /* @__PURE__ */ n(L, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(pe.Root, { open: f, onOpenChange: I, children: [
486
- B,
487
- /* @__PURE__ */ n(pe.Content, { children: /* @__PURE__ */ n(me, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ n($, { gap: "0", children: a.map(O) }) }) })
480
+ e[30] !== d ? (K = (W) => /* @__PURE__ */ i(Ge, { heading: W, variant: "line", emphasized: W.level === 1, isActive: d === W.id, onSelect: I }, W.id), e[30] = d, e[31] = K) : K = e[31];
481
+ const ee = a.map(K);
482
+ let V;
483
+ e[32] !== Z || e[33] !== ee ? (V = /* @__PURE__ */ i(Z, { gap: te, children: ee }), e[32] = Z, e[33] = ee, e[34] = V) : V = e[34];
484
+ let q;
485
+ return e[35] !== A || e[36] !== U || e[37] !== V ? (q = /* @__PURE__ */ b(A, { hideBelow: j, top: _, width: G, position: Q, maxH: Y, children: [
486
+ U,
487
+ V
488
+ ] }), e[35] = A, e[36] = U, e[37] = V, e[38] = q) : q = e[38], /* @__PURE__ */ b(D, { gap: "0", width: "full", children: [
489
+ /* @__PURE__ */ i(E, { hideFrom: "md", px: "4", py: "2", w: "full", bg: "bg.subtle", borderWidth: "1px", children: /* @__PURE__ */ b(xe.Root, { open: g, onOpenChange: w, children: [
490
+ M,
491
+ /* @__PURE__ */ i(xe.Content, { children: /* @__PURE__ */ i(he, { mt: "3", maxH: "30vh", children: /* @__PURE__ */ i(D, { gap: "0", children: a.map(B) }) }) })
488
492
  ] }) }),
489
- K
493
+ q
490
494
  ] });
491
495
  };
492
- function Ut(i) {
493
- return i.isIntersecting;
496
+ function sl(n) {
497
+ return n.isIntersecting;
494
498
  }
495
- function Kt(i, e) {
496
- return i.boundingClientRect.top - e.boundingClientRect.top;
499
+ function al(n, e) {
500
+ return n.boundingClientRect.top - e.boundingClientRect.top;
497
501
  }
498
- const Xe = (i) => {
499
- const e = T(24), {
502
+ const Xe = (n) => {
503
+ const e = $(24), {
500
504
  item: l,
501
505
  direction: t
502
- } = i, r = t === "prev", s = r ? "Previous" : "Next", o = r ? "start" : "end", a = r ? "flex-start" : "flex-end";
506
+ } = n, o = t === "prev", r = o ? "Previous" : "Next", s = o ? "start" : "end", a = o ? "flex-start" : "flex-end";
503
507
  let c;
504
- e[0] !== r ? (c = r ? /* @__PURE__ */ n(bt, { size: 16 }) : null, e[0] = r, e[1] = c) : c = e[1];
505
- const d = r ? "flex-start" : "flex-end";
508
+ e[0] !== o ? (c = o ? /* @__PURE__ */ i(Pt, { size: 16 }) : null, e[0] = o, e[1] = c) : c = e[1];
509
+ const d = o ? "flex-start" : "flex-end";
506
510
  let h;
507
- e[2] !== s ? (h = /* @__PURE__ */ n(C, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: s }), e[2] = s, e[3] = h) : h = e[3];
511
+ e[2] !== r ? (h = /* @__PURE__ */ i(C, { textStyle: "sm", color: "fg.muted", fontWeight: "normal", children: r }), e[2] = r, e[3] = h) : h = e[3];
512
+ let g;
513
+ e[4] !== l.title ? (g = /* @__PURE__ */ i(C, { textStyle: "sm", fontWeight: "medium", children: l.title }), e[4] = l.title, e[5] = g) : g = e[5];
508
514
  let f;
509
- e[4] !== l.title ? (f = /* @__PURE__ */ n(C, { textStyle: "sm", fontWeight: "medium", children: l.title }), e[4] = l.title, e[5] = f) : f = e[5];
510
- let m;
511
- e[6] !== l.description ? (m = l.description ? /* @__PURE__ */ n(C, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: l.description }) : null, e[6] = l.description, e[7] = m) : m = e[7];
515
+ e[6] !== l.description ? (f = l.description ? /* @__PURE__ */ i(C, { textStyle: "xs", color: "fg.subtle", fontWeight: "normal", children: l.description }) : null, e[6] = l.description, e[7] = f) : f = e[7];
512
516
  let u;
513
- e[8] !== d || e[9] !== h || e[10] !== f || e[11] !== m ? (u = /* @__PURE__ */ b($, { gap: "0", alignItems: d, children: [
517
+ e[8] !== d || e[9] !== h || e[10] !== g || e[11] !== f ? (u = /* @__PURE__ */ b(D, { gap: "0", alignItems: d, children: [
514
518
  h,
515
- f,
516
- m
517
- ] }), e[8] = d, e[9] = h, e[10] = f, e[11] = m, e[12] = u) : u = e[12];
518
- let g;
519
- e[13] !== r ? (g = r ? null : /* @__PURE__ */ n(Te, { size: 16 }), e[13] = r, e[14] = g) : g = e[14];
519
+ g,
520
+ f
521
+ ] }), e[8] = d, e[9] = h, e[10] = g, e[11] = f, e[12] = u) : u = e[12];
520
522
  let p;
521
- e[15] !== l.href || e[16] !== c || e[17] !== u || e[18] !== g ? (p = /* @__PURE__ */ b("a", { href: l.href, children: [
523
+ e[13] !== o ? (p = o ? null : /* @__PURE__ */ i(me, { size: 16 }), e[13] = o, e[14] = p) : p = e[14];
524
+ let m;
525
+ e[15] !== l.href || e[16] !== c || e[17] !== u || e[18] !== p ? (m = /* @__PURE__ */ b("a", { href: l.href, children: [
522
526
  c,
523
527
  u,
524
- g
525
- ] }), e[15] = l.href, e[16] = c, e[17] = u, e[18] = g, e[19] = p) : p = e[19];
528
+ p
529
+ ] }), e[15] = l.href, e[16] = c, e[17] = u, e[18] = p, e[19] = m) : m = e[19];
526
530
  let x;
527
- return e[20] !== o || e[21] !== a || e[22] !== p ? (x = /* @__PURE__ */ n(fe, { 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;
528
- }, Kl = (i) => {
529
- const e = T(11), {
531
+ return e[20] !== s || e[21] !== a || e[22] !== m ? (x = /* @__PURE__ */ i(ue, { asChild: !0, variant: "ghost", colorPalette: "gray", gap: "3", size: "sm", h: "auto", py: "2", textAlign: s, justifyContent: a, flex: "1", children: m }), e[20] = s, e[21] = a, e[22] = m, e[23] = x) : x = e[23], x;
532
+ }, Rn = (n) => {
533
+ const e = $(11), {
530
534
  previous: l,
531
535
  next: t
532
- } = i;
536
+ } = n;
533
537
  if (!l && !t)
534
538
  return null;
539
+ let o;
540
+ e[0] !== l ? (o = l ? /* @__PURE__ */ i(Xe, { item: l, direction: "prev" }) : null, e[0] = l, e[1] = o) : o = e[1];
535
541
  let r;
536
- e[0] !== l ? (r = l ? /* @__PURE__ */ n(Xe, { item: l, direction: "prev" }) : null, e[0] = l, e[1] = r) : r = e[1];
542
+ e[2] !== o ? (r = /* @__PURE__ */ i(E, { flex: "1", children: o }), e[2] = o, e[3] = r) : r = e[3];
537
543
  let s;
538
- e[2] !== r ? (s = /* @__PURE__ */ n(L, { flex: "1", children: r }), e[2] = r, e[3] = s) : s = e[3];
539
- let o;
540
- e[4] !== t ? (o = t ? /* @__PURE__ */ n(Xe, { item: t, direction: "next" }) : null, e[4] = t, e[5] = o) : o = e[5];
544
+ e[4] !== t ? (s = t ? /* @__PURE__ */ i(Xe, { item: t, direction: "next" }) : null, e[4] = t, e[5] = s) : s = e[5];
541
545
  let a;
542
- e[6] !== o ? (a = /* @__PURE__ */ n(L, { flex: "1", children: o }), e[6] = o, e[7] = a) : a = e[7];
546
+ e[6] !== s ? (a = /* @__PURE__ */ i(E, { flex: "1", children: s }), e[6] = s, e[7] = a) : a = e[7];
543
547
  let c;
544
- return e[8] !== s || e[9] !== a ? (c = /* @__PURE__ */ b(ee, { justify: "space-between", gap: "4", children: [
545
- s,
548
+ return e[8] !== r || e[9] !== a ? (c = /* @__PURE__ */ b(F, { justify: "space-between", gap: "4", children: [
549
+ r,
546
550
  a
547
- ] }), e[8] = s, e[9] = a, e[10] = c) : c = e[10], c;
548
- }, qt = (i) => {
549
- const e = T(17), {
551
+ ] }), e[8] = r, e[9] = a, e[10] = c) : c = e[10], c;
552
+ }, cl = (n) => {
553
+ const e = $(17), {
550
554
  children: l,
551
555
  title: t,
552
- defaultOpen: r,
553
- action: s
554
- } = i, o = r === void 0 ? !0 : r;
556
+ defaultOpen: o,
557
+ action: r
558
+ } = n, s = o === void 0 ? !0 : o;
555
559
  let a;
556
560
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
557
561
  background: "bg.muted"
558
562
  }, e[0] = a) : a = e[0];
559
563
  let c;
560
- e[1] !== t ? (c = t && /* @__PURE__ */ n(C, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
564
+ e[1] !== t ? (c = t && /* @__PURE__ */ i(C, { fontWeight: "600", textStyle: "label/S/medium", children: t }), e[1] = t, e[2] = c) : c = e[2];
561
565
  let d;
562
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ n(pe.Indicator, { transition: "transform 0.2s", _open: {
566
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(xe.Indicator, { transition: "transform 0.2s", _open: {
563
567
  transform: "rotate(90deg)"
564
- }, children: /* @__PURE__ */ n(Te, { size: 16 }) }), e[3] = d) : d = e[3];
568
+ }, children: /* @__PURE__ */ i(me, { size: 16 }) }), e[3] = d) : d = e[3];
565
569
  let h;
566
- e[4] !== c ? (h = /* @__PURE__ */ b(pe.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
570
+ e[4] !== c ? (h = /* @__PURE__ */ b(xe.Trigger, { _hover: a, borderRadius: "xs", padding: "sm", height: "2rem", display: "flex", width: "full", gap: "2", alignItems: "center", cursor: "pointer", justifyContent: "space-between", children: [
567
571
  c,
568
572
  d
569
573
  ] }), e[4] = c, e[5] = h) : h = e[5];
574
+ let g;
575
+ e[6] !== r ? (g = r && /* @__PURE__ */ i(E, { marginLeft: "auto", onClick: dl, children: r }), e[6] = r, e[7] = g) : g = e[7];
570
576
  let f;
571
- e[6] !== s ? (f = s && /* @__PURE__ */ n(L, { marginLeft: "auto", onClick: Jt, children: s }), e[6] = s, e[7] = f) : f = e[7];
572
- let m;
573
- e[8] !== h || e[9] !== f ? (m = /* @__PURE__ */ b(ge, { children: [
577
+ e[8] !== h || e[9] !== g ? (f = /* @__PURE__ */ b(pe, { children: [
574
578
  h,
575
- f
576
- ] }), e[8] = h, e[9] = f, e[10] = m) : m = e[10];
579
+ g
580
+ ] }), e[8] = h, e[9] = g, e[10] = f) : f = e[10];
577
581
  let u;
578
- e[11] !== l ? (u = /* @__PURE__ */ n(pe.Content, { children: l }), e[11] = l, e[12] = u) : u = e[12];
579
- let g;
580
- return e[13] !== o || e[14] !== m || e[15] !== u ? (g = /* @__PURE__ */ b(pe.Root, { defaultOpen: o, width: "full", children: [
581
- m,
582
+ e[11] !== l ? (u = /* @__PURE__ */ i(xe.Content, { children: l }), e[11] = l, e[12] = u) : u = e[12];
583
+ let p;
584
+ return e[13] !== s || e[14] !== f || e[15] !== u ? (p = /* @__PURE__ */ b(xe.Root, { defaultOpen: s, width: "full", children: [
585
+ f,
582
586
  u
583
- ] }), e[13] = o, e[14] = m, e[15] = u, e[16] = g) : g = e[16], g;
587
+ ] }), e[13] = s, e[14] = f, e[15] = u, e[16] = p) : p = e[16], p;
584
588
  };
585
- function Jt(i) {
586
- return i.stopPropagation();
589
+ function dl(n) {
590
+ return n.stopPropagation();
587
591
  }
588
- const Qt = {
592
+ const hl = {
589
593
  default: {
590
594
  paddingX: "sm",
591
595
  paddingY: "xs",
@@ -604,95 +608,95 @@ const Qt = {
604
608
  secondaryMarginLeft: "0",
605
609
  secondaryTextStyle: "label/XS/regular"
606
610
  }
607
- }, He = (i) => {
608
- const e = T(67), {
611
+ }, Ae = (n) => {
612
+ const e = $(67), {
609
613
  id: l,
610
614
  primaryLabel: t,
611
- tooltipLabel: r,
612
- secondaryLabel: s,
613
- leftIcon: o,
615
+ tooltipLabel: o,
616
+ secondaryLabel: r,
617
+ leftIcon: s,
614
618
  leftSlot: a,
615
619
  rightIcon: c,
616
620
  leftIconColor: d,
617
621
  rightIconColor: h,
618
- leftIconSize: f,
619
- rightIconSize: m,
622
+ leftIconSize: g,
623
+ rightIconSize: f,
620
624
  rightIconAriaLabel: u,
621
- rightTooltipLabel: g,
622
- onRightIconClick: p,
625
+ rightTooltipLabel: p,
626
+ onRightIconClick: m,
623
627
  isDisabled: x,
624
628
  isSelected: S,
625
629
  tagLabel: y,
626
630
  tagColorPalette: v,
627
- tagVariant: w,
631
+ tagVariant: k,
628
632
  variant: P,
629
- tabIndex: k,
630
- width: I,
631
- maxWidth: R,
632
- setRefElement: z
633
- } = i, j = o === void 0 ? null : o, W = d === void 0 ? "fg.menu-item.default" : d, V = h === void 0 ? "fg.menu-item.default" : h, H = v === void 0 ? "yellow" : v, E = w === void 0 ? "subtle" : w, B = P === void 0 ? "default" : P, {
634
- onClick: O,
633
+ tabIndex: I,
634
+ width: w,
635
+ maxWidth: T,
636
+ setRefElement: R
637
+ } = n, z = s === void 0 ? null : s, L = d === void 0 ? "fg.menu-item.default" : d, O = h === void 0 ? "fg.menu-item.default" : h, N = v === void 0 ? "yellow" : v, H = k === void 0 ? "subtle" : k, M = P === void 0 ? "default" : P, {
638
+ onClick: B,
635
639
  onMouseDown: A,
636
- onMouseEnter: F
637
- } = i, D = Qt[B], G = S ? "bg.menu-item.selected" : "bg.menu-item.default", J = f ?? D.iconSize, Y = m ?? D.iconSize, M = !!(p && c);
638
- let N;
639
- e[0] !== M ? (N = ($e) => {
640
- M && ($e.preventDefault(), $e.stopPropagation());
641
- }, e[0] = M, e[1] = N) : N = e[1];
642
- const Q = N;
640
+ onMouseEnter: j
641
+ } = n, _ = hl[M], G = S ? "bg.menu-item.selected" : "bg.menu-item.default", Q = g ?? _.iconSize, Y = f ?? _.iconSize, X = !!(m && c);
642
+ let U;
643
+ e[0] !== X ? (U = (De) => {
644
+ X && (De.preventDefault(), De.stopPropagation());
645
+ }, e[0] = X, e[1] = U) : U = e[1];
646
+ const Z = U;
643
647
  let te;
644
- e[2] !== M || e[3] !== p ? (te = ($e) => {
645
- !M || !p || ($e.preventDefault(), $e.stopPropagation(), p());
646
- }, e[2] = M, e[3] = p, e[4] = te) : te = e[4];
647
- const U = te, Z = R ?? "20rem", X = x ? "default" : "pointer", K = l ?? t;
648
- let _, le;
649
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
648
+ e[2] !== X || e[3] !== m ? (te = (De) => {
649
+ !X || !m || (De.preventDefault(), De.stopPropagation(), m());
650
+ }, e[2] = X, e[3] = m, e[4] = te) : te = e[4];
651
+ const K = te, ee = T ?? "20rem", V = x ? "default" : "pointer", q = l ?? t;
652
+ let W, le;
653
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {
650
654
  bg: "bg.menu-item.hover"
651
655
  }, le = {
652
656
  bg: "bg.menu-item.focus"
653
- }, e[5] = _, e[6] = le) : (_ = e[5], le = e[6]);
654
- let be;
655
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = {
657
+ }, e[5] = W, e[6] = le) : (W = e[5], le = e[6]);
658
+ let Se;
659
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = {
656
660
  placement: "right"
657
- }, e[7] = be) : be = e[7];
658
- const de = !r;
659
- let oe;
660
- e[8] !== j || e[9] !== W || e[10] !== a || e[11] !== J ? (oe = a || (j ? /* @__PURE__ */ n(ne, { as: j, boxSize: J, color: W }) : null), e[8] = j, e[9] = W, e[10] = a, e[11] = J, e[12] = oe) : oe = e[12];
661
- let ie;
662
- e[13] !== t || e[14] !== D.primaryTextStyle ? (ie = /* @__PURE__ */ n(C, { lineClamp: 1, textOverflow: "ellipsis", textStyle: D.primaryTextStyle, children: t }), e[13] = t, e[14] = D.primaryTextStyle, e[15] = ie) : ie = e[15];
661
+ }, e[7] = Se) : Se = e[7];
662
+ const fe = !o;
663
663
  let se;
664
- e[16] !== oe || e[17] !== ie ? (se = /* @__PURE__ */ b(ge, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
665
- oe,
666
- ie
667
- ] }), e[16] = oe, e[17] = ie, e[18] = se) : se = e[18];
668
- let he;
669
- e[19] !== s || e[20] !== D.secondaryMarginLeft || e[21] !== D.secondaryTextStyle ? (he = s && /* @__PURE__ */ n(C, { ml: D.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: D.secondaryTextStyle, color: "fg.menu-item.secondary", children: s }), e[19] = s, e[20] = D.secondaryMarginLeft, e[21] = D.secondaryTextStyle, e[22] = he) : he = e[22];
664
+ e[8] !== z || e[9] !== L || e[10] !== a || e[11] !== Q ? (se = a || (z ? /* @__PURE__ */ i(ne, { as: z, boxSize: Q, color: L }) : null), e[8] = z, e[9] = L, e[10] = a, e[11] = Q, e[12] = se) : se = e[12];
665
+ let oe;
666
+ e[13] !== t || e[14] !== _.primaryTextStyle ? (oe = /* @__PURE__ */ i(C, { lineClamp: 1, textOverflow: "ellipsis", textStyle: _.primaryTextStyle, children: t }), e[13] = t, e[14] = _.primaryTextStyle, e[15] = oe) : oe = e[15];
670
667
  let ae;
671
- e[23] !== se || e[24] !== he ? (ae = /* @__PURE__ */ b($, { gap: "2xs", children: [
668
+ e[16] !== se || e[17] !== oe ? (ae = /* @__PURE__ */ b(pe, { alignItems: "flex-start", gap: "xs", flex: "1", children: [
672
669
  se,
673
- he
674
- ] }), e[23] = se, e[24] = he, e[25] = ae) : ae = e[25];
675
- let Se;
676
- e[26] !== de || e[27] !== ae || e[28] !== r ? (Se = /* @__PURE__ */ n(_e, { positioning: be, content: r, disabled: de, children: ae }), e[26] = de, e[27] = ae, e[28] = r, e[29] = Se) : Se = e[29];
670
+ oe
671
+ ] }), e[16] = se, e[17] = oe, e[18] = ae) : ae = e[18];
672
+ let ge;
673
+ e[19] !== r || e[20] !== _.secondaryMarginLeft || e[21] !== _.secondaryTextStyle ? (ge = r && /* @__PURE__ */ i(C, { ml: _.secondaryMarginLeft, lineClamp: 1, textOverflow: "ellipsis", textStyle: _.secondaryTextStyle, color: "fg.menu-item.secondary", children: r }), e[19] = r, e[20] = _.secondaryMarginLeft, e[21] = _.secondaryTextStyle, e[22] = ge) : ge = e[22];
674
+ let ce;
675
+ e[23] !== ae || e[24] !== ge ? (ce = /* @__PURE__ */ b(D, { gap: "2xs", children: [
676
+ ae,
677
+ ge
678
+ ] }), e[23] = ae, e[24] = ge, e[25] = ce) : ce = e[25];
677
679
  let ye;
678
- e[30] !== U || e[31] !== Q || e[32] !== M || e[33] !== Y || e[34] !== c || e[35] !== u || e[36] !== V || e[37] !== g ? (ye = c ? /* @__PURE__ */ n(_e, { positioning: {
680
+ e[26] !== fe || e[27] !== ce || e[28] !== o ? (ye = /* @__PURE__ */ i(Ee, { positioning: Se, content: o, disabled: fe, children: ce }), e[26] = fe, e[27] = ce, e[28] = o, e[29] = ye) : ye = e[29];
681
+ let ve;
682
+ e[30] !== K || e[31] !== Z || e[32] !== X || e[33] !== Y || e[34] !== c || e[35] !== u || e[36] !== O || e[37] !== p ? (ve = c ? /* @__PURE__ */ i(Ee, { positioning: {
679
683
  placement: "right"
680
- }, content: g, disabled: !g, children: /* @__PURE__ */ n(ge, { as: M ? "button" : "div", alignItems: "center", "aria-label": u, cursor: M ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: Q, onClick: U, children: /* @__PURE__ */ n(ne, { as: c, boxSize: Y, color: V }) }) }) : null, e[30] = U, e[31] = Q, e[32] = M, e[33] = Y, e[34] = c, e[35] = u, e[36] = V, e[37] = g, e[38] = ye) : ye = e[38];
684
+ }, content: p, disabled: !p, children: /* @__PURE__ */ i(pe, { as: X ? "button" : "div", alignItems: "center", "aria-label": u, cursor: X ? "pointer" : "default", bg: "transparent", borderWidth: "0", padding: "0", onMouseDown: Z, onClick: K, children: /* @__PURE__ */ i(ne, { as: c, boxSize: Y, color: O }) }) }) : null, e[30] = K, e[31] = Z, e[32] = X, e[33] = Y, e[34] = c, e[35] = u, e[36] = O, e[37] = p, e[38] = ve) : ve = e[38];
681
685
  let Ce;
682
- e[39] !== ye ? (Ce = /* @__PURE__ */ n(ge, { justifyContent: "flex-end", color: "fg.menu-item.default", children: ye }), e[39] = ye, e[40] = Ce) : Ce = e[40];
683
- let ve;
684
- e[41] !== Se || e[42] !== Ce ? (ve = /* @__PURE__ */ b(ge, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
685
- Se,
686
- Ce
687
- ] }), e[41] = Se, e[42] = Ce, e[43] = ve) : ve = e[43];
686
+ e[39] !== ve ? (Ce = /* @__PURE__ */ i(pe, { justifyContent: "flex-end", color: "fg.menu-item.default", children: ve }), e[39] = ve, e[40] = Ce) : Ce = e[40];
688
687
  let we;
689
- e[44] !== H || e[45] !== y || e[46] !== E ? (we = y ? /* @__PURE__ */ n(Le, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: H, variant: E, pointerEvents: "none", children: y }) : null, e[44] = H, e[45] = y, e[46] = E, e[47] = we) : we = e[47];
690
- let Ee;
691
- return e[48] !== G || e[49] !== l || e[50] !== x || e[51] !== S || e[52] !== O || e[53] !== A || e[54] !== F || e[55] !== z || e[56] !== K || e[57] !== ve || e[58] !== we || e[59] !== Z || e[60] !== X || e[61] !== k || e[62] !== D.minHeight || e[63] !== D.paddingX || e[64] !== D.paddingY || e[65] !== I ? (Ee = /* @__PURE__ */ b(nt, { id: l, ref: z, tabIndex: k, disabled: x, "aria-selected": S, paddingX: D.paddingX, paddingY: D.paddingY, onClick: O, onMouseDown: A, onMouseEnter: F, height: "auto", minHeight: D.minHeight, role: "option", width: I, maxWidth: Z, overflow: "hidden", position: "relative", cursor: X, value: K, bg: G, _hover: _, _focus: le, children: [
692
- ve,
693
- we
694
- ] }), e[48] = G, e[49] = l, e[50] = x, e[51] = S, e[52] = O, e[53] = A, e[54] = F, e[55] = z, e[56] = K, e[57] = ve, e[58] = we, e[59] = Z, e[60] = X, e[61] = k, e[62] = D.minHeight, e[63] = D.paddingX, e[64] = D.paddingY, e[65] = I, e[66] = Ee) : Ee = e[66], Ee;
695
- }, Zt = {
688
+ e[41] !== ye || e[42] !== Ce ? (we = /* @__PURE__ */ b(pe, { justifyContent: "space-between", alignItems: "center", gap: "xs", flex: "1", children: [
689
+ ye,
690
+ Ce
691
+ ] }), e[41] = ye, e[42] = Ce, e[43] = we) : we = e[43];
692
+ let ke;
693
+ e[44] !== N || e[45] !== y || e[46] !== H ? (ke = y ? /* @__PURE__ */ i(ze, { position: "absolute", top: "xs", right: "sm", textStyle: "label/XS/medium", px: "xs", py: "2px", borderRadius: "md", colorPalette: N, variant: H, pointerEvents: "none", children: y }) : null, e[44] = N, e[45] = y, e[46] = H, e[47] = ke) : ke = e[47];
694
+ let Ne;
695
+ return e[48] !== G || e[49] !== l || e[50] !== x || e[51] !== S || e[52] !== B || e[53] !== A || e[54] !== j || e[55] !== R || e[56] !== q || e[57] !== we || e[58] !== ke || e[59] !== ee || e[60] !== V || e[61] !== I || e[62] !== _.minHeight || e[63] !== _.paddingX || e[64] !== _.paddingY || e[65] !== w ? (Ne = /* @__PURE__ */ b(ht, { id: l, ref: R, tabIndex: I, disabled: x, "aria-selected": S, paddingX: _.paddingX, paddingY: _.paddingY, onClick: B, onMouseDown: A, onMouseEnter: j, height: "auto", minHeight: _.minHeight, role: "option", width: w, maxWidth: ee, overflow: "hidden", position: "relative", cursor: V, value: q, bg: G, _hover: W, _focus: le, children: [
696
+ we,
697
+ ke
698
+ ] }), e[48] = G, e[49] = l, e[50] = x, e[51] = S, e[52] = B, e[53] = A, e[54] = j, e[55] = R, e[56] = q, e[57] = we, e[58] = ke, e[59] = ee, e[60] = V, e[61] = I, e[62] = _.minHeight, e[63] = _.paddingX, e[64] = _.paddingY, e[65] = w, e[66] = Ne) : Ne = e[66], Ne;
699
+ }, fl = {
696
700
  default: {
697
701
  width: "64",
698
702
  headerHeight: "49px",
@@ -710,72 +714,72 @@ const Qt = {
710
714
  contentGap: "2xs"
711
715
  }
712
716
  };
713
- function el(i) {
714
- const e = T(13), {
717
+ function gl(n) {
718
+ const e = $(13), {
715
719
  title: l,
716
720
  children: t,
717
- variant: r
718
- } = i, o = Zt[r === void 0 ? "default" : r];
721
+ variant: o
722
+ } = n, s = fl[o === void 0 ? "default" : o];
719
723
  let a;
720
- e[0] !== o.headerHeight || e[1] !== o.headerPadding || e[2] !== o.headerTextStyle || e[3] !== l ? (a = l && /* @__PURE__ */ n(ge, { height: o.headerHeight, p: o.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ n(C, { 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];
724
+ e[0] !== s.headerHeight || e[1] !== s.headerPadding || e[2] !== s.headerTextStyle || e[3] !== l ? (a = l && /* @__PURE__ */ i(pe, { height: s.headerHeight, p: s.headerPadding, borderBottomWidth: "1px", alignItems: "center", children: /* @__PURE__ */ i(C, { pb: "0", textStyle: s.headerTextStyle, color: "fg.muted", children: l }) }), e[0] = s.headerHeight, e[1] = s.headerPadding, e[2] = s.headerTextStyle, e[3] = l, e[4] = a) : a = e[4];
721
725
  let c;
722
- e[5] !== t || e[6] !== o.contentGap || e[7] !== o.contentPadding ? (c = t && /* @__PURE__ */ n(me, { flex: "1", minH: "0", contentProps: {
723
- p: o.contentPadding,
724
- spaceY: o.contentGap
725
- }, children: t }), e[5] = t, e[6] = o.contentGap, e[7] = o.contentPadding, e[8] = c) : c = e[8];
726
+ e[5] !== t || e[6] !== s.contentGap || e[7] !== s.contentPadding ? (c = t && /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
727
+ p: s.contentPadding,
728
+ spaceY: s.contentGap
729
+ }, children: t }), e[5] = t, e[6] = s.contentGap, e[7] = s.contentPadding, e[8] = c) : c = e[8];
726
730
  let d;
727
- return e[9] !== o.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b($, { borderRightWidth: "1px", width: o.width, gap: "0", minH: "0", children: [
731
+ return e[9] !== s.width || e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ b(D, { borderRightWidth: "1px", width: s.width, gap: "0", minH: "0", children: [
728
732
  a,
729
733
  c
730
- ] }), e[9] = o.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
734
+ ] }), e[9] = s.width, e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
731
735
  }
732
- const Ke = (i) => {
733
- const e = T(27), {
736
+ const et = (n) => {
737
+ const e = $(27), {
734
738
  item: l,
735
739
  activeLink: t,
736
- onSelectLink: r,
737
- shouldStartOpen: s
738
- } = i;
739
- let o;
740
- e[0] !== l.items ? (o = l.items ?? [], e[0] = l.items, e[1] = o) : o = e[1];
741
- const a = o, c = a.length > 0;
740
+ onSelectLink: o,
741
+ shouldStartOpen: r
742
+ } = n;
743
+ let s;
744
+ e[0] !== l.items ? (s = l.items ?? [], e[0] = l.items, e[1] = s) : s = e[1];
745
+ const a = s, c = a.length > 0;
742
746
  if (!c && l.link) {
743
- const g = l.link, p = l.link === t;
747
+ const p = l.link, m = l.link === t;
744
748
  let x;
745
- e[2] !== g || e[3] !== r ? (x = () => r(g), e[2] = g, e[3] = r, e[4] = x) : x = e[4];
749
+ e[2] !== p || e[3] !== o ? (x = () => o(p), e[2] = p, e[3] = o, e[4] = x) : x = e[4];
746
750
  let S;
747
- return e[5] !== p || e[6] !== l.text || e[7] !== x ? (S = /* @__PURE__ */ n(xe.Root, { children: /* @__PURE__ */ n(He, { 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;
751
+ return e[5] !== m || e[6] !== l.text || e[7] !== x ? (S = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: l.text, isSelected: m, variant: "compact", onClick: x }) }), e[5] = m, e[6] = l.text, e[7] = x, e[8] = S) : S = e[8], S;
748
752
  }
749
753
  if (!c) {
750
- let g;
751
- return e[9] !== l.text ? (g = /* @__PURE__ */ n(xe.Root, { children: /* @__PURE__ */ n(He, { primaryLabel: l.text, isDisabled: !0, variant: "compact" }) }), e[9] = l.text, e[10] = g) : g = e[10], g;
754
+ let p;
755
+ return e[9] !== l.text ? (p = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: l.text, isDisabled: !0, variant: "compact" }) }), e[9] = l.text, e[10] = p) : p = e[10], p;
752
756
  }
753
757
  let d;
754
- e[11] !== l || e[12] !== s ? (d = s?.(l) ?? !1, e[11] = l, e[12] = s, e[13] = d) : d = e[13];
755
- const h = d, f = l.text;
756
- let m;
757
- if (e[14] !== t || e[15] !== a || e[16] !== r || e[17] !== s) {
758
- let g;
759
- e[19] !== t || e[20] !== r || e[21] !== s ? (g = (p, x) => /* @__PURE__ */ n(Ke, { item: p, activeLink: t, onSelectLink: r, shouldStartOpen: s }, `${p.text}-${p.link ?? x}`), e[19] = t, e[20] = r, e[21] = s, e[22] = g) : g = e[22], m = a.map(g), e[14] = t, e[15] = a, e[16] = r, e[17] = s, e[18] = m;
758
+ e[11] !== l || e[12] !== r ? (d = r?.(l) ?? !1, e[11] = l, e[12] = r, e[13] = d) : d = e[13];
759
+ const h = d, g = l.text;
760
+ let f;
761
+ if (e[14] !== t || e[15] !== a || e[16] !== o || e[17] !== r) {
762
+ let p;
763
+ e[19] !== t || e[20] !== o || e[21] !== r ? (p = (m, x) => /* @__PURE__ */ i(et, { item: m, activeLink: t, onSelectLink: o, shouldStartOpen: r }, `${m.text}-${m.link ?? x}`), e[19] = t, e[20] = o, e[21] = r, e[22] = p) : p = e[22], f = a.map(p), e[14] = t, e[15] = a, e[16] = o, e[17] = r, e[18] = f;
760
764
  } else
761
- m = e[18];
765
+ f = e[18];
762
766
  let u;
763
- return e[23] !== h || e[24] !== l.text || e[25] !== m ? (u = /* @__PURE__ */ n(qt, { title: f, defaultOpen: h, children: m }), e[23] = h, e[24] = l.text, e[25] = m, e[26] = u) : u = e[26], u;
764
- }, ql = (i) => {
765
- const e = T(9), {
767
+ return e[23] !== h || e[24] !== l.text || e[25] !== f ? (u = /* @__PURE__ */ i(cl, { title: g, defaultOpen: h, children: f }), e[23] = h, e[24] = l.text, e[25] = f, e[26] = u) : u = e[26], u;
768
+ }, Dn = (n) => {
769
+ const e = $(9), {
766
770
  title: l,
767
771
  emptyMessage: t,
768
- menuItems: r,
769
- activeLink: s,
770
- onSelectLink: o,
772
+ menuItems: o,
773
+ activeLink: r,
774
+ onSelectLink: s,
771
775
  shouldStartOpen: a
772
- } = i;
776
+ } = n;
773
777
  let c;
774
- e[0] !== s || e[1] !== t || e[2] !== r || e[3] !== o || e[4] !== a ? (c = r.length === 0 ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : r.map((h, f) => /* @__PURE__ */ n(Ke, { item: h, activeLink: s, onSelectLink: o, shouldStartOpen: a }, `${h.text}-${h.link ?? f}`)), e[0] = s, e[1] = t, e[2] = r, e[3] = o, e[4] = a, e[5] = c) : c = e[5];
778
+ e[0] !== r || e[1] !== t || e[2] !== o || e[3] !== s || e[4] !== a ? (c = o.length === 0 ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "xs", children: t ?? "No files found" }) : o.map((h, g) => /* @__PURE__ */ i(et, { item: h, activeLink: r, onSelectLink: s, shouldStartOpen: a }, `${h.text}-${h.link ?? g}`)), e[0] = r, e[1] = t, e[2] = o, e[3] = s, e[4] = a, e[5] = c) : c = e[5];
775
779
  let d;
776
- return e[6] !== c || e[7] !== l ? (d = /* @__PURE__ */ n(el, { title: l, variant: "compact", children: c }), e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
780
+ return e[6] !== c || e[7] !== l ? (d = /* @__PURE__ */ i(gl, { title: l, variant: "compact", children: c }), e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
777
781
  };
778
- class Jl extends ft {
782
+ class Ln extends yt {
779
783
  state = {
780
784
  error: null
781
785
  };
@@ -798,406 +802,722 @@ class Jl extends ft {
798
802
  fallback: l,
799
803
  label: t
800
804
  } = this.props, {
801
- error: r
805
+ error: o
802
806
  } = this.state;
803
- return r ? l || /* @__PURE__ */ n(tl, { error: r, label: t, onReset: this.handleReset }) : e;
807
+ return o ? l || /* @__PURE__ */ i(ul, { error: o, label: t, onReset: this.handleReset }) : e;
804
808
  }
805
809
  }
806
- const tl = (i) => {
807
- const e = T(12), {
810
+ const ul = (n) => {
811
+ const e = $(12), {
808
812
  error: l,
809
813
  label: t,
810
- onReset: r
811
- } = i, s = t ?? "Something went wrong";
812
- let o;
813
- e[0] !== s ? (o = /* @__PURE__ */ n(C, { textStyle: "paragraph/M/medium", children: s }), e[0] = s, e[1] = o) : o = e[1];
814
+ onReset: o
815
+ } = n, r = t ?? "Something went wrong";
816
+ let s;
817
+ e[0] !== r ? (s = /* @__PURE__ */ i(C, { textStyle: "paragraph/M/medium", children: r }), e[0] = r, e[1] = s) : s = e[1];
814
818
  const a = l.message || "An unexpected error occurred while rendering this section.";
815
819
  let c;
816
- e[2] !== a ? (c = /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
820
+ e[2] !== a ? (c = /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", children: a }), e[2] = a, e[3] = c) : c = e[3];
817
821
  let d;
818
- e[4] !== r ? (d = r ? /* @__PURE__ */ n(fe, { size: "sm", variant: "solid", colorScheme: "black", onClick: r, children: "Try again" }) : null, e[4] = r, e[5] = d) : d = e[5];
822
+ e[4] !== o ? (d = o ? /* @__PURE__ */ i(ue, { size: "sm", variant: "solid", colorScheme: "black", onClick: o, children: "Try again" }) : null, e[4] = o, e[5] = d) : d = e[5];
819
823
  let h;
820
- e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ b($, { gap: "sm", children: [
824
+ e[6] !== c || e[7] !== d ? (h = /* @__PURE__ */ b(D, { gap: "sm", children: [
821
825
  c,
822
826
  d
823
827
  ] }), e[6] = c, e[7] = d, e[8] = h) : h = e[8];
824
- let f;
825
- return e[9] !== o || e[10] !== h ? (f = /* @__PURE__ */ n(Ht, { height: "100%", width: "100%", children: /* @__PURE__ */ n(it, { children: /* @__PURE__ */ n(Et, { status: "error", title: o, children: h }) }) }), e[9] = o, e[10] = h, e[11] = f) : f = e[11], f;
826
- }, ll = (i) => i.isDirectory ? i.isGitRepo ? St : yt : Oe, nl = (i) => {
827
- const e = T(18), {
828
+ let g;
829
+ return e[9] !== s || e[10] !== h ? (g = /* @__PURE__ */ i(Ut, { height: "100%", width: "100%", children: /* @__PURE__ */ i(ft, { children: /* @__PURE__ */ i(Yt, { status: "error", title: s, children: h }) }) }), e[9] = s, e[10] = h, e[11] = g) : g = e[11], g;
830
+ }, pl = (n) => n.isDirectory ? n.isGitRepo ? $t : Tt : Oe, ml = (n) => {
831
+ const e = $(18), {
828
832
  entry: l,
829
833
  selectedPath: t,
830
- selectedPathSet: r,
831
- onEntryClick: s
832
- } = i;
833
- let o;
834
- 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];
835
- const a = o, c = !l.isDirectory || a;
834
+ selectedPathSet: o,
835
+ onEntryClick: r
836
+ } = n;
837
+ let s;
838
+ e[0] !== l.isGitRepo || e[1] !== l.path || e[2] !== o ? (s = l.isGitRepo && o.has(l.path), e[0] = l.isGitRepo, e[1] = l.path, e[2] = o, e[3] = s) : s = e[3];
839
+ const a = s, c = !l.isDirectory || a;
836
840
  let d;
837
- e[4] !== l || e[5] !== a || e[6] !== s ? (d = () => {
838
- a || s(l);
839
- }, e[4] = l, e[5] = a, e[6] = s, e[7] = d) : d = e[7];
840
- const h = d, f = l.name;
841
- let m;
842
- e[8] !== l ? (m = ll(l), e[8] = l, e[9] = m) : m = e[9];
843
- const u = l.isGitRepo ? "Git repo" : void 0, g = l.isGitRepo ? "green" : void 0, p = t === l.path;
841
+ e[4] !== l || e[5] !== a || e[6] !== r ? (d = () => {
842
+ a || r(l);
843
+ }, e[4] = l, e[5] = a, e[6] = r, e[7] = d) : d = e[7];
844
+ const h = d, g = l.name;
845
+ let f;
846
+ e[8] !== l ? (f = pl(l), e[8] = l, e[9] = f) : f = e[9];
847
+ const u = l.isGitRepo ? "Git repo" : void 0, p = l.isGitRepo ? "green" : void 0, m = t === l.path;
844
848
  let x;
845
- return e[10] !== l.name || e[11] !== h || e[12] !== c || e[13] !== m || e[14] !== u || e[15] !== g || e[16] !== p ? (x = /* @__PURE__ */ n(xe.Root, { children: /* @__PURE__ */ n(He, { primaryLabel: f, leftIcon: m, tagLabel: u, tagColorPalette: g, isDisabled: c, isSelected: p, width: "100%", maxWidth: "100%", onClick: h }) }), e[10] = l.name, e[11] = h, e[12] = c, e[13] = m, e[14] = u, e[15] = g, e[16] = p, e[17] = x) : x = e[17], x;
846
- }, Ql = (i) => {
847
- const e = T(54), {
849
+ return e[10] !== l.name || e[11] !== h || e[12] !== c || e[13] !== f || e[14] !== u || e[15] !== p || e[16] !== m ? (x = /* @__PURE__ */ i(ie.Root, { children: /* @__PURE__ */ i(Ae, { primaryLabel: g, leftIcon: f, tagLabel: u, tagColorPalette: p, isDisabled: c, isSelected: m, width: "100%", maxWidth: "100%", onClick: h }) }), e[10] = l.name, e[11] = h, e[12] = c, e[13] = f, e[14] = u, e[15] = p, e[16] = m, e[17] = x) : x = e[17], x;
850
+ }, En = (n) => {
851
+ const e = $(54), {
848
852
  open: l,
849
853
  title: t,
850
- description: r,
851
- currentPath: s,
852
- entries: o,
854
+ description: o,
855
+ currentPath: r,
856
+ entries: s,
853
857
  selectedPath: a,
854
858
  selectedPaths: c,
855
859
  isLoading: d,
856
860
  error: h,
857
- isSelectDisabled: f,
858
- onClose: m,
861
+ isSelectDisabled: g,
862
+ onClose: f,
859
863
  onSelect: u,
860
- onSelectHomeDirectory: g,
861
- onSelectParentDirectory: p,
864
+ onSelectHomeDirectory: p,
865
+ onSelectParentDirectory: m,
862
866
  onEntryClick: x
863
- } = i, S = t === void 0 ? "Select folder" : t, y = s === void 0 ? "" : s, v = a === void 0 ? null : a;
864
- let w;
865
- e[0] !== c ? (w = c === void 0 ? [] : c, e[0] = c, e[1] = w) : w = e[1];
866
- const P = w, k = d === void 0 ? !1 : d, I = h === void 0 ? "" : h, R = f === void 0 ? !1 : f;
867
- let z;
868
- e[2] !== P ? (z = new Set(P), e[2] = P, e[3] = z) : z = e[3];
869
- const j = z;
870
- let W;
871
- e[4] !== m ? (W = (le) => !le.open && m(), e[4] = m, e[5] = W) : W = e[5];
872
- let V;
873
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ n(q.Backdrop, {}), e[6] = V) : V = e[6];
867
+ } = n, S = t === void 0 ? "Select folder" : t, y = r === void 0 ? "" : r, v = a === void 0 ? null : a;
868
+ let k;
869
+ e[0] !== c ? (k = c === void 0 ? [] : c, e[0] = c, e[1] = k) : k = e[1];
870
+ const P = k, I = d === void 0 ? !1 : d, w = h === void 0 ? "" : h, T = g === void 0 ? !1 : g;
871
+ let R;
872
+ e[2] !== P ? (R = new Set(P), e[2] = P, e[3] = R) : R = e[3];
873
+ const z = R;
874
+ let L;
875
+ e[4] !== f ? (L = (le) => !le.open && f(), e[4] = f, e[5] = L) : L = e[5];
876
+ let O;
877
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ i(J.Backdrop, {}), e[6] = O) : O = e[6];
878
+ let N;
879
+ e[7] !== S ? (N = /* @__PURE__ */ i(C, { textStyle: "heading/M", children: S }), e[7] = S, e[8] = N) : N = e[8];
874
880
  let H;
875
- e[7] !== S ? (H = /* @__PURE__ */ n(C, { textStyle: "heading/M", children: S }), e[7] = S, e[8] = H) : H = e[8];
876
- let E;
877
- e[9] !== r ? (E = r ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: r }) : null, e[9] = r, e[10] = E) : E = e[10];
881
+ e[9] !== o ? (H = o ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: o }) : null, e[9] = o, e[10] = H) : H = e[10];
882
+ let M;
883
+ e[11] !== N || e[12] !== H ? (M = /* @__PURE__ */ i(J.Header, { children: /* @__PURE__ */ b(D, { gap: "xs", children: [
884
+ N,
885
+ H
886
+ ] }) }), e[11] = N, e[12] = H, e[13] = M) : M = e[13];
878
887
  let B;
879
- e[11] !== H || e[12] !== E ? (B = /* @__PURE__ */ n(q.Header, { children: /* @__PURE__ */ b($, { gap: "xs", children: [
880
- H,
881
- E
882
- ] }) }), e[11] = H, e[12] = E, e[13] = B) : B = e[13];
883
- let O;
884
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ n(Ct, { size: 16 }), e[14] = O) : O = e[14];
888
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ i(_t, { size: 16 }), e[14] = B) : B = e[14];
885
889
  let A;
886
- e[15] !== g ? (A = /* @__PURE__ */ n(fe, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: g, children: O }), e[15] = g, e[16] = A) : A = e[16];
887
- const F = !y || y === "/";
888
- let D;
889
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ n(vt, { size: 16 }), e[17] = D) : D = e[17];
890
+ e[15] !== p ? (A = /* @__PURE__ */ i(ue, { "aria-label": "Go to home directory", variant: "outline", size: "sm", onClick: p, children: B }), e[15] = p, e[16] = A) : A = e[16];
891
+ const j = !y || y === "/";
892
+ let _;
893
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i(Rt, { size: 16 }), e[17] = _) : _ = e[17];
890
894
  let G;
891
- e[18] !== p || e[19] !== F ? (G = /* @__PURE__ */ n(fe, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: p, disabled: F, children: D }), e[18] = p, e[19] = F, e[20] = G) : G = e[20];
892
- const J = y || "Home";
895
+ e[18] !== m || e[19] !== j ? (G = /* @__PURE__ */ i(ue, { "aria-label": "Go to parent directory", variant: "outline", size: "sm", onClick: m, disabled: j, children: _ }), e[18] = m, e[19] = j, e[20] = G) : G = e[20];
896
+ const Q = y || "Home";
893
897
  let Y;
894
- e[21] !== J ? (Y = /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: J }), e[21] = J, e[22] = Y) : Y = e[22];
895
- let M;
896
- e[23] !== A || e[24] !== G || e[25] !== Y ? (M = /* @__PURE__ */ b($, { direction: "row", gap: "sm", align: "center", children: [
898
+ e[21] !== Q ? (Y = /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", flex: "1", lineClamp: 1, children: Q }), e[21] = Q, e[22] = Y) : Y = e[22];
899
+ let X;
900
+ e[23] !== A || e[24] !== G || e[25] !== Y ? (X = /* @__PURE__ */ b(D, { direction: "row", gap: "sm", align: "center", children: [
897
901
  A,
898
902
  G,
899
903
  Y
900
- ] }), e[23] = A, e[24] = G, e[25] = Y, e[26] = M) : M = e[26];
901
- let N;
902
- e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = {
903
- padding: "sm"
904
- }, e[27] = N) : N = e[27];
905
- let Q;
906
- e[28] !== o || e[29] !== I || e[30] !== k || e[31] !== x || e[32] !== v || e[33] !== j ? (Q = /* @__PURE__ */ n(me, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: N, children: k ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : I ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "red.500", children: I }) : o.length === 0 ? /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ n($, { gap: "xs", children: o.map((le) => /* @__PURE__ */ n(nl, { entry: le, selectedPath: v, selectedPathSet: j, onEntryClick: x }, le.path)) }) }), e[28] = o, e[29] = I, e[30] = k, e[31] = x, e[32] = v, e[33] = j, e[34] = Q) : Q = e[34];
907
- let te;
908
- e[35] !== M || e[36] !== Q ? (te = /* @__PURE__ */ n(q.Body, { children: /* @__PURE__ */ b($, { gap: "md", children: [
909
- M,
910
- Q
911
- ] }) }), e[35] = M, e[36] = Q, e[37] = te) : te = e[37];
904
+ ] }), e[23] = A, e[24] = G, e[25] = Y, e[26] = X) : X = e[26];
912
905
  let U;
913
- e[38] !== m ? (U = /* @__PURE__ */ n(fe, { variant: "outline", onClick: m, children: "Cancel" }), e[38] = m, e[39] = U) : U = e[39];
906
+ e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
907
+ padding: "sm"
908
+ }, e[27] = U) : U = e[27];
914
909
  let Z;
915
- e[40] !== R || e[41] !== u ? (Z = /* @__PURE__ */ n(fe, { onClick: u, disabled: R, children: "Select repository" }), e[40] = R, e[41] = u, e[42] = Z) : Z = e[42];
916
- let X;
917
- e[43] !== U || e[44] !== Z ? (X = /* @__PURE__ */ n(q.Footer, { children: /* @__PURE__ */ b($, { direction: "row", gap: "sm", children: [
918
- U,
910
+ e[28] !== s || e[29] !== w || e[30] !== I || e[31] !== x || e[32] !== v || e[33] !== z ? (Z = /* @__PURE__ */ i(he, { borderWidth: "1px", borderRadius: "md", borderColor: "border.muted", maxHeight: "320px", contentProps: U, children: I ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "Loading..." }) : w ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "red.500", children: w }) : s.length === 0 ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: "No entries found." }) : /* @__PURE__ */ i(D, { gap: "xs", children: s.map((le) => /* @__PURE__ */ i(ml, { entry: le, selectedPath: v, selectedPathSet: z, onEntryClick: x }, le.path)) }) }), e[28] = s, e[29] = w, e[30] = I, e[31] = x, e[32] = v, e[33] = z, e[34] = Z) : Z = e[34];
911
+ let te;
912
+ e[35] !== X || e[36] !== Z ? (te = /* @__PURE__ */ i(J.Body, { children: /* @__PURE__ */ b(D, { gap: "md", children: [
913
+ X,
919
914
  Z
920
- ] }) }), e[43] = U, e[44] = Z, e[45] = X) : X = e[45];
915
+ ] }) }), e[35] = X, e[36] = Z, e[37] = te) : te = e[37];
921
916
  let K;
922
- e[46] !== B || e[47] !== te || e[48] !== X ? (K = /* @__PURE__ */ n(q.Positioner, { children: /* @__PURE__ */ b(q.Content, { children: [
923
- B,
917
+ e[38] !== f ? (K = /* @__PURE__ */ i(ue, { variant: "outline", onClick: f, children: "Cancel" }), e[38] = f, e[39] = K) : K = e[39];
918
+ let ee;
919
+ e[40] !== T || e[41] !== u ? (ee = /* @__PURE__ */ i(ue, { onClick: u, disabled: T, children: "Select repository" }), e[40] = T, e[41] = u, e[42] = ee) : ee = e[42];
920
+ let V;
921
+ e[43] !== K || e[44] !== ee ? (V = /* @__PURE__ */ i(J.Footer, { children: /* @__PURE__ */ b(D, { direction: "row", gap: "sm", children: [
922
+ K,
923
+ ee
924
+ ] }) }), e[43] = K, e[44] = ee, e[45] = V) : V = e[45];
925
+ let q;
926
+ e[46] !== M || e[47] !== te || e[48] !== V ? (q = /* @__PURE__ */ i(J.Positioner, { children: /* @__PURE__ */ b(J.Content, { children: [
927
+ M,
924
928
  te,
925
- X
926
- ] }) }), e[46] = B, e[47] = te, e[48] = X, e[49] = K) : K = e[49];
927
- let _;
928
- return e[50] !== l || e[51] !== K || e[52] !== W ? (_ = /* @__PURE__ */ b(q.Root, { closeOnInteractOutside: !1, open: l, onOpenChange: W, children: [
929
- V,
930
- K
931
- ] }), e[50] = l, e[51] = K, e[52] = W, e[53] = _) : _ = e[53], _;
929
+ V
930
+ ] }) }), e[46] = M, e[47] = te, e[48] = V, e[49] = q) : q = e[49];
931
+ let W;
932
+ return e[50] !== l || e[51] !== q || e[52] !== L ? (W = /* @__PURE__ */ b(J.Root, { closeOnInteractOutside: !1, open: l, onOpenChange: L, children: [
933
+ O,
934
+ q
935
+ ] }), e[50] = l, e[51] = q, e[52] = L, e[53] = W) : W = e[53], W;
932
936
  };
933
- function Zl(i) {
934
- const e = T(6);
937
+ function zn(n) {
938
+ const e = $(6);
935
939
  let l, t;
936
- e[0] !== i ? ({
940
+ e[0] !== n ? ({
937
941
  children: l,
938
942
  ...t
939
- } = i, e[0] = i, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
940
- let r;
941
- return e[3] !== l || e[4] !== t ? (r = /* @__PURE__ */ n(ee, { ...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;
943
+ } = n, e[0] = n, e[1] = l, e[2] = t) : (l = e[1], t = e[2]);
944
+ let o;
945
+ return e[3] !== l || e[4] !== t ? (o = /* @__PURE__ */ i(F, { ...t, minH: "49px", justify: "space-between", align: "center", borderBottomWidth: "1px", p: "xs", children: l }), e[3] = l, e[4] = t, e[5] = o) : o = e[5], o;
942
946
  }
943
- const il = (i, e) => `${i.name}-${i.version ?? "unknown"}-${e}`, rl = (i) => i.version ? `${i.name} v${i.version}` : i.name, en = (i) => {
944
- const e = T(30), {
947
+ const bl = (n, e) => `${n.name}-${n.version ?? "unknown"}-${e}`, xl = (n) => n.version ? `${n.name} v${n.version}` : n.name, Hn = (n) => {
948
+ const e = $(30), {
945
949
  notices: l,
946
950
  title: t,
947
- description: r,
948
- productName: s,
949
- productVersion: o,
951
+ description: o,
952
+ productName: r,
953
+ productVersion: s,
950
954
  generatedAt: a,
951
955
  emptyTitle: c,
952
956
  emptyDescription: d
953
- } = i, h = t === void 0 ? "Open Source and Third-Party Notices" : t, f = r === void 0 ? "This product includes software developed by the open source community." : r, m = c === void 0 ? "No third-party notices available" : c, u = d === void 0 ? "No third-party packages were included in this build." : d;
954
- let g;
955
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
957
+ } = n, h = t === void 0 ? "Open Source and Third-Party Notices" : t, g = o === void 0 ? "This product includes software developed by the open source community." : o, f = c === void 0 ? "No third-party notices available" : c, u = d === void 0 ? "No third-party packages were included in this build." : d;
958
+ let p;
959
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
956
960
  base: "md",
957
961
  md: "xl"
958
- }, e[0] = g) : g = e[0];
959
- let p;
960
- e[1] !== h ? (p = /* @__PURE__ */ n(C, { textStyle: "heading/L", children: h }), e[1] = h, e[2] = p) : p = e[2];
962
+ }, e[0] = p) : p = e[0];
963
+ let m;
964
+ e[1] !== h ? (m = /* @__PURE__ */ i(C, { textStyle: "heading/L", children: h }), e[1] = h, e[2] = m) : m = e[2];
961
965
  let x;
962
- e[3] !== f ? (x = /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: f }), e[3] = f, e[4] = x) : x = e[4];
966
+ e[3] !== g ? (x = /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: g }), e[3] = g, e[4] = x) : x = e[4];
963
967
  let S;
964
- e[5] !== s ? (S = s ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
968
+ e[5] !== r ? (S = r ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
965
969
  "Product: ",
966
- s
967
- ] }) : null, e[5] = s, e[6] = S) : S = e[6];
970
+ r
971
+ ] }) : null, e[5] = r, e[6] = S) : S = e[6];
968
972
  let y;
969
- e[7] !== o ? (y = o ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
973
+ e[7] !== s ? (y = s ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
970
974
  "Version: ",
971
- o
972
- ] }) : null, e[7] = o, e[8] = y) : y = e[8];
975
+ s
976
+ ] }) : null, e[7] = s, e[8] = y) : y = e[8];
973
977
  let v;
974
978
  e[9] !== l.length ? (v = /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
975
979
  "Packages: ",
976
980
  l.length
977
981
  ] }), e[9] = l.length, e[10] = v) : v = e[10];
978
- let w;
979
- e[11] !== a ? (w = a ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
982
+ let k;
983
+ e[11] !== a ? (k = a ? /* @__PURE__ */ b(C, { textStyle: "label/XS", color: "fg.muted", children: [
980
984
  "Generated: ",
981
985
  a
982
- ] }) : null, e[11] = a, e[12] = w) : w = e[12];
986
+ ] }) : null, e[11] = a, e[12] = k) : k = e[12];
983
987
  let P;
984
- e[13] !== w || e[14] !== S || e[15] !== y || e[16] !== v ? (P = /* @__PURE__ */ b(ee, { gap: "md", flexWrap: "wrap", children: [
988
+ e[13] !== k || e[14] !== S || e[15] !== y || e[16] !== v ? (P = /* @__PURE__ */ b(F, { gap: "md", flexWrap: "wrap", children: [
985
989
  S,
986
990
  y,
987
991
  v,
988
- w
989
- ] }), e[13] = w, e[14] = S, e[15] = y, e[16] = v, e[17] = P) : P = e[17];
990
- let k;
991
- e[18] !== P || e[19] !== p || e[20] !== x ? (k = /* @__PURE__ */ b($, { gap: "xs", children: [
992
- p,
992
+ k
993
+ ] }), e[13] = k, e[14] = S, e[15] = y, e[16] = v, e[17] = P) : P = e[17];
994
+ let I;
995
+ e[18] !== P || e[19] !== m || e[20] !== x ? (I = /* @__PURE__ */ b(D, { gap: "xs", children: [
996
+ m,
993
997
  x,
994
998
  P
995
- ] }), e[18] = P, e[19] = p, e[20] = x, e[21] = k) : k = e[21];
996
- let I;
997
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ n(rt, { borderColor: "border.muted" }), e[22] = I) : I = e[22];
999
+ ] }), e[18] = P, e[19] = m, e[20] = x, e[21] = I) : I = e[21];
1000
+ let w;
1001
+ e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ i(gt, { borderColor: "border.muted" }), e[22] = w) : w = e[22];
1002
+ let T;
1003
+ e[23] !== u || e[24] !== f || e[25] !== l ? (T = l.length === 0 ? /* @__PURE__ */ b(D, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1004
+ /* @__PURE__ */ i(C, { textStyle: "label/L/medium", children: f }),
1005
+ /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: u })
1006
+ ] }) : /* @__PURE__ */ i(D, { gap: "md", children: l.map(Sl) }), e[23] = u, e[24] = f, e[25] = l, e[26] = T) : T = e[26];
998
1007
  let R;
999
- e[23] !== u || e[24] !== m || e[25] !== l ? (R = l.length === 0 ? /* @__PURE__ */ b($, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "lg", gap: "xs", children: [
1000
- /* @__PURE__ */ n(C, { textStyle: "label/L/medium", children: m }),
1001
- /* @__PURE__ */ n(C, { textStyle: "paragraph/S/regular", color: "fg.muted", children: u })
1002
- ] }) : /* @__PURE__ */ n($, { gap: "md", children: l.map(ol) }), e[23] = u, e[24] = m, e[25] = l, e[26] = R) : R = e[26];
1003
- let z;
1004
- return e[27] !== k || e[28] !== R ? (z = /* @__PURE__ */ b($, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: g, gap: "lg", children: [
1005
- k,
1008
+ return e[27] !== I || e[28] !== T ? (R = /* @__PURE__ */ b(D, { width: "full", minHeight: "100%", background: "bg", color: "fg", padding: p, gap: "lg", children: [
1006
1009
  I,
1007
- R
1008
- ] }), e[27] = k, e[28] = R, e[29] = z) : z = e[29], z;
1010
+ w,
1011
+ T
1012
+ ] }), e[27] = I, e[28] = T, e[29] = R) : R = e[29], R;
1009
1013
  };
1010
- function ol(i, e) {
1011
- return /* @__PURE__ */ n(L, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b($, { gap: "sm", children: [
1012
- /* @__PURE__ */ b($, { gap: "2xs", children: [
1013
- /* @__PURE__ */ n(C, { textStyle: "label/L/medium", children: rl(i) }),
1014
+ function Sl(n, e) {
1015
+ return /* @__PURE__ */ i(E, { borderWidth: "1px", borderColor: "border.muted", borderRadius: "md", padding: "md", children: /* @__PURE__ */ b(D, { gap: "sm", children: [
1016
+ /* @__PURE__ */ b(D, { gap: "2xs", children: [
1017
+ /* @__PURE__ */ i(C, { textStyle: "label/L/medium", children: xl(n) }),
1014
1018
  /* @__PURE__ */ b(C, { textStyle: "label/S/regular", color: "fg.muted", children: [
1015
1019
  "License: ",
1016
- i.license ?? "Unknown"
1020
+ n.license ?? "Unknown"
1017
1021
  ] })
1018
1022
  ] }),
1019
- i.copyright ? /* @__PURE__ */ n(C, { textStyle: "label/S/regular", color: "fg.muted", children: i.copyright }) : null,
1020
- (i.homepageUrl || i.sourceUrl) && /* @__PURE__ */ b($, { gap: "2xs", children: [
1021
- i.homepageUrl ? /* @__PURE__ */ n(Ae, { href: i.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1022
- i.sourceUrl ? /* @__PURE__ */ n(Ae, { href: i.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1023
+ n.copyright ? /* @__PURE__ */ i(C, { textStyle: "label/S/regular", color: "fg.muted", children: n.copyright }) : null,
1024
+ (n.homepageUrl || n.sourceUrl) && /* @__PURE__ */ b(D, { gap: "2xs", children: [
1025
+ n.homepageUrl ? /* @__PURE__ */ i(Be, { href: n.homepageUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Homepage" }) : null,
1026
+ n.sourceUrl ? /* @__PURE__ */ i(Be, { href: n.sourceUrl, target: "_blank", rel: "noreferrer", textStyle: "label/S/medium", width: "fit-content", children: "Source code" }) : null
1023
1027
  ] }),
1024
- i.attribution ? /* @__PURE__ */ n(L, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ n(C, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: i.attribution }) }) : null
1025
- ] }) }, il(i, e));
1028
+ n.attribution ? /* @__PURE__ */ i(E, { background: "bg.muted", borderRadius: "sm", padding: "sm", children: /* @__PURE__ */ i(C, { textStyle: "label/S/regular", whiteSpace: "pre-wrap", children: n.attribution }) }) : null
1029
+ ] }) }, bl(n, e));
1026
1030
  }
1027
- const tn = (i) => {
1028
- const e = T(4), {
1031
+ const Nn = (n) => {
1032
+ const e = $(4), {
1029
1033
  items: l
1030
- } = i;
1034
+ } = n;
1031
1035
  let t;
1032
- e[0] !== l ? (t = l.map(sl), e[0] = l, e[1] = t) : t = e[1];
1033
- let r;
1034
- return e[2] !== t ? (r = /* @__PURE__ */ n($, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = r) : r = e[3], r;
1036
+ e[0] !== l ? (t = l.map(yl), e[0] = l, e[1] = t) : t = e[1];
1037
+ let o;
1038
+ return e[2] !== t ? (o = /* @__PURE__ */ i(D, { gap: "sm", paddingLeft: "sm", paddingY: "xs", children: t }), e[2] = t, e[3] = o) : o = e[3], o;
1035
1039
  };
1036
- function sl(i, e) {
1037
- return /* @__PURE__ */ b(ee, { gap: "md", alignItems: "center", children: [
1038
- /* @__PURE__ */ n(L, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(ee, { gap: "1", alignItems: "center", children: [
1039
- /* @__PURE__ */ n(C, { textStyle: "label/S/medium", color: "fg.muted", children: i.label }),
1040
- i.description && /* @__PURE__ */ n(_e, { content: i.description, showArrow: !0, children: /* @__PURE__ */ n(ne, { as: wt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1040
+ function yl(n, e) {
1041
+ return /* @__PURE__ */ b(F, { gap: "md", alignItems: "center", children: [
1042
+ /* @__PURE__ */ i(E, { width: "140px", flexShrink: 0, children: /* @__PURE__ */ b(F, { gap: "1", alignItems: "center", children: [
1043
+ /* @__PURE__ */ i(C, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }),
1044
+ n.description && /* @__PURE__ */ i(Ee, { content: n.description, showArrow: !0, children: /* @__PURE__ */ i(ne, { as: Dt, boxSize: "12px", color: "fg.muted", opacity: 0.6, cursor: "help" }) })
1041
1045
  ] }) }),
1042
- /* @__PURE__ */ n(L, { flex: "1", children: i.value })
1043
- ] }, `${i.label}-${e}`);
1046
+ /* @__PURE__ */ i(E, { flex: "1", children: n.value })
1047
+ ] }, `${n.label}-${e}`);
1044
1048
  }
1045
- const al = (i) => i === "completed" ? kt : i === "failed" ? It : Pt, cl = (i) => i === "completed" ? "fg.success" : i === "failed" ? "fg.error" : "fg.muted", dl = (i) => {
1046
- const e = T(11), {
1049
+ const vl = (n) => n === "completed" ? Lt : n === "failed" ? Et : zt, Cl = (n) => n === "completed" ? "fg.success" : n === "failed" ? "fg.error" : "fg.muted", wl = (n) => {
1050
+ const e = $(11), {
1047
1051
  status: l,
1048
1052
  boxSize: t,
1049
- ariaLabel: r,
1050
- cursor: s,
1051
- onClick: o
1052
- } = i, a = t === void 0 ? "14px" : t, c = r === void 0 ? "Session status" : r;
1053
+ ariaLabel: o,
1054
+ cursor: r,
1055
+ onClick: s
1056
+ } = n, a = t === void 0 ? "14px" : t, c = o === void 0 ? "Session status" : o;
1053
1057
  let d;
1054
- e[0] !== l ? (d = al(l), e[0] = l, e[1] = d) : d = e[1];
1058
+ e[0] !== l ? (d = vl(l), e[0] = l, e[1] = d) : d = e[1];
1055
1059
  let h;
1056
- e[2] !== l ? (h = cl(l), e[2] = l, e[3] = h) : h = e[3];
1057
- let f;
1058
- return e[4] !== c || e[5] !== a || e[6] !== s || e[7] !== o || e[8] !== d || e[9] !== h ? (f = /* @__PURE__ */ n(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] = f) : f = e[10], f;
1059
- }, ln = ze.forwardRef(function(e, l) {
1060
- const t = T(32);
1061
- let r, s, o, a, c, d, h;
1060
+ e[2] !== l ? (h = Cl(l), e[2] = l, e[3] = h) : h = e[3];
1061
+ let g;
1062
+ return e[4] !== c || e[5] !== a || e[6] !== r || e[7] !== s || e[8] !== d || e[9] !== h ? (g = /* @__PURE__ */ i(ne, { as: d, boxSize: a, color: h, "aria-label": c, cursor: r, onClick: s }), e[4] = c, e[5] = a, e[6] = r, e[7] = s, e[8] = d, e[9] = h, e[10] = g) : g = e[10], g;
1063
+ }, tt = (n, e) => e.includes(n), kl = (n) => {
1064
+ const e = $(18), {
1065
+ action: l,
1066
+ sectionId: t,
1067
+ nodeId: o
1068
+ } = n;
1069
+ if (l.menuItems && l.menuItems.length > 0) {
1070
+ let a;
1071
+ e[0] !== l.icon || e[1] !== l.label ? (a = /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(_e, { variant: "ghost", size: "2xs", "aria-label": l.label, children: l.icon }) }), e[0] = l.icon, e[1] = l.label, e[2] = a) : a = e[2];
1072
+ let c;
1073
+ e[3] !== l.menuItems ? (c = l.menuItems.map(Pl), e[3] = l.menuItems, e[4] = c) : c = e[4];
1074
+ let d;
1075
+ e[5] !== c ? (d = /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "160px", bg: "bg", children: c }) }), e[5] = c, e[6] = d) : d = e[6];
1076
+ let h;
1077
+ return e[7] !== a || e[8] !== d ? (h = /* @__PURE__ */ b(ie.Root, { children: [
1078
+ a,
1079
+ d
1080
+ ] }), e[7] = a, e[8] = d, e[9] = h) : h = e[9], h;
1081
+ }
1082
+ let r;
1083
+ e[10] !== l || e[11] !== o || e[12] !== t ? (r = (a) => {
1084
+ a.stopPropagation(), l.onAction?.({
1085
+ sectionId: t,
1086
+ nodeId: o
1087
+ });
1088
+ }, e[10] = l, e[11] = o, e[12] = t, e[13] = r) : r = e[13];
1089
+ let s;
1090
+ return e[14] !== l.icon || e[15] !== l.label || e[16] !== r ? (s = /* @__PURE__ */ i(_e, { variant: "ghost", size: "2xs", "aria-label": l.label, onClick: r, children: l.icon }), e[14] = l.icon, e[15] = l.label, e[16] = r, e[17] = s) : s = e[17], s;
1091
+ }, lt = (n) => {
1092
+ const e = $(11), {
1093
+ sectionId: l,
1094
+ nodeId: t,
1095
+ actions: o
1096
+ } = n;
1097
+ if (o.length === 0)
1098
+ return null;
1099
+ let r, s;
1100
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
1101
+ opacity: "1",
1102
+ pointerEvents: "auto"
1103
+ }, s = {
1104
+ opacity: "1",
1105
+ pointerEvents: "auto"
1106
+ }, e[0] = r, e[1] = s) : (r = e[0], s = e[1]);
1107
+ let a;
1108
+ if (e[2] !== o || e[3] !== t || e[4] !== l) {
1109
+ let d;
1110
+ e[6] !== t || e[7] !== l ? (d = (h) => /* @__PURE__ */ i(kl, { action: h, sectionId: l, nodeId: t }, h.id), e[6] = t, e[7] = l, e[8] = d) : d = e[8], a = o.map(d), e[2] = o, e[3] = t, e[4] = l, e[5] = a;
1111
+ } else
1112
+ a = e[5];
1113
+ let c;
1114
+ return e[9] !== a ? (c = /* @__PURE__ */ i(F, { gap: "0", opacity: "0", pointerEvents: "none", _groupHover: r, _groupFocusWithin: s, transition: "opacity 120ms ease", onClick: $l, children: a }), e[9] = a, e[10] = c) : c = e[10], c;
1115
+ }, nt = (n) => {
1116
+ const e = $(61), {
1117
+ sectionId: l,
1118
+ node: t,
1119
+ level: o,
1120
+ expandedNodes: r,
1121
+ activeNodeId: s,
1122
+ onNavigate: a,
1123
+ onToggleNode: c
1124
+ } = n, d = (t.children?.length ?? 0) > 0;
1125
+ let h;
1126
+ e[0] !== r || e[1] !== d || e[2] !== t.id ? (h = d && tt(t.id, r), e[0] = r, e[1] = d, e[2] = t.id, e[3] = h) : h = e[3];
1127
+ const g = h, f = t.isNavigable || t.navigationIntent !== void 0, u = s === t.id, p = t.disabled === !0, m = o > 0 ? `calc(var(--chakra-spacing-1) + ${o} * var(--chakra-spacing-3))` : void 0;
1128
+ let x;
1129
+ e[4] !== d || e[5] !== p || e[6] !== f || e[7] !== t || e[8] !== a || e[9] !== c || e[10] !== l ? (x = () => {
1130
+ if (!p) {
1131
+ if (d) {
1132
+ c(t.id);
1133
+ return;
1134
+ }
1135
+ f && a?.({
1136
+ sectionId: l,
1137
+ nodeId: t.id,
1138
+ node: t,
1139
+ intent: t.navigationIntent
1140
+ });
1141
+ }
1142
+ }, e[4] = d, e[5] = p, e[6] = f, e[7] = t, e[8] = a, e[9] = c, e[10] = l, e[11] = x) : x = e[11];
1143
+ const S = x, y = t.children ? "0" : "2xs", v = u ? "bg.muted" : "transparent", k = u ? "bg.muted" : "bg.subtle";
1144
+ let P;
1145
+ e[12] !== k ? (P = {
1146
+ bg: k
1147
+ }, e[12] = k, e[13] = P) : P = e[13];
1148
+ const I = p ? "default" : "pointer";
1149
+ let w;
1150
+ e[14] !== t.icon ? (w = t.icon ? /* @__PURE__ */ i(E, { color: "fg.muted", flexShrink: 0, children: t.icon }) : null, e[14] = t.icon, e[15] = w) : w = e[15];
1151
+ const T = p ? "fg.muted" : "fg";
1152
+ let R;
1153
+ e[16] !== t.label || e[17] !== T ? (R = /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: T, truncate: !0, children: t.label }), e[16] = t.label, e[17] = T, e[18] = R) : R = e[18];
1154
+ let z;
1155
+ e[19] !== g || e[20] !== d ? (z = d ? /* @__PURE__ */ i(E, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(me, { size: 14, style: {
1156
+ transform: g ? "rotate(90deg)" : "rotate(0deg)",
1157
+ transition: "120ms"
1158
+ } }) }) : null, e[19] = g, e[20] = d, e[21] = z) : z = e[21];
1159
+ let L;
1160
+ e[22] !== z || e[23] !== R ? (L = /* @__PURE__ */ b(F, { gap: "1", minW: "0", children: [
1161
+ R,
1162
+ z
1163
+ ] }), e[22] = z, e[23] = R, e[24] = L) : L = e[24];
1164
+ let O;
1165
+ e[25] !== t.description ? (O = t.description ? /* @__PURE__ */ i(C, { textStyle: "paragraph/XS/regular", color: "fg.muted", truncate: !0, children: t.description }) : null, e[25] = t.description, e[26] = O) : O = e[26];
1166
+ let N;
1167
+ e[27] !== L || e[28] !== O ? (N = /* @__PURE__ */ b(D, { gap: "0", minW: "0", flex: "1", children: [
1168
+ L,
1169
+ O
1170
+ ] }), e[27] = L, e[28] = O, e[29] = N) : N = e[29];
1171
+ let H;
1172
+ e[30] !== N || e[31] !== w ? (H = /* @__PURE__ */ b(F, { gap: "2", minW: "0", flex: "1", overflow: "hidden", children: [
1173
+ w,
1174
+ N
1175
+ ] }), e[30] = N, e[31] = w, e[32] = H) : H = e[32];
1176
+ let M;
1177
+ e[33] !== t.actions ? (M = t.actions ?? [], e[33] = t.actions, e[34] = M) : M = e[34];
1178
+ let B;
1179
+ e[35] !== t.id || e[36] !== l || e[37] !== M ? (B = /* @__PURE__ */ i(lt, { sectionId: l, nodeId: t.id, actions: M }), e[35] = t.id, e[36] = l, e[37] = M, e[38] = B) : B = e[38];
1180
+ let A;
1181
+ e[39] !== S || e[40] !== u || e[41] !== m || e[42] !== H || e[43] !== B || e[44] !== v || e[45] !== P || e[46] !== I ? (A = /* @__PURE__ */ b(F, { className: "group", role: "option", "aria-selected": u, justify: "space-between", align: "center", borderRadius: "xs", px: "1", py: "2xs", pl: m, bg: v, _hover: P, cursor: I, onClick: S, overflow: "hidden", children: [
1182
+ H,
1183
+ B
1184
+ ] }), e[39] = S, e[40] = u, e[41] = m, e[42] = H, e[43] = B, e[44] = v, e[45] = P, e[46] = I, e[47] = A) : A = e[47];
1185
+ let j;
1186
+ e[48] !== s || e[49] !== g || e[50] !== r || e[51] !== o || e[52] !== t.children || e[53] !== a || e[54] !== c || e[55] !== l ? (j = g ? t.children?.map((G) => /* @__PURE__ */ i(nt, { sectionId: l, node: G, level: o + 1, expandedNodes: r, activeNodeId: s, onNavigate: a, onToggleNode: c }, G.id)) : null, e[48] = s, e[49] = g, e[50] = r, e[51] = o, e[52] = t.children, e[53] = a, e[54] = c, e[55] = l, e[56] = j) : j = e[56];
1187
+ let _;
1188
+ return e[57] !== A || e[58] !== j || e[59] !== y ? (_ = /* @__PURE__ */ b(D, { gap: y, children: [
1189
+ A,
1190
+ j
1191
+ ] }), e[57] = A, e[58] = j, e[59] = y, e[60] = _) : _ = e[60], _;
1192
+ }, Il = (n) => {
1193
+ const e = $(17), {
1194
+ sections: l,
1195
+ expandedSections: t,
1196
+ expandedNodes: o,
1197
+ activeNodeId: r,
1198
+ onNavigate: s,
1199
+ onToggleSection: a,
1200
+ onToggleNode: c
1201
+ } = n;
1202
+ let d;
1203
+ if (e[0] !== r || e[1] !== o || e[2] !== t || e[3] !== s || e[4] !== c || e[5] !== a || e[6] !== l) {
1204
+ let g;
1205
+ e[8] !== r || e[9] !== o || e[10] !== t || e[11] !== s || e[12] !== c || e[13] !== a ? (g = (f) => {
1206
+ const u = f.label ? tt(f.id, t) : !0;
1207
+ return /* @__PURE__ */ b(D, { gap: "0", children: [
1208
+ f.label ? /* @__PURE__ */ b(F, { className: "group", justify: "space-between", align: "center", px: "1", py: "2xs", minH: "7", cursor: "pointer", borderRadius: "xs", _hover: {
1209
+ bg: "bg.subtle"
1210
+ }, onClick: () => a(f.id), children: [
1211
+ /* @__PURE__ */ b(F, { gap: "1", flex: "1", minW: "0", children: [
1212
+ /* @__PURE__ */ i(C, { textStyle: "label/XS", textTransform: "uppercase", color: "fg.muted", letterSpacing: "0.08em", truncate: !0, children: f.label }),
1213
+ /* @__PURE__ */ i(E, { color: "fg.muted", flexShrink: 0, children: /* @__PURE__ */ i(me, { size: 14, style: {
1214
+ transform: u ? "rotate(90deg)" : "rotate(0deg)",
1215
+ transition: "120ms"
1216
+ } }) })
1217
+ ] }),
1218
+ /* @__PURE__ */ i(lt, { sectionId: f.id, actions: f.actions ?? [] })
1219
+ ] }) : null,
1220
+ u ? f.nodes.length > 0 ? f.nodes.map((p) => /* @__PURE__ */ i(nt, { sectionId: f.id, node: p, level: 0, expandedNodes: o, activeNodeId: r, onNavigate: s, onToggleNode: c }, p.id)) : f.emptyState ?? null : null
1221
+ ] }, f.id);
1222
+ }, e[8] = r, e[9] = o, e[10] = t, e[11] = s, e[12] = c, e[13] = a, e[14] = g) : g = e[14], d = l.map(g), e[0] = r, e[1] = o, e[2] = t, e[3] = s, e[4] = c, e[5] = a, e[6] = l, e[7] = d;
1223
+ } else
1224
+ d = e[7];
1225
+ let h;
1226
+ return e[15] !== d ? (h = /* @__PURE__ */ i(D, { role: "listbox", gap: "md", p: "md", children: d }), e[15] = d, e[16] = h) : h = e[16], h;
1227
+ };
1228
+ function Pl(n) {
1229
+ return /* @__PURE__ */ b(ie.Item, { value: n.id, onClick: () => n.onAction?.(), children: [
1230
+ n.icon ? /* @__PURE__ */ i(E, { mr: "2", children: n.icon }) : null,
1231
+ n.label
1232
+ ] }, n.id);
1233
+ }
1234
+ function $l(n) {
1235
+ return n.stopPropagation();
1236
+ }
1237
+ const Fe = {
1238
+ open: !0,
1239
+ expandedSections: [],
1240
+ expandedNodes: []
1241
+ }, Tl = "pstdio/ui/sidebar-next", _l = (n) => `${Tl}/${n}`, Rl = () => ({
1242
+ getItem: () => null,
1243
+ setItem: () => {
1244
+ },
1245
+ removeItem: () => {
1246
+ }
1247
+ }), Ve = (n, e) => n.includes(e) ? n.filter((l) => l !== e) : [...n, e], Ye = (n, e, l) => l ? n.includes(e) ? n : [...n, e] : n.filter((t) => t !== e), Dl = (n) => ({
1248
+ open: n.open,
1249
+ expandedSections: n.expandedSections,
1250
+ expandedNodes: n.expandedNodes
1251
+ }), Ll = (n) => {
1252
+ const {
1253
+ storageKey: e,
1254
+ initialState: l
1255
+ } = n, t = {
1256
+ ...Fe,
1257
+ ...l
1258
+ };
1259
+ return jt()(Bt((o) => ({
1260
+ ...t,
1261
+ openSidebar: () => o((r) => ({
1262
+ ...r,
1263
+ open: !0
1264
+ })),
1265
+ closeSidebar: () => o((r) => ({
1266
+ ...r,
1267
+ open: !1
1268
+ })),
1269
+ toggleSidebar: () => o((r) => ({
1270
+ ...r,
1271
+ open: !r.open
1272
+ })),
1273
+ toggleSection: (r) => o((s) => ({
1274
+ ...s,
1275
+ expandedSections: Ve(s.expandedSections, r)
1276
+ })),
1277
+ toggleNode: (r) => o((s) => ({
1278
+ ...s,
1279
+ expandedNodes: Ve(s.expandedNodes, r)
1280
+ })),
1281
+ setSectionExpanded: (r, s) => o((a) => ({
1282
+ ...a,
1283
+ expandedSections: Ye(a.expandedSections, r, s)
1284
+ })),
1285
+ setNodeExpanded: (r, s) => o((a) => ({
1286
+ ...a,
1287
+ expandedNodes: Ye(a.expandedNodes, r, s)
1288
+ })),
1289
+ reset: () => o(Fe)
1290
+ }), {
1291
+ name: _l(e),
1292
+ storage: Ot(() => typeof globalThis.localStorage > "u" ? Rl() : globalThis.localStorage),
1293
+ partialize: Dl
1294
+ }));
1295
+ }, Ue = /* @__PURE__ */ new Map(), El = (n) => {
1296
+ const e = Ue.get(n);
1297
+ if (e)
1298
+ return e;
1299
+ const l = Ll({
1300
+ storageKey: n
1301
+ });
1302
+ return Ue.set(n, l), l;
1303
+ }, Te = (n, e) => {
1304
+ const l = $(2);
1305
+ let t;
1306
+ return l[0] !== n ? (t = El(n), l[0] = n, l[1] = t) : t = l[1], Mt(t, e);
1307
+ }, zl = (n) => {
1308
+ const e = $(2), {
1309
+ children: l
1310
+ } = n;
1311
+ if (!l)
1312
+ return null;
1313
+ let t;
1314
+ return e[0] !== l ? (t = /* @__PURE__ */ i(E, { px: "2", py: "2", bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: l }), e[0] = l, e[1] = t) : t = e[1], t;
1315
+ }, Hl = (n) => {
1316
+ const e = $(7), {
1317
+ children: l,
1318
+ onClose: t
1319
+ } = n;
1320
+ let o;
1321
+ e[0] !== l ? (o = /* @__PURE__ */ i(F, { minW: "0", flex: "1", children: l }), e[0] = l, e[1] = o) : o = e[1];
1322
+ let r;
1323
+ e[2] !== t ? (r = t ? /* @__PURE__ */ i(_e, { variant: "ghost", size: "sm", "aria-label": "Hide sidebar", onClick: t, children: /* @__PURE__ */ i(Ht, { size: 16 }) }) : null, e[2] = t, e[3] = r) : r = e[3];
1324
+ let s;
1325
+ return e[4] !== o || e[5] !== r ? (s = /* @__PURE__ */ b(F, { justify: "space-between", align: "center", px: "4", py: "3", bg: "bg", position: "sticky", top: "0", zIndex: "1", children: [
1326
+ o,
1327
+ r
1328
+ ] }), e[4] = o, e[5] = r, e[6] = s) : s = e[6], s;
1329
+ }, Wn = (n) => {
1330
+ const e = $(23), {
1331
+ storageKey: l,
1332
+ sections: t,
1333
+ activeNodeId: o,
1334
+ header: r,
1335
+ footer: s,
1336
+ width: a,
1337
+ closable: c,
1338
+ emptyLabel: d,
1339
+ onNavigate: h,
1340
+ onOpenChange: g
1341
+ } = n, f = a === void 0 ? "240px" : a, u = c === void 0 ? !0 : c, p = d === void 0 ? "No items available." : d, m = Te(l, Nl), x = Te(l, Wl), S = Te(l, Al), y = Te(l, Ml), v = Te(l, Bl), k = Te(l, Ol);
1342
+ let P, I;
1343
+ if (e[0] !== g || e[1] !== m ? (P = () => {
1344
+ g?.(m);
1345
+ }, I = [g, m], e[0] = g, e[1] = m, e[2] = P, e[3] = I) : (P = e[2], I = e[3]), We(P, I), !m && u)
1346
+ return null;
1347
+ const w = u ? y : void 0;
1348
+ let T;
1349
+ e[4] !== r || e[5] !== w ? (T = /* @__PURE__ */ i(Hl, { onClose: w, children: r }), e[4] = r, e[5] = w, e[6] = T) : T = e[6];
1350
+ let R;
1351
+ e[7] !== o || e[8] !== p || e[9] !== S || e[10] !== x || e[11] !== h || e[12] !== t || e[13] !== k || e[14] !== v ? (R = /* @__PURE__ */ i(he, { flex: "1", children: t.length === 0 ? /* @__PURE__ */ i(C, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: p }) : /* @__PURE__ */ i(Il, { sections: t, expandedSections: x, expandedNodes: S, activeNodeId: o, onNavigate: h, onToggleSection: v, onToggleNode: k }) }), e[7] = o, e[8] = p, e[9] = S, e[10] = x, e[11] = h, e[12] = t, e[13] = k, e[14] = v, e[15] = R) : R = e[15];
1352
+ let z;
1353
+ e[16] !== s ? (z = /* @__PURE__ */ i(zl, { children: s }), e[16] = s, e[17] = z) : z = e[17];
1354
+ let L;
1355
+ return e[18] !== T || e[19] !== R || e[20] !== z || e[21] !== f ? (L = /* @__PURE__ */ b(pe, { as: "aside", direction: "column", h: "100%", w: f, minW: f, maxW: f, borderRightWidth: "1px", borderRightColor: "border.muted", bg: "bg", children: [
1356
+ T,
1357
+ R,
1358
+ z
1359
+ ] }), e[18] = T, e[19] = R, e[20] = z, e[21] = f, e[22] = L) : L = e[22], L;
1360
+ };
1361
+ function Nl(n) {
1362
+ return n.open;
1363
+ }
1364
+ function Wl(n) {
1365
+ return n.expandedSections;
1366
+ }
1367
+ function Al(n) {
1368
+ return n.expandedNodes;
1369
+ }
1370
+ function Ml(n) {
1371
+ return n.closeSidebar;
1372
+ }
1373
+ function Bl(n) {
1374
+ return n.toggleSection;
1375
+ }
1376
+ function Ol(n) {
1377
+ return n.toggleNode;
1378
+ }
1379
+ const An = He.forwardRef(function(e, l) {
1380
+ const t = $(32);
1381
+ let o, r, s, a, c, d, h;
1062
1382
  t[0] !== e ? ({
1063
- inputProps: s,
1064
- children: r,
1383
+ inputProps: r,
1384
+ children: o,
1065
1385
  rootRef: a,
1066
1386
  trackLabel: h,
1067
1387
  thumbLabel: d,
1068
1388
  disabled: c,
1069
- ...o
1070
- } = 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]);
1071
- const f = c === void 0 ? !1 : c, m = f ? "not-allowed" : "pointer";
1389
+ ...s
1390
+ } = e, t[0] = e, t[1] = o, t[2] = r, t[3] = s, t[4] = a, t[5] = c, t[6] = d, t[7] = h) : (o = t[1], r = t[2], s = t[3], a = t[4], c = t[5], d = t[6], h = t[7]);
1391
+ const g = c === void 0 ? !1 : c, f = g ? "not-allowed" : "pointer";
1072
1392
  let u;
1073
- t[8] !== s || t[9] !== l ? (u = /* @__PURE__ */ n(ue.HiddenInput, { ref: l, ...s }), t[8] = s, t[9] = l, t[10] = u) : u = t[10];
1074
- let g;
1075
- t[11] !== d ? (g = d && /* @__PURE__ */ n(ue.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = g) : g = t[12];
1393
+ t[8] !== r || t[9] !== l ? (u = /* @__PURE__ */ i(be.HiddenInput, { ref: l, ...r }), t[8] = r, t[9] = l, t[10] = u) : u = t[10];
1076
1394
  let p;
1077
- t[13] !== g ? (p = /* @__PURE__ */ n(ue.Thumb, { borderRadius: "full", children: g }), t[13] = g, t[14] = p) : p = t[14];
1395
+ t[11] !== d ? (p = d && /* @__PURE__ */ i(be.ThumbIndicator, { fallback: d?.off, children: d?.on }), t[11] = d, t[12] = p) : p = t[12];
1396
+ let m;
1397
+ t[13] !== p ? (m = /* @__PURE__ */ i(be.Thumb, { borderRadius: "full", children: p }), t[13] = p, t[14] = m) : m = t[14];
1078
1398
  let x;
1079
- t[15] !== h ? (x = h && /* @__PURE__ */ n(ue.Indicator, { fallback: h.off, children: h.on }), t[15] = h, t[16] = x) : x = t[16];
1399
+ t[15] !== h ? (x = h && /* @__PURE__ */ i(be.Indicator, { fallback: h.off, children: h.on }), t[15] = h, t[16] = x) : x = t[16];
1080
1400
  let S;
1081
- t[17] !== m || t[18] !== p || t[19] !== x ? (S = /* @__PURE__ */ b(ue.Control, { borderRadius: "md", cursor: m, children: [
1082
- p,
1401
+ t[17] !== f || t[18] !== m || t[19] !== x ? (S = /* @__PURE__ */ b(be.Control, { borderRadius: "md", cursor: f, children: [
1402
+ m,
1083
1403
  x
1084
- ] }), t[17] = m, t[18] = p, t[19] = x, t[20] = S) : S = t[20];
1404
+ ] }), t[17] = f, t[18] = m, t[19] = x, t[20] = S) : S = t[20];
1085
1405
  let y;
1086
- t[21] !== r || t[22] !== m ? (y = r != null && /* @__PURE__ */ n(ue.Label, { cursor: m, children: r }), t[21] = r, t[22] = m, t[23] = y) : y = t[23];
1406
+ t[21] !== o || t[22] !== f ? (y = o != null && /* @__PURE__ */ i(be.Label, { cursor: f, children: o }), t[21] = o, t[22] = f, t[23] = y) : y = t[23];
1087
1407
  let v;
1088
- return t[24] !== f || t[25] !== m || t[26] !== o || t[27] !== a || t[28] !== u || t[29] !== S || t[30] !== y ? (v = /* @__PURE__ */ b(ue.Root, { ref: a, disabled: f, cursor: m, ...o, children: [
1408
+ return t[24] !== g || t[25] !== f || t[26] !== s || t[27] !== a || t[28] !== u || t[29] !== S || t[30] !== y ? (v = /* @__PURE__ */ b(be.Root, { ref: a, disabled: g, cursor: f, ...s, children: [
1089
1409
  u,
1090
1410
  S,
1091
1411
  y
1092
- ] }), t[24] = f, t[25] = m, t[26] = o, t[27] = a, t[28] = u, t[29] = S, t[30] = y, t[31] = v) : v = t[31], v;
1093
- }), hl = (i) => {
1094
- const e = T(43), {
1412
+ ] }), t[24] = g, t[25] = f, t[26] = s, t[27] = a, t[28] = u, t[29] = S, t[30] = y, t[31] = v) : v = t[31], v;
1413
+ }), jl = (n) => {
1414
+ const e = $(43), {
1095
1415
  ticketId: l,
1096
1416
  parentPath: t,
1097
- sessionIndicatorLabel: r,
1098
- sessionIndicatorStatus: s,
1099
- title: o,
1417
+ sessionIndicatorLabel: o,
1418
+ sessionIndicatorStatus: r,
1419
+ title: s,
1100
1420
  badges: a,
1101
1421
  diffAdditions: c,
1102
1422
  diffDeletions: d,
1103
1423
  isSelected: h,
1104
- draggable: f,
1105
- onDragStart: m,
1424
+ draggable: g,
1425
+ onDragStart: f,
1106
1426
  onDragEnd: u,
1107
- onClick: g,
1108
- onDiffBadgeClick: p,
1427
+ onClick: p,
1428
+ onDiffBadgeClick: m,
1109
1429
  onSessionIndicatorClick: x
1110
- } = i;
1430
+ } = n;
1111
1431
  let S;
1112
1432
  e[0] !== t ? (S = t === void 0 ? [] : t, e[0] = t, e[1] = S) : S = e[1];
1113
1433
  const y = S;
1114
1434
  let v;
1115
1435
  e[2] !== a ? (v = a === void 0 ? [] : a, e[2] = a, e[3] = v) : v = e[3];
1116
- const w = v, P = h === void 0 ? !1 : h;
1117
- let k;
1118
- e[4] !== p ? (k = (Y) => {
1119
- Y.stopPropagation(), p?.();
1120
- }, e[4] = p, e[5] = k) : k = e[5];
1121
- const I = k;
1122
- let R;
1123
- e[6] !== x ? (R = (Y) => {
1436
+ const k = v, P = h === void 0 ? !1 : h;
1437
+ let I;
1438
+ e[4] !== m ? (I = (Y) => {
1439
+ Y.stopPropagation(), m?.();
1440
+ }, e[4] = m, e[5] = I) : I = e[5];
1441
+ const w = I;
1442
+ let T;
1443
+ e[6] !== x ? (T = (Y) => {
1124
1444
  Y.stopPropagation(), x?.();
1125
- }, e[6] = x, e[7] = R) : R = e[7];
1126
- const z = R;
1127
- let j;
1128
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
1445
+ }, e[6] = x, e[7] = T) : T = e[7];
1446
+ const R = T;
1447
+ let z;
1448
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = {
1129
1449
  borderColor: "border.blue",
1130
1450
  boxShadow: "mid"
1131
- }, e[8] = j) : j = e[8];
1132
- const W = f ? "grab" : g ? "pointer" : "default", V = P ? "true" : void 0;
1133
- let H;
1134
- e[9] !== y ? (H = y.length > 0 && /* @__PURE__ */ b(C, { as: "span", color: "subtle", children: [
1451
+ }, e[8] = z) : z = e[8];
1452
+ const L = g ? "grab" : p ? "pointer" : "default", O = P ? "true" : void 0;
1453
+ let N;
1454
+ e[9] !== y ? (N = y.length > 0 && /* @__PURE__ */ b(C, { as: "span", color: "subtle", children: [
1135
1455
  y.join(" / "),
1136
1456
  " /",
1137
1457
  " "
1138
- ] }), e[9] = y, e[10] = H) : H = e[10];
1139
- let E;
1140
- e[11] !== H || e[12] !== l ? (E = /* @__PURE__ */ b(C, { textStyle: "label/S/regular", flexShrink: 0, children: [
1141
- H,
1458
+ ] }), e[9] = y, e[10] = N) : N = e[10];
1459
+ let H;
1460
+ e[11] !== N || e[12] !== l ? (H = /* @__PURE__ */ b(C, { textStyle: "label/S/regular", flexShrink: 0, children: [
1461
+ N,
1142
1462
  l
1143
- ] }), e[11] = H, e[12] = l, e[13] = E) : E = e[13];
1463
+ ] }), e[11] = N, e[12] = l, e[13] = H) : H = e[13];
1464
+ let M;
1465
+ e[14] !== R || e[15] !== x || e[16] !== o || e[17] !== r ? (M = o ? /* @__PURE__ */ i(Ee, { content: `Session ${o}`, children: /* @__PURE__ */ i(wl, { status: r, boxSize: "12px", "aria-label": `Session ${o}`, cursor: x ? "pointer" : "default", onClick: x ? R : void 0 }) }) : null, e[14] = R, e[15] = x, e[16] = o, e[17] = r, e[18] = M) : M = e[18];
1144
1466
  let B;
1145
- e[14] !== z || e[15] !== x || e[16] !== r || e[17] !== s ? (B = r ? /* @__PURE__ */ n(_e, { content: `Session ${r}`, children: /* @__PURE__ */ n(dl, { status: s, boxSize: "12px", "aria-label": `Session ${r}`, cursor: x ? "pointer" : "default", onClick: x ? z : void 0 }) }) : null, e[14] = z, e[15] = x, e[16] = r, e[17] = s, e[18] = B) : B = e[18];
1146
- let O;
1147
- e[19] !== E || e[20] !== B ? (O = /* @__PURE__ */ b(ee, { gap: "2xs", flexShrink: 0, children: [
1148
- E,
1149
- B
1150
- ] }), e[19] = E, e[20] = B, e[21] = O) : O = e[21];
1467
+ e[19] !== H || e[20] !== M ? (B = /* @__PURE__ */ b(F, { gap: "2xs", flexShrink: 0, children: [
1468
+ H,
1469
+ M
1470
+ ] }), e[19] = H, e[20] = M, e[21] = B) : B = e[21];
1151
1471
  let A;
1152
- e[22] !== c || e[23] !== d || e[24] !== I ? (A = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ n(Ne, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ n(Dt, { size: "12" }), onClick: I, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = I, e[25] = A) : A = e[25];
1153
- let F;
1154
- e[26] !== O || e[27] !== A ? (F = /* @__PURE__ */ b(ee, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1155
- O,
1472
+ e[22] !== c || e[23] !== d || e[24] !== w ? (A = typeof c == "number" && typeof d == "number" ? /* @__PURE__ */ i(Qe, { additions: c, deletions: d, variant: "ghost", size: "small", label: /* @__PURE__ */ i(Nt, { size: "12" }), onClick: w, "data-testid": "ticket-diff-badge" }) : null, e[22] = c, e[23] = d, e[24] = w, e[25] = A) : A = e[25];
1473
+ let j;
1474
+ e[26] !== B || e[27] !== A ? (j = /* @__PURE__ */ b(F, { justifyContent: "space-between", gap: "2xs", flexWrap: "wrap", children: [
1475
+ B,
1156
1476
  A
1157
- ] }), e[26] = O, e[27] = A, e[28] = F) : F = e[28];
1158
- let D;
1159
- e[29] !== o ? (D = /* @__PURE__ */ n(ee, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ n(C, { textStyle: "label/S/regular", flex: "1", minW: "0", children: o }) }), e[29] = o, e[30] = D) : D = e[30];
1477
+ ] }), e[26] = B, e[27] = A, e[28] = j) : j = e[28];
1478
+ let _;
1479
+ e[29] !== s ? (_ = /* @__PURE__ */ i(F, { align: "start", gap: "2xs", flexWrap: "wrap", children: /* @__PURE__ */ i(C, { textStyle: "label/S/regular", flex: "1", minW: "0", children: s }) }), e[29] = s, e[30] = _) : _ = e[30];
1160
1480
  let G;
1161
- e[31] !== w ? (G = w.length > 0 && /* @__PURE__ */ n(Fe, { gap: "2xs", children: w.map(fl) }), e[31] = w, e[32] = G) : G = e[32];
1162
- let J;
1163
- return e[33] !== f || e[34] !== g || e[35] !== u || e[36] !== m || e[37] !== F || e[38] !== D || e[39] !== G || e[40] !== W || e[41] !== V ? (J = /* @__PURE__ */ b($, { 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: j, cursor: W, draggable: f, onDragStart: m, onDragEnd: u, onClick: g, "data-selected": V, children: [
1164
- F,
1165
- D,
1481
+ e[31] !== k ? (G = k.length > 0 && /* @__PURE__ */ i(qe, { gap: "2xs", children: k.map(Gl) }), e[31] = k, e[32] = G) : G = e[32];
1482
+ let Q;
1483
+ return e[33] !== g || e[34] !== p || e[35] !== u || e[36] !== f || e[37] !== j || e[38] !== _ || e[39] !== G || e[40] !== L || e[41] !== O ? (Q = /* @__PURE__ */ b(D, { gap: "xs", padding: "sm", borderRadius: "sm", borderWidth: "1px", width: "calc(100% - 8px)", alignSelf: "center", background: "bg", transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out", _hover: z, cursor: L, draggable: g, onDragStart: f, onDragEnd: u, onClick: p, "data-selected": O, children: [
1484
+ j,
1485
+ _,
1166
1486
  G
1167
- ] }), e[33] = f, e[34] = g, e[35] = u, e[36] = m, e[37] = F, e[38] = D, e[39] = G, e[40] = W, e[41] = V, e[42] = J) : J = e[42], J;
1487
+ ] }), e[33] = g, e[34] = p, e[35] = u, e[36] = f, e[37] = j, e[38] = _, e[39] = G, e[40] = L, e[41] = O, e[42] = Q) : Q = e[42], Q;
1168
1488
  };
1169
- function fl(i) {
1170
- return /* @__PURE__ */ n(Le, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
1489
+ function Gl(n) {
1490
+ return /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: n.color ?? "gray", textStyle: "label/XS/medium", children: n.label }, n.label);
1171
1491
  }
1172
- const nn = (i) => {
1173
- const e = T(21), {
1492
+ const Mn = (n) => {
1493
+ const e = $(21), {
1174
1494
  columns: l,
1175
1495
  selectedItemId: t,
1176
- onMoveItem: r,
1177
- onCreateStart: s,
1178
- onColumnAction: o
1179
- } = i, a = t === void 0 ? null : t, [c, d] = De(null), h = ul;
1180
- let f;
1181
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => {
1496
+ onMoveItem: o,
1497
+ onCreateStart: r,
1498
+ onColumnAction: s
1499
+ } = n, a = t === void 0 ? null : t, [c, d] = Re(null), h = Fl;
1500
+ let g;
1501
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = () => {
1182
1502
  d(null);
1183
- }, e[0] = f) : f = e[0];
1184
- const m = f;
1503
+ }, e[0] = g) : g = e[0];
1504
+ const f = g;
1185
1505
  let u;
1186
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (k) => (I) => {
1187
- I.preventDefault(), I.dataTransfer.dropEffect = "move", d(k);
1506
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (I) => (w) => {
1507
+ w.preventDefault(), w.dataTransfer.dropEffect = "move", d(I);
1188
1508
  }, e[1] = u) : u = e[1];
1189
- const g = u;
1190
- let p;
1191
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = (k) => {
1192
- k.currentTarget.contains(k.relatedTarget) || d(null);
1193
- }, e[2] = p) : p = e[2];
1194
- const x = p;
1509
+ const p = u;
1510
+ let m;
1511
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (I) => {
1512
+ I.currentTarget.contains(I.relatedTarget) || d(null);
1513
+ }, e[2] = m) : m = e[2];
1514
+ const x = m;
1195
1515
  let S;
1196
- e[3] !== r ? (S = (k) => (I) => {
1197
- I.preventDefault(), d(null);
1198
- const R = I.dataTransfer.getData("text/plain");
1199
- R && r?.(R, k);
1200
- }, e[3] = r, e[4] = S) : S = e[4];
1516
+ e[3] !== o ? (S = (I) => (w) => {
1517
+ w.preventDefault(), d(null);
1518
+ const T = w.dataTransfer.getData("text/plain");
1519
+ T && o?.(T, I);
1520
+ }, e[3] = o, e[4] = S) : S = e[4];
1201
1521
  const y = S;
1202
1522
  let v;
1203
1523
  e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
@@ -1207,238 +1527,243 @@ const nn = (i) => {
1207
1527
  pb: "2xs",
1208
1528
  minH: "100%"
1209
1529
  }, e[5] = v) : v = e[5];
1210
- let w;
1211
- if (e[6] !== c || e[7] !== l || e[8] !== y || e[9] !== o || e[10] !== s || e[11] !== a) {
1212
- let k;
1213
- e[13] !== c || e[14] !== y || e[15] !== o || e[16] !== s || e[17] !== a ? (k = (I) => /* @__PURE__ */ b($, { gap: "xs", _notFirst: {
1530
+ let k;
1531
+ if (e[6] !== c || e[7] !== l || e[8] !== y || e[9] !== s || e[10] !== r || e[11] !== a) {
1532
+ let I;
1533
+ e[13] !== c || e[14] !== y || e[15] !== s || e[16] !== r || e[17] !== a ? (I = (w) => /* @__PURE__ */ b(D, { gap: "xs", _notFirst: {
1214
1534
  borderLeft: "1px solid",
1215
1535
  borderColor: "border"
1216
- }, background: c === I.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: I.canDragIn ? g(I.id) : void 0, onDragLeave: I.canDragIn ? x : void 0, onDrop: I.canDragIn ? y(I.id) : void 0, children: [
1217
- /* @__PURE__ */ n(ml, { column: I, onCreateStart: s, onColumnAction: o }),
1218
- /* @__PURE__ */ n(me, { flex: "1", minH: "0", contentProps: {
1536
+ }, background: c === w.id ? "bg.subtle" : "bg", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: w.canDragIn ? p(w.id) : void 0, onDragLeave: w.canDragIn ? x : void 0, onDrop: w.canDragIn ? y(w.id) : void 0, children: [
1537
+ /* @__PURE__ */ i(Xl, { column: w, onCreateStart: r, onColumnAction: s }),
1538
+ /* @__PURE__ */ i(he, { flex: "1", minH: "0", contentProps: {
1219
1539
  spaceY: "sm"
1220
- }, children: I.items.map((R) => /* @__PURE__ */ n(hl, { ...R.cardProps, isSelected: R.id === a, draggable: I.canDragOut, onDragStart: I.canDragOut ? h(R.id) : void 0, onDragEnd: I.canDragOut ? m : void 0 }, R.id)) })
1221
- ] }, I.id), e[13] = c, e[14] = y, e[15] = o, e[16] = s, e[17] = a, e[18] = k) : k = e[18], w = l.map(k), e[6] = c, e[7] = l, e[8] = y, e[9] = o, e[10] = s, e[11] = a, e[12] = w;
1540
+ }, children: w.items.map((T) => /* @__PURE__ */ i(jl, { ...T.cardProps, isSelected: T.id === a, draggable: w.canDragOut, onDragStart: w.canDragOut ? h(T.id) : void 0, onDragEnd: w.canDragOut ? f : void 0 }, T.id)) })
1541
+ ] }, w.id), e[13] = c, e[14] = y, e[15] = s, e[16] = r, e[17] = a, e[18] = I) : I = e[18], k = l.map(I), e[6] = c, e[7] = l, e[8] = y, e[9] = s, e[10] = r, e[11] = a, e[12] = k;
1222
1542
  } else
1223
- w = e[12];
1543
+ k = e[12];
1224
1544
  let P;
1225
- return e[19] !== w ? (P = /* @__PURE__ */ n(me, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: v, children: w }), e[19] = w, e[20] = P) : P = e[20], P;
1226
- }, ml = (i) => {
1227
- const e = T(20), {
1545
+ return e[19] !== k ? (P = /* @__PURE__ */ i(he, { height: "100%", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: v, children: k }), e[19] = k, e[20] = P) : P = e[20], P;
1546
+ }, Xl = (n) => {
1547
+ const e = $(20), {
1228
1548
  column: l,
1229
1549
  onCreateStart: t,
1230
- onColumnAction: r
1231
- } = i;
1232
- let s;
1233
- e[0] !== l.label ? (s = /* @__PURE__ */ n(C, { textStyle: "label/L/medium", children: l.label }), e[0] = l.label, e[1] = s) : s = e[1];
1234
- const o = l.color ?? "gray";
1550
+ onColumnAction: o
1551
+ } = n;
1552
+ let r;
1553
+ e[0] !== l.label ? (r = /* @__PURE__ */ i(C, { textStyle: "label/L/medium", children: l.label }), e[0] = l.label, e[1] = r) : r = e[1];
1554
+ const s = l.color ?? "gray";
1235
1555
  let a;
1236
- e[2] !== l.items.length || e[3] !== o ? (a = /* @__PURE__ */ n(Le, { variant: "subtle", colorPalette: o, children: l.items.length }), e[2] = l.items.length, e[3] = o, e[4] = a) : a = e[4];
1556
+ e[2] !== l.items.length || e[3] !== s ? (a = /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: s, children: l.items.length }), e[2] = l.items.length, e[3] = s, e[4] = a) : a = e[4];
1237
1557
  let c;
1238
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ n(ot, {}), e[5] = c) : c = e[5];
1558
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ i(ut, {}), e[5] = c) : c = e[5];
1239
1559
  let d;
1240
- e[6] !== l.canCreate || e[7] !== l.id || e[8] !== t ? (d = l.canCreate && t && /* @__PURE__ */ n(_e, { content: "Create new ticket", children: /* @__PURE__ */ n(We, { size: "2xs", variant: "outline", onClick: () => t(l.id), "aria-label": "Create ticket", children: /* @__PURE__ */ n(ne, { as: Tt, boxSize: "12px" }) }) }), e[6] = l.canCreate, e[7] = l.id, e[8] = t, e[9] = d) : d = e[9];
1560
+ e[6] !== l.canCreate || e[7] !== l.id || e[8] !== t ? (d = l.canCreate && t && /* @__PURE__ */ i(Ee, { content: "Create new ticket", children: /* @__PURE__ */ i(_e, { size: "2xs", variant: "outline", onClick: () => t(l.id), "aria-label": "Create ticket", children: /* @__PURE__ */ i(ne, { as: Wt, boxSize: "12px" }) }) }), e[6] = l.canCreate, e[7] = l.id, e[8] = t, e[9] = d) : d = e[9];
1241
1561
  let h;
1242
- e[10] !== l.actions || e[11] !== l.id || e[12] !== l.label || e[13] !== r ? (h = l.actions.length > 0 && /* @__PURE__ */ b(xe.Root, { children: [
1243
- /* @__PURE__ */ n(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ n(We, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${l.label}`, children: /* @__PURE__ */ n(ne, { as: $t, boxSize: "12px" }) }) }),
1244
- /* @__PURE__ */ n(xe.Positioner, { children: /* @__PURE__ */ n(xe.Content, { minW: "180px", bg: "bg", children: l.actions.map((m) => /* @__PURE__ */ n(He, { primaryLabel: m.label, leftIcon: m.icon, onClick: () => r?.(l.id, m.id) }, m.id)) }) })
1245
- ] }), e[10] = l.actions, e[11] = l.id, e[12] = l.label, e[13] = r, e[14] = h) : h = e[14];
1246
- let f;
1247
- return e[15] !== s || e[16] !== a || e[17] !== d || e[18] !== h ? (f = /* @__PURE__ */ b(ee, { padding: "xs", gap: "xs", alignItems: "center", children: [
1248
- s,
1562
+ e[10] !== l.actions || e[11] !== l.id || e[12] !== l.label || e[13] !== o ? (h = l.actions.length > 0 && /* @__PURE__ */ b(ie.Root, { children: [
1563
+ /* @__PURE__ */ i(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ i(_e, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${l.label}`, children: /* @__PURE__ */ i(ne, { as: At, boxSize: "12px" }) }) }),
1564
+ /* @__PURE__ */ i(ie.Positioner, { children: /* @__PURE__ */ i(ie.Content, { minW: "180px", bg: "bg", children: l.actions.map((f) => /* @__PURE__ */ i(Ae, { primaryLabel: f.label, leftIcon: f.icon, onClick: () => o?.(l.id, f.id) }, f.id)) }) })
1565
+ ] }), e[10] = l.actions, e[11] = l.id, e[12] = l.label, e[13] = o, e[14] = h) : h = e[14];
1566
+ let g;
1567
+ return e[15] !== r || e[16] !== a || e[17] !== d || e[18] !== h ? (g = /* @__PURE__ */ b(F, { padding: "xs", gap: "xs", alignItems: "center", children: [
1568
+ r,
1249
1569
  a,
1250
1570
  c,
1251
1571
  d,
1252
1572
  h
1253
- ] }), e[15] = s, e[16] = a, e[17] = d, e[18] = h, e[19] = f) : f = e[19], f;
1573
+ ] }), e[15] = r, e[16] = a, e[17] = d, e[18] = h, e[19] = g) : g = e[19], g;
1254
1574
  };
1255
- function ul(i) {
1575
+ function Fl(n) {
1256
1576
  return (e) => {
1257
- e.dataTransfer.setData("text/plain", i), e.dataTransfer.effectAllowed = "move";
1577
+ e.dataTransfer.setData("text/plain", n), e.dataTransfer.effectAllowed = "move";
1258
1578
  };
1259
1579
  }
1260
- const gl = [{
1580
+ const Vl = [{
1261
1581
  id: "ticket",
1262
1582
  header: "",
1263
1583
  cell: ({
1264
- row: i
1265
- }) => /* @__PURE__ */ n(pl, { row: i })
1266
- }], rn = (i) => {
1584
+ row: n
1585
+ }) => /* @__PURE__ */ i(Yl, { row: n })
1586
+ }], Bn = (n) => {
1267
1587
  const {
1268
1588
  items: e,
1269
1589
  selectedItemId: l = null,
1270
1590
  onItemClick: t
1271
- } = i, r = Rt({
1591
+ } = n, o = Gt({
1272
1592
  data: e,
1273
- columns: gl,
1593
+ columns: Vl,
1274
1594
  state: {
1275
1595
  expanded: !0
1276
1596
  },
1277
- getSubRows: (s) => s.children,
1278
- getCoreRowModel: Lt(),
1279
- getExpandedRowModel: _t(),
1280
- getRowId: (s) => s.id
1597
+ getSubRows: (r) => r.children,
1598
+ getCoreRowModel: Ft(),
1599
+ getExpandedRowModel: Xt(),
1600
+ getRowId: (r) => r.id
1281
1601
  });
1282
- return /* @__PURE__ */ n(L, { children: r.getRowModel().rows.map((s) => {
1283
- const o = s.original, a = o.id === l;
1284
- return /* @__PURE__ */ n(ee, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: a ? "bg.muted" : "transparent", _hover: {
1602
+ return /* @__PURE__ */ i(E, { children: o.getRowModel().rows.map((r) => {
1603
+ const s = r.original, a = s.id === l;
1604
+ return /* @__PURE__ */ i(F, { paddingX: "sm", paddingY: "xs", gap: "sm", cursor: "pointer", borderBottomWidth: "1px", borderColor: "border.muted", background: a ? "bg.muted" : "transparent", _hover: {
1285
1605
  background: "bg.muted"
1286
1606
  }, onClick: () => {
1287
- o.onClick?.(), t?.(o);
1288
- }, "data-selected": a ? "true" : void 0, children: zt(s.getVisibleCells()[0].column.columnDef.cell, s.getVisibleCells()[0].getContext()) }, s.id);
1607
+ s.onClick?.(), t?.(s);
1608
+ }, "data-selected": a ? "true" : void 0, children: Vt(r.getVisibleCells()[0].column.columnDef.cell, r.getVisibleCells()[0].getContext()) }, r.id);
1289
1609
  }) });
1290
- }, pl = (i) => {
1291
- const e = T(25), {
1610
+ }, Yl = (n) => {
1611
+ const e = $(25), {
1292
1612
  row: l
1293
- } = i, t = l.original, r = l.depth, s = r > 0 ? `${r * 24}px` : void 0;
1294
- let o;
1295
- e[0] !== r || e[1] !== l ? (o = l.getCanExpand() ? /* @__PURE__ */ n(xl, { row: l }) : r > 0 ? /* @__PURE__ */ n(bl, {}) : null, e[0] = r, e[1] = l, e[2] = o) : o = e[2];
1613
+ } = n, t = l.original, o = l.depth, r = o > 0 ? `${o * 24}px` : void 0;
1614
+ let s;
1615
+ e[0] !== o || e[1] !== l ? (s = l.getCanExpand() ? /* @__PURE__ */ i(Ul, { row: l }) : o > 0 ? /* @__PURE__ */ i(Kl, {}) : null, e[0] = o, e[1] = l, e[2] = s) : s = e[2];
1296
1616
  let a;
1297
- e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ n(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];
1617
+ e[3] !== t.statusColor || e[4] !== t.statusIcon ? (a = t.statusIcon && /* @__PURE__ */ i(ne, { as: t.statusIcon, boxSize: "16px", color: t.statusColor ?? "fg.muted", flexShrink: 0 }), e[3] = t.statusColor, e[4] = t.statusIcon, e[5] = a) : a = e[5];
1298
1618
  let c;
1299
- e[6] !== t.ticketId ? (c = /* @__PURE__ */ n(C, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
1619
+ e[6] !== t.ticketId ? (c = /* @__PURE__ */ i(C, { textStyle: "label/S/regular", color: "fg.muted", flexShrink: 0, minW: "70px", children: t.ticketId }), e[6] = t.ticketId, e[7] = c) : c = e[7];
1300
1620
  let d;
1301
- e[8] !== t.title ? (d = /* @__PURE__ */ n(C, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
1621
+ e[8] !== t.title ? (d = /* @__PURE__ */ i(C, { textStyle: "label/S/regular", flex: "1", truncate: !0, children: t.title }), e[8] = t.title, e[9] = d) : d = e[9];
1302
1622
  let h;
1303
- e[10] !== t.badges ? (h = t.badges && t.badges.length > 0 && /* @__PURE__ */ n(Fe, { gap: "2xs", flexShrink: 0, children: t.badges.map(Sl) }), e[10] = t.badges, e[11] = h) : h = e[11];
1623
+ e[10] !== t.badges ? (h = t.badges && t.badges.length > 0 && /* @__PURE__ */ i(qe, { gap: "2xs", flexShrink: 0, children: t.badges.map(ql) }), e[10] = t.badges, e[11] = h) : h = e[11];
1624
+ let g;
1625
+ e[12] !== t.assigneeIcon ? (g = t.assigneeIcon && /* @__PURE__ */ i(E, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = g) : g = e[13];
1304
1626
  let f;
1305
- e[12] !== t.assigneeIcon ? (f = t.assigneeIcon && /* @__PURE__ */ n(L, { flexShrink: 0, children: t.assigneeIcon }), e[12] = t.assigneeIcon, e[13] = f) : f = e[13];
1306
- let m;
1307
- e[14] !== t.date ? (m = t.date && /* @__PURE__ */ n(C, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = m) : m = e[15];
1627
+ e[14] !== t.date ? (f = t.date && /* @__PURE__ */ i(C, { textStyle: "label/XS/regular", color: "fg.muted", flexShrink: 0, children: t.date }), e[14] = t.date, e[15] = f) : f = e[15];
1308
1628
  let u;
1309
- return e[16] !== s || e[17] !== o || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== h || e[22] !== f || e[23] !== m ? (u = /* @__PURE__ */ b(ee, { gap: "sm", flex: "1", paddingLeft: s, children: [
1310
- o,
1629
+ return e[16] !== r || e[17] !== s || e[18] !== a || e[19] !== c || e[20] !== d || e[21] !== h || e[22] !== g || e[23] !== f ? (u = /* @__PURE__ */ b(F, { gap: "sm", flex: "1", paddingLeft: r, children: [
1630
+ s,
1311
1631
  a,
1312
1632
  c,
1313
1633
  d,
1314
1634
  h,
1315
- f,
1316
- m
1317
- ] }), e[16] = s, e[17] = o, e[18] = a, e[19] = c, e[20] = d, e[21] = h, e[22] = f, e[23] = m, e[24] = u) : u = e[24], u;
1318
- }, xl = (i) => {
1319
- const e = T(7), {
1635
+ g,
1636
+ f
1637
+ ] }), e[16] = r, e[17] = s, e[18] = a, e[19] = c, e[20] = d, e[21] = h, e[22] = g, e[23] = f, e[24] = u) : u = e[24], u;
1638
+ }, Ul = (n) => {
1639
+ const e = $(7), {
1320
1640
  row: l
1321
- } = i;
1641
+ } = n;
1322
1642
  let t;
1323
1643
  e[0] !== l ? (t = (a) => {
1324
1644
  a.stopPropagation(), l.toggleExpanded();
1325
1645
  }, e[0] = l, e[1] = t) : t = e[1];
1326
- const r = l.getIsExpanded() ? "rotate(90deg)" : "rotate(0deg)";
1646
+ const o = l.getIsExpanded() ? "rotate(90deg)" : "rotate(0deg)";
1647
+ let r;
1648
+ e[2] !== o ? (r = /* @__PURE__ */ i(ne, { as: me, boxSize: "14px", color: "fg.muted", transform: o, transition: "transform 0.15s ease" }), e[2] = o, e[3] = r) : r = e[3];
1327
1649
  let s;
1328
- e[2] !== r ? (s = /* @__PURE__ */ n(ne, { as: Te, boxSize: "14px", color: "fg.muted", transform: r, transition: "transform 0.15s ease" }), e[2] = r, e[3] = s) : s = e[3];
1329
- let o;
1330
- return e[4] !== t || e[5] !== s ? (o = /* @__PURE__ */ n(L, { 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;
1331
- }, bl = () => {
1332
- const i = T(1);
1650
+ return e[4] !== t || e[5] !== r ? (s = /* @__PURE__ */ i(E, { as: "button", onClick: t, cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, width: "16px", height: "16px", children: r }), e[4] = t, e[5] = r, e[6] = s) : s = e[6], s;
1651
+ }, Kl = () => {
1652
+ const n = $(1);
1333
1653
  let e;
1334
- return i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(L, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
1335
- /* @__PURE__ */ n(L, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
1336
- /* @__PURE__ */ n(L, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
1337
- ] }), i[0] = e) : e = i[0], e;
1654
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ b(E, { width: "16px", height: "16px", position: "relative", flexShrink: 0, children: [
1655
+ /* @__PURE__ */ i(E, { position: "absolute", left: "7px", top: "0", bottom: "50%", borderLeftWidth: "1px", borderColor: "border.muted" }),
1656
+ /* @__PURE__ */ i(E, { position: "absolute", left: "7px", top: "50%", width: "8px", borderBottomWidth: "1px", borderColor: "border.muted" })
1657
+ ] }), n[0] = e) : e = n[0], e;
1338
1658
  };
1339
- function Sl(i) {
1340
- return /* @__PURE__ */ n(Le, { variant: "subtle", colorPalette: i.color ?? "gray", textStyle: "label/XS/medium", children: i.label }, i.label);
1659
+ function ql(n) {
1660
+ return /* @__PURE__ */ i(ze, { variant: "subtle", colorPalette: n.color ?? "gray", textStyle: "label/XS/medium", children: n.label }, n.label);
1341
1661
  }
1342
- const yl = st({
1662
+ const Jl = pt({
1343
1663
  placement: "bottom-end",
1344
1664
  pauseOnPageIdle: !0
1345
- }), on = () => {
1346
- const i = T(1);
1665
+ }), On = () => {
1666
+ const n = $(1);
1347
1667
  let e;
1348
- return i[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ n(at, { children: /* @__PURE__ */ n(ct, { toaster: yl, insetInline: {
1668
+ return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(mt, { children: /* @__PURE__ */ i(bt, { toaster: Jl, insetInline: {
1349
1669
  mdDown: "4"
1350
- }, children: Cl }) }), i[0] = e) : e = i[0], e;
1670
+ }, children: Ql }) }), n[0] = e) : e = n[0], e;
1351
1671
  };
1352
- function Cl(i) {
1353
- return /* @__PURE__ */ b(Pe.Root, { width: {
1672
+ function Ql(n) {
1673
+ return /* @__PURE__ */ b($e.Root, { width: {
1354
1674
  md: "sm"
1355
1675
  }, children: [
1356
- i.type === "loading" ? /* @__PURE__ */ n(dt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ n(Pe.Indicator, {}),
1357
- /* @__PURE__ */ b($, { gap: "1", flex: "1", maxWidth: "100%", children: [
1358
- i.title && /* @__PURE__ */ n(Pe.Title, { children: i.title }),
1359
- i.description && /* @__PURE__ */ n(Pe.Description, { children: i.description })
1676
+ n.type === "loading" ? /* @__PURE__ */ i(xt, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ i($e.Indicator, {}),
1677
+ /* @__PURE__ */ b(D, { gap: "1", flex: "1", maxWidth: "100%", children: [
1678
+ n.title && /* @__PURE__ */ i($e.Title, { children: n.title }),
1679
+ n.description && /* @__PURE__ */ i($e.Description, { children: n.description })
1360
1680
  ] }),
1361
- i.action && /* @__PURE__ */ n(Pe.ActionTrigger, { children: i.action.label }),
1362
- i.closable && /* @__PURE__ */ n(Pe.CloseTrigger, {})
1681
+ n.action && /* @__PURE__ */ i($e.ActionTrigger, { children: n.action.label }),
1682
+ n.closable && /* @__PURE__ */ i($e.CloseTrigger, {})
1363
1683
  ] });
1364
1684
  }
1365
- const vl = (i) => {
1685
+ const Zl = (n) => {
1366
1686
  if (typeof document > "u") return;
1367
- const e = document.documentElement, l = document.body, t = i === "dark" ? "light" : "dark";
1368
- for (const r of [e, l])
1369
- r && (r.classList.remove(t), r.classList.add(i), r.setAttribute("data-theme", i), r.style.colorScheme = i);
1370
- }, qe = "theme-preference", Je = mt(null), wl = () => {
1687
+ const e = document.documentElement, l = document.body, t = n === "dark" ? "light" : "dark";
1688
+ for (const o of [e, l])
1689
+ o && (o.classList.remove(t), o.classList.add(n), o.setAttribute("data-theme", n), o.style.colorScheme = n);
1690
+ }, it = "theme-preference", ot = vt(null), en = () => {
1371
1691
  if (typeof window > "u") return "light";
1372
- const i = window.localStorage.getItem(qe);
1373
- return i === "dark" || i === "light" ? i : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1374
- }, sn = (i) => {
1375
- const e = T(11), {
1692
+ const n = window.localStorage.getItem(it);
1693
+ return n === "dark" || n === "light" ? n : typeof window.matchMedia == "function" && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1694
+ }, jn = (n) => {
1695
+ const e = $(11), {
1376
1696
  children: l,
1377
1697
  initialPreference: t
1378
- } = i;
1379
- let r;
1380
- e[0] !== t ? (r = t === void 0 ? wl() : t, e[0] = t, e[1] = r) : r = e[1];
1381
- const s = r, [o, a] = De(s);
1698
+ } = n;
1699
+ let o;
1700
+ e[0] !== t ? (o = t === void 0 ? en() : t, e[0] = t, e[1] = o) : o = e[1];
1701
+ const r = o, [s, a] = Re(r);
1382
1702
  let c, d;
1383
- e[2] !== o ? (c = () => {
1384
- vl(o), typeof window < "u" && window.localStorage.setItem(qe, o);
1385
- }, d = [o], e[2] = o, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), Be(c, d);
1703
+ e[2] !== s ? (c = () => {
1704
+ Zl(s), typeof window < "u" && window.localStorage.setItem(it, s);
1705
+ }, d = [s], e[2] = s, e[3] = c, e[4] = d) : (c = e[3], d = e[4]), We(c, d);
1386
1706
  let h;
1387
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => a(kl), e[5] = h) : h = e[5];
1388
- const f = h;
1389
- let m;
1390
- e[6] !== o ? (m = {
1391
- themePreference: o,
1707
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => a(tn), e[5] = h) : h = e[5];
1708
+ const g = h;
1709
+ let f;
1710
+ e[6] !== s ? (f = {
1711
+ themePreference: s,
1392
1712
  setThemePreference: a,
1393
- toggleThemePreference: f
1394
- }, e[6] = o, e[7] = m) : m = e[7];
1713
+ toggleThemePreference: g
1714
+ }, e[6] = s, e[7] = f) : f = e[7];
1395
1715
  let u;
1396
- return e[8] !== l || e[9] !== m ? (u = /* @__PURE__ */ n(Je, { value: m, children: l }), e[8] = l, e[9] = m, e[10] = u) : u = e[10], u;
1397
- }, an = () => {
1398
- const i = ut(Je);
1399
- if (!i)
1716
+ return e[8] !== l || e[9] !== f ? (u = /* @__PURE__ */ i(ot, { value: f, children: l }), e[8] = l, e[9] = f, e[10] = u) : u = e[10], u;
1717
+ }, Gn = () => {
1718
+ const n = Ct(ot);
1719
+ if (!n)
1400
1720
  throw new Error("useThemePreference must be used within a ThemePreferenceProvider");
1401
- return i;
1721
+ return n;
1402
1722
  };
1403
- function kl(i) {
1404
- return i === "dark" ? "light" : "dark";
1723
+ function tn(n) {
1724
+ return n === "dark" ? "light" : "dark";
1405
1725
  }
1406
1726
  export {
1407
- Et as AlertMessage,
1408
- jl as Breadcrumb,
1409
- hn as ChakraProvider,
1410
- Xl as Checkbox,
1411
- Ht as ContentPlaceholder,
1412
- Vl as ContentPlaceholderLabel,
1413
- Fl as DeleteConfirmationModal,
1414
- Ne as DiffBubble,
1415
- Yl as DiffDrawer,
1416
- Nl as DocsChangelog,
1417
- Ul as DocsOutline,
1418
- Kl as DocsPagination,
1419
- ql as DocsSidebar,
1420
- pt as EmptyState,
1421
- Jl as ErrorBoundary,
1422
- Ql as FolderPickerDialog,
1423
- Zl as HorizontalMenuStack,
1424
- qt as ItemSection,
1425
- He as MenuItem,
1426
- en as OpenSourceNoticesScreen,
1427
- el as PanelMenu,
1428
- tn as Properties,
1429
- me as ScrollArea,
1430
- dl as SessionIndicator,
1431
- ln as Switch,
1432
- sn as ThemePreferenceProvider,
1433
- nn as TicketBoard,
1434
- hl as TicketCard,
1435
- rn as TicketList,
1436
- on as Toaster,
1437
- _e as Tooltip,
1438
- vl as applyThemePreference,
1439
- wl as getInitialThemePreference,
1440
- mn as psTheme,
1441
- yl as toaster,
1442
- an as useThemePreference
1727
+ Yt as AlertMessage,
1728
+ wn as Breadcrumb,
1729
+ Vn as ChakraProvider,
1730
+ kn as Checkbox,
1731
+ Un as CodeDiffEditor,
1732
+ Kn as CodeEditor,
1733
+ Ut as ContentPlaceholder,
1734
+ In as ContentPlaceholderLabel,
1735
+ Pn as DeleteConfirmationModal,
1736
+ Qe as DiffBubble,
1737
+ $n as DiffDrawer,
1738
+ Tn as DocsChangelog,
1739
+ _n as DocsOutline,
1740
+ Rn as DocsPagination,
1741
+ Dn as DocsSidebar,
1742
+ kt as EmptyState,
1743
+ Ln as ErrorBoundary,
1744
+ En as FolderPickerDialog,
1745
+ zn as HorizontalMenuStack,
1746
+ cl as ItemSection,
1747
+ Ae as MenuItem,
1748
+ Hn as OpenSourceNoticesScreen,
1749
+ gl as PanelMenu,
1750
+ Nn as Properties,
1751
+ he as ScrollArea,
1752
+ wl as SessionIndicator,
1753
+ Wn as SidebarNext,
1754
+ Il as SidebarTree,
1755
+ An as Switch,
1756
+ jn as ThemePreferenceProvider,
1757
+ Mn as TicketBoard,
1758
+ jl as TicketCard,
1759
+ Bn as TicketList,
1760
+ On as Toaster,
1761
+ Ee as Tooltip,
1762
+ Zl as applyThemePreference,
1763
+ en as getInitialThemePreference,
1764
+ Jn as psTheme,
1765
+ Jl as toaster,
1766
+ Te as useSidebarNextStore,
1767
+ Gn as useThemePreference
1443
1768
  };
1444
1769
  //# sourceMappingURL=index.js.map