@kong-ui-public/entities-data-plane-nodes 0.2.27 → 0.2.28

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,7 +1,7 @@
1
- var Me = Object.defineProperty;
2
- var Be = (e, t, r) => t in e ? Me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var P = (e, t, r) => Be(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { ref as w, computed as y, unref as g, watch as ke, inject as Ue, toValue as Z, defineComponent as V, openBlock as v, createBlock as T, resolveDynamicComponent as R, normalizeStyle as X, withCtx as A, createElementBlock as N, toDisplayString as _, createCommentVNode as B, pushScopeId as ee, popScopeId as te, createElementVNode as b, resolveComponent as M, Fragment as xe, createTextVNode as Y, createVNode as G, mergeModels as Pe, useModel as De, renderList as Ke } from "vue";
1
+ var Be = Object.defineProperty;
2
+ var Fe = (e, t, r) => t in e ? Be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var P = (e, t, r) => Fe(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { ref as w, computed as m, unref as g, watch as ke, inject as Ue, toValue as Z, defineComponent as V, openBlock as h, createBlock as T, resolveDynamicComponent as R, normalizeStyle as X, withCtx as A, createElementBlock as N, toDisplayString as _, createCommentVNode as F, pushScopeId as ee, popScopeId as te, createElementVNode as b, resolveComponent as B, Fragment as xe, createTextVNode as Y, createVNode as G, mergeModels as Pe, useModel as De, renderList as Ke } from "vue";
5
5
  import { createI18n as Ce, i18nTComponent as Le } from "@kong-ui-public/i18n";
6
6
  import fe from "axios";
7
7
  import "@kong/kongponents";
@@ -273,77 +273,73 @@ function ot(e, t, r, n = {
273
273
  searchKeys: ["id"]
274
274
  }) {
275
275
  r || (r = "1000");
276
- const { axiosInstance: a } = le(e.axiosRequestConfig), { i18n: { t: i } } = ne(), { debounce: o } = Ze(), s = o(async (h) => {
277
- await oe(h);
278
- }, 200), u = w(!1), l = w(""), f = w(""), c = w([]), p = w([]), d = w(void 0), k = y(() => {
279
- const h = `${e.apiBaseUrl}${g(t)}`;
280
- return e.app === "konnect" ? h.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? h.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : h;
281
- }), { isValidUuid: q } = Se(), ie = async () => {
276
+ const { axiosInstance: a } = le(e.axiosRequestConfig), { i18n: { t: i } } = ne(), { debounce: o } = Ze(), s = o(async (y) => {
277
+ await oe(y);
278
+ }, 200), u = w(!1), l = w(""), p = w(""), c = w([]), f = w([]), d = w(void 0), k = m(() => {
279
+ const y = `${e.apiBaseUrl}${g(t)}`;
280
+ return e.app === "konnect" ? y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : y;
281
+ }), { isValidUuid: O } = Se(), ie = async () => {
282
282
  try {
283
283
  u.value = !0;
284
- const { data: h } = await a.get(`${k.value}?size=${r}`);
285
- h != null && h.next || (d.value = n.fetchedItemsKey in h ? h[n.fetchedItemsKey] : []), p.value = n.fetchedItemsKey in h ? h[n.fetchedItemsKey] : [], c.value = p.value;
284
+ const { data: y } = await a.get(`${k.value}?size=${r}`);
285
+ y != null && y.next || (d.value = n.fetchedItemsKey in y ? y[n.fetchedItemsKey] : []), f.value = n.fetchedItemsKey in y ? y[n.fetchedItemsKey] : [], c.value = f.value;
286
286
  } catch {
287
287
  c.value = [], l.value = i("debouncedFilter.errors.fetch");
288
288
  } finally {
289
289
  u.value = !1;
290
290
  }
291
- }, U = w(""), oe = async (h) => {
291
+ }, U = w(""), oe = async (y) => {
292
292
  var H, Q, I;
293
- if (U.value !== h) {
294
- if (h === "") {
295
- c.value = p.value;
293
+ if (U.value !== y) {
294
+ if (U.value = y ?? "", !y) {
295
+ c.value = f.value;
296
296
  return;
297
- } else
298
- U.value = h || "";
297
+ }
299
298
  if (d.value === void 0)
300
299
  try {
301
- if (u.value = !0, l.value = "", f.value = "", e.app === "konnect") {
302
- let m = k.value + "";
303
- h && (m += `/${h}`);
304
- const { data: S } = await a.get(`${m}?size=${r}`);
300
+ if (u.value = !0, l.value = "", p.value = "", e.app === "konnect") {
301
+ const v = `${k.value}/${y}`, { data: S } = await a.get(`${v}?size=${r}`);
305
302
  n.fetchedItemsKey in S ? c.value = S[n.fetchedItemsKey] : S != null && S[n.exactMatchKey ?? "id"] ? c.value = [S] : c.value = [];
306
- } else if (h) {
307
- const m = [];
308
- q(h) && n.searchKeys.includes("id") ? m.push((async () => {
309
- const { data: x } = await a.get(`${k.value}/${h}`);
303
+ } else {
304
+ const v = [];
305
+ O(y) && n.searchKeys.includes("id") ? v.push((async () => {
306
+ const { data: x } = await a.get(`${k.value}/${y}`);
310
307
  return [x[n.fetchedItemsKey] ?? x];
311
- })()) : m.push(
308
+ })()) : v.push(
312
309
  ...n.searchKeys.filter((x) => x !== "id").map(async (x) => {
313
- const { data: E } = await a.get(`${k.value}?${x}=${h}`);
310
+ const { data: E } = await a.get(`${k.value}?${x}=${y}`);
314
311
  return E[n.fetchedItemsKey];
315
312
  })
316
313
  );
317
- const S = await Promise.all(m), O = /* @__PURE__ */ new Set();
314
+ const S = await Promise.all(v), j = /* @__PURE__ */ new Set();
318
315
  c.value = [], (H = S == null ? void 0 : S.forEach) == null || H.call(S, (x) => {
319
316
  var E;
320
317
  (E = x == null ? void 0 : x.forEach) == null || E.call(x, (L) => {
321
- O.has(L.id) || (O.add(L.id), c.value.push(L));
318
+ j.has(L.id) || (j.add(L.id), c.value.push(L));
322
319
  });
323
320
  });
324
- } else
325
- c.value = p.value;
326
- } catch (m) {
327
- ((Q = m == null ? void 0 : m.response) == null ? void 0 : Q.status) === 404 ? f.value = i("debouncedFilter.errors.invalid") : (c.value = [], l.value = i("debouncedFilter.errors.fetch"));
321
+ }
322
+ } catch (v) {
323
+ ((Q = v == null ? void 0 : v.response) == null ? void 0 : Q.status) === 404 ? p.value = i("debouncedFilter.errors.invalid") : (c.value = [], l.value = i("debouncedFilter.errors.fetch"));
328
324
  } finally {
329
325
  u.value = !1;
330
326
  }
331
327
  else
332
- u.value = !0, f.value = "", h ? (c.value = (I = d.value) == null ? void 0 : I.filter((m) => {
328
+ u.value = !0, p.value = "", c.value = (I = d.value) == null ? void 0 : I.filter((v) => {
333
329
  var S;
334
- let O = !1;
330
+ let j = !1;
335
331
  for (const x of n.searchKeys) {
336
- const E = typeof m[x] == "string" ? (S = m[x]) == null ? void 0 : S.toLowerCase() : m[x];
337
- E != null && E.includes(h.toLowerCase()) && (O = !0);
332
+ const E = typeof v[x] == "string" ? (S = v[x]) == null ? void 0 : S.toLowerCase() : v[x];
333
+ E != null && E.includes(y.toLowerCase()) && (j = !0);
338
334
  }
339
- return O;
340
- }), (!c.value || !c.value.length) && (f.value = i("debouncedFilter.errors.invalid"))) : c.value = d.value, u.value = !1;
335
+ return j;
336
+ }), (!c.value || !c.value.length) && (p.value = i("debouncedFilter.errors.invalid")), u.value = !1;
341
337
  }
342
338
  };
343
339
  return {
344
340
  loading: u,
345
341
  error: l,
346
- validationError: f,
342
+ validationError: p,
347
343
  results: c,
348
344
  allRecords: d,
349
345
  loadItems: ie,
@@ -351,7 +347,7 @@ function ot(e, t, r, n = {
351
347
  };
352
348
  }
353
349
  function st(e, t) {
354
- const r = g(t), n = y(
350
+ const r = g(t), n = m(
355
351
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r)
356
352
  );
357
353
  return n.value.search = "", (a) => `${n.value.href}/${a}`;
@@ -398,18 +394,18 @@ function ut(e) {
398
394
  }
399
395
  }
400
396
  function Ne(e, t) {
401
- const r = w(g(e)), n = w(g(t)), a = y(
397
+ const r = w(g(e)), n = w(g(t)), a = m(
402
398
  () => !!(r.value.app === "konnect" || r.value.isExactMatch)
403
- ), i = y(
399
+ ), i = m(
404
400
  () => n.value.startsWith("/") ? new URL(`${window.location.origin}${n.value}`) : new URL(n.value)
405
401
  );
406
402
  return (o) => {
407
- const { page: s, pageSize: u, offset: l, sortColumnKey: f, sortColumnOrder: c, query: p } = o;
403
+ const { page: s, pageSize: u, offset: l, sortColumnKey: p, sortColumnOrder: c, query: f } = o;
408
404
  try {
409
405
  let d = new URL(i.value.href);
410
- return a.value && p ? (d.search = "", d = r.value.isExactMatch ? new URL(`${d.href}/${p}/`) : new URL(`${d.href}?filter[name][contains]=${p}`)) : (a.value || new URLSearchParams(p).forEach((k, q) => {
411
- d.searchParams.append(q, k);
412
- }), f && d.searchParams.append("sort_by", f), c === "desc" && d.searchParams.append("sort_desc", "1"), d.searchParams.append("size", String(u))), l && s !== 1 && d.searchParams.append("offset", String(l)), d.href;
406
+ return a.value && f ? (d.search = "", d = r.value.isExactMatch ? new URL(`${d.href}/${f}/`) : new URL(`${d.href}?filter[name][contains]=${f}`)) : (a.value || new URLSearchParams(f).forEach((k, O) => {
407
+ d.searchParams.append(O, k);
408
+ }), p && d.searchParams.append("sort_by", p), c === "desc" && d.searchParams.append("sort_desc", "1"), d.searchParams.append("size", String(u))), l && s !== 1 && d.searchParams.append("offset", String(l)), d.href;
413
409
  } catch (d) {
414
410
  return console.error("RouteList(fetcher)", d), n.value;
415
411
  }
@@ -425,12 +421,12 @@ function ct(e, t, r = "data") {
425
421
  o.value = { status: K.Loading };
426
422
  let l = i(s);
427
423
  l.includes("filter[name]") && (l = `${l}&page[size]=${s.pageSize}&page[number]=${s.page}`);
428
- const f = await a.get(l);
429
- if (f.status >= 400)
430
- throw f;
431
- const c = f.data, p = r && r.replace(/[^\w-_]/gi, "");
424
+ const p = await a.get(l);
425
+ if (p.status >= 400)
426
+ throw p;
427
+ const c = p.data, f = r && r.replace(/[^\w-_]/gi, "");
432
428
  let d;
433
- c[p] && Array.isArray(c[p]) ? d = c[p] : Array.isArray(c) ? d = c : d = Object.keys(c).length ? [c] : [];
429
+ c[f] && Array.isArray(c[f]) ? d = c[f] : Array.isArray(c) ? d = c : d = Object.keys(c).length ? [c] : [];
434
430
  const k = {
435
431
  data: d,
436
432
  total: d.length,
@@ -445,19 +441,19 @@ function ct(e, t, r = "data") {
445
441
  response: k
446
442
  }, k;
447
443
  } catch (l) {
448
- const f = {
444
+ const p = {
449
445
  data: [],
450
446
  total: 0
451
447
  };
452
448
  return s.query && (((u = l.response) == null ? void 0 : u.status) === 404 || l.status === 404) ? (o.value = {
453
449
  status: K.NoResults,
454
- response: f,
450
+ response: p,
455
451
  error: l.response ? l : { response: l }
456
- }, f) : (o.value = {
452
+ }, p) : (o.value = {
457
453
  status: K.Error,
458
- response: f,
454
+ response: p,
459
455
  error: l.response ? l : { response: l }
460
- }, f);
456
+ }, p);
461
457
  }
462
458
  }, fetcherState: o };
463
459
  }
@@ -528,7 +524,7 @@ function yt(e) {
528
524
  return ke(e, (a) => {
529
525
  a && !n.value && (t.value = a.offsetWidth, r.value = a.scrollWidth, n.value = !0);
530
526
  }), {
531
- isTruncated: y(() => t.value < r.value)
527
+ isTruncated: m(() => t.value < r.value)
532
528
  };
533
529
  }
534
530
  function bt() {
@@ -600,7 +596,7 @@ W.prototype.constructor = W;
600
596
  W.prototype.toString = function(e) {
601
597
  return this.name + ": " + Ee(this, e);
602
598
  };
603
- var z = W, $t = [
599
+ var M = W, $t = [
604
600
  "kind",
605
601
  "multi",
606
602
  "resolve",
@@ -611,12 +607,12 @@ var z = W, $t = [
611
607
  "representName",
612
608
  "defaultStyle",
613
609
  "styleAliases"
614
- ], Ot = [
610
+ ], jt = [
615
611
  "scalar",
616
612
  "sequence",
617
613
  "mapping"
618
614
  ];
619
- function jt(e) {
615
+ function qt(e) {
620
616
  var t = {};
621
617
  return e !== null && Object.keys(e).forEach(function(r) {
622
618
  e[r].forEach(function(n) {
@@ -624,18 +620,18 @@ function jt(e) {
624
620
  });
625
621
  }), t;
626
622
  }
627
- function qt(e, t) {
623
+ function Ot(e, t) {
628
624
  if (t = t || {}, Object.keys(t).forEach(function(r) {
629
625
  if ($t.indexOf(r) === -1)
630
- throw new z('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
626
+ throw new M('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
631
627
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
632
628
  return !0;
633
629
  }, this.construct = t.construct || function(r) {
634
630
  return r;
635
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = jt(t.styleAliases || null), Ot.indexOf(this.kind) === -1)
636
- throw new z('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
631
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = qt(t.styleAliases || null), jt.indexOf(this.kind) === -1)
632
+ throw new M('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
637
633
  }
638
- var C = qt;
634
+ var C = Ot;
639
635
  function we(e, t) {
640
636
  var r = [];
641
637
  return e[t].forEach(function(n) {
@@ -645,7 +641,7 @@ function we(e, t) {
645
641
  }), r[a] = n;
646
642
  }), r;
647
643
  }
648
- function Ft() {
644
+ function zt() {
649
645
  var e = {
650
646
  scalar: {},
651
647
  sequence: {},
@@ -677,27 +673,27 @@ se.prototype.extend = function(e) {
677
673
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
678
674
  e.implicit && (t = t.concat(e.implicit)), e.explicit && (r = r.concat(e.explicit));
679
675
  else
680
- throw new z("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
676
+ throw new M("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
681
677
  t.forEach(function(a) {
682
678
  if (!(a instanceof C))
683
- throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
679
+ throw new M("Specified list of YAML types (or a single Type object) contains a non-Type object.");
684
680
  if (a.loadKind && a.loadKind !== "scalar")
685
- throw new z("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
681
+ throw new M("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
686
682
  if (a.multi)
687
- throw new z("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
683
+ throw new M("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
688
684
  }), r.forEach(function(a) {
689
685
  if (!(a instanceof C))
690
- throw new z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
686
+ throw new M("Specified list of YAML types (or a single Type object) contains a non-Type object.");
691
687
  });
692
688
  var n = Object.create(se.prototype);
693
- return n.implicit = (this.implicit || []).concat(t), n.explicit = (this.explicit || []).concat(r), n.compiledImplicit = we(n, "implicit"), n.compiledExplicit = we(n, "explicit"), n.compiledTypeMap = Ft(n.compiledImplicit, n.compiledExplicit), n;
689
+ return n.implicit = (this.implicit || []).concat(t), n.explicit = (this.explicit || []).concat(r), n.compiledImplicit = we(n, "implicit"), n.compiledExplicit = we(n, "explicit"), n.compiledTypeMap = zt(n.compiledImplicit, n.compiledExplicit), n;
694
690
  };
695
- var zt = se, Mt = new C("tag:yaml.org,2002:str", {
691
+ var Mt = se, Bt = new C("tag:yaml.org,2002:str", {
696
692
  kind: "scalar",
697
693
  construct: function(e) {
698
694
  return e !== null ? e : "";
699
695
  }
700
- }), Bt = new C("tag:yaml.org,2002:seq", {
696
+ }), Ft = new C("tag:yaml.org,2002:seq", {
701
697
  kind: "sequence",
702
698
  construct: function(e) {
703
699
  return e !== null ? e : [];
@@ -707,10 +703,10 @@ var zt = se, Mt = new C("tag:yaml.org,2002:str", {
707
703
  construct: function(e) {
708
704
  return e !== null ? e : {};
709
705
  }
710
- }), Pt = new zt({
706
+ }), Pt = new Mt({
711
707
  explicit: [
712
- Mt,
713
708
  Bt,
709
+ Ft,
714
710
  Ut
715
711
  ]
716
712
  });
@@ -933,15 +929,15 @@ var ur = new C("tag:yaml.org,2002:float", {
933
929
  ]
934
930
  }), dr = cr, $e = new RegExp(
935
931
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
936
- ), Oe = new RegExp(
932
+ ), je = new RegExp(
937
933
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
938
934
  );
939
935
  function pr(e) {
940
- return e === null ? !1 : $e.exec(e) !== null || Oe.exec(e) !== null;
936
+ return e === null ? !1 : $e.exec(e) !== null || je.exec(e) !== null;
941
937
  }
942
938
  function fr(e) {
943
- var t, r, n, a, i, o, s, u = 0, l = null, f, c, p;
944
- if (t = $e.exec(e), t === null && (t = Oe.exec(e)), t === null) throw new Error("Date resolve error");
939
+ var t, r, n, a, i, o, s, u = 0, l = null, p, c, f;
940
+ if (t = $e.exec(e), t === null && (t = je.exec(e)), t === null) throw new Error("Date resolve error");
945
941
  if (r = +t[1], n = +t[2] - 1, a = +t[3], !t[4])
946
942
  return new Date(Date.UTC(r, n, a));
947
943
  if (i = +t[4], o = +t[5], s = +t[6], t[7]) {
@@ -949,7 +945,7 @@ function fr(e) {
949
945
  u += "0";
950
946
  u = +u;
951
947
  }
952
- return t[9] && (f = +t[10], c = +(t[11] || 0), l = (f * 60 + c) * 6e4, t[9] === "-" && (l = -l)), p = new Date(Date.UTC(r, n, a, i, o, s, u)), l && p.setTime(p.getTime() - l), p;
948
+ return t[9] && (p = +t[10], c = +(t[11] || 0), l = (p * 60 + c) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(r, n, a, i, o, s, u)), l && f.setTime(f.getTime() - l), f;
953
949
  }
954
950
  function gr(e) {
955
951
  return e.toISOString();
@@ -1045,7 +1041,7 @@ var Er = new C("tag:yaml.org,2002:pairs", {
1045
1041
  resolve: Tr,
1046
1042
  construct: Ar
1047
1043
  }), $r = Object.prototype.hasOwnProperty;
1048
- function Or(e) {
1044
+ function jr(e) {
1049
1045
  if (e === null) return !0;
1050
1046
  var t, r = e;
1051
1047
  for (t in r)
@@ -1053,13 +1049,13 @@ function Or(e) {
1053
1049
  return !1;
1054
1050
  return !0;
1055
1051
  }
1056
- function jr(e) {
1052
+ function qr(e) {
1057
1053
  return e !== null ? e : {};
1058
1054
  }
1059
- var qr = new C("tag:yaml.org,2002:set", {
1055
+ var Or = new C("tag:yaml.org,2002:set", {
1060
1056
  kind: "mapping",
1061
- resolve: Or,
1062
- construct: jr
1057
+ resolve: jr,
1058
+ construct: qr
1063
1059
  });
1064
1060
  dr.extend({
1065
1061
  implicit: [
@@ -1070,21 +1066,21 @@ dr.extend({
1070
1066
  kr,
1071
1067
  Nr,
1072
1068
  Er,
1073
- qr
1069
+ Or
1074
1070
  ]
1075
1071
  });
1076
1072
  function _e(e) {
1077
1073
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1078
1074
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1079
1075
  }
1080
- var Fr = new Array(256), zr = new Array(256);
1076
+ var zr = new Array(256), Mr = new Array(256);
1081
1077
  for (var D = 0; D < 256; D++)
1082
- Fr[D] = _e(D) ? 1 : 0, zr[D] = _e(D);
1083
- const Mr = [];
1078
+ zr[D] = _e(D) ? 1 : 0, Mr[D] = _e(D);
1079
+ const Br = [];
1084
1080
  for (let e = 0; e < 256; ++e)
1085
- Mr.push((e + 256).toString(16).slice(1));
1081
+ Br.push((e + 256).toString(16).slice(1));
1086
1082
  typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
1087
- const { useAxios: Kn, useDeleteUrlBuilder: Rn, useErrors: Br, useExternalLinkCreator: Vn, useFetchUrlBuilder: Hn, useFetcher: Yn, useDebouncedFilter: Zn, useStringHelpers: Wn, useHelpers: Qn, useGatewayFeatureSupported: Gn, useTruncationDetector: Jn, useValidators: Xn } = wt;
1083
+ const { useAxios: Kn, useDeleteUrlBuilder: Rn, useErrors: Fr, useExternalLinkCreator: Vn, useFetchUrlBuilder: Hn, useFetcher: Yn, useDebouncedFilter: Zn, useStringHelpers: Wn, useHelpers: Qn, useGatewayFeatureSupported: Gn, useTruncationDetector: Jn, useValidators: Xn } = wt;
1088
1084
  var $ = /* @__PURE__ */ ((e) => (e.Debug = "debug", e.Info = "info", e.Notice = "notice", e.Warn = "warn", e.Error = "error", e.Critical = "crit", e))($ || {});
1089
1085
  class Ur {
1090
1086
  constructor(t) {
@@ -1153,7 +1149,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1153
1149
  AsyncAbortException: de,
1154
1150
  AsyncScheduler: J,
1155
1151
  useAsyncScheduler: Pr
1156
- }, Symbol.toStringTag, { value: "Module" })), je = [
1152
+ }, Symbol.toStringTag, { value: "Module" })), qe = [
1157
1153
  $.Debug,
1158
1154
  $.Info,
1159
1155
  $.Notice,
@@ -1162,9 +1158,9 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1162
1158
  $.Critical
1163
1159
  ], Kr = (e) => {
1164
1160
  const { i18n: t } = re();
1165
- return y(() => {
1161
+ return m(() => {
1166
1162
  const r = Z(e == null ? void 0 : e.disabled) ?? [];
1167
- return je.map((n) => ({
1163
+ return qe.map((n) => ({
1168
1164
  label: t.t(`log_level.${n}`),
1169
1165
  value: n,
1170
1166
  selected: (e == null ? void 0 : e.initialSelected) === n,
@@ -1173,7 +1169,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1173
1169
  });
1174
1170
  }, Rr = (e) => {
1175
1171
  const t = [$.Debug], { i18n: r } = re();
1176
- return y(() => {
1172
+ return m(() => {
1177
1173
  const n = Z(e);
1178
1174
  return {
1179
1175
  explanation: r.t(`modal.log_level_explanation.${n}`),
@@ -1182,7 +1178,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1182
1178
  });
1183
1179
  }, Vr = (e) => {
1184
1180
  const { i18n: t } = re();
1185
- return y(() => {
1181
+ return m(() => {
1186
1182
  const r = Z(e);
1187
1183
  if (isNaN(r) || r <= 0)
1188
1184
  return "";
@@ -1195,43 +1191,43 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1195
1191
  return o !== 0 && (n = `${o} ${t.t("modal.revert_to_default_after.hours")} ${n}`), n;
1196
1192
  });
1197
1193
  }, Hr = (e) => {
1198
- const t = e.requestExecutor ?? ((o) => o()), { getDataPlaneLogLevel: r, setDataPlaneLogLevel: n } = e, { getMessageFromError: a } = Br();
1194
+ const t = e.requestExecutor ?? ((o) => o()), { getDataPlaneLogLevel: r, setDataPlaneLogLevel: n } = e, { getMessageFromError: a } = Fr();
1199
1195
  return { checkDataPlaneLogLevel: (o, s) => {
1200
1196
  const u = w(Z(s == null ? void 0 : s.currentLogLevelHint) ?? null);
1201
1197
  u.value === null && t(async () => {
1202
1198
  u.value = await r(o);
1203
- }).catch((p) => {
1204
- p instanceof de || console.error("Failed to get data plane log level", p);
1205
- }), s != null && s.currentLogLevelHint && ke(() => Z(s.currentLogLevelHint), (p) => {
1206
- p && (u.value = p);
1199
+ }).catch((f) => {
1200
+ f instanceof de || console.error("Failed to get data plane log level", f);
1201
+ }), s != null && s.currentLogLevelHint && ke(() => Z(s.currentLogLevelHint), (f) => {
1202
+ f && (u.value = f);
1207
1203
  });
1208
- const l = w("pending"), f = w(null);
1204
+ const l = w("pending"), p = w(null);
1209
1205
  return {
1210
1206
  currentLogLevel: u,
1211
1207
  updateStatus: l,
1212
- updateErrorMessage: f,
1213
- updateLogLevel: async (p, d) => {
1214
- l.value = "loading", f.value = null;
1208
+ updateErrorMessage: p,
1209
+ updateLogLevel: async (f, d) => {
1210
+ l.value = "loading", p.value = null;
1215
1211
  try {
1216
- await t(() => n(o, p, d)), u.value = p, l.value = "success";
1212
+ await t(() => n(o, f, d)), u.value = f, l.value = "success";
1217
1213
  } catch (k) {
1218
- f.value = a(k), l.value = "error";
1214
+ p.value = a(k), l.value = "error";
1219
1215
  }
1220
1216
  }
1221
1217
  };
1222
1218
  } };
1223
1219
  }, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1224
1220
  __proto__: null,
1225
- supportedLevels: je,
1221
+ supportedLevels: qe,
1226
1222
  useDataPlaneLogLevelChecker: Hr,
1227
1223
  useFriendlyRevertTime: Vr,
1228
1224
  useLogLevelCandidateSelectItems: Kr,
1229
1225
  useLogLevelExplanation: Rr
1230
- }, Symbol.toStringTag, { value: "Module" })), F = {
1226
+ }, Symbol.toStringTag, { value: "Module" })), z = {
1231
1227
  useI18n: re,
1232
1228
  ...Yr,
1233
1229
  ...Dr
1234
- }, j = "24px", ae = (e, t) => {
1230
+ }, q = "24px", ae = (e, t) => {
1235
1231
  const r = e.__vccOpts || e;
1236
1232
  for (const [n, a] of t)
1237
1233
  r[n] = a;
@@ -1273,7 +1269,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1273
1269
  size: {
1274
1270
  type: [Number, String],
1275
1271
  required: !1,
1276
- default: j,
1272
+ default: q,
1277
1273
  // if setting to the imported const fails, just pass a number of 24 as the default.
1278
1274
  validator: (e) => {
1279
1275
  if (typeof e == "number" && e > 0)
@@ -1294,7 +1290,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1294
1290
  }
1295
1291
  },
1296
1292
  setup(e) {
1297
- const t = e, r = y(() => {
1293
+ const t = e, r = m(() => {
1298
1294
  if (typeof t.size == "number" && t.size > 0)
1299
1295
  return `${t.size}px`;
1300
1296
  if (typeof t.size == "string") {
@@ -1302,8 +1298,8 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1302
1298
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
1303
1299
  return `${i}px`;
1304
1300
  }
1305
- return j;
1306
- }), n = y(() => ({
1301
+ return q;
1302
+ }), n = m(() => ({
1307
1303
  boxSizing: "border-box",
1308
1304
  color: t.color,
1309
1305
  display: t.display,
@@ -1312,14 +1308,14 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1312
1308
  lineHeight: "0",
1313
1309
  width: r.value
1314
1310
  }));
1315
- return (a, i) => (v(), T(R(e.as), {
1311
+ return (a, i) => (h(), T(R(e.as), {
1316
1312
  "aria-hidden": e.decorative ? "true" : void 0,
1317
1313
  class: "kui-icon check-circle-icon",
1318
1314
  "data-testid": "kui-icon-wrapper-check-circle-icon",
1319
1315
  style: X(n.value)
1320
1316
  }, {
1321
1317
  default: A(() => [
1322
- (v(), N("svg", {
1318
+ (h(), N("svg", {
1323
1319
  "aria-hidden": e.decorative ? "true" : void 0,
1324
1320
  "data-testid": "kui-icon-svg-check-circle-icon",
1325
1321
  fill: "none",
@@ -1329,7 +1325,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1329
1325
  width: "100%",
1330
1326
  xmlns: "http://www.w3.org/2000/svg"
1331
1327
  }, [
1332
- e.title ? (v(), N("title", Qr, _(e.title), 1)) : B("", !0),
1328
+ e.title ? (h(), N("title", Qr, _(e.title), 1)) : F("", !0),
1333
1329
  Gr
1334
1330
  ], 8, Wr))
1335
1331
  ]),
@@ -1373,7 +1369,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1373
1369
  size: {
1374
1370
  type: [Number, String],
1375
1371
  required: !1,
1376
- default: j,
1372
+ default: q,
1377
1373
  // if setting to the imported const fails, just pass a number of 24 as the default.
1378
1374
  validator: (e) => {
1379
1375
  if (typeof e == "number" && e > 0)
@@ -1394,7 +1390,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1394
1390
  }
1395
1391
  },
1396
1392
  setup(e) {
1397
- const t = e, r = y(() => {
1393
+ const t = e, r = m(() => {
1398
1394
  if (typeof t.size == "number" && t.size > 0)
1399
1395
  return `${t.size}px`;
1400
1396
  if (typeof t.size == "string") {
@@ -1402,8 +1398,8 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1402
1398
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
1403
1399
  return `${i}px`;
1404
1400
  }
1405
- return j;
1406
- }), n = y(() => ({
1401
+ return q;
1402
+ }), n = m(() => ({
1407
1403
  boxSizing: "border-box",
1408
1404
  color: t.color,
1409
1405
  display: t.display,
@@ -1412,14 +1408,14 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1412
1408
  lineHeight: "0",
1413
1409
  width: r.value
1414
1410
  }));
1415
- return (a, i) => (v(), T(R(e.as), {
1411
+ return (a, i) => (h(), T(R(e.as), {
1416
1412
  "aria-hidden": e.decorative ? "true" : void 0,
1417
1413
  class: "kui-icon clear-icon",
1418
1414
  "data-testid": "kui-icon-wrapper-clear-icon",
1419
1415
  style: X(n.value)
1420
1416
  }, {
1421
1417
  default: A(() => [
1422
- (v(), N("svg", {
1418
+ (h(), N("svg", {
1423
1419
  "aria-hidden": e.decorative ? "true" : void 0,
1424
1420
  "data-testid": "kui-icon-svg-clear-icon",
1425
1421
  fill: "none",
@@ -1429,7 +1425,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1429
1425
  width: "100%",
1430
1426
  xmlns: "http://www.w3.org/2000/svg"
1431
1427
  }, [
1432
- e.title ? (v(), N("title", rn, _(e.title), 1)) : B("", !0),
1428
+ e.title ? (h(), N("title", rn, _(e.title), 1)) : F("", !0),
1433
1429
  nn
1434
1430
  ], 8, tn))
1435
1431
  ]),
@@ -1473,7 +1469,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1473
1469
  size: {
1474
1470
  type: [Number, String],
1475
1471
  required: !1,
1476
- default: j,
1472
+ default: q,
1477
1473
  // if setting to the imported const fails, just pass a number of 24 as the default.
1478
1474
  validator: (e) => {
1479
1475
  if (typeof e == "number" && e > 0)
@@ -1494,7 +1490,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1494
1490
  }
1495
1491
  },
1496
1492
  setup(e) {
1497
- const t = e, r = y(() => {
1493
+ const t = e, r = m(() => {
1498
1494
  if (typeof t.size == "number" && t.size > 0)
1499
1495
  return `${t.size}px`;
1500
1496
  if (typeof t.size == "string") {
@@ -1502,8 +1498,8 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1502
1498
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
1503
1499
  return `${i}px`;
1504
1500
  }
1505
- return j;
1506
- }), n = y(() => ({
1501
+ return q;
1502
+ }), n = m(() => ({
1507
1503
  boxSizing: "border-box",
1508
1504
  color: t.color,
1509
1505
  display: t.display,
@@ -1512,14 +1508,14 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1512
1508
  lineHeight: "0",
1513
1509
  width: r.value
1514
1510
  }));
1515
- return (a, i) => (v(), T(R(e.as), {
1511
+ return (a, i) => (h(), T(R(e.as), {
1516
1512
  "aria-hidden": e.decorative ? "true" : void 0,
1517
1513
  class: "kui-icon equal-icon",
1518
1514
  "data-testid": "kui-icon-wrapper-equal-icon",
1519
1515
  style: X(n.value)
1520
1516
  }, {
1521
1517
  default: A(() => [
1522
- (v(), N("svg", {
1518
+ (h(), N("svg", {
1523
1519
  "aria-hidden": e.decorative ? "true" : void 0,
1524
1520
  "data-testid": "kui-icon-svg-equal-icon",
1525
1521
  fill: "none",
@@ -1529,21 +1525,21 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1529
1525
  width: "100%",
1530
1526
  xmlns: "http://www.w3.org/2000/svg"
1531
1527
  }, [
1532
- e.title ? (v(), N("title", un, _(e.title), 1)) : B("", !0),
1528
+ e.title ? (h(), N("title", un, _(e.title), 1)) : F("", !0),
1533
1529
  cn
1534
1530
  ], 8, ln))
1535
1531
  ]),
1536
1532
  _: 1
1537
1533
  }, 8, ["aria-hidden", "style"]));
1538
1534
  }
1539
- }), pn = /* @__PURE__ */ ae(dn, [["__scopeId", "data-v-68742da1"]]), qe = (e) => (ee("data-v-ae02d9ee"), e = e(), te(), e), fn = ["aria-hidden"], gn = {
1535
+ }), pn = /* @__PURE__ */ ae(dn, [["__scopeId", "data-v-68742da1"]]), Oe = (e) => (ee("data-v-ae02d9ee"), e = e(), te(), e), fn = ["aria-hidden"], gn = {
1540
1536
  key: 0,
1541
1537
  "data-testid": "kui-icon-svg-title"
1542
- }, hn = /* @__PURE__ */ qe(() => /* @__PURE__ */ b("path", {
1538
+ }, hn = /* @__PURE__ */ Oe(() => /* @__PURE__ */ b("path", {
1543
1539
  d: "M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",
1544
1540
  fill: "currentColor",
1545
1541
  "transform-origin": "center"
1546
- }, null, -1)), vn = /* @__PURE__ */ qe(() => /* @__PURE__ */ b("animateTransform", {
1542
+ }, null, -1)), vn = /* @__PURE__ */ Oe(() => /* @__PURE__ */ b("animateTransform", {
1547
1543
  attributeName: "transform",
1548
1544
  attributeType: "XML",
1549
1545
  dur: "1.5s",
@@ -1582,7 +1578,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1582
1578
  size: {
1583
1579
  type: [Number, String],
1584
1580
  required: !1,
1585
- default: j,
1581
+ default: q,
1586
1582
  // if setting to the imported const fails, just pass a number of 24 as the default.
1587
1583
  validator: (e) => {
1588
1584
  if (typeof e == "number" && e > 0)
@@ -1603,7 +1599,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1603
1599
  }
1604
1600
  },
1605
1601
  setup(e) {
1606
- const t = e, r = y(() => {
1602
+ const t = e, r = m(() => {
1607
1603
  if (typeof t.size == "number" && t.size > 0)
1608
1604
  return `${t.size}px`;
1609
1605
  if (typeof t.size == "string") {
@@ -1611,8 +1607,8 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1611
1607
  if (i && !isNaN(i) && Number.isInteger(i) && i > 0)
1612
1608
  return `${i}px`;
1613
1609
  }
1614
- return j;
1615
- }), n = y(() => ({
1610
+ return q;
1611
+ }), n = m(() => ({
1616
1612
  boxSizing: "border-box",
1617
1613
  color: t.color,
1618
1614
  display: t.display,
@@ -1621,14 +1617,14 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1621
1617
  lineHeight: "0",
1622
1618
  width: r.value
1623
1619
  }));
1624
- return (a, i) => (v(), T(R(e.as), {
1620
+ return (a, i) => (h(), T(R(e.as), {
1625
1621
  "aria-hidden": e.decorative ? "true" : void 0,
1626
1622
  class: "kui-icon progress-icon",
1627
1623
  "data-testid": "kui-icon-wrapper-progress-icon",
1628
1624
  style: X(n.value)
1629
1625
  }, {
1630
1626
  default: A(() => [
1631
- (v(), N("svg", {
1627
+ (h(), N("svg", {
1632
1628
  "aria-hidden": e.decorative ? "true" : void 0,
1633
1629
  "data-testid": "kui-icon-svg-progress-icon",
1634
1630
  fill: "none",
@@ -1638,7 +1634,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1638
1634
  width: "100%",
1639
1635
  xmlns: "http://www.w3.org/2000/svg"
1640
1636
  }, [
1641
- e.title ? (v(), N("title", gn, _(e.title), 1)) : B("", !0),
1637
+ e.title ? (h(), N("title", gn, _(e.title), 1)) : F("", !0),
1642
1638
  hn,
1643
1639
  vn
1644
1640
  ], 8, fn))
@@ -1657,7 +1653,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1657
1653
  logLevelHint: {}
1658
1654
  },
1659
1655
  setup(e, { expose: t }) {
1660
- const r = e, { i18n: n } = F.useI18n();
1656
+ const r = e, { i18n: n } = z.useI18n();
1661
1657
  let a = w("not_supported"), i = w("not_supported"), o = w(null), s = async () => {
1662
1658
  };
1663
1659
  r.hasDllCapability && ({
@@ -1670,7 +1666,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1670
1666
  })), t({
1671
1667
  updateLogLevel: s
1672
1668
  });
1673
- const u = y(() => {
1669
+ const u = m(() => {
1674
1670
  switch (i.value) {
1675
1671
  case "success":
1676
1672
  return "success";
@@ -1682,7 +1678,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1682
1678
  default:
1683
1679
  return "neutral";
1684
1680
  }
1685
- }), l = y(() => {
1681
+ }), l = m(() => {
1686
1682
  switch (i.value) {
1687
1683
  case "success":
1688
1684
  return n.t("modal.dp_list.status.succeed");
@@ -1695,7 +1691,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1695
1691
  default:
1696
1692
  return n.t("modal.dp_list.status.not_supported");
1697
1693
  }
1698
- }), f = y(() => {
1694
+ }), p = m(() => {
1699
1695
  switch (i.value) {
1700
1696
  case "success":
1701
1697
  return Xr;
@@ -1708,24 +1704,24 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1708
1704
  return pn;
1709
1705
  }
1710
1706
  });
1711
- return (c, p) => {
1712
- const d = M("KSkeleton"), k = M("KBadge"), q = M("KTooltip");
1713
- return v(), N("tr", null, [
1707
+ return (c, f) => {
1708
+ const d = B("KSkeleton"), k = B("KBadge"), O = B("KTooltip");
1709
+ return h(), N("tr", null, [
1714
1710
  b("td", null, _(c.hostname), 1),
1715
1711
  b("td", bn, [
1716
- g(a) === "not_supported" ? (v(), N("span", wn, _(g(n).t("log_level.not_applicable")), 1)) : g(a) ? (v(), N(xe, { key: 2 }, [
1712
+ g(a) === "not_supported" ? (h(), N("span", wn, _(g(n).t("log_level.not_applicable")), 1)) : g(a) ? (h(), N(xe, { key: 2 }, [
1717
1713
  b("span", _n, _(g(n).t(`log_level.${g(a)}`)), 1),
1718
- g(a) !== c.targetLogLevel ? (v(), N("span", kn, [
1714
+ g(a) !== c.targetLogLevel ? (h(), N("span", kn, [
1719
1715
  Y(" → "),
1720
1716
  b("span", xn, _(g(n).t(`log_level.${c.targetLogLevel}`)), 1)
1721
- ])) : B("", !0)
1722
- ], 64)) : (v(), T(d, {
1717
+ ])) : F("", !0)
1718
+ ], 64)) : (h(), T(d, {
1723
1719
  key: 1,
1724
1720
  type: "spinner"
1725
1721
  }))
1726
1722
  ]),
1727
1723
  b("td", Cn, [
1728
- g(o) ? (v(), T(q, {
1724
+ g(o) ? (h(), T(O, {
1729
1725
  key: 0,
1730
1726
  text: g(o)
1731
1727
  }, {
@@ -1735,7 +1731,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1735
1731
  class: "badge-cell"
1736
1732
  }, {
1737
1733
  icon: A(() => [
1738
- (v(), T(R(f.value)))
1734
+ (h(), T(R(p.value)))
1739
1735
  ]),
1740
1736
  default: A(() => [
1741
1737
  Y(" " + _(l.value), 1)
@@ -1744,13 +1740,13 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1744
1740
  }, 8, ["appearance"])
1745
1741
  ]),
1746
1742
  _: 1
1747
- }, 8, ["text"])) : (v(), T(k, {
1743
+ }, 8, ["text"])) : (h(), T(k, {
1748
1744
  key: 1,
1749
1745
  appearance: u.value,
1750
1746
  class: "badge-cell"
1751
1747
  }, {
1752
1748
  icon: A(() => [
1753
- (v(), T(R(f.value)))
1749
+ (h(), T(R(p.value)))
1754
1750
  ]),
1755
1751
  default: A(() => [
1756
1752
  Y(" " + _(l.value), 1)
@@ -1761,22 +1757,22 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1761
1757
  ]);
1762
1758
  };
1763
1759
  }
1764
- }), Fe = (e, t) => {
1760
+ }), ze = (e, t) => {
1765
1761
  const r = e.__vccOpts || e;
1766
1762
  for (const [n, a] of t)
1767
1763
  r[n] = a;
1768
1764
  return r;
1769
- }, Sn = /* @__PURE__ */ Fe(Ln, [["__scopeId", "data-v-ac7205dd"]]), Nn = { class: "explanation-wrapper" }, In = {
1765
+ }, Sn = /* @__PURE__ */ ze(Ln, [["__scopeId", "data-v-ac7205dd"]]), Nn = { class: "explanation-wrapper" }, In = {
1770
1766
  key: 0,
1771
1767
  class: "warning-message",
1772
1768
  "data-testid": "log-level-warning-message"
1773
1769
  }, Tn = { class: "revert-after-wrapper" }, An = { class: "time" }, En = { class: "seconds" }, $n = {
1774
1770
  class: "formatted-time",
1775
1771
  "data-testid": "log-level-timeout-formatted"
1776
- }, On = {
1772
+ }, jn = {
1777
1773
  class: "data-plane-node-list",
1778
1774
  "data-testid": "data-plane-node-list"
1779
- }, jn = { style: { width: "40%" } }, qn = { style: { width: "40%" } }, Fn = /* @__PURE__ */ V({
1775
+ }, qn = { style: { width: "40%" } }, On = { style: { width: "40%" } }, zn = /* @__PURE__ */ V({
1780
1776
  name: "ChangeLogLevelModal",
1781
1777
  __name: "ChangeLogLevelModal",
1782
1778
  props: /* @__PURE__ */ Pe({
@@ -1789,36 +1785,36 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1789
1785
  }),
1790
1786
  emits: ["update:visible"],
1791
1787
  setup(e) {
1792
- const t = e, r = De(e, "visible"), n = $.Notice, { i18n: a } = F.useI18n(), i = w("edit"), o = w(n), s = w("60"), u = y(() => Math.floor(Number(s.value))), l = y(() => t.instanceList.filter((I) => I.hasDLLCapability !== !1)), f = y(() => {
1788
+ const t = e, r = De(e, "visible"), n = $.Notice, { i18n: a } = z.useI18n(), i = w("edit"), o = w(n), s = w("60"), u = m(() => Math.floor(Number(s.value))), l = m(() => t.instanceList.filter((I) => I.hasDLLCapability !== !1)), p = m(() => {
1793
1789
  const I = l.value.length === 1 ? a.t("modal.change_log_level.summary_with_name", { name: l.value[0].hostname }) : a.t("modal.change_log_level.summary_with_number", { number: `${l.value.length}` });
1794
1790
  return a.t("modal.change_log_level.title", { summary: I });
1795
- }), c = y(() => i.value === "submitting" || isNaN(u.value) || u.value <= 0 || l.value.length === 0), p = F.useLogLevelCandidateSelectItems({
1791
+ }), c = m(() => i.value === "submitting" || isNaN(u.value) || u.value <= 0 || l.value.length === 0), f = z.useLogLevelCandidateSelectItems({
1796
1792
  initialSelected: n
1797
- }), d = F.useLogLevelExplanation(o), k = F.useFriendlyRevertTime(u), q = F.useAsyncScheduler(
1793
+ }), d = z.useLogLevelExplanation(o), k = z.useFriendlyRevertTime(u), O = z.useAsyncScheduler(
1798
1794
  t.requests.scheduler === void 0 ? { maxConcurrentAsyncs: 10 } : t.requests.scheduler
1799
- ), { checkDataPlaneLogLevel: ie } = F.useDataPlaneLogLevelChecker({
1795
+ ), { checkDataPlaneLogLevel: ie } = z.useDataPlaneLogLevelChecker({
1800
1796
  getDataPlaneLogLevel: t.requests.getDataPlaneLogLevel,
1801
1797
  setDataPlaneLogLevel: t.requests.setDataPlaneLogLevel,
1802
- requestExecutor: q.schedule
1803
- }), U = /* @__PURE__ */ new Map(), oe = (I, m) => {
1804
- m === null ? U.delete(I) : U.set(I, m);
1805
- }, h = async () => {
1798
+ requestExecutor: O.schedule
1799
+ }), U = /* @__PURE__ */ new Map(), oe = (I, v) => {
1800
+ v === null ? U.delete(I) : U.set(I, v);
1801
+ }, y = async () => {
1806
1802
  if (i.value !== "edit") {
1807
1803
  H();
1808
1804
  return;
1809
1805
  }
1810
1806
  i.value = "submitting";
1811
- const I = Array.from(U.values()).map((m) => m.updateLogLevel(o.value, u.value));
1807
+ const I = Array.from(U.values()).map((v) => v.updateLogLevel(o.value, u.value));
1812
1808
  try {
1813
1809
  await Promise.all(I);
1814
- } catch (m) {
1815
- console.error("Failed to update log level", m);
1810
+ } catch (v) {
1811
+ console.error("Failed to update log level", v);
1816
1812
  } finally {
1817
1813
  i.value = "submitted";
1818
1814
  }
1819
1815
  }, H = () => {
1820
1816
  r.value = !1, s.value = "60", i.value = "edit", o.value = n;
1821
- }, Q = y(() => {
1817
+ }, Q = m(() => {
1822
1818
  switch (i.value) {
1823
1819
  case "submitting":
1824
1820
  return a.t("modal.action_button.submitting");
@@ -1828,42 +1824,42 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1828
1824
  return a.t("modal.action_button.confirm");
1829
1825
  }
1830
1826
  });
1831
- return (I, m) => {
1832
- const S = M("KSelect"), O = M("KLabel"), x = M("KInput"), E = M("KModal");
1833
- return v(), T(E, {
1827
+ return (I, v) => {
1828
+ const S = B("KSelect"), j = B("KLabel"), x = B("KInput"), E = B("KModal");
1829
+ return h(), T(E, {
1834
1830
  "action-button-disabled": c.value,
1835
1831
  "action-button-text": Q.value,
1836
1832
  "data-testid": "change-log-level-modal",
1837
1833
  "hide-cancel-button": !0,
1838
1834
  "hide-close-icon": i.value === "submitting",
1839
1835
  "max-width": "640px",
1840
- title: f.value,
1836
+ title: p.value,
1841
1837
  visible: r.value,
1842
1838
  onCancel: H,
1843
- onProceed: h
1839
+ onProceed: y
1844
1840
  }, {
1845
1841
  default: A(() => [
1846
- i.value === "edit" ? (v(), T(S, {
1842
+ i.value === "edit" ? (h(), T(S, {
1847
1843
  key: 0,
1848
1844
  modelValue: o.value,
1849
- "onUpdate:modelValue": m[0] || (m[0] = (L) => o.value = L),
1845
+ "onUpdate:modelValue": v[0] || (v[0] = (L) => o.value = L),
1850
1846
  class: "log-level-select",
1851
1847
  "data-testid": "log-level-select",
1852
- items: g(p),
1848
+ items: g(f),
1853
1849
  label: g(a).t("modal.select_log_level_title")
1854
- }, null, 8, ["modelValue", "items", "label"])) : B("", !0),
1850
+ }, null, 8, ["modelValue", "items", "label"])) : F("", !0),
1855
1851
  b("div", Nn, [
1856
- G(O, null, {
1852
+ G(j, null, {
1857
1853
  default: A(() => [
1858
1854
  Y(_(g(a).t(`log_level.${o.value}`)), 1)
1859
1855
  ]),
1860
1856
  _: 1
1861
1857
  }),
1862
1858
  b("div", null, _(g(d).explanation), 1),
1863
- g(d).warning ? (v(), N("div", In, _(g(d).warning), 1)) : B("", !0)
1859
+ g(d).warning ? (h(), N("div", In, _(g(d).warning), 1)) : F("", !0)
1864
1860
  ]),
1865
1861
  b("div", Tn, [
1866
- G(O, null, {
1862
+ G(j, null, {
1867
1863
  default: A(() => [
1868
1864
  Y(_(g(a).t("modal.revert_to_default_after.label")), 1)
1869
1865
  ]),
@@ -1872,7 +1868,7 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1872
1868
  b("div", An, [
1873
1869
  G(x, {
1874
1870
  modelValue: s.value,
1875
- "onUpdate:modelValue": m[1] || (m[1] = (L) => s.value = L),
1871
+ "onUpdate:modelValue": v[1] || (v[1] = (L) => s.value = L),
1876
1872
  class: "time-input",
1877
1873
  "data-testid": "log-level-timeout",
1878
1874
  disabled: i.value !== "edit",
@@ -1884,19 +1880,19 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1884
1880
  b("span", $n, _(g(k)), 1)
1885
1881
  ])
1886
1882
  ]),
1887
- b("table", On, [
1883
+ b("table", jn, [
1888
1884
  b("thead", null, [
1889
- b("th", jn, _(g(a).t("modal.dp_list.header.host")), 1),
1890
- b("th", qn, _(g(a).t("modal.dp_list.header.action")), 1),
1885
+ b("th", qn, _(g(a).t("modal.dp_list.header.host")), 1),
1886
+ b("th", On, _(g(a).t("modal.dp_list.header.action")), 1),
1891
1887
  b("th", null, _(g(a).t("modal.dp_list.header.status")), 1)
1892
1888
  ]),
1893
1889
  b("tbody", null, [
1894
- (v(!0), N(xe, null, Ke(t.instanceList, (L) => {
1890
+ (h(!0), N(xe, null, Ke(t.instanceList, (L) => {
1895
1891
  var pe;
1896
- return v(), T(Sn, {
1892
+ return h(), T(Sn, {
1897
1893
  key: L.id,
1898
1894
  ref_for: !0,
1899
- ref: (ze) => oe(L.id, ze),
1895
+ ref: (Me) => oe(L.id, Me),
1900
1896
  "check-log-level": g(ie),
1901
1897
  "data-plane-id": L.id,
1902
1898
  "data-testid": `data-plane-node-list-row-${L.id}`,
@@ -1913,9 +1909,9 @@ const Pr = (e) => e instanceof J ? e : e === null ? new J({ maxConcurrentAsyncs:
1913
1909
  }, 8, ["action-button-disabled", "action-button-text", "hide-close-icon", "title", "visible"]);
1914
1910
  };
1915
1911
  }
1916
- }), ea = /* @__PURE__ */ Fe(Fn, [["__scopeId", "data-v-983a59ac"]]);
1912
+ }), ea = /* @__PURE__ */ ze(zn, [["__scopeId", "data-v-983a59ac"]]);
1917
1913
  export {
1918
1914
  ea as ChangeLogLevelModal,
1919
1915
  $ as LogLevel,
1920
- F as composables
1916
+ z as composables
1921
1917
  };
@@ -1,5 +1,5 @@
1
- (function(y,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],n):(y=typeof globalThis<"u"?globalThis:y||self,n(y["kong-ui-public-entities-data-plane-nodes"]={},y.Vue,y["kong-ui-public-i18n"],y.axios))})(this,function(y,n,S,Q){"use strict";var Jr=Object.defineProperty;var Xr=(y,n,S)=>n in y?Jr(y,n,{enumerable:!0,configurable:!0,writable:!0,value:S}):y[n]=S;var D=(y,n,S)=>Xr(y,typeof n!="symbol"?n+"":n,S);const ye={modal:{action_button:{confirm:"Confirm",submitting:"Submitting...",ok:"OK"},change_log_level:{title:"Change Log Level ({summary})",summary_with_name:"Node {name}",summary_with_number:"{number} Nodes"},dp_list:{header:{host:"Host",action:"Action",status:"Status"},status:{failed:"Failure",loading:"Loading",pending:"Pending",succeed:"Succeed",not_supported:"Not Supported"}},log_level_disk_space_warning:"If left on for extended periods of time, can result in excess disk space consumption.",log_level_explanation:{debug:"Provides debug information about the plugin’s run loop and each individual plugin or other components.",info:"Provides messages that provide a record of the normal operation of the system.",notice:"Provides messages that provide a record of the normal operation of the system, but also alerts conditions that may require monitoring. Kong does not make a large difference between info and notice.",warn:"Is used to log any abnormal behavior that doesn’t result in dropped transactions but requires further investigation.",error:"Is used for logging errors that result in a request being dropped.",crit:"Is used when Kong is working under critical conditions and not working properly, thus affecting several clients."},revert_to_default_after:{label:"Revert to default after",hours:"hour",minutes:"min",seconds:"seconds"},select_log_level_title:"Select Log Level"},log_level:{debug:"Debug",info:"Info",notice:"Notice",warn:"Warn",error:"Error",crit:"Critical",not_applicable:"N/A"}};function O(){const e=S.createI18n("en-us",ye);return{i18n:e,i18nT:S.i18nTComponent(e)}}var A=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(A||{});function be(){return{getAxiosInstance:(e={})=>{try{const t=n.inject("get-axios-instance",void 0);return typeof t=="function"?t(e):Q.create({withCredentials:!0,timeout:3e4,...e})}catch(t){return console.warn("getAxiosInstance:",t.message||t),Q.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var t;return((t=e==null?void 0:e.response)==null?void 0:t.headers["x-datadog-trace-id"])||""}}}function we(){return{debounce:(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},t)}}}}function P(e={}){const{getAxiosInstance:t}=be();return{axiosInstance:t(e)}}const ke={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},_e={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},ve={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},Ce={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},xe={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},Se={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ne={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Le={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Ie={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},Ee={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},Te={global:ke,deleteModal:_e,baseForm:ve,baseTable:Ce,baseConfigCard:xe,filter:Se,debouncedFilter:Ne,errors:Le,validationErrors:Ie,toggleModal:Ee};function z(){const e=S.createI18n("en-us",Te);return{i18n:e,i18nT:S.i18nTComponent(e)}}function G(){const e=(r,o)=>(o==null?void 0:o[r])??void 0,t=(r,o)=>{if(r.length!==o.length)return!1;const a=new Set([...r,...o]);for(const i of a){const l=r.filter(u=>u===i).length,s=o.filter(u=>u===i).length;if(l!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,o,a)=>{if(a){if(Object.keys(r).length===Object.keys(o).length)for(const i in r)if(Array.isArray(r[i])&&Array.isArray(o[i])){if(t(r[i],o[i]))continue;return!1}else{if(r[i]===o[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,a)=>{let i=o[r]===void 0||o[r]===null?"":o[r],l=a[r]===void 0||a[r]===null?"":a[r];return Array.isArray(o[r])&&(i=o[r][0]),Array.isArray(a[r])&&(l=a[r][0]),i.localeCompare(l)},isValidUuid:r=>r?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r):!1}}function Be(e,t,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:a}=P(e.axiosRequestConfig),{i18n:{t:i}}=z(),{debounce:l}=we(),s=l(async m=>{await W(m)},200),u=n.ref(!1),c=n.ref(""),g=n.ref(""),d=n.ref([]),f=n.ref([]),p=n.ref(void 0),w=n.computed(()=>{const m=`${e.apiBaseUrl}${n.unref(t)}`;return e.app==="konnect"?m.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"?m.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""):m}),{isValidUuid:B}=G(),Z=async()=>{try{u.value=!0;const{data:m}=await a.get(`${w.value}?size=${r}`);m!=null&&m.next||(p.value=o.fetchedItemsKey in m?m[o.fetchedItemsKey]:[]),f.value=o.fetchedItemsKey in m?m[o.fetchedItemsKey]:[],d.value=f.value}catch{d.value=[],c.value=i("debouncedFilter.errors.fetch")}finally{u.value=!1}},V=n.ref(""),W=async m=>{var q,U,C;if(V.value!==m){if(m===""){d.value=f.value;return}else V.value=m||"";if(p.value===void 0)try{if(u.value=!0,c.value="",g.value="",e.app==="konnect"){let h=w.value+"";m&&(h+=`/${m}`);const{data:v}=await a.get(`${h}?size=${r}`);o.fetchedItemsKey in v?d.value=v[o.fetchedItemsKey]:v!=null&&v[o.exactMatchKey??"id"]?d.value=[v]:d.value=[]}else if(m){const h=[];B(m)&&o.searchKeys.includes("id")?h.push((async()=>{const{data:k}=await a.get(`${w.value}/${m}`);return[k[o.fetchedItemsKey]??k]})()):h.push(...o.searchKeys.filter(k=>k!=="id").map(async k=>{const{data:N}=await a.get(`${w.value}?${k}=${m}`);return N[o.fetchedItemsKey]}));const v=await Promise.all(h),E=new Set;d.value=[],(q=v==null?void 0:v.forEach)==null||q.call(v,k=>{var N;(N=k==null?void 0:k.forEach)==null||N.call(k,_=>{E.has(_.id)||(E.add(_.id),d.value.push(_))})})}else d.value=f.value}catch(h){((U=h==null?void 0:h.response)==null?void 0:U.status)===404?g.value=i("debouncedFilter.errors.invalid"):(d.value=[],c.value=i("debouncedFilter.errors.fetch"))}finally{u.value=!1}else u.value=!0,g.value="",m?(d.value=(C=p.value)==null?void 0:C.filter(h=>{var v;let E=!1;for(const k of o.searchKeys){const N=typeof h[k]=="string"?(v=h[k])==null?void 0:v.toLowerCase():h[k];N!=null&&N.includes(m.toLowerCase())&&(E=!0)}return E}),(!d.value||!d.value.length)&&(g.value=i("debouncedFilter.errors.invalid"))):d.value=p.value,u.value=!1}};return{loading:u,error:c,validationError:g,results:d,allRecords:p,loadItems:Z,debouncedQueryChange:s}}function Ae(e,t){const r=n.unref(t),o=n.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",a=>`${o.value.href}/${a}`}function $e(){const{i18n:{t:e}}=z();return{getMessageFromError:t=>{var r,o,a,i;if(!t)return e("errors.unexpected");if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((o=t==null?void 0:t.response)!=null&&o.data){if(t.response.data.detail)return t.response.data.detail;if((a=t.response.data.details)!=null&&a.length)return t.response.data.details.map(l=>{let s=e("errors.unexpected");return l.messages&&typeof l.messages=="object"&&l.messages.length&&(s=l.messages.join(", ")),l.field?`${l.field} - ${s}`:s}).join("; ");if(t.response.data.message){const{message:l}=t.response.data;return Array.isArray(l)?(i=l[0])!=null&&i.constraints?Object.values(l[0].constraints)[0]:l[0]:l}if(typeof t.response.data=="string")return t.response.data;if(typeof t.response.data=="object")return Object.keys(t.response.data).map(l=>`${l} ${t.response.data[l]}`).join(", ")}return t.message||e("errors.unexpected")}}}function Ve(e){const t=window.location.origin,r=t.endsWith("/")?t:`${t}/`;try{const o=e.join("/"),a=`${r}${o}`,i=e.some(l=>l.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a)&&!i&&new URL(a))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function J(e,t){const r=n.ref(n.unref(e)),o=n.ref(n.unref(t)),a=n.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),i=n.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return l=>{const{page:s,pageSize:u,offset:c,sortColumnKey:g,sortColumnOrder:d,query:f}=l;try{let p=new URL(i.value.href);return a.value&&f?(p.search="",p=r.value.isExactMatch?new URL(`${p.href}/${f}/`):new URL(`${p.href}?filter[name][contains]=${f}`)):(a.value||new URLSearchParams(f).forEach((w,B)=>{p.searchParams.append(B,w)}),g&&p.searchParams.append("sort_by",g),d==="desc"&&p.searchParams.append("sort_desc","1"),p.searchParams.append("size",String(u))),c&&s!==1&&p.searchParams.append("offset",String(c)),p.href}catch(p){return console.error("RouteList(fetcher)",p),o.value}}}function De(e,t,r="data"){const o=n.unref(t),{axiosInstance:a}=P(e.axiosRequestConfig),i=J(e,o),l=n.ref({status:A.Idle});return{fetcher:async s=>{var u;try{l.value={status:A.Loading};let c=i(s);c.includes("filter[name]")&&(c=`${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);const g=await a.get(c);if(g.status>=400)throw g;const d=g.data,f=r&&r.replace(/[^\w-_]/gi,"");let p;d[f]&&Array.isArray(d[f])?p=d[f]:Array.isArray(d)?p=d:p=Object.keys(d).length?[d]:[];const w={data:p,total:p.length,...d.offset?{pagination:{offset:d.offset}}:null};return l.value={status:A.Idle,response:w},w}catch(c){const g={data:[],total:0};return s.query&&(((u=c.response)==null?void 0:u.status)===404||c.status===404)?(l.value={status:A.NoResults,response:g,error:c.response?c:{response:c}},g):(l.value={status:A.Error,response:g,error:c.response?c:{response:c}},g)}},fetcherState:l}}function je(){const e=(r,o="_")=>r?r.split(o).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",t=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(t,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const X=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ee=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(X);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},te=e=>e==="*"||e==="x"||e==="X",re=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},qe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Oe=(e,t)=>{if(te(e)||te(t))return 0;const[r,o]=qe(re(e),re(t));return r>o?1:r<o?-1:0},ne=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const o=Oe(e[r]||"0",t[r]||"0");if(o!==0)return o}return 0},ze=(e,t)=>{const r=ee(e),o=ee(t),a=r.pop(),i=o.pop(),l=ne(r,o);return l!==0?l:a&&i?ne(a.split("."),i.split(".")):a||i?a?-1:1:0},oe=(e,t,r)=>{Fe(r);const o=ze(e,t);return ae[r].includes(o)},ae={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ie=Object.keys(ae),Fe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ie.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ie.join("|")}`)},Me=e=>typeof e=="string"&&/^[v\d]/.test(e)&&X.test(e);function Ue(e){const{gatewayInfo:t,supportedRange:r}=e;if(!t)return!0;const{edition:o,version:a}=t;if(!Me(a))return console.error("Invalid version"),!1;const i=r[o];if(!i)return!1;const[l,s]=i;return!(l&&oe(a,l,"<")||s&&oe(a,s,">"))}function Pe(e){const t=n.ref(0),r=n.ref(0),o=n.ref(!1);return n.watch(e,a=>{a&&!o.value&&(t.value=a.offsetWidth,r.value=a.scrollWidth,o.value=!0)}),{isTruncated:n.computed(()=>t.value<r.value)}}function Ke(){const{i18n:{t:e}}=z();return{utf8Name:t=>/^[\p{N}\p{L}.\-_~]*$/u.test(t)?"":e("validationErrors.utf8Name")}}const Re={useAxios:P,useDebouncedFilter:Be,useDeleteUrlBuilder:Ae,useErrors:$e,useExternalLinkCreator:Ve,useFetcher:De,useFetchUrlBuilder:J,useHelpers:G,useStringHelpers:je,useI18n:z,useGatewayFeatureSupported:Ue,useTruncationDetector:Pe,useValidators:Ke};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function le(e){return typeof e>"u"||e===null}function He(e){return typeof e=="object"&&e!==null}function Ye(e){return Array.isArray(e)?e:le(e)?[]:[e]}function Ze(e,t){var r,o,a,i;if(t)for(i=Object.keys(t),r=0,o=i.length;r<o;r+=1)a=i[r],e[a]=t[a];return e}function We(e,t){var r="",o;for(o=0;o<t;o+=1)r+=e;return r}function Qe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Ge=le,Je=He,Xe=Ye,et=We,tt=Qe,rt=Ze,K={isNothing:Ge,isObject:Je,toArray:Xe,repeat:et,isNegativeZero:tt,extend:rt};function se(e,t){var r="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
1
+ (function(y,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],n):(y=typeof globalThis<"u"?globalThis:y||self,n(y["kong-ui-public-entities-data-plane-nodes"]={},y.Vue,y["kong-ui-public-i18n"],y.axios))})(this,function(y,n,S,Q){"use strict";var Jr=Object.defineProperty;var Xr=(y,n,S)=>n in y?Jr(y,n,{enumerable:!0,configurable:!0,writable:!0,value:S}):y[n]=S;var D=(y,n,S)=>Xr(y,typeof n!="symbol"?n+"":n,S);const ye={modal:{action_button:{confirm:"Confirm",submitting:"Submitting...",ok:"OK"},change_log_level:{title:"Change Log Level ({summary})",summary_with_name:"Node {name}",summary_with_number:"{number} Nodes"},dp_list:{header:{host:"Host",action:"Action",status:"Status"},status:{failed:"Failure",loading:"Loading",pending:"Pending",succeed:"Succeed",not_supported:"Not Supported"}},log_level_disk_space_warning:"If left on for extended periods of time, can result in excess disk space consumption.",log_level_explanation:{debug:"Provides debug information about the plugin’s run loop and each individual plugin or other components.",info:"Provides messages that provide a record of the normal operation of the system.",notice:"Provides messages that provide a record of the normal operation of the system, but also alerts conditions that may require monitoring. Kong does not make a large difference between info and notice.",warn:"Is used to log any abnormal behavior that doesn’t result in dropped transactions but requires further investigation.",error:"Is used for logging errors that result in a request being dropped.",crit:"Is used when Kong is working under critical conditions and not working properly, thus affecting several clients."},revert_to_default_after:{label:"Revert to default after",hours:"hour",minutes:"min",seconds:"seconds"},select_log_level_title:"Select Log Level"},log_level:{debug:"Debug",info:"Info",notice:"Notice",warn:"Warn",error:"Error",crit:"Critical",not_applicable:"N/A"}};function z(){const e=S.createI18n("en-us",ye);return{i18n:e,i18nT:S.i18nTComponent(e)}}var A=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(A||{});function be(){return{getAxiosInstance:(e={})=>{try{const t=n.inject("get-axios-instance",void 0);return typeof t=="function"?t(e):Q.create({withCredentials:!0,timeout:3e4,...e})}catch(t){return console.warn("getAxiosInstance:",t.message||t),Q.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var t;return((t=e==null?void 0:e.response)==null?void 0:t.headers["x-datadog-trace-id"])||""}}}function we(){return{debounce:(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...o)},t)}}}}function P(e={}){const{getAxiosInstance:t}=be();return{axiosInstance:t(e)}}const ke={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},_e={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},ve={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},Ce={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},xe={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},Se={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ne={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Le={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Ie={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},Ee={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},Te={global:ke,deleteModal:_e,baseForm:ve,baseTable:Ce,baseConfigCard:xe,filter:Se,debouncedFilter:Ne,errors:Le,validationErrors:Ie,toggleModal:Ee};function O(){const e=S.createI18n("en-us",Te);return{i18n:e,i18nT:S.i18nTComponent(e)}}function G(){const e=(r,o)=>(o==null?void 0:o[r])??void 0,t=(r,o)=>{if(r.length!==o.length)return!1;const a=new Set([...r,...o]);for(const i of a){const l=r.filter(u=>u===i).length,s=o.filter(u=>u===i).length;if(l!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,o,a)=>{if(a){if(Object.keys(r).length===Object.keys(o).length)for(const i in r)if(Array.isArray(r[i])&&Array.isArray(o[i])){if(t(r[i],o[i]))continue;return!1}else{if(r[i]===o[i])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(o)}catch{return!1}},sortAlpha:r=>(o,a)=>{let i=o[r]===void 0||o[r]===null?"":o[r],l=a[r]===void 0||a[r]===null?"":a[r];return Array.isArray(o[r])&&(i=o[r][0]),Array.isArray(a[r])&&(l=a[r][0]),i.localeCompare(l)},isValidUuid:r=>r?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r):!1}}function Be(e,t,r,o={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="1000");const{axiosInstance:a}=P(e.axiosRequestConfig),{i18n:{t:i}}=O(),{debounce:l}=we(),s=l(async h=>{await W(h)},200),u=n.ref(!1),c=n.ref(""),f=n.ref(""),d=n.ref([]),g=n.ref([]),p=n.ref(void 0),w=n.computed(()=>{const h=`${e.apiBaseUrl}${n.unref(t)}`;return e.app==="konnect"?h.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"?h.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""):h}),{isValidUuid:B}=G(),Z=async()=>{try{u.value=!0;const{data:h}=await a.get(`${w.value}?size=${r}`);h!=null&&h.next||(p.value=o.fetchedItemsKey in h?h[o.fetchedItemsKey]:[]),g.value=o.fetchedItemsKey in h?h[o.fetchedItemsKey]:[],d.value=g.value}catch{d.value=[],c.value=i("debouncedFilter.errors.fetch")}finally{u.value=!1}},V=n.ref(""),W=async h=>{var q,U,C;if(V.value!==h){if(V.value=h??"",!h){d.value=g.value;return}if(p.value===void 0)try{if(u.value=!0,c.value="",f.value="",e.app==="konnect"){const m=`${w.value}/${h}`,{data:v}=await a.get(`${m}?size=${r}`);o.fetchedItemsKey in v?d.value=v[o.fetchedItemsKey]:v!=null&&v[o.exactMatchKey??"id"]?d.value=[v]:d.value=[]}else{const m=[];B(h)&&o.searchKeys.includes("id")?m.push((async()=>{const{data:k}=await a.get(`${w.value}/${h}`);return[k[o.fetchedItemsKey]??k]})()):m.push(...o.searchKeys.filter(k=>k!=="id").map(async k=>{const{data:N}=await a.get(`${w.value}?${k}=${h}`);return N[o.fetchedItemsKey]}));const v=await Promise.all(m),E=new Set;d.value=[],(q=v==null?void 0:v.forEach)==null||q.call(v,k=>{var N;(N=k==null?void 0:k.forEach)==null||N.call(k,_=>{E.has(_.id)||(E.add(_.id),d.value.push(_))})})}}catch(m){((U=m==null?void 0:m.response)==null?void 0:U.status)===404?f.value=i("debouncedFilter.errors.invalid"):(d.value=[],c.value=i("debouncedFilter.errors.fetch"))}finally{u.value=!1}else u.value=!0,f.value="",d.value=(C=p.value)==null?void 0:C.filter(m=>{var v;let E=!1;for(const k of o.searchKeys){const N=typeof m[k]=="string"?(v=m[k])==null?void 0:v.toLowerCase():m[k];N!=null&&N.includes(h.toLowerCase())&&(E=!0)}return E}),(!d.value||!d.value.length)&&(f.value=i("debouncedFilter.errors.invalid")),u.value=!1}};return{loading:u,error:c,validationError:f,results:d,allRecords:p,loadItems:Z,debouncedQueryChange:s}}function Ae(e,t){const r=n.unref(t),o=n.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return o.value.search="",a=>`${o.value.href}/${a}`}function $e(){const{i18n:{t:e}}=O();return{getMessageFromError:t=>{var r,o,a,i;if(!t)return e("errors.unexpected");if(((r=t==null?void 0:t.response)==null?void 0:r.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((o=t==null?void 0:t.response)!=null&&o.data){if(t.response.data.detail)return t.response.data.detail;if((a=t.response.data.details)!=null&&a.length)return t.response.data.details.map(l=>{let s=e("errors.unexpected");return l.messages&&typeof l.messages=="object"&&l.messages.length&&(s=l.messages.join(", ")),l.field?`${l.field} - ${s}`:s}).join("; ");if(t.response.data.message){const{message:l}=t.response.data;return Array.isArray(l)?(i=l[0])!=null&&i.constraints?Object.values(l[0].constraints)[0]:l[0]:l}if(typeof t.response.data=="string")return t.response.data;if(typeof t.response.data=="object")return Object.keys(t.response.data).map(l=>`${l} ${t.response.data[l]}`).join(", ")}return t.message||e("errors.unexpected")}}}function Ve(e){const t=window.location.origin,r=t.endsWith("/")?t:`${t}/`;try{const o=e.join("/"),a=`${r}${o}`,i=e.some(l=>l.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a)&&!i&&new URL(a))return`${r}${o}`;throw new Error("Invalid url")}catch(o){return console.warn("Failed to build valid URL:",o),""}}function J(e,t){const r=n.ref(n.unref(e)),o=n.ref(n.unref(t)),a=n.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),i=n.computed(()=>o.value.startsWith("/")?new URL(`${window.location.origin}${o.value}`):new URL(o.value));return l=>{const{page:s,pageSize:u,offset:c,sortColumnKey:f,sortColumnOrder:d,query:g}=l;try{let p=new URL(i.value.href);return a.value&&g?(p.search="",p=r.value.isExactMatch?new URL(`${p.href}/${g}/`):new URL(`${p.href}?filter[name][contains]=${g}`)):(a.value||new URLSearchParams(g).forEach((w,B)=>{p.searchParams.append(B,w)}),f&&p.searchParams.append("sort_by",f),d==="desc"&&p.searchParams.append("sort_desc","1"),p.searchParams.append("size",String(u))),c&&s!==1&&p.searchParams.append("offset",String(c)),p.href}catch(p){return console.error("RouteList(fetcher)",p),o.value}}}function De(e,t,r="data"){const o=n.unref(t),{axiosInstance:a}=P(e.axiosRequestConfig),i=J(e,o),l=n.ref({status:A.Idle});return{fetcher:async s=>{var u;try{l.value={status:A.Loading};let c=i(s);c.includes("filter[name]")&&(c=`${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);const f=await a.get(c);if(f.status>=400)throw f;const d=f.data,g=r&&r.replace(/[^\w-_]/gi,"");let p;d[g]&&Array.isArray(d[g])?p=d[g]:Array.isArray(d)?p=d:p=Object.keys(d).length?[d]:[];const w={data:p,total:p.length,...d.offset?{pagination:{offset:d.offset}}:null};return l.value={status:A.Idle,response:w},w}catch(c){const f={data:[],total:0};return s.query&&(((u=c.response)==null?void 0:u.status)===404||c.status===404)?(l.value={status:A.NoResults,response:f,error:c.response?c:{response:c}},f):(l.value={status:A.Error,response:f,error:c.response?c:{response:c}},f)}},fetcherState:l}}function je(){const e=(r,o="_")=>r?r.split(o).map(a=>a.toLowerCase()==="id"?a.toUpperCase():a.charAt(0).toUpperCase()+a.substring(1)).join(" "):"",t=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(t,o=>o.toUpperCase()):"",convertKeyToTitle:e}}const X=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ee=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(X);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},te=e=>e==="*"||e==="x"||e==="X",re=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},qe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],ze=(e,t)=>{if(te(e)||te(t))return 0;const[r,o]=qe(re(e),re(t));return r>o?1:r<o?-1:0},ne=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const o=ze(e[r]||"0",t[r]||"0");if(o!==0)return o}return 0},Oe=(e,t)=>{const r=ee(e),o=ee(t),a=r.pop(),i=o.pop(),l=ne(r,o);return l!==0?l:a&&i?ne(a.split("."),i.split(".")):a||i?a?-1:1:0},oe=(e,t,r)=>{Me(r);const o=Oe(e,t);return ae[r].includes(o)},ae={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ie=Object.keys(ae),Me=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ie.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ie.join("|")}`)},Fe=e=>typeof e=="string"&&/^[v\d]/.test(e)&&X.test(e);function Ue(e){const{gatewayInfo:t,supportedRange:r}=e;if(!t)return!0;const{edition:o,version:a}=t;if(!Fe(a))return console.error("Invalid version"),!1;const i=r[o];if(!i)return!1;const[l,s]=i;return!(l&&oe(a,l,"<")||s&&oe(a,s,">"))}function Pe(e){const t=n.ref(0),r=n.ref(0),o=n.ref(!1);return n.watch(e,a=>{a&&!o.value&&(t.value=a.offsetWidth,r.value=a.scrollWidth,o.value=!0)}),{isTruncated:n.computed(()=>t.value<r.value)}}function Ke(){const{i18n:{t:e}}=O();return{utf8Name:t=>/^[\p{N}\p{L}.\-_~]*$/u.test(t)?"":e("validationErrors.utf8Name")}}const Re={useAxios:P,useDebouncedFilter:Be,useDeleteUrlBuilder:Ae,useErrors:$e,useExternalLinkCreator:Ve,useFetcher:De,useFetchUrlBuilder:J,useHelpers:G,useStringHelpers:je,useI18n:O,useGatewayFeatureSupported:Ue,useTruncationDetector:Pe,useValidators:Ke};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function le(e){return typeof e>"u"||e===null}function He(e){return typeof e=="object"&&e!==null}function Ye(e){return Array.isArray(e)?e:le(e)?[]:[e]}function Ze(e,t){var r,o,a,i;if(t)for(i=Object.keys(t),r=0,o=i.length;r<o;r+=1)a=i[r],e[a]=t[a];return e}function We(e,t){var r="",o;for(o=0;o<t;o+=1)r+=e;return r}function Qe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Ge=le,Je=He,Xe=Ye,et=We,tt=Qe,rt=Ze,K={isNothing:Ge,isObject:Je,toArray:Xe,repeat:et,isNegativeZero:tt,extend:rt};function se(e,t){var r="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
2
2
 
3
- `+e.mark.snippet),o+" "+r):o}function j(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=se(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j.prototype.toString=function(e){return this.name+": "+se(this,e)};var T=j,nt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ot=["scalar","sequence","mapping"];function at(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(o){t[String(o)]=r})}),t}function it(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(nt.indexOf(r)===-1)throw new T('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=at(t.styleAliases||null),ot.indexOf(this.kind)===-1)throw new T('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var b=it;function ce(e,t){var r=[];return e[t].forEach(function(o){var a=r.length;r.forEach(function(i,l){i.tag===o.tag&&i.kind===o.kind&&i.multi===o.multi&&(a=l)}),r[a]=o}),r}function lt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function o(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(o);return e}function R(e){return this.extend(e)}R.prototype.extend=function(e){var t=[],r=[];if(e instanceof b)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new T("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(a){if(!(a instanceof b))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new T("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new T("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof b))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(R.prototype);return o.implicit=(this.implicit||[]).concat(t),o.explicit=(this.explicit||[]).concat(r),o.compiledImplicit=ce(o,"implicit"),o.compiledExplicit=ce(o,"explicit"),o.compiledTypeMap=lt(o.compiledImplicit,o.compiledExplicit),o};var st=R,ct=new b("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ut=new b("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),dt=new b("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),pt=new st({explicit:[ct,ut,dt]});function ft(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function gt(){return null}function mt(e){return e===null}var ht=new b("tag:yaml.org,2002:null",{kind:"scalar",resolve:ft,construct:gt,predicate:mt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yt(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function bt(e){return e==="true"||e==="True"||e==="TRUE"}function wt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var kt=new b("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yt,construct:bt,predicate:wt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function _t(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function vt(e){return 48<=e&&e<=55}function Ct(e){return 48<=e&&e<=57}function xt(e){if(e===null)return!1;var t=e.length,r=0,o=!1,a;if(!t)return!1;if(a=e[r],(a==="-"||a==="+")&&(a=e[++r]),a==="0"){if(r+1===t)return!0;if(a=e[++r],a==="b"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(a!=="0"&&a!=="1")return!1;o=!0}return o&&a!=="_"}if(a==="x"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!_t(e.charCodeAt(r)))return!1;o=!0}return o&&a!=="_"}if(a==="o"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!vt(e.charCodeAt(r)))return!1;o=!0}return o&&a!=="_"}}if(a==="_")return!1;for(;r<t;r++)if(a=e[r],a!=="_"){if(!Ct(e.charCodeAt(r)))return!1;o=!0}return!(!o||a==="_")}function St(e){var t=e,r=1,o;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),o=t[0],(o==="-"||o==="+")&&(o==="-"&&(r=-1),t=t.slice(1),o=t[0]),t==="0")return 0;if(o==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function Nt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!K.isNegativeZero(e)}var Lt=new b("tag:yaml.org,2002:int",{kind:"scalar",resolve:xt,construct:St,predicate:Nt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),It=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Et(e){return!(e===null||!It.test(e)||e[e.length-1]==="_")}function Tt(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var Bt=/^[-+]?[0-9]+e/;function At(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(K.isNegativeZero(e))return"-0.0";return r=e.toString(10),Bt.test(r)?r.replace("e",".e"):r}function $t(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||K.isNegativeZero(e))}var Vt=new b("tag:yaml.org,2002:float",{kind:"scalar",resolve:Et,construct:Tt,predicate:$t,represent:At,defaultStyle:"lowercase"}),Dt=pt.extend({implicit:[ht,kt,Lt,Vt]}),jt=Dt,ue=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qt(e){return e===null?!1:ue.exec(e)!==null||de.exec(e)!==null}function Ot(e){var t,r,o,a,i,l,s,u=0,c=null,g,d,f;if(t=ue.exec(e),t===null&&(t=de.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],o=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,o,a));if(i=+t[4],l=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(g=+t[10],d=+(t[11]||0),c=(g*60+d)*6e4,t[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,o,a,i,l,s,u)),c&&f.setTime(f.getTime()-c),f}function zt(e){return e.toISOString()}var Ft=new b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qt,construct:Ot,instanceOf:Date,represent:zt});function Mt(e){return e==="<<"||e===null}var Ut=new b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Mt}),H=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
4
- \r`;function Pt(e){if(e===null)return!1;var t,r,o=0,a=e.length,i=H;for(r=0;r<a;r++)if(t=i.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;o+=6}return o%8===0}function Kt(e){var t,r,o=e.replace(/[\r\n=]/g,""),a=o.length,i=H,l=0,s=[];for(t=0;t<a;t++)t%4===0&&t&&(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)),l=l<<6|i.indexOf(o.charAt(t));return r=a%4*6,r===0?(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)):r===18?(s.push(l>>10&255),s.push(l>>2&255)):r===12&&s.push(l>>4&255),new Uint8Array(s)}function Rt(e){var t="",r=0,o,a,i=e.length,l=H;for(o=0;o<i;o++)o%3===0&&o&&(t+=l[r>>18&63],t+=l[r>>12&63],t+=l[r>>6&63],t+=l[r&63]),r=(r<<8)+e[o];return a=i%3,a===0?(t+=l[r>>18&63],t+=l[r>>12&63],t+=l[r>>6&63],t+=l[r&63]):a===2?(t+=l[r>>10&63],t+=l[r>>4&63],t+=l[r<<2&63],t+=l[64]):a===1&&(t+=l[r>>2&63],t+=l[r<<4&63],t+=l[64],t+=l[64]),t}function Ht(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Yt=new b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pt,construct:Kt,predicate:Ht,represent:Rt}),Zt=Object.prototype.hasOwnProperty,Wt=Object.prototype.toString;function Qt(e){if(e===null)return!0;var t=[],r,o,a,i,l,s=e;for(r=0,o=s.length;r<o;r+=1){if(a=s[r],l=!1,Wt.call(a)!=="[object Object]")return!1;for(i in a)if(Zt.call(a,i))if(!l)l=!0;else return!1;if(!l)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function Gt(e){return e!==null?e:[]}var Jt=new b("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qt,construct:Gt}),Xt=Object.prototype.toString;function er(e){if(e===null)return!0;var t,r,o,a,i,l=e;for(i=new Array(l.length),t=0,r=l.length;t<r;t+=1){if(o=l[t],Xt.call(o)!=="[object Object]"||(a=Object.keys(o),a.length!==1))return!1;i[t]=[a[0],o[a[0]]]}return!0}function tr(e){if(e===null)return[];var t,r,o,a,i,l=e;for(i=new Array(l.length),t=0,r=l.length;t<r;t+=1)o=l[t],a=Object.keys(o),i[t]=[a[0],o[a[0]]];return i}var rr=new b("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:er,construct:tr}),nr=Object.prototype.hasOwnProperty;function or(e){if(e===null)return!0;var t,r=e;for(t in r)if(nr.call(r,t)&&r[t]!==null)return!1;return!0}function ar(e){return e!==null?e:{}}var ir=new b("tag:yaml.org,2002:set",{kind:"mapping",resolve:or,construct:ar});jt.extend({implicit:[Ft,Ut],explicit:[Yt,Jt,rr,ir]});function pe(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
5
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}for(var lr=new Array(256),sr=new Array(256),$=0;$<256;$++)lr[$]=pe($)?1:0,sr[$]=pe($);const cr=[];for(let e=0;e<256;++e)cr.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const{useAxios:rn,useDeleteUrlBuilder:nn,useErrors:ur,useExternalLinkCreator:on,useFetchUrlBuilder:an,useFetcher:ln,useDebouncedFilter:sn,useStringHelpers:cn,useHelpers:un,useGatewayFeatureSupported:dn,useTruncationDetector:pn,useValidators:fn}=Re;var x=(e=>(e.Debug="debug",e.Info="info",e.Notice="notice",e.Warn="warn",e.Error="error",e.Critical="crit",e))(x||{});class dr{constructor(t){D(this,"concurrentTokenSet",new Set);D(this,"concurrentTokenBorrowQueue",[]);for(let r=0;r<t;++r)this.concurrentTokenSet.add(Symbol(`token-${r}`))}hasAvailableConcurrentToken(){return this.concurrentTokenSet.size>0}borrowConcurrentToken(){if(this.concurrentTokenSet.size>0){const t=this.concurrentTokenSet.values().next().value;return this.concurrentTokenSet.delete(t),()=>{this.returnConcurrentToken(t)}}throw new Error("BUG: No available token to borrow")}returnConcurrentToken(t){if(this.concurrentTokenSet.has(t))throw new Error("Token already returned");const r=this.concurrentTokenBorrowQueue.shift();r?r[0](()=>this.returnConcurrentToken(t)):this.concurrentTokenSet.add(t)}async borrowToken(){return this.hasAvailableConcurrentToken()?this.borrowConcurrentToken():new Promise((t,r)=>{this.concurrentTokenBorrowQueue.push([t,r])})}clearWaitingQueue(t){for(;this.concurrentTokenBorrowQueue.length>0;){const[,r]=this.concurrentTokenBorrowQueue.shift();r(t)}}}class Y extends Error{constructor(t,r){super(t,r),this.name="AsyncAbortException"}}class F{constructor(t){D(this,"tokenBucket",null);D(this,"schedule",async t=>{let r;this.tokenBucket&&(r=await this.tokenBucket.borrowToken());try{const o=await t();return r==null||r(),o}catch(o){throw r==null||r(),o}});D(this,"cancelAll",(t,r)=>{var o;(o=this.tokenBucket)==null||o.clearWaitingQueue(new Y(t,r))});t.maxConcurrentAsyncs>0&&(this.tokenBucket=new dr(t.maxConcurrentAsyncs))}}const pr=Object.freeze(Object.defineProperty({__proto__:null,AsyncAbortException:Y,AsyncScheduler:F,useAsyncScheduler:e=>e instanceof F?e:e===null?new F({maxConcurrentAsyncs:0}):new F(e)},Symbol.toStringTag,{value:"Module"})),fe=[x.Debug,x.Info,x.Notice,x.Warn,x.Error,x.Critical],L={useI18n:O,...Object.freeze(Object.defineProperty({__proto__:null,supportedLevels:fe,useDataPlaneLogLevelChecker:e=>{const t=e.requestExecutor??(l=>l()),{getDataPlaneLogLevel:r,setDataPlaneLogLevel:o}=e,{getMessageFromError:a}=ur();return{checkDataPlaneLogLevel:(l,s)=>{const u=n.ref(n.toValue(s==null?void 0:s.currentLogLevelHint)??null);u.value===null&&t(async()=>{u.value=await r(l)}).catch(f=>{f instanceof Y||console.error("Failed to get data plane log level",f)}),s!=null&&s.currentLogLevelHint&&n.watch(()=>n.toValue(s.currentLogLevelHint),f=>{f&&(u.value=f)});const c=n.ref("pending"),g=n.ref(null);return{currentLogLevel:u,updateStatus:c,updateErrorMessage:g,updateLogLevel:async(f,p)=>{c.value="loading",g.value=null;try{await t(()=>o(l,f,p)),u.value=f,c.value="success"}catch(w){g.value=a(w),c.value="error"}}}}}},useFriendlyRevertTime:e=>{const{i18n:t}=O();return n.computed(()=>{const r=n.toValue(e);if(isNaN(r)||r<=0)return"";let o="";const a=r%60;a!==0&&(o+=`${a} ${t.t("modal.revert_to_default_after.seconds")}`);const i=Math.floor(r/60)%60;i!==0&&(o=`${i} ${t.t("modal.revert_to_default_after.minutes")} ${o}`);const l=Math.floor(r/3600);return l!==0&&(o=`${l} ${t.t("modal.revert_to_default_after.hours")} ${o}`),o})},useLogLevelCandidateSelectItems:e=>{const{i18n:t}=O();return n.computed(()=>{const r=n.toValue(e==null?void 0:e.disabled)??[];return fe.map(o=>({label:t.t(`log_level.${o}`),value:o,selected:(e==null?void 0:e.initialSelected)===o,disabled:r.includes(o)}))})},useLogLevelExplanation:e=>{const t=[x.Debug],{i18n:r}=O();return n.computed(()=>{const o=n.toValue(e);return{explanation:r.t(`modal.log_level_explanation.${o}`),warning:t.includes(o)?r.t("modal.log_level_disk_space_warning"):void 0}})}},Symbol.toStringTag,{value:"Module"})),...pr},I="24px",M=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},fr=e=>(n.pushScopeId("data-v-6921da37"),e=e(),n.popScopeId(),e),gr=["aria-hidden"],mr={key:0,"data-testid":"kui-icon-svg-title"},hr=fr(()=>n.createElementVNode("path",{d:"M10.6 16.6L17.65 9.55L16.25 8.15L10.6 13.8L7.75 10.95L6.35 12.35L10.6 16.6ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"},null,-1)),yr=M(n.defineComponent({__name:"CheckCircleIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return I}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon check-circle-icon","data-testid":"kui-icon-wrapper-check-circle-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-check-circle-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",mr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),hr],8,gr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-6921da37"]]),br=e=>(n.pushScopeId("data-v-c4cddd09"),e=e(),n.popScopeId(),e),wr=["aria-hidden"],kr={key:0,"data-testid":"kui-icon-svg-title"},_r=br(()=>n.createElementVNode("path",{d:"M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"},null,-1)),vr=M(n.defineComponent({__name:"ClearIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return I}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon clear-icon","data-testid":"kui-icon-wrapper-clear-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-clear-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",kr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),_r],8,wr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-c4cddd09"]]),Cr=e=>(n.pushScopeId("data-v-68742da1"),e=e(),n.popScopeId(),e),xr=["aria-hidden"],Sr={key:0,"data-testid":"kui-icon-svg-title"},Nr=Cr(()=>n.createElementVNode("path",{d:"M4 17V14H20V17H4ZM4 10V7H20V10H4Z",fill:"currentColor"},null,-1)),Lr=M(n.defineComponent({__name:"EqualIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return I}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon equal-icon","data-testid":"kui-icon-wrapper-equal-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-equal-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",Sr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),Nr],8,xr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-68742da1"]]),ge=e=>(n.pushScopeId("data-v-ae02d9ee"),e=e(),n.popScopeId(),e),Ir=["aria-hidden"],Er={key:0,"data-testid":"kui-icon-svg-title"},Tr=ge(()=>n.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),Br=ge(()=>n.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),Ar=M(n.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return I}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",Er,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),Tr,Br],8,Ir))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-ae02d9ee"]]),$r={"data-testid":"log-change-action"},Vr={key:0},Dr={"data-testid":"log-change-action-current-level"},jr={key:0},qr={"data-testid":"log-change-action-target-level"},Or={"data-testid":"log-change-status"},zr=n.defineComponent({__name:"CLLModalNodeRow",props:{dataPlaneId:{},hostname:{},hasDllCapability:{type:Boolean},targetLogLevel:{},checkLogLevel:{},logLevelHint:{}},setup(e,{expose:t}){const r=e,{i18n:o}=L.useI18n();let a=n.ref("not_supported"),i=n.ref("not_supported"),l=n.ref(null),s=async()=>{};r.hasDllCapability&&({currentLogLevel:a,updateStatus:i,updateErrorMessage:l,updateLogLevel:s}=r.checkLogLevel(r.dataPlaneId,{currentLogLevelHint:()=>r.logLevelHint??null})),t({updateLogLevel:s});const u=n.computed(()=>{switch(i.value){case"success":return"success";case"error":return"danger";case"loading":case"pending":return"warning";default:return"neutral"}}),c=n.computed(()=>{switch(i.value){case"success":return o.t("modal.dp_list.status.succeed");case"error":return o.t("modal.dp_list.status.failed");case"pending":return o.t("modal.dp_list.status.pending");case"loading":return o.t("modal.dp_list.status.loading");default:return o.t("modal.dp_list.status.not_supported")}}),g=n.computed(()=>{switch(i.value){case"success":return yr;case"error":case"not_supported":return vr;case"loading":return Ar;default:return Lr}});return(d,f)=>{const p=n.resolveComponent("KSkeleton"),w=n.resolveComponent("KBadge"),B=n.resolveComponent("KTooltip");return n.openBlock(),n.createElementBlock("tr",null,[n.createElementVNode("td",null,n.toDisplayString(d.hostname),1),n.createElementVNode("td",$r,[n.unref(a)==="not_supported"?(n.openBlock(),n.createElementBlock("span",Vr,n.toDisplayString(n.unref(o).t("log_level.not_applicable")),1)):n.unref(a)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("span",Dr,n.toDisplayString(n.unref(o).t(`log_level.${n.unref(a)}`)),1),n.unref(a)!==d.targetLogLevel?(n.openBlock(),n.createElementBlock("span",jr,[n.createTextVNode(" → "),n.createElementVNode("span",qr,n.toDisplayString(n.unref(o).t(`log_level.${d.targetLogLevel}`)),1)])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(p,{key:1,type:"spinner"}))]),n.createElementVNode("td",Or,[n.unref(l)?(n.openBlock(),n.createBlock(B,{key:0,text:n.unref(l)},{default:n.withCtx(()=>[n.createVNode(w,{appearance:u.value,class:"badge-cell"},{icon:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(g.value)))]),default:n.withCtx(()=>[n.createTextVNode(" "+n.toDisplayString(c.value),1)]),_:1},8,["appearance"])]),_:1},8,["text"])):(n.openBlock(),n.createBlock(w,{key:1,appearance:u.value,class:"badge-cell"},{icon:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(g.value)))]),default:n.withCtx(()=>[n.createTextVNode(" "+n.toDisplayString(c.value),1)]),_:1},8,["appearance"]))])])}}}),me=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},Fr=me(zr,[["__scopeId","data-v-ac7205dd"]]),Mr={class:"explanation-wrapper"},Ur={key:0,class:"warning-message","data-testid":"log-level-warning-message"},Pr={class:"revert-after-wrapper"},Kr={class:"time"},Rr={class:"seconds"},Hr={class:"formatted-time","data-testid":"log-level-timeout-formatted"},Yr={class:"data-plane-node-list","data-testid":"data-plane-node-list"},Zr={style:{width:"40%"}},Wr={style:{width:"40%"}},Qr=me(n.defineComponent({name:"ChangeLogLevelModal",__name:"ChangeLogLevelModal",props:n.mergeModels({instanceList:{},instanceLogLevel:{},requests:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(e){const t=e,r=n.useModel(e,"visible"),o=x.Notice,{i18n:a}=L.useI18n(),i=n.ref("edit"),l=n.ref(o),s=n.ref("60"),u=n.computed(()=>Math.floor(Number(s.value))),c=n.computed(()=>t.instanceList.filter(C=>C.hasDLLCapability!==!1)),g=n.computed(()=>{const C=c.value.length===1?a.t("modal.change_log_level.summary_with_name",{name:c.value[0].hostname}):a.t("modal.change_log_level.summary_with_number",{number:`${c.value.length}`});return a.t("modal.change_log_level.title",{summary:C})}),d=n.computed(()=>i.value==="submitting"||isNaN(u.value)||u.value<=0||c.value.length===0),f=L.useLogLevelCandidateSelectItems({initialSelected:o}),p=L.useLogLevelExplanation(l),w=L.useFriendlyRevertTime(u),B=L.useAsyncScheduler(t.requests.scheduler===void 0?{maxConcurrentAsyncs:10}:t.requests.scheduler),{checkDataPlaneLogLevel:Z}=L.useDataPlaneLogLevelChecker({getDataPlaneLogLevel:t.requests.getDataPlaneLogLevel,setDataPlaneLogLevel:t.requests.setDataPlaneLogLevel,requestExecutor:B.schedule}),V=new Map,W=(C,h)=>{h===null?V.delete(C):V.set(C,h)},m=async()=>{if(i.value!=="edit"){q();return}i.value="submitting";const C=Array.from(V.values()).map(h=>h.updateLogLevel(l.value,u.value));try{await Promise.all(C)}catch(h){console.error("Failed to update log level",h)}finally{i.value="submitted"}},q=()=>{r.value=!1,s.value="60",i.value="edit",l.value=o},U=n.computed(()=>{switch(i.value){case"submitting":return a.t("modal.action_button.submitting");case"submitted":return a.t("modal.action_button.ok");default:return a.t("modal.action_button.confirm")}});return(C,h)=>{const v=n.resolveComponent("KSelect"),E=n.resolveComponent("KLabel"),k=n.resolveComponent("KInput"),N=n.resolveComponent("KModal");return n.openBlock(),n.createBlock(N,{"action-button-disabled":d.value,"action-button-text":U.value,"data-testid":"change-log-level-modal","hide-cancel-button":!0,"hide-close-icon":i.value==="submitting","max-width":"640px",title:g.value,visible:r.value,onCancel:q,onProceed:m},{default:n.withCtx(()=>[i.value==="edit"?(n.openBlock(),n.createBlock(v,{key:0,modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=_=>l.value=_),class:"log-level-select","data-testid":"log-level-select",items:n.unref(f),label:n.unref(a).t("modal.select_log_level_title")},null,8,["modelValue","items","label"])):n.createCommentVNode("",!0),n.createElementVNode("div",Mr,[n.createVNode(E,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a).t(`log_level.${l.value}`)),1)]),_:1}),n.createElementVNode("div",null,n.toDisplayString(n.unref(p).explanation),1),n.unref(p).warning?(n.openBlock(),n.createElementBlock("div",Ur,n.toDisplayString(n.unref(p).warning),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",Pr,[n.createVNode(E,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a).t("modal.revert_to_default_after.label")),1)]),_:1}),n.createElementVNode("div",Kr,[n.createVNode(k,{modelValue:s.value,"onUpdate:modelValue":h[1]||(h[1]=_=>s.value=_),class:"time-input","data-testid":"log-level-timeout",disabled:i.value!=="edit",error:u.value<=0||isNaN(u.value),min:"1",type:"number"},null,8,["modelValue","disabled","error"]),n.createElementVNode("span",Rr,n.toDisplayString(n.unref(a).t("modal.revert_to_default_after.seconds")),1),n.createElementVNode("span",Hr,n.toDisplayString(n.unref(w)),1)])]),n.createElementVNode("table",Yr,[n.createElementVNode("thead",null,[n.createElementVNode("th",Zr,n.toDisplayString(n.unref(a).t("modal.dp_list.header.host")),1),n.createElementVNode("th",Wr,n.toDisplayString(n.unref(a).t("modal.dp_list.header.action")),1),n.createElementVNode("th",null,n.toDisplayString(n.unref(a).t("modal.dp_list.header.status")),1)]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.instanceList,_=>{var he;return n.openBlock(),n.createBlock(Fr,{key:_.id,ref_for:!0,ref:Gr=>W(_.id,Gr),"check-log-level":n.unref(Z),"data-plane-id":_.id,"data-testid":`data-plane-node-list-row-${_.id}`,"has-dll-capability":_.hasDLLCapability??!0,hostname:_.hostname,"log-level-hint":(he=t.instanceLogLevel)==null?void 0:he.get(_.id),"target-log-level":l.value},null,8,["check-log-level","data-plane-id","data-testid","has-dll-capability","hostname","log-level-hint","target-log-level"])}),128))])])]),_:1},8,["action-button-disabled","action-button-text","hide-close-icon","title","visible"])}}}),[["__scopeId","data-v-983a59ac"]]);y.ChangeLogLevelModal=Qr,y.LogLevel=x,y.composables=L,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
3
+ `+e.mark.snippet),o+" "+r):o}function j(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=se(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j.prototype.toString=function(e){return this.name+": "+se(this,e)};var T=j,nt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ot=["scalar","sequence","mapping"];function at(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(o){t[String(o)]=r})}),t}function it(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(nt.indexOf(r)===-1)throw new T('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=at(t.styleAliases||null),ot.indexOf(this.kind)===-1)throw new T('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var b=it;function ce(e,t){var r=[];return e[t].forEach(function(o){var a=r.length;r.forEach(function(i,l){i.tag===o.tag&&i.kind===o.kind&&i.multi===o.multi&&(a=l)}),r[a]=o}),r}function lt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function o(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(o);return e}function R(e){return this.extend(e)}R.prototype.extend=function(e){var t=[],r=[];if(e instanceof b)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new T("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(a){if(!(a instanceof b))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new T("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new T("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(a){if(!(a instanceof b))throw new T("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(R.prototype);return o.implicit=(this.implicit||[]).concat(t),o.explicit=(this.explicit||[]).concat(r),o.compiledImplicit=ce(o,"implicit"),o.compiledExplicit=ce(o,"explicit"),o.compiledTypeMap=lt(o.compiledImplicit,o.compiledExplicit),o};var st=R,ct=new b("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ut=new b("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),dt=new b("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),pt=new st({explicit:[ct,ut,dt]});function ft(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function gt(){return null}function mt(e){return e===null}var ht=new b("tag:yaml.org,2002:null",{kind:"scalar",resolve:ft,construct:gt,predicate:mt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yt(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function bt(e){return e==="true"||e==="True"||e==="TRUE"}function wt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var kt=new b("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yt,construct:bt,predicate:wt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function _t(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function vt(e){return 48<=e&&e<=55}function Ct(e){return 48<=e&&e<=57}function xt(e){if(e===null)return!1;var t=e.length,r=0,o=!1,a;if(!t)return!1;if(a=e[r],(a==="-"||a==="+")&&(a=e[++r]),a==="0"){if(r+1===t)return!0;if(a=e[++r],a==="b"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(a!=="0"&&a!=="1")return!1;o=!0}return o&&a!=="_"}if(a==="x"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!_t(e.charCodeAt(r)))return!1;o=!0}return o&&a!=="_"}if(a==="o"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!vt(e.charCodeAt(r)))return!1;o=!0}return o&&a!=="_"}}if(a==="_")return!1;for(;r<t;r++)if(a=e[r],a!=="_"){if(!Ct(e.charCodeAt(r)))return!1;o=!0}return!(!o||a==="_")}function St(e){var t=e,r=1,o;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),o=t[0],(o==="-"||o==="+")&&(o==="-"&&(r=-1),t=t.slice(1),o=t[0]),t==="0")return 0;if(o==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function Nt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!K.isNegativeZero(e)}var Lt=new b("tag:yaml.org,2002:int",{kind:"scalar",resolve:xt,construct:St,predicate:Nt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),It=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Et(e){return!(e===null||!It.test(e)||e[e.length-1]==="_")}function Tt(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var Bt=/^[-+]?[0-9]+e/;function At(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(K.isNegativeZero(e))return"-0.0";return r=e.toString(10),Bt.test(r)?r.replace("e",".e"):r}function $t(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||K.isNegativeZero(e))}var Vt=new b("tag:yaml.org,2002:float",{kind:"scalar",resolve:Et,construct:Tt,predicate:$t,represent:At,defaultStyle:"lowercase"}),Dt=pt.extend({implicit:[ht,kt,Lt,Vt]}),jt=Dt,ue=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),de=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qt(e){return e===null?!1:ue.exec(e)!==null||de.exec(e)!==null}function zt(e){var t,r,o,a,i,l,s,u=0,c=null,f,d,g;if(t=ue.exec(e),t===null&&(t=de.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],o=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,o,a));if(i=+t[4],l=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],d=+(t[11]||0),c=(f*60+d)*6e4,t[9]==="-"&&(c=-c)),g=new Date(Date.UTC(r,o,a,i,l,s,u)),c&&g.setTime(g.getTime()-c),g}function Ot(e){return e.toISOString()}var Mt=new b("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qt,construct:zt,instanceOf:Date,represent:Ot});function Ft(e){return e==="<<"||e===null}var Ut=new b("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ft}),H=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
4
+ \r`;function Pt(e){if(e===null)return!1;var t,r,o=0,a=e.length,i=H;for(r=0;r<a;r++)if(t=i.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;o+=6}return o%8===0}function Kt(e){var t,r,o=e.replace(/[\r\n=]/g,""),a=o.length,i=H,l=0,s=[];for(t=0;t<a;t++)t%4===0&&t&&(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)),l=l<<6|i.indexOf(o.charAt(t));return r=a%4*6,r===0?(s.push(l>>16&255),s.push(l>>8&255),s.push(l&255)):r===18?(s.push(l>>10&255),s.push(l>>2&255)):r===12&&s.push(l>>4&255),new Uint8Array(s)}function Rt(e){var t="",r=0,o,a,i=e.length,l=H;for(o=0;o<i;o++)o%3===0&&o&&(t+=l[r>>18&63],t+=l[r>>12&63],t+=l[r>>6&63],t+=l[r&63]),r=(r<<8)+e[o];return a=i%3,a===0?(t+=l[r>>18&63],t+=l[r>>12&63],t+=l[r>>6&63],t+=l[r&63]):a===2?(t+=l[r>>10&63],t+=l[r>>4&63],t+=l[r<<2&63],t+=l[64]):a===1&&(t+=l[r>>2&63],t+=l[r<<4&63],t+=l[64],t+=l[64]),t}function Ht(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Yt=new b("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pt,construct:Kt,predicate:Ht,represent:Rt}),Zt=Object.prototype.hasOwnProperty,Wt=Object.prototype.toString;function Qt(e){if(e===null)return!0;var t=[],r,o,a,i,l,s=e;for(r=0,o=s.length;r<o;r+=1){if(a=s[r],l=!1,Wt.call(a)!=="[object Object]")return!1;for(i in a)if(Zt.call(a,i))if(!l)l=!0;else return!1;if(!l)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function Gt(e){return e!==null?e:[]}var Jt=new b("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Qt,construct:Gt}),Xt=Object.prototype.toString;function er(e){if(e===null)return!0;var t,r,o,a,i,l=e;for(i=new Array(l.length),t=0,r=l.length;t<r;t+=1){if(o=l[t],Xt.call(o)!=="[object Object]"||(a=Object.keys(o),a.length!==1))return!1;i[t]=[a[0],o[a[0]]]}return!0}function tr(e){if(e===null)return[];var t,r,o,a,i,l=e;for(i=new Array(l.length),t=0,r=l.length;t<r;t+=1)o=l[t],a=Object.keys(o),i[t]=[a[0],o[a[0]]];return i}var rr=new b("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:er,construct:tr}),nr=Object.prototype.hasOwnProperty;function or(e){if(e===null)return!0;var t,r=e;for(t in r)if(nr.call(r,t)&&r[t]!==null)return!1;return!0}function ar(e){return e!==null?e:{}}var ir=new b("tag:yaml.org,2002:set",{kind:"mapping",resolve:or,construct:ar});jt.extend({implicit:[Mt,Ut],explicit:[Yt,Jt,rr,ir]});function pe(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
5
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}for(var lr=new Array(256),sr=new Array(256),$=0;$<256;$++)lr[$]=pe($)?1:0,sr[$]=pe($);const cr=[];for(let e=0;e<256;++e)cr.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const{useAxios:rn,useDeleteUrlBuilder:nn,useErrors:ur,useExternalLinkCreator:on,useFetchUrlBuilder:an,useFetcher:ln,useDebouncedFilter:sn,useStringHelpers:cn,useHelpers:un,useGatewayFeatureSupported:dn,useTruncationDetector:pn,useValidators:fn}=Re;var x=(e=>(e.Debug="debug",e.Info="info",e.Notice="notice",e.Warn="warn",e.Error="error",e.Critical="crit",e))(x||{});class dr{constructor(t){D(this,"concurrentTokenSet",new Set);D(this,"concurrentTokenBorrowQueue",[]);for(let r=0;r<t;++r)this.concurrentTokenSet.add(Symbol(`token-${r}`))}hasAvailableConcurrentToken(){return this.concurrentTokenSet.size>0}borrowConcurrentToken(){if(this.concurrentTokenSet.size>0){const t=this.concurrentTokenSet.values().next().value;return this.concurrentTokenSet.delete(t),()=>{this.returnConcurrentToken(t)}}throw new Error("BUG: No available token to borrow")}returnConcurrentToken(t){if(this.concurrentTokenSet.has(t))throw new Error("Token already returned");const r=this.concurrentTokenBorrowQueue.shift();r?r[0](()=>this.returnConcurrentToken(t)):this.concurrentTokenSet.add(t)}async borrowToken(){return this.hasAvailableConcurrentToken()?this.borrowConcurrentToken():new Promise((t,r)=>{this.concurrentTokenBorrowQueue.push([t,r])})}clearWaitingQueue(t){for(;this.concurrentTokenBorrowQueue.length>0;){const[,r]=this.concurrentTokenBorrowQueue.shift();r(t)}}}class Y extends Error{constructor(t,r){super(t,r),this.name="AsyncAbortException"}}class M{constructor(t){D(this,"tokenBucket",null);D(this,"schedule",async t=>{let r;this.tokenBucket&&(r=await this.tokenBucket.borrowToken());try{const o=await t();return r==null||r(),o}catch(o){throw r==null||r(),o}});D(this,"cancelAll",(t,r)=>{var o;(o=this.tokenBucket)==null||o.clearWaitingQueue(new Y(t,r))});t.maxConcurrentAsyncs>0&&(this.tokenBucket=new dr(t.maxConcurrentAsyncs))}}const pr=Object.freeze(Object.defineProperty({__proto__:null,AsyncAbortException:Y,AsyncScheduler:M,useAsyncScheduler:e=>e instanceof M?e:e===null?new M({maxConcurrentAsyncs:0}):new M(e)},Symbol.toStringTag,{value:"Module"})),fe=[x.Debug,x.Info,x.Notice,x.Warn,x.Error,x.Critical],L={useI18n:z,...Object.freeze(Object.defineProperty({__proto__:null,supportedLevels:fe,useDataPlaneLogLevelChecker:e=>{const t=e.requestExecutor??(l=>l()),{getDataPlaneLogLevel:r,setDataPlaneLogLevel:o}=e,{getMessageFromError:a}=ur();return{checkDataPlaneLogLevel:(l,s)=>{const u=n.ref(n.toValue(s==null?void 0:s.currentLogLevelHint)??null);u.value===null&&t(async()=>{u.value=await r(l)}).catch(g=>{g instanceof Y||console.error("Failed to get data plane log level",g)}),s!=null&&s.currentLogLevelHint&&n.watch(()=>n.toValue(s.currentLogLevelHint),g=>{g&&(u.value=g)});const c=n.ref("pending"),f=n.ref(null);return{currentLogLevel:u,updateStatus:c,updateErrorMessage:f,updateLogLevel:async(g,p)=>{c.value="loading",f.value=null;try{await t(()=>o(l,g,p)),u.value=g,c.value="success"}catch(w){f.value=a(w),c.value="error"}}}}}},useFriendlyRevertTime:e=>{const{i18n:t}=z();return n.computed(()=>{const r=n.toValue(e);if(isNaN(r)||r<=0)return"";let o="";const a=r%60;a!==0&&(o+=`${a} ${t.t("modal.revert_to_default_after.seconds")}`);const i=Math.floor(r/60)%60;i!==0&&(o=`${i} ${t.t("modal.revert_to_default_after.minutes")} ${o}`);const l=Math.floor(r/3600);return l!==0&&(o=`${l} ${t.t("modal.revert_to_default_after.hours")} ${o}`),o})},useLogLevelCandidateSelectItems:e=>{const{i18n:t}=z();return n.computed(()=>{const r=n.toValue(e==null?void 0:e.disabled)??[];return fe.map(o=>({label:t.t(`log_level.${o}`),value:o,selected:(e==null?void 0:e.initialSelected)===o,disabled:r.includes(o)}))})},useLogLevelExplanation:e=>{const t=[x.Debug],{i18n:r}=z();return n.computed(()=>{const o=n.toValue(e);return{explanation:r.t(`modal.log_level_explanation.${o}`),warning:t.includes(o)?r.t("modal.log_level_disk_space_warning"):void 0}})}},Symbol.toStringTag,{value:"Module"})),...pr},I="24px",F=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},fr=e=>(n.pushScopeId("data-v-6921da37"),e=e(),n.popScopeId(),e),gr=["aria-hidden"],mr={key:0,"data-testid":"kui-icon-svg-title"},hr=fr(()=>n.createElementVNode("path",{d:"M10.6 16.6L17.65 9.55L16.25 8.15L10.6 13.8L7.75 10.95L6.35 12.35L10.6 16.6ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"},null,-1)),yr=F(n.defineComponent({__name:"CheckCircleIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return I}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon check-circle-icon","data-testid":"kui-icon-wrapper-check-circle-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-check-circle-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",mr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),hr],8,gr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-6921da37"]]),br=e=>(n.pushScopeId("data-v-c4cddd09"),e=e(),n.popScopeId(),e),wr=["aria-hidden"],kr={key:0,"data-testid":"kui-icon-svg-title"},_r=br(()=>n.createElementVNode("path",{d:"M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"},null,-1)),vr=F(n.defineComponent({__name:"ClearIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return I}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon clear-icon","data-testid":"kui-icon-wrapper-clear-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-clear-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",kr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),_r],8,wr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-c4cddd09"]]),Cr=e=>(n.pushScopeId("data-v-68742da1"),e=e(),n.popScopeId(),e),xr=["aria-hidden"],Sr={key:0,"data-testid":"kui-icon-svg-title"},Nr=Cr(()=>n.createElementVNode("path",{d:"M4 17V14H20V17H4ZM4 10V7H20V10H4Z",fill:"currentColor"},null,-1)),Lr=F(n.defineComponent({__name:"EqualIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return I}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon equal-icon","data-testid":"kui-icon-wrapper-equal-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-equal-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",Sr,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),Nr],8,xr))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-68742da1"]]),ge=e=>(n.pushScopeId("data-v-ae02d9ee"),e=e(),n.popScopeId(),e),Ir=["aria-hidden"],Er={key:0,"data-testid":"kui-icon-svg-title"},Tr=ge(()=>n.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),Br=ge(()=>n.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),Ar=F(n.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const t=String(e).replace(/px/gi,""),r=Number(t);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const t=e,r=n.computed(()=>{if(typeof t.size=="number"&&t.size>0)return`${t.size}px`;if(typeof t.size=="string"){const a=String(t.size).replace(/px/gi,""),i=Number(a);if(i&&!isNaN(i)&&Number.isInteger(i)&&i>0)return`${i}px`}return I}),o=n.computed(()=>({boxSizing:"border-box",color:t.color,display:t.display,flexShrink:"0",height:r.value,lineHeight:"0",width:r.value}));return(a,i)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:n.normalizeStyle(o.value)},{default:n.withCtx(()=>[(n.openBlock(),n.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(n.openBlock(),n.createElementBlock("title",Er,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),Tr,Br],8,Ir))]),_:1},8,["aria-hidden","style"]))}}),[["__scopeId","data-v-ae02d9ee"]]),$r={"data-testid":"log-change-action"},Vr={key:0},Dr={"data-testid":"log-change-action-current-level"},jr={key:0},qr={"data-testid":"log-change-action-target-level"},zr={"data-testid":"log-change-status"},Or=n.defineComponent({__name:"CLLModalNodeRow",props:{dataPlaneId:{},hostname:{},hasDllCapability:{type:Boolean},targetLogLevel:{},checkLogLevel:{},logLevelHint:{}},setup(e,{expose:t}){const r=e,{i18n:o}=L.useI18n();let a=n.ref("not_supported"),i=n.ref("not_supported"),l=n.ref(null),s=async()=>{};r.hasDllCapability&&({currentLogLevel:a,updateStatus:i,updateErrorMessage:l,updateLogLevel:s}=r.checkLogLevel(r.dataPlaneId,{currentLogLevelHint:()=>r.logLevelHint??null})),t({updateLogLevel:s});const u=n.computed(()=>{switch(i.value){case"success":return"success";case"error":return"danger";case"loading":case"pending":return"warning";default:return"neutral"}}),c=n.computed(()=>{switch(i.value){case"success":return o.t("modal.dp_list.status.succeed");case"error":return o.t("modal.dp_list.status.failed");case"pending":return o.t("modal.dp_list.status.pending");case"loading":return o.t("modal.dp_list.status.loading");default:return o.t("modal.dp_list.status.not_supported")}}),f=n.computed(()=>{switch(i.value){case"success":return yr;case"error":case"not_supported":return vr;case"loading":return Ar;default:return Lr}});return(d,g)=>{const p=n.resolveComponent("KSkeleton"),w=n.resolveComponent("KBadge"),B=n.resolveComponent("KTooltip");return n.openBlock(),n.createElementBlock("tr",null,[n.createElementVNode("td",null,n.toDisplayString(d.hostname),1),n.createElementVNode("td",$r,[n.unref(a)==="not_supported"?(n.openBlock(),n.createElementBlock("span",Vr,n.toDisplayString(n.unref(o).t("log_level.not_applicable")),1)):n.unref(a)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("span",Dr,n.toDisplayString(n.unref(o).t(`log_level.${n.unref(a)}`)),1),n.unref(a)!==d.targetLogLevel?(n.openBlock(),n.createElementBlock("span",jr,[n.createTextVNode(" → "),n.createElementVNode("span",qr,n.toDisplayString(n.unref(o).t(`log_level.${d.targetLogLevel}`)),1)])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(p,{key:1,type:"spinner"}))]),n.createElementVNode("td",zr,[n.unref(l)?(n.openBlock(),n.createBlock(B,{key:0,text:n.unref(l)},{default:n.withCtx(()=>[n.createVNode(w,{appearance:u.value,class:"badge-cell"},{icon:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.value)))]),default:n.withCtx(()=>[n.createTextVNode(" "+n.toDisplayString(c.value),1)]),_:1},8,["appearance"])]),_:1},8,["text"])):(n.openBlock(),n.createBlock(w,{key:1,appearance:u.value,class:"badge-cell"},{icon:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.value)))]),default:n.withCtx(()=>[n.createTextVNode(" "+n.toDisplayString(c.value),1)]),_:1},8,["appearance"]))])])}}}),me=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r},Mr=me(Or,[["__scopeId","data-v-ac7205dd"]]),Fr={class:"explanation-wrapper"},Ur={key:0,class:"warning-message","data-testid":"log-level-warning-message"},Pr={class:"revert-after-wrapper"},Kr={class:"time"},Rr={class:"seconds"},Hr={class:"formatted-time","data-testid":"log-level-timeout-formatted"},Yr={class:"data-plane-node-list","data-testid":"data-plane-node-list"},Zr={style:{width:"40%"}},Wr={style:{width:"40%"}},Qr=me(n.defineComponent({name:"ChangeLogLevelModal",__name:"ChangeLogLevelModal",props:n.mergeModels({instanceList:{},instanceLogLevel:{},requests:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:["update:visible"],setup(e){const t=e,r=n.useModel(e,"visible"),o=x.Notice,{i18n:a}=L.useI18n(),i=n.ref("edit"),l=n.ref(o),s=n.ref("60"),u=n.computed(()=>Math.floor(Number(s.value))),c=n.computed(()=>t.instanceList.filter(C=>C.hasDLLCapability!==!1)),f=n.computed(()=>{const C=c.value.length===1?a.t("modal.change_log_level.summary_with_name",{name:c.value[0].hostname}):a.t("modal.change_log_level.summary_with_number",{number:`${c.value.length}`});return a.t("modal.change_log_level.title",{summary:C})}),d=n.computed(()=>i.value==="submitting"||isNaN(u.value)||u.value<=0||c.value.length===0),g=L.useLogLevelCandidateSelectItems({initialSelected:o}),p=L.useLogLevelExplanation(l),w=L.useFriendlyRevertTime(u),B=L.useAsyncScheduler(t.requests.scheduler===void 0?{maxConcurrentAsyncs:10}:t.requests.scheduler),{checkDataPlaneLogLevel:Z}=L.useDataPlaneLogLevelChecker({getDataPlaneLogLevel:t.requests.getDataPlaneLogLevel,setDataPlaneLogLevel:t.requests.setDataPlaneLogLevel,requestExecutor:B.schedule}),V=new Map,W=(C,m)=>{m===null?V.delete(C):V.set(C,m)},h=async()=>{if(i.value!=="edit"){q();return}i.value="submitting";const C=Array.from(V.values()).map(m=>m.updateLogLevel(l.value,u.value));try{await Promise.all(C)}catch(m){console.error("Failed to update log level",m)}finally{i.value="submitted"}},q=()=>{r.value=!1,s.value="60",i.value="edit",l.value=o},U=n.computed(()=>{switch(i.value){case"submitting":return a.t("modal.action_button.submitting");case"submitted":return a.t("modal.action_button.ok");default:return a.t("modal.action_button.confirm")}});return(C,m)=>{const v=n.resolveComponent("KSelect"),E=n.resolveComponent("KLabel"),k=n.resolveComponent("KInput"),N=n.resolveComponent("KModal");return n.openBlock(),n.createBlock(N,{"action-button-disabled":d.value,"action-button-text":U.value,"data-testid":"change-log-level-modal","hide-cancel-button":!0,"hide-close-icon":i.value==="submitting","max-width":"640px",title:f.value,visible:r.value,onCancel:q,onProceed:h},{default:n.withCtx(()=>[i.value==="edit"?(n.openBlock(),n.createBlock(v,{key:0,modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=_=>l.value=_),class:"log-level-select","data-testid":"log-level-select",items:n.unref(g),label:n.unref(a).t("modal.select_log_level_title")},null,8,["modelValue","items","label"])):n.createCommentVNode("",!0),n.createElementVNode("div",Fr,[n.createVNode(E,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a).t(`log_level.${l.value}`)),1)]),_:1}),n.createElementVNode("div",null,n.toDisplayString(n.unref(p).explanation),1),n.unref(p).warning?(n.openBlock(),n.createElementBlock("div",Ur,n.toDisplayString(n.unref(p).warning),1)):n.createCommentVNode("",!0)]),n.createElementVNode("div",Pr,[n.createVNode(E,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(a).t("modal.revert_to_default_after.label")),1)]),_:1}),n.createElementVNode("div",Kr,[n.createVNode(k,{modelValue:s.value,"onUpdate:modelValue":m[1]||(m[1]=_=>s.value=_),class:"time-input","data-testid":"log-level-timeout",disabled:i.value!=="edit",error:u.value<=0||isNaN(u.value),min:"1",type:"number"},null,8,["modelValue","disabled","error"]),n.createElementVNode("span",Rr,n.toDisplayString(n.unref(a).t("modal.revert_to_default_after.seconds")),1),n.createElementVNode("span",Hr,n.toDisplayString(n.unref(w)),1)])]),n.createElementVNode("table",Yr,[n.createElementVNode("thead",null,[n.createElementVNode("th",Zr,n.toDisplayString(n.unref(a).t("modal.dp_list.header.host")),1),n.createElementVNode("th",Wr,n.toDisplayString(n.unref(a).t("modal.dp_list.header.action")),1),n.createElementVNode("th",null,n.toDisplayString(n.unref(a).t("modal.dp_list.header.status")),1)]),n.createElementVNode("tbody",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.instanceList,_=>{var he;return n.openBlock(),n.createBlock(Mr,{key:_.id,ref_for:!0,ref:Gr=>W(_.id,Gr),"check-log-level":n.unref(Z),"data-plane-id":_.id,"data-testid":`data-plane-node-list-row-${_.id}`,"has-dll-capability":_.hasDLLCapability??!0,hostname:_.hostname,"log-level-hint":(he=t.instanceLogLevel)==null?void 0:he.get(_.id),"target-log-level":l.value},null,8,["check-log-level","data-plane-id","data-testid","has-dll-capability","hostname","log-level-hint","target-log-level"])}),128))])])]),_:1},8,["action-button-disabled","action-button-text","hide-close-icon","title","visible"])}}}),[["__scopeId","data-v-983a59ac"]]);y.ChangeLogLevelModal=Qr,y.LogLevel=x,y.composables=L,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-data-plane-nodes",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-data-plane-nodes.umd.js",
6
6
  "module": "./dist/entities-data-plane-nodes.es.js",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@kong/icons": "^1.15.1",
54
- "@kong-ui-public/entities-shared": "^3.6.2"
54
+ "@kong-ui-public/entities-shared": "^3.6.3"
55
55
  },
56
56
  "scripts": {
57
57
  "dev": "cross-env USE_SANDBOX=true vite",