@motiadev/plugin-observability 0.14.0-beta.165-246284 → 0.14.0-beta.165-076789

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