@kong-ui-public/entities-plugins 9.20.2 → 9.20.3
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.
- package/dist/entities-plugins.es.js +215 -215
- package/dist/entities-plugins.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Sc = Object.defineProperty;
|
|
2
2
|
var Tc = (e, t, n) => t in e ? Sc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Pe = (e, t, n) => Tc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as X, resolveComponent as F, openBlock as m, createElementBlock as k, createBlock as S, resolveDynamicComponent as Re, withCtx as w, Fragment as ge, renderList as we, createCommentVNode as ne, createSlots as $e, renderSlot as Ye, normalizeClass as Ie, createTextVNode as be, toDisplayString as N, createVNode as M, createElementVNode as C, normalizeProps as yi, guardReactiveProps as bi, defineComponent as me, provide as at, useSlots as jt, computed as
|
|
4
|
+
import { ref as X, resolveComponent as F, openBlock as m, createElementBlock as k, createBlock as S, resolveDynamicComponent as Re, withCtx as w, Fragment as ge, renderList as we, createCommentVNode as ne, createSlots as $e, renderSlot as Ye, normalizeClass as Ie, createTextVNode as be, toDisplayString as N, createVNode as M, createElementVNode as C, normalizeProps as yi, guardReactiveProps as bi, defineComponent as me, provide as at, useSlots as jt, computed as T, onMounted as Kn, watch as We, unref as A, nextTick as Zt, mergeProps as Ve, onBeforeMount as Ht, toRefs as bn, isRef as wn, toRef as pt, inject as ct, Transition as Ao, resolveDirective as go, withDirectives as dt, vModelText as ra, vModelCheckbox as xc, vModelSelect as Pc, vModelDynamic as mo, vModelRadio as Uc, vShow as Dc, markRaw as Lc, toValue as lt, useAttrs as fo, createPropsRestProxy as zn, mergeModels as wi, useModel as Ei, useTemplateRef as ho, withKeys as Is, withModifiers as qt, useCssVars as Gc, reactive as pn, shallowRef as jc, Teleport as Ci, onUnmounted as vo, normalizeStyle as yo } from "vue";
|
|
5
5
|
import { useStringHelpers as Ya, ConfigurationSchemaType as ot, useErrors as wa, useDebouncedFilter as Ii, useAxios as Ft, useHelpers as Va, EntityBaseFormType as on, EntityBaseForm as Hc, SupportedEntityType as Bi, JsonCodeBlock as Fc, YamlCodeBlock as Yc, TerraformCodeBlock as Vc, useTableState as Nc, useGatewayFeatureSupported as Kc, useFetcher as zc, useDeleteUrlBuilder as Qc, FetcherStatus as Xc, EntityBaseTable as Jc, EntityFilter as qc, PermissionsWrapper as ln, TableTags as Zc, EntityEmptyState as Wc, EntityToggleModal as _c, EntityDeleteModal as bo, EntityTypes as wo, ConfigurationSchemaSection as Pn, useSchemaProvider as $c, EntityBaseConfigCard as eu, InternalLinkItem as ta } from "@kong-ui-public/entities-shared";
|
|
6
6
|
import { useRouter as Na, useRoute as tu } from "vue-router";
|
|
7
7
|
import { createI18n as yt, i18nTComponent as Eo } from "@kong-ui-public/i18n";
|
|
@@ -293,18 +293,18 @@ ${d}` : d;
|
|
|
293
293
|
`, 1)[0], y = !d.trim(), B = 0;
|
|
294
294
|
if (this.options.pedantic ? (B = 2, u = d.trimStart()) : y ? B = n[1].length + 1 : (B = n[2].search(/[^ ]/), B = B > 4 ? 1 : B, u = d.slice(B), B += n[1].length), y && /^[ \t]*$/.test(g) && (p += g + `
|
|
295
295
|
`, t = t.substring(g.length + 1), c = !0), !c) {
|
|
296
|
-
const R = new RegExp(`^ {0,${Math.min(3, B - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), P = new RegExp(`^ {0,${Math.min(3, B - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), I = new RegExp(`^ {0,${Math.min(3, B - 1)}}(?:\`\`\`|~~~)`),
|
|
296
|
+
const R = new RegExp(`^ {0,${Math.min(3, B - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), P = new RegExp(`^ {0,${Math.min(3, B - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), I = new RegExp(`^ {0,${Math.min(3, B - 1)}}(?:\`\`\`|~~~)`), x = new RegExp(`^ {0,${Math.min(3, B - 1)}}#`), j = new RegExp(`^ {0,${Math.min(3, B - 1)}}<[a-z].*>`, "i");
|
|
297
297
|
for (; t; ) {
|
|
298
298
|
const f = t.split(`
|
|
299
299
|
`, 1)[0];
|
|
300
300
|
let v;
|
|
301
|
-
if (g = f, this.options.pedantic ? (g = g.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), v = g) : v = g.replace(/\t/g, " "), I.test(g) ||
|
|
301
|
+
if (g = f, this.options.pedantic ? (g = g.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), v = g) : v = g.replace(/\t/g, " "), I.test(g) || x.test(g) || j.test(g) || R.test(g) || P.test(g))
|
|
302
302
|
break;
|
|
303
303
|
if (v.search(/[^ ]/) >= B || !g.trim())
|
|
304
304
|
u += `
|
|
305
305
|
` + v.slice(B);
|
|
306
306
|
else {
|
|
307
|
-
if (y || d.replace(/\t/g, " ").search(/[^ ]/) >= 4 || I.test(d) ||
|
|
307
|
+
if (y || d.replace(/\t/g, " ").search(/[^ ]/) >= 4 || I.test(d) || x.test(d) || P.test(d))
|
|
308
308
|
break;
|
|
309
309
|
u += `
|
|
310
310
|
` + g;
|
|
@@ -3636,7 +3636,7 @@ function fa(e, t, n) {
|
|
|
3636
3636
|
function I() {
|
|
3637
3637
|
o !== void 0 && clearTimeout(o), p = 0, a = c = i = o = void 0;
|
|
3638
3638
|
}
|
|
3639
|
-
function
|
|
3639
|
+
function x() {
|
|
3640
3640
|
return o === void 0 ? r : P(li());
|
|
3641
3641
|
}
|
|
3642
3642
|
function j() {
|
|
@@ -3649,7 +3649,7 @@ function fa(e, t, n) {
|
|
|
3649
3649
|
}
|
|
3650
3650
|
return o === void 0 && (o = setTimeout(R, t)), r;
|
|
3651
3651
|
}
|
|
3652
|
-
return j.cancel = I, j.flush =
|
|
3652
|
+
return j.cancel = I, j.flush = x, j;
|
|
3653
3653
|
}
|
|
3654
3654
|
var Ah = "__lodash_hash_undefined__";
|
|
3655
3655
|
function gh(e) {
|
|
@@ -3984,17 +3984,17 @@ function Gh(e, t, n) {
|
|
|
3984
3984
|
millisecond: 0,
|
|
3985
3985
|
isPm: null,
|
|
3986
3986
|
timezoneOffset: null
|
|
3987
|
-
}, s = [], r = [], o = t.replace(dl, function(
|
|
3987
|
+
}, s = [], r = [], o = t.replace(dl, function(x, j) {
|
|
3988
3988
|
return r.push(lr(j)), "@@@";
|
|
3989
3989
|
}), c = {}, p = {};
|
|
3990
|
-
o = lr(o).replace(ul, function(
|
|
3991
|
-
var j = Uh[
|
|
3990
|
+
o = lr(o).replace(ul, function(x) {
|
|
3991
|
+
var j = Uh[x], f = j[0], v = j[1], b = j[3];
|
|
3992
3992
|
if (c[f])
|
|
3993
3993
|
throw new Error("Invalid format. " + f + " specified twice in format");
|
|
3994
3994
|
return c[f] = !0, b && (p[b] = !0), s.push(j), "(" + v + ")";
|
|
3995
|
-
}), Object.keys(p).forEach(function(
|
|
3996
|
-
if (!c[
|
|
3997
|
-
throw new Error("Invalid format. " +
|
|
3995
|
+
}), Object.keys(p).forEach(function(x) {
|
|
3996
|
+
if (!c[x])
|
|
3997
|
+
throw new Error("Invalid format. " + x + " is required in specified format");
|
|
3998
3998
|
}), o = o.replace(/@@@/g, function() {
|
|
3999
3999
|
return r.shift();
|
|
4000
4000
|
});
|
|
@@ -4853,7 +4853,7 @@ function kv(e, t, n, a, i, s) {
|
|
|
4853
4853
|
}
|
|
4854
4854
|
const bl = /* @__PURE__ */ De(Bv, [["render", kv], ["__scopeId", "data-v-40a272a2"]]);
|
|
4855
4855
|
function Sv(e) {
|
|
4856
|
-
const t = X([]), n = X(null), a = (h) => mn(h) ? hn[h] != null ? hn[h] : (console.warn(`'${h}' is not a validator function!`), null) : h, i =
|
|
4856
|
+
const t = X([]), n = X(null), a = (h) => mn(h) ? hn[h] != null ? hn[h] : (console.warn(`'${h}' is not a validator function!`), null) : h, i = T({
|
|
4857
4857
|
get() {
|
|
4858
4858
|
var h, E;
|
|
4859
4859
|
let R;
|
|
@@ -4869,10 +4869,10 @@ function Sv(e) {
|
|
|
4869
4869
|
const R = ke(e.formOptions, "validateAsync", !1);
|
|
4870
4870
|
let P = [];
|
|
4871
4871
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
4872
|
-
const
|
|
4872
|
+
const x = [], j = (E = e.schema) == null ? void 0 : E.validator;
|
|
4873
4873
|
j && (Array.isArray(j) ? ut(j, (f) => {
|
|
4874
|
-
|
|
4875
|
-
}) :
|
|
4874
|
+
x.push(a(f));
|
|
4875
|
+
}) : x.push(a(j))), Ue(e.externalValidator) && x.push(e.externalValidator), ut(x, (f) => {
|
|
4876
4876
|
var v, b;
|
|
4877
4877
|
if (R)
|
|
4878
4878
|
P.push(f(i.value, e.schema, (v = e.model) == null ? void 0 : v.value));
|
|
@@ -4886,16 +4886,16 @@ function Sv(e) {
|
|
|
4886
4886
|
}
|
|
4887
4887
|
});
|
|
4888
4888
|
}
|
|
4889
|
-
const I = (
|
|
4889
|
+
const I = (x) => {
|
|
4890
4890
|
var j, f;
|
|
4891
4891
|
let v = [];
|
|
4892
|
-
if (ut(ll(
|
|
4892
|
+
if (ut(ll(x), (b) => {
|
|
4893
4893
|
Array.isArray(b) && b.length > 0 ? v = v.concat(b) : mn(b) && v.push(b);
|
|
4894
4894
|
}), Ue((j = e.schema) == null ? void 0 : j.onValidated) && e.schema.onValidated((f = e.model) == null ? void 0 : f.value, v, e.schema), !h) {
|
|
4895
4895
|
const b = v.length === 0;
|
|
4896
4896
|
e.emitValidated && e.emitValidated({ isValid: b, errors: v, field: e.schema });
|
|
4897
4897
|
}
|
|
4898
|
-
return
|
|
4898
|
+
return x = v, v;
|
|
4899
4899
|
};
|
|
4900
4900
|
return R ? Promise.all(P).then(I) : I(P);
|
|
4901
4901
|
}, r = () => {
|
|
@@ -4905,25 +4905,25 @@ function Sv(e) {
|
|
|
4905
4905
|
);
|
|
4906
4906
|
}, o = (h, E) => {
|
|
4907
4907
|
var R, P, I;
|
|
4908
|
-
let
|
|
4909
|
-
Ue(e.schema.set) ? (e.schema.set((R = e.model) == null ? void 0 : R.value, h),
|
|
4908
|
+
let x = !1;
|
|
4909
|
+
Ue(e.schema.set) ? (e.schema.set((R = e.model) == null ? void 0 : R.value, h), x = !0) : e.schema.model && (p(e.schema.model, h), x = !0), x && (e.emitModelUpdated && (P = e.model) != null && P.value && e.emitModelUpdated({ value: h, model: e.schema.model }), Ue(e.schema.onChanged) && e.schema.onChanged((I = e.model) == null ? void 0 : I.value, h, E, e.schema), ke(e.formOptions, "validateAfterChanged", !1) === !0 && (ke(e.schema, "validateDebounceTime", ke(e.formOptions, "validateDebounceTime", 0)) > 0 ? r() : s()));
|
|
4910
4910
|
}, c = () => {
|
|
4911
4911
|
t.value.splice(0);
|
|
4912
4912
|
}, p = (h, E) => {
|
|
4913
4913
|
var R;
|
|
4914
4914
|
let P = h.replace(/\[(\w+)\]/g, ".$1");
|
|
4915
4915
|
P = P.replace(/^\./, "");
|
|
4916
|
-
let I = ((R = e.model) == null ? void 0 : R.value) || {},
|
|
4916
|
+
let I = ((R = e.model) == null ? void 0 : R.value) || {}, x = 0;
|
|
4917
4917
|
const j = P.split("."), f = j.length;
|
|
4918
|
-
for (;
|
|
4919
|
-
const v = j[
|
|
4920
|
-
if (
|
|
4918
|
+
for (; x < f; ) {
|
|
4919
|
+
const v = j[x];
|
|
4920
|
+
if (x < f - 1)
|
|
4921
4921
|
I[v] !== void 0 || (I[v] = {}), I = I[v];
|
|
4922
4922
|
else {
|
|
4923
4923
|
I[v] = E;
|
|
4924
4924
|
return;
|
|
4925
4925
|
}
|
|
4926
|
-
++
|
|
4926
|
+
++x;
|
|
4927
4927
|
}
|
|
4928
4928
|
}, u = (h, E = !1) => {
|
|
4929
4929
|
const R = ke(e.formOptions, "fieldIdPrefix", "");
|
|
@@ -5029,37 +5029,37 @@ const Ot = {
|
|
|
5029
5029
|
t({
|
|
5030
5030
|
clearValidationErrors: p
|
|
5031
5031
|
});
|
|
5032
|
-
const d =
|
|
5032
|
+
const d = T(() => {
|
|
5033
5033
|
var I;
|
|
5034
|
-
const
|
|
5035
|
-
switch (
|
|
5034
|
+
const x = (I = a.schema) == null ? void 0 : I.inputType.toLowerCase();
|
|
5035
|
+
switch (x) {
|
|
5036
5036
|
case "string":
|
|
5037
5037
|
return "text";
|
|
5038
5038
|
case "datetime":
|
|
5039
5039
|
return "datetime-local";
|
|
5040
5040
|
default:
|
|
5041
|
-
return
|
|
5041
|
+
return x || "text";
|
|
5042
5042
|
}
|
|
5043
5043
|
}), g = {
|
|
5044
5044
|
date: "YYYY-MM-DD",
|
|
5045
5045
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
5046
5046
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
5047
|
-
}, y = (I,
|
|
5047
|
+
}, y = (I, x) => {
|
|
5048
5048
|
var j, f;
|
|
5049
5049
|
let v = I;
|
|
5050
5050
|
const b = g[d.value] || "", Y = Dn.parse(I, b);
|
|
5051
|
-
Y && ((j = a.schema) != null && j.format ? v = Dn.format(Y, (f = a.schema) == null ? void 0 : f.format) : v = Y.valueOf()), o(v,
|
|
5052
|
-
}, B = (I,
|
|
5053
|
-
Ga(I) || (I = NaN), o(I,
|
|
5051
|
+
Y && ((j = a.schema) != null && j.format ? v = Dn.format(Y, (f = a.schema) == null ? void 0 : f.format) : v = Y.valueOf()), o(v, x);
|
|
5052
|
+
}, B = (I, x) => {
|
|
5053
|
+
Ga(I) || (I = NaN), o(I, x);
|
|
5054
5054
|
}, h = (I) => {
|
|
5055
|
-
let
|
|
5055
|
+
let x = I;
|
|
5056
5056
|
switch (d.value) {
|
|
5057
5057
|
case "number":
|
|
5058
5058
|
case "range":
|
|
5059
|
-
Ga(parseFloat(I)) && (
|
|
5059
|
+
Ga(parseFloat(I)) && (x = parseFloat(I));
|
|
5060
5060
|
break;
|
|
5061
5061
|
}
|
|
5062
|
-
u.value =
|
|
5062
|
+
u.value = x, o(x, I);
|
|
5063
5063
|
}, E = (I) => {
|
|
5064
5064
|
u.value = I, o(I, I);
|
|
5065
5065
|
}, R = X(null), P = () => {
|
|
@@ -5071,8 +5071,8 @@ const Ot = {
|
|
|
5071
5071
|
case "number":
|
|
5072
5072
|
case "range":
|
|
5073
5073
|
R.value = fa(
|
|
5074
|
-
(I,
|
|
5075
|
-
B(I,
|
|
5074
|
+
(I, x) => {
|
|
5075
|
+
B(I, x);
|
|
5076
5076
|
},
|
|
5077
5077
|
parseInt(ke(a.schema, "debounceFormatTimeout", 1e3)),
|
|
5078
5078
|
{
|
|
@@ -5085,8 +5085,8 @@ const Ot = {
|
|
|
5085
5085
|
case "datetime":
|
|
5086
5086
|
case "datetime-local":
|
|
5087
5087
|
R.value = fa(
|
|
5088
|
-
(I,
|
|
5089
|
-
y(I,
|
|
5088
|
+
(I, x) => {
|
|
5089
|
+
y(I, x);
|
|
5090
5090
|
},
|
|
5091
5091
|
parseInt(ke(a.schema, "debounceFormatTimeout", 1e3)),
|
|
5092
5092
|
{
|
|
@@ -5098,7 +5098,7 @@ const Ot = {
|
|
|
5098
5098
|
}
|
|
5099
5099
|
}), Ht(() => {
|
|
5100
5100
|
d.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : d.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : d.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
5101
|
-
}), (I,
|
|
5101
|
+
}), (I, x) => {
|
|
5102
5102
|
const j = F("KInput");
|
|
5103
5103
|
return m(), k("div", Pv, [
|
|
5104
5104
|
M(j, Ve(I.$attrs, {
|
|
@@ -5597,7 +5597,7 @@ const Il = /* @__PURE__ */ De(Zv, [["render", ly], ["__scopeId", "data-v-9c0cacf
|
|
|
5597
5597
|
},
|
|
5598
5598
|
emits: ["modelUpdated"],
|
|
5599
5599
|
setup(e, { expose: t, emit: n }) {
|
|
5600
|
-
const a = e, i = n, s =
|
|
5600
|
+
const a = e, i = n, s = T(() => a.schema.selectOptions || {}), r = (h) => Xe(h) ? null : h, o = bn(a), { getFieldID: c, clearValidationErrors: p, value: u } = Ot.useAbstractFields({
|
|
5601
5601
|
model: o.model,
|
|
5602
5602
|
schema: a.schema,
|
|
5603
5603
|
formOptions: a.formOptions,
|
|
@@ -5609,7 +5609,7 @@ const Il = /* @__PURE__ */ De(Zv, [["render", ly], ["__scopeId", "data-v-9c0cacf
|
|
|
5609
5609
|
t({
|
|
5610
5610
|
clearValidationErrors: p
|
|
5611
5611
|
});
|
|
5612
|
-
const d =
|
|
5612
|
+
const d = T(() => {
|
|
5613
5613
|
const h = a.schema.values;
|
|
5614
5614
|
return g(typeof h == "function" ? h.apply(this, [a.model, a.schema]) : h);
|
|
5615
5615
|
}), g = (h) => {
|
|
@@ -6263,7 +6263,7 @@ const Hy = /* @__PURE__ */ De(xy, [["render", jy], ["__scopeId", "data-v-70998d5
|
|
|
6263
6263
|
t({
|
|
6264
6264
|
clearValidationErrors: c
|
|
6265
6265
|
});
|
|
6266
|
-
const u =
|
|
6266
|
+
const u = T(() => {
|
|
6267
6267
|
var d, g;
|
|
6268
6268
|
return a.schema.values ? a.schema.values : (g = (d = a.schema.elements) == null ? void 0 : d.one_of) != null && g.length ? a.schema.elements.one_of.map((y) => ({ label: String(y), value: String(y) })) : [];
|
|
6269
6269
|
});
|
|
@@ -6818,7 +6818,7 @@ const vb = (e) => {
|
|
|
6818
6818
|
formatter: n,
|
|
6819
6819
|
order: 3
|
|
6820
6820
|
}
|
|
6821
|
-
}, i = e, s = (d) => d != null, r = (d, g) => s(g) && ["password", "sentinel_password"].includes(d) ? "password" : "text", { convertKeyToTitle: o } = Ya(), c =
|
|
6821
|
+
}, i = e, s = (d) => d != null, r = (d, g) => s(g) && ["password", "sentinel_password"].includes(d) ? "password" : "text", { convertKeyToTitle: o } = Ya(), c = T(() => Object.entries(i.configFields).map(([d, g]) => {
|
|
6822
6822
|
var y, B, h, E;
|
|
6823
6823
|
return {
|
|
6824
6824
|
key: d,
|
|
@@ -6828,7 +6828,7 @@ const vb = (e) => {
|
|
|
6828
6828
|
order: ((E = a[d]) == null ? void 0 : E.order) ?? 100
|
|
6829
6829
|
// attrs: value.attrs,
|
|
6830
6830
|
};
|
|
6831
|
-
}).sort((d, g) => d.order - g.order).filter((d) => d.type !== "hidden")), p = Ot.useRedisNonStandardFields(i.configFields, i.pluginRedisFields), u =
|
|
6831
|
+
}).sort((d, g) => d.order - g.order).filter((d) => d.type !== "hidden")), p = Ot.useRedisNonStandardFields(i.configFields, i.pluginRedisFields), u = T(() => c.value.concat(p));
|
|
6832
6832
|
return (d, g) => {
|
|
6833
6833
|
const y = F("KCopy");
|
|
6834
6834
|
return m(), k("div", bb, [
|
|
@@ -6923,21 +6923,21 @@ const vb = (e) => {
|
|
|
6923
6923
|
} = Ii(o, a[o.app].getAll, void 0, {
|
|
6924
6924
|
fetchedItemsKey: "data",
|
|
6925
6925
|
searchKeys: ["id", "name"]
|
|
6926
|
-
}), y =
|
|
6926
|
+
}), y = T(() => u.value ? r(u.value) : ""), B = (P) => {
|
|
6927
6927
|
let I = `${o.apiBaseUrl}${a[o.app].getOne}`;
|
|
6928
6928
|
return o.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, (o == null ? void 0 : o.controlPlaneId) || "") : o.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, o != null && o.workspace ? `/${o.workspace}` : "")), I = I.replace(/{id}/gi, String(P)), I;
|
|
6929
|
-
}, h =
|
|
6929
|
+
}, h = T(() => {
|
|
6930
6930
|
var P;
|
|
6931
|
-
const I = ((P = g.value) == null ? void 0 : P.map((
|
|
6932
|
-
return i.redisType !== "all" ? I.filter((
|
|
6931
|
+
const I = ((P = g.value) == null ? void 0 : P.map((x) => ({ label: x.id, name: x.name, value: x.id, type: x.type, tag: vb(x) }))) || [];
|
|
6932
|
+
return i.redisType !== "all" ? I.filter((x) => x.type === i.redisType) : I;
|
|
6933
6933
|
}), { axiosInstance: E } = Ft(o == null ? void 0 : o.axiosRequestConfig), R = async (P) => {
|
|
6934
6934
|
if (P) {
|
|
6935
6935
|
i.updateRedisModel(P);
|
|
6936
6936
|
try {
|
|
6937
6937
|
const I = await E.get(B(P));
|
|
6938
6938
|
if (I.data.config) {
|
|
6939
|
-
const
|
|
6940
|
-
delete
|
|
6939
|
+
const x = Object.assign(I.data, I.data.config);
|
|
6940
|
+
delete x.config, s.value = x;
|
|
6941
6941
|
}
|
|
6942
6942
|
} catch (I) {
|
|
6943
6943
|
console.error(I);
|
|
@@ -6949,10 +6949,10 @@ const vb = (e) => {
|
|
|
6949
6949
|
}), Ht(() => {
|
|
6950
6950
|
d(), i.defaultRedisConfigItem && R(i.defaultRedisConfigItem);
|
|
6951
6951
|
}), (P, I) => {
|
|
6952
|
-
const
|
|
6952
|
+
const x = F("KLabel"), j = F("KBadge"), f = F("KSelect");
|
|
6953
6953
|
return m(), k(ge, null, [
|
|
6954
6954
|
C("div", Sb, [
|
|
6955
|
-
M(
|
|
6955
|
+
M(x, {
|
|
6956
6956
|
info: e.isCustomPlugin ? A(t)("redis.custom_plugin.tooltip") : A(t)("redis.shared_configuration.tooltip", { type: A(vr)(e.redisType) }),
|
|
6957
6957
|
"tooltip-attributes": {
|
|
6958
6958
|
maxWidth: "300",
|
|
@@ -7079,7 +7079,7 @@ const vb = (e) => {
|
|
|
7079
7079
|
},
|
|
7080
7080
|
emits: ["modelUpdated", "partialToggled", "showNewPartialModal", "refreshModel", "validated"],
|
|
7081
7081
|
setup(e, { emit: t }) {
|
|
7082
|
-
const n = e, a = t, { t: i } = yt("en-us", xt), s =
|
|
7082
|
+
const n = e, a = t, { t: i } = yt("en-us", xt), s = T(() => n.field.pluginType === "custom"), r = X(!n.isEditing), o = X(), c = X({}), p = X(), u = (h) => Ue(h.visible) ? h.visible.call(this, n.model, h, this) : Xe(h.visible) ? !0 : h.visible, d = async (h) => {
|
|
7083
7083
|
a("modelUpdated", [{ id: h, path: n.redisPath }], "partials"), p.value = [{ id: h, path: n.redisPath }], o.value = h;
|
|
7084
7084
|
}, g = (h, E) => {
|
|
7085
7085
|
c.value = { ...c.value, [E]: h }, a("modelUpdated", h, E);
|
|
@@ -7097,7 +7097,7 @@ const vb = (e) => {
|
|
|
7097
7097
|
r.value = !0, o.value = P;
|
|
7098
7098
|
}
|
|
7099
7099
|
}), (h, E) => {
|
|
7100
|
-
const R = F("KAlert"), P = F("KBadge"), I = F("KRadio"),
|
|
7100
|
+
const R = F("KAlert"), P = F("KBadge"), I = F("KRadio"), x = F("KCard");
|
|
7101
7101
|
return m(), k("div", null, [
|
|
7102
7102
|
s.value ? (m(), k("div", Gb, [
|
|
7103
7103
|
M(R, {
|
|
@@ -7111,7 +7111,7 @@ const vb = (e) => {
|
|
|
7111
7111
|
"update-redis-model": d,
|
|
7112
7112
|
onShowNewPartialModal: E[0] || (E[0] = (j) => h.$emit("showNewPartialModal"))
|
|
7113
7113
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields"])
|
|
7114
|
-
])) : (m(), S(
|
|
7114
|
+
])) : (m(), S(x, {
|
|
7115
7115
|
key: 1,
|
|
7116
7116
|
class: "redis-config-card",
|
|
7117
7117
|
"data-testid": "redis-config-card",
|
|
@@ -7879,7 +7879,7 @@ const aw = /* @__PURE__ */ De(Jb, [["render", nw], ["__scopeId", "data-v-44df963
|
|
|
7879
7879
|
setup(e) {
|
|
7880
7880
|
var t;
|
|
7881
7881
|
at(At, (t = jt()) == null ? void 0 : t[St]);
|
|
7882
|
-
const { t: n, te: a } = yt("en-us", xt), i = e, s =
|
|
7882
|
+
const { t: n, te: a } = yt("en-us", xt), i = e, s = T(() => i.formModel.id && i.isEditing || !i.isEditing), r = T(() => {
|
|
7883
7883
|
const o = i.formSchema;
|
|
7884
7884
|
return o.fields.map((c) => {
|
|
7885
7885
|
const p = `post-function.${c.model}`;
|
|
@@ -7922,7 +7922,7 @@ const aw = /* @__PURE__ */ De(Jb, [["render", nw], ["__scopeId", "data-v-44df963
|
|
|
7922
7922
|
setup(e) {
|
|
7923
7923
|
var t;
|
|
7924
7924
|
at(At, (t = jt()) == null ? void 0 : t[St]);
|
|
7925
|
-
const { t: n, te: a } = yt("en-us", xt), i = e, s =
|
|
7925
|
+
const { t: n, te: a } = yt("en-us", xt), i = e, s = T(() => i.formModel.id && i.isEditing || !i.isEditing), r = T(() => {
|
|
7926
7926
|
const o = i.formSchema;
|
|
7927
7927
|
return o.fields.map((c) => {
|
|
7928
7928
|
const p = `exit-transformer.${c.model}`;
|
|
@@ -8053,14 +8053,14 @@ const aw = /* @__PURE__ */ De(Jb, [["render", nw], ["__scopeId", "data-v-44df963
|
|
|
8053
8053
|
setup(e) {
|
|
8054
8054
|
var t;
|
|
8055
8055
|
at(At, (t = jt()) == null ? void 0 : t[St]);
|
|
8056
|
-
const n = e, a = X("zeroSsl"), i = X("shm"), s =
|
|
8056
|
+
const n = e, a = X("zeroSsl"), i = X("shm"), s = T(() => {
|
|
8057
8057
|
var f;
|
|
8058
8058
|
const v = {};
|
|
8059
8059
|
if ((f = n.formSchema) != null && f.fields)
|
|
8060
8060
|
for (const b of n.formSchema.fields)
|
|
8061
8061
|
v[b.model] = b;
|
|
8062
8062
|
return v;
|
|
8063
|
-
}), r =
|
|
8063
|
+
}), r = T(() => {
|
|
8064
8064
|
var f;
|
|
8065
8065
|
const v = Lt(lw);
|
|
8066
8066
|
for (const b of v.fields) {
|
|
@@ -8068,7 +8068,7 @@ const aw = /* @__PURE__ */ De(Jb, [["render", nw], ["__scopeId", "data-v-44df963
|
|
|
8068
8068
|
b.help === void 0 && typeof Y == "string" && (b.help = Y);
|
|
8069
8069
|
}
|
|
8070
8070
|
return v;
|
|
8071
|
-
}), o =
|
|
8071
|
+
}), o = T(() => {
|
|
8072
8072
|
var f;
|
|
8073
8073
|
const v = Lt(cw);
|
|
8074
8074
|
for (const b of v.fields) {
|
|
@@ -8076,7 +8076,7 @@ const aw = /* @__PURE__ */ De(Jb, [["render", nw], ["__scopeId", "data-v-44df963
|
|
|
8076
8076
|
b.help === void 0 && typeof Y == "string" && (b.help = Y);
|
|
8077
8077
|
}
|
|
8078
8078
|
return v;
|
|
8079
|
-
}), c =
|
|
8079
|
+
}), c = T(() => {
|
|
8080
8080
|
var f;
|
|
8081
8081
|
const v = Lt(uw);
|
|
8082
8082
|
for (const b of v.fields) {
|
|
@@ -8084,25 +8084,25 @@ const aw = /* @__PURE__ */ De(Jb, [["render", nw], ["__scopeId", "data-v-44df963
|
|
|
8084
8084
|
b.help === void 0 && typeof Y == "string" && (b.help = Y);
|
|
8085
8085
|
}
|
|
8086
8086
|
return v;
|
|
8087
|
-
}), p =
|
|
8087
|
+
}), p = T(() => ({
|
|
8088
8088
|
fields: n.formSchema.fields.filter((f) => !f.model.startsWith("config") && f.model !== "tags")
|
|
8089
|
-
})), u =
|
|
8089
|
+
})), u = T(() => ({
|
|
8090
8090
|
fields: r.value.fields.filter(
|
|
8091
8091
|
(f) => !o.value.fields.some((v) => v.model === f.model) && !c.value.fields.some((v) => v.model === f.model)
|
|
8092
8092
|
)
|
|
8093
|
-
})), d =
|
|
8093
|
+
})), d = T(() => ({
|
|
8094
8094
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage") && !f.model.startsWith("config-storage_config-consul") && !f.model.startsWith("config-storage_config-redis") && !f.model.startsWith("config-storage_config-shm") && !f.model.startsWith("config-storage_config-vault"))
|
|
8095
|
-
})), g =
|
|
8095
|
+
})), g = T(() => ({
|
|
8096
8096
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-consul"))
|
|
8097
|
-
})), y =
|
|
8097
|
+
})), y = T(() => ({
|
|
8098
8098
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-redis"))
|
|
8099
|
-
})), B =
|
|
8099
|
+
})), B = T(() => ({
|
|
8100
8100
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-shm"))
|
|
8101
|
-
})), h =
|
|
8101
|
+
})), h = T(() => ({
|
|
8102
8102
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config-storage_config-vault"))
|
|
8103
|
-
})), E =
|
|
8103
|
+
})), E = T(() => ({
|
|
8104
8104
|
fields: n.formSchema.fields.filter((f) => f.model.startsWith("config") && !u.value.fields.filter((v) => v.model === f.model).length && !d.value.fields.filter((v) => v.model === f.model).length || f.model === "tags")
|
|
8105
|
-
})), R =
|
|
8105
|
+
})), R = T(() => n.formModel.id && n.isEditing || !n.isEditing), P = [
|
|
8106
8106
|
{
|
|
8107
8107
|
hash: "#general",
|
|
8108
8108
|
title: "General"
|
|
@@ -8133,7 +8133,7 @@ const aw = /* @__PURE__ */ De(Jb, [["render", nw], ["__scopeId", "data-v-44df963
|
|
|
8133
8133
|
Kn(() => {
|
|
8134
8134
|
a.value === "zeroSsl" && (n.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
8135
8135
|
});
|
|
8136
|
-
const
|
|
8136
|
+
const x = (f) => {
|
|
8137
8137
|
a.value = f.value, (f.value === "zeroSsl" || f.value === "other") && (f.value === "zeroSsl" ? n.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90" : n.formModel["config-api_uri"] = "https://acme.example.com/", n.formModel["config-tos_accepted"] = !1), f.value === "letsEncrypt" && (n.formModel["config-api_uri"] = "https://acme-v02.api.letsencrypt.org/directory", n.formModel["config-eab_hmac_key"] = "", n.formModel["config-eab_kid"] = ""), n.onModelUpdated();
|
|
8138
8138
|
}, j = (f, v) => {
|
|
8139
8139
|
v === "config-storage" && (i.value = f), n.onModelUpdated();
|
|
@@ -8168,7 +8168,7 @@ const aw = /* @__PURE__ */ De(Jb, [["render", nw], ["__scopeId", "data-v-44df963
|
|
|
8168
8168
|
class: "issuer-select",
|
|
8169
8169
|
items: I,
|
|
8170
8170
|
label: "Issuer",
|
|
8171
|
-
onChange:
|
|
8171
|
+
onChange: x
|
|
8172
8172
|
}),
|
|
8173
8173
|
C("div", pw, [
|
|
8174
8174
|
a.value === "letsEncrypt" ? (m(), S(_e, {
|
|
@@ -8334,11 +8334,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8334
8334
|
"selectionGroup",
|
|
8335
8335
|
"enabled",
|
|
8336
8336
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((D) => `config-${D}`)
|
|
8337
|
-
]), i = (D) => D === void 0 ? !1 : a.has(D), { t: s } = yt("en-us", xt), r = e, o =
|
|
8337
|
+
]), i = (D) => D === void 0 ? !1 : a.has(D), { t: s } = yt("en-us", xt), r = e, o = T(() => {
|
|
8338
8338
|
var D, L, te;
|
|
8339
8339
|
const J = (L = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : L.find((q) => q.type === "selectionGroup" && q.model === "selectionGroup");
|
|
8340
8340
|
return { fields: [(te = r.formSchema) == null ? void 0 : te.fields.find((q) => q.model === "enabled"), J].filter(Boolean) };
|
|
8341
|
-
}), c =
|
|
8341
|
+
}), c = T(() => {
|
|
8342
8342
|
var D, L;
|
|
8343
8343
|
const te = ((L = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : L.filter((ee) => !i(ee.model))) ?? [], J = [], q = [], de = [];
|
|
8344
8344
|
let Z = !1;
|
|
@@ -8357,13 +8357,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8357
8357
|
redis: r.enableRedisPartial ? { fields: [{ fields: q, id: "_redis", model: "__redis_partial", redisType: r.formSchema._supported_redis_partial_type }] } : { fields: q },
|
|
8358
8358
|
afterStrategy: { fields: de }
|
|
8359
8359
|
};
|
|
8360
|
-
}), p =
|
|
8360
|
+
}), p = T(() => {
|
|
8361
8361
|
const D = r.formModel["config-window_type"];
|
|
8362
8362
|
return Object.prototype.hasOwnProperty.call(n, D) ? n[D] : [];
|
|
8363
|
-
}), u =
|
|
8363
|
+
}), u = T(() => {
|
|
8364
8364
|
var D, L;
|
|
8365
8365
|
return (L = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : L.find((te) => te.model === "config-identifier");
|
|
8366
|
-
}), d =
|
|
8366
|
+
}), d = T(
|
|
8367
8367
|
() => {
|
|
8368
8368
|
var D, L, te;
|
|
8369
8369
|
return (((te = (L = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : L.find((J) => J.model === "config-identifier")) == null ? void 0 : te.values) ?? []).map((J) => ({
|
|
@@ -8371,16 +8371,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8371
8371
|
value: J
|
|
8372
8372
|
}));
|
|
8373
8373
|
}
|
|
8374
|
-
), g = X(), y = X(!0), B =
|
|
8374
|
+
), g = X(), y = X(!0), B = T(
|
|
8375
8375
|
() => {
|
|
8376
8376
|
var D, L, te;
|
|
8377
8377
|
return r.formModel["config-window_type"] ?? ((te = (L = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : L.find((J) => J.model === "config-window_type")) == null ? void 0 : te.default);
|
|
8378
8378
|
}
|
|
8379
|
-
), h =
|
|
8379
|
+
), h = T(() => {
|
|
8380
8380
|
var D, L, te, J, q, de;
|
|
8381
8381
|
const Z = (te = (L = (D = r.formSchema) == null ? void 0 : D.fields) == null ? void 0 : L.find((ee) => ee.model === "config-window_type")) == null ? void 0 : te.default;
|
|
8382
8382
|
return (((de = (q = (J = r.formSchema) == null ? void 0 : J.fields) == null ? void 0 : q.find((ee) => ee.model === "config-window_type")) == null ? void 0 : de.values) ?? []).sort((ee, pe) => ee === Z ? -1 : pe === Z ? 1 : 0);
|
|
8383
|
-
}), E =
|
|
8383
|
+
}), E = T(() => {
|
|
8384
8384
|
var D;
|
|
8385
8385
|
const L = (D = r.formModel["config-limit"]) == null ? void 0 : D.map((te, J) => {
|
|
8386
8386
|
var q, de;
|
|
@@ -8390,22 +8390,22 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8390
8390
|
};
|
|
8391
8391
|
});
|
|
8392
8392
|
return !Array.isArray(L) || L.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : L;
|
|
8393
|
-
}), R =
|
|
8393
|
+
}), R = T(
|
|
8394
8394
|
() => {
|
|
8395
8395
|
var D, L, te, J;
|
|
8396
8396
|
return ((D = r.formModel) == null ? void 0 : D["config-identifier"]) ?? ((J = (te = (L = r.formSchema) == null ? void 0 : L.fields) == null ? void 0 : te.find((q) => q.model === "config-identifier")) == null ? void 0 : J.default);
|
|
8397
8397
|
}
|
|
8398
|
-
), P =
|
|
8398
|
+
), P = T(
|
|
8399
8399
|
() => {
|
|
8400
8400
|
var D, L, te, J;
|
|
8401
8401
|
return ((D = r.formModel) == null ? void 0 : D["config-error_code"]) ?? ((J = (te = (L = r.formSchema) == null ? void 0 : L.fields) == null ? void 0 : te.find((q) => q.model === "config-error_code")) == null ? void 0 : J.default);
|
|
8402
8402
|
}
|
|
8403
|
-
), I =
|
|
8403
|
+
), I = T(
|
|
8404
8404
|
() => {
|
|
8405
8405
|
var D, L, te, J;
|
|
8406
8406
|
return ((D = r.formModel) == null ? void 0 : D["config-error_message"]) ?? ((J = (te = (L = r.formSchema) == null ? void 0 : L.fields) == null ? void 0 : te.find((q) => q.model === "config-error_message")) == null ? void 0 : J.default);
|
|
8407
8407
|
}
|
|
8408
|
-
),
|
|
8408
|
+
), x = (D, L) => {
|
|
8409
8409
|
if (L === g.value) {
|
|
8410
8410
|
r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"), Zt(() => {
|
|
8411
8411
|
g.value = void 0;
|
|
@@ -8574,7 +8574,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8574
8574
|
M(Z, {
|
|
8575
8575
|
appearance: g.value === `${B.value}-${ae}` ? "info" : "decorative",
|
|
8576
8576
|
class: "rla-form-request-limits-examples-badge",
|
|
8577
|
-
onClick: () =>
|
|
8577
|
+
onClick: () => x(H, `${B.value}-${ae}`)
|
|
8578
8578
|
}, {
|
|
8579
8579
|
default: w(() => [
|
|
8580
8580
|
be(N(H.label), 1)
|
|
@@ -8746,12 +8746,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8746
8746
|
let P = `${u == null ? void 0 : u.apiBaseUrl}/v1/realms`;
|
|
8747
8747
|
const I = [];
|
|
8748
8748
|
do {
|
|
8749
|
-
const
|
|
8750
|
-
|
|
8749
|
+
const x = await d.get(P);
|
|
8750
|
+
x && x.data && x.data.data && I.push(...x.data.data.map((j) => ({
|
|
8751
8751
|
value: j.id,
|
|
8752
8752
|
label: j.name,
|
|
8753
8753
|
group: c("custom_field.key_auth_identity_realms.realm_group_label")
|
|
8754
|
-
}))), P =
|
|
8754
|
+
}))), P = x.data.meta.next ? `${u == null ? void 0 : u.apiBaseUrl}${x.data.meta.next}` : null;
|
|
8755
8755
|
} while (P);
|
|
8756
8756
|
B.value = [p, ...I];
|
|
8757
8757
|
} catch (P) {
|
|
@@ -8759,8 +8759,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8759
8759
|
} finally {
|
|
8760
8760
|
y.value = !1;
|
|
8761
8761
|
}
|
|
8762
|
-
}, E =
|
|
8763
|
-
const I = P.includes("current-cp") ? [{ scope: "cp", id: null }] : [],
|
|
8762
|
+
}, E = T(() => r.value.map((P) => P.id || "current-cp")), R = (P) => {
|
|
8763
|
+
const I = P.includes("current-cp") ? [{ scope: "cp", id: null }] : [], x = r.value.filter(({ scope: Y }) => Y !== "cp").map(({ id: Y }) => Y), j = P.filter((Y) => Y !== "current-cp"), b = (x.length !== j.length || x.some((Y) => !j.includes(Y)) ? j.filter((Y) => !x.includes(Y)) : j).map((Y) => ({ ...g(), scope: "realm", id: Y }));
|
|
8764
8764
|
r.value = [
|
|
8765
8765
|
...I,
|
|
8766
8766
|
...b
|
|
@@ -8773,9 +8773,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8773
8773
|
}), t({
|
|
8774
8774
|
clearValidationErrors: s
|
|
8775
8775
|
}), (P, I) => {
|
|
8776
|
-
const
|
|
8776
|
+
const x = F("KMultiselect");
|
|
8777
8777
|
return m(), k("div", Uw, [
|
|
8778
|
-
M(
|
|
8778
|
+
M(x, {
|
|
8779
8779
|
items: B.value,
|
|
8780
8780
|
loading: y.value,
|
|
8781
8781
|
"model-value": E.value,
|
|
@@ -10914,7 +10914,7 @@ const EE = (e, t) => {
|
|
|
10914
10914
|
};
|
|
10915
10915
|
}, c = (f) => Array.isArray(f.default) || f.default != null && typeof f.default != "object" && f.default !== "function", p = (f, v, b, Y, D, L) => {
|
|
10916
10916
|
const te = c(f);
|
|
10917
|
-
return Y[v] = te ? f.default : null, f.id = v, f.model = v, f.fields && f.type === "record" ? d(f, v, b, Y, D, L) : (b[v] = f,
|
|
10917
|
+
return Y[v] = te ? f.default : null, f.id = v, f.model = v, f.fields && f.type === "record" ? d(f, v, b, Y, D, L) : (b[v] = f, x(f, Y), L && L[v] && u(b[v], L[v]), D.fields.push(f)), b;
|
|
10918
10918
|
}, u = (f, v) => (v && (Object.assign(f, v), v.label && (f.label = v.label)), f), d = (f, v, b, Y, D, L) => {
|
|
10919
10919
|
f.fields.forEach((te) => {
|
|
10920
10920
|
Object.keys(te).forEach((J) => {
|
|
@@ -10985,7 +10985,7 @@ const EE = (e, t) => {
|
|
|
10985
10985
|
v[D] = L ? b[D].default : null;
|
|
10986
10986
|
}), delete v[Y];
|
|
10987
10987
|
});
|
|
10988
|
-
}, I = (f, v) => f.inputType === "hidden" ? "" : n(t(f.label || v.replace(/_/g, " "))),
|
|
10988
|
+
}, I = (f, v) => f.inputType === "hidden" ? "" : n(t(f.label || v.replace(/_/g, " "))), x = (f, v) => {
|
|
10989
10989
|
switch (P(f, v), f.type) {
|
|
10990
10990
|
case "foreign":
|
|
10991
10991
|
g(f, v);
|
|
@@ -11633,10 +11633,10 @@ const Dl = {
|
|
|
11633
11633
|
validateStatus: (Z) => Z === 404 || Z >= 200 && Z < 300,
|
|
11634
11634
|
// Spread the passed-in config later to allow overriding
|
|
11635
11635
|
...(n = i.config) == null ? void 0 : n.axiosRequestConfig
|
|
11636
|
-
}), o = X(!1), c = X(""), p = X(""), u = X(""), d = X(), g =
|
|
11636
|
+
}), o = X(!1), c = X(""), p = X(""), u = X(""), d = X(), g = T(() => {
|
|
11637
11637
|
var Z, ee;
|
|
11638
11638
|
return i.config.app === "konnect" ? Sr.list[i.config.app].replace(/{id}/gi, ((ee = (Z = d.value) == null ? void 0 : Z.config) == null ? void 0 : ee.config_store_id) ?? "") : "<not_applicable>";
|
|
11639
|
-
}), y =
|
|
11639
|
+
}), y = T(() => {
|
|
11640
11640
|
if (E && j)
|
|
11641
11641
|
return a("vault_secret_picker.fetch_error.vaults_and_secrets");
|
|
11642
11642
|
if (E)
|
|
@@ -11654,7 +11654,7 @@ const Dl = {
|
|
|
11654
11654
|
searchKeys: ["prefix"]
|
|
11655
11655
|
}), {
|
|
11656
11656
|
debouncedQueryChange: I,
|
|
11657
|
-
loading:
|
|
11657
|
+
loading: x,
|
|
11658
11658
|
error: j,
|
|
11659
11659
|
loadItems: f,
|
|
11660
11660
|
results: v
|
|
@@ -11662,7 +11662,7 @@ const Dl = {
|
|
|
11662
11662
|
fetchedItemsKey: "data",
|
|
11663
11663
|
searchKeys: ["key"],
|
|
11664
11664
|
exactMatchKey: "key"
|
|
11665
|
-
}), b =
|
|
11665
|
+
}), b = T(() => {
|
|
11666
11666
|
var Z;
|
|
11667
11667
|
let ee = !1;
|
|
11668
11668
|
const pe = ((Z = P.value) == null ? void 0 : Z.map((ce) => (ce.prefix === c.value && (ee = !0), { label: ce.prefix, value: ce.prefix, vault: ce }))) ?? [];
|
|
@@ -11671,15 +11671,15 @@ const Dl = {
|
|
|
11671
11671
|
value: d.value.prefix,
|
|
11672
11672
|
vault: d.value
|
|
11673
11673
|
}), pe;
|
|
11674
|
-
}), Y =
|
|
11674
|
+
}), Y = T(() => {
|
|
11675
11675
|
var Z;
|
|
11676
11676
|
let ee = !1;
|
|
11677
11677
|
const pe = ((Z = v.value) == null ? void 0 : Z.map((ce) => (ce.key === p.value && (ee = !0), { label: ce.key, value: ce.key }))) ?? [];
|
|
11678
11678
|
return !ee && p.value && pe.push({ label: p.value, value: p.value }), pe;
|
|
11679
|
-
}), D =
|
|
11679
|
+
}), D = T(() => {
|
|
11680
11680
|
var Z;
|
|
11681
11681
|
return ((Z = d == null ? void 0 : d.value) == null ? void 0 : Z.name) === "konnect";
|
|
11682
|
-
}), L =
|
|
11682
|
+
}), L = T(() => !!d.value && !!p.value), te = (Z) => Z.label ? `${Z.label} - (${Z.vault.name} - ${Z.vault.id})` : Z.value, J = (Z) => {
|
|
11683
11683
|
var ee, pe;
|
|
11684
11684
|
let ce = `${i.config.apiBaseUrl}${kr.form[i.config.app].edit}`;
|
|
11685
11685
|
return i.config.app === "konnect" ? ce = ce.replace(/{controlPlaneId}/gi, ((ee = i.config) == null ? void 0 : ee.controlPlaneId) || "") : i.config.app === "kongManager" && (ce = ce.replace(/\/{workspace}/gi, (pe = i.config) != null && pe.workspace ? `/${i.config.workspace}` : "")), ce.replace(/{id}/gi, Z);
|
|
@@ -11789,7 +11789,7 @@ const Dl = {
|
|
|
11789
11789
|
items: Y.value,
|
|
11790
11790
|
"kpop-attributes": { "data-testid": "vault-secret-picker-secret-id-popover" },
|
|
11791
11791
|
label: A(a)("vault_secret_picker.secret_id.label"),
|
|
11792
|
-
loading: A(
|
|
11792
|
+
loading: A(x),
|
|
11793
11793
|
placeholder: A(a)("vault_secret_picker.secret_id.select_placeholder"),
|
|
11794
11794
|
required: "",
|
|
11795
11795
|
"reuse-item-template": "",
|
|
@@ -11842,7 +11842,7 @@ const Dl = {
|
|
|
11842
11842
|
setup(e) {
|
|
11843
11843
|
const t = e, { formatPluginFieldLabel: n } = Ne.usePluginHelpers(), { i18n: { t: a } } = Ne.useI18n(), i = (o) => o.map(
|
|
11844
11844
|
(c) => c.replace(/^[cC]onfig\./, "").split(".").map((p) => n(p)).join(".")
|
|
11845
|
-
).join(", "), s = (o, c) => a(o, { parameters: i(c) }), r =
|
|
11845
|
+
).join(", "), s = (o, c) => a(o, { parameters: i(c) }), r = T(() => {
|
|
11846
11846
|
const o = [];
|
|
11847
11847
|
if (t.rules.atLeastOneOf)
|
|
11848
11848
|
for (const c of t.rules.atLeastOneOf)
|
|
@@ -12790,7 +12790,7 @@ function Vi(e) {
|
|
|
12790
12790
|
return It(...t);
|
|
12791
12791
|
}
|
|
12792
12792
|
function J0(e) {
|
|
12793
|
-
const t = lt(e), n =
|
|
12793
|
+
const t = lt(e), n = T(() => t ? Yi(t) : {});
|
|
12794
12794
|
function a(u) {
|
|
12795
12795
|
var d;
|
|
12796
12796
|
return u == null ? t : (d = n.value) == null ? void 0 : d[Vi(u)];
|
|
@@ -12853,14 +12853,14 @@ function Bt() {
|
|
|
12853
12853
|
return { formData: e, formConfig: n, ...t };
|
|
12854
12854
|
}
|
|
12855
12855
|
const q0 = (e) => {
|
|
12856
|
-
const t = ct(so,
|
|
12856
|
+
const t = ct(so, T(() => "")), n = T(() => {
|
|
12857
12857
|
const a = lt(e);
|
|
12858
12858
|
let i = a;
|
|
12859
12859
|
return !io(a) && t.value && (i = It(t.value, a)), io(a) && (i = i.slice(Hi("").length)), i;
|
|
12860
12860
|
});
|
|
12861
12861
|
return at(so, n), n;
|
|
12862
12862
|
}, Z0 = (e) => {
|
|
12863
|
-
const { getSchema: t } = Bt(), { default: n, ...a } = jt(), i = ct(Fi), s = ct(Fa), r =
|
|
12863
|
+
const { getSchema: t } = Bt(), { default: n, ...a } = jt(), i = ct(Fi), s = ct(Fa), r = T(() => {
|
|
12864
12864
|
const c = lt(i), p = Object.keys(a).filter((u) => u !== Nn && u !== "item").reduce((u, d) => {
|
|
12865
12865
|
const g = Vi(It(lt(e), d));
|
|
12866
12866
|
return { ...u, [g]: a[d] };
|
|
@@ -12869,7 +12869,7 @@ const q0 = (e) => {
|
|
|
12869
12869
|
});
|
|
12870
12870
|
at(Fi, r);
|
|
12871
12871
|
const o = lt(e);
|
|
12872
|
-
return
|
|
12872
|
+
return T(() => {
|
|
12873
12873
|
if (n) return;
|
|
12874
12874
|
const c = r.value[Vi(lt(e))];
|
|
12875
12875
|
if (c) return c;
|
|
@@ -12922,7 +12922,7 @@ function $0(e, t) {
|
|
|
12922
12922
|
}
|
|
12923
12923
|
function eR(e, t) {
|
|
12924
12924
|
const n = lt(e), a = yc(n), { formConfig: i } = Bt(), s = $0(a, t), { getSchema: r } = Bt(), o = Cc(e);
|
|
12925
|
-
return
|
|
12925
|
+
return T(() => {
|
|
12926
12926
|
var y;
|
|
12927
12927
|
const c = s.value ?? a, p = Vn(c), u = (y = o.value.parent) != null && y.path ? r(o.value.parent.path) : null, g = (u == null ? void 0 : u.type) === "array" ? "" : p.map((B) => B.split("_").map(JB).map(_0).join(" ")).join(" › ");
|
|
12928
12928
|
return i.transformLabel ? i.transformLabel(g, n) : g;
|
|
@@ -12930,7 +12930,7 @@ function eR(e, t) {
|
|
|
12930
12930
|
}
|
|
12931
12931
|
function Tn(e, t) {
|
|
12932
12932
|
const { getLabelAttributes: n, getPlaceholder: a, getSchema: i } = Bt(), s = lt(e), r = lt(t), o = eR(e, pt(() => lt(t).resetLabelPath));
|
|
12933
|
-
return
|
|
12933
|
+
return T(() => {
|
|
12934
12934
|
var c;
|
|
12935
12935
|
return {
|
|
12936
12936
|
...r,
|
|
@@ -12942,7 +12942,7 @@ function Tn(e, t) {
|
|
|
12942
12942
|
});
|
|
12943
12943
|
}
|
|
12944
12944
|
function Cc(e) {
|
|
12945
|
-
return
|
|
12945
|
+
return T(() => {
|
|
12946
12946
|
var a;
|
|
12947
12947
|
const t = Vn(lt(e));
|
|
12948
12948
|
let n = { parent: null };
|
|
@@ -12954,10 +12954,10 @@ function Cc(e) {
|
|
|
12954
12954
|
});
|
|
12955
12955
|
}
|
|
12956
12956
|
function nn(e) {
|
|
12957
|
-
const { getSchema: t, formData: n } = Bt(), a = q0(e), i = Z0(a), s =
|
|
12957
|
+
const { getSchema: t, formData: n } = Bt(), a = q0(e), i = Z0(a), s = T({
|
|
12958
12958
|
get: () => pB(n, Vn(a.value)),
|
|
12959
12959
|
set: (o) => z0(n, Vn(a.value), o)
|
|
12960
|
-
}), r =
|
|
12960
|
+
}), r = T(() => t(a.value));
|
|
12961
12961
|
return r.value ? {
|
|
12962
12962
|
schema: r,
|
|
12963
12963
|
path: a,
|
|
@@ -12971,7 +12971,7 @@ function nn(e) {
|
|
|
12971
12971
|
}
|
|
12972
12972
|
function Ic(e) {
|
|
12973
12973
|
const { getSchema: t } = Bt(), n = fo();
|
|
12974
|
-
return
|
|
12974
|
+
return T(() => {
|
|
12975
12975
|
var i;
|
|
12976
12976
|
if (n["data-autofocus"] !== void 0)
|
|
12977
12977
|
return !0;
|
|
@@ -13004,15 +13004,15 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13004
13004
|
function p(R) {
|
|
13005
13005
|
c !== void 0 && R === "" && R !== c ? (s.value = null, i("update:modelValue", null)) : (s.value = R.trim(), i("update:modelValue", R.trim()));
|
|
13006
13006
|
}
|
|
13007
|
-
const u =
|
|
13007
|
+
const u = T(() => {
|
|
13008
13008
|
var R;
|
|
13009
13009
|
return e.showPasswordMaskToggle !== void 0 ? e.showPasswordMaskToggle : a.type === "password" ? !0 : !!((R = r.schema) == null ? void 0 : R.value).encrypted;
|
|
13010
|
-
}), d =
|
|
13010
|
+
}), d = T(() => a.multiline ? ru : Co), g = ct(At, void 0), y = T(() => {
|
|
13011
13011
|
var R;
|
|
13012
13012
|
return e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!((R = r.schema.value) != null && R.referenceable);
|
|
13013
|
-
}), B =
|
|
13013
|
+
}), B = T(() => ({ referenceable: y.value })), h = Ic(r.ancestors), E = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : yc(e.name) === "name");
|
|
13014
13014
|
return (R, P) => {
|
|
13015
|
-
var
|
|
13015
|
+
var x;
|
|
13016
13016
|
const I = F("KAlert");
|
|
13017
13017
|
return r.error ? (m(), S(I, {
|
|
13018
13018
|
key: 0,
|
|
@@ -13029,7 +13029,7 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13029
13029
|
"model-value": A(s) ?? "",
|
|
13030
13030
|
"onUpdate:modelValue": p
|
|
13031
13031
|
}), $e({ _: 2 }, [
|
|
13032
|
-
(
|
|
13032
|
+
(x = A(o).labelAttributes) != null && x.info ? {
|
|
13033
13033
|
name: "label-tooltip",
|
|
13034
13034
|
fn: w(() => [
|
|
13035
13035
|
Ye(R.$slots, "tooltip", {}, () => [
|
|
@@ -13192,7 +13192,7 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13192
13192
|
emits: ["update:added", "update:expanded"],
|
|
13193
13193
|
setup(e) {
|
|
13194
13194
|
jt();
|
|
13195
|
-
const t = zn(e, ["defaultExpanded", "defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, ...a } = nn(pt(t, "name")), { getSchema: i } = Bt(), s = Ei(e, "added"), r = Ei(e, "expanded"), o =
|
|
13195
|
+
const t = zn(e, ["defaultExpanded", "defaultAdded", "collapsible", "omit", "required", "asChild", "resetLabelPath", "fieldsOrder"]), { value: n, ...a } = nn(pt(t, "name")), { getSchema: i } = Bt(), s = Ei(e, "added"), r = Ei(e, "expanded"), o = T(() => d.value && (e.collapsible ? r.value ?? e.defaultExpanded : !1)), c = T(() => {
|
|
13196
13196
|
var B, h;
|
|
13197
13197
|
if ((B = a.ancestors) != null && B.value) {
|
|
13198
13198
|
const E = a.ancestors.value.parent;
|
|
@@ -13200,11 +13200,11 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13200
13200
|
return ((h = i(E.path)) == null ? void 0 : h.type) === "array";
|
|
13201
13201
|
}
|
|
13202
13202
|
return !1;
|
|
13203
|
-
}), p =
|
|
13203
|
+
}), p = T(() => e.resetLabelPath !== void 0 ? e.resetLabelPath : c.value ? "reset" : "inherit"), u = Tn(a.path, pt(() => ({ required: e.required, ...t, resetLabelPath: p.value }))), d = T(() => u.value.required ? !0 : s.value ?? e.defaultAdded), g = T(() => e.asChild !== void 0 ? e.asChild : c.value), y = T(() => {
|
|
13204
13204
|
let B = a.schema.value.fields;
|
|
13205
13205
|
return e.omit && (B = B.filter((h) => !e.omit.includes(Object.keys(h)[0]))), e.fieldsOrder ? B.sort((h, E) => {
|
|
13206
|
-
const R = Object.keys(h)[0], P = Object.keys(E)[0], I = e.fieldsOrder.indexOf(R),
|
|
13207
|
-
return I === -1 &&
|
|
13206
|
+
const R = Object.keys(h)[0], P = Object.keys(E)[0], I = e.fieldsOrder.indexOf(R), x = e.fieldsOrder.indexOf(P);
|
|
13207
|
+
return I === -1 && x === -1 ? 0 : I === -1 ? 1 : x === -1 ? -1 : I - x;
|
|
13208
13208
|
}) : B;
|
|
13209
13209
|
});
|
|
13210
13210
|
return We(d, (B) => {
|
|
@@ -13312,7 +13312,7 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13312
13312
|
},
|
|
13313
13313
|
emits: ["update:modelValue"],
|
|
13314
13314
|
setup(e, { emit: t }) {
|
|
13315
|
-
const n = zn(e, ["name"]), { value: a, ...i } = nn(pt(() => e.name)), s = Tn(i.path, n), r =
|
|
13315
|
+
const n = zn(e, ["name"]), { value: a, ...i } = nn(pt(() => e.name)), s = Tn(i.path, n), r = T(() => {
|
|
13316
13316
|
var y;
|
|
13317
13317
|
const [d, g] = ((y = i.schema) == null ? void 0 : y.value).between ?? [];
|
|
13318
13318
|
return {
|
|
@@ -13367,10 +13367,10 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13367
13367
|
items: {}
|
|
13368
13368
|
},
|
|
13369
13369
|
setup(e) {
|
|
13370
|
-
const t = zn(e, ["name", "items"]), { getSelectItems: n } = Bt(), { value: a, ...i } = nn(pt(() => e.name)), s = Tn(i.path, t), r =
|
|
13370
|
+
const t = zn(e, ["name", "items"]), { getSelectItems: n } = Bt(), { value: a, ...i } = nn(pt(() => e.name)), s = Tn(i.path, t), r = T(() => e.items ? e.items : i.path ? n(i.path.value) : []), o = T(() => {
|
|
13371
13371
|
var p;
|
|
13372
13372
|
return "multiple" in t ? t.multiple : ((p = i.schema.value) == null ? void 0 : p.type) === "set";
|
|
13373
|
-
}), c =
|
|
13373
|
+
}), c = T(() => o.value ? cu : uu);
|
|
13374
13374
|
return (p, u) => {
|
|
13375
13375
|
var g;
|
|
13376
13376
|
const d = F("KAlert");
|
|
@@ -13452,10 +13452,10 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13452
13452
|
function R(f) {
|
|
13453
13453
|
f === c.value.length - 1 && d(), h(f + 1);
|
|
13454
13454
|
}
|
|
13455
|
-
const P = ct(At, void 0), I =
|
|
13455
|
+
const P = ct(At, void 0), I = T(() => {
|
|
13456
13456
|
var f, v;
|
|
13457
13457
|
return e.showVaultSecretPicker ?? !!((v = (f = s.schema.value) == null ? void 0 : f.values) != null && v.referenceable);
|
|
13458
|
-
}),
|
|
13458
|
+
}), x = T(() => ({ referenceable: I.value }));
|
|
13459
13459
|
function j(f, v) {
|
|
13460
13460
|
c.value[f].value = v;
|
|
13461
13461
|
}
|
|
@@ -13536,7 +13536,7 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13536
13536
|
after: w(() => [
|
|
13537
13537
|
A(P) && I.value ? (m(), S(Re(A(P)), {
|
|
13538
13538
|
key: 0,
|
|
13539
|
-
schema:
|
|
13539
|
+
schema: x.value,
|
|
13540
13540
|
update: (de) => j(q, de),
|
|
13541
13541
|
value: J.value
|
|
13542
13542
|
}, null, 8, ["schema", "update", "value"])) : ne("", !0)
|
|
@@ -13564,7 +13564,7 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13564
13564
|
name: {}
|
|
13565
13565
|
},
|
|
13566
13566
|
setup(e) {
|
|
13567
|
-
const n = nn(pt(e, "name")), a =
|
|
13567
|
+
const n = nn(pt(e, "name")), a = T(() => {
|
|
13568
13568
|
var i, s;
|
|
13569
13569
|
switch ((s = (i = n.schema) == null ? void 0 : i.value) == null ? void 0 : s.type) {
|
|
13570
13570
|
case "string":
|
|
@@ -13630,9 +13630,9 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13630
13630
|
setup(e, { emit: t }) {
|
|
13631
13631
|
var j;
|
|
13632
13632
|
Gc((f) => ({
|
|
13633
|
-
"2f0a0592":
|
|
13633
|
+
"2f0a0592": x.value
|
|
13634
13634
|
}));
|
|
13635
|
-
const n = e, a = t, { getDefault: i } = Bt(), { value: s, ...r } = nn(pt(n, "name")), o = Tn(r.path, n), c = pn(/* @__PURE__ */ new Map()), p =
|
|
13635
|
+
const n = e, a = t, { getDefault: i } = Bt(), { value: s, ...r } = nn(pt(n, "name")), o = Tn(r.path, n), c = pn(/* @__PURE__ */ new Map()), p = T(() => n.items ?? lt(s) ?? []), u = T(() => n.appearance === "card" ? Rs : "div");
|
|
13636
13636
|
function d() {
|
|
13637
13637
|
return bs("ff-array-field-");
|
|
13638
13638
|
}
|
|
@@ -13651,7 +13651,7 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13651
13651
|
v.has(b) || c.delete(b);
|
|
13652
13652
|
});
|
|
13653
13653
|
}, { immediate: !0, deep: !0 });
|
|
13654
|
-
const B =
|
|
13654
|
+
const B = T(() => p.value.map((f, v) => ({
|
|
13655
13655
|
hash: `#${g(f, v)}`,
|
|
13656
13656
|
title: ""
|
|
13657
13657
|
}))), h = X((j = B.value[0]) == null ? void 0 : j.hash), E = async () => {
|
|
@@ -13669,7 +13669,7 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13669
13669
|
const v = Math.max(0, Math.min(f, p.value.length - 1));
|
|
13670
13670
|
(b = P.value.querySelector(`[data-index="${v}"] [data-autofocus]`)) == null || b.focus();
|
|
13671
13671
|
}
|
|
13672
|
-
const
|
|
13672
|
+
const x = T(() => {
|
|
13673
13673
|
const { appearance: f, stickyTabs: v } = n;
|
|
13674
13674
|
return f !== "tabs" || v == null || v === !1 ? null : typeof v == "number" ? `${n.stickyTabs}px` : typeof v == "string" ? v : "0";
|
|
13675
13675
|
});
|
|
@@ -13810,13 +13810,13 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13810
13810
|
fieldName: {}
|
|
13811
13811
|
},
|
|
13812
13812
|
setup(e) {
|
|
13813
|
-
const t = e, { formData: n } = Bt(), a =
|
|
13813
|
+
const t = e, { formData: n } = Bt(), a = T(() => {
|
|
13814
13814
|
const { callouts: r } = n.config;
|
|
13815
13815
|
return r == null ? [] : r.filter(({ name: o }) => {
|
|
13816
13816
|
var c;
|
|
13817
13817
|
return o && o !== ((c = r[t.index]) == null ? void 0 : c.name);
|
|
13818
13818
|
});
|
|
13819
|
-
}), i =
|
|
13819
|
+
}), i = T(() => a.value.map(({ _id: r, name: o }) => ({ value: r, label: o }))), s = T(() => n.config.callouts[t.index]);
|
|
13820
13820
|
return We(i, () => {
|
|
13821
13821
|
s.value.depends_on = s.value.depends_on.filter(
|
|
13822
13822
|
(r) => i.value.some((o) => o.value === r)
|
|
@@ -13909,7 +13909,7 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
13909
13909
|
const s = (u) => {
|
|
13910
13910
|
var d;
|
|
13911
13911
|
return ss((d = e.config) == null ? void 0 : d.hasValue) ? e.config.hasValue(u) : !!u;
|
|
13912
|
-
}, r =
|
|
13912
|
+
}, r = T(() => {
|
|
13913
13913
|
let u = i.getSchema().fields;
|
|
13914
13914
|
return e.fieldsOrder ? u.sort((d, g) => {
|
|
13915
13915
|
const y = Object.keys(d)[0], B = Object.keys(g)[0], h = e.fieldsOrder.indexOf(y), E = e.fieldsOrder.indexOf(B);
|
|
@@ -14079,17 +14079,17 @@ const nR = { key: 1 }, aR = ["innerHTML"], iR = /* @__PURE__ */ me({
|
|
|
14079
14079
|
const { t } = yt("en-us", Uo), n = e, a = jt();
|
|
14080
14080
|
at(At, a == null ? void 0 : a[St]);
|
|
14081
14081
|
function i(h) {
|
|
14082
|
-
return
|
|
14082
|
+
return T(() => ({
|
|
14083
14083
|
fields: lt(h).map((E) => {
|
|
14084
14084
|
var R;
|
|
14085
14085
|
return (R = n.formSchema) == null ? void 0 : R.fields.find((P) => P.model === E);
|
|
14086
14086
|
}).filter(Boolean)
|
|
14087
14087
|
}));
|
|
14088
14088
|
}
|
|
14089
|
-
const s = ["enabled", "selectionGroup"], r =
|
|
14089
|
+
const s = ["enabled", "selectionGroup"], r = T(() => {
|
|
14090
14090
|
var h;
|
|
14091
14091
|
return (((h = n.formSchema) == null ? void 0 : h.fields) || []).map((E) => E.model);
|
|
14092
|
-
}), o =
|
|
14092
|
+
}), o = T(() => r.value.filter((h) => h.startsWith("config-"))), c = T(() => r.value.filter((h) => !s.includes(h) && !o.value.includes(h))), p = i(s), u = i(c), d = ["config"], g = T(() => {
|
|
14093
14093
|
const h = n.schema;
|
|
14094
14094
|
return h.fields = h.fields.filter((E) => d.includes(Object.keys(E)[0])), h;
|
|
14095
14095
|
}), y = X(!1), B = X(!0);
|
|
@@ -14280,7 +14280,7 @@ const QR = me({
|
|
|
14280
14280
|
}) : i.get(oe, { params: W });
|
|
14281
14281
|
}
|
|
14282
14282
|
}), at(es, a.config);
|
|
14283
|
-
const I = X(""),
|
|
14283
|
+
const I = X(""), x = X(""), j = X(null), f = X({}), v = pn({}), b = pn({}), Y = T(() => {
|
|
14284
14284
|
var le;
|
|
14285
14285
|
return (le = j.value) == null ? void 0 : le.options;
|
|
14286
14286
|
}), D = X(!1), L = X(), te = (le, W) => {
|
|
@@ -14366,7 +14366,7 @@ const QR = me({
|
|
|
14366
14366
|
$ !== void 0 && Ae === "" && Ae !== $ ? ue[he] = O === "object" ? {} : null : Be.type === "checklist" && Ae === "" ? ue[he] = [] : Ae !== "" && (ue[he] = Ae), ue[he] = re ? re(Ae) : ue[he], d(he, ue);
|
|
14367
14367
|
});
|
|
14368
14368
|
const fe = c(ue);
|
|
14369
|
-
if (
|
|
14369
|
+
if (x.value) {
|
|
14370
14370
|
const Se = (an = (Ut = (Rt = a.rawSchema) == null ? void 0 : Rt.fields) == null ? void 0 : Ut.find((Be) => "config" in Be)) == null ? void 0 : an.config;
|
|
14371
14371
|
Object.assign(fe, {
|
|
14372
14372
|
...pe.value,
|
|
@@ -14441,7 +14441,7 @@ const QR = me({
|
|
|
14441
14441
|
route_id: a.record.route_id || a.record.route,
|
|
14442
14442
|
consumer_id: a.record.consumer_id || a.record.consumer,
|
|
14443
14443
|
consumer_group_id: a.record.consumer_group_id || a.record.consumer_group
|
|
14444
|
-
}), a.record.partials && de("redis", { partials: a.record.partials }),
|
|
14444
|
+
}), a.record.partials && de("redis", { partials: a.record.partials }), x.value ? ce(a.record) : ee(a.record.config, "config"))), Object.keys(a.entityMap).length && !a.entityMap.global && a.schema) {
|
|
14445
14445
|
const W = {};
|
|
14446
14446
|
for (const oe in a.entityMap) {
|
|
14447
14447
|
const ve = a.entityMap[oe].id, ue = a.entityMap[oe].idField, fe = ue === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(ue).replace("_", "-"));
|
|
@@ -14464,7 +14464,7 @@ const QR = me({
|
|
|
14464
14464
|
const oe = s(le);
|
|
14465
14465
|
Object.assign(b, oe.model), f.value = {
|
|
14466
14466
|
fields: (ue = (ve = f.value) == null ? void 0 : ve.fields) == null ? void 0 : ue.map((fe) => ({ ...fe, disabled: fe.disabled || !1 }))
|
|
14467
|
-
}, Object.assign(v, JSON.parse(JSON.stringify(oe.model))),
|
|
14467
|
+
}, Object.assign(v, JSON.parse(JSON.stringify(oe.model))), x.value = Tl(oe.model.name, g), I.value = kl(oe.model.name), H();
|
|
14468
14468
|
}, { immediate: !0, deep: !0 }), Ht(() => {
|
|
14469
14469
|
var le, W;
|
|
14470
14470
|
j.value = s(a.schema), Object.assign(b, ((le = j.value) == null ? void 0 : le.model) || {}), f.value = ((W = j.value) == null ? void 0 : W.schema) || {}, H();
|
|
@@ -14477,7 +14477,7 @@ const QR = me({
|
|
|
14477
14477
|
key: 0,
|
|
14478
14478
|
type: "form"
|
|
14479
14479
|
})) : b.id && e.editing || !e.editing ? (m(), k("div", KR, [
|
|
14480
|
-
|
|
14480
|
+
x.value ? (m(), S(Re(x.value), {
|
|
14481
14481
|
key: 0,
|
|
14482
14482
|
"form-model": b,
|
|
14483
14483
|
"form-options": Y.value,
|
|
@@ -14672,7 +14672,7 @@ const QR = me({
|
|
|
14672
14672
|
app: a.config.app,
|
|
14673
14673
|
credential: a.credential,
|
|
14674
14674
|
experimentalRenders: a.config.app === "konnect" ? a.config.experimentalRenders : void 0
|
|
14675
|
-
}), { formatPluginFieldLabel: c } = Ne.usePluginHelpers(), { getMessageFromError: p } = wa(), { capitalize: u } = Ya(), { objectsAreEqual: d } = Va(), { axiosInstance: g } = Ft((Ae = a.config) == null ? void 0 : Ae.axiosRequestConfig), y = X(!1), B =
|
|
14675
|
+
}), { formatPluginFieldLabel: c } = Ne.usePluginHelpers(), { getMessageFromError: p } = wa(), { capitalize: u } = Ya(), { objectsAreEqual: d } = Va(), { axiosInstance: g } = Ft((Ae = a.config) == null ? void 0 : Ae.axiosRequestConfig), y = X(!1), B = T(() => !!a.pluginId), h = T(() => a.pluginId ? on.Edit : on.Create), E = X(void 0), R = X(void 0), P = T(() => !!(a.credential && a.config.entityId)), I = X(void 0), x = X({}), j = X(), f = X(), v = X(!1), b = pn({
|
|
14676
14676
|
enabled: !0,
|
|
14677
14677
|
protocols: [],
|
|
14678
14678
|
tags: []
|
|
@@ -14698,7 +14698,7 @@ const QR = me({
|
|
|
14698
14698
|
title: s("view_configuration.terraform"),
|
|
14699
14699
|
hash: "#terraform"
|
|
14700
14700
|
});
|
|
14701
|
-
const L = X(""), te =
|
|
14701
|
+
const L = X(""), te = T(() => {
|
|
14702
14702
|
if (P.value) {
|
|
14703
14703
|
let $ = Je.form[a.config.app].credential[h.value];
|
|
14704
14704
|
return $ = $.replace(/{resourceEndpoint}/gi, Z.value), $;
|
|
@@ -14706,7 +14706,7 @@ const QR = me({
|
|
|
14706
14706
|
return a.config.entityType && a.config.entityId ? Je.form[a.config.app].edit.forEntity.replace(/{entityType}/gi, a.config.entityType).replace(/{entityId}/gi, a.config.entityId) : Je.form[a.config.app].edit.all;
|
|
14707
14707
|
}), J = () => {
|
|
14708
14708
|
y.value = !y.value;
|
|
14709
|
-
}, q =
|
|
14709
|
+
}, q = T(() => {
|
|
14710
14710
|
var he, Te, se, ye, _, Q, z, ze;
|
|
14711
14711
|
const $ = a.config.entityType === "consumers" && a.config.entityId || ((Te = (he = I.value) == null ? void 0 : he.consumer) == null ? void 0 : Te.id), G = a.config.entityType === "consumer_groups" && a.config.entityId || ((ye = (se = I.value) == null ? void 0 : se.consumer_group) == null ? void 0 : ye.id), O = a.config.entityType === "services" && a.config.entityId || ((Q = (_ = I.value) == null ? void 0 : _.service) == null ? void 0 : Q.id), ie = a.config.entityType === "routes" && a.config.entityId || ((ze = (z = I.value) == null ? void 0 : z.route) == null ? void 0 : ze.id);
|
|
14712
14712
|
if (!($ || G || O || ie))
|
|
@@ -14807,7 +14807,7 @@ const QR = me({
|
|
|
14807
14807
|
help: s("plugins.form.fields.instance_name.help")
|
|
14808
14808
|
},
|
|
14809
14809
|
tags: o.tags
|
|
14810
|
-
}), Z =
|
|
14810
|
+
}), Z = T(() => {
|
|
14811
14811
|
var O;
|
|
14812
14812
|
const $ = a.developer ? "developers" : "consumers", G = ((O = Ln[a.pluginType]) == null ? void 0 : O.endpoint) || "/plugins";
|
|
14813
14813
|
return `${$}/${a.config.entityId}${a.developer ? "/credentials" : ""}${G}`;
|
|
@@ -15049,7 +15049,7 @@ const QR = me({
|
|
|
15049
15049
|
}), de.selectionGroup.fields[1].fields = ye;
|
|
15050
15050
|
}
|
|
15051
15051
|
r[a.pluginType] && r[a.pluginType].overwriteDefault && Object.hasOwnProperty.call(r[a.pluginType], "formSchema") && Object.assign(de, r[a.pluginType].formSchema);
|
|
15052
|
-
}, K =
|
|
15052
|
+
}, K = T(() => !d(Y.fields, b, !0)), H = T(() => !Se.value && !v.value && (h.value === on.Create || K.value)), ae = X(!1), Ee = X(), le = ($) => {
|
|
15053
15053
|
a.credential && $.password && ($.password = ""), Y.fields.id = ($ == null ? void 0 : $.id) || void 0, Ee.value = $ == null ? void 0 : $.ordering, Object.assign(b, Y.fields), I.value = $, ae.value = !0;
|
|
15054
15054
|
}, W = X({}), oe = ($) => {
|
|
15055
15055
|
var G;
|
|
@@ -15062,20 +15062,20 @@ const QR = me({
|
|
|
15062
15062
|
We([q, ae], ($, G) => {
|
|
15063
15063
|
const O = $[0] !== G[0], ie = $[1], re = G[1];
|
|
15064
15064
|
if (!P.value && h.value === on.Edit && (O || ie && ie !== re)) {
|
|
15065
|
-
const he = pe("config",
|
|
15065
|
+
const he = pe("config", x.value, de);
|
|
15066
15066
|
gt.value && (he._isCustomPlugin = !0), j.value && (he._supported_redis_partial_type = j.value), R.value = he;
|
|
15067
15067
|
}
|
|
15068
15068
|
}, { deep: !0 });
|
|
15069
15069
|
const ve = () => {
|
|
15070
15070
|
a.config.cancelRoute ? i.push(a.config.cancelRoute) : n("cancel");
|
|
15071
|
-
}, ue =
|
|
15071
|
+
}, ue = T(() => {
|
|
15072
15072
|
let $ = `${a.config.apiBaseUrl}${Je.form[a.config.app].validate}`;
|
|
15073
15073
|
return a.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, a.config.controlPlaneId || "") : a.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, a.config.workspace ? `/${a.config.workspace}` : "")), $ = $.replace(/{id}/gi, a.pluginId), $;
|
|
15074
|
-
}), fe =
|
|
15074
|
+
}), fe = T(() => {
|
|
15075
15075
|
const $ = a.config.entityType && a.config.entityId && !a.developer, G = P.value ? Je.form[a.config.app].credential[h.value] : Je.form[a.config.app][h.value][$ ? "forEntity" : "all"];
|
|
15076
15076
|
let O = `${a.config.apiBaseUrl}${G}`;
|
|
15077
15077
|
return a.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, a.config.controlPlaneId || "") : a.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, a.config.workspace ? `/${a.config.workspace}` : "")), O = O.replace(/{resourceEndpoint}/gi, Z.value), O = O.replace(/{id}/gi, a.pluginId), O = O.replace(/{entityType}/gi, a.config.entityType || ""), O = O.replace(/{entityId}/gi, a.config.entityId || ""), O;
|
|
15078
|
-
}), gt =
|
|
15078
|
+
}), gt = T(() => !Object.keys(kt).includes(a.pluginType)), it = T(() => {
|
|
15079
15079
|
const $ = W.value;
|
|
15080
15080
|
if (P.value) {
|
|
15081
15081
|
for (const G in l) {
|
|
@@ -15102,7 +15102,7 @@ const QR = me({
|
|
|
15102
15102
|
} finally {
|
|
15103
15103
|
Y.isReadonly = !1;
|
|
15104
15104
|
}
|
|
15105
|
-
}, Ut =
|
|
15105
|
+
}, Ut = T(() => {
|
|
15106
15106
|
var ie;
|
|
15107
15107
|
const $ = P.value ? (ie = Ln[a.pluginType]) == null ? void 0 : ie.schemaEndpoint : a.pluginType, G = P.value ? Je.form[a.config.app].credentialSchema : Je.form[a.config.app].pluginSchema;
|
|
15108
15108
|
let O = `${a.config.apiBaseUrl}${G}`;
|
|
@@ -15122,7 +15122,7 @@ const QR = me({
|
|
|
15122
15122
|
R.value = pe("", re, {}), Se.value = !1;
|
|
15123
15123
|
else {
|
|
15124
15124
|
const he = re.fields.find((se) => se.config);
|
|
15125
|
-
|
|
15125
|
+
x.value = he ? he.config : re, re.supported_partials && (j.value = Object.keys(re.supported_partials).find((se) => [Ri.REDIS_CE, Ri.REDIS_EE].includes(se)), f.value = (G = re.supported_partials[j.value]) == null ? void 0 : G[0]), ce();
|
|
15126
15126
|
const Te = (O = re.fields.find((se) => se.protocols)) == null ? void 0 : O.protocols;
|
|
15127
15127
|
if (Te) {
|
|
15128
15128
|
const { default: se = [], elements: ye = {} } = Te;
|
|
@@ -15131,7 +15131,7 @@ const QR = me({
|
|
|
15131
15131
|
}) : s("plugins.form.fields.protocols.placeholder"), (ie = ye.one_of) != null && ie.length && (de.protocols.values = ye.one_of.map((_) => ({ label: _, value: _ })));
|
|
15132
15132
|
}
|
|
15133
15133
|
if (ae.value || h.value === on.Create) {
|
|
15134
|
-
const se = pe("config",
|
|
15134
|
+
const se = pe("config", x.value, de);
|
|
15135
15135
|
j.value && (se._supported_redis_partial_type = j.value), gt.value && (se._isCustomPlugin = !0), R.value = se;
|
|
15136
15136
|
}
|
|
15137
15137
|
}
|
|
@@ -15303,7 +15303,7 @@ const QR = me({
|
|
|
15303
15303
|
}
|
|
15304
15304
|
},
|
|
15305
15305
|
setup(e) {
|
|
15306
|
-
const t = e, n = X(), a =
|
|
15306
|
+
const t = e, n = X(), a = T(() => Zw(t.name)), i = () => {
|
|
15307
15307
|
const s = new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAMAAABKCk6nAAAAhFBMVEUAAADs+fnr8PTo7fLm7PDl6e7j6+7j6O3i6Ozh5+vp9PTm7PDj6e319fXn7PHj6O739/fn7PDi6e3////o7fLj6Ozt8fbj6u7r7vPi6ezo7fL////n7PHm6/Dl6+/q8PTs8vbu9Pjv9frw9vri6ezv9fnp7/Pt8vfk6u6cpar////e4ePLpSv+AAAAHnRSTlMAKIq93/T6/f7/W8z3GbL4Hr/9AZ39OPFo/Z4FzOeuk05oAAAFJklEQVR4Ae3ThZLjyhWA4SNdWJ9BMy/KA3n/twoXBafWWYb2QPi6Vd9XKGz4q5t4QPNZHDP2n8W/4uT0bJBUZHB2ehL/pPOLy6wQlxfn8bThaJxUajwaxuMm01lSsdl0Eo+YL5LKLebxoOUqqd5qGQ9YD7IHGKzjPptt9gTbzT19n2dv8Pyw8DZ7hG0U1tkrrOM7y0H2CoNlfGO+yp5hNY8vJovsHRaT+GyaPcQ03mkiYvjnNu4za94Ljtn+vd/Efc7+/sf4YJT32L286qjE1ctd3mMUH5yP89D1m46KvLnOQ+PzeO8iD+xuOipzs8sDF/HeZZZuX3dU5/Vtli7jnZMs7fSts/AuSycRcZqlm44q3WTpNCLOsnDdUanrLJxF29zF9zZ3QaXuNuWNJtosvOyo1ssstG0ThZ+Dah3Ea+LHIvmLjoq9KHL+2DYHyanYQc6jDYzACCxwZKGjallog177DwIjMAIjMAIjsMAIjMAIjMAIjMAILDACIzACIzACI7DACIzACIzACIzAAiMwAiMwAiMwAiOwwAiMwAiMwAiMwAIjMAIjMAIjMAILjMAIjMAIjMAIjMACIzACIzACIzACC4zACIzACIzACIzAAiMwAiMwAiMwAguMwAiMwAiMwAgsMAIjMAIjMAIjMAILjMAIjMAIjMAILDACIzACI/DP/6GjGENgBEZgBBYYgREYgREYgRGYJwMjMAIjMAI3TziCMQTmaAIjMAIjMAIjMAILjMAIjMAIjMAITBa6X9CveqD7hWWhDXpNYIERGIERGIERGIEFRmAERmAERuBKCdw2R68VGIERGIERWGAERmAERmAERmCBERiBERiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgRFYYARGYARGYARGYIERGIERGIERGIEFRmAERmAERuB+EPjt/ui9FRiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgWshcNscvVZgBEZgBEZggREYgREYgREYgQVGYARGYARGYARGYIERGIERGIERGIEFRmAERmAERmAERmCBERiBERiBERiBBUZgBEZgBEZgBBYYgREYgREYgftB4Lf7o/dWYARGYARGYIERGIERGIERGIEFRmAE5kj9GEfkb/EfwwkWGIERGIERGIERWGAERmAERmAERmAEFhiBERiBERiBEVhgBEZgBEZgBEZggREYgREYgREYgRFYYARGYARGYARGYIERGIERGIERGIERWGAERmAERmAERmCBERiBERiBERiBBUZgBEZgBEZgBEZggREYgREYgREYgQVGYARGYARGYAQWGIERGIERGIERGIEFRmAERmAERmAEFhiBERiBERiBEZh2r3iflPn2B4HvgordPRl4H1RsL7DAfSJw/JCFq45qXWXhh3Yfhb8F1TqIt2/3ZeGf9kGl9j/F997XPcvCdUelrrNwFhGnWbrpqNJNlk4j4iRLu9cdFXq9y9JJvHOZpVuFa+x7m6XLeO8iD+xuOipzs8sDF/He+TgPXb/pqMib6zw0Po8PRnmP3curjkpcvdzlPUYR0UTE8M9t3GfWvBfHjP17v4n7nP39j/HRNOmhaXw2WSS9s5jEF/NV0jOreXxjOUh6ZbCM76yTXllHYZv0yDZKm+dJbzzfxGHhbdIT203cZz1IemCwjgcsV0n1Vst40HyRVG4xj0dMprOkYrPpJB43HI2TSo1Hw3ja+cVlUqHLi/P4J52cng2SigzOTk/iPk08oPksjhn7z+J+/wBSUhUZLUGZBgAAAABJRU5ErkJggg==", import.meta.url).href;
|
|
15308
15308
|
n.value && n.value.src !== s && (n.value.src = s);
|
|
15309
15309
|
};
|
|
@@ -15407,10 +15407,10 @@ const QR = me({
|
|
|
15407
15407
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
15408
15408
|
setup(e, { emit: t }) {
|
|
15409
15409
|
var Ae, $;
|
|
15410
|
-
const n = Ne.usePluginMetaData(), a = t, i = e, { i18n: { t: s } } = Ne.useI18n(), r = Na(), { axiosInstance: o } = Ft((Ae = i.config) == null ? void 0 : Ae.axiosRequestConfig), { hasRecords: c, handleStateChange: p } = Nc(() =>
|
|
15410
|
+
const n = Ne.usePluginMetaData(), a = t, i = e, { i18n: { t: s } } = Ne.useI18n(), r = Na(), { axiosInstance: o } = Ft((Ae = i.config) == null ? void 0 : Ae.axiosRequestConfig), { hasRecords: c, handleStateChange: p } = Nc(() => x.value), u = T(() => c.value && i.config.app === "konnect"), d = T(() => !i.enableV2EmptyStates && i.config.app === "konnect"), g = T(() => !!i.config.entityId), y = T(() => {
|
|
15411
15411
|
var G;
|
|
15412
15412
|
return ((G = i.config) == null ? void 0 : G.entityType) === "consumers";
|
|
15413
|
-
}), B =
|
|
15413
|
+
}), B = T(() => {
|
|
15414
15414
|
var G;
|
|
15415
15415
|
return ((G = i.config) == null ? void 0 : G.entityType) === "consumer_groups";
|
|
15416
15416
|
}), h = i.config.app === "konnect" || Kc({
|
|
@@ -15419,16 +15419,16 @@ const QR = me({
|
|
|
15419
15419
|
supportedRange: {
|
|
15420
15420
|
enterprise: ["3.0"]
|
|
15421
15421
|
}
|
|
15422
|
-
}), E =
|
|
15422
|
+
}), E = T(() => i.config.app !== "kongManager" || !!i.config.disableSorting), R = {
|
|
15423
15423
|
// the Name column is non-hidable
|
|
15424
15424
|
name: { label: s("plugins.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 }
|
|
15425
15425
|
};
|
|
15426
15426
|
($ = i.config) != null && $.entityId || (R.appliedTo = { label: s("plugins.list.table_headers.applied_to"), sortable: !1 }), R.enabled = { label: s("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, h && (R.ordering = { label: s("plugins.list.table_headers.ordering"), sortable: !0 }), R.tags = { label: s("plugins.list.table_headers.tags"), sortable: !1 };
|
|
15427
|
-
const P = R, I =
|
|
15427
|
+
const P = R, I = T(() => {
|
|
15428
15428
|
var O, ie, re, he;
|
|
15429
15429
|
let G = i.config.entityType ? `${i.config.apiBaseUrl}${Je.list[i.config.app].forEntity}` : `${i.config.apiBaseUrl}${Je.list[i.config.app].all}`;
|
|
15430
15430
|
return i.config.app === "konnect" ? G = G.replace(/{controlPlaneId}/gi, ((O = i.config) == null ? void 0 : O.controlPlaneId) || "") : i.config.app === "kongManager" && (G = G.replace(/\/{workspace}/gi, (ie = i.config) != null && ie.workspace ? `/${i.config.workspace}` : "")), G.replace(/{entityType}/gi, ((re = i.config) == null ? void 0 : re.entityType) || "").replace(/{entityId}/gi, ((he = i.config) == null ? void 0 : he.entityId) || "");
|
|
15431
|
-
}),
|
|
15431
|
+
}), x = X(""), j = T(() => i.config.app === "konnect" || i.config.isExactMatch ? {
|
|
15432
15432
|
isExactMatch: !0,
|
|
15433
15433
|
fields: {
|
|
15434
15434
|
name: R.name,
|
|
@@ -15448,8 +15448,8 @@ const QR = me({
|
|
|
15448
15448
|
fetcher: f,
|
|
15449
15449
|
fetcherState: v,
|
|
15450
15450
|
fetcherCacheKey: b
|
|
15451
|
-
} = zc({ ...i.config, cacheIdentifier: i.cacheIdentifier }, I
|
|
15452
|
-
|
|
15451
|
+
} = zc(T(() => ({ ...i.config, cacheIdentifier: i.cacheIdentifier })), I), Y = () => {
|
|
15452
|
+
x.value = "";
|
|
15453
15453
|
}, D = () => {
|
|
15454
15454
|
b.value++;
|
|
15455
15455
|
}, L = X(null), te = (G) => {
|
|
@@ -15477,7 +15477,7 @@ const QR = me({
|
|
|
15477
15477
|
break;
|
|
15478
15478
|
}
|
|
15479
15479
|
ie && ((ye = i.config) != null && ye.getScopedEntityViewRoute) && r.push(i.config.getScopedEntityViewRoute(G, ie));
|
|
15480
|
-
}, de = X(!1), Z = X(null), ee =
|
|
15480
|
+
}, de = X(!1), Z = X(null), ee = T(() => {
|
|
15481
15481
|
const G = {
|
|
15482
15482
|
action: "disable",
|
|
15483
15483
|
id: "",
|
|
@@ -15595,7 +15595,7 @@ const QR = me({
|
|
|
15595
15595
|
"fetcher-cache-key": A(b),
|
|
15596
15596
|
"pagination-type": "offset",
|
|
15597
15597
|
"preferences-storage-key": "kong-ui-entities-plugins-list",
|
|
15598
|
-
query:
|
|
15598
|
+
query: x.value,
|
|
15599
15599
|
"table-headers": A(P),
|
|
15600
15600
|
title: e.title,
|
|
15601
15601
|
"title-tag": e.titleTag,
|
|
@@ -15606,8 +15606,8 @@ const QR = me({
|
|
|
15606
15606
|
}, $e({
|
|
15607
15607
|
"toolbar-filter": w(() => [
|
|
15608
15608
|
M(A(qc), {
|
|
15609
|
-
modelValue:
|
|
15610
|
-
"onUpdate:modelValue": O[0] || (O[0] = (_) =>
|
|
15609
|
+
modelValue: x.value,
|
|
15610
|
+
"onUpdate:modelValue": O[0] || (O[0] = (_) => x.value = _),
|
|
15611
15611
|
config: j.value
|
|
15612
15612
|
}, null, 8, ["modelValue", "config"])
|
|
15613
15613
|
]),
|
|
@@ -15836,7 +15836,7 @@ const QR = me({
|
|
|
15836
15836
|
]),
|
|
15837
15837
|
key: "0"
|
|
15838
15838
|
} : void 0,
|
|
15839
|
-
!
|
|
15839
|
+
!x.value && e.enableV2EmptyStates && e.config.app === "konnect" ? {
|
|
15840
15840
|
name: "empty-state",
|
|
15841
15841
|
fn: w(() => {
|
|
15842
15842
|
var _;
|
|
@@ -15899,7 +15899,7 @@ const QR = me({
|
|
|
15899
15899
|
]);
|
|
15900
15900
|
};
|
|
15901
15901
|
}
|
|
15902
|
-
}), lk = /* @__PURE__ */ qe(gM, [["__scopeId", "data-v-
|
|
15902
|
+
}), lk = /* @__PURE__ */ qe(gM, [["__scopeId", "data-v-149ffaa5"]]), mM = { class: "plugin-select-card-wrapper" }, fM = ["data-testid"], hM = { class: "plugin-card-header" }, vM = { class: "plugin-card-title" }, yM = {
|
|
15903
15903
|
key: 0,
|
|
15904
15904
|
class: "plugin-card-actions"
|
|
15905
15905
|
}, bM = ["data-testid", "title"], wM = {
|
|
@@ -15939,13 +15939,13 @@ const QR = me({
|
|
|
15939
15939
|
},
|
|
15940
15940
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
15941
15941
|
setup(e, { emit: t }) {
|
|
15942
|
-
const n = t, a = e, i = Na(), { i18n: { t: s } } = Ne.useI18n(), r =
|
|
15942
|
+
const n = t, a = e, i = Na(), { i18n: { t: s } } = Ne.useI18n(), r = T(() => a.config.app === "konnect" ? a.config.controlPlaneId : ""), o = T(() => !!(!a.plugin.available || a.plugin.disabledMessage)), c = T(() => !!(y.value && !g.value && a.navigateOnClick && r.value && (a.canDeleteCustomPlugin || a.canEditCustomPlugin))), p = () => {
|
|
15943
15943
|
i.push(a.config.getCreateRoute(a.plugin.id));
|
|
15944
15944
|
}, u = () => {
|
|
15945
15945
|
a.navigateOnClick ? p() : d();
|
|
15946
15946
|
}, d = () => {
|
|
15947
15947
|
n("plugin-clicked", a.plugin);
|
|
15948
|
-
}, g =
|
|
15948
|
+
}, g = T(() => a.plugin.id === "custom-plugin-create"), y = T(() => a.config.app === "konnect" && a.plugin.group === U.CUSTOM_PLUGINS), B = () => {
|
|
15949
15949
|
a.config.app === "konnect" && n("custom-plugin-delete");
|
|
15950
15950
|
}, h = (R, P) => {
|
|
15951
15951
|
const I = a.config;
|
|
@@ -15957,7 +15957,7 @@ const QR = me({
|
|
|
15957
15957
|
}
|
|
15958
15958
|
};
|
|
15959
15959
|
return (R, P) => {
|
|
15960
|
-
const I = F("KButton"),
|
|
15960
|
+
const I = F("KButton"), x = F("KDropdownItem"), j = F("KDropdownMenu"), f = F("KTooltip");
|
|
15961
15961
|
return m(), k("div", mM, [
|
|
15962
15962
|
M(f, {
|
|
15963
15963
|
text: e.plugin.disabledMessage
|
|
@@ -15996,7 +15996,7 @@ const QR = me({
|
|
|
15996
15996
|
})
|
|
15997
15997
|
]),
|
|
15998
15998
|
items: w(() => [
|
|
15999
|
-
e.canDeleteCustomPlugin ? (m(), S(
|
|
15999
|
+
e.canDeleteCustomPlugin ? (m(), S(x, {
|
|
16000
16000
|
key: 0,
|
|
16001
16001
|
"data-testid": "edit-plugin-schema",
|
|
16002
16002
|
onClick: P[0] || (P[0] = qt((v) => h(e.plugin.name, e.plugin.customPluginType), ["stop"]))
|
|
@@ -16006,7 +16006,7 @@ const QR = me({
|
|
|
16006
16006
|
]),
|
|
16007
16007
|
_: 1
|
|
16008
16008
|
})) : ne("", !0),
|
|
16009
|
-
e.canDeleteCustomPlugin ? (m(), S(
|
|
16009
|
+
e.canDeleteCustomPlugin ? (m(), S(x, {
|
|
16010
16010
|
key: 1,
|
|
16011
16011
|
danger: "",
|
|
16012
16012
|
"data-testid": "delete-plugin-schema",
|
|
@@ -16072,10 +16072,10 @@ const QR = me({
|
|
|
16072
16072
|
emits: ["closed", "proceed"],
|
|
16073
16073
|
setup(e, { emit: t }) {
|
|
16074
16074
|
var B;
|
|
16075
|
-
const n = e, a = t, { i18nT: i, i18n: { t: s } } = Ne.useI18n(), { getMessageFromError: r } = wa(), { axiosInstance: o } = Ft((B = n.config) == null ? void 0 : B.axiosRequestConfig), c =
|
|
16075
|
+
const n = e, a = t, { i18nT: i, i18n: { t: s } } = Ne.useI18n(), { getMessageFromError: r } = wa(), { axiosInstance: o } = Ft((B = n.config) == null ? void 0 : B.axiosRequestConfig), c = T(() => {
|
|
16076
16076
|
var h;
|
|
16077
16077
|
return d.value ? s("delete.plugin_schema_in_use_title") : s("delete.title", { name: ((h = n.plugin) == null ? void 0 : h.name) || s("delete.custom_plugin") });
|
|
16078
|
-
}), p = X(!1), u = X(""), d = X(!1), g =
|
|
16078
|
+
}), p = X(!1), u = X(""), d = X(!1), g = T(() => {
|
|
16079
16079
|
if (n.config.app === "konnect") {
|
|
16080
16080
|
const h = n.plugin.customPluginType === "streaming" ? Je.select[n.config.app].streamingCustomPluginItem : Je.select[n.config.app].schemaCustomPluginItem;
|
|
16081
16081
|
let E = `${n.config.apiBaseUrl}${h}`;
|
|
@@ -16088,8 +16088,8 @@ const QR = me({
|
|
|
16088
16088
|
try {
|
|
16089
16089
|
g.value && await o.delete(g.value), a("proceed");
|
|
16090
16090
|
} catch (I) {
|
|
16091
|
-
const { response:
|
|
16092
|
-
(
|
|
16091
|
+
const { response: x } = I;
|
|
16092
|
+
(x == null ? void 0 : x.status) === 400 && ((P = (R = x.data) == null ? void 0 : R.message) != null && P.includes("plugin schema is currently in use")) ? d.value = !0 : u.value = r(I);
|
|
16093
16093
|
} finally {
|
|
16094
16094
|
p.value = !1;
|
|
16095
16095
|
}
|
|
@@ -16201,7 +16201,7 @@ const QR = me({
|
|
|
16201
16201
|
setup(e, { emit: t }) {
|
|
16202
16202
|
const n = e, a = t, { i18n: { t: i } } = Ne.useI18n(), { getTallestPluginCardHeight: s, getToggleVisibility: r } = Ne.usePluginHelpers(), o = X(!0), c = (j) => {
|
|
16203
16203
|
a("plugin-clicked", j);
|
|
16204
|
-
}, p =
|
|
16204
|
+
}, p = T(() => {
|
|
16205
16205
|
if (n.config.app === "kongManager")
|
|
16206
16206
|
return [];
|
|
16207
16207
|
const j = JSON.parse(JSON.stringify(n.pluginList))[U.CUSTOM_PLUGINS] || [];
|
|
@@ -16221,17 +16221,17 @@ const QR = me({
|
|
|
16221
16221
|
}, y = (j) => {
|
|
16222
16222
|
var f;
|
|
16223
16223
|
j && (a("revalidate"), a("delete:success", ((f = d.value) == null ? void 0 : f.name) || "")), u.value = !1, d.value = null;
|
|
16224
|
-
}, B = X(fi), h = X(null), E = X(null), R =
|
|
16224
|
+
}, B = X(fi), h = X(null), E = X(null), R = T(() => o.value ? {
|
|
16225
16225
|
overflowY: "hidden",
|
|
16226
16226
|
maxHeight: `${B.value}px`
|
|
16227
16227
|
} : {}), P = X(!1), I = () => {
|
|
16228
|
-
B.value = Math.max(s(E.value), fi),
|
|
16229
|
-
},
|
|
16228
|
+
B.value = Math.max(s(E.value), fi), x();
|
|
16229
|
+
}, x = () => {
|
|
16230
16230
|
var j, f;
|
|
16231
16231
|
(j = E.value) != null && j.length && (P.value = r(h.value, (f = E.value) == null ? void 0 : f.length));
|
|
16232
16232
|
};
|
|
16233
16233
|
return Kn(async () => {
|
|
16234
|
-
await Zt(), B.value = Math.max(s(E.value), fi),
|
|
16234
|
+
await Zt(), B.value = Math.max(s(E.value), fi), x(), window == null || window.addEventListener("resize", I);
|
|
16235
16235
|
}), vo(() => {
|
|
16236
16236
|
window == null || window.removeEventListener("resize", I);
|
|
16237
16237
|
}), (j, f) => {
|
|
@@ -16338,7 +16338,7 @@ const QR = me({
|
|
|
16338
16338
|
}),
|
|
16339
16339
|
emits: /* @__PURE__ */ wi(["plugin-clicked"], ["update:modelValue"]),
|
|
16340
16340
|
setup(e, { emit: t }) {
|
|
16341
|
-
const n = Ei(e, "modelValue"), a = e, i = t, { i18n: { t: s } } = Ne.useI18n(), { getTallestPluginCardHeight: r, getToggleVisibility: o } = Ne.usePluginHelpers(), c = X(hi), p = X(null), u = X(null), d =
|
|
16341
|
+
const n = Ei(e, "modelValue"), a = e, i = t, { i18n: { t: s } } = Ne.useI18n(), { getTallestPluginCardHeight: r, getToggleVisibility: o } = Ne.usePluginHelpers(), c = X(hi), p = X(null), u = X(null), d = T(() => n.value ? {
|
|
16342
16342
|
overflowY: "hidden",
|
|
16343
16343
|
maxHeight: `${c.value}px`
|
|
16344
16344
|
} : {}), g = X(!1), y = () => {
|
|
@@ -16442,7 +16442,7 @@ const QR = me({
|
|
|
16442
16442
|
setup(e, { emit: t }) {
|
|
16443
16443
|
const n = e, a = t, { i18n: { t: i } } = Ne.useI18n(), s = X(!1), r = X(Jp), o = (p) => {
|
|
16444
16444
|
a("plugin-clicked", p);
|
|
16445
|
-
}, c =
|
|
16445
|
+
}, c = T(() => {
|
|
16446
16446
|
const p = JSON.parse(JSON.stringify(n.pluginList));
|
|
16447
16447
|
return n.config.app === "konnect" && delete p[U.CUSTOM_PLUGINS], p;
|
|
16448
16448
|
});
|
|
@@ -16578,11 +16578,11 @@ const QR = me({
|
|
|
16578
16578
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
16579
16579
|
setup(e, { emit: t }) {
|
|
16580
16580
|
var ce;
|
|
16581
|
-
const n = e, a = t, i = tu(), s = Na(), { i18n: { t: r } } = Ne.useI18n(), { pluginMetaData: o } = Ne.usePluginMetaData(), { getMessageFromError: c } = wa(), { sortAlpha: p, objectsAreEqual: u } = Va(), d = X(""), g = X(!0), y = X(!1), B = X(""), h = X([]), E = X([]), R = X({}), P = X([]), { axiosInstance: I } = Ft((ce = n.config) == null ? void 0 : ce.axiosRequestConfig),
|
|
16581
|
+
const n = e, a = t, i = tu(), s = Na(), { i18n: { t: r } } = Ne.useI18n(), { pluginMetaData: o } = Ne.usePluginMetaData(), { getMessageFromError: c } = wa(), { sortAlpha: p, objectsAreEqual: u } = Va(), d = X(""), g = X(!0), y = X(!1), B = X(""), h = X([]), E = X([]), R = X({}), P = X([]), { axiosInstance: I } = Ft((ce = n.config) == null ? void 0 : ce.axiosRequestConfig), x = T(() => R.value ? Object.entries(R.value).filter(([K]) => K !== U.CUSTOM_PLUGINS).reduce((K, [, H]) => {
|
|
16582
16582
|
for (const ae of H)
|
|
16583
16583
|
K[ae.id] = ae;
|
|
16584
16584
|
return K;
|
|
16585
|
-
}, {}) : {}), j =
|
|
16585
|
+
}, {}) : {}), j = T(() => {
|
|
16586
16586
|
var ae;
|
|
16587
16587
|
if (!R.value)
|
|
16588
16588
|
return {};
|
|
@@ -16592,10 +16592,10 @@ const QR = me({
|
|
|
16592
16592
|
le.length ? H[Ee] = le : delete H[Ee];
|
|
16593
16593
|
}
|
|
16594
16594
|
return H;
|
|
16595
|
-
}), f =
|
|
16596
|
-
const ae =
|
|
16595
|
+
}), f = T(() => n.highlightedPluginIds.reduce((K, H) => {
|
|
16596
|
+
const ae = x.value[H];
|
|
16597
16597
|
return ae && K.push(ae), K;
|
|
16598
|
-
}, [])), v =
|
|
16598
|
+
}, [])), v = T(() => Object.keys(j.value).length > 0), b = T(() => Object.keys(R.value).length > 0 && !v.value), Y = T(() => n.config.app === "konnect" ? [
|
|
16599
16599
|
{
|
|
16600
16600
|
hash: "#kong",
|
|
16601
16601
|
title: r("plugins.select.tabs.kong.title")
|
|
@@ -16605,7 +16605,7 @@ const QR = me({
|
|
|
16605
16605
|
title: r("plugins.select.tabs.custom.title"),
|
|
16606
16606
|
disabled: ["none", "disabled"].includes(n.customPluginSupport)
|
|
16607
16607
|
}
|
|
16608
|
-
] : []), D =
|
|
16608
|
+
] : []), D = T(() => {
|
|
16609
16609
|
var H;
|
|
16610
16610
|
let K = Y.value.length && ((i == null ? void 0 : i.hash) || ((H = Y.value[0]) == null ? void 0 : H.hash)) || "";
|
|
16611
16611
|
return K === "#custom" && ["none", "disabled"].includes(n.customPluginSupport) && (K = "#kong"), K;
|
|
@@ -16628,17 +16628,17 @@ const QR = me({
|
|
|
16628
16628
|
const le = Ee.group || r("plugins.select.misc_plugins");
|
|
16629
16629
|
let W = K[le];
|
|
16630
16630
|
return W || (W = []), W.push(Ee), W.sort(p("name")), K[le] = W, K;
|
|
16631
|
-
}, {}), te =
|
|
16631
|
+
}, {}), te = T(() => {
|
|
16632
16632
|
var H;
|
|
16633
16633
|
let K = `${n.config.apiBaseUrl}${Je.select[n.config.app].availablePlugins}`;
|
|
16634
16634
|
return n.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (K = ((H = n.config.gatewayInfo) == null ? void 0 : H.edition) === "community" ? `${n.config.apiBaseUrl}${Je.select[n.config.app].availablePluginsForOss}` : K.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), K;
|
|
16635
|
-
}), J =
|
|
16635
|
+
}), J = T(() => {
|
|
16636
16636
|
if (n.config.app === "konnect" && n.customPluginSupport === "streaming") {
|
|
16637
16637
|
let K = `${n.config.apiBaseUrl}${Je.select[n.config.app].streamingCustomPlugins}`;
|
|
16638
16638
|
return K = K.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || ""), K;
|
|
16639
16639
|
}
|
|
16640
16640
|
return null;
|
|
16641
|
-
}), q =
|
|
16641
|
+
}), q = T(() => {
|
|
16642
16642
|
if (n.config.entityType && n.config.entityId) {
|
|
16643
16643
|
let K = `${n.config.apiBaseUrl}${Je.list[n.config.app].forEntity}`;
|
|
16644
16644
|
return n.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), K.replace(/{entityType}/gi, n.config.entityType || "").replace(/{entityId}/gi, n.config.entityId || "");
|
|
@@ -16846,15 +16846,15 @@ const QR = me({
|
|
|
16846
16846
|
emits: ["loading", "fetch:error", "error:fetch-schema", "fetch:success", "navigation-click"],
|
|
16847
16847
|
setup(e, { emit: t }) {
|
|
16848
16848
|
var P;
|
|
16849
|
-
const n = t, a = e, { i18n: { t: i } } = Ne.useI18n(), s = Ne.usePluginMetaData(), { setFieldType: r } = Ne.usePluginHelpers(), { getPropValue: o } = Va(), c =
|
|
16849
|
+
const n = t, a = e, { i18n: { t: i } } = Ne.useI18n(), s = Ne.usePluginMetaData(), { setFieldType: r } = Ne.usePluginHelpers(), { getPropValue: o } = Va(), c = T(
|
|
16850
16850
|
() => {
|
|
16851
16851
|
var I;
|
|
16852
16852
|
return (I = Je.item[a.config.app]) == null ? void 0 : I[a.scopedEntityType ? "forEntity" : "all"].replace(/{entityType}/gi, a.scopedEntityType).replace(/{entityId}/gi, a.scopedEntityId).concat(a.expandPartial ? "?expand_partials=true" : "");
|
|
16853
16853
|
}
|
|
16854
|
-
), p =
|
|
16854
|
+
), p = T(() => {
|
|
16855
16855
|
var j, f;
|
|
16856
|
-
const I = {},
|
|
16857
|
-
for (let v = 0; v <
|
|
16856
|
+
const I = {}, x = ((j = h.value) == null ? void 0 : j.fields) || [];
|
|
16857
|
+
for (let v = 0; v < x.length; v++) {
|
|
16858
16858
|
const b = h.value.fields[v], Y = (f = Object.keys(b)) == null ? void 0 : f[0];
|
|
16859
16859
|
r(I, Y, b[Y]);
|
|
16860
16860
|
}
|
|
@@ -16890,31 +16890,31 @@ const QR = me({
|
|
|
16890
16890
|
order: 7
|
|
16891
16891
|
}
|
|
16892
16892
|
};
|
|
16893
|
-
}), u =
|
|
16894
|
-
var
|
|
16895
|
-
if (!((
|
|
16893
|
+
}), u = T(() => {
|
|
16894
|
+
var x, j, f;
|
|
16895
|
+
if (!((x = h.value) != null && x.fields))
|
|
16896
16896
|
return [];
|
|
16897
16897
|
const I = (j = h.value.fields) == null ? void 0 : j.find((v) => {
|
|
16898
16898
|
var Y;
|
|
16899
16899
|
return ((Y = Object.keys(v)) == null ? void 0 : Y[0]) === vi;
|
|
16900
16900
|
});
|
|
16901
16901
|
return ((f = I == null ? void 0 : I[vi]) == null ? void 0 : f.fields) || [];
|
|
16902
|
-
}), d =
|
|
16903
|
-
var
|
|
16902
|
+
}), d = T(() => {
|
|
16903
|
+
var x, j;
|
|
16904
16904
|
const I = {};
|
|
16905
16905
|
if (!u.value)
|
|
16906
16906
|
return I;
|
|
16907
|
-
for (let f = 0; f < ((
|
|
16907
|
+
for (let f = 0; f < ((x = u.value) == null ? void 0 : x.length); f++) {
|
|
16908
16908
|
const v = u.value[f], b = (j = Object.keys(v)) == null ? void 0 : j[0], Y = v[b];
|
|
16909
16909
|
Y.required && (I[b] = {
|
|
16910
16910
|
order: 1
|
|
16911
16911
|
}), r(I, b, Y);
|
|
16912
16912
|
}
|
|
16913
16913
|
return I;
|
|
16914
|
-
}), { getMessageFromError: g } = wa(), { axiosInstance: y } = Ft((P = a.config) == null ? void 0 : P.axiosRequestConfig), B =
|
|
16915
|
-
var
|
|
16914
|
+
}), { getMessageFromError: g } = wa(), { axiosInstance: y } = Ft((P = a.config) == null ? void 0 : P.axiosRequestConfig), B = T(() => {
|
|
16915
|
+
var x, j;
|
|
16916
16916
|
let I = `${a.config.apiBaseUrl}${Je.form[a.config.app].pluginSchema}`;
|
|
16917
|
-
return a.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((
|
|
16917
|
+
return a.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((x = a.config) == null ? void 0 : x.controlPlaneId) || "") : a.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (j = a.config) != null && j.workspace ? `/${a.config.workspace}` : "")), I = I.replace(/{plugin}/gi, a.config.pluginType), I;
|
|
16918
16918
|
}), h = X({});
|
|
16919
16919
|
$c(h);
|
|
16920
16920
|
const E = X(!1), R = X("");
|
|
@@ -16928,7 +16928,7 @@ const QR = me({
|
|
|
16928
16928
|
} finally {
|
|
16929
16929
|
E.value = !1;
|
|
16930
16930
|
}
|
|
16931
|
-
}), (I,
|
|
16931
|
+
}), (I, x) => {
|
|
16932
16932
|
const j = F("KSkeleton"), f = F("KEmptyState"), v = F("KCopy");
|
|
16933
16933
|
return m(), k("div", zM, [
|
|
16934
16934
|
E.value ? (m(), S(j, {
|
|
@@ -16955,9 +16955,9 @@ const QR = me({
|
|
|
16955
16955
|
"hide-title": e.hideTitle,
|
|
16956
16956
|
"plugin-config-key": vi,
|
|
16957
16957
|
"plugin-config-schema": d.value,
|
|
16958
|
-
"onFetch:error":
|
|
16959
|
-
"onFetch:success":
|
|
16960
|
-
onLoading:
|
|
16958
|
+
"onFetch:error": x[0] || (x[0] = (b) => I.$emit("fetch:error", b)),
|
|
16959
|
+
"onFetch:success": x[1] || (x[1] = (b) => I.$emit("fetch:success", b)),
|
|
16960
|
+
onLoading: x[2] || (x[2] = (b) => I.$emit("loading", b))
|
|
16961
16961
|
}, {
|
|
16962
16962
|
name: w((b) => [
|
|
16963
16963
|
C("div", QM, [
|