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