@kong-ui-public/dashboard-renderer 8.14.0 → 8.15.1

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.
@@ -1,18 +1,18 @@
1
- import { ref as O, watchEffect as Kt, inject as ue, provide as Di, toRaw as Oi, computed as w, isRef as zi, isReactive as Ni, toRef as Te, hasInjectionContext as vt, onMounted as Ke, watch as Se, onUnmounted as Le, getCurrentInstance as Mi, readonly as tt, defineComponent as V, resolveComponent as se, unref as x, openBlock as _, createBlock as z, createSlots as Qe, withCtx as I, createElementVNode as j, toDisplayString as Q, renderSlot as De, createCommentVNode as K, normalizeStyle as Ie, normalizeClass as Ce, createVNode as le, mergeProps as Qt, createTextVNode as st, createElementBlock as F, normalizeProps as Li, guardReactiveProps as Ai, defineAsyncComponent as Vt, Fragment as rt, useCssVars as nt, useModel as jt, nextTick as ot, resolveDynamicComponent as Xt, toHandlers as Pi, mergeModels as Fe, renderList as Zt, useTemplateRef as bt } from "vue";
2
- import { isPlatformDatasource as Jt, msToGranularity as it, restoreAfterCapture as wt, prepareForCapture as qi, TimePeriods as Hi, TIMEFRAME_LOOKUP as Ii, formatTime as _t, EXPORT_RECORD_LIMIT as Fi } from "@kong-ui-public/analytics-utilities";
1
+ import { ref as z, watchEffect as Kt, inject as de, provide as Di, toRaw as Oi, computed as w, isRef as zi, isReactive as Ni, toRef as Se, hasInjectionContext as vt, onMounted as Ke, watch as De, onUnmounted as Ae, getCurrentInstance as Mi, readonly as it, defineComponent as K, resolveComponent as se, unref as x, openBlock as _, createBlock as N, createSlots as Qe, withCtx as I, createElementVNode as V, toDisplayString as Y, renderSlot as Oe, createCommentVNode as U, normalizeStyle as Ie, normalizeClass as ke, createVNode as ue, mergeProps as Qt, createTextVNode as rt, createElementBlock as F, normalizeProps as Li, guardReactiveProps as Ai, defineAsyncComponent as Vt, Fragment as nt, useCssVars as ot, useModel as jt, nextTick as at, resolveDynamicComponent as Xt, toHandlers as Pi, mergeModels as Fe, renderList as Zt, useTemplateRef as bt } from "vue";
2
+ import { isPlatformDatasource as Jt, msToGranularity as st, restoreAfterCapture as wt, prepareForCapture as qi, TimePeriods as Hi, TIMEFRAME_LOOKUP as Ii, formatTime as _t, EXPORT_RECORD_LIMIT as Fi } from "@kong-ui-public/analytics-utilities";
3
3
  import { handleQueryError as Bi, SimpleChart as Wi, AnalyticsChart as $i, TopNTable as Gi, CsvExportModal as Ui } from "@kong-ui-public/analytics-chart";
4
4
  import Yi from "swrv";
5
5
  import "axios";
6
6
  import { createI18n as Ki, i18nTComponent as Qi } from "@kong-ui-public/i18n";
7
- import { useAnalyticsConfigStore as at, useDatasourceConfigStore as Ae } from "@kong-ui-public/analytics-config-store";
7
+ import { useAnalyticsConfigStore as lt, useDatasourceConfigStore as Pe } from "@kong-ui-public/analytics-config-store";
8
8
  import { VisibilityOffIcon as Vi, WarningOutlineIcon as ji, WarningIcon as Xi, ProgressIcon as Zi, RefreshIcon as Ji, EditIcon as es, MoreIcon as ts } from "@kong/icons";
9
9
  import { MetricsProvider as is, MetricsConsumer as ss } from "@kong-ui-public/analytics-metric-provider";
10
10
  import { TableDataGrid as rs } from "@kong-ui-public/table-data-grid";
11
11
  var ei = /* @__PURE__ */ ((n) => (n.VALIDATING = "VALIDATING", n.VALIDATING_HAS_DATA = "VALIDATING_HAS_DATA", n.PENDING = "PENDING", n.SUCCESS = "SUCCESS", n.SUCCESS_HAS_DATA = "SUCCESS_HAS_DATA", n.ERROR = "ERROR", n.STALE_IF_ERROR = "STALE_IF_ERROR", n))(ei || {});
12
12
  const ns = (n) => n ? !!// TODO: revisit: currently only the first check ever matters?
13
13
  (Object.keys(n)?.length || n.data?.length || n.data?.data?.length || !n.data?.data && typeof n.data == "object" && Object.keys(n?.data).length) : !1;
14
- function os(n = O({}), e, t, i = ns) {
15
- const s = O(
14
+ function os(n = z({}), e, t, i = ns) {
15
+ const s = z(
16
16
  "PENDING"
17
17
  /* PENDING */
18
18
  );
@@ -66,9 +66,9 @@ function ti() {
66
66
  // Translation component <i18n-t>
67
67
  };
68
68
  }
69
- const Pe = 170, lt = 6, fe = "analytics-query-provider", xt = "{entity-id}", ps = "{cp-id}", ys = "{timeframe}", vs = 30 * 1e3, bs = 3e5, ws = 36e5;
69
+ const qe = 170, ut = 6, ge = "analytics-query-provider", xt = "{entity-id}", ps = "{cp-id}", ys = "{timeframe}", vs = 30 * 1e3, bs = 3e5, ws = 36e5;
70
70
  function _s() {
71
- const n = ue(fe);
71
+ const n = de(ge);
72
72
  return {
73
73
  evaluateFeatureFlag: (t, i) => n ? n.evaluateFeatureFlagFn(t, i) : i
74
74
  };
@@ -76,7 +76,7 @@ function _s() {
76
76
  function xs(n) {
77
77
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
78
78
  }
79
- var Je = { exports: {} }, Et;
79
+ var et = { exports: {} }, Et;
80
80
  function Es() {
81
81
  return Et || (Et = 1, (function(n) {
82
82
  var e = Object.prototype.hasOwnProperty, t = "~";
@@ -137,8 +137,8 @@ function Es() {
137
137
  E[y - 1] = arguments[y];
138
138
  p.fn.apply(p.context, E);
139
139
  } else {
140
- var A = p.length, L;
141
- for (y = 0; y < A; y++)
140
+ var P = p.length, D;
141
+ for (y = 0; y < P; y++)
142
142
  switch (p[y].once && this.removeListener(l, p[y].fn, void 0, !0), T) {
143
143
  case 1:
144
144
  p[y].fn.call(p[y].context);
@@ -153,8 +153,8 @@ function Es() {
153
153
  p[y].fn.call(p[y].context, u, c, f);
154
154
  break;
155
155
  default:
156
- if (!E) for (L = 1, E = new Array(T - 1); L < T; L++)
157
- E[L - 1] = arguments[L];
156
+ if (!E) for (D = 1, E = new Array(T - 1); D < T; D++)
157
+ E[D - 1] = arguments[D];
158
158
  p[y].fn.apply(p[y].context, E);
159
159
  }
160
160
  }
@@ -181,7 +181,7 @@ function Es() {
181
181
  var u;
182
182
  return l ? (u = t ? t + l : l, this._events[u] && a(this, u)) : (this._events = new i(), this._eventsCount = 0), this;
183
183
  }, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = t, o.EventEmitter = o, n.exports = o;
184
- })(Je)), Je.exports;
184
+ })(et)), et.exports;
185
185
  }
186
186
  var Cs = Es();
187
187
  const ks = /* @__PURE__ */ xs(Cs);
@@ -545,7 +545,7 @@ class Os extends ks {
545
545
  }
546
546
  }
547
547
  const zs = () => {
548
- const n = at(), e = ue(fe);
548
+ const n = lt(), e = de(ge);
549
549
  if (!e)
550
550
  return;
551
551
  if (e.queryFnOverride) {
@@ -562,7 +562,7 @@ const zs = () => {
562
562
  queryFnOverride: !0,
563
563
  queryFn: (s, r) => t.add(() => e.queryFn(s, r), { throwOnTimeout: !0 })
564
564
  };
565
- Di(fe, i);
565
+ Di(ge, i);
566
566
  };
567
567
  const Ns = typeof window < "u";
568
568
  let Rt;
@@ -576,7 +576,7 @@ var St;
576
576
  n.direct = "direct", n.patchObject = "patch object", n.patchFunction = "patch function";
577
577
  })(St || (St = {}));
578
578
  process.env.NODE_ENV;
579
- function Oe(n) {
579
+ function ze(n) {
580
580
  const e = Oi(n), t = {};
581
581
  for (const i in e) {
582
582
  const s = e[i];
@@ -587,11 +587,11 @@ function Oe(n) {
587
587
  n[i] = r;
588
588
  }
589
589
  }) : (zi(s) || Ni(s)) && (t[i] = // ---
590
- Te(n, i));
590
+ Se(n, i));
591
591
  }
592
592
  return t;
593
593
  }
594
- const ee = (n) => n?.chart.type === "table", Ms = [
594
+ const Z = (n) => n?.chart.type === "table", Ms = [
595
595
  "basic",
596
596
  "api_usage",
597
597
  "llm_usage",
@@ -606,97 +606,97 @@ function As({
606
606
  definition: t,
607
607
  chartData: i
608
608
  }) {
609
- const s = O(""), r = O(""), a = O(void 0), o = O(void 0), d = at(), l = Ae(), { stripUnknownFilters: u, loading: c } = Oe(l), f = w(() => ee(t.value));
609
+ const s = z(""), r = z(""), a = z(void 0), o = z(void 0), d = lt(), l = Pe(), { stripUnknownFilters: u, loading: c } = ze(l), f = w(() => Z(t.value));
610
610
  Ke(async () => {
611
611
  s.value = await n?.exploreBaseUrl?.() ?? "", r.value = await n?.requestsBaseUrl?.() ?? "";
612
612
  });
613
613
  const g = w(() => d.analytics && d.percentiles), m = w(() => {
614
- const R = t.value.chart.type;
615
- return ["golden_signals", "gauge"].includes(R) ? !1 : R === "top_n" ? e.value.editable || e.value.showTileActions : !0;
616
- }), v = w(() => r.value && t.value.query && !f.value && t.value.query.datasource !== "llm_usage" && !Jt(t.value.query.datasource) && g.value && !c.value), p = w(() => s.value && t.value.query && Ls(t.value.query.datasource) && g.value && !c.value), T = w(() => i.value ? it(i.value.meta.granularity_ms) : void 0), E = w(() => {
617
- const R = t.value, H = [...e.value.filters, ...R.query.filters ?? []], P = "metrics" in R.query ? R.query.metrics : void 0, J = R.query?.datasource ?? "api_usage";
614
+ const k = t.value.chart.type;
615
+ return ["golden_signals", "gauge"].includes(k) ? !1 : k === "top_n" ? e.value.editable || e.value.showTileActions : !0;
616
+ }), v = w(() => r.value && t.value.query && !f.value && t.value.query.datasource !== "llm_usage" && !Jt(t.value.query.datasource) && g.value && !c.value), p = w(() => s.value && t.value.query && Ls(t.value.query.datasource) && g.value && !c.value), T = w(() => i.value ? st(i.value.meta.granularity_ms) : void 0), E = w(() => {
617
+ const k = t.value, H = [...e.value.filters, ...k.query.filters ?? []], q = "metrics" in k.query ? k.query.metrics : void 0, Q = k.query?.datasource ?? "api_usage";
618
618
  return u.value({
619
- datasource: J,
619
+ datasource: Q,
620
620
  filters: H,
621
- queryFields: P
621
+ queryFields: q
622
622
  });
623
623
  }), y = w(() => {
624
624
  if (!p.value || !m.value)
625
625
  return "";
626
- const R = t.value;
627
- if (ee(R))
628
- return te({
629
- ...R.query,
626
+ const k = t.value;
627
+ if (Z(k))
628
+ return ee({
629
+ ...k.query,
630
630
  filters: E.value
631
631
  });
632
- const H = R.query.time_range || e.value.timeSpec, P = G(H, E.value);
633
- return te(P);
634
- }), A = w(() => {
632
+ const H = k.query.time_range || e.value.timeSpec, q = oe(H, E.value);
633
+ return ee(q);
634
+ }), P = w(() => {
635
635
  if (!v.value || !m.value)
636
636
  return "";
637
- const R = E.value, H = t.value;
638
- if (ee(H))
637
+ const k = E.value, H = t.value;
638
+ if (Z(H))
639
639
  return "";
640
- const P = $(
640
+ const q = J(
641
641
  H.query.time_range || e.value.timeSpec,
642
- R
642
+ k
643
643
  );
644
- return L(P);
645
- }), L = (R) => v.value ? `${r.value}?q=${JSON.stringify(R)}` : "", $ = (R, H) => {
646
- const P = i.value?.meta?.start ? new Date(i.value.meta.start) : void 0, J = i.value?.meta?.end ? new Date(i.value.meta.end) : void 0;
644
+ return D(q);
645
+ }), D = (k) => v.value ? `${r.value}?q=${JSON.stringify(k)}` : "", J = (k, H) => {
646
+ const q = i.value?.meta?.start ? new Date(i.value.meta.start) : void 0, Q = i.value?.meta?.end ? new Date(i.value.meta.end) : void 0;
647
647
  return {
648
648
  filter: H,
649
649
  timeframe: {
650
- timePeriodsKey: R.type === "relative" ? R.time_range : "custom",
651
- start: R.type === "absolute" ? P : void 0,
652
- end: R.type === "absolute" ? J : void 0
650
+ timePeriodsKey: k.type === "relative" ? k.time_range : "custom",
651
+ start: k.type === "absolute" ? q : void 0,
652
+ end: k.type === "absolute" ? Q : void 0
653
653
  }
654
654
  };
655
- }, de = (R, H) => ({
655
+ }, ce = (k, H) => ({
656
656
  filter: H,
657
657
  timeframe: {
658
- timePeriodsKey: R.type === "relative" ? R.time_range : "custom",
659
- start: R.type === "absolute" ? R.start : void 0,
660
- end: R.type === "absolute" ? R.end : void 0
658
+ timePeriodsKey: k.type === "relative" ? k.time_range : "custom",
659
+ start: k.type === "absolute" ? k.start : void 0,
660
+ end: k.type === "absolute" ? k.end : void 0
661
661
  }
662
- }), G = (R, H) => {
663
- const P = t.value;
664
- if (ee(P))
662
+ }), oe = (k, H) => {
663
+ const q = t.value;
664
+ if (Z(q))
665
665
  throw new Error("Cannot build a chart explore query for table chart definitions");
666
- const J = [...P.query.dimensions ?? []], ce = [...P.query.metrics ?? []];
666
+ const Q = [...q.query.dimensions ?? []], he = [...q.query.metrics ?? []];
667
667
  return {
668
668
  filters: H,
669
- metrics: ce,
670
- dimensions: J,
671
- time_range: R,
672
- granularity: P.query.granularity || T.value || void 0
669
+ metrics: he,
670
+ dimensions: Q,
671
+ time_range: k,
672
+ granularity: q.query.granularity || T.value || void 0
673
673
  };
674
- }, te = (R) => {
674
+ }, ee = (k) => {
675
675
  if (!p.value)
676
676
  return "";
677
677
  const H = t.value.query.datasource && t.value.query.datasource !== "basic" ? t.value.query.datasource : "api_usage";
678
- return `${s.value}?q=${JSON.stringify(R)}&d=${H}&c=${t.value.chart.type}`;
678
+ return `${s.value}?q=${JSON.stringify(k)}&d=${H}&c=${t.value.chart.type}`;
679
679
  };
680
- return Se([v, p], ([R, H]) => {
681
- R && (a.value = { href: "" }), H && (o.value = { href: "" });
680
+ return De([v, p], ([k, H]) => {
681
+ k && (a.value = { href: "" }), H && (o.value = { href: "" });
682
682
  }), {
683
683
  exploreLinkKebabMenu: y,
684
- requestsLinkKebabMenu: A,
684
+ requestsLinkKebabMenu: P,
685
685
  canShowKebabMenu: m,
686
686
  canGenerateRequestsLink: v,
687
687
  canGenerateExploreLink: p,
688
688
  requestsLinkZoomActions: a,
689
689
  exploreLinkZoomActions: o,
690
- buildExploreQuery: G,
691
- buildRequestsQueryZoomActions: de,
692
- buildExploreLink: te,
693
- buildRequestLink: L
690
+ buildExploreQuery: oe,
691
+ buildRequestsQueryZoomActions: ce,
692
+ buildExploreLink: ee,
693
+ buildRequestLink: D
694
694
  };
695
695
  }
696
696
  function Ps() {
697
- const n = ue(fe), e = Ae(), { stripUnknownFilters: t } = Oe(e);
697
+ const n = de(ge), e = Pe(), { stripUnknownFilters: t } = ze(e);
698
698
  let i = null;
699
- return Le(() => {
699
+ return Ae(() => {
700
700
  i?.abort();
701
701
  }), { issueQuery: async (r, a, o) => {
702
702
  if (!n)
@@ -738,11 +738,11 @@ function Ps() {
738
738
  }
739
739
  function qs({
740
740
  context: n,
741
- globalFilters: e = O([]),
742
- isFullscreen: t = O(!1),
743
- preview: i = O(!1)
741
+ globalFilters: e = z([]),
742
+ isFullscreen: t = z(!1),
743
+ preview: i = z(!1)
744
744
  }) {
745
- const s = at(), r = Ae(), { loading: a } = Oe(s), { loading: o } = Oe(r), d = w(() => n.value.timeSpec ? n.value.timeSpec : {
745
+ const s = lt(), r = Pe(), { loading: a } = ze(s), { loading: o } = ze(r), d = w(() => n.value.timeSpec ? n.value.timeSpec : {
746
746
  type: "relative",
747
747
  time_range: s.defaultQueryTimeForOrg
748
748
  }), l = w(() => {
@@ -753,8 +753,8 @@ function qs({
753
753
  if (d.value.type === "relative")
754
754
  T = ["15m", "1h", "6h", "12h", "24h"].includes(d.value.time_range);
755
755
  else {
756
- const A = d.value.start.getTime(), L = d.value.end.getTime();
757
- T = Math.abs(L - A) <= 864e5;
756
+ const P = d.value.start.getTime(), D = d.value.end.getTime();
757
+ T = Math.abs(D - P) <= 864e5;
758
758
  }
759
759
  const E = (/* @__PURE__ */ new Date()).getTime();
760
760
  d.value.type === "absolute" && d.value.end.getTime() < E || d.value.type === "relative" && ["previous_week", "previous_month"].includes(d.value.time_range) ? f = 0 : T ? f = bs : f = ws;
@@ -778,27 +778,27 @@ function qs({
778
778
  };
779
779
  }
780
780
  const si = 6048e5, Hs = 864e5, Dt = /* @__PURE__ */ Symbol.for("constructDateFrom");
781
- function me(n, e) {
781
+ function pe(n, e) {
782
782
  return typeof n == "function" ? n(e) : n && typeof n == "object" && Dt in n ? n[Dt](e) : n instanceof Date ? new n.constructor(e) : new Date(e);
783
783
  }
784
784
  function ne(n, e) {
785
- return me(e || n, n);
785
+ return pe(e || n, n);
786
786
  }
787
787
  let Is = {};
788
788
  function Ve() {
789
789
  return Is;
790
790
  }
791
- function ze(n, e) {
791
+ function Ne(n, e) {
792
792
  const t = Ve(), i = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, s = ne(n, e?.in), r = s.getDay(), a = (r < i ? 7 : 0) + r - i;
793
793
  return s.setDate(s.getDate() - a), s.setHours(0, 0, 0, 0), s;
794
794
  }
795
795
  function Be(n, e) {
796
- return ze(n, { ...e, weekStartsOn: 1 });
796
+ return Ne(n, { ...e, weekStartsOn: 1 });
797
797
  }
798
798
  function ri(n, e) {
799
- const t = ne(n, e?.in), i = t.getFullYear(), s = me(t, 0);
799
+ const t = ne(n, e?.in), i = t.getFullYear(), s = pe(t, 0);
800
800
  s.setFullYear(i + 1, 0, 4), s.setHours(0, 0, 0, 0);
801
- const r = Be(s), a = me(t, 0);
801
+ const r = Be(s), a = pe(t, 0);
802
802
  a.setFullYear(i, 0, 4), a.setHours(0, 0, 0, 0);
803
803
  const o = Be(a);
804
804
  return t.getTime() >= r.getTime() ? i + 1 : t.getTime() >= o.getTime() ? i : i - 1;
@@ -818,7 +818,7 @@ function Ot(n) {
818
818
  return t.setUTCFullYear(e.getFullYear()), +n - +t;
819
819
  }
820
820
  function Fs(n, ...e) {
821
- const t = me.bind(
821
+ const t = pe.bind(
822
822
  null,
823
823
  e.find((i) => typeof i == "object")
824
824
  );
@@ -837,7 +837,7 @@ function Bs(n, e, t) {
837
837
  return Math.round((o - d) / Hs);
838
838
  }
839
839
  function Ws(n, e) {
840
- const t = ri(n, e), i = me(n, 0);
840
+ const t = ri(n, e), i = pe(n, 0);
841
841
  return i.setFullYear(t, 0, 4), i.setHours(0, 0, 0, 0), Be(i);
842
842
  }
843
843
  function $s(n) {
@@ -917,7 +917,7 @@ const Ys = {
917
917
  const s = Ys[n];
918
918
  return typeof s == "string" ? i = s : e === 1 ? i = s.one : i = s.other.replace("{{count}}", e.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + i : i + " ago" : i;
919
919
  };
920
- function et(n) {
920
+ function tt(n) {
921
921
  return (e = {}) => {
922
922
  const t = e.width ? String(e.width) : n.defaultWidth;
923
923
  return n.formats[t] || n.formats[n.defaultWidth];
@@ -939,15 +939,15 @@ const Qs = {
939
939
  medium: "{{date}}, {{time}}",
940
940
  short: "{{date}}, {{time}}"
941
941
  }, Xs = {
942
- date: et({
942
+ date: tt({
943
943
  formats: Qs,
944
944
  defaultWidth: "full"
945
945
  }),
946
- time: et({
946
+ time: tt({
947
947
  formats: Vs,
948
948
  defaultWidth: "full"
949
949
  }),
950
- dateTime: et({
950
+ dateTime: tt({
951
951
  formats: js,
952
952
  defaultWidth: "full"
953
953
  })
@@ -959,7 +959,7 @@ const Qs = {
959
959
  nextWeek: "eeee 'at' p",
960
960
  other: "P"
961
961
  }, Js = (n, e, t, i) => Zs[n];
962
- function ke(n) {
962
+ function Re(n) {
963
963
  return (e, t) => {
964
964
  const i = t?.context ? String(t.context) : "standalone";
965
965
  let s;
@@ -1101,31 +1101,31 @@ const er = {
1101
1101
  return t + "th";
1102
1102
  }, ar = {
1103
1103
  ordinalNumber: or,
1104
- era: ke({
1104
+ era: Re({
1105
1105
  values: er,
1106
1106
  defaultWidth: "wide"
1107
1107
  }),
1108
- quarter: ke({
1108
+ quarter: Re({
1109
1109
  values: tr,
1110
1110
  defaultWidth: "wide",
1111
1111
  argumentCallback: (n) => n - 1
1112
1112
  }),
1113
- month: ke({
1113
+ month: Re({
1114
1114
  values: ir,
1115
1115
  defaultWidth: "wide"
1116
1116
  }),
1117
- day: ke({
1117
+ day: Re({
1118
1118
  values: sr,
1119
1119
  defaultWidth: "wide"
1120
1120
  }),
1121
- dayPeriod: ke({
1121
+ dayPeriod: Re({
1122
1122
  values: rr,
1123
1123
  defaultWidth: "wide",
1124
1124
  formattingValues: nr,
1125
1125
  defaultFormattingWidth: "wide"
1126
1126
  })
1127
1127
  };
1128
- function Re(n) {
1128
+ function Te(n) {
1129
1129
  return (e, t = {}) => {
1130
1130
  const i = t.width, s = i && n.matchPatterns[i] || n.matchPatterns[n.defaultMatchWidth], r = e.match(s);
1131
1131
  if (!r)
@@ -1238,32 +1238,32 @@ const cr = /^(\d+)(th|st|nd|rd)?/i, hr = /\d+/i, fr = {
1238
1238
  parsePattern: hr,
1239
1239
  valueCallback: (n) => parseInt(n, 10)
1240
1240
  }),
1241
- era: Re({
1241
+ era: Te({
1242
1242
  matchPatterns: fr,
1243
1243
  defaultMatchWidth: "wide",
1244
1244
  parsePatterns: gr,
1245
1245
  defaultParseWidth: "any"
1246
1246
  }),
1247
- quarter: Re({
1247
+ quarter: Te({
1248
1248
  matchPatterns: mr,
1249
1249
  defaultMatchWidth: "wide",
1250
1250
  parsePatterns: pr,
1251
1251
  defaultParseWidth: "any",
1252
1252
  valueCallback: (n) => n + 1
1253
1253
  }),
1254
- month: Re({
1254
+ month: Te({
1255
1255
  matchPatterns: yr,
1256
1256
  defaultMatchWidth: "wide",
1257
1257
  parsePatterns: vr,
1258
1258
  defaultParseWidth: "any"
1259
1259
  }),
1260
- day: Re({
1260
+ day: Te({
1261
1261
  matchPatterns: br,
1262
1262
  defaultMatchWidth: "wide",
1263
1263
  parsePatterns: wr,
1264
1264
  defaultParseWidth: "any"
1265
1265
  }),
1266
- dayPeriod: Re({
1266
+ dayPeriod: Te({
1267
1267
  matchPatterns: _r,
1268
1268
  defaultMatchWidth: "any",
1269
1269
  parsePatterns: xr,
@@ -1290,39 +1290,39 @@ function Rr(n, e) {
1290
1290
  return Math.round(i / si) + 1;
1291
1291
  }
1292
1292
  function ni(n, e) {
1293
- const t = ne(n, e?.in), i = t.getFullYear(), s = Ve(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, a = me(e?.in || n, 0);
1293
+ const t = ne(n, e?.in), i = t.getFullYear(), s = Ve(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, a = pe(e?.in || n, 0);
1294
1294
  a.setFullYear(i + 1, 0, r), a.setHours(0, 0, 0, 0);
1295
- const o = ze(a, e), d = me(e?.in || n, 0);
1295
+ const o = Ne(a, e), d = pe(e?.in || n, 0);
1296
1296
  d.setFullYear(i, 0, r), d.setHours(0, 0, 0, 0);
1297
- const l = ze(d, e);
1297
+ const l = Ne(d, e);
1298
1298
  return +t >= +o ? i + 1 : +t >= +l ? i : i - 1;
1299
1299
  }
1300
1300
  function Tr(n, e) {
1301
- const t = Ve(), i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? t.firstWeekContainsDate ?? t.locale?.options?.firstWeekContainsDate ?? 1, s = ni(n, e), r = me(e?.in || n, 0);
1302
- return r.setFullYear(s, 0, i), r.setHours(0, 0, 0, 0), ze(r, e);
1301
+ const t = Ve(), i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? t.firstWeekContainsDate ?? t.locale?.options?.firstWeekContainsDate ?? 1, s = ni(n, e), r = pe(e?.in || n, 0);
1302
+ return r.setFullYear(s, 0, i), r.setHours(0, 0, 0, 0), Ne(r, e);
1303
1303
  }
1304
1304
  function Sr(n, e) {
1305
- const t = ne(n, e?.in), i = +ze(t, e) - +Tr(t, e);
1305
+ const t = ne(n, e?.in), i = +Ne(t, e) - +Tr(t, e);
1306
1306
  return Math.round(i / si) + 1;
1307
1307
  }
1308
- function M(n, e) {
1308
+ function L(n, e) {
1309
1309
  const t = n < 0 ? "-" : "", i = Math.abs(n).toString().padStart(e, "0");
1310
1310
  return t + i;
1311
1311
  }
1312
- const ge = {
1312
+ const me = {
1313
1313
  // Year
1314
1314
  y(n, e) {
1315
1315
  const t = n.getFullYear(), i = t > 0 ? t : 1 - t;
1316
- return M(e === "yy" ? i % 100 : i, e.length);
1316
+ return L(e === "yy" ? i % 100 : i, e.length);
1317
1317
  },
1318
1318
  // Month
1319
1319
  M(n, e) {
1320
1320
  const t = n.getMonth();
1321
- return e === "M" ? String(t + 1) : M(t + 1, 2);
1321
+ return e === "M" ? String(t + 1) : L(t + 1, 2);
1322
1322
  },
1323
1323
  // Day of the month
1324
1324
  d(n, e) {
1325
- return M(n.getDate(), e.length);
1325
+ return L(n.getDate(), e.length);
1326
1326
  },
1327
1327
  // AM or PM
1328
1328
  a(n, e) {
@@ -1341,28 +1341,28 @@ const ge = {
1341
1341
  },
1342
1342
  // Hour [1-12]
1343
1343
  h(n, e) {
1344
- return M(n.getHours() % 12 || 12, e.length);
1344
+ return L(n.getHours() % 12 || 12, e.length);
1345
1345
  },
1346
1346
  // Hour [0-23]
1347
1347
  H(n, e) {
1348
- return M(n.getHours(), e.length);
1348
+ return L(n.getHours(), e.length);
1349
1349
  },
1350
1350
  // Minute
1351
1351
  m(n, e) {
1352
- return M(n.getMinutes(), e.length);
1352
+ return L(n.getMinutes(), e.length);
1353
1353
  },
1354
1354
  // Second
1355
1355
  s(n, e) {
1356
- return M(n.getSeconds(), e.length);
1356
+ return L(n.getSeconds(), e.length);
1357
1357
  },
1358
1358
  // Fraction of second
1359
1359
  S(n, e) {
1360
1360
  const t = e.length, i = n.getMilliseconds(), s = Math.trunc(
1361
1361
  i * Math.pow(10, t - 3)
1362
1362
  );
1363
- return M(s, e.length);
1363
+ return L(s, e.length);
1364
1364
  }
1365
- }, Ee = {
1365
+ }, Ce = {
1366
1366
  midnight: "midnight",
1367
1367
  noon: "noon",
1368
1368
  morning: "morning",
@@ -1392,21 +1392,21 @@ const ge = {
1392
1392
  const i = n.getFullYear(), s = i > 0 ? i : 1 - i;
1393
1393
  return t.ordinalNumber(s, { unit: "year" });
1394
1394
  }
1395
- return ge.y(n, e);
1395
+ return me.y(n, e);
1396
1396
  },
1397
1397
  // Local week-numbering year
1398
1398
  Y: function(n, e, t, i) {
1399
1399
  const s = ni(n, i), r = s > 0 ? s : 1 - s;
1400
1400
  if (e === "YY") {
1401
1401
  const a = r % 100;
1402
- return M(a, 2);
1402
+ return L(a, 2);
1403
1403
  }
1404
- return e === "Yo" ? t.ordinalNumber(r, { unit: "year" }) : M(r, e.length);
1404
+ return e === "Yo" ? t.ordinalNumber(r, { unit: "year" }) : L(r, e.length);
1405
1405
  },
1406
1406
  // ISO week-numbering year
1407
1407
  R: function(n, e) {
1408
1408
  const t = ri(n);
1409
- return M(t, e.length);
1409
+ return L(t, e.length);
1410
1410
  },
1411
1411
  // Extended year. This is a single number designating the year of this calendar system.
1412
1412
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -1419,7 +1419,7 @@ const ge = {
1419
1419
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
1420
1420
  u: function(n, e) {
1421
1421
  const t = n.getFullYear();
1422
- return M(t, e.length);
1422
+ return L(t, e.length);
1423
1423
  },
1424
1424
  // Quarter
1425
1425
  Q: function(n, e, t) {
@@ -1430,7 +1430,7 @@ const ge = {
1430
1430
  return String(i);
1431
1431
  // 01, 02, 03, 04
1432
1432
  case "QQ":
1433
- return M(i, 2);
1433
+ return L(i, 2);
1434
1434
  // 1st, 2nd, 3rd, 4th
1435
1435
  case "Qo":
1436
1436
  return t.ordinalNumber(i, { unit: "quarter" });
@@ -1462,7 +1462,7 @@ const ge = {
1462
1462
  return String(i);
1463
1463
  // 01, 02, 03, 04
1464
1464
  case "qq":
1465
- return M(i, 2);
1465
+ return L(i, 2);
1466
1466
  // 1st, 2nd, 3rd, 4th
1467
1467
  case "qo":
1468
1468
  return t.ordinalNumber(i, { unit: "quarter" });
@@ -1491,7 +1491,7 @@ const ge = {
1491
1491
  switch (e) {
1492
1492
  case "M":
1493
1493
  case "MM":
1494
- return ge.M(n, e);
1494
+ return me.M(n, e);
1495
1495
  // 1st, 2nd, ..., 12th
1496
1496
  case "Mo":
1497
1497
  return t.ordinalNumber(i + 1, { unit: "month" });
@@ -1520,7 +1520,7 @@ const ge = {
1520
1520
  return String(i + 1);
1521
1521
  // 01, 02, ..., 12
1522
1522
  case "LL":
1523
- return M(i + 1, 2);
1523
+ return L(i + 1, 2);
1524
1524
  // 1st, 2nd, ..., 12th
1525
1525
  case "Lo":
1526
1526
  return t.ordinalNumber(i + 1, { unit: "month" });
@@ -1543,21 +1543,21 @@ const ge = {
1543
1543
  // Local week of year
1544
1544
  w: function(n, e, t, i) {
1545
1545
  const s = Sr(n, i);
1546
- return e === "wo" ? t.ordinalNumber(s, { unit: "week" }) : M(s, e.length);
1546
+ return e === "wo" ? t.ordinalNumber(s, { unit: "week" }) : L(s, e.length);
1547
1547
  },
1548
1548
  // ISO week of year
1549
1549
  I: function(n, e, t) {
1550
1550
  const i = Rr(n);
1551
- return e === "Io" ? t.ordinalNumber(i, { unit: "week" }) : M(i, e.length);
1551
+ return e === "Io" ? t.ordinalNumber(i, { unit: "week" }) : L(i, e.length);
1552
1552
  },
1553
1553
  // Day of the month
1554
1554
  d: function(n, e, t) {
1555
- return e === "do" ? t.ordinalNumber(n.getDate(), { unit: "date" }) : ge.d(n, e);
1555
+ return e === "do" ? t.ordinalNumber(n.getDate(), { unit: "date" }) : me.d(n, e);
1556
1556
  },
1557
1557
  // Day of year
1558
1558
  D: function(n, e, t) {
1559
1559
  const i = kr(n);
1560
- return e === "Do" ? t.ordinalNumber(i, { unit: "dayOfYear" }) : M(i, e.length);
1560
+ return e === "Do" ? t.ordinalNumber(i, { unit: "dayOfYear" }) : L(i, e.length);
1561
1561
  },
1562
1562
  // Day of week
1563
1563
  E: function(n, e, t) {
@@ -1599,7 +1599,7 @@ const ge = {
1599
1599
  return String(r);
1600
1600
  // Padded numerical value
1601
1601
  case "ee":
1602
- return M(r, 2);
1602
+ return L(r, 2);
1603
1603
  // 1st, 2nd, ..., 7th
1604
1604
  case "eo":
1605
1605
  return t.ordinalNumber(r, { unit: "day" });
@@ -1636,7 +1636,7 @@ const ge = {
1636
1636
  return String(r);
1637
1637
  // Padded numerical value
1638
1638
  case "cc":
1639
- return M(r, e.length);
1639
+ return L(r, e.length);
1640
1640
  // 1st, 2nd, ..., 7th
1641
1641
  case "co":
1642
1642
  return t.ordinalNumber(r, { unit: "day" });
@@ -1673,7 +1673,7 @@ const ge = {
1673
1673
  return String(s);
1674
1674
  // 02
1675
1675
  case "ii":
1676
- return M(s, e.length);
1676
+ return L(s, e.length);
1677
1677
  // 2nd
1678
1678
  case "io":
1679
1679
  return t.ordinalNumber(s, { unit: "day" });
@@ -1733,7 +1733,7 @@ const ge = {
1733
1733
  b: function(n, e, t) {
1734
1734
  const i = n.getHours();
1735
1735
  let s;
1736
- switch (i === 12 ? s = Ee.noon : i === 0 ? s = Ee.midnight : s = i / 12 >= 1 ? "pm" : "am", e) {
1736
+ switch (i === 12 ? s = Ce.noon : i === 0 ? s = Ce.midnight : s = i / 12 >= 1 ? "pm" : "am", e) {
1737
1737
  case "b":
1738
1738
  case "bb":
1739
1739
  return t.dayPeriod(s, {
@@ -1761,7 +1761,7 @@ const ge = {
1761
1761
  B: function(n, e, t) {
1762
1762
  const i = n.getHours();
1763
1763
  let s;
1764
- switch (i >= 17 ? s = Ee.evening : i >= 12 ? s = Ee.afternoon : i >= 4 ? s = Ee.morning : s = Ee.night, e) {
1764
+ switch (i >= 17 ? s = Ce.evening : i >= 12 ? s = Ce.afternoon : i >= 4 ? s = Ce.morning : s = Ce.night, e) {
1765
1765
  case "B":
1766
1766
  case "BB":
1767
1767
  case "BBB":
@@ -1787,33 +1787,33 @@ const ge = {
1787
1787
  let i = n.getHours() % 12;
1788
1788
  return i === 0 && (i = 12), t.ordinalNumber(i, { unit: "hour" });
1789
1789
  }
1790
- return ge.h(n, e);
1790
+ return me.h(n, e);
1791
1791
  },
1792
1792
  // Hour [0-23]
1793
1793
  H: function(n, e, t) {
1794
- return e === "Ho" ? t.ordinalNumber(n.getHours(), { unit: "hour" }) : ge.H(n, e);
1794
+ return e === "Ho" ? t.ordinalNumber(n.getHours(), { unit: "hour" }) : me.H(n, e);
1795
1795
  },
1796
1796
  // Hour [0-11]
1797
1797
  K: function(n, e, t) {
1798
1798
  const i = n.getHours() % 12;
1799
- return e === "Ko" ? t.ordinalNumber(i, { unit: "hour" }) : M(i, e.length);
1799
+ return e === "Ko" ? t.ordinalNumber(i, { unit: "hour" }) : L(i, e.length);
1800
1800
  },
1801
1801
  // Hour [1-24]
1802
1802
  k: function(n, e, t) {
1803
1803
  let i = n.getHours();
1804
- return i === 0 && (i = 24), e === "ko" ? t.ordinalNumber(i, { unit: "hour" }) : M(i, e.length);
1804
+ return i === 0 && (i = 24), e === "ko" ? t.ordinalNumber(i, { unit: "hour" }) : L(i, e.length);
1805
1805
  },
1806
1806
  // Minute
1807
1807
  m: function(n, e, t) {
1808
- return e === "mo" ? t.ordinalNumber(n.getMinutes(), { unit: "minute" }) : ge.m(n, e);
1808
+ return e === "mo" ? t.ordinalNumber(n.getMinutes(), { unit: "minute" }) : me.m(n, e);
1809
1809
  },
1810
1810
  // Second
1811
1811
  s: function(n, e, t) {
1812
- return e === "so" ? t.ordinalNumber(n.getSeconds(), { unit: "second" }) : ge.s(n, e);
1812
+ return e === "so" ? t.ordinalNumber(n.getSeconds(), { unit: "second" }) : me.s(n, e);
1813
1813
  },
1814
1814
  // Fraction of second
1815
1815
  S: function(n, e) {
1816
- return ge.S(n, e);
1816
+ return me.S(n, e);
1817
1817
  },
1818
1818
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1819
1819
  X: function(n, e, t) {
@@ -1882,22 +1882,22 @@ const ge = {
1882
1882
  // Seconds timestamp
1883
1883
  t: function(n, e, t) {
1884
1884
  const i = Math.trunc(+n / 1e3);
1885
- return M(i, e.length);
1885
+ return L(i, e.length);
1886
1886
  },
1887
1887
  // Milliseconds timestamp
1888
1888
  T: function(n, e, t) {
1889
- return M(+n, e.length);
1889
+ return L(+n, e.length);
1890
1890
  }
1891
1891
  };
1892
1892
  function Mt(n, e = "") {
1893
1893
  const t = n > 0 ? "-" : "+", i = Math.abs(n), s = Math.trunc(i / 60), r = i % 60;
1894
- return r === 0 ? t + String(s) : t + String(s) + e + M(r, 2);
1894
+ return r === 0 ? t + String(s) : t + String(s) + e + L(r, 2);
1895
1895
  }
1896
1896
  function Lt(n, e) {
1897
- return n % 60 === 0 ? (n > 0 ? "-" : "+") + M(Math.abs(n) / 60, 2) : _e(n, e);
1897
+ return n % 60 === 0 ? (n > 0 ? "-" : "+") + L(Math.abs(n) / 60, 2) : _e(n, e);
1898
1898
  }
1899
1899
  function _e(n, e = "") {
1900
- const t = n > 0 ? "-" : "+", i = Math.abs(n), s = M(Math.trunc(i / 60), 2), r = M(i % 60, 2);
1900
+ const t = n > 0 ? "-" : "+", i = Math.abs(n), s = L(Math.trunc(i / 60), 2), r = L(i % 60, 2);
1901
1901
  return t + s + e + r;
1902
1902
  }
1903
1903
  const At = (n, e) => {
@@ -2045,14 +2045,14 @@ function jr(n, e, t, i) {
2045
2045
  }
2046
2046
  const s = [];
2047
2047
  let r = 0;
2048
- for (let a = 0; a < n.length; a++) {
2049
- const o = n[a].top * i;
2050
- n[a].bottom * i - r > t && r < o && (s.push({ startY: r, height: o - r }), r = o);
2048
+ for (const a of n) {
2049
+ const o = a.top * i, d = a.bottom * i;
2050
+ d - r > t && (o > r ? (s.push({ startY: r, height: o - r }), r = o) : (s.push({ startY: r, height: d - r }), r = d));
2051
2051
  }
2052
2052
  return r < e && s.push({ startY: r, height: e - r }), s;
2053
2053
  }
2054
2054
  function Xr(n) {
2055
- const { i18n: e } = ti(), t = O({ status: "idle" });
2055
+ const { i18n: e } = ti(), t = z({ status: "idle" });
2056
2056
  async function i(s = {}) {
2057
2057
  const {
2058
2058
  filename: r,
@@ -2074,61 +2074,61 @@ function Xr(n) {
2074
2074
  }
2075
2075
  try {
2076
2076
  t.value = { status: "preparing" }, await v?.();
2077
- const E = Vr(T), [{ snapdom: y }, { jsPDF: A }] = await Promise.all([
2077
+ const [{ snapdom: E }, { jsPDF: y }] = await Promise.all([
2078
2078
  import("@zumer/snapdom"),
2079
2079
  import("jspdf")
2080
2080
  ]);
2081
2081
  t.value = { status: "capturing" };
2082
- const L = {
2082
+ const P = {
2083
2083
  name: "kong-webgl-snapshot",
2084
2084
  beforeClone: () => qi(),
2085
2085
  afterClone: () => wt()
2086
- }, $ = await y.toCanvas(T, { scale: f, exclude: g, plugins: [L] });
2086
+ }, D = await E.toCanvas(T, { scale: f, exclude: g, plugins: [P] }), J = Vr(T), ce = T.getBoundingClientRect().width, oe = ce ? D.width / ce : f;
2087
2087
  t.value = { status: "generating" };
2088
- const de = /* @__PURE__ */ new Date(), G = new A({ orientation: l, unit: "mm", format: u }), te = G.internal.pageSize.getWidth(), R = G.internal.pageSize.getHeight(), H = Ur + (o ? li : 0), P = te - c * 2, J = R - c * 2 - H - ai, ce = $.width / P, ie = J * ce, he = jr(E, $.height, ie, f), S = {
2088
+ const ee = /* @__PURE__ */ new Date(), k = new y({ orientation: l, unit: "mm", format: u }), H = k.internal.pageSize.getWidth(), q = k.internal.pageSize.getHeight(), Q = Ur + (o ? li : 0), he = H - c * 2, te = q - c * 2 - Q - ai, xe = D.width / he, S = te * xe, O = jr(J, D.height, S, oe), B = {
2089
2089
  title: a,
2090
2090
  subtitle: o,
2091
2091
  dashboardUrl: d,
2092
2092
  generatedAt: e.t("pdfExport.generated", {
2093
- timestamp: de.toLocaleString(void 0, { dateStyle: "medium", timeStyle: "short" })
2093
+ timestamp: ee.toLocaleString(void 0, { dateStyle: "medium", timeStyle: "short" })
2094
2094
  }),
2095
2095
  branding: e.t("pdfExport.branding"),
2096
2096
  dashboardNote: e.t("pdfExport.dashboardNote"),
2097
- pageWidth: te,
2098
- pageHeight: R,
2099
- headerHeight: H,
2097
+ pageWidth: H,
2098
+ pageHeight: q,
2099
+ headerHeight: Q,
2100
2100
  margin: c
2101
2101
  };
2102
- for (let D = 0; D < he.length; D++) {
2103
- D > 0 && G.addPage();
2104
- const { startY: B, height: q } = he[D], W = document.createElement("canvas");
2105
- W.width = $.width, W.height = q, W.getContext("2d").drawImage(
2106
- $,
2102
+ for (let A = 0; A < O.length; A++) {
2103
+ A > 0 && k.addPage();
2104
+ const { startY: W, height: ie } = O[A], fe = document.createElement("canvas");
2105
+ fe.width = D.width, fe.height = ie, fe.getContext("2d").drawImage(
2106
+ D,
2107
2107
  0,
2108
- B,
2109
- $.width,
2110
- q,
2108
+ W,
2109
+ D.width,
2110
+ ie,
2111
2111
  0,
2112
2112
  0,
2113
- $.width,
2114
- q
2115
- ), G.addImage(
2116
- W.toDataURL("image/png"),
2113
+ D.width,
2114
+ ie
2115
+ ), k.addImage(
2116
+ fe.toDataURL("image/png"),
2117
2117
  "PNG",
2118
2118
  c,
2119
- c + H,
2120
- P,
2121
- q / ce
2122
- ), Qr(G, {
2123
- ...S,
2124
- pageLabel: e.t("pdfExport.pageOf", { page: String(D + 1), total: String(he.length) })
2119
+ c + Q,
2120
+ he,
2121
+ ie / xe
2122
+ ), Qr(k, {
2123
+ ...B,
2124
+ pageLabel: e.t("pdfExport.pageOf", { page: String(A + 1), total: String(O.length) })
2125
2125
  });
2126
2126
  }
2127
2127
  if (m === "blob") {
2128
- const D = G.output("blob");
2129
- return t.value = { status: "complete", pageCount: he.length }, D;
2128
+ const A = k.output("blob");
2129
+ return t.value = { status: "complete", pageCount: O.length }, A;
2130
2130
  }
2131
- G.save(Kr(r, a, de)), t.value = { status: "complete", pageCount: he.length };
2131
+ k.save(Kr(r, a, ee)), t.value = { status: "complete", pageCount: O.length };
2132
2132
  } catch (E) {
2133
2133
  t.value = { status: "error", error: E };
2134
2134
  } finally {
@@ -2137,10 +2137,10 @@ function Xr(n) {
2137
2137
  }
2138
2138
  return {
2139
2139
  exportPdf: i,
2140
- exportState: tt(t)
2140
+ exportState: it(t)
2141
2141
  };
2142
2142
  }
2143
- const Z = {
2143
+ const X = {
2144
2144
  useContextLinks: As,
2145
2145
  useDashboardInternalContext: qs,
2146
2146
  useEvaluateFeatureFlag: _s,
@@ -2148,7 +2148,7 @@ const Z = {
2148
2148
  useI18n: ti,
2149
2149
  useIssueQuery: Ps,
2150
2150
  useRequestQueue: zs
2151
- }, ut = /* @__PURE__ */ V({
2151
+ }, dt = /* @__PURE__ */ K({
2152
2152
  __name: "QueryDataProvider",
2153
2153
  props: {
2154
2154
  context: {},
@@ -2159,7 +2159,7 @@ const Z = {
2159
2159
  },
2160
2160
  emits: ["chart-data", "query-complete"],
2161
2161
  setup(n, { emit: e }) {
2162
- const t = n, i = e, { i18n: s } = Z.useI18n(), { issueQuery: r } = Z.useIssueQuery(), a = ue(fe), o = () => t.queryReady && a ? JSON.stringify([t.query, t.context, t.refreshCounter]) : null, { data: d, error: l, isValidating: u } = Yi(o, async () => {
2162
+ const t = n, i = e, { i18n: s } = X.useI18n(), { issueQuery: r } = X.useIssueQuery(), a = de(ge), o = () => t.queryReady && a ? JSON.stringify([t.query, t.context, t.refreshCounter]) : null, { data: d, error: l, isValidating: u } = Yi(o, async () => {
2163
2163
  const E = o();
2164
2164
  try {
2165
2165
  const y = await r(t.query, t.context, t.limitOverride);
@@ -2175,42 +2175,42 @@ const Z = {
2175
2175
  refreshInterval: t.context.refreshInterval,
2176
2176
  revalidateOnFocus: !1,
2177
2177
  shouldRetryOnError: !1
2178
- }), { state: c, swrvState: f } = os(d, l, u), g = O(null), m = w(() => c.value === f.ERROR || !!g.value), v = w(() => !t.queryReady || c.value === f.PENDING), p = O(), T = w(() => d.value ?? (t.queryReady && c.value === f.PENDING ? p.value : void 0));
2179
- return Se([() => d.value, () => c.value], ([E, y]) => {
2178
+ }), { state: c, swrvState: f } = os(d, l, u), g = z(null), m = w(() => c.value === f.ERROR || !!g.value), v = w(() => !t.queryReady || c.value === f.PENDING), p = z(), T = w(() => d.value ?? (t.queryReady && c.value === f.PENDING ? p.value : void 0));
2179
+ return De([() => d.value, () => c.value], ([E, y]) => {
2180
2180
  E && (y === "SUCCESS_HAS_DATA" || y === "SUCCESS") && E !== p.value && (p.value = E, i("chart-data", E));
2181
2181
  }), (E, y) => {
2182
- const A = se("KSkeleton"), L = se("KEmptyState");
2183
- return (v.value || !x(d) && !m.value) && !T.value ? (_(), z(A, {
2182
+ const P = se("KSkeleton"), D = se("KEmptyState");
2183
+ return (v.value || !x(d) && !m.value) && !T.value ? (_(), N(P, {
2184
2184
  key: 0,
2185
2185
  class: "chart-skeleton",
2186
2186
  type: "table"
2187
- })) : m.value && !v.value ? (_(), z(L, {
2187
+ })) : m.value && !v.value ? (_(), N(D, {
2188
2188
  key: 1,
2189
2189
  "action-button-visible": !1,
2190
2190
  "data-testid": "chart-empty-state"
2191
2191
  }, Qe({
2192
2192
  icon: I(() => [
2193
- g.value?.type === "forbidden" ? (_(), z(x(Vi), { key: 0 })) : (_(), z(x(ji), { key: 1 }))
2193
+ g.value?.type === "forbidden" ? (_(), N(x(Vi), { key: 0 })) : (_(), N(x(ji), { key: 1 }))
2194
2194
  ]),
2195
2195
  title: I(() => [
2196
- j("p", null, Q(g.value?.message || x(s).t("renderer.unexpectedError")), 1)
2196
+ V("p", null, Y(g.value?.message || x(s).t("renderer.unexpectedError")), 1)
2197
2197
  ]),
2198
2198
  _: 2
2199
2199
  }, [
2200
2200
  g.value?.details ? {
2201
2201
  name: "default",
2202
2202
  fn: I(() => [
2203
- j("p", null, Q(g.value.details), 1)
2203
+ V("p", null, Y(g.value.details), 1)
2204
2204
  ]),
2205
2205
  key: "0"
2206
2206
  } : void 0
2207
- ]), 1024)) : T.value ? De(E.$slots, "default", {
2207
+ ]), 1024)) : T.value ? Oe(E.$slots, "default", {
2208
2208
  key: 2,
2209
2209
  data: T.value
2210
- }) : K("", !0);
2210
+ }) : U("", !0);
2211
2211
  };
2212
2212
  }
2213
- }), Zr = /* @__PURE__ */ V({
2213
+ }), Zr = /* @__PURE__ */ K({
2214
2214
  __name: "SimpleChartRenderer",
2215
2215
  props: {
2216
2216
  query: {},
@@ -2224,18 +2224,18 @@ const Z = {
2224
2224
  },
2225
2225
  setup(n) {
2226
2226
  const e = n, t = w(() => e.chartOptions.type === "single_value");
2227
- return (i, s) => (_(), z(ut, {
2227
+ return (i, s) => (_(), N(dt, {
2228
2228
  context: n.context,
2229
2229
  query: n.query,
2230
2230
  "query-ready": n.queryReady,
2231
2231
  "refresh-counter": n.refreshCounter
2232
2232
  }, {
2233
2233
  default: I(({ data: r }) => [
2234
- j("div", {
2235
- class: Ce(["analytics-chart", { "single-value": t.value }]),
2234
+ V("div", {
2235
+ class: ke(["analytics-chart", { "single-value": t.value }]),
2236
2236
  style: Ie(t.value ? void 0 : { height: `${n.height}px` })
2237
2237
  }, [
2238
- le(x(Wi), {
2238
+ ue(x(Wi), {
2239
2239
  "chart-data": r,
2240
2240
  "chart-options": n.chartOptions,
2241
2241
  "synthetics-data-key": t.value ? void 0 : n.chartOptions.synthetics_data_key
@@ -2245,12 +2245,12 @@ const Z = {
2245
2245
  _: 1
2246
2246
  }, 8, ["context", "query", "query-ready", "refresh-counter"]));
2247
2247
  }
2248
- }), pe = (n, e) => {
2248
+ }), ye = (n, e) => {
2249
2249
  const t = n.__vccOpts || n;
2250
2250
  for (const [i, s] of e)
2251
2251
  t[i] = s;
2252
2252
  return t;
2253
- }, Pt = /* @__PURE__ */ pe(Zr, [["__scopeId", "data-v-2cbfac70"]]), Jr = { class: "analytics-chart" }, en = /* @__PURE__ */ V({
2253
+ }, Pt = /* @__PURE__ */ ye(Zr, [["__scopeId", "data-v-2cbfac70"]]), Jr = { class: "analytics-chart" }, en = /* @__PURE__ */ K({
2254
2254
  __name: "BaseAnalyticsChartRenderer",
2255
2255
  props: {
2256
2256
  query: {},
@@ -2265,7 +2265,7 @@ const Z = {
2265
2265
  },
2266
2266
  emits: ["edit-tile", "chart-data", "zoom-time-range", "view-requests", "select-chart-range"],
2267
2267
  setup(n, { emit: e }) {
2268
- const t = n, i = e, { i18n: s } = Z.useI18n(), r = w(() => ({
2268
+ const t = n, i = e, { i18n: s } = X.useI18n(), r = w(() => ({
2269
2269
  type: t.chartOptions.type,
2270
2270
  stacked: t.chartOptions.stacked ?? !1,
2271
2271
  chartDatasetColors: t.chartOptions.chart_dataset_colors,
@@ -2278,7 +2278,7 @@ const Z = {
2278
2278
  };
2279
2279
  return (l, u) => {
2280
2280
  const c = se("KDropdownItem");
2281
- return _(), z(ut, {
2281
+ return _(), N(dt, {
2282
2282
  context: n.context,
2283
2283
  query: n.query,
2284
2284
  "query-ready": n.queryReady,
@@ -2286,8 +2286,8 @@ const Z = {
2286
2286
  onChartData: d
2287
2287
  }, {
2288
2288
  default: I(({ data: f }) => [
2289
- j("div", Jr, [
2290
- le(x($i), Qt({
2289
+ V("div", Jr, [
2290
+ ue(x($i), Qt({
2291
2291
  "chart-data": f,
2292
2292
  "chart-options": r.value,
2293
2293
  "explore-link": n.exploreLink,
@@ -2303,9 +2303,9 @@ const Z = {
2303
2303
  n.context.editable ? {
2304
2304
  name: "menu-items",
2305
2305
  fn: I(() => [
2306
- le(c, { onClick: o }, {
2306
+ ue(c, { onClick: o }, {
2307
2307
  default: I(() => [
2308
- st(Q(x(s).t("renderer.edit")), 1)
2308
+ rt(Y(x(s).t("renderer.edit")), 1)
2309
2309
  ]),
2310
2310
  _: 1
2311
2311
  })
@@ -2319,7 +2319,7 @@ const Z = {
2319
2319
  }, 8, ["context", "query", "query-ready", "refresh-counter"]);
2320
2320
  };
2321
2321
  }
2322
- }), dt = /* @__PURE__ */ pe(en, [["__scopeId", "data-v-e1e7f610"]]), qt = /* @__PURE__ */ V({
2322
+ }), ct = /* @__PURE__ */ ye(en, [["__scopeId", "data-v-e1e7f610"]]), qt = /* @__PURE__ */ K({
2323
2323
  __name: "BarChartRenderer",
2324
2324
  props: {
2325
2325
  query: {},
@@ -2332,7 +2332,7 @@ const Z = {
2332
2332
  exploreLink: {}
2333
2333
  },
2334
2334
  setup(n) {
2335
- return (e, t) => (_(), z(dt, {
2335
+ return (e, t) => (_(), N(ct, {
2336
2336
  "chart-options": n.chartOptions,
2337
2337
  context: n.context,
2338
2338
  "extra-props": { showAnnotations: !1 },
@@ -2342,7 +2342,7 @@ const Z = {
2342
2342
  "refresh-counter": n.refreshCounter
2343
2343
  }, null, 8, ["chart-options", "context", "height", "query", "query-ready", "refresh-counter"]));
2344
2344
  }
2345
- }), Ht = /* @__PURE__ */ V({
2345
+ }), Ht = /* @__PURE__ */ K({
2346
2346
  __name: "TimeseriesChartRenderer",
2347
2347
  props: {
2348
2348
  query: {},
@@ -2357,7 +2357,7 @@ const Z = {
2357
2357
  emits: ["zoom-time-range", "select-chart-range"],
2358
2358
  setup(n, { emit: e }) {
2359
2359
  const t = e;
2360
- return (i, s) => (_(), z(dt, {
2360
+ return (i, s) => (_(), N(ct, {
2361
2361
  "chart-options": n.chartOptions,
2362
2362
  context: n.context,
2363
2363
  "explore-link": n.exploreLink,
@@ -2370,7 +2370,7 @@ const Z = {
2370
2370
  onZoomTimeRange: s[1] || (s[1] = (r) => t("zoom-time-range", r))
2371
2371
  }, null, 8, ["chart-options", "context", "explore-link", "height", "query", "query-ready", "refresh-counter", "requests-link"]));
2372
2372
  }
2373
- }), tn = /* @__PURE__ */ V({
2373
+ }), tn = /* @__PURE__ */ K({
2374
2374
  __name: "GoldenSignalsRenderer",
2375
2375
  props: {
2376
2376
  query: {},
@@ -2400,28 +2400,28 @@ const Z = {
2400
2400
  };
2401
2401
  });
2402
2402
  return (i, s) => (_(), F("div", {
2403
- class: Ce(["metric-card-tile-wrapper", { titled: !!e.chartOptions.chart_title }])
2403
+ class: ke(["metric-card-tile-wrapper", { titled: !!e.chartOptions.chart_title }])
2404
2404
  }, [
2405
- le(x(is), Li(Ai(t.value)), {
2405
+ ue(x(is), Li(Ai(t.value)), {
2406
2406
  default: I(() => [
2407
- le(x(ss))
2407
+ ue(x(ss))
2408
2408
  ]),
2409
2409
  _: 1
2410
2410
  }, 16)
2411
2411
  ], 2));
2412
2412
  }
2413
- }), sn = /* @__PURE__ */ pe(tn, [["__scopeId", "data-v-b77f52b8"]]), rn = {
2413
+ }), sn = /* @__PURE__ */ ye(tn, [["__scopeId", "data-v-b77f52b8"]]), rn = {
2414
2414
  class: "fallback-entity-link",
2415
2415
  "data-testid": "entity-link-parent"
2416
- }, It = /* @__PURE__ */ V({
2416
+ }, It = /* @__PURE__ */ K({
2417
2417
  __name: "FallbackEntityLink",
2418
2418
  props: {
2419
2419
  entityLinkData: {}
2420
2420
  },
2421
2421
  setup(n) {
2422
- return (e, t) => (_(), F("div", rn, Q(n.entityLinkData.label), 1));
2422
+ return (e, t) => (_(), F("div", rn, Y(n.entityLinkData.label), 1));
2423
2423
  }
2424
- }), nn = { key: 0 }, on = { key: 1 }, an = /* @__PURE__ */ V({
2424
+ }), nn = { key: 0 }, on = { key: 1 }, an = /* @__PURE__ */ K({
2425
2425
  __name: "TopNTableRenderer",
2426
2426
  props: {
2427
2427
  query: {},
@@ -2434,7 +2434,7 @@ const Z = {
2434
2434
  exploreLink: {}
2435
2435
  },
2436
2436
  setup(n) {
2437
- const e = n, t = ue(fe), i = Vt(async () => {
2437
+ const e = n, t = de(ge), i = Vt(async () => {
2438
2438
  if (t?.fetchComponent)
2439
2439
  try {
2440
2440
  return await t.fetchComponent("EntityLink");
@@ -2458,21 +2458,21 @@ const Z = {
2458
2458
  return u.replace(xt, l.id);
2459
2459
  return "";
2460
2460
  };
2461
- return (l, u) => (_(), z(ut, {
2461
+ return (l, u) => (_(), N(dt, {
2462
2462
  context: n.context,
2463
2463
  query: n.query,
2464
2464
  "query-ready": n.queryReady,
2465
2465
  "refresh-counter": n.refreshCounter
2466
2466
  }, {
2467
2467
  default: I(({ data: c }) => [
2468
- le(x(Gi), {
2468
+ ue(x(Gi), {
2469
2469
  data: c,
2470
2470
  "synthetics-data-key": n.chartOptions.synthetics_data_key
2471
2471
  }, Qe({ _: 2 }, [
2472
2472
  s.value ? {
2473
2473
  name: "name",
2474
2474
  fn: I(({ record: f }) => [
2475
- !f.isEmpty && o(f) ? (_(), z(x(i), {
2475
+ !f.isEmpty && o(f) ? (_(), N(x(i), {
2476
2476
  key: 0,
2477
2477
  "entity-link-data": {
2478
2478
  id: f.id,
@@ -2480,8 +2480,8 @@ const Z = {
2480
2480
  deleted: f.deleted
2481
2481
  },
2482
2482
  "external-link": d(f)
2483
- }, null, 8, ["entity-link-data", "external-link"])) : (_(), F(rt, { key: 1 }, [
2484
- f.name === "empty" ? (_(), F("i", nn, Q(f.name), 1)) : (_(), F("span", on, Q(f.name), 1))
2483
+ }, null, 8, ["entity-link-data", "external-link"])) : (_(), F(nt, { key: 1 }, [
2484
+ f.name === "empty" ? (_(), F("i", nn, Y(f.name), 1)) : (_(), F("span", on, Y(f.name), 1))
2485
2485
  ], 64))
2486
2486
  ]),
2487
2487
  key: "0"
@@ -2551,7 +2551,7 @@ const Z = {
2551
2551
  /** @deprecated Use `platform_usage`. */
2552
2552
  platform: Bt,
2553
2553
  platform_usage: Bt
2554
- }, cn = /* @__PURE__ */ V({
2554
+ }, cn = /* @__PURE__ */ K({
2555
2555
  __name: "TableDataGridRenderer",
2556
2556
  props: {
2557
2557
  query: {},
@@ -2562,7 +2562,7 @@ const Z = {
2562
2562
  },
2563
2563
  emits: ["loading-change"],
2564
2564
  setup(n, { emit: e }) {
2565
- const t = n, i = e, s = ue(fe), r = Ae(), { i18n: a } = Z.useI18n(), o = new AbortController(), d = O([]), l = O(!1), u = w(() => t.height === void 0 ? void 0 : { height: `${t.height}px` }), c = w(() => ({
2565
+ const t = n, i = e, s = de(ge), r = Pe(), { i18n: a } = X.useI18n(), o = new AbortController(), d = z([]), l = z(!1), u = w(() => t.height === void 0 ? void 0 : { height: `${t.height}px` }), c = w(() => ({
2566
2566
  datasource: t.query.datasource,
2567
2567
  query: {
2568
2568
  columns: t.query.columns,
@@ -2586,7 +2586,7 @@ const Z = {
2586
2586
  tz: t.context.tz
2587
2587
  }
2588
2588
  }));
2589
- Le(() => {
2589
+ Ae(() => {
2590
2590
  o.abort();
2591
2591
  });
2592
2592
  const g = w(() => un[t.query.datasource]({
@@ -2607,8 +2607,8 @@ const Z = {
2607
2607
  cursor: p,
2608
2608
  pageSize: T,
2609
2609
  query: c.value,
2610
- onResponseColumns: (A) => {
2611
- d.value = A;
2610
+ onResponseColumns: (P) => {
2611
+ d.value = P;
2612
2612
  },
2613
2613
  stripUnknownFilters: r.stripUnknownFilters,
2614
2614
  tabularQueryFn: s?.tabularQueryFn
@@ -2626,7 +2626,7 @@ const Z = {
2626
2626
  class: "table-data-grid-renderer",
2627
2627
  style: Ie(u.value)
2628
2628
  }, [
2629
- n.queryReady ? (_(), z(x(rs), {
2629
+ n.queryReady ? (_(), N(x(rs), {
2630
2630
  key: 1,
2631
2631
  error: l.value,
2632
2632
  fetcher: m.value,
@@ -2634,7 +2634,7 @@ const Z = {
2634
2634
  "page-size": n.query.page_size,
2635
2635
  "refresh-key": f.value,
2636
2636
  onState: v
2637
- }, null, 8, ["error", "fetcher", "headers", "page-size", "refresh-key"])) : (_(), z(E, {
2637
+ }, null, 8, ["error", "fetcher", "headers", "page-size", "refresh-key"])) : (_(), N(E, {
2638
2638
  key: 0,
2639
2639
  "data-testid": "table-skeleton",
2640
2640
  type: "table"
@@ -2642,7 +2642,7 @@ const Z = {
2642
2642
  ], 4);
2643
2643
  };
2644
2644
  }
2645
- }), hn = /* @__PURE__ */ pe(cn, [["__scopeId", "data-v-c49ff2eb"]]), Wt = "#6c7489", fn = "12px", $t = "20px", Gt = "32px", ui = "20px", gn = /* @__PURE__ */ V({
2645
+ }), hn = /* @__PURE__ */ ye(cn, [["__scopeId", "data-v-c49ff2eb"]]), Wt = "#6c7489", fn = "12px", $t = "20px", Gt = "32px", ui = "20px", gn = /* @__PURE__ */ K({
2646
2646
  __name: "DonutChartRenderer",
2647
2647
  props: {
2648
2648
  query: {},
@@ -2655,7 +2655,7 @@ const Z = {
2655
2655
  exploreLink: {}
2656
2656
  },
2657
2657
  setup(n) {
2658
- return (e, t) => (_(), z(dt, {
2658
+ return (e, t) => (_(), N(ct, {
2659
2659
  "chart-options": n.chartOptions,
2660
2660
  context: n.context,
2661
2661
  height: n.height,
@@ -2667,12 +2667,12 @@ const Z = {
2667
2667
  }), mn = ["data-testid"], pn = {
2668
2668
  key: 0,
2669
2669
  class: "tile-header"
2670
- }, yn = { class: "badge-container" }, vn = { class: "badge-text" }, bn = { key: 0 }, wn = ["data-testid"], _n = ["data-testid"], xn = { class: "delete-option" }, En = ["data-testid"], Cn = ["data-testid"], kn = /* @__PURE__ */ V({
2670
+ }, yn = { class: "badge-container" }, vn = { class: "badge-text" }, bn = { key: 0 }, wn = ["data-testid"], _n = ["data-testid"], xn = { class: "delete-option" }, En = ["data-testid"], Cn = ["data-testid"], kn = /* @__PURE__ */ K({
2671
2671
  __name: "DashboardTile",
2672
2672
  props: /* @__PURE__ */ Fe({
2673
2673
  context: {},
2674
2674
  definition: {},
2675
- height: { default: Pe },
2675
+ height: { default: qe },
2676
2676
  isFullscreen: { type: Boolean },
2677
2677
  hideActions: { type: Boolean, default: !1 },
2678
2678
  hideZoomActions: { type: Boolean, default: !1 },
@@ -2686,37 +2686,37 @@ const Z = {
2686
2686
  }),
2687
2687
  emits: /* @__PURE__ */ Fe(["chart-data", "tile-loaded", "edit-tile", "duplicate-tile", "remove-tile", "tile-time-range-zoom", "tile-bounds-change"], ["update:refreshCounter"]),
2688
2688
  setup(n, { expose: e, emit: t }) {
2689
- nt((k) => ({
2690
- v6ce74284: `${k.height}px`
2689
+ ot((R) => ({
2690
+ v6ce74284: `${R.height}px`
2691
2691
  }));
2692
2692
  const i = parseInt(ui, 10), s = n, r = jt(n, "refreshCounter"), a = () => {
2693
2693
  E.value = !0, r.value++;
2694
- }, o = t, d = Vt(() => import("./GeoMapRenderer-DHLAIZPL.js")), l = ue(fe), u = Ae(), { stripUnknownFilters: c } = Oe(u), { i18n: f } = Z.useI18n(), g = O(), m = O({ status: "loading" }), v = O(!1), p = O(), T = O(!1), E = O(!0), y = w(() => s.definition.chart), A = w(() => "chart_title" in y.value ? y.value.chart_title : void 0), L = w(() => "description" in y.value ? y.value.description : void 0), $ = w(() => y.value.type === "slottable"), de = w(() => ee(s.definition) ? !1 : !("allow_csv_export" in y.value) || y.value.allow_csv_export !== !1), {
2695
- exploreLinkKebabMenu: G,
2696
- requestsLinkKebabMenu: te,
2697
- canShowKebabMenu: R,
2694
+ }, o = t, d = Vt(() => import("./GeoMapRenderer-aSO9X_bk.js")), l = de(ge), u = Pe(), { stripUnknownFilters: c } = ze(u), { i18n: f } = X.useI18n(), g = z(), m = z({ status: "loading" }), v = z(!1), p = z(), T = z(!1), E = z(!0), y = w(() => s.definition.chart), P = w(() => "chart_title" in y.value ? y.value.chart_title : void 0), D = w(() => "description" in y.value ? y.value.description : void 0), J = w(() => y.value.type === "slottable"), ce = w(() => Z(s.definition) ? !1 : !("allow_csv_export" in y.value) || y.value.allow_csv_export !== !1), {
2695
+ exploreLinkKebabMenu: oe,
2696
+ requestsLinkKebabMenu: ee,
2697
+ canShowKebabMenu: k,
2698
2698
  canGenerateRequestsLink: H,
2699
- canGenerateExploreLink: P,
2700
- requestsLinkZoomActions: J,
2701
- exploreLinkZoomActions: ce,
2702
- buildExploreQuery: ie,
2703
- buildExploreLink: he,
2699
+ canGenerateExploreLink: q,
2700
+ requestsLinkZoomActions: Q,
2701
+ exploreLinkZoomActions: he,
2702
+ buildExploreQuery: te,
2703
+ buildExploreLink: xe,
2704
2704
  buildRequestLink: S,
2705
- buildRequestsQueryZoomActions: D
2706
- } = Z.useContextLinks({
2705
+ buildRequestsQueryZoomActions: O
2706
+ } = X.useContextLinks({
2707
2707
  queryBridge: l,
2708
- chartData: tt(g),
2709
- definition: Te(s, "definition"),
2710
- context: tt(Te(s, "context"))
2711
- }), { issueQuery: B } = Z.useIssueQuery();
2712
- Se(() => s.definition, async (k, N) => {
2713
- await ot(), p.value && (T.value = p.value.scrollWidth > p.value.clientWidth);
2708
+ chartData: it(g),
2709
+ definition: Se(s, "definition"),
2710
+ context: it(Se(s, "context"))
2711
+ }), { issueQuery: B } = X.useIssueQuery();
2712
+ De(() => s.definition, async (R, M) => {
2713
+ await at(), p.value && (T.value = p.value.scrollWidth > p.value.clientWidth);
2714
2714
  try {
2715
- JSON.stringify(k?.query) !== JSON.stringify(N?.query) && (E.value = !0);
2715
+ JSON.stringify(R?.query) !== JSON.stringify(M?.query) && (E.value = !0);
2716
2716
  } catch {
2717
2717
  }
2718
2718
  }, { immediate: !0, deep: !0 });
2719
- const q = w(() => f.t("csvExport.defaultFilename")), W = w(() => !!G.value || de.value || s.context.editable), ye = w(() => !s.hideActions && R.value && W.value), qe = w(() => ye.value && W.value && !s.isFullscreen), ft = w(() => y.value.type === "golden_signals" && !!L.value), He = {
2719
+ const A = w(() => f.t("csvExport.defaultFilename")), W = w(() => !!oe.value || ce.value || s.context.editable), ie = w(() => !s.hideActions && k.value && W.value), fe = w(() => ie.value && W.value && !s.isFullscreen), Xe = w(() => y.value.type === "golden_signals" && !!D.value), He = {
2720
2720
  timeseries_line: Ht,
2721
2721
  timeseries_bar: Ht,
2722
2722
  horizontal_bar: qt,
@@ -2735,67 +2735,67 @@ const Z = {
2735
2735
  ...ve.value?.rendererEvents.supportsBounds ? { "bounds-change": ki } : {},
2736
2736
  ...ve.value?.rendererEvents.supportsLoadingChange ? { "loading-change": _i } : {}
2737
2737
  })), ve = w(() => {
2738
- const k = s.definition, N = He[k.chart.type], U = ee(k), be = !!N?.emits?.includes("select-chart-range"), xe = !!N?.emits?.includes("zoom-time-range"), we = k.chart.type === "choropleth_map", Ze = !!N?.emits?.includes("loading-change"), Ti = {
2739
- query: k.query,
2738
+ const R = s.definition, M = He[R.chart.type], $ = Z(R), be = !!M?.emits?.includes("select-chart-range"), Ee = !!M?.emits?.includes("zoom-time-range"), we = R.chart.type === "choropleth_map", Je = !!M?.emits?.includes("loading-change"), Ti = {
2739
+ query: R.query,
2740
2740
  context: s.context,
2741
2741
  queryReady: s.queryReady,
2742
2742
  height: s.height - i * 2,
2743
2743
  refreshCounter: r.value
2744
2744
  }, Si = {
2745
- chartOptions: k.chart,
2746
- requestsLink: s.hideZoomActions ? void 0 : J.value,
2747
- exploreLink: s.hideZoomActions ? void 0 : ce.value
2745
+ chartOptions: R.chart,
2746
+ requestsLink: s.hideZoomActions ? void 0 : Q.value,
2747
+ exploreLink: s.hideZoomActions ? void 0 : he.value
2748
2748
  };
2749
- return N && {
2750
- component: N,
2749
+ return M && {
2750
+ component: M,
2751
2751
  rendererProps: {
2752
2752
  ...Ti,
2753
- ...U ? {} : Si
2753
+ ...$ ? {} : Si
2754
2754
  },
2755
2755
  rendererEvents: {
2756
2756
  supportsRequests: be,
2757
- supportsZoom: xe,
2757
+ supportsZoom: Ee,
2758
2758
  supportsBounds: we,
2759
- supportsLoadingChange: Ze
2759
+ supportsLoadingChange: Je
2760
2760
  }
2761
2761
  };
2762
- }), Xe = w(() => {
2763
- if (ee(s.definition))
2762
+ }), Ze = w(() => {
2763
+ if (Z(s.definition))
2764
2764
  return null;
2765
- const k = s.definition.query, N = k?.time_range;
2766
- if (Jt(k?.datasource) && !k.dimensions?.includes("time"))
2765
+ const R = s.definition.query, M = R?.time_range;
2766
+ if (Jt(R?.datasource) && !R.dimensions?.includes("time"))
2767
2767
  return f.t("renderer.as_of_today");
2768
- if (N?.type === "relative") {
2769
- const U = Hi.get(Ii[N.time_range]);
2770
- return U ? U.display : (console.warn("Did not recognize the given relative time range:", N.time_range), N.time_range);
2771
- } else if (N?.type === "absolute") {
2772
- const U = N.tz || "Etc/UTC";
2773
- return `${_t(N.start, { short: !0, tz: U })} - ${_t(N.end, { short: !0, tz: U })}`;
2768
+ if (M?.type === "relative") {
2769
+ const $ = Hi.get(Ii[M.time_range]);
2770
+ return $ ? $.display : (console.warn("Did not recognize the given relative time range:", M.time_range), M.time_range);
2771
+ } else if (M?.type === "absolute") {
2772
+ const $ = M.tz || "Etc/UTC";
2773
+ return `${_t(M.start, { short: !0, tz: $ })} - ${_t(M.end, { short: !0, tz: $ })}`;
2774
2774
  }
2775
2775
  return null;
2776
- }), gt = w(() => $.value ? !1 : [
2777
- !!A.value,
2778
- qe.value,
2779
- !!Xe.value,
2780
- ft.value,
2776
+ }), gt = w(() => J.value ? !1 : [
2777
+ !!P.value,
2778
+ fe.value,
2779
+ !!Ze.value,
2780
+ Xe.value,
2781
2781
  s.showRefresh
2782
- ].some(Boolean)), mt = w(() => g.value ? it(g.value.meta.granularity_ms) : void 0), fi = w(() => ["timeseries_line", "timeseries_bar"].includes(y.value.type)), pt = w(() => {
2783
- if (ee(s.definition) || !fi.value || !s.queryReady || E.value)
2782
+ ].some(Boolean)), mt = w(() => g.value ? st(g.value.meta.granularity_ms) : void 0), fi = w(() => ["timeseries_line", "timeseries_bar"].includes(y.value.type)), pt = w(() => {
2783
+ if (Z(s.definition) || !fi.value || !s.queryReady || E.value)
2784
2784
  return !1;
2785
- const k = s.definition.query.granularity;
2786
- return !k || !mt.value ? !1 : k !== mt.value;
2785
+ const R = s.definition.query.granularity;
2786
+ return !R || !mt.value ? !1 : R !== mt.value;
2787
2787
  }), gi = w(() => {
2788
- const k = it(g.value?.meta.granularity_ms ?? 0) ?? "unknown", N = ee(s.definition) ? "unknown" : s.definition.query.granularity ?? "unknown";
2788
+ const R = st(g.value?.meta.granularity_ms ?? 0) ?? "unknown", M = Z(s.definition) ? "unknown" : s.definition.query.granularity ?? "unknown";
2789
2789
  return f.t("query_aged_out_warning", {
2790
- currentGranularity: f.t(`granularities.${k}`),
2791
- savedGranularity: f.t(`granularities.${N}`)
2790
+ currentGranularity: f.t(`granularities.${R}`),
2791
+ savedGranularity: f.t(`granularities.${M}`)
2792
2792
  });
2793
2793
  }), mi = w(() => {
2794
- const k = s.definition, N = [...s.context.filters, ...k.query.filters ?? []], U = "metrics" in k.query ? k.query.metrics : void 0, be = k.query.datasource ?? "api_usage";
2794
+ const R = s.definition, M = [...s.context.filters, ...R.query.filters ?? []], $ = "metrics" in R.query ? R.query.metrics : void 0, be = R.query.datasource ?? "api_usage";
2795
2795
  return c.value({
2796
2796
  datasource: be,
2797
- filters: N,
2798
- queryFields: U
2797
+ filters: M,
2798
+ queryFields: $
2799
2799
  });
2800
2800
  }), pi = () => {
2801
2801
  o("edit-tile", s.definition);
@@ -2803,95 +2803,95 @@ const Z = {
2803
2803
  o("duplicate-tile", s.definition);
2804
2804
  }, vi = () => {
2805
2805
  o("remove-tile", s.definition);
2806
- }, bi = (k) => {
2807
- g.value = k, E.value = !1, o("chart-data", k), o("tile-loaded");
2806
+ }, bi = (R) => {
2807
+ g.value = R, E.value = !1, o("chart-data", R), o("tile-loaded");
2808
2808
  }, wi = () => {
2809
2809
  E.value = !1, o("tile-loaded");
2810
- }, _i = (k) => {
2811
- E.value = k, k || o("tile-loaded");
2810
+ }, _i = (R) => {
2811
+ E.value = R, R || o("tile-loaded");
2812
2812
  }, xi = () => {
2813
2813
  v.value = !1;
2814
2814
  }, yt = () => {
2815
- const k = s.definition.query.datasource?.startsWith("goap");
2816
- return l?.staticConfig?.increaseCsvExportLimit !== !1 && !k ? B(s.definition.query, s.context, Fi) : g.value ? Promise.resolve(g.value) : new Promise((U) => {
2817
- const be = Se(g, (xe) => {
2818
- xe && (U(xe), be());
2815
+ const R = s.definition.query.datasource?.startsWith("goap");
2816
+ return l?.staticConfig?.increaseCsvExportLimit !== !1 && !R ? B(s.definition.query, s.context, Fi) : g.value ? Promise.resolve(g.value) : new Promise(($) => {
2817
+ const be = De(g, (Ee) => {
2818
+ Ee && ($(Ee), be());
2819
2819
  });
2820
2820
  });
2821
2821
  }, Ei = async () => {
2822
2822
  v.value = !0, m.value = { status: "loading" };
2823
2823
  try {
2824
- const k = await yt();
2825
- m.value = { status: "success", chartData: k };
2826
- } catch (k) {
2827
- m.value = { status: "error", error: k };
2824
+ const R = await yt();
2825
+ m.value = { status: "success", chartData: R };
2826
+ } catch (R) {
2827
+ m.value = { status: "error", error: R };
2828
2828
  }
2829
- }, Ci = (k) => {
2830
- const N = {
2829
+ }, Ci = (R) => {
2830
+ const M = {
2831
2831
  tileId: s.tileId.toString(),
2832
- timeRange: k
2832
+ timeRange: R
2833
2833
  };
2834
- o("tile-time-range-zoom", N);
2835
- }, ki = (k) => {
2836
- const N = {
2834
+ o("tile-time-range-zoom", M);
2835
+ }, ki = (R) => {
2836
+ const M = {
2837
2837
  tileId: s.tileId.toString(),
2838
- bounds: k
2838
+ bounds: R
2839
2839
  };
2840
- o("tile-bounds-change", N);
2841
- }, Ri = (k) => {
2842
- const N = mi.value, U = ie(k, N);
2843
- ce.value = P.value ? { href: he(U) } : void 0, J.value = H.value ? { href: S(D(k, N)) } : void 0;
2840
+ o("tile-bounds-change", M);
2841
+ }, Ri = (R) => {
2842
+ const M = mi.value, $ = te(R, M);
2843
+ he.value = q.value ? { href: xe($) } : void 0, Q.value = H.value ? { href: S(O(R, M)) } : void 0;
2844
2844
  };
2845
- return e({ getExportData: yt }), (k, N) => {
2846
- const U = se("KTooltip"), be = se("KBadge"), xe = se("KButton"), we = se("KDropdownItem"), Ze = se("KDropdown");
2845
+ return e({ getExportData: yt }), (R, M) => {
2846
+ const $ = se("KTooltip"), be = se("KBadge"), Ee = se("KButton"), we = se("KDropdownItem"), Je = se("KDropdown");
2847
2847
  return _(), F("div", {
2848
- class: Ce(["tile-boundary", {
2848
+ class: ke(["tile-boundary", {
2849
2849
  editable: n.context.editable,
2850
2850
  headless: !gt.value
2851
2851
  }]),
2852
2852
  "data-testid": `tile-${n.tileId}`
2853
2853
  }, [
2854
- gt.value && !$.value ? (_(), F("div", pn, [
2855
- le(U, {
2854
+ gt.value && !J.value ? (_(), F("div", pn, [
2855
+ ue($, {
2856
2856
  class: "title-tooltip",
2857
2857
  disabled: !T.value,
2858
2858
  "max-width": "500",
2859
- text: A.value
2859
+ text: P.value
2860
2860
  }, {
2861
2861
  default: I(() => [
2862
- j("div", {
2862
+ V("div", {
2863
2863
  ref_key: "titleRef",
2864
2864
  ref: p,
2865
2865
  class: "title"
2866
- }, Q(A.value), 513)
2866
+ }, Y(P.value), 513)
2867
2867
  ]),
2868
2868
  _: 1
2869
2869
  }, 8, ["disabled", "text"]),
2870
- j("div", yn, [
2871
- Xe.value ? (_(), z(be, {
2870
+ V("div", yn, [
2871
+ Ze.value ? (_(), N(be, {
2872
2872
  key: 0,
2873
2873
  "data-testid": "time-range-badge",
2874
2874
  tooltip: pt.value ? gi.value : void 0,
2875
2875
  "tooltip-attributes": { maxWidth: "320px" }
2876
2876
  }, Qe({
2877
2877
  default: I(() => [
2878
- j("span", vn, Q(Xe.value), 1)
2878
+ V("span", vn, Y(Ze.value), 1)
2879
2879
  ]),
2880
2880
  _: 2
2881
2881
  }, [
2882
2882
  pt.value ? {
2883
2883
  name: "icon",
2884
2884
  fn: I(() => [
2885
- le(x(Xi), {
2885
+ ue(x(Xi), {
2886
2886
  size: `var(--kui-icon-size-20, ${x(fn)})`
2887
2887
  }, null, 8, ["size"])
2888
2888
  ]),
2889
2889
  key: "0"
2890
2890
  } : void 0
2891
- ]), 1032, ["tooltip"])) : K("", !0)
2891
+ ]), 1032, ["tooltip"])) : U("", !0)
2892
2892
  ]),
2893
2893
  n.showRefresh ? (_(), F("div", bn, [
2894
- le(xe, {
2894
+ ue(Ee, {
2895
2895
  appearance: "secondary",
2896
2896
  class: "refresh-button",
2897
2897
  "data-testid": `tile-refresh-button-${n.tileId}`,
@@ -2901,12 +2901,12 @@ const Z = {
2901
2901
  onClick: a
2902
2902
  }, {
2903
2903
  default: I(() => [
2904
- E.value ? (_(), z(x(Zi), {
2904
+ E.value ? (_(), N(x(Zi), {
2905
2905
  key: 0,
2906
2906
  role: "button",
2907
2907
  size: `var(--kui-icon-size-60, ${x(Gt)})`,
2908
2908
  tabindex: "0"
2909
- }, null, 8, ["size"])) : (_(), z(x(Ji), {
2909
+ }, null, 8, ["size"])) : (_(), N(x(Ji), {
2910
2910
  key: 1,
2911
2911
  role: "button",
2912
2912
  size: `var(--kui-icon-size-60, ${x(Gt)})`,
@@ -2915,74 +2915,74 @@ const Z = {
2915
2915
  ]),
2916
2916
  _: 1
2917
2917
  }, 8, ["data-testid", "disabled"])
2918
- ])) : K("", !0),
2919
- ye.value ? (_(), F("div", {
2918
+ ])) : U("", !0),
2919
+ ie.value ? (_(), F("div", {
2920
2920
  key: 1,
2921
2921
  class: "tile-actions",
2922
2922
  "data-testid": `tile-actions-${n.tileId}`
2923
2923
  }, [
2924
- ye.value && n.context.editable && !n.isFullscreen ? (_(), z(x(es), {
2924
+ ie.value && n.context.editable && !n.isFullscreen ? (_(), N(x(es), {
2925
2925
  key: 0,
2926
2926
  class: "edit-icon",
2927
2927
  color: `var(--kui-color-text-neutral, ${x(Wt)})`,
2928
2928
  "data-testid": `edit-tile-${n.tileId}`,
2929
2929
  size: `var(--kui-icon-size-40, ${x($t)})`,
2930
2930
  onClick: pi
2931
- }, null, 8, ["color", "data-testid", "size"])) : K("", !0),
2932
- ye.value && W.value && !n.isFullscreen ? (_(), z(Ze, {
2931
+ }, null, 8, ["color", "data-testid", "size"])) : U("", !0),
2932
+ ie.value && W.value && !n.isFullscreen ? (_(), N(Je, {
2933
2933
  key: 1,
2934
2934
  class: "dropdown",
2935
2935
  "data-testid": `chart-action-menu-${n.tileId}`,
2936
2936
  "kpop-attributes": { placement: "bottom-end" }
2937
2937
  }, {
2938
2938
  items: I(() => [
2939
- x(G) ? (_(), z(we, {
2939
+ x(oe) ? (_(), N(we, {
2940
2940
  key: 0,
2941
2941
  "data-testid": `chart-jump-to-explore-${n.tileId}`,
2942
- item: { label: x(f).t("jumpToExplore"), to: x(G) }
2943
- }, null, 8, ["data-testid", "item"])) : K("", !0),
2944
- !x(ee)(n.definition) && x(te) ? (_(), z(we, {
2942
+ item: { label: x(f).t("jumpToExplore"), to: x(oe) }
2943
+ }, null, 8, ["data-testid", "item"])) : U("", !0),
2944
+ !x(Z)(n.definition) && x(ee) ? (_(), N(we, {
2945
2945
  key: 1,
2946
2946
  "data-testid": `chart-jump-to-requests-${n.tileId}`,
2947
- item: { label: x(f).t("jumpToRequests"), to: x(te) }
2948
- }, null, 8, ["data-testid", "item"])) : K("", !0),
2949
- de.value ? (_(), z(we, {
2947
+ item: { label: x(f).t("jumpToRequests"), to: x(ee) }
2948
+ }, null, 8, ["data-testid", "item"])) : U("", !0),
2949
+ ce.value ? (_(), N(we, {
2950
2950
  key: 2,
2951
2951
  class: "chart-export-button",
2952
2952
  "data-testid": `chart-csv-export-${n.tileId}`,
2953
2953
  onClick: Ei
2954
2954
  }, {
2955
2955
  default: I(() => [
2956
- j("span", {
2956
+ V("span", {
2957
2957
  class: "chart-export-trigger",
2958
2958
  "data-testid": `csv-export-button-${n.tileId}`
2959
- }, Q(x(f).t("csvExport.exportAsCsv")), 9, _n)
2959
+ }, Y(x(f).t("csvExport.exportAsCsv")), 9, _n)
2960
2960
  ]),
2961
2961
  _: 1
2962
- }, 8, ["data-testid"])) : K("", !0),
2963
- n.context.editable ? (_(), z(we, {
2962
+ }, 8, ["data-testid"])) : U("", !0),
2963
+ n.context.editable ? (_(), N(we, {
2964
2964
  key: 3,
2965
2965
  "data-testid": `duplicate-tile-${n.tileId}`,
2966
2966
  onClick: yi
2967
2967
  }, {
2968
2968
  default: I(() => [
2969
- st(Q(x(f).t("renderer.duplicateTile")), 1)
2969
+ rt(Y(x(f).t("renderer.duplicateTile")), 1)
2970
2970
  ]),
2971
2971
  _: 1
2972
- }, 8, ["data-testid"])) : K("", !0),
2973
- n.context.editable ? (_(), z(we, {
2972
+ }, 8, ["data-testid"])) : U("", !0),
2973
+ n.context.editable ? (_(), N(we, {
2974
2974
  key: 4,
2975
2975
  "data-testid": `remove-tile-${n.tileId}`,
2976
2976
  onClick: vi
2977
2977
  }, {
2978
2978
  default: I(() => [
2979
- j("span", xn, Q(x(f).t("renderer.delete")), 1)
2979
+ V("span", xn, Y(x(f).t("renderer.delete")), 1)
2980
2980
  ]),
2981
2981
  _: 1
2982
- }, 8, ["data-testid"])) : K("", !0)
2982
+ }, 8, ["data-testid"])) : U("", !0)
2983
2983
  ]),
2984
2984
  default: I(() => [
2985
- le(x(ts), {
2985
+ ue(x(ts), {
2986
2986
  class: "kebab-action-menu",
2987
2987
  color: `var(--kui-color-text-neutral, ${x(Wt)})`,
2988
2988
  "data-testid": `kebab-action-menu-${n.tileId}`,
@@ -2990,33 +2990,33 @@ const Z = {
2990
2990
  }, null, 8, ["color", "data-testid", "size"])
2991
2991
  ]),
2992
2992
  _: 1
2993
- }, 8, ["data-testid"])) : K("", !0)
2994
- ], 8, wn)) : L.value ? (_(), F("div", {
2993
+ }, 8, ["data-testid"])) : U("", !0)
2994
+ ], 8, wn)) : D.value ? (_(), F("div", {
2995
2995
  key: 2,
2996
2996
  class: "header-description",
2997
2997
  "data-testid": `tile-description-${n.tileId}`
2998
- }, Q(L.value), 9, En)) : K("", !0),
2999
- v.value ? (_(), z(x(Ui), {
2998
+ }, Y(D.value), 9, En)) : U("", !0),
2999
+ v.value ? (_(), N(x(Ui), {
3000
3000
  key: 3,
3001
3001
  "data-testid": `csv-export-modal-${n.tileId}`,
3002
3002
  "export-state": m.value,
3003
- filename: q.value,
3003
+ filename: A.value,
3004
3004
  onCloseModal: xi
3005
- }, null, 8, ["data-testid", "export-state", "filename"])) : K("", !0)
3006
- ])) : K("", !0),
3007
- j("div", {
3008
- class: Ce(["tile-content", `type-${n.tileType}-${y.value.type}`]),
3005
+ }, null, 8, ["data-testid", "export-state", "filename"])) : U("", !0)
3006
+ ])) : U("", !0),
3007
+ V("div", {
3008
+ class: ke(["tile-content", `type-${n.tileType}-${y.value.type}`]),
3009
3009
  "data-testid": `tile-content-${n.tileId}`
3010
3010
  }, [
3011
- ve.value ? (_(), z(Xt(ve.value.component), Qt({ key: 0 }, ve.value.rendererProps, Pi(hi.value), {
3011
+ ve.value ? (_(), N(Xt(ve.value.component), Qt({ key: 0 }, ve.value.rendererProps, Pi(hi.value), {
3012
3012
  onChartData: bi,
3013
3013
  onQueryComplete: wi
3014
- }), null, 16)) : K("", !0)
3014
+ }), null, 16)) : U("", !0)
3015
3015
  ], 10, Cn)
3016
3016
  ], 10, mn);
3017
3017
  };
3018
3018
  }
3019
- }), di = /* @__PURE__ */ pe(kn, [["__scopeId", "data-v-fb1aa747"]]), Rn = (n, e) => {
3019
+ }), di = /* @__PURE__ */ ye(kn, [["__scopeId", "data-v-fb1aa747"]]), Rn = (n, e) => {
3020
3020
  let t = 0;
3021
3021
  const i = /* @__PURE__ */ new Map();
3022
3022
  e.forEach((r) => {
@@ -3027,18 +3027,18 @@ const Z = {
3027
3027
  for (let r = 0; r < t; r++)
3028
3028
  i.get(r) ? s.push("auto") : s.push(`${n}px`);
3029
3029
  return s;
3030
- }, Tn = /* @__PURE__ */ V({
3030
+ }, Tn = /* @__PURE__ */ K({
3031
3031
  __name: "GridLayout",
3032
3032
  props: {
3033
3033
  tileHeight: {
3034
3034
  type: Number,
3035
3035
  required: !1,
3036
- default: () => Pe
3036
+ default: () => qe
3037
3037
  },
3038
3038
  columns: {
3039
3039
  type: Number,
3040
3040
  required: !1,
3041
- default: () => lt
3041
+ default: () => ut
3042
3042
  },
3043
3043
  tiles: {
3044
3044
  type: Array,
@@ -3046,18 +3046,18 @@ const Z = {
3046
3046
  }
3047
3047
  },
3048
3048
  setup(n) {
3049
- nt((o) => ({
3049
+ ot((o) => ({
3050
3050
  v821fda82: e.columns,
3051
3051
  v0870d42d: r.value
3052
3052
  }));
3053
- const e = n, t = O(null), i = O(0), s = new ResizeObserver((o) => {
3053
+ const e = n, t = z(null), i = z(0), s = new ResizeObserver((o) => {
3054
3054
  window.requestAnimationFrame(() => {
3055
3055
  !Array.isArray(o) || !o.length || (i.value = o[0].contentRect.width);
3056
3056
  });
3057
3057
  });
3058
3058
  Ke(() => {
3059
3059
  t.value && s.observe(t.value);
3060
- }), Le(() => {
3060
+ }), Ae(() => {
3061
3061
  t.value && s.unobserve(t.value);
3062
3062
  });
3063
3063
  const r = w(() => Rn(e.tileHeight, e.tiles).join(" ")), a = w(() => e.tiles.map((o, d) => ({
@@ -3075,21 +3075,21 @@ const Z = {
3075
3075
  ref: t,
3076
3076
  class: "kong-ui-public-grid-layout"
3077
3077
  }, [
3078
- (_(!0), F(rt, null, Zt(a.value, (l) => (_(), F("div", {
3078
+ (_(!0), F(nt, null, Zt(a.value, (l) => (_(), F("div", {
3079
3079
  key: l.key,
3080
- class: Ce(["grid-cell", {
3080
+ class: ke(["grid-cell", {
3081
3081
  "empty-cell": !l.tile
3082
3082
  }]),
3083
3083
  style: Ie(l.style)
3084
3084
  }, [
3085
- De(o.$slots, "tile", {
3085
+ Oe(o.$slots, "tile", {
3086
3086
  style: Ie(l.style),
3087
3087
  tile: l.tile
3088
3088
  }, void 0, !0)
3089
3089
  ], 6))), 128))
3090
3090
  ], 512));
3091
3091
  }
3092
- }), Sn = /* @__PURE__ */ pe(Tn, [["__scopeId", "data-v-0271a8b9"]]);
3092
+ }), Sn = /* @__PURE__ */ ye(Tn, [["__scopeId", "data-v-0271a8b9"]]);
3093
3093
  function Dn(n, e, t, i, s) {
3094
3094
  const r = (...a) => (console.warn("gridstack.js: Function `" + t + "` is deprecated in " + s + " and has been replaced with `" + i + "`. It will be **removed** in a future release"), e.apply(n, a));
3095
3095
  return r.prototype = e.prototype, r;
@@ -3428,7 +3428,7 @@ class h {
3428
3428
  return !(!e || e.w === e.h || e.locked || e.noResize || e.grid?.opts.disableResize || e.minW && e.minW === e.maxW || e.minH && e.minH === e.maxH);
3429
3429
  }
3430
3430
  }
3431
- class oe {
3431
+ class ae {
3432
3432
  constructor(e = {}) {
3433
3433
  this.addedNodes = [], this.removedNodes = [], this.defaultColumn = 12, this.column = e.column || this.defaultColumn, this.column > this.defaultColumn && (this.defaultColumn = this.column), this.maxRow = e.maxRow, this._float = e.float, this.nodes = e.nodes || [], this.onChange = e.onChange;
3434
3434
  }
@@ -3606,7 +3606,7 @@ class oe {
3606
3606
  * @param resizing if out of bound, resize down or move into the grid to fit ?
3607
3607
  */
3608
3608
  prepareNode(e, t) {
3609
- e._id = e._id ?? oe._idSeq++;
3609
+ e._id = e._id ?? ae._idSeq++;
3610
3610
  const i = e.id;
3611
3611
  if (i) {
3612
3612
  let r = 1;
@@ -3701,7 +3701,7 @@ class oe {
3701
3701
  if (t.pack = !0, !this.maxRow)
3702
3702
  return this.moveNode(e, t);
3703
3703
  let i;
3704
- const s = new oe({
3704
+ const s = new ae({
3705
3705
  column: this.column,
3706
3706
  float: this.float,
3707
3707
  nodes: this.nodes.map((a) => a._id === e._id ? (i = { ...a }, i) : { ...a })
@@ -3723,7 +3723,7 @@ class oe {
3723
3723
  willItFit(e) {
3724
3724
  if (delete e._willFitPos, !this.maxRow)
3725
3725
  return !0;
3726
- const t = new oe({
3726
+ const t = new ae({
3727
3727
  column: this.column,
3728
3728
  float: this.float,
3729
3729
  nodes: this.nodes.map((s) => ({ ...s }))
@@ -3856,7 +3856,7 @@ class oe {
3856
3856
  return e.forEach((r, a) => {
3857
3857
  if (r._id === void 0) {
3858
3858
  const o = r.id ? this.nodes.find((d) => d.id === r.id) : void 0;
3859
- r._id = o?._id ?? oe._idSeq++;
3859
+ r._id = o?._id ?? ae._idSeq++;
3860
3860
  }
3861
3861
  s[a] = { x: r.x, y: r.y, w: r.w, _id: r._id };
3862
3862
  }), this._layouts = i ? [] : this._layouts || [], this._layouts[t] = s, this;
@@ -3867,7 +3867,7 @@ class oe {
3867
3867
  * @param column corresponding column index to save it under
3868
3868
  */
3869
3869
  cacheOneLayout(e, t) {
3870
- e._id = e._id ?? oe._idSeq++;
3870
+ e._id = e._id ?? ae._idSeq++;
3871
3871
  const i = { x: e.x, y: e.y, w: e.w, _id: e._id };
3872
3872
  (e.autoPosition || e.x === void 0) && (delete i.x, delete i.y, e.autoPosition && (i.autoPosition = !0)), this._layouts = this._layouts || [], this._layouts[t] = this._layouts[t] || [];
3873
3873
  const s = this.findCacheLayout(e, t);
@@ -3890,8 +3890,8 @@ class oe {
3890
3890
  return this;
3891
3891
  }
3892
3892
  }
3893
- oe._idSeq = 0;
3894
- const X = {
3893
+ ae._idSeq = 0;
3894
+ const j = {
3895
3895
  alwaysShowResizeHandle: "mobile",
3896
3896
  animate: !0,
3897
3897
  auto: !0,
@@ -3924,7 +3924,7 @@ const X = {
3924
3924
  class C {
3925
3925
  }
3926
3926
  const re = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
3927
- class ae {
3927
+ class le {
3928
3928
  }
3929
3929
  function We(n, e) {
3930
3930
  n.touches.length > 1 || (n.cancelable && n.preventDefault(), h.simulateMouseEvent(n.changedTouches[0], e));
@@ -3933,17 +3933,17 @@ function ci(n, e) {
3933
3933
  n.cancelable && n.preventDefault(), h.simulateMouseEvent(n, e);
3934
3934
  }
3935
3935
  function $e(n) {
3936
- ae.touchHandled || (ae.touchHandled = !0, We(n, "mousedown"));
3936
+ le.touchHandled || (le.touchHandled = !0, We(n, "mousedown"));
3937
3937
  }
3938
3938
  function Ge(n) {
3939
- ae.touchHandled && We(n, "mousemove");
3939
+ le.touchHandled && We(n, "mousemove");
3940
3940
  }
3941
3941
  function Ue(n) {
3942
- if (!ae.touchHandled)
3942
+ if (!le.touchHandled)
3943
3943
  return;
3944
- ae.pointerLeaveTimeout && (window.clearTimeout(ae.pointerLeaveTimeout), delete ae.pointerLeaveTimeout);
3944
+ le.pointerLeaveTimeout && (window.clearTimeout(le.pointerLeaveTimeout), delete le.pointerLeaveTimeout);
3945
3945
  const e = !!C.dragElement;
3946
- We(n, "mouseup"), e || We(n, "click"), ae.touchHandled = !1;
3946
+ We(n, "mouseup"), e || We(n, "click"), le.touchHandled = !1;
3947
3947
  }
3948
3948
  function Ye(n) {
3949
3949
  n.pointerType !== "mouse" && n.target.releasePointerCapture(n.pointerId);
@@ -3952,8 +3952,8 @@ function Ut(n) {
3952
3952
  C.dragElement && n.pointerType !== "mouse" && ci(n, "mouseenter");
3953
3953
  }
3954
3954
  function Yt(n) {
3955
- C.dragElement && n.pointerType !== "mouse" && (ae.pointerLeaveTimeout = window.setTimeout(() => {
3956
- delete ae.pointerLeaveTimeout, ci(n, "mouseleave");
3955
+ C.dragElement && n.pointerType !== "mouse" && (le.pointerLeaveTimeout = window.setTimeout(() => {
3956
+ delete le.pointerLeaveTimeout, ci(n, "mouseleave");
3957
3957
  }, 10));
3958
3958
  }
3959
3959
  class je {
@@ -3992,7 +3992,7 @@ class je {
3992
3992
  }
3993
3993
  }
3994
3994
  je.prefix = "ui-resizable-";
3995
- class ct {
3995
+ class ht {
3996
3996
  constructor() {
3997
3997
  this._eventRegister = {};
3998
3998
  }
@@ -4020,7 +4020,7 @@ class ct {
4020
4020
  return this._eventRegister[e](t);
4021
4021
  }
4022
4022
  }
4023
- class Ne extends ct {
4023
+ class Me extends ht {
4024
4024
  // have to be public else complains for HTMLElementExtendOpt ?
4025
4025
  constructor(e, t = {}) {
4026
4026
  super(), this.el = e, this.option = t, this.rectScale = { x: 1, y: 1 }, this._ui = () => {
@@ -4121,7 +4121,7 @@ class Ne extends ct {
4121
4121
  }
4122
4122
  /** @internal */
4123
4123
  _setupHelper() {
4124
- this.elOriginStyleVal = Ne._originStyleProp.map((i) => this.el.style[i]), this.parentOriginStylePosition = this.el.parentElement.style.position;
4124
+ this.elOriginStyleVal = Me._originStyleProp.map((i) => this.el.style[i]), this.parentOriginStylePosition = this.el.parentElement.style.position;
4125
4125
  const e = this.el.parentElement, t = h.getValuesFromTransformedElement(e);
4126
4126
  return this.rectScale = {
4127
4127
  x: t.xScale,
@@ -4130,7 +4130,7 @@ class Ne extends ct {
4130
4130
  }
4131
4131
  /** @internal */
4132
4132
  _cleanHelper() {
4133
- return Ne._originStyleProp.forEach((e, t) => {
4133
+ return Me._originStyleProp.forEach((e, t) => {
4134
4134
  this.el.style[e] = this.elOriginStyleVal[t] || null;
4135
4135
  }), this.el.parentElement.style.position = this.parentOriginStylePosition || null, this;
4136
4136
  }
@@ -4169,9 +4169,9 @@ class Ne extends ct {
4169
4169
  return this.handlers.forEach((e) => e.destroy()), delete this.handlers, this;
4170
4170
  }
4171
4171
  }
4172
- Ne._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
4172
+ Me._originStyleProp = ["width", "height", "position", "left", "top", "opacity", "zIndex"];
4173
4173
  const On = 'input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle';
4174
- class Me extends ct {
4174
+ class Le extends ht {
4175
4175
  constructor(e, t = {}) {
4176
4176
  super(), this.el = e, this.option = t, this.dragTransform = {
4177
4177
  xScale: 1,
@@ -4257,7 +4257,7 @@ class Me extends ct {
4257
4257
  /** @internal create a clone copy (or user defined method) of the original drag item if set */
4258
4258
  _createHelper() {
4259
4259
  let e = this.el;
4260
- return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = h.cloneNode(this.el)), e.parentElement || h.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = Me.originStyleProp.map((t) => this.el.style[t]), e;
4260
+ return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = h.cloneNode(this.el)), e.parentElement || h.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = Le.originStyleProp.map((t) => this.el.style[t]), e;
4261
4261
  }
4262
4262
  /** @internal set the fix position of the dragged item */
4263
4263
  _setupHelperStyle(e) {
@@ -4271,7 +4271,7 @@ class Me extends ct {
4271
4271
  _removeHelperStyle() {
4272
4272
  if (this.helper.classList.remove("ui-draggable-dragging"), !this.helper?.gridstackNode?._isAboutToRemove && this.dragElementOriginStyle) {
4273
4273
  const t = this.helper, i = this.dragElementOriginStyle.transition || null;
4274
- t.style.transition = this.dragElementOriginStyle.transition = "none", Me.originStyleProp.forEach((s) => t.style[s] = this.dragElementOriginStyle[s] || null), setTimeout(() => t.style.transition = i, 50);
4274
+ t.style.transition = this.dragElementOriginStyle.transition = "none", Le.originStyleProp.forEach((s) => t.style[s] = this.dragElementOriginStyle[s] || null), setTimeout(() => t.style.transition = i, 50);
4275
4275
  }
4276
4276
  return delete this.dragElementOriginStyle, this;
4277
4277
  }
@@ -4313,8 +4313,8 @@ class Me extends ct {
4313
4313
  };
4314
4314
  }
4315
4315
  }
4316
- Me.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
4317
- class zn extends ct {
4316
+ Le.originStyleProp = ["width", "height", "transform", "transform-origin", "transition", "pointerEvents", "position", "left", "top", "minWidth", "willChange"];
4317
+ class zn extends ht {
4318
4318
  constructor(e, t = {}) {
4319
4319
  super(), this.el = e, this.option = t, this._mouseEnter = this._mouseEnter.bind(this), this._mouseLeave = this._mouseLeave.bind(this), this.enable(), this._setupAccept();
4320
4320
  }
@@ -4379,9 +4379,9 @@ class zn extends ct {
4379
4379
  };
4380
4380
  }
4381
4381
  }
4382
- class ht {
4382
+ class ft {
4383
4383
  static init(e) {
4384
- return e.ddElement || (e.ddElement = new ht(e)), e.ddElement;
4384
+ return e.ddElement || (e.ddElement = new ft(e)), e.ddElement;
4385
4385
  }
4386
4386
  constructor(e) {
4387
4387
  this.el = e;
@@ -4393,13 +4393,13 @@ class ht {
4393
4393
  return this.ddDraggable && ["drag", "dragstart", "dragstop"].indexOf(e) > -1 ? this.ddDraggable.off(e) : this.ddDroppable && ["drop", "dropover", "dropout"].indexOf(e) > -1 ? this.ddDroppable.off(e) : this.ddResizable && ["resizestart", "resize", "resizestop"].indexOf(e) > -1 && this.ddResizable.off(e), this;
4394
4394
  }
4395
4395
  setupDraggable(e) {
4396
- return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new Me(this.el, e), this;
4396
+ return this.ddDraggable ? this.ddDraggable.updateOption(e) : this.ddDraggable = new Le(this.el, e), this;
4397
4397
  }
4398
4398
  cleanDraggable() {
4399
4399
  return this.ddDraggable && (this.ddDraggable.destroy(), delete this.ddDraggable), this;
4400
4400
  }
4401
4401
  setupResizable(e) {
4402
- return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new Ne(this.el, e), this;
4402
+ return this.ddResizable ? this.ddResizable.updateOption(e) : this.ddResizable = new Me(this.el, e), this;
4403
4403
  }
4404
4404
  cleanResizable() {
4405
4405
  return this.ddResizable && (this.ddResizable.destroy(), delete this.ddResizable), this;
@@ -4487,10 +4487,10 @@ class Nn {
4487
4487
  /** @internal returns a list of DD elements, creating them on the fly by default unless option is to destroy or disable */
4488
4488
  _getDDElements(e, t) {
4489
4489
  const i = e.gridstack || t !== "destroy" && t !== "disable", s = h.getElements(e);
4490
- return s.length ? s.map((a) => a.ddElement || (i ? ht.init(a) : null)).filter((a) => a) : [];
4490
+ return s.length ? s.map((a) => a.ddElement || (i ? ft.init(a) : null)).filter((a) => a) : [];
4491
4491
  }
4492
4492
  }
4493
- const Y = new Nn();
4493
+ const G = new Nn();
4494
4494
  class b {
4495
4495
  /**
4496
4496
  * initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
@@ -4555,7 +4555,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4555
4555
  /** @internal create placeholder DIV as needed */
4556
4556
  get placeholder() {
4557
4557
  if (!this._placeholder) {
4558
- this._placeholder = h.createDiv([this.opts.placeholderClass, X.itemClass, this.opts.itemClass]);
4558
+ this._placeholder = h.createDiv([this.opts.placeholderClass, j.itemClass, this.opts.itemClass]);
4559
4559
  const e = h.createDiv(["placeholder-content"], this._placeholder);
4560
4560
  this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
4561
4561
  }
@@ -4581,24 +4581,24 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4581
4581
  const a = t.columnOpts;
4582
4582
  a && (!a.columnWidth && !a.breakpoints?.length ? (delete t.columnOpts, s = void 0) : a.columnMax = a.columnMax || 12), s?.length > 1 && s.sort((c, f) => (f.w || 0) - (c.w || 0));
4583
4583
  const o = {
4584
- ...h.cloneDeep(X),
4585
- column: h.toNumber(e.getAttribute("gs-column")) || X.column,
4586
- minRow: i || h.toNumber(e.getAttribute("gs-min-row")) || X.minRow,
4587
- maxRow: i || h.toNumber(e.getAttribute("gs-max-row")) || X.maxRow,
4588
- staticGrid: h.toBool(e.getAttribute("gs-static")) || X.staticGrid,
4584
+ ...h.cloneDeep(j),
4585
+ column: h.toNumber(e.getAttribute("gs-column")) || j.column,
4586
+ minRow: i || h.toNumber(e.getAttribute("gs-min-row")) || j.minRow,
4587
+ maxRow: i || h.toNumber(e.getAttribute("gs-max-row")) || j.maxRow,
4588
+ staticGrid: h.toBool(e.getAttribute("gs-static")) || j.staticGrid,
4589
4589
  sizeToContent: h.toBool(e.getAttribute("gs-size-to-content")) || void 0,
4590
4590
  draggable: {
4591
- handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") || X.draggable.handle
4591
+ handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") || j.draggable.handle
4592
4592
  },
4593
4593
  removableOptions: {
4594
- accept: t.itemClass || X.removableOptions.accept,
4595
- decline: X.removableOptions.decline
4594
+ accept: t.itemClass || j.removableOptions.accept,
4595
+ decline: j.removableOptions.decline
4596
4596
  }
4597
4597
  };
4598
4598
  e.getAttribute("gs-animate") && (o.animate = h.toBool(e.getAttribute("gs-animate"))), t = h.defaults(t, o), this._initMargin(), this.checkDynamicColumn(), this.el.classList.add("gs-" + t.column), t.rtl === "auto" && (t.rtl = e.style.direction === "rtl"), t.rtl && this.el.classList.add("grid-stack-rtl");
4599
- const l = this.el.closest("." + X.itemClass)?.gridstackNode;
4600
- l && (l.subGrid = this, this.parentGridNode = l, this.el.classList.add("grid-stack-nested"), l.el.classList.add("grid-stack-sub-grid")), this._isAutoCellHeight = t.cellHeight === "auto", this._isAutoCellHeight || t.cellHeight === "initial" ? this.cellHeight(void 0, !1) : (typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !== X.cellHeightUnit && (t.cellHeight = t.cellHeight + t.cellHeightUnit, delete t.cellHeightUnit), this.cellHeight(t.cellHeight, !1)), t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = re), this._styleSheetClass = "gs-id-" + oe._idSeq++, this.el.classList.add(this._styleSheetClass), this._setStaticClass();
4601
- const u = t.engineClass || b.engineClass || oe;
4599
+ const l = this.el.closest("." + j.itemClass)?.gridstackNode;
4600
+ l && (l.subGrid = this, this.parentGridNode = l, this.el.classList.add("grid-stack-nested"), l.el.classList.add("grid-stack-sub-grid")), this._isAutoCellHeight = t.cellHeight === "auto", this._isAutoCellHeight || t.cellHeight === "initial" ? this.cellHeight(void 0, !1) : (typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !== j.cellHeightUnit && (t.cellHeight = t.cellHeight + t.cellHeightUnit, delete t.cellHeightUnit), this.cellHeight(t.cellHeight, !1)), t.alwaysShowResizeHandle === "mobile" && (t.alwaysShowResizeHandle = re), this._styleSheetClass = "gs-id-" + ae._idSeq++, this.el.classList.add(this._styleSheetClass), this._setStaticClass();
4601
+ const u = t.engineClass || b.engineClass || ae;
4602
4602
  if (this.engine = new u({
4603
4603
  column: this.getColumn(),
4604
4604
  float: t.float,
@@ -4725,7 +4725,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
4725
4725
  const r = h.cloneDeep(this.opts);
4726
4726
  r.marginBottom === r.marginTop && r.marginRight === r.marginLeft && r.marginTop === r.marginRight && (r.margin = r.marginTop, delete r.marginTop, delete r.marginRight, delete r.marginBottom, delete r.marginLeft), r.rtl === (this.el.style.direction === "rtl") && (r.rtl = "auto"), this._isAutoCellHeight && (r.cellHeight = "auto"), this._autoColumn && (r.column = "auto");
4727
4727
  const a = r._alwaysShowResizeHandle;
4728
- return delete r._alwaysShowResizeHandle, a !== void 0 ? r.alwaysShowResizeHandle = a : delete r.alwaysShowResizeHandle, h.removeInternalAndSame(r, X), r.children = s, r;
4728
+ return delete r._alwaysShowResizeHandle, a !== void 0 ? r.alwaysShowResizeHandle = a : delete r.alwaysShowResizeHandle, h.removeInternalAndSame(r, j), r.children = s, r;
4729
4729
  }
4730
4730
  return s;
4731
4731
  }
@@ -5266,7 +5266,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5266
5266
  }
5267
5267
  /** @internal */
5268
5268
  _prepareElement(e, t = !1, i) {
5269
- i = i || this._readAttr(e), e.gridstackNode = i, i.el = e, i.grid = this, i = this.engine.addNode(i, t), this._writeAttr(e, i), e.classList.add(X.itemClass, this.opts.itemClass);
5269
+ i = i || this._readAttr(e), e.gridstackNode = i, i.el = e, i.grid = this, i = this.engine.addNode(i, t), this._writeAttr(e, i), e.classList.add(j.itemClass, this.opts.itemClass);
5270
5270
  const s = h.shouldSizeToContent(i);
5271
5271
  return s ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), s && this.resizeToContentCheck(!1, i), h.lazyLoad(i) || this.prepareDragDrop(i.el), this;
5272
5272
  }
@@ -5372,7 +5372,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5372
5372
  */
5373
5373
  /** get the global (but static to this code) DD implementation */
5374
5374
  static getDD() {
5375
- return Y;
5375
+ return G;
5376
5376
  }
5377
5377
  /**
5378
5378
  * call to setup dragging in from the outside (say toolbar), by specifying the class selection and options.
@@ -5385,7 +5385,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5385
5385
  */
5386
5386
  static setupDragIn(e, t, i, s = document) {
5387
5387
  t?.pause !== void 0 && (C.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? h.getElements(e, s) : e).forEach((a, o) => {
5388
- Y.isDraggable(a) || Y.dragIn(a, t), i?.[o] && (a.gridstackNode = i[o]);
5388
+ G.isDraggable(a) || G.dragIn(a, t), i?.[o] && (a.gridstackNode = i[o]);
5389
5389
  });
5390
5390
  }
5391
5391
  /**
@@ -5463,12 +5463,12 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5463
5463
  }
5464
5464
  /** @internal removes any drag&drop present (called during destroy) */
5465
5465
  _removeDD(e) {
5466
- return Y.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
5466
+ return G.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
5467
5467
  }
5468
5468
  /** @internal called to add drag over to support widgets being added externally */
5469
5469
  _setupAcceptWidget() {
5470
5470
  if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable)
5471
- return Y.droppable(this.el, "destroy"), this;
5471
+ return G.droppable(this.el, "destroy"), this;
5472
5472
  let e, t;
5473
5473
  const i = (s, r, a) => {
5474
5474
  a = a || r;
@@ -5492,7 +5492,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5492
5492
  if (o._temporaryRemoved) {
5493
5493
  if (o.x = Math.max(0, Math.round(l / t)), o.y = Math.max(0, Math.round(d / e)), delete o.autoPosition, this.engine.nodeBoundFix(o), !this.engine.willItFit(o)) {
5494
5494
  if (o.autoPosition = !0, !this.engine.willItFit(o)) {
5495
- Y.off(r, "drag");
5495
+ G.off(r, "drag");
5496
5496
  return;
5497
5497
  }
5498
5498
  o._willFitPos && (h.copyPos(o, o._willFitPos), delete o._willFitPos);
@@ -5501,7 +5501,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5501
5501
  } else
5502
5502
  this._dragOrResize(a, s, c, o, t, e);
5503
5503
  };
5504
- return Y.droppable(this.el, {
5504
+ return G.droppable(this.el, {
5505
5505
  accept: (s) => {
5506
5506
  const r = s.gridstackNode || this._readAttr(s, !1);
5507
5507
  if (r?.grid === this)
@@ -5540,7 +5540,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5540
5540
  o.grid || (o.el || (o = { ...o }), o._isExternal = !0, a.gridstackNode = o);
5541
5541
  const d = o.w || Math.round(a.offsetWidth / t) || 1, l = o.h || Math.round(a.offsetHeight / e) || 1;
5542
5542
  return o.grid && o.grid !== this ? (r._gridstackNodeOrig || (r._gridstackNodeOrig = o), r.gridstackNode = o = { ...o, w: d, h: l, grid: this }, delete o.x, delete o.y, this.engine.cleanupNode(o).nodeBoundFix(o), o._initDD = o._isExternal = // DOM needs to be re-parented on a drop
5543
- o._temporaryRemoved = !0) : (o.w = d, o.h = l, o._temporaryRemoved = !0), b._itemRemoving(o.el, !1), Y.on(r, "drag", i), i(s, r, a), !1;
5543
+ o._temporaryRemoved = !0) : (o.w = d, o.h = l, o._temporaryRemoved = !0), b._itemRemoving(o.el, !1), G.on(r, "drag", i), i(s, r, a), !1;
5544
5544
  }).on(this.el, "dropout", (s, r, a) => {
5545
5545
  const o = a?.gridstackNode || r.gridstackNode;
5546
5546
  return o && (!o.grid || o.grid === this) && (this._leave(r, a), this._isTemp && this.removeAsSubGrid(o)), !1;
@@ -5557,7 +5557,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5557
5557
  const g = c.grid;
5558
5558
  g.engine.removeNodeFromLayoutCache(c), g.engine.removedNodes.push(c), g._triggerRemoveEvent()._triggerChangeEvent(), g.parentGridNode && !g.engine.nodes.length && g.opts.subGridDynamic && g.removeAsSubGrid();
5559
5559
  }
5560
- if (!o || (d && (this.engine.cleanupNode(o), o.grid = this), delete o.grid?._isTemp, Y.off(r, "drag"), a !== r ? (a.remove(), r = a) : r.remove(), this._removeDD(r), !d))
5560
+ if (!o || (d && (this.engine.cleanupNode(o), o.grid = this), delete o.grid?._isTemp, G.off(r, "drag"), a !== r ? (a.remove(), r = a) : r.remove(), this._removeDD(r), !d))
5561
5561
  return !1;
5562
5562
  const f = o.subGrid?.el?.gridstack;
5563
5563
  return h.copyPos(o, this._readAttr(this.placeholder)), h.removePositioningStyles(r), l && (o.content || o.subGridOpts || b.addRemoveCB) ? (delete o.el, r = this.addWidget(o)) : (this._prepareElement(r, !0, o), this.el.appendChild(r), this.resizeToContentCheck(!1, o), f && (f.parentGridNode = o, f.opts.styleInHead || f._updateStyles(!0)), this._updateContainerHeight()), this.engine.addedNodes.push(o), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...s, type: "dropped" }, c && c.grid ? c : void 0, o), u && this.setAnimation(this.opts.animate, !0), !1;
@@ -5575,7 +5575,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5575
5575
  if (typeof this.opts.removable != "string")
5576
5576
  return this;
5577
5577
  const e = document.querySelector(this.opts.removable);
5578
- return e ? (!this.opts.staticGrid && !Y.isDroppable(e) && Y.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => b._itemRemoving(i, !0)).on(e, "dropout", (t, i) => b._itemRemoving(i, !1)), this) : this;
5578
+ return e ? (!this.opts.staticGrid && !G.isDroppable(e) && G.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => b._itemRemoving(i, !0)).on(e, "dropout", (t, i) => b._itemRemoving(i, !1)), this) : this;
5579
5579
  }
5580
5580
  /**
5581
5581
  * prepares the element for drag&drop - this is normally called by makeWidget() unless are are delay loading
@@ -5607,7 +5607,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5607
5607
  this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), f.type === "resizestop" && (Number.isInteger(i.sizeToContent) && (i.sizeToContent = i.h), this.resizeToContentCheck(g, i));
5608
5608
  }
5609
5609
  };
5610
- Y.draggable(e, {
5610
+ G.draggable(e, {
5611
5611
  start: l,
5612
5612
  stop: c,
5613
5613
  drag: u
@@ -5617,7 +5617,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5617
5617
  resize: u
5618
5618
  }), i._initDD = !0;
5619
5619
  }
5620
- return Y.draggable(e, s ? "disable" : "enable").resizable(e, r ? "disable" : "enable"), this;
5620
+ return G.draggable(e, s ? "disable" : "enable").resizable(e, r ? "disable" : "enable"), this;
5621
5621
  }
5622
5622
  /** @internal handles actual drag/resize start */
5623
5623
  _onStartMoving(e, t, i, s, r, a) {
@@ -5635,7 +5635,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5635
5635
  };
5636
5636
  if (s.el = this.placeholder, s._lastUiPosition = i.position, s._prevYPix = i.position.top, s._moving = t.type === "dragstart", delete s._lastTried, t.type === "dropover" && s._temporaryRemoved && (this.engine.addNode(s), s._moving = !0), this.engine.cacheRects(r, a, this.opts.marginTop, this.opts.marginRight, this.opts.marginBottom, this.opts.marginLeft), t.type === "resizestart") {
5637
5637
  const o = this.getColumn() - s.x, d = (this.opts.maxRow || Number.MAX_SAFE_INTEGER) - s.y;
5638
- Y.resizable(e, "option", "minWidth", r * Math.min(s.minW || 1, o)).resizable(e, "option", "minHeight", a * Math.min(s.minH || 1, d)).resizable(e, "option", "maxWidth", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, o)).resizable(e, "option", "maxWidthMoveLeft", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, s.x + s.w)).resizable(e, "option", "maxHeight", a * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, d)).resizable(e, "option", "maxHeightMoveUp", a * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, s.y + s.h));
5638
+ G.resizable(e, "option", "minWidth", r * Math.min(s.minW || 1, o)).resizable(e, "option", "minHeight", a * Math.min(s.minH || 1, d)).resizable(e, "option", "maxWidth", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, o)).resizable(e, "option", "maxWidthMoveLeft", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, s.x + s.w)).resizable(e, "option", "maxHeight", a * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, d)).resizable(e, "option", "maxHeightMoveUp", a * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, s.y + s.h));
5639
5639
  }
5640
5640
  }
5641
5641
  /** @internal handles actual drag/resize */
@@ -5652,9 +5652,9 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5652
5652
  o.x = Math.round(T / r), o.y = Math.round(E / a);
5653
5653
  const y = this._extraDragRow;
5654
5654
  if (this.engine.collide(s, o)) {
5655
- const A = this.getRow();
5656
- let L = Math.max(0, o.y + s.h - A);
5657
- this.opts.maxRow && A + L > this.opts.maxRow && (L = Math.max(0, this.opts.maxRow - A)), this._extraDragRow = L;
5655
+ const P = this.getRow();
5656
+ let D = Math.max(0, o.y + s.h - P);
5657
+ this.opts.maxRow && P + D > this.opts.maxRow && (D = Math.max(0, this.opts.maxRow - P)), this._extraDragRow = D;
5658
5658
  } else
5659
5659
  this._extraDragRow = 0;
5660
5660
  if (this._extraDragRow !== y && this._updateContainerHeight(), s.x === o.x && s.y === o.y)
@@ -5685,7 +5685,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
5685
5685
  _leave(e, t) {
5686
5686
  t = t || e;
5687
5687
  const i = t.gridstackNode;
5688
- if (!i || (t.style.transform = t.style.transformOrigin = null, Y.off(e, "drag"), i._temporaryRemoved))
5688
+ if (!i || (t.style.transform = t.style.transformOrigin = null, G.off(e, "drag"), i._temporaryRemoved))
5689
5689
  return;
5690
5690
  i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e;
5691
5691
  const s = i._sidebarOrig;
@@ -5701,18 +5701,18 @@ b.renderCB = (n, e) => {
5701
5701
  };
5702
5702
  b.resizeToContentParent = ".grid-stack-item-content";
5703
5703
  b.Utils = h;
5704
- b.Engine = oe;
5704
+ b.Engine = ae;
5705
5705
  b.GDRev = "11.5.1";
5706
- const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { class: "grid-stack-item-content" }, An = /* @__PURE__ */ V({
5706
+ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { class: "grid-stack-item-content" }, An = /* @__PURE__ */ K({
5707
5707
  __name: "DraggableGridLayout",
5708
5708
  props: {
5709
5709
  tiles: {},
5710
- tileHeight: { default: Pe },
5711
- columns: { default: lt }
5710
+ tileHeight: { default: qe },
5711
+ columns: { default: ut }
5712
5712
  },
5713
5713
  emits: ["update-tiles"],
5714
5714
  setup(n, { expose: e, emit: t }) {
5715
- const i = n, s = t, r = O(null), a = O(new Map(i.tiles.map((g) => [`${g.id}`, g])));
5715
+ const i = n, s = t, r = z(null), a = z(new Map(i.tiles.map((g) => [`${g.id}`, g])));
5716
5716
  let o = null;
5717
5717
  const d = (g) => `[data-id="${g}"]`, l = (g) => g.map((m) => {
5718
5718
  const v = a.value.get(`${m.el?.getAttribute("data-id")}`);
@@ -5741,7 +5741,7 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
5741
5741
  resizable: { handles: "se, sw" },
5742
5742
  handle: ".tile-header"
5743
5743
  }, r.value), o.on("change", u), o.on("added", u), o.on("removed", c));
5744
- }), Le(() => {
5744
+ }), Ae(() => {
5745
5745
  o && o.destroy(!1);
5746
5746
  });
5747
5747
  const f = (g) => {
@@ -5750,11 +5750,11 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
5750
5750
  m && o.removeWidget(m);
5751
5751
  }
5752
5752
  };
5753
- return Se(() => i.tiles.length, async (g, m) => {
5753
+ return De(() => i.tiles.length, async (g, m) => {
5754
5754
  if (g > m && o) {
5755
5755
  const v = i.tiles.slice(m);
5756
5756
  for (const p of v)
5757
- a.value.set(`${p.id}`, p), await ot(), o.makeWidget(d(p.id), {
5757
+ a.value.set(`${p.id}`, p), await at(), o.makeWidget(d(p.id), {
5758
5758
  autoPosition: !0,
5759
5759
  w: p.layout.size.cols,
5760
5760
  h: p.layout.size.rows
@@ -5769,7 +5769,7 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
5769
5769
  ref: r,
5770
5770
  class: "grid-stack"
5771
5771
  }, [
5772
- (_(!0), F(rt, null, Zt(i.tiles, (v) => (_(), F("div", {
5772
+ (_(!0), F(nt, null, Zt(i.tiles, (v) => (_(), F("div", {
5773
5773
  key: v.id,
5774
5774
  class: "grid-stack-item",
5775
5775
  "data-id": `${v.id}`,
@@ -5780,13 +5780,13 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
5780
5780
  "gs-x": v.layout.position.col,
5781
5781
  "gs-y": v.layout.position.row
5782
5782
  }, [
5783
- j("div", Ln, [
5784
- De(g.$slots, "tile", { tile: v }, void 0, !0)
5783
+ V("div", Ln, [
5784
+ Oe(g.$slots, "tile", { tile: v }, void 0, !0)
5785
5785
  ])
5786
5786
  ], 8, Mn))), 128))
5787
5787
  ], 512));
5788
5788
  }
5789
- }), Pn = /* @__PURE__ */ pe(An, [["__scopeId", "data-v-1fdec94c"]]), qn = (n) => {
5789
+ }), Pn = /* @__PURE__ */ ye(An, [["__scopeId", "data-v-1fdec94c"]]), qn = (n) => {
5790
5790
  const e = {
5791
5791
  ...n.meta,
5792
5792
  chart: { ...n.meta.chart }
@@ -5809,7 +5809,7 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
5809
5809
  }, In = {
5810
5810
  key: 0,
5811
5811
  class: "tile-container slottable-tile"
5812
- }, Fn = /* @__PURE__ */ V({
5812
+ }, Fn = /* @__PURE__ */ K({
5813
5813
  __name: "DashboardRenderer",
5814
5814
  props: /* @__PURE__ */ Fe({
5815
5815
  context: {},
@@ -5820,145 +5820,145 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
5820
5820
  }),
5821
5821
  emits: /* @__PURE__ */ Fe(["edit-tile", "tile-time-range-zoom", "tiles-loaded"], ["update:modelValue"]),
5822
5822
  setup(n, { expose: e, emit: t }) {
5823
- nt((S) => ({
5823
+ ot((S) => ({
5824
5824
  v021bbed1: u.value
5825
5825
  }));
5826
- const i = t, s = jt(n, "modelValue"), { i18n: r } = Z.useI18n(), a = O(0), o = O(null), d = O(), l = O(), u = O("scale(1)"), c = /* @__PURE__ */ new Set(), f = ue(fe);
5827
- f || (console.warn("Analytics dashboards require a query bridge supplied via provide / inject."), console.warn("Please ensure your application has a query bridge provided under the key 'analytics-query-provider', as described in"), console.warn("https://github.com/Kong/public-ui-components/blob/main/packages/analytics/dashboard-renderer/README.md#requirements")), Z.useRequestQueue();
5828
- const { exportPdf: g, exportState: m } = Z.useExportPdf(l), v = (S) => {
5826
+ const i = t, s = jt(n, "modelValue"), { i18n: r } = X.useI18n(), a = z(0), o = z(null), d = z(), l = z(), u = z("scale(1)"), c = /* @__PURE__ */ new Set(), f = de(ge);
5827
+ f || (console.warn("Analytics dashboards require a query bridge supplied via provide / inject."), console.warn("Please ensure your application has a query bridge provided under the key 'analytics-query-provider', as described in"), console.warn("https://github.com/Kong/public-ui-components/blob/main/packages/analytics/dashboard-renderer/README.md#requirements")), X.useRequestQueue();
5828
+ const { exportPdf: g, exportState: m } = X.useExportPdf(l), v = (S) => {
5829
5829
  c.add(S.id);
5830
- const D = T.value.filter((B) => !y(B)).length;
5831
- c.size >= D && i("tiles-loaded", !0);
5832
- }, p = (S, D) => {
5833
- const B = S.layout.position.row - D.layout.position.row;
5834
- return B !== 0 ? B : S.layout.position.col - D.layout.position.col;
5830
+ const O = T.value.filter((B) => !y(B)).length;
5831
+ c.size >= O && i("tiles-loaded", !0);
5832
+ }, p = (S, O) => {
5833
+ const B = S.layout.position.row - O.layout.position.row;
5834
+ return B !== 0 ? B : S.layout.position.col - O.layout.position.col;
5835
5835
  }, T = w(() => s.value.tiles.map((S) => {
5836
- let D = S.definition;
5837
- const B = S.type ?? "chart", q = D.chart;
5838
- if (B === "chart" && "description" in q) {
5839
- const W = D, ye = q.description?.replace(ys, () => {
5840
- const { timeSpec: qe } = ie.value, He = `renderer.trendRange.${qe.type === "absolute" ? "custom" : qe.time_range}`;
5836
+ let O = S.definition;
5837
+ const B = S.type ?? "chart", A = O.chart;
5838
+ if (B === "chart" && "description" in A) {
5839
+ const W = O, ie = A.description?.replace(ys, () => {
5840
+ const { timeSpec: fe } = te.value, He = `renderer.trendRange.${fe.type === "absolute" ? "custom" : fe.time_range}`;
5841
5841
  return r.te(He) ? r.t(He) : "";
5842
5842
  });
5843
- D = {
5843
+ O = {
5844
5844
  ...W,
5845
5845
  chart: {
5846
- ...q,
5847
- description: ye
5846
+ ...A,
5847
+ description: ie
5848
5848
  }
5849
5849
  };
5850
5850
  }
5851
- return ie.value.editable && !S.id && console.warn(
5851
+ return te.value.editable && !S.id && console.warn(
5852
5852
  "No id provided for tile. One will be generated automatically,",
5853
5853
  "however tracking changes to this tile may not work as expected.",
5854
5854
  S
5855
5855
  ), {
5856
5856
  layout: S.layout,
5857
- meta: D,
5857
+ meta: O,
5858
5858
  type: B,
5859
5859
  // Add a unique key to each tile internally.
5860
5860
  id: S.id ?? crypto.randomUUID()
5861
5861
  };
5862
5862
  })), E = (S) => {
5863
5863
  i("edit-tile", S);
5864
- }, y = (S) => S.type === "chart" && S.meta.chart.type === "slottable", A = (S) => S.type === "slottable", L = (S) => {
5865
- const D = S.meta.chart;
5866
- return A(D) ? D.id : void 0;
5867
- }, $ = (S) => {
5864
+ }, y = (S) => S.type === "chart" && S.meta.chart.type === "slottable", P = (S) => S.type === "slottable", D = (S) => {
5865
+ const O = S.meta.chart;
5866
+ return P(O) ? O.id : void 0;
5867
+ }, J = (S) => {
5868
5868
  try {
5869
- const D = qn(S);
5870
- s.value.tiles.push(JSON.parse(JSON.stringify(D)));
5871
- } catch (D) {
5872
- console.warn(D);
5869
+ const O = qn(S);
5870
+ s.value.tiles.push(JSON.parse(JSON.stringify(O)));
5871
+ } catch (O) {
5872
+ console.warn(O);
5873
5873
  }
5874
- }, de = (S) => {
5874
+ }, ce = (S) => {
5875
5875
  o.value && o.value.removeWidget(S.id), c.delete(S.id);
5876
- }, G = () => {
5876
+ }, oe = () => {
5877
5877
  c.clear(), a.value++;
5878
- }, te = (S) => {
5879
- const D = S.map((B) => ({
5878
+ }, ee = (S) => {
5879
+ const O = S.map((B) => ({
5880
5880
  id: B.id,
5881
5881
  type: B.type,
5882
5882
  layout: B.layout,
5883
5883
  definition: B.meta
5884
5884
  }));
5885
- s.value.tiles = D.sort(p);
5886
- }, R = async () => {
5887
- if (u.value = "scale(1)", await ot(), l.value) {
5888
- const { availWidth: S, availHeight: D } = window.screen, { width: B, height: q } = l.value.getBoundingClientRect(), W = Math.min(D / q, S / B);
5885
+ s.value.tiles = O.sort(p);
5886
+ }, k = async () => {
5887
+ if (u.value = "scale(1)", await at(), l.value) {
5888
+ const { availWidth: S, availHeight: O } = window.screen, { width: B, height: A } = l.value.getBoundingClientRect(), W = Math.min(O / A, S / B);
5889
5889
  u.value = `scale(${W})`;
5890
5890
  }
5891
5891
  }, H = () => {
5892
5892
  d.value && (document.fullscreenElement ? document.exitFullscreen() : d.value.requestFullscreen());
5893
- }, P = O(!1), J = () => {
5894
- P.value = document.fullscreenElement !== null, P.value && R();
5895
- }, ce = w(() => s.value.preset_filters ?? []), { internalContext: ie, queryReady: he } = Z.useDashboardInternalContext({
5896
- globalFilters: ce,
5893
+ }, q = z(!1), Q = () => {
5894
+ q.value = document.fullscreenElement !== null, q.value && k();
5895
+ }, he = w(() => s.value.preset_filters ?? []), { internalContext: te, queryReady: xe } = X.useDashboardInternalContext({
5896
+ globalFilters: he,
5897
5897
  context: w(() => n.context),
5898
- isFullscreen: P,
5898
+ isFullscreen: q,
5899
5899
  preview: w(() => n.preview)
5900
5900
  });
5901
5901
  return e({
5902
- refresh: G,
5902
+ refresh: oe,
5903
5903
  toggleFullscreen: H,
5904
5904
  exportPdf: g,
5905
5905
  pdfExportState: m
5906
- }), (S, D) => {
5906
+ }), (S, O) => {
5907
5907
  const B = se("KAlert");
5908
5908
  return _(), F("div", {
5909
5909
  ref_key: "dashboardContainer",
5910
5910
  ref: d,
5911
- class: Ce(["kong-ui-public-dashboard-renderer", { "is-fullscreen": P.value }]),
5912
- onFullscreenchange: J
5911
+ class: ke(["kong-ui-public-dashboard-renderer", { "is-fullscreen": q.value }]),
5912
+ onFullscreenchange: Q
5913
5913
  }, [
5914
- j("div", {
5914
+ V("div", {
5915
5915
  ref_key: "layoutContainer",
5916
5916
  ref: l,
5917
5917
  class: "layout"
5918
5918
  }, [
5919
- x(f) && P.value ? (_(), F("div", Hn, [
5920
- De(S.$slots, "fullscreenHeader", {}, void 0, !0)
5921
- ])) : K("", !0),
5922
- x(f) ? (_(), z(Xt(x(ie).editable && !P.value ? Pn : Sn), {
5919
+ x(f) && q.value ? (_(), F("div", Hn, [
5920
+ Oe(S.$slots, "fullscreenHeader", {}, void 0, !0)
5921
+ ])) : U("", !0),
5922
+ x(f) ? (_(), N(Xt(x(te).editable && !q.value ? Pn : Sn), {
5923
5923
  key: 2,
5924
5924
  ref_key: "gridLayoutRef",
5925
5925
  ref: o,
5926
5926
  columns: s.value.columns,
5927
5927
  "tile-height": s.value.tile_height,
5928
5928
  tiles: T.value,
5929
- onUpdateTiles: te
5929
+ onUpdateTiles: ee
5930
5930
  }, {
5931
- tile: I(({ tile: q }) => [
5932
- y(q) ? (_(), F("div", In, [
5933
- De(S.$slots, L(q), {}, void 0, !0)
5934
- ])) : (_(), z(di, {
5935
- key: P.value ? `${q.id}-tile` : `${q.id}-tile-fullscreen`,
5931
+ tile: I(({ tile: A }) => [
5932
+ y(A) ? (_(), F("div", In, [
5933
+ Oe(S.$slots, D(A), {}, void 0, !0)
5934
+ ])) : (_(), N(di, {
5935
+ key: q.value ? `${A.id}-tile` : `${A.id}-tile-fullscreen`,
5936
5936
  "refresh-counter": a.value,
5937
- "onUpdate:refreshCounter": D[0] || (D[0] = (W) => a.value = W),
5937
+ "onUpdate:refreshCounter": O[0] || (O[0] = (W) => a.value = W),
5938
5938
  class: "tile-container",
5939
- context: x(ie),
5940
- definition: q.meta,
5941
- height: q.layout.size.rows * (s.value.tile_height || x(Pe)) + parseInt(x(ui), 10),
5942
- "hide-actions": !x(ie).showTileActions,
5943
- "hide-zoom-actions": !x(ie).showTileZoomActions,
5944
- "is-fullscreen": P.value,
5945
- "query-ready": x(he),
5946
- "tile-id": q.id,
5947
- "tile-type": q.type,
5948
- onDuplicateTile: (W) => $(q),
5949
- onEditTile: (W) => E(q),
5950
- onRemoveTile: (W) => de(q),
5951
- onTileLoaded: (W) => v(q),
5952
- onTileTimeRangeZoom: D[1] || (D[1] = (W) => i("tile-time-range-zoom", W))
5939
+ context: x(te),
5940
+ definition: A.meta,
5941
+ height: A.layout.size.rows * (s.value.tile_height || x(qe)) + parseInt(x(ui), 10),
5942
+ "hide-actions": !x(te).showTileActions,
5943
+ "hide-zoom-actions": !x(te).showTileZoomActions,
5944
+ "is-fullscreen": q.value,
5945
+ "query-ready": x(xe),
5946
+ "tile-id": A.id,
5947
+ "tile-type": A.type,
5948
+ onDuplicateTile: (W) => J(A),
5949
+ onEditTile: (W) => E(A),
5950
+ onRemoveTile: (W) => ce(A),
5951
+ onTileLoaded: (W) => v(A),
5952
+ onTileTimeRangeZoom: O[1] || (O[1] = (W) => i("tile-time-range-zoom", W))
5953
5953
  }, null, 8, ["refresh-counter", "context", "definition", "height", "hide-actions", "hide-zoom-actions", "is-fullscreen", "query-ready", "tile-id", "tile-type", "onDuplicateTile", "onEditTile", "onRemoveTile", "onTileLoaded"]))
5954
5954
  ]),
5955
5955
  _: 3
5956
- }, 40, ["columns", "tile-height", "tiles"])) : (_(), z(B, {
5956
+ }, 40, ["columns", "tile-height", "tiles"])) : (_(), N(B, {
5957
5957
  key: 1,
5958
5958
  appearance: "danger"
5959
5959
  }, {
5960
5960
  default: I(() => [
5961
- st(Q(x(r).t("renderer.noQueryBridge")), 1)
5961
+ rt(Y(x(r).t("renderer.noQueryBridge")), 1)
5962
5962
  ]),
5963
5963
  _: 1
5964
5964
  }))
@@ -5966,7 +5966,7 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
5966
5966
  ], 34);
5967
5967
  };
5968
5968
  }
5969
- }), eo = /* @__PURE__ */ pe(Fn, [["__scopeId", "data-v-f028130a"]]), to = /* @__PURE__ */ V({
5969
+ }), eo = /* @__PURE__ */ ye(Fn, [["__scopeId", "data-v-f028130a"]]), to = /* @__PURE__ */ K({
5970
5970
  __name: "DashboardTilePreview",
5971
5971
  props: {
5972
5972
  context: {},
@@ -5982,49 +5982,49 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
5982
5982
  a("chart-data", y);
5983
5983
  }, l = (y) => {
5984
5984
  a("tile-bounds-change", y);
5985
- }, { i18n: u } = Z.useI18n(), { internalContext: c, queryReady: f } = Z.useDashboardInternalContext({
5986
- globalFilters: Te(() => n.globalFilters),
5987
- context: Te(() => n.context),
5985
+ }, { i18n: u } = X.useI18n(), { internalContext: c, queryReady: f } = X.useDashboardInternalContext({
5986
+ globalFilters: Se(() => n.globalFilters),
5987
+ context: Se(() => n.context),
5988
5988
  preview: w(() => n.preview)
5989
- }), g = w(() => ee(n.definition)), m = w(() => g.value ? "columns" in n.definition.query && !n.definition.query.columns?.length : !("metrics" in n.definition.query) || !n.definition.query.metrics || n.definition.query.metrics.length === 0), v = O(Pe);
5989
+ }), g = w(() => Z(n.definition)), m = w(() => g.value ? "columns" in n.definition.query && !n.definition.query.columns?.length : !("metrics" in n.definition.query) || !n.definition.query.metrics || n.definition.query.metrics.length === 0), v = z(qe);
5990
5990
  let p;
5991
5991
  Ke(() => {
5992
5992
  const y = i.value?.parentElement;
5993
- y && (v.value = y.getBoundingClientRect().height, p = new ResizeObserver(([A]) => {
5994
- const { height: L } = A.contentRect;
5995
- v.value = L;
5993
+ y && (v.value = y.getBoundingClientRect().height, p = new ResizeObserver(([P]) => {
5994
+ const { height: D } = P.contentRect;
5995
+ v.value = D;
5996
5996
  }), p.observe(y));
5997
- }), Le(() => p?.disconnect());
5998
- const T = O(0);
5997
+ }), Ae(() => p?.disconnect());
5998
+ const T = z(0);
5999
5999
  return e({
6000
6000
  refresh: () => {
6001
6001
  T.value++;
6002
6002
  },
6003
6003
  getExportData: () => s.value?.getExportData()
6004
- }), (y, A) => {
6005
- const L = se("KEmptyState");
6004
+ }), (y, P) => {
6005
+ const D = se("KEmptyState");
6006
6006
  return _(), F("div", {
6007
6007
  ref_key: "root",
6008
6008
  ref: i,
6009
6009
  "data-testid": "dashboard-tile-preview-root"
6010
6010
  }, [
6011
- m.value ? (_(), z(L, {
6011
+ m.value ? (_(), N(D, {
6012
6012
  key: 0,
6013
6013
  "action-button-visible": !1,
6014
6014
  "data-testid": "chart-not-configured-empty-state"
6015
6015
  }, {
6016
6016
  title: I(() => [
6017
- j("p", null, Q(x(u).t("renderer.not_configured.title")), 1)
6017
+ V("p", null, Y(x(u).t("renderer.not_configured.title")), 1)
6018
6018
  ]),
6019
6019
  default: I(() => [
6020
- j("p", null, Q(x(u).t("renderer.not_configured.description")), 1)
6020
+ V("p", null, Y(x(u).t("renderer.not_configured.description")), 1)
6021
6021
  ]),
6022
6022
  _: 1
6023
- })) : (_(), z(di, {
6023
+ })) : (_(), N(di, {
6024
6024
  key: 1,
6025
6025
  ref: "dashboard-tile",
6026
6026
  "refresh-counter": T.value,
6027
- "onUpdate:refreshCounter": A[0] || (A[0] = ($) => T.value = $),
6027
+ "onUpdate:refreshCounter": P[0] || (P[0] = (J) => T.value = J),
6028
6028
  context: {
6029
6029
  ...x(c),
6030
6030
  editable: !1
@@ -6052,7 +6052,7 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
6052
6052
  }
6053
6053
  return n;
6054
6054
  }, Wn = (n) => {
6055
- if (ee(n.definition))
6055
+ if (Z(n.definition))
6056
6056
  return n;
6057
6057
  const e = n.definition?.query;
6058
6058
  if (!e)
@@ -6068,7 +6068,7 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
6068
6068
  query: t
6069
6069
  }
6070
6070
  };
6071
- }, $n = (n, e = lt) => {
6071
+ }, $n = (n, e = ut) => {
6072
6072
  if (!n.length)
6073
6073
  return [];
6074
6074
  let t = 0, i = 0, s = 0;
@@ -6106,14 +6106,14 @@ const Mn = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Ln = { cl
6106
6106
  };
6107
6107
  export {
6108
6108
  ps as C,
6109
- lt as D,
6109
+ ut as D,
6110
6110
  xt as E,
6111
6111
  ws as F,
6112
6112
  Sn as G,
6113
- fe as I,
6113
+ ge as I,
6114
6114
  ys as T,
6115
- ut as _,
6116
- Pe as a,
6115
+ dt as _,
6116
+ qe as a,
6117
6117
  vs as b,
6118
6118
  eo as c,
6119
6119
  to as d,