@kong-ui-public/entities-gateway-services 1.1.28 → 1.1.29

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,6 +1,6 @@
1
- import { defineComponent as te, ref as R, computed as C, resolveComponent as E, openBlock as f, createBlock as z, Teleport as it, createVNode as m, withCtx as d, unref as r, createTextVNode as G, toDisplayString as $, createElementVNode as V, watch as ue, renderSlot as X, createCommentVNode as W, useSlots as Be, onBeforeMount as Ke, createSlots as _e, createElementBlock as x, Fragment as ce, renderList as se, normalizeClass as ge, withModifiers as ve, withDirectives as Se, vShow as Ie, useCssVars as rt, resolveDynamicComponent as Ee, normalizeProps as st, guardReactiveProps as nt, mergeProps as Je, onMounted as ze, onUnmounted as ct, inject as dt, reactive as Fe } from "vue";
1
+ import { defineComponent as te, ref as M, computed as k, resolveComponent as U, openBlock as f, createBlock as z, Teleport as it, createVNode as m, withCtx as c, unref as r, createTextVNode as G, toDisplayString as I, createElementVNode as V, watch as ue, renderSlot as X, createCommentVNode as W, useSlots as Ue, onBeforeMount as Ee, createSlots as _e, createElementBlock as x, Fragment as ce, renderList as se, normalizeClass as ge, withModifiers as ve, withDirectives as Se, vShow as Ie, useCssVars as rt, resolveDynamicComponent as Te, normalizeProps as st, guardReactiveProps as nt, mergeProps as Ke, onMounted as ze, onUnmounted as ct, inject as dt, reactive as Ae } from "vue";
2
2
  import { useRouter as Me } from "vue-router";
3
- import { createI18n as Re, i18nTComponent as We } from "@kong-ui-public/i18n";
3
+ import { createI18n as qe, i18nTComponent as We } from "@kong-ui-public/i18n";
4
4
  import ut from "axios";
5
5
  import { MethodsArray as pt } from "@kong/kongponents";
6
6
  const ft = {
@@ -178,7 +178,7 @@ const ft = {
178
178
  glossary: bt
179
179
  };
180
180
  function _t() {
181
- const e = Re("en-us", ht);
181
+ const e = qe("en-us", ht);
182
182
  return {
183
183
  i18n: e,
184
184
  i18nT: We(e)
@@ -232,8 +232,8 @@ const $e = {
232
232
  }
233
233
  }
234
234
  };
235
- var Ze = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Ze || {}), Pe = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Pe || {}), fe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(fe || {}), Z = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Z || {}), oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(oe || {});
236
- function Ue(e = {}) {
235
+ var Ze = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Ze || {}), Be = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Be || {}), fe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(fe || {}), Z = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Z || {}), oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(oe || {});
236
+ function Re(e = {}) {
237
237
  return {
238
238
  axiosInstance: ut.create({
239
239
  withCredentials: !0,
@@ -254,7 +254,7 @@ function kt() {
254
254
  }
255
255
  };
256
256
  }
257
- const Ve = "khcp-user-table-preferences", Ct = {
257
+ const Pe = "khcp-user-table-preferences", Ct = {
258
258
  pageSize: 30,
259
259
  sortColumnKey: void 0,
260
260
  sortColumnOrder: void 0
@@ -269,14 +269,14 @@ function St() {
269
269
  return;
270
270
  }
271
271
  }, i = () => {
272
- const t = e(localStorage.getItem(Ve));
272
+ const t = e(localStorage.getItem(Pe));
273
273
  return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
274
274
  };
275
275
  return {
276
276
  setTablePreferences: (t, l) => {
277
277
  try {
278
278
  const u = i();
279
- u.set(t, l), localStorage.setItem(Ve, JSON.stringify(Object.fromEntries(u.entries())));
279
+ u.set(t, l), localStorage.setItem(Pe, JSON.stringify(Object.fromEntries(u.entries())));
280
280
  } catch (u) {
281
281
  console.error("useTablePreferences(setTablePreferences)", u);
282
282
  }
@@ -286,14 +286,14 @@ function St() {
286
286
  return (l == null ? void 0 : l.get(t)) || void 0 || Ct;
287
287
  },
288
288
  deleteAllTablePreferences: () => {
289
- localStorage.removeItem(Ve);
289
+ localStorage.removeItem(Pe);
290
290
  }
291
291
  };
292
292
  }
293
293
  const It = {
294
294
  message: "Are you sure you want to delete this {entityType}?",
295
295
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
296
- }, $t = {
296
+ }, Tt = {
297
297
  actions: {
298
298
  save: "Save",
299
299
  cancel: "Cancel",
@@ -302,7 +302,7 @@ const It = {
302
302
  errors: {
303
303
  edit: "The entity could not be edited at this time."
304
304
  }
305
- }, Tt = {
305
+ }, $t = {
306
306
  emptyState: {
307
307
  noSearchResultsTitle: "No results found",
308
308
  noSearchResultsMessage: "Please adjust the criteria and try again.",
@@ -355,10 +355,10 @@ const It = {
355
355
  fetch: "Could not fetch available items",
356
356
  invalid: "Please select a valid value"
357
357
  }
358
- }, Bt = {
358
+ }, Kt = {
359
359
  unexpected: "An unexpected error has occurred",
360
360
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
361
- }, Kt = {
361
+ }, Bt = {
362
362
  enable: {
363
363
  title: "Enable {entityType}",
364
364
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -369,90 +369,90 @@ const It = {
369
369
  message: "Are you sure you want to disable the {entityType} {entityName}?",
370
370
  confirmText: "Yes, disable"
371
371
  }
372
- }, Et = {
372
+ }, Ut = {
373
373
  deleteModal: It,
374
- baseForm: $t,
375
- baseTable: Tt,
374
+ baseForm: Tt,
375
+ baseTable: $t,
376
376
  baseConfigCard: xt,
377
377
  filter: Vt,
378
378
  debouncedFilter: Pt,
379
- errors: Bt,
380
- toggleModal: Kt
379
+ errors: Kt,
380
+ toggleModal: Bt
381
381
  };
382
- function qe() {
383
- const e = Re("en-us", Et);
382
+ function Fe() {
383
+ const e = qe("en-us", Ut);
384
384
  return {
385
385
  i18n: e,
386
386
  i18nT: We(e)
387
387
  // Translation component <i18n-t>
388
388
  };
389
389
  }
390
- function Mt(e, i, t, l = {
390
+ function Et(e, i, t, l = {
391
391
  fetchedItemsKey: "data",
392
392
  searchKeys: ["id"]
393
393
  }) {
394
394
  t || (t = "100");
395
- const { axiosInstance: u } = Ue({
395
+ const { axiosInstance: u } = Re({
396
396
  headers: e.requestHeaders
397
- }), { i18n: { t: c } } = qe(), { debounce: h } = kt(), s = h(async (a) => {
397
+ }), { i18n: { t: d } } = Fe(), { debounce: h } = kt(), s = h(async (a) => {
398
398
  await w(a);
399
- }, 200), g = R(!1), I = R(""), _ = R(""), k = R([]), A = R(void 0), T = r(i);
400
- let B = `${e.apiBaseUrl}${T}`;
401
- e.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
402
- const U = async () => {
399
+ }, 200), g = M(!1), T = M(""), _ = M(""), C = M([]), F = M(void 0), $ = r(i);
400
+ let P = `${e.apiBaseUrl}${$}`;
401
+ e.app === "konnect" ? P = P.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (P = P.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
402
+ const q = async () => {
403
403
  try {
404
404
  g.value = !0;
405
- const { data: a } = await u.get(`${B}?size=${t}`);
406
- a != null && a.next || (A.value = l.fetchedItemsKey in a ? a[l.fetchedItemsKey] : []), k.value = l.fetchedItemsKey in a ? a[l.fetchedItemsKey] : [];
405
+ const { data: a } = await u.get(`${P}?size=${t}`);
406
+ a != null && a.next || (F.value = l.fetchedItemsKey in a ? a[l.fetchedItemsKey] : []), C.value = l.fetchedItemsKey in a ? a[l.fetchedItemsKey] : [];
407
407
  } catch {
408
- k.value = [], I.value = c("debouncedFilter.errors.fetch");
408
+ C.value = [], T.value = d("debouncedFilter.errors.fetch");
409
409
  } finally {
410
410
  g.value = !1;
411
411
  }
412
- }, p = R(""), w = async (a) => {
412
+ }, p = M(""), w = async (a) => {
413
413
  var b, N;
414
414
  if (p.value !== a)
415
- if (p.value = a || "", A.value === void 0)
415
+ if (p.value = a || "", F.value === void 0)
416
416
  try {
417
- g.value = !0, I.value = "", _.value = "";
418
- let v = B + "";
417
+ g.value = !0, T.value = "", _.value = "";
418
+ let v = P + "";
419
419
  a && (v += `/${a}`);
420
- const { data: M } = await u.get(`${v}?size=${t}`);
421
- l.fetchedItemsKey in M ? k.value = M[l.fetchedItemsKey] : M != null && M.id ? k.value = [M] : k.value = [];
420
+ const { data: E } = await u.get(`${v}?size=${t}`);
421
+ l.fetchedItemsKey in E ? C.value = E[l.fetchedItemsKey] : E != null && E.id ? C.value = [E] : C.value = [];
422
422
  } catch (v) {
423
- ((b = v == null ? void 0 : v.response) == null ? void 0 : b.status) === 404 ? _.value = c("debouncedFilter.errors.invalid") : (k.value = [], I.value = c("debouncedFilter.errors.fetch"));
423
+ ((b = v == null ? void 0 : v.response) == null ? void 0 : b.status) === 404 ? _.value = d("debouncedFilter.errors.invalid") : (C.value = [], T.value = d("debouncedFilter.errors.fetch"));
424
424
  } finally {
425
425
  g.value = !1;
426
426
  }
427
427
  else
428
- g.value = !0, _.value = "", a ? (k.value = (N = A.value) == null ? void 0 : N.filter((v) => {
429
- var M;
430
- let P = !1;
428
+ g.value = !0, _.value = "", a ? (C.value = (N = F.value) == null ? void 0 : N.filter((v) => {
429
+ var E;
430
+ let K = !1;
431
431
  for (const D of l.searchKeys) {
432
- const H = typeof v[D] == "string" ? (M = v[D]) == null ? void 0 : M.toLowerCase() : v[D];
433
- H != null && H.includes(a.toLowerCase()) && (P = !0);
432
+ const H = typeof v[D] == "string" ? (E = v[D]) == null ? void 0 : E.toLowerCase() : v[D];
433
+ H != null && H.includes(a.toLowerCase()) && (K = !0);
434
434
  }
435
- return P;
436
- }), (!k.value || !k.value.length) && (_.value = c("debouncedFilter.errors.invalid"))) : k.value = A.value, g.value = !1;
435
+ return K;
436
+ }), (!C.value || !C.value.length) && (_.value = d("debouncedFilter.errors.invalid"))) : C.value = F.value, g.value = !1;
437
437
  };
438
438
  return {
439
439
  loading: g,
440
- error: I,
440
+ error: T,
441
441
  validationError: _,
442
- results: k,
443
- allRecords: A,
444
- loadItems: U,
442
+ results: C,
443
+ allRecords: F,
444
+ loadItems: q,
445
445
  debouncedQueryChange: s
446
446
  };
447
447
  }
448
- function Rt(e, i) {
449
- const t = r(i), l = C(
448
+ function Mt(e, i) {
449
+ const t = r(i), l = k(
450
450
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
451
451
  );
452
452
  return l.value.search = "", (u) => `${l.value.href}/${u}`;
453
453
  }
454
- function Ut() {
455
- const { i18n: { t: e } } = qe();
454
+ function qt() {
455
+ const { i18n: { t: e } } = Fe();
456
456
  return {
457
457
  getMessageFromError: (i) => {
458
458
  var t, l, u;
@@ -462,80 +462,80 @@ function Ut() {
462
462
  if (i.response.data.detail)
463
463
  return i.response.data.detail;
464
464
  if ((l = i.response.data.details) != null && l.length)
465
- return i.response.data.details.map((c) => {
465
+ return i.response.data.details.map((d) => {
466
466
  let h = e("errors.unexpected");
467
- return c.messages && typeof c.messages == "object" && c.messages.length && (h = c.messages.join(", ")), c.field ? `${c.field} - ${h}` : h;
467
+ return d.messages && typeof d.messages == "object" && d.messages.length && (h = d.messages.join(", ")), d.field ? `${d.field} - ${h}` : h;
468
468
  }).join("; ");
469
469
  if (i.response.data.message) {
470
- const { message: c } = i.response.data;
471
- return Array.isArray(c) ? (u = c[0]) != null && u.constraints ? Object.values(c[0].constraints)[0] : c[0] : c;
470
+ const { message: d } = i.response.data;
471
+ return Array.isArray(d) ? (u = d[0]) != null && u.constraints ? Object.values(d[0].constraints)[0] : d[0] : d;
472
472
  }
473
473
  if (typeof i.response.data == "string")
474
474
  return i.response.data;
475
475
  if (typeof i.response.data == "object")
476
- return Object.keys(i.response.data).map((c) => `${c} ${i.response.data[c]}`).join(", ");
476
+ return Object.keys(i.response.data).map((d) => `${d} ${i.response.data[d]}`).join(", ");
477
477
  }
478
478
  return i.message || e("errors.unexpected");
479
479
  }
480
480
  };
481
481
  }
482
482
  function Xe(e, i) {
483
- const t = R(r(e)), l = R(r(i)), u = C(
483
+ const t = M(r(e)), l = M(r(i)), u = k(
484
484
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
485
- ), c = C(
485
+ ), d = k(
486
486
  () => l.value.startsWith("/") ? new URL(`${window.location.origin}${l.value}`) : new URL(l.value)
487
487
  );
488
488
  return (h) => {
489
- const { page: s, pageSize: g, offset: I, sortColumnKey: _, sortColumnOrder: k, query: A } = h;
489
+ const { page: s, pageSize: g, offset: T, sortColumnKey: _, sortColumnOrder: C, query: F } = h;
490
490
  try {
491
- let T = new URL(c.value.href);
492
- return u.value && A ? (T.search = "", T = new URL(`${T.href}/${A}/`)) : (u.value || new URLSearchParams(A).forEach((B, U) => {
493
- T.searchParams.append(U, B);
494
- }), _ && T.searchParams.append("sort_by", _), k === "desc" && T.searchParams.append("sort_desc", "1"), T.searchParams.append("size", String(g))), I && s !== 1 && T.searchParams.append("offset", String(I)), T.href;
495
- } catch (T) {
496
- return console.error("RouteList(fetcher)", T), l.value;
491
+ let $ = new URL(d.value.href);
492
+ return u.value && F ? ($.search = "", $ = new URL(`${$.href}/${F}/`)) : (u.value || new URLSearchParams(F).forEach((P, q) => {
493
+ $.searchParams.append(q, P);
494
+ }), _ && $.searchParams.append("sort_by", _), C === "desc" && $.searchParams.append("sort_desc", "1"), $.searchParams.append("size", String(g))), T && s !== 1 && $.searchParams.append("offset", String(T)), $.href;
495
+ } catch ($) {
496
+ return console.error("RouteList(fetcher)", $), l.value;
497
497
  }
498
498
  };
499
499
  }
500
- function qt(e, i, t = "data") {
501
- const l = r(i), { axiosInstance: u } = Ue({
500
+ function Rt(e, i, t = "data") {
501
+ const l = r(i), { axiosInstance: u } = Re({
502
502
  headers: e.requestHeaders
503
- }), c = Xe(e, l), h = R({
503
+ }), d = Xe(e, l), h = M({
504
504
  status: fe.Idle
505
505
  });
506
506
  return { fetcher: async (s) => {
507
507
  try {
508
508
  h.value = { status: fe.Loading };
509
- const g = c(s), { data: I } = await u.get(g), _ = t && t.replace(/[^\w-_]/gi, "");
510
- let k;
511
- I[_] && Array.isArray(I[_]) ? k = I[_] : k = Object.keys(I).length ? [I] : [];
512
- const A = {
513
- data: k,
514
- total: k.length,
515
- ...I.offset ? {
509
+ const g = d(s), { data: T } = await u.get(g), _ = t && t.replace(/[^\w-_]/gi, "");
510
+ let C;
511
+ T[_] && Array.isArray(T[_]) ? C = T[_] : C = Object.keys(T).length ? [T] : [];
512
+ const F = {
513
+ data: C,
514
+ total: C.length,
515
+ ...T.offset ? {
516
516
  pagination: {
517
- offset: I.offset
517
+ offset: T.offset
518
518
  }
519
519
  } : null
520
520
  };
521
521
  return h.value = {
522
522
  status: fe.Idle,
523
- response: A
524
- }, A;
523
+ response: F
524
+ }, F;
525
525
  } catch (g) {
526
- const I = {
526
+ const T = {
527
527
  data: [],
528
528
  total: 0
529
529
  };
530
530
  return s.query && g.response.status === 404 ? (h.value = {
531
531
  status: fe.NoResults,
532
- response: I,
532
+ response: T,
533
533
  error: g
534
- }, I) : (h.value = {
534
+ }, T) : (h.value = {
535
535
  status: fe.Error,
536
- response: I,
536
+ response: T,
537
537
  error: g
538
- }, I);
538
+ }, T);
539
539
  }
540
540
  }, fetcherState: h };
541
541
  }
@@ -544,22 +544,22 @@ function Ft() {
544
544
  convertKeyToTitle: (e, i = "_") => e ? e.split(i).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
545
545
  };
546
546
  }
547
- const Ye = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Ae = (e) => {
547
+ const Ye = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Le = (e) => {
548
548
  if (typeof e != "string")
549
549
  throw new TypeError("Invalid argument expected string");
550
550
  const i = e.match(Ye);
551
551
  if (!i)
552
552
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
553
553
  return i.shift(), i;
554
- }, Le = (e) => e === "*" || e === "x" || e === "X", je = (e) => {
554
+ }, je = (e) => e === "*" || e === "x" || e === "X", Oe = (e) => {
555
555
  const i = parseInt(e, 10);
556
556
  return isNaN(i) ? e : i;
557
557
  }, At = (e, i) => typeof e != typeof i ? [String(e), String(i)] : [e, i], Lt = (e, i) => {
558
- if (Le(e) || Le(i))
558
+ if (je(e) || je(i))
559
559
  return 0;
560
- const [t, l] = At(je(e), je(i));
560
+ const [t, l] = At(Oe(e), Oe(i));
561
561
  return t > l ? 1 : t < l ? -1 : 0;
562
- }, Oe = (e, i) => {
562
+ }, Ne = (e, i) => {
563
563
  for (let t = 0; t < Math.max(e.length, i.length); t++) {
564
564
  const l = Lt(e[t] || "0", i[t] || "0");
565
565
  if (l !== 0)
@@ -567,9 +567,9 @@ const Ye = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
567
567
  }
568
568
  return 0;
569
569
  }, jt = (e, i) => {
570
- const t = Ae(e), l = Ae(i), u = t.pop(), c = l.pop(), h = Oe(t, l);
571
- return h !== 0 ? h : u && c ? Oe(u.split("."), c.split(".")) : u || c ? u ? -1 : 1 : 0;
572
- }, Ne = (e, i, t) => {
570
+ const t = Le(e), l = Le(i), u = t.pop(), d = l.pop(), h = Ne(t, l);
571
+ return h !== 0 ? h : u && d ? Ne(u.split("."), d.split(".")) : u || d ? u ? -1 : 1 : 0;
572
+ }, De = (e, i, t) => {
573
573
  Ot(t);
574
574
  const l = jt(e, i);
575
575
  return Qe[t].includes(l);
@@ -580,11 +580,11 @@ const Ye = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
580
580
  "<=": [-1, 0],
581
581
  "<": [-1],
582
582
  "!=": [-1, 1]
583
- }, De = Object.keys(Qe), Ot = (e) => {
583
+ }, Ge = Object.keys(Qe), Ot = (e) => {
584
584
  if (typeof e != "string")
585
585
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
586
- if (De.indexOf(e) === -1)
587
- throw new Error(`Invalid operator, expected one of ${De.join("|")}`);
586
+ if (Ge.indexOf(e) === -1)
587
+ throw new Error(`Invalid operator, expected one of ${Ge.join("|")}`);
588
588
  }, Nt = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ye.test(e);
589
589
  function Dt(e) {
590
590
  const { gatewayInfo: i, supportedRange: t } = e;
@@ -593,21 +593,21 @@ function Dt(e) {
593
593
  const { edition: l, version: u } = i;
594
594
  if (!Nt(u))
595
595
  return console.error("Invalid version"), !1;
596
- const c = t[l];
597
- if (!c)
596
+ const d = t[l];
597
+ if (!d)
598
598
  return !1;
599
- const [h, s] = c;
600
- return !(h && Ne(u, h, "<") || s && Ne(u, s, ">"));
599
+ const [h, s] = d;
600
+ return !(h && De(u, h, "<") || s && De(u, s, ">"));
601
601
  }
602
602
  const ae = {
603
- useAxios: Ue,
604
- useDebouncedFilter: Mt,
605
- useDeleteUrlBuilder: Rt,
606
- useErrors: Ut,
607
- useFetcher: qt,
603
+ useAxios: Re,
604
+ useDebouncedFilter: Et,
605
+ useDeleteUrlBuilder: Mt,
606
+ useErrors: qt,
607
+ useFetcher: Rt,
608
608
  useFetchUrlBuilder: Xe,
609
609
  useStringHelpers: Ft,
610
- useI18n: qe,
610
+ useI18n: Fe,
611
611
  useGatewayFeatureSupported: Dt
612
612
  }, Gt = {
613
613
  fail: "Failed to copy id to clipboard",
@@ -618,13 +618,17 @@ const ae = {
618
618
  }, Ht = "Copy to clipboard", Jt = {
619
619
  message: Gt,
620
620
  iconTitle: Ht
621
- }, zt = "kong-ui-copy-uuid-notify", Wt = { class: "kong-ui-copy-uuid" }, Zt = ["title"], Xt = ["onClick"], Ge = 15, Yt = /* @__PURE__ */ te({
621
+ }, zt = "kong-ui-copy-uuid-notify", Wt = { class: "kong-ui-copy-uuid" }, Zt = ["onClick"], He = 15, Xt = /* @__PURE__ */ te({
622
622
  __name: "CopyUuid",
623
623
  props: {
624
624
  uuid: {
625
625
  type: String,
626
626
  required: !0
627
627
  },
628
+ idTooltip: {
629
+ type: String,
630
+ default: ""
631
+ },
628
632
  truncated: {
629
633
  type: Boolean,
630
634
  default: !0
@@ -658,57 +662,62 @@ const ae = {
658
662
  },
659
663
  emits: ["success", "error"],
660
664
  setup(e, { emit: i }) {
661
- const t = e, { t: l } = Re("en-us", Jt), u = t.notify || dt(zt, () => {
662
- }), c = C(() => !!(t.tooltip && t.successTooltip)), h = R(t.tooltip), s = C(() => t.tooltip ? {
663
- label: h.value,
665
+ const t = e, { t: l } = qe("en-us", Jt), u = t.notify || dt(zt, () => {
666
+ }), d = k(() => t.idTooltip ? {
667
+ label: t.idTooltip,
668
+ positionFixed: !0,
669
+ placement: "bottomStart"
670
+ } : {
671
+ title: t.uuid
672
+ }), h = k(() => !!(t.tooltip && t.successTooltip)), s = M(t.tooltip), g = k(() => t.tooltip ? {
673
+ label: s.value,
664
674
  positionFixed: !0,
665
675
  maxWidth: "500px",
666
676
  placement: "bottomStart"
667
- } : {}), g = C(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), I = (k) => {
668
- h.value = k, setTimeout(() => {
669
- h.value = t.tooltip;
677
+ } : {}), T = k(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), _ = (F) => {
678
+ s.value = F, setTimeout(() => {
679
+ s.value = t.tooltip;
670
680
  }, 1800);
671
- }, _ = (k) => {
672
- if (!k(t.uuid)) {
681
+ }, C = (F) => {
682
+ if (!F(t.uuid)) {
673
683
  typeof u == "function" && u({
674
684
  type: "error",
675
685
  message: l("message.fail")
676
- }), c.value ? I(l("message.fail")) : i("error", t.uuid);
686
+ }), h.value ? _(l("message.fail")) : i("error", t.uuid);
677
687
  return;
678
688
  }
679
- const A = t.uuid.length > Ge, T = t.format === "hidden" || t.format === "redacted" ? l("message.success.prefix") : `"${t.uuid.substring(0, Ge) + (A ? "..." : "")}"`;
689
+ const $ = t.uuid.length > He, P = t.format === "hidden" || t.format === "redacted" ? l("message.success.prefix") : `"${t.uuid.substring(0, He) + ($ ? "..." : "")}"`;
680
690
  typeof u == "function" && u({
681
691
  type: "success",
682
- message: `${T}${l("message.success.content")}`
683
- }), c.value ? I(t.successTooltip) : i("success", t.uuid);
692
+ message: `${P}${l("message.success.content")}`
693
+ }), h.value ? _(t.successTooltip) : i("success", t.uuid);
684
694
  };
685
- return (k, A) => {
686
- const T = E("KIcon"), B = E("KClipboardProvider");
695
+ return (F, $) => {
696
+ const P = U("KIcon"), q = U("KClipboardProvider");
687
697
  return f(), x("div", Wt, [
688
- e.format !== "hidden" ? (f(), x("div", {
689
- key: 0,
690
- "data-testid": "copy-id",
691
- title: e.uuid
692
- }, [
693
- V("div", {
694
- class: ge([
695
- "uuid-container",
696
- e.truncated ? "truncated-uuid" : null,
697
- e.useMono ? "mono" : null
698
- ])
699
- }, $(g.value), 3)
700
- ], 8, Zt)) : W("", !0),
701
- (f(), z(Ee(e.tooltip ? "KTooltip" : "div"), Je(s.value, { class: "uuid-icon-wrapper" }), {
702
- default: d(() => [
703
- m(B, null, {
704
- default: d(({ copyToClipboard: U }) => [
698
+ e.format !== "hidden" ? (f(), z(Te(e.idTooltip ? "KTooltip" : "div"), Ke({ key: 0 }, d.value, { "data-testid": "copy-id" }), {
699
+ default: c(() => [
700
+ V("div", {
701
+ class: ge([
702
+ "uuid-container",
703
+ e.truncated ? "truncated-uuid" : null,
704
+ e.useMono ? "mono" : null
705
+ ])
706
+ }, I(T.value), 3)
707
+ ]),
708
+ _: 1
709
+ }, 16)) : W("", !0),
710
+ (f(), z(Te(e.tooltip ? "KTooltip" : "div"), Ke(g.value, { class: "uuid-icon-wrapper" }), {
711
+ default: c(() => [
712
+ m(q, null, {
713
+ default: c(({ copyToClipboard: p }) => [
705
714
  V("span", {
706
715
  "data-testid": "copy-to-clipboard",
707
716
  role: "button",
708
717
  tabindex: "0",
709
- onClick: ve((p) => _(U), ["stop"])
718
+ onClick: ve((w) => C(p), ["stop"])
710
719
  }, [
711
- m(T, {
720
+ m(P, {
712
721
  class: "uuid-icon",
713
722
  color: e.iconColor,
714
723
  "hide-title": !!e.tooltip || void 0,
@@ -716,7 +725,7 @@ const ae = {
716
725
  size: "16",
717
726
  title: r(l)("iconTitle")
718
727
  }, null, 8, ["color", "hide-title", "title"])
719
- ], 8, Xt)
728
+ ], 8, Zt)
720
729
  ]),
721
730
  _: 1
722
731
  })
@@ -726,15 +735,15 @@ const ae = {
726
735
  ]);
727
736
  };
728
737
  }
729
- }), Qt = (e, i) => {
738
+ }), Yt = (e, i) => {
730
739
  const t = e.__vccOpts || e;
731
740
  for (const [l, u] of i)
732
741
  t[l] = u;
733
742
  return t;
734
- }, et = /* @__PURE__ */ Qt(Yt, [["__scopeId", "data-v-e4ea1359"]]), ea = {
743
+ }, et = /* @__PURE__ */ Yt(Xt, [["__scopeId", "data-v-bfdaf6f7"]]), Qt = {
735
744
  key: 0,
736
745
  class: "config-card-fieldset-title"
737
- }, ta = /* @__PURE__ */ te({
746
+ }, ea = /* @__PURE__ */ te({
738
747
  __name: "JsonCardItem",
739
748
  props: {
740
749
  item: {
@@ -751,22 +760,22 @@ const ae = {
751
760
  }
752
761
  },
753
762
  setup(e) {
754
- const i = e, { i18n: { t } } = ae.useI18n(), { convertKeyToTitle: l } = ae.useStringHelpers(), u = C(() => i.item.key ?? "json-array-item"), c = C(() => i.item.value ?? i.item), h = C(() => {
755
- const g = JSON.parse(JSON.stringify(c.value));
763
+ const i = e, { i18n: { t } } = ae.useI18n(), { convertKeyToTitle: l } = ae.useStringHelpers(), u = k(() => i.item.key ?? "json-array-item"), d = k(() => i.item.value ?? i.item), h = k(() => {
764
+ const g = JSON.parse(JSON.stringify(d.value));
756
765
  return i.isArrayItem && delete g.name, g;
757
- }), s = C(() => {
766
+ }), s = k(() => {
758
767
  var g;
759
- return i.isArrayItem ? (g = c.value) != null && g.name ? l(c.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: i.index }) : "";
768
+ return i.isArrayItem ? (g = d.value) != null && g.name ? l(d.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: i.index }) : "";
760
769
  });
761
- return (g, I) => (f(), z(Ee(e.isArrayItem ? "fieldset" : "div"), {
770
+ return (g, T) => (f(), z(Te(e.isArrayItem ? "fieldset" : "div"), {
762
771
  class: ge(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
763
772
  }, {
764
- default: d(() => [
765
- e.isArrayItem ? (f(), x("legend", ea, [
766
- V("b", null, $(s.value), 1)
773
+ default: c(() => [
774
+ e.isArrayItem ? (f(), x("legend", Qt, [
775
+ V("b", null, I(s.value), 1)
767
776
  ])) : W("", !0),
768
- (f(!0), x(ce, null, se(Object.keys(h.value), (_, k) => (f(), z(at, {
769
- key: `${u.value}-property-${k}`,
777
+ (f(!0), x(ce, null, se(Object.keys(h.value), (_, C) => (f(), z(at, {
778
+ key: `${u.value}-property-${C}`,
770
779
  item: {
771
780
  key: _,
772
781
  label: r(l)(_),
@@ -782,7 +791,7 @@ const ae = {
782
791
  for (const [l, u] of i)
783
792
  t[l] = u;
784
793
  return t;
785
- }, tt = /* @__PURE__ */ ne(ta, [["__scopeId", "data-v-68ca83ec"]]), aa = /* @__PURE__ */ te({
794
+ }, tt = /* @__PURE__ */ ne(ea, [["__scopeId", "data-v-68ca83ec"]]), ta = /* @__PURE__ */ te({
786
795
  __name: "InternalLinkItem",
787
796
  props: {
788
797
  item: {
@@ -794,22 +803,22 @@ const ae = {
794
803
  setup(e) {
795
804
  const { i18n: { t: i } } = ae.useI18n();
796
805
  return (t, l) => {
797
- const u = E("KButton");
806
+ const u = U("KButton");
798
807
  return f(), x("div", null, [
799
808
  m(u, {
800
809
  appearance: "btn-link",
801
810
  class: "navigation-button",
802
- onClick: l[0] || (l[0] = (c) => t.$emit("navigation-click", e.item))
811
+ onClick: l[0] || (l[0] = (d) => t.$emit("navigation-click", e.item))
803
812
  }, {
804
- default: d(() => [
805
- G($(e.item.value || r(i)("baseConfigCard.commonFields.link")), 1)
813
+ default: c(() => [
814
+ G(I(e.item.value || r(i)("baseConfigCard.commonFields.link")), 1)
806
815
  ]),
807
816
  _: 1
808
817
  })
809
818
  ]);
810
819
  };
811
820
  }
812
- }), la = /* @__PURE__ */ ne(aa, [["__scopeId", "data-v-7410504d"]]), oa = /* @__PURE__ */ te({
821
+ }), aa = /* @__PURE__ */ ne(ta, [["__scopeId", "data-v-7410504d"]]), la = /* @__PURE__ */ te({
813
822
  __name: "StatusBadge",
814
823
  props: {
815
824
  status: {
@@ -820,22 +829,22 @@ const ae = {
820
829
  setup(e) {
821
830
  const { i18n: { t: i } } = ae.useI18n();
822
831
  return (t, l) => {
823
- const u = E("KBadge");
832
+ const u = U("KBadge");
824
833
  return f(), z(u, {
825
834
  appearance: e.status ? "success" : "neutral"
826
835
  }, {
827
- default: d(() => [
828
- G($(e.status ? r(i)("baseConfigCard.statusBadge.enabledLabel") : r(i)("baseConfigCard.statusBadge.disabledLabel")), 1)
836
+ default: c(() => [
837
+ G(I(e.status ? r(i)("baseConfigCard.statusBadge.enabledLabel") : r(i)("baseConfigCard.statusBadge.disabledLabel")), 1)
829
838
  ]),
830
839
  _: 1
831
840
  }, 8, ["appearance"]);
832
841
  };
833
842
  }
834
- }), ia = "#0044f4", ra = "#e0e4ea", sa = "#3a3f51", na = "1px", ca = { class: "config-card-details-row" }, da = ["data-testid"], ua = ["data-testid"], pa = ["data-testid"], fa = ["data-testid"], ya = { key: 1 }, ma = ["data-testid"], va = ["data-testid"], ga = ["data-testid"], ba = ["data-testid"], ha = ["title"], _a = {
843
+ }), oa = "#0044f4", ia = "#e0e4ea", ra = "#3a3f51", sa = "1px", na = { class: "config-card-details-row" }, ca = ["data-testid"], da = ["data-testid"], ua = ["data-testid"], pa = ["data-testid"], fa = { key: 1 }, ya = ["data-testid"], ma = ["data-testid"], va = ["data-testid"], ga = ["data-testid"], ba = ["title"], ha = {
835
844
  name: "ConfigCardItem",
836
- components: { CopyUuid: et, JsonCardItem: tt, StatusBadge: oa, InternalLinkItem: la }
837
- }, wa = /* @__PURE__ */ te({
838
- ..._a,
845
+ components: { CopyUuid: et, JsonCardItem: tt, StatusBadge: la, InternalLinkItem: aa }
846
+ }, _a = /* @__PURE__ */ te({
847
+ ...ha,
839
848
  props: {
840
849
  item: {
841
850
  type: Object,
@@ -855,13 +864,13 @@ const ae = {
855
864
  emits: ["navigation-click"],
856
865
  setup(e, { emit: i }) {
857
866
  const t = e;
858
- rt((k) => ({
859
- "2c6ac268": I.value ? "none" : `solid ${r(na)} ${r(ra)}`,
867
+ rt((C) => ({
868
+ "2c6ac268": T.value ? "none" : `solid ${r(sa)} ${r(ia)}`,
860
869
  c7a65802: g.value && h.value ? "block" : "flex",
861
870
  "778426fe": g.value && h.value ? "100%" : t.slim ? "50%" : "25%",
862
871
  "777f9b48": g.value && h.value ? "100%" : t.slim ? "50%" : "75%"
863
872
  }));
864
- const l = Be(), { i18n: { t: u, formatUnixTimeStamp: c } } = ae.useI18n(), h = C(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = C(() => !!(t.item.tooltip || l["label-tooltip"])), g = C(() => t.item.type === Z.Json || t.item.type === Z.JsonArray), I = C(() => t.item.type === Z.JsonArray), _ = C(() => {
873
+ const l = Ue(), { i18n: { t: u, formatUnixTimeStamp: d } } = ae.useI18n(), h = k(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = k(() => !!(t.item.tooltip || l["label-tooltip"])), g = k(() => t.item.type === Z.Json || t.item.type === Z.JsonArray), T = k(() => t.item.type === Z.JsonArray), _ = k(() => {
865
874
  switch (t.item.type) {
866
875
  case Z.ID:
867
876
  return {
@@ -921,7 +930,7 @@ const ae = {
921
930
  attrs: {
922
931
  "data-testid": `${t.item.key}-date`
923
932
  },
924
- text: c(t.item.value)
933
+ text: d(t.item.value)
925
934
  };
926
935
  case Z.BadgeStatus:
927
936
  return {
@@ -947,8 +956,8 @@ const ae = {
947
956
  attrs: {
948
957
  "data-testid": `${t.item.key}-internal-link`,
949
958
  item: t.item,
950
- onNavigationClick: (k) => {
951
- i("navigation-click", k);
959
+ onNavigationClick: (C) => {
960
+ i("navigation-click", C);
952
961
  }
953
962
  }
954
963
  };
@@ -988,78 +997,78 @@ const ae = {
988
997
  };
989
998
  }
990
999
  });
991
- return (k, A) => {
992
- const T = E("KLabel"), B = E("KBadge"), U = E("KMethodBadge");
993
- return f(), x("div", ca, [
1000
+ return (C, F) => {
1001
+ const $ = U("KLabel"), P = U("KBadge"), q = U("KMethodBadge");
1002
+ return f(), x("div", na, [
994
1003
  V("div", {
995
1004
  class: "config-card-details-label",
996
1005
  "data-testid": `${e.item.key}-label`
997
1006
  }, [
998
- X(k.$slots, "label", { item: e.item }, () => [
999
- m(T, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
1000
- default: d(() => [
1001
- G($(e.item.label) + " ", 1)
1007
+ X(C.$slots, "label", { item: e.item }, () => [
1008
+ m($, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
1009
+ default: c(() => [
1010
+ G(I(e.item.label) + " ", 1)
1002
1011
  ]),
1003
1012
  _: 2
1004
1013
  }, [
1005
1014
  s.value ? {
1006
1015
  name: "tooltip",
1007
- fn: d(() => [
1016
+ fn: c(() => [
1008
1017
  V("div", {
1009
1018
  "data-testid": `${e.item.key}-label-tooltip`
1010
1019
  }, [
1011
- X(k.$slots, "label-tooltip", {}, () => [
1012
- G($(e.item.tooltip), 1)
1020
+ X(C.$slots, "label-tooltip", {}, () => [
1021
+ G(I(e.item.tooltip), 1)
1013
1022
  ], !0)
1014
- ], 8, ua)
1023
+ ], 8, da)
1015
1024
  ]),
1016
1025
  key: "0"
1017
1026
  } : void 0
1018
1027
  ]), 1024)
1019
1028
  ], !0)
1020
- ], 8, da),
1029
+ ], 8, ca),
1021
1030
  V("div", {
1022
1031
  class: "config-card-details-value",
1023
1032
  "data-testid": `${e.item.key}-property-value`
1024
1033
  }, [
1025
- X(k.$slots, e.item.key, {
1034
+ X(C.$slots, e.item.key, {
1026
1035
  rowValue: e.item.value
1027
1036
  }, () => [
1028
- h.value ? (f(), x("div", ya, [
1029
- (f(), z(Ee(_.value.tag), st(nt(_.value.attrs)), {
1030
- default: d(() => [
1037
+ h.value ? (f(), x("div", fa, [
1038
+ (f(), z(Te(_.value.tag), st(nt(_.value.attrs)), {
1039
+ default: c(() => [
1031
1040
  _.value.additionalComponent === "KBadge" ? (f(), x("div", {
1032
1041
  key: 0,
1033
1042
  "data-testid": `${e.item.key}-badge-tags`
1034
1043
  }, [
1035
- (f(!0), x(ce, null, se(e.item.value, (p, w) => (f(), z(B, {
1044
+ (f(!0), x(ce, null, se(e.item.value, (p, w) => (f(), z(P, {
1036
1045
  key: `${e.item.key}-badge-tag-${w}`,
1037
1046
  class: "config-badge",
1038
1047
  "data-testid": `${e.item.key}-badge-tag-${w}`,
1039
1048
  "truncation-tooltip": p
1040
1049
  }, {
1041
- default: d(() => [
1042
- G($(p), 1)
1050
+ default: c(() => [
1051
+ G(I(p), 1)
1043
1052
  ]),
1044
1053
  _: 2
1045
1054
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1046
- ], 8, ma)) : W("", !0),
1055
+ ], 8, ya)) : W("", !0),
1047
1056
  _.value.additionalComponent === "CopyUuid" ? (f(), x("div", {
1048
1057
  key: 1,
1049
1058
  class: "copy-uuid-array",
1050
1059
  "data-testid": `${e.item.key}-copy-uuid-array`
1051
1060
  }, [
1052
- (f(!0), x(ce, null, se(e.item.value, (p, w) => (f(), z(r(et), Je(_.value.childAttrs, {
1061
+ (f(!0), x(ce, null, se(e.item.value, (p, w) => (f(), z(r(et), Ke(_.value.childAttrs, {
1053
1062
  key: `${e.item.key}-copy-uuid-${w}`,
1054
1063
  "data-testid": `${e.item.key}-copy-uuid-${w}`,
1055
1064
  uuid: p
1056
1065
  }), null, 16, ["data-testid", "uuid"]))), 128))
1057
- ], 8, va)) : _.value.additionalComponent === "KMethodBadge" ? (f(), x("div", {
1066
+ ], 8, ma)) : _.value.additionalComponent === "KMethodBadge" ? (f(), x("div", {
1058
1067
  key: 2,
1059
1068
  class: "method-badge-array",
1060
1069
  "data-testid": `${e.item.key}-badge-methods`
1061
1070
  }, [
1062
- (f(!0), x(ce, null, se(e.item.value, (p, w) => (f(), z(U, {
1071
+ (f(!0), x(ce, null, se(e.item.value, (p, w) => (f(), z(q, {
1063
1072
  key: `${e.item.key}-badge-method-${w}`,
1064
1073
  class: "config-badge",
1065
1074
  "data-testid": `${e.item.key}-badge-method-${w}`,
@@ -1067,12 +1076,12 @@ const ae = {
1067
1076
  label: p,
1068
1077
  method: r(pt).includes(p.toLowerCase()) ? p.toLowerCase() : "custom"
1069
1078
  }, {
1070
- default: d(() => [
1071
- G($(p), 1)
1079
+ default: c(() => [
1080
+ G(I(p), 1)
1072
1081
  ]),
1073
1082
  _: 2
1074
1083
  }, 1032, ["data-testid", "label", "method"]))), 128))
1075
- ], 8, ga)) : W("", !0),
1084
+ ], 8, va)) : W("", !0),
1076
1085
  _.value.additionalComponent === "JsonCardItem" ? (f(), x("div", {
1077
1086
  key: 3,
1078
1087
  "data-testid": `${t.item.key}-json-array-content`
@@ -1083,24 +1092,24 @@ const ae = {
1083
1092
  "is-array-item": "",
1084
1093
  item: p
1085
1094
  }, null, 8, ["index", "item"]))), 128))
1086
- ], 8, ba)) : (f(), x("span", {
1095
+ ], 8, ga)) : (f(), x("span", {
1087
1096
  key: 4,
1088
1097
  class: ge(["attrs-data-text", { truncated: e.truncated }]),
1089
1098
  title: e.truncated ? e.item.value : void 0
1090
- }, $(_.value.text), 11, ha))
1099
+ }, I(_.value.text), 11, ba))
1091
1100
  ]),
1092
1101
  _: 1
1093
1102
  }, 16))
1094
1103
  ])) : (f(), x("div", {
1095
1104
  key: 0,
1096
1105
  "data-testid": `${e.item.key}-no-value`
1097
- }, " – ", 8, fa))
1106
+ }, " – ", 8, pa))
1098
1107
  ], !0)
1099
- ], 8, pa)
1108
+ ], 8, ua)
1100
1109
  ]);
1101
1110
  };
1102
1111
  }
1103
- }), at = /* @__PURE__ */ ne(wa, [["__scopeId", "data-v-a3c5ab01"]]), ka = { "data-testid": "config-card-title" }, Ca = { class: "config-card-actions" }, Sa = { class: "config-card-details-section" }, Ia = ["data-testid"], $a = {
1112
+ }), at = /* @__PURE__ */ ne(_a, [["__scopeId", "data-v-a3c5ab01"]]), wa = { "data-testid": "config-card-title" }, ka = { class: "config-card-actions" }, Ca = { class: "config-card-details-section" }, Sa = ["data-testid"], Ia = {
1104
1113
  key: 0,
1105
1114
  class: "config-card-prop-section-title"
1106
1115
  }, Ta = /* @__PURE__ */ te({
@@ -1162,12 +1171,12 @@ const ae = {
1162
1171
  emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
1163
1172
  setup(e, { emit: i }) {
1164
1173
  var t;
1165
- const l = e, u = Be(), { i18n: { t: c } } = ae.useI18n(), { getMessageFromError: h } = ae.useErrors(), { convertKeyToTitle: s } = ae.useStringHelpers(), { axiosInstance: g } = ae.useAxios({
1174
+ const l = e, u = Ue(), { i18n: { t: d } } = ae.useI18n(), { getMessageFromError: h } = ae.useErrors(), { convertKeyToTitle: s } = ae.useStringHelpers(), { axiosInstance: g } = ae.useAxios({
1166
1175
  headers: (t = l.config) == null ? void 0 : t.requestHeaders
1167
- }), I = {
1176
+ }), T = {
1168
1177
  id: {
1169
1178
  type: Z.ID,
1170
- label: c("baseConfigCard.commonFields.id_label"),
1179
+ label: d("baseConfigCard.commonFields.id_label"),
1171
1180
  order: 0,
1172
1181
  section: oe.Basic
1173
1182
  },
@@ -1182,13 +1191,13 @@ const ae = {
1182
1191
  },
1183
1192
  updated_at: {
1184
1193
  type: Z.Date,
1185
- label: c("baseConfigCard.commonFields.updated_at_label"),
1194
+ label: d("baseConfigCard.commonFields.updated_at_label"),
1186
1195
  order: 3,
1187
1196
  section: oe.Basic
1188
1197
  },
1189
1198
  created_at: {
1190
1199
  type: Z.Date,
1191
- label: c("baseConfigCard.commonFields.created_at_label"),
1200
+ label: d("baseConfigCard.commonFields.created_at_label"),
1192
1201
  order: 4,
1193
1202
  section: oe.Basic
1194
1203
  },
@@ -1198,21 +1207,21 @@ const ae = {
1198
1207
  // the last property displayed
1199
1208
  section: oe.Basic
1200
1209
  }
1201
- }, _ = R(!1), k = R(!1), A = R(""), T = R(), B = C(() => {
1202
- var v, M, P;
1203
- if (!T.value)
1210
+ }, _ = M(!1), C = M(!1), F = M(""), $ = M(), P = k(() => {
1211
+ var v, E, K;
1212
+ if (!$.value)
1204
1213
  return [];
1205
- const D = [], H = Object.keys(T.value).length;
1206
- for (const F in T.value) {
1207
- const L = (M = (v = l.configSchema) == null ? void 0 : v[F]) == null ? void 0 : M.order, j = (P = I[F]) == null ? void 0 : P.order;
1214
+ const D = [], H = Object.keys($.value).length;
1215
+ for (const A in $.value) {
1216
+ const L = (E = (v = l.configSchema) == null ? void 0 : v[A]) == null ? void 0 : E.order, j = (K = T[A]) == null ? void 0 : K.order;
1208
1217
  let O = H;
1209
- (j || j === 0) && (O = j === -1 ? H + 1 : j), L && (O = L === -1 ? H + 1 : L), D.push([F, O]);
1218
+ (j || j === 0) && (O = j === -1 ? H + 1 : j), L && (O = L === -1 ? H + 1 : L), D.push([A, O]);
1210
1219
  }
1211
- return D.sort(function(F, L) {
1212
- return F[1] - L[1];
1213
- }), D.map((F) => {
1220
+ return D.sort(function(A, L) {
1221
+ return A[1] - L[1];
1222
+ }), D.map((A) => {
1214
1223
  var L, j;
1215
- const O = F[0], ie = (L = T.value) == null ? void 0 : L[O], le = ((j = l.configSchema) == null ? void 0 : j[O]) || {}, re = I[O];
1224
+ const O = A[0], ie = (L = $.value) == null ? void 0 : L[O], le = ((j = l.configSchema) == null ? void 0 : j[O]) || {}, re = T[O];
1216
1225
  return {
1217
1226
  key: O,
1218
1227
  value: ie,
@@ -1222,22 +1231,22 @@ const ae = {
1222
1231
  tooltip: le.tooltip ?? ((re == null ? void 0 : re.tooltip) || void 0),
1223
1232
  section: le.section ?? ((re == null ? void 0 : re.section) || oe.Advanced)
1224
1233
  };
1225
- }).filter((F) => !F.hidden && F.key !== l.pluginConfigKey);
1226
- }), U = C(() => {
1227
- var v, M;
1228
- if (!T.value || !l.pluginConfigKey)
1234
+ }).filter((A) => !A.hidden && A.key !== l.pluginConfigKey);
1235
+ }), q = k(() => {
1236
+ var v, E;
1237
+ if (!$.value || !l.pluginConfigKey)
1229
1238
  return [];
1230
- const P = T.value[l.pluginConfigKey] || {}, D = Object.keys(P).length, H = [];
1231
- for (const F in P) {
1232
- const L = (M = (v = l.pluginConfigSchema) == null ? void 0 : v[F]) == null ? void 0 : M.order, j = P[F];
1239
+ const K = $.value[l.pluginConfigKey] || {}, D = Object.keys(K).length, H = [];
1240
+ for (const A in K) {
1241
+ const L = (E = (v = l.pluginConfigSchema) == null ? void 0 : v[A]) == null ? void 0 : E.order, j = K[A];
1233
1242
  let O = j != null && j !== "" ? D - 1 : D;
1234
- L && (O = L === -1 ? D + 1 : L), H.push([F, O]);
1243
+ L && (O = L === -1 ? D + 1 : L), H.push([A, O]);
1235
1244
  }
1236
- return H.sort(function(F, L) {
1237
- return F[1] - L[1];
1238
- }), H.map((F) => {
1245
+ return H.sort(function(A, L) {
1246
+ return A[1] - L[1];
1247
+ }), H.map((A) => {
1239
1248
  var L;
1240
- const j = F[0], O = P[j], ie = ((L = l.pluginConfigSchema) == null ? void 0 : L[j]) || {};
1249
+ const j = A[0], O = K[j], ie = ((L = l.pluginConfigSchema) == null ? void 0 : L[j]) || {};
1241
1250
  return {
1242
1251
  key: j,
1243
1252
  value: O,
@@ -1247,65 +1256,65 @@ const ae = {
1247
1256
  tooltip: ie.tooltip ?? void 0,
1248
1257
  section: oe.Plugin
1249
1258
  };
1250
- }).filter((F) => !F.hidden);
1251
- }), p = C(() => {
1252
- var v, M, P, D;
1259
+ }).filter((A) => !A.hidden);
1260
+ }), p = k(() => {
1261
+ var v, E, K, D;
1253
1262
  return {
1254
- basic: (v = B.value) == null ? void 0 : v.filter((H) => H.section === oe.Basic),
1255
- advanced: (M = B.value) == null ? void 0 : M.filter((H) => H.section === oe.Advanced),
1256
- plugin: (D = U.value) == null ? void 0 : D.concat((P = B.value) == null ? void 0 : P.filter((H) => H.section === oe.Plugin))
1263
+ basic: (v = P.value) == null ? void 0 : v.filter((H) => H.section === oe.Basic),
1264
+ advanced: (E = P.value) == null ? void 0 : E.filter((H) => H.section === oe.Advanced),
1265
+ plugin: (D = q.value) == null ? void 0 : D.concat((K = P.value) == null ? void 0 : K.filter((H) => H.section === oe.Plugin))
1257
1266
  };
1258
- }), w = C(() => {
1267
+ }), w = k(() => {
1259
1268
  const v = [];
1260
1269
  return p.value.basic.length && v.push("basic"), p.value.advanced.length && v.push("advanced"), p.value.plugin.length && v.push("plugin"), v;
1261
- }), a = (v) => !!(v.tooltip || u[`${v.key}-label-tooltip`]), b = C(() => {
1262
- var v, M;
1263
- let P = `${l.config.apiBaseUrl}${l.fetchUrl}`;
1264
- return l.config.app === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((v = l.config) == null ? void 0 : v.controlPlaneId) || "") : l.config.app === "kongManager" && (P = P.replace(/\/{workspace}/gi, (M = l.config) != null && M.workspace ? `/${l.config.workspace}` : "")), P = P.replace(/{id}/gi, l.config.entityId), P;
1270
+ }), a = (v) => !!(v.tooltip || u[`${v.key}-label-tooltip`]), b = k(() => {
1271
+ var v, E;
1272
+ let K = `${l.config.apiBaseUrl}${l.fetchUrl}`;
1273
+ return l.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((v = l.config) == null ? void 0 : v.controlPlaneId) || "") : l.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (E = l.config) != null && E.workspace ? `/${l.config.workspace}` : "")), K = K.replace(/{id}/gi, l.config.entityId), K;
1265
1274
  }), N = (v) => {
1266
- T.value && v(JSON.stringify(T.value)) ? i("copy:success", T.value) : i("copy:error");
1275
+ $.value && v(JSON.stringify($.value)) ? i("copy:success", $.value) : i("copy:error");
1267
1276
  };
1268
1277
  return ue(_, (v) => {
1269
1278
  i("loading", v);
1270
- }, { immediate: !0 }), Ke(async () => {
1271
- k.value = !1, _.value = !0;
1279
+ }, { immediate: !0 }), Ee(async () => {
1280
+ C.value = !1, _.value = !0;
1272
1281
  try {
1273
1282
  const { data: v } = await g.get(b.value);
1274
1283
  if (l.dataKey)
1275
1284
  if (typeof v[l.dataKey] < "u")
1276
- T.value = { ...v[l.dataKey] };
1285
+ $.value = { ...v[l.dataKey] };
1277
1286
  else
1278
- throw new Error(c("errors.dataKeyUndefined", { dataKey: l.dataKey }));
1287
+ throw new Error(d("errors.dataKeyUndefined", { dataKey: l.dataKey }));
1279
1288
  else
1280
- T.value = { ...v };
1281
- Object.keys(l.configSchema).filter((M) => l.configSchema[M].forceShow).forEach((M) => {
1282
- T.value && typeof T.value[M] > "u" && (T.value[M] = null);
1289
+ $.value = { ...v };
1290
+ Object.keys(l.configSchema).filter((E) => l.configSchema[E].forceShow).forEach((E) => {
1291
+ $.value && typeof $.value[E] > "u" && ($.value[E] = null);
1283
1292
  }), i("fetch:success", v);
1284
1293
  } catch (v) {
1285
- const M = h(v);
1286
- A.value = M.startsWith("code") ? c("baseConfigCard.errors.load") : M, k.value = !0, i("fetch:error", v);
1294
+ const E = h(v);
1295
+ F.value = E.startsWith("code") ? d("baseConfigCard.errors.load") : E, C.value = !0, i("fetch:error", v);
1287
1296
  } finally {
1288
1297
  _.value = !1;
1289
1298
  }
1290
- }), (v, M) => {
1291
- const P = E("KButton"), D = E("KClipboardProvider"), H = E("KSkeleton"), F = E("KEmptyState"), L = E("KCard");
1299
+ }), (v, E) => {
1300
+ const K = U("KButton"), D = U("KClipboardProvider"), H = U("KSkeleton"), A = U("KEmptyState"), L = U("KCard");
1292
1301
  return f(), z(L, {
1293
1302
  "border-variant": "noBorder",
1294
1303
  class: "kong-ui-entity-base-config-card"
1295
1304
  }, _e({
1296
- actions: d(() => [
1297
- V("div", Ca, [
1305
+ actions: c(() => [
1306
+ V("div", ka, [
1298
1307
  X(v.$slots, "actions", {}, void 0, !0),
1299
1308
  m(D, null, {
1300
- default: d(({ copyToClipboard: j }) => [
1301
- !_.value && !k.value ? (f(), z(P, {
1309
+ default: c(({ copyToClipboard: j }) => [
1310
+ !_.value && !C.value ? (f(), z(K, {
1302
1311
  key: 0,
1303
1312
  appearance: "btn-link",
1304
1313
  "data-testid": "json-copy-button",
1305
1314
  onClick: (O) => N(j)
1306
1315
  }, {
1307
- default: d(() => [
1308
- G($(r(c)("baseConfigCard.actions.copy")), 1)
1316
+ default: c(() => [
1317
+ G(I(r(d)("baseConfigCard.actions.copy")), 1)
1309
1318
  ]),
1310
1319
  _: 2
1311
1320
  }, 1032, ["onClick"])) : W("", !0)
@@ -1314,37 +1323,37 @@ const ae = {
1314
1323
  })
1315
1324
  ])
1316
1325
  ]),
1317
- body: d(() => [
1326
+ body: c(() => [
1318
1327
  _.value ? (f(), z(H, {
1319
1328
  key: 0,
1320
1329
  "data-testid": "config-card-loader",
1321
1330
  "table-columns": 2,
1322
1331
  type: "table"
1323
- })) : k.value ? (f(), z(F, {
1332
+ })) : C.value ? (f(), z(A, {
1324
1333
  key: 1,
1325
1334
  "data-testid": "config-card-fetch-error",
1326
1335
  "is-error": ""
1327
1336
  }, {
1328
- message: d(() => [
1329
- V("h3", null, $(A.value), 1)
1337
+ message: c(() => [
1338
+ V("h3", null, I(F.value), 1)
1330
1339
  ]),
1331
1340
  _: 1
1332
1341
  })) : W("", !0),
1333
- V("div", Sa, [
1342
+ V("div", Ca, [
1334
1343
  (f(!0), x(ce, null, se(w.value, (j) => (f(), x("div", {
1335
1344
  key: `config-card-details-${j}-props`,
1336
1345
  class: ge(`config-card-details-${j}-props`),
1337
1346
  "data-testid": `config-card-details-${j}-props`
1338
1347
  }, [
1339
- j !== "basic" ? (f(), x("div", $a, $(j === "advanced" ? r(c)("baseConfigCard.sections.advanced") : r(c)("baseConfigCard.sections.plugin")), 1)) : W("", !0),
1348
+ j !== "basic" ? (f(), x("div", Ia, I(j === "advanced" ? r(d)("baseConfigCard.sections.advanced") : r(d)("baseConfigCard.sections.plugin")), 1)) : W("", !0),
1340
1349
  (f(!0), x(ce, null, se(p.value[j], (O) => (f(), z(at, {
1341
1350
  key: O.key,
1342
1351
  item: O
1343
1352
  }, _e({
1344
- label: d(() => [
1353
+ label: c(() => [
1345
1354
  X(v.$slots, `${O.key}-label`, { row: O }, void 0, !0)
1346
1355
  ]),
1347
- [O.key]: d(({ rowValue: ie }) => [
1356
+ [O.key]: c(({ rowValue: ie }) => [
1348
1357
  X(v.$slots, O.key, {
1349
1358
  row: O,
1350
1359
  rowValue: ie
@@ -1354,23 +1363,23 @@ const ae = {
1354
1363
  }, [
1355
1364
  a(O) ? {
1356
1365
  name: "label-tooltip",
1357
- fn: d(() => [
1366
+ fn: c(() => [
1358
1367
  X(v.$slots, `${O.key}-label-tooltip`, { row: O }, void 0, !0)
1359
1368
  ]),
1360
1369
  key: "0"
1361
1370
  } : void 0
1362
1371
  ]), 1032, ["item"]))), 128))
1363
- ], 10, Ia))), 128))
1372
+ ], 10, Sa))), 128))
1364
1373
  ])
1365
1374
  ]),
1366
1375
  _: 2
1367
1376
  }, [
1368
1377
  e.hideTitle ? void 0 : {
1369
1378
  name: "title",
1370
- fn: d(() => [
1371
- V("div", ka, [
1379
+ fn: c(() => [
1380
+ V("div", wa, [
1372
1381
  X(v.$slots, "title", {}, () => [
1373
- G($(r(c)("baseConfigCard.title")), 1)
1382
+ G(I(r(d)("baseConfigCard.title")), 1)
1374
1383
  ], !0)
1375
1384
  ])
1376
1385
  ]),
@@ -1379,10 +1388,10 @@ const ae = {
1379
1388
  ]), 1024);
1380
1389
  };
1381
1390
  }
1382
- }), xa = /* @__PURE__ */ ne(Ta, [["__scopeId", "data-v-b72bbdde"]]), Va = ["onReset", "onSubmit"], Pa = {
1391
+ }), $a = /* @__PURE__ */ ne(Ta, [["__scopeId", "data-v-b72bbdde"]]), xa = ["onReset", "onSubmit"], Va = {
1383
1392
  class: "form-actions",
1384
1393
  "data-testid": "form-actions"
1385
- }, Ba = /* @__PURE__ */ te({
1394
+ }, Pa = /* @__PURE__ */ te({
1386
1395
  __name: "EntityBaseForm",
1387
1396
  props: {
1388
1397
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1432,58 +1441,58 @@ const ae = {
1432
1441
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
1433
1442
  setup(e, { emit: i }) {
1434
1443
  var t;
1435
- const l = e, u = Me(), { i18n: { t: c } } = ae.useI18n(), { getMessageFromError: h } = ae.useErrors(), { axiosInstance: s } = ae.useAxios({
1444
+ const l = e, u = Me(), { i18n: { t: d } } = ae.useI18n(), { getMessageFromError: h } = ae.useErrors(), { axiosInstance: s } = ae.useAxios({
1436
1445
  headers: (t = l.config) == null ? void 0 : t.requestHeaders
1437
- }), g = R(!1), I = R(!1), _ = R(""), k = C(() => l.canSubmit === !1 || l.isReadonly), A = C(() => {
1446
+ }), g = M(!1), T = M(!1), _ = M(""), C = k(() => l.canSubmit === !1 || l.isReadonly), F = k(() => {
1438
1447
  var p, w;
1439
1448
  if (!l.editId)
1440
1449
  return "";
1441
1450
  let a = `${l.config.apiBaseUrl}${l.fetchUrl}`;
1442
1451
  return l.config.app === "konnect" ? a = a.replace(/{controlPlaneId}/gi, ((p = l.config) == null ? void 0 : p.controlPlaneId) || "") : l.config.app === "kongManager" && (a = a.replace(/\/{workspace}/gi, (w = l.config) != null && w.workspace ? `/${l.config.workspace}` : "")), a = a.replace(/{id}/gi, l.editId), a;
1443
- }), T = () => {
1444
- l.config.cancelRoute ? u.push(l.config.cancelRoute) : B();
1445
- }, B = () => {
1452
+ }), $ = () => {
1453
+ l.config.cancelRoute ? u.push(l.config.cancelRoute) : P();
1454
+ }, P = () => {
1446
1455
  i("cancel");
1447
- }, U = () => {
1448
- k.value || i("submit");
1456
+ }, q = () => {
1457
+ C.value || i("submit");
1449
1458
  };
1450
1459
  return ue(() => g.value, (p) => {
1451
1460
  i("loading", p);
1452
- }, { immediate: !0 }), Ke(async () => {
1461
+ }, { immediate: !0 }), Ee(async () => {
1453
1462
  if (l.editId)
1454
1463
  try {
1455
- I.value = !1, g.value = !0;
1456
- const { data: p } = await s.get(A.value);
1464
+ T.value = !1, g.value = !0;
1465
+ const { data: p } = await s.get(F.value);
1457
1466
  i("fetch:success", p);
1458
1467
  } catch (p) {
1459
1468
  const w = h(p);
1460
- _.value = w.startsWith("code") ? c("baseForm.errors.edit") : w, I.value = !0, i("fetch:error", p);
1469
+ _.value = w.startsWith("code") ? d("baseForm.errors.edit") : w, T.value = !0, i("fetch:error", p);
1461
1470
  } finally {
1462
1471
  g.value = !1;
1463
1472
  }
1464
1473
  }), (p, w) => {
1465
- const a = E("KSkeleton"), b = E("KEmptyState"), N = E("KAlert"), v = E("KButton"), M = E("KCard");
1466
- return f(), z(M, { class: "kong-ui-entity-base-form" }, {
1467
- body: d(() => [
1474
+ const a = U("KSkeleton"), b = U("KEmptyState"), N = U("KAlert"), v = U("KButton"), E = U("KCard");
1475
+ return f(), z(E, { class: "kong-ui-entity-base-form" }, {
1476
+ body: c(() => [
1468
1477
  g.value ? (f(), z(a, {
1469
1478
  key: 0,
1470
1479
  type: "form"
1471
- })) : I.value ? (f(), z(b, {
1480
+ })) : T.value ? (f(), z(b, {
1472
1481
  key: 1,
1473
- "cta-text": r(c)("baseForm.actions.back"),
1482
+ "cta-text": r(d)("baseForm.actions.back"),
1474
1483
  "data-testid": "form-fetch-error",
1475
- "handle-click": T,
1484
+ "handle-click": $,
1476
1485
  "is-error": !0
1477
1486
  }, {
1478
- message: d(() => [
1479
- V("h3", null, $(_.value), 1)
1487
+ message: c(() => [
1488
+ V("h3", null, I(_.value), 1)
1480
1489
  ]),
1481
1490
  _: 1
1482
1491
  }, 8, ["cta-text"])) : (f(), x("form", {
1483
1492
  key: 2,
1484
1493
  "data-testid": "form-content",
1485
- onReset: ve(B, ["prevent"]),
1486
- onSubmit: ve(U, ["prevent"])
1494
+ onReset: ve(P, ["prevent"]),
1495
+ onSubmit: ve(q, ["prevent"])
1487
1496
  }, [
1488
1497
  X(p.$slots, "default", {}, void 0, !0),
1489
1498
  e.errorMessage ? (f(), z(N, {
@@ -1492,7 +1501,7 @@ const ae = {
1492
1501
  appearance: "danger",
1493
1502
  "data-testid": "form-error"
1494
1503
  }, null, 8, ["alert-message"])) : W("", !0),
1495
- V("div", Pa, [
1504
+ V("div", Va, [
1496
1505
  X(p.$slots, "form-actions", {}, () => [
1497
1506
  m(v, {
1498
1507
  appearance: "outline",
@@ -1500,31 +1509,31 @@ const ae = {
1500
1509
  disabled: e.isReadonly,
1501
1510
  type: "reset"
1502
1511
  }, {
1503
- default: d(() => [
1504
- G($(r(c)("baseForm.actions.cancel")), 1)
1512
+ default: c(() => [
1513
+ G(I(r(d)("baseForm.actions.cancel")), 1)
1505
1514
  ]),
1506
1515
  _: 1
1507
1516
  }, 8, ["disabled"]),
1508
1517
  m(v, {
1509
1518
  appearance: "primary",
1510
1519
  "data-testid": "form-submit",
1511
- disabled: k.value,
1520
+ disabled: C.value,
1512
1521
  type: "submit"
1513
1522
  }, {
1514
- default: d(() => [
1515
- G($(r(c)("baseForm.actions.save")), 1)
1523
+ default: c(() => [
1524
+ G(I(r(d)("baseForm.actions.save")), 1)
1516
1525
  ]),
1517
1526
  _: 1
1518
1527
  }, 8, ["disabled"])
1519
1528
  ], !0)
1520
1529
  ])
1521
- ], 40, Va))
1530
+ ], 40, xa))
1522
1531
  ]),
1523
1532
  _: 3
1524
1533
  });
1525
1534
  };
1526
1535
  }
1527
- }), Ka = /* @__PURE__ */ ne(Ba, [["__scopeId", "data-v-2286e5f2"]]), Ea = { key: 0 }, Ma = /* @__PURE__ */ te({
1536
+ }), Ka = /* @__PURE__ */ ne(Pa, [["__scopeId", "data-v-2286e5f2"]]), Ba = { key: 0 }, Ua = /* @__PURE__ */ te({
1528
1537
  __name: "EntityBaseTableCell",
1529
1538
  props: {
1530
1539
  keyName: {
@@ -1537,69 +1546,69 @@ const ae = {
1537
1546
  }
1538
1547
  },
1539
1548
  setup(e) {
1540
- const i = e, t = C(() => {
1541
- var U;
1542
- return ((U = i.rowEl) == null ? void 0 : U.querySelector(`[data-testid="${i.keyName}"]`)) || null;
1543
- }), l = C(() => {
1544
- var U;
1545
- return ((U = t.value) == null ? void 0 : U.querySelector('[role="button"]')) || null;
1546
- }), u = C(() => {
1547
- var U, p;
1548
- const w = (U = i.rowEl) == null ? void 0 : U.querySelectorAll("td");
1549
+ const i = e, t = k(() => {
1550
+ var q;
1551
+ return ((q = i.rowEl) == null ? void 0 : q.querySelector(`[data-testid="${i.keyName}"]`)) || null;
1552
+ }), l = k(() => {
1553
+ var q;
1554
+ return ((q = t.value) == null ? void 0 : q.querySelector('[role="button"]')) || null;
1555
+ }), u = k(() => {
1556
+ var q, p;
1557
+ const w = (q = i.rowEl) == null ? void 0 : q.querySelectorAll("td");
1549
1558
  return w ? ((p = w[0]) == null ? void 0 : p.getAttribute("data-testid")) === i.keyName : !1;
1550
1559
  });
1551
- let c;
1560
+ let d;
1552
1561
  const h = () => {
1553
- c && (c.disconnect(), c = void 0);
1562
+ d && (d.disconnect(), d = void 0);
1554
1563
  }, s = () => {
1555
- var U, p, w;
1556
- I.value = ((U = l.value) == null ? void 0 : U.getBoundingClientRect().width) || 0, _.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, k.value = ((w = g.value) == null ? void 0 : w.innerText) || "";
1557
- }, g = R({}), I = R(0), _ = R(0), k = R(""), A = C(() => [l.value, t.value]), T = ue(
1558
- A,
1559
- (U) => {
1564
+ var q, p, w;
1565
+ T.value = ((q = l.value) == null ? void 0 : q.getBoundingClientRect().width) || 0, _.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, C.value = ((w = g.value) == null ? void 0 : w.innerText) || "";
1566
+ }, g = M({}), T = M(0), _ = M(0), C = M(""), F = k(() => [l.value, t.value]), $ = ue(
1567
+ F,
1568
+ (q) => {
1560
1569
  if (u.value && (h(), "ResizeObserver" in window && window)) {
1561
- c = new ResizeObserver((p) => {
1570
+ d = new ResizeObserver((p) => {
1562
1571
  window.requestAnimationFrame(() => {
1563
1572
  !Array.isArray(p) || !p.length || s();
1564
1573
  });
1565
1574
  });
1566
- for (const p of U)
1567
- p && c.observe(p);
1575
+ for (const p of q)
1576
+ p && d.observe(p);
1568
1577
  }
1569
1578
  },
1570
1579
  { immediate: !0, flush: "post", deep: !0 }
1571
- ), B = C(() => u.value ? I.value > _.value : !1);
1580
+ ), P = k(() => u.value ? T.value > _.value : !1);
1572
1581
  return ze(() => {
1573
1582
  s();
1574
1583
  }), ct(() => {
1575
- T();
1576
- }), (U, p) => {
1577
- const w = E("KTooltip");
1584
+ $();
1585
+ }), (q, p) => {
1586
+ const w = U("KTooltip");
1578
1587
  return f(), x("span", {
1579
1588
  ref_key: "contentRef",
1580
1589
  ref: g,
1581
1590
  class: "content-wrapper"
1582
1591
  }, [
1583
- u.value ? (f(), x("span", Ea, [
1592
+ u.value ? (f(), x("span", Ba, [
1584
1593
  m(w, {
1585
- disabled: !B.value,
1586
- label: k.value,
1594
+ disabled: !P.value,
1595
+ label: C.value,
1587
1596
  "max-width": "300",
1588
1597
  placement: "bottomStart"
1589
1598
  }, {
1590
- default: d(() => [
1591
- X(U.$slots, "default", {}, void 0, !0)
1599
+ default: c(() => [
1600
+ X(q.$slots, "default", {}, void 0, !0)
1592
1601
  ]),
1593
1602
  _: 3
1594
1603
  }, 8, ["disabled", "label"])
1595
- ])) : X(U.$slots, "default", { key: 1 }, void 0, !0)
1604
+ ])) : X(q.$slots, "default", { key: 1 }, void 0, !0)
1596
1605
  ], 512);
1597
1606
  };
1598
1607
  }
1599
- }), Ra = /* @__PURE__ */ ne(Ma, [["__scopeId", "data-v-f8a220e9"]]), Ua = { class: "toolbar-container" }, qa = {
1608
+ }), Ea = /* @__PURE__ */ ne(Ua, [["__scopeId", "data-v-f8a220e9"]]), Ma = { class: "toolbar-container" }, qa = {
1600
1609
  key: 0,
1601
1610
  class: "toolbar-button-container"
1602
- }, Fa = ["data-testid"], Aa = /* @__PURE__ */ te({
1611
+ }, Ra = ["data-testid"], Fa = /* @__PURE__ */ te({
1603
1612
  __name: "EntityBaseTable",
1604
1613
  props: {
1605
1614
  // table header configuration
@@ -1703,7 +1712,7 @@ const ae = {
1703
1712
  },
1704
1713
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
1705
1714
  setup(e, { emit: i }) {
1706
- const t = e, { i18n: { t: l } } = ae.useI18n(), u = C(() => t.cacheIdentifier || t.preferencesStorageKey), c = (b) => b.hasData || !!t.query, h = C(() => {
1715
+ const t = e, { i18n: { t: l } } = ae.useI18n(), u = k(() => t.cacheIdentifier || t.preferencesStorageKey), d = (b) => b.hasData || !!t.query, h = k(() => {
1707
1716
  const b = [];
1708
1717
  return Object.keys(t.tableHeaders).forEach((N) => {
1709
1718
  const v = t.tableHeaders[N];
@@ -1720,7 +1729,7 @@ const ae = {
1720
1729
  "data-rowid": b.id,
1721
1730
  "data-testid": b.name,
1722
1731
  ...t.rowAttributes(b)
1723
- }), g = R({}), I = (b) => {
1732
+ }), g = M({}), T = (b) => {
1724
1733
  var N;
1725
1734
  return (N = g.value) == null ? void 0 : N.$el.querySelector(`[data-rowid="${b.id}"]`);
1726
1735
  }, _ = (b) => {
@@ -1733,30 +1742,30 @@ const ae = {
1733
1742
  overflowX: "hidden",
1734
1743
  textOverflow: "ellipsis"
1735
1744
  }), N;
1736
- }, k = () => {
1737
- i("empty-state-cta-clicked"), A();
1738
- }, A = () => {
1745
+ }, C = () => {
1746
+ i("empty-state-cta-clicked"), F();
1747
+ }, F = () => {
1739
1748
  i("clear-search-input");
1740
- }, T = (b, N) => {
1749
+ }, $ = (b, N) => {
1741
1750
  i("click:row", N);
1742
- }, B = (b) => {
1751
+ }, P = (b) => {
1743
1752
  i("sort", b);
1744
- }, { setTablePreferences: U, getTablePreferences: p } = St(), w = C(() => {
1753
+ }, { setTablePreferences: q, getTablePreferences: p } = St(), w = k(() => {
1745
1754
  const b = p(t.preferencesStorageKey);
1746
1755
  return {
1747
1756
  ...t.initialFetcherParams,
1748
1757
  ...b
1749
1758
  };
1750
1759
  }), a = (b) => {
1751
- t.preferencesStorageKey && U(t.preferencesStorageKey, b);
1760
+ t.preferencesStorageKey && q(t.preferencesStorageKey, b);
1752
1761
  };
1753
1762
  return (b, N) => {
1754
- const v = E("KIcon"), M = E("KButton"), P = E("KDropdownMenu"), D = E("KTable"), H = E("KCard");
1763
+ const v = U("KIcon"), E = U("KButton"), K = U("KDropdownMenu"), D = U("KTable"), H = U("KCard");
1755
1764
  return f(), z(H, {
1756
1765
  class: "kong-ui-entity-base-table",
1757
1766
  title: e.title
1758
1767
  }, {
1759
- body: d(() => [
1768
+ body: c(() => [
1760
1769
  m(D, {
1761
1770
  ref_key: "tableRefs",
1762
1771
  ref: g,
@@ -1783,46 +1792,46 @@ const ae = {
1783
1792
  "pagination-type": e.paginationType,
1784
1793
  "row-attrs": s,
1785
1794
  "search-input": e.query,
1786
- onKtableEmptyStateCtaClicked: k,
1787
- "onRow:click": T,
1788
- onSort: N[0] || (N[0] = (F) => B(F)),
1795
+ onKtableEmptyStateCtaClicked: C,
1796
+ "onRow:click": $,
1797
+ onSort: N[0] || (N[0] = (A) => P(A)),
1789
1798
  "onUpdate:tablePreferences": a
1790
1799
  }, _e({
1791
- toolbar: d(({ state: F }) => [
1792
- Se(V("div", Ua, [
1800
+ toolbar: c(({ state: A }) => [
1801
+ Se(V("div", Ma, [
1793
1802
  X(b.$slots, "toolbar-filter", {}, void 0, !0),
1794
1803
  b.$slots["toolbar-button"] ? (f(), x("div", qa, [
1795
1804
  X(b.$slots, "toolbar-button", {}, void 0, !0)
1796
1805
  ])) : W("", !0)
1797
1806
  ], 512), [
1798
- [Ie, c(F)]
1807
+ [Ie, d(A)]
1799
1808
  ])
1800
1809
  ]),
1801
- actions: d(({ row: F, rowKey: L, rowValue: j }) => [
1810
+ actions: c(({ row: A, rowKey: L, rowValue: j }) => [
1802
1811
  V("div", {
1803
1812
  class: "actions-container",
1804
- "data-testid": F.name
1813
+ "data-testid": A.name
1805
1814
  }, [
1806
- m(P, {
1815
+ m(K, {
1807
1816
  "kpop-attributes": { placement: "bottomEnd" },
1808
1817
  width: e.dropdownMenuWidth
1809
1818
  }, {
1810
- items: d(() => [
1819
+ items: c(() => [
1811
1820
  X(b.$slots, "actions", {
1812
- row: F,
1821
+ row: A,
1813
1822
  rowKey: L,
1814
1823
  rowValue: j
1815
1824
  }, void 0, !0)
1816
1825
  ]),
1817
- default: d(() => [
1818
- m(M, {
1826
+ default: c(() => [
1827
+ m(E, {
1819
1828
  class: "actions-trigger",
1820
1829
  "data-testid": "overflow-actions-button",
1821
1830
  size: "small"
1822
1831
  }, {
1823
- icon: d(() => [
1832
+ icon: c(() => [
1824
1833
  m(v, {
1825
- color: r(sa),
1834
+ color: r(ra),
1826
1835
  icon: "more",
1827
1836
  size: "16"
1828
1837
  }, null, 8, ["color"])
@@ -1832,24 +1841,24 @@ const ae = {
1832
1841
  ]),
1833
1842
  _: 2
1834
1843
  }, 1032, ["width"])
1835
- ], 8, Fa)
1844
+ ], 8, Ra)
1836
1845
  ]),
1837
1846
  _: 2
1838
1847
  }, [
1839
- se(e.tableHeaders, (F, L) => ({
1848
+ se(e.tableHeaders, (A, L) => ({
1840
1849
  name: L,
1841
- fn: d(({ row: j, rowKey: O, rowValue: ie }) => [
1842
- m(Ra, {
1850
+ fn: c(({ row: j, rowKey: O, rowValue: ie }) => [
1851
+ m(Ea, {
1843
1852
  "key-name": String(L),
1844
- "row-el": I(j)
1853
+ "row-el": T(j)
1845
1854
  }, {
1846
- default: d(() => [
1855
+ default: c(() => [
1847
1856
  X(b.$slots, L, {
1848
1857
  row: j,
1849
1858
  rowKey: O,
1850
1859
  rowValue: ie
1851
1860
  }, () => [
1852
- G($(ie), 1)
1861
+ G(I(ie), 1)
1853
1862
  ], !0)
1854
1863
  ]),
1855
1864
  _: 2
@@ -1862,13 +1871,13 @@ const ae = {
1862
1871
  }, 8, ["title"]);
1863
1872
  };
1864
1873
  }
1865
- }), La = /* @__PURE__ */ ne(Aa, [["__scopeId", "data-v-a598b1d9"]]), ja = {
1874
+ }), Aa = /* @__PURE__ */ ne(Fa, [["__scopeId", "data-v-a598b1d9"]]), La = {
1866
1875
  key: 0,
1867
1876
  class: "kong-ui-entity-delete-error"
1868
- }, Oa = {
1877
+ }, ja = {
1869
1878
  key: 1,
1870
1879
  class: "description"
1871
- }, Na = /* @__PURE__ */ te({
1880
+ }, Oa = /* @__PURE__ */ te({
1872
1881
  __name: "EntityDeleteModal",
1873
1882
  props: {
1874
1883
  visible: {
@@ -1907,13 +1916,13 @@ const ae = {
1907
1916
  },
1908
1917
  emits: ["cancel", "proceed"],
1909
1918
  setup(e, { emit: i }) {
1910
- const t = e, { i18nT: l } = ae.useI18n(), u = C(() => t.needConfirm ? t.entityName : ""), c = () => {
1919
+ const t = e, { i18nT: l } = ae.useI18n(), u = k(() => t.needConfirm ? t.entityName : ""), d = () => {
1911
1920
  i("cancel");
1912
1921
  }, h = () => {
1913
1922
  i("proceed");
1914
1923
  };
1915
1924
  return (s, g) => {
1916
- const I = E("KAlert"), _ = E("KPrompt");
1925
+ const T = U("KAlert"), _ = U("KPrompt");
1917
1926
  return f(), z(_, {
1918
1927
  "action-button-text": "Yes, delete",
1919
1928
  "action-pending": e.actionPending,
@@ -1922,14 +1931,14 @@ const ae = {
1922
1931
  "is-visible": e.visible,
1923
1932
  title: e.title,
1924
1933
  type: "danger",
1925
- onCanceled: c,
1934
+ onCanceled: d,
1926
1935
  onProceed: h
1927
1936
  }, {
1928
- "body-content": d(() => [
1929
- e.error ? (f(), x("div", ja, [
1930
- m(I, { appearance: "danger" }, {
1931
- alertMessage: d(() => [
1932
- G($(e.error), 1)
1937
+ "body-content": c(() => [
1938
+ e.error ? (f(), x("div", La, [
1939
+ m(T, { appearance: "danger" }, {
1940
+ alertMessage: c(() => [
1941
+ G(I(e.error), 1)
1933
1942
  ]),
1934
1943
  _: 1
1935
1944
  })
@@ -1939,22 +1948,22 @@ const ae = {
1939
1948
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1940
1949
  tag: "p"
1941
1950
  }, _e({
1942
- entityType: d(() => [
1943
- G($(t.entityType), 1)
1951
+ entityType: c(() => [
1952
+ G(I(t.entityType), 1)
1944
1953
  ]),
1945
1954
  _: 2
1946
1955
  }, [
1947
1956
  t.entityName ? {
1948
1957
  name: "entityName",
1949
- fn: d(() => [
1950
- V("strong", null, $(t.entityName), 1)
1958
+ fn: c(() => [
1959
+ V("strong", null, I(t.entityName), 1)
1951
1960
  ]),
1952
1961
  key: "0"
1953
1962
  } : void 0
1954
1963
  ]), 1032, ["keypath"]),
1955
- t.description || s.$slots.description ? (f(), x("div", Oa, [
1964
+ t.description || s.$slots.description ? (f(), x("div", ja, [
1956
1965
  X(s.$slots, "description", {}, () => [
1957
- V("p", null, $(t.description), 1)
1966
+ V("p", null, I(t.description), 1)
1958
1967
  ], !0)
1959
1968
  ])) : W("", !0)
1960
1969
  ]),
@@ -1962,13 +1971,13 @@ const ae = {
1962
1971
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
1963
1972
  };
1964
1973
  }
1965
- }), Da = /* @__PURE__ */ ne(Na, [["__scopeId", "data-v-1c9a2a07"]]), Ga = {
1974
+ }), Na = /* @__PURE__ */ ne(Oa, [["__scopeId", "data-v-1c9a2a07"]]), Da = {
1966
1975
  fill: "none",
1967
1976
  height: "20",
1968
1977
  viewBox: "0 0 20 20",
1969
1978
  width: "20",
1970
1979
  xmlns: "http://www.w3.org/2000/svg"
1971
- }, Ha = {
1980
+ }, Ga = {
1972
1981
  id: "mask0_180_20349",
1973
1982
  height: "20",
1974
1983
  maskUnits: "userSpaceOnUse",
@@ -1976,35 +1985,35 @@ const ae = {
1976
1985
  width: "20",
1977
1986
  x: "0",
1978
1987
  y: "0"
1979
- }, Ja = ["fill"], za = { mask: "url(#mask0_180_20349)" }, Wa = ["fill"], Za = /* @__PURE__ */ te({
1988
+ }, Ha = ["fill"], Ja = { mask: "url(#mask0_180_20349)" }, za = ["fill"], Wa = /* @__PURE__ */ te({
1980
1989
  __name: "IconFilter",
1981
1990
  props: {
1982
1991
  color: {
1983
1992
  type: String,
1984
- default: `var(--kong-ui-entity-filter-color, ${ia})`
1993
+ default: `var(--kong-ui-entity-filter-color, ${oa})`
1985
1994
  }
1986
1995
  },
1987
1996
  setup(e) {
1988
- return (i, t) => (f(), x("svg", Ga, [
1989
- V("mask", Ha, [
1997
+ return (i, t) => (f(), x("svg", Da, [
1998
+ V("mask", Ga, [
1990
1999
  V("rect", {
1991
2000
  fill: e.color,
1992
2001
  height: "20",
1993
2002
  width: "20"
1994
- }, null, 8, Ja)
2003
+ }, null, 8, Ha)
1995
2004
  ]),
1996
- V("g", za, [
2005
+ V("g", Ja, [
1997
2006
  V("path", {
1998
2007
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
1999
2008
  fill: e.color
2000
- }, null, 8, Wa)
2009
+ }, null, 8, za)
2001
2010
  ])
2002
2011
  ]));
2003
2012
  }
2004
- }), Xa = {
2013
+ }), Za = {
2005
2014
  key: 1,
2006
2015
  class: "kong-ui-entity-filter"
2007
- }, Ya = { class: "menu-item-title" }, Qa = { class: "menu-item-indicator" }, el = { class: "menu-item-body" }, tl = ["for"], al = { class: "menu-item-buttons" }, ll = /* @__PURE__ */ te({
2016
+ }, Xa = { class: "menu-item-title" }, Ya = { class: "menu-item-indicator" }, Qa = { class: "menu-item-body" }, el = ["for"], tl = { class: "menu-item-buttons" }, al = /* @__PURE__ */ te({
2008
2017
  __name: "EntityFilter",
2009
2018
  props: {
2010
2019
  // filter config, either exact match or fuzzy match
@@ -2024,12 +2033,12 @@ const ae = {
2024
2033
  },
2025
2034
  emits: ["update:modelValue"],
2026
2035
  setup(e, { emit: i }) {
2027
- const t = e, { i18n: { t: l } } = ae.useI18n(), u = R(!1), c = R({}), h = C(() => {
2036
+ const t = e, { i18n: { t: l } } = ae.useI18n(), u = M(!1), d = M({}), h = k(() => {
2028
2037
  const p = [];
2029
2038
  return new URLSearchParams(t.modelValue).forEach((w, a) => {
2030
2039
  w !== "" && p.push(a);
2031
2040
  }), p;
2032
- }), s = C(() => {
2041
+ }), s = k(() => {
2033
2042
  const p = t.config.fields;
2034
2043
  return Object.keys(p).filter((w) => p[w].searchable).map((w) => ({
2035
2044
  label: p[w].label || w,
@@ -2037,36 +2046,36 @@ const ae = {
2037
2046
  }));
2038
2047
  });
2039
2048
  ue(() => t.modelValue, (p) => {
2040
- c.value = {}, new URLSearchParams(p).forEach((w, a) => {
2041
- c.value[a] = w;
2049
+ d.value = {}, new URLSearchParams(p).forEach((w, a) => {
2050
+ d.value[a] = w;
2042
2051
  });
2043
2052
  });
2044
2053
  const g = () => {
2045
2054
  u.value = !u.value;
2046
- }, I = (p) => {
2055
+ }, T = (p) => {
2047
2056
  i("update:modelValue", p);
2048
- }, _ = (p) => `filter-${p}`, k = (p) => {
2057
+ }, _ = (p) => `filter-${p}`, C = (p) => {
2049
2058
  var w, a;
2050
2059
  return (((a = (w = t.config.schema) == null ? void 0 : w[p]) == null ? void 0 : a.values) ?? []).map((b) => ({
2051
2060
  value: b,
2052
2061
  label: b
2053
2062
  }));
2054
- }, A = (p) => {
2063
+ }, F = (p) => {
2055
2064
  var w, a;
2056
2065
  return ((a = (w = t.config.schema) == null ? void 0 : w[p]) == null ? void 0 : a.type) ?? "text";
2057
- }, T = (p) => {
2058
- c.value = {
2059
- ...c.value,
2066
+ }, $ = (p) => {
2067
+ d.value = {
2068
+ ...d.value,
2060
2069
  [p]: ""
2061
- }, U();
2062
- }, B = () => {
2063
- c.value = {}, U(!0);
2064
- }, U = (p = !1) => {
2065
- const w = Object.keys(c.value).reduce((a, b) => (c.value[b] && (a[b] = `${c.value[b]}`), a), {});
2070
+ }, q();
2071
+ }, P = () => {
2072
+ d.value = {}, q(!0);
2073
+ }, q = (p = !1) => {
2074
+ const w = Object.keys(d.value).reduce((a, b) => (d.value[b] && (a[b] = `${d.value[b]}`), a), {});
2066
2075
  p && (u.value = !1), i("update:modelValue", new URLSearchParams(w).toString());
2067
2076
  };
2068
2077
  return (p, w) => {
2069
- const a = E("KInput"), b = E("KButton"), N = E("KSelect"), v = E("KMenuItem"), M = E("KMenu");
2078
+ const a = U("KInput"), b = U("KButton"), N = U("KSelect"), v = U("KMenuItem"), E = U("KMenu");
2070
2079
  return e.config.isExactMatch ? (f(), z(a, {
2071
2080
  key: 0,
2072
2081
  autocomplete: "off",
@@ -2074,21 +2083,21 @@ const ae = {
2074
2083
  "data-testid": "search-input",
2075
2084
  "model-value": e.modelValue,
2076
2085
  placeholder: e.config.placeholder,
2077
- "onUpdate:modelValue": I
2086
+ "onUpdate:modelValue": T
2078
2087
  }, {
2079
- icon: d(() => [
2080
- m(Za)
2088
+ icon: c(() => [
2089
+ m(Wa)
2081
2090
  ]),
2082
2091
  _: 1
2083
- }, 8, ["model-value", "placeholder"])) : (f(), x("div", Xa, [
2092
+ }, 8, ["model-value", "placeholder"])) : (f(), x("div", Za, [
2084
2093
  m(b, {
2085
2094
  appearance: "btn-link",
2086
2095
  "data-testid": "filter-button",
2087
2096
  icon: "filter",
2088
2097
  onClick: g
2089
2098
  }, {
2090
- default: d(() => [
2091
- G($(r(l)("filter.filterButtonText")) + " " + $(h.value.length > 0 ? `(${h.value.length})` : ""), 1)
2099
+ default: c(() => [
2100
+ G(I(r(l)("filter.filterButtonText")) + " " + I(h.value.length > 0 ? `(${h.value.length})` : ""), 1)
2092
2101
  ]),
2093
2102
  _: 1
2094
2103
  }),
@@ -2098,58 +2107,58 @@ const ae = {
2098
2107
  }, null, 512), [
2099
2108
  [Ie, u.value]
2100
2109
  ]),
2101
- Se(m(M, { class: "kong-ui-entity-filter-menu" }, {
2102
- body: d(() => [
2103
- (f(!0), x(ce, null, se(s.value, (P, D) => (f(), z(v, {
2104
- key: P.value,
2105
- "data-testid": P.value,
2110
+ Se(m(E, { class: "kong-ui-entity-filter-menu" }, {
2111
+ body: c(() => [
2112
+ (f(!0), x(ce, null, se(s.value, (K, D) => (f(), z(v, {
2113
+ key: K.value,
2114
+ "data-testid": K.value,
2106
2115
  expandable: "",
2107
2116
  "last-menu-item": D === s.value.length - 1
2108
2117
  }, {
2109
- itemTitle: d(() => [
2110
- V("span", Ya, [
2111
- G($(P.label) + " ", 1),
2112
- Se(V("span", Qa, null, 512), [
2113
- [Ie, h.value.includes(P.value)]
2118
+ itemTitle: c(() => [
2119
+ V("span", Xa, [
2120
+ G(I(K.label) + " ", 1),
2121
+ Se(V("span", Ya, null, 512), [
2122
+ [Ie, h.value.includes(K.value)]
2114
2123
  ])
2115
2124
  ])
2116
2125
  ]),
2117
- itemBody: d(() => {
2118
- var H, F;
2126
+ itemBody: c(() => {
2127
+ var H, A;
2119
2128
  return [
2120
- V("div", el, [
2129
+ V("div", Qa, [
2121
2130
  V("label", {
2122
2131
  class: "menu-item-label",
2123
- for: _(P.value)
2124
- }, $(r(l)("filter.fieldLabel")), 9, tl),
2125
- ((F = (H = e.config.schema) == null ? void 0 : H[P.value]) == null ? void 0 : F.type) === "select" ? (f(), z(N, {
2132
+ for: _(K.value)
2133
+ }, I(r(l)("filter.fieldLabel")), 9, el),
2134
+ ((A = (H = e.config.schema) == null ? void 0 : H[K.value]) == null ? void 0 : A.type) === "select" ? (f(), z(N, {
2126
2135
  key: 0,
2127
- id: _(P.value),
2128
- modelValue: c.value[P.value],
2129
- "onUpdate:modelValue": (L) => c.value[P.value] = L,
2136
+ id: _(K.value),
2137
+ modelValue: d.value[K.value],
2138
+ "onUpdate:modelValue": (L) => d.value[K.value] = L,
2130
2139
  appearance: "select",
2131
- items: k(P.value),
2140
+ items: C(K.value),
2132
2141
  placeholder: r(l)("filter.selectPlaceholder")
2133
2142
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), z(a, {
2134
2143
  key: 1,
2135
- id: _(P.value),
2136
- modelValue: c.value[P.value],
2137
- "onUpdate:modelValue": (L) => c.value[P.value] = L,
2144
+ id: _(K.value),
2145
+ modelValue: d.value[K.value],
2146
+ "onUpdate:modelValue": (L) => d.value[K.value] = L,
2138
2147
  autocomplete: "off",
2139
2148
  placeholder: r(l)("filter.inputPlaceholder"),
2140
2149
  size: "small",
2141
- type: A(P.value)
2150
+ type: F(K.value)
2142
2151
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
2143
2152
  ]),
2144
- V("div", al, [
2153
+ V("div", tl, [
2145
2154
  m(b, {
2146
2155
  appearance: "btn-link",
2147
2156
  "data-testid": "apply-filter",
2148
2157
  size: "small",
2149
- onClick: w[0] || (w[0] = (L) => U(!0))
2158
+ onClick: w[0] || (w[0] = (L) => q(!0))
2150
2159
  }, {
2151
- default: d(() => [
2152
- G($(r(l)("filter.applyButtonText")), 1)
2160
+ default: c(() => [
2161
+ G(I(r(l)("filter.applyButtonText")), 1)
2153
2162
  ]),
2154
2163
  _: 1
2155
2164
  }),
@@ -2157,10 +2166,10 @@ const ae = {
2157
2166
  appearance: "btn-link",
2158
2167
  "data-testid": "clear-filter",
2159
2168
  size: "small",
2160
- onClick: (L) => T(P.value)
2169
+ onClick: (L) => $(K.value)
2161
2170
  }, {
2162
- default: d(() => [
2163
- G($(r(l)("filter.clearButtonText")), 1)
2171
+ default: c(() => [
2172
+ G(I(r(l)("filter.clearButtonText")), 1)
2164
2173
  ]),
2165
2174
  _: 2
2166
2175
  }, 1032, ["onClick"])
@@ -2170,10 +2179,10 @@ const ae = {
2170
2179
  _: 2
2171
2180
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
2172
2181
  ]),
2173
- actionButton: d(() => [
2174
- m(b, { onClick: B }, {
2175
- default: d(() => [
2176
- G($(r(l)("filter.clearAllButtonText")), 1)
2182
+ actionButton: c(() => [
2183
+ m(b, { onClick: P }, {
2184
+ default: c(() => [
2185
+ G(I(r(l)("filter.clearAllButtonText")), 1)
2177
2186
  ]),
2178
2187
  _: 1
2179
2188
  })
@@ -2185,7 +2194,7 @@ const ae = {
2185
2194
  ]));
2186
2195
  };
2187
2196
  }
2188
- }), ol = /* @__PURE__ */ ne(ll, [["__scopeId", "data-v-745f38c0"]]), il = /* @__PURE__ */ te({
2197
+ }), ll = /* @__PURE__ */ ne(al, [["__scopeId", "data-v-745f38c0"]]), ol = /* @__PURE__ */ te({
2189
2198
  __name: "EntityToggleModal",
2190
2199
  props: {
2191
2200
  visible: {
@@ -2217,45 +2226,45 @@ const ae = {
2217
2226
  },
2218
2227
  emits: ["canceled", "proceed"],
2219
2228
  setup(e, { emit: i }) {
2220
- const t = e, { i18n: { t: l }, i18nT: u } = ae.useI18n(), c = R(!1), h = C(
2229
+ const t = e, { i18n: { t: l }, i18nT: u } = ae.useI18n(), d = M(!1), h = k(
2221
2230
  () => t.action === "enable" ? l("toggleModal.enable.title", { entityType: t.entityType }) : l("toggleModal.disable.title", { entityType: t.entityType })
2222
- ), s = C(
2231
+ ), s = k(
2223
2232
  () => t.action === "enable" ? l("toggleModal.enable.confirmText") : l("toggleModal.disable.confirmText")
2224
- ), g = () => i("canceled"), I = async () => {
2233
+ ), g = () => i("canceled"), T = async () => {
2225
2234
  if (t.onConfirm) {
2226
- c.value = !0;
2235
+ d.value = !0;
2227
2236
  try {
2228
2237
  await t.onConfirm(), i("proceed");
2229
2238
  } catch (_) {
2230
2239
  console.error(_);
2231
2240
  } finally {
2232
- c.value = !1;
2241
+ d.value = !1;
2233
2242
  }
2234
2243
  }
2235
2244
  };
2236
- return (_, k) => {
2237
- const A = E("KPrompt");
2245
+ return (_, C) => {
2246
+ const F = U("KPrompt");
2238
2247
  return f(), z(it, { to: "body" }, [
2239
- m(A, {
2248
+ m(F, {
2240
2249
  "action-button-text": s.value,
2241
- "action-pending": c.value,
2250
+ "action-pending": d.value,
2242
2251
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
2243
2252
  "is-visible": e.visible,
2244
2253
  title: h.value,
2245
2254
  type: "warning",
2246
2255
  onCanceled: g,
2247
- onProceed: I
2256
+ onProceed: T
2248
2257
  }, {
2249
- "body-content": d(() => [
2258
+ "body-content": c(() => [
2250
2259
  m(r(u), {
2251
2260
  keypath: `toggleModal.${t.action}.message`,
2252
2261
  scope: "global"
2253
2262
  }, {
2254
- entityType: d(() => [
2255
- G($(e.entityType), 1)
2263
+ entityType: c(() => [
2264
+ G(I(e.entityType), 1)
2256
2265
  ]),
2257
- entityName: d(() => [
2258
- V("strong", null, $(e.entityName), 1)
2266
+ entityName: c(() => [
2267
+ V("strong", null, I(e.entityName), 1)
2259
2268
  ]),
2260
2269
  _: 1
2261
2270
  }, 8, ["keypath"])
@@ -2287,24 +2296,24 @@ const ae = {
2287
2296
  }
2288
2297
  },
2289
2298
  setup(e) {
2290
- const i = e, t = R(void 0), l = C(() => t.value === !0 || t.value !== void 0 && i.forceShow === !0);
2299
+ const i = e, t = M(void 0), l = k(() => t.value === !0 || t.value !== void 0 && i.forceShow === !0);
2291
2300
  return ue(() => i.authFunction, async () => {
2292
2301
  t.value = await i.authFunction();
2293
- }, { immediate: !0 }), (u, c) => l.value ? X(u.$slots, "default", {
2302
+ }, { immediate: !0 }), (u, d) => l.value ? X(u.$slots, "default", {
2294
2303
  key: 0,
2295
2304
  isAllowed: t.value
2296
2305
  }) : W("", !0);
2297
2306
  }
2298
- }), rl = { class: "form-section-wrapper" }, sl = {
2307
+ }), il = { class: "form-section-wrapper" }, rl = {
2299
2308
  key: 0,
2300
2309
  class: "form-section-title"
2301
- }, nl = {
2310
+ }, sl = {
2302
2311
  key: 1,
2303
2312
  class: "form-section-description"
2304
- }, cl = {
2313
+ }, nl = {
2305
2314
  key: 2,
2306
2315
  class: "form-section-footer"
2307
- }, dl = { class: "form-section-content" }, ul = /* @__PURE__ */ te({
2316
+ }, cl = { class: "form-section-content" }, dl = /* @__PURE__ */ te({
2308
2317
  __name: "EntityFormSection",
2309
2318
  props: {
2310
2319
  title: {
@@ -2329,33 +2338,33 @@ const ae = {
2329
2338
  }
2330
2339
  },
2331
2340
  setup(e) {
2332
- const i = Be();
2341
+ const i = Ue();
2333
2342
  return (t, l) => (f(), x("fieldset", {
2334
2343
  class: ge(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
2335
2344
  }, [
2336
- V("div", rl, [
2345
+ V("div", il, [
2337
2346
  e.hideInfoHeader ? W("", !0) : (f(), x("div", {
2338
2347
  key: 0,
2339
2348
  class: ge(["form-section-info", { sticky: e.stickyInfoHeader }])
2340
2349
  }, [
2341
- e.title ? (f(), x("h4", sl, $(e.title), 1)) : W("", !0),
2342
- e.description || r(i).description ? (f(), x("div", nl, [
2350
+ e.title ? (f(), x("h4", rl, I(e.title), 1)) : W("", !0),
2351
+ e.description || r(i).description ? (f(), x("div", sl, [
2343
2352
  X(t.$slots, "description", {}, () => [
2344
- V("p", null, $(e.description), 1)
2353
+ V("p", null, I(e.description), 1)
2345
2354
  ], !0)
2346
2355
  ])) : W("", !0),
2347
- r(i).footer ? (f(), x("div", cl, [
2356
+ r(i).footer ? (f(), x("div", nl, [
2348
2357
  X(t.$slots, "footer", {}, void 0, !0)
2349
2358
  ])) : W("", !0)
2350
2359
  ], 2)),
2351
- V("div", dl, [
2360
+ V("div", cl, [
2352
2361
  X(t.$slots, "default", {}, void 0, !0)
2353
2362
  ])
2354
2363
  ])
2355
2364
  ], 2));
2356
2365
  }
2357
- }), He = /* @__PURE__ */ ne(ul, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: lt, useDeleteUrlBuilder: pl, useErrors: fl, useFetchUrlBuilder: Nl, useFetcher: yl, useDebouncedFilter: Dl, useStringHelpers: Gl, useGatewayFeatureSupported: ml } = ae;
2358
- const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 }, bl = /* @__PURE__ */ te({
2366
+ }), Je = /* @__PURE__ */ ne(dl, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: lt, useDeleteUrlBuilder: ul, useErrors: pl, useFetchUrlBuilder: Ol, useFetcher: fl, useDebouncedFilter: Nl, useStringHelpers: Dl, useGatewayFeatureSupported: yl } = ae;
2367
+ const ml = { class: "kong-ui-entities-gateway-services-list" }, vl = { key: 1 }, gl = /* @__PURE__ */ te({
2359
2368
  __name: "GatewayServiceList",
2360
2369
  props: {
2361
2370
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2397,9 +2406,9 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2397
2406
  emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
2398
2407
  setup(e, { emit: i }) {
2399
2408
  var me;
2400
- const t = e, { i18n: { t: l } } = $e.useI18n(), u = Me(), { axiosInstance: c } = lt({
2409
+ const t = e, { i18n: { t: l } } = $e.useI18n(), u = Me(), { axiosInstance: d } = lt({
2401
2410
  headers: (me = t.config) == null ? void 0 : me.requestHeaders
2402
- }), h = R(1), s = C(() => t.config.app !== "kongManager" || !!t.config.disableSorting), g = {
2411
+ }), h = M(1), s = k(() => t.config.app !== "kongManager" || !!t.config.disableSorting), g = {
2403
2412
  name: { label: l("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
2404
2413
  protocol: { label: l("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
2405
2414
  host: { label: l("gateway_services.list.table_headers.host"), searchable: !0, sortable: !0 },
@@ -2407,162 +2416,162 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2407
2416
  path: { label: l("gateway_services.list.table_headers.path"), searchable: !0, sortable: !0 },
2408
2417
  enabled: { label: l("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
2409
2418
  tags: { label: l("gateway_services.list.table_headers.tags"), sortable: !1 }
2410
- }, I = g, _ = C(() => {
2419
+ }, T = g, _ = k(() => {
2411
2420
  var o, n;
2412
- let K = `${t.config.apiBaseUrl}${he.list[t.config.app].all}`;
2413
- return t.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((o = t.config) == null ? void 0 : o.controlPlaneId) || "") : t.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (n = t.config) != null && n.workspace ? `/${t.config.workspace}` : "")), K;
2414
- }), k = C(() => t.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${_.value}`) : new URL(_.value)), A = R(""), T = C(() => {
2415
- const K = t.config.app === "konnect" || t.config.isExactMatch;
2416
- if (K)
2421
+ let B = `${t.config.apiBaseUrl}${he.list[t.config.app].all}`;
2422
+ return t.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((o = t.config) == null ? void 0 : o.controlPlaneId) || "") : t.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (n = t.config) != null && n.workspace ? `/${t.config.workspace}` : "")), B;
2423
+ }), C = k(() => t.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${_.value}`) : new URL(_.value)), F = M(""), $ = k(() => {
2424
+ const B = t.config.app === "konnect" || t.config.isExactMatch;
2425
+ if (B)
2417
2426
  return {
2418
- isExactMatch: K,
2427
+ isExactMatch: B,
2419
2428
  placeholder: l("search.placeholder")
2420
2429
  };
2421
- const { name: o, enabled: n, protocol: q, host: Q, port: Y, path: ee } = g;
2430
+ const { name: o, enabled: n, protocol: R, host: Q, port: Y, path: ee } = g;
2422
2431
  return {
2423
- isExactMatch: K,
2424
- fields: { name: o, enabled: n, protocol: q, host: Q, port: Y, path: ee },
2432
+ isExactMatch: B,
2433
+ fields: { name: o, enabled: n, protocol: R, host: Q, port: Y, path: ee },
2425
2434
  schema: t.config.filterSchema
2426
2435
  };
2427
- }), { fetcher: B, fetcherState: U } = yl(t.config, _.value), p = () => {
2428
- A.value = "";
2436
+ }), { fetcher: P, fetcherState: q } = fl(t.config, _.value), p = () => {
2437
+ F.value = "";
2429
2438
  }, w = () => {
2430
2439
  h.value++;
2431
- }, a = R(""), b = C(() => ({
2440
+ }, a = M(""), b = k(() => ({
2432
2441
  ctaPath: t.config.createRoute,
2433
2442
  ctaText: de.value ? l("actions.create") : void 0,
2434
2443
  message: l("gateway_services.list.empty_state.description"),
2435
2444
  title: de.value ? l("gateway_services.list.empty_state.title") : ""
2436
- })), N = R(!1), v = R(null), M = C(() => {
2437
- const K = {
2445
+ })), N = M(!1), v = M(null), E = k(() => {
2446
+ const B = {
2438
2447
  action: "disable",
2439
2448
  id: "",
2440
2449
  name: ""
2441
2450
  };
2442
2451
  if (v.value) {
2443
- const { enabled: o, id: n, name: q } = v.value;
2444
- K.action = o ? "disable" : "enable", K.id = n, K.name = q || n;
2452
+ const { enabled: o, id: n, name: R } = v.value;
2453
+ B.action = o ? "disable" : "enable", B.id = n, B.name = R || n;
2445
2454
  }
2446
- return K;
2447
- }), P = (K) => {
2448
- N.value = !0, v.value = K;
2455
+ return B;
2456
+ }), K = (B) => {
2457
+ N.value = !0, v.value = B;
2449
2458
  }, D = () => {
2450
2459
  N.value = !1, v.value = null;
2451
2460
  }, H = async () => {
2452
- var q, Q;
2453
- if (!await ((q = t.canEdit) == null ? void 0 : q.call(t, v.value)) || !v.value)
2461
+ var R, Q;
2462
+ if (!await ((R = t.canEdit) == null ? void 0 : R.call(t, v.value)) || !v.value)
2454
2463
  return;
2455
- const o = `${k.value.href}/${v.value.id}`, n = !v.value.enabled;
2464
+ const o = `${C.value.href}/${v.value.id}`, n = !v.value.enabled;
2456
2465
  try {
2457
- const { data: Y } = ((Q = t.config) == null ? void 0 : Q.app) === "konnect" ? await c.put(o, { ...v.value, enabled: n }) : await c.patch(o, { ...v.value, enabled: n });
2466
+ const { data: Y } = ((Q = t.config) == null ? void 0 : Q.app) === "konnect" ? await d.put(o, { ...v.value, enabled: n }) : await d.patch(o, { ...v.value, enabled: n });
2458
2467
  i("toggle:success", Y);
2459
2468
  } catch (Y) {
2460
2469
  i("error", Y);
2461
2470
  }
2462
2471
  v.value.enabled = n;
2463
- }, F = (K, o) => {
2464
- const n = K.id;
2472
+ }, A = (B, o) => {
2473
+ const n = B.id;
2465
2474
  if (!o(n)) {
2466
2475
  i("copy:error", {
2467
- entity: K,
2476
+ entity: B,
2468
2477
  field: "id",
2469
2478
  message: l("errors.copy")
2470
2479
  });
2471
2480
  return;
2472
2481
  }
2473
2482
  i("copy:success", {
2474
- entity: K,
2483
+ entity: B,
2475
2484
  field: "id",
2476
2485
  message: l("copy.success", { val: n })
2477
2486
  });
2478
- }, L = (K, o) => {
2479
- const n = JSON.stringify(K);
2487
+ }, L = (B, o) => {
2488
+ const n = JSON.stringify(B);
2480
2489
  if (!o(n)) {
2481
2490
  i("copy:error", {
2482
- entity: K,
2491
+ entity: B,
2483
2492
  message: l("errors.copy")
2484
2493
  });
2485
2494
  return;
2486
2495
  }
2487
2496
  i("copy:success", {
2488
- entity: K,
2497
+ entity: B,
2489
2498
  message: l("copy.success_brief")
2490
2499
  });
2491
- }, j = async (K) => {
2500
+ }, j = async (B) => {
2492
2501
  var n;
2493
- await ((n = t.canRetrieve) == null ? void 0 : n.call(t, K)) && u.push(t.config.getViewRoute(K.id));
2494
- }, O = (K) => ({
2502
+ await ((n = t.canRetrieve) == null ? void 0 : n.call(t, B)) && u.push(t.config.getViewRoute(B.id));
2503
+ }, O = (B) => ({
2495
2504
  label: l("actions.view"),
2496
- to: t.config.getViewRoute(K)
2497
- }), ie = (K) => ({
2505
+ to: t.config.getViewRoute(B)
2506
+ }), ie = (B) => ({
2498
2507
  label: l("actions.edit"),
2499
- to: t.config.getEditRoute(K)
2500
- }), le = R(void 0), re = R(!1), pe = R(!1), we = R(""), ke = pl(t.config, _.value), Te = (K) => {
2501
- le.value = K, re.value = !0;
2508
+ to: t.config.getEditRoute(B)
2509
+ }), le = M(void 0), re = M(!1), pe = M(!1), we = M(""), ke = ul(t.config, _.value), xe = (B) => {
2510
+ le.value = B, re.value = !0;
2502
2511
  }, ye = () => {
2503
2512
  re.value = !1, le.value = void 0;
2504
- }, xe = async () => {
2505
- var K, o, n;
2506
- if ((K = le.value) != null && K.id) {
2513
+ }, Ve = async () => {
2514
+ var B, o, n;
2515
+ if ((B = le.value) != null && B.id) {
2507
2516
  pe.value = !0;
2508
2517
  try {
2509
- await c.delete(ke(le.value.id)), i("delete:success", le.value), ye(), h.value++;
2510
- } catch (q) {
2511
- we.value = ((n = (o = q.response) == null ? void 0 : o.data) == null ? void 0 : n.message) || q.message || l("errors.delete"), i("error", q);
2518
+ await d.delete(ke(le.value.id)), i("delete:success", le.value), ye(), h.value++;
2519
+ } catch (R) {
2520
+ we.value = ((n = (o = R.response) == null ? void 0 : o.data) == null ? void 0 : n.message) || R.message || l("errors.delete"), i("error", R);
2512
2521
  } finally {
2513
2522
  pe.value = !1;
2514
2523
  }
2515
2524
  }
2516
2525
  };
2517
- ue(U, (K) => {
2518
- if (K.status === fe.Error) {
2519
- a.value = l("errors.general"), i("error", K.error);
2526
+ ue(q, (B) => {
2527
+ if (B.status === fe.Error) {
2528
+ a.value = l("errors.general"), i("error", B.error);
2520
2529
  return;
2521
2530
  }
2522
2531
  a.value = "";
2523
2532
  });
2524
- const de = R(!1);
2525
- return Ke(async () => {
2533
+ const de = M(!1);
2534
+ return Ee(async () => {
2526
2535
  de.value = await t.canCreate();
2527
- }), (K, o) => {
2528
- const n = E("KButton"), q = E("KInputSwitch"), Q = E("KBadge"), Y = E("KTruncate"), ee = E("KDropdownItem"), y = E("KClipboardProvider");
2529
- return f(), x("div", vl, [
2530
- m(r(La), {
2536
+ }), (B, o) => {
2537
+ const n = U("KButton"), R = U("KInputSwitch"), Q = U("KBadge"), Y = U("KTruncate"), ee = U("KDropdownItem"), y = U("KClipboardProvider");
2538
+ return f(), x("div", ml, [
2539
+ m(r(Aa), {
2531
2540
  "cache-identifier": e.cacheIdentifier,
2532
2541
  "disable-pagination-page-jump": "",
2533
2542
  "disable-sorting": s.value,
2534
2543
  "empty-state-options": b.value,
2535
2544
  "enable-entity-actions": "",
2536
2545
  "error-message": a.value,
2537
- fetcher: r(B),
2546
+ fetcher: r(P),
2538
2547
  "fetcher-cache-key": h.value,
2539
2548
  "pagination-type": "offset",
2540
2549
  "preferences-storage-key": "kong-ui-entities-gateway-services-list",
2541
- query: A.value,
2542
- "table-headers": r(I),
2550
+ query: F.value,
2551
+ "table-headers": r(T),
2543
2552
  onClearSearchInput: p,
2544
2553
  "onClick:row": o[3] || (o[3] = (J) => j(J)),
2545
2554
  onSort: w
2546
2555
  }, {
2547
- "toolbar-filter": d(() => [
2548
- m(r(ol), {
2549
- modelValue: A.value,
2550
- "onUpdate:modelValue": o[0] || (o[0] = (J) => A.value = J),
2551
- config: T.value
2556
+ "toolbar-filter": c(() => [
2557
+ m(r(ll), {
2558
+ modelValue: F.value,
2559
+ "onUpdate:modelValue": o[0] || (o[0] = (J) => F.value = J),
2560
+ config: $.value
2552
2561
  }, null, 8, ["modelValue", "config"])
2553
2562
  ]),
2554
- "toolbar-button": d(() => [
2563
+ "toolbar-button": c(() => [
2555
2564
  m(r(be), {
2556
2565
  "auth-function": () => e.canCreate()
2557
2566
  }, {
2558
- default: d(() => [
2567
+ default: c(() => [
2559
2568
  m(n, {
2560
2569
  appearance: "primary",
2561
2570
  icon: "plus",
2562
2571
  to: e.config.createRoute
2563
2572
  }, {
2564
- default: d(() => [
2565
- G($(r(l)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
2573
+ default: c(() => [
2574
+ G(I(r(l)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
2566
2575
  ]),
2567
2576
  _: 1
2568
2577
  }, 8, ["to"])
@@ -2570,58 +2579,58 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2570
2579
  _: 1
2571
2580
  }, 8, ["auth-function"])
2572
2581
  ]),
2573
- name: d(({ rowValue: J }) => [
2574
- V("b", null, $(J ?? "-"), 1)
2582
+ name: c(({ rowValue: J }) => [
2583
+ V("b", null, I(J ?? "-"), 1)
2575
2584
  ]),
2576
- enabled: d(({ row: J }) => [
2585
+ enabled: c(({ row: J }) => [
2577
2586
  m(r(be), {
2578
2587
  "auth-function": () => e.canEdit(J),
2579
2588
  "force-show": ""
2580
2589
  }, {
2581
- default: d(({ isAllowed: S }) => [
2590
+ default: c(({ isAllowed: S }) => [
2582
2591
  V("div", {
2583
2592
  onClick: o[1] || (o[1] = ve(() => {
2584
2593
  }, ["stop"]))
2585
2594
  }, [
2586
- m(q, {
2595
+ m(R, {
2587
2596
  modelValue: J.enabled,
2588
2597
  "onUpdate:modelValue": (Ce) => J.enabled = Ce,
2589
2598
  "data-testid": `row-${J.id}-toggle-input`,
2590
2599
  disabled: !S,
2591
2600
  label: J.enabled ? r(l)("actions.enable.enabled_label") : r(l)("actions.enable.disabled_label"),
2592
- onClick: ve((Ce) => P(J), ["prevent"])
2601
+ onClick: ve((Ce) => K(J), ["prevent"])
2593
2602
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "label", "onClick"])
2594
2603
  ])
2595
2604
  ]),
2596
2605
  _: 2
2597
2606
  }, 1032, ["auth-function"])
2598
2607
  ]),
2599
- tags: d(({ rowValue: J }) => [
2608
+ tags: c(({ rowValue: J }) => [
2600
2609
  (J == null ? void 0 : J.length) > 0 ? (f(), z(Y, { key: 0 }, {
2601
- default: d(() => [
2610
+ default: c(() => [
2602
2611
  (f(!0), x(ce, null, se(J, (S) => (f(), z(Q, {
2603
2612
  key: S,
2604
2613
  onClick: o[2] || (o[2] = ve(() => {
2605
2614
  }, ["stop"]))
2606
2615
  }, {
2607
- default: d(() => [
2608
- G($(S), 1)
2616
+ default: c(() => [
2617
+ G(I(S), 1)
2609
2618
  ]),
2610
2619
  _: 2
2611
2620
  }, 1024))), 128))
2612
2621
  ]),
2613
2622
  _: 2
2614
- }, 1024)) : (f(), x("span", gl, "-"))
2623
+ }, 1024)) : (f(), x("span", vl, "-"))
2615
2624
  ]),
2616
- actions: d(({ row: J }) => [
2625
+ actions: c(({ row: J }) => [
2617
2626
  m(y, null, {
2618
- default: d(({ copyToClipboard: S }) => [
2627
+ default: c(({ copyToClipboard: S }) => [
2619
2628
  m(ee, {
2620
2629
  "data-testid": "action-entity-copy-id",
2621
- onClick: (Ce) => F(J, S)
2630
+ onClick: (Ce) => A(J, S)
2622
2631
  }, {
2623
- default: d(() => [
2624
- G($(r(l)("actions.copy_id")), 1)
2632
+ default: c(() => [
2633
+ G(I(r(l)("actions.copy_id")), 1)
2625
2634
  ]),
2626
2635
  _: 2
2627
2636
  }, 1032, ["onClick"])
@@ -2629,13 +2638,13 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2629
2638
  _: 2
2630
2639
  }, 1024),
2631
2640
  m(y, null, {
2632
- default: d(({ copyToClipboard: S }) => [
2641
+ default: c(({ copyToClipboard: S }) => [
2633
2642
  m(ee, {
2634
2643
  "data-testid": "action-entity-copy-json",
2635
2644
  onClick: (Ce) => L(J, S)
2636
2645
  }, {
2637
- default: d(() => [
2638
- G($(r(l)("actions.copy_json")), 1)
2646
+ default: c(() => [
2647
+ G(I(r(l)("actions.copy_json")), 1)
2639
2648
  ]),
2640
2649
  _: 2
2641
2650
  }, 1032, ["onClick"])
@@ -2645,7 +2654,7 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2645
2654
  m(r(be), {
2646
2655
  "auth-function": () => e.canRetrieve(J)
2647
2656
  }, {
2648
- default: d(() => [
2657
+ default: c(() => [
2649
2658
  m(ee, {
2650
2659
  "data-testid": "action-entity-view",
2651
2660
  "has-divider": "",
@@ -2657,7 +2666,7 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2657
2666
  m(r(be), {
2658
2667
  "auth-function": () => e.canEdit(J)
2659
2668
  }, {
2660
- default: d(() => [
2669
+ default: c(() => [
2661
2670
  m(ee, {
2662
2671
  "data-testid": "action-entity-edit",
2663
2672
  item: ie(J.id)
@@ -2668,15 +2677,15 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2668
2677
  m(r(be), {
2669
2678
  "auth-function": () => e.canDelete(J)
2670
2679
  }, {
2671
- default: d(() => [
2680
+ default: c(() => [
2672
2681
  m(ee, {
2673
2682
  "data-testid": "action-entity-delete",
2674
2683
  "has-divider": "",
2675
2684
  "is-dangerous": "",
2676
- onClick: (S) => Te(J)
2685
+ onClick: (S) => xe(J)
2677
2686
  }, {
2678
- default: d(() => [
2679
- G($(r(l)("actions.delete.menu_label")), 1)
2687
+ default: c(() => [
2688
+ G(I(r(l)("actions.delete.menu_label")), 1)
2680
2689
  ]),
2681
2690
  _: 2
2682
2691
  }, 1032, ["onClick"])
@@ -2686,17 +2695,17 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2686
2695
  ]),
2687
2696
  _: 1
2688
2697
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
2689
- m(r(il), {
2690
- action: M.value.action,
2691
- "entity-id": M.value.id,
2692
- "entity-name": M.value.name,
2698
+ m(r(ol), {
2699
+ action: E.value.action,
2700
+ "entity-id": E.value.id,
2701
+ "entity-name": E.value.name,
2693
2702
  "entity-type": r(l)("glossary.gateway_services"),
2694
2703
  "on-confirm": H,
2695
2704
  visible: N.value,
2696
2705
  onCanceled: D,
2697
2706
  onProceed: D
2698
2707
  }, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
2699
- m(r(Da), {
2708
+ m(r(Na), {
2700
2709
  "action-pending": pe.value,
2701
2710
  description: r(l)("actions.delete.description"),
2702
2711
  "entity-name": le.value && (le.value.name || le.value.id),
@@ -2705,7 +2714,7 @@ const vl = { class: "kong-ui-entities-gateway-services-list" }, gl = { key: 1 },
2705
2714
  title: r(l)("actions.delete.title"),
2706
2715
  visible: re.value,
2707
2716
  onCancel: ye,
2708
- onProceed: xe
2717
+ onProceed: Ve
2709
2718
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
2710
2719
  ]);
2711
2720
  };
@@ -2716,22 +2725,22 @@ const ot = (e, i) => {
2716
2725
  for (const [l, u] of i)
2717
2726
  t[l] = u;
2718
2727
  return t;
2719
- }, Hl = /* @__PURE__ */ ot(bl, [["__scopeId", "data-v-849fedff"]]), hl = { class: "kong-ui-entities-gateway-service-form" }, _l = { key: 0 }, wl = { class: "gateway-service-form-traffic-label" }, kl = { class: "gateway-service-form-margin-bottom" }, Cl = { key: 0 }, Sl = { key: 1 }, Il = { key: 0 }, $l = { class: "gateway-service-form-margin-top" }, Tl = { class: "gateway-service-form-margin-bottom" }, xl = { class: "gateway-service-form-margin-bottom" }, Vl = { class: "gateway-service-form-margin-bottom" }, Pl = { class: "gateway-service-form-margin-bottom" }, Bl = {
2728
+ }, Gl = /* @__PURE__ */ ot(gl, [["__scopeId", "data-v-849fedff"]]), bl = { class: "kong-ui-entities-gateway-service-form" }, hl = { key: 0 }, _l = { class: "gateway-service-form-traffic-label" }, wl = { class: "gateway-service-form-margin-bottom" }, kl = { key: 0 }, Cl = { key: 1 }, Sl = { key: 0 }, Il = { class: "gateway-service-form-margin-top" }, Tl = { class: "gateway-service-form-margin-bottom" }, $l = { class: "gateway-service-form-margin-bottom" }, xl = { class: "gateway-service-form-margin-bottom" }, Vl = { class: "gateway-service-form-margin-bottom" }, Pl = {
2720
2729
  key: 0,
2721
2730
  class: "gateway-service-form-margin-bottom"
2722
2731
  }, Kl = {
2723
2732
  key: 1,
2724
2733
  class: "gateway-service-form-margin-bottom"
2725
- }, El = {
2734
+ }, Bl = {
2726
2735
  key: 2,
2727
2736
  class: "gateway-service-form-margin-bottom"
2728
- }, Ml = {
2737
+ }, Ul = {
2729
2738
  key: 0,
2730
2739
  class: "checkbox-aligned-radio"
2731
- }, Rl = {
2740
+ }, El = {
2732
2741
  key: 1,
2733
2742
  class: "checkbox-aligned-radio"
2734
- }, Ul = /* @__PURE__ */ te({
2743
+ }, Ml = /* @__PURE__ */ te({
2735
2744
  __name: "GatewayServiceForm",
2736
2745
  props: {
2737
2746
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2755,10 +2764,10 @@ const ot = (e, i) => {
2755
2764
  },
2756
2765
  emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
2757
2766
  setup(e, { expose: i, emit: t }) {
2758
- var K;
2759
- const l = e, u = R(!0), c = Me(), { i18nT: h, i18n: { t: s } } = $e.useI18n(), { getMessageFromError: g } = fl(), { axiosInstance: I } = lt({
2760
- headers: (K = l.config) == null ? void 0 : K.requestHeaders
2761
- }), _ = C(() => he.form[l.config.app].edit), k = C(() => l.gatewayServiceId ? Pe.Edit : Pe.Create), A = R(!1), T = C(() => !!l.gatewayServiceId), B = R(T.value ? "protocol" : "url"), U = $e.usePortFromProtocol(), p = R(""), w = C(() => !!p.value), a = Fe({
2767
+ var B;
2768
+ const l = e, u = M(!0), d = Me(), { i18nT: h, i18n: { t: s } } = $e.useI18n(), { getMessageFromError: g } = pl(), { axiosInstance: T } = lt({
2769
+ headers: (B = l.config) == null ? void 0 : B.requestHeaders
2770
+ }), _ = k(() => he.form[l.config.app].edit), C = k(() => l.gatewayServiceId ? Be.Edit : Be.Create), F = M(!1), $ = k(() => !!l.gatewayServiceId), P = M($.value ? "protocol" : "url"), q = $e.usePortFromProtocol(), p = M(""), w = k(() => !!p.value), a = Ae({
2762
2771
  fields: {
2763
2772
  name: "",
2764
2773
  protocol: "http",
@@ -2778,7 +2787,7 @@ const ot = (e, i) => {
2778
2787
  },
2779
2788
  isReadonly: !1,
2780
2789
  errorMessage: ""
2781
- }), b = Fe({
2790
+ }), b = Ae({
2782
2791
  name: "",
2783
2792
  protocol: "http",
2784
2793
  host: "",
@@ -2794,7 +2803,7 @@ const ot = (e, i) => {
2794
2803
  tls_verify_enabled: !1,
2795
2804
  tls_verify_value: !1,
2796
2805
  tags: ""
2797
- }), N = l.config.app === "konnect" || ml({
2806
+ }), N = l.config.app === "konnect" || yl({
2798
2807
  gatewayInfo: l.config.gatewayInfo,
2799
2808
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
2800
2809
  supportedRange: {
@@ -2853,57 +2862,57 @@ const ot = (e, i) => {
2853
2862
  value: "udp",
2854
2863
  group: "udp"
2855
2864
  }
2856
- ], M = { url: "url", protocol: "protocol" }, P = (o, n) => {
2865
+ ], E = { url: "url", protocol: "protocol" }, K = (o, n) => {
2857
2866
  n.value;
2858
2867
  }, D = (o) => o ? parseFloat(o) : 0, H = () => {
2859
2868
  u.value = !0, a.errorMessage = "", a.fields.host = b.host, a.fields.path = b.path, a.fields.port = b.port, a.fields.protocol = b.protocol, a.fields.url = b.url, a.fields.retries = b.retries, a.fields.connect_timeout = b.connect_timeout, a.fields.write_timeout = b.write_timeout, a.fields.read_timeout = b.read_timeout, a.fields.client_certificate = b.client_certificate, a.fields.ca_certificates = b.ca_certificates, a.fields.tls_verify_enabled = b.tls_verify_enabled, a.fields.tls_verify_value = b.tls_verify_value;
2860
- }, F = () => {
2861
- if (a.fields.url && B.value === "url")
2869
+ }, A = () => {
2870
+ if (a.fields.url && P.value === "url")
2862
2871
  try {
2863
2872
  const o = new URL(a.fields.url);
2864
2873
  a.errorMessage = "", a.fields.protocol = o.protocol.slice(0, -1), a.fields.host = o.hostname, a.fields.path = o.pathname;
2865
2874
  const n = Number(o.port);
2866
- A.value = !!n, a.fields.port = n || U.getPortFromProtocol(a.fields.protocol), a.errorMessage = "", t("url-valid:success");
2875
+ F.value = !!n, a.fields.port = n || q.getPortFromProtocol(a.fields.protocol), a.errorMessage = "", t("url-valid:success");
2867
2876
  } catch (o) {
2868
2877
  a.errorMessage = s("errors.urlErrorMessage"), t("url-valid:error", g(o));
2869
2878
  }
2870
2879
  else
2871
2880
  t("url-valid:success"), a.errorMessage = "";
2872
- }, L = C(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(a.fields.protocol)), j = C(() => {
2873
- if (B.value === "url")
2881
+ }, L = k(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(a.fields.protocol)), j = k(() => {
2882
+ if (P.value === "url")
2874
2883
  return !0;
2875
2884
  const o = ["https", "wss", "tls"].includes(a.fields.protocol);
2876
- return B.value === "protocol" && o;
2877
- }), O = C(() => {
2878
- if (B.value === "url")
2885
+ return P.value === "protocol" && o;
2886
+ }), O = k(() => {
2887
+ if (P.value === "url")
2879
2888
  return !0;
2880
2889
  const o = ["https", "tls"].includes(a.fields.protocol);
2881
- return B.value === "protocol" && o;
2882
- }), ie = C(() => {
2883
- if (B.value === "url")
2890
+ return P.value === "protocol" && o;
2891
+ }), ie = k(() => {
2892
+ if (P.value === "url")
2884
2893
  return !0;
2885
2894
  const o = ["https", "wss", "tls"].includes(a.fields.protocol);
2886
- return B.value === "protocol" && o;
2895
+ return P.value === "protocol" && o;
2887
2896
  }), le = (o) => new RegExp("^[0-9a-zA-Z.\\-_~]*$").test(o) ? "" : s("errors.validationNameError"), re = (o) => {
2888
2897
  p.value = le(o);
2889
- }, pe = C(() => T.value && JSON.stringify(a.fields) !== JSON.stringify(b) || B.value === "url" && !!a.fields.url || B.value === "protocol" && !!a.fields.host), we = (o) => {
2890
- var n, q, Q;
2891
- a.fields.name = (o == null ? void 0 : o.name) || "", a.fields.tags = ((n = o == null ? void 0 : o.tags) == null ? void 0 : n.join(",")) || "", a.fields.protocol = (o == null ? void 0 : o.protocol) || "http", a.fields.path = (o == null ? void 0 : o.path) || "", a.fields.read_timeout = ((o == null ? void 0 : o.read_timeout) || (o == null ? void 0 : o.read_timeout) === 0) ?? 6e4, a.fields.retries = ((o == null ? void 0 : o.retries) || (o == null ? void 0 : o.retries) === 0) ?? 5, a.fields.host = (o == null ? void 0 : o.host) || "", a.fields.connect_timeout = ((o == null ? void 0 : o.connect_timeout) || (o == null ? void 0 : o.connect_timeout) === 0) ?? 6e4, a.fields.tls_verify_enabled = (o == null ? void 0 : o.tls_verify) !== "" && (o == null ? void 0 : o.tls_verify) !== null && (o == null ? void 0 : o.tls_verify) !== void 0, a.fields.tls_verify_value = o != null && o.tls_verify ? o == null ? void 0 : o.tls_verify : !1, a.fields.ca_certificates = ((q = o == null ? void 0 : o.ca_certificates) == null ? void 0 : q.join(",")) || "", a.fields.client_certificate = ((Q = o == null ? void 0 : o.client_certificate) == null ? void 0 : Q.id) || "", a.fields.write_timeout = ((o == null ? void 0 : o.write_timeout) || (o == null ? void 0 : o.write_timeout) === 0) ?? 6e4, a.fields.port = ((o == null ? void 0 : o.port) || (o == null ? void 0 : o.port) === 0) ?? 80, Object.assign(b, a.fields);
2898
+ }, pe = k(() => $.value && JSON.stringify(a.fields) !== JSON.stringify(b) || P.value === "url" && !!a.fields.url || P.value === "protocol" && !!a.fields.host), we = (o) => {
2899
+ var n, R, Q;
2900
+ a.fields.name = (o == null ? void 0 : o.name) || "", a.fields.tags = ((n = o == null ? void 0 : o.tags) == null ? void 0 : n.join(",")) || "", a.fields.protocol = (o == null ? void 0 : o.protocol) || "http", a.fields.path = (o == null ? void 0 : o.path) || "", a.fields.read_timeout = ((o == null ? void 0 : o.read_timeout) || (o == null ? void 0 : o.read_timeout) === 0) ?? 6e4, a.fields.retries = ((o == null ? void 0 : o.retries) || (o == null ? void 0 : o.retries) === 0) ?? 5, a.fields.host = (o == null ? void 0 : o.host) || "", a.fields.connect_timeout = ((o == null ? void 0 : o.connect_timeout) || (o == null ? void 0 : o.connect_timeout) === 0) ?? 6e4, a.fields.tls_verify_enabled = (o == null ? void 0 : o.tls_verify) !== "" && (o == null ? void 0 : o.tls_verify) !== null && (o == null ? void 0 : o.tls_verify) !== void 0, a.fields.tls_verify_value = o != null && o.tls_verify ? o == null ? void 0 : o.tls_verify : !1, a.fields.ca_certificates = ((R = o == null ? void 0 : o.ca_certificates) == null ? void 0 : R.join(",")) || "", a.fields.client_certificate = ((Q = o == null ? void 0 : o.client_certificate) == null ? void 0 : Q.id) || "", a.fields.write_timeout = ((o == null ? void 0 : o.write_timeout) || (o == null ? void 0 : o.write_timeout) === 0) ?? 6e4, a.fields.port = ((o == null ? void 0 : o.port) || (o == null ? void 0 : o.port) === 0) ?? 80, Object.assign(b, a.fields);
2892
2901
  }, ke = () => {
2893
- c.push(l.config.cancelRoute);
2894
- }, Te = C(() => {
2895
- var n, q;
2902
+ d.push(l.config.cancelRoute);
2903
+ }, xe = k(() => {
2904
+ var n, R;
2896
2905
  let o = `${l.config.apiBaseUrl}${he.form[l.config.app].validate}`;
2897
- return l.config.app === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((n = l.config) == null ? void 0 : n.controlPlaneId) || "") : l.config.app === "kongManager" && (o = o.replace(/\/{workspace}/gi, (q = l.config) != null && q.workspace ? `/${l.config.workspace}` : "")), o = o.replace(/{id}/gi, l.gatewayServiceId), o;
2898
- }), ye = C(() => {
2899
- var n, q;
2900
- let o = `${l.config.apiBaseUrl}${he.form[l.config.app][k.value]}`;
2901
- return l.config.app === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((n = l.config) == null ? void 0 : n.controlPlaneId) || "") : l.config.app === "kongManager" && (o = o.replace(/\/{workspace}/gi, (q = l.config) != null && q.workspace ? `/${l.config.workspace}` : "")), o = o.replace(/{id}/gi, l.gatewayServiceId), o;
2902
- }), xe = (o) => {
2906
+ return l.config.app === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((n = l.config) == null ? void 0 : n.controlPlaneId) || "") : l.config.app === "kongManager" && (o = o.replace(/\/{workspace}/gi, (R = l.config) != null && R.workspace ? `/${l.config.workspace}` : "")), o = o.replace(/{id}/gi, l.gatewayServiceId), o;
2907
+ }), ye = k(() => {
2908
+ var n, R;
2909
+ let o = `${l.config.apiBaseUrl}${he.form[l.config.app][C.value]}`;
2910
+ return l.config.app === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((n = l.config) == null ? void 0 : n.controlPlaneId) || "") : l.config.app === "kongManager" && (o = o.replace(/\/{workspace}/gi, (R = l.config) != null && R.workspace ? `/${l.config.workspace}` : "")), o = o.replace(/{id}/gi, l.gatewayServiceId), o;
2911
+ }), Ve = (o) => {
2903
2912
  let n = "";
2904
2913
  o.url && (n = new URL(o.url).protocol), (["https", "wss", "tls"].includes(o.protocol) || ["https", "wss", "tls"].includes(n)) && (o.tls_verify = o.tls_verify_enabled ? o.tls_verify_value : null), delete o.tls_verify_enabled, delete o.tls_verify_value;
2905
2914
  }, de = () => {
2906
- var n, q;
2915
+ var n, R;
2907
2916
  const o = {
2908
2917
  name: a.fields.name || null,
2909
2918
  tags: a.fields.tags ? (n = a.fields.tags) == null ? void 0 : n.split(",").filter((Q) => Q !== "") : null,
@@ -2915,22 +2924,22 @@ const ot = (e, i) => {
2915
2924
  connect_timeout: a.fields.connect_timeout,
2916
2925
  tls_verify_value: a.fields.tls_verify_value,
2917
2926
  tls_verify_enabled: a.fields.tls_verify_enabled,
2918
- ca_certificates: a.fields.ca_certificates ? (q = a.fields.ca_certificates) == null ? void 0 : q.split(",").filter((Q) => Q !== "") : null,
2927
+ ca_certificates: a.fields.ca_certificates ? (R = a.fields.ca_certificates) == null ? void 0 : R.split(",").filter((Q) => Q !== "") : null,
2919
2928
  client_certificate: a.fields.client_certificate ? { id: a.fields.client_certificate } : null,
2920
2929
  write_timeout: a.fields.write_timeout,
2921
2930
  port: a.fields.port,
2922
2931
  url: a.fields.url
2923
2932
  };
2924
- return a.fields.client_certificate && ["https", "wss", "tls"].includes(a.fields.protocol) && (o.client_certificate = { id: a.fields.client_certificate }), a.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(a.fields.protocol) && (o.tls_verify = a.fields.tls_verify_value), L.value || (o.path = null), k.value === "create" ? B.value === "url" ? (delete o.protocol, delete o.host, delete o.path, l.config.app === "konnect" && delete o.port) : delete o.url : k.value === "edit" && delete o.url, o;
2933
+ return a.fields.client_certificate && ["https", "wss", "tls"].includes(a.fields.protocol) && (o.client_certificate = { id: a.fields.client_certificate }), a.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(a.fields.protocol) && (o.tls_verify = a.fields.tls_verify_value), L.value || (o.path = null), C.value === "create" ? P.value === "url" ? (delete o.protocol, delete o.host, delete o.path, l.config.app === "konnect" && delete o.port) : delete o.url : C.value === "edit" && delete o.url, o;
2925
2934
  }, me = async () => {
2926
- var o, n, q, Q;
2935
+ var o, n, R, Q;
2927
2936
  try {
2928
- a.isReadonly = !0, F();
2937
+ a.isReadonly = !0, A();
2929
2938
  const Y = de();
2930
2939
  let ee;
2931
- if (xe(Y), await I.post(Te.value, Y), k.value === "create" ? ee = await I.post(ye.value, Y) : k.value === "edit" && (ee = ((o = l.config) == null ? void 0 : o.app) === "konnect" ? await I.put(ye.value, Y) : await I.patch(ye.value, Y)), ee) {
2940
+ if (Ve(Y), await T.post(xe.value, Y), C.value === "create" ? ee = await T.post(ye.value, Y) : C.value === "edit" && (ee = ((o = l.config) == null ? void 0 : o.app) === "konnect" ? await T.put(ye.value, Y) : await T.patch(ye.value, Y)), ee) {
2932
2941
  const { data: y } = ee;
2933
- a.fields.name = (y == null ? void 0 : y.name) || "", a.fields.port = y.port || U.getPortFromProtocol(y.protocol), a.fields.protocol = (y == null ? void 0 : y.protocol) || "http", a.fields.host = (y == null ? void 0 : y.host) || "", a.fields.path = (y == null ? void 0 : y.path) || "", a.fields.url = (y == null ? void 0 : y.url) || "", a.fields.retries = ((y == null ? void 0 : y.retries) || (y == null ? void 0 : y.retries) === 0) ?? 5, a.fields.connect_timeout = ((y == null ? void 0 : y.connect_timeout) || (y == null ? void 0 : y.connect_timeout) === 0) ?? 6e4, a.fields.write_timeout = ((y == null ? void 0 : y.write_timeout) || (y == null ? void 0 : y.write_timeout) === 0) ?? 6e4, a.fields.read_timeout = ((y == null ? void 0 : y.read_timeout) || (y == null ? void 0 : y.read_timeout) === 0) ?? 6e4, a.fields.client_certificate = ((n = y == null ? void 0 : y.client_certificate) == null ? void 0 : n.id) || "", a.fields.ca_certificates = (q = y == null ? void 0 : y.ca_certificates) != null && q.length ? y == null ? void 0 : y.ca_certificates.join(",") : "", a.fields.tls_verify_enabled = (y == null ? void 0 : y.tls_verify) !== "" && (y == null ? void 0 : y.tls_verify) !== null && (y == null ? void 0 : y.tls_verify) !== void 0, a.fields.tls_verify_value = a.fields.tls_verify_enabled && (y == null ? void 0 : y.tls_verify), a.fields.tags = (Q = y == null ? void 0 : y.tags) != null && Q.length ? y == null ? void 0 : y.tags.join(",") : "", Object.assign(b, a.fields), t("update", ee == null ? void 0 : ee.data);
2942
+ a.fields.name = (y == null ? void 0 : y.name) || "", a.fields.port = y.port || q.getPortFromProtocol(y.protocol), a.fields.protocol = (y == null ? void 0 : y.protocol) || "http", a.fields.host = (y == null ? void 0 : y.host) || "", a.fields.path = (y == null ? void 0 : y.path) || "", a.fields.url = (y == null ? void 0 : y.url) || "", a.fields.retries = ((y == null ? void 0 : y.retries) || (y == null ? void 0 : y.retries) === 0) ?? 5, a.fields.connect_timeout = ((y == null ? void 0 : y.connect_timeout) || (y == null ? void 0 : y.connect_timeout) === 0) ?? 6e4, a.fields.write_timeout = ((y == null ? void 0 : y.write_timeout) || (y == null ? void 0 : y.write_timeout) === 0) ?? 6e4, a.fields.read_timeout = ((y == null ? void 0 : y.read_timeout) || (y == null ? void 0 : y.read_timeout) === 0) ?? 6e4, a.fields.client_certificate = ((n = y == null ? void 0 : y.client_certificate) == null ? void 0 : n.id) || "", a.fields.ca_certificates = (R = y == null ? void 0 : y.ca_certificates) != null && R.length ? y == null ? void 0 : y.ca_certificates.join(",") : "", a.fields.tls_verify_enabled = (y == null ? void 0 : y.tls_verify) !== "" && (y == null ? void 0 : y.tls_verify) !== null && (y == null ? void 0 : y.tls_verify) !== void 0, a.fields.tls_verify_value = a.fields.tls_verify_enabled && (y == null ? void 0 : y.tls_verify), a.fields.tags = (Q = y == null ? void 0 : y.tags) != null && Q.length ? y == null ? void 0 : y.tags.join(",") : "", Object.assign(b, a.fields), t("update", ee == null ? void 0 : ee.data);
2934
2943
  }
2935
2944
  return ee;
2936
2945
  } catch (Y) {
@@ -2942,17 +2951,17 @@ const ot = (e, i) => {
2942
2951
  return ue(() => l.gatewayServiceId, () => {
2943
2952
  Object.assign(a.fields, b);
2944
2953
  }), ue(a.fields, (o) => {
2945
- a.fields.port = U.getPortFromProtocol(o.protocol, String(o.port)), t("model-updated", de());
2954
+ a.fields.port = q.getPortFromProtocol(o.protocol, String(o.port)), t("model-updated", de());
2946
2955
  }), ze(() => {
2947
2956
  t("model-updated", de());
2948
2957
  }), i({
2949
- validateUrl: F,
2958
+ validateUrl: A,
2950
2959
  getPayload: de,
2951
2960
  saveFormData: me,
2952
2961
  canSubmit: pe
2953
2962
  }), (o, n) => {
2954
- const q = E("KInput"), Q = E("KLabel"), Y = E("KRadio"), ee = E("KSelect"), y = E("KCheckbox"), J = E("KCollapse");
2955
- return f(), x("div", hl, [
2963
+ const R = U("KInput"), Q = U("KLabel"), Y = U("KRadio"), ee = U("KSelect"), y = U("KCheckbox"), J = U("KCollapse");
2964
+ return f(), x("div", bl, [
2956
2965
  m(r(Ka), {
2957
2966
  "can-submit": pe.value,
2958
2967
  config: e.config,
@@ -2966,21 +2975,21 @@ const ot = (e, i) => {
2966
2975
  onLoading: n[26] || (n[26] = (S) => o.$emit("loading", S)),
2967
2976
  onSubmit: me
2968
2977
  }, {
2969
- "form-actions": d(() => [
2978
+ "form-actions": c(() => [
2970
2979
  X(o.$slots, "form-actions", {
2971
2980
  canSubmit: pe.value,
2972
2981
  cancel: ke,
2973
2982
  submit: me
2974
2983
  }, void 0, !0)
2975
2984
  ]),
2976
- default: d(() => [
2977
- m(r(He), {
2985
+ default: c(() => [
2986
+ m(r(Je), {
2978
2987
  description: r(s)("gateway_services.form.sections.general.description"),
2979
2988
  "hide-info-header": e.hideSectionsInfo,
2980
2989
  title: r(s)("gateway_services.form.sections.general.title")
2981
2990
  }, {
2982
- default: d(() => [
2983
- m(q, {
2991
+ default: c(() => [
2992
+ m(R, {
2984
2993
  modelValue: a.fields.name,
2985
2994
  "onUpdate:modelValue": n[0] || (n[0] = (S) => a.fields.name = S),
2986
2995
  modelModifiers: { trim: !0 },
@@ -2996,7 +3005,7 @@ const ot = (e, i) => {
2996
3005
  type: "text",
2997
3006
  onInput: re
2998
3007
  }, null, 8, ["modelValue", "error-message", "has-error", "label", "label-attributes", "placeholder", "readonly"]),
2999
- m(q, {
3008
+ m(R, {
3000
3009
  modelValue: a.fields.tags,
3001
3010
  "onUpdate:modelValue": n[1] || (n[1] = (S) => a.fields.tags = S),
3002
3011
  modelModifiers: { trim: !0 },
@@ -3013,37 +3022,37 @@ const ot = (e, i) => {
3013
3022
  ]),
3014
3023
  _: 1
3015
3024
  }, 8, ["description", "hide-info-header", "title"]),
3016
- m(r(He), {
3025
+ m(r(Je), {
3017
3026
  description: r(s)("gateway_services.form.sections.keys.description"),
3018
3027
  "hide-info-header": e.hideSectionsInfo,
3019
3028
  title: r(s)("gateway_services.form.sections.keys.title")
3020
3029
  }, {
3021
- default: d(() => [
3022
- T.value ? W("", !0) : (f(), x("div", _l, [
3023
- V("div", wl, [
3030
+ default: c(() => [
3031
+ $.value ? W("", !0) : (f(), x("div", hl, [
3032
+ V("div", _l, [
3024
3033
  m(Q, { required: "" }, {
3025
- default: d(() => [
3026
- G($(r(s)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
3034
+ default: c(() => [
3035
+ G(I(r(s)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
3027
3036
  ]),
3028
3037
  _: 1
3029
3038
  })
3030
3039
  ]),
3031
- V("div", kl, [
3040
+ V("div", wl, [
3032
3041
  m(Y, {
3033
- modelValue: B.value,
3034
- "onUpdate:modelValue": n[2] || (n[2] = (S) => B.value = S),
3042
+ modelValue: P.value,
3043
+ "onUpdate:modelValue": n[2] || (n[2] = (S) => P.value = S),
3035
3044
  "data-testid": "gateway-service-url-radio",
3036
- "selected-value": M.url,
3045
+ "selected-value": E.url,
3037
3046
  onChange: H
3038
3047
  }, {
3039
- default: d(() => [
3048
+ default: c(() => [
3040
3049
  m(Q, {
3041
3050
  class: "gateway-service-url-radio-label",
3042
3051
  info: r(s)("gateway_services.form.fields.upstream_url.tooltip"),
3043
3052
  required: ""
3044
3053
  }, {
3045
- default: d(() => [
3046
- G($(r(s)("gateway_services.form.sections.keys.urlLabel")), 1)
3054
+ default: c(() => [
3055
+ G(I(r(s)("gateway_services.form.sections.keys.urlLabel")), 1)
3047
3056
  ]),
3048
3057
  _: 1
3049
3058
  }, 8, ["info"])
@@ -3051,8 +3060,8 @@ const ot = (e, i) => {
3051
3060
  _: 1
3052
3061
  }, 8, ["modelValue", "selected-value"])
3053
3062
  ]),
3054
- B.value === "url" ? (f(), x("div", Cl, [
3055
- m(q, {
3063
+ P.value === "url" ? (f(), x("div", kl, [
3064
+ m(R, {
3056
3065
  modelValue: a.fields.url,
3057
3066
  "onUpdate:modelValue": n[3] || (n[3] = (S) => a.fields.url = S),
3058
3067
  modelModifiers: { trim: !0 },
@@ -3065,17 +3074,17 @@ const ot = (e, i) => {
3065
3074
  }, null, 8, ["modelValue", "placeholder", "tooltip"])
3066
3075
  ])) : W("", !0),
3067
3076
  m(Y, {
3068
- modelValue: B.value,
3069
- "onUpdate:modelValue": n[4] || (n[4] = (S) => B.value = S),
3077
+ modelValue: P.value,
3078
+ "onUpdate:modelValue": n[4] || (n[4] = (S) => P.value = S),
3070
3079
  "checked-group": "protocol",
3071
3080
  "data-testid": "gateway-service-protocol-radio",
3072
- "selected-value": M.protocol,
3081
+ "selected-value": E.protocol,
3073
3082
  onChange: H
3074
3083
  }, {
3075
- default: d(() => [
3084
+ default: c(() => [
3076
3085
  m(Q, { class: "gateway-service-protocol-radio-label" }, {
3077
- default: d(() => [
3078
- G($(r(s)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
3086
+ default: c(() => [
3087
+ G(I(r(s)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
3079
3088
  ]),
3080
3089
  _: 1
3081
3090
  })
@@ -3083,7 +3092,7 @@ const ot = (e, i) => {
3083
3092
  _: 1
3084
3093
  }, 8, ["modelValue", "selected-value"])
3085
3094
  ])),
3086
- B.value === "protocol" || T.value ? (f(), x("div", Sl, [
3095
+ P.value === "protocol" || $.value ? (f(), x("div", Cl, [
3087
3096
  m(ee, {
3088
3097
  modelValue: a.fields.protocol,
3089
3098
  "onUpdate:modelValue": n[5] || (n[5] = (S) => a.fields.protocol = S),
@@ -3097,9 +3106,9 @@ const ot = (e, i) => {
3097
3106
  readonly: a.isReadonly,
3098
3107
  required: "",
3099
3108
  width: "100%",
3100
- onSelected: n[6] || (n[6] = (S) => P(a.fields.protocol, S))
3109
+ onSelected: n[6] || (n[6] = (S) => K(a.fields.protocol, S))
3101
3110
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
3102
- m(q, {
3111
+ m(R, {
3103
3112
  modelValue: a.fields.host,
3104
3113
  "onUpdate:modelValue": n[7] || (n[7] = (S) => a.fields.host = S),
3105
3114
  modelModifiers: { trim: !0 },
@@ -3113,8 +3122,8 @@ const ot = (e, i) => {
3113
3122
  placeholder: r(s)("gateway_services.form.fields.host.placeholder"),
3114
3123
  required: ""
3115
3124
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
3116
- L.value ? (f(), x("div", Il, [
3117
- m(q, {
3125
+ L.value ? (f(), x("div", Sl, [
3126
+ m(R, {
3118
3127
  modelValue: a.fields.path,
3119
3128
  "onUpdate:modelValue": n[8] || (n[8] = (S) => a.fields.path = S),
3120
3129
  modelModifiers: { trim: !0 },
@@ -3128,7 +3137,7 @@ const ot = (e, i) => {
3128
3137
  placeholder: r(s)("gateway_services.form.fields.path.placeholder")
3129
3138
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
3130
3139
  ])) : W("", !0),
3131
- m(q, {
3140
+ m(R, {
3132
3141
  modelValue: a.fields.port,
3133
3142
  "onUpdate:modelValue": [
3134
3143
  n[9] || (n[9] = (S) => a.fields.port = S),
@@ -3154,10 +3163,10 @@ const ot = (e, i) => {
3154
3163
  "trigger-alignment": "leading",
3155
3164
  "trigger-label": r(s)("gateway_services.form.sections.keys.viewAdvancedFields")
3156
3165
  }, {
3157
- default: d(() => [
3158
- V("div", $l, [
3166
+ default: c(() => [
3167
+ V("div", Il, [
3159
3168
  V("div", Tl, [
3160
- m(q, {
3169
+ m(R, {
3161
3170
  modelValue: a.fields.retries,
3162
3171
  "onUpdate:modelValue": [
3163
3172
  n[11] || (n[11] = (S) => a.fields.retries = S),
@@ -3174,8 +3183,8 @@ const ot = (e, i) => {
3174
3183
  type: "number"
3175
3184
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
3176
3185
  ]),
3177
- V("div", xl, [
3178
- m(q, {
3186
+ V("div", $l, [
3187
+ m(R, {
3179
3188
  modelValue: a.fields.connect_timeout,
3180
3189
  "onUpdate:modelValue": [
3181
3190
  n[13] || (n[13] = (S) => a.fields.connect_timeout = S),
@@ -3192,8 +3201,8 @@ const ot = (e, i) => {
3192
3201
  type: "number"
3193
3202
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
3194
3203
  ]),
3195
- V("div", Vl, [
3196
- m(q, {
3204
+ V("div", xl, [
3205
+ m(R, {
3197
3206
  modelValue: a.fields.write_timeout,
3198
3207
  "onUpdate:modelValue": [
3199
3208
  n[15] || (n[15] = (S) => a.fields.write_timeout = S),
@@ -3210,8 +3219,8 @@ const ot = (e, i) => {
3210
3219
  type: "number"
3211
3220
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
3212
3221
  ]),
3213
- V("div", Pl, [
3214
- m(q, {
3222
+ V("div", Vl, [
3223
+ m(R, {
3215
3224
  modelValue: a.fields.read_timeout,
3216
3225
  "onUpdate:modelValue": [
3217
3226
  n[17] || (n[17] = (S) => a.fields.read_timeout = S),
@@ -3228,8 +3237,8 @@ const ot = (e, i) => {
3228
3237
  type: "number"
3229
3238
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
3230
3239
  ]),
3231
- j.value ? (f(), x("div", Bl, [
3232
- m(q, {
3240
+ j.value ? (f(), x("div", Pl, [
3241
+ m(R, {
3233
3242
  modelValue: a.fields.client_certificate,
3234
3243
  "onUpdate:modelValue": n[19] || (n[19] = (S) => a.fields.client_certificate = S),
3235
3244
  modelModifiers: { trim: !0 },
@@ -3244,7 +3253,7 @@ const ot = (e, i) => {
3244
3253
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
3245
3254
  ])) : W("", !0),
3246
3255
  O.value ? (f(), x("div", Kl, [
3247
- m(q, {
3256
+ m(R, {
3248
3257
  modelValue: a.fields.ca_certificates,
3249
3258
  "onUpdate:modelValue": n[20] || (n[20] = (S) => a.fields.ca_certificates = S),
3250
3259
  modelModifiers: { trim: !0 },
@@ -3255,16 +3264,16 @@ const ot = (e, i) => {
3255
3264
  readonly: a.isReadonly,
3256
3265
  type: "text"
3257
3266
  }, {
3258
- "label-tooltip": d(() => [
3267
+ "label-tooltip": c(() => [
3259
3268
  m(r(h), {
3260
3269
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
3261
3270
  scope: "global"
3262
3271
  }, {
3263
- code1: d(() => [
3264
- V("code", null, $(r(s)("gateway_services.form.fields.ca_certificates.code1")), 1)
3272
+ code1: c(() => [
3273
+ V("code", null, I(r(s)("gateway_services.form.fields.ca_certificates.code1")), 1)
3265
3274
  ]),
3266
- code2: d(() => [
3267
- V("code", null, $(r(s)("gateway_services.form.fields.ca_certificates.code2")), 1)
3275
+ code2: c(() => [
3276
+ V("code", null, I(r(s)("gateway_services.form.fields.ca_certificates.code2")), 1)
3268
3277
  ]),
3269
3278
  _: 1
3270
3279
  })
@@ -3272,7 +3281,7 @@ const ot = (e, i) => {
3272
3281
  _: 1
3273
3282
  }, 8, ["modelValue", "label", "placeholder", "readonly"])
3274
3283
  ])) : W("", !0),
3275
- ie.value ? (f(), x("div", El, [
3284
+ ie.value ? (f(), x("div", Bl, [
3276
3285
  m(y, {
3277
3286
  modelValue: a.fields.tls_verify_enabled,
3278
3287
  "onUpdate:modelValue": n[21] || (n[21] = (S) => a.fields.tls_verify_enabled = S),
@@ -3280,20 +3289,20 @@ const ot = (e, i) => {
3280
3289
  description: r(s)("gateway_services.form.fields.tls_verify_enabled.help"),
3281
3290
  label: r(s)("gateway_services.form.fields.tls_verify_enabled.label")
3282
3291
  }, {
3283
- tooltip: d(() => [
3292
+ tooltip: c(() => [
3284
3293
  m(r(h), {
3285
3294
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
3286
3295
  scope: "global"
3287
3296
  }, {
3288
- code1: d(() => [
3289
- V("code", null, $(r(s)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
3297
+ code1: c(() => [
3298
+ V("code", null, I(r(s)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
3290
3299
  ]),
3291
3300
  _: 1
3292
3301
  })
3293
3302
  ]),
3294
3303
  _: 1
3295
3304
  }, 8, ["modelValue", "description", "label"]),
3296
- a.fields.tls_verify_enabled ? (f(), x("div", Ml, [
3305
+ a.fields.tls_verify_enabled ? (f(), x("div", Ul, [
3297
3306
  m(Y, {
3298
3307
  modelValue: a.fields.tls_verify_value,
3299
3308
  "onUpdate:modelValue": n[22] || (n[22] = (S) => a.fields.tls_verify_value = S),
@@ -3302,7 +3311,7 @@ const ot = (e, i) => {
3302
3311
  "selected-value": !0
3303
3312
  }, null, 8, ["modelValue", "label"])
3304
3313
  ])) : W("", !0),
3305
- a.fields.tls_verify_enabled ? (f(), x("div", Rl, [
3314
+ a.fields.tls_verify_enabled ? (f(), x("div", El, [
3306
3315
  m(Y, {
3307
3316
  modelValue: a.fields.tls_verify_value,
3308
3317
  "onUpdate:modelValue": n[23] || (n[23] = (S) => a.fields.tls_verify_value = S),
@@ -3326,7 +3335,7 @@ const ot = (e, i) => {
3326
3335
  };
3327
3336
  }
3328
3337
  });
3329
- const Jl = /* @__PURE__ */ ot(Ul, [["__scopeId", "data-v-02a1f1c7"]]), ql = { class: "kong-ui-gateway-service-entity-config-card" }, zl = /* @__PURE__ */ te({
3338
+ const Hl = /* @__PURE__ */ ot(Ml, [["__scopeId", "data-v-02a1f1c7"]]), ql = { class: "kong-ui-gateway-service-entity-config-card" }, Jl = /* @__PURE__ */ te({
3330
3339
  __name: "GatewayServiceConfigCard",
3331
3340
  props: {
3332
3341
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3345,7 +3354,7 @@ const Jl = /* @__PURE__ */ ot(Ul, [["__scopeId", "data-v-02a1f1c7"]]), ql = { cl
3345
3354
  },
3346
3355
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
3347
3356
  setup(e) {
3348
- const i = e, { i18n: { t }, i18nT: l } = $e.useI18n(), u = C(() => he.form[i.config.app].edit), c = R({
3357
+ const i = e, { i18n: { t }, i18nT: l } = $e.useI18n(), u = k(() => he.form[i.config.app].edit), d = M({
3349
3358
  id: {},
3350
3359
  name: {
3351
3360
  tooltip: t("gateway_services.form.fields.name.tooltip")
@@ -3406,9 +3415,9 @@ const Jl = /* @__PURE__ */ ot(Ul, [["__scopeId", "data-v-02a1f1c7"]]), ql = { cl
3406
3415
  }
3407
3416
  });
3408
3417
  return (h, s) => (f(), x("div", ql, [
3409
- m(r(xa), {
3418
+ m(r($a), {
3410
3419
  config: e.config,
3411
- "config-schema": c.value,
3420
+ "config-schema": d.value,
3412
3421
  "fetch-url": u.value,
3413
3422
  "hide-title": e.hideTitle,
3414
3423
  "onCopy:success": s[0] || (s[0] = (g) => h.$emit("copy:success", g)),
@@ -3416,50 +3425,50 @@ const Jl = /* @__PURE__ */ ot(Ul, [["__scopeId", "data-v-02a1f1c7"]]), ql = { cl
3416
3425
  "onFetch:success": s[2] || (s[2] = (g) => h.$emit("fetch:success", g)),
3417
3426
  onLoading: s[3] || (s[3] = (g) => h.$emit("loading", g))
3418
3427
  }, {
3419
- "enabled-label-tooltip": d(() => [
3428
+ "enabled-label-tooltip": c(() => [
3420
3429
  m(r(l), {
3421
3430
  keypath: "gateway_services.form.fields.enabled.tooltip",
3422
3431
  scope: "global"
3423
3432
  }, {
3424
- false: d(() => [
3425
- V("code", null, $(r(t)("gateway_services.form.fields.enabled.false")), 1)
3433
+ false: c(() => [
3434
+ V("code", null, I(r(t)("gateway_services.form.fields.enabled.false")), 1)
3426
3435
  ]),
3427
- true: d(() => [
3428
- V("code", null, $(r(t)("gateway_services.form.fields.enabled.true")), 1)
3436
+ true: c(() => [
3437
+ V("code", null, I(r(t)("gateway_services.form.fields.enabled.true")), 1)
3429
3438
  ]),
3430
3439
  _: 1
3431
3440
  })
3432
3441
  ]),
3433
- "ca_certificates-label-tooltip": d(() => [
3442
+ "ca_certificates-label-tooltip": c(() => [
3434
3443
  m(r(l), {
3435
3444
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
3436
3445
  scope: "global"
3437
3446
  }, {
3438
- code1: d(() => [
3439
- V("code", null, $(r(t)("gateway_services.form.fields.ca_certificates.code1")), 1)
3447
+ code1: c(() => [
3448
+ V("code", null, I(r(t)("gateway_services.form.fields.ca_certificates.code1")), 1)
3440
3449
  ]),
3441
- code2: d(() => [
3442
- V("code", null, $(r(t)("gateway_services.form.fields.ca_certificates.code2")), 1)
3450
+ code2: c(() => [
3451
+ V("code", null, I(r(t)("gateway_services.form.fields.ca_certificates.code2")), 1)
3443
3452
  ]),
3444
3453
  _: 1
3445
3454
  })
3446
3455
  ]),
3447
- "tls_verify-label-tooltip": d(() => [
3456
+ "tls_verify-label-tooltip": c(() => [
3448
3457
  m(r(l), {
3449
3458
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
3450
3459
  scope: "global"
3451
3460
  }, {
3452
- code1: d(() => [
3453
- V("code", null, $(r(t)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
3461
+ code1: c(() => [
3462
+ V("code", null, I(r(t)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
3454
3463
  ]),
3455
3464
  _: 1
3456
3465
  })
3457
3466
  ]),
3458
- tls_verify: d(({ rowValue: g }) => [
3459
- G($(typeof g == "boolean" ? r(t)(`gateway_services.form.fields.tls_verify_option.${g}.display`) : r(t)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
3467
+ tls_verify: c(({ rowValue: g }) => [
3468
+ G(I(typeof g == "boolean" ? r(t)(`gateway_services.form.fields.tls_verify_option.${g}.display`) : r(t)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
3460
3469
  ]),
3461
- client_certificate: d(({ rowValue: g }) => [
3462
- G($(g ? g.id : "–"), 1)
3470
+ client_certificate: c(({ rowValue: g }) => [
3471
+ G(I(g ? g.id : "–"), 1)
3463
3472
  ]),
3464
3473
  _: 1
3465
3474
  }, 8, ["config", "config-schema", "fetch-url", "hide-title"])
@@ -3467,7 +3476,7 @@ const Jl = /* @__PURE__ */ ot(Ul, [["__scopeId", "data-v-02a1f1c7"]]), ql = { cl
3467
3476
  }
3468
3477
  });
3469
3478
  export {
3470
- zl as GatewayServiceConfigCard,
3471
- Jl as GatewayServiceForm,
3472
- Hl as GatewayServiceList
3479
+ Jl as GatewayServiceConfigCard,
3480
+ Hl as GatewayServiceForm,
3481
+ Gl as GatewayServiceList
3473
3482
  };