@motiadev/plugin-observability 0.14.0-beta.165-210612 → 0.14.0-beta.165-256670
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/LICENSE +1 -1
- package/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +765 -874
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
package/dist/index.js
CHANGED
|
@@ -27,22 +27,18 @@ const useObservabilityStore = create()((set) => ({
|
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/components/search-bar.tsx
|
|
29
29
|
const SearchBar = memo(() => {
|
|
30
|
-
const $ = c(
|
|
31
|
-
if ($[0] !== "0d378097fa8da23c1a1ca72ef31fe4b19f0c9bbeda9092deafe087d58425242d") {
|
|
32
|
-
for (let $i = 0; $i < 24; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
33
|
-
$[0] = "0d378097fa8da23c1a1ca72ef31fe4b19f0c9bbeda9092deafe087d58425242d";
|
|
34
|
-
}
|
|
30
|
+
const $ = c(23);
|
|
35
31
|
const search = useObservabilityStore(_temp$6);
|
|
36
32
|
const setSearch = useObservabilityStore(_temp2$3);
|
|
37
33
|
const clearTraces = useObservabilityStore(_temp3$1);
|
|
38
34
|
let t0;
|
|
39
|
-
if ($[
|
|
35
|
+
if ($[0] !== setSearch) {
|
|
40
36
|
t0 = (e) => setSearch(e.target.value);
|
|
41
|
-
$[
|
|
42
|
-
$[
|
|
43
|
-
} else t0 = $[
|
|
37
|
+
$[0] = setSearch;
|
|
38
|
+
$[1] = t0;
|
|
39
|
+
} else t0 = $[1];
|
|
44
40
|
let t1;
|
|
45
|
-
if ($[
|
|
41
|
+
if ($[2] !== search || $[3] !== t0) {
|
|
46
42
|
t1 = /* @__PURE__ */ jsx(Input, {
|
|
47
43
|
variant: "shade",
|
|
48
44
|
value: search,
|
|
@@ -50,45 +46,45 @@ const SearchBar = memo(() => {
|
|
|
50
46
|
className: "px-9! font-medium",
|
|
51
47
|
placeholder: "Search by Trace ID or Step Name"
|
|
52
48
|
});
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
56
|
-
} else t1 = $[
|
|
49
|
+
$[2] = search;
|
|
50
|
+
$[3] = t0;
|
|
51
|
+
$[4] = t1;
|
|
52
|
+
} else t1 = $[4];
|
|
57
53
|
let t2;
|
|
58
|
-
if ($[
|
|
54
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
59
55
|
t2 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
|
|
60
|
-
$[
|
|
61
|
-
} else t2 = $[
|
|
56
|
+
$[5] = t2;
|
|
57
|
+
} else t2 = $[5];
|
|
62
58
|
const t3 = search !== "";
|
|
63
59
|
const t4 = search === "";
|
|
64
60
|
let t5;
|
|
65
|
-
if ($[
|
|
61
|
+
if ($[6] !== t3 || $[7] !== t4) {
|
|
66
62
|
t5 = cn("cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground", {
|
|
67
63
|
visible: t3,
|
|
68
64
|
invisible: t4
|
|
69
65
|
});
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
} else t5 = $[
|
|
66
|
+
$[6] = t3;
|
|
67
|
+
$[7] = t4;
|
|
68
|
+
$[8] = t5;
|
|
69
|
+
} else t5 = $[8];
|
|
74
70
|
let t6;
|
|
75
|
-
if ($[
|
|
71
|
+
if ($[9] !== setSearch) {
|
|
76
72
|
t6 = () => setSearch("");
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
79
|
-
} else t6 = $[
|
|
73
|
+
$[9] = setSearch;
|
|
74
|
+
$[10] = t6;
|
|
75
|
+
} else t6 = $[10];
|
|
80
76
|
let t7;
|
|
81
|
-
if ($[
|
|
77
|
+
if ($[11] !== t5 || $[12] !== t6) {
|
|
82
78
|
t7 = /* @__PURE__ */ jsx(X, {
|
|
83
79
|
className: t5,
|
|
84
80
|
onClick: t6
|
|
85
81
|
});
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
89
|
-
} else t7 = $[
|
|
82
|
+
$[11] = t5;
|
|
83
|
+
$[12] = t6;
|
|
84
|
+
$[13] = t7;
|
|
85
|
+
} else t7 = $[13];
|
|
90
86
|
let t8;
|
|
91
|
-
if ($[
|
|
87
|
+
if ($[14] !== t1 || $[15] !== t7) {
|
|
92
88
|
t8 = /* @__PURE__ */ jsxs("div", {
|
|
93
89
|
className: "flex-1 relative",
|
|
94
90
|
children: [
|
|
@@ -97,37 +93,37 @@ const SearchBar = memo(() => {
|
|
|
97
93
|
t7
|
|
98
94
|
]
|
|
99
95
|
});
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
} else t8 = $[
|
|
96
|
+
$[14] = t1;
|
|
97
|
+
$[15] = t7;
|
|
98
|
+
$[16] = t8;
|
|
99
|
+
} else t8 = $[16];
|
|
104
100
|
let t9;
|
|
105
|
-
if ($[
|
|
101
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
106
102
|
t9 = /* @__PURE__ */ jsx(Trash, {});
|
|
107
|
-
$[
|
|
108
|
-
} else t9 = $[
|
|
103
|
+
$[17] = t9;
|
|
104
|
+
} else t9 = $[17];
|
|
109
105
|
let t10;
|
|
110
|
-
if ($[
|
|
106
|
+
if ($[18] !== clearTraces) {
|
|
111
107
|
t10 = /* @__PURE__ */ jsxs(Button, {
|
|
112
108
|
variant: "default",
|
|
113
109
|
onClick: clearTraces,
|
|
114
110
|
className: "h-[34px]",
|
|
115
111
|
children: [t9, " Clear"]
|
|
116
112
|
});
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
} else t10 = $[
|
|
113
|
+
$[18] = clearTraces;
|
|
114
|
+
$[19] = t10;
|
|
115
|
+
} else t10 = $[19];
|
|
120
116
|
let t11;
|
|
121
|
-
if ($[
|
|
117
|
+
if ($[20] !== t10 || $[21] !== t8) {
|
|
122
118
|
t11 = /* @__PURE__ */ jsxs("div", {
|
|
123
119
|
className: "flex p-2 border-b gap-2",
|
|
124
120
|
"data-testid": "logs-search-container",
|
|
125
121
|
children: [t8, t10]
|
|
126
122
|
});
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
} else t11 = $[
|
|
123
|
+
$[20] = t10;
|
|
124
|
+
$[21] = t8;
|
|
125
|
+
$[22] = t11;
|
|
126
|
+
} else t11 = $[22];
|
|
131
127
|
return t11;
|
|
132
128
|
});
|
|
133
129
|
SearchBar.displayName = "SearchBar";
|
|
@@ -144,20 +140,16 @@ function _temp3$1(state_1) {
|
|
|
144
140
|
//#endregion
|
|
145
141
|
//#region src/components/trace-empty-state.tsx
|
|
146
142
|
const TraceEmptyState = memo(() => {
|
|
147
|
-
const $ = c(
|
|
148
|
-
if ($[0] !== "2108089e2c746ed0862d68dda608395c37fa47e1141188e212f129d7d9fe3d12") {
|
|
149
|
-
for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
150
|
-
$[0] = "2108089e2c746ed0862d68dda608395c37fa47e1141188e212f129d7d9fe3d12";
|
|
151
|
-
}
|
|
143
|
+
const $ = c(1);
|
|
152
144
|
if (useObservabilityStore(_temp$5)) return null;
|
|
153
145
|
let t0;
|
|
154
|
-
if ($[
|
|
146
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
155
147
|
t0 = /* @__PURE__ */ jsx("div", {
|
|
156
148
|
className: "flex items-center justify-center h-full text-muted-foreground text-center",
|
|
157
149
|
children: "Select a trace or trace group to view the timeline"
|
|
158
150
|
});
|
|
159
|
-
$[
|
|
160
|
-
} else t0 = $[
|
|
151
|
+
$[0] = t0;
|
|
152
|
+
} else t0 = $[0];
|
|
161
153
|
return t0;
|
|
162
154
|
});
|
|
163
155
|
TraceEmptyState.displayName = "TraceEmptyState";
|
|
@@ -168,23 +160,19 @@ function _temp$5(state) {
|
|
|
168
160
|
//#endregion
|
|
169
161
|
//#region src/hooks/use-get-endtime.ts
|
|
170
162
|
const useGetEndTime = (group) => {
|
|
171
|
-
const $ = c(
|
|
172
|
-
if ($[0] !== "f07b1721656d8064013e11ff58f0cb63e38b74f1034170d677e517b5cd2fc048") {
|
|
173
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
174
|
-
$[0] = "f07b1721656d8064013e11ff58f0cb63e38b74f1034170d677e517b5cd2fc048";
|
|
175
|
-
}
|
|
163
|
+
const $ = c(5);
|
|
176
164
|
const groupEndTime = group?.endTime;
|
|
177
165
|
let t0;
|
|
178
|
-
if ($[
|
|
166
|
+
if ($[0] !== groupEndTime) {
|
|
179
167
|
t0 = () => groupEndTime || Date.now();
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
} else t0 = $[
|
|
168
|
+
$[0] = groupEndTime;
|
|
169
|
+
$[1] = t0;
|
|
170
|
+
} else t0 = $[1];
|
|
183
171
|
const [endTime, setEndTime] = useState(t0);
|
|
184
172
|
const intervalRef = useRef(null);
|
|
185
173
|
let t1;
|
|
186
174
|
let t2;
|
|
187
|
-
if ($[
|
|
175
|
+
if ($[2] !== groupEndTime) {
|
|
188
176
|
t1 = () => {
|
|
189
177
|
if (intervalRef.current) {
|
|
190
178
|
clearInterval(intervalRef.current);
|
|
@@ -200,12 +188,12 @@ const useGetEndTime = (group) => {
|
|
|
200
188
|
};
|
|
201
189
|
};
|
|
202
190
|
t2 = [groupEndTime];
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
191
|
+
$[2] = groupEndTime;
|
|
192
|
+
$[3] = t1;
|
|
193
|
+
$[4] = t2;
|
|
206
194
|
} else {
|
|
207
|
-
t1 = $[
|
|
208
|
-
t2 = $[
|
|
195
|
+
t1 = $[3];
|
|
196
|
+
t2 = $[4];
|
|
209
197
|
}
|
|
210
198
|
useEffect(t1, t2);
|
|
211
199
|
return endTime;
|
|
@@ -229,54 +217,53 @@ const GRADIENT_CLASSES = {
|
|
|
229
217
|
failed: "bg-[repeating-linear-gradient(140deg,#EA2069,#EA2069_8px,#D41E60_8px,#D41E60_16px)]"
|
|
230
218
|
};
|
|
231
219
|
const TraceItem = memo((t0) => {
|
|
232
|
-
const $ = c(
|
|
233
|
-
if ($[0] !== "952e7174b83bc4e7dec667dee4cba5810aa0a20275799c498e0cb7a07565d2f1") {
|
|
234
|
-
for (let $i = 0; $i < 18; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
235
|
-
$[0] = "952e7174b83bc4e7dec667dee4cba5810aa0a20275799c498e0cb7a07565d2f1";
|
|
236
|
-
}
|
|
220
|
+
const $ = c(17);
|
|
237
221
|
const { traceId, traceName, traceStatus, traceStartTime, traceEndTime, groupStartTime, groupEndTime, onExpand } = t0;
|
|
238
222
|
let t1;
|
|
239
|
-
if ($[
|
|
223
|
+
if ($[0] !== onExpand || $[1] !== traceId) {
|
|
240
224
|
t1 = () => {
|
|
241
225
|
onExpand(traceId);
|
|
242
226
|
};
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
} else t1 = $[
|
|
227
|
+
$[0] = onExpand;
|
|
228
|
+
$[1] = traceId;
|
|
229
|
+
$[2] = t1;
|
|
230
|
+
} else t1 = $[2];
|
|
247
231
|
const handleClick = t1;
|
|
248
232
|
const t2 = GRADIENT_CLASSES[traceStatus];
|
|
249
233
|
let t3;
|
|
250
|
-
if ($[
|
|
234
|
+
if ($[3] !== t2) {
|
|
251
235
|
t3 = cn("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200", t2);
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
} else t3 = $[
|
|
236
|
+
$[3] = t2;
|
|
237
|
+
$[4] = t3;
|
|
238
|
+
} else t3 = $[4];
|
|
255
239
|
const barClassName = t3;
|
|
256
240
|
const t4 = `${(traceStartTime - groupStartTime) / (groupEndTime - groupStartTime) * 100}%`;
|
|
257
241
|
const t5 = traceEndTime ? `${(traceEndTime - traceStartTime) / (groupEndTime - groupStartTime) * 100}%` : `${(Date.now() - traceStartTime) / (groupEndTime - groupStartTime) * 100}%`;
|
|
258
242
|
let t6;
|
|
259
|
-
if ($[
|
|
243
|
+
if ($[5] !== t4 || $[6] !== t5) {
|
|
260
244
|
t6 = {
|
|
261
245
|
marginLeft: t4,
|
|
262
246
|
width: t5
|
|
263
247
|
};
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
} else t6 = $[
|
|
248
|
+
$[5] = t4;
|
|
249
|
+
$[6] = t5;
|
|
250
|
+
$[7] = t6;
|
|
251
|
+
} else t6 = $[7];
|
|
268
252
|
const barStyle = t6;
|
|
269
253
|
let t7;
|
|
270
|
-
if ($[
|
|
254
|
+
if ($[8] !== traceName) {
|
|
271
255
|
t7 = /* @__PURE__ */ jsx("div", {
|
|
272
|
-
className: "flex items-center min-w-[200px] max-w-[200px] h-[32px] max-h-[32px] py-4 px-2 text-sm font-semibold text-foreground
|
|
273
|
-
children:
|
|
256
|
+
className: "flex items-center min-w-[200px] max-w-[200px] h-[32px] max-h-[32px] py-4 px-2 text-sm font-semibold text-foreground sticky left-0 bg-card z-9",
|
|
257
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
258
|
+
className: "truncate min-w-0",
|
|
259
|
+
children: traceName
|
|
260
|
+
})
|
|
274
261
|
});
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
} else t7 = $[
|
|
262
|
+
$[8] = traceName;
|
|
263
|
+
$[9] = t7;
|
|
264
|
+
} else t7 = $[9];
|
|
278
265
|
let t8;
|
|
279
|
-
if ($[
|
|
266
|
+
if ($[10] !== barClassName || $[11] !== barStyle) {
|
|
280
267
|
t8 = /* @__PURE__ */ jsx("div", {
|
|
281
268
|
className: "flex w-full flex-row items-center hover:bg-muted/50 rounded-md",
|
|
282
269
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -287,23 +274,23 @@ const TraceItem = memo((t0) => {
|
|
|
287
274
|
})
|
|
288
275
|
})
|
|
289
276
|
});
|
|
290
|
-
$[
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
} else t8 = $[
|
|
277
|
+
$[10] = barClassName;
|
|
278
|
+
$[11] = barStyle;
|
|
279
|
+
$[12] = t8;
|
|
280
|
+
} else t8 = $[12];
|
|
294
281
|
let t9;
|
|
295
|
-
if ($[
|
|
282
|
+
if ($[13] !== handleClick || $[14] !== t7 || $[15] !== t8) {
|
|
296
283
|
t9 = /* @__PURE__ */ jsxs("div", {
|
|
297
284
|
className: "flex hover:bg-muted-foreground/10 relative cursor-pointer",
|
|
298
285
|
onClick: handleClick,
|
|
299
286
|
"data-testid": "trace-timeline-item",
|
|
300
287
|
children: [t7, t8]
|
|
301
288
|
});
|
|
302
|
-
$[
|
|
303
|
-
$[
|
|
304
|
-
$[
|
|
305
|
-
$[
|
|
306
|
-
} else t9 = $[
|
|
289
|
+
$[13] = handleClick;
|
|
290
|
+
$[14] = t7;
|
|
291
|
+
$[15] = t8;
|
|
292
|
+
$[16] = t9;
|
|
293
|
+
} else t9 = $[16];
|
|
307
294
|
return t9;
|
|
308
295
|
});
|
|
309
296
|
TraceItem.displayName = "TraceItem";
|
|
@@ -311,39 +298,35 @@ TraceItem.displayName = "TraceItem";
|
|
|
311
298
|
//#endregion
|
|
312
299
|
//#region src/components/events/event-icon.tsx
|
|
313
300
|
const EventIcon = (t0) => {
|
|
314
|
-
const $ = c(
|
|
315
|
-
if ($[0] !== "a1e6111b39d1930b766ba2ebca3959949a34edb0ba32f492db6cf8ba92b7256a") {
|
|
316
|
-
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
317
|
-
$[0] = "a1e6111b39d1930b766ba2ebca3959949a34edb0ba32f492db6cf8ba92b7256a";
|
|
318
|
-
}
|
|
301
|
+
const $ = c(4);
|
|
319
302
|
const { event } = t0;
|
|
320
303
|
if (event.type === "log") {
|
|
321
304
|
let t1;
|
|
322
|
-
if ($[
|
|
305
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
323
306
|
t1 = /* @__PURE__ */ jsx(ScrollText, { className: "w-4 h-4 text-muted-foreground" });
|
|
324
|
-
$[
|
|
325
|
-
} else t1 = $[
|
|
307
|
+
$[0] = t1;
|
|
308
|
+
} else t1 = $[0];
|
|
326
309
|
return t1;
|
|
327
310
|
} else if (event.type === "emit") {
|
|
328
311
|
let t1;
|
|
329
|
-
if ($[
|
|
312
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
330
313
|
t1 = /* @__PURE__ */ jsx(MessageCircle, { className: "w-4 h-4 text-muted-foreground" });
|
|
331
|
-
$[
|
|
332
|
-
} else t1 = $[
|
|
314
|
+
$[1] = t1;
|
|
315
|
+
} else t1 = $[1];
|
|
333
316
|
return t1;
|
|
334
317
|
} else if (event.type === "state") {
|
|
335
318
|
let t1;
|
|
336
|
-
if ($[
|
|
319
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
337
320
|
t1 = /* @__PURE__ */ jsx(Package, { className: "w-4 h-4 text-muted-foreground" });
|
|
338
|
-
$[
|
|
339
|
-
} else t1 = $[
|
|
321
|
+
$[2] = t1;
|
|
322
|
+
} else t1 = $[2];
|
|
340
323
|
return t1;
|
|
341
324
|
} else if (event.type === "stream") {
|
|
342
325
|
let t1;
|
|
343
|
-
if ($[
|
|
326
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
344
327
|
t1 = /* @__PURE__ */ jsx(Radio, { className: "w-4 h-4 text-muted-foreground" });
|
|
345
|
-
$[
|
|
346
|
-
} else t1 = $[
|
|
328
|
+
$[3] = t1;
|
|
329
|
+
} else t1 = $[3];
|
|
347
330
|
return t1;
|
|
348
331
|
}
|
|
349
332
|
};
|
|
@@ -351,15 +334,11 @@ const EventIcon = (t0) => {
|
|
|
351
334
|
//#endregion
|
|
352
335
|
//#region src/components/ui/copy-button.tsx
|
|
353
336
|
const CopyButton = (t0) => {
|
|
354
|
-
const $ = c(
|
|
355
|
-
if ($[0] !== "369763ad5970a7e166e1ca288cc760280bc27f103992fd9a47b59d832664d39c") {
|
|
356
|
-
for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
357
|
-
$[0] = "369763ad5970a7e166e1ca288cc760280bc27f103992fd9a47b59d832664d39c";
|
|
358
|
-
}
|
|
337
|
+
const $ = c(11);
|
|
359
338
|
const { textToCopy, className, title } = t0;
|
|
360
339
|
const [copied, setCopied] = useState(false);
|
|
361
340
|
let t1;
|
|
362
|
-
if ($[
|
|
341
|
+
if ($[0] !== textToCopy) {
|
|
363
342
|
t1 = async () => {
|
|
364
343
|
try {
|
|
365
344
|
await navigator.clipboard.writeText(textToCopy);
|
|
@@ -370,25 +349,25 @@ const CopyButton = (t0) => {
|
|
|
370
349
|
console.error("Failed to copy:", error);
|
|
371
350
|
}
|
|
372
351
|
};
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
} else t1 = $[
|
|
352
|
+
$[0] = textToCopy;
|
|
353
|
+
$[1] = t1;
|
|
354
|
+
} else t1 = $[1];
|
|
376
355
|
const handleCopy = t1;
|
|
377
356
|
let t2;
|
|
378
|
-
if ($[
|
|
357
|
+
if ($[2] !== className) {
|
|
379
358
|
t2 = cn("cursor-pointer p-3 rounded-full", className);
|
|
380
|
-
$[
|
|
381
|
-
$[
|
|
382
|
-
} else t2 = $[
|
|
359
|
+
$[2] = className;
|
|
360
|
+
$[3] = t2;
|
|
361
|
+
} else t2 = $[3];
|
|
383
362
|
const t3 = title ?? (copied ? "Copied!" : "Copy");
|
|
384
363
|
let t4;
|
|
385
|
-
if ($[
|
|
364
|
+
if ($[4] !== copied) {
|
|
386
365
|
t4 = copied ? /* @__PURE__ */ jsx(Check, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ jsx(Copy, { className: "w-4 h-4 text-gray-400" });
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
} else t4 = $[
|
|
366
|
+
$[4] = copied;
|
|
367
|
+
$[5] = t4;
|
|
368
|
+
} else t4 = $[5];
|
|
390
369
|
let t5;
|
|
391
|
-
if ($[
|
|
370
|
+
if ($[6] !== handleCopy || $[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
|
|
392
371
|
t5 = /* @__PURE__ */ jsx(Button, {
|
|
393
372
|
variant: "icon",
|
|
394
373
|
size: "icon",
|
|
@@ -397,96 +376,84 @@ const CopyButton = (t0) => {
|
|
|
397
376
|
title: t3,
|
|
398
377
|
children: t4
|
|
399
378
|
});
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
} else t5 = $[
|
|
379
|
+
$[6] = handleCopy;
|
|
380
|
+
$[7] = t2;
|
|
381
|
+
$[8] = t3;
|
|
382
|
+
$[9] = t4;
|
|
383
|
+
$[10] = t5;
|
|
384
|
+
} else t5 = $[10];
|
|
406
385
|
return t5;
|
|
407
386
|
};
|
|
408
387
|
|
|
409
388
|
//#endregion
|
|
410
389
|
//#region src/components/ui/popover.tsx
|
|
411
390
|
const Popover = (t0) => {
|
|
412
|
-
const $ = c(
|
|
413
|
-
if ($[0] !== "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b") {
|
|
414
|
-
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
415
|
-
$[0] = "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b";
|
|
416
|
-
}
|
|
391
|
+
const $ = c(4);
|
|
417
392
|
let props;
|
|
418
|
-
if ($[
|
|
393
|
+
if ($[0] !== t0) {
|
|
419
394
|
({...props} = t0);
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
} else props = $[
|
|
395
|
+
$[0] = t0;
|
|
396
|
+
$[1] = props;
|
|
397
|
+
} else props = $[1];
|
|
423
398
|
let t1;
|
|
424
|
-
if ($[
|
|
399
|
+
if ($[2] !== props) {
|
|
425
400
|
t1 = /* @__PURE__ */ jsx(PopoverPrimitive.Root, {
|
|
426
401
|
"data-slot": "popover",
|
|
427
402
|
...props
|
|
428
403
|
});
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
} else t1 = $[
|
|
404
|
+
$[2] = props;
|
|
405
|
+
$[3] = t1;
|
|
406
|
+
} else t1 = $[3];
|
|
432
407
|
return t1;
|
|
433
408
|
};
|
|
434
409
|
const PopoverTrigger = (t0) => {
|
|
435
|
-
const $ = c(
|
|
436
|
-
if ($[0] !== "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b") {
|
|
437
|
-
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
438
|
-
$[0] = "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b";
|
|
439
|
-
}
|
|
410
|
+
const $ = c(4);
|
|
440
411
|
let props;
|
|
441
|
-
if ($[
|
|
412
|
+
if ($[0] !== t0) {
|
|
442
413
|
({...props} = t0);
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
} else props = $[
|
|
414
|
+
$[0] = t0;
|
|
415
|
+
$[1] = props;
|
|
416
|
+
} else props = $[1];
|
|
446
417
|
let t1;
|
|
447
|
-
if ($[
|
|
418
|
+
if ($[2] !== props) {
|
|
448
419
|
t1 = /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, {
|
|
449
420
|
"data-slot": "popover-trigger",
|
|
450
421
|
...props
|
|
451
422
|
});
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
} else t1 = $[
|
|
423
|
+
$[2] = props;
|
|
424
|
+
$[3] = t1;
|
|
425
|
+
} else t1 = $[3];
|
|
455
426
|
return t1;
|
|
456
427
|
};
|
|
457
428
|
const PopoverContent = (t0) => {
|
|
458
|
-
const $ = c(
|
|
459
|
-
if ($[0] !== "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b") {
|
|
460
|
-
for (let $i = 0; $i < 13; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
461
|
-
$[0] = "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b";
|
|
462
|
-
}
|
|
429
|
+
const $ = c(12);
|
|
463
430
|
let className;
|
|
464
431
|
let props;
|
|
465
432
|
let t1;
|
|
466
433
|
let t2;
|
|
467
|
-
if ($[
|
|
434
|
+
if ($[0] !== t0) {
|
|
468
435
|
({className, align: t1, sideOffset: t2, ...props} = t0);
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
436
|
+
$[0] = t0;
|
|
437
|
+
$[1] = className;
|
|
438
|
+
$[2] = props;
|
|
439
|
+
$[3] = t1;
|
|
440
|
+
$[4] = t2;
|
|
474
441
|
} else {
|
|
475
|
-
className = $[
|
|
476
|
-
props = $[
|
|
477
|
-
t1 = $[
|
|
478
|
-
t2 = $[
|
|
442
|
+
className = $[1];
|
|
443
|
+
props = $[2];
|
|
444
|
+
t1 = $[3];
|
|
445
|
+
t2 = $[4];
|
|
479
446
|
}
|
|
480
447
|
const align = t1 === void 0 ? "center" : t1;
|
|
481
448
|
const sideOffset = t2 === void 0 ? 4 : t2;
|
|
482
449
|
let t3;
|
|
483
|
-
if ($[
|
|
450
|
+
if ($[5] !== className) {
|
|
484
451
|
t3 = cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className);
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
} else t3 = $[
|
|
452
|
+
$[5] = className;
|
|
453
|
+
$[6] = t3;
|
|
454
|
+
} else t3 = $[6];
|
|
488
455
|
let t4;
|
|
489
|
-
if ($[
|
|
456
|
+
if ($[7] !== align || $[8] !== props || $[9] !== sideOffset || $[10] !== t3) {
|
|
490
457
|
t4 = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
|
|
491
458
|
"data-slot": "popover-content",
|
|
492
459
|
align,
|
|
@@ -494,12 +461,12 @@ const PopoverContent = (t0) => {
|
|
|
494
461
|
className: t3,
|
|
495
462
|
...props
|
|
496
463
|
}) });
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
} else t4 = $[
|
|
464
|
+
$[7] = align;
|
|
465
|
+
$[8] = props;
|
|
466
|
+
$[9] = sideOffset;
|
|
467
|
+
$[10] = t3;
|
|
468
|
+
$[11] = t4;
|
|
469
|
+
} else t4 = $[11];
|
|
503
470
|
return t4;
|
|
504
471
|
};
|
|
505
472
|
|
|
@@ -514,31 +481,27 @@ const formatArgumentValue = (arg) => {
|
|
|
514
481
|
//#endregion
|
|
515
482
|
//#region src/components/events/code/argument.tsx
|
|
516
483
|
const Argument = memo((t0) => {
|
|
517
|
-
const $ = c(
|
|
518
|
-
if ($[0] !== "c9966227012cab85e29278e1c8a710fd408ed34dfcad88a24d905811c73e1f19") {
|
|
519
|
-
for (let $i = 0; $i < 19; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
520
|
-
$[0] = "c9966227012cab85e29278e1c8a710fd408ed34dfcad88a24d905811c73e1f19";
|
|
521
|
-
}
|
|
484
|
+
const $ = c(18);
|
|
522
485
|
const { arg, popover: t1 } = t0;
|
|
523
486
|
const popover = t1 === void 0 ? true : t1;
|
|
524
487
|
const isObject = typeof arg === "object" && arg !== null;
|
|
525
488
|
let t2;
|
|
526
|
-
if ($[
|
|
489
|
+
if ($[0] !== arg) {
|
|
527
490
|
t2 = formatArgumentValue(arg);
|
|
528
|
-
$[
|
|
529
|
-
$[
|
|
530
|
-
} else t2 = $[
|
|
491
|
+
$[0] = arg;
|
|
492
|
+
$[1] = t2;
|
|
493
|
+
} else t2 = $[1];
|
|
531
494
|
const value = t2;
|
|
532
495
|
let t3;
|
|
533
|
-
if ($[
|
|
496
|
+
if ($[2] !== arg) {
|
|
534
497
|
t3 = JSON.stringify(arg, null, 2);
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
537
|
-
} else t3 = $[
|
|
498
|
+
$[2] = arg;
|
|
499
|
+
$[3] = t3;
|
|
500
|
+
} else t3 = $[3];
|
|
538
501
|
const textToCopy = t3;
|
|
539
502
|
if (!popover) {
|
|
540
503
|
let t4$1;
|
|
541
|
-
if ($[
|
|
504
|
+
if ($[4] !== arg || $[5] !== isObject || $[6] !== value) {
|
|
542
505
|
t4$1 = /* @__PURE__ */ jsx(Fragment$1, { children: isObject ? /* @__PURE__ */ jsx(ReactJson, {
|
|
543
506
|
src: arg,
|
|
544
507
|
theme: "default",
|
|
@@ -548,15 +511,15 @@ const Argument = memo((t0) => {
|
|
|
548
511
|
className: "font-mono text-blue-500",
|
|
549
512
|
children: value
|
|
550
513
|
}) });
|
|
551
|
-
$[
|
|
552
|
-
$[
|
|
553
|
-
$[
|
|
554
|
-
$[
|
|
555
|
-
} else t4$1 = $[
|
|
514
|
+
$[4] = arg;
|
|
515
|
+
$[5] = isObject;
|
|
516
|
+
$[6] = value;
|
|
517
|
+
$[7] = t4$1;
|
|
518
|
+
} else t4$1 = $[7];
|
|
556
519
|
return t4$1;
|
|
557
520
|
}
|
|
558
521
|
let t4;
|
|
559
|
-
if ($[
|
|
522
|
+
if ($[8] !== value) {
|
|
560
523
|
t4 = /* @__PURE__ */ jsx(PopoverTrigger, {
|
|
561
524
|
asChild: true,
|
|
562
525
|
children: /* @__PURE__ */ jsx("span", {
|
|
@@ -564,11 +527,11 @@ const Argument = memo((t0) => {
|
|
|
564
527
|
children: value
|
|
565
528
|
})
|
|
566
529
|
});
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
} else t4 = $[
|
|
530
|
+
$[8] = value;
|
|
531
|
+
$[9] = t4;
|
|
532
|
+
} else t4 = $[9];
|
|
570
533
|
let t5;
|
|
571
|
-
if ($[
|
|
534
|
+
if ($[10] !== arg || $[11] !== isObject || $[12] !== textToCopy || $[13] !== value) {
|
|
572
535
|
t5 = /* @__PURE__ */ jsx(PopoverContent, {
|
|
573
536
|
className: "backdrop-blur-md w-auto max-w-2xl relative max-h-[50vh] overflow-y-auto",
|
|
574
537
|
hideWhenDetached: true,
|
|
@@ -590,19 +553,19 @@ const Argument = memo((t0) => {
|
|
|
590
553
|
})]
|
|
591
554
|
})
|
|
592
555
|
});
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
595
|
-
$[
|
|
596
|
-
$[
|
|
597
|
-
$[
|
|
598
|
-
} else t5 = $[
|
|
556
|
+
$[10] = arg;
|
|
557
|
+
$[11] = isObject;
|
|
558
|
+
$[12] = textToCopy;
|
|
559
|
+
$[13] = value;
|
|
560
|
+
$[14] = t5;
|
|
561
|
+
} else t5 = $[14];
|
|
599
562
|
let t6;
|
|
600
|
-
if ($[
|
|
563
|
+
if ($[15] !== t4 || $[16] !== t5) {
|
|
601
564
|
t6 = /* @__PURE__ */ jsxs(Popover, { children: [t4, t5] });
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
605
|
-
} else t6 = $[
|
|
565
|
+
$[15] = t4;
|
|
566
|
+
$[16] = t5;
|
|
567
|
+
$[17] = t6;
|
|
568
|
+
} else t6 = $[17];
|
|
606
569
|
return t6;
|
|
607
570
|
});
|
|
608
571
|
Argument.displayName = "Argument";
|
|
@@ -610,42 +573,38 @@ Argument.displayName = "Argument";
|
|
|
610
573
|
//#endregion
|
|
611
574
|
//#region src/components/events/code/closing-parenthesis.tsx
|
|
612
575
|
const ClosingParenthesis = memo((t0) => {
|
|
613
|
-
const $ = c(
|
|
614
|
-
if ($[0] !== "4ab03367b18a84c2b46e40ed2eb5f7059f595a509137274a6e998e2052c417ca") {
|
|
615
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
616
|
-
$[0] = "4ab03367b18a84c2b46e40ed2eb5f7059f595a509137274a6e998e2052c417ca";
|
|
617
|
-
}
|
|
576
|
+
const $ = c(7);
|
|
618
577
|
const { callsQuantity, noQuantity: t1 } = t0;
|
|
619
578
|
const noQuantity = t1 === void 0 ? false : t1;
|
|
620
579
|
const hasCalls = callsQuantity && callsQuantity > 1;
|
|
621
580
|
let t2;
|
|
622
|
-
if ($[
|
|
581
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
623
582
|
t2 = /* @__PURE__ */ jsx("span", {
|
|
624
583
|
className: "font-mono text-emerald-500",
|
|
625
584
|
children: ")"
|
|
626
585
|
});
|
|
627
|
-
$[
|
|
628
|
-
} else t2 = $[
|
|
586
|
+
$[0] = t2;
|
|
587
|
+
} else t2 = $[0];
|
|
629
588
|
let t3;
|
|
630
|
-
if ($[
|
|
589
|
+
if ($[1] !== callsQuantity || $[2] !== hasCalls || $[3] !== noQuantity) {
|
|
631
590
|
t3 = !noQuantity && hasCalls && /* @__PURE__ */ jsxs("span", {
|
|
632
591
|
className: "font-mono text-muted-foreground",
|
|
633
592
|
children: [" x", callsQuantity]
|
|
634
593
|
});
|
|
635
|
-
$[
|
|
636
|
-
$[
|
|
637
|
-
$[
|
|
638
|
-
$[
|
|
639
|
-
} else t3 = $[
|
|
594
|
+
$[1] = callsQuantity;
|
|
595
|
+
$[2] = hasCalls;
|
|
596
|
+
$[3] = noQuantity;
|
|
597
|
+
$[4] = t3;
|
|
598
|
+
} else t3 = $[4];
|
|
640
599
|
let t4;
|
|
641
|
-
if ($[
|
|
600
|
+
if ($[5] !== t3) {
|
|
642
601
|
t4 = /* @__PURE__ */ jsxs("div", {
|
|
643
602
|
className: "flex items-center",
|
|
644
603
|
children: [t2, t3]
|
|
645
604
|
});
|
|
646
|
-
$[
|
|
647
|
-
$[
|
|
648
|
-
} else t4 = $[
|
|
605
|
+
$[5] = t3;
|
|
606
|
+
$[6] = t4;
|
|
607
|
+
} else t4 = $[6];
|
|
649
608
|
return t4;
|
|
650
609
|
});
|
|
651
610
|
ClosingParenthesis.displayName = "ClosingParenthesis";
|
|
@@ -653,74 +612,70 @@ ClosingParenthesis.displayName = "ClosingParenthesis";
|
|
|
653
612
|
//#endregion
|
|
654
613
|
//#region src/components/events/code/function-call-content.tsx
|
|
655
614
|
const FunctionCallContent = forwardRef((t0, ref) => {
|
|
656
|
-
const $ = c(
|
|
657
|
-
if ($[0] !== "f9cee2defe3a707d028f8a516d115937e9c066312490fa54845af3b1f275f18b") {
|
|
658
|
-
for (let $i = 0; $i < 23; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
659
|
-
$[0] = "f9cee2defe3a707d028f8a516d115937e9c066312490fa54845af3b1f275f18b";
|
|
660
|
-
}
|
|
615
|
+
const $ = c(22);
|
|
661
616
|
let className;
|
|
662
617
|
let functionName;
|
|
663
618
|
let objectName;
|
|
664
619
|
let props;
|
|
665
620
|
let topLevelClassName;
|
|
666
|
-
if ($[
|
|
621
|
+
if ($[0] !== t0) {
|
|
667
622
|
({topLevelClassName, objectName, functionName, className, ...props} = t0);
|
|
668
|
-
$[
|
|
669
|
-
$[
|
|
670
|
-
$[
|
|
671
|
-
$[
|
|
672
|
-
$[
|
|
673
|
-
$[
|
|
623
|
+
$[0] = t0;
|
|
624
|
+
$[1] = className;
|
|
625
|
+
$[2] = functionName;
|
|
626
|
+
$[3] = objectName;
|
|
627
|
+
$[4] = props;
|
|
628
|
+
$[5] = topLevelClassName;
|
|
674
629
|
} else {
|
|
675
|
-
className = $[
|
|
676
|
-
functionName = $[
|
|
677
|
-
objectName = $[
|
|
678
|
-
props = $[
|
|
679
|
-
topLevelClassName = $[
|
|
630
|
+
className = $[1];
|
|
631
|
+
functionName = $[2];
|
|
632
|
+
objectName = $[3];
|
|
633
|
+
props = $[4];
|
|
634
|
+
topLevelClassName = $[5];
|
|
680
635
|
}
|
|
681
636
|
let t1;
|
|
682
|
-
if ($[
|
|
637
|
+
if ($[6] !== className) {
|
|
683
638
|
t1 = cn("flex items-center", className);
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
686
|
-
} else t1 = $[
|
|
639
|
+
$[6] = className;
|
|
640
|
+
$[7] = t1;
|
|
641
|
+
} else t1 = $[7];
|
|
687
642
|
let t2;
|
|
688
|
-
if ($[
|
|
643
|
+
if ($[8] !== topLevelClassName) {
|
|
689
644
|
t2 = topLevelClassName && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
690
645
|
className: "font-mono text-pink-500",
|
|
691
646
|
children: topLevelClassName
|
|
692
647
|
}), /* @__PURE__ */ jsx("span", { children: "." })] });
|
|
693
|
-
$[
|
|
694
|
-
$[
|
|
695
|
-
} else t2 = $[
|
|
648
|
+
$[8] = topLevelClassName;
|
|
649
|
+
$[9] = t2;
|
|
650
|
+
} else t2 = $[9];
|
|
696
651
|
let t3;
|
|
697
|
-
if ($[
|
|
652
|
+
if ($[10] !== objectName) {
|
|
698
653
|
t3 = objectName && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
699
654
|
className: "font-mono text-pink-500",
|
|
700
655
|
children: objectName
|
|
701
656
|
}), /* @__PURE__ */ jsx("span", { children: "." })] });
|
|
702
|
-
$[
|
|
703
|
-
$[
|
|
704
|
-
} else t3 = $[
|
|
657
|
+
$[10] = objectName;
|
|
658
|
+
$[11] = t3;
|
|
659
|
+
} else t3 = $[11];
|
|
705
660
|
let t4;
|
|
706
|
-
if ($[
|
|
661
|
+
if ($[12] !== functionName) {
|
|
707
662
|
t4 = /* @__PURE__ */ jsx("span", {
|
|
708
663
|
className: "font-mono text-pink-500",
|
|
709
664
|
children: functionName
|
|
710
665
|
});
|
|
711
|
-
$[
|
|
712
|
-
$[
|
|
713
|
-
} else t4 = $[
|
|
666
|
+
$[12] = functionName;
|
|
667
|
+
$[13] = t4;
|
|
668
|
+
} else t4 = $[13];
|
|
714
669
|
let t5;
|
|
715
|
-
if ($[
|
|
670
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
716
671
|
t5 = /* @__PURE__ */ jsx("span", {
|
|
717
672
|
className: "font-mono text-emerald-500",
|
|
718
673
|
children: "("
|
|
719
674
|
});
|
|
720
|
-
$[
|
|
721
|
-
} else t5 = $[
|
|
675
|
+
$[14] = t5;
|
|
676
|
+
} else t5 = $[14];
|
|
722
677
|
let t6;
|
|
723
|
-
if ($[
|
|
678
|
+
if ($[15] !== props || $[16] !== ref || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4) {
|
|
724
679
|
t6 = /* @__PURE__ */ jsxs("div", {
|
|
725
680
|
ref,
|
|
726
681
|
className: t1,
|
|
@@ -732,14 +687,14 @@ const FunctionCallContent = forwardRef((t0, ref) => {
|
|
|
732
687
|
t5
|
|
733
688
|
]
|
|
734
689
|
});
|
|
735
|
-
$[
|
|
736
|
-
$[
|
|
737
|
-
$[
|
|
738
|
-
$[
|
|
739
|
-
$[
|
|
740
|
-
$[
|
|
741
|
-
$[
|
|
742
|
-
} else t6 = $[
|
|
690
|
+
$[15] = props;
|
|
691
|
+
$[16] = ref;
|
|
692
|
+
$[17] = t1;
|
|
693
|
+
$[18] = t2;
|
|
694
|
+
$[19] = t3;
|
|
695
|
+
$[20] = t4;
|
|
696
|
+
$[21] = t6;
|
|
697
|
+
} else t6 = $[21];
|
|
743
698
|
return t6;
|
|
744
699
|
});
|
|
745
700
|
FunctionCallContent.displayName = "FunctionCallContent";
|
|
@@ -748,45 +703,41 @@ FunctionCallContent.displayName = "FunctionCallContent";
|
|
|
748
703
|
//#region src/components/events/code/function-call.tsx
|
|
749
704
|
const GRID_LAYOUT_STYLE = { gridTemplateColumns: "max-content 1fr max-content" };
|
|
750
705
|
const FunctionCall = memo((t0) => {
|
|
751
|
-
const $ = c(
|
|
752
|
-
if ($[0] !== "a4649595a9d35de28471f3275d991c694dbeccd05d971cc25fd0884247e778d1") {
|
|
753
|
-
for (let $i = 0; $i < 49; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
754
|
-
$[0] = "a4649595a9d35de28471f3275d991c694dbeccd05d971cc25fd0884247e778d1";
|
|
755
|
-
}
|
|
706
|
+
const $ = c(48);
|
|
756
707
|
const { topLevelClassName, objectName, functionName, args, callsQuantity } = t0;
|
|
757
708
|
let t1;
|
|
758
|
-
if ($[
|
|
709
|
+
if ($[0] !== args) {
|
|
759
710
|
t1 = args.filter(_temp$4);
|
|
760
|
-
$[
|
|
761
|
-
$[
|
|
762
|
-
} else t1 = $[
|
|
711
|
+
$[0] = args;
|
|
712
|
+
$[1] = t1;
|
|
713
|
+
} else t1 = $[1];
|
|
763
714
|
const filteredArgs = t1;
|
|
764
715
|
const t2 = `repeat(${filteredArgs.length * 2}, minmax(0, auto))`;
|
|
765
716
|
let t3;
|
|
766
|
-
if ($[
|
|
717
|
+
if ($[2] !== t2) {
|
|
767
718
|
t3 = { gridTemplateColumns: t2 };
|
|
768
|
-
$[
|
|
769
|
-
$[
|
|
770
|
-
} else t3 = $[
|
|
719
|
+
$[2] = t2;
|
|
720
|
+
$[3] = t3;
|
|
721
|
+
} else t3 = $[3];
|
|
771
722
|
const argsGridStyle = t3;
|
|
772
723
|
let t4;
|
|
773
|
-
if ($[
|
|
724
|
+
if ($[4] !== objectName || $[5] !== topLevelClassName) {
|
|
774
725
|
t4 = [topLevelClassName, objectName].filter(Boolean);
|
|
775
|
-
$[
|
|
776
|
-
$[
|
|
777
|
-
$[
|
|
778
|
-
} else t4 = $[
|
|
726
|
+
$[4] = objectName;
|
|
727
|
+
$[5] = topLevelClassName;
|
|
728
|
+
$[6] = t4;
|
|
729
|
+
} else t4 = $[6];
|
|
779
730
|
const prefix = t4.join(".");
|
|
780
731
|
const fullPrefix = prefix ? `${prefix}.` : "";
|
|
781
732
|
let t5;
|
|
782
|
-
if ($[
|
|
733
|
+
if ($[7] !== filteredArgs) {
|
|
783
734
|
t5 = filteredArgs.map(_temp2$2).join(", ");
|
|
784
|
-
$[
|
|
785
|
-
$[
|
|
786
|
-
} else t5 = $[
|
|
735
|
+
$[7] = filteredArgs;
|
|
736
|
+
$[8] = t5;
|
|
737
|
+
} else t5 = $[8];
|
|
787
738
|
const functionCallText = `${fullPrefix}${functionName}(${t5})`;
|
|
788
739
|
let t6;
|
|
789
|
-
if ($[
|
|
740
|
+
if ($[9] !== functionName || $[10] !== objectName || $[11] !== topLevelClassName) {
|
|
790
741
|
t6 = /* @__PURE__ */ jsx(PopoverTrigger, {
|
|
791
742
|
asChild: true,
|
|
792
743
|
children: /* @__PURE__ */ jsx(FunctionCallContent, {
|
|
@@ -796,43 +747,43 @@ const FunctionCall = memo((t0) => {
|
|
|
796
747
|
objectName
|
|
797
748
|
})
|
|
798
749
|
});
|
|
799
|
-
$[
|
|
800
|
-
$[
|
|
801
|
-
$[
|
|
802
|
-
$[
|
|
803
|
-
} else t6 = $[
|
|
750
|
+
$[9] = functionName;
|
|
751
|
+
$[10] = objectName;
|
|
752
|
+
$[11] = topLevelClassName;
|
|
753
|
+
$[12] = t6;
|
|
754
|
+
} else t6 = $[12];
|
|
804
755
|
let t7;
|
|
805
|
-
if ($[
|
|
756
|
+
if ($[13] !== functionName || $[14] !== objectName || $[15] !== topLevelClassName) {
|
|
806
757
|
t7 = /* @__PURE__ */ jsx(FunctionCallContent, {
|
|
807
758
|
functionName,
|
|
808
759
|
topLevelClassName,
|
|
809
760
|
objectName
|
|
810
761
|
});
|
|
811
|
-
$[
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
814
|
-
$[
|
|
815
|
-
} else t7 = $[
|
|
762
|
+
$[13] = functionName;
|
|
763
|
+
$[14] = objectName;
|
|
764
|
+
$[15] = topLevelClassName;
|
|
765
|
+
$[16] = t7;
|
|
766
|
+
} else t7 = $[16];
|
|
816
767
|
let t8;
|
|
817
|
-
if ($[
|
|
768
|
+
if ($[17] !== functionCallText) {
|
|
818
769
|
t8 = /* @__PURE__ */ jsx(CopyButton, { textToCopy: functionCallText });
|
|
819
|
-
$[
|
|
820
|
-
$[
|
|
821
|
-
} else t8 = $[
|
|
770
|
+
$[17] = functionCallText;
|
|
771
|
+
$[18] = t8;
|
|
772
|
+
} else t8 = $[18];
|
|
822
773
|
let t9;
|
|
823
|
-
if ($[
|
|
774
|
+
if ($[19] !== t7 || $[20] !== t8) {
|
|
824
775
|
t9 = /* @__PURE__ */ jsxs("div", {
|
|
825
776
|
className: "flex items-center justify-between gap-2",
|
|
826
777
|
children: [t7, t8]
|
|
827
778
|
});
|
|
828
|
-
$[
|
|
829
|
-
$[
|
|
830
|
-
$[
|
|
831
|
-
} else t9 = $[
|
|
779
|
+
$[19] = t7;
|
|
780
|
+
$[20] = t8;
|
|
781
|
+
$[21] = t9;
|
|
782
|
+
} else t9 = $[21];
|
|
832
783
|
let t10;
|
|
833
|
-
if ($[
|
|
784
|
+
if ($[22] !== filteredArgs) {
|
|
834
785
|
let t11$1;
|
|
835
|
-
if ($[
|
|
786
|
+
if ($[24] !== filteredArgs.length) {
|
|
836
787
|
t11$1 = (arg_1, index) => /* @__PURE__ */ jsxs("div", {
|
|
837
788
|
className: "grid grid-cols-[auto_1fr] items-center pl-4",
|
|
838
789
|
children: [/* @__PURE__ */ jsx(Argument, {
|
|
@@ -840,24 +791,24 @@ const FunctionCall = memo((t0) => {
|
|
|
840
791
|
popover: false
|
|
841
792
|
}), index < filteredArgs.length - 1 && /* @__PURE__ */ jsx("span", { children: ", " })]
|
|
842
793
|
}, index);
|
|
843
|
-
$[
|
|
844
|
-
$[
|
|
845
|
-
} else t11$1 = $[
|
|
794
|
+
$[24] = filteredArgs.length;
|
|
795
|
+
$[25] = t11$1;
|
|
796
|
+
} else t11$1 = $[25];
|
|
846
797
|
t10 = filteredArgs.map(t11$1);
|
|
847
|
-
$[
|
|
848
|
-
$[
|
|
849
|
-
} else t10 = $[
|
|
798
|
+
$[22] = filteredArgs;
|
|
799
|
+
$[23] = t10;
|
|
800
|
+
} else t10 = $[23];
|
|
850
801
|
let t11;
|
|
851
|
-
if ($[
|
|
802
|
+
if ($[26] !== callsQuantity) {
|
|
852
803
|
t11 = /* @__PURE__ */ jsx(ClosingParenthesis, {
|
|
853
804
|
callsQuantity,
|
|
854
805
|
noQuantity: true
|
|
855
806
|
});
|
|
856
|
-
$[
|
|
857
|
-
$[
|
|
858
|
-
} else t11 = $[
|
|
807
|
+
$[26] = callsQuantity;
|
|
808
|
+
$[27] = t11;
|
|
809
|
+
} else t11 = $[27];
|
|
859
810
|
let t12;
|
|
860
|
-
if ($[
|
|
811
|
+
if ($[28] !== t10 || $[29] !== t11 || $[30] !== t9) {
|
|
861
812
|
t12 = /* @__PURE__ */ jsxs(PopoverContent, {
|
|
862
813
|
className: "grid grid-rows-auto backdrop-blur-md w-auto max-w-2xl max-h-[50vh] overflow-y-auto",
|
|
863
814
|
hideWhenDetached: true,
|
|
@@ -867,49 +818,49 @@ const FunctionCall = memo((t0) => {
|
|
|
867
818
|
t11
|
|
868
819
|
]
|
|
869
820
|
});
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
872
|
-
$[
|
|
873
|
-
$[
|
|
874
|
-
} else t12 = $[
|
|
821
|
+
$[28] = t10;
|
|
822
|
+
$[29] = t11;
|
|
823
|
+
$[30] = t9;
|
|
824
|
+
$[31] = t12;
|
|
825
|
+
} else t12 = $[31];
|
|
875
826
|
let t13;
|
|
876
|
-
if ($[
|
|
827
|
+
if ($[32] !== t12 || $[33] !== t6) {
|
|
877
828
|
t13 = /* @__PURE__ */ jsxs(Popover, { children: [t6, t12] });
|
|
878
|
-
$[
|
|
879
|
-
$[
|
|
880
|
-
$[
|
|
881
|
-
} else t13 = $[
|
|
829
|
+
$[32] = t12;
|
|
830
|
+
$[33] = t6;
|
|
831
|
+
$[34] = t13;
|
|
832
|
+
} else t13 = $[34];
|
|
882
833
|
let t14;
|
|
883
|
-
if ($[
|
|
834
|
+
if ($[35] !== filteredArgs) {
|
|
884
835
|
let t15$1;
|
|
885
|
-
if ($[
|
|
836
|
+
if ($[37] !== filteredArgs.length) {
|
|
886
837
|
t15$1 = (arg_2, index_0) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Argument, { arg: arg_2 }), index_0 < filteredArgs.length - 1 && /* @__PURE__ */ jsx("span", { children: ", " })] }, index_0);
|
|
887
|
-
$[
|
|
888
|
-
$[
|
|
889
|
-
} else t15$1 = $[
|
|
838
|
+
$[37] = filteredArgs.length;
|
|
839
|
+
$[38] = t15$1;
|
|
840
|
+
} else t15$1 = $[38];
|
|
890
841
|
t14 = filteredArgs.map(t15$1);
|
|
891
|
-
$[
|
|
892
|
-
$[
|
|
893
|
-
} else t14 = $[
|
|
842
|
+
$[35] = filteredArgs;
|
|
843
|
+
$[36] = t14;
|
|
844
|
+
} else t14 = $[36];
|
|
894
845
|
let t15;
|
|
895
|
-
if ($[
|
|
846
|
+
if ($[39] !== argsGridStyle || $[40] !== t14) {
|
|
896
847
|
t15 = /* @__PURE__ */ jsx("div", {
|
|
897
848
|
className: "grid items-center min-w-0",
|
|
898
849
|
style: argsGridStyle,
|
|
899
850
|
children: t14
|
|
900
851
|
});
|
|
901
|
-
$[
|
|
902
|
-
$[
|
|
903
|
-
$[
|
|
904
|
-
} else t15 = $[
|
|
852
|
+
$[39] = argsGridStyle;
|
|
853
|
+
$[40] = t14;
|
|
854
|
+
$[41] = t15;
|
|
855
|
+
} else t15 = $[41];
|
|
905
856
|
let t16;
|
|
906
|
-
if ($[
|
|
857
|
+
if ($[42] !== callsQuantity) {
|
|
907
858
|
t16 = /* @__PURE__ */ jsx(ClosingParenthesis, { callsQuantity });
|
|
908
|
-
$[
|
|
909
|
-
$[
|
|
910
|
-
} else t16 = $[
|
|
859
|
+
$[42] = callsQuantity;
|
|
860
|
+
$[43] = t16;
|
|
861
|
+
} else t16 = $[43];
|
|
911
862
|
let t17;
|
|
912
|
-
if ($[
|
|
863
|
+
if ($[44] !== t13 || $[45] !== t15 || $[46] !== t16) {
|
|
913
864
|
t17 = /* @__PURE__ */ jsxs("div", {
|
|
914
865
|
className: "grid overflow-hidden items-center",
|
|
915
866
|
style: GRID_LAYOUT_STYLE,
|
|
@@ -919,11 +870,11 @@ const FunctionCall = memo((t0) => {
|
|
|
919
870
|
t16
|
|
920
871
|
]
|
|
921
872
|
});
|
|
922
|
-
$[
|
|
923
|
-
$[
|
|
924
|
-
$[
|
|
925
|
-
$[
|
|
926
|
-
} else t17 = $[
|
|
873
|
+
$[44] = t13;
|
|
874
|
+
$[45] = t15;
|
|
875
|
+
$[46] = t16;
|
|
876
|
+
$[47] = t17;
|
|
877
|
+
} else t17 = $[47];
|
|
927
878
|
return t17;
|
|
928
879
|
});
|
|
929
880
|
FunctionCall.displayName = "FunctionCall";
|
|
@@ -940,32 +891,28 @@ function _temp2$2(arg_0) {
|
|
|
940
891
|
//#endregion
|
|
941
892
|
//#region src/components/events/trace-emit-event.tsx
|
|
942
893
|
const TraceEmitEvent = memo((t0) => {
|
|
943
|
-
const $ = c(
|
|
944
|
-
if ($[0] !== "1c99155502674878739fbbcfa0a143efee75279ad69880260a5f175528b3f050") {
|
|
945
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
946
|
-
$[0] = "1c99155502674878739fbbcfa0a143efee75279ad69880260a5f175528b3f050";
|
|
947
|
-
}
|
|
894
|
+
const $ = c(5);
|
|
948
895
|
const { event } = t0;
|
|
949
896
|
let t1;
|
|
950
|
-
if ($[
|
|
897
|
+
if ($[0] !== event.data || $[1] !== event.topic) {
|
|
951
898
|
t1 = [{
|
|
952
899
|
topic: event.topic,
|
|
953
900
|
data: event.data
|
|
954
901
|
}];
|
|
955
|
-
$[
|
|
956
|
-
$[
|
|
957
|
-
$[
|
|
958
|
-
} else t1 = $[
|
|
902
|
+
$[0] = event.data;
|
|
903
|
+
$[1] = event.topic;
|
|
904
|
+
$[2] = t1;
|
|
905
|
+
} else t1 = $[2];
|
|
959
906
|
const args = t1;
|
|
960
907
|
let t2;
|
|
961
|
-
if ($[
|
|
908
|
+
if ($[3] !== args) {
|
|
962
909
|
t2 = /* @__PURE__ */ jsx(FunctionCall, {
|
|
963
910
|
functionName: "emit",
|
|
964
911
|
args
|
|
965
912
|
});
|
|
966
|
-
$[
|
|
967
|
-
$[
|
|
968
|
-
} else t2 = $[
|
|
913
|
+
$[3] = args;
|
|
914
|
+
$[4] = t2;
|
|
915
|
+
} else t2 = $[4];
|
|
969
916
|
return t2;
|
|
970
917
|
});
|
|
971
918
|
TraceEmitEvent.displayName = "TraceEmitEvent";
|
|
@@ -973,20 +920,16 @@ TraceEmitEvent.displayName = "TraceEmitEvent";
|
|
|
973
920
|
//#endregion
|
|
974
921
|
//#region src/components/events/trace-log-event.tsx
|
|
975
922
|
const TraceLogEvent = memo((t0) => {
|
|
976
|
-
const $ = c(
|
|
977
|
-
if ($[0] !== "2ad036e2c4427811bdd655eab2630232cdaa410e5242349c3064a1c0f232d784") {
|
|
978
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
979
|
-
$[0] = "2ad036e2c4427811bdd655eab2630232cdaa410e5242349c3064a1c0f232d784";
|
|
980
|
-
}
|
|
923
|
+
const $ = c(5);
|
|
981
924
|
const { event } = t0;
|
|
982
925
|
let t1;
|
|
983
|
-
if ($[
|
|
926
|
+
if ($[0] !== event.level) {
|
|
984
927
|
t1 = /* @__PURE__ */ jsx(LevelDot, { level: event.level });
|
|
985
|
-
$[
|
|
986
|
-
$[
|
|
987
|
-
} else t1 = $[
|
|
928
|
+
$[0] = event.level;
|
|
929
|
+
$[1] = t1;
|
|
930
|
+
} else t1 = $[1];
|
|
988
931
|
let t2;
|
|
989
|
-
if ($[
|
|
932
|
+
if ($[2] !== event.message || $[3] !== t1) {
|
|
990
933
|
t2 = /* @__PURE__ */ jsxs("div", {
|
|
991
934
|
className: "flex items-center gap-2",
|
|
992
935
|
children: [
|
|
@@ -995,10 +938,10 @@ const TraceLogEvent = memo((t0) => {
|
|
|
995
938
|
event.message
|
|
996
939
|
]
|
|
997
940
|
});
|
|
998
|
-
$[
|
|
999
|
-
$[
|
|
1000
|
-
$[
|
|
1001
|
-
} else t2 = $[
|
|
941
|
+
$[2] = event.message;
|
|
942
|
+
$[3] = t1;
|
|
943
|
+
$[4] = t2;
|
|
944
|
+
} else t2 = $[4];
|
|
1002
945
|
return t2;
|
|
1003
946
|
});
|
|
1004
947
|
TraceLogEvent.displayName = "TraceLogEvent";
|
|
@@ -1006,36 +949,32 @@ TraceLogEvent.displayName = "TraceLogEvent";
|
|
|
1006
949
|
//#endregion
|
|
1007
950
|
//#region src/components/events/trace-state-event.tsx
|
|
1008
951
|
const TraceStateEvent = memo((t0) => {
|
|
1009
|
-
const $ = c(
|
|
1010
|
-
if ($[0] !== "7c38f56f572803a01857cb4bed35b853c294cca3e11476480cd02e0ce7b86827") {
|
|
1011
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1012
|
-
$[0] = "7c38f56f572803a01857cb4bed35b853c294cca3e11476480cd02e0ce7b86827";
|
|
1013
|
-
}
|
|
952
|
+
const $ = c(7);
|
|
1014
953
|
const { event } = t0;
|
|
1015
954
|
let t1;
|
|
1016
|
-
if ($[
|
|
955
|
+
if ($[0] !== event.data.key || $[1] !== event.data.traceId || $[2] !== event.data.value) {
|
|
1017
956
|
t1 = [
|
|
1018
957
|
event.data.traceId,
|
|
1019
958
|
event.data.key,
|
|
1020
959
|
event.data.value
|
|
1021
960
|
];
|
|
1022
|
-
$[
|
|
1023
|
-
$[
|
|
1024
|
-
$[
|
|
1025
|
-
$[
|
|
1026
|
-
} else t1 = $[
|
|
961
|
+
$[0] = event.data.key;
|
|
962
|
+
$[1] = event.data.traceId;
|
|
963
|
+
$[2] = event.data.value;
|
|
964
|
+
$[3] = t1;
|
|
965
|
+
} else t1 = $[3];
|
|
1027
966
|
const args = t1;
|
|
1028
967
|
let t2;
|
|
1029
|
-
if ($[
|
|
968
|
+
if ($[4] !== args || $[5] !== event.operation) {
|
|
1030
969
|
t2 = /* @__PURE__ */ jsx(FunctionCall, {
|
|
1031
970
|
objectName: "state",
|
|
1032
971
|
functionName: event.operation,
|
|
1033
972
|
args
|
|
1034
973
|
});
|
|
1035
|
-
$[
|
|
1036
|
-
$[
|
|
1037
|
-
$[
|
|
1038
|
-
} else t2 = $[
|
|
974
|
+
$[4] = args;
|
|
975
|
+
$[5] = event.operation;
|
|
976
|
+
$[6] = t2;
|
|
977
|
+
} else t2 = $[6];
|
|
1039
978
|
return t2;
|
|
1040
979
|
});
|
|
1041
980
|
TraceStateEvent.displayName = "TraceStateEvent";
|
|
@@ -1043,28 +982,24 @@ TraceStateEvent.displayName = "TraceStateEvent";
|
|
|
1043
982
|
//#endregion
|
|
1044
983
|
//#region src/components/events/trace-stream-event.tsx
|
|
1045
984
|
const TraceStreamEvent = memo((t0) => {
|
|
1046
|
-
const $ = c(
|
|
1047
|
-
if ($[0] !== "6c8ca715a79e72803fc3cde1b57bcfc9af7f426e893ce07dc6f50cf811b702b6") {
|
|
1048
|
-
for (let $i = 0; $i < 10; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1049
|
-
$[0] = "6c8ca715a79e72803fc3cde1b57bcfc9af7f426e893ce07dc6f50cf811b702b6";
|
|
1050
|
-
}
|
|
985
|
+
const $ = c(9);
|
|
1051
986
|
const { event } = t0;
|
|
1052
987
|
const t1 = event.data.data;
|
|
1053
988
|
let t2;
|
|
1054
|
-
if ($[
|
|
989
|
+
if ($[0] !== event.data.groupId || $[1] !== event.data.id || $[2] !== t1) {
|
|
1055
990
|
t2 = [
|
|
1056
991
|
event.data.groupId,
|
|
1057
992
|
event.data.id,
|
|
1058
993
|
t1
|
|
1059
994
|
];
|
|
1060
|
-
$[
|
|
1061
|
-
$[
|
|
1062
|
-
$[
|
|
1063
|
-
$[
|
|
1064
|
-
} else t2 = $[
|
|
995
|
+
$[0] = event.data.groupId;
|
|
996
|
+
$[1] = event.data.id;
|
|
997
|
+
$[2] = t1;
|
|
998
|
+
$[3] = t2;
|
|
999
|
+
} else t2 = $[3];
|
|
1065
1000
|
const args = t2;
|
|
1066
1001
|
let t3;
|
|
1067
|
-
if ($[
|
|
1002
|
+
if ($[4] !== args || $[5] !== event.calls || $[6] !== event.operation || $[7] !== event.streamName) {
|
|
1068
1003
|
t3 = /* @__PURE__ */ jsx(FunctionCall, {
|
|
1069
1004
|
topLevelClassName: "streams",
|
|
1070
1005
|
objectName: event.streamName,
|
|
@@ -1072,12 +1007,12 @@ const TraceStreamEvent = memo((t0) => {
|
|
|
1072
1007
|
args,
|
|
1073
1008
|
callsQuantity: event.calls
|
|
1074
1009
|
});
|
|
1075
|
-
$[
|
|
1076
|
-
$[
|
|
1077
|
-
$[
|
|
1078
|
-
$[
|
|
1079
|
-
$[
|
|
1080
|
-
} else t3 = $[
|
|
1010
|
+
$[4] = args;
|
|
1011
|
+
$[5] = event.calls;
|
|
1012
|
+
$[6] = event.operation;
|
|
1013
|
+
$[7] = event.streamName;
|
|
1014
|
+
$[8] = t3;
|
|
1015
|
+
} else t3 = $[8];
|
|
1081
1016
|
return t3;
|
|
1082
1017
|
});
|
|
1083
1018
|
TraceStreamEvent.displayName = "TraceStreamEvent";
|
|
@@ -1085,43 +1020,39 @@ TraceStreamEvent.displayName = "TraceStreamEvent";
|
|
|
1085
1020
|
//#endregion
|
|
1086
1021
|
//#region src/components/events/trace-event.tsx
|
|
1087
1022
|
const TraceEvent = memo((t0) => {
|
|
1088
|
-
const $ = c(
|
|
1089
|
-
if ($[0] !== "bb6873064e676dc947ff1df89d486f742da27c53a44f3427557c30d4dcc50852") {
|
|
1090
|
-
for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1091
|
-
$[0] = "bb6873064e676dc947ff1df89d486f742da27c53a44f3427557c30d4dcc50852";
|
|
1092
|
-
}
|
|
1023
|
+
const $ = c(8);
|
|
1093
1024
|
const { event } = t0;
|
|
1094
1025
|
if (event.type === "log") {
|
|
1095
1026
|
let t1;
|
|
1096
|
-
if ($[
|
|
1027
|
+
if ($[0] !== event) {
|
|
1097
1028
|
t1 = /* @__PURE__ */ jsx(TraceLogEvent, { event });
|
|
1098
|
-
$[
|
|
1099
|
-
$[
|
|
1100
|
-
} else t1 = $[
|
|
1029
|
+
$[0] = event;
|
|
1030
|
+
$[1] = t1;
|
|
1031
|
+
} else t1 = $[1];
|
|
1101
1032
|
return t1;
|
|
1102
1033
|
} else if (event.type === "emit") {
|
|
1103
1034
|
let t1;
|
|
1104
|
-
if ($[
|
|
1035
|
+
if ($[2] !== event) {
|
|
1105
1036
|
t1 = /* @__PURE__ */ jsx(TraceEmitEvent, { event });
|
|
1106
|
-
$[
|
|
1107
|
-
$[
|
|
1108
|
-
} else t1 = $[
|
|
1037
|
+
$[2] = event;
|
|
1038
|
+
$[3] = t1;
|
|
1039
|
+
} else t1 = $[3];
|
|
1109
1040
|
return t1;
|
|
1110
1041
|
} else if (event.type === "state") {
|
|
1111
1042
|
let t1;
|
|
1112
|
-
if ($[
|
|
1043
|
+
if ($[4] !== event) {
|
|
1113
1044
|
t1 = /* @__PURE__ */ jsx(TraceStateEvent, { event });
|
|
1114
|
-
$[
|
|
1115
|
-
$[
|
|
1116
|
-
} else t1 = $[
|
|
1045
|
+
$[4] = event;
|
|
1046
|
+
$[5] = t1;
|
|
1047
|
+
} else t1 = $[5];
|
|
1117
1048
|
return t1;
|
|
1118
1049
|
} else if (event.type === "stream") {
|
|
1119
1050
|
let t1;
|
|
1120
|
-
if ($[
|
|
1051
|
+
if ($[6] !== event) {
|
|
1121
1052
|
t1 = /* @__PURE__ */ jsx(TraceStreamEvent, { event });
|
|
1122
|
-
$[
|
|
1123
|
-
$[
|
|
1124
|
-
} else t1 = $[
|
|
1053
|
+
$[6] = event;
|
|
1054
|
+
$[7] = t1;
|
|
1055
|
+
} else t1 = $[7];
|
|
1125
1056
|
return t1;
|
|
1126
1057
|
}
|
|
1127
1058
|
});
|
|
@@ -1130,38 +1061,34 @@ TraceEvent.displayName = "TraceEvent";
|
|
|
1130
1061
|
//#endregion
|
|
1131
1062
|
//#region src/components/trace-item/trace-event-item.tsx
|
|
1132
1063
|
const TraceEventItem = memo((t0) => {
|
|
1133
|
-
const $ = c(
|
|
1134
|
-
if ($[0] !== "6a7235dddbab5b9658f53f7dc4ccc892ec78776c6bf4ebe24fc950401299f990") {
|
|
1135
|
-
for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1136
|
-
$[0] = "6a7235dddbab5b9658f53f7dc4ccc892ec78776c6bf4ebe24fc950401299f990";
|
|
1137
|
-
}
|
|
1064
|
+
const $ = c(13);
|
|
1138
1065
|
const { event, traceStartTime } = t0;
|
|
1139
1066
|
let t1;
|
|
1140
|
-
if ($[
|
|
1067
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1141
1068
|
t1 = /* @__PURE__ */ jsx("div", {
|
|
1142
1069
|
className: "grid place-items-center",
|
|
1143
1070
|
children: /* @__PURE__ */ jsx("div", { className: "w-1 h-1 rounded-full bg-emerald-500 outline outline-2 outline-emerald-500/50 -ml-[26px]" })
|
|
1144
1071
|
});
|
|
1145
|
-
$[
|
|
1146
|
-
} else t1 = $[
|
|
1072
|
+
$[0] = t1;
|
|
1073
|
+
} else t1 = $[0];
|
|
1147
1074
|
let t2;
|
|
1148
|
-
if ($[
|
|
1075
|
+
if ($[1] !== event) {
|
|
1149
1076
|
t2 = /* @__PURE__ */ jsx("div", {
|
|
1150
1077
|
className: "grid place-items-center",
|
|
1151
1078
|
children: /* @__PURE__ */ jsx(EventIcon, { event })
|
|
1152
1079
|
});
|
|
1153
|
-
$[
|
|
1154
|
-
$[
|
|
1155
|
-
} else t2 = $[
|
|
1080
|
+
$[1] = event;
|
|
1081
|
+
$[2] = t2;
|
|
1082
|
+
} else t2 = $[2];
|
|
1156
1083
|
const t3 = Math.floor(event.timestamp - traceStartTime);
|
|
1157
1084
|
let t4;
|
|
1158
|
-
if ($[
|
|
1085
|
+
if ($[3] !== t3) {
|
|
1159
1086
|
t4 = formatDuration(t3);
|
|
1160
|
-
$[
|
|
1161
|
-
$[
|
|
1162
|
-
} else t4 = $[
|
|
1087
|
+
$[3] = t3;
|
|
1088
|
+
$[4] = t4;
|
|
1089
|
+
} else t4 = $[4];
|
|
1163
1090
|
let t5;
|
|
1164
|
-
if ($[
|
|
1091
|
+
if ($[5] !== t4) {
|
|
1165
1092
|
t5 = /* @__PURE__ */ jsx("div", {
|
|
1166
1093
|
className: "grid place-items-center",
|
|
1167
1094
|
children: /* @__PURE__ */ jsxs("span", {
|
|
@@ -1169,31 +1096,31 @@ const TraceEventItem = memo((t0) => {
|
|
|
1169
1096
|
children: ["+", t4]
|
|
1170
1097
|
})
|
|
1171
1098
|
});
|
|
1172
|
-
$[
|
|
1173
|
-
$[
|
|
1174
|
-
} else t5 = $[
|
|
1099
|
+
$[5] = t4;
|
|
1100
|
+
$[6] = t5;
|
|
1101
|
+
} else t5 = $[6];
|
|
1175
1102
|
let t6;
|
|
1176
|
-
if ($[
|
|
1103
|
+
if ($[7] !== event) {
|
|
1177
1104
|
t6 = /* @__PURE__ */ jsx("div", {
|
|
1178
1105
|
className: "grid place-items-start",
|
|
1179
1106
|
children: /* @__PURE__ */ jsx(TraceEvent, { event })
|
|
1180
1107
|
});
|
|
1181
|
-
$[
|
|
1182
|
-
$[
|
|
1183
|
-
} else t6 = $[
|
|
1108
|
+
$[7] = event;
|
|
1109
|
+
$[8] = t6;
|
|
1110
|
+
} else t6 = $[8];
|
|
1184
1111
|
let t7;
|
|
1185
|
-
if ($[
|
|
1112
|
+
if ($[9] !== t2 || $[10] !== t5 || $[11] !== t6) {
|
|
1186
1113
|
t7 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1187
1114
|
t1,
|
|
1188
1115
|
t2,
|
|
1189
1116
|
t5,
|
|
1190
1117
|
t6
|
|
1191
1118
|
] });
|
|
1192
|
-
$[
|
|
1193
|
-
$[
|
|
1194
|
-
$[
|
|
1195
|
-
$[
|
|
1196
|
-
} else t7 = $[
|
|
1119
|
+
$[9] = t2;
|
|
1120
|
+
$[10] = t5;
|
|
1121
|
+
$[11] = t6;
|
|
1122
|
+
$[12] = t7;
|
|
1123
|
+
} else t7 = $[12];
|
|
1197
1124
|
return t7;
|
|
1198
1125
|
});
|
|
1199
1126
|
TraceEventItem.displayName = "TraceEventItem";
|
|
@@ -1201,56 +1128,52 @@ TraceEventItem.displayName = "TraceEventItem";
|
|
|
1201
1128
|
//#endregion
|
|
1202
1129
|
//#region src/components/trace-item/trace-item-detail.tsx
|
|
1203
1130
|
const TraceItemDetail = memo((t0) => {
|
|
1204
|
-
const $ = c(
|
|
1205
|
-
if ($[0] !== "1a8f3badc41dcb22bbab4d8d915d8d9b99520c2bd79570b27acfb6158532a96a") {
|
|
1206
|
-
for (let $i = 0; $i < 33; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1207
|
-
$[0] = "1a8f3badc41dcb22bbab4d8d915d8d9b99520c2bd79570b27acfb6158532a96a";
|
|
1208
|
-
}
|
|
1131
|
+
const $ = c(32);
|
|
1209
1132
|
const { trace, onClose } = t0;
|
|
1210
1133
|
let t1;
|
|
1211
|
-
if ($[
|
|
1134
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1212
1135
|
t1 = /* @__PURE__ */ jsx(X, {});
|
|
1213
|
-
$[
|
|
1214
|
-
} else t1 = $[
|
|
1136
|
+
$[0] = t1;
|
|
1137
|
+
} else t1 = $[0];
|
|
1215
1138
|
let t2;
|
|
1216
|
-
if ($[
|
|
1139
|
+
if ($[1] !== onClose) {
|
|
1217
1140
|
t2 = [{
|
|
1218
1141
|
icon: t1,
|
|
1219
1142
|
onClick: onClose,
|
|
1220
1143
|
label: "Close"
|
|
1221
1144
|
}];
|
|
1222
|
-
$[
|
|
1223
|
-
$[
|
|
1224
|
-
} else t2 = $[
|
|
1145
|
+
$[1] = onClose;
|
|
1146
|
+
$[2] = t2;
|
|
1147
|
+
} else t2 = $[2];
|
|
1225
1148
|
const actions = t2;
|
|
1226
1149
|
const t3 = `Viewing details from step ${trace.name}`;
|
|
1227
1150
|
let t4;
|
|
1228
|
-
if ($[
|
|
1151
|
+
if ($[3] !== trace.endTime || $[4] !== trace.startTime) {
|
|
1229
1152
|
t4 = trace.endTime && /* @__PURE__ */ jsxs("span", { children: ["Duration: ", formatDuration(trace.endTime - trace.startTime)] });
|
|
1230
|
-
$[
|
|
1231
|
-
$[
|
|
1232
|
-
$[
|
|
1233
|
-
} else t4 = $[
|
|
1153
|
+
$[3] = trace.endTime;
|
|
1154
|
+
$[4] = trace.startTime;
|
|
1155
|
+
$[5] = t4;
|
|
1156
|
+
} else t4 = $[5];
|
|
1234
1157
|
let t5;
|
|
1235
|
-
if ($[
|
|
1158
|
+
if ($[6] !== trace.entryPoint.type) {
|
|
1236
1159
|
t5 = /* @__PURE__ */ jsx("div", {
|
|
1237
1160
|
className: "bg-blue-500 font-bold text-xs px-[4px] py-[2px] rounded-sm text-blue-100",
|
|
1238
1161
|
children: trace.entryPoint.type
|
|
1239
1162
|
});
|
|
1240
|
-
$[
|
|
1241
|
-
$[
|
|
1242
|
-
} else t5 = $[
|
|
1163
|
+
$[6] = trace.entryPoint.type;
|
|
1164
|
+
$[7] = t5;
|
|
1165
|
+
} else t5 = $[7];
|
|
1243
1166
|
let t6;
|
|
1244
|
-
if ($[
|
|
1167
|
+
if ($[8] !== trace.correlationId) {
|
|
1245
1168
|
t6 = trace.correlationId && /* @__PURE__ */ jsxs(Badge, {
|
|
1246
1169
|
variant: "outline",
|
|
1247
1170
|
children: ["Correlated: ", trace.correlationId]
|
|
1248
1171
|
});
|
|
1249
|
-
$[
|
|
1250
|
-
$[
|
|
1251
|
-
} else t6 = $[
|
|
1172
|
+
$[8] = trace.correlationId;
|
|
1173
|
+
$[9] = t6;
|
|
1174
|
+
} else t6 = $[9];
|
|
1252
1175
|
let t7;
|
|
1253
|
-
if ($[
|
|
1176
|
+
if ($[10] !== t4 || $[11] !== t5 || $[12] !== t6) {
|
|
1254
1177
|
t7 = /* @__PURE__ */ jsxs("div", {
|
|
1255
1178
|
className: "flex items-center gap-4 text-sm text-muted-foreground mb-4",
|
|
1256
1179
|
children: [
|
|
@@ -1259,48 +1182,48 @@ const TraceItemDetail = memo((t0) => {
|
|
|
1259
1182
|
t6
|
|
1260
1183
|
]
|
|
1261
1184
|
});
|
|
1262
|
-
$[
|
|
1263
|
-
$[
|
|
1264
|
-
$[
|
|
1265
|
-
$[
|
|
1266
|
-
} else t7 = $[
|
|
1185
|
+
$[10] = t4;
|
|
1186
|
+
$[11] = t5;
|
|
1187
|
+
$[12] = t6;
|
|
1188
|
+
$[13] = t7;
|
|
1189
|
+
} else t7 = $[13];
|
|
1267
1190
|
let t8;
|
|
1268
|
-
if ($[
|
|
1191
|
+
if ($[14] !== trace.events || $[15] !== trace.startTime) {
|
|
1269
1192
|
let t9$1;
|
|
1270
|
-
if ($[
|
|
1193
|
+
if ($[17] !== trace.startTime) {
|
|
1271
1194
|
t9$1 = (event, index) => /* @__PURE__ */ jsx(TraceEventItem, {
|
|
1272
1195
|
event,
|
|
1273
1196
|
traceStartTime: trace.startTime
|
|
1274
1197
|
}, index);
|
|
1275
|
-
$[
|
|
1276
|
-
$[
|
|
1277
|
-
} else t9$1 = $[
|
|
1198
|
+
$[17] = trace.startTime;
|
|
1199
|
+
$[18] = t9$1;
|
|
1200
|
+
} else t9$1 = $[18];
|
|
1278
1201
|
t8 = trace.events.map(t9$1);
|
|
1279
|
-
$[
|
|
1280
|
-
$[
|
|
1281
|
-
$[
|
|
1282
|
-
} else t8 = $[
|
|
1202
|
+
$[14] = trace.events;
|
|
1203
|
+
$[15] = trace.startTime;
|
|
1204
|
+
$[16] = t8;
|
|
1205
|
+
} else t8 = $[16];
|
|
1283
1206
|
let t9;
|
|
1284
|
-
if ($[
|
|
1207
|
+
if ($[19] !== t8) {
|
|
1285
1208
|
t9 = /* @__PURE__ */ jsx("div", {
|
|
1286
1209
|
className: "grid grid-cols-[auto_auto_auto_1fr] gap-x-2 gap-y-3 font-mono text-xs border-l-1 border-gray-500/40 pl-6",
|
|
1287
1210
|
children: t8
|
|
1288
1211
|
});
|
|
1289
|
-
$[
|
|
1290
|
-
$[
|
|
1291
|
-
} else t9 = $[
|
|
1212
|
+
$[19] = t8;
|
|
1213
|
+
$[20] = t9;
|
|
1214
|
+
} else t9 = $[20];
|
|
1292
1215
|
let t10;
|
|
1293
|
-
if ($[
|
|
1216
|
+
if ($[21] !== t7 || $[22] !== t9) {
|
|
1294
1217
|
t10 = /* @__PURE__ */ jsxs("div", {
|
|
1295
1218
|
className: "px-2 overflow-auto",
|
|
1296
1219
|
children: [t7, t9]
|
|
1297
1220
|
});
|
|
1298
|
-
$[
|
|
1299
|
-
$[
|
|
1300
|
-
$[
|
|
1301
|
-
} else t10 = $[
|
|
1221
|
+
$[21] = t7;
|
|
1222
|
+
$[22] = t9;
|
|
1223
|
+
$[23] = t10;
|
|
1224
|
+
} else t10 = $[23];
|
|
1302
1225
|
let t11;
|
|
1303
|
-
if ($[
|
|
1226
|
+
if ($[24] !== trace.error) {
|
|
1304
1227
|
t11 = trace.error && /* @__PURE__ */ jsxs("div", {
|
|
1305
1228
|
className: "p-4 bg-red-800/10",
|
|
1306
1229
|
children: [/* @__PURE__ */ jsx("div", {
|
|
@@ -1311,11 +1234,11 @@ const TraceItemDetail = memo((t0) => {
|
|
|
1311
1234
|
children: trace.error.stack
|
|
1312
1235
|
})]
|
|
1313
1236
|
});
|
|
1314
|
-
$[
|
|
1315
|
-
$[
|
|
1316
|
-
} else t11 = $[
|
|
1237
|
+
$[24] = trace.error;
|
|
1238
|
+
$[25] = t11;
|
|
1239
|
+
} else t11 = $[25];
|
|
1317
1240
|
let t12;
|
|
1318
|
-
if ($[
|
|
1241
|
+
if ($[26] !== actions || $[27] !== onClose || $[28] !== t10 || $[29] !== t11 || $[30] !== t3) {
|
|
1319
1242
|
t12 = /* @__PURE__ */ jsxs(Sidebar, {
|
|
1320
1243
|
onClose,
|
|
1321
1244
|
initialWidth: 600,
|
|
@@ -1324,13 +1247,13 @@ const TraceItemDetail = memo((t0) => {
|
|
|
1324
1247
|
actions,
|
|
1325
1248
|
children: [t10, t11]
|
|
1326
1249
|
});
|
|
1327
|
-
$[
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1330
|
-
$[
|
|
1331
|
-
$[
|
|
1332
|
-
$[
|
|
1333
|
-
} else t12 = $[
|
|
1250
|
+
$[26] = actions;
|
|
1251
|
+
$[27] = onClose;
|
|
1252
|
+
$[28] = t10;
|
|
1253
|
+
$[29] = t11;
|
|
1254
|
+
$[30] = t3;
|
|
1255
|
+
$[31] = t12;
|
|
1256
|
+
} else t12 = $[31];
|
|
1334
1257
|
return t12;
|
|
1335
1258
|
});
|
|
1336
1259
|
TraceItemDetail.displayName = "TraceItemDetail";
|
|
@@ -1338,111 +1261,103 @@ TraceItemDetail.displayName = "TraceItemDetail";
|
|
|
1338
1261
|
//#endregion
|
|
1339
1262
|
//#region src/components/trace-timeline.tsx
|
|
1340
1263
|
const TraceTimeline = memo(() => {
|
|
1341
|
-
const $ = c(
|
|
1342
|
-
if ($[0] !== "fd73f7a8c1f8a9d942e9e6008a32a002af26b3ecbbb06d98f5a3a138c6f4c73a") {
|
|
1343
|
-
for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1344
|
-
$[0] = "fd73f7a8c1f8a9d942e9e6008a32a002af26b3ecbbb06d98f5a3a138c6f4c73a";
|
|
1345
|
-
}
|
|
1264
|
+
const $ = c(2);
|
|
1346
1265
|
const groupId = useObservabilityStore(_temp$3);
|
|
1347
1266
|
if (!groupId) return null;
|
|
1348
1267
|
let t0;
|
|
1349
|
-
if ($[
|
|
1268
|
+
if ($[0] !== groupId) {
|
|
1350
1269
|
t0 = /* @__PURE__ */ jsx(TraceTimelineComponent, { groupId });
|
|
1351
|
-
$[
|
|
1352
|
-
$[
|
|
1353
|
-
} else t0 = $[
|
|
1270
|
+
$[0] = groupId;
|
|
1271
|
+
$[1] = t0;
|
|
1272
|
+
} else t0 = $[1];
|
|
1354
1273
|
return t0;
|
|
1355
1274
|
});
|
|
1356
1275
|
TraceTimeline.displayName = "TraceTimeline";
|
|
1357
1276
|
const TraceTimelineComponent = memo((t0) => {
|
|
1358
|
-
const $ = c(
|
|
1359
|
-
if ($[0] !== "fd73f7a8c1f8a9d942e9e6008a32a002af26b3ecbbb06d98f5a3a138c6f4c73a") {
|
|
1360
|
-
for (let $i = 0; $i < 80; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1361
|
-
$[0] = "fd73f7a8c1f8a9d942e9e6008a32a002af26b3ecbbb06d98f5a3a138c6f4c73a";
|
|
1362
|
-
}
|
|
1277
|
+
const $ = c(79);
|
|
1363
1278
|
const { groupId } = t0;
|
|
1364
1279
|
let t1;
|
|
1365
|
-
if ($[
|
|
1280
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1366
1281
|
t1 = {
|
|
1367
1282
|
streamName: "motia-trace-group",
|
|
1368
1283
|
groupId: "default"
|
|
1369
1284
|
};
|
|
1370
|
-
$[
|
|
1371
|
-
} else t1 = $[
|
|
1285
|
+
$[0] = t1;
|
|
1286
|
+
} else t1 = $[0];
|
|
1372
1287
|
const { data: traceGroups } = useStreamGroup(t1);
|
|
1373
1288
|
let t2;
|
|
1374
|
-
if ($[
|
|
1289
|
+
if ($[1] !== groupId || $[2] !== traceGroups) {
|
|
1375
1290
|
let t3$1;
|
|
1376
|
-
if ($[
|
|
1291
|
+
if ($[4] !== groupId) {
|
|
1377
1292
|
t3$1 = (traceGroup) => traceGroup.id === groupId;
|
|
1378
|
-
$[
|
|
1379
|
-
$[
|
|
1380
|
-
} else t3$1 = $[
|
|
1293
|
+
$[4] = groupId;
|
|
1294
|
+
$[5] = t3$1;
|
|
1295
|
+
} else t3$1 = $[5];
|
|
1381
1296
|
t2 = traceGroups.find(t3$1);
|
|
1382
|
-
$[
|
|
1383
|
-
$[
|
|
1384
|
-
$[
|
|
1385
|
-
} else t2 = $[
|
|
1297
|
+
$[1] = groupId;
|
|
1298
|
+
$[2] = traceGroups;
|
|
1299
|
+
$[3] = t2;
|
|
1300
|
+
} else t2 = $[3];
|
|
1386
1301
|
const group = t2;
|
|
1387
1302
|
let t3;
|
|
1388
|
-
if ($[
|
|
1303
|
+
if ($[6] !== groupId) {
|
|
1389
1304
|
t3 = {
|
|
1390
1305
|
streamName: "motia-trace",
|
|
1391
1306
|
groupId
|
|
1392
1307
|
};
|
|
1393
|
-
$[
|
|
1394
|
-
$[
|
|
1395
|
-
} else t3 = $[
|
|
1308
|
+
$[6] = groupId;
|
|
1309
|
+
$[7] = t3;
|
|
1310
|
+
} else t3 = $[7];
|
|
1396
1311
|
const { data } = useStreamGroup(t3);
|
|
1397
1312
|
const endTime = useGetEndTime(group);
|
|
1398
1313
|
const [zoom, setZoom] = useState(100);
|
|
1399
1314
|
const selectedTraceId = useObservabilityStore(_temp2$1);
|
|
1400
1315
|
const selectTraceId = useObservabilityStore(_temp3);
|
|
1401
1316
|
let t4;
|
|
1402
|
-
if ($[
|
|
1317
|
+
if ($[8] !== data || $[9] !== selectedTraceId) {
|
|
1403
1318
|
t4 = data?.find((trace) => trace.id === selectedTraceId);
|
|
1404
|
-
$[
|
|
1405
|
-
$[
|
|
1406
|
-
$[
|
|
1407
|
-
} else t4 = $[
|
|
1319
|
+
$[8] = data;
|
|
1320
|
+
$[9] = selectedTraceId;
|
|
1321
|
+
$[10] = t4;
|
|
1322
|
+
} else t4 = $[10];
|
|
1408
1323
|
const selectedTrace = t4;
|
|
1409
1324
|
let t5;
|
|
1410
|
-
if ($[
|
|
1325
|
+
if ($[11] !== zoom) {
|
|
1411
1326
|
t5 = () => zoom > 100 && setZoom(_temp4);
|
|
1412
|
-
$[
|
|
1413
|
-
$[
|
|
1414
|
-
} else t5 = $[
|
|
1327
|
+
$[11] = zoom;
|
|
1328
|
+
$[12] = t5;
|
|
1329
|
+
} else t5 = $[12];
|
|
1415
1330
|
const zoomMinus = t5;
|
|
1416
1331
|
let t6;
|
|
1417
|
-
if ($[
|
|
1332
|
+
if ($[13] !== zoom) {
|
|
1418
1333
|
t6 = () => zoom < 200 && setZoom(_temp5);
|
|
1419
|
-
$[
|
|
1420
|
-
$[
|
|
1421
|
-
} else t6 = $[
|
|
1334
|
+
$[13] = zoom;
|
|
1335
|
+
$[14] = t6;
|
|
1336
|
+
} else t6 = $[14];
|
|
1422
1337
|
const zoomPlus = t6;
|
|
1423
1338
|
if (!group) return null;
|
|
1424
1339
|
const t7 = `${zoom}%`;
|
|
1425
1340
|
let t8;
|
|
1426
|
-
if ($[
|
|
1341
|
+
if ($[15] !== t7) {
|
|
1427
1342
|
t8 = { width: t7 };
|
|
1428
|
-
$[
|
|
1429
|
-
$[
|
|
1430
|
-
} else t8 = $[
|
|
1343
|
+
$[15] = t7;
|
|
1344
|
+
$[16] = t8;
|
|
1345
|
+
} else t8 = $[16];
|
|
1431
1346
|
const t9 = `${zoom}%`;
|
|
1432
1347
|
let t10;
|
|
1433
|
-
if ($[
|
|
1348
|
+
if ($[17] !== t9) {
|
|
1434
1349
|
t10 = { width: t9 };
|
|
1435
|
-
$[
|
|
1436
|
-
$[
|
|
1437
|
-
} else t10 = $[
|
|
1350
|
+
$[17] = t9;
|
|
1351
|
+
$[18] = t10;
|
|
1352
|
+
} else t10 = $[18];
|
|
1438
1353
|
const t11 = zoom <= 100;
|
|
1439
1354
|
let t12;
|
|
1440
|
-
if ($[
|
|
1355
|
+
if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1441
1356
|
t12 = /* @__PURE__ */ jsx(Minus, { className: "w-4 h-4 cursor-pointer" });
|
|
1442
|
-
$[
|
|
1443
|
-
} else t12 = $[
|
|
1357
|
+
$[19] = t12;
|
|
1358
|
+
} else t12 = $[19];
|
|
1444
1359
|
let t13;
|
|
1445
|
-
if ($[
|
|
1360
|
+
if ($[20] !== t11 || $[21] !== zoomMinus) {
|
|
1446
1361
|
t13 = /* @__PURE__ */ jsx(Button, {
|
|
1447
1362
|
variant: "icon",
|
|
1448
1363
|
size: "sm",
|
|
@@ -1451,27 +1366,27 @@ const TraceTimelineComponent = memo((t0) => {
|
|
|
1451
1366
|
disabled: t11,
|
|
1452
1367
|
children: t12
|
|
1453
1368
|
});
|
|
1454
|
-
$[
|
|
1455
|
-
$[
|
|
1456
|
-
$[
|
|
1457
|
-
} else t13 = $[
|
|
1369
|
+
$[20] = t11;
|
|
1370
|
+
$[21] = zoomMinus;
|
|
1371
|
+
$[22] = t13;
|
|
1372
|
+
} else t13 = $[22];
|
|
1458
1373
|
let t14;
|
|
1459
|
-
if ($[
|
|
1374
|
+
if ($[23] !== zoom) {
|
|
1460
1375
|
t14 = /* @__PURE__ */ jsxs("span", {
|
|
1461
1376
|
className: "min-w-12 text-center select-none text-sm font-bold text-muted-foreground",
|
|
1462
1377
|
children: [zoom, "%"]
|
|
1463
1378
|
});
|
|
1464
|
-
$[
|
|
1465
|
-
$[
|
|
1466
|
-
} else t14 = $[
|
|
1379
|
+
$[23] = zoom;
|
|
1380
|
+
$[24] = t14;
|
|
1381
|
+
} else t14 = $[24];
|
|
1467
1382
|
const t15 = zoom >= 200;
|
|
1468
1383
|
let t16;
|
|
1469
|
-
if ($[
|
|
1384
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1470
1385
|
t16 = /* @__PURE__ */ jsx(Plus, { className: "w-4 h-4 cursor-pointer" });
|
|
1471
|
-
$[
|
|
1472
|
-
} else t16 = $[
|
|
1386
|
+
$[25] = t16;
|
|
1387
|
+
} else t16 = $[25];
|
|
1473
1388
|
let t17;
|
|
1474
|
-
if ($[
|
|
1389
|
+
if ($[26] !== t15 || $[27] !== zoomPlus) {
|
|
1475
1390
|
t17 = /* @__PURE__ */ jsx(Button, {
|
|
1476
1391
|
variant: "icon",
|
|
1477
1392
|
size: "sm",
|
|
@@ -1480,12 +1395,12 @@ const TraceTimelineComponent = memo((t0) => {
|
|
|
1480
1395
|
disabled: t15,
|
|
1481
1396
|
children: t16
|
|
1482
1397
|
});
|
|
1483
|
-
$[
|
|
1484
|
-
$[
|
|
1485
|
-
$[
|
|
1486
|
-
} else t17 = $[
|
|
1398
|
+
$[26] = t15;
|
|
1399
|
+
$[27] = zoomPlus;
|
|
1400
|
+
$[28] = t17;
|
|
1401
|
+
} else t17 = $[28];
|
|
1487
1402
|
let t18;
|
|
1488
|
-
if ($[
|
|
1403
|
+
if ($[29] !== t13 || $[30] !== t14 || $[31] !== t17) {
|
|
1489
1404
|
t18 = /* @__PURE__ */ jsxs("div", {
|
|
1490
1405
|
className: "shrink-0 w-[200px] h-[37px] flex items-center justify-center gap-2 sticky left-0 top-0 z-10 bg-card backdrop-blur-xs backdrop-filter",
|
|
1491
1406
|
children: [
|
|
@@ -1494,70 +1409,70 @@ const TraceTimelineComponent = memo((t0) => {
|
|
|
1494
1409
|
t17
|
|
1495
1410
|
]
|
|
1496
1411
|
});
|
|
1497
|
-
$[
|
|
1498
|
-
$[
|
|
1499
|
-
$[
|
|
1500
|
-
$[
|
|
1501
|
-
} else t18 = $[
|
|
1412
|
+
$[29] = t13;
|
|
1413
|
+
$[30] = t14;
|
|
1414
|
+
$[31] = t17;
|
|
1415
|
+
$[32] = t18;
|
|
1416
|
+
} else t18 = $[32];
|
|
1502
1417
|
let t19;
|
|
1503
|
-
if ($[
|
|
1418
|
+
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1504
1419
|
t19 = /* @__PURE__ */ jsx("span", { children: "0ms" });
|
|
1505
|
-
$[
|
|
1506
|
-
} else t19 = $[
|
|
1420
|
+
$[33] = t19;
|
|
1421
|
+
} else t19 = $[33];
|
|
1507
1422
|
const t20 = Math.floor((endTime - group.startTime) * .25);
|
|
1508
1423
|
let t21;
|
|
1509
|
-
if ($[
|
|
1424
|
+
if ($[34] !== t20) {
|
|
1510
1425
|
t21 = formatDuration(t20);
|
|
1511
|
-
$[
|
|
1512
|
-
$[
|
|
1513
|
-
} else t21 = $[
|
|
1426
|
+
$[34] = t20;
|
|
1427
|
+
$[35] = t21;
|
|
1428
|
+
} else t21 = $[35];
|
|
1514
1429
|
let t22;
|
|
1515
|
-
if ($[
|
|
1430
|
+
if ($[36] !== t21) {
|
|
1516
1431
|
t22 = /* @__PURE__ */ jsx("span", { children: t21 });
|
|
1517
|
-
$[
|
|
1518
|
-
$[
|
|
1519
|
-
} else t22 = $[
|
|
1432
|
+
$[36] = t21;
|
|
1433
|
+
$[37] = t22;
|
|
1434
|
+
} else t22 = $[37];
|
|
1520
1435
|
const t23 = Math.floor((endTime - group.startTime) * .5);
|
|
1521
1436
|
let t24;
|
|
1522
|
-
if ($[
|
|
1437
|
+
if ($[38] !== t23) {
|
|
1523
1438
|
t24 = formatDuration(t23);
|
|
1524
|
-
$[
|
|
1525
|
-
$[
|
|
1526
|
-
} else t24 = $[
|
|
1439
|
+
$[38] = t23;
|
|
1440
|
+
$[39] = t24;
|
|
1441
|
+
} else t24 = $[39];
|
|
1527
1442
|
let t25;
|
|
1528
|
-
if ($[
|
|
1443
|
+
if ($[40] !== t24) {
|
|
1529
1444
|
t25 = /* @__PURE__ */ jsx("span", { children: t24 });
|
|
1530
|
-
$[
|
|
1531
|
-
$[
|
|
1532
|
-
} else t25 = $[
|
|
1445
|
+
$[40] = t24;
|
|
1446
|
+
$[41] = t25;
|
|
1447
|
+
} else t25 = $[41];
|
|
1533
1448
|
const t26 = Math.floor((endTime - group.startTime) * .75);
|
|
1534
1449
|
let t27;
|
|
1535
|
-
if ($[
|
|
1450
|
+
if ($[42] !== t26) {
|
|
1536
1451
|
t27 = formatDuration(t26);
|
|
1537
|
-
$[
|
|
1538
|
-
$[
|
|
1539
|
-
} else t27 = $[
|
|
1452
|
+
$[42] = t26;
|
|
1453
|
+
$[43] = t27;
|
|
1454
|
+
} else t27 = $[43];
|
|
1540
1455
|
let t28;
|
|
1541
|
-
if ($[
|
|
1456
|
+
if ($[44] !== t27) {
|
|
1542
1457
|
t28 = /* @__PURE__ */ jsx("span", { children: t27 });
|
|
1543
|
-
$[
|
|
1544
|
-
$[
|
|
1545
|
-
} else t28 = $[
|
|
1458
|
+
$[44] = t27;
|
|
1459
|
+
$[45] = t28;
|
|
1460
|
+
} else t28 = $[45];
|
|
1546
1461
|
const t29 = Math.floor(endTime - group.startTime);
|
|
1547
1462
|
let t30;
|
|
1548
|
-
if ($[
|
|
1463
|
+
if ($[46] !== t29) {
|
|
1549
1464
|
t30 = formatDuration(t29);
|
|
1550
|
-
$[
|
|
1551
|
-
$[
|
|
1552
|
-
} else t30 = $[
|
|
1465
|
+
$[46] = t29;
|
|
1466
|
+
$[47] = t30;
|
|
1467
|
+
} else t30 = $[47];
|
|
1553
1468
|
let t31;
|
|
1554
|
-
if ($[
|
|
1469
|
+
if ($[48] !== t30) {
|
|
1555
1470
|
t31 = /* @__PURE__ */ jsx("span", { children: t30 });
|
|
1556
|
-
$[
|
|
1557
|
-
$[
|
|
1558
|
-
} else t31 = $[
|
|
1471
|
+
$[48] = t30;
|
|
1472
|
+
$[49] = t31;
|
|
1473
|
+
} else t31 = $[49];
|
|
1559
1474
|
let t32;
|
|
1560
|
-
if ($[
|
|
1475
|
+
if ($[50] !== t22 || $[51] !== t25 || $[52] !== t28 || $[53] !== t31) {
|
|
1561
1476
|
t32 = /* @__PURE__ */ jsxs("div", {
|
|
1562
1477
|
className: "flex justify-between font-mono p-2 w-full text-xs text-muted-foreground bg-card",
|
|
1563
1478
|
children: [
|
|
@@ -1568,33 +1483,33 @@ const TraceTimelineComponent = memo((t0) => {
|
|
|
1568
1483
|
t31
|
|
1569
1484
|
]
|
|
1570
1485
|
});
|
|
1571
|
-
$[
|
|
1572
|
-
$[
|
|
1573
|
-
$[
|
|
1574
|
-
$[
|
|
1575
|
-
$[
|
|
1576
|
-
} else t32 = $[
|
|
1486
|
+
$[50] = t22;
|
|
1487
|
+
$[51] = t25;
|
|
1488
|
+
$[52] = t28;
|
|
1489
|
+
$[53] = t31;
|
|
1490
|
+
$[54] = t32;
|
|
1491
|
+
} else t32 = $[54];
|
|
1577
1492
|
let t33;
|
|
1578
|
-
if ($[
|
|
1493
|
+
if ($[55] !== t10 || $[56] !== t18 || $[57] !== t32) {
|
|
1579
1494
|
t33 = /* @__PURE__ */ jsxs("div", {
|
|
1580
1495
|
className: "flex flex-1 bg-background",
|
|
1581
1496
|
style: t10,
|
|
1582
1497
|
children: [t18, t32]
|
|
1583
1498
|
});
|
|
1584
|
-
$[
|
|
1585
|
-
$[
|
|
1586
|
-
$[
|
|
1587
|
-
$[
|
|
1588
|
-
} else t33 = $[
|
|
1499
|
+
$[55] = t10;
|
|
1500
|
+
$[56] = t18;
|
|
1501
|
+
$[57] = t32;
|
|
1502
|
+
$[58] = t33;
|
|
1503
|
+
} else t33 = $[58];
|
|
1589
1504
|
const t34 = `${zoom}%`;
|
|
1590
1505
|
let t35;
|
|
1591
|
-
if ($[
|
|
1506
|
+
if ($[59] !== t34) {
|
|
1592
1507
|
t35 = { width: t34 };
|
|
1593
|
-
$[
|
|
1594
|
-
$[
|
|
1595
|
-
} else t35 = $[
|
|
1508
|
+
$[59] = t34;
|
|
1509
|
+
$[60] = t35;
|
|
1510
|
+
} else t35 = $[60];
|
|
1596
1511
|
let t36;
|
|
1597
|
-
if ($[
|
|
1512
|
+
if ($[61] !== data || $[62] !== endTime || $[63] !== group.startTime || $[64] !== selectTraceId) {
|
|
1598
1513
|
t36 = data?.map((trace_0) => /* @__PURE__ */ jsx(TraceItem, {
|
|
1599
1514
|
traceId: trace_0.id,
|
|
1600
1515
|
traceName: trace_0.name,
|
|
@@ -1605,25 +1520,25 @@ const TraceTimelineComponent = memo((t0) => {
|
|
|
1605
1520
|
groupEndTime: endTime,
|
|
1606
1521
|
onExpand: selectTraceId
|
|
1607
1522
|
}, trace_0.id));
|
|
1608
|
-
$[
|
|
1609
|
-
$[
|
|
1610
|
-
$[
|
|
1611
|
-
$[
|
|
1612
|
-
$[
|
|
1613
|
-
} else t36 = $[
|
|
1523
|
+
$[61] = data;
|
|
1524
|
+
$[62] = endTime;
|
|
1525
|
+
$[63] = group.startTime;
|
|
1526
|
+
$[64] = selectTraceId;
|
|
1527
|
+
$[65] = t36;
|
|
1528
|
+
} else t36 = $[65];
|
|
1614
1529
|
let t37;
|
|
1615
|
-
if ($[
|
|
1530
|
+
if ($[66] !== t35 || $[67] !== t36) {
|
|
1616
1531
|
t37 = /* @__PURE__ */ jsx("div", {
|
|
1617
1532
|
className: "flex flex-col h-full",
|
|
1618
1533
|
style: t35,
|
|
1619
1534
|
children: t36
|
|
1620
1535
|
});
|
|
1621
|
-
$[
|
|
1622
|
-
$[
|
|
1623
|
-
$[
|
|
1624
|
-
} else t37 = $[
|
|
1536
|
+
$[66] = t35;
|
|
1537
|
+
$[67] = t36;
|
|
1538
|
+
$[68] = t37;
|
|
1539
|
+
} else t37 = $[68];
|
|
1625
1540
|
let t38;
|
|
1626
|
-
if ($[
|
|
1541
|
+
if ($[69] !== t33 || $[70] !== t37 || $[71] !== t8) {
|
|
1627
1542
|
t38 = /* @__PURE__ */ jsx("div", {
|
|
1628
1543
|
className: "flex flex-col flex-1 relative min-h-full min-w-[1000px]",
|
|
1629
1544
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -1632,28 +1547,28 @@ const TraceTimelineComponent = memo((t0) => {
|
|
|
1632
1547
|
children: [t33, t37]
|
|
1633
1548
|
})
|
|
1634
1549
|
});
|
|
1635
|
-
$[
|
|
1636
|
-
$[
|
|
1637
|
-
$[
|
|
1638
|
-
$[
|
|
1639
|
-
} else t38 = $[
|
|
1550
|
+
$[69] = t33;
|
|
1551
|
+
$[70] = t37;
|
|
1552
|
+
$[71] = t8;
|
|
1553
|
+
$[72] = t38;
|
|
1554
|
+
} else t38 = $[72];
|
|
1640
1555
|
let t39;
|
|
1641
|
-
if ($[
|
|
1556
|
+
if ($[73] !== selectTraceId || $[74] !== selectedTrace) {
|
|
1642
1557
|
t39 = selectedTrace && /* @__PURE__ */ jsx(TraceItemDetail, {
|
|
1643
1558
|
trace: selectedTrace,
|
|
1644
1559
|
onClose: () => selectTraceId(void 0)
|
|
1645
1560
|
});
|
|
1646
|
-
$[
|
|
1647
|
-
$[
|
|
1648
|
-
$[
|
|
1649
|
-
} else t39 = $[
|
|
1561
|
+
$[73] = selectTraceId;
|
|
1562
|
+
$[74] = selectedTrace;
|
|
1563
|
+
$[75] = t39;
|
|
1564
|
+
} else t39 = $[75];
|
|
1650
1565
|
let t40;
|
|
1651
|
-
if ($[
|
|
1566
|
+
if ($[76] !== t38 || $[77] !== t39) {
|
|
1652
1567
|
t40 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t38, t39] });
|
|
1653
|
-
$[
|
|
1654
|
-
$[
|
|
1655
|
-
$[
|
|
1656
|
-
} else t40 = $[
|
|
1568
|
+
$[76] = t38;
|
|
1569
|
+
$[77] = t39;
|
|
1570
|
+
$[78] = t40;
|
|
1571
|
+
} else t40 = $[78];
|
|
1657
1572
|
return t40;
|
|
1658
1573
|
});
|
|
1659
1574
|
TraceTimelineComponent.displayName = "TraceTimelineComponent";
|
|
@@ -1676,28 +1591,24 @@ function _temp5(prevZoom_0) {
|
|
|
1676
1591
|
//#endregion
|
|
1677
1592
|
//#region src/hooks/use-filtered-trace-groups.ts
|
|
1678
1593
|
const useFilteredTraceGroups = () => {
|
|
1679
|
-
const $ = c(
|
|
1680
|
-
if ($[0] !== "a29b076706acde25ffc4d4424df8f47d5e87949facd0d256c49dc7eec7d042a7") {
|
|
1681
|
-
for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1682
|
-
$[0] = "a29b076706acde25ffc4d4424df8f47d5e87949facd0d256c49dc7eec7d042a7";
|
|
1683
|
-
}
|
|
1594
|
+
const $ = c(4);
|
|
1684
1595
|
let t0;
|
|
1685
|
-
if ($[
|
|
1596
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1686
1597
|
t0 = {
|
|
1687
1598
|
streamName: "motia-trace-group",
|
|
1688
1599
|
groupId: "default"
|
|
1689
1600
|
};
|
|
1690
|
-
$[
|
|
1691
|
-
} else t0 = $[
|
|
1601
|
+
$[0] = t0;
|
|
1602
|
+
} else t0 = $[0];
|
|
1692
1603
|
const { data } = useStreamGroup(t0);
|
|
1693
1604
|
const search = useObservabilityStore(_temp$2);
|
|
1694
1605
|
let t1;
|
|
1695
|
-
if ($[
|
|
1606
|
+
if ($[1] !== data || $[2] !== search) {
|
|
1696
1607
|
t1 = data?.filter((group) => group.name.toLowerCase().includes(search.toLowerCase()) || group.id.toLowerCase().includes(search.toLowerCase()));
|
|
1697
|
-
$[
|
|
1698
|
-
$[
|
|
1699
|
-
$[
|
|
1700
|
-
} else t1 = $[
|
|
1608
|
+
$[1] = data;
|
|
1609
|
+
$[2] = search;
|
|
1610
|
+
$[3] = t1;
|
|
1611
|
+
} else t1 = $[3];
|
|
1701
1612
|
return t1;
|
|
1702
1613
|
};
|
|
1703
1614
|
function _temp$2(state) {
|
|
@@ -1713,24 +1624,20 @@ const variantMap = {
|
|
|
1713
1624
|
default: "default"
|
|
1714
1625
|
};
|
|
1715
1626
|
const TraceStatusBadge = memo((t0) => {
|
|
1716
|
-
const $ = c(
|
|
1717
|
-
if ($[0] !== "135bb98907459b4eb8cfbaba04a1232c86a5e95742a41c0a99dcf1a140fa89df") {
|
|
1718
|
-
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1719
|
-
$[0] = "135bb98907459b4eb8cfbaba04a1232c86a5e95742a41c0a99dcf1a140fa89df";
|
|
1720
|
-
}
|
|
1627
|
+
const $ = c(3);
|
|
1721
1628
|
const { status, duration } = t0;
|
|
1722
1629
|
const t1 = variantMap[status];
|
|
1723
1630
|
const t2 = duration && status !== "failed" ? duration : status;
|
|
1724
1631
|
let t3;
|
|
1725
|
-
if ($[
|
|
1632
|
+
if ($[0] !== t1 || $[1] !== t2) {
|
|
1726
1633
|
t3 = /* @__PURE__ */ jsx(Badge, {
|
|
1727
1634
|
variant: t1,
|
|
1728
1635
|
children: t2
|
|
1729
1636
|
});
|
|
1730
|
-
$[
|
|
1731
|
-
$[
|
|
1732
|
-
$[
|
|
1733
|
-
} else t3 = $[
|
|
1637
|
+
$[0] = t1;
|
|
1638
|
+
$[1] = t2;
|
|
1639
|
+
$[2] = t3;
|
|
1640
|
+
} else t3 = $[2];
|
|
1734
1641
|
return t3;
|
|
1735
1642
|
});
|
|
1736
1643
|
TraceStatusBadge.displayName = "TraceStatusBadge";
|
|
@@ -1738,120 +1645,116 @@ TraceStatusBadge.displayName = "TraceStatusBadge";
|
|
|
1738
1645
|
//#endregion
|
|
1739
1646
|
//#region src/components/trace-group-item.tsx
|
|
1740
1647
|
const TraceGroupItem = memo((t0) => {
|
|
1741
|
-
const $ = c(
|
|
1742
|
-
if ($[0] !== "bae7176c6d363abcd5ae856478cbdd22c5d53c5296c21141ccf8591a2ba47e9b") {
|
|
1743
|
-
for (let $i = 0; $i < 43; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1744
|
-
$[0] = "bae7176c6d363abcd5ae856478cbdd22c5d53c5296c21141ccf8591a2ba47e9b";
|
|
1745
|
-
}
|
|
1648
|
+
const $ = c(42);
|
|
1746
1649
|
const { groupId, groupName, groupStatus, groupStartTime, groupEndTime, totalSteps, activeSteps, isSelected } = t0;
|
|
1747
1650
|
const selectTraceGroupId = useObservabilityStore(_temp$1);
|
|
1748
1651
|
let t1;
|
|
1749
|
-
if ($[
|
|
1652
|
+
if ($[0] !== groupEndTime || $[1] !== groupStartTime) {
|
|
1750
1653
|
t1 = groupEndTime ? formatDuration(groupEndTime - groupStartTime) : void 0;
|
|
1751
|
-
$[
|
|
1752
|
-
$[
|
|
1753
|
-
$[
|
|
1754
|
-
} else t1 = $[
|
|
1654
|
+
$[0] = groupEndTime;
|
|
1655
|
+
$[1] = groupStartTime;
|
|
1656
|
+
$[2] = t1;
|
|
1657
|
+
} else t1 = $[2];
|
|
1755
1658
|
const duration = t1;
|
|
1756
1659
|
let t2;
|
|
1757
|
-
if ($[
|
|
1660
|
+
if ($[3] !== groupId || $[4] !== selectTraceGroupId) {
|
|
1758
1661
|
t2 = () => {
|
|
1759
1662
|
selectTraceGroupId(groupId);
|
|
1760
1663
|
};
|
|
1761
|
-
$[
|
|
1762
|
-
$[
|
|
1763
|
-
$[
|
|
1764
|
-
} else t2 = $[
|
|
1664
|
+
$[3] = groupId;
|
|
1665
|
+
$[4] = selectTraceGroupId;
|
|
1666
|
+
$[5] = t2;
|
|
1667
|
+
} else t2 = $[5];
|
|
1765
1668
|
const onSelect = t2;
|
|
1766
1669
|
const t3 = `trace-${groupId}`;
|
|
1767
1670
|
const t4 = isSelected ? "bg-muted-foreground/10" : "hover:bg-muted/70";
|
|
1768
1671
|
let t5;
|
|
1769
|
-
if ($[
|
|
1672
|
+
if ($[6] !== t4) {
|
|
1770
1673
|
t5 = cn("motia-trace-group cursor-pointer transition-colors w-full text-left", t4);
|
|
1771
|
-
$[
|
|
1772
|
-
$[
|
|
1773
|
-
} else t5 = $[
|
|
1674
|
+
$[6] = t4;
|
|
1675
|
+
$[7] = t5;
|
|
1676
|
+
} else t5 = $[7];
|
|
1774
1677
|
let t6;
|
|
1775
|
-
if ($[
|
|
1678
|
+
if ($[8] !== groupName) {
|
|
1776
1679
|
t6 = /* @__PURE__ */ jsx("span", {
|
|
1777
1680
|
className: "font-semibold text-lg truncate flex-1 min-w-0",
|
|
1778
1681
|
children: groupName
|
|
1779
1682
|
});
|
|
1780
|
-
$[
|
|
1781
|
-
$[
|
|
1782
|
-
} else t6 = $[
|
|
1683
|
+
$[8] = groupName;
|
|
1684
|
+
$[9] = t6;
|
|
1685
|
+
} else t6 = $[9];
|
|
1783
1686
|
let t7;
|
|
1784
|
-
if ($[
|
|
1687
|
+
if ($[10] !== duration || $[11] !== groupStatus) {
|
|
1785
1688
|
t7 = /* @__PURE__ */ jsx(TraceStatusBadge, {
|
|
1786
1689
|
status: groupStatus,
|
|
1787
1690
|
duration
|
|
1788
1691
|
});
|
|
1789
|
-
$[
|
|
1790
|
-
$[
|
|
1791
|
-
$[
|
|
1792
|
-
} else t7 = $[
|
|
1692
|
+
$[10] = duration;
|
|
1693
|
+
$[11] = groupStatus;
|
|
1694
|
+
$[12] = t7;
|
|
1695
|
+
} else t7 = $[12];
|
|
1793
1696
|
let t8;
|
|
1794
|
-
if ($[
|
|
1697
|
+
if ($[13] !== t6 || $[14] !== t7) {
|
|
1795
1698
|
t8 = /* @__PURE__ */ jsxs("div", {
|
|
1796
1699
|
className: "flex flex-row justify-between items-center gap-2",
|
|
1797
1700
|
children: [t6, t7]
|
|
1798
1701
|
});
|
|
1799
|
-
$[
|
|
1800
|
-
$[
|
|
1801
|
-
$[
|
|
1802
|
-
} else t8 = $[
|
|
1702
|
+
$[13] = t6;
|
|
1703
|
+
$[14] = t7;
|
|
1704
|
+
$[15] = t8;
|
|
1705
|
+
} else t8 = $[15];
|
|
1803
1706
|
let t9;
|
|
1804
|
-
if ($[
|
|
1707
|
+
if ($[16] !== groupId) {
|
|
1805
1708
|
t9 = /* @__PURE__ */ jsx("div", {
|
|
1806
1709
|
"data-testid": "trace-id",
|
|
1807
1710
|
className: "text-xs text-muted-foreground font-mono tracking-[1px]",
|
|
1808
1711
|
children: groupId
|
|
1809
1712
|
});
|
|
1810
|
-
$[
|
|
1811
|
-
$[
|
|
1812
|
-
} else t9 = $[
|
|
1713
|
+
$[16] = groupId;
|
|
1714
|
+
$[17] = t9;
|
|
1715
|
+
} else t9 = $[17];
|
|
1813
1716
|
let t10;
|
|
1814
|
-
if ($[
|
|
1717
|
+
if ($[18] !== totalSteps) {
|
|
1815
1718
|
t10 = /* @__PURE__ */ jsxs("span", { children: [totalSteps, " steps"] });
|
|
1816
|
-
$[
|
|
1817
|
-
$[
|
|
1818
|
-
} else t10 = $[
|
|
1719
|
+
$[18] = totalSteps;
|
|
1720
|
+
$[19] = t10;
|
|
1721
|
+
} else t10 = $[19];
|
|
1819
1722
|
let t11;
|
|
1820
|
-
if ($[
|
|
1723
|
+
if ($[20] !== t10 || $[21] !== t9) {
|
|
1821
1724
|
t11 = /* @__PURE__ */ jsxs("div", {
|
|
1822
1725
|
className: "flex justify-between",
|
|
1823
1726
|
children: [t9, t10]
|
|
1824
1727
|
});
|
|
1825
|
-
$[
|
|
1826
|
-
$[
|
|
1827
|
-
$[
|
|
1828
|
-
} else t11 = $[
|
|
1728
|
+
$[20] = t10;
|
|
1729
|
+
$[21] = t9;
|
|
1730
|
+
$[22] = t11;
|
|
1731
|
+
} else t11 = $[22];
|
|
1829
1732
|
let t12;
|
|
1830
|
-
if ($[
|
|
1733
|
+
if ($[23] !== groupStartTime) {
|
|
1831
1734
|
t12 = formatDistanceToNow(groupStartTime);
|
|
1832
|
-
$[
|
|
1833
|
-
$[
|
|
1834
|
-
} else t12 = $[
|
|
1735
|
+
$[23] = groupStartTime;
|
|
1736
|
+
$[24] = t12;
|
|
1737
|
+
} else t12 = $[24];
|
|
1835
1738
|
let t13;
|
|
1836
|
-
if ($[
|
|
1739
|
+
if ($[25] !== t12) {
|
|
1837
1740
|
t13 = /* @__PURE__ */ jsxs("div", {
|
|
1838
1741
|
className: "flex justify-between",
|
|
1839
1742
|
children: [t12, " ago"]
|
|
1840
1743
|
});
|
|
1841
|
-
$[
|
|
1842
|
-
$[
|
|
1843
|
-
} else t13 = $[
|
|
1744
|
+
$[25] = t12;
|
|
1745
|
+
$[26] = t13;
|
|
1746
|
+
} else t13 = $[26];
|
|
1844
1747
|
let t14;
|
|
1845
|
-
if ($[
|
|
1748
|
+
if ($[27] !== activeSteps) {
|
|
1846
1749
|
t14 = activeSteps > 0 && /* @__PURE__ */ jsxs("div", {
|
|
1847
1750
|
className: "text-blue-600",
|
|
1848
1751
|
children: [activeSteps, " active"]
|
|
1849
1752
|
});
|
|
1850
|
-
$[
|
|
1851
|
-
$[
|
|
1852
|
-
} else t14 = $[
|
|
1753
|
+
$[27] = activeSteps;
|
|
1754
|
+
$[28] = t14;
|
|
1755
|
+
} else t14 = $[28];
|
|
1853
1756
|
let t15;
|
|
1854
|
-
if ($[
|
|
1757
|
+
if ($[29] !== t11 || $[30] !== t13 || $[31] !== t14) {
|
|
1855
1758
|
t15 = /* @__PURE__ */ jsxs("div", {
|
|
1856
1759
|
className: "text-xs text-muted-foreground space-y-1",
|
|
1857
1760
|
children: [
|
|
@@ -1860,23 +1763,23 @@ const TraceGroupItem = memo((t0) => {
|
|
|
1860
1763
|
t14
|
|
1861
1764
|
]
|
|
1862
1765
|
});
|
|
1863
|
-
$[
|
|
1864
|
-
$[
|
|
1865
|
-
$[
|
|
1866
|
-
$[
|
|
1867
|
-
} else t15 = $[
|
|
1766
|
+
$[29] = t11;
|
|
1767
|
+
$[30] = t13;
|
|
1768
|
+
$[31] = t14;
|
|
1769
|
+
$[32] = t15;
|
|
1770
|
+
} else t15 = $[32];
|
|
1868
1771
|
let t16;
|
|
1869
|
-
if ($[
|
|
1772
|
+
if ($[33] !== t15 || $[34] !== t8) {
|
|
1870
1773
|
t16 = /* @__PURE__ */ jsxs("div", {
|
|
1871
1774
|
className: "p-3 flex flex-col gap-1",
|
|
1872
1775
|
children: [t8, t15]
|
|
1873
1776
|
});
|
|
1874
|
-
$[
|
|
1875
|
-
$[
|
|
1876
|
-
$[
|
|
1877
|
-
} else t16 = $[
|
|
1777
|
+
$[33] = t15;
|
|
1778
|
+
$[34] = t8;
|
|
1779
|
+
$[35] = t16;
|
|
1780
|
+
} else t16 = $[35];
|
|
1878
1781
|
let t17;
|
|
1879
|
-
if ($[
|
|
1782
|
+
if ($[36] !== groupId || $[37] !== onSelect || $[38] !== t16 || $[39] !== t3 || $[40] !== t5) {
|
|
1880
1783
|
t17 = /* @__PURE__ */ jsx("button", {
|
|
1881
1784
|
type: "button",
|
|
1882
1785
|
"data-testid": t3,
|
|
@@ -1884,13 +1787,13 @@ const TraceGroupItem = memo((t0) => {
|
|
|
1884
1787
|
onClick: onSelect,
|
|
1885
1788
|
children: t16
|
|
1886
1789
|
}, groupId);
|
|
1887
|
-
$[
|
|
1888
|
-
$[
|
|
1889
|
-
$[
|
|
1890
|
-
$[
|
|
1891
|
-
$[
|
|
1892
|
-
$[
|
|
1893
|
-
} else t17 = $[
|
|
1790
|
+
$[36] = groupId;
|
|
1791
|
+
$[37] = onSelect;
|
|
1792
|
+
$[38] = t16;
|
|
1793
|
+
$[39] = t3;
|
|
1794
|
+
$[40] = t5;
|
|
1795
|
+
$[41] = t17;
|
|
1796
|
+
} else t17 = $[41];
|
|
1894
1797
|
return t17;
|
|
1895
1798
|
});
|
|
1896
1799
|
TraceGroupItem.displayName = "TraceGroupItem";
|
|
@@ -1901,11 +1804,7 @@ function _temp$1(state) {
|
|
|
1901
1804
|
//#endregion
|
|
1902
1805
|
//#region src/components/traces-groups.tsx
|
|
1903
1806
|
const TracesGroups = memo(() => {
|
|
1904
|
-
const $ = c(
|
|
1905
|
-
if ($[0] !== "2bddedc9dbf436ff7f1225c5b31bfd84c69748b5b6b8e426fabda2b9e624500a") {
|
|
1906
|
-
for (let $i = 0; $i < 18; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1907
|
-
$[0] = "2bddedc9dbf436ff7f1225c5b31bfd84c69748b5b6b8e426fabda2b9e624500a";
|
|
1908
|
-
}
|
|
1807
|
+
const $ = c(17);
|
|
1909
1808
|
const groups = useFilteredTraceGroups();
|
|
1910
1809
|
const selectedGroupId = useObservabilityStore(_temp);
|
|
1911
1810
|
const selectTraceGroupId = useObservabilityStore(_temp2);
|
|
@@ -1921,37 +1820,37 @@ const TracesGroups = memo(() => {
|
|
|
1921
1820
|
}
|
|
1922
1821
|
const lastRunningGroupId = t0;
|
|
1923
1822
|
let t1;
|
|
1924
|
-
if ($[
|
|
1823
|
+
if ($[0] !== groupsLength || $[1] !== lastRunningGroupId || $[2] !== selectTraceGroupId || $[3] !== selectedGroupId) {
|
|
1925
1824
|
t1 = () => {
|
|
1926
1825
|
if (lastRunningGroupId && lastRunningGroupId !== selectedGroupId) selectTraceGroupId(lastRunningGroupId);
|
|
1927
1826
|
else if (!lastRunningGroupId && !groupsLength && selectedGroupId) selectTraceGroupId("");
|
|
1928
1827
|
};
|
|
1929
|
-
$[
|
|
1930
|
-
$[
|
|
1931
|
-
$[
|
|
1932
|
-
$[
|
|
1933
|
-
$[
|
|
1934
|
-
} else t1 = $[
|
|
1828
|
+
$[0] = groupsLength;
|
|
1829
|
+
$[1] = lastRunningGroupId;
|
|
1830
|
+
$[2] = selectTraceGroupId;
|
|
1831
|
+
$[3] = selectedGroupId;
|
|
1832
|
+
$[4] = t1;
|
|
1833
|
+
} else t1 = $[4];
|
|
1935
1834
|
let t2;
|
|
1936
|
-
if ($[
|
|
1835
|
+
if ($[5] !== groupsLength || $[6] !== lastRunningGroupId) {
|
|
1937
1836
|
t2 = [lastRunningGroupId, groupsLength];
|
|
1938
|
-
$[
|
|
1939
|
-
$[
|
|
1940
|
-
$[
|
|
1941
|
-
} else t2 = $[
|
|
1837
|
+
$[5] = groupsLength;
|
|
1838
|
+
$[6] = lastRunningGroupId;
|
|
1839
|
+
$[7] = t2;
|
|
1840
|
+
} else t2 = $[7];
|
|
1942
1841
|
useEffect(t1, t2);
|
|
1943
1842
|
let t3;
|
|
1944
|
-
if ($[
|
|
1843
|
+
if ($[8] !== groups) {
|
|
1945
1844
|
t3 = [...groups].reverse();
|
|
1946
|
-
$[
|
|
1947
|
-
$[
|
|
1948
|
-
} else t3 = $[
|
|
1845
|
+
$[8] = groups;
|
|
1846
|
+
$[9] = t3;
|
|
1847
|
+
} else t3 = $[9];
|
|
1949
1848
|
const reversedGroups = t3;
|
|
1950
1849
|
if (!groups || groups.length === 0) return null;
|
|
1951
1850
|
let t4;
|
|
1952
|
-
if ($[
|
|
1851
|
+
if ($[10] !== reversedGroups || $[11] !== selectedGroupId) {
|
|
1953
1852
|
let t5$1;
|
|
1954
|
-
if ($[
|
|
1853
|
+
if ($[13] !== selectedGroupId) {
|
|
1955
1854
|
t5$1 = (group) => /* @__PURE__ */ jsx(TraceGroupItem, {
|
|
1956
1855
|
groupId: group.id,
|
|
1957
1856
|
groupName: group.name,
|
|
@@ -1962,23 +1861,23 @@ const TracesGroups = memo(() => {
|
|
|
1962
1861
|
activeSteps: group.metadata.activeSteps,
|
|
1963
1862
|
isSelected: selectedGroupId === group.id
|
|
1964
1863
|
}, group.id);
|
|
1965
|
-
$[
|
|
1966
|
-
$[
|
|
1967
|
-
} else t5$1 = $[
|
|
1864
|
+
$[13] = selectedGroupId;
|
|
1865
|
+
$[14] = t5$1;
|
|
1866
|
+
} else t5$1 = $[14];
|
|
1968
1867
|
t4 = reversedGroups.map(t5$1);
|
|
1969
|
-
$[
|
|
1970
|
-
$[
|
|
1971
|
-
$[
|
|
1972
|
-
} else t4 = $[
|
|
1868
|
+
$[10] = reversedGroups;
|
|
1869
|
+
$[11] = selectedGroupId;
|
|
1870
|
+
$[12] = t4;
|
|
1871
|
+
} else t4 = $[12];
|
|
1973
1872
|
let t5;
|
|
1974
|
-
if ($[
|
|
1873
|
+
if ($[15] !== t4) {
|
|
1975
1874
|
t5 = /* @__PURE__ */ jsx("div", {
|
|
1976
1875
|
className: "overflow-auto",
|
|
1977
1876
|
children: t4
|
|
1978
1877
|
});
|
|
1979
|
-
$[
|
|
1980
|
-
$[
|
|
1981
|
-
} else t5 = $[
|
|
1878
|
+
$[15] = t4;
|
|
1879
|
+
$[16] = t5;
|
|
1880
|
+
} else t5 = $[16];
|
|
1982
1881
|
return t5;
|
|
1983
1882
|
});
|
|
1984
1883
|
TracesGroups.displayName = "TracesGroups";
|
|
@@ -1992,27 +1891,23 @@ function _temp2(state_0) {
|
|
|
1992
1891
|
//#endregion
|
|
1993
1892
|
//#region src/components/observability-page.tsx
|
|
1994
1893
|
const ObservabilityPage = memo(() => {
|
|
1995
|
-
const $ = c(
|
|
1996
|
-
if ($[0] !== "eb4316941d86db32e402fdb6a9fa0b346d5506cfc5da93f56a7fbdbc084ca168") {
|
|
1997
|
-
for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1998
|
-
$[0] = "eb4316941d86db32e402fdb6a9fa0b346d5506cfc5da93f56a7fbdbc084ca168";
|
|
1999
|
-
}
|
|
1894
|
+
const $ = c(3);
|
|
2000
1895
|
let t0;
|
|
2001
|
-
if ($[
|
|
1896
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2002
1897
|
t0 = /* @__PURE__ */ jsx(SearchBar, {});
|
|
2003
|
-
$[
|
|
2004
|
-
} else t0 = $[
|
|
1898
|
+
$[0] = t0;
|
|
1899
|
+
} else t0 = $[0];
|
|
2005
1900
|
let t1;
|
|
2006
|
-
if ($[
|
|
1901
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2007
1902
|
t1 = /* @__PURE__ */ jsx("div", {
|
|
2008
1903
|
className: "w-[300px] border-r border-border overflow-auto h-full",
|
|
2009
1904
|
"data-testid": "traces-container",
|
|
2010
1905
|
children: /* @__PURE__ */ jsx(TracesGroups, {})
|
|
2011
1906
|
});
|
|
2012
|
-
$[
|
|
2013
|
-
} else t1 = $[
|
|
1907
|
+
$[1] = t1;
|
|
1908
|
+
} else t1 = $[1];
|
|
2014
1909
|
let t2;
|
|
2015
|
-
if ($[
|
|
1910
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2016
1911
|
t2 = /* @__PURE__ */ jsxs("div", {
|
|
2017
1912
|
className: "grid grid-rows-[auto_1fr] h-full",
|
|
2018
1913
|
children: [t0, /* @__PURE__ */ jsxs("div", {
|
|
@@ -2024,8 +1919,8 @@ const ObservabilityPage = memo(() => {
|
|
|
2024
1919
|
})]
|
|
2025
1920
|
})]
|
|
2026
1921
|
});
|
|
2027
|
-
$[
|
|
2028
|
-
} else t2 = $[
|
|
1922
|
+
$[2] = t2;
|
|
1923
|
+
} else t2 = $[2];
|
|
2029
1924
|
return t2;
|
|
2030
1925
|
});
|
|
2031
1926
|
ObservabilityPage.displayName = "ObservabilityPage";
|
|
@@ -2033,19 +1928,15 @@ ObservabilityPage.displayName = "ObservabilityPage";
|
|
|
2033
1928
|
//#endregion
|
|
2034
1929
|
//#region src/components/observability-tab-label.tsx
|
|
2035
1930
|
const ObservabilityTabLabel = memo(() => {
|
|
2036
|
-
const $ = c(
|
|
2037
|
-
if ($[0] !== "12b48555066a60a0ff63053b795596dd6b1058a64ec587d2a2a72e7129e319e3") {
|
|
2038
|
-
for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2039
|
-
$[0] = "12b48555066a60a0ff63053b795596dd6b1058a64ec587d2a2a72e7129e319e3";
|
|
2040
|
-
}
|
|
1931
|
+
const $ = c(1);
|
|
2041
1932
|
let t0;
|
|
2042
|
-
if ($[
|
|
1933
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2043
1934
|
t0 = /* @__PURE__ */ jsxs("div", {
|
|
2044
1935
|
"data-testid": "observability-link",
|
|
2045
1936
|
children: [/* @__PURE__ */ jsx(GanttChartSquare, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", { children: "Tracing" })]
|
|
2046
1937
|
});
|
|
2047
|
-
$[
|
|
2048
|
-
} else t0 = $[
|
|
1938
|
+
$[0] = t0;
|
|
1939
|
+
} else t0 = $[0];
|
|
2049
1940
|
return t0;
|
|
2050
1941
|
});
|
|
2051
1942
|
ObservabilityTabLabel.displayName = "ObservabilityTabLabel";
|