@overdoser/react-toolkit 0.21.0 → 0.22.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/AGENTS.md +1 -0
- package/CHANGELOG.md +35 -0
- package/components/Accordion/Accordion.js +48 -48
- package/components/ActionButton/ActionButton.js +23 -23
- package/components/ActionButton/CopyButton.js +5 -5
- package/components/Alert/Alert.js +13 -13
- package/components/Avatar/Avatar.js +12 -12
- package/components/Badge/Badge.js +6 -6
- package/components/Breadcrumbs/Breadcrumbs.js +15 -15
- package/components/Button/Button.js +14 -14
- package/components/Card/Card.js +26 -26
- package/components/Chart/AreaChart.js +103 -103
- package/components/Chart/Axis.js +7 -7
- package/components/Chart/BarChart.js +62 -62
- package/components/Chart/ChartContainer.js +11 -11
- package/components/Chart/ChartLegend.js +7 -7
- package/components/Chart/ChartTooltip.js +13 -13
- package/components/Chart/LineChart.js +88 -88
- package/components/Chart/PieChart.js +25 -25
- package/components/Chart/RadarChart.js +42 -42
- package/components/Chart/Sparkline.js +11 -11
- package/components/Chart/TradingChart.js +126 -126
- package/components/Chart/trading/period.js +3 -3
- package/components/Chip/Chip.js +24 -24
- package/components/CodeBlock/CodeBlock.js +31 -31
- package/components/CommandPalette/CommandPalette.js +166 -166
- package/components/ConfirmDialog/ConfirmDialog.js +60 -60
- package/components/Divider/Divider.js +10 -10
- package/components/Draggable/Draggable.js +29 -29
- package/components/Drawer/Drawer.js +53 -53
- package/components/Dropdown/Dropdown.js +66 -66
- package/components/Dropdown/DropdownItem.js +13 -13
- package/components/Dropdown/DropdownLabel.js +5 -5
- package/components/Dropdown/DropdownSeparator.js +5 -5
- package/components/Dropzone/Dropzone.js +15 -15
- package/components/EmptyState/EmptyState.js +11 -11
- package/components/Form/Form.js +17 -17
- package/components/Form/FormField.js +21 -21
- package/components/Form/FormRow.js +3 -3
- package/components/ImageViewer/ImageViewer.js +118 -118
- package/components/Kbd/Kbd.js +11 -11
- package/components/KeyValueList/KeyValueList.js +32 -32
- package/components/Link/Link.js +7 -7
- package/components/List/List.js +7 -7
- package/components/Loader/Loader.js +39 -39
- package/components/Modal/Modal.js +48 -48
- package/components/PageHeader/PageHeader.js +18 -18
- package/components/Pagination/Pagination.js +23 -23
- package/components/Popover/Popover.js +25 -25
- package/components/ProgressBar/ProgressBar.js +17 -17
- package/components/RelativeTime/RelativeTime.js +10 -10
- package/components/SegmentedControl/SegmentedControl.js +38 -38
- package/components/Skeleton/Skeleton.js +10 -10
- package/components/Spinner/Spinner.js +7 -7
- package/components/SplitButton/SplitButton.js +63 -63
- package/components/SplitPane/SplitPane.js +50 -50
- package/components/StatCard/StatCard.js +32 -32
- package/components/StatusDot/StatusDot.js +7 -7
- package/components/Table/Table.js +174 -174
- package/components/Tabs/Tabs.js +47 -47
- package/components/ThemeToggle/ThemeToggle.js +31 -31
- package/components/Timeline/GanttTimeline.js +213 -213
- package/components/Timeline/HistoryTimeline.js +306 -306
- package/components/Timeline/TimelineShared.js +103 -103
- package/components/Timeline/TraceEventDetails.js +103 -103
- package/components/Timeline/TraceTimeline.js +546 -546
- package/components/Timeline/historyLayout.js +2 -2
- package/components/Timer/Timer.js +39 -39
- package/components/Toast/Toast.js +59 -59
- package/components/ToggleIconButton/ToggleIconButton.js +9 -9
- package/components/Tooltip/Tooltip.js +16 -16
- package/components/Typography/Typography.js +5 -5
- package/components/inputs/Checkbox/Checkbox.js +11 -11
- package/components/inputs/Checkbox/CheckboxGroup.js +21 -21
- package/components/inputs/DatePicker/CalendarPanel.js +113 -113
- package/components/inputs/DatePicker/DatePicker.js +39 -39
- package/components/inputs/DateTimePicker/DateTimePicker.js +119 -119
- package/components/inputs/DateTimePicker/DateTimeSegments.js +40 -40
- package/components/inputs/DateTimePicker/TimeField.js +34 -34
- package/components/inputs/Input/Input.js +13 -13
- package/components/inputs/NumberInput/NumberInput.js +16 -16
- package/components/inputs/Radio/Radio.js +17 -17
- package/components/inputs/SearchInput/SearchInput.js +25 -25
- package/components/inputs/Select/Select.d.ts +55 -3
- package/components/inputs/Select/Select.js +485 -344
- package/components/inputs/Select/{Select.module.js → Select.module.scss.js} +15 -3
- package/components/inputs/Slider/Slider.js +21 -21
- package/components/inputs/Switch/Switch.js +4 -4
- package/components/inputs/Textarea/Textarea.js +8 -8
- package/hooks/usePortalPosition.d.ts +2 -1
- package/hooks/usePortalPosition.js +6 -3
- package/hooks/useResizable.js +1 -1
- package/hooks/useTheme.js +7 -7
- package/index.css +1 -1
- package/index.js +1 -1
- package/index.layered.css +1 -1
- package/llms.txt +25 -4
- package/manifest.json +33 -4
- package/package.json +1 -1
- /package/components/Accordion/{Accordion.module.js → Accordion.module.scss.js} +0 -0
- /package/components/ActionButton/{ActionButton.module.js → ActionButton.module.scss.js} +0 -0
- /package/components/Alert/{Alert.module.js → Alert.module.scss.js} +0 -0
- /package/components/Avatar/{Avatar.module.js → Avatar.module.scss.js} +0 -0
- /package/components/Badge/{Badge.module.js → Badge.module.scss.js} +0 -0
- /package/components/Breadcrumbs/{Breadcrumbs.module.js → Breadcrumbs.module.scss.js} +0 -0
- /package/components/Button/{Button.module.js → Button.module.scss.js} +0 -0
- /package/components/Card/{Card.module.js → Card.module.scss.js} +0 -0
- /package/components/Chart/{Chart.module.js → Chart.module.scss.js} +0 -0
- /package/components/Chip/{Chip.module.js → Chip.module.scss.js} +0 -0
- /package/components/CodeBlock/{CodeBlock.module.js → CodeBlock.module.scss.js} +0 -0
- /package/components/CommandPalette/{CommandPalette.module.js → CommandPalette.module.scss.js} +0 -0
- /package/components/ConfirmDialog/{ConfirmDialog.module.js → ConfirmDialog.module.scss.js} +0 -0
- /package/components/Divider/{Divider.module.js → Divider.module.scss.js} +0 -0
- /package/components/Draggable/{Draggable.module.js → Draggable.module.scss.js} +0 -0
- /package/components/Drawer/{Drawer.module.js → Drawer.module.scss.js} +0 -0
- /package/components/Dropdown/{Dropdown.module.js → Dropdown.module.scss.js} +0 -0
- /package/components/Dropzone/{Dropzone.module.js → Dropzone.module.scss.js} +0 -0
- /package/components/EmptyState/{EmptyState.module.js → EmptyState.module.scss.js} +0 -0
- /package/components/Form/{Form.module.js → Form.module.scss.js} +0 -0
- /package/components/ImageViewer/{ImageViewer.module.js → ImageViewer.module.scss.js} +0 -0
- /package/components/Kbd/{Kbd.module.js → Kbd.module.scss.js} +0 -0
- /package/components/KeyValueList/{KeyValueList.module.js → KeyValueList.module.scss.js} +0 -0
- /package/components/Link/{Link.module.js → Link.module.scss.js} +0 -0
- /package/components/List/{List.module.js → List.module.scss.js} +0 -0
- /package/components/Loader/{Loader.module.js → Loader.module.scss.js} +0 -0
- /package/components/Modal/{Modal.module.js → Modal.module.scss.js} +0 -0
- /package/components/PageHeader/{PageHeader.module.js → PageHeader.module.scss.js} +0 -0
- /package/components/Pagination/{Pagination.module.js → Pagination.module.scss.js} +0 -0
- /package/components/Popover/{Popover.module.js → Popover.module.scss.js} +0 -0
- /package/components/ProgressBar/{ProgressBar.module.js → ProgressBar.module.scss.js} +0 -0
- /package/components/RelativeTime/{RelativeTime.module.js → RelativeTime.module.scss.js} +0 -0
- /package/components/SegmentedControl/{SegmentedControl.module.js → SegmentedControl.module.scss.js} +0 -0
- /package/components/Skeleton/{Skeleton.module.js → Skeleton.module.scss.js} +0 -0
- /package/components/Spinner/{Spinner.module.js → Spinner.module.scss.js} +0 -0
- /package/components/SplitButton/{SplitButton.module.js → SplitButton.module.scss.js} +0 -0
- /package/components/SplitPane/{SplitPane.module.js → SplitPane.module.scss.js} +0 -0
- /package/components/StatCard/{StatCard.module.js → StatCard.module.scss.js} +0 -0
- /package/components/StatusDot/{StatusDot.module.js → StatusDot.module.scss.js} +0 -0
- /package/components/Table/{Table.module.js → Table.module.scss.js} +0 -0
- /package/components/Tabs/{Tabs.module.js → Tabs.module.scss.js} +0 -0
- /package/components/ThemeToggle/{ThemeToggle.module.js → ThemeToggle.module.scss.js} +0 -0
- /package/components/Timeline/{GanttTimeline.module.js → GanttTimeline.module.scss.js} +0 -0
- /package/components/Timeline/{HistoryTimeline.module.js → HistoryTimeline.module.scss.js} +0 -0
- /package/components/Timeline/{Timeline.module.js → Timeline.module.scss.js} +0 -0
- /package/components/Timeline/{TraceTimeline.module.js → TraceTimeline.module.scss.js} +0 -0
- /package/components/Timer/{Timer.module.js → Timer.module.scss.js} +0 -0
- /package/components/Toast/{Toast.module.js → Toast.module.scss.js} +0 -0
- /package/components/ToggleIconButton/{ToggleIconButton.module.js → ToggleIconButton.module.scss.js} +0 -0
- /package/components/Tooltip/{Tooltip.module.js → Tooltip.module.scss.js} +0 -0
- /package/components/Typography/{Typography.module.js → Typography.module.scss.js} +0 -0
- /package/components/inputs/Checkbox/{Checkbox.module.js → Checkbox.module.scss.js} +0 -0
- /package/components/inputs/Checkbox/{CheckboxGroup.module.js → CheckboxGroup.module.scss.js} +0 -0
- /package/components/inputs/DatePicker/{CalendarPanel.module.js → CalendarPanel.module.scss.js} +0 -0
- /package/components/inputs/DatePicker/{DatePicker.module.js → DatePicker.module.scss.js} +0 -0
- /package/components/inputs/DateTimePicker/{DateTimePicker.module.js → DateTimePicker.module.scss.js} +0 -0
- /package/components/inputs/Input/{Input.module.js → Input.module.scss.js} +0 -0
- /package/components/inputs/NumberInput/{NumberInput.module.js → NumberInput.module.scss.js} +0 -0
- /package/components/inputs/Radio/{Radio.module.js → Radio.module.scss.js} +0 -0
- /package/components/inputs/SearchInput/{SearchInput.module.js → SearchInput.module.scss.js} +0 -0
- /package/components/inputs/Slider/{Slider.module.js → Slider.module.scss.js} +0 -0
- /package/components/inputs/Textarea/{Textarea.module.js → Textarea.module.scss.js} +0 -0
|
@@ -1,823 +1,823 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import { Fragment as
|
|
1
|
+
import { forwardRef as e, useCallback as t, useEffect as n, useLayoutEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
2
|
+
import s from "clsx";
|
|
3
|
+
import c from "./Timeline.module.scss.js";
|
|
4
|
+
import l from "./TraceTimeline.module.scss.js";
|
|
5
|
+
import { TIMELINE_PALETTE_VARS as u, TL_COLORS as d, eventMatches as ee, fmtClockUTC as f, fmtDateISO as p, fmtDur as m, fmtISO as te, tickSubdiv as h, ticks as g, tint as _ } from "./timelineCore.js";
|
|
6
|
+
import { layoutTraceBand as ne, traceChipWidth as re } from "./traceLayout.js";
|
|
7
|
+
import { HighlightText as ie, TimelineLegend as ae, TimelineResizer as oe, TimelineSummary as se, TimelineTooltip as ce, TimelineZoomControls as le } from "./TimelineShared.js";
|
|
8
|
+
import { CopyButton as ue } from "../ActionButton/CopyButton.js";
|
|
9
|
+
import { EventBadge as de, FieldRow as fe, TraceEventDetails as pe } from "./TraceEventDetails.js";
|
|
10
|
+
import { isRequestEvent as me, ridOf as v, routeOf as he, srcOf as ge, toText as y } from "./traceEvent.js";
|
|
11
|
+
import { animateScrollTo as _e, useContainerWidth as ve, useNowTicker as ye, useTimelinePan as be, useWheelZoom as xe, wheelZoomAllowed as Se } from "./useTimeline.js";
|
|
12
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
13
13
|
// src/components/Timeline/TraceTimeline.tsx
|
|
14
|
-
var
|
|
15
|
-
let { events:
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
var C = 84, Ce = 24, w = 400, we = 51, Te = 300, Ee = e(function(e, Ee) {
|
|
15
|
+
let { events: T, title: De, meta: Oe, highlight: ke, defaultHighlight: Ae, onHighlightChange: je, showSearch: Me = !0, renderSearch: Ne, services: Pe, serviceColors: Fe, compactRows: Ie = !1, showGridlines: Le = !0, showControls: Re = !0, wheelZoom: ze = "ctrl", showLegend: Be = !0, showSummary: Ve = !0, summaryPlacement: E = "bubble", summaryDefaultPosition: He, showDock: D = !0, defaultDock: Ue = null, showExtraFields: We = !0, hiddenFields: Ge, maxHeight: Ke = "80vh", minHeight: qe = 420, selectedEventId: O, defaultSelectedEventId: Je = null, onEventSelect: Ye, renderChip: Xe, renderTooltip: Ze, renderDetails: Qe, classes: k, className: $e, style: et } = e, A = a(null), [tt, nt] = o(null), [rt, it] = o(!0), [j, at] = o(null), [ot, st] = o(null), [M, ct] = o(null), [N, lt] = o(null), [ut, dt] = o(null), [ft, pt] = o(null), mt = a(!1), [ht, gt] = o(Je), P = O === void 0 ? ht : O, [F, I] = o(() => D ? Ue ?? ((O === void 0 ? Je : O) == null ? null : "details") : null), [_t, vt] = o(360), [yt, bt] = o(420), xt = a(P);
|
|
16
|
+
n(() => {
|
|
17
|
+
P != null && P !== xt.current && D && F == null && I("details"), xt.current = P;
|
|
18
18
|
}, [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
P,
|
|
20
|
+
D,
|
|
21
|
+
F
|
|
22
22
|
]);
|
|
23
|
-
let [
|
|
23
|
+
let [St, Ct] = o({
|
|
24
24
|
l: 0,
|
|
25
25
|
w: 0
|
|
26
|
-
}),
|
|
27
|
-
|
|
28
|
-
let
|
|
29
|
-
let e =
|
|
30
|
-
e &&
|
|
26
|
+
}), wt = a(Ve);
|
|
27
|
+
wt.current = Ve;
|
|
28
|
+
let Tt = t(() => {
|
|
29
|
+
let e = A.current;
|
|
30
|
+
e && Ct((t) => t.l === e.scrollLeft && t.w === e.clientWidth ? t : {
|
|
31
31
|
l: e.scrollLeft,
|
|
32
32
|
w: e.clientWidth
|
|
33
33
|
});
|
|
34
34
|
}, []);
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
n(() => {
|
|
36
|
+
Ve && Tt();
|
|
37
37
|
});
|
|
38
|
-
let [
|
|
38
|
+
let [L, Et] = o({
|
|
39
39
|
l: 0,
|
|
40
40
|
w: 2e3
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
let
|
|
44
|
-
let e =
|
|
41
|
+
}), Dt = a(L);
|
|
42
|
+
Dt.current = L;
|
|
43
|
+
let Ot = t(() => {
|
|
44
|
+
let e = A.current;
|
|
45
45
|
if (!e) return;
|
|
46
|
-
let t = Math.floor(e.scrollLeft /
|
|
47
|
-
(t !==
|
|
46
|
+
let t = Math.floor(e.scrollLeft / w) * w, n = (Math.ceil((e.clientWidth || 1600) / w) + 1) * w;
|
|
47
|
+
(t !== Dt.current.l || n !== Dt.current.w) && Et({
|
|
48
48
|
l: t,
|
|
49
49
|
w: n
|
|
50
50
|
});
|
|
51
|
-
}, []),
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
}, []), kt = T.some((e) => e.end == null), R = ye(kt, 400), At = ve(A), z = be(A), B = a(null), V = a(null), jt = a(null), [Mt, Nt] = o(null), H = a(null);
|
|
52
|
+
n(() => () => {
|
|
53
|
+
H.current && clearTimeout(H.current);
|
|
54
54
|
}, []);
|
|
55
|
-
let [
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
value:
|
|
59
|
-
setValue:
|
|
60
|
-
}) :
|
|
61
|
-
className:
|
|
55
|
+
let [Pt, Ft] = o(Ae ?? ""), It = ke === void 0 ? Pt : ke, U = It.trim(), Lt = (e) => {
|
|
56
|
+
ke === void 0 && Ft(e), je?.(e);
|
|
57
|
+
}, Rt = Ne ? Ne({
|
|
58
|
+
value: It,
|
|
59
|
+
setValue: Lt
|
|
60
|
+
}) : Me ? /* @__PURE__ */ x("input", {
|
|
61
|
+
className: s(c.searchInput, k?.search),
|
|
62
62
|
placeholder: "Highlight keyword in events…",
|
|
63
63
|
"aria-label": "Highlight keyword",
|
|
64
|
-
value:
|
|
65
|
-
onChange: (e) =>
|
|
66
|
-
}) : null,
|
|
67
|
-
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
let
|
|
71
|
-
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
value: It,
|
|
65
|
+
onChange: (e) => Lt(e.target.value)
|
|
66
|
+
}) : null, W, G;
|
|
67
|
+
T.length ? (W = Math.min(...T.map((e) => e.start)), G = Math.max(W + 1e3, ...T.map((e) => e.end ?? R))) : (W = R - 3e4, G = R + 5e3);
|
|
68
|
+
let zt = (G - W) * .03;
|
|
69
|
+
W -= zt, G += zt;
|
|
70
|
+
let Bt = G - W, Vt = Math.max(240, At - C - Ce), Ht = Math.max(Vt * .45, Vt - 210) / Bt, K = rt || !tt ? Ht : tt, Ut = a(Ht), q = a(K), Wt = a(W), Gt = a(1e9);
|
|
71
|
+
Ut.current = Ht, q.current = K, Wt.current = W;
|
|
72
|
+
let Kt = a(null);
|
|
73
|
+
r(() => {
|
|
74
|
+
Kt.current != null && A.current && (A.current.scrollLeft = Kt.current, Kt.current = null), Ot();
|
|
75
75
|
});
|
|
76
|
-
let
|
|
77
|
-
let n =
|
|
76
|
+
let qt = t((e, t) => {
|
|
77
|
+
let n = A.current;
|
|
78
78
|
if (!n) return;
|
|
79
|
-
let r =
|
|
80
|
-
|
|
79
|
+
let r = q.current || .001, i = Math.max(Ut.current ? Ut.current * .2 : 1e-7, Math.min(10, r * e)), a = (n.scrollLeft + t - C) / r;
|
|
80
|
+
Kt.current = a * i + C - t, it(!1), nt(i);
|
|
81
81
|
}, []);
|
|
82
|
-
|
|
83
|
-
if (!
|
|
82
|
+
xe(A, (e) => {
|
|
83
|
+
if (!Se(ze, e)) return;
|
|
84
84
|
e.preventDefault();
|
|
85
|
-
let t =
|
|
86
|
-
t &&
|
|
85
|
+
let t = A.current;
|
|
86
|
+
t && qt(Math.exp(-(e.deltaY || e.deltaX) * .0022), e.clientX - t.getBoundingClientRect().left);
|
|
87
87
|
});
|
|
88
|
-
let
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
let e =
|
|
92
|
-
if (!e || !
|
|
93
|
-
let t =
|
|
94
|
-
|
|
88
|
+
let Jt = a(null), Yt = t(() => {
|
|
89
|
+
Jt.current ??= requestAnimationFrame(() => {
|
|
90
|
+
Jt.current = null;
|
|
91
|
+
let e = A.current;
|
|
92
|
+
if (!e || !q.current) return;
|
|
93
|
+
let t = Wt.current + Math.max(0, e.scrollLeft + 117 - C) / q.current;
|
|
94
|
+
dt(p(t)), pt(mt.current ? f(t) : null), Ot(), wt.current && Tt();
|
|
95
95
|
});
|
|
96
|
-
}, [
|
|
96
|
+
}, [Tt, Ot]), Xt = a(null), Zt = t((e) => {
|
|
97
97
|
let t = e.clientX;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
let e =
|
|
98
|
+
Xt.current ??= requestAnimationFrame(() => {
|
|
99
|
+
Xt.current = null;
|
|
100
|
+
let e = A.current;
|
|
101
101
|
if (!e) return;
|
|
102
102
|
let n = e.getBoundingClientRect(), r = t - n.left + e.scrollLeft;
|
|
103
|
-
if (r < 89 || !
|
|
104
|
-
|
|
103
|
+
if (r < 89 || !q.current) {
|
|
104
|
+
ct(null);
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
let i =
|
|
108
|
-
|
|
107
|
+
let i = Wt.current + (r - C) / q.current, a = Math.max(88, Math.min(Math.round(r), Gt.current - 88));
|
|
108
|
+
ct({
|
|
109
109
|
left: Math.round(r),
|
|
110
110
|
chipLeft: a,
|
|
111
|
-
label:
|
|
111
|
+
label: te(i, !0),
|
|
112
112
|
t: i
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
|
-
}, []),
|
|
116
|
-
|
|
117
|
-
},
|
|
115
|
+
}, []), Qt = (e) => {
|
|
116
|
+
O === void 0 && gt(e ? e.id : null), Ye?.(e);
|
|
117
|
+
}, $t = i(() => {
|
|
118
118
|
let e = [];
|
|
119
|
-
return (
|
|
120
|
-
|
|
121
|
-
}),
|
|
119
|
+
return (Pe || []).forEach((t) => {
|
|
120
|
+
T.some((e) => e.service === t) && e.push(t);
|
|
121
|
+
}), T.forEach((t) => {
|
|
122
122
|
e.includes(t.service) || e.push(t.service);
|
|
123
123
|
}), e;
|
|
124
|
-
}, [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}), Object.assign(
|
|
128
|
-
let
|
|
124
|
+
}, [T, Pe]), J = {};
|
|
125
|
+
$t.forEach((e, t) => {
|
|
126
|
+
J[e] = u[t % u.length];
|
|
127
|
+
}), Object.assign(J, Fe);
|
|
128
|
+
let en = Ie, tn = en ? 20 : 26, nn = en ? 60 : 66, rn = T.map((e) => ({
|
|
129
129
|
id: e.id,
|
|
130
|
-
left: Math.round(
|
|
131
|
-
width: Math.round(Math.max(12, ((e.end ??
|
|
132
|
-
labelW:
|
|
133
|
-
})),
|
|
134
|
-
barH:
|
|
135
|
-
rowH:
|
|
136
|
-
chipH:
|
|
137
|
-
minH:
|
|
138
|
-
}),
|
|
139
|
-
|
|
140
|
-
let
|
|
141
|
-
|
|
142
|
-
let
|
|
143
|
-
|
|
144
|
-
let t =
|
|
145
|
-
|
|
146
|
-
left: Math.round(
|
|
147
|
-
date: t ===
|
|
148
|
-
time: !
|
|
149
|
-
sub:
|
|
150
|
-
}),
|
|
130
|
+
left: Math.round(C + (e.start - W) * K),
|
|
131
|
+
width: Math.round(Math.max(12, ((e.end ?? R) - e.start) * K)),
|
|
132
|
+
labelW: re(ge(e), e.service, String(v(e)))
|
|
133
|
+
})), an = ne(rn, {
|
|
134
|
+
barH: tn,
|
|
135
|
+
rowH: nn,
|
|
136
|
+
chipH: we,
|
|
137
|
+
minH: qe
|
|
138
|
+
}), on = new Map(an.items.map((e) => [e.id, e])), sn = Math.ceil(Math.max(C + Bt * K + Ce + 60, an.maxExt + 26));
|
|
139
|
+
Gt.current = sn;
|
|
140
|
+
let cn = W + (sn - C) / K, Y = Math.max(W, W + (L.l - w - C) / K), ln = Math.min(cn, W + (L.l + L.w + w - C) / K), X = g(Y, ln, Math.max(1, (ln - Y) * K), 64), un = X.step < 1e3;
|
|
141
|
+
mt.current = un;
|
|
142
|
+
let dn = [], fn = Math.max(W, (X.list.length ? X.list[0].t : Y) - X.step), pn = p(fn), mn = f(fn);
|
|
143
|
+
X.list.forEach((e) => {
|
|
144
|
+
let t = p(e.t), n = f(e.t);
|
|
145
|
+
dn.push({
|
|
146
|
+
left: Math.round(C + (e.t - W) * K),
|
|
147
|
+
date: t === pn ? null : t,
|
|
148
|
+
time: !un || n !== mn ? n : null,
|
|
149
|
+
sub: un ? "." + String(new Date(e.t).getUTCMilliseconds()).padStart(3, "0") : null
|
|
150
|
+
}), pn = t, mn = n;
|
|
151
151
|
});
|
|
152
|
-
let
|
|
153
|
-
if (
|
|
154
|
-
let e =
|
|
155
|
-
if ((
|
|
156
|
-
left: Math.round(
|
|
157
|
-
medium:
|
|
152
|
+
let hn = [], Z = h(X.step);
|
|
153
|
+
if (Z.parts > 1) {
|
|
154
|
+
let e = X.step / Z.parts;
|
|
155
|
+
if ((ln - Y) / e < 2e3) for (let t = Math.ceil(Y / e); t * e <= ln; t++) t % Z.parts !== 0 && hn.push({
|
|
156
|
+
left: Math.round(C + (t * e - W) * K),
|
|
157
|
+
medium: Z.medium > 0 && t % Z.parts === Z.medium
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
let
|
|
161
|
-
|
|
162
|
-
let e =
|
|
160
|
+
let gn = M ? M.t : null, Q = P == null ? null : T.find((e) => e.id === P) || null;
|
|
161
|
+
n(() => {
|
|
162
|
+
let e = B.current;
|
|
163
163
|
if (e == null) return;
|
|
164
|
-
let t =
|
|
164
|
+
let t = A.current;
|
|
165
165
|
if (!t) {
|
|
166
|
-
|
|
166
|
+
B.current = null;
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
|
-
if (t.clientWidth && t.clientWidth !==
|
|
170
|
-
|
|
171
|
-
let n =
|
|
172
|
-
n &&
|
|
173
|
-
}),
|
|
174
|
-
let e =
|
|
169
|
+
if (t.clientWidth && t.clientWidth !== At) return;
|
|
170
|
+
B.current = null;
|
|
171
|
+
let n = on.get(e);
|
|
172
|
+
n && _e(t, { left: Math.max(0, n.left + n.width / 2 - t.clientWidth / 2) });
|
|
173
|
+
}), n(() => {
|
|
174
|
+
let e = V.current;
|
|
175
175
|
if (e == null) return;
|
|
176
|
-
let t =
|
|
176
|
+
let t = jt.current;
|
|
177
177
|
if (!t) return;
|
|
178
|
-
|
|
178
|
+
V.current = null;
|
|
179
179
|
let n = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/"/g, "\\\""), r = t.querySelector(`[data-crk-log-id="${n}"]`);
|
|
180
180
|
if (!r) return;
|
|
181
181
|
let i = Math.max(0, t.scrollTop + r.getBoundingClientRect().top - t.getBoundingClientRect().top - 8);
|
|
182
|
-
|
|
182
|
+
_e(t, { top: i }, 600), Nt(e), H.current && clearTimeout(H.current), H.current = setTimeout(() => Nt(null), 1200);
|
|
183
183
|
});
|
|
184
|
-
let
|
|
185
|
-
let n =
|
|
184
|
+
let _n = (e, t) => {
|
|
185
|
+
let n = on.get(e.id);
|
|
186
186
|
if (!n) return;
|
|
187
|
-
let r = e.end == null, i = (e.end ??
|
|
188
|
-
if (
|
|
187
|
+
let r = e.end == null, i = (e.end ?? R) - e.start;
|
|
188
|
+
if (lt({
|
|
189
189
|
left: n.left,
|
|
190
|
-
chipLeft: Math.max(88, Math.min(n.left,
|
|
191
|
-
label:
|
|
192
|
-
}),
|
|
193
|
-
let a =
|
|
194
|
-
|
|
195
|
-
let
|
|
196
|
-
|
|
190
|
+
chipLeft: Math.max(88, Math.min(n.left, Gt.current - 88)),
|
|
191
|
+
label: te(e.start, !0)
|
|
192
|
+
}), st(e.id), P === e.id) return;
|
|
193
|
+
let a = A.current, o = a ? a.getBoundingClientRect() : { left: 0 }, s = a ? a.scrollLeft : 0, c = window.innerWidth || 1200, l = window.innerHeight || 800, u = n.showLabel ? n.labelW : 0, d = n.showLabel ? n.labelX : n.left, ee = o.left - s + Math.min(n.left, d), f = o.left - s + Math.max(n.left + n.width, d + u), p = t.currentTarget.getBoundingClientRect(), h = f + 28, g = Math.max(95, Math.min(t.clientY, l - 120));
|
|
194
|
+
h + Te > c - 12 && (h = ee - Te - 28), h < 12 && (h = Math.max(12, Math.min(c - Te - 12, t.clientX - Te / 2)), g = p.bottom + 108, g > l - 95 && (g = Math.max(95, p.top - 108)));
|
|
195
|
+
let _ = me(e);
|
|
196
|
+
at({
|
|
197
197
|
id: e.id,
|
|
198
|
-
x:
|
|
199
|
-
y:
|
|
200
|
-
rid: String(
|
|
201
|
-
route:
|
|
202
|
-
label: e.label || (
|
|
203
|
-
time:
|
|
204
|
-
durLine: r ? (
|
|
198
|
+
x: h,
|
|
199
|
+
y: g,
|
|
200
|
+
rid: String(v(e)),
|
|
201
|
+
route: he(e),
|
|
202
|
+
label: e.label || (_ ? (e.method || "GET") + " " + (e.url ? e.url.replace(/^https?:\/\/[^/]+/, "") : e.id) : e.message || ""),
|
|
203
|
+
time: te(e.start, !0),
|
|
204
|
+
durLine: r ? (_ ? "in flight · " : "ongoing · ") + m(i) + " so far" : m(i) + (typeof e.status == "number" ? " · status " + e.status : e.level ? " · " + e.level : ""),
|
|
205
205
|
url: e.url || ""
|
|
206
206
|
});
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
},
|
|
212
|
-
className:
|
|
213
|
-
placement:
|
|
214
|
-
floatingDefaultPosition:
|
|
215
|
-
bubbleGlyphColors:
|
|
216
|
-
items:
|
|
217
|
-
let n =
|
|
207
|
+
}, vn = () => {
|
|
208
|
+
at(null), lt(null), st(null);
|
|
209
|
+
}, yn = Q ? Q.end == null : !1, bn = D ? F === "details" : Q != null, xn = D && F === "log", Sn = () => {
|
|
210
|
+
Qt(null), D && I(null);
|
|
211
|
+
}, Cn = i(() => T.slice().sort((e, t) => e.start - t.start), [T]), $ = Ve ? /* @__PURE__ */ x(se, {
|
|
212
|
+
className: k?.summary,
|
|
213
|
+
placement: E,
|
|
214
|
+
floatingDefaultPosition: He,
|
|
215
|
+
bubbleGlyphColors: $t.slice(0, 3).map((e) => J[e]),
|
|
216
|
+
items: Cn.map((e, t) => {
|
|
217
|
+
let n = on.get(e.id);
|
|
218
218
|
return {
|
|
219
219
|
id: e.id,
|
|
220
220
|
number: String(t + 1).padStart(2, "0"),
|
|
221
|
-
label: String(
|
|
222
|
-
color:
|
|
223
|
-
time:
|
|
224
|
-
inView: !n || !
|
|
225
|
-
selected:
|
|
221
|
+
label: String(v(e)),
|
|
222
|
+
color: J[e.service] || d.body,
|
|
223
|
+
time: f(e.start),
|
|
224
|
+
inView: !n || !St.w || n.left < St.l + St.w && n.left + n.width > St.l,
|
|
225
|
+
selected: P === e.id
|
|
226
226
|
};
|
|
227
227
|
}),
|
|
228
228
|
onPick: (e) => {
|
|
229
|
-
let t =
|
|
230
|
-
t && (
|
|
229
|
+
let t = T.find((t) => t.id === e);
|
|
230
|
+
t && (Qt(t), F === "log" && (V.current = e)), B.current = e;
|
|
231
231
|
}
|
|
232
232
|
}) : null;
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
ref:
|
|
235
|
-
className:
|
|
236
|
-
style:
|
|
233
|
+
return /* @__PURE__ */ S("div", {
|
|
234
|
+
ref: Ee,
|
|
235
|
+
className: s(c.root, k?.root, $e),
|
|
236
|
+
style: et,
|
|
237
237
|
children: [
|
|
238
|
-
(
|
|
239
|
-
className:
|
|
238
|
+
(Re || Rt || De != null || Oe != null) && /* @__PURE__ */ S("div", {
|
|
239
|
+
className: s(c.toolbar, k?.toolbar),
|
|
240
240
|
children: [
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
className:
|
|
243
|
-
children: [
|
|
244
|
-
className:
|
|
245
|
-
children:
|
|
246
|
-
}), /* @__PURE__ */
|
|
247
|
-
className:
|
|
248
|
-
children:
|
|
241
|
+
/* @__PURE__ */ S("div", {
|
|
242
|
+
className: c.toolbarText,
|
|
243
|
+
children: [De != null && /* @__PURE__ */ x("span", {
|
|
244
|
+
className: c.toolbarTitle,
|
|
245
|
+
children: De
|
|
246
|
+
}), /* @__PURE__ */ x("span", {
|
|
247
|
+
className: c.toolbarMeta,
|
|
248
|
+
children: Oe ?? (T.length ? `${T.length} events · span ${m(Bt - 2 * zt)} · times in UTC` : "No events")
|
|
249
249
|
})]
|
|
250
250
|
}),
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
zoomPct: `${Math.round(
|
|
254
|
-
fitActive:
|
|
255
|
-
onZoomIn: () =>
|
|
256
|
-
onZoomOut: () =>
|
|
251
|
+
Rt,
|
|
252
|
+
Re && /* @__PURE__ */ x(le, {
|
|
253
|
+
zoomPct: `${Math.round(K / Ht * 100)}%`,
|
|
254
|
+
fitActive: rt,
|
|
255
|
+
onZoomIn: () => qt(1.5, At / 2),
|
|
256
|
+
onZoomOut: () => qt(1 / 1.5, At / 2),
|
|
257
257
|
onFit: () => {
|
|
258
|
-
|
|
258
|
+
it(!0), nt(null);
|
|
259
259
|
},
|
|
260
|
-
hint:
|
|
260
|
+
hint: ze === "none" ? "drag pans" : (ze === "ctrl" ? "Ctrl+scroll zooms" : "scroll zooms") + " · drag pans"
|
|
261
261
|
})
|
|
262
262
|
]
|
|
263
263
|
}),
|
|
264
|
-
|
|
265
|
-
className:
|
|
266
|
-
items:
|
|
264
|
+
Be && /* @__PURE__ */ x(ae, {
|
|
265
|
+
className: k?.legend,
|
|
266
|
+
items: $t.map((e) => ({
|
|
267
267
|
name: e,
|
|
268
|
-
color:
|
|
268
|
+
color: J[e]
|
|
269
269
|
}))
|
|
270
270
|
}),
|
|
271
|
-
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
className:
|
|
271
|
+
E === "top" && $,
|
|
272
|
+
/* @__PURE__ */ S("div", {
|
|
273
|
+
className: c.layout,
|
|
274
274
|
children: [
|
|
275
|
-
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
className:
|
|
278
|
-
children: [/* @__PURE__ */
|
|
279
|
-
className:
|
|
275
|
+
E === "left" && $,
|
|
276
|
+
/* @__PURE__ */ S("div", {
|
|
277
|
+
className: c.main,
|
|
278
|
+
children: [/* @__PURE__ */ S("div", {
|
|
279
|
+
className: c.cardWrap,
|
|
280
280
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
className:
|
|
283
|
-
children: /* @__PURE__ */
|
|
284
|
-
ref:
|
|
285
|
-
className:
|
|
286
|
-
style: { maxHeight:
|
|
287
|
-
onPointerDown:
|
|
288
|
-
onPointerMove:
|
|
289
|
-
onPointerUp:
|
|
281
|
+
/* @__PURE__ */ x("div", {
|
|
282
|
+
className: s(c.card, (bn || xn) && l.cardFlushRight, k?.card),
|
|
283
|
+
children: /* @__PURE__ */ x("div", {
|
|
284
|
+
ref: A,
|
|
285
|
+
className: s(c.scroller, l.scroller, k?.scroller),
|
|
286
|
+
style: { maxHeight: Ke },
|
|
287
|
+
onPointerDown: z.onPointerDown,
|
|
288
|
+
onPointerMove: z.onPointerMove,
|
|
289
|
+
onPointerUp: z.onPointerUp,
|
|
290
290
|
onPointerLeave: () => {
|
|
291
|
-
|
|
291
|
+
z.onPointerUp(), ct(null);
|
|
292
292
|
},
|
|
293
|
-
onMouseMove:
|
|
294
|
-
onScroll:
|
|
295
|
-
children: /* @__PURE__ */
|
|
296
|
-
className:
|
|
297
|
-
style: { width:
|
|
293
|
+
onMouseMove: Zt,
|
|
294
|
+
onScroll: Yt,
|
|
295
|
+
children: /* @__PURE__ */ S("div", {
|
|
296
|
+
className: l.inner,
|
|
297
|
+
style: { width: sn },
|
|
298
298
|
children: [
|
|
299
|
-
|
|
300
|
-
className:
|
|
299
|
+
Le && dn.map((e, t) => /* @__PURE__ */ x("div", {
|
|
300
|
+
className: l.gridline,
|
|
301
301
|
style: { left: e.left }
|
|
302
|
-
},
|
|
303
|
-
|
|
304
|
-
className:
|
|
305
|
-
style: { left: Math.round(
|
|
302
|
+
}, t)),
|
|
303
|
+
kt && /* @__PURE__ */ x("div", {
|
|
304
|
+
className: l.nowLine,
|
|
305
|
+
style: { left: Math.round(C + (R - W) * K) }
|
|
306
306
|
}),
|
|
307
|
-
|
|
308
|
-
className:
|
|
309
|
-
style: { left:
|
|
307
|
+
M && !j && /* @__PURE__ */ x("div", {
|
|
308
|
+
className: l.cursorLine,
|
|
309
|
+
style: { left: M.left }
|
|
310
310
|
}),
|
|
311
|
-
|
|
312
|
-
className:
|
|
313
|
-
style: { left:
|
|
311
|
+
N && /* @__PURE__ */ x("div", {
|
|
312
|
+
className: l.eventLine,
|
|
313
|
+
style: { left: N.left }
|
|
314
314
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
className:
|
|
315
|
+
/* @__PURE__ */ S("div", {
|
|
316
|
+
className: s(l.axis, k?.axis),
|
|
317
317
|
children: [
|
|
318
|
-
/* @__PURE__ */
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
className:
|
|
318
|
+
/* @__PURE__ */ x("div", { className: l.axisDivider }),
|
|
319
|
+
/* @__PURE__ */ S("div", {
|
|
320
|
+
className: l.axisSticky,
|
|
321
321
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
-
className:
|
|
322
|
+
/* @__PURE__ */ x("span", {
|
|
323
|
+
className: l.axisUtc,
|
|
324
324
|
children: "UTC"
|
|
325
325
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
className:
|
|
328
|
-
children:
|
|
326
|
+
/* @__PURE__ */ x("span", {
|
|
327
|
+
className: l.axisViewDate,
|
|
328
|
+
children: ut || (T.length ? p(W) : "")
|
|
329
329
|
}),
|
|
330
|
-
|
|
331
|
-
className:
|
|
332
|
-
children:
|
|
330
|
+
un && /* @__PURE__ */ x("span", {
|
|
331
|
+
className: l.axisViewTime,
|
|
332
|
+
children: ft || f(W)
|
|
333
333
|
})
|
|
334
334
|
]
|
|
335
335
|
}),
|
|
336
|
-
|
|
337
|
-
e.date && /* @__PURE__ */
|
|
338
|
-
className:
|
|
336
|
+
dn.map((e, t) => /* @__PURE__ */ S("span", { children: [
|
|
337
|
+
e.date && /* @__PURE__ */ x("span", {
|
|
338
|
+
className: l.axisDateLabel,
|
|
339
339
|
style: { left: e.left },
|
|
340
340
|
children: e.date
|
|
341
341
|
}),
|
|
342
|
-
e.time && /* @__PURE__ */
|
|
343
|
-
className:
|
|
342
|
+
e.time && /* @__PURE__ */ x("span", {
|
|
343
|
+
className: l.axisTickLabel,
|
|
344
344
|
style: { left: e.left },
|
|
345
345
|
children: e.time
|
|
346
346
|
}),
|
|
347
|
-
e.sub && /* @__PURE__ */
|
|
348
|
-
className:
|
|
347
|
+
e.sub && /* @__PURE__ */ x("span", {
|
|
348
|
+
className: l.axisSubLabel,
|
|
349
349
|
style: { left: e.left },
|
|
350
350
|
children: e.sub
|
|
351
351
|
}),
|
|
352
|
-
/* @__PURE__ */
|
|
353
|
-
className:
|
|
352
|
+
/* @__PURE__ */ x("span", {
|
|
353
|
+
className: l.axisTickMark,
|
|
354
354
|
style: { left: e.left }
|
|
355
355
|
})
|
|
356
|
-
] },
|
|
357
|
-
|
|
358
|
-
className:
|
|
356
|
+
] }, t)),
|
|
357
|
+
hn.map((e, t) => /* @__PURE__ */ x("span", {
|
|
358
|
+
className: s(l.axisMinorMark, e.medium && l.axisMinorMedium),
|
|
359
359
|
style: { left: e.left }
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
className:
|
|
363
|
-
style: { left:
|
|
364
|
-
children:
|
|
360
|
+
}, t)),
|
|
361
|
+
M && !j && /* @__PURE__ */ x("div", {
|
|
362
|
+
className: l.axisChip,
|
|
363
|
+
style: { left: M.chipLeft },
|
|
364
|
+
children: M.label
|
|
365
365
|
}),
|
|
366
|
-
|
|
367
|
-
className:
|
|
368
|
-
style: { left:
|
|
369
|
-
children: ["▸ ",
|
|
366
|
+
N && /* @__PURE__ */ S("div", {
|
|
367
|
+
className: s(l.axisChip, l.axisChipEvent),
|
|
368
|
+
style: { left: N.chipLeft },
|
|
369
|
+
children: ["▸ ", N.label]
|
|
370
370
|
})
|
|
371
371
|
]
|
|
372
372
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
className:
|
|
375
|
-
style: { height:
|
|
376
|
-
children: [/* @__PURE__ */
|
|
377
|
-
className:
|
|
378
|
-
style: { top:
|
|
379
|
-
}),
|
|
380
|
-
let
|
|
381
|
-
if (!
|
|
382
|
-
let
|
|
373
|
+
/* @__PURE__ */ S("div", {
|
|
374
|
+
className: l.lane,
|
|
375
|
+
style: { height: an.h },
|
|
376
|
+
children: [/* @__PURE__ */ x("div", {
|
|
377
|
+
className: l.axisLine,
|
|
378
|
+
style: { top: an.axisY }
|
|
379
|
+
}), T.map((e) => {
|
|
380
|
+
let t = on.get(e.id);
|
|
381
|
+
if (!t) return null;
|
|
382
|
+
let n = J[e.service] || d.body, r = e.end == null, i = ee(e, U, Ge), a = gn != null && gn >= e.start && gn <= (e.end ?? R), o = ot === e.id, u = U && !i ? .25 : 1, f = String(v(e)), p = ge(e), m = J[p] || d.body, h = J[e.service] || d.body, g = o ? `0 0 0 3px ${_(n, 55)}, 0 4px 14px rgba(35,32,28,.22)` : U && i ? `0 0 0 3px ${d.hlRing}` : P === e.id ? `0 0 0 3px ${d.selectedRing}` : a ? `0 0 0 3px ${_(n, 30)}` : "none", ne = o ? n : a ? d.stemHot : d.stem, re = {
|
|
383
383
|
onClick: () => {
|
|
384
|
-
if (
|
|
385
|
-
|
|
386
|
-
let
|
|
387
|
-
|
|
384
|
+
if (z.wasDragSuppressed()) return;
|
|
385
|
+
at(null);
|
|
386
|
+
let t = P === e.id ? null : e;
|
|
387
|
+
Qt(t), t && F === "log" && (V.current = t.id);
|
|
388
388
|
},
|
|
389
|
-
onMouseEnter: (
|
|
390
|
-
onMouseLeave:
|
|
389
|
+
onMouseEnter: (t) => _n(e, t),
|
|
390
|
+
onMouseLeave: vn
|
|
391
391
|
};
|
|
392
|
-
return /* @__PURE__ */
|
|
393
|
-
|
|
394
|
-
className:
|
|
392
|
+
return /* @__PURE__ */ S("span", { children: [t.showLabel && /* @__PURE__ */ S(b, { children: [
|
|
393
|
+
t.conn && !t.hconn && /* @__PURE__ */ x("div", {
|
|
394
|
+
className: l.stem,
|
|
395
395
|
style: {
|
|
396
|
-
left:
|
|
397
|
-
top:
|
|
398
|
-
height:
|
|
399
|
-
background:
|
|
396
|
+
left: t.left,
|
|
397
|
+
top: t.connTop,
|
|
398
|
+
height: t.connH,
|
|
399
|
+
background: ne
|
|
400
400
|
}
|
|
401
401
|
}),
|
|
402
|
-
|
|
403
|
-
className:
|
|
402
|
+
t.conn && t.hconn && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", {
|
|
403
|
+
className: l.stem,
|
|
404
404
|
style: {
|
|
405
|
-
left:
|
|
406
|
-
top:
|
|
407
|
-
height:
|
|
408
|
-
background:
|
|
405
|
+
left: t.left,
|
|
406
|
+
top: t.connTop,
|
|
407
|
+
height: t.connH,
|
|
408
|
+
background: ne
|
|
409
409
|
}
|
|
410
|
-
}), /* @__PURE__ */
|
|
411
|
-
className:
|
|
410
|
+
}), /* @__PURE__ */ x("div", {
|
|
411
|
+
className: l.elbow,
|
|
412
412
|
style: {
|
|
413
|
-
left:
|
|
414
|
-
top:
|
|
415
|
-
width:
|
|
416
|
-
background:
|
|
413
|
+
left: t.hconnLeft,
|
|
414
|
+
top: t.hconnTop,
|
|
415
|
+
width: t.hconnW,
|
|
416
|
+
background: ne
|
|
417
417
|
}
|
|
418
418
|
})] }),
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
...
|
|
421
|
-
className:
|
|
419
|
+
/* @__PURE__ */ x("div", {
|
|
420
|
+
...re,
|
|
421
|
+
className: s(l.chip, k?.chip),
|
|
422
422
|
style: {
|
|
423
|
-
left:
|
|
424
|
-
top:
|
|
425
|
-
opacity:
|
|
426
|
-
background:
|
|
427
|
-
borderColor:
|
|
428
|
-
boxShadow:
|
|
423
|
+
left: t.labelX,
|
|
424
|
+
top: t.labelTop,
|
|
425
|
+
opacity: u,
|
|
426
|
+
background: o ? _(n, 7) : U && i ? d.hlWashSoft : void 0,
|
|
427
|
+
borderColor: o ? n : U && i ? d.hlBorder : a ? n : void 0,
|
|
428
|
+
boxShadow: o ? `0 0 0 2px ${_(n, 40)}, 0 4px 12px rgba(35,32,28,.16)` : "0 1px 2px rgba(35,32,28,.06)"
|
|
429
429
|
},
|
|
430
|
-
children:
|
|
431
|
-
color:
|
|
432
|
-
pending:
|
|
433
|
-
durationMs: (
|
|
434
|
-
}) : /* @__PURE__ */
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
-
className:
|
|
430
|
+
children: Xe ? Xe(e, {
|
|
431
|
+
color: n,
|
|
432
|
+
pending: r,
|
|
433
|
+
durationMs: (e.end ?? R) - e.start
|
|
434
|
+
}) : /* @__PURE__ */ S(b, { children: [
|
|
435
|
+
/* @__PURE__ */ S("div", { children: [p && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("span", {
|
|
436
|
+
className: l.chipBadge,
|
|
437
437
|
style: {
|
|
438
|
-
background:
|
|
438
|
+
background: _(m, 14),
|
|
439
439
|
color: m
|
|
440
440
|
},
|
|
441
441
|
children: p
|
|
442
|
-
}), /* @__PURE__ */
|
|
443
|
-
className:
|
|
442
|
+
}), /* @__PURE__ */ x("span", {
|
|
443
|
+
className: l.chipArrow,
|
|
444
444
|
children: " → "
|
|
445
|
-
})] }), /* @__PURE__ */
|
|
446
|
-
className:
|
|
445
|
+
})] }), /* @__PURE__ */ x("span", {
|
|
446
|
+
className: l.chipBadge,
|
|
447
447
|
style: {
|
|
448
|
-
background:
|
|
448
|
+
background: _(h, 14),
|
|
449
449
|
color: h
|
|
450
450
|
},
|
|
451
|
-
children:
|
|
451
|
+
children: e.service
|
|
452
452
|
})] }),
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
-
className:
|
|
455
|
-
children: /* @__PURE__ */
|
|
456
|
-
text:
|
|
457
|
-
query:
|
|
453
|
+
/* @__PURE__ */ x("div", {
|
|
454
|
+
className: l.chipOp,
|
|
455
|
+
children: /* @__PURE__ */ x(ie, {
|
|
456
|
+
text: f,
|
|
457
|
+
query: U
|
|
458
458
|
})
|
|
459
459
|
}),
|
|
460
|
-
/* @__PURE__ */
|
|
461
|
-
className:
|
|
462
|
-
children:
|
|
460
|
+
/* @__PURE__ */ x("div", {
|
|
461
|
+
className: l.chipTime,
|
|
462
|
+
children: te(e.start, !0)
|
|
463
463
|
})
|
|
464
464
|
] })
|
|
465
465
|
})
|
|
466
|
-
] }), /* @__PURE__ */
|
|
467
|
-
...
|
|
468
|
-
className:
|
|
466
|
+
] }), /* @__PURE__ */ x("div", {
|
|
467
|
+
...re,
|
|
468
|
+
className: s(l.bar, r && l.barPending, k?.bar),
|
|
469
469
|
style: {
|
|
470
|
-
left:
|
|
471
|
-
top:
|
|
472
|
-
width:
|
|
473
|
-
height:
|
|
474
|
-
background:
|
|
475
|
-
borderColor:
|
|
476
|
-
opacity:
|
|
477
|
-
boxShadow:
|
|
470
|
+
left: t.left,
|
|
471
|
+
top: t.barTop,
|
|
472
|
+
width: t.width,
|
|
473
|
+
height: tn,
|
|
474
|
+
background: U && i ? d.hlBarBg : _(n, 22),
|
|
475
|
+
borderColor: n,
|
|
476
|
+
opacity: u,
|
|
477
|
+
boxShadow: g
|
|
478
478
|
},
|
|
479
|
-
children:
|
|
480
|
-
className:
|
|
481
|
-
style: { background:
|
|
479
|
+
children: r && /* @__PURE__ */ x("span", {
|
|
480
|
+
className: s(c.pulseDot, l.barDot),
|
|
481
|
+
style: { background: n }
|
|
482
482
|
})
|
|
483
|
-
})] },
|
|
483
|
+
})] }, e.id);
|
|
484
484
|
})]
|
|
485
485
|
})
|
|
486
486
|
]
|
|
487
487
|
})
|
|
488
488
|
})
|
|
489
489
|
}),
|
|
490
|
-
|
|
491
|
-
className:
|
|
492
|
-
style: { flexBasis:
|
|
493
|
-
children: [/* @__PURE__ */
|
|
490
|
+
bn && Q && Qe && /* @__PURE__ */ S("div", {
|
|
491
|
+
className: l.dockCol,
|
|
492
|
+
style: { flexBasis: _t },
|
|
493
|
+
children: [/* @__PURE__ */ x(oe, {
|
|
494
494
|
panel: "right",
|
|
495
|
-
width:
|
|
495
|
+
width: _t,
|
|
496
496
|
min: 280,
|
|
497
497
|
max: 640,
|
|
498
|
-
onResize:
|
|
498
|
+
onResize: vt,
|
|
499
499
|
label: "Resize details drawer",
|
|
500
|
-
className:
|
|
501
|
-
}), /* @__PURE__ */
|
|
502
|
-
className:
|
|
503
|
-
children:
|
|
504
|
-
close:
|
|
505
|
-
pending:
|
|
500
|
+
className: l.dockColResizer
|
|
501
|
+
}), /* @__PURE__ */ x("aside", {
|
|
502
|
+
className: s(c.aside, l.drawerCustom, k?.drawer),
|
|
503
|
+
children: Qe(Q, {
|
|
504
|
+
close: Sn,
|
|
505
|
+
pending: yn
|
|
506
506
|
})
|
|
507
507
|
})]
|
|
508
508
|
}),
|
|
509
|
-
|
|
510
|
-
className:
|
|
511
|
-
style: { flexBasis:
|
|
512
|
-
children: [/* @__PURE__ */
|
|
509
|
+
bn && !(Q && Qe) && /* @__PURE__ */ S("div", {
|
|
510
|
+
className: l.dockCol,
|
|
511
|
+
style: { flexBasis: _t },
|
|
512
|
+
children: [/* @__PURE__ */ x(oe, {
|
|
513
513
|
panel: "right",
|
|
514
|
-
width:
|
|
514
|
+
width: _t,
|
|
515
515
|
min: 280,
|
|
516
516
|
max: 640,
|
|
517
|
-
onResize:
|
|
517
|
+
onResize: vt,
|
|
518
518
|
label: "Resize details drawer",
|
|
519
|
-
className:
|
|
520
|
-
}), /* @__PURE__ */
|
|
521
|
-
className:
|
|
522
|
-
children: [
|
|
523
|
-
className:
|
|
519
|
+
className: l.dockColResizer
|
|
520
|
+
}), /* @__PURE__ */ S("aside", {
|
|
521
|
+
className: s(c.aside, D && l.dockAside, k?.drawer),
|
|
522
|
+
children: [D && /* @__PURE__ */ S("div", {
|
|
523
|
+
className: l.dockHead,
|
|
524
524
|
children: [
|
|
525
|
-
/* @__PURE__ */
|
|
526
|
-
className:
|
|
525
|
+
/* @__PURE__ */ x("span", {
|
|
526
|
+
className: l.dockTitle,
|
|
527
527
|
children: "Event details"
|
|
528
528
|
}),
|
|
529
|
-
/* @__PURE__ */
|
|
530
|
-
/* @__PURE__ */
|
|
529
|
+
/* @__PURE__ */ x("div", { className: l.drawerSpacer }),
|
|
530
|
+
/* @__PURE__ */ x("button", {
|
|
531
531
|
type: "button",
|
|
532
|
-
className:
|
|
532
|
+
className: c.asideClose,
|
|
533
533
|
"aria-label": "Close details",
|
|
534
|
-
onClick:
|
|
534
|
+
onClick: Sn,
|
|
535
535
|
children: "✕"
|
|
536
536
|
})
|
|
537
537
|
]
|
|
538
|
-
}),
|
|
539
|
-
event:
|
|
540
|
-
now:
|
|
541
|
-
highlight:
|
|
542
|
-
showExtraFields:
|
|
543
|
-
hiddenFields:
|
|
544
|
-
onClose:
|
|
545
|
-
className:
|
|
546
|
-
}) : /* @__PURE__ */
|
|
547
|
-
className:
|
|
538
|
+
}), Q ? /* @__PURE__ */ x(pe, {
|
|
539
|
+
event: Q,
|
|
540
|
+
now: R,
|
|
541
|
+
highlight: U,
|
|
542
|
+
showExtraFields: We,
|
|
543
|
+
hiddenFields: Ge,
|
|
544
|
+
onClose: D ? void 0 : Sn,
|
|
545
|
+
className: D ? l.dockScroll : void 0
|
|
546
|
+
}) : /* @__PURE__ */ x("div", {
|
|
547
|
+
className: l.dockEmpty,
|
|
548
548
|
children: "Click an event on the timeline to inspect it."
|
|
549
549
|
})]
|
|
550
550
|
})]
|
|
551
551
|
}),
|
|
552
|
-
|
|
553
|
-
className:
|
|
554
|
-
style: { flexBasis:
|
|
555
|
-
children: [/* @__PURE__ */
|
|
552
|
+
xn && /* @__PURE__ */ S("div", {
|
|
553
|
+
className: l.dockCol,
|
|
554
|
+
style: { flexBasis: yt },
|
|
555
|
+
children: [/* @__PURE__ */ x(oe, {
|
|
556
556
|
panel: "right",
|
|
557
|
-
width:
|
|
557
|
+
width: yt,
|
|
558
558
|
min: 320,
|
|
559
559
|
max: 680,
|
|
560
|
-
onResize:
|
|
560
|
+
onResize: bt,
|
|
561
561
|
label: "Resize log drawer",
|
|
562
|
-
className:
|
|
563
|
-
}), /* @__PURE__ */
|
|
564
|
-
className:
|
|
565
|
-
children: [/* @__PURE__ */
|
|
566
|
-
className:
|
|
562
|
+
className: l.dockColResizer
|
|
563
|
+
}), /* @__PURE__ */ S("aside", {
|
|
564
|
+
className: s(c.aside, l.dockAside, k?.log),
|
|
565
|
+
children: [/* @__PURE__ */ S("div", {
|
|
566
|
+
className: l.dockHead,
|
|
567
567
|
children: [
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
className:
|
|
568
|
+
/* @__PURE__ */ x("span", {
|
|
569
|
+
className: l.dockTitle,
|
|
570
570
|
children: "Full log"
|
|
571
571
|
}),
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
className:
|
|
574
|
-
children: [
|
|
572
|
+
/* @__PURE__ */ S("span", {
|
|
573
|
+
className: l.dockCount,
|
|
574
|
+
children: [T.length, " events"]
|
|
575
575
|
}),
|
|
576
|
-
/* @__PURE__ */
|
|
577
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ x("div", { className: l.drawerSpacer }),
|
|
577
|
+
/* @__PURE__ */ x("button", {
|
|
578
578
|
type: "button",
|
|
579
|
-
className:
|
|
579
|
+
className: c.asideClose,
|
|
580
580
|
"aria-label": "Close full log",
|
|
581
|
-
onClick: () =>
|
|
581
|
+
onClick: () => I(null),
|
|
582
582
|
children: "✕"
|
|
583
583
|
})
|
|
584
584
|
]
|
|
585
|
-
}), /* @__PURE__ */
|
|
586
|
-
ref:
|
|
587
|
-
className:
|
|
588
|
-
children:
|
|
589
|
-
let
|
|
590
|
-
return /* @__PURE__ */
|
|
591
|
-
"data-crk-log-id":
|
|
592
|
-
className:
|
|
585
|
+
}), /* @__PURE__ */ x("div", {
|
|
586
|
+
ref: jt,
|
|
587
|
+
className: s(l.dockScroll, l.logBody),
|
|
588
|
+
children: Cn.map((e, t) => {
|
|
589
|
+
let n = e.end == null, r = e.url ? e.url.replace(/^https?:\/\/[^/]+/, "") : "", i = me(e);
|
|
590
|
+
return /* @__PURE__ */ S("div", {
|
|
591
|
+
"data-crk-log-id": e.id,
|
|
592
|
+
className: s(l.logEntry, P === e.id && l.logEntrySelected, Mt === e.id && l.logEntryFlash),
|
|
593
593
|
onClick: () => {
|
|
594
|
-
|
|
594
|
+
Qt(e), B.current = e.id;
|
|
595
595
|
},
|
|
596
596
|
children: [
|
|
597
|
-
/* @__PURE__ */
|
|
598
|
-
className:
|
|
597
|
+
/* @__PURE__ */ S("div", {
|
|
598
|
+
className: l.logTop,
|
|
599
599
|
children: [
|
|
600
|
-
/* @__PURE__ */
|
|
601
|
-
className:
|
|
602
|
-
children: String(
|
|
600
|
+
/* @__PURE__ */ x("span", {
|
|
601
|
+
className: l.logNum,
|
|
602
|
+
children: String(t + 1).padStart(2, "0")
|
|
603
603
|
}),
|
|
604
|
-
|
|
605
|
-
className:
|
|
606
|
-
children:
|
|
604
|
+
e.method && /* @__PURE__ */ x("span", {
|
|
605
|
+
className: s(l.methodBadge, l.badgeSm),
|
|
606
|
+
children: e.method
|
|
607
607
|
}),
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
event:
|
|
610
|
-
pending:
|
|
608
|
+
/* @__PURE__ */ x(de, {
|
|
609
|
+
event: e,
|
|
610
|
+
pending: n,
|
|
611
611
|
small: !0
|
|
612
612
|
}),
|
|
613
|
-
/* @__PURE__ */
|
|
614
|
-
className:
|
|
615
|
-
children:
|
|
613
|
+
/* @__PURE__ */ x("span", {
|
|
614
|
+
className: l.logPair,
|
|
615
|
+
children: he(e)
|
|
616
616
|
}),
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
/* @__PURE__ */
|
|
619
|
-
className:
|
|
620
|
-
children:
|
|
617
|
+
/* @__PURE__ */ x("div", { className: l.drawerSpacer }),
|
|
618
|
+
/* @__PURE__ */ x("span", {
|
|
619
|
+
className: l.logClock,
|
|
620
|
+
children: f(e.start)
|
|
621
621
|
})
|
|
622
622
|
]
|
|
623
623
|
}),
|
|
624
|
-
/* @__PURE__ */
|
|
625
|
-
className:
|
|
626
|
-
children: /* @__PURE__ */
|
|
627
|
-
text: String(
|
|
628
|
-
query:
|
|
624
|
+
/* @__PURE__ */ x("div", {
|
|
625
|
+
className: l.logOp,
|
|
626
|
+
children: /* @__PURE__ */ x(ie, {
|
|
627
|
+
text: String(v(e)),
|
|
628
|
+
query: U
|
|
629
629
|
})
|
|
630
630
|
}),
|
|
631
|
-
|
|
632
|
-
className:
|
|
633
|
-
children:
|
|
631
|
+
r && /* @__PURE__ */ x("div", {
|
|
632
|
+
className: l.logPath,
|
|
633
|
+
children: r
|
|
634
634
|
}),
|
|
635
|
-
|
|
636
|
-
className:
|
|
637
|
-
children: /* @__PURE__ */
|
|
638
|
-
text:
|
|
639
|
-
query:
|
|
635
|
+
e.message && /* @__PURE__ */ x("div", {
|
|
636
|
+
className: l.logMessage,
|
|
637
|
+
children: /* @__PURE__ */ x(ie, {
|
|
638
|
+
text: e.message,
|
|
639
|
+
query: U
|
|
640
640
|
})
|
|
641
641
|
}),
|
|
642
|
-
!!
|
|
643
|
-
className:
|
|
642
|
+
!!e.details?.length && /* @__PURE__ */ x("div", {
|
|
643
|
+
className: s(l.fieldList, l.logFields),
|
|
644
644
|
onClick: (e) => e.stopPropagation(),
|
|
645
|
-
children:
|
|
645
|
+
children: e.details.map((e, t) => /* @__PURE__ */ x(fe, {
|
|
646
646
|
field: e,
|
|
647
|
-
query:
|
|
647
|
+
query: U
|
|
648
648
|
}, e.label + t))
|
|
649
649
|
}),
|
|
650
|
-
|
|
651
|
-
className:
|
|
652
|
-
children: [/* @__PURE__ */
|
|
653
|
-
className:
|
|
650
|
+
e.payload != null && /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("div", {
|
|
651
|
+
className: l.logPayloadHead,
|
|
652
|
+
children: [/* @__PURE__ */ x("span", {
|
|
653
|
+
className: l.logPayloadLabel,
|
|
654
654
|
children: "Payload"
|
|
655
|
-
}), /* @__PURE__ */
|
|
656
|
-
className:
|
|
655
|
+
}), /* @__PURE__ */ x("span", {
|
|
656
|
+
className: l.copyStop,
|
|
657
657
|
onClick: (e) => e.stopPropagation(),
|
|
658
|
-
children: /* @__PURE__ */
|
|
658
|
+
children: /* @__PURE__ */ x(ue, {
|
|
659
659
|
size: "sm",
|
|
660
|
-
className:
|
|
661
|
-
value: () =>
|
|
660
|
+
className: l.payloadCopy,
|
|
661
|
+
value: () => y(e.payload),
|
|
662
662
|
"aria-label": "Copy payload"
|
|
663
663
|
})
|
|
664
664
|
})]
|
|
665
|
-
}), /* @__PURE__ */
|
|
666
|
-
className:
|
|
667
|
-
children:
|
|
665
|
+
}), /* @__PURE__ */ x("pre", {
|
|
666
|
+
className: s(c.asideRaw, l.logPre),
|
|
667
|
+
children: y(e.payload)
|
|
668
668
|
})] }),
|
|
669
|
-
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
className:
|
|
672
|
-
children: [/* @__PURE__ */
|
|
673
|
-
className:
|
|
669
|
+
i && /* @__PURE__ */ S(b, { children: [
|
|
670
|
+
/* @__PURE__ */ S("div", {
|
|
671
|
+
className: l.logPayloadHead,
|
|
672
|
+
children: [/* @__PURE__ */ x("span", {
|
|
673
|
+
className: l.logPayloadLabel,
|
|
674
674
|
children: "Request"
|
|
675
|
-
}),
|
|
676
|
-
className:
|
|
675
|
+
}), e.reqBody != null && /* @__PURE__ */ x("span", {
|
|
676
|
+
className: l.copyStop,
|
|
677
677
|
onClick: (e) => e.stopPropagation(),
|
|
678
|
-
children: /* @__PURE__ */
|
|
678
|
+
children: /* @__PURE__ */ x(ue, {
|
|
679
679
|
size: "sm",
|
|
680
|
-
className:
|
|
681
|
-
value: () =>
|
|
680
|
+
className: l.payloadCopy,
|
|
681
|
+
value: () => y(e.reqBody),
|
|
682
682
|
"aria-label": "Copy request payload"
|
|
683
683
|
})
|
|
684
684
|
})]
|
|
685
685
|
}),
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
className:
|
|
688
|
-
children:
|
|
686
|
+
/* @__PURE__ */ x("pre", {
|
|
687
|
+
className: s(c.asideRaw, l.logPre),
|
|
688
|
+
children: e.reqBody == null ? "(empty)" : y(e.reqBody)
|
|
689
689
|
}),
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
className:
|
|
692
|
-
children: [/* @__PURE__ */
|
|
693
|
-
className:
|
|
690
|
+
/* @__PURE__ */ S("div", {
|
|
691
|
+
className: l.logPayloadHead,
|
|
692
|
+
children: [/* @__PURE__ */ x("span", {
|
|
693
|
+
className: l.logPayloadLabel,
|
|
694
694
|
children: "Response"
|
|
695
|
-
}), !
|
|
696
|
-
className:
|
|
695
|
+
}), !n && e.resBody != null && /* @__PURE__ */ x("span", {
|
|
696
|
+
className: l.copyStop,
|
|
697
697
|
onClick: (e) => e.stopPropagation(),
|
|
698
|
-
children: /* @__PURE__ */
|
|
698
|
+
children: /* @__PURE__ */ x(ue, {
|
|
699
699
|
size: "sm",
|
|
700
|
-
className:
|
|
701
|
-
value: () =>
|
|
700
|
+
className: l.payloadCopy,
|
|
701
|
+
value: () => y(e.resBody),
|
|
702
702
|
"aria-label": "Copy response payload"
|
|
703
703
|
})
|
|
704
704
|
})]
|
|
705
705
|
}),
|
|
706
|
-
|
|
707
|
-
className:
|
|
708
|
-
children: [/* @__PURE__ */
|
|
709
|
-
}) : /* @__PURE__ */
|
|
710
|
-
className:
|
|
711
|
-
children:
|
|
706
|
+
n ? /* @__PURE__ */ S("div", {
|
|
707
|
+
className: l.awaiting,
|
|
708
|
+
children: [/* @__PURE__ */ x("span", { className: s(c.pulseDot, l.awaitingDot) }), "Awaiting response…"]
|
|
709
|
+
}) : /* @__PURE__ */ x("pre", {
|
|
710
|
+
className: s(c.asideRaw, l.logPre),
|
|
711
|
+
children: e.resBody == null ? "(empty)" : y(e.resBody)
|
|
712
712
|
})
|
|
713
713
|
] }),
|
|
714
|
-
!
|
|
715
|
-
className:
|
|
716
|
-
children: [/* @__PURE__ */
|
|
714
|
+
!i && n && /* @__PURE__ */ S("div", {
|
|
715
|
+
className: l.awaiting,
|
|
716
|
+
children: [/* @__PURE__ */ x("span", { className: s(c.pulseDot, l.awaitingDot) }), "Still ongoing…"]
|
|
717
717
|
})
|
|
718
718
|
]
|
|
719
|
-
},
|
|
719
|
+
}, e.id);
|
|
720
720
|
})
|
|
721
721
|
})]
|
|
722
722
|
})]
|
|
723
723
|
}),
|
|
724
|
-
|
|
724
|
+
E === "bubble" && $
|
|
725
725
|
]
|
|
726
|
-
}), /* @__PURE__ */
|
|
727
|
-
className:
|
|
726
|
+
}), /* @__PURE__ */ x("div", {
|
|
727
|
+
className: s(c.footnote, k?.footnote),
|
|
728
728
|
children: "Click an event to open its details in the side panel · dashed pills are still in flight"
|
|
729
729
|
})]
|
|
730
730
|
}),
|
|
731
|
-
(
|
|
732
|
-
|
|
733
|
-
className:
|
|
734
|
-
children: [/* @__PURE__ */
|
|
731
|
+
(E === "right" || E === "floating") && $,
|
|
732
|
+
D && /* @__PURE__ */ S("div", {
|
|
733
|
+
className: s(l.rail, k?.rail),
|
|
734
|
+
children: [/* @__PURE__ */ x("button", {
|
|
735
735
|
type: "button",
|
|
736
736
|
title: "Event details",
|
|
737
737
|
"aria-label": "Toggle event details drawer",
|
|
738
|
-
"aria-pressed":
|
|
739
|
-
className:
|
|
740
|
-
onClick: () =>
|
|
741
|
-
children: /* @__PURE__ */
|
|
742
|
-
className:
|
|
738
|
+
"aria-pressed": F === "details",
|
|
739
|
+
className: s(l.railBtn, F === "details" && l.railBtnActive),
|
|
740
|
+
onClick: () => I(F === "details" ? null : "details"),
|
|
741
|
+
children: /* @__PURE__ */ S("span", {
|
|
742
|
+
className: l.railGlyphDetails,
|
|
743
743
|
"aria-hidden": !0,
|
|
744
744
|
children: [
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
747
|
-
/* @__PURE__ */
|
|
745
|
+
/* @__PURE__ */ x("span", {}),
|
|
746
|
+
/* @__PURE__ */ x("span", {}),
|
|
747
|
+
/* @__PURE__ */ x("span", {})
|
|
748
748
|
]
|
|
749
749
|
})
|
|
750
|
-
}), /* @__PURE__ */
|
|
750
|
+
}), /* @__PURE__ */ x("button", {
|
|
751
751
|
type: "button",
|
|
752
752
|
title: "Full log",
|
|
753
753
|
"aria-label": "Toggle full log drawer",
|
|
754
|
-
"aria-pressed":
|
|
755
|
-
className:
|
|
754
|
+
"aria-pressed": F === "log",
|
|
755
|
+
className: s(l.railBtn, F === "log" && l.railBtnActive),
|
|
756
756
|
onClick: () => {
|
|
757
|
-
let e =
|
|
758
|
-
e === "log" &&
|
|
757
|
+
let e = F === "log" ? null : "log";
|
|
758
|
+
e === "log" && P != null && (V.current = P), I(e);
|
|
759
759
|
},
|
|
760
|
-
children: /* @__PURE__ */
|
|
761
|
-
className:
|
|
760
|
+
children: /* @__PURE__ */ S("span", {
|
|
761
|
+
className: l.railGlyphLog,
|
|
762
762
|
"aria-hidden": !0,
|
|
763
763
|
children: [
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */
|
|
766
|
-
/* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ x("span", {}),
|
|
765
|
+
/* @__PURE__ */ x("span", {}),
|
|
766
|
+
/* @__PURE__ */ x("span", {})
|
|
767
767
|
]
|
|
768
768
|
})
|
|
769
769
|
})]
|
|
770
770
|
})
|
|
771
771
|
]
|
|
772
772
|
}),
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
let
|
|
776
|
-
color:
|
|
777
|
-
pending:
|
|
778
|
-
durationMs: (
|
|
773
|
+
E === "bottom" && $,
|
|
774
|
+
j && (() => {
|
|
775
|
+
let e = T.find((e) => e.id === j.id), t = e && Ze ? Ze(e, {
|
|
776
|
+
color: J[e.service] || d.body,
|
|
777
|
+
pending: e.end == null,
|
|
778
|
+
durationMs: (e.end ?? R) - e.start
|
|
779
779
|
}) : void 0;
|
|
780
|
-
return
|
|
781
|
-
x:
|
|
782
|
-
y:
|
|
783
|
-
className:
|
|
784
|
-
children:
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
className:
|
|
787
|
-
children:
|
|
780
|
+
return Ze && t == null ? null : /* @__PURE__ */ x(ce, {
|
|
781
|
+
x: j.x,
|
|
782
|
+
y: j.y,
|
|
783
|
+
className: k?.tooltip,
|
|
784
|
+
children: t === void 0 ? /* @__PURE__ */ S(b, { children: [
|
|
785
|
+
/* @__PURE__ */ x("div", {
|
|
786
|
+
className: s(c.tooltipTitle, c.tooltipMono),
|
|
787
|
+
children: j.rid
|
|
788
788
|
}),
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
-
className:
|
|
789
|
+
/* @__PURE__ */ x("div", {
|
|
790
|
+
className: c.tooltipLine,
|
|
791
791
|
style: { marginTop: 4 },
|
|
792
|
-
children:
|
|
792
|
+
children: j.route
|
|
793
793
|
}),
|
|
794
|
-
|
|
795
|
-
className:
|
|
794
|
+
j.label && /* @__PURE__ */ x("div", {
|
|
795
|
+
className: s(c.tooltipLine, c.tooltipMono),
|
|
796
796
|
style: { marginTop: 2 },
|
|
797
|
-
children:
|
|
797
|
+
children: j.label
|
|
798
798
|
}),
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
-
className:
|
|
799
|
+
/* @__PURE__ */ x("div", {
|
|
800
|
+
className: c.tooltipLine,
|
|
801
801
|
style: { marginTop: 4 },
|
|
802
|
-
children:
|
|
802
|
+
children: j.time
|
|
803
803
|
}),
|
|
804
|
-
/* @__PURE__ */
|
|
805
|
-
className:
|
|
806
|
-
children:
|
|
804
|
+
/* @__PURE__ */ x("div", {
|
|
805
|
+
className: c.tooltipLine,
|
|
806
|
+
children: j.durLine
|
|
807
807
|
}),
|
|
808
|
-
|
|
809
|
-
className:
|
|
808
|
+
j.url && /* @__PURE__ */ x("div", {
|
|
809
|
+
className: s(c.tooltipDim, c.tooltipMono),
|
|
810
810
|
style: {
|
|
811
811
|
marginTop: 4,
|
|
812
812
|
wordBreak: "break-all",
|
|
813
813
|
fontSize: "10.5px"
|
|
814
814
|
},
|
|
815
|
-
children:
|
|
815
|
+
children: j.url
|
|
816
816
|
})
|
|
817
|
-
] }) :
|
|
817
|
+
] }) : t
|
|
818
818
|
});
|
|
819
819
|
})()
|
|
820
820
|
]
|
|
821
821
|
});
|
|
822
822
|
});
|
|
823
|
-
export {
|
|
823
|
+
export { Ee as TraceTimeline };
|