@kong-ui-public/entities-redis-configurations 1.8.14 → 1.8.15
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,40 +1,40 @@
|
|
|
1
|
-
import { computed as z, reactive as mn, ref as x, watch as Ce, defineComponent as Y, resolveComponent as $, createElementBlock as J, openBlock as
|
|
1
|
+
import { computed as z, reactive as mn, ref as x, watch as Ce, defineComponent as Y, resolveComponent as $, createElementBlock as J, openBlock as O, createVNode as g, withCtx as S, renderSlot as gi, unref as i, mergeModels as Et, useModel as Ct, createElementVNode as K, createTextVNode as le, toDisplayString as B, Fragment as fe, renderList as tt, createBlock as N, createCommentVNode as Z, getCurrentInstance as bi, onMounted as yi, onUnmounted as vi, isReadonly as hi, toRefs as wi, onBeforeMount as _n, isRef as Ti, createSlots as gn, withModifiers as Si, Teleport as Ei, inject as bn, useId as Ci, nextTick as jt, mergeProps as ki } from "vue";
|
|
2
2
|
import "@kong-ui-public/entities-shared/dist/style.css";
|
|
3
3
|
import "@kong-ui-public/entities-vaults/dist/style.css";
|
|
4
|
-
import { useAxios as kt, useErrors as yn, EntityBaseFormType as dt, EntityBaseForm as
|
|
4
|
+
import { useAxios as kt, useErrors as yn, EntityBaseFormType as dt, EntityBaseForm as Oi, SupportedEntityType as vn, EntityFormSection as ue, EntityFilter as hn, useDeleteUrlBuilder as Ii, useFetcher as Ri, FetcherStatus as xi, EntityBaseTable as Ai, PermissionsWrapper as Ke, TableTags as Pi, EntityDeleteModal as $i, EntityTypes as Vi, ConfigurationSchemaSection as V, ConfigurationSchemaType as M, EntityBaseConfigCard as Mi, useDebouncedFilter as ji } from "@kong-ui-public/entities-shared";
|
|
5
5
|
import { VaultSecretPickerProvider as he, VaultSecretPicker as wn } from "@kong-ui-public/entities-vaults";
|
|
6
6
|
import { useRouter as Tn } from "vue-router";
|
|
7
|
-
import { TrashIcon as
|
|
7
|
+
import { TrashIcon as Di, AddCircleIcon as Sn, AddIcon as yt, RefreshIcon as Li, ClipboardIcon as Ui, DeployIcon as Ni } from "@kong/icons";
|
|
8
8
|
import { createI18n as Bi, i18nTComponent as Fi } from "@kong-ui-public/i18n";
|
|
9
9
|
import { PluginIcon as En } from "@kong-ui-public/entities-plugins-icon";
|
|
10
10
|
import { FORMS_CONFIG as Cn } from "@kong-ui-public/forms";
|
|
11
|
-
var w = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(w || {}), Q = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Q || {}), q = /* @__PURE__ */ ((e) => (e.AWS = "aws", e.GCP = "gcp", e.AZURE = "azure", e))(q || {}), kn = typeof global == "object" && global && global.Object === Object && global, zi = typeof self == "object" && self && self.Object === Object && self, se = kn || zi || Function("return this")(), ee = se.Symbol,
|
|
11
|
+
var w = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(w || {}), Q = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Q || {}), q = /* @__PURE__ */ ((e) => (e.AWS = "aws", e.GCP = "gcp", e.AZURE = "azure", e))(q || {}), kn = typeof global == "object" && global && global.Object === Object && global, zi = typeof self == "object" && self && self.Object === Object && self, se = kn || zi || Function("return this")(), ee = se.Symbol, On = Object.prototype, Ki = On.hasOwnProperty, Hi = On.toString, je = ee ? ee.toStringTag : void 0;
|
|
12
12
|
function Wi(e) {
|
|
13
|
-
var t = Ki.call(e,
|
|
13
|
+
var t = Ki.call(e, je), n = e[je];
|
|
14
14
|
try {
|
|
15
|
-
e[
|
|
15
|
+
e[je] = void 0;
|
|
16
16
|
var o = !0;
|
|
17
17
|
} catch {
|
|
18
18
|
}
|
|
19
19
|
var r = Hi.call(e);
|
|
20
|
-
return o && (t ? e[
|
|
20
|
+
return o && (t ? e[je] = n : delete e[je]), r;
|
|
21
21
|
}
|
|
22
22
|
var qi = Object.prototype, Gi = qi.toString;
|
|
23
23
|
function Ji(e) {
|
|
24
24
|
return Gi.call(e);
|
|
25
25
|
}
|
|
26
|
-
var Zi = "[object Null]", Qi = "[object Undefined]",
|
|
27
|
-
function
|
|
28
|
-
return e == null ? e === void 0 ? Qi : Zi :
|
|
26
|
+
var Zi = "[object Null]", Qi = "[object Undefined]", Dt = ee ? ee.toStringTag : void 0;
|
|
27
|
+
function Oe(e) {
|
|
28
|
+
return e == null ? e === void 0 ? Qi : Zi : Dt && Dt in Object(e) ? Wi(e) : Ji(e);
|
|
29
29
|
}
|
|
30
30
|
function me(e) {
|
|
31
31
|
return e != null && typeof e == "object";
|
|
32
32
|
}
|
|
33
33
|
var Yi = "[object Symbol]";
|
|
34
|
-
function
|
|
35
|
-
return typeof e == "symbol" || me(e) &&
|
|
34
|
+
function Ot(e) {
|
|
35
|
+
return typeof e == "symbol" || me(e) && Oe(e) == Yi;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function In(e, t) {
|
|
38
38
|
for (var n = -1, o = e == null ? 0 : e.length, r = Array(o); ++n < o; )
|
|
39
39
|
r[n] = t(e[n], n, e);
|
|
40
40
|
return r;
|
|
@@ -44,8 +44,8 @@ function Rn(e) {
|
|
|
44
44
|
if (typeof e == "string")
|
|
45
45
|
return e;
|
|
46
46
|
if (_e(e))
|
|
47
|
-
return
|
|
48
|
-
if (
|
|
47
|
+
return In(e, Rn) + "";
|
|
48
|
+
if (Ot(e))
|
|
49
49
|
return Ut ? Ut.call(e) : "";
|
|
50
50
|
var t = e + "";
|
|
51
51
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -61,7 +61,7 @@ var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object Gener
|
|
|
61
61
|
function xn(e) {
|
|
62
62
|
if (!nt(e))
|
|
63
63
|
return !1;
|
|
64
|
-
var t =
|
|
64
|
+
var t = Oe(e);
|
|
65
65
|
return t == tr || t == nr || t == er || t == ir;
|
|
66
66
|
}
|
|
67
67
|
var ut = se["__core-js_shared__"], Nt = function() {
|
|
@@ -72,7 +72,7 @@ function rr(e) {
|
|
|
72
72
|
return !!Nt && Nt in e;
|
|
73
73
|
}
|
|
74
74
|
var or = Function.prototype, ar = or.toString;
|
|
75
|
-
function
|
|
75
|
+
function Ie(e) {
|
|
76
76
|
if (e != null) {
|
|
77
77
|
try {
|
|
78
78
|
return ar.call(e);
|
|
@@ -92,7 +92,7 @@ function mr(e) {
|
|
|
92
92
|
if (!nt(e) || rr(e))
|
|
93
93
|
return !1;
|
|
94
94
|
var t = xn(e) ? pr : sr;
|
|
95
|
-
return t.test(
|
|
95
|
+
return t.test(Ie(e));
|
|
96
96
|
}
|
|
97
97
|
function _r(e, t) {
|
|
98
98
|
return e == null ? void 0 : e[t];
|
|
@@ -153,7 +153,7 @@ function Er(e, t) {
|
|
|
153
153
|
return e;
|
|
154
154
|
}
|
|
155
155
|
var Cr = 9007199254740991, kr = /^(?:0|[1-9]\d*)$/;
|
|
156
|
-
function
|
|
156
|
+
function Or(e, t) {
|
|
157
157
|
var n = typeof e;
|
|
158
158
|
return t = t ?? Cr, !!t && (n == "number" || n != "symbol" && kr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
159
159
|
}
|
|
@@ -165,13 +165,13 @@ function An(e, t, n) {
|
|
|
165
165
|
writable: !0
|
|
166
166
|
}) : e[t] = n;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function It(e, t) {
|
|
169
169
|
return e === t || e !== e && t !== t;
|
|
170
170
|
}
|
|
171
|
-
var
|
|
171
|
+
var Ir = Object.prototype, Rr = Ir.hasOwnProperty;
|
|
172
172
|
function Pn(e, t, n) {
|
|
173
173
|
var o = e[t];
|
|
174
|
-
(!(Rr.call(e, t) &&
|
|
174
|
+
(!(Rr.call(e, t) && It(o, n)) || n === void 0 && !(t in e)) && An(e, t, n);
|
|
175
175
|
}
|
|
176
176
|
function xr(e, t, n, o) {
|
|
177
177
|
var r = !n;
|
|
@@ -212,12 +212,12 @@ function Vr(e, t) {
|
|
|
212
212
|
}
|
|
213
213
|
var Mr = "[object Arguments]";
|
|
214
214
|
function Ft(e) {
|
|
215
|
-
return me(e) &&
|
|
215
|
+
return me(e) && Oe(e) == Mr;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var jn = Object.prototype, jr = jn.hasOwnProperty, Dr = jn.propertyIsEnumerable, Dn = Ft(/* @__PURE__ */ function() {
|
|
218
218
|
return arguments;
|
|
219
219
|
}()) ? Ft : function(e) {
|
|
220
|
-
return me(e) &&
|
|
220
|
+
return me(e) && jr.call(e, "callee") && !Dr.call(e, "callee");
|
|
221
221
|
};
|
|
222
222
|
function Lr() {
|
|
223
223
|
return !1;
|
|
@@ -226,28 +226,28 @@ var Ln = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
226
226
|
U[no] = U[io] = U[ro] = U[oo] = U[ao] = U[lo] = U[so] = U[uo] = U[co] = !0;
|
|
227
227
|
U[Br] = U[Fr] = U[eo] = U[zr] = U[to] = U[Kr] = U[Hr] = U[Wr] = U[qr] = U[Gr] = U[Jr] = U[Zr] = U[Qr] = U[Yr] = U[Xr] = !1;
|
|
228
228
|
function fo(e) {
|
|
229
|
-
return me(e) && $n(e.length) && !!U[
|
|
229
|
+
return me(e) && $n(e.length) && !!U[Oe(e)];
|
|
230
230
|
}
|
|
231
231
|
function Rt(e) {
|
|
232
232
|
return function(t) {
|
|
233
233
|
return e(t);
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
var Un = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
236
|
+
var Un = typeof exports == "object" && exports && !exports.nodeType && exports, De = Un && typeof module == "object" && module && !module.nodeType && module, po = De && De.exports === Un, ct = po && kn.process, Ve = function() {
|
|
237
237
|
try {
|
|
238
|
-
var e =
|
|
238
|
+
var e = De && De.require && De.require("util").types;
|
|
239
239
|
return e || ct && ct.binding && ct.binding("util");
|
|
240
240
|
} catch {
|
|
241
241
|
}
|
|
242
242
|
}(), Ht = Ve && Ve.isTypedArray, Nn = Ht ? Rt(Ht) : fo, mo = Object.prototype, _o = mo.hasOwnProperty;
|
|
243
243
|
function Bn(e, t) {
|
|
244
|
-
var n = _e(e), o = !n &&
|
|
244
|
+
var n = _e(e), o = !n && Dn(e), r = !n && !o && Ze(e), a = !n && !o && !r && Nn(e), c = n || o || r || a, p = c ? Vr(e.length, String) : [], l = p.length;
|
|
245
245
|
for (var u in e)
|
|
246
246
|
(t || _o.call(e, u)) && !(c && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
247
247
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
248
248
|
r && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
249
249
|
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
250
|
-
|
|
250
|
+
Or(u, l))) && p.push(u);
|
|
251
251
|
return p;
|
|
252
252
|
}
|
|
253
253
|
function Fn(e, t) {
|
|
@@ -286,12 +286,12 @@ function Eo(e) {
|
|
|
286
286
|
function Co(e) {
|
|
287
287
|
return Vn(e) ? Bn(e, !0) : Eo(e);
|
|
288
288
|
}
|
|
289
|
-
var ko = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
290
|
-
function
|
|
289
|
+
var ko = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Oo = /^\w*$/;
|
|
290
|
+
function Io(e, t) {
|
|
291
291
|
if (_e(e))
|
|
292
292
|
return !1;
|
|
293
293
|
var n = typeof e;
|
|
294
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
294
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Ot(e) ? !0 : Oo.test(e) || !ko.test(e) || t != null && e in Object(t);
|
|
295
295
|
}
|
|
296
296
|
var Le = Re(Object, "create");
|
|
297
297
|
function Ro() {
|
|
@@ -310,10 +310,10 @@ function Vo(e) {
|
|
|
310
310
|
}
|
|
311
311
|
return $o.call(t, e) ? t[e] : void 0;
|
|
312
312
|
}
|
|
313
|
-
var Mo = Object.prototype,
|
|
314
|
-
function
|
|
313
|
+
var Mo = Object.prototype, jo = Mo.hasOwnProperty;
|
|
314
|
+
function Do(e) {
|
|
315
315
|
var t = this.__data__;
|
|
316
|
-
return Le ? t[e] !== void 0 :
|
|
316
|
+
return Le ? t[e] !== void 0 : jo.call(t, e);
|
|
317
317
|
}
|
|
318
318
|
var Lo = "__lodash_hash_undefined__";
|
|
319
319
|
function Uo(e, t) {
|
|
@@ -330,14 +330,14 @@ function ke(e) {
|
|
|
330
330
|
ke.prototype.clear = Ro;
|
|
331
331
|
ke.prototype.delete = xo;
|
|
332
332
|
ke.prototype.get = Vo;
|
|
333
|
-
ke.prototype.has =
|
|
333
|
+
ke.prototype.has = Do;
|
|
334
334
|
ke.prototype.set = Uo;
|
|
335
335
|
function No() {
|
|
336
336
|
this.__data__ = [], this.size = 0;
|
|
337
337
|
}
|
|
338
338
|
function it(e, t) {
|
|
339
339
|
for (var n = e.length; n--; )
|
|
340
|
-
if (
|
|
340
|
+
if (It(e[n][0], t))
|
|
341
341
|
return n;
|
|
342
342
|
return -1;
|
|
343
343
|
}
|
|
@@ -445,10 +445,10 @@ function oa(e) {
|
|
|
445
445
|
return e == null ? "" : Rn(e);
|
|
446
446
|
}
|
|
447
447
|
function At(e, t) {
|
|
448
|
-
return _e(e) ? e :
|
|
448
|
+
return _e(e) ? e : Io(e, t) ? [e] : ra(oa(e));
|
|
449
449
|
}
|
|
450
450
|
function zn(e) {
|
|
451
|
-
if (typeof e == "string" ||
|
|
451
|
+
if (typeof e == "string" || Ot(e))
|
|
452
452
|
return e;
|
|
453
453
|
var t = e + "";
|
|
454
454
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -466,7 +466,7 @@ function Pt(e, t) {
|
|
|
466
466
|
}
|
|
467
467
|
var Wt = ee ? ee.isConcatSpreadable : void 0;
|
|
468
468
|
function la(e) {
|
|
469
|
-
return _e(e) ||
|
|
469
|
+
return _e(e) || Dn(e) || !!(Wt && e && e[Wt]);
|
|
470
470
|
}
|
|
471
471
|
function sa(e, t, n, o, r) {
|
|
472
472
|
var a = -1, c = e.length;
|
|
@@ -485,7 +485,7 @@ function ua(e) {
|
|
|
485
485
|
}
|
|
486
486
|
var Kn = Fn(Object.getPrototypeOf, Object), ca = "[object Object]", fa = Function.prototype, pa = Object.prototype, Hn = fa.toString, ma = pa.hasOwnProperty, _a = Hn.call(Object);
|
|
487
487
|
function ga(e) {
|
|
488
|
-
if (!me(e) ||
|
|
488
|
+
if (!me(e) || Oe(e) != ca)
|
|
489
489
|
return !1;
|
|
490
490
|
var t = Kn(e);
|
|
491
491
|
if (t === null)
|
|
@@ -548,9 +548,9 @@ function ka(e, t) {
|
|
|
548
548
|
function qn() {
|
|
549
549
|
return [];
|
|
550
550
|
}
|
|
551
|
-
var
|
|
551
|
+
var Oa = Object.prototype, Ia = Oa.propertyIsEnumerable, Jt = Object.getOwnPropertySymbols, Gn = Jt ? function(e) {
|
|
552
552
|
return e == null ? [] : (e = Object(e), ka(Jt(e), function(t) {
|
|
553
|
-
return
|
|
553
|
+
return Ia.call(e, t);
|
|
554
554
|
}));
|
|
555
555
|
} : qn, Ra = Object.getOwnPropertySymbols, xa = Ra ? function(e) {
|
|
556
556
|
for (var t = []; e; )
|
|
@@ -567,9 +567,9 @@ function Zt(e) {
|
|
|
567
567
|
function Zn(e) {
|
|
568
568
|
return Jn(e, Co, xa);
|
|
569
569
|
}
|
|
570
|
-
var ht = Re(se, "DataView"), wt = Re(se, "Promise"), Tt = Re(se, "Set"), Qt = "[object Map]", Aa = "[object Object]", Yt = "[object Promise]", Xt = "[object Set]", en = "[object WeakMap]", tn = "[object DataView]", Pa =
|
|
570
|
+
var ht = Re(se, "DataView"), wt = Re(se, "Promise"), Tt = Re(se, "Set"), Qt = "[object Map]", Aa = "[object Object]", Yt = "[object Promise]", Xt = "[object Set]", en = "[object WeakMap]", tn = "[object DataView]", Pa = Ie(ht), $a = Ie(Ue), Va = Ie(wt), Ma = Ie(Tt), ja = Ie(vt), ae = Oe;
|
|
571
571
|
(ht && ae(new ht(new ArrayBuffer(1))) != tn || Ue && ae(new Ue()) != Qt || wt && ae(wt.resolve()) != Yt || Tt && ae(new Tt()) != Xt || vt && ae(new vt()) != en) && (ae = function(e) {
|
|
572
|
-
var t =
|
|
572
|
+
var t = Oe(e), n = t == Aa ? e.constructor : void 0, o = n ? Ie(n) : "";
|
|
573
573
|
if (o)
|
|
574
574
|
switch (o) {
|
|
575
575
|
case Pa:
|
|
@@ -580,12 +580,12 @@ var ht = Re(se, "DataView"), wt = Re(se, "Promise"), Tt = Re(se, "Set"), Qt = "[
|
|
|
580
580
|
return Yt;
|
|
581
581
|
case Ma:
|
|
582
582
|
return Xt;
|
|
583
|
-
case
|
|
583
|
+
case ja:
|
|
584
584
|
return en;
|
|
585
585
|
}
|
|
586
586
|
return t;
|
|
587
587
|
});
|
|
588
|
-
var
|
|
588
|
+
var Da = Object.prototype, La = Da.hasOwnProperty;
|
|
589
589
|
function Ua(e) {
|
|
590
590
|
var t = e.length, n = new e.constructor(t);
|
|
591
591
|
return t && typeof e[0] == "string" && La.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
@@ -654,9 +654,9 @@ var on = Ve && Ve.isMap, pl = on ? Rt(on) : fl, ml = "[object Set]";
|
|
|
654
654
|
function _l(e) {
|
|
655
655
|
return me(e) && ae(e) == ml;
|
|
656
656
|
}
|
|
657
|
-
var an = Ve && Ve.isSet, gl = an ? Rt(an) : _l, Qn = "[object Arguments]", bl = "[object Array]", yl = "[object Boolean]", vl = "[object Date]", hl = "[object Error]", Yn = "[object Function]", wl = "[object GeneratorFunction]", Tl = "[object Map]", Sl = "[object Number]", Xn = "[object Object]", El = "[object RegExp]", Cl = "[object Set]", kl = "[object String]",
|
|
658
|
-
|
|
659
|
-
|
|
657
|
+
var an = Ve && Ve.isSet, gl = an ? Rt(an) : _l, Qn = "[object Arguments]", bl = "[object Array]", yl = "[object Boolean]", vl = "[object Date]", hl = "[object Error]", Yn = "[object Function]", wl = "[object GeneratorFunction]", Tl = "[object Map]", Sl = "[object Number]", Xn = "[object Object]", El = "[object RegExp]", Cl = "[object Set]", kl = "[object String]", Ol = "[object Symbol]", Il = "[object WeakMap]", Rl = "[object ArrayBuffer]", xl = "[object DataView]", Al = "[object Float32Array]", Pl = "[object Float64Array]", $l = "[object Int8Array]", Vl = "[object Int16Array]", Ml = "[object Int32Array]", jl = "[object Uint8Array]", Dl = "[object Uint8ClampedArray]", Ll = "[object Uint16Array]", Ul = "[object Uint32Array]", j = {};
|
|
658
|
+
j[Qn] = j[bl] = j[Rl] = j[xl] = j[yl] = j[vl] = j[Al] = j[Pl] = j[$l] = j[Vl] = j[Ml] = j[Tl] = j[Sl] = j[Xn] = j[El] = j[Cl] = j[kl] = j[Ol] = j[jl] = j[Dl] = j[Ll] = j[Ul] = !0;
|
|
659
|
+
j[hl] = j[Yn] = j[Il] = !1;
|
|
660
660
|
function Ge(e, t, n, o, r, a) {
|
|
661
661
|
var c;
|
|
662
662
|
if (n && (c = r ? n(e, o, r, a) : n(e)), c !== void 0)
|
|
@@ -673,7 +673,7 @@ function Ge(e, t, n, o, r, a) {
|
|
|
673
673
|
if (l == Xn || l == Qn || u && !r)
|
|
674
674
|
c = {};
|
|
675
675
|
else {
|
|
676
|
-
if (!
|
|
676
|
+
if (!j[l])
|
|
677
677
|
return r ? e : {};
|
|
678
678
|
c = ul(e, l);
|
|
679
679
|
}
|
|
@@ -773,7 +773,7 @@ function ss(e, t, n, o, r, a, c) {
|
|
|
773
773
|
case Ql:
|
|
774
774
|
case Yl:
|
|
775
775
|
case ts:
|
|
776
|
-
return
|
|
776
|
+
return It(+e, +t);
|
|
777
777
|
case Xl:
|
|
778
778
|
return e.name == t.name && e.message == t.message;
|
|
779
779
|
case ns:
|
|
@@ -824,8 +824,8 @@ function fs(e, t, n, o, r, a) {
|
|
|
824
824
|
s || (s = m == "constructor");
|
|
825
825
|
}
|
|
826
826
|
if (E && !s) {
|
|
827
|
-
var
|
|
828
|
-
|
|
827
|
+
var I = e.constructor, P = t.constructor;
|
|
828
|
+
I != P && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof P == "function" && P instanceof P) && (E = !1);
|
|
829
829
|
}
|
|
830
830
|
return a.delete(e), a.delete(t), E;
|
|
831
831
|
}
|
|
@@ -863,50 +863,68 @@ function bs(e, t) {
|
|
|
863
863
|
function ys(e, t) {
|
|
864
864
|
return ti(e, t);
|
|
865
865
|
}
|
|
866
|
-
|
|
867
|
-
|
|
866
|
+
var vs = Object.prototype, hs = vs.hasOwnProperty;
|
|
867
|
+
function ws(e, t) {
|
|
868
|
+
t = At(t, e);
|
|
869
|
+
var n = -1, o = t.length;
|
|
870
|
+
if (!o)
|
|
871
|
+
return !0;
|
|
872
|
+
for (var r = e == null || typeof e != "object" && typeof e != "function"; ++n < o; ) {
|
|
873
|
+
var a = t[n];
|
|
874
|
+
if (typeof a == "string") {
|
|
875
|
+
if (a === "__proto__" && !hs.call(e, "__proto__"))
|
|
876
|
+
return !1;
|
|
877
|
+
if (a === "constructor" && n + 1 < o && typeof t[n + 1] == "string" && t[n + 1] === "prototype") {
|
|
878
|
+
if (r && n === 0)
|
|
879
|
+
continue;
|
|
880
|
+
return !1;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
var c = bs(e, t);
|
|
885
|
+
return c == null || delete c[zn(gs(t))];
|
|
868
886
|
}
|
|
869
|
-
function
|
|
887
|
+
function Ts(e) {
|
|
870
888
|
return ga(e) ? void 0 : e;
|
|
871
889
|
}
|
|
872
|
-
var
|
|
890
|
+
var Ss = 1, Es = 2, Cs = 4, ks = ua(function(e, t) {
|
|
873
891
|
var n = {};
|
|
874
892
|
if (e == null)
|
|
875
893
|
return n;
|
|
876
894
|
var o = !1;
|
|
877
|
-
t =
|
|
895
|
+
t = In(t, function(a) {
|
|
878
896
|
return a = At(a, e), o || (o = a.length > 1), a;
|
|
879
|
-
}), xr(e, Zn(e), n), o && (n = Ge(n,
|
|
897
|
+
}), xr(e, Zn(e), n), o && (n = Ge(n, Ss | Es | Cs, Ts));
|
|
880
898
|
for (var r = t.length; r--; )
|
|
881
|
-
|
|
899
|
+
ws(n, t[r]);
|
|
882
900
|
return n;
|
|
883
901
|
});
|
|
884
902
|
const G = [];
|
|
885
903
|
for (let e = 0; e < 256; ++e)
|
|
886
904
|
G.push((e + 256).toString(16).slice(1));
|
|
887
|
-
function
|
|
905
|
+
function Os(e, t = 0) {
|
|
888
906
|
return (G[e[t + 0]] + G[e[t + 1]] + G[e[t + 2]] + G[e[t + 3]] + "-" + G[e[t + 4]] + G[e[t + 5]] + "-" + G[e[t + 6]] + G[e[t + 7]] + "-" + G[e[t + 8]] + G[e[t + 9]] + "-" + G[e[t + 10]] + G[e[t + 11]] + G[e[t + 12]] + G[e[t + 13]] + G[e[t + 14]] + G[e[t + 15]]).toLowerCase();
|
|
889
907
|
}
|
|
890
908
|
let pt;
|
|
891
|
-
const
|
|
892
|
-
function
|
|
909
|
+
const Is = new Uint8Array(16);
|
|
910
|
+
function Rs() {
|
|
893
911
|
if (!pt) {
|
|
894
912
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
895
913
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
896
914
|
pt = crypto.getRandomValues.bind(crypto);
|
|
897
915
|
}
|
|
898
|
-
return pt(
|
|
916
|
+
return pt(Is);
|
|
899
917
|
}
|
|
900
|
-
const
|
|
901
|
-
function
|
|
918
|
+
const xs = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), cn = { randomUUID: xs };
|
|
919
|
+
function As(e, t, n) {
|
|
902
920
|
var r;
|
|
903
921
|
if (cn.randomUUID && !e)
|
|
904
922
|
return cn.randomUUID();
|
|
905
923
|
e = e || {};
|
|
906
|
-
const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ??
|
|
924
|
+
const o = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Rs();
|
|
907
925
|
if (o.length < 16)
|
|
908
926
|
throw new Error("Random bytes length must be >= 16");
|
|
909
|
-
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128,
|
|
927
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Os(o);
|
|
910
928
|
}
|
|
911
929
|
const ni = {
|
|
912
930
|
ip: "127.0.0.1",
|
|
@@ -939,13 +957,13 @@ const ni = {
|
|
|
939
957
|
cloud_authentication: {
|
|
940
958
|
aws_is_serverless: !0
|
|
941
959
|
}
|
|
942
|
-
},
|
|
960
|
+
}, Qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
943
961
|
__proto__: null,
|
|
944
962
|
DEFAULT_CLUSTER_NODE: ni,
|
|
945
963
|
DEFAULT_FIELDS: ri,
|
|
946
964
|
DEFAULT_REDIS_TYPE: $e,
|
|
947
965
|
DEFAULT_SENTINEL_NODE: ii
|
|
948
|
-
}, Symbol.toStringTag, { value: "Module" })), Ne = (e) => ({ ...e, id:
|
|
966
|
+
}, Symbol.toStringTag, { value: "Module" })), Ne = (e) => ({ ...e, id: As() }), St = (e) => {
|
|
949
967
|
const { id: t, ...n } = e;
|
|
950
968
|
return n;
|
|
951
969
|
}, oi = () => Ne(ii), ai = () => Ne(ni), Be = (e) => {
|
|
@@ -1016,7 +1034,7 @@ const ni = {
|
|
|
1016
1034
|
default:
|
|
1017
1035
|
return null;
|
|
1018
1036
|
}
|
|
1019
|
-
},
|
|
1037
|
+
}, Yd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1020
1038
|
__proto__: null,
|
|
1021
1039
|
genDefaultClusterNode: ai,
|
|
1022
1040
|
genDefaultSentinelNode: oi,
|
|
@@ -1045,7 +1063,7 @@ const ni = {
|
|
|
1045
1063
|
konnect: `${We}/partials/{id}/links`,
|
|
1046
1064
|
kongManager: `${qe}/partials/{id}/links`
|
|
1047
1065
|
}
|
|
1048
|
-
},
|
|
1066
|
+
}, Ps = (e) => {
|
|
1049
1067
|
if (e == null || e === "")
|
|
1050
1068
|
return !1;
|
|
1051
1069
|
if (typeof e == "string") {
|
|
@@ -1053,7 +1071,7 @@ const ni = {
|
|
|
1053
1071
|
return Number.isNaN(t) ? !0 : t >= 0 && t <= 65535;
|
|
1054
1072
|
}
|
|
1055
1073
|
return typeof e == "number" ? e >= 0 && e <= 65535 : !1;
|
|
1056
|
-
},
|
|
1074
|
+
}, $s = (e) => {
|
|
1057
1075
|
const { partialId: t, config: n, defaultRedisType: o = $e } = e, r = !!t, { axiosInstance: a } = kt(n.axiosRequestConfig), { getMessageFromError: c } = yn(), p = z(() => t ? dt.Edit : dt.Create), l = mn({
|
|
1058
1076
|
fields: {
|
|
1059
1077
|
name: "",
|
|
@@ -1068,14 +1086,14 @@ const ni = {
|
|
|
1068
1086
|
l.fields.type = Xe(d);
|
|
1069
1087
|
});
|
|
1070
1088
|
const m = z(() => {
|
|
1071
|
-
var
|
|
1072
|
-
if (r && ys(u.value, _.value) || !((
|
|
1089
|
+
var I, P, W, X;
|
|
1090
|
+
if (r && ys(u.value, _.value) || !((I = l.fields.name) != null && I.length))
|
|
1073
1091
|
return !1;
|
|
1074
1092
|
const { config: d } = l.fields;
|
|
1075
1093
|
switch (v.value) {
|
|
1076
1094
|
case w.HOST_PORT_CE:
|
|
1077
1095
|
case w.HOST_PORT_EE:
|
|
1078
|
-
return !!d.host && d.host.length > 0 &&
|
|
1096
|
+
return !!d.host && d.host.length > 0 && Ps(d.port) && (((P = d.cloud_authentication) == null ? void 0 : P.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
|
|
1079
1097
|
case w.CLUSTER:
|
|
1080
1098
|
return !!d.cluster_nodes.length && d.cluster_nodes.every((ne) => ne.ip.length > 0) && (((W = d.cloud_authentication) == null ? void 0 : W.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
|
|
1081
1099
|
case w.SENTINEL:
|
|
@@ -1253,7 +1271,7 @@ const ni = {
|
|
|
1253
1271
|
), l.fields.config.sentinel_nodes = h.addIdToSentinelNodes(d.config.sentinel_nodes ?? []), l.fields.config.cluster_nodes = h.addIdToClusterNodes(d.config.cluster_nodes ?? []), l.fields.name = d.name, l.fields.type = d.type, l.fields.tags = h.arrayToString(d.tags), v.value = Be(d), u.value = JSON.parse(JSON.stringify(_.value));
|
|
1254
1272
|
}
|
|
1255
1273
|
};
|
|
1256
|
-
},
|
|
1274
|
+
}, Vs = { class: "array-card-container" }, Ms = /* @__PURE__ */ Y({
|
|
1257
1275
|
__name: "FieldArrayCardContainer",
|
|
1258
1276
|
props: {
|
|
1259
1277
|
model: {
|
|
@@ -1277,7 +1295,7 @@ const ni = {
|
|
|
1277
1295
|
setup(e) {
|
|
1278
1296
|
return (t, n) => {
|
|
1279
1297
|
const o = $("KCard"), r = $("KButton");
|
|
1280
|
-
return
|
|
1298
|
+
return O(), J("div", Vs, [
|
|
1281
1299
|
g(o, { class: "card" }, {
|
|
1282
1300
|
default: S(() => [
|
|
1283
1301
|
gi(t.$slots, "default", {}, void 0, !0)
|
|
@@ -1291,7 +1309,7 @@ const ni = {
|
|
|
1291
1309
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1292
1310
|
}, {
|
|
1293
1311
|
default: S(() => [
|
|
1294
|
-
g(i(
|
|
1312
|
+
g(i(Di))
|
|
1295
1313
|
]),
|
|
1296
1314
|
_: 1
|
|
1297
1315
|
}, 8, ["disabled"])
|
|
@@ -1303,7 +1321,7 @@ const ni = {
|
|
|
1303
1321
|
for (const [o, r] of t)
|
|
1304
1322
|
n[o] = r;
|
|
1305
1323
|
return n;
|
|
1306
|
-
}, li = /* @__PURE__ */ te(
|
|
1324
|
+
}, li = /* @__PURE__ */ te(Ms, [["__scopeId", "data-v-a0b2e4fb"]]), js = {
|
|
1307
1325
|
create: "New Redis Configuration",
|
|
1308
1326
|
copy_id: "Copy ID",
|
|
1309
1327
|
copy_json: "Copy JSON",
|
|
@@ -1314,21 +1332,21 @@ const ni = {
|
|
|
1314
1332
|
loading: "Loading...",
|
|
1315
1333
|
view_plugin: "View Plugin",
|
|
1316
1334
|
close: "Close"
|
|
1317
|
-
},
|
|
1335
|
+
}, Ds = {
|
|
1318
1336
|
placeholder: "Filter by name",
|
|
1319
1337
|
placeholder_for_exact_match: "Filter by exact ID",
|
|
1320
1338
|
no_results: "No results found"
|
|
1321
|
-
},
|
|
1339
|
+
}, Ls = {
|
|
1322
1340
|
placeholder: "Select a Redis configuration",
|
|
1323
1341
|
empty_state: "No Redis configurations available",
|
|
1324
1342
|
create_new: "Create new Redis configuration"
|
|
1325
|
-
},
|
|
1343
|
+
}, Us = {
|
|
1326
1344
|
copy: "Failed to copy to clipboard",
|
|
1327
1345
|
general: "Redis configuration could not be retrieved",
|
|
1328
1346
|
delete: "The redis configuration could not be deleted at this time."
|
|
1329
|
-
},
|
|
1347
|
+
}, Ns = {
|
|
1330
1348
|
success: "Copied {val} to clipboard"
|
|
1331
|
-
},
|
|
1349
|
+
}, Bs = {
|
|
1332
1350
|
redis_partial_modal_title: "Create Redis Configuration",
|
|
1333
1351
|
partial_created_success_message: "Redis configuration created successfully",
|
|
1334
1352
|
sections: {
|
|
@@ -1569,19 +1587,19 @@ const ni = {
|
|
|
1569
1587
|
plugin_count: "{count} plugin(s)",
|
|
1570
1588
|
confirm: "Confirm"
|
|
1571
1589
|
}
|
|
1572
|
-
},
|
|
1590
|
+
}, Fs = {
|
|
1573
1591
|
title: "Associated plugins ({count})",
|
|
1574
1592
|
headers: {
|
|
1575
1593
|
plugin: "Plugin",
|
|
1576
1594
|
instance_name: "Name"
|
|
1577
1595
|
}
|
|
1578
|
-
},
|
|
1596
|
+
}, zs = {
|
|
1579
1597
|
title: "Redis Configurations",
|
|
1580
1598
|
empty_state: {
|
|
1581
1599
|
title: "Configure a Redis Configuration",
|
|
1582
1600
|
description: "Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."
|
|
1583
1601
|
}
|
|
1584
|
-
},
|
|
1602
|
+
}, Ks = {
|
|
1585
1603
|
action: "New configuration",
|
|
1586
1604
|
table_headers: {
|
|
1587
1605
|
name: "Name",
|
|
@@ -1600,24 +1618,24 @@ const ni = {
|
|
|
1600
1618
|
description: "Edits to your configuration will be cascaded automatically to all associated plugins."
|
|
1601
1619
|
}
|
|
1602
1620
|
}
|
|
1603
|
-
},
|
|
1604
|
-
actions:
|
|
1605
|
-
search:
|
|
1606
|
-
selector:
|
|
1621
|
+
}, Hs = {
|
|
1622
|
+
actions: js,
|
|
1623
|
+
search: Ds,
|
|
1624
|
+
selector: Ls,
|
|
1607
1625
|
delete: {
|
|
1608
1626
|
title: "Delete Redis configuration",
|
|
1609
1627
|
description: "You’re about to delete this item. Are you sure you want to proceed?",
|
|
1610
1628
|
warning: "To delete this configuration, first remove it from all associated plugins."
|
|
1611
1629
|
},
|
|
1612
|
-
errors:
|
|
1613
|
-
copy:
|
|
1614
|
-
form:
|
|
1615
|
-
linked_plugins_modal:
|
|
1616
|
-
redis:
|
|
1617
|
-
list:
|
|
1630
|
+
errors: Us,
|
|
1631
|
+
copy: Ns,
|
|
1632
|
+
form: Bs,
|
|
1633
|
+
linked_plugins_modal: Fs,
|
|
1634
|
+
redis: zs,
|
|
1635
|
+
list: Ks
|
|
1618
1636
|
};
|
|
1619
1637
|
function ot() {
|
|
1620
|
-
const e = Bi("en-us",
|
|
1638
|
+
const e = Bi("en-us", Hs);
|
|
1621
1639
|
return {
|
|
1622
1640
|
i18n: e,
|
|
1623
1641
|
i18nT: Fi(e)
|
|
@@ -1626,7 +1644,7 @@ function ot() {
|
|
|
1626
1644
|
}
|
|
1627
1645
|
const ye = {
|
|
1628
1646
|
useI18n: ot
|
|
1629
|
-
},
|
|
1647
|
+
}, Ws = { class: "cluster-node-items" }, qs = /* @__PURE__ */ Y({
|
|
1630
1648
|
__name: "ClusterNodes",
|
|
1631
1649
|
props: /* @__PURE__ */ Et({
|
|
1632
1650
|
readonly: { type: Boolean }
|
|
@@ -1643,7 +1661,7 @@ const ye = {
|
|
|
1643
1661
|
};
|
|
1644
1662
|
return (a, c) => {
|
|
1645
1663
|
const p = $("KLabel"), l = $("KInput"), u = $("KButton");
|
|
1646
|
-
return
|
|
1664
|
+
return O(), J("div", null, [
|
|
1647
1665
|
g(p, {
|
|
1648
1666
|
class: "required",
|
|
1649
1667
|
info: i(n)("form.fields.cluster_nodes.tooltip"),
|
|
@@ -1655,14 +1673,14 @@ const ye = {
|
|
|
1655
1673
|
_: 1
|
|
1656
1674
|
}, 8, ["info"]),
|
|
1657
1675
|
K("div", null, [
|
|
1658
|
-
(
|
|
1676
|
+
(O(!0), J(fe, null, tt(t.value, (v, T) => (O(), N(li, {
|
|
1659
1677
|
key: `${T}`,
|
|
1660
1678
|
"data-testid": "redis-cluster-nodes",
|
|
1661
1679
|
disabled: e.readonly,
|
|
1662
1680
|
onRemoveItem: (m) => r(T)
|
|
1663
1681
|
}, {
|
|
1664
1682
|
default: S(() => [
|
|
1665
|
-
K("div",
|
|
1683
|
+
K("div", Ws, [
|
|
1666
1684
|
g(l, {
|
|
1667
1685
|
modelValue: v.ip,
|
|
1668
1686
|
"onUpdate:modelValue": (m) => v.ip = m,
|
|
@@ -1708,7 +1726,7 @@ const ye = {
|
|
|
1708
1726
|
]);
|
|
1709
1727
|
};
|
|
1710
1728
|
}
|
|
1711
|
-
}),
|
|
1729
|
+
}), Gs = /* @__PURE__ */ te(qs, [["__scopeId", "data-v-776a626d"]]), si = () => {
|
|
1712
1730
|
const e = x(), t = x();
|
|
1713
1731
|
return {
|
|
1714
1732
|
vaultSecretPickerSetup: e,
|
|
@@ -1720,7 +1738,7 @@ const ye = {
|
|
|
1720
1738
|
(a = t.value) == null || a.call(t, r), e.value = !1;
|
|
1721
1739
|
}
|
|
1722
1740
|
};
|
|
1723
|
-
},
|
|
1741
|
+
}, Js = { class: "sentinel-node-items" }, Zs = /* @__PURE__ */ Y({
|
|
1724
1742
|
__name: "SentinelNodes",
|
|
1725
1743
|
props: /* @__PURE__ */ Et({
|
|
1726
1744
|
readonly: { type: Boolean }
|
|
@@ -1737,7 +1755,7 @@ const ye = {
|
|
|
1737
1755
|
};
|
|
1738
1756
|
return (a, c) => {
|
|
1739
1757
|
const p = $("KLabel"), l = $("KInput"), u = $("KButton");
|
|
1740
|
-
return
|
|
1758
|
+
return O(), J("div", null, [
|
|
1741
1759
|
g(p, {
|
|
1742
1760
|
class: "required",
|
|
1743
1761
|
info: i(n)("form.fields.sentinel_nodes.tooltip"),
|
|
@@ -1749,14 +1767,14 @@ const ye = {
|
|
|
1749
1767
|
_: 1
|
|
1750
1768
|
}, 8, ["info"]),
|
|
1751
1769
|
K("div", null, [
|
|
1752
|
-
(
|
|
1770
|
+
(O(!0), J(fe, null, tt(t.value, (v, T) => (O(), N(li, {
|
|
1753
1771
|
key: v.id,
|
|
1754
1772
|
"data-testid": "redis-sentinel-nodes",
|
|
1755
1773
|
disabled: e.readonly,
|
|
1756
1774
|
onRemoveItem: (m) => r(T)
|
|
1757
1775
|
}, {
|
|
1758
1776
|
default: S(() => [
|
|
1759
|
-
K("div",
|
|
1777
|
+
K("div", Js, [
|
|
1760
1778
|
g(l, {
|
|
1761
1779
|
modelValue: v.host,
|
|
1762
1780
|
"onUpdate:modelValue": (m) => v.host = m,
|
|
@@ -1802,7 +1820,7 @@ const ye = {
|
|
|
1802
1820
|
]);
|
|
1803
1821
|
};
|
|
1804
1822
|
}
|
|
1805
|
-
}),
|
|
1823
|
+
}), Qs = /* @__PURE__ */ te(Zs, [["__scopeId", "data-v-cd1c07e2"]]), Ys = /* @__PURE__ */ Y({
|
|
1806
1824
|
__name: "CloudAuthFields",
|
|
1807
1825
|
props: /* @__PURE__ */ Et({
|
|
1808
1826
|
config: {},
|
|
@@ -1910,11 +1928,11 @@ const ye = {
|
|
|
1910
1928
|
}));
|
|
1911
1929
|
return (l, u) => {
|
|
1912
1930
|
const v = $("KInput"), T = $("KCheckbox");
|
|
1913
|
-
return
|
|
1914
|
-
(
|
|
1931
|
+
return O(), J(fe, null, [
|
|
1932
|
+
(O(!0), J(fe, null, tt(p.value, (m) => (O(), J(fe, {
|
|
1915
1933
|
key: m.key
|
|
1916
1934
|
}, [
|
|
1917
|
-
m.type !== "boolean" ? (
|
|
1935
|
+
m.type !== "boolean" ? (O(), J(fe, { key: 0 }, [
|
|
1918
1936
|
g(v, {
|
|
1919
1937
|
modelValue: t.value[m.key],
|
|
1920
1938
|
"onUpdate:modelValue": (b) => t.value[m.key] = b,
|
|
@@ -1929,7 +1947,7 @@ const ye = {
|
|
|
1929
1947
|
"show-password-mask-toggle": m.encrypted,
|
|
1930
1948
|
type: m.encrypted ? "password" : "text"
|
|
1931
1949
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "label", "label-attributes", "readonly", "required", "show-password-mask-toggle", "type"]),
|
|
1932
|
-
m.referenceable ? (
|
|
1950
|
+
m.referenceable ? (O(), N(i(he), {
|
|
1933
1951
|
key: 0,
|
|
1934
1952
|
class: "secret-picker-provider",
|
|
1935
1953
|
disabled: e.readonly,
|
|
@@ -1937,7 +1955,7 @@ const ye = {
|
|
|
1937
1955
|
value: t.value[m.key] ?? "",
|
|
1938
1956
|
onOpen: u[0] || (u[0] = (b, _) => i(r)(b, _))
|
|
1939
1957
|
}, null, 8, ["disabled", "update", "value"])) : Z("", !0)
|
|
1940
|
-
], 64)) : (
|
|
1958
|
+
], 64)) : (O(), N(T, {
|
|
1941
1959
|
key: 1,
|
|
1942
1960
|
modelValue: t.value[m.key],
|
|
1943
1961
|
"onUpdate:modelValue": (b) => t.value[m.key] = b,
|
|
@@ -1959,9 +1977,9 @@ const ye = {
|
|
|
1959
1977
|
], 64);
|
|
1960
1978
|
};
|
|
1961
1979
|
}
|
|
1962
|
-
}),
|
|
1980
|
+
}), Xs = /* @__PURE__ */ te(Ys, [["__scopeId", "data-v-150a04c2"]]);
|
|
1963
1981
|
var mt = /* @__PURE__ */ new WeakMap(), fn = 0;
|
|
1964
|
-
function
|
|
1982
|
+
function ed(e) {
|
|
1965
1983
|
if (!e.length)
|
|
1966
1984
|
return "";
|
|
1967
1985
|
for (var t = "arg", n = 0; n < e.length; ++n) {
|
|
@@ -1970,14 +1988,14 @@ function Ys(e) {
|
|
|
1970
1988
|
}
|
|
1971
1989
|
return t;
|
|
1972
1990
|
}
|
|
1973
|
-
function
|
|
1991
|
+
function td(e) {
|
|
1974
1992
|
if (typeof e == "function")
|
|
1975
1993
|
try {
|
|
1976
1994
|
e = e();
|
|
1977
1995
|
} catch {
|
|
1978
1996
|
e = "";
|
|
1979
1997
|
}
|
|
1980
|
-
return Array.isArray(e) ? e =
|
|
1998
|
+
return Array.isArray(e) ? e = ed(e) : e = String(e || ""), e;
|
|
1981
1999
|
}
|
|
1982
2000
|
var Mt = (
|
|
1983
2001
|
/** @class */
|
|
@@ -1986,7 +2004,7 @@ var Mt = (
|
|
|
1986
2004
|
t === void 0 && (t = 0), this.items = /* @__PURE__ */ new Map(), this.ttl = t;
|
|
1987
2005
|
}
|
|
1988
2006
|
return e.prototype.serializeKey = function(t) {
|
|
1989
|
-
return
|
|
2007
|
+
return td(t);
|
|
1990
2008
|
}, e.prototype.get = function(t) {
|
|
1991
2009
|
var n = this.serializeKey(t);
|
|
1992
2010
|
return this.items.get(n);
|
|
@@ -2008,21 +2026,21 @@ var Mt = (
|
|
|
2008
2026
|
}, e;
|
|
2009
2027
|
}()
|
|
2010
2028
|
);
|
|
2011
|
-
function
|
|
2029
|
+
function nd() {
|
|
2012
2030
|
return typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
2013
2031
|
}
|
|
2014
|
-
function
|
|
2032
|
+
function id() {
|
|
2015
2033
|
return typeof document < "u" && typeof document.visibilityState < "u" ? document.visibilityState !== "hidden" : !0;
|
|
2016
2034
|
}
|
|
2017
|
-
var
|
|
2035
|
+
var rd = function(e) {
|
|
2018
2036
|
return fetch(e).then(function(t) {
|
|
2019
2037
|
return t.json();
|
|
2020
2038
|
});
|
|
2021
2039
|
};
|
|
2022
2040
|
const _t = {
|
|
2023
|
-
isOnline:
|
|
2024
|
-
isDocumentVisible:
|
|
2025
|
-
fetcher:
|
|
2041
|
+
isOnline: nd,
|
|
2042
|
+
isDocumentVisible: id,
|
|
2043
|
+
fetcher: rd
|
|
2026
2044
|
};
|
|
2027
2045
|
var ce = function() {
|
|
2028
2046
|
return ce = Object.assign || function(e) {
|
|
@@ -2117,7 +2135,7 @@ var ce = function() {
|
|
|
2117
2135
|
if (u[0] & 5) throw u[1];
|
|
2118
2136
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
2119
2137
|
}
|
|
2120
|
-
},
|
|
2138
|
+
}, od = function(e, t) {
|
|
2121
2139
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2122
2140
|
if (!n) return e;
|
|
2123
2141
|
var o = n.call(e), r, a = [], c;
|
|
@@ -2133,7 +2151,7 @@ var ce = function() {
|
|
|
2133
2151
|
}
|
|
2134
2152
|
}
|
|
2135
2153
|
return a;
|
|
2136
|
-
},
|
|
2154
|
+
}, ad = function(e, t, n) {
|
|
2137
2155
|
if (n || arguments.length === 2) for (var o = 0, r = t.length, a; o < r; o++)
|
|
2138
2156
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
2139
2157
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
@@ -2152,7 +2170,7 @@ var ce = function() {
|
|
|
2152
2170
|
isOnline: _t.isOnline,
|
|
2153
2171
|
isDocumentVisible: _t.isDocumentVisible
|
|
2154
2172
|
};
|
|
2155
|
-
function
|
|
2173
|
+
function ld(e, t, n) {
|
|
2156
2174
|
var o = et.get(e);
|
|
2157
2175
|
if (o)
|
|
2158
2176
|
o.data.push(t);
|
|
@@ -2161,7 +2179,7 @@ function od(e, t, n) {
|
|
|
2161
2179
|
et.set(e, [t], n > 0 ? n + r : n);
|
|
2162
2180
|
}
|
|
2163
2181
|
}
|
|
2164
|
-
function
|
|
2182
|
+
function sd(e, t, n) {
|
|
2165
2183
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
2166
2184
|
var o = Math.min(t || 0, n.errorRetryCount), r = o * n.errorRetryInterval;
|
|
2167
2185
|
setTimeout(function() {
|
|
@@ -2175,7 +2193,7 @@ var pn = function(e, t, n, o) {
|
|
|
2175
2193
|
return Pe(this, function(T) {
|
|
2176
2194
|
switch (T.label) {
|
|
2177
2195
|
case 0:
|
|
2178
|
-
if (!
|
|
2196
|
+
if (!ud(t)) return [3, 5];
|
|
2179
2197
|
T.label = 1;
|
|
2180
2198
|
case 1:
|
|
2181
2199
|
return T.trys.push([1, 3, , 4]), [4, t];
|
|
@@ -2205,7 +2223,7 @@ var pn = function(e, t, n, o) {
|
|
|
2205
2223
|
});
|
|
2206
2224
|
});
|
|
2207
2225
|
};
|
|
2208
|
-
function
|
|
2226
|
+
function dd() {
|
|
2209
2227
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
2210
2228
|
t[n] = arguments[n];
|
|
2211
2229
|
var o, r, a = ce({}, ui), c = !1, p = !1, l = bi(), u = (l == null ? void 0 : l.proxy) || l;
|
|
@@ -2225,11 +2243,11 @@ function ld() {
|
|
|
2225
2243
|
}));
|
|
2226
2244
|
var _ = function(k, d) {
|
|
2227
2245
|
return Ae(e, void 0, void 0, function() {
|
|
2228
|
-
var
|
|
2246
|
+
var I, P, W, X, ne, de, ie, we = this;
|
|
2229
2247
|
return Pe(this, function(re) {
|
|
2230
2248
|
switch (re.label) {
|
|
2231
2249
|
case 0:
|
|
2232
|
-
return
|
|
2250
|
+
return I = b.data === void 0, P = m.value, P ? (W = a.cache.get(P), X = W && W.data, b.isValidating = !0, b.isLoading = !X, X && (b.data = X.data, b.error = X.error), ne = k || r, !ne || !a.isDocumentVisible() && !I || (d == null ? void 0 : d.forceRevalidate) !== void 0 && !(d != null && d.forceRevalidate) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
2233
2251
|
2
|
|
2234
2252
|
/*return*/
|
|
2235
2253
|
]) : W && (de = !!(Date.now() - W.createdAt >= a.dedupingInterval || d != null && d.forceRevalidate), !de) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
@@ -2241,7 +2259,7 @@ function ld() {
|
|
|
2241
2259
|
return Pe(this, function(ve) {
|
|
2242
2260
|
switch (ve.label) {
|
|
2243
2261
|
case 0:
|
|
2244
|
-
return oe = gt.get(P), oe ? [3, 2] : (Te = Array.isArray(P) ? P : [P], Se = ne.apply(void 0,
|
|
2262
|
+
return oe = gt.get(P), oe ? [3, 2] : (Te = Array.isArray(P) ? P : [P], Se = ne.apply(void 0, ad([], od(Te), !1)), gt.set(P, Se, a.dedupingInterval), [4, pn(P, Se, a.cache, T)]);
|
|
2245
2263
|
case 1:
|
|
2246
2264
|
return ve.sent(), [3, 4];
|
|
2247
2265
|
case 2:
|
|
@@ -2249,7 +2267,7 @@ function ld() {
|
|
|
2249
2267
|
case 3:
|
|
2250
2268
|
ve.sent(), ve.label = 4;
|
|
2251
2269
|
case 4:
|
|
2252
|
-
return b.isValidating = !1, b.isLoading = !1, gt.delete(P), b.error !== void 0 && (xe = !c && a.shouldRetryOnError && (d ? d.shouldRetryOnError : !0), xe &&
|
|
2270
|
+
return b.isValidating = !1, b.isLoading = !1, gt.delete(P), b.error !== void 0 && (xe = !c && a.shouldRetryOnError && (d ? d.shouldRetryOnError : !0), xe && sd(_, d ? d.errorRetryCount : 1, a)), [
|
|
2253
2271
|
2
|
|
2254
2272
|
/*return*/
|
|
2255
2273
|
];
|
|
@@ -2325,7 +2343,7 @@ function ld() {
|
|
|
2325
2343
|
});
|
|
2326
2344
|
try {
|
|
2327
2345
|
Ce(m, function(k) {
|
|
2328
|
-
hi(m) || (m.value = k), b.key = k, b.isValidating = !!k,
|
|
2346
|
+
hi(m) || (m.value = k), b.key = k, b.isValidating = !!k, ld(m.value, b, T), !v && !p && m.value && _(), p = !1;
|
|
2329
2347
|
}, {
|
|
2330
2348
|
immediate: !0
|
|
2331
2349
|
});
|
|
@@ -2336,7 +2354,7 @@ function ld() {
|
|
|
2336
2354
|
} });
|
|
2337
2355
|
return A;
|
|
2338
2356
|
}
|
|
2339
|
-
function
|
|
2357
|
+
function ud(e) {
|
|
2340
2358
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
2341
2359
|
}
|
|
2342
2360
|
function ci(e) {
|
|
@@ -2357,7 +2375,7 @@ const Fe = (e) => {
|
|
|
2357
2375
|
}
|
|
2358
2376
|
};
|
|
2359
2377
|
}, fi = (e) => {
|
|
2360
|
-
const { partialId: t, config: n } = e, { fetcher: o } = Fe(n), r = x([]), { data: a } =
|
|
2378
|
+
const { partialId: t, config: n } = e, { fetcher: o } = Fe(n), r = x([]), { data: a } = dd(
|
|
2361
2379
|
ci(t),
|
|
2362
2380
|
() => o({ partialId: t }),
|
|
2363
2381
|
{
|
|
@@ -2368,7 +2386,7 @@ const Fe = (e) => {
|
|
|
2368
2386
|
var c;
|
|
2369
2387
|
r.value = ((c = a.value) == null ? void 0 : c.data) ?? [];
|
|
2370
2388
|
}), r;
|
|
2371
|
-
},
|
|
2389
|
+
}, cd = { class: "kong-ui-entities-redis-configurations-form" }, fd = /* @__PURE__ */ Y({
|
|
2372
2390
|
__name: "RedisConfigurationForm",
|
|
2373
2391
|
props: {
|
|
2374
2392
|
config: {
|
|
@@ -2415,28 +2433,28 @@ const Fe = (e) => {
|
|
|
2415
2433
|
label: r("form.options.type.host_port"),
|
|
2416
2434
|
group: r("form.options.type.enterprise"),
|
|
2417
2435
|
value: w.HOST_PORT_EE,
|
|
2418
|
-
selected:
|
|
2436
|
+
selected: I.value === w.HOST_PORT_EE,
|
|
2419
2437
|
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2420
2438
|
},
|
|
2421
2439
|
{
|
|
2422
2440
|
label: r("form.options.type.cluster"),
|
|
2423
2441
|
group: r("form.options.type.enterprise"),
|
|
2424
2442
|
value: w.CLUSTER,
|
|
2425
|
-
selected:
|
|
2443
|
+
selected: I.value === w.CLUSTER,
|
|
2426
2444
|
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2427
2445
|
},
|
|
2428
2446
|
{
|
|
2429
2447
|
label: r("form.options.type.sentinel"),
|
|
2430
2448
|
group: r("form.options.type.enterprise"),
|
|
2431
2449
|
value: w.SENTINEL,
|
|
2432
|
-
selected:
|
|
2450
|
+
selected: I.value === w.SENTINEL,
|
|
2433
2451
|
disabled: !d && n.disabledPartialType === Q.REDIS_EE
|
|
2434
2452
|
},
|
|
2435
2453
|
{
|
|
2436
2454
|
label: r("form.options.type.host_port"),
|
|
2437
2455
|
group: r("form.options.type.open_source"),
|
|
2438
2456
|
value: w.HOST_PORT_CE,
|
|
2439
|
-
selected:
|
|
2457
|
+
selected: I.value === w.HOST_PORT_CE,
|
|
2440
2458
|
disabled: d && P.value || !d && n.disabledPartialType === Q.REDIS_CE
|
|
2441
2459
|
}
|
|
2442
2460
|
]), m = z(() => [
|
|
@@ -2464,18 +2482,18 @@ const Fe = (e) => {
|
|
|
2464
2482
|
canSubmit: A,
|
|
2465
2483
|
payload: k,
|
|
2466
2484
|
isEdit: d,
|
|
2467
|
-
redisType:
|
|
2485
|
+
redisType: I,
|
|
2468
2486
|
redisTypeIsEnterprise: P,
|
|
2469
2487
|
fetchUrl: W,
|
|
2470
2488
|
submit: X,
|
|
2471
2489
|
setInitialFormValues: ne
|
|
2472
|
-
} =
|
|
2490
|
+
} = $s({
|
|
2473
2491
|
partialId: n.partialId,
|
|
2474
2492
|
defaultRedisType: E(),
|
|
2475
2493
|
config: n.config,
|
|
2476
2494
|
cloudAuthAvailable: n.config.cloudAuthAvailable
|
|
2477
2495
|
}), { fetcher: de } = Fe(n.config), ie = x(!1), we = x(!1), re = x(0), oe = z(() => v.value === "terraform" ? {
|
|
2478
|
-
[k.value.type.replaceAll("-", "_")]:
|
|
2496
|
+
[k.value.type.replaceAll("-", "_")]: ks(k.value, ["type"])
|
|
2479
2497
|
} : k.value), Te = async () => {
|
|
2480
2498
|
try {
|
|
2481
2499
|
if (d && !we.value) {
|
|
@@ -2508,9 +2526,9 @@ const Fe = (e) => {
|
|
|
2508
2526
|
}
|
|
2509
2527
|
}), (H, y) => {
|
|
2510
2528
|
const lt = $("KAlert"), Ee = $("KSelect"), F = $("KInput"), C = $("KCheckbox"), R = $("KModal");
|
|
2511
|
-
return
|
|
2512
|
-
K("div",
|
|
2513
|
-
g(i(
|
|
2529
|
+
return O(), J(fe, null, [
|
|
2530
|
+
K("div", cd, [
|
|
2531
|
+
g(i(Oi), {
|
|
2514
2532
|
"action-teleport-target": e.actionTeleportTarget,
|
|
2515
2533
|
"can-submit": i(A),
|
|
2516
2534
|
config: e.config,
|
|
@@ -2529,7 +2547,7 @@ const Fe = (e) => {
|
|
|
2529
2547
|
onSubmit: Te
|
|
2530
2548
|
}, {
|
|
2531
2549
|
default: S(() => [
|
|
2532
|
-
re.value > 0 && i(d) ? (
|
|
2550
|
+
re.value > 0 && i(d) ? (O(), N(lt, {
|
|
2533
2551
|
key: 0,
|
|
2534
2552
|
appearance: "warning",
|
|
2535
2553
|
class: "warning-alert",
|
|
@@ -2555,10 +2573,10 @@ const Fe = (e) => {
|
|
|
2555
2573
|
}, {
|
|
2556
2574
|
default: S(() => [
|
|
2557
2575
|
g(Ee, {
|
|
2558
|
-
modelValue: i(
|
|
2559
|
-
"onUpdate:modelValue": y[0] || (y[0] = (f) => Ti(
|
|
2576
|
+
modelValue: i(I),
|
|
2577
|
+
"onUpdate:modelValue": y[0] || (y[0] = (f) => Ti(I) ? I.value = f : null),
|
|
2560
2578
|
"data-testid": "redis-type-select",
|
|
2561
|
-
disabled: i(d) && i(
|
|
2579
|
+
disabled: i(d) && i(I) === i(w).HOST_PORT_CE,
|
|
2562
2580
|
items: T.value,
|
|
2563
2581
|
"kpop-attributes": { "data-testid": "redis-type-select-popover" },
|
|
2564
2582
|
label: i(r)("form.fields.type.label"),
|
|
@@ -2607,7 +2625,7 @@ const Fe = (e) => {
|
|
|
2607
2625
|
]),
|
|
2608
2626
|
_: 1
|
|
2609
2627
|
}, 8, ["description", "title"]),
|
|
2610
|
-
e.config.cloudAuthAvailable && i(
|
|
2628
|
+
e.config.cloudAuthAvailable && i(I) !== i(w).SENTINEL ? (O(), N(i(ue), {
|
|
2611
2629
|
key: 1,
|
|
2612
2630
|
"data-testid": "redis-cloud-auth-section",
|
|
2613
2631
|
description: i(r)("form.sections.cloud_auth.description"),
|
|
@@ -2625,7 +2643,7 @@ const Fe = (e) => {
|
|
|
2625
2643
|
"label-attributes": { info: i(r)("form.fields.cloud_authentication.auth_provider.tooltip") },
|
|
2626
2644
|
readonly: i(s).readonly
|
|
2627
2645
|
}, null, 8, ["modelValue", "items", "label", "label-attributes", "readonly"]),
|
|
2628
|
-
g(
|
|
2646
|
+
g(Xs, {
|
|
2629
2647
|
modelValue: i(s).fields.config.cloud_authentication,
|
|
2630
2648
|
"onUpdate:modelValue": y[4] || (y[4] = (f) => i(s).fields.config.cloud_authentication = f),
|
|
2631
2649
|
config: n.config,
|
|
@@ -2634,7 +2652,7 @@ const Fe = (e) => {
|
|
|
2634
2652
|
]),
|
|
2635
2653
|
_: 1
|
|
2636
2654
|
}, 8, ["description", "title"])) : Z("", !0),
|
|
2637
|
-
i(
|
|
2655
|
+
i(I) === i(w).SENTINEL ? (O(), N(i(ue), {
|
|
2638
2656
|
key: 2,
|
|
2639
2657
|
"data-testid": "redis-sentinel-configuration-section",
|
|
2640
2658
|
description: i(r)("form.sections.sentinel_configuration.description"),
|
|
@@ -2667,7 +2685,7 @@ const Fe = (e) => {
|
|
|
2667
2685
|
readonly: i(s).readonly,
|
|
2668
2686
|
required: ""
|
|
2669
2687
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2670
|
-
g(
|
|
2688
|
+
g(Qs, {
|
|
2671
2689
|
modelValue: i(s).fields.config.sentinel_nodes,
|
|
2672
2690
|
"onUpdate:modelValue": y[7] || (y[7] = (f) => i(s).fields.config.sentinel_nodes = f),
|
|
2673
2691
|
readonly: i(s).readonly
|
|
@@ -2688,7 +2706,7 @@ const Fe = (e) => {
|
|
|
2688
2706
|
disabled: i(s).readonly,
|
|
2689
2707
|
update: (f) => i(s).fields.config.sentinel_username = f,
|
|
2690
2708
|
value: i(s).fields.config.sentinel_username,
|
|
2691
|
-
onOpen: y[9] || (y[9] = (f,
|
|
2709
|
+
onOpen: y[9] || (y[9] = (f, D) => i(p)(f, D))
|
|
2692
2710
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2693
2711
|
g(F, {
|
|
2694
2712
|
modelValue: i(s).fields.config.sentinel_password,
|
|
@@ -2708,19 +2726,19 @@ const Fe = (e) => {
|
|
|
2708
2726
|
disabled: i(s).readonly,
|
|
2709
2727
|
update: (f) => i(s).fields.config.sentinel_password = f,
|
|
2710
2728
|
value: i(s).fields.config.sentinel_password,
|
|
2711
|
-
onOpen: y[11] || (y[11] = (f,
|
|
2729
|
+
onOpen: y[11] || (y[11] = (f, D) => i(p)(f, D))
|
|
2712
2730
|
}, null, 8, ["disabled", "update", "value"])
|
|
2713
2731
|
]),
|
|
2714
2732
|
_: 1
|
|
2715
2733
|
}, 8, ["description", "title"])) : Z("", !0),
|
|
2716
|
-
i(
|
|
2734
|
+
i(I) === i(w).CLUSTER ? (O(), N(i(ue), {
|
|
2717
2735
|
key: 3,
|
|
2718
2736
|
"data-testid": "redis-cluster-configuration-section",
|
|
2719
2737
|
description: i(r)("form.sections.cluster.description"),
|
|
2720
2738
|
title: i(r)("form.sections.cluster.title")
|
|
2721
2739
|
}, {
|
|
2722
2740
|
default: S(() => [
|
|
2723
|
-
g(
|
|
2741
|
+
g(Gs, {
|
|
2724
2742
|
modelValue: i(s).fields.config.cluster_nodes,
|
|
2725
2743
|
"onUpdate:modelValue": y[12] || (y[12] = (f) => i(s).fields.config.cluster_nodes = f),
|
|
2726
2744
|
readonly: i(s).readonly
|
|
@@ -2746,7 +2764,7 @@ const Fe = (e) => {
|
|
|
2746
2764
|
title: i(r)("form.sections.connection.title")
|
|
2747
2765
|
}, {
|
|
2748
2766
|
default: S(() => [
|
|
2749
|
-
i(
|
|
2767
|
+
i(I) === i(w).HOST_PORT_CE || i(I) === i(w).HOST_PORT_EE ? (O(), N(F, {
|
|
2750
2768
|
key: 0,
|
|
2751
2769
|
modelValue: i(s).fields.config.host,
|
|
2752
2770
|
"onUpdate:modelValue": y[14] || (y[14] = (f) => i(s).fields.config.host = f),
|
|
@@ -2759,16 +2777,16 @@ const Fe = (e) => {
|
|
|
2759
2777
|
},
|
|
2760
2778
|
readonly: i(s).readonly
|
|
2761
2779
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Z("", !0),
|
|
2762
|
-
i(
|
|
2780
|
+
i(I) === i(w).HOST_PORT_EE && e.config.isHostReferenceable ? (O(), N(i(he), {
|
|
2763
2781
|
key: 1,
|
|
2764
2782
|
class: "secret-picker-provider",
|
|
2765
2783
|
"data-testid": "secret-picker-provider-for-host",
|
|
2766
2784
|
disabled: i(s).readonly,
|
|
2767
2785
|
update: (f) => i(s).fields.config.host = f,
|
|
2768
2786
|
value: i(s).fields.config.host ?? "",
|
|
2769
|
-
onOpen: y[15] || (y[15] = (f,
|
|
2787
|
+
onOpen: y[15] || (y[15] = (f, D) => i(p)(f, D))
|
|
2770
2788
|
}, null, 8, ["disabled", "update", "value"])) : Z("", !0),
|
|
2771
|
-
i(
|
|
2789
|
+
i(I) === i(w).HOST_PORT_CE || i(I) === i(w).HOST_PORT_EE ? (O(), N(F, {
|
|
2772
2790
|
key: 2,
|
|
2773
2791
|
modelValue: i(s).fields.config.port,
|
|
2774
2792
|
"onUpdate:modelValue": y[16] || (y[16] = (f) => i(s).fields.config.port = f),
|
|
@@ -2781,16 +2799,16 @@ const Fe = (e) => {
|
|
|
2781
2799
|
},
|
|
2782
2800
|
readonly: i(s).readonly
|
|
2783
2801
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Z("", !0),
|
|
2784
|
-
i(
|
|
2802
|
+
i(I) === i(w).HOST_PORT_EE && e.config.isPortReferenceable ? (O(), N(i(he), {
|
|
2785
2803
|
key: 3,
|
|
2786
2804
|
class: "secret-picker-provider",
|
|
2787
2805
|
"data-testid": "secret-picker-provider-for-port",
|
|
2788
2806
|
disabled: i(s).readonly,
|
|
2789
2807
|
update: (f) => i(s).fields.config.port = f,
|
|
2790
2808
|
value: String(i(s).fields.config.port ?? ""),
|
|
2791
|
-
onOpen: y[17] || (y[17] = (f,
|
|
2809
|
+
onOpen: y[17] || (y[17] = (f, D) => i(p)(f, D))
|
|
2792
2810
|
}, null, 8, ["disabled", "update", "value"])) : Z("", !0),
|
|
2793
|
-
i(
|
|
2811
|
+
i(I) === i(w).HOST_PORT_EE ? (O(), N(C, {
|
|
2794
2812
|
key: 4,
|
|
2795
2813
|
modelValue: i(s).fields.config.connection_is_proxied,
|
|
2796
2814
|
"onUpdate:modelValue": y[18] || (y[18] = (f) => i(s).fields.config.connection_is_proxied = f),
|
|
@@ -2802,7 +2820,7 @@ const Fe = (e) => {
|
|
|
2802
2820
|
tooltipAttributes: { maxWidth: "400" }
|
|
2803
2821
|
}
|
|
2804
2822
|
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) : Z("", !0),
|
|
2805
|
-
i(
|
|
2823
|
+
i(I) === i(w).HOST_PORT_CE ? (O(), N(F, {
|
|
2806
2824
|
key: 5,
|
|
2807
2825
|
modelValue: i(s).fields.config.timeout,
|
|
2808
2826
|
"onUpdate:modelValue": y[19] || (y[19] = (f) => i(s).fields.config.timeout = f),
|
|
@@ -2846,7 +2864,7 @@ const Fe = (e) => {
|
|
|
2846
2864
|
disabled: i(s).readonly,
|
|
2847
2865
|
update: (f) => i(s).fields.config.username = f,
|
|
2848
2866
|
value: i(s).fields.config.username,
|
|
2849
|
-
onOpen: y[22] || (y[22] = (f,
|
|
2867
|
+
onOpen: y[22] || (y[22] = (f, D) => i(p)(f, D))
|
|
2850
2868
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2851
2869
|
g(F, {
|
|
2852
2870
|
modelValue: i(s).fields.config.password,
|
|
@@ -2867,7 +2885,7 @@ const Fe = (e) => {
|
|
|
2867
2885
|
disabled: i(s).readonly,
|
|
2868
2886
|
update: (f) => i(s).fields.config.password = f,
|
|
2869
2887
|
value: i(s).fields.config.password,
|
|
2870
|
-
onOpen: y[24] || (y[24] = (f,
|
|
2888
|
+
onOpen: y[24] || (y[24] = (f, D) => i(p)(f, D))
|
|
2871
2889
|
}, null, 8, ["disabled", "update", "value"])
|
|
2872
2890
|
]),
|
|
2873
2891
|
_: 1
|
|
@@ -2914,19 +2932,19 @@ const Fe = (e) => {
|
|
|
2914
2932
|
},
|
|
2915
2933
|
readonly: i(s).readonly
|
|
2916
2934
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2917
|
-
i(
|
|
2935
|
+
i(I) === i(w).HOST_PORT_EE && e.config.isServerNameReferenceable ? (O(), N(i(he), {
|
|
2918
2936
|
key: 0,
|
|
2919
2937
|
class: "secret-picker-provider",
|
|
2920
2938
|
"data-testid": "secret-picker-provider-for-server_name",
|
|
2921
2939
|
disabled: i(s).readonly,
|
|
2922
2940
|
update: (f) => i(s).fields.config.server_name = f,
|
|
2923
2941
|
value: i(s).fields.config.server_name ?? "",
|
|
2924
|
-
onOpen: y[28] || (y[28] = (f,
|
|
2942
|
+
onOpen: y[28] || (y[28] = (f, D) => i(p)(f, D))
|
|
2925
2943
|
}, null, 8, ["disabled", "update", "value"])) : Z("", !0)
|
|
2926
2944
|
]),
|
|
2927
2945
|
_: 1
|
|
2928
2946
|
}, 8, ["description", "title"]),
|
|
2929
|
-
i(
|
|
2947
|
+
i(I) !== i(w).HOST_PORT_CE ? (O(), N(i(ue), {
|
|
2930
2948
|
key: 4,
|
|
2931
2949
|
"data-testid": "redis-keepalive-section",
|
|
2932
2950
|
description: i(r)("form.sections.keepalive.description"),
|
|
@@ -2960,7 +2978,7 @@ const Fe = (e) => {
|
|
|
2960
2978
|
]),
|
|
2961
2979
|
_: 1
|
|
2962
2980
|
}, 8, ["description", "title"])) : Z("", !0),
|
|
2963
|
-
i(
|
|
2981
|
+
i(I) !== i(w).HOST_PORT_CE ? (O(), N(i(ue), {
|
|
2964
2982
|
key: 5,
|
|
2965
2983
|
"data-testid": "redis-read-write-configuration-section",
|
|
2966
2984
|
description: i(r)("form.sections.read_write_configuration.description"),
|
|
@@ -3042,10 +3060,10 @@ const Fe = (e) => {
|
|
|
3042
3060
|
], 64);
|
|
3043
3061
|
};
|
|
3044
3062
|
}
|
|
3045
|
-
}),
|
|
3063
|
+
}), pd = /* @__PURE__ */ te(fd, [["__scopeId", "data-v-d1ab730f"]]), md = {
|
|
3046
3064
|
class: "linked-plugins",
|
|
3047
3065
|
"data-testid": "linked-plugins-inline"
|
|
3048
|
-
}, bt = 7,
|
|
3066
|
+
}, bt = 7, _d = /* @__PURE__ */ Y({
|
|
3049
3067
|
__name: "LinkedPluginsInline",
|
|
3050
3068
|
props: {
|
|
3051
3069
|
config: {
|
|
@@ -3065,13 +3083,13 @@ const Fe = (e) => {
|
|
|
3065
3083
|
});
|
|
3066
3084
|
return (o, r) => {
|
|
3067
3085
|
const a = $("KBadge");
|
|
3068
|
-
return
|
|
3069
|
-
(
|
|
3086
|
+
return O(), J("div", md, [
|
|
3087
|
+
(O(!0), J(fe, null, tt(i(n).slice(0, bt), (c) => (O(), N(i(En), {
|
|
3070
3088
|
key: c.id,
|
|
3071
3089
|
name: c.name,
|
|
3072
3090
|
size: 24
|
|
3073
3091
|
}, null, 8, ["name"]))), 128)),
|
|
3074
|
-
i(n).length - bt > 0 ? (
|
|
3092
|
+
i(n).length - bt > 0 ? (O(), N(a, {
|
|
3075
3093
|
key: 0,
|
|
3076
3094
|
appearance: "info"
|
|
3077
3095
|
}, {
|
|
@@ -3083,13 +3101,13 @@ const Fe = (e) => {
|
|
|
3083
3101
|
]);
|
|
3084
3102
|
};
|
|
3085
3103
|
}
|
|
3086
|
-
}),
|
|
3104
|
+
}), gd = /* @__PURE__ */ te(_d, [["__scopeId", "data-v-c39556bc"]]), bd = { class: "plugin-item" }, yd = /* @__PURE__ */ Y({
|
|
3087
3105
|
__name: "PluginItem",
|
|
3088
3106
|
props: {
|
|
3089
3107
|
pluginName: {}
|
|
3090
3108
|
},
|
|
3091
3109
|
setup(e) {
|
|
3092
|
-
return (t, n) => (
|
|
3110
|
+
return (t, n) => (O(), J("div", bd, [
|
|
3093
3111
|
g(i(En), {
|
|
3094
3112
|
name: e.pluginName,
|
|
3095
3113
|
size: 24
|
|
@@ -3097,7 +3115,7 @@ const Fe = (e) => {
|
|
|
3097
3115
|
K("span", null, B(e.pluginName), 1)
|
|
3098
3116
|
]));
|
|
3099
3117
|
}
|
|
3100
|
-
}),
|
|
3118
|
+
}), vd = /* @__PURE__ */ te(yd, [["__scopeId", "data-v-de964dc4"]]), hd = { class: "toolbar-container" }, wd = /* @__PURE__ */ Y({
|
|
3101
3119
|
__name: "LinkedPluginList",
|
|
3102
3120
|
props: {
|
|
3103
3121
|
config: {
|
|
@@ -3151,7 +3169,7 @@ const Fe = (e) => {
|
|
|
3151
3169
|
};
|
|
3152
3170
|
return (m, b) => {
|
|
3153
3171
|
const _ = $("KDropdownItem"), E = $("KTableData");
|
|
3154
|
-
return
|
|
3172
|
+
return O(), N(E, {
|
|
3155
3173
|
"cache-identifier": i(ci)(e.partialId),
|
|
3156
3174
|
fetcher: l,
|
|
3157
3175
|
headers: a,
|
|
@@ -3160,7 +3178,7 @@ const Fe = (e) => {
|
|
|
3160
3178
|
"search-input": u.value
|
|
3161
3179
|
}, gn({
|
|
3162
3180
|
name: S(({ rowValue: s }) => [
|
|
3163
|
-
g(
|
|
3181
|
+
g(vd, { "plugin-name": s }, null, 8, ["plugin-name"])
|
|
3164
3182
|
]),
|
|
3165
3183
|
"action-items": S(({ row: s }) => [
|
|
3166
3184
|
g(_, {
|
|
@@ -3177,7 +3195,7 @@ const Fe = (e) => {
|
|
|
3177
3195
|
e.filterBarEnabled ? {
|
|
3178
3196
|
name: "toolbar",
|
|
3179
3197
|
fn: S(() => [
|
|
3180
|
-
K("div",
|
|
3198
|
+
K("div", hd, [
|
|
3181
3199
|
g(i(hn), {
|
|
3182
3200
|
modelValue: u.value,
|
|
3183
3201
|
"onUpdate:modelValue": b[0] || (b[0] = (s) => u.value = s),
|
|
@@ -3190,10 +3208,10 @@ const Fe = (e) => {
|
|
|
3190
3208
|
]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
|
|
3191
3209
|
};
|
|
3192
3210
|
}
|
|
3193
|
-
}),
|
|
3211
|
+
}), Td = /* @__PURE__ */ te(wd, [["__scopeId", "data-v-50856d03"]]), Sd = {
|
|
3194
3212
|
class: "linked-plugins-modal",
|
|
3195
3213
|
"data-testid": "linked-plugins-modal"
|
|
3196
|
-
},
|
|
3214
|
+
}, Ed = /* @__PURE__ */ Y({
|
|
3197
3215
|
__name: "LinkedPluginListModal",
|
|
3198
3216
|
props: {
|
|
3199
3217
|
config: {
|
|
@@ -3220,7 +3238,7 @@ const Fe = (e) => {
|
|
|
3220
3238
|
};
|
|
3221
3239
|
return (l, u) => {
|
|
3222
3240
|
const v = $("KModal");
|
|
3223
|
-
return
|
|
3241
|
+
return O(), J("div", Sd, [
|
|
3224
3242
|
g(v, {
|
|
3225
3243
|
"action-button-text": i(o)("actions.done"),
|
|
3226
3244
|
"hide-cancel-button": "",
|
|
@@ -3230,7 +3248,7 @@ const Fe = (e) => {
|
|
|
3230
3248
|
onProceed: p
|
|
3231
3249
|
}, {
|
|
3232
3250
|
default: S(() => [
|
|
3233
|
-
g(
|
|
3251
|
+
g(Td, {
|
|
3234
3252
|
config: e.config,
|
|
3235
3253
|
"partial-id": e.redisConfigurationId,
|
|
3236
3254
|
onLoad: u[0] || (u[0] = ({ total: T }) => r.value = T),
|
|
@@ -3242,7 +3260,7 @@ const Fe = (e) => {
|
|
|
3242
3260
|
]);
|
|
3243
3261
|
};
|
|
3244
3262
|
}
|
|
3245
|
-
}),
|
|
3263
|
+
}), Cd = /* @__PURE__ */ te(Ed, [["__scopeId", "data-v-6148b8bd"]]), kd = /* @__PURE__ */ Y({
|
|
3246
3264
|
__name: "DeleteWarningModal",
|
|
3247
3265
|
props: {
|
|
3248
3266
|
visible: {
|
|
@@ -3257,7 +3275,7 @@ const Fe = (e) => {
|
|
|
3257
3275
|
};
|
|
3258
3276
|
return (a, c) => {
|
|
3259
3277
|
const p = $("KModal");
|
|
3260
|
-
return
|
|
3278
|
+
return O(), N(p, {
|
|
3261
3279
|
"action-button-text": i(n)("actions.close"),
|
|
3262
3280
|
"data-testid": "remove-links-modal",
|
|
3263
3281
|
"hide-cancel-button": "",
|
|
@@ -3274,7 +3292,7 @@ const Fe = (e) => {
|
|
|
3274
3292
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
3275
3293
|
};
|
|
3276
3294
|
}
|
|
3277
|
-
}),
|
|
3295
|
+
}), Od = { class: "kong-ui-entities-partials-list" }, Id = 1e3, Rd = /* @__PURE__ */ Y({
|
|
3278
3296
|
__name: "RedisConfigurationList",
|
|
3279
3297
|
props: {
|
|
3280
3298
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3325,12 +3343,12 @@ const Fe = (e) => {
|
|
|
3325
3343
|
var R, f;
|
|
3326
3344
|
let C = `${o.config.apiBaseUrl}${Me.list[o.config.app]}`;
|
|
3327
3345
|
return o.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((R = o.config) == null ? void 0 : R.controlPlaneId) || "") : o.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (f = o.config) != null && f.workspace ? `/${o.config.workspace}` : "")), C;
|
|
3328
|
-
}), a = x(!1), c = x(""), p = x(null), l = x(void 0), u = x(!1), v = x(!1), T = x(""), m = x(!1), b =
|
|
3346
|
+
}), a = x(!1), c = x(""), p = x(null), l = x(void 0), u = x(!1), v = x(!1), T = x(""), m = x(!1), b = Ii(o.config, r.value), _ = x(1), E = z(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: s, fetcherState: A } = Ri(o.config, r);
|
|
3329
3347
|
async function k(C) {
|
|
3330
|
-
const R = await s({ ...C, pageSize:
|
|
3348
|
+
const R = await s({ ...C, pageSize: Id });
|
|
3331
3349
|
return R.data = R.data.filter((f) => f.type === Q.REDIS_CE || f.type === Q.REDIS_EE), R;
|
|
3332
3350
|
}
|
|
3333
|
-
const { i18n: { t: d } } = ye.useI18n(), { axiosInstance:
|
|
3351
|
+
const { i18n: { t: d } } = ye.useI18n(), { axiosInstance: I } = kt((F = o.config) == null ? void 0 : F.axiosRequestConfig), P = Tn(), W = x(""), X = z(() => {
|
|
3334
3352
|
const C = o.config.app === "konnect" || o.config.isExactMatch;
|
|
3335
3353
|
if (C)
|
|
3336
3354
|
return {
|
|
@@ -3378,9 +3396,9 @@ const Fe = (e) => {
|
|
|
3378
3396
|
if ((C = l.value) != null && C.id) {
|
|
3379
3397
|
v.value = !0;
|
|
3380
3398
|
try {
|
|
3381
|
-
await
|
|
3382
|
-
} catch (
|
|
3383
|
-
T.value = ((f = (R =
|
|
3399
|
+
await I.delete(b(l.value.id)), v.value = !1, u.value = !1, ze(), n("delete:success", l.value);
|
|
3400
|
+
} catch (D) {
|
|
3401
|
+
T.value = ((f = (R = D.response) == null ? void 0 : R.data) == null ? void 0 : f.message) || D.message || d("errors.delete"), n("error", D);
|
|
3384
3402
|
} finally {
|
|
3385
3403
|
v.value = !1;
|
|
3386
3404
|
}
|
|
@@ -3417,11 +3435,11 @@ const Fe = (e) => {
|
|
|
3417
3435
|
});
|
|
3418
3436
|
};
|
|
3419
3437
|
Ce(A, (C) => {
|
|
3420
|
-
var R, f,
|
|
3438
|
+
var R, f, D;
|
|
3421
3439
|
if (C.status === xi.Error) {
|
|
3422
3440
|
p.value = {
|
|
3423
3441
|
title: d("errors.general")
|
|
3424
|
-
}, (
|
|
3442
|
+
}, (D = (f = (R = C.error) == null ? void 0 : R.response) == null ? void 0 : f.data) != null && D.message && (p.value.message = C.error.response.data.message), n("error", C.error);
|
|
3425
3443
|
return;
|
|
3426
3444
|
}
|
|
3427
3445
|
p.value = null;
|
|
@@ -3432,8 +3450,8 @@ const Fe = (e) => {
|
|
|
3432
3450
|
}, {
|
|
3433
3451
|
immediate: !0
|
|
3434
3452
|
}), (C, R) => {
|
|
3435
|
-
const f = $("KButton"),
|
|
3436
|
-
return
|
|
3453
|
+
const f = $("KButton"), D = $("KDropdownItem"), mi = $("KClipboardProvider"), _i = $("KEmptyState");
|
|
3454
|
+
return O(), J("div", Od, [
|
|
3437
3455
|
g(i(Ai), {
|
|
3438
3456
|
"cache-identifier": e.cacheIdentifier,
|
|
3439
3457
|
"disable-sorting": E.value,
|
|
@@ -3458,7 +3476,7 @@ const Fe = (e) => {
|
|
|
3458
3476
|
}, null, 8, ["modelValue", "config"])
|
|
3459
3477
|
]),
|
|
3460
3478
|
"toolbar-button": S(() => [
|
|
3461
|
-
(
|
|
3479
|
+
(O(), N(Ei, {
|
|
3462
3480
|
disabled: !e.useActionOutside,
|
|
3463
3481
|
to: "#kong-ui-app-page-header-action-button"
|
|
3464
3482
|
}, [
|
|
@@ -3491,7 +3509,7 @@ const Fe = (e) => {
|
|
|
3491
3509
|
g(i(Pi), { tags: L }, null, 8, ["tags"])
|
|
3492
3510
|
]),
|
|
3493
3511
|
plugins: S(({ row: L }) => [
|
|
3494
|
-
g(
|
|
3512
|
+
g(gd, {
|
|
3495
3513
|
config: e.config,
|
|
3496
3514
|
"partial-id": L.id,
|
|
3497
3515
|
onClick: Si((st) => ve(L.id), ["stop"])
|
|
@@ -3500,9 +3518,9 @@ const Fe = (e) => {
|
|
|
3500
3518
|
actions: S(({ row: L }) => [
|
|
3501
3519
|
g(mi, null, {
|
|
3502
3520
|
default: S(({ copyToClipboard: st }) => [
|
|
3503
|
-
g(
|
|
3521
|
+
g(D, {
|
|
3504
3522
|
"data-testid": "action-entity-copy-id",
|
|
3505
|
-
onClick: (
|
|
3523
|
+
onClick: (Nd) => lt(L, st)
|
|
3506
3524
|
}, {
|
|
3507
3525
|
default: S(() => [
|
|
3508
3526
|
le(B(i(d)("actions.copy_id")), 1)
|
|
@@ -3516,7 +3534,7 @@ const Fe = (e) => {
|
|
|
3516
3534
|
"auth-function": () => e.canRetrieve(L)
|
|
3517
3535
|
}, {
|
|
3518
3536
|
default: S(() => [
|
|
3519
|
-
g(
|
|
3537
|
+
g(D, {
|
|
3520
3538
|
"data-testid": "action-entity-view",
|
|
3521
3539
|
"has-divider": "",
|
|
3522
3540
|
item: we(L.id)
|
|
@@ -3528,7 +3546,7 @@ const Fe = (e) => {
|
|
|
3528
3546
|
"auth-function": () => e.canEdit(L)
|
|
3529
3547
|
}, {
|
|
3530
3548
|
default: S(() => [
|
|
3531
|
-
g(
|
|
3549
|
+
g(D, {
|
|
3532
3550
|
"data-testid": "action-entity-edit",
|
|
3533
3551
|
item: re(L.id)
|
|
3534
3552
|
}, null, 8, ["item"])
|
|
@@ -3539,7 +3557,7 @@ const Fe = (e) => {
|
|
|
3539
3557
|
"auth-function": () => e.canDelete(L)
|
|
3540
3558
|
}, {
|
|
3541
3559
|
default: S(() => [
|
|
3542
|
-
g(
|
|
3560
|
+
g(D, {
|
|
3543
3561
|
danger: "",
|
|
3544
3562
|
"data-testid": "action-entity-delete",
|
|
3545
3563
|
"has-divider": "",
|
|
@@ -3593,7 +3611,7 @@ const Fe = (e) => {
|
|
|
3593
3611
|
]),
|
|
3594
3612
|
_: 1
|
|
3595
3613
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
|
|
3596
|
-
g(
|
|
3614
|
+
g(kd, {
|
|
3597
3615
|
visible: m.value,
|
|
3598
3616
|
onClose: R[2] || (R[2] = (L) => m.value = !1)
|
|
3599
3617
|
}, null, 8, ["visible"]),
|
|
@@ -3609,7 +3627,7 @@ const Fe = (e) => {
|
|
|
3609
3627
|
onCancel: xe,
|
|
3610
3628
|
onProceed: at
|
|
3611
3629
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
3612
|
-
g(
|
|
3630
|
+
g(Cd, {
|
|
3613
3631
|
config: e.config,
|
|
3614
3632
|
"redis-configuration-id": c.value,
|
|
3615
3633
|
visible: a.value,
|
|
@@ -3620,7 +3638,7 @@ const Fe = (e) => {
|
|
|
3620
3638
|
]);
|
|
3621
3639
|
};
|
|
3622
3640
|
}
|
|
3623
|
-
}),
|
|
3641
|
+
}), Xd = /* @__PURE__ */ te(Rd, [["__scopeId", "data-v-4e5be541"]]), xd = { class: "kong-ui-consumer-group-entity-config-card" }, eu = /* @__PURE__ */ Y({
|
|
3624
3642
|
__name: "RedisConfigurationConfigCard",
|
|
3625
3643
|
props: {
|
|
3626
3644
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3679,9 +3697,9 @@ const Fe = (e) => {
|
|
|
3679
3697
|
}), v = (_, E) => {
|
|
3680
3698
|
if (!_ || Object.keys(_).length === 0)
|
|
3681
3699
|
return {};
|
|
3682
|
-
const { id: s, name: A, created_at: k, updated_at: d, type:
|
|
3700
|
+
const { id: s, name: A, created_at: k, updated_at: d, type: I, tags: P, ...W } = _;
|
|
3683
3701
|
return E === "terraform" ? {
|
|
3684
|
-
[
|
|
3702
|
+
[I.replaceAll("-", "_")]: {
|
|
3685
3703
|
id: s,
|
|
3686
3704
|
name: A,
|
|
3687
3705
|
tags: P,
|
|
@@ -3695,7 +3713,7 @@ const Fe = (e) => {
|
|
|
3695
3713
|
tags: P,
|
|
3696
3714
|
created_at: k,
|
|
3697
3715
|
updated_at: d,
|
|
3698
|
-
type:
|
|
3716
|
+
type: I,
|
|
3699
3717
|
config: W
|
|
3700
3718
|
};
|
|
3701
3719
|
}, T = {
|
|
@@ -3943,7 +3961,7 @@ const Fe = (e) => {
|
|
|
3943
3961
|
throw new Error("Invalid Redis type");
|
|
3944
3962
|
}
|
|
3945
3963
|
});
|
|
3946
|
-
return (_, E) => (
|
|
3964
|
+
return (_, E) => (O(), J("div", xd, [
|
|
3947
3965
|
g(i(Mi), {
|
|
3948
3966
|
"code-block-record-formatter": v,
|
|
3949
3967
|
config: e.config,
|
|
@@ -3964,7 +3982,7 @@ const Fe = (e) => {
|
|
|
3964
3982
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
3965
3983
|
]));
|
|
3966
3984
|
}
|
|
3967
|
-
}),
|
|
3985
|
+
}), Ad = "12px";
|
|
3968
3986
|
function pi(e) {
|
|
3969
3987
|
const {
|
|
3970
3988
|
redisType: t = "redis-ce"
|
|
@@ -3977,7 +3995,7 @@ function pi(e) {
|
|
|
3977
3995
|
error: p,
|
|
3978
3996
|
loadItems: l,
|
|
3979
3997
|
results: u
|
|
3980
|
-
} =
|
|
3998
|
+
} = ji(o, Me.list[o.app], n, {
|
|
3981
3999
|
fetchedItemsKey: "data",
|
|
3982
4000
|
searchKeys: ["id", "name"]
|
|
3983
4001
|
}), v = (m) => {
|
|
@@ -4002,7 +4020,7 @@ function pi(e) {
|
|
|
4002
4020
|
loadItems: l
|
|
4003
4021
|
};
|
|
4004
4022
|
}
|
|
4005
|
-
const
|
|
4023
|
+
const Pd = ["id"], $d = /* @__PURE__ */ Y({
|
|
4006
4024
|
__name: "RedisConfigurationFormModal",
|
|
4007
4025
|
props: {
|
|
4008
4026
|
visible: { type: Boolean },
|
|
@@ -4033,20 +4051,20 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4033
4051
|
appearance: "success"
|
|
4034
4052
|
}), b(), n("created", _);
|
|
4035
4053
|
}, b = () => {
|
|
4036
|
-
v.value = void 0, n("modal-close"),
|
|
4054
|
+
v.value = void 0, n("modal-close"), jt(() => {
|
|
4037
4055
|
u.value = !1;
|
|
4038
4056
|
});
|
|
4039
4057
|
};
|
|
4040
4058
|
return Ce(
|
|
4041
4059
|
() => e.visible,
|
|
4042
4060
|
(_) => {
|
|
4043
|
-
_ && (u.value = !0,
|
|
4061
|
+
_ && (u.value = !0, jt(() => {
|
|
4044
4062
|
v.value = `#redis-modal-footer-${p}`;
|
|
4045
4063
|
}));
|
|
4046
4064
|
}
|
|
4047
4065
|
), (_, E) => {
|
|
4048
4066
|
const s = $("KModal");
|
|
4049
|
-
return
|
|
4067
|
+
return O(), N(s, {
|
|
4050
4068
|
class: "plugin-redis-partial-form",
|
|
4051
4069
|
"data-testid": "redis-partial-form-modal",
|
|
4052
4070
|
"full-screen": "",
|
|
@@ -4058,10 +4076,10 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4058
4076
|
K("div", {
|
|
4059
4077
|
id: `redis-modal-footer-${i(p)}`,
|
|
4060
4078
|
class: "redis-modal-footer"
|
|
4061
|
-
}, null, 8,
|
|
4079
|
+
}, null, 8, Pd)
|
|
4062
4080
|
]),
|
|
4063
4081
|
default: S(() => [
|
|
4064
|
-
g(
|
|
4082
|
+
g(pd, {
|
|
4065
4083
|
"action-teleport-target": v.value,
|
|
4066
4084
|
config: a.value,
|
|
4067
4085
|
"disabled-partial-type": l.value,
|
|
@@ -4075,13 +4093,13 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4075
4093
|
}, 8, ["title", "visible"]);
|
|
4076
4094
|
};
|
|
4077
4095
|
}
|
|
4078
|
-
}),
|
|
4096
|
+
}), Vd = /* @__PURE__ */ te($d, [["__scopeId", "data-v-280b73f4"]]), Md = { class: "selected-redis-config" }, jd = ["data-testid"], Dd = {
|
|
4079
4097
|
class: "select-item-name",
|
|
4080
4098
|
"data-testid": "selected-redis-config"
|
|
4081
|
-
},
|
|
4099
|
+
}, Ld = {
|
|
4082
4100
|
class: "empty-redis-config",
|
|
4083
4101
|
"data-testid": "empty-redis-config"
|
|
4084
|
-
},
|
|
4102
|
+
}, Ud = /* @__PURE__ */ Y({
|
|
4085
4103
|
inheritAttrs: !1,
|
|
4086
4104
|
__name: "RedisConfigurationSelector",
|
|
4087
4105
|
props: {
|
|
@@ -4120,7 +4138,7 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4120
4138
|
n("error-change", _ ? new Error(String(_)) : null);
|
|
4121
4139
|
}), (_, E) => {
|
|
4122
4140
|
const s = $("KBadge"), A = $("KSelect");
|
|
4123
|
-
return
|
|
4141
|
+
return O(), J(fe, null, [
|
|
4124
4142
|
g(A, ki({
|
|
4125
4143
|
class: "redis-config-select-trigger",
|
|
4126
4144
|
"enable-filtering": "",
|
|
@@ -4134,14 +4152,14 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4134
4152
|
onQueryChange: i(c)
|
|
4135
4153
|
}), gn({
|
|
4136
4154
|
"selected-item-template": S(({ item: k }) => [
|
|
4137
|
-
K("div",
|
|
4155
|
+
K("div", Md, B(k.name), 1)
|
|
4138
4156
|
]),
|
|
4139
4157
|
"item-template": S(({ item: k }) => [
|
|
4140
4158
|
K("div", {
|
|
4141
4159
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
4142
4160
|
"data-testid": `redis-configuration-dropdown-item-${k.name}`
|
|
4143
4161
|
}, [
|
|
4144
|
-
K("span",
|
|
4162
|
+
K("span", Dd, B(k.name), 1),
|
|
4145
4163
|
g(s, {
|
|
4146
4164
|
appearance: "info",
|
|
4147
4165
|
class: "select-item-label"
|
|
@@ -4151,10 +4169,10 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4151
4169
|
]),
|
|
4152
4170
|
_: 2
|
|
4153
4171
|
}, 1024)
|
|
4154
|
-
], 8,
|
|
4172
|
+
], 8, jd)
|
|
4155
4173
|
]),
|
|
4156
4174
|
empty: S(() => [
|
|
4157
|
-
K("div",
|
|
4175
|
+
K("div", Ld, B(e.emptyStateText || i(o)("selector.empty_state")), 1)
|
|
4158
4176
|
]),
|
|
4159
4177
|
_: 2
|
|
4160
4178
|
}, [
|
|
@@ -4166,14 +4184,14 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4166
4184
|
"data-testid": "new-redis-config-area",
|
|
4167
4185
|
onClick: T
|
|
4168
4186
|
}, [
|
|
4169
|
-
g(i(yt), { size: i(
|
|
4187
|
+
g(i(yt), { size: i(Ad) }, null, 8, ["size"]),
|
|
4170
4188
|
K("span", null, B(e.createButtonText || i(o)("selector.create_new")), 1)
|
|
4171
4189
|
])
|
|
4172
4190
|
]),
|
|
4173
4191
|
key: "0"
|
|
4174
4192
|
} : void 0
|
|
4175
4193
|
]), 1040, ["items", "loading", "model-value", "placeholder", "onQueryChange"]),
|
|
4176
|
-
g(
|
|
4194
|
+
g(Vd, {
|
|
4177
4195
|
"partial-type": e.redisType,
|
|
4178
4196
|
visible: u.value,
|
|
4179
4197
|
onCreated: b,
|
|
@@ -4183,23 +4201,23 @@ const xd = ["id"], Ad = /* @__PURE__ */ Y({
|
|
|
4183
4201
|
], 64);
|
|
4184
4202
|
};
|
|
4185
4203
|
}
|
|
4186
|
-
}),
|
|
4204
|
+
}), tu = /* @__PURE__ */ te(Ud, [["__scopeId", "data-v-3c6e44d3"]]), nu = {
|
|
4187
4205
|
useLinkedPlugins: fi,
|
|
4188
4206
|
useLinkedPluginsFetcher: Fe,
|
|
4189
4207
|
useRedisConfigurationSelector: pi
|
|
4190
4208
|
};
|
|
4191
4209
|
export {
|
|
4192
4210
|
q as AuthProvider,
|
|
4193
|
-
|
|
4194
|
-
|
|
4211
|
+
kd as DeleteWarningModal,
|
|
4212
|
+
Td as LinkedPlugins,
|
|
4195
4213
|
Q as PartialType,
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4214
|
+
eu as RedisConfigurationConfigCard,
|
|
4215
|
+
pd as RedisConfigurationForm,
|
|
4216
|
+
Vd as RedisConfigurationFormModal,
|
|
4217
|
+
Xd as RedisConfigurationList,
|
|
4218
|
+
tu as RedisConfigurationSelector,
|
|
4201
4219
|
w as RedisType,
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4220
|
+
nu as composables,
|
|
4221
|
+
Qd as constants,
|
|
4222
|
+
Yd as helpers
|
|
4205
4223
|
};
|