@kong-ui-public/entities-redis-configurations 1.8.25 → 1.9.0
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-redis-configurations.es.js +1341 -1334
- package/dist/entities-redis-configurations.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigurationForm.vue.d.ts.map +1 -1
- package/dist/types/composables/useRedisConfigurationForm.d.ts.map +1 -1
- package/dist/types/types/redis-configuration-form.d.ts +4 -0
- package/dist/types/types/redis-configuration-form.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as B, reactive as _n, ref as A, watch as Se, defineComponent as X, resolveComponent as P, createElementBlock as G, openBlock as R, createVNode as g, withCtx as E, renderSlot as gi, unref as r, mergeModels as Ct, useModel as kt, createElementVNode as K, createTextVNode as oe, toDisplayString as z, Fragment as ce, renderList as nt, createBlock as N, createCommentVNode as Q, getCurrentInstance as bi, onMounted as yi, onUnmounted as vi, isReadonly as hi, toRefs as wi, onBeforeMount as gn, isRef as Ti, createSlots as bn, withModifiers as Si, Teleport as Ei, inject as yn, useId as Ci, nextTick as Dt, 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
|
|
5
|
-
import { VaultSecretPickerProvider as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { TrashIcon as Di, AddCircleIcon as
|
|
8
|
-
import { createI18n as
|
|
9
|
-
import { PluginIcon as
|
|
10
|
-
import { FORMS_CONFIG as
|
|
11
|
-
var
|
|
4
|
+
import { useAxios as Ot, useErrors as vn, EntityBaseFormType as ut, EntityBaseForm as Oi, SupportedEntityType as hn, EntityFormSection as de, EntityFilter as wn, useDeleteUrlBuilder as Ii, useFetcher as Ri, FetcherStatus as xi, EntityBaseTable as Ai, PermissionsWrapper as He, 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
|
+
import { VaultSecretPickerProvider as Te, VaultSecretPicker as Tn } from "@kong-ui-public/entities-vaults";
|
|
6
|
+
import { useRouter as Sn } from "vue-router";
|
|
7
|
+
import { TrashIcon as Di, AddCircleIcon as En, AddIcon as vt, RefreshIcon as Li, ClipboardIcon as Ui, DeployIcon as Ni } from "@kong/icons";
|
|
8
|
+
import { createI18n as Fi, i18nTComponent as Bi } from "@kong-ui-public/i18n";
|
|
9
|
+
import { PluginIcon as Cn } from "@kong-ui-public/entities-plugins-icon";
|
|
10
|
+
import { FORMS_CONFIG as kn } from "@kong-ui-public/forms";
|
|
11
|
+
var T = /* @__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))(T || {}), Y = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(Y || {}), W = /* @__PURE__ */ ((e) => (e.AWS = "aws", e.GCP = "gcp", e.AZURE = "azure", e))(W || {}), On = typeof global == "object" && global && global.Object === Object && global, zi = typeof self == "object" && self && self.Object === Object && self, ae = On || zi || Function("return this")(), te = ae.Symbol, In = Object.prototype, Ki = In.hasOwnProperty, Hi = In.toString, De = te ? te.toStringTag : void 0;
|
|
12
12
|
function Wi(e) {
|
|
13
|
-
var t = Ki.call(e,
|
|
13
|
+
var t = Ki.call(e, De), n = e[De];
|
|
14
14
|
try {
|
|
15
|
-
e[
|
|
15
|
+
e[De] = void 0;
|
|
16
16
|
var o = !0;
|
|
17
17
|
} catch {
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
return o && (t ? e[
|
|
19
|
+
var i = Hi.call(e);
|
|
20
|
+
return o && (t ? e[De] = n : delete e[De]), i;
|
|
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]", Lt = te ? te.toStringTag : void 0;
|
|
27
|
+
function Ce(e) {
|
|
28
|
+
return e == null ? e === void 0 ? Qi : Zi : Lt && Lt in Object(e) ? Wi(e) : Ji(e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function pe(e) {
|
|
31
31
|
return e != null && typeof e == "object";
|
|
32
32
|
}
|
|
33
33
|
var Yi = "[object Symbol]";
|
|
34
|
-
function
|
|
35
|
-
return typeof e == "symbol" ||
|
|
34
|
+
function It(e) {
|
|
35
|
+
return typeof e == "symbol" || pe(e) && Ce(e) == Yi;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
for (var n = -1, o = e == null ? 0 : e.length,
|
|
39
|
-
|
|
40
|
-
return
|
|
37
|
+
function Rn(e, t) {
|
|
38
|
+
for (var n = -1, o = e == null ? 0 : e.length, i = Array(o); ++n < o; )
|
|
39
|
+
i[n] = t(e[n], n, e);
|
|
40
|
+
return i;
|
|
41
41
|
}
|
|
42
|
-
var
|
|
43
|
-
function
|
|
42
|
+
var me = Array.isArray, Ut = te ? te.prototype : void 0, Nt = Ut ? Ut.toString : void 0;
|
|
43
|
+
function xn(e) {
|
|
44
44
|
if (typeof e == "string")
|
|
45
45
|
return e;
|
|
46
|
-
if (
|
|
47
|
-
return
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
46
|
+
if (me(e))
|
|
47
|
+
return Rn(e, xn) + "";
|
|
48
|
+
if (It(e))
|
|
49
|
+
return Nt ? Nt.call(e) : "";
|
|
50
50
|
var t = e + "";
|
|
51
51
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function it(e) {
|
|
54
54
|
var t = typeof e;
|
|
55
55
|
return e != null && (t == "object" || t == "function");
|
|
56
56
|
}
|
|
@@ -58,21 +58,21 @@ function Xi(e) {
|
|
|
58
58
|
return e;
|
|
59
59
|
}
|
|
60
60
|
var er = "[object AsyncFunction]", tr = "[object Function]", nr = "[object GeneratorFunction]", ir = "[object Proxy]";
|
|
61
|
-
function
|
|
62
|
-
if (!
|
|
61
|
+
function An(e) {
|
|
62
|
+
if (!it(e))
|
|
63
63
|
return !1;
|
|
64
|
-
var t =
|
|
64
|
+
var t = Ce(e);
|
|
65
65
|
return t == tr || t == nr || t == er || t == ir;
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
var e = /[^.]+$/.exec(
|
|
67
|
+
var ct = ae["__core-js_shared__"], Ft = function() {
|
|
68
|
+
var e = /[^.]+$/.exec(ct && ct.keys && ct.keys.IE_PROTO || "");
|
|
69
69
|
return e ? "Symbol(src)_1." + e : "";
|
|
70
70
|
}();
|
|
71
71
|
function rr(e) {
|
|
72
|
-
return !!
|
|
72
|
+
return !!Ft && Ft in e;
|
|
73
73
|
}
|
|
74
74
|
var or = Function.prototype, ar = or.toString;
|
|
75
|
-
function
|
|
75
|
+
function ke(e) {
|
|
76
76
|
if (e != null) {
|
|
77
77
|
try {
|
|
78
78
|
return ar.call(e);
|
|
@@ -89,19 +89,19 @@ var lr = /[\\^$.*+?()[\]{}|]/g, sr = /^\[object .+?Constructor\]$/, dr = Functio
|
|
|
89
89
|
"^" + cr.call(fr).replace(lr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
90
90
|
);
|
|
91
91
|
function mr(e) {
|
|
92
|
-
if (!
|
|
92
|
+
if (!it(e) || rr(e))
|
|
93
93
|
return !1;
|
|
94
|
-
var t =
|
|
95
|
-
return t.test(
|
|
94
|
+
var t = An(e) ? pr : sr;
|
|
95
|
+
return t.test(ke(e));
|
|
96
96
|
}
|
|
97
97
|
function _r(e, t) {
|
|
98
98
|
return e == null ? void 0 : e[t];
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Oe(e, t) {
|
|
101
101
|
var n = _r(e, t);
|
|
102
102
|
return mr(n) ? n : void 0;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var ht = Oe(ae, "WeakMap");
|
|
105
105
|
function gr(e, t, n) {
|
|
106
106
|
switch (n.length) {
|
|
107
107
|
case 0:
|
|
@@ -119,8 +119,8 @@ var br = 800, yr = 16, vr = Date.now;
|
|
|
119
119
|
function hr(e) {
|
|
120
120
|
var t = 0, n = 0;
|
|
121
121
|
return function() {
|
|
122
|
-
var o = vr(),
|
|
123
|
-
if (n = o,
|
|
122
|
+
var o = vr(), i = yr - (o - n);
|
|
123
|
+
if (n = o, i > 0) {
|
|
124
124
|
if (++t >= br)
|
|
125
125
|
return arguments[0];
|
|
126
126
|
} else
|
|
@@ -133,14 +133,14 @@ function wr(e) {
|
|
|
133
133
|
return e;
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var Ze = function() {
|
|
137
137
|
try {
|
|
138
|
-
var e =
|
|
138
|
+
var e = Oe(Object, "defineProperty");
|
|
139
139
|
return e({}, "", {}), e;
|
|
140
140
|
} catch {
|
|
141
141
|
}
|
|
142
|
-
}(), Tr =
|
|
143
|
-
return
|
|
142
|
+
}(), Tr = Ze ? function(e, t) {
|
|
143
|
+
return Ze(e, "toString", {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !1,
|
|
146
146
|
value: wr(t),
|
|
@@ -157,51 +157,51 @@ 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
|
}
|
|
160
|
-
function
|
|
161
|
-
t == "__proto__" &&
|
|
160
|
+
function Pn(e, t, n) {
|
|
161
|
+
t == "__proto__" && Ze ? Ze(e, t, {
|
|
162
162
|
configurable: !0,
|
|
163
163
|
enumerable: !0,
|
|
164
164
|
value: n,
|
|
165
165
|
writable: !0
|
|
166
166
|
}) : e[t] = n;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Rt(e, t) {
|
|
169
169
|
return e === t || e !== e && t !== t;
|
|
170
170
|
}
|
|
171
171
|
var Ir = Object.prototype, Rr = Ir.hasOwnProperty;
|
|
172
|
-
function
|
|
172
|
+
function $n(e, t, n) {
|
|
173
173
|
var o = e[t];
|
|
174
|
-
(!(Rr.call(e, t) &&
|
|
174
|
+
(!(Rr.call(e, t) && Rt(o, n)) || n === void 0 && !(t in e)) && Pn(e, t, n);
|
|
175
175
|
}
|
|
176
176
|
function xr(e, t, n, o) {
|
|
177
|
-
var
|
|
177
|
+
var i = !n;
|
|
178
178
|
n || (n = {});
|
|
179
179
|
for (var a = -1, c = t.length; ++a < c; ) {
|
|
180
|
-
var
|
|
181
|
-
l === void 0 && (l = e[
|
|
180
|
+
var f = t[a], l = void 0;
|
|
181
|
+
l === void 0 && (l = e[f]), i ? Pn(n, f, l) : $n(n, f, l);
|
|
182
182
|
}
|
|
183
183
|
return n;
|
|
184
184
|
}
|
|
185
185
|
var Bt = Math.max;
|
|
186
186
|
function Ar(e, t, n) {
|
|
187
187
|
return t = Bt(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
188
|
-
for (var o = arguments,
|
|
189
|
-
c[
|
|
190
|
-
|
|
191
|
-
for (var
|
|
192
|
-
|
|
193
|
-
return
|
|
188
|
+
for (var o = arguments, i = -1, a = Bt(o.length - t, 0), c = Array(a); ++i < a; )
|
|
189
|
+
c[i] = o[t + i];
|
|
190
|
+
i = -1;
|
|
191
|
+
for (var f = Array(t + 1); ++i < t; )
|
|
192
|
+
f[i] = o[i];
|
|
193
|
+
return f[t] = n(c), gr(e, this, f);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
var Pr = 9007199254740991;
|
|
197
|
-
function
|
|
197
|
+
function Vn(e) {
|
|
198
198
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Pr;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
return e != null &&
|
|
200
|
+
function Mn(e) {
|
|
201
|
+
return e != null && Vn(e.length) && !An(e);
|
|
202
202
|
}
|
|
203
203
|
var $r = Object.prototype;
|
|
204
|
-
function
|
|
204
|
+
function jn(e) {
|
|
205
205
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || $r;
|
|
206
206
|
return e === n;
|
|
207
207
|
}
|
|
@@ -211,53 +211,53 @@ function Vr(e, t) {
|
|
|
211
211
|
return o;
|
|
212
212
|
}
|
|
213
213
|
var Mr = "[object Arguments]";
|
|
214
|
-
function
|
|
215
|
-
return
|
|
214
|
+
function zt(e) {
|
|
215
|
+
return pe(e) && Ce(e) == Mr;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var Dn = Object.prototype, jr = Dn.hasOwnProperty, Dr = Dn.propertyIsEnumerable, Ln = zt(/* @__PURE__ */ function() {
|
|
218
218
|
return arguments;
|
|
219
|
-
}()) ?
|
|
220
|
-
return
|
|
219
|
+
}()) ? zt : function(e) {
|
|
220
|
+
return pe(e) && jr.call(e, "callee") && !Dr.call(e, "callee");
|
|
221
221
|
};
|
|
222
222
|
function Lr() {
|
|
223
223
|
return !1;
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
var Un = typeof exports == "object" && exports && !exports.nodeType && exports, Kt = Un && typeof module == "object" && module && !module.nodeType && module, Ur = Kt && Kt.exports === Un, Ht = Ur ? ae.Buffer : void 0, Nr = Ht ? Ht.isBuffer : void 0, Qe = Nr || Lr, Fr = "[object Arguments]", Br = "[object Array]", zr = "[object Boolean]", Kr = "[object Date]", Hr = "[object Error]", Wr = "[object Function]", qr = "[object Map]", Gr = "[object Number]", Jr = "[object Object]", Zr = "[object RegExp]", Qr = "[object Set]", Yr = "[object String]", Xr = "[object WeakMap]", eo = "[object ArrayBuffer]", to = "[object DataView]", no = "[object Float32Array]", io = "[object Float64Array]", ro = "[object Int8Array]", oo = "[object Int16Array]", ao = "[object Int32Array]", lo = "[object Uint8Array]", so = "[object Uint8ClampedArray]", uo = "[object Uint16Array]", co = "[object Uint32Array]", L = {};
|
|
226
|
+
L[no] = L[io] = L[ro] = L[oo] = L[ao] = L[lo] = L[so] = L[uo] = L[co] = !0;
|
|
227
|
+
L[Fr] = L[Br] = L[eo] = L[zr] = L[to] = L[Kr] = L[Hr] = L[Wr] = L[qr] = L[Gr] = L[Jr] = L[Zr] = L[Qr] = L[Yr] = L[Xr] = !1;
|
|
228
228
|
function fo(e) {
|
|
229
|
-
return
|
|
229
|
+
return pe(e) && Vn(e.length) && !!L[Ce(e)];
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function xt(e) {
|
|
232
232
|
return function(t) {
|
|
233
233
|
return e(t);
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
var
|
|
236
|
+
var Nn = typeof exports == "object" && exports && !exports.nodeType && exports, Le = Nn && typeof module == "object" && module && !module.nodeType && module, po = Le && Le.exports === Nn, ft = po && On.process, Ve = function() {
|
|
237
237
|
try {
|
|
238
|
-
var e =
|
|
239
|
-
return e ||
|
|
238
|
+
var e = Le && Le.require && Le.require("util").types;
|
|
239
|
+
return e || ft && ft.binding && ft.binding("util");
|
|
240
240
|
} catch {
|
|
241
241
|
}
|
|
242
|
-
}(),
|
|
242
|
+
}(), Wt = Ve && Ve.isTypedArray, Fn = Wt ? xt(Wt) : fo, mo = Object.prototype, _o = mo.hasOwnProperty;
|
|
243
243
|
function Bn(e, t) {
|
|
244
|
-
var n =
|
|
244
|
+
var n = me(e), o = !n && Ln(e), i = !n && !o && Qe(e), a = !n && !o && !i && Fn(e), c = n || o || i || a, f = c ? Vr(e.length, String) : [], l = f.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
|
+
i && (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
|
-
Or(u, l))) &&
|
|
251
|
-
return
|
|
250
|
+
Or(u, l))) && f.push(u);
|
|
251
|
+
return f;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function zn(e, t) {
|
|
254
254
|
return function(n) {
|
|
255
255
|
return e(t(n));
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
|
-
var go =
|
|
258
|
+
var go = zn(Object.keys, Object), bo = Object.prototype, yo = bo.hasOwnProperty;
|
|
259
259
|
function vo(e) {
|
|
260
|
-
if (!
|
|
260
|
+
if (!jn(e))
|
|
261
261
|
return go(e);
|
|
262
262
|
var t = [];
|
|
263
263
|
for (var n in Object(e))
|
|
@@ -265,7 +265,7 @@ function vo(e) {
|
|
|
265
265
|
return t;
|
|
266
266
|
}
|
|
267
267
|
function ho(e) {
|
|
268
|
-
return
|
|
268
|
+
return Mn(e) ? Bn(e) : vo(e);
|
|
269
269
|
}
|
|
270
270
|
function wo(e) {
|
|
271
271
|
var t = [];
|
|
@@ -276,26 +276,26 @@ function wo(e) {
|
|
|
276
276
|
}
|
|
277
277
|
var To = Object.prototype, So = To.hasOwnProperty;
|
|
278
278
|
function Eo(e) {
|
|
279
|
-
if (!
|
|
279
|
+
if (!it(e))
|
|
280
280
|
return wo(e);
|
|
281
|
-
var t =
|
|
281
|
+
var t = jn(e), n = [];
|
|
282
282
|
for (var o in e)
|
|
283
283
|
o == "constructor" && (t || !So.call(e, o)) || n.push(o);
|
|
284
284
|
return n;
|
|
285
285
|
}
|
|
286
286
|
function Co(e) {
|
|
287
|
-
return
|
|
287
|
+
return Mn(e) ? Bn(e, !0) : Eo(e);
|
|
288
288
|
}
|
|
289
289
|
var ko = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Oo = /^\w*$/;
|
|
290
290
|
function Io(e, t) {
|
|
291
|
-
if (
|
|
291
|
+
if (me(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 || It(e) ? !0 : Oo.test(e) || !ko.test(e) || t != null && e in Object(t);
|
|
295
295
|
}
|
|
296
|
-
var
|
|
296
|
+
var Ue = Oe(Object, "create");
|
|
297
297
|
function Ro() {
|
|
298
|
-
this.__data__ =
|
|
298
|
+
this.__data__ = Ue ? Ue(null) : {}, this.size = 0;
|
|
299
299
|
}
|
|
300
300
|
function xo(e) {
|
|
301
301
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -304,7 +304,7 @@ function xo(e) {
|
|
|
304
304
|
var Ao = "__lodash_hash_undefined__", Po = Object.prototype, $o = Po.hasOwnProperty;
|
|
305
305
|
function Vo(e) {
|
|
306
306
|
var t = this.__data__;
|
|
307
|
-
if (
|
|
307
|
+
if (Ue) {
|
|
308
308
|
var n = t[e];
|
|
309
309
|
return n === Ao ? void 0 : n;
|
|
310
310
|
}
|
|
@@ -313,168 +313,168 @@ function Vo(e) {
|
|
|
313
313
|
var Mo = Object.prototype, jo = Mo.hasOwnProperty;
|
|
314
314
|
function Do(e) {
|
|
315
315
|
var t = this.__data__;
|
|
316
|
-
return
|
|
316
|
+
return Ue ? t[e] !== void 0 : jo.call(t, e);
|
|
317
317
|
}
|
|
318
318
|
var Lo = "__lodash_hash_undefined__";
|
|
319
319
|
function Uo(e, t) {
|
|
320
320
|
var n = this.__data__;
|
|
321
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
321
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Ue && t === void 0 ? Lo : t, this;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Ee(e) {
|
|
324
324
|
var t = -1, n = e == null ? 0 : e.length;
|
|
325
325
|
for (this.clear(); ++t < n; ) {
|
|
326
326
|
var o = e[t];
|
|
327
327
|
this.set(o[0], o[1]);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
330
|
+
Ee.prototype.clear = Ro;
|
|
331
|
+
Ee.prototype.delete = xo;
|
|
332
|
+
Ee.prototype.get = Vo;
|
|
333
|
+
Ee.prototype.has = Do;
|
|
334
|
+
Ee.prototype.set = Uo;
|
|
335
335
|
function No() {
|
|
336
336
|
this.__data__ = [], this.size = 0;
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function rt(e, t) {
|
|
339
339
|
for (var n = e.length; n--; )
|
|
340
|
-
if (
|
|
340
|
+
if (Rt(e[n][0], t))
|
|
341
341
|
return n;
|
|
342
342
|
return -1;
|
|
343
343
|
}
|
|
344
|
-
var
|
|
344
|
+
var Fo = Array.prototype, Bo = Fo.splice;
|
|
345
345
|
function zo(e) {
|
|
346
|
-
var t = this.__data__, n =
|
|
346
|
+
var t = this.__data__, n = rt(t, e);
|
|
347
347
|
if (n < 0)
|
|
348
348
|
return !1;
|
|
349
349
|
var o = t.length - 1;
|
|
350
|
-
return n == o ? t.pop() :
|
|
350
|
+
return n == o ? t.pop() : Bo.call(t, n, 1), --this.size, !0;
|
|
351
351
|
}
|
|
352
352
|
function Ko(e) {
|
|
353
|
-
var t = this.__data__, n =
|
|
353
|
+
var t = this.__data__, n = rt(t, e);
|
|
354
354
|
return n < 0 ? void 0 : t[n][1];
|
|
355
355
|
}
|
|
356
356
|
function Ho(e) {
|
|
357
|
-
return
|
|
357
|
+
return rt(this.__data__, e) > -1;
|
|
358
358
|
}
|
|
359
359
|
function Wo(e, t) {
|
|
360
|
-
var n = this.__data__, o =
|
|
360
|
+
var n = this.__data__, o = rt(n, e);
|
|
361
361
|
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function _e(e) {
|
|
364
364
|
var t = -1, n = e == null ? 0 : e.length;
|
|
365
365
|
for (this.clear(); ++t < n; ) {
|
|
366
366
|
var o = e[t];
|
|
367
367
|
this.set(o[0], o[1]);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
var
|
|
370
|
+
_e.prototype.clear = No;
|
|
371
|
+
_e.prototype.delete = zo;
|
|
372
|
+
_e.prototype.get = Ko;
|
|
373
|
+
_e.prototype.has = Ho;
|
|
374
|
+
_e.prototype.set = Wo;
|
|
375
|
+
var Ne = Oe(ae, "Map");
|
|
376
376
|
function qo() {
|
|
377
377
|
this.size = 0, this.__data__ = {
|
|
378
|
-
hash: new
|
|
379
|
-
map: new (
|
|
380
|
-
string: new
|
|
378
|
+
hash: new Ee(),
|
|
379
|
+
map: new (Ne || _e)(),
|
|
380
|
+
string: new Ee()
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
383
|
function Go(e) {
|
|
384
384
|
var t = typeof e;
|
|
385
385
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function ot(e, t) {
|
|
388
388
|
var n = e.__data__;
|
|
389
389
|
return Go(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
390
390
|
}
|
|
391
391
|
function Jo(e) {
|
|
392
|
-
var t =
|
|
392
|
+
var t = ot(this, e).delete(e);
|
|
393
393
|
return this.size -= t ? 1 : 0, t;
|
|
394
394
|
}
|
|
395
395
|
function Zo(e) {
|
|
396
|
-
return
|
|
396
|
+
return ot(this, e).get(e);
|
|
397
397
|
}
|
|
398
398
|
function Qo(e) {
|
|
399
|
-
return
|
|
399
|
+
return ot(this, e).has(e);
|
|
400
400
|
}
|
|
401
401
|
function Yo(e, t) {
|
|
402
|
-
var n =
|
|
402
|
+
var n = ot(this, e), o = n.size;
|
|
403
403
|
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ge(e) {
|
|
406
406
|
var t = -1, n = e == null ? 0 : e.length;
|
|
407
407
|
for (this.clear(); ++t < n; ) {
|
|
408
408
|
var o = e[t];
|
|
409
409
|
this.set(o[0], o[1]);
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
412
|
+
ge.prototype.clear = qo;
|
|
413
|
+
ge.prototype.delete = Jo;
|
|
414
|
+
ge.prototype.get = Zo;
|
|
415
|
+
ge.prototype.has = Qo;
|
|
416
|
+
ge.prototype.set = Yo;
|
|
417
417
|
var Xo = "Expected a function";
|
|
418
|
-
function
|
|
418
|
+
function At(e, t) {
|
|
419
419
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
420
420
|
throw new TypeError(Xo);
|
|
421
421
|
var n = function() {
|
|
422
|
-
var o = arguments,
|
|
423
|
-
if (a.has(
|
|
424
|
-
return a.get(
|
|
422
|
+
var o = arguments, i = t ? t.apply(this, o) : o[0], a = n.cache;
|
|
423
|
+
if (a.has(i))
|
|
424
|
+
return a.get(i);
|
|
425
425
|
var c = e.apply(this, o);
|
|
426
|
-
return n.cache = a.set(
|
|
426
|
+
return n.cache = a.set(i, c) || a, c;
|
|
427
427
|
};
|
|
428
|
-
return n.cache = new (
|
|
428
|
+
return n.cache = new (At.Cache || ge)(), n;
|
|
429
429
|
}
|
|
430
|
-
|
|
430
|
+
At.Cache = ge;
|
|
431
431
|
var ea = 500;
|
|
432
432
|
function ta(e) {
|
|
433
|
-
var t =
|
|
433
|
+
var t = At(e, function(o) {
|
|
434
434
|
return n.size === ea && n.clear(), o;
|
|
435
435
|
}), n = t.cache;
|
|
436
436
|
return t;
|
|
437
437
|
}
|
|
438
438
|
var na = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ia = /\\(\\)?/g, ra = ta(function(e) {
|
|
439
439
|
var t = [];
|
|
440
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(na, function(n, o,
|
|
441
|
-
t.push(
|
|
440
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(na, function(n, o, i, a) {
|
|
441
|
+
t.push(i ? a.replace(ia, "$1") : o || n);
|
|
442
442
|
}), t;
|
|
443
443
|
});
|
|
444
444
|
function oa(e) {
|
|
445
|
-
return e == null ? "" :
|
|
445
|
+
return e == null ? "" : xn(e);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
return
|
|
447
|
+
function Pt(e, t) {
|
|
448
|
+
return me(e) ? e : Io(e, t) ? [e] : ra(oa(e));
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
if (typeof e == "string" ||
|
|
450
|
+
function Kn(e) {
|
|
451
|
+
if (typeof e == "string" || It(e))
|
|
452
452
|
return e;
|
|
453
453
|
var t = e + "";
|
|
454
454
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
455
455
|
}
|
|
456
456
|
function aa(e, t) {
|
|
457
|
-
t =
|
|
457
|
+
t = Pt(t, e);
|
|
458
458
|
for (var n = 0, o = t.length; e != null && n < o; )
|
|
459
|
-
e = e[
|
|
459
|
+
e = e[Kn(t[n++])];
|
|
460
460
|
return n && n == o ? e : void 0;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
for (var n = -1, o = t.length,
|
|
464
|
-
e[
|
|
462
|
+
function $t(e, t) {
|
|
463
|
+
for (var n = -1, o = t.length, i = e.length; ++n < o; )
|
|
464
|
+
e[i + n] = t[n];
|
|
465
465
|
return e;
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var qt = te ? te.isConcatSpreadable : void 0;
|
|
468
468
|
function la(e) {
|
|
469
|
-
return
|
|
469
|
+
return me(e) || Ln(e) || !!(qt && e && e[qt]);
|
|
470
470
|
}
|
|
471
|
-
function sa(e, t, n, o,
|
|
471
|
+
function sa(e, t, n, o, i) {
|
|
472
472
|
var a = -1, c = e.length;
|
|
473
|
-
for (n || (n = la),
|
|
474
|
-
var
|
|
475
|
-
n(
|
|
473
|
+
for (n || (n = la), i || (i = []); ++a < c; ) {
|
|
474
|
+
var f = e[a];
|
|
475
|
+
n(f) ? $t(i, f) : i[i.length] = f;
|
|
476
476
|
}
|
|
477
|
-
return
|
|
477
|
+
return i;
|
|
478
478
|
}
|
|
479
479
|
function da(e) {
|
|
480
480
|
var t = e == null ? 0 : e.length;
|
|
@@ -483,25 +483,25 @@ function da(e) {
|
|
|
483
483
|
function ua(e) {
|
|
484
484
|
return Sr(Ar(e, void 0, da), e + "");
|
|
485
485
|
}
|
|
486
|
-
var
|
|
486
|
+
var Hn = zn(Object.getPrototypeOf, Object), ca = "[object Object]", fa = Function.prototype, pa = Object.prototype, Wn = fa.toString, ma = pa.hasOwnProperty, _a = Wn.call(Object);
|
|
487
487
|
function ga(e) {
|
|
488
|
-
if (!
|
|
488
|
+
if (!pe(e) || Ce(e) != ca)
|
|
489
489
|
return !1;
|
|
490
|
-
var t =
|
|
490
|
+
var t = Hn(e);
|
|
491
491
|
if (t === null)
|
|
492
492
|
return !0;
|
|
493
493
|
var n = ma.call(t, "constructor") && t.constructor;
|
|
494
|
-
return typeof n == "function" && n instanceof n &&
|
|
494
|
+
return typeof n == "function" && n instanceof n && Wn.call(n) == _a;
|
|
495
495
|
}
|
|
496
496
|
function ba(e, t, n) {
|
|
497
|
-
var o = -1,
|
|
498
|
-
t < 0 && (t = -t >
|
|
499
|
-
for (var a = Array(
|
|
497
|
+
var o = -1, i = e.length;
|
|
498
|
+
t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
|
|
499
|
+
for (var a = Array(i); ++o < i; )
|
|
500
500
|
a[o] = e[o + t];
|
|
501
501
|
return a;
|
|
502
502
|
}
|
|
503
503
|
function ya() {
|
|
504
|
-
this.__data__ = new
|
|
504
|
+
this.__data__ = new _e(), this.size = 0;
|
|
505
505
|
}
|
|
506
506
|
function va(e) {
|
|
507
507
|
var t = this.__data__, n = t.delete(e);
|
|
@@ -516,72 +516,72 @@ function wa(e) {
|
|
|
516
516
|
var Ta = 200;
|
|
517
517
|
function Sa(e, t) {
|
|
518
518
|
var n = this.__data__;
|
|
519
|
-
if (n instanceof
|
|
519
|
+
if (n instanceof _e) {
|
|
520
520
|
var o = n.__data__;
|
|
521
|
-
if (!
|
|
521
|
+
if (!Ne || o.length < Ta - 1)
|
|
522
522
|
return o.push([e, t]), this.size = ++n.size, this;
|
|
523
|
-
n = this.__data__ = new
|
|
523
|
+
n = this.__data__ = new ge(o);
|
|
524
524
|
}
|
|
525
525
|
return n.set(e, t), this.size = n.size, this;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
var t = this.__data__ = new
|
|
527
|
+
function fe(e) {
|
|
528
|
+
var t = this.__data__ = new _e(e);
|
|
529
529
|
this.size = t.size;
|
|
530
530
|
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
var
|
|
537
|
-
|
|
531
|
+
fe.prototype.clear = ya;
|
|
532
|
+
fe.prototype.delete = va;
|
|
533
|
+
fe.prototype.get = ha;
|
|
534
|
+
fe.prototype.has = wa;
|
|
535
|
+
fe.prototype.set = Sa;
|
|
536
|
+
var qn = typeof exports == "object" && exports && !exports.nodeType && exports, Gt = qn && typeof module == "object" && module && !module.nodeType && module, Ea = Gt && Gt.exports === qn, Jt = Ea ? ae.Buffer : void 0;
|
|
537
|
+
Jt && Jt.allocUnsafe;
|
|
538
538
|
function Ca(e, t) {
|
|
539
539
|
return e.slice();
|
|
540
540
|
}
|
|
541
541
|
function ka(e, t) {
|
|
542
|
-
for (var n = -1, o = e == null ? 0 : e.length,
|
|
542
|
+
for (var n = -1, o = e == null ? 0 : e.length, i = 0, a = []; ++n < o; ) {
|
|
543
543
|
var c = e[n];
|
|
544
|
-
t(c, n, e) && (a[
|
|
544
|
+
t(c, n, e) && (a[i++] = c);
|
|
545
545
|
}
|
|
546
546
|
return a;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Gn() {
|
|
549
549
|
return [];
|
|
550
550
|
}
|
|
551
|
-
var Oa = Object.prototype, Ia = Oa.propertyIsEnumerable,
|
|
552
|
-
return e == null ? [] : (e = Object(e), ka(
|
|
551
|
+
var Oa = Object.prototype, Ia = Oa.propertyIsEnumerable, Zt = Object.getOwnPropertySymbols, Jn = Zt ? function(e) {
|
|
552
|
+
return e == null ? [] : (e = Object(e), ka(Zt(e), function(t) {
|
|
553
553
|
return Ia.call(e, t);
|
|
554
554
|
}));
|
|
555
|
-
} :
|
|
555
|
+
} : Gn, Ra = Object.getOwnPropertySymbols, xa = Ra ? function(e) {
|
|
556
556
|
for (var t = []; e; )
|
|
557
|
-
|
|
557
|
+
$t(t, Jn(e)), e = Hn(e);
|
|
558
558
|
return t;
|
|
559
|
-
} :
|
|
560
|
-
function
|
|
559
|
+
} : Gn;
|
|
560
|
+
function Zn(e, t, n) {
|
|
561
561
|
var o = t(e);
|
|
562
|
-
return
|
|
562
|
+
return me(e) ? o : $t(o, n(e));
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
564
|
+
function Qt(e) {
|
|
565
|
+
return Zn(e, ho, Jn);
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
return
|
|
567
|
+
function Qn(e) {
|
|
568
|
+
return Zn(e, Co, xa);
|
|
569
569
|
}
|
|
570
|
-
var
|
|
571
|
-
(
|
|
572
|
-
var t =
|
|
570
|
+
var wt = Oe(ae, "DataView"), Tt = Oe(ae, "Promise"), St = Oe(ae, "Set"), Yt = "[object Map]", Aa = "[object Object]", Xt = "[object Promise]", en = "[object Set]", tn = "[object WeakMap]", nn = "[object DataView]", Pa = ke(wt), $a = ke(Ne), Va = ke(Tt), Ma = ke(St), ja = ke(ht), re = Ce;
|
|
571
|
+
(wt && re(new wt(new ArrayBuffer(1))) != nn || Ne && re(new Ne()) != Yt || Tt && re(Tt.resolve()) != Xt || St && re(new St()) != en || ht && re(new ht()) != tn) && (re = function(e) {
|
|
572
|
+
var t = Ce(e), n = t == Aa ? e.constructor : void 0, o = n ? ke(n) : "";
|
|
573
573
|
if (o)
|
|
574
574
|
switch (o) {
|
|
575
575
|
case Pa:
|
|
576
|
-
return
|
|
576
|
+
return nn;
|
|
577
577
|
case $a:
|
|
578
|
-
return Qt;
|
|
579
|
-
case Va:
|
|
580
578
|
return Yt;
|
|
581
|
-
case
|
|
579
|
+
case Va:
|
|
582
580
|
return Xt;
|
|
583
|
-
case
|
|
581
|
+
case Ma:
|
|
584
582
|
return en;
|
|
583
|
+
case ja:
|
|
584
|
+
return tn;
|
|
585
585
|
}
|
|
586
586
|
return t;
|
|
587
587
|
});
|
|
@@ -590,26 +590,26 @@ 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;
|
|
592
592
|
}
|
|
593
|
-
var
|
|
594
|
-
function
|
|
593
|
+
var Ye = ae.Uint8Array;
|
|
594
|
+
function Vt(e) {
|
|
595
595
|
var t = new e.constructor(e.byteLength);
|
|
596
|
-
return new
|
|
596
|
+
return new Ye(t).set(new Ye(e)), t;
|
|
597
597
|
}
|
|
598
598
|
function Na(e, t) {
|
|
599
|
-
var n =
|
|
599
|
+
var n = Vt(e.buffer);
|
|
600
600
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
601
601
|
}
|
|
602
|
-
var
|
|
603
|
-
function
|
|
604
|
-
var t = new e.constructor(e.source,
|
|
602
|
+
var Fa = /\w*$/;
|
|
603
|
+
function Ba(e) {
|
|
604
|
+
var t = new e.constructor(e.source, Fa.exec(e));
|
|
605
605
|
return t.lastIndex = e.lastIndex, t;
|
|
606
606
|
}
|
|
607
|
-
var
|
|
607
|
+
var rn = te ? te.prototype : void 0, on = rn ? rn.valueOf : void 0;
|
|
608
608
|
function za(e) {
|
|
609
|
-
return
|
|
609
|
+
return on ? Object(on.call(e)) : {};
|
|
610
610
|
}
|
|
611
611
|
function Ka(e, t) {
|
|
612
|
-
var n =
|
|
612
|
+
var n = Vt(e.buffer);
|
|
613
613
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
614
614
|
}
|
|
615
615
|
var Ha = "[object Boolean]", Wa = "[object Date]", qa = "[object Map]", Ga = "[object Number]", Ja = "[object RegExp]", Za = "[object Set]", Qa = "[object String]", Ya = "[object Symbol]", Xa = "[object ArrayBuffer]", el = "[object DataView]", tl = "[object Float32Array]", nl = "[object Float64Array]", il = "[object Int8Array]", rl = "[object Int16Array]", ol = "[object Int32Array]", al = "[object Uint8Array]", ll = "[object Uint8ClampedArray]", sl = "[object Uint16Array]", dl = "[object Uint32Array]";
|
|
@@ -617,7 +617,7 @@ function ul(e, t, n) {
|
|
|
617
617
|
var o = e.constructor;
|
|
618
618
|
switch (t) {
|
|
619
619
|
case Xa:
|
|
620
|
-
return
|
|
620
|
+
return Vt(e);
|
|
621
621
|
case Ha:
|
|
622
622
|
case Wa:
|
|
623
623
|
return new o(+e);
|
|
@@ -639,7 +639,7 @@ function ul(e, t, n) {
|
|
|
639
639
|
case Qa:
|
|
640
640
|
return new o(e);
|
|
641
641
|
case Ja:
|
|
642
|
-
return
|
|
642
|
+
return Ba(e);
|
|
643
643
|
case Za:
|
|
644
644
|
return new o();
|
|
645
645
|
case Ya:
|
|
@@ -648,64 +648,64 @@ function ul(e, t, n) {
|
|
|
648
648
|
}
|
|
649
649
|
var cl = "[object Map]";
|
|
650
650
|
function fl(e) {
|
|
651
|
-
return
|
|
651
|
+
return pe(e) && re(e) == cl;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
653
|
+
var an = Ve && Ve.isMap, pl = an ? xt(an) : fl, ml = "[object Set]";
|
|
654
654
|
function _l(e) {
|
|
655
|
-
return
|
|
655
|
+
return pe(e) && re(e) == ml;
|
|
656
656
|
}
|
|
657
|
-
var
|
|
658
|
-
j[
|
|
659
|
-
j[hl] = j[
|
|
660
|
-
function
|
|
657
|
+
var ln = Ve && Ve.isSet, gl = ln ? xt(ln) : _l, Yn = "[object Arguments]", bl = "[object Array]", yl = "[object Boolean]", vl = "[object Date]", hl = "[object Error]", Xn = "[object Function]", wl = "[object GeneratorFunction]", Tl = "[object Map]", Sl = "[object Number]", ei = "[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[Yn] = 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[ei] = j[El] = j[Cl] = j[kl] = j[Ol] = j[jl] = j[Dl] = j[Ll] = j[Ul] = !0;
|
|
659
|
+
j[hl] = j[Xn] = j[Il] = !1;
|
|
660
|
+
function Je(e, t, n, o, i, a) {
|
|
661
661
|
var c;
|
|
662
|
-
if (n && (c =
|
|
662
|
+
if (n && (c = i ? n(e, o, i, a) : n(e)), c !== void 0)
|
|
663
663
|
return c;
|
|
664
|
-
if (!
|
|
664
|
+
if (!it(e))
|
|
665
665
|
return e;
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
666
|
+
var f = me(e);
|
|
667
|
+
if (f)
|
|
668
668
|
c = Ua(e);
|
|
669
669
|
else {
|
|
670
|
-
var l =
|
|
671
|
-
if (
|
|
670
|
+
var l = re(e), u = l == Xn || l == wl;
|
|
671
|
+
if (Qe(e))
|
|
672
672
|
return Ca(e);
|
|
673
|
-
if (l ==
|
|
673
|
+
if (l == ei || l == Yn || u && !i)
|
|
674
674
|
c = {};
|
|
675
675
|
else {
|
|
676
676
|
if (!j[l])
|
|
677
|
-
return
|
|
677
|
+
return i ? e : {};
|
|
678
678
|
c = ul(e, l);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
a || (a = new
|
|
681
|
+
a || (a = new fe());
|
|
682
682
|
var v = a.get(e);
|
|
683
683
|
if (v)
|
|
684
684
|
return v;
|
|
685
685
|
a.set(e, c), gl(e) ? e.forEach(function(b) {
|
|
686
|
-
c.add(
|
|
686
|
+
c.add(Je(b, t, n, b, e, a));
|
|
687
687
|
}) : pl(e) && e.forEach(function(b, _) {
|
|
688
|
-
c.set(_,
|
|
688
|
+
c.set(_, Je(b, t, n, _, e, a));
|
|
689
689
|
});
|
|
690
|
-
var
|
|
690
|
+
var w = Qn, m = f ? void 0 : w(e);
|
|
691
691
|
return Er(m || e, function(b, _) {
|
|
692
|
-
m && (_ = b, b = e[_]),
|
|
692
|
+
m && (_ = b, b = e[_]), $n(c, _, Je(b, t, n, _, e, a));
|
|
693
693
|
}), c;
|
|
694
694
|
}
|
|
695
695
|
var Nl = "__lodash_hash_undefined__";
|
|
696
|
-
function
|
|
696
|
+
function Fl(e) {
|
|
697
697
|
return this.__data__.set(e, Nl), this;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Bl(e) {
|
|
700
700
|
return this.__data__.has(e);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Xe(e) {
|
|
703
703
|
var t = -1, n = e == null ? 0 : e.length;
|
|
704
|
-
for (this.__data__ = new
|
|
704
|
+
for (this.__data__ = new ge(); ++t < n; )
|
|
705
705
|
this.add(e[t]);
|
|
706
706
|
}
|
|
707
|
-
|
|
708
|
-
|
|
707
|
+
Xe.prototype.add = Xe.prototype.push = Fl;
|
|
708
|
+
Xe.prototype.has = Bl;
|
|
709
709
|
function zl(e, t) {
|
|
710
710
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
|
|
711
711
|
if (t(e[n], n, e))
|
|
@@ -716,33 +716,33 @@ function Kl(e, t) {
|
|
|
716
716
|
return e.has(t);
|
|
717
717
|
}
|
|
718
718
|
var Hl = 1, Wl = 2;
|
|
719
|
-
function
|
|
720
|
-
var c = n & Hl,
|
|
721
|
-
if (
|
|
719
|
+
function ti(e, t, n, o, i, a) {
|
|
720
|
+
var c = n & Hl, f = e.length, l = t.length;
|
|
721
|
+
if (f != l && !(c && l > f))
|
|
722
722
|
return !1;
|
|
723
723
|
var u = a.get(e), v = a.get(t);
|
|
724
724
|
if (u && v)
|
|
725
725
|
return u == t && v == e;
|
|
726
|
-
var
|
|
727
|
-
for (a.set(e, t), a.set(t, e); ++
|
|
728
|
-
var _ = e[
|
|
726
|
+
var w = -1, m = !0, b = n & Wl ? new Xe() : void 0;
|
|
727
|
+
for (a.set(e, t), a.set(t, e); ++w < f; ) {
|
|
728
|
+
var _ = e[w], C = t[w];
|
|
729
729
|
if (o)
|
|
730
|
-
var
|
|
731
|
-
if (
|
|
732
|
-
if (
|
|
730
|
+
var O = c ? o(C, _, w, t, e, a) : o(_, C, w, e, t, a);
|
|
731
|
+
if (O !== void 0) {
|
|
732
|
+
if (O)
|
|
733
733
|
continue;
|
|
734
734
|
m = !1;
|
|
735
735
|
break;
|
|
736
736
|
}
|
|
737
737
|
if (b) {
|
|
738
|
-
if (!zl(t, function(
|
|
739
|
-
if (!Kl(b,
|
|
740
|
-
return b.push(
|
|
738
|
+
if (!zl(t, function(s, I) {
|
|
739
|
+
if (!Kl(b, I) && (_ === s || i(_, s, n, o, a)))
|
|
740
|
+
return b.push(I);
|
|
741
741
|
})) {
|
|
742
742
|
m = !1;
|
|
743
743
|
break;
|
|
744
744
|
}
|
|
745
|
-
} else if (!(_ ===
|
|
745
|
+
} else if (!(_ === C || i(_, C, n, o, a))) {
|
|
746
746
|
m = !1;
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
@@ -751,8 +751,8 @@ function ei(e, t, n, o, r, a) {
|
|
|
751
751
|
}
|
|
752
752
|
function ql(e) {
|
|
753
753
|
var t = -1, n = Array(e.size);
|
|
754
|
-
return e.forEach(function(o,
|
|
755
|
-
n[++t] = [
|
|
754
|
+
return e.forEach(function(o, i) {
|
|
755
|
+
n[++t] = [i, o];
|
|
756
756
|
}), n;
|
|
757
757
|
}
|
|
758
758
|
function Gl(e) {
|
|
@@ -761,97 +761,97 @@ function Gl(e) {
|
|
|
761
761
|
n[++t] = o;
|
|
762
762
|
}), n;
|
|
763
763
|
}
|
|
764
|
-
var Jl = 1, Zl = 2, Ql = "[object Boolean]", Yl = "[object Date]", Xl = "[object Error]", es = "[object Map]", ts = "[object Number]", ns = "[object RegExp]", is = "[object Set]", rs = "[object String]", os = "[object Symbol]", as = "[object ArrayBuffer]", ls = "[object DataView]",
|
|
765
|
-
function ss(e, t, n, o,
|
|
764
|
+
var Jl = 1, Zl = 2, Ql = "[object Boolean]", Yl = "[object Date]", Xl = "[object Error]", es = "[object Map]", ts = "[object Number]", ns = "[object RegExp]", is = "[object Set]", rs = "[object String]", os = "[object Symbol]", as = "[object ArrayBuffer]", ls = "[object DataView]", sn = te ? te.prototype : void 0, pt = sn ? sn.valueOf : void 0;
|
|
765
|
+
function ss(e, t, n, o, i, a, c) {
|
|
766
766
|
switch (n) {
|
|
767
767
|
case ls:
|
|
768
768
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
769
769
|
return !1;
|
|
770
770
|
e = e.buffer, t = t.buffer;
|
|
771
771
|
case as:
|
|
772
|
-
return !(e.byteLength != t.byteLength || !a(new
|
|
772
|
+
return !(e.byteLength != t.byteLength || !a(new Ye(e), new Ye(t)));
|
|
773
773
|
case Ql:
|
|
774
774
|
case Yl:
|
|
775
775
|
case ts:
|
|
776
|
-
return
|
|
776
|
+
return Rt(+e, +t);
|
|
777
777
|
case Xl:
|
|
778
778
|
return e.name == t.name && e.message == t.message;
|
|
779
779
|
case ns:
|
|
780
780
|
case rs:
|
|
781
781
|
return e == t + "";
|
|
782
782
|
case es:
|
|
783
|
-
var
|
|
783
|
+
var f = ql;
|
|
784
784
|
case is:
|
|
785
785
|
var l = o & Jl;
|
|
786
|
-
if (
|
|
786
|
+
if (f || (f = Gl), e.size != t.size && !l)
|
|
787
787
|
return !1;
|
|
788
788
|
var u = c.get(e);
|
|
789
789
|
if (u)
|
|
790
790
|
return u == t;
|
|
791
791
|
o |= Zl, c.set(e, t);
|
|
792
|
-
var v =
|
|
792
|
+
var v = ti(f(e), f(t), o, i, a, c);
|
|
793
793
|
return c.delete(e), v;
|
|
794
794
|
case os:
|
|
795
|
-
if (
|
|
796
|
-
return
|
|
795
|
+
if (pt)
|
|
796
|
+
return pt.call(e) == pt.call(t);
|
|
797
797
|
}
|
|
798
798
|
return !1;
|
|
799
799
|
}
|
|
800
800
|
var ds = 1, us = Object.prototype, cs = us.hasOwnProperty;
|
|
801
|
-
function fs(e, t, n, o,
|
|
802
|
-
var c = n & ds,
|
|
801
|
+
function fs(e, t, n, o, i, a) {
|
|
802
|
+
var c = n & ds, f = Qt(e), l = f.length, u = Qt(t), v = u.length;
|
|
803
803
|
if (l != v && !c)
|
|
804
804
|
return !1;
|
|
805
|
-
for (var
|
|
806
|
-
var m =
|
|
805
|
+
for (var w = l; w--; ) {
|
|
806
|
+
var m = f[w];
|
|
807
807
|
if (!(c ? m in t : cs.call(t, m)))
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
810
810
|
var b = a.get(e), _ = a.get(t);
|
|
811
811
|
if (b && _)
|
|
812
812
|
return b == t && _ == e;
|
|
813
|
-
var
|
|
813
|
+
var C = !0;
|
|
814
814
|
a.set(e, t), a.set(t, e);
|
|
815
|
-
for (var
|
|
816
|
-
m =
|
|
817
|
-
var
|
|
815
|
+
for (var O = c; ++w < l; ) {
|
|
816
|
+
m = f[w];
|
|
817
|
+
var s = e[m], I = t[m];
|
|
818
818
|
if (o)
|
|
819
|
-
var d = c ? o(
|
|
820
|
-
if (!(d === void 0 ?
|
|
821
|
-
|
|
819
|
+
var d = c ? o(I, s, m, t, e, a) : o(s, I, m, e, t, a);
|
|
820
|
+
if (!(d === void 0 ? s === I || i(s, I, n, o, a) : d)) {
|
|
821
|
+
C = !1;
|
|
822
822
|
break;
|
|
823
823
|
}
|
|
824
|
-
|
|
824
|
+
O || (O = m == "constructor");
|
|
825
825
|
}
|
|
826
|
-
if (
|
|
827
|
-
var
|
|
828
|
-
|
|
826
|
+
if (C && !O) {
|
|
827
|
+
var $ = e.constructor, k = t.constructor;
|
|
828
|
+
$ != k && "constructor" in e && "constructor" in t && !(typeof $ == "function" && $ instanceof $ && typeof k == "function" && k instanceof k) && (C = !1);
|
|
829
829
|
}
|
|
830
|
-
return a.delete(e), a.delete(t),
|
|
831
|
-
}
|
|
832
|
-
var ps = 1,
|
|
833
|
-
function _s(e, t, n, o,
|
|
834
|
-
var c =
|
|
835
|
-
l = l ==
|
|
836
|
-
var v = l ==
|
|
837
|
-
if (m &&
|
|
838
|
-
if (!
|
|
830
|
+
return a.delete(e), a.delete(t), C;
|
|
831
|
+
}
|
|
832
|
+
var ps = 1, dn = "[object Arguments]", un = "[object Array]", We = "[object Object]", ms = Object.prototype, cn = ms.hasOwnProperty;
|
|
833
|
+
function _s(e, t, n, o, i, a) {
|
|
834
|
+
var c = me(e), f = me(t), l = c ? un : re(e), u = f ? un : re(t);
|
|
835
|
+
l = l == dn ? We : l, u = u == dn ? We : u;
|
|
836
|
+
var v = l == We, w = u == We, m = l == u;
|
|
837
|
+
if (m && Qe(e)) {
|
|
838
|
+
if (!Qe(t))
|
|
839
839
|
return !1;
|
|
840
840
|
c = !0, v = !1;
|
|
841
841
|
}
|
|
842
842
|
if (m && !v)
|
|
843
|
-
return a || (a = new
|
|
843
|
+
return a || (a = new fe()), c || Fn(e) ? ti(e, t, n, o, i, a) : ss(e, t, l, n, o, i, a);
|
|
844
844
|
if (!(n & ps)) {
|
|
845
|
-
var b = v &&
|
|
845
|
+
var b = v && cn.call(e, "__wrapped__"), _ = w && cn.call(t, "__wrapped__");
|
|
846
846
|
if (b || _) {
|
|
847
|
-
var
|
|
848
|
-
return a || (a = new
|
|
847
|
+
var C = b ? e.value() : e, O = _ ? t.value() : t;
|
|
848
|
+
return a || (a = new fe()), i(C, O, n, o, a);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
return m ? (a || (a = new
|
|
851
|
+
return m ? (a || (a = new fe()), fs(e, t, n, o, i, a)) : !1;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
return e === t ? !0 : e == null || t == null || !
|
|
853
|
+
function ni(e, t, n, o, i) {
|
|
854
|
+
return e === t ? !0 : e == null || t == null || !pe(e) && !pe(t) ? e !== e && t !== t : _s(e, t, n, o, ni, i);
|
|
855
855
|
}
|
|
856
856
|
function gs(e) {
|
|
857
857
|
var t = e == null ? 0 : e.length;
|
|
@@ -861,28 +861,28 @@ function bs(e, t) {
|
|
|
861
861
|
return t.length < 2 ? e : aa(e, ba(t, 0, -1));
|
|
862
862
|
}
|
|
863
863
|
function ys(e, t) {
|
|
864
|
-
return
|
|
864
|
+
return ni(e, t);
|
|
865
865
|
}
|
|
866
866
|
var vs = Object.prototype, hs = vs.hasOwnProperty;
|
|
867
867
|
function ws(e, t) {
|
|
868
|
-
t =
|
|
868
|
+
t = Pt(t, e);
|
|
869
869
|
var n = -1, o = t.length;
|
|
870
870
|
if (!o)
|
|
871
871
|
return !0;
|
|
872
|
-
for (var
|
|
872
|
+
for (var i = e == null || typeof e != "object" && typeof e != "function"; ++n < o; ) {
|
|
873
873
|
var a = t[n];
|
|
874
874
|
if (typeof a == "string") {
|
|
875
875
|
if (a === "__proto__" && !hs.call(e, "__proto__"))
|
|
876
876
|
return !1;
|
|
877
877
|
if (a === "constructor" && n + 1 < o && typeof t[n + 1] == "string" && t[n + 1] === "prototype") {
|
|
878
|
-
if (
|
|
878
|
+
if (i && n === 0)
|
|
879
879
|
continue;
|
|
880
880
|
return !1;
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
var c = bs(e, t);
|
|
885
|
-
return c == null || delete c[
|
|
885
|
+
return c == null || delete c[Kn(gs(t))];
|
|
886
886
|
}
|
|
887
887
|
function Ts(e) {
|
|
888
888
|
return ga(e) ? void 0 : e;
|
|
@@ -892,47 +892,47 @@ var Ss = 1, Es = 2, Cs = 4, ks = ua(function(e, t) {
|
|
|
892
892
|
if (e == null)
|
|
893
893
|
return n;
|
|
894
894
|
var o = !1;
|
|
895
|
-
t =
|
|
896
|
-
return a =
|
|
897
|
-
}), xr(e,
|
|
898
|
-
for (var
|
|
899
|
-
ws(n, t[
|
|
895
|
+
t = Rn(t, function(a) {
|
|
896
|
+
return a = Pt(a, e), o || (o = a.length > 1), a;
|
|
897
|
+
}), xr(e, Qn(e), n), o && (n = Je(n, Ss | Es | Cs, Ts));
|
|
898
|
+
for (var i = t.length; i--; )
|
|
899
|
+
ws(n, t[i]);
|
|
900
900
|
return n;
|
|
901
901
|
});
|
|
902
|
-
const
|
|
902
|
+
const q = [];
|
|
903
903
|
for (let e = 0; e < 256; ++e)
|
|
904
|
-
|
|
904
|
+
q.push((e + 256).toString(16).slice(1));
|
|
905
905
|
function Os(e, t = 0) {
|
|
906
|
-
return (
|
|
906
|
+
return (q[e[t + 0]] + q[e[t + 1]] + q[e[t + 2]] + q[e[t + 3]] + "-" + q[e[t + 4]] + q[e[t + 5]] + "-" + q[e[t + 6]] + q[e[t + 7]] + "-" + q[e[t + 8]] + q[e[t + 9]] + "-" + q[e[t + 10]] + q[e[t + 11]] + q[e[t + 12]] + q[e[t + 13]] + q[e[t + 14]] + q[e[t + 15]]).toLowerCase();
|
|
907
907
|
}
|
|
908
|
-
let
|
|
908
|
+
let mt;
|
|
909
909
|
const Is = new Uint8Array(16);
|
|
910
910
|
function Rs() {
|
|
911
|
-
if (!
|
|
911
|
+
if (!mt) {
|
|
912
912
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
913
913
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
914
|
-
|
|
914
|
+
mt = crypto.getRandomValues.bind(crypto);
|
|
915
915
|
}
|
|
916
|
-
return
|
|
916
|
+
return mt(Is);
|
|
917
917
|
}
|
|
918
|
-
const xs = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
918
|
+
const xs = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), fn = { randomUUID: xs };
|
|
919
919
|
function As(e, t, n) {
|
|
920
|
-
var
|
|
921
|
-
if (
|
|
922
|
-
return
|
|
920
|
+
var i;
|
|
921
|
+
if (fn.randomUUID && !e)
|
|
922
|
+
return fn.randomUUID();
|
|
923
923
|
e = e || {};
|
|
924
|
-
const o = e.random ?? ((
|
|
924
|
+
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? Rs();
|
|
925
925
|
if (o.length < 16)
|
|
926
926
|
throw new Error("Random bytes length must be >= 16");
|
|
927
927
|
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Os(o);
|
|
928
928
|
}
|
|
929
|
-
const
|
|
929
|
+
const ii = {
|
|
930
930
|
ip: "127.0.0.1",
|
|
931
931
|
port: 6379
|
|
932
|
-
},
|
|
932
|
+
}, ri = {
|
|
933
933
|
host: "127.0.0.1",
|
|
934
934
|
port: 6379
|
|
935
|
-
}, $e =
|
|
935
|
+
}, $e = T.HOST_PORT_EE, oi = {
|
|
936
936
|
port: 6379,
|
|
937
937
|
host: "127.0.0.1",
|
|
938
938
|
database: 0,
|
|
@@ -959,17 +959,17 @@ const ni = {
|
|
|
959
959
|
}
|
|
960
960
|
}, Qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
961
961
|
__proto__: null,
|
|
962
|
-
DEFAULT_CLUSTER_NODE:
|
|
963
|
-
DEFAULT_FIELDS:
|
|
962
|
+
DEFAULT_CLUSTER_NODE: ii,
|
|
963
|
+
DEFAULT_FIELDS: oi,
|
|
964
964
|
DEFAULT_REDIS_TYPE: $e,
|
|
965
|
-
DEFAULT_SENTINEL_NODE:
|
|
966
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
965
|
+
DEFAULT_SENTINEL_NODE: ri
|
|
966
|
+
}, Symbol.toStringTag, { value: "Module" })), Fe = (e) => ({ ...e, id: As() }), Et = (e) => {
|
|
967
967
|
const { id: t, ...n } = e;
|
|
968
968
|
return n;
|
|
969
|
-
},
|
|
969
|
+
}, ai = () => Fe(ri), li = () => Fe(ii), Be = (e) => {
|
|
970
970
|
var t, n;
|
|
971
|
-
return e.type ===
|
|
972
|
-
},
|
|
971
|
+
return e.type === Y.REDIS_CE ? T.HOST_PORT_CE : (t = e.config.sentinel_nodes) != null && t.length ? T.SENTINEL : (n = e.config.cluster_nodes) != null && n.length ? T.CLUSTER : T.HOST_PORT_EE;
|
|
972
|
+
}, et = (e) => e === T.HOST_PORT_CE ? Y.REDIS_CE : Y.REDIS_EE, h = {
|
|
973
973
|
int(e, t) {
|
|
974
974
|
return e == null ? t : parseInt(e.toString(), 10);
|
|
975
975
|
},
|
|
@@ -978,21 +978,21 @@ const ni = {
|
|
|
978
978
|
},
|
|
979
979
|
removeIdClusterNodes(e) {
|
|
980
980
|
return e.map((t) => ({
|
|
981
|
-
...
|
|
981
|
+
...Et(t),
|
|
982
982
|
port: h.int(t.port)
|
|
983
983
|
}));
|
|
984
984
|
},
|
|
985
985
|
removeIdFromSentinelNodes(e) {
|
|
986
986
|
return e.map((t) => ({
|
|
987
|
-
...
|
|
987
|
+
...Et(t),
|
|
988
988
|
port: h.int(t.port)
|
|
989
989
|
}));
|
|
990
990
|
},
|
|
991
991
|
addIdToClusterNodes(e) {
|
|
992
|
-
return e.map(
|
|
992
|
+
return e.map(Fe);
|
|
993
993
|
},
|
|
994
994
|
addIdToSentinelNodes(e) {
|
|
995
|
-
return e.map(
|
|
995
|
+
return e.map(Fe);
|
|
996
996
|
},
|
|
997
997
|
removeNullValues(e) {
|
|
998
998
|
const t = { ...e };
|
|
@@ -1006,9 +1006,9 @@ const ni = {
|
|
|
1006
1006
|
arrayToString(e, t = ", ") {
|
|
1007
1007
|
return e ? e.join(t) : "";
|
|
1008
1008
|
}
|
|
1009
|
-
},
|
|
1009
|
+
}, Mt = (e) => {
|
|
1010
1010
|
switch (e == null ? void 0 : e.auth_provider) {
|
|
1011
|
-
case
|
|
1011
|
+
case W.AWS:
|
|
1012
1012
|
return {
|
|
1013
1013
|
auth_provider: e.auth_provider,
|
|
1014
1014
|
aws_cache_name: e.aws_cache_name,
|
|
@@ -1019,12 +1019,12 @@ const ni = {
|
|
|
1019
1019
|
aws_assume_role_arn: e.aws_assume_role_arn,
|
|
1020
1020
|
aws_role_session_name: e.aws_role_session_name
|
|
1021
1021
|
};
|
|
1022
|
-
case
|
|
1022
|
+
case W.GCP:
|
|
1023
1023
|
return {
|
|
1024
1024
|
auth_provider: e.auth_provider,
|
|
1025
1025
|
gcp_service_account_json: e.gcp_service_account_json
|
|
1026
1026
|
};
|
|
1027
|
-
case
|
|
1027
|
+
case W.AZURE:
|
|
1028
1028
|
return {
|
|
1029
1029
|
auth_provider: e.auth_provider,
|
|
1030
1030
|
azure_client_id: e.azure_client_id,
|
|
@@ -1036,32 +1036,32 @@ const ni = {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
}, Yd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1038
1038
|
__proto__: null,
|
|
1039
|
-
genDefaultClusterNode:
|
|
1040
|
-
genDefaultSentinelNode:
|
|
1039
|
+
genDefaultClusterNode: li,
|
|
1040
|
+
genDefaultSentinelNode: ai,
|
|
1041
1041
|
getRedisType: Be,
|
|
1042
|
-
mapRedisTypeToPartialType:
|
|
1043
|
-
pickCloudAuthFields:
|
|
1044
|
-
shallowCopyWithId:
|
|
1045
|
-
shallowCopyWithoutId:
|
|
1042
|
+
mapRedisTypeToPartialType: et,
|
|
1043
|
+
pickCloudAuthFields: Mt,
|
|
1044
|
+
shallowCopyWithId: Fe,
|
|
1045
|
+
shallowCopyWithoutId: Et,
|
|
1046
1046
|
standardize: h
|
|
1047
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1047
|
+
}, Symbol.toStringTag, { value: "Module" })), qe = "/v2/control-planes/{controlPlaneId}/core-entities", Ge = "/{workspace}", Me = {
|
|
1048
1048
|
list: {
|
|
1049
|
-
konnect: `${
|
|
1050
|
-
kongManager: `${
|
|
1049
|
+
konnect: `${qe}/partials`,
|
|
1050
|
+
kongManager: `${Ge}/partials`
|
|
1051
1051
|
},
|
|
1052
1052
|
form: {
|
|
1053
1053
|
konnect: {
|
|
1054
|
-
create: `${We}/partials`,
|
|
1055
|
-
edit: `${We}/partials/{id}`
|
|
1056
|
-
},
|
|
1057
|
-
kongManager: {
|
|
1058
1054
|
create: `${qe}/partials`,
|
|
1059
1055
|
edit: `${qe}/partials/{id}`
|
|
1056
|
+
},
|
|
1057
|
+
kongManager: {
|
|
1058
|
+
create: `${Ge}/partials`,
|
|
1059
|
+
edit: `${Ge}/partials/{id}`
|
|
1060
1060
|
}
|
|
1061
1061
|
},
|
|
1062
1062
|
links: {
|
|
1063
|
-
konnect: `${
|
|
1064
|
-
kongManager: `${
|
|
1063
|
+
konnect: `${qe}/partials/{id}/links`,
|
|
1064
|
+
kongManager: `${Ge}/partials/{id}/links`
|
|
1065
1065
|
}
|
|
1066
1066
|
}, Ps = (e) => {
|
|
1067
1067
|
if (e == null || e === "")
|
|
@@ -1072,39 +1072,39 @@ const ni = {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
return typeof e == "number" ? e >= 0 && e <= 65535 : !1;
|
|
1074
1074
|
}, $s = (e) => {
|
|
1075
|
-
const { partialId: t, config: n, defaultRedisType: o = $e } = e,
|
|
1075
|
+
const { partialId: t, config: n, defaultRedisType: o = $e } = e, i = !!t, { axiosInstance: a } = Ot(n.axiosRequestConfig), { getMessageFromError: c } = vn(), f = B(() => t ? ut.Edit : ut.Create), l = _n({
|
|
1076
1076
|
fields: {
|
|
1077
1077
|
name: "",
|
|
1078
1078
|
tags: "",
|
|
1079
|
-
type:
|
|
1080
|
-
config: JSON.parse(JSON.stringify(
|
|
1079
|
+
type: et(o),
|
|
1080
|
+
config: JSON.parse(JSON.stringify(oi))
|
|
1081
1081
|
},
|
|
1082
1082
|
readonly: !1,
|
|
1083
1083
|
errorMessage: ""
|
|
1084
|
-
}), u =
|
|
1085
|
-
|
|
1086
|
-
l.fields.type =
|
|
1084
|
+
}), u = A(), v = A(o), w = B(() => v.value === T.HOST_PORT_EE || v.value === T.CLUSTER || v.value === T.SENTINEL);
|
|
1085
|
+
Se(v, (d) => {
|
|
1086
|
+
l.fields.type = et(d);
|
|
1087
1087
|
});
|
|
1088
|
-
const m =
|
|
1089
|
-
var
|
|
1090
|
-
if (
|
|
1088
|
+
const m = B(() => {
|
|
1089
|
+
var $, k, H, ee;
|
|
1090
|
+
if (i && ys(u.value, _.value) || !(($ = l.fields.name) != null && $.length))
|
|
1091
1091
|
return !1;
|
|
1092
1092
|
const { config: d } = l.fields;
|
|
1093
1093
|
switch (v.value) {
|
|
1094
|
-
case
|
|
1095
|
-
case
|
|
1096
|
-
return !!d.host && d.host.length > 0 && Ps(d.port) && (((
|
|
1097
|
-
case
|
|
1098
|
-
return !!d.cluster_nodes.length && d.cluster_nodes.every((
|
|
1099
|
-
case
|
|
1100
|
-
return !!d.sentinel_nodes.length && d.sentinel_nodes.every((
|
|
1094
|
+
case T.HOST_PORT_CE:
|
|
1095
|
+
case T.HOST_PORT_EE:
|
|
1096
|
+
return !!d.host && d.host.length > 0 && Ps(d.port) && (((k = d.cloud_authentication) == null ? void 0 : k.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
|
|
1097
|
+
case T.CLUSTER:
|
|
1098
|
+
return !!d.cluster_nodes.length && d.cluster_nodes.every((ie) => ie.ip.length > 0) && (((H = d.cloud_authentication) == null ? void 0 : H.auth_provider) !== "aws" || !!d.cloud_authentication.aws_cache_name);
|
|
1099
|
+
case T.SENTINEL:
|
|
1100
|
+
return !!d.sentinel_nodes.length && d.sentinel_nodes.every((ie) => ie.host.length > 0) && !!((ee = d.sentinel_master) != null && ee.length) && d.sentinel_role && !!d.sentinel_role.length;
|
|
1101
1101
|
default:
|
|
1102
1102
|
throw new Error("Invalid redis type");
|
|
1103
1103
|
}
|
|
1104
1104
|
}), b = () => {
|
|
1105
1105
|
if (!e.cloudAuthAvailable)
|
|
1106
1106
|
return;
|
|
1107
|
-
const d =
|
|
1107
|
+
const d = Mt(l.fields.config.cloud_authentication);
|
|
1108
1108
|
return d != null && d.auth_provider ? {
|
|
1109
1109
|
auth_provider: d.auth_provider,
|
|
1110
1110
|
aws_cache_name: h.str(d.aws_cache_name, null),
|
|
@@ -1119,9 +1119,9 @@ const ni = {
|
|
|
1119
1119
|
azure_client_secret: h.str(d.azure_client_secret, null),
|
|
1120
1120
|
azure_tenant_id: h.str(d.azure_tenant_id, null)
|
|
1121
1121
|
} : null;
|
|
1122
|
-
}, _ =
|
|
1122
|
+
}, _ = B(() => {
|
|
1123
1123
|
switch (v.value) {
|
|
1124
|
-
case
|
|
1124
|
+
case T.HOST_PORT_CE:
|
|
1125
1125
|
return {
|
|
1126
1126
|
name: l.fields.name,
|
|
1127
1127
|
type: l.fields.type,
|
|
@@ -1129,7 +1129,7 @@ const ni = {
|
|
|
1129
1129
|
config: {
|
|
1130
1130
|
cloud_authentication: b(),
|
|
1131
1131
|
host: l.fields.config.host,
|
|
1132
|
-
port: h.int(l.fields.config.port),
|
|
1132
|
+
port: Number.isNaN(Number(l.fields.config.port)) ? l.fields.config.port : h.int(l.fields.config.port),
|
|
1133
1133
|
timeout: h.int(l.fields.config.timeout),
|
|
1134
1134
|
username: h.str(l.fields.config.username, null),
|
|
1135
1135
|
database: h.int(l.fields.config.database),
|
|
@@ -1139,7 +1139,7 @@ const ni = {
|
|
|
1139
1139
|
server_name: h.str(l.fields.config.server_name, null)
|
|
1140
1140
|
}
|
|
1141
1141
|
};
|
|
1142
|
-
case
|
|
1142
|
+
case T.HOST_PORT_EE:
|
|
1143
1143
|
return {
|
|
1144
1144
|
name: l.fields.name,
|
|
1145
1145
|
type: l.fields.type,
|
|
@@ -1170,7 +1170,7 @@ const ni = {
|
|
|
1170
1170
|
sentinel_password: null
|
|
1171
1171
|
}
|
|
1172
1172
|
};
|
|
1173
|
-
case
|
|
1173
|
+
case T.CLUSTER:
|
|
1174
1174
|
return {
|
|
1175
1175
|
name: l.fields.name,
|
|
1176
1176
|
type: l.fields.type,
|
|
@@ -1201,7 +1201,7 @@ const ni = {
|
|
|
1201
1201
|
port: null
|
|
1202
1202
|
}
|
|
1203
1203
|
};
|
|
1204
|
-
case
|
|
1204
|
+
case T.SENTINEL:
|
|
1205
1205
|
return {
|
|
1206
1206
|
name: l.fields.name,
|
|
1207
1207
|
type: l.fields.type,
|
|
@@ -1234,10 +1234,10 @@ const ni = {
|
|
|
1234
1234
|
default:
|
|
1235
1235
|
throw new Error("Invalid redis type");
|
|
1236
1236
|
}
|
|
1237
|
-
}),
|
|
1238
|
-
let d = `${n.apiBaseUrl}${Me.form[n.app][
|
|
1237
|
+
}), C = B(() => {
|
|
1238
|
+
let d = `${n.apiBaseUrl}${Me.form[n.app][f.value]}`;
|
|
1239
1239
|
return n.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, (n == null ? void 0 : n.controlPlaneId) || "") : n.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, n != null && n.workspace ? `/${n.workspace}` : "")), d = d.replace(/{id}/gi, t || ""), d;
|
|
1240
|
-
}),
|
|
1240
|
+
}), O = B(() => {
|
|
1241
1241
|
var d;
|
|
1242
1242
|
return (d = Me.form[n == null ? void 0 : n.app]) == null ? void 0 : d.edit;
|
|
1243
1243
|
});
|
|
@@ -1245,11 +1245,11 @@ const ni = {
|
|
|
1245
1245
|
form: l,
|
|
1246
1246
|
canSubmit: m,
|
|
1247
1247
|
payload: _,
|
|
1248
|
-
isEdit:
|
|
1248
|
+
isEdit: i,
|
|
1249
1249
|
redisType: v,
|
|
1250
|
-
redisTypeIsEnterprise:
|
|
1251
|
-
formType:
|
|
1252
|
-
fetchUrl:
|
|
1250
|
+
redisTypeIsEnterprise: w,
|
|
1251
|
+
formType: f,
|
|
1252
|
+
fetchUrl: O,
|
|
1253
1253
|
submit: async () => {
|
|
1254
1254
|
try {
|
|
1255
1255
|
l.readonly = !0, l.errorMessage = "";
|
|
@@ -1257,7 +1257,7 @@ const ni = {
|
|
|
1257
1257
|
return n.app === "konnect" && (d = {
|
|
1258
1258
|
...d,
|
|
1259
1259
|
config: h.removeNullValues(d.config)
|
|
1260
|
-
}),
|
|
1260
|
+
}), f.value === ut.Create ? await a.post(C.value, d) : n.app === "konnect" ? await a.put(C.value, d) : await a.patch(C.value, d);
|
|
1261
1261
|
} catch (d) {
|
|
1262
1262
|
throw l.errorMessage = c(d), l.readonly = !1, d;
|
|
1263
1263
|
}
|
|
@@ -1271,7 +1271,7 @@ const ni = {
|
|
|
1271
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));
|
|
1272
1272
|
}
|
|
1273
1273
|
};
|
|
1274
|
-
}, Vs = { class: "array-card-container" }, Ms = /* @__PURE__ */
|
|
1274
|
+
}, Vs = { class: "array-card-container" }, Ms = /* @__PURE__ */ X({
|
|
1275
1275
|
__name: "FieldArrayCardContainer",
|
|
1276
1276
|
props: {
|
|
1277
1277
|
model: {
|
|
@@ -1294,34 +1294,34 @@ const ni = {
|
|
|
1294
1294
|
emits: ["remove-item"],
|
|
1295
1295
|
setup(e) {
|
|
1296
1296
|
return (t, n) => {
|
|
1297
|
-
const o =
|
|
1298
|
-
return
|
|
1297
|
+
const o = P("KCard"), i = P("KButton");
|
|
1298
|
+
return R(), G("div", Vs, [
|
|
1299
1299
|
g(o, { class: "card" }, {
|
|
1300
|
-
default:
|
|
1300
|
+
default: E(() => [
|
|
1301
1301
|
gi(t.$slots, "default", {}, void 0, !0)
|
|
1302
1302
|
]),
|
|
1303
1303
|
_: 3
|
|
1304
1304
|
}),
|
|
1305
|
-
g(
|
|
1305
|
+
g(i, {
|
|
1306
1306
|
appearance: "tertiary",
|
|
1307
1307
|
class: "array-card-remove-button",
|
|
1308
1308
|
disabled: e.disabled,
|
|
1309
1309
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1310
1310
|
}, {
|
|
1311
|
-
default:
|
|
1312
|
-
g(
|
|
1311
|
+
default: E(() => [
|
|
1312
|
+
g(r(Di))
|
|
1313
1313
|
]),
|
|
1314
1314
|
_: 1
|
|
1315
1315
|
}, 8, ["disabled"])
|
|
1316
1316
|
]);
|
|
1317
1317
|
};
|
|
1318
1318
|
}
|
|
1319
|
-
}),
|
|
1319
|
+
}), ne = (e, t) => {
|
|
1320
1320
|
const n = e.__vccOpts || e;
|
|
1321
|
-
for (const [o,
|
|
1322
|
-
n[o] =
|
|
1321
|
+
for (const [o, i] of t)
|
|
1322
|
+
n[o] = i;
|
|
1323
1323
|
return n;
|
|
1324
|
-
},
|
|
1324
|
+
}, si = /* @__PURE__ */ ne(Ms, [["__scopeId", "data-v-a0b2e4fb"]]), js = {
|
|
1325
1325
|
create: "New Redis Configuration",
|
|
1326
1326
|
copy_id: "Copy ID",
|
|
1327
1327
|
copy_json: "Copy JSON",
|
|
@@ -1346,7 +1346,7 @@ const ni = {
|
|
|
1346
1346
|
delete: "The redis configuration could not be deleted at this time."
|
|
1347
1347
|
}, Ns = {
|
|
1348
1348
|
success: "Copied {val} to clipboard"
|
|
1349
|
-
},
|
|
1349
|
+
}, Fs = {
|
|
1350
1350
|
redis_partial_modal_title: "Create Redis Configuration",
|
|
1351
1351
|
partial_created_success_message: "Redis configuration created successfully",
|
|
1352
1352
|
sections: {
|
|
@@ -1587,7 +1587,7 @@ const ni = {
|
|
|
1587
1587
|
plugin_count: "{count} plugin(s)",
|
|
1588
1588
|
confirm: "Confirm"
|
|
1589
1589
|
}
|
|
1590
|
-
},
|
|
1590
|
+
}, Bs = {
|
|
1591
1591
|
title: "Associated plugins ({count})",
|
|
1592
1592
|
headers: {
|
|
1593
1593
|
plugin: "Plugin",
|
|
@@ -1629,24 +1629,24 @@ const ni = {
|
|
|
1629
1629
|
},
|
|
1630
1630
|
errors: Us,
|
|
1631
1631
|
copy: Ns,
|
|
1632
|
-
form:
|
|
1633
|
-
linked_plugins_modal:
|
|
1632
|
+
form: Fs,
|
|
1633
|
+
linked_plugins_modal: Bs,
|
|
1634
1634
|
redis: zs,
|
|
1635
1635
|
list: Ks
|
|
1636
1636
|
};
|
|
1637
|
-
function
|
|
1638
|
-
const e =
|
|
1637
|
+
function at() {
|
|
1638
|
+
const e = Fi("en-us", Hs);
|
|
1639
1639
|
return {
|
|
1640
1640
|
i18n: e,
|
|
1641
|
-
i18nT:
|
|
1641
|
+
i18nT: Bi(e)
|
|
1642
1642
|
// Translation component <i18n-t>
|
|
1643
1643
|
};
|
|
1644
1644
|
}
|
|
1645
|
-
const
|
|
1646
|
-
useI18n:
|
|
1647
|
-
}, Ws = { class: "cluster-node-items" }, qs = /* @__PURE__ */
|
|
1645
|
+
const be = {
|
|
1646
|
+
useI18n: at
|
|
1647
|
+
}, Ws = { class: "cluster-node-items" }, qs = /* @__PURE__ */ X({
|
|
1648
1648
|
__name: "ClusterNodes",
|
|
1649
|
-
props: /* @__PURE__ */
|
|
1649
|
+
props: /* @__PURE__ */ Ct({
|
|
1650
1650
|
readonly: { type: Boolean }
|
|
1651
1651
|
}, {
|
|
1652
1652
|
modelValue: { required: !0 },
|
|
@@ -1654,40 +1654,40 @@ const ye = {
|
|
|
1654
1654
|
}),
|
|
1655
1655
|
emits: ["update:modelValue"],
|
|
1656
1656
|
setup(e) {
|
|
1657
|
-
const t =
|
|
1658
|
-
t.value.push(
|
|
1659
|
-
},
|
|
1657
|
+
const t = kt(e, "modelValue"), { i18n: { t: n } } = be.useI18n(), o = () => {
|
|
1658
|
+
t.value.push(li());
|
|
1659
|
+
}, i = (a) => {
|
|
1660
1660
|
t.value.splice(a, 1);
|
|
1661
1661
|
};
|
|
1662
1662
|
return (a, c) => {
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1665
|
-
g(
|
|
1663
|
+
const f = P("KLabel"), l = P("KInput"), u = P("KButton");
|
|
1664
|
+
return R(), G("div", null, [
|
|
1665
|
+
g(f, {
|
|
1666
1666
|
class: "required",
|
|
1667
|
-
info:
|
|
1667
|
+
info: r(n)("form.fields.cluster_nodes.tooltip"),
|
|
1668
1668
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1669
1669
|
}, {
|
|
1670
|
-
default:
|
|
1671
|
-
|
|
1670
|
+
default: E(() => [
|
|
1671
|
+
oe(z(r(n)("form.fields.cluster_nodes.title")), 1)
|
|
1672
1672
|
]),
|
|
1673
1673
|
_: 1
|
|
1674
1674
|
}, 8, ["info"]),
|
|
1675
1675
|
K("div", null, [
|
|
1676
|
-
(
|
|
1677
|
-
key: `${
|
|
1676
|
+
(R(!0), G(ce, null, nt(t.value, (v, w) => (R(), N(si, {
|
|
1677
|
+
key: `${w}`,
|
|
1678
1678
|
"data-testid": "redis-cluster-nodes",
|
|
1679
1679
|
disabled: e.readonly,
|
|
1680
|
-
onRemoveItem: (m) =>
|
|
1680
|
+
onRemoveItem: (m) => i(w)
|
|
1681
1681
|
}, {
|
|
1682
|
-
default:
|
|
1682
|
+
default: E(() => [
|
|
1683
1683
|
K("div", Ws, [
|
|
1684
1684
|
g(l, {
|
|
1685
1685
|
modelValue: v.ip,
|
|
1686
1686
|
"onUpdate:modelValue": (m) => v.ip = m,
|
|
1687
1687
|
modelModifiers: { trim: !0 },
|
|
1688
|
-
label:
|
|
1688
|
+
label: r(n)("form.fields.cluster_node_ip.label"),
|
|
1689
1689
|
"label-attributes": {
|
|
1690
|
-
info:
|
|
1690
|
+
info: r(n)("form.fields.cluster_node_ip.tooltip"),
|
|
1691
1691
|
tooltipAttributes: { maxWidth: "400" }
|
|
1692
1692
|
},
|
|
1693
1693
|
name: "ip",
|
|
@@ -1697,9 +1697,9 @@ const ye = {
|
|
|
1697
1697
|
g(l, {
|
|
1698
1698
|
modelValue: v.port,
|
|
1699
1699
|
"onUpdate:modelValue": (m) => v.port = m,
|
|
1700
|
-
label:
|
|
1700
|
+
label: r(n)("form.fields.cluster_node_port.label"),
|
|
1701
1701
|
"label-attributes": {
|
|
1702
|
-
info:
|
|
1702
|
+
info: r(n)("form.fields.cluster_node_port.tooltip"),
|
|
1703
1703
|
tooltipAttributes: { maxWidth: "400" }
|
|
1704
1704
|
},
|
|
1705
1705
|
name: "port",
|
|
@@ -1716,9 +1716,9 @@ const ye = {
|
|
|
1716
1716
|
disabled: e.readonly,
|
|
1717
1717
|
onClick: o
|
|
1718
1718
|
}, {
|
|
1719
|
-
default:
|
|
1720
|
-
g(
|
|
1721
|
-
K("span", null,
|
|
1719
|
+
default: E(() => [
|
|
1720
|
+
g(r(En)),
|
|
1721
|
+
K("span", null, z(r(n)("form.fields.cluster_nodes.add_button")), 1)
|
|
1722
1722
|
]),
|
|
1723
1723
|
_: 1
|
|
1724
1724
|
}, 8, ["disabled"])
|
|
@@ -1726,21 +1726,21 @@ const ye = {
|
|
|
1726
1726
|
]);
|
|
1727
1727
|
};
|
|
1728
1728
|
}
|
|
1729
|
-
}), Gs = /* @__PURE__ */
|
|
1730
|
-
const e =
|
|
1729
|
+
}), Gs = /* @__PURE__ */ ne(qs, [["__scopeId", "data-v-776a626d"]]), di = () => {
|
|
1730
|
+
const e = A(), t = A();
|
|
1731
1731
|
return {
|
|
1732
1732
|
vaultSecretPickerSetup: e,
|
|
1733
|
-
setUpVaultSecretPicker: (
|
|
1734
|
-
e.value =
|
|
1733
|
+
setUpVaultSecretPicker: (i, a) => {
|
|
1734
|
+
e.value = i ?? "", t.value = a;
|
|
1735
1735
|
},
|
|
1736
|
-
handleVaultSecretPickerAutofill: (
|
|
1736
|
+
handleVaultSecretPickerAutofill: (i) => {
|
|
1737
1737
|
var a;
|
|
1738
|
-
(a = t.value) == null || a.call(t,
|
|
1738
|
+
(a = t.value) == null || a.call(t, i), e.value = !1;
|
|
1739
1739
|
}
|
|
1740
1740
|
};
|
|
1741
|
-
}, Js = { class: "sentinel-node-items" }, Zs = /* @__PURE__ */
|
|
1741
|
+
}, Js = { class: "sentinel-node-items" }, Zs = /* @__PURE__ */ X({
|
|
1742
1742
|
__name: "SentinelNodes",
|
|
1743
|
-
props: /* @__PURE__ */
|
|
1743
|
+
props: /* @__PURE__ */ Ct({
|
|
1744
1744
|
readonly: { type: Boolean }
|
|
1745
1745
|
}, {
|
|
1746
1746
|
modelValue: { required: !0 },
|
|
@@ -1748,40 +1748,40 @@ const ye = {
|
|
|
1748
1748
|
}),
|
|
1749
1749
|
emits: ["update:modelValue"],
|
|
1750
1750
|
setup(e) {
|
|
1751
|
-
const t =
|
|
1752
|
-
t.value.push(
|
|
1753
|
-
},
|
|
1751
|
+
const t = kt(e, "modelValue"), { i18n: { t: n } } = be.useI18n(), o = () => {
|
|
1752
|
+
t.value.push(ai());
|
|
1753
|
+
}, i = (a) => {
|
|
1754
1754
|
t.value.splice(a, 1);
|
|
1755
1755
|
};
|
|
1756
1756
|
return (a, c) => {
|
|
1757
|
-
const
|
|
1758
|
-
return
|
|
1759
|
-
g(
|
|
1757
|
+
const f = P("KLabel"), l = P("KInput"), u = P("KButton");
|
|
1758
|
+
return R(), G("div", null, [
|
|
1759
|
+
g(f, {
|
|
1760
1760
|
class: "required",
|
|
1761
|
-
info:
|
|
1761
|
+
info: r(n)("form.fields.sentinel_nodes.tooltip"),
|
|
1762
1762
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1763
1763
|
}, {
|
|
1764
|
-
default:
|
|
1765
|
-
|
|
1764
|
+
default: E(() => [
|
|
1765
|
+
oe(z(r(n)("form.fields.sentinel_nodes.title")), 1)
|
|
1766
1766
|
]),
|
|
1767
1767
|
_: 1
|
|
1768
1768
|
}, 8, ["info"]),
|
|
1769
1769
|
K("div", null, [
|
|
1770
|
-
(
|
|
1770
|
+
(R(!0), G(ce, null, nt(t.value, (v, w) => (R(), N(si, {
|
|
1771
1771
|
key: v.id,
|
|
1772
1772
|
"data-testid": "redis-sentinel-nodes",
|
|
1773
1773
|
disabled: e.readonly,
|
|
1774
|
-
onRemoveItem: (m) =>
|
|
1774
|
+
onRemoveItem: (m) => i(w)
|
|
1775
1775
|
}, {
|
|
1776
|
-
default:
|
|
1776
|
+
default: E(() => [
|
|
1777
1777
|
K("div", Js, [
|
|
1778
1778
|
g(l, {
|
|
1779
1779
|
modelValue: v.host,
|
|
1780
1780
|
"onUpdate:modelValue": (m) => v.host = m,
|
|
1781
1781
|
modelModifiers: { trim: !0 },
|
|
1782
|
-
label:
|
|
1782
|
+
label: r(n)("form.fields.sentinel_node_host.label"),
|
|
1783
1783
|
"label-attributes": {
|
|
1784
|
-
info:
|
|
1784
|
+
info: r(n)("form.fields.sentinel_node_host.tooltip"),
|
|
1785
1785
|
tooltipAttributes: { maxWidth: "400" }
|
|
1786
1786
|
},
|
|
1787
1787
|
name: "host",
|
|
@@ -1791,9 +1791,9 @@ const ye = {
|
|
|
1791
1791
|
g(l, {
|
|
1792
1792
|
modelValue: v.port,
|
|
1793
1793
|
"onUpdate:modelValue": (m) => v.port = m,
|
|
1794
|
-
label:
|
|
1794
|
+
label: r(n)("form.fields.sentinel_node_port.label"),
|
|
1795
1795
|
"label-attributes": {
|
|
1796
|
-
info:
|
|
1796
|
+
info: r(n)("form.fields.sentinel_node_port.tooltip"),
|
|
1797
1797
|
tooltipAttributes: { maxWidth: "400" }
|
|
1798
1798
|
},
|
|
1799
1799
|
name: "port",
|
|
@@ -1810,9 +1810,9 @@ const ye = {
|
|
|
1810
1810
|
disabled: e.readonly,
|
|
1811
1811
|
onClick: o
|
|
1812
1812
|
}, {
|
|
1813
|
-
default:
|
|
1814
|
-
g(
|
|
1815
|
-
K("span", null,
|
|
1813
|
+
default: E(() => [
|
|
1814
|
+
g(r(En)),
|
|
1815
|
+
K("span", null, z(r(n)("form.fields.sentinel_nodes.add_button")), 1)
|
|
1816
1816
|
]),
|
|
1817
1817
|
_: 1
|
|
1818
1818
|
}, 8, ["disabled"])
|
|
@@ -1820,9 +1820,9 @@ const ye = {
|
|
|
1820
1820
|
]);
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
}), Qs = /* @__PURE__ */
|
|
1823
|
+
}), Qs = /* @__PURE__ */ ne(Zs, [["__scopeId", "data-v-cd1c07e2"]]), Ys = /* @__PURE__ */ X({
|
|
1824
1824
|
__name: "CloudAuthFields",
|
|
1825
|
-
props: /* @__PURE__ */
|
|
1825
|
+
props: /* @__PURE__ */ Ct({
|
|
1826
1826
|
config: {},
|
|
1827
1827
|
readonly: { type: Boolean }
|
|
1828
1828
|
}, {
|
|
@@ -1831,14 +1831,14 @@ const ye = {
|
|
|
1831
1831
|
}),
|
|
1832
1832
|
emits: ["update:modelValue"],
|
|
1833
1833
|
setup(e) {
|
|
1834
|
-
const t =
|
|
1834
|
+
const t = kt(e, "modelValue"), { i18n: { t: n } } = be.useI18n(), {
|
|
1835
1835
|
vaultSecretPickerSetup: o,
|
|
1836
|
-
setUpVaultSecretPicker:
|
|
1836
|
+
setUpVaultSecretPicker: i,
|
|
1837
1837
|
handleVaultSecretPickerAutofill: a
|
|
1838
|
-
} =
|
|
1838
|
+
} = di(), c = [
|
|
1839
1839
|
{
|
|
1840
1840
|
key: "aws_cache_name",
|
|
1841
|
-
group:
|
|
1841
|
+
group: W.AWS,
|
|
1842
1842
|
label: n("form.fields.cloud_authentication.aws_cache_name.label"),
|
|
1843
1843
|
tooltip: n("form.fields.cloud_authentication.aws_cache_name.tooltip"),
|
|
1844
1844
|
required: !0,
|
|
@@ -1846,21 +1846,21 @@ const ye = {
|
|
|
1846
1846
|
},
|
|
1847
1847
|
{
|
|
1848
1848
|
key: "aws_region",
|
|
1849
|
-
group:
|
|
1849
|
+
group: W.AWS,
|
|
1850
1850
|
label: n("form.fields.cloud_authentication.aws_region.label"),
|
|
1851
1851
|
tooltip: n("form.fields.cloud_authentication.aws_region.tooltip"),
|
|
1852
1852
|
referenceable: !0
|
|
1853
1853
|
},
|
|
1854
1854
|
{
|
|
1855
1855
|
key: "aws_is_serverless",
|
|
1856
|
-
group:
|
|
1856
|
+
group: W.AWS,
|
|
1857
1857
|
label: n("form.fields.cloud_authentication.aws_is_serverless.label"),
|
|
1858
1858
|
tooltip: n("form.fields.cloud_authentication.aws_is_serverless.tooltip"),
|
|
1859
1859
|
type: "boolean"
|
|
1860
1860
|
},
|
|
1861
1861
|
{
|
|
1862
1862
|
key: "aws_access_key_id",
|
|
1863
|
-
group:
|
|
1863
|
+
group: W.AWS,
|
|
1864
1864
|
label: n("form.fields.cloud_authentication.aws_access_key_id.label"),
|
|
1865
1865
|
tooltip: n("form.fields.cloud_authentication.aws_access_key_id.tooltip"),
|
|
1866
1866
|
referenceable: !0,
|
|
@@ -1868,7 +1868,7 @@ const ye = {
|
|
|
1868
1868
|
},
|
|
1869
1869
|
{
|
|
1870
1870
|
key: "aws_secret_access_key",
|
|
1871
|
-
group:
|
|
1871
|
+
group: W.AWS,
|
|
1872
1872
|
label: n("form.fields.cloud_authentication.aws_secret_access_key.label"),
|
|
1873
1873
|
tooltip: n("form.fields.cloud_authentication.aws_secret_access_key.tooltip"),
|
|
1874
1874
|
referenceable: !0,
|
|
@@ -1876,7 +1876,7 @@ const ye = {
|
|
|
1876
1876
|
},
|
|
1877
1877
|
{
|
|
1878
1878
|
key: "aws_assume_role_arn",
|
|
1879
|
-
group:
|
|
1879
|
+
group: W.AWS,
|
|
1880
1880
|
label: n("form.fields.cloud_authentication.aws_assume_role_arn.label"),
|
|
1881
1881
|
tooltip: n("form.fields.cloud_authentication.aws_assume_role_arn.tooltip"),
|
|
1882
1882
|
referenceable: !0,
|
|
@@ -1884,7 +1884,7 @@ const ye = {
|
|
|
1884
1884
|
},
|
|
1885
1885
|
{
|
|
1886
1886
|
key: "aws_role_session_name",
|
|
1887
|
-
group:
|
|
1887
|
+
group: W.AWS,
|
|
1888
1888
|
label: n("form.fields.cloud_authentication.aws_role_session_name.label"),
|
|
1889
1889
|
tooltip: n("form.fields.cloud_authentication.aws_role_session_name.tooltip"),
|
|
1890
1890
|
referenceable: !0,
|
|
@@ -1892,7 +1892,7 @@ const ye = {
|
|
|
1892
1892
|
},
|
|
1893
1893
|
{
|
|
1894
1894
|
key: "gcp_service_account_json",
|
|
1895
|
-
group:
|
|
1895
|
+
group: W.GCP,
|
|
1896
1896
|
label: n("form.fields.cloud_authentication.gcp_service_account_json.label"),
|
|
1897
1897
|
tooltip: n("form.fields.cloud_authentication.gcp_service_account_json.tooltip"),
|
|
1898
1898
|
referenceable: !0,
|
|
@@ -1900,7 +1900,7 @@ const ye = {
|
|
|
1900
1900
|
},
|
|
1901
1901
|
{
|
|
1902
1902
|
key: "azure_client_id",
|
|
1903
|
-
group:
|
|
1903
|
+
group: W.AZURE,
|
|
1904
1904
|
label: n("form.fields.cloud_authentication.azure_client_id.label"),
|
|
1905
1905
|
tooltip: n("form.fields.cloud_authentication.azure_client_id.tooltip"),
|
|
1906
1906
|
referenceable: !0,
|
|
@@ -1908,7 +1908,7 @@ const ye = {
|
|
|
1908
1908
|
},
|
|
1909
1909
|
{
|
|
1910
1910
|
key: "azure_client_secret",
|
|
1911
|
-
group:
|
|
1911
|
+
group: W.AZURE,
|
|
1912
1912
|
label: n("form.fields.cloud_authentication.azure_client_secret.label"),
|
|
1913
1913
|
tooltip: n("form.fields.cloud_authentication.azure_client_secret.tooltip"),
|
|
1914
1914
|
referenceable: !0,
|
|
@@ -1916,23 +1916,23 @@ const ye = {
|
|
|
1916
1916
|
},
|
|
1917
1917
|
{
|
|
1918
1918
|
key: "azure_tenant_id",
|
|
1919
|
-
group:
|
|
1919
|
+
group: W.AZURE,
|
|
1920
1920
|
label: n("form.fields.cloud_authentication.azure_tenant_id.label"),
|
|
1921
1921
|
tooltip: n("form.fields.cloud_authentication.azure_tenant_id.tooltip"),
|
|
1922
1922
|
referenceable: !0,
|
|
1923
1923
|
encrypted: !0
|
|
1924
1924
|
}
|
|
1925
|
-
],
|
|
1925
|
+
], f = B(() => c.filter((l) => {
|
|
1926
1926
|
var u;
|
|
1927
1927
|
return l.group === ((u = t.value) == null ? void 0 : u.auth_provider);
|
|
1928
1928
|
}));
|
|
1929
1929
|
return (l, u) => {
|
|
1930
|
-
const v =
|
|
1931
|
-
return
|
|
1932
|
-
(
|
|
1930
|
+
const v = P("KInput"), w = P("KCheckbox");
|
|
1931
|
+
return R(), G(ce, null, [
|
|
1932
|
+
(R(!0), G(ce, null, nt(f.value, (m) => (R(), G(ce, {
|
|
1933
1933
|
key: m.key
|
|
1934
1934
|
}, [
|
|
1935
|
-
m.type !== "boolean" ? (
|
|
1935
|
+
m.type !== "boolean" ? (R(), G(ce, { key: 0 }, [
|
|
1936
1936
|
g(v, {
|
|
1937
1937
|
modelValue: t.value[m.key],
|
|
1938
1938
|
"onUpdate:modelValue": (b) => t.value[m.key] = b,
|
|
@@ -1947,15 +1947,15 @@ const ye = {
|
|
|
1947
1947
|
"show-password-mask-toggle": m.encrypted,
|
|
1948
1948
|
type: m.encrypted ? "password" : "text"
|
|
1949
1949
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "label", "label-attributes", "readonly", "required", "show-password-mask-toggle", "type"]),
|
|
1950
|
-
m.referenceable ? (
|
|
1950
|
+
m.referenceable ? (R(), N(r(Te), {
|
|
1951
1951
|
key: 0,
|
|
1952
1952
|
class: "secret-picker-provider",
|
|
1953
1953
|
disabled: e.readonly,
|
|
1954
1954
|
update: (b) => t.value[m.key] = b,
|
|
1955
1955
|
value: t.value[m.key] ?? "",
|
|
1956
|
-
onOpen: u[0] || (u[0] = (b, _) => i
|
|
1957
|
-
}, null, 8, ["disabled", "update", "value"])) :
|
|
1958
|
-
], 64)) : (
|
|
1956
|
+
onOpen: u[0] || (u[0] = (b, _) => r(i)(b, _))
|
|
1957
|
+
}, null, 8, ["disabled", "update", "value"])) : Q("", !0)
|
|
1958
|
+
], 64)) : (R(), N(w, {
|
|
1959
1959
|
key: 1,
|
|
1960
1960
|
modelValue: t.value[m.key],
|
|
1961
1961
|
"onUpdate:modelValue": (b) => t.value[m.key] = b,
|
|
@@ -1968,23 +1968,23 @@ const ye = {
|
|
|
1968
1968
|
readonly: e.readonly
|
|
1969
1969
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "label", "label-attributes", "readonly"]))
|
|
1970
1970
|
], 64))), 128)),
|
|
1971
|
-
g(
|
|
1971
|
+
g(r(Tn), {
|
|
1972
1972
|
config: e.config,
|
|
1973
|
-
setup:
|
|
1973
|
+
setup: r(o),
|
|
1974
1974
|
onCancel: u[1] || (u[1] = () => o.value = !1),
|
|
1975
|
-
onProceed:
|
|
1975
|
+
onProceed: r(a)
|
|
1976
1976
|
}, null, 8, ["config", "setup", "onProceed"])
|
|
1977
1977
|
], 64);
|
|
1978
1978
|
};
|
|
1979
1979
|
}
|
|
1980
|
-
}), Xs = /* @__PURE__ */
|
|
1981
|
-
var
|
|
1980
|
+
}), Xs = /* @__PURE__ */ ne(Ys, [["__scopeId", "data-v-150a04c2"]]);
|
|
1981
|
+
var _t = /* @__PURE__ */ new WeakMap(), pn = 0;
|
|
1982
1982
|
function ed(e) {
|
|
1983
1983
|
if (!e.length)
|
|
1984
1984
|
return "";
|
|
1985
1985
|
for (var t = "arg", n = 0; n < e.length; ++n) {
|
|
1986
1986
|
var o = void 0;
|
|
1987
|
-
e[n] === null || typeof e[n] != "object" && typeof e[n] != "function" ? typeof e[n] == "string" ? o = '"' + e[n] + '"' : o = String(e[n]) :
|
|
1987
|
+
e[n] === null || typeof e[n] != "object" && typeof e[n] != "function" ? typeof e[n] == "string" ? o = '"' + e[n] + '"' : o = String(e[n]) : _t.has(e[n]) ? o = _t.get(e[n]) : (o = pn, _t.set(e[n], pn++)), t += "@" + o;
|
|
1988
1988
|
}
|
|
1989
1989
|
return t;
|
|
1990
1990
|
}
|
|
@@ -1997,7 +1997,7 @@ function td(e) {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
return Array.isArray(e) ? e = ed(e) : e = String(e || ""), e;
|
|
1999
1999
|
}
|
|
2000
|
-
var
|
|
2000
|
+
var jt = (
|
|
2001
2001
|
/** @class */
|
|
2002
2002
|
function() {
|
|
2003
2003
|
function e(t) {
|
|
@@ -2009,17 +2009,17 @@ var Mt = (
|
|
|
2009
2009
|
var n = this.serializeKey(t);
|
|
2010
2010
|
return this.items.get(n);
|
|
2011
2011
|
}, e.prototype.set = function(t, n, o) {
|
|
2012
|
-
var
|
|
2012
|
+
var i = this.serializeKey(t), a = o || this.ttl, c = Date.now(), f = {
|
|
2013
2013
|
data: n,
|
|
2014
2014
|
createdAt: c,
|
|
2015
2015
|
expiresAt: a ? c + a : 1 / 0
|
|
2016
2016
|
};
|
|
2017
|
-
this.dispatchExpire(a,
|
|
2017
|
+
this.dispatchExpire(a, f, i), this.items.set(i, f);
|
|
2018
2018
|
}, e.prototype.dispatchExpire = function(t, n, o) {
|
|
2019
|
-
var
|
|
2019
|
+
var i = this;
|
|
2020
2020
|
t && setTimeout(function() {
|
|
2021
2021
|
var a = Date.now(), c = a >= n.expiresAt;
|
|
2022
|
-
c &&
|
|
2022
|
+
c && i.delete(o);
|
|
2023
2023
|
}, t);
|
|
2024
2024
|
}, e.prototype.delete = function(t) {
|
|
2025
2025
|
this.items.delete(t);
|
|
@@ -2037,42 +2037,42 @@ var rd = function(e) {
|
|
|
2037
2037
|
return t.json();
|
|
2038
2038
|
});
|
|
2039
2039
|
};
|
|
2040
|
-
const
|
|
2040
|
+
const gt = {
|
|
2041
2041
|
isOnline: nd,
|
|
2042
2042
|
isDocumentVisible: id,
|
|
2043
2043
|
fetcher: rd
|
|
2044
2044
|
};
|
|
2045
|
-
var
|
|
2046
|
-
return
|
|
2045
|
+
var ue = function() {
|
|
2046
|
+
return ue = Object.assign || function(e) {
|
|
2047
2047
|
for (var t, n = 1, o = arguments.length; n < o; n++) {
|
|
2048
2048
|
t = arguments[n];
|
|
2049
|
-
for (var
|
|
2049
|
+
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2050
2050
|
}
|
|
2051
2051
|
return e;
|
|
2052
|
-
},
|
|
2052
|
+
}, ue.apply(this, arguments);
|
|
2053
2053
|
}, Ae = function(e, t, n, o) {
|
|
2054
|
-
function
|
|
2054
|
+
function i(a) {
|
|
2055
2055
|
return a instanceof n ? a : new n(function(c) {
|
|
2056
2056
|
c(a);
|
|
2057
2057
|
});
|
|
2058
2058
|
}
|
|
2059
2059
|
return new (n || (n = Promise))(function(a, c) {
|
|
2060
|
-
function
|
|
2060
|
+
function f(v) {
|
|
2061
2061
|
try {
|
|
2062
2062
|
u(o.next(v));
|
|
2063
|
-
} catch (
|
|
2064
|
-
c(
|
|
2063
|
+
} catch (w) {
|
|
2064
|
+
c(w);
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
2067
|
function l(v) {
|
|
2068
2068
|
try {
|
|
2069
2069
|
u(o.throw(v));
|
|
2070
|
-
} catch (
|
|
2071
|
-
c(
|
|
2070
|
+
} catch (w) {
|
|
2071
|
+
c(w);
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
2074
|
function u(v) {
|
|
2075
|
-
v.done ? a(v.value) :
|
|
2075
|
+
v.done ? a(v.value) : i(v.value).then(f, l);
|
|
2076
2076
|
}
|
|
2077
2077
|
u((o = o.apply(e, t || [])).next());
|
|
2078
2078
|
});
|
|
@@ -2080,11 +2080,11 @@ var ce = function() {
|
|
|
2080
2080
|
var n = { label: 0, sent: function() {
|
|
2081
2081
|
if (a[0] & 1) throw a[1];
|
|
2082
2082
|
return a[1];
|
|
2083
|
-
}, trys: [], ops: [] }, o,
|
|
2084
|
-
return c = { next:
|
|
2083
|
+
}, trys: [], ops: [] }, o, i, a, c;
|
|
2084
|
+
return c = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (c[Symbol.iterator] = function() {
|
|
2085
2085
|
return this;
|
|
2086
2086
|
}), c;
|
|
2087
|
-
function
|
|
2087
|
+
function f(u) {
|
|
2088
2088
|
return function(v) {
|
|
2089
2089
|
return l([u, v]);
|
|
2090
2090
|
};
|
|
@@ -2092,8 +2092,8 @@ var ce = function() {
|
|
|
2092
2092
|
function l(u) {
|
|
2093
2093
|
if (o) throw new TypeError("Generator is already executing.");
|
|
2094
2094
|
for (; n; ) try {
|
|
2095
|
-
if (o = 1,
|
|
2096
|
-
switch (
|
|
2095
|
+
if (o = 1, i && (a = u[0] & 2 ? i.return : u[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, u[1])).done) return a;
|
|
2096
|
+
switch (i = 0, a && (u = [u[0] & 2, a.value]), u[0]) {
|
|
2097
2097
|
case 0:
|
|
2098
2098
|
case 1:
|
|
2099
2099
|
a = u;
|
|
@@ -2101,7 +2101,7 @@ var ce = function() {
|
|
|
2101
2101
|
case 4:
|
|
2102
2102
|
return n.label++, { value: u[1], done: !1 };
|
|
2103
2103
|
case 5:
|
|
2104
|
-
n.label++,
|
|
2104
|
+
n.label++, i = u[1], u = [0];
|
|
2105
2105
|
continue;
|
|
2106
2106
|
case 7:
|
|
2107
2107
|
u = n.ops.pop(), n.trys.pop();
|
|
@@ -2128,7 +2128,7 @@ var ce = function() {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
u = t.call(e, n);
|
|
2130
2130
|
} catch (v) {
|
|
2131
|
-
u = [6, v],
|
|
2131
|
+
u = [6, v], i = 0;
|
|
2132
2132
|
} finally {
|
|
2133
2133
|
o = a = 0;
|
|
2134
2134
|
}
|
|
@@ -2138,25 +2138,25 @@ var ce = function() {
|
|
|
2138
2138
|
}, od = function(e, t) {
|
|
2139
2139
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2140
2140
|
if (!n) return e;
|
|
2141
|
-
var o = n.call(e),
|
|
2141
|
+
var o = n.call(e), i, a = [], c;
|
|
2142
2142
|
try {
|
|
2143
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
2144
|
-
} catch (
|
|
2145
|
-
c = { error:
|
|
2143
|
+
for (; (t === void 0 || t-- > 0) && !(i = o.next()).done; ) a.push(i.value);
|
|
2144
|
+
} catch (f) {
|
|
2145
|
+
c = { error: f };
|
|
2146
2146
|
} finally {
|
|
2147
2147
|
try {
|
|
2148
|
-
|
|
2148
|
+
i && !i.done && (n = o.return) && n.call(o);
|
|
2149
2149
|
} finally {
|
|
2150
2150
|
if (c) throw c.error;
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
return a;
|
|
2154
2154
|
}, ad = function(e, t, n) {
|
|
2155
|
-
if (n || arguments.length === 2) for (var o = 0,
|
|
2155
|
+
if (n || arguments.length === 2) for (var o = 0, i = t.length, a; o < i; o++)
|
|
2156
2156
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
2157
2157
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2158
|
-
},
|
|
2159
|
-
cache:
|
|
2158
|
+
}, ui = new jt(), tt = new jt(), bt = new jt(), ci = {
|
|
2159
|
+
cache: ui,
|
|
2160
2160
|
refreshInterval: 0,
|
|
2161
2161
|
ttl: 0,
|
|
2162
2162
|
serverTTL: 1e3,
|
|
@@ -2166,53 +2166,53 @@ var ce = function() {
|
|
|
2166
2166
|
shouldRetryOnError: !0,
|
|
2167
2167
|
errorRetryInterval: 5e3,
|
|
2168
2168
|
errorRetryCount: 5,
|
|
2169
|
-
fetcher:
|
|
2170
|
-
isOnline:
|
|
2171
|
-
isDocumentVisible:
|
|
2169
|
+
fetcher: gt.fetcher,
|
|
2170
|
+
isOnline: gt.isOnline,
|
|
2171
|
+
isDocumentVisible: gt.isDocumentVisible
|
|
2172
2172
|
};
|
|
2173
2173
|
function ld(e, t, n) {
|
|
2174
|
-
var o =
|
|
2174
|
+
var o = tt.get(e);
|
|
2175
2175
|
if (o)
|
|
2176
2176
|
o.data.push(t);
|
|
2177
2177
|
else {
|
|
2178
|
-
var
|
|
2179
|
-
|
|
2178
|
+
var i = 5e3;
|
|
2179
|
+
tt.set(e, [t], n > 0 ? n + i : n);
|
|
2180
2180
|
}
|
|
2181
2181
|
}
|
|
2182
2182
|
function sd(e, t, n) {
|
|
2183
2183
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
2184
|
-
var o = Math.min(t || 0, n.errorRetryCount),
|
|
2184
|
+
var o = Math.min(t || 0, n.errorRetryCount), i = o * n.errorRetryInterval;
|
|
2185
2185
|
setTimeout(function() {
|
|
2186
2186
|
e(null, { errorRetryCount: o + 1, shouldRetryOnError: !0 });
|
|
2187
|
-
},
|
|
2187
|
+
}, i);
|
|
2188
2188
|
}
|
|
2189
2189
|
}
|
|
2190
|
-
var
|
|
2191
|
-
return n === void 0 && (n =
|
|
2192
|
-
var
|
|
2193
|
-
return Pe(this, function(
|
|
2194
|
-
switch (
|
|
2190
|
+
var mn = function(e, t, n, o) {
|
|
2191
|
+
return n === void 0 && (n = ui), o === void 0 && (o = ci.ttl), Ae(void 0, void 0, void 0, function() {
|
|
2192
|
+
var i, a, c, f, l, u, v;
|
|
2193
|
+
return Pe(this, function(w) {
|
|
2194
|
+
switch (w.label) {
|
|
2195
2195
|
case 0:
|
|
2196
2196
|
if (!ud(t)) return [3, 5];
|
|
2197
|
-
|
|
2197
|
+
w.label = 1;
|
|
2198
2198
|
case 1:
|
|
2199
|
-
return
|
|
2199
|
+
return w.trys.push([1, 3, , 4]), [4, t];
|
|
2200
2200
|
case 2:
|
|
2201
|
-
return
|
|
2201
|
+
return i = w.sent(), [3, 4];
|
|
2202
2202
|
case 3:
|
|
2203
|
-
return
|
|
2203
|
+
return f = w.sent(), a = f, [3, 4];
|
|
2204
2204
|
case 4:
|
|
2205
2205
|
return [3, 6];
|
|
2206
2206
|
case 5:
|
|
2207
|
-
|
|
2207
|
+
i = t, w.label = 6;
|
|
2208
2208
|
case 6:
|
|
2209
|
-
if (c = !1, l = { data:
|
|
2209
|
+
if (c = !1, l = { data: i, error: a, isValidating: c }, typeof i < "u")
|
|
2210
2210
|
try {
|
|
2211
2211
|
n.set(e, l, o);
|
|
2212
2212
|
} catch (m) {
|
|
2213
2213
|
console.error("swrv(mutate): failed to set cache", m);
|
|
2214
2214
|
}
|
|
2215
|
-
return u =
|
|
2215
|
+
return u = tt.get(e), u && u.data.length && (v = u.data.filter(function(m) {
|
|
2216
2216
|
return m.key === e;
|
|
2217
2217
|
}), v.forEach(function(m, b) {
|
|
2218
2218
|
typeof l.data < "u" && (m.data = l.data), m.error = l.error, m.isValidating = l.isValidating, m.isLoading = l.isValidating;
|
|
@@ -2226,62 +2226,62 @@ var pn = function(e, t, n, o) {
|
|
|
2226
2226
|
function dd() {
|
|
2227
2227
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
2228
2228
|
t[n] = arguments[n];
|
|
2229
|
-
var o,
|
|
2229
|
+
var o, i, a = ue({}, ci), c = !1, f = !1, l = bi(), u = (l == null ? void 0 : l.proxy) || l;
|
|
2230
2230
|
if (!u)
|
|
2231
2231
|
return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."), null;
|
|
2232
2232
|
var v = (u == null ? void 0 : u.$isServer) || !1;
|
|
2233
|
-
t.length >= 1 && (o = t[0]), t.length >= 2 && (
|
|
2234
|
-
var
|
|
2235
|
-
typeof
|
|
2233
|
+
t.length >= 1 && (o = t[0]), t.length >= 2 && (i = t[1]), t.length > 2 && (a = ue(ue({}, a), t[2]));
|
|
2234
|
+
var w = v ? a.serverTTL : a.ttl, m = typeof o == "function" ? o : A(o);
|
|
2235
|
+
typeof i > "u" && (i = a.fetcher);
|
|
2236
2236
|
var b = null;
|
|
2237
|
-
b || (b =
|
|
2237
|
+
b || (b = _n({
|
|
2238
2238
|
data: void 0,
|
|
2239
2239
|
error: void 0,
|
|
2240
2240
|
isValidating: !0,
|
|
2241
2241
|
isLoading: !0,
|
|
2242
2242
|
key: null
|
|
2243
2243
|
}));
|
|
2244
|
-
var _ = function(
|
|
2244
|
+
var _ = function(I, d) {
|
|
2245
2245
|
return Ae(e, void 0, void 0, function() {
|
|
2246
|
-
var
|
|
2247
|
-
return Pe(this, function(
|
|
2248
|
-
switch (
|
|
2246
|
+
var $, k, H, ee, ie, ye, le, se = this;
|
|
2247
|
+
return Pe(this, function(ve) {
|
|
2248
|
+
switch (ve.label) {
|
|
2249
2249
|
case 0:
|
|
2250
|
-
return
|
|
2250
|
+
return $ = b.data === void 0, k = m.value, k ? (H = a.cache.get(k), ee = H && H.data, b.isValidating = !0, b.isLoading = !ee, ee && (b.data = ee.data, b.error = ee.error), ie = I || i, !ie || !a.isDocumentVisible() && !$ || (d == null ? void 0 : d.forceRevalidate) !== void 0 && !(d != null && d.forceRevalidate) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
2251
2251
|
2
|
|
2252
2252
|
/*return*/
|
|
2253
|
-
]) :
|
|
2253
|
+
]) : H && (ye = !!(Date.now() - H.createdAt >= a.dedupingInterval || d != null && d.forceRevalidate), !ye) ? (b.isValidating = !1, b.isLoading = !1, [
|
|
2254
2254
|
2
|
|
2255
2255
|
/*return*/
|
|
2256
|
-
]) : (
|
|
2257
|
-
return Ae(
|
|
2258
|
-
var
|
|
2259
|
-
return Pe(this, function(
|
|
2260
|
-
switch (
|
|
2256
|
+
]) : (le = function() {
|
|
2257
|
+
return Ae(se, void 0, void 0, function() {
|
|
2258
|
+
var J, Ie, he, Re;
|
|
2259
|
+
return Pe(this, function(we) {
|
|
2260
|
+
switch (we.label) {
|
|
2261
2261
|
case 0:
|
|
2262
|
-
return
|
|
2262
|
+
return J = bt.get(k), J ? [3, 2] : (Ie = Array.isArray(k) ? k : [k], he = ie.apply(void 0, ad([], od(Ie), !1)), bt.set(k, he, a.dedupingInterval), [4, mn(k, he, a.cache, w)]);
|
|
2263
2263
|
case 1:
|
|
2264
|
-
return
|
|
2264
|
+
return we.sent(), [3, 4];
|
|
2265
2265
|
case 2:
|
|
2266
|
-
return [4,
|
|
2266
|
+
return [4, mn(k, J.data, a.cache, w)];
|
|
2267
2267
|
case 3:
|
|
2268
|
-
|
|
2268
|
+
we.sent(), we.label = 4;
|
|
2269
2269
|
case 4:
|
|
2270
|
-
return b.isValidating = !1, b.isLoading = !1,
|
|
2270
|
+
return b.isValidating = !1, b.isLoading = !1, bt.delete(k), b.error !== void 0 && (Re = !c && a.shouldRetryOnError && (d ? d.shouldRetryOnError : !0), Re && sd(_, d ? d.errorRetryCount : 1, a)), [
|
|
2271
2271
|
2
|
|
2272
2272
|
/*return*/
|
|
2273
2273
|
];
|
|
2274
2274
|
}
|
|
2275
2275
|
});
|
|
2276
2276
|
});
|
|
2277
|
-
},
|
|
2278
|
-
return Ae(
|
|
2279
|
-
return Pe(this, function(
|
|
2280
|
-
switch (
|
|
2277
|
+
}, ee && a.revalidateDebounce ? (setTimeout(function() {
|
|
2278
|
+
return Ae(se, void 0, void 0, function() {
|
|
2279
|
+
return Pe(this, function(J) {
|
|
2280
|
+
switch (J.label) {
|
|
2281
2281
|
case 0:
|
|
2282
|
-
return c ? [3, 2] : [4,
|
|
2282
|
+
return c ? [3, 2] : [4, le()];
|
|
2283
2283
|
case 1:
|
|
2284
|
-
|
|
2284
|
+
J.sent(), J.label = 2;
|
|
2285
2285
|
case 2:
|
|
2286
2286
|
return [
|
|
2287
2287
|
2
|
|
@@ -2295,9 +2295,9 @@ function dd() {
|
|
|
2295
2295
|
/*return*/
|
|
2296
2296
|
];
|
|
2297
2297
|
case 1:
|
|
2298
|
-
return [4,
|
|
2298
|
+
return [4, le()];
|
|
2299
2299
|
case 2:
|
|
2300
|
-
|
|
2300
|
+
ve.sent(), ve.label = 3;
|
|
2301
2301
|
case 3:
|
|
2302
2302
|
return [
|
|
2303
2303
|
2
|
|
@@ -2306,15 +2306,15 @@ function dd() {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
});
|
|
2308
2308
|
});
|
|
2309
|
-
},
|
|
2309
|
+
}, C = function() {
|
|
2310
2310
|
return Ae(e, void 0, void 0, function() {
|
|
2311
|
-
return Pe(this, function(
|
|
2311
|
+
return Pe(this, function(I) {
|
|
2312
2312
|
return [2, _(null, { shouldRetryOnError: !1 })];
|
|
2313
2313
|
});
|
|
2314
2314
|
});
|
|
2315
|
-
},
|
|
2315
|
+
}, O = null;
|
|
2316
2316
|
yi(function() {
|
|
2317
|
-
var
|
|
2317
|
+
var I = function() {
|
|
2318
2318
|
return Ae(e, void 0, void 0, function() {
|
|
2319
2319
|
return Pe(this, function(d) {
|
|
2320
2320
|
switch (d.label) {
|
|
@@ -2323,9 +2323,9 @@ function dd() {
|
|
|
2323
2323
|
case 1:
|
|
2324
2324
|
return d.sent(), [3, 3];
|
|
2325
2325
|
case 2:
|
|
2326
|
-
|
|
2326
|
+
O && clearTimeout(O), d.label = 3;
|
|
2327
2327
|
case 3:
|
|
2328
|
-
return a.refreshInterval && !c && (
|
|
2328
|
+
return a.refreshInterval && !c && (O = setTimeout(I, a.refreshInterval)), [
|
|
2329
2329
|
2
|
|
2330
2330
|
/*return*/
|
|
2331
2331
|
];
|
|
@@ -2333,60 +2333,60 @@ function dd() {
|
|
|
2333
2333
|
});
|
|
2334
2334
|
});
|
|
2335
2335
|
};
|
|
2336
|
-
a.refreshInterval && (
|
|
2336
|
+
a.refreshInterval && (O = setTimeout(I, a.refreshInterval)), a.revalidateOnFocus && (document.addEventListener("visibilitychange", C, !1), window.addEventListener("focus", C, !1));
|
|
2337
2337
|
}), vi(function() {
|
|
2338
|
-
c = !0,
|
|
2339
|
-
var
|
|
2340
|
-
|
|
2338
|
+
c = !0, O && clearTimeout(O), a.revalidateOnFocus && (document.removeEventListener("visibilitychange", C, !1), window.removeEventListener("focus", C, !1));
|
|
2339
|
+
var I = tt.get(m.value);
|
|
2340
|
+
I && (I.data = I.data.filter(function(d) {
|
|
2341
2341
|
return d !== b;
|
|
2342
2342
|
}));
|
|
2343
2343
|
});
|
|
2344
2344
|
try {
|
|
2345
|
-
|
|
2346
|
-
hi(m) || (m.value =
|
|
2345
|
+
Se(m, function(I) {
|
|
2346
|
+
hi(m) || (m.value = I), b.key = I, b.isValidating = !!I, ld(m.value, b, w), !v && !f && m.value && _(), f = !1;
|
|
2347
2347
|
}, {
|
|
2348
2348
|
immediate: !0
|
|
2349
2349
|
});
|
|
2350
2350
|
} catch {
|
|
2351
2351
|
}
|
|
2352
|
-
var
|
|
2353
|
-
return _(
|
|
2352
|
+
var s = ue(ue({}, wi(b)), { mutate: function(I, d) {
|
|
2353
|
+
return _(I, ue(ue({}, d), { forceRevalidate: !0 }));
|
|
2354
2354
|
} });
|
|
2355
|
-
return
|
|
2355
|
+
return s;
|
|
2356
2356
|
}
|
|
2357
2357
|
function ud(e) {
|
|
2358
2358
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
2359
2359
|
}
|
|
2360
|
-
function
|
|
2360
|
+
function fi(e) {
|
|
2361
2361
|
return `redis-partial-links-${e}`;
|
|
2362
2362
|
}
|
|
2363
|
-
const
|
|
2364
|
-
const { axiosInstance: t } =
|
|
2363
|
+
const ze = (e) => {
|
|
2364
|
+
const { axiosInstance: t } = Ot(e.axiosRequestConfig);
|
|
2365
2365
|
return {
|
|
2366
2366
|
fetcher: async (n) => {
|
|
2367
|
-
const { partialId: o, size:
|
|
2368
|
-
let
|
|
2369
|
-
e.app === "konnect" ?
|
|
2367
|
+
const { partialId: o, size: i, offset: a, query: c } = n;
|
|
2368
|
+
let f = `${e.apiBaseUrl}${Me.links[e.app]}`;
|
|
2369
|
+
e.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "")), f = f.replace(/{id}/gi, o || ""), c && (f = `${f}?${c}`);
|
|
2370
2370
|
const { data: l } = await t.get(
|
|
2371
|
-
|
|
2372
|
-
{ params: { size:
|
|
2371
|
+
f,
|
|
2372
|
+
{ params: { size: i, offset: a } }
|
|
2373
2373
|
);
|
|
2374
2374
|
return l;
|
|
2375
2375
|
}
|
|
2376
2376
|
};
|
|
2377
|
-
},
|
|
2378
|
-
const { partialId: t, config: n } = e, { fetcher: o } =
|
|
2379
|
-
|
|
2377
|
+
}, pi = (e) => {
|
|
2378
|
+
const { partialId: t, config: n } = e, { fetcher: o } = ze(n), i = A([]), { data: a } = dd(
|
|
2379
|
+
fi(t),
|
|
2380
2380
|
() => o({ partialId: t }),
|
|
2381
2381
|
{
|
|
2382
2382
|
revalidateOnFocus: !1
|
|
2383
2383
|
}
|
|
2384
2384
|
);
|
|
2385
|
-
return
|
|
2385
|
+
return Se(a, () => {
|
|
2386
2386
|
var c;
|
|
2387
|
-
|
|
2388
|
-
}),
|
|
2389
|
-
}, cd = { class: "kong-ui-entities-redis-configurations-form" }, fd = /* @__PURE__ */
|
|
2387
|
+
i.value = ((c = a.value) == null ? void 0 : c.data) ?? [];
|
|
2388
|
+
}), i;
|
|
2389
|
+
}, cd = { class: "kong-ui-entities-redis-configurations-form" }, fd = /* @__PURE__ */ X({
|
|
2390
2390
|
__name: "RedisConfigurationForm",
|
|
2391
2391
|
props: {
|
|
2392
2392
|
config: {
|
|
@@ -2424,633 +2424,640 @@ const Fe = (e) => {
|
|
|
2424
2424
|
},
|
|
2425
2425
|
emits: ["update", "error", "loading", "cancel"],
|
|
2426
2426
|
setup(e, { emit: t }) {
|
|
2427
|
-
const n = e, o = t, { i18n: { t:
|
|
2427
|
+
const n = e, o = t, { i18n: { t: i }, i18nT: a } = be.useI18n(), {
|
|
2428
2428
|
vaultSecretPickerSetup: c,
|
|
2429
|
-
setUpVaultSecretPicker:
|
|
2429
|
+
setUpVaultSecretPicker: f,
|
|
2430
2430
|
handleVaultSecretPickerAutofill: l
|
|
2431
|
-
} =
|
|
2431
|
+
} = di(), u = Sn(), v = A("json"), w = B(() => {
|
|
2432
|
+
const U = k.value === T.HOST_PORT_EE || k.value === T.HOST_PORT_CE && !!n.config.isCEFieldsReferenceable;
|
|
2433
|
+
return {
|
|
2434
|
+
host: U && !!n.config.isHostReferenceable,
|
|
2435
|
+
port: U && !!n.config.isPortReferenceable,
|
|
2436
|
+
serverName: U && !!n.config.isServerNameReferenceable
|
|
2437
|
+
};
|
|
2438
|
+
}), m = B(() => [
|
|
2432
2439
|
{
|
|
2433
|
-
label:
|
|
2434
|
-
group:
|
|
2435
|
-
value:
|
|
2436
|
-
selected:
|
|
2437
|
-
disabled:
|
|
2440
|
+
label: i("form.options.type.host_port"),
|
|
2441
|
+
group: i("form.options.type.enterprise"),
|
|
2442
|
+
value: T.HOST_PORT_EE,
|
|
2443
|
+
selected: k.value === T.HOST_PORT_EE,
|
|
2444
|
+
disabled: !$ && n.disabledPartialType === Y.REDIS_EE
|
|
2438
2445
|
},
|
|
2439
2446
|
{
|
|
2440
|
-
label:
|
|
2441
|
-
group:
|
|
2442
|
-
value:
|
|
2443
|
-
selected:
|
|
2444
|
-
disabled:
|
|
2447
|
+
label: i("form.options.type.cluster"),
|
|
2448
|
+
group: i("form.options.type.enterprise"),
|
|
2449
|
+
value: T.CLUSTER,
|
|
2450
|
+
selected: k.value === T.CLUSTER,
|
|
2451
|
+
disabled: !$ && n.disabledPartialType === Y.REDIS_EE
|
|
2445
2452
|
},
|
|
2446
2453
|
{
|
|
2447
|
-
label:
|
|
2448
|
-
group:
|
|
2449
|
-
value:
|
|
2450
|
-
selected:
|
|
2451
|
-
disabled:
|
|
2454
|
+
label: i("form.options.type.sentinel"),
|
|
2455
|
+
group: i("form.options.type.enterprise"),
|
|
2456
|
+
value: T.SENTINEL,
|
|
2457
|
+
selected: k.value === T.SENTINEL,
|
|
2458
|
+
disabled: !$ && n.disabledPartialType === Y.REDIS_EE
|
|
2452
2459
|
},
|
|
2453
2460
|
{
|
|
2454
|
-
label:
|
|
2455
|
-
group:
|
|
2456
|
-
value:
|
|
2457
|
-
selected:
|
|
2458
|
-
disabled:
|
|
2461
|
+
label: i("form.options.type.host_port"),
|
|
2462
|
+
group: i("form.options.type.open_source"),
|
|
2463
|
+
value: T.HOST_PORT_CE,
|
|
2464
|
+
selected: k.value === T.HOST_PORT_CE,
|
|
2465
|
+
disabled: $ && H.value || !$ && n.disabledPartialType === Y.REDIS_CE
|
|
2459
2466
|
}
|
|
2460
|
-
]),
|
|
2467
|
+
]), b = B(() => [
|
|
2461
2468
|
{
|
|
2462
|
-
label:
|
|
2463
|
-
value:
|
|
2469
|
+
label: i("form.options.auth_provider.aws"),
|
|
2470
|
+
value: W.AWS
|
|
2464
2471
|
},
|
|
2465
2472
|
{
|
|
2466
|
-
label:
|
|
2467
|
-
value:
|
|
2473
|
+
label: i("form.options.auth_provider.gcp"),
|
|
2474
|
+
value: W.GCP
|
|
2468
2475
|
},
|
|
2469
2476
|
{
|
|
2470
|
-
label:
|
|
2471
|
-
value:
|
|
2477
|
+
label: i("form.options.auth_provider.azure"),
|
|
2478
|
+
value: W.AZURE
|
|
2472
2479
|
}
|
|
2473
|
-
]),
|
|
2474
|
-
{ label:
|
|
2475
|
-
{ label:
|
|
2476
|
-
{ label:
|
|
2477
|
-
],
|
|
2478
|
-
const y =
|
|
2479
|
-
return `${
|
|
2480
|
-
},
|
|
2480
|
+
]), _ = [
|
|
2481
|
+
{ label: i("form.options.sentinel_role.master"), value: "master" },
|
|
2482
|
+
{ label: i("form.options.sentinel_role.slave"), value: "slave" },
|
|
2483
|
+
{ label: i("form.options.sentinel_role.any"), value: "any" }
|
|
2484
|
+
], C = (U) => {
|
|
2485
|
+
const y = U.value === T.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
2486
|
+
return `${U.label}${y}`;
|
|
2487
|
+
}, O = () => n.disabledPartialType && et($e) === n.disabledPartialType ? n.disabledPartialType === Y.REDIS_CE ? T.HOST_PORT_EE : T.HOST_PORT_CE : $e, {
|
|
2481
2488
|
form: s,
|
|
2482
|
-
canSubmit:
|
|
2483
|
-
payload:
|
|
2484
|
-
isEdit:
|
|
2485
|
-
redisType:
|
|
2486
|
-
redisTypeIsEnterprise:
|
|
2487
|
-
fetchUrl:
|
|
2488
|
-
submit:
|
|
2489
|
-
setInitialFormValues:
|
|
2489
|
+
canSubmit: I,
|
|
2490
|
+
payload: d,
|
|
2491
|
+
isEdit: $,
|
|
2492
|
+
redisType: k,
|
|
2493
|
+
redisTypeIsEnterprise: H,
|
|
2494
|
+
fetchUrl: ee,
|
|
2495
|
+
submit: ie,
|
|
2496
|
+
setInitialFormValues: ye
|
|
2490
2497
|
} = $s({
|
|
2491
2498
|
partialId: n.partialId,
|
|
2492
|
-
defaultRedisType:
|
|
2499
|
+
defaultRedisType: O(),
|
|
2493
2500
|
config: n.config,
|
|
2494
2501
|
cloudAuthAvailable: n.config.cloudAuthAvailable
|
|
2495
|
-
}), { fetcher:
|
|
2496
|
-
[
|
|
2497
|
-
} :
|
|
2502
|
+
}), { fetcher: le } = ze(n.config), se = A(!1), ve = A(!1), J = A(0), Ie = B(() => v.value === "terraform" ? {
|
|
2503
|
+
[d.value.type.replaceAll("-", "_")]: ks(d.value, ["type"])
|
|
2504
|
+
} : d.value), he = async () => {
|
|
2498
2505
|
try {
|
|
2499
|
-
if (
|
|
2500
|
-
const { count: y } = await
|
|
2501
|
-
if (
|
|
2502
|
-
|
|
2506
|
+
if ($ && !ve.value) {
|
|
2507
|
+
const { count: y } = await le({ partialId: n.partialId });
|
|
2508
|
+
if (J.value = y, y > 0) {
|
|
2509
|
+
se.value = !0;
|
|
2503
2510
|
return;
|
|
2504
2511
|
}
|
|
2505
2512
|
}
|
|
2506
|
-
const { data:
|
|
2507
|
-
o("update",
|
|
2508
|
-
} catch (
|
|
2509
|
-
o("error",
|
|
2513
|
+
const { data: U } = await ie();
|
|
2514
|
+
o("update", U);
|
|
2515
|
+
} catch (U) {
|
|
2516
|
+
o("error", U);
|
|
2510
2517
|
}
|
|
2511
|
-
},
|
|
2512
|
-
|
|
2513
|
-
},
|
|
2518
|
+
}, Re = () => {
|
|
2519
|
+
se.value = !1, ve.value = !0, he();
|
|
2520
|
+
}, we = () => {
|
|
2514
2521
|
n.config.cancelRoute && u.push(n.config.cancelRoute), o("cancel");
|
|
2515
|
-
},
|
|
2516
|
-
o("loading",
|
|
2517
|
-
},
|
|
2518
|
-
o("error",
|
|
2519
|
-
},
|
|
2520
|
-
|
|
2522
|
+
}, lt = (U) => {
|
|
2523
|
+
o("loading", U);
|
|
2524
|
+
}, Ke = (U) => {
|
|
2525
|
+
o("error", U);
|
|
2526
|
+
}, st = (U) => {
|
|
2527
|
+
ye(U);
|
|
2521
2528
|
};
|
|
2522
|
-
return
|
|
2523
|
-
if (
|
|
2524
|
-
const { count:
|
|
2525
|
-
|
|
2529
|
+
return gn(async () => {
|
|
2530
|
+
if ($) {
|
|
2531
|
+
const { count: U } = await le({ partialId: n.partialId });
|
|
2532
|
+
J.value = U;
|
|
2526
2533
|
}
|
|
2527
|
-
}), (
|
|
2528
|
-
const
|
|
2529
|
-
return
|
|
2534
|
+
}), (U, y) => {
|
|
2535
|
+
const je = P("KAlert"), xe = P("KSelect"), S = P("KInput"), x = P("KCheckbox"), F = P("KModal");
|
|
2536
|
+
return R(), G(ce, null, [
|
|
2530
2537
|
K("div", cd, [
|
|
2531
|
-
g(
|
|
2538
|
+
g(r(Oi), {
|
|
2532
2539
|
"action-teleport-target": e.actionTeleportTarget,
|
|
2533
|
-
"can-submit":
|
|
2540
|
+
"can-submit": r(I),
|
|
2534
2541
|
config: e.config,
|
|
2535
2542
|
"edit-id": e.partialId,
|
|
2536
|
-
"entity-type":
|
|
2537
|
-
"error-message":
|
|
2538
|
-
"fetch-url":
|
|
2539
|
-
"form-fields":
|
|
2540
|
-
"is-readonly":
|
|
2543
|
+
"entity-type": r(hn).Partial,
|
|
2544
|
+
"error-message": r(s).errorMessage,
|
|
2545
|
+
"fetch-url": r(ee),
|
|
2546
|
+
"form-fields": Ie.value,
|
|
2547
|
+
"is-readonly": r(s).readonly,
|
|
2541
2548
|
"slidout-top-offset": e.slidoutTopOffset,
|
|
2542
|
-
onCancel:
|
|
2543
|
-
onCodeBlockTabChange: y[34] || (y[34] = (
|
|
2544
|
-
"onFetch:error":
|
|
2545
|
-
"onFetch:success":
|
|
2546
|
-
onLoading:
|
|
2547
|
-
onSubmit:
|
|
2549
|
+
onCancel: we,
|
|
2550
|
+
onCodeBlockTabChange: y[34] || (y[34] = (p) => v.value = p),
|
|
2551
|
+
"onFetch:error": Ke,
|
|
2552
|
+
"onFetch:success": st,
|
|
2553
|
+
onLoading: lt,
|
|
2554
|
+
onSubmit: he
|
|
2548
2555
|
}, {
|
|
2549
|
-
default:
|
|
2550
|
-
|
|
2556
|
+
default: E(() => [
|
|
2557
|
+
J.value > 0 && r($) ? (R(), N(je, {
|
|
2551
2558
|
key: 0,
|
|
2552
2559
|
appearance: "warning",
|
|
2553
2560
|
class: "warning-alert",
|
|
2554
2561
|
"data-testid": "redis-update-warning-alert"
|
|
2555
2562
|
}, {
|
|
2556
|
-
default:
|
|
2557
|
-
g(
|
|
2563
|
+
default: E(() => [
|
|
2564
|
+
g(r(a), {
|
|
2558
2565
|
keypath: "form.edit_warning_modal.description",
|
|
2559
2566
|
tag: "div"
|
|
2560
2567
|
}, {
|
|
2561
|
-
pluginCount:
|
|
2562
|
-
K("b", null,
|
|
2568
|
+
pluginCount: E(() => [
|
|
2569
|
+
K("b", null, z(r(i)("form.edit_warning_modal.plugin_count", { count: J.value })), 1)
|
|
2563
2570
|
]),
|
|
2564
2571
|
_: 1
|
|
2565
2572
|
})
|
|
2566
2573
|
]),
|
|
2567
2574
|
_: 1
|
|
2568
|
-
})) :
|
|
2569
|
-
g(
|
|
2575
|
+
})) : Q("", !0),
|
|
2576
|
+
g(r(de), {
|
|
2570
2577
|
"data-testid": "redis-type-section",
|
|
2571
|
-
description: i
|
|
2572
|
-
title: i
|
|
2578
|
+
description: r(i)("form.sections.type.description"),
|
|
2579
|
+
title: r(i)("form.sections.type.title")
|
|
2573
2580
|
}, {
|
|
2574
|
-
default:
|
|
2575
|
-
g(
|
|
2576
|
-
modelValue:
|
|
2577
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
2581
|
+
default: E(() => [
|
|
2582
|
+
g(xe, {
|
|
2583
|
+
modelValue: r(k),
|
|
2584
|
+
"onUpdate:modelValue": y[0] || (y[0] = (p) => Ti(k) ? k.value = p : null),
|
|
2578
2585
|
"data-testid": "redis-type-select",
|
|
2579
|
-
disabled:
|
|
2580
|
-
items:
|
|
2586
|
+
disabled: r($) && r(k) === r(T).HOST_PORT_CE,
|
|
2587
|
+
items: m.value,
|
|
2581
2588
|
"kpop-attributes": { "data-testid": "redis-type-select-popover" },
|
|
2582
|
-
label: i
|
|
2583
|
-
readonly:
|
|
2589
|
+
label: r(i)("form.fields.type.label"),
|
|
2590
|
+
readonly: r(s).readonly,
|
|
2584
2591
|
required: ""
|
|
2585
2592
|
}, {
|
|
2586
|
-
"selected-item-template":
|
|
2587
|
-
|
|
2593
|
+
"selected-item-template": E(({ item: p }) => [
|
|
2594
|
+
oe(z(C(p)), 1)
|
|
2588
2595
|
]),
|
|
2589
2596
|
_: 1
|
|
2590
2597
|
}, 8, ["modelValue", "disabled", "items", "label", "readonly"])
|
|
2591
2598
|
]),
|
|
2592
2599
|
_: 1
|
|
2593
2600
|
}, 8, ["description", "title"]),
|
|
2594
|
-
g(
|
|
2601
|
+
g(r(de), {
|
|
2595
2602
|
"data-testid": "redis-general-section",
|
|
2596
|
-
description: i
|
|
2597
|
-
title: i
|
|
2603
|
+
description: r(i)("form.sections.general.description"),
|
|
2604
|
+
title: r(i)("form.sections.general.title")
|
|
2598
2605
|
}, {
|
|
2599
|
-
default:
|
|
2600
|
-
g(
|
|
2601
|
-
modelValue:
|
|
2602
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
2606
|
+
default: E(() => [
|
|
2607
|
+
g(S, {
|
|
2608
|
+
modelValue: r(s).fields.name,
|
|
2609
|
+
"onUpdate:modelValue": y[1] || (y[1] = (p) => r(s).fields.name = p),
|
|
2603
2610
|
modelModifiers: { trim: !0 },
|
|
2604
2611
|
"data-testid": "redis-name-input",
|
|
2605
|
-
disabled:
|
|
2606
|
-
label: i
|
|
2607
|
-
placeholder: i
|
|
2608
|
-
readonly:
|
|
2612
|
+
disabled: r($),
|
|
2613
|
+
label: r(i)("form.fields.name.label"),
|
|
2614
|
+
placeholder: r(i)("form.fields.name.placeholder"),
|
|
2615
|
+
readonly: r(s).readonly,
|
|
2609
2616
|
required: ""
|
|
2610
2617
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
2611
|
-
g(
|
|
2612
|
-
modelValue:
|
|
2613
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
|
2618
|
+
g(S, {
|
|
2619
|
+
modelValue: r(s).fields.tags,
|
|
2620
|
+
"onUpdate:modelValue": y[2] || (y[2] = (p) => r(s).fields.tags = p),
|
|
2614
2621
|
modelModifiers: { trim: !0 },
|
|
2615
2622
|
"data-testid": "redis-tags-input",
|
|
2616
|
-
help: i
|
|
2617
|
-
label: i
|
|
2623
|
+
help: r(i)("form.fields.tags.help"),
|
|
2624
|
+
label: r(i)("form.fields.tags.label"),
|
|
2618
2625
|
"label-attributes": {
|
|
2619
|
-
info: i
|
|
2626
|
+
info: r(i)("form.fields.tags.tooltip"),
|
|
2620
2627
|
tooltipAttributes: { maxWidth: "400" }
|
|
2621
2628
|
},
|
|
2622
|
-
placeholder: i
|
|
2623
|
-
readonly:
|
|
2629
|
+
placeholder: r(i)("form.fields.tags.placeholder"),
|
|
2630
|
+
readonly: r(s).readonly
|
|
2624
2631
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
2625
2632
|
]),
|
|
2626
2633
|
_: 1
|
|
2627
2634
|
}, 8, ["description", "title"]),
|
|
2628
|
-
e.config.cloudAuthAvailable &&
|
|
2635
|
+
e.config.cloudAuthAvailable && r(k) !== r(T).SENTINEL ? (R(), N(r(de), {
|
|
2629
2636
|
key: 1,
|
|
2630
2637
|
"data-testid": "redis-cloud-auth-section",
|
|
2631
|
-
description: i
|
|
2632
|
-
title: i
|
|
2638
|
+
description: r(i)("form.sections.cloud_auth.description"),
|
|
2639
|
+
title: r(i)("form.sections.cloud_auth.title")
|
|
2633
2640
|
}, {
|
|
2634
|
-
default:
|
|
2635
|
-
g(
|
|
2636
|
-
modelValue:
|
|
2637
|
-
"onUpdate:modelValue": y[3] || (y[3] = (
|
|
2641
|
+
default: E(() => [
|
|
2642
|
+
g(xe, {
|
|
2643
|
+
modelValue: r(s).fields.config.cloud_authentication.auth_provider,
|
|
2644
|
+
"onUpdate:modelValue": y[3] || (y[3] = (p) => r(s).fields.config.cloud_authentication.auth_provider = p),
|
|
2638
2645
|
clearable: "",
|
|
2639
2646
|
"data-testid": "redis-auth-provider-select",
|
|
2640
|
-
items:
|
|
2647
|
+
items: b.value,
|
|
2641
2648
|
"kpop-attributes": { "data-testid": "redis-auth-provider-select-popover" },
|
|
2642
|
-
label: i
|
|
2643
|
-
"label-attributes": { info: i
|
|
2644
|
-
readonly:
|
|
2649
|
+
label: r(i)("form.fields.cloud_authentication.auth_provider.label"),
|
|
2650
|
+
"label-attributes": { info: r(i)("form.fields.cloud_authentication.auth_provider.tooltip") },
|
|
2651
|
+
readonly: r(s).readonly
|
|
2645
2652
|
}, null, 8, ["modelValue", "items", "label", "label-attributes", "readonly"]),
|
|
2646
2653
|
g(Xs, {
|
|
2647
|
-
modelValue:
|
|
2648
|
-
"onUpdate:modelValue": y[4] || (y[4] = (
|
|
2654
|
+
modelValue: r(s).fields.config.cloud_authentication,
|
|
2655
|
+
"onUpdate:modelValue": y[4] || (y[4] = (p) => r(s).fields.config.cloud_authentication = p),
|
|
2649
2656
|
config: n.config,
|
|
2650
|
-
readonly:
|
|
2657
|
+
readonly: r(s).readonly
|
|
2651
2658
|
}, null, 8, ["modelValue", "config", "readonly"])
|
|
2652
2659
|
]),
|
|
2653
2660
|
_: 1
|
|
2654
|
-
}, 8, ["description", "title"])) :
|
|
2655
|
-
|
|
2661
|
+
}, 8, ["description", "title"])) : Q("", !0),
|
|
2662
|
+
r(k) === r(T).SENTINEL ? (R(), N(r(de), {
|
|
2656
2663
|
key: 2,
|
|
2657
2664
|
"data-testid": "redis-sentinel-configuration-section",
|
|
2658
|
-
description: i
|
|
2659
|
-
title: i
|
|
2665
|
+
description: r(i)("form.sections.sentinel_configuration.description"),
|
|
2666
|
+
title: r(i)("form.sections.sentinel_configuration.title")
|
|
2660
2667
|
}, {
|
|
2661
|
-
default:
|
|
2662
|
-
g(
|
|
2663
|
-
modelValue:
|
|
2664
|
-
"onUpdate:modelValue": y[5] || (y[5] = (
|
|
2668
|
+
default: E(() => [
|
|
2669
|
+
g(S, {
|
|
2670
|
+
modelValue: r(s).fields.config.sentinel_master,
|
|
2671
|
+
"onUpdate:modelValue": y[5] || (y[5] = (p) => r(s).fields.config.sentinel_master = p),
|
|
2665
2672
|
"data-testid": "redis-sentinel-master-input",
|
|
2666
|
-
label: i
|
|
2673
|
+
label: r(i)("form.fields.sentinel_master.label"),
|
|
2667
2674
|
"label-attributes": {
|
|
2668
|
-
info: i
|
|
2675
|
+
info: r(i)("form.fields.sentinel_master.tooltip"),
|
|
2669
2676
|
tooltipAttributes: { maxWidth: "400" }
|
|
2670
2677
|
},
|
|
2671
|
-
readonly:
|
|
2678
|
+
readonly: r(s).readonly,
|
|
2672
2679
|
required: ""
|
|
2673
2680
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2674
|
-
g(
|
|
2675
|
-
modelValue:
|
|
2676
|
-
"onUpdate:modelValue": y[6] || (y[6] = (
|
|
2681
|
+
g(xe, {
|
|
2682
|
+
modelValue: r(s).fields.config.sentinel_role,
|
|
2683
|
+
"onUpdate:modelValue": y[6] || (y[6] = (p) => r(s).fields.config.sentinel_role = p),
|
|
2677
2684
|
"data-testid": "redis-sentinel-role-select",
|
|
2678
|
-
items:
|
|
2685
|
+
items: _,
|
|
2679
2686
|
"kpop-attributes": { "data-testid": "redis-sentinel-role-select-popover" },
|
|
2680
|
-
label: i
|
|
2687
|
+
label: r(i)("form.fields.sentinel_role.label"),
|
|
2681
2688
|
"label-attributes": {
|
|
2682
|
-
info: i
|
|
2689
|
+
info: r(i)("form.fields.sentinel_role.tooltip"),
|
|
2683
2690
|
tooltipAttributes: { maxWidth: "400" }
|
|
2684
2691
|
},
|
|
2685
|
-
readonly:
|
|
2692
|
+
readonly: r(s).readonly,
|
|
2686
2693
|
required: ""
|
|
2687
2694
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2688
2695
|
g(Qs, {
|
|
2689
|
-
modelValue:
|
|
2690
|
-
"onUpdate:modelValue": y[7] || (y[7] = (
|
|
2691
|
-
readonly:
|
|
2696
|
+
modelValue: r(s).fields.config.sentinel_nodes,
|
|
2697
|
+
"onUpdate:modelValue": y[7] || (y[7] = (p) => r(s).fields.config.sentinel_nodes = p),
|
|
2698
|
+
readonly: r(s).readonly
|
|
2692
2699
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2693
|
-
g(
|
|
2694
|
-
modelValue:
|
|
2695
|
-
"onUpdate:modelValue": y[8] || (y[8] = (
|
|
2700
|
+
g(S, {
|
|
2701
|
+
modelValue: r(s).fields.config.sentinel_username,
|
|
2702
|
+
"onUpdate:modelValue": y[8] || (y[8] = (p) => r(s).fields.config.sentinel_username = p),
|
|
2696
2703
|
modelModifiers: { trim: !0 },
|
|
2697
|
-
label: i
|
|
2704
|
+
label: r(i)("form.fields.sentinel_username.label"),
|
|
2698
2705
|
"label-attributes": {
|
|
2699
|
-
info: i
|
|
2706
|
+
info: r(i)("form.fields.sentinel_username.tooltip"),
|
|
2700
2707
|
tooltipAttributes: { maxWidth: "400" }
|
|
2701
2708
|
},
|
|
2702
|
-
readonly:
|
|
2709
|
+
readonly: r(s).readonly
|
|
2703
2710
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2704
|
-
g(
|
|
2711
|
+
g(r(Te), {
|
|
2705
2712
|
class: "secret-picker-provider",
|
|
2706
|
-
disabled:
|
|
2707
|
-
update: (
|
|
2708
|
-
value:
|
|
2709
|
-
onOpen: y[9] || (y[9] = (
|
|
2713
|
+
disabled: r(s).readonly,
|
|
2714
|
+
update: (p) => r(s).fields.config.sentinel_username = p,
|
|
2715
|
+
value: r(s).fields.config.sentinel_username,
|
|
2716
|
+
onOpen: y[9] || (y[9] = (p, Z) => r(f)(p, Z))
|
|
2710
2717
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2711
|
-
g(
|
|
2712
|
-
modelValue:
|
|
2713
|
-
"onUpdate:modelValue": y[10] || (y[10] = (
|
|
2718
|
+
g(S, {
|
|
2719
|
+
modelValue: r(s).fields.config.sentinel_password,
|
|
2720
|
+
"onUpdate:modelValue": y[10] || (y[10] = (p) => r(s).fields.config.sentinel_password = p),
|
|
2714
2721
|
modelModifiers: { trim: !0 },
|
|
2715
|
-
label: i
|
|
2722
|
+
label: r(i)("form.fields.sentinel_password.label"),
|
|
2716
2723
|
"label-attributes": {
|
|
2717
|
-
info: i
|
|
2724
|
+
info: r(i)("form.fields.sentinel_password.tooltip"),
|
|
2718
2725
|
tooltipAttributes: { maxWidth: "400" }
|
|
2719
2726
|
},
|
|
2720
|
-
readonly:
|
|
2727
|
+
readonly: r(s).readonly,
|
|
2721
2728
|
"show-password-mask-toggle": "",
|
|
2722
2729
|
type: "password"
|
|
2723
2730
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2724
|
-
g(
|
|
2731
|
+
g(r(Te), {
|
|
2725
2732
|
class: "secret-picker-provider",
|
|
2726
|
-
disabled:
|
|
2727
|
-
update: (
|
|
2728
|
-
value:
|
|
2729
|
-
onOpen: y[11] || (y[11] = (
|
|
2733
|
+
disabled: r(s).readonly,
|
|
2734
|
+
update: (p) => r(s).fields.config.sentinel_password = p,
|
|
2735
|
+
value: r(s).fields.config.sentinel_password,
|
|
2736
|
+
onOpen: y[11] || (y[11] = (p, Z) => r(f)(p, Z))
|
|
2730
2737
|
}, null, 8, ["disabled", "update", "value"])
|
|
2731
2738
|
]),
|
|
2732
2739
|
_: 1
|
|
2733
|
-
}, 8, ["description", "title"])) :
|
|
2734
|
-
|
|
2740
|
+
}, 8, ["description", "title"])) : Q("", !0),
|
|
2741
|
+
r(k) === r(T).CLUSTER ? (R(), N(r(de), {
|
|
2735
2742
|
key: 3,
|
|
2736
2743
|
"data-testid": "redis-cluster-configuration-section",
|
|
2737
|
-
description: i
|
|
2738
|
-
title: i
|
|
2744
|
+
description: r(i)("form.sections.cluster.description"),
|
|
2745
|
+
title: r(i)("form.sections.cluster.title")
|
|
2739
2746
|
}, {
|
|
2740
|
-
default:
|
|
2747
|
+
default: E(() => [
|
|
2741
2748
|
g(Gs, {
|
|
2742
|
-
modelValue:
|
|
2743
|
-
"onUpdate:modelValue": y[12] || (y[12] = (
|
|
2744
|
-
readonly:
|
|
2749
|
+
modelValue: r(s).fields.config.cluster_nodes,
|
|
2750
|
+
"onUpdate:modelValue": y[12] || (y[12] = (p) => r(s).fields.config.cluster_nodes = p),
|
|
2751
|
+
readonly: r(s).readonly
|
|
2745
2752
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2746
|
-
g(
|
|
2747
|
-
modelValue:
|
|
2748
|
-
"onUpdate:modelValue": y[13] || (y[13] = (
|
|
2753
|
+
g(S, {
|
|
2754
|
+
modelValue: r(s).fields.config.cluster_max_redirections,
|
|
2755
|
+
"onUpdate:modelValue": y[13] || (y[13] = (p) => r(s).fields.config.cluster_max_redirections = p),
|
|
2749
2756
|
"data-testid": "redis-cluster-max-redirections-input",
|
|
2750
|
-
label: i
|
|
2757
|
+
label: r(i)("form.fields.cluster_max_redirections.label"),
|
|
2751
2758
|
"label-attributes": {
|
|
2752
|
-
info: i
|
|
2759
|
+
info: r(i)("form.fields.cluster_max_redirections.tooltip"),
|
|
2753
2760
|
tooltipAttributes: { maxWidth: "400" }
|
|
2754
2761
|
},
|
|
2755
|
-
readonly:
|
|
2762
|
+
readonly: r(s).readonly,
|
|
2756
2763
|
type: "number"
|
|
2757
2764
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2758
2765
|
]),
|
|
2759
2766
|
_: 1
|
|
2760
|
-
}, 8, ["description", "title"])) :
|
|
2761
|
-
g(
|
|
2767
|
+
}, 8, ["description", "title"])) : Q("", !0),
|
|
2768
|
+
g(r(de), {
|
|
2762
2769
|
"data-testid": "redis-connection-configuration-section",
|
|
2763
|
-
description: i
|
|
2764
|
-
title: i
|
|
2770
|
+
description: r(i)("form.sections.connection.description"),
|
|
2771
|
+
title: r(i)("form.sections.connection.title")
|
|
2765
2772
|
}, {
|
|
2766
|
-
default:
|
|
2767
|
-
|
|
2773
|
+
default: E(() => [
|
|
2774
|
+
r(k) === r(T).HOST_PORT_CE || r(k) === r(T).HOST_PORT_EE ? (R(), N(S, {
|
|
2768
2775
|
key: 0,
|
|
2769
|
-
modelValue:
|
|
2770
|
-
"onUpdate:modelValue": y[14] || (y[14] = (
|
|
2776
|
+
modelValue: r(s).fields.config.host,
|
|
2777
|
+
"onUpdate:modelValue": y[14] || (y[14] = (p) => r(s).fields.config.host = p),
|
|
2771
2778
|
modelModifiers: { trim: !0 },
|
|
2772
2779
|
"data-testid": "redis-host-input",
|
|
2773
|
-
label: i
|
|
2780
|
+
label: r(i)("form.fields.host.label"),
|
|
2774
2781
|
"label-attributes": {
|
|
2775
|
-
info: i
|
|
2782
|
+
info: r(i)("form.fields.host.tooltip"),
|
|
2776
2783
|
tooltipAttributes: { maxWidth: "400" }
|
|
2777
2784
|
},
|
|
2778
|
-
readonly:
|
|
2779
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2780
|
-
|
|
2785
|
+
readonly: r(s).readonly
|
|
2786
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Q("", !0),
|
|
2787
|
+
w.value.host ? (R(), N(r(Te), {
|
|
2781
2788
|
key: 1,
|
|
2782
2789
|
class: "secret-picker-provider",
|
|
2783
2790
|
"data-testid": "secret-picker-provider-for-host",
|
|
2784
|
-
disabled:
|
|
2785
|
-
update: (
|
|
2786
|
-
value:
|
|
2787
|
-
onOpen: y[15] || (y[15] = (
|
|
2788
|
-
}, null, 8, ["disabled", "update", "value"])) :
|
|
2789
|
-
|
|
2791
|
+
disabled: r(s).readonly,
|
|
2792
|
+
update: (p) => r(s).fields.config.host = p,
|
|
2793
|
+
value: r(s).fields.config.host ?? "",
|
|
2794
|
+
onOpen: y[15] || (y[15] = (p, Z) => r(f)(p, Z))
|
|
2795
|
+
}, null, 8, ["disabled", "update", "value"])) : Q("", !0),
|
|
2796
|
+
r(k) === r(T).HOST_PORT_CE || r(k) === r(T).HOST_PORT_EE ? (R(), N(S, {
|
|
2790
2797
|
key: 2,
|
|
2791
|
-
modelValue:
|
|
2792
|
-
"onUpdate:modelValue": y[16] || (y[16] = (
|
|
2798
|
+
modelValue: r(s).fields.config.port,
|
|
2799
|
+
"onUpdate:modelValue": y[16] || (y[16] = (p) => r(s).fields.config.port = p),
|
|
2793
2800
|
modelModifiers: { trim: !0 },
|
|
2794
2801
|
"data-testid": "redis-port-input",
|
|
2795
|
-
label: i
|
|
2802
|
+
label: r(i)("form.fields.port.label"),
|
|
2796
2803
|
"label-attributes": {
|
|
2797
|
-
info: i
|
|
2804
|
+
info: r(i)("form.fields.port.tooltip"),
|
|
2798
2805
|
tooltipAttributes: { maxWidth: "400" }
|
|
2799
2806
|
},
|
|
2800
|
-
readonly:
|
|
2801
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2802
|
-
|
|
2807
|
+
readonly: r(s).readonly
|
|
2808
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Q("", !0),
|
|
2809
|
+
w.value.port ? (R(), N(r(Te), {
|
|
2803
2810
|
key: 3,
|
|
2804
2811
|
class: "secret-picker-provider",
|
|
2805
2812
|
"data-testid": "secret-picker-provider-for-port",
|
|
2806
|
-
disabled:
|
|
2807
|
-
update: (
|
|
2808
|
-
value: String(
|
|
2809
|
-
onOpen: y[17] || (y[17] = (
|
|
2810
|
-
}, null, 8, ["disabled", "update", "value"])) :
|
|
2811
|
-
|
|
2813
|
+
disabled: r(s).readonly,
|
|
2814
|
+
update: (p) => r(s).fields.config.port = p,
|
|
2815
|
+
value: String(r(s).fields.config.port ?? ""),
|
|
2816
|
+
onOpen: y[17] || (y[17] = (p, Z) => r(f)(p, Z))
|
|
2817
|
+
}, null, 8, ["disabled", "update", "value"])) : Q("", !0),
|
|
2818
|
+
r(k) === r(T).HOST_PORT_EE ? (R(), N(x, {
|
|
2812
2819
|
key: 4,
|
|
2813
|
-
modelValue:
|
|
2814
|
-
"onUpdate:modelValue": y[18] || (y[18] = (
|
|
2820
|
+
modelValue: r(s).fields.config.connection_is_proxied,
|
|
2821
|
+
"onUpdate:modelValue": y[18] || (y[18] = (p) => r(s).fields.config.connection_is_proxied = p),
|
|
2815
2822
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2816
|
-
disabled:
|
|
2817
|
-
label: i
|
|
2823
|
+
disabled: r(s).readonly,
|
|
2824
|
+
label: r(i)("form.fields.connection_is_proxied.label"),
|
|
2818
2825
|
"label-attributes": {
|
|
2819
|
-
info: i
|
|
2826
|
+
info: r(i)("form.fields.connection_is_proxied.tooltip"),
|
|
2820
2827
|
tooltipAttributes: { maxWidth: "400" }
|
|
2821
2828
|
}
|
|
2822
|
-
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) :
|
|
2823
|
-
|
|
2829
|
+
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) : Q("", !0),
|
|
2830
|
+
r(k) === r(T).HOST_PORT_CE ? (R(), N(S, {
|
|
2824
2831
|
key: 5,
|
|
2825
|
-
modelValue:
|
|
2826
|
-
"onUpdate:modelValue": y[19] || (y[19] = (
|
|
2832
|
+
modelValue: r(s).fields.config.timeout,
|
|
2833
|
+
"onUpdate:modelValue": y[19] || (y[19] = (p) => r(s).fields.config.timeout = p),
|
|
2827
2834
|
modelModifiers: { trim: !0 },
|
|
2828
2835
|
"data-testid": "redis-timeout-input",
|
|
2829
|
-
label: i
|
|
2836
|
+
label: r(i)("form.fields.timeout.label"),
|
|
2830
2837
|
"label-attributes": {
|
|
2831
|
-
info: i
|
|
2838
|
+
info: r(i)("form.fields.timeout.tooltip"),
|
|
2832
2839
|
tooltipAttributes: { maxWidth: "400" }
|
|
2833
2840
|
},
|
|
2834
|
-
readonly:
|
|
2841
|
+
readonly: r(s).readonly,
|
|
2835
2842
|
type: "number"
|
|
2836
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2837
|
-
g(
|
|
2838
|
-
modelValue:
|
|
2839
|
-
"onUpdate:modelValue": y[20] || (y[20] = (
|
|
2843
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : Q("", !0),
|
|
2844
|
+
g(S, {
|
|
2845
|
+
modelValue: r(s).fields.config.database,
|
|
2846
|
+
"onUpdate:modelValue": y[20] || (y[20] = (p) => r(s).fields.config.database = p),
|
|
2840
2847
|
modelModifiers: { trim: !0 },
|
|
2841
2848
|
"data-testid": "redis-database-input",
|
|
2842
|
-
label: i
|
|
2849
|
+
label: r(i)("form.fields.database.label"),
|
|
2843
2850
|
"label-attributes": {
|
|
2844
|
-
info: i
|
|
2851
|
+
info: r(i)("form.fields.database.tooltip"),
|
|
2845
2852
|
tooltipAttributes: { maxWidth: "400" }
|
|
2846
2853
|
},
|
|
2847
|
-
readonly:
|
|
2854
|
+
readonly: r(s).readonly,
|
|
2848
2855
|
type: "number"
|
|
2849
2856
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2850
|
-
g(
|
|
2851
|
-
modelValue:
|
|
2852
|
-
"onUpdate:modelValue": y[21] || (y[21] = (
|
|
2857
|
+
g(S, {
|
|
2858
|
+
modelValue: r(s).fields.config.username,
|
|
2859
|
+
"onUpdate:modelValue": y[21] || (y[21] = (p) => r(s).fields.config.username = p),
|
|
2853
2860
|
modelModifiers: { trim: !0 },
|
|
2854
2861
|
"data-testid": "redis-username-input",
|
|
2855
|
-
label: i
|
|
2862
|
+
label: r(i)("form.fields.username.label"),
|
|
2856
2863
|
"label-attributes": {
|
|
2857
|
-
info: i
|
|
2864
|
+
info: r(i)("form.fields.username.tooltip"),
|
|
2858
2865
|
tooltipAttributes: { maxWidth: "400" }
|
|
2859
2866
|
},
|
|
2860
|
-
readonly:
|
|
2867
|
+
readonly: r(s).readonly
|
|
2861
2868
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2862
|
-
g(
|
|
2869
|
+
g(r(Te), {
|
|
2863
2870
|
class: "secret-picker-provider",
|
|
2864
|
-
disabled:
|
|
2865
|
-
update: (
|
|
2866
|
-
value:
|
|
2867
|
-
onOpen: y[22] || (y[22] = (
|
|
2871
|
+
disabled: r(s).readonly,
|
|
2872
|
+
update: (p) => r(s).fields.config.username = p,
|
|
2873
|
+
value: r(s).fields.config.username,
|
|
2874
|
+
onOpen: y[22] || (y[22] = (p, Z) => r(f)(p, Z))
|
|
2868
2875
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2869
|
-
g(
|
|
2870
|
-
modelValue:
|
|
2871
|
-
"onUpdate:modelValue": y[23] || (y[23] = (
|
|
2876
|
+
g(S, {
|
|
2877
|
+
modelValue: r(s).fields.config.password,
|
|
2878
|
+
"onUpdate:modelValue": y[23] || (y[23] = (p) => r(s).fields.config.password = p),
|
|
2872
2879
|
modelModifiers: { trim: !0 },
|
|
2873
2880
|
"data-testid": "redis-password-input",
|
|
2874
|
-
label: i
|
|
2881
|
+
label: r(i)("form.fields.password.label"),
|
|
2875
2882
|
"label-attributes": {
|
|
2876
|
-
info: i
|
|
2883
|
+
info: r(i)("form.fields.password.tooltip"),
|
|
2877
2884
|
tooltipAttributes: { maxWidth: "400" }
|
|
2878
2885
|
},
|
|
2879
|
-
readonly:
|
|
2886
|
+
readonly: r(s).readonly,
|
|
2880
2887
|
"show-password-mask-toggle": "",
|
|
2881
2888
|
type: "password"
|
|
2882
2889
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2883
|
-
g(
|
|
2890
|
+
g(r(Te), {
|
|
2884
2891
|
class: "secret-picker-provider",
|
|
2885
|
-
disabled:
|
|
2886
|
-
update: (
|
|
2887
|
-
value:
|
|
2888
|
-
onOpen: y[24] || (y[24] = (
|
|
2892
|
+
disabled: r(s).readonly,
|
|
2893
|
+
update: (p) => r(s).fields.config.password = p,
|
|
2894
|
+
value: r(s).fields.config.password,
|
|
2895
|
+
onOpen: y[24] || (y[24] = (p, Z) => r(f)(p, Z))
|
|
2889
2896
|
}, null, 8, ["disabled", "update", "value"])
|
|
2890
2897
|
]),
|
|
2891
2898
|
_: 1
|
|
2892
2899
|
}, 8, ["description", "title"]),
|
|
2893
|
-
g(
|
|
2900
|
+
g(r(de), {
|
|
2894
2901
|
"data-testid": "redis-tls-configuration-section",
|
|
2895
|
-
description: i
|
|
2896
|
-
title: i
|
|
2902
|
+
description: r(i)("form.sections.tls.description"),
|
|
2903
|
+
title: r(i)("form.sections.tls.title")
|
|
2897
2904
|
}, {
|
|
2898
|
-
default:
|
|
2899
|
-
g(
|
|
2900
|
-
modelValue:
|
|
2901
|
-
"onUpdate:modelValue": y[25] || (y[25] = (
|
|
2905
|
+
default: E(() => [
|
|
2906
|
+
g(x, {
|
|
2907
|
+
modelValue: r(s).fields.config.ssl,
|
|
2908
|
+
"onUpdate:modelValue": y[25] || (y[25] = (p) => r(s).fields.config.ssl = p),
|
|
2902
2909
|
"data-testid": "redis-ssl-checkbox",
|
|
2903
|
-
description: i
|
|
2904
|
-
disabled:
|
|
2905
|
-
label: i
|
|
2910
|
+
description: r(i)("form.fields.ssl.description"),
|
|
2911
|
+
disabled: r(s).readonly,
|
|
2912
|
+
label: r(i)("form.fields.ssl.label"),
|
|
2906
2913
|
"label-attributes": {
|
|
2907
|
-
info: i
|
|
2914
|
+
info: r(i)("form.fields.ssl.tooltip"),
|
|
2908
2915
|
tooltipAttributes: { maxWidth: "400" }
|
|
2909
2916
|
}
|
|
2910
2917
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2911
|
-
g(
|
|
2912
|
-
modelValue:
|
|
2913
|
-
"onUpdate:modelValue": y[26] || (y[26] = (
|
|
2918
|
+
g(x, {
|
|
2919
|
+
modelValue: r(s).fields.config.ssl_verify,
|
|
2920
|
+
"onUpdate:modelValue": y[26] || (y[26] = (p) => r(s).fields.config.ssl_verify = p),
|
|
2914
2921
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2915
|
-
description: i
|
|
2916
|
-
disabled:
|
|
2917
|
-
label: i
|
|
2922
|
+
description: r(i)("form.fields.ssl_verify.description"),
|
|
2923
|
+
disabled: r(s).readonly,
|
|
2924
|
+
label: r(i)("form.fields.ssl_verify.label"),
|
|
2918
2925
|
"label-attributes": {
|
|
2919
|
-
info: i
|
|
2926
|
+
info: r(i)("form.fields.ssl_verify.tooltip"),
|
|
2920
2927
|
tooltipAttributes: { maxWidth: "400" }
|
|
2921
2928
|
}
|
|
2922
2929
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2923
|
-
g(
|
|
2924
|
-
modelValue:
|
|
2925
|
-
"onUpdate:modelValue": y[27] || (y[27] = (
|
|
2930
|
+
g(S, {
|
|
2931
|
+
modelValue: r(s).fields.config.server_name,
|
|
2932
|
+
"onUpdate:modelValue": y[27] || (y[27] = (p) => r(s).fields.config.server_name = p),
|
|
2926
2933
|
modelModifiers: { trim: !0 },
|
|
2927
2934
|
"data-testid": "redis-server_name-input",
|
|
2928
|
-
label: i
|
|
2935
|
+
label: r(i)("form.fields.server_name.label"),
|
|
2929
2936
|
"label-attributes": {
|
|
2930
|
-
info: i
|
|
2937
|
+
info: r(i)("form.fields.server_name.tooltip"),
|
|
2931
2938
|
tooltipAttributes: { maxWidth: "400" }
|
|
2932
2939
|
},
|
|
2933
|
-
readonly:
|
|
2940
|
+
readonly: r(s).readonly
|
|
2934
2941
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2935
|
-
|
|
2942
|
+
w.value.serverName ? (R(), N(r(Te), {
|
|
2936
2943
|
key: 0,
|
|
2937
2944
|
class: "secret-picker-provider",
|
|
2938
2945
|
"data-testid": "secret-picker-provider-for-server_name",
|
|
2939
|
-
disabled:
|
|
2940
|
-
update: (
|
|
2941
|
-
value:
|
|
2942
|
-
onOpen: y[28] || (y[28] = (
|
|
2943
|
-
}, null, 8, ["disabled", "update", "value"])) :
|
|
2946
|
+
disabled: r(s).readonly,
|
|
2947
|
+
update: (p) => r(s).fields.config.server_name = p,
|
|
2948
|
+
value: r(s).fields.config.server_name ?? "",
|
|
2949
|
+
onOpen: y[28] || (y[28] = (p, Z) => r(f)(p, Z))
|
|
2950
|
+
}, null, 8, ["disabled", "update", "value"])) : Q("", !0)
|
|
2944
2951
|
]),
|
|
2945
2952
|
_: 1
|
|
2946
2953
|
}, 8, ["description", "title"]),
|
|
2947
|
-
|
|
2954
|
+
r(k) !== r(T).HOST_PORT_CE ? (R(), N(r(de), {
|
|
2948
2955
|
key: 4,
|
|
2949
2956
|
"data-testid": "redis-keepalive-section",
|
|
2950
|
-
description: i
|
|
2951
|
-
title: i
|
|
2957
|
+
description: r(i)("form.sections.keepalive.description"),
|
|
2958
|
+
title: r(i)("form.sections.keepalive.title")
|
|
2952
2959
|
}, {
|
|
2953
|
-
default:
|
|
2954
|
-
g(
|
|
2955
|
-
modelValue:
|
|
2956
|
-
"onUpdate:modelValue": y[29] || (y[29] = (
|
|
2960
|
+
default: E(() => [
|
|
2961
|
+
g(S, {
|
|
2962
|
+
modelValue: r(s).fields.config.keepalive_backlog,
|
|
2963
|
+
"onUpdate:modelValue": y[29] || (y[29] = (p) => r(s).fields.config.keepalive_backlog = p),
|
|
2957
2964
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2958
|
-
label: i
|
|
2965
|
+
label: r(i)("form.fields.keepalive_backlog.label"),
|
|
2959
2966
|
"label-attributes": {
|
|
2960
|
-
info: i
|
|
2967
|
+
info: r(i)("form.fields.keepalive_backlog.tooltip"),
|
|
2961
2968
|
tooltipAttributes: { maxWidth: "400" }
|
|
2962
2969
|
},
|
|
2963
|
-
readonly:
|
|
2970
|
+
readonly: r(s).readonly,
|
|
2964
2971
|
type: "number"
|
|
2965
2972
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2966
|
-
g(
|
|
2967
|
-
modelValue:
|
|
2968
|
-
"onUpdate:modelValue": y[30] || (y[30] = (
|
|
2973
|
+
g(S, {
|
|
2974
|
+
modelValue: r(s).fields.config.keepalive_pool_size,
|
|
2975
|
+
"onUpdate:modelValue": y[30] || (y[30] = (p) => r(s).fields.config.keepalive_pool_size = p),
|
|
2969
2976
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2970
|
-
label: i
|
|
2977
|
+
label: r(i)("form.fields.keepalive_pool_size.label"),
|
|
2971
2978
|
"label-attributes": {
|
|
2972
|
-
info: i
|
|
2979
|
+
info: r(i)("form.fields.keepalive_pool_size.tooltip"),
|
|
2973
2980
|
tooltipAttributes: { maxWidth: "400" }
|
|
2974
2981
|
},
|
|
2975
|
-
readonly:
|
|
2982
|
+
readonly: r(s).readonly,
|
|
2976
2983
|
type: "number"
|
|
2977
2984
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2978
2985
|
]),
|
|
2979
2986
|
_: 1
|
|
2980
|
-
}, 8, ["description", "title"])) :
|
|
2981
|
-
|
|
2987
|
+
}, 8, ["description", "title"])) : Q("", !0),
|
|
2988
|
+
r(k) !== r(T).HOST_PORT_CE ? (R(), N(r(de), {
|
|
2982
2989
|
key: 5,
|
|
2983
2990
|
"data-testid": "redis-read-write-configuration-section",
|
|
2984
|
-
description: i
|
|
2985
|
-
title: i
|
|
2991
|
+
description: r(i)("form.sections.read_write_configuration.description"),
|
|
2992
|
+
title: r(i)("form.sections.read_write_configuration.title")
|
|
2986
2993
|
}, {
|
|
2987
|
-
default:
|
|
2988
|
-
g(
|
|
2989
|
-
modelValue:
|
|
2990
|
-
"onUpdate:modelValue": y[31] || (y[31] = (
|
|
2994
|
+
default: E(() => [
|
|
2995
|
+
g(S, {
|
|
2996
|
+
modelValue: r(s).fields.config.read_timeout,
|
|
2997
|
+
"onUpdate:modelValue": y[31] || (y[31] = (p) => r(s).fields.config.read_timeout = p),
|
|
2991
2998
|
"data-testid": "redis-read-timeout-input",
|
|
2992
|
-
label: i
|
|
2999
|
+
label: r(i)("form.fields.read_timeout.label"),
|
|
2993
3000
|
"label-attributes": {
|
|
2994
|
-
info: i
|
|
3001
|
+
info: r(i)("form.fields.read_timeout.tooltip"),
|
|
2995
3002
|
tooltipAttributes: { maxWidth: "400" }
|
|
2996
3003
|
},
|
|
2997
|
-
readonly:
|
|
3004
|
+
readonly: r(s).readonly,
|
|
2998
3005
|
type: "number"
|
|
2999
3006
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
3000
|
-
g(
|
|
3001
|
-
modelValue:
|
|
3002
|
-
"onUpdate:modelValue": y[32] || (y[32] = (
|
|
3007
|
+
g(S, {
|
|
3008
|
+
modelValue: r(s).fields.config.send_timeout,
|
|
3009
|
+
"onUpdate:modelValue": y[32] || (y[32] = (p) => r(s).fields.config.send_timeout = p),
|
|
3003
3010
|
"data-testid": "redis-send-timeout-input",
|
|
3004
|
-
label: i
|
|
3011
|
+
label: r(i)("form.fields.send_timeout.label"),
|
|
3005
3012
|
"label-attributes": {
|
|
3006
|
-
info: i
|
|
3013
|
+
info: r(i)("form.fields.send_timeout.tooltip"),
|
|
3007
3014
|
tooltipAttributes: { maxWidth: "400" }
|
|
3008
3015
|
},
|
|
3009
|
-
readonly:
|
|
3016
|
+
readonly: r(s).readonly,
|
|
3010
3017
|
type: "number"
|
|
3011
3018
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
3012
|
-
g(
|
|
3013
|
-
modelValue:
|
|
3014
|
-
"onUpdate:modelValue": y[33] || (y[33] = (
|
|
3019
|
+
g(S, {
|
|
3020
|
+
modelValue: r(s).fields.config.connect_timeout,
|
|
3021
|
+
"onUpdate:modelValue": y[33] || (y[33] = (p) => r(s).fields.config.connect_timeout = p),
|
|
3015
3022
|
"data-testid": "redis-connect-timeout-input",
|
|
3016
|
-
label: i
|
|
3023
|
+
label: r(i)("form.fields.connect_timeout.label"),
|
|
3017
3024
|
"label-attributes": {
|
|
3018
|
-
info: i
|
|
3025
|
+
info: r(i)("form.fields.connect_timeout.tooltip"),
|
|
3019
3026
|
tooltipAttributes: { maxWidth: "400" }
|
|
3020
3027
|
},
|
|
3021
|
-
readonly:
|
|
3028
|
+
readonly: r(s).readonly,
|
|
3022
3029
|
type: "number"
|
|
3023
3030
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
3024
3031
|
]),
|
|
3025
3032
|
_: 1
|
|
3026
|
-
}, 8, ["description", "title"])) :
|
|
3033
|
+
}, 8, ["description", "title"])) : Q("", !0)
|
|
3027
3034
|
]),
|
|
3028
3035
|
_: 1
|
|
3029
3036
|
}, 8, ["action-teleport-target", "can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "slidout-top-offset"])
|
|
3030
3037
|
]),
|
|
3031
|
-
g(
|
|
3038
|
+
g(r(Tn), {
|
|
3032
3039
|
config: n.config,
|
|
3033
|
-
setup:
|
|
3040
|
+
setup: r(c),
|
|
3034
3041
|
onCancel: y[35] || (y[35] = () => c.value = !1),
|
|
3035
|
-
onProceed:
|
|
3042
|
+
onProceed: r(l)
|
|
3036
3043
|
}, null, 8, ["config", "setup", "onProceed"]),
|
|
3037
|
-
g(
|
|
3038
|
-
"action-button-text": i
|
|
3044
|
+
g(F, {
|
|
3045
|
+
"action-button-text": r(i)("form.edit_warning_modal.confirm"),
|
|
3039
3046
|
"data-testid": "redis-update-warning-modal",
|
|
3040
3047
|
"hide-cancel-button": "",
|
|
3041
3048
|
"max-width": "640",
|
|
3042
|
-
title: i
|
|
3043
|
-
visible:
|
|
3044
|
-
onCancel: y[36] || (y[36] = (
|
|
3045
|
-
onProceed:
|
|
3049
|
+
title: r(i)("form.edit_warning_modal.title"),
|
|
3050
|
+
visible: se.value,
|
|
3051
|
+
onCancel: y[36] || (y[36] = (p) => se.value = !1),
|
|
3052
|
+
onProceed: Re
|
|
3046
3053
|
}, {
|
|
3047
|
-
default:
|
|
3048
|
-
g(
|
|
3054
|
+
default: E(() => [
|
|
3055
|
+
g(r(a), {
|
|
3049
3056
|
keypath: "form.edit_warning_modal.description",
|
|
3050
3057
|
tag: "div"
|
|
3051
3058
|
}, {
|
|
3052
|
-
pluginCount:
|
|
3053
|
-
K("b", null,
|
|
3059
|
+
pluginCount: E(() => [
|
|
3060
|
+
K("b", null, z(r(i)("form.edit_warning_modal.plugin_count", { count: J.value })), 1)
|
|
3054
3061
|
]),
|
|
3055
3062
|
_: 1
|
|
3056
3063
|
})
|
|
@@ -3060,10 +3067,10 @@ const Fe = (e) => {
|
|
|
3060
3067
|
], 64);
|
|
3061
3068
|
};
|
|
3062
3069
|
}
|
|
3063
|
-
}), pd = /* @__PURE__ */
|
|
3070
|
+
}), pd = /* @__PURE__ */ ne(fd, [["__scopeId", "data-v-4175bf6a"]]), md = {
|
|
3064
3071
|
class: "linked-plugins",
|
|
3065
3072
|
"data-testid": "linked-plugins-inline"
|
|
3066
|
-
},
|
|
3073
|
+
}, yt = 7, _d = /* @__PURE__ */ X({
|
|
3067
3074
|
__name: "LinkedPluginsInline",
|
|
3068
3075
|
props: {
|
|
3069
3076
|
config: {
|
|
@@ -3077,45 +3084,45 @@ const Fe = (e) => {
|
|
|
3077
3084
|
}
|
|
3078
3085
|
},
|
|
3079
3086
|
setup(e) {
|
|
3080
|
-
const t = e, n =
|
|
3087
|
+
const t = e, n = pi({
|
|
3081
3088
|
config: t.config,
|
|
3082
3089
|
partialId: t.partialId
|
|
3083
3090
|
});
|
|
3084
|
-
return (o,
|
|
3085
|
-
const a =
|
|
3086
|
-
return
|
|
3087
|
-
(
|
|
3091
|
+
return (o, i) => {
|
|
3092
|
+
const a = P("KBadge");
|
|
3093
|
+
return R(), G("div", md, [
|
|
3094
|
+
(R(!0), G(ce, null, nt(r(n).slice(0, yt), (c) => (R(), N(r(Cn), {
|
|
3088
3095
|
key: c.id,
|
|
3089
3096
|
name: c.name,
|
|
3090
3097
|
size: 24
|
|
3091
3098
|
}, null, 8, ["name"]))), 128)),
|
|
3092
|
-
|
|
3099
|
+
r(n).length - yt > 0 ? (R(), N(a, {
|
|
3093
3100
|
key: 0,
|
|
3094
3101
|
appearance: "info"
|
|
3095
3102
|
}, {
|
|
3096
|
-
default:
|
|
3097
|
-
|
|
3103
|
+
default: E(() => [
|
|
3104
|
+
oe(" +" + z(r(n).length - yt), 1)
|
|
3098
3105
|
]),
|
|
3099
3106
|
_: 1
|
|
3100
|
-
})) :
|
|
3107
|
+
})) : Q("", !0)
|
|
3101
3108
|
]);
|
|
3102
3109
|
};
|
|
3103
3110
|
}
|
|
3104
|
-
}), gd = /* @__PURE__ */
|
|
3111
|
+
}), gd = /* @__PURE__ */ ne(_d, [["__scopeId", "data-v-c39556bc"]]), bd = { class: "plugin-item" }, yd = /* @__PURE__ */ X({
|
|
3105
3112
|
__name: "PluginItem",
|
|
3106
3113
|
props: {
|
|
3107
3114
|
pluginName: {}
|
|
3108
3115
|
},
|
|
3109
3116
|
setup(e) {
|
|
3110
|
-
return (t, n) => (
|
|
3111
|
-
g(
|
|
3117
|
+
return (t, n) => (R(), G("div", bd, [
|
|
3118
|
+
g(r(Cn), {
|
|
3112
3119
|
name: e.pluginName,
|
|
3113
3120
|
size: 24
|
|
3114
3121
|
}, null, 8, ["name"]),
|
|
3115
|
-
K("span", null,
|
|
3122
|
+
K("span", null, z(e.pluginName), 1)
|
|
3116
3123
|
]));
|
|
3117
3124
|
}
|
|
3118
|
-
}), vd = /* @__PURE__ */
|
|
3125
|
+
}), vd = /* @__PURE__ */ ne(yd, [["__scopeId", "data-v-de964dc4"]]), hd = { class: "toolbar-container" }, wd = /* @__PURE__ */ X({
|
|
3119
3126
|
__name: "LinkedPluginList",
|
|
3120
3127
|
props: {
|
|
3121
3128
|
config: {
|
|
@@ -3141,51 +3148,51 @@ const Fe = (e) => {
|
|
|
3141
3148
|
},
|
|
3142
3149
|
emits: ["view-plugin", "load"],
|
|
3143
3150
|
setup(e, { emit: t }) {
|
|
3144
|
-
const n = e, o = t, { i18n: { t:
|
|
3145
|
-
{ key: "name", label:
|
|
3146
|
-
{ key: "instance_name", label:
|
|
3151
|
+
const n = e, o = t, { i18n: { t: i } } = be.useI18n(), a = [
|
|
3152
|
+
{ key: "name", label: i("linked_plugins_modal.headers.plugin") },
|
|
3153
|
+
{ key: "instance_name", label: i("linked_plugins_modal.headers.instance_name") },
|
|
3147
3154
|
{ key: "actions", hideLabel: !0 }
|
|
3148
|
-
], { fetcher: c } =
|
|
3155
|
+
], { fetcher: c } = ze(n.config), f = A(0), l = async (m) => {
|
|
3149
3156
|
const { data: b, count: _ } = await c({
|
|
3150
3157
|
partialId: n.partialId,
|
|
3151
3158
|
size: m.pageSize,
|
|
3152
3159
|
offset: m.offset,
|
|
3153
3160
|
query: m.query
|
|
3154
3161
|
});
|
|
3155
|
-
|
|
3156
|
-
const
|
|
3162
|
+
f.value = _;
|
|
3163
|
+
const C = {
|
|
3157
3164
|
total: _,
|
|
3158
3165
|
data: b
|
|
3159
3166
|
};
|
|
3160
|
-
return o("load",
|
|
3161
|
-
}, u =
|
|
3167
|
+
return o("load", C), C;
|
|
3168
|
+
}, u = A(""), v = B(() => n.config.app === "konnect" || n.isExactMatch ? {
|
|
3162
3169
|
isExactMatch: !0
|
|
3163
3170
|
} : {
|
|
3164
3171
|
isExactMatch: !1,
|
|
3165
3172
|
fields: { name: { searchable: !0 } },
|
|
3166
3173
|
schema: { name: { type: "text" } }
|
|
3167
|
-
}),
|
|
3174
|
+
}), w = (m) => {
|
|
3168
3175
|
o("view-plugin", { id: m.id, plugin: m.name });
|
|
3169
3176
|
};
|
|
3170
3177
|
return (m, b) => {
|
|
3171
|
-
const _ =
|
|
3172
|
-
return
|
|
3173
|
-
"cache-identifier":
|
|
3178
|
+
const _ = P("KDropdownItem"), C = P("KTableData");
|
|
3179
|
+
return R(), N(C, {
|
|
3180
|
+
"cache-identifier": r(fi)(e.partialId),
|
|
3174
3181
|
fetcher: l,
|
|
3175
3182
|
headers: a,
|
|
3176
3183
|
"hide-pagination-when-optional": "",
|
|
3177
|
-
"pagination-attributes": { totalCount:
|
|
3184
|
+
"pagination-attributes": { totalCount: f.value, disablePageJump: !0 },
|
|
3178
3185
|
"search-input": u.value
|
|
3179
|
-
},
|
|
3180
|
-
name:
|
|
3181
|
-
g(vd, { "plugin-name":
|
|
3186
|
+
}, bn({
|
|
3187
|
+
name: E(({ rowValue: O }) => [
|
|
3188
|
+
g(vd, { "plugin-name": O }, null, 8, ["plugin-name"])
|
|
3182
3189
|
]),
|
|
3183
|
-
"action-items":
|
|
3190
|
+
"action-items": E(({ row: O }) => [
|
|
3184
3191
|
g(_, {
|
|
3185
|
-
onClick: (
|
|
3192
|
+
onClick: (s) => w(O)
|
|
3186
3193
|
}, {
|
|
3187
|
-
default:
|
|
3188
|
-
|
|
3194
|
+
default: E(() => [
|
|
3195
|
+
oe(z(r(i)("actions.view_plugin")), 1)
|
|
3189
3196
|
]),
|
|
3190
3197
|
_: 1
|
|
3191
3198
|
}, 8, ["onClick"])
|
|
@@ -3194,11 +3201,11 @@ const Fe = (e) => {
|
|
|
3194
3201
|
}, [
|
|
3195
3202
|
e.filterBarEnabled ? {
|
|
3196
3203
|
name: "toolbar",
|
|
3197
|
-
fn:
|
|
3204
|
+
fn: E(() => [
|
|
3198
3205
|
K("div", hd, [
|
|
3199
|
-
g(
|
|
3206
|
+
g(r(wn), {
|
|
3200
3207
|
modelValue: u.value,
|
|
3201
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
3208
|
+
"onUpdate:modelValue": b[0] || (b[0] = (O) => u.value = O),
|
|
3202
3209
|
config: v.value
|
|
3203
3210
|
}, null, 8, ["modelValue", "config"])
|
|
3204
3211
|
])
|
|
@@ -3208,10 +3215,10 @@ const Fe = (e) => {
|
|
|
3208
3215
|
]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
|
|
3209
3216
|
};
|
|
3210
3217
|
}
|
|
3211
|
-
}), Td = /* @__PURE__ */
|
|
3218
|
+
}), Td = /* @__PURE__ */ ne(wd, [["__scopeId", "data-v-50856d03"]]), Sd = {
|
|
3212
3219
|
class: "linked-plugins-modal",
|
|
3213
3220
|
"data-testid": "linked-plugins-modal"
|
|
3214
|
-
}, Ed = /* @__PURE__ */
|
|
3221
|
+
}, Ed = /* @__PURE__ */ X({
|
|
3215
3222
|
__name: "LinkedPluginListModal",
|
|
3216
3223
|
props: {
|
|
3217
3224
|
config: {
|
|
@@ -3231,28 +3238,28 @@ const Fe = (e) => {
|
|
|
3231
3238
|
},
|
|
3232
3239
|
emits: ["cancel", "proceed", "view-plugin"],
|
|
3233
3240
|
setup(e, { emit: t }) {
|
|
3234
|
-
const n = t, { i18n: { t: o } } =
|
|
3241
|
+
const n = t, { i18n: { t: o } } = be.useI18n(), i = A(0), a = B(() => o("linked_plugins_modal.title", { count: i.value })), c = () => {
|
|
3235
3242
|
n("cancel");
|
|
3236
|
-
},
|
|
3243
|
+
}, f = () => {
|
|
3237
3244
|
n("proceed");
|
|
3238
3245
|
};
|
|
3239
3246
|
return (l, u) => {
|
|
3240
|
-
const v =
|
|
3241
|
-
return
|
|
3247
|
+
const v = P("KModal");
|
|
3248
|
+
return R(), G("div", Sd, [
|
|
3242
3249
|
g(v, {
|
|
3243
|
-
"action-button-text":
|
|
3250
|
+
"action-button-text": r(o)("actions.done"),
|
|
3244
3251
|
"hide-cancel-button": "",
|
|
3245
3252
|
title: a.value,
|
|
3246
3253
|
visible: e.visible,
|
|
3247
3254
|
onCancel: c,
|
|
3248
|
-
onProceed:
|
|
3255
|
+
onProceed: f
|
|
3249
3256
|
}, {
|
|
3250
|
-
default:
|
|
3257
|
+
default: E(() => [
|
|
3251
3258
|
g(Td, {
|
|
3252
3259
|
config: e.config,
|
|
3253
3260
|
"partial-id": e.redisConfigurationId,
|
|
3254
|
-
onLoad: u[0] || (u[0] = ({ total:
|
|
3255
|
-
onViewPlugin: u[1] || (u[1] = (
|
|
3261
|
+
onLoad: u[0] || (u[0] = ({ total: w }) => i.value = w),
|
|
3262
|
+
onViewPlugin: u[1] || (u[1] = (w) => n("view-plugin", w))
|
|
3256
3263
|
}, null, 8, ["config", "partial-id"])
|
|
3257
3264
|
]),
|
|
3258
3265
|
_: 1
|
|
@@ -3260,7 +3267,7 @@ const Fe = (e) => {
|
|
|
3260
3267
|
]);
|
|
3261
3268
|
};
|
|
3262
3269
|
}
|
|
3263
|
-
}), Cd = /* @__PURE__ */
|
|
3270
|
+
}), Cd = /* @__PURE__ */ ne(Ed, [["__scopeId", "data-v-6148b8bd"]]), kd = /* @__PURE__ */ X({
|
|
3264
3271
|
__name: "DeleteWarningModal",
|
|
3265
3272
|
props: {
|
|
3266
3273
|
visible: {
|
|
@@ -3270,29 +3277,29 @@ const Fe = (e) => {
|
|
|
3270
3277
|
},
|
|
3271
3278
|
emits: ["close"],
|
|
3272
3279
|
setup(e, { emit: t }) {
|
|
3273
|
-
const { i18n: { t: n } } =
|
|
3280
|
+
const { i18n: { t: n } } = be.useI18n(), o = t, i = () => {
|
|
3274
3281
|
o("close");
|
|
3275
3282
|
};
|
|
3276
3283
|
return (a, c) => {
|
|
3277
|
-
const
|
|
3278
|
-
return
|
|
3279
|
-
"action-button-text":
|
|
3284
|
+
const f = P("KModal");
|
|
3285
|
+
return R(), N(f, {
|
|
3286
|
+
"action-button-text": r(n)("actions.close"),
|
|
3280
3287
|
"data-testid": "remove-links-modal",
|
|
3281
3288
|
"hide-cancel-button": "",
|
|
3282
3289
|
"max-width": "640",
|
|
3283
|
-
title:
|
|
3290
|
+
title: r(n)("delete.title"),
|
|
3284
3291
|
visible: e.visible,
|
|
3285
|
-
onCancel:
|
|
3286
|
-
onProceed:
|
|
3292
|
+
onCancel: i,
|
|
3293
|
+
onProceed: i
|
|
3287
3294
|
}, {
|
|
3288
|
-
default:
|
|
3289
|
-
|
|
3295
|
+
default: E(() => [
|
|
3296
|
+
oe(z(r(n)("delete.warning")), 1)
|
|
3290
3297
|
]),
|
|
3291
3298
|
_: 1
|
|
3292
3299
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
3293
3300
|
};
|
|
3294
3301
|
}
|
|
3295
|
-
}), Od = { class: "kong-ui-entities-partials-list" }, Id = 1e3, Rd = /* @__PURE__ */
|
|
3302
|
+
}), Od = { class: "kong-ui-entities-partials-list" }, Id = 1e3, Rd = /* @__PURE__ */ X({
|
|
3296
3303
|
__name: "RedisConfigurationList",
|
|
3297
3304
|
props: {
|
|
3298
3305
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3338,159 +3345,159 @@ const Fe = (e) => {
|
|
|
3338
3345
|
},
|
|
3339
3346
|
emits: ["click:learn-more", "click:plugin", "copy:error", "copy:success", "delete:success", "error"],
|
|
3340
3347
|
setup(e, { emit: t }) {
|
|
3341
|
-
var
|
|
3342
|
-
const n = t, o = e,
|
|
3343
|
-
var
|
|
3344
|
-
let
|
|
3345
|
-
return o.config.app === "konnect" ?
|
|
3346
|
-
}), a =
|
|
3347
|
-
async function
|
|
3348
|
-
const
|
|
3349
|
-
return
|
|
3348
|
+
var xe;
|
|
3349
|
+
const n = t, o = e, i = B(() => {
|
|
3350
|
+
var x, F;
|
|
3351
|
+
let S = `${o.config.apiBaseUrl}${Me.list[o.config.app]}`;
|
|
3352
|
+
return o.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((x = o.config) == null ? void 0 : x.controlPlaneId) || "") : o.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (F = o.config) != null && F.workspace ? `/${o.config.workspace}` : "")), S;
|
|
3353
|
+
}), a = A(!1), c = A(""), f = A(null), l = A(void 0), u = A(!1), v = A(!1), w = A(""), m = A(!1), b = Ii(o.config, i.value), _ = A(1), C = B(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: O, fetcherState: s } = Ri(o.config, i);
|
|
3354
|
+
async function I(S) {
|
|
3355
|
+
const x = await O({ ...S, pageSize: Id });
|
|
3356
|
+
return x.data = x.data.filter((F) => F.type === Y.REDIS_CE || F.type === Y.REDIS_EE), x;
|
|
3350
3357
|
}
|
|
3351
|
-
const { i18n: { t: d } } =
|
|
3352
|
-
const
|
|
3353
|
-
if (
|
|
3358
|
+
const { i18n: { t: d } } = be.useI18n(), { axiosInstance: $ } = Ot((xe = o.config) == null ? void 0 : xe.axiosRequestConfig), k = Sn(), H = A(""), ee = B(() => {
|
|
3359
|
+
const S = o.config.app === "konnect" || o.config.isExactMatch;
|
|
3360
|
+
if (S)
|
|
3354
3361
|
return {
|
|
3355
3362
|
isExactMatch: !0,
|
|
3356
3363
|
placeholder: d("search.placeholder_for_exact_match")
|
|
3357
3364
|
};
|
|
3358
|
-
const { name:
|
|
3365
|
+
const { name: x } = le;
|
|
3359
3366
|
return {
|
|
3360
|
-
isExactMatch:
|
|
3367
|
+
isExactMatch: S,
|
|
3361
3368
|
fields: {
|
|
3362
|
-
name:
|
|
3369
|
+
name: x
|
|
3363
3370
|
},
|
|
3364
3371
|
schema: o.config.filterSchema
|
|
3365
3372
|
};
|
|
3366
|
-
}), { fetcher:
|
|
3373
|
+
}), { fetcher: ie } = ze(o.config), ye = A({
|
|
3367
3374
|
ctaPath: o.config.createRoute,
|
|
3368
3375
|
ctaText: void 0,
|
|
3369
3376
|
message: `${d("redis.empty_state.description")}${o.config.additionMessageForEmptyState ? ` ${o.config.additionMessageForEmptyState}` : ""}`,
|
|
3370
3377
|
title: d("redis.title")
|
|
3371
|
-
}),
|
|
3378
|
+
}), le = {
|
|
3372
3379
|
name: { label: d("list.table_headers.name"), searchable: !0, hidable: !1, sortable: !0 },
|
|
3373
3380
|
type: { label: d("list.table_headers.type") },
|
|
3374
3381
|
tags: { label: d("list.table_headers.tags") },
|
|
3375
3382
|
plugins: { label: d("list.table_headers.plugins") }
|
|
3376
|
-
},
|
|
3383
|
+
}, se = (S) => ({
|
|
3377
3384
|
label: d("actions.view"),
|
|
3378
|
-
to: o.config.getViewRoute(
|
|
3379
|
-
}),
|
|
3385
|
+
to: o.config.getViewRoute(S)
|
|
3386
|
+
}), ve = (S) => ({
|
|
3380
3387
|
label: d("actions.edit"),
|
|
3381
|
-
to: o.config.getEditRoute(
|
|
3382
|
-
}),
|
|
3383
|
-
const { count:
|
|
3384
|
-
|
|
3385
|
-
},
|
|
3386
|
-
|
|
3387
|
-
},
|
|
3388
|
-
var
|
|
3389
|
-
await ((
|
|
3390
|
-
},
|
|
3388
|
+
to: o.config.getEditRoute(S)
|
|
3389
|
+
}), J = async (S) => {
|
|
3390
|
+
const { count: x } = await ie({ partialId: S.id });
|
|
3391
|
+
x > 0 ? m.value = !0 : (l.value = S, u.value = !0);
|
|
3392
|
+
}, Ie = () => {
|
|
3393
|
+
H.value = "";
|
|
3394
|
+
}, he = async (S) => {
|
|
3395
|
+
var F;
|
|
3396
|
+
await ((F = o.canRetrieve) == null ? void 0 : F.call(o, S)) && k.push(o.config.getViewRoute(S.id));
|
|
3397
|
+
}, Re = () => {
|
|
3391
3398
|
u.value = !1;
|
|
3392
|
-
},
|
|
3393
|
-
c.value =
|
|
3394
|
-
},
|
|
3395
|
-
var
|
|
3396
|
-
if ((
|
|
3399
|
+
}, we = (S) => {
|
|
3400
|
+
c.value = S, a.value = !0;
|
|
3401
|
+
}, lt = async () => {
|
|
3402
|
+
var S, x, F;
|
|
3403
|
+
if ((S = l.value) != null && S.id) {
|
|
3397
3404
|
v.value = !0;
|
|
3398
3405
|
try {
|
|
3399
|
-
await
|
|
3400
|
-
} catch (
|
|
3401
|
-
|
|
3406
|
+
await $.delete(b(l.value.id)), v.value = !1, u.value = !1, Ke(), n("delete:success", l.value);
|
|
3407
|
+
} catch (p) {
|
|
3408
|
+
w.value = ((F = (x = p.response) == null ? void 0 : x.data) == null ? void 0 : F.message) || p.message || d("errors.delete"), n("error", p);
|
|
3402
3409
|
} finally {
|
|
3403
3410
|
v.value = !1;
|
|
3404
3411
|
}
|
|
3405
3412
|
}
|
|
3406
|
-
},
|
|
3413
|
+
}, Ke = () => {
|
|
3407
3414
|
_.value++;
|
|
3408
|
-
},
|
|
3409
|
-
switch (Be(
|
|
3410
|
-
case
|
|
3415
|
+
}, st = (S) => {
|
|
3416
|
+
switch (Be(S)) {
|
|
3417
|
+
case T.HOST_PORT_CE:
|
|
3411
3418
|
return `${d("form.options.type.host_port")}${d("form.options.type.suffix_open_source")}`;
|
|
3412
|
-
case
|
|
3419
|
+
case T.HOST_PORT_EE:
|
|
3413
3420
|
return `${d("form.options.type.host_port")}${d("form.options.type.suffix_enterprise")}`;
|
|
3414
|
-
case
|
|
3421
|
+
case T.SENTINEL:
|
|
3415
3422
|
return `${d("form.options.type.sentinel")}${d("form.options.type.suffix_enterprise")}`;
|
|
3416
|
-
case
|
|
3423
|
+
case T.CLUSTER:
|
|
3417
3424
|
return `${d("form.options.type.cluster")}${d("form.options.type.suffix_enterprise")}`;
|
|
3418
3425
|
}
|
|
3419
|
-
},
|
|
3420
|
-
|
|
3421
|
-
},
|
|
3422
|
-
const
|
|
3423
|
-
if (!await
|
|
3426
|
+
}, U = () => {
|
|
3427
|
+
k.push(o.config.createRoute);
|
|
3428
|
+
}, y = async (S, x) => {
|
|
3429
|
+
const F = S.id;
|
|
3430
|
+
if (!await x(F)) {
|
|
3424
3431
|
n("copy:error", {
|
|
3425
|
-
entity:
|
|
3432
|
+
entity: S,
|
|
3426
3433
|
field: "id",
|
|
3427
3434
|
message: d("errors.copy")
|
|
3428
3435
|
});
|
|
3429
3436
|
return;
|
|
3430
3437
|
}
|
|
3431
3438
|
n("copy:success", {
|
|
3432
|
-
entity:
|
|
3439
|
+
entity: S,
|
|
3433
3440
|
field: "id",
|
|
3434
|
-
message: d("copy.success", { val:
|
|
3441
|
+
message: d("copy.success", { val: F })
|
|
3435
3442
|
});
|
|
3436
3443
|
};
|
|
3437
|
-
|
|
3438
|
-
var
|
|
3439
|
-
if (
|
|
3440
|
-
|
|
3444
|
+
Se(s, (S) => {
|
|
3445
|
+
var x, F, p;
|
|
3446
|
+
if (S.status === xi.Error) {
|
|
3447
|
+
f.value = {
|
|
3441
3448
|
title: d("errors.general")
|
|
3442
|
-
}, (
|
|
3449
|
+
}, (p = (F = (x = S.error) == null ? void 0 : x.response) == null ? void 0 : F.data) != null && p.message && (f.value.message = S.error.response.data.message), n("error", S.error);
|
|
3443
3450
|
return;
|
|
3444
3451
|
}
|
|
3445
|
-
|
|
3452
|
+
f.value = null;
|
|
3446
3453
|
});
|
|
3447
|
-
const
|
|
3448
|
-
return
|
|
3449
|
-
|
|
3454
|
+
const je = A(!1);
|
|
3455
|
+
return Se(o.canCreate, async (S) => {
|
|
3456
|
+
je.value = await S, je.value ? ye.value.ctaText = d("actions.create") : ye.value.ctaText = void 0;
|
|
3450
3457
|
}, {
|
|
3451
3458
|
immediate: !0
|
|
3452
|
-
}), (
|
|
3453
|
-
const
|
|
3454
|
-
return
|
|
3455
|
-
g(
|
|
3459
|
+
}), (S, x) => {
|
|
3460
|
+
const F = P("KButton"), p = P("KDropdownItem"), Z = P("KClipboardProvider"), _i = P("KEmptyState");
|
|
3461
|
+
return R(), G("div", Od, [
|
|
3462
|
+
g(r(Ai), {
|
|
3456
3463
|
"cache-identifier": e.cacheIdentifier,
|
|
3457
|
-
"disable-sorting":
|
|
3458
|
-
"empty-state-options":
|
|
3464
|
+
"disable-sorting": C.value,
|
|
3465
|
+
"empty-state-options": ye.value,
|
|
3459
3466
|
"enable-entity-actions": "",
|
|
3460
|
-
"error-message":
|
|
3461
|
-
fetcher:
|
|
3467
|
+
"error-message": f.value,
|
|
3468
|
+
fetcher: I,
|
|
3462
3469
|
"fetcher-cache-key": _.value,
|
|
3463
3470
|
"pagination-type": "offset",
|
|
3464
3471
|
"preferences-storage-key": "kong-ui-entities-redis-configuration-list",
|
|
3465
|
-
query:
|
|
3466
|
-
"table-headers":
|
|
3467
|
-
onClearSearchInput:
|
|
3468
|
-
"onClick:row":
|
|
3469
|
-
onSort:
|
|
3472
|
+
query: H.value,
|
|
3473
|
+
"table-headers": le,
|
|
3474
|
+
onClearSearchInput: Ie,
|
|
3475
|
+
"onClick:row": x[1] || (x[1] = (D) => he(D)),
|
|
3476
|
+
onSort: Ke
|
|
3470
3477
|
}, {
|
|
3471
|
-
"toolbar-filter":
|
|
3472
|
-
g(
|
|
3473
|
-
modelValue:
|
|
3474
|
-
"onUpdate:modelValue":
|
|
3475
|
-
config:
|
|
3478
|
+
"toolbar-filter": E(() => [
|
|
3479
|
+
g(r(wn), {
|
|
3480
|
+
modelValue: H.value,
|
|
3481
|
+
"onUpdate:modelValue": x[0] || (x[0] = (D) => H.value = D),
|
|
3482
|
+
config: ee.value
|
|
3476
3483
|
}, null, 8, ["modelValue", "config"])
|
|
3477
3484
|
]),
|
|
3478
|
-
"toolbar-button":
|
|
3479
|
-
(
|
|
3485
|
+
"toolbar-button": E(() => [
|
|
3486
|
+
(R(), N(Ei, {
|
|
3480
3487
|
disabled: !e.useActionOutside,
|
|
3481
3488
|
to: "#kong-ui-app-page-header-action-button"
|
|
3482
3489
|
}, [
|
|
3483
|
-
g(
|
|
3484
|
-
default:
|
|
3485
|
-
g(
|
|
3490
|
+
g(r(He), { "auth-function": e.canCreate }, {
|
|
3491
|
+
default: E(() => [
|
|
3492
|
+
g(F, {
|
|
3486
3493
|
appearance: "primary",
|
|
3487
3494
|
"data-testid": "toolbar-add-redis-configuration",
|
|
3488
3495
|
size: "large",
|
|
3489
3496
|
to: e.config.createRoute
|
|
3490
3497
|
}, {
|
|
3491
|
-
default:
|
|
3492
|
-
g(
|
|
3493
|
-
|
|
3498
|
+
default: E(() => [
|
|
3499
|
+
g(r(vt)),
|
|
3500
|
+
oe(" " + z(r(d)("actions.create")), 1)
|
|
3494
3501
|
]),
|
|
3495
3502
|
_: 1
|
|
3496
3503
|
}, 8, ["to"])
|
|
@@ -3499,72 +3506,72 @@ const Fe = (e) => {
|
|
|
3499
3506
|
}, 8, ["auth-function"])
|
|
3500
3507
|
], 8, ["disabled"]))
|
|
3501
3508
|
]),
|
|
3502
|
-
name:
|
|
3503
|
-
K("b", null,
|
|
3509
|
+
name: E(({ rowValue: D }) => [
|
|
3510
|
+
K("b", null, z(D ?? "-"), 1)
|
|
3504
3511
|
]),
|
|
3505
|
-
type:
|
|
3506
|
-
|
|
3512
|
+
type: E(({ row: D }) => [
|
|
3513
|
+
oe(z(st(D)), 1)
|
|
3507
3514
|
]),
|
|
3508
|
-
tags:
|
|
3509
|
-
g(
|
|
3515
|
+
tags: E(({ rowValue: D }) => [
|
|
3516
|
+
g(r(Pi), { tags: D }, null, 8, ["tags"])
|
|
3510
3517
|
]),
|
|
3511
|
-
plugins:
|
|
3518
|
+
plugins: E(({ row: D }) => [
|
|
3512
3519
|
g(gd, {
|
|
3513
3520
|
config: e.config,
|
|
3514
|
-
"partial-id":
|
|
3515
|
-
onClick: Si((
|
|
3521
|
+
"partial-id": D.id,
|
|
3522
|
+
onClick: Si((dt) => we(D.id), ["stop"])
|
|
3516
3523
|
}, null, 8, ["config", "partial-id", "onClick"])
|
|
3517
3524
|
]),
|
|
3518
|
-
actions:
|
|
3519
|
-
g(
|
|
3520
|
-
default:
|
|
3521
|
-
g(
|
|
3525
|
+
actions: E(({ row: D }) => [
|
|
3526
|
+
g(Z, null, {
|
|
3527
|
+
default: E(({ copyToClipboard: dt }) => [
|
|
3528
|
+
g(p, {
|
|
3522
3529
|
"data-testid": "action-entity-copy-id",
|
|
3523
|
-
onClick: (Nd) =>
|
|
3530
|
+
onClick: (Nd) => y(D, dt)
|
|
3524
3531
|
}, {
|
|
3525
|
-
default:
|
|
3526
|
-
|
|
3532
|
+
default: E(() => [
|
|
3533
|
+
oe(z(r(d)("actions.copy_id")), 1)
|
|
3527
3534
|
]),
|
|
3528
3535
|
_: 1
|
|
3529
3536
|
}, 8, ["onClick"])
|
|
3530
3537
|
]),
|
|
3531
3538
|
_: 2
|
|
3532
3539
|
}, 1024),
|
|
3533
|
-
g(
|
|
3534
|
-
"auth-function": () => e.canRetrieve(
|
|
3540
|
+
g(r(He), {
|
|
3541
|
+
"auth-function": () => e.canRetrieve(D)
|
|
3535
3542
|
}, {
|
|
3536
|
-
default:
|
|
3537
|
-
g(
|
|
3543
|
+
default: E(() => [
|
|
3544
|
+
g(p, {
|
|
3538
3545
|
"data-testid": "action-entity-view",
|
|
3539
3546
|
"has-divider": "",
|
|
3540
|
-
item:
|
|
3547
|
+
item: se(D.id)
|
|
3541
3548
|
}, null, 8, ["item"])
|
|
3542
3549
|
]),
|
|
3543
3550
|
_: 2
|
|
3544
3551
|
}, 1032, ["auth-function"]),
|
|
3545
|
-
g(
|
|
3546
|
-
"auth-function": () => e.canEdit(
|
|
3552
|
+
g(r(He), {
|
|
3553
|
+
"auth-function": () => e.canEdit(D)
|
|
3547
3554
|
}, {
|
|
3548
|
-
default:
|
|
3549
|
-
g(
|
|
3555
|
+
default: E(() => [
|
|
3556
|
+
g(p, {
|
|
3550
3557
|
"data-testid": "action-entity-edit",
|
|
3551
|
-
item:
|
|
3558
|
+
item: ve(D.id)
|
|
3552
3559
|
}, null, 8, ["item"])
|
|
3553
3560
|
]),
|
|
3554
3561
|
_: 2
|
|
3555
3562
|
}, 1032, ["auth-function"]),
|
|
3556
|
-
g(
|
|
3557
|
-
"auth-function": () => e.canDelete(
|
|
3563
|
+
g(r(He), {
|
|
3564
|
+
"auth-function": () => e.canDelete(D)
|
|
3558
3565
|
}, {
|
|
3559
|
-
default:
|
|
3560
|
-
g(
|
|
3566
|
+
default: E(() => [
|
|
3567
|
+
g(p, {
|
|
3561
3568
|
danger: "",
|
|
3562
3569
|
"data-testid": "action-entity-delete",
|
|
3563
3570
|
"has-divider": "",
|
|
3564
|
-
onClick: (
|
|
3571
|
+
onClick: (dt) => J(D)
|
|
3565
3572
|
}, {
|
|
3566
|
-
default:
|
|
3567
|
-
|
|
3573
|
+
default: E(() => [
|
|
3574
|
+
oe(z(r(d)("actions.delete")), 1)
|
|
3568
3575
|
]),
|
|
3569
3576
|
_: 1
|
|
3570
3577
|
}, 8, ["onClick"])
|
|
@@ -3572,39 +3579,39 @@ const Fe = (e) => {
|
|
|
3572
3579
|
_: 2
|
|
3573
3580
|
}, 1032, ["auth-function"])
|
|
3574
3581
|
]),
|
|
3575
|
-
"empty-state":
|
|
3582
|
+
"empty-state": E(() => [
|
|
3576
3583
|
g(_i, {
|
|
3577
|
-
"action-button-text":
|
|
3578
|
-
"action-button-visible":
|
|
3584
|
+
"action-button-text": r(d)("list.action"),
|
|
3585
|
+
"action-button-visible": je.value,
|
|
3579
3586
|
"data-testid": "redis-entity-empty-state",
|
|
3580
3587
|
features: [
|
|
3581
3588
|
{
|
|
3582
3589
|
key: "feature-1",
|
|
3583
|
-
title:
|
|
3584
|
-
description:
|
|
3590
|
+
title: r(d)("list.empty_state.feature_1.title"),
|
|
3591
|
+
description: r(d)("list.empty_state.feature_1.description")
|
|
3585
3592
|
},
|
|
3586
3593
|
{
|
|
3587
3594
|
key: "feature-2",
|
|
3588
|
-
title:
|
|
3589
|
-
description:
|
|
3595
|
+
title: r(d)("list.empty_state.feature_2.title"),
|
|
3596
|
+
description: r(d)("list.empty_state.feature_2.description")
|
|
3590
3597
|
}
|
|
3591
3598
|
],
|
|
3592
3599
|
"icon-background": "",
|
|
3593
|
-
message:
|
|
3594
|
-
title:
|
|
3595
|
-
onClickAction:
|
|
3600
|
+
message: r(d)("list.empty_state.description"),
|
|
3601
|
+
title: r(d)("redis.title"),
|
|
3602
|
+
onClickAction: U
|
|
3596
3603
|
}, {
|
|
3597
|
-
icon:
|
|
3598
|
-
g(
|
|
3604
|
+
icon: E(() => [
|
|
3605
|
+
g(r(Ni), { decorative: "" })
|
|
3599
3606
|
]),
|
|
3600
|
-
"feature-icon-feature-1":
|
|
3601
|
-
g(
|
|
3607
|
+
"feature-icon-feature-1": E(() => [
|
|
3608
|
+
g(r(Ui))
|
|
3602
3609
|
]),
|
|
3603
|
-
"feature-icon-feature-2":
|
|
3604
|
-
g(
|
|
3610
|
+
"feature-icon-feature-2": E(() => [
|
|
3611
|
+
g(r(Li))
|
|
3605
3612
|
]),
|
|
3606
|
-
"action-button-icon":
|
|
3607
|
-
g(
|
|
3613
|
+
"action-button-icon": E(() => [
|
|
3614
|
+
g(r(vt), { decorative: "" })
|
|
3608
3615
|
]),
|
|
3609
3616
|
_: 1
|
|
3610
3617
|
}, 8, ["action-button-text", "action-button-visible", "features", "message", "title"])
|
|
@@ -3613,32 +3620,32 @@ const Fe = (e) => {
|
|
|
3613
3620
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
|
|
3614
3621
|
g(kd, {
|
|
3615
3622
|
visible: m.value,
|
|
3616
|
-
onClose:
|
|
3623
|
+
onClose: x[2] || (x[2] = (D) => m.value = !1)
|
|
3617
3624
|
}, null, 8, ["visible"]),
|
|
3618
|
-
g(
|
|
3625
|
+
g(r($i), {
|
|
3619
3626
|
"action-pending": v.value,
|
|
3620
|
-
description:
|
|
3627
|
+
description: r(d)("delete.description"),
|
|
3621
3628
|
"entity-name": l.value && (l.value.name || l.value.id),
|
|
3622
|
-
"entity-type":
|
|
3623
|
-
error:
|
|
3629
|
+
"entity-type": r(Vi).RedisConfiguration,
|
|
3630
|
+
error: w.value,
|
|
3624
3631
|
"need-confirmation": !0,
|
|
3625
|
-
title:
|
|
3632
|
+
title: r(d)("delete.title"),
|
|
3626
3633
|
visible: u.value,
|
|
3627
|
-
onCancel:
|
|
3628
|
-
onProceed:
|
|
3634
|
+
onCancel: Re,
|
|
3635
|
+
onProceed: lt
|
|
3629
3636
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
3630
3637
|
g(Cd, {
|
|
3631
3638
|
config: e.config,
|
|
3632
3639
|
"redis-configuration-id": c.value,
|
|
3633
3640
|
visible: a.value,
|
|
3634
|
-
onCancel:
|
|
3635
|
-
onProceed:
|
|
3636
|
-
onViewPlugin:
|
|
3641
|
+
onCancel: x[3] || (x[3] = (D) => a.value = !1),
|
|
3642
|
+
onProceed: x[4] || (x[4] = (D) => a.value = !1),
|
|
3643
|
+
onViewPlugin: x[5] || (x[5] = (D) => n("click:plugin", D))
|
|
3637
3644
|
}, null, 8, ["config", "redis-configuration-id", "visible"])
|
|
3638
3645
|
]);
|
|
3639
3646
|
};
|
|
3640
3647
|
}
|
|
3641
|
-
}), Xd = /* @__PURE__ */
|
|
3648
|
+
}), Xd = /* @__PURE__ */ ne(Rd, [["__scopeId", "data-v-4e5be541"]]), xd = { class: "kong-ui-consumer-group-entity-config-card" }, eu = /* @__PURE__ */ X({
|
|
3642
3649
|
__name: "RedisConfigurationConfigCard",
|
|
3643
3650
|
props: {
|
|
3644
3651
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3665,26 +3672,26 @@ const Fe = (e) => {
|
|
|
3665
3672
|
},
|
|
3666
3673
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
3667
3674
|
setup(e, { emit: t }) {
|
|
3668
|
-
const n = e, o = t, { i18n: { t:
|
|
3675
|
+
const n = e, o = t, { i18n: { t: i } } = be.useI18n(), a = B(() => Me.form[n.config.app].edit), c = A($e), f = (_) => {
|
|
3669
3676
|
c.value = Be(_), o("fetch:success", _);
|
|
3670
|
-
}, l =
|
|
3671
|
-
const _ = c.value ===
|
|
3672
|
-
let
|
|
3677
|
+
}, l = B(() => {
|
|
3678
|
+
const _ = c.value === T.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
3679
|
+
let C = "";
|
|
3673
3680
|
switch (c.value) {
|
|
3674
|
-
case
|
|
3675
|
-
|
|
3681
|
+
case T.HOST_PORT_CE:
|
|
3682
|
+
C = i("form.options.type.host_port");
|
|
3676
3683
|
break;
|
|
3677
|
-
case
|
|
3678
|
-
|
|
3684
|
+
case T.HOST_PORT_EE:
|
|
3685
|
+
C = i("form.options.type.host_port");
|
|
3679
3686
|
break;
|
|
3680
|
-
case
|
|
3681
|
-
|
|
3687
|
+
case T.CLUSTER:
|
|
3688
|
+
C = i("form.options.type.cluster");
|
|
3682
3689
|
break;
|
|
3683
|
-
case
|
|
3684
|
-
|
|
3690
|
+
case T.SENTINEL:
|
|
3691
|
+
C = i("form.options.type.sentinel");
|
|
3685
3692
|
break;
|
|
3686
3693
|
}
|
|
3687
|
-
return `${
|
|
3694
|
+
return `${C}${_}`;
|
|
3688
3695
|
}), u = (_) => ({
|
|
3689
3696
|
id: _.id,
|
|
3690
3697
|
name: _.name,
|
|
@@ -3693,200 +3700,200 @@ const Fe = (e) => {
|
|
|
3693
3700
|
updated_at: _.updated_at,
|
|
3694
3701
|
type: _.type,
|
|
3695
3702
|
..._.config,
|
|
3696
|
-
...n.config.cloudAuthAvailable ? { cloud_authentication:
|
|
3697
|
-
}), v = (_,
|
|
3703
|
+
...n.config.cloudAuthAvailable ? { cloud_authentication: Mt(_.config.cloud_authentication) } : null
|
|
3704
|
+
}), v = (_, C) => {
|
|
3698
3705
|
if (!_ || Object.keys(_).length === 0)
|
|
3699
3706
|
return {};
|
|
3700
|
-
const { id:
|
|
3701
|
-
return
|
|
3702
|
-
[
|
|
3703
|
-
id:
|
|
3704
|
-
name:
|
|
3705
|
-
tags:
|
|
3706
|
-
created_at:
|
|
3707
|
+
const { id: O, name: s, created_at: I, updated_at: d, type: $, tags: k, ...H } = _;
|
|
3708
|
+
return C === "terraform" ? {
|
|
3709
|
+
[$.replaceAll("-", "_")]: {
|
|
3710
|
+
id: O,
|
|
3711
|
+
name: s,
|
|
3712
|
+
tags: k,
|
|
3713
|
+
created_at: I,
|
|
3707
3714
|
updated_at: d,
|
|
3708
|
-
config:
|
|
3715
|
+
config: H
|
|
3709
3716
|
}
|
|
3710
3717
|
} : {
|
|
3711
|
-
id:
|
|
3712
|
-
name:
|
|
3713
|
-
tags:
|
|
3714
|
-
created_at:
|
|
3718
|
+
id: O,
|
|
3719
|
+
name: s,
|
|
3720
|
+
tags: k,
|
|
3721
|
+
created_at: I,
|
|
3715
3722
|
updated_at: d,
|
|
3716
|
-
type:
|
|
3717
|
-
config:
|
|
3723
|
+
type: $,
|
|
3724
|
+
config: H
|
|
3718
3725
|
};
|
|
3719
|
-
},
|
|
3726
|
+
}, w = {
|
|
3720
3727
|
id: {},
|
|
3721
3728
|
name: {
|
|
3722
3729
|
type: M.Text,
|
|
3723
3730
|
section: V.Basic,
|
|
3724
|
-
label:
|
|
3731
|
+
label: i("form.fields.name.label")
|
|
3725
3732
|
},
|
|
3726
3733
|
tags: {
|
|
3727
3734
|
type: M.BadgeTag,
|
|
3728
3735
|
section: V.Basic,
|
|
3729
|
-
label:
|
|
3730
|
-
tooltip:
|
|
3736
|
+
label: i("form.fields.tags.label"),
|
|
3737
|
+
tooltip: i("form.fields.tags.tooltip")
|
|
3731
3738
|
},
|
|
3732
3739
|
updated_at: {},
|
|
3733
3740
|
created_at: {},
|
|
3734
3741
|
type: {
|
|
3735
3742
|
type: M.Text,
|
|
3736
3743
|
section: V.Basic,
|
|
3737
|
-
label:
|
|
3744
|
+
label: i("form.fields.type.label")
|
|
3738
3745
|
},
|
|
3739
3746
|
cluster_max_redirections: {
|
|
3740
3747
|
type: M.Text,
|
|
3741
3748
|
section: V.Basic,
|
|
3742
|
-
tooltip:
|
|
3743
|
-
label:
|
|
3749
|
+
tooltip: i("form.fields.cluster_max_redirections.tooltip"),
|
|
3750
|
+
label: i("form.fields.cluster_max_redirections.label")
|
|
3744
3751
|
},
|
|
3745
3752
|
cluster_nodes: {
|
|
3746
3753
|
type: M.JsonArray,
|
|
3747
3754
|
section: V.Basic,
|
|
3748
|
-
label:
|
|
3749
|
-
tooltip:
|
|
3755
|
+
label: i("form.fields.cluster_nodes.title"),
|
|
3756
|
+
tooltip: i("form.fields.cluster_nodes.tooltip")
|
|
3750
3757
|
},
|
|
3751
3758
|
connect_timeout: {
|
|
3752
3759
|
type: M.Text,
|
|
3753
3760
|
section: V.Basic,
|
|
3754
|
-
label:
|
|
3755
|
-
tooltip:
|
|
3761
|
+
label: i("form.fields.connect_timeout.label"),
|
|
3762
|
+
tooltip: i("form.fields.connect_timeout.tooltip")
|
|
3756
3763
|
},
|
|
3757
3764
|
connection_is_proxied: {
|
|
3758
3765
|
type: M.Text,
|
|
3759
3766
|
section: V.Basic,
|
|
3760
|
-
label:
|
|
3761
|
-
tooltip:
|
|
3767
|
+
label: i("form.fields.connection_is_proxied.label"),
|
|
3768
|
+
tooltip: i("form.fields.connection_is_proxied.tooltip")
|
|
3762
3769
|
},
|
|
3763
3770
|
database: {
|
|
3764
3771
|
type: M.Text,
|
|
3765
3772
|
section: V.Basic,
|
|
3766
|
-
label:
|
|
3767
|
-
tooltip:
|
|
3773
|
+
label: i("form.fields.database.label"),
|
|
3774
|
+
tooltip: i("form.fields.database.tooltip")
|
|
3768
3775
|
},
|
|
3769
3776
|
host: {
|
|
3770
3777
|
type: M.Text,
|
|
3771
3778
|
section: V.Basic,
|
|
3772
|
-
label:
|
|
3773
|
-
tooltip:
|
|
3779
|
+
label: i("form.fields.host.label"),
|
|
3780
|
+
tooltip: i("form.fields.host.tooltip")
|
|
3774
3781
|
},
|
|
3775
3782
|
keepalive_backlog: {
|
|
3776
3783
|
type: M.Text,
|
|
3777
3784
|
section: V.Basic,
|
|
3778
|
-
label:
|
|
3779
|
-
tooltip:
|
|
3785
|
+
label: i("form.fields.keepalive_backlog.label"),
|
|
3786
|
+
tooltip: i("form.fields.keepalive_backlog.tooltip")
|
|
3780
3787
|
},
|
|
3781
3788
|
keepalive_pool_size: {
|
|
3782
3789
|
type: M.Text,
|
|
3783
3790
|
section: V.Basic,
|
|
3784
|
-
label:
|
|
3785
|
-
tooltip:
|
|
3791
|
+
label: i("form.fields.keepalive_pool_size.label"),
|
|
3792
|
+
tooltip: i("form.fields.keepalive_pool_size.tooltip")
|
|
3786
3793
|
},
|
|
3787
3794
|
password: {
|
|
3788
3795
|
type: M.Redacted,
|
|
3789
3796
|
section: V.Basic,
|
|
3790
|
-
label:
|
|
3791
|
-
tooltip:
|
|
3797
|
+
label: i("form.fields.password.label"),
|
|
3798
|
+
tooltip: i("form.fields.password.tooltip")
|
|
3792
3799
|
},
|
|
3793
3800
|
port: {
|
|
3794
3801
|
type: M.Text,
|
|
3795
3802
|
section: V.Basic,
|
|
3796
|
-
label:
|
|
3797
|
-
tooltip:
|
|
3803
|
+
label: i("form.fields.port.label"),
|
|
3804
|
+
tooltip: i("form.fields.port.tooltip")
|
|
3798
3805
|
},
|
|
3799
3806
|
read_timeout: {
|
|
3800
3807
|
type: M.Text,
|
|
3801
3808
|
section: V.Basic,
|
|
3802
|
-
label:
|
|
3803
|
-
tooltip:
|
|
3809
|
+
label: i("form.fields.read_timeout.label"),
|
|
3810
|
+
tooltip: i("form.fields.read_timeout.tooltip")
|
|
3804
3811
|
},
|
|
3805
3812
|
send_timeout: {
|
|
3806
3813
|
type: M.Text,
|
|
3807
3814
|
section: V.Basic,
|
|
3808
|
-
label:
|
|
3809
|
-
tooltip:
|
|
3815
|
+
label: i("form.fields.send_timeout.label"),
|
|
3816
|
+
tooltip: i("form.fields.send_timeout.tooltip")
|
|
3810
3817
|
},
|
|
3811
3818
|
sentinel_master: {
|
|
3812
3819
|
type: M.Text,
|
|
3813
3820
|
section: V.Basic,
|
|
3814
|
-
label:
|
|
3815
|
-
tooltip:
|
|
3821
|
+
label: i("form.fields.sentinel_master.label"),
|
|
3822
|
+
tooltip: i("form.fields.sentinel_master.tooltip")
|
|
3816
3823
|
},
|
|
3817
3824
|
sentinel_nodes: {
|
|
3818
3825
|
type: M.JsonArray,
|
|
3819
3826
|
section: V.Basic,
|
|
3820
|
-
tooltip:
|
|
3827
|
+
tooltip: i("form.fields.sentinel_nodes.tooltip")
|
|
3821
3828
|
},
|
|
3822
3829
|
sentinel_password: {
|
|
3823
3830
|
type: M.Redacted,
|
|
3824
3831
|
section: V.Basic,
|
|
3825
|
-
label:
|
|
3826
|
-
tooltip:
|
|
3832
|
+
label: i("form.fields.sentinel_password.label"),
|
|
3833
|
+
tooltip: i("form.fields.sentinel_password.tooltip")
|
|
3827
3834
|
},
|
|
3828
3835
|
sentinel_role: {
|
|
3829
3836
|
type: M.Text,
|
|
3830
3837
|
section: V.Basic,
|
|
3831
|
-
label:
|
|
3832
|
-
tooltip:
|
|
3838
|
+
label: i("form.fields.sentinel_role.label"),
|
|
3839
|
+
tooltip: i("form.fields.sentinel_role.tooltip")
|
|
3833
3840
|
},
|
|
3834
3841
|
sentinel_username: {
|
|
3835
3842
|
type: M.Text,
|
|
3836
3843
|
section: V.Basic,
|
|
3837
|
-
label:
|
|
3838
|
-
tooltip:
|
|
3844
|
+
label: i("form.fields.sentinel_username.label"),
|
|
3845
|
+
tooltip: i("form.fields.sentinel_username.tooltip")
|
|
3839
3846
|
},
|
|
3840
3847
|
server_name: {
|
|
3841
3848
|
type: M.Text,
|
|
3842
3849
|
section: V.Basic,
|
|
3843
|
-
label:
|
|
3844
|
-
tooltip:
|
|
3850
|
+
label: i("form.fields.server_name.label"),
|
|
3851
|
+
tooltip: i("form.fields.server_name.tooltip")
|
|
3845
3852
|
},
|
|
3846
3853
|
ssl_verify: {
|
|
3847
3854
|
type: M.Text,
|
|
3848
3855
|
section: V.Basic,
|
|
3849
|
-
label:
|
|
3850
|
-
tooltip:
|
|
3856
|
+
label: i("form.fields.ssl_verify.label"),
|
|
3857
|
+
tooltip: i("form.fields.ssl_verify.tooltip")
|
|
3851
3858
|
},
|
|
3852
3859
|
ssl: {
|
|
3853
3860
|
type: M.Text,
|
|
3854
3861
|
section: V.Basic,
|
|
3855
|
-
label:
|
|
3856
|
-
tooltip:
|
|
3862
|
+
label: i("form.fields.ssl.label"),
|
|
3863
|
+
tooltip: i("form.fields.ssl.tooltip")
|
|
3857
3864
|
},
|
|
3858
3865
|
timeout: {
|
|
3859
3866
|
type: M.Text,
|
|
3860
3867
|
section: V.Basic,
|
|
3861
|
-
label:
|
|
3862
|
-
tooltip:
|
|
3868
|
+
label: i("form.fields.timeout.label"),
|
|
3869
|
+
tooltip: i("form.fields.timeout.tooltip")
|
|
3863
3870
|
},
|
|
3864
3871
|
username: {
|
|
3865
3872
|
type: M.Text,
|
|
3866
3873
|
section: V.Basic,
|
|
3867
|
-
label:
|
|
3868
|
-
tooltip:
|
|
3874
|
+
label: i("form.fields.username.label"),
|
|
3875
|
+
tooltip: i("form.fields.username.tooltip")
|
|
3869
3876
|
},
|
|
3870
3877
|
cloud_authentication: {
|
|
3871
3878
|
type: M.Json,
|
|
3872
3879
|
section: V.Basic,
|
|
3873
|
-
label:
|
|
3880
|
+
label: i("form.sections.cloud_auth.title")
|
|
3874
3881
|
}
|
|
3875
3882
|
}, m = (_) => {
|
|
3876
|
-
const
|
|
3877
|
-
for (const
|
|
3878
|
-
_.includes(
|
|
3879
|
-
...
|
|
3880
|
-
order: _.indexOf(
|
|
3881
|
-
} :
|
|
3882
|
-
...
|
|
3883
|
+
const C = {}, O = Object.keys(w);
|
|
3884
|
+
for (const s of O)
|
|
3885
|
+
_.includes(s) ? C[s] = {
|
|
3886
|
+
...w[s],
|
|
3887
|
+
order: _.indexOf(s) + 1
|
|
3888
|
+
} : C[s] = {
|
|
3889
|
+
...w[s],
|
|
3883
3890
|
hidden: !0
|
|
3884
3891
|
};
|
|
3885
|
-
return
|
|
3886
|
-
}, b =
|
|
3892
|
+
return C;
|
|
3893
|
+
}, b = B(() => {
|
|
3887
3894
|
const _ = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3888
3895
|
switch (c.value) {
|
|
3889
|
-
case
|
|
3896
|
+
case T.HOST_PORT_CE:
|
|
3890
3897
|
return m([
|
|
3891
3898
|
..._,
|
|
3892
3899
|
"host",
|
|
@@ -3900,7 +3907,7 @@ const Fe = (e) => {
|
|
|
3900
3907
|
"server_name",
|
|
3901
3908
|
"cloud_authentication"
|
|
3902
3909
|
]);
|
|
3903
|
-
case
|
|
3910
|
+
case T.HOST_PORT_EE:
|
|
3904
3911
|
return m([
|
|
3905
3912
|
..._,
|
|
3906
3913
|
"host",
|
|
@@ -3919,7 +3926,7 @@ const Fe = (e) => {
|
|
|
3919
3926
|
"connect_timeout",
|
|
3920
3927
|
"cloud_authentication"
|
|
3921
3928
|
]);
|
|
3922
|
-
case
|
|
3929
|
+
case T.CLUSTER:
|
|
3923
3930
|
return m([
|
|
3924
3931
|
..._,
|
|
3925
3932
|
"cluster_nodes",
|
|
@@ -3937,7 +3944,7 @@ const Fe = (e) => {
|
|
|
3937
3944
|
"connect_timeout",
|
|
3938
3945
|
"cloud_authentication"
|
|
3939
3946
|
]);
|
|
3940
|
-
case
|
|
3947
|
+
case T.SENTINEL:
|
|
3941
3948
|
return m([
|
|
3942
3949
|
..._,
|
|
3943
3950
|
"sentinel_master",
|
|
@@ -3961,38 +3968,38 @@ const Fe = (e) => {
|
|
|
3961
3968
|
throw new Error("Invalid Redis type");
|
|
3962
3969
|
}
|
|
3963
3970
|
});
|
|
3964
|
-
return (_,
|
|
3965
|
-
g(
|
|
3971
|
+
return (_, C) => (R(), G("div", xd, [
|
|
3972
|
+
g(r(Mi), {
|
|
3966
3973
|
"code-block-record-formatter": v,
|
|
3967
3974
|
config: e.config,
|
|
3968
3975
|
"config-card-doc": e.configCardDoc,
|
|
3969
3976
|
"config-schema": b.value,
|
|
3970
|
-
"entity-type":
|
|
3977
|
+
"entity-type": r(hn).Partial,
|
|
3971
3978
|
"fetch-url": a.value,
|
|
3972
3979
|
"hide-title": e.hideTitle,
|
|
3973
3980
|
"record-resolver": u,
|
|
3974
|
-
"onFetch:error":
|
|
3975
|
-
"onFetch:success":
|
|
3976
|
-
onLoading:
|
|
3981
|
+
"onFetch:error": C[0] || (C[0] = (O) => _.$emit("fetch:error", O)),
|
|
3982
|
+
"onFetch:success": f,
|
|
3983
|
+
onLoading: C[1] || (C[1] = (O) => _.$emit("loading", O))
|
|
3977
3984
|
}, {
|
|
3978
|
-
type:
|
|
3979
|
-
K("div", null,
|
|
3985
|
+
type: E(() => [
|
|
3986
|
+
K("div", null, z(l.value), 1)
|
|
3980
3987
|
]),
|
|
3981
3988
|
_: 1
|
|
3982
3989
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
3983
3990
|
]));
|
|
3984
3991
|
}
|
|
3985
3992
|
}), Ad = "12px";
|
|
3986
|
-
function
|
|
3993
|
+
function mi(e) {
|
|
3987
3994
|
const {
|
|
3988
3995
|
redisType: t = "redis-ce"
|
|
3989
|
-
} = e, n = "1000", o =
|
|
3996
|
+
} = e, n = "1000", o = yn(kn), { i18n: { t: i } } = at();
|
|
3990
3997
|
if (!o)
|
|
3991
3998
|
throw new Error("FORMS_CONFIG must be provided");
|
|
3992
3999
|
const {
|
|
3993
4000
|
debouncedQueryChange: a,
|
|
3994
4001
|
loading: c,
|
|
3995
|
-
error:
|
|
4002
|
+
error: f,
|
|
3996
4003
|
loadItems: l,
|
|
3997
4004
|
results: u
|
|
3998
4005
|
} = ji(o, Me.list[o.app], n, {
|
|
@@ -4000,27 +4007,27 @@ function pi(e) {
|
|
|
4000
4007
|
searchKeys: ["id", "name"]
|
|
4001
4008
|
}), v = (m) => {
|
|
4002
4009
|
switch (m) {
|
|
4003
|
-
case
|
|
4004
|
-
return
|
|
4005
|
-
case
|
|
4006
|
-
return
|
|
4007
|
-
case
|
|
4008
|
-
return
|
|
4009
|
-
case
|
|
4010
|
-
return `${
|
|
4010
|
+
case T.CLUSTER:
|
|
4011
|
+
return i("form.options.type.cluster");
|
|
4012
|
+
case T.HOST_PORT_CE:
|
|
4013
|
+
return i("form.options.type.host_port");
|
|
4014
|
+
case T.SENTINEL:
|
|
4015
|
+
return i("form.options.type.sentinel");
|
|
4016
|
+
case T.HOST_PORT_EE:
|
|
4017
|
+
return `${i("form.options.type.host_port")} (${i("form.options.type.enterprise")})`;
|
|
4011
4018
|
}
|
|
4012
|
-
},
|
|
4013
|
-
return
|
|
4019
|
+
}, w = B(() => (u.value || []).filter((b) => b.type === "redis-ce" || b.type === "redis-ee").map((b) => ({ label: b.id, name: b.name, value: b.id, type: b.type, tag: v(Be(b)) })).filter((b) => b.type === t));
|
|
4020
|
+
return gn(() => {
|
|
4014
4021
|
l();
|
|
4015
4022
|
}), {
|
|
4016
|
-
items:
|
|
4023
|
+
items: w,
|
|
4017
4024
|
loading: c,
|
|
4018
4025
|
onQueryChange: a,
|
|
4019
|
-
error:
|
|
4026
|
+
error: f,
|
|
4020
4027
|
loadItems: l
|
|
4021
4028
|
};
|
|
4022
4029
|
}
|
|
4023
|
-
const Pd = ["id"], $d = /* @__PURE__ */
|
|
4030
|
+
const Pd = ["id"], $d = /* @__PURE__ */ X({
|
|
4024
4031
|
__name: "RedisConfigurationFormModal",
|
|
4025
4032
|
props: {
|
|
4026
4033
|
visible: { type: Boolean },
|
|
@@ -4028,19 +4035,19 @@ const Pd = ["id"], $d = /* @__PURE__ */ Y({
|
|
|
4028
4035
|
},
|
|
4029
4036
|
emits: ["toast", "modal-close", "created"],
|
|
4030
4037
|
setup(e, { emit: t }) {
|
|
4031
|
-
const n = t, { i18n: { t: o } } =
|
|
4032
|
-
...
|
|
4038
|
+
const n = t, { i18n: { t: o } } = at(), i = yn(kn), a = B(() => ({
|
|
4039
|
+
...i,
|
|
4033
4040
|
cancelRoute: void 0
|
|
4034
|
-
})), { getMessageFromError: c } =
|
|
4041
|
+
})), { getMessageFromError: c } = vn(), f = Ci(), l = B(() => {
|
|
4035
4042
|
switch (e.partialType) {
|
|
4036
|
-
case
|
|
4037
|
-
return
|
|
4038
|
-
case
|
|
4039
|
-
return
|
|
4043
|
+
case Y.REDIS_CE:
|
|
4044
|
+
return Y.REDIS_EE;
|
|
4045
|
+
case Y.REDIS_EE:
|
|
4046
|
+
return Y.REDIS_CE;
|
|
4040
4047
|
default:
|
|
4041
4048
|
return;
|
|
4042
4049
|
}
|
|
4043
|
-
}), u =
|
|
4050
|
+
}), u = A(!1), v = A(), w = (_) => {
|
|
4044
4051
|
n("toast", {
|
|
4045
4052
|
message: c(_),
|
|
4046
4053
|
appearance: "danger"
|
|
@@ -4051,41 +4058,41 @@ const Pd = ["id"], $d = /* @__PURE__ */ Y({
|
|
|
4051
4058
|
appearance: "success"
|
|
4052
4059
|
}), b(), n("created", _);
|
|
4053
4060
|
}, b = () => {
|
|
4054
|
-
v.value = void 0, n("modal-close"),
|
|
4061
|
+
v.value = void 0, n("modal-close"), Dt(() => {
|
|
4055
4062
|
u.value = !1;
|
|
4056
4063
|
});
|
|
4057
4064
|
};
|
|
4058
|
-
return
|
|
4065
|
+
return Se(
|
|
4059
4066
|
() => e.visible,
|
|
4060
4067
|
(_) => {
|
|
4061
|
-
_ && (u.value = !0,
|
|
4062
|
-
v.value = `#redis-modal-footer-${
|
|
4068
|
+
_ && (u.value = !0, Dt(() => {
|
|
4069
|
+
v.value = `#redis-modal-footer-${f}`;
|
|
4063
4070
|
}));
|
|
4064
4071
|
}
|
|
4065
|
-
), (_,
|
|
4066
|
-
const
|
|
4067
|
-
return
|
|
4072
|
+
), (_, C) => {
|
|
4073
|
+
const O = P("KModal");
|
|
4074
|
+
return R(), N(O, {
|
|
4068
4075
|
class: "plugin-redis-partial-form",
|
|
4069
4076
|
"data-testid": "redis-partial-form-modal",
|
|
4070
4077
|
"full-screen": "",
|
|
4071
|
-
title:
|
|
4078
|
+
title: r(o)("form.redis_partial_modal_title"),
|
|
4072
4079
|
visible: u.value,
|
|
4073
4080
|
onCancel: b
|
|
4074
4081
|
}, {
|
|
4075
|
-
footer:
|
|
4082
|
+
footer: E(() => [
|
|
4076
4083
|
K("div", {
|
|
4077
|
-
id: `redis-modal-footer-${
|
|
4084
|
+
id: `redis-modal-footer-${r(f)}`,
|
|
4078
4085
|
class: "redis-modal-footer"
|
|
4079
4086
|
}, null, 8, Pd)
|
|
4080
4087
|
]),
|
|
4081
|
-
default:
|
|
4088
|
+
default: E(() => [
|
|
4082
4089
|
g(pd, {
|
|
4083
4090
|
"action-teleport-target": v.value,
|
|
4084
4091
|
config: a.value,
|
|
4085
4092
|
"disabled-partial-type": l.value,
|
|
4086
4093
|
"slidout-top-offset": 0,
|
|
4087
4094
|
onCancel: b,
|
|
4088
|
-
onError:
|
|
4095
|
+
onError: w,
|
|
4089
4096
|
onUpdate: m
|
|
4090
4097
|
}, null, 8, ["action-teleport-target", "config", "disabled-partial-type"])
|
|
4091
4098
|
]),
|
|
@@ -4093,13 +4100,13 @@ const Pd = ["id"], $d = /* @__PURE__ */ Y({
|
|
|
4093
4100
|
}, 8, ["title", "visible"]);
|
|
4094
4101
|
};
|
|
4095
4102
|
}
|
|
4096
|
-
}), Vd = /* @__PURE__ */
|
|
4103
|
+
}), Vd = /* @__PURE__ */ ne($d, [["__scopeId", "data-v-280b73f4"]]), Md = { class: "selected-redis-config" }, jd = ["data-testid"], Dd = {
|
|
4097
4104
|
class: "select-item-name",
|
|
4098
4105
|
"data-testid": "selected-redis-config"
|
|
4099
4106
|
}, Ld = {
|
|
4100
4107
|
class: "empty-redis-config",
|
|
4101
4108
|
"data-testid": "empty-redis-config"
|
|
4102
|
-
}, Ud = /* @__PURE__ */
|
|
4109
|
+
}, Ud = /* @__PURE__ */ X({
|
|
4103
4110
|
inheritAttrs: !1,
|
|
4104
4111
|
__name: "RedisConfigurationSelector",
|
|
4105
4112
|
props: {
|
|
@@ -4112,18 +4119,18 @@ const Pd = ["id"], $d = /* @__PURE__ */ Y({
|
|
|
4112
4119
|
},
|
|
4113
4120
|
emits: ["update:modelValue", "change", "create-new", "error-change", "modal-close", "toast"],
|
|
4114
4121
|
setup(e, { emit: t }) {
|
|
4115
|
-
const n = t, { i18n: { t: o } } =
|
|
4116
|
-
items:
|
|
4122
|
+
const n = t, { i18n: { t: o } } = at(), {
|
|
4123
|
+
items: i,
|
|
4117
4124
|
loading: a,
|
|
4118
4125
|
onQueryChange: c,
|
|
4119
|
-
error:
|
|
4126
|
+
error: f,
|
|
4120
4127
|
loadItems: l
|
|
4121
|
-
} =
|
|
4128
|
+
} = mi({
|
|
4122
4129
|
redisType: e.redisType
|
|
4123
|
-
}), u =
|
|
4124
|
-
const
|
|
4125
|
-
n("update:modelValue",
|
|
4126
|
-
},
|
|
4130
|
+
}), u = A(!1), v = (_) => {
|
|
4131
|
+
const C = _ == null ? void 0 : _.value;
|
|
4132
|
+
n("update:modelValue", C), n("change", _);
|
|
4133
|
+
}, w = () => {
|
|
4127
4134
|
u.value = !0;
|
|
4128
4135
|
}, m = () => {
|
|
4129
4136
|
u.value = !1, n("modal-close");
|
|
@@ -4134,58 +4141,58 @@ const Pd = ["id"], $d = /* @__PURE__ */ Y({
|
|
|
4134
4141
|
label: _.name
|
|
4135
4142
|
});
|
|
4136
4143
|
};
|
|
4137
|
-
return
|
|
4144
|
+
return Se(f, (_) => {
|
|
4138
4145
|
n("error-change", _ ? new Error(String(_)) : null);
|
|
4139
|
-
}), (_,
|
|
4140
|
-
const
|
|
4141
|
-
return
|
|
4142
|
-
g(
|
|
4146
|
+
}), (_, C) => {
|
|
4147
|
+
const O = P("KBadge"), s = P("KSelect");
|
|
4148
|
+
return R(), G(ce, null, [
|
|
4149
|
+
g(s, ki({
|
|
4143
4150
|
class: "redis-config-select-trigger",
|
|
4144
4151
|
"enable-filtering": "",
|
|
4145
4152
|
"filter-function": () => !0,
|
|
4146
|
-
items: i
|
|
4147
|
-
loading:
|
|
4153
|
+
items: r(i),
|
|
4154
|
+
loading: r(a),
|
|
4148
4155
|
"model-value": e.modelValue,
|
|
4149
|
-
placeholder: e.placeholder ||
|
|
4156
|
+
placeholder: e.placeholder || r(o)("selector.placeholder")
|
|
4150
4157
|
}, _.$attrs, {
|
|
4151
4158
|
onChange: v,
|
|
4152
|
-
onQueryChange:
|
|
4153
|
-
}),
|
|
4154
|
-
"selected-item-template":
|
|
4155
|
-
K("div", Md,
|
|
4159
|
+
onQueryChange: r(c)
|
|
4160
|
+
}), bn({
|
|
4161
|
+
"selected-item-template": E(({ item: I }) => [
|
|
4162
|
+
K("div", Md, z(I.name), 1)
|
|
4156
4163
|
]),
|
|
4157
|
-
"item-template":
|
|
4164
|
+
"item-template": E(({ item: I }) => [
|
|
4158
4165
|
K("div", {
|
|
4159
4166
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
4160
|
-
"data-testid": `redis-configuration-dropdown-item-${
|
|
4167
|
+
"data-testid": `redis-configuration-dropdown-item-${I.name}`
|
|
4161
4168
|
}, [
|
|
4162
|
-
K("span", Dd,
|
|
4163
|
-
g(
|
|
4169
|
+
K("span", Dd, z(I.name), 1),
|
|
4170
|
+
g(O, {
|
|
4164
4171
|
appearance: "info",
|
|
4165
4172
|
class: "select-item-label"
|
|
4166
4173
|
}, {
|
|
4167
|
-
default:
|
|
4168
|
-
|
|
4174
|
+
default: E(() => [
|
|
4175
|
+
oe(z(I.tag), 1)
|
|
4169
4176
|
]),
|
|
4170
4177
|
_: 2
|
|
4171
4178
|
}, 1024)
|
|
4172
4179
|
], 8, jd)
|
|
4173
4180
|
]),
|
|
4174
|
-
empty:
|
|
4175
|
-
K("div", Ld,
|
|
4181
|
+
empty: E(() => [
|
|
4182
|
+
K("div", Ld, z(e.emptyStateText || r(o)("selector.empty_state")), 1)
|
|
4176
4183
|
]),
|
|
4177
4184
|
_: 2
|
|
4178
4185
|
}, [
|
|
4179
4186
|
e.showCreateButton ? {
|
|
4180
4187
|
name: "dropdown-footer-text",
|
|
4181
|
-
fn:
|
|
4188
|
+
fn: E(() => [
|
|
4182
4189
|
K("div", {
|
|
4183
4190
|
class: "new-redis-config-area",
|
|
4184
4191
|
"data-testid": "new-redis-config-area",
|
|
4185
|
-
onClick:
|
|
4192
|
+
onClick: w
|
|
4186
4193
|
}, [
|
|
4187
|
-
g(
|
|
4188
|
-
K("span", null,
|
|
4194
|
+
g(r(vt), { size: r(Ad) }, null, 8, ["size"]),
|
|
4195
|
+
K("span", null, z(e.createButtonText || r(o)("selector.create_new")), 1)
|
|
4189
4196
|
])
|
|
4190
4197
|
]),
|
|
4191
4198
|
key: "0"
|
|
@@ -4196,27 +4203,27 @@ const Pd = ["id"], $d = /* @__PURE__ */ Y({
|
|
|
4196
4203
|
visible: u.value,
|
|
4197
4204
|
onCreated: b,
|
|
4198
4205
|
onModalClose: m,
|
|
4199
|
-
onToast:
|
|
4206
|
+
onToast: C[0] || (C[0] = (I) => n("toast", I))
|
|
4200
4207
|
}, null, 8, ["partial-type", "visible"])
|
|
4201
4208
|
], 64);
|
|
4202
4209
|
};
|
|
4203
4210
|
}
|
|
4204
|
-
}), tu = /* @__PURE__ */
|
|
4205
|
-
useLinkedPlugins:
|
|
4206
|
-
useLinkedPluginsFetcher:
|
|
4207
|
-
useRedisConfigurationSelector:
|
|
4211
|
+
}), tu = /* @__PURE__ */ ne(Ud, [["__scopeId", "data-v-3c6e44d3"]]), nu = {
|
|
4212
|
+
useLinkedPlugins: pi,
|
|
4213
|
+
useLinkedPluginsFetcher: ze,
|
|
4214
|
+
useRedisConfigurationSelector: mi
|
|
4208
4215
|
};
|
|
4209
4216
|
export {
|
|
4210
|
-
|
|
4217
|
+
W as AuthProvider,
|
|
4211
4218
|
kd as DeleteWarningModal,
|
|
4212
4219
|
Td as LinkedPlugins,
|
|
4213
|
-
|
|
4220
|
+
Y as PartialType,
|
|
4214
4221
|
eu as RedisConfigurationConfigCard,
|
|
4215
4222
|
pd as RedisConfigurationForm,
|
|
4216
4223
|
Vd as RedisConfigurationFormModal,
|
|
4217
4224
|
Xd as RedisConfigurationList,
|
|
4218
4225
|
tu as RedisConfigurationSelector,
|
|
4219
|
-
|
|
4226
|
+
T as RedisType,
|
|
4220
4227
|
nu as composables,
|
|
4221
4228
|
Qd as constants,
|
|
4222
4229
|
Yd as helpers
|