@kong-ui-public/entities-consumer-credentials 2.1.4 → 2.1.5
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
|
-
import { defineComponent as ne, ref as v, computed as N, watch as
|
|
2
|
-
import { createI18n as
|
|
1
|
+
import { defineComponent as ne, ref as v, computed as N, watch as le, renderSlot as J, createCommentVNode as Y, unref as m, resolveComponent as U, openBlock as E, createBlock as H, withCtx as o, createVNode as g, createSlots as Se, withDirectives as Te, createElementVNode as X, createElementBlock as V, vShow as Ae, renderList as Ne, createTextVNode as L, toDisplayString as I, onMounted as De, onUnmounted as Re, onBeforeMount as Be, Teleport as qe, Fragment as He, withModifiers as We } from "vue";
|
|
2
|
+
import { createI18n as Ie, i18nTComponent as xe } from "@kong-ui-public/i18n";
|
|
3
3
|
import ze from "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
5
5
|
import "vue-router";
|
|
@@ -148,10 +148,10 @@ const Je = {
|
|
|
148
148
|
credentials: Je
|
|
149
149
|
};
|
|
150
150
|
function Ve() {
|
|
151
|
-
const e =
|
|
151
|
+
const e = Ie("en-us", Ye);
|
|
152
152
|
return {
|
|
153
153
|
i18n: e,
|
|
154
|
-
i18nT:
|
|
154
|
+
i18nT: xe(e)
|
|
155
155
|
// Translation component <i18n-t>
|
|
156
156
|
};
|
|
157
157
|
}
|
|
@@ -163,8 +163,8 @@ const Ge = {
|
|
|
163
163
|
kongManager: "/{workspace}/consumers/{consumerId}/{plugin}"
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
var
|
|
167
|
-
function
|
|
166
|
+
var Ee = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Ee || {}), G = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(G || {});
|
|
167
|
+
function ue(e = {}) {
|
|
168
168
|
return {
|
|
169
169
|
axiosInstance: ze.create({
|
|
170
170
|
withCredentials: !0,
|
|
@@ -185,7 +185,7 @@ function Xe() {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const se = "khcp-user-table-preferences", Qe = {
|
|
189
189
|
pageSize: 30,
|
|
190
190
|
sortColumnKey: void 0,
|
|
191
191
|
sortColumnOrder: void 0
|
|
@@ -200,14 +200,14 @@ function et() {
|
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
}, r = () => {
|
|
203
|
-
const t = e(localStorage.getItem(
|
|
203
|
+
const t = e(localStorage.getItem(se));
|
|
204
204
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
205
205
|
};
|
|
206
206
|
return {
|
|
207
207
|
setTablePreferences: (t, a) => {
|
|
208
208
|
try {
|
|
209
209
|
const n = r();
|
|
210
|
-
n.set(t, a), localStorage.setItem(
|
|
210
|
+
n.set(t, a), localStorage.setItem(se, JSON.stringify(Object.fromEntries(n.entries())));
|
|
211
211
|
} catch (n) {
|
|
212
212
|
console.error("useTablePreferences(setTablePreferences)", n);
|
|
213
213
|
}
|
|
@@ -217,7 +217,7 @@ function et() {
|
|
|
217
217
|
return (a == null ? void 0 : a.get(t)) || void 0 || Qe;
|
|
218
218
|
},
|
|
219
219
|
deleteAllTablePreferences: () => {
|
|
220
|
-
localStorage.removeItem(
|
|
220
|
+
localStorage.removeItem(se);
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
}
|
|
@@ -319,15 +319,15 @@ const tt = {
|
|
|
319
319
|
errors: ot,
|
|
320
320
|
toggleModal: ct
|
|
321
321
|
};
|
|
322
|
-
function
|
|
323
|
-
const e =
|
|
322
|
+
function de() {
|
|
323
|
+
const e = Ie("en-us", ut);
|
|
324
324
|
return {
|
|
325
325
|
i18n: e,
|
|
326
|
-
i18nT:
|
|
326
|
+
i18nT: xe(e)
|
|
327
327
|
// Translation component <i18n-t>
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Oe() {
|
|
331
331
|
const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, r = (t, a) => {
|
|
332
332
|
if (t.length !== a.length)
|
|
333
333
|
return !1;
|
|
@@ -376,14 +376,14 @@ function dt(e, r, t, a = {
|
|
|
376
376
|
searchKeys: ["id"]
|
|
377
377
|
}) {
|
|
378
378
|
t || (t = "100");
|
|
379
|
-
const { axiosInstance: n } =
|
|
379
|
+
const { axiosInstance: n } = ue({
|
|
380
380
|
headers: e.requestHeaders
|
|
381
|
-
}), { i18n: { t: i } } =
|
|
381
|
+
}), { i18n: { t: i } } = de(), { debounce: l } = Xe(), u = l(async (s) => {
|
|
382
382
|
await W(s);
|
|
383
383
|
}, 200), p = v(!1), c = v(""), C = v(""), y = v([]), T = v([]), b = v(void 0), F = m(r);
|
|
384
384
|
let f = `${e.apiBaseUrl}${F}`;
|
|
385
385
|
e.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
386
|
-
const { isValidUuid: A } =
|
|
386
|
+
const { isValidUuid: A } = Oe(), P = async () => {
|
|
387
387
|
try {
|
|
388
388
|
p.value = !0;
|
|
389
389
|
const { data: s } = await n.get(`${f}?size=${t}`);
|
|
@@ -456,7 +456,7 @@ function pt(e, r) {
|
|
|
456
456
|
return a.value.search = "", (n) => `${a.value.href}/${n}`;
|
|
457
457
|
}
|
|
458
458
|
function ft() {
|
|
459
|
-
const { i18n: { t: e } } =
|
|
459
|
+
const { i18n: { t: e } } = de();
|
|
460
460
|
return {
|
|
461
461
|
getMessageFromError: (r) => {
|
|
462
462
|
var t, a, n;
|
|
@@ -494,7 +494,7 @@ function yt(e) {
|
|
|
494
494
|
return console.warn("Failed to build valid URL:", a), "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function je(e, r) {
|
|
498
498
|
const t = v(m(e)), a = v(m(r)), n = N(
|
|
499
499
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
500
500
|
), i = N(
|
|
@@ -513,9 +513,9 @@ function Ke(e, r) {
|
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
function ht(e, r, t = "data") {
|
|
516
|
-
const a = m(r), { axiosInstance: n } =
|
|
516
|
+
const a = m(r), { axiosInstance: n } = ue({
|
|
517
517
|
headers: e.requestHeaders
|
|
518
|
-
}), i =
|
|
518
|
+
}), i = je(e, a), l = v({
|
|
519
519
|
status: G.Idle
|
|
520
520
|
});
|
|
521
521
|
return { fetcher: async (u) => {
|
|
@@ -561,22 +561,22 @@ function gt() {
|
|
|
561
561
|
convertKeyToTitle: e
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
|
-
const
|
|
564
|
+
const Ke = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ge = (e) => {
|
|
565
565
|
if (typeof e != "string")
|
|
566
566
|
throw new TypeError("Invalid argument expected string");
|
|
567
|
-
const r = e.match(
|
|
567
|
+
const r = e.match(Ke);
|
|
568
568
|
if (!r)
|
|
569
569
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
570
570
|
return r.shift(), r;
|
|
571
|
-
},
|
|
571
|
+
}, me = (e) => e === "*" || e === "x" || e === "X", ve = (e) => {
|
|
572
572
|
const r = parseInt(e, 10);
|
|
573
573
|
return isNaN(r) ? e : r;
|
|
574
574
|
}, mt = (e, r) => typeof e != typeof r ? [String(e), String(r)] : [e, r], vt = (e, r) => {
|
|
575
|
-
if (
|
|
575
|
+
if (me(e) || me(r))
|
|
576
576
|
return 0;
|
|
577
|
-
const [t, a] = mt(
|
|
577
|
+
const [t, a] = mt(ve(e), ve(r));
|
|
578
578
|
return t > a ? 1 : t < a ? -1 : 0;
|
|
579
|
-
},
|
|
579
|
+
}, be = (e, r) => {
|
|
580
580
|
for (let t = 0; t < Math.max(e.length, r.length); t++) {
|
|
581
581
|
const a = vt(e[t] || "0", r[t] || "0");
|
|
582
582
|
if (a !== 0)
|
|
@@ -584,25 +584,25 @@ const $e = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
584
584
|
}
|
|
585
585
|
return 0;
|
|
586
586
|
}, bt = (e, r) => {
|
|
587
|
-
const t =
|
|
588
|
-
return l !== 0 ? l : n && i ?
|
|
589
|
-
},
|
|
587
|
+
const t = ge(e), a = ge(r), n = t.pop(), i = a.pop(), l = be(t, a);
|
|
588
|
+
return l !== 0 ? l : n && i ? be(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
|
|
589
|
+
}, we = (e, r, t) => {
|
|
590
590
|
wt(t);
|
|
591
591
|
const a = bt(e, r);
|
|
592
|
-
return
|
|
593
|
-
},
|
|
592
|
+
return $e[t].includes(a);
|
|
593
|
+
}, $e = {
|
|
594
594
|
">": [1],
|
|
595
595
|
">=": [0, 1],
|
|
596
596
|
"=": [0],
|
|
597
597
|
"<=": [-1, 0],
|
|
598
598
|
"<": [-1],
|
|
599
599
|
"!=": [-1, 1]
|
|
600
|
-
},
|
|
600
|
+
}, ke = Object.keys($e), wt = (e) => {
|
|
601
601
|
if (typeof e != "string")
|
|
602
602
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
603
|
-
if (
|
|
604
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
605
|
-
}, kt = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
603
|
+
if (ke.indexOf(e) === -1)
|
|
604
|
+
throw new Error(`Invalid operator, expected one of ${ke.join("|")}`);
|
|
605
|
+
}, kt = (e) => typeof e == "string" && /^[v\d]/.test(e) && Ke.test(e);
|
|
606
606
|
function Ct(e) {
|
|
607
607
|
const { gatewayInfo: r, supportedRange: t } = e;
|
|
608
608
|
if (!r)
|
|
@@ -614,44 +614,44 @@ function Ct(e) {
|
|
|
614
614
|
if (!i)
|
|
615
615
|
return !1;
|
|
616
616
|
const [l, u] = i;
|
|
617
|
-
return !(l &&
|
|
617
|
+
return !(l && we(n, l, "<") || u && we(n, u, ">"));
|
|
618
618
|
}
|
|
619
619
|
function _t(e) {
|
|
620
620
|
const r = v(0), t = v(0), a = v(!1);
|
|
621
|
-
return
|
|
621
|
+
return le(e, (n) => {
|
|
622
622
|
n && !a.value && (r.value = n.offsetWidth, t.value = n.scrollWidth, a.value = !0);
|
|
623
623
|
}), {
|
|
624
624
|
isTruncated: N(() => r.value < t.value)
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
const
|
|
628
|
-
useAxios:
|
|
627
|
+
const pe = {
|
|
628
|
+
useAxios: ue,
|
|
629
629
|
useDebouncedFilter: dt,
|
|
630
630
|
useDeleteUrlBuilder: pt,
|
|
631
631
|
useErrors: ft,
|
|
632
632
|
useExternalLinkCreator: yt,
|
|
633
633
|
useFetcher: ht,
|
|
634
|
-
useFetchUrlBuilder:
|
|
635
|
-
useHelpers:
|
|
634
|
+
useFetchUrlBuilder: je,
|
|
635
|
+
useHelpers: Oe,
|
|
636
636
|
useStringHelpers: gt,
|
|
637
|
-
useI18n:
|
|
637
|
+
useI18n: de,
|
|
638
638
|
useGatewayFeatureSupported: Ct,
|
|
639
639
|
useTruncationDetector: _t
|
|
640
|
-
},
|
|
640
|
+
}, fe = (e, r) => {
|
|
641
641
|
const t = e.__vccOpts || e;
|
|
642
642
|
for (const [a, n] of r)
|
|
643
643
|
t[a] = n;
|
|
644
644
|
return t;
|
|
645
645
|
}, St = "#3a3f51";
|
|
646
646
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
647
|
-
function
|
|
647
|
+
function Fe(e) {
|
|
648
648
|
return typeof e > "u" || e === null;
|
|
649
649
|
}
|
|
650
650
|
function Tt(e) {
|
|
651
651
|
return typeof e == "object" && e !== null;
|
|
652
652
|
}
|
|
653
653
|
function At(e) {
|
|
654
|
-
return Array.isArray(e) ? e :
|
|
654
|
+
return Array.isArray(e) ? e : Fe(e) ? [] : [e];
|
|
655
655
|
}
|
|
656
656
|
function Nt(e, r) {
|
|
657
657
|
var t, a, n, i;
|
|
@@ -669,7 +669,7 @@ function It(e, r) {
|
|
|
669
669
|
function xt(e) {
|
|
670
670
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
671
671
|
}
|
|
672
|
-
var Et =
|
|
672
|
+
var Et = Fe, Ot = Tt, jt = At, Kt = It, $t = xt, Ft = Nt, ye = {
|
|
673
673
|
isNothing: Et,
|
|
674
674
|
isObject: Ot,
|
|
675
675
|
toArray: jt,
|
|
@@ -677,19 +677,19 @@ var Et = Pe, Ot = Tt, jt = At, Kt = It, $t = xt, Ft = Nt, he = {
|
|
|
677
677
|
isNegativeZero: $t,
|
|
678
678
|
extend: Ft
|
|
679
679
|
};
|
|
680
|
-
function
|
|
680
|
+
function Pe(e, r) {
|
|
681
681
|
var t = "", a = e.reason || "(unknown reason)";
|
|
682
682
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !r && e.mark.snippet && (t += `
|
|
683
683
|
|
|
684
684
|
` + e.mark.snippet), a + " " + t) : a;
|
|
685
685
|
}
|
|
686
686
|
function ae(e, r) {
|
|
687
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message =
|
|
687
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = r, this.message = Pe(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
688
688
|
}
|
|
689
689
|
ae.prototype = Object.create(Error.prototype);
|
|
690
690
|
ae.prototype.constructor = ae;
|
|
691
691
|
ae.prototype.toString = function(e) {
|
|
692
|
-
return this.name + ": " +
|
|
692
|
+
return this.name + ": " + Pe(this, e);
|
|
693
693
|
};
|
|
694
694
|
var Z = ae, Pt = [
|
|
695
695
|
"kind",
|
|
@@ -727,7 +727,7 @@ function Lt(e, r) {
|
|
|
727
727
|
throw new Z('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
728
728
|
}
|
|
729
729
|
var K = Lt;
|
|
730
|
-
function
|
|
730
|
+
function Ce(e, r) {
|
|
731
731
|
var t = [];
|
|
732
732
|
return e[r].forEach(function(a) {
|
|
733
733
|
var n = t.length;
|
|
@@ -756,10 +756,10 @@ function Dt() {
|
|
|
756
756
|
arguments[r].forEach(a);
|
|
757
757
|
return e;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function ce(e) {
|
|
760
760
|
return this.extend(e);
|
|
761
761
|
}
|
|
762
|
-
|
|
762
|
+
ce.prototype.extend = function(e) {
|
|
763
763
|
var r = [], t = [];
|
|
764
764
|
if (e instanceof K)
|
|
765
765
|
t.push(e);
|
|
@@ -780,10 +780,10 @@ ue.prototype.extend = function(e) {
|
|
|
780
780
|
if (!(n instanceof K))
|
|
781
781
|
throw new Z("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
782
782
|
});
|
|
783
|
-
var a = Object.create(
|
|
784
|
-
return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit =
|
|
783
|
+
var a = Object.create(ce.prototype);
|
|
784
|
+
return a.implicit = (this.implicit || []).concat(r), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Ce(a, "implicit"), a.compiledExplicit = Ce(a, "explicit"), a.compiledTypeMap = Dt(a.compiledImplicit, a.compiledExplicit), a;
|
|
785
785
|
};
|
|
786
|
-
var Rt =
|
|
786
|
+
var Rt = ce, Bt = new K("tag:yaml.org,2002:str", {
|
|
787
787
|
kind: "scalar",
|
|
788
788
|
construct: function(e) {
|
|
789
789
|
return e !== null ? e : "";
|
|
@@ -942,7 +942,7 @@ function nr(e) {
|
|
|
942
942
|
return t * parseInt(r, 10);
|
|
943
943
|
}
|
|
944
944
|
function ir(e) {
|
|
945
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
945
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ye.isNegativeZero(e);
|
|
946
946
|
}
|
|
947
947
|
var lr = new K("tag:yaml.org,2002:int", {
|
|
948
948
|
kind: "scalar",
|
|
@@ -1014,12 +1014,12 @@ function dr(e, r) {
|
|
|
1014
1014
|
case "camelcase":
|
|
1015
1015
|
return "-.Inf";
|
|
1016
1016
|
}
|
|
1017
|
-
else if (
|
|
1017
|
+
else if (ye.isNegativeZero(e))
|
|
1018
1018
|
return "-0.0";
|
|
1019
1019
|
return t = e.toString(10), ur.test(t) ? t.replace("e", ".e") : t;
|
|
1020
1020
|
}
|
|
1021
1021
|
function pr(e) {
|
|
1022
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1022
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ye.isNegativeZero(e));
|
|
1023
1023
|
}
|
|
1024
1024
|
var fr = new K("tag:yaml.org,2002:float", {
|
|
1025
1025
|
kind: "scalar",
|
|
@@ -1035,17 +1035,17 @@ var fr = new K("tag:yaml.org,2002:float", {
|
|
|
1035
1035
|
lr,
|
|
1036
1036
|
fr
|
|
1037
1037
|
]
|
|
1038
|
-
}), hr = yr,
|
|
1038
|
+
}), hr = yr, Ue = new RegExp(
|
|
1039
1039
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1040
|
-
),
|
|
1040
|
+
), Me = new RegExp(
|
|
1041
1041
|
"^([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]))?))?$"
|
|
1042
1042
|
);
|
|
1043
1043
|
function gr(e) {
|
|
1044
|
-
return e === null ? !1 :
|
|
1044
|
+
return e === null ? !1 : Ue.exec(e) !== null || Me.exec(e) !== null;
|
|
1045
1045
|
}
|
|
1046
1046
|
function mr(e) {
|
|
1047
1047
|
var r, t, a, n, i, l, u, p = 0, c = null, C, y, T;
|
|
1048
|
-
if (r =
|
|
1048
|
+
if (r = Ue.exec(e), r === null && (r = Me.exec(e)), r === null)
|
|
1049
1049
|
throw new Error("Date resolve error");
|
|
1050
1050
|
if (t = +r[1], a = +r[2] - 1, n = +r[3], !r[4])
|
|
1051
1051
|
return new Date(Date.UTC(t, a, n));
|
|
@@ -1072,12 +1072,12 @@ function wr(e) {
|
|
|
1072
1072
|
var kr = new K("tag:yaml.org,2002:merge", {
|
|
1073
1073
|
kind: "scalar",
|
|
1074
1074
|
resolve: wr
|
|
1075
|
-
}),
|
|
1075
|
+
}), he = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1076
1076
|
\r`;
|
|
1077
1077
|
function Cr(e) {
|
|
1078
1078
|
if (e === null)
|
|
1079
1079
|
return !1;
|
|
1080
|
-
var r, t, a = 0, n = e.length, i =
|
|
1080
|
+
var r, t, a = 0, n = e.length, i = he;
|
|
1081
1081
|
for (t = 0; t < n; t++)
|
|
1082
1082
|
if (r = i.indexOf(e.charAt(t)), !(r > 64)) {
|
|
1083
1083
|
if (r < 0)
|
|
@@ -1087,13 +1087,13 @@ function Cr(e) {
|
|
|
1087
1087
|
return a % 8 === 0;
|
|
1088
1088
|
}
|
|
1089
1089
|
function _r(e) {
|
|
1090
|
-
var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i =
|
|
1090
|
+
var r, t, a = e.replace(/[\r\n=]/g, ""), n = a.length, i = he, l = 0, u = [];
|
|
1091
1091
|
for (r = 0; r < n; r++)
|
|
1092
1092
|
r % 4 === 0 && r && (u.push(l >> 16 & 255), u.push(l >> 8 & 255), u.push(l & 255)), l = l << 6 | i.indexOf(a.charAt(r));
|
|
1093
1093
|
return t = n % 4 * 6, t === 0 ? (u.push(l >> 16 & 255), u.push(l >> 8 & 255), u.push(l & 255)) : t === 18 ? (u.push(l >> 10 & 255), u.push(l >> 2 & 255)) : t === 12 && u.push(l >> 4 & 255), new Uint8Array(u);
|
|
1094
1094
|
}
|
|
1095
1095
|
function Sr(e) {
|
|
1096
|
-
var r = "", t = 0, a, n, i = e.length, l =
|
|
1096
|
+
var r = "", t = 0, a, n, i = e.length, l = he;
|
|
1097
1097
|
for (a = 0; a < i; a++)
|
|
1098
1098
|
a % 3 === 0 && a && (r += l[t >> 18 & 63], r += l[t >> 12 & 63], r += l[t >> 6 & 63], r += l[t & 63]), t = (t << 8) + e[a];
|
|
1099
1099
|
return n = i % 3, n === 0 ? (r += l[t >> 18 & 63], r += l[t >> 12 & 63], r += l[t >> 6 & 63], r += l[t & 63]) : n === 2 ? (r += l[t >> 10 & 63], r += l[t >> 4 & 63], r += l[t << 2 & 63], r += l[64]) : n === 1 && (r += l[t >> 2 & 63], r += l[t << 4 & 63], r += l[64], r += l[64]), r;
|
|
@@ -1191,13 +1191,13 @@ hr.extend({
|
|
|
1191
1191
|
Lr
|
|
1192
1192
|
]
|
|
1193
1193
|
});
|
|
1194
|
-
function
|
|
1194
|
+
function _e(e) {
|
|
1195
1195
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1196
1196
|
` : 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" : "";
|
|
1197
1197
|
}
|
|
1198
1198
|
var Dr = new Array(256), Rr = new Array(256);
|
|
1199
1199
|
for (var re = 0; re < 256; re++)
|
|
1200
|
-
Dr[re] =
|
|
1200
|
+
Dr[re] = _e(re) ? 1 : 0, Rr[re] = _e(re);
|
|
1201
1201
|
const Br = {
|
|
1202
1202
|
key: 0,
|
|
1203
1203
|
"data-testid": "first-col"
|
|
@@ -1231,7 +1231,7 @@ const Br = {
|
|
|
1231
1231
|
}, u = () => {
|
|
1232
1232
|
var f, A, P;
|
|
1233
1233
|
c.value = ((f = a.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, C.value = ((A = t.value) == null ? void 0 : A.clientWidth) || 0, y.value = ((P = p.value) == null ? void 0 : P.innerText) || "";
|
|
1234
|
-
}, p = v({}), c = v(0), C = v(0), y = v(""), T = N(() => [a.value, t.value]), b =
|
|
1234
|
+
}, p = v({}), c = v(0), C = v(0), y = v(""), T = N(() => [a.value, t.value]), b = le(
|
|
1235
1235
|
T,
|
|
1236
1236
|
(f) => {
|
|
1237
1237
|
if (n.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -1272,7 +1272,7 @@ const Br = {
|
|
|
1272
1272
|
], 512);
|
|
1273
1273
|
};
|
|
1274
1274
|
}
|
|
1275
|
-
}), Hr = /* @__PURE__ */
|
|
1275
|
+
}), Hr = /* @__PURE__ */ fe(qr, [["__scopeId", "data-v-e42a20c9"]]), Wr = { class: "toolbar-container" }, zr = {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
class: "toolbar-button-container"
|
|
1278
1278
|
}, Jr = ["data-testid"], Yr = /* @__PURE__ */ ne({
|
|
@@ -1385,7 +1385,7 @@ const Br = {
|
|
|
1385
1385
|
},
|
|
1386
1386
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
1387
1387
|
setup(e, { emit: r }) {
|
|
1388
|
-
const t = e, { i18n: { t: a } } =
|
|
1388
|
+
const t = e, { i18n: { t: a } } = pe.useI18n(), n = N(() => {
|
|
1389
1389
|
var s, w;
|
|
1390
1390
|
return typeof t.errorMessage == "string" ? {
|
|
1391
1391
|
hasError: !!t.errorMessage,
|
|
@@ -1481,15 +1481,15 @@ const Br = {
|
|
|
1481
1481
|
"onRow:click": F.value,
|
|
1482
1482
|
onSort: w[0] || (w[0] = (_) => f(_)),
|
|
1483
1483
|
"onUpdate:tablePreferences": W
|
|
1484
|
-
},
|
|
1484
|
+
}, Se({
|
|
1485
1485
|
toolbar: o(({ state: _ }) => [
|
|
1486
|
-
|
|
1486
|
+
Te(X("div", Wr, [
|
|
1487
1487
|
J(s.$slots, "toolbar-filter", {}, void 0, !0),
|
|
1488
1488
|
s.$slots["toolbar-button"] ? (E(), V("div", zr, [
|
|
1489
1489
|
J(s.$slots, "toolbar-button", {}, void 0, !0)
|
|
1490
1490
|
])) : Y("", !0)
|
|
1491
1491
|
], 512), [
|
|
1492
|
-
[
|
|
1492
|
+
[Ae, l(_)]
|
|
1493
1493
|
])
|
|
1494
1494
|
]),
|
|
1495
1495
|
actions: o(({ row: _, rowKey: j, rowValue: D }) => [
|
|
@@ -1530,7 +1530,7 @@ const Br = {
|
|
|
1530
1530
|
]),
|
|
1531
1531
|
_: 2
|
|
1532
1532
|
}, [
|
|
1533
|
-
|
|
1533
|
+
Ne(e.tableHeaders, (_, j) => ({
|
|
1534
1534
|
name: j,
|
|
1535
1535
|
fn: o(({ row: D, rowKey: d, rowValue: k }) => [
|
|
1536
1536
|
g(Hr, {
|
|
@@ -1556,7 +1556,7 @@ const Br = {
|
|
|
1556
1556
|
}, 8, ["title"]);
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
1559
|
-
}), Vr = /* @__PURE__ */
|
|
1559
|
+
}), Vr = /* @__PURE__ */ fe(Yr, [["__scopeId", "data-v-499a771c"]]), Gr = {
|
|
1560
1560
|
key: 0,
|
|
1561
1561
|
class: "kong-ui-entity-delete-error"
|
|
1562
1562
|
}, Zr = {
|
|
@@ -1601,7 +1601,7 @@ const Br = {
|
|
|
1601
1601
|
},
|
|
1602
1602
|
emits: ["cancel", "proceed"],
|
|
1603
1603
|
setup(e, { emit: r }) {
|
|
1604
|
-
const t = e, { i18nT: a } =
|
|
1604
|
+
const t = e, { i18nT: a } = pe.useI18n(), n = N(() => t.needConfirm ? t.entityName : ""), i = () => {
|
|
1605
1605
|
r("cancel");
|
|
1606
1606
|
}, l = () => {
|
|
1607
1607
|
r("proceed");
|
|
@@ -1632,7 +1632,7 @@ const Br = {
|
|
|
1632
1632
|
class: "message",
|
|
1633
1633
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
1634
1634
|
tag: "p"
|
|
1635
|
-
},
|
|
1635
|
+
}, Se({
|
|
1636
1636
|
entityType: o(() => [
|
|
1637
1637
|
L(I(t.entityType), 1)
|
|
1638
1638
|
]),
|
|
@@ -1656,7 +1656,7 @@ const Br = {
|
|
|
1656
1656
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
|
-
}), Qr = /* @__PURE__ */
|
|
1659
|
+
}), Qr = /* @__PURE__ */ fe(Xr, [["__scopeId", "data-v-1c9a2a07"]]), oe = /* @__PURE__ */ ne({
|
|
1660
1660
|
__name: "PermissionsWrapper",
|
|
1661
1661
|
props: {
|
|
1662
1662
|
/**
|
|
@@ -1679,14 +1679,14 @@ const Br = {
|
|
|
1679
1679
|
},
|
|
1680
1680
|
setup(e) {
|
|
1681
1681
|
const r = e, t = v(void 0), a = N(() => t.value === !0 || t.value !== void 0 && r.forceShow === !0);
|
|
1682
|
-
return
|
|
1682
|
+
return le(() => r.authFunction, async () => {
|
|
1683
1683
|
t.value = await r.authFunction();
|
|
1684
1684
|
}, { immediate: !0 }), (n, i) => a.value ? J(n.$slots, "default", {
|
|
1685
1685
|
key: 0,
|
|
1686
1686
|
isAllowed: t.value
|
|
1687
1687
|
}) : Y("", !0);
|
|
1688
1688
|
}
|
|
1689
|
-
}), { useAxios: ea, useDeleteUrlBuilder: ta, useErrors: pa, useExternalLinkCreator: fa, useFetchUrlBuilder: ya, useFetcher: ra, useDebouncedFilter: ha, useStringHelpers: ga, useHelpers: ma, useGatewayFeatureSupported: va, useTruncationDetector: ba } =
|
|
1689
|
+
}), { useAxios: ea, useDeleteUrlBuilder: ta, useErrors: pa, useExternalLinkCreator: fa, useFetchUrlBuilder: ya, useFetcher: ra, useDebouncedFilter: ha, useStringHelpers: ga, useHelpers: ma, useGatewayFeatureSupported: va, useTruncationDetector: ba } = pe;
|
|
1690
1690
|
const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key: 1 }, ia = /* @__PURE__ */ ne({
|
|
1691
1691
|
__name: "ConsumerCredentialList",
|
|
1692
1692
|
props: {
|
|
@@ -1800,7 +1800,7 @@ const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key:
|
|
|
1800
1800
|
}, Q = (d) => ({
|
|
1801
1801
|
label: a("credentials.actions.edit"),
|
|
1802
1802
|
to: t.config.getEditRoute(d)
|
|
1803
|
-
}), W = v(void 0), s = v(!1), w = v(!1), B = v(""), ee = ta(t.config, c.value), x = N(() =>
|
|
1803
|
+
}), W = v(void 0), s = v(!1), w = v(!1), B = v(""), ee = ta(t.config, c.value), x = N(() => Ee[t.config.plugin]), O = (d) => {
|
|
1804
1804
|
W.value = d, s.value = !0;
|
|
1805
1805
|
}, q = () => {
|
|
1806
1806
|
s.value = !1;
|
|
@@ -1817,12 +1817,12 @@ const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key:
|
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
}, j = v(!0);
|
|
1820
|
-
|
|
1821
|
-
var k, R, $, ie
|
|
1822
|
-
if (((
|
|
1820
|
+
le(y, (d) => {
|
|
1821
|
+
var k, R, $, ie;
|
|
1822
|
+
if (Array.isArray((k = d == null ? void 0 : d.response) == null ? void 0 : k.data) && (j.value = d.response.data.length > 0), d.status === G.Error) {
|
|
1823
1823
|
b.value = {
|
|
1824
1824
|
title: a("credentials.error.general")
|
|
1825
|
-
}, (
|
|
1825
|
+
}, (ie = ($ = (R = d.error) == null ? void 0 : R.response) == null ? void 0 : $.data) != null && ie.message && (b.value.message = d.error.response.data.message), r("error", d.error);
|
|
1826
1826
|
return;
|
|
1827
1827
|
}
|
|
1828
1828
|
b.value = null;
|
|
@@ -1836,7 +1836,7 @@ const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key:
|
|
|
1836
1836
|
return Be(async () => {
|
|
1837
1837
|
await t.canCreate() && (D.value.title = a(`credentials.list.empty_state.${t.config.plugin}.title`), D.value.ctaText = a(`credentials.list.empty_state.${t.config.plugin}.cta`));
|
|
1838
1838
|
}), (d, k) => {
|
|
1839
|
-
const R = U("KButton"), $ = U("CopyUuid"), ie = U("KBadge"),
|
|
1839
|
+
const R = U("KButton"), $ = U("CopyUuid"), ie = U("KBadge"), Le = U("KTruncate"), z = U("KDropdownItem"), te = U("KClipboardProvider");
|
|
1840
1840
|
return E(), V("div", aa, [
|
|
1841
1841
|
g(m(Vr), {
|
|
1842
1842
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -1859,11 +1859,11 @@ const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key:
|
|
|
1859
1859
|
disabled: !e.useActionOutside,
|
|
1860
1860
|
to: "#kong-ui-app-page-header-action-button"
|
|
1861
1861
|
}, [
|
|
1862
|
-
g(m(
|
|
1862
|
+
g(m(oe), {
|
|
1863
1863
|
"auth-function": () => e.canCreate()
|
|
1864
1864
|
}, {
|
|
1865
1865
|
default: o(() => [
|
|
1866
|
-
|
|
1866
|
+
Te(g(R, {
|
|
1867
1867
|
appearance: "primary",
|
|
1868
1868
|
"data-testid": "toolbar-add-credential",
|
|
1869
1869
|
icon: "plus",
|
|
@@ -1874,7 +1874,7 @@ const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key:
|
|
|
1874
1874
|
]),
|
|
1875
1875
|
_: 1
|
|
1876
1876
|
}, 8, ["to"]), [
|
|
1877
|
-
[
|
|
1877
|
+
[Ae, j.value]
|
|
1878
1878
|
])
|
|
1879
1879
|
]),
|
|
1880
1880
|
_: 1
|
|
@@ -1922,9 +1922,9 @@ const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key:
|
|
|
1922
1922
|
L(I(m(n)(h)), 1)
|
|
1923
1923
|
]),
|
|
1924
1924
|
tags: o(({ rowValue: h }) => [
|
|
1925
|
-
(h == null ? void 0 : h.length) > 0 ? (E(), H(
|
|
1925
|
+
(h == null ? void 0 : h.length) > 0 ? (E(), H(Le, { key: 0 }, {
|
|
1926
1926
|
default: o(() => [
|
|
1927
|
-
(E(!0), V(He, null,
|
|
1927
|
+
(E(!0), V(He, null, Ne(h, (S) => (E(), H(ie, {
|
|
1928
1928
|
key: S,
|
|
1929
1929
|
onClick: k[0] || (k[0] = We(() => {
|
|
1930
1930
|
}, ["stop"]))
|
|
@@ -2023,7 +2023,7 @@ const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key:
|
|
|
2023
2023
|
]),
|
|
2024
2024
|
_: 2
|
|
2025
2025
|
}, 1024),
|
|
2026
|
-
g(m(
|
|
2026
|
+
g(m(oe), {
|
|
2027
2027
|
"auth-function": () => e.canEdit(h)
|
|
2028
2028
|
}, {
|
|
2029
2029
|
default: o(() => [
|
|
@@ -2035,7 +2035,7 @@ const aa = { class: "kong-ui-entities-consumer-credentials-list" }, na = { key:
|
|
|
2035
2035
|
]),
|
|
2036
2036
|
_: 2
|
|
2037
2037
|
}, 1032, ["auth-function"]),
|
|
2038
|
-
g(m(
|
|
2038
|
+
g(m(oe), {
|
|
2039
2039
|
"auth-function": () => e.canDelete(h)
|
|
2040
2040
|
}, {
|
|
2041
2041
|
default: o(() => [
|
|
@@ -2075,7 +2075,7 @@ const la = (e, r) => {
|
|
|
2075
2075
|
for (const [a, n] of r)
|
|
2076
2076
|
t[a] = n;
|
|
2077
2077
|
return t;
|
|
2078
|
-
}, wa = /* @__PURE__ */ la(ia, [["__scopeId", "data-v-
|
|
2078
|
+
}, wa = /* @__PURE__ */ la(ia, [["__scopeId", "data-v-f6c6d08c"]]);
|
|
2079
2079
|
export {
|
|
2080
2080
|
wa as ConsumerCredentialList
|
|
2081
2081
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(v,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):(v=typeof globalThis<"u"?globalThis:v||self,t(v["kong-ui-public-entities-consumer-credentials"]={},v.Vue,v["kong-ui-public-i18n"],v.axios))})(this,function(v,t,W,ke){"use strict";const _e={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 Ne(){const e=W.createI18n("en-us",_e);return{i18n:e,i18nT:W.i18nTComponent(e)}}const Se={useI18n:Ne},xe={list:{konnect:"/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}};var ne=(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))(ne||{}),F=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(F||{});function Y(e={}){return{axiosInstance:ke.create({withCredentials:!0,timeout:3e4,...e})}}function Te(){return{debounce:(e,a)=>{let r;return(...n)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...n)},a)}}}}const G="khcp-user-table-preferences",Ae={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function Ee(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(n){console.error("useTablePreferences(tryParseJson)",n);return}},a=()=>{const r=e(localStorage.getItem(G));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,n)=>{try{const i=a();i.set(r,n),localStorage.setItem(G,JSON.stringify(Object.fromEntries(i.entries())))}catch(i){console.error("useTablePreferences(setTablePreferences)",i)}},getTablePreferences:r=>{const n=a();return(n==null?void 0:n.get(r))||void 0||Ae},deleteAllTablePreferences:()=>{localStorage.removeItem(G)}}}const Ie={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Oe={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},je={actions:{save:"Save",cancel:"Cancel",back:"Back"},errors:{edit:"The entity could not be edited at this time."}},Be={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Ke={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"}},Ve={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},ve={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},$e={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},De={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"}},Pe={global:Ie,deleteModal:Oe,baseForm:je,baseTable:Be,baseConfigCard:Ke,filter:Ve,debouncedFilter:ve,errors:$e,toggleModal:De};function Z(){const e=W.createI18n("en-us",Pe);return{i18n:e,i18nT:W.i18nTComponent(e)}}function ie(){const e=(r,n)=>(n==null?void 0:n[r])??void 0,a=(r,n)=>{if(r.length!==n.length)return!1;const i=new Set([...r,...n]);for(const o of i){const l=r.filter(p=>p===o).length,d=n.filter(p=>p===o).length;if(l!==d)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,n,i)=>{if(i){if(Object.keys(r).length===Object.keys(n).length)for(const o in r)if(Array.isArray(r[o])&&Array.isArray(n[o])){if(a(r[o],n[o]))continue;return!1}else{if(r[o]===n[o])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(n)}catch{return!1}},sortAlpha:r=>(n,i)=>{let o=n[r]===void 0||n[r]===null?"":n[r],l=i[r]===void 0||i[r]===null?"":i[r];return Array.isArray(n[r])&&(o=n[r][0]),Array.isArray(i[r])&&(l=i[r][0]),o.localeCompare(l)},isValidUuid:r=>r?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r):!1}}function Fe(e,a,r,n={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:i}=Y({headers:e.requestHeaders}),{i18n:{t:o}}=Z(),{debounce:l}=Te(),d=l(async s=>{await D(s)},200),p=t.ref(!1),c=t.ref(""),w=t.ref(""),y=t.ref([]),_=t.ref([]),g=t.ref(void 0),I=t.unref(a);let f=`${e.apiBaseUrl}${I}`;e.app==="konnect"?f=f.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(f=f.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:N}=ie(),O=async()=>{try{p.value=!0;const{data:s}=await i.get(`${f}?size=${r}`);s!=null&&s.next||(g.value=n.fetchedItemsKey in s?s[n.fetchedItemsKey]:[]),_.value=n.fetchedItemsKey in s?s[n.fetchedItemsKey]:[],y.value=_.value}catch{y.value=[],c.value=o("debouncedFilter.errors.fetch")}finally{p.value=!1}},L=t.ref(""),D=async s=>{var m,V,q;if(L.value!==s)if(L.value=s||"",g.value===void 0)try{if(p.value=!0,c.value="",w.value="",e.app==="konnect"){let S=f+"";s&&(S+=`/${s}`);const{data:T}=await i.get(`${S}?size=${r}`);n.fetchedItemsKey in T?y.value=T[n.fetchedItemsKey]:T!=null&&T.id?y.value=[T]:y.value=[]}else if(s){const S=[];N(s)&&n.searchKeys.includes("id")?S.push((async()=>{const{data:C}=await i.get(`${f}/${s}`);return[C[n.fetchedItemsKey]??C]})()):S.push(...n.searchKeys.filter(C=>C!=="id").map(async C=>{const{data:A}=await i.get(`${f}?${C}=${s}`);return A[n.fetchedItemsKey]}));const T=await Promise.all(S),$=new Set;y.value=[],(m=T==null?void 0:T.forEach)==null||m.call(T,C=>{var A;(A=C==null?void 0:C.forEach)==null||A.call(C,B=>{$.has(B.id)||($.add(B.id),y.value.push(B))})})}else y.value=_.value}catch(S){((V=S==null?void 0:S.response)==null?void 0:V.status)===404?w.value=o("debouncedFilter.errors.invalid"):(y.value=[],c.value=o("debouncedFilter.errors.fetch"))}finally{p.value=!1}else p.value=!0,w.value="",s?(y.value=(q=g.value)==null?void 0:q.filter(S=>{var T;let $=!1;for(const C of n.searchKeys){const A=typeof S[C]=="string"?(T=S[C])==null?void 0:T.toLowerCase():S[C];A!=null&&A.includes(s.toLowerCase())&&($=!0)}return $}),(!y.value||!y.value.length)&&(w.value=o("debouncedFilter.errors.invalid"))):y.value=g.value,p.value=!1};return{loading:p,error:c,validationError:w,results:y,allRecords:g,loadItems:O,debouncedQueryChange:d}}function Ue(e,a){const r=t.unref(a),n=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return n.value.search="",i=>`${n.value.href}/${i}`}function Me(){const{i18n:{t:e}}=Z();return{getMessageFromError:a=>{var r,n,i;if(!a)return e("errors.unexpected");if((r=a==null?void 0:a.response)!=null&&r.data){if(a.response.data.detail)return a.response.data.detail;if((n=a.response.data.details)!=null&&n.length)return a.response.data.details.map(o=>{let l=e("errors.unexpected");return o.messages&&typeof o.messages=="object"&&o.messages.length&&(l=o.messages.join(", ")),o.field?`${o.field} - ${l}`:l}).join("; ");if(a.response.data.message){const{message:o}=a.response.data;return Array.isArray(o)?(i=o[0])!=null&&i.constraints?Object.values(o[0].constraints)[0]:o[0]:o}if(typeof a.response.data=="string")return a.response.data;if(typeof a.response.data=="object")return Object.keys(a.response.data).map(o=>`${o} ${a.response.data[o]}`).join(", ")}return a.message||e("errors.unexpected")}}}function Le(e){const a=window.location.origin,r=a.endsWith("/")?a:`${a}/`;try{const n=e.join("/"),i=`${r}${n}`,o=e.some(l=>l.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!o&&new URL(i))return`${r}${n}`;throw new Error("Invalid url")}catch(n){return console.warn("Failed to build valid URL:",n),""}}function oe(e,a){const r=t.ref(t.unref(e)),n=t.ref(t.unref(a)),i=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),o=t.computed(()=>n.value.startsWith("/")?new URL(`${window.location.origin}${n.value}`):new URL(n.value));return l=>{const{page:d,pageSize:p,offset:c,sortColumnKey:w,sortColumnOrder:y,query:_}=l;try{let g=new URL(o.value.href);return i.value&&_?(g.search="",g=new URL(`${g.href}?filter[name][contains]=${_}`)):(i.value||new URLSearchParams(_).forEach((I,f)=>{g.searchParams.append(f,I)}),w&&g.searchParams.append("sort_by",w),y==="desc"&&g.searchParams.append("sort_desc","1"),g.searchParams.append("size",String(p))),c&&d!==1&&g.searchParams.append("offset",String(c)),g.href}catch(g){return console.error("RouteList(fetcher)",g),n.value}}}function qe(e,a,r="data"){const n=t.unref(a),{axiosInstance:i}=Y({headers:e.requestHeaders}),o=oe(e,n),l=t.ref({status:F.Idle});return{fetcher:async d=>{try{l.value={status:F.Loading};const p=o(d),{data:c}=await i.get(p),w=r&&r.replace(/[^\w-_]/gi,"");let y;c[w]&&Array.isArray(c[w])?y=c[w]:Array.isArray(c)?y=c:y=Object.keys(c).length?[c]:[];const _={data:y,total:y.length,...c.offset?{pagination:{offset:c.offset}}:null};return l.value={status:F.Idle,response:_},_}catch(p){const c={data:[],total:0};return d.query&&p.response.status===404?(l.value={status:F.NoResults,response:c,error:p},c):(l.value={status:F.Error,response:c,error:p},c)}},fetcherState:l}}function Re(){const e=(r,n="_")=>r?r.split(n).map(i=>i.toLowerCase()==="id"?i.toUpperCase():i.charAt(0).toUpperCase()+i.substring(1)).join(" "):"",a=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(a,n=>n.toUpperCase()):"",convertKeyToTitle:e}}const le=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,se=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const a=e.match(le);if(!a)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return a.shift(),a},ce=e=>e==="*"||e==="x"||e==="X",de=e=>{const a=parseInt(e,10);return isNaN(a)?e:a},He=(e,a)=>typeof e!=typeof a?[String(e),String(a)]:[e,a],We=(e,a)=>{if(ce(e)||ce(a))return 0;const[r,n]=He(de(e),de(a));return r>n?1:r<n?-1:0},ue=(e,a)=>{for(let r=0;r<Math.max(e.length,a.length);r++){const n=We(e[r]||"0",a[r]||"0");if(n!==0)return n}return 0},ze=(e,a)=>{const r=se(e),n=se(a),i=r.pop(),o=n.pop(),l=ue(r,n);return l!==0?l:i&&o?ue(i.split("."),o.split(".")):i||o?i?-1:1:0},pe=(e,a,r)=>{Je(r);const n=ze(e,a);return fe[r].includes(n)},fe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},ye=Object.keys(fe),Je=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(ye.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${ye.join("|")}`)},Ye=e=>typeof e=="string"&&/^[v\d]/.test(e)&&le.test(e);function Ge(e){const{gatewayInfo:a,supportedRange:r}=e;if(!a)return!0;const{edition:n,version:i}=a;if(!Ye(i))return console.error("Invalid version"),!1;const o=r[n];if(!o)return!1;const[l,d]=o;return!(l&&pe(i,l,"<")||d&&pe(i,d,">"))}function Ze(e){const a=t.ref(0),r=t.ref(0),n=t.ref(!1);return t.watch(e,i=>{i&&!n.value&&(a.value=i.offsetWidth,r.value=i.scrollWidth,n.value=!0)}),{isTruncated:t.computed(()=>a.value<r.value)}}const X={useAxios:Y,useDebouncedFilter:Fe,useDeleteUrlBuilder:Ue,useErrors:Me,useExternalLinkCreator:Le,useFetcher:qe,useFetchUrlBuilder:oe,useHelpers:ie,useStringHelpers:Re,useI18n:Z,useGatewayFeatureSupported:Ge,useTruncationDetector:Ze},Q=(e,a)=>{const r=e.__vccOpts||e;for(const[n,i]of a)r[n]=i;return r},Xe="#3a3f51";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function he(e){return typeof e>"u"||e===null}function Qe(e){return typeof e=="object"&&e!==null}function et(e){return Array.isArray(e)?e:he(e)?[]:[e]}function tt(e,a){var r,n,i,o;if(a)for(o=Object.keys(a),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=a[i];return e}function rt(e,a){var r="",n;for(n=0;n<a;n+=1)r+=e;return r}function at(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var nt=he,it=Qe,ot=et,lt=rt,st=at,ct=tt,ee={isNothing:nt,isObject:it,toArray:ot,repeat:lt,isNegativeZero:st,extend:ct};function ge(e,a){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!a&&e.mark.snippet&&(r+=`
|
|
1
|
+
(function(v,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):(v=typeof globalThis<"u"?globalThis:v||self,t(v["kong-ui-public-entities-consumer-credentials"]={},v.Vue,v["kong-ui-public-i18n"],v.axios))})(this,function(v,t,W,Ce){"use strict";const ke={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 _e(){const e=W.createI18n("en-us",ke);return{i18n:e,i18nT:W.i18nTComponent(e)}}const Ne={useI18n:_e},Se={list:{konnect:"/api/runtime_groups/{controlPlaneId}/consumers/{consumerId}/{plugin}",kongManager:"/{workspace}/consumers/{consumerId}/{plugin}"}};var ae=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e))(ae||{}),F=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(F||{});function J(e={}){return{axiosInstance:Ce.create({withCredentials:!0,timeout:3e4,...e})}}function xe(){return{debounce:(e,a)=>{let r;return(...n)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...n)},a)}}}}const Y="khcp-user-table-preferences",Te={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function Ae(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(n){console.error("useTablePreferences(tryParseJson)",n);return}},a=()=>{const r=e(localStorage.getItem(Y));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,n)=>{try{const i=a();i.set(r,n),localStorage.setItem(Y,JSON.stringify(Object.fromEntries(i.entries())))}catch(i){console.error("useTablePreferences(setTablePreferences)",i)}},getTablePreferences:r=>{const n=a();return(n==null?void 0:n.get(r))||void 0||Te},deleteAllTablePreferences:()=>{localStorage.removeItem(Y)}}}const Ee={actions:{copyId:"Copy ID",copied_id:'Copied "{id}" to the clipboard',copyToClipboard:"Copied successfully!",copyToClipboardFailed:"Failed to copy to the clipboard"}},Ie={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Oe={actions:{save:"Save",cancel:"Cancel",back:"Back"},errors:{edit:"The entity could not be edited at this time."}},je={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Be={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"}},Ke={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Ve={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},ve={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},$e={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"}},De={global:Ee,deleteModal:Ie,baseForm:Oe,baseTable:je,baseConfigCard:Be,filter:Ke,debouncedFilter:Ve,errors:ve,toggleModal:$e};function G(){const e=W.createI18n("en-us",De);return{i18n:e,i18nT:W.i18nTComponent(e)}}function ne(){const e=(r,n)=>(n==null?void 0:n[r])??void 0,a=(r,n)=>{if(r.length!==n.length)return!1;const i=new Set([...r,...n]);for(const o of i){const l=r.filter(p=>p===o).length,d=n.filter(p=>p===o).length;if(l!==d)return!1}return!0};return{getPropValue:e,objectsAreEqual:(r,n,i)=>{if(i){if(Object.keys(r).length===Object.keys(n).length)for(const o in r)if(Array.isArray(r[o])&&Array.isArray(n[o])){if(a(r[o],n[o]))continue;return!1}else{if(r[o]===n[o])continue;return!1}else return!1;return!0}try{return JSON.stringify(r)===JSON.stringify(n)}catch{return!1}},sortAlpha:r=>(n,i)=>{let o=n[r]===void 0||n[r]===null?"":n[r],l=i[r]===void 0||i[r]===null?"":i[r];return Array.isArray(n[r])&&(o=n[r][0]),Array.isArray(i[r])&&(l=i[r][0]),o.localeCompare(l)},isValidUuid:r=>r?/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(r):!1}}function Pe(e,a,r,n={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:i}=J({headers:e.requestHeaders}),{i18n:{t:o}}=G(),{debounce:l}=xe(),d=l(async s=>{await D(s)},200),p=t.ref(!1),c=t.ref(""),w=t.ref(""),y=t.ref([]),_=t.ref([]),g=t.ref(void 0),I=t.unref(a);let f=`${e.apiBaseUrl}${I}`;e.app==="konnect"?f=f.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(f=f.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const{isValidUuid:N}=ne(),O=async()=>{try{p.value=!0;const{data:s}=await i.get(`${f}?size=${r}`);s!=null&&s.next||(g.value=n.fetchedItemsKey in s?s[n.fetchedItemsKey]:[]),_.value=n.fetchedItemsKey in s?s[n.fetchedItemsKey]:[],y.value=_.value}catch{y.value=[],c.value=o("debouncedFilter.errors.fetch")}finally{p.value=!1}},L=t.ref(""),D=async s=>{var m,V,q;if(L.value!==s)if(L.value=s||"",g.value===void 0)try{if(p.value=!0,c.value="",w.value="",e.app==="konnect"){let S=f+"";s&&(S+=`/${s}`);const{data:T}=await i.get(`${S}?size=${r}`);n.fetchedItemsKey in T?y.value=T[n.fetchedItemsKey]:T!=null&&T.id?y.value=[T]:y.value=[]}else if(s){const S=[];N(s)&&n.searchKeys.includes("id")?S.push((async()=>{const{data:C}=await i.get(`${f}/${s}`);return[C[n.fetchedItemsKey]??C]})()):S.push(...n.searchKeys.filter(C=>C!=="id").map(async C=>{const{data:A}=await i.get(`${f}?${C}=${s}`);return A[n.fetchedItemsKey]}));const T=await Promise.all(S),$=new Set;y.value=[],(m=T==null?void 0:T.forEach)==null||m.call(T,C=>{var A;(A=C==null?void 0:C.forEach)==null||A.call(C,B=>{$.has(B.id)||($.add(B.id),y.value.push(B))})})}else y.value=_.value}catch(S){((V=S==null?void 0:S.response)==null?void 0:V.status)===404?w.value=o("debouncedFilter.errors.invalid"):(y.value=[],c.value=o("debouncedFilter.errors.fetch"))}finally{p.value=!1}else p.value=!0,w.value="",s?(y.value=(q=g.value)==null?void 0:q.filter(S=>{var T;let $=!1;for(const C of n.searchKeys){const A=typeof S[C]=="string"?(T=S[C])==null?void 0:T.toLowerCase():S[C];A!=null&&A.includes(s.toLowerCase())&&($=!0)}return $}),(!y.value||!y.value.length)&&(w.value=o("debouncedFilter.errors.invalid"))):y.value=g.value,p.value=!1};return{loading:p,error:c,validationError:w,results:y,allRecords:g,loadItems:O,debouncedQueryChange:d}}function Fe(e,a){const r=t.unref(a),n=t.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return n.value.search="",i=>`${n.value.href}/${i}`}function Ue(){const{i18n:{t:e}}=G();return{getMessageFromError:a=>{var r,n,i;if(!a)return e("errors.unexpected");if((r=a==null?void 0:a.response)!=null&&r.data){if(a.response.data.detail)return a.response.data.detail;if((n=a.response.data.details)!=null&&n.length)return a.response.data.details.map(o=>{let l=e("errors.unexpected");return o.messages&&typeof o.messages=="object"&&o.messages.length&&(l=o.messages.join(", ")),o.field?`${o.field} - ${l}`:l}).join("; ");if(a.response.data.message){const{message:o}=a.response.data;return Array.isArray(o)?(i=o[0])!=null&&i.constraints?Object.values(o[0].constraints)[0]:o[0]:o}if(typeof a.response.data=="string")return a.response.data;if(typeof a.response.data=="object")return Object.keys(a.response.data).map(o=>`${o} ${a.response.data[o]}`).join(", ")}return a.message||e("errors.unexpected")}}}function Me(e){const a=window.location.origin,r=a.endsWith("/")?a:`${a}/`;try{const n=e.join("/"),i=`${r}${n}`,o=e.some(l=>l.trim()==="");if(/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(i)&&!o&&new URL(i))return`${r}${n}`;throw new Error("Invalid url")}catch(n){return console.warn("Failed to build valid URL:",n),""}}function ie(e,a){const r=t.ref(t.unref(e)),n=t.ref(t.unref(a)),i=t.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),o=t.computed(()=>n.value.startsWith("/")?new URL(`${window.location.origin}${n.value}`):new URL(n.value));return l=>{const{page:d,pageSize:p,offset:c,sortColumnKey:w,sortColumnOrder:y,query:_}=l;try{let g=new URL(o.value.href);return i.value&&_?(g.search="",g=new URL(`${g.href}?filter[name][contains]=${_}`)):(i.value||new URLSearchParams(_).forEach((I,f)=>{g.searchParams.append(f,I)}),w&&g.searchParams.append("sort_by",w),y==="desc"&&g.searchParams.append("sort_desc","1"),g.searchParams.append("size",String(p))),c&&d!==1&&g.searchParams.append("offset",String(c)),g.href}catch(g){return console.error("RouteList(fetcher)",g),n.value}}}function Le(e,a,r="data"){const n=t.unref(a),{axiosInstance:i}=J({headers:e.requestHeaders}),o=ie(e,n),l=t.ref({status:F.Idle});return{fetcher:async d=>{try{l.value={status:F.Loading};const p=o(d),{data:c}=await i.get(p),w=r&&r.replace(/[^\w-_]/gi,"");let y;c[w]&&Array.isArray(c[w])?y=c[w]:Array.isArray(c)?y=c:y=Object.keys(c).length?[c]:[];const _={data:y,total:y.length,...c.offset?{pagination:{offset:c.offset}}:null};return l.value={status:F.Idle,response:_},_}catch(p){const c={data:[],total:0};return d.query&&p.response.status===404?(l.value={status:F.NoResults,response:c,error:p},c):(l.value={status:F.Error,response:c,error:p},c)}},fetcherState:l}}function qe(){const e=(r,n="_")=>r?r.split(n).map(i=>i.toLowerCase()==="id"?i.toUpperCase():i.charAt(0).toUpperCase()+i.substring(1)).join(" "):"",a=/(?:^|[\s-:'"])\w/g;return{capitalize:r=>r?r.replace(a,n=>n.toUpperCase()):"",convertKeyToTitle:e}}const oe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,le=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const a=e.match(oe);if(!a)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return a.shift(),a},se=e=>e==="*"||e==="x"||e==="X",ce=e=>{const a=parseInt(e,10);return isNaN(a)?e:a},Re=(e,a)=>typeof e!=typeof a?[String(e),String(a)]:[e,a],He=(e,a)=>{if(se(e)||se(a))return 0;const[r,n]=Re(ce(e),ce(a));return r>n?1:r<n?-1:0},de=(e,a)=>{for(let r=0;r<Math.max(e.length,a.length);r++){const n=He(e[r]||"0",a[r]||"0");if(n!==0)return n}return 0},We=(e,a)=>{const r=le(e),n=le(a),i=r.pop(),o=n.pop(),l=de(r,n);return l!==0?l:i&&o?de(i.split("."),o.split(".")):i||o?i?-1:1:0},ue=(e,a,r)=>{ze(r);const n=We(e,a);return pe[r].includes(n)},pe={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},fe=Object.keys(pe),ze=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(fe.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${fe.join("|")}`)},Je=e=>typeof e=="string"&&/^[v\d]/.test(e)&&oe.test(e);function Ye(e){const{gatewayInfo:a,supportedRange:r}=e;if(!a)return!0;const{edition:n,version:i}=a;if(!Je(i))return console.error("Invalid version"),!1;const o=r[n];if(!o)return!1;const[l,d]=o;return!(l&&ue(i,l,"<")||d&&ue(i,d,">"))}function Ge(e){const a=t.ref(0),r=t.ref(0),n=t.ref(!1);return t.watch(e,i=>{i&&!n.value&&(a.value=i.offsetWidth,r.value=i.scrollWidth,n.value=!0)}),{isTruncated:t.computed(()=>a.value<r.value)}}const Z={useAxios:J,useDebouncedFilter:Pe,useDeleteUrlBuilder:Fe,useErrors:Ue,useExternalLinkCreator:Me,useFetcher:Le,useFetchUrlBuilder:ie,useHelpers:ne,useStringHelpers:qe,useI18n:G,useGatewayFeatureSupported:Ye,useTruncationDetector:Ge},X=(e,a)=>{const r=e.__vccOpts||e;for(const[n,i]of a)r[n]=i;return r},Ze="#3a3f51";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function ye(e){return typeof e>"u"||e===null}function Xe(e){return typeof e=="object"&&e!==null}function Qe(e){return Array.isArray(e)?e:ye(e)?[]:[e]}function et(e,a){var r,n,i,o;if(a)for(o=Object.keys(a),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=a[i];return e}function tt(e,a){var r="",n;for(n=0;n<a;n+=1)r+=e;return r}function rt(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var at=ye,nt=Xe,it=Qe,ot=tt,lt=rt,st=et,Q={isNothing:at,isObject:nt,toArray:it,repeat:ot,isNegativeZero:lt,extend:st};function he(e,a){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!a&&e.mark.snippet&&(r+=`
|
|
2
2
|
|
|
3
|
-
`+e.mark.snippet),n+" "+r):n}function H(e,a){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=a,this.message=
|
|
4
|
-
\r`;function
|
|
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 yr=new Array(256),hr=new Array(256),M=0;M<256;M++)yr[M]=Ce(M)?1:0,hr[M]=Ce(M);const gr={key:0,"data-testid":"first-col"},mr=Q(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0}},setup(e){const a=e,r=t.computed(()=>{var f;return((f=a.rowEl)==null?void 0:f.querySelector(`[data-testid="${a.keyName}"]`))||null}),n=t.computed(()=>{var f;return((f=r.value)==null?void 0:f.querySelector('[data-testid="first-col"]'))||null}),i=t.computed(()=>{var f,N;const O=(f=a.rowEl)==null?void 0:f.querySelectorAll("td");return O?((N=O[0])==null?void 0:N.getAttribute("data-testid"))===a.keyName:!1});let o;const l=()=>{o&&(o.disconnect(),o=void 0)},d=()=>{var f,N,O;c.value=((f=n.value)==null?void 0:f.getBoundingClientRect().width)||0,w.value=((N=r.value)==null?void 0:N.clientWidth)||0,y.value=((O=p.value)==null?void 0:O.innerText)||""},p=t.ref({}),c=t.ref(0),w=t.ref(0),y=t.ref(""),_=t.computed(()=>[n.value,r.value]),g=t.watch(_,f=>{if(i.value&&(l(),"ResizeObserver"in window&&window)){o=new ResizeObserver(N=>{window.requestAnimationFrame(()=>{!Array.isArray(N)||!N.length||d()})});for(const N of f)N&&o.observe(N)}},{immediate:!0,flush:"post",deep:!0}),I=t.computed(()=>i.value?c.value>w.value:!1);return t.onMounted(()=>{d()}),t.onUnmounted(()=>{g()}),(f,N)=>{const O=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:p,class:"content-wrapper"},[i.value?(t.openBlock(),t.createElementBlock("span",gr,[t.createVNode(O,{label:I.value?y.value:"","max-width":"300",placement:"bottomStart"},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},8,["label"])])):t.renderSlot(f.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-e42a20c9"]]),br={class:"toolbar-container"},wr={key:0,class:"toolbar-button-container"},Cr=["data-testid"],kr=Q(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},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:""},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:a}){const r=e,{i18n:{t:n}}=X.useI18n(),i=t.computed(()=>{var s,m;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(s=r.errorMessage)==null?void 0:s.title,message:(m=r.errorMessage)==null?void 0:m.message}}),o=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),l=s=>s.hasData||!!r.query,d=t.computed(()=>{const s=[];return Object.keys(r.tableHeaders).forEach(m=>{const V=r.tableHeaders[m];s.push({label:V.label??m,key:m,sortable:V.sortable??!1})}),r.enableEntityActions&&s.push({key:"actions",hideLabel:!0}),s}),p=s=>({"data-rowid":s.id,"data-testid":s.name,...r.rowAttributes(s)}),c=t.ref({}),w=s=>{var m;return(m=c.value)==null?void 0:m.$el.querySelector(`[data-rowid="${s.id}"]`)},y=s=>{const m={"data-testid":s.headerKey,...r.cellAttributes(s)};return s.colIndex===0&&(m.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),m},_=()=>{a("empty-state-cta-clicked"),g()},g=()=>{a("clear-search-input")},I=t.computed(()=>r.disableRowClick?void 0:(s,m)=>{a("click:row",m)}),f=s=>{a("sort",s)},{setTablePreferences:N,getTablePreferences:O}=Ee(),L=t.computed(()=>{const s=O(r.preferencesStorageKey);return{...r.initialFetcherParams,...s}}),D=s=>{r.preferencesStorageKey&&N(r.preferencesStorageKey,s)};return(s,m)=>{const V=t.resolveComponent("KIcon"),q=t.resolveComponent("KButton"),S=t.resolveComponent("KDropdown"),T=t.resolveComponent("KTable"),$=t.resolveComponent("KCard");return t.openBlock(),t.createBlock($,{class:"kong-ui-entity-base-table",title:e.title},{body:t.withCtx(()=>[t.createVNode(T,{ref_key:"tableRefs",ref:c,"cache-identifier":o.value,"cell-attrs":y,"disable-pagination-page-jump":e.disablePaginationPageJump,"disable-sorting":e.disableSorting,"empty-state-action-button-icon":e.query?"":"plus","empty-state-action-message":e.query?t.unref(n)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?"":e.emptyStateOptions.ctaPath,"empty-state-icon":e.query?"stateNoSearchResults":"stateGruceo","empty-state-icon-size":"96","empty-state-message":e.query?t.unref(n)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(n)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,"enable-client-sort":e.enableClientSort,"error-state-message":i.value.message,"error-state-title":i.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),"has-error":i.value.hasError,headers:d.value,"hide-pagination-when-optional":"","initial-fetcher-params":L.value,"is-loading":e.isLoading,"pagination-type":e.paginationType,"row-attrs":p,"search-input":e.query,onKtableEmptyStateCtaClicked:_,"onRow:click":I.value,onSort:m[0]||(m[0]=C=>f(C)),"onUpdate:tablePreferences":D},t.createSlots({toolbar:t.withCtx(({state:C})=>[t.withDirectives(t.createElementVNode("div",br,[t.renderSlot(s.$slots,"toolbar-filter",{},void 0,!0),s.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",wr,[t.renderSlot(s.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,l(C)]])]),actions:t.withCtx(({row:C,rowKey:A,rowValue:B})=>[t.createElementVNode("div",{class:"actions-container","data-testid":C.name},[t.createVNode(S,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(s.$slots,"actions",{row:C,rowKey:A,rowValue:B},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(q,{class:"actions-trigger","data-testid":"overflow-actions-button",size:"small"},{icon:t.withCtx(()=>[t.createVNode(V,{color:t.unref(Xe),icon:"more",size:"16"},null,8,["color"])]),_:1})]),_:2},1032,["width"])],8,Cr)]),_:2},[t.renderList(e.tableHeaders,(C,A)=>({name:A,fn:t.withCtx(({row:B,rowKey:u,rowValue:b})=>[t.createVNode(mr,{"key-name":String(A),"row-el":w(B)},{default:t.withCtx(()=>[t.renderSlot(s.$slots,A,{row:B,rowKey:u,rowValue:b},()=>[t.createTextVNode(t.toDisplayString(b),1)],!0)]),_:2},1032,["key-name","row-el"])])}))]),1032,["cache-identifier","disable-pagination-page-jump","disable-sorting","empty-state-action-button-icon","empty-state-action-message","empty-state-action-route","empty-state-icon","empty-state-message","empty-state-title","enable-client-sort","error-state-message","error-state-title","fetcher","fetcher-cache-key","has-error","headers","initial-fetcher-params","is-loading","pagination-type","search-input","onRow:click"])]),_:3},8,["title"])}}}),[["__scopeId","data-v-499a771c"]]),_r={key:0,class:"kong-ui-entity-delete-error"},Nr={key:1,class:"description"},Sr=Q(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:a}){const r=e,{i18nT:n}=X.useI18n(),i=t.computed(()=>r.needConfirm?r.entityName:""),o=()=>{a("cancel")},l=()=>{a("proceed")};return(d,p)=>{const c=t.resolveComponent("KAlert"),w=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(w,{"action-button-text":"Yes, delete","action-pending":e.actionPending,class:"kong-ui-entity-delete-modal","confirmation-text":i.value,"is-visible":e.visible,title:e.title,type:"danger",onCanceled:o,onProceed:l},{"body-content":t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",_r,[t.createVNode(c,{appearance:"danger"},{alertMessage:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(n),{class:"message",keypath:r.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.entityType),1)]),_:2},[r.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(r.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),r.description||d.$slots.description?(t.openBlock(),t.createElementBlock("div",Nr,[t.renderSlot(d.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(r.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-pending","confirmation-text","is-visible","title"])}}}),[["__scopeId","data-v-1c9a2a07"]]),ae=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const a=e,r=t.ref(void 0),n=t.computed(()=>r.value===!0||r.value!==void 0&&a.forceShow===!0);return t.watch(()=>a.authFunction,async()=>{r.value=await a.authFunction()},{immediate:!0}),(i,o)=>n.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),{useAxios:xr,useDeleteUrlBuilder:Tr,useErrors:$r,useExternalLinkCreator:Dr,useFetchUrlBuilder:Pr,useFetcher:Ar,useDebouncedFilter:Fr,useStringHelpers:Ur,useHelpers:Mr,useGatewayFeatureSupported:Lr,useTruncationDetector:qr}=X,Rr="",Er={class:"kong-ui-entities-consumer-credentials-list"},Ir={key:1},Or=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:a}){const r=e,{i18n:{t:n,formatUnixTimeStamp:i}}=Se.useI18n(),{axiosInstance:o}=xr({headers:r.config.requestHeaders}),l=t.ref(1),d={acls:{group:{label:n("credentials.list.table_headers.acls.group")},created_at:{label:n("credentials.list.table_headers.acls.created_at")},tags:{label:n("credentials.list.table_headers.acls.tags")}},"basic-auth":{password:{label:n("credentials.list.table_headers.basic-auth.password")},username:{label:n("credentials.list.table_headers.basic-auth.username")},created_at:{label:n("credentials.list.table_headers.basic-auth.created_at")},tags:{label:n("credentials.list.table_headers.basic-auth.tags")}},"key-auth":{key:{label:n("credentials.list.table_headers.key-auth.key")},created_at:{label:n("credentials.list.table_headers.key-auth.created_at")},tags:{label:n("credentials.list.table_headers.key-auth.tags")}},"key-auth-enc":{key:{label:n("credentials.list.table_headers.key-auth-enc.key")},created_at:{label:n("credentials.list.table_headers.key-auth-enc.created_at")},tags:{label:n("credentials.list.table_headers.key-auth-enc.tags")}},oauth2:{name:{label:n("credentials.list.table_headers.oauth2.name")},client_id:{label:n("credentials.list.table_headers.oauth2.client_id")},client_secret:{label:n("credentials.list.table_headers.oauth2.client_secret")},created_at:{label:n("credentials.list.table_headers.oauth2.created_at")},tags:{label:n("credentials.list.table_headers.oauth2.tags")}},"hmac-auth":{username:{label:n("credentials.list.table_headers.hmac-auth.username")},secret:{label:n("credentials.list.table_headers.hmac-auth.secret")},created_at:{label:n("credentials.list.table_headers.hmac-auth.created_at")},tags:{label:n("credentials.list.table_headers.hmac-auth.tags")}},jwt:{key:{label:n("credentials.list.table_headers.jwt.key")},algorithm:{label:n("credentials.list.table_headers.jwt.algorithm")},created_at:{label:n("credentials.list.table_headers.jwt.created_at")},tags:{label:n("credentials.list.table_headers.jwt.tags")}}},p=t.computed(()=>d[r.config.plugin]),c=t.computed(()=>{let u=`${r.config.apiBaseUrl}${xe.list[r.config.app]}`;return r.config.app==="konnect"?u=u.replace(/{controlPlaneId}/gi,r.config.controlPlaneId||"").replace(/{consumerId}/gi,r.config.consumerId||"").replace(/{plugin}/gi,r.config.plugin||""):r.config.app==="kongManager"&&(u=u.replace(/\/{workspace}/gi,r.config.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,r.config.consumerId||"").replace(/{plugin}/gi,r.config.plugin||"")),u}),{fetcher:w,fetcherState:y}=Ar(r.config,c),_=()=>{l.value++},g=t.ref(null),I=(u,b,K)=>{const E=b?u[b]:JSON.stringify(u);if(!K(E)){O(u,b);return}N(u,b)},f=(u,b,K)=>{const{type:E}=u;E==="success"?N(b,K):O(b,K)},N=(u,b)=>{a("copy:success",{entity:u,field:b,message:b?n("credentials.copy.success",{val:u[b]}):n("credentials.copy.success_brief")})},O=(u,b)=>{a("copy:error",{entity:u,field:b,message:n("credentials.error.copy")})},L=u=>({label:n("credentials.actions.edit"),to:r.config.getEditRoute(u)}),D=t.ref(void 0),s=t.ref(!1),m=t.ref(!1),V=t.ref(""),q=Tr(r.config,c.value),S=t.computed(()=>ne[r.config.plugin]),T=u=>{D.value=u,s.value=!0},$=()=>{s.value=!1},C=async()=>{var u,b,K;if((u=D.value)!=null&&u.id){m.value=!0;try{await o.delete(q(D.value.id)),m.value=!1,s.value=!1,l.value++,a("delete:success",D.value)}catch(E){V.value=((K=(b=E.response)==null?void 0:b.data)==null?void 0:K.message)||E.message||n("credentials.error.delete"),a("error",E)}finally{m.value=!1}}},A=t.ref(!0);t.watch(y,u=>{var b,K,E,z,J;if(((K=(b=u==null?void 0:u.response)==null?void 0:b.data)==null?void 0:K.length)===0&&(A.value=!1),u.status===F.Error){g.value={title:n("credentials.error.general")},(J=(z=(E=u.error)==null?void 0:E.response)==null?void 0:z.data)!=null&&J.message&&(g.value.message=u.error.response.data.message),a("error",u.error);return}g.value=null});const B=t.ref({ctaPath:r.config.createRoute,ctaText:void 0,message:"",title:n("credentials.title")});return t.onBeforeMount(async()=>{await r.canCreate()&&(B.value.title=n(`credentials.list.empty_state.${r.config.plugin}.title`),B.value.ctaText=n(`credentials.list.empty_state.${r.config.plugin}.cta`))}),(u,b)=>{const K=t.resolveComponent("KButton"),E=t.resolveComponent("CopyUuid"),z=t.resolveComponent("KBadge"),J=t.resolveComponent("KTruncate"),P=t.resolveComponent("KDropdownItem"),R=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Er,[t.createVNode(t.unref(kr),{"cache-identifier":e.cacheIdentifier,"disable-pagination-page-jump":"","disable-row-click":"","disable-sorting":"","empty-state-options":B.value,"enable-entity-actions":"","error-message":g.value,fetcher:t.unref(w),"fetcher-cache-key":l.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":p.value,"use-action-outside":e.useActionOutside,onSort:_},{"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(K,{appearance:"primary","data-testid":"toolbar-add-credential",icon:"plus",to:e.config.createRoute},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)),1)]),_:1},8,["to"]),[[t.vShow,A.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),group:t.withCtx(({rowValue:h})=>[t.createElementVNode("b",null,t.toDisplayString(h??"-"),1)]),name:t.withCtx(({rowValue:h})=>[t.createElementVNode("b",null,t.toDisplayString(h??"-"),1)]),username:t.withCtx(({rowValue:h})=>[t.createElementVNode("span",null,t.toDisplayString(h??"-"),1)]),password:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(E,{format:"redacted",notify:j=>f(j,h,"password"),uuid:k},null,8,["notify","uuid"])]),key:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(E,{format:"redacted",notify:j=>f(j,h,"key"),uuid:k},null,8,["notify","uuid"])]),client_secret:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(E,{format:"redacted",notify:j=>f(j,h,"client_secret"),uuid:k},null,8,["notify","uuid"])]),secret:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(E,{format:"redacted",notify:j=>f(j,h,"secret"),uuid:k},null,8,["notify","uuid"])]),created_at:t.withCtx(({rowValue:h})=>[t.createTextVNode(t.toDisplayString(t.unref(i)(h)),1)]),tags:t.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(t.openBlock(),t.createBlock(J,{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h,k=>(t.openBlock(),t.createBlock(z,{key:k,onClick:b[0]||(b[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k),1)]),_:2},1024))),128))]),_:2},1024)):(t.openBlock(),t.createElementBlock("span",Ir,"-"))]),actions:t.withCtx(({row:h})=>[t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-id",onClick:j=>I(h,"id",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-credential",onClick:j=>I(h,"password",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-key",onClick:j=>I(h,"key",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-secret",onClick:j=>I(h,"client_secret",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-secret",onClick:j=>I(h,"secret",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-json",onClick:j=>I(h,void 0,k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),t.createVNode(t.unref(ae),{"auth-function":()=>e.canEdit(h)},{default:t.withCtx(()=>[t.createVNode(P,{"data-testid":"action-entity-edit","has-divider":"",item:L(h.id)},null,8,["item"])]),_:2},1032,["auth-function"]),t.createVNode(t.unref(ae),{"auth-function":()=>e.canDelete(h)},{default:t.withCtx(()=>[t.createVNode(P,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:k=>T(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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(Sr),{"action-pending":m.value,description:t.unref(n)("credentials.delete.description"),"entity-type":S.value,error:V.value,title:t.unref(n)(`credentials.delete.${e.config.plugin}.title`),visible:s.value,onCancel:$,onProceed:C},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),Hr="",jr=((e,a)=>{const r=e.__vccOpts||e;for(const[n,i]of a)r[n]=i;return r})(Or,[["__scopeId","data-v-45f8e313"]]);v.ConsumerCredentialList=jr,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
|
3
|
+
`+e.mark.snippet),n+" "+r):n}function H(e,a){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=a,this.message=he(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}H.prototype=Object.create(Error.prototype),H.prototype.constructor=H,H.prototype.toString=function(e){return this.name+": "+he(this,e)};var U=H,ct=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],dt=["scalar","sequence","mapping"];function ut(e){var a={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){a[String(n)]=r})}),a}function pt(e,a){if(a=a||{},Object.keys(a).forEach(function(r){if(ct.indexOf(r)===-1)throw new U('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=a,this.tag=e,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(r){return r},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=ut(a.styleAliases||null),dt.indexOf(this.kind)===-1)throw new U('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var x=pt;function ge(e,a){var r=[];return e[a].forEach(function(n){var i=r.length;r.forEach(function(o,l){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(i=l)}),r[i]=n}),r}function ft(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,r;function n(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(a=0,r=arguments.length;a<r;a+=1)arguments[a].forEach(n);return e}function ee(e){return this.extend(e)}ee.prototype.extend=function(e){var a=[],r=[];if(e instanceof x)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(a=a.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new U("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");a.forEach(function(i){if(!(i instanceof x))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new U("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 U("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof x))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ee.prototype);return n.implicit=(this.implicit||[]).concat(a),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ge(n,"implicit"),n.compiledExplicit=ge(n,"explicit"),n.compiledTypeMap=ft(n.compiledImplicit,n.compiledExplicit),n};var yt=ee,ht=new x("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),gt=new x("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),mt=new x("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),bt=new yt({explicit:[ht,gt,mt]});function wt(e){if(e===null)return!0;var a=e.length;return a===1&&e==="~"||a===4&&(e==="null"||e==="Null"||e==="NULL")}function Ct(){return null}function kt(e){return e===null}var _t=new x("tag:yaml.org,2002:null",{kind:"scalar",resolve:wt,construct:Ct,predicate:kt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Nt(e){if(e===null)return!1;var a=e.length;return a===4&&(e==="true"||e==="True"||e==="TRUE")||a===5&&(e==="false"||e==="False"||e==="FALSE")}function St(e){return e==="true"||e==="True"||e==="TRUE"}function xt(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Tt=new x("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Nt,construct:St,predicate:xt,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 At(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Et(e){return 48<=e&&e<=55}function It(e){return 48<=e&&e<=57}function Ot(e){if(e===null)return!1;var a=e.length,r=0,n=!1,i;if(!a)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===a)return!0;if(i=e[++r],i==="b"){for(r++;r<a;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<a;r++)if(i=e[r],i!=="_"){if(!At(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<a;r++)if(i=e[r],i!=="_"){if(!Et(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<a;r++)if(i=e[r],i!=="_"){if(!It(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function jt(e){var a=e,r=1,n;if(a.indexOf("_")!==-1&&(a=a.replace(/_/g,"")),n=a[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),a=a.slice(1),n=a[0]),a==="0")return 0;if(n==="0"){if(a[1]==="b")return r*parseInt(a.slice(2),2);if(a[1]==="x")return r*parseInt(a.slice(2),16);if(a[1]==="o")return r*parseInt(a.slice(2),8)}return r*parseInt(a,10)}function Bt(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Q.isNegativeZero(e)}var Kt=new x("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ot,construct:jt,predicate:Bt,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"]}}),Vt=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function vt(e){return!(e===null||!Vt.test(e)||e[e.length-1]==="_")}function $t(e){var a,r;return a=e.replace(/_/g,"").toLowerCase(),r=a[0]==="-"?-1:1,"+-".indexOf(a[0])>=0&&(a=a.slice(1)),a===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:a===".nan"?NaN:r*parseFloat(a,10)}var Dt=/^[-+]?[0-9]+e/;function Pt(e,a){var r;if(isNaN(e))switch(a){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(a){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(a){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Q.isNegativeZero(e))return"-0.0";return r=e.toString(10),Dt.test(r)?r.replace("e",".e"):r}function Ft(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Q.isNegativeZero(e))}var Ut=new x("tag:yaml.org,2002:float",{kind:"scalar",resolve:vt,construct:$t,predicate:Ft,represent:Pt,defaultStyle:"lowercase"}),Mt=bt.extend({implicit:[_t,Tt,Kt,Ut]}),Lt=Mt,me=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),be=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 qt(e){return e===null?!1:me.exec(e)!==null||be.exec(e)!==null}function Rt(e){var a,r,n,i,o,l,d,p=0,c=null,w,y,_;if(a=me.exec(e),a===null&&(a=be.exec(e)),a===null)throw new Error("Date resolve error");if(r=+a[1],n=+a[2]-1,i=+a[3],!a[4])return new Date(Date.UTC(r,n,i));if(o=+a[4],l=+a[5],d=+a[6],a[7]){for(p=a[7].slice(0,3);p.length<3;)p+="0";p=+p}return a[9]&&(w=+a[10],y=+(a[11]||0),c=(w*60+y)*6e4,a[9]==="-"&&(c=-c)),_=new Date(Date.UTC(r,n,i,o,l,d,p)),c&&_.setTime(_.getTime()-c),_}function Ht(e){return e.toISOString()}var Wt=new x("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qt,construct:Rt,instanceOf:Date,represent:Ht});function zt(e){return e==="<<"||e===null}var Jt=new x("tag:yaml.org,2002:merge",{kind:"scalar",resolve:zt}),te=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
4
|
+
\r`;function Yt(e){if(e===null)return!1;var a,r,n=0,i=e.length,o=te;for(r=0;r<i;r++)if(a=o.indexOf(e.charAt(r)),!(a>64)){if(a<0)return!1;n+=6}return n%8===0}function Gt(e){var a,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=te,l=0,d=[];for(a=0;a<i;a++)a%4===0&&a&&(d.push(l>>16&255),d.push(l>>8&255),d.push(l&255)),l=l<<6|o.indexOf(n.charAt(a));return r=i%4*6,r===0?(d.push(l>>16&255),d.push(l>>8&255),d.push(l&255)):r===18?(d.push(l>>10&255),d.push(l>>2&255)):r===12&&d.push(l>>4&255),new Uint8Array(d)}function Zt(e){var a="",r=0,n,i,o=e.length,l=te;for(n=0;n<o;n++)n%3===0&&n&&(a+=l[r>>18&63],a+=l[r>>12&63],a+=l[r>>6&63],a+=l[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(a+=l[r>>18&63],a+=l[r>>12&63],a+=l[r>>6&63],a+=l[r&63]):i===2?(a+=l[r>>10&63],a+=l[r>>4&63],a+=l[r<<2&63],a+=l[64]):i===1&&(a+=l[r>>2&63],a+=l[r<<4&63],a+=l[64],a+=l[64]),a}function Xt(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Qt=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Yt,construct:Gt,predicate:Xt,represent:Zt}),er=Object.prototype.hasOwnProperty,tr=Object.prototype.toString;function rr(e){if(e===null)return!0;var a=[],r,n,i,o,l,d=e;for(r=0,n=d.length;r<n;r+=1){if(i=d[r],l=!1,tr.call(i)!=="[object Object]")return!1;for(o in i)if(er.call(i,o))if(!l)l=!0;else return!1;if(!l)return!1;if(a.indexOf(o)===-1)a.push(o);else return!1}return!0}function ar(e){return e!==null?e:[]}var nr=new x("tag:yaml.org,2002:omap",{kind:"sequence",resolve:rr,construct:ar}),ir=Object.prototype.toString;function or(e){if(e===null)return!0;var a,r,n,i,o,l=e;for(o=new Array(l.length),a=0,r=l.length;a<r;a+=1){if(n=l[a],ir.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[a]=[i[0],n[i[0]]]}return!0}function lr(e){if(e===null)return[];var a,r,n,i,o,l=e;for(o=new Array(l.length),a=0,r=l.length;a<r;a+=1)n=l[a],i=Object.keys(n),o[a]=[i[0],n[i[0]]];return o}var sr=new x("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:or,construct:lr}),cr=Object.prototype.hasOwnProperty;function dr(e){if(e===null)return!0;var a,r=e;for(a in r)if(cr.call(r,a)&&r[a]!==null)return!1;return!0}function ur(e){return e!==null?e:{}}var pr=new x("tag:yaml.org,2002:set",{kind:"mapping",resolve:dr,construct:ur});Lt.extend({implicit:[Wt,Jt],explicit:[Qt,nr,sr,pr]});function we(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 fr=new Array(256),yr=new Array(256),M=0;M<256;M++)fr[M]=we(M)?1:0,yr[M]=we(M);const hr={key:0,"data-testid":"first-col"},gr=X(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0}},setup(e){const a=e,r=t.computed(()=>{var f;return((f=a.rowEl)==null?void 0:f.querySelector(`[data-testid="${a.keyName}"]`))||null}),n=t.computed(()=>{var f;return((f=r.value)==null?void 0:f.querySelector('[data-testid="first-col"]'))||null}),i=t.computed(()=>{var f,N;const O=(f=a.rowEl)==null?void 0:f.querySelectorAll("td");return O?((N=O[0])==null?void 0:N.getAttribute("data-testid"))===a.keyName:!1});let o;const l=()=>{o&&(o.disconnect(),o=void 0)},d=()=>{var f,N,O;c.value=((f=n.value)==null?void 0:f.getBoundingClientRect().width)||0,w.value=((N=r.value)==null?void 0:N.clientWidth)||0,y.value=((O=p.value)==null?void 0:O.innerText)||""},p=t.ref({}),c=t.ref(0),w=t.ref(0),y=t.ref(""),_=t.computed(()=>[n.value,r.value]),g=t.watch(_,f=>{if(i.value&&(l(),"ResizeObserver"in window&&window)){o=new ResizeObserver(N=>{window.requestAnimationFrame(()=>{!Array.isArray(N)||!N.length||d()})});for(const N of f)N&&o.observe(N)}},{immediate:!0,flush:"post",deep:!0}),I=t.computed(()=>i.value?c.value>w.value:!1);return t.onMounted(()=>{d()}),t.onUnmounted(()=>{g()}),(f,N)=>{const O=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:p,class:"content-wrapper"},[i.value?(t.openBlock(),t.createElementBlock("span",hr,[t.createVNode(O,{label:I.value?y.value:"","max-width":"300",placement:"bottomStart"},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{},void 0,!0)]),_:3},8,["label"])])):t.renderSlot(f.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-e42a20c9"]]),mr={class:"toolbar-container"},br={key:0,class:"toolbar-button-container"},wr=["data-testid"],Cr=X(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},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:""},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:a}){const r=e,{i18n:{t:n}}=Z.useI18n(),i=t.computed(()=>{var s,m;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(s=r.errorMessage)==null?void 0:s.title,message:(m=r.errorMessage)==null?void 0:m.message}}),o=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),l=s=>s.hasData||!!r.query,d=t.computed(()=>{const s=[];return Object.keys(r.tableHeaders).forEach(m=>{const V=r.tableHeaders[m];s.push({label:V.label??m,key:m,sortable:V.sortable??!1})}),r.enableEntityActions&&s.push({key:"actions",hideLabel:!0}),s}),p=s=>({"data-rowid":s.id,"data-testid":s.name,...r.rowAttributes(s)}),c=t.ref({}),w=s=>{var m;return(m=c.value)==null?void 0:m.$el.querySelector(`[data-rowid="${s.id}"]`)},y=s=>{const m={"data-testid":s.headerKey,...r.cellAttributes(s)};return s.colIndex===0&&(m.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),m},_=()=>{a("empty-state-cta-clicked"),g()},g=()=>{a("clear-search-input")},I=t.computed(()=>r.disableRowClick?void 0:(s,m)=>{a("click:row",m)}),f=s=>{a("sort",s)},{setTablePreferences:N,getTablePreferences:O}=Ae(),L=t.computed(()=>{const s=O(r.preferencesStorageKey);return{...r.initialFetcherParams,...s}}),D=s=>{r.preferencesStorageKey&&N(r.preferencesStorageKey,s)};return(s,m)=>{const V=t.resolveComponent("KIcon"),q=t.resolveComponent("KButton"),S=t.resolveComponent("KDropdown"),T=t.resolveComponent("KTable"),$=t.resolveComponent("KCard");return t.openBlock(),t.createBlock($,{class:"kong-ui-entity-base-table",title:e.title},{body:t.withCtx(()=>[t.createVNode(T,{ref_key:"tableRefs",ref:c,"cache-identifier":o.value,"cell-attrs":y,"disable-pagination-page-jump":e.disablePaginationPageJump,"disable-sorting":e.disableSorting,"empty-state-action-button-icon":e.query?"":"plus","empty-state-action-message":e.query?t.unref(n)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?"":e.emptyStateOptions.ctaPath,"empty-state-icon":e.query?"stateNoSearchResults":"stateGruceo","empty-state-icon-size":"96","empty-state-message":e.query?t.unref(n)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(n)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,"enable-client-sort":e.enableClientSort,"error-state-message":i.value.message,"error-state-title":i.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),"has-error":i.value.hasError,headers:d.value,"hide-pagination-when-optional":"","initial-fetcher-params":L.value,"is-loading":e.isLoading,"pagination-type":e.paginationType,"row-attrs":p,"search-input":e.query,onKtableEmptyStateCtaClicked:_,"onRow:click":I.value,onSort:m[0]||(m[0]=C=>f(C)),"onUpdate:tablePreferences":D},t.createSlots({toolbar:t.withCtx(({state:C})=>[t.withDirectives(t.createElementVNode("div",mr,[t.renderSlot(s.$slots,"toolbar-filter",{},void 0,!0),s.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",br,[t.renderSlot(s.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,l(C)]])]),actions:t.withCtx(({row:C,rowKey:A,rowValue:B})=>[t.createElementVNode("div",{class:"actions-container","data-testid":C.name},[t.createVNode(S,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(s.$slots,"actions",{row:C,rowKey:A,rowValue:B},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(q,{class:"actions-trigger","data-testid":"overflow-actions-button",size:"small"},{icon:t.withCtx(()=>[t.createVNode(V,{color:t.unref(Ze),icon:"more",size:"16"},null,8,["color"])]),_:1})]),_:2},1032,["width"])],8,wr)]),_:2},[t.renderList(e.tableHeaders,(C,A)=>({name:A,fn:t.withCtx(({row:B,rowKey:u,rowValue:b})=>[t.createVNode(gr,{"key-name":String(A),"row-el":w(B)},{default:t.withCtx(()=>[t.renderSlot(s.$slots,A,{row:B,rowKey:u,rowValue:b},()=>[t.createTextVNode(t.toDisplayString(b),1)],!0)]),_:2},1032,["key-name","row-el"])])}))]),1032,["cache-identifier","disable-pagination-page-jump","disable-sorting","empty-state-action-button-icon","empty-state-action-message","empty-state-action-route","empty-state-icon","empty-state-message","empty-state-title","enable-client-sort","error-state-message","error-state-title","fetcher","fetcher-cache-key","has-error","headers","initial-fetcher-params","is-loading","pagination-type","search-input","onRow:click"])]),_:3},8,["title"])}}}),[["__scopeId","data-v-499a771c"]]),kr={key:0,class:"kong-ui-entity-delete-error"},_r={key:1,class:"description"},Nr=X(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:a}){const r=e,{i18nT:n}=Z.useI18n(),i=t.computed(()=>r.needConfirm?r.entityName:""),o=()=>{a("cancel")},l=()=>{a("proceed")};return(d,p)=>{const c=t.resolveComponent("KAlert"),w=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(w,{"action-button-text":"Yes, delete","action-pending":e.actionPending,class:"kong-ui-entity-delete-modal","confirmation-text":i.value,"is-visible":e.visible,title:e.title,type:"danger",onCanceled:o,onProceed:l},{"body-content":t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",kr,[t.createVNode(c,{appearance:"danger"},{alertMessage:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(n),{class:"message",keypath:r.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.entityType),1)]),_:2},[r.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(r.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),r.description||d.$slots.description?(t.openBlock(),t.createElementBlock("div",_r,[t.renderSlot(d.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(r.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-pending","confirmation-text","is-visible","title"])}}}),[["__scopeId","data-v-1c9a2a07"]]),re=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const a=e,r=t.ref(void 0),n=t.computed(()=>r.value===!0||r.value!==void 0&&a.forceShow===!0);return t.watch(()=>a.authFunction,async()=>{r.value=await a.authFunction()},{immediate:!0}),(i,o)=>n.value?t.renderSlot(i.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}}),{useAxios:Sr,useDeleteUrlBuilder:xr,useErrors:$r,useExternalLinkCreator:Dr,useFetchUrlBuilder:Pr,useFetcher:Tr,useDebouncedFilter:Fr,useStringHelpers:Ur,useHelpers:Mr,useGatewayFeatureSupported:Lr,useTruncationDetector:qr}=Z,Rr="",Ar={class:"kong-ui-entities-consumer-credentials-list"},Er={key:1},Ir=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:a}){const r=e,{i18n:{t:n,formatUnixTimeStamp:i}}=Ne.useI18n(),{axiosInstance:o}=Sr({headers:r.config.requestHeaders}),l=t.ref(1),d={acls:{group:{label:n("credentials.list.table_headers.acls.group")},created_at:{label:n("credentials.list.table_headers.acls.created_at")},tags:{label:n("credentials.list.table_headers.acls.tags")}},"basic-auth":{password:{label:n("credentials.list.table_headers.basic-auth.password")},username:{label:n("credentials.list.table_headers.basic-auth.username")},created_at:{label:n("credentials.list.table_headers.basic-auth.created_at")},tags:{label:n("credentials.list.table_headers.basic-auth.tags")}},"key-auth":{key:{label:n("credentials.list.table_headers.key-auth.key")},created_at:{label:n("credentials.list.table_headers.key-auth.created_at")},tags:{label:n("credentials.list.table_headers.key-auth.tags")}},"key-auth-enc":{key:{label:n("credentials.list.table_headers.key-auth-enc.key")},created_at:{label:n("credentials.list.table_headers.key-auth-enc.created_at")},tags:{label:n("credentials.list.table_headers.key-auth-enc.tags")}},oauth2:{name:{label:n("credentials.list.table_headers.oauth2.name")},client_id:{label:n("credentials.list.table_headers.oauth2.client_id")},client_secret:{label:n("credentials.list.table_headers.oauth2.client_secret")},created_at:{label:n("credentials.list.table_headers.oauth2.created_at")},tags:{label:n("credentials.list.table_headers.oauth2.tags")}},"hmac-auth":{username:{label:n("credentials.list.table_headers.hmac-auth.username")},secret:{label:n("credentials.list.table_headers.hmac-auth.secret")},created_at:{label:n("credentials.list.table_headers.hmac-auth.created_at")},tags:{label:n("credentials.list.table_headers.hmac-auth.tags")}},jwt:{key:{label:n("credentials.list.table_headers.jwt.key")},algorithm:{label:n("credentials.list.table_headers.jwt.algorithm")},created_at:{label:n("credentials.list.table_headers.jwt.created_at")},tags:{label:n("credentials.list.table_headers.jwt.tags")}}},p=t.computed(()=>d[r.config.plugin]),c=t.computed(()=>{let u=`${r.config.apiBaseUrl}${Se.list[r.config.app]}`;return r.config.app==="konnect"?u=u.replace(/{controlPlaneId}/gi,r.config.controlPlaneId||"").replace(/{consumerId}/gi,r.config.consumerId||"").replace(/{plugin}/gi,r.config.plugin||""):r.config.app==="kongManager"&&(u=u.replace(/\/{workspace}/gi,r.config.workspace?`/${r.config.workspace}`:"").replace(/{consumerId}/gi,r.config.consumerId||"").replace(/{plugin}/gi,r.config.plugin||"")),u}),{fetcher:w,fetcherState:y}=Tr(r.config,c),_=()=>{l.value++},g=t.ref(null),I=(u,b,K)=>{const E=b?u[b]:JSON.stringify(u);if(!K(E)){O(u,b);return}N(u,b)},f=(u,b,K)=>{const{type:E}=u;E==="success"?N(b,K):O(b,K)},N=(u,b)=>{a("copy:success",{entity:u,field:b,message:b?n("credentials.copy.success",{val:u[b]}):n("credentials.copy.success_brief")})},O=(u,b)=>{a("copy:error",{entity:u,field:b,message:n("credentials.error.copy")})},L=u=>({label:n("credentials.actions.edit"),to:r.config.getEditRoute(u)}),D=t.ref(void 0),s=t.ref(!1),m=t.ref(!1),V=t.ref(""),q=xr(r.config,c.value),S=t.computed(()=>ae[r.config.plugin]),T=u=>{D.value=u,s.value=!0},$=()=>{s.value=!1},C=async()=>{var u,b,K;if((u=D.value)!=null&&u.id){m.value=!0;try{await o.delete(q(D.value.id)),m.value=!1,s.value=!1,l.value++,a("delete:success",D.value)}catch(E){V.value=((K=(b=E.response)==null?void 0:b.data)==null?void 0:K.message)||E.message||n("credentials.error.delete"),a("error",E)}finally{m.value=!1}}},A=t.ref(!0);t.watch(y,u=>{var b,K,E,z;if(Array.isArray((b=u==null?void 0:u.response)==null?void 0:b.data)&&(A.value=u.response.data.length>0),u.status===F.Error){g.value={title:n("credentials.error.general")},(z=(E=(K=u.error)==null?void 0:K.response)==null?void 0:E.data)!=null&&z.message&&(g.value.message=u.error.response.data.message),a("error",u.error);return}g.value=null});const B=t.ref({ctaPath:r.config.createRoute,ctaText:void 0,message:"",title:n("credentials.title")});return t.onBeforeMount(async()=>{await r.canCreate()&&(B.value.title=n(`credentials.list.empty_state.${r.config.plugin}.title`),B.value.ctaText=n(`credentials.list.empty_state.${r.config.plugin}.cta`))}),(u,b)=>{const K=t.resolveComponent("KButton"),E=t.resolveComponent("CopyUuid"),z=t.resolveComponent("KBadge"),jr=t.resolveComponent("KTruncate"),P=t.resolveComponent("KDropdownItem"),R=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Ar,[t.createVNode(t.unref(Cr),{"cache-identifier":e.cacheIdentifier,"disable-pagination-page-jump":"","disable-row-click":"","disable-sorting":"","empty-state-options":B.value,"enable-entity-actions":"","error-message":g.value,fetcher:t.unref(w),"fetcher-cache-key":l.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-consumer-credentials-list","table-headers":p.value,"use-action-outside":e.useActionOutside,onSort:_},{"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(re),{"auth-function":()=>e.canCreate()},{default:t.withCtx(()=>[t.withDirectives(t.createVNode(K,{appearance:"primary","data-testid":"toolbar-add-credential",icon:"plus",to:e.config.createRoute},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)(`credentials.list.toolbar_actions.${e.config.plugin}.new`)),1)]),_:1},8,["to"]),[[t.vShow,A.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),group:t.withCtx(({rowValue:h})=>[t.createElementVNode("b",null,t.toDisplayString(h??"-"),1)]),name:t.withCtx(({rowValue:h})=>[t.createElementVNode("b",null,t.toDisplayString(h??"-"),1)]),username:t.withCtx(({rowValue:h})=>[t.createElementVNode("span",null,t.toDisplayString(h??"-"),1)]),password:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(E,{format:"redacted",notify:j=>f(j,h,"password"),uuid:k},null,8,["notify","uuid"])]),key:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(E,{format:"redacted",notify:j=>f(j,h,"key"),uuid:k},null,8,["notify","uuid"])]),client_secret:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(E,{format:"redacted",notify:j=>f(j,h,"client_secret"),uuid:k},null,8,["notify","uuid"])]),secret:t.withCtx(({row:h,rowValue:k})=>[t.createVNode(E,{format:"redacted",notify:j=>f(j,h,"secret"),uuid:k},null,8,["notify","uuid"])]),created_at:t.withCtx(({rowValue:h})=>[t.createTextVNode(t.toDisplayString(t.unref(i)(h)),1)]),tags:t.withCtx(({rowValue:h})=>[(h==null?void 0:h.length)>0?(t.openBlock(),t.createBlock(jr,{key:0},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h,k=>(t.openBlock(),t.createBlock(z,{key:k,onClick:b[0]||(b[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(k),1)]),_:2},1024))),128))]),_:2},1024)):(t.openBlock(),t.createElementBlock("span",Er,"-"))]),actions:t.withCtx(({row:h})=>[t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-id",onClick:j=>I(h,"id",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-credential",onClick:j=>I(h,"password",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-key",onClick:j=>I(h,"key",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-secret",onClick:j=>I(h,"client_secret",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-secret",onClick:j=>I(h,"secret",k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("credentials.actions.copy_secret")),1)]),_:2},1032,["onClick"])]),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(R,null,{default:t.withCtx(({copyToClipboard:k})=>[t.createVNode(P,{"data-testid":"action-entity-copy-json",onClick:j=>I(h,void 0,k)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("credentials.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),t.createVNode(t.unref(re),{"auth-function":()=>e.canEdit(h)},{default:t.withCtx(()=>[t.createVNode(P,{"data-testid":"action-entity-edit","has-divider":"",item:L(h.id)},null,8,["item"])]),_:2},1032,["auth-function"]),t.createVNode(t.unref(re),{"auth-function":()=>e.canDelete(h)},{default:t.withCtx(()=>[t.createVNode(P,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:k=>T(h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(n)("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(Nr),{"action-pending":m.value,description:t.unref(n)("credentials.delete.description"),"entity-type":S.value,error:V.value,title:t.unref(n)(`credentials.delete.${e.config.plugin}.title`),visible:s.value,onCancel:$,onProceed:C},null,8,["action-pending","description","entity-type","error","title","visible"])])}}}),Hr="",Or=((e,a)=>{const r=e.__vccOpts||e;for(const[n,i]of a)r[n]=i;return r})(Ir,[["__scopeId","data-v-f6c6d08c"]]);v.ConsumerCredentialList=Or,Object.defineProperty(v,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}.kong-ui-copy-uuid[data-v-0c07874b]{align-items:center;display:flex}.kong-ui-copy-uuid .uuid-container[data-v-0c07874b]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-0c07874b]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-0c07874b]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-0c07874b]{display:flex}.config-card-details-row[data-v-e851fc7c]{align-items:center;border-bottom:var(--23f3018c);display:var(--3815ec6d);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-e851fc7c]{width:var(--1957f153)}.config-card-details-row .config-card-details-label label[data-v-e851fc7c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-e851fc7c]{width:var(--195a372e)}.config-card-details-row .config-card-details-value .truncated[data-v-e851fc7c]{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-e851fc7c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-e851fc7c] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-e851fc7c]{display:flex}.config-card-details-row .config-badge[data-v-e851fc7c]{margin-right:4px}.config-card-details-row[data-v-e851fc7c] .k-label{margin-bottom:0}.config-card-details-row[data-v-e851fc7c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-e851fc7c] .config-card-details-row{width:auto}.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-prop-section-title[data-v-c914c7e4]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .k-card-title[data-v-b3999889]{margin-bottom:0}.kong-ui-entity-base-config-card[data-v-b3999889] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-b3999889]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-b3999889]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-b3999889]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-b3999889] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-b3999889]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-81612aef]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-81612aef]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-81612aef] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-e42a20c9] [role=button]{display:inline}.content-wrapper[data-v-e42a20c9] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-499a771c]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-499a771c]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-499a771c]{float:right}.kong-ui-entity-base-table .actions-container[data-v-499a771c] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-499a771c]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-15962ee2]{width:100%}.kong-ui-entity-filter[data-v-15962ee2]{display:flex;position:relative}.kong-ui-entity-filter[data-v-15962ee2] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-15962ee2] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-15962ee2]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-15962ee2]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-15962ee2]{align-items:center;display:flex}.menu-item-indicator[data-v-15962ee2]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-15962ee2]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-15962ee2] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-15962ee2] .k-input-wrapper{width:100%}.menu-item-body[data-v-15962ee2] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-15962ee2] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-15962ee2]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-15962ee2]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-15962ee2]{padding:0 20px}fieldset[data-v-8b6dc312]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-8b6dc312]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{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-8b6dc312]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-8b6dc312]{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-8b6dc312]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312] 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-8b6dc312]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-8b6dc312]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-77c479ff]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-77c479ff]{display:flex}.kong-ui-public-entity-link .entity-link-icon[data-v-77c479ff]{color:#0044f4;margin-left:4px}.kong-ui-public-entity-link .entity-link-label[data-v-77c479ff]{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-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-77c479ff]{margin-left:6px}.kong-ui-entities-consumer-credentials-list[data-v-
|
|
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}.kong-ui-copy-uuid[data-v-0c07874b]{align-items:center;display:flex}.kong-ui-copy-uuid .uuid-container[data-v-0c07874b]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-0c07874b]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-0c07874b]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-0c07874b]{display:flex}.config-card-details-row[data-v-e851fc7c]{align-items:center;border-bottom:var(--23f3018c);display:var(--3815ec6d);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-e851fc7c]{width:var(--1957f153)}.config-card-details-row .config-card-details-label label[data-v-e851fc7c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-e851fc7c]{width:var(--195a372e)}.config-card-details-row .config-card-details-value .truncated[data-v-e851fc7c]{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-e851fc7c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-e851fc7c] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-e851fc7c]{display:flex}.config-card-details-row .config-badge[data-v-e851fc7c]{margin-right:4px}.config-card-details-row[data-v-e851fc7c] .k-label{margin-bottom:0}.config-card-details-row[data-v-e851fc7c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-e851fc7c] .config-card-details-row{width:auto}.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-prop-section-title[data-v-c914c7e4]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .k-card-title[data-v-b3999889]{margin-bottom:0}.kong-ui-entity-base-config-card[data-v-b3999889] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-b3999889]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-b3999889]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-b3999889]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-b3999889] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-b3999889]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-81612aef]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-81612aef]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-81612aef] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-e42a20c9] [role=button]{display:inline}.content-wrapper[data-v-e42a20c9] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-499a771c]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-499a771c]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-499a771c]{float:right}.kong-ui-entity-base-table .actions-container[data-v-499a771c] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-499a771c]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-15962ee2]{width:100%}.kong-ui-entity-filter[data-v-15962ee2]{display:flex;position:relative}.kong-ui-entity-filter[data-v-15962ee2] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-15962ee2] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-15962ee2]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-15962ee2]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-15962ee2] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-15962ee2]{align-items:center;display:flex}.menu-item-indicator[data-v-15962ee2]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-15962ee2]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-15962ee2] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-15962ee2] .k-input-wrapper{width:100%}.menu-item-body[data-v-15962ee2] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-15962ee2] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-15962ee2]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-15962ee2]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-15962ee2]{padding:0 20px}fieldset[data-v-8b6dc312]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-8b6dc312]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{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-8b6dc312]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-8b6dc312]{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-8b6dc312]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312] 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-8b6dc312]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-8b6dc312]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-77c479ff]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-77c479ff]{display:flex}.kong-ui-public-entity-link .entity-link-icon[data-v-77c479ff]{color:#0044f4;margin-left:4px}.kong-ui-public-entity-link .entity-link-label[data-v-77c479ff]{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-77c479ff]{align-items:center;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-77c479ff]{margin-left:6px}.kong-ui-entities-consumer-credentials-list[data-v-f6c6d08c]{width:100%}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-consumer-credentials",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-consumer-credentials.umd.js",
|
|
6
6
|
"module": "./dist/entities-consumer-credentials.es.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"axios": "^1.6.0",
|
|
25
25
|
"vue": "^3.3.4",
|
|
26
26
|
"vue-router": "^4.2.5",
|
|
27
|
-
"@kong-ui-public/copy-uuid": "^2.0.
|
|
27
|
+
"@kong-ui-public/copy-uuid": "^2.0.8",
|
|
28
28
|
"@kong-ui-public/i18n": "^2.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"axios": "^1.6.0",
|
|
34
34
|
"vue": "^3.3.4",
|
|
35
35
|
"vue-router": "^4.2.5",
|
|
36
|
-
"@kong-ui-public/
|
|
37
|
-
"@kong-ui-public/
|
|
36
|
+
"@kong-ui-public/i18n": "^2.0.0",
|
|
37
|
+
"@kong-ui-public/copy-uuid": "^2.0.8"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"errorLimit": "300KB"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@kong-ui-public/entities-shared": "^2.1.
|
|
54
|
+
"@kong-ui-public/entities-shared": "^2.1.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"dev": "cross-env USE_SANDBOX=true vite",
|