@lincyaw/aegis-ui 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/components/ui/CommitGraph.cjs +1 -1
  2. package/dist/components/ui/CommitGraph.cjs.map +1 -1
  3. package/dist/components/ui/CommitGraph.d.ts +23 -5
  4. package/dist/components/ui/CommitGraph.js +236 -200
  5. package/dist/components/ui/CommitGraph.js.map +1 -1
  6. package/dist/components/ui/DetailBeside.cjs +1 -1
  7. package/dist/components/ui/DetailBeside.cjs.map +1 -1
  8. package/dist/components/ui/DetailBeside.d.ts +31 -9
  9. package/dist/components/ui/DetailBeside.js +75 -71
  10. package/dist/components/ui/DetailBeside.js.map +1 -1
  11. package/dist/components/ui/RegionMap.cjs +2 -0
  12. package/dist/components/ui/RegionMap.cjs.map +1 -0
  13. package/dist/components/ui/RegionMap.d.ts +53 -0
  14. package/dist/components/ui/RegionMap.js +173 -0
  15. package/dist/components/ui/RegionMap.js.map +1 -0
  16. package/dist/components/ui/RollingValue.cjs.map +1 -1
  17. package/dist/components/ui/RollingValue.d.ts +1 -2
  18. package/dist/components/ui/RollingValue.js.map +1 -1
  19. package/dist/components/ui/ServiceMap.cjs +1 -1
  20. package/dist/components/ui/ServiceMap.cjs.map +1 -1
  21. package/dist/components/ui/ServiceMap.d.ts +2 -1
  22. package/dist/components/ui/ServiceMap.js +233 -237
  23. package/dist/components/ui/ServiceMap.js.map +1 -1
  24. package/dist/components/ui/Timeline.cjs +1 -1
  25. package/dist/components/ui/Timeline.cjs.map +1 -1
  26. package/dist/components/ui/Timeline.d.ts +16 -1
  27. package/dist/components/ui/Timeline.js +115 -45
  28. package/dist/components/ui/Timeline.js.map +1 -1
  29. package/dist/components/ui/TraceTree.cjs +1 -1
  30. package/dist/components/ui/TraceTree.cjs.map +1 -1
  31. package/dist/components/ui/TraceTree.d.ts +8 -1
  32. package/dist/components/ui/TraceTree.js +198 -175
  33. package/dist/components/ui/TraceTree.js.map +1 -1
  34. package/dist/components/ui/index.d.ts +5 -1
  35. package/dist/components/ui/workStatus.cjs +2 -0
  36. package/dist/components/ui/workStatus.cjs.map +1 -0
  37. package/dist/components/ui/workStatus.d.ts +15 -0
  38. package/dist/components/ui/workStatus.js +18 -0
  39. package/dist/components/ui/workStatus.js.map +1 -0
  40. package/dist/index.cjs +1 -1
  41. package/dist/index.js +175 -171
  42. package/dist/index.js.map +1 -1
  43. package/dist/style.css +1 -1
  44. package/package.json +1 -1
@@ -1,308 +1,331 @@
1
- import { jsxs as w, jsx as o, Fragment as ue } from "react/jsx-runtime";
2
- import { useRef as V, useId as ge, useContext as _e, useMemo as X, useState as Y, useEffect as we, Fragment as be } from "react";
3
- import { Tooltip as ve } from "antd";
4
- import { usePrimitiveSurface as Me } from "../../agent/core/usePrimitiveSurface.js";
5
- import { useResizable as Ne } from "../../hooks/useResizable.js";
6
- import { breakAtSeparators as Se } from "../../lib/breakAtSeparators.js";
7
- import { formatDuration as A } from "../../lib/format.js";
8
- import { Chip as ke } from "./Chip.js";
9
- import { StatusDot as Ee } from "./StatusDot.js";
1
+ import { jsxs as b, jsx as l, Fragment as we } from "react/jsx-runtime";
2
+ import { useRef as Q, useId as be, useContext as Me, useMemo as Z, useState as C, useEffect as Ne, Fragment as Se } from "react";
3
+ import { Tooltip as ke } from "antd";
4
+ import { usePrimitiveSurface as Ee } from "../../agent/core/usePrimitiveSurface.js";
5
+ import { useResizable as ye } from "../../hooks/useResizable.js";
6
+ import { breakAtSeparators as xe } from "../../lib/breakAtSeparators.js";
7
+ import { formatDuration as T } from "../../lib/format.js";
8
+ import { Chip as De } from "./Chip.js";
9
+ import { StatusDot as Re } from "./StatusDot.js";
10
10
  /* empty css */
11
- import { DefaultLink as ye } from "./linkComponent.js";
12
- import { SelectedRowDetailContext as Ie } from "./selectedRowDetail.js";
13
- import { statusTone as xe } from "./traceStatus.js";
14
- import { useStrings as De } from "../../locale/useStrings.js";
15
- const Ae = 180, Ce = 700, Re = 320;
16
- function C(n) {
17
- return n.startMs !== void 0 && n.durationMs !== void 0;
11
+ import { DefaultLink as Ae } from "./linkComponent.js";
12
+ import { SelectedRowDetailContext as Ce } from "./selectedRowDetail.js";
13
+ import { statusTone as Te } from "./traceStatus.js";
14
+ import { useStrings as Fe } from "../../locale/useStrings.js";
15
+ const Le = 180, Ie = 700, $e = 320;
16
+ function F(o) {
17
+ return o.startMs !== void 0 && o.durationMs !== void 0;
18
18
  }
19
- function G(n) {
20
- n.every((c) => c.span.startMs !== void 0) && n.sort((c, i) => (c.span.startMs ?? 0) - (i.span.startMs ?? 0));
19
+ function ee(o) {
20
+ o.every((r) => r.span.startMs !== void 0) && o.sort((r, i) => (r.span.startMs ?? 0) - (i.span.startMs ?? 0));
21
21
  }
22
- function Te(n) {
23
- const c = /* @__PURE__ */ new Map();
24
- n.forEach((s) => {
25
- c.set(s.id, { span: s, parent: null, children: [], depth: 0 });
22
+ function Ke(o) {
23
+ const r = /* @__PURE__ */ new Map();
24
+ o.forEach((s) => {
25
+ r.set(s.id, { span: s, parent: null, children: [], depth: 0 });
26
26
  });
27
27
  const i = [];
28
- c.forEach((s) => {
29
- const p = s.span.parentId, l = p ? c.get(p) : void 0;
30
- l ? (s.parent = l, l.children.push(s)) : i.push(s);
28
+ r.forEach((s) => {
29
+ const h = s.span.parentId, d = h ? r.get(h) : void 0;
30
+ d ? (s.parent = d, d.children.push(s)) : i.push(s);
31
31
  });
32
- const h = /* @__PURE__ */ new Set(), f = (s, p) => {
33
- h.add(s), s.depth = p, s.children.forEach((l) => {
34
- f(l, p + 1);
32
+ const c = /* @__PURE__ */ new Set(), f = (s, h) => {
33
+ c.add(s), s.depth = h, s.children.forEach((d) => {
34
+ f(d, h + 1);
35
35
  });
36
36
  };
37
37
  i.forEach((s) => {
38
38
  f(s, 0);
39
- }), c.forEach((s) => {
40
- if (h.has(s))
39
+ }), r.forEach((s) => {
40
+ if (c.has(s))
41
41
  return;
42
- const p = /* @__PURE__ */ new Set();
43
- let l = s;
44
- for (; l.parent !== null && !p.has(l); )
45
- p.add(l), l = l.parent;
46
- const d = l;
47
- d.parent !== null && (d.parent.children = d.parent.children.filter((S) => S !== d), d.parent = null), i.push(d), f(d, 0);
42
+ const h = /* @__PURE__ */ new Set();
43
+ let d = s;
44
+ for (; d.parent !== null && !h.has(d); )
45
+ h.add(d), d = d.parent;
46
+ const p = d;
47
+ p.parent !== null && (p.parent.children = p.parent.children.filter((E) => E !== p), p.parent = null), i.push(p), f(p, 0);
48
48
  });
49
- const b = (s) => {
50
- G(s.children), s.children.forEach(b);
49
+ const M = (s) => {
50
+ ee(s.children), s.children.forEach(M);
51
51
  };
52
- return G(i), i.forEach(b), i;
52
+ return ee(i), i.forEach(M), i;
53
53
  }
54
- function J(n, c, i = []) {
55
- return n.forEach((h, f) => {
56
- i.push({ node: h, position: f + 1, siblings: n.length }), c.has(h.span.id) || J(h.children, c, i);
54
+ function k(o, r) {
55
+ for (const i of o) {
56
+ if (i.span.id === r)
57
+ return i;
58
+ const c = k(i.children, r);
59
+ if (c)
60
+ return c;
61
+ }
62
+ }
63
+ function te(o, r, i) {
64
+ let c = r;
65
+ for (let f = k(o, i)?.parent ?? null; f !== null; f = f.parent)
66
+ c.has(f.span.id) && (c === r && (c = new Set(r)), c.delete(f.span.id));
67
+ return c;
68
+ }
69
+ function re(o, r, i = []) {
70
+ return o.forEach((c, f) => {
71
+ i.push({ node: c, position: f + 1, siblings: o.length }), r.has(c.span.id) || re(c.children, r, i);
57
72
  }), i;
58
73
  }
59
- function Xe({
60
- spans: n,
61
- selectedId: c,
74
+ function Qe({
75
+ spans: o,
76
+ selectedId: r,
62
77
  onSelect: i,
63
- defaultCollapsedDepth: h = Number.POSITIVE_INFINITY,
78
+ defaultCollapsedDepth: c = Number.POSITIVE_INFINITY,
64
79
  ariaLabel: f,
65
- linkComponent: b = ye,
80
+ linkComponent: M = Ae,
66
81
  className: s,
67
- style: p,
68
- surface: l,
69
- nameColumnWidth: d,
70
- defaultNameColumnWidth: S = Re,
71
- onNameColumnWidthChange: R,
72
- persistKey: T,
73
- wrapName: F = !1
82
+ style: h,
83
+ surface: d,
84
+ nameColumnWidth: p,
85
+ defaultNameColumnWidth: E = $e,
86
+ onNameColumnWidthChange: L,
87
+ persistKey: I,
88
+ wrapName: $ = !1
74
89
  }) {
75
- const L = V(null), $ = V(null), Q = Me(l, n, "tree", L), k = De(), Z = ge(), K = _e(Ie), { roots: E, traceDuration: j, traceStart: z, timed: y } = X(() => {
76
- const t = Te(n), a = n.filter(C), r = a.length ? Math.min(...a.map((e) => e.startMs)) : 0, m = a.length ? Math.max(...a.map((e) => e.startMs + e.durationMs)) : 1;
90
+ const K = Q(null), j = Q(null), ae = Ee(d, o, "tree", K), y = Fe(), ne = be(), z = Me(Ce), { roots: m, traceDuration: O, traceStart: P, timed: x } = Z(() => {
91
+ const e = Ke(o), n = o.filter(F), a = n.length ? Math.min(...n.map((t) => t.startMs)) : 0, u = n.length ? Math.max(...n.map((t) => t.startMs + t.durationMs)) : 1;
77
92
  return {
78
- roots: t,
79
- traceStart: r,
80
- traceDuration: Math.max(m - r, 1),
81
- timed: a.length > 0
93
+ roots: e,
94
+ traceStart: a,
95
+ traceDuration: Math.max(u - a, 1),
96
+ timed: n.length > 0
82
97
  };
83
- }, [n]), [v, ee] = Y(() => {
84
- const t = /* @__PURE__ */ new Set(), a = (r) => {
85
- r.depth >= h && r.children.length > 0 && t.add(r.span.id), r.children.forEach(a);
98
+ }, [o]), [_, B] = C(() => {
99
+ const e = /* @__PURE__ */ new Set(), n = (a) => {
100
+ a.depth >= c && a.children.length > 0 && e.add(a.span.id), a.children.forEach(n);
86
101
  };
87
- return E.forEach(a), t;
88
- }), [te, O] = Y(void 0), u = X(() => J(E, v), [E, v]), P = (t) => t === void 0 ? -1 : u.findIndex((a) => a.node.span.id === t), B = P(te), re = B >= 0 ? B : Math.max(P(c), 0), ae = T !== void 0 ? `aegis-trace-tree-name-w:${T}` : void 0, {
89
- width: I,
90
- handleProps: se,
91
- isDragging: ie
92
- } = Ne({
93
- initialWidth: S,
94
- minWidth: Ae,
95
- maxWidth: Ce,
102
+ return m.forEach(n), r === void 0 ? e : te(m, e, r);
103
+ }), [W, q] = C(
104
+ () => r !== void 0 && k(m, r) ? r : void 0
105
+ );
106
+ if (r === void 0 && W !== void 0 && q(void 0), r !== void 0 && r !== W && k(m, r)) {
107
+ q(r);
108
+ const e = te(m, _, r);
109
+ e !== _ && B(e);
110
+ }
111
+ const [ie, U] = C(void 0), g = Z(() => re(m, _), [m, _]), H = (e) => e === void 0 ? -1 : g.findIndex((n) => n.node.span.id === e), V = H(ie), se = V >= 0 ? V : Math.max(H(r), 0), oe = I !== void 0 ? `aegis-trace-tree-name-w:${I}` : void 0, {
112
+ width: D,
113
+ handleProps: ce,
114
+ isDragging: le
115
+ } = ye({
116
+ initialWidth: E,
117
+ minWidth: Le,
118
+ maxWidth: Ie,
96
119
  side: "left",
97
- persistKey: ae
98
- }), ne = d ?? I;
99
- we(() => {
100
- d === void 0 && R?.(I);
101
- }, [I, d, R]);
102
- const x = (t) => {
103
- ee((a) => {
104
- const r = new Set(a);
105
- return r.has(t) ? r.delete(t) : r.add(t), r;
120
+ persistKey: oe
121
+ }), de = p ?? D;
122
+ Ne(() => {
123
+ p === void 0 && L?.(D);
124
+ }, [D, p, L]);
125
+ const R = (e) => {
126
+ B((n) => {
127
+ const a = new Set(n);
128
+ return a.has(e) ? a.delete(e) : a.add(e), a;
106
129
  });
107
- }, g = (t) => {
108
- if (t < 0 || t >= u.length)
130
+ }, v = (e) => {
131
+ if (e < 0 || e >= g.length)
109
132
  return;
110
- O(u[t].node.span.id), $.current?.querySelectorAll(
133
+ U(g[e].node.span.id), j.current?.querySelectorAll(
111
134
  ':scope > [role="treeitem"]'
112
- )[t]?.focus();
113
- }, oe = (t, a) => {
114
- const { node: r } = u[a], m = r.children.length > 0, e = m && !v.has(r.span.id);
115
- switch (t.key) {
135
+ )[e]?.focus();
136
+ }, fe = (e, n) => {
137
+ const { node: a } = g[n], u = a.children.length > 0, t = u && !_.has(a.span.id);
138
+ switch (e.key) {
116
139
  case "ArrowDown":
117
- g(a + 1);
140
+ v(n + 1);
118
141
  break;
119
142
  case "ArrowUp":
120
- g(a - 1);
143
+ v(n - 1);
121
144
  break;
122
145
  case "Home":
123
- g(0);
146
+ v(0);
124
147
  break;
125
148
  case "End":
126
- g(u.length - 1);
149
+ v(g.length - 1);
127
150
  break;
128
151
  case "ArrowRight":
129
- e ? g(a + 1) : m && x(r.span.id);
152
+ t ? v(n + 1) : u && R(a.span.id);
130
153
  break;
131
154
  case "ArrowLeft":
132
- if (e)
133
- x(r.span.id);
134
- else if (r.parent !== null) {
135
- const _ = r.parent;
136
- g(u.findIndex((M) => M.node === _));
155
+ if (t)
156
+ R(a.span.id);
157
+ else if (a.parent !== null) {
158
+ const w = a.parent;
159
+ v(g.findIndex((N) => N.node === w));
137
160
  }
138
161
  break;
139
162
  case "Enter":
140
- r.span.to !== void 0 ? t.currentTarget.querySelector(".aegis-trace-tree__name a")?.click() : i?.(r.span);
163
+ a.span.to !== void 0 ? e.currentTarget.querySelector(".aegis-trace-tree__name a")?.click() : i?.(a.span);
141
164
  break;
142
165
  case " ":
143
- i?.(r.span);
166
+ i?.(a.span);
144
167
  break;
145
168
  default:
146
169
  return;
147
170
  }
148
- t.preventDefault();
149
- }, ce = (t, a) => {
150
- if (t.target instanceof Element && t.target.closest("[data-trace-tree-caret]") !== null) {
151
- x(a.span.id);
171
+ e.preventDefault();
172
+ }, pe = (e, n) => {
173
+ if (e.target instanceof Element && e.target.closest("[data-trace-tree-caret]") !== null) {
174
+ R(n.span.id);
152
175
  return;
153
176
  }
154
- (t.ctrlKey || t.metaKey || t.shiftKey) && t.target instanceof Element && t.target.closest(".aegis-trace-tree__name a") !== null || i?.(a.span);
155
- }, le = [
177
+ (e.ctrlKey || e.metaKey || e.shiftKey) && e.target instanceof Element && e.target.closest(".aegis-trace-tree__name a") !== null || i?.(n.span);
178
+ }, he = [
156
179
  "aegis-trace-tree",
157
- ie ? "aegis-trace-tree--dragging" : "",
158
- F ? "aegis-trace-tree--wrap" : "",
159
- y ? "" : "aegis-trace-tree--untimed",
180
+ le ? "aegis-trace-tree--dragging" : "",
181
+ $ ? "aegis-trace-tree--wrap" : "",
182
+ x ? "" : "aegis-trace-tree--untimed",
160
183
  s ?? ""
161
- ].filter(Boolean).join(" "), de = {
162
- ...p,
163
- "--aegis-trace-tree-name-w": `${String(ne)}px`
184
+ ].filter(Boolean).join(" "), ue = {
185
+ ...h,
186
+ "--aegis-trace-tree-name-w": `${String(de)}px`
164
187
  };
165
- return /* @__PURE__ */ w("div", { ref: L, className: le, style: de, ...Q, children: [
166
- /* @__PURE__ */ o(
188
+ return /* @__PURE__ */ b("div", { ref: K, className: he, style: ue, ...ae, children: [
189
+ /* @__PURE__ */ l(
167
190
  "div",
168
191
  {
169
- ref: $,
192
+ ref: j,
170
193
  className: "aegis-trace-tree__rows",
171
194
  role: "tree",
172
- "aria-label": f ?? k.traceSpans,
173
- children: u.map(({ node: t, position: a, siblings: r }, m) => {
174
- const e = t.span, _ = t.children.length > 0, M = v.has(e.id), N = c === e.id, pe = [
195
+ "aria-label": f ?? y.traceSpans,
196
+ children: g.map(({ node: e, position: n, siblings: a }, u) => {
197
+ const t = e.span, w = e.children.length > 0, N = _.has(t.id), S = r === t.id, me = [
175
198
  "aegis-trace-tree__row",
176
- e.muted ? "aegis-trace-tree__row--muted" : "",
177
- N ? "aegis-trace-tree__row--selected" : "",
178
- e.status === "error" ? "aegis-trace-tree__row--error" : ""
179
- ].filter(Boolean).join(" "), he = C(e) ? k.traceSpanTiming(
180
- A(e.startMs - z),
181
- A(e.durationMs)
182
- ) : "", me = e.kind ?? "", W = [he, me].filter(Boolean).join(" · "), q = `${Z}-note-${String(m)}`, U = e.note !== void 0 && e.note !== null, H = F ? Se(e.name) : e.name, fe = /* @__PURE__ */ w("div", { className: "aegis-trace-tree__tooltip", children: [
183
- /* @__PURE__ */ o("div", { className: "aegis-trace-tree__tooltip-name", children: e.name }),
184
- W && /* @__PURE__ */ o("div", { className: "aegis-trace-tree__tooltip-meta", children: W })
199
+ t.muted ? "aegis-trace-tree__row--muted" : "",
200
+ S ? "aegis-trace-tree__row--selected" : "",
201
+ t.status === "error" ? "aegis-trace-tree__row--error" : ""
202
+ ].filter(Boolean).join(" "), ge = F(t) ? y.traceSpanTiming(
203
+ T(t.startMs - P),
204
+ T(t.durationMs)
205
+ ) : "", _e = t.kind ?? "", X = [ge, _e].filter(Boolean).join(" · "), Y = `${ne}-note-${String(u)}`, G = t.note !== void 0 && t.note !== null, J = $ ? xe(t.name) : t.name, ve = /* @__PURE__ */ b("div", { className: "aegis-trace-tree__tooltip", children: [
206
+ /* @__PURE__ */ l("div", { className: "aegis-trace-tree__tooltip-name", children: t.name }),
207
+ X && /* @__PURE__ */ l("div", { className: "aegis-trace-tree__tooltip-meta", children: X })
185
208
  ] });
186
- return /* @__PURE__ */ w(be, { children: [
187
- /* @__PURE__ */ w(
209
+ return /* @__PURE__ */ b(Se, { children: [
210
+ /* @__PURE__ */ b(
188
211
  "div",
189
212
  {
190
- ref: N ? K?.placeRow : void 0,
191
- className: pe,
213
+ ref: S ? z?.placeRow : void 0,
214
+ className: me,
192
215
  role: "treeitem",
193
- "aria-label": e.ariaLabel,
194
- "aria-describedby": U ? q : void 0,
195
- "aria-level": t.depth + 1,
196
- "aria-posinset": a,
197
- "aria-setsize": r,
198
- "aria-expanded": _ ? !M : void 0,
199
- "aria-selected": N ? !0 : void 0,
200
- tabIndex: m === re ? 0 : -1,
201
- onClick: (D) => {
202
- ce(D, t);
216
+ "aria-label": t.ariaLabel,
217
+ "aria-describedby": G ? Y : void 0,
218
+ "aria-level": e.depth + 1,
219
+ "aria-posinset": n,
220
+ "aria-setsize": a,
221
+ "aria-expanded": w ? !N : void 0,
222
+ "aria-selected": S ? !0 : void 0,
223
+ tabIndex: u === se ? 0 : -1,
224
+ onClick: (A) => {
225
+ pe(A, e);
203
226
  },
204
- onKeyDown: (D) => {
205
- oe(D, m);
227
+ onKeyDown: (A) => {
228
+ fe(A, u);
206
229
  },
207
230
  onFocus: () => {
208
- O(e.id);
231
+ U(t.id);
209
232
  },
210
233
  children: [
211
- /* @__PURE__ */ w(
234
+ /* @__PURE__ */ b(
212
235
  "div",
213
236
  {
214
237
  className: "aegis-trace-tree__label",
215
238
  style: {
216
- "--depth": t.depth
239
+ "--depth": e.depth
217
240
  },
218
241
  children: [
219
- /* @__PURE__ */ o(
242
+ /* @__PURE__ */ l(
220
243
  "span",
221
244
  {
222
- className: _ ? "aegis-trace-tree__caret" : "aegis-trace-tree__caret aegis-trace-tree__caret--leaf",
245
+ className: w ? "aegis-trace-tree__caret" : "aegis-trace-tree__caret aegis-trace-tree__caret--leaf",
223
246
  "aria-hidden": "true",
224
- "data-trace-tree-caret": _ ? "" : void 0,
225
- children: _ ? M ? "▸" : "▾" : null
247
+ "data-trace-tree-caret": w ? "" : void 0,
248
+ children: w ? N ? "▸" : "▾" : null
226
249
  }
227
250
  ),
228
- /* @__PURE__ */ o(Ee, { tone: xe(e.status), size: 6 }),
229
- e.kind ? /* @__PURE__ */ o(ke, { tone: "ghost", className: "aegis-trace-tree__kind", children: e.kind }) : null,
230
- /* @__PURE__ */ o(
231
- ve,
251
+ /* @__PURE__ */ l(Re, { tone: Te(t.status), size: 6 }),
252
+ t.kind ? /* @__PURE__ */ l(De, { tone: "ghost", className: "aegis-trace-tree__kind", children: t.kind }) : null,
253
+ /* @__PURE__ */ l(
254
+ ke,
232
255
  {
233
256
  placement: "topLeft",
234
257
  mouseEnterDelay: 0.3,
235
258
  styles: { root: { maxWidth: "var(--tooltip-max-width)" } },
236
- title: fe,
237
- children: /* @__PURE__ */ o("span", { className: "aegis-trace-tree__name", children: e.to === void 0 ? H : /* @__PURE__ */ o(
238
- b,
259
+ title: ve,
260
+ children: /* @__PURE__ */ l("span", { className: "aegis-trace-tree__name", children: t.to === void 0 ? J : /* @__PURE__ */ l(
261
+ M,
239
262
  {
240
- to: e.to,
263
+ to: t.to,
241
264
  className: "aegis-trace-tree__link",
242
265
  tabIndex: -1,
243
- children: H
266
+ children: J
244
267
  }
245
268
  ) })
246
269
  }
247
270
  ),
248
- U ? /* @__PURE__ */ o(
271
+ G ? /* @__PURE__ */ l(
249
272
  "span",
250
273
  {
251
- id: q,
274
+ id: Y,
252
275
  className: "aegis-trace-tree__note",
253
276
  "aria-hidden": "true",
254
- children: e.note
277
+ children: t.note
255
278
  }
256
279
  ) : null
257
280
  ]
258
281
  }
259
282
  ),
260
- y && /* @__PURE__ */ w(ue, { children: [
261
- /* @__PURE__ */ o(
283
+ x && /* @__PURE__ */ b(we, { children: [
284
+ /* @__PURE__ */ l(
262
285
  "span",
263
286
  {
264
287
  className: "aegis-trace-tree__gutter",
265
288
  "aria-hidden": "true"
266
289
  }
267
290
  ),
268
- /* @__PURE__ */ o(
291
+ /* @__PURE__ */ l(
269
292
  "div",
270
293
  {
271
294
  className: "aegis-trace-tree__bar-track",
272
295
  "aria-hidden": "true",
273
- children: C(e) && /* @__PURE__ */ o(
296
+ children: F(t) && /* @__PURE__ */ l(
274
297
  "span",
275
298
  {
276
299
  className: "aegis-trace-tree__bar",
277
300
  style: {
278
- left: `${((e.startMs - z) / j * 100).toString()}%`,
279
- width: `${Math.max(e.durationMs / j * 100, 0.5).toString()}%`
301
+ left: `${((t.startMs - P) / O * 100).toString()}%`,
302
+ width: `${Math.max(t.durationMs / O * 100, 0.5).toString()}%`
280
303
  }
281
304
  }
282
305
  )
283
306
  }
284
307
  ),
285
- /* @__PURE__ */ o("div", { className: "aegis-trace-tree__duration", children: e.durationMs !== void 0 && A(e.durationMs) })
308
+ /* @__PURE__ */ l("div", { className: "aegis-trace-tree__duration", children: t.durationMs !== void 0 && T(t.durationMs) })
286
309
  ] })
287
310
  ]
288
311
  }
289
312
  ),
290
- N ? K?.inline : null
291
- ] }, e.id);
313
+ S ? z?.inline : null
314
+ ] }, t.id);
292
315
  })
293
316
  }
294
317
  ),
295
- y && /* @__PURE__ */ o(
318
+ x && /* @__PURE__ */ l(
296
319
  "div",
297
320
  {
298
- ...se,
321
+ ...ce,
299
322
  className: "aegis-trace-tree__handle",
300
- "aria-label": k.resizeNameColumn
323
+ "aria-label": y.resizeNameColumn
301
324
  }
302
325
  )
303
326
  ] });
304
327
  }
305
328
  export {
306
- Xe as TraceTree
329
+ Qe as TraceTree
307
330
  };
308
331
  //# sourceMappingURL=TraceTree.js.map