@kong-ui-public/entities-keys 3.8.28-pr.2145.3f5d3180b.0 → 3.8.29-pr.2114.d6a8378f0.0

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,9 +1,9 @@
1
- import { defineComponent as ge, computed as m, ref as I, watch as te, onBeforeMount as $e, resolveComponent as O, openBlock as b, createElementBlock as J, createVNode as f, unref as l, createSlots as me, withCtx as u, createBlock as V, Teleport as Se, createElementVNode as R, createCommentVNode as G, createTextVNode as ee, toDisplayString as K, reactive as _e, Fragment as Ie, renderList as we } from "vue";
2
- import { useRouter as Ee } from "vue-router";
3
- import { BookIcon as Ce, AddIcon as Re, KeyIcon as De } from "@kong/icons";
4
- import { createI18n as Te, i18nTComponent as Fe } from "@kong-ui-public/i18n";
5
- import { useAxios as ve, useTableState as Ae, useFetcher as Be, useDeleteUrlBuilder as Ue, FetcherStatus as Oe, EntityBaseTable as Pe, EntityFilter as qe, PermissionsWrapper as se, TableTags as Ne, EntityEmptyState as Je, EntityDeleteModal as Le, EntityTypes as We, useErrors as He, EntityBaseFormType as ne, useDebouncedFilter as Qe, EntityBaseForm as ze, SupportedEntityType as je, EntityFormSection as xe, useStringHelpers as Ge, ConfigurationSchemaSection as ke, ConfigurationSchemaType as pe, EntityBaseConfigCard as Xe, InternalLinkItem as Ze, ConfigCardItem as Ke } from "@kong-ui-public/entities-shared";
6
- const Ye = {
1
+ import { defineComponent as me, computed as h, ref as w, watch as ee, onBeforeMount as Ce, resolveComponent as B, openBlock as S, createElementBlock as N, createVNode as u, unref as l, createSlots as pe, withCtx as k, createBlock as R, Teleport as Ee, createElementVNode as M, createCommentVNode as Q, createTextVNode as Y, toDisplayString as x, reactive as be, Fragment as _e, renderList as Se } from "vue";
2
+ import { useRouter as xe } from "vue-router";
3
+ import { BookIcon as Ve, AddIcon as Me, KeyIcon as Re } from "@kong/icons";
4
+ import { createI18n as De, i18nTComponent as Te } from "@kong-ui-public/i18n";
5
+ import { useAxios as ge, useTableState as Fe, useFetcher as Ae, useDeleteUrlBuilder as Ue, FetcherStatus as Be, EntityBaseTable as Oe, EntityFilter as Pe, PermissionsWrapper as ae, TableTags as qe, EntityEmptyState as Ne, EntityDeleteModal as Je, EntityTypes as We, useErrors as Le, EntityBaseFormType as se, useDebouncedFilter as He, EntityBaseForm as Qe, SupportedEntityType as Ke, EntityFormSection as Ie, useStringHelpers as ze, ConfigurationSchemaSection as ue, ConfigurationSchemaType as ke, EntityBaseConfigCard as Ge, InternalLinkItem as Xe, ConfigCardItem as we } from "@kong-ui-public/entities-shared";
6
+ const Ze = {
7
7
  title: "Keys",
8
8
  list: {
9
9
  toolbar_actions: {
@@ -127,24 +127,24 @@ const Ye = {
127
127
  }
128
128
  }
129
129
  }
130
- }, et = {
131
- keys: Ye
130
+ }, Ye = {
131
+ keys: Ze
132
132
  };
133
- function tt() {
134
- const a = Te("en-us", et);
133
+ function et() {
134
+ const i = De("en-us", Ye);
135
135
  return {
136
- i18n: a,
137
- i18nT: Fe(a)
136
+ i18n: i,
137
+ i18nT: Te(i)
138
138
  // Translation component <i18n-t>
139
139
  };
140
140
  }
141
- const he = {
142
- useI18n: tt
143
- }, B = "/v2/control-planes/{controlPlaneId}/core-entities", U = "/{workspace}", P = {
141
+ const ve = {
142
+ useI18n: et
143
+ }, A = "/v2/control-planes/{controlPlaneId}/core-entities", U = "/{workspace}", O = {
144
144
  list: {
145
145
  konnect: {
146
- all: `${B}/keys`,
147
- forKeySet: `${B}/key-sets/{keySetId}/keys`
146
+ all: `${A}/keys`,
147
+ forKeySet: `${A}/key-sets/{keySetId}/keys`
148
148
  },
149
149
  kongManager: {
150
150
  all: `${U}/keys`,
@@ -154,15 +154,15 @@ const he = {
154
154
  form: {
155
155
  konnect: {
156
156
  create: {
157
- all: `${B}/keys`,
158
- forKeySet: `${B}/key-sets/{keySetId}/keys`
157
+ all: `${A}/keys`,
158
+ forKeySet: `${A}/key-sets/{keySetId}/keys`
159
159
  },
160
160
  edit: {
161
- all: `${B}/keys/{id}`,
162
- forKeySet: `${B}/key-sets/{keySetId}/keys/{id}`
161
+ all: `${A}/keys/{id}`,
162
+ forKeySet: `${A}/key-sets/{keySetId}/keys/{id}`
163
163
  },
164
- keySets: `${B}/key-sets`,
165
- getKeySet: `${B}/key-sets/{keySetId}`
164
+ keySets: `${A}/key-sets`,
165
+ getKeySet: `${A}/key-sets/{keySetId}`
166
166
  },
167
167
  kongManager: {
168
168
  create: {
@@ -177,14 +177,14 @@ const he = {
177
177
  getKeySet: `${U}/key-sets/{keySetId}`
178
178
  }
179
179
  }
180
- }, lt = "#00abd2", it = "24px", at = { class: "kong-ui-entities-keys-list" }, ot = { class: "button-row" }, st = { class: "empty-state-icon-gateway" }, nt = /* @__PURE__ */ ge({
180
+ }, tt = "#00abd2", lt = "24px", it = { class: "kong-ui-entities-keys-list" }, ot = { class: "button-row" }, at = { class: "empty-state-icon-gateway" }, st = /* @__PURE__ */ me({
181
181
  __name: "KeyList",
182
182
  props: {
183
183
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
184
184
  config: {
185
185
  type: Object,
186
186
  required: !0,
187
- validator: (a) => !(!a || !["konnect", "kongManager"].includes(a == null ? void 0 : a.app) || !a.createRoute || !a.getViewRoute || !a.getEditRoute || a.app === "kongManager" && !a.isExactMatch && !a.filterSchema)
187
+ validator: (i) => !(!i || !["konnect", "kongManager"].includes(i == null ? void 0 : i.app) || !i.createRoute || !i.getViewRoute || !i.getEditRoute || i.app === "kongManager" && !i.isExactMatch && !i.filterSchema)
188
188
  },
189
189
  // used to override the default identifier for the cache entry
190
190
  cacheIdentifier: {
@@ -219,187 +219,179 @@ const he = {
219
219
  useActionOutside: {
220
220
  type: Boolean,
221
221
  default: !1
222
- },
223
- /**
224
- * Enables the new empty state design, this prop can be removed when
225
- * the khcp-14756-empty-states-m2 FF is removed.
226
- */
227
- enableV2EmptyStates: {
228
- type: Boolean,
229
- default: !1
230
222
  }
231
223
  },
232
224
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
233
- setup(a, { emit: q }) {
234
- var _;
235
- const S = q, t = a, { i18n: { t: y } } = he.useI18n(), d = Ee(), { axiosInstance: $ } = ve((_ = t.config) == null ? void 0 : _.axiosRequestConfig), { hasRecords: F, handleStateChange: X } = Ae(() => M.value), j = m(() => F.value && t.config.app === "konnect"), e = m(() => !t.enableV2EmptyStates && t.config.app === "konnect"), w = m(() => !!t.config.keySetId), N = m(() => t.config.app !== "kongManager" || !!t.config.disableSorting), D = {
225
+ setup(i, { emit: P }) {
226
+ var b;
227
+ const _ = P, t = i, { i18n: { t: f } } = ve.useI18n(), r = xe(), { axiosInstance: K } = ge((b = t.config) == null ? void 0 : b.axiosRequestConfig), { hasRecords: q, handleStateChange: z } = Fe(() => E.value), $ = h(() => q.value && t.config.app === "konnect"), e = h(() => !!t.config.keySetId), C = h(() => t.config.app !== "kongManager" || !!t.config.disableSorting), D = {
236
228
  // the Name column is non-hidable
237
- name: { label: y("keys.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
238
- kid: { label: y("keys.list.table_headers.key_id"), sortable: !0 },
239
- tags: { label: y("keys.list.table_headers.tags") },
240
- id: { label: y("keys.list.table_headers.id"), sortable: !0 }
241
- }, Z = D, L = m(() => {
242
- var i, n, E, A;
243
- let s = `${t.config.apiBaseUrl}${P.list[t.config.app][t.config.keySetId ? "forKeySet" : "all"]}`;
244
- return t.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((i = t.config) == null ? void 0 : i.controlPlaneId) || "").replace(/{keySetId}/gi, ((n = t.config) == null ? void 0 : n.keySetId) || "") : t.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (E = t.config) != null && E.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, ((A = t.config) == null ? void 0 : A.keySetId) || "")), s;
245
- }), M = I(""), W = m(() => {
246
- const s = t.config.app === "konnect" || t.config.isExactMatch;
247
- if (s)
229
+ name: { label: f("keys.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
230
+ kid: { label: f("keys.list.table_headers.key_id"), sortable: !0 },
231
+ tags: { label: f("keys.list.table_headers.tags") },
232
+ id: { label: f("keys.list.table_headers.id"), sortable: !0 }
233
+ }, T = D, J = h(() => {
234
+ var c, s, d, F;
235
+ let a = `${t.config.apiBaseUrl}${O.list[t.config.app][t.config.keySetId ? "forKeySet" : "all"]}`;
236
+ return t.config.app === "konnect" ? a = a.replace(/{controlPlaneId}/gi, ((c = t.config) == null ? void 0 : c.controlPlaneId) || "").replace(/{keySetId}/gi, ((s = t.config) == null ? void 0 : s.keySetId) || "") : t.config.app === "kongManager" && (a = a.replace(/\/{workspace}/gi, (d = t.config) != null && d.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, ((F = t.config) == null ? void 0 : F.keySetId) || "")), a;
237
+ }), E = w(""), G = h(() => {
238
+ const a = t.config.app === "konnect" || t.config.isExactMatch;
239
+ if (a)
248
240
  return {
249
- isExactMatch: s,
250
- placeholder: y("keys.search.placeholder")
241
+ isExactMatch: a,
242
+ placeholder: f("keys.search.placeholder")
251
243
  };
252
- const i = { name: D.name };
244
+ const c = { name: D.name };
253
245
  return {
254
- isExactMatch: s,
255
- fields: i,
246
+ isExactMatch: a,
247
+ fields: c,
256
248
  schema: t.config.filterSchema
257
249
  };
258
250
  }), {
259
- fetcher: c,
260
- fetcherState: g,
261
- fetcherCacheKey: C
262
- } = Be(m(() => ({ ...t.config, cacheIdentifier: t.cacheIdentifier })), L), v = () => {
263
- M.value = "";
264
- }, x = () => {
265
- C.value++;
266
- }, k = I(null), le = async (s, i) => {
267
- const n = s.id;
268
- if (!await i(n)) {
269
- ce(s, "id");
251
+ fetcher: W,
252
+ fetcherState: y,
253
+ fetcherCacheKey: g
254
+ } = Ae(h(() => ({ ...t.config, cacheIdentifier: t.cacheIdentifier })), J), j = () => {
255
+ E.value = "";
256
+ }, v = () => {
257
+ g.value++;
258
+ }, I = w(null), p = async (a, c) => {
259
+ const s = a.id;
260
+ if (!await c(s)) {
261
+ re(a, "id");
270
262
  return;
271
263
  }
272
- de(s, "id");
273
- }, re = async (s, i) => {
274
- const n = JSON.stringify(s);
275
- if (!await i(n)) {
276
- S("copy:error", {
277
- entity: s,
278
- message: y("keys.errors.copy")
264
+ ne(a, "id");
265
+ }, te = async (a, c) => {
266
+ const s = JSON.stringify(a);
267
+ if (!await c(s)) {
268
+ _("copy:error", {
269
+ entity: a,
270
+ message: f("keys.errors.copy")
279
271
  });
280
272
  return;
281
273
  }
282
- S("copy:success", {
283
- entity: s,
284
- message: y("keys.copy.success_brief")
274
+ _("copy:success", {
275
+ entity: a,
276
+ message: f("keys.copy.success_brief")
285
277
  });
286
- }, de = (s, i) => {
287
- S("copy:success", {
288
- entity: s,
289
- field: i,
290
- message: y("keys.copy.success", { val: s[i] })
278
+ }, ne = (a, c) => {
279
+ _("copy:success", {
280
+ entity: a,
281
+ field: c,
282
+ message: f("keys.copy.success", { val: a[c] })
291
283
  });
292
- }, ce = (s, i) => {
293
- S("copy:error", {
294
- entity: s,
295
- field: i,
296
- message: y("keys.errors.copy")
284
+ }, re = (a, c) => {
285
+ _("copy:error", {
286
+ entity: a,
287
+ field: c,
288
+ message: f("keys.errors.copy")
297
289
  });
298
- }, ye = async (s) => {
299
- var n;
300
- await ((n = t.canRetrieve) == null ? void 0 : n.call(t, s)) && d.push(t.config.getViewRoute(s.id));
301
- }, fe = (s) => ({
302
- label: y("keys.actions.view"),
303
- to: t.config.getViewRoute(s)
304
- }), ie = (s) => ({
305
- label: y("keys.actions.edit"),
306
- to: t.config.getEditRoute(s)
307
- }), T = I(void 0), H = I(!1), Q = I(!1), z = I(""), ae = Ue(t.config, L.value), ue = (s) => {
308
- T.value = s, H.value = !0;
309
- }, oe = () => {
310
- H.value = !1;
311
- }, o = async () => {
312
- var s, i, n;
313
- if ((s = T.value) != null && s.id) {
314
- Q.value = !0;
290
+ }, de = async (a) => {
291
+ var s;
292
+ await ((s = t.canRetrieve) == null ? void 0 : s.call(t, a)) && r.push(t.config.getViewRoute(a.id));
293
+ }, ce = (a) => ({
294
+ label: f("keys.actions.view"),
295
+ to: t.config.getViewRoute(a)
296
+ }), ye = (a) => ({
297
+ label: f("keys.actions.edit"),
298
+ to: t.config.getEditRoute(a)
299
+ }), V = w(void 0), L = w(!1), H = w(!1), le = w(""), X = Ue(t.config, J.value), ie = (a) => {
300
+ V.value = a, L.value = !0;
301
+ }, fe = () => {
302
+ L.value = !1;
303
+ }, oe = async () => {
304
+ var a, c, s;
305
+ if ((a = V.value) != null && a.id) {
306
+ H.value = !0;
315
307
  try {
316
- await $.delete(ae(T.value.id)), Q.value = !1, H.value = !1, C.value++, S("delete:success", T.value);
317
- } catch (E) {
318
- z.value = ((n = (i = E.response) == null ? void 0 : i.data) == null ? void 0 : n.message) || E.message || y("keys.errors.delete"), S("error", E);
308
+ await K.delete(X(V.value.id)), H.value = !1, L.value = !1, g.value++, _("delete:success", V.value);
309
+ } catch (d) {
310
+ le.value = ((s = (c = d.response) == null ? void 0 : c.data) == null ? void 0 : s.message) || d.message || f("keys.errors.delete"), _("error", d);
319
311
  } finally {
320
- Q.value = !1;
312
+ H.value = !1;
321
313
  }
322
314
  }
323
- }, r = () => {
324
- d.push(t.config.createRoute);
315
+ }, o = () => {
316
+ r.push(t.config.createRoute);
325
317
  };
326
- te(g, (s) => {
327
- var i, n, E;
328
- if (s.status === Oe.Error) {
329
- k.value = {
330
- title: y("keys.errors.general")
331
- }, (E = (n = (i = s.error) == null ? void 0 : i.response) == null ? void 0 : n.data) != null && E.message && (k.value.message = s.error.response.data.message), S("error", s.error);
318
+ ee(y, (a) => {
319
+ var c, s, d;
320
+ if (a.status === Be.Error) {
321
+ I.value = {
322
+ title: f("keys.errors.general")
323
+ }, (d = (s = (c = a.error) == null ? void 0 : c.response) == null ? void 0 : s.data) != null && d.message && (I.value.message = a.error.response.data.message), _("error", a.error);
332
324
  return;
333
325
  }
334
- k.value = null;
326
+ I.value = null;
335
327
  });
336
- const h = I({
328
+ const n = w({
337
329
  ctaPath: t.config.createRoute,
338
330
  ctaText: void 0,
339
- message: `${y("keys.list.empty_state.description")}${t.config.additionMessageForEmptyState ? ` ${t.config.additionMessageForEmptyState}` : ""}`,
340
- title: y("keys.title")
331
+ message: `${f("keys.list.empty_state.description")}${t.config.additionMessageForEmptyState ? ` ${t.config.additionMessageForEmptyState}` : ""}`,
332
+ title: f("keys.title")
341
333
  });
342
- return $e(async () => {
343
- await t.canCreate() && (h.value.title = y("keys.list.empty_state.title"), h.value.ctaText = y("keys.actions.create"));
344
- }), (s, i) => {
345
- const n = O("KButton"), E = O("KCopy"), A = O("KDropdownItem"), be = O("KClipboardProvider");
346
- return b(), J("div", at, [
347
- f(l(Pe), {
348
- "cache-identifier": a.cacheIdentifier,
349
- "disable-sorting": N.value,
350
- "empty-state-options": h.value,
334
+ return Ce(async () => {
335
+ await t.canCreate() && (n.value.title = f("keys.list.empty_state.title"), n.value.ctaText = f("keys.actions.create"));
336
+ }), (a, c) => {
337
+ const s = B("KButton"), d = B("KCopy"), F = B("KDropdownItem"), he = B("KClipboardProvider");
338
+ return S(), N("div", it, [
339
+ u(l(Oe), {
340
+ "cache-identifier": i.cacheIdentifier,
341
+ "disable-sorting": C.value,
342
+ "empty-state-options": n.value,
351
343
  "enable-entity-actions": "",
352
- "error-message": k.value,
353
- fetcher: l(c),
354
- "fetcher-cache-key": l(C),
344
+ "error-message": I.value,
345
+ fetcher: l(W),
346
+ "fetcher-cache-key": l(g),
355
347
  "pagination-type": "offset",
356
348
  "preferences-storage-key": "kong-ui-entities-keys-list",
357
- query: M.value,
358
- "table-headers": l(Z),
359
- onClearSearchInput: v,
360
- "onClick:row": i[4] || (i[4] = (p) => ye(p)),
361
- onSort: x,
362
- onState: l(X)
363
- }, me({
364
- "toolbar-filter": u(() => [
365
- f(l(qe), {
366
- modelValue: M.value,
367
- "onUpdate:modelValue": i[0] || (i[0] = (p) => M.value = p),
368
- config: W.value
349
+ query: E.value,
350
+ "table-headers": l(T),
351
+ onClearSearchInput: j,
352
+ "onClick:row": c[3] || (c[3] = (m) => de(m)),
353
+ onSort: v,
354
+ onState: l(z)
355
+ }, pe({
356
+ "toolbar-filter": k(() => [
357
+ u(l(Pe), {
358
+ modelValue: E.value,
359
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => E.value = m),
360
+ config: G.value
369
361
  }, null, 8, ["modelValue", "config"])
370
362
  ]),
371
- "toolbar-button": u(() => [
372
- (b(), V(Se, {
373
- disabled: !a.useActionOutside,
363
+ "toolbar-button": k(() => [
364
+ (S(), R(Ee, {
365
+ disabled: !i.useActionOutside,
374
366
  to: "#kong-ui-app-page-header-action-button"
375
367
  }, [
376
- R("div", ot, [
377
- !w.value && j.value ? (b(), V(n, {
368
+ M("div", ot, [
369
+ !e.value && $.value ? (S(), R(s, {
378
370
  key: 0,
379
371
  appearance: "secondary",
380
372
  class: "open-learning-hub",
381
373
  "data-testid": "keys-learn-more-button",
382
374
  icon: "",
383
- onClick: i[1] || (i[1] = (p) => s.$emit("click:learn-more"))
375
+ onClick: c[1] || (c[1] = (m) => a.$emit("click:learn-more"))
384
376
  }, {
385
- default: u(() => [
386
- f(l(Ce), { decorative: "" })
377
+ default: k(() => [
378
+ u(l(Ve), { decorative: "" })
387
379
  ]),
388
380
  _: 1
389
- })) : G("", !0),
390
- f(l(se), {
391
- "auth-function": () => a.canCreate()
381
+ })) : Q("", !0),
382
+ u(l(ae), {
383
+ "auth-function": () => i.canCreate()
392
384
  }, {
393
- default: u(() => [
394
- f(n, {
385
+ default: k(() => [
386
+ u(s, {
395
387
  appearance: "primary",
396
388
  "data-testid": "toolbar-add-key",
397
- size: a.useActionOutside ? "medium" : "large",
398
- to: a.config.createRoute
389
+ size: i.useActionOutside ? "medium" : "large",
390
+ to: i.config.createRoute
399
391
  }, {
400
- default: u(() => [
401
- f(l(Re)),
402
- ee(" " + K(l(y)("keys.list.toolbar_actions.new_key")), 1)
392
+ default: k(() => [
393
+ u(l(Me)),
394
+ Y(" " + x(l(f)("keys.list.toolbar_actions.new_key")), 1)
403
395
  ]),
404
396
  _: 1
405
397
  }, 8, ["size", "to"])
@@ -409,85 +401,85 @@ const he = {
409
401
  ])
410
402
  ], 8, ["disabled"]))
411
403
  ]),
412
- name: u(({ rowValue: p }) => [
413
- R("b", null, K(p ?? "-"), 1)
404
+ name: k(({ rowValue: m }) => [
405
+ M("b", null, x(m ?? "-"), 1)
414
406
  ]),
415
- kid: u(({ rowValue: p }) => [
416
- f(E, { text: p }, null, 8, ["text"])
407
+ kid: k(({ rowValue: m }) => [
408
+ u(d, { text: m }, null, 8, ["text"])
417
409
  ]),
418
- tags: u(({ rowValue: p }) => [
419
- f(l(Ne), { tags: p }, null, 8, ["tags"])
410
+ tags: k(({ rowValue: m }) => [
411
+ u(l(qe), { tags: m }, null, 8, ["tags"])
420
412
  ]),
421
- id: u(({ rowValue: p }) => [
422
- f(E, {
423
- text: p,
413
+ id: k(({ rowValue: m }) => [
414
+ u(d, {
415
+ text: m,
424
416
  truncate: ""
425
417
  }, null, 8, ["text"])
426
418
  ]),
427
- actions: u(({ row: p }) => [
428
- f(be, null, {
429
- default: u(({ copyToClipboard: Y }) => [
430
- f(A, {
419
+ actions: k(({ row: m }) => [
420
+ u(he, null, {
421
+ default: k(({ copyToClipboard: Z }) => [
422
+ u(F, {
431
423
  "data-testid": "action-entity-copy-id",
432
- onClick: (Me) => le(p, Y)
424
+ onClick: (je) => p(m, Z)
433
425
  }, {
434
- default: u(() => [
435
- ee(K(l(y)("keys.actions.copy_id")), 1)
426
+ default: k(() => [
427
+ Y(x(l(f)("keys.actions.copy_id")), 1)
436
428
  ]),
437
429
  _: 2
438
430
  }, 1032, ["onClick"])
439
431
  ]),
440
432
  _: 2
441
433
  }, 1024),
442
- f(be, null, {
443
- default: u(({ copyToClipboard: Y }) => [
444
- f(A, {
434
+ u(he, null, {
435
+ default: k(({ copyToClipboard: Z }) => [
436
+ u(F, {
445
437
  "data-testid": "action-entity-copy-json",
446
- onClick: (Me) => re(p, Y)
438
+ onClick: (je) => te(m, Z)
447
439
  }, {
448
- default: u(() => [
449
- ee(K(l(y)("keys.actions.copy_json")), 1)
440
+ default: k(() => [
441
+ Y(x(l(f)("keys.actions.copy_json")), 1)
450
442
  ]),
451
443
  _: 2
452
444
  }, 1032, ["onClick"])
453
445
  ]),
454
446
  _: 2
455
447
  }, 1024),
456
- f(l(se), {
457
- "auth-function": () => a.canRetrieve(p)
448
+ u(l(ae), {
449
+ "auth-function": () => i.canRetrieve(m)
458
450
  }, {
459
- default: u(() => [
460
- f(A, {
451
+ default: k(() => [
452
+ u(F, {
461
453
  "data-testid": "action-entity-view",
462
454
  "has-divider": "",
463
- item: fe(p.id)
455
+ item: ce(m.id)
464
456
  }, null, 8, ["item"])
465
457
  ]),
466
458
  _: 2
467
459
  }, 1032, ["auth-function"]),
468
- f(l(se), {
469
- "auth-function": () => a.canEdit(p)
460
+ u(l(ae), {
461
+ "auth-function": () => i.canEdit(m)
470
462
  }, {
471
- default: u(() => [
472
- f(A, {
463
+ default: k(() => [
464
+ u(F, {
473
465
  "data-testid": "action-entity-edit",
474
- item: ie(p.id)
466
+ item: ye(m.id)
475
467
  }, null, 8, ["item"])
476
468
  ]),
477
469
  _: 2
478
470
  }, 1032, ["auth-function"]),
479
- f(l(se), {
480
- "auth-function": () => a.canDelete(p)
471
+ u(l(ae), {
472
+ "auth-function": () => i.canDelete(m)
481
473
  }, {
482
- default: u(() => [
483
- f(A, {
474
+ default: k(() => [
475
+ u(F, {
484
476
  danger: "",
485
477
  "data-testid": "action-entity-delete",
486
478
  "has-divider": "",
487
- onClick: (Y) => ue(p)
479
+ onClick: (Z) => ie(m)
488
480
  }, {
489
- default: u(() => [
490
- ee(K(l(y)("keys.actions.delete")), 1)
481
+ default: k(() => [
482
+ Y(x(l(f)("keys.actions.delete")), 1)
491
483
  ]),
492
484
  _: 2
493
485
  }, 1032, ["onClick"])
@@ -497,100 +489,77 @@ const he = {
497
489
  ]),
498
490
  _: 2
499
491
  }, [
500
- !l(F) && e.value ? {
501
- name: "outside-actions",
502
- fn: u(() => [
503
- (b(), V(Se, {
504
- disabled: !a.useActionOutside,
505
- to: "#kong-ui-app-page-header-action-button"
506
- }, [
507
- f(n, {
508
- appearance: "secondary",
509
- class: "open-learning-hub",
510
- "data-testid": "keys-learn-more-button",
511
- icon: "",
512
- onClick: i[2] || (i[2] = (p) => s.$emit("click:learn-more"))
513
- }, {
514
- default: u(() => [
515
- f(l(Ce), { decorative: "" })
516
- ]),
517
- _: 1
518
- })
519
- ], 8, ["disabled"]))
520
- ]),
521
- key: "0"
522
- } : void 0,
523
- !M.value && a.enableV2EmptyStates && a.config.app === "konnect" ? {
492
+ !E.value && i.config.app === "konnect" ? {
524
493
  name: "empty-state",
525
- fn: u(() => {
526
- var p;
494
+ fn: k(() => {
495
+ var m;
527
496
  return [
528
- f(l(Je), {
529
- "action-button-text": l(y)("keys.list.empty_state_v2.create_cta"),
497
+ u(l(Ne), {
498
+ "action-button-text": l(f)("keys.list.empty_state_v2.create_cta"),
530
499
  appearance: "secondary",
531
- "can-create": () => a.canCreate(),
532
- "data-testid": a.config.keySetId ? "nested-keys-entity-empty-state" : "keys-entity-empty-state",
533
- description: l(y)("keys.list.empty_state_v2.description"),
534
- "learn-more": a.config.app === "konnect",
535
- title: l(y)("keys.list.empty_state_v2.title"),
536
- "onClick:create": r,
537
- "onClick:learnMore": i[3] || (i[3] = (Y) => s.$emit("click:learn-more"))
538
- }, me({
539
- image: u(() => [
540
- R("div", st, [
541
- f(l(De), {
542
- color: l(lt),
543
- size: l(it)
500
+ "can-create": () => i.canCreate(),
501
+ "data-testid": i.config.keySetId ? "nested-keys-entity-empty-state" : "keys-entity-empty-state",
502
+ description: l(f)("keys.list.empty_state_v2.description"),
503
+ "learn-more": i.config.app === "konnect",
504
+ title: l(f)("keys.list.empty_state_v2.title"),
505
+ "onClick:create": o,
506
+ "onClick:learnMore": c[2] || (c[2] = (Z) => a.$emit("click:learn-more"))
507
+ }, pe({
508
+ image: k(() => [
509
+ M("div", at, [
510
+ u(l(Re), {
511
+ color: l(tt),
512
+ size: l(lt)
544
513
  }, null, 8, ["color", "size"])
545
514
  ])
546
515
  ]),
547
516
  _: 2
548
517
  }, [
549
- (p = a.config) != null && p.isControlPlaneGroup ? {
518
+ (m = i.config) != null && m.isControlPlaneGroup ? {
550
519
  name: "message",
551
- fn: u(() => [
552
- ee(K(l(y)("keys.list.empty_state_v2.group")), 1)
520
+ fn: k(() => [
521
+ Y(x(l(f)("keys.list.empty_state_v2.group")), 1)
553
522
  ]),
554
523
  key: "0"
555
524
  } : void 0
556
525
  ]), 1032, ["action-button-text", "can-create", "data-testid", "description", "learn-more", "title"])
557
526
  ];
558
527
  }),
559
- key: "1"
528
+ key: "0"
560
529
  } : void 0
561
530
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
562
- f(l(Le), {
563
- "action-pending": Q.value,
564
- description: l(y)("keys.delete.description"),
565
- "entity-name": T.value && (T.value.name || T.value.id),
531
+ u(l(Je), {
532
+ "action-pending": H.value,
533
+ description: l(f)("keys.delete.description"),
534
+ "entity-name": V.value && (V.value.name || V.value.id),
566
535
  "entity-type": l(We).Key,
567
- error: z.value,
536
+ error: le.value,
568
537
  "need-confirm": !1,
569
- title: l(y)("keys.delete.title"),
570
- visible: H.value,
571
- onCancel: oe,
572
- onProceed: o
538
+ title: l(f)("keys.delete.title"),
539
+ visible: L.value,
540
+ onCancel: fe,
541
+ onProceed: oe
573
542
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
574
543
  ]);
575
544
  };
576
545
  }
577
- }), Ve = (a, q) => {
578
- const S = a.__vccOpts || a;
579
- for (const [t, y] of q)
580
- S[t] = y;
581
- return S;
582
- }, It = /* @__PURE__ */ Ve(nt, [["__scopeId", "data-v-715f40fe"]]), rt = { class: "kong-ui-entities-keys-form" }, dt = { "data-testid": "no-search-results" }, ct = { class: "select-item-container" }, yt = { class: "select-item-label" }, ft = { class: "select-item-description" }, ut = {
546
+ }), $e = (i, P) => {
547
+ const _ = i.__vccOpts || i;
548
+ for (const [t, f] of P)
549
+ _[t] = f;
550
+ return _;
551
+ }, St = /* @__PURE__ */ $e(st, [["__scopeId", "data-v-5f1a04fb"]]), nt = { class: "kong-ui-entities-keys-form" }, rt = { "data-testid": "no-search-results" }, dt = { class: "select-item-container" }, ct = { class: "select-item-label" }, yt = { class: "select-item-description" }, ft = {
583
552
  key: 1,
584
553
  class: "invalid-key-set-message",
585
554
  "data-testid": "invalid-key-set-message"
586
- }, kt = { "data-testid": "key-format-container" }, pt = /* @__PURE__ */ ge({
555
+ }, ut = { "data-testid": "key-format-container" }, kt = /* @__PURE__ */ me({
587
556
  __name: "KeyForm",
588
557
  props: {
589
558
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
590
559
  config: {
591
560
  type: Object,
592
561
  required: !0,
593
- validator: (a) => !(!a || !["konnect", "kongManager"].includes(a == null ? void 0 : a.app) || a.app === "konnect" && !a.controlPlaneId || a.app === "kongManager" && typeof a.workspace != "string" || !a.cancelRoute)
562
+ validator: (i) => !(!i || !["konnect", "kongManager"].includes(i == null ? void 0 : i.app) || i.app === "konnect" && !i.controlPlaneId || i.app === "kongManager" && typeof i.workspace != "string" || !i.cancelRoute)
594
563
  },
595
564
  /** If a valid Key ID is provided, it will put the form in Edit mode instead of Create */
596
565
  keyId: {
@@ -618,9 +587,9 @@ const he = {
618
587
  }
619
588
  },
620
589
  emits: ["update", "error", "loading"],
621
- setup(a, { emit: q }) {
590
+ setup(i, { emit: P }) {
622
591
  var oe;
623
- const S = q, t = a, y = Ee(), { i18n: { t: d } } = he.useI18n(), { getMessageFromError: $ } = He(), { axiosInstance: F } = ve((oe = t.config) == null ? void 0 : oe.axiosRequestConfig), X = m(() => t.keySetId ? P.form[t.config.app].edit.forKeySet.replace(/{keySetId}/gi, t.keySetId) : P.form[t.config.app].edit.all), j = m(() => t.keyId ? ne.Edit : ne.Create), e = _e({
592
+ const _ = P, t = i, f = xe(), { i18n: { t: r } } = ve.useI18n(), { getMessageFromError: K } = Le(), { axiosInstance: q } = ge((oe = t.config) == null ? void 0 : oe.axiosRequestConfig), z = h(() => t.keySetId ? O.form[t.config.app].edit.forKeySet.replace(/{keySetId}/gi, t.keySetId) : O.form[t.config.app].edit.all), $ = h(() => t.keyId ? se.Edit : se.Create), e = be({
624
593
  fields: {
625
594
  name: "",
626
595
  tags: "",
@@ -634,7 +603,7 @@ const he = {
634
603
  },
635
604
  isReadonly: !1,
636
605
  errorMessage: ""
637
- }), w = _e({
606
+ }), C = be({
638
607
  name: "",
639
608
  tags: "",
640
609
  key_id: "",
@@ -643,271 +612,271 @@ const he = {
643
612
  jwk: "",
644
613
  private_key: "",
645
614
  public_key: ""
646
- }), N = [
615
+ }), D = [
647
616
  {
648
- label: d("keys.form.fields.key_format.options.jwk"),
617
+ label: r("keys.form.fields.key_format.options.jwk"),
649
618
  value: "jwk"
650
619
  },
651
620
  {
652
- label: d("keys.form.fields.key_format.options.pem"),
621
+ label: r("keys.form.fields.key_format.options.pem"),
653
622
  value: "pem"
654
623
  }
655
- ], D = m(() => e.isReadonly || j.value === ne.Create && !!t.fixedKeySetId), Z = m(() => !D.value);
656
- te(() => t.fixedKeySetId, (o) => {
657
- j.value === ne.Create && (e.fields.key_set = o);
624
+ ], T = h(() => e.isReadonly || $.value === se.Create && !!t.fixedKeySetId), J = h(() => !T.value);
625
+ ee(() => t.fixedKeySetId, (o) => {
626
+ $.value === se.Create && (e.fields.key_set = o);
658
627
  }, { immediate: !0 });
659
- const L = m(() => JSON.stringify(e.fields) !== JSON.stringify(w) && !!e.fields.key_id && !!e.fields.key_format && (e.fields.key_format === "jwk" && !!e.fields.jwk || e.fields.key_format === "pem" && !!e.fields.private_key && !!e.fields.public_key)), M = (o) => {
660
- var r, h, _, s;
661
- e.fields.key_id = (o == null ? void 0 : o.kid) || "", e.fields.name = (o == null ? void 0 : o.name) || "", e.fields.tags = ((r = o == null ? void 0 : o.tags) == null ? void 0 : r.join(", ")) || "", e.fields.key_set = ((h = o == null ? void 0 : o.set) == null ? void 0 : h.id) || "", e.fields.key_format = o != null && o.pem ? "pem" : "jwk", e.fields.jwk = (o == null ? void 0 : o.jwk) || "", e.fields.private_key = ((_ = o == null ? void 0 : o.pem) == null ? void 0 : _.private_key) || "", e.fields.public_key = ((s = o == null ? void 0 : o.pem) == null ? void 0 : s.public_key) || "", t.showx5t && (e.fields.x5t = (o == null ? void 0 : o.x5t) || ""), Object.assign(w, e.fields);
628
+ const E = h(() => JSON.stringify(e.fields) !== JSON.stringify(C) && !!e.fields.key_id && !!e.fields.key_format && (e.fields.key_format === "jwk" && !!e.fields.jwk || e.fields.key_format === "pem" && !!e.fields.private_key && !!e.fields.public_key)), G = (o) => {
629
+ var n, b, a, c;
630
+ e.fields.key_id = (o == null ? void 0 : o.kid) || "", e.fields.name = (o == null ? void 0 : o.name) || "", e.fields.tags = ((n = o == null ? void 0 : o.tags) == null ? void 0 : n.join(", ")) || "", e.fields.key_set = ((b = o == null ? void 0 : o.set) == null ? void 0 : b.id) || "", e.fields.key_format = o != null && o.pem ? "pem" : "jwk", e.fields.jwk = (o == null ? void 0 : o.jwk) || "", e.fields.private_key = ((a = o == null ? void 0 : o.pem) == null ? void 0 : a.private_key) || "", e.fields.public_key = ((c = o == null ? void 0 : o.pem) == null ? void 0 : c.public_key) || "", t.showx5t && (e.fields.x5t = (o == null ? void 0 : o.x5t) || ""), Object.assign(C, e.fields);
662
631
  }, W = () => {
663
- y.push(t.config.cancelRoute);
664
- }, c = m(() => {
665
- var r, h;
666
- let o = `${t.config.apiBaseUrl}${P.form[t.config.app][j.value][t.keySetId ? "forKeySet" : "all"]}`;
667
- return t.config.app === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((r = t.config) == null ? void 0 : r.controlPlaneId) || "") : t.config.app === "kongManager" && (o = o.replace(/\/{workspace}/gi, (h = t.config) != null && h.workspace ? `/${t.config.workspace}` : "")), o = o.replace(/{id}/gi, t.keyId).replace(/{keySetId}/gi, t.keySetId || ""), o;
668
- }), g = m(() => {
669
- var o, r, h;
632
+ f.push(t.config.cancelRoute);
633
+ }, y = h(() => {
634
+ var n, b;
635
+ let o = `${t.config.apiBaseUrl}${O.form[t.config.app][$.value][t.keySetId ? "forKeySet" : "all"]}`;
636
+ return t.config.app === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((n = t.config) == null ? void 0 : n.controlPlaneId) || "") : t.config.app === "kongManager" && (o = o.replace(/\/{workspace}/gi, (b = t.config) != null && b.workspace ? `/${t.config.workspace}` : "")), o = o.replace(/{id}/gi, t.keyId).replace(/{keySetId}/gi, t.keySetId || ""), o;
637
+ }), g = h(() => {
638
+ var o, n, b;
670
639
  return {
671
640
  kid: e.fields.key_id,
672
641
  ...t.showx5t ? { x5t: e.fields.x5t || null } : {},
673
642
  name: e.fields.name || null,
674
- tags: ((h = (r = (o = e.fields.tags) == null ? void 0 : o.split(",")) == null ? void 0 : r.map((_) => String(_ || "").trim())) == null ? void 0 : h.filter((_) => _ !== "")) || [],
643
+ tags: ((b = (n = (o = e.fields.tags) == null ? void 0 : o.split(",")) == null ? void 0 : n.map((a) => String(a || "").trim())) == null ? void 0 : b.filter((a) => a !== "")) || [],
675
644
  set: e.fields.key_set ? { id: e.fields.key_set } : null,
676
645
  jwk: e.fields.key_format === "jwk" ? e.fields.jwk : null,
677
646
  pem: e.fields.key_format === "pem" ? { private_key: e.fields.private_key, public_key: e.fields.public_key } : null
678
647
  };
679
- }), C = async () => {
680
- var o, r, h, _, s;
648
+ }), j = async () => {
649
+ var o, n, b, a, c;
681
650
  try {
682
651
  e.isReadonly = !0;
683
- let i;
684
- if (j.value === "create" ? i = await F.post(c.value, g.value) : j.value === "edit" && (i = ((o = t.config) == null ? void 0 : o.app) === "konnect" ? await F.put(c.value, g.value) : await F.patch(c.value, g.value)), i) {
685
- const { data: n } = i;
686
- e.fields.key_id = (n == null ? void 0 : n.kid) || "", e.fields.name = (n == null ? void 0 : n.name) || "", e.fields.tags = ((r = n == null ? void 0 : n.tags) == null ? void 0 : r.join(", ")) || "", e.fields.key_set = ((h = n == null ? void 0 : n.set) == null ? void 0 : h.id) || "", e.fields.key_format = n != null && n.pem ? "pem" : "jwk", e.fields.jwk = (n == null ? void 0 : n.jwk) || "", e.fields.private_key = ((_ = n == null ? void 0 : n.pem) == null ? void 0 : _.private_key) || "", e.fields.public_key = ((s = n == null ? void 0 : n.pem) == null ? void 0 : s.public_key) || "", t.showx5t && (e.fields.x5t = (n == null ? void 0 : n.x5t) || ""), Object.assign(w, e.fields), S("update", i == null ? void 0 : i.data);
652
+ let s;
653
+ if ($.value === "create" ? s = await q.post(y.value, g.value) : $.value === "edit" && (s = ((o = t.config) == null ? void 0 : o.app) === "konnect" ? await q.put(y.value, g.value) : await q.patch(y.value, g.value)), s) {
654
+ const { data: d } = s;
655
+ e.fields.key_id = (d == null ? void 0 : d.kid) || "", e.fields.name = (d == null ? void 0 : d.name) || "", e.fields.tags = ((n = d == null ? void 0 : d.tags) == null ? void 0 : n.join(", ")) || "", e.fields.key_set = ((b = d == null ? void 0 : d.set) == null ? void 0 : b.id) || "", e.fields.key_format = d != null && d.pem ? "pem" : "jwk", e.fields.jwk = (d == null ? void 0 : d.jwk) || "", e.fields.private_key = ((a = d == null ? void 0 : d.pem) == null ? void 0 : a.private_key) || "", e.fields.public_key = ((c = d == null ? void 0 : d.pem) == null ? void 0 : c.public_key) || "", t.showx5t && (e.fields.x5t = (d == null ? void 0 : d.x5t) || ""), Object.assign(C, e.fields), _("update", s == null ? void 0 : s.data);
687
656
  }
688
- } catch (i) {
689
- e.errorMessage = $(i), S("error", i);
657
+ } catch (s) {
658
+ e.errorMessage = K(s), _("error", s);
690
659
  } finally {
691
660
  e.isReadonly = !1;
692
661
  }
693
662
  }, {
694
663
  debouncedQueryChange: v,
695
- loading: x,
696
- allRecords: k,
697
- error: le,
698
- validationError: re,
699
- loadItems: de,
700
- results: ce
701
- } = Qe(t.config, P.form[t.config.app].keySets, void 0, {
664
+ loading: I,
665
+ allRecords: p,
666
+ error: te,
667
+ validationError: ne,
668
+ loadItems: re,
669
+ results: de
670
+ } = He(t.config, O.form[t.config.app].keySets, void 0, {
702
671
  fetchedItemsKey: "data",
703
672
  searchKeys: ["id", "name"]
704
- }), ye = (o) => {
705
- (!o || o !== e.fields.key_set && o !== w.key_set) && v(o);
706
- }, fe = m(() => le.value ? d("keys.errors.key_sets.fetch") : ""), ie = m(() => re.value ? d("keys.errors.key_sets.invalid") : ""), T = I(0), H = m(() => k.value === void 0), Q = m(() => {
673
+ }), ce = (o) => {
674
+ (!o || o !== e.fields.key_set && o !== C.key_set) && v(o);
675
+ }, ye = h(() => te.value ? r("keys.errors.key_sets.fetch") : ""), V = h(() => ne.value ? r("keys.errors.key_sets.invalid") : ""), L = w(0), H = h(() => p.value === void 0), le = h(() => {
707
676
  if (H.value)
708
- return t.config.app === "konnect" ? d("keys.form.fields.key_set.footer") : void 0;
709
- }), z = I(/* @__PURE__ */ new Set()), ae = m(() => Array.from(z.value).map((r) => ({
710
- name: r.name || "",
677
+ return t.config.app === "konnect" ? r("keys.form.fields.key_set.footer") : void 0;
678
+ }), X = w(/* @__PURE__ */ new Set()), ie = h(() => Array.from(X.value).map((n) => ({
679
+ name: n.name || "",
711
680
  // can't use name for label or it tries to search => 404
712
681
  label: "",
713
682
  // leave it blank so no flicker when used with selected-item-template
714
- value: r.id,
715
- selected: e.fields.key_set === r.id
716
- }))), ue = (o) => {
717
- z.value.clear();
718
- let r;
719
- for (r of o)
720
- z.value.add(r);
683
+ value: n.id,
684
+ selected: e.fields.key_set === n.id
685
+ }))), fe = (o) => {
686
+ X.value.clear();
687
+ let n;
688
+ for (n of o)
689
+ X.value.add(n);
721
690
  };
722
- return te(ce, (o) => {
723
- ue(o);
724
- }, { immediate: !0, deep: !0 }), te(ae, () => {
725
- T.value++;
726
- }, { immediate: !0, deep: !0 }), $e(async () => {
727
- await de();
728
- }), (o, r) => {
729
- const h = O("KInput"), _ = O("KSelect"), s = O("KTextArea");
730
- return b(), J("div", rt, [
731
- f(l(ze), {
732
- "can-submit": L.value,
733
- config: a.config,
734
- "edit-id": a.keyId,
735
- "entity-type": l(je).Key,
736
- "error-message": e.errorMessage || fe.value,
737
- "fetch-url": X.value,
691
+ return ee(de, (o) => {
692
+ fe(o);
693
+ }, { immediate: !0, deep: !0 }), ee(ie, () => {
694
+ L.value++;
695
+ }, { immediate: !0, deep: !0 }), Ce(async () => {
696
+ await re();
697
+ }), (o, n) => {
698
+ const b = B("KInput"), a = B("KSelect"), c = B("KTextArea");
699
+ return S(), N("div", nt, [
700
+ u(l(Qe), {
701
+ "can-submit": E.value,
702
+ config: i.config,
703
+ "edit-id": i.keyId,
704
+ "entity-type": l(Ke).Key,
705
+ "error-message": e.errorMessage || ye.value,
706
+ "fetch-url": z.value,
738
707
  "form-fields": g.value,
739
708
  "is-readonly": e.isReadonly,
740
709
  onCancel: W,
741
- "onFetch:error": r[9] || (r[9] = (i) => o.$emit("error", i)),
742
- "onFetch:success": M,
743
- onLoading: r[10] || (r[10] = (i) => o.$emit("loading", i)),
744
- onSubmit: C
710
+ "onFetch:error": n[9] || (n[9] = (s) => o.$emit("error", s)),
711
+ "onFetch:success": G,
712
+ onLoading: n[10] || (n[10] = (s) => o.$emit("loading", s)),
713
+ onSubmit: j
745
714
  }, {
746
- default: u(() => [
747
- f(l(xe), {
748
- description: l(d)("keys.form.sections.general.description"),
749
- title: l(d)("keys.form.sections.general.title")
715
+ default: k(() => [
716
+ u(l(Ie), {
717
+ description: l(r)("keys.form.sections.general.description"),
718
+ title: l(r)("keys.form.sections.general.title")
750
719
  }, {
751
- default: u(() => [
752
- f(h, {
720
+ default: k(() => [
721
+ u(b, {
753
722
  modelValue: e.fields.key_id,
754
- "onUpdate:modelValue": r[0] || (r[0] = (i) => e.fields.key_id = i),
723
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => e.fields.key_id = s),
755
724
  modelModifiers: { trim: !0 },
756
725
  autocomplete: "off",
757
726
  "data-testid": "key-form-id",
758
- help: l(d)("keys.form.fields.id.help"),
759
- label: l(d)("keys.form.fields.id.label"),
727
+ help: l(r)("keys.form.fields.id.help"),
728
+ label: l(r)("keys.form.fields.id.label"),
760
729
  "label-attributes": {
761
- info: l(d)("keys.form.fields.id.tooltip"),
730
+ info: l(r)("keys.form.fields.id.tooltip"),
762
731
  tooltipAttributes: { maxWidth: "400" }
763
732
  },
764
- placeholder: l(d)("keys.form.fields.id.placeholder"),
733
+ placeholder: l(r)("keys.form.fields.id.placeholder"),
765
734
  readonly: e.isReadonly,
766
735
  required: "",
767
736
  type: "text"
768
737
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
769
- a.showx5t ? (b(), V(h, {
738
+ i.showx5t ? (S(), R(b, {
770
739
  key: 0,
771
740
  modelValue: e.fields.x5t,
772
- "onUpdate:modelValue": r[1] || (r[1] = (i) => e.fields.x5t = i),
741
+ "onUpdate:modelValue": n[1] || (n[1] = (s) => e.fields.x5t = s),
773
742
  modelModifiers: { trim: !0 },
774
743
  autocomplete: "off",
775
744
  "data-testid": "key-form-x5t",
776
- help: l(d)("keys.form.fields.x5t.help"),
777
- label: l(d)("keys.form.fields.x5t.label"),
745
+ help: l(r)("keys.form.fields.x5t.help"),
746
+ label: l(r)("keys.form.fields.x5t.label"),
778
747
  "label-attributes": {
779
- info: l(d)("keys.form.fields.x5t.tooltip"),
748
+ info: l(r)("keys.form.fields.x5t.tooltip"),
780
749
  tooltipAttributes: { maxWidth: "400" }
781
750
  },
782
- placeholder: l(d)("keys.form.fields.x5t.placeholder"),
751
+ placeholder: l(r)("keys.form.fields.x5t.placeholder"),
783
752
  readonly: e.isReadonly,
784
753
  type: "text"
785
- }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])) : G("", !0),
786
- f(h, {
754
+ }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])) : Q("", !0),
755
+ u(b, {
787
756
  modelValue: e.fields.name,
788
- "onUpdate:modelValue": r[2] || (r[2] = (i) => e.fields.name = i),
757
+ "onUpdate:modelValue": n[2] || (n[2] = (s) => e.fields.name = s),
789
758
  modelModifiers: { trim: !0 },
790
759
  autocomplete: "off",
791
760
  "data-testid": "key-form-name",
792
- label: l(d)("keys.form.fields.name.label"),
793
- placeholder: l(d)("keys.form.fields.name.placeholder"),
761
+ label: l(r)("keys.form.fields.name.label"),
762
+ placeholder: l(r)("keys.form.fields.name.placeholder"),
794
763
  readonly: e.isReadonly,
795
764
  type: "text"
796
765
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
797
- f(_, {
766
+ u(a, {
798
767
  modelValue: e.fields.key_set,
799
- "onUpdate:modelValue": r[3] || (r[3] = (i) => e.fields.key_set = i),
800
- clearable: Z.value,
768
+ "onUpdate:modelValue": n[3] || (n[3] = (s) => e.fields.key_set = s),
769
+ clearable: J.value,
801
770
  "data-testid": "key-form-key-set",
802
- "dropdown-footer-text": Q.value,
771
+ "dropdown-footer-text": le.value,
803
772
  "enable-filtering": "",
804
773
  "filter-function": () => !0,
805
- items: ae.value,
806
- label: l(d)("keys.form.fields.key_set.label"),
807
- loading: l(x),
808
- placeholder: l(d)("keys.form.fields.key_set.placeholder"),
809
- readonly: D.value,
774
+ items: ie.value,
775
+ label: l(r)("keys.form.fields.key_set.label"),
776
+ loading: l(I),
777
+ placeholder: l(r)("keys.form.fields.key_set.placeholder"),
778
+ readonly: T.value,
810
779
  width: "100%",
811
- onQueryChange: ye
780
+ onQueryChange: ce
812
781
  }, {
813
- loading: u(() => [
814
- R("div", null, K(l(d)("keys.actions.loading")), 1)
782
+ loading: k(() => [
783
+ M("div", null, x(l(r)("keys.actions.loading")), 1)
815
784
  ]),
816
- empty: u(() => [
817
- R("div", dt, K(l(d)("keys.search.no_results")), 1)
785
+ empty: k(() => [
786
+ M("div", rt, x(l(r)("keys.search.no_results")), 1)
818
787
  ]),
819
- "selected-item-template": u(({ item: i }) => [
820
- R("div", null, K(i.name), 1)
788
+ "selected-item-template": k(({ item: s }) => [
789
+ M("div", null, x(s.name), 1)
821
790
  ]),
822
- "item-template": u(({ item: i }) => [
823
- R("div", ct, [
824
- R("div", yt, K(i.name), 1),
825
- R("div", ft, K(i.value), 1)
791
+ "item-template": k(({ item: s }) => [
792
+ M("div", dt, [
793
+ M("div", ct, x(s.name), 1),
794
+ M("div", yt, x(s.value), 1)
826
795
  ])
827
796
  ]),
828
797
  _: 1
829
798
  }, 8, ["modelValue", "clearable", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"]),
830
- ie.value ? (b(), J("p", ut, K(ie.value), 1)) : G("", !0),
831
- f(h, {
799
+ V.value ? (S(), N("p", ft, x(V.value), 1)) : Q("", !0),
800
+ u(b, {
832
801
  modelValue: e.fields.tags,
833
- "onUpdate:modelValue": r[4] || (r[4] = (i) => e.fields.tags = i),
802
+ "onUpdate:modelValue": n[4] || (n[4] = (s) => e.fields.tags = s),
834
803
  modelModifiers: { trim: !0 },
835
804
  autocomplete: "off",
836
805
  "data-testid": "key-form-tags",
837
- help: l(d)("keys.form.fields.tags.help"),
838
- label: l(d)("keys.form.fields.tags.label"),
806
+ help: l(r)("keys.form.fields.tags.help"),
807
+ label: l(r)("keys.form.fields.tags.label"),
839
808
  "label-attributes": {
840
- info: l(d)("keys.form.fields.tags.tooltip"),
809
+ info: l(r)("keys.form.fields.tags.tooltip"),
841
810
  tooltipAttributes: { maxWidth: "400" }
842
811
  },
843
- placeholder: l(d)("keys.form.fields.tags.placeholder"),
812
+ placeholder: l(r)("keys.form.fields.tags.placeholder"),
844
813
  readonly: e.isReadonly,
845
814
  type: "text"
846
815
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
847
816
  ]),
848
817
  _: 1
849
818
  }, 8, ["description", "title"]),
850
- f(l(xe), {
851
- description: l(d)("keys.form.sections.keys.description"),
819
+ u(l(Ie), {
820
+ description: l(r)("keys.form.sections.keys.description"),
852
821
  "has-divider": "",
853
- title: l(d)("keys.form.sections.keys.title")
822
+ title: l(r)("keys.form.sections.keys.title")
854
823
  }, {
855
- default: u(() => [
856
- R("div", kt, [
857
- f(_, {
824
+ default: k(() => [
825
+ M("div", ut, [
826
+ u(a, {
858
827
  modelValue: e.fields.key_format,
859
- "onUpdate:modelValue": r[5] || (r[5] = (i) => e.fields.key_format = i),
828
+ "onUpdate:modelValue": n[5] || (n[5] = (s) => e.fields.key_format = s),
860
829
  "data-testid": "key-form-key-format",
861
- items: N,
862
- label: l(d)("keys.form.fields.key_format.label"),
830
+ items: D,
831
+ label: l(r)("keys.form.fields.key_format.label"),
863
832
  readonly: e.isReadonly,
864
833
  required: "",
865
834
  width: "100%"
866
835
  }, null, 8, ["modelValue", "label", "readonly"])
867
836
  ]),
868
- e.fields.key_format === "jwk" ? (b(), V(s, {
837
+ e.fields.key_format === "jwk" ? (S(), R(c, {
869
838
  key: 0,
870
839
  modelValue: e.fields.jwk,
871
- "onUpdate:modelValue": r[6] || (r[6] = (i) => e.fields.jwk = i),
840
+ "onUpdate:modelValue": n[6] || (n[6] = (s) => e.fields.jwk = s),
872
841
  modelModifiers: { trim: !0 },
873
842
  "character-limit": !1,
874
843
  class: "key-form-textarea",
875
844
  "data-testid": "key-form-jwk",
876
- label: l(d)("keys.form.fields.jwk.label"),
845
+ label: l(r)("keys.form.fields.jwk.label"),
877
846
  "label-attributes": {
878
- info: l(d)("keys.form.fields.jwk.tooltip"),
847
+ info: l(r)("keys.form.fields.jwk.tooltip"),
879
848
  tooltipAttributes: { maxWidth: "400" }
880
849
  },
881
- placeholder: l(d)("keys.form.fields.jwk.placeholder"),
850
+ placeholder: l(r)("keys.form.fields.jwk.placeholder"),
882
851
  readonly: e.isReadonly,
883
852
  required: ""
884
- }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])) : G("", !0),
885
- e.fields.key_format === "pem" ? (b(), V(s, {
853
+ }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])) : Q("", !0),
854
+ e.fields.key_format === "pem" ? (S(), R(c, {
886
855
  key: 1,
887
856
  modelValue: e.fields.private_key,
888
- "onUpdate:modelValue": r[7] || (r[7] = (i) => e.fields.private_key = i),
857
+ "onUpdate:modelValue": n[7] || (n[7] = (s) => e.fields.private_key = s),
889
858
  modelModifiers: { trim: !0 },
890
859
  "character-limit": !1,
891
860
  class: "key-form-textarea",
892
861
  "data-testid": "key-form-private-key",
893
- label: l(d)("keys.form.fields.private_key.label"),
894
- placeholder: l(d)("keys.form.fields.private_key.placeholder"),
862
+ label: l(r)("keys.form.fields.private_key.label"),
863
+ placeholder: l(r)("keys.form.fields.private_key.placeholder"),
895
864
  readonly: e.isReadonly,
896
865
  required: ""
897
- }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : G("", !0),
898
- e.fields.key_format === "pem" ? (b(), V(s, {
866
+ }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : Q("", !0),
867
+ e.fields.key_format === "pem" ? (S(), R(c, {
899
868
  key: 2,
900
869
  modelValue: e.fields.public_key,
901
- "onUpdate:modelValue": r[8] || (r[8] = (i) => e.fields.public_key = i),
870
+ "onUpdate:modelValue": n[8] || (n[8] = (s) => e.fields.public_key = s),
902
871
  modelModifiers: { trim: !0 },
903
872
  "character-limit": !1,
904
873
  class: "key-form-textarea",
905
874
  "data-testid": "key-form-public-key",
906
- label: l(d)("keys.form.fields.public_key.label"),
907
- placeholder: l(d)("keys.form.fields.public_key.placeholder"),
875
+ label: l(r)("keys.form.fields.public_key.label"),
876
+ placeholder: l(r)("keys.form.fields.public_key.placeholder"),
908
877
  readonly: e.isReadonly,
909
878
  required: ""
910
- }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : G("", !0)
879
+ }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : Q("", !0)
911
880
  ]),
912
881
  _: 1
913
882
  }, 8, ["description", "title"])
@@ -917,14 +886,14 @@ const he = {
917
886
  ]);
918
887
  };
919
888
  }
920
- }), wt = /* @__PURE__ */ Ve(pt, [["__scopeId", "data-v-f812000b"]]), mt = { class: "kong-ui-entities-keys-entity-config-card" }, gt = { key: 2 }, Ct = /* @__PURE__ */ ge({
889
+ }), It = /* @__PURE__ */ $e(kt, [["__scopeId", "data-v-f812000b"]]), pt = { class: "kong-ui-entities-keys-entity-config-card" }, mt = { key: 2 }, wt = /* @__PURE__ */ me({
921
890
  __name: "KeyConfigCard",
922
891
  props: {
923
892
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
924
893
  config: {
925
894
  type: Object,
926
895
  required: !0,
927
- validator: (a) => !(!a || !["konnect", "kongManager"].includes(a == null ? void 0 : a.app) || a.app === "konnect" && !a.controlPlaneId || a.app === "kongManager" && typeof a.workspace != "string" || !a.entityId)
896
+ validator: (i) => !(!i || !["konnect", "kongManager"].includes(i == null ? void 0 : i.app) || i.app === "konnect" && !i.controlPlaneId || i.app === "kongManager" && typeof i.workspace != "string" || !i.entityId)
928
897
  },
929
898
  /**
930
899
  * External link for documentation that determines visibility of Documentation button
@@ -950,143 +919,143 @@ const he = {
950
919
  }
951
920
  },
952
921
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
953
- setup(a, { emit: q }) {
922
+ setup(i, { emit: P }) {
954
923
  var W;
955
- const S = q, t = a, { axiosInstance: y } = ve((W = t.config) == null ? void 0 : W.axiosRequestConfig), { convertKeyToTitle: d } = Ge(), { i18n: { t: $ } } = he.useI18n(), F = m(() => t.keySetId ? `${P.form[t.config.app].edit.forKeySet}`.replace(/{keySetId}/gi, t.keySetId) : P.form[t.config.app].edit.all), X = m(() => {
956
- var c;
957
- return (c = P.form[t.config.app]) == null ? void 0 : c.getKeySet;
958
- }), j = I(), e = I({}), w = I(t.keySetId || ""), N = I(""), D = I(!1), Z = async (c) => {
924
+ const _ = P, t = i, { axiosInstance: f } = ge((W = t.config) == null ? void 0 : W.axiosRequestConfig), { convertKeyToTitle: r } = ze(), { i18n: { t: K } } = ve.useI18n(), q = h(() => t.keySetId ? `${O.form[t.config.app].edit.forKeySet}`.replace(/{keySetId}/gi, t.keySetId) : O.form[t.config.app].edit.all), z = h(() => {
925
+ var y;
926
+ return (y = O.form[t.config.app]) == null ? void 0 : y.getKeySet;
927
+ }), $ = w(), e = w({}), C = w(t.keySetId || ""), D = w(""), T = w(!1), J = async (y) => {
959
928
  var g;
960
- j.value = c, w.value = (g = c == null ? void 0 : c.set) == null ? void 0 : g.id, S("fetch:success", c), L(c);
929
+ $.value = y, C.value = (g = y == null ? void 0 : y.set) == null ? void 0 : g.id, _("fetch:success", y), E(y);
961
930
  };
962
- te(w, async () => {
963
- var g, C;
964
- if (!w.value)
931
+ ee(C, async () => {
932
+ var g, j;
933
+ if (!C.value)
965
934
  return;
966
- let c = `${t.config.apiBaseUrl}${X.value}`;
967
- t.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((g = t.config) == null ? void 0 : g.controlPlaneId) || "").replace(/{keySetId}/gi, w.value || "") : t.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (C = t.config) != null && C.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, w.value || ""));
935
+ let y = `${t.config.apiBaseUrl}${z.value}`;
936
+ t.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((g = t.config) == null ? void 0 : g.controlPlaneId) || "").replace(/{keySetId}/gi, C.value || "") : t.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (j = t.config) != null && j.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, C.value || ""));
968
937
  try {
969
- D.value = !0;
970
- const { data: v } = await y.get(c, {
971
- validateStatus: (x) => x === 404 || x >= 200 && x < 300
938
+ T.value = !0;
939
+ const { data: v } = await f.get(y, {
940
+ validateStatus: (I) => I === 404 || I >= 200 && I < 300
972
941
  // in case KeySet is deleted
973
942
  });
974
- N.value = (v == null ? void 0 : v.name) || (v == null ? void 0 : v.id);
943
+ D.value = (v == null ? void 0 : v.name) || (v == null ? void 0 : v.id);
975
944
  } catch (v) {
976
- S("fetch:error", v);
945
+ _("fetch:error", v);
977
946
  } finally {
978
- D.value = !1;
947
+ T.value = !1;
979
948
  }
980
949
  }, { immediate: !0 });
981
- const L = (c) => {
982
- var g, C;
950
+ const E = (y) => {
951
+ var g, j;
983
952
  try {
984
- if (c.jwk) {
985
- const v = JSON.parse(c.jwk);
986
- Object.keys(v).forEach((x) => {
953
+ if (y.jwk) {
954
+ const v = JSON.parse(y.jwk);
955
+ Object.keys(v).forEach((I) => {
987
956
  e.value = {
988
957
  ...e.value,
989
- [`jwk.${x}`]: v[x]
958
+ [`jwk.${I}`]: v[I]
990
959
  };
991
960
  });
992
961
  } else
993
962
  e.value = {
994
- "pem.public_key": (g = c == null ? void 0 : c.pem) == null ? void 0 : g.public_key,
995
- "pem.private_key": (C = c == null ? void 0 : c.pem) == null ? void 0 : C.private_key
963
+ "pem.public_key": (g = y == null ? void 0 : y.pem) == null ? void 0 : g.public_key,
964
+ "pem.private_key": (j = y == null ? void 0 : y.pem) == null ? void 0 : j.private_key
996
965
  };
997
966
  } catch (v) {
998
- S("fetch:error", v);
967
+ _("fetch:error", v);
999
968
  }
1000
969
  return e;
1001
- }, M = I({
970
+ }, G = w({
1002
971
  id: {},
1003
972
  name: {
1004
- tooltip: $("keys.form.fields.name.tooltip")
973
+ tooltip: K("keys.form.fields.name.tooltip")
1005
974
  },
1006
975
  last_updated: {},
1007
976
  created: {},
1008
977
  set: {
1009
- label: $("keys.form.fields.set.label"),
1010
- section: ke.Basic,
1011
- tooltip: $("keys.form.fields.set.tooltip"),
978
+ label: K("keys.form.fields.set.label"),
979
+ section: ue.Basic,
980
+ tooltip: K("keys.form.fields.set.tooltip"),
1012
981
  order: 5
1013
982
  },
1014
983
  kid: {
1015
- label: $("keys.form.fields.kid.label"),
1016
- section: ke.Basic,
1017
- tooltip: $("keys.form.fields.kid.tooltip")
984
+ label: K("keys.form.fields.kid.label"),
985
+ section: ue.Basic,
986
+ tooltip: K("keys.form.fields.kid.tooltip")
1018
987
  },
1019
988
  tags: {
1020
- tooltip: $("keys.form.fields.tags.tooltip")
989
+ tooltip: K("keys.form.fields.tags.tooltip")
1021
990
  },
1022
991
  // advanced fields
1023
992
  jwk: {
1024
- label: $("keys.form.fields.jwk.label"),
1025
- type: pe.Json
993
+ label: K("keys.form.fields.jwk.label"),
994
+ type: ke.Json
1026
995
  },
1027
996
  pem: {
1028
- section: ke.Advanced,
1029
- label: $("keys.form.fields.key_format.options.pem"),
1030
- type: pe.Json
997
+ section: ue.Advanced,
998
+ label: K("keys.form.fields.key_format.options.pem"),
999
+ type: ke.Json
1031
1000
  }
1032
1001
  });
1033
- return (c, g) => {
1034
- var v, x;
1035
- const C = O("KSkeleton");
1036
- return b(), J("div", mt, [
1037
- f(l(Xe), {
1038
- config: a.config,
1039
- "config-card-doc": a.configCardDoc,
1040
- "config-schema": M.value,
1041
- "entity-type": l(je).Key,
1042
- "fetch-url": F.value,
1043
- "hide-title": a.hideTitle,
1044
- "onFetch:error": g[0] || (g[0] = (k) => c.$emit("fetch:error", k)),
1045
- "onFetch:success": Z,
1046
- onLoading: g[1] || (g[1] = (k) => c.$emit("loading", k))
1047
- }, me({
1048
- set: u(({ row: k }) => [
1049
- D.value ? (b(), V(C, {
1002
+ return (y, g) => {
1003
+ var v, I;
1004
+ const j = B("KSkeleton");
1005
+ return S(), N("div", pt, [
1006
+ u(l(Ge), {
1007
+ config: i.config,
1008
+ "config-card-doc": i.configCardDoc,
1009
+ "config-schema": G.value,
1010
+ "entity-type": l(Ke).Key,
1011
+ "fetch-url": q.value,
1012
+ "hide-title": i.hideTitle,
1013
+ "onFetch:error": g[0] || (g[0] = (p) => y.$emit("fetch:error", p)),
1014
+ "onFetch:success": J,
1015
+ onLoading: g[1] || (g[1] = (p) => y.$emit("loading", p))
1016
+ }, pe({
1017
+ set: k(({ row: p }) => [
1018
+ T.value ? (S(), R(j, {
1050
1019
  key: 0,
1051
1020
  "data-testid": "key-set-name-loader",
1052
1021
  type: "spinner"
1053
- })) : k.value && k.value.id === w.value && N.value ? (b(), V(l(Ze), {
1022
+ })) : p.value && p.value.id === C.value && D.value ? (S(), R(l(Xe), {
1054
1023
  key: 1,
1055
1024
  item: {
1056
- key: k.value.id,
1057
- value: N.value,
1058
- type: l(pe).LinkInternal
1025
+ key: p.value.id,
1026
+ value: D.value,
1027
+ type: l(ke).LinkInternal
1059
1028
  },
1060
- onClick: (le) => c.$emit("navigation-click", k.value.id, "key-sets")
1061
- }, null, 8, ["item", "onClick"])) : (b(), J("div", gt, K("–")))
1029
+ onClick: (te) => y.$emit("navigation-click", p.value.id, "key-sets")
1030
+ }, null, 8, ["item", "onClick"])) : (S(), N("div", mt, x("–")))
1062
1031
  ]),
1063
1032
  _: 2
1064
1033
  }, [
1065
- (v = j.value) != null && v.jwk ? {
1034
+ (v = $.value) != null && v.jwk ? {
1066
1035
  name: "jwk",
1067
- fn: u(() => [
1068
- (b(!0), J(Ie, null, we(Object.keys(e.value), (k) => (b(), V(l(Ke), {
1069
- key: k,
1070
- "data-testid": `${k}`,
1036
+ fn: k(() => [
1037
+ (S(!0), N(_e, null, Se(Object.keys(e.value), (p) => (S(), R(l(we), {
1038
+ key: p,
1039
+ "data-testid": `${p}`,
1071
1040
  item: {
1072
- key: k,
1073
- label: l(d)(k),
1074
- value: e.value[k]
1041
+ key: p,
1042
+ label: l(r)(p),
1043
+ value: e.value[p]
1075
1044
  }
1076
1045
  }, null, 8, ["data-testid", "item"]))), 128))
1077
1046
  ]),
1078
1047
  key: "0"
1079
1048
  } : void 0,
1080
- (x = j.value) != null && x.pem ? {
1049
+ (I = $.value) != null && I.pem ? {
1081
1050
  name: "pem",
1082
- fn: u(() => [
1083
- (b(!0), J(Ie, null, we(Object.keys(e.value), (k) => (b(), V(l(Ke), {
1084
- key: k,
1085
- "data-testid": `${k}`,
1051
+ fn: k(() => [
1052
+ (S(!0), N(_e, null, Se(Object.keys(e.value), (p) => (S(), R(l(we), {
1053
+ key: p,
1054
+ "data-testid": `${p}`,
1086
1055
  item: {
1087
- key: k,
1088
- label: l(d)(k),
1089
- value: e.value[k]
1056
+ key: p,
1057
+ label: l(r)(p),
1058
+ value: e.value[p]
1090
1059
  }
1091
1060
  }, null, 8, ["data-testid", "item"]))), 128))
1092
1061
  ]),
@@ -1098,7 +1067,7 @@ const he = {
1098
1067
  }
1099
1068
  });
1100
1069
  export {
1101
- Ct as KeyConfigCard,
1102
- wt as KeyForm,
1103
- It as KeyList
1070
+ wt as KeyConfigCard,
1071
+ It as KeyForm,
1072
+ St as KeyList
1104
1073
  };