@kong-ui-public/entities-snis 1.1.22 → 1.1.23

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,8 +1,8 @@
1
- import { defineComponent as Y, ref as C, computed as w, watch as ie, renderSlot as J, createCommentVNode as Q, unref as s, onBeforeMount as he, resolveComponent as M, openBlock as h, createBlock as V, withCtx as d, createElementVNode as F, toDisplayString as P, createElementBlock as N, withModifiers as fe, createVNode as k, createTextVNode as H, createSlots as Fe, withDirectives as de, vShow as ue, renderList as be, Fragment as Re, useSlots as De, normalizeClass as ye, onMounted as He, onUnmounted as ze, inject as We, resolveDynamicComponent as Je, mergeProps as Ge, reactive as Ce } from "vue";
2
- import { createI18n as ke, i18nTComponent as qe } from "@kong-ui-public/i18n";
1
+ import { defineComponent as Y, ref as I, computed as S, watch as ie, renderSlot as J, createCommentVNode as Q, unref as s, onBeforeMount as he, resolveComponent as E, openBlock as v, createBlock as V, withCtx as d, createElementVNode as q, toDisplayString as P, createElementBlock as N, withModifiers as fe, createVNode as k, createTextVNode as H, createSlots as Be, withDirectives as de, vShow as ue, renderList as be, Fragment as Re, useSlots as ze, normalizeClass as ye, onMounted as We, onUnmounted as Je, inject as Ge, resolveDynamicComponent as Ce, mergeProps as Ie, reactive as xe } from "vue";
2
+ import { createI18n as ke, i18nTComponent as Ne } from "@kong-ui-public/i18n";
3
3
  import Qe from "axios";
4
4
  import "@kong/kongponents";
5
- import { useRouter as Be } from "vue-router";
5
+ import { useRouter as Ue } from "vue-router";
6
6
  const Ye = {
7
7
  create: "New SNI",
8
8
  copy_id: "Copy ID",
@@ -82,16 +82,16 @@ const Ye = {
82
82
  errors: tt,
83
83
  copy: at
84
84
  };
85
- function rt() {
85
+ function ot() {
86
86
  const e = ke("en-us", it);
87
87
  return {
88
88
  i18n: e,
89
- i18nT: qe(e)
89
+ i18nT: Ne(e)
90
90
  // Translation component <i18n-t>
91
91
  };
92
92
  }
93
- const Ne = {
94
- useI18n: rt
93
+ const Oe = {
94
+ useI18n: ot
95
95
  }, se = {
96
96
  list: {
97
97
  konnect: {
@@ -116,7 +116,7 @@ const Ne = {
116
116
  }
117
117
  }
118
118
  };
119
- var Oe = /* @__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))(Oe || {}), pe = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(pe || {}), te = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(te || {});
119
+ var Ae = /* @__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))(Ae || {}), pe = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(pe || {}), te = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(te || {});
120
120
  function _e(e = {}) {
121
121
  return {
122
122
  axiosInstance: Qe.create({
@@ -126,7 +126,7 @@ function _e(e = {}) {
126
126
  })
127
127
  };
128
128
  }
129
- function ot() {
129
+ function rt() {
130
130
  return {
131
131
  debounce: (e, i) => {
132
132
  let t;
@@ -159,10 +159,10 @@ function lt() {
159
159
  return {
160
160
  setTablePreferences: (t, a) => {
161
161
  try {
162
- const r = i();
163
- r.set(t, a), localStorage.setItem(ge, JSON.stringify(Object.fromEntries(r.entries())));
164
- } catch (r) {
165
- console.error("useTablePreferences(setTablePreferences)", r);
162
+ const o = i();
163
+ o.set(t, a), localStorage.setItem(ge, JSON.stringify(Object.fromEntries(o.entries())));
164
+ } catch (o) {
165
+ console.error("useTablePreferences(setTablePreferences)", o);
166
166
  }
167
167
  },
168
168
  getTablePreferences: (t) => {
@@ -267,7 +267,7 @@ function Se() {
267
267
  const e = ke("en-us", gt);
268
268
  return {
269
269
  i18n: e,
270
- i18nT: qe(e)
270
+ i18nT: Ne(e)
271
271
  // Translation component <i18n-t>
272
272
  };
273
273
  }
@@ -276,174 +276,174 @@ function vt(e, i, t, a = {
276
276
  searchKeys: ["id"]
277
277
  }) {
278
278
  t || (t = "100");
279
- const { axiosInstance: r } = _e({
279
+ const { axiosInstance: o } = _e({
280
280
  headers: e.requestHeaders
281
- }), { i18n: { t: o } } = Se(), { debounce: f } = ot(), K = f(async (u) => {
282
- await m(u);
283
- }, 200), g = C(!1), y = C(""), n = C(""), v = C([]), T = C(void 0), $ = s(i);
284
- let R = `${e.apiBaseUrl}${$}`;
285
- e.app === "konnect" ? R = R.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (R = R.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
281
+ }), { i18n: { t: r } } = Se(), { debounce: y } = rt(), $ = y(async (u) => {
282
+ await f(u);
283
+ }, 200), g = I(!1), m = I(""), n = I(""), h = I([]), C = I(void 0), K = s(i);
284
+ let M = `${e.apiBaseUrl}${K}`;
285
+ e.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
286
286
  const _ = async () => {
287
287
  try {
288
288
  g.value = !0;
289
- const { data: u } = await r.get(`${R}?size=${t}`);
290
- u != null && u.next || (T.value = a.fetchedItemsKey in u ? u[a.fetchedItemsKey] : []), v.value = a.fetchedItemsKey in u ? u[a.fetchedItemsKey] : [];
289
+ const { data: u } = await o.get(`${M}?size=${t}`);
290
+ u != null && u.next || (C.value = a.fetchedItemsKey in u ? u[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in u ? u[a.fetchedItemsKey] : [];
291
291
  } catch {
292
- v.value = [], y.value = o("debouncedFilter.errors.fetch");
292
+ h.value = [], m.value = r("debouncedFilter.errors.fetch");
293
293
  } finally {
294
294
  g.value = !1;
295
295
  }
296
- }, l = C(""), m = async (u) => {
297
- var c, E;
296
+ }, l = I(""), f = async (u) => {
297
+ var c, F;
298
298
  if (l.value !== u)
299
- if (l.value = u || "", T.value === void 0)
299
+ if (l.value = u || "", C.value === void 0)
300
300
  try {
301
- g.value = !0, y.value = "", n.value = "";
302
- let q = R + "";
303
- u && (q += `/${u}`);
304
- const { data: A } = await r.get(`${q}?size=${t}`);
305
- a.fetchedItemsKey in A ? v.value = A[a.fetchedItemsKey] : A != null && A.id ? v.value = [A] : v.value = [];
306
- } catch (q) {
307
- ((c = q == null ? void 0 : q.response) == null ? void 0 : c.status) === 404 ? n.value = o("debouncedFilter.errors.invalid") : (v.value = [], y.value = o("debouncedFilter.errors.fetch"));
301
+ g.value = !0, m.value = "", n.value = "";
302
+ let B = M + "";
303
+ u && (B += `/${u}`);
304
+ const { data: A } = await o.get(`${B}?size=${t}`);
305
+ a.fetchedItemsKey in A ? h.value = A[a.fetchedItemsKey] : A != null && A.id ? h.value = [A] : h.value = [];
306
+ } catch (B) {
307
+ ((c = B == null ? void 0 : B.response) == null ? void 0 : c.status) === 404 ? n.value = r("debouncedFilter.errors.invalid") : (h.value = [], m.value = r("debouncedFilter.errors.fetch"));
308
308
  } finally {
309
309
  g.value = !1;
310
310
  }
311
311
  else
312
- g.value = !0, n.value = "", u ? (v.value = (E = T.value) == null ? void 0 : E.filter((q) => {
312
+ g.value = !0, n.value = "", u ? (h.value = (F = C.value) == null ? void 0 : F.filter((B) => {
313
313
  var A;
314
- let I = !1;
314
+ let x = !1;
315
315
  for (const W of a.searchKeys) {
316
- const j = typeof q[W] == "string" ? (A = q[W]) == null ? void 0 : A.toLowerCase() : q[W];
317
- j != null && j.includes(u.toLowerCase()) && (I = !0);
316
+ const j = typeof B[W] == "string" ? (A = B[W]) == null ? void 0 : A.toLowerCase() : B[W];
317
+ j != null && j.includes(u.toLowerCase()) && (x = !0);
318
318
  }
319
- return I;
320
- }), (!v.value || !v.value.length) && (n.value = o("debouncedFilter.errors.invalid"))) : v.value = T.value, g.value = !1;
319
+ return x;
320
+ }), (!h.value || !h.value.length) && (n.value = r("debouncedFilter.errors.invalid"))) : h.value = C.value, g.value = !1;
321
321
  };
322
322
  return {
323
323
  loading: g,
324
- error: y,
324
+ error: m,
325
325
  validationError: n,
326
- results: v,
327
- allRecords: T,
326
+ results: h,
327
+ allRecords: C,
328
328
  loadItems: _,
329
- debouncedQueryChange: K
329
+ debouncedQueryChange: $
330
330
  };
331
331
  }
332
332
  function ht(e, i) {
333
- const t = s(i), a = w(
333
+ const t = s(i), a = S(
334
334
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
335
335
  );
336
- return a.value.search = "", (r) => `${a.value.href}/${r}`;
336
+ return a.value.search = "", (o) => `${a.value.href}/${o}`;
337
337
  }
338
338
  function bt() {
339
339
  const { i18n: { t: e } } = Se();
340
340
  return {
341
341
  getMessageFromError: (i) => {
342
- var t, a, r;
342
+ var t, a, o;
343
343
  if (!i)
344
344
  return e("errors.unexpected");
345
345
  if ((t = i == null ? void 0 : i.response) != null && t.data) {
346
346
  if (i.response.data.detail)
347
347
  return i.response.data.detail;
348
348
  if ((a = i.response.data.details) != null && a.length)
349
- return i.response.data.details.map((o) => {
350
- let f = e("errors.unexpected");
351
- return o.messages && typeof o.messages == "object" && o.messages.length && (f = o.messages.join(", ")), o.field ? `${o.field} - ${f}` : f;
349
+ return i.response.data.details.map((r) => {
350
+ let y = e("errors.unexpected");
351
+ return r.messages && typeof r.messages == "object" && r.messages.length && (y = r.messages.join(", ")), r.field ? `${r.field} - ${y}` : y;
352
352
  }).join("; ");
353
353
  if (i.response.data.message) {
354
- const { message: o } = i.response.data;
355
- return Array.isArray(o) ? (r = o[0]) != null && r.constraints ? Object.values(o[0].constraints)[0] : o[0] : o;
354
+ const { message: r } = i.response.data;
355
+ return Array.isArray(r) ? (o = r[0]) != null && o.constraints ? Object.values(r[0].constraints)[0] : r[0] : r;
356
356
  }
357
357
  if (typeof i.response.data == "string")
358
358
  return i.response.data;
359
359
  if (typeof i.response.data == "object")
360
- return Object.keys(i.response.data).map((o) => `${o} ${i.response.data[o]}`).join(", ");
360
+ return Object.keys(i.response.data).map((r) => `${r} ${i.response.data[r]}`).join(", ");
361
361
  }
362
362
  return i.message || e("errors.unexpected");
363
363
  }
364
364
  };
365
365
  }
366
- function Ue(e, i) {
367
- const t = C(s(e)), a = C(s(i)), r = w(
366
+ function Ve(e, i) {
367
+ const t = I(s(e)), a = I(s(i)), o = S(
368
368
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
369
- ), o = w(
369
+ ), r = S(
370
370
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
371
371
  );
372
- return (f) => {
373
- const { page: K, pageSize: g, offset: y, sortColumnKey: n, sortColumnOrder: v, query: T } = f;
372
+ return (y) => {
373
+ const { page: $, pageSize: g, offset: m, sortColumnKey: n, sortColumnOrder: h, query: C } = y;
374
374
  try {
375
- let $ = new URL(o.value.href);
376
- return r.value && T ? ($.search = "", $ = new URL(`${$.href}/${T}/`)) : (r.value || new URLSearchParams(T).forEach((R, _) => {
377
- $.searchParams.append(_, R);
378
- }), n && $.searchParams.append("sort_by", n), v === "desc" && $.searchParams.append("sort_desc", "1"), $.searchParams.append("size", String(g))), y && K !== 1 && $.searchParams.append("offset", String(y)), $.href;
379
- } catch ($) {
380
- return console.error("RouteList(fetcher)", $), a.value;
375
+ let K = new URL(r.value.href);
376
+ return o.value && C ? (K.search = "", K = new URL(`${K.href}/${C}/`)) : (o.value || new URLSearchParams(C).forEach((M, _) => {
377
+ K.searchParams.append(_, M);
378
+ }), n && K.searchParams.append("sort_by", n), h === "desc" && K.searchParams.append("sort_desc", "1"), K.searchParams.append("size", String(g))), m && $ !== 1 && K.searchParams.append("offset", String(m)), K.href;
379
+ } catch (K) {
380
+ return console.error("RouteList(fetcher)", K), a.value;
381
381
  }
382
382
  };
383
383
  }
384
384
  function kt(e, i, t = "data") {
385
- const a = s(i), { axiosInstance: r } = _e({
385
+ const a = s(i), { axiosInstance: o } = _e({
386
386
  headers: e.requestHeaders
387
- }), o = Ue(e, a), f = C({
387
+ }), r = Ve(e, a), y = I({
388
388
  status: te.Idle
389
389
  });
390
- return { fetcher: async (K) => {
390
+ return { fetcher: async ($) => {
391
391
  try {
392
- f.value = { status: te.Loading };
393
- const g = o(K), { data: y } = await r.get(g), n = t && t.replace(/[^\w-_]/gi, "");
394
- let v;
395
- y[n] && Array.isArray(y[n]) ? v = y[n] : v = Object.keys(y).length ? [y] : [];
396
- const T = {
397
- data: v,
398
- total: v.length,
399
- ...y.offset ? {
392
+ y.value = { status: te.Loading };
393
+ const g = r($), { data: m } = await o.get(g), n = t && t.replace(/[^\w-_]/gi, "");
394
+ let h;
395
+ m[n] && Array.isArray(m[n]) ? h = m[n] : h = Object.keys(m).length ? [m] : [];
396
+ const C = {
397
+ data: h,
398
+ total: h.length,
399
+ ...m.offset ? {
400
400
  pagination: {
401
- offset: y.offset
401
+ offset: m.offset
402
402
  }
403
403
  } : null
404
404
  };
405
- return f.value = {
405
+ return y.value = {
406
406
  status: te.Idle,
407
- response: T
408
- }, T;
407
+ response: C
408
+ }, C;
409
409
  } catch (g) {
410
- const y = {
410
+ const m = {
411
411
  data: [],
412
412
  total: 0
413
413
  };
414
- return K.query && g.response.status === 404 ? (f.value = {
414
+ return $.query && g.response.status === 404 ? (y.value = {
415
415
  status: te.NoResults,
416
- response: y,
416
+ response: m,
417
417
  error: g
418
- }, y) : (f.value = {
418
+ }, m) : (y.value = {
419
419
  status: te.Error,
420
- response: y,
420
+ response: m,
421
421
  error: g
422
- }, y);
422
+ }, m);
423
423
  }
424
- }, fetcherState: f };
424
+ }, fetcherState: y };
425
425
  }
426
426
  function _t() {
427
427
  return {
428
428
  convertKeyToTitle: (e, i = "_") => e ? e.split(i).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
429
429
  };
430
430
  }
431
- const Ae = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Ie = (e) => {
431
+ const je = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Te = (e) => {
432
432
  if (typeof e != "string")
433
433
  throw new TypeError("Invalid argument expected string");
434
- const i = e.match(Ae);
434
+ const i = e.match(je);
435
435
  if (!i)
436
436
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
437
437
  return i.shift(), i;
438
- }, xe = (e) => e === "*" || e === "x" || e === "X", Te = (e) => {
438
+ }, $e = (e) => e === "*" || e === "x" || e === "X", Ke = (e) => {
439
439
  const i = parseInt(e, 10);
440
440
  return isNaN(i) ? e : i;
441
441
  }, St = (e, i) => typeof e != typeof i ? [String(e), String(i)] : [e, i], wt = (e, i) => {
442
- if (xe(e) || xe(i))
442
+ if ($e(e) || $e(i))
443
443
  return 0;
444
- const [t, a] = St(Te(e), Te(i));
444
+ const [t, a] = St(Ke(e), Ke(i));
445
445
  return t > a ? 1 : t < a ? -1 : 0;
446
- }, $e = (e, i) => {
446
+ }, Pe = (e, i) => {
447
447
  for (let t = 0; t < Math.max(e.length, i.length); t++) {
448
448
  const a = wt(e[t] || "0", i[t] || "0");
449
449
  if (a !== 0)
@@ -451,37 +451,37 @@ const Ae = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
451
451
  }
452
452
  return 0;
453
453
  }, Ct = (e, i) => {
454
- const t = Ie(e), a = Ie(i), r = t.pop(), o = a.pop(), f = $e(t, a);
455
- return f !== 0 ? f : r && o ? $e(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
456
- }, Ke = (e, i, t) => {
454
+ const t = Te(e), a = Te(i), o = t.pop(), r = a.pop(), y = Pe(t, a);
455
+ return y !== 0 ? y : o && r ? Pe(o.split("."), r.split(".")) : o || r ? o ? -1 : 1 : 0;
456
+ }, Ee = (e, i, t) => {
457
457
  It(t);
458
458
  const a = Ct(e, i);
459
- return Ve[t].includes(a);
460
- }, Ve = {
459
+ return Le[t].includes(a);
460
+ }, Le = {
461
461
  ">": [1],
462
462
  ">=": [0, 1],
463
463
  "=": [0],
464
464
  "<=": [-1, 0],
465
465
  "<": [-1],
466
466
  "!=": [-1, 1]
467
- }, Pe = Object.keys(Ve), It = (e) => {
467
+ }, Me = Object.keys(Le), It = (e) => {
468
468
  if (typeof e != "string")
469
469
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
470
- if (Pe.indexOf(e) === -1)
471
- throw new Error(`Invalid operator, expected one of ${Pe.join("|")}`);
472
- }, xt = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ae.test(e);
470
+ if (Me.indexOf(e) === -1)
471
+ throw new Error(`Invalid operator, expected one of ${Me.join("|")}`);
472
+ }, xt = (e) => typeof e == "string" && /^[v\d]/.test(e) && je.test(e);
473
473
  function Tt(e) {
474
474
  const { gatewayInfo: i, supportedRange: t } = e;
475
475
  if (!i)
476
476
  return !0;
477
- const { edition: a, version: r } = i;
478
- if (!xt(r))
477
+ const { edition: a, version: o } = i;
478
+ if (!xt(o))
479
479
  return console.error("Invalid version"), !1;
480
- const o = t[a];
481
- if (!o)
480
+ const r = t[a];
481
+ if (!r)
482
482
  return !1;
483
- const [f, K] = o;
484
- return !(f && Ke(r, f, "<") || K && Ke(r, K, ">"));
483
+ const [y, $] = r;
484
+ return !(y && Ee(o, y, "<") || $ && Ee(o, $, ">"));
485
485
  }
486
486
  const ae = {
487
487
  useAxios: _e,
@@ -489,19 +489,19 @@ const ae = {
489
489
  useDeleteUrlBuilder: ht,
490
490
  useErrors: bt,
491
491
  useFetcher: kt,
492
- useFetchUrlBuilder: Ue,
492
+ useFetchUrlBuilder: Ve,
493
493
  useStringHelpers: _t,
494
494
  useI18n: Se,
495
495
  useGatewayFeatureSupported: Tt
496
496
  }, le = (e, i) => {
497
497
  const t = e.__vccOpts || e;
498
- for (const [a, r] of i)
499
- t[a] = r;
498
+ for (const [a, o] of i)
499
+ t[a] = o;
500
500
  return t;
501
- }, $t = "#0044f4", Kt = "#3a3f51", Pt = ["onReset", "onSubmit"], Mt = {
501
+ }, $t = "#0044f4", Kt = "#3a3f51", Pt = ["onReset", "onSubmit"], Et = {
502
502
  class: "form-actions",
503
503
  "data-testid": "form-actions"
504
- }, Et = /* @__PURE__ */ Y({
504
+ }, Mt = /* @__PURE__ */ Y({
505
505
  __name: "EntityBaseForm",
506
506
  props: {
507
507
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -551,87 +551,87 @@ const ae = {
551
551
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
552
552
  setup(e, { emit: i }) {
553
553
  var t;
554
- const a = e, r = Be(), { i18n: { t: o } } = ae.useI18n(), { getMessageFromError: f } = ae.useErrors(), { axiosInstance: K } = ae.useAxios({
554
+ const a = e, o = Ue(), { i18n: { t: r } } = ae.useI18n(), { getMessageFromError: y } = ae.useErrors(), { axiosInstance: $ } = ae.useAxios({
555
555
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
556
- }), g = C(!1), y = C(!1), n = C(""), v = w(() => a.canSubmit === !1 || a.isReadonly), T = w(() => {
557
- var l, m;
556
+ }), g = I(!1), m = I(!1), n = I(""), h = S(() => a.canSubmit === !1 || a.isReadonly), C = S(() => {
557
+ var l, f;
558
558
  if (!a.editId)
559
559
  return "";
560
560
  let u = `${a.config.apiBaseUrl}${a.fetchUrl}`;
561
- return a.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((l = a.config) == null ? void 0 : l.controlPlaneId) || "") : a.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (m = a.config) != null && m.workspace ? `/${a.config.workspace}` : "")), u = u.replace(/{id}/gi, a.editId), u;
562
- }), $ = () => {
563
- a.config.cancelRoute ? r.push(a.config.cancelRoute) : R();
564
- }, R = () => {
561
+ return a.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((l = a.config) == null ? void 0 : l.controlPlaneId) || "") : a.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (f = a.config) != null && f.workspace ? `/${a.config.workspace}` : "")), u = u.replace(/{id}/gi, a.editId), u;
562
+ }), K = () => {
563
+ a.config.cancelRoute ? o.push(a.config.cancelRoute) : M();
564
+ }, M = () => {
565
565
  i("cancel");
566
566
  }, _ = () => {
567
- v.value || i("submit");
567
+ h.value || i("submit");
568
568
  };
569
569
  return ie(() => g.value, (l) => {
570
570
  i("loading", l);
571
571
  }, { immediate: !0 }), he(async () => {
572
572
  if (a.editId)
573
573
  try {
574
- y.value = !1, g.value = !0;
575
- const { data: l } = await K.get(T.value);
574
+ m.value = !1, g.value = !0;
575
+ const { data: l } = await $.get(C.value);
576
576
  i("fetch:success", l);
577
577
  } catch (l) {
578
- const m = f(l);
579
- n.value = m.startsWith("code") ? o("baseForm.errors.edit") : m, y.value = !0, i("fetch:error", l);
578
+ const f = y(l);
579
+ n.value = f.startsWith("code") ? r("baseForm.errors.edit") : f, m.value = !0, i("fetch:error", l);
580
580
  } finally {
581
581
  g.value = !1;
582
582
  }
583
- }), (l, m) => {
584
- const u = M("KSkeleton"), c = M("KEmptyState"), E = M("KAlert"), q = M("KButton"), A = M("KCard");
585
- return h(), V(A, { class: "kong-ui-entity-base-form" }, {
583
+ }), (l, f) => {
584
+ const u = E("KSkeleton"), c = E("KEmptyState"), F = E("KAlert"), B = E("KButton"), A = E("KCard");
585
+ return v(), V(A, { class: "kong-ui-entity-base-form" }, {
586
586
  body: d(() => [
587
- g.value ? (h(), V(u, {
587
+ g.value ? (v(), V(u, {
588
588
  key: 0,
589
589
  type: "form"
590
- })) : y.value ? (h(), V(c, {
590
+ })) : m.value ? (v(), V(c, {
591
591
  key: 1,
592
- "cta-text": s(o)("baseForm.actions.back"),
592
+ "cta-text": s(r)("baseForm.actions.back"),
593
593
  "data-testid": "form-fetch-error",
594
- "handle-click": $,
594
+ "handle-click": K,
595
595
  "is-error": !0
596
596
  }, {
597
597
  message: d(() => [
598
- F("h3", null, P(n.value), 1)
598
+ q("h3", null, P(n.value), 1)
599
599
  ]),
600
600
  _: 1
601
- }, 8, ["cta-text"])) : (h(), N("form", {
601
+ }, 8, ["cta-text"])) : (v(), N("form", {
602
602
  key: 2,
603
603
  "data-testid": "form-content",
604
- onReset: fe(R, ["prevent"]),
604
+ onReset: fe(M, ["prevent"]),
605
605
  onSubmit: fe(_, ["prevent"])
606
606
  }, [
607
607
  J(l.$slots, "default", {}, void 0, !0),
608
- e.errorMessage ? (h(), V(E, {
608
+ e.errorMessage ? (v(), V(F, {
609
609
  key: 0,
610
610
  "alert-message": e.errorMessage,
611
611
  appearance: "danger",
612
612
  "data-testid": "form-error"
613
613
  }, null, 8, ["alert-message"])) : Q("", !0),
614
- F("div", Mt, [
614
+ q("div", Et, [
615
615
  J(l.$slots, "form-actions", {}, () => [
616
- k(q, {
616
+ k(B, {
617
617
  appearance: "outline",
618
618
  "data-testid": "form-cancel",
619
619
  disabled: e.isReadonly,
620
620
  type: "reset"
621
621
  }, {
622
622
  default: d(() => [
623
- H(P(s(o)("baseForm.actions.cancel")), 1)
623
+ H(P(s(r)("baseForm.actions.cancel")), 1)
624
624
  ]),
625
625
  _: 1
626
626
  }, 8, ["disabled"]),
627
- k(q, {
627
+ k(B, {
628
628
  appearance: "primary",
629
629
  "data-testid": "form-submit",
630
- disabled: v.value,
630
+ disabled: h.value,
631
631
  type: "submit"
632
632
  }, {
633
633
  default: d(() => [
634
- H(P(s(o)("baseForm.actions.save")), 1)
634
+ H(P(s(r)("baseForm.actions.save")), 1)
635
635
  ]),
636
636
  _: 1
637
637
  }, 8, ["disabled"])
@@ -643,7 +643,7 @@ const ae = {
643
643
  });
644
644
  };
645
645
  }
646
- }), Ft = /* @__PURE__ */ le(Et, [["__scopeId", "data-v-2286e5f2"]]), Rt = { key: 0 }, qt = /* @__PURE__ */ Y({
646
+ }), Ft = /* @__PURE__ */ le(Mt, [["__scopeId", "data-v-2286e5f2"]]), qt = { key: 0 }, Bt = /* @__PURE__ */ Y({
647
647
  __name: "EntityBaseTableCell",
648
648
  props: {
649
649
  keyName: {
@@ -656,53 +656,53 @@ const ae = {
656
656
  }
657
657
  },
658
658
  setup(e) {
659
- const i = e, t = w(() => {
659
+ const i = e, t = S(() => {
660
660
  var _;
661
661
  return ((_ = i.rowEl) == null ? void 0 : _.querySelector(`[data-testid="${i.keyName}"]`)) || null;
662
- }), a = w(() => {
662
+ }), a = S(() => {
663
663
  var _;
664
664
  return ((_ = t.value) == null ? void 0 : _.querySelector('[role="button"]')) || null;
665
- }), r = w(() => {
665
+ }), o = S(() => {
666
666
  var _, l;
667
- const m = (_ = i.rowEl) == null ? void 0 : _.querySelectorAll("td");
668
- return m ? ((l = m[0]) == null ? void 0 : l.getAttribute("data-testid")) === i.keyName : !1;
667
+ const f = (_ = i.rowEl) == null ? void 0 : _.querySelectorAll("td");
668
+ return f ? ((l = f[0]) == null ? void 0 : l.getAttribute("data-testid")) === i.keyName : !1;
669
669
  });
670
- let o;
671
- const f = () => {
672
- o && (o.disconnect(), o = void 0);
673
- }, K = () => {
674
- var _, l, m;
675
- y.value = ((_ = a.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, n.value = ((l = t.value) == null ? void 0 : l.clientWidth) || 0, v.value = ((m = g.value) == null ? void 0 : m.innerText) || "";
676
- }, g = C({}), y = C(0), n = C(0), v = C(""), T = w(() => [a.value, t.value]), $ = ie(
677
- T,
670
+ let r;
671
+ const y = () => {
672
+ r && (r.disconnect(), r = void 0);
673
+ }, $ = () => {
674
+ var _, l, f;
675
+ m.value = ((_ = a.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, n.value = ((l = t.value) == null ? void 0 : l.clientWidth) || 0, h.value = ((f = g.value) == null ? void 0 : f.innerText) || "";
676
+ }, g = I({}), m = I(0), n = I(0), h = I(""), C = S(() => [a.value, t.value]), K = ie(
677
+ C,
678
678
  (_) => {
679
- if (r.value && (f(), "ResizeObserver" in window && window)) {
680
- o = new ResizeObserver((l) => {
679
+ if (o.value && (y(), "ResizeObserver" in window && window)) {
680
+ r = new ResizeObserver((l) => {
681
681
  window.requestAnimationFrame(() => {
682
- !Array.isArray(l) || !l.length || K();
682
+ !Array.isArray(l) || !l.length || $();
683
683
  });
684
684
  });
685
685
  for (const l of _)
686
- l && o.observe(l);
686
+ l && r.observe(l);
687
687
  }
688
688
  },
689
689
  { immediate: !0, flush: "post", deep: !0 }
690
- ), R = w(() => r.value ? y.value > n.value : !1);
691
- return He(() => {
692
- K();
693
- }), ze(() => {
690
+ ), M = S(() => o.value ? m.value > n.value : !1);
691
+ return We(() => {
694
692
  $();
693
+ }), Je(() => {
694
+ K();
695
695
  }), (_, l) => {
696
- const m = M("KTooltip");
697
- return h(), N("span", {
696
+ const f = E("KTooltip");
697
+ return v(), N("span", {
698
698
  ref_key: "contentRef",
699
699
  ref: g,
700
700
  class: "content-wrapper"
701
701
  }, [
702
- r.value ? (h(), N("span", Rt, [
703
- k(m, {
704
- disabled: !R.value,
705
- label: v.value,
702
+ o.value ? (v(), N("span", qt, [
703
+ k(f, {
704
+ disabled: !M.value,
705
+ label: h.value,
706
706
  "max-width": "300",
707
707
  placement: "bottomStart"
708
708
  }, {
@@ -715,10 +715,10 @@ const ae = {
715
715
  ], 512);
716
716
  };
717
717
  }
718
- }), Bt = /* @__PURE__ */ le(qt, [["__scopeId", "data-v-f8a220e9"]]), Nt = { class: "toolbar-container" }, Ot = {
718
+ }), Rt = /* @__PURE__ */ le(Bt, [["__scopeId", "data-v-f8a220e9"]]), Nt = { class: "toolbar-container" }, Ut = {
719
719
  key: 0,
720
720
  class: "toolbar-button-container"
721
- }, Ut = ["data-testid"], At = /* @__PURE__ */ Y({
721
+ }, Ot = ["data-testid"], At = /* @__PURE__ */ Y({
722
722
  __name: "EntityBaseTable",
723
723
  props: {
724
724
  // table header configuration
@@ -822,45 +822,45 @@ const ae = {
822
822
  },
823
823
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
824
824
  setup(e, { emit: i }) {
825
- const t = e, { i18n: { t: a } } = ae.useI18n(), r = w(() => t.cacheIdentifier || t.preferencesStorageKey), o = (c) => c.hasData || !!t.query, f = w(() => {
825
+ const t = e, { i18n: { t: a } } = ae.useI18n(), o = S(() => t.cacheIdentifier || t.preferencesStorageKey), r = (c) => c.hasData || !!t.query, y = S(() => {
826
826
  const c = [];
827
- return Object.keys(t.tableHeaders).forEach((E) => {
828
- const q = t.tableHeaders[E];
827
+ return Object.keys(t.tableHeaders).forEach((F) => {
828
+ const B = t.tableHeaders[F];
829
829
  c.push({
830
- label: q.label ?? E,
831
- key: E,
832
- sortable: q.sortable ?? !1
830
+ label: B.label ?? F,
831
+ key: F,
832
+ sortable: B.sortable ?? !1
833
833
  });
834
834
  }), t.enableEntityActions && c.push({
835
835
  key: "actions",
836
836
  hideLabel: !0
837
837
  }), c;
838
- }), K = (c) => ({
838
+ }), $ = (c) => ({
839
839
  "data-rowid": c.id,
840
840
  "data-testid": c.name,
841
841
  ...t.rowAttributes(c)
842
- }), g = C({}), y = (c) => {
843
- var E;
844
- return (E = g.value) == null ? void 0 : E.$el.querySelector(`[data-rowid="${c.id}"]`);
842
+ }), g = I({}), m = (c) => {
843
+ var F;
844
+ return (F = g.value) == null ? void 0 : F.$el.querySelector(`[data-rowid="${c.id}"]`);
845
845
  }, n = (c) => {
846
- const E = {
846
+ const F = {
847
847
  "data-testid": c.headerKey,
848
848
  ...t.cellAttributes(c)
849
849
  };
850
- return c.colIndex === 0 && (E.style = {
850
+ return c.colIndex === 0 && (F.style = {
851
851
  maxWidth: "250px",
852
852
  overflowX: "hidden",
853
853
  textOverflow: "ellipsis"
854
- }), E;
855
- }, v = () => {
856
- i("empty-state-cta-clicked"), T();
857
- }, T = () => {
854
+ }), F;
855
+ }, h = () => {
856
+ i("empty-state-cta-clicked"), C();
857
+ }, C = () => {
858
858
  i("clear-search-input");
859
- }, $ = (c, E) => {
860
- i("click:row", E);
861
- }, R = (c) => {
859
+ }, K = (c, F) => {
860
+ i("click:row", F);
861
+ }, M = (c) => {
862
862
  i("sort", c);
863
- }, { setTablePreferences: _, getTablePreferences: l } = lt(), m = w(() => {
863
+ }, { setTablePreferences: _, getTablePreferences: l } = lt(), f = S(() => {
864
864
  const c = l(t.preferencesStorageKey);
865
865
  return {
866
866
  ...t.initialFetcherParams,
@@ -869,9 +869,9 @@ const ae = {
869
869
  }), u = (c) => {
870
870
  t.preferencesStorageKey && _(t.preferencesStorageKey, c);
871
871
  };
872
- return (c, E) => {
873
- const q = M("KIcon"), A = M("KButton"), I = M("KDropdownMenu"), W = M("KTable"), j = M("KCard");
874
- return h(), V(j, {
872
+ return (c, F) => {
873
+ const B = E("KIcon"), A = E("KButton"), x = E("KDropdownMenu"), W = E("KTable"), j = E("KCard");
874
+ return v(), V(j, {
875
875
  class: "kong-ui-entity-base-table",
876
876
  title: e.title
877
877
  }, {
@@ -879,7 +879,7 @@ const ae = {
879
879
  k(W, {
880
880
  ref_key: "tableRefs",
881
881
  ref: g,
882
- "cache-identifier": r.value,
882
+ "cache-identifier": o.value,
883
883
  "cell-attrs": n,
884
884
  "disable-pagination-page-jump": e.disablePaginationPageJump,
885
885
  "disable-sorting": e.disableSorting,
@@ -895,34 +895,34 @@ const ae = {
895
895
  fetcher: e.fetcher,
896
896
  "fetcher-cache-key": String(e.fetcherCacheKey),
897
897
  "has-error": !!e.errorMessage,
898
- headers: f.value,
898
+ headers: y.value,
899
899
  "hide-pagination-when-optional": "",
900
- "initial-fetcher-params": m.value,
900
+ "initial-fetcher-params": f.value,
901
901
  "is-loading": e.isLoading,
902
902
  "pagination-type": e.paginationType,
903
- "row-attrs": K,
903
+ "row-attrs": $,
904
904
  "search-input": e.query,
905
- onKtableEmptyStateCtaClicked: v,
906
- "onRow:click": $,
907
- onSort: E[0] || (E[0] = (L) => R(L)),
905
+ onKtableEmptyStateCtaClicked: h,
906
+ "onRow:click": K,
907
+ onSort: F[0] || (F[0] = (L) => M(L)),
908
908
  "onUpdate:tablePreferences": u
909
- }, Fe({
909
+ }, Be({
910
910
  toolbar: d(({ state: L }) => [
911
- de(F("div", Nt, [
911
+ de(q("div", Nt, [
912
912
  J(c.$slots, "toolbar-filter", {}, void 0, !0),
913
- c.$slots["toolbar-button"] ? (h(), N("div", Ot, [
913
+ c.$slots["toolbar-button"] ? (v(), N("div", Ut, [
914
914
  J(c.$slots, "toolbar-button", {}, void 0, !0)
915
915
  ])) : Q("", !0)
916
916
  ], 512), [
917
- [ue, o(L)]
917
+ [ue, r(L)]
918
918
  ])
919
919
  ]),
920
920
  actions: d(({ row: L, rowKey: D, rowValue: X }) => [
921
- F("div", {
921
+ q("div", {
922
922
  class: "actions-container",
923
923
  "data-testid": L.name
924
924
  }, [
925
- k(I, {
925
+ k(x, {
926
926
  "kpop-attributes": { placement: "bottomEnd" },
927
927
  width: e.dropdownMenuWidth
928
928
  }, {
@@ -940,7 +940,7 @@ const ae = {
940
940
  size: "small"
941
941
  }, {
942
942
  icon: d(() => [
943
- k(q, {
943
+ k(B, {
944
944
  color: s(Kt),
945
945
  icon: "more",
946
946
  size: "16"
@@ -951,24 +951,24 @@ const ae = {
951
951
  ]),
952
952
  _: 2
953
953
  }, 1032, ["width"])
954
- ], 8, Ut)
954
+ ], 8, Ot)
955
955
  ]),
956
956
  _: 2
957
957
  }, [
958
958
  be(e.tableHeaders, (L, D) => ({
959
959
  name: D,
960
- fn: d(({ row: X, rowKey: re, rowValue: oe }) => [
961
- k(Bt, {
960
+ fn: d(({ row: X, rowKey: oe, rowValue: re }) => [
961
+ k(Rt, {
962
962
  "key-name": String(D),
963
- "row-el": y(X)
963
+ "row-el": m(X)
964
964
  }, {
965
965
  default: d(() => [
966
966
  J(c.$slots, D, {
967
967
  row: X,
968
- rowKey: re,
969
- rowValue: oe
968
+ rowKey: oe,
969
+ rowValue: re
970
970
  }, () => [
971
- H(P(oe), 1)
971
+ H(P(re), 1)
972
972
  ], !0)
973
973
  ]),
974
974
  _: 2
@@ -1026,27 +1026,27 @@ const ae = {
1026
1026
  },
1027
1027
  emits: ["cancel", "proceed"],
1028
1028
  setup(e, { emit: i }) {
1029
- const t = e, { i18nT: a } = ae.useI18n(), r = w(() => t.needConfirm ? t.entityName : ""), o = () => {
1029
+ const t = e, { i18nT: a } = ae.useI18n(), o = S(() => t.needConfirm ? t.entityName : ""), r = () => {
1030
1030
  i("cancel");
1031
- }, f = () => {
1031
+ }, y = () => {
1032
1032
  i("proceed");
1033
1033
  };
1034
- return (K, g) => {
1035
- const y = M("KAlert"), n = M("KPrompt");
1036
- return h(), V(n, {
1034
+ return ($, g) => {
1035
+ const m = E("KAlert"), n = E("KPrompt");
1036
+ return v(), V(n, {
1037
1037
  "action-button-text": "Yes, delete",
1038
1038
  "action-pending": e.actionPending,
1039
1039
  class: "kong-ui-entity-delete-modal",
1040
- "confirmation-text": r.value,
1040
+ "confirmation-text": o.value,
1041
1041
  "is-visible": e.visible,
1042
1042
  title: e.title,
1043
1043
  type: "danger",
1044
- onCanceled: o,
1045
- onProceed: f
1044
+ onCanceled: r,
1045
+ onProceed: y
1046
1046
  }, {
1047
1047
  "body-content": d(() => [
1048
- e.error ? (h(), N("div", jt, [
1049
- k(y, { appearance: "danger" }, {
1048
+ e.error ? (v(), N("div", jt, [
1049
+ k(m, { appearance: "danger" }, {
1050
1050
  alertMessage: d(() => [
1051
1051
  H(P(e.error), 1)
1052
1052
  ]),
@@ -1057,7 +1057,7 @@ const ae = {
1057
1057
  class: "message",
1058
1058
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
1059
1059
  tag: "p"
1060
- }, Fe({
1060
+ }, Be({
1061
1061
  entityType: d(() => [
1062
1062
  H(P(t.entityType), 1)
1063
1063
  ]),
@@ -1066,14 +1066,14 @@ const ae = {
1066
1066
  t.entityName ? {
1067
1067
  name: "entityName",
1068
1068
  fn: d(() => [
1069
- F("strong", null, P(t.entityName), 1)
1069
+ q("strong", null, P(t.entityName), 1)
1070
1070
  ]),
1071
1071
  key: "0"
1072
1072
  } : void 0
1073
1073
  ]), 1032, ["keypath"]),
1074
- t.description || K.$slots.description ? (h(), N("div", Lt, [
1075
- J(K.$slots, "description", {}, () => [
1076
- F("p", null, P(t.description), 1)
1074
+ t.description || $.$slots.description ? (v(), N("div", Lt, [
1075
+ J($.$slots, "description", {}, () => [
1076
+ q("p", null, P(t.description), 1)
1077
1077
  ], !0)
1078
1078
  ])) : Q("", !0)
1079
1079
  ]),
@@ -1104,16 +1104,16 @@ const ae = {
1104
1104
  }
1105
1105
  },
1106
1106
  setup(e) {
1107
- return (i, t) => (h(), N("svg", zt, [
1108
- F("mask", Wt, [
1109
- F("rect", {
1107
+ return (i, t) => (v(), N("svg", zt, [
1108
+ q("mask", Wt, [
1109
+ q("rect", {
1110
1110
  fill: e.color,
1111
1111
  height: "20",
1112
1112
  width: "20"
1113
1113
  }, null, 8, Jt)
1114
1114
  ]),
1115
- F("g", Gt, [
1116
- F("path", {
1115
+ q("g", Gt, [
1116
+ q("path", {
1117
1117
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
1118
1118
  fill: e.color
1119
1119
  }, null, 8, Qt)
@@ -1123,7 +1123,7 @@ const ae = {
1123
1123
  }), Xt = {
1124
1124
  key: 1,
1125
1125
  class: "kong-ui-entity-filter"
1126
- }, Zt = { class: "menu-item-title" }, ea = { class: "menu-item-indicator" }, ta = { class: "menu-item-body" }, aa = ["for"], ia = { class: "menu-item-buttons" }, ra = /* @__PURE__ */ Y({
1126
+ }, Zt = { class: "menu-item-title" }, ea = { class: "menu-item-indicator" }, ta = { class: "menu-item-body" }, aa = ["for"], ia = { class: "menu-item-buttons" }, oa = /* @__PURE__ */ Y({
1127
1127
  __name: "EntityFilter",
1128
1128
  props: {
1129
1129
  // filter config, either exact match or fuzzy match
@@ -1143,63 +1143,63 @@ const ae = {
1143
1143
  },
1144
1144
  emits: ["update:modelValue"],
1145
1145
  setup(e, { emit: i }) {
1146
- const t = e, { i18n: { t: a } } = ae.useI18n(), r = C(!1), o = C({}), f = w(() => {
1146
+ const t = e, { i18n: { t: a } } = ae.useI18n(), o = I(!1), r = I({}), y = S(() => {
1147
1147
  const l = [];
1148
- return new URLSearchParams(t.modelValue).forEach((m, u) => {
1149
- m !== "" && l.push(u);
1148
+ return new URLSearchParams(t.modelValue).forEach((f, u) => {
1149
+ f !== "" && l.push(u);
1150
1150
  }), l;
1151
- }), K = w(() => {
1151
+ }), $ = S(() => {
1152
1152
  const l = t.config.fields;
1153
- return Object.keys(l).filter((m) => l[m].searchable).map((m) => ({
1154
- label: l[m].label || m,
1155
- value: m
1153
+ return Object.keys(l).filter((f) => l[f].searchable).map((f) => ({
1154
+ label: l[f].label || f,
1155
+ value: f
1156
1156
  }));
1157
1157
  });
1158
1158
  ie(() => t.modelValue, (l) => {
1159
- o.value = {}, new URLSearchParams(l).forEach((m, u) => {
1160
- o.value[u] = m;
1159
+ r.value = {}, new URLSearchParams(l).forEach((f, u) => {
1160
+ r.value[u] = f;
1161
1161
  });
1162
1162
  });
1163
1163
  const g = () => {
1164
- r.value = !r.value;
1165
- }, y = (l) => {
1164
+ o.value = !o.value;
1165
+ }, m = (l) => {
1166
1166
  i("update:modelValue", l);
1167
- }, n = (l) => `filter-${l}`, v = (l) => {
1168
- var m, u;
1169
- return (((u = (m = t.config.schema) == null ? void 0 : m[l]) == null ? void 0 : u.values) ?? []).map((c) => ({
1167
+ }, n = (l) => `filter-${l}`, h = (l) => {
1168
+ var f, u;
1169
+ return (((u = (f = t.config.schema) == null ? void 0 : f[l]) == null ? void 0 : u.values) ?? []).map((c) => ({
1170
1170
  value: c,
1171
1171
  label: c
1172
1172
  }));
1173
- }, T = (l) => {
1174
- var m, u;
1175
- return ((u = (m = t.config.schema) == null ? void 0 : m[l]) == null ? void 0 : u.type) ?? "text";
1176
- }, $ = (l) => {
1177
- o.value = {
1178
- ...o.value,
1173
+ }, C = (l) => {
1174
+ var f, u;
1175
+ return ((u = (f = t.config.schema) == null ? void 0 : f[l]) == null ? void 0 : u.type) ?? "text";
1176
+ }, K = (l) => {
1177
+ r.value = {
1178
+ ...r.value,
1179
1179
  [l]: ""
1180
1180
  }, _();
1181
- }, R = () => {
1182
- o.value = {}, _(!0);
1181
+ }, M = () => {
1182
+ r.value = {}, _(!0);
1183
1183
  }, _ = (l = !1) => {
1184
- const m = Object.keys(o.value).reduce((u, c) => (o.value[c] && (u[c] = `${o.value[c]}`), u), {});
1185
- l && (r.value = !1), i("update:modelValue", new URLSearchParams(m).toString());
1184
+ const f = Object.keys(r.value).reduce((u, c) => (r.value[c] && (u[c] = `${r.value[c]}`), u), {});
1185
+ l && (o.value = !1), i("update:modelValue", new URLSearchParams(f).toString());
1186
1186
  };
1187
- return (l, m) => {
1188
- const u = M("KInput"), c = M("KButton"), E = M("KSelect"), q = M("KMenuItem"), A = M("KMenu");
1189
- return e.config.isExactMatch ? (h(), V(u, {
1187
+ return (l, f) => {
1188
+ const u = E("KInput"), c = E("KButton"), F = E("KSelect"), B = E("KMenuItem"), A = E("KMenu");
1189
+ return e.config.isExactMatch ? (v(), V(u, {
1190
1190
  key: 0,
1191
1191
  autocomplete: "off",
1192
1192
  class: "kong-ui-entity-filter-input",
1193
1193
  "data-testid": "search-input",
1194
1194
  "model-value": e.modelValue,
1195
1195
  placeholder: e.config.placeholder,
1196
- "onUpdate:modelValue": y
1196
+ "onUpdate:modelValue": m
1197
1197
  }, {
1198
1198
  icon: d(() => [
1199
1199
  k(Yt)
1200
1200
  ]),
1201
1201
  _: 1
1202
- }, 8, ["model-value", "placeholder"])) : (h(), N("div", Xt, [
1202
+ }, 8, ["model-value", "placeholder"])) : (v(), N("div", Xt, [
1203
1203
  k(c, {
1204
1204
  appearance: "btn-link",
1205
1205
  "data-testid": "filter-button",
@@ -1207,65 +1207,65 @@ const ae = {
1207
1207
  onClick: g
1208
1208
  }, {
1209
1209
  default: d(() => [
1210
- H(P(s(a)("filter.filterButtonText")) + " " + P(f.value.length > 0 ? `(${f.value.length})` : ""), 1)
1210
+ H(P(s(a)("filter.filterButtonText")) + " " + P(y.value.length > 0 ? `(${y.value.length})` : ""), 1)
1211
1211
  ]),
1212
1212
  _: 1
1213
1213
  }),
1214
- de(F("div", {
1214
+ de(q("div", {
1215
1215
  class: "kong-ui-entity-filter-backdrop",
1216
1216
  onClick: g
1217
1217
  }, null, 512), [
1218
- [ue, r.value]
1218
+ [ue, o.value]
1219
1219
  ]),
1220
1220
  de(k(A, { class: "kong-ui-entity-filter-menu" }, {
1221
1221
  body: d(() => [
1222
- (h(!0), N(Re, null, be(K.value, (I, W) => (h(), V(q, {
1223
- key: I.value,
1224
- "data-testid": I.value,
1222
+ (v(!0), N(Re, null, be($.value, (x, W) => (v(), V(B, {
1223
+ key: x.value,
1224
+ "data-testid": x.value,
1225
1225
  expandable: "",
1226
- "last-menu-item": W === K.value.length - 1
1226
+ "last-menu-item": W === $.value.length - 1
1227
1227
  }, {
1228
1228
  itemTitle: d(() => [
1229
- F("span", Zt, [
1230
- H(P(I.label) + " ", 1),
1231
- de(F("span", ea, null, 512), [
1232
- [ue, f.value.includes(I.value)]
1229
+ q("span", Zt, [
1230
+ H(P(x.label) + " ", 1),
1231
+ de(q("span", ea, null, 512), [
1232
+ [ue, y.value.includes(x.value)]
1233
1233
  ])
1234
1234
  ])
1235
1235
  ]),
1236
1236
  itemBody: d(() => {
1237
1237
  var j, L;
1238
1238
  return [
1239
- F("div", ta, [
1240
- F("label", {
1239
+ q("div", ta, [
1240
+ q("label", {
1241
1241
  class: "menu-item-label",
1242
- for: n(I.value)
1242
+ for: n(x.value)
1243
1243
  }, P(s(a)("filter.fieldLabel")), 9, aa),
1244
- ((L = (j = e.config.schema) == null ? void 0 : j[I.value]) == null ? void 0 : L.type) === "select" ? (h(), V(E, {
1244
+ ((L = (j = e.config.schema) == null ? void 0 : j[x.value]) == null ? void 0 : L.type) === "select" ? (v(), V(F, {
1245
1245
  key: 0,
1246
- id: n(I.value),
1247
- modelValue: o.value[I.value],
1248
- "onUpdate:modelValue": (D) => o.value[I.value] = D,
1246
+ id: n(x.value),
1247
+ modelValue: r.value[x.value],
1248
+ "onUpdate:modelValue": (D) => r.value[x.value] = D,
1249
1249
  appearance: "select",
1250
- items: v(I.value),
1250
+ items: h(x.value),
1251
1251
  placeholder: s(a)("filter.selectPlaceholder")
1252
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (h(), V(u, {
1252
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (v(), V(u, {
1253
1253
  key: 1,
1254
- id: n(I.value),
1255
- modelValue: o.value[I.value],
1256
- "onUpdate:modelValue": (D) => o.value[I.value] = D,
1254
+ id: n(x.value),
1255
+ modelValue: r.value[x.value],
1256
+ "onUpdate:modelValue": (D) => r.value[x.value] = D,
1257
1257
  autocomplete: "off",
1258
1258
  placeholder: s(a)("filter.inputPlaceholder"),
1259
1259
  size: "small",
1260
- type: T(I.value)
1260
+ type: C(x.value)
1261
1261
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
1262
1262
  ]),
1263
- F("div", ia, [
1263
+ q("div", ia, [
1264
1264
  k(c, {
1265
1265
  appearance: "btn-link",
1266
1266
  "data-testid": "apply-filter",
1267
1267
  size: "small",
1268
- onClick: m[0] || (m[0] = (D) => _(!0))
1268
+ onClick: f[0] || (f[0] = (D) => _(!0))
1269
1269
  }, {
1270
1270
  default: d(() => [
1271
1271
  H(P(s(a)("filter.applyButtonText")), 1)
@@ -1276,7 +1276,7 @@ const ae = {
1276
1276
  appearance: "btn-link",
1277
1277
  "data-testid": "clear-filter",
1278
1278
  size: "small",
1279
- onClick: (D) => $(I.value)
1279
+ onClick: (D) => K(x.value)
1280
1280
  }, {
1281
1281
  default: d(() => [
1282
1282
  H(P(s(a)("filter.clearButtonText")), 1)
@@ -1290,7 +1290,7 @@ const ae = {
1290
1290
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
1291
1291
  ]),
1292
1292
  actionButton: d(() => [
1293
- k(c, { onClick: R }, {
1293
+ k(c, { onClick: M }, {
1294
1294
  default: d(() => [
1295
1295
  H(P(s(a)("filter.clearAllButtonText")), 1)
1296
1296
  ]),
@@ -1299,12 +1299,12 @@ const ae = {
1299
1299
  ]),
1300
1300
  _: 1
1301
1301
  }, 512), [
1302
- [ue, r.value]
1302
+ [ue, o.value]
1303
1303
  ])
1304
1304
  ]));
1305
1305
  };
1306
1306
  }
1307
- }), oa = /* @__PURE__ */ le(ra, [["__scopeId", "data-v-745f38c0"]]), ve = /* @__PURE__ */ Y({
1307
+ }), ra = /* @__PURE__ */ le(oa, [["__scopeId", "data-v-745f38c0"]]), ve = /* @__PURE__ */ Y({
1308
1308
  __name: "PermissionsWrapper",
1309
1309
  props: {
1310
1310
  /**
@@ -1326,10 +1326,10 @@ const ae = {
1326
1326
  }
1327
1327
  },
1328
1328
  setup(e) {
1329
- const i = e, t = C(void 0), a = w(() => t.value === !0 || t.value !== void 0 && i.forceShow === !0);
1329
+ const i = e, t = I(void 0), a = S(() => t.value === !0 || t.value !== void 0 && i.forceShow === !0);
1330
1330
  return ie(() => i.authFunction, async () => {
1331
1331
  t.value = await i.authFunction();
1332
- }, { immediate: !0 }), (r, o) => a.value ? J(r.$slots, "default", {
1332
+ }, { immediate: !0 }), (o, r) => a.value ? J(o.$slots, "default", {
1333
1333
  key: 0,
1334
1334
  isAllowed: t.value
1335
1335
  }) : Q("", !0);
@@ -1368,32 +1368,32 @@ const ae = {
1368
1368
  }
1369
1369
  },
1370
1370
  setup(e) {
1371
- const i = De();
1372
- return (t, a) => (h(), N("fieldset", {
1371
+ const i = ze();
1372
+ return (t, a) => (v(), N("fieldset", {
1373
1373
  class: ye(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
1374
1374
  }, [
1375
- F("div", na, [
1376
- e.hideInfoHeader ? Q("", !0) : (h(), N("div", {
1375
+ q("div", na, [
1376
+ e.hideInfoHeader ? Q("", !0) : (v(), N("div", {
1377
1377
  key: 0,
1378
1378
  class: ye(["form-section-info", { sticky: e.stickyInfoHeader }])
1379
1379
  }, [
1380
- e.title ? (h(), N("h4", la, P(e.title), 1)) : Q("", !0),
1381
- e.description || s(i).description ? (h(), N("div", sa, [
1380
+ e.title ? (v(), N("h4", la, P(e.title), 1)) : Q("", !0),
1381
+ e.description || s(i).description ? (v(), N("div", sa, [
1382
1382
  J(t.$slots, "description", {}, () => [
1383
- F("p", null, P(e.description), 1)
1383
+ q("p", null, P(e.description), 1)
1384
1384
  ], !0)
1385
1385
  ])) : Q("", !0),
1386
- s(i).footer ? (h(), N("div", ca, [
1386
+ s(i).footer ? (v(), N("div", ca, [
1387
1387
  J(t.$slots, "footer", {}, void 0, !0)
1388
1388
  ])) : Q("", !0)
1389
1389
  ], 2)),
1390
- F("div", da, [
1390
+ q("div", da, [
1391
1391
  J(t.$slots, "default", {}, void 0, !0)
1392
1392
  ])
1393
1393
  ])
1394
1394
  ], 2));
1395
1395
  }
1396
- }), Me = /* @__PURE__ */ le(ua, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: je, useDeleteUrlBuilder: pa, useErrors: fa, useFetchUrlBuilder: Ua, useFetcher: ya, useDebouncedFilter: ma, useStringHelpers: Aa, useGatewayFeatureSupported: Va } = ae, ga = {
1396
+ }), Fe = /* @__PURE__ */ le(ua, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: De, useDeleteUrlBuilder: pa, useErrors: fa, useFetchUrlBuilder: Ua, useFetcher: ya, useDebouncedFilter: ma, useStringHelpers: Oa, useGatewayFeatureSupported: Aa } = ae, ga = {
1397
1397
  fail: "Failed to copy id to clipboard",
1398
1398
  success: {
1399
1399
  prefix: "Successfully",
@@ -1402,13 +1402,17 @@ const ae = {
1402
1402
  }, va = "Copy to clipboard", ha = {
1403
1403
  message: ga,
1404
1404
  iconTitle: va
1405
- }, ba = "kong-ui-copy-uuid-notify", ka = { class: "kong-ui-copy-uuid" }, _a = ["title"], Sa = ["onClick"], Ee = 15, wa = /* @__PURE__ */ Y({
1405
+ }, ba = "kong-ui-copy-uuid-notify", ka = { class: "kong-ui-copy-uuid" }, _a = ["onClick"], qe = 15, Sa = /* @__PURE__ */ Y({
1406
1406
  __name: "CopyUuid",
1407
1407
  props: {
1408
1408
  uuid: {
1409
1409
  type: String,
1410
1410
  required: !0
1411
1411
  },
1412
+ idTooltip: {
1413
+ type: String,
1414
+ default: ""
1415
+ },
1412
1416
  truncated: {
1413
1417
  type: Boolean,
1414
1418
  default: !0
@@ -1442,57 +1446,62 @@ const ae = {
1442
1446
  },
1443
1447
  emits: ["success", "error"],
1444
1448
  setup(e, { emit: i }) {
1445
- const t = e, { t: a } = ke("en-us", ha), r = t.notify || We(ba, () => {
1446
- }), o = w(() => !!(t.tooltip && t.successTooltip)), f = C(t.tooltip), K = w(() => t.tooltip ? {
1447
- label: f.value,
1449
+ const t = e, { t: a } = ke("en-us", ha), o = t.notify || Ge(ba, () => {
1450
+ }), r = S(() => t.idTooltip ? {
1451
+ label: t.idTooltip,
1452
+ positionFixed: !0,
1453
+ placement: "bottomStart"
1454
+ } : {
1455
+ title: t.uuid
1456
+ }), y = S(() => !!(t.tooltip && t.successTooltip)), $ = I(t.tooltip), g = S(() => t.tooltip ? {
1457
+ label: $.value,
1448
1458
  positionFixed: !0,
1449
1459
  maxWidth: "500px",
1450
1460
  placement: "bottomStart"
1451
- } : {}), g = w(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), y = (v) => {
1452
- f.value = v, setTimeout(() => {
1453
- f.value = t.tooltip;
1461
+ } : {}), m = S(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), n = (C) => {
1462
+ $.value = C, setTimeout(() => {
1463
+ $.value = t.tooltip;
1454
1464
  }, 1800);
1455
- }, n = (v) => {
1456
- if (!v(t.uuid)) {
1457
- typeof r == "function" && r({
1465
+ }, h = (C) => {
1466
+ if (!C(t.uuid)) {
1467
+ typeof o == "function" && o({
1458
1468
  type: "error",
1459
1469
  message: a("message.fail")
1460
- }), o.value ? y(a("message.fail")) : i("error", t.uuid);
1470
+ }), y.value ? n(a("message.fail")) : i("error", t.uuid);
1461
1471
  return;
1462
1472
  }
1463
- const T = t.uuid.length > Ee, $ = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${t.uuid.substring(0, Ee) + (T ? "..." : "")}"`;
1464
- typeof r == "function" && r({
1473
+ const K = t.uuid.length > qe, M = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${t.uuid.substring(0, qe) + (K ? "..." : "")}"`;
1474
+ typeof o == "function" && o({
1465
1475
  type: "success",
1466
- message: `${$}${a("message.success.content")}`
1467
- }), o.value ? y(t.successTooltip) : i("success", t.uuid);
1476
+ message: `${M}${a("message.success.content")}`
1477
+ }), y.value ? n(t.successTooltip) : i("success", t.uuid);
1468
1478
  };
1469
- return (v, T) => {
1470
- const $ = M("KIcon"), R = M("KClipboardProvider");
1471
- return h(), N("div", ka, [
1472
- e.format !== "hidden" ? (h(), N("div", {
1473
- key: 0,
1474
- "data-testid": "copy-id",
1475
- title: e.uuid
1476
- }, [
1477
- F("div", {
1478
- class: ye([
1479
- "uuid-container",
1480
- e.truncated ? "truncated-uuid" : null,
1481
- e.useMono ? "mono" : null
1482
- ])
1483
- }, P(g.value), 3)
1484
- ], 8, _a)) : Q("", !0),
1485
- (h(), V(Je(e.tooltip ? "KTooltip" : "div"), Ge(K.value, { class: "uuid-icon-wrapper" }), {
1479
+ return (C, K) => {
1480
+ const M = E("KIcon"), _ = E("KClipboardProvider");
1481
+ return v(), N("div", ka, [
1482
+ e.format !== "hidden" ? (v(), V(Ce(e.idTooltip ? "KTooltip" : "div"), Ie({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
1483
+ default: d(() => [
1484
+ q("div", {
1485
+ class: ye([
1486
+ "uuid-container",
1487
+ e.truncated ? "truncated-uuid" : null,
1488
+ e.useMono ? "mono" : null
1489
+ ])
1490
+ }, P(m.value), 3)
1491
+ ]),
1492
+ _: 1
1493
+ }, 16)) : Q("", !0),
1494
+ (v(), V(Ce(e.tooltip ? "KTooltip" : "div"), Ie(g.value, { class: "uuid-icon-wrapper" }), {
1486
1495
  default: d(() => [
1487
- k(R, null, {
1488
- default: d(({ copyToClipboard: _ }) => [
1489
- F("span", {
1496
+ k(_, null, {
1497
+ default: d(({ copyToClipboard: l }) => [
1498
+ q("span", {
1490
1499
  "data-testid": "copy-to-clipboard",
1491
1500
  role: "button",
1492
1501
  tabindex: "0",
1493
- onClick: fe((l) => n(_), ["stop"])
1502
+ onClick: fe((f) => h(l), ["stop"])
1494
1503
  }, [
1495
- k($, {
1504
+ k(M, {
1496
1505
  class: "uuid-icon",
1497
1506
  color: e.iconColor,
1498
1507
  "hide-title": !!e.tooltip || void 0,
@@ -1500,7 +1509,7 @@ const ae = {
1500
1509
  size: "16",
1501
1510
  title: s(a)("iconTitle")
1502
1511
  }, null, 8, ["color", "hide-title", "title"])
1503
- ], 8, Sa)
1512
+ ], 8, _a)
1504
1513
  ]),
1505
1514
  _: 1
1506
1515
  })
@@ -1510,13 +1519,13 @@ const ae = {
1510
1519
  ]);
1511
1520
  };
1512
1521
  }
1513
- }), Ca = (e, i) => {
1522
+ }), wa = (e, i) => {
1514
1523
  const t = e.__vccOpts || e;
1515
- for (const [a, r] of i)
1516
- t[a] = r;
1524
+ for (const [a, o] of i)
1525
+ t[a] = o;
1517
1526
  return t;
1518
- }, Ia = /* @__PURE__ */ Ca(wa, [["__scopeId", "data-v-e4ea1359"]]);
1519
- const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key: 1 }, Ka = /* @__PURE__ */ Y({
1527
+ }, Ca = /* @__PURE__ */ wa(Sa, [["__scopeId", "data-v-bfdaf6f7"]]);
1528
+ const Ia = { class: "kong-ui-entities-snis-list" }, xa = { key: 1 }, Ta = { key: 1 }, $a = /* @__PURE__ */ Y({
1520
1529
  __name: "SniList",
1521
1530
  props: {
1522
1531
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1558,56 +1567,56 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1558
1567
  emits: ["error", "copy:success", "copy:error", "delete:success"],
1559
1568
  setup(e, { emit: i }) {
1560
1569
  var ne;
1561
- const t = e, { i18n: { t: a } } = Ne.useI18n(), r = (b, B) => {
1562
- var U;
1570
+ const t = e, { i18n: { t: a } } = Oe.useI18n(), o = (b, R) => {
1571
+ var O;
1563
1572
  b.type === "error" ? i("copy:error", {
1564
- entity: B,
1573
+ entity: R,
1565
1574
  field: "certificate.id",
1566
1575
  message: a("errors.copy")
1567
1576
  }) : i("copy:success", {
1568
- entity: B,
1577
+ entity: R,
1569
1578
  field: "certificate.id",
1570
- message: a("copy.success", { val: (U = B.certificate) == null ? void 0 : U.id })
1579
+ message: a("copy.success", { val: (O = R.certificate) == null ? void 0 : O.id })
1571
1580
  });
1572
- }, { axiosInstance: o } = je({
1581
+ }, { axiosInstance: r } = De({
1573
1582
  headers: (ne = t.config) == null ? void 0 : ne.requestHeaders
1574
- }), f = C(1), K = w(() => t.config.app !== "kongManager" || !!t.config.disableSorting), g = {
1583
+ }), y = I(1), $ = S(() => t.config.app !== "kongManager" || !!t.config.disableSorting), g = {
1575
1584
  name: { label: a("snis.list.table_headers.name"), searchable: !0, sortable: !0 },
1576
1585
  certificate: { label: a("snis.list.table_headers.certificate_id"), sortable: !1 },
1577
1586
  tags: { label: a("snis.list.table_headers.tags"), sortable: !1 }
1578
- }, y = g, n = (b) => ({
1587
+ }, m = g, n = (b) => ({
1579
1588
  style: {
1580
1589
  maxWidth: b.headerKey === "name" ? "250px" : b.headerKey === "certificate" ? "350px" : null
1581
1590
  }
1582
- }), v = w(() => {
1583
- var B, U;
1591
+ }), h = S(() => {
1592
+ var R, O;
1584
1593
  let b = `${t.config.apiBaseUrl}${se.list[t.config.app].all}`;
1585
- return t.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : t.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (U = t.config) != null && U.workspace ? `/${t.config.workspace}` : "")), b;
1586
- }), T = C(""), $ = w(() => {
1594
+ return t.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((R = t.config) == null ? void 0 : R.controlPlaneId) || "") : t.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (O = t.config) != null && O.workspace ? `/${t.config.workspace}` : "")), b;
1595
+ }), C = I(""), K = S(() => {
1587
1596
  const b = t.config.app === "konnect" || t.config.isExactMatch;
1588
1597
  if (b)
1589
1598
  return {
1590
1599
  isExactMatch: b,
1591
1600
  placeholder: a("search.placeholder")
1592
1601
  };
1593
- const { name: B } = g;
1602
+ const { name: R } = g;
1594
1603
  return {
1595
1604
  isExactMatch: b,
1596
- fields: { name: B },
1605
+ fields: { name: R },
1597
1606
  schema: t.config.filterSchema
1598
1607
  };
1599
- }), { fetcher: R, fetcherState: _ } = ya(t.config, v.value), l = () => {
1600
- T.value = "";
1601
- }, m = () => {
1602
- f.value++;
1603
- }, u = C(""), c = C({
1608
+ }), { fetcher: M, fetcherState: _ } = ya(t.config, h.value), l = () => {
1609
+ C.value = "";
1610
+ }, f = () => {
1611
+ y.value++;
1612
+ }, u = I(""), c = I({
1604
1613
  ctaPath: t.config.createRoute,
1605
1614
  ctaText: void 0,
1606
1615
  message: a("snis.list.empty_state.description"),
1607
1616
  title: a("snis.title")
1608
- }), E = (b, B) => {
1609
- const U = b.id;
1610
- if (!B(U)) {
1617
+ }), F = (b, R) => {
1618
+ const O = b.id;
1619
+ if (!R(O)) {
1611
1620
  i("copy:error", {
1612
1621
  entity: b,
1613
1622
  field: "id",
@@ -1618,11 +1627,11 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1618
1627
  i("copy:success", {
1619
1628
  entity: b,
1620
1629
  field: "id",
1621
- message: a("copy.success", { val: U })
1630
+ message: a("copy.success", { val: O })
1622
1631
  });
1623
- }, q = (b, B) => {
1624
- const U = JSON.stringify(b);
1625
- if (!B(U)) {
1632
+ }, B = (b, R) => {
1633
+ const O = JSON.stringify(b);
1634
+ if (!R(O)) {
1626
1635
  i("copy:error", {
1627
1636
  entity: b,
1628
1637
  message: a("errors.copy")
@@ -1636,18 +1645,18 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1636
1645
  }, A = (b) => ({
1637
1646
  label: a("actions.edit"),
1638
1647
  to: t.config.getEditRoute(b)
1639
- }), I = C(void 0), W = C(!1), j = C(!1), L = C(""), D = pa(t.config, v.value), X = (b) => {
1640
- I.value = b, W.value = !0;
1641
- }, re = () => {
1642
- W.value = !1, I.value = void 0;
1643
- }, oe = async () => {
1644
- var b, B, U;
1645
- if ((b = I.value) != null && b.id) {
1648
+ }), x = I(void 0), W = I(!1), j = I(!1), L = I(""), D = pa(t.config, h.value), X = (b) => {
1649
+ x.value = b, W.value = !0;
1650
+ }, oe = () => {
1651
+ W.value = !1, x.value = void 0;
1652
+ }, re = async () => {
1653
+ var b, R, O;
1654
+ if ((b = x.value) != null && b.id) {
1646
1655
  j.value = !0;
1647
1656
  try {
1648
- await o.delete(D(I.value.id)), i("delete:success", I.value), j.value = !1, re(), f.value++;
1657
+ await r.delete(D(x.value.id)), i("delete:success", x.value), j.value = !1, oe(), y.value++;
1649
1658
  } catch (p) {
1650
- L.value = ((U = (B = p.response) == null ? void 0 : B.data) == null ? void 0 : U.message) || p.message || a("errors.delete"), i("error", p);
1659
+ L.value = ((O = (R = p.response) == null ? void 0 : R.data) == null ? void 0 : O.message) || p.message || a("errors.delete"), i("error", p);
1651
1660
  } finally {
1652
1661
  j.value = !1;
1653
1662
  }
@@ -1661,31 +1670,31 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1661
1670
  u.value = "";
1662
1671
  }), he(async () => {
1663
1672
  await t.canCreate() && (c.value.title = a("snis.list.empty_state.title"), c.value.ctaText = a("actions.create"));
1664
- }), (b, B) => {
1665
- const U = M("KButton"), p = M("KBadge"), x = M("KTruncate"), O = M("KDropdownItem"), Z = M("KClipboardProvider");
1666
- return h(), N("div", xa, [
1673
+ }), (b, R) => {
1674
+ const O = E("KButton"), p = E("KBadge"), T = E("KTruncate"), U = E("KDropdownItem"), Z = E("KClipboardProvider");
1675
+ return v(), N("div", Ia, [
1667
1676
  k(s(Vt), {
1668
1677
  "cache-identifier": e.cacheIdentifier,
1669
1678
  "cell-attributes": n,
1670
1679
  "disable-pagination-page-jump": "",
1671
- "disable-sorting": K.value,
1680
+ "disable-sorting": $.value,
1672
1681
  "empty-state-options": c.value,
1673
1682
  "enable-entity-actions": "",
1674
1683
  "error-message": u.value,
1675
- fetcher: s(R),
1676
- "fetcher-cache-key": f.value,
1684
+ fetcher: s(M),
1685
+ "fetcher-cache-key": y.value,
1677
1686
  "pagination-type": "offset",
1678
1687
  "preferences-storage-key": "kong-ui-entities-snis-list",
1679
- query: T.value,
1680
- "table-headers": s(y),
1688
+ query: C.value,
1689
+ "table-headers": s(m),
1681
1690
  onClearSearchInput: l,
1682
- onSort: m
1691
+ onSort: f
1683
1692
  }, {
1684
1693
  "toolbar-filter": d(() => [
1685
- k(s(oa), {
1686
- modelValue: T.value,
1687
- "onUpdate:modelValue": B[0] || (B[0] = (S) => T.value = S),
1688
- config: $.value
1694
+ k(s(ra), {
1695
+ modelValue: C.value,
1696
+ "onUpdate:modelValue": R[0] || (R[0] = (w) => C.value = w),
1697
+ config: K.value
1689
1698
  }, null, 8, ["modelValue", "config"])
1690
1699
  ]),
1691
1700
  "toolbar-button": d(() => [
@@ -1693,7 +1702,7 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1693
1702
  "auth-function": () => e.canCreate()
1694
1703
  }, {
1695
1704
  default: d(() => [
1696
- k(U, {
1705
+ k(O, {
1697
1706
  appearance: "primary",
1698
1707
  "data-testid": "toolbar-add-sni",
1699
1708
  icon: "plus",
@@ -1708,25 +1717,25 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1708
1717
  _: 1
1709
1718
  }, 8, ["auth-function"])
1710
1719
  ]),
1711
- name: d(({ rowValue: S }) => [
1712
- F("b", null, P(S ?? "-"), 1)
1720
+ name: d(({ rowValue: w }) => [
1721
+ q("b", null, P(w ?? "-"), 1)
1713
1722
  ]),
1714
- certificate: d(({ row: S }) => [
1715
- S.certificate && S.certificate.id ? (h(), V(s(Ia), {
1723
+ certificate: d(({ row: w }) => [
1724
+ w.certificate && w.certificate.id ? (v(), V(s(Ca), {
1716
1725
  key: 0,
1717
1726
  class: "copy-certificate-uuid",
1718
1727
  "data-testid": "copy-certificate-uuid",
1719
- notify: (G) => r(G, S),
1728
+ notify: (G) => o(G, w),
1720
1729
  truncated: !1,
1721
- uuid: S.certificate.id
1722
- }, null, 8, ["notify", "uuid"])) : (h(), N("span", Ta, "-"))
1730
+ uuid: w.certificate.id
1731
+ }, null, 8, ["notify", "uuid"])) : (v(), N("span", xa, "-"))
1723
1732
  ]),
1724
- tags: d(({ rowValue: S }) => [
1725
- S != null && S.length ? (h(), V(x, { key: 0 }, {
1733
+ tags: d(({ rowValue: w }) => [
1734
+ w != null && w.length ? (v(), V(T, { key: 0 }, {
1726
1735
  default: d(() => [
1727
- (h(!0), N(Re, null, be(S, (G) => (h(), V(p, {
1736
+ (v(!0), N(Re, null, be(w, (G) => (v(), V(p, {
1728
1737
  key: G,
1729
- onClick: B[1] || (B[1] = fe(() => {
1738
+ onClick: R[1] || (R[1] = fe(() => {
1730
1739
  }, ["stop"]))
1731
1740
  }, {
1732
1741
  default: d(() => [
@@ -1736,14 +1745,14 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1736
1745
  }, 1024))), 128))
1737
1746
  ]),
1738
1747
  _: 2
1739
- }, 1024)) : (h(), N("span", $a, "-"))
1748
+ }, 1024)) : (v(), N("span", Ta, "-"))
1740
1749
  ]),
1741
- actions: d(({ row: S }) => [
1750
+ actions: d(({ row: w }) => [
1742
1751
  k(Z, null, {
1743
1752
  default: d(({ copyToClipboard: G }) => [
1744
- k(O, {
1753
+ k(U, {
1745
1754
  "data-testid": "action-entity-copy-id",
1746
- onClick: (ce) => E(S, G)
1755
+ onClick: (ce) => F(w, G)
1747
1756
  }, {
1748
1757
  default: d(() => [
1749
1758
  H(P(s(a)("actions.copy_id")), 1)
@@ -1755,9 +1764,9 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1755
1764
  }, 1024),
1756
1765
  k(Z, null, {
1757
1766
  default: d(({ copyToClipboard: G }) => [
1758
- k(O, {
1767
+ k(U, {
1759
1768
  "data-testid": "action-entity-copy-json",
1760
- onClick: (ce) => q(S, G)
1769
+ onClick: (ce) => B(w, G)
1761
1770
  }, {
1762
1771
  default: d(() => [
1763
1772
  H(P(s(a)("actions.copy_json")), 1)
@@ -1768,25 +1777,25 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1768
1777
  _: 2
1769
1778
  }, 1024),
1770
1779
  k(s(ve), {
1771
- "auth-function": () => e.canEdit(S)
1780
+ "auth-function": () => e.canEdit(w)
1772
1781
  }, {
1773
1782
  default: d(() => [
1774
- k(O, {
1783
+ k(U, {
1775
1784
  "data-testid": "action-entity-edit",
1776
- item: A(S.id)
1785
+ item: A(w.id)
1777
1786
  }, null, 8, ["item"])
1778
1787
  ]),
1779
1788
  _: 2
1780
1789
  }, 1032, ["auth-function"]),
1781
1790
  k(s(ve), {
1782
- "auth-function": () => e.canDelete(S)
1791
+ "auth-function": () => e.canDelete(w)
1783
1792
  }, {
1784
1793
  default: d(() => [
1785
- k(O, {
1794
+ k(U, {
1786
1795
  "data-testid": "action-entity-delete",
1787
1796
  "has-divider": "",
1788
1797
  "is-dangerous": "",
1789
- onClick: (G) => X(S)
1798
+ onClick: (G) => X(w)
1790
1799
  }, {
1791
1800
  default: d(() => [
1792
1801
  H(P(s(a)("actions.delete")), 1)
@@ -1802,29 +1811,29 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1802
1811
  k(s(Ht), {
1803
1812
  "action-pending": j.value,
1804
1813
  description: s(a)("delete.description"),
1805
- "entity-name": I.value && (I.value.name || I.value.id),
1806
- "entity-type": s(Oe).SNI,
1814
+ "entity-name": x.value && (x.value.name || x.value.id),
1815
+ "entity-type": s(Ae).SNI,
1807
1816
  error: L.value,
1808
1817
  "need-confirm": !1,
1809
1818
  title: s(a)("delete.title"),
1810
1819
  visible: W.value,
1811
- onCancel: re,
1812
- onProceed: oe
1820
+ onCancel: oe,
1821
+ onProceed: re
1813
1822
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
1814
1823
  ]);
1815
1824
  };
1816
1825
  }
1817
1826
  });
1818
- const Le = (e, i) => {
1827
+ const He = (e, i) => {
1819
1828
  const t = e.__vccOpts || e;
1820
- for (const [a, r] of i)
1821
- t[a] = r;
1829
+ for (const [a, o] of i)
1830
+ t[a] = o;
1822
1831
  return t;
1823
- }, ja = /* @__PURE__ */ Le(Ka, [["__scopeId", "data-v-363811ed"]]), Pa = { class: "kong-ui-entities-snis-form" }, Ma = { "data-testid": "no-search-results" }, Ea = {
1832
+ }, Va = /* @__PURE__ */ He($a, [["__scopeId", "data-v-363811ed"]]), Ka = { class: "kong-ui-entities-snis-form" }, Pa = { "data-testid": "no-search-results" }, Ea = {
1824
1833
  key: 2,
1825
1834
  class: "invalid-certificate-message",
1826
1835
  "data-testid": "invalid-certificate-message"
1827
- }, Fa = /* @__PURE__ */ Y({
1836
+ }, Ma = /* @__PURE__ */ Y({
1828
1837
  __name: "SniForm",
1829
1838
  props: {
1830
1839
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1842,10 +1851,10 @@ const Le = (e, i) => {
1842
1851
  },
1843
1852
  emits: ["update", "error", "loading"],
1844
1853
  setup(e, { emit: i }) {
1845
- var U;
1846
- const t = e, a = Be(), { i18n: { t: r } } = Ne.useI18n(), { getMessageFromError: o } = fa(), { axiosInstance: f } = je({
1847
- headers: (U = t.config) == null ? void 0 : U.requestHeaders
1848
- }), K = w(() => se.form[t.config.app].edit), g = w(() => t.sniId ? pe.Edit : pe.Create), y = w(() => t.config.certificateId && g.value === pe.Create ? t.config.certificateId : ""), n = Ce({
1854
+ var O;
1855
+ const t = e, a = Ue(), { i18n: { t: o } } = Oe.useI18n(), { getMessageFromError: r } = fa(), { axiosInstance: y } = De({
1856
+ headers: (O = t.config) == null ? void 0 : O.requestHeaders
1857
+ }), $ = S(() => se.form[t.config.app].edit), g = S(() => t.sniId ? pe.Edit : pe.Create), m = S(() => t.config.certificateId && g.value === pe.Create ? t.config.certificateId : ""), n = xe({
1849
1858
  fields: {
1850
1859
  name: "",
1851
1860
  tags: "",
@@ -1853,158 +1862,158 @@ const Le = (e, i) => {
1853
1862
  },
1854
1863
  isReadonly: !1,
1855
1864
  errorMessage: ""
1856
- }), v = Ce({
1865
+ }), h = xe({
1857
1866
  name: "",
1858
1867
  tags: "",
1859
1868
  certificate_id: ""
1860
- }), T = w(() => JSON.stringify(n.fields) !== JSON.stringify(v) && !!n.fields.name && !!(n.fields.certificate_id || y.value)), $ = (p) => {
1861
- var x, O;
1862
- n.fields.name = (p == null ? void 0 : p.name) || "", n.fields.tags = ((x = p == null ? void 0 : p.tags) == null ? void 0 : x.join(", ")) || "", n.fields.certificate_id = ((O = p == null ? void 0 : p.certificate) == null ? void 0 : O.id) || "", Object.assign(v, n.fields);
1863
- }, R = () => {
1869
+ }), C = S(() => JSON.stringify(n.fields) !== JSON.stringify(h) && !!n.fields.name && !!(n.fields.certificate_id || m.value)), K = (p) => {
1870
+ var T, U;
1871
+ n.fields.name = (p == null ? void 0 : p.name) || "", n.fields.tags = ((T = p == null ? void 0 : p.tags) == null ? void 0 : T.join(", ")) || "", n.fields.certificate_id = ((U = p == null ? void 0 : p.certificate) == null ? void 0 : U.id) || "", Object.assign(h, n.fields);
1872
+ }, M = () => {
1864
1873
  a.push(t.config.cancelRoute);
1865
- }, _ = w(() => {
1866
- var x, O;
1874
+ }, _ = S(() => {
1875
+ var T, U;
1867
1876
  let p = `${t.config.apiBaseUrl}${se.form[t.config.app].validate}`;
1868
- return t.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "") : t.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (O = t.config) != null && O.workspace ? `/${t.config.workspace}` : "")), p = p.replace(/{id}/gi, t.sniId), p;
1869
- }), l = w(() => {
1870
- var x, O;
1877
+ return t.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((T = t.config) == null ? void 0 : T.controlPlaneId) || "") : t.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (U = t.config) != null && U.workspace ? `/${t.config.workspace}` : "")), p = p.replace(/{id}/gi, t.sniId), p;
1878
+ }), l = S(() => {
1879
+ var T, U;
1871
1880
  let p = `${t.config.apiBaseUrl}${se.form[t.config.app][g.value]}`;
1872
- return t.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "") : t.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (O = t.config) != null && O.workspace ? `/${t.config.workspace}` : "")), p = p.replace(/{id}/gi, t.sniId), p;
1873
- }), m = async () => {
1874
- var p, x, O, Z, S, G, ce, we;
1881
+ return t.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((T = t.config) == null ? void 0 : T.controlPlaneId) || "") : t.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (U = t.config) != null && U.workspace ? `/${t.config.workspace}` : "")), p = p.replace(/{id}/gi, t.sniId), p;
1882
+ }), f = async () => {
1883
+ var p, T, U, Z, w, G, ce, we;
1875
1884
  try {
1876
1885
  n.isReadonly = !0;
1877
1886
  const ee = {
1878
1887
  name: n.fields.name,
1879
- tags: (x = (p = n.fields.tags.split(",")) == null ? void 0 : p.map((me) => String(me || "").trim())) == null ? void 0 : x.filter((me) => me !== ""),
1880
- certificate: { id: y.value || n.fields.certificate_id }
1888
+ tags: (T = (p = n.fields.tags.split(",")) == null ? void 0 : p.map((me) => String(me || "").trim())) == null ? void 0 : T.filter((me) => me !== ""),
1889
+ certificate: { id: m.value || n.fields.certificate_id }
1881
1890
  };
1882
1891
  let z;
1883
- await f.post(_.value, ee), g.value === "create" ? z = await f.post(l.value, ee) : g.value === "edit" && (z = ((O = t.config) == null ? void 0 : O.app) === "konnect" ? await f.put(l.value, ee) : await f.patch(l.value, ee)), n.fields.name = ((Z = z == null ? void 0 : z.data) == null ? void 0 : Z.name) || "", n.fields.tags = ((G = (S = z == null ? void 0 : z.data) == null ? void 0 : S.tags) == null ? void 0 : G.join(", ")) || "", n.fields.certificate_id = ((we = (ce = z == null ? void 0 : z.data) == null ? void 0 : ce.certificate) == null ? void 0 : we.id) || "", Object.assign(v, n.fields), i("update", z == null ? void 0 : z.data);
1892
+ await y.post(_.value, ee), g.value === "create" ? z = await y.post(l.value, ee) : g.value === "edit" && (z = ((U = t.config) == null ? void 0 : U.app) === "konnect" ? await y.put(l.value, ee) : await y.patch(l.value, ee)), n.fields.name = ((Z = z == null ? void 0 : z.data) == null ? void 0 : Z.name) || "", n.fields.tags = ((G = (w = z == null ? void 0 : z.data) == null ? void 0 : w.tags) == null ? void 0 : G.join(", ")) || "", n.fields.certificate_id = ((we = (ce = z == null ? void 0 : z.data) == null ? void 0 : ce.certificate) == null ? void 0 : we.id) || "", Object.assign(h, n.fields), i("update", z == null ? void 0 : z.data);
1884
1893
  } catch (ee) {
1885
- n.errorMessage = o(ee), i("error", ee);
1894
+ n.errorMessage = r(ee), i("error", ee);
1886
1895
  } finally {
1887
1896
  n.isReadonly = !1;
1888
1897
  }
1889
1898
  }, {
1890
1899
  debouncedQueryChange: u,
1891
1900
  loading: c,
1892
- allRecords: E,
1893
- error: q,
1901
+ allRecords: F,
1902
+ error: B,
1894
1903
  validationError: A,
1895
- loadItems: I,
1904
+ loadItems: x,
1896
1905
  results: W
1897
- } = ma(t.config, se.form[t.config.app].certificates), j = C(!0), L = (p) => {
1906
+ } = ma(t.config, se.form[t.config.app].certificates), j = I(!0), L = (p) => {
1898
1907
  j.value = !p, u(p);
1899
- }, D = w(() => q.value ? r("errors.certificates.fetch") : ""), X = w(() => A.value ? r("errors.certificates.invalid") : ""), re = C(0), oe = w(() => E.value === void 0), ne = C(/* @__PURE__ */ new Set()), b = w(() => Array.from(ne.value).map((x) => ({
1900
- label: x,
1901
- value: x,
1902
- selected: n.fields.certificate_id === x
1903
- }))), B = (p) => {
1908
+ }, D = S(() => B.value ? o("errors.certificates.fetch") : ""), X = S(() => A.value ? o("errors.certificates.invalid") : ""), oe = I(0), re = S(() => F.value === void 0), ne = I(/* @__PURE__ */ new Set()), b = S(() => Array.from(ne.value).map((T) => ({
1909
+ label: T,
1910
+ value: T,
1911
+ selected: n.fields.certificate_id === T
1912
+ }))), R = (p) => {
1904
1913
  ne.value.clear();
1905
- let x;
1906
- for (x of p)
1907
- ne.value.add(x.id);
1914
+ let T;
1915
+ for (T of p)
1916
+ ne.value.add(T.id);
1908
1917
  };
1909
1918
  return ie(W, (p) => {
1910
- B(p);
1919
+ R(p);
1911
1920
  }, { immediate: !0, deep: !0 }), ie(b, () => {
1912
- re.value++;
1921
+ oe.value++;
1913
1922
  }, { immediate: !0, deep: !0 }), he(async () => {
1914
- await I();
1915
- }), (p, x) => {
1916
- const O = M("KInput"), Z = M("KSelect");
1917
- return h(), N("div", Pa, [
1923
+ await x();
1924
+ }), (p, T) => {
1925
+ const U = E("KInput"), Z = E("KSelect");
1926
+ return v(), N("div", Ka, [
1918
1927
  k(s(Ft), {
1919
- "can-submit": T.value,
1928
+ "can-submit": C.value,
1920
1929
  config: e.config,
1921
1930
  "edit-id": e.sniId,
1922
1931
  "error-message": n.errorMessage || D.value,
1923
- "fetch-url": K.value,
1932
+ "fetch-url": $.value,
1924
1933
  "is-readonly": n.isReadonly,
1925
- onCancel: R,
1926
- "onFetch:error": x[3] || (x[3] = (S) => p.$emit("error", S)),
1927
- "onFetch:success": $,
1928
- onLoading: x[4] || (x[4] = (S) => p.$emit("loading", S)),
1929
- onSubmit: m
1934
+ onCancel: M,
1935
+ "onFetch:error": T[3] || (T[3] = (w) => p.$emit("error", w)),
1936
+ "onFetch:success": K,
1937
+ onLoading: T[4] || (T[4] = (w) => p.$emit("loading", w)),
1938
+ onSubmit: f
1930
1939
  }, {
1931
1940
  default: d(() => [
1932
- k(s(Me), {
1933
- description: s(r)("form.sections.general.description"),
1934
- title: s(r)("form.sections.general.title")
1941
+ k(s(Fe), {
1942
+ description: s(o)("form.sections.general.description"),
1943
+ title: s(o)("form.sections.general.title")
1935
1944
  }, {
1936
1945
  default: d(() => [
1937
- k(O, {
1946
+ k(U, {
1938
1947
  modelValue: n.fields.name,
1939
- "onUpdate:modelValue": x[0] || (x[0] = (S) => n.fields.name = S),
1948
+ "onUpdate:modelValue": T[0] || (T[0] = (w) => n.fields.name = w),
1940
1949
  modelModifiers: { trim: !0 },
1941
1950
  autocomplete: "off",
1942
1951
  "data-testid": "sni-form-name",
1943
- label: s(r)("form.fields.name.label"),
1944
- placeholder: s(r)("form.fields.name.placeholder"),
1952
+ label: s(o)("form.fields.name.label"),
1953
+ placeholder: s(o)("form.fields.name.placeholder"),
1945
1954
  readonly: n.isReadonly,
1946
1955
  required: "",
1947
1956
  type: "text"
1948
1957
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
1949
- k(O, {
1958
+ k(U, {
1950
1959
  modelValue: n.fields.tags,
1951
- "onUpdate:modelValue": x[1] || (x[1] = (S) => n.fields.tags = S),
1960
+ "onUpdate:modelValue": T[1] || (T[1] = (w) => n.fields.tags = w),
1952
1961
  modelModifiers: { trim: !0 },
1953
1962
  autocomplete: "off",
1954
1963
  "data-testid": "sni-form-tags",
1955
- help: s(r)("form.fields.tags.help"),
1956
- label: s(r)("form.fields.tags.label"),
1957
- "label-attributes": { help: s(r)("form.fields.tags.tooltip") },
1958
- placeholder: s(r)("form.fields.tags.placeholder"),
1964
+ help: s(o)("form.fields.tags.help"),
1965
+ label: s(o)("form.fields.tags.label"),
1966
+ "label-attributes": { help: s(o)("form.fields.tags.tooltip") },
1967
+ placeholder: s(o)("form.fields.tags.placeholder"),
1959
1968
  readonly: n.isReadonly,
1960
1969
  type: "text"
1961
1970
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
1962
1971
  ]),
1963
1972
  _: 1
1964
1973
  }, 8, ["description", "title"]),
1965
- k(s(Me), {
1966
- description: s(r)("form.sections.certificate.description"),
1974
+ k(s(Fe), {
1975
+ description: s(o)("form.sections.certificate.description"),
1967
1976
  "has-divider": "",
1968
- title: s(r)("form.sections.certificate.title")
1977
+ title: s(o)("form.sections.certificate.title")
1969
1978
  }, {
1970
1979
  default: d(() => [
1971
- y.value ? (h(), V(O, {
1980
+ m.value ? (v(), V(U, {
1972
1981
  key: 0,
1973
1982
  "data-testid": "sni-form-certificate-id",
1974
- label: s(r)("form.fields.certificate_id.label"),
1975
- "model-value": y.value,
1983
+ label: s(o)("form.fields.certificate_id.label"),
1984
+ "model-value": m.value,
1976
1985
  readonly: "",
1977
1986
  required: "",
1978
1987
  width: "100%"
1979
- }, null, 8, ["label", "model-value"])) : (h(), V(Z, {
1988
+ }, null, 8, ["label", "model-value"])) : (v(), V(Z, {
1980
1989
  key: 1,
1981
1990
  modelValue: n.fields.certificate_id,
1982
- "onUpdate:modelValue": x[2] || (x[2] = (S) => n.fields.certificate_id = S),
1991
+ "onUpdate:modelValue": T[2] || (T[2] = (w) => n.fields.certificate_id = w),
1983
1992
  appearance: "select",
1984
1993
  autosuggest: "",
1985
1994
  class: ye({ "k-select-placeholder": j.value }),
1986
1995
  clearable: "",
1987
1996
  "data-testid": "sni-form-certificate-id",
1988
- "dropdown-footer-text": oe.value ? s(r)("form.fields.certificate_id.footer") : void 0,
1997
+ "dropdown-footer-text": re.value ? s(o)("form.fields.certificate_id.footer") : void 0,
1989
1998
  "enable-filtering": "",
1990
1999
  items: b.value,
1991
- label: s(r)("form.fields.certificate_id.label"),
2000
+ label: s(o)("form.fields.certificate_id.label"),
1992
2001
  loading: s(c),
1993
- placeholder: s(r)("form.fields.certificate_id.placeholder"),
2002
+ placeholder: s(o)("form.fields.certificate_id.placeholder"),
1994
2003
  readonly: n.isReadonly,
1995
2004
  required: "",
1996
2005
  width: "100%",
1997
2006
  onQueryChange: L
1998
2007
  }, {
1999
2008
  loading: d(() => [
2000
- F("div", null, P(s(r)("actions.loading")), 1)
2009
+ q("div", null, P(s(o)("actions.loading")), 1)
2001
2010
  ]),
2002
2011
  empty: d(() => [
2003
- F("div", Ma, P(s(r)("search.no_results")), 1)
2012
+ q("div", Pa, P(s(o)("search.no_results")), 1)
2004
2013
  ]),
2005
2014
  _: 1
2006
2015
  }, 8, ["modelValue", "class", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
2007
- X.value ? (h(), N("p", Ea, P(X.value), 1)) : Q("", !0)
2016
+ X.value ? (v(), N("p", Ea, P(X.value), 1)) : Q("", !0)
2008
2017
  ]),
2009
2018
  _: 1
2010
2019
  }, 8, ["description", "title"])
@@ -2015,8 +2024,8 @@ const Le = (e, i) => {
2015
2024
  };
2016
2025
  }
2017
2026
  });
2018
- const La = /* @__PURE__ */ Le(Fa, [["__scopeId", "data-v-4d04a730"]]);
2027
+ const ja = /* @__PURE__ */ He(Ma, [["__scopeId", "data-v-4d04a730"]]);
2019
2028
  export {
2020
- La as SniForm,
2021
- ja as SniList
2029
+ ja as SniForm,
2030
+ Va as SniList
2022
2031
  };