@gravitee/gamma-lib-observability 1.17.0 → 1.18.0

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
@@ -1,12 +1,12 @@
1
1
  import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./filter-providers-context.js";
2
- import { Component as y, Fragment as b, Suspense as x, createContext as S, createElement as C, forwardRef as ee, lazy as te, memo as ne, useCallback as w, useContext as T, useEffect as E, useId as re, useMemo as D, useRef as O, useState as k } from "react";
3
- import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
4
- import { keepPreviousData as ie, useQueries as N, useQuery as P } from "@tanstack/react-query";
5
- import { Accordion as ae, AccordionContent as oe, AccordionItem as se, AccordionTrigger as ce, Badge as F, Button as I, Calendar as le, Card as ue, Combobox as de, ComboboxChip as fe, ComboboxChips as pe, ComboboxChipsInput as me, ComboboxContent as he, ComboboxEmpty as ge, ComboboxItem as _e, ComboboxList as ve, ComboboxValue as ye, DataTable as be, DataTablePagination as xe, Empty as Se, EmptyDescription as Ce, EmptyHeader as we, EmptyMedia as Te, EmptyTitle as Ee, Field as De, FieldError as Oe, FieldLabel as ke, Input as Ae, Popover as je, PopoverAnchor as Me, PopoverContent as Ne, PopoverTrigger as Pe, ScrollArea as Fe, Select as Ie, SelectContent as Le, SelectItem as Re, SelectTrigger as ze, SelectValue as Be, Separator as Ve, Sheet as He, SheetContent as Ue, SheetDescription as We, SheetTitle as Ge, Skeleton as L, Spinner as Ke, Tabs as qe, TabsContent as Je, TabsList as Ye, TabsTrigger as Xe, ToggleGroup as Ze, ToggleGroupItem as Qe, Tooltip as R, TooltipContent as z, TooltipProvider as B, TooltipTrigger as V, cn as H, toast as U, useComboboxAnchor as $e } from "@gravitee/graphene-core";
6
- import { AlertCircleIcon as et, ArrowLeftIcon as tt, ArrowRightIcon as nt, BrainCircuitIcon as rt, CableIcon as it, CalendarIcon as at, ChartLineIcon as ot, ChevronDownIcon as st, ChevronRightIcon as ct, CircleHelpIcon as lt, CopyIcon as ut, ExpandIcon as dt, FileTextIcon as ft, FilterIcon as pt, FunnelXIcon as mt, GlobeIcon as ht, MessageSquareIcon as gt, PanelLeftIcon as _t, PlusIcon as vt, RefreshCwIcon as yt, SearchIcon as bt, WaypointsIcon as xt, WebhookIcon as St, XIcon as Ct } from "@gravitee/graphene-core/icons";
7
- import { DashboardGrid as wt, DashboardWidget as Tt } from "@gravitee/graphene-charts/dashboard-grid";
8
- import { AreaSeries as Et, BarChart as Dt, BarSeries as Ot, CartesianChart as kt, ChartContainer as At, ChartLegend as jt, ChartLegendContent as Mt, ChartTooltip as Nt, ChartTooltipContent as Pt, DoughnutChart as Ft, Grid as It, LineSeries as Lt, Metric as Rt, MetricGroup as zt, ReferenceLine as Bt, TraceWaterfall as Vt, XAxis as Ht, YAxis as Ut } from "@gravitee/graphene-charts";
9
- import { Link as Wt, Navigate as Gt, Route as Kt, Routes as qt, useLocation as Jt, useNavigate as Yt, useParams as Xt, useSearchParams as Zt } from "react-router-dom";
2
+ import { Component as y, Fragment as b, Suspense as x, createContext as S, createElement as ee, forwardRef as te, lazy as ne, memo as re, useCallback as C, useContext as w, useEffect as T, useId as ie, useMemo as E, useRef as D, useState as O } from "react";
3
+ import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
4
+ import { keepPreviousData as ae, useQueries as M, useQuery as N } from "@tanstack/react-query";
5
+ import { Accordion as oe, AccordionContent as se, AccordionItem as ce, AccordionTrigger as le, Badge as P, Button as F, Calendar as ue, Card as de, Combobox as fe, ComboboxChip as pe, ComboboxChips as me, ComboboxChipsInput as he, ComboboxContent as ge, ComboboxEmpty as _e, ComboboxItem as ve, ComboboxList as ye, ComboboxValue as be, DataTable as xe, DataTablePagination as Se, Empty as Ce, EmptyDescription as we, EmptyHeader as Te, EmptyMedia as Ee, EmptyTitle as De, Field as Oe, FieldError as ke, FieldLabel as Ae, Input as je, Popover as Me, PopoverAnchor as Ne, PopoverContent as Pe, PopoverTrigger as Fe, ScrollArea as Ie, Select as Le, SelectContent as Re, SelectItem as ze, SelectTrigger as Be, SelectValue as Ve, Separator as He, Sheet as Ue, SheetContent as We, SheetDescription as Ge, SheetTitle as Ke, Skeleton as I, Spinner as qe, Tabs as Je, TabsContent as Ye, TabsList as Xe, TabsTrigger as Ze, ToggleGroup as Qe, ToggleGroupItem as $e, Tooltip as L, TooltipContent as R, TooltipProvider as z, TooltipTrigger as B, cn as V, toast as H, useComboboxAnchor as et } from "@gravitee/graphene-core";
6
+ import { AlertCircleIcon as tt, ArrowLeftIcon as nt, ArrowRightIcon as rt, BrainCircuitIcon as it, CableIcon as at, CalendarIcon as ot, ChartLineIcon as st, ChevronDownIcon as ct, ChevronRightIcon as lt, CircleHelpIcon as ut, CopyIcon as dt, ExpandIcon as ft, FileTextIcon as pt, FilterIcon as mt, FunnelXIcon as ht, GlobeIcon as gt, MessageSquareIcon as _t, PanelLeftIcon as vt, PlusIcon as yt, RefreshCwIcon as bt, SearchIcon as xt, WaypointsIcon as St, WebhookIcon as Ct, XIcon as wt } from "@gravitee/graphene-core/icons";
7
+ import { DashboardGrid as Tt, DashboardWidget as Et } from "@gravitee/graphene-charts/dashboard-grid";
8
+ import { AreaSeries as Dt, BarChart as Ot, BarSeries as kt, CartesianChart as At, ChartContainer as jt, ChartLegend as Mt, ChartLegendContent as Nt, ChartTooltip as Pt, ChartTooltipContent as Ft, DoughnutChart as It, Grid as Lt, LineSeries as Rt, Metric as zt, MetricGroup as Bt, ReferenceLine as Vt, TraceWaterfall as Ht, XAxis as Ut, YAxis as Wt } from "@gravitee/graphene-charts";
9
+ import { Link as Gt, Navigate as Kt, Route as U, Routes as qt, useLocation as Jt, useNavigate as Yt, useParams as Xt, useSearchParams as Zt } from "react-router-dom";
10
10
  //#region src/types/guards.ts
11
11
  function Qt(e) {
12
12
  return e.type === "cartesian";
@@ -33,7 +33,7 @@ function W(e) {
33
33
  //#region src/providers/live-refresh-provider.tsx
34
34
  var an = 6e4, on = S(null);
35
35
  function sn({ config: e, children: t }) {
36
- let n = e?.intervalMs ?? 6e4, [r, i] = k(e?.defaultEnabled ?? !0), [a, o] = k(!1), s = w(() => i((e) => !e), []), c = D(() => ({
36
+ let n = e?.intervalMs ?? 6e4, [r, i] = O(e?.defaultEnabled ?? !0), [a, o] = O(!1), s = C(() => i((e) => !e), []), c = E(() => ({
37
37
  isLive: r,
38
38
  intervalMs: n,
39
39
  isFetching: a,
@@ -45,42 +45,42 @@ function sn({ config: e, children: t }) {
45
45
  a,
46
46
  s
47
47
  ]);
48
- return /* @__PURE__ */ j(on.Provider, {
48
+ return /* @__PURE__ */ A(on.Provider, {
49
49
  value: c,
50
50
  children: t
51
51
  });
52
52
  }
53
53
  function cn() {
54
- let e = T(on);
54
+ let e = w(on);
55
55
  if (!e) throw Error("[gamma-lib-observability] useLiveRefresh must be used within a <LiveRefreshProvider>. Wrap your component tree with <LiveRefreshProvider>.");
56
56
  return e;
57
57
  }
58
58
  function ln() {
59
- return T(on);
59
+ return w(on);
60
60
  }
61
61
  //#endregion
62
62
  //#region src/providers/FilterSourceProvider.tsx
63
63
  var un = S(void 0);
64
64
  function dn({ source: e, children: t }) {
65
- return /* @__PURE__ */ j(un.Provider, {
65
+ return /* @__PURE__ */ A(un.Provider, {
66
66
  value: e,
67
67
  children: t
68
68
  });
69
69
  }
70
70
  function fn() {
71
- return T(un);
71
+ return w(un);
72
72
  }
73
73
  //#endregion
74
74
  //#region src/providers/http-provider.tsx
75
75
  var pn = S(void 0);
76
76
  function mn({ options: e, children: t }) {
77
- return /* @__PURE__ */ j(pn.Provider, {
77
+ return /* @__PURE__ */ A(pn.Provider, {
78
78
  value: e,
79
79
  children: t
80
80
  });
81
81
  }
82
82
  function hn() {
83
- return T(pn);
83
+ return w(pn);
84
84
  }
85
85
  //#endregion
86
86
  //#region src/hooks/constants.ts
@@ -187,14 +187,14 @@ function q(...e) {
187
187
  //#region src/providers/ContextFiltersProvider.tsx
188
188
  var yn = S([]);
189
189
  function bn({ filters: e, children: t }) {
190
- let n = D(() => e, [e]);
191
- return /* @__PURE__ */ j(yn.Provider, {
190
+ let n = E(() => e, [e]);
191
+ return /* @__PURE__ */ A(yn.Provider, {
192
192
  value: n,
193
193
  children: t
194
194
  });
195
195
  }
196
196
  function J() {
197
- return T(yn);
197
+ return w(yn);
198
198
  }
199
199
  //#endregion
200
200
  //#region src/hooks/use-facets-query.ts
@@ -208,7 +208,7 @@ function xn(e) {
208
208
  }
209
209
  function Sn(e, t) {
210
210
  let r = n(), i = q(J(), e.filters), a = xn(e);
211
- return P({
211
+ return N({
212
212
  queryKey: K.facets(e.by, e.timeRange, i, {
213
213
  metrics: a,
214
214
  ranges: e.ranges,
@@ -233,7 +233,7 @@ function Sn(e, t) {
233
233
  //#endregion
234
234
  //#region src/hooks/use-log-detail-query.ts
235
235
  function Cn(e) {
236
- let t = r(), n = typeof t.getById == "function", i = P({
236
+ let t = r(), n = typeof t.getById == "function", i = N({
237
237
  queryKey: K.logDetail(e.id ?? ""),
238
238
  queryFn: ({ signal: n }) => t.getById(e.id, n),
239
239
  staleTime: G,
@@ -253,7 +253,7 @@ function Cn(e) {
253
253
  //#region src/hooks/use-logs-query.ts
254
254
  function wn(e, t) {
255
255
  let n = r(), i = q(J(), e.filters);
256
- return P({
256
+ return N({
257
257
  queryKey: K.logs(e.timeRange, i, e.search),
258
258
  queryFn: ({ signal: t }) => n.fetchLogs({
259
259
  timeRange: e.timeRange,
@@ -270,11 +270,11 @@ function wn(e, t) {
270
270
  //#region src/hooks/use-logs-paged-query.ts
271
271
  var Tn = 25, En = [];
272
272
  function Dn(e) {
273
- let { timeRange: t, filters: n, search: i, pageSize: a = Tn, enabled: o } = e, s = r(), c = q(J(), n), [l, u] = k(1), [d, f] = k(a), p = K.logs(t, c, i), m = JSON.stringify(p), h = O(m);
274
- E(() => {
273
+ let { timeRange: t, filters: n, search: i, pageSize: a = Tn, enabled: o } = e, s = r(), c = q(J(), n), [l, u] = O(1), [d, f] = O(a), p = K.logs(t, c, i), m = JSON.stringify(p), h = D(m);
274
+ T(() => {
275
275
  h.current !== m && (h.current = m, u(1));
276
276
  }, [m]);
277
- let g = P({
277
+ let g = N({
278
278
  queryKey: [...p, {
279
279
  page: l,
280
280
  pageSize: d
@@ -312,7 +312,7 @@ function Dn(e) {
312
312
  //#region src/hooks/use-measures-query.ts
313
313
  function On(e, t) {
314
314
  let r = n(), i = q(J(), e.filters);
315
- return P({
315
+ return N({
316
316
  queryKey: K.measures(e.metrics, e.timeRange, i),
317
317
  queryFn: ({ signal: t }) => r.fetchMeasures({
318
318
  metrics: e.metrics,
@@ -321,7 +321,7 @@ function On(e, t) {
321
321
  signal: t
322
322
  }),
323
323
  staleTime: G,
324
- placeholderData: ie,
324
+ placeholderData: ae,
325
325
  enabled: e.enabled,
326
326
  ...t
327
327
  });
@@ -329,16 +329,16 @@ function On(e, t) {
329
329
  //#endregion
330
330
  //#region src/hooks/use-resolve-filter-labels.ts
331
331
  function kn(e, t) {
332
- let n = D(() => e.filter((e) => e.value.length > 0 && !e.valueLabels?.length), [e]), r = D(() => n.map((e) => ({
332
+ let n = E(() => e.filter((e) => e.value.length > 0 && !e.valueLabels?.length), [e]), r = E(() => n.map((e) => ({
333
333
  filterName: e.field,
334
334
  ids: e.value
335
- })), [n]), i = D(() => JSON.stringify(r), [r]), { data: a } = P({
335
+ })), [n]), i = E(() => JSON.stringify(r), [r]), { data: a } = N({
336
336
  queryKey: K.filterLabels(i),
337
337
  queryFn: ({ signal: e }) => t.resolveLabels(r, e),
338
338
  enabled: !!t && r.length > 0,
339
339
  staleTime: 300 * 1e3
340
340
  });
341
- return D(() => !a || r.length === 0 ? e : e.map((e) => {
341
+ return E(() => !a || r.length === 0 ? e : e.map((e) => {
342
342
  if (e.valueLabels?.length) return e;
343
343
  let t = a[e.field];
344
344
  if (!t) return e;
@@ -357,7 +357,7 @@ function kn(e, t) {
357
357
  //#region src/hooks/use-time-series-query.ts
358
358
  function An(e, t) {
359
359
  let r = n(), i = q(J(), e.filters);
360
- return P({
360
+ return N({
361
361
  queryKey: K.timeSeries(e.metrics, e.timeRange, e.interval, i, e.by, e.limit, e.ranges),
362
362
  queryFn: ({ signal: t }) => r.fetchTimeSeries({
363
363
  metrics: e.metrics,
@@ -370,7 +370,7 @@ function An(e, t) {
370
370
  signal: t
371
371
  }),
372
372
  staleTime: G,
373
- placeholderData: ie,
373
+ placeholderData: ae,
374
374
  enabled: e.enabled,
375
375
  ...t
376
376
  });
@@ -378,7 +378,7 @@ function An(e, t) {
378
378
  //#endregion
379
379
  //#region src/hooks/use-trace-detail-query.ts
380
380
  function jn(e) {
381
- let { apiId: t, traceId: n, enabled: r, keepPreviousData: i } = e, a = d(), o = P({
381
+ let { apiId: t, traceId: n, enabled: r, keepPreviousData: i } = e, a = d(), o = N({
382
382
  queryKey: K.traceDetail(t, n ?? ""),
383
383
  queryFn: ({ signal: e }) => {
384
384
  if (!n) throw Error("traceId is required but was called with a falsy value");
@@ -390,7 +390,7 @@ function jn(e) {
390
390
  },
391
391
  staleTime: G,
392
392
  enabled: !!n && r !== !1,
393
- placeholderData: i ? ie : void 0
393
+ placeholderData: i ? ae : void 0
394
394
  });
395
395
  return {
396
396
  data: o.data,
@@ -405,11 +405,11 @@ function jn(e) {
405
405
  //#region src/hooks/use-traces-paged-query.ts
406
406
  var Mn = 25, Nn = [];
407
407
  function Pn(e) {
408
- let { apiId: t, timeRange: n, filters: r, pageSize: i = Mn, enabled: a } = e, o = d(), [s, c] = k(1), [l, u] = k(i), f = K.traces(t, n, r), p = JSON.stringify(f), m = O(p);
409
- E(() => {
408
+ let { apiId: t, timeRange: n, filters: r, pageSize: i = Mn, enabled: a } = e, o = d(), [s, c] = O(1), [l, u] = O(i), f = K.traces(t, n, r), p = JSON.stringify(f), m = D(p);
409
+ T(() => {
410
410
  m.current !== p && (m.current = p, c(1));
411
411
  }, [p]);
412
- let h = P({
412
+ let h = N({
413
413
  queryKey: [...f, {
414
414
  page: s,
415
415
  pageSize: l
@@ -619,7 +619,7 @@ function nr(e, t) {
619
619
  return i.setHours(n ?? 0, r ?? 0, 0, 0), i.getTime();
620
620
  }
621
621
  function rr({ value: e, onChange: t, disabled: n = !1, showTimezone: r = !1, className: i }) {
622
- let a = re(), o = `${a}-from`, s = `${a}-to`, [c, l] = k(!1), [u, d] = k("relative"), [f, p] = k(void 0), [m, h] = k("00:00"), [g, _] = k("23:59"), v = nr(f?.from, m), y = nr(f?.to, g), b = v !== void 0 && y !== void 0 && v >= y, x = v !== void 0 && y !== void 0 && !b;
622
+ let a = ie(), o = `${a}-from`, s = `${a}-to`, [c, l] = O(!1), [u, d] = O("relative"), [f, p] = O(void 0), [m, h] = O("00:00"), [g, _] = O("23:59"), v = nr(f?.from, m), y = nr(f?.to, g), b = v !== void 0 && y !== void 0 && v >= y, x = v !== void 0 && y !== void 0 && !b;
623
623
  function S(t) {
624
624
  if (l(t), t && (d(e.type === "absolute" ? "custom" : "relative"), e.type === "absolute")) {
625
625
  let t = new Date(e.from), n = new Date(e.to);
@@ -629,44 +629,44 @@ function rr({ value: e, onChange: t, disabled: n = !1, showTimezone: r = !1, cla
629
629
  }), h(Qn(t)), _(Qn(n));
630
630
  }
631
631
  }
632
- function C(e) {
632
+ function ee(e) {
633
633
  t({
634
634
  type: "relative",
635
635
  period: e
636
636
  }), l(!1);
637
637
  }
638
- function ee(e) {
638
+ function te(e) {
639
639
  p(e);
640
640
  }
641
- function te() {
641
+ function ne() {
642
642
  !x || v === void 0 || y === void 0 || (t({
643
643
  type: "absolute",
644
644
  from: v,
645
645
  to: y
646
646
  }), l(!1));
647
647
  }
648
- return /* @__PURE__ */ M(je, {
648
+ return /* @__PURE__ */ j(Me, {
649
649
  open: c,
650
650
  onOpenChange: S,
651
- children: [/* @__PURE__ */ j(Pe, {
651
+ children: [/* @__PURE__ */ A(Fe, {
652
652
  asChild: !0,
653
- children: /* @__PURE__ */ M(I, {
653
+ children: /* @__PURE__ */ j(F, {
654
654
  variant: "outline",
655
655
  disabled: n,
656
656
  "aria-label": "Time range picker",
657
657
  "aria-haspopup": "dialog",
658
658
  "aria-expanded": c,
659
- className: H("justify-between gap-2 font-normal", i),
660
- children: [er(e, r), /* @__PURE__ */ j(at, {
659
+ className: V("justify-between gap-2 font-normal", i),
660
+ children: [er(e, r), /* @__PURE__ */ A(ot, {
661
661
  "aria-hidden": "true",
662
662
  className: "size-4 shrink-0"
663
663
  })]
664
664
  })
665
- }), /* @__PURE__ */ M(Ne, {
665
+ }), /* @__PURE__ */ j(Pe, {
666
666
  className: "w-80 p-4",
667
667
  align: "start",
668
668
  children: [
669
- /* @__PURE__ */ M(Ze, {
669
+ /* @__PURE__ */ j(Qe, {
670
670
  type: "single",
671
671
  value: u,
672
672
  onValueChange: (e) => {
@@ -674,101 +674,101 @@ function rr({ value: e, onChange: t, disabled: n = !1, showTimezone: r = !1, cla
674
674
  },
675
675
  variant: "outline",
676
676
  className: "mb-4 w-full",
677
- children: [/* @__PURE__ */ j(Qe, {
677
+ children: [/* @__PURE__ */ A($e, {
678
678
  value: "relative",
679
679
  className: "flex-1",
680
680
  children: "Relative"
681
- }), /* @__PURE__ */ j(Qe, {
681
+ }), /* @__PURE__ */ A($e, {
682
682
  value: "custom",
683
683
  className: "flex-1",
684
684
  children: "Custom"
685
685
  })]
686
686
  }),
687
- u === "relative" && /* @__PURE__ */ j("div", {
687
+ u === "relative" && /* @__PURE__ */ A("div", {
688
688
  className: "flex flex-col gap-4",
689
689
  role: "listbox",
690
690
  "aria-label": "Preset time ranges",
691
- children: In.map((t) => /* @__PURE__ */ M("div", {
691
+ children: In.map((t) => /* @__PURE__ */ j("div", {
692
692
  className: "flex flex-col gap-2",
693
- children: [/* @__PURE__ */ j("p", {
693
+ children: [/* @__PURE__ */ A("p", {
694
694
  className: "text-xs font-medium text-muted-foreground",
695
695
  children: t.label
696
- }), /* @__PURE__ */ j("div", {
696
+ }), /* @__PURE__ */ A("div", {
697
697
  className: "grid grid-cols-3 gap-2",
698
- children: t.periods.map((t) => /* @__PURE__ */ j(I, {
698
+ children: t.periods.map((t) => /* @__PURE__ */ A(F, {
699
699
  variant: "outline",
700
700
  size: "sm",
701
701
  role: "option",
702
702
  "aria-label": zn[t],
703
703
  "aria-selected": e.type === "relative" && e.period === t,
704
- className: H(e.type === "relative" && e.period === t && "bg-primary text-primary-foreground hover:bg-primary/90"),
704
+ className: V(e.type === "relative" && e.period === t && "bg-primary text-primary-foreground hover:bg-primary/90"),
705
705
  disabled: n,
706
- onClick: () => C(t),
706
+ onClick: () => ee(t),
707
707
  children: Rn[t]
708
708
  }, t))
709
709
  })]
710
710
  }, t.label))
711
711
  }),
712
- u === "custom" && /* @__PURE__ */ M("div", {
712
+ u === "custom" && /* @__PURE__ */ j("div", {
713
713
  className: "flex flex-col gap-3",
714
714
  children: [
715
- /* @__PURE__ */ j(le, {
715
+ /* @__PURE__ */ A(ue, {
716
716
  mode: "range",
717
717
  selected: f,
718
- onSelect: ee,
718
+ onSelect: te,
719
719
  numberOfMonths: 1,
720
720
  captionLayout: "dropdown",
721
721
  disabled: n,
722
722
  className: "w-full"
723
723
  }),
724
- /* @__PURE__ */ M("div", {
724
+ /* @__PURE__ */ j("div", {
725
725
  className: "flex items-end gap-2",
726
726
  children: [
727
- /* @__PURE__ */ M(De, {
727
+ /* @__PURE__ */ j(Oe, {
728
728
  className: "flex-1",
729
- children: [/* @__PURE__ */ j(ke, {
729
+ children: [/* @__PURE__ */ A(Ae, {
730
730
  htmlFor: o,
731
731
  children: tr(f?.from)
732
- }), /* @__PURE__ */ j(Ae, {
732
+ }), /* @__PURE__ */ A(je, {
733
733
  id: o,
734
734
  type: "time",
735
735
  value: m,
736
736
  disabled: n,
737
737
  "aria-invalid": b,
738
- className: H("bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none", b && "border-destructive"),
738
+ className: V("bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none", b && "border-destructive"),
739
739
  onChange: (e) => h(e.target.value)
740
740
  })]
741
741
  }),
742
- /* @__PURE__ */ j("span", {
742
+ /* @__PURE__ */ A("span", {
743
743
  className: "pb-2 text-muted-foreground",
744
744
  children: "-"
745
745
  }),
746
- /* @__PURE__ */ M(De, {
746
+ /* @__PURE__ */ j(Oe, {
747
747
  className: "flex-1",
748
- children: [/* @__PURE__ */ j(ke, {
748
+ children: [/* @__PURE__ */ A(Ae, {
749
749
  htmlFor: s,
750
750
  children: tr(f?.to)
751
- }), /* @__PURE__ */ j(Ae, {
751
+ }), /* @__PURE__ */ A(je, {
752
752
  id: s,
753
753
  type: "time",
754
754
  value: g,
755
755
  disabled: n,
756
756
  "aria-invalid": b,
757
- className: H("bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none", b && "border-destructive"),
757
+ className: V("bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none", b && "border-destructive"),
758
758
  onChange: (e) => _(e.target.value)
759
759
  })]
760
760
  })
761
761
  ]
762
762
  }),
763
- b && /* @__PURE__ */ j("p", {
763
+ b && /* @__PURE__ */ A("p", {
764
764
  className: "text-xs text-destructive",
765
765
  role: "alert",
766
766
  children: "Start must be before end"
767
767
  }),
768
- /* @__PURE__ */ j(I, {
768
+ /* @__PURE__ */ A(F, {
769
769
  size: "sm",
770
770
  disabled: !x || n,
771
- onClick: te,
771
+ onClick: ne,
772
772
  children: "Apply"
773
773
  })
774
774
  ]
@@ -894,7 +894,7 @@ function fr(e) {
894
894
  //#region src/filters/use-scoped-filter-providers.ts
895
895
  function pr(e) {
896
896
  let t = p(), n = J();
897
- return D(() => {
897
+ return E(() => {
898
898
  if (!e) return t;
899
899
  let r = n.find((t) => t.field === e);
900
900
  if (!r || !r.value.length) return t;
@@ -920,20 +920,20 @@ function hr(e, t) {
920
920
  //#endregion
921
921
  //#region src/filters/utils/use-auto-open-on-focus.ts
922
922
  function gr() {
923
- let [e, t] = k(!1), n = O(!1);
923
+ let [e, t] = O(!1), n = D(!1);
924
924
  return {
925
925
  open: e,
926
- handleOpenChange: w((e, r) => {
926
+ handleOpenChange: C((e, r) => {
927
927
  t(e), !e && r?.reason === "item-press" && (n.current = !0);
928
928
  }, []),
929
- handleInputFocus: w(() => {
929
+ handleInputFocus: C(() => {
930
930
  if (n.current) {
931
931
  n.current = !1;
932
932
  return;
933
933
  }
934
934
  t(!0);
935
935
  }, []),
936
- handleInputKeyDown: w((n) => {
936
+ handleInputKeyDown: C((n) => {
937
937
  !e && (n.key === "Enter" || n.key === "ArrowDown") && (n.preventDefault(), t(!0));
938
938
  }, [e])
939
939
  };
@@ -942,7 +942,7 @@ function gr() {
942
942
  //#region src/filters/FilterValueCombobox.tsx
943
943
  var _r = (e) => e.label, vr = (e) => e.value;
944
944
  function yr({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearchChange: i, disableBuiltInFilter: a = !1, placeholder: o = r ? "Search values…" : "Search value…", emptyMessage: s = "No results.", listFooter: c, errorMessage: l }) {
945
- let u = $e(), { open: d, handleOpenChange: f, handleInputFocus: p, handleInputKeyDown: m } = gr(), h = re(), g = !!l, _ = {
945
+ let u = et(), { open: d, handleOpenChange: f, handleInputFocus: p, handleInputKeyDown: m } = gr(), h = ie(), g = !!l, _ = {
946
946
  open: d,
947
947
  onOpenChange: f,
948
948
  items: e,
@@ -951,25 +951,25 @@ function yr({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearc
951
951
  isItemEqualToValue: hr,
952
952
  ...a && { filter: null },
953
953
  ...i && { onInputValueChange: (e) => i(String(e)) }
954
- }, v = /* @__PURE__ */ M(A, { children: [
955
- /* @__PURE__ */ j(ge, { children: s }),
956
- /* @__PURE__ */ j(ve, { children: (e) => /* @__PURE__ */ j(_e, {
954
+ }, v = /* @__PURE__ */ j(k, { children: [
955
+ /* @__PURE__ */ A(_e, { children: s }),
956
+ /* @__PURE__ */ A(ye, { children: (e) => /* @__PURE__ */ A(ve, {
957
957
  value: e,
958
958
  children: e.label
959
959
  }, e.value) }),
960
960
  c
961
- ] }), y = r ? /* @__PURE__ */ M(de, {
961
+ ] }), y = r ? /* @__PURE__ */ j(fe, {
962
962
  ..._,
963
963
  multiple: !0,
964
964
  autoHighlight: !0,
965
965
  value: t,
966
966
  onValueChange: (e) => n(Array.isArray(e) ? e : []),
967
- children: [/* @__PURE__ */ j(pe, {
967
+ children: [/* @__PURE__ */ A(me, {
968
968
  ref: u,
969
- children: /* @__PURE__ */ j(ye, { children: (e) => /* @__PURE__ */ M(b, { children: [e.map((e) => /* @__PURE__ */ j(fe, {
969
+ children: /* @__PURE__ */ A(be, { children: (e) => /* @__PURE__ */ j(b, { children: [e.map((e) => /* @__PURE__ */ A(pe, {
970
970
  removeAriaLabel: `Remove ${e.label}`,
971
971
  children: e.label
972
- }, e.value)), /* @__PURE__ */ j(me, {
972
+ }, e.value)), /* @__PURE__ */ A(he, {
973
973
  "aria-label": "Filter values",
974
974
  "aria-invalid": g || void 0,
975
975
  "aria-describedby": g ? h : void 0,
@@ -977,18 +977,18 @@ function yr({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearc
977
977
  onFocus: p,
978
978
  onKeyDown: m
979
979
  })] }) })
980
- }), /* @__PURE__ */ j(he, {
980
+ }), /* @__PURE__ */ A(ge, {
981
981
  anchor: u,
982
982
  children: v
983
983
  })]
984
- }) : /* @__PURE__ */ M(de, {
984
+ }) : /* @__PURE__ */ j(fe, {
985
985
  ..._,
986
986
  value: t[0] ?? null,
987
987
  onValueChange: (e) => n(e ? [e] : []),
988
988
  openOnInputClick: !0,
989
- children: [/* @__PURE__ */ j(pe, {
989
+ children: [/* @__PURE__ */ A(me, {
990
990
  ref: u,
991
- children: /* @__PURE__ */ j(me, {
991
+ children: /* @__PURE__ */ A(he, {
992
992
  "aria-label": "Filter values",
993
993
  "aria-invalid": g || void 0,
994
994
  "aria-describedby": g ? h : void 0,
@@ -996,12 +996,12 @@ function yr({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearc
996
996
  onFocus: p,
997
997
  onKeyDown: m
998
998
  })
999
- }), /* @__PURE__ */ j(he, {
999
+ }), /* @__PURE__ */ A(ge, {
1000
1000
  anchor: u,
1001
1001
  children: v
1002
1002
  })]
1003
1003
  });
1004
- return l ? /* @__PURE__ */ M(A, { children: [y, /* @__PURE__ */ j(Oe, {
1004
+ return l ? /* @__PURE__ */ j(k, { children: [y, /* @__PURE__ */ A(ke, {
1005
1005
  id: h,
1006
1006
  children: l
1007
1007
  })] }) : y;
@@ -1009,8 +1009,8 @@ function yr({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearc
1009
1009
  //#endregion
1010
1010
  //#region src/filters/utils/use-debounced-value.ts
1011
1011
  function br(e, t) {
1012
- let [n, r] = k(e);
1013
- return E(() => {
1012
+ let [n, r] = O(e);
1013
+ return T(() => {
1014
1014
  let n = window.setTimeout(() => r(e), t);
1015
1015
  return () => window.clearTimeout(n);
1016
1016
  }, [e, t]), n;
@@ -1018,10 +1018,10 @@ function br(e, t) {
1018
1018
  //#endregion
1019
1019
  //#region src/filters/utils/use-scroll-sentinel.ts
1020
1020
  function xr(e, t) {
1021
- let n = O(e), r = O(null);
1022
- return E(() => {
1021
+ let n = D(e), r = D(null);
1022
+ return T(() => {
1023
1023
  n.current = e;
1024
- }, [e]), w((e) => {
1024
+ }, [e]), C((e) => {
1025
1025
  if (r.current &&= (r.current.disconnect(), null), e && t) {
1026
1026
  let t = Sr(e), i = new IntersectionObserver((e) => {
1027
1027
  e[0]?.isIntersecting && n.current();
@@ -1048,7 +1048,7 @@ function Sr(e) {
1048
1048
  //#region src/filters/FilterAsyncValueField.tsx
1049
1049
  var Cr = 300;
1050
1050
  function wr({ provider: e, selected: t, onSelectedChange: n, multiple: r }) {
1051
- let [i, a] = k(""), o = br(i, Cr), [s, c] = k([]), [l, u] = k(!1), [d, f] = k(null), [p, m] = k(!1), [h, g] = k(1), _ = O(0), v = O(null), y = O(o), b = w(async (t, n) => {
1051
+ let [i, a] = O(""), o = br(i, Cr), [s, c] = O([]), [l, u] = O(!1), [d, f] = O(null), [p, m] = O(!1), [h, g] = O(1), _ = D(0), v = D(null), y = D(o), b = C(async (t, n) => {
1052
1052
  if (!e.valueLoader) return;
1053
1053
  v.current?.abort();
1054
1054
  let r = new AbortController();
@@ -1073,7 +1073,7 @@ function wr({ provider: e, selected: t, onSelectedChange: n, multiple: r }) {
1073
1073
  i === _.current && u(!1);
1074
1074
  }
1075
1075
  }, [e]);
1076
- E(() => {
1076
+ T(() => {
1077
1077
  let e = y.current !== o;
1078
1078
  if (e) {
1079
1079
  if (y.current = o, h !== 1) {
@@ -1088,11 +1088,11 @@ function wr({ provider: e, selected: t, onSelectedChange: n, multiple: r }) {
1088
1088
  h,
1089
1089
  b
1090
1090
  ]);
1091
- let x = xr(w(() => {
1091
+ let x = xr(C(() => {
1092
1092
  !l && p && g((e) => e + 1);
1093
1093
  }, [l, p]), p && !l);
1094
- return /* @__PURE__ */ j(yr, {
1095
- options: D(() => mr(t, s), [t, s]),
1094
+ return /* @__PURE__ */ A(yr, {
1095
+ options: E(() => mr(t, s), [t, s]),
1096
1096
  selected: t,
1097
1097
  onSelectedChange: n,
1098
1098
  multiple: r,
@@ -1100,15 +1100,15 @@ function wr({ provider: e, selected: t, onSelectedChange: n, multiple: r }) {
1100
1100
  disableBuiltInFilter: !0,
1101
1101
  placeholder: "Search values…",
1102
1102
  emptyMessage: "No results.",
1103
- listFooter: /* @__PURE__ */ M(A, { children: [p && !l ? /* @__PURE__ */ j("div", {
1103
+ listFooter: /* @__PURE__ */ j(k, { children: [p && !l ? /* @__PURE__ */ A("div", {
1104
1104
  ref: x,
1105
1105
  className: "h-1",
1106
1106
  "aria-hidden": "true"
1107
- }) : null, l ? /* @__PURE__ */ M("div", {
1107
+ }) : null, l ? /* @__PURE__ */ j("div", {
1108
1108
  role: "status",
1109
1109
  "aria-live": "polite",
1110
1110
  className: "flex items-center justify-center gap-2 py-3 text-sm text-muted-foreground",
1111
- children: [/* @__PURE__ */ j(Ke, {
1111
+ children: [/* @__PURE__ */ A(qe, {
1112
1112
  className: "size-4",
1113
1113
  "aria-hidden": "true"
1114
1114
  }), "Loading…"]
@@ -1119,8 +1119,8 @@ function wr({ provider: e, selected: t, onSelectedChange: n, multiple: r }) {
1119
1119
  //#endregion
1120
1120
  //#region src/filters/FilterEnumValueField.tsx
1121
1121
  function Tr({ provider: e, selected: t, onSelectedChange: n, multiple: r }) {
1122
- return /* @__PURE__ */ j(yr, {
1123
- options: D(() => e.options ?? [], [e.options]),
1122
+ return /* @__PURE__ */ A(yr, {
1123
+ options: E(() => e.options ?? [], [e.options]),
1124
1124
  selected: t,
1125
1125
  onSelectedChange: n,
1126
1126
  multiple: r
@@ -1140,16 +1140,16 @@ function Or(e) {
1140
1140
  }
1141
1141
  //#endregion
1142
1142
  //#region src/filters/FilterFieldOptionRow.tsx
1143
- var kr = ne(function({ provider: e, showScopes: t = !1, className: n }) {
1143
+ var kr = re(function({ provider: e, showScopes: t = !1, className: n }) {
1144
1144
  let r = t && e.scopes && e.scopes.length > 0;
1145
- return /* @__PURE__ */ M("div", {
1146
- className: H("flex min-w-0 flex-1 items-center justify-between gap-3", n),
1147
- children: [/* @__PURE__ */ j("span", {
1145
+ return /* @__PURE__ */ j("div", {
1146
+ className: V("flex min-w-0 flex-1 items-center justify-between gap-3", n),
1147
+ children: [/* @__PURE__ */ A("span", {
1148
1148
  className: "truncate font-medium",
1149
1149
  children: e.label
1150
- }), r ? /* @__PURE__ */ j("span", {
1150
+ }), r ? /* @__PURE__ */ A("span", {
1151
1151
  className: "flex shrink-0 flex-wrap items-center justify-end gap-1",
1152
- children: e.scopes?.map((e) => /* @__PURE__ */ j(F, {
1152
+ children: e.scopes?.map((e) => /* @__PURE__ */ A(P, {
1153
1153
  variant: "secondary",
1154
1154
  className: "max-w-28 truncate text-xs font-normal",
1155
1155
  children: Or(e)
@@ -1160,29 +1160,29 @@ var kr = ne(function({ provider: e, showScopes: t = !1, className: n }) {
1160
1160
  //#endregion
1161
1161
  //#region src/filters/FilterPropertyField.tsx
1162
1162
  function Ar({ providers: e, selectedField: t, onFieldChange: n, showScopes: r }) {
1163
- let i = $e(), { open: a, handleOpenChange: o, handleInputFocus: s, handleInputKeyDown: c } = gr();
1164
- return /* @__PURE__ */ M(de, {
1163
+ let i = et(), { open: a, handleOpenChange: o, handleInputFocus: s, handleInputKeyDown: c } = gr();
1164
+ return /* @__PURE__ */ j(fe, {
1165
1165
  open: a,
1166
1166
  onOpenChange: o,
1167
1167
  items: e,
1168
- value: D(() => e.find((e) => e.field === t) ?? null, [e, t]),
1168
+ value: E(() => e.find((e) => e.field === t) ?? null, [e, t]),
1169
1169
  onValueChange: (e) => n(e ?? null),
1170
1170
  itemToStringLabel: (e) => e.label,
1171
1171
  itemToStringValue: (e) => e.field,
1172
1172
  isItemEqualToValue: (e, t) => e.field === t.field,
1173
- children: [/* @__PURE__ */ j(pe, {
1173
+ children: [/* @__PURE__ */ A(me, {
1174
1174
  ref: i,
1175
- children: /* @__PURE__ */ j(me, {
1175
+ children: /* @__PURE__ */ A(he, {
1176
1176
  "aria-label": "Filter property",
1177
1177
  placeholder: "Search property…",
1178
1178
  onFocus: s,
1179
1179
  onKeyDown: c
1180
1180
  })
1181
- }), /* @__PURE__ */ M(he, {
1181
+ }), /* @__PURE__ */ j(ge, {
1182
1182
  anchor: i,
1183
- children: [/* @__PURE__ */ j(ge, { children: "No results." }), /* @__PURE__ */ j(ve, { children: (e) => /* @__PURE__ */ j(_e, {
1183
+ children: [/* @__PURE__ */ A(_e, { children: "No results." }), /* @__PURE__ */ A(ye, { children: (e) => /* @__PURE__ */ A(ve, {
1184
1184
  value: e,
1185
- children: /* @__PURE__ */ j(kr, {
1185
+ children: /* @__PURE__ */ A(kr, {
1186
1186
  provider: e,
1187
1187
  showScopes: r
1188
1188
  })
@@ -1326,7 +1326,7 @@ function Wr(e) {
1326
1326
  //#endregion
1327
1327
  //#region src/filters/FilterPopoverForm.tsx
1328
1328
  function Gr({ existingCondition: e, onApply: t, onCancel: n, showScopes: r = !1 }) {
1329
- let i = p(), [a, o] = k(e?.field ?? null), [s, c] = k(e?.operator ?? null), [l, u] = k(() => e ? Vr(e.value, e.valueLabels) : []), [d, f] = k(e?.value.join(", ") ?? ""), m = D(() => i.find((e) => e.field === a) ?? null, [i, a]), h = m && s ? Lr(m, s) : !1, g = m?.kind ?? "async", _ = s ? Fr(s) : !0, v = Ur({
1329
+ let i = p(), [a, o] = O(e?.field ?? null), [s, c] = O(e?.operator ?? null), [l, u] = O(() => e ? Vr(e.value, e.valueLabels) : []), [d, f] = O(e?.value.join(", ") ?? ""), m = E(() => i.find((e) => e.field === a) ?? null, [i, a]), h = m && s ? Lr(m, s) : !1, g = m?.kind ?? "async", _ = s ? Fr(s) : !0, v = Ur({
1330
1330
  provider: m,
1331
1331
  operator: s,
1332
1332
  selectedOptions: l,
@@ -1353,22 +1353,22 @@ function Gr({ existingCondition: e, onApply: t, onCancel: n, showScopes: r = !1
1353
1353
  freeText: d
1354
1354
  }));
1355
1355
  }
1356
- function C() {
1357
- return !m || !s ? /* @__PURE__ */ j(Ae, {
1356
+ function ee() {
1357
+ return !m || !s ? /* @__PURE__ */ A(je, {
1358
1358
  disabled: !0,
1359
1359
  placeholder: "Search value…",
1360
1360
  "aria-label": "Filter value"
1361
- }) : g === "enum" && m.options ? /* @__PURE__ */ j(Tr, {
1361
+ }) : g === "enum" && m.options ? /* @__PURE__ */ A(Tr, {
1362
1362
  provider: m,
1363
1363
  selected: l,
1364
1364
  onSelectedChange: x,
1365
1365
  multiple: h
1366
- }, m.field) : m.valueLoader ? /* @__PURE__ */ j(wr, {
1366
+ }, m.field) : m.valueLoader ? /* @__PURE__ */ A(wr, {
1367
1367
  provider: m,
1368
1368
  selected: l,
1369
1369
  onSelectedChange: x,
1370
1370
  multiple: h
1371
- }, m.field) : m.allowFreeText ? /* @__PURE__ */ j(Ae, {
1371
+ }, m.field) : m.allowFreeText ? /* @__PURE__ */ A(je, {
1372
1372
  value: d,
1373
1373
  onChange: (e) => f(e.target.value),
1374
1374
  placeholder: "Enter value(s), comma-separated",
@@ -1378,38 +1378,38 @@ function Gr({ existingCondition: e, onApply: t, onCancel: n, showScopes: r = !1
1378
1378
  }
1379
1379
  }) : null;
1380
1380
  }
1381
- return /* @__PURE__ */ M("div", {
1381
+ return /* @__PURE__ */ j("div", {
1382
1382
  className: "flex w-[340px] flex-col gap-4 p-4",
1383
1383
  children: [
1384
- /* @__PURE__ */ M(De, { children: [/* @__PURE__ */ j(ke, { children: "Filter by" }), /* @__PURE__ */ j(Ar, {
1384
+ /* @__PURE__ */ j(Oe, { children: [/* @__PURE__ */ A(Ae, { children: "Filter by" }), /* @__PURE__ */ A(Ar, {
1385
1385
  providers: i,
1386
1386
  selectedField: a,
1387
1387
  onFieldChange: y,
1388
1388
  showScopes: r
1389
1389
  })] }),
1390
- /* @__PURE__ */ M(De, { children: [/* @__PURE__ */ j(ke, { children: "Choose operator" }), /* @__PURE__ */ M(Ie, {
1390
+ /* @__PURE__ */ j(Oe, { children: [/* @__PURE__ */ A(Ae, { children: "Choose operator" }), /* @__PURE__ */ j(Le, {
1391
1391
  value: s ?? void 0,
1392
1392
  onValueChange: b,
1393
1393
  disabled: !m,
1394
- children: [/* @__PURE__ */ j(ze, {
1394
+ children: [/* @__PURE__ */ A(Be, {
1395
1395
  className: "w-full",
1396
1396
  "aria-label": "Filter operator",
1397
- children: /* @__PURE__ */ j(Be, { placeholder: "Select operator…" })
1398
- }), /* @__PURE__ */ j(Le, { children: (m?.operators ?? []).map((e) => /* @__PURE__ */ j(Re, {
1397
+ children: /* @__PURE__ */ A(Ve, { placeholder: "Select operator…" })
1398
+ }), /* @__PURE__ */ A(Re, { children: (m?.operators ?? []).map((e) => /* @__PURE__ */ A(ze, {
1399
1399
  value: e,
1400
1400
  children: Pr(e)
1401
1401
  }, e)) })]
1402
1402
  })] }),
1403
- _ ? /* @__PURE__ */ M(De, { children: [/* @__PURE__ */ j(ke, { children: "Filter value" }), C()] }) : null,
1404
- /* @__PURE__ */ M("div", {
1403
+ _ ? /* @__PURE__ */ j(Oe, { children: [/* @__PURE__ */ A(Ae, { children: "Filter value" }), ee()] }) : null,
1404
+ /* @__PURE__ */ j("div", {
1405
1405
  className: "flex items-center justify-end gap-2",
1406
- children: [/* @__PURE__ */ j(I, {
1406
+ children: [/* @__PURE__ */ A(F, {
1407
1407
  type: "button",
1408
1408
  variant: "ghost",
1409
1409
  size: "sm",
1410
1410
  onClick: n,
1411
1411
  children: "Cancel"
1412
- }), /* @__PURE__ */ j(I, {
1412
+ }), /* @__PURE__ */ A(F, {
1413
1413
  type: "button",
1414
1414
  size: "sm",
1415
1415
  disabled: !v,
@@ -1473,34 +1473,34 @@ function Zr(e) {
1473
1473
  function Qr(e, t, n) {
1474
1474
  return e ? t ? `Filter: ${n}` : `Edit filter: ${n}. Press Delete to remove.` : `Active filter: ${n}`;
1475
1475
  }
1476
- var $r = ne(ee(function({ condition: e, onEdit: t, onRemove: n, editable: r = !0, disabled: i = !1, active: a = !1, className: o, "data-chip-index": s }, c) {
1477
- let l = Xr(e), u = Zr(e), d = r && !i, f = Nr.has(e.operator), [p, m] = k(!1);
1476
+ var $r = re(te(function({ condition: e, onEdit: t, onRemove: n, editable: r = !0, disabled: i = !1, active: a = !1, className: o, "data-chip-index": s }, c) {
1477
+ let l = Xr(e), u = Zr(e), d = r && !i, f = Nr.has(e.operator), [p, m] = O(!1);
1478
1478
  function h(e) {
1479
1479
  e.stopPropagation(), d && n?.();
1480
1480
  }
1481
- let g = /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("span", {
1481
+ let g = /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ j("span", {
1482
1482
  className: "truncate",
1483
- children: [/* @__PURE__ */ j("span", {
1483
+ children: [/* @__PURE__ */ A("span", {
1484
1484
  className: "font-medium",
1485
1485
  children: l.name
1486
- }), l.operator ? /* @__PURE__ */ M(A, { children: [" ", /* @__PURE__ */ j("span", {
1486
+ }), l.operator ? /* @__PURE__ */ j(k, { children: [" ", /* @__PURE__ */ A("span", {
1487
1487
  className: "opacity-70",
1488
1488
  children: l.operator
1489
1489
  })] }) : null]
1490
- }), l.value ? l.isCount ? /* @__PURE__ */ j("span", {
1490
+ }), l.value ? l.isCount ? /* @__PURE__ */ A("span", {
1491
1491
  "aria-label": `${l.value} values`,
1492
1492
  className: "inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-highlight px-1.5 text-xs text-background",
1493
1493
  children: l.value
1494
- }) : /* @__PURE__ */ j("span", {
1494
+ }) : /* @__PURE__ */ A("span", {
1495
1495
  className: "truncate",
1496
1496
  children: l.value
1497
1497
  }) : null] });
1498
- return /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
1498
+ return /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
1499
1499
  asChild: !0,
1500
- children: /* @__PURE__ */ M("span", {
1500
+ children: /* @__PURE__ */ j("span", {
1501
1501
  ref: c,
1502
1502
  "data-chip-index": s,
1503
- className: H("inline-flex items-center gap-1.5", f && r && "border-dashed border-highlight/40", f && !r && "border-dashed", i && "pointer-events-none opacity-50", o),
1503
+ className: V("inline-flex items-center gap-1.5", f && r && "border-dashed border-highlight/40", f && !r && "border-dashed", i && "pointer-events-none opacity-50", o),
1504
1504
  "aria-label": Qr(r, i, u),
1505
1505
  "aria-disabled": i || void 0,
1506
1506
  "data-active": a || void 0,
@@ -1508,9 +1508,9 @@ var $r = ne(ee(function({ condition: e, onEdit: t, onRemove: n, editable: r = !0
1508
1508
  onMouseLeave: () => m(!1),
1509
1509
  onFocus: () => d && m(!0),
1510
1510
  onBlur: () => m(!1),
1511
- children: [/* @__PURE__ */ j(F, {
1511
+ children: [/* @__PURE__ */ A(P, {
1512
1512
  variant: r ? "highlight" : "secondary",
1513
- className: H("h-auto max-w-xs gap-1.5 py-1 font-normal transition-all", d ? "cursor-pointer hover:bg-highlight/20" : "pr-2", d && !p && "pr-2", d && p && "pr-1"),
1513
+ className: V("h-auto max-w-xs gap-1.5 py-1 font-normal transition-all", d ? "cursor-pointer hover:bg-highlight/20" : "pr-2", d && !p && "pr-2", d && p && "pr-1"),
1514
1514
  role: d ? "button" : void 0,
1515
1515
  tabIndex: d ? 0 : void 0,
1516
1516
  "aria-hidden": d ? void 0 : "true",
@@ -1519,7 +1519,7 @@ var $r = ne(ee(function({ condition: e, onEdit: t, onRemove: n, editable: r = !0
1519
1519
  d && ((e.key === "Enter" || e.key === " ") && (e.preventDefault(), t?.()), (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), n?.()));
1520
1520
  },
1521
1521
  children: g
1522
- }), d && n && p ? /* @__PURE__ */ j(I, {
1522
+ }), d && n && p ? /* @__PURE__ */ A(F, {
1523
1523
  type: "button",
1524
1524
  variant: "ghost",
1525
1525
  size: "sm",
@@ -1527,13 +1527,13 @@ var $r = ne(ee(function({ condition: e, onEdit: t, onRemove: n, editable: r = !0
1527
1527
  "aria-label": `Remove filter ${l.name}`,
1528
1528
  onClick: h,
1529
1529
  tabIndex: 0,
1530
- children: /* @__PURE__ */ j(Ct, {
1530
+ children: /* @__PURE__ */ A(wt, {
1531
1531
  className: "size-3",
1532
1532
  "aria-hidden": "true"
1533
1533
  })
1534
1534
  }) : null]
1535
1535
  })
1536
- }), /* @__PURE__ */ j(z, { children: u })] });
1536
+ }), /* @__PURE__ */ A(R, { children: u })] });
1537
1537
  }));
1538
1538
  $r.displayName = "FilterChip";
1539
1539
  //#endregion
@@ -1575,7 +1575,7 @@ function si(e, t) {
1575
1575
  return e ? e.mode === "add" ? "add" : t ? `edit-${t.field}-${t.operator}-${JSON.stringify(t.value)}` : `edit-${e.editIndex}` : "closed";
1576
1576
  }
1577
1577
  function ci({ filters: e, onFiltersChange: t, editable: n = !0, showScopes: r = !1, scopeFilterField: i, className: a }) {
1578
- let o = pr(i), [s, c] = k(null), l = O(null), u = O(/* @__PURE__ */ new Map()), d = O(null), f = O({ getBoundingClientRect: () => new DOMRect() }), p = s?.editIndex !== void 0 && s.editIndex >= 0 && s.editIndex < e.length, m = s !== null && (s.mode === "add" || p), h = p ? e[s.editIndex] : void 0, g = w((e) => {
1578
+ let o = pr(i), [s, c] = O(null), l = D(null), u = D(/* @__PURE__ */ new Map()), d = D(null), f = D({ getBoundingClientRect: () => new DOMRect() }), p = s?.editIndex !== void 0 && s.editIndex >= 0 && s.editIndex < e.length, m = s !== null && (s.mode === "add" || p), h = p ? e[s.editIndex] : void 0, g = C((e) => {
1579
1579
  if (e) {
1580
1580
  let t = Number(e.dataset.chipIndex);
1581
1581
  u.current.set(t, e);
@@ -1591,7 +1591,7 @@ function ci({ filters: e, onFiltersChange: t, editable: n = !0, showScopes: r =
1591
1591
  editIndex: e
1592
1592
  });
1593
1593
  }
1594
- let y = O(null);
1594
+ let y = D(null);
1595
1595
  function b() {
1596
1596
  let e = y.current;
1597
1597
  c(null), y.current = null, e && document.contains(e) && requestAnimationFrame(() => e.focus());
@@ -1614,44 +1614,44 @@ function ci({ filters: e, onFiltersChange: t, editable: n = !0, showScopes: r =
1614
1614
  }
1615
1615
  t([...e, n]), b();
1616
1616
  }
1617
- function C(n) {
1617
+ function ee(n) {
1618
1618
  t(e.filter((e, t) => t !== n));
1619
1619
  }
1620
- function ee() {
1620
+ function te() {
1621
1621
  b(), t([]);
1622
1622
  }
1623
- function te(e) {
1623
+ function ne(e) {
1624
1624
  e.preventDefault(), requestAnimationFrame(() => {
1625
1625
  let e = d.current;
1626
1626
  e && (e.querySelector("[data-autofocus]") ?? e.querySelector("input:not([disabled])"))?.focus();
1627
1627
  });
1628
1628
  }
1629
- return /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(je, {
1629
+ return /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(Me, {
1630
1630
  open: m,
1631
1631
  onOpenChange: x,
1632
1632
  children: [
1633
- /* @__PURE__ */ M("div", {
1634
- className: H("flex flex-wrap items-center gap-2", a),
1633
+ /* @__PURE__ */ j("div", {
1634
+ className: V("flex flex-wrap items-center gap-2", a),
1635
1635
  children: [
1636
- /* @__PURE__ */ j("span", {
1636
+ /* @__PURE__ */ A("span", {
1637
1637
  className: "shrink-0 text-sm font-medium text-muted-foreground",
1638
1638
  children: "Filters:"
1639
1639
  }),
1640
- n ? /* @__PURE__ */ M(I, {
1640
+ n ? /* @__PURE__ */ j(F, {
1641
1641
  ref: l,
1642
1642
  type: "button",
1643
1643
  variant: "outline",
1644
1644
  size: "sm",
1645
1645
  onClick: _,
1646
1646
  className: "shrink-0",
1647
- children: [/* @__PURE__ */ j(vt, {
1647
+ children: [/* @__PURE__ */ A(yt, {
1648
1648
  className: "size-4",
1649
1649
  "aria-hidden": "true"
1650
1650
  }), "Add filter"]
1651
1651
  }) : null,
1652
1652
  e.map((e, t) => {
1653
1653
  let r = s?.mode === "edit" && s.editIndex === t;
1654
- return /* @__PURE__ */ j($r, {
1654
+ return /* @__PURE__ */ A($r, {
1655
1655
  ref: g,
1656
1656
  "data-chip-index": t,
1657
1657
  condition: e,
@@ -1659,27 +1659,27 @@ function ci({ filters: e, onFiltersChange: t, editable: n = !0, showScopes: r =
1659
1659
  disabled: m && !r,
1660
1660
  active: r,
1661
1661
  onEdit: () => v(t),
1662
- onRemove: () => C(t)
1662
+ onRemove: () => ee(t)
1663
1663
  }, ei(e));
1664
1664
  }),
1665
- n && e.length > 0 ? /* @__PURE__ */ j("button", {
1665
+ n && e.length > 0 ? /* @__PURE__ */ A("button", {
1666
1666
  type: "button",
1667
- onClick: ee,
1667
+ onClick: te,
1668
1668
  className: "ml-1 shrink-0 rounded p-1 text-muted-foreground hover:bg-muted hover:text-foreground",
1669
1669
  "aria-label": "Clear all filters",
1670
- children: /* @__PURE__ */ j(mt, { className: "size-3.5" })
1670
+ children: /* @__PURE__ */ A(ht, { className: "size-3.5" })
1671
1671
  }) : null
1672
1672
  ]
1673
1673
  }),
1674
- /* @__PURE__ */ j(Me, { virtualRef: f }),
1675
- /* @__PURE__ */ j(Ne, {
1674
+ /* @__PURE__ */ A(Ne, { virtualRef: f }),
1675
+ /* @__PURE__ */ A(Pe, {
1676
1676
  ref: d,
1677
1677
  side: "bottom",
1678
1678
  align: "start",
1679
1679
  sideOffset: 8,
1680
1680
  className: "w-auto p-0",
1681
- onOpenAutoFocus: te,
1682
- children: m ? /* @__PURE__ */ j(Gr, {
1681
+ onOpenAutoFocus: ne,
1682
+ children: m ? /* @__PURE__ */ A(Gr, {
1683
1683
  existingCondition: h,
1684
1684
  onApply: S,
1685
1685
  onCancel: b,
@@ -1693,7 +1693,7 @@ function ci({ filters: e, onFiltersChange: t, editable: n = !0, showScopes: r =
1693
1693
  //#region src/dashboards/WidgetGroupContext.tsx
1694
1694
  var li = [], ui = S(null), di = ui.Provider;
1695
1695
  function fi() {
1696
- return T(ui);
1696
+ return w(ui);
1697
1697
  }
1698
1698
  //#endregion
1699
1699
  //#region src/dashboards/resolve-stable-time-range.ts
@@ -1713,8 +1713,8 @@ function hi(e) {
1713
1713
  return Math.floor(Date.now() / e);
1714
1714
  }
1715
1715
  function Y(e) {
1716
- let t = ln(), n = t?.intervalMs ?? 6e4, r = t?.isLive ?? !0, [i, a] = k(() => hi(n));
1717
- return E(() => {
1716
+ let t = ln(), n = t?.intervalMs ?? 6e4, r = t?.isLive ?? !0, [i, a] = O(() => hi(n));
1717
+ return T(() => {
1718
1718
  if (e.type === "absolute" || !r) return;
1719
1719
  let t, i = () => a(hi(n)), o = n - Date.now() % n, s = setTimeout(() => {
1720
1720
  i(), t = setInterval(i, n);
@@ -1734,7 +1734,7 @@ function Y(e) {
1734
1734
  e.type,
1735
1735
  r,
1736
1736
  n
1737
- ]), D(() => mi(e), [e, i]);
1737
+ ]), E(() => mi(e), [e, i]);
1738
1738
  }
1739
1739
  //#endregion
1740
1740
  //#region src/dashboards/adapters/facets-adapter.ts
@@ -1785,25 +1785,25 @@ function Ti(e) {
1785
1785
  //#region src/dashboards/renderers/BarPresentation.tsx
1786
1786
  var Ei = 160, Di = 72, Oi = 7, ki = 20;
1787
1787
  function Ai({ data: e, config: t, state: n, layout: r = "vertical", showShare: i = !0, valueFormatter: a }) {
1788
- let o = D(() => {
1788
+ let o = E(() => {
1789
1789
  if (a) return a;
1790
1790
  if (i) return Ti(wi(e.map((e) => e.count)));
1791
1791
  }, [
1792
1792
  e,
1793
1793
  i,
1794
1794
  a
1795
- ]), s = D(() => {
1795
+ ]), s = E(() => {
1796
1796
  if (!(r !== "horizontal" || e.length === 0)) return { left: Math.min(Ei, Math.max(Di, e.reduce((e, t) => Math.max(e, t.category.length), 0) * Oi + ki)) };
1797
1797
  }, [e, r]);
1798
- return /* @__PURE__ */ j(At, {
1798
+ return /* @__PURE__ */ A(jt, {
1799
1799
  config: t,
1800
1800
  className: "h-full w-full",
1801
- children: /* @__PURE__ */ M(Dt, {
1801
+ children: /* @__PURE__ */ j(Ot, {
1802
1802
  data: [...e],
1803
1803
  state: n,
1804
1804
  layout: r,
1805
1805
  margin: s,
1806
- children: [/* @__PURE__ */ j(Nt, { content: /* @__PURE__ */ j(Pt, { valueFormatter: o }) }), /* @__PURE__ */ j(jt, { content: /* @__PURE__ */ j(Mt, {}) })]
1806
+ children: [/* @__PURE__ */ A(Pt, { content: /* @__PURE__ */ A(Ft, { valueFormatter: o }) }), /* @__PURE__ */ A(Mt, { content: /* @__PURE__ */ A(Nt, {}) })]
1807
1807
  })
1808
1808
  });
1809
1809
  }
@@ -1820,17 +1820,17 @@ function ji({ widget: e, timeRange: t, filters: n }) {
1820
1820
  filters: r,
1821
1821
  limit: e.limit
1822
1822
  });
1823
- E(() => {
1823
+ T(() => {
1824
1824
  s && console.error(`[BarWidgetRenderer] Failed to fetch facets for widget "${e.title}"`);
1825
1825
  }, [s, e.title]);
1826
- let c = Ci(e), { data: l, config: u } = D(() => a ? {
1826
+ let c = Ci(e), { data: l, config: u } = E(() => a ? {
1827
1827
  data: yi(a),
1828
1828
  config: { count: { label: c } }
1829
1829
  } : {
1830
1830
  data: [],
1831
1831
  config: {}
1832
1832
  }, [a, c]);
1833
- return /* @__PURE__ */ j(Ai, {
1833
+ return /* @__PURE__ */ A(Ai, {
1834
1834
  data: l,
1835
1835
  config: u,
1836
1836
  state: o ? "loading" : s ? "empty" : "ready",
@@ -1954,27 +1954,27 @@ function Wi(e, t) {
1954
1954
  //#region src/dashboards/renderers/CartesianPresentation.tsx
1955
1955
  function Gi({ data: e, config: t, series: n, seriesByKey: r, state: i, showTotal: a, totalLabel: o }) {
1956
1956
  let s = Object.keys(t), c = n.some((e) => e.representation === "bar") ? "band" : "point";
1957
- return /* @__PURE__ */ j(At, {
1957
+ return /* @__PURE__ */ A(jt, {
1958
1958
  config: t,
1959
1959
  className: "h-full w-full",
1960
- children: /* @__PURE__ */ M(kt, {
1960
+ children: /* @__PURE__ */ j(At, {
1961
1961
  data: [...e],
1962
1962
  state: i,
1963
1963
  categoryScaleType: c,
1964
1964
  animated: i === "ready",
1965
1965
  children: [
1966
- /* @__PURE__ */ j(It, {}),
1966
+ /* @__PURE__ */ A(Lt, {}),
1967
1967
  s.map((e) => {
1968
1968
  let t = r?.[e] ?? Ki(e, n);
1969
1969
  return t ? qi(e, t) : null;
1970
1970
  }),
1971
- /* @__PURE__ */ j(Ht, {}),
1972
- /* @__PURE__ */ j(Ut, {}),
1973
- /* @__PURE__ */ j(Nt, { content: /* @__PURE__ */ j(Pt, {
1971
+ /* @__PURE__ */ A(Ut, {}),
1972
+ /* @__PURE__ */ A(Wt, {}),
1973
+ /* @__PURE__ */ A(Pt, { content: /* @__PURE__ */ A(Ft, {
1974
1974
  showTotal: a,
1975
1975
  totalLabel: o
1976
1976
  }) }),
1977
- /* @__PURE__ */ j(jt, { content: /* @__PURE__ */ j(Mt, {}) })
1977
+ /* @__PURE__ */ A(Mt, { content: /* @__PURE__ */ A(Nt, {}) })
1978
1978
  ]
1979
1979
  })
1980
1980
  });
@@ -1984,15 +1984,15 @@ function Ki(e, t) {
1984
1984
  }
1985
1985
  function qi(e, t) {
1986
1986
  switch (t.representation) {
1987
- case "line": return /* @__PURE__ */ j(Lt, {
1987
+ case "line": return /* @__PURE__ */ A(Rt, {
1988
1988
  dataKey: e,
1989
1989
  curveType: t.curveType ?? "monotone"
1990
1990
  }, e);
1991
- case "bar": return /* @__PURE__ */ j(Ot, {
1991
+ case "bar": return /* @__PURE__ */ A(kt, {
1992
1992
  dataKey: e,
1993
1993
  stackId: t.stackId
1994
1994
  }, e);
1995
- case "area": return /* @__PURE__ */ j(Et, {
1995
+ case "area": return /* @__PURE__ */ A(Dt, {
1996
1996
  dataKey: e,
1997
1997
  stackId: t.stackId,
1998
1998
  curveType: t.curveType ?? "monotone",
@@ -2004,7 +2004,7 @@ function qi(e, t) {
2004
2004
  //#endregion
2005
2005
  //#region src/dashboards/renderers/CartesianWidgetRenderer.tsx
2006
2006
  function Ji({ widget: e, timeRange: t, filters: r }) {
2007
- let i = bi(e.filters, r), a = n(), o = Y(t), s = D(() => Wi(o, 48), [o]), c = N({ queries: e.series.map((e) => {
2007
+ let i = bi(e.filters, r), a = n(), o = Y(t), s = E(() => Wi(o, 48), [o]), c = M({ queries: e.series.map((e) => {
2008
2008
  let t = q(i, e.filters), n = [{
2009
2009
  name: e.metric,
2010
2010
  measures: [W(e.measure)],
@@ -2025,10 +2025,10 @@ function Ji({ widget: e, timeRange: t, filters: r }) {
2025
2025
  staleTime: G
2026
2026
  };
2027
2027
  }) }), l = c.some((e) => e.isLoading), u = c.some((e) => e.isError);
2028
- E(() => {
2028
+ T(() => {
2029
2029
  u && console.error(`[CartesianWidgetRenderer] One or more series queries failed for widget "${e.title}"`);
2030
2030
  }, [u, e.title]);
2031
- let d = c.map((e) => e.dataUpdatedAt).join(","), { data: f, config: p, seriesByKey: m } = D(() => {
2031
+ let d = c.map((e) => e.dataUpdatedAt).join(","), { data: f, config: p, seriesByKey: m } = E(() => {
2032
2032
  let { elements: t, seriesMap: n } = Ii(e.series, c.map((e) => e?.data)), r = {}, i = {};
2033
2033
  for (let e of t) {
2034
2034
  let t = { label: e.label };
@@ -2040,7 +2040,7 @@ function Ji({ widget: e, timeRange: t, filters: r }) {
2040
2040
  seriesByKey: i
2041
2041
  };
2042
2042
  }, [e.series, d]), h = l ? "loading" : u ? "empty" : "ready";
2043
- return /* @__PURE__ */ j(Gi, {
2043
+ return /* @__PURE__ */ A(Gi, {
2044
2044
  data: f,
2045
2045
  config: p,
2046
2046
  series: [...e.series],
@@ -2053,7 +2053,7 @@ function Ji({ widget: e, timeRange: t, filters: r }) {
2053
2053
  //#endregion
2054
2054
  //#region src/dashboards/renderers/DoughnutPresentation.tsx
2055
2055
  function Yi({ data: e, config: t, state: n, showShare: r = !0, valueFormatter: i }) {
2056
- let a = D(() => {
2056
+ let a = E(() => {
2057
2057
  if (i) return i;
2058
2058
  if (r) return Ti(wi(e.map((e) => e.value)));
2059
2059
  }, [
@@ -2061,13 +2061,13 @@ function Yi({ data: e, config: t, state: n, showShare: r = !0, valueFormatter: i
2061
2061
  r,
2062
2062
  i
2063
2063
  ]);
2064
- return /* @__PURE__ */ j(At, {
2064
+ return /* @__PURE__ */ A(jt, {
2065
2065
  config: t,
2066
2066
  className: "h-full w-full",
2067
- children: /* @__PURE__ */ M(Ft, {
2067
+ children: /* @__PURE__ */ j(It, {
2068
2068
  data: [...e],
2069
2069
  state: n,
2070
- children: [/* @__PURE__ */ j(Nt, { content: /* @__PURE__ */ j(Pt, { valueFormatter: a }) }), /* @__PURE__ */ j(jt, { content: /* @__PURE__ */ j(Mt, {}) })]
2070
+ children: [/* @__PURE__ */ A(Pt, { content: /* @__PURE__ */ A(Ft, { valueFormatter: a }) }), /* @__PURE__ */ A(Mt, { content: /* @__PURE__ */ A(Nt, {}) })]
2071
2071
  })
2072
2072
  });
2073
2073
  }
@@ -2084,10 +2084,10 @@ function Xi({ widget: e, timeRange: t, filters: n }) {
2084
2084
  filters: r,
2085
2085
  limit: e.limit
2086
2086
  });
2087
- E(() => {
2087
+ T(() => {
2088
2088
  s && console.error(`[DoughnutWidgetRenderer] Failed to fetch facets for widget "${e.title}"`);
2089
2089
  }, [s, e.title]);
2090
- let { data: c, config: l } = D(() => {
2090
+ let { data: c, config: l } = E(() => {
2091
2091
  if (!a) return {
2092
2092
  data: [],
2093
2093
  config: {}
@@ -2099,7 +2099,7 @@ function Xi({ widget: e, timeRange: t, filters: n }) {
2099
2099
  config: t
2100
2100
  };
2101
2101
  }, [a]);
2102
- return /* @__PURE__ */ j(Yi, {
2102
+ return /* @__PURE__ */ A(Yi, {
2103
2103
  data: c,
2104
2104
  config: l,
2105
2105
  state: o ? "loading" : s ? "empty" : "ready"
@@ -2174,7 +2174,7 @@ function aa(e) {
2174
2174
  //#endregion
2175
2175
  //#region src/dashboards/renderers/MetricGroupPresentation.tsx
2176
2176
  function oa({ items: e, state: t, skeletonCount: n }) {
2177
- return /* @__PURE__ */ j(zt, {
2177
+ return /* @__PURE__ */ A(Bt, {
2178
2178
  items: e,
2179
2179
  state: t,
2180
2180
  skeletonCount: n ?? e.length
@@ -2211,7 +2211,7 @@ function la(e) {
2211
2211
  };
2212
2212
  }
2213
2213
  function ua({ widget: e, timeRange: t, filters: n }) {
2214
- let r = bi(e.filters, n), i = e.items.some((e) => e.showTrend !== !1), a = Y(t), o = D(() => ca(e.items.map(la)), [e.items]), s = D(() => ca(e.items.filter((e) => e.showTrend !== !1).map(la)), [e.items]), c = D(() => aa(a), [a]), { data: l, isLoading: u, isError: d } = On({
2214
+ let r = bi(e.filters, n), i = e.items.some((e) => e.showTrend !== !1), a = Y(t), o = E(() => ca(e.items.map(la)), [e.items]), s = E(() => ca(e.items.filter((e) => e.showTrend !== !1).map(la)), [e.items]), c = E(() => aa(a), [a]), { data: l, isLoading: u, isError: d } = On({
2215
2215
  metrics: o,
2216
2216
  timeRange: a,
2217
2217
  filters: r
@@ -2221,12 +2221,12 @@ function ua({ widget: e, timeRange: t, filters: n }) {
2221
2221
  filters: r,
2222
2222
  enabled: i
2223
2223
  });
2224
- return E(() => {
2224
+ return T(() => {
2225
2225
  d && console.error(`[MetricGroupWidgetRenderer] Failed to fetch measures for "${e.title}"`);
2226
- }, [d, e.title]), E(() => {
2226
+ }, [d, e.title]), T(() => {
2227
2227
  p && console.error(`[MetricGroupWidgetRenderer] Failed to fetch previous-period measures for "${e.title}"`);
2228
- }, [p, e.title]), /* @__PURE__ */ j(oa, {
2229
- items: D(() => {
2228
+ }, [p, e.title]), /* @__PURE__ */ A(oa, {
2229
+ items: E(() => {
2230
2230
  let t = new Map(l?.map((e) => [e.name, e]) ?? []), n = new Map(f?.map((e) => [e.name, e]) ?? []);
2231
2231
  return e.items.map((e) => {
2232
2232
  let r = t.get(e.metric);
@@ -2254,7 +2254,7 @@ function ua({ widget: e, timeRange: t, filters: n }) {
2254
2254
  //#endregion
2255
2255
  //#region src/dashboards/renderers/MetricPresentation.tsx
2256
2256
  function da({ value: e, label: t, state: n, trend: r, trendSentiment: i, sparklineData: a }) {
2257
- return /* @__PURE__ */ j(Rt, {
2257
+ return /* @__PURE__ */ A(zt, {
2258
2258
  value: e,
2259
2259
  label: t,
2260
2260
  state: n,
@@ -2266,10 +2266,10 @@ function da({ value: e, label: t, state: n, trend: r, trendSentiment: i, sparkli
2266
2266
  //#endregion
2267
2267
  //#region src/dashboards/renderers/MetricWidgetRenderer.tsx
2268
2268
  function fa({ widget: e, timeRange: t, filters: n }) {
2269
- let r = bi(e.filters, n), i = e.showTrend === !0, a = e.showSparkline === !0, o = Y(t), s = W(e.measure), c = D(() => [{
2269
+ let r = bi(e.filters, n), i = e.showTrend === !0, a = e.showSparkline === !0, o = Y(t), s = W(e.measure), c = E(() => [{
2270
2270
  name: e.metric,
2271
2271
  measures: [s]
2272
- }], [e.metric, s]), l = D(() => aa(o), [o]), u = D(() => Wi(o, 48), [o]), { data: d, isLoading: f, isError: p } = On({
2272
+ }], [e.metric, s]), l = E(() => aa(o), [o]), u = E(() => Wi(o, 48), [o]), { data: d, isLoading: f, isError: p } = On({
2273
2273
  metrics: c,
2274
2274
  timeRange: o,
2275
2275
  filters: r
@@ -2285,21 +2285,21 @@ function fa({ widget: e, timeRange: t, filters: n }) {
2285
2285
  filters: r,
2286
2286
  enabled: a
2287
2287
  });
2288
- E(() => {
2288
+ T(() => {
2289
2289
  p && console.error(`[MetricWidgetRenderer] Failed to fetch measures for "${e.metric}"`);
2290
- }, [p, e.metric]), E(() => {
2290
+ }, [p, e.metric]), T(() => {
2291
2291
  h && console.error(`[MetricWidgetRenderer] Failed to fetch previous-period measures for "${e.metric}"`);
2292
- }, [h, e.metric]), E(() => {
2292
+ }, [h, e.metric]), T(() => {
2293
2293
  _ && console.error(`[MetricWidgetRenderer] Failed to fetch sparkline data for "${e.metric}"`);
2294
2294
  }, [_, e.metric]);
2295
- let v = d?.[0], y = m?.[0], b = v ? Qi(v, s) : void 0, x = v ? Zi(v, s) : void 0, S = y ? Zi(y, s) : void 0, C = i && x !== void 0 ? $i(x, S) : void 0, ee = a ? ea(g, e.metric) : void 0, te = f ? "loading" : p || !f && !v ? "empty" : "ready";
2296
- return /* @__PURE__ */ j(da, {
2295
+ let v = d?.[0], y = m?.[0], b = v ? Qi(v, s) : void 0, x = v ? Zi(v, s) : void 0, S = y ? Zi(y, s) : void 0, ee = i && x !== void 0 ? $i(x, S) : void 0, te = a ? ea(g, e.metric) : void 0, ne = f ? "loading" : p || !f && !v ? "empty" : "ready";
2296
+ return /* @__PURE__ */ A(da, {
2297
2297
  value: b?.value ?? "—",
2298
2298
  label: e.title,
2299
- state: te,
2300
- trend: C,
2299
+ state: ne,
2300
+ trend: ee,
2301
2301
  trendSentiment: e.sentiment,
2302
- sparklineData: ee
2302
+ sparklineData: te
2303
2303
  });
2304
2304
  }
2305
2305
  //#endregion
@@ -2323,13 +2323,13 @@ function va() {
2323
2323
  //#endregion
2324
2324
  //#region src/dashboards/renderers/UnknownWidgetFallback.tsx
2325
2325
  function ya({ widget: e }) {
2326
- return /* @__PURE__ */ M("div", {
2326
+ return /* @__PURE__ */ j("div", {
2327
2327
  role: "alert",
2328
2328
  className: "flex h-full flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-destructive/30 bg-destructive/5 p-4 text-center",
2329
- children: [/* @__PURE__ */ j("span", {
2329
+ children: [/* @__PURE__ */ A("span", {
2330
2330
  className: "text-sm font-medium text-destructive",
2331
2331
  children: "Unknown widget type"
2332
- }), /* @__PURE__ */ M("span", {
2332
+ }), /* @__PURE__ */ j("span", {
2333
2333
  className: "text-xs text-muted-foreground",
2334
2334
  children: [
2335
2335
  "No renderer registered for type “",
@@ -2343,7 +2343,7 @@ function ya({ widget: e }) {
2343
2343
  //#region src/dashboards/WidgetItem.tsx
2344
2344
  va();
2345
2345
  function ba(e) {
2346
- return e.data ? Sa(e.widget, e.data) : /* @__PURE__ */ j(xa, {
2346
+ return e.data ? Sa(e.widget, e.data) : /* @__PURE__ */ A(xa, {
2347
2347
  widget: e.widget,
2348
2348
  timeRange: e.timeRange,
2349
2349
  filters: e.filters
@@ -2353,16 +2353,16 @@ function xa({ widget: e, timeRange: t, filters: n }) {
2353
2353
  let r = fi(), i = t ?? r?.timeRange, a = n ?? r?.filters ?? li;
2354
2354
  if (!i) throw Error("[gamma-lib-observability] <WidgetItem> requires a timeRange. Provide it as a prop or wrap the component in a <WidgetGroup>.");
2355
2355
  let o = ha(e.type);
2356
- return o ? C(o, {
2356
+ return o ? ee(o, {
2357
2357
  widget: e,
2358
2358
  timeRange: i,
2359
2359
  filters: a
2360
- }) : /* @__PURE__ */ j(ya, { widget: e });
2360
+ }) : /* @__PURE__ */ A(ya, { widget: e });
2361
2361
  }
2362
2362
  function Sa(e, t) {
2363
2363
  if (t.type !== e.type) throw Error(`[gamma-lib-observability] <WidgetItem> data.type "${t.type}" does not match widget.type "${e.type}". The data.type must match the widget definition type.`);
2364
2364
  switch (t.type) {
2365
- case "metric": return /* @__PURE__ */ j(da, {
2365
+ case "metric": return /* @__PURE__ */ A(da, {
2366
2366
  value: t.value,
2367
2367
  label: t.label,
2368
2368
  state: t.state,
@@ -2370,12 +2370,12 @@ function Sa(e, t) {
2370
2370
  trendSentiment: t.trendSentiment,
2371
2371
  sparklineData: t.sparklineData
2372
2372
  });
2373
- case "metric-group": return /* @__PURE__ */ j(oa, {
2373
+ case "metric-group": return /* @__PURE__ */ A(oa, {
2374
2374
  items: t.items,
2375
2375
  state: t.state,
2376
2376
  skeletonCount: t.skeletonCount
2377
2377
  });
2378
- case "cartesian": return /* @__PURE__ */ j(Gi, {
2378
+ case "cartesian": return /* @__PURE__ */ A(Gi, {
2379
2379
  data: t.data,
2380
2380
  config: t.config,
2381
2381
  series: t.series,
@@ -2383,20 +2383,20 @@ function Sa(e, t) {
2383
2383
  showTotal: t.showTotal,
2384
2384
  totalLabel: t.totalLabel
2385
2385
  });
2386
- case "bar": return /* @__PURE__ */ j(Ai, {
2386
+ case "bar": return /* @__PURE__ */ A(Ai, {
2387
2387
  data: t.data,
2388
2388
  config: t.config,
2389
2389
  state: t.state,
2390
2390
  layout: t.layout,
2391
2391
  showShare: t.showShare
2392
2392
  });
2393
- case "doughnut": return /* @__PURE__ */ j(Yi, {
2393
+ case "doughnut": return /* @__PURE__ */ A(Yi, {
2394
2394
  data: t.data,
2395
2395
  config: t.config,
2396
2396
  state: t.state,
2397
2397
  showShare: t.showShare
2398
2398
  });
2399
- default: return /* @__PURE__ */ j(ya, { widget: e });
2399
+ default: return /* @__PURE__ */ A(ya, { widget: e });
2400
2400
  }
2401
2401
  }
2402
2402
  //#endregion
@@ -2409,20 +2409,20 @@ var Ca = {
2409
2409
  xxs: 12
2410
2410
  };
2411
2411
  function wa({ dashboard: t, timeRange: n, filters: r = li, editable: i = !1, rowHeight: a, breakpointCols: o = Ca, onLayoutChange: s }) {
2412
- let c = e("observability.dashboards.write"), l = i && c, u = D(() => t.widgets.map((e) => ({
2412
+ let c = e("observability.dashboards.write"), l = i && c, u = E(() => t.widgets.map((e) => ({
2413
2413
  id: e.id,
2414
2414
  x: e.layout.x,
2415
2415
  y: e.layout.y,
2416
2416
  cols: e.layout.cols,
2417
2417
  rows: e.layout.rows
2418
- })), [t.widgets]), d = D(() => {
2418
+ })), [t.widgets]), d = E(() => {
2419
2419
  let e = /* @__PURE__ */ new Map();
2420
2420
  for (let n of t.widgets) e.set(n.id, n);
2421
2421
  return e;
2422
2422
  }, [t.widgets]);
2423
- return /* @__PURE__ */ j("div", {
2423
+ return /* @__PURE__ */ A("div", {
2424
2424
  className: "w-full overflow-x-auto",
2425
- children: /* @__PURE__ */ j(wt, {
2425
+ children: /* @__PURE__ */ A(Tt, {
2426
2426
  widgets: u,
2427
2427
  editable: l,
2428
2428
  rowHeight: a,
@@ -2430,11 +2430,11 @@ function wa({ dashboard: t, timeRange: n, filters: r = li, editable: i = !1, row
2430
2430
  onLayoutChange: s,
2431
2431
  children: (e) => {
2432
2432
  let t = d.get(e.id);
2433
- return t ? /* @__PURE__ */ j(Tt, {
2433
+ return t ? /* @__PURE__ */ A(Et, {
2434
2434
  title: t.title,
2435
2435
  subtitle: t.description,
2436
2436
  noPadding: Ta(t),
2437
- children: /* @__PURE__ */ j(ba, {
2437
+ children: /* @__PURE__ */ A(ba, {
2438
2438
  widget: t,
2439
2439
  timeRange: n,
2440
2440
  filters: r
@@ -2456,12 +2456,12 @@ var Ea = {
2456
2456
  end: "items-end"
2457
2457
  };
2458
2458
  function Da({ timeRange: e, filters: t = li, align: n = "stretch", children: r }) {
2459
- return /* @__PURE__ */ j(di, {
2460
- value: D(() => ({
2459
+ return /* @__PURE__ */ A(di, {
2460
+ value: E(() => ({
2461
2461
  timeRange: e,
2462
2462
  filters: t
2463
2463
  }), [e, t]),
2464
- children: /* @__PURE__ */ j("div", {
2464
+ children: /* @__PURE__ */ A("div", {
2465
2465
  className: `flex flex-wrap gap-4 ${Ea[n]} *:min-w-48 *:flex-1`,
2466
2466
  children: r
2467
2467
  })
@@ -2491,16 +2491,16 @@ function Aa(e, t) {
2491
2491
  //#region src/dashboards/templates/DashboardTemplatesProvider.tsx
2492
2492
  var ja = S(null);
2493
2493
  function Ma({ templates: e, children: t }) {
2494
- let n = D(() => e, [e]);
2495
- return /* @__PURE__ */ j(ja.Provider, {
2494
+ let n = E(() => e, [e]);
2495
+ return /* @__PURE__ */ A(ja.Provider, {
2496
2496
  value: n,
2497
2497
  children: t
2498
2498
  });
2499
2499
  }
2500
2500
  function Na() {
2501
- let e = T(ja), t = a();
2501
+ let e = w(ja), t = a();
2502
2502
  if (!e) throw Error("[gamma-lib-observability] useDashboardTemplates must be used within a <DashboardTemplatesProvider>. Wrap your component tree with <DashboardTemplatesProvider templates={[...]}>.");
2503
- return D(() => Aa(e, t), [e, t]);
2503
+ return E(() => Aa(e, t), [e, t]);
2504
2504
  }
2505
2505
  function Pa(e) {
2506
2506
  return Na().find((t) => t.id === e);
@@ -2511,29 +2511,29 @@ function Fa(e) {
2511
2511
  return e < 6e4 ? `${Math.round(e / 1e3)}s` : `${Math.round(e / 6e4)}min`;
2512
2512
  }
2513
2513
  function Ia({ isFetching: e, className: t }) {
2514
- let n = ln(), [r, i] = k(!0), a = w(() => i((e) => !e), []), o = n?.isLive ?? r, s = n?.intervalMs ?? 6e4, c = n?.toggle ?? a, l = e ?? n?.isFetching ?? !1, u = o ? `Live — refreshing every ${Fa(s)}` : "Paused — click to resume";
2515
- return /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
2514
+ let n = ln(), [r, i] = O(!0), a = C(() => i((e) => !e), []), o = n?.isLive ?? r, s = n?.intervalMs ?? 6e4, c = n?.toggle ?? a, l = e ?? n?.isFetching ?? !1, u = o ? `Live — refreshing every ${Fa(s)}` : "Paused — click to resume";
2515
+ return /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
2516
2516
  asChild: !0,
2517
- children: /* @__PURE__ */ M("button", {
2517
+ children: /* @__PURE__ */ j("button", {
2518
2518
  type: "button",
2519
2519
  onClick: c,
2520
- className: H("inline-flex cursor-pointer items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", o ? "border-success/30 bg-success/5 text-success hover:bg-success/10" : "border-border bg-muted text-muted-foreground hover:bg-accent", t),
2520
+ className: V("inline-flex cursor-pointer items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", o ? "border-success/30 bg-success/5 text-success hover:bg-success/10" : "border-border bg-muted text-muted-foreground hover:bg-accent", t),
2521
2521
  "aria-label": u,
2522
2522
  "aria-pressed": o,
2523
- children: [/* @__PURE__ */ M("span", {
2523
+ children: [/* @__PURE__ */ j("span", {
2524
2524
  className: "relative flex size-2",
2525
- children: [o && /* @__PURE__ */ j("span", { className: H("absolute inset-0 rounded-full bg-success", l ? "animate-ping" : "animate-pulse") }), /* @__PURE__ */ j("span", { className: H("relative inline-flex size-2 rounded-full", o ? "bg-success" : "bg-muted-foreground/50") })]
2525
+ children: [o && /* @__PURE__ */ A("span", { className: V("absolute inset-0 rounded-full bg-success", l ? "animate-ping" : "animate-pulse") }), /* @__PURE__ */ A("span", { className: V("relative inline-flex size-2 rounded-full", o ? "bg-success" : "bg-muted-foreground/50") })]
2526
2526
  }), o ? "Live" : "Paused"]
2527
2527
  })
2528
- }), /* @__PURE__ */ j(z, {
2528
+ }), /* @__PURE__ */ A(R, {
2529
2529
  side: "bottom",
2530
- children: /* @__PURE__ */ j("p", { children: u })
2530
+ children: /* @__PURE__ */ A("p", { children: u })
2531
2531
  })] });
2532
2532
  }
2533
2533
  //#endregion
2534
2534
  //#region src/routing/use-observability-url-state.ts
2535
2535
  function La() {
2536
- let [e, t] = Zt(), n = D(() => Jn(e.get("q"), e.get("v")), [e]), r = w((e, n) => {
2536
+ let [e, t] = Zt(), n = E(() => Jn(e.get("q"), e.get("v")), [e]), r = C((e, n) => {
2537
2537
  let r = qn({
2538
2538
  conditions: n,
2539
2539
  timeRange: e
@@ -2542,7 +2542,7 @@ function La() {
2542
2542
  let t = new URLSearchParams(e);
2543
2543
  return r ? (t.set("q", r.q), t.set("v", r.v)) : (t.delete("q"), t.delete("v")), t;
2544
2544
  }, { replace: !0 });
2545
- }, [t]), i = w((e) => r(e, n.conditions), [r, n.conditions]), a = w((e) => r(n.timeRange, e), [r, n.timeRange]);
2545
+ }, [t]), i = C((e) => r(e, n.conditions), [r, n.conditions]), a = C((e) => r(n.timeRange, e), [r, n.timeRange]);
2546
2546
  return {
2547
2547
  timeRange: n.timeRange ?? Un,
2548
2548
  filters: n.conditions,
@@ -2565,7 +2565,7 @@ function za(e) {
2565
2565
  }
2566
2566
  function Ba({ level: e }) {
2567
2567
  let t = e.toLowerCase();
2568
- return /* @__PURE__ */ j(F, {
2568
+ return /* @__PURE__ */ A(P, {
2569
2569
  variant: za(t) ? Ra[t] : "secondary",
2570
2570
  children: e.toUpperCase()
2571
2571
  });
@@ -2606,7 +2606,7 @@ function Ga(e, t) {
2606
2606
  }
2607
2607
  function Ka(e, t, n, r) {
2608
2608
  let i = e.href?.(t);
2609
- return !i || Ga(r, e.linkSentinels ?? Wa) ? n : /* @__PURE__ */ j("a", {
2609
+ return !i || Ga(r, e.linkSentinels ?? Wa) ? n : /* @__PURE__ */ A("a", {
2610
2610
  href: i,
2611
2611
  target: "_blank",
2612
2612
  rel: "noopener noreferrer",
@@ -2618,28 +2618,28 @@ function Ka(e, t, n, r) {
2618
2618
  function qa(e, t) {
2619
2619
  if (e.render) return e.render(t);
2620
2620
  let n = e.value(t);
2621
- if (n == null) return /* @__PURE__ */ j("span", {
2621
+ if (n == null) return /* @__PURE__ */ A("span", {
2622
2622
  className: "text-muted-foreground",
2623
2623
  children: "—"
2624
2624
  });
2625
2625
  let r;
2626
2626
  switch (e.variant) {
2627
- case "badge": return /* @__PURE__ */ j(Ba, { level: String(n) });
2627
+ case "badge": return /* @__PURE__ */ A(Ba, { level: String(n) });
2628
2628
  case "datetime":
2629
- r = /* @__PURE__ */ j("span", {
2629
+ r = /* @__PURE__ */ A("span", {
2630
2630
  className: "font-mono text-xs",
2631
2631
  children: Ha(n)
2632
2632
  });
2633
2633
  break;
2634
2634
  case "duration":
2635
- r = /* @__PURE__ */ j("span", {
2635
+ r = /* @__PURE__ */ A("span", {
2636
2636
  className: "font-mono text-xs",
2637
2637
  children: Ua(n)
2638
2638
  });
2639
2639
  break;
2640
2640
  case "status-code": {
2641
2641
  let e = Number(n);
2642
- r = /* @__PURE__ */ j("span", {
2642
+ r = /* @__PURE__ */ A("span", {
2643
2643
  className: `font-mono text-xs font-medium ${e >= 500 ? "text-destructive" : e >= 400 ? "text-warning" : "text-success"}`,
2644
2644
  children: n
2645
2645
  });
@@ -2647,13 +2647,13 @@ function qa(e, t) {
2647
2647
  }
2648
2648
  case "http-method": {
2649
2649
  let e = String(n).toUpperCase();
2650
- r = /* @__PURE__ */ j(F, {
2650
+ r = /* @__PURE__ */ A(P, {
2651
2651
  variant: Va[e] ?? "secondary",
2652
2652
  children: e
2653
2653
  });
2654
2654
  break;
2655
2655
  }
2656
- default: r = /* @__PURE__ */ j("span", {
2656
+ default: r = /* @__PURE__ */ A("span", {
2657
2657
  className: "text-sm",
2658
2658
  children: String(n)
2659
2659
  });
@@ -2701,12 +2701,12 @@ function Qa({ columns: e, data: t, loading: n, totalCount: r, page: i, pageSize:
2701
2701
  50,
2702
2702
  100
2703
2703
  ], onRowClick: l, toolbar: u, getRowId: d, columnVisibilityStorageKey: f }) {
2704
- let p = D(() => Ja(e), [e]), m = D(() => Ya(e), [e]), [h, g] = k(() => f ? Xa(f, m) : m), _ = w((e) => {
2704
+ let p = E(() => Ja(e), [e]), m = E(() => Ya(e), [e]), [h, g] = O(() => f ? Xa(f, m) : m), _ = C((e) => {
2705
2705
  g((t) => {
2706
2706
  let n = typeof e == "function" ? e(t) : e;
2707
2707
  return f && Za(f, n), n;
2708
2708
  });
2709
- }, [f]), v = w((e) => {
2709
+ }, [f]), v = C((e) => {
2710
2710
  if (!l) return;
2711
2711
  let n = e.target;
2712
2712
  if (n.closest("button, a, input, [role=\"checkbox\"]")) return;
@@ -2716,7 +2716,7 @@ function Qa({ columns: e, data: t, loading: n, totalCount: r, page: i, pageSize:
2716
2716
  if (!i) return;
2717
2717
  let a = Array.from(i.children).indexOf(r), o = t[a];
2718
2718
  a < 0 || !o || l(o);
2719
- }, [l, t]), y = w((e) => {
2719
+ }, [l, t]), y = C((e) => {
2720
2720
  if (!l || e.key !== "Enter" && e.key !== " ") return;
2721
2721
  let n = e.target.closest("tbody tr");
2722
2722
  if (!n) return;
@@ -2726,12 +2726,12 @@ function Qa({ columns: e, data: t, loading: n, totalCount: r, page: i, pageSize:
2726
2726
  let i = Array.from(r.children).indexOf(n), a = t[i];
2727
2727
  i < 0 || !a || l(a);
2728
2728
  }, [l, t]);
2729
- return /* @__PURE__ */ j("div", {
2729
+ return /* @__PURE__ */ A("div", {
2730
2730
  role: l ? "grid" : void 0,
2731
2731
  onClick: v,
2732
2732
  onKeyDown: y,
2733
2733
  className: l ? "[&_tbody_tr]:cursor-pointer" : void 0,
2734
- children: /* @__PURE__ */ j(be, {
2734
+ children: /* @__PURE__ */ A(xe, {
2735
2735
  columns: p,
2736
2736
  data: t,
2737
2737
  loading: n,
@@ -2746,15 +2746,15 @@ function Qa({ columns: e, data: t, loading: n, totalCount: r, page: i, pageSize:
2746
2746
  state: { columnVisibility: h },
2747
2747
  onColumnVisibilityChange: _
2748
2748
  },
2749
- emptyMessage: /* @__PURE__ */ j(Se, { children: /* @__PURE__ */ M(we, { children: [
2750
- /* @__PURE__ */ j(Te, {
2749
+ emptyMessage: /* @__PURE__ */ A(Ce, { children: /* @__PURE__ */ j(Te, { children: [
2750
+ /* @__PURE__ */ A(Ee, {
2751
2751
  variant: "icon",
2752
- children: /* @__PURE__ */ j(ft, {})
2752
+ children: /* @__PURE__ */ A(pt, {})
2753
2753
  }),
2754
- /* @__PURE__ */ j(Ee, { children: "No logs found" }),
2755
- /* @__PURE__ */ j(Ce, { children: "Try adjusting your filters or time range to see log entries." })
2754
+ /* @__PURE__ */ A(De, { children: "No logs found" }),
2755
+ /* @__PURE__ */ A(we, { children: "Try adjusting your filters or time range to see log entries." })
2756
2756
  ] }) }),
2757
- footer: r > 0 ? /* @__PURE__ */ j(xe, {
2757
+ footer: r > 0 ? /* @__PURE__ */ A(Se, {
2758
2758
  page: i,
2759
2759
  pageSize: a,
2760
2760
  totalCount: r,
@@ -2796,14 +2796,14 @@ var eo = 40, to = "HTTP_REQUESTS", no = "COUNT", ro = {
2796
2796
  to: 599
2797
2797
  };
2798
2798
  function oo(e) {
2799
- let { timeRange: t, filters: n, enabled: r = !0, analyticsFilterMapping: i } = e, a = c(), o = $a(q(J(), n), i), s = Y(t), l = D(() => Wi(s, eo), [s]), u = D(() => [{
2799
+ let { timeRange: t, filters: n, enabled: r = !0, analyticsFilterMapping: i } = e, a = c(), o = $a(q(J(), n), i), s = Y(t), l = E(() => Wi(s, eo), [s]), u = E(() => [{
2800
2800
  name: to,
2801
2801
  measures: [no]
2802
- }], []), d = D(() => ["HTTP_STATUS"], []), f = D(() => [
2802
+ }], []), d = E(() => ["HTTP_STATUS"], []), f = E(() => [
2803
2803
  ro,
2804
2804
  io,
2805
2805
  ao
2806
- ], []), p = P({
2806
+ ], []), p = N({
2807
2807
  queryKey: [...K.timeSeries(u, s, l, o, d), "histogram"],
2808
2808
  queryFn: ({ signal: e }) => a.fetchTimeSeries({
2809
2809
  metrics: u,
@@ -2815,7 +2815,7 @@ function oo(e) {
2815
2815
  signal: e
2816
2816
  }),
2817
2817
  staleTime: G,
2818
- placeholderData: ie,
2818
+ placeholderData: ae,
2819
2819
  enabled: r && a !== null
2820
2820
  });
2821
2821
  return {
@@ -2845,40 +2845,40 @@ var so = {
2845
2845
  }
2846
2846
  }, co = "100-399", lo = "400-499", uo = "500-599";
2847
2847
  function fo(e) {
2848
- let { data: t, isLoading: n, available: r } = oo(e), i = D(() => po(t), [t]);
2848
+ let { data: t, isLoading: n, available: r } = oo(e), i = E(() => po(t), [t]);
2849
2849
  if (!r) return null;
2850
2850
  let a = !n && i.length === 0;
2851
- return /* @__PURE__ */ M("div", {
2851
+ return /* @__PURE__ */ j("div", {
2852
2852
  className: "w-full",
2853
2853
  "aria-label": "Log volume histogram",
2854
- children: [/* @__PURE__ */ j("p", {
2854
+ children: [/* @__PURE__ */ A("p", {
2855
2855
  className: "mb-1 text-xs text-muted-foreground",
2856
2856
  children: "Requests over time"
2857
- }), /* @__PURE__ */ j(At, {
2857
+ }), /* @__PURE__ */ A(jt, {
2858
2858
  config: so,
2859
2859
  className: "h-[120px] w-full",
2860
- children: /* @__PURE__ */ M(kt, {
2860
+ children: /* @__PURE__ */ j(At, {
2861
2861
  data: i,
2862
2862
  state: n ? "loading" : a ? "empty" : "ready",
2863
2863
  categoryScaleType: "band",
2864
2864
  animated: !n,
2865
2865
  children: [
2866
- /* @__PURE__ */ j(It, { orientation: "horizontal" }),
2867
- /* @__PURE__ */ j(Ot, {
2866
+ /* @__PURE__ */ A(Lt, { orientation: "horizontal" }),
2867
+ /* @__PURE__ */ A(kt, {
2868
2868
  dataKey: co,
2869
2869
  stackId: "volume"
2870
2870
  }),
2871
- /* @__PURE__ */ j(Ot, {
2871
+ /* @__PURE__ */ A(kt, {
2872
2872
  dataKey: lo,
2873
2873
  stackId: "volume"
2874
2874
  }),
2875
- /* @__PURE__ */ j(Ot, {
2875
+ /* @__PURE__ */ A(kt, {
2876
2876
  dataKey: uo,
2877
2877
  stackId: "volume"
2878
2878
  }),
2879
- /* @__PURE__ */ j(Ht, {}),
2880
- /* @__PURE__ */ j(Ut, {}),
2881
- /* @__PURE__ */ j(Nt, { content: /* @__PURE__ */ j(Pt, { showTotal: !0 }) })
2879
+ /* @__PURE__ */ A(Ut, {}),
2880
+ /* @__PURE__ */ A(Wt, {}),
2881
+ /* @__PURE__ */ A(Pt, { content: /* @__PURE__ */ A(Ft, { showTotal: !0 }) })
2882
2882
  ]
2883
2883
  })
2884
2884
  })]
@@ -2893,20 +2893,20 @@ function po(e) {
2893
2893
  //#region src/logs/LogsExplorerPage.tsx
2894
2894
  var mo = 300, ho = "observability-logs-columns";
2895
2895
  function go({ columns: e, onRowClick: t, pageSize: n = 25, getRowId: r, scopeFilterField: i, columnVisibilityStorageKey: a = ho, analyticsFilterMapping: o, onPageDataChange: s }) {
2896
- let { timeRange: c, filters: l, setTimeRange: u, setFilters: d } = La(), f = kn(l, fn()), [p, m] = k(""), h = Dn({
2896
+ let { timeRange: c, filters: l, setTimeRange: u, setFilters: d } = La(), f = kn(l, fn()), [p, m] = O(""), h = Dn({
2897
2897
  timeRange: c,
2898
2898
  filters: l,
2899
2899
  search: br(p, mo) || void 0,
2900
2900
  pageSize: n
2901
- }), g = O(s);
2902
- E(() => {
2901
+ }), g = D(s);
2902
+ T(() => {
2903
2903
  g.current = s;
2904
- }, [s]), E(() => {
2904
+ }, [s]), T(() => {
2905
2905
  g.current?.(h.data);
2906
2906
  }, [h.data]);
2907
- let _ = /* @__PURE__ */ M("div", {
2907
+ let _ = /* @__PURE__ */ j("div", {
2908
2908
  className: "relative flex-1",
2909
- children: [/* @__PURE__ */ j(bt, { className: "absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ j(Ae, {
2909
+ children: [/* @__PURE__ */ A(xt, { className: "absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ A(je, {
2910
2910
  type: "search",
2911
2911
  placeholder: "Search logs…",
2912
2912
  value: p,
@@ -2915,53 +2915,53 @@ function go({ columns: e, onRowClick: t, pageSize: n = 25, getRowId: r, scopeFil
2915
2915
  "aria-label": "Search logs"
2916
2916
  })]
2917
2917
  });
2918
- return /* @__PURE__ */ M("div", {
2918
+ return /* @__PURE__ */ j("div", {
2919
2919
  className: "space-y-4 p-4",
2920
2920
  children: [
2921
- /* @__PURE__ */ j("h1", {
2921
+ /* @__PURE__ */ A("h1", {
2922
2922
  className: "text-lg font-semibold",
2923
2923
  children: "Logs"
2924
2924
  }),
2925
- /* @__PURE__ */ M("div", {
2925
+ /* @__PURE__ */ j("div", {
2926
2926
  className: "flex flex-wrap items-center gap-3",
2927
2927
  children: [
2928
- /* @__PURE__ */ j("div", {
2928
+ /* @__PURE__ */ A("div", {
2929
2929
  className: "flex flex-1 items-center gap-2",
2930
- children: /* @__PURE__ */ j(ci, {
2930
+ children: /* @__PURE__ */ A(ci, {
2931
2931
  filters: f,
2932
2932
  onFiltersChange: d,
2933
2933
  scopeFilterField: i
2934
2934
  })
2935
2935
  }),
2936
- /* @__PURE__ */ j(B, { children: /* @__PURE__ */ j(Ia, { isFetching: h.isFetching }) }),
2937
- /* @__PURE__ */ j(rr, {
2936
+ /* @__PURE__ */ A(z, { children: /* @__PURE__ */ A(Ia, { isFetching: h.isFetching }) }),
2937
+ /* @__PURE__ */ A(rr, {
2938
2938
  value: c,
2939
2939
  onChange: u
2940
2940
  })
2941
2941
  ]
2942
2942
  }),
2943
- /* @__PURE__ */ j(fo, {
2943
+ /* @__PURE__ */ A(fo, {
2944
2944
  timeRange: c,
2945
2945
  filters: l,
2946
2946
  analyticsFilterMapping: o
2947
2947
  }),
2948
- h.isError && /* @__PURE__ */ M("div", {
2948
+ h.isError && /* @__PURE__ */ j("div", {
2949
2949
  className: "flex items-center gap-3 rounded-lg border border-destructive/20 bg-destructive/5 px-4 py-3",
2950
2950
  children: [
2951
- /* @__PURE__ */ j(et, { className: "size-5 shrink-0 text-destructive" }),
2952
- /* @__PURE__ */ j("p", {
2951
+ /* @__PURE__ */ A(tt, { className: "size-5 shrink-0 text-destructive" }),
2952
+ /* @__PURE__ */ A("p", {
2953
2953
  className: "flex-1 text-sm text-destructive",
2954
2954
  children: h.error?.message ?? "Failed to load logs."
2955
2955
  }),
2956
- /* @__PURE__ */ M(I, {
2956
+ /* @__PURE__ */ j(F, {
2957
2957
  variant: "outline",
2958
2958
  size: "sm",
2959
2959
  onClick: h.refetch,
2960
- children: [/* @__PURE__ */ j(yt, { className: "size-3.5" }), "Retry"]
2960
+ children: [/* @__PURE__ */ A(bt, { className: "size-3.5" }), "Retry"]
2961
2961
  })
2962
2962
  ]
2963
2963
  }),
2964
- /* @__PURE__ */ j(Qa, {
2964
+ /* @__PURE__ */ A(Qa, {
2965
2965
  columns: e,
2966
2966
  data: h.data,
2967
2967
  loading: h.isLoading,
@@ -2993,23 +2993,23 @@ function _o({ basePath: e, timeRange: t, filters: n = [] }) {
2993
2993
  //#region src/logs/default-connection-log-columns.tsx
2994
2994
  var vo = {
2995
2995
  HTTP_PROXY: {
2996
- icon: ht,
2996
+ icon: gt,
2997
2997
  label: "HTTP"
2998
2998
  },
2999
2999
  LLM_PROXY: {
3000
- icon: rt,
3000
+ icon: it,
3001
3001
  label: "LLM"
3002
3002
  },
3003
3003
  MCP_PROXY: {
3004
- icon: it,
3004
+ icon: at,
3005
3005
  label: "MCP"
3006
3006
  },
3007
3007
  MESSAGE: {
3008
- icon: gt,
3008
+ icon: _t,
3009
3009
  label: "Message"
3010
3010
  },
3011
3011
  WEBHOOK: {
3012
- icon: St,
3012
+ icon: Ct,
3013
3013
  label: "Webhook"
3014
3014
  }
3015
3015
  };
@@ -3017,14 +3017,14 @@ function yo(e) {
3017
3017
  let t = vo[e.apiType];
3018
3018
  if (t) {
3019
3019
  let e = t.icon;
3020
- return /* @__PURE__ */ M("span", {
3020
+ return /* @__PURE__ */ j("span", {
3021
3021
  className: "inline-flex items-center gap-1 text-xs",
3022
- children: [/* @__PURE__ */ j(e, { className: "size-3.5" }), t.label]
3022
+ children: [/* @__PURE__ */ A(e, { className: "size-3.5" }), t.label]
3023
3023
  });
3024
3024
  }
3025
- return /* @__PURE__ */ M("span", {
3025
+ return /* @__PURE__ */ j("span", {
3026
3026
  className: "inline-flex items-center gap-1 text-xs text-muted-foreground",
3027
- children: [/* @__PURE__ */ j(lt, { className: "size-3.5" }), e.apiType]
3027
+ children: [/* @__PURE__ */ A(ut, { className: "size-3.5" }), e.apiType]
3028
3028
  });
3029
3029
  }
3030
3030
  var bo = "apis";
@@ -3065,7 +3065,7 @@ function So(e, t) {
3065
3065
  key: "uri",
3066
3066
  label: "URI",
3067
3067
  value: (e) => e.uri,
3068
- render: (e) => /* @__PURE__ */ j("span", {
3068
+ render: (e) => /* @__PURE__ */ A("span", {
3069
3069
  className: "font-mono text-xs",
3070
3070
  children: e.uri
3071
3071
  }),
@@ -3082,7 +3082,7 @@ function So(e, t) {
3082
3082
  key: "entrypoint",
3083
3083
  label: "Entrypoint",
3084
3084
  value: (e) => e.entrypoint,
3085
- render: (e) => /* @__PURE__ */ j("span", {
3085
+ render: (e) => /* @__PURE__ */ A("span", {
3086
3086
  className: "font-mono text-xs text-muted-foreground",
3087
3087
  children: e.entrypoint
3088
3088
  }),
@@ -3113,7 +3113,7 @@ function So(e, t) {
3113
3113
  key: "errorKey",
3114
3114
  label: "Error",
3115
3115
  value: (e) => e.errorKey,
3116
- render: (e) => e.errorKey ? /* @__PURE__ */ j("span", {
3116
+ render: (e) => e.errorKey ? /* @__PURE__ */ A("span", {
3117
3117
  className: "font-mono text-xs text-destructive",
3118
3118
  children: e.errorKey
3119
3119
  }) : null,
@@ -3129,7 +3129,7 @@ function So(e, t) {
3129
3129
  key: "transactionId",
3130
3130
  label: "Transaction ID",
3131
3131
  value: (e) => e.transactionId,
3132
- render: (e) => /* @__PURE__ */ j("span", {
3132
+ render: (e) => /* @__PURE__ */ A("span", {
3133
3133
  className: "font-mono text-xs text-muted-foreground",
3134
3134
  children: e.transactionId
3135
3135
  }),
@@ -3139,7 +3139,7 @@ function So(e, t) {
3139
3139
  key: "requestId",
3140
3140
  label: "Request ID",
3141
3141
  value: (e) => e.requestId,
3142
- render: (e) => /* @__PURE__ */ j("span", {
3142
+ render: (e) => /* @__PURE__ */ A("span", {
3143
3143
  className: "font-mono text-xs text-muted-foreground",
3144
3144
  children: e.requestId
3145
3145
  }),
@@ -3168,40 +3168,40 @@ function So(e, t) {
3168
3168
  //#region src/logs/detail/components/LogDetailCodeBlock.tsx
3169
3169
  var Co = 240;
3170
3170
  function X({ code: e, language: t = "json", maxHeight: n = Co }) {
3171
- let [r, i] = k(!1);
3172
- if (!e) return /* @__PURE__ */ j("p", {
3171
+ let [r, i] = O(!1);
3172
+ if (!e) return /* @__PURE__ */ A("p", {
3173
3173
  className: "text-xs text-muted-foreground/70 py-3 italic",
3174
3174
  children: "No body captured"
3175
3175
  });
3176
3176
  let a = wo(e), o = a.split("\n").length > 12;
3177
- return /* @__PURE__ */ M("div", {
3177
+ return /* @__PURE__ */ j("div", {
3178
3178
  className: "relative rounded-lg border",
3179
3179
  children: [
3180
- /* @__PURE__ */ j("div", {
3180
+ /* @__PURE__ */ A("div", {
3181
3181
  className: "absolute right-2 top-2 z-10",
3182
- children: /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
3182
+ children: /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
3183
3183
  asChild: !0,
3184
- children: /* @__PURE__ */ j(I, {
3184
+ children: /* @__PURE__ */ A(F, {
3185
3185
  variant: "ghost",
3186
3186
  size: "icon",
3187
3187
  className: "size-7",
3188
3188
  onClick: () => {
3189
- navigator.clipboard.writeText(a).then(() => U.success("Copied to clipboard"), () => U.error("Failed to copy to clipboard"));
3189
+ navigator.clipboard.writeText(a).then(() => H.success("Copied to clipboard"), () => H.error("Failed to copy to clipboard"));
3190
3190
  },
3191
3191
  "aria-label": "Copy body",
3192
- children: /* @__PURE__ */ j(ut, { className: "size-3.5" })
3192
+ children: /* @__PURE__ */ A(dt, { className: "size-3.5" })
3193
3193
  })
3194
- }), /* @__PURE__ */ j(z, { children: "Copy" })] }) })
3194
+ }), /* @__PURE__ */ A(R, { children: "Copy" })] }) })
3195
3195
  }),
3196
- /* @__PURE__ */ j("pre", {
3196
+ /* @__PURE__ */ A("pre", {
3197
3197
  className: "overflow-auto p-4 text-[13px] font-mono leading-relaxed text-foreground/90",
3198
3198
  style: { maxHeight: r ? void 0 : n },
3199
- children: /* @__PURE__ */ j("code", { children: a })
3199
+ children: /* @__PURE__ */ A("code", { children: a })
3200
3200
  }),
3201
- o && !r && /* @__PURE__ */ M("button", {
3201
+ o && !r && /* @__PURE__ */ j("button", {
3202
3202
  onClick: () => i(!0),
3203
3203
  className: "flex w-full items-center justify-center gap-1.5 border-t bg-muted/30 py-2 text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors duration-150 rounded-b-lg",
3204
- children: [/* @__PURE__ */ j(st, { className: "size-3.5" }), "Show more"]
3204
+ children: [/* @__PURE__ */ A(ct, { className: "size-3.5" }), "Show more"]
3205
3205
  })
3206
3206
  ]
3207
3207
  });
@@ -3217,7 +3217,7 @@ function wo(e) {
3217
3217
  //#endregion
3218
3218
  //#region src/logs/detail/components/LogDetailEmptyField.tsx
3219
3219
  function Z({ message: e = "Not captured" }) {
3220
- return /* @__PURE__ */ j("p", {
3220
+ return /* @__PURE__ */ A("p", {
3221
3221
  className: "text-xs italic text-muted-foreground py-2",
3222
3222
  children: e
3223
3223
  });
@@ -3225,18 +3225,18 @@ function Z({ message: e = "Not captured" }) {
3225
3225
  //#endregion
3226
3226
  //#region src/logs/detail/components/LogDetailHeadersTable.tsx
3227
3227
  function Q({ headers: e }) {
3228
- return !e || Object.keys(e).length === 0 ? /* @__PURE__ */ j(Z, { message: "No headers captured" }) : /* @__PURE__ */ j("div", {
3228
+ return !e || Object.keys(e).length === 0 ? /* @__PURE__ */ A(Z, { message: "No headers captured" }) : /* @__PURE__ */ A("div", {
3229
3229
  className: "rounded-lg border overflow-hidden",
3230
- children: /* @__PURE__ */ j("table", {
3230
+ children: /* @__PURE__ */ A("table", {
3231
3231
  className: "w-full text-[13px]",
3232
- children: /* @__PURE__ */ j("tbody", {
3232
+ children: /* @__PURE__ */ A("tbody", {
3233
3233
  className: "divide-y divide-border/50",
3234
- children: Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => /* @__PURE__ */ M("tr", {
3234
+ children: Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => /* @__PURE__ */ j("tr", {
3235
3235
  className: "hover:bg-muted/20 transition-colors duration-100",
3236
- children: [/* @__PURE__ */ j("td", {
3236
+ children: [/* @__PURE__ */ A("td", {
3237
3237
  className: "px-3 py-2 font-medium text-muted-foreground whitespace-nowrap align-top w-[180px]",
3238
3238
  children: e
3239
- }), /* @__PURE__ */ j("td", {
3239
+ }), /* @__PURE__ */ A("td", {
3240
3240
  className: "px-3 py-2 text-foreground break-all",
3241
3241
  children: Array.isArray(t) ? t.join(", ") : t
3242
3242
  })]
@@ -3248,12 +3248,12 @@ function Q({ headers: e }) {
3248
3248
  //#endregion
3249
3249
  //#region src/logs/detail/components/LogDetailJsonTree.tsx
3250
3250
  function To({ data: e, onCopyAll: t }) {
3251
- let n = O(null), r = () => {
3251
+ let n = D(null), r = () => {
3252
3252
  let n = JSON.stringify(e, null, 2);
3253
3253
  navigator.clipboard.writeText(n).then(() => {
3254
- U.success("Full JSON copied to clipboard"), t?.();
3255
- }, () => U.error("Failed to copy to clipboard"));
3256
- }, i = w((e) => {
3254
+ H.success("Full JSON copied to clipboard"), t?.();
3255
+ }, () => H.error("Failed to copy to clipboard"));
3256
+ }, i = C((e) => {
3257
3257
  let t = e.target, r = n.current?.querySelectorAll("[role=\"treeitem\"]");
3258
3258
  if (!r) return;
3259
3259
  let i = Array.from(r).indexOf(t);
@@ -3266,29 +3266,29 @@ function To({ data: e, onCopyAll: t }) {
3266
3266
  break;
3267
3267
  }
3268
3268
  }, []);
3269
- return /* @__PURE__ */ M("div", {
3269
+ return /* @__PURE__ */ j("div", {
3270
3270
  className: "space-y-2",
3271
- children: [/* @__PURE__ */ j("div", {
3271
+ children: [/* @__PURE__ */ A("div", {
3272
3272
  className: "flex justify-end",
3273
- children: /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
3273
+ children: /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
3274
3274
  asChild: !0,
3275
- children: /* @__PURE__ */ j(I, {
3275
+ children: /* @__PURE__ */ A(F, {
3276
3276
  variant: "ghost",
3277
3277
  size: "icon",
3278
3278
  className: "size-7",
3279
3279
  onClick: r,
3280
3280
  "aria-label": "Copy JSON",
3281
- children: /* @__PURE__ */ j(ut, { className: "size-3.5" })
3281
+ children: /* @__PURE__ */ A(dt, { className: "size-3.5" })
3282
3282
  })
3283
- }), /* @__PURE__ */ j(z, { children: "Copy full JSON" })] }) })
3284
- }), /* @__PURE__ */ j("div", {
3283
+ }), /* @__PURE__ */ A(R, { children: "Copy full JSON" })] }) })
3284
+ }), /* @__PURE__ */ A("div", {
3285
3285
  ref: n,
3286
3286
  role: "tree",
3287
3287
  tabIndex: 0,
3288
3288
  "aria-label": "Log attributes",
3289
3289
  className: "rounded-md border p-3 text-xs font-mono",
3290
3290
  onKeyDown: i,
3291
- children: /* @__PURE__ */ j(Eo, {
3291
+ children: /* @__PURE__ */ A(Eo, {
3292
3292
  value: e,
3293
3293
  depth: 0,
3294
3294
  isRoot: !0
@@ -3297,8 +3297,8 @@ function To({ data: e, onCopyAll: t }) {
3297
3297
  });
3298
3298
  }
3299
3299
  function Eo({ name: e, value: t, depth: n, isRoot: r, isLast: i }) {
3300
- let [a, o] = k(n < 2);
3301
- if (t === null) return /* @__PURE__ */ j(Do, {
3300
+ let [a, o] = O(n < 2);
3301
+ if (t === null) return /* @__PURE__ */ A(Do, {
3302
3302
  name: e,
3303
3303
  value: "null",
3304
3304
  className: "text-muted-foreground",
@@ -3307,52 +3307,52 @@ function Eo({ name: e, value: t, depth: n, isRoot: r, isLast: i }) {
3307
3307
  if (t === void 0) return null;
3308
3308
  if (typeof t == "object") {
3309
3309
  let s = Array.isArray(t), c = s ? t.map((e, t) => [String(t), e]) : Object.entries(t), l = s ? ["[", "]"] : ["{", "}"];
3310
- return c.length === 0 ? /* @__PURE__ */ M("div", {
3310
+ return c.length === 0 ? /* @__PURE__ */ j("div", {
3311
3311
  className: "flex items-center",
3312
3312
  role: "treeitem",
3313
3313
  tabIndex: 0,
3314
3314
  "aria-selected": !1,
3315
3315
  children: [
3316
- e && /* @__PURE__ */ j("span", {
3316
+ e && /* @__PURE__ */ A("span", {
3317
3317
  className: "text-primary",
3318
3318
  children: e
3319
3319
  }),
3320
- e && /* @__PURE__ */ j("span", {
3320
+ e && /* @__PURE__ */ A("span", {
3321
3321
  className: "text-muted-foreground",
3322
3322
  children: ": "
3323
3323
  }),
3324
- /* @__PURE__ */ M("span", {
3324
+ /* @__PURE__ */ j("span", {
3325
3325
  className: "text-muted-foreground",
3326
3326
  children: [l[0], l[1]]
3327
3327
  })
3328
3328
  ]
3329
- }) : /* @__PURE__ */ M("div", {
3329
+ }) : /* @__PURE__ */ j("div", {
3330
3330
  role: "treeitem",
3331
3331
  tabIndex: 0,
3332
3332
  "aria-selected": !1,
3333
3333
  "aria-expanded": a,
3334
3334
  children: [
3335
- /* @__PURE__ */ M("button", {
3335
+ /* @__PURE__ */ j("button", {
3336
3336
  onClick: () => o(!a),
3337
3337
  className: "flex items-center gap-0.5 hover:bg-muted/50 rounded -ml-4 pl-4 pr-1",
3338
3338
  children: [
3339
- /* @__PURE__ */ j(ct, { className: `size-3 shrink-0 text-muted-foreground transition-transform duration-150 ${a ? "rotate-90" : ""}` }),
3340
- e && /* @__PURE__ */ j("span", {
3339
+ /* @__PURE__ */ A(lt, { className: `size-3 shrink-0 text-muted-foreground transition-transform duration-150 ${a ? "rotate-90" : ""}` }),
3340
+ e && /* @__PURE__ */ A("span", {
3341
3341
  className: "text-primary",
3342
3342
  children: e
3343
3343
  }),
3344
- e && /* @__PURE__ */ j("span", {
3344
+ e && /* @__PURE__ */ A("span", {
3345
3345
  className: "text-muted-foreground",
3346
3346
  children: ": "
3347
3347
  }),
3348
- !a && /* @__PURE__ */ M("span", {
3348
+ !a && /* @__PURE__ */ j("span", {
3349
3349
  className: "text-muted-foreground",
3350
3350
  children: [
3351
3351
  l[0],
3352
3352
  "...",
3353
3353
  l[1],
3354
3354
  " ",
3355
- /* @__PURE__ */ M("span", {
3355
+ /* @__PURE__ */ j("span", {
3356
3356
  className: "text-[10px]",
3357
3357
  children: [
3358
3358
  "(",
@@ -3362,45 +3362,45 @@ function Eo({ name: e, value: t, depth: n, isRoot: r, isLast: i }) {
3362
3362
  })
3363
3363
  ]
3364
3364
  }),
3365
- a && /* @__PURE__ */ j("span", {
3365
+ a && /* @__PURE__ */ A("span", {
3366
3366
  className: "text-muted-foreground",
3367
3367
  children: l[0]
3368
3368
  })
3369
3369
  ]
3370
3370
  }),
3371
- a && /* @__PURE__ */ j("div", {
3371
+ a && /* @__PURE__ */ A("div", {
3372
3372
  className: "ml-4 border-l border-muted pl-2",
3373
3373
  role: "group",
3374
- children: c.map(([e, t], r) => /* @__PURE__ */ j(Eo, {
3374
+ children: c.map(([e, t], r) => /* @__PURE__ */ A(Eo, {
3375
3375
  name: s ? void 0 : e,
3376
3376
  value: t,
3377
3377
  depth: n + 1,
3378
3378
  isLast: r === c.length - 1
3379
3379
  }, e))
3380
3380
  }),
3381
- a && /* @__PURE__ */ M("span", {
3381
+ a && /* @__PURE__ */ j("span", {
3382
3382
  className: "text-muted-foreground",
3383
3383
  children: [l[1], !i && !r ? "," : ""]
3384
3384
  })
3385
3385
  ]
3386
3386
  });
3387
3387
  }
3388
- return typeof t == "string" ? /* @__PURE__ */ j(Do, {
3388
+ return typeof t == "string" ? /* @__PURE__ */ A(Do, {
3389
3389
  name: e,
3390
3390
  value: `"${t}"`,
3391
3391
  className: "text-green-600 dark:text-green-400",
3392
3392
  isLast: i
3393
- }) : typeof t == "number" ? /* @__PURE__ */ j(Do, {
3393
+ }) : typeof t == "number" ? /* @__PURE__ */ A(Do, {
3394
3394
  name: e,
3395
3395
  value: String(t),
3396
3396
  className: "text-blue-600 dark:text-blue-400",
3397
3397
  isLast: i
3398
- }) : typeof t == "boolean" ? /* @__PURE__ */ j(Do, {
3398
+ }) : typeof t == "boolean" ? /* @__PURE__ */ A(Do, {
3399
3399
  name: e,
3400
3400
  value: String(t),
3401
3401
  className: "text-amber-600 dark:text-amber-400",
3402
3402
  isLast: i
3403
- }) : /* @__PURE__ */ j(Do, {
3403
+ }) : /* @__PURE__ */ A(Do, {
3404
3404
  name: e,
3405
3405
  value: String(t),
3406
3406
  className: "text-foreground",
@@ -3408,25 +3408,25 @@ function Eo({ name: e, value: t, depth: n, isRoot: r, isLast: i }) {
3408
3408
  });
3409
3409
  }
3410
3410
  function Do({ name: e, value: t, className: n, isLast: r }) {
3411
- return /* @__PURE__ */ M("div", {
3411
+ return /* @__PURE__ */ j("div", {
3412
3412
  className: "flex items-center py-px",
3413
3413
  role: "treeitem",
3414
3414
  tabIndex: 0,
3415
3415
  "aria-selected": !1,
3416
3416
  children: [
3417
- e && /* @__PURE__ */ j("span", {
3417
+ e && /* @__PURE__ */ A("span", {
3418
3418
  className: "text-primary",
3419
3419
  children: e
3420
3420
  }),
3421
- e && /* @__PURE__ */ j("span", {
3421
+ e && /* @__PURE__ */ A("span", {
3422
3422
  className: "text-muted-foreground",
3423
3423
  children: ": "
3424
3424
  }),
3425
- /* @__PURE__ */ j("span", {
3425
+ /* @__PURE__ */ A("span", {
3426
3426
  className: `truncate max-w-[300px] ${n}`,
3427
3427
  children: t
3428
3428
  }),
3429
- !r && /* @__PURE__ */ j("span", {
3429
+ !r && /* @__PURE__ */ A("span", {
3430
3430
  className: "text-muted-foreground",
3431
3431
  children: ","
3432
3432
  })
@@ -3437,9 +3437,9 @@ function Do({ name: e, value: t, className: n, isLast: r }) {
3437
3437
  //#region src/logs/detail/components/LogDetailKeyValueGrid.tsx
3438
3438
  function $({ items: e, onFilter: t, wrap: n = !1 }) {
3439
3439
  let r = e.filter((e) => e.value !== void 0 && e.value !== null && e.value !== "");
3440
- return r.length === 0 ? null : /* @__PURE__ */ j("dl", {
3440
+ return r.length === 0 ? null : /* @__PURE__ */ A("dl", {
3441
3441
  className: "space-y-0 divide-y divide-border/50",
3442
- children: r.map((e) => /* @__PURE__ */ j(Oo, {
3442
+ children: r.map((e) => /* @__PURE__ */ A(Oo, {
3443
3443
  item: e,
3444
3444
  onFilter: t,
3445
3445
  wrap: n
@@ -3448,37 +3448,37 @@ function $({ items: e, onFilter: t, wrap: n = !1 }) {
3448
3448
  }
3449
3449
  function Oo({ item: e, onFilter: t, wrap: n }) {
3450
3450
  let r = String(e.value), i = n ? "break-words whitespace-pre-wrap" : "truncate";
3451
- return /* @__PURE__ */ M("div", {
3451
+ return /* @__PURE__ */ j("div", {
3452
3452
  className: "group flex items-baseline gap-4 py-2.5",
3453
- children: [/* @__PURE__ */ j("dt", {
3453
+ children: [/* @__PURE__ */ A("dt", {
3454
3454
  className: "w-28 shrink-0 text-xs text-muted-foreground",
3455
3455
  children: e.label
3456
- }), /* @__PURE__ */ M("dd", {
3456
+ }), /* @__PURE__ */ j("dd", {
3457
3457
  className: "flex min-w-0 flex-1 items-center gap-1.5",
3458
- children: [e.href ? /* @__PURE__ */ j("a", {
3458
+ children: [e.href ? /* @__PURE__ */ A("a", {
3459
3459
  href: e.href,
3460
3460
  className: `text-sm text-primary hover:underline ${i}`,
3461
3461
  children: r
3462
- }) : /* @__PURE__ */ j("span", {
3462
+ }) : /* @__PURE__ */ A("span", {
3463
3463
  className: `text-sm text-foreground ${i}`,
3464
3464
  children: r
3465
- }), /* @__PURE__ */ M("span", {
3465
+ }), /* @__PURE__ */ j("span", {
3466
3466
  className: "flex shrink-0 items-center gap-0.5 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity duration-150",
3467
- children: [e.copyable !== !1 && /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
3467
+ children: [e.copyable !== !1 && /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
3468
3468
  asChild: !0,
3469
- children: /* @__PURE__ */ j(I, {
3469
+ children: /* @__PURE__ */ A(F, {
3470
3470
  variant: "ghost",
3471
3471
  size: "icon",
3472
3472
  className: "size-6",
3473
3473
  onClick: () => {
3474
- navigator.clipboard.writeText(r).then(() => U.success("Copied to clipboard"), () => U.error("Failed to copy to clipboard"));
3474
+ navigator.clipboard.writeText(r).then(() => H.success("Copied to clipboard"), () => H.error("Failed to copy to clipboard"));
3475
3475
  },
3476
3476
  "aria-label": "Copy value",
3477
- children: /* @__PURE__ */ j(ut, { className: "size-3" })
3477
+ children: /* @__PURE__ */ A(dt, { className: "size-3" })
3478
3478
  })
3479
- }), /* @__PURE__ */ j(z, { children: "Copy" })] }) }), e.filterable && e.filterField && t && /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
3479
+ }), /* @__PURE__ */ A(R, { children: "Copy" })] }) }), e.filterable && e.filterField && t && /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
3480
3480
  asChild: !0,
3481
- children: /* @__PURE__ */ j(I, {
3481
+ children: /* @__PURE__ */ A(F, {
3482
3482
  variant: "ghost",
3483
3483
  size: "icon",
3484
3484
  className: "size-6",
@@ -3486,9 +3486,9 @@ function Oo({ item: e, onFilter: t, wrap: n }) {
3486
3486
  t && e.filterField && t(e.filterField, e.filterValue ?? r);
3487
3487
  },
3488
3488
  "aria-label": "Filter by this value",
3489
- children: /* @__PURE__ */ j(pt, { className: "size-3" })
3489
+ children: /* @__PURE__ */ A(mt, { className: "size-3" })
3490
3490
  })
3491
- }), /* @__PURE__ */ j(z, { children: "Filter" })] }) })]
3491
+ }), /* @__PURE__ */ A(R, { children: "Filter" })] }) })]
3492
3492
  })]
3493
3493
  })]
3494
3494
  });
@@ -3529,7 +3529,7 @@ function ko(e) {
3529
3529
  key: "overview",
3530
3530
  title: "Overview",
3531
3531
  defaultOpen: !0,
3532
- render: (t, r) => /* @__PURE__ */ j(Ao, {
3532
+ render: (t, r) => /* @__PURE__ */ A(Ao, {
3533
3533
  log: n,
3534
3534
  basePath: e?.basePath,
3535
3535
  extraFields: e?.extraFields,
@@ -3539,23 +3539,23 @@ function ko(e) {
3539
3539
  key: "request",
3540
3540
  title: "Request",
3541
3541
  defaultOpen: !1,
3542
- render: () => /* @__PURE__ */ j(jo, { log: n })
3542
+ render: () => /* @__PURE__ */ A(jo, { log: n })
3543
3543
  }), i.has("response") || a.push({
3544
3544
  key: "response",
3545
3545
  title: "Response",
3546
3546
  defaultOpen: !1,
3547
- render: () => /* @__PURE__ */ j(Mo, { log: n })
3547
+ render: () => /* @__PURE__ */ A(Mo, { log: n })
3548
3548
  }), !i.has("errors") && (n.errorKey || n.warnings && n.warnings.length > 0) && a.push({
3549
3549
  key: "errors",
3550
3550
  title: "Issues",
3551
3551
  defaultOpen: !0,
3552
3552
  badge: () => (n.warnings?.length ?? 0) + +!!n.errorKey,
3553
- render: () => /* @__PURE__ */ j(No, { log: n })
3553
+ render: () => /* @__PURE__ */ A(No, { log: n })
3554
3554
  }), i.has("raw") || a.push({
3555
3555
  key: "raw",
3556
3556
  title: "Raw JSON",
3557
3557
  defaultOpen: !1,
3558
- render: () => /* @__PURE__ */ j(To, { data: n })
3558
+ render: () => /* @__PURE__ */ A(To, { data: n })
3559
3559
  }), {
3560
3560
  header: {
3561
3561
  method: () => n.method,
@@ -3571,7 +3571,7 @@ function ko(e) {
3571
3571
  }
3572
3572
  function Ao({ log: e, basePath: t, extraFields: n, onFilter: r }) {
3573
3573
  let i = t?.replace(/\/$/, "") ?? "";
3574
- return /* @__PURE__ */ j($, {
3574
+ return /* @__PURE__ */ A($, {
3575
3575
  items: [
3576
3576
  {
3577
3577
  label: "API",
@@ -3644,91 +3644,91 @@ function Ao({ log: e, basePath: t, extraFields: n, onFilter: r }) {
3644
3644
  }
3645
3645
  function jo({ log: e }) {
3646
3646
  let t = e.entrypointRequest, n = e.endpointRequest;
3647
- return !t && !n ? /* @__PURE__ */ j(Z, { message: "No request details captured" }) : /* @__PURE__ */ M("div", {
3647
+ return !t && !n ? /* @__PURE__ */ A(Z, { message: "No request details captured" }) : /* @__PURE__ */ j("div", {
3648
3648
  className: "space-y-4",
3649
- children: [t && /* @__PURE__ */ M("div", {
3649
+ children: [t && /* @__PURE__ */ j("div", {
3650
3650
  className: "space-y-2",
3651
3651
  children: [
3652
- /* @__PURE__ */ j("h4", {
3652
+ /* @__PURE__ */ A("h4", {
3653
3653
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
3654
3654
  children: "Consumer (Entrypoint)"
3655
3655
  }),
3656
- /* @__PURE__ */ j($, { items: [...e.entrypointRequest.method ? [{
3656
+ /* @__PURE__ */ A($, { items: [...e.entrypointRequest.method ? [{
3657
3657
  label: "Method",
3658
3658
  value: e.entrypointRequest.method
3659
3659
  }] : [], ...e.entrypointRequest.uri ? [{
3660
3660
  label: "URI",
3661
3661
  value: e.entrypointRequest.uri
3662
3662
  }] : []] }),
3663
- /* @__PURE__ */ j(Q, { headers: e.entrypointRequest.headers }),
3664
- /* @__PURE__ */ j(X, { code: e.entrypointRequest.body })
3663
+ /* @__PURE__ */ A(Q, { headers: e.entrypointRequest.headers }),
3664
+ /* @__PURE__ */ A(X, { code: e.entrypointRequest.body })
3665
3665
  ]
3666
- }), n && /* @__PURE__ */ M("div", {
3666
+ }), n && /* @__PURE__ */ j("div", {
3667
3667
  className: "space-y-2",
3668
3668
  children: [
3669
- /* @__PURE__ */ j("h4", {
3669
+ /* @__PURE__ */ A("h4", {
3670
3670
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
3671
3671
  children: "Gateway (Endpoint)"
3672
3672
  }),
3673
- /* @__PURE__ */ j($, { items: [...e.endpointRequest.method ? [{
3673
+ /* @__PURE__ */ A($, { items: [...e.endpointRequest.method ? [{
3674
3674
  label: "Method",
3675
3675
  value: e.endpointRequest.method
3676
3676
  }] : [], ...e.endpointRequest.uri ? [{
3677
3677
  label: "URI",
3678
3678
  value: e.endpointRequest.uri
3679
3679
  }] : []] }),
3680
- /* @__PURE__ */ j(Q, { headers: e.endpointRequest.headers }),
3681
- /* @__PURE__ */ j(X, { code: e.endpointRequest.body })
3680
+ /* @__PURE__ */ A(Q, { headers: e.endpointRequest.headers }),
3681
+ /* @__PURE__ */ A(X, { code: e.endpointRequest.body })
3682
3682
  ]
3683
3683
  })]
3684
3684
  });
3685
3685
  }
3686
3686
  function Mo({ log: e }) {
3687
3687
  let t = e.endpointResponse, n = e.entrypointResponse;
3688
- return !t && !n ? /* @__PURE__ */ j(Z, { message: "No response details captured" }) : /* @__PURE__ */ M("div", {
3688
+ return !t && !n ? /* @__PURE__ */ A(Z, { message: "No response details captured" }) : /* @__PURE__ */ j("div", {
3689
3689
  className: "space-y-4",
3690
- children: [t && /* @__PURE__ */ M("div", {
3690
+ children: [t && /* @__PURE__ */ j("div", {
3691
3691
  className: "space-y-2",
3692
3692
  children: [
3693
- /* @__PURE__ */ j("h4", {
3693
+ /* @__PURE__ */ A("h4", {
3694
3694
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
3695
3695
  children: "Gateway (Endpoint)"
3696
3696
  }),
3697
- e.endpointResponse.status !== void 0 && /* @__PURE__ */ j($, { items: [{
3697
+ e.endpointResponse.status !== void 0 && /* @__PURE__ */ A($, { items: [{
3698
3698
  label: "Status",
3699
3699
  value: e.endpointResponse.status
3700
3700
  }] }),
3701
- /* @__PURE__ */ j(Q, { headers: e.endpointResponse.headers }),
3702
- /* @__PURE__ */ j(X, { code: e.endpointResponse.body })
3701
+ /* @__PURE__ */ A(Q, { headers: e.endpointResponse.headers }),
3702
+ /* @__PURE__ */ A(X, { code: e.endpointResponse.body })
3703
3703
  ]
3704
- }), n && /* @__PURE__ */ M("div", {
3704
+ }), n && /* @__PURE__ */ j("div", {
3705
3705
  className: "space-y-2",
3706
3706
  children: [
3707
- /* @__PURE__ */ j("h4", {
3707
+ /* @__PURE__ */ A("h4", {
3708
3708
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
3709
3709
  children: "Consumer (Entrypoint)"
3710
3710
  }),
3711
- e.entrypointResponse.status !== void 0 && /* @__PURE__ */ j($, { items: [{
3711
+ e.entrypointResponse.status !== void 0 && /* @__PURE__ */ A($, { items: [{
3712
3712
  label: "Status",
3713
3713
  value: e.entrypointResponse.status
3714
3714
  }] }),
3715
- /* @__PURE__ */ j(Q, { headers: e.entrypointResponse.headers }),
3716
- /* @__PURE__ */ j(X, { code: e.entrypointResponse.body })
3715
+ /* @__PURE__ */ A(Q, { headers: e.entrypointResponse.headers }),
3716
+ /* @__PURE__ */ A(X, { code: e.entrypointResponse.body })
3717
3717
  ]
3718
3718
  })]
3719
3719
  });
3720
3720
  }
3721
3721
  function No({ log: e }) {
3722
- return /* @__PURE__ */ M("div", {
3722
+ return /* @__PURE__ */ j("div", {
3723
3723
  className: "space-y-3",
3724
- children: [e.errorKey && /* @__PURE__ */ M("div", {
3724
+ children: [e.errorKey && /* @__PURE__ */ j("div", {
3725
3725
  className: "rounded-md border border-destructive/20 bg-destructive/5 p-3",
3726
3726
  children: [
3727
- /* @__PURE__ */ M("p", {
3727
+ /* @__PURE__ */ j("p", {
3728
3728
  className: "text-xs font-medium text-destructive",
3729
3729
  children: ["Error: ", e.errorKey]
3730
3730
  }),
3731
- e.errorComponentType && /* @__PURE__ */ M("p", {
3731
+ e.errorComponentType && /* @__PURE__ */ j("p", {
3732
3732
  className: "text-xs text-muted-foreground mt-1",
3733
3733
  children: [
3734
3734
  "Component: ",
@@ -3737,19 +3737,19 @@ function No({ log: e }) {
3737
3737
  e.errorComponentName
3738
3738
  ]
3739
3739
  }),
3740
- e.errorMessage && /* @__PURE__ */ j("p", {
3740
+ e.errorMessage && /* @__PURE__ */ A("p", {
3741
3741
  className: "text-xs text-muted-foreground mt-1",
3742
3742
  children: e.errorMessage
3743
3743
  })
3744
3744
  ]
3745
- }), e.warnings?.map((e, t) => /* @__PURE__ */ M("div", {
3745
+ }), e.warnings?.map((e, t) => /* @__PURE__ */ j("div", {
3746
3746
  className: "rounded-md border border-amber-500/20 bg-amber-500/5 p-3",
3747
3747
  children: [
3748
- /* @__PURE__ */ M("p", {
3748
+ /* @__PURE__ */ j("p", {
3749
3749
  className: "text-xs font-medium text-amber-600 dark:text-amber-400",
3750
3750
  children: ["Warning: ", e.key]
3751
3751
  }),
3752
- e.componentType && /* @__PURE__ */ M("p", {
3752
+ e.componentType && /* @__PURE__ */ j("p", {
3753
3753
  className: "text-xs text-muted-foreground mt-1",
3754
3754
  children: [
3755
3755
  "Component: ",
@@ -3758,7 +3758,7 @@ function No({ log: e }) {
3758
3758
  e.componentName
3759
3759
  ]
3760
3760
  }),
3761
- e.message && /* @__PURE__ */ j("p", {
3761
+ e.message && /* @__PURE__ */ A("p", {
3762
3762
  className: "text-xs text-muted-foreground mt-1",
3763
3763
  children: e.message
3764
3764
  })
@@ -3778,7 +3778,7 @@ function Fo(e) {
3778
3778
  key: "overview",
3779
3779
  title: "Overview",
3780
3780
  defaultOpen: !0,
3781
- render: (e, t) => /* @__PURE__ */ j(Io, {
3781
+ render: (e, t) => /* @__PURE__ */ A(Io, {
3782
3782
  log: n,
3783
3783
  onFilter: t
3784
3784
  })
@@ -3786,14 +3786,14 @@ function Fo(e) {
3786
3786
  key: "connection",
3787
3787
  title: "Connection Logs",
3788
3788
  defaultOpen: !1,
3789
- render: () => /* @__PURE__ */ j(Lo, { log: n })
3789
+ render: () => /* @__PURE__ */ A(Lo, { log: n })
3790
3790
  }];
3791
3791
  return n.messages && n.messages.length > 0 && r.push({
3792
3792
  key: "messages",
3793
3793
  title: "Messages",
3794
3794
  defaultOpen: !0,
3795
3795
  badge: () => n.messages?.length,
3796
- render: () => /* @__PURE__ */ j(Ro, {
3796
+ render: () => /* @__PURE__ */ A(Ro, {
3797
3797
  messages: n.messages,
3798
3798
  pageSize: t
3799
3799
  })
@@ -3801,7 +3801,7 @@ function Fo(e) {
3801
3801
  key: "raw",
3802
3802
  title: "Raw JSON",
3803
3803
  defaultOpen: !1,
3804
- render: () => /* @__PURE__ */ j(To, { data: n })
3804
+ render: () => /* @__PURE__ */ A(To, { data: n })
3805
3805
  }), {
3806
3806
  header: {
3807
3807
  method: () => void 0,
@@ -3816,7 +3816,7 @@ function Fo(e) {
3816
3816
  };
3817
3817
  }
3818
3818
  function Io({ log: e, onFilter: t }) {
3819
- return /* @__PURE__ */ j($, {
3819
+ return /* @__PURE__ */ A($, {
3820
3820
  items: [
3821
3821
  {
3822
3822
  label: "API",
@@ -3861,83 +3861,83 @@ function Io({ log: e, onFilter: t }) {
3861
3861
  });
3862
3862
  }
3863
3863
  function Lo({ log: e }) {
3864
- return e.entrypointRequest || e.endpointRequest || e.entrypointResponse || e.endpointResponse ? /* @__PURE__ */ M("div", {
3864
+ return e.entrypointRequest || e.endpointRequest || e.entrypointResponse || e.endpointResponse ? /* @__PURE__ */ j("div", {
3865
3865
  className: "space-y-4",
3866
3866
  children: [
3867
- e.entrypointRequest && /* @__PURE__ */ M("div", {
3867
+ e.entrypointRequest && /* @__PURE__ */ j("div", {
3868
3868
  className: "space-y-2",
3869
3869
  children: [
3870
- /* @__PURE__ */ j("h4", {
3870
+ /* @__PURE__ */ A("h4", {
3871
3871
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
3872
3872
  children: "Entrypoint Request"
3873
3873
  }),
3874
- /* @__PURE__ */ j($, { items: [...e.entrypointRequest.method ? [{
3874
+ /* @__PURE__ */ A($, { items: [...e.entrypointRequest.method ? [{
3875
3875
  label: "Method",
3876
3876
  value: e.entrypointRequest.method
3877
3877
  }] : [], ...e.entrypointRequest.uri ? [{
3878
3878
  label: "URI",
3879
3879
  value: e.entrypointRequest.uri
3880
3880
  }] : []] }),
3881
- /* @__PURE__ */ j(Q, { headers: e.entrypointRequest.headers }),
3882
- /* @__PURE__ */ j(X, { code: e.entrypointRequest.body })
3881
+ /* @__PURE__ */ A(Q, { headers: e.entrypointRequest.headers }),
3882
+ /* @__PURE__ */ A(X, { code: e.entrypointRequest.body })
3883
3883
  ]
3884
3884
  }),
3885
- e.endpointRequest && /* @__PURE__ */ M("div", {
3885
+ e.endpointRequest && /* @__PURE__ */ j("div", {
3886
3886
  className: "space-y-2",
3887
3887
  children: [
3888
- /* @__PURE__ */ j("h4", {
3888
+ /* @__PURE__ */ A("h4", {
3889
3889
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
3890
3890
  children: "Endpoint Request"
3891
3891
  }),
3892
- /* @__PURE__ */ j($, { items: [...e.endpointRequest.method ? [{
3892
+ /* @__PURE__ */ A($, { items: [...e.endpointRequest.method ? [{
3893
3893
  label: "Method",
3894
3894
  value: e.endpointRequest.method
3895
3895
  }] : [], ...e.endpointRequest.uri ? [{
3896
3896
  label: "URI",
3897
3897
  value: e.endpointRequest.uri
3898
3898
  }] : []] }),
3899
- /* @__PURE__ */ j(Q, { headers: e.endpointRequest.headers }),
3900
- /* @__PURE__ */ j(X, { code: e.endpointRequest.body })
3899
+ /* @__PURE__ */ A(Q, { headers: e.endpointRequest.headers }),
3900
+ /* @__PURE__ */ A(X, { code: e.endpointRequest.body })
3901
3901
  ]
3902
3902
  }),
3903
- e.endpointResponse && /* @__PURE__ */ M("div", {
3903
+ e.endpointResponse && /* @__PURE__ */ j("div", {
3904
3904
  className: "space-y-2",
3905
3905
  children: [
3906
- /* @__PURE__ */ j("h4", {
3906
+ /* @__PURE__ */ A("h4", {
3907
3907
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
3908
3908
  children: "Endpoint Response"
3909
3909
  }),
3910
- /* @__PURE__ */ j($, { items: [...e.endpointResponse.status === void 0 ? [] : [{
3910
+ /* @__PURE__ */ A($, { items: [...e.endpointResponse.status === void 0 ? [] : [{
3911
3911
  label: "Status",
3912
3912
  value: e.endpointResponse.status
3913
3913
  }]] }),
3914
- /* @__PURE__ */ j(Q, { headers: e.endpointResponse.headers }),
3915
- /* @__PURE__ */ j(X, { code: e.endpointResponse.body })
3914
+ /* @__PURE__ */ A(Q, { headers: e.endpointResponse.headers }),
3915
+ /* @__PURE__ */ A(X, { code: e.endpointResponse.body })
3916
3916
  ]
3917
3917
  }),
3918
- e.entrypointResponse && /* @__PURE__ */ M("div", {
3918
+ e.entrypointResponse && /* @__PURE__ */ j("div", {
3919
3919
  className: "space-y-2",
3920
3920
  children: [
3921
- /* @__PURE__ */ j("h4", {
3921
+ /* @__PURE__ */ A("h4", {
3922
3922
  className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
3923
3923
  children: "Entrypoint Response"
3924
3924
  }),
3925
- /* @__PURE__ */ j($, { items: [...e.entrypointResponse.status === void 0 ? [] : [{
3925
+ /* @__PURE__ */ A($, { items: [...e.entrypointResponse.status === void 0 ? [] : [{
3926
3926
  label: "Status",
3927
3927
  value: e.entrypointResponse.status
3928
3928
  }]] }),
3929
- /* @__PURE__ */ j(Q, { headers: e.entrypointResponse.headers }),
3930
- /* @__PURE__ */ j(X, { code: e.entrypointResponse.body })
3929
+ /* @__PURE__ */ A(Q, { headers: e.entrypointResponse.headers }),
3930
+ /* @__PURE__ */ A(X, { code: e.entrypointResponse.body })
3931
3931
  ]
3932
3932
  })
3933
3933
  ]
3934
- }) : /* @__PURE__ */ j(Z, { message: "No connection log details captured" });
3934
+ }) : /* @__PURE__ */ A(Z, { message: "No connection log details captured" });
3935
3935
  }
3936
3936
  function Ro({ messages: e, pageSize: t }) {
3937
- let [n, r] = k(t), i = e.slice(0, n), a = n < e.length;
3938
- return /* @__PURE__ */ M("div", {
3937
+ let [n, r] = O(t), i = e.slice(0, n), a = n < e.length;
3938
+ return /* @__PURE__ */ j("div", {
3939
3939
  className: "space-y-3",
3940
- children: [i.map((e, t) => /* @__PURE__ */ j(zo, { message: e }, e.id ?? t)), a && /* @__PURE__ */ M("button", {
3940
+ children: [i.map((e, t) => /* @__PURE__ */ A(zo, { message: e }, e.id ?? t)), a && /* @__PURE__ */ j("button", {
3941
3941
  onClick: () => r((e) => e + t),
3942
3942
  className: "w-full rounded-md border py-2 text-xs text-muted-foreground hover:bg-muted/50 transition-colors",
3943
3943
  children: [
@@ -3949,44 +3949,44 @@ function Ro({ messages: e, pageSize: t }) {
3949
3949
  });
3950
3950
  }
3951
3951
  function zo({ message: e }) {
3952
- return /* @__PURE__ */ M("div", {
3952
+ return /* @__PURE__ */ j("div", {
3953
3953
  className: "rounded-md border p-3 space-y-2",
3954
3954
  children: [
3955
- /* @__PURE__ */ M("div", {
3955
+ /* @__PURE__ */ j("div", {
3956
3956
  className: "flex items-center gap-2 flex-wrap",
3957
3957
  children: [
3958
- /* @__PURE__ */ j(F, {
3958
+ /* @__PURE__ */ A(P, {
3959
3959
  variant: "secondary",
3960
3960
  className: "text-[10px]",
3961
3961
  children: new Date(e.timestamp).toLocaleTimeString()
3962
3962
  }),
3963
- /* @__PURE__ */ j(F, {
3963
+ /* @__PURE__ */ A(P, {
3964
3964
  variant: e.operation === "PUBLISH" ? "default" : "outline",
3965
3965
  className: "text-[10px]",
3966
3966
  children: e.operation
3967
3967
  }),
3968
- e.correlationId && /* @__PURE__ */ j("span", {
3968
+ e.correlationId && /* @__PURE__ */ A("span", {
3969
3969
  className: "font-mono text-[10px] text-muted-foreground truncate max-w-[150px]",
3970
3970
  children: e.correlationId
3971
3971
  })
3972
3972
  ]
3973
3973
  }),
3974
- e.entrypoint && /* @__PURE__ */ M("div", {
3974
+ e.entrypoint && /* @__PURE__ */ j("div", {
3975
3975
  className: "space-y-1",
3976
- children: [/* @__PURE__ */ M("p", {
3976
+ children: [/* @__PURE__ */ j("p", {
3977
3977
  className: "text-[10px] uppercase tracking-wider text-muted-foreground",
3978
3978
  children: ["Entrypoint", e.entrypoint.connectorId ? ` (${e.entrypoint.connectorId})` : ""]
3979
- }), e.entrypoint.payload && /* @__PURE__ */ j(X, {
3979
+ }), e.entrypoint.payload && /* @__PURE__ */ A(X, {
3980
3980
  code: e.entrypoint.payload,
3981
3981
  maxHeight: 100
3982
3982
  })]
3983
3983
  }),
3984
- e.endpoint && /* @__PURE__ */ M("div", {
3984
+ e.endpoint && /* @__PURE__ */ j("div", {
3985
3985
  className: "space-y-1",
3986
- children: [/* @__PURE__ */ M("p", {
3986
+ children: [/* @__PURE__ */ j("p", {
3987
3987
  className: "text-[10px] uppercase tracking-wider text-muted-foreground",
3988
3988
  children: ["Endpoint", e.endpoint.connectorId ? ` (${e.endpoint.connectorId})` : ""]
3989
- }), e.endpoint.payload && /* @__PURE__ */ j(X, {
3989
+ }), e.endpoint.payload && /* @__PURE__ */ A(X, {
3990
3990
  code: e.endpoint.payload,
3991
3991
  maxHeight: 100
3992
3992
  })]
@@ -4021,7 +4021,7 @@ function Bo(e) {
4021
4021
  key: "overview",
4022
4022
  title: "Overview",
4023
4023
  defaultOpen: !0,
4024
- render: () => /* @__PURE__ */ j(Vo, {
4024
+ render: () => /* @__PURE__ */ A(Vo, {
4025
4025
  log: n,
4026
4026
  basePath: e?.basePath
4027
4027
  })
@@ -4031,22 +4031,22 @@ function Bo(e) {
4031
4031
  title: "Delivery Attempts",
4032
4032
  defaultOpen: !0,
4033
4033
  badge: () => n.retryTimeline?.length,
4034
- render: () => /* @__PURE__ */ j(Ho, { attempts: n.retryTimeline })
4034
+ render: () => /* @__PURE__ */ A(Ho, { attempts: n.retryTimeline })
4035
4035
  }), i.push({
4036
4036
  key: "request",
4037
4037
  title: "Request Sent by Gateway",
4038
4038
  defaultOpen: !1,
4039
- render: () => /* @__PURE__ */ j(Uo, { log: n })
4039
+ render: () => /* @__PURE__ */ A(Uo, { log: n })
4040
4040
  }), i.push({
4041
4041
  key: "response",
4042
4042
  title: "Response from Callback",
4043
4043
  defaultOpen: !1,
4044
- render: () => /* @__PURE__ */ j(Wo, { log: n })
4044
+ render: () => /* @__PURE__ */ A(Wo, { log: n })
4045
4045
  }), i.push({
4046
4046
  key: "raw",
4047
4047
  title: "Raw JSON",
4048
4048
  defaultOpen: !1,
4049
- render: () => /* @__PURE__ */ j(To, { data: n })
4049
+ render: () => /* @__PURE__ */ A(To, { data: n })
4050
4050
  }), {
4051
4051
  header: {
4052
4052
  method: () => n.method,
@@ -4062,7 +4062,7 @@ function Bo(e) {
4062
4062
  }
4063
4063
  function Vo({ log: e, basePath: t }) {
4064
4064
  let n = t?.replace(/\/$/, "") ?? "";
4065
- return /* @__PURE__ */ j($, { items: [
4065
+ return /* @__PURE__ */ A($, { items: [
4066
4066
  {
4067
4067
  label: "API",
4068
4068
  value: e.apiName,
@@ -4098,48 +4098,48 @@ function Vo({ log: e, basePath: t }) {
4098
4098
  ] });
4099
4099
  }
4100
4100
  function Ho({ attempts: e }) {
4101
- return /* @__PURE__ */ j("div", {
4101
+ return /* @__PURE__ */ A("div", {
4102
4102
  className: "rounded-md border",
4103
- children: /* @__PURE__ */ M("table", {
4103
+ children: /* @__PURE__ */ j("table", {
4104
4104
  className: "w-full text-xs",
4105
- children: [/* @__PURE__ */ j("thead", { children: /* @__PURE__ */ M("tr", {
4105
+ children: [/* @__PURE__ */ A("thead", { children: /* @__PURE__ */ j("tr", {
4106
4106
  className: "border-b bg-muted/50",
4107
4107
  children: [
4108
- /* @__PURE__ */ j("th", {
4108
+ /* @__PURE__ */ A("th", {
4109
4109
  className: "px-3 py-2 text-left font-medium text-muted-foreground",
4110
4110
  children: "Attempt"
4111
4111
  }),
4112
- /* @__PURE__ */ j("th", {
4112
+ /* @__PURE__ */ A("th", {
4113
4113
  className: "px-3 py-2 text-left font-medium text-muted-foreground",
4114
4114
  children: "Timestamp"
4115
4115
  }),
4116
- /* @__PURE__ */ j("th", {
4116
+ /* @__PURE__ */ A("th", {
4117
4117
  className: "px-3 py-2 text-left font-medium text-muted-foreground",
4118
4118
  children: "Duration"
4119
4119
  }),
4120
- /* @__PURE__ */ j("th", {
4120
+ /* @__PURE__ */ A("th", {
4121
4121
  className: "px-3 py-2 text-left font-medium text-muted-foreground",
4122
4122
  children: "Status"
4123
4123
  })
4124
4124
  ]
4125
- }) }), /* @__PURE__ */ j("tbody", { children: e.map((e) => /* @__PURE__ */ M("tr", {
4125
+ }) }), /* @__PURE__ */ A("tbody", { children: e.map((e) => /* @__PURE__ */ j("tr", {
4126
4126
  className: "border-b last:border-b-0",
4127
4127
  children: [
4128
- /* @__PURE__ */ j("td", {
4128
+ /* @__PURE__ */ A("td", {
4129
4129
  className: "px-3 py-2 font-mono",
4130
4130
  children: e.attempt
4131
4131
  }),
4132
- /* @__PURE__ */ j("td", {
4132
+ /* @__PURE__ */ A("td", {
4133
4133
  className: "px-3 py-2 font-mono text-muted-foreground",
4134
4134
  children: new Date(e.timestamp).toLocaleTimeString()
4135
4135
  }),
4136
- /* @__PURE__ */ M("td", {
4136
+ /* @__PURE__ */ j("td", {
4137
4137
  className: "px-3 py-2 font-mono",
4138
4138
  children: [e.duration, "ms"]
4139
4139
  }),
4140
- /* @__PURE__ */ j("td", {
4140
+ /* @__PURE__ */ A("td", {
4141
4141
  className: "px-3 py-2",
4142
- children: /* @__PURE__ */ j(F, {
4142
+ children: /* @__PURE__ */ A(P, {
4143
4143
  variant: e.status >= 200 && e.status < 300 ? "default" : "destructive",
4144
4144
  children: e.status
4145
4145
  })
@@ -4150,15 +4150,15 @@ function Ho({ attempts: e }) {
4150
4150
  });
4151
4151
  }
4152
4152
  function Uo({ log: e }) {
4153
- return !e.requestHeaders && !e.requestBody ? /* @__PURE__ */ j(Z, { message: "No request details captured" }) : /* @__PURE__ */ M("div", {
4153
+ return !e.requestHeaders && !e.requestBody ? /* @__PURE__ */ A(Z, { message: "No request details captured" }) : /* @__PURE__ */ j("div", {
4154
4154
  className: "space-y-2",
4155
- children: [/* @__PURE__ */ j(Q, { headers: e.requestHeaders }), /* @__PURE__ */ j(X, { code: e.requestBody })]
4155
+ children: [/* @__PURE__ */ A(Q, { headers: e.requestHeaders }), /* @__PURE__ */ A(X, { code: e.requestBody })]
4156
4156
  });
4157
4157
  }
4158
4158
  function Wo({ log: e }) {
4159
- return !e.responseHeaders && !e.responseBody ? /* @__PURE__ */ j(Z, { message: "No response details captured" }) : /* @__PURE__ */ M("div", {
4159
+ return !e.responseHeaders && !e.responseBody ? /* @__PURE__ */ A(Z, { message: "No response details captured" }) : /* @__PURE__ */ j("div", {
4160
4160
  className: "space-y-2",
4161
- children: [/* @__PURE__ */ j(Q, { headers: e.responseHeaders }), /* @__PURE__ */ j(X, { code: e.responseBody })]
4161
+ children: [/* @__PURE__ */ A(Q, { headers: e.responseHeaders }), /* @__PURE__ */ A(X, { code: e.responseBody })]
4162
4162
  });
4163
4163
  }
4164
4164
  //#endregion
@@ -4222,14 +4222,14 @@ function Xo(e) {
4222
4222
  //#region src/logs/detail/components/LogDetailContextChart.tsx
4223
4223
  var Zo = 900 * 1e3, Qo = "HTTP_GATEWAY_RESPONSE_TIME", $o = "AVG", es = "API";
4224
4224
  function ts({ apiId: e, timestamp: t, metric: n = Qo, measure: r = $o, filterField: i = es, analyticsFilterMapping: a }) {
4225
- let o = c(), s = D(() => {
4225
+ let o = c(), s = E(() => {
4226
4226
  let e = new Date(t).getTime();
4227
4227
  return {
4228
4228
  type: "absolute",
4229
4229
  from: e - Zo,
4230
4230
  to: e + Zo
4231
4231
  };
4232
- }, [t]), l = D(() => Wi(s, 30), [s]), u = D(() => $a([{
4232
+ }, [t]), l = E(() => Wi(s, 30), [s]), u = E(() => $a([{
4233
4233
  field: i,
4234
4234
  operator: "eq",
4235
4235
  value: [e],
@@ -4238,10 +4238,10 @@ function ts({ apiId: e, timestamp: t, metric: n = Qo, measure: r = $o, filterFie
4238
4238
  i,
4239
4239
  e,
4240
4240
  a
4241
- ]), d = D(() => [{
4241
+ ]), d = E(() => [{
4242
4242
  name: n,
4243
4243
  measures: [r]
4244
- }], [n, r]), { data: f, isLoading: p } = P({
4244
+ }], [n, r]), { data: f, isLoading: p } = N({
4245
4245
  queryKey: K.timeSeries(d, s, l, u),
4246
4246
  queryFn: ({ signal: e }) => o.fetchTimeSeries({
4247
4247
  metrics: d,
@@ -4252,14 +4252,14 @@ function ts({ apiId: e, timestamp: t, metric: n = Qo, measure: r = $o, filterFie
4252
4252
  }),
4253
4253
  staleTime: G,
4254
4254
  enabled: !!o
4255
- }), m = f?.[0]?.key ?? n, h = D(() => ({ [m]: {
4255
+ }), m = f?.[0]?.key ?? n, h = E(() => ({ [m]: {
4256
4256
  label: "Response Time",
4257
4257
  color: "var(--chart-1)"
4258
- } }), [m]), g = D(() => {
4258
+ } }), [m]), g = E(() => {
4259
4259
  if (!f) return [];
4260
4260
  let e = /* @__PURE__ */ new Map();
4261
4261
  return e.set(m, f), Li(e);
4262
- }, [f, m]), _ = D(() => {
4262
+ }, [f, m]), _ = E(() => {
4263
4263
  let e = new Date(t).getTime(), n = f?.[0]?.points;
4264
4264
  if (g.length === 0 || !n?.length) return;
4265
4265
  let r = n[0].timestamp, i = Math.abs(r - e);
@@ -4276,26 +4276,26 @@ function ts({ apiId: e, timestamp: t, metric: n = Qo, measure: r = $o, filterFie
4276
4276
  ]);
4277
4277
  if (!o) return null;
4278
4278
  let v = p ? "loading" : g.length === 0 ? "empty" : "ready";
4279
- return /* @__PURE__ */ M("div", {
4279
+ return /* @__PURE__ */ j("div", {
4280
4280
  className: "px-5 py-4 border-b",
4281
- children: [/* @__PURE__ */ j("p", {
4281
+ children: [/* @__PURE__ */ A("p", {
4282
4282
  className: "mb-2 text-[11px] font-medium uppercase tracking-widest text-muted-foreground",
4283
4283
  children: "Response time — ±15 min window"
4284
- }), /* @__PURE__ */ j(At, {
4284
+ }), /* @__PURE__ */ A(jt, {
4285
4285
  config: h,
4286
4286
  className: "h-[120px] w-full",
4287
- children: /* @__PURE__ */ M(kt, {
4287
+ children: /* @__PURE__ */ j(At, {
4288
4288
  data: g,
4289
4289
  state: v,
4290
4290
  animated: !0,
4291
4291
  children: [
4292
- /* @__PURE__ */ j(It, {}),
4293
- /* @__PURE__ */ j(Et, {
4292
+ /* @__PURE__ */ A(Lt, {}),
4293
+ /* @__PURE__ */ A(Dt, {
4294
4294
  dataKey: m,
4295
4295
  curveType: "monotone",
4296
4296
  gradient: !0
4297
4297
  }),
4298
- _ && v === "ready" && /* @__PURE__ */ j(Bt, {
4298
+ _ && v === "ready" && /* @__PURE__ */ A(Vt, {
4299
4299
  x: _,
4300
4300
  stroke: "var(--color-primary)",
4301
4301
  strokeDasharray: "4 2",
@@ -4303,9 +4303,9 @@ function ts({ apiId: e, timestamp: t, metric: n = Qo, measure: r = $o, filterFie
4303
4303
  label: "Current",
4304
4304
  pulse: !0
4305
4305
  }),
4306
- /* @__PURE__ */ j(Ht, {}),
4307
- /* @__PURE__ */ j(Ut, {}),
4308
- /* @__PURE__ */ j(Nt, { content: /* @__PURE__ */ j(Pt, {}) })
4306
+ /* @__PURE__ */ A(Ut, {}),
4307
+ /* @__PURE__ */ A(Wt, {}),
4308
+ /* @__PURE__ */ A(Pt, { content: /* @__PURE__ */ A(Ft, {}) })
4309
4309
  ]
4310
4310
  })
4311
4311
  })]
@@ -4318,18 +4318,18 @@ var ns = S({
4318
4318
  setExpanded: () => {}
4319
4319
  });
4320
4320
  function rs() {
4321
- return T(ns);
4321
+ return w(ns);
4322
4322
  }
4323
4323
  var is = "[role=\"tree\"], [role=\"treeitem\"], input, textarea, select, [contenteditable]";
4324
4324
  function as(e) {
4325
4325
  return e === document.body ? !0 : e.closest(is) ? !1 : !!e.closest("[data-log-detail-shell]");
4326
4326
  }
4327
4327
  function os({ open: e, onClose: t, onNavigatePrev: n, onNavigateNext: r, children: i }) {
4328
- let [a, o] = k(!1), s = w(() => {
4328
+ let [a, o] = O(!1), s = C(() => {
4329
4329
  o(!1), t();
4330
- }, [t]), c = w((e) => {
4330
+ }, [t]), c = C((e) => {
4331
4331
  e || (o(!1), t());
4332
- }, [t]), l = w((t) => {
4332
+ }, [t]), l = C((t) => {
4333
4333
  if (e) switch (t.key) {
4334
4334
  case "Escape":
4335
4335
  t.preventDefault(), a ? o(!1) : s();
@@ -4348,18 +4348,18 @@ function os({ open: e, onClose: t, onNavigatePrev: n, onNavigateNext: r, childre
4348
4348
  n,
4349
4349
  r
4350
4350
  ]);
4351
- E(() => (document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l)), [l]);
4352
- let u = a ? "100vw" : 640, d = a ? "100vw" : "90vw", f = D(() => ({
4351
+ T(() => (document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l)), [l]);
4352
+ let u = a ? "100vw" : 640, d = a ? "100vw" : "90vw", f = E(() => ({
4353
4353
  expanded: a,
4354
4354
  setExpanded: o
4355
4355
  }), [a]);
4356
- return /* @__PURE__ */ j(ns.Provider, {
4356
+ return /* @__PURE__ */ A(ns.Provider, {
4357
4357
  value: f,
4358
- children: /* @__PURE__ */ j(He, {
4358
+ children: /* @__PURE__ */ A(Ue, {
4359
4359
  open: e,
4360
4360
  onOpenChange: c,
4361
4361
  modal: !1,
4362
- children: /* @__PURE__ */ M(Ue, {
4362
+ children: /* @__PURE__ */ j(We, {
4363
4363
  side: "right",
4364
4364
  className: "gap-0 p-0 transition-[width] duration-200 ease-in-out",
4365
4365
  style: {
@@ -4370,15 +4370,15 @@ function os({ open: e, onClose: t, onNavigatePrev: n, onNavigateNext: r, childre
4370
4370
  "data-log-detail-shell": !0,
4371
4371
  "aria-describedby": void 0,
4372
4372
  children: [
4373
- /* @__PURE__ */ j(Ge, {
4373
+ /* @__PURE__ */ A(Ke, {
4374
4374
  className: "sr-only",
4375
4375
  children: "Log Detail"
4376
4376
  }),
4377
- /* @__PURE__ */ j(We, {
4377
+ /* @__PURE__ */ A(Ge, {
4378
4378
  className: "sr-only",
4379
4379
  children: "Detailed view of a log entry"
4380
4380
  }),
4381
- /* @__PURE__ */ j(Fe, {
4381
+ /* @__PURE__ */ A(Ie, {
4382
4382
  className: "h-full",
4383
4383
  children: i
4384
4384
  })
@@ -4422,100 +4422,100 @@ function ls(e) {
4422
4422
  };
4423
4423
  }
4424
4424
  function us({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigatePrev: a, onNavigateNext: o, onCopyJson: s, hasPrev: c = !0, hasNext: l = !0, showExpandToggle: u = !0 }) {
4425
- let { expanded: d, setExpanded: f } = rs(), p = w((e) => {
4425
+ let { expanded: d, setExpanded: f } = rs(), p = C((e) => {
4426
4426
  e.key === "Escape" && i?.();
4427
4427
  }, [i]), m = r ? ls(r) : null;
4428
- return /* @__PURE__ */ M("div", {
4428
+ return /* @__PURE__ */ j("div", {
4429
4429
  className: "sticky top-0 z-10 border-b bg-background/95 backdrop-blur-sm",
4430
4430
  role: "toolbar",
4431
4431
  "aria-label": "Log detail toolbar",
4432
4432
  onKeyDown: p,
4433
- children: [/* @__PURE__ */ M("div", {
4433
+ children: [/* @__PURE__ */ j("div", {
4434
4434
  className: "flex items-center justify-between px-5 pt-4 pb-2",
4435
- children: [/* @__PURE__ */ j("div", {
4435
+ children: [/* @__PURE__ */ A("div", {
4436
4436
  className: "flex items-center gap-0.5",
4437
- children: (a ?? o) && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(I, {
4437
+ children: (a ?? o) && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(F, {
4438
4438
  variant: "ghost",
4439
4439
  size: "icon",
4440
4440
  onClick: a,
4441
4441
  disabled: !c,
4442
4442
  "aria-label": "Previous log",
4443
- children: /* @__PURE__ */ j(tt, { className: "size-4" })
4444
- }), /* @__PURE__ */ j(I, {
4443
+ children: /* @__PURE__ */ A(nt, { className: "size-4" })
4444
+ }), /* @__PURE__ */ A(F, {
4445
4445
  variant: "ghost",
4446
4446
  size: "icon",
4447
4447
  onClick: o,
4448
4448
  disabled: !l,
4449
4449
  "aria-label": "Next log",
4450
- children: /* @__PURE__ */ j(nt, { className: "size-4" })
4450
+ children: /* @__PURE__ */ A(rt, { className: "size-4" })
4451
4451
  })] })
4452
- }), /* @__PURE__ */ M("div", {
4452
+ }), /* @__PURE__ */ j("div", {
4453
4453
  className: "flex items-center gap-0.5",
4454
4454
  children: [
4455
- s && /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
4455
+ s && /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
4456
4456
  asChild: !0,
4457
- children: /* @__PURE__ */ j(I, {
4457
+ children: /* @__PURE__ */ A(F, {
4458
4458
  variant: "ghost",
4459
4459
  size: "icon",
4460
4460
  onClick: s,
4461
4461
  "aria-label": "Copy JSON",
4462
- children: /* @__PURE__ */ j(ut, { className: "size-4" })
4462
+ children: /* @__PURE__ */ A(dt, { className: "size-4" })
4463
4463
  })
4464
- }), /* @__PURE__ */ j(z, { children: "Copy as JSON" })] }) }),
4465
- u && /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
4464
+ }), /* @__PURE__ */ A(R, { children: "Copy as JSON" })] }) }),
4465
+ u && /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
4466
4466
  asChild: !0,
4467
- children: /* @__PURE__ */ j(I, {
4467
+ children: /* @__PURE__ */ A(F, {
4468
4468
  variant: "ghost",
4469
4469
  size: "icon",
4470
4470
  onClick: () => f(!d),
4471
4471
  "aria-label": d ? "Exit full screen" : "Full screen",
4472
- children: j(d ? _t : dt, { className: "size-4" })
4472
+ children: A(d ? vt : ft, { className: "size-4" })
4473
4473
  })
4474
- }), /* @__PURE__ */ j(z, { children: d ? "Exit full screen" : "Full screen" })] }) }),
4475
- i && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(Ve, {
4474
+ }), /* @__PURE__ */ A(R, { children: d ? "Exit full screen" : "Full screen" })] }) }),
4475
+ i && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(He, {
4476
4476
  orientation: "vertical",
4477
4477
  className: "mx-1.5 h-4"
4478
- }), /* @__PURE__ */ j(I, {
4478
+ }), /* @__PURE__ */ A(F, {
4479
4479
  variant: "ghost",
4480
4480
  size: "icon",
4481
4481
  onClick: i,
4482
4482
  "aria-label": "Close",
4483
- children: /* @__PURE__ */ j(Ct, { className: "size-4" })
4483
+ children: /* @__PURE__ */ A(wt, { className: "size-4" })
4484
4484
  })] })
4485
4485
  ]
4486
4486
  })]
4487
- }), /* @__PURE__ */ M("div", {
4487
+ }), /* @__PURE__ */ j("div", {
4488
4488
  className: "px-5 pb-4 space-y-3",
4489
- children: [/* @__PURE__ */ M("div", {
4489
+ children: [/* @__PURE__ */ j("div", {
4490
4490
  className: "flex items-center gap-3",
4491
4491
  children: [
4492
- e && /* @__PURE__ */ j(F, {
4492
+ e && /* @__PURE__ */ A(P, {
4493
4493
  variant: ss[e] ?? "secondary",
4494
4494
  children: e
4495
4495
  }),
4496
- t !== void 0 && /* @__PURE__ */ j("span", {
4496
+ t !== void 0 && /* @__PURE__ */ A("span", {
4497
4497
  className: `font-mono text-sm font-semibold tabular-nums ${cs(t)}`,
4498
4498
  children: t
4499
4499
  }),
4500
- m && /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
4500
+ m && /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
4501
4501
  asChild: !0,
4502
- children: /* @__PURE__ */ j("span", {
4502
+ children: /* @__PURE__ */ A("span", {
4503
4503
  className: "ml-auto text-xs text-muted-foreground",
4504
4504
  children: m.relative
4505
4505
  })
4506
- }), /* @__PURE__ */ j(z, {
4506
+ }), /* @__PURE__ */ A(R, {
4507
4507
  side: "bottom",
4508
4508
  className: "text-xs",
4509
4509
  children: m.full
4510
4510
  })] }) })
4511
4511
  ]
4512
- }), n && /* @__PURE__ */ j(B, { children: /* @__PURE__ */ M(R, { children: [/* @__PURE__ */ j(V, {
4512
+ }), n && /* @__PURE__ */ A(z, { children: /* @__PURE__ */ j(L, { children: [/* @__PURE__ */ A(B, {
4513
4513
  asChild: !0,
4514
- children: /* @__PURE__ */ j("p", {
4514
+ children: /* @__PURE__ */ A("p", {
4515
4515
  className: "font-mono text-sm text-muted-foreground truncate leading-relaxed",
4516
4516
  children: n
4517
4517
  })
4518
- }), /* @__PURE__ */ j(z, {
4518
+ }), /* @__PURE__ */ A(R, {
4519
4519
  side: "bottom",
4520
4520
  align: "start",
4521
4521
  className: "max-w-[500px] break-all text-xs font-mono",
@@ -4527,13 +4527,13 @@ function us({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
4527
4527
  //#endregion
4528
4528
  //#region src/logs/detail/components/LogDetailMetrics.tsx
4529
4529
  function ds({ items: e }) {
4530
- let t = e.filter((e) => e.value !== void 0 && e.value !== null), n = D(() => t.map((e) => ({
4530
+ let t = e.filter((e) => e.value !== void 0 && e.value !== null), n = E(() => t.map((e) => ({
4531
4531
  value: fs(e.value, e.unit),
4532
4532
  label: e.label
4533
4533
  })), [t]);
4534
- return n.length === 0 ? null : /* @__PURE__ */ j("div", {
4534
+ return n.length === 0 ? null : /* @__PURE__ */ A("div", {
4535
4535
  className: "border-b px-5 py-4 h-[100px]",
4536
- children: /* @__PURE__ */ j(zt, {
4536
+ children: /* @__PURE__ */ A(Bt, {
4537
4537
  items: n,
4538
4538
  state: "ready",
4539
4539
  skeletonCount: n.length,
@@ -4547,8 +4547,8 @@ function fs(e, t) {
4547
4547
  //#endregion
4548
4548
  //#region src/logs/detail/components/LogDetailSection.tsx
4549
4549
  function ps({ children: e, defaultValue: t }) {
4550
- let [n, r] = k(t ?? "");
4551
- return /* @__PURE__ */ j(ae, {
4550
+ let [n, r] = O(t ?? "");
4551
+ return /* @__PURE__ */ A(oe, {
4552
4552
  type: "single",
4553
4553
  collapsible: !0,
4554
4554
  value: n,
@@ -4557,20 +4557,20 @@ function ps({ children: e, defaultValue: t }) {
4557
4557
  });
4558
4558
  }
4559
4559
  function ms({ title: e, badge: t, children: n }) {
4560
- return /* @__PURE__ */ M(se, {
4560
+ return /* @__PURE__ */ j(ce, {
4561
4561
  value: e,
4562
4562
  className: "border-b last:border-b-0",
4563
- children: [/* @__PURE__ */ j(ce, {
4563
+ children: [/* @__PURE__ */ A(le, {
4564
4564
  className: "px-5 py-4 text-sm font-medium tracking-tight hover:bg-muted/30 transition-colors duration-150",
4565
- children: /* @__PURE__ */ M("span", {
4565
+ children: /* @__PURE__ */ j("span", {
4566
4566
  className: "flex items-center gap-3",
4567
- children: [e, t != null && /* @__PURE__ */ j(F, {
4567
+ children: [e, t != null && /* @__PURE__ */ A(P, {
4568
4568
  variant: "secondary",
4569
4569
  className: "text-[10px] font-semibold",
4570
4570
  children: t
4571
4571
  })]
4572
4572
  })
4573
- }), /* @__PURE__ */ j(oe, { children: /* @__PURE__ */ j("div", {
4573
+ }), /* @__PURE__ */ A(se, { children: /* @__PURE__ */ A("div", {
4574
4574
  className: "px-5 pb-5 pt-1",
4575
4575
  children: n
4576
4576
  }) })]
@@ -4588,16 +4588,16 @@ var hs = {
4588
4588
  };
4589
4589
  function gs({ config: e, log: t, logId: n, onClose: r, onCopyJson: i, onNavigatePrev: a, onNavigateNext: o, onFilter: s, hasPrev: c, hasNext: l, showExpandToggle: u = !0, showNavigation: d = !0 }) {
4590
4590
  let f = Jo(e, t);
4591
- if (!f) return /* @__PURE__ */ j("div", {
4591
+ if (!f) return /* @__PURE__ */ A("div", {
4592
4592
  className: "flex items-center justify-center p-8 text-sm text-muted-foreground",
4593
4593
  children: "No detail view configured for this log type."
4594
4594
  });
4595
- if (f.type === "custom") return /* @__PURE__ */ j(A, { children: f.render(t, hs) });
4595
+ if (f.type === "custom") return /* @__PURE__ */ A(k, { children: f.render(t, hs) });
4596
4596
  let p = Yo(f, t);
4597
4597
  if (!p) return null;
4598
4598
  let m = e.contextChart;
4599
- return /* @__PURE__ */ M(A, { children: [
4600
- /* @__PURE__ */ j(us, {
4599
+ return /* @__PURE__ */ j(k, { children: [
4600
+ /* @__PURE__ */ A(us, {
4601
4601
  method: p.header.method(t),
4602
4602
  status: p.header.status(t),
4603
4603
  uri: p.header.uri(t),
@@ -4610,7 +4610,7 @@ function gs({ config: e, log: t, logId: n, onClose: r, onCopyJson: i, onNavigate
4610
4610
  hasNext: d ? l : !1,
4611
4611
  showExpandToggle: u
4612
4612
  }),
4613
- m && /* @__PURE__ */ j(ts, {
4613
+ m && /* @__PURE__ */ A(ts, {
4614
4614
  apiId: m.extractApiId(t),
4615
4615
  timestamp: m.extractTimestamp?.(t) ?? p.header.timestamp(t),
4616
4616
  metric: m.metric,
@@ -4618,14 +4618,14 @@ function gs({ config: e, log: t, logId: n, onClose: r, onCopyJson: i, onNavigate
4618
4618
  filterField: m.filterField,
4619
4619
  analyticsFilterMapping: m.analyticsFilterMapping
4620
4620
  }),
4621
- p.metrics && p.metrics.length > 0 && /* @__PURE__ */ j(ds, { items: p.metrics.map((e) => ({
4621
+ p.metrics && p.metrics.length > 0 && /* @__PURE__ */ A(ds, { items: p.metrics.map((e) => ({
4622
4622
  label: e.label,
4623
4623
  value: e.value(t),
4624
4624
  unit: e.unit
4625
4625
  })) }),
4626
- /* @__PURE__ */ j(ps, {
4626
+ /* @__PURE__ */ A(ps, {
4627
4627
  defaultValue: p.sections.find((e) => e.defaultOpen)?.title,
4628
- children: p.sections.map((e) => /* @__PURE__ */ j(ms, {
4628
+ children: p.sections.map((e) => /* @__PURE__ */ A(ms, {
4629
4629
  title: e.title,
4630
4630
  badge: e.badge?.(t),
4631
4631
  children: e.render(t, s)
@@ -4636,48 +4636,48 @@ function gs({ config: e, log: t, logId: n, onClose: r, onCopyJson: i, onNavigate
4636
4636
  //#endregion
4637
4637
  //#region src/logs/detail/utils/clipboard.ts
4638
4638
  function _s(e) {
4639
- navigator.clipboard.writeText(JSON.stringify(e, null, 2)).then(() => U.success("Full JSON copied to clipboard"), () => U.error("Failed to copy to clipboard"));
4639
+ navigator.clipboard.writeText(JSON.stringify(e, null, 2)).then(() => H.success("Full JSON copied to clipboard"), () => H.error("Failed to copy to clipboard"));
4640
4640
  }
4641
4641
  //#endregion
4642
4642
  //#region src/logs/detail/components/LogDetailDrawer.tsx
4643
4643
  function vs({ config: e, logId: t, onClose: n, onNavigatePrev: r, onNavigateNext: i, onFilter: a, hasPrev: o, hasNext: s }) {
4644
4644
  let { data: c, isLoading: l, isError: u, isNotFound: d, isUnsupported: f, refetch: p } = Cn({ id: t });
4645
- return /* @__PURE__ */ M(os, {
4645
+ return /* @__PURE__ */ j(os, {
4646
4646
  open: !!t,
4647
4647
  onClose: n,
4648
4648
  onNavigatePrev: r,
4649
4649
  onNavigateNext: i,
4650
4650
  children: [
4651
- l && /* @__PURE__ */ j(ys, {}),
4652
- f && /* @__PURE__ */ M("div", {
4651
+ l && /* @__PURE__ */ A(ys, {}),
4652
+ f && /* @__PURE__ */ j("div", {
4653
4653
  className: "flex flex-col items-center justify-center gap-2 p-8 text-center text-muted-foreground",
4654
- children: [/* @__PURE__ */ j("p", {
4654
+ children: [/* @__PURE__ */ A("p", {
4655
4655
  className: "text-sm",
4656
4656
  children: "Log detail is not supported."
4657
- }), /* @__PURE__ */ j("p", {
4657
+ }), /* @__PURE__ */ A("p", {
4658
4658
  className: "text-xs",
4659
4659
  children: "The data source does not implement getById."
4660
4660
  })]
4661
4661
  }),
4662
- d && /* @__PURE__ */ M("div", {
4662
+ d && /* @__PURE__ */ j("div", {
4663
4663
  className: "flex flex-col items-center justify-center gap-2 p-8 text-center text-muted-foreground",
4664
- children: [/* @__PURE__ */ j("p", {
4664
+ children: [/* @__PURE__ */ A("p", {
4665
4665
  className: "text-sm font-medium",
4666
4666
  children: "Log not found"
4667
- }), /* @__PURE__ */ j("p", {
4667
+ }), /* @__PURE__ */ A("p", {
4668
4668
  className: "text-xs",
4669
4669
  children: "The log entry may have been deleted or is no longer available."
4670
4670
  })]
4671
4671
  }),
4672
- u && /* @__PURE__ */ M("div", {
4672
+ u && /* @__PURE__ */ j("div", {
4673
4673
  className: "flex flex-col items-center gap-3 p-8",
4674
4674
  children: [
4675
- /* @__PURE__ */ j(et, { className: "size-8 text-destructive" }),
4676
- /* @__PURE__ */ j("p", {
4675
+ /* @__PURE__ */ A(tt, { className: "size-8 text-destructive" }),
4676
+ /* @__PURE__ */ A("p", {
4677
4677
  className: "text-sm text-destructive",
4678
4678
  children: "Failed to load log details"
4679
4679
  }),
4680
- /* @__PURE__ */ j(I, {
4680
+ /* @__PURE__ */ A(F, {
4681
4681
  variant: "outline",
4682
4682
  size: "sm",
4683
4683
  onClick: () => p(),
@@ -4685,7 +4685,7 @@ function vs({ config: e, logId: t, onClose: n, onNavigatePrev: r, onNavigateNext
4685
4685
  })
4686
4686
  ]
4687
4687
  }),
4688
- c != null && /* @__PURE__ */ j(gs, {
4688
+ c != null && /* @__PURE__ */ A(gs, {
4689
4689
  config: e,
4690
4690
  log: c,
4691
4691
  logId: t,
@@ -4703,28 +4703,28 @@ function vs({ config: e, logId: t, onClose: n, onNavigatePrev: r, onNavigateNext
4703
4703
  });
4704
4704
  }
4705
4705
  function ys() {
4706
- return /* @__PURE__ */ M("div", {
4706
+ return /* @__PURE__ */ j("div", {
4707
4707
  className: "space-y-4 p-4",
4708
4708
  children: [
4709
- /* @__PURE__ */ M("div", {
4709
+ /* @__PURE__ */ j("div", {
4710
4710
  className: "flex items-center gap-2",
4711
4711
  children: [
4712
- /* @__PURE__ */ j(L, { className: "h-6 w-12" }),
4713
- /* @__PURE__ */ j(L, { className: "h-6 w-10" }),
4714
- /* @__PURE__ */ j(L, { className: "h-6 w-48" })
4712
+ /* @__PURE__ */ A(I, { className: "h-6 w-12" }),
4713
+ /* @__PURE__ */ A(I, { className: "h-6 w-10" }),
4714
+ /* @__PURE__ */ A(I, { className: "h-6 w-48" })
4715
4715
  ]
4716
4716
  }),
4717
- /* @__PURE__ */ j(L, { className: "h-[80px] w-full" }),
4718
- /* @__PURE__ */ M("div", {
4717
+ /* @__PURE__ */ A(I, { className: "h-[80px] w-full" }),
4718
+ /* @__PURE__ */ j("div", {
4719
4719
  className: "flex gap-3",
4720
4720
  children: [
4721
- /* @__PURE__ */ j(L, { className: "h-14 flex-1" }),
4722
- /* @__PURE__ */ j(L, { className: "h-14 flex-1" }),
4723
- /* @__PURE__ */ j(L, { className: "h-14 flex-1" })
4721
+ /* @__PURE__ */ A(I, { className: "h-14 flex-1" }),
4722
+ /* @__PURE__ */ A(I, { className: "h-14 flex-1" }),
4723
+ /* @__PURE__ */ A(I, { className: "h-14 flex-1" })
4724
4724
  ]
4725
4725
  }),
4726
- /* @__PURE__ */ j(L, { className: "h-8 w-full" }),
4727
- /* @__PURE__ */ j(L, { className: "h-32 w-full" })
4726
+ /* @__PURE__ */ A(I, { className: "h-8 w-full" }),
4727
+ /* @__PURE__ */ A(I, { className: "h-32 w-full" })
4728
4728
  ]
4729
4729
  });
4730
4730
  }
@@ -4732,66 +4732,66 @@ function ys() {
4732
4732
  //#region src/logs/detail/components/LogDetailPage.tsx
4733
4733
  function bs({ config: e, onFilter: t }) {
4734
4734
  let { logId: n } = Xt(), r = Yt(), { data: i, isLoading: a, isError: o, isNotFound: s, isUnsupported: c, refetch: l } = Cn({ id: n }), u = () => r(-1);
4735
- return a ? /* @__PURE__ */ M("div", {
4735
+ return a ? /* @__PURE__ */ j("div", {
4736
4736
  className: "space-y-4 p-6",
4737
4737
  children: [
4738
- /* @__PURE__ */ j(L, { className: "h-8 w-48" }),
4739
- /* @__PURE__ */ j(L, { className: "h-[80px] w-full" }),
4740
- /* @__PURE__ */ M("div", {
4738
+ /* @__PURE__ */ A(I, { className: "h-8 w-48" }),
4739
+ /* @__PURE__ */ A(I, { className: "h-[80px] w-full" }),
4740
+ /* @__PURE__ */ j("div", {
4741
4741
  className: "flex gap-3",
4742
4742
  children: [
4743
- /* @__PURE__ */ j(L, { className: "h-14 flex-1" }),
4744
- /* @__PURE__ */ j(L, { className: "h-14 flex-1" }),
4745
- /* @__PURE__ */ j(L, { className: "h-14 flex-1" })
4743
+ /* @__PURE__ */ A(I, { className: "h-14 flex-1" }),
4744
+ /* @__PURE__ */ A(I, { className: "h-14 flex-1" }),
4745
+ /* @__PURE__ */ A(I, { className: "h-14 flex-1" })
4746
4746
  ]
4747
4747
  }),
4748
- /* @__PURE__ */ j(L, { className: "h-64 w-full" })
4748
+ /* @__PURE__ */ A(I, { className: "h-64 w-full" })
4749
4749
  ]
4750
- }) : c ? /* @__PURE__ */ j("div", {
4750
+ }) : c ? /* @__PURE__ */ A("div", {
4751
4751
  className: "flex flex-col items-center justify-center gap-2 p-12 text-center text-muted-foreground",
4752
- children: /* @__PURE__ */ j("p", {
4752
+ children: /* @__PURE__ */ A("p", {
4753
4753
  className: "text-sm",
4754
4754
  children: "Log detail is not supported by this data source."
4755
4755
  })
4756
- }) : s ? /* @__PURE__ */ M("div", {
4756
+ }) : s ? /* @__PURE__ */ j("div", {
4757
4757
  className: "flex flex-col items-center justify-center gap-4 p-12 text-center",
4758
- children: [/* @__PURE__ */ j("p", {
4758
+ children: [/* @__PURE__ */ A("p", {
4759
4759
  className: "text-sm font-medium text-muted-foreground",
4760
4760
  children: "Log not found"
4761
- }), /* @__PURE__ */ M(I, {
4761
+ }), /* @__PURE__ */ j(F, {
4762
4762
  variant: "outline",
4763
4763
  size: "sm",
4764
4764
  onClick: u,
4765
- children: [/* @__PURE__ */ j(tt, { className: "size-4 mr-1.5" }), "Back to logs"]
4765
+ children: [/* @__PURE__ */ A(nt, { className: "size-4 mr-1.5" }), "Back to logs"]
4766
4766
  })]
4767
- }) : o ? /* @__PURE__ */ M("div", {
4767
+ }) : o ? /* @__PURE__ */ j("div", {
4768
4768
  className: "flex flex-col items-center gap-3 p-12",
4769
4769
  children: [
4770
- /* @__PURE__ */ j(et, { className: "size-8 text-destructive" }),
4771
- /* @__PURE__ */ j("p", {
4770
+ /* @__PURE__ */ A(tt, { className: "size-8 text-destructive" }),
4771
+ /* @__PURE__ */ A("p", {
4772
4772
  className: "text-sm text-destructive",
4773
4773
  children: "Failed to load log details"
4774
4774
  }),
4775
- /* @__PURE__ */ j(I, {
4775
+ /* @__PURE__ */ A(F, {
4776
4776
  variant: "outline",
4777
4777
  size: "sm",
4778
4778
  onClick: () => l(),
4779
4779
  children: "Retry"
4780
4780
  })
4781
4781
  ]
4782
- }) : i ? /* @__PURE__ */ M("div", {
4782
+ }) : i ? /* @__PURE__ */ j("div", {
4783
4783
  className: "space-y-0",
4784
- children: [/* @__PURE__ */ j("div", {
4784
+ children: [/* @__PURE__ */ A("div", {
4785
4785
  className: "border-b px-6 py-3",
4786
- children: /* @__PURE__ */ M(I, {
4786
+ children: /* @__PURE__ */ j(F, {
4787
4787
  variant: "ghost",
4788
4788
  size: "sm",
4789
4789
  onClick: u,
4790
- children: [/* @__PURE__ */ j(tt, { className: "size-4 mr-1.5" }), "Back to logs"]
4790
+ children: [/* @__PURE__ */ A(nt, { className: "size-4 mr-1.5" }), "Back to logs"]
4791
4791
  })
4792
- }), /* @__PURE__ */ j(ue, {
4792
+ }), /* @__PURE__ */ A(de, {
4793
4793
  className: "mx-6 mt-4 overflow-hidden",
4794
- children: /* @__PURE__ */ j(gs, {
4794
+ children: /* @__PURE__ */ A(gs, {
4795
4795
  config: e,
4796
4796
  log: i,
4797
4797
  logId: n,
@@ -4824,7 +4824,7 @@ var xs = {
4824
4824
  };
4825
4825
  function Ss({ status: e }) {
4826
4826
  let t = xs[e];
4827
- return /* @__PURE__ */ j(F, {
4827
+ return /* @__PURE__ */ A(P, {
4828
4828
  variant: t.variant,
4829
4829
  children: t.label
4830
4830
  });
@@ -4876,17 +4876,17 @@ function ks({ data: e, loading: t, totalCount: n, page: r, pageSize: i, onPageCh
4876
4876
  50,
4877
4877
  100
4878
4878
  ], onRowClick: c, columnVisibilityStorageKey: l }) {
4879
- let u = l ?? Ts, [d, f] = k(() => Ds(u)), p = w((e) => {
4879
+ let u = l ?? Ts, [d, f] = O(() => Ds(u)), p = C((e) => {
4880
4880
  f((t) => {
4881
4881
  let n = typeof e == "function" ? e(t) : e;
4882
4882
  return Os(u, n), n;
4883
4883
  });
4884
- }, [u]), m = D(() => [
4884
+ }, [u]), m = E(() => [
4885
4885
  {
4886
4886
  id: "startTime",
4887
4887
  header: "Start Time",
4888
4888
  accessorFn: (e) => e.startTime,
4889
- cell: ({ getValue: e }) => /* @__PURE__ */ j("span", {
4889
+ cell: ({ getValue: e }) => /* @__PURE__ */ A("span", {
4890
4890
  className: "whitespace-nowrap text-sm tabular-nums",
4891
4891
  children: Cs(e())
4892
4892
  })
@@ -4895,13 +4895,13 @@ function ks({ data: e, loading: t, totalCount: n, page: r, pageSize: i, onPageCh
4895
4895
  id: "status",
4896
4896
  header: "Status",
4897
4897
  accessorFn: (e) => e.status,
4898
- cell: ({ row: e }) => /* @__PURE__ */ j(Ss, { status: e.original.status })
4898
+ cell: ({ row: e }) => /* @__PURE__ */ A(Ss, { status: e.original.status })
4899
4899
  },
4900
4900
  {
4901
4901
  id: "rootServiceName",
4902
4902
  header: "Service",
4903
4903
  accessorFn: (e) => e.rootServiceName,
4904
- cell: ({ getValue: e }) => /* @__PURE__ */ j("span", {
4904
+ cell: ({ getValue: e }) => /* @__PURE__ */ A("span", {
4905
4905
  className: "max-w-48 truncate text-sm font-medium",
4906
4906
  children: e()
4907
4907
  })
@@ -4910,7 +4910,7 @@ function ks({ data: e, loading: t, totalCount: n, page: r, pageSize: i, onPageCh
4910
4910
  id: "rootOperationName",
4911
4911
  header: "Operation",
4912
4912
  accessorFn: (e) => e.rootOperationName,
4913
- cell: ({ getValue: e }) => /* @__PURE__ */ j("span", {
4913
+ cell: ({ getValue: e }) => /* @__PURE__ */ A("span", {
4914
4914
  className: "max-w-64 truncate font-mono text-xs",
4915
4915
  children: e()
4916
4916
  })
@@ -4919,12 +4919,12 @@ function ks({ data: e, loading: t, totalCount: n, page: r, pageSize: i, onPageCh
4919
4919
  id: "duration",
4920
4920
  header: "Duration",
4921
4921
  accessorFn: (e) => e.duration,
4922
- cell: ({ getValue: e }) => /* @__PURE__ */ j("span", {
4922
+ cell: ({ getValue: e }) => /* @__PURE__ */ A("span", {
4923
4923
  className: "whitespace-nowrap text-sm tabular-nums",
4924
4924
  children: ws(e())
4925
4925
  })
4926
4926
  }
4927
- ], []), h = w((n) => {
4927
+ ], []), h = C((n) => {
4928
4928
  if (!c || t) return;
4929
4929
  let r = n.target;
4930
4930
  if (r.closest("button, a, input, [role=\"checkbox\"]")) return;
@@ -4938,7 +4938,7 @@ function ks({ data: e, loading: t, totalCount: n, page: r, pageSize: i, onPageCh
4938
4938
  c,
4939
4939
  t,
4940
4940
  e
4941
- ]), g = w((n) => {
4941
+ ]), g = C((n) => {
4942
4942
  if (!c || t || n.key !== "Enter" && n.key !== " ") return;
4943
4943
  let r = n.target.closest("tbody tr");
4944
4944
  if (!r) return;
@@ -4952,12 +4952,12 @@ function ks({ data: e, loading: t, totalCount: n, page: r, pageSize: i, onPageCh
4952
4952
  t,
4953
4953
  e
4954
4954
  ]);
4955
- return /* @__PURE__ */ j("div", {
4955
+ return /* @__PURE__ */ A("div", {
4956
4956
  role: c ? "grid" : void 0,
4957
4957
  onClick: h,
4958
4958
  onKeyDown: g,
4959
4959
  className: c ? "[&_tbody_tr]:cursor-pointer" : void 0,
4960
- children: /* @__PURE__ */ j(be, {
4960
+ children: /* @__PURE__ */ A(xe, {
4961
4961
  columns: m,
4962
4962
  data: e,
4963
4963
  loading: t,
@@ -4971,15 +4971,15 @@ function ks({ data: e, loading: t, totalCount: n, page: r, pageSize: i, onPageCh
4971
4971
  state: { columnVisibility: d },
4972
4972
  onColumnVisibilityChange: p
4973
4973
  },
4974
- emptyMessage: /* @__PURE__ */ j(Se, { children: /* @__PURE__ */ M(we, { children: [
4975
- /* @__PURE__ */ j(Te, {
4974
+ emptyMessage: /* @__PURE__ */ A(Ce, { children: /* @__PURE__ */ j(Te, { children: [
4975
+ /* @__PURE__ */ A(Ee, {
4976
4976
  variant: "icon",
4977
- children: /* @__PURE__ */ j(xt, {})
4977
+ children: /* @__PURE__ */ A(St, {})
4978
4978
  }),
4979
- /* @__PURE__ */ j(Ee, { children: "No traces found" }),
4980
- /* @__PURE__ */ j(Ce, { children: "Try adjusting your filters or time range to see traces." })
4979
+ /* @__PURE__ */ A(De, { children: "No traces found" }),
4980
+ /* @__PURE__ */ A(we, { children: "Try adjusting your filters or time range to see traces." })
4981
4981
  ] }) }),
4982
- footer: n > 0 ? /* @__PURE__ */ j(xe, {
4982
+ footer: n > 0 ? /* @__PURE__ */ A(Se, {
4983
4983
  page: r,
4984
4984
  pageSize: i,
4985
4985
  totalCount: n,
@@ -4999,41 +4999,41 @@ function As({ onRowClick: e, pageSize: t = 25, columnVisibilityStorageKey: n, on
4999
4999
  pageSize: t,
5000
5000
  enabled: !!i
5001
5001
  });
5002
- return js(s.data, r), /* @__PURE__ */ M("div", {
5002
+ return js(s.data, r), /* @__PURE__ */ j("div", {
5003
5003
  className: "space-y-4 p-4",
5004
5004
  children: [
5005
- /* @__PURE__ */ j("h1", {
5005
+ /* @__PURE__ */ A("h1", {
5006
5006
  className: "text-lg font-semibold",
5007
5007
  children: "Traces"
5008
5008
  }),
5009
- /* @__PURE__ */ M("div", {
5009
+ /* @__PURE__ */ j("div", {
5010
5010
  className: "flex flex-wrap items-center gap-3",
5011
5011
  children: [
5012
- /* @__PURE__ */ j("div", { className: "flex-1" }),
5013
- /* @__PURE__ */ j(B, { children: /* @__PURE__ */ j(Ia, { isFetching: s.isFetching }) }),
5014
- /* @__PURE__ */ j(rr, {
5012
+ /* @__PURE__ */ A("div", { className: "flex-1" }),
5013
+ /* @__PURE__ */ A(z, { children: /* @__PURE__ */ A(Ia, { isFetching: s.isFetching }) }),
5014
+ /* @__PURE__ */ A(rr, {
5015
5015
  value: a,
5016
5016
  onChange: o
5017
5017
  })
5018
5018
  ]
5019
5019
  }),
5020
- s.isError && /* @__PURE__ */ M("div", {
5020
+ s.isError && /* @__PURE__ */ j("div", {
5021
5021
  className: "flex items-center gap-3 rounded-lg border border-destructive/20 bg-destructive/5 px-4 py-3",
5022
5022
  children: [
5023
- /* @__PURE__ */ j(et, { className: "size-5 shrink-0 text-destructive" }),
5024
- /* @__PURE__ */ j("p", {
5023
+ /* @__PURE__ */ A(tt, { className: "size-5 shrink-0 text-destructive" }),
5024
+ /* @__PURE__ */ A("p", {
5025
5025
  className: "flex-1 text-sm text-destructive",
5026
5026
  children: s.error?.message ?? "Failed to load traces."
5027
5027
  }),
5028
- /* @__PURE__ */ M(I, {
5028
+ /* @__PURE__ */ j(F, {
5029
5029
  variant: "outline",
5030
5030
  size: "sm",
5031
5031
  onClick: s.refetch,
5032
- children: [/* @__PURE__ */ j(yt, { className: "size-3.5" }), "Retry"]
5032
+ children: [/* @__PURE__ */ A(bt, { className: "size-3.5" }), "Retry"]
5033
5033
  })
5034
5034
  ]
5035
5035
  }),
5036
- /* @__PURE__ */ j(ks, {
5036
+ /* @__PURE__ */ A(ks, {
5037
5037
  data: s.data,
5038
5038
  loading: s.isLoading,
5039
5039
  totalCount: s.totalCount,
@@ -5048,10 +5048,10 @@ function As({ onRowClick: e, pageSize: t = 25, columnVisibilityStorageKey: n, on
5048
5048
  });
5049
5049
  }
5050
5050
  function js(e, t) {
5051
- let n = O(t);
5052
- E(() => {
5051
+ let n = D(t);
5052
+ T(() => {
5053
5053
  n.current = t;
5054
- }, [t]), E(() => {
5054
+ }, [t]), T(() => {
5055
5055
  n.current?.(e);
5056
5056
  }, [e]);
5057
5057
  }
@@ -5078,27 +5078,27 @@ function Ps(e) {
5078
5078
  }));
5079
5079
  }
5080
5080
  function Fs({ span: e, open: t, onClose: n }) {
5081
- return /* @__PURE__ */ j(He, {
5081
+ return /* @__PURE__ */ A(Ue, {
5082
5082
  open: t,
5083
5083
  onOpenChange: (e) => !e && n(),
5084
5084
  modal: !1,
5085
- children: /* @__PURE__ */ M(Ue, {
5085
+ children: /* @__PURE__ */ j(We, {
5086
5086
  side: "right",
5087
5087
  className: "gap-0 p-0 w-[480px] max-w-[80vw]",
5088
5088
  showCloseButton: !1,
5089
5089
  "aria-describedby": void 0,
5090
5090
  children: [
5091
- /* @__PURE__ */ j(Ge, {
5091
+ /* @__PURE__ */ A(Ke, {
5092
5092
  className: "sr-only",
5093
5093
  children: "Span Detail"
5094
5094
  }),
5095
- /* @__PURE__ */ j(We, {
5095
+ /* @__PURE__ */ A(Ge, {
5096
5096
  className: "sr-only",
5097
5097
  children: "Detailed view of a span"
5098
5098
  }),
5099
- /* @__PURE__ */ j(Fe, {
5099
+ /* @__PURE__ */ A(Ie, {
5100
5100
  className: "h-full",
5101
- children: e && /* @__PURE__ */ j(Is, {
5101
+ children: e && /* @__PURE__ */ A(Is, {
5102
5102
  span: e,
5103
5103
  onClose: n
5104
5104
  })
@@ -5142,88 +5142,88 @@ function Is({ span: e, onClose: t }) {
5142
5142
  value: ws(e.duration)
5143
5143
  }
5144
5144
  ], r = Object.entries(e.attributes);
5145
- return /* @__PURE__ */ M("div", {
5145
+ return /* @__PURE__ */ j("div", {
5146
5146
  className: "flex flex-col",
5147
- children: [/* @__PURE__ */ M("div", {
5147
+ children: [/* @__PURE__ */ j("div", {
5148
5148
  className: "flex items-start justify-between gap-3 border-b px-5 py-4",
5149
- children: [/* @__PURE__ */ M("div", {
5149
+ children: [/* @__PURE__ */ j("div", {
5150
5150
  className: "flex min-w-0 flex-col gap-1.5",
5151
- children: [/* @__PURE__ */ M("div", {
5151
+ children: [/* @__PURE__ */ j("div", {
5152
5152
  className: "flex items-center gap-2",
5153
- children: [/* @__PURE__ */ j(Ss, { status: e.status }), /* @__PURE__ */ j("span", {
5153
+ children: [/* @__PURE__ */ A(Ss, { status: e.status }), /* @__PURE__ */ A("span", {
5154
5154
  className: "text-[11px] font-medium uppercase tracking-wide text-muted-foreground/70",
5155
5155
  children: e.serviceName
5156
5156
  })]
5157
- }), /* @__PURE__ */ j("h3", {
5157
+ }), /* @__PURE__ */ A("h3", {
5158
5158
  className: "truncate text-sm font-semibold tracking-tight",
5159
5159
  children: e.operationName
5160
5160
  })]
5161
- }), /* @__PURE__ */ j(I, {
5161
+ }), /* @__PURE__ */ A(F, {
5162
5162
  variant: "ghost",
5163
5163
  size: "icon",
5164
5164
  className: "size-7 shrink-0",
5165
5165
  onClick: t,
5166
5166
  "aria-label": "Close span detail",
5167
- children: /* @__PURE__ */ j(Ct, { className: "size-4" })
5167
+ children: /* @__PURE__ */ A(wt, { className: "size-4" })
5168
5168
  })]
5169
- }), /* @__PURE__ */ M(ps, {
5169
+ }), /* @__PURE__ */ j(ps, {
5170
5170
  defaultValue: "Overview",
5171
5171
  children: [
5172
- /* @__PURE__ */ j(ms, {
5172
+ /* @__PURE__ */ A(ms, {
5173
5173
  title: "Overview",
5174
- children: /* @__PURE__ */ j($, { items: n })
5174
+ children: /* @__PURE__ */ A($, { items: n })
5175
5175
  }),
5176
- r.length > 0 && /* @__PURE__ */ j(ms, {
5176
+ r.length > 0 && /* @__PURE__ */ A(ms, {
5177
5177
  title: "Attributes",
5178
5178
  badge: r.length,
5179
- children: /* @__PURE__ */ j($, {
5179
+ children: /* @__PURE__ */ A($, {
5180
5180
  wrap: !0,
5181
5181
  items: Ps(e.attributes)
5182
5182
  })
5183
5183
  }),
5184
- e.events.length > 0 && /* @__PURE__ */ j(ms, {
5184
+ e.events.length > 0 && /* @__PURE__ */ A(ms, {
5185
5185
  title: "Events",
5186
5186
  badge: e.events.length,
5187
- children: /* @__PURE__ */ j("div", {
5187
+ children: /* @__PURE__ */ A("div", {
5188
5188
  className: "space-y-3",
5189
- children: e.events.map((e, t) => /* @__PURE__ */ M("div", {
5189
+ children: e.events.map((e, t) => /* @__PURE__ */ j("div", {
5190
5190
  className: "space-y-1",
5191
- children: [/* @__PURE__ */ M("div", {
5191
+ children: [/* @__PURE__ */ j("div", {
5192
5192
  className: "flex items-baseline gap-2",
5193
- children: [/* @__PURE__ */ j("span", {
5193
+ children: [/* @__PURE__ */ A("span", {
5194
5194
  className: "text-sm font-medium",
5195
5195
  children: e.name
5196
- }), /* @__PURE__ */ j("span", {
5196
+ }), /* @__PURE__ */ A("span", {
5197
5197
  className: "text-xs text-muted-foreground",
5198
5198
  children: Cs(e.timestampEpochMs)
5199
5199
  })]
5200
- }), e.attributes && Object.keys(e.attributes).length > 0 && /* @__PURE__ */ j($, {
5200
+ }), e.attributes && Object.keys(e.attributes).length > 0 && /* @__PURE__ */ A($, {
5201
5201
  wrap: !0,
5202
5202
  items: Ps(e.attributes)
5203
5203
  })]
5204
5204
  }, `${e.name}-${t}`))
5205
5205
  })
5206
5206
  }),
5207
- e.payloadLogs.length > 0 && /* @__PURE__ */ j(ms, {
5207
+ e.payloadLogs.length > 0 && /* @__PURE__ */ A(ms, {
5208
5208
  title: "Payload Logs",
5209
5209
  badge: e.payloadLogs.length,
5210
- children: /* @__PURE__ */ j("div", {
5210
+ children: /* @__PURE__ */ A("div", {
5211
5211
  className: "space-y-3",
5212
- children: e.payloadLogs.map((e, t) => /* @__PURE__ */ M("div", {
5212
+ children: e.payloadLogs.map((e, t) => /* @__PURE__ */ j("div", {
5213
5213
  className: "space-y-1",
5214
5214
  children: [
5215
5215
  /* @__PURE__ */ j("div", {
5216
5216
  className: "flex items-baseline gap-2",
5217
- children: /* @__PURE__ */ j("span", {
5217
+ children: [/* @__PURE__ */ A(Ba, { level: e.severity }), /* @__PURE__ */ A("span", {
5218
5218
  className: "text-xs text-muted-foreground",
5219
5219
  children: Cs(e.timestampEpochMs)
5220
- })
5220
+ })]
5221
5221
  }),
5222
- /* @__PURE__ */ j("pre", {
5222
+ /* @__PURE__ */ A("pre", {
5223
5223
  className: "rounded-md border bg-muted/30 p-3 text-xs font-mono whitespace-pre-wrap break-all",
5224
5224
  children: e.body
5225
5225
  }),
5226
- e.attributes && Object.keys(e.attributes).length > 0 && /* @__PURE__ */ j($, {
5226
+ e.attributes && Object.keys(e.attributes).length > 0 && /* @__PURE__ */ A($, {
5227
5227
  wrap: !0,
5228
5228
  items: Ps(e.attributes)
5229
5229
  })
@@ -5270,7 +5270,7 @@ function Bs(e) {
5270
5270
  }
5271
5271
  //#endregion
5272
5272
  //#region src/traces/detail/TraceLineage.tsx
5273
- var Vs = te(() => import("./TraceLineageGraph.js")), Hs = {
5273
+ var Vs = ne(() => import("./TraceLineageGraph.js")), Hs = {
5274
5274
  ok: "healthy",
5275
5275
  error: "error",
5276
5276
  unset: "inactive"
@@ -5296,19 +5296,19 @@ function Us(e) {
5296
5296
  };
5297
5297
  }
5298
5298
  function Ws({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, edgeAnimation: i = "flow", className: a }) {
5299
- let { nodes: o, edges: s } = D(() => e ? Us(e) : {
5299
+ let { nodes: o, edges: s } = E(() => e ? Us(e) : {
5300
5300
  nodes: [],
5301
5301
  edges: []
5302
- }, [e]), c = D(() => Rs(e?.spans ?? []), [e?.spans]), l = w((e) => {
5302
+ }, [e]), c = E(() => Rs(e?.spans ?? []), [e?.spans]), l = C((e) => {
5303
5303
  if (!e) return;
5304
5304
  let n = c.get(e.id);
5305
5305
  n && t?.(n);
5306
5306
  }, [c, t]), u = a ?? "h-[28rem]";
5307
- return /* @__PURE__ */ j(qs, {
5308
- fallback: /* @__PURE__ */ j(Ks, { className: u }),
5309
- children: /* @__PURE__ */ j(x, {
5310
- fallback: /* @__PURE__ */ j(Gs, { className: u }),
5311
- children: /* @__PURE__ */ j(Vs, {
5307
+ return /* @__PURE__ */ A(qs, {
5308
+ fallback: /* @__PURE__ */ A(Ks, { className: u }),
5309
+ children: /* @__PURE__ */ A(x, {
5310
+ fallback: /* @__PURE__ */ A(Gs, { className: u }),
5311
+ children: /* @__PURE__ */ A(Vs, {
5312
5312
  nodes: o,
5313
5313
  edges: s,
5314
5314
  state: r,
@@ -5321,28 +5321,28 @@ function Ws({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, edgeAnimati
5321
5321
  });
5322
5322
  }
5323
5323
  function Gs({ className: e }) {
5324
- return /* @__PURE__ */ j("div", {
5324
+ return /* @__PURE__ */ A("div", {
5325
5325
  className: `flex animate-pulse items-center justify-center rounded-lg border border-border bg-card ${e}`,
5326
5326
  role: "status",
5327
5327
  "aria-label": "Loading lineage graph",
5328
- children: /* @__PURE__ */ j("span", {
5328
+ children: /* @__PURE__ */ A("span", {
5329
5329
  className: "text-sm text-muted-foreground",
5330
5330
  children: "Loading lineage…"
5331
5331
  })
5332
5332
  });
5333
5333
  }
5334
5334
  function Ks({ className: e }) {
5335
- return /* @__PURE__ */ M("div", {
5335
+ return /* @__PURE__ */ j("div", {
5336
5336
  className: `flex flex-col items-center justify-center gap-1 rounded-lg border border-border bg-card p-6 text-center ${e}`,
5337
5337
  role: "alert",
5338
- children: [/* @__PURE__ */ j("p", {
5338
+ children: [/* @__PURE__ */ A("p", {
5339
5339
  className: "text-sm font-medium text-foreground",
5340
5340
  children: "Lineage view unavailable"
5341
- }), /* @__PURE__ */ M("p", {
5341
+ }), /* @__PURE__ */ j("p", {
5342
5342
  className: "max-w-xs text-xs text-muted-foreground",
5343
5343
  children: [
5344
5344
  "The graph couldn't be loaded. Ensure the optional ",
5345
- /* @__PURE__ */ j("code", { children: "@xyflow/react" }),
5345
+ /* @__PURE__ */ A("code", { children: "@xyflow/react" }),
5346
5346
  " dependency is installed."
5347
5347
  ]
5348
5348
  })]
@@ -5375,12 +5375,12 @@ function Ys(e) {
5375
5375
  }));
5376
5376
  }
5377
5377
  function Xs({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, className: i }) {
5378
- let a = D(() => e ? Ys(e) : [], [e]), o = D(() => Rs(e?.spans ?? []), [e?.spans]);
5379
- return /* @__PURE__ */ j(Vt, {
5378
+ let a = E(() => e ? Ys(e) : [], [e]), o = E(() => Rs(e?.spans ?? []), [e?.spans]);
5379
+ return /* @__PURE__ */ A(Ht, {
5380
5380
  spans: a,
5381
5381
  state: r,
5382
5382
  selectedSpanId: n,
5383
- onSpanSelect: w((e) => {
5383
+ onSpanSelect: C((e) => {
5384
5384
  let n = o.get(e.spanId);
5385
5385
  n && t?.(n);
5386
5386
  }, [o, t]),
@@ -5398,35 +5398,35 @@ var Zs = [{
5398
5398
  label: "Lineage"
5399
5399
  }];
5400
5400
  function Qs({ trace: e }) {
5401
- let [t, n] = k("timeline"), [r, i] = k(void 0), a = w((e) => i(e), []), o = w(() => i(void 0), []), s = r && e.spans.includes(r) ? r : void 0;
5402
- return /* @__PURE__ */ M("div", {
5401
+ let [t, n] = O("timeline"), [r, i] = O(void 0), a = C((e) => i(e), []), o = C(() => i(void 0), []), s = r && e.spans.includes(r) ? r : void 0;
5402
+ return /* @__PURE__ */ j("div", {
5403
5403
  className: "flex flex-col gap-5 p-6",
5404
5404
  children: [
5405
- /* @__PURE__ */ j($s, { trace: e }),
5406
- /* @__PURE__ */ M(qe, {
5405
+ /* @__PURE__ */ A($s, { trace: e }),
5406
+ /* @__PURE__ */ j(Je, {
5407
5407
  value: t,
5408
5408
  onValueChange: (e) => n(e),
5409
5409
  className: "flex flex-col gap-4",
5410
5410
  children: [
5411
- /* @__PURE__ */ j(Ye, {
5411
+ /* @__PURE__ */ A(Xe, {
5412
5412
  variant: "line",
5413
5413
  "aria-label": "Trace view",
5414
- children: Zs.map((e) => /* @__PURE__ */ j(Xe, {
5414
+ children: Zs.map((e) => /* @__PURE__ */ A(Ze, {
5415
5415
  value: e.key,
5416
5416
  children: e.label
5417
5417
  }, e.key))
5418
5418
  }),
5419
- /* @__PURE__ */ j(Je, {
5419
+ /* @__PURE__ */ A(Ye, {
5420
5420
  value: "timeline",
5421
- children: /* @__PURE__ */ j(Xs, {
5421
+ children: /* @__PURE__ */ A(Xs, {
5422
5422
  trace: e,
5423
5423
  onSpanClick: a,
5424
5424
  selectedSpanId: s?.spanId
5425
5425
  })
5426
5426
  }),
5427
- /* @__PURE__ */ j(Je, {
5427
+ /* @__PURE__ */ A(Ye, {
5428
5428
  value: "lineage",
5429
- children: /* @__PURE__ */ j(Ws, {
5429
+ children: /* @__PURE__ */ A(Ws, {
5430
5430
  trace: e,
5431
5431
  onSpanClick: a,
5432
5432
  selectedSpanId: s?.spanId
@@ -5434,7 +5434,7 @@ function Qs({ trace: e }) {
5434
5434
  })
5435
5435
  ]
5436
5436
  }),
5437
- /* @__PURE__ */ j(Fs, {
5437
+ /* @__PURE__ */ A(Fs, {
5438
5438
  span: s,
5439
5439
  open: !!s,
5440
5440
  onClose: o
@@ -5461,30 +5461,30 @@ function $s({ trace: e }) {
5461
5461
  value: Cs(e.startTime)
5462
5462
  }
5463
5463
  ];
5464
- return /* @__PURE__ */ M("header", {
5464
+ return /* @__PURE__ */ j("header", {
5465
5465
  className: "flex flex-col gap-3",
5466
5466
  children: [
5467
- /* @__PURE__ */ M("div", {
5467
+ /* @__PURE__ */ j("div", {
5468
5468
  className: "flex items-center gap-3",
5469
- children: [/* @__PURE__ */ j(Ss, { status: e.status }), /* @__PURE__ */ j("h2", {
5469
+ children: [/* @__PURE__ */ A(Ss, { status: e.status }), /* @__PURE__ */ A("h2", {
5470
5470
  className: "truncate text-lg font-semibold tracking-tight",
5471
5471
  children: e.rootOperationName
5472
5472
  })]
5473
5473
  }),
5474
- /* @__PURE__ */ j("dl", {
5474
+ /* @__PURE__ */ A("dl", {
5475
5475
  className: "flex flex-wrap items-center gap-x-6 gap-y-2 text-sm",
5476
- children: t.map((e) => /* @__PURE__ */ M("div", {
5476
+ children: t.map((e) => /* @__PURE__ */ j("div", {
5477
5477
  className: "flex items-baseline gap-1.5",
5478
- children: [/* @__PURE__ */ j("dt", {
5478
+ children: [/* @__PURE__ */ A("dt", {
5479
5479
  className: "text-xs font-medium uppercase tracking-wide text-muted-foreground/70",
5480
5480
  children: e.label
5481
- }), /* @__PURE__ */ j("dd", {
5481
+ }), /* @__PURE__ */ A("dd", {
5482
5482
  className: "font-medium text-foreground",
5483
5483
  children: e.value
5484
5484
  })]
5485
5485
  }, e.label))
5486
5486
  }),
5487
- /* @__PURE__ */ j("p", {
5487
+ /* @__PURE__ */ A("p", {
5488
5488
  className: "font-mono text-xs text-muted-foreground/60",
5489
5489
  children: e.traceId
5490
5490
  })
@@ -5494,21 +5494,21 @@ function $s({ trace: e }) {
5494
5494
  //#endregion
5495
5495
  //#region src/traces/detail/TraceDetailStates.tsx
5496
5496
  function ec() {
5497
- return /* @__PURE__ */ j("div", {
5497
+ return /* @__PURE__ */ A("div", {
5498
5498
  className: "p-6",
5499
- children: /* @__PURE__ */ j(Xs, { state: "loading" })
5499
+ children: /* @__PURE__ */ A(Xs, { state: "loading" })
5500
5500
  });
5501
5501
  }
5502
5502
  function tc({ onRetry: e }) {
5503
- return /* @__PURE__ */ M("div", {
5503
+ return /* @__PURE__ */ j("div", {
5504
5504
  className: "flex flex-col items-center gap-3 p-12",
5505
5505
  children: [
5506
- /* @__PURE__ */ j(et, { className: "size-8 text-destructive" }),
5507
- /* @__PURE__ */ j("p", {
5506
+ /* @__PURE__ */ A(tt, { className: "size-8 text-destructive" }),
5507
+ /* @__PURE__ */ A("p", {
5508
5508
  className: "text-sm text-destructive",
5509
5509
  children: "Failed to load trace details"
5510
5510
  }),
5511
- /* @__PURE__ */ j(I, {
5511
+ /* @__PURE__ */ A(F, {
5512
5512
  variant: "outline",
5513
5513
  size: "sm",
5514
5514
  onClick: e,
@@ -5518,16 +5518,16 @@ function tc({ onRetry: e }) {
5518
5518
  });
5519
5519
  }
5520
5520
  function nc({ onBack: e }) {
5521
- return /* @__PURE__ */ M("div", {
5521
+ return /* @__PURE__ */ j("div", {
5522
5522
  className: "flex flex-col items-center justify-center gap-4 p-12 text-center",
5523
- children: [/* @__PURE__ */ j("p", {
5523
+ children: [/* @__PURE__ */ A("p", {
5524
5524
  className: "text-sm font-medium text-muted-foreground",
5525
5525
  children: "Trace not found"
5526
- }), /* @__PURE__ */ M(I, {
5526
+ }), /* @__PURE__ */ j(F, {
5527
5527
  variant: "outline",
5528
5528
  size: "sm",
5529
5529
  onClick: e,
5530
- children: [/* @__PURE__ */ j(tt, { className: "mr-1.5 size-4" }), "Back to traces"]
5530
+ children: [/* @__PURE__ */ A(nt, { className: "mr-1.5 size-4" }), "Back to traces"]
5531
5531
  })]
5532
5532
  });
5533
5533
  }
@@ -5538,17 +5538,17 @@ function rc({ apiId: e }) {
5538
5538
  apiId: r,
5539
5539
  traceId: i
5540
5540
  }), l = () => n(-1);
5541
- return /* @__PURE__ */ M("div", {
5541
+ return /* @__PURE__ */ j("div", {
5542
5542
  className: "flex flex-col",
5543
- children: [/* @__PURE__ */ j("div", {
5543
+ children: [/* @__PURE__ */ A("div", {
5544
5544
  className: "border-b px-6 py-3",
5545
- children: /* @__PURE__ */ M(I, {
5545
+ children: /* @__PURE__ */ j(F, {
5546
5546
  variant: "ghost",
5547
5547
  size: "sm",
5548
5548
  onClick: l,
5549
- children: [/* @__PURE__ */ j(tt, { className: "mr-1.5 size-4" }), "Back to traces"]
5549
+ children: [/* @__PURE__ */ A(nt, { className: "mr-1.5 size-4" }), "Back to traces"]
5550
5550
  })
5551
- }), o ? /* @__PURE__ */ j(ec, {}) : s ? /* @__PURE__ */ j(tc, { onRetry: () => c() }) : a ? /* @__PURE__ */ j(Qs, { trace: a }) : /* @__PURE__ */ j(nc, { onBack: l })]
5551
+ }), o ? /* @__PURE__ */ A(ec, {}) : s ? /* @__PURE__ */ A(tc, { onRetry: () => c() }) : a ? /* @__PURE__ */ A(Qs, { trace: a }) : /* @__PURE__ */ A(nc, { onBack: l })]
5552
5552
  });
5553
5553
  }
5554
5554
  //#endregion
@@ -5559,12 +5559,12 @@ function ic({ apiId: e, traceId: t, onClose: n, onNavigatePrev: r, onNavigateNex
5559
5559
  traceId: t,
5560
5560
  keepPreviousData: !0
5561
5561
  });
5562
- return /* @__PURE__ */ j(os, {
5562
+ return /* @__PURE__ */ A(os, {
5563
5563
  open: !!t,
5564
5564
  onClose: n,
5565
5565
  onNavigatePrev: r,
5566
5566
  onNavigateNext: i,
5567
- children: t ? s ? /* @__PURE__ */ j(tc, { onRetry: () => c() }) : a ? /* @__PURE__ */ j(Qs, { trace: a }) : o ? /* @__PURE__ */ j(ec, {}) : null : a ? /* @__PURE__ */ j(Qs, { trace: a }) : null
5567
+ children: t ? s ? /* @__PURE__ */ A(tc, { onRetry: () => c() }) : a ? /* @__PURE__ */ A(Qs, { trace: a }) : o ? /* @__PURE__ */ A(ec, {}) : null : a ? /* @__PURE__ */ A(Qs, { trace: a }) : null
5568
5568
  });
5569
5569
  }
5570
5570
  //#endregion
@@ -5929,6 +5929,24 @@ function Nc(e) {
5929
5929
  return e / 1e6;
5930
5930
  }
5931
5931
  function Pc(e) {
5932
+ return e;
5933
+ }
5934
+ function Fc(e) {
5935
+ return {
5936
+ name: e.name,
5937
+ timestampEpochMs: e.timestampEpochMs,
5938
+ attributes: Pc(e.attributes)
5939
+ };
5940
+ }
5941
+ function Ic(e) {
5942
+ return {
5943
+ timestampEpochMs: e.timestampEpochMs,
5944
+ body: e.body,
5945
+ severity: e.severity,
5946
+ attributes: Pc(e.attributes)
5947
+ };
5948
+ }
5949
+ function Lc(e) {
5932
5950
  let t = Nc(e.durationNanos);
5933
5951
  return {
5934
5952
  traceId: e.traceId,
@@ -5940,7 +5958,7 @@ function Pc(e) {
5940
5958
  status: e.status
5941
5959
  };
5942
5960
  }
5943
- function Fc(e) {
5961
+ function Rc(e) {
5944
5962
  let t = e.startTimeEpochMs, n = Nc(e.durationNanos);
5945
5963
  return {
5946
5964
  traceId: e.traceId,
@@ -5954,21 +5972,23 @@ function Fc(e) {
5954
5972
  status: e.status,
5955
5973
  kind: e.kind,
5956
5974
  attributes: e.attributes,
5957
- events: e.events,
5958
- payloadLogs: e.payloadLogs
5975
+ events: e.events.map(Fc),
5976
+ payloadLogs: e.payloadLogs.map(Ic)
5959
5977
  };
5960
5978
  }
5961
- function Ic(e) {
5979
+ function zc(e) {
5980
+ let t = e.spans.map(Rc);
5962
5981
  return {
5963
- ...Pc(e),
5964
- spans: e.spans.map(Fc)
5982
+ ...Lc(e),
5983
+ spanCount: t.length,
5984
+ spans: t
5965
5985
  };
5966
5986
  }
5967
- function Lc(e) {
5987
+ function Bc(e) {
5968
5988
  return e.endsWith("/search") ? e.slice(0, -7) : e;
5969
5989
  }
5970
- function Rc(e, t) {
5971
- let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.searchPath ?? Mc, a = Lc(i);
5990
+ function Vc(e, t) {
5991
+ let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.searchPath ?? Mc, a = Bc(i);
5972
5992
  function o(e) {
5973
5993
  let n = {
5974
5994
  method: e,
@@ -6001,7 +6021,7 @@ function Rc(e, t) {
6001
6021
  if (!u.ok) throw Error(`[gamma-lib-observability] HTTP ${u.status} on POST ${i}`);
6002
6022
  let d = await u.json();
6003
6023
  return {
6004
- entries: (d.data ?? []).map(Pc),
6024
+ entries: (d.data ?? []).map(Lc),
6005
6025
  totalCount: d.pagination?.totalCount,
6006
6026
  page: d.pagination?.page,
6007
6027
  pageCount: d.pagination?.pageCount
@@ -6012,18 +6032,18 @@ function Rc(e, t) {
6012
6032
  t.signal && (i.signal = t.signal);
6013
6033
  let s = await n(r, i);
6014
6034
  if (!s.ok) throw Error(`[gamma-lib-observability] HTTP ${s.status} on GET ${a}/${t.traceId}`);
6015
- return Ic(await s.json());
6035
+ return zc(await s.json());
6016
6036
  }
6017
6037
  };
6018
6038
  }
6019
6039
  //#endregion
6020
6040
  //#region src/routing/DashboardListPage.tsx
6021
- function zc({ templates: e }) {
6022
- let t = a(), n = D(() => Aa(e, t), [e, t]), r = D(() => [{
6041
+ function Hc({ templates: e }) {
6042
+ let t = a(), n = E(() => Aa(e, t), [e, t]), r = E(() => [{
6023
6043
  id: "name",
6024
6044
  accessorKey: "label",
6025
6045
  header: "Name",
6026
- cell: ({ row: e }) => /* @__PURE__ */ j(Wt, {
6046
+ cell: ({ row: e }) => /* @__PURE__ */ A(Gt, {
6027
6047
  to: `./${e.original.id}`,
6028
6048
  className: "font-medium hover:underline",
6029
6049
  children: e.original.label
@@ -6032,17 +6052,17 @@ function zc({ templates: e }) {
6032
6052
  id: "description",
6033
6053
  accessorKey: "description",
6034
6054
  header: "Description",
6035
- cell: ({ row: e }) => /* @__PURE__ */ j("span", {
6055
+ cell: ({ row: e }) => /* @__PURE__ */ A("span", {
6036
6056
  className: "text-muted-foreground",
6037
6057
  children: e.original.description ?? "—"
6038
6058
  })
6039
6059
  }], []);
6040
- return /* @__PURE__ */ M("div", {
6060
+ return /* @__PURE__ */ j("div", {
6041
6061
  className: "flex flex-col gap-4 p-4",
6042
- children: [/* @__PURE__ */ j("h1", {
6062
+ children: [/* @__PURE__ */ A("h1", {
6043
6063
  className: "text-lg font-semibold",
6044
6064
  children: "Dashboards"
6045
- }), /* @__PURE__ */ j(be, {
6065
+ }), /* @__PURE__ */ A(xe, {
6046
6066
  columns: r,
6047
6067
  data: n,
6048
6068
  emptyMessage: "No dashboards available.",
@@ -6052,7 +6072,7 @@ function zc({ templates: e }) {
6052
6072
  }
6053
6073
  //#endregion
6054
6074
  //#region src/routing/detail-filter.ts
6055
- function Bc(e, t, n) {
6075
+ function Uc(e, t, n) {
6056
6076
  let r = e.filter((e) => e.field !== t);
6057
6077
  return r.push({
6058
6078
  field: t,
@@ -6061,7 +6081,7 @@ function Bc(e, t, n) {
6061
6081
  value: [n]
6062
6082
  }), r;
6063
6083
  }
6064
- function Vc(e, t) {
6084
+ function Wc(e, t) {
6065
6085
  let n = qn({
6066
6086
  conditions: [...e],
6067
6087
  timeRange: t
@@ -6070,9 +6090,9 @@ function Vc(e, t) {
6070
6090
  }
6071
6091
  //#endregion
6072
6092
  //#region src/routing/LogsRouteElement.tsx
6073
- function Hc({ columns: e, getRowId: t, onRowClickOverride: n, detailConfig: r, detailMode: i, pageSize: a, scopeFilterField: o, columnVisibilityStorageKey: s, analyticsFilterMapping: c }) {
6093
+ function Gc({ columns: e, getRowId: t, onRowClickOverride: n, detailConfig: r, detailMode: i, pageSize: a, scopeFilterField: o, columnVisibilityStorageKey: s, analyticsFilterMapping: c }) {
6074
6094
  let l = !n && !!r && !!t;
6075
- return l && i === "drawer" && r && t ? /* @__PURE__ */ j(Uc, {
6095
+ return l && i === "drawer" && r && t ? /* @__PURE__ */ A(Kc, {
6076
6096
  columns: e,
6077
6097
  getRowId: t,
6078
6098
  detailConfig: r,
@@ -6080,7 +6100,7 @@ function Hc({ columns: e, getRowId: t, onRowClickOverride: n, detailConfig: r, d
6080
6100
  scopeFilterField: o,
6081
6101
  columnVisibilityStorageKey: s,
6082
6102
  analyticsFilterMapping: c
6083
- }) : /* @__PURE__ */ j(Wc, {
6103
+ }) : /* @__PURE__ */ A(qc, {
6084
6104
  columns: e,
6085
6105
  getRowId: t,
6086
6106
  onRowClickOverride: n,
@@ -6091,21 +6111,21 @@ function Hc({ columns: e, getRowId: t, onRowClickOverride: n, detailConfig: r, d
6091
6111
  analyticsFilterMapping: c
6092
6112
  });
6093
6113
  }
6094
- function Uc({ columns: e, getRowId: t, detailConfig: n, pageSize: r, scopeFilterField: i, columnVisibilityStorageKey: a, analyticsFilterMapping: o }) {
6095
- let [s, c] = k(void 0), [l, u] = k([]), { filters: d, setFilters: f } = La(), p = D(() => s ? l.findIndex((e) => t(e) === s) : -1, [
6114
+ function Kc({ columns: e, getRowId: t, detailConfig: n, pageSize: r, scopeFilterField: i, columnVisibilityStorageKey: a, analyticsFilterMapping: o }) {
6115
+ let [s, c] = O(void 0), [l, u] = O([]), { filters: d, setFilters: f } = La(), p = E(() => s ? l.findIndex((e) => t(e) === s) : -1, [
6096
6116
  s,
6097
6117
  l,
6098
6118
  t
6099
- ]), m = w((e) => c(t(e)), [t]), h = w((e, t) => {
6100
- f(Bc(d, e, t)), c(void 0);
6101
- }, [d, f]), g = w(() => {
6119
+ ]), m = C((e) => c(t(e)), [t]), h = C((e, t) => {
6120
+ f(Uc(d, e, t)), c(void 0);
6121
+ }, [d, f]), g = C(() => {
6102
6122
  let e = l[p - 1];
6103
6123
  e && c(t(e));
6104
6124
  }, [
6105
6125
  l,
6106
6126
  p,
6107
6127
  t
6108
- ]), _ = w(() => {
6128
+ ]), _ = C(() => {
6109
6129
  let e = l[p + 1];
6110
6130
  e && c(t(e));
6111
6131
  }, [
@@ -6113,7 +6133,7 @@ function Uc({ columns: e, getRowId: t, detailConfig: n, pageSize: r, scopeFilter
6113
6133
  p,
6114
6134
  t
6115
6135
  ]);
6116
- return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(go, {
6136
+ return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(go, {
6117
6137
  columns: e,
6118
6138
  onRowClick: m,
6119
6139
  getRowId: t,
@@ -6122,7 +6142,7 @@ function Uc({ columns: e, getRowId: t, detailConfig: n, pageSize: r, scopeFilter
6122
6142
  scopeFilterField: i,
6123
6143
  columnVisibilityStorageKey: a,
6124
6144
  analyticsFilterMapping: o
6125
- }), /* @__PURE__ */ j(vs, {
6145
+ }), /* @__PURE__ */ A(vs, {
6126
6146
  config: n,
6127
6147
  logId: s,
6128
6148
  onClose: () => c(void 0),
@@ -6133,11 +6153,11 @@ function Uc({ columns: e, getRowId: t, detailConfig: n, pageSize: r, scopeFilter
6133
6153
  hasNext: p >= 0 && p < l.length - 1
6134
6154
  })] });
6135
6155
  }
6136
- function Wc({ columns: e, getRowId: t, onRowClickOverride: n, builtInDetailEnabled: r, pageSize: i, scopeFilterField: a, columnVisibilityStorageKey: o, analyticsFilterMapping: s }) {
6156
+ function qc({ columns: e, getRowId: t, onRowClickOverride: n, builtInDetailEnabled: r, pageSize: i, scopeFilterField: a, columnVisibilityStorageKey: o, analyticsFilterMapping: s }) {
6137
6157
  let c = Yt(), { pathname: l } = Jt();
6138
- return /* @__PURE__ */ j(go, {
6158
+ return /* @__PURE__ */ A(go, {
6139
6159
  columns: e,
6140
- onRowClick: D(() => {
6160
+ onRowClick: E(() => {
6141
6161
  if (n) return n;
6142
6162
  if (r && t) {
6143
6163
  let e = l.replace(/\/$/, "");
@@ -6159,16 +6179,16 @@ function Wc({ columns: e, getRowId: t, onRowClickOverride: n, builtInDetailEnabl
6159
6179
  }
6160
6180
  //#endregion
6161
6181
  //#region src/routing/ObservabilityDashboardPage.tsx
6162
- function Gc(e) {
6182
+ function Jc(e) {
6163
6183
  let [t] = Zt(), n = t.get("live");
6164
- return /* @__PURE__ */ j(sn, {
6184
+ return /* @__PURE__ */ A(sn, {
6165
6185
  config: { defaultEnabled: n === "1" || n === "true" },
6166
- children: /* @__PURE__ */ j(Kc, { ...e })
6186
+ children: /* @__PURE__ */ A(Yc, { ...e })
6167
6187
  });
6168
6188
  }
6169
- function Kc({ templates: e, scopeFilterField: t, externalLinks: n }) {
6170
- let { dashboardId: r } = Xt(), i = a(), o = ln(), [, s] = Zt(), c = D(() => Aa(e, i), [e, i]).find((e) => e.id === r), { timeRange: l, filters: u, setTimeRange: d, setFilters: f } = La(), p = kn(u, fn()), m = o?.isLive ?? !1;
6171
- E(() => {
6189
+ function Yc({ templates: e, scopeFilterField: t, externalLinks: n }) {
6190
+ let { dashboardId: r } = Xt(), i = a(), o = ln(), [, s] = Zt(), c = E(() => Aa(e, i), [e, i]).find((e) => e.id === r), { timeRange: l, filters: u, setTimeRange: d, setFilters: f } = La(), p = kn(u, fn()), m = o?.isLive ?? !1;
6191
+ T(() => {
6172
6192
  s((e) => {
6173
6193
  let t = e.has("live");
6174
6194
  if (m && !t) {
@@ -6182,43 +6202,43 @@ function Kc({ templates: e, scopeFilterField: t, externalLinks: n }) {
6182
6202
  return e;
6183
6203
  }, { replace: !0 });
6184
6204
  }, [m, s]);
6185
- let h = w((e) => {
6205
+ let h = C((e) => {
6186
6206
  e.type === "absolute" && o?.isLive && o.toggle(), d(e);
6187
- }, [d, o]), g = D(() => c ? ka(c, { capabilities: i }) : null, [c, i]);
6188
- return !c || !g ? /* @__PURE__ */ j("div", {
6207
+ }, [d, o]), g = E(() => c ? ka(c, { capabilities: i }) : null, [c, i]);
6208
+ return !c || !g ? /* @__PURE__ */ A("div", {
6189
6209
  className: "flex items-center justify-center p-8 text-muted-foreground",
6190
6210
  children: r ? `Dashboard "${r}" not found.` : "No dashboard available."
6191
- }) : /* @__PURE__ */ M("div", {
6211
+ }) : /* @__PURE__ */ j("div", {
6192
6212
  className: "space-y-4 p-4",
6193
6213
  children: [
6194
- /* @__PURE__ */ j("h1", {
6214
+ /* @__PURE__ */ A("h1", {
6195
6215
  className: "text-lg font-semibold",
6196
6216
  children: c.label
6197
6217
  }),
6198
- /* @__PURE__ */ M("div", {
6218
+ /* @__PURE__ */ j("div", {
6199
6219
  className: "flex flex-wrap items-center gap-3",
6200
6220
  children: [
6201
- /* @__PURE__ */ j("div", {
6221
+ /* @__PURE__ */ A("div", {
6202
6222
  className: "flex flex-1 items-center gap-2",
6203
- children: /* @__PURE__ */ j(ci, {
6223
+ children: /* @__PURE__ */ A(ci, {
6204
6224
  filters: p,
6205
6225
  onFiltersChange: f,
6206
6226
  scopeFilterField: t
6207
6227
  })
6208
6228
  }),
6209
- n?.map((e) => /* @__PURE__ */ M("a", {
6229
+ n?.map((e) => /* @__PURE__ */ j("a", {
6210
6230
  href: typeof e.href == "function" ? e.href(u) : e.href,
6211
6231
  className: "text-sm text-muted-foreground transition-colors hover:text-foreground",
6212
6232
  children: [e.label, " →"]
6213
6233
  }, e.label)),
6214
- /* @__PURE__ */ j(B, { children: /* @__PURE__ */ j(Ia, {}) }),
6215
- /* @__PURE__ */ j(rr, {
6234
+ /* @__PURE__ */ A(z, { children: /* @__PURE__ */ A(Ia, {}) }),
6235
+ /* @__PURE__ */ A(rr, {
6216
6236
  value: l,
6217
6237
  onChange: h
6218
6238
  })
6219
6239
  ]
6220
6240
  }),
6221
- /* @__PURE__ */ j(wa, {
6241
+ /* @__PURE__ */ A(wa, {
6222
6242
  dashboard: g,
6223
6243
  timeRange: l,
6224
6244
  filters: u
@@ -6228,26 +6248,26 @@ function Kc({ templates: e, scopeFilterField: t, externalLinks: n }) {
6228
6248
  }
6229
6249
  //#endregion
6230
6250
  //#region src/routing/TracesRouteElement.tsx
6231
- function qc({ detailMode: e, pageSize: t, columnVisibilityStorageKey: n }) {
6232
- return j(e === "drawer" ? Jc : Yc, {
6251
+ function Xc({ detailMode: e, pageSize: t, columnVisibilityStorageKey: n }) {
6252
+ return A(e === "drawer" ? Zc : Qc, {
6233
6253
  pageSize: t,
6234
6254
  columnVisibilityStorageKey: n
6235
6255
  });
6236
6256
  }
6237
- function Jc({ pageSize: e, columnVisibilityStorageKey: t }) {
6238
- let { apiId: n } = Xt(), [r, i] = k(void 0), [a, o] = k([]), s = D(() => r ? a.findIndex((e) => e.traceId === r) : -1, [r, a]), c = w((e) => i(e.traceId), []), l = w(() => i(void 0), []), u = w(() => {
6257
+ function Zc({ pageSize: e, columnVisibilityStorageKey: t }) {
6258
+ let { apiId: n } = Xt(), [r, i] = O(void 0), [a, o] = O([]), s = E(() => r ? a.findIndex((e) => e.traceId === r) : -1, [r, a]), c = C((e) => i(e.traceId), []), l = C(() => i(void 0), []), u = C(() => {
6239
6259
  let e = a[s - 1];
6240
6260
  e && i(e.traceId);
6241
- }, [a, s]), d = w(() => {
6261
+ }, [a, s]), d = C(() => {
6242
6262
  let e = a[s + 1];
6243
6263
  e && i(e.traceId);
6244
6264
  }, [a, s]);
6245
- return /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(As, {
6265
+ return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(As, {
6246
6266
  onRowClick: c,
6247
6267
  onPageDataChange: o,
6248
6268
  pageSize: e,
6249
6269
  columnVisibilityStorageKey: t
6250
- }), /* @__PURE__ */ j(ic, {
6270
+ }), /* @__PURE__ */ A(ic, {
6251
6271
  apiId: n ?? "",
6252
6272
  traceId: r,
6253
6273
  onClose: l,
@@ -6255,10 +6275,10 @@ function Jc({ pageSize: e, columnVisibilityStorageKey: t }) {
6255
6275
  onNavigateNext: d
6256
6276
  })] });
6257
6277
  }
6258
- function Yc({ pageSize: e, columnVisibilityStorageKey: t }) {
6278
+ function Qc({ pageSize: e, columnVisibilityStorageKey: t }) {
6259
6279
  let n = Yt(), { pathname: r } = Jt(), { apiId: i } = Xt();
6260
- return /* @__PURE__ */ j(As, {
6261
- onRowClick: D(() => {
6280
+ return /* @__PURE__ */ A(As, {
6281
+ onRowClick: E(() => {
6262
6282
  if (!i) return;
6263
6283
  let e = r.replace(/\/$/, "");
6264
6284
  return (t) => n(`${e}/${t.traceId}`);
@@ -6273,156 +6293,156 @@ function Yc({ pageSize: e, columnVisibilityStorageKey: t }) {
6273
6293
  }
6274
6294
  //#endregion
6275
6295
  //#region src/routing/ObservabilityRoutes.tsx
6276
- var Xc = [];
6277
- function Zc(e, t, n) {
6278
- return e ? /* @__PURE__ */ j(g, {
6296
+ var $c = [];
6297
+ function el(e, t, n) {
6298
+ return e ? /* @__PURE__ */ A(g, {
6279
6299
  dataSource: t,
6280
6300
  children: n
6281
6301
  }) : n;
6282
6302
  }
6283
- function Qc(e, t, n) {
6284
- return e ? /* @__PURE__ */ j(s, {
6303
+ function tl(e, t, n) {
6304
+ return e ? /* @__PURE__ */ A(s, {
6285
6305
  dataSource: t,
6286
6306
  children: n
6287
6307
  }) : n;
6288
6308
  }
6289
- function $c({ children: e }) {
6290
- let t = fn(), { data: n, isLoading: r, isError: i } = P({
6309
+ function nl({ children: e }) {
6310
+ let t = fn(), { data: n, isLoading: r, isError: i } = N({
6291
6311
  queryKey: ["observability", "filter-definitions"],
6292
6312
  queryFn: ({ signal: e }) => t.fetchFilterDefinitions(e),
6293
6313
  enabled: !!t,
6294
6314
  staleTime: 300 * 1e3
6295
6315
  });
6296
- return r ? /* @__PURE__ */ j(el, {}) : i || !n ? /* @__PURE__ */ j(A, { children: e([]) }) : /* @__PURE__ */ j(A, { children: e(n) });
6316
+ return r ? /* @__PURE__ */ A(rl, {}) : i || !n ? /* @__PURE__ */ A(k, { children: e([]) }) : /* @__PURE__ */ A(k, { children: e(n) });
6297
6317
  }
6298
- function el() {
6299
- return /* @__PURE__ */ M("div", {
6318
+ function rl() {
6319
+ return /* @__PURE__ */ j("div", {
6300
6320
  className: "flex items-center gap-2 p-4",
6301
6321
  children: [
6302
- /* @__PURE__ */ j("div", { className: "h-8 w-48 animate-pulse rounded bg-muted" }),
6303
- /* @__PURE__ */ j("div", { className: "h-8 w-32 animate-pulse rounded bg-muted" }),
6304
- /* @__PURE__ */ j("div", { className: "h-8 w-24 animate-pulse rounded bg-muted" })
6322
+ /* @__PURE__ */ A("div", { className: "h-8 w-48 animate-pulse rounded bg-muted" }),
6323
+ /* @__PURE__ */ A("div", { className: "h-8 w-32 animate-pulse rounded bg-muted" }),
6324
+ /* @__PURE__ */ A("div", { className: "h-8 w-24 animate-pulse rounded bg-muted" })
6305
6325
  ]
6306
6326
  });
6307
6327
  }
6308
- function tl({ templates: e, contextFilters: t }) {
6309
- let n = a(), r = D(() => Aa(e, n), [e, n]);
6310
- return r.length === 1 && r[0] ? /* @__PURE__ */ j(Gt, {
6328
+ function il({ templates: e, contextFilters: t }) {
6329
+ let n = a(), r = E(() => Aa(e, n), [e, n]);
6330
+ return r.length === 1 && r[0] ? /* @__PURE__ */ A(Kt, {
6311
6331
  to: `./${r[0].id}`,
6312
6332
  replace: !0
6313
- }) : /* @__PURE__ */ j(bn, {
6333
+ }) : /* @__PURE__ */ A(bn, {
6314
6334
  filters: t,
6315
- children: /* @__PURE__ */ j(zc, { templates: e })
6335
+ children: /* @__PURE__ */ A(Hc, { templates: e })
6316
6336
  });
6317
6337
  }
6318
- function nl({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage: s, logsDataSource: l, logsColumns: u, logsOnRowClick: d, logsGetRowId: f, logsDetailBasePath: p, tracesDataSource: g, config: _ }) {
6319
- let v = hn(), y = n ?? v, b = a(), x = c(), S = D(() => Tc(e, y), [e, y]), C = r !== void 0 || x === null, ee = r ?? x ?? S, te = D(() => Oc(e, y), [e, y]), ne = i(), w = D(() => _.features.logs?.enabled ? jc(e, y) : void 0, [
6338
+ function al({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage: s, logsDataSource: l, logsColumns: u, logsOnRowClick: d, logsGetRowId: f, logsDetailBasePath: p, tracesDataSource: g, config: _ }) {
6339
+ let v = hn(), y = n ?? v, b = a(), x = c(), S = E(() => Tc(e, y), [e, y]), ee = r !== void 0 || x === null, te = r ?? x ?? S, ne = E(() => Oc(e, y), [e, y]), re = i(), C = E(() => _.features.logs?.enabled ? jc(e, y) : void 0, [
6320
6340
  e,
6321
6341
  y,
6322
6342
  _.features.logs?.enabled
6323
- ]), T = l ?? ne ?? w, E = l !== void 0 || ne === null, re = t(), O = D(() => _.features.tracing?.enabled ? Rc(e, y) : void 0, [
6343
+ ]), w = l ?? re ?? C, T = l !== void 0 || re === null, ie = t(), D = E(() => _.features.tracing?.enabled ? Vc(e, y) : void 0, [
6324
6344
  e,
6325
6345
  y,
6326
6346
  _.features.tracing?.enabled
6327
- ]), k = g ?? re ?? O, ie = g !== void 0 || re === null, N = _.features.dashboards, P = _.features.logs, ae = _.features.tracing, oe = N?.contextFilters ?? Xc, se = P?.contextFilters ?? Xc, ce = P?.enabled, F = P?.logDetail, I = P?.analyticsFilterMapping, le = D(() => {
6328
- if (ce) return F || Xo({
6347
+ ]), O = g ?? ie ?? D, ae = g !== void 0 || ie === null, M = _.features.dashboards, N = _.features.logs, oe = _.features.tracing, se = M?.contextFilters ?? $c, ce = N?.contextFilters ?? $c, le = N?.enabled, P = N?.logDetail, F = N?.analyticsFilterMapping, ue = E(() => {
6348
+ if (le) return P || Xo({
6329
6349
  basePath: p ?? "",
6330
- contextChart: { analyticsFilterMapping: I }
6350
+ contextChart: { analyticsFilterMapping: F }
6331
6351
  });
6332
6352
  }, [
6333
- ce,
6353
+ le,
6354
+ P,
6334
6355
  F,
6335
- I,
6336
6356
  p
6337
- ]), ue = P?.detailMode ?? "drawer", de = (e) => /* @__PURE__ */ j(h, {
6357
+ ]), de = N?.detailMode ?? "drawer", fe = (e) => /* @__PURE__ */ A(h, {
6338
6358
  providers: e,
6339
- children: /* @__PURE__ */ M(qt, { children: [
6340
- N?.enabled && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(Kt, {
6359
+ children: /* @__PURE__ */ j(qt, { children: [
6360
+ M?.enabled && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(U, {
6341
6361
  path: "dashboards",
6342
- element: /* @__PURE__ */ j(tl, {
6343
- templates: N.templates,
6344
- contextFilters: oe
6362
+ element: /* @__PURE__ */ A(il, {
6363
+ templates: M.templates,
6364
+ contextFilters: se
6345
6365
  })
6346
- }), /* @__PURE__ */ j(Kt, {
6366
+ }), /* @__PURE__ */ A(U, {
6347
6367
  path: "dashboards/:dashboardId",
6348
- element: /* @__PURE__ */ j(bn, {
6349
- filters: oe,
6350
- children: /* @__PURE__ */ j(Gc, {
6351
- templates: N.templates,
6352
- scopeFilterField: N.scopeFilterField,
6353
- externalLinks: N.externalLinks
6368
+ element: /* @__PURE__ */ A(bn, {
6369
+ filters: se,
6370
+ children: /* @__PURE__ */ A(Jc, {
6371
+ templates: M.templates,
6372
+ scopeFilterField: M.scopeFilterField,
6373
+ externalLinks: M.externalLinks
6354
6374
  })
6355
6375
  })
6356
6376
  })] }),
6357
- _.features.logs?.enabled && /* @__PURE__ */ j(Kt, {
6377
+ _.features.logs?.enabled && /* @__PURE__ */ A(U, {
6358
6378
  path: "logs",
6359
- element: /* @__PURE__ */ j(bn, {
6360
- filters: se,
6361
- children: s ?? (T && u ? Zc(E, T, /* @__PURE__ */ j(Hc, {
6379
+ element: /* @__PURE__ */ A(bn, {
6380
+ filters: ce,
6381
+ children: s ?? (w && u ? el(T, w, /* @__PURE__ */ A(Gc, {
6362
6382
  columns: u,
6363
6383
  getRowId: f,
6364
6384
  onRowClickOverride: d,
6365
- detailConfig: le,
6366
- detailMode: ue,
6367
- pageSize: P?.pageSize,
6368
- scopeFilterField: P?.scopeFilterField,
6369
- columnVisibilityStorageKey: P?.columnVisibilityStorageKey,
6370
- analyticsFilterMapping: P?.analyticsFilterMapping
6371
- })) : /* @__PURE__ */ j("div", {
6385
+ detailConfig: ue,
6386
+ detailMode: de,
6387
+ pageSize: N?.pageSize,
6388
+ scopeFilterField: N?.scopeFilterField,
6389
+ columnVisibilityStorageKey: N?.columnVisibilityStorageKey,
6390
+ analyticsFilterMapping: N?.analyticsFilterMapping
6391
+ })) : /* @__PURE__ */ A("div", {
6372
6392
  className: "flex items-center justify-center p-8 text-muted-foreground",
6373
6393
  children: "Logs feature enabled but no page provided."
6374
6394
  }))
6375
6395
  })
6376
6396
  }),
6377
- _.features.logs?.enabled && le && T && /* @__PURE__ */ j(Kt, {
6397
+ _.features.logs?.enabled && ue && w && /* @__PURE__ */ A(U, {
6378
6398
  path: "logs/:logId",
6379
- element: /* @__PURE__ */ j(bn, {
6380
- filters: se,
6381
- children: Zc(E, T, /* @__PURE__ */ j(rl, { config: le }))
6399
+ element: /* @__PURE__ */ A(bn, {
6400
+ filters: ce,
6401
+ children: el(T, w, /* @__PURE__ */ A(ol, { config: ue }))
6382
6402
  })
6383
6403
  }),
6384
- ae?.enabled && b["observability.traces.read"] && k && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j(Kt, {
6404
+ oe?.enabled && b["observability.traces.read"] && O && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(U, {
6385
6405
  path: "tracing/:apiId",
6386
- element: Qc(ie, k, /* @__PURE__ */ j(qc, {
6387
- detailMode: ae.detailMode ?? "page",
6388
- pageSize: ae.pageSize,
6389
- columnVisibilityStorageKey: ae.columnVisibilityStorageKey
6406
+ element: tl(ae, O, /* @__PURE__ */ A(Xc, {
6407
+ detailMode: oe.detailMode ?? "page",
6408
+ pageSize: oe.pageSize,
6409
+ columnVisibilityStorageKey: oe.columnVisibilityStorageKey
6390
6410
  }))
6391
- }), /* @__PURE__ */ j(Kt, {
6411
+ }), /* @__PURE__ */ A(U, {
6392
6412
  path: "tracing/:apiId/:traceId",
6393
- element: Qc(ie, k, /* @__PURE__ */ j(rc, {}))
6413
+ element: tl(ae, O, /* @__PURE__ */ A(rc, {}))
6394
6414
  })] }),
6395
- /* @__PURE__ */ j(Kt, {
6415
+ /* @__PURE__ */ A(U, {
6396
6416
  path: "*",
6397
- element: N?.enabled ? /* @__PURE__ */ j(Gt, {
6417
+ element: M?.enabled ? /* @__PURE__ */ A(Kt, {
6398
6418
  to: "dashboards",
6399
6419
  replace: !0
6400
- }) : _.features.logs?.enabled ? /* @__PURE__ */ j(Gt, {
6420
+ }) : _.features.logs?.enabled ? /* @__PURE__ */ A(Kt, {
6401
6421
  to: "logs",
6402
6422
  replace: !0
6403
- }) : /* @__PURE__ */ j("div", {
6423
+ }) : /* @__PURE__ */ A("div", {
6404
6424
  className: "flex items-center justify-center p-8 text-muted-foreground",
6405
6425
  children: "No observability features enabled."
6406
6426
  })
6407
6427
  })
6408
6428
  ] })
6409
- }), fe = N?.enabled || P?.enabled ? /* @__PURE__ */ j(dn, {
6410
- source: te,
6411
- children: o ? de(o) : /* @__PURE__ */ j($c, { children: (e) => de(e) })
6412
- }) : de(o ?? []);
6413
- return C ? /* @__PURE__ */ j(m, {
6414
- dataSource: ee,
6415
- children: fe
6416
- }) : fe;
6417
- }
6418
- function rl({ config: e }) {
6429
+ }), pe = M?.enabled || N?.enabled ? /* @__PURE__ */ A(dn, {
6430
+ source: ne,
6431
+ children: o ? fe(o) : /* @__PURE__ */ A(nl, { children: (e) => fe(e) })
6432
+ }) : fe(o ?? []);
6433
+ return ee ? /* @__PURE__ */ A(m, {
6434
+ dataSource: te,
6435
+ children: pe
6436
+ }) : pe;
6437
+ }
6438
+ function ol({ config: e }) {
6419
6439
  let t = Yt(), { filters: n, timeRange: r } = La();
6420
- return /* @__PURE__ */ j(bs, {
6440
+ return /* @__PURE__ */ A(bs, {
6421
6441
  config: e,
6422
- onFilter: w((e, i) => {
6442
+ onFilter: C((e, i) => {
6423
6443
  t({
6424
6444
  pathname: "..",
6425
- search: Vc(Bc(n, e, i), r)
6445
+ search: Wc(Uc(n, e, i), r)
6426
6446
  }, { relative: "path" });
6427
6447
  }, [
6428
6448
  n,
@@ -6433,30 +6453,30 @@ function rl({ config: e }) {
6433
6453
  }
6434
6454
  //#endregion
6435
6455
  //#region src/routing/define-observability-features.ts
6436
- var il = {
6456
+ var sl = {
6437
6457
  dashboards: {
6438
- icon: ot,
6458
+ icon: st,
6439
6459
  title: "Dashboards",
6440
6460
  order: 0,
6441
6461
  showInNav: !0
6442
6462
  },
6443
6463
  logs: {
6444
- icon: ft,
6464
+ icon: pt,
6445
6465
  title: "Logs",
6446
6466
  order: 1,
6447
6467
  showInNav: !0
6448
6468
  },
6449
6469
  tracing: {
6450
- icon: xt,
6470
+ icon: St,
6451
6471
  title: "Tracing",
6452
6472
  order: 2,
6453
6473
  showInNav: !1
6454
6474
  }
6455
6475
  };
6456
- function al(e) {
6457
- let t = e.basePath ?? "observe", n = ol(e), r = sl(e, n, t), i = n.map((e) => `${t}/${e}`), a = cl(n, t);
6476
+ function cl(e) {
6477
+ let t = e.basePath ?? "observe", n = ll(e), r = ul(e, n, t), i = n.map((e) => `${t}/${e}`), a = dl(n, t);
6458
6478
  function o(t) {
6459
- return C(nl, {
6479
+ return ee(al, {
6460
6480
  ...t,
6461
6481
  config: e
6462
6482
  });
@@ -6485,13 +6505,13 @@ function al(e) {
6485
6505
  breadcrumbSegments: c
6486
6506
  };
6487
6507
  }
6488
- function ol(e) {
6508
+ function ll(e) {
6489
6509
  let t = [];
6490
- return e.features.dashboards?.enabled && t.push("dashboards"), e.features.logs?.enabled && t.push("logs"), e.features.tracing?.enabled && t.push("tracing"), t.sort((e, t) => il[e].order - il[t].order);
6510
+ return e.features.dashboards?.enabled && t.push("dashboards"), e.features.logs?.enabled && t.push("logs"), e.features.tracing?.enabled && t.push("tracing"), t.sort((e, t) => sl[e].order - sl[t].order);
6491
6511
  }
6492
- function sl(e, t, n) {
6493
- let r = t.filter((e) => il[e].showInNav).map((t) => {
6494
- let r = il[t], i = e.nav.overrides?.[t];
6512
+ function ul(e, t, n) {
6513
+ let r = t.filter((e) => sl[e].showInNav).map((t) => {
6514
+ let r = sl[t], i = e.nav.overrides?.[t];
6495
6515
  return {
6496
6516
  key: `${n}/${t}`,
6497
6517
  title: i?.title ?? r.title,
@@ -6503,10 +6523,10 @@ function sl(e, t, n) {
6503
6523
  items: r
6504
6524
  };
6505
6525
  }
6506
- function cl(e, t) {
6526
+ function dl(e, t) {
6507
6527
  let n = {};
6508
6528
  for (let r of e) {
6509
- let e = il[r], i = `${t}/${r}`;
6529
+ let e = sl[r], i = `${t}/${r}`;
6510
6530
  n[i] = {
6511
6531
  path: `${t}/${r}`,
6512
6532
  label: e.title
@@ -6516,7 +6536,7 @@ function cl(e, t) {
6516
6536
  }
6517
6537
  //#endregion
6518
6538
  //#region src/build-observability-base-url.ts
6519
- function ll(e, t, n) {
6539
+ function fl(e, t, n) {
6520
6540
  let r = e;
6521
6541
  if (n?.useDevProxy) try {
6522
6542
  r = new URL(r).pathname;
@@ -6524,4 +6544,4 @@ function ll(e, t, n) {
6524
6544
  return r = r.replace(/\/+$/, ""), `${r}/v2/environments/${encodeURIComponent(t)}`;
6525
6545
  }
6526
6546
  //#endregion
6527
- export { Ai as BarPresentation, Hn as CODEC_VERSION, o as CapabilityProvider, Gi as CartesianPresentation, bn as ContextFiltersProvider, Ui as DASHBOARD_BUCKET_TARGET, _ as DEFAULT_CAPABILITIES, rn as DEFAULT_MEASURE, Fn as DEFAULT_PERIOD, an as DEFAULT_REFRESH_INTERVAL_MS, G as DEFAULT_STALE_TIME, Un as DEFAULT_TIME_RANGE, f as DashboardPersistenceProvider, Ma as DashboardTemplatesProvider, wa as DashboardView, Yi as DoughnutPresentation, v as FILTER_OPERATORS, ci as FilterBar, $r as FilterChip, Gr as FilterPopoverForm, h as FilterProvidersProvider, Mi as HTTP_STATUS_PALETTE, mn as HttpProvider, Ia as LiveIndicator, sn as LiveRefreshProvider, X as LogDetailCodeBlock, ts as LogDetailContextChart, vs as LogDetailDrawer, os as LogDetailDrawerShell, Z as LogDetailEmptyField, us as LogDetailHeader, Q as LogDetailHeadersTable, To as LogDetailJsonTree, $ as LogDetailKeyValueGrid, ds as LogDetailMetrics, bs as LogDetailPage, ms as LogDetailSection, ps as LogDetailSections, Ba as LogSeverityBadge, Qa as LogTable, g as LogsDataSourceProvider, go as LogsExplorerPage, oa as MetricGroupPresentation, da as MetricPresentation, m as MetricsDataSourceProvider, zn as PERIOD_DISPLAY_LABELS, Rn as PERIOD_LABELS, In as PRESET_CATEGORIES, Ln as RELATIVE_PERIODS, Fs as SpanDetailPanel, rr as TimeRangePicker, ic as TraceDetailDrawer, rc as TraceDetailPage, Qs as TraceDetailShell, As as TraceExplorerPage, Ws as TraceLineage, Ss as TraceStatusBadge, ks as TraceTable, Xs as TraceTimeline, s as TracesDataSourceProvider, Da as WidgetGroup, ba as WidgetItem, xo as buildApiTypeLink, Yr as buildChipLabel, Xr as buildChipLabelParts, Zr as buildChipTooltip, So as buildDefaultConnectionLogColumns, Xo as buildDefaultLogDetailConfig, _o as buildLogsDeepLink, ll as buildObservabilityBaseUrl, Ms as buildTracesDeepLink, ga as clearWidgetRenderers, Wi as computeBucketInterval, aa as computePreviousTimeRange, $i as computeTrend, ko as connectionLogPreset, Tc as createHttpDataSource, Oc as createHttpFilterSource, jc as createHttpLogsSource, Rc as createHttpTracesSource, Jn as decodeObservabilityState, Oa as defineDashboardTemplate, fr as defineFilterProvider, qo as defineLogDetail, al as defineObservabilityFeatures, qn as encodeObservabilityState, Zi as extractMeasureValue, ea as extractSparklineData, yi as facetsToBar, vi as facetsToDoughnut, ws as formatDuration, Cs as formatTraceTime, ir as getLocaleWeekStart, ha as getWidgetRenderer, en as isBarWidget, Qt as isCartesianWidget, $t as isDoughnutWidget, nn as isMetricGroupWidget, tn as isMetricWidget, Lr as isMultiSelectForFilter, $a as mapAnalyticsFilters, Qi as measureResultToMetric, q as mergeFilters, Li as mergeTimeSeriesToCartesian, Fo as messageLogPreset, Rr as normalizeMembershipOperatorForValues, K as observabilityQueryKeys, Pr as operatorLabel, Fr as operatorNeedsValue, va as registerDefaultRenderers, ma as registerWidgetRenderer, ka as resolveDashboardFromTemplate, Pi as resolveGroupColor, Jo as resolveLogDetailVariant, W as resolveMeasure, Yo as resolvePreset, dr as resolveRelativePeriod, mi as resolveStableTimeRange, a as useCapabilities, e as useCapability, J as useContextFilters, l as useDashboardPersistence, Pa as useDashboardTemplate, Na as useDashboardTemplates, Sn as useFacetsQuery, u as useFilterProvider, p as useFilterProviders, hn as useHttpOptions, cn as useLiveRefresh, rs as useLogDetailDrawerExpand, Cn as useLogDetailQuery, r as useLogsDataSource, Dn as useLogsPagedQuery, wn as useLogsQuery, On as useMeasuresQuery, bi as useMergedWidgetFilters, n as useMetricsDataSource, ln as useOptionalLiveRefresh, i as useOptionalLogsDataSource, c as useOptionalMetricsDataSource, t as useOptionalTracesDataSource, Y as useStableTimeRange, An as useTimeSeriesQuery, jn as useTraceDetailQuery, d as useTracesDataSource, Pn as useTracesPagedQuery, fi as useWidgetGroupContext, Bo as webhookLogPreset };
6547
+ export { Ai as BarPresentation, Hn as CODEC_VERSION, o as CapabilityProvider, Gi as CartesianPresentation, bn as ContextFiltersProvider, Ui as DASHBOARD_BUCKET_TARGET, _ as DEFAULT_CAPABILITIES, rn as DEFAULT_MEASURE, Fn as DEFAULT_PERIOD, an as DEFAULT_REFRESH_INTERVAL_MS, G as DEFAULT_STALE_TIME, Un as DEFAULT_TIME_RANGE, f as DashboardPersistenceProvider, Ma as DashboardTemplatesProvider, wa as DashboardView, Yi as DoughnutPresentation, v as FILTER_OPERATORS, ci as FilterBar, $r as FilterChip, Gr as FilterPopoverForm, h as FilterProvidersProvider, Mi as HTTP_STATUS_PALETTE, mn as HttpProvider, Ia as LiveIndicator, sn as LiveRefreshProvider, X as LogDetailCodeBlock, ts as LogDetailContextChart, vs as LogDetailDrawer, os as LogDetailDrawerShell, Z as LogDetailEmptyField, us as LogDetailHeader, Q as LogDetailHeadersTable, To as LogDetailJsonTree, $ as LogDetailKeyValueGrid, ds as LogDetailMetrics, bs as LogDetailPage, ms as LogDetailSection, ps as LogDetailSections, Ba as LogSeverityBadge, Qa as LogTable, g as LogsDataSourceProvider, go as LogsExplorerPage, oa as MetricGroupPresentation, da as MetricPresentation, m as MetricsDataSourceProvider, zn as PERIOD_DISPLAY_LABELS, Rn as PERIOD_LABELS, In as PRESET_CATEGORIES, Ln as RELATIVE_PERIODS, Fs as SpanDetailPanel, rr as TimeRangePicker, ic as TraceDetailDrawer, rc as TraceDetailPage, Qs as TraceDetailShell, As as TraceExplorerPage, Ws as TraceLineage, Ss as TraceStatusBadge, ks as TraceTable, Xs as TraceTimeline, s as TracesDataSourceProvider, Da as WidgetGroup, ba as WidgetItem, xo as buildApiTypeLink, Yr as buildChipLabel, Xr as buildChipLabelParts, Zr as buildChipTooltip, So as buildDefaultConnectionLogColumns, Xo as buildDefaultLogDetailConfig, _o as buildLogsDeepLink, fl as buildObservabilityBaseUrl, Ms as buildTracesDeepLink, ga as clearWidgetRenderers, Wi as computeBucketInterval, aa as computePreviousTimeRange, $i as computeTrend, ko as connectionLogPreset, Tc as createHttpDataSource, Oc as createHttpFilterSource, jc as createHttpLogsSource, Vc as createHttpTracesSource, Jn as decodeObservabilityState, Oa as defineDashboardTemplate, fr as defineFilterProvider, qo as defineLogDetail, cl as defineObservabilityFeatures, qn as encodeObservabilityState, Zi as extractMeasureValue, ea as extractSparklineData, yi as facetsToBar, vi as facetsToDoughnut, ws as formatDuration, Cs as formatTraceTime, ir as getLocaleWeekStart, ha as getWidgetRenderer, en as isBarWidget, Qt as isCartesianWidget, $t as isDoughnutWidget, nn as isMetricGroupWidget, tn as isMetricWidget, Lr as isMultiSelectForFilter, $a as mapAnalyticsFilters, Qi as measureResultToMetric, q as mergeFilters, Li as mergeTimeSeriesToCartesian, Fo as messageLogPreset, Rr as normalizeMembershipOperatorForValues, K as observabilityQueryKeys, Pr as operatorLabel, Fr as operatorNeedsValue, va as registerDefaultRenderers, ma as registerWidgetRenderer, ka as resolveDashboardFromTemplate, Pi as resolveGroupColor, Jo as resolveLogDetailVariant, W as resolveMeasure, Yo as resolvePreset, dr as resolveRelativePeriod, mi as resolveStableTimeRange, a as useCapabilities, e as useCapability, J as useContextFilters, l as useDashboardPersistence, Pa as useDashboardTemplate, Na as useDashboardTemplates, Sn as useFacetsQuery, u as useFilterProvider, p as useFilterProviders, hn as useHttpOptions, cn as useLiveRefresh, rs as useLogDetailDrawerExpand, Cn as useLogDetailQuery, r as useLogsDataSource, Dn as useLogsPagedQuery, wn as useLogsQuery, On as useMeasuresQuery, bi as useMergedWidgetFilters, n as useMetricsDataSource, ln as useOptionalLiveRefresh, i as useOptionalLogsDataSource, c as useOptionalMetricsDataSource, t as useOptionalTracesDataSource, Y as useStableTimeRange, An as useTimeSeriesQuery, jn as useTraceDetailQuery, d as useTracesDataSource, Pn as useTracesPagedQuery, fi as useWidgetGroupContext, Bo as webhookLogPreset };