@kong-ui-public/entities-redis-configurations 1.4.7 → 1.4.8
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 +1839 -1470
- package/dist/entities-redis-configurations.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigurationConfigCard.vue.d.ts.map +1 -1
- package/dist/types/components/RedisConfigurationForm.vue.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1,58 +1,80 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as z, reactive as sn, ref as A, watch as ke, defineComponent as te, resolveComponent as U, createElementBlock as G, openBlock as $, createVNode as p, withCtx as E, renderSlot as ri, unref as r, mergeModels as dn, useModel as un, createElementVNode as W, createTextVNode as re, toDisplayString as H, Fragment as Qe, renderList as ht, createBlock as K, getCurrentInstance as oi, onMounted as ai, onUnmounted as li, isReadonly as si, toRefs as di, onBeforeMount as ui, createCommentVNode as ie, isRef as ci, createSlots as fi, withModifiers as pi, Teleport as mi } 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
|
|
8
|
-
import { createI18n as
|
|
9
|
-
import { PluginIcon as
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
var t =
|
|
4
|
+
import { useAxios as Tt, useErrors as gi, EntityBaseFormType as at, EntityBaseForm as bi, SupportedEntityType as cn, EntityFormSection as ge, EntityFilter as fn, useDeleteUrlBuilder as _i, useFetcher as yi, FetcherStatus as vi, EntityBaseTable as hi, PermissionsWrapper as Ne, TableTags as Ti, EntityDeleteModal as wi, EntityTypes as Si, ConfigurationSchemaSection as L, ConfigurationSchemaType as M, EntityBaseConfigCard as Ei } from "@kong-ui-public/entities-shared";
|
|
5
|
+
import { VaultSecretPickerProvider as Be, VaultSecretPicker as Oi } from "@kong-ui-public/entities-vaults";
|
|
6
|
+
import { useRouter as pn } from "vue-router";
|
|
7
|
+
import { TrashIcon as Ci, AddCircleIcon as mn, AddIcon as $t, RefreshIcon as Ii, ClipboardIcon as xi, DeployIcon as Ri } from "@kong/icons";
|
|
8
|
+
import { createI18n as $i, i18nTComponent as Pi } from "@kong-ui-public/i18n";
|
|
9
|
+
import { PluginIcon as gn } from "@kong-ui-public/entities-plugins-icon";
|
|
10
|
+
var w = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(w || {}), ee = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(ee || {}), bn = typeof global == "object" && global && global.Object === Object && global, Ai = typeof self == "object" && self && self.Object === Object && self, oe = bn || Ai || Function("return this")(), J = oe.Symbol, _n = Object.prototype, ki = _n.hasOwnProperty, Vi = _n.toString, Pe = J ? J.toStringTag : void 0;
|
|
11
|
+
function Li(e) {
|
|
12
|
+
var t = ki.call(e, Pe), n = e[Pe];
|
|
13
13
|
try {
|
|
14
|
-
e[
|
|
15
|
-
var
|
|
14
|
+
e[Pe] = void 0;
|
|
15
|
+
var o = !0;
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
return
|
|
18
|
+
var i = Vi.call(e);
|
|
19
|
+
return o && (t ? e[Pe] = n : delete e[Pe]), i;
|
|
20
20
|
}
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return
|
|
21
|
+
var Mi = Object.prototype, ji = Mi.toString;
|
|
22
|
+
function Di(e) {
|
|
23
|
+
return ji.call(e);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return e == null ? e === void 0 ?
|
|
25
|
+
var Ui = "[object Null]", Ni = "[object Undefined]", Pt = J ? J.toStringTag : void 0;
|
|
26
|
+
function we(e) {
|
|
27
|
+
return e == null ? e === void 0 ? Ni : Ui : Pt && Pt in Object(e) ? Li(e) : Di(e);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function de(e) {
|
|
30
30
|
return e != null && typeof e == "object";
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
32
|
+
var Bi = "[object Symbol]";
|
|
33
|
+
function wt(e) {
|
|
34
|
+
return typeof e == "symbol" || de(e) && we(e) == Bi;
|
|
35
|
+
}
|
|
36
|
+
function yn(e, t) {
|
|
37
|
+
for (var n = -1, o = e == null ? 0 : e.length, i = Array(o); ++n < o; )
|
|
38
|
+
i[n] = t(e[n], n, e);
|
|
39
|
+
return i;
|
|
40
|
+
}
|
|
41
|
+
var ue = Array.isArray, At = J ? J.prototype : void 0, kt = At ? At.toString : void 0;
|
|
42
|
+
function vn(e) {
|
|
43
|
+
if (typeof e == "string")
|
|
44
|
+
return e;
|
|
45
|
+
if (ue(e))
|
|
46
|
+
return yn(e, vn) + "";
|
|
47
|
+
if (wt(e))
|
|
48
|
+
return kt ? kt.call(e) : "";
|
|
49
|
+
var t = e + "";
|
|
50
|
+
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
51
|
+
}
|
|
52
|
+
function Ze(e) {
|
|
34
53
|
var t = typeof e;
|
|
35
54
|
return e != null && (t == "object" || t == "function");
|
|
36
55
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
56
|
+
function Fi(e) {
|
|
57
|
+
return e;
|
|
58
|
+
}
|
|
59
|
+
var Hi = "[object AsyncFunction]", Ki = "[object Function]", zi = "[object GeneratorFunction]", qi = "[object Proxy]";
|
|
60
|
+
function hn(e) {
|
|
61
|
+
if (!Ze(e))
|
|
40
62
|
return !1;
|
|
41
|
-
var t =
|
|
42
|
-
return t ==
|
|
63
|
+
var t = we(e);
|
|
64
|
+
return t == Ki || t == zi || t == Hi || t == qi;
|
|
43
65
|
}
|
|
44
|
-
var
|
|
45
|
-
var e = /[^.]+$/.exec(
|
|
66
|
+
var lt = oe["__core-js_shared__"], Vt = function() {
|
|
67
|
+
var e = /[^.]+$/.exec(lt && lt.keys && lt.keys.IE_PROTO || "");
|
|
46
68
|
return e ? "Symbol(src)_1." + e : "";
|
|
47
69
|
}();
|
|
48
|
-
function
|
|
49
|
-
return !!
|
|
70
|
+
function Wi(e) {
|
|
71
|
+
return !!Vt && Vt in e;
|
|
50
72
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
73
|
+
var Gi = Function.prototype, Ji = Gi.toString;
|
|
74
|
+
function Se(e) {
|
|
53
75
|
if (e != null) {
|
|
54
76
|
try {
|
|
55
|
-
return
|
|
77
|
+
return Ji.call(e);
|
|
56
78
|
} catch {
|
|
57
79
|
}
|
|
58
80
|
try {
|
|
@@ -62,501 +84,836 @@ function be(e) {
|
|
|
62
84
|
}
|
|
63
85
|
return "";
|
|
64
86
|
}
|
|
65
|
-
var
|
|
66
|
-
"^" +
|
|
87
|
+
var Yi = /[\\^$.*+?()[\]{}|]/g, Xi = /^\[object .+?Constructor\]$/, Qi = Function.prototype, Zi = Object.prototype, er = Qi.toString, tr = Zi.hasOwnProperty, nr = RegExp(
|
|
88
|
+
"^" + er.call(tr).replace(Yi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
67
89
|
);
|
|
68
|
-
function
|
|
69
|
-
if (!
|
|
90
|
+
function ir(e) {
|
|
91
|
+
if (!Ze(e) || Wi(e))
|
|
70
92
|
return !1;
|
|
71
|
-
var t =
|
|
72
|
-
return t.test(
|
|
93
|
+
var t = hn(e) ? nr : Xi;
|
|
94
|
+
return t.test(Se(e));
|
|
73
95
|
}
|
|
74
|
-
function
|
|
96
|
+
function rr(e, t) {
|
|
75
97
|
return e == null ? void 0 : e[t];
|
|
76
98
|
}
|
|
77
|
-
function
|
|
78
|
-
var n =
|
|
79
|
-
return
|
|
99
|
+
function Ee(e, t) {
|
|
100
|
+
var n = rr(e, t);
|
|
101
|
+
return ir(n) ? n : void 0;
|
|
102
|
+
}
|
|
103
|
+
var gt = Ee(oe, "WeakMap");
|
|
104
|
+
function or(e, t, n) {
|
|
105
|
+
switch (n.length) {
|
|
106
|
+
case 0:
|
|
107
|
+
return e.call(t);
|
|
108
|
+
case 1:
|
|
109
|
+
return e.call(t, n[0]);
|
|
110
|
+
case 2:
|
|
111
|
+
return e.call(t, n[0], n[1]);
|
|
112
|
+
case 3:
|
|
113
|
+
return e.call(t, n[0], n[1], n[2]);
|
|
114
|
+
}
|
|
115
|
+
return e.apply(t, n);
|
|
116
|
+
}
|
|
117
|
+
var ar = 800, lr = 16, sr = Date.now;
|
|
118
|
+
function dr(e) {
|
|
119
|
+
var t = 0, n = 0;
|
|
120
|
+
return function() {
|
|
121
|
+
var o = sr(), i = lr - (o - n);
|
|
122
|
+
if (n = o, i > 0) {
|
|
123
|
+
if (++t >= ar)
|
|
124
|
+
return arguments[0];
|
|
125
|
+
} else
|
|
126
|
+
t = 0;
|
|
127
|
+
return e.apply(void 0, arguments);
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function ur(e) {
|
|
131
|
+
return function() {
|
|
132
|
+
return e;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
var qe = function() {
|
|
136
|
+
try {
|
|
137
|
+
var e = Ee(Object, "defineProperty");
|
|
138
|
+
return e({}, "", {}), e;
|
|
139
|
+
} catch {
|
|
140
|
+
}
|
|
141
|
+
}(), cr = qe ? function(e, t) {
|
|
142
|
+
return qe(e, "toString", {
|
|
143
|
+
configurable: !0,
|
|
144
|
+
enumerable: !1,
|
|
145
|
+
value: ur(t),
|
|
146
|
+
writable: !0
|
|
147
|
+
});
|
|
148
|
+
} : Fi, fr = dr(cr);
|
|
149
|
+
function pr(e, t) {
|
|
150
|
+
for (var n = -1, o = e == null ? 0 : e.length; ++n < o && t(e[n], n, e) !== !1; )
|
|
151
|
+
;
|
|
152
|
+
return e;
|
|
80
153
|
}
|
|
81
|
-
var
|
|
82
|
-
function
|
|
154
|
+
var mr = 9007199254740991, gr = /^(?:0|[1-9]\d*)$/;
|
|
155
|
+
function br(e, t) {
|
|
83
156
|
var n = typeof e;
|
|
84
|
-
return t = t ??
|
|
157
|
+
return t = t ?? mr, !!t && (n == "number" || n != "symbol" && gr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
158
|
+
}
|
|
159
|
+
function Tn(e, t, n) {
|
|
160
|
+
t == "__proto__" && qe ? qe(e, t, {
|
|
161
|
+
configurable: !0,
|
|
162
|
+
enumerable: !0,
|
|
163
|
+
value: n,
|
|
164
|
+
writable: !0
|
|
165
|
+
}) : e[t] = n;
|
|
85
166
|
}
|
|
86
|
-
function
|
|
167
|
+
function St(e, t) {
|
|
87
168
|
return e === t || e !== e && t !== t;
|
|
88
169
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
91
|
-
|
|
170
|
+
var _r = Object.prototype, yr = _r.hasOwnProperty;
|
|
171
|
+
function wn(e, t, n) {
|
|
172
|
+
var o = e[t];
|
|
173
|
+
(!(yr.call(e, t) && St(o, n)) || n === void 0 && !(t in e)) && Tn(e, t, n);
|
|
174
|
+
}
|
|
175
|
+
function vr(e, t, n, o) {
|
|
176
|
+
var i = !n;
|
|
177
|
+
n || (n = {});
|
|
178
|
+
for (var a = -1, d = t.length; ++a < d; ) {
|
|
179
|
+
var f = t[a], l = void 0;
|
|
180
|
+
l === void 0 && (l = e[f]), i ? Tn(n, f, l) : wn(n, f, l);
|
|
181
|
+
}
|
|
182
|
+
return n;
|
|
183
|
+
}
|
|
184
|
+
var Lt = Math.max;
|
|
185
|
+
function hr(e, t, n) {
|
|
186
|
+
return t = Lt(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
187
|
+
for (var o = arguments, i = -1, a = Lt(o.length - t, 0), d = Array(a); ++i < a; )
|
|
188
|
+
d[i] = o[t + i];
|
|
189
|
+
i = -1;
|
|
190
|
+
for (var f = Array(t + 1); ++i < t; )
|
|
191
|
+
f[i] = o[i];
|
|
192
|
+
return f[t] = n(d), or(e, this, f);
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
var Tr = 9007199254740991;
|
|
196
|
+
function Sn(e) {
|
|
197
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Tr;
|
|
92
198
|
}
|
|
93
|
-
function
|
|
94
|
-
return e != null &&
|
|
199
|
+
function En(e) {
|
|
200
|
+
return e != null && Sn(e.length) && !hn(e);
|
|
95
201
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
98
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
202
|
+
var wr = Object.prototype;
|
|
203
|
+
function On(e) {
|
|
204
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || wr;
|
|
99
205
|
return e === n;
|
|
100
206
|
}
|
|
101
|
-
function
|
|
102
|
-
for (var n = -1,
|
|
103
|
-
|
|
104
|
-
return
|
|
207
|
+
function Sr(e, t) {
|
|
208
|
+
for (var n = -1, o = Array(e); ++n < e; )
|
|
209
|
+
o[n] = t(n);
|
|
210
|
+
return o;
|
|
105
211
|
}
|
|
106
|
-
var
|
|
107
|
-
function
|
|
108
|
-
return
|
|
212
|
+
var Er = "[object Arguments]";
|
|
213
|
+
function Mt(e) {
|
|
214
|
+
return de(e) && we(e) == Er;
|
|
109
215
|
}
|
|
110
|
-
var
|
|
216
|
+
var Cn = Object.prototype, Or = Cn.hasOwnProperty, Cr = Cn.propertyIsEnumerable, In = Mt(/* @__PURE__ */ function() {
|
|
111
217
|
return arguments;
|
|
112
|
-
}()) ?
|
|
113
|
-
return
|
|
218
|
+
}()) ? Mt : function(e) {
|
|
219
|
+
return de(e) && Or.call(e, "callee") && !Cr.call(e, "callee");
|
|
114
220
|
};
|
|
115
|
-
function
|
|
221
|
+
function Ir() {
|
|
116
222
|
return !1;
|
|
117
223
|
}
|
|
118
|
-
var
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
function
|
|
122
|
-
return
|
|
224
|
+
var xn = typeof exports == "object" && exports && !exports.nodeType && exports, jt = xn && typeof module == "object" && module && !module.nodeType && module, xr = jt && jt.exports === xn, Dt = xr ? oe.Buffer : void 0, Rr = Dt ? Dt.isBuffer : void 0, We = Rr || Ir, $r = "[object Arguments]", Pr = "[object Array]", Ar = "[object Boolean]", kr = "[object Date]", Vr = "[object Error]", Lr = "[object Function]", Mr = "[object Map]", jr = "[object Number]", Dr = "[object Object]", Ur = "[object RegExp]", Nr = "[object Set]", Br = "[object String]", Fr = "[object WeakMap]", Hr = "[object ArrayBuffer]", Kr = "[object DataView]", zr = "[object Float32Array]", qr = "[object Float64Array]", Wr = "[object Int8Array]", Gr = "[object Int16Array]", Jr = "[object Int32Array]", Yr = "[object Uint8Array]", Xr = "[object Uint8ClampedArray]", Qr = "[object Uint16Array]", Zr = "[object Uint32Array]", j = {};
|
|
225
|
+
j[zr] = j[qr] = j[Wr] = j[Gr] = j[Jr] = j[Yr] = j[Xr] = j[Qr] = j[Zr] = !0;
|
|
226
|
+
j[$r] = j[Pr] = j[Hr] = j[Ar] = j[Kr] = j[kr] = j[Vr] = j[Lr] = j[Mr] = j[jr] = j[Dr] = j[Ur] = j[Nr] = j[Br] = j[Fr] = !1;
|
|
227
|
+
function eo(e) {
|
|
228
|
+
return de(e) && Sn(e.length) && !!j[we(e)];
|
|
123
229
|
}
|
|
124
|
-
function
|
|
230
|
+
function Et(e) {
|
|
125
231
|
return function(t) {
|
|
126
232
|
return e(t);
|
|
127
233
|
};
|
|
128
234
|
}
|
|
129
|
-
var
|
|
235
|
+
var Rn = typeof exports == "object" && exports && !exports.nodeType && exports, Ae = Rn && typeof module == "object" && module && !module.nodeType && module, to = Ae && Ae.exports === Rn, st = to && bn.process, $e = function() {
|
|
130
236
|
try {
|
|
131
|
-
var e =
|
|
132
|
-
return e ||
|
|
237
|
+
var e = Ae && Ae.require && Ae.require("util").types;
|
|
238
|
+
return e || st && st.binding && st.binding("util");
|
|
133
239
|
} catch {
|
|
134
240
|
}
|
|
135
|
-
}(),
|
|
136
|
-
function
|
|
137
|
-
var n =
|
|
241
|
+
}(), Ut = $e && $e.isTypedArray, $n = Ut ? Et(Ut) : eo, no = Object.prototype, io = no.hasOwnProperty;
|
|
242
|
+
function Pn(e, t) {
|
|
243
|
+
var n = ue(e), o = !n && In(e), i = !n && !o && We(e), a = !n && !o && !i && $n(e), d = n || o || i || a, f = d ? Sr(e.length, String) : [], l = f.length;
|
|
138
244
|
for (var u in e)
|
|
139
|
-
|
|
245
|
+
(t || io.call(e, u)) && !(d && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
140
246
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
141
|
-
|
|
247
|
+
i && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
142
248
|
a && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
143
|
-
|
|
144
|
-
return
|
|
249
|
+
br(u, l))) && f.push(u);
|
|
250
|
+
return f;
|
|
145
251
|
}
|
|
146
|
-
function
|
|
252
|
+
function An(e, t) {
|
|
147
253
|
return function(n) {
|
|
148
254
|
return e(t(n));
|
|
149
255
|
};
|
|
150
256
|
}
|
|
151
|
-
var
|
|
152
|
-
function
|
|
153
|
-
if (!
|
|
154
|
-
return
|
|
257
|
+
var ro = An(Object.keys, Object), oo = Object.prototype, ao = oo.hasOwnProperty;
|
|
258
|
+
function lo(e) {
|
|
259
|
+
if (!On(e))
|
|
260
|
+
return ro(e);
|
|
155
261
|
var t = [];
|
|
156
262
|
for (var n in Object(e))
|
|
157
|
-
|
|
263
|
+
ao.call(e, n) && n != "constructor" && t.push(n);
|
|
264
|
+
return t;
|
|
265
|
+
}
|
|
266
|
+
function so(e) {
|
|
267
|
+
return En(e) ? Pn(e) : lo(e);
|
|
268
|
+
}
|
|
269
|
+
function uo(e) {
|
|
270
|
+
var t = [];
|
|
271
|
+
if (e != null)
|
|
272
|
+
for (var n in Object(e))
|
|
273
|
+
t.push(n);
|
|
158
274
|
return t;
|
|
159
275
|
}
|
|
160
|
-
|
|
161
|
-
|
|
276
|
+
var co = Object.prototype, fo = co.hasOwnProperty;
|
|
277
|
+
function po(e) {
|
|
278
|
+
if (!Ze(e))
|
|
279
|
+
return uo(e);
|
|
280
|
+
var t = On(e), n = [];
|
|
281
|
+
for (var o in e)
|
|
282
|
+
o == "constructor" && (t || !fo.call(e, o)) || n.push(o);
|
|
283
|
+
return n;
|
|
284
|
+
}
|
|
285
|
+
function mo(e) {
|
|
286
|
+
return En(e) ? Pn(e, !0) : po(e);
|
|
287
|
+
}
|
|
288
|
+
var go = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, bo = /^\w*$/;
|
|
289
|
+
function _o(e, t) {
|
|
290
|
+
if (ue(e))
|
|
291
|
+
return !1;
|
|
292
|
+
var n = typeof e;
|
|
293
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || wt(e) ? !0 : bo.test(e) || !go.test(e) || t != null && e in Object(t);
|
|
162
294
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
this.__data__ =
|
|
295
|
+
var Ve = Ee(Object, "create");
|
|
296
|
+
function yo() {
|
|
297
|
+
this.__data__ = Ve ? Ve(null) : {}, this.size = 0;
|
|
166
298
|
}
|
|
167
|
-
function
|
|
299
|
+
function vo(e) {
|
|
168
300
|
var t = this.has(e) && delete this.__data__[e];
|
|
169
301
|
return this.size -= t ? 1 : 0, t;
|
|
170
302
|
}
|
|
171
|
-
var
|
|
172
|
-
function
|
|
303
|
+
var ho = "__lodash_hash_undefined__", To = Object.prototype, wo = To.hasOwnProperty;
|
|
304
|
+
function So(e) {
|
|
173
305
|
var t = this.__data__;
|
|
174
|
-
if (
|
|
306
|
+
if (Ve) {
|
|
175
307
|
var n = t[e];
|
|
176
|
-
return n ===
|
|
308
|
+
return n === ho ? void 0 : n;
|
|
177
309
|
}
|
|
178
|
-
return
|
|
310
|
+
return wo.call(t, e) ? t[e] : void 0;
|
|
179
311
|
}
|
|
180
|
-
var
|
|
181
|
-
function
|
|
312
|
+
var Eo = Object.prototype, Oo = Eo.hasOwnProperty;
|
|
313
|
+
function Co(e) {
|
|
182
314
|
var t = this.__data__;
|
|
183
|
-
return
|
|
315
|
+
return Ve ? t[e] !== void 0 : Oo.call(t, e);
|
|
184
316
|
}
|
|
185
|
-
var
|
|
186
|
-
function
|
|
317
|
+
var Io = "__lodash_hash_undefined__";
|
|
318
|
+
function xo(e, t) {
|
|
187
319
|
var n = this.__data__;
|
|
188
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
320
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Ve && t === void 0 ? Io : t, this;
|
|
189
321
|
}
|
|
190
|
-
function
|
|
322
|
+
function Te(e) {
|
|
191
323
|
var t = -1, n = e == null ? 0 : e.length;
|
|
192
324
|
for (this.clear(); ++t < n; ) {
|
|
193
|
-
var
|
|
194
|
-
this.set(
|
|
325
|
+
var o = e[t];
|
|
326
|
+
this.set(o[0], o[1]);
|
|
195
327
|
}
|
|
196
328
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
function
|
|
329
|
+
Te.prototype.clear = yo;
|
|
330
|
+
Te.prototype.delete = vo;
|
|
331
|
+
Te.prototype.get = So;
|
|
332
|
+
Te.prototype.has = Co;
|
|
333
|
+
Te.prototype.set = xo;
|
|
334
|
+
function Ro() {
|
|
203
335
|
this.__data__ = [], this.size = 0;
|
|
204
336
|
}
|
|
205
|
-
function
|
|
337
|
+
function et(e, t) {
|
|
206
338
|
for (var n = e.length; n--; )
|
|
207
|
-
if (
|
|
339
|
+
if (St(e[n][0], t))
|
|
208
340
|
return n;
|
|
209
341
|
return -1;
|
|
210
342
|
}
|
|
211
|
-
var
|
|
212
|
-
function
|
|
213
|
-
var t = this.__data__, n =
|
|
343
|
+
var $o = Array.prototype, Po = $o.splice;
|
|
344
|
+
function Ao(e) {
|
|
345
|
+
var t = this.__data__, n = et(t, e);
|
|
214
346
|
if (n < 0)
|
|
215
347
|
return !1;
|
|
216
|
-
var
|
|
217
|
-
return n ==
|
|
348
|
+
var o = t.length - 1;
|
|
349
|
+
return n == o ? t.pop() : Po.call(t, n, 1), --this.size, !0;
|
|
218
350
|
}
|
|
219
|
-
function
|
|
220
|
-
var t = this.__data__, n =
|
|
351
|
+
function ko(e) {
|
|
352
|
+
var t = this.__data__, n = et(t, e);
|
|
221
353
|
return n < 0 ? void 0 : t[n][1];
|
|
222
354
|
}
|
|
223
|
-
function
|
|
224
|
-
return
|
|
355
|
+
function Vo(e) {
|
|
356
|
+
return et(this.__data__, e) > -1;
|
|
225
357
|
}
|
|
226
|
-
function
|
|
227
|
-
var n = this.__data__,
|
|
228
|
-
return
|
|
358
|
+
function Lo(e, t) {
|
|
359
|
+
var n = this.__data__, o = et(n, e);
|
|
360
|
+
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
229
361
|
}
|
|
230
|
-
function
|
|
362
|
+
function ce(e) {
|
|
231
363
|
var t = -1, n = e == null ? 0 : e.length;
|
|
232
364
|
for (this.clear(); ++t < n; ) {
|
|
233
|
-
var
|
|
234
|
-
this.set(
|
|
365
|
+
var o = e[t];
|
|
366
|
+
this.set(o[0], o[1]);
|
|
235
367
|
}
|
|
236
368
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
var
|
|
243
|
-
function
|
|
369
|
+
ce.prototype.clear = Ro;
|
|
370
|
+
ce.prototype.delete = Ao;
|
|
371
|
+
ce.prototype.get = ko;
|
|
372
|
+
ce.prototype.has = Vo;
|
|
373
|
+
ce.prototype.set = Lo;
|
|
374
|
+
var Le = Ee(oe, "Map");
|
|
375
|
+
function Mo() {
|
|
244
376
|
this.size = 0, this.__data__ = {
|
|
245
|
-
hash: new
|
|
246
|
-
map: new (
|
|
247
|
-
string: new
|
|
377
|
+
hash: new Te(),
|
|
378
|
+
map: new (Le || ce)(),
|
|
379
|
+
string: new Te()
|
|
248
380
|
};
|
|
249
381
|
}
|
|
250
|
-
function
|
|
382
|
+
function jo(e) {
|
|
251
383
|
var t = typeof e;
|
|
252
384
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
253
385
|
}
|
|
254
|
-
function
|
|
386
|
+
function tt(e, t) {
|
|
255
387
|
var n = e.__data__;
|
|
256
|
-
return
|
|
257
|
-
}
|
|
258
|
-
function Mo(e) {
|
|
259
|
-
var t = Je(this, e).delete(e);
|
|
260
|
-
return this.size -= t ? 1 : 0, t;
|
|
388
|
+
return jo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
261
389
|
}
|
|
262
390
|
function Do(e) {
|
|
263
|
-
|
|
391
|
+
var t = tt(this, e).delete(e);
|
|
392
|
+
return this.size -= t ? 1 : 0, t;
|
|
264
393
|
}
|
|
265
394
|
function Uo(e) {
|
|
266
|
-
return
|
|
395
|
+
return tt(this, e).get(e);
|
|
267
396
|
}
|
|
268
|
-
function
|
|
269
|
-
|
|
270
|
-
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
397
|
+
function No(e) {
|
|
398
|
+
return tt(this, e).has(e);
|
|
271
399
|
}
|
|
272
|
-
function
|
|
400
|
+
function Bo(e, t) {
|
|
401
|
+
var n = tt(this, e), o = n.size;
|
|
402
|
+
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
403
|
+
}
|
|
404
|
+
function fe(e) {
|
|
273
405
|
var t = -1, n = e == null ? 0 : e.length;
|
|
274
406
|
for (this.clear(); ++t < n; ) {
|
|
275
|
-
var
|
|
276
|
-
this.set(
|
|
407
|
+
var o = e[t];
|
|
408
|
+
this.set(o[0], o[1]);
|
|
277
409
|
}
|
|
278
410
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
411
|
+
fe.prototype.clear = Mo;
|
|
412
|
+
fe.prototype.delete = Do;
|
|
413
|
+
fe.prototype.get = Uo;
|
|
414
|
+
fe.prototype.has = No;
|
|
415
|
+
fe.prototype.set = Bo;
|
|
416
|
+
var Fo = "Expected a function";
|
|
417
|
+
function Ot(e, t) {
|
|
418
|
+
if (typeof e != "function" || t != null && typeof t != "function")
|
|
419
|
+
throw new TypeError(Fo);
|
|
420
|
+
var n = function() {
|
|
421
|
+
var o = arguments, i = t ? t.apply(this, o) : o[0], a = n.cache;
|
|
422
|
+
if (a.has(i))
|
|
423
|
+
return a.get(i);
|
|
424
|
+
var d = e.apply(this, o);
|
|
425
|
+
return n.cache = a.set(i, d) || a, d;
|
|
426
|
+
};
|
|
427
|
+
return n.cache = new (Ot.Cache || fe)(), n;
|
|
428
|
+
}
|
|
429
|
+
Ot.Cache = fe;
|
|
430
|
+
var Ho = 500;
|
|
431
|
+
function Ko(e) {
|
|
432
|
+
var t = Ot(e, function(o) {
|
|
433
|
+
return n.size === Ho && n.clear(), o;
|
|
434
|
+
}), n = t.cache;
|
|
435
|
+
return t;
|
|
436
|
+
}
|
|
437
|
+
var zo = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, qo = /\\(\\)?/g, Wo = Ko(function(e) {
|
|
438
|
+
var t = [];
|
|
439
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(zo, function(n, o, i, a) {
|
|
440
|
+
t.push(i ? a.replace(qo, "$1") : o || n);
|
|
441
|
+
}), t;
|
|
442
|
+
});
|
|
443
|
+
function Go(e) {
|
|
444
|
+
return e == null ? "" : vn(e);
|
|
445
|
+
}
|
|
446
|
+
function Ct(e, t) {
|
|
447
|
+
return ue(e) ? e : _o(e, t) ? [e] : Wo(Go(e));
|
|
448
|
+
}
|
|
449
|
+
function kn(e) {
|
|
450
|
+
if (typeof e == "string" || wt(e))
|
|
451
|
+
return e;
|
|
452
|
+
var t = e + "";
|
|
453
|
+
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
454
|
+
}
|
|
455
|
+
function Jo(e, t) {
|
|
456
|
+
t = Ct(t, e);
|
|
457
|
+
for (var n = 0, o = t.length; e != null && n < o; )
|
|
458
|
+
e = e[kn(t[n++])];
|
|
459
|
+
return n && n == o ? e : void 0;
|
|
460
|
+
}
|
|
461
|
+
function It(e, t) {
|
|
462
|
+
for (var n = -1, o = t.length, i = e.length; ++n < o; )
|
|
463
|
+
e[i + n] = t[n];
|
|
287
464
|
return e;
|
|
288
465
|
}
|
|
289
|
-
|
|
290
|
-
|
|
466
|
+
var Nt = J ? J.isConcatSpreadable : void 0;
|
|
467
|
+
function Yo(e) {
|
|
468
|
+
return ue(e) || In(e) || !!(Nt && e && e[Nt]);
|
|
469
|
+
}
|
|
470
|
+
function Xo(e, t, n, o, i) {
|
|
471
|
+
var a = -1, d = e.length;
|
|
472
|
+
for (n || (n = Yo), i || (i = []); ++a < d; ) {
|
|
473
|
+
var f = e[a];
|
|
474
|
+
n(f) ? It(i, f) : i[i.length] = f;
|
|
475
|
+
}
|
|
476
|
+
return i;
|
|
477
|
+
}
|
|
478
|
+
function Qo(e) {
|
|
479
|
+
var t = e == null ? 0 : e.length;
|
|
480
|
+
return t ? Xo(e) : [];
|
|
481
|
+
}
|
|
482
|
+
function Zo(e) {
|
|
483
|
+
return fr(hr(e, void 0, Qo), e + "");
|
|
291
484
|
}
|
|
292
|
-
|
|
485
|
+
var Vn = An(Object.getPrototypeOf, Object), ea = "[object Object]", ta = Function.prototype, na = Object.prototype, Ln = ta.toString, ia = na.hasOwnProperty, ra = Ln.call(Object);
|
|
486
|
+
function oa(e) {
|
|
487
|
+
if (!de(e) || we(e) != ea)
|
|
488
|
+
return !1;
|
|
489
|
+
var t = Vn(e);
|
|
490
|
+
if (t === null)
|
|
491
|
+
return !0;
|
|
492
|
+
var n = ia.call(t, "constructor") && t.constructor;
|
|
493
|
+
return typeof n == "function" && n instanceof n && Ln.call(n) == ra;
|
|
494
|
+
}
|
|
495
|
+
function aa(e, t, n) {
|
|
496
|
+
var o = -1, i = e.length;
|
|
497
|
+
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;
|
|
498
|
+
for (var a = Array(i); ++o < i; )
|
|
499
|
+
a[o] = e[o + t];
|
|
500
|
+
return a;
|
|
501
|
+
}
|
|
502
|
+
function la() {
|
|
503
|
+
this.__data__ = new ce(), this.size = 0;
|
|
504
|
+
}
|
|
505
|
+
function sa(e) {
|
|
293
506
|
var t = this.__data__, n = t.delete(e);
|
|
294
507
|
return this.size = t.size, n;
|
|
295
508
|
}
|
|
296
|
-
function
|
|
509
|
+
function da(e) {
|
|
297
510
|
return this.__data__.get(e);
|
|
298
511
|
}
|
|
299
|
-
function
|
|
512
|
+
function ua(e) {
|
|
300
513
|
return this.__data__.has(e);
|
|
301
514
|
}
|
|
302
|
-
var
|
|
303
|
-
function
|
|
515
|
+
var ca = 200;
|
|
516
|
+
function fa(e, t) {
|
|
304
517
|
var n = this.__data__;
|
|
305
|
-
if (n instanceof
|
|
306
|
-
var
|
|
307
|
-
if (!
|
|
308
|
-
return
|
|
309
|
-
n = this.__data__ = new
|
|
518
|
+
if (n instanceof ce) {
|
|
519
|
+
var o = n.__data__;
|
|
520
|
+
if (!Le || o.length < ca - 1)
|
|
521
|
+
return o.push([e, t]), this.size = ++n.size, this;
|
|
522
|
+
n = this.__data__ = new fe(o);
|
|
310
523
|
}
|
|
311
524
|
return n.set(e, t), this.size = n.size, this;
|
|
312
525
|
}
|
|
313
|
-
function
|
|
314
|
-
var t = this.__data__ = new
|
|
526
|
+
function se(e) {
|
|
527
|
+
var t = this.__data__ = new ce(e);
|
|
315
528
|
this.size = t.size;
|
|
316
529
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
530
|
+
se.prototype.clear = la;
|
|
531
|
+
se.prototype.delete = sa;
|
|
532
|
+
se.prototype.get = da;
|
|
533
|
+
se.prototype.has = ua;
|
|
534
|
+
se.prototype.set = fa;
|
|
535
|
+
var Mn = typeof exports == "object" && exports && !exports.nodeType && exports, Bt = Mn && typeof module == "object" && module && !module.nodeType && module, pa = Bt && Bt.exports === Mn, Ft = pa ? oe.Buffer : void 0;
|
|
536
|
+
Ft && Ft.allocUnsafe;
|
|
537
|
+
function ma(e, t) {
|
|
538
|
+
return e.slice();
|
|
539
|
+
}
|
|
540
|
+
function ga(e, t) {
|
|
541
|
+
for (var n = -1, o = e == null ? 0 : e.length, i = 0, a = []; ++n < o; ) {
|
|
542
|
+
var d = e[n];
|
|
543
|
+
t(d, n, e) && (a[i++] = d);
|
|
326
544
|
}
|
|
327
545
|
return a;
|
|
328
546
|
}
|
|
329
|
-
function
|
|
547
|
+
function jn() {
|
|
330
548
|
return [];
|
|
331
549
|
}
|
|
332
|
-
var
|
|
333
|
-
return e == null ? [] : (e = Object(e),
|
|
334
|
-
return
|
|
550
|
+
var ba = Object.prototype, _a = ba.propertyIsEnumerable, Ht = Object.getOwnPropertySymbols, Dn = Ht ? function(e) {
|
|
551
|
+
return e == null ? [] : (e = Object(e), ga(Ht(e), function(t) {
|
|
552
|
+
return _a.call(e, t);
|
|
335
553
|
}));
|
|
336
|
-
} :
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
return
|
|
340
|
-
}
|
|
341
|
-
function
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
554
|
+
} : jn, ya = Object.getOwnPropertySymbols, va = ya ? function(e) {
|
|
555
|
+
for (var t = []; e; )
|
|
556
|
+
It(t, Dn(e)), e = Vn(e);
|
|
557
|
+
return t;
|
|
558
|
+
} : jn;
|
|
559
|
+
function Un(e, t, n) {
|
|
560
|
+
var o = t(e);
|
|
561
|
+
return ue(e) ? o : It(o, n(e));
|
|
562
|
+
}
|
|
563
|
+
function Kt(e) {
|
|
564
|
+
return Un(e, so, Dn);
|
|
565
|
+
}
|
|
566
|
+
function Nn(e) {
|
|
567
|
+
return Un(e, mo, va);
|
|
568
|
+
}
|
|
569
|
+
var bt = Ee(oe, "DataView"), _t = Ee(oe, "Promise"), yt = Ee(oe, "Set"), zt = "[object Map]", ha = "[object Object]", qt = "[object Promise]", Wt = "[object Set]", Gt = "[object WeakMap]", Jt = "[object DataView]", Ta = Se(bt), wa = Se(Le), Sa = Se(_t), Ea = Se(yt), Oa = Se(gt), Z = we;
|
|
570
|
+
(bt && Z(new bt(new ArrayBuffer(1))) != Jt || Le && Z(new Le()) != zt || _t && Z(_t.resolve()) != qt || yt && Z(new yt()) != Wt || gt && Z(new gt()) != Gt) && (Z = function(e) {
|
|
571
|
+
var t = we(e), n = t == ha ? e.constructor : void 0, o = n ? Se(n) : "";
|
|
572
|
+
if (o)
|
|
573
|
+
switch (o) {
|
|
574
|
+
case Ta:
|
|
575
|
+
return Jt;
|
|
576
|
+
case wa:
|
|
577
|
+
return zt;
|
|
578
|
+
case Sa:
|
|
579
|
+
return qt;
|
|
580
|
+
case Ea:
|
|
581
|
+
return Wt;
|
|
582
|
+
case Oa:
|
|
583
|
+
return Gt;
|
|
359
584
|
}
|
|
360
585
|
return t;
|
|
361
586
|
});
|
|
362
|
-
var
|
|
363
|
-
function
|
|
364
|
-
|
|
587
|
+
var Ca = Object.prototype, Ia = Ca.hasOwnProperty;
|
|
588
|
+
function xa(e) {
|
|
589
|
+
var t = e.length, n = new e.constructor(t);
|
|
590
|
+
return t && typeof e[0] == "string" && Ia.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
591
|
+
}
|
|
592
|
+
var Ge = oe.Uint8Array;
|
|
593
|
+
function xt(e) {
|
|
594
|
+
var t = new e.constructor(e.byteLength);
|
|
595
|
+
return new Ge(t).set(new Ge(e)), t;
|
|
596
|
+
}
|
|
597
|
+
function Ra(e, t) {
|
|
598
|
+
var n = xt(e.buffer);
|
|
599
|
+
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
600
|
+
}
|
|
601
|
+
var $a = /\w*$/;
|
|
602
|
+
function Pa(e) {
|
|
603
|
+
var t = new e.constructor(e.source, $a.exec(e));
|
|
604
|
+
return t.lastIndex = e.lastIndex, t;
|
|
605
|
+
}
|
|
606
|
+
var Yt = J ? J.prototype : void 0, Xt = Yt ? Yt.valueOf : void 0;
|
|
607
|
+
function Aa(e) {
|
|
608
|
+
return Xt ? Object(Xt.call(e)) : {};
|
|
609
|
+
}
|
|
610
|
+
function ka(e, t) {
|
|
611
|
+
var n = xt(e.buffer);
|
|
612
|
+
return new e.constructor(n, e.byteOffset, e.length);
|
|
613
|
+
}
|
|
614
|
+
var Va = "[object Boolean]", La = "[object Date]", Ma = "[object Map]", ja = "[object Number]", Da = "[object RegExp]", Ua = "[object Set]", Na = "[object String]", Ba = "[object Symbol]", Fa = "[object ArrayBuffer]", Ha = "[object DataView]", Ka = "[object Float32Array]", za = "[object Float64Array]", qa = "[object Int8Array]", Wa = "[object Int16Array]", Ga = "[object Int32Array]", Ja = "[object Uint8Array]", Ya = "[object Uint8ClampedArray]", Xa = "[object Uint16Array]", Qa = "[object Uint32Array]";
|
|
615
|
+
function Za(e, t, n) {
|
|
616
|
+
var o = e.constructor;
|
|
617
|
+
switch (t) {
|
|
618
|
+
case Fa:
|
|
619
|
+
return xt(e);
|
|
620
|
+
case Va:
|
|
621
|
+
case La:
|
|
622
|
+
return new o(+e);
|
|
623
|
+
case Ha:
|
|
624
|
+
return Ra(e);
|
|
625
|
+
case Ka:
|
|
626
|
+
case za:
|
|
627
|
+
case qa:
|
|
628
|
+
case Wa:
|
|
629
|
+
case Ga:
|
|
630
|
+
case Ja:
|
|
631
|
+
case Ya:
|
|
632
|
+
case Xa:
|
|
633
|
+
case Qa:
|
|
634
|
+
return ka(e);
|
|
635
|
+
case Ma:
|
|
636
|
+
return new o();
|
|
637
|
+
case ja:
|
|
638
|
+
case Na:
|
|
639
|
+
return new o(e);
|
|
640
|
+
case Da:
|
|
641
|
+
return Pa(e);
|
|
642
|
+
case Ua:
|
|
643
|
+
return new o();
|
|
644
|
+
case Ba:
|
|
645
|
+
return Aa(e);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
var el = "[object Map]";
|
|
649
|
+
function tl(e) {
|
|
650
|
+
return de(e) && Z(e) == el;
|
|
651
|
+
}
|
|
652
|
+
var Qt = $e && $e.isMap, nl = Qt ? Et(Qt) : tl, il = "[object Set]";
|
|
653
|
+
function rl(e) {
|
|
654
|
+
return de(e) && Z(e) == il;
|
|
655
|
+
}
|
|
656
|
+
var Zt = $e && $e.isSet, ol = Zt ? Et(Zt) : rl, Bn = "[object Arguments]", al = "[object Array]", ll = "[object Boolean]", sl = "[object Date]", dl = "[object Error]", Fn = "[object Function]", ul = "[object GeneratorFunction]", cl = "[object Map]", fl = "[object Number]", Hn = "[object Object]", pl = "[object RegExp]", ml = "[object Set]", gl = "[object String]", bl = "[object Symbol]", _l = "[object WeakMap]", yl = "[object ArrayBuffer]", vl = "[object DataView]", hl = "[object Float32Array]", Tl = "[object Float64Array]", wl = "[object Int8Array]", Sl = "[object Int16Array]", El = "[object Int32Array]", Ol = "[object Uint8Array]", Cl = "[object Uint8ClampedArray]", Il = "[object Uint16Array]", xl = "[object Uint32Array]", P = {};
|
|
657
|
+
P[Bn] = P[al] = P[yl] = P[vl] = P[ll] = P[sl] = P[hl] = P[Tl] = P[wl] = P[Sl] = P[El] = P[cl] = P[fl] = P[Hn] = P[pl] = P[ml] = P[gl] = P[bl] = P[Ol] = P[Cl] = P[Il] = P[xl] = !0;
|
|
658
|
+
P[dl] = P[Fn] = P[_l] = !1;
|
|
659
|
+
function ze(e, t, n, o, i, a) {
|
|
660
|
+
var d;
|
|
661
|
+
if (n && (d = i ? n(e, o, i, a) : n(e)), d !== void 0)
|
|
662
|
+
return d;
|
|
663
|
+
if (!Ze(e))
|
|
664
|
+
return e;
|
|
665
|
+
var f = ue(e);
|
|
666
|
+
if (f)
|
|
667
|
+
d = xa(e);
|
|
668
|
+
else {
|
|
669
|
+
var l = Z(e), u = l == Fn || l == ul;
|
|
670
|
+
if (We(e))
|
|
671
|
+
return ma(e);
|
|
672
|
+
if (l == Hn || l == Bn || u && !i)
|
|
673
|
+
d = {};
|
|
674
|
+
else {
|
|
675
|
+
if (!P[l])
|
|
676
|
+
return i ? e : {};
|
|
677
|
+
d = Za(e, l);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
a || (a = new se());
|
|
681
|
+
var _ = a.get(e);
|
|
682
|
+
if (_)
|
|
683
|
+
return _;
|
|
684
|
+
a.set(e, d), ol(e) ? e.forEach(function(h) {
|
|
685
|
+
d.add(ze(h, t, n, h, e, a));
|
|
686
|
+
}) : nl(e) && e.forEach(function(h, v) {
|
|
687
|
+
d.set(v, ze(h, t, n, v, e, a));
|
|
688
|
+
});
|
|
689
|
+
var S = Nn, y = f ? void 0 : S(e);
|
|
690
|
+
return pr(y || e, function(h, v) {
|
|
691
|
+
y && (v = h, h = e[v]), wn(d, v, ze(h, t, n, v, e, a));
|
|
692
|
+
}), d;
|
|
693
|
+
}
|
|
694
|
+
var Rl = "__lodash_hash_undefined__";
|
|
695
|
+
function $l(e) {
|
|
696
|
+
return this.__data__.set(e, Rl), this;
|
|
365
697
|
}
|
|
366
|
-
function
|
|
698
|
+
function Pl(e) {
|
|
367
699
|
return this.__data__.has(e);
|
|
368
700
|
}
|
|
369
|
-
function
|
|
701
|
+
function Je(e) {
|
|
370
702
|
var t = -1, n = e == null ? 0 : e.length;
|
|
371
|
-
for (this.__data__ = new
|
|
703
|
+
for (this.__data__ = new fe(); ++t < n; )
|
|
372
704
|
this.add(e[t]);
|
|
373
705
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
function
|
|
377
|
-
for (var n = -1,
|
|
706
|
+
Je.prototype.add = Je.prototype.push = $l;
|
|
707
|
+
Je.prototype.has = Pl;
|
|
708
|
+
function Al(e, t) {
|
|
709
|
+
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
|
|
378
710
|
if (t(e[n], n, e))
|
|
379
711
|
return !0;
|
|
380
712
|
return !1;
|
|
381
713
|
}
|
|
382
|
-
function
|
|
714
|
+
function kl(e, t) {
|
|
383
715
|
return e.has(t);
|
|
384
716
|
}
|
|
385
|
-
var
|
|
386
|
-
function
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
717
|
+
var Vl = 1, Ll = 2;
|
|
718
|
+
function Kn(e, t, n, o, i, a) {
|
|
719
|
+
var d = n & Vl, f = e.length, l = t.length;
|
|
720
|
+
if (f != l && !(d && l > f))
|
|
389
721
|
return !1;
|
|
390
|
-
var u = a.get(e),
|
|
391
|
-
if (u &&
|
|
392
|
-
return u == t &&
|
|
393
|
-
var S = -1,
|
|
394
|
-
for (a.set(e, t), a.set(t, e); ++S <
|
|
395
|
-
var v = e[S],
|
|
396
|
-
if (
|
|
397
|
-
var
|
|
398
|
-
if (
|
|
399
|
-
if (
|
|
722
|
+
var u = a.get(e), _ = a.get(t);
|
|
723
|
+
if (u && _)
|
|
724
|
+
return u == t && _ == e;
|
|
725
|
+
var S = -1, y = !0, h = n & Ll ? new Je() : void 0;
|
|
726
|
+
for (a.set(e, t), a.set(t, e); ++S < f; ) {
|
|
727
|
+
var v = e[S], O = t[S];
|
|
728
|
+
if (o)
|
|
729
|
+
var s = d ? o(O, v, S, t, e, a) : o(v, O, S, e, t, a);
|
|
730
|
+
if (s !== void 0) {
|
|
731
|
+
if (s)
|
|
400
732
|
continue;
|
|
401
|
-
|
|
733
|
+
y = !1;
|
|
402
734
|
break;
|
|
403
735
|
}
|
|
404
|
-
if (
|
|
405
|
-
if (!
|
|
406
|
-
if (!
|
|
407
|
-
return
|
|
736
|
+
if (h) {
|
|
737
|
+
if (!Al(t, function(k, m) {
|
|
738
|
+
if (!kl(h, m) && (v === k || i(v, k, n, o, a)))
|
|
739
|
+
return h.push(m);
|
|
408
740
|
})) {
|
|
409
|
-
|
|
741
|
+
y = !1;
|
|
410
742
|
break;
|
|
411
743
|
}
|
|
412
|
-
} else if (!(v ===
|
|
413
|
-
|
|
744
|
+
} else if (!(v === O || i(v, O, n, o, a))) {
|
|
745
|
+
y = !1;
|
|
414
746
|
break;
|
|
415
747
|
}
|
|
416
748
|
}
|
|
417
|
-
return a.delete(e), a.delete(t),
|
|
749
|
+
return a.delete(e), a.delete(t), y;
|
|
418
750
|
}
|
|
419
|
-
function
|
|
751
|
+
function Ml(e) {
|
|
420
752
|
var t = -1, n = Array(e.size);
|
|
421
|
-
return e.forEach(function(
|
|
422
|
-
n[++t] = [
|
|
753
|
+
return e.forEach(function(o, i) {
|
|
754
|
+
n[++t] = [i, o];
|
|
423
755
|
}), n;
|
|
424
756
|
}
|
|
425
|
-
function
|
|
757
|
+
function jl(e) {
|
|
426
758
|
var t = -1, n = Array(e.size);
|
|
427
|
-
return e.forEach(function(
|
|
428
|
-
n[++t] =
|
|
759
|
+
return e.forEach(function(o) {
|
|
760
|
+
n[++t] = o;
|
|
429
761
|
}), n;
|
|
430
762
|
}
|
|
431
|
-
var
|
|
432
|
-
function
|
|
763
|
+
var Dl = 1, Ul = 2, Nl = "[object Boolean]", Bl = "[object Date]", Fl = "[object Error]", Hl = "[object Map]", Kl = "[object Number]", zl = "[object RegExp]", ql = "[object Set]", Wl = "[object String]", Gl = "[object Symbol]", Jl = "[object ArrayBuffer]", Yl = "[object DataView]", en = J ? J.prototype : void 0, dt = en ? en.valueOf : void 0;
|
|
764
|
+
function Xl(e, t, n, o, i, a, d) {
|
|
433
765
|
switch (n) {
|
|
434
|
-
case
|
|
766
|
+
case Yl:
|
|
435
767
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
436
768
|
return !1;
|
|
437
769
|
e = e.buffer, t = t.buffer;
|
|
438
|
-
case
|
|
439
|
-
return !(e.byteLength != t.byteLength || !a(new
|
|
440
|
-
case
|
|
441
|
-
case
|
|
442
|
-
case
|
|
443
|
-
return
|
|
444
|
-
case
|
|
770
|
+
case Jl:
|
|
771
|
+
return !(e.byteLength != t.byteLength || !a(new Ge(e), new Ge(t)));
|
|
772
|
+
case Nl:
|
|
773
|
+
case Bl:
|
|
774
|
+
case Kl:
|
|
775
|
+
return St(+e, +t);
|
|
776
|
+
case Fl:
|
|
445
777
|
return e.name == t.name && e.message == t.message;
|
|
446
|
-
case
|
|
447
|
-
case
|
|
778
|
+
case zl:
|
|
779
|
+
case Wl:
|
|
448
780
|
return e == t + "";
|
|
449
|
-
case
|
|
450
|
-
var
|
|
451
|
-
case
|
|
452
|
-
var l =
|
|
453
|
-
if (
|
|
781
|
+
case Hl:
|
|
782
|
+
var f = Ml;
|
|
783
|
+
case ql:
|
|
784
|
+
var l = o & Dl;
|
|
785
|
+
if (f || (f = jl), e.size != t.size && !l)
|
|
454
786
|
return !1;
|
|
455
|
-
var u =
|
|
787
|
+
var u = d.get(e);
|
|
456
788
|
if (u)
|
|
457
789
|
return u == t;
|
|
458
|
-
|
|
459
|
-
var
|
|
460
|
-
return
|
|
461
|
-
case
|
|
462
|
-
if (
|
|
463
|
-
return
|
|
790
|
+
o |= Ul, d.set(e, t);
|
|
791
|
+
var _ = Kn(f(e), f(t), o, i, a, d);
|
|
792
|
+
return d.delete(e), _;
|
|
793
|
+
case Gl:
|
|
794
|
+
if (dt)
|
|
795
|
+
return dt.call(e) == dt.call(t);
|
|
464
796
|
}
|
|
465
797
|
return !1;
|
|
466
798
|
}
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
var
|
|
470
|
-
if (l !=
|
|
799
|
+
var Ql = 1, Zl = Object.prototype, es = Zl.hasOwnProperty;
|
|
800
|
+
function ts(e, t, n, o, i, a) {
|
|
801
|
+
var d = n & Ql, f = Kt(e), l = f.length, u = Kt(t), _ = u.length;
|
|
802
|
+
if (l != _ && !d)
|
|
471
803
|
return !1;
|
|
472
804
|
for (var S = l; S--; ) {
|
|
473
|
-
var
|
|
474
|
-
if (!(
|
|
805
|
+
var y = f[S];
|
|
806
|
+
if (!(d ? y in t : es.call(t, y)))
|
|
475
807
|
return !1;
|
|
476
808
|
}
|
|
477
|
-
var
|
|
478
|
-
if (
|
|
479
|
-
return
|
|
480
|
-
var
|
|
809
|
+
var h = a.get(e), v = a.get(t);
|
|
810
|
+
if (h && v)
|
|
811
|
+
return h == t && v == e;
|
|
812
|
+
var O = !0;
|
|
481
813
|
a.set(e, t), a.set(t, e);
|
|
482
|
-
for (var
|
|
483
|
-
|
|
484
|
-
var
|
|
485
|
-
if (
|
|
486
|
-
var
|
|
487
|
-
if (!(
|
|
488
|
-
|
|
814
|
+
for (var s = d; ++S < l; ) {
|
|
815
|
+
y = f[S];
|
|
816
|
+
var k = e[y], m = t[y];
|
|
817
|
+
if (o)
|
|
818
|
+
var g = d ? o(m, k, y, t, e, a) : o(k, m, y, e, t, a);
|
|
819
|
+
if (!(g === void 0 ? k === m || i(k, m, n, o, a) : g)) {
|
|
820
|
+
O = !1;
|
|
489
821
|
break;
|
|
490
822
|
}
|
|
491
|
-
|
|
823
|
+
s || (s = y == "constructor");
|
|
492
824
|
}
|
|
493
|
-
if (
|
|
494
|
-
var
|
|
495
|
-
|
|
825
|
+
if (O && !s) {
|
|
826
|
+
var I = e.constructor, R = t.constructor;
|
|
827
|
+
I != R && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof R == "function" && R instanceof R) && (O = !1);
|
|
496
828
|
}
|
|
497
|
-
return a.delete(e), a.delete(t),
|
|
498
|
-
}
|
|
499
|
-
var
|
|
500
|
-
function
|
|
501
|
-
var
|
|
502
|
-
l = l ==
|
|
503
|
-
var
|
|
504
|
-
if (
|
|
505
|
-
if (!
|
|
829
|
+
return a.delete(e), a.delete(t), O;
|
|
830
|
+
}
|
|
831
|
+
var ns = 1, tn = "[object Arguments]", nn = "[object Array]", Fe = "[object Object]", is = Object.prototype, rn = is.hasOwnProperty;
|
|
832
|
+
function rs(e, t, n, o, i, a) {
|
|
833
|
+
var d = ue(e), f = ue(t), l = d ? nn : Z(e), u = f ? nn : Z(t);
|
|
834
|
+
l = l == tn ? Fe : l, u = u == tn ? Fe : u;
|
|
835
|
+
var _ = l == Fe, S = u == Fe, y = l == u;
|
|
836
|
+
if (y && We(e)) {
|
|
837
|
+
if (!We(t))
|
|
506
838
|
return !1;
|
|
507
|
-
|
|
839
|
+
d = !0, _ = !1;
|
|
508
840
|
}
|
|
509
|
-
if (
|
|
510
|
-
return a || (a = new
|
|
511
|
-
if (!(n &
|
|
512
|
-
var
|
|
513
|
-
if (
|
|
514
|
-
var
|
|
515
|
-
return a || (a = new
|
|
841
|
+
if (y && !_)
|
|
842
|
+
return a || (a = new se()), d || $n(e) ? Kn(e, t, n, o, i, a) : Xl(e, t, l, n, o, i, a);
|
|
843
|
+
if (!(n & ns)) {
|
|
844
|
+
var h = _ && rn.call(e, "__wrapped__"), v = S && rn.call(t, "__wrapped__");
|
|
845
|
+
if (h || v) {
|
|
846
|
+
var O = h ? e.value() : e, s = v ? t.value() : t;
|
|
847
|
+
return a || (a = new se()), i(O, s, n, o, a);
|
|
516
848
|
}
|
|
517
849
|
}
|
|
518
|
-
return
|
|
850
|
+
return y ? (a || (a = new se()), ts(e, t, n, o, i, a)) : !1;
|
|
851
|
+
}
|
|
852
|
+
function zn(e, t, n, o, i) {
|
|
853
|
+
return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : rs(e, t, n, o, zn, i);
|
|
519
854
|
}
|
|
520
|
-
function
|
|
521
|
-
|
|
855
|
+
function os(e) {
|
|
856
|
+
var t = e == null ? 0 : e.length;
|
|
857
|
+
return t ? e[t - 1] : void 0;
|
|
522
858
|
}
|
|
523
|
-
function
|
|
524
|
-
return
|
|
859
|
+
function as(e, t) {
|
|
860
|
+
return t.length < 2 ? e : Jo(e, aa(t, 0, -1));
|
|
525
861
|
}
|
|
526
|
-
|
|
862
|
+
function ls(e, t) {
|
|
863
|
+
return zn(e, t);
|
|
864
|
+
}
|
|
865
|
+
function ss(e, t) {
|
|
866
|
+
return t = Ct(t, e), e = as(e, t), e == null || delete e[kn(os(t))];
|
|
867
|
+
}
|
|
868
|
+
function ds(e) {
|
|
869
|
+
return oa(e) ? void 0 : e;
|
|
870
|
+
}
|
|
871
|
+
var us = 1, cs = 2, fs = 4, ps = Zo(function(e, t) {
|
|
872
|
+
var n = {};
|
|
873
|
+
if (e == null)
|
|
874
|
+
return n;
|
|
875
|
+
var o = !1;
|
|
876
|
+
t = yn(t, function(a) {
|
|
877
|
+
return a = Ct(a, e), o || (o = a.length > 1), a;
|
|
878
|
+
}), vr(e, Nn(e), n), o && (n = ze(n, us | cs | fs, ds));
|
|
879
|
+
for (var i = t.length; i--; )
|
|
880
|
+
ss(n, t[i]);
|
|
881
|
+
return n;
|
|
882
|
+
});
|
|
883
|
+
const F = [];
|
|
527
884
|
for (let e = 0; e < 256; ++e)
|
|
528
|
-
|
|
529
|
-
function
|
|
530
|
-
return (
|
|
531
|
-
}
|
|
532
|
-
let
|
|
533
|
-
const
|
|
534
|
-
function
|
|
535
|
-
if (!
|
|
885
|
+
F.push((e + 256).toString(16).slice(1));
|
|
886
|
+
function ms(e, t = 0) {
|
|
887
|
+
return (F[e[t + 0]] + F[e[t + 1]] + F[e[t + 2]] + F[e[t + 3]] + "-" + F[e[t + 4]] + F[e[t + 5]] + "-" + F[e[t + 6]] + F[e[t + 7]] + "-" + F[e[t + 8]] + F[e[t + 9]] + "-" + F[e[t + 10]] + F[e[t + 11]] + F[e[t + 12]] + F[e[t + 13]] + F[e[t + 14]] + F[e[t + 15]]).toLowerCase();
|
|
888
|
+
}
|
|
889
|
+
let ut;
|
|
890
|
+
const gs = new Uint8Array(16);
|
|
891
|
+
function bs() {
|
|
892
|
+
if (!ut) {
|
|
536
893
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
537
894
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
538
|
-
|
|
895
|
+
ut = crypto.getRandomValues.bind(crypto);
|
|
539
896
|
}
|
|
540
|
-
return
|
|
897
|
+
return ut(gs);
|
|
541
898
|
}
|
|
542
|
-
const
|
|
543
|
-
function
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
546
|
-
return
|
|
899
|
+
const _s = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), on = { randomUUID: _s };
|
|
900
|
+
function ys(e, t, n) {
|
|
901
|
+
var i;
|
|
902
|
+
if (on.randomUUID && !e)
|
|
903
|
+
return on.randomUUID();
|
|
547
904
|
e = e || {};
|
|
548
|
-
const
|
|
549
|
-
if (
|
|
905
|
+
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? bs();
|
|
906
|
+
if (o.length < 16)
|
|
550
907
|
throw new Error("Random bytes length must be >= 16");
|
|
551
|
-
return
|
|
908
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, ms(o);
|
|
552
909
|
}
|
|
553
|
-
const
|
|
910
|
+
const qn = {
|
|
554
911
|
ip: "127.0.0.1",
|
|
555
912
|
port: 6379
|
|
556
|
-
},
|
|
913
|
+
}, Wn = {
|
|
557
914
|
host: "127.0.0.1",
|
|
558
915
|
port: 6379
|
|
559
|
-
},
|
|
916
|
+
}, Re = w.HOST_PORT_EE, Gn = {
|
|
560
917
|
port: 6379,
|
|
561
918
|
host: "127.0.0.1",
|
|
562
919
|
database: 0,
|
|
@@ -578,19 +935,19 @@ const ln = {
|
|
|
578
935
|
cluster_max_redirections: 0,
|
|
579
936
|
connection_is_proxied: !1,
|
|
580
937
|
timeout: 2e3
|
|
581
|
-
},
|
|
938
|
+
}, Ed = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
582
939
|
__proto__: null,
|
|
583
|
-
DEFAULT_CLUSTER_NODE:
|
|
584
|
-
DEFAULT_FIELDS:
|
|
585
|
-
DEFAULT_REDIS_TYPE:
|
|
586
|
-
DEFAULT_SENTINEL_NODE:
|
|
587
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
940
|
+
DEFAULT_CLUSTER_NODE: qn,
|
|
941
|
+
DEFAULT_FIELDS: Gn,
|
|
942
|
+
DEFAULT_REDIS_TYPE: Re,
|
|
943
|
+
DEFAULT_SENTINEL_NODE: Wn
|
|
944
|
+
}, Symbol.toStringTag, { value: "Module" })), Me = (e) => ({ ...e, id: ys() }), vt = (e) => {
|
|
588
945
|
const { id: t, ...n } = e;
|
|
589
946
|
return n;
|
|
590
|
-
},
|
|
947
|
+
}, Jn = () => Me(Wn), Yn = () => Me(qn), nt = (e) => {
|
|
591
948
|
var t, n;
|
|
592
|
-
return e.type ===
|
|
593
|
-
},
|
|
949
|
+
return e.type === ee.REDIS_CE ? w.HOST_PORT_CE : (t = e.config.sentinel_nodes) != null && t.length ? w.SENTINEL : (n = e.config.cluster_nodes) != null && n.length ? w.CLUSTER : w.HOST_PORT_EE;
|
|
950
|
+
}, Ye = (e) => e === w.HOST_PORT_CE ? ee.REDIS_CE : ee.REDIS_EE, T = {
|
|
594
951
|
int(e, t) {
|
|
595
952
|
return e == null ? t : parseInt(e.toString(), 10);
|
|
596
953
|
},
|
|
@@ -599,21 +956,21 @@ const ln = {
|
|
|
599
956
|
},
|
|
600
957
|
removeIdClusterNodes(e) {
|
|
601
958
|
return e.map((t) => ({
|
|
602
|
-
...
|
|
603
|
-
port:
|
|
959
|
+
...vt(t),
|
|
960
|
+
port: T.int(t.port)
|
|
604
961
|
}));
|
|
605
962
|
},
|
|
606
963
|
removeIdFromSentinelNodes(e) {
|
|
607
964
|
return e.map((t) => ({
|
|
608
|
-
...
|
|
609
|
-
port:
|
|
965
|
+
...vt(t),
|
|
966
|
+
port: T.int(t.port)
|
|
610
967
|
}));
|
|
611
968
|
},
|
|
612
969
|
addIdToClusterNodes(e) {
|
|
613
|
-
return e.map(
|
|
970
|
+
return e.map(Me);
|
|
614
971
|
},
|
|
615
972
|
addIdToSentinelNodes(e) {
|
|
616
|
-
return e.map(
|
|
973
|
+
return e.map(Me);
|
|
617
974
|
},
|
|
618
975
|
removeNullValues(e) {
|
|
619
976
|
const t = { ...e };
|
|
@@ -627,103 +984,103 @@ const ln = {
|
|
|
627
984
|
arrayToString(e, t = ", ") {
|
|
628
985
|
return e ? e.join(t) : "";
|
|
629
986
|
}
|
|
630
|
-
},
|
|
987
|
+
}, Od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
631
988
|
__proto__: null,
|
|
632
|
-
genDefaultClusterNode:
|
|
633
|
-
genDefaultSentinelNode:
|
|
634
|
-
getRedisType:
|
|
635
|
-
mapRedisTypeToPartialType:
|
|
636
|
-
shallowCopyWithId:
|
|
637
|
-
shallowCopyWithoutId:
|
|
638
|
-
standardize:
|
|
639
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
989
|
+
genDefaultClusterNode: Yn,
|
|
990
|
+
genDefaultSentinelNode: Jn,
|
|
991
|
+
getRedisType: nt,
|
|
992
|
+
mapRedisTypeToPartialType: Ye,
|
|
993
|
+
shallowCopyWithId: Me,
|
|
994
|
+
shallowCopyWithoutId: vt,
|
|
995
|
+
standardize: T
|
|
996
|
+
}, Symbol.toStringTag, { value: "Module" })), He = "/v2/control-planes/{controlPlaneId}/core-entities", Ke = "/{workspace}", je = {
|
|
640
997
|
list: {
|
|
641
|
-
konnect: `${
|
|
642
|
-
kongManager: `${
|
|
998
|
+
konnect: `${He}/partials`,
|
|
999
|
+
kongManager: `${Ke}/partials`
|
|
643
1000
|
},
|
|
644
1001
|
form: {
|
|
645
1002
|
konnect: {
|
|
646
|
-
create: `${
|
|
647
|
-
edit: `${
|
|
1003
|
+
create: `${He}/partials`,
|
|
1004
|
+
edit: `${He}/partials/{id}`
|
|
648
1005
|
},
|
|
649
1006
|
kongManager: {
|
|
650
|
-
create: `${
|
|
651
|
-
edit: `${
|
|
1007
|
+
create: `${Ke}/partials`,
|
|
1008
|
+
edit: `${Ke}/partials/{id}`
|
|
652
1009
|
}
|
|
653
1010
|
},
|
|
654
1011
|
links: {
|
|
655
|
-
konnect: `${
|
|
656
|
-
kongManager: `${
|
|
1012
|
+
konnect: `${He}/partials/{id}/links`,
|
|
1013
|
+
kongManager: `${Ke}/partials/{id}/links`
|
|
657
1014
|
}
|
|
658
|
-
},
|
|
659
|
-
const { partialId: t, config: n, defaultRedisType:
|
|
1015
|
+
}, vs = (e) => {
|
|
1016
|
+
const { partialId: t, config: n, defaultRedisType: o = Re } = e, i = !!t, { axiosInstance: a } = Tt(n.axiosRequestConfig), { getMessageFromError: d } = gi(), f = z(() => t ? at.Edit : at.Create), l = sn({
|
|
660
1017
|
fields: {
|
|
661
1018
|
name: "",
|
|
662
1019
|
tags: "",
|
|
663
|
-
type:
|
|
664
|
-
config: JSON.parse(JSON.stringify(
|
|
1020
|
+
type: Ye(o),
|
|
1021
|
+
config: JSON.parse(JSON.stringify(Gn))
|
|
665
1022
|
},
|
|
666
1023
|
readonly: !1,
|
|
667
1024
|
errorMessage: ""
|
|
668
|
-
}), u =
|
|
669
|
-
|
|
670
|
-
l.fields.type =
|
|
1025
|
+
}), u = A(), _ = A(o), S = z(() => _.value === w.HOST_PORT_EE || _.value === w.CLUSTER || _.value === w.SENTINEL);
|
|
1026
|
+
ke(_, (m) => {
|
|
1027
|
+
l.fields.type = Ye(m);
|
|
671
1028
|
});
|
|
672
|
-
const
|
|
673
|
-
var
|
|
674
|
-
if (
|
|
1029
|
+
const y = z(() => {
|
|
1030
|
+
var g, I;
|
|
1031
|
+
if (i && ls(u.value, h.value) || !((g = l.fields.name) != null && g.length))
|
|
675
1032
|
return !1;
|
|
676
|
-
const { config:
|
|
677
|
-
switch (
|
|
678
|
-
case
|
|
679
|
-
case
|
|
680
|
-
return !!
|
|
681
|
-
case
|
|
682
|
-
return !!
|
|
683
|
-
case
|
|
684
|
-
return !!
|
|
1033
|
+
const { config: m } = l.fields;
|
|
1034
|
+
switch (_.value) {
|
|
1035
|
+
case w.HOST_PORT_CE:
|
|
1036
|
+
case w.HOST_PORT_EE:
|
|
1037
|
+
return !!m.host && m.host.length > 0 && !!m.port && m.port > 0;
|
|
1038
|
+
case w.CLUSTER:
|
|
1039
|
+
return !!m.cluster_nodes.length && m.cluster_nodes.every((R) => R.ip.length > 0);
|
|
1040
|
+
case w.SENTINEL:
|
|
1041
|
+
return !!m.sentinel_nodes.length && m.sentinel_nodes.every((R) => R.host.length > 0) && !!((I = m.sentinel_master) != null && I.length) && m.sentinel_role && !!m.sentinel_role.length;
|
|
685
1042
|
default:
|
|
686
1043
|
throw new Error("Invalid redis type");
|
|
687
1044
|
}
|
|
688
|
-
}),
|
|
689
|
-
switch (
|
|
690
|
-
case
|
|
1045
|
+
}), h = z(() => {
|
|
1046
|
+
switch (_.value) {
|
|
1047
|
+
case w.HOST_PORT_CE:
|
|
691
1048
|
return {
|
|
692
1049
|
name: l.fields.name,
|
|
693
1050
|
type: l.fields.type,
|
|
694
|
-
tags:
|
|
1051
|
+
tags: T.stringToArray(l.fields.tags),
|
|
695
1052
|
config: {
|
|
696
1053
|
host: l.fields.config.host,
|
|
697
|
-
port:
|
|
698
|
-
timeout:
|
|
699
|
-
username:
|
|
700
|
-
database:
|
|
701
|
-
password:
|
|
1054
|
+
port: T.int(l.fields.config.port),
|
|
1055
|
+
timeout: T.int(l.fields.config.timeout),
|
|
1056
|
+
username: T.str(l.fields.config.username, null),
|
|
1057
|
+
database: T.int(l.fields.config.database),
|
|
1058
|
+
password: T.str(l.fields.config.password, null),
|
|
702
1059
|
ssl: l.fields.config.ssl,
|
|
703
1060
|
ssl_verify: l.fields.config.ssl_verify,
|
|
704
|
-
server_name:
|
|
1061
|
+
server_name: T.str(l.fields.config.server_name, null)
|
|
705
1062
|
}
|
|
706
1063
|
};
|
|
707
|
-
case
|
|
1064
|
+
case w.HOST_PORT_EE:
|
|
708
1065
|
return {
|
|
709
1066
|
name: l.fields.name,
|
|
710
1067
|
type: l.fields.type,
|
|
711
|
-
tags:
|
|
1068
|
+
tags: T.stringToArray(l.fields.tags),
|
|
712
1069
|
config: {
|
|
713
|
-
connect_timeout:
|
|
1070
|
+
connect_timeout: T.int(l.fields.config.connect_timeout),
|
|
714
1071
|
connection_is_proxied: l.fields.config.connection_is_proxied,
|
|
715
|
-
database:
|
|
1072
|
+
database: T.int(l.fields.config.database),
|
|
716
1073
|
host: l.fields.config.host,
|
|
717
|
-
keepalive_backlog:
|
|
718
|
-
keepalive_pool_size:
|
|
719
|
-
password:
|
|
720
|
-
port:
|
|
721
|
-
read_timeout:
|
|
722
|
-
send_timeout:
|
|
723
|
-
server_name:
|
|
1074
|
+
keepalive_backlog: T.int(l.fields.config.keepalive_backlog),
|
|
1075
|
+
keepalive_pool_size: T.int(l.fields.config.keepalive_pool_size),
|
|
1076
|
+
password: T.str(l.fields.config.password, null),
|
|
1077
|
+
port: T.int(l.fields.config.port),
|
|
1078
|
+
read_timeout: T.int(l.fields.config.read_timeout),
|
|
1079
|
+
send_timeout: T.int(l.fields.config.send_timeout),
|
|
1080
|
+
server_name: T.str(l.fields.config.server_name, null),
|
|
724
1081
|
ssl_verify: l.fields.config.ssl_verify,
|
|
725
1082
|
ssl: l.fields.config.ssl,
|
|
726
|
-
username:
|
|
1083
|
+
username: T.str(l.fields.config.username, null),
|
|
727
1084
|
// reset other EE fields
|
|
728
1085
|
cluster_nodes: null,
|
|
729
1086
|
cluster_max_redirections: null,
|
|
@@ -734,25 +1091,25 @@ const ln = {
|
|
|
734
1091
|
sentinel_password: null
|
|
735
1092
|
}
|
|
736
1093
|
};
|
|
737
|
-
case
|
|
1094
|
+
case w.CLUSTER:
|
|
738
1095
|
return {
|
|
739
1096
|
name: l.fields.name,
|
|
740
1097
|
type: l.fields.type,
|
|
741
|
-
tags:
|
|
1098
|
+
tags: T.stringToArray(l.fields.tags),
|
|
742
1099
|
config: {
|
|
743
|
-
cluster_nodes:
|
|
744
|
-
cluster_max_redirections:
|
|
745
|
-
username:
|
|
746
|
-
password:
|
|
1100
|
+
cluster_nodes: T.removeIdClusterNodes(l.fields.config.cluster_nodes),
|
|
1101
|
+
cluster_max_redirections: T.int(l.fields.config.cluster_max_redirections),
|
|
1102
|
+
username: T.str(l.fields.config.username, null),
|
|
1103
|
+
password: T.str(l.fields.config.password, null),
|
|
747
1104
|
ssl: l.fields.config.ssl,
|
|
748
1105
|
ssl_verify: l.fields.config.ssl_verify,
|
|
749
|
-
server_name:
|
|
750
|
-
connect_timeout:
|
|
751
|
-
database:
|
|
752
|
-
send_timeout:
|
|
753
|
-
read_timeout:
|
|
754
|
-
keepalive_pool_size:
|
|
755
|
-
keepalive_backlog:
|
|
1106
|
+
server_name: T.str(l.fields.config.server_name, null),
|
|
1107
|
+
connect_timeout: T.int(l.fields.config.connect_timeout),
|
|
1108
|
+
database: T.int(l.fields.config.database),
|
|
1109
|
+
send_timeout: T.int(l.fields.config.send_timeout),
|
|
1110
|
+
read_timeout: T.int(l.fields.config.read_timeout),
|
|
1111
|
+
keepalive_pool_size: T.int(l.fields.config.keepalive_pool_size),
|
|
1112
|
+
keepalive_backlog: T.int(l.fields.config.keepalive_backlog),
|
|
756
1113
|
// reset other EE fields
|
|
757
1114
|
connection_is_proxied: null,
|
|
758
1115
|
sentinel_master: null,
|
|
@@ -764,28 +1121,28 @@ const ln = {
|
|
|
764
1121
|
port: null
|
|
765
1122
|
}
|
|
766
1123
|
};
|
|
767
|
-
case
|
|
1124
|
+
case w.SENTINEL:
|
|
768
1125
|
return {
|
|
769
1126
|
name: l.fields.name,
|
|
770
1127
|
type: l.fields.type,
|
|
771
|
-
tags:
|
|
1128
|
+
tags: T.stringToArray(l.fields.tags),
|
|
772
1129
|
config: {
|
|
773
|
-
sentinel_master:
|
|
774
|
-
sentinel_nodes:
|
|
775
|
-
sentinel_role:
|
|
776
|
-
sentinel_username:
|
|
777
|
-
sentinel_password:
|
|
778
|
-
username:
|
|
779
|
-
password:
|
|
1130
|
+
sentinel_master: T.str(l.fields.config.sentinel_master, null),
|
|
1131
|
+
sentinel_nodes: T.removeIdFromSentinelNodes(l.fields.config.sentinel_nodes),
|
|
1132
|
+
sentinel_role: T.str(l.fields.config.sentinel_role, null),
|
|
1133
|
+
sentinel_username: T.str(l.fields.config.sentinel_username, null),
|
|
1134
|
+
sentinel_password: T.str(l.fields.config.sentinel_password, null),
|
|
1135
|
+
username: T.str(l.fields.config.username, null),
|
|
1136
|
+
password: T.str(l.fields.config.password, null),
|
|
780
1137
|
ssl: l.fields.config.ssl,
|
|
781
1138
|
ssl_verify: l.fields.config.ssl_verify,
|
|
782
|
-
server_name:
|
|
783
|
-
database:
|
|
784
|
-
connect_timeout:
|
|
785
|
-
send_timeout:
|
|
786
|
-
read_timeout:
|
|
787
|
-
keepalive_pool_size:
|
|
788
|
-
keepalive_backlog:
|
|
1139
|
+
server_name: T.str(l.fields.config.server_name, null),
|
|
1140
|
+
database: T.int(l.fields.config.database),
|
|
1141
|
+
connect_timeout: T.int(l.fields.config.connect_timeout),
|
|
1142
|
+
send_timeout: T.int(l.fields.config.send_timeout),
|
|
1143
|
+
read_timeout: T.int(l.fields.config.read_timeout),
|
|
1144
|
+
keepalive_pool_size: T.int(l.fields.config.keepalive_pool_size),
|
|
1145
|
+
keepalive_backlog: T.int(l.fields.config.keepalive_backlog),
|
|
789
1146
|
// reset other EE fields
|
|
790
1147
|
connection_is_proxied: null,
|
|
791
1148
|
cluster_nodes: null,
|
|
@@ -797,44 +1154,44 @@ const ln = {
|
|
|
797
1154
|
default:
|
|
798
1155
|
throw new Error("Invalid redis type");
|
|
799
1156
|
}
|
|
800
|
-
}), v =
|
|
801
|
-
let
|
|
802
|
-
return n.app === "konnect" ?
|
|
803
|
-
}),
|
|
804
|
-
var
|
|
805
|
-
return (
|
|
1157
|
+
}), v = z(() => {
|
|
1158
|
+
let m = `${n.apiBaseUrl}${je.form[n.app][f.value]}`;
|
|
1159
|
+
return n.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, (n == null ? void 0 : n.controlPlaneId) || "") : n.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, n != null && n.workspace ? `/${n.workspace}` : "")), m = m.replace(/{id}/gi, t || ""), m;
|
|
1160
|
+
}), O = z(() => {
|
|
1161
|
+
var m;
|
|
1162
|
+
return (m = je.form[n == null ? void 0 : n.app]) == null ? void 0 : m.edit;
|
|
806
1163
|
});
|
|
807
1164
|
return {
|
|
808
1165
|
form: l,
|
|
809
|
-
canSubmit:
|
|
810
|
-
payload:
|
|
811
|
-
isEdit:
|
|
812
|
-
redisType:
|
|
1166
|
+
canSubmit: y,
|
|
1167
|
+
payload: h,
|
|
1168
|
+
isEdit: i,
|
|
1169
|
+
redisType: _,
|
|
813
1170
|
redisTypeIsEnterprise: S,
|
|
814
|
-
formType:
|
|
815
|
-
fetchUrl:
|
|
1171
|
+
formType: f,
|
|
1172
|
+
fetchUrl: O,
|
|
816
1173
|
submit: async () => {
|
|
817
1174
|
try {
|
|
818
1175
|
l.readonly = !0, l.errorMessage = "";
|
|
819
|
-
let
|
|
820
|
-
return n.app === "konnect" && (
|
|
821
|
-
...
|
|
822
|
-
config:
|
|
823
|
-
}),
|
|
824
|
-
} catch (
|
|
825
|
-
throw l.errorMessage = m
|
|
1176
|
+
let m = h.value;
|
|
1177
|
+
return n.app === "konnect" && (m = {
|
|
1178
|
+
...m,
|
|
1179
|
+
config: T.removeNullValues(m.config)
|
|
1180
|
+
}), f.value === at.Create ? await a.post(v.value, m) : n.app === "konnect" ? await a.put(v.value, m) : await a.patch(v.value, m);
|
|
1181
|
+
} catch (m) {
|
|
1182
|
+
throw l.errorMessage = d(m), l.readonly = !1, m;
|
|
826
1183
|
}
|
|
827
1184
|
},
|
|
828
|
-
setInitialFormValues: (
|
|
1185
|
+
setInitialFormValues: (m) => {
|
|
829
1186
|
l.fields.config = Object.assign(
|
|
830
1187
|
{},
|
|
831
1188
|
l.fields.config,
|
|
832
|
-
|
|
1189
|
+
T.removeNullValues(m.config)
|
|
833
1190
|
// remove null values if data, so they can be replaced with default values
|
|
834
|
-
), l.fields.config.sentinel_nodes =
|
|
1191
|
+
), l.fields.config.sentinel_nodes = T.addIdToSentinelNodes(m.config.sentinel_nodes ?? []), l.fields.config.cluster_nodes = T.addIdToClusterNodes(m.config.cluster_nodes ?? []), l.fields.name = m.name, l.fields.type = m.type, l.fields.tags = T.arrayToString(m.tags), _.value = nt(m), u.value = JSON.parse(JSON.stringify(h.value));
|
|
835
1192
|
}
|
|
836
1193
|
};
|
|
837
|
-
},
|
|
1194
|
+
}, hs = { class: "array-card-container" }, Ts = /* @__PURE__ */ te({
|
|
838
1195
|
__name: "FieldArrayCardContainer",
|
|
839
1196
|
props: {
|
|
840
1197
|
model: {
|
|
@@ -857,34 +1214,34 @@ const ln = {
|
|
|
857
1214
|
emits: ["remove-item"],
|
|
858
1215
|
setup(e) {
|
|
859
1216
|
return (t, n) => {
|
|
860
|
-
const
|
|
861
|
-
return
|
|
862
|
-
p(
|
|
863
|
-
default:
|
|
864
|
-
|
|
1217
|
+
const o = U("KCard"), i = U("KButton");
|
|
1218
|
+
return $(), G("div", hs, [
|
|
1219
|
+
p(o, { class: "card" }, {
|
|
1220
|
+
default: E(() => [
|
|
1221
|
+
ri(t.$slots, "default", {}, void 0, !0)
|
|
865
1222
|
]),
|
|
866
1223
|
_: 3
|
|
867
1224
|
}),
|
|
868
|
-
p(
|
|
1225
|
+
p(i, {
|
|
869
1226
|
appearance: "tertiary",
|
|
870
1227
|
class: "array-card-remove-button",
|
|
871
1228
|
disabled: e.disabled,
|
|
872
1229
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
873
1230
|
}, {
|
|
874
|
-
default:
|
|
875
|
-
p(
|
|
1231
|
+
default: E(() => [
|
|
1232
|
+
p(r(Ci))
|
|
876
1233
|
]),
|
|
877
1234
|
_: 1
|
|
878
1235
|
}, 8, ["disabled"])
|
|
879
1236
|
]);
|
|
880
1237
|
};
|
|
881
1238
|
}
|
|
882
|
-
}),
|
|
1239
|
+
}), pe = (e, t) => {
|
|
883
1240
|
const n = e.__vccOpts || e;
|
|
884
|
-
for (const [
|
|
885
|
-
n[
|
|
1241
|
+
for (const [o, i] of t)
|
|
1242
|
+
n[o] = i;
|
|
886
1243
|
return n;
|
|
887
|
-
},
|
|
1244
|
+
}, Xn = /* @__PURE__ */ pe(Ts, [["__scopeId", "data-v-a0b2e4fb"]]), ws = {
|
|
888
1245
|
create: "New Redis Configuration",
|
|
889
1246
|
copy_id: "Copy ID",
|
|
890
1247
|
copy_json: "Copy JSON",
|
|
@@ -895,17 +1252,17 @@ const ln = {
|
|
|
895
1252
|
loading: "Loading...",
|
|
896
1253
|
view_plugin: "View Plugin",
|
|
897
1254
|
close: "Close"
|
|
898
|
-
},
|
|
1255
|
+
}, Ss = {
|
|
899
1256
|
placeholder: "Filter by name",
|
|
900
1257
|
placeholder_for_exact_match: "Filter by exact ID",
|
|
901
1258
|
no_results: "No results found"
|
|
902
|
-
},
|
|
1259
|
+
}, Es = {
|
|
903
1260
|
copy: "Failed to copy to clipboard",
|
|
904
1261
|
general: "Redis configuration could not be retrieved",
|
|
905
1262
|
delete: "The redis configuration could not be deleted at this time."
|
|
906
|
-
},
|
|
1263
|
+
}, Os = {
|
|
907
1264
|
success: "Copied {val} to clipboard"
|
|
908
|
-
},
|
|
1265
|
+
}, Cs = {
|
|
909
1266
|
sections: {
|
|
910
1267
|
type: {
|
|
911
1268
|
title: "Redis type",
|
|
@@ -1085,19 +1442,19 @@ const ln = {
|
|
|
1085
1442
|
plugin_count: "{count} plugin(s)",
|
|
1086
1443
|
confirm: "Confirm"
|
|
1087
1444
|
}
|
|
1088
|
-
},
|
|
1445
|
+
}, Is = {
|
|
1089
1446
|
title: "Associated plugins ({count})",
|
|
1090
1447
|
headers: {
|
|
1091
1448
|
plugin: "Plugin",
|
|
1092
1449
|
instance_name: "Name"
|
|
1093
1450
|
}
|
|
1094
|
-
},
|
|
1451
|
+
}, xs = {
|
|
1095
1452
|
title: "Redis Configurations",
|
|
1096
1453
|
empty_state: {
|
|
1097
1454
|
title: "Configure a Redis Configuration",
|
|
1098
1455
|
description: "Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."
|
|
1099
1456
|
}
|
|
1100
|
-
},
|
|
1457
|
+
}, Rs = {
|
|
1101
1458
|
action: "New configuration",
|
|
1102
1459
|
table_headers: {
|
|
1103
1460
|
name: "Name",
|
|
@@ -1116,34 +1473,34 @@ const ln = {
|
|
|
1116
1473
|
description: "Edits to your configuration will be cascaded automatically to all associated plugins."
|
|
1117
1474
|
}
|
|
1118
1475
|
}
|
|
1119
|
-
},
|
|
1120
|
-
actions:
|
|
1121
|
-
search:
|
|
1476
|
+
}, $s = {
|
|
1477
|
+
actions: ws,
|
|
1478
|
+
search: Ss,
|
|
1122
1479
|
delete: {
|
|
1123
1480
|
title: "Delete Redis configuration",
|
|
1124
1481
|
description: "You’re about to delete this item. Are you sure you want to proceed?",
|
|
1125
1482
|
warning: "To delete this configuration, first remove it from all associated plugins."
|
|
1126
1483
|
},
|
|
1127
|
-
errors:
|
|
1128
|
-
copy:
|
|
1129
|
-
form:
|
|
1130
|
-
linked_plugins_modal:
|
|
1131
|
-
redis:
|
|
1132
|
-
list:
|
|
1484
|
+
errors: Es,
|
|
1485
|
+
copy: Os,
|
|
1486
|
+
form: Cs,
|
|
1487
|
+
linked_plugins_modal: Is,
|
|
1488
|
+
redis: xs,
|
|
1489
|
+
list: Rs
|
|
1133
1490
|
};
|
|
1134
|
-
function
|
|
1135
|
-
const e =
|
|
1491
|
+
function Ps() {
|
|
1492
|
+
const e = $i("en-us", $s);
|
|
1136
1493
|
return {
|
|
1137
1494
|
i18n: e,
|
|
1138
|
-
i18nT:
|
|
1495
|
+
i18nT: Pi(e)
|
|
1139
1496
|
// Translation component <i18n-t>
|
|
1140
1497
|
};
|
|
1141
1498
|
}
|
|
1142
|
-
const
|
|
1143
|
-
useI18n:
|
|
1144
|
-
},
|
|
1499
|
+
const be = {
|
|
1500
|
+
useI18n: Ps
|
|
1501
|
+
}, As = { class: "cluster-node-items" }, ks = /* @__PURE__ */ te({
|
|
1145
1502
|
__name: "ClusterNodes",
|
|
1146
|
-
props: /* @__PURE__ */
|
|
1503
|
+
props: /* @__PURE__ */ dn({
|
|
1147
1504
|
readonly: { type: Boolean }
|
|
1148
1505
|
}, {
|
|
1149
1506
|
modelValue: { required: !0 },
|
|
@@ -1151,40 +1508,40 @@ const pe = {
|
|
|
1151
1508
|
}),
|
|
1152
1509
|
emits: ["update:modelValue"],
|
|
1153
1510
|
setup(e) {
|
|
1154
|
-
const t =
|
|
1155
|
-
t.value.push(
|
|
1156
|
-
},
|
|
1511
|
+
const t = un(e, "modelValue"), { i18n: { t: n } } = be.useI18n(), o = () => {
|
|
1512
|
+
t.value.push(Yn());
|
|
1513
|
+
}, i = (a) => {
|
|
1157
1514
|
t.value.splice(a, 1);
|
|
1158
1515
|
};
|
|
1159
|
-
return (a,
|
|
1160
|
-
const
|
|
1161
|
-
return
|
|
1162
|
-
p(
|
|
1516
|
+
return (a, d) => {
|
|
1517
|
+
const f = U("KLabel"), l = U("KInput"), u = U("KButton");
|
|
1518
|
+
return $(), G("div", null, [
|
|
1519
|
+
p(f, {
|
|
1163
1520
|
class: "required",
|
|
1164
|
-
info:
|
|
1521
|
+
info: r(n)("form.fields.cluster_nodes.tooltip"),
|
|
1165
1522
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1166
1523
|
}, {
|
|
1167
|
-
default:
|
|
1168
|
-
|
|
1524
|
+
default: E(() => [
|
|
1525
|
+
re(H(r(n)("form.fields.cluster_nodes.title")), 1)
|
|
1169
1526
|
]),
|
|
1170
1527
|
_: 1
|
|
1171
1528
|
}, 8, ["info"]),
|
|
1172
|
-
|
|
1173
|
-
(
|
|
1529
|
+
W("div", null, [
|
|
1530
|
+
($(!0), G(Qe, null, ht(t.value, (_, S) => ($(), K(Xn, {
|
|
1174
1531
|
key: `${S}`,
|
|
1175
1532
|
"data-testid": "redis-cluster-nodes",
|
|
1176
1533
|
disabled: a.readonly,
|
|
1177
|
-
onRemoveItem: (
|
|
1534
|
+
onRemoveItem: (y) => i(S)
|
|
1178
1535
|
}, {
|
|
1179
|
-
default:
|
|
1180
|
-
|
|
1536
|
+
default: E(() => [
|
|
1537
|
+
W("div", As, [
|
|
1181
1538
|
p(l, {
|
|
1182
|
-
modelValue:
|
|
1183
|
-
"onUpdate:modelValue": (
|
|
1539
|
+
modelValue: _.ip,
|
|
1540
|
+
"onUpdate:modelValue": (y) => _.ip = y,
|
|
1184
1541
|
modelModifiers: { trim: !0 },
|
|
1185
|
-
label:
|
|
1542
|
+
label: r(n)("form.fields.cluster_node_ip.label"),
|
|
1186
1543
|
"label-attributes": {
|
|
1187
|
-
info:
|
|
1544
|
+
info: r(n)("form.fields.cluster_node_ip.tooltip"),
|
|
1188
1545
|
tooltipAttributes: { maxWidth: "400" }
|
|
1189
1546
|
},
|
|
1190
1547
|
name: "ip",
|
|
@@ -1192,11 +1549,11 @@ const pe = {
|
|
|
1192
1549
|
required: ""
|
|
1193
1550
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "label-attributes", "readonly"]),
|
|
1194
1551
|
p(l, {
|
|
1195
|
-
modelValue:
|
|
1196
|
-
"onUpdate:modelValue": (
|
|
1197
|
-
label:
|
|
1552
|
+
modelValue: _.port,
|
|
1553
|
+
"onUpdate:modelValue": (y) => _.port = y,
|
|
1554
|
+
label: r(n)("form.fields.cluster_node_port.label"),
|
|
1198
1555
|
"label-attributes": {
|
|
1199
|
-
info:
|
|
1556
|
+
info: r(n)("form.fields.cluster_node_port.tooltip"),
|
|
1200
1557
|
tooltipAttributes: { maxWidth: "400" }
|
|
1201
1558
|
},
|
|
1202
1559
|
name: "port",
|
|
@@ -1211,11 +1568,11 @@ const pe = {
|
|
|
1211
1568
|
appearance: "tertiary",
|
|
1212
1569
|
"data-testid": "redis-add-cluster-node-button",
|
|
1213
1570
|
disabled: a.readonly,
|
|
1214
|
-
onClick:
|
|
1571
|
+
onClick: o
|
|
1215
1572
|
}, {
|
|
1216
|
-
default:
|
|
1217
|
-
p(
|
|
1218
|
-
|
|
1573
|
+
default: E(() => [
|
|
1574
|
+
p(r(mn)),
|
|
1575
|
+
W("span", null, H(r(n)("form.fields.cluster_nodes.add_button")), 1)
|
|
1219
1576
|
]),
|
|
1220
1577
|
_: 1
|
|
1221
1578
|
}, 8, ["disabled"])
|
|
@@ -1223,9 +1580,9 @@ const pe = {
|
|
|
1223
1580
|
]);
|
|
1224
1581
|
};
|
|
1225
1582
|
}
|
|
1226
|
-
}),
|
|
1583
|
+
}), Vs = /* @__PURE__ */ pe(ks, [["__scopeId", "data-v-776a626d"]]), Ls = { class: "sentinel-node-items" }, Ms = /* @__PURE__ */ te({
|
|
1227
1584
|
__name: "SentinelNodes",
|
|
1228
|
-
props: /* @__PURE__ */
|
|
1585
|
+
props: /* @__PURE__ */ dn({
|
|
1229
1586
|
readonly: { type: Boolean }
|
|
1230
1587
|
}, {
|
|
1231
1588
|
modelValue: { required: !0 },
|
|
@@ -1233,40 +1590,40 @@ const pe = {
|
|
|
1233
1590
|
}),
|
|
1234
1591
|
emits: ["update:modelValue"],
|
|
1235
1592
|
setup(e) {
|
|
1236
|
-
const t =
|
|
1237
|
-
t.value.push(
|
|
1238
|
-
},
|
|
1593
|
+
const t = un(e, "modelValue"), { i18n: { t: n } } = be.useI18n(), o = () => {
|
|
1594
|
+
t.value.push(Jn());
|
|
1595
|
+
}, i = (a) => {
|
|
1239
1596
|
t.value.splice(a, 1);
|
|
1240
1597
|
};
|
|
1241
|
-
return (a,
|
|
1242
|
-
const
|
|
1243
|
-
return
|
|
1244
|
-
p(
|
|
1598
|
+
return (a, d) => {
|
|
1599
|
+
const f = U("KLabel"), l = U("KInput"), u = U("KButton");
|
|
1600
|
+
return $(), G("div", null, [
|
|
1601
|
+
p(f, {
|
|
1245
1602
|
class: "required",
|
|
1246
|
-
info:
|
|
1603
|
+
info: r(n)("form.fields.sentinel_nodes.tooltip"),
|
|
1247
1604
|
"tooltip-attributes": { maxWidth: "400" }
|
|
1248
1605
|
}, {
|
|
1249
|
-
default:
|
|
1250
|
-
|
|
1606
|
+
default: E(() => [
|
|
1607
|
+
re(H(r(n)("form.fields.sentinel_nodes.title")), 1)
|
|
1251
1608
|
]),
|
|
1252
1609
|
_: 1
|
|
1253
1610
|
}, 8, ["info"]),
|
|
1254
|
-
|
|
1255
|
-
(
|
|
1256
|
-
key:
|
|
1611
|
+
W("div", null, [
|
|
1612
|
+
($(!0), G(Qe, null, ht(t.value, (_, S) => ($(), K(Xn, {
|
|
1613
|
+
key: _.id,
|
|
1257
1614
|
"data-testid": "redis-sentinel-nodes",
|
|
1258
1615
|
disabled: a.readonly,
|
|
1259
|
-
onRemoveItem: (
|
|
1616
|
+
onRemoveItem: (y) => i(S)
|
|
1260
1617
|
}, {
|
|
1261
|
-
default:
|
|
1262
|
-
|
|
1618
|
+
default: E(() => [
|
|
1619
|
+
W("div", Ls, [
|
|
1263
1620
|
p(l, {
|
|
1264
|
-
modelValue:
|
|
1265
|
-
"onUpdate:modelValue": (
|
|
1621
|
+
modelValue: _.host,
|
|
1622
|
+
"onUpdate:modelValue": (y) => _.host = y,
|
|
1266
1623
|
modelModifiers: { trim: !0 },
|
|
1267
|
-
label:
|
|
1624
|
+
label: r(n)("form.fields.sentinel_node_host.label"),
|
|
1268
1625
|
"label-attributes": {
|
|
1269
|
-
info:
|
|
1626
|
+
info: r(n)("form.fields.sentinel_node_host.tooltip"),
|
|
1270
1627
|
tooltipAttributes: { maxWidth: "400" }
|
|
1271
1628
|
},
|
|
1272
1629
|
name: "host",
|
|
@@ -1274,11 +1631,11 @@ const pe = {
|
|
|
1274
1631
|
required: ""
|
|
1275
1632
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "label-attributes", "readonly"]),
|
|
1276
1633
|
p(l, {
|
|
1277
|
-
modelValue:
|
|
1278
|
-
"onUpdate:modelValue": (
|
|
1279
|
-
label:
|
|
1634
|
+
modelValue: _.port,
|
|
1635
|
+
"onUpdate:modelValue": (y) => _.port = y,
|
|
1636
|
+
label: r(n)("form.fields.sentinel_node_port.label"),
|
|
1280
1637
|
"label-attributes": {
|
|
1281
|
-
info:
|
|
1638
|
+
info: r(n)("form.fields.sentinel_node_port.tooltip"),
|
|
1282
1639
|
tooltipAttributes: { maxWidth: "400" }
|
|
1283
1640
|
},
|
|
1284
1641
|
name: "port",
|
|
@@ -1293,11 +1650,11 @@ const pe = {
|
|
|
1293
1650
|
appearance: "tertiary",
|
|
1294
1651
|
"data-testid": "redis-add-sentinel-node-button",
|
|
1295
1652
|
disabled: a.readonly,
|
|
1296
|
-
onClick:
|
|
1653
|
+
onClick: o
|
|
1297
1654
|
}, {
|
|
1298
|
-
default:
|
|
1299
|
-
p(
|
|
1300
|
-
|
|
1655
|
+
default: E(() => [
|
|
1656
|
+
p(r(mn)),
|
|
1657
|
+
W("span", null, H(r(n)("form.fields.sentinel_nodes.add_button")), 1)
|
|
1301
1658
|
]),
|
|
1302
1659
|
_: 1
|
|
1303
1660
|
}, 8, ["disabled"])
|
|
@@ -1305,123 +1662,123 @@ const pe = {
|
|
|
1305
1662
|
]);
|
|
1306
1663
|
};
|
|
1307
1664
|
}
|
|
1308
|
-
}),
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1665
|
+
}), js = /* @__PURE__ */ pe(Ms, [["__scopeId", "data-v-cd1c07e2"]]);
|
|
1666
|
+
var ct = /* @__PURE__ */ new WeakMap(), an = 0;
|
|
1667
|
+
function Ds(e) {
|
|
1311
1668
|
if (!e.length)
|
|
1312
1669
|
return "";
|
|
1313
1670
|
for (var t = "arg", n = 0; n < e.length; ++n) {
|
|
1314
|
-
var
|
|
1315
|
-
e[n] === null || typeof e[n] != "object" && typeof e[n] != "function" ? typeof e[n] == "string" ?
|
|
1671
|
+
var o = void 0;
|
|
1672
|
+
e[n] === null || typeof e[n] != "object" && typeof e[n] != "function" ? typeof e[n] == "string" ? o = '"' + e[n] + '"' : o = String(e[n]) : ct.has(e[n]) ? o = ct.get(e[n]) : (o = an, ct.set(e[n], an++)), t += "@" + o;
|
|
1316
1673
|
}
|
|
1317
1674
|
return t;
|
|
1318
1675
|
}
|
|
1319
|
-
function
|
|
1676
|
+
function Us(e) {
|
|
1320
1677
|
if (typeof e == "function")
|
|
1321
1678
|
try {
|
|
1322
1679
|
e = e();
|
|
1323
1680
|
} catch {
|
|
1324
1681
|
e = "";
|
|
1325
1682
|
}
|
|
1326
|
-
return Array.isArray(e) ? e =
|
|
1683
|
+
return Array.isArray(e) ? e = Ds(e) : e = String(e || ""), e;
|
|
1327
1684
|
}
|
|
1328
|
-
var
|
|
1685
|
+
var Rt = (
|
|
1329
1686
|
/** @class */
|
|
1330
1687
|
function() {
|
|
1331
1688
|
function e(t) {
|
|
1332
1689
|
t === void 0 && (t = 0), this.items = /* @__PURE__ */ new Map(), this.ttl = t;
|
|
1333
1690
|
}
|
|
1334
1691
|
return e.prototype.serializeKey = function(t) {
|
|
1335
|
-
return
|
|
1692
|
+
return Us(t);
|
|
1336
1693
|
}, e.prototype.get = function(t) {
|
|
1337
1694
|
var n = this.serializeKey(t);
|
|
1338
1695
|
return this.items.get(n);
|
|
1339
|
-
}, e.prototype.set = function(t, n,
|
|
1340
|
-
var
|
|
1696
|
+
}, e.prototype.set = function(t, n, o) {
|
|
1697
|
+
var i = this.serializeKey(t), a = o || this.ttl, d = Date.now(), f = {
|
|
1341
1698
|
data: n,
|
|
1342
|
-
createdAt:
|
|
1343
|
-
expiresAt: a ?
|
|
1699
|
+
createdAt: d,
|
|
1700
|
+
expiresAt: a ? d + a : 1 / 0
|
|
1344
1701
|
};
|
|
1345
|
-
this.dispatchExpire(a,
|
|
1346
|
-
}, e.prototype.dispatchExpire = function(t, n,
|
|
1347
|
-
var
|
|
1702
|
+
this.dispatchExpire(a, f, i), this.items.set(i, f);
|
|
1703
|
+
}, e.prototype.dispatchExpire = function(t, n, o) {
|
|
1704
|
+
var i = this;
|
|
1348
1705
|
t && setTimeout(function() {
|
|
1349
|
-
var a = Date.now(),
|
|
1350
|
-
|
|
1706
|
+
var a = Date.now(), d = a >= n.expiresAt;
|
|
1707
|
+
d && i.delete(o);
|
|
1351
1708
|
}, t);
|
|
1352
1709
|
}, e.prototype.delete = function(t) {
|
|
1353
1710
|
this.items.delete(t);
|
|
1354
1711
|
}, e;
|
|
1355
1712
|
}()
|
|
1356
1713
|
);
|
|
1357
|
-
function
|
|
1714
|
+
function Ns() {
|
|
1358
1715
|
return typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
1359
1716
|
}
|
|
1360
|
-
function
|
|
1717
|
+
function Bs() {
|
|
1361
1718
|
return typeof document < "u" && typeof document.visibilityState < "u" ? document.visibilityState !== "hidden" : !0;
|
|
1362
1719
|
}
|
|
1363
|
-
var
|
|
1720
|
+
var Fs = function(e) {
|
|
1364
1721
|
return fetch(e).then(function(t) {
|
|
1365
1722
|
return t.json();
|
|
1366
1723
|
});
|
|
1367
1724
|
};
|
|
1368
|
-
const
|
|
1369
|
-
isOnline:
|
|
1370
|
-
isDocumentVisible:
|
|
1371
|
-
fetcher:
|
|
1725
|
+
const ft = {
|
|
1726
|
+
isOnline: Ns,
|
|
1727
|
+
isDocumentVisible: Bs,
|
|
1728
|
+
fetcher: Fs
|
|
1372
1729
|
};
|
|
1373
|
-
var
|
|
1374
|
-
return
|
|
1375
|
-
for (var t, n = 1,
|
|
1730
|
+
var le = function() {
|
|
1731
|
+
return le = Object.assign || function(e) {
|
|
1732
|
+
for (var t, n = 1, o = arguments.length; n < o; n++) {
|
|
1376
1733
|
t = arguments[n];
|
|
1377
|
-
for (var
|
|
1734
|
+
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
1378
1735
|
}
|
|
1379
1736
|
return e;
|
|
1380
|
-
},
|
|
1381
|
-
},
|
|
1382
|
-
function
|
|
1383
|
-
return a instanceof n ? a : new n(function(
|
|
1384
|
-
|
|
1737
|
+
}, le.apply(this, arguments);
|
|
1738
|
+
}, Ie = function(e, t, n, o) {
|
|
1739
|
+
function i(a) {
|
|
1740
|
+
return a instanceof n ? a : new n(function(d) {
|
|
1741
|
+
d(a);
|
|
1385
1742
|
});
|
|
1386
1743
|
}
|
|
1387
|
-
return new (n || (n = Promise))(function(a,
|
|
1388
|
-
function _
|
|
1744
|
+
return new (n || (n = Promise))(function(a, d) {
|
|
1745
|
+
function f(_) {
|
|
1389
1746
|
try {
|
|
1390
|
-
u(
|
|
1747
|
+
u(o.next(_));
|
|
1391
1748
|
} catch (S) {
|
|
1392
|
-
|
|
1749
|
+
d(S);
|
|
1393
1750
|
}
|
|
1394
1751
|
}
|
|
1395
|
-
function l(
|
|
1752
|
+
function l(_) {
|
|
1396
1753
|
try {
|
|
1397
|
-
u(
|
|
1754
|
+
u(o.throw(_));
|
|
1398
1755
|
} catch (S) {
|
|
1399
|
-
|
|
1756
|
+
d(S);
|
|
1400
1757
|
}
|
|
1401
1758
|
}
|
|
1402
|
-
function u(
|
|
1403
|
-
|
|
1759
|
+
function u(_) {
|
|
1760
|
+
_.done ? a(_.value) : i(_.value).then(f, l);
|
|
1404
1761
|
}
|
|
1405
|
-
u((
|
|
1762
|
+
u((o = o.apply(e, t || [])).next());
|
|
1406
1763
|
});
|
|
1407
|
-
},
|
|
1764
|
+
}, xe = function(e, t) {
|
|
1408
1765
|
var n = { label: 0, sent: function() {
|
|
1409
1766
|
if (a[0] & 1) throw a[1];
|
|
1410
1767
|
return a[1];
|
|
1411
|
-
}, trys: [], ops: [] },
|
|
1412
|
-
return
|
|
1768
|
+
}, trys: [], ops: [] }, o, i, a, d;
|
|
1769
|
+
return d = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (d[Symbol.iterator] = function() {
|
|
1413
1770
|
return this;
|
|
1414
|
-
}),
|
|
1415
|
-
function
|
|
1416
|
-
return function(
|
|
1417
|
-
return l([u,
|
|
1771
|
+
}), d;
|
|
1772
|
+
function f(u) {
|
|
1773
|
+
return function(_) {
|
|
1774
|
+
return l([u, _]);
|
|
1418
1775
|
};
|
|
1419
1776
|
}
|
|
1420
1777
|
function l(u) {
|
|
1421
|
-
if (
|
|
1778
|
+
if (o) throw new TypeError("Generator is already executing.");
|
|
1422
1779
|
for (; n; ) try {
|
|
1423
|
-
if (
|
|
1424
|
-
switch (
|
|
1780
|
+
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;
|
|
1781
|
+
switch (i = 0, a && (u = [u[0] & 2, a.value]), u[0]) {
|
|
1425
1782
|
case 0:
|
|
1426
1783
|
case 1:
|
|
1427
1784
|
a = u;
|
|
@@ -1429,7 +1786,7 @@ var ie = function() {
|
|
|
1429
1786
|
case 4:
|
|
1430
1787
|
return n.label++, { value: u[1], done: !1 };
|
|
1431
1788
|
case 5:
|
|
1432
|
-
n.label++,
|
|
1789
|
+
n.label++, i = u[1], u = [0];
|
|
1433
1790
|
continue;
|
|
1434
1791
|
case 7:
|
|
1435
1792
|
u = n.ops.pop(), n.trys.pop();
|
|
@@ -1455,36 +1812,36 @@ var ie = function() {
|
|
|
1455
1812
|
continue;
|
|
1456
1813
|
}
|
|
1457
1814
|
u = t.call(e, n);
|
|
1458
|
-
} catch (
|
|
1459
|
-
u = [6,
|
|
1815
|
+
} catch (_) {
|
|
1816
|
+
u = [6, _], i = 0;
|
|
1460
1817
|
} finally {
|
|
1461
|
-
|
|
1818
|
+
o = a = 0;
|
|
1462
1819
|
}
|
|
1463
1820
|
if (u[0] & 5) throw u[1];
|
|
1464
1821
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
1465
1822
|
}
|
|
1466
|
-
},
|
|
1823
|
+
}, Hs = function(e, t) {
|
|
1467
1824
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
1468
1825
|
if (!n) return e;
|
|
1469
|
-
var
|
|
1826
|
+
var o = n.call(e), i, a = [], d;
|
|
1470
1827
|
try {
|
|
1471
|
-
for (; (t === void 0 || t-- > 0) && !(
|
|
1472
|
-
} catch (
|
|
1473
|
-
|
|
1828
|
+
for (; (t === void 0 || t-- > 0) && !(i = o.next()).done; ) a.push(i.value);
|
|
1829
|
+
} catch (f) {
|
|
1830
|
+
d = { error: f };
|
|
1474
1831
|
} finally {
|
|
1475
1832
|
try {
|
|
1476
|
-
|
|
1833
|
+
i && !i.done && (n = o.return) && n.call(o);
|
|
1477
1834
|
} finally {
|
|
1478
|
-
if (
|
|
1835
|
+
if (d) throw d.error;
|
|
1479
1836
|
}
|
|
1480
1837
|
}
|
|
1481
1838
|
return a;
|
|
1482
|
-
},
|
|
1483
|
-
if (n || arguments.length === 2) for (var
|
|
1484
|
-
(a || !(
|
|
1839
|
+
}, Ks = function(e, t, n) {
|
|
1840
|
+
if (n || arguments.length === 2) for (var o = 0, i = t.length, a; o < i; o++)
|
|
1841
|
+
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
1485
1842
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
1486
|
-
},
|
|
1487
|
-
cache:
|
|
1843
|
+
}, Qn = new Rt(), Xe = new Rt(), pt = new Rt(), Zn = {
|
|
1844
|
+
cache: Qn,
|
|
1488
1845
|
refreshInterval: 0,
|
|
1489
1846
|
ttl: 0,
|
|
1490
1847
|
serverTTL: 1e3,
|
|
@@ -1494,122 +1851,122 @@ var ie = function() {
|
|
|
1494
1851
|
shouldRetryOnError: !0,
|
|
1495
1852
|
errorRetryInterval: 5e3,
|
|
1496
1853
|
errorRetryCount: 5,
|
|
1497
|
-
fetcher:
|
|
1498
|
-
isOnline:
|
|
1499
|
-
isDocumentVisible:
|
|
1854
|
+
fetcher: ft.fetcher,
|
|
1855
|
+
isOnline: ft.isOnline,
|
|
1856
|
+
isDocumentVisible: ft.isDocumentVisible
|
|
1500
1857
|
};
|
|
1501
|
-
function
|
|
1502
|
-
var
|
|
1503
|
-
if (
|
|
1504
|
-
|
|
1858
|
+
function zs(e, t, n) {
|
|
1859
|
+
var o = Xe.get(e);
|
|
1860
|
+
if (o)
|
|
1861
|
+
o.data.push(t);
|
|
1505
1862
|
else {
|
|
1506
|
-
var
|
|
1507
|
-
|
|
1863
|
+
var i = 5e3;
|
|
1864
|
+
Xe.set(e, [t], n > 0 ? n + i : n);
|
|
1508
1865
|
}
|
|
1509
1866
|
}
|
|
1510
|
-
function
|
|
1867
|
+
function qs(e, t, n) {
|
|
1511
1868
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
1512
|
-
var
|
|
1869
|
+
var o = Math.min(t || 0, n.errorRetryCount), i = o * n.errorRetryInterval;
|
|
1513
1870
|
setTimeout(function() {
|
|
1514
|
-
e(null, { errorRetryCount:
|
|
1515
|
-
},
|
|
1871
|
+
e(null, { errorRetryCount: o + 1, shouldRetryOnError: !0 });
|
|
1872
|
+
}, i);
|
|
1516
1873
|
}
|
|
1517
1874
|
}
|
|
1518
|
-
var
|
|
1519
|
-
return n === void 0 && (n =
|
|
1520
|
-
var
|
|
1521
|
-
return
|
|
1875
|
+
var ln = function(e, t, n, o) {
|
|
1876
|
+
return n === void 0 && (n = Qn), o === void 0 && (o = Zn.ttl), Ie(void 0, void 0, void 0, function() {
|
|
1877
|
+
var i, a, d, f, l, u, _;
|
|
1878
|
+
return xe(this, function(S) {
|
|
1522
1879
|
switch (S.label) {
|
|
1523
1880
|
case 0:
|
|
1524
|
-
if (!
|
|
1881
|
+
if (!Gs(t)) return [3, 5];
|
|
1525
1882
|
S.label = 1;
|
|
1526
1883
|
case 1:
|
|
1527
1884
|
return S.trys.push([1, 3, , 4]), [4, t];
|
|
1528
1885
|
case 2:
|
|
1529
|
-
return
|
|
1886
|
+
return i = S.sent(), [3, 4];
|
|
1530
1887
|
case 3:
|
|
1531
|
-
return
|
|
1888
|
+
return f = S.sent(), a = f, [3, 4];
|
|
1532
1889
|
case 4:
|
|
1533
1890
|
return [3, 6];
|
|
1534
1891
|
case 5:
|
|
1535
|
-
|
|
1892
|
+
i = t, S.label = 6;
|
|
1536
1893
|
case 6:
|
|
1537
|
-
if (
|
|
1894
|
+
if (d = !1, l = { data: i, error: a, isValidating: d }, typeof i < "u")
|
|
1538
1895
|
try {
|
|
1539
|
-
n.set(e, l,
|
|
1540
|
-
} catch (
|
|
1541
|
-
console.error("swrv(mutate): failed to set cache",
|
|
1896
|
+
n.set(e, l, o);
|
|
1897
|
+
} catch (y) {
|
|
1898
|
+
console.error("swrv(mutate): failed to set cache", y);
|
|
1542
1899
|
}
|
|
1543
|
-
return u =
|
|
1544
|
-
return
|
|
1545
|
-
}),
|
|
1546
|
-
typeof l.data < "u" && (
|
|
1547
|
-
var v =
|
|
1548
|
-
v || delete
|
|
1549
|
-
}),
|
|
1900
|
+
return u = Xe.get(e), u && u.data.length && (_ = u.data.filter(function(y) {
|
|
1901
|
+
return y.key === e;
|
|
1902
|
+
}), _.forEach(function(y, h) {
|
|
1903
|
+
typeof l.data < "u" && (y.data = l.data), y.error = l.error, y.isValidating = l.isValidating, y.isLoading = l.isValidating;
|
|
1904
|
+
var v = h === _.length - 1;
|
|
1905
|
+
v || delete _[h];
|
|
1906
|
+
}), _ = _.filter(Boolean)), [2, l];
|
|
1550
1907
|
}
|
|
1551
1908
|
});
|
|
1552
1909
|
});
|
|
1553
1910
|
};
|
|
1554
|
-
function
|
|
1911
|
+
function Ws() {
|
|
1555
1912
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
1556
1913
|
t[n] = arguments[n];
|
|
1557
|
-
var
|
|
1914
|
+
var o, i, a = le({}, Zn), d = !1, f = !1, l = oi(), u = (l == null ? void 0 : l.proxy) || l;
|
|
1558
1915
|
if (!u)
|
|
1559
1916
|
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;
|
|
1560
|
-
var
|
|
1561
|
-
t.length >= 1 && (
|
|
1562
|
-
var S =
|
|
1563
|
-
typeof
|
|
1564
|
-
var
|
|
1565
|
-
|
|
1917
|
+
var _ = (u == null ? void 0 : u.$isServer) || !1;
|
|
1918
|
+
t.length >= 1 && (o = t[0]), t.length >= 2 && (i = t[1]), t.length > 2 && (a = le(le({}, a), t[2]));
|
|
1919
|
+
var S = _ ? a.serverTTL : a.ttl, y = typeof o == "function" ? o : A(o);
|
|
1920
|
+
typeof i > "u" && (i = a.fetcher);
|
|
1921
|
+
var h = null;
|
|
1922
|
+
h || (h = sn({
|
|
1566
1923
|
data: void 0,
|
|
1567
1924
|
error: void 0,
|
|
1568
1925
|
isValidating: !0,
|
|
1569
1926
|
isLoading: !0,
|
|
1570
1927
|
key: null
|
|
1571
1928
|
}));
|
|
1572
|
-
var v = function(
|
|
1573
|
-
return
|
|
1574
|
-
var
|
|
1575
|
-
return
|
|
1576
|
-
switch (
|
|
1929
|
+
var v = function(m, g) {
|
|
1930
|
+
return Ie(e, void 0, void 0, function() {
|
|
1931
|
+
var I, R, q, ne, _e, ae, Y, ye = this;
|
|
1932
|
+
return xe(this, function(X) {
|
|
1933
|
+
switch (X.label) {
|
|
1577
1934
|
case 0:
|
|
1578
|
-
return
|
|
1935
|
+
return I = h.data === void 0, R = y.value, R ? (q = a.cache.get(R), ne = q && q.data, h.isValidating = !0, h.isLoading = !ne, ne && (h.data = ne.data, h.error = ne.error), _e = m || i, !_e || !a.isDocumentVisible() && !I || (g == null ? void 0 : g.forceRevalidate) !== void 0 && !(g != null && g.forceRevalidate) ? (h.isValidating = !1, h.isLoading = !1, [
|
|
1579
1936
|
2
|
|
1580
1937
|
/*return*/
|
|
1581
|
-
]) :
|
|
1938
|
+
]) : q && (ae = !!(Date.now() - q.createdAt >= a.dedupingInterval || g != null && g.forceRevalidate), !ae) ? (h.isValidating = !1, h.isLoading = !1, [
|
|
1582
1939
|
2
|
|
1583
1940
|
/*return*/
|
|
1584
|
-
]) : (
|
|
1585
|
-
return
|
|
1586
|
-
var
|
|
1587
|
-
return
|
|
1588
|
-
switch (
|
|
1941
|
+
]) : (Y = function() {
|
|
1942
|
+
return Ie(ye, void 0, void 0, function() {
|
|
1943
|
+
var Q, ve, he, Oe;
|
|
1944
|
+
return xe(this, function(me) {
|
|
1945
|
+
switch (me.label) {
|
|
1589
1946
|
case 0:
|
|
1590
|
-
return
|
|
1947
|
+
return Q = pt.get(R), Q ? [3, 2] : (ve = Array.isArray(R) ? R : [R], he = _e.apply(void 0, Ks([], Hs(ve), !1)), pt.set(R, he, a.dedupingInterval), [4, ln(R, he, a.cache, S)]);
|
|
1591
1948
|
case 1:
|
|
1592
|
-
return
|
|
1949
|
+
return me.sent(), [3, 4];
|
|
1593
1950
|
case 2:
|
|
1594
|
-
return [4,
|
|
1951
|
+
return [4, ln(R, Q.data, a.cache, S)];
|
|
1595
1952
|
case 3:
|
|
1596
|
-
|
|
1953
|
+
me.sent(), me.label = 4;
|
|
1597
1954
|
case 4:
|
|
1598
|
-
return
|
|
1955
|
+
return h.isValidating = !1, h.isLoading = !1, pt.delete(R), h.error !== void 0 && (Oe = !d && a.shouldRetryOnError && (g ? g.shouldRetryOnError : !0), Oe && qs(v, g ? g.errorRetryCount : 1, a)), [
|
|
1599
1956
|
2
|
|
1600
1957
|
/*return*/
|
|
1601
1958
|
];
|
|
1602
1959
|
}
|
|
1603
1960
|
});
|
|
1604
1961
|
});
|
|
1605
|
-
},
|
|
1606
|
-
return
|
|
1607
|
-
return
|
|
1608
|
-
switch (
|
|
1962
|
+
}, ne && a.revalidateDebounce ? (setTimeout(function() {
|
|
1963
|
+
return Ie(ye, void 0, void 0, function() {
|
|
1964
|
+
return xe(this, function(Q) {
|
|
1965
|
+
switch (Q.label) {
|
|
1609
1966
|
case 0:
|
|
1610
|
-
return
|
|
1967
|
+
return d ? [3, 2] : [4, Y()];
|
|
1611
1968
|
case 1:
|
|
1612
|
-
|
|
1969
|
+
Q.sent(), Q.label = 2;
|
|
1613
1970
|
case 2:
|
|
1614
1971
|
return [
|
|
1615
1972
|
2
|
|
@@ -1623,9 +1980,9 @@ function ga() {
|
|
|
1623
1980
|
/*return*/
|
|
1624
1981
|
];
|
|
1625
1982
|
case 1:
|
|
1626
|
-
return [4,
|
|
1983
|
+
return [4, Y()];
|
|
1627
1984
|
case 2:
|
|
1628
|
-
|
|
1985
|
+
X.sent(), X.label = 3;
|
|
1629
1986
|
case 3:
|
|
1630
1987
|
return [
|
|
1631
1988
|
2
|
|
@@ -1634,26 +1991,26 @@ function ga() {
|
|
|
1634
1991
|
}
|
|
1635
1992
|
});
|
|
1636
1993
|
});
|
|
1637
|
-
},
|
|
1638
|
-
return
|
|
1639
|
-
return
|
|
1994
|
+
}, O = function() {
|
|
1995
|
+
return Ie(e, void 0, void 0, function() {
|
|
1996
|
+
return xe(this, function(m) {
|
|
1640
1997
|
return [2, v(null, { shouldRetryOnError: !1 })];
|
|
1641
1998
|
});
|
|
1642
1999
|
});
|
|
1643
|
-
},
|
|
1644
|
-
|
|
1645
|
-
var
|
|
1646
|
-
return
|
|
1647
|
-
return
|
|
1648
|
-
switch (
|
|
2000
|
+
}, s = null;
|
|
2001
|
+
ai(function() {
|
|
2002
|
+
var m = function() {
|
|
2003
|
+
return Ie(e, void 0, void 0, function() {
|
|
2004
|
+
return xe(this, function(g) {
|
|
2005
|
+
switch (g.label) {
|
|
1649
2006
|
case 0:
|
|
1650
|
-
return !
|
|
2007
|
+
return !h.error && a.isOnline() ? [4, v()] : [3, 2];
|
|
1651
2008
|
case 1:
|
|
1652
|
-
return
|
|
2009
|
+
return g.sent(), [3, 3];
|
|
1653
2010
|
case 2:
|
|
1654
|
-
|
|
2011
|
+
s && clearTimeout(s), g.label = 3;
|
|
1655
2012
|
case 3:
|
|
1656
|
-
return a.refreshInterval && !
|
|
2013
|
+
return a.refreshInterval && !d && (s = setTimeout(m, a.refreshInterval)), [
|
|
1657
2014
|
2
|
|
1658
2015
|
/*return*/
|
|
1659
2016
|
];
|
|
@@ -1661,60 +2018,60 @@ function ga() {
|
|
|
1661
2018
|
});
|
|
1662
2019
|
});
|
|
1663
2020
|
};
|
|
1664
|
-
a.refreshInterval && (
|
|
1665
|
-
}),
|
|
1666
|
-
|
|
1667
|
-
var
|
|
1668
|
-
|
|
1669
|
-
return
|
|
2021
|
+
a.refreshInterval && (s = setTimeout(m, a.refreshInterval)), a.revalidateOnFocus && (document.addEventListener("visibilitychange", O, !1), window.addEventListener("focus", O, !1));
|
|
2022
|
+
}), li(function() {
|
|
2023
|
+
d = !0, s && clearTimeout(s), a.revalidateOnFocus && (document.removeEventListener("visibilitychange", O, !1), window.removeEventListener("focus", O, !1));
|
|
2024
|
+
var m = Xe.get(y.value);
|
|
2025
|
+
m && (m.data = m.data.filter(function(g) {
|
|
2026
|
+
return g !== h;
|
|
1670
2027
|
}));
|
|
1671
2028
|
});
|
|
1672
2029
|
try {
|
|
1673
|
-
|
|
1674
|
-
|
|
2030
|
+
ke(y, function(m) {
|
|
2031
|
+
si(y) || (y.value = m), h.key = m, h.isValidating = !!m, zs(y.value, h, S), !_ && !f && y.value && v(), f = !1;
|
|
1675
2032
|
}, {
|
|
1676
2033
|
immediate: !0
|
|
1677
2034
|
});
|
|
1678
2035
|
} catch {
|
|
1679
2036
|
}
|
|
1680
|
-
var
|
|
1681
|
-
return v(
|
|
2037
|
+
var k = le(le({}, di(h)), { mutate: function(m, g) {
|
|
2038
|
+
return v(m, le(le({}, g), { forceRevalidate: !0 }));
|
|
1682
2039
|
} });
|
|
1683
|
-
return
|
|
2040
|
+
return k;
|
|
1684
2041
|
}
|
|
1685
|
-
function
|
|
2042
|
+
function Gs(e) {
|
|
1686
2043
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
1687
2044
|
}
|
|
1688
|
-
function
|
|
2045
|
+
function ei(e) {
|
|
1689
2046
|
return `redis-partial-links-${e}`;
|
|
1690
2047
|
}
|
|
1691
|
-
const
|
|
1692
|
-
const { axiosInstance: t } =
|
|
2048
|
+
const De = (e) => {
|
|
2049
|
+
const { axiosInstance: t } = Tt(e.axiosRequestConfig);
|
|
1693
2050
|
return {
|
|
1694
2051
|
fetcher: async (n) => {
|
|
1695
|
-
const { partialId:
|
|
1696
|
-
let
|
|
1697
|
-
e.app === "konnect" ?
|
|
2052
|
+
const { partialId: o, size: i, offset: a, query: d } = n;
|
|
2053
|
+
let f = `${e.apiBaseUrl}${je.links[e.app]}`;
|
|
2054
|
+
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 || ""), d && (f = `${f}?${d}`);
|
|
1698
2055
|
const { data: l } = await t.get(
|
|
1699
|
-
|
|
1700
|
-
{ params: { size:
|
|
2056
|
+
f,
|
|
2057
|
+
{ params: { size: i, offset: a } }
|
|
1701
2058
|
);
|
|
1702
2059
|
return l;
|
|
1703
2060
|
}
|
|
1704
2061
|
};
|
|
1705
|
-
},
|
|
1706
|
-
const { partialId: t, config: n } = e, { fetcher:
|
|
1707
|
-
|
|
1708
|
-
() =>
|
|
2062
|
+
}, ti = (e) => {
|
|
2063
|
+
const { partialId: t, config: n } = e, { fetcher: o } = De(n), i = A([]), { data: a } = Ws(
|
|
2064
|
+
ei(t),
|
|
2065
|
+
() => o({ partialId: t }),
|
|
1709
2066
|
{
|
|
1710
2067
|
revalidateOnFocus: !1
|
|
1711
2068
|
}
|
|
1712
2069
|
);
|
|
1713
|
-
return
|
|
1714
|
-
var
|
|
1715
|
-
|
|
1716
|
-
}),
|
|
1717
|
-
},
|
|
2070
|
+
return ke(a, () => {
|
|
2071
|
+
var d;
|
|
2072
|
+
i.value = ((d = a.value) == null ? void 0 : d.data) ?? [];
|
|
2073
|
+
}), i;
|
|
2074
|
+
}, Js = { class: "kong-ui-entities-redis-configurations-form" }, Ys = /* @__PURE__ */ te({
|
|
1718
2075
|
__name: "RedisConfigurationForm",
|
|
1719
2076
|
props: {
|
|
1720
2077
|
config: {
|
|
@@ -1752,563 +2109,566 @@ const Le = (e) => {
|
|
|
1752
2109
|
},
|
|
1753
2110
|
emits: ["update", "error", "loading", "cancel"],
|
|
1754
2111
|
setup(e, { emit: t }) {
|
|
1755
|
-
const n = e,
|
|
1756
|
-
|
|
1757
|
-
},
|
|
1758
|
-
var
|
|
1759
|
-
(
|
|
1760
|
-
},
|
|
2112
|
+
const n = e, o = t, { i18n: { t: i }, i18nT: a } = be.useI18n(), d = pn(), f = A(), l = A(), u = A("json"), _ = (D, b) => {
|
|
2113
|
+
f.value = D ?? "", l.value = b;
|
|
2114
|
+
}, S = (D) => {
|
|
2115
|
+
var b;
|
|
2116
|
+
(b = l.value) == null || b.call(l, D), f.value = !1;
|
|
2117
|
+
}, y = z(() => [
|
|
1761
2118
|
{
|
|
1762
|
-
label:
|
|
1763
|
-
group:
|
|
1764
|
-
value:
|
|
1765
|
-
selected:
|
|
1766
|
-
disabled: !
|
|
2119
|
+
label: i("form.options.type.host_port"),
|
|
2120
|
+
group: i("form.options.type.enterprise"),
|
|
2121
|
+
value: w.HOST_PORT_EE,
|
|
2122
|
+
selected: I.value === w.HOST_PORT_EE,
|
|
2123
|
+
disabled: !g && n.disabledPartialType === ee.REDIS_EE
|
|
1767
2124
|
},
|
|
1768
2125
|
{
|
|
1769
|
-
label:
|
|
1770
|
-
group:
|
|
1771
|
-
value:
|
|
1772
|
-
selected:
|
|
1773
|
-
disabled: !
|
|
2126
|
+
label: i("form.options.type.cluster"),
|
|
2127
|
+
group: i("form.options.type.enterprise"),
|
|
2128
|
+
value: w.CLUSTER,
|
|
2129
|
+
selected: I.value === w.CLUSTER,
|
|
2130
|
+
disabled: !g && n.disabledPartialType === ee.REDIS_EE
|
|
1774
2131
|
},
|
|
1775
2132
|
{
|
|
1776
|
-
label:
|
|
1777
|
-
group:
|
|
1778
|
-
value:
|
|
1779
|
-
selected:
|
|
1780
|
-
disabled: !
|
|
2133
|
+
label: i("form.options.type.sentinel"),
|
|
2134
|
+
group: i("form.options.type.enterprise"),
|
|
2135
|
+
value: w.SENTINEL,
|
|
2136
|
+
selected: I.value === w.SENTINEL,
|
|
2137
|
+
disabled: !g && n.disabledPartialType === ee.REDIS_EE
|
|
1781
2138
|
},
|
|
1782
2139
|
{
|
|
1783
|
-
label:
|
|
1784
|
-
group:
|
|
1785
|
-
value:
|
|
1786
|
-
selected:
|
|
1787
|
-
disabled:
|
|
2140
|
+
label: i("form.options.type.host_port"),
|
|
2141
|
+
group: i("form.options.type.open_source"),
|
|
2142
|
+
value: w.HOST_PORT_CE,
|
|
2143
|
+
selected: I.value === w.HOST_PORT_CE,
|
|
2144
|
+
disabled: g && R.value || !g && n.disabledPartialType === ee.REDIS_CE
|
|
1788
2145
|
}
|
|
1789
|
-
]),
|
|
1790
|
-
{ label:
|
|
1791
|
-
{ label:
|
|
1792
|
-
{ label:
|
|
1793
|
-
],
|
|
1794
|
-
const
|
|
1795
|
-
return `${
|
|
1796
|
-
},
|
|
2146
|
+
]), h = [
|
|
2147
|
+
{ label: i("form.options.sentinel_role.master"), value: "master" },
|
|
2148
|
+
{ label: i("form.options.sentinel_role.slave"), value: "slave" },
|
|
2149
|
+
{ label: i("form.options.sentinel_role.any"), value: "any" }
|
|
2150
|
+
], v = (D) => {
|
|
2151
|
+
const b = D.value === w.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
2152
|
+
return `${D.label}${b}`;
|
|
2153
|
+
}, O = () => n.disabledPartialType && Ye(Re) === n.disabledPartialType ? n.disabledPartialType === ee.REDIS_CE ? w.HOST_PORT_EE : w.HOST_PORT_CE : Re, {
|
|
1797
2154
|
form: s,
|
|
1798
|
-
canSubmit:
|
|
1799
|
-
payload:
|
|
1800
|
-
isEdit:
|
|
1801
|
-
redisType:
|
|
1802
|
-
redisTypeIsEnterprise:
|
|
1803
|
-
fetchUrl:
|
|
1804
|
-
submit:
|
|
1805
|
-
setInitialFormValues:
|
|
1806
|
-
} =
|
|
2155
|
+
canSubmit: k,
|
|
2156
|
+
payload: m,
|
|
2157
|
+
isEdit: g,
|
|
2158
|
+
redisType: I,
|
|
2159
|
+
redisTypeIsEnterprise: R,
|
|
2160
|
+
fetchUrl: q,
|
|
2161
|
+
submit: ne,
|
|
2162
|
+
setInitialFormValues: _e
|
|
2163
|
+
} = vs({
|
|
1807
2164
|
partialId: n.partialId,
|
|
1808
|
-
defaultRedisType:
|
|
2165
|
+
defaultRedisType: O(),
|
|
1809
2166
|
config: n.config
|
|
1810
|
-
}), { fetcher:
|
|
2167
|
+
}), { fetcher: ae } = De(n.config), Y = A(!1), ye = A(!1), X = A(0), Q = z(() => u.value === "terraform" ? {
|
|
2168
|
+
[m.value.type.replaceAll("-", "_")]: ps(m.value, ["type"])
|
|
2169
|
+
} : m.value), ve = async () => {
|
|
1811
2170
|
try {
|
|
1812
|
-
if (
|
|
1813
|
-
const { count:
|
|
1814
|
-
if (
|
|
1815
|
-
|
|
2171
|
+
if (g && !ye.value) {
|
|
2172
|
+
const { count: b } = await ae({ partialId: n.partialId });
|
|
2173
|
+
if (X.value = b, b > 0) {
|
|
2174
|
+
Y.value = !0;
|
|
1816
2175
|
return;
|
|
1817
2176
|
}
|
|
1818
2177
|
}
|
|
1819
|
-
const { data:
|
|
1820
|
-
|
|
1821
|
-
} catch (
|
|
1822
|
-
|
|
2178
|
+
const { data: D } = await ne();
|
|
2179
|
+
o("update", D);
|
|
2180
|
+
} catch (D) {
|
|
2181
|
+
o("error", D);
|
|
1823
2182
|
}
|
|
1824
|
-
},
|
|
1825
|
-
|
|
1826
|
-
},
|
|
1827
|
-
n.config.cancelRoute &&
|
|
1828
|
-
}, me = (
|
|
1829
|
-
|
|
1830
|
-
},
|
|
1831
|
-
|
|
1832
|
-
},
|
|
1833
|
-
|
|
2183
|
+
}, he = () => {
|
|
2184
|
+
Y.value = !1, ye.value = !0, ve();
|
|
2185
|
+
}, Oe = () => {
|
|
2186
|
+
n.config.cancelRoute && d.push(n.config.cancelRoute), o("cancel");
|
|
2187
|
+
}, me = (D) => {
|
|
2188
|
+
o("loading", D);
|
|
2189
|
+
}, it = (D) => {
|
|
2190
|
+
o("error", D);
|
|
2191
|
+
}, Ue = (D) => {
|
|
2192
|
+
_e(D);
|
|
1834
2193
|
};
|
|
1835
|
-
return
|
|
1836
|
-
if (
|
|
1837
|
-
const { count:
|
|
1838
|
-
|
|
2194
|
+
return ui(async () => {
|
|
2195
|
+
if (g) {
|
|
2196
|
+
const { count: D } = await ae({ partialId: n.partialId });
|
|
2197
|
+
X.value = D;
|
|
1839
2198
|
}
|
|
1840
|
-
}), (
|
|
1841
|
-
const
|
|
1842
|
-
return
|
|
1843
|
-
|
|
1844
|
-
p(
|
|
2199
|
+
}), (D, b) => {
|
|
2200
|
+
const rt = U("KAlert"), Ce = U("KSelect"), N = U("KInput"), C = U("KCheckbox"), x = U("KModal");
|
|
2201
|
+
return $(), G(Qe, null, [
|
|
2202
|
+
W("div", Js, [
|
|
2203
|
+
p(r(bi), {
|
|
1845
2204
|
"action-teleport-target": e.actionTeleportTarget,
|
|
1846
|
-
"can-submit":
|
|
2205
|
+
"can-submit": r(k),
|
|
1847
2206
|
config: e.config,
|
|
1848
2207
|
"edit-id": e.partialId,
|
|
1849
|
-
"entity-type":
|
|
1850
|
-
"error-message":
|
|
1851
|
-
"fetch-url":
|
|
1852
|
-
"form-fields":
|
|
1853
|
-
"is-readonly":
|
|
2208
|
+
"entity-type": r(cn).Partial,
|
|
2209
|
+
"error-message": r(s).errorMessage,
|
|
2210
|
+
"fetch-url": r(q),
|
|
2211
|
+
"form-fields": Q.value,
|
|
2212
|
+
"is-readonly": r(s).readonly,
|
|
1854
2213
|
"slidout-top-offset": e.slidoutTopOffset,
|
|
1855
|
-
onCancel:
|
|
1856
|
-
|
|
1857
|
-
"onFetch:
|
|
2214
|
+
onCancel: Oe,
|
|
2215
|
+
onCodeBlockTabChange: b[29] || (b[29] = (c) => u.value = c),
|
|
2216
|
+
"onFetch:error": it,
|
|
2217
|
+
"onFetch:success": Ue,
|
|
1858
2218
|
onLoading: me,
|
|
1859
|
-
onSubmit:
|
|
2219
|
+
onSubmit: ve
|
|
1860
2220
|
}, {
|
|
1861
|
-
default:
|
|
1862
|
-
|
|
2221
|
+
default: E(() => [
|
|
2222
|
+
X.value > 0 && r(g) ? ($(), K(rt, {
|
|
1863
2223
|
key: 0,
|
|
1864
2224
|
appearance: "warning",
|
|
1865
2225
|
class: "warning-alert",
|
|
1866
2226
|
"data-testid": "redis-update-warning-alert"
|
|
1867
2227
|
}, {
|
|
1868
|
-
default:
|
|
1869
|
-
p(
|
|
2228
|
+
default: E(() => [
|
|
2229
|
+
p(r(a), {
|
|
1870
2230
|
keypath: "form.edit_warning_modal.description",
|
|
1871
2231
|
tag: "div"
|
|
1872
2232
|
}, {
|
|
1873
|
-
pluginCount:
|
|
1874
|
-
|
|
2233
|
+
pluginCount: E(() => [
|
|
2234
|
+
W("b", null, H(r(i)("form.edit_warning_modal.plugin_count", { count: X.value })), 1)
|
|
1875
2235
|
]),
|
|
1876
2236
|
_: 1
|
|
1877
2237
|
})
|
|
1878
2238
|
]),
|
|
1879
2239
|
_: 1
|
|
1880
|
-
})) :
|
|
1881
|
-
p(
|
|
2240
|
+
})) : ie("", !0),
|
|
2241
|
+
p(r(ge), {
|
|
1882
2242
|
"data-testid": "redis-type-section",
|
|
1883
|
-
description: i
|
|
1884
|
-
title: i
|
|
2243
|
+
description: r(i)("form.sections.type.description"),
|
|
2244
|
+
title: r(i)("form.sections.type.title")
|
|
1885
2245
|
}, {
|
|
1886
|
-
default:
|
|
1887
|
-
p(
|
|
1888
|
-
modelValue:
|
|
1889
|
-
"onUpdate:modelValue":
|
|
2246
|
+
default: E(() => [
|
|
2247
|
+
p(Ce, {
|
|
2248
|
+
modelValue: r(I),
|
|
2249
|
+
"onUpdate:modelValue": b[0] || (b[0] = (c) => ci(I) ? I.value = c : null),
|
|
1890
2250
|
"data-testid": "redis-type-select",
|
|
1891
|
-
disabled:
|
|
1892
|
-
items:
|
|
2251
|
+
disabled: r(g) && r(I) === r(w).HOST_PORT_CE,
|
|
2252
|
+
items: y.value,
|
|
1893
2253
|
"kpop-attributes": { "data-testid": "redis-type-select-popover" },
|
|
1894
|
-
label: i
|
|
1895
|
-
readonly:
|
|
2254
|
+
label: r(i)("form.fields.type.label"),
|
|
2255
|
+
readonly: r(s).readonly,
|
|
1896
2256
|
required: ""
|
|
1897
2257
|
}, {
|
|
1898
|
-
"selected-item-template":
|
|
1899
|
-
|
|
2258
|
+
"selected-item-template": E(({ item: c }) => [
|
|
2259
|
+
re(H(v(c)), 1)
|
|
1900
2260
|
]),
|
|
1901
2261
|
_: 1
|
|
1902
2262
|
}, 8, ["modelValue", "disabled", "items", "label", "readonly"])
|
|
1903
2263
|
]),
|
|
1904
2264
|
_: 1
|
|
1905
2265
|
}, 8, ["description", "title"]),
|
|
1906
|
-
p(
|
|
2266
|
+
p(r(ge), {
|
|
1907
2267
|
"data-testid": "redis-general-section",
|
|
1908
|
-
description: i
|
|
1909
|
-
title: i
|
|
2268
|
+
description: r(i)("form.sections.general.description"),
|
|
2269
|
+
title: r(i)("form.sections.general.title")
|
|
1910
2270
|
}, {
|
|
1911
|
-
default:
|
|
1912
|
-
p(
|
|
1913
|
-
modelValue:
|
|
1914
|
-
"onUpdate:modelValue":
|
|
2271
|
+
default: E(() => [
|
|
2272
|
+
p(N, {
|
|
2273
|
+
modelValue: r(s).fields.name,
|
|
2274
|
+
"onUpdate:modelValue": b[1] || (b[1] = (c) => r(s).fields.name = c),
|
|
1915
2275
|
modelModifiers: { trim: !0 },
|
|
1916
2276
|
"data-testid": "redis-name-input",
|
|
1917
|
-
disabled:
|
|
1918
|
-
label: i
|
|
1919
|
-
placeholder: i
|
|
1920
|
-
readonly:
|
|
2277
|
+
disabled: r(g),
|
|
2278
|
+
label: r(i)("form.fields.name.label"),
|
|
2279
|
+
placeholder: r(i)("form.fields.name.placeholder"),
|
|
2280
|
+
readonly: r(s).readonly,
|
|
1921
2281
|
required: ""
|
|
1922
2282
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
1923
|
-
p(
|
|
1924
|
-
modelValue:
|
|
1925
|
-
"onUpdate:modelValue":
|
|
2283
|
+
p(N, {
|
|
2284
|
+
modelValue: r(s).fields.tags,
|
|
2285
|
+
"onUpdate:modelValue": b[2] || (b[2] = (c) => r(s).fields.tags = c),
|
|
1926
2286
|
modelModifiers: { trim: !0 },
|
|
1927
2287
|
"data-testid": "redis-tags-input",
|
|
1928
|
-
help: i
|
|
1929
|
-
label: i
|
|
2288
|
+
help: r(i)("form.fields.tags.help"),
|
|
2289
|
+
label: r(i)("form.fields.tags.label"),
|
|
1930
2290
|
"label-attributes": {
|
|
1931
|
-
info: i
|
|
2291
|
+
info: r(i)("form.fields.tags.tooltip"),
|
|
1932
2292
|
tooltipAttributes: { maxWidth: "400" }
|
|
1933
2293
|
},
|
|
1934
|
-
placeholder: i
|
|
1935
|
-
readonly:
|
|
2294
|
+
placeholder: r(i)("form.fields.tags.placeholder"),
|
|
2295
|
+
readonly: r(s).readonly
|
|
1936
2296
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
1937
2297
|
]),
|
|
1938
2298
|
_: 1
|
|
1939
2299
|
}, 8, ["description", "title"]),
|
|
1940
|
-
|
|
2300
|
+
r(I) === r(w).SENTINEL ? ($(), K(r(ge), {
|
|
1941
2301
|
key: 1,
|
|
1942
2302
|
"data-testid": "redis-sentinel-configuration-section",
|
|
1943
|
-
description: i
|
|
1944
|
-
title: i
|
|
2303
|
+
description: r(i)("form.sections.sentinel_configuration.description"),
|
|
2304
|
+
title: r(i)("form.sections.sentinel_configuration.title")
|
|
1945
2305
|
}, {
|
|
1946
|
-
default:
|
|
1947
|
-
p(
|
|
1948
|
-
modelValue:
|
|
1949
|
-
"onUpdate:modelValue":
|
|
2306
|
+
default: E(() => [
|
|
2307
|
+
p(N, {
|
|
2308
|
+
modelValue: r(s).fields.config.sentinel_master,
|
|
2309
|
+
"onUpdate:modelValue": b[3] || (b[3] = (c) => r(s).fields.config.sentinel_master = c),
|
|
1950
2310
|
"data-testid": "redis-sentinel-master-input",
|
|
1951
|
-
label: i
|
|
2311
|
+
label: r(i)("form.fields.sentinel_master.label"),
|
|
1952
2312
|
"label-attributes": {
|
|
1953
|
-
info: i
|
|
2313
|
+
info: r(i)("form.fields.sentinel_master.tooltip"),
|
|
1954
2314
|
tooltipAttributes: { maxWidth: "400" }
|
|
1955
2315
|
},
|
|
1956
|
-
readonly:
|
|
2316
|
+
readonly: r(s).readonly,
|
|
1957
2317
|
required: ""
|
|
1958
2318
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1959
|
-
p(
|
|
1960
|
-
modelValue:
|
|
1961
|
-
"onUpdate:modelValue":
|
|
2319
|
+
p(Ce, {
|
|
2320
|
+
modelValue: r(s).fields.config.sentinel_role,
|
|
2321
|
+
"onUpdate:modelValue": b[4] || (b[4] = (c) => r(s).fields.config.sentinel_role = c),
|
|
1962
2322
|
"data-testid": "redis-sentinel-role-select",
|
|
1963
|
-
items:
|
|
2323
|
+
items: h,
|
|
1964
2324
|
"kpop-attributes": { "data-testid": "redis-sentinel-role-select-popover" },
|
|
1965
|
-
label: i
|
|
2325
|
+
label: r(i)("form.fields.sentinel_role.label"),
|
|
1966
2326
|
"label-attributes": {
|
|
1967
|
-
info: i
|
|
2327
|
+
info: r(i)("form.fields.sentinel_role.tooltip"),
|
|
1968
2328
|
tooltipAttributes: { maxWidth: "400" }
|
|
1969
2329
|
},
|
|
1970
|
-
readonly:
|
|
2330
|
+
readonly: r(s).readonly,
|
|
1971
2331
|
required: ""
|
|
1972
2332
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1973
|
-
p(
|
|
1974
|
-
modelValue:
|
|
1975
|
-
"onUpdate:modelValue":
|
|
1976
|
-
readonly:
|
|
2333
|
+
p(js, {
|
|
2334
|
+
modelValue: r(s).fields.config.sentinel_nodes,
|
|
2335
|
+
"onUpdate:modelValue": b[5] || (b[5] = (c) => r(s).fields.config.sentinel_nodes = c),
|
|
2336
|
+
readonly: r(s).readonly
|
|
1977
2337
|
}, null, 8, ["modelValue", "readonly"]),
|
|
1978
|
-
p(
|
|
1979
|
-
modelValue:
|
|
1980
|
-
"onUpdate:modelValue":
|
|
2338
|
+
p(N, {
|
|
2339
|
+
modelValue: r(s).fields.config.sentinel_username,
|
|
2340
|
+
"onUpdate:modelValue": b[6] || (b[6] = (c) => r(s).fields.config.sentinel_username = c),
|
|
1981
2341
|
modelModifiers: { trim: !0 },
|
|
1982
|
-
label: i
|
|
2342
|
+
label: r(i)("form.fields.sentinel_username.label"),
|
|
1983
2343
|
"label-attributes": {
|
|
1984
|
-
info: i
|
|
2344
|
+
info: r(i)("form.fields.sentinel_username.tooltip"),
|
|
1985
2345
|
tooltipAttributes: { maxWidth: "400" }
|
|
1986
2346
|
},
|
|
1987
|
-
readonly:
|
|
2347
|
+
readonly: r(s).readonly
|
|
1988
2348
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
1989
|
-
p(
|
|
2349
|
+
p(r(Be), {
|
|
1990
2350
|
class: "secret-picker-provider",
|
|
1991
|
-
disabled:
|
|
1992
|
-
update: (
|
|
1993
|
-
value:
|
|
1994
|
-
onOpen:
|
|
2351
|
+
disabled: r(s).readonly,
|
|
2352
|
+
update: (c) => r(s).fields.config.sentinel_username = c,
|
|
2353
|
+
value: r(s).fields.config.sentinel_username,
|
|
2354
|
+
onOpen: b[7] || (b[7] = (c, B) => _(c, B))
|
|
1995
2355
|
}, null, 8, ["disabled", "update", "value"]),
|
|
1996
|
-
p(
|
|
1997
|
-
modelValue:
|
|
1998
|
-
"onUpdate:modelValue":
|
|
2356
|
+
p(N, {
|
|
2357
|
+
modelValue: r(s).fields.config.sentinel_password,
|
|
2358
|
+
"onUpdate:modelValue": b[8] || (b[8] = (c) => r(s).fields.config.sentinel_password = c),
|
|
1999
2359
|
modelModifiers: { trim: !0 },
|
|
2000
|
-
label: i
|
|
2360
|
+
label: r(i)("form.fields.sentinel_password.label"),
|
|
2001
2361
|
"label-attributes": {
|
|
2002
|
-
info: i
|
|
2362
|
+
info: r(i)("form.fields.sentinel_password.tooltip"),
|
|
2003
2363
|
tooltipAttributes: { maxWidth: "400" }
|
|
2004
2364
|
},
|
|
2005
|
-
readonly:
|
|
2365
|
+
readonly: r(s).readonly,
|
|
2006
2366
|
"show-password-mask-toggle": "",
|
|
2007
2367
|
type: "password"
|
|
2008
2368
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2009
|
-
p(
|
|
2369
|
+
p(r(Be), {
|
|
2010
2370
|
class: "secret-picker-provider",
|
|
2011
|
-
disabled:
|
|
2012
|
-
update: (
|
|
2013
|
-
value:
|
|
2014
|
-
onOpen:
|
|
2371
|
+
disabled: r(s).readonly,
|
|
2372
|
+
update: (c) => r(s).fields.config.sentinel_password = c,
|
|
2373
|
+
value: r(s).fields.config.sentinel_password,
|
|
2374
|
+
onOpen: b[9] || (b[9] = (c, B) => _(c, B))
|
|
2015
2375
|
}, null, 8, ["disabled", "update", "value"])
|
|
2016
2376
|
]),
|
|
2017
2377
|
_: 1
|
|
2018
|
-
}, 8, ["description", "title"])) :
|
|
2019
|
-
|
|
2378
|
+
}, 8, ["description", "title"])) : ie("", !0),
|
|
2379
|
+
r(I) === r(w).CLUSTER ? ($(), K(r(ge), {
|
|
2020
2380
|
key: 2,
|
|
2021
2381
|
"data-testid": "redis-cluster-configuration-section",
|
|
2022
|
-
description: i
|
|
2023
|
-
title: i
|
|
2382
|
+
description: r(i)("form.sections.cluster.description"),
|
|
2383
|
+
title: r(i)("form.sections.cluster.title")
|
|
2024
2384
|
}, {
|
|
2025
|
-
default:
|
|
2026
|
-
p(
|
|
2027
|
-
modelValue:
|
|
2028
|
-
"onUpdate:modelValue":
|
|
2029
|
-
readonly:
|
|
2385
|
+
default: E(() => [
|
|
2386
|
+
p(Vs, {
|
|
2387
|
+
modelValue: r(s).fields.config.cluster_nodes,
|
|
2388
|
+
"onUpdate:modelValue": b[10] || (b[10] = (c) => r(s).fields.config.cluster_nodes = c),
|
|
2389
|
+
readonly: r(s).readonly
|
|
2030
2390
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2031
|
-
p(
|
|
2032
|
-
modelValue:
|
|
2033
|
-
"onUpdate:modelValue":
|
|
2391
|
+
p(N, {
|
|
2392
|
+
modelValue: r(s).fields.config.cluster_max_redirections,
|
|
2393
|
+
"onUpdate:modelValue": b[11] || (b[11] = (c) => r(s).fields.config.cluster_max_redirections = c),
|
|
2034
2394
|
"data-testid": "redis-cluster-max-redirections-input",
|
|
2035
|
-
label: i
|
|
2395
|
+
label: r(i)("form.fields.cluster_max_redirections.label"),
|
|
2036
2396
|
"label-attributes": {
|
|
2037
|
-
info: i
|
|
2397
|
+
info: r(i)("form.fields.cluster_max_redirections.tooltip"),
|
|
2038
2398
|
tooltipAttributes: { maxWidth: "400" }
|
|
2039
2399
|
},
|
|
2040
|
-
readonly:
|
|
2400
|
+
readonly: r(s).readonly,
|
|
2041
2401
|
type: "number"
|
|
2042
2402
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2043
2403
|
]),
|
|
2044
2404
|
_: 1
|
|
2045
|
-
}, 8, ["description", "title"])) :
|
|
2046
|
-
p(
|
|
2405
|
+
}, 8, ["description", "title"])) : ie("", !0),
|
|
2406
|
+
p(r(ge), {
|
|
2047
2407
|
"data-testid": "redis-connection-configuration-section",
|
|
2048
|
-
description: i
|
|
2049
|
-
title: i
|
|
2408
|
+
description: r(i)("form.sections.connection.description"),
|
|
2409
|
+
title: r(i)("form.sections.connection.title")
|
|
2050
2410
|
}, {
|
|
2051
|
-
default:
|
|
2052
|
-
|
|
2411
|
+
default: E(() => [
|
|
2412
|
+
r(I) === r(w).HOST_PORT_CE || r(I) === r(w).HOST_PORT_EE ? ($(), K(N, {
|
|
2053
2413
|
key: 0,
|
|
2054
|
-
modelValue:
|
|
2055
|
-
"onUpdate:modelValue":
|
|
2414
|
+
modelValue: r(s).fields.config.host,
|
|
2415
|
+
"onUpdate:modelValue": b[12] || (b[12] = (c) => r(s).fields.config.host = c),
|
|
2056
2416
|
modelModifiers: { trim: !0 },
|
|
2057
2417
|
"data-testid": "redis-host-input",
|
|
2058
|
-
label: i
|
|
2418
|
+
label: r(i)("form.fields.host.label"),
|
|
2059
2419
|
"label-attributes": {
|
|
2060
|
-
info: i
|
|
2420
|
+
info: r(i)("form.fields.host.tooltip"),
|
|
2061
2421
|
tooltipAttributes: { maxWidth: "400" }
|
|
2062
2422
|
},
|
|
2063
|
-
readonly:
|
|
2064
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2065
|
-
|
|
2423
|
+
readonly: r(s).readonly
|
|
2424
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : ie("", !0),
|
|
2425
|
+
r(I) === r(w).HOST_PORT_CE || r(I) === r(w).HOST_PORT_EE ? ($(), K(N, {
|
|
2066
2426
|
key: 1,
|
|
2067
|
-
modelValue:
|
|
2068
|
-
"onUpdate:modelValue":
|
|
2427
|
+
modelValue: r(s).fields.config.port,
|
|
2428
|
+
"onUpdate:modelValue": b[13] || (b[13] = (c) => r(s).fields.config.port = c),
|
|
2069
2429
|
modelModifiers: { trim: !0 },
|
|
2070
2430
|
"data-testid": "redis-port-input",
|
|
2071
|
-
label: i
|
|
2431
|
+
label: r(i)("form.fields.port.label"),
|
|
2072
2432
|
"label-attributes": {
|
|
2073
|
-
info: i
|
|
2433
|
+
info: r(i)("form.fields.port.tooltip"),
|
|
2074
2434
|
tooltipAttributes: { maxWidth: "400" }
|
|
2075
2435
|
},
|
|
2076
|
-
readonly:
|
|
2436
|
+
readonly: r(s).readonly,
|
|
2077
2437
|
type: "number"
|
|
2078
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2079
|
-
|
|
2438
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : ie("", !0),
|
|
2439
|
+
r(I) === r(w).HOST_PORT_EE ? ($(), K(C, {
|
|
2080
2440
|
key: 2,
|
|
2081
|
-
modelValue:
|
|
2082
|
-
"onUpdate:modelValue":
|
|
2441
|
+
modelValue: r(s).fields.config.connection_is_proxied,
|
|
2442
|
+
"onUpdate:modelValue": b[14] || (b[14] = (c) => r(s).fields.config.connection_is_proxied = c),
|
|
2083
2443
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2084
|
-
disabled:
|
|
2085
|
-
label: i
|
|
2444
|
+
disabled: r(s).readonly,
|
|
2445
|
+
label: r(i)("form.fields.connection_is_proxied.label"),
|
|
2086
2446
|
"label-attributes": {
|
|
2087
|
-
info: i
|
|
2447
|
+
info: r(i)("form.fields.connection_is_proxied.tooltip"),
|
|
2088
2448
|
tooltipAttributes: { maxWidth: "400" }
|
|
2089
2449
|
}
|
|
2090
|
-
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) :
|
|
2091
|
-
|
|
2450
|
+
}, null, 8, ["modelValue", "disabled", "label", "label-attributes"])) : ie("", !0),
|
|
2451
|
+
r(I) === r(w).HOST_PORT_CE ? ($(), K(N, {
|
|
2092
2452
|
key: 3,
|
|
2093
|
-
modelValue:
|
|
2094
|
-
"onUpdate:modelValue":
|
|
2453
|
+
modelValue: r(s).fields.config.timeout,
|
|
2454
|
+
"onUpdate:modelValue": b[15] || (b[15] = (c) => r(s).fields.config.timeout = c),
|
|
2095
2455
|
modelModifiers: { trim: !0 },
|
|
2096
2456
|
"data-testid": "redis-timeout-input",
|
|
2097
|
-
label: i
|
|
2457
|
+
label: r(i)("form.fields.timeout.label"),
|
|
2098
2458
|
"label-attributes": {
|
|
2099
|
-
info: i
|
|
2459
|
+
info: r(i)("form.fields.timeout.tooltip"),
|
|
2100
2460
|
tooltipAttributes: { maxWidth: "400" }
|
|
2101
2461
|
},
|
|
2102
|
-
readonly:
|
|
2462
|
+
readonly: r(s).readonly,
|
|
2103
2463
|
type: "number"
|
|
2104
|
-
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) :
|
|
2105
|
-
p(
|
|
2106
|
-
modelValue:
|
|
2107
|
-
"onUpdate:modelValue":
|
|
2464
|
+
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : ie("", !0),
|
|
2465
|
+
p(N, {
|
|
2466
|
+
modelValue: r(s).fields.config.database,
|
|
2467
|
+
"onUpdate:modelValue": b[16] || (b[16] = (c) => r(s).fields.config.database = c),
|
|
2108
2468
|
modelModifiers: { trim: !0 },
|
|
2109
2469
|
"data-testid": "redis-database-input",
|
|
2110
|
-
label: i
|
|
2470
|
+
label: r(i)("form.fields.database.label"),
|
|
2111
2471
|
"label-attributes": {
|
|
2112
|
-
info: i
|
|
2472
|
+
info: r(i)("form.fields.database.tooltip"),
|
|
2113
2473
|
tooltipAttributes: { maxWidth: "400" }
|
|
2114
2474
|
},
|
|
2115
|
-
readonly:
|
|
2475
|
+
readonly: r(s).readonly,
|
|
2116
2476
|
type: "number"
|
|
2117
2477
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2118
|
-
p(
|
|
2119
|
-
modelValue:
|
|
2120
|
-
"onUpdate:modelValue":
|
|
2478
|
+
p(N, {
|
|
2479
|
+
modelValue: r(s).fields.config.username,
|
|
2480
|
+
"onUpdate:modelValue": b[17] || (b[17] = (c) => r(s).fields.config.username = c),
|
|
2121
2481
|
modelModifiers: { trim: !0 },
|
|
2122
2482
|
"data-testid": "redis-username-input",
|
|
2123
|
-
label: i
|
|
2483
|
+
label: r(i)("form.fields.username.label"),
|
|
2124
2484
|
"label-attributes": {
|
|
2125
|
-
info: i
|
|
2485
|
+
info: r(i)("form.fields.username.tooltip"),
|
|
2126
2486
|
tooltipAttributes: { maxWidth: "400" }
|
|
2127
2487
|
},
|
|
2128
|
-
readonly:
|
|
2488
|
+
readonly: r(s).readonly
|
|
2129
2489
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2130
|
-
p(
|
|
2490
|
+
p(r(Be), {
|
|
2131
2491
|
class: "secret-picker-provider",
|
|
2132
|
-
disabled:
|
|
2133
|
-
update: (
|
|
2134
|
-
value:
|
|
2135
|
-
onOpen:
|
|
2492
|
+
disabled: r(s).readonly,
|
|
2493
|
+
update: (c) => r(s).fields.config.username = c,
|
|
2494
|
+
value: r(s).fields.config.username,
|
|
2495
|
+
onOpen: b[18] || (b[18] = (c, B) => _(c, B))
|
|
2136
2496
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2137
|
-
p(
|
|
2138
|
-
modelValue:
|
|
2139
|
-
"onUpdate:modelValue":
|
|
2497
|
+
p(N, {
|
|
2498
|
+
modelValue: r(s).fields.config.password,
|
|
2499
|
+
"onUpdate:modelValue": b[19] || (b[19] = (c) => r(s).fields.config.password = c),
|
|
2140
2500
|
modelModifiers: { trim: !0 },
|
|
2141
2501
|
"data-testid": "redis-password-input",
|
|
2142
|
-
label: i
|
|
2502
|
+
label: r(i)("form.fields.password.label"),
|
|
2143
2503
|
"label-attributes": {
|
|
2144
|
-
info: i
|
|
2504
|
+
info: r(i)("form.fields.password.tooltip"),
|
|
2145
2505
|
tooltipAttributes: { maxWidth: "400" }
|
|
2146
2506
|
},
|
|
2147
|
-
readonly:
|
|
2507
|
+
readonly: r(s).readonly,
|
|
2148
2508
|
"show-password-mask-toggle": "",
|
|
2149
2509
|
type: "password"
|
|
2150
2510
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2151
|
-
p(
|
|
2511
|
+
p(r(Be), {
|
|
2152
2512
|
class: "secret-picker-provider",
|
|
2153
|
-
disabled:
|
|
2154
|
-
update: (
|
|
2155
|
-
value:
|
|
2156
|
-
onOpen:
|
|
2513
|
+
disabled: r(s).readonly,
|
|
2514
|
+
update: (c) => r(s).fields.config.password = c,
|
|
2515
|
+
value: r(s).fields.config.password,
|
|
2516
|
+
onOpen: b[20] || (b[20] = (c, B) => _(c, B))
|
|
2157
2517
|
}, null, 8, ["disabled", "update", "value"])
|
|
2158
2518
|
]),
|
|
2159
2519
|
_: 1
|
|
2160
2520
|
}, 8, ["description", "title"]),
|
|
2161
|
-
p(
|
|
2521
|
+
p(r(ge), {
|
|
2162
2522
|
"data-testid": "redis-tls-configuration-section",
|
|
2163
|
-
description: i
|
|
2164
|
-
title: i
|
|
2523
|
+
description: r(i)("form.sections.tls.description"),
|
|
2524
|
+
title: r(i)("form.sections.tls.title")
|
|
2165
2525
|
}, {
|
|
2166
|
-
default:
|
|
2167
|
-
p(
|
|
2168
|
-
modelValue:
|
|
2169
|
-
"onUpdate:modelValue":
|
|
2526
|
+
default: E(() => [
|
|
2527
|
+
p(C, {
|
|
2528
|
+
modelValue: r(s).fields.config.ssl,
|
|
2529
|
+
"onUpdate:modelValue": b[21] || (b[21] = (c) => r(s).fields.config.ssl = c),
|
|
2170
2530
|
"data-testid": "redis-ssl-checkbox",
|
|
2171
|
-
description: i
|
|
2172
|
-
disabled:
|
|
2173
|
-
label: i
|
|
2531
|
+
description: r(i)("form.fields.ssl.description"),
|
|
2532
|
+
disabled: r(s).readonly,
|
|
2533
|
+
label: r(i)("form.fields.ssl.label"),
|
|
2174
2534
|
"label-attributes": {
|
|
2175
|
-
info: i
|
|
2535
|
+
info: r(i)("form.fields.ssl.tooltip"),
|
|
2176
2536
|
tooltipAttributes: { maxWidth: "400" }
|
|
2177
2537
|
}
|
|
2178
2538
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2179
|
-
p(
|
|
2180
|
-
modelValue:
|
|
2181
|
-
"onUpdate:modelValue":
|
|
2539
|
+
p(C, {
|
|
2540
|
+
modelValue: r(s).fields.config.ssl_verify,
|
|
2541
|
+
"onUpdate:modelValue": b[22] || (b[22] = (c) => r(s).fields.config.ssl_verify = c),
|
|
2182
2542
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2183
|
-
description: i
|
|
2184
|
-
disabled:
|
|
2185
|
-
label: i
|
|
2543
|
+
description: r(i)("form.fields.ssl_verify.description"),
|
|
2544
|
+
disabled: r(s).readonly,
|
|
2545
|
+
label: r(i)("form.fields.ssl_verify.label"),
|
|
2186
2546
|
"label-attributes": {
|
|
2187
|
-
info: i
|
|
2547
|
+
info: r(i)("form.fields.ssl_verify.tooltip"),
|
|
2188
2548
|
tooltipAttributes: { maxWidth: "400" }
|
|
2189
2549
|
}
|
|
2190
2550
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2191
|
-
p(
|
|
2192
|
-
modelValue:
|
|
2193
|
-
"onUpdate:modelValue":
|
|
2551
|
+
p(N, {
|
|
2552
|
+
modelValue: r(s).fields.config.server_name,
|
|
2553
|
+
"onUpdate:modelValue": b[23] || (b[23] = (c) => r(s).fields.config.server_name = c),
|
|
2194
2554
|
modelModifiers: { trim: !0 },
|
|
2195
|
-
label: i
|
|
2555
|
+
label: r(i)("form.fields.server_name.label"),
|
|
2196
2556
|
"label-attributes": {
|
|
2197
|
-
info: i
|
|
2557
|
+
info: r(i)("form.fields.server_name.tooltip"),
|
|
2198
2558
|
tooltipAttributes: { maxWidth: "400" }
|
|
2199
2559
|
},
|
|
2200
|
-
readonly:
|
|
2560
|
+
readonly: r(s).readonly
|
|
2201
2561
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2202
2562
|
]),
|
|
2203
2563
|
_: 1
|
|
2204
2564
|
}, 8, ["description", "title"]),
|
|
2205
|
-
|
|
2565
|
+
r(I) !== r(w).HOST_PORT_CE ? ($(), K(r(ge), {
|
|
2206
2566
|
key: 3,
|
|
2207
2567
|
"data-testid": "redis-keepalive-section",
|
|
2208
|
-
description: i
|
|
2209
|
-
title: i
|
|
2568
|
+
description: r(i)("form.sections.keepalive.description"),
|
|
2569
|
+
title: r(i)("form.sections.keepalive.title")
|
|
2210
2570
|
}, {
|
|
2211
|
-
default:
|
|
2212
|
-
p(
|
|
2213
|
-
modelValue:
|
|
2214
|
-
"onUpdate:modelValue":
|
|
2571
|
+
default: E(() => [
|
|
2572
|
+
p(N, {
|
|
2573
|
+
modelValue: r(s).fields.config.keepalive_backlog,
|
|
2574
|
+
"onUpdate:modelValue": b[24] || (b[24] = (c) => r(s).fields.config.keepalive_backlog = c),
|
|
2215
2575
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2216
|
-
label: i
|
|
2576
|
+
label: r(i)("form.fields.keepalive_backlog.label"),
|
|
2217
2577
|
"label-attributes": {
|
|
2218
|
-
info: i
|
|
2578
|
+
info: r(i)("form.fields.keepalive_backlog.tooltip"),
|
|
2219
2579
|
tooltipAttributes: { maxWidth: "400" }
|
|
2220
2580
|
},
|
|
2221
|
-
readonly:
|
|
2581
|
+
readonly: r(s).readonly,
|
|
2222
2582
|
type: "number"
|
|
2223
2583
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2224
|
-
p(
|
|
2225
|
-
modelValue:
|
|
2226
|
-
"onUpdate:modelValue":
|
|
2584
|
+
p(N, {
|
|
2585
|
+
modelValue: r(s).fields.config.keepalive_pool_size,
|
|
2586
|
+
"onUpdate:modelValue": b[25] || (b[25] = (c) => r(s).fields.config.keepalive_pool_size = c),
|
|
2227
2587
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2228
|
-
label: i
|
|
2588
|
+
label: r(i)("form.fields.keepalive_pool_size.label"),
|
|
2229
2589
|
"label-attributes": {
|
|
2230
|
-
info: i
|
|
2590
|
+
info: r(i)("form.fields.keepalive_pool_size.tooltip"),
|
|
2231
2591
|
tooltipAttributes: { maxWidth: "400" }
|
|
2232
2592
|
},
|
|
2233
|
-
readonly:
|
|
2593
|
+
readonly: r(s).readonly,
|
|
2234
2594
|
type: "number"
|
|
2235
2595
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2236
2596
|
]),
|
|
2237
2597
|
_: 1
|
|
2238
|
-
}, 8, ["description", "title"])) :
|
|
2239
|
-
|
|
2598
|
+
}, 8, ["description", "title"])) : ie("", !0),
|
|
2599
|
+
r(I) !== r(w).HOST_PORT_CE ? ($(), K(r(ge), {
|
|
2240
2600
|
key: 4,
|
|
2241
2601
|
"data-testid": "redis-read-write-configuration-section",
|
|
2242
|
-
description: i
|
|
2243
|
-
title: i
|
|
2602
|
+
description: r(i)("form.sections.read_write_configuration.description"),
|
|
2603
|
+
title: r(i)("form.sections.read_write_configuration.title")
|
|
2244
2604
|
}, {
|
|
2245
|
-
default:
|
|
2246
|
-
p(
|
|
2247
|
-
modelValue:
|
|
2248
|
-
"onUpdate:modelValue":
|
|
2605
|
+
default: E(() => [
|
|
2606
|
+
p(N, {
|
|
2607
|
+
modelValue: r(s).fields.config.read_timeout,
|
|
2608
|
+
"onUpdate:modelValue": b[26] || (b[26] = (c) => r(s).fields.config.read_timeout = c),
|
|
2249
2609
|
"data-testid": "redis-read-timeout-input",
|
|
2250
|
-
label: i
|
|
2610
|
+
label: r(i)("form.fields.read_timeout.label"),
|
|
2251
2611
|
"label-attributes": {
|
|
2252
|
-
info: i
|
|
2612
|
+
info: r(i)("form.fields.read_timeout.tooltip"),
|
|
2253
2613
|
tooltipAttributes: { maxWidth: "400" }
|
|
2254
2614
|
},
|
|
2255
|
-
readonly:
|
|
2615
|
+
readonly: r(s).readonly,
|
|
2256
2616
|
type: "number"
|
|
2257
2617
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2258
|
-
p(
|
|
2259
|
-
modelValue:
|
|
2260
|
-
"onUpdate:modelValue":
|
|
2618
|
+
p(N, {
|
|
2619
|
+
modelValue: r(s).fields.config.send_timeout,
|
|
2620
|
+
"onUpdate:modelValue": b[27] || (b[27] = (c) => r(s).fields.config.send_timeout = c),
|
|
2261
2621
|
"data-testid": "redis-send-timeout-input",
|
|
2262
|
-
label: i
|
|
2622
|
+
label: r(i)("form.fields.send_timeout.label"),
|
|
2263
2623
|
"label-attributes": {
|
|
2264
|
-
info: i
|
|
2624
|
+
info: r(i)("form.fields.send_timeout.tooltip"),
|
|
2265
2625
|
tooltipAttributes: { maxWidth: "400" }
|
|
2266
2626
|
},
|
|
2267
|
-
readonly:
|
|
2627
|
+
readonly: r(s).readonly,
|
|
2268
2628
|
type: "number"
|
|
2269
2629
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2270
|
-
p(
|
|
2271
|
-
modelValue:
|
|
2272
|
-
"onUpdate:modelValue":
|
|
2630
|
+
p(N, {
|
|
2631
|
+
modelValue: r(s).fields.config.connect_timeout,
|
|
2632
|
+
"onUpdate:modelValue": b[28] || (b[28] = (c) => r(s).fields.config.connect_timeout = c),
|
|
2273
2633
|
"data-testid": "redis-connect-timeout-input",
|
|
2274
|
-
label: i
|
|
2634
|
+
label: r(i)("form.fields.connect_timeout.label"),
|
|
2275
2635
|
"label-attributes": {
|
|
2276
|
-
info: i
|
|
2636
|
+
info: r(i)("form.fields.connect_timeout.tooltip"),
|
|
2277
2637
|
tooltipAttributes: { maxWidth: "400" }
|
|
2278
2638
|
},
|
|
2279
|
-
readonly:
|
|
2639
|
+
readonly: r(s).readonly,
|
|
2280
2640
|
type: "number"
|
|
2281
2641
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
|
|
2282
2642
|
]),
|
|
2283
2643
|
_: 1
|
|
2284
|
-
}, 8, ["description", "title"])) :
|
|
2644
|
+
}, 8, ["description", "title"])) : ie("", !0)
|
|
2285
2645
|
]),
|
|
2286
2646
|
_: 1
|
|
2287
2647
|
}, 8, ["action-teleport-target", "can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "slidout-top-offset"])
|
|
2288
2648
|
]),
|
|
2289
|
-
p(
|
|
2649
|
+
p(r(Oi), {
|
|
2290
2650
|
config: n.config,
|
|
2291
|
-
setup:
|
|
2292
|
-
onCancel:
|
|
2293
|
-
onProceed:
|
|
2651
|
+
setup: f.value,
|
|
2652
|
+
onCancel: b[30] || (b[30] = () => f.value = !1),
|
|
2653
|
+
onProceed: S
|
|
2294
2654
|
}, null, 8, ["config", "setup"]),
|
|
2295
|
-
p(
|
|
2296
|
-
"action-button-text": i
|
|
2655
|
+
p(x, {
|
|
2656
|
+
"action-button-text": r(i)("form.edit_warning_modal.confirm"),
|
|
2297
2657
|
"data-testid": "redis-update-warning-modal",
|
|
2298
2658
|
"hide-cancel-button": "",
|
|
2299
2659
|
"max-width": "640",
|
|
2300
|
-
title: i
|
|
2301
|
-
visible:
|
|
2302
|
-
onCancel:
|
|
2303
|
-
onProceed:
|
|
2660
|
+
title: r(i)("form.edit_warning_modal.title"),
|
|
2661
|
+
visible: Y.value,
|
|
2662
|
+
onCancel: b[31] || (b[31] = (c) => Y.value = !1),
|
|
2663
|
+
onProceed: he
|
|
2304
2664
|
}, {
|
|
2305
|
-
default:
|
|
2306
|
-
p(
|
|
2665
|
+
default: E(() => [
|
|
2666
|
+
p(r(a), {
|
|
2307
2667
|
keypath: "form.edit_warning_modal.description",
|
|
2308
2668
|
tag: "div"
|
|
2309
2669
|
}, {
|
|
2310
|
-
pluginCount:
|
|
2311
|
-
|
|
2670
|
+
pluginCount: E(() => [
|
|
2671
|
+
W("b", null, H(r(i)("form.edit_warning_modal.plugin_count", { count: X.value })), 1)
|
|
2312
2672
|
]),
|
|
2313
2673
|
_: 1
|
|
2314
2674
|
})
|
|
@@ -2318,10 +2678,10 @@ const Le = (e) => {
|
|
|
2318
2678
|
], 64);
|
|
2319
2679
|
};
|
|
2320
2680
|
}
|
|
2321
|
-
}),
|
|
2681
|
+
}), Cd = /* @__PURE__ */ pe(Ys, [["__scopeId", "data-v-dd883631"]]), Xs = {
|
|
2322
2682
|
class: "linked-plugins",
|
|
2323
2683
|
"data-testid": "linked-plugins-inline"
|
|
2324
|
-
},
|
|
2684
|
+
}, mt = 7, Qs = /* @__PURE__ */ te({
|
|
2325
2685
|
__name: "LinkedPluginsInline",
|
|
2326
2686
|
props: {
|
|
2327
2687
|
config: {
|
|
@@ -2335,45 +2695,45 @@ const Le = (e) => {
|
|
|
2335
2695
|
}
|
|
2336
2696
|
},
|
|
2337
2697
|
setup(e) {
|
|
2338
|
-
const t = e, n =
|
|
2698
|
+
const t = e, n = ti({
|
|
2339
2699
|
config: t.config,
|
|
2340
2700
|
partialId: t.partialId
|
|
2341
2701
|
});
|
|
2342
|
-
return (
|
|
2343
|
-
const a =
|
|
2344
|
-
return
|
|
2345
|
-
(
|
|
2346
|
-
key:
|
|
2347
|
-
name:
|
|
2702
|
+
return (o, i) => {
|
|
2703
|
+
const a = U("KBadge");
|
|
2704
|
+
return $(), G("div", Xs, [
|
|
2705
|
+
($(!0), G(Qe, null, ht(r(n).slice(0, mt), (d) => ($(), K(r(gn), {
|
|
2706
|
+
key: d.id,
|
|
2707
|
+
name: d.name,
|
|
2348
2708
|
size: 24
|
|
2349
2709
|
}, null, 8, ["name"]))), 128)),
|
|
2350
|
-
|
|
2710
|
+
r(n).length - mt > 0 ? ($(), K(a, {
|
|
2351
2711
|
key: 0,
|
|
2352
2712
|
appearance: "info"
|
|
2353
2713
|
}, {
|
|
2354
|
-
default:
|
|
2355
|
-
|
|
2714
|
+
default: E(() => [
|
|
2715
|
+
re(" +" + H(r(n).length - mt), 1)
|
|
2356
2716
|
]),
|
|
2357
2717
|
_: 1
|
|
2358
|
-
})) :
|
|
2718
|
+
})) : ie("", !0)
|
|
2359
2719
|
]);
|
|
2360
2720
|
};
|
|
2361
2721
|
}
|
|
2362
|
-
}),
|
|
2722
|
+
}), Zs = /* @__PURE__ */ pe(Qs, [["__scopeId", "data-v-c39556bc"]]), ed = { class: "plugin-item" }, td = /* @__PURE__ */ te({
|
|
2363
2723
|
__name: "PluginItem",
|
|
2364
2724
|
props: {
|
|
2365
2725
|
pluginName: {}
|
|
2366
2726
|
},
|
|
2367
2727
|
setup(e) {
|
|
2368
|
-
return (t, n) => (
|
|
2369
|
-
p(
|
|
2728
|
+
return (t, n) => ($(), G("div", ed, [
|
|
2729
|
+
p(r(gn), {
|
|
2370
2730
|
name: t.pluginName,
|
|
2371
2731
|
size: 24
|
|
2372
2732
|
}, null, 8, ["name"]),
|
|
2373
|
-
|
|
2733
|
+
W("span", null, H(t.pluginName), 1)
|
|
2374
2734
|
]));
|
|
2375
2735
|
}
|
|
2376
|
-
}),
|
|
2736
|
+
}), nd = /* @__PURE__ */ pe(td, [["__scopeId", "data-v-de964dc4"]]), id = { class: "toolbar-container" }, rd = /* @__PURE__ */ te({
|
|
2377
2737
|
__name: "LinkedPluginList",
|
|
2378
2738
|
props: {
|
|
2379
2739
|
config: {
|
|
@@ -2399,51 +2759,51 @@ const Le = (e) => {
|
|
|
2399
2759
|
},
|
|
2400
2760
|
emits: ["view-plugin", "load"],
|
|
2401
2761
|
setup(e, { emit: t }) {
|
|
2402
|
-
const n = e,
|
|
2403
|
-
{ key: "name", label:
|
|
2404
|
-
{ key: "instance_name", label:
|
|
2762
|
+
const n = e, o = t, { i18n: { t: i } } = be.useI18n(), a = [
|
|
2763
|
+
{ key: "name", label: i("linked_plugins_modal.headers.plugin") },
|
|
2764
|
+
{ key: "instance_name", label: i("linked_plugins_modal.headers.instance_name") },
|
|
2405
2765
|
{ key: "actions", hideLabel: !0 }
|
|
2406
|
-
], { fetcher:
|
|
2407
|
-
const { data:
|
|
2766
|
+
], { fetcher: d } = De(n.config), f = A(0), l = async (y) => {
|
|
2767
|
+
const { data: h, count: v } = await d({
|
|
2408
2768
|
partialId: n.partialId,
|
|
2409
|
-
size:
|
|
2410
|
-
offset:
|
|
2411
|
-
query:
|
|
2769
|
+
size: y.pageSize,
|
|
2770
|
+
offset: y.offset,
|
|
2771
|
+
query: y.query
|
|
2412
2772
|
});
|
|
2413
|
-
|
|
2414
|
-
const
|
|
2773
|
+
f.value = v;
|
|
2774
|
+
const O = {
|
|
2415
2775
|
total: v,
|
|
2416
|
-
data:
|
|
2776
|
+
data: h
|
|
2417
2777
|
};
|
|
2418
|
-
return
|
|
2419
|
-
}, u =
|
|
2778
|
+
return o("load", O), O;
|
|
2779
|
+
}, u = A(""), _ = z(() => n.config.app === "konnect" || n.isExactMatch ? {
|
|
2420
2780
|
isExactMatch: !0
|
|
2421
2781
|
} : {
|
|
2422
2782
|
isExactMatch: !1,
|
|
2423
2783
|
fields: { name: { searchable: !0 } },
|
|
2424
2784
|
schema: { name: { type: "text" } }
|
|
2425
|
-
}), S = (
|
|
2426
|
-
|
|
2785
|
+
}), S = (y) => {
|
|
2786
|
+
o("view-plugin", { id: y.id, plugin: y.name });
|
|
2427
2787
|
};
|
|
2428
|
-
return (
|
|
2429
|
-
const v =
|
|
2430
|
-
return
|
|
2431
|
-
"cache-identifier":
|
|
2788
|
+
return (y, h) => {
|
|
2789
|
+
const v = U("KDropdownItem"), O = U("KTableData");
|
|
2790
|
+
return $(), K(O, {
|
|
2791
|
+
"cache-identifier": r(ei)(e.partialId),
|
|
2432
2792
|
fetcher: l,
|
|
2433
2793
|
headers: a,
|
|
2434
2794
|
"hide-pagination-when-optional": "",
|
|
2435
|
-
"pagination-attributes": { totalCount:
|
|
2795
|
+
"pagination-attributes": { totalCount: f.value, disablePageJump: !0 },
|
|
2436
2796
|
"search-input": u.value
|
|
2437
|
-
},
|
|
2438
|
-
name:
|
|
2439
|
-
p(
|
|
2797
|
+
}, fi({
|
|
2798
|
+
name: E(({ rowValue: s }) => [
|
|
2799
|
+
p(nd, { "plugin-name": s }, null, 8, ["plugin-name"])
|
|
2440
2800
|
]),
|
|
2441
|
-
"action-items":
|
|
2801
|
+
"action-items": E(({ row: s }) => [
|
|
2442
2802
|
p(v, {
|
|
2443
|
-
onClick: (
|
|
2803
|
+
onClick: (k) => S(s)
|
|
2444
2804
|
}, {
|
|
2445
|
-
default:
|
|
2446
|
-
|
|
2805
|
+
default: E(() => [
|
|
2806
|
+
re(H(r(i)("actions.view_plugin")), 1)
|
|
2447
2807
|
]),
|
|
2448
2808
|
_: 2
|
|
2449
2809
|
}, 1032, ["onClick"])
|
|
@@ -2452,12 +2812,12 @@ const Le = (e) => {
|
|
|
2452
2812
|
}, [
|
|
2453
2813
|
e.filterBarEnabled ? {
|
|
2454
2814
|
name: "toolbar",
|
|
2455
|
-
fn:
|
|
2456
|
-
|
|
2457
|
-
p(
|
|
2815
|
+
fn: E(() => [
|
|
2816
|
+
W("div", id, [
|
|
2817
|
+
p(r(fn), {
|
|
2458
2818
|
modelValue: u.value,
|
|
2459
|
-
"onUpdate:modelValue":
|
|
2460
|
-
config:
|
|
2819
|
+
"onUpdate:modelValue": h[0] || (h[0] = (s) => u.value = s),
|
|
2820
|
+
config: _.value
|
|
2461
2821
|
}, null, 8, ["modelValue", "config"])
|
|
2462
2822
|
])
|
|
2463
2823
|
]),
|
|
@@ -2466,10 +2826,10 @@ const Le = (e) => {
|
|
|
2466
2826
|
]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
|
|
2467
2827
|
};
|
|
2468
2828
|
}
|
|
2469
|
-
}),
|
|
2829
|
+
}), od = /* @__PURE__ */ pe(rd, [["__scopeId", "data-v-50856d03"]]), ad = {
|
|
2470
2830
|
class: "linked-plugins-modal",
|
|
2471
2831
|
"data-testid": "linked-plugins-modal"
|
|
2472
|
-
},
|
|
2832
|
+
}, ld = /* @__PURE__ */ te({
|
|
2473
2833
|
__name: "LinkedPluginListModal",
|
|
2474
2834
|
props: {
|
|
2475
2835
|
config: {
|
|
@@ -2489,27 +2849,27 @@ const Le = (e) => {
|
|
|
2489
2849
|
},
|
|
2490
2850
|
emits: ["cancel", "proceed", "view-plugin"],
|
|
2491
2851
|
setup(e, { emit: t }) {
|
|
2492
|
-
const n = t, { i18n: { t:
|
|
2852
|
+
const n = t, { i18n: { t: o } } = be.useI18n(), i = A(0), a = z(() => o("linked_plugins_modal.title", { count: i.value })), d = () => {
|
|
2493
2853
|
n("cancel");
|
|
2494
|
-
},
|
|
2854
|
+
}, f = () => {
|
|
2495
2855
|
n("proceed");
|
|
2496
2856
|
};
|
|
2497
2857
|
return (l, u) => {
|
|
2498
|
-
const
|
|
2499
|
-
return
|
|
2500
|
-
p(
|
|
2501
|
-
"action-button-text":
|
|
2858
|
+
const _ = U("KModal");
|
|
2859
|
+
return $(), G("div", ad, [
|
|
2860
|
+
p(_, {
|
|
2861
|
+
"action-button-text": r(o)("actions.done"),
|
|
2502
2862
|
"hide-cancel-button": "",
|
|
2503
2863
|
title: a.value,
|
|
2504
2864
|
visible: e.visible,
|
|
2505
|
-
onCancel:
|
|
2506
|
-
onProceed:
|
|
2865
|
+
onCancel: d,
|
|
2866
|
+
onProceed: f
|
|
2507
2867
|
}, {
|
|
2508
|
-
default:
|
|
2509
|
-
p(
|
|
2868
|
+
default: E(() => [
|
|
2869
|
+
p(od, {
|
|
2510
2870
|
config: e.config,
|
|
2511
2871
|
"partial-id": e.redisConfigurationId,
|
|
2512
|
-
onLoad: u[0] || (u[0] = ({ total: S }) =>
|
|
2872
|
+
onLoad: u[0] || (u[0] = ({ total: S }) => i.value = S),
|
|
2513
2873
|
onViewPlugin: u[1] || (u[1] = (S) => n("view-plugin", S))
|
|
2514
2874
|
}, null, 8, ["config", "partial-id"])
|
|
2515
2875
|
]),
|
|
@@ -2518,7 +2878,7 @@ const Le = (e) => {
|
|
|
2518
2878
|
]);
|
|
2519
2879
|
};
|
|
2520
2880
|
}
|
|
2521
|
-
}),
|
|
2881
|
+
}), sd = /* @__PURE__ */ pe(ld, [["__scopeId", "data-v-6148b8bd"]]), dd = /* @__PURE__ */ te({
|
|
2522
2882
|
__name: "DeleteWarningModal",
|
|
2523
2883
|
props: {
|
|
2524
2884
|
visible: {
|
|
@@ -2528,29 +2888,29 @@ const Le = (e) => {
|
|
|
2528
2888
|
},
|
|
2529
2889
|
emits: ["close"],
|
|
2530
2890
|
setup(e, { emit: t }) {
|
|
2531
|
-
const { i18n: { t: n } } =
|
|
2532
|
-
|
|
2891
|
+
const { i18n: { t: n } } = be.useI18n(), o = t, i = () => {
|
|
2892
|
+
o("close");
|
|
2533
2893
|
};
|
|
2534
|
-
return (a,
|
|
2535
|
-
const
|
|
2536
|
-
return
|
|
2537
|
-
"action-button-text":
|
|
2894
|
+
return (a, d) => {
|
|
2895
|
+
const f = U("KModal");
|
|
2896
|
+
return $(), K(f, {
|
|
2897
|
+
"action-button-text": r(n)("actions.close"),
|
|
2538
2898
|
"data-testid": "remove-links-modal",
|
|
2539
2899
|
"hide-cancel-button": "",
|
|
2540
2900
|
"max-width": "640",
|
|
2541
|
-
title:
|
|
2901
|
+
title: r(n)("delete.title"),
|
|
2542
2902
|
visible: e.visible,
|
|
2543
|
-
onCancel:
|
|
2544
|
-
onProceed:
|
|
2903
|
+
onCancel: i,
|
|
2904
|
+
onProceed: i
|
|
2545
2905
|
}, {
|
|
2546
|
-
default:
|
|
2547
|
-
|
|
2906
|
+
default: E(() => [
|
|
2907
|
+
re(H(r(n)("delete.warning")), 1)
|
|
2548
2908
|
]),
|
|
2549
2909
|
_: 1
|
|
2550
2910
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
2551
2911
|
};
|
|
2552
2912
|
}
|
|
2553
|
-
}),
|
|
2913
|
+
}), ud = { class: "kong-ui-entities-partials-list" }, cd = 1e3, fd = /* @__PURE__ */ te({
|
|
2554
2914
|
__name: "RedisConfigurationList",
|
|
2555
2915
|
props: {
|
|
2556
2916
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2596,159 +2956,159 @@ const Le = (e) => {
|
|
|
2596
2956
|
},
|
|
2597
2957
|
emits: ["click:learn-more", "click:plugin", "copy:error", "copy:success", "delete:success", "error"],
|
|
2598
2958
|
setup(e, { emit: t }) {
|
|
2599
|
-
var
|
|
2600
|
-
const n = t,
|
|
2601
|
-
var
|
|
2602
|
-
let
|
|
2603
|
-
return
|
|
2604
|
-
}), a =
|
|
2605
|
-
async function
|
|
2606
|
-
const
|
|
2607
|
-
return
|
|
2959
|
+
var N;
|
|
2960
|
+
const n = t, o = e, i = z(() => {
|
|
2961
|
+
var x, c;
|
|
2962
|
+
let C = `${o.config.apiBaseUrl}${je.list[o.config.app]}`;
|
|
2963
|
+
return o.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((x = o.config) == null ? void 0 : x.controlPlaneId) || "") : o.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (c = o.config) != null && c.workspace ? `/${o.config.workspace}` : "")), C;
|
|
2964
|
+
}), a = A(!1), d = A(""), f = A(null), l = A(void 0), u = A(!1), _ = A(!1), S = A(""), y = A(!1), h = _i(o.config, i.value), v = A(1), O = z(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: s, fetcherState: k } = yi(o.config, i);
|
|
2965
|
+
async function m(C) {
|
|
2966
|
+
const x = await s({ ...C, pageSize: cd });
|
|
2967
|
+
return x.data = x.data.filter((c) => c.type === ee.REDIS_CE || c.type === ee.REDIS_EE), x;
|
|
2608
2968
|
}
|
|
2609
|
-
const { i18n: { t:
|
|
2610
|
-
const
|
|
2611
|
-
if (
|
|
2969
|
+
const { i18n: { t: g } } = be.useI18n(), { axiosInstance: I } = Tt((N = o.config) == null ? void 0 : N.axiosRequestConfig), R = pn(), q = A(""), ne = z(() => {
|
|
2970
|
+
const C = o.config.app === "konnect" || o.config.isExactMatch;
|
|
2971
|
+
if (C)
|
|
2612
2972
|
return {
|
|
2613
2973
|
isExactMatch: !0,
|
|
2614
|
-
placeholder:
|
|
2974
|
+
placeholder: g("search.placeholder_for_exact_match")
|
|
2615
2975
|
};
|
|
2616
|
-
const { name:
|
|
2976
|
+
const { name: x } = Y;
|
|
2617
2977
|
return {
|
|
2618
|
-
isExactMatch:
|
|
2978
|
+
isExactMatch: C,
|
|
2619
2979
|
fields: {
|
|
2620
|
-
name:
|
|
2980
|
+
name: x
|
|
2621
2981
|
},
|
|
2622
|
-
schema:
|
|
2982
|
+
schema: o.config.filterSchema
|
|
2623
2983
|
};
|
|
2624
|
-
}), { fetcher:
|
|
2625
|
-
ctaPath:
|
|
2984
|
+
}), { fetcher: _e } = De(o.config), ae = A({
|
|
2985
|
+
ctaPath: o.config.createRoute,
|
|
2626
2986
|
ctaText: void 0,
|
|
2627
|
-
message: `${
|
|
2628
|
-
title:
|
|
2629
|
-
}),
|
|
2630
|
-
name: { label:
|
|
2631
|
-
type: { label:
|
|
2632
|
-
tags: { label:
|
|
2633
|
-
plugins: { label:
|
|
2634
|
-
},
|
|
2635
|
-
label:
|
|
2636
|
-
to:
|
|
2637
|
-
}),
|
|
2638
|
-
label:
|
|
2639
|
-
to:
|
|
2640
|
-
}),
|
|
2641
|
-
const { count:
|
|
2642
|
-
|
|
2987
|
+
message: `${g("redis.empty_state.description")}${o.config.additionMessageForEmptyState ? ` ${o.config.additionMessageForEmptyState}` : ""}`,
|
|
2988
|
+
title: g("redis.title")
|
|
2989
|
+
}), Y = {
|
|
2990
|
+
name: { label: g("list.table_headers.name"), searchable: !0, hidable: !1, sortable: !0 },
|
|
2991
|
+
type: { label: g("list.table_headers.type") },
|
|
2992
|
+
tags: { label: g("list.table_headers.tags") },
|
|
2993
|
+
plugins: { label: g("list.table_headers.plugins") }
|
|
2994
|
+
}, ye = (C) => ({
|
|
2995
|
+
label: g("actions.view"),
|
|
2996
|
+
to: o.config.getViewRoute(C)
|
|
2997
|
+
}), X = (C) => ({
|
|
2998
|
+
label: g("actions.edit"),
|
|
2999
|
+
to: o.config.getEditRoute(C)
|
|
3000
|
+
}), Q = async (C) => {
|
|
3001
|
+
const { count: x } = await _e({ partialId: C.id });
|
|
3002
|
+
x > 0 ? y.value = !0 : (l.value = C, u.value = !0);
|
|
2643
3003
|
}, ve = () => {
|
|
2644
|
-
|
|
2645
|
-
},
|
|
2646
|
-
var
|
|
2647
|
-
await ((
|
|
2648
|
-
},
|
|
3004
|
+
q.value = "";
|
|
3005
|
+
}, he = async (C) => {
|
|
3006
|
+
var c;
|
|
3007
|
+
await ((c = o.canRetrieve) == null ? void 0 : c.call(o, C)) && R.push(o.config.getViewRoute(C.id));
|
|
3008
|
+
}, Oe = () => {
|
|
2649
3009
|
u.value = !1;
|
|
2650
|
-
},
|
|
2651
|
-
|
|
2652
|
-
},
|
|
2653
|
-
var
|
|
2654
|
-
if ((
|
|
2655
|
-
|
|
3010
|
+
}, me = (C) => {
|
|
3011
|
+
d.value = C, a.value = !0;
|
|
3012
|
+
}, it = async () => {
|
|
3013
|
+
var C, x, c;
|
|
3014
|
+
if ((C = l.value) != null && C.id) {
|
|
3015
|
+
_.value = !0;
|
|
2656
3016
|
try {
|
|
2657
|
-
await
|
|
2658
|
-
} catch (
|
|
2659
|
-
S.value = ((
|
|
3017
|
+
await I.delete(h(l.value.id)), _.value = !1, u.value = !1, Ue(), n("delete:success", l.value);
|
|
3018
|
+
} catch (B) {
|
|
3019
|
+
S.value = ((c = (x = B.response) == null ? void 0 : x.data) == null ? void 0 : c.message) || B.message || g("errors.delete"), n("error", B);
|
|
2660
3020
|
} finally {
|
|
2661
|
-
|
|
3021
|
+
_.value = !1;
|
|
2662
3022
|
}
|
|
2663
3023
|
}
|
|
2664
|
-
},
|
|
3024
|
+
}, Ue = () => {
|
|
2665
3025
|
v.value++;
|
|
2666
|
-
},
|
|
2667
|
-
switch (
|
|
2668
|
-
case
|
|
2669
|
-
return `${
|
|
2670
|
-
case
|
|
2671
|
-
return `${
|
|
2672
|
-
case
|
|
2673
|
-
return `${
|
|
2674
|
-
case
|
|
2675
|
-
return `${
|
|
3026
|
+
}, D = (C) => {
|
|
3027
|
+
switch (nt(C)) {
|
|
3028
|
+
case w.HOST_PORT_CE:
|
|
3029
|
+
return `${g("form.options.type.host_port")}${g("form.options.type.suffix_open_source")}`;
|
|
3030
|
+
case w.HOST_PORT_EE:
|
|
3031
|
+
return `${g("form.options.type.host_port")}${g("form.options.type.suffix_enterprise")}`;
|
|
3032
|
+
case w.SENTINEL:
|
|
3033
|
+
return `${g("form.options.type.sentinel")}${g("form.options.type.suffix_enterprise")}`;
|
|
3034
|
+
case w.CLUSTER:
|
|
3035
|
+
return `${g("form.options.type.cluster")}${g("form.options.type.suffix_enterprise")}`;
|
|
2676
3036
|
}
|
|
2677
|
-
},
|
|
2678
|
-
|
|
2679
|
-
},
|
|
2680
|
-
const
|
|
2681
|
-
if (!await
|
|
3037
|
+
}, b = () => {
|
|
3038
|
+
R.push(o.config.createRoute);
|
|
3039
|
+
}, rt = async (C, x) => {
|
|
3040
|
+
const c = C.id;
|
|
3041
|
+
if (!await x(c)) {
|
|
2682
3042
|
n("copy:error", {
|
|
2683
|
-
entity:
|
|
3043
|
+
entity: C,
|
|
2684
3044
|
field: "id",
|
|
2685
|
-
message:
|
|
3045
|
+
message: g("errors.copy")
|
|
2686
3046
|
});
|
|
2687
3047
|
return;
|
|
2688
3048
|
}
|
|
2689
3049
|
n("copy:success", {
|
|
2690
|
-
entity:
|
|
3050
|
+
entity: C,
|
|
2691
3051
|
field: "id",
|
|
2692
|
-
message:
|
|
3052
|
+
message: g("copy.success", { val: c })
|
|
2693
3053
|
});
|
|
2694
3054
|
};
|
|
2695
|
-
|
|
2696
|
-
var
|
|
2697
|
-
if (
|
|
2698
|
-
|
|
2699
|
-
title:
|
|
2700
|
-
}, (
|
|
3055
|
+
ke(k, (C) => {
|
|
3056
|
+
var x, c, B;
|
|
3057
|
+
if (C.status === vi.Error) {
|
|
3058
|
+
f.value = {
|
|
3059
|
+
title: g("errors.general")
|
|
3060
|
+
}, (B = (c = (x = C.error) == null ? void 0 : x.response) == null ? void 0 : c.data) != null && B.message && (f.value.message = C.error.response.data.message), n("error", C.error);
|
|
2701
3061
|
return;
|
|
2702
3062
|
}
|
|
2703
|
-
|
|
3063
|
+
f.value = null;
|
|
2704
3064
|
});
|
|
2705
|
-
const
|
|
2706
|
-
return
|
|
2707
|
-
|
|
3065
|
+
const Ce = A(!1);
|
|
3066
|
+
return ke(o.canCreate, async (C) => {
|
|
3067
|
+
Ce.value = await C, Ce.value ? ae.value.ctaText = g("actions.create") : ae.value.ctaText = void 0;
|
|
2708
3068
|
}, {
|
|
2709
3069
|
immediate: !0
|
|
2710
|
-
}), (
|
|
2711
|
-
const
|
|
2712
|
-
return
|
|
2713
|
-
p(
|
|
3070
|
+
}), (C, x) => {
|
|
3071
|
+
const c = U("KButton"), B = U("KDropdownItem"), ni = U("KClipboardProvider"), ii = U("KEmptyState");
|
|
3072
|
+
return $(), G("div", ud, [
|
|
3073
|
+
p(r(hi), {
|
|
2714
3074
|
"cache-identifier": e.cacheIdentifier,
|
|
2715
|
-
"disable-sorting":
|
|
2716
|
-
"empty-state-options":
|
|
3075
|
+
"disable-sorting": O.value,
|
|
3076
|
+
"empty-state-options": ae.value,
|
|
2717
3077
|
"enable-entity-actions": "",
|
|
2718
|
-
"error-message":
|
|
2719
|
-
fetcher:
|
|
3078
|
+
"error-message": f.value,
|
|
3079
|
+
fetcher: m,
|
|
2720
3080
|
"fetcher-cache-key": v.value,
|
|
2721
3081
|
"pagination-type": "offset",
|
|
2722
3082
|
"preferences-storage-key": "kong-ui-entities-redis-configuration-list",
|
|
2723
|
-
query:
|
|
2724
|
-
"table-headers":
|
|
3083
|
+
query: q.value,
|
|
3084
|
+
"table-headers": Y,
|
|
2725
3085
|
onClearSearchInput: ve,
|
|
2726
|
-
"onClick:row":
|
|
2727
|
-
onSort:
|
|
3086
|
+
"onClick:row": x[1] || (x[1] = (V) => he(V)),
|
|
3087
|
+
onSort: Ue
|
|
2728
3088
|
}, {
|
|
2729
|
-
"toolbar-filter":
|
|
2730
|
-
p(
|
|
2731
|
-
modelValue:
|
|
2732
|
-
"onUpdate:modelValue":
|
|
2733
|
-
config:
|
|
3089
|
+
"toolbar-filter": E(() => [
|
|
3090
|
+
p(r(fn), {
|
|
3091
|
+
modelValue: q.value,
|
|
3092
|
+
"onUpdate:modelValue": x[0] || (x[0] = (V) => q.value = V),
|
|
3093
|
+
config: ne.value
|
|
2734
3094
|
}, null, 8, ["modelValue", "config"])
|
|
2735
3095
|
]),
|
|
2736
|
-
"toolbar-button":
|
|
2737
|
-
(
|
|
3096
|
+
"toolbar-button": E(() => [
|
|
3097
|
+
($(), K(mi, {
|
|
2738
3098
|
disabled: !e.useActionOutside,
|
|
2739
3099
|
to: "#kong-ui-app-page-header-action-button"
|
|
2740
3100
|
}, [
|
|
2741
|
-
p(
|
|
2742
|
-
default:
|
|
2743
|
-
p(
|
|
3101
|
+
p(r(Ne), { "auth-function": e.canCreate }, {
|
|
3102
|
+
default: E(() => [
|
|
3103
|
+
p(c, {
|
|
2744
3104
|
appearance: "primary",
|
|
2745
3105
|
"data-testid": "toolbar-add-redis-configuration",
|
|
2746
3106
|
size: "large",
|
|
2747
3107
|
to: e.config.createRoute
|
|
2748
3108
|
}, {
|
|
2749
|
-
default:
|
|
2750
|
-
p(
|
|
2751
|
-
|
|
3109
|
+
default: E(() => [
|
|
3110
|
+
p(r($t)),
|
|
3111
|
+
re(" " + H(r(g)("actions.create")), 1)
|
|
2752
3112
|
]),
|
|
2753
3113
|
_: 1
|
|
2754
3114
|
}, 8, ["to"])
|
|
@@ -2757,72 +3117,72 @@ const Le = (e) => {
|
|
|
2757
3117
|
}, 8, ["auth-function"])
|
|
2758
3118
|
], 8, ["disabled"]))
|
|
2759
3119
|
]),
|
|
2760
|
-
name:
|
|
2761
|
-
|
|
3120
|
+
name: E(({ rowValue: V }) => [
|
|
3121
|
+
W("b", null, H(V ?? "-"), 1)
|
|
2762
3122
|
]),
|
|
2763
|
-
type:
|
|
2764
|
-
|
|
3123
|
+
type: E(({ row: V }) => [
|
|
3124
|
+
re(H(D(V)), 1)
|
|
2765
3125
|
]),
|
|
2766
|
-
tags:
|
|
2767
|
-
p(
|
|
3126
|
+
tags: E(({ rowValue: V }) => [
|
|
3127
|
+
p(r(Ti), { tags: V }, null, 8, ["tags"])
|
|
2768
3128
|
]),
|
|
2769
|
-
plugins:
|
|
2770
|
-
p(
|
|
3129
|
+
plugins: E(({ row: V }) => [
|
|
3130
|
+
p(Zs, {
|
|
2771
3131
|
config: e.config,
|
|
2772
|
-
"partial-id":
|
|
2773
|
-
onClick:
|
|
3132
|
+
"partial-id": V.id,
|
|
3133
|
+
onClick: pi((ot) => me(V.id), ["stop"])
|
|
2774
3134
|
}, null, 8, ["config", "partial-id", "onClick"])
|
|
2775
3135
|
]),
|
|
2776
|
-
actions:
|
|
2777
|
-
p(
|
|
2778
|
-
default:
|
|
2779
|
-
p(
|
|
3136
|
+
actions: E(({ row: V }) => [
|
|
3137
|
+
p(ni, null, {
|
|
3138
|
+
default: E(({ copyToClipboard: ot }) => [
|
|
3139
|
+
p(B, {
|
|
2780
3140
|
"data-testid": "action-entity-copy-id",
|
|
2781
|
-
onClick: (
|
|
3141
|
+
onClick: (md) => rt(V, ot)
|
|
2782
3142
|
}, {
|
|
2783
|
-
default:
|
|
2784
|
-
|
|
3143
|
+
default: E(() => [
|
|
3144
|
+
re(H(r(g)("actions.copy_id")), 1)
|
|
2785
3145
|
]),
|
|
2786
3146
|
_: 2
|
|
2787
3147
|
}, 1032, ["onClick"])
|
|
2788
3148
|
]),
|
|
2789
3149
|
_: 2
|
|
2790
3150
|
}, 1024),
|
|
2791
|
-
p(
|
|
2792
|
-
"auth-function": () => e.canRetrieve(
|
|
3151
|
+
p(r(Ne), {
|
|
3152
|
+
"auth-function": () => e.canRetrieve(V)
|
|
2793
3153
|
}, {
|
|
2794
|
-
default:
|
|
2795
|
-
p(
|
|
3154
|
+
default: E(() => [
|
|
3155
|
+
p(B, {
|
|
2796
3156
|
"data-testid": "action-entity-view",
|
|
2797
3157
|
"has-divider": "",
|
|
2798
|
-
item:
|
|
3158
|
+
item: ye(V.id)
|
|
2799
3159
|
}, null, 8, ["item"])
|
|
2800
3160
|
]),
|
|
2801
3161
|
_: 2
|
|
2802
3162
|
}, 1032, ["auth-function"]),
|
|
2803
|
-
p(
|
|
2804
|
-
"auth-function": () => e.canEdit(
|
|
3163
|
+
p(r(Ne), {
|
|
3164
|
+
"auth-function": () => e.canEdit(V)
|
|
2805
3165
|
}, {
|
|
2806
|
-
default:
|
|
2807
|
-
p(
|
|
3166
|
+
default: E(() => [
|
|
3167
|
+
p(B, {
|
|
2808
3168
|
"data-testid": "action-entity-edit",
|
|
2809
|
-
item:
|
|
3169
|
+
item: X(V.id)
|
|
2810
3170
|
}, null, 8, ["item"])
|
|
2811
3171
|
]),
|
|
2812
3172
|
_: 2
|
|
2813
3173
|
}, 1032, ["auth-function"]),
|
|
2814
|
-
p(
|
|
2815
|
-
"auth-function": () => e.canDelete(
|
|
3174
|
+
p(r(Ne), {
|
|
3175
|
+
"auth-function": () => e.canDelete(V)
|
|
2816
3176
|
}, {
|
|
2817
|
-
default:
|
|
2818
|
-
p(
|
|
3177
|
+
default: E(() => [
|
|
3178
|
+
p(B, {
|
|
2819
3179
|
danger: "",
|
|
2820
3180
|
"data-testid": "action-entity-delete",
|
|
2821
3181
|
"has-divider": "",
|
|
2822
|
-
onClick: (
|
|
3182
|
+
onClick: (ot) => Q(V)
|
|
2823
3183
|
}, {
|
|
2824
|
-
default:
|
|
2825
|
-
|
|
3184
|
+
default: E(() => [
|
|
3185
|
+
re(H(r(g)("actions.delete")), 1)
|
|
2826
3186
|
]),
|
|
2827
3187
|
_: 2
|
|
2828
3188
|
}, 1032, ["onClick"])
|
|
@@ -2830,73 +3190,73 @@ const Le = (e) => {
|
|
|
2830
3190
|
_: 2
|
|
2831
3191
|
}, 1032, ["auth-function"])
|
|
2832
3192
|
]),
|
|
2833
|
-
"empty-state":
|
|
2834
|
-
p(
|
|
2835
|
-
"action-button-text":
|
|
2836
|
-
"action-button-visible":
|
|
3193
|
+
"empty-state": E(() => [
|
|
3194
|
+
p(ii, {
|
|
3195
|
+
"action-button-text": r(g)("list.action"),
|
|
3196
|
+
"action-button-visible": Ce.value,
|
|
2837
3197
|
"data-testid": "redis-entity-empty-state",
|
|
2838
3198
|
features: [
|
|
2839
3199
|
{
|
|
2840
3200
|
key: "feature-1",
|
|
2841
|
-
title:
|
|
2842
|
-
description:
|
|
3201
|
+
title: r(g)("list.empty_state.feature_1.title"),
|
|
3202
|
+
description: r(g)("list.empty_state.feature_1.description")
|
|
2843
3203
|
},
|
|
2844
3204
|
{
|
|
2845
3205
|
key: "feature-2",
|
|
2846
|
-
title:
|
|
2847
|
-
description:
|
|
3206
|
+
title: r(g)("list.empty_state.feature_2.title"),
|
|
3207
|
+
description: r(g)("list.empty_state.feature_2.description")
|
|
2848
3208
|
}
|
|
2849
3209
|
],
|
|
2850
3210
|
"icon-background": "",
|
|
2851
|
-
message:
|
|
2852
|
-
title:
|
|
2853
|
-
onClickAction:
|
|
3211
|
+
message: r(g)("list.empty_state.description"),
|
|
3212
|
+
title: r(g)("redis.title"),
|
|
3213
|
+
onClickAction: b
|
|
2854
3214
|
}, {
|
|
2855
|
-
icon:
|
|
2856
|
-
p(
|
|
3215
|
+
icon: E(() => [
|
|
3216
|
+
p(r(Ri), { decorative: "" })
|
|
2857
3217
|
]),
|
|
2858
|
-
"feature-icon-feature-1":
|
|
2859
|
-
p(
|
|
3218
|
+
"feature-icon-feature-1": E(() => [
|
|
3219
|
+
p(r(xi))
|
|
2860
3220
|
]),
|
|
2861
|
-
"feature-icon-feature-2":
|
|
2862
|
-
p(
|
|
3221
|
+
"feature-icon-feature-2": E(() => [
|
|
3222
|
+
p(r(Ii))
|
|
2863
3223
|
]),
|
|
2864
|
-
"action-button-icon":
|
|
2865
|
-
p(
|
|
3224
|
+
"action-button-icon": E(() => [
|
|
3225
|
+
p(r($t), { decorative: "" })
|
|
2866
3226
|
]),
|
|
2867
3227
|
_: 1
|
|
2868
3228
|
}, 8, ["action-button-text", "action-button-visible", "features", "message", "title"])
|
|
2869
3229
|
]),
|
|
2870
3230
|
_: 1
|
|
2871
3231
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
|
|
2872
|
-
p(
|
|
2873
|
-
visible:
|
|
2874
|
-
onClose:
|
|
3232
|
+
p(dd, {
|
|
3233
|
+
visible: y.value,
|
|
3234
|
+
onClose: x[2] || (x[2] = (V) => y.value = !1)
|
|
2875
3235
|
}, null, 8, ["visible"]),
|
|
2876
|
-
p(
|
|
2877
|
-
"action-pending":
|
|
2878
|
-
description:
|
|
3236
|
+
p(r(wi), {
|
|
3237
|
+
"action-pending": _.value,
|
|
3238
|
+
description: r(g)("delete.description"),
|
|
2879
3239
|
"entity-name": l.value && (l.value.name || l.value.id),
|
|
2880
|
-
"entity-type":
|
|
3240
|
+
"entity-type": r(Si).RedisConfiguration,
|
|
2881
3241
|
error: S.value,
|
|
2882
3242
|
"need-confirmation": !0,
|
|
2883
|
-
title:
|
|
3243
|
+
title: r(g)("delete.title"),
|
|
2884
3244
|
visible: u.value,
|
|
2885
|
-
onCancel:
|
|
2886
|
-
onProceed:
|
|
3245
|
+
onCancel: Oe,
|
|
3246
|
+
onProceed: it
|
|
2887
3247
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
2888
|
-
p(
|
|
3248
|
+
p(sd, {
|
|
2889
3249
|
config: e.config,
|
|
2890
|
-
"redis-configuration-id":
|
|
3250
|
+
"redis-configuration-id": d.value,
|
|
2891
3251
|
visible: a.value,
|
|
2892
|
-
onCancel:
|
|
2893
|
-
onProceed:
|
|
2894
|
-
onViewPlugin:
|
|
3252
|
+
onCancel: x[3] || (x[3] = (V) => a.value = !1),
|
|
3253
|
+
onProceed: x[4] || (x[4] = (V) => a.value = !1),
|
|
3254
|
+
onViewPlugin: x[5] || (x[5] = (V) => n("click:plugin", V))
|
|
2895
3255
|
}, null, 8, ["config", "redis-configuration-id", "visible"])
|
|
2896
3256
|
]);
|
|
2897
3257
|
};
|
|
2898
3258
|
}
|
|
2899
|
-
}),
|
|
3259
|
+
}), Id = /* @__PURE__ */ pe(fd, [["__scopeId", "data-v-4e5be541"]]), pd = { class: "kong-ui-consumer-group-entity-config-card" }, xd = /* @__PURE__ */ te({
|
|
2900
3260
|
__name: "RedisConfigurationConfigCard",
|
|
2901
3261
|
props: {
|
|
2902
3262
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2923,26 +3283,26 @@ const Le = (e) => {
|
|
|
2923
3283
|
},
|
|
2924
3284
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
2925
3285
|
setup(e, { emit: t }) {
|
|
2926
|
-
const n = e,
|
|
2927
|
-
|
|
2928
|
-
}, l =
|
|
2929
|
-
const v =
|
|
2930
|
-
let
|
|
2931
|
-
switch (
|
|
2932
|
-
case
|
|
2933
|
-
|
|
3286
|
+
const n = e, o = t, { i18n: { t: i } } = be.useI18n(), a = z(() => je.form[n.config.app].edit), d = A(Re), f = (v) => {
|
|
3287
|
+
d.value = nt(v), o("fetch:success", v);
|
|
3288
|
+
}, l = z(() => {
|
|
3289
|
+
const v = d.value === w.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
3290
|
+
let O = "";
|
|
3291
|
+
switch (d.value) {
|
|
3292
|
+
case w.HOST_PORT_CE:
|
|
3293
|
+
O = i("form.options.type.host_port");
|
|
2934
3294
|
break;
|
|
2935
|
-
case
|
|
2936
|
-
|
|
3295
|
+
case w.HOST_PORT_EE:
|
|
3296
|
+
O = i("form.options.type.host_port");
|
|
2937
3297
|
break;
|
|
2938
|
-
case
|
|
2939
|
-
|
|
3298
|
+
case w.CLUSTER:
|
|
3299
|
+
O = i("form.options.type.cluster");
|
|
2940
3300
|
break;
|
|
2941
|
-
case
|
|
2942
|
-
|
|
3301
|
+
case w.SENTINEL:
|
|
3302
|
+
O = i("form.options.type.sentinel");
|
|
2943
3303
|
break;
|
|
2944
3304
|
}
|
|
2945
|
-
return `${
|
|
3305
|
+
return `${O}${v}`;
|
|
2946
3306
|
}), u = (v) => ({
|
|
2947
3307
|
id: v.id,
|
|
2948
3308
|
name: v.name,
|
|
@@ -2951,184 +3311,193 @@ const Le = (e) => {
|
|
|
2951
3311
|
updated_at: v.updated_at,
|
|
2952
3312
|
type: v.type,
|
|
2953
3313
|
...v.config
|
|
2954
|
-
}),
|
|
2955
|
-
const { id: s, name:
|
|
2956
|
-
return {
|
|
3314
|
+
}), _ = (v, O) => {
|
|
3315
|
+
const { id: s, name: k, created_at: m, updated_at: g, type: I, tags: R, ...q } = v;
|
|
3316
|
+
return O === "terraform" ? {
|
|
3317
|
+
[I.replaceAll("-", "_")]: {
|
|
3318
|
+
id: s,
|
|
3319
|
+
name: k,
|
|
3320
|
+
tags: R,
|
|
3321
|
+
created_at: m,
|
|
3322
|
+
updated_at: g,
|
|
3323
|
+
config: q
|
|
3324
|
+
}
|
|
3325
|
+
} : {
|
|
2957
3326
|
id: s,
|
|
2958
|
-
name:
|
|
2959
|
-
tags:
|
|
2960
|
-
created_at:
|
|
2961
|
-
updated_at:
|
|
2962
|
-
type:
|
|
2963
|
-
config:
|
|
3327
|
+
name: k,
|
|
3328
|
+
tags: R,
|
|
3329
|
+
created_at: m,
|
|
3330
|
+
updated_at: g,
|
|
3331
|
+
type: I,
|
|
3332
|
+
config: q
|
|
2964
3333
|
};
|
|
2965
3334
|
}, S = {
|
|
2966
3335
|
id: {},
|
|
2967
3336
|
name: {
|
|
2968
|
-
type:
|
|
2969
|
-
section:
|
|
2970
|
-
label:
|
|
3337
|
+
type: M.Text,
|
|
3338
|
+
section: L.Basic,
|
|
3339
|
+
label: i("form.fields.name.label")
|
|
2971
3340
|
},
|
|
2972
3341
|
tags: {
|
|
2973
|
-
type:
|
|
2974
|
-
section:
|
|
2975
|
-
label:
|
|
2976
|
-
tooltip:
|
|
3342
|
+
type: M.BadgeTag,
|
|
3343
|
+
section: L.Basic,
|
|
3344
|
+
label: i("form.fields.tags.label"),
|
|
3345
|
+
tooltip: i("form.fields.tags.tooltip")
|
|
2977
3346
|
},
|
|
2978
3347
|
updated_at: {},
|
|
2979
3348
|
created_at: {},
|
|
2980
3349
|
type: {
|
|
2981
|
-
type:
|
|
2982
|
-
section:
|
|
2983
|
-
label:
|
|
3350
|
+
type: M.Text,
|
|
3351
|
+
section: L.Basic,
|
|
3352
|
+
label: i("form.fields.type.label")
|
|
2984
3353
|
},
|
|
2985
3354
|
cluster_max_redirections: {
|
|
2986
|
-
type:
|
|
2987
|
-
section:
|
|
2988
|
-
tooltip:
|
|
2989
|
-
label:
|
|
3355
|
+
type: M.Text,
|
|
3356
|
+
section: L.Basic,
|
|
3357
|
+
tooltip: i("form.fields.cluster_max_redirections.tooltip"),
|
|
3358
|
+
label: i("form.fields.cluster_max_redirections.label")
|
|
2990
3359
|
},
|
|
2991
3360
|
cluster_nodes: {
|
|
2992
|
-
type:
|
|
2993
|
-
section:
|
|
2994
|
-
label:
|
|
2995
|
-
tooltip:
|
|
3361
|
+
type: M.JsonArray,
|
|
3362
|
+
section: L.Basic,
|
|
3363
|
+
label: i("form.fields.cluster_nodes.title"),
|
|
3364
|
+
tooltip: i("form.fields.cluster_nodes.tooltip")
|
|
2996
3365
|
},
|
|
2997
3366
|
connect_timeout: {
|
|
2998
|
-
type:
|
|
2999
|
-
section:
|
|
3000
|
-
label:
|
|
3001
|
-
tooltip:
|
|
3367
|
+
type: M.Text,
|
|
3368
|
+
section: L.Basic,
|
|
3369
|
+
label: i("form.fields.connect_timeout.label"),
|
|
3370
|
+
tooltip: i("form.fields.connect_timeout.tooltip")
|
|
3002
3371
|
},
|
|
3003
3372
|
connection_is_proxied: {
|
|
3004
|
-
type:
|
|
3005
|
-
section:
|
|
3006
|
-
label:
|
|
3007
|
-
tooltip:
|
|
3373
|
+
type: M.Text,
|
|
3374
|
+
section: L.Basic,
|
|
3375
|
+
label: i("form.fields.connection_is_proxied.label"),
|
|
3376
|
+
tooltip: i("form.fields.connection_is_proxied.tooltip")
|
|
3008
3377
|
},
|
|
3009
3378
|
database: {
|
|
3010
|
-
type:
|
|
3011
|
-
section:
|
|
3012
|
-
label:
|
|
3013
|
-
tooltip:
|
|
3379
|
+
type: M.Text,
|
|
3380
|
+
section: L.Basic,
|
|
3381
|
+
label: i("form.fields.database.label"),
|
|
3382
|
+
tooltip: i("form.fields.database.tooltip")
|
|
3014
3383
|
},
|
|
3015
3384
|
host: {
|
|
3016
|
-
type:
|
|
3017
|
-
section:
|
|
3018
|
-
label:
|
|
3019
|
-
tooltip:
|
|
3385
|
+
type: M.Text,
|
|
3386
|
+
section: L.Basic,
|
|
3387
|
+
label: i("form.fields.host.label"),
|
|
3388
|
+
tooltip: i("form.fields.host.tooltip")
|
|
3020
3389
|
},
|
|
3021
3390
|
keepalive_backlog: {
|
|
3022
|
-
type:
|
|
3023
|
-
section:
|
|
3024
|
-
label:
|
|
3025
|
-
tooltip:
|
|
3391
|
+
type: M.Text,
|
|
3392
|
+
section: L.Basic,
|
|
3393
|
+
label: i("form.fields.keepalive_backlog.label"),
|
|
3394
|
+
tooltip: i("form.fields.keepalive_backlog.tooltip")
|
|
3026
3395
|
},
|
|
3027
3396
|
keepalive_pool_size: {
|
|
3028
|
-
type:
|
|
3029
|
-
section:
|
|
3030
|
-
label:
|
|
3031
|
-
tooltip:
|
|
3397
|
+
type: M.Text,
|
|
3398
|
+
section: L.Basic,
|
|
3399
|
+
label: i("form.fields.keepalive_pool_size.label"),
|
|
3400
|
+
tooltip: i("form.fields.keepalive_pool_size.tooltip")
|
|
3032
3401
|
},
|
|
3033
3402
|
password: {
|
|
3034
|
-
type:
|
|
3035
|
-
section:
|
|
3036
|
-
label:
|
|
3037
|
-
tooltip:
|
|
3403
|
+
type: M.Redacted,
|
|
3404
|
+
section: L.Basic,
|
|
3405
|
+
label: i("form.fields.password.label"),
|
|
3406
|
+
tooltip: i("form.fields.password.tooltip")
|
|
3038
3407
|
},
|
|
3039
3408
|
port: {
|
|
3040
|
-
type:
|
|
3041
|
-
section:
|
|
3042
|
-
label:
|
|
3043
|
-
tooltip:
|
|
3409
|
+
type: M.Text,
|
|
3410
|
+
section: L.Basic,
|
|
3411
|
+
label: i("form.fields.port.label"),
|
|
3412
|
+
tooltip: i("form.fields.port.tooltip")
|
|
3044
3413
|
},
|
|
3045
3414
|
read_timeout: {
|
|
3046
|
-
type:
|
|
3047
|
-
section:
|
|
3048
|
-
label:
|
|
3049
|
-
tooltip:
|
|
3415
|
+
type: M.Text,
|
|
3416
|
+
section: L.Basic,
|
|
3417
|
+
label: i("form.fields.read_timeout.label"),
|
|
3418
|
+
tooltip: i("form.fields.read_timeout.tooltip")
|
|
3050
3419
|
},
|
|
3051
3420
|
send_timeout: {
|
|
3052
|
-
type:
|
|
3053
|
-
section:
|
|
3054
|
-
label:
|
|
3055
|
-
tooltip:
|
|
3421
|
+
type: M.Text,
|
|
3422
|
+
section: L.Basic,
|
|
3423
|
+
label: i("form.fields.send_timeout.label"),
|
|
3424
|
+
tooltip: i("form.fields.send_timeout.tooltip")
|
|
3056
3425
|
},
|
|
3057
3426
|
sentinel_master: {
|
|
3058
|
-
type:
|
|
3059
|
-
section:
|
|
3060
|
-
label:
|
|
3061
|
-
tooltip:
|
|
3427
|
+
type: M.Text,
|
|
3428
|
+
section: L.Basic,
|
|
3429
|
+
label: i("form.fields.sentinel_master.label"),
|
|
3430
|
+
tooltip: i("form.fields.sentinel_master.tooltip")
|
|
3062
3431
|
},
|
|
3063
3432
|
sentinel_nodes: {
|
|
3064
|
-
type:
|
|
3065
|
-
section:
|
|
3066
|
-
tooltip:
|
|
3433
|
+
type: M.JsonArray,
|
|
3434
|
+
section: L.Basic,
|
|
3435
|
+
tooltip: i("form.fields.sentinel_nodes.tooltip")
|
|
3067
3436
|
},
|
|
3068
3437
|
sentinel_password: {
|
|
3069
|
-
type:
|
|
3070
|
-
section:
|
|
3071
|
-
label:
|
|
3072
|
-
tooltip:
|
|
3438
|
+
type: M.Redacted,
|
|
3439
|
+
section: L.Basic,
|
|
3440
|
+
label: i("form.fields.sentinel_password.label"),
|
|
3441
|
+
tooltip: i("form.fields.sentinel_password.tooltip")
|
|
3073
3442
|
},
|
|
3074
3443
|
sentinel_role: {
|
|
3075
|
-
type:
|
|
3076
|
-
section:
|
|
3077
|
-
label:
|
|
3078
|
-
tooltip:
|
|
3444
|
+
type: M.Text,
|
|
3445
|
+
section: L.Basic,
|
|
3446
|
+
label: i("form.fields.sentinel_role.label"),
|
|
3447
|
+
tooltip: i("form.fields.sentinel_role.tooltip")
|
|
3079
3448
|
},
|
|
3080
3449
|
sentinel_username: {
|
|
3081
|
-
type:
|
|
3082
|
-
section:
|
|
3083
|
-
label:
|
|
3084
|
-
tooltip:
|
|
3450
|
+
type: M.Text,
|
|
3451
|
+
section: L.Basic,
|
|
3452
|
+
label: i("form.fields.sentinel_username.label"),
|
|
3453
|
+
tooltip: i("form.fields.sentinel_username.tooltip")
|
|
3085
3454
|
},
|
|
3086
3455
|
server_name: {
|
|
3087
|
-
type:
|
|
3088
|
-
section:
|
|
3089
|
-
label:
|
|
3090
|
-
tooltip:
|
|
3456
|
+
type: M.Text,
|
|
3457
|
+
section: L.Basic,
|
|
3458
|
+
label: i("form.fields.server_name.label"),
|
|
3459
|
+
tooltip: i("form.fields.server_name.tooltip")
|
|
3091
3460
|
},
|
|
3092
3461
|
ssl_verify: {
|
|
3093
|
-
type:
|
|
3094
|
-
section:
|
|
3095
|
-
label:
|
|
3096
|
-
tooltip:
|
|
3462
|
+
type: M.Text,
|
|
3463
|
+
section: L.Basic,
|
|
3464
|
+
label: i("form.fields.ssl_verify.label"),
|
|
3465
|
+
tooltip: i("form.fields.ssl_verify.tooltip")
|
|
3097
3466
|
},
|
|
3098
3467
|
ssl: {
|
|
3099
|
-
type:
|
|
3100
|
-
section:
|
|
3101
|
-
label:
|
|
3102
|
-
tooltip:
|
|
3468
|
+
type: M.Text,
|
|
3469
|
+
section: L.Basic,
|
|
3470
|
+
label: i("form.fields.ssl.label"),
|
|
3471
|
+
tooltip: i("form.fields.ssl.tooltip")
|
|
3103
3472
|
},
|
|
3104
3473
|
timeout: {
|
|
3105
|
-
type:
|
|
3106
|
-
section:
|
|
3107
|
-
label:
|
|
3108
|
-
tooltip:
|
|
3474
|
+
type: M.Text,
|
|
3475
|
+
section: L.Basic,
|
|
3476
|
+
label: i("form.fields.timeout.label"),
|
|
3477
|
+
tooltip: i("form.fields.timeout.tooltip")
|
|
3109
3478
|
},
|
|
3110
3479
|
username: {
|
|
3111
|
-
type:
|
|
3112
|
-
section:
|
|
3113
|
-
label:
|
|
3114
|
-
tooltip:
|
|
3480
|
+
type: M.Text,
|
|
3481
|
+
section: L.Basic,
|
|
3482
|
+
label: i("form.fields.username.label"),
|
|
3483
|
+
tooltip: i("form.fields.username.tooltip")
|
|
3115
3484
|
}
|
|
3116
|
-
},
|
|
3117
|
-
const
|
|
3118
|
-
for (const
|
|
3119
|
-
v.includes(
|
|
3120
|
-
...S[
|
|
3121
|
-
order: v.indexOf(
|
|
3122
|
-
} :
|
|
3123
|
-
...S[
|
|
3485
|
+
}, y = (v) => {
|
|
3486
|
+
const O = {}, s = Object.keys(S);
|
|
3487
|
+
for (const k of s)
|
|
3488
|
+
v.includes(k) ? O[k] = {
|
|
3489
|
+
...S[k],
|
|
3490
|
+
order: v.indexOf(k) + 1
|
|
3491
|
+
} : O[k] = {
|
|
3492
|
+
...S[k],
|
|
3124
3493
|
hidden: !0
|
|
3125
3494
|
};
|
|
3126
|
-
return
|
|
3127
|
-
},
|
|
3495
|
+
return O;
|
|
3496
|
+
}, h = z(() => {
|
|
3128
3497
|
const v = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3129
|
-
switch (
|
|
3130
|
-
case
|
|
3131
|
-
return
|
|
3498
|
+
switch (d.value) {
|
|
3499
|
+
case w.HOST_PORT_CE:
|
|
3500
|
+
return y([
|
|
3132
3501
|
...v,
|
|
3133
3502
|
"host",
|
|
3134
3503
|
"port",
|
|
@@ -3140,8 +3509,8 @@ const Le = (e) => {
|
|
|
3140
3509
|
"ssl_verify",
|
|
3141
3510
|
"server_name"
|
|
3142
3511
|
]);
|
|
3143
|
-
case
|
|
3144
|
-
return
|
|
3512
|
+
case w.HOST_PORT_EE:
|
|
3513
|
+
return y([
|
|
3145
3514
|
...v,
|
|
3146
3515
|
"host",
|
|
3147
3516
|
"port",
|
|
@@ -3158,8 +3527,8 @@ const Le = (e) => {
|
|
|
3158
3527
|
"send_timeout",
|
|
3159
3528
|
"connect_timeout"
|
|
3160
3529
|
]);
|
|
3161
|
-
case
|
|
3162
|
-
return
|
|
3530
|
+
case w.CLUSTER:
|
|
3531
|
+
return y([
|
|
3163
3532
|
...v,
|
|
3164
3533
|
"cluster_nodes",
|
|
3165
3534
|
"cluster_max_redirections",
|
|
@@ -3175,8 +3544,8 @@ const Le = (e) => {
|
|
|
3175
3544
|
"send_timeout",
|
|
3176
3545
|
"connect_timeout"
|
|
3177
3546
|
]);
|
|
3178
|
-
case
|
|
3179
|
-
return
|
|
3547
|
+
case w.SENTINEL:
|
|
3548
|
+
return y([
|
|
3180
3549
|
...v,
|
|
3181
3550
|
"sentinel_master",
|
|
3182
3551
|
"sentinel_role",
|
|
@@ -3199,40 +3568,40 @@ const Le = (e) => {
|
|
|
3199
3568
|
throw new Error("Invalid Redis type");
|
|
3200
3569
|
}
|
|
3201
3570
|
});
|
|
3202
|
-
return (v,
|
|
3203
|
-
p(
|
|
3204
|
-
"code-block-record-formatter":
|
|
3571
|
+
return (v, O) => ($(), G("div", pd, [
|
|
3572
|
+
p(r(Ei), {
|
|
3573
|
+
"code-block-record-formatter": _,
|
|
3205
3574
|
config: e.config,
|
|
3206
3575
|
"config-card-doc": e.configCardDoc,
|
|
3207
|
-
"config-schema":
|
|
3208
|
-
"entity-type":
|
|
3576
|
+
"config-schema": h.value,
|
|
3577
|
+
"entity-type": r(cn).Partial,
|
|
3209
3578
|
"fetch-url": a.value,
|
|
3210
3579
|
"hide-title": e.hideTitle,
|
|
3211
3580
|
"record-resolver": u,
|
|
3212
|
-
"onFetch:error":
|
|
3213
|
-
"onFetch:success":
|
|
3214
|
-
onLoading:
|
|
3581
|
+
"onFetch:error": O[0] || (O[0] = (s) => v.$emit("fetch:error", s)),
|
|
3582
|
+
"onFetch:success": f,
|
|
3583
|
+
onLoading: O[1] || (O[1] = (s) => v.$emit("loading", s))
|
|
3215
3584
|
}, {
|
|
3216
|
-
type:
|
|
3217
|
-
|
|
3585
|
+
type: E(() => [
|
|
3586
|
+
W("div", null, H(l.value), 1)
|
|
3218
3587
|
]),
|
|
3219
3588
|
_: 1
|
|
3220
3589
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
3221
3590
|
]));
|
|
3222
3591
|
}
|
|
3223
|
-
}),
|
|
3224
|
-
useLinkedPlugins:
|
|
3225
|
-
useLinkedPluginsFetcher:
|
|
3592
|
+
}), Rd = {
|
|
3593
|
+
useLinkedPlugins: ti,
|
|
3594
|
+
useLinkedPluginsFetcher: De
|
|
3226
3595
|
};
|
|
3227
3596
|
export {
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3597
|
+
dd as DeleteWarningModal,
|
|
3598
|
+
od as LinkedPlugins,
|
|
3599
|
+
ee as PartialType,
|
|
3600
|
+
xd as RedisConfigurationConfigCard,
|
|
3601
|
+
Cd as RedisConfigurationForm,
|
|
3602
|
+
Id as RedisConfigurationList,
|
|
3603
|
+
w as RedisType,
|
|
3604
|
+
Rd as composables,
|
|
3605
|
+
Ed as constants,
|
|
3606
|
+
Od as helpers
|
|
3238
3607
|
};
|