@kong-ui-public/entities-snis 1.1.17-pr.790.b9b7a5bf.0 → 1.1.17

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.
@@ -82,7 +82,7 @@ const Ye = {
82
82
  errors: tt,
83
83
  copy: at
84
84
  };
85
- function ot() {
85
+ function rt() {
86
86
  const e = ke("en-us", it);
87
87
  return {
88
88
  i18n: e,
@@ -91,11 +91,11 @@ function ot() {
91
91
  };
92
92
  }
93
93
  const Ne = {
94
- useI18n: ot
94
+ useI18n: rt
95
95
  }, se = {
96
96
  list: {
97
97
  konnect: {
98
- all: "/api/control_planes/{controlPlaneId}/snis"
98
+ all: "/api/runtime_groups/{controlPlaneId}/snis"
99
99
  },
100
100
  kongManager: {
101
101
  all: "/{workspace}/snis"
@@ -103,10 +103,10 @@ const Ne = {
103
103
  },
104
104
  form: {
105
105
  konnect: {
106
- create: "/api/control_planes/{controlPlaneId}/snis",
107
- edit: "/api/control_planes/{controlPlaneId}/snis/{id}",
108
- validate: "/api/control_planes/{controlPlaneId}/v1/schemas/json/sni/validate",
109
- certificates: "/api/control_planes/{controlPlaneId}/certificates"
106
+ create: "/api/runtime_groups/{controlPlaneId}/snis",
107
+ edit: "/api/runtime_groups/{controlPlaneId}/snis/{id}",
108
+ validate: "/api/runtime_groups/{controlPlaneId}/v1/schemas/json/sni/validate",
109
+ certificates: "/api/runtime_groups/{controlPlaneId}/certificates"
110
110
  },
111
111
  kongManager: {
112
112
  create: "/{workspace}/snis",
@@ -126,7 +126,7 @@ function _e(e = {}) {
126
126
  })
127
127
  };
128
128
  }
129
- function nt() {
129
+ function ot() {
130
130
  return {
131
131
  debounce: (e, i) => {
132
132
  let t;
@@ -138,7 +138,7 @@ function nt() {
138
138
  }
139
139
  };
140
140
  }
141
- const ge = "khcp-user-table-preferences", rt = {
141
+ const ge = "khcp-user-table-preferences", nt = {
142
142
  pageSize: 30,
143
143
  sortColumnKey: void 0,
144
144
  sortColumnOrder: void 0
@@ -159,15 +159,15 @@ function lt() {
159
159
  return {
160
160
  setTablePreferences: (t, a) => {
161
161
  try {
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);
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);
166
166
  }
167
167
  },
168
168
  getTablePreferences: (t) => {
169
169
  const a = i();
170
- return (a == null ? void 0 : a.get(t)) || void 0 || rt;
170
+ return (a == null ? void 0 : a.get(t)) || void 0 || nt;
171
171
  },
172
172
  deleteAllTablePreferences: () => {
173
173
  localStorage.removeItem(ge);
@@ -276,20 +276,20 @@ function vt(e, i, t, a = {
276
276
  searchKeys: ["id"]
277
277
  }) {
278
278
  t || (t = "100");
279
- const { axiosInstance: o } = _e({
279
+ const { axiosInstance: r } = _e({
280
280
  headers: e.requestHeaders
281
- }), { i18n: { t: n } } = Se(), { debounce: f } = nt(), K = f(async (u) => {
281
+ }), { i18n: { t: o } } = Se(), { debounce: f } = ot(), K = f(async (u) => {
282
282
  await m(u);
283
- }, 200), g = C(!1), y = C(""), r = C(""), v = C([]), T = C(void 0), $ = s(i);
283
+ }, 200), g = C(!1), y = C(""), n = C(""), v = C([]), T = C(void 0), $ = s(i);
284
284
  let R = `${e.apiBaseUrl}${$}`;
285
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}` : ""));
286
286
  const _ = async () => {
287
287
  try {
288
288
  g.value = !0;
289
- const { data: u } = await o.get(`${R}?size=${t}`);
289
+ const { data: u } = await r.get(`${R}?size=${t}`);
290
290
  u != null && u.next || (T.value = a.fetchedItemsKey in u ? u[a.fetchedItemsKey] : []), v.value = a.fetchedItemsKey in u ? u[a.fetchedItemsKey] : [];
291
291
  } catch {
292
- v.value = [], y.value = n("debouncedFilter.errors.fetch");
292
+ v.value = [], y.value = o("debouncedFilter.errors.fetch");
293
293
  } finally {
294
294
  g.value = !1;
295
295
  }
@@ -298,18 +298,18 @@ function vt(e, i, t, a = {
298
298
  if (l.value !== u)
299
299
  if (l.value = u || "", T.value === void 0)
300
300
  try {
301
- g.value = !0, y.value = "", r.value = "";
301
+ g.value = !0, y.value = "", n.value = "";
302
302
  let q = R + "";
303
303
  u && (q += `/${u}`);
304
- const { data: A } = await o.get(`${q}?size=${t}`);
304
+ const { data: A } = await r.get(`${q}?size=${t}`);
305
305
  a.fetchedItemsKey in A ? v.value = A[a.fetchedItemsKey] : A != null && A.id ? v.value = [A] : v.value = [];
306
306
  } catch (q) {
307
- ((c = q == null ? void 0 : q.response) == null ? void 0 : c.status) === 404 ? r.value = n("debouncedFilter.errors.invalid") : (v.value = [], y.value = n("debouncedFilter.errors.fetch"));
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"));
308
308
  } finally {
309
309
  g.value = !1;
310
310
  }
311
311
  else
312
- g.value = !0, r.value = "", u ? (v.value = (E = T.value) == null ? void 0 : E.filter((q) => {
312
+ g.value = !0, n.value = "", u ? (v.value = (E = T.value) == null ? void 0 : E.filter((q) => {
313
313
  var A;
314
314
  let I = !1;
315
315
  for (const W of a.searchKeys) {
@@ -317,12 +317,12 @@ function vt(e, i, t, a = {
317
317
  j != null && j.includes(u.toLowerCase()) && (I = !0);
318
318
  }
319
319
  return I;
320
- }), (!v.value || !v.value.length) && (r.value = n("debouncedFilter.errors.invalid"))) : v.value = T.value, g.value = !1;
320
+ }), (!v.value || !v.value.length) && (n.value = o("debouncedFilter.errors.invalid"))) : v.value = T.value, g.value = !1;
321
321
  };
322
322
  return {
323
323
  loading: g,
324
324
  error: y,
325
- validationError: r,
325
+ validationError: n,
326
326
  results: v,
327
327
  allRecords: T,
328
328
  loadItems: _,
@@ -333,66 +333,66 @@ function ht(e, i) {
333
333
  const t = s(i), a = w(
334
334
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
335
335
  );
336
- return a.value.search = "", (o) => `${a.value.href}/${o}`;
336
+ return a.value.search = "", (r) => `${a.value.href}/${r}`;
337
337
  }
338
338
  function bt() {
339
339
  const { i18n: { t: e } } = Se();
340
340
  return {
341
341
  getMessageFromError: (i) => {
342
- var t, a, o;
342
+ var t, a, r;
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((n) => {
349
+ return i.response.data.details.map((o) => {
350
350
  let f = e("errors.unexpected");
351
- return n.messages && typeof n.messages == "object" && n.messages.length && (f = n.messages.join(", ")), n.field ? `${n.field} - ${f}` : f;
351
+ return o.messages && typeof o.messages == "object" && o.messages.length && (f = o.messages.join(", ")), o.field ? `${o.field} - ${f}` : f;
352
352
  }).join("; ");
353
353
  if (i.response.data.message) {
354
- const { message: n } = i.response.data;
355
- return Array.isArray(n) ? (o = n[0]) != null && o.constraints ? Object.values(n[0].constraints)[0] : n[0] : n;
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;
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((n) => `${n} ${i.response.data[n]}`).join(", ");
360
+ return Object.keys(i.response.data).map((o) => `${o} ${i.response.data[o]}`).join(", ");
361
361
  }
362
362
  return i.message || e("errors.unexpected");
363
363
  }
364
364
  };
365
365
  }
366
366
  function Ue(e, i) {
367
- const t = C(s(e)), a = C(s(i)), o = w(
367
+ const t = C(s(e)), a = C(s(i)), r = w(
368
368
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
369
- ), n = w(
369
+ ), o = w(
370
370
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
371
371
  );
372
372
  return (f) => {
373
- const { page: K, pageSize: g, offset: y, sortColumnKey: r, sortColumnOrder: v, query: T } = f;
373
+ const { page: K, pageSize: g, offset: y, sortColumnKey: n, sortColumnOrder: v, query: T } = f;
374
374
  try {
375
- let $ = new URL(n.value.href);
376
- return o.value && T ? ($.search = "", $ = new URL(`${$.href}/${T}/`)) : (o.value || new URLSearchParams(T).forEach((R, _) => {
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
377
  $.searchParams.append(_, R);
378
- }), r && $.searchParams.append("sort_by", r), v === "desc" && $.searchParams.append("sort_desc", "1"), $.searchParams.append("size", String(g))), y && K !== 1 && $.searchParams.append("offset", String(y)), $.href;
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
379
  } catch ($) {
380
380
  return console.error("RouteList(fetcher)", $), a.value;
381
381
  }
382
382
  };
383
383
  }
384
384
  function kt(e, i, t = "data") {
385
- const a = s(i), { axiosInstance: o } = _e({
385
+ const a = s(i), { axiosInstance: r } = _e({
386
386
  headers: e.requestHeaders
387
- }), n = Ue(e, a), f = C({
387
+ }), o = Ue(e, a), f = C({
388
388
  status: te.Idle
389
389
  });
390
390
  return { fetcher: async (K) => {
391
391
  try {
392
392
  f.value = { status: te.Loading };
393
- const g = n(K), { data: y } = await o.get(g), r = t && t.replace(/[^\w-_]/gi, "");
393
+ const g = o(K), { data: y } = await r.get(g), n = t && t.replace(/[^\w-_]/gi, "");
394
394
  let v;
395
- y[r] && Array.isArray(y[r]) ? v = y[r] : v = Object.keys(y).length ? [y] : [];
395
+ y[n] && Array.isArray(y[n]) ? v = y[n] : v = Object.keys(y).length ? [y] : [];
396
396
  const T = {
397
397
  data: v,
398
398
  total: v.length,
@@ -451,8 +451,8 @@ 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), o = t.pop(), n = a.pop(), f = $e(t, a);
455
- return f !== 0 ? f : o && n ? $e(o.split("."), n.split(".")) : o || n ? o ? -1 : 1 : 0;
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
456
  }, Ke = (e, i, t) => {
457
457
  It(t);
458
458
  const a = Ct(e, i);
@@ -474,14 +474,14 @@ function Tt(e) {
474
474
  const { gatewayInfo: i, supportedRange: t } = e;
475
475
  if (!i)
476
476
  return !0;
477
- const { edition: a, version: o } = i;
478
- if (!xt(o))
477
+ const { edition: a, version: r } = i;
478
+ if (!xt(r))
479
479
  return console.error("Invalid version"), !1;
480
- const n = t[a];
481
- if (!n)
480
+ const o = t[a];
481
+ if (!o)
482
482
  return !1;
483
- const [f, K] = n;
484
- return !(f && Ke(o, f, "<") || K && Ke(o, K, ">"));
483
+ const [f, K] = o;
484
+ return !(f && Ke(r, f, "<") || K && Ke(r, K, ">"));
485
485
  }
486
486
  const ae = {
487
487
  useAxios: _e,
@@ -495,8 +495,8 @@ const ae = {
495
495
  useGatewayFeatureSupported: Tt
496
496
  }, le = (e, i) => {
497
497
  const t = e.__vccOpts || e;
498
- for (const [a, o] of i)
499
- t[a] = o;
498
+ for (const [a, r] of i)
499
+ t[a] = r;
500
500
  return t;
501
501
  }, $t = "#0044f4", Kt = "#3a3f51", Pt = ["onReset", "onSubmit"], Mt = {
502
502
  class: "form-actions",
@@ -522,7 +522,7 @@ const ae = {
522
522
  * the endpoints file.
523
523
  * Required if `editId` is specified.
524
524
  *
525
- * ex. `/api/control_planes/{controlPlaneId}/snis/{id}`
525
+ * ex. `/api/runtime_groups/{controlPlaneId}/snis/{id}`
526
526
  */
527
527
  fetchUrl: {
528
528
  type: String,
@@ -551,16 +551,16 @@ 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, o = Be(), { i18n: { t: n } } = ae.useI18n(), { getMessageFromError: f } = ae.useErrors(), { axiosInstance: K } = ae.useAxios({
554
+ const a = e, r = Be(), { i18n: { t: o } } = ae.useI18n(), { getMessageFromError: f } = ae.useErrors(), { axiosInstance: K } = ae.useAxios({
555
555
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
556
- }), g = C(!1), y = C(!1), r = C(""), v = w(() => a.canSubmit === !1 || a.isReadonly), T = w(() => {
556
+ }), g = C(!1), y = C(!1), n = C(""), v = w(() => a.canSubmit === !1 || a.isReadonly), T = w(() => {
557
557
  var l, m;
558
558
  if (!a.editId)
559
559
  return "";
560
560
  let u = `${a.config.apiBaseUrl}${a.fetchUrl}`;
561
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
562
  }), $ = () => {
563
- a.config.cancelRoute ? o.push(a.config.cancelRoute) : R();
563
+ a.config.cancelRoute ? r.push(a.config.cancelRoute) : R();
564
564
  }, R = () => {
565
565
  i("cancel");
566
566
  }, _ = () => {
@@ -576,7 +576,7 @@ const ae = {
576
576
  i("fetch:success", l);
577
577
  } catch (l) {
578
578
  const m = f(l);
579
- r.value = m.startsWith("code") ? n("baseForm.errors.edit") : m, y.value = !0, i("fetch:error", l);
579
+ n.value = m.startsWith("code") ? o("baseForm.errors.edit") : m, y.value = !0, i("fetch:error", l);
580
580
  } finally {
581
581
  g.value = !1;
582
582
  }
@@ -589,13 +589,13 @@ const ae = {
589
589
  type: "form"
590
590
  })) : y.value ? (h(), V(c, {
591
591
  key: 1,
592
- "cta-text": s(n)("baseForm.actions.back"),
592
+ "cta-text": s(o)("baseForm.actions.back"),
593
593
  "data-testid": "form-fetch-error",
594
594
  "handle-click": $,
595
595
  "is-error": !0
596
596
  }, {
597
597
  message: d(() => [
598
- F("h3", null, P(r.value), 1)
598
+ F("h3", null, P(n.value), 1)
599
599
  ]),
600
600
  _: 1
601
601
  }, 8, ["cta-text"])) : (h(), N("form", {
@@ -620,7 +620,7 @@ const ae = {
620
620
  type: "reset"
621
621
  }, {
622
622
  default: d(() => [
623
- H(P(s(n)("baseForm.actions.cancel")), 1)
623
+ H(P(s(o)("baseForm.actions.cancel")), 1)
624
624
  ]),
625
625
  _: 1
626
626
  }, 8, ["disabled"]),
@@ -631,7 +631,7 @@ const ae = {
631
631
  type: "submit"
632
632
  }, {
633
633
  default: d(() => [
634
- H(P(s(n)("baseForm.actions.save")), 1)
634
+ H(P(s(o)("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-bffcae34"]]), Rt = { key: 0 }, qt = /* @__PURE__ */ Y({
646
+ }), Ft = /* @__PURE__ */ le(Et, [["__scopeId", "data-v-2286e5f2"]]), Rt = { key: 0 }, qt = /* @__PURE__ */ Y({
647
647
  __name: "EntityBaseTableCell",
648
648
  props: {
649
649
  keyName: {
@@ -662,32 +662,32 @@ const ae = {
662
662
  }), a = w(() => {
663
663
  var _;
664
664
  return ((_ = t.value) == null ? void 0 : _.querySelector('[role="button"]')) || null;
665
- }), o = w(() => {
665
+ }), r = w(() => {
666
666
  var _, l;
667
667
  const m = (_ = i.rowEl) == null ? void 0 : _.querySelectorAll("td");
668
668
  return m ? ((l = m[0]) == null ? void 0 : l.getAttribute("data-testid")) === i.keyName : !1;
669
669
  });
670
- let n;
670
+ let o;
671
671
  const f = () => {
672
- n && (n.disconnect(), n = void 0);
672
+ o && (o.disconnect(), o = void 0);
673
673
  }, K = () => {
674
674
  var _, l, m;
675
- y.value = ((_ = a.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, r.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), r = C(0), v = C(""), T = w(() => [a.value, t.value]), $ = ie(
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
677
  T,
678
678
  (_) => {
679
- if (o.value && (f(), "ResizeObserver" in window && window)) {
680
- n = new ResizeObserver((l) => {
679
+ if (r.value && (f(), "ResizeObserver" in window && window)) {
680
+ o = new ResizeObserver((l) => {
681
681
  window.requestAnimationFrame(() => {
682
682
  !Array.isArray(l) || !l.length || K();
683
683
  });
684
684
  });
685
685
  for (const l of _)
686
- l && n.observe(l);
686
+ l && o.observe(l);
687
687
  }
688
688
  },
689
689
  { immediate: !0, flush: "post", deep: !0 }
690
- ), R = w(() => o.value ? y.value > r.value : !1);
690
+ ), R = w(() => r.value ? y.value > n.value : !1);
691
691
  return He(() => {
692
692
  K();
693
693
  }), ze(() => {
@@ -699,7 +699,7 @@ const ae = {
699
699
  ref: g,
700
700
  class: "content-wrapper"
701
701
  }, [
702
- o.value ? (h(), N("span", Rt, [
702
+ r.value ? (h(), N("span", Rt, [
703
703
  k(m, {
704
704
  disabled: !R.value,
705
705
  label: v.value,
@@ -822,7 +822,7 @@ 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(), o = w(() => t.cacheIdentifier || t.preferencesStorageKey), n = (c) => c.hasData || !!t.query, f = w(() => {
825
+ const t = e, { i18n: { t: a } } = ae.useI18n(), r = w(() => t.cacheIdentifier || t.preferencesStorageKey), o = (c) => c.hasData || !!t.query, f = w(() => {
826
826
  const c = [];
827
827
  return Object.keys(t.tableHeaders).forEach((E) => {
828
828
  const q = t.tableHeaders[E];
@@ -842,7 +842,7 @@ const ae = {
842
842
  }), g = C({}), y = (c) => {
843
843
  var E;
844
844
  return (E = g.value) == null ? void 0 : E.$el.querySelector(`[data-rowid="${c.id}"]`);
845
- }, r = (c) => {
845
+ }, n = (c) => {
846
846
  const E = {
847
847
  "data-testid": c.headerKey,
848
848
  ...t.cellAttributes(c)
@@ -879,8 +879,8 @@ const ae = {
879
879
  k(W, {
880
880
  ref_key: "tableRefs",
881
881
  ref: g,
882
- "cache-identifier": o.value,
883
- "cell-attrs": r,
882
+ "cache-identifier": r.value,
883
+ "cell-attrs": n,
884
884
  "disable-pagination-page-jump": e.disablePaginationPageJump,
885
885
  "disable-sorting": e.disableSorting,
886
886
  "empty-state-action-button-icon": e.query ? "" : "plus",
@@ -914,7 +914,7 @@ const ae = {
914
914
  J(c.$slots, "toolbar-button", {}, void 0, !0)
915
915
  ])) : Q("", !0)
916
916
  ], 512), [
917
- [ue, n(L)]
917
+ [ue, o(L)]
918
918
  ])
919
919
  ]),
920
920
  actions: d(({ row: L, rowKey: D, rowValue: X }) => [
@@ -957,7 +957,7 @@ const ae = {
957
957
  }, [
958
958
  be(e.tableHeaders, (L, D) => ({
959
959
  name: D,
960
- fn: d(({ row: X, rowKey: oe, rowValue: ne }) => [
960
+ fn: d(({ row: X, rowKey: re, rowValue: oe }) => [
961
961
  k(Bt, {
962
962
  "key-name": String(D),
963
963
  "row-el": y(X)
@@ -965,10 +965,10 @@ const ae = {
965
965
  default: d(() => [
966
966
  J(c.$slots, D, {
967
967
  row: X,
968
- rowKey: oe,
969
- rowValue: ne
968
+ rowKey: re,
969
+ rowValue: oe
970
970
  }, () => [
971
- H(P(ne), 1)
971
+ H(P(oe), 1)
972
972
  ], !0)
973
973
  ]),
974
974
  _: 2
@@ -1026,22 +1026,22 @@ const ae = {
1026
1026
  },
1027
1027
  emits: ["cancel", "proceed"],
1028
1028
  setup(e, { emit: i }) {
1029
- const t = e, { i18nT: a } = ae.useI18n(), o = w(() => t.needConfirm ? t.entityName : ""), n = () => {
1029
+ const t = e, { i18nT: a } = ae.useI18n(), r = w(() => t.needConfirm ? t.entityName : ""), o = () => {
1030
1030
  i("cancel");
1031
1031
  }, f = () => {
1032
1032
  i("proceed");
1033
1033
  };
1034
1034
  return (K, g) => {
1035
- const y = M("KAlert"), r = M("KPrompt");
1036
- return h(), V(r, {
1035
+ const y = M("KAlert"), n = M("KPrompt");
1036
+ return h(), 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": o.value,
1040
+ "confirmation-text": r.value,
1041
1041
  "is-visible": e.visible,
1042
1042
  title: e.title,
1043
1043
  type: "danger",
1044
- onCanceled: n,
1044
+ onCanceled: o,
1045
1045
  onProceed: f
1046
1046
  }, {
1047
1047
  "body-content": d(() => [
@@ -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" }, oa = /* @__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" }, ra = /* @__PURE__ */ Y({
1127
1127
  __name: "EntityFilter",
1128
1128
  props: {
1129
1129
  // filter config, either exact match or fuzzy match
@@ -1143,7 +1143,7 @@ const ae = {
1143
1143
  },
1144
1144
  emits: ["update:modelValue"],
1145
1145
  setup(e, { emit: i }) {
1146
- const t = e, { i18n: { t: a } } = ae.useI18n(), o = C(!1), n = C({}), f = w(() => {
1146
+ const t = e, { i18n: { t: a } } = ae.useI18n(), r = C(!1), o = C({}), f = w(() => {
1147
1147
  const l = [];
1148
1148
  return new URLSearchParams(t.modelValue).forEach((m, u) => {
1149
1149
  m !== "" && l.push(u);
@@ -1156,15 +1156,15 @@ const ae = {
1156
1156
  }));
1157
1157
  });
1158
1158
  ie(() => t.modelValue, (l) => {
1159
- n.value = {}, new URLSearchParams(l).forEach((m, u) => {
1160
- n.value[u] = m;
1159
+ o.value = {}, new URLSearchParams(l).forEach((m, u) => {
1160
+ o.value[u] = m;
1161
1161
  });
1162
1162
  });
1163
1163
  const g = () => {
1164
- o.value = !o.value;
1164
+ r.value = !r.value;
1165
1165
  }, y = (l) => {
1166
1166
  i("update:modelValue", l);
1167
- }, r = (l) => `filter-${l}`, v = (l) => {
1167
+ }, n = (l) => `filter-${l}`, v = (l) => {
1168
1168
  var m, u;
1169
1169
  return (((u = (m = t.config.schema) == null ? void 0 : m[l]) == null ? void 0 : u.values) ?? []).map((c) => ({
1170
1170
  value: c,
@@ -1174,15 +1174,15 @@ const ae = {
1174
1174
  var m, u;
1175
1175
  return ((u = (m = t.config.schema) == null ? void 0 : m[l]) == null ? void 0 : u.type) ?? "text";
1176
1176
  }, $ = (l) => {
1177
- n.value = {
1178
- ...n.value,
1177
+ o.value = {
1178
+ ...o.value,
1179
1179
  [l]: ""
1180
1180
  }, _();
1181
1181
  }, R = () => {
1182
- n.value = {}, _(!0);
1182
+ o.value = {}, _(!0);
1183
1183
  }, _ = (l = !1) => {
1184
- const m = Object.keys(n.value).reduce((u, c) => (n.value[c] && (u[c] = `${n.value[c]}`), u), {});
1185
- l && (o.value = !1), i("update:modelValue", new URLSearchParams(m).toString());
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());
1186
1186
  };
1187
1187
  return (l, m) => {
1188
1188
  const u = M("KInput"), c = M("KButton"), E = M("KSelect"), q = M("KMenuItem"), A = M("KMenu");
@@ -1215,7 +1215,7 @@ const ae = {
1215
1215
  class: "kong-ui-entity-filter-backdrop",
1216
1216
  onClick: g
1217
1217
  }, null, 512), [
1218
- [ue, o.value]
1218
+ [ue, r.value]
1219
1219
  ]),
1220
1220
  de(k(A, { class: "kong-ui-entity-filter-menu" }, {
1221
1221
  body: d(() => [
@@ -1239,21 +1239,21 @@ const ae = {
1239
1239
  F("div", ta, [
1240
1240
  F("label", {
1241
1241
  class: "menu-item-label",
1242
- for: r(I.value)
1242
+ for: n(I.value)
1243
1243
  }, P(s(a)("filter.fieldLabel")), 9, aa),
1244
1244
  ((L = (j = e.config.schema) == null ? void 0 : j[I.value]) == null ? void 0 : L.type) === "select" ? (h(), V(E, {
1245
1245
  key: 0,
1246
- id: r(I.value),
1247
- modelValue: n.value[I.value],
1248
- "onUpdate:modelValue": (D) => n.value[I.value] = D,
1246
+ id: n(I.value),
1247
+ modelValue: o.value[I.value],
1248
+ "onUpdate:modelValue": (D) => o.value[I.value] = D,
1249
1249
  appearance: "select",
1250
1250
  items: v(I.value),
1251
1251
  placeholder: s(a)("filter.selectPlaceholder")
1252
1252
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (h(), V(u, {
1253
1253
  key: 1,
1254
- id: r(I.value),
1255
- modelValue: n.value[I.value],
1256
- "onUpdate:modelValue": (D) => n.value[I.value] = D,
1254
+ id: n(I.value),
1255
+ modelValue: o.value[I.value],
1256
+ "onUpdate:modelValue": (D) => o.value[I.value] = D,
1257
1257
  autocomplete: "off",
1258
1258
  placeholder: s(a)("filter.inputPlaceholder"),
1259
1259
  size: "small",
@@ -1299,12 +1299,12 @@ const ae = {
1299
1299
  ]),
1300
1300
  _: 1
1301
1301
  }, 512), [
1302
- [ue, o.value]
1302
+ [ue, r.value]
1303
1303
  ])
1304
1304
  ]));
1305
1305
  };
1306
1306
  }
1307
- }), na = /* @__PURE__ */ le(oa, [["__scopeId", "data-v-745f38c0"]]), ve = /* @__PURE__ */ Y({
1307
+ }), oa = /* @__PURE__ */ le(ra, [["__scopeId", "data-v-745f38c0"]]), ve = /* @__PURE__ */ Y({
1308
1308
  __name: "PermissionsWrapper",
1309
1309
  props: {
1310
1310
  /**
@@ -1329,12 +1329,12 @@ const ae = {
1329
1329
  const i = e, t = C(void 0), a = w(() => 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 }), (o, n) => a.value ? J(o.$slots, "default", {
1332
+ }, { immediate: !0 }), (r, o) => a.value ? J(r.$slots, "default", {
1333
1333
  key: 0,
1334
1334
  isAllowed: t.value
1335
1335
  }) : Q("", !0);
1336
1336
  }
1337
- }), ra = { class: "form-section-wrapper" }, la = {
1337
+ }), na = { class: "form-section-wrapper" }, la = {
1338
1338
  key: 0,
1339
1339
  class: "form-section-title"
1340
1340
  }, sa = {
@@ -1372,7 +1372,7 @@ const ae = {
1372
1372
  return (t, a) => (h(), N("fieldset", {
1373
1373
  class: ye(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
1374
1374
  }, [
1375
- F("div", ra, [
1375
+ F("div", na, [
1376
1376
  e.hideInfoHeader ? Q("", !0) : (h(), N("div", {
1377
1377
  key: 0,
1378
1378
  class: ye(["form-section-info", { sticky: e.stickyInfoHeader }])
@@ -1442,8 +1442,8 @@ const ae = {
1442
1442
  },
1443
1443
  emits: ["success", "error"],
1444
1444
  setup(e, { emit: i }) {
1445
- const t = e, { t: a } = ke("en-us", ha), o = t.notify || We(ba, () => {
1446
- }), n = w(() => !!(t.tooltip && t.successTooltip)), f = C(t.tooltip), K = w(() => t.tooltip ? {
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
1447
  label: f.value,
1448
1448
  positionFixed: !0,
1449
1449
  maxWidth: "500px",
@@ -1452,19 +1452,19 @@ const ae = {
1452
1452
  f.value = v, setTimeout(() => {
1453
1453
  f.value = t.tooltip;
1454
1454
  }, 1800);
1455
- }, r = (v) => {
1455
+ }, n = (v) => {
1456
1456
  if (!v(t.uuid)) {
1457
- typeof o == "function" && o({
1457
+ typeof r == "function" && r({
1458
1458
  type: "error",
1459
1459
  message: a("message.fail")
1460
- }), n.value ? y(a("message.fail")) : i("error", t.uuid);
1460
+ }), o.value ? y(a("message.fail")) : i("error", t.uuid);
1461
1461
  return;
1462
1462
  }
1463
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 o == "function" && o({
1464
+ typeof r == "function" && r({
1465
1465
  type: "success",
1466
1466
  message: `${$}${a("message.success.content")}`
1467
- }), n.value ? y(t.successTooltip) : i("success", t.uuid);
1467
+ }), o.value ? y(t.successTooltip) : i("success", t.uuid);
1468
1468
  };
1469
1469
  return (v, T) => {
1470
1470
  const $ = M("KIcon"), R = M("KClipboardProvider");
@@ -1490,7 +1490,7 @@ const ae = {
1490
1490
  "data-testid": "copy-to-clipboard",
1491
1491
  role: "button",
1492
1492
  tabindex: "0",
1493
- onClick: fe((l) => r(_), ["stop"])
1493
+ onClick: fe((l) => n(_), ["stop"])
1494
1494
  }, [
1495
1495
  k($, {
1496
1496
  class: "uuid-icon",
@@ -1512,8 +1512,8 @@ const ae = {
1512
1512
  }
1513
1513
  }), Ca = (e, i) => {
1514
1514
  const t = e.__vccOpts || e;
1515
- for (const [a, o] of i)
1516
- t[a] = o;
1515
+ for (const [a, r] of i)
1516
+ t[a] = r;
1517
1517
  return t;
1518
1518
  }, Ia = /* @__PURE__ */ Ca(wa, [["__scopeId", "data-v-e4ea1359"]]);
1519
1519
  const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key: 1 }, Ka = /* @__PURE__ */ Y({
@@ -1557,8 +1557,8 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1557
1557
  },
1558
1558
  emits: ["error", "copy:success", "copy:error", "delete:success"],
1559
1559
  setup(e, { emit: i }) {
1560
- var re;
1561
- const t = e, { i18n: { t: a } } = Ne.useI18n(), o = (b, B) => {
1560
+ var ne;
1561
+ const t = e, { i18n: { t: a } } = Ne.useI18n(), r = (b, B) => {
1562
1562
  var U;
1563
1563
  b.type === "error" ? i("copy:error", {
1564
1564
  entity: B,
@@ -1569,13 +1569,13 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1569
1569
  field: "certificate.id",
1570
1570
  message: a("copy.success", { val: (U = B.certificate) == null ? void 0 : U.id })
1571
1571
  });
1572
- }, { axiosInstance: n } = je({
1573
- headers: (re = t.config) == null ? void 0 : re.requestHeaders
1572
+ }, { axiosInstance: o } = je({
1573
+ headers: (ne = t.config) == null ? void 0 : ne.requestHeaders
1574
1574
  }), f = C(1), K = w(() => t.config.app !== "kongManager" || !!t.config.disableSorting), g = {
1575
1575
  name: { label: a("snis.list.table_headers.name"), searchable: !0, sortable: !0 },
1576
1576
  certificate: { label: a("snis.list.table_headers.certificate_id"), sortable: !1 },
1577
1577
  tags: { label: a("snis.list.table_headers.tags"), sortable: !1 }
1578
- }, y = g, r = (b) => ({
1578
+ }, y = g, n = (b) => ({
1579
1579
  style: {
1580
1580
  maxWidth: b.headerKey === "name" ? "250px" : b.headerKey === "certificate" ? "350px" : null
1581
1581
  }
@@ -1638,14 +1638,14 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1638
1638
  to: t.config.getEditRoute(b)
1639
1639
  }), I = C(void 0), W = C(!1), j = C(!1), L = C(""), D = pa(t.config, v.value), X = (b) => {
1640
1640
  I.value = b, W.value = !0;
1641
- }, oe = () => {
1641
+ }, re = () => {
1642
1642
  W.value = !1, I.value = void 0;
1643
- }, ne = async () => {
1643
+ }, oe = async () => {
1644
1644
  var b, B, U;
1645
1645
  if ((b = I.value) != null && b.id) {
1646
1646
  j.value = !0;
1647
1647
  try {
1648
- await n.delete(D(I.value.id)), i("delete:success", I.value), j.value = !1, oe(), f.value++;
1648
+ await o.delete(D(I.value.id)), i("delete:success", I.value), j.value = !1, re(), f.value++;
1649
1649
  } catch (p) {
1650
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);
1651
1651
  } finally {
@@ -1666,7 +1666,7 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1666
1666
  return h(), N("div", xa, [
1667
1667
  k(s(Vt), {
1668
1668
  "cache-identifier": e.cacheIdentifier,
1669
- "cell-attributes": r,
1669
+ "cell-attributes": n,
1670
1670
  "disable-pagination-page-jump": "",
1671
1671
  "disable-sorting": K.value,
1672
1672
  "empty-state-options": c.value,
@@ -1682,7 +1682,7 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1682
1682
  onSort: m
1683
1683
  }, {
1684
1684
  "toolbar-filter": d(() => [
1685
- k(s(na), {
1685
+ k(s(oa), {
1686
1686
  modelValue: T.value,
1687
1687
  "onUpdate:modelValue": B[0] || (B[0] = (S) => T.value = S),
1688
1688
  config: $.value
@@ -1716,7 +1716,7 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1716
1716
  key: 0,
1717
1717
  class: "copy-certificate-uuid",
1718
1718
  "data-testid": "copy-certificate-uuid",
1719
- notify: (G) => o(G, S),
1719
+ notify: (G) => r(G, S),
1720
1720
  truncated: !1,
1721
1721
  uuid: S.certificate.id
1722
1722
  }, null, 8, ["notify", "uuid"])) : (h(), N("span", Ta, "-"))
@@ -1808,8 +1808,8 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1808
1808
  "need-confirm": !1,
1809
1809
  title: s(a)("delete.title"),
1810
1810
  visible: W.value,
1811
- onCancel: oe,
1812
- onProceed: ne
1811
+ onCancel: re,
1812
+ onProceed: oe
1813
1813
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
1814
1814
  ]);
1815
1815
  };
@@ -1817,8 +1817,8 @@ const xa = { class: "kong-ui-entities-snis-list" }, Ta = { key: 1 }, $a = { key:
1817
1817
  });
1818
1818
  const Le = (e, i) => {
1819
1819
  const t = e.__vccOpts || e;
1820
- for (const [a, o] of i)
1821
- t[a] = o;
1820
+ for (const [a, r] of i)
1821
+ t[a] = r;
1822
1822
  return t;
1823
1823
  }, ja = /* @__PURE__ */ Le(Ka, [["__scopeId", "data-v-363811ed"]]), Pa = { class: "kong-ui-entities-snis-form" }, Ma = { "data-testid": "no-search-results" }, Ea = {
1824
1824
  key: 2,
@@ -1843,9 +1843,9 @@ const Le = (e, i) => {
1843
1843
  emits: ["update", "error", "loading"],
1844
1844
  setup(e, { emit: i }) {
1845
1845
  var U;
1846
- const t = e, a = Be(), { i18n: { t: o } } = Ne.useI18n(), { getMessageFromError: n } = fa(), { axiosInstance: f } = je({
1846
+ const t = e, a = Be(), { i18n: { t: r } } = Ne.useI18n(), { getMessageFromError: o } = fa(), { axiosInstance: f } = je({
1847
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 : ""), r = Ce({
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({
1849
1849
  fields: {
1850
1850
  name: "",
1851
1851
  tags: "",
@@ -1857,9 +1857,9 @@ const Le = (e, i) => {
1857
1857
  name: "",
1858
1858
  tags: "",
1859
1859
  certificate_id: ""
1860
- }), T = w(() => JSON.stringify(r.fields) !== JSON.stringify(v) && !!r.fields.name && !!(r.fields.certificate_id || y.value)), $ = (p) => {
1860
+ }), T = w(() => JSON.stringify(n.fields) !== JSON.stringify(v) && !!n.fields.name && !!(n.fields.certificate_id || y.value)), $ = (p) => {
1861
1861
  var x, O;
1862
- r.fields.name = (p == null ? void 0 : p.name) || "", r.fields.tags = ((x = p == null ? void 0 : p.tags) == null ? void 0 : x.join(", ")) || "", r.fields.certificate_id = ((O = p == null ? void 0 : p.certificate) == null ? void 0 : O.id) || "", Object.assign(v, r.fields);
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
1863
  }, R = () => {
1864
1864
  a.push(t.config.cancelRoute);
1865
1865
  }, _ = w(() => {
@@ -1873,18 +1873,18 @@ const Le = (e, i) => {
1873
1873
  }), m = async () => {
1874
1874
  var p, x, O, Z, S, G, ce, we;
1875
1875
  try {
1876
- r.isReadonly = !0;
1876
+ n.isReadonly = !0;
1877
1877
  const ee = {
1878
- name: r.fields.name,
1879
- tags: (x = (p = r.fields.tags.split(",")) == null ? void 0 : p.map((me) => String(me || "").trim())) == null ? void 0 : x.filter((me) => me !== ""),
1880
- certificate: { id: y.value || r.fields.certificate_id }
1878
+ 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 }
1881
1881
  };
1882
1882
  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)), r.fields.name = ((Z = z == null ? void 0 : z.data) == null ? void 0 : Z.name) || "", r.fields.tags = ((G = (S = z == null ? void 0 : z.data) == null ? void 0 : S.tags) == null ? void 0 : G.join(", ")) || "", r.fields.certificate_id = ((we = (ce = z == null ? void 0 : z.data) == null ? void 0 : ce.certificate) == null ? void 0 : we.id) || "", Object.assign(v, r.fields), i("update", z == null ? void 0 : z.data);
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);
1884
1884
  } catch (ee) {
1885
- r.errorMessage = n(ee), i("error", ee);
1885
+ n.errorMessage = o(ee), i("error", ee);
1886
1886
  } finally {
1887
- r.isReadonly = !1;
1887
+ n.isReadonly = !1;
1888
1888
  }
1889
1889
  }, {
1890
1890
  debouncedQueryChange: u,
@@ -1896,20 +1896,20 @@ const Le = (e, i) => {
1896
1896
  results: W
1897
1897
  } = ma(t.config, se.form[t.config.app].certificates), j = C(!0), L = (p) => {
1898
1898
  j.value = !p, u(p);
1899
- }, D = w(() => q.value ? o("errors.certificates.fetch") : ""), X = w(() => A.value ? o("errors.certificates.invalid") : ""), oe = C(0), ne = w(() => E.value === void 0), re = C(/* @__PURE__ */ new Set()), b = w(() => Array.from(re.value).map((x) => ({
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
1900
  label: x,
1901
1901
  value: x,
1902
- selected: r.fields.certificate_id === x
1902
+ selected: n.fields.certificate_id === x
1903
1903
  }))), B = (p) => {
1904
- re.value.clear();
1904
+ ne.value.clear();
1905
1905
  let x;
1906
1906
  for (x of p)
1907
- re.value.add(x.id);
1907
+ ne.value.add(x.id);
1908
1908
  };
1909
1909
  return ie(W, (p) => {
1910
1910
  B(p);
1911
1911
  }, { immediate: !0, deep: !0 }), ie(b, () => {
1912
- oe.value++;
1912
+ re.value++;
1913
1913
  }, { immediate: !0, deep: !0 }), he(async () => {
1914
1914
  await I();
1915
1915
  }), (p, x) => {
@@ -1919,9 +1919,9 @@ const Le = (e, i) => {
1919
1919
  "can-submit": T.value,
1920
1920
  config: e.config,
1921
1921
  "edit-id": e.sniId,
1922
- "error-message": r.errorMessage || D.value,
1922
+ "error-message": n.errorMessage || D.value,
1923
1923
  "fetch-url": K.value,
1924
- "is-readonly": r.isReadonly,
1924
+ "is-readonly": n.isReadonly,
1925
1925
  onCancel: R,
1926
1926
  "onFetch:error": x[3] || (x[3] = (S) => p.$emit("error", S)),
1927
1927
  "onFetch:success": $,
@@ -1930,77 +1930,77 @@ const Le = (e, i) => {
1930
1930
  }, {
1931
1931
  default: d(() => [
1932
1932
  k(s(Me), {
1933
- description: s(o)("form.sections.general.description"),
1934
- title: s(o)("form.sections.general.title")
1933
+ description: s(r)("form.sections.general.description"),
1934
+ title: s(r)("form.sections.general.title")
1935
1935
  }, {
1936
1936
  default: d(() => [
1937
1937
  k(O, {
1938
- modelValue: r.fields.name,
1939
- "onUpdate:modelValue": x[0] || (x[0] = (S) => r.fields.name = S),
1938
+ modelValue: n.fields.name,
1939
+ "onUpdate:modelValue": x[0] || (x[0] = (S) => n.fields.name = S),
1940
1940
  modelModifiers: { trim: !0 },
1941
1941
  autocomplete: "off",
1942
1942
  "data-testid": "sni-form-name",
1943
- label: s(o)("form.fields.name.label"),
1944
- placeholder: s(o)("form.fields.name.placeholder"),
1945
- readonly: r.isReadonly,
1943
+ label: s(r)("form.fields.name.label"),
1944
+ placeholder: s(r)("form.fields.name.placeholder"),
1945
+ readonly: n.isReadonly,
1946
1946
  required: "",
1947
1947
  type: "text"
1948
1948
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
1949
1949
  k(O, {
1950
- modelValue: r.fields.tags,
1951
- "onUpdate:modelValue": x[1] || (x[1] = (S) => r.fields.tags = S),
1950
+ modelValue: n.fields.tags,
1951
+ "onUpdate:modelValue": x[1] || (x[1] = (S) => n.fields.tags = S),
1952
1952
  modelModifiers: { trim: !0 },
1953
1953
  autocomplete: "off",
1954
1954
  "data-testid": "sni-form-tags",
1955
- help: s(o)("form.fields.tags.help"),
1956
- label: s(o)("form.fields.tags.label"),
1957
- "label-attributes": { help: s(o)("form.fields.tags.tooltip") },
1958
- placeholder: s(o)("form.fields.tags.placeholder"),
1959
- readonly: r.isReadonly,
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"),
1959
+ readonly: n.isReadonly,
1960
1960
  type: "text"
1961
1961
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
1962
1962
  ]),
1963
1963
  _: 1
1964
1964
  }, 8, ["description", "title"]),
1965
1965
  k(s(Me), {
1966
- description: s(o)("form.sections.certificate.description"),
1966
+ description: s(r)("form.sections.certificate.description"),
1967
1967
  "has-divider": "",
1968
- title: s(o)("form.sections.certificate.title")
1968
+ title: s(r)("form.sections.certificate.title")
1969
1969
  }, {
1970
1970
  default: d(() => [
1971
1971
  y.value ? (h(), V(O, {
1972
1972
  key: 0,
1973
1973
  "data-testid": "sni-form-certificate-id",
1974
- label: s(o)("form.fields.certificate_id.label"),
1974
+ label: s(r)("form.fields.certificate_id.label"),
1975
1975
  "model-value": y.value,
1976
1976
  readonly: "",
1977
1977
  required: "",
1978
1978
  width: "100%"
1979
1979
  }, null, 8, ["label", "model-value"])) : (h(), V(Z, {
1980
1980
  key: 1,
1981
- modelValue: r.fields.certificate_id,
1982
- "onUpdate:modelValue": x[2] || (x[2] = (S) => r.fields.certificate_id = S),
1981
+ modelValue: n.fields.certificate_id,
1982
+ "onUpdate:modelValue": x[2] || (x[2] = (S) => n.fields.certificate_id = S),
1983
1983
  appearance: "select",
1984
1984
  autosuggest: "",
1985
1985
  class: ye({ "k-select-placeholder": j.value }),
1986
1986
  clearable: "",
1987
1987
  "data-testid": "sni-form-certificate-id",
1988
- "dropdown-footer-text": ne.value ? s(o)("form.fields.certificate_id.footer") : void 0,
1988
+ "dropdown-footer-text": oe.value ? s(r)("form.fields.certificate_id.footer") : void 0,
1989
1989
  "enable-filtering": "",
1990
1990
  items: b.value,
1991
- label: s(o)("form.fields.certificate_id.label"),
1991
+ label: s(r)("form.fields.certificate_id.label"),
1992
1992
  loading: s(c),
1993
- placeholder: s(o)("form.fields.certificate_id.placeholder"),
1994
- readonly: r.isReadonly,
1993
+ placeholder: s(r)("form.fields.certificate_id.placeholder"),
1994
+ readonly: n.isReadonly,
1995
1995
  required: "",
1996
1996
  width: "100%",
1997
1997
  onQueryChange: L
1998
1998
  }, {
1999
1999
  loading: d(() => [
2000
- F("div", null, P(s(o)("actions.loading")), 1)
2000
+ F("div", null, P(s(r)("actions.loading")), 1)
2001
2001
  ]),
2002
2002
  empty: d(() => [
2003
- F("div", Ma, P(s(o)("search.no_results")), 1)
2003
+ F("div", Ma, P(s(r)("search.no_results")), 1)
2004
2004
  ]),
2005
2005
  _: 1
2006
2006
  }, 8, ["modelValue", "class", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),