@kong-ui-public/entities-consumer-credentials 3.2.0 → 3.2.1

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,5 +1,5 @@
1
1
  import { defineComponent as X, computed as k, openBlock as C, createBlock as z, resolveDynamicComponent as fe, normalizeStyle as ye, withCtx as l, createElementBlock as P, toDisplayString as I, createCommentVNode as H, pushScopeId as ge, popScopeId as he, createElementVNode as W, ref as w, watch as se, renderSlot as G, unref as b, resolveComponent as R, createVNode as m, createSlots as $e, withDirectives as je, vShow as Ke, renderList as Fe, createTextVNode as L, inject as Ye, onMounted as Ze, onUnmounted as Ge, onBeforeMount as Xe, Teleport as Qe, Fragment as et, withModifiers as tt } from "vue";
2
- import { createI18n as qe, i18nTComponent as Me } from "@kong-ui-public/i18n";
2
+ import { createI18n as Me, i18nTComponent as qe } from "@kong-ui-public/i18n";
3
3
  import ke from "axios";
4
4
  import "@kong/kongponents";
5
5
  import "vue-router";
@@ -252,10 +252,10 @@ const _e = "24px", rt = (e, t) => {
252
252
  credentials: ct
253
253
  };
254
254
  function dt() {
255
- const e = qe("en-us", ut);
255
+ const e = Me("en-us", ut);
256
256
  return {
257
257
  i18n: e,
258
- i18nT: Me(e)
258
+ i18nT: qe(e)
259
259
  // Translation component <i18n-t>
260
260
  };
261
261
  }
@@ -457,10 +457,10 @@ const vt = {
457
457
  toggleModal: At
458
458
  };
459
459
  function ce() {
460
- const e = qe("en-us", It);
460
+ const e = Me("en-us", It);
461
461
  return {
462
462
  i18n: e,
463
- i18nT: Me(e)
463
+ i18nT: qe(e)
464
464
  // Translation component <i18n-t>
465
465
  };
466
466
  }
@@ -528,10 +528,10 @@ function Tt(e, t, r, a = {
528
528
  } finally {
529
529
  f.value = !1;
530
530
  }
531
- }, q = w(""), D = async (v) => {
531
+ }, M = w(""), D = async (v) => {
532
532
  var J, u, N;
533
- if (q.value !== v)
534
- if (q.value = v || "", h.value === void 0)
533
+ if (M.value !== v)
534
+ if (M.value = v || "", h.value === void 0)
535
535
  try {
536
536
  if (f.value = !0, d.value = "", y.value = "", e.app === "konnect") {
537
537
  let T = A + "";
@@ -712,24 +712,24 @@ const Le = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
712
712
  }, xe = (e) => e === "*" || e === "x" || e === "X", Ne = (e) => {
713
713
  const t = parseInt(e, 10);
714
714
  return isNaN(t) ? e : t;
715
- }, Ft = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], qt = (e, t) => {
715
+ }, Ft = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Mt = (e, t) => {
716
716
  if (xe(e) || xe(t))
717
717
  return 0;
718
718
  const [r, a] = Ft(Ne(e), Ne(t));
719
719
  return r > a ? 1 : r < a ? -1 : 0;
720
720
  }, Ae = (e, t) => {
721
721
  for (let r = 0; r < Math.max(e.length, t.length); r++) {
722
- const a = qt(e[r] || "0", t[r] || "0");
722
+ const a = Mt(e[r] || "0", t[r] || "0");
723
723
  if (a !== 0)
724
724
  return a;
725
725
  }
726
726
  return 0;
727
- }, Mt = (e, t) => {
727
+ }, qt = (e, t) => {
728
728
  const r = Se(e), a = Se(t), n = r.pop(), o = a.pop(), i = Ae(r, a);
729
729
  return i !== 0 ? i : n && o ? Ae(n.split("."), o.split(".")) : n || o ? n ? -1 : 1 : 0;
730
730
  }, Ie = (e, t, r) => {
731
731
  Pt(r);
732
- const a = Mt(e, t);
732
+ const a = qt(e, t);
733
733
  return Re[r].includes(a);
734
734
  }, Re = {
735
735
  ">": [1],
@@ -1204,15 +1204,15 @@ function Fr(e) {
1204
1204
  }
1205
1205
  return t[9] && (y = +t[10], c = +(t[11] || 0), d = (y * 60 + c) * 6e4, t[9] === "-" && (d = -d)), _ = new Date(Date.UTC(r, a, n, o, i, s, f)), d && _.setTime(_.getTime() - d), _;
1206
1206
  }
1207
- function qr(e) {
1207
+ function Mr(e) {
1208
1208
  return e.toISOString();
1209
1209
  }
1210
- var Mr = new K("tag:yaml.org,2002:timestamp", {
1210
+ var qr = new K("tag:yaml.org,2002:timestamp", {
1211
1211
  kind: "scalar",
1212
1212
  resolve: Kr,
1213
1213
  construct: Fr,
1214
1214
  instanceOf: Date,
1215
- represent: qr
1215
+ represent: Mr
1216
1216
  });
1217
1217
  function Pr(e) {
1218
1218
  return e === "<<" || e === null;
@@ -1329,7 +1329,7 @@ var aa = new K("tag:yaml.org,2002:set", {
1329
1329
  });
1330
1330
  jr.extend({
1331
1331
  implicit: [
1332
- Mr,
1332
+ qr,
1333
1333
  Ur
1334
1334
  ],
1335
1335
  explicit: [
@@ -1574,20 +1574,20 @@ const le = "24px", We = (e, t) => {
1574
1574
  return ((x = r.value) == null ? void 0 : x.querySelector('[data-truncate="true"]')) || null;
1575
1575
  }), n = k(() => {
1576
1576
  var x, O;
1577
- const q = (x = t.rowEl) == null ? void 0 : x.querySelectorAll("td");
1578
- return q ? ((O = q[0]) == null ? void 0 : O.getAttribute("data-testid")) === t.keyName : !1;
1577
+ const M = (x = t.rowEl) == null ? void 0 : x.querySelectorAll("td");
1578
+ return M ? ((O = M[0]) == null ? void 0 : O.getAttribute("data-testid")) === t.keyName : !1;
1579
1579
  }), o = k(() => n.value || t.tooltip);
1580
1580
  let i;
1581
1581
  const s = () => {
1582
1582
  i && (i.disconnect(), i = void 0);
1583
1583
  }, f = () => {
1584
- var x, O, q;
1584
+ var x, O, M;
1585
1585
  let D = ((x = r.value) == null ? void 0 : x.clientWidth) || 0;
1586
1586
  if (r.value && "getComputedStyle" in window) {
1587
1587
  const v = window.getComputedStyle(r.value);
1588
1588
  D -= (parseFloat(v.paddingLeft) || 0) + (parseFloat(v.paddingRight) || 0);
1589
1589
  }
1590
- y.value = ((O = a.value) == null ? void 0 : O.getBoundingClientRect().width) || 0, c.value = D, _.value = ((q = d.value) == null ? void 0 : q.innerText) || "";
1590
+ y.value = ((O = a.value) == null ? void 0 : O.getBoundingClientRect().width) || 0, c.value = D, _.value = ((M = d.value) == null ? void 0 : M.innerText) || "";
1591
1591
  }, d = w({}), y = w(0), c = w(0), _ = w(""), h = k(() => [a.value, r.value]), F = se(
1592
1592
  h,
1593
1593
  (x) => {
@@ -1608,7 +1608,7 @@ const le = "24px", We = (e, t) => {
1608
1608
  }), Ge(() => {
1609
1609
  F();
1610
1610
  }), (x, O) => {
1611
- const q = R("KTooltip");
1611
+ const M = R("KTooltip");
1612
1612
  return C(), P("span", {
1613
1613
  ref_key: "contentRef",
1614
1614
  ref: d,
@@ -1618,7 +1618,7 @@ const le = "24px", We = (e, t) => {
1618
1618
  key: 0,
1619
1619
  "data-truncate": o.value || void 0
1620
1620
  }, [
1621
- m(q, {
1621
+ m(M, {
1622
1622
  "max-width": "300",
1623
1623
  placement: "bottomStart",
1624
1624
  text: A.value ? _.value : ""
@@ -1803,8 +1803,8 @@ const le = "24px", We = (e, t) => {
1803
1803
  a("click:row", N);
1804
1804
  }), x = (u) => {
1805
1805
  a("sort", u);
1806
- }, { setTablePreferences: O, getTablePreferences: q } = mt(), D = w(q(i.value)), v = k(() => {
1807
- const u = q(i.value);
1806
+ }, { setTablePreferences: O, getTablePreferences: M } = mt(), D = w(M(i.value)), v = k(() => {
1807
+ const u = M(i.value);
1808
1808
  return {
1809
1809
  ...r.initialFetcherParams,
1810
1810
  ...u
@@ -2067,7 +2067,7 @@ const le = "24px", We = (e, t) => {
2067
2067
  for (let e = 0; e < 256; ++e)
2068
2068
  Ea.push((e + 256).toString(16).slice(1));
2069
2069
  typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
2070
- const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCreator: za, useFetchUrlBuilder: Ha, useFetcher: ja, useDebouncedFilter: Va, useStringHelpers: Wa, useHelpers: Ja, useGatewayFeatureSupported: Ya, useTruncationDetector: Za, useValidators: Ga } = ve, Ka = { class: "kong-ui-entities-consumer-credentials-list" }, Fa = { key: 1 }, qa = /* @__PURE__ */ X({
2070
+ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCreator: za, useFetchUrlBuilder: Ha, useFetcher: ja, useDebouncedFilter: Va, useStringHelpers: Wa, useHelpers: Ja, useGatewayFeatureSupported: Ya, useTruncationDetector: Za, useValidators: Ga } = ve, Ka = { class: "kong-ui-entities-consumer-credentials-list" }, Fa = { key: 1 }, Ma = /* @__PURE__ */ X({
2071
2071
  __name: "ConsumerCredentialList",
2072
2072
  props: {
2073
2073
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2173,7 +2173,7 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2173
2173
  field: S,
2174
2174
  message: n("credentials.error.copy")
2175
2175
  });
2176
- }, q = (p) => ({
2176
+ }, M = (p) => ({
2177
2177
  label: n("credentials.actions.edit"),
2178
2178
  to: a.config.getEditRoute(p)
2179
2179
  }), D = w(void 0), v = w(!1), J = w(!1), u = w(""), N = $a(a.config, y.value), T = k(() => Pe[a.config.plugin]), j = (p) => {
@@ -2301,13 +2301,13 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2301
2301
  tags: l(({ rowValue: g }) => [
2302
2302
  (g == null ? void 0 : g.length) > 0 ? (C(), z(Je, { key: 0 }, {
2303
2303
  default: l(() => [
2304
- (C(!0), P(et, null, Fe(g, (M) => (C(), z(oe, {
2305
- key: M,
2304
+ (C(!0), P(et, null, Fe(g, (q) => (C(), z(oe, {
2305
+ key: q,
2306
2306
  onClick: S[0] || (S[0] = tt(() => {
2307
2307
  }, ["stop"]))
2308
2308
  }, {
2309
2309
  default: l(() => [
2310
- L(I(M), 1)
2310
+ L(I(q), 1)
2311
2311
  ]),
2312
2312
  _: 2
2313
2313
  }, 1024))), 128))
@@ -2317,10 +2317,10 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2317
2317
  ]),
2318
2318
  actions: l(({ row: g }) => [
2319
2319
  m(re, null, {
2320
- default: l(({ copyToClipboard: M }) => [
2320
+ default: l(({ copyToClipboard: q }) => [
2321
2321
  m(Z, {
2322
2322
  "data-testid": "action-entity-copy-id",
2323
- onClick: (ne) => A(g, "id", M)
2323
+ onClick: (ne) => A(g, "id", q)
2324
2324
  }, {
2325
2325
  default: l(() => [
2326
2326
  L(I(b(n)("credentials.actions.copy_id")), 1)
@@ -2331,10 +2331,10 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2331
2331
  _: 2
2332
2332
  }, 1024),
2333
2333
  e.config.plugin === "basic-auth" ? (C(), z(re, { key: 0 }, {
2334
- default: l(({ copyToClipboard: M }) => [
2334
+ default: l(({ copyToClipboard: q }) => [
2335
2335
  m(Z, {
2336
2336
  "data-testid": "action-entity-copy-credential",
2337
- onClick: (ne) => A(g, "password", M)
2337
+ onClick: (ne) => A(g, "password", q)
2338
2338
  }, {
2339
2339
  default: l(() => [
2340
2340
  L(I(b(n)("credentials.actions.copy_credential")), 1)
@@ -2345,10 +2345,10 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2345
2345
  _: 2
2346
2346
  }, 1024)) : H("", !0),
2347
2347
  ["key-auth", "key-auth-enc", "jwt"].includes(e.config.plugin) ? (C(), z(re, { key: 1 }, {
2348
- default: l(({ copyToClipboard: M }) => [
2348
+ default: l(({ copyToClipboard: q }) => [
2349
2349
  m(Z, {
2350
2350
  "data-testid": "action-entity-copy-key",
2351
- onClick: (ne) => A(g, "key", M)
2351
+ onClick: (ne) => A(g, "key", q)
2352
2352
  }, {
2353
2353
  default: l(() => [
2354
2354
  L(I(b(n)("credentials.actions.copy_key")), 1)
@@ -2359,10 +2359,10 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2359
2359
  _: 2
2360
2360
  }, 1024)) : H("", !0),
2361
2361
  e.config.plugin === "oauth2" ? (C(), z(re, { key: 2 }, {
2362
- default: l(({ copyToClipboard: M }) => [
2362
+ default: l(({ copyToClipboard: q }) => [
2363
2363
  m(Z, {
2364
2364
  "data-testid": "action-entity-copy-secret",
2365
- onClick: (ne) => A(g, "client_secret", M)
2365
+ onClick: (ne) => A(g, "client_secret", q)
2366
2366
  }, {
2367
2367
  default: l(() => [
2368
2368
  L(I(b(n)("credentials.actions.copy_secret")), 1)
@@ -2373,10 +2373,10 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2373
2373
  _: 2
2374
2374
  }, 1024)) : H("", !0),
2375
2375
  e.config.plugin === "hmac-auth" ? (C(), z(re, { key: 3 }, {
2376
- default: l(({ copyToClipboard: M }) => [
2376
+ default: l(({ copyToClipboard: q }) => [
2377
2377
  m(Z, {
2378
2378
  "data-testid": "action-entity-copy-secret",
2379
- onClick: (ne) => A(g, "secret", M)
2379
+ onClick: (ne) => A(g, "secret", q)
2380
2380
  }, {
2381
2381
  default: l(() => [
2382
2382
  L(I(b(n)("credentials.actions.copy_secret")), 1)
@@ -2387,10 +2387,10 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2387
2387
  _: 2
2388
2388
  }, 1024)) : H("", !0),
2389
2389
  m(re, null, {
2390
- default: l(({ copyToClipboard: M }) => [
2390
+ default: l(({ copyToClipboard: q }) => [
2391
2391
  m(Z, {
2392
2392
  "data-testid": "action-entity-copy-json",
2393
- onClick: (ne) => A(g, void 0, M)
2393
+ onClick: (ne) => A(g, void 0, q)
2394
2394
  }, {
2395
2395
  default: l(() => [
2396
2396
  L(I(b(n)("credentials.actions.copy_json")), 1)
@@ -2407,7 +2407,7 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2407
2407
  m(Z, {
2408
2408
  "data-testid": "action-entity-edit",
2409
2409
  "has-divider": "",
2410
- item: q(g.id)
2410
+ item: M(g.id)
2411
2411
  }, null, 8, ["item"])
2412
2412
  ]),
2413
2413
  _: 2
@@ -2420,7 +2420,7 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2420
2420
  danger: "",
2421
2421
  "data-testid": "action-entity-delete",
2422
2422
  "has-divider": "",
2423
- onClick: (M) => j(g)
2423
+ onClick: (q) => j(g)
2424
2424
  }, {
2425
2425
  default: l(() => [
2426
2426
  L(I(b(n)("credentials.actions.delete")), 1)
@@ -2446,12 +2446,12 @@ const { useAxios: Oa, useDeleteUrlBuilder: $a, useErrors: Da, useExternalLinkCre
2446
2446
  ]);
2447
2447
  };
2448
2448
  }
2449
- }), Ma = (e, t) => {
2449
+ }), qa = (e, t) => {
2450
2450
  const r = e.__vccOpts || e;
2451
2451
  for (const [a, n] of t)
2452
2452
  r[a] = n;
2453
2453
  return r;
2454
- }, Xa = /* @__PURE__ */ Ma(qa, [["__scopeId", "data-v-533f6d09"]]);
2454
+ }, Xa = /* @__PURE__ */ qa(Ma, [["__scopeId", "data-v-533f6d09"]]);
2455
2455
  export {
2456
2456
  Xa as ConsumerCredentialList
2457
2457
  };
@@ -1,5 +1,5 @@
1
- (function(D,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],t):(D=typeof globalThis<"u"?globalThis:D||self,t(D["kong-ui-public-entities-consumer-credentials"]={},D.Vue,D["kong-ui-public-i18n"],D.axios))})(this,function(D,t,W,ie){"use strict";const oe="24px",_e=(e,r)=>{const n=e.__vccOpts||e;for(const[a,i]of r)n[a]=i;return n},Te=e=>(t.pushScopeId("data-v-1d2a8d30"),e=e(),t.popScopeId(),e),Ae=["aria-hidden"],Ie={key:0,"data-testid":"kui-icon-svg-title"},Ee=Te(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Be=t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:oe,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const r=String(e).replace(/px/gi,""),n=Number(r);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const r=e,n=t.computed(()=>{if(typeof r.size=="number"&&r.size>0)return`${r.size}px`;if(typeof r.size=="string"){const i=String(r.size).replace(/px/gi,""),l=Number(i);if(l&&!isNaN(l)&&Number.isInteger(l)&&l>0)return`${l}px`}return oe}),a=t.computed(()=>({boxSizing:"border-box",color:r.color,display:r.display,height:n.value,lineHeight:"0",width:n.value}));return(i,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(a.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ie,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Ee],8,Ae))]),_:1},8,["aria-hidden","style"]))}}),Ve=_e(Be,[["__scopeId","data-v-1d2a8d30"]]),ve={credentials:{title:"Consumer Credentials",list:{toolbar_actions:{acls:{new:"New ACL Credential"},"basic-auth":{new:"New Basic Auth Credential"},"key-auth":{new:"New Key Auth Credential"},"key-auth-enc":{new:"New Key Auth Encrypted Credential"},oauth2:{new:"New OAuth 2.0 Credential"},"hmac-auth":{new:"New HMAC Credential"},jwt:{new:"New JWT Credential"}},table_headers:{acls:{group:"Group",created_at:"Created At",tags:"Tags"},"basic-auth":{password:"Credential",username:"Username",created_at:"Created at",tags:"Tags"},"key-auth":{key:"Key",created_at:"Created at",tags:"Tags"},"key-auth-enc":{key:"Key",created_at:"Created at",tags:"Tags"},oauth2:{name:"Name",client_id:"Client ID",client_secret:"Client secret",created_at:"Created at",tags:"Tags"},"hmac-auth":{username:"Username",secret:"Secret",created_at:"Created at",tags:"Tags"},jwt:{key:"Key",algorithm:"Algorithm",created_at:"Created at",tags:"Tags"}},empty_state:{acls:{title:"Configure a New ACL Credential",cta:"New ACL Credential"},"basic-auth":{title:"Configure a New Basic Auth Credential",cta:"New Basic Auth Credential"},"key-auth":{title:"Configure a New Key Auth Credential",cta:"New Key Auth Credential"},"key-auth-enc":{title:"Configure a New Key Auth Encrypted Credential",cta:"New Key Auth Encrypted Credential"},oauth2:{title:"Configure a New OAuth 2.0 Credential",cta:"New OAuth 2.0 Credential"},"hmac-auth":{title:"Configure a New HMAC Credential",cta:"New HMAC Credential"},jwt:{title:"Configure a New JWT Credential",cta:"New JWT Credential"}}},actions:{copy_id:"Copy ID",copy_credential:"Copy Credential",copy_key:"Copy Key",copy_secret:"Copy Secret",copy_json:"Copy JSON",edit:"Edit",delete:"Delete"},delete:{acls:{title:"Delete an ACL Credential"},"basic-auth":{title:"Delete a Basic Auth Credential"},"key-auth":{title:"Delete a Key Auth Credential"},"key-auth-enc":{title:"Delete a Key Auth Encrypted Credential"},oauth2:{title:"Delete an OAuth 2.0 Credential"},"hmac-auth":{title:"Delete an HMAC Credential"},jwt:{title:"Delete a JWT Credential"},description:"This action cannot be reversed."},error:{general:"Credentials could not be retrieved",delete:"The credential could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}}};function Oe(){const e=W.createI18n("en-us",ve);return{i18n:e,i18nT:W.i18nTComponent(e)}}const $e={useI18n:Oe},je={list:{konnect:"/v2/control-planes/{controlPlaneId}/core-entities/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}};var le=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e))(le||{}),M=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(M||{});function De(){return{getAxiosInstance:(e={})=>{try{const r=t.inject("get-axios-instance",void 0);return typeof r=="function"?r(e):ie.create({withCredentials:!0,timeout:3e4,...e})}catch(r){return console.warn("getAxiosInstance:",r.message||r),ie.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var r;return((r=e==null?void 0:e.response)==null?void 0:r.headers["x-datadog-trace-id"])||""}}}function Ke(){return{debounce:(e,r)=>{let n;return(...a)=>{clearTimeout(n),n=window==null?void 0:window.setTimeout(()=>{e(...a)},r)}}}}const G="khcp-user-table-preferences",qe={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function Fe(){const e=n=>{if(typeof n=="string")try{return JSON.parse(n)}catch(a){console.error("useTablePreferences(tryParseJson)",a);return}},r=()=>{const n=e(localStorage.getItem(G));return!n||!Object.keys(n).length?new Map:new Map(Object.entries(n))};return{setTablePreferences:(n,a)=>{try{const i=r();i.set(n,a),localStorage.setItem(G,JSON.stringify(Object.fromEntries(i.entries())))}catch(i){console.error("useTablePreferences(setTablePreferences)",i)}},getTablePreferences:n=>{const a=r();return(a==null?void 0:a.get(n))||void 0||qe},deleteAllTablePreferences:()=>{localStorage.removeItem(G)}}}function X(e={}){const{getAxiosInstance:r}=De();return{axiosInstance:r(e)}}const Me={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Pe={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Le={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},Ue={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Re={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},ze={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},He={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},We={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Je={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},Ye={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},Ze={global:Me,deleteModal:Pe,baseForm:Le,baseTable:Ue,baseConfigCard:Re,filter:ze,debouncedFilter:He,errors:We,validationErrors:Je,toggleModal:Ye};function J(){const e=W.createI18n("en-us",Ze);return{i18n:e,i18nT:W.i18nTComponent(e)}}function se(){const e=(n,a)=>(a==null?void 0:a[n])??void 0,r=(n,a)=>{if(n.length!==a.length)return!1;const i=new Set([...n,...a]);for(const l of i){const o=n.filter(f=>f===l).length,s=a.filter(f=>f===l).length;if(o!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(n,a,i)=>{if(i){if(Object.keys(n).length===Object.keys(a).length)for(const l in n)if(Array.isArray(n[l])&&Array.isArray(a[l])){if(r(n[l],a[l]))continue;return!1}else{if(n[l]===a[l])continue;return!1}else return!1;return!0}try{return JSON.stringify(n)===JSON.stringify(a)}catch{return!1}},sortAlpha:n=>(a,i)=>{let l=a[n]===void 0||a[n]===null?"":a[n],o=i[n]===void 0||i[n]===null?"":i[n];return Array.isArray(a[n])&&(l=a[n][0]),Array.isArray(i[n])&&(o=i[n][0]),l.localeCompare(o)},isValidUuid:n=>n?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(n):!1}}function Ge(e,r,n,a={fetchedItemsKey:"data",searchKeys:["id"]}){n||(n="1000");const{axiosInstance:i}=X(e.axiosRequestConfig),{i18n:{t:l}}=J(),{debounce:o}=Ke(),s=o(async m=>{await $(m)},200),f=t.ref(!1),u=t.ref(""),y=t.ref(""),c=t.ref([]),b=t.ref([]),h=t.ref(void 0),E=t.unref(r);let x=`${e.apiBaseUrl}${E}`;e.app==="konnect"?x=x.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(x=x.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:C}=se(),_=async()=>{try{f.value=!0;const{data:m}=await i.get(`${x}?size=${n}`);m!=null&&m.next||(h.value=a.fetchedItemsKey in m?m[a.fetchedItemsKey]:[]),b.value=a.fetchedItemsKey in m?m[a.fetchedItemsKey]:[],c.value=b.value}catch{c.value=[],u.value=l("debouncedFilter.errors.fetch")}finally{f.value=!1}},B=t.ref(""),$=async m=>{var K,d,k;if(B.value!==m)if(B.value=m||"",h.value===void 0)try{if(f.value=!0,u.value="",y.value="",e.app==="konnect"){let N=x+"";m&&(N+=`/${m}`);const{data:I}=await i.get(`${N}?size=${n}`);a.fetchedItemsKey in I?c.value=I[a.fetchedItemsKey]:I!=null&&I.id?c.value=[I]:c.value=[]}else if(m){const N=[];C(m)&&a.searchKeys.includes("id")?N.push((async()=>{const{data:T}=await i.get(`${x}/${m}`);return[T[a.fetchedItemsKey]??T]})()):N.push(...a.searchKeys.filter(T=>T!=="id").map(async T=>{const{data:S}=await i.get(`${x}?${T}=${m}`);return S[a.fetchedItemsKey]}));const I=await Promise.all(N),q=new Set;c.value=[],(K=I==null?void 0:I.forEach)==null||K.call(I,T=>{var S;(S=T==null?void 0:T.forEach)==null||S.call(T,v=>{q.has(v.id)||(q.add(v.id),c.value.push(v))})})}else c.value=b.value}catch(N){((d=N==null?void 0:N.response)==null?void 0:d.status)===404?y.value=l("debouncedFilter.errors.invalid"):(c.value=[],u.value=l("debouncedFilter.errors.fetch"))}finally{f.value=!1}else f.value=!0,y.value="",m?(c.value=(k=h.value)==null?void 0:k.filter(N=>{var I;let q=!1;for(const T of a.searchKeys){const S=typeof N[T]=="string"?(I=N[T])==null?void 0:I.toLowerCase():N[T];S!=null&&S.includes(m.toLowerCase())&&(q=!0)}return q}),(!c.value||!c.value.length)&&(y.value=l("debouncedFilter.errors.invalid"))):c.value=h.value,f.value=!1};return{loading:f,error:u,validationError:y,results:c,allRecords:h,loadItems:_,debouncedQueryChange:s}}function Xe(e,r){const n=t.unref(r),a=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${n}`):new URL(n));return a.value.search="",i=>`${a.value.href}/${i}`}function Qe(){const{i18n:{t:e}}=J();return{getMessageFromError:r=>{var n,a,i,l;if(!r)return e("errors.unexpected");if(((n=r==null?void 0:r.response)==null?void 0:n.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((a=r==null?void 0:r.response)!=null&&a.data){if(r.response.data.detail)return r.response.data.detail;if((i=r.response.data.details)!=null&&i.length)return r.response.data.details.map(o=>{let s=e("errors.unexpected");return o.messages&&typeof o.messages=="object"&&o.messages.length&&(s=o.messages.join(", ")),o.field?`${o.field} - ${s}`:s}).join("; ");if(r.response.data.message){const{message:o}=r.response.data;return Array.isArray(o)?(l=o[0])!=null&&l.constraints?Object.values(o[0].constraints)[0]:o[0]:o}if(typeof r.response.data=="string")return r.response.data;if(typeof r.response.data=="object")return Object.keys(r.response.data).map(o=>`${o} ${r.response.data[o]}`).join(", ")}return r.message||e("errors.unexpected")}}}function et(e){const r=window.location.origin,n=r.endsWith("/")?r:`${r}/`;try{const a=e.join("/"),i=`${n}${a}`,l=e.some(o=>o.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!l&&new URL(i))return`${n}${a}`;throw new Error("Invalid url")}catch(a){return console.warn("Failed to build valid URL:",a),""}}function ce(e,r){const n=t.ref(t.unref(e)),a=t.ref(t.unref(r)),i=t.computed(()=>!!(n.value.app==="konnect"||n.value.isExactMatch)),l=t.computed(()=>a.value.startsWith("/")?new URL(`${window.location.origin}${a.value}`):new URL(a.value));return o=>{const{page:s,pageSize:f,offset:u,sortColumnKey:y,sortColumnOrder:c,query:b}=o;try{let h=new URL(l.value.href);return i.value&&b?(h.search="",h=n.value.isExactMatch?new URL(`${h.href}/${b}/`):new URL(`${h.href}?filter[name][contains]=${b}`)):(i.value||new URLSearchParams(b).forEach((E,x)=>{h.searchParams.append(x,E)}),y&&h.searchParams.append("sort_by",y),c==="desc"&&h.searchParams.append("sort_desc","1"),h.searchParams.append("size",String(f))),u&&s!==1&&h.searchParams.append("offset",String(u)),h.href}catch(h){return console.error("RouteList(fetcher)",h),a.value}}}function tt(e,r,n="data"){const a=t.unref(r),{axiosInstance:i}=X(e.axiosRequestConfig),l=ce(e,a),o=t.ref({status:M.Idle});return{fetcher:async s=>{var f;try{o.value={status:M.Loading};let u=l(s);u.includes("filter[name]")&&(u=`${u}&page[size]=${s.pageSize}&page[number]=${s.page}`);const y=await i.get(u);if(y.status>=400)throw y;const c=y.data,b=n&&n.replace(/[^\w-_]/gi,"");let h;c[b]&&Array.isArray(c[b])?h=c[b]:Array.isArray(c)?h=c:h=Object.keys(c).length?[c]:[];const E={data:h,total:h.length,...c.offset?{pagination:{offset:c.offset}}:null};return o.value={status:M.Idle,response:E},E}catch(u){const y={data:[],total:0};return s.query&&(((f=u.response)==null?void 0:f.status)===404||u.status===404)?(o.value={status:M.NoResults,response:y,error:u.response?u:{response:u}},y):(o.value={status:M.Error,response:y,error:u.response?u:{response:u}},y)}},fetcherState:o}}function rt(){const e=(n,a="_")=>n?n.split(a).map(i=>i.toLowerCase()==="id"?i.toUpperCase():i.charAt(0).toUpperCase()+i.substring(1)).join(" "):"",r=/(?:^|[\s-:'"])\w/g;return{capitalize:n=>n?n.replace(r,a=>a.toUpperCase()):"",convertKeyToTitle:e}}const de=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ue=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const r=e.match(de);if(!r)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return r.shift(),r},pe=e=>e==="*"||e==="x"||e==="X",fe=e=>{const r=parseInt(e,10);return isNaN(r)?e:r},nt=(e,r)=>typeof e!=typeof r?[String(e),String(r)]:[e,r],at=(e,r)=>{if(pe(e)||pe(r))return 0;const[n,a]=nt(fe(e),fe(r));return n>a?1:n<a?-1:0},ye=(e,r)=>{for(let n=0;n<Math.max(e.length,r.length);n++){const a=at(e[n]||"0",r[n]||"0");if(a!==0)return a}return 0},it=(e,r)=>{const n=ue(e),a=ue(r),i=n.pop(),l=a.pop(),o=ye(n,a);return o!==0?o:i&&l?ye(i.split("."),l.split(".")):i||l?i?-1:1:0},ge=(e,r,n)=>{ot(n);const a=it(e,r);return he[n].includes(a)},he={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},me=Object.keys(he),ot=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(me.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${me.join("|")}`)},lt=e=>typeof e=="string"&&/^[v\d]/.test(e)&&de.test(e);function st(e){const{gatewayInfo:r,supportedRange:n}=e;if(!r)return!0;const{edition:a,version:i}=r;if(!lt(i))return console.error("Invalid version"),!1;const l=n[a];if(!l)return!1;const[o,s]=l;return!(o&&ge(i,o,"<")||s&&ge(i,s,">"))}function ct(e){const r=t.ref(0),n=t.ref(0),a=t.ref(!1);return t.watch(e,i=>{i&&!a.value&&(r.value=i.offsetWidth,n.value=i.scrollWidth,a.value=!0)}),{isTruncated:t.computed(()=>r.value<n.value)}}function dt(){const{i18n:{t:e}}=J();return{utf8Name:r=>/^[\p{N}\p{L}.\-_~]*$/u.test(r)?"":e("validationErrors.utf8Name")}}const Q={useAxios:X,useDebouncedFilter:Ge,useDeleteUrlBuilder:Xe,useErrors:Qe,useExternalLinkCreator:et,useFetcher:tt,useFetchUrlBuilder:ce,useHelpers:se,useStringHelpers:rt,useI18n:J,useGatewayFeatureSupported:st,useTruncationDetector:ct,useValidators:dt},ee=(e,r)=>{const n=e.__vccOpts||e;for(const[a,i]of r)n[a]=i;return n};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function be(e){return typeof e>"u"||e===null}function ut(e){return typeof e=="object"&&e!==null}function pt(e){return Array.isArray(e)?e:be(e)?[]:[e]}function ft(e,r){var n,a,i,l;if(r)for(l=Object.keys(r),n=0,a=l.length;n<a;n+=1)i=l[n],e[i]=r[i];return e}function yt(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function gt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var ht=be,mt=ut,bt=pt,wt=yt,Ct=gt,kt=ft,te={isNothing:ht,isObject:mt,toArray:bt,repeat:wt,isNegativeZero:Ct,extend:kt};function we(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
1
+ (function(D,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@kong-ui-public/i18n"),require("axios"),require("@kong/kongponents"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","axios","@kong/kongponents","vue-router"],t):(D=typeof globalThis<"u"?globalThis:D||self,t(D["kong-ui-public-entities-consumer-credentials"]={},D.Vue,D["kong-ui-public-i18n"],D.axios))})(this,function(D,t,W,ie){"use strict";const oe="24px",_e=(e,r)=>{const n=e.__vccOpts||e;for(const[a,i]of r)n[a]=i;return n},Te=e=>(t.pushScopeId("data-v-1d2a8d30"),e=e(),t.popScopeId(),e),Ae=["aria-hidden"],Ie={key:0,"data-testid":"kui-icon-svg-title"},Ee=Te(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),Be=t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:oe,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const r=String(e).replace(/px/gi,""),n=Number(r);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const r=e,n=t.computed(()=>{if(typeof r.size=="number"&&r.size>0)return`${r.size}px`;if(typeof r.size=="string"){const i=String(r.size).replace(/px/gi,""),l=Number(i);if(l&&!isNaN(l)&&Number.isInteger(l)&&l>0)return`${l}px`}return oe}),a=t.computed(()=>({boxSizing:"border-box",color:r.color,display:r.display,height:n.value,lineHeight:"0",width:n.value}));return(i,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(a.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ie,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Ee],8,Ae))]),_:1},8,["aria-hidden","style"]))}}),Ve=_e(Be,[["__scopeId","data-v-1d2a8d30"]]),ve={credentials:{title:"Consumer Credentials",list:{toolbar_actions:{acls:{new:"New ACL Credential"},"basic-auth":{new:"New Basic Auth Credential"},"key-auth":{new:"New Key Auth Credential"},"key-auth-enc":{new:"New Key Auth Encrypted Credential"},oauth2:{new:"New OAuth 2.0 Credential"},"hmac-auth":{new:"New HMAC Credential"},jwt:{new:"New JWT Credential"}},table_headers:{acls:{group:"Group",created_at:"Created At",tags:"Tags"},"basic-auth":{password:"Credential",username:"Username",created_at:"Created at",tags:"Tags"},"key-auth":{key:"Key",created_at:"Created at",tags:"Tags"},"key-auth-enc":{key:"Key",created_at:"Created at",tags:"Tags"},oauth2:{name:"Name",client_id:"Client ID",client_secret:"Client secret",created_at:"Created at",tags:"Tags"},"hmac-auth":{username:"Username",secret:"Secret",created_at:"Created at",tags:"Tags"},jwt:{key:"Key",algorithm:"Algorithm",created_at:"Created at",tags:"Tags"}},empty_state:{acls:{title:"Configure a New ACL Credential",cta:"New ACL Credential"},"basic-auth":{title:"Configure a New Basic Auth Credential",cta:"New Basic Auth Credential"},"key-auth":{title:"Configure a New Key Auth Credential",cta:"New Key Auth Credential"},"key-auth-enc":{title:"Configure a New Key Auth Encrypted Credential",cta:"New Key Auth Encrypted Credential"},oauth2:{title:"Configure a New OAuth 2.0 Credential",cta:"New OAuth 2.0 Credential"},"hmac-auth":{title:"Configure a New HMAC Credential",cta:"New HMAC Credential"},jwt:{title:"Configure a New JWT Credential",cta:"New JWT Credential"}}},actions:{copy_id:"Copy ID",copy_credential:"Copy Credential",copy_key:"Copy Key",copy_secret:"Copy Secret",copy_json:"Copy JSON",edit:"Edit",delete:"Delete"},delete:{acls:{title:"Delete an ACL Credential"},"basic-auth":{title:"Delete a Basic Auth Credential"},"key-auth":{title:"Delete a Key Auth Credential"},"key-auth-enc":{title:"Delete a Key Auth Encrypted Credential"},oauth2:{title:"Delete an OAuth 2.0 Credential"},"hmac-auth":{title:"Delete an HMAC Credential"},jwt:{title:"Delete a JWT Credential"},description:"This action cannot be reversed."},error:{general:"Credentials could not be retrieved",delete:"The credential could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}}};function Oe(){const e=W.createI18n("en-us",ve);return{i18n:e,i18nT:W.i18nTComponent(e)}}const $e={useI18n:Oe},je={list:{konnect:"/v2/control-planes/{controlPlaneId}/core-entities/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}};var le=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e))(le||{}),M=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(M||{});function De(){return{getAxiosInstance:(e={})=>{try{const r=t.inject("get-axios-instance",void 0);return typeof r=="function"?r(e):ie.create({withCredentials:!0,timeout:3e4,...e})}catch(r){return console.warn("getAxiosInstance:",r.message||r),ie.create({withCredentials:!0,timeout:3e4,...e})}},getTraceIdFromError:e=>{var r;return((r=e==null?void 0:e.response)==null?void 0:r.headers["x-datadog-trace-id"])||""}}}function Ke(){return{debounce:(e,r)=>{let n;return(...a)=>{clearTimeout(n),n=window==null?void 0:window.setTimeout(()=>{e(...a)},r)}}}}const G="khcp-user-table-preferences",Fe={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function qe(){const e=n=>{if(typeof n=="string")try{return JSON.parse(n)}catch(a){console.error("useTablePreferences(tryParseJson)",a);return}},r=()=>{const n=e(localStorage.getItem(G));return!n||!Object.keys(n).length?new Map:new Map(Object.entries(n))};return{setTablePreferences:(n,a)=>{try{const i=r();i.set(n,a),localStorage.setItem(G,JSON.stringify(Object.fromEntries(i.entries())))}catch(i){console.error("useTablePreferences(setTablePreferences)",i)}},getTablePreferences:n=>{const a=r();return(a==null?void 0:a.get(n))||void 0||Fe},deleteAllTablePreferences:()=>{localStorage.removeItem(G)}}}function X(e={}){const{getAxiosInstance:r}=De();return{axiosInstance:r(e)}}const Me={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Pe={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Le={actions:{viewConfiguration:"View Configuration",save:"Save",cancel:"Cancel",back:"Back"},configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",yaml:"YAML",json:"JSON"},errors:{edit:"The entity could not be edited at this time."}},Ue={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Re={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},ze={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},He={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},We={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Je={utf8Name:"The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."},Ye={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},Ze={global:Me,deleteModal:Pe,baseForm:Le,baseTable:Ue,baseConfigCard:Re,filter:ze,debouncedFilter:He,errors:We,validationErrors:Je,toggleModal:Ye};function J(){const e=W.createI18n("en-us",Ze);return{i18n:e,i18nT:W.i18nTComponent(e)}}function se(){const e=(n,a)=>(a==null?void 0:a[n])??void 0,r=(n,a)=>{if(n.length!==a.length)return!1;const i=new Set([...n,...a]);for(const l of i){const o=n.filter(f=>f===l).length,s=a.filter(f=>f===l).length;if(o!==s)return!1}return!0};return{getPropValue:e,objectsAreEqual:(n,a,i)=>{if(i){if(Object.keys(n).length===Object.keys(a).length)for(const l in n)if(Array.isArray(n[l])&&Array.isArray(a[l])){if(r(n[l],a[l]))continue;return!1}else{if(n[l]===a[l])continue;return!1}else return!1;return!0}try{return JSON.stringify(n)===JSON.stringify(a)}catch{return!1}},sortAlpha:n=>(a,i)=>{let l=a[n]===void 0||a[n]===null?"":a[n],o=i[n]===void 0||i[n]===null?"":i[n];return Array.isArray(a[n])&&(l=a[n][0]),Array.isArray(i[n])&&(o=i[n][0]),l.localeCompare(o)},isValidUuid:n=>n?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(n):!1}}function Ge(e,r,n,a={fetchedItemsKey:"data",searchKeys:["id"]}){n||(n="1000");const{axiosInstance:i}=X(e.axiosRequestConfig),{i18n:{t:l}}=J(),{debounce:o}=Ke(),s=o(async m=>{await $(m)},200),f=t.ref(!1),u=t.ref(""),y=t.ref(""),c=t.ref([]),b=t.ref([]),h=t.ref(void 0),E=t.unref(r);let x=`${e.apiBaseUrl}${E}`;e.app==="konnect"?x=x.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(x=x.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:C}=se(),_=async()=>{try{f.value=!0;const{data:m}=await i.get(`${x}?size=${n}`);m!=null&&m.next||(h.value=a.fetchedItemsKey in m?m[a.fetchedItemsKey]:[]),b.value=a.fetchedItemsKey in m?m[a.fetchedItemsKey]:[],c.value=b.value}catch{c.value=[],u.value=l("debouncedFilter.errors.fetch")}finally{f.value=!1}},B=t.ref(""),$=async m=>{var K,d,k;if(B.value!==m)if(B.value=m||"",h.value===void 0)try{if(f.value=!0,u.value="",y.value="",e.app==="konnect"){let N=x+"";m&&(N+=`/${m}`);const{data:I}=await i.get(`${N}?size=${n}`);a.fetchedItemsKey in I?c.value=I[a.fetchedItemsKey]:I!=null&&I.id?c.value=[I]:c.value=[]}else if(m){const N=[];C(m)&&a.searchKeys.includes("id")?N.push((async()=>{const{data:T}=await i.get(`${x}/${m}`);return[T[a.fetchedItemsKey]??T]})()):N.push(...a.searchKeys.filter(T=>T!=="id").map(async T=>{const{data:S}=await i.get(`${x}?${T}=${m}`);return S[a.fetchedItemsKey]}));const I=await Promise.all(N),F=new Set;c.value=[],(K=I==null?void 0:I.forEach)==null||K.call(I,T=>{var S;(S=T==null?void 0:T.forEach)==null||S.call(T,v=>{F.has(v.id)||(F.add(v.id),c.value.push(v))})})}else c.value=b.value}catch(N){((d=N==null?void 0:N.response)==null?void 0:d.status)===404?y.value=l("debouncedFilter.errors.invalid"):(c.value=[],u.value=l("debouncedFilter.errors.fetch"))}finally{f.value=!1}else f.value=!0,y.value="",m?(c.value=(k=h.value)==null?void 0:k.filter(N=>{var I;let F=!1;for(const T of a.searchKeys){const S=typeof N[T]=="string"?(I=N[T])==null?void 0:I.toLowerCase():N[T];S!=null&&S.includes(m.toLowerCase())&&(F=!0)}return F}),(!c.value||!c.value.length)&&(y.value=l("debouncedFilter.errors.invalid"))):c.value=h.value,f.value=!1};return{loading:f,error:u,validationError:y,results:c,allRecords:h,loadItems:_,debouncedQueryChange:s}}function Xe(e,r){const n=t.unref(r),a=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${n}`):new URL(n));return a.value.search="",i=>`${a.value.href}/${i}`}function Qe(){const{i18n:{t:e}}=J();return{getMessageFromError:r=>{var n,a,i,l;if(!r)return e("errors.unexpected");if(((n=r==null?void 0:r.response)==null?void 0:n.status)===401)return console.warn("getMessageFromError: User auth token is expired or missing, returning empty message."),"";if((a=r==null?void 0:r.response)!=null&&a.data){if(r.response.data.detail)return r.response.data.detail;if((i=r.response.data.details)!=null&&i.length)return r.response.data.details.map(o=>{let s=e("errors.unexpected");return o.messages&&typeof o.messages=="object"&&o.messages.length&&(s=o.messages.join(", ")),o.field?`${o.field} - ${s}`:s}).join("; ");if(r.response.data.message){const{message:o}=r.response.data;return Array.isArray(o)?(l=o[0])!=null&&l.constraints?Object.values(o[0].constraints)[0]:o[0]:o}if(typeof r.response.data=="string")return r.response.data;if(typeof r.response.data=="object")return Object.keys(r.response.data).map(o=>`${o} ${r.response.data[o]}`).join(", ")}return r.message||e("errors.unexpected")}}}function et(e){const r=window.location.origin,n=r.endsWith("/")?r:`${r}/`;try{const a=e.join("/"),i=`${n}${a}`,l=e.some(o=>o.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!l&&new URL(i))return`${n}${a}`;throw new Error("Invalid url")}catch(a){return console.warn("Failed to build valid URL:",a),""}}function ce(e,r){const n=t.ref(t.unref(e)),a=t.ref(t.unref(r)),i=t.computed(()=>!!(n.value.app==="konnect"||n.value.isExactMatch)),l=t.computed(()=>a.value.startsWith("/")?new URL(`${window.location.origin}${a.value}`):new URL(a.value));return o=>{const{page:s,pageSize:f,offset:u,sortColumnKey:y,sortColumnOrder:c,query:b}=o;try{let h=new URL(l.value.href);return i.value&&b?(h.search="",h=n.value.isExactMatch?new URL(`${h.href}/${b}/`):new URL(`${h.href}?filter[name][contains]=${b}`)):(i.value||new URLSearchParams(b).forEach((E,x)=>{h.searchParams.append(x,E)}),y&&h.searchParams.append("sort_by",y),c==="desc"&&h.searchParams.append("sort_desc","1"),h.searchParams.append("size",String(f))),u&&s!==1&&h.searchParams.append("offset",String(u)),h.href}catch(h){return console.error("RouteList(fetcher)",h),a.value}}}function tt(e,r,n="data"){const a=t.unref(r),{axiosInstance:i}=X(e.axiosRequestConfig),l=ce(e,a),o=t.ref({status:M.Idle});return{fetcher:async s=>{var f;try{o.value={status:M.Loading};let u=l(s);u.includes("filter[name]")&&(u=`${u}&page[size]=${s.pageSize}&page[number]=${s.page}`);const y=await i.get(u);if(y.status>=400)throw y;const c=y.data,b=n&&n.replace(/[^\w-_]/gi,"");let h;c[b]&&Array.isArray(c[b])?h=c[b]:Array.isArray(c)?h=c:h=Object.keys(c).length?[c]:[];const E={data:h,total:h.length,...c.offset?{pagination:{offset:c.offset}}:null};return o.value={status:M.Idle,response:E},E}catch(u){const y={data:[],total:0};return s.query&&(((f=u.response)==null?void 0:f.status)===404||u.status===404)?(o.value={status:M.NoResults,response:y,error:u.response?u:{response:u}},y):(o.value={status:M.Error,response:y,error:u.response?u:{response:u}},y)}},fetcherState:o}}function rt(){const e=(n,a="_")=>n?n.split(a).map(i=>i.toLowerCase()==="id"?i.toUpperCase():i.charAt(0).toUpperCase()+i.substring(1)).join(" "):"",r=/(?:^|[\s-:'"])\w/g;return{capitalize:n=>n?n.replace(r,a=>a.toUpperCase()):"",convertKeyToTitle:e}}const de=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ue=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const r=e.match(de);if(!r)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return r.shift(),r},pe=e=>e==="*"||e==="x"||e==="X",fe=e=>{const r=parseInt(e,10);return isNaN(r)?e:r},nt=(e,r)=>typeof e!=typeof r?[String(e),String(r)]:[e,r],at=(e,r)=>{if(pe(e)||pe(r))return 0;const[n,a]=nt(fe(e),fe(r));return n>a?1:n<a?-1:0},ye=(e,r)=>{for(let n=0;n<Math.max(e.length,r.length);n++){const a=at(e[n]||"0",r[n]||"0");if(a!==0)return a}return 0},it=(e,r)=>{const n=ue(e),a=ue(r),i=n.pop(),l=a.pop(),o=ye(n,a);return o!==0?o:i&&l?ye(i.split("."),l.split(".")):i||l?i?-1:1:0},ge=(e,r,n)=>{ot(n);const a=it(e,r);return he[n].includes(a)},he={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},me=Object.keys(he),ot=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(me.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${me.join("|")}`)},lt=e=>typeof e=="string"&&/^[v\d]/.test(e)&&de.test(e);function st(e){const{gatewayInfo:r,supportedRange:n}=e;if(!r)return!0;const{edition:a,version:i}=r;if(!lt(i))return console.error("Invalid version"),!1;const l=n[a];if(!l)return!1;const[o,s]=l;return!(o&&ge(i,o,"<")||s&&ge(i,s,">"))}function ct(e){const r=t.ref(0),n=t.ref(0),a=t.ref(!1);return t.watch(e,i=>{i&&!a.value&&(r.value=i.offsetWidth,n.value=i.scrollWidth,a.value=!0)}),{isTruncated:t.computed(()=>r.value<n.value)}}function dt(){const{i18n:{t:e}}=J();return{utf8Name:r=>/^[\p{N}\p{L}.\-_~]*$/u.test(r)?"":e("validationErrors.utf8Name")}}const Q={useAxios:X,useDebouncedFilter:Ge,useDeleteUrlBuilder:Xe,useErrors:Qe,useExternalLinkCreator:et,useFetcher:tt,useFetchUrlBuilder:ce,useHelpers:se,useStringHelpers:rt,useI18n:J,useGatewayFeatureSupported:st,useTruncationDetector:ct,useValidators:dt},ee=(e,r)=>{const n=e.__vccOpts||e;for(const[a,i]of r)n[a]=i;return n};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function be(e){return typeof e>"u"||e===null}function ut(e){return typeof e=="object"&&e!==null}function pt(e){return Array.isArray(e)?e:be(e)?[]:[e]}function ft(e,r){var n,a,i,l;if(r)for(l=Object.keys(r),n=0,a=l.length;n<a;n+=1)i=l[n],e[i]=r[i];return e}function yt(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function gt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var ht=be,mt=ut,bt=pt,wt=yt,Ct=gt,kt=ft,te={isNothing:ht,isObject:mt,toArray:bt,repeat:wt,isNegativeZero:Ct,extend:kt};function we(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
2
2
 
3
- `+e.mark.snippet),a+" "+n):a}function z(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=we(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}z.prototype=Object.create(Error.prototype),z.prototype.constructor=z,z.prototype.toString=function(e){return this.name+": "+we(this,e)};var P=z,xt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Nt=["scalar","sequence","mapping"];function St(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function _t(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(xt.indexOf(n)===-1)throw new P('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=St(r.styleAliases||null),Nt.indexOf(this.kind)===-1)throw new P('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var A=_t;function Ce(e,r){var n=[];return e[r].forEach(function(a){var i=n.length;n.forEach(function(l,o){l.tag===a.tag&&l.kind===a.kind&&l.multi===a.multi&&(i=o)}),n[i]=a}),n}function Tt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function re(e){return this.extend(e)}re.prototype.extend=function(e){var r=[],n=[];if(e instanceof A)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new P("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof A))throw new P("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new P("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new P("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof A))throw new P("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(re.prototype);return a.implicit=(this.implicit||[]).concat(r),a.explicit=(this.explicit||[]).concat(n),a.compiledImplicit=Ce(a,"implicit"),a.compiledExplicit=Ce(a,"explicit"),a.compiledTypeMap=Tt(a.compiledImplicit,a.compiledExplicit),a};var At=re,It=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Et=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Bt=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Vt=new At({explicit:[It,Et,Bt]});function vt(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Ot(){return null}function $t(e){return e===null}var jt=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:vt,construct:Ot,predicate:$t,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Dt(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Kt(e){return e==="true"||e==="True"||e==="TRUE"}function qt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Ft=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Dt,construct:Kt,predicate:qt,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Mt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Pt(e){return 48<=e&&e<=55}function Lt(e){return 48<=e&&e<=57}function Ut(e){if(e===null)return!1;var r=e.length,n=0,a=!1,i;if(!r)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===r)return!0;if(i=e[++n],i==="b"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;a=!0}return a&&i!=="_"}if(i==="x"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Mt(e.charCodeAt(n)))return!1;a=!0}return a&&i!=="_"}if(i==="o"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Pt(e.charCodeAt(n)))return!1;a=!0}return a&&i!=="_"}}if(i==="_")return!1;for(;n<r;n++)if(i=e[n],i!=="_"){if(!Lt(e.charCodeAt(n)))return!1;a=!0}return!(!a||i==="_")}function Rt(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function zt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!te.isNegativeZero(e)}var Ht=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ut,construct:Rt,predicate:zt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Wt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Jt(e){return!(e===null||!Wt.test(e)||e[e.length-1]==="_")}function Yt(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var Zt=/^[-+]?[0-9]+e/;function Gt(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(te.isNegativeZero(e))return"-0.0";return n=e.toString(10),Zt.test(n)?n.replace("e",".e"):n}function Xt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||te.isNegativeZero(e))}var Qt=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:Jt,construct:Yt,predicate:Xt,represent:Gt,defaultStyle:"lowercase"}),er=Vt.extend({implicit:[jt,Ft,Ht,Qt]}),tr=er,ke=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),xe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function rr(e){return e===null?!1:ke.exec(e)!==null||xe.exec(e)!==null}function nr(e){var r,n,a,i,l,o,s,f=0,u=null,y,c,b;if(r=ke.exec(e),r===null&&(r=xe.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(n,a,i));if(l=+r[4],o=+r[5],s=+r[6],r[7]){for(f=r[7].slice(0,3);f.length<3;)f+="0";f=+f}return r[9]&&(y=+r[10],c=+(r[11]||0),u=(y*60+c)*6e4,r[9]==="-"&&(u=-u)),b=new Date(Date.UTC(n,a,i,l,o,s,f)),u&&b.setTime(b.getTime()-u),b}function ar(e){return e.toISOString()}var ir=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:rr,construct:nr,instanceOf:Date,represent:ar});function or(e){return e==="<<"||e===null}var lr=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:or}),ne=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
3
+ `+e.mark.snippet),a+" "+n):a}function z(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=we(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}z.prototype=Object.create(Error.prototype),z.prototype.constructor=z,z.prototype.toString=function(e){return this.name+": "+we(this,e)};var P=z,xt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Nt=["scalar","sequence","mapping"];function St(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function _t(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(xt.indexOf(n)===-1)throw new P('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=St(r.styleAliases||null),Nt.indexOf(this.kind)===-1)throw new P('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var A=_t;function Ce(e,r){var n=[];return e[r].forEach(function(a){var i=n.length;n.forEach(function(l,o){l.tag===a.tag&&l.kind===a.kind&&l.multi===a.multi&&(i=o)}),n[i]=a}),n}function Tt(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function re(e){return this.extend(e)}re.prototype.extend=function(e){var r=[],n=[];if(e instanceof A)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new P("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof A))throw new P("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new P("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new P("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof A))throw new P("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(re.prototype);return a.implicit=(this.implicit||[]).concat(r),a.explicit=(this.explicit||[]).concat(n),a.compiledImplicit=Ce(a,"implicit"),a.compiledExplicit=Ce(a,"explicit"),a.compiledTypeMap=Tt(a.compiledImplicit,a.compiledExplicit),a};var At=re,It=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Et=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Bt=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Vt=new At({explicit:[It,Et,Bt]});function vt(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function Ot(){return null}function $t(e){return e===null}var jt=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:vt,construct:Ot,predicate:$t,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Dt(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function Kt(e){return e==="true"||e==="True"||e==="TRUE"}function Ft(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var qt=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Dt,construct:Kt,predicate:Ft,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Mt(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Pt(e){return 48<=e&&e<=55}function Lt(e){return 48<=e&&e<=57}function Ut(e){if(e===null)return!1;var r=e.length,n=0,a=!1,i;if(!r)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===r)return!0;if(i=e[++n],i==="b"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;a=!0}return a&&i!=="_"}if(i==="x"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Mt(e.charCodeAt(n)))return!1;a=!0}return a&&i!=="_"}if(i==="o"){for(n++;n<r;n++)if(i=e[n],i!=="_"){if(!Pt(e.charCodeAt(n)))return!1;a=!0}return a&&i!=="_"}}if(i==="_")return!1;for(;n<r;n++)if(i=e[n],i!=="_"){if(!Lt(e.charCodeAt(n)))return!1;a=!0}return!(!a||i==="_")}function Rt(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function zt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!te.isNegativeZero(e)}var Ht=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ut,construct:Rt,predicate:zt,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Wt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Jt(e){return!(e===null||!Wt.test(e)||e[e.length-1]==="_")}function Yt(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var Zt=/^[-+]?[0-9]+e/;function Gt(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(te.isNegativeZero(e))return"-0.0";return n=e.toString(10),Zt.test(n)?n.replace("e",".e"):n}function Xt(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||te.isNegativeZero(e))}var Qt=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:Jt,construct:Yt,predicate:Xt,represent:Gt,defaultStyle:"lowercase"}),er=Vt.extend({implicit:[jt,qt,Ht,Qt]}),tr=er,ke=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),xe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function rr(e){return e===null?!1:ke.exec(e)!==null||xe.exec(e)!==null}function nr(e){var r,n,a,i,l,o,s,f=0,u=null,y,c,b;if(r=ke.exec(e),r===null&&(r=xe.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(n,a,i));if(l=+r[4],o=+r[5],s=+r[6],r[7]){for(f=r[7].slice(0,3);f.length<3;)f+="0";f=+f}return r[9]&&(y=+r[10],c=+(r[11]||0),u=(y*60+c)*6e4,r[9]==="-"&&(u=-u)),b=new Date(Date.UTC(n,a,i,l,o,s,f)),u&&b.setTime(b.getTime()-u),b}function ar(e){return e.toISOString()}var ir=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:rr,construct:nr,instanceOf:Date,represent:ar});function or(e){return e==="<<"||e===null}var lr=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:or}),ne=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
4
4
  \r`;function sr(e){if(e===null)return!1;var r,n,a=0,i=e.length,l=ne;for(n=0;n<i;n++)if(r=l.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;a+=6}return a%8===0}function cr(e){var r,n,a=e.replace(/[\r\n=]/g,""),i=a.length,l=ne,o=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|l.indexOf(a.charAt(r));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function dr(e){var r="",n=0,a,i,l=e.length,o=ne;for(a=0;a<l;a++)a%3===0&&a&&(r+=o[n>>18&63],r+=o[n>>12&63],r+=o[n>>6&63],r+=o[n&63]),n=(n<<8)+e[a];return i=l%3,i===0?(r+=o[n>>18&63],r+=o[n>>12&63],r+=o[n>>6&63],r+=o[n&63]):i===2?(r+=o[n>>10&63],r+=o[n>>4&63],r+=o[n<<2&63],r+=o[64]):i===1&&(r+=o[n>>2&63],r+=o[n<<4&63],r+=o[64],r+=o[64]),r}function ur(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var pr=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:sr,construct:cr,predicate:ur,represent:dr}),fr=Object.prototype.hasOwnProperty,yr=Object.prototype.toString;function gr(e){if(e===null)return!0;var r=[],n,a,i,l,o,s=e;for(n=0,a=s.length;n<a;n+=1){if(i=s[n],o=!1,yr.call(i)!=="[object Object]")return!1;for(l in i)if(fr.call(i,l))if(!o)o=!0;else return!1;if(!o)return!1;if(r.indexOf(l)===-1)r.push(l);else return!1}return!0}function hr(e){return e!==null?e:[]}var mr=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:gr,construct:hr}),br=Object.prototype.toString;function wr(e){if(e===null)return!0;var r,n,a,i,l,o=e;for(l=new Array(o.length),r=0,n=o.length;r<n;r+=1){if(a=o[r],br.call(a)!=="[object Object]"||(i=Object.keys(a),i.length!==1))return!1;l[r]=[i[0],a[i[0]]]}return!0}function Cr(e){if(e===null)return[];var r,n,a,i,l,o=e;for(l=new Array(o.length),r=0,n=o.length;r<n;r+=1)a=o[r],i=Object.keys(a),l[r]=[i[0],a[i[0]]];return l}var kr=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:wr,construct:Cr}),xr=Object.prototype.hasOwnProperty;function Nr(e){if(e===null)return!0;var r,n=e;for(r in n)if(xr.call(n,r)&&n[r]!==null)return!1;return!0}function Sr(e){return e!==null?e:{}}var _r=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:Nr,construct:Sr});tr.extend({implicit:[ir,lr],explicit:[pr,mr,kr,_r]});function Ne(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
5
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}for(var Tr=new Array(256),Ar=new Array(256),U=0;U<256;U++)Tr[U]=Ne(U)?1:0,Ar[U]=Ne(U);const Y="24px",Se=(e,r)=>{const n=e.__vccOpts||e;for(const[a,i]of r)n[a]=i;return n},Ir=e=>(t.pushScopeId("data-v-1d2a8d30"),e=e(),t.popScopeId(),e),Er=["aria-hidden"],Br={key:0,"data-testid":"kui-icon-svg-title"},Vr=Ir(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),vr=t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const r=String(e).replace(/px/gi,""),n=Number(r);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const r=e,n=t.computed(()=>{if(typeof r.size=="number"&&r.size>0)return`${r.size}px`;if(typeof r.size=="string"){const i=String(r.size).replace(/px/gi,""),l=Number(i);if(l&&!isNaN(l)&&Number.isInteger(l)&&l>0)return`${l}px`}return Y}),a=t.computed(()=>({boxSizing:"border-box",color:r.color,display:r.display,height:n.value,lineHeight:"0",width:n.value}));return(i,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(a.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Br,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Vr],8,Er))]),_:1},8,["aria-hidden","style"]))}}),Or=Se(vr,[["__scopeId","data-v-1d2a8d30"]]),$r=e=>(t.pushScopeId("data-v-cf4e7d0b"),e=e(),t.popScopeId(),e),jr=["aria-hidden"],Dr={key:0,"data-testid":"kui-icon-svg-title"},Kr=$r(()=>t.createElementVNode("path",{d:"M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",fill:"currentColor"},null,-1)),qr=t.defineComponent({__name:"MoreIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const r=String(e).replace(/px/gi,""),n=Number(r);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const r=e,n=t.computed(()=>{if(typeof r.size=="number"&&r.size>0)return`${r.size}px`;if(typeof r.size=="string"){const i=String(r.size).replace(/px/gi,""),l=Number(i);if(l&&!isNaN(l)&&Number.isInteger(l)&&l>0)return`${l}px`}return Y}),a=t.computed(()=>({boxSizing:"border-box",color:r.color,display:r.display,height:n.value,lineHeight:"0",width:n.value}));return(i,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon more-icon","data-testid":"kui-icon-wrapper-more-icon",style:t.normalizeStyle(a.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-more-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Dr,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Kr],8,jr))]),_:1},8,["aria-hidden","style"]))}}),Fr=Se(qr,[["__scopeId","data-v-cf4e7d0b"]]),Mr=["data-truncate"],Pr=t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const r=e,n=t.computed(()=>{var C;return((C=r.rowEl)==null?void 0:C.querySelector(`[data-testid="${r.keyName}"]`))||null}),a=t.computed(()=>{var C;return((C=n.value)==null?void 0:C.querySelector('[data-truncate="true"]'))||null}),i=t.computed(()=>{var C,_;const B=(C=r.rowEl)==null?void 0:C.querySelectorAll("td");return B?((_=B[0])==null?void 0:_.getAttribute("data-testid"))===r.keyName:!1}),l=t.computed(()=>i.value||r.tooltip);let o;const s=()=>{o&&(o.disconnect(),o=void 0)},f=()=>{var C,_,B;let $=((C=n.value)==null?void 0:C.clientWidth)||0;if(n.value&&"getComputedStyle"in window){const m=window.getComputedStyle(n.value);$-=(parseFloat(m.paddingLeft)||0)+(parseFloat(m.paddingRight)||0)}y.value=((_=a.value)==null?void 0:_.getBoundingClientRect().width)||0,c.value=$,b.value=((B=u.value)==null?void 0:B.innerText)||""},u=t.ref({}),y=t.ref(0),c=t.ref(0),b=t.ref(""),h=t.computed(()=>[a.value,n.value]),E=t.watch(h,C=>{if(l.value&&(s(),"ResizeObserver"in window&&window)){o=new ResizeObserver(_=>{window.requestAnimationFrame(()=>{!Array.isArray(_)||!_.length||f()})});for(const _ of C)_&&o.observe(_)}},{immediate:!0,flush:"post",deep:!0}),x=t.computed(()=>l.value?y.value>c.value:!1);return t.onMounted(()=>{f()}),t.onUnmounted(()=>{E()}),(C,_)=>{const B=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:u,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(B,{"max-width":"300",placement:"bottomStart",text:x.value?b.value:""},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Mr)):t.renderSlot(C.$slots,"default",{key:1},void 0,!0)],512)}}}),Lr=ee(Pr,[["__scopeId","data-v-471ce76e"]]),Ur={class:"toolbar-container"},Rr={key:0,class:"toolbar-button-container"},zr=["data-testid"],Hr=t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:()=>({})},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},disablePaginationPageJump:{type:Boolean,default:void 0},disableSorting:{type:Boolean,default:void 0},paginationType:{type:String,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:"",required:!0},dropdownMenuWidth:{type:String,default:"",required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:r}){const n=e,a=r,{i18n:{t:i}}=Q.useI18n(),l=t.computed(()=>{var d,k;return typeof n.errorMessage=="string"?{hasError:!!n.errorMessage,title:n.errorMessage,message:void 0}:{hasError:!!n.errorMessage,title:(d=n.errorMessage)==null?void 0:d.title,message:(k=n.errorMessage)==null?void 0:k.message}}),o=t.computed(()=>n.cacheIdentifier||n.preferencesStorageKey),s=d=>d.hasData||!!n.query,f=t.computed(()=>{const d=[];return Object.keys(n.tableHeaders).forEach(k=>{const N=n.tableHeaders[k];d.push({label:N.label??k,key:k,sortable:N.sortable??!1,hidable:!0})}),n.enableEntityActions&&d.push({key:"actions",hideLabel:!0}),d}),u=d=>({"data-rowid":d.id,"data-testid":d.name,...n.rowAttributes(d)}),y=t.ref({}),c=d=>{var k;return(k=y.value)==null?void 0:k.$el.querySelector(`[data-rowid="${d.id}"]`)},b=d=>{const k={"data-testid":d.headerKey,...n.cellAttributes(d)};return d.colIndex===0&&(k.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),k},h=()=>{a("empty-state-cta-clicked"),E()},E=()=>{a("clear-search-input")},x=t.computed(()=>n.disableRowClick?void 0:(d,k)=>{a("click:row",k)}),C=d=>{a("sort",d)},{setTablePreferences:_,getTablePreferences:B}=Fe(),$=t.ref(B(o.value)),m=t.computed(()=>{const d=B(o.value);return{...n.initialFetcherParams,...d}}),K=d=>{$.value=d,o.value&&_(o.value,d)};return(d,k)=>{const N=t.resolveComponent("KButton"),I=t.resolveComponent("KDropdown"),q=t.resolveComponent("KTable"),T=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(T,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(q,{ref_key:"tableRefs",ref:y,"cache-identifier":o.value,"cell-attrs":b,"client-sort":e.enableClientSort,"disable-pagination-page-jump":e.disablePaginationPageJump,"empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:f.value,"hide-pagination-when-optional":"","initial-fetcher-params":m.value,loading:e.isLoading,"pagination-offset":e.paginationType==="offset","resize-columns":"","row-attrs":u,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":$.value,onEmptyStateActionClick:h,"onRow:click":x.value,onSort:k[0]||(k[0]=S=>C(S)),"onUpdate:tablePreferences":K},t.createSlots({toolbar:t.withCtx(({state:S})=>[t.withDirectives(t.createElementVNode("div",Ur,[t.renderSlot(d.$slots,"toolbar-filter",{},void 0,!0),d.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Rr,[t.renderSlot(d.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,s(S)]])]),actions:t.withCtx(({row:S,rowKey:v,rowValue:L})=>[t.createElementVNode("div",{class:"actions-container","data-testid":S.name},[t.createVNode(I,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(d.$slots,"actions",{row:S,rowKey:v,rowValue:L},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(N,{appearance:"tertiary",class:"actions-trigger","data-testid":"overflow-actions-button",icon:"",size:"small"},{default:t.withCtx(()=>[t.createVNode(t.unref(Fr))]),_:1})]),_:2},1032,["width"])],8,zr)]),_:2},[t.renderList(e.tableHeaders,(S,v)=>({name:v,fn:t.withCtx(({row:L,rowKey:p,rowValue:w})=>[t.createVNode(Lr,{"key-name":String(v),"row-el":c(L),tooltip:S.tooltip},{default:t.withCtx(()=>[t.renderSlot(d.$slots,v,{row:L,rowKey:p,rowValue:w},()=>[t.createTextVNode(t.toDisplayString(w),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(Or))]),key:"0"}]),1032,["cache-identifier","client-sort","disable-pagination-page-jump","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","initial-fetcher-params","loading","pagination-offset","search-input","sort-handler-function","sortable","table-preferences","onRow:click"])]),_:3},8,["title","title-tag"])}}}),Wr=ee(Hr,[["__scopeId","data-v-67bd29c7"]]),Jr={key:0,class:"kong-ui-entity-delete-error"},Yr={key:1,class:"description"},Zr=t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:r}){const{i18nT:n}=Q.useI18n(),a=e,i=r,l=t.computed(()=>a.needConfirm?a.entityName:""),o=()=>{i("cancel")},s=()=>{i("proceed")};return(f,u)=>{const y=t.resolveComponent("KAlert"),c=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(c,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:o,onProceed:s},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",Jr,[t.createVNode(y,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(n),{class:"message",keypath:a.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.entityType),1)]),_:2},[a.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(a.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),a.description||f.$slots.description?(t.openBlock(),t.createElementBlock("div",Yr,[t.renderSlot(f.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(a.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),Gr=ee(Zr,[["__scopeId","data-v-4361d622"]]),ae=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const r=e,n=t.ref(void 0),a=t.computed(()=>n.value===!0||n.value!==void 0&&r.forceShow===!0);return t.watch(()=>r.authFunction,async()=>{n.value=await r.authFunction()},{immediate:!0}),(i,l)=>a.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:n.value}):t.createCommentVNode("",!0)}}),Xr=[];for(let e=0;e<256;++e)Xr.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const{useAxios:Qr,useDeleteUrlBuilder:en,useErrors:sn,useExternalLinkCreator:cn,useFetchUrlBuilder:dn,useFetcher:tn,useDebouncedFilter:un,useStringHelpers:pn,useHelpers:fn,useGatewayFeatureSupported:yn,useTruncationDetector:gn,useValidators:hn}=Q,rn={class:"kong-ui-entities-consumer-credentials-list"},nn={key:1},an=((e,r)=>{const n=e.__vccOpts||e;for(const[a,i]of r)n[a]=i;return n})(t.defineComponent({__name:"ConsumerCredentialList",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||!e.createRoute||!e.getEditRoute)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(e,{emit:r}){var L;const n=r,a=e,{i18n:{t:i,formatUnixTimeStamp:l}}=$e.useI18n(),{axiosInstance:o}=Qr((L=a.config)==null?void 0:L.axiosRequestConfig),s=t.ref(1),f={acls:{group:{label:i("credentials.list.table_headers.acls.group")},created_at:{label:i("credentials.list.table_headers.acls.created_at")},tags:{label:i("credentials.list.table_headers.acls.tags")}},"basic-auth":{password:{label:i("credentials.list.table_headers.basic-auth.password")},username:{label:i("credentials.list.table_headers.basic-auth.username")},created_at:{label:i("credentials.list.table_headers.basic-auth.created_at")},tags:{label:i("credentials.list.table_headers.basic-auth.tags")}},"key-auth":{key:{label:i("credentials.list.table_headers.key-auth.key")},created_at:{label:i("credentials.list.table_headers.key-auth.created_at")},tags:{label:i("credentials.list.table_headers.key-auth.tags")}},"key-auth-enc":{key:{label:i("credentials.list.table_headers.key-auth-enc.key")},created_at:{label:i("credentials.list.table_headers.key-auth-enc.created_at")},tags:{label:i("credentials.list.table_headers.key-auth-enc.tags")}},oauth2:{name:{label:i("credentials.list.table_headers.oauth2.name")},client_id:{label:i("credentials.list.table_headers.oauth2.client_id")},client_secret:{label:i("credentials.list.table_headers.oauth2.client_secret")},created_at:{label:i("credentials.list.table_headers.oauth2.created_at")},tags:{label:i("credentials.list.table_headers.oauth2.tags")}},"hmac-auth":{username:{label:i("credentials.list.table_headers.hmac-auth.username")},secret:{label:i("credentials.list.table_headers.hmac-auth.secret")},created_at:{label:i("credentials.list.table_headers.hmac-auth.created_at")},tags:{label:i("credentials.list.table_headers.hmac-auth.tags")}},jwt:{key:{label:i("credentials.list.table_headers.jwt.key")},algorithm:{label:i("credentials.list.table_headers.jwt.algorithm")},created_at:{label:i("credentials.list.table_headers.jwt.created_at")},tags:{label:i("credentials.list.table_headers.jwt.tags")}}},u=t.computed(()=>f[a.config.plugin]),y=t.computed(()=>{let p=`${a.config.apiBaseUrl}${je.list[a.config.app]}`;return a.config.app==="konnect"?p=p.replace(/{controlPlaneId}/gi,a.config.controlPlaneId||"").replace(/{consumerId}/gi,a.config.consumerId||"").replace(/{plugin}/gi,a.config.plugin||""):a.config.app==="kongManager"&&(p=p.replace(/\/{workspace}/gi,a.config.workspace?`/${a.config.workspace}`:"").replace(/{consumerId}/gi,a.config.consumerId||"").replace(/{plugin}/gi,a.config.plugin||"")),p}),{fetcher:c,fetcherState:b}=tn(a.config,y),h=()=>{s.value++},E=t.ref(null),x=(p,w,j)=>{const O=w?p[w]:JSON.stringify(p);if(!j(O)){_(p,w);return}C(p,w)},C=(p,w)=>{n("copy:success",{entity:p,field:w,message:w&&!["password","key","client_secret","secret"].includes(w)?i("credentials.copy.success",{val:p[w]}):i("credentials.copy.success_brief")})},_=(p,w)=>{n("copy:error",{entity:p,field:w,message:i("credentials.error.copy")})},B=p=>({label:i("credentials.actions.edit"),to:a.config.getEditRoute(p)}),$=t.ref(void 0),m=t.ref(!1),K=t.ref(!1),d=t.ref(""),k=en(a.config,y.value),N=t.computed(()=>le[a.config.plugin]),I=p=>{$.value=p,m.value=!0},q=()=>{m.value=!1},T=async()=>{var p,w,j;if((p=$.value)!=null&&p.id){K.value=!0;try{await o.delete(k($.value.id)),K.value=!1,m.value=!1,s.value++,n("delete:success",$.value)}catch(O){d.value=((j=(w=O.response)==null?void 0:w.data)==null?void 0:j.message)||O.message||i("credentials.error.delete"),n("error",O)}finally{K.value=!1}}},S=t.ref(!0);t.watch(b,p=>{var w,j,O,Z;if(Array.isArray((w=p==null?void 0:p.response)==null?void 0:w.data)&&(S.value=p.response.data.length>0),p.status===M.Error){E.value={title:i("credentials.error.general")},(Z=(O=(j=p.error)==null?void 0:j.response)==null?void 0:O.data)!=null&&Z.message&&(E.value.message=p.error.response.data.message),n("error",p.error);return}E.value=null});const v=t.ref({ctaPath:a.config.createRoute,ctaText:void 0,message:"",title:i("credentials.title")});return t.onBeforeMount(async()=>{await a.canCreate()&&(v.value.title=i(`credentials.list.empty_state.${a.config.plugin}.title`),v.value.ctaText=i(`credentials.list.empty_state.${a.config.plugin}.cta`))}),(p,w)=>{const j=t.resolveComponent("KButton"),O=t.resolveComponent("KCopy"),Z=t.resolveComponent("KBadge"),on=t.resolveComponent("KTruncate"),F=t.resolveComponent("KDropdownItem"),R=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",rn,[t.createVNode(t.unref(Wr),{"cache-identifier":e.cacheIdentifier,"disable-pagination-page-jump":"","disable-row-click":"","disable-sorting":"","empty-state-options":v.value,"enable-entity-actions":"","error-message":E.value,fetcher:t.unref(c),"fetcher-cache-key":s.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":u.value,"use-action-outside":e.useActionOutside,onSort:h},{"toolbar-button":t.withCtx(()=>[(t.openBlock(),t.createBlock(t.Teleport,{disabled:!e.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[t.createVNode(t.unref(ae),{"auth-function":()=>e.canCreate()},{default:t.withCtx(()=>[t.withDirectives(t.createVNode(j,{appearance:"primary","data-testid":"toolbar-add-credential",size:"large",to:e.config.createRoute},{default:t.withCtx(()=>[t.createVNode(t.unref(Ve)),t.createTextVNode(" "+t.toDisplayString(t.unref(i)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)),1)]),_:1},8,["to"]),[[t.vShow,S.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),group:t.withCtx(({rowValue:g})=>[t.createElementVNode("b",null,t.toDisplayString(g??"-"),1)]),name:t.withCtx(({rowValue:g})=>[t.createElementVNode("b",null,t.toDisplayString(g??"-"),1)]),username:t.withCtx(({rowValue:g})=>[t.createElementVNode("span",null,t.toDisplayString(g??"-"),1)]),password:t.withCtx(({rowValue:g})=>[t.createVNode(O,{format:"redacted",text:g,truncate:""},null,8,["text"])]),key:t.withCtx(({rowValue:g})=>[t.createVNode(O,{format:"redacted",text:g,truncate:""},null,8,["text"])]),client_secret:t.withCtx(({rowValue:g})=>[t.createVNode(O,{format:"redacted",text:g,truncate:""},null,8,["text"])]),secret:t.withCtx(({rowValue:g})=>[t.createVNode(O,{format:"redacted",text:g,truncate:""},null,8,["text"])]),created_at:t.withCtx(({rowValue:g})=>[t.createTextVNode(t.toDisplayString(t.unref(l)(g)),1)]),tags:t.withCtx(({rowValue:g})=>[(g==null?void 0:g.length)>0?(t.openBlock(),t.createBlock(on,{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g,V=>(t.openBlock(),t.createBlock(Z,{key:V,onClick:w[0]||(w[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(V),1)]),_:2},1024))),128))]),_:2},1024)):(t.openBlock(),t.createElementBlock("span",nn,"-"))]),actions:t.withCtx(({row:g})=>[t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(F,{"data-testid":"action-entity-copy-id",onClick:H=>x(g,"id",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.config.plugin==="basic-auth"?(t.openBlock(),t.createBlock(R,{key:0},{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(F,{"data-testid":"action-entity-copy-credential",onClick:H=>x(g,"password",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_credential")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),["key-auth","key-auth-enc","jwt"].includes(e.config.plugin)?(t.openBlock(),t.createBlock(R,{key:1},{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(F,{"data-testid":"action-entity-copy-key",onClick:H=>x(g,"key",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_key")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),e.config.plugin==="oauth2"?(t.openBlock(),t.createBlock(R,{key:2},{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(F,{"data-testid":"action-entity-copy-secret",onClick:H=>x(g,"client_secret",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),e.config.plugin==="hmac-auth"?(t.openBlock(),t.createBlock(R,{key:3},{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(F,{"data-testid":"action-entity-copy-secret",onClick:H=>x(g,"secret",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(F,{"data-testid":"action-entity-copy-json",onClick:H=>x(g,void 0,V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),t.createVNode(t.unref(ae),{"auth-function":()=>e.canEdit(g)},{default:t.withCtx(()=>[t.createVNode(F,{"data-testid":"action-entity-edit","has-divider":"",item:B(g.id)},null,8,["item"])]),_:2},1032,["auth-function"]),t.createVNode(t.unref(ae),{"auth-function":()=>e.canDelete(g)},{default:t.withCtx(()=>[t.createVNode(F,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:V=>I(g)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","table-headers","use-action-outside"]),t.createVNode(t.unref(Gr),{"action-pending":K.value,description:t.unref(i)("credentials.delete.description"),"entity-type":N.value,error:d.value,title:t.unref(i)(`credentials.delete.${e.config.plugin}.title`),visible:m.value,onCancel:q,onProceed:T},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-533f6d09"]]);D.ConsumerCredentialList=an,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
5
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}for(var Tr=new Array(256),Ar=new Array(256),U=0;U<256;U++)Tr[U]=Ne(U)?1:0,Ar[U]=Ne(U);const Y="24px",Se=(e,r)=>{const n=e.__vccOpts||e;for(const[a,i]of r)n[a]=i;return n},Ir=e=>(t.pushScopeId("data-v-1d2a8d30"),e=e(),t.popScopeId(),e),Er=["aria-hidden"],Br={key:0,"data-testid":"kui-icon-svg-title"},Vr=Ir(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),vr=t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const r=String(e).replace(/px/gi,""),n=Number(r);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const r=e,n=t.computed(()=>{if(typeof r.size=="number"&&r.size>0)return`${r.size}px`;if(typeof r.size=="string"){const i=String(r.size).replace(/px/gi,""),l=Number(i);if(l&&!isNaN(l)&&Number.isInteger(l)&&l>0)return`${l}px`}return Y}),a=t.computed(()=>({boxSizing:"border-box",color:r.color,display:r.display,height:n.value,lineHeight:"0",width:n.value}));return(i,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(a.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Br,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Vr],8,Er))]),_:1},8,["aria-hidden","style"]))}}),Or=Se(vr,[["__scopeId","data-v-1d2a8d30"]]),$r=e=>(t.pushScopeId("data-v-cf4e7d0b"),e=e(),t.popScopeId(),e),jr=["aria-hidden"],Dr={key:0,"data-testid":"kui-icon-svg-title"},Kr=$r(()=>t.createElementVNode("path",{d:"M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",fill:"currentColor"},null,-1)),Fr=t.defineComponent({__name:"MoreIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const r=String(e).replace(/px/gi,""),n=Number(r);if(n&&!isNaN(n)&&Number.isInteger(n)&&n>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const r=e,n=t.computed(()=>{if(typeof r.size=="number"&&r.size>0)return`${r.size}px`;if(typeof r.size=="string"){const i=String(r.size).replace(/px/gi,""),l=Number(i);if(l&&!isNaN(l)&&Number.isInteger(l)&&l>0)return`${l}px`}return Y}),a=t.computed(()=>({boxSizing:"border-box",color:r.color,display:r.display,height:n.value,lineHeight:"0",width:n.value}));return(i,l)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon more-icon","data-testid":"kui-icon-wrapper-more-icon",style:t.normalizeStyle(a.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-more-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Dr,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Kr],8,jr))]),_:1},8,["aria-hidden","style"]))}}),qr=Se(Fr,[["__scopeId","data-v-cf4e7d0b"]]),Mr=["data-truncate"],Pr=t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0},tooltip:{type:Boolean,default:!1}},setup(e){const r=e,n=t.computed(()=>{var C;return((C=r.rowEl)==null?void 0:C.querySelector(`[data-testid="${r.keyName}"]`))||null}),a=t.computed(()=>{var C;return((C=n.value)==null?void 0:C.querySelector('[data-truncate="true"]'))||null}),i=t.computed(()=>{var C,_;const B=(C=r.rowEl)==null?void 0:C.querySelectorAll("td");return B?((_=B[0])==null?void 0:_.getAttribute("data-testid"))===r.keyName:!1}),l=t.computed(()=>i.value||r.tooltip);let o;const s=()=>{o&&(o.disconnect(),o=void 0)},f=()=>{var C,_,B;let $=((C=n.value)==null?void 0:C.clientWidth)||0;if(n.value&&"getComputedStyle"in window){const m=window.getComputedStyle(n.value);$-=(parseFloat(m.paddingLeft)||0)+(parseFloat(m.paddingRight)||0)}y.value=((_=a.value)==null?void 0:_.getBoundingClientRect().width)||0,c.value=$,b.value=((B=u.value)==null?void 0:B.innerText)||""},u=t.ref({}),y=t.ref(0),c=t.ref(0),b=t.ref(""),h=t.computed(()=>[a.value,n.value]),E=t.watch(h,C=>{if(l.value&&(s(),"ResizeObserver"in window&&window)){o=new ResizeObserver(_=>{window.requestAnimationFrame(()=>{!Array.isArray(_)||!_.length||f()})});for(const _ of C)_&&o.observe(_)}},{immediate:!0,flush:"post",deep:!0}),x=t.computed(()=>l.value?y.value>c.value:!1);return t.onMounted(()=>{f()}),t.onUnmounted(()=>{E()}),(C,_)=>{const B=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:u,class:"content-wrapper"},[l.value?(t.openBlock(),t.createElementBlock("span",{key:0,"data-truncate":l.value||void 0},[t.createVNode(B,{"max-width":"300",placement:"bottomStart",text:x.value?b.value:""},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)]),_:3},8,["text"])],8,Mr)):t.renderSlot(C.$slots,"default",{key:1},void 0,!0)],512)}}}),Lr=ee(Pr,[["__scopeId","data-v-471ce76e"]]),Ur={class:"toolbar-container"},Rr={key:0,class:"toolbar-button-container"},zr=["data-testid"],Hr=t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},sortHandlerFunction:{type:Function,default:()=>({})},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},disablePaginationPageJump:{type:Boolean,default:void 0},disableSorting:{type:Boolean,default:void 0},paginationType:{type:String,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:"",required:!0},dropdownMenuWidth:{type:String,default:"",required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:r}){const n=e,a=r,{i18n:{t:i}}=Q.useI18n(),l=t.computed(()=>{var d,k;return typeof n.errorMessage=="string"?{hasError:!!n.errorMessage,title:n.errorMessage,message:void 0}:{hasError:!!n.errorMessage,title:(d=n.errorMessage)==null?void 0:d.title,message:(k=n.errorMessage)==null?void 0:k.message}}),o=t.computed(()=>n.cacheIdentifier||n.preferencesStorageKey),s=d=>d.hasData||!!n.query,f=t.computed(()=>{const d=[];return Object.keys(n.tableHeaders).forEach(k=>{const N=n.tableHeaders[k];d.push({label:N.label??k,key:k,sortable:N.sortable??!1,hidable:!0})}),n.enableEntityActions&&d.push({key:"actions",hideLabel:!0}),d}),u=d=>({"data-rowid":d.id,"data-testid":d.name,...n.rowAttributes(d)}),y=t.ref({}),c=d=>{var k;return(k=y.value)==null?void 0:k.$el.querySelector(`[data-rowid="${d.id}"]`)},b=d=>{const k={"data-testid":d.headerKey,...n.cellAttributes(d)};return d.colIndex===0&&(k.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),k},h=()=>{a("empty-state-cta-clicked"),E()},E=()=>{a("clear-search-input")},x=t.computed(()=>n.disableRowClick?void 0:(d,k)=>{a("click:row",k)}),C=d=>{a("sort",d)},{setTablePreferences:_,getTablePreferences:B}=qe(),$=t.ref(B(o.value)),m=t.computed(()=>{const d=B(o.value);return{...n.initialFetcherParams,...d}}),K=d=>{$.value=d,o.value&&_(o.value,d)};return(d,k)=>{const N=t.resolveComponent("KButton"),I=t.resolveComponent("KDropdown"),F=t.resolveComponent("KTable"),T=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(T,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(F,{ref_key:"tableRefs",ref:y,"cache-identifier":o.value,"cell-attrs":b,"client-sort":e.enableClientSort,"disable-pagination-page-jump":e.disablePaginationPageJump,"empty-state-action-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(i)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,error:l.value.hasError,"error-state-message":l.value.message,"error-state-title":l.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),headers:f.value,"hide-pagination-when-optional":"","initial-fetcher-params":m.value,loading:e.isLoading,"pagination-offset":e.paginationType==="offset","resize-columns":"","row-attrs":u,"search-input":e.query,"sort-handler-function":e.enableClientSort?e.sortHandlerFunction:void 0,sortable:!e.disableSorting,"table-preferences":$.value,onEmptyStateActionClick:h,"onRow:click":x.value,onSort:k[0]||(k[0]=S=>C(S)),"onUpdate:tablePreferences":K},t.createSlots({toolbar:t.withCtx(({state:S})=>[t.withDirectives(t.createElementVNode("div",Ur,[t.renderSlot(d.$slots,"toolbar-filter",{},void 0,!0),d.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",Rr,[t.renderSlot(d.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,s(S)]])]),actions:t.withCtx(({row:S,rowKey:v,rowValue:L})=>[t.createElementVNode("div",{class:"actions-container","data-testid":S.name},[t.createVNode(I,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(d.$slots,"actions",{row:S,rowKey:v,rowValue:L},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(N,{appearance:"tertiary",class:"actions-trigger","data-testid":"overflow-actions-button",icon:"",size:"small"},{default:t.withCtx(()=>[t.createVNode(t.unref(qr))]),_:1})]),_:2},1032,["width"])],8,zr)]),_:2},[t.renderList(e.tableHeaders,(S,v)=>({name:v,fn:t.withCtx(({row:L,rowKey:p,rowValue:w})=>[t.createVNode(Lr,{"key-name":String(v),"row-el":c(L),tooltip:S.tooltip},{default:t.withCtx(()=>[t.renderSlot(d.$slots,v,{row:L,rowKey:p,rowValue:w},()=>[t.createTextVNode(t.toDisplayString(w),1)],!0)]),_:2},1032,["key-name","row-el","tooltip"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(Or))]),key:"0"}]),1032,["cache-identifier","client-sort","disable-pagination-page-jump","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","error","error-state-message","error-state-title","fetcher","fetcher-cache-key","headers","initial-fetcher-params","loading","pagination-offset","search-input","sort-handler-function","sortable","table-preferences","onRow:click"])]),_:3},8,["title","title-tag"])}}}),Wr=ee(Hr,[["__scopeId","data-v-67bd29c7"]]),Jr={key:0,class:"kong-ui-entity-delete-error"},Yr={key:1,class:"description"},Zr=t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:r}){const{i18nT:n}=Q.useI18n(),a=e,i=r,l=t.computed(()=>a.needConfirm?a.entityName:""),o=()=>{i("cancel")},s=()=>{i("proceed")};return(f,u)=>{const y=t.resolveComponent("KAlert"),c=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(c,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":l.value,title:e.title,visible:e.visible,onCancel:o,onProceed:s},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",Jr,[t.createVNode(y,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(n),{class:"message",keypath:a.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.entityType),1)]),_:2},[a.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(a.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),a.description||f.$slots.description?(t.openBlock(),t.createElementBlock("div",Yr,[t.renderSlot(f.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(a.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),Gr=ee(Zr,[["__scopeId","data-v-4361d622"]]),ae=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const r=e,n=t.ref(void 0),a=t.computed(()=>n.value===!0||n.value!==void 0&&r.forceShow===!0);return t.watch(()=>r.authFunction,async()=>{n.value=await r.authFunction()},{immediate:!0}),(i,l)=>a.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:n.value}):t.createCommentVNode("",!0)}}),Xr=[];for(let e=0;e<256;++e)Xr.push((e+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const{useAxios:Qr,useDeleteUrlBuilder:en,useErrors:sn,useExternalLinkCreator:cn,useFetchUrlBuilder:dn,useFetcher:tn,useDebouncedFilter:un,useStringHelpers:pn,useHelpers:fn,useGatewayFeatureSupported:yn,useTruncationDetector:gn,useValidators:hn}=Q,rn={class:"kong-ui-entities-consumer-credentials-list"},nn={key:1},an=((e,r)=>{const n=e.__vccOpts||e;for(const[a,i]of r)n[a]=i;return n})(t.defineComponent({__name:"ConsumerCredentialList",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||!e.createRoute||!e.getEditRoute)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(e,{emit:r}){var L;const n=r,a=e,{i18n:{t:i,formatUnixTimeStamp:l}}=$e.useI18n(),{axiosInstance:o}=Qr((L=a.config)==null?void 0:L.axiosRequestConfig),s=t.ref(1),f={acls:{group:{label:i("credentials.list.table_headers.acls.group")},created_at:{label:i("credentials.list.table_headers.acls.created_at")},tags:{label:i("credentials.list.table_headers.acls.tags")}},"basic-auth":{password:{label:i("credentials.list.table_headers.basic-auth.password")},username:{label:i("credentials.list.table_headers.basic-auth.username")},created_at:{label:i("credentials.list.table_headers.basic-auth.created_at")},tags:{label:i("credentials.list.table_headers.basic-auth.tags")}},"key-auth":{key:{label:i("credentials.list.table_headers.key-auth.key")},created_at:{label:i("credentials.list.table_headers.key-auth.created_at")},tags:{label:i("credentials.list.table_headers.key-auth.tags")}},"key-auth-enc":{key:{label:i("credentials.list.table_headers.key-auth-enc.key")},created_at:{label:i("credentials.list.table_headers.key-auth-enc.created_at")},tags:{label:i("credentials.list.table_headers.key-auth-enc.tags")}},oauth2:{name:{label:i("credentials.list.table_headers.oauth2.name")},client_id:{label:i("credentials.list.table_headers.oauth2.client_id")},client_secret:{label:i("credentials.list.table_headers.oauth2.client_secret")},created_at:{label:i("credentials.list.table_headers.oauth2.created_at")},tags:{label:i("credentials.list.table_headers.oauth2.tags")}},"hmac-auth":{username:{label:i("credentials.list.table_headers.hmac-auth.username")},secret:{label:i("credentials.list.table_headers.hmac-auth.secret")},created_at:{label:i("credentials.list.table_headers.hmac-auth.created_at")},tags:{label:i("credentials.list.table_headers.hmac-auth.tags")}},jwt:{key:{label:i("credentials.list.table_headers.jwt.key")},algorithm:{label:i("credentials.list.table_headers.jwt.algorithm")},created_at:{label:i("credentials.list.table_headers.jwt.created_at")},tags:{label:i("credentials.list.table_headers.jwt.tags")}}},u=t.computed(()=>f[a.config.plugin]),y=t.computed(()=>{let p=`${a.config.apiBaseUrl}${je.list[a.config.app]}`;return a.config.app==="konnect"?p=p.replace(/{controlPlaneId}/gi,a.config.controlPlaneId||"").replace(/{consumerId}/gi,a.config.consumerId||"").replace(/{plugin}/gi,a.config.plugin||""):a.config.app==="kongManager"&&(p=p.replace(/\/{workspace}/gi,a.config.workspace?`/${a.config.workspace}`:"").replace(/{consumerId}/gi,a.config.consumerId||"").replace(/{plugin}/gi,a.config.plugin||"")),p}),{fetcher:c,fetcherState:b}=tn(a.config,y),h=()=>{s.value++},E=t.ref(null),x=(p,w,j)=>{const O=w?p[w]:JSON.stringify(p);if(!j(O)){_(p,w);return}C(p,w)},C=(p,w)=>{n("copy:success",{entity:p,field:w,message:w&&!["password","key","client_secret","secret"].includes(w)?i("credentials.copy.success",{val:p[w]}):i("credentials.copy.success_brief")})},_=(p,w)=>{n("copy:error",{entity:p,field:w,message:i("credentials.error.copy")})},B=p=>({label:i("credentials.actions.edit"),to:a.config.getEditRoute(p)}),$=t.ref(void 0),m=t.ref(!1),K=t.ref(!1),d=t.ref(""),k=en(a.config,y.value),N=t.computed(()=>le[a.config.plugin]),I=p=>{$.value=p,m.value=!0},F=()=>{m.value=!1},T=async()=>{var p,w,j;if((p=$.value)!=null&&p.id){K.value=!0;try{await o.delete(k($.value.id)),K.value=!1,m.value=!1,s.value++,n("delete:success",$.value)}catch(O){d.value=((j=(w=O.response)==null?void 0:w.data)==null?void 0:j.message)||O.message||i("credentials.error.delete"),n("error",O)}finally{K.value=!1}}},S=t.ref(!0);t.watch(b,p=>{var w,j,O,Z;if(Array.isArray((w=p==null?void 0:p.response)==null?void 0:w.data)&&(S.value=p.response.data.length>0),p.status===M.Error){E.value={title:i("credentials.error.general")},(Z=(O=(j=p.error)==null?void 0:j.response)==null?void 0:O.data)!=null&&Z.message&&(E.value.message=p.error.response.data.message),n("error",p.error);return}E.value=null});const v=t.ref({ctaPath:a.config.createRoute,ctaText:void 0,message:"",title:i("credentials.title")});return t.onBeforeMount(async()=>{await a.canCreate()&&(v.value.title=i(`credentials.list.empty_state.${a.config.plugin}.title`),v.value.ctaText=i(`credentials.list.empty_state.${a.config.plugin}.cta`))}),(p,w)=>{const j=t.resolveComponent("KButton"),O=t.resolveComponent("KCopy"),Z=t.resolveComponent("KBadge"),on=t.resolveComponent("KTruncate"),q=t.resolveComponent("KDropdownItem"),R=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",rn,[t.createVNode(t.unref(Wr),{"cache-identifier":e.cacheIdentifier,"disable-pagination-page-jump":"","disable-row-click":"","disable-sorting":"","empty-state-options":v.value,"enable-entity-actions":"","error-message":E.value,fetcher:t.unref(c),"fetcher-cache-key":s.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":u.value,"use-action-outside":e.useActionOutside,onSort:h},{"toolbar-button":t.withCtx(()=>[(t.openBlock(),t.createBlock(t.Teleport,{disabled:!e.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[t.createVNode(t.unref(ae),{"auth-function":()=>e.canCreate()},{default:t.withCtx(()=>[t.withDirectives(t.createVNode(j,{appearance:"primary","data-testid":"toolbar-add-credential",size:"large",to:e.config.createRoute},{default:t.withCtx(()=>[t.createVNode(t.unref(Ve)),t.createTextVNode(" "+t.toDisplayString(t.unref(i)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)),1)]),_:1},8,["to"]),[[t.vShow,S.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),group:t.withCtx(({rowValue:g})=>[t.createElementVNode("b",null,t.toDisplayString(g??"-"),1)]),name:t.withCtx(({rowValue:g})=>[t.createElementVNode("b",null,t.toDisplayString(g??"-"),1)]),username:t.withCtx(({rowValue:g})=>[t.createElementVNode("span",null,t.toDisplayString(g??"-"),1)]),password:t.withCtx(({rowValue:g})=>[t.createVNode(O,{format:"redacted",text:g,truncate:""},null,8,["text"])]),key:t.withCtx(({rowValue:g})=>[t.createVNode(O,{format:"redacted",text:g,truncate:""},null,8,["text"])]),client_secret:t.withCtx(({rowValue:g})=>[t.createVNode(O,{format:"redacted",text:g,truncate:""},null,8,["text"])]),secret:t.withCtx(({rowValue:g})=>[t.createVNode(O,{format:"redacted",text:g,truncate:""},null,8,["text"])]),created_at:t.withCtx(({rowValue:g})=>[t.createTextVNode(t.toDisplayString(t.unref(l)(g)),1)]),tags:t.withCtx(({rowValue:g})=>[(g==null?void 0:g.length)>0?(t.openBlock(),t.createBlock(on,{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g,V=>(t.openBlock(),t.createBlock(Z,{key:V,onClick:w[0]||(w[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(V),1)]),_:2},1024))),128))]),_:2},1024)):(t.openBlock(),t.createElementBlock("span",nn,"-"))]),actions:t.withCtx(({row:g})=>[t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(q,{"data-testid":"action-entity-copy-id",onClick:H=>x(g,"id",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.config.plugin==="basic-auth"?(t.openBlock(),t.createBlock(R,{key:0},{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(q,{"data-testid":"action-entity-copy-credential",onClick:H=>x(g,"password",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_credential")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),["key-auth","key-auth-enc","jwt"].includes(e.config.plugin)?(t.openBlock(),t.createBlock(R,{key:1},{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(q,{"data-testid":"action-entity-copy-key",onClick:H=>x(g,"key",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_key")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),e.config.plugin==="oauth2"?(t.openBlock(),t.createBlock(R,{key:2},{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(q,{"data-testid":"action-entity-copy-secret",onClick:H=>x(g,"client_secret",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),e.config.plugin==="hmac-auth"?(t.openBlock(),t.createBlock(R,{key:3},{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(q,{"data-testid":"action-entity-copy-secret",onClick:H=>x(g,"secret",V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:V})=>[t.createVNode(q,{"data-testid":"action-entity-copy-json",onClick:H=>x(g,void 0,V)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),t.createVNode(t.unref(ae),{"auth-function":()=>e.canEdit(g)},{default:t.withCtx(()=>[t.createVNode(q,{"data-testid":"action-entity-edit","has-divider":"",item:B(g.id)},null,8,["item"])]),_:2},1032,["auth-function"]),t.createVNode(t.unref(ae),{"auth-function":()=>e.canDelete(g)},{default:t.withCtx(()=>[t.createVNode(q,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:V=>I(g)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("credentials.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","table-headers","use-action-outside"]),t.createVNode(t.unref(Gr),{"action-pending":K.value,description:t.unref(i)("credentials.delete.description"),"entity-type":N.value,error:d.value,title:t.unref(i)(`credentials.delete.${e.config.plugin}.title`),visible:m.value,onCancel:F,onProceed:T},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-533f6d09"]]);D.ConsumerCredentialList=an,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-d268261c]{align-items:center;border-bottom:var(--dc1d91a8);display:var(--59ccec5f);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-d268261c]{width:var(--29318fbe)}.config-card-details-row .config-card-details-label label[data-v-d268261c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-d268261c]{width:var(--292d0408)}.config-card-details-row .config-card-details-value .truncated[data-v-d268261c]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-d268261c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d268261c] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d268261c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d268261c]{margin-right:4px}.config-card-details-row[data-v-d268261c] .k-label{margin-bottom:0}.config-card-details-row[data-v-d268261c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d268261c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 6px 12px}.json-endpoint .k-badge{height:24px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0}.json-endpoint code{direction:rtl;max-width:var(--4520e3ec);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-2052238b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f40a683b]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f40a683b]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f40a683b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f40a683b] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f40a683b]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-3def74fe]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-3def74fe]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-3def74fe] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-3def74fe] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-3def74fe] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-3def74fe] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-3def74fe] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-3def74fe] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-471ce76e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-67bd29c7]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-67bd29c7]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-67bd29c7]{float:right}.kong-ui-entity-base-table .actions-container[data-v-67bd29c7] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-94990087]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-be5bda4c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-be5bda4c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-be5bda4c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-be5bda4c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-be5bda4c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-be5bda4c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-be5bda4c]{margin-left:2px}.kong-ui-entities-consumer-credentials-list[data-v-533f6d09]{width:100%}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-d268261c]{align-items:center;border-bottom:var(--dc1d91a8);display:var(--59ccec5f);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-d268261c]{width:var(--29318fbe)}.config-card-details-row .config-card-details-label label[data-v-d268261c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-d268261c]{width:var(--292d0408)}.config-card-details-row .config-card-details-value .truncated[data-v-d268261c]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-d268261c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d268261c] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d268261c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d268261c]{margin-right:4px}.config-card-details-row[data-v-d268261c] .k-label{margin-bottom:0}.config-card-details-row[data-v-d268261c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d268261c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 6px 12px}.json-endpoint .k-badge{height:24px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0}.json-endpoint code{direction:rtl;max-width:var(--4520e3ec);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-2052238b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f40a683b]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f40a683b]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f40a683b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f40a683b] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f40a683b]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-fd05df8e]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-fd05df8e] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-fd05df8e] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-fd05df8e] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-471ce76e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-67bd29c7]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-67bd29c7]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-67bd29c7]{float:right}.kong-ui-entity-base-table .actions-container[data-v-67bd29c7] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-94990087]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-be5bda4c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-be5bda4c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-be5bda4c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-be5bda4c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-be5bda4c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-be5bda4c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-be5bda4c]{margin-left:2px}.kong-ui-entities-consumer-credentials-list[data-v-533f6d09]{width:100%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-consumer-credentials",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-consumer-credentials.umd.js",
6
6
  "module": "./dist/entities-consumer-credentials.es.js",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "@kong/icons": "^1.9.1",
54
- "@kong-ui-public/entities-shared": "^3.3.0"
54
+ "@kong-ui-public/entities-shared": "^3.3.1"
55
55
  },
56
56
  "scripts": {
57
57
  "dev": "cross-env USE_SANDBOX=true vite",