@kong-ui-public/entities-snis 2.1.12 → 2.1.13

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,4 +1,4 @@
1
- import { defineComponent as ee, ref as C, computed as S, watch as ne, renderSlot as G, createCommentVNode as X, unref as s, onBeforeMount as Ce, resolveComponent as j, openBlock as b, createBlock as D, withCtx as f, createElementVNode as $, toDisplayString as M, createElementBlock as q, withModifiers as be, createVNode as x, createTextVNode as J, createSlots as We, withDirectives as me, vShow as ye, renderList as Te, Fragment as Je, useSlots as ct, normalizeClass as ke, onMounted as ut, onUnmounted as dt, inject as pt, resolveDynamicComponent as Ie, mergeProps as Ke, normalizeStyle as ft, pushScopeId as mt, popScopeId as yt, Teleport as gt, reactive as $e } from "vue";
1
+ import { defineComponent as ee, ref as x, computed as S, watch as ne, renderSlot as G, createCommentVNode as X, unref as s, onBeforeMount as xe, resolveComponent as F, openBlock as b, createBlock as V, withCtx as f, createElementVNode as K, toDisplayString as M, createElementBlock as R, withModifiers as be, createVNode as C, createTextVNode as J, createSlots as We, withDirectives as me, vShow as ye, renderList as Te, Fragment as Je, useSlots as ct, normalizeClass as ke, onMounted as ut, onUnmounted as dt, inject as pt, resolveDynamicComponent as Ie, mergeProps as $e, normalizeStyle as ft, pushScopeId as mt, popScopeId as yt, Teleport as gt, reactive as Ke } from "vue";
2
2
  import { createI18n as Ee, i18nTComponent as Ye } from "@kong-ui-public/i18n";
3
3
  import vt from "axios";
4
4
  import "@kong/kongponents";
@@ -82,7 +82,7 @@ const ht = {
82
82
  errors: St,
83
83
  copy: _t
84
84
  };
85
- function xt() {
85
+ function Ct() {
86
86
  const e = Ee("en-us", It);
87
87
  return {
88
88
  i18n: e,
@@ -91,7 +91,7 @@ function xt() {
91
91
  };
92
92
  }
93
93
  const Ge = {
94
- useI18n: xt
94
+ useI18n: Ct
95
95
  }, fe = {
96
96
  list: {
97
97
  konnect: {
@@ -126,7 +126,7 @@ function Ne(e = {}) {
126
126
  })
127
127
  };
128
128
  }
129
- function Ct() {
129
+ function xt() {
130
130
  return {
131
131
  debounce: (e, a) => {
132
132
  let t;
@@ -199,7 +199,7 @@ const Nt = {
199
199
  noSearchResultsMessage: "Please adjust the criteria and try again.",
200
200
  noSearchResultsCtaText: "Clear"
201
201
  }
202
- }, Kt = {
202
+ }, $t = {
203
203
  title: "Configuration",
204
204
  actions: {
205
205
  copy: "Copy JSON"
@@ -222,6 +222,9 @@ const Nt = {
222
222
  enabledLabel: "Enabled",
223
223
  disabledLabel: "Disabled"
224
224
  },
225
+ endpoints: {
226
+ get: "Get"
227
+ },
225
228
  copy: {
226
229
  tooltip: "Copy {label}",
227
230
  success: "Copied!"
@@ -234,7 +237,7 @@ const Nt = {
234
237
  entryTitle: "Entry {index}",
235
238
  structuredFormat: "Structured"
236
239
  }
237
- }, $t = {
240
+ }, Kt = {
238
241
  filterButtonText: "Filter",
239
242
  fieldLabel: "Filter by:",
240
243
  inputPlaceholder: "Enter a value",
@@ -242,15 +245,15 @@ const Nt = {
242
245
  applyButtonText: "Apply",
243
246
  clearButtonText: "Clear",
244
247
  clearAllButtonText: "Clear all filters"
245
- }, jt = {
248
+ }, Ft = {
246
249
  errors: {
247
250
  fetch: "Could not fetch available items",
248
251
  invalid: "Please select a valid value"
249
252
  }
250
- }, Ft = {
253
+ }, jt = {
251
254
  unexpected: "An unexpected error has occurred",
252
255
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
253
- }, Pt = {
256
+ }, qt = {
254
257
  enable: {
255
258
  title: "Enable {entityType}",
256
259
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -261,19 +264,19 @@ const Nt = {
261
264
  message: "Are you sure you want to disable the {entityType} {entityName}?",
262
265
  confirmText: "Yes, disable"
263
266
  }
264
- }, Rt = {
267
+ }, Pt = {
265
268
  global: Nt,
266
269
  deleteModal: At,
267
270
  baseForm: Ot,
268
271
  baseTable: Mt,
269
- baseConfigCard: Kt,
270
- filter: $t,
271
- debouncedFilter: jt,
272
- errors: Ft,
273
- toggleModal: Pt
272
+ baseConfigCard: $t,
273
+ filter: Kt,
274
+ debouncedFilter: Ft,
275
+ errors: jt,
276
+ toggleModal: qt
274
277
  };
275
278
  function Ae() {
276
- const e = Ee("en-us", Rt);
279
+ const e = Ee("en-us", Pt);
277
280
  return {
278
281
  i18n: e,
279
282
  i18nT: Ye(e)
@@ -324,17 +327,17 @@ function Xe() {
324
327
  isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
325
328
  };
326
329
  }
327
- function qt(e, a, t, r = {
330
+ function Rt(e, a, t, r = {
328
331
  fetchedItemsKey: "data",
329
332
  searchKeys: ["id"]
330
333
  }) {
331
334
  t || (t = "100");
332
335
  const { axiosInstance: n } = Ne({
333
336
  headers: e.requestHeaders
334
- }), { i18n: { t: i } } = Ae(), { debounce: o } = Ct(), d = o(async (w) => {
337
+ }), { i18n: { t: i } } = Ae(), { debounce: o } = xt(), d = o(async (w) => {
335
338
  await E(w);
336
- }, 200), m = C(!1), p = C(""), _ = C(""), l = C([]), N = C([]), k = C(void 0), V = s(a);
337
- let y = `${e.apiBaseUrl}${V}`;
339
+ }, 200), m = x(!1), p = x(""), _ = x(""), l = x([]), N = x([]), k = x(void 0), D = s(a);
340
+ let y = `${e.apiBaseUrl}${D}`;
338
341
  e.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
339
342
  const { isValidUuid: A } = Xe(), u = async () => {
340
343
  try {
@@ -346,7 +349,7 @@ function qt(e, a, t, r = {
346
349
  } finally {
347
350
  m.value = !1;
348
351
  }
349
- }, T = C(""), E = async (w) => {
352
+ }, T = x(""), E = async (w) => {
350
353
  var g, O, z;
351
354
  if (T.value !== w)
352
355
  if (T.value = w || "", k.value === void 0)
@@ -354,23 +357,23 @@ function qt(e, a, t, r = {
354
357
  if (m.value = !0, p.value = "", _.value = "", e.app === "konnect") {
355
358
  let v = y + "";
356
359
  w && (v += `/${w}`);
357
- const { data: B } = await n.get(`${v}?size=${t}`);
358
- r.fetchedItemsKey in B ? l.value = B[r.fetchedItemsKey] : B != null && B.id ? l.value = [B] : l.value = [];
360
+ const { data: U } = await n.get(`${v}?size=${t}`);
361
+ r.fetchedItemsKey in U ? l.value = U[r.fetchedItemsKey] : U != null && U.id ? l.value = [U] : l.value = [];
359
362
  } else if (w) {
360
363
  const v = [];
361
364
  A(w) && r.searchKeys.includes("id") ? v.push((async () => {
362
- const { data: P } = await n.get(`${y}/${w}`);
363
- return [P[r.fetchedItemsKey] ?? P];
365
+ const { data: q } = await n.get(`${y}/${w}`);
366
+ return [q[r.fetchedItemsKey] ?? q];
364
367
  })()) : v.push(
365
- ...r.searchKeys.filter((P) => P !== "id").map(async (P) => {
366
- const { data: F } = await n.get(`${y}?${P}=${w}`);
367
- return F[r.fetchedItemsKey];
368
+ ...r.searchKeys.filter((q) => q !== "id").map(async (q) => {
369
+ const { data: j } = await n.get(`${y}?${q}=${w}`);
370
+ return j[r.fetchedItemsKey];
368
371
  })
369
372
  );
370
- const B = await Promise.all(v), L = /* @__PURE__ */ new Set();
371
- l.value = [], (g = B == null ? void 0 : B.forEach) == null || g.call(B, (P) => {
372
- var F;
373
- (F = P == null ? void 0 : P.forEach) == null || F.call(P, (Y) => {
373
+ const U = await Promise.all(v), L = /* @__PURE__ */ new Set();
374
+ l.value = [], (g = U == null ? void 0 : U.forEach) == null || g.call(U, (q) => {
375
+ var j;
376
+ (j = q == null ? void 0 : q.forEach) == null || j.call(q, (Y) => {
374
377
  L.has(Y.id) || (L.add(Y.id), l.value.push(Y));
375
378
  });
376
379
  });
@@ -383,11 +386,11 @@ function qt(e, a, t, r = {
383
386
  }
384
387
  else
385
388
  m.value = !0, _.value = "", w ? (l.value = (z = k.value) == null ? void 0 : z.filter((v) => {
386
- var B;
389
+ var U;
387
390
  let L = !1;
388
- for (const P of r.searchKeys) {
389
- const F = typeof v[P] == "string" ? (B = v[P]) == null ? void 0 : B.toLowerCase() : v[P];
390
- F != null && F.includes(w.toLowerCase()) && (L = !0);
391
+ for (const q of r.searchKeys) {
392
+ const j = typeof v[q] == "string" ? (U = v[q]) == null ? void 0 : U.toLowerCase() : v[q];
393
+ j != null && j.includes(w.toLowerCase()) && (L = !0);
391
394
  }
392
395
  return L;
393
396
  }), (!l.value || !l.value.length) && (_.value = i("debouncedFilter.errors.invalid"))) : l.value = k.value, m.value = !1;
@@ -402,13 +405,13 @@ function qt(e, a, t, r = {
402
405
  debouncedQueryChange: d
403
406
  };
404
407
  }
405
- function Bt(e, a) {
408
+ function Ut(e, a) {
406
409
  const t = s(a), r = S(
407
410
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
408
411
  );
409
412
  return r.value.search = "", (n) => `${r.value.href}/${n}`;
410
413
  }
411
- function Ut() {
414
+ function Bt() {
412
415
  const { i18n: { t: e } } = Ae();
413
416
  return {
414
417
  getMessageFromError: (a) => {
@@ -436,7 +439,7 @@ function Ut() {
436
439
  }
437
440
  };
438
441
  }
439
- function Vt(e) {
442
+ function Dt(e) {
440
443
  const a = window.location.origin, t = a.endsWith("/") ? a : `${a}/`;
441
444
  try {
442
445
  const r = e.join("/"), n = `${t}${r}`, i = e.some((o) => o.trim() === "");
@@ -448,7 +451,7 @@ function Vt(e) {
448
451
  }
449
452
  }
450
453
  function et(e, a) {
451
- const t = C(s(e)), r = C(s(a)), n = S(
454
+ const t = x(s(e)), r = x(s(a)), n = S(
452
455
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
453
456
  ), i = S(
454
457
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
@@ -457,18 +460,18 @@ function et(e, a) {
457
460
  const { page: d, pageSize: m, offset: p, sortColumnKey: _, sortColumnOrder: l, query: N } = o;
458
461
  try {
459
462
  let k = new URL(i.value.href);
460
- return n.value && N ? (k.search = "", k = t.value.app === "konnect" ? new URL(`${k.href}?filter[name][contains]=${N}`) : new URL(`${k.href}/${N}/`)) : (n.value || new URLSearchParams(N).forEach((V, y) => {
461
- k.searchParams.append(y, V);
463
+ return n.value && N ? (k.search = "", k = t.value.app === "konnect" ? new URL(`${k.href}?filter[name][contains]=${N}`) : new URL(`${k.href}/${N}/`)) : (n.value || new URLSearchParams(N).forEach((D, y) => {
464
+ k.searchParams.append(y, D);
462
465
  }), _ && k.searchParams.append("sort_by", _), l === "desc" && k.searchParams.append("sort_desc", "1"), k.searchParams.append("size", String(m))), p && d !== 1 && k.searchParams.append("offset", String(p)), k.href;
463
466
  } catch (k) {
464
467
  return console.error("RouteList(fetcher)", k), r.value;
465
468
  }
466
469
  };
467
470
  }
468
- function Dt(e, a, t = "data") {
471
+ function Vt(e, a, t = "data") {
469
472
  const r = s(a), { axiosInstance: n } = Ne({
470
473
  headers: e.requestHeaders
471
- }), i = et(e, r), o = C({
474
+ }), i = et(e, r), o = x({
472
475
  status: oe.Idle
473
476
  });
474
477
  return { fetcher: async (d) => {
@@ -514,22 +517,22 @@ function Lt() {
514
517
  convertKeyToTitle: e
515
518
  };
516
519
  }
517
- const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, je = (e) => {
520
+ const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Fe = (e) => {
518
521
  if (typeof e != "string")
519
522
  throw new TypeError("Invalid argument expected string");
520
523
  const a = e.match(tt);
521
524
  if (!a)
522
525
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
523
526
  return a.shift(), a;
524
- }, Fe = (e) => e === "*" || e === "x" || e === "X", Pe = (e) => {
527
+ }, je = (e) => e === "*" || e === "x" || e === "X", qe = (e) => {
525
528
  const a = parseInt(e, 10);
526
529
  return isNaN(a) ? e : a;
527
530
  }, Ht = (e, a) => typeof e != typeof a ? [String(e), String(a)] : [e, a], zt = (e, a) => {
528
- if (Fe(e) || Fe(a))
531
+ if (je(e) || je(a))
529
532
  return 0;
530
- const [t, r] = Ht(Pe(e), Pe(a));
533
+ const [t, r] = Ht(qe(e), qe(a));
531
534
  return t > r ? 1 : t < r ? -1 : 0;
532
- }, Re = (e, a) => {
535
+ }, Pe = (e, a) => {
533
536
  for (let t = 0; t < Math.max(e.length, a.length); t++) {
534
537
  const r = zt(e[t] || "0", a[t] || "0");
535
538
  if (r !== 0)
@@ -537,9 +540,9 @@ const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
537
540
  }
538
541
  return 0;
539
542
  }, Wt = (e, a) => {
540
- const t = je(e), r = je(a), n = t.pop(), i = r.pop(), o = Re(t, r);
541
- return o !== 0 ? o : n && i ? Re(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
542
- }, qe = (e, a, t) => {
543
+ const t = Fe(e), r = Fe(a), n = t.pop(), i = r.pop(), o = Pe(t, r);
544
+ return o !== 0 ? o : n && i ? Pe(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
545
+ }, Re = (e, a, t) => {
543
546
  Jt(t);
544
547
  const r = Wt(e, a);
545
548
  return rt[t].includes(r);
@@ -550,11 +553,11 @@ const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
550
553
  "<=": [-1, 0],
551
554
  "<": [-1],
552
555
  "!=": [-1, 1]
553
- }, Be = Object.keys(rt), Jt = (e) => {
556
+ }, Ue = Object.keys(rt), Jt = (e) => {
554
557
  if (typeof e != "string")
555
558
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
556
- if (Be.indexOf(e) === -1)
557
- throw new Error(`Invalid operator, expected one of ${Be.join("|")}`);
559
+ if (Ue.indexOf(e) === -1)
560
+ throw new Error(`Invalid operator, expected one of ${Ue.join("|")}`);
558
561
  }, Yt = (e) => typeof e == "string" && /^[v\d]/.test(e) && tt.test(e);
559
562
  function Zt(e) {
560
563
  const { gatewayInfo: a, supportedRange: t } = e;
@@ -567,10 +570,10 @@ function Zt(e) {
567
570
  if (!i)
568
571
  return !1;
569
572
  const [o, d] = i;
570
- return !(o && qe(n, o, "<") || d && qe(n, d, ">"));
573
+ return !(o && Re(n, o, "<") || d && Re(n, d, ">"));
571
574
  }
572
575
  function Gt(e) {
573
- const a = C(0), t = C(0), r = C(!1);
576
+ const a = x(0), t = x(0), r = x(!1);
574
577
  return ne(e, (n) => {
575
578
  n && !r.value && (a.value = n.offsetWidth, t.value = n.scrollWidth, r.value = !0);
576
579
  }), {
@@ -579,11 +582,11 @@ function Gt(e) {
579
582
  }
580
583
  const se = {
581
584
  useAxios: Ne,
582
- useDebouncedFilter: qt,
583
- useDeleteUrlBuilder: Bt,
584
- useErrors: Ut,
585
- useExternalLinkCreator: Vt,
586
- useFetcher: Dt,
585
+ useDebouncedFilter: Rt,
586
+ useDeleteUrlBuilder: Ut,
587
+ useErrors: Bt,
588
+ useExternalLinkCreator: Dt,
589
+ useFetcher: Vt,
587
590
  useFetchUrlBuilder: et,
588
591
  useHelpers: Xe,
589
592
  useStringHelpers: Lt,
@@ -680,7 +683,7 @@ function mr(e, a) {
680
683
  throw new le('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
681
684
  }
682
685
  var H = mr;
683
- function Ue(e, a) {
686
+ function Be(e, a) {
684
687
  var t = [];
685
688
  return e[a].forEach(function(r) {
686
689
  var n = t.length;
@@ -709,10 +712,10 @@ function yr() {
709
712
  arguments[a].forEach(r);
710
713
  return e;
711
714
  }
712
- function xe(e) {
715
+ function Ce(e) {
713
716
  return this.extend(e);
714
717
  }
715
- xe.prototype.extend = function(e) {
718
+ Ce.prototype.extend = function(e) {
716
719
  var a = [], t = [];
717
720
  if (e instanceof H)
718
721
  t.push(e);
@@ -733,10 +736,10 @@ xe.prototype.extend = function(e) {
733
736
  if (!(n instanceof H))
734
737
  throw new le("Specified list of YAML types (or a single Type object) contains a non-Type object.");
735
738
  });
736
- var r = Object.create(xe.prototype);
737
- return r.implicit = (this.implicit || []).concat(a), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ue(r, "implicit"), r.compiledExplicit = Ue(r, "explicit"), r.compiledTypeMap = yr(r.compiledImplicit, r.compiledExplicit), r;
739
+ var r = Object.create(Ce.prototype);
740
+ return r.implicit = (this.implicit || []).concat(a), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Be(r, "implicit"), r.compiledExplicit = Be(r, "explicit"), r.compiledTypeMap = yr(r.compiledImplicit, r.compiledExplicit), r;
738
741
  };
739
- var gr = xe, vr = new H("tag:yaml.org,2002:str", {
742
+ var gr = Ce, vr = new H("tag:yaml.org,2002:str", {
740
743
  kind: "scalar",
741
744
  construct: function(e) {
742
745
  return e !== null ? e : "";
@@ -794,13 +797,13 @@ var Ir = new H("tag:yaml.org,2002:null", {
794
797
  },
795
798
  defaultStyle: "lowercase"
796
799
  });
797
- function xr(e) {
800
+ function Cr(e) {
798
801
  if (e === null)
799
802
  return !1;
800
803
  var a = e.length;
801
804
  return a === 4 && (e === "true" || e === "True" || e === "TRUE") || a === 5 && (e === "false" || e === "False" || e === "FALSE");
802
805
  }
803
- function Cr(e) {
806
+ function xr(e) {
804
807
  return e === "true" || e === "True" || e === "TRUE";
805
808
  }
806
809
  function Tr(e) {
@@ -808,8 +811,8 @@ function Tr(e) {
808
811
  }
809
812
  var Er = new H("tag:yaml.org,2002:bool", {
810
813
  kind: "scalar",
811
- resolve: xr,
812
- construct: Cr,
814
+ resolve: Cr,
815
+ construct: xr,
813
816
  predicate: Tr,
814
817
  represent: {
815
818
  lowercase: function(e) {
@@ -880,7 +883,7 @@ function Mr(e) {
880
883
  }
881
884
  return !(!r || n === "_");
882
885
  }
883
- function Kr(e) {
886
+ function $r(e) {
884
887
  var a = e, t = 1, r;
885
888
  if (a.indexOf("_") !== -1 && (a = a.replace(/_/g, "")), r = a[0], (r === "-" || r === "+") && (r === "-" && (t = -1), a = a.slice(1), r = a[0]), a === "0")
886
889
  return 0;
@@ -894,14 +897,14 @@ function Kr(e) {
894
897
  }
895
898
  return t * parseInt(a, 10);
896
899
  }
897
- function $r(e) {
900
+ function Kr(e) {
898
901
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Oe.isNegativeZero(e);
899
902
  }
900
- var jr = new H("tag:yaml.org,2002:int", {
903
+ var Fr = new H("tag:yaml.org,2002:int", {
901
904
  kind: "scalar",
902
905
  resolve: Mr,
903
- construct: Kr,
904
- predicate: $r,
906
+ construct: $r,
907
+ predicate: Kr,
905
908
  represent: {
906
909
  binary: function(e) {
907
910
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -924,21 +927,21 @@ var jr = new H("tag:yaml.org,2002:int", {
924
927
  decimal: [10, "dec"],
925
928
  hexadecimal: [16, "hex"]
926
929
  }
927
- }), Fr = new RegExp(
930
+ }), jr = new RegExp(
928
931
  // 2.5e4, 2.5 and integers
929
932
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
930
933
  );
931
- function Pr(e) {
932
- return !(e === null || !Fr.test(e) || // Quick hack to not allow integers end with `_`
934
+ function qr(e) {
935
+ return !(e === null || !jr.test(e) || // Quick hack to not allow integers end with `_`
933
936
  // Probably should update regexp & check speed
934
937
  e[e.length - 1] === "_");
935
938
  }
936
- function Rr(e) {
939
+ function Pr(e) {
937
940
  var a, t;
938
941
  return a = e.replace(/_/g, "").toLowerCase(), t = a[0] === "-" ? -1 : 1, "+-".indexOf(a[0]) >= 0 && (a = a.slice(1)), a === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : a === ".nan" ? NaN : t * parseFloat(a, 10);
939
942
  }
940
- var qr = /^[-+]?[0-9]+e/;
941
- function Br(e, a) {
943
+ var Rr = /^[-+]?[0-9]+e/;
944
+ function Ur(e, a) {
942
945
  var t;
943
946
  if (isNaN(e))
944
947
  switch (a) {
@@ -969,26 +972,26 @@ function Br(e, a) {
969
972
  }
970
973
  else if (Oe.isNegativeZero(e))
971
974
  return "-0.0";
972
- return t = e.toString(10), qr.test(t) ? t.replace("e", ".e") : t;
975
+ return t = e.toString(10), Rr.test(t) ? t.replace("e", ".e") : t;
973
976
  }
974
- function Ur(e) {
977
+ function Br(e) {
975
978
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Oe.isNegativeZero(e));
976
979
  }
977
- var Vr = new H("tag:yaml.org,2002:float", {
980
+ var Dr = new H("tag:yaml.org,2002:float", {
978
981
  kind: "scalar",
979
- resolve: Pr,
980
- construct: Rr,
981
- predicate: Ur,
982
- represent: Br,
982
+ resolve: qr,
983
+ construct: Pr,
984
+ predicate: Br,
985
+ represent: Ur,
983
986
  defaultStyle: "lowercase"
984
- }), Dr = kr.extend({
987
+ }), Vr = kr.extend({
985
988
  implicit: [
986
989
  Ir,
987
990
  Er,
988
- jr,
989
- Vr
991
+ Fr,
992
+ Dr
990
993
  ]
991
- }), Lr = Dr, it = new RegExp(
994
+ }), Lr = Vr, it = new RegExp(
992
995
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
993
996
  ), ot = new RegExp(
994
997
  "^([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]))?))?$"
@@ -1144,13 +1147,13 @@ Lr.extend({
1144
1147
  ma
1145
1148
  ]
1146
1149
  });
1147
- function Ve(e) {
1150
+ function De(e) {
1148
1151
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1149
1152
  ` : 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" : "";
1150
1153
  }
1151
1154
  var ya = new Array(256), ga = new Array(256);
1152
1155
  for (var ce = 0; ce < 256; ce++)
1153
- ya[ce] = Ve(ce) ? 1 : 0, ga[ce] = Ve(ce);
1156
+ ya[ce] = De(ce) ? 1 : 0, ga[ce] = De(ce);
1154
1157
  const va = {
1155
1158
  class: "form-actions",
1156
1159
  "data-testid": "form-actions"
@@ -1206,13 +1209,13 @@ const va = {
1206
1209
  var t;
1207
1210
  const r = a, n = e, i = Ze(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: d } = se.useErrors(), { axiosInstance: m } = se.useAxios({
1208
1211
  headers: (t = n.config) == null ? void 0 : t.requestHeaders
1209
- }), p = C(!1), _ = C(!1), l = C(""), N = S(() => n.canSubmit === !1 || n.isReadonly), k = S(() => {
1212
+ }), p = x(!1), _ = x(!1), l = x(""), N = S(() => n.canSubmit === !1 || n.isReadonly), k = S(() => {
1210
1213
  var u, T;
1211
1214
  if (!n.editId)
1212
1215
  return "";
1213
1216
  let E = `${n.config.apiBaseUrl}${n.fetchUrl}`;
1214
1217
  return n.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((u = n.config) == null ? void 0 : u.controlPlaneId) || "") : n.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (T = n.config) != null && T.workspace ? `/${n.config.workspace}` : "")), E = E.replace(/{id}/gi, n.editId), E;
1215
- }), V = () => {
1218
+ }), D = () => {
1216
1219
  n.config.cancelRoute ? i.push(n.config.cancelRoute) : y();
1217
1220
  }, y = () => {
1218
1221
  r("cancel");
@@ -1221,7 +1224,7 @@ const va = {
1221
1224
  };
1222
1225
  return ne(() => p.value, (u) => {
1223
1226
  r("loading", u);
1224
- }, { immediate: !0 }), Ce(async () => {
1227
+ }, { immediate: !0 }), xe(async () => {
1225
1228
  if (n.editId)
1226
1229
  try {
1227
1230
  _.value = !1, p.value = !0;
@@ -1234,39 +1237,39 @@ const va = {
1234
1237
  p.value = !1;
1235
1238
  }
1236
1239
  }), (u, T) => {
1237
- const E = j("KSkeleton"), w = j("KEmptyState"), g = j("KAlert"), O = j("KButton"), z = j("KCard");
1238
- return b(), D(z, { class: "kong-ui-entity-base-form" }, {
1240
+ const E = F("KSkeleton"), w = F("KEmptyState"), g = F("KAlert"), O = F("KButton"), z = F("KCard");
1241
+ return b(), V(z, { class: "kong-ui-entity-base-form" }, {
1239
1242
  default: f(() => [
1240
- p.value ? (b(), D(E, {
1243
+ p.value ? (b(), V(E, {
1241
1244
  key: 0,
1242
1245
  type: "form"
1243
- })) : _.value ? (b(), D(w, {
1246
+ })) : _.value ? (b(), V(w, {
1244
1247
  key: 1,
1245
1248
  "cta-text": s(o)("baseForm.actions.back"),
1246
1249
  "data-testid": "form-fetch-error",
1247
- "handle-click": V,
1250
+ "handle-click": D,
1248
1251
  "is-error": !0
1249
1252
  }, {
1250
1253
  message: f(() => [
1251
- $("h3", null, M(l.value), 1)
1254
+ K("h3", null, M(l.value), 1)
1252
1255
  ]),
1253
1256
  _: 1
1254
- }, 8, ["cta-text"])) : (b(), q("form", {
1257
+ }, 8, ["cta-text"])) : (b(), R("form", {
1255
1258
  key: 2,
1256
1259
  "data-testid": "form-content",
1257
1260
  onReset: be(y, ["prevent"]),
1258
1261
  onSubmit: be(A, ["prevent"])
1259
1262
  }, [
1260
1263
  G(u.$slots, "default", {}, void 0, !0),
1261
- e.errorMessage ? (b(), D(g, {
1264
+ e.errorMessage ? (b(), V(g, {
1262
1265
  key: 0,
1263
1266
  "alert-message": e.errorMessage,
1264
1267
  appearance: "danger",
1265
1268
  "data-testid": "form-error"
1266
1269
  }, null, 8, ["alert-message"])) : X("", !0),
1267
- $("div", va, [
1270
+ K("div", va, [
1268
1271
  G(u.$slots, "form-actions", {}, () => [
1269
- x(O, {
1272
+ C(O, {
1270
1273
  appearance: "secondary",
1271
1274
  "data-testid": "form-cancel",
1272
1275
  disabled: e.isReadonly,
@@ -1277,7 +1280,7 @@ const va = {
1277
1280
  ]),
1278
1281
  _: 1
1279
1282
  }, 8, ["disabled"]),
1280
- x(O, {
1283
+ C(O, {
1281
1284
  appearance: "primary",
1282
1285
  "data-testid": "form-submit",
1283
1286
  disabled: N.value,
@@ -1329,7 +1332,7 @@ const va = {
1329
1332
  }, d = () => {
1330
1333
  var y, A, u;
1331
1334
  p.value = ((y = r.value) == null ? void 0 : y.getBoundingClientRect().width) || 0, _.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, l.value = ((u = m.value) == null ? void 0 : u.innerText) || "";
1332
- }, m = C({}), p = C(0), _ = C(0), l = C(""), N = S(() => [r.value, t.value]), k = ne(
1335
+ }, m = x({}), p = x(0), _ = x(0), l = x(""), N = S(() => [r.value, t.value]), k = ne(
1333
1336
  N,
1334
1337
  (y) => {
1335
1338
  if (n.value && (o(), "ResizeObserver" in window && window)) {
@@ -1343,21 +1346,21 @@ const va = {
1343
1346
  }
1344
1347
  },
1345
1348
  { immediate: !0, flush: "post", deep: !0 }
1346
- ), V = S(() => n.value ? p.value > _.value : !1);
1349
+ ), D = S(() => n.value ? p.value > _.value : !1);
1347
1350
  return ut(() => {
1348
1351
  d();
1349
1352
  }), dt(() => {
1350
1353
  k();
1351
1354
  }), (y, A) => {
1352
- const u = j("KTooltip");
1353
- return b(), q("span", {
1355
+ const u = F("KTooltip");
1356
+ return b(), R("span", {
1354
1357
  ref_key: "contentRef",
1355
1358
  ref: m,
1356
1359
  class: "content-wrapper"
1357
1360
  }, [
1358
- n.value ? (b(), q("span", ka, [
1359
- x(u, {
1360
- label: V.value ? l.value : "",
1361
+ n.value ? (b(), R("span", ka, [
1362
+ C(u, {
1363
+ label: D.value ? l.value : "",
1361
1364
  "max-width": "300",
1362
1365
  placement: "bottomStart"
1363
1366
  }, {
@@ -1373,7 +1376,7 @@ const va = {
1373
1376
  }), Sa = /* @__PURE__ */ ue(wa, [["__scopeId", "data-v-e42a20c9"]]), _a = { class: "toolbar-container" }, Ia = {
1374
1377
  key: 0,
1375
1378
  class: "toolbar-button-container"
1376
- }, xa = ["data-testid"], Ca = /* @__PURE__ */ ee({
1379
+ }, Ca = ["data-testid"], xa = /* @__PURE__ */ ee({
1377
1380
  __name: "EntityBaseTable",
1378
1381
  props: {
1379
1382
  // table header configuration
@@ -1511,7 +1514,7 @@ const va = {
1511
1514
  "data-rowid": g.id,
1512
1515
  "data-testid": g.name,
1513
1516
  ...t.rowAttributes(g)
1514
- }), _ = C({}), l = (g) => {
1517
+ }), _ = x({}), l = (g) => {
1515
1518
  var O;
1516
1519
  return (O = _.value) == null ? void 0 : O.$el.querySelector(`[data-rowid="${g.id}"]`);
1517
1520
  }, N = (g) => {
@@ -1525,8 +1528,8 @@ const va = {
1525
1528
  textOverflow: "ellipsis"
1526
1529
  }), O;
1527
1530
  }, k = () => {
1528
- r("empty-state-cta-clicked"), V();
1529
- }, V = () => {
1531
+ r("empty-state-cta-clicked"), D();
1532
+ }, D = () => {
1530
1533
  r("clear-search-input");
1531
1534
  }, y = S(() => t.disableRowClick ? void 0 : (g, O) => {
1532
1535
  r("click:row", O);
@@ -1542,13 +1545,13 @@ const va = {
1542
1545
  t.preferencesStorageKey && u(t.preferencesStorageKey, g);
1543
1546
  };
1544
1547
  return (g, O) => {
1545
- const z = j("KIcon"), v = j("KButton"), B = j("KDropdown"), L = j("KTable"), P = j("KCard");
1546
- return b(), D(P, {
1548
+ const z = F("KIcon"), v = F("KButton"), U = F("KDropdown"), L = F("KTable"), q = F("KCard");
1549
+ return b(), V(q, {
1547
1550
  class: "kong-ui-entity-base-table",
1548
1551
  title: e.title
1549
1552
  }, {
1550
1553
  default: f(() => [
1551
- x(L, {
1554
+ C(L, {
1552
1555
  ref_key: "tableRefs",
1553
1556
  ref: _,
1554
1557
  "cache-identifier": o.value,
@@ -1577,43 +1580,43 @@ const va = {
1577
1580
  "search-input": e.query,
1578
1581
  onKtableEmptyStateCtaClicked: k,
1579
1582
  "onRow:click": y.value,
1580
- onSort: O[0] || (O[0] = (F) => A(F)),
1583
+ onSort: O[0] || (O[0] = (j) => A(j)),
1581
1584
  "onUpdate:tablePreferences": w
1582
1585
  }, We({
1583
- toolbar: f(({ state: F }) => [
1584
- me($("div", _a, [
1586
+ toolbar: f(({ state: j }) => [
1587
+ me(K("div", _a, [
1585
1588
  G(g.$slots, "toolbar-filter", {}, void 0, !0),
1586
- g.$slots["toolbar-button"] ? (b(), q("div", Ia, [
1589
+ g.$slots["toolbar-button"] ? (b(), R("div", Ia, [
1587
1590
  G(g.$slots, "toolbar-button", {}, void 0, !0)
1588
1591
  ])) : X("", !0)
1589
1592
  ], 512), [
1590
- [ye, d(F)]
1593
+ [ye, d(j)]
1591
1594
  ])
1592
1595
  ]),
1593
- actions: f(({ row: F, rowKey: Y, rowValue: te }) => [
1594
- $("div", {
1596
+ actions: f(({ row: j, rowKey: Y, rowValue: te }) => [
1597
+ K("div", {
1595
1598
  class: "actions-container",
1596
- "data-testid": F.name
1599
+ "data-testid": j.name
1597
1600
  }, [
1598
- x(B, {
1601
+ C(U, {
1599
1602
  "kpop-attributes": { placement: "bottomEnd" },
1600
1603
  width: e.dropdownMenuWidth
1601
1604
  }, {
1602
1605
  items: f(() => [
1603
1606
  G(g.$slots, "actions", {
1604
- row: F,
1607
+ row: j,
1605
1608
  rowKey: Y,
1606
1609
  rowValue: te
1607
1610
  }, void 0, !0)
1608
1611
  ]),
1609
1612
  default: f(() => [
1610
- x(v, {
1613
+ C(v, {
1611
1614
  class: "actions-trigger",
1612
1615
  "data-testid": "overflow-actions-button",
1613
1616
  size: "small"
1614
1617
  }, {
1615
1618
  icon: f(() => [
1616
- x(z, {
1619
+ C(z, {
1617
1620
  color: s(Xt),
1618
1621
  icon: "more",
1619
1622
  size: "16"
@@ -1624,14 +1627,14 @@ const va = {
1624
1627
  ]),
1625
1628
  _: 2
1626
1629
  }, 1032, ["width"])
1627
- ], 8, xa)
1630
+ ], 8, Ca)
1628
1631
  ]),
1629
1632
  _: 2
1630
1633
  }, [
1631
- Te(e.tableHeaders, (F, Y) => ({
1634
+ Te(e.tableHeaders, (j, Y) => ({
1632
1635
  name: Y,
1633
1636
  fn: f(({ row: te, rowKey: de, rowValue: re }) => [
1634
- x(Sa, {
1637
+ C(Sa, {
1635
1638
  "key-name": String(Y),
1636
1639
  "row-el": l(te)
1637
1640
  }, {
@@ -1654,7 +1657,7 @@ const va = {
1654
1657
  }, 8, ["title"]);
1655
1658
  };
1656
1659
  }
1657
- }), Ta = /* @__PURE__ */ ue(Ca, [["__scopeId", "data-v-57b5a97b"]]), Ea = {
1660
+ }), Ta = /* @__PURE__ */ ue(xa, [["__scopeId", "data-v-57b5a97b"]]), Ea = {
1658
1661
  key: 0,
1659
1662
  class: "kong-ui-entity-delete-error"
1660
1663
  }, Na = {
@@ -1705,8 +1708,8 @@ const va = {
1705
1708
  n("proceed");
1706
1709
  };
1707
1710
  return (m, p) => {
1708
- const _ = j("KAlert"), l = j("KPrompt");
1709
- return b(), D(l, {
1711
+ const _ = F("KAlert"), l = F("KPrompt");
1712
+ return b(), V(l, {
1710
1713
  "action-button-text": "Yes, delete",
1711
1714
  "action-pending": e.actionPending,
1712
1715
  class: "kong-ui-entity-delete-modal",
@@ -1718,15 +1721,15 @@ const va = {
1718
1721
  onProceed: d
1719
1722
  }, {
1720
1723
  "body-content": f(() => [
1721
- e.error ? (b(), q("div", Ea, [
1722
- x(_, { appearance: "danger" }, {
1724
+ e.error ? (b(), R("div", Ea, [
1725
+ C(_, { appearance: "danger" }, {
1723
1726
  alertMessage: f(() => [
1724
1727
  J(M(e.error), 1)
1725
1728
  ]),
1726
1729
  _: 1
1727
1730
  })
1728
1731
  ])) : X("", !0),
1729
- x(s(t), {
1732
+ C(s(t), {
1730
1733
  class: "message",
1731
1734
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1732
1735
  tag: "p"
@@ -1739,14 +1742,14 @@ const va = {
1739
1742
  r.entityName ? {
1740
1743
  name: "entityName",
1741
1744
  fn: f(() => [
1742
- $("strong", null, M(r.entityName), 1)
1745
+ K("strong", null, M(r.entityName), 1)
1743
1746
  ]),
1744
1747
  key: "0"
1745
1748
  } : void 0
1746
1749
  ]), 1032, ["keypath"]),
1747
- r.description || m.$slots.description ? (b(), q("div", Na, [
1750
+ r.description || m.$slots.description ? (b(), R("div", Na, [
1748
1751
  G(m.$slots, "description", {}, () => [
1749
- $("p", null, M(r.description), 1)
1752
+ K("p", null, M(r.description), 1)
1750
1753
  ], !0)
1751
1754
  ])) : X("", !0)
1752
1755
  ]),
@@ -1760,7 +1763,7 @@ const va = {
1760
1763
  viewBox: "0 0 20 20",
1761
1764
  width: "20",
1762
1765
  xmlns: "http://www.w3.org/2000/svg"
1763
- }, Ka = {
1766
+ }, $a = {
1764
1767
  id: "mask0_180_20349",
1765
1768
  height: "20",
1766
1769
  maskUnits: "userSpaceOnUse",
@@ -1768,7 +1771,7 @@ const va = {
1768
1771
  width: "20",
1769
1772
  x: "0",
1770
1773
  y: "0"
1771
- }, $a = ["fill"], ja = { mask: "url(#mask0_180_20349)" }, Fa = ["fill"], De = /* @__PURE__ */ ee({
1774
+ }, Ka = ["fill"], Fa = { mask: "url(#mask0_180_20349)" }, ja = ["fill"], Ve = /* @__PURE__ */ ee({
1772
1775
  __name: "IconFilter",
1773
1776
  props: {
1774
1777
  color: {
@@ -1777,26 +1780,26 @@ const va = {
1777
1780
  }
1778
1781
  },
1779
1782
  setup(e) {
1780
- return (a, t) => (b(), q("svg", Ma, [
1781
- $("mask", Ka, [
1782
- $("rect", {
1783
+ return (a, t) => (b(), R("svg", Ma, [
1784
+ K("mask", $a, [
1785
+ K("rect", {
1783
1786
  fill: e.color,
1784
1787
  height: "20",
1785
1788
  width: "20"
1786
- }, null, 8, $a)
1789
+ }, null, 8, Ka)
1787
1790
  ]),
1788
- $("g", ja, [
1789
- $("path", {
1791
+ K("g", Fa, [
1792
+ K("path", {
1790
1793
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
1791
1794
  fill: e.color
1792
- }, null, 8, Fa)
1795
+ }, null, 8, ja)
1793
1796
  ])
1794
1797
  ]));
1795
1798
  }
1796
- }), Pa = {
1799
+ }), qa = {
1797
1800
  key: 1,
1798
1801
  class: "kong-ui-entity-filter"
1799
- }, Ra = { class: "menu-item-title" }, qa = { class: "menu-item-indicator" }, Ba = { class: "menu-item-body" }, Ua = ["for"], Va = { class: "menu-item-buttons" }, Da = { class: "filter-clear-button-container" }, La = /* @__PURE__ */ ee({
1802
+ }, Pa = { class: "menu-item-title" }, Ra = { class: "menu-item-indicator" }, Ua = { class: "menu-item-body" }, Ba = ["for"], Da = { class: "menu-item-buttons" }, Va = { class: "filter-clear-button-container" }, La = /* @__PURE__ */ ee({
1800
1803
  __name: "EntityFilter",
1801
1804
  props: {
1802
1805
  // filter config, either exact match or fuzzy match
@@ -1816,7 +1819,7 @@ const va = {
1816
1819
  },
1817
1820
  emits: ["update:modelValue"],
1818
1821
  setup(e, { emit: a }) {
1819
- const { i18n: { t } } = se.useI18n(), r = e, n = a, i = C(!1), o = C({}), d = S(() => {
1822
+ const { i18n: { t } } = se.useI18n(), r = e, n = a, i = x(!1), o = x({}), d = S(() => {
1820
1823
  const u = [];
1821
1824
  return new URLSearchParams(r.modelValue).forEach((T, E) => {
1822
1825
  T !== "" && u.push(E);
@@ -1846,7 +1849,7 @@ const va = {
1846
1849
  }, k = (u) => {
1847
1850
  var T, E;
1848
1851
  return ((E = (T = r.config.schema) == null ? void 0 : T[u]) == null ? void 0 : E.type) ?? "text";
1849
- }, V = (u) => {
1852
+ }, D = (u) => {
1850
1853
  o.value = {
1851
1854
  ...o.value,
1852
1855
  [u]: ""
@@ -1858,8 +1861,8 @@ const va = {
1858
1861
  u && (i.value = !1), n("update:modelValue", new URLSearchParams(T).toString());
1859
1862
  };
1860
1863
  return (u, T) => {
1861
- const E = j("KInput"), w = j("KButton"), g = j("KSelect"), O = j("KMenuItem"), z = j("KMenu");
1862
- return e.config.isExactMatch ? (b(), D(E, {
1864
+ const E = F("KInput"), w = F("KButton"), g = F("KSelect"), O = F("KMenuItem"), z = F("KMenu");
1865
+ return e.config.isExactMatch ? (b(), V(E, {
1863
1866
  key: 0,
1864
1867
  autocomplete: "off",
1865
1868
  class: "kong-ui-entity-filter-input",
@@ -1869,86 +1872,86 @@ const va = {
1869
1872
  "onUpdate:modelValue": _
1870
1873
  }, {
1871
1874
  before: f(() => [
1872
- x(De)
1875
+ C(Ve)
1873
1876
  ]),
1874
1877
  _: 1
1875
- }, 8, ["model-value", "placeholder"])) : (b(), q("div", Pa, [
1876
- x(w, {
1878
+ }, 8, ["model-value", "placeholder"])) : (b(), R("div", qa, [
1879
+ C(w, {
1877
1880
  appearance: "tertiary",
1878
1881
  "data-testid": "filter-button",
1879
1882
  onClick: p
1880
1883
  }, {
1881
1884
  default: f(() => [
1882
- x(De),
1885
+ C(Ve),
1883
1886
  J(" " + M(s(t)("filter.filterButtonText")) + " " + M(d.value.length > 0 ? `(${d.value.length})` : ""), 1)
1884
1887
  ]),
1885
1888
  _: 1
1886
1889
  }),
1887
- me($("div", {
1890
+ me(K("div", {
1888
1891
  class: "kong-ui-entity-filter-backdrop",
1889
1892
  onClick: p
1890
1893
  }, null, 512), [
1891
1894
  [ye, i.value]
1892
1895
  ]),
1893
- me(x(z, { class: "kong-ui-entity-filter-menu" }, {
1896
+ me(C(z, { class: "kong-ui-entity-filter-menu" }, {
1894
1897
  body: f(() => [
1895
- (b(!0), q(Je, null, Te(m.value, (v, B) => (b(), D(O, {
1898
+ (b(!0), R(Je, null, Te(m.value, (v, U) => (b(), V(O, {
1896
1899
  key: v.value,
1897
1900
  "data-testid": v.value,
1898
1901
  expandable: "",
1899
- "last-menu-item": B === m.value.length - 1
1902
+ "last-menu-item": U === m.value.length - 1
1900
1903
  }, {
1901
1904
  itemTitle: f(() => [
1902
- $("span", Ra, [
1905
+ K("span", Pa, [
1903
1906
  J(M(v.label) + " ", 1),
1904
- me($("span", qa, null, 512), [
1907
+ me(K("span", Ra, null, 512), [
1905
1908
  [ye, d.value.includes(v.value)]
1906
1909
  ])
1907
1910
  ])
1908
1911
  ]),
1909
1912
  itemBody: f(() => {
1910
- var L, P;
1913
+ var L, q;
1911
1914
  return [
1912
- $("div", Ba, [
1913
- $("label", {
1915
+ K("div", Ua, [
1916
+ K("label", {
1914
1917
  class: "menu-item-label",
1915
1918
  for: l(v.value)
1916
- }, M(s(t)("filter.fieldLabel")), 9, Ua),
1917
- ((P = (L = e.config.schema) == null ? void 0 : L[v.value]) == null ? void 0 : P.type) === "select" ? (b(), D(g, {
1919
+ }, M(s(t)("filter.fieldLabel")), 9, Ba),
1920
+ ((q = (L = e.config.schema) == null ? void 0 : L[v.value]) == null ? void 0 : q.type) === "select" ? (b(), V(g, {
1918
1921
  key: 0,
1919
1922
  id: l(v.value),
1920
1923
  modelValue: o.value[v.value],
1921
- "onUpdate:modelValue": (F) => o.value[v.value] = F,
1924
+ "onUpdate:modelValue": (j) => o.value[v.value] = j,
1922
1925
  appearance: "select",
1923
1926
  items: N(v.value),
1924
1927
  placeholder: s(t)("filter.selectPlaceholder")
1925
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (b(), D(E, {
1928
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (b(), V(E, {
1926
1929
  key: 1,
1927
1930
  id: l(v.value),
1928
1931
  modelValue: o.value[v.value],
1929
- "onUpdate:modelValue": (F) => o.value[v.value] = F,
1932
+ "onUpdate:modelValue": (j) => o.value[v.value] = j,
1930
1933
  autocomplete: "off",
1931
1934
  placeholder: s(t)("filter.inputPlaceholder"),
1932
1935
  type: k(v.value)
1933
1936
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
1934
1937
  ]),
1935
- $("div", Va, [
1936
- x(w, {
1938
+ K("div", Da, [
1939
+ C(w, {
1937
1940
  appearance: "tertiary",
1938
1941
  "data-testid": "apply-filter",
1939
1942
  size: "small",
1940
- onClick: T[0] || (T[0] = (F) => A(!0))
1943
+ onClick: T[0] || (T[0] = (j) => A(!0))
1941
1944
  }, {
1942
1945
  default: f(() => [
1943
1946
  J(M(s(t)("filter.applyButtonText")), 1)
1944
1947
  ]),
1945
1948
  _: 1
1946
1949
  }),
1947
- x(w, {
1950
+ C(w, {
1948
1951
  appearance: "tertiary",
1949
1952
  "data-testid": "clear-filter",
1950
1953
  size: "small",
1951
- onClick: (F) => V(v.value)
1954
+ onClick: (j) => D(v.value)
1952
1955
  }, {
1953
1956
  default: f(() => [
1954
1957
  J(M(s(t)("filter.clearButtonText")), 1)
@@ -1962,8 +1965,8 @@ const va = {
1962
1965
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
1963
1966
  ]),
1964
1967
  actionButton: f(() => [
1965
- $("div", Da, [
1966
- x(w, {
1968
+ K("div", Va, [
1969
+ C(w, {
1967
1970
  appearance: "tertiary",
1968
1971
  size: "small",
1969
1972
  onClick: y
@@ -2004,7 +2007,7 @@ const va = {
2004
2007
  }
2005
2008
  },
2006
2009
  setup(e) {
2007
- const a = e, t = C(void 0), r = S(() => t.value === !0 || t.value !== void 0 && a.forceShow === !0);
2010
+ const a = e, t = x(void 0), r = S(() => t.value === !0 || t.value !== void 0 && a.forceShow === !0);
2008
2011
  return ne(() => a.authFunction, async () => {
2009
2012
  t.value = await a.authFunction();
2010
2013
  }, { immediate: !0 }), (n, i) => r.value ? G(n.$slots, "default", {
@@ -2047,31 +2050,31 @@ const va = {
2047
2050
  },
2048
2051
  setup(e) {
2049
2052
  const a = ct();
2050
- return (t, r) => (b(), q("fieldset", {
2053
+ return (t, r) => (b(), R("fieldset", {
2051
2054
  class: ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
2052
2055
  }, [
2053
- $("div", za, [
2054
- e.hideInfoHeader ? X("", !0) : (b(), q("div", {
2056
+ K("div", za, [
2057
+ e.hideInfoHeader ? X("", !0) : (b(), R("div", {
2055
2058
  key: 0,
2056
2059
  class: ke(["form-section-info", { sticky: e.stickyInfoHeader }])
2057
2060
  }, [
2058
- e.title ? (b(), q("h4", Wa, M(e.title), 1)) : X("", !0),
2059
- e.description || s(a).description ? (b(), q("div", Ja, [
2061
+ e.title ? (b(), R("h4", Wa, M(e.title), 1)) : X("", !0),
2062
+ e.description || s(a).description ? (b(), R("div", Ja, [
2060
2063
  G(t.$slots, "description", {}, () => [
2061
- $("p", null, M(e.description), 1)
2064
+ K("p", null, M(e.description), 1)
2062
2065
  ], !0)
2063
2066
  ])) : X("", !0),
2064
- s(a).footer ? (b(), q("div", Ya, [
2067
+ s(a).footer ? (b(), R("div", Ya, [
2065
2068
  G(t.$slots, "footer", {}, void 0, !0)
2066
2069
  ])) : X("", !0)
2067
2070
  ], 2)),
2068
- $("div", Za, [
2071
+ K("div", Za, [
2069
2072
  G(t.$slots, "default", {}, void 0, !0)
2070
2073
  ])
2071
2074
  ])
2072
2075
  ], 2));
2073
2076
  }
2074
- }), Le = /* @__PURE__ */ ue(Ga, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: lt, useDeleteUrlBuilder: Qa, useErrors: Xa, useExternalLinkCreator: Kn, useFetchUrlBuilder: $n, useFetcher: en, useDebouncedFilter: tn, useStringHelpers: jn, useHelpers: Fn, useGatewayFeatureSupported: Pn, useTruncationDetector: Rn } = se, rn = {
2077
+ }), Le = /* @__PURE__ */ ue(Ga, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: lt, useDeleteUrlBuilder: Qa, useErrors: Xa, useExternalLinkCreator: $n, useFetchUrlBuilder: Kn, useFetcher: en, useDebouncedFilter: tn, useStringHelpers: Fn, useHelpers: jn, useGatewayFeatureSupported: qn, useTruncationDetector: Pn } = se, rn = {
2075
2078
  fail: "Failed to copy id to clipboard",
2076
2079
  success: {
2077
2080
  prefix: "Successfully",
@@ -2088,7 +2091,7 @@ const va = {
2088
2091
  }, sn = (e) => (mt("data-v-641e0aee"), e = e(), yt(), e), cn = ["aria-hidden"], un = {
2089
2092
  key: 0,
2090
2093
  "data-testid": "kui-icon-svg-title"
2091
- }, dn = /* @__PURE__ */ sn(() => /* @__PURE__ */ $("path", {
2094
+ }, dn = /* @__PURE__ */ sn(() => /* @__PURE__ */ K("path", {
2092
2095
  d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
2093
2096
  fill: "currentColor"
2094
2097
  }, null, -1)), pn = /* @__PURE__ */ ee({
@@ -2160,14 +2163,14 @@ const va = {
2160
2163
  lineHeight: "0",
2161
2164
  width: t.value
2162
2165
  }));
2163
- return (n, i) => (b(), D(Ie(e.as), {
2166
+ return (n, i) => (b(), V(Ie(e.as), {
2164
2167
  "aria-hidden": e.decorative ? "true" : void 0,
2165
2168
  class: "kui-icon copy-icon",
2166
2169
  "data-testid": "kui-icon-wrapper-copy-icon",
2167
2170
  style: ft(r.value)
2168
2171
  }, {
2169
2172
  default: f(() => [
2170
- (b(), q("svg", {
2173
+ (b(), R("svg", {
2171
2174
  "aria-hidden": e.decorative ? "true" : void 0,
2172
2175
  "data-testid": "kui-icon-svg-copy-icon",
2173
2176
  fill: "none",
@@ -2177,7 +2180,7 @@ const va = {
2177
2180
  width: "100%",
2178
2181
  xmlns: "http://www.w3.org/2000/svg"
2179
2182
  }, [
2180
- e.title ? (b(), q("title", un, M(e.title), 1)) : X("", !0),
2183
+ e.title ? (b(), R("title", un, M(e.title), 1)) : X("", !0),
2181
2184
  dn
2182
2185
  ], 8, cn))
2183
2186
  ]),
@@ -2235,7 +2238,7 @@ const va = {
2235
2238
  placement: "bottomStart"
2236
2239
  } : {
2237
2240
  title: r.uuid
2238
- }), d = S(() => !!(r.tooltip && r.successTooltip)), m = C(r.tooltip), p = S(() => r.tooltip ? {
2241
+ }), d = S(() => !!(r.tooltip && r.successTooltip)), m = x(r.tooltip), p = S(() => r.tooltip ? {
2239
2242
  label: m.value,
2240
2243
  positionFixed: !0,
2241
2244
  maxWidth: "500px",
@@ -2248,7 +2251,7 @@ const va = {
2248
2251
  m.value = r.tooltip;
2249
2252
  }, 1800);
2250
2253
  }, N = (k) => {
2251
- var V, y;
2254
+ var D, y;
2252
2255
  if (!k(r.uuid)) {
2253
2256
  typeof i == "function" && i({
2254
2257
  type: "error",
@@ -2256,18 +2259,18 @@ const va = {
2256
2259
  }), d.value ? l(t("message.fail")) : n("error", r.uuid);
2257
2260
  return;
2258
2261
  }
2259
- const A = ((V = r.uuid) == null ? void 0 : V.length) > ze, u = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((y = r.uuid) == null ? void 0 : y.substring(0, ze)) + (A ? "..." : "")}"`;
2262
+ const A = ((D = r.uuid) == null ? void 0 : D.length) > ze, u = r.format === "hidden" || r.format === "redacted" ? t("message.success.prefix") : `"${((y = r.uuid) == null ? void 0 : y.substring(0, ze)) + (A ? "..." : "")}"`;
2260
2263
  typeof i == "function" && i({
2261
2264
  type: "success",
2262
2265
  message: `${u}${t("message.success.content")}`
2263
2266
  }), d.value ? l(r.successTooltip) : n("success", r.uuid);
2264
2267
  };
2265
- return (k, V) => {
2266
- const y = j("KClipboardProvider");
2267
- return b(), q("div", yn, [
2268
- e.format !== "hidden" ? (b(), D(Ie(e.idTooltip ? "KTooltip" : "div"), Ke({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
2268
+ return (k, D) => {
2269
+ const y = F("KClipboardProvider");
2270
+ return b(), R("div", yn, [
2271
+ e.format !== "hidden" ? (b(), V(Ie(e.idTooltip ? "KTooltip" : "div"), $e({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
2269
2272
  default: f(() => [
2270
- $("div", {
2273
+ K("div", {
2271
2274
  class: ke([
2272
2275
  "uuid-container",
2273
2276
  e.truncated ? "truncated-uuid" : null,
@@ -2277,17 +2280,17 @@ const va = {
2277
2280
  ]),
2278
2281
  _: 1
2279
2282
  }, 16)) : X("", !0),
2280
- (b(), D(Ie(e.tooltip ? "KTooltip" : "div"), Ke(p.value, { class: "uuid-icon-wrapper" }), {
2283
+ (b(), V(Ie(e.tooltip ? "KTooltip" : "div"), $e(p.value, { class: "uuid-icon-wrapper" }), {
2281
2284
  default: f(() => [
2282
- x(y, null, {
2285
+ C(y, null, {
2283
2286
  default: f(({ copyToClipboard: A }) => [
2284
- $("span", {
2287
+ K("span", {
2285
2288
  "data-testid": "copy-to-clipboard",
2286
2289
  role: "button",
2287
2290
  tabindex: "0",
2288
2291
  onClick: be((u) => N(A), ["stop"])
2289
2292
  }, [
2290
- x(s(fn), {
2293
+ C(s(fn), {
2291
2294
  class: "uuid-icon",
2292
2295
  color: e.iconColor,
2293
2296
  decorative: !!e.tooltip,
@@ -2356,20 +2359,20 @@ const va = {
2356
2359
  emits: ["error", "copy:success", "copy:error", "delete:success"],
2357
2360
  setup(e, { emit: a }) {
2358
2361
  var pe;
2359
- const t = a, r = e, { i18n: { t: n } } = Ge.useI18n(), i = (h, K) => {
2362
+ const t = a, r = e, { i18n: { t: n } } = Ge.useI18n(), i = (h, $) => {
2360
2363
  var c;
2361
2364
  h.type === "error" ? t("copy:error", {
2362
- entity: K,
2365
+ entity: $,
2363
2366
  field: "certificate.id",
2364
2367
  message: n("errors.copy")
2365
2368
  }) : t("copy:success", {
2366
- entity: K,
2369
+ entity: $,
2367
2370
  field: "certificate.id",
2368
- message: n("copy.success", { val: (c = K.certificate) == null ? void 0 : c.id })
2371
+ message: n("copy.success", { val: (c = $.certificate) == null ? void 0 : c.id })
2369
2372
  });
2370
2373
  }, { axiosInstance: o } = lt({
2371
2374
  headers: (pe = r.config) == null ? void 0 : pe.requestHeaders
2372
- }), d = C(1), m = S(() => r.config.app !== "kongManager" || !!r.config.disableSorting), p = {
2375
+ }), d = x(1), m = S(() => r.config.app !== "kongManager" || !!r.config.disableSorting), p = {
2373
2376
  name: { label: n("snis.list.table_headers.name"), searchable: !0, sortable: !0 },
2374
2377
  certificate: { label: n("snis.list.table_headers.certificate_id"), sortable: !1 },
2375
2378
  tags: { label: n("snis.list.table_headers.tags"), sortable: !1 }
@@ -2378,34 +2381,34 @@ const va = {
2378
2381
  maxWidth: h.headerKey === "name" ? "250px" : h.headerKey === "certificate" ? "350px" : null
2379
2382
  }
2380
2383
  }), N = S(() => {
2381
- var K, c;
2384
+ var $, c;
2382
2385
  let h = `${r.config.apiBaseUrl}${fe.list[r.config.app].all}`;
2383
- return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((K = r.config) == null ? void 0 : K.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (c = r.config) != null && c.workspace ? `/${r.config.workspace}` : "")), h;
2384
- }), k = C(""), V = S(() => {
2386
+ return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (c = r.config) != null && c.workspace ? `/${r.config.workspace}` : "")), h;
2387
+ }), k = x(""), D = S(() => {
2385
2388
  const h = r.config.app === "konnect" || r.config.isExactMatch;
2386
2389
  if (h)
2387
2390
  return {
2388
2391
  isExactMatch: h,
2389
2392
  placeholder: n("search.placeholder")
2390
2393
  };
2391
- const { name: K } = p;
2394
+ const { name: $ } = p;
2392
2395
  return {
2393
2396
  isExactMatch: h,
2394
- fields: { name: K },
2397
+ fields: { name: $ },
2395
2398
  schema: r.config.filterSchema
2396
2399
  };
2397
2400
  }), { fetcher: y, fetcherState: A } = en(r.config, N.value), u = () => {
2398
2401
  k.value = "";
2399
2402
  }, T = () => {
2400
2403
  d.value++;
2401
- }, E = C(null), w = C({
2404
+ }, E = x(null), w = x({
2402
2405
  ctaPath: r.config.createRoute,
2403
2406
  ctaText: void 0,
2404
2407
  message: n("snis.list.empty_state.description"),
2405
2408
  title: n("snis.title")
2406
- }), g = (h, K) => {
2409
+ }), g = (h, $) => {
2407
2410
  const c = h.id;
2408
- if (!K(c)) {
2411
+ if (!$(c)) {
2409
2412
  t("copy:error", {
2410
2413
  entity: h,
2411
2414
  field: "id",
@@ -2418,9 +2421,9 @@ const va = {
2418
2421
  field: "id",
2419
2422
  message: n("copy.success", { val: c })
2420
2423
  });
2421
- }, O = (h, K) => {
2424
+ }, O = (h, $) => {
2422
2425
  const c = JSON.stringify(h);
2423
- if (!K(c)) {
2426
+ if (!$(c)) {
2424
2427
  t("copy:error", {
2425
2428
  entity: h,
2426
2429
  message: n("errors.copy")
@@ -2434,38 +2437,38 @@ const va = {
2434
2437
  }, z = (h) => ({
2435
2438
  label: n("actions.edit"),
2436
2439
  to: r.config.getEditRoute(h)
2437
- }), v = C(void 0), B = C(!1), L = C(!1), P = C(""), F = Qa(r.config, N.value), Y = (h) => {
2438
- v.value = h, B.value = !0;
2440
+ }), v = x(void 0), U = x(!1), L = x(!1), q = x(""), j = Qa(r.config, N.value), Y = (h) => {
2441
+ v.value = h, U.value = !0;
2439
2442
  }, te = () => {
2440
- B.value = !1, v.value = void 0;
2443
+ U.value = !1, v.value = void 0;
2441
2444
  }, de = async () => {
2442
- var h, K, c;
2445
+ var h, $, c;
2443
2446
  if ((h = v.value) != null && h.id) {
2444
2447
  L.value = !0;
2445
2448
  try {
2446
- await o.delete(F(v.value.id)), t("delete:success", v.value), L.value = !1, te(), d.value++;
2449
+ await o.delete(j(v.value.id)), t("delete:success", v.value), L.value = !1, te(), d.value++;
2447
2450
  } catch (I) {
2448
- P.value = ((c = (K = I.response) == null ? void 0 : K.data) == null ? void 0 : c.message) || I.message || n("errors.delete"), t("error", I);
2451
+ q.value = ((c = ($ = I.response) == null ? void 0 : $.data) == null ? void 0 : c.message) || I.message || n("errors.delete"), t("error", I);
2449
2452
  } finally {
2450
2453
  L.value = !1;
2451
2454
  }
2452
2455
  }
2453
- }, re = C(!0);
2456
+ }, re = x(!0);
2454
2457
  return ne(A, (h) => {
2455
- var K, c, I, U;
2456
- if (Array.isArray((K = h == null ? void 0 : h.response) == null ? void 0 : K.data) && (re.value = h.response.data.length > 0), h.status === oe.Error) {
2458
+ var $, c, I, B;
2459
+ if (Array.isArray(($ = h == null ? void 0 : h.response) == null ? void 0 : $.data) && (re.value = h.response.data.length > 0), h.status === oe.Error) {
2457
2460
  E.value = {
2458
2461
  title: n("errors.general")
2459
- }, (U = (I = (c = h.error) == null ? void 0 : c.response) == null ? void 0 : I.data) != null && U.message && (E.value.message = h.error.response.data.message), t("error", h.error);
2462
+ }, (B = (I = (c = h.error) == null ? void 0 : c.response) == null ? void 0 : I.data) != null && B.message && (E.value.message = h.error.response.data.message), t("error", h.error);
2460
2463
  return;
2461
2464
  }
2462
2465
  E.value = null;
2463
- }), Ce(async () => {
2466
+ }), xe(async () => {
2464
2467
  await r.canCreate() && (w.value.title = n("snis.list.empty_state.title"), w.value.ctaText = n("actions.create"));
2465
- }), (h, K) => {
2466
- const c = j("KButton"), I = j("KBadge"), U = j("KTruncate"), ae = j("KDropdownItem"), W = j("KClipboardProvider");
2467
- return b(), q("div", kn, [
2468
- x(s(Ta), {
2468
+ }), (h, $) => {
2469
+ const c = F("KButton"), I = F("KBadge"), B = F("KTruncate"), ae = F("KDropdownItem"), W = F("KClipboardProvider");
2470
+ return b(), R("div", kn, [
2471
+ C(s(Ta), {
2469
2472
  "cache-identifier": e.cacheIdentifier,
2470
2473
  "cell-attributes": l,
2471
2474
  "disable-pagination-page-jump": "",
@@ -2485,22 +2488,22 @@ const va = {
2485
2488
  onSort: T
2486
2489
  }, {
2487
2490
  "toolbar-filter": f(() => [
2488
- x(s(Ha), {
2491
+ C(s(Ha), {
2489
2492
  modelValue: k.value,
2490
- "onUpdate:modelValue": K[0] || (K[0] = (R) => k.value = R),
2491
- config: V.value
2493
+ "onUpdate:modelValue": $[0] || ($[0] = (P) => k.value = P),
2494
+ config: D.value
2492
2495
  }, null, 8, ["modelValue", "config"])
2493
2496
  ]),
2494
2497
  "toolbar-button": f(() => [
2495
- (b(), D(gt, {
2498
+ (b(), V(gt, {
2496
2499
  disabled: !e.useActionOutside,
2497
2500
  to: "#kong-ui-app-page-header-action-button"
2498
2501
  }, [
2499
- x(s(_e), {
2502
+ C(s(_e), {
2500
2503
  "auth-function": () => e.canCreate()
2501
2504
  }, {
2502
2505
  default: f(() => [
2503
- me(x(c, {
2506
+ me(C(c, {
2504
2507
  appearance: "primary",
2505
2508
  "data-testid": "toolbar-add-sni",
2506
2509
  icon: "plus",
@@ -2518,25 +2521,25 @@ const va = {
2518
2521
  }, 8, ["auth-function"])
2519
2522
  ], 8, ["disabled"]))
2520
2523
  ]),
2521
- name: f(({ rowValue: R }) => [
2522
- $("b", null, M(R ?? "-"), 1)
2524
+ name: f(({ rowValue: P }) => [
2525
+ K("b", null, M(P ?? "-"), 1)
2523
2526
  ]),
2524
- certificate: f(({ row: R }) => [
2525
- R.certificate && R.certificate.id ? (b(), D(s(bn), {
2527
+ certificate: f(({ row: P }) => [
2528
+ P.certificate && P.certificate.id ? (b(), V(s(bn), {
2526
2529
  key: 0,
2527
2530
  class: "copy-certificate-uuid",
2528
2531
  "data-testid": "copy-certificate-uuid",
2529
- notify: (Q) => i(Q, R),
2532
+ notify: (Q) => i(Q, P),
2530
2533
  truncated: !1,
2531
- uuid: R.certificate.id
2532
- }, null, 8, ["notify", "uuid"])) : (b(), q("span", wn, "-"))
2534
+ uuid: P.certificate.id
2535
+ }, null, 8, ["notify", "uuid"])) : (b(), R("span", wn, "-"))
2533
2536
  ]),
2534
- tags: f(({ rowValue: R }) => [
2535
- R != null && R.length ? (b(), D(U, { key: 0 }, {
2537
+ tags: f(({ rowValue: P }) => [
2538
+ P != null && P.length ? (b(), V(B, { key: 0 }, {
2536
2539
  default: f(() => [
2537
- (b(!0), q(Je, null, Te(R, (Q) => (b(), D(I, {
2540
+ (b(!0), R(Je, null, Te(P, (Q) => (b(), V(I, {
2538
2541
  key: Q,
2539
- onClick: K[1] || (K[1] = be(() => {
2542
+ onClick: $[1] || ($[1] = be(() => {
2540
2543
  }, ["stop"]))
2541
2544
  }, {
2542
2545
  default: f(() => [
@@ -2546,14 +2549,14 @@ const va = {
2546
2549
  }, 1024))), 128))
2547
2550
  ]),
2548
2551
  _: 2
2549
- }, 1024)) : (b(), q("span", Sn, "-"))
2552
+ }, 1024)) : (b(), R("span", Sn, "-"))
2550
2553
  ]),
2551
- actions: f(({ row: R }) => [
2552
- x(W, null, {
2554
+ actions: f(({ row: P }) => [
2555
+ C(W, null, {
2553
2556
  default: f(({ copyToClipboard: Q }) => [
2554
- x(ae, {
2557
+ C(ae, {
2555
2558
  "data-testid": "action-entity-copy-id",
2556
- onClick: (ve) => g(R, Q)
2559
+ onClick: (ve) => g(P, Q)
2557
2560
  }, {
2558
2561
  default: f(() => [
2559
2562
  J(M(s(n)("actions.copy_id")), 1)
@@ -2563,11 +2566,11 @@ const va = {
2563
2566
  ]),
2564
2567
  _: 2
2565
2568
  }, 1024),
2566
- x(W, null, {
2569
+ C(W, null, {
2567
2570
  default: f(({ copyToClipboard: Q }) => [
2568
- x(ae, {
2571
+ C(ae, {
2569
2572
  "data-testid": "action-entity-copy-json",
2570
- onClick: (ve) => O(R, Q)
2573
+ onClick: (ve) => O(P, Q)
2571
2574
  }, {
2572
2575
  default: f(() => [
2573
2576
  J(M(s(n)("actions.copy_json")), 1)
@@ -2577,26 +2580,26 @@ const va = {
2577
2580
  ]),
2578
2581
  _: 2
2579
2582
  }, 1024),
2580
- x(s(_e), {
2581
- "auth-function": () => e.canEdit(R)
2583
+ C(s(_e), {
2584
+ "auth-function": () => e.canEdit(P)
2582
2585
  }, {
2583
2586
  default: f(() => [
2584
- x(ae, {
2587
+ C(ae, {
2585
2588
  "data-testid": "action-entity-edit",
2586
- item: z(R.id)
2589
+ item: z(P.id)
2587
2590
  }, null, 8, ["item"])
2588
2591
  ]),
2589
2592
  _: 2
2590
2593
  }, 1032, ["auth-function"]),
2591
- x(s(_e), {
2592
- "auth-function": () => e.canDelete(R)
2594
+ C(s(_e), {
2595
+ "auth-function": () => e.canDelete(P)
2593
2596
  }, {
2594
2597
  default: f(() => [
2595
- x(ae, {
2598
+ C(ae, {
2596
2599
  danger: "",
2597
2600
  "data-testid": "action-entity-delete",
2598
2601
  "has-divider": "",
2599
- onClick: (Q) => Y(R)
2602
+ onClick: (Q) => Y(P)
2600
2603
  }, {
2601
2604
  default: f(() => [
2602
2605
  J(M(s(n)("actions.delete")), 1)
@@ -2609,15 +2612,15 @@ const va = {
2609
2612
  ]),
2610
2613
  _: 1
2611
2614
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
2612
- x(s(Oa), {
2615
+ C(s(Oa), {
2613
2616
  "action-pending": L.value,
2614
2617
  description: s(n)("delete.description"),
2615
2618
  "entity-name": v.value && (v.value.name || v.value.id),
2616
2619
  "entity-type": s(Qe).SNI,
2617
- error: P.value,
2620
+ error: q.value,
2618
2621
  "need-confirm": !1,
2619
2622
  title: s(n)("delete.title"),
2620
- visible: B.value,
2623
+ visible: U.value,
2621
2624
  onCancel: te,
2622
2625
  onProceed: de
2623
2626
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
@@ -2629,7 +2632,7 @@ const va = {
2629
2632
  for (const [r, n] of a)
2630
2633
  t[r] = n;
2631
2634
  return t;
2632
- }, qn = /* @__PURE__ */ st(_n, [["__scopeId", "data-v-5470cca7"]]), In = { class: "kong-ui-entities-snis-form" }, xn = { "data-testid": "no-search-results" }, Cn = {
2635
+ }, Rn = /* @__PURE__ */ st(_n, [["__scopeId", "data-v-5470cca7"]]), In = { class: "kong-ui-entities-snis-form" }, Cn = { "data-testid": "no-search-results" }, xn = {
2633
2636
  key: 2,
2634
2637
  class: "invalid-certificate-message",
2635
2638
  "data-testid": "invalid-certificate-message"
@@ -2651,10 +2654,10 @@ const va = {
2651
2654
  },
2652
2655
  emits: ["update", "error", "loading"],
2653
2656
  setup(e, { emit: a }) {
2654
- var K;
2657
+ var $;
2655
2658
  const t = a, r = e, n = Ze(), { i18n: { t: i } } = Ge.useI18n(), { getMessageFromError: o } = Xa(), { axiosInstance: d } = lt({
2656
- headers: (K = r.config) == null ? void 0 : K.requestHeaders
2657
- }), m = S(() => fe.form[r.config.app].edit), p = S(() => r.sniId ? he.Edit : he.Create), _ = S(() => r.config.certificateId && p.value === he.Create ? r.config.certificateId : ""), l = $e({
2659
+ headers: ($ = r.config) == null ? void 0 : $.requestHeaders
2660
+ }), m = S(() => fe.form[r.config.app].edit), p = S(() => r.sniId ? he.Edit : he.Create), _ = S(() => r.config.certificateId && p.value === he.Create ? r.config.certificateId : ""), l = Ke({
2658
2661
  fields: {
2659
2662
  name: "",
2660
2663
  tags: "",
@@ -2662,25 +2665,25 @@ const va = {
2662
2665
  },
2663
2666
  isReadonly: !1,
2664
2667
  errorMessage: ""
2665
- }), N = $e({
2668
+ }), N = Ke({
2666
2669
  name: "",
2667
2670
  tags: "",
2668
2671
  certificate_id: ""
2669
- }), k = S(() => JSON.stringify(l.fields) !== JSON.stringify(N) && !!l.fields.name && !!(l.fields.certificate_id || _.value)), V = (c) => {
2670
- var I, U;
2671
- l.fields.name = (c == null ? void 0 : c.name) || "", l.fields.tags = ((I = c == null ? void 0 : c.tags) == null ? void 0 : I.join(", ")) || "", l.fields.certificate_id = ((U = c == null ? void 0 : c.certificate) == null ? void 0 : U.id) || "", Object.assign(N, l.fields);
2672
+ }), k = S(() => JSON.stringify(l.fields) !== JSON.stringify(N) && !!l.fields.name && !!(l.fields.certificate_id || _.value)), D = (c) => {
2673
+ var I, B;
2674
+ l.fields.name = (c == null ? void 0 : c.name) || "", l.fields.tags = ((I = c == null ? void 0 : c.tags) == null ? void 0 : I.join(", ")) || "", l.fields.certificate_id = ((B = c == null ? void 0 : c.certificate) == null ? void 0 : B.id) || "", Object.assign(N, l.fields);
2672
2675
  }, y = () => {
2673
2676
  n.push(r.config.cancelRoute);
2674
2677
  }, A = S(() => {
2675
- var I, U;
2678
+ var I, B;
2676
2679
  let c = `${r.config.apiBaseUrl}${fe.form[r.config.app].validate}`;
2677
- return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (U = r.config) != null && U.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
2680
+ return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
2678
2681
  }), u = S(() => {
2679
- var I, U;
2682
+ var I, B;
2680
2683
  let c = `${r.config.apiBaseUrl}${fe.form[r.config.app][p.value]}`;
2681
- return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (U = r.config) != null && U.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
2684
+ return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
2682
2685
  }), T = async () => {
2683
- var c, I, U, ae, W, R, Q, ve;
2686
+ var c, I, B, ae, W, P, Q, ve;
2684
2687
  try {
2685
2688
  l.isReadonly = !0;
2686
2689
  const ie = {
@@ -2689,7 +2692,7 @@ const va = {
2689
2692
  certificate: { id: _.value || l.fields.certificate_id }
2690
2693
  };
2691
2694
  let Z;
2692
- await d.post(A.value, ie), p.value === "create" ? Z = await d.post(u.value, ie) : p.value === "edit" && (Z = ((U = r.config) == null ? void 0 : U.app) === "konnect" ? await d.put(u.value, ie) : await d.patch(u.value, ie)), l.fields.name = ((ae = Z == null ? void 0 : Z.data) == null ? void 0 : ae.name) || "", l.fields.tags = ((R = (W = Z == null ? void 0 : Z.data) == null ? void 0 : W.tags) == null ? void 0 : R.join(", ")) || "", l.fields.certificate_id = ((ve = (Q = Z == null ? void 0 : Z.data) == null ? void 0 : Q.certificate) == null ? void 0 : ve.id) || "", Object.assign(N, l.fields), t("update", Z == null ? void 0 : Z.data);
2695
+ await d.post(A.value, ie), p.value === "create" ? Z = await d.post(u.value, ie) : p.value === "edit" && (Z = ((B = r.config) == null ? void 0 : B.app) === "konnect" ? await d.put(u.value, ie) : await d.patch(u.value, ie)), l.fields.name = ((ae = Z == null ? void 0 : Z.data) == null ? void 0 : ae.name) || "", l.fields.tags = ((P = (W = Z == null ? void 0 : Z.data) == null ? void 0 : W.tags) == null ? void 0 : P.join(", ")) || "", l.fields.certificate_id = ((ve = (Q = Z == null ? void 0 : Z.data) == null ? void 0 : Q.certificate) == null ? void 0 : ve.id) || "", Object.assign(N, l.fields), t("update", Z == null ? void 0 : Z.data);
2693
2696
  } catch (ie) {
2694
2697
  l.errorMessage = o(ie), t("error", ie);
2695
2698
  } finally {
@@ -2702,10 +2705,10 @@ const va = {
2702
2705
  error: O,
2703
2706
  validationError: z,
2704
2707
  loadItems: v,
2705
- results: B
2706
- } = tn(r.config, fe.form[r.config.app].certificates), L = C(!0), P = (c) => {
2708
+ results: U
2709
+ } = tn(r.config, fe.form[r.config.app].certificates), L = x(!0), q = (c) => {
2707
2710
  L.value = !c, E(c);
2708
- }, F = S(() => O.value ? i("errors.certificates.fetch") : ""), Y = S(() => z.value ? i("errors.certificates.invalid") : ""), te = C(0), de = S(() => g.value === void 0), re = C(/* @__PURE__ */ new Set()), pe = S(() => Array.from(re.value).map((I) => ({
2711
+ }, j = S(() => O.value ? i("errors.certificates.fetch") : ""), Y = S(() => z.value ? i("errors.certificates.invalid") : ""), te = x(0), de = S(() => g.value === void 0), re = x(/* @__PURE__ */ new Set()), pe = S(() => Array.from(re.value).map((I) => ({
2709
2712
  label: I,
2710
2713
  value: I,
2711
2714
  selected: l.fields.certificate_id === I
@@ -2715,35 +2718,35 @@ const va = {
2715
2718
  for (I of c)
2716
2719
  re.value.add(I.id);
2717
2720
  };
2718
- return ne(B, (c) => {
2721
+ return ne(U, (c) => {
2719
2722
  h(c);
2720
2723
  }, { immediate: !0, deep: !0 }), ne(pe, () => {
2721
2724
  te.value++;
2722
- }, { immediate: !0, deep: !0 }), Ce(async () => {
2725
+ }, { immediate: !0, deep: !0 }), xe(async () => {
2723
2726
  await v();
2724
2727
  }), (c, I) => {
2725
- const U = j("KInput"), ae = j("KSelect");
2726
- return b(), q("div", In, [
2727
- x(s(ba), {
2728
+ const B = F("KInput"), ae = F("KSelect");
2729
+ return b(), R("div", In, [
2730
+ C(s(ba), {
2728
2731
  "can-submit": k.value,
2729
2732
  config: e.config,
2730
2733
  "edit-id": e.sniId,
2731
- "error-message": l.errorMessage || F.value,
2734
+ "error-message": l.errorMessage || j.value,
2732
2735
  "fetch-url": m.value,
2733
2736
  "is-readonly": l.isReadonly,
2734
2737
  onCancel: y,
2735
2738
  "onFetch:error": I[3] || (I[3] = (W) => c.$emit("error", W)),
2736
- "onFetch:success": V,
2739
+ "onFetch:success": D,
2737
2740
  onLoading: I[4] || (I[4] = (W) => c.$emit("loading", W)),
2738
2741
  onSubmit: T
2739
2742
  }, {
2740
2743
  default: f(() => [
2741
- x(s(Le), {
2744
+ C(s(Le), {
2742
2745
  description: s(i)("form.sections.general.description"),
2743
2746
  title: s(i)("form.sections.general.title")
2744
2747
  }, {
2745
2748
  default: f(() => [
2746
- x(U, {
2749
+ C(B, {
2747
2750
  modelValue: l.fields.name,
2748
2751
  "onUpdate:modelValue": I[0] || (I[0] = (W) => l.fields.name = W),
2749
2752
  modelModifiers: { trim: !0 },
@@ -2755,7 +2758,7 @@ const va = {
2755
2758
  required: "",
2756
2759
  type: "text"
2757
2760
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
2758
- x(U, {
2761
+ C(B, {
2759
2762
  modelValue: l.fields.tags,
2760
2763
  "onUpdate:modelValue": I[1] || (I[1] = (W) => l.fields.tags = W),
2761
2764
  modelModifiers: { trim: !0 },
@@ -2771,13 +2774,13 @@ const va = {
2771
2774
  ]),
2772
2775
  _: 1
2773
2776
  }, 8, ["description", "title"]),
2774
- x(s(Le), {
2777
+ C(s(Le), {
2775
2778
  description: s(i)("form.sections.certificate.description"),
2776
2779
  "has-divider": "",
2777
2780
  title: s(i)("form.sections.certificate.title")
2778
2781
  }, {
2779
2782
  default: f(() => [
2780
- _.value ? (b(), D(U, {
2783
+ _.value ? (b(), V(B, {
2781
2784
  key: 0,
2782
2785
  "data-testid": "sni-form-certificate-id",
2783
2786
  label: s(i)("form.fields.certificate_id.label"),
@@ -2785,7 +2788,7 @@ const va = {
2785
2788
  readonly: "",
2786
2789
  required: "",
2787
2790
  width: "100%"
2788
- }, null, 8, ["label", "model-value"])) : (b(), D(ae, {
2791
+ }, null, 8, ["label", "model-value"])) : (b(), V(ae, {
2789
2792
  key: 1,
2790
2793
  modelValue: l.fields.certificate_id,
2791
2794
  "onUpdate:modelValue": I[2] || (I[2] = (W) => l.fields.certificate_id = W),
@@ -2803,17 +2806,17 @@ const va = {
2803
2806
  readonly: l.isReadonly,
2804
2807
  required: "",
2805
2808
  width: "100%",
2806
- onQueryChange: P
2809
+ onQueryChange: q
2807
2810
  }, {
2808
2811
  loading: f(() => [
2809
- $("div", null, M(s(i)("actions.loading")), 1)
2812
+ K("div", null, M(s(i)("actions.loading")), 1)
2810
2813
  ]),
2811
2814
  empty: f(() => [
2812
- $("div", xn, M(s(i)("search.no_results")), 1)
2815
+ K("div", Cn, M(s(i)("search.no_results")), 1)
2813
2816
  ]),
2814
2817
  _: 1
2815
2818
  }, 8, ["modelValue", "class", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
2816
- Y.value ? (b(), q("p", Cn, M(Y.value), 1)) : X("", !0)
2819
+ Y.value ? (b(), R("p", xn, M(Y.value), 1)) : X("", !0)
2817
2820
  ]),
2818
2821
  _: 1
2819
2822
  }, 8, ["description", "title"])
@@ -2823,8 +2826,8 @@ const va = {
2823
2826
  ]);
2824
2827
  };
2825
2828
  }
2826
- }), Bn = /* @__PURE__ */ st(Tn, [["__scopeId", "data-v-576c2dac"]]);
2829
+ }), Un = /* @__PURE__ */ st(Tn, [["__scopeId", "data-v-576c2dac"]]);
2827
2830
  export {
2828
- Bn as SniForm,
2829
- qn as SniList
2831
+ Un as SniForm,
2832
+ Rn as SniList
2830
2833
  };