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