@gravitee/gamma-lib-observability 1.22.0 → 1.23.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
@@ -5379,23 +5379,191 @@ function Ys({ basePath: e, apiId: t, timeRange: n = Un, filters: r = [] }) {
5379
5379
  return o.set("q", i.q), o.set("v", i.v), `${a}?${o.toString()}`;
5380
5380
  }
5381
5381
  //#endregion
5382
+ //#region src/traces/detail/PolicyAttributeDiff.tsx
5383
+ var Xs = {
5384
+ added: "Added",
5385
+ removed: "Removed",
5386
+ changed: "Changed",
5387
+ unchanged: "Unchanged"
5388
+ }, Zs = {
5389
+ added: "border-l-success",
5390
+ removed: "border-l-destructive",
5391
+ changed: "border-l-warning",
5392
+ unchanged: "border-l-transparent"
5393
+ }, Qs = {
5394
+ added: "text-success",
5395
+ removed: "text-destructive",
5396
+ changed: "text-warning",
5397
+ unchanged: "text-muted-foreground/60"
5398
+ }, $s = "—";
5399
+ function ec({ diff: e }) {
5400
+ return /* @__PURE__ */ j("div", {
5401
+ className: "flex flex-col gap-2",
5402
+ children: [/* @__PURE__ */ A(nc, { diff: e }), /* @__PURE__ */ A("div", {
5403
+ className: "overflow-hidden rounded-md border",
5404
+ children: /* @__PURE__ */ j("table", {
5405
+ className: "w-full table-fixed border-collapse text-sm",
5406
+ children: [
5407
+ /* @__PURE__ */ A("caption", {
5408
+ className: "sr-only",
5409
+ children: "Policy attribute changes between the pre and post events"
5410
+ }),
5411
+ /* @__PURE__ */ j("colgroup", { children: [
5412
+ /* @__PURE__ */ A("col", { className: "w-2/5" }),
5413
+ /* @__PURE__ */ A("col", { className: "w-[30%]" }),
5414
+ /* @__PURE__ */ A("col", { className: "w-[30%]" })
5415
+ ] }),
5416
+ /* @__PURE__ */ A("thead", { children: /* @__PURE__ */ j("tr", {
5417
+ className: "border-b bg-muted/40 text-left text-[11px] uppercase tracking-wide text-muted-foreground/70",
5418
+ children: [
5419
+ /* @__PURE__ */ A("th", {
5420
+ scope: "col",
5421
+ className: "px-3 py-2 font-medium",
5422
+ children: "Attribute"
5423
+ }),
5424
+ /* @__PURE__ */ A("th", {
5425
+ scope: "col",
5426
+ className: "px-3 py-2 font-medium",
5427
+ children: "Before"
5428
+ }),
5429
+ /* @__PURE__ */ A("th", {
5430
+ scope: "col",
5431
+ className: "px-3 py-2 font-medium",
5432
+ children: "After"
5433
+ })
5434
+ ]
5435
+ }) }),
5436
+ /* @__PURE__ */ A("tbody", { children: e.rows.map((e) => /* @__PURE__ */ j("tr", {
5437
+ className: U("border-b border-l-2 last:border-b-0 align-top", Zs[e.status]),
5438
+ children: [
5439
+ /* @__PURE__ */ j("th", {
5440
+ scope: "row",
5441
+ className: "px-3 py-2 text-left font-normal",
5442
+ children: [/* @__PURE__ */ A("span", {
5443
+ className: "block break-all font-medium text-foreground",
5444
+ children: e.key
5445
+ }), /* @__PURE__ */ A("span", {
5446
+ className: U("text-[10px] font-semibold uppercase tracking-wide", Qs[e.status]),
5447
+ children: Xs[e.status]
5448
+ })]
5449
+ }),
5450
+ /* @__PURE__ */ A(tc, {
5451
+ value: e.before,
5452
+ muted: e.status === "added"
5453
+ }),
5454
+ /* @__PURE__ */ A(tc, {
5455
+ value: e.after,
5456
+ muted: e.status === "removed"
5457
+ })
5458
+ ]
5459
+ }, e.key)) })
5460
+ ]
5461
+ })
5462
+ })]
5463
+ });
5464
+ }
5465
+ function tc({ value: e, muted: t }) {
5466
+ return e === void 0 ? /* @__PURE__ */ j("td", {
5467
+ className: "px-3 py-2 text-muted-foreground/50",
5468
+ children: [/* @__PURE__ */ A("span", {
5469
+ "aria-hidden": !0,
5470
+ children: $s
5471
+ }), /* @__PURE__ */ A("span", {
5472
+ className: "sr-only",
5473
+ children: "absent"
5474
+ })]
5475
+ }) : /* @__PURE__ */ A("td", {
5476
+ className: U("px-3 py-2 break-all font-mono text-xs", t ? "text-muted-foreground/60" : "text-foreground"),
5477
+ children: e
5478
+ });
5479
+ }
5480
+ function nc({ diff: e }) {
5481
+ let t = [
5482
+ {
5483
+ label: "added",
5484
+ count: e.addedCount,
5485
+ className: Qs.added
5486
+ },
5487
+ {
5488
+ label: "removed",
5489
+ count: e.removedCount,
5490
+ className: Qs.removed
5491
+ },
5492
+ {
5493
+ label: "changed",
5494
+ count: e.changedCount,
5495
+ className: Qs.changed
5496
+ }
5497
+ ].filter((e) => e.count > 0);
5498
+ return t.length === 0 ? /* @__PURE__ */ A("p", {
5499
+ className: "text-xs text-muted-foreground/70",
5500
+ children: "No attribute changes between pre and post."
5501
+ }) : /* @__PURE__ */ A("div", {
5502
+ className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs",
5503
+ children: t.map((e) => /* @__PURE__ */ j("span", {
5504
+ className: U("font-medium", e.className),
5505
+ children: [
5506
+ e.count,
5507
+ " ",
5508
+ e.label
5509
+ ]
5510
+ }, e.label))
5511
+ });
5512
+ }
5513
+ //#endregion
5514
+ //#region src/traces/detail/policy-attribute-diff.ts
5515
+ var rc = "gravitee.policy.pre", ic = "gravitee.policy.post";
5516
+ function ac(e) {
5517
+ return Array.isArray(e) ? e.join(", ") : String(e);
5518
+ }
5519
+ function oc(e, t) {
5520
+ return e.find((e) => e.name === t);
5521
+ }
5522
+ function sc(e, t) {
5523
+ let n = Object.keys(e);
5524
+ for (let r of Object.keys(t)) r in e || n.push(r);
5525
+ return n;
5526
+ }
5527
+ function cc(e, t, n) {
5528
+ return e ? t ? n ? "unchanged" : "changed" : "removed" : "added";
5529
+ }
5530
+ function lc(e) {
5531
+ let t = oc(e.events, rc), n = oc(e.events, ic);
5532
+ if (!t || !n) return null;
5533
+ let r = t.attributes ?? {}, i = n.attributes ?? {}, a = 0, o = 0, s = 0;
5534
+ return {
5535
+ rows: sc(r, i).map((e) => {
5536
+ let t = e in r, n = e in i, c = t ? ac(r[e]) : void 0, l = n ? ac(i[e]) : void 0, u = cc(t, n, c === l);
5537
+ return u === "added" ? a += 1 : u === "removed" ? o += 1 : u === "changed" && (s += 1), {
5538
+ key: e,
5539
+ status: u,
5540
+ before: c,
5541
+ after: l
5542
+ };
5543
+ }),
5544
+ addedCount: a,
5545
+ removedCount: o,
5546
+ changedCount: s
5547
+ };
5548
+ }
5549
+ //#endregion
5382
5550
  //#region src/traces/detail/SpanDetailPanel.tsx
5383
- function Xs(e) {
5551
+ function uc(e) {
5384
5552
  return Array.isArray(e) ? e.join(", ") : typeof e == "boolean" ? String(e) : e;
5385
5553
  }
5386
- function Zs(e) {
5554
+ function dc(e) {
5387
5555
  return Object.entries(e).map(([e, t]) => ({
5388
5556
  label: e,
5389
- value: Xs(t)
5557
+ value: uc(t)
5390
5558
  }));
5391
5559
  }
5392
- function Qs({ span: e, onClose: t }) {
5393
- return e ? /* @__PURE__ */ A($s, {
5560
+ function fc({ span: e, onClose: t }) {
5561
+ return e ? /* @__PURE__ */ A(pc, {
5394
5562
  span: e,
5395
5563
  onClose: t
5396
5564
  }) : null;
5397
5565
  }
5398
- function $s({ span: e, onClose: t }) {
5566
+ function pc({ span: e, onClose: t }) {
5399
5567
  let n = D(null);
5400
5568
  T(() => {
5401
5569
  n.current?.focus();
@@ -5440,7 +5608,7 @@ function $s({ span: e, onClose: t }) {
5440
5608
  label: "Duration",
5441
5609
  value: Ds(e.duration)
5442
5610
  }
5443
- ], i = Object.entries(e.attributes);
5611
+ ], i = Object.entries(e.attributes), a = lc(e);
5444
5612
  return /* @__PURE__ */ j("section", {
5445
5613
  ref: n,
5446
5614
  tabIndex: -1,
@@ -5472,19 +5640,24 @@ function $s({ span: e, onClose: t }) {
5472
5640
  }), /* @__PURE__ */ j("div", {
5473
5641
  className: "grid gap-x-8 gap-y-6 p-5 @2xl:grid-cols-2 @2xl:items-start",
5474
5642
  children: [
5475
- /* @__PURE__ */ A(ec, {
5643
+ /* @__PURE__ */ A(mc, {
5476
5644
  title: "Overview",
5477
5645
  children: /* @__PURE__ */ A($, { items: r })
5478
5646
  }),
5479
- i.length > 0 && /* @__PURE__ */ A(ec, {
5647
+ i.length > 0 && /* @__PURE__ */ A(mc, {
5480
5648
  title: "Attributes",
5481
5649
  badge: i.length,
5482
5650
  children: /* @__PURE__ */ A($, {
5483
5651
  wrap: !0,
5484
- items: Zs(e.attributes)
5652
+ items: dc(e.attributes)
5485
5653
  })
5486
5654
  }),
5487
- e.events.length > 0 && /* @__PURE__ */ A(ec, {
5655
+ a && /* @__PURE__ */ A(mc, {
5656
+ title: "Policy Diff",
5657
+ badge: a.rows.length,
5658
+ children: /* @__PURE__ */ A(ec, { diff: a })
5659
+ }),
5660
+ e.events.length > 0 && /* @__PURE__ */ A(mc, {
5488
5661
  title: "Events",
5489
5662
  badge: e.events.length,
5490
5663
  children: /* @__PURE__ */ A("div", {
@@ -5502,12 +5675,12 @@ function $s({ span: e, onClose: t }) {
5502
5675
  })]
5503
5676
  }), e.attributes && Object.keys(e.attributes).length > 0 && /* @__PURE__ */ A($, {
5504
5677
  wrap: !0,
5505
- items: Zs(e.attributes)
5678
+ items: dc(e.attributes)
5506
5679
  })]
5507
5680
  }, `${e.name}-${t}`))
5508
5681
  })
5509
5682
  }),
5510
- e.payloadLogs.length > 0 && /* @__PURE__ */ A(ec, {
5683
+ e.payloadLogs.length > 0 && /* @__PURE__ */ A(mc, {
5511
5684
  title: "Payload Logs",
5512
5685
  badge: e.payloadLogs.length,
5513
5686
  children: /* @__PURE__ */ A("div", {
@@ -5528,7 +5701,7 @@ function $s({ span: e, onClose: t }) {
5528
5701
  }),
5529
5702
  e.attributes && Object.keys(e.attributes).length > 0 && /* @__PURE__ */ A($, {
5530
5703
  wrap: !0,
5531
- items: Zs(e.attributes)
5704
+ items: dc(e.attributes)
5532
5705
  })
5533
5706
  ]
5534
5707
  }, `${e.timestampEpochMs}-${t}`))
@@ -5538,7 +5711,7 @@ function $s({ span: e, onClose: t }) {
5538
5711
  })]
5539
5712
  });
5540
5713
  }
5541
- function ec({ title: e, badge: t, children: n }) {
5714
+ function mc({ title: e, badge: t, children: n }) {
5542
5715
  return /* @__PURE__ */ j("section", {
5543
5716
  className: "flex min-w-0 flex-col gap-2",
5544
5717
  children: [/* @__PURE__ */ j("div", {
@@ -5556,13 +5729,13 @@ function ec({ title: e, badge: t, children: n }) {
5556
5729
  }
5557
5730
  //#endregion
5558
5731
  //#region src/traces/detail/build-span-tree.ts
5559
- var tc = (e, t) => e.startTime - t.startTime;
5560
- function nc(e) {
5732
+ var hc = (e, t) => e.startTime - t.startTime;
5733
+ function gc(e) {
5561
5734
  let t = /* @__PURE__ */ new Map();
5562
5735
  for (let n of e) t.set(n.spanId, n);
5563
5736
  return t;
5564
5737
  }
5565
- function rc(e) {
5738
+ function _c(e) {
5566
5739
  if (e.length === 0) return [];
5567
5740
  let t = new Set(e.map((e) => e.spanId)), n = /* @__PURE__ */ new Map(), r = [];
5568
5741
  for (let i of e) if (i.parentSpanId && t.has(i.parentSpanId)) {
@@ -5571,11 +5744,11 @@ function rc(e) {
5571
5744
  } else r.push(i);
5572
5745
  let i = (e) => ({
5573
5746
  span: e,
5574
- children: [...n.get(e.spanId) ?? []].sort(tc).map(i)
5747
+ children: [...n.get(e.spanId) ?? []].sort(hc).map(i)
5575
5748
  });
5576
- return [...r].sort(tc).map(i);
5749
+ return [...r].sort(hc).map(i);
5577
5750
  }
5578
- function ic(e) {
5751
+ function vc(e) {
5579
5752
  let t = [];
5580
5753
  function n(e, r) {
5581
5754
  t.push({
@@ -5589,12 +5762,12 @@ function ic(e) {
5589
5762
  }
5590
5763
  //#endregion
5591
5764
  //#region src/traces/detail/TraceLineage.tsx
5592
- var ac = ne(() => import("./TraceLineageGraph.js")), oc = {
5765
+ var yc = ne(() => import("./TraceLineageGraph.js")), bc = {
5593
5766
  ok: "healthy",
5594
5767
  error: "error",
5595
5768
  unset: "inactive"
5596
5769
  };
5597
- function sc(e) {
5770
+ function xc(e) {
5598
5771
  let t = new Set(e.spans.map((e) => e.spanId));
5599
5772
  return {
5600
5773
  nodes: e.spans.map((e) => ({
@@ -5603,7 +5776,7 @@ function sc(e) {
5603
5776
  label: e.operationName,
5604
5777
  description: e.serviceName,
5605
5778
  badge: Ds(e.duration),
5606
- status: oc[e.status]
5779
+ status: bc[e.status]
5607
5780
  }
5608
5781
  })),
5609
5782
  edges: e.spans.filter((e) => !!e.parentSpanId && t.has(e.parentSpanId)).map((e) => ({
@@ -5614,20 +5787,20 @@ function sc(e) {
5614
5787
  }))
5615
5788
  };
5616
5789
  }
5617
- function cc({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, edgeAnimation: i = "flow", className: a }) {
5618
- let { nodes: o, edges: s } = E(() => e ? sc(e) : {
5790
+ function Sc({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, edgeAnimation: i = "flow", className: a }) {
5791
+ let { nodes: o, edges: s } = E(() => e ? xc(e) : {
5619
5792
  nodes: [],
5620
5793
  edges: []
5621
- }, [e]), c = E(() => nc(e?.spans ?? []), [e?.spans]), l = C((e) => {
5794
+ }, [e]), c = E(() => gc(e?.spans ?? []), [e?.spans]), l = C((e) => {
5622
5795
  if (!e) return;
5623
5796
  let n = c.get(e.id);
5624
5797
  n && t?.(n);
5625
5798
  }, [c, t]), u = a ?? "h-[28rem]";
5626
- return /* @__PURE__ */ A(dc, {
5627
- fallback: /* @__PURE__ */ A(uc, { className: u }),
5799
+ return /* @__PURE__ */ A(Tc, {
5800
+ fallback: /* @__PURE__ */ A(wc, { className: u }),
5628
5801
  children: /* @__PURE__ */ A(x, {
5629
- fallback: /* @__PURE__ */ A(lc, { className: u }),
5630
- children: /* @__PURE__ */ A(ac, {
5802
+ fallback: /* @__PURE__ */ A(Cc, { className: u }),
5803
+ children: /* @__PURE__ */ A(yc, {
5631
5804
  nodes: o,
5632
5805
  edges: s,
5633
5806
  state: r,
@@ -5639,7 +5812,7 @@ function cc({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, edgeAnimati
5639
5812
  })
5640
5813
  });
5641
5814
  }
5642
- function lc({ className: e }) {
5815
+ function Cc({ className: e }) {
5643
5816
  return /* @__PURE__ */ A("div", {
5644
5817
  className: `flex animate-pulse items-center justify-center rounded-lg border border-border bg-card ${e}`,
5645
5818
  role: "status",
@@ -5650,7 +5823,7 @@ function lc({ className: e }) {
5650
5823
  })
5651
5824
  });
5652
5825
  }
5653
- function uc({ className: e }) {
5826
+ function wc({ className: e }) {
5654
5827
  return /* @__PURE__ */ j("div", {
5655
5828
  className: `flex flex-col items-center justify-center gap-1 rounded-lg border border-border bg-card p-6 text-center ${e}`,
5656
5829
  role: "alert",
@@ -5667,7 +5840,7 @@ function uc({ className: e }) {
5667
5840
  })]
5668
5841
  });
5669
5842
  }
5670
- var dc = class extends y {
5843
+ var Tc = class extends y {
5671
5844
  state = { hasError: !1 };
5672
5845
  static getDerivedStateFromError() {
5673
5846
  return { hasError: !0 };
@@ -5678,9 +5851,9 @@ var dc = class extends y {
5678
5851
  render() {
5679
5852
  return this.state.hasError ? this.props.fallback : this.props.children;
5680
5853
  }
5681
- }, fc = 1e6;
5682
- function pc(e) {
5683
- let t = ic(rc(e.spans)), n = e.startTime;
5854
+ }, Ec = 1e6;
5855
+ function Dc(e) {
5856
+ let t = vc(_c(e.spans)), n = e.startTime;
5684
5857
  return t.map((e) => ({
5685
5858
  spanId: e.span.spanId,
5686
5859
  parentSpanId: e.span.parentSpanId,
@@ -5688,13 +5861,13 @@ function pc(e) {
5688
5861
  serviceName: e.span.serviceName,
5689
5862
  kind: e.span.kind,
5690
5863
  status: e.span.status,
5691
- startOffsetNs: (e.span.startTime - n) * fc,
5692
- durationNs: e.span.duration * fc,
5864
+ startOffsetNs: (e.span.startTime - n) * Ec,
5865
+ durationNs: e.span.duration * Ec,
5693
5866
  depth: e.depth
5694
5867
  }));
5695
5868
  }
5696
- function mc({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, className: i }) {
5697
- let a = E(() => e ? pc(e) : [], [e]), o = E(() => nc(e?.spans ?? []), [e?.spans]);
5869
+ function Oc({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, className: i }) {
5870
+ let a = E(() => e ? Dc(e) : [], [e]), o = E(() => gc(e?.spans ?? []), [e?.spans]);
5698
5871
  return /* @__PURE__ */ A(Ht, {
5699
5872
  spans: a,
5700
5873
  state: r,
@@ -5709,19 +5882,19 @@ function mc({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, className:
5709
5882
  }
5710
5883
  //#endregion
5711
5884
  //#region src/traces/detail/TraceDetailShell.tsx
5712
- var hc = [{
5885
+ var kc = [{
5713
5886
  key: "timeline",
5714
5887
  label: "Timeline"
5715
5888
  }, {
5716
5889
  key: "lineage",
5717
5890
  label: "Lineage"
5718
5891
  }];
5719
- function gc({ trace: e }) {
5892
+ function Ac({ trace: e }) {
5720
5893
  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;
5721
5894
  return /* @__PURE__ */ j("div", {
5722
5895
  className: "flex flex-col gap-5 p-6",
5723
5896
  children: [
5724
- /* @__PURE__ */ A(_c, { trace: e }),
5897
+ /* @__PURE__ */ A(jc, { trace: e }),
5725
5898
  /* @__PURE__ */ j(Je, {
5726
5899
  value: t,
5727
5900
  onValueChange: (e) => n(e),
@@ -5730,14 +5903,14 @@ function gc({ trace: e }) {
5730
5903
  /* @__PURE__ */ A(Xe, {
5731
5904
  variant: "line",
5732
5905
  "aria-label": "Trace view",
5733
- children: hc.map((e) => /* @__PURE__ */ A(Ze, {
5906
+ children: kc.map((e) => /* @__PURE__ */ A(Ze, {
5734
5907
  value: e.key,
5735
5908
  children: e.label
5736
5909
  }, e.key))
5737
5910
  }),
5738
5911
  /* @__PURE__ */ A(Ye, {
5739
5912
  value: "timeline",
5740
- children: /* @__PURE__ */ A(mc, {
5913
+ children: /* @__PURE__ */ A(Oc, {
5741
5914
  trace: e,
5742
5915
  onSpanClick: a,
5743
5916
  selectedSpanId: s?.spanId
@@ -5745,7 +5918,7 @@ function gc({ trace: e }) {
5745
5918
  }),
5746
5919
  /* @__PURE__ */ A(Ye, {
5747
5920
  value: "lineage",
5748
- children: /* @__PURE__ */ A(cc, {
5921
+ children: /* @__PURE__ */ A(Sc, {
5749
5922
  trace: e,
5750
5923
  onSpanClick: a,
5751
5924
  selectedSpanId: s?.spanId
@@ -5753,14 +5926,14 @@ function gc({ trace: e }) {
5753
5926
  })
5754
5927
  ]
5755
5928
  }),
5756
- s && /* @__PURE__ */ A(Qs, {
5929
+ s && /* @__PURE__ */ A(fc, {
5757
5930
  span: s,
5758
5931
  onClose: o
5759
5932
  })
5760
5933
  ]
5761
5934
  });
5762
5935
  }
5763
- function _c({ trace: e }) {
5936
+ function jc({ trace: e }) {
5764
5937
  let t = [
5765
5938
  {
5766
5939
  label: "Service",
@@ -5811,13 +5984,13 @@ function _c({ trace: e }) {
5811
5984
  }
5812
5985
  //#endregion
5813
5986
  //#region src/traces/detail/TraceDetailStates.tsx
5814
- function vc() {
5987
+ function Mc() {
5815
5988
  return /* @__PURE__ */ A("div", {
5816
5989
  className: "p-6",
5817
- children: /* @__PURE__ */ A(mc, { state: "loading" })
5990
+ children: /* @__PURE__ */ A(Oc, { state: "loading" })
5818
5991
  });
5819
5992
  }
5820
- function yc({ onRetry: e }) {
5993
+ function Nc({ onRetry: e }) {
5821
5994
  return /* @__PURE__ */ j("div", {
5822
5995
  className: "flex flex-col items-center gap-3 p-12",
5823
5996
  children: [
@@ -5835,7 +6008,7 @@ function yc({ onRetry: e }) {
5835
6008
  ]
5836
6009
  });
5837
6010
  }
5838
- function bc({ onBack: e }) {
6011
+ function Pc({ onBack: e }) {
5839
6012
  return /* @__PURE__ */ j("div", {
5840
6013
  className: "flex flex-col items-center justify-center gap-4 p-12 text-center",
5841
6014
  children: [/* @__PURE__ */ A("p", {
@@ -5851,7 +6024,7 @@ function bc({ onBack: e }) {
5851
6024
  }
5852
6025
  //#endregion
5853
6026
  //#region src/traces/detail/TraceDetailPage.tsx
5854
- function xc({ apiId: e }) {
6027
+ function Fc({ apiId: e }) {
5855
6028
  let t = K(), n = Yt(), r = e ?? t.apiId ?? "", i = t.traceId, { data: a, isLoading: o, isError: s, refetch: c } = jn({
5856
6029
  apiId: r,
5857
6030
  traceId: i
@@ -5866,12 +6039,12 @@ function xc({ apiId: e }) {
5866
6039
  onClick: l,
5867
6040
  children: [/* @__PURE__ */ A(nt, { className: "mr-1.5 size-4" }), "Back to traces"]
5868
6041
  })
5869
- }), o ? /* @__PURE__ */ A(vc, {}) : s ? /* @__PURE__ */ A(yc, { onRetry: () => c() }) : a ? /* @__PURE__ */ A(gc, { trace: a }) : /* @__PURE__ */ A(bc, { onBack: l })]
6042
+ }), o ? /* @__PURE__ */ A(Mc, {}) : s ? /* @__PURE__ */ A(Nc, { onRetry: () => c() }) : a ? /* @__PURE__ */ A(Ac, { trace: a }) : /* @__PURE__ */ A(Pc, { onBack: l })]
5870
6043
  });
5871
6044
  }
5872
6045
  //#endregion
5873
6046
  //#region src/traces/detail/TraceDetailDrawer.tsx
5874
- function Sc({ apiId: e, traceId: t, onClose: n, onNavigatePrev: r, onNavigateNext: i, hasPrev: a = !0, hasNext: o = !0 }) {
6047
+ function Ic({ apiId: e, traceId: t, onClose: n, onNavigatePrev: r, onNavigateNext: i, hasPrev: a = !0, hasNext: o = !0 }) {
5875
6048
  let { data: s, isLoading: c, isError: l, refetch: u } = jn({
5876
6049
  apiId: e,
5877
6050
  traceId: t,
@@ -5882,16 +6055,16 @@ function Sc({ apiId: e, traceId: t, onClose: n, onNavigatePrev: r, onNavigateNex
5882
6055
  onClose: n,
5883
6056
  onNavigatePrev: r,
5884
6057
  onNavigateNext: i,
5885
- children: [/* @__PURE__ */ A(Cc, {
6058
+ children: [/* @__PURE__ */ A(Lc, {
5886
6059
  onClose: n,
5887
6060
  onNavigatePrev: r,
5888
6061
  onNavigateNext: i,
5889
6062
  hasPrev: a,
5890
6063
  hasNext: o
5891
- }), t ? l ? /* @__PURE__ */ A(yc, { onRetry: () => u() }) : s ? /* @__PURE__ */ A(gc, { trace: s }) : c ? /* @__PURE__ */ A(vc, {}) : null : s ? /* @__PURE__ */ A(gc, { trace: s }) : null]
6064
+ }), t ? l ? /* @__PURE__ */ A(Nc, { onRetry: () => u() }) : s ? /* @__PURE__ */ A(Ac, { trace: s }) : c ? /* @__PURE__ */ A(Mc, {}) : null : s ? /* @__PURE__ */ A(Ac, { trace: s }) : null]
5892
6065
  });
5893
6066
  }
5894
- function Cc({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasNext: i }) {
6067
+ function Lc({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasNext: i }) {
5895
6068
  let { expanded: a, setExpanded: o } = os();
5896
6069
  return /* @__PURE__ */ j("div", {
5897
6070
  className: "sticky top-0 z-10 flex items-center justify-between gap-1 border-b bg-background/95 px-3 py-2 backdrop-blur",
@@ -5941,27 +6114,27 @@ function Cc({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasN
5941
6114
  }
5942
6115
  //#endregion
5943
6116
  //#region src/data-sources/filter-serialization.ts
5944
- var wc = [
6117
+ var Rc = [
5945
6118
  "eq",
5946
6119
  "in",
5947
6120
  "lte",
5948
6121
  "gte"
5949
6122
  ];
5950
- function Tc(e) {
5951
- return wc.includes(e);
6123
+ function zc(e) {
6124
+ return Rc.includes(e);
5952
6125
  }
5953
- var Ec = {
6126
+ var Bc = {
5954
6127
  eq: "EQ",
5955
6128
  in: "IN",
5956
6129
  lte: "LTE",
5957
6130
  gte: "GTE"
5958
6131
  };
5959
- function Dc(e) {
5960
- if (!Tc(e.operator)) throw Error(`[gamma-lib-observability] Filter operator "${e.operator}" on field "${e.field}" is not supported by the Gravitee Management v2 API. Supported operators: ${wc.join(", ")}.`);
6132
+ function Vc(e) {
6133
+ if (!zc(e.operator)) throw Error(`[gamma-lib-observability] Filter operator "${e.operator}" on field "${e.field}" is not supported by the Gravitee Management v2 API. Supported operators: ${Rc.join(", ")}.`);
5961
6134
  let t = e.value[0];
5962
6135
  if (t === void 0) throw Error(`[gamma-lib-observability] Filter on field "${e.field}" with operator "${e.operator}" has no value — every supported operator requires at least one value.`);
5963
6136
  switch (e.operator) {
5964
- case "eq": return Oc(e, "eq", "in"), {
6137
+ case "eq": return Hc(e, "eq", "in"), {
5965
6138
  name: e.field,
5966
6139
  operator: "EQ",
5967
6140
  value: t
@@ -5973,11 +6146,11 @@ function Dc(e) {
5973
6146
  };
5974
6147
  case "lte":
5975
6148
  case "gte": {
5976
- Oc(e, e.operator);
5977
- let n = kc(e, t);
6149
+ Hc(e, e.operator);
6150
+ let n = Uc(e, t);
5978
6151
  return {
5979
6152
  name: e.field,
5980
- operator: Ec[e.operator],
6153
+ operator: Bc[e.operator],
5981
6154
  value: n
5982
6155
  };
5983
6156
  }
@@ -5987,50 +6160,50 @@ function Dc(e) {
5987
6160
  }
5988
6161
  }
5989
6162
  }
5990
- function Oc(e, t, n) {
6163
+ function Hc(e, t, n) {
5991
6164
  if (e.value.length <= 1) return;
5992
6165
  let r = n ? ` Use "${n}" for multi-value membership.` : "";
5993
6166
  throw Error(`[gamma-lib-observability] Filter on field "${e.field}" with operator "${t}" received ${e.value.length} values; "${t}" expects a single value.${r}`);
5994
6167
  }
5995
- function kc(e, t) {
6168
+ function Uc(e, t) {
5996
6169
  let n = t.trim();
5997
6170
  if (n === "") throw Error(`[gamma-lib-observability] Filter on field "${e.field}" with operator "${e.operator}" expects a numeric value but received an empty string.`);
5998
6171
  let r = Number(n);
5999
6172
  if (Number.isNaN(r)) throw Error(`[gamma-lib-observability] Filter on field "${e.field}" with operator "${e.operator}" expects a numeric value but received "${t}".`);
6000
6173
  return r;
6001
6174
  }
6002
- function Ac(e) {
6003
- if (e?.length) return e.map(Dc);
6175
+ function Wc(e) {
6176
+ if (e?.length) return e.map(Vc);
6004
6177
  }
6005
6178
  //#endregion
6006
6179
  //#region src/data-sources/http-utils.ts
6007
- function jc(e) {
6180
+ function Gc(e) {
6008
6181
  if (e) return typeof e == "function" ? e() : e;
6009
6182
  }
6010
- function Mc(...e) {
6183
+ function Kc(...e) {
6011
6184
  let t = new Headers();
6012
6185
  for (let n of e) n && new Headers(n).forEach((e, n) => t.set(n, e));
6013
6186
  return t;
6014
6187
  }
6015
6188
  //#endregion
6016
6189
  //#region src/data-sources/http-data-source.ts
6017
- var Nc = {
6190
+ var qc = {
6018
6191
  name: "HTTP_REQUESTS",
6019
6192
  measures: [nn]
6020
6193
  };
6021
- function Pc(e) {
6194
+ function Jc(e) {
6022
6195
  return e.metrics.map((e) => ({
6023
6196
  name: e.name,
6024
6197
  unit: e.unit,
6025
6198
  measures: e.measures ?? []
6026
6199
  }));
6027
6200
  }
6028
- function Fc(e, t = "", n = "") {
6201
+ function Yc(e, t = "", n = "") {
6029
6202
  let r = [];
6030
6203
  for (let i of e) {
6031
6204
  let e = t ? `${t} / ${i.key}` : i.key, a = n ? `${n} › ${i.name ?? i.key}` : i.name ?? i.key;
6032
6205
  if (i.type === "GROUP" && i.buckets?.length) {
6033
- r.push(...Fc(i.buckets, e, a));
6206
+ r.push(...Yc(i.buckets, e, a));
6034
6207
  continue;
6035
6208
  }
6036
6209
  r.push({
@@ -6041,12 +6214,12 @@ function Fc(e, t = "", n = "") {
6041
6214
  }
6042
6215
  return r;
6043
6216
  }
6044
- function Ic(e) {
6217
+ function Xc(e) {
6045
6218
  let t = [];
6046
- for (let n of e.metrics) n.buckets && t.push(...Fc(n.buckets));
6219
+ for (let n of e.metrics) n.buckets && t.push(...Yc(n.buckets));
6047
6220
  return t;
6048
6221
  }
6049
- function Lc(e) {
6222
+ function Zc(e) {
6050
6223
  let t = [];
6051
6224
  for (let n of e.metrics) if (n.buckets) if (n.buckets.some((e) => e.type === "GROUP" && e.buckets?.length)) {
6052
6225
  let e = /* @__PURE__ */ new Map();
@@ -6083,47 +6256,47 @@ function Lc(e) {
6083
6256
  }
6084
6257
  return t;
6085
6258
  }
6086
- function Rc(e) {
6259
+ function Qc(e) {
6087
6260
  return {
6088
6261
  ...e,
6089
6262
  measures: e.measures?.length ? e.measures : [nn]
6090
6263
  };
6091
6264
  }
6092
- function zc(e) {
6093
- let t = Hc(e);
6094
- return t.metrics = e.metrics.map(Uc), t;
6265
+ function $c(e) {
6266
+ let t = nl(e);
6267
+ return t.metrics = e.metrics.map(rl), t;
6095
6268
  }
6096
- function Bc(e) {
6097
- let t = Hc(e);
6098
- return t.interval = e.interval, t.metrics = e.metrics.map(Uc), e.by?.length && (t.by = e.by), e.ranges?.length && (t.ranges = e.ranges), e.limit !== void 0 && (t.limit = e.limit), t;
6269
+ function el(e) {
6270
+ let t = nl(e);
6271
+ return t.interval = e.interval, t.metrics = e.metrics.map(rl), e.by?.length && (t.by = e.by), e.ranges?.length && (t.ranges = e.ranges), e.limit !== void 0 && (t.limit = e.limit), t;
6099
6272
  }
6100
- function Vc(e, t) {
6101
- let n = Hc(e);
6102
- return n.by = e.by, n.metrics = (e.metrics?.length ? e.metrics : [t]).map(Uc), e.ranges?.length && (n.ranges = e.ranges), e.limit !== void 0 && (n.limit = e.limit), n;
6273
+ function tl(e, t) {
6274
+ let n = nl(e);
6275
+ return n.by = e.by, n.metrics = (e.metrics?.length ? e.metrics : [t]).map(rl), e.ranges?.length && (n.ranges = e.ranges), e.limit !== void 0 && (n.limit = e.limit), n;
6103
6276
  }
6104
- function Hc(e) {
6277
+ function nl(e) {
6105
6278
  let t = mi(e.timeRange), n = { timeRange: {
6106
6279
  from: new Date(t.from).toISOString(),
6107
6280
  to: new Date(t.to).toISOString()
6108
- } }, r = Ac(e.filters);
6281
+ } }, r = Wc(e.filters);
6109
6282
  return r && (n.filters = r), n;
6110
6283
  }
6111
- function Uc(e) {
6112
- let t = Rc(e), n = {
6284
+ function rl(e) {
6285
+ let t = Qc(e), n = {
6113
6286
  name: t.name,
6114
6287
  measures: t.measures
6115
- }, r = Ac(e.filters);
6288
+ }, r = Wc(e.filters);
6116
6289
  return r && (n.filters = r), "sorts" in e && e.sorts?.length && (n.sorts = e.sorts), n;
6117
6290
  }
6118
- function Wc(e, t) {
6291
+ function il(e, t) {
6119
6292
  let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = {
6120
- name: t?.defaultFacetMetric?.name ?? Nc.name,
6121
- measures: t?.defaultFacetMetric?.measures?.length ? [...t.defaultFacetMetric.measures] : [...Nc.measures]
6293
+ name: t?.defaultFacetMetric?.name ?? qc.name,
6294
+ measures: t?.defaultFacetMetric?.measures?.length ? [...t.defaultFacetMetric.measures] : [...qc.measures]
6122
6295
  };
6123
6296
  async function a(i, a, o) {
6124
6297
  let s = {
6125
6298
  method: "POST",
6126
- headers: Mc({ "Content-Type": "application/json" }, jc(t?.headers)),
6299
+ headers: Kc({ "Content-Type": "application/json" }, Gc(t?.headers)),
6127
6300
  body: JSON.stringify(a),
6128
6301
  signal: o
6129
6302
  };
@@ -6134,19 +6307,19 @@ function Wc(e, t) {
6134
6307
  }
6135
6308
  return {
6136
6309
  async fetchTimeSeries(e) {
6137
- return Lc(await a("/analytics/time-series", Bc(e), e.signal));
6310
+ return Zc(await a("/analytics/time-series", el(e), e.signal));
6138
6311
  },
6139
6312
  async fetchFacets(e) {
6140
- return Ic(await a("/analytics/facets", Vc(e, i), e.signal));
6313
+ return Xc(await a("/analytics/facets", tl(e, i), e.signal));
6141
6314
  },
6142
6315
  async fetchMeasures(e) {
6143
- return Pc(await a("/analytics/measures", zc(e), e.signal));
6316
+ return Jc(await a("/analytics/measures", $c(e), e.signal));
6144
6317
  }
6145
6318
  };
6146
6319
  }
6147
6320
  //#endregion
6148
6321
  //#region src/data-sources/http-filter-source.ts
6149
- function Gc(e) {
6322
+ function al(e) {
6150
6323
  return {
6151
6324
  EQ: "eq",
6152
6325
  IN: "in",
@@ -6159,14 +6332,14 @@ function Gc(e) {
6159
6332
  CONTAINS: "contains"
6160
6333
  }[e] ?? e.toLowerCase();
6161
6334
  }
6162
- function Kc(e) {
6335
+ function ol(e) {
6163
6336
  return e === "ENUM" ? "enum" : "async";
6164
6337
  }
6165
- function qc(e, t) {
6338
+ function sl(e, t) {
6166
6339
  let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials;
6167
6340
  function i(e) {
6168
- let n = { ...e }, i = jc(t?.headers);
6169
- return (e?.headers || i) && (n.headers = Mc(e?.headers, i)), r && (n.credentials = r), n;
6341
+ let n = { ...e }, i = Gc(t?.headers);
6342
+ return (e?.headers || i) && (n.headers = Kc(e?.headers, i)), r && (n.credentials = r), n;
6170
6343
  }
6171
6344
  function a(t) {
6172
6345
  return async (r) => {
@@ -6192,7 +6365,7 @@ function qc(e, t) {
6192
6365
  let r = await n(`${e}/observability/filters/definition`, i({ signal: t }));
6193
6366
  if (!r.ok) throw Error(`[gamma-lib-observability] HTTP ${r.status} on GET filters/definition`);
6194
6367
  return (await r.json()).data.map((e) => {
6195
- let t = Kc(e.type), n = e.operators.map(Gc), r = e.apiTypes;
6368
+ let t = ol(e.type), n = e.operators.map(al), r = e.apiTypes;
6196
6369
  if (t === "enum") {
6197
6370
  let i = (e.enumValues ?? []).map((e) => ({
6198
6371
  value: e,
@@ -6233,13 +6406,13 @@ function qc(e, t) {
6233
6406
  }
6234
6407
  //#endregion
6235
6408
  //#region src/data-sources/http-logs-source.ts
6236
- var Jc = "/logs/search", Yc = 10 * 365.25 * 864e5;
6237
- function Xc(e, t) {
6238
- let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.searchPath ?? Jc, a;
6409
+ var cl = "/logs/search", ll = 10 * 365.25 * 864e5;
6410
+ function ul(e, t) {
6411
+ let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.searchPath ?? cl, a;
6239
6412
  function o(e) {
6240
6413
  let n = {
6241
6414
  method: "POST",
6242
- headers: Mc({ "Content-Type": "application/json" }, e, jc(t?.headers))
6415
+ headers: Kc({ "Content-Type": "application/json" }, e, Gc(t?.headers))
6243
6416
  };
6244
6417
  return r && (n.credentials = r), n;
6245
6418
  }
@@ -6259,7 +6432,7 @@ function Xc(e, t) {
6259
6432
  let r = {
6260
6433
  timeRange: c(a ?? {
6261
6434
  type: "absolute",
6262
- from: Date.now() - Yc,
6435
+ from: Date.now() - ll,
6263
6436
  to: Date.now()
6264
6437
  }),
6265
6438
  filters: [{
@@ -6277,7 +6450,7 @@ function Xc(e, t) {
6277
6450
  async fetchLogs(e) {
6278
6451
  let t = mi(e.timeRange);
6279
6452
  a = t;
6280
- let r = Ac(e.filters), l = { timeRange: c(t) };
6453
+ let r = Wc(e.filters), l = { timeRange: c(t) };
6281
6454
  r && (l.filters = r);
6282
6455
  let u = o();
6283
6456
  u.body = JSON.stringify(l), e.signal && (u.signal = e.signal);
@@ -6296,30 +6469,30 @@ function Xc(e, t) {
6296
6469
  }
6297
6470
  //#endregion
6298
6471
  //#region src/data-sources/http-traces-source.ts
6299
- var Zc = "/observability/traces/search";
6300
- function Qc(e) {
6472
+ var dl = "/observability/traces/search";
6473
+ function fl(e) {
6301
6474
  return e / 1e6;
6302
6475
  }
6303
- function $c(e) {
6476
+ function pl(e) {
6304
6477
  return e;
6305
6478
  }
6306
- function el(e) {
6479
+ function ml(e) {
6307
6480
  return {
6308
6481
  name: e.name,
6309
6482
  timestampEpochMs: e.timestampEpochMs,
6310
- attributes: $c(e.attributes)
6483
+ attributes: pl(e.attributes)
6311
6484
  };
6312
6485
  }
6313
- function tl(e) {
6486
+ function hl(e) {
6314
6487
  return {
6315
6488
  timestampEpochMs: e.timestampEpochMs,
6316
6489
  body: e.body,
6317
6490
  severity: e.severity,
6318
- attributes: $c(e.attributes)
6491
+ attributes: pl(e.attributes)
6319
6492
  };
6320
6493
  }
6321
- function nl(e) {
6322
- let t = Qc(e.durationNanos);
6494
+ function gl(e) {
6495
+ let t = fl(e.durationNanos);
6323
6496
  return {
6324
6497
  traceId: e.traceId,
6325
6498
  rootOperationName: e.rootOperationName,
@@ -6330,8 +6503,8 @@ function nl(e) {
6330
6503
  status: e.status
6331
6504
  };
6332
6505
  }
6333
- function rl(e) {
6334
- let t = e.startTimeEpochMs, n = Qc(e.durationNanos);
6506
+ function _l(e) {
6507
+ let t = e.startTimeEpochMs, n = fl(e.durationNanos);
6335
6508
  return {
6336
6509
  traceId: e.traceId,
6337
6510
  spanId: e.spanId,
@@ -6344,27 +6517,27 @@ function rl(e) {
6344
6517
  status: e.status,
6345
6518
  kind: e.kind,
6346
6519
  attributes: e.attributes,
6347
- events: e.events.map(el),
6348
- payloadLogs: e.payloadLogs.map(tl)
6520
+ events: e.events.map(ml),
6521
+ payloadLogs: e.payloadLogs.map(hl)
6349
6522
  };
6350
6523
  }
6351
- function il(e) {
6352
- let t = e.spans.map(rl);
6524
+ function vl(e) {
6525
+ let t = e.spans.map(_l);
6353
6526
  return {
6354
- ...nl(e),
6527
+ ...gl(e),
6355
6528
  spanCount: t.length,
6356
6529
  spans: t
6357
6530
  };
6358
6531
  }
6359
- function al(e) {
6532
+ function yl(e) {
6360
6533
  return e.endsWith("/search") ? e.slice(0, -7) : e;
6361
6534
  }
6362
- function ol(e, t) {
6363
- let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.searchPath ?? Zc, a = al(i);
6535
+ function bl(e, t) {
6536
+ let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.searchPath ?? dl, a = yl(i);
6364
6537
  function o(e) {
6365
6538
  let n = {
6366
6539
  method: e,
6367
- headers: Mc(e === "GET" ? void 0 : { "Content-Type": "application/json" }, jc(t?.headers))
6540
+ headers: Kc(e === "GET" ? void 0 : { "Content-Type": "application/json" }, Gc(t?.headers))
6368
6541
  };
6369
6542
  return r && (n.credentials = r), n;
6370
6543
  }
@@ -6382,7 +6555,7 @@ function ol(e, t) {
6382
6555
  }
6383
6556
  return {
6384
6557
  async fetchTraces(e) {
6385
- let t = mi(e.timeRange), r = Ac(e.filters), a = {
6558
+ let t = mi(e.timeRange), r = Wc(e.filters), a = {
6386
6559
  apiId: e.apiId,
6387
6560
  timeRange: c(t)
6388
6561
  };
@@ -6393,7 +6566,7 @@ function ol(e, t) {
6393
6566
  if (!u.ok) throw Error(`[gamma-lib-observability] HTTP ${u.status} on POST ${i}`);
6394
6567
  let d = await u.json();
6395
6568
  return {
6396
- entries: (d.data ?? []).map(nl),
6569
+ entries: (d.data ?? []).map(gl),
6397
6570
  totalCount: d.pagination?.totalCount,
6398
6571
  page: d.pagination?.page,
6399
6572
  pageCount: d.pagination?.pageCount
@@ -6404,13 +6577,13 @@ function ol(e, t) {
6404
6577
  t.signal && (i.signal = t.signal);
6405
6578
  let s = await n(r, i);
6406
6579
  if (!s.ok) throw Error(`[gamma-lib-observability] HTTP ${s.status} on GET ${a}/${t.traceId}`);
6407
- return il(await s.json());
6580
+ return vl(await s.json());
6408
6581
  }
6409
6582
  };
6410
6583
  }
6411
6584
  //#endregion
6412
6585
  //#region src/routing/DashboardListPage.tsx
6413
- function sl({ templates: e }) {
6586
+ function xl({ templates: e }) {
6414
6587
  let t = a(), n = E(() => ja(e, t), [e, t]), r = E(() => [{
6415
6588
  id: "name",
6416
6589
  accessorKey: "label",
@@ -6444,7 +6617,7 @@ function sl({ templates: e }) {
6444
6617
  }
6445
6618
  //#endregion
6446
6619
  //#region src/routing/detail-filter.ts
6447
- function cl(e, t, n) {
6620
+ function Sl(e, t, n) {
6448
6621
  let r = e.filter((e) => e.field !== t);
6449
6622
  return r.push({
6450
6623
  field: t,
@@ -6453,7 +6626,7 @@ function cl(e, t, n) {
6453
6626
  value: [n]
6454
6627
  }), r;
6455
6628
  }
6456
- function ll(e, t) {
6629
+ function Cl(e, t) {
6457
6630
  let n = qn({
6458
6631
  conditions: [...e],
6459
6632
  timeRange: t
@@ -6462,9 +6635,9 @@ function ll(e, t) {
6462
6635
  }
6463
6636
  //#endregion
6464
6637
  //#region src/routing/LogsRouteElement.tsx
6465
- function ul({ columns: e, getRowId: t, onRowClickOverride: n, detailConfig: r, detailMode: i, pageSize: a, scopeFilterField: o, columnVisibilityStorageKey: s, analyticsFilterMapping: c }) {
6638
+ function wl({ columns: e, getRowId: t, onRowClickOverride: n, detailConfig: r, detailMode: i, pageSize: a, scopeFilterField: o, columnVisibilityStorageKey: s, analyticsFilterMapping: c }) {
6466
6639
  let l = !n && !!r && !!t;
6467
- return l && i === "drawer" && r && t ? /* @__PURE__ */ A(dl, {
6640
+ return l && i === "drawer" && r && t ? /* @__PURE__ */ A(Tl, {
6468
6641
  columns: e,
6469
6642
  getRowId: t,
6470
6643
  detailConfig: r,
@@ -6472,7 +6645,7 @@ function ul({ columns: e, getRowId: t, onRowClickOverride: n, detailConfig: r, d
6472
6645
  scopeFilterField: o,
6473
6646
  columnVisibilityStorageKey: s,
6474
6647
  analyticsFilterMapping: c
6475
- }) : /* @__PURE__ */ A(fl, {
6648
+ }) : /* @__PURE__ */ A(El, {
6476
6649
  columns: e,
6477
6650
  getRowId: t,
6478
6651
  onRowClickOverride: n,
@@ -6483,13 +6656,13 @@ function ul({ columns: e, getRowId: t, onRowClickOverride: n, detailConfig: r, d
6483
6656
  analyticsFilterMapping: c
6484
6657
  });
6485
6658
  }
6486
- function dl({ columns: e, getRowId: t, detailConfig: n, pageSize: r, scopeFilterField: i, columnVisibilityStorageKey: a, analyticsFilterMapping: o }) {
6659
+ function Tl({ columns: e, getRowId: t, detailConfig: n, pageSize: r, scopeFilterField: i, columnVisibilityStorageKey: a, analyticsFilterMapping: o }) {
6487
6660
  let [s, c] = O(void 0), [l, u] = O([]), { filters: d, setFilters: f } = za(), p = E(() => s ? l.findIndex((e) => t(e) === s) : -1, [
6488
6661
  s,
6489
6662
  l,
6490
6663
  t
6491
6664
  ]), m = C((e) => c(t(e)), [t]), h = C((e, t) => {
6492
- f(cl(d, e, t)), c(void 0);
6665
+ f(Sl(d, e, t)), c(void 0);
6493
6666
  }, [d, f]), g = C(() => {
6494
6667
  let e = l[p - 1];
6495
6668
  e && c(t(e));
@@ -6525,7 +6698,7 @@ function dl({ columns: e, getRowId: t, detailConfig: n, pageSize: r, scopeFilter
6525
6698
  hasNext: p >= 0 && p < l.length - 1
6526
6699
  })] });
6527
6700
  }
6528
- function fl({ columns: e, getRowId: t, onRowClickOverride: n, builtInDetailEnabled: r, pageSize: i, scopeFilterField: a, columnVisibilityStorageKey: o, analyticsFilterMapping: s }) {
6701
+ function El({ columns: e, getRowId: t, onRowClickOverride: n, builtInDetailEnabled: r, pageSize: i, scopeFilterField: a, columnVisibilityStorageKey: o, analyticsFilterMapping: s }) {
6529
6702
  let c = Yt(), { pathname: l } = Jt();
6530
6703
  return /* @__PURE__ */ A(vo, {
6531
6704
  columns: e,
@@ -6551,14 +6724,14 @@ function fl({ columns: e, getRowId: t, onRowClickOverride: n, builtInDetailEnabl
6551
6724
  }
6552
6725
  //#endregion
6553
6726
  //#region src/routing/ObservabilityDashboardPage.tsx
6554
- function pl(e) {
6727
+ function Dl(e) {
6555
6728
  let [t] = Xt(), n = t.get("live");
6556
6729
  return /* @__PURE__ */ A(sn, {
6557
6730
  config: { defaultEnabled: n === "1" || n === "true" },
6558
- children: /* @__PURE__ */ A(ml, { ...e })
6731
+ children: /* @__PURE__ */ A(Ol, { ...e })
6559
6732
  });
6560
6733
  }
6561
- function ml({ templates: e, scopeFilterField: t, externalLinks: n }) {
6734
+ function Ol({ templates: e, scopeFilterField: t, externalLinks: n }) {
6562
6735
  let { dashboardId: r } = K(), i = a(), o = ln(), [, s] = Xt(), c = E(() => ja(e, i), [e, i]).find((e) => e.id === r), { timeRange: l, filters: u, setTimeRange: d, setFilters: f } = za(), p = kn(u, fn()), m = o?.isLive ?? !1;
6563
6736
  T(() => {
6564
6737
  s((e) => {
@@ -6620,7 +6793,7 @@ function ml({ templates: e, scopeFilterField: t, externalLinks: n }) {
6620
6793
  }
6621
6794
  //#endregion
6622
6795
  //#region src/data-sources/http-traces-filter-source.ts
6623
- function hl(e) {
6796
+ function kl(e) {
6624
6797
  return {
6625
6798
  EQ: "eq",
6626
6799
  IN: "in",
@@ -6633,14 +6806,14 @@ function hl(e) {
6633
6806
  CONTAINS: "contains"
6634
6807
  }[e] ?? e.toLowerCase();
6635
6808
  }
6636
- function gl(e) {
6809
+ function Al(e) {
6637
6810
  return e === "ENUM" || e === "BOOLEAN" ? "enum" : "async";
6638
6811
  }
6639
- function _l(e, t) {
6812
+ function jl(e, t) {
6640
6813
  let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.module;
6641
6814
  function a(e) {
6642
- let n = { ...e }, i = jc(t?.headers);
6643
- return (e?.headers || i) && (n.headers = Mc(e?.headers, i)), r && (n.credentials = r), n;
6815
+ let n = { ...e }, i = Gc(t?.headers);
6816
+ return (e?.headers || i) && (n.headers = Kc(e?.headers, i)), r && (n.credentials = r), n;
6644
6817
  }
6645
6818
  function o(t) {
6646
6819
  return async (r) => {
@@ -6666,7 +6839,7 @@ function _l(e, t) {
6666
6839
  let r = await n(`${e}/observability/traces/filters/definition`, a({ signal: t }));
6667
6840
  if (!r.ok) throw Error(`[gamma-lib-observability] HTTP ${r.status} on GET traces/filters/definition`);
6668
6841
  return (await r.json()).data.map((e) => {
6669
- let t = gl(e.type), n = e.operators.map(hl);
6842
+ let t = Al(e.type), n = e.operators.map(kl);
6670
6843
  if (e.type === "BOOLEAN") return {
6671
6844
  field: e.name,
6672
6845
  label: e.label,
@@ -6709,8 +6882,8 @@ function _l(e, t) {
6709
6882
  }
6710
6883
  //#endregion
6711
6884
  //#region src/routing/TracingFilterProvider.tsx
6712
- function vl({ baseUrl: e, http: t, module: n, children: r }) {
6713
- let i = E(() => _l(e, {
6885
+ function Ml({ baseUrl: e, http: t, module: n, children: r }) {
6886
+ let i = E(() => jl(e, {
6714
6887
  ...t,
6715
6888
  module: n
6716
6889
  }), [
@@ -6732,15 +6905,15 @@ function vl({ baseUrl: e, http: t, module: n, children: r }) {
6732
6905
  }
6733
6906
  //#endregion
6734
6907
  //#region src/routing/TracesRouteElement.tsx
6735
- function yl({ detailMode: e, pageSize: t, columnVisibilityStorageKey: n, toolbarStart: r, emptyVariant: i }) {
6736
- return A(e === "drawer" ? bl : xl, {
6908
+ function Nl({ detailMode: e, pageSize: t, columnVisibilityStorageKey: n, toolbarStart: r, emptyVariant: i }) {
6909
+ return A(e === "drawer" ? Pl : Fl, {
6737
6910
  pageSize: t,
6738
6911
  columnVisibilityStorageKey: n,
6739
6912
  toolbarStart: r,
6740
6913
  emptyVariant: i
6741
6914
  });
6742
6915
  }
6743
- function bl({ pageSize: e, columnVisibilityStorageKey: t, toolbarStart: n, emptyVariant: r }) {
6916
+ function Pl({ pageSize: e, columnVisibilityStorageKey: t, toolbarStart: n, emptyVariant: r }) {
6744
6917
  let { apiId: i } = K(), [a, o] = O(void 0), [s, c] = O([]), l = E(() => a ? s.findIndex((e) => e.traceId === a) : -1, [a, s]), u = C((e) => o(e.traceId), []), d = C(() => o(void 0), []), f = C(() => {
6745
6918
  let e = s[l - 1];
6746
6919
  e && o(e.traceId);
@@ -6755,7 +6928,7 @@ function bl({ pageSize: e, columnVisibilityStorageKey: t, toolbarStart: n, empty
6755
6928
  columnVisibilityStorageKey: t,
6756
6929
  toolbarStart: n,
6757
6930
  emptyVariant: r
6758
- }), /* @__PURE__ */ A(Sc, {
6931
+ }), /* @__PURE__ */ A(Ic, {
6759
6932
  apiId: i ?? "",
6760
6933
  traceId: a,
6761
6934
  onClose: d,
@@ -6765,7 +6938,7 @@ function bl({ pageSize: e, columnVisibilityStorageKey: t, toolbarStart: n, empty
6765
6938
  hasNext: l >= 0 && l < s.length - 1
6766
6939
  })] });
6767
6940
  }
6768
- function xl({ pageSize: e, columnVisibilityStorageKey: t, toolbarStart: n, emptyVariant: r }) {
6941
+ function Fl({ pageSize: e, columnVisibilityStorageKey: t, toolbarStart: n, emptyVariant: r }) {
6769
6942
  let i = Yt(), { pathname: a } = Jt(), { apiId: o } = K();
6770
6943
  return /* @__PURE__ */ A(Ps, {
6771
6944
  onRowClick: E(() => {
@@ -6785,7 +6958,7 @@ function xl({ pageSize: e, columnVisibilityStorageKey: t, toolbarStart: n, empty
6785
6958
  }
6786
6959
  //#endregion
6787
6960
  //#region src/routing/TracingScreen.tsx
6788
- function Sl(e) {
6961
+ function Il(e) {
6789
6962
  let t = e !== void 0 && Ks(e), n = N({
6790
6963
  queryKey: J.tracingApis(),
6791
6964
  queryFn: ({ signal: t }) => e(t),
@@ -6809,19 +6982,19 @@ function Sl(e) {
6809
6982
  refetch: () => {}
6810
6983
  };
6811
6984
  }
6812
- function Cl(e) {
6985
+ function Ll(e) {
6813
6986
  return E(() => {
6814
6987
  if (!(e === void 0 || !Js(e))) return qs(e);
6815
6988
  }, [e]);
6816
6989
  }
6817
- function wl({ loadTracingApis: e, detailMode: t = "drawer", pageSize: n, columnVisibilityStorageKey: r }) {
6818
- let { apiId: i } = K(), a = Yt(), { pathname: o } = Jt(), { options: s, loading: c, error: l, refetch: u } = Sl(e), d = Cl(e), f = e !== void 0, p = E(() => {
6990
+ function Rl({ loadTracingApis: e, detailMode: t = "drawer", pageSize: n, columnVisibilityStorageKey: r }) {
6991
+ let { apiId: i } = K(), a = Yt(), { pathname: o } = Jt(), { options: s, loading: c, error: l, refetch: u } = Il(e), d = Ll(e), f = e !== void 0, p = E(() => {
6819
6992
  let e = o.replace(/\/+$/, "");
6820
6993
  if (!i) return e;
6821
6994
  let t = e.lastIndexOf("/");
6822
6995
  return t > 0 ? e.slice(0, t) : e;
6823
6996
  }, [o, i]), m = C((e) => a(`${p}/${encodeURIComponent(e)}`), [a, p]);
6824
- return /* @__PURE__ */ A(yl, {
6997
+ return /* @__PURE__ */ A(Nl, {
6825
6998
  detailMode: t,
6826
6999
  pageSize: n,
6827
7000
  columnVisibilityStorageKey: r,
@@ -6843,29 +7016,29 @@ function wl({ loadTracingApis: e, detailMode: t = "drawer", pageSize: n, columnV
6843
7016
  }
6844
7017
  //#endregion
6845
7018
  //#region src/routing/ObservabilityRoutes.tsx
6846
- var Tl = [];
6847
- function El(e, t, n) {
7019
+ var zl = [];
7020
+ function Bl(e, t, n) {
6848
7021
  return e ? /* @__PURE__ */ A(g, {
6849
7022
  dataSource: t,
6850
7023
  children: n
6851
7024
  }) : n;
6852
7025
  }
6853
- function Dl(e, t, n) {
7026
+ function Vl(e, t, n) {
6854
7027
  return e ? /* @__PURE__ */ A(s, {
6855
7028
  dataSource: t,
6856
7029
  children: n
6857
7030
  }) : n;
6858
7031
  }
6859
- function Ol({ children: e }) {
7032
+ function Hl({ children: e }) {
6860
7033
  let t = fn(), { data: n, isLoading: r, isError: i } = N({
6861
7034
  queryKey: ["observability", "filter-definitions"],
6862
7035
  queryFn: ({ signal: e }) => t.fetchFilterDefinitions(e),
6863
7036
  enabled: !!t,
6864
7037
  staleTime: 300 * 1e3
6865
7038
  });
6866
- return r ? /* @__PURE__ */ A(kl, {}) : i || !n ? /* @__PURE__ */ A(k, { children: e([]) }) : /* @__PURE__ */ A(k, { children: e(n) });
7039
+ return r ? /* @__PURE__ */ A(Ul, {}) : i || !n ? /* @__PURE__ */ A(k, { children: e([]) }) : /* @__PURE__ */ A(k, { children: e(n) });
6867
7040
  }
6868
- function kl() {
7041
+ function Ul() {
6869
7042
  return /* @__PURE__ */ j("div", {
6870
7043
  className: "flex items-center gap-2 p-4",
6871
7044
  children: [
@@ -6875,35 +7048,35 @@ function kl() {
6875
7048
  ]
6876
7049
  });
6877
7050
  }
6878
- function Al({ baseUrl: e, http: t, children: n }) {
7051
+ function Wl({ baseUrl: e, http: t, children: n }) {
6879
7052
  let { apiId: r } = K();
6880
- return /* @__PURE__ */ A(vl, {
7053
+ return /* @__PURE__ */ A(Ml, {
6881
7054
  baseUrl: e,
6882
7055
  http: t,
6883
7056
  module: r,
6884
7057
  children: n
6885
7058
  });
6886
7059
  }
6887
- function jl({ templates: e, contextFilters: t }) {
7060
+ function Gl({ templates: e, contextFilters: t }) {
6888
7061
  let n = a(), r = E(() => ja(e, n), [e, n]);
6889
7062
  return r.length === 1 && r[0] ? /* @__PURE__ */ A(Kt, {
6890
7063
  to: `./${r[0].id}`,
6891
7064
  replace: !0
6892
7065
  }) : /* @__PURE__ */ A(bn, {
6893
7066
  filters: t,
6894
- children: /* @__PURE__ */ A(sl, { templates: e })
7067
+ children: /* @__PURE__ */ A(xl, { templates: e })
6895
7068
  });
6896
7069
  }
6897
- function Ml({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage: s, logsDataSource: l, logsColumns: u, logsOnRowClick: d, logsGetRowId: f, logsDetailBasePath: p, tracesDataSource: g, loadTracingApis: _, config: v }) {
6898
- let y = hn(), b = n ?? y, x = a(), S = c(), ee = E(() => Wc(e, b), [e, b]), te = r !== void 0 || S === null, ne = r ?? S ?? ee, re = E(() => qc(e, b), [e, b]), C = i(), w = E(() => v.features.logs?.enabled ? Xc(e, b) : void 0, [
7070
+ function Kl({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage: s, logsDataSource: l, logsColumns: u, logsOnRowClick: d, logsGetRowId: f, logsDetailBasePath: p, tracesDataSource: g, loadTracingApis: _, config: v }) {
7071
+ let y = hn(), b = n ?? y, x = a(), S = c(), ee = E(() => il(e, b), [e, b]), te = r !== void 0 || S === null, ne = r ?? S ?? ee, re = E(() => sl(e, b), [e, b]), C = i(), w = E(() => v.features.logs?.enabled ? ul(e, b) : void 0, [
6899
7072
  e,
6900
7073
  b,
6901
7074
  v.features.logs?.enabled
6902
- ]), T = l ?? C ?? w, ie = l !== void 0 || C === null, D = t(), O = E(() => v.features.tracing?.enabled ? ol(e, b) : void 0, [
7075
+ ]), T = l ?? C ?? w, ie = l !== void 0 || C === null, D = t(), O = E(() => v.features.tracing?.enabled ? bl(e, b) : void 0, [
6903
7076
  e,
6904
7077
  b,
6905
7078
  v.features.tracing?.enabled
6906
- ]), M = g ?? D ?? O, ae = g !== void 0 || D === null, N = v.features.dashboards, P = v.features.logs, F = v.features.tracing, oe = N?.contextFilters ?? Tl, se = P?.contextFilters ?? Tl, I = P?.enabled, L = P?.logDetail, ce = P?.analyticsFilterMapping, le = E(() => {
7079
+ ]), M = g ?? D ?? O, ae = g !== void 0 || D === null, N = v.features.dashboards, P = v.features.logs, F = v.features.tracing, oe = N?.contextFilters ?? zl, se = P?.contextFilters ?? zl, I = P?.enabled, L = P?.logDetail, ce = P?.analyticsFilterMapping, le = E(() => {
6907
7080
  if (I) return L || $o({
6908
7081
  basePath: p ?? "",
6909
7082
  contextChart: { analyticsFilterMapping: ce }
@@ -6918,7 +7091,7 @@ function Ml({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage:
6918
7091
  children: /* @__PURE__ */ j(qt, { children: [
6919
7092
  N?.enabled && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(G, {
6920
7093
  path: "dashboards",
6921
- element: /* @__PURE__ */ A(jl, {
7094
+ element: /* @__PURE__ */ A(Gl, {
6922
7095
  templates: N.templates,
6923
7096
  contextFilters: oe
6924
7097
  })
@@ -6926,7 +7099,7 @@ function Ml({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage:
6926
7099
  path: "dashboards/:dashboardId",
6927
7100
  element: /* @__PURE__ */ A(bn, {
6928
7101
  filters: oe,
6929
- children: /* @__PURE__ */ A(pl, {
7102
+ children: /* @__PURE__ */ A(Dl, {
6930
7103
  templates: N.templates,
6931
7104
  scopeFilterField: N.scopeFilterField,
6932
7105
  externalLinks: N.externalLinks
@@ -6937,7 +7110,7 @@ function Ml({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage:
6937
7110
  path: "logs",
6938
7111
  element: /* @__PURE__ */ A(bn, {
6939
7112
  filters: se,
6940
- children: s ?? (T && u ? El(ie, T, /* @__PURE__ */ A(ul, {
7113
+ children: s ?? (T && u ? Bl(ie, T, /* @__PURE__ */ A(wl, {
6941
7114
  columns: u,
6942
7115
  getRowId: f,
6943
7116
  onRowClickOverride: d,
@@ -6957,16 +7130,16 @@ function Ml({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage:
6957
7130
  path: "logs/:logId",
6958
7131
  element: /* @__PURE__ */ A(bn, {
6959
7132
  filters: se,
6960
- children: El(ie, T, /* @__PURE__ */ A(Nl, { config: le }))
7133
+ children: Bl(ie, T, /* @__PURE__ */ A(ql, { config: le }))
6961
7134
  })
6962
7135
  }),
6963
7136
  F?.enabled && x["observability.traces.read"] && M && /* @__PURE__ */ j(k, { children: [
6964
7137
  /* @__PURE__ */ A(G, {
6965
7138
  path: "tracing",
6966
- element: Dl(ae, M, /* @__PURE__ */ A(Al, {
7139
+ element: Vl(ae, M, /* @__PURE__ */ A(Wl, {
6967
7140
  baseUrl: e,
6968
7141
  http: b,
6969
- children: /* @__PURE__ */ A(wl, {
7142
+ children: /* @__PURE__ */ A(Rl, {
6970
7143
  loadTracingApis: _,
6971
7144
  detailMode: F.detailMode ?? "drawer",
6972
7145
  pageSize: F.pageSize,
@@ -6976,10 +7149,10 @@ function Ml({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage:
6976
7149
  }),
6977
7150
  /* @__PURE__ */ A(G, {
6978
7151
  path: "tracing/:apiId",
6979
- element: Dl(ae, M, /* @__PURE__ */ A(Al, {
7152
+ element: Vl(ae, M, /* @__PURE__ */ A(Wl, {
6980
7153
  baseUrl: e,
6981
7154
  http: b,
6982
- children: /* @__PURE__ */ A(wl, {
7155
+ children: /* @__PURE__ */ A(Rl, {
6983
7156
  loadTracingApis: _,
6984
7157
  detailMode: F.detailMode ?? "drawer",
6985
7158
  pageSize: F.pageSize,
@@ -6989,7 +7162,7 @@ function Ml({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage:
6989
7162
  }),
6990
7163
  /* @__PURE__ */ A(G, {
6991
7164
  path: "tracing/:apiId/:traceId",
6992
- element: Dl(ae, M, /* @__PURE__ */ A(xc, {}))
7165
+ element: Vl(ae, M, /* @__PURE__ */ A(Fc, {}))
6993
7166
  })
6994
7167
  ] }),
6995
7168
  /* @__PURE__ */ A(G, {
@@ -7011,21 +7184,21 @@ function Ml({ baseUrl: e, http: n, dataSource: r, filterProviders: o, logsPage:
7011
7184
  ] })
7012
7185
  }), fe = N?.enabled || P?.enabled ? /* @__PURE__ */ A(dn, {
7013
7186
  source: re,
7014
- children: o ? de(o) : /* @__PURE__ */ A(Ol, { children: (e) => de(e) })
7187
+ children: o ? de(o) : /* @__PURE__ */ A(Hl, { children: (e) => de(e) })
7015
7188
  }) : de(o ?? []);
7016
7189
  return te ? /* @__PURE__ */ A(m, {
7017
7190
  dataSource: ne,
7018
7191
  children: fe
7019
7192
  }) : fe;
7020
7193
  }
7021
- function Nl({ config: e }) {
7194
+ function ql({ config: e }) {
7022
7195
  let t = Yt(), { filters: n, timeRange: r } = za();
7023
7196
  return /* @__PURE__ */ A(Cs, {
7024
7197
  config: e,
7025
7198
  onFilter: C((e, i) => {
7026
7199
  t({
7027
7200
  pathname: "..",
7028
- search: ll(cl(n, e, i), r)
7201
+ search: Cl(Sl(n, e, i), r)
7029
7202
  }, { relative: "path" });
7030
7203
  }, [
7031
7204
  n,
@@ -7036,7 +7209,7 @@ function Nl({ config: e }) {
7036
7209
  }
7037
7210
  //#endregion
7038
7211
  //#region src/routing/define-observability-features.ts
7039
- var Pl = {
7212
+ var Jl = {
7040
7213
  dashboards: {
7041
7214
  icon: st,
7042
7215
  title: "Dashboards",
@@ -7056,10 +7229,10 @@ var Pl = {
7056
7229
  showInNav: !0
7057
7230
  }
7058
7231
  };
7059
- function Fl(e) {
7060
- let t = e.basePath ?? "observe", n = Il(e), r = Ll(e, n, t), i = n.map((e) => `${t}/${e}`), a = Rl(n, t);
7232
+ function Yl(e) {
7233
+ let t = e.basePath ?? "observe", n = Xl(e), r = Zl(e, n, t), i = n.map((e) => `${t}/${e}`), a = Ql(n, t);
7061
7234
  function o(t) {
7062
- return ee(Ml, {
7235
+ return ee(Kl, {
7063
7236
  ...t,
7064
7237
  config: e
7065
7238
  });
@@ -7088,13 +7261,13 @@ function Fl(e) {
7088
7261
  breadcrumbSegments: c
7089
7262
  };
7090
7263
  }
7091
- function Il(e) {
7264
+ function Xl(e) {
7092
7265
  let t = [];
7093
- 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) => Pl[e].order - Pl[t].order);
7266
+ 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) => Jl[e].order - Jl[t].order);
7094
7267
  }
7095
- function Ll(e, t, n) {
7096
- let r = t.filter((e) => Pl[e].showInNav).map((t) => {
7097
- let r = Pl[t], i = e.nav.overrides?.[t];
7268
+ function Zl(e, t, n) {
7269
+ let r = t.filter((e) => Jl[e].showInNav).map((t) => {
7270
+ let r = Jl[t], i = e.nav.overrides?.[t];
7098
7271
  return {
7099
7272
  key: `${n}/${t}`,
7100
7273
  title: i?.title ?? r.title,
@@ -7106,10 +7279,10 @@ function Ll(e, t, n) {
7106
7279
  items: r
7107
7280
  };
7108
7281
  }
7109
- function Rl(e, t) {
7282
+ function Ql(e, t) {
7110
7283
  let n = {};
7111
7284
  for (let r of e) {
7112
- let e = Pl[r], i = `${t}/${r}`;
7285
+ let e = Jl[r], i = `${t}/${r}`;
7113
7286
  n[i] = {
7114
7287
  path: `${t}/${r}`,
7115
7288
  label: e.title
@@ -7119,7 +7292,7 @@ function Rl(e, t) {
7119
7292
  }
7120
7293
  //#endregion
7121
7294
  //#region src/build-observability-base-url.ts
7122
- function zl(e, t, n) {
7295
+ function $l(e, t, n) {
7123
7296
  let r = e;
7124
7297
  if (n?.useDevProxy) try {
7125
7298
  r = new URL(r).pathname;
@@ -7127,4 +7300,4 @@ function zl(e, t, n) {
7127
7300
  return r = r.replace(/\/+$/, ""), `${r}/v2/environments/${encodeURIComponent(t)}`;
7128
7301
  }
7129
7302
  //#endregion
7130
- export { ji as BarPresentation, Hn as CODEC_VERSION, o as CapabilityProvider, Ki as CartesianPresentation, bn as ContextFiltersProvider, Wi as DASHBOARD_BUCKET_TARGET, _ as DEFAULT_CAPABILITIES, nn as DEFAULT_MEASURE, Fn as DEFAULT_PERIOD, an as DEFAULT_REFRESH_INTERVAL_MS, q as DEFAULT_STALE_TIME, Un as DEFAULT_TIME_RANGE, f as DashboardPersistenceProvider, Na as DashboardTemplatesProvider, Ta as DashboardView, Xi as DoughnutPresentation, v as FILTER_OPERATORS, ci as FilterBar, $r as FilterChip, Gr as FilterPopoverForm, h as FilterProvidersProvider, Ni as HTTP_STATUS_PALETTE, mn as HttpProvider, Ra as LiveIndicator, sn as LiveRefreshProvider, Z as LogDetailCodeBlock, is as LogDetailContextChart, xs as LogDetailDrawer, ls as LogDetailDrawerShell, Do as LogDetailEmptyField, ps as LogDetailHeader, Q as LogDetailHeadersTable, Oo as LogDetailJsonTree, $ as LogDetailKeyValueGrid, ms as LogDetailMetrics, Cs as LogDetailPage, _s as LogDetailSection, gs as LogDetailSections, Ha as LogSeverityBadge, eo as LogTable, g as LogsDataSourceProvider, vo as LogsExplorerPage, sa as MetricGroupPresentation, fa as MetricPresentation, m as MetricsDataSourceProvider, zn as PERIOD_DISPLAY_LABELS, Rn as PERIOD_LABELS, In as PRESET_CATEGORIES, Ia as QueryErrorBanner, Ln as RELATIVE_PERIODS, Qs as SpanDetailPanel, rr as TimeRangePicker, Sc as TraceDetailDrawer, xc as TraceDetailPage, gc as TraceDetailShell, Ps as TraceExplorerPage, cc as TraceLineage, Ts as TraceStatusBadge, Ms as TraceTable, mc as TraceTimeline, s as TracesDataSourceProvider, Us as TracingApiSelector, wl as TracingScreen, Oa as WidgetGroup, xa as WidgetItem, Co as buildApiTypeLink, Yr as buildChipLabel, Xr as buildChipLabelParts, Zr as buildChipTooltip, wo as buildDefaultConnectionLogColumns, $o as buildDefaultLogDetailConfig, yo as buildLogsDeepLink, zl as buildObservabilityBaseUrl, Ys as buildTracesDeepLink, _a as clearWidgetRenderers, Gi as computeBucketInterval, oa as computePreviousTimeRange, ea as computeTrend, Mo as connectionLogPreset, Wc as createHttpDataSource, qc as createHttpFilterSource, Xc as createHttpLogsSource, _l as createHttpTracesFilterSource, ol as createHttpTracesSource, Jn as decodeObservabilityState, ka as defineDashboardTemplate, fr as defineFilterProvider, Xo as defineLogDetail, Fl as defineObservabilityFeatures, qn as encodeObservabilityState, Qi as extractMeasureValue, ta as extractSparklineData, bi as facetsToBar, yi as facetsToDoughnut, Ds as formatDuration, Es as formatTraceTime, ir as getLocaleWeekStart, ga as getWidgetRenderer, $t as isBarWidget, Zt as isCartesianWidget, Qt as isDoughnutWidget, tn as isMetricGroupWidget, en as isMetricWidget, Lr as isMultiSelectForFilter, Ks as isTracingApiLegacyLoader, Js as isTracingApiPaginatedLoad, Gs as isTracingApiPaginatedLoader, Ws as isTracingApiPaginatedLoaderConfig, to as mapAnalyticsFilters, $i as measureResultToMetric, Y as mergeFilters, Ri as mergeTimeSeriesToCartesian, Ro as messageLogPreset, Rr as normalizeMembershipOperatorForValues, J as observabilityQueryKeys, Pr as operatorLabel, Fr as operatorNeedsValue, ya as registerDefaultRenderers, ha as registerWidgetRenderer, Aa as resolveDashboardFromTemplate, Fi as resolveGroupColor, Zo as resolveLogDetailVariant, rn as resolveMeasure, Qo as resolvePreset, dr as resolveRelativePeriod, mi as resolveStableTimeRange, qs as resolveTracingApiPaginatedLoader, a as useCapabilities, e as useCapability, X as useContextFilters, l as useDashboardPersistence, Fa as useDashboardTemplate, Pa as useDashboardTemplates, Sn as useFacetsQuery, u as useFilterProvider, p as useFilterProviders, hn as useHttpOptions, cn as useLiveRefresh, os as useLogDetailDrawerExpand, Cn as useLogDetailQuery, r as useLogsDataSource, Dn as useLogsPagedQuery, wn as useLogsQuery, On as useMeasuresQuery, xi as useMergedWidgetFilters, n as useMetricsDataSource, ln as useOptionalLiveRefresh, i as useOptionalLogsDataSource, c as useOptionalMetricsDataSource, t as useOptionalTracesDataSource, gi as useStableTimeRange, An as useTimeSeriesQuery, jn as useTraceDetailQuery, d as useTracesDataSource, Pn as useTracesPagedQuery, fi as useWidgetGroupContext, Uo as webhookLogPreset };
7303
+ export { ji as BarPresentation, Hn as CODEC_VERSION, o as CapabilityProvider, Ki as CartesianPresentation, bn as ContextFiltersProvider, Wi as DASHBOARD_BUCKET_TARGET, _ as DEFAULT_CAPABILITIES, nn as DEFAULT_MEASURE, Fn as DEFAULT_PERIOD, an as DEFAULT_REFRESH_INTERVAL_MS, q as DEFAULT_STALE_TIME, Un as DEFAULT_TIME_RANGE, f as DashboardPersistenceProvider, Na as DashboardTemplatesProvider, Ta as DashboardView, Xi as DoughnutPresentation, v as FILTER_OPERATORS, ci as FilterBar, $r as FilterChip, Gr as FilterPopoverForm, h as FilterProvidersProvider, Ni as HTTP_STATUS_PALETTE, mn as HttpProvider, Ra as LiveIndicator, sn as LiveRefreshProvider, Z as LogDetailCodeBlock, is as LogDetailContextChart, xs as LogDetailDrawer, ls as LogDetailDrawerShell, Do as LogDetailEmptyField, ps as LogDetailHeader, Q as LogDetailHeadersTable, Oo as LogDetailJsonTree, $ as LogDetailKeyValueGrid, ms as LogDetailMetrics, Cs as LogDetailPage, _s as LogDetailSection, gs as LogDetailSections, Ha as LogSeverityBadge, eo as LogTable, g as LogsDataSourceProvider, vo as LogsExplorerPage, sa as MetricGroupPresentation, fa as MetricPresentation, m as MetricsDataSourceProvider, zn as PERIOD_DISPLAY_LABELS, Rn as PERIOD_LABELS, ic as POLICY_POST_EVENT, rc as POLICY_PRE_EVENT, In as PRESET_CATEGORIES, ec as PolicyAttributeDiff, Ia as QueryErrorBanner, Ln as RELATIVE_PERIODS, fc as SpanDetailPanel, rr as TimeRangePicker, Ic as TraceDetailDrawer, Fc as TraceDetailPage, Ac as TraceDetailShell, Ps as TraceExplorerPage, Sc as TraceLineage, Ts as TraceStatusBadge, Ms as TraceTable, Oc as TraceTimeline, s as TracesDataSourceProvider, Us as TracingApiSelector, Rl as TracingScreen, Oa as WidgetGroup, xa as WidgetItem, Co as buildApiTypeLink, Yr as buildChipLabel, Xr as buildChipLabelParts, Zr as buildChipTooltip, wo as buildDefaultConnectionLogColumns, $o as buildDefaultLogDetailConfig, yo as buildLogsDeepLink, $l as buildObservabilityBaseUrl, Ys as buildTracesDeepLink, _a as clearWidgetRenderers, Gi as computeBucketInterval, lc as computePolicyAttributeDiff, oa as computePreviousTimeRange, ea as computeTrend, Mo as connectionLogPreset, il as createHttpDataSource, sl as createHttpFilterSource, ul as createHttpLogsSource, jl as createHttpTracesFilterSource, bl as createHttpTracesSource, Jn as decodeObservabilityState, ka as defineDashboardTemplate, fr as defineFilterProvider, Xo as defineLogDetail, Yl as defineObservabilityFeatures, qn as encodeObservabilityState, Qi as extractMeasureValue, ta as extractSparklineData, bi as facetsToBar, yi as facetsToDoughnut, Ds as formatDuration, Es as formatTraceTime, ir as getLocaleWeekStart, ga as getWidgetRenderer, $t as isBarWidget, Zt as isCartesianWidget, Qt as isDoughnutWidget, tn as isMetricGroupWidget, en as isMetricWidget, Lr as isMultiSelectForFilter, Ks as isTracingApiLegacyLoader, Js as isTracingApiPaginatedLoad, Gs as isTracingApiPaginatedLoader, Ws as isTracingApiPaginatedLoaderConfig, to as mapAnalyticsFilters, $i as measureResultToMetric, Y as mergeFilters, Ri as mergeTimeSeriesToCartesian, Ro as messageLogPreset, Rr as normalizeMembershipOperatorForValues, J as observabilityQueryKeys, Pr as operatorLabel, Fr as operatorNeedsValue, ya as registerDefaultRenderers, ha as registerWidgetRenderer, Aa as resolveDashboardFromTemplate, Fi as resolveGroupColor, Zo as resolveLogDetailVariant, rn as resolveMeasure, Qo as resolvePreset, dr as resolveRelativePeriod, mi as resolveStableTimeRange, qs as resolveTracingApiPaginatedLoader, a as useCapabilities, e as useCapability, X as useContextFilters, l as useDashboardPersistence, Fa as useDashboardTemplate, Pa as useDashboardTemplates, Sn as useFacetsQuery, u as useFilterProvider, p as useFilterProviders, hn as useHttpOptions, cn as useLiveRefresh, os as useLogDetailDrawerExpand, Cn as useLogDetailQuery, r as useLogsDataSource, Dn as useLogsPagedQuery, wn as useLogsQuery, On as useMeasuresQuery, xi as useMergedWidgetFilters, n as useMetricsDataSource, ln as useOptionalLiveRefresh, i as useOptionalLogsDataSource, c as useOptionalMetricsDataSource, t as useOptionalTracesDataSource, gi as useStableTimeRange, An as useTimeSeriesQuery, jn as useTraceDetailQuery, d as useTracesDataSource, Pn as useTracesPagedQuery, fi as useWidgetGroupContext, Uo as webhookLogPreset };