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

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