@kong-ui-public/dashboard-renderer 4.1.7 → 4.1.8

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.
@@ -4,7 +4,7 @@ var Je = (u) => {
4
4
  };
5
5
  var Mt = (u, e, t) => e in u ? Lt(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
6
6
  var Ze = (u, e, t) => Mt(u, typeof e != "symbol" ? e + "" : e, t), Be = (u, e, t) => e.has(u) || Je("Cannot " + t);
7
- var v = (u, e, t) => (Be(u, e, "read from private field"), t ? t.call(u) : e.get(u)), L = (u, e, t) => e.has(u) ? Je("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(u) : e.set(u, t), N = (u, e, t, i) => (Be(u, e, "write to private field"), i ? i.call(u, t) : e.set(u, t), t), M = (u, e, t) => (Be(u, e, "access private method"), t);
7
+ var v = (u, e, t) => (Be(u, e, "read from private field"), t ? t.call(u) : e.get(u)), O = (u, e, t) => e.has(u) ? Je("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(u) : e.set(u, t), N = (u, e, t, i) => (Be(u, e, "write to private field"), i ? i.call(u, t) : e.set(u, t), t), L = (u, e, t) => (Be(u, e, "access private method"), t);
8
8
  var ve = (u, e, t, i) => ({
9
9
  set _(s) {
10
10
  N(u, e, s, t);
@@ -13,8 +13,8 @@ var ve = (u, e, t, i) => ({
13
13
  return v(u, e, i);
14
14
  }
15
15
  });
16
- import { ref as B, watchEffect as gt, inject as pe, provide as It, defineComponent as G, onUnmounted as Ge, computed as H, watch as Ue, resolveComponent as oe, unref as D, openBlock as T, createBlock as O, withCtx as I, createTextVNode as _e, toDisplayString as ee, renderSlot as Me, createCommentVNode as X, useCssVars as Ie, createElementVNode as he, normalizeClass as We, createVNode as te, mergeProps as pt, createSlots as mt, createElementBlock as $, normalizeProps as Pt, guardReactiveProps as qt, defineAsyncComponent as Bt, onMounted as Ke, nextTick as yt, resolveDynamicComponent as vt, Fragment as _t, renderList as bt, normalizeStyle as et, mergeModels as tt, useModel as $t } from "vue";
17
- import { stripUnknownFilters as Ft, Timeframe as Gt, TimePeriods as wt, TIMEFRAME_LOOKUP as Ut, formatTime as it, msToGranularity as Wt } from "@kong-ui-public/analytics-utilities";
16
+ import { ref as B, watchEffect as gt, inject as pe, provide as It, defineComponent as U, onUnmounted as Ue, computed as A, watch as Ge, resolveComponent as oe, unref as z, openBlock as T, createBlock as H, withCtx as M, createTextVNode as _e, toDisplayString as ee, renderSlot as Me, createCommentVNode as X, useCssVars as Ie, createElementVNode as he, normalizeClass as We, createVNode as te, mergeProps as pt, createSlots as mt, createElementBlock as $, normalizeProps as Pt, guardReactiveProps as qt, defineAsyncComponent as Bt, onMounted as Ke, nextTick as yt, resolveDynamicComponent as vt, Fragment as _t, renderList as bt, normalizeStyle as et, mergeModels as tt, useModel as $t } from "vue";
17
+ import { stripUnknownFilters as Ft, Timeframe as Ut, TimePeriods as wt, TIMEFRAME_LOOKUP as Gt, formatTime as it, msToGranularity as Wt } from "@kong-ui-public/analytics-utilities";
18
18
  import { SimpleChart as Kt, AnalyticsChart as Vt, TopNTable as Yt, CsvExportModal as Xt } from "@kong-ui-public/analytics-chart";
19
19
  import jt from "swrv";
20
20
  import "axios";
@@ -143,7 +143,7 @@ var Ct = { exports: {} };
143
143
  }, n.prototype.emit = function(l, a, h, f, g, m) {
144
144
  var y = t ? t + l : l;
145
145
  if (!this._events[y]) return !1;
146
- var p = this._events[y], C = arguments.length, S, R;
146
+ var p = this._events[y], C = arguments.length, k, R;
147
147
  if (p.fn) {
148
148
  switch (p.once && this.removeListener(l, p.fn, void 0, !0), C) {
149
149
  case 1:
@@ -159,12 +159,12 @@ var Ct = { exports: {} };
159
159
  case 6:
160
160
  return p.fn.call(p.context, a, h, f, g, m), !0;
161
161
  }
162
- for (R = 1, S = new Array(C - 1); R < C; R++)
163
- S[R - 1] = arguments[R];
164
- p.fn.apply(p.context, S);
162
+ for (R = 1, k = new Array(C - 1); R < C; R++)
163
+ k[R - 1] = arguments[R];
164
+ p.fn.apply(p.context, k);
165
165
  } else {
166
- var x = p.length, E;
167
- for (R = 0; R < x; R++)
166
+ var E = p.length, x;
167
+ for (R = 0; R < E; R++)
168
168
  switch (p[R].once && this.removeListener(l, p[R].fn, void 0, !0), C) {
169
169
  case 1:
170
170
  p[R].fn.call(p[R].context);
@@ -179,9 +179,9 @@ var Ct = { exports: {} };
179
179
  p[R].fn.call(p[R].context, a, h, f);
180
180
  break;
181
181
  default:
182
- if (!S) for (E = 1, S = new Array(C - 1); E < C; E++)
183
- S[E - 1] = arguments[E];
184
- p[R].fn.apply(p[R].context, S);
182
+ if (!k) for (x = 1, k = new Array(C - 1); x < C; x++)
183
+ k[x - 1] = arguments[x];
184
+ p[R].fn.apply(p[R].context, k);
185
185
  }
186
186
  }
187
187
  return !0;
@@ -282,7 +282,7 @@ function bi(u, e, t) {
282
282
  var W;
283
283
  class wi {
284
284
  constructor() {
285
- L(this, W, []);
285
+ O(this, W, []);
286
286
  }
287
287
  enqueue(e, t) {
288
288
  t = {
@@ -320,30 +320,30 @@ class wi {
320
320
  }
321
321
  }
322
322
  W = new WeakMap();
323
- var de, ue, ne, Ee, ce, xe, K, fe, q, Ce, V, ge, Z, Re, Le, z, Tt, zt, Dt, St, kt, ze, $e, Fe, De, Nt, Se;
323
+ var de, ue, ne, Ee, ce, xe, K, fe, P, Ce, V, ge, Z, Re, Le, D, Tt, Dt, zt, St, kt, De, $e, Fe, ze, Nt, Se;
324
324
  class Ei extends yi {
325
325
  // TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
326
326
  constructor(t) {
327
327
  var i, s;
328
328
  super();
329
- L(this, z);
330
- L(this, de);
331
- L(this, ue);
332
- L(this, ne, 0);
333
- L(this, Ee);
334
- L(this, ce);
335
- L(this, xe, 0);
336
- L(this, K);
337
- L(this, fe);
338
- L(this, q);
339
- L(this, Ce);
340
- L(this, V, 0);
329
+ O(this, D);
330
+ O(this, de);
331
+ O(this, ue);
332
+ O(this, ne, 0);
333
+ O(this, Ee);
334
+ O(this, ce);
335
+ O(this, xe, 0);
336
+ O(this, K);
337
+ O(this, fe);
338
+ O(this, P);
339
+ O(this, Ce);
340
+ O(this, V, 0);
341
341
  // The `!` is needed because of https://github.com/microsoft/TypeScript/issues/32194
342
- L(this, ge);
343
- L(this, Z);
344
- L(this, Re);
342
+ O(this, ge);
343
+ O(this, Z);
344
+ O(this, Re);
345
345
  // Use to assign a unique identifier to a promise function, if not explicitly specified
346
- L(this, Le, 1n);
346
+ O(this, Le, 1n);
347
347
  /**
348
348
  Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses if they haven't already.
349
349
 
@@ -362,7 +362,7 @@ class Ei extends yi {
362
362
  throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${((i = t.intervalCap) == null ? void 0 : i.toString()) ?? ""}\` (${typeof t.intervalCap})`);
363
363
  if (t.interval === void 0 || !(Number.isFinite(t.interval) && t.interval >= 0))
364
364
  throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((s = t.interval) == null ? void 0 : s.toString()) ?? ""}\` (${typeof t.interval})`);
365
- N(this, de, t.carryoverConcurrencyCount), N(this, ue, t.intervalCap === Number.POSITIVE_INFINITY || t.interval === 0), N(this, Ee, t.intervalCap), N(this, ce, t.interval), N(this, q, new t.queueClass()), N(this, Ce, t.queueClass), this.concurrency = t.concurrency, this.timeout = t.timeout, N(this, Re, t.throwOnTimeout === !0), N(this, Z, t.autoStart === !1);
365
+ N(this, de, t.carryoverConcurrencyCount), N(this, ue, t.intervalCap === Number.POSITIVE_INFINITY || t.interval === 0), N(this, Ee, t.intervalCap), N(this, ce, t.interval), N(this, P, new t.queueClass()), N(this, Ce, t.queueClass), this.concurrency = t.concurrency, this.timeout = t.timeout, N(this, Re, t.throwOnTimeout === !0), N(this, Z, t.autoStart === !1);
366
366
  }
367
367
  get concurrency() {
368
368
  return v(this, ge);
@@ -370,7 +370,7 @@ class Ei extends yi {
370
370
  set concurrency(t) {
371
371
  if (!(typeof t == "number" && t >= 1))
372
372
  throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);
373
- N(this, ge, t), M(this, z, De).call(this);
373
+ N(this, ge, t), L(this, D, ze).call(this);
374
374
  }
375
375
  /**
376
376
  Updates the priority of a promise function by its id, affecting its execution order. Requires a defined concurrency limit to take effect.
@@ -409,7 +409,7 @@ class Ei extends yi {
409
409
  Here, the promise function with `id: '🦀'` executes last.
410
410
  */
411
411
  setPriority(t, i) {
412
- v(this, q).setPriority(t, i);
412
+ v(this, P).setPriority(t, i);
413
413
  }
414
414
  async add(t, i = {}) {
415
415
  return i.id ?? (i.id = (ve(this, Le)._++).toString()), i = {
@@ -417,13 +417,13 @@ class Ei extends yi {
417
417
  throwOnTimeout: v(this, Re),
418
418
  ...i
419
419
  }, new Promise((s, r) => {
420
- v(this, q).enqueue(async () => {
420
+ v(this, P).enqueue(async () => {
421
421
  var o;
422
422
  ve(this, V)._++, ve(this, ne)._++;
423
423
  try {
424
424
  (o = i.signal) == null || o.throwIfAborted();
425
425
  let n = t({ signal: i.signal });
426
- i.timeout && (n = _i(Promise.resolve(n), { milliseconds: i.timeout })), i.signal && (n = Promise.race([n, M(this, z, Nt).call(this, i.signal)]));
426
+ i.timeout && (n = _i(Promise.resolve(n), { milliseconds: i.timeout })), i.signal && (n = Promise.race([n, L(this, D, Nt).call(this, i.signal)]));
427
427
  const d = await n;
428
428
  s(d), this.emit("completed", d);
429
429
  } catch (n) {
@@ -433,9 +433,9 @@ class Ei extends yi {
433
433
  }
434
434
  r(n), this.emit("error", n);
435
435
  } finally {
436
- M(this, z, Dt).call(this);
436
+ L(this, D, zt).call(this);
437
437
  }
438
- }, i), this.emit("add"), M(this, z, ze).call(this);
438
+ }, i), this.emit("add"), L(this, D, De).call(this);
439
439
  });
440
440
  }
441
441
  async addAll(t, i) {
@@ -445,7 +445,7 @@ class Ei extends yi {
445
445
  Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
446
446
  */
447
447
  start() {
448
- return v(this, Z) ? (N(this, Z, !1), M(this, z, De).call(this), this) : this;
448
+ return v(this, Z) ? (N(this, Z, !1), L(this, D, ze).call(this), this) : this;
449
449
  }
450
450
  /**
451
451
  Put queue execution on hold.
@@ -457,7 +457,7 @@ class Ei extends yi {
457
457
  Clear the queue.
458
458
  */
459
459
  clear() {
460
- N(this, q, new (v(this, Ce))());
460
+ N(this, P, new (v(this, Ce))());
461
461
  }
462
462
  /**
463
463
  Can be called multiple times. Useful if you for example add additional items at a later time.
@@ -465,7 +465,7 @@ class Ei extends yi {
465
465
  @returns A promise that settles when the queue becomes empty.
466
466
  */
467
467
  async onEmpty() {
468
- v(this, q).size !== 0 && await M(this, z, Se).call(this, "empty");
468
+ v(this, P).size !== 0 && await L(this, D, Se).call(this, "empty");
469
469
  }
470
470
  /**
471
471
  @returns A promise that settles when the queue size is less than the given limit: `queue.size < limit`.
@@ -475,7 +475,7 @@ class Ei extends yi {
475
475
  Note that this only limits the number of items waiting to start. There could still be up to `concurrency` jobs already running that this call does not include in its calculation.
476
476
  */
477
477
  async onSizeLessThan(t) {
478
- v(this, q).size < t || await M(this, z, Se).call(this, "next", () => v(this, q).size < t);
478
+ v(this, P).size < t || await L(this, D, Se).call(this, "next", () => v(this, P).size < t);
479
479
  }
480
480
  /**
481
481
  The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
@@ -483,13 +483,13 @@ class Ei extends yi {
483
483
  @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
484
484
  */
485
485
  async onIdle() {
486
- v(this, V) === 0 && v(this, q).size === 0 || await M(this, z, Se).call(this, "idle");
486
+ v(this, V) === 0 && v(this, P).size === 0 || await L(this, D, Se).call(this, "idle");
487
487
  }
488
488
  /**
489
489
  Size of the queue, the number of queued items waiting to run.
490
490
  */
491
491
  get size() {
492
- return v(this, q).size;
492
+ return v(this, P).size;
493
493
  }
494
494
  /**
495
495
  Size of the queue, filtered by the given options.
@@ -497,7 +497,7 @@ class Ei extends yi {
497
497
  For example, this can be used to find the number of items remaining in the queue with a specific priority level.
498
498
  */
499
499
  sizeBy(t) {
500
- return v(this, q).filter(t).length;
500
+ return v(this, P).filter(t).length;
501
501
  }
502
502
  /**
503
503
  Number of running items (no longer in the queue).
@@ -512,14 +512,14 @@ class Ei extends yi {
512
512
  return v(this, Z);
513
513
  }
514
514
  }
515
- de = new WeakMap(), ue = new WeakMap(), ne = new WeakMap(), Ee = new WeakMap(), ce = new WeakMap(), xe = new WeakMap(), K = new WeakMap(), fe = new WeakMap(), q = new WeakMap(), Ce = new WeakMap(), V = new WeakMap(), ge = new WeakMap(), Z = new WeakMap(), Re = new WeakMap(), Le = new WeakMap(), z = new WeakSet(), Tt = function() {
515
+ de = new WeakMap(), ue = new WeakMap(), ne = new WeakMap(), Ee = new WeakMap(), ce = new WeakMap(), xe = new WeakMap(), K = new WeakMap(), fe = new WeakMap(), P = new WeakMap(), Ce = new WeakMap(), V = new WeakMap(), ge = new WeakMap(), Z = new WeakMap(), Re = new WeakMap(), Le = new WeakMap(), D = new WeakSet(), Tt = function() {
516
516
  return v(this, ue) || v(this, ne) < v(this, Ee);
517
- }, zt = function() {
518
- return v(this, V) < v(this, ge);
519
517
  }, Dt = function() {
520
- ve(this, V)._--, M(this, z, ze).call(this), this.emit("next");
518
+ return v(this, V) < v(this, ge);
519
+ }, zt = function() {
520
+ ve(this, V)._--, L(this, D, De).call(this), this.emit("next");
521
521
  }, St = function() {
522
- M(this, z, Fe).call(this), M(this, z, $e).call(this), N(this, fe, void 0);
522
+ L(this, D, Fe).call(this), L(this, D, $e).call(this), N(this, fe, void 0);
523
523
  }, kt = function() {
524
524
  const t = Date.now();
525
525
  if (v(this, K) === void 0) {
@@ -528,32 +528,32 @@ de = new WeakMap(), ue = new WeakMap(), ne = new WeakMap(), Ee = new WeakMap(),
528
528
  N(this, ne, v(this, de) ? v(this, V) : 0);
529
529
  else
530
530
  return v(this, fe) === void 0 && N(this, fe, setTimeout(() => {
531
- M(this, z, St).call(this);
531
+ L(this, D, St).call(this);
532
532
  }, i)), !0;
533
533
  }
534
534
  return !1;
535
- }, ze = function() {
536
- if (v(this, q).size === 0)
535
+ }, De = function() {
536
+ if (v(this, P).size === 0)
537
537
  return v(this, K) && clearInterval(v(this, K)), N(this, K, void 0), this.emit("empty"), v(this, V) === 0 && this.emit("idle"), !1;
538
538
  if (!v(this, Z)) {
539
- const t = !v(this, z, kt);
540
- if (v(this, z, Tt) && v(this, z, zt)) {
541
- const i = v(this, q).dequeue();
542
- return i ? (this.emit("active"), i(), t && M(this, z, $e).call(this), !0) : !1;
539
+ const t = !v(this, D, kt);
540
+ if (v(this, D, Tt) && v(this, D, Dt)) {
541
+ const i = v(this, P).dequeue();
542
+ return i ? (this.emit("active"), i(), t && L(this, D, $e).call(this), !0) : !1;
543
543
  }
544
544
  }
545
545
  return !1;
546
546
  }, $e = function() {
547
547
  v(this, ue) || v(this, K) !== void 0 || (N(this, K, setInterval(() => {
548
- M(this, z, Fe).call(this);
548
+ L(this, D, Fe).call(this);
549
549
  }, v(this, ce))), N(this, xe, Date.now() + v(this, ce)));
550
550
  }, Fe = function() {
551
- v(this, ne) === 0 && v(this, V) === 0 && v(this, K) && (clearInterval(v(this, K)), N(this, K, void 0)), N(this, ne, v(this, de) ? v(this, V) : 0), M(this, z, De).call(this);
551
+ v(this, ne) === 0 && v(this, V) === 0 && v(this, K) && (clearInterval(v(this, K)), N(this, K, void 0)), N(this, ne, v(this, de) ? v(this, V) : 0), L(this, D, ze).call(this);
552
552
  }, /**
553
553
  Executes all queued functions until it reaches the limit.
554
554
  */
555
- De = function() {
556
- for (; M(this, z, ze).call(this); )
555
+ ze = function() {
556
+ for (; L(this, D, De).call(this); )
557
557
  ;
558
558
  }, Nt = async function(t) {
559
559
  return new Promise((i, s) => {
@@ -592,7 +592,7 @@ const xi = () => {
592
592
  useI18n: di,
593
593
  useEvaluateFeatureFlag: gi,
594
594
  useRequestQueue: xi
595
- }, Ye = /* @__PURE__ */ G({
595
+ }, Ye = /* @__PURE__ */ U({
596
596
  __name: "QueryDataProvider",
597
597
  props: {
598
598
  context: {},
@@ -603,72 +603,72 @@ const xi = () => {
603
603
  emits: ["chart-data", "queryComplete"],
604
604
  setup(u, { emit: e }) {
605
605
  const t = u, i = e, { i18n: s } = ie.useI18n(), r = pe(ae), o = () => t.queryReady && r ? JSON.stringify([t.query, t.context, t.refreshCounter]) : null, n = new AbortController();
606
- Ge(() => {
606
+ Ue(() => {
607
607
  n.abort();
608
608
  });
609
- const d = (C, S, R) => {
610
- const x = [];
611
- return S && x.push(...S), x.push(...Ft(C, R)), x;
609
+ const d = (C, k, R) => {
610
+ const E = [];
611
+ return k && E.push(...k), E.push(...Ft(C, R)), E;
612
612
  }, { data: l, error: a, isValidating: h } = jt(o, async () => {
613
- var C, S, R, x;
613
+ var C, k, R, E;
614
614
  try {
615
615
  let {
616
- datasource: E,
617
- ...A
616
+ datasource: x,
617
+ ...S
618
618
  } = t.query;
619
- E || (E = "basic");
620
- const k = d(E, t.query.filters, t.context.filters);
621
- let U = t.query.time_range;
622
- U ? U.tz || (U = {
623
- ...U,
619
+ x || (x = "basic");
620
+ const q = d(x, t.query.filters, t.context.filters);
621
+ let G = t.query.time_range;
622
+ G ? G.tz || (G = {
623
+ ...G,
624
624
  tz: t.context.tz
625
- }) : U = {
625
+ }) : G = {
626
626
  ...t.context.timeSpec,
627
627
  tz: t.context.tz
628
628
  };
629
629
  const Te = {
630
- datasource: E,
630
+ datasource: x,
631
631
  query: {
632
- ...A,
633
- time_range: U,
634
- filters: k
632
+ ...S,
633
+ time_range: G,
634
+ filters: q
635
635
  }
636
636
  };
637
637
  return r == null ? void 0 : r.queryFn(Te, n);
638
- } catch (E) {
639
- m.value = ((S = (C = E == null ? void 0 : E.response) == null ? void 0 : C.data) == null ? void 0 : S.message) === "Range not allowed for this tier" ? s.t("queryDataProvider.timeRangeExceeded") : ((x = (R = E == null ? void 0 : E.response) == null ? void 0 : R.data) == null ? void 0 : x.message) || (E == null ? void 0 : E.message);
638
+ } catch (x) {
639
+ m.value = ((k = (C = x == null ? void 0 : x.response) == null ? void 0 : C.data) == null ? void 0 : k.message) === "Range not allowed for this tier" ? s.t("queryDataProvider.timeRangeExceeded") : ((E = (R = x == null ? void 0 : x.response) == null ? void 0 : R.data) == null ? void 0 : E.message) || (x == null ? void 0 : x.message);
640
640
  } finally {
641
641
  i("queryComplete");
642
642
  }
643
643
  }, {
644
644
  refreshInterval: t.context.refreshInterval,
645
645
  revalidateOnFocus: !1
646
- }), { state: f, swrvState: g } = ri(l, a, h), m = B(null), y = H(() => f.value === g.ERROR || !!m.value), p = H(() => !t.queryReady || f.value === g.PENDING);
647
- return Ue(l, (C) => {
646
+ }), { state: f, swrvState: g } = ri(l, a, h), m = B(null), y = A(() => f.value === g.ERROR || !!m.value), p = A(() => !t.queryReady || f.value === g.PENDING);
647
+ return Ge(l, (C) => {
648
648
  C && i("chart-data", C);
649
- }), (C, S) => {
650
- const R = oe("KSkeleton"), x = oe("KEmptyState");
651
- return p.value || !D(l) && !y.value ? (T(), O(R, {
649
+ }), (C, k) => {
650
+ const R = oe("KSkeleton"), E = oe("KEmptyState");
651
+ return p.value || !z(l) && !y.value ? (T(), H(R, {
652
652
  key: 0,
653
653
  class: "chart-skeleton",
654
654
  type: "table"
655
- })) : y.value ? (T(), O(x, {
655
+ })) : y.value ? (T(), H(E, {
656
656
  key: 1,
657
657
  "action-button-visible": !1,
658
658
  "data-testid": "chart-empty-state",
659
659
  "icon-variant": "error"
660
660
  }, {
661
- default: I(() => [
661
+ default: M(() => [
662
662
  _e(ee(m.value), 1)
663
663
  ]),
664
664
  _: 1
665
- })) : D(l) ? Me(C.$slots, "default", {
665
+ })) : z(l) ? Me(C.$slots, "default", {
666
666
  key: 2,
667
- data: D(l)
667
+ data: z(l)
668
668
  }) : X("", !0);
669
669
  };
670
670
  }
671
- }), Ci = /* @__PURE__ */ G({
671
+ }), Ci = /* @__PURE__ */ U({
672
672
  __name: "SimpleChartRenderer",
673
673
  props: {
674
674
  query: {},
@@ -682,18 +682,18 @@ const xi = () => {
682
682
  Ie((i) => ({
683
683
  "35a26ebf": `${i.height}px`
684
684
  }));
685
- const e = u, t = H(() => e.chartOptions.type === "single_value");
686
- return (i, s) => (T(), O(Ye, {
685
+ const e = u, t = A(() => e.chartOptions.type === "single_value");
686
+ return (i, s) => (T(), H(Ye, {
687
687
  context: i.context,
688
688
  query: i.query,
689
689
  "query-ready": i.queryReady,
690
690
  "refresh-counter": i.refreshCounter
691
691
  }, {
692
- default: I(({ data: r }) => [
692
+ default: M(({ data: r }) => [
693
693
  he("div", {
694
694
  class: We(["analytics-chart", { "single-value": t.value }])
695
695
  }, [
696
- te(D(Kt), {
696
+ te(z(Kt), {
697
697
  "chart-data": r,
698
698
  "chart-options": i.chartOptions,
699
699
  "synthetics-data-key": t.value ? void 0 : i.chartOptions.syntheticsDataKey
@@ -708,7 +708,7 @@ const xi = () => {
708
708
  for (const [i, s] of e)
709
709
  t[i] = s;
710
710
  return t;
711
- }, ot = /* @__PURE__ */ le(Ci, [["__scopeId", "data-v-65cc8607"]]), Ri = { class: "analytics-chart" }, Ti = /* @__PURE__ */ G({
711
+ }, ot = /* @__PURE__ */ le(Ci, [["__scopeId", "data-v-65cc8607"]]), Ri = { class: "analytics-chart" }, Ti = /* @__PURE__ */ U({
712
712
  __name: "BaseAnalyticsChartRenderer",
713
713
  props: {
714
714
  query: {},
@@ -721,7 +721,7 @@ const xi = () => {
721
721
  },
722
722
  emits: ["edit-tile", "chart-data"],
723
723
  setup(u, { emit: e }) {
724
- const t = u, i = e, { i18n: s } = ie.useI18n(), { evaluateFeatureFlag: r } = ie.useEvaluateFeatureFlag(), o = r("ma-3043-analytics-chart-kebab-menu", !1), n = H(() => ({
724
+ const t = u, i = e, { i18n: s } = ie.useI18n(), { evaluateFeatureFlag: r } = ie.useEvaluateFeatureFlag(), o = r("ma-3043-analytics-chart-kebab-menu", !1), n = A(() => ({
725
725
  type: t.chartOptions.type,
726
726
  stacked: t.chartOptions.stacked ?? !1,
727
727
  chartDatasetColors: t.chartOptions.chartDatasetColors,
@@ -733,20 +733,20 @@ const xi = () => {
733
733
  };
734
734
  return (a, h) => {
735
735
  const f = oe("KDropdownItem");
736
- return T(), O(Ye, {
736
+ return T(), H(Ye, {
737
737
  context: a.context,
738
738
  query: a.query,
739
739
  "query-ready": a.queryReady,
740
740
  "refresh-counter": a.refreshCounter,
741
741
  onChartData: l
742
742
  }, {
743
- default: I(({ data: g }) => [
743
+ default: M(({ data: g }) => [
744
744
  he("div", Ri, [
745
- te(D(Vt), pt({
745
+ te(z(Vt), pt({
746
746
  "allow-csv-export": a.chartOptions.allowCsvExport,
747
747
  "chart-data": g,
748
748
  "chart-options": n.value,
749
- "chart-title": !D(o) && a.chartOptions.chartTitle || "",
749
+ "chart-title": !z(o) && a.chartOptions.chartTitle || "",
750
750
  "legend-position": "bottom",
751
751
  "show-menu": a.context.editable,
752
752
  "synthetics-data-key": a.chartOptions.syntheticsDataKey,
@@ -754,10 +754,10 @@ const xi = () => {
754
754
  }, a.extraProps), mt({ _: 2 }, [
755
755
  a.context.editable ? {
756
756
  name: "menu-items",
757
- fn: I(() => [
757
+ fn: M(() => [
758
758
  te(f, { onClick: d }, {
759
- default: I(() => [
760
- _e(ee(D(s).t("renderer.edit")), 1)
759
+ default: M(() => [
760
+ _e(ee(z(s).t("renderer.edit")), 1)
761
761
  ]),
762
762
  _: 1
763
763
  })
@@ -771,7 +771,7 @@ const xi = () => {
771
771
  }, 8, ["context", "query", "query-ready", "refresh-counter"]);
772
772
  };
773
773
  }
774
- }), Xe = /* @__PURE__ */ le(Ti, [["__scopeId", "data-v-ac4da911"]]), at = /* @__PURE__ */ G({
774
+ }), Xe = /* @__PURE__ */ le(Ti, [["__scopeId", "data-v-ac4da911"]]), at = /* @__PURE__ */ U({
775
775
  __name: "BarChartRenderer",
776
776
  props: {
777
777
  query: {},
@@ -782,7 +782,7 @@ const xi = () => {
782
782
  refreshCounter: {}
783
783
  },
784
784
  setup(u) {
785
- return (e, t) => (T(), O(Xe, {
785
+ return (e, t) => (T(), H(Xe, {
786
786
  "chart-options": e.chartOptions,
787
787
  context: e.context,
788
788
  "extra-props": { showAnnotations: !1 },
@@ -792,7 +792,7 @@ const xi = () => {
792
792
  "refresh-counter": e.refreshCounter
793
793
  }, null, 8, ["chart-options", "context", "height", "query", "query-ready", "refresh-counter"]));
794
794
  }
795
- }), lt = /* @__PURE__ */ G({
795
+ }), lt = /* @__PURE__ */ U({
796
796
  __name: "TimeseriesChartRenderer",
797
797
  props: {
798
798
  query: {},
@@ -803,7 +803,7 @@ const xi = () => {
803
803
  refreshCounter: {}
804
804
  },
805
805
  setup(u) {
806
- return (e, t) => (T(), O(Xe, {
806
+ return (e, t) => (T(), H(Xe, {
807
807
  "chart-options": e.chartOptions,
808
808
  context: e.context,
809
809
  height: e.height,
@@ -812,7 +812,7 @@ const xi = () => {
812
812
  "refresh-counter": e.refreshCounter
813
813
  }, null, 8, ["chart-options", "context", "height", "query", "query-ready", "refresh-counter"]));
814
814
  }
815
- }), zi = { class: "metric-card-tile-wrapper" }, Di = /* @__PURE__ */ G({
815
+ }), Di = { class: "metric-card-tile-wrapper" }, zi = /* @__PURE__ */ U({
816
816
  __name: "GoldenSignalsRenderer",
817
817
  props: {
818
818
  query: {},
@@ -824,14 +824,14 @@ const xi = () => {
824
824
  },
825
825
  setup(u) {
826
826
  Ie((o) => ({
827
- "926e3b48": D(i) ? "90%" : "100%",
828
- "7be2893e": D(i) ? "auto" : "100%",
829
- "0d55c162": D(i) ? "100%" : "none"
827
+ "926e3b48": z(i) ? "90%" : "100%",
828
+ "7be2893e": z(i) ? "auto" : "100%",
829
+ "0d55c162": z(i) ? "100%" : "none"
830
830
  }));
831
- const e = u, { evaluateFeatureFlag: t } = ie.useEvaluateFeatureFlag(), i = t("ma-3043-analytics-chart-kebab-menu", !1), s = H(() => {
831
+ const e = u, { evaluateFeatureFlag: t } = ie.useEvaluateFeatureFlag(), i = t("ma-3043-analytics-chart-kebab-menu", !1), s = A(() => {
832
832
  const o = e.context.timeSpec;
833
833
  if (o.type === "absolute")
834
- return new Gt({
834
+ return new Ut({
835
835
  key: "custom",
836
836
  timeframeText: "custom",
837
837
  display: "custom",
@@ -847,7 +847,7 @@ const xi = () => {
847
847
  if (!n)
848
848
  throw new Error("Unknown time range");
849
849
  return n;
850
- }), r = H(() => {
850
+ }), r = A(() => {
851
851
  var n, d;
852
852
  const o = (n = e.query) == null ? void 0 : n.datasource;
853
853
  if (o && o !== "advanced" && o !== "basic")
@@ -867,19 +867,19 @@ const xi = () => {
867
867
  refreshCounter: e.refreshCounter
868
868
  };
869
869
  });
870
- return (o, n) => (T(), $("div", zi, [
871
- te(D(Zt), Pt(qt(r.value)), {
872
- default: I(() => [
873
- te(D(ei))
870
+ return (o, n) => (T(), $("div", Di, [
871
+ te(z(Zt), Pt(qt(r.value)), {
872
+ default: M(() => [
873
+ te(z(ei))
874
874
  ]),
875
875
  _: 1
876
876
  }, 16)
877
877
  ]));
878
878
  }
879
- }), Si = /* @__PURE__ */ le(Di, [["__scopeId", "data-v-0f571079"]]), ht = "#6c7489", dt = "20px", At = "20px", ki = {
879
+ }), Si = /* @__PURE__ */ le(zi, [["__scopeId", "data-v-0f571079"]]), ht = "#6c7489", dt = "20px", At = "20px", ki = {
880
880
  class: "fallback-entity-link",
881
881
  "data-testid": "entity-link-parent"
882
- }, ut = /* @__PURE__ */ G({
882
+ }, ut = /* @__PURE__ */ U({
883
883
  __name: "FallbackEntityLink",
884
884
  props: {
885
885
  entityLinkData: {}
@@ -887,7 +887,7 @@ const xi = () => {
887
887
  setup(u) {
888
888
  return (e, t) => (T(), $("div", ki, ee(e.entityLinkData.label), 1));
889
889
  }
890
- }), Ni = /* @__PURE__ */ G({
890
+ }), Ni = /* @__PURE__ */ U({
891
891
  __name: "TopNTableRenderer",
892
892
  props: {
893
893
  query: {},
@@ -916,23 +916,23 @@ const xi = () => {
916
916
  return e.chartOptions.entityLink.replace(st, n.id);
917
917
  return "";
918
918
  };
919
- return (n, d) => (T(), O(Ye, {
919
+ return (n, d) => (T(), H(Ye, {
920
920
  context: n.context,
921
921
  query: n.query,
922
922
  "query-ready": n.queryReady,
923
923
  "refresh-counter": n.refreshCounter
924
924
  }, {
925
- default: I(({ data: l }) => [
926
- te(D(Yt), {
925
+ default: M(({ data: l }) => [
926
+ te(z(Yt), {
927
927
  data: l,
928
- description: !D(i) && n.chartOptions.description || "",
928
+ description: !z(i) && n.chartOptions.description || "",
929
929
  "synthetics-data-key": n.chartOptions.syntheticsDataKey,
930
- title: !D(i) && n.chartOptions.chartTitle || ""
930
+ title: !z(i) && n.chartOptions.chartTitle || ""
931
931
  }, mt({ _: 2 }, [
932
932
  e.chartOptions.entityLink ? {
933
933
  name: "name",
934
- fn: I(({ record: a }) => [
935
- te(D(r), {
934
+ fn: M(({ record: a }) => [
935
+ te(z(r), {
936
936
  "entity-link-data": {
937
937
  id: a.id,
938
938
  label: a.name,
@@ -948,7 +948,7 @@ const xi = () => {
948
948
  _: 1
949
949
  }, 8, ["context", "query", "query-ready", "refresh-counter"]));
950
950
  }
951
- }), Ai = /* @__PURE__ */ G({
951
+ }), Ai = /* @__PURE__ */ U({
952
952
  __name: "DonutChartRenderer",
953
953
  props: {
954
954
  query: {},
@@ -959,7 +959,7 @@ const xi = () => {
959
959
  refreshCounter: {}
960
960
  },
961
961
  setup(u) {
962
- return (e, t) => (T(), O(Xe, {
962
+ return (e, t) => (T(), H(Xe, {
963
963
  "chart-options": e.chartOptions,
964
964
  context: e.context,
965
965
  height: e.height,
@@ -971,7 +971,7 @@ const xi = () => {
971
971
  }), Hi = ["data-testid"], Oi = {
972
972
  key: 0,
973
973
  class: "tile-header"
974
- }, Li = ["data-testid"], Mi = ["data-testid"], Ii = ["data-testid"], Pi = ["data-testid"], qi = /* @__PURE__ */ G({
974
+ }, Li = ["data-testid"], Mi = ["data-testid"], Ii = ["data-testid"], Pi = ["data-testid"], qi = /* @__PURE__ */ U({
975
975
  __name: "DashboardTile",
976
976
  props: {
977
977
  definition: {},
@@ -990,10 +990,10 @@ const xi = () => {
990
990
  Ke(async () => {
991
991
  var b;
992
992
  g.value = await ((b = r == null ? void 0 : r.exploreBaseUrl) == null ? void 0 : b.call(r)) ?? "";
993
- }), Ue(() => i.definition, async () => {
993
+ }), Ge(() => i.definition, async () => {
994
994
  await yt(), h.value && (f.value = h.value.scrollWidth > h.value.clientWidth);
995
995
  }, { immediate: !0, deep: !0 });
996
- const m = H(() => {
996
+ const m = A(() => {
997
997
  if (!g.value || !i.definition.query || !C.value)
998
998
  return "";
999
999
  const b = [...i.context.filters, ...i.definition.query.filters ?? []], se = i.definition.query.dimensions ?? [], Y = /* @__PURE__ */ new Set(["portal", "api"]);
@@ -1004,10 +1004,10 @@ const xi = () => {
1004
1004
  metrics: i.definition.query.metrics ?? [],
1005
1005
  dimensions: se,
1006
1006
  time_range: i.definition.query.time_range || i.context.timeSpec,
1007
- granularity: i.definition.query.granularity || A.value
1007
+ granularity: i.definition.query.granularity || S.value
1008
1008
  }, ye = ["advanced", "ai"].includes(i.definition.query.datasource) ? i.definition.query.datasource : "advanced";
1009
1009
  return `${g.value}?q=${JSON.stringify(qe)}&d=${ye}&c=${i.definition.chart.type}`;
1010
- }), y = H(() => n.t("csvExport.defaultFilename")), p = H(() => C.value && (S.value || i.context.editable) || !!E.value), C = H(() => d && !["golden_signals", "top_n", "gauge"].includes(i.definition.chart.type)), S = H(() => !!m.value || "allowCsvExport" in i.definition.chart && i.definition.chart.allowCsvExport || i.context.editable), R = {
1010
+ }), y = A(() => n.t("csvExport.defaultFilename")), p = A(() => C.value && (k.value || i.context.editable) || !!x.value), C = A(() => d && !["golden_signals", "top_n", "gauge"].includes(i.definition.chart.type)), k = A(() => !!m.value || "allowCsvExport" in i.definition.chart && i.definition.chart.allowCsvExport || i.context.editable), R = {
1011
1011
  timeseries_line: lt,
1012
1012
  timeseries_bar: lt,
1013
1013
  horizontal_bar: at,
@@ -1018,7 +1018,7 @@ const xi = () => {
1018
1018
  top_n: Ni,
1019
1019
  slottable: void 0,
1020
1020
  single_value: ot
1021
- }, x = H(() => {
1021
+ }, E = A(() => {
1022
1022
  const b = R[i.definition.chart.type];
1023
1023
  return b && {
1024
1024
  component: b,
@@ -1031,20 +1031,20 @@ const xi = () => {
1031
1031
  refreshCounter: i.refreshCounter
1032
1032
  }
1033
1033
  };
1034
- }), E = H(() => {
1034
+ }), x = A(() => {
1035
1035
  var se;
1036
1036
  const b = (se = i.definition.query) == null ? void 0 : se.time_range;
1037
1037
  if ((b == null ? void 0 : b.type) === "relative") {
1038
- const Y = wt.get(Ut[b.time_range]);
1038
+ const Y = wt.get(Gt[b.time_range]);
1039
1039
  return Y ? Y.display : (console.warn("Did not recognize the given relative time range:", b.time_range), b.time_range);
1040
1040
  } else if ((b == null ? void 0 : b.type) === "absolute") {
1041
1041
  const Y = b.tz || "Etc/UTC";
1042
1042
  return `${it(b.start, { short: !0, tz: Y })} - ${it(b.end, { short: !0, tz: Y })}`;
1043
1043
  }
1044
1044
  return null;
1045
- }), A = H(() => l.value ? Wt(l.value.meta.granularity_ms) : void 0), k = () => {
1045
+ }), S = A(() => l.value ? Wt(l.value.meta.granularity_ms) : void 0), q = () => {
1046
1046
  s("edit-tile", i.definition);
1047
- }, U = () => {
1047
+ }, G = () => {
1048
1048
  s("remove-tile", i.definition);
1049
1049
  }, Te = (b) => {
1050
1050
  l.value = b;
@@ -1059,14 +1059,14 @@ const xi = () => {
1059
1059
  class: We(["tile-boundary", { editable: b.context.editable }]),
1060
1060
  "data-testid": `tile-${b.tileId}`
1061
1061
  }, [
1062
- D(d) && b.definition.chart.type !== "slottable" ? (T(), $("div", Oi, [
1062
+ z(d) && b.definition.chart.type !== "slottable" ? (T(), $("div", Oi, [
1063
1063
  te(Y, {
1064
1064
  class: "title-tooltip",
1065
1065
  disabled: !f.value,
1066
1066
  "max-width": "500",
1067
1067
  text: b.definition.chart.chartTitle
1068
1068
  }, {
1069
- default: I(() => [
1069
+ default: M(() => [
1070
1070
  he("div", {
1071
1071
  ref_key: "titleRef",
1072
1072
  ref: h,
@@ -1080,63 +1080,63 @@ const xi = () => {
1080
1080
  class: "tile-actions",
1081
1081
  "data-testid": `tile-actions-${b.tileId}`
1082
1082
  }, [
1083
- E.value ? (T(), O(qe, { key: 0 }, {
1084
- default: I(() => [
1085
- _e(ee(E.value), 1)
1083
+ x.value ? (T(), H(qe, { key: 0 }, {
1084
+ default: M(() => [
1085
+ _e(ee(x.value), 1)
1086
1086
  ]),
1087
1087
  _: 1
1088
1088
  })) : X("", !0),
1089
- C.value && b.context.editable ? (T(), O(D(ti), {
1089
+ C.value && b.context.editable ? (T(), H(z(ti), {
1090
1090
  key: 1,
1091
1091
  class: "edit-icon",
1092
- color: D(ht),
1092
+ color: z(ht),
1093
1093
  "data-testid": `edit-tile-${b.tileId}`,
1094
- size: D(dt),
1095
- onClick: k
1094
+ size: z(dt),
1095
+ onClick: q
1096
1096
  }, null, 8, ["color", "data-testid", "size"])) : X("", !0),
1097
- C.value && S.value ? (T(), O(re, {
1097
+ C.value && k.value ? (T(), H(re, {
1098
1098
  key: 2,
1099
1099
  class: "dropdown",
1100
1100
  "data-testid": `chart-action-menu-${b.tileId}`,
1101
1101
  "kpop-attributes": { placement: "bottom-end" }
1102
1102
  }, {
1103
- items: I(() => [
1104
- m.value ? (T(), O(ye, {
1103
+ items: M(() => [
1104
+ m.value ? (T(), H(ye, {
1105
1105
  key: 0,
1106
1106
  "data-testid": `chart-jump-to-explore-${b.tileId}`,
1107
- item: { label: D(n).t("jumpToExplore"), to: m.value }
1107
+ item: { label: z(n).t("jumpToExplore"), to: m.value }
1108
1108
  }, null, 8, ["data-testid", "item"])) : X("", !0),
1109
- "allowCsvExport" in b.definition.chart && b.definition.chart.allowCsvExport ? (T(), O(ye, {
1109
+ "allowCsvExport" in b.definition.chart && b.definition.chart.allowCsvExport ? (T(), H(ye, {
1110
1110
  key: 1,
1111
1111
  class: "chart-export-button",
1112
1112
  "data-testid": `chart-csv-export-${b.tileId}`,
1113
1113
  onClick: se[0] || (se[0] = (ts) => Ot())
1114
1114
  }, {
1115
- default: I(() => [
1115
+ default: M(() => [
1116
1116
  he("span", {
1117
1117
  class: "chart-export-trigger",
1118
1118
  "data-testid": `csv-export-button-${b.tileId}`
1119
- }, ee(D(n).t("csvExport.exportAsCsv")), 9, Mi)
1119
+ }, ee(z(n).t("csvExport.exportAsCsv")), 9, Mi)
1120
1120
  ]),
1121
1121
  _: 1
1122
1122
  }, 8, ["data-testid"])) : X("", !0),
1123
- b.context.editable ? (T(), O(ye, {
1123
+ b.context.editable ? (T(), H(ye, {
1124
1124
  key: 2,
1125
1125
  "data-testid": `remove-tile-${b.tileId}`,
1126
- onClick: U
1126
+ onClick: G
1127
1127
  }, {
1128
- default: I(() => [
1129
- _e(ee(D(n).t("renderer.remove")), 1)
1128
+ default: M(() => [
1129
+ _e(ee(z(n).t("renderer.remove")), 1)
1130
1130
  ]),
1131
1131
  _: 1
1132
1132
  }, 8, ["data-testid"])) : X("", !0)
1133
1133
  ]),
1134
- default: I(() => [
1135
- te(D(ii), {
1134
+ default: M(() => [
1135
+ te(z(ii), {
1136
1136
  class: "kebab-action-menu",
1137
- color: D(ht),
1137
+ color: z(ht),
1138
1138
  "data-testid": `kebab-action-menu-${b.tileId}`,
1139
- size: D(dt)
1139
+ size: z(dt)
1140
1140
  }, null, 8, ["color", "data-testid", "size"])
1141
1141
  ]),
1142
1142
  _: 1
@@ -1146,7 +1146,7 @@ const xi = () => {
1146
1146
  class: "header-description",
1147
1147
  "data-testid": `tile-description-${b.tileId}`
1148
1148
  }, ee(b.definition.chart.description), 9, Ii)) : X("", !0),
1149
- a.value ? (T(), O(D(Xt), {
1149
+ a.value ? (T(), H(z(Xt), {
1150
1150
  key: 2,
1151
1151
  "chart-data": l.value,
1152
1152
  "data-testid": `csv-export-modal-${b.tileId}`,
@@ -1158,7 +1158,7 @@ const xi = () => {
1158
1158
  class: "tile-content",
1159
1159
  "data-testid": `tile-content-${b.tileId}`
1160
1160
  }, [
1161
- x.value ? (T(), O(vt(x.value.component), pt({ key: 0 }, x.value.rendererProps, { onChartData: Te }), null, 16)) : X("", !0)
1161
+ E.value ? (T(), H(vt(E.value.component), pt({ key: 0 }, E.value.rendererProps, { onChartData: Te }), null, 16)) : X("", !0)
1162
1162
  ], 8, Pi)
1163
1163
  ], 10, Hi);
1164
1164
  };
@@ -1173,7 +1173,7 @@ const xi = () => {
1173
1173
  for (let r = 0; r < u; r++)
1174
1174
  i.get(r) ? s.push("auto") : s.push(`${e}px`);
1175
1175
  return s;
1176
- }, Fi = /* @__PURE__ */ G({
1176
+ }, Fi = /* @__PURE__ */ U({
1177
1177
  __name: "GridLayout",
1178
1178
  props: {
1179
1179
  gridSize: {
@@ -1202,13 +1202,13 @@ const xi = () => {
1202
1202
  });
1203
1203
  Ke(() => {
1204
1204
  t.value && s.observe(t.value);
1205
- }), Ge(() => {
1205
+ }), Ue(() => {
1206
1206
  t.value && s.unobserve(t.value);
1207
1207
  });
1208
- const r = H(() => {
1208
+ const r = A(() => {
1209
1209
  var d;
1210
1210
  return $i((d = e.gridSize) == null ? void 0 : d.rows, e.tileHeight, e.tiles).join(" ");
1211
- }), o = H(() => e.tiles.map((n, d) => ({
1211
+ }), o = A(() => e.tiles.map((n, d) => ({
1212
1212
  key: `tile-${d}`,
1213
1213
  tile: n,
1214
1214
  style: {
@@ -1237,8 +1237,8 @@ const xi = () => {
1237
1237
  ], 6))), 128))
1238
1238
  ], 512));
1239
1239
  }
1240
- }), Gi = /* @__PURE__ */ le(Fi, [["__scopeId", "data-v-f43eb7b8"]]);
1241
- function Ui(u, e, t, i, s) {
1240
+ }), Ui = /* @__PURE__ */ le(Fi, [["__scopeId", "data-v-f43eb7b8"]]);
1241
+ function Gi(u, e, t, i, s) {
1242
1242
  const r = (...o) => (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(u, o));
1243
1243
  return r.prototype = e.prototype, r;
1244
1244
  }
@@ -2756,7 +2756,7 @@ class Vi {
2756
2756
  * Copyright (c) 2021-2024 Alain Dumesny
2757
2757
  * see root license https://github.com/gridstack/gridstack.js/tree/master/LICENSE
2758
2758
  */
2759
- const P = new Vi();
2759
+ const I = new Vi();
2760
2760
  class _ {
2761
2761
  /**
2762
2762
  * initializing the HTML element, or selector string, into a grid will return the grid. Calling it again will
@@ -2946,8 +2946,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2946
2946
  t.column === "auto" && (d = !0, t.column = Math.max(r.w || 1, (i == null ? void 0 : i.w) || 1), delete t.columnOpts);
2947
2947
  let l = r.el.querySelector(".grid-stack-item-content"), a, h;
2948
2948
  if (s && (this._removeDD(r.el), h = { ...r, x: 0, y: 0 }, c.removeInternalForSave(h), delete h.subGridOpts, r.content && (h.content = r.content, delete r.content), _.addRemoveCB ? a = _.addRemoveCB(this.el, h, !0, !1) : (a = c.createDiv(["grid-stack-item"]), a.appendChild(l), l = c.createDiv(["grid-stack-item-content"], r.el)), this._prepareDragDropByNode(r)), i) {
2949
- const p = d ? t.column : r.w, C = r.h + i.h, S = r.el.style;
2950
- S.transition = "none", this.update(r.el, { w: p, h: C }), setTimeout(() => S.transition = null);
2949
+ const p = d ? t.column : r.w, C = r.h + i.h, k = r.el.style;
2950
+ k.transition = "none", this.update(r.el, { w: p, h: C }), setTimeout(() => k.transition = null);
2951
2951
  }
2952
2952
  const f = r.subGrid = _.addGrid(l, t);
2953
2953
  return i != null && i._moving && (f._isTemp = !0), d && (f._autoColumn = !0), s && f.makeWidget(a, h), i && (i._moving ? window.setTimeout(() => c.simulateMouseEvent(i._event, "mouseenter", f.el), 0) : f.makeWidget(r.el, r)), this.resizeToContentCheck(!1, r), f;
@@ -3639,7 +3639,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3639
3639
  */
3640
3640
  /** get the global (but static to this code) DD implementation */
3641
3641
  static getDD() {
3642
- return P;
3642
+ return I;
3643
3643
  }
3644
3644
  /**
3645
3645
  * call to setup dragging in from the outside (say toolbar), by specifying the class selection and options.
@@ -3652,7 +3652,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3652
3652
  */
3653
3653
  static setupDragIn(e, t, i, s = document) {
3654
3654
  (t == null ? void 0 : t.pause) !== void 0 && (w.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? c.getElements(e, s) : e).forEach((o, n) => {
3655
- P.isDraggable(o) || P.dragIn(o, t), i != null && i[n] && (o.gridstackNode = i[n]);
3655
+ I.isDraggable(o) || I.dragIn(o, t), i != null && i[n] && (o.gridstackNode = i[n]);
3656
3656
  });
3657
3657
  }
3658
3658
  /**
@@ -3731,12 +3731,12 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3731
3731
  }
3732
3732
  /** @internal removes any drag&drop present (called during destroy) */
3733
3733
  _removeDD(e) {
3734
- return P.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
3734
+ return I.draggable(e, "destroy").resizable(e, "destroy"), e.gridstackNode && delete e.gridstackNode._initDD, delete e.ddElement, this;
3735
3735
  }
3736
3736
  /** @internal called to add drag over to support widgets being added externally */
3737
3737
  _setupAcceptWidget() {
3738
3738
  if (this.opts.staticGrid || !this.opts.acceptWidgets && !this.opts.removable)
3739
- return P.droppable(this.el, "destroy"), this;
3739
+ return I.droppable(this.el, "destroy"), this;
3740
3740
  let e, t;
3741
3741
  const i = (s, r, o) => {
3742
3742
  var f;
@@ -3761,7 +3761,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3761
3761
  if (n._temporaryRemoved) {
3762
3762
  if (n.x = Math.max(0, Math.round(l / t)), n.y = Math.max(0, Math.round(d / e)), delete n.autoPosition, this.engine.nodeBoundFix(n), !this.engine.willItFit(n)) {
3763
3763
  if (n.autoPosition = !0, !this.engine.willItFit(n)) {
3764
- P.off(r, "drag");
3764
+ I.off(r, "drag");
3765
3765
  return;
3766
3766
  }
3767
3767
  n._willFitPos && (c.copyPos(n, n._willFitPos), delete n._willFitPos);
@@ -3770,7 +3770,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3770
3770
  } else
3771
3771
  this._dragOrResize(o, s, h, n, t, e);
3772
3772
  };
3773
- return P.droppable(this.el, {
3773
+ return I.droppable(this.el, {
3774
3774
  accept: (s) => {
3775
3775
  const r = s.gridstackNode || this._readAttr(s, !1);
3776
3776
  if ((r == null ? void 0 : r.grid) === this)
@@ -3809,7 +3809,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3809
3809
  n.grid || (n.el || (n = { ...n }), n._isExternal = !0, o.gridstackNode = n);
3810
3810
  const d = n.w || Math.round(o.offsetWidth / t) || 1, l = n.h || Math.round(o.offsetHeight / e) || 1;
3811
3811
  return n.grid && n.grid !== this ? (r._gridstackNodeOrig || (r._gridstackNodeOrig = n), r.gridstackNode = n = { ...n, w: d, h: l, grid: this }, delete n.x, delete n.y, this.engine.cleanupNode(n).nodeBoundFix(n), n._initDD = n._isExternal = // DOM needs to be re-parented on a drop
3812
- n._temporaryRemoved = !0) : (n.w = d, n.h = l, n._temporaryRemoved = !0), _._itemRemoving(n.el, !1), P.on(r, "drag", i), i(s, r, o), !1;
3812
+ n._temporaryRemoved = !0) : (n.w = d, n.h = l, n._temporaryRemoved = !0), _._itemRemoving(n.el, !1), I.on(r, "drag", i), i(s, r, o), !1;
3813
3813
  }).on(this.el, "dropout", (s, r, o) => {
3814
3814
  const n = (o == null ? void 0 : o.gridstackNode) || r.gridstackNode;
3815
3815
  return n && (!n.grid || n.grid === this) && (this._leave(r, o), this._isTemp && this.removeAsSubGrid(n)), !1;
@@ -3827,7 +3827,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3827
3827
  const p = h.grid;
3828
3828
  p.engine.removeNodeFromLayoutCache(h), p.engine.removedNodes.push(h), p._triggerRemoveEvent()._triggerChangeEvent(), p.parentGridNode && !p.engine.nodes.length && p.opts.subGridDynamic && p.removeAsSubGrid();
3829
3829
  }
3830
- if (!n || (d && (this.engine.cleanupNode(n), n.grid = this), (g = n.grid) == null || delete g._isTemp, P.off(r, "drag"), o !== r ? (o.remove(), r = o) : r.remove(), this._removeDD(r), !d))
3830
+ if (!n || (d && (this.engine.cleanupNode(n), n.grid = this), (g = n.grid) == null || delete g._isTemp, I.off(r, "drag"), o !== r ? (o.remove(), r = o) : r.remove(), this._removeDD(r), !d))
3831
3831
  return !1;
3832
3832
  const f = (y = (m = n.subGrid) == null ? void 0 : m.el) == null ? void 0 : y.gridstack;
3833
3833
  return c.copyPos(n, this._readAttr(this.placeholder)), c.removePositioningStyles(r), l && (n.content || n.subGridOpts || _.addRemoveCB) ? (delete n.el, r = this.addWidget(n)) : (this._prepareElement(r, !0, n), this.el.appendChild(r), this.resizeToContentCheck(!1, n), f && (f.parentGridNode = n, f.opts.styleInHead || f._updateStyles(!0)), this._updateContainerHeight()), this.engine.addedNodes.push(n), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...s, type: "dropped" }, h && h.grid ? h : void 0, n), a && this.setAnimation(this.opts.animate, !0), !1;
@@ -3845,7 +3845,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3845
3845
  if (typeof this.opts.removable != "string")
3846
3846
  return this;
3847
3847
  const e = document.querySelector(this.opts.removable);
3848
- return e ? (!this.opts.staticGrid && !P.isDroppable(e) && P.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => _._itemRemoving(i, !0)).on(e, "dropout", (t, i) => _._itemRemoving(i, !1)), this) : this;
3848
+ return e ? (!this.opts.staticGrid && !I.isDroppable(e) && I.droppable(e, this.opts.removableOptions).on(e, "dropover", (t, i) => _._itemRemoving(i, !0)).on(e, "dropout", (t, i) => _._itemRemoving(i, !1)), this) : this;
3849
3849
  }
3850
3850
  /** @internal prepares the element for drag&drop */
3851
3851
  _prepareDragDropByNode(e) {
@@ -3870,7 +3870,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3870
3870
  this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), a.type === "resizestop" && (Number.isInteger(e.sizeToContent) && (e.sizeToContent = e.h), this.resizeToContentCheck(h, e));
3871
3871
  }
3872
3872
  };
3873
- P.draggable(t, {
3873
+ I.draggable(t, {
3874
3874
  start: n,
3875
3875
  stop: l,
3876
3876
  drag: d
@@ -3880,7 +3880,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3880
3880
  resize: d
3881
3881
  }), e._initDD = !0;
3882
3882
  }
3883
- return P.draggable(t, i ? "disable" : "enable").resizable(t, s ? "disable" : "enable"), this;
3883
+ return I.draggable(t, i ? "disable" : "enable").resizable(t, s ? "disable" : "enable"), this;
3884
3884
  }
3885
3885
  /** @internal handles actual drag/resize start */
3886
3886
  _onStartMoving(e, t, i, s, r, o) {
@@ -3899,7 +3899,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3899
3899
  };
3900
3900
  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, o, this.opts.marginTop, this.opts.marginRight, this.opts.marginBottom, this.opts.marginLeft), t.type === "resizestart") {
3901
3901
  const d = this.getColumn() - s.x, l = (this.opts.maxRow || Number.MAX_SAFE_INTEGER) - s.y;
3902
- P.resizable(e, "option", "minWidth", r * Math.min(s.minW || 1, d)).resizable(e, "option", "minHeight", o * Math.min(s.minH || 1, l)).resizable(e, "option", "maxWidth", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, d)).resizable(e, "option", "maxWidthMoveLeft", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, s.x + s.w)).resizable(e, "option", "maxHeight", o * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, l)).resizable(e, "option", "maxHeightMoveUp", o * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, s.y + s.h));
3902
+ I.resizable(e, "option", "minWidth", r * Math.min(s.minW || 1, d)).resizable(e, "option", "minHeight", o * Math.min(s.minH || 1, l)).resizable(e, "option", "maxWidth", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, d)).resizable(e, "option", "maxWidthMoveLeft", r * Math.min(s.maxW || Number.MAX_SAFE_INTEGER, s.x + s.w)).resizable(e, "option", "maxHeight", o * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, l)).resizable(e, "option", "maxHeightMoveUp", o * Math.min(s.maxH || Number.MAX_SAFE_INTEGER, s.y + s.h));
3903
3903
  }
3904
3904
  }
3905
3905
  /** @internal handles actual drag/resize */
@@ -3912,13 +3912,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3912
3912
  return;
3913
3913
  const p = i.position.top - s._prevYPix;
3914
3914
  s._prevYPix = i.position.top, this.opts.draggable.scroll !== !1 && c.updateScrollPosition(e, i.position, p);
3915
- const C = i.position.left + (i.position.left > s._lastUiPosition.left ? -a : l), S = i.position.top + (i.position.top > s._lastUiPosition.top ? -f : h);
3916
- n.x = Math.round(C / r), n.y = Math.round(S / o);
3915
+ const C = i.position.left + (i.position.left > s._lastUiPosition.left ? -a : l), k = i.position.top + (i.position.top > s._lastUiPosition.top ? -f : h);
3916
+ n.x = Math.round(C / r), n.y = Math.round(k / o);
3917
3917
  const R = this._extraDragRow;
3918
3918
  if (this.engine.collide(s, n)) {
3919
- const x = this.getRow();
3920
- let E = Math.max(0, n.y + s.h - x);
3921
- this.opts.maxRow && x + E > this.opts.maxRow && (E = Math.max(0, this.opts.maxRow - x)), this._extraDragRow = E;
3919
+ const E = this.getRow();
3920
+ let x = Math.max(0, n.y + s.h - E);
3921
+ this.opts.maxRow && E + x > this.opts.maxRow && (x = Math.max(0, this.opts.maxRow - E)), this._extraDragRow = x;
3922
3922
  } else
3923
3923
  this._extraDragRow = 0;
3924
3924
  if (this._extraDragRow !== R && this._updateContainerHeight(), s.x === n.x && s.y === n.y)
@@ -3949,11 +3949,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3949
3949
  _leave(e, t) {
3950
3950
  t = t || e;
3951
3951
  const i = t.gridstackNode;
3952
- i && (t.style.transform = t.style.transformOrigin = null, P.off(e, "drag"), !i._temporaryRemoved && (i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e, i._isExternal && this.engine.cleanupNode(i), this.opts.removable === !0 && _._itemRemoving(e, !0), e._gridstackNodeOrig ? (e.gridstackNode = e._gridstackNodeOrig, delete e._gridstackNodeOrig) : i._isExternal && this.engine.restoreInitial()));
3952
+ i && (t.style.transform = t.style.transformOrigin = null, I.off(e, "drag"), !i._temporaryRemoved && (i._temporaryRemoved = !0, this.engine.removeNode(i), i.el = i._isExternal && t ? t : e, i._isExternal && this.engine.cleanupNode(i), this.opts.removable === !0 && _._itemRemoving(e, !0), e._gridstackNodeOrig ? (e.gridstackNode = e._gridstackNodeOrig, delete e._gridstackNodeOrig) : i._isExternal && this.engine.restoreInitial()));
3953
3953
  }
3954
3954
  // legacy method removed
3955
3955
  commit() {
3956
- return Ui(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
3956
+ return Gi(this, this.batchUpdate(!1), "commit", "batchUpdate", "5.2"), this;
3957
3957
  }
3958
3958
  }
3959
3959
  _.renderCB = (u, e) => {
@@ -3963,7 +3963,7 @@ _.resizeToContentParent = ".grid-stack-item-content";
3963
3963
  _.Utils = c;
3964
3964
  _.Engine = Q;
3965
3965
  _.GDRev = "11.3.0";
3966
- const Yi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Xi = { class: "grid-stack-item-content" }, ji = /* @__PURE__ */ G({
3966
+ const Yi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Xi = { class: "grid-stack-item-content" }, ji = /* @__PURE__ */ U({
3967
3967
  __name: "DraggableGridLayout",
3968
3968
  props: {
3969
3969
  tiles: {},
@@ -4002,7 +4002,7 @@ const Yi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Xi = { cl
4002
4002
  resizable: { handles: "se, sw" },
4003
4003
  handle: ".tile-header"
4004
4004
  }, r.value), n.on("change", a), n.on("added", a), n.on("removed", h));
4005
- }), Ge(() => {
4005
+ }), Ue(() => {
4006
4006
  n && n.destroy(!1);
4007
4007
  });
4008
4008
  const f = (g) => {
@@ -4011,7 +4011,7 @@ const Yi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Xi = { cl
4011
4011
  m && n.removeWidget(m);
4012
4012
  }
4013
4013
  };
4014
- return Ue(() => i.tiles.length, async (g, m) => {
4014
+ return Ge(() => i.tiles.length, async (g, m) => {
4015
4015
  if (g > m && n) {
4016
4016
  const y = i.tiles.slice(m);
4017
4017
  for (const p of y)
@@ -4050,7 +4050,7 @@ const Yi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Xi = { cl
4050
4050
  }), Qi = /* @__PURE__ */ le(ji, [["__scopeId", "data-v-c88d02bb"]]), Ji = { class: "kong-ui-public-dashboard-renderer" }, Zi = {
4051
4051
  key: 0,
4052
4052
  class: "tile-container slottable-tile"
4053
- }, es = /* @__PURE__ */ G({
4053
+ }, es = /* @__PURE__ */ U({
4054
4054
  __name: "DashboardRenderer",
4055
4055
  props: /* @__PURE__ */ tt({
4056
4056
  context: {}
@@ -4062,68 +4062,65 @@ const Yi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Xi = { cl
4062
4062
  setup(u, { expose: e, emit: t }) {
4063
4063
  const i = u, s = t, r = $t(u, "modelValue"), { i18n: o } = ie.useI18n(), n = B(0), d = B(null), l = pe(ae);
4064
4064
  l || (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")), ie.useRequestQueue();
4065
- const a = Et(), h = H(() => i.context.timeSpec ? i.context.timeSpec : {
4065
+ const a = Et(), h = A(() => i.context.timeSpec ? i.context.timeSpec : {
4066
4066
  type: "relative",
4067
4067
  time_range: a.defaultQueryTimeForOrg
4068
- }), f = H(() => !!i.context.timeSpec || !a.loading), g = (x, E) => {
4069
- const A = x.layout.position.row - E.layout.position.row;
4070
- return A !== 0 ? A : x.layout.position.col - E.layout.position.col;
4071
- }, m = H(() => r.value.tiles.map((x, E) => {
4072
- var k;
4073
- let A = x.definition;
4074
- if ("description" in A.chart) {
4075
- const U = (k = A.chart.description) == null ? void 0 : k.replace(ci, () => {
4068
+ }), f = A(() => !!i.context.timeSpec || !a.loading), g = (E, x) => {
4069
+ const S = E.layout.position.row - x.layout.position.row;
4070
+ return S !== 0 ? S : E.layout.position.col - x.layout.position.col;
4071
+ }, m = A(() => r.value.tiles.map((E, x) => {
4072
+ var q;
4073
+ let S = E.definition;
4074
+ if ("description" in S.chart) {
4075
+ const G = (q = S.chart.description) == null ? void 0 : q.replace(ci, () => {
4076
4076
  const me = `renderer.trendRange.${h.value.type === "absolute" ? "custom" : h.value.time_range}`;
4077
4077
  return o.te(me) ? o.t(me) : "";
4078
4078
  });
4079
- A = {
4080
- ...A,
4079
+ S = {
4080
+ ...S,
4081
4081
  chart: {
4082
- ...A.chart,
4083
- description: U
4082
+ ...S.chart,
4083
+ description: G
4084
4084
  }
4085
4085
  };
4086
4086
  }
4087
- return i.context.editable && !x.id && console.warn(
4087
+ return i.context.editable && !E.id && console.warn(
4088
4088
  "No id provided for tile. One will be generated automatically,",
4089
4089
  "however tracking changes to this tile may not work as expected.",
4090
- x
4090
+ E
4091
4091
  ), {
4092
- layout: x.layout,
4093
- meta: A,
4092
+ layout: E.layout,
4093
+ meta: S,
4094
4094
  // Add a unique key to each tile internally.
4095
- id: x.id ?? crypto.randomUUID()
4095
+ id: E.id ?? crypto.randomUUID()
4096
4096
  };
4097
- })), y = H(() => {
4098
- let { tz: x, refreshInterval: E, editable: A } = i.context;
4099
- return x || (x = new Intl.DateTimeFormat().resolvedOptions().timeZone), E === void 0 && (E = fi), A === void 0 && (A = !1), {
4097
+ })), y = A(() => {
4098
+ let { tz: E, refreshInterval: x, editable: S } = i.context;
4099
+ return E || (E = new Intl.DateTimeFormat().resolvedOptions().timeZone), x === void 0 && (x = fi), S === void 0 && (S = !1), {
4100
4100
  ...i.context,
4101
- tz: x,
4101
+ tz: E,
4102
4102
  timeSpec: h.value,
4103
- refreshInterval: E,
4104
- editable: A
4103
+ refreshInterval: x,
4104
+ editable: S
4105
4105
  };
4106
- }), p = (x) => {
4107
- s("edit-tile", x);
4108
- }, C = (x) => {
4109
- d.value && d.value.removeWidget(x.id);
4110
- }, S = () => {
4106
+ }), p = (E) => {
4107
+ s("edit-tile", E);
4108
+ }, C = (E) => {
4109
+ d.value && d.value.removeWidget(E.id);
4110
+ }, k = () => {
4111
4111
  n.value++;
4112
- }, R = (x) => {
4113
- const E = x.map((k) => ({
4114
- id: k.id,
4115
- layout: k.layout,
4116
- definition: k.meta
4117
- })), A = {
4118
- cols: Math.max(2, ...E.map((k) => k.layout.position.col + k.layout.size.cols)),
4119
- rows: Math.max(1, ...E.map((k) => k.layout.position.row + k.layout.size.rows))
4120
- };
4121
- r.value.gridSize = A, r.value.tiles = E.sort(g);
4112
+ }, R = (E) => {
4113
+ const x = E.map((S) => ({
4114
+ id: S.id,
4115
+ layout: S.layout,
4116
+ definition: S.meta
4117
+ }));
4118
+ r.value.gridSize.rows = Math.max(1, ...x.map((S) => S.layout.position.row + S.layout.size.rows)), r.value.tiles = x.sort(g);
4122
4119
  };
4123
- return e({ refresh: S }), (x, E) => {
4124
- const A = oe("KAlert");
4120
+ return e({ refresh: k }), (E, x) => {
4121
+ const S = oe("KAlert");
4125
4122
  return T(), $("div", Ji, [
4126
- D(l) ? (T(), O(vt(x.context.editable ? Qi : Gi), {
4123
+ z(l) ? (T(), H(vt(E.context.editable ? Qi : Ui), {
4127
4124
  key: 1,
4128
4125
  ref_key: "gridLayoutRef",
4129
4126
  ref: d,
@@ -4132,43 +4129,43 @@ const Yi = ["data-id", "data-testid", "gs-h", "gs-w", "gs-x", "gs-y"], Xi = { cl
4132
4129
  tiles: m.value,
4133
4130
  onUpdateTiles: R
4134
4131
  }, {
4135
- tile: I(({ tile: k }) => [
4136
- k.meta.chart.type === "slottable" ? (T(), $("div", Zi, [
4137
- Me(x.$slots, k.meta.chart.id, {}, void 0, !0)
4138
- ])) : (T(), O(Bi, {
4132
+ tile: M(({ tile: q }) => [
4133
+ q.meta.chart.type === "slottable" ? (T(), $("div", Zi, [
4134
+ Me(E.$slots, q.meta.chart.id, {}, void 0, !0)
4135
+ ])) : (T(), H(Bi, {
4139
4136
  key: 1,
4140
4137
  class: "tile-container",
4141
4138
  context: y.value,
4142
- definition: k.meta,
4143
- height: k.layout.size.rows * (r.value.tileHeight || D(Ve)) + parseInt(D(At), 10),
4139
+ definition: q.meta,
4140
+ height: q.layout.size.rows * (r.value.tileHeight || z(Ve)) + parseInt(z(At), 10),
4144
4141
  "query-ready": f.value,
4145
4142
  "refresh-counter": n.value,
4146
- "tile-id": k.id,
4147
- onEditTile: (U) => p(k),
4148
- onRemoveTile: (U) => C(k)
4143
+ "tile-id": q.id,
4144
+ onEditTile: (G) => p(q),
4145
+ onRemoveTile: (G) => C(q)
4149
4146
  }, null, 8, ["context", "definition", "height", "query-ready", "refresh-counter", "tile-id", "onEditTile", "onRemoveTile"]))
4150
4147
  ]),
4151
4148
  _: 3
4152
- }, 40, ["grid-size", "tile-height", "tiles"])) : (T(), O(A, {
4149
+ }, 40, ["grid-size", "tile-height", "tiles"])) : (T(), H(S, {
4153
4150
  key: 0,
4154
4151
  appearance: "danger"
4155
4152
  }, {
4156
- default: I(() => [
4157
- _e(ee(D(o).t("renderer.noQueryBridge")), 1)
4153
+ default: M(() => [
4154
+ _e(ee(z(o).t("renderer.noQueryBridge")), 1)
4158
4155
  ]),
4159
4156
  _: 1
4160
4157
  }))
4161
4158
  ]);
4162
4159
  };
4163
4160
  }
4164
- }), cs = /* @__PURE__ */ le(es, [["__scopeId", "data-v-6ad939cd"]]);
4161
+ }), cs = /* @__PURE__ */ le(es, [["__scopeId", "data-v-ab93c61b"]]);
4165
4162
  export {
4166
4163
  ui as CP_ID_TOKEN,
4167
4164
  Ve as DEFAULT_TILE_HEIGHT,
4168
4165
  fi as DEFAULT_TILE_REFRESH_INTERVAL_MS,
4169
4166
  cs as DashboardRenderer,
4170
4167
  st as ENTITY_ID_TOKEN,
4171
- Gi as GridLayout,
4168
+ Ui as GridLayout,
4172
4169
  ae as INJECT_QUERY_PROVIDER,
4173
4170
  ci as TIMEFRAME_TOKEN
4174
4171
  };