@kong-ui-public/entities-redis-configurations 1.5.9-pr.2640.47178031d.0 → 1.5.9
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 +524 -521
- package/dist/entities-redis-configurations.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigurationSelector.vue.d.ts +10 -2
- package/dist/types/components/RedisConfigurationSelector.vue.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { computed as H, reactive as un, ref as $, watch as Te, defineComponent as Q, resolveComponent as j, createElementBlock as J, openBlock as R, createVNode as g, withCtx as S, renderSlot as fi, unref as r, mergeModels as cn, useModel as fn, createElementVNode as F, createTextVNode as ne, toDisplayString as N, Fragment as je, renderList as wt, createBlock as q, getCurrentInstance as pi, onMounted as mi, onUnmounted as gi, isReadonly as bi, toRefs as yi, onBeforeMount as pn, createCommentVNode as oe, isRef as _i, createSlots as mn, withModifiers as vi, Teleport as hi, inject as gn, useId as Ti, nextTick as kt } from "vue";
|
|
1
|
+
import { computed as H, reactive as un, ref as $, watch as Te, defineComponent as Q, resolveComponent as j, createElementBlock as J, openBlock as R, createVNode as g, withCtx as S, renderSlot as fi, unref as r, mergeModels as cn, useModel as fn, createElementVNode as F, createTextVNode as ne, toDisplayString as N, Fragment as je, renderList as wt, createBlock as q, getCurrentInstance as pi, onMounted as mi, onUnmounted as gi, isReadonly as bi, toRefs as yi, onBeforeMount as pn, createCommentVNode as oe, isRef as _i, createSlots as mn, withModifiers as vi, Teleport as hi, inject as gn, useId as Ti, nextTick as kt, mergeProps as wi } 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 St, useErrors as bn, EntityBaseFormType as lt, EntityBaseForm as
|
|
5
|
-
import { VaultSecretPickerProvider as Ke, VaultSecretPicker as
|
|
4
|
+
import { useAxios as St, useErrors as bn, EntityBaseFormType as lt, EntityBaseForm as Si, SupportedEntityType as yn, EntityFormSection as ge, EntityFilter as _n, useDeleteUrlBuilder as Ei, useFetcher as Ci, FetcherStatus as Oi, EntityBaseTable as Ii, PermissionsWrapper as Fe, TableTags as xi, EntityDeleteModal as Ri, EntityTypes as $i, ConfigurationSchemaSection as M, ConfigurationSchemaType as L, EntityBaseConfigCard as Pi, useDebouncedFilter as ki } from "@kong-ui-public/entities-shared";
|
|
5
|
+
import { VaultSecretPickerProvider as Ke, VaultSecretPicker as Ai } from "@kong-ui-public/entities-vaults";
|
|
6
6
|
import { useRouter as vn } from "vue-router";
|
|
7
|
-
import { TrashIcon as
|
|
8
|
-
import { createI18n as
|
|
7
|
+
import { TrashIcon as Vi, AddCircleIcon as hn, AddIcon as bt, RefreshIcon as Mi, ClipboardIcon as Li, DeployIcon as Di } from "@kong/icons";
|
|
8
|
+
import { createI18n as ji, i18nTComponent as Ui } from "@kong-ui-public/i18n";
|
|
9
9
|
import { PluginIcon as Tn } from "@kong-ui-public/entities-plugins-icon";
|
|
10
10
|
import { FORMS_CONFIG as wn } from "@kong-ui-public/forms";
|
|
11
|
-
var w = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(w || {}), G = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(G || {}), Sn = typeof global == "object" && global && global.Object === Object && global,
|
|
12
|
-
function
|
|
13
|
-
var t =
|
|
11
|
+
var w = /* @__PURE__ */ ((e) => (e[e.HOST_PORT_CE = 0] = "HOST_PORT_CE", e[e.HOST_PORT_EE = 1] = "HOST_PORT_EE", e[e.SENTINEL = 2] = "SENTINEL", e[e.CLUSTER = 3] = "CLUSTER", e))(w || {}), G = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(G || {}), Sn = typeof global == "object" && global && global.Object === Object && global, Ni = typeof self == "object" && self && self.Object === Object && self, ae = Sn || Ni || Function("return this")(), Y = ae.Symbol, En = Object.prototype, Bi = En.hasOwnProperty, Fi = En.toString, Ae = Y ? Y.toStringTag : void 0;
|
|
12
|
+
function Ki(e) {
|
|
13
|
+
var t = Bi.call(e, Ae), n = e[Ae];
|
|
14
14
|
try {
|
|
15
15
|
e[Ae] = void 0;
|
|
16
16
|
var o = !0;
|
|
17
17
|
} catch {
|
|
18
18
|
}
|
|
19
|
-
var i =
|
|
19
|
+
var i = Fi.call(e);
|
|
20
20
|
return o && (t ? e[Ae] = n : delete e[Ae]), i;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
return
|
|
22
|
+
var Hi = Object.prototype, zi = Hi.toString;
|
|
23
|
+
function qi(e) {
|
|
24
|
+
return zi.call(e);
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var Wi = "[object Null]", Gi = "[object Undefined]", At = Y ? Y.toStringTag : void 0;
|
|
27
27
|
function Se(e) {
|
|
28
|
-
return e == null ? e === void 0 ?
|
|
28
|
+
return e == null ? e === void 0 ? Gi : Wi : At && At in Object(e) ? Ki(e) : qi(e);
|
|
29
29
|
}
|
|
30
30
|
function ue(e) {
|
|
31
31
|
return e != null && typeof e == "object";
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var Ji = "[object Symbol]";
|
|
34
34
|
function Et(e) {
|
|
35
|
-
return typeof e == "symbol" || ue(e) && Se(e) ==
|
|
35
|
+
return typeof e == "symbol" || ue(e) && Se(e) == Ji;
|
|
36
36
|
}
|
|
37
37
|
function Cn(e, t) {
|
|
38
38
|
for (var n = -1, o = e == null ? 0 : e.length, i = Array(o); ++n < o; )
|
|
@@ -54,28 +54,28 @@ function et(e) {
|
|
|
54
54
|
var t = typeof e;
|
|
55
55
|
return e != null && (t == "object" || t == "function");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Qi(e) {
|
|
58
58
|
return e;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var Yi = "[object AsyncFunction]", Xi = "[object Function]", Zi = "[object GeneratorFunction]", er = "[object Proxy]";
|
|
61
61
|
function In(e) {
|
|
62
62
|
if (!et(e))
|
|
63
63
|
return !1;
|
|
64
64
|
var t = Se(e);
|
|
65
|
-
return t ==
|
|
65
|
+
return t == Xi || t == Zi || t == Yi || t == er;
|
|
66
66
|
}
|
|
67
67
|
var st = ae["__core-js_shared__"], Lt = function() {
|
|
68
68
|
var e = /[^.]+$/.exec(st && st.keys && st.keys.IE_PROTO || "");
|
|
69
69
|
return e ? "Symbol(src)_1." + e : "";
|
|
70
70
|
}();
|
|
71
|
-
function
|
|
71
|
+
function tr(e) {
|
|
72
72
|
return !!Lt && Lt in e;
|
|
73
73
|
}
|
|
74
|
-
var
|
|
74
|
+
var nr = Function.prototype, ir = nr.toString;
|
|
75
75
|
function Ee(e) {
|
|
76
76
|
if (e != null) {
|
|
77
77
|
try {
|
|
78
|
-
return
|
|
78
|
+
return ir.call(e);
|
|
79
79
|
} catch {
|
|
80
80
|
}
|
|
81
81
|
try {
|
|
@@ -85,24 +85,24 @@ function Ee(e) {
|
|
|
85
85
|
}
|
|
86
86
|
return "";
|
|
87
87
|
}
|
|
88
|
-
var
|
|
89
|
-
"^" +
|
|
88
|
+
var rr = /[\\^$.*+?()[\]{}|]/g, or = /^\[object .+?Constructor\]$/, ar = Function.prototype, lr = Object.prototype, sr = ar.toString, dr = lr.hasOwnProperty, ur = RegExp(
|
|
89
|
+
"^" + sr.call(dr).replace(rr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
90
90
|
);
|
|
91
|
-
function
|
|
92
|
-
if (!et(e) ||
|
|
91
|
+
function cr(e) {
|
|
92
|
+
if (!et(e) || tr(e))
|
|
93
93
|
return !1;
|
|
94
|
-
var t = In(e) ?
|
|
94
|
+
var t = In(e) ? ur : or;
|
|
95
95
|
return t.test(Ee(e));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function fr(e, t) {
|
|
98
98
|
return e == null ? void 0 : e[t];
|
|
99
99
|
}
|
|
100
100
|
function Ce(e, t) {
|
|
101
|
-
var n =
|
|
102
|
-
return
|
|
101
|
+
var n = fr(e, t);
|
|
102
|
+
return cr(n) ? n : void 0;
|
|
103
103
|
}
|
|
104
104
|
var yt = Ce(ae, "WeakMap");
|
|
105
|
-
function
|
|
105
|
+
function pr(e, t, n) {
|
|
106
106
|
switch (n.length) {
|
|
107
107
|
case 0:
|
|
108
108
|
return e.call(t);
|
|
@@ -115,20 +115,20 @@ function fr(e, t, n) {
|
|
|
115
115
|
}
|
|
116
116
|
return e.apply(t, n);
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
118
|
+
var mr = 800, gr = 16, br = Date.now;
|
|
119
|
+
function yr(e) {
|
|
120
120
|
var t = 0, n = 0;
|
|
121
121
|
return function() {
|
|
122
|
-
var o =
|
|
122
|
+
var o = br(), i = gr - (o - n);
|
|
123
123
|
if (n = o, i > 0) {
|
|
124
|
-
if (++t >=
|
|
124
|
+
if (++t >= mr)
|
|
125
125
|
return arguments[0];
|
|
126
126
|
} else
|
|
127
127
|
t = 0;
|
|
128
128
|
return e.apply(void 0, arguments);
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function _r(e) {
|
|
132
132
|
return function() {
|
|
133
133
|
return e;
|
|
134
134
|
};
|
|
@@ -139,23 +139,23 @@ var Ge = function() {
|
|
|
139
139
|
return e({}, "", {}), e;
|
|
140
140
|
} catch {
|
|
141
141
|
}
|
|
142
|
-
}(),
|
|
142
|
+
}(), vr = Ge ? function(e, t) {
|
|
143
143
|
return Ge(e, "toString", {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !1,
|
|
146
|
-
value:
|
|
146
|
+
value: _r(t),
|
|
147
147
|
writable: !0
|
|
148
148
|
});
|
|
149
|
-
} :
|
|
150
|
-
function
|
|
149
|
+
} : Qi, hr = yr(vr);
|
|
150
|
+
function Tr(e, t) {
|
|
151
151
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o && t(e[n], n, e) !== !1; )
|
|
152
152
|
;
|
|
153
153
|
return e;
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
function
|
|
155
|
+
var wr = 9007199254740991, Sr = /^(?:0|[1-9]\d*)$/;
|
|
156
|
+
function Er(e, t) {
|
|
157
157
|
var n = typeof e;
|
|
158
|
-
return t = t ??
|
|
158
|
+
return t = t ?? wr, !!t && (n == "number" || n != "symbol" && Sr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
159
159
|
}
|
|
160
160
|
function xn(e, t, n) {
|
|
161
161
|
t == "__proto__" && Ge ? Ge(e, t, {
|
|
@@ -168,12 +168,12 @@ function xn(e, t, n) {
|
|
|
168
168
|
function Ct(e, t) {
|
|
169
169
|
return e === t || e !== e && t !== t;
|
|
170
170
|
}
|
|
171
|
-
var
|
|
171
|
+
var Cr = Object.prototype, Or = Cr.hasOwnProperty;
|
|
172
172
|
function Rn(e, t, n) {
|
|
173
173
|
var o = e[t];
|
|
174
|
-
(!(
|
|
174
|
+
(!(Or.call(e, t) && Ct(o, n)) || n === void 0 && !(t in e)) && xn(e, t, n);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Ir(e, t, n, o) {
|
|
177
177
|
var i = !n;
|
|
178
178
|
n || (n = {});
|
|
179
179
|
for (var a = -1, u = t.length; ++a < u; ) {
|
|
@@ -183,49 +183,49 @@ function Or(e, t, n, o) {
|
|
|
183
183
|
return n;
|
|
184
184
|
}
|
|
185
185
|
var Dt = Math.max;
|
|
186
|
-
function
|
|
186
|
+
function xr(e, t, n) {
|
|
187
187
|
return t = Dt(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
188
188
|
for (var o = arguments, i = -1, a = Dt(o.length - t, 0), u = Array(a); ++i < a; )
|
|
189
189
|
u[i] = o[t + i];
|
|
190
190
|
i = -1;
|
|
191
191
|
for (var c = Array(t + 1); ++i < t; )
|
|
192
192
|
c[i] = o[i];
|
|
193
|
-
return c[t] = n(u),
|
|
193
|
+
return c[t] = n(u), pr(e, this, c);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
var
|
|
196
|
+
var Rr = 9007199254740991;
|
|
197
197
|
function $n(e) {
|
|
198
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
198
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Rr;
|
|
199
199
|
}
|
|
200
200
|
function Pn(e) {
|
|
201
201
|
return e != null && $n(e.length) && !In(e);
|
|
202
202
|
}
|
|
203
|
-
var
|
|
203
|
+
var $r = Object.prototype;
|
|
204
204
|
function kn(e) {
|
|
205
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype ||
|
|
205
|
+
var t = e && e.constructor, n = typeof t == "function" && t.prototype || $r;
|
|
206
206
|
return e === n;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Pr(e, t) {
|
|
209
209
|
for (var n = -1, o = Array(e); ++n < e; )
|
|
210
210
|
o[n] = t(n);
|
|
211
211
|
return o;
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var kr = "[object Arguments]";
|
|
214
214
|
function jt(e) {
|
|
215
|
-
return ue(e) && Se(e) ==
|
|
215
|
+
return ue(e) && Se(e) == kr;
|
|
216
216
|
}
|
|
217
|
-
var An = Object.prototype,
|
|
217
|
+
var An = Object.prototype, Ar = An.hasOwnProperty, Vr = An.propertyIsEnumerable, Vn = jt(/* @__PURE__ */ function() {
|
|
218
218
|
return arguments;
|
|
219
219
|
}()) ? jt : function(e) {
|
|
220
|
-
return ue(e) &&
|
|
220
|
+
return ue(e) && Ar.call(e, "callee") && !Vr.call(e, "callee");
|
|
221
221
|
};
|
|
222
|
-
function
|
|
222
|
+
function Mr() {
|
|
223
223
|
return !1;
|
|
224
224
|
}
|
|
225
|
-
var Mn = typeof exports == "object" && exports && !exports.nodeType && exports, Ut = Mn && typeof module == "object" && module && !module.nodeType && module,
|
|
226
|
-
D[
|
|
227
|
-
D[
|
|
228
|
-
function
|
|
225
|
+
var Mn = typeof exports == "object" && exports && !exports.nodeType && exports, Ut = Mn && typeof module == "object" && module && !module.nodeType && module, Lr = Ut && Ut.exports === Mn, Nt = Lr ? ae.Buffer : void 0, Dr = Nt ? Nt.isBuffer : void 0, Je = Dr || Mr, jr = "[object Arguments]", Ur = "[object Array]", Nr = "[object Boolean]", Br = "[object Date]", Fr = "[object Error]", Kr = "[object Function]", Hr = "[object Map]", zr = "[object Number]", qr = "[object Object]", Wr = "[object RegExp]", Gr = "[object Set]", Jr = "[object String]", Qr = "[object WeakMap]", Yr = "[object ArrayBuffer]", Xr = "[object DataView]", Zr = "[object Float32Array]", eo = "[object Float64Array]", to = "[object Int8Array]", no = "[object Int16Array]", io = "[object Int32Array]", ro = "[object Uint8Array]", oo = "[object Uint8ClampedArray]", ao = "[object Uint16Array]", lo = "[object Uint32Array]", D = {};
|
|
226
|
+
D[Zr] = D[eo] = D[to] = D[no] = D[io] = D[ro] = D[oo] = D[ao] = D[lo] = !0;
|
|
227
|
+
D[jr] = D[Ur] = D[Yr] = D[Nr] = D[Xr] = D[Br] = D[Fr] = D[Kr] = D[Hr] = D[zr] = D[qr] = D[Wr] = D[Gr] = D[Jr] = D[Qr] = !1;
|
|
228
|
+
function so(e) {
|
|
229
229
|
return ue(e) && $n(e.length) && !!D[Se(e)];
|
|
230
230
|
}
|
|
231
231
|
function Ot(e) {
|
|
@@ -233,21 +233,21 @@ function Ot(e) {
|
|
|
233
233
|
return e(t);
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
var Ln = typeof exports == "object" && exports && !exports.nodeType && exports, Ve = Ln && typeof module == "object" && module && !module.nodeType && module,
|
|
236
|
+
var Ln = typeof exports == "object" && exports && !exports.nodeType && exports, Ve = Ln && typeof module == "object" && module && !module.nodeType && module, uo = Ve && Ve.exports === Ln, dt = uo && Sn.process, Pe = function() {
|
|
237
237
|
try {
|
|
238
238
|
var e = Ve && Ve.require && Ve.require("util").types;
|
|
239
239
|
return e || dt && dt.binding && dt.binding("util");
|
|
240
240
|
} catch {
|
|
241
241
|
}
|
|
242
|
-
}(), Bt = Pe && Pe.isTypedArray, Dn = Bt ? Ot(Bt) :
|
|
242
|
+
}(), Bt = Pe && Pe.isTypedArray, Dn = Bt ? Ot(Bt) : so, co = Object.prototype, fo = co.hasOwnProperty;
|
|
243
243
|
function jn(e, t) {
|
|
244
|
-
var n = ce(e), o = !n && Vn(e), i = !n && !o && Je(e), a = !n && !o && !i && Dn(e), u = n || o || i || a, c = u ?
|
|
244
|
+
var n = ce(e), o = !n && Vn(e), i = !n && !o && Je(e), a = !n && !o && !i && Dn(e), u = n || o || i || a, c = u ? Pr(e.length, String) : [], l = c.length;
|
|
245
245
|
for (var d in e)
|
|
246
|
-
(t ||
|
|
246
|
+
(t || fo.call(e, d)) && !(u && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
247
247
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
248
248
|
i && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
249
249
|
a && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
|
|
250
|
-
|
|
250
|
+
Er(d, l))) && c.push(d);
|
|
251
251
|
return c;
|
|
252
252
|
}
|
|
253
253
|
function Un(e, t) {
|
|
@@ -255,70 +255,70 @@ function Un(e, t) {
|
|
|
255
255
|
return e(t(n));
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
258
|
+
var po = Un(Object.keys, Object), mo = Object.prototype, go = mo.hasOwnProperty;
|
|
259
|
+
function bo(e) {
|
|
260
260
|
if (!kn(e))
|
|
261
|
-
return
|
|
261
|
+
return po(e);
|
|
262
262
|
var t = [];
|
|
263
263
|
for (var n in Object(e))
|
|
264
|
-
|
|
264
|
+
go.call(e, n) && n != "constructor" && t.push(n);
|
|
265
265
|
return t;
|
|
266
266
|
}
|
|
267
|
-
function bo(e) {
|
|
268
|
-
return Pn(e) ? jn(e) : go(e);
|
|
269
|
-
}
|
|
270
267
|
function yo(e) {
|
|
268
|
+
return Pn(e) ? jn(e) : bo(e);
|
|
269
|
+
}
|
|
270
|
+
function _o(e) {
|
|
271
271
|
var t = [];
|
|
272
272
|
if (e != null)
|
|
273
273
|
for (var n in Object(e))
|
|
274
274
|
t.push(n);
|
|
275
275
|
return t;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
277
|
+
var vo = Object.prototype, ho = vo.hasOwnProperty;
|
|
278
|
+
function To(e) {
|
|
279
279
|
if (!et(e))
|
|
280
|
-
return
|
|
280
|
+
return _o(e);
|
|
281
281
|
var t = kn(e), n = [];
|
|
282
282
|
for (var o in e)
|
|
283
|
-
o == "constructor" && (t || !
|
|
283
|
+
o == "constructor" && (t || !ho.call(e, o)) || n.push(o);
|
|
284
284
|
return n;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
return Pn(e) ? jn(e, !0) :
|
|
286
|
+
function wo(e) {
|
|
287
|
+
return Pn(e) ? jn(e, !0) : To(e);
|
|
288
288
|
}
|
|
289
|
-
var
|
|
290
|
-
function
|
|
289
|
+
var So = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Eo = /^\w*$/;
|
|
290
|
+
function Co(e, t) {
|
|
291
291
|
if (ce(e))
|
|
292
292
|
return !1;
|
|
293
293
|
var n = typeof e;
|
|
294
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null || Et(e) ? !0 :
|
|
294
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Et(e) ? !0 : Eo.test(e) || !So.test(e) || t != null && e in Object(t);
|
|
295
295
|
}
|
|
296
296
|
var Me = Ce(Object, "create");
|
|
297
|
-
function
|
|
297
|
+
function Oo() {
|
|
298
298
|
this.__data__ = Me ? Me(null) : {}, this.size = 0;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Io(e) {
|
|
301
301
|
var t = this.has(e) && delete this.__data__[e];
|
|
302
302
|
return this.size -= t ? 1 : 0, t;
|
|
303
303
|
}
|
|
304
|
-
var
|
|
305
|
-
function
|
|
304
|
+
var xo = "__lodash_hash_undefined__", Ro = Object.prototype, $o = Ro.hasOwnProperty;
|
|
305
|
+
function Po(e) {
|
|
306
306
|
var t = this.__data__;
|
|
307
307
|
if (Me) {
|
|
308
308
|
var n = t[e];
|
|
309
|
-
return n ===
|
|
309
|
+
return n === xo ? void 0 : n;
|
|
310
310
|
}
|
|
311
|
-
return
|
|
311
|
+
return $o.call(t, e) ? t[e] : void 0;
|
|
312
312
|
}
|
|
313
|
-
var
|
|
314
|
-
function
|
|
313
|
+
var ko = Object.prototype, Ao = ko.hasOwnProperty;
|
|
314
|
+
function Vo(e) {
|
|
315
315
|
var t = this.__data__;
|
|
316
|
-
return Me ? t[e] !== void 0 :
|
|
316
|
+
return Me ? t[e] !== void 0 : Ao.call(t, e);
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
318
|
+
var Mo = "__lodash_hash_undefined__";
|
|
319
|
+
function Lo(e, t) {
|
|
320
320
|
var n = this.__data__;
|
|
321
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = Me && t === void 0 ?
|
|
321
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Me && t === void 0 ? Mo : t, this;
|
|
322
322
|
}
|
|
323
323
|
function we(e) {
|
|
324
324
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -327,12 +327,12 @@ function we(e) {
|
|
|
327
327
|
this.set(o[0], o[1]);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
we.prototype.clear =
|
|
331
|
-
we.prototype.delete =
|
|
332
|
-
we.prototype.get =
|
|
333
|
-
we.prototype.has =
|
|
334
|
-
we.prototype.set =
|
|
335
|
-
function
|
|
330
|
+
we.prototype.clear = Oo;
|
|
331
|
+
we.prototype.delete = Io;
|
|
332
|
+
we.prototype.get = Po;
|
|
333
|
+
we.prototype.has = Vo;
|
|
334
|
+
we.prototype.set = Lo;
|
|
335
|
+
function Do() {
|
|
336
336
|
this.__data__ = [], this.size = 0;
|
|
337
337
|
}
|
|
338
338
|
function tt(e, t) {
|
|
@@ -341,22 +341,22 @@ function tt(e, t) {
|
|
|
341
341
|
return n;
|
|
342
342
|
return -1;
|
|
343
343
|
}
|
|
344
|
-
var
|
|
345
|
-
function
|
|
344
|
+
var jo = Array.prototype, Uo = jo.splice;
|
|
345
|
+
function No(e) {
|
|
346
346
|
var t = this.__data__, n = tt(t, e);
|
|
347
347
|
if (n < 0)
|
|
348
348
|
return !1;
|
|
349
349
|
var o = t.length - 1;
|
|
350
|
-
return n == o ? t.pop() :
|
|
350
|
+
return n == o ? t.pop() : Uo.call(t, n, 1), --this.size, !0;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Bo(e) {
|
|
353
353
|
var t = this.__data__, n = tt(t, e);
|
|
354
354
|
return n < 0 ? void 0 : t[n][1];
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Fo(e) {
|
|
357
357
|
return tt(this.__data__, e) > -1;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Ko(e, t) {
|
|
360
360
|
var n = this.__data__, o = tt(n, e);
|
|
361
361
|
return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
|
|
362
362
|
}
|
|
@@ -367,38 +367,38 @@ function fe(e) {
|
|
|
367
367
|
this.set(o[0], o[1]);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
fe.prototype.clear =
|
|
371
|
-
fe.prototype.delete =
|
|
372
|
-
fe.prototype.get =
|
|
373
|
-
fe.prototype.has =
|
|
374
|
-
fe.prototype.set =
|
|
370
|
+
fe.prototype.clear = Do;
|
|
371
|
+
fe.prototype.delete = No;
|
|
372
|
+
fe.prototype.get = Bo;
|
|
373
|
+
fe.prototype.has = Fo;
|
|
374
|
+
fe.prototype.set = Ko;
|
|
375
375
|
var Le = Ce(ae, "Map");
|
|
376
|
-
function
|
|
376
|
+
function Ho() {
|
|
377
377
|
this.size = 0, this.__data__ = {
|
|
378
378
|
hash: new we(),
|
|
379
379
|
map: new (Le || fe)(),
|
|
380
380
|
string: new we()
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function zo(e) {
|
|
384
384
|
var t = typeof e;
|
|
385
385
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
386
386
|
}
|
|
387
387
|
function nt(e, t) {
|
|
388
388
|
var n = e.__data__;
|
|
389
|
-
return
|
|
389
|
+
return zo(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function qo(e) {
|
|
392
392
|
var t = nt(this, e).delete(e);
|
|
393
393
|
return this.size -= t ? 1 : 0, t;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Wo(e) {
|
|
396
396
|
return nt(this, e).get(e);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Go(e) {
|
|
399
399
|
return nt(this, e).has(e);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function Jo(e, t) {
|
|
402
402
|
var n = nt(this, e), o = n.size;
|
|
403
403
|
return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
|
|
404
404
|
}
|
|
@@ -409,15 +409,15 @@ function pe(e) {
|
|
|
409
409
|
this.set(o[0], o[1]);
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
pe.prototype.clear =
|
|
413
|
-
pe.prototype.delete =
|
|
414
|
-
pe.prototype.get =
|
|
415
|
-
pe.prototype.has =
|
|
416
|
-
pe.prototype.set =
|
|
417
|
-
var
|
|
412
|
+
pe.prototype.clear = Ho;
|
|
413
|
+
pe.prototype.delete = qo;
|
|
414
|
+
pe.prototype.get = Wo;
|
|
415
|
+
pe.prototype.has = Go;
|
|
416
|
+
pe.prototype.set = Jo;
|
|
417
|
+
var Qo = "Expected a function";
|
|
418
418
|
function It(e, t) {
|
|
419
419
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
420
|
-
throw new TypeError(
|
|
420
|
+
throw new TypeError(Qo);
|
|
421
421
|
var n = function() {
|
|
422
422
|
var o = arguments, i = t ? t.apply(this, o) : o[0], a = n.cache;
|
|
423
423
|
if (a.has(i))
|
|
@@ -428,24 +428,24 @@ function It(e, t) {
|
|
|
428
428
|
return n.cache = new (It.Cache || pe)(), n;
|
|
429
429
|
}
|
|
430
430
|
It.Cache = pe;
|
|
431
|
-
var
|
|
432
|
-
function
|
|
431
|
+
var Yo = 500;
|
|
432
|
+
function Xo(e) {
|
|
433
433
|
var t = It(e, function(o) {
|
|
434
|
-
return n.size ===
|
|
434
|
+
return n.size === Yo && n.clear(), o;
|
|
435
435
|
}), n = t.cache;
|
|
436
436
|
return t;
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var Zo = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ea = /\\(\\)?/g, ta = Xo(function(e) {
|
|
439
439
|
var t = [];
|
|
440
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
441
|
-
t.push(i ? a.replace(
|
|
440
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Zo, function(n, o, i, a) {
|
|
441
|
+
t.push(i ? a.replace(ea, "$1") : o || n);
|
|
442
442
|
}), t;
|
|
443
443
|
});
|
|
444
|
-
function
|
|
444
|
+
function na(e) {
|
|
445
445
|
return e == null ? "" : On(e);
|
|
446
446
|
}
|
|
447
447
|
function xt(e, t) {
|
|
448
|
-
return ce(e) ? e :
|
|
448
|
+
return ce(e) ? e : Co(e, t) ? [e] : ta(na(e));
|
|
449
449
|
}
|
|
450
450
|
function Nn(e) {
|
|
451
451
|
if (typeof e == "string" || Et(e))
|
|
@@ -453,7 +453,7 @@ function Nn(e) {
|
|
|
453
453
|
var t = e + "";
|
|
454
454
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function ia(e, t) {
|
|
457
457
|
t = xt(t, e);
|
|
458
458
|
for (var n = 0, o = t.length; e != null && n < o; )
|
|
459
459
|
e = e[Nn(t[n++])];
|
|
@@ -465,60 +465,60 @@ function Rt(e, t) {
|
|
|
465
465
|
return e;
|
|
466
466
|
}
|
|
467
467
|
var Ft = Y ? Y.isConcatSpreadable : void 0;
|
|
468
|
-
function
|
|
468
|
+
function ra(e) {
|
|
469
469
|
return ce(e) || Vn(e) || !!(Ft && e && e[Ft]);
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function oa(e, t, n, o, i) {
|
|
472
472
|
var a = -1, u = e.length;
|
|
473
|
-
for (n || (n =
|
|
473
|
+
for (n || (n = ra), i || (i = []); ++a < u; ) {
|
|
474
474
|
var c = e[a];
|
|
475
475
|
n(c) ? Rt(i, c) : i[i.length] = c;
|
|
476
476
|
}
|
|
477
477
|
return i;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function aa(e) {
|
|
480
480
|
var t = e == null ? 0 : e.length;
|
|
481
|
-
return t ?
|
|
481
|
+
return t ? oa(e) : [];
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
483
|
+
function la(e) {
|
|
484
|
+
return hr(xr(e, void 0, aa), e + "");
|
|
485
485
|
}
|
|
486
|
-
var Bn = Un(Object.getPrototypeOf, Object),
|
|
487
|
-
function
|
|
488
|
-
if (!ue(e) || Se(e) !=
|
|
486
|
+
var Bn = Un(Object.getPrototypeOf, Object), sa = "[object Object]", da = Function.prototype, ua = Object.prototype, Fn = da.toString, ca = ua.hasOwnProperty, fa = Fn.call(Object);
|
|
487
|
+
function pa(e) {
|
|
488
|
+
if (!ue(e) || Se(e) != sa)
|
|
489
489
|
return !1;
|
|
490
490
|
var t = Bn(e);
|
|
491
491
|
if (t === null)
|
|
492
492
|
return !0;
|
|
493
|
-
var n =
|
|
494
|
-
return typeof n == "function" && n instanceof n && Fn.call(n) ==
|
|
493
|
+
var n = ca.call(t, "constructor") && t.constructor;
|
|
494
|
+
return typeof n == "function" && n instanceof n && Fn.call(n) == fa;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function ma(e, t, n) {
|
|
497
497
|
var o = -1, i = e.length;
|
|
498
498
|
t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
|
|
499
499
|
for (var a = Array(i); ++o < i; )
|
|
500
500
|
a[o] = e[o + t];
|
|
501
501
|
return a;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function ga() {
|
|
504
504
|
this.__data__ = new fe(), this.size = 0;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function ba(e) {
|
|
507
507
|
var t = this.__data__, n = t.delete(e);
|
|
508
508
|
return this.size = t.size, n;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function ya(e) {
|
|
511
511
|
return this.__data__.get(e);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function _a(e) {
|
|
514
514
|
return this.__data__.has(e);
|
|
515
515
|
}
|
|
516
|
-
var
|
|
517
|
-
function
|
|
516
|
+
var va = 200;
|
|
517
|
+
function ha(e, t) {
|
|
518
518
|
var n = this.__data__;
|
|
519
519
|
if (n instanceof fe) {
|
|
520
520
|
var o = n.__data__;
|
|
521
|
-
if (!Le || o.length <
|
|
521
|
+
if (!Le || o.length < va - 1)
|
|
522
522
|
return o.push([e, t]), this.size = ++n.size, this;
|
|
523
523
|
n = this.__data__ = new pe(o);
|
|
524
524
|
}
|
|
@@ -528,17 +528,17 @@ function de(e) {
|
|
|
528
528
|
var t = this.__data__ = new fe(e);
|
|
529
529
|
this.size = t.size;
|
|
530
530
|
}
|
|
531
|
-
de.prototype.clear =
|
|
532
|
-
de.prototype.delete =
|
|
533
|
-
de.prototype.get =
|
|
534
|
-
de.prototype.has =
|
|
535
|
-
de.prototype.set =
|
|
536
|
-
var Kn = typeof exports == "object" && exports && !exports.nodeType && exports, Kt = Kn && typeof module == "object" && module && !module.nodeType && module,
|
|
531
|
+
de.prototype.clear = ga;
|
|
532
|
+
de.prototype.delete = ba;
|
|
533
|
+
de.prototype.get = ya;
|
|
534
|
+
de.prototype.has = _a;
|
|
535
|
+
de.prototype.set = ha;
|
|
536
|
+
var Kn = typeof exports == "object" && exports && !exports.nodeType && exports, Kt = Kn && typeof module == "object" && module && !module.nodeType && module, Ta = Kt && Kt.exports === Kn, Ht = Ta ? ae.Buffer : void 0;
|
|
537
537
|
Ht && Ht.allocUnsafe;
|
|
538
|
-
function
|
|
538
|
+
function wa(e, t) {
|
|
539
539
|
return e.slice();
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Sa(e, t) {
|
|
542
542
|
for (var n = -1, o = e == null ? 0 : e.length, i = 0, a = []; ++n < o; ) {
|
|
543
543
|
var u = e[n];
|
|
544
544
|
t(u, n, e) && (a[i++] = u);
|
|
@@ -548,11 +548,11 @@ function wa(e, t) {
|
|
|
548
548
|
function Hn() {
|
|
549
549
|
return [];
|
|
550
550
|
}
|
|
551
|
-
var
|
|
552
|
-
return e == null ? [] : (e = Object(e),
|
|
553
|
-
return
|
|
551
|
+
var Ea = Object.prototype, Ca = Ea.propertyIsEnumerable, zt = Object.getOwnPropertySymbols, zn = zt ? function(e) {
|
|
552
|
+
return e == null ? [] : (e = Object(e), Sa(zt(e), function(t) {
|
|
553
|
+
return Ca.call(e, t);
|
|
554
554
|
}));
|
|
555
|
-
} : Hn,
|
|
555
|
+
} : Hn, Oa = Object.getOwnPropertySymbols, Ia = Oa ? function(e) {
|
|
556
556
|
for (var t = []; e; )
|
|
557
557
|
Rt(t, zn(e)), e = Bn(e);
|
|
558
558
|
return t;
|
|
@@ -562,68 +562,67 @@ function qn(e, t, n) {
|
|
|
562
562
|
return ce(e) ? o : Rt(o, n(e));
|
|
563
563
|
}
|
|
564
564
|
function qt(e) {
|
|
565
|
-
return qn(e,
|
|
565
|
+
return qn(e, yo, zn);
|
|
566
566
|
}
|
|
567
567
|
function Wn(e) {
|
|
568
|
-
return qn(e,
|
|
568
|
+
return qn(e, wo, Ia);
|
|
569
569
|
}
|
|
570
|
-
var _t = Ce(ae, "DataView"), vt = Ce(ae, "Promise"), ht = Ce(ae, "Set"), Wt = "[object Map]",
|
|
570
|
+
var _t = Ce(ae, "DataView"), vt = Ce(ae, "Promise"), ht = Ce(ae, "Set"), Wt = "[object Map]", xa = "[object Object]", Gt = "[object Promise]", Jt = "[object Set]", Qt = "[object WeakMap]", Yt = "[object DataView]", Ra = Ee(_t), $a = Ee(Le), Pa = Ee(vt), ka = Ee(ht), Aa = Ee(yt), te = Se;
|
|
571
571
|
(_t && te(new _t(new ArrayBuffer(1))) != Yt || Le && te(new Le()) != Wt || vt && te(vt.resolve()) != Gt || ht && te(new ht()) != Jt || yt && te(new yt()) != Qt) && (te = function(e) {
|
|
572
|
-
var t = Se(e), n = t ==
|
|
572
|
+
var t = Se(e), n = t == xa ? e.constructor : void 0, o = n ? Ee(n) : "";
|
|
573
573
|
if (o)
|
|
574
574
|
switch (o) {
|
|
575
|
-
case xa:
|
|
576
|
-
return Yt;
|
|
577
575
|
case Ra:
|
|
578
|
-
return
|
|
576
|
+
return Yt;
|
|
579
577
|
case $a:
|
|
580
|
-
return
|
|
578
|
+
return Wt;
|
|
581
579
|
case Pa:
|
|
582
|
-
return
|
|
580
|
+
return Gt;
|
|
583
581
|
case ka:
|
|
582
|
+
return Jt;
|
|
583
|
+
case Aa:
|
|
584
584
|
return Qt;
|
|
585
585
|
}
|
|
586
586
|
return t;
|
|
587
587
|
});
|
|
588
|
-
var
|
|
589
|
-
function
|
|
588
|
+
var Va = Object.prototype, Ma = Va.hasOwnProperty;
|
|
589
|
+
function La(e) {
|
|
590
590
|
var t = e.length, n = new e.constructor(t);
|
|
591
|
-
return t && typeof e[0] == "string" &&
|
|
591
|
+
return t && typeof e[0] == "string" && Ma.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
592
592
|
}
|
|
593
593
|
var Qe = ae.Uint8Array;
|
|
594
594
|
function $t(e) {
|
|
595
595
|
var t = new e.constructor(e.byteLength);
|
|
596
596
|
return new Qe(t).set(new Qe(e)), t;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function Da(e, t) {
|
|
599
599
|
var n = $t(e.buffer);
|
|
600
600
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
601
601
|
}
|
|
602
|
-
var
|
|
603
|
-
function
|
|
604
|
-
var t = new e.constructor(e.source,
|
|
602
|
+
var ja = /\w*$/;
|
|
603
|
+
function Ua(e) {
|
|
604
|
+
var t = new e.constructor(e.source, ja.exec(e));
|
|
605
605
|
return t.lastIndex = e.lastIndex, t;
|
|
606
606
|
}
|
|
607
607
|
var Xt = Y ? Y.prototype : void 0, Zt = Xt ? Xt.valueOf : void 0;
|
|
608
|
-
function
|
|
608
|
+
function Na(e) {
|
|
609
609
|
return Zt ? Object(Zt.call(e)) : {};
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Ba(e, t) {
|
|
612
612
|
var n = $t(e.buffer);
|
|
613
613
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
function
|
|
615
|
+
var Fa = "[object Boolean]", Ka = "[object Date]", Ha = "[object Map]", za = "[object Number]", qa = "[object RegExp]", Wa = "[object Set]", Ga = "[object String]", Ja = "[object Symbol]", Qa = "[object ArrayBuffer]", Ya = "[object DataView]", Xa = "[object Float32Array]", Za = "[object Float64Array]", el = "[object Int8Array]", tl = "[object Int16Array]", nl = "[object Int32Array]", il = "[object Uint8Array]", rl = "[object Uint8ClampedArray]", ol = "[object Uint16Array]", al = "[object Uint32Array]";
|
|
616
|
+
function ll(e, t, n) {
|
|
617
617
|
var o = e.constructor;
|
|
618
618
|
switch (t) {
|
|
619
|
-
case
|
|
619
|
+
case Qa:
|
|
620
620
|
return $t(e);
|
|
621
|
-
case Ba:
|
|
622
621
|
case Fa:
|
|
622
|
+
case Ka:
|
|
623
623
|
return new o(+e);
|
|
624
|
-
case Qa:
|
|
625
|
-
return La(e);
|
|
626
624
|
case Ya:
|
|
625
|
+
return Da(e);
|
|
627
626
|
case Xa:
|
|
628
627
|
case Za:
|
|
629
628
|
case el:
|
|
@@ -632,31 +631,32 @@ function al(e, t, n) {
|
|
|
632
631
|
case il:
|
|
633
632
|
case rl:
|
|
634
633
|
case ol:
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
return new o();
|
|
634
|
+
case al:
|
|
635
|
+
return Ba(e);
|
|
638
636
|
case Ha:
|
|
639
|
-
case Wa:
|
|
640
|
-
return new o(e);
|
|
641
|
-
case za:
|
|
642
|
-
return ja(e);
|
|
643
|
-
case qa:
|
|
644
637
|
return new o();
|
|
638
|
+
case za:
|
|
645
639
|
case Ga:
|
|
640
|
+
return new o(e);
|
|
641
|
+
case qa:
|
|
646
642
|
return Ua(e);
|
|
643
|
+
case Wa:
|
|
644
|
+
return new o();
|
|
645
|
+
case Ja:
|
|
646
|
+
return Na(e);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return ue(e) && te(e) ==
|
|
649
|
+
var sl = "[object Map]";
|
|
650
|
+
function dl(e) {
|
|
651
|
+
return ue(e) && te(e) == sl;
|
|
652
652
|
}
|
|
653
|
-
var en = Pe && Pe.isMap,
|
|
654
|
-
function
|
|
655
|
-
return ue(e) && te(e) ==
|
|
653
|
+
var en = Pe && Pe.isMap, ul = en ? Ot(en) : dl, cl = "[object Set]";
|
|
654
|
+
function fl(e) {
|
|
655
|
+
return ue(e) && te(e) == cl;
|
|
656
656
|
}
|
|
657
|
-
var tn = Pe && Pe.isSet,
|
|
658
|
-
A[Gn] = A[
|
|
659
|
-
A[
|
|
657
|
+
var tn = Pe && Pe.isSet, pl = tn ? Ot(tn) : fl, Gn = "[object Arguments]", ml = "[object Array]", gl = "[object Boolean]", bl = "[object Date]", yl = "[object Error]", Jn = "[object Function]", _l = "[object GeneratorFunction]", vl = "[object Map]", hl = "[object Number]", Qn = "[object Object]", Tl = "[object RegExp]", wl = "[object Set]", Sl = "[object String]", El = "[object Symbol]", Cl = "[object WeakMap]", Ol = "[object ArrayBuffer]", Il = "[object DataView]", xl = "[object Float32Array]", Rl = "[object Float64Array]", $l = "[object Int8Array]", Pl = "[object Int16Array]", kl = "[object Int32Array]", Al = "[object Uint8Array]", Vl = "[object Uint8ClampedArray]", Ml = "[object Uint16Array]", Ll = "[object Uint32Array]", A = {};
|
|
658
|
+
A[Gn] = A[ml] = A[Ol] = A[Il] = A[gl] = A[bl] = A[xl] = A[Rl] = A[$l] = A[Pl] = A[kl] = A[vl] = A[hl] = A[Qn] = A[Tl] = A[wl] = A[Sl] = A[El] = A[Al] = A[Vl] = A[Ml] = A[Ll] = !0;
|
|
659
|
+
A[yl] = A[Jn] = A[Cl] = !1;
|
|
660
660
|
function We(e, t, n, o, i, a) {
|
|
661
661
|
var u;
|
|
662
662
|
if (n && (u = i ? n(e, o, i, a) : n(e)), u !== void 0)
|
|
@@ -665,38 +665,38 @@ function We(e, t, n, o, i, a) {
|
|
|
665
665
|
return e;
|
|
666
666
|
var c = ce(e);
|
|
667
667
|
if (c)
|
|
668
|
-
u =
|
|
668
|
+
u = La(e);
|
|
669
669
|
else {
|
|
670
|
-
var l = te(e), d = l == Jn || l ==
|
|
670
|
+
var l = te(e), d = l == Jn || l == _l;
|
|
671
671
|
if (Je(e))
|
|
672
|
-
return
|
|
672
|
+
return wa(e);
|
|
673
673
|
if (l == Qn || l == Gn || d && !i)
|
|
674
674
|
u = {};
|
|
675
675
|
else {
|
|
676
676
|
if (!A[l])
|
|
677
677
|
return i ? e : {};
|
|
678
|
-
u =
|
|
678
|
+
u = ll(e, l);
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
681
|
a || (a = new de());
|
|
682
682
|
var b = a.get(e);
|
|
683
683
|
if (b)
|
|
684
684
|
return b;
|
|
685
|
-
a.set(e, u),
|
|
685
|
+
a.set(e, u), pl(e) ? e.forEach(function(h) {
|
|
686
686
|
u.add(We(h, t, n, h, e, a));
|
|
687
|
-
}) :
|
|
688
|
-
u.set(
|
|
687
|
+
}) : ul(e) && e.forEach(function(h, f) {
|
|
688
|
+
u.set(f, We(h, t, n, f, e, a));
|
|
689
689
|
});
|
|
690
690
|
var T = Wn, y = c ? void 0 : T(e);
|
|
691
|
-
return
|
|
692
|
-
y && (
|
|
691
|
+
return Tr(y || e, function(h, f) {
|
|
692
|
+
y && (f = h, h = e[f]), Rn(u, f, We(h, t, n, f, e, a));
|
|
693
693
|
}), u;
|
|
694
694
|
}
|
|
695
|
-
var
|
|
696
|
-
function Dl(e) {
|
|
697
|
-
return this.__data__.set(e, Ll), this;
|
|
698
|
-
}
|
|
695
|
+
var Dl = "__lodash_hash_undefined__";
|
|
699
696
|
function jl(e) {
|
|
697
|
+
return this.__data__.set(e, Dl), this;
|
|
698
|
+
}
|
|
699
|
+
function Ul(e) {
|
|
700
700
|
return this.__data__.has(e);
|
|
701
701
|
}
|
|
702
702
|
function Ye(e) {
|
|
@@ -704,30 +704,30 @@ function Ye(e) {
|
|
|
704
704
|
for (this.__data__ = new pe(); ++t < n; )
|
|
705
705
|
this.add(e[t]);
|
|
706
706
|
}
|
|
707
|
-
Ye.prototype.add = Ye.prototype.push =
|
|
708
|
-
Ye.prototype.has =
|
|
709
|
-
function
|
|
707
|
+
Ye.prototype.add = Ye.prototype.push = jl;
|
|
708
|
+
Ye.prototype.has = Ul;
|
|
709
|
+
function Nl(e, t) {
|
|
710
710
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )
|
|
711
711
|
if (t(e[n], n, e))
|
|
712
712
|
return !0;
|
|
713
713
|
return !1;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Bl(e, t) {
|
|
716
716
|
return e.has(t);
|
|
717
717
|
}
|
|
718
|
-
var
|
|
718
|
+
var Fl = 1, Kl = 2;
|
|
719
719
|
function Yn(e, t, n, o, i, a) {
|
|
720
|
-
var u = n &
|
|
720
|
+
var u = n & Fl, c = e.length, l = t.length;
|
|
721
721
|
if (c != l && !(u && l > c))
|
|
722
722
|
return !1;
|
|
723
723
|
var d = a.get(e), b = a.get(t);
|
|
724
724
|
if (d && b)
|
|
725
725
|
return d == t && b == e;
|
|
726
|
-
var T = -1, y = !0, h = n &
|
|
726
|
+
var T = -1, y = !0, h = n & Kl ? new Ye() : void 0;
|
|
727
727
|
for (a.set(e, t), a.set(t, e); ++T < c; ) {
|
|
728
|
-
var
|
|
728
|
+
var f = e[T], C = t[T];
|
|
729
729
|
if (o)
|
|
730
|
-
var s = u ? o(C,
|
|
730
|
+
var s = u ? o(C, f, T, t, e, a) : o(f, C, T, e, t, a);
|
|
731
731
|
if (s !== void 0) {
|
|
732
732
|
if (s)
|
|
733
733
|
continue;
|
|
@@ -735,81 +735,81 @@ function Yn(e, t, n, o, i, a) {
|
|
|
735
735
|
break;
|
|
736
736
|
}
|
|
737
737
|
if (h) {
|
|
738
|
-
if (!
|
|
739
|
-
if (!
|
|
738
|
+
if (!Nl(t, function(k, m) {
|
|
739
|
+
if (!Bl(h, m) && (f === k || i(f, k, n, o, a)))
|
|
740
740
|
return h.push(m);
|
|
741
741
|
})) {
|
|
742
742
|
y = !1;
|
|
743
743
|
break;
|
|
744
744
|
}
|
|
745
|
-
} else if (!(
|
|
745
|
+
} else if (!(f === C || i(f, C, n, o, a))) {
|
|
746
746
|
y = !1;
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
return a.delete(e), a.delete(t), y;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function Hl(e) {
|
|
753
753
|
var t = -1, n = Array(e.size);
|
|
754
754
|
return e.forEach(function(o, i) {
|
|
755
755
|
n[++t] = [i, o];
|
|
756
756
|
}), n;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function zl(e) {
|
|
759
759
|
var t = -1, n = Array(e.size);
|
|
760
760
|
return e.forEach(function(o) {
|
|
761
761
|
n[++t] = o;
|
|
762
762
|
}), n;
|
|
763
763
|
}
|
|
764
|
-
var
|
|
765
|
-
function
|
|
764
|
+
var ql = 1, Wl = 2, Gl = "[object Boolean]", Jl = "[object Date]", Ql = "[object Error]", Yl = "[object Map]", Xl = "[object Number]", Zl = "[object RegExp]", es = "[object Set]", ts = "[object String]", ns = "[object Symbol]", is = "[object ArrayBuffer]", rs = "[object DataView]", nn = Y ? Y.prototype : void 0, ut = nn ? nn.valueOf : void 0;
|
|
765
|
+
function os(e, t, n, o, i, a, u) {
|
|
766
766
|
switch (n) {
|
|
767
|
-
case
|
|
767
|
+
case rs:
|
|
768
768
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
769
769
|
return !1;
|
|
770
770
|
e = e.buffer, t = t.buffer;
|
|
771
|
-
case
|
|
771
|
+
case is:
|
|
772
772
|
return !(e.byteLength != t.byteLength || !a(new Qe(e), new Qe(t)));
|
|
773
|
-
case Wl:
|
|
774
773
|
case Gl:
|
|
775
|
-
case Yl:
|
|
776
|
-
return Ct(+e, +t);
|
|
777
774
|
case Jl:
|
|
778
|
-
return e.name == t.name && e.message == t.message;
|
|
779
775
|
case Xl:
|
|
780
|
-
|
|
781
|
-
return e == t + "";
|
|
776
|
+
return Ct(+e, +t);
|
|
782
777
|
case Ql:
|
|
783
|
-
|
|
778
|
+
return e.name == t.name && e.message == t.message;
|
|
784
779
|
case Zl:
|
|
785
|
-
|
|
786
|
-
|
|
780
|
+
case ts:
|
|
781
|
+
return e == t + "";
|
|
782
|
+
case Yl:
|
|
783
|
+
var c = Hl;
|
|
784
|
+
case es:
|
|
785
|
+
var l = o & ql;
|
|
786
|
+
if (c || (c = zl), e.size != t.size && !l)
|
|
787
787
|
return !1;
|
|
788
788
|
var d = u.get(e);
|
|
789
789
|
if (d)
|
|
790
790
|
return d == t;
|
|
791
|
-
o |=
|
|
791
|
+
o |= Wl, u.set(e, t);
|
|
792
792
|
var b = Yn(c(e), c(t), o, i, a, u);
|
|
793
793
|
return u.delete(e), b;
|
|
794
|
-
case
|
|
794
|
+
case ns:
|
|
795
795
|
if (ut)
|
|
796
796
|
return ut.call(e) == ut.call(t);
|
|
797
797
|
}
|
|
798
798
|
return !1;
|
|
799
799
|
}
|
|
800
|
-
var
|
|
801
|
-
function
|
|
802
|
-
var u = n &
|
|
800
|
+
var as = 1, ls = Object.prototype, ss = ls.hasOwnProperty;
|
|
801
|
+
function ds(e, t, n, o, i, a) {
|
|
802
|
+
var u = n & as, c = qt(e), l = c.length, d = qt(t), b = d.length;
|
|
803
803
|
if (l != b && !u)
|
|
804
804
|
return !1;
|
|
805
805
|
for (var T = l; T--; ) {
|
|
806
806
|
var y = c[T];
|
|
807
|
-
if (!(u ? y in t :
|
|
807
|
+
if (!(u ? y in t : ss.call(t, y)))
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
810
|
-
var h = a.get(e),
|
|
811
|
-
if (h &&
|
|
812
|
-
return h == t &&
|
|
810
|
+
var h = a.get(e), f = a.get(t);
|
|
811
|
+
if (h && f)
|
|
812
|
+
return h == t && f == e;
|
|
813
813
|
var C = !0;
|
|
814
814
|
a.set(e, t), a.set(t, e);
|
|
815
815
|
for (var s = u; ++T < l; ) {
|
|
@@ -829,8 +829,8 @@ function ss(e, t, n, o, i, a) {
|
|
|
829
829
|
}
|
|
830
830
|
return a.delete(e), a.delete(t), C;
|
|
831
831
|
}
|
|
832
|
-
var
|
|
833
|
-
function
|
|
832
|
+
var us = 1, rn = "[object Arguments]", on = "[object Array]", He = "[object Object]", cs = Object.prototype, an = cs.hasOwnProperty;
|
|
833
|
+
function fs(e, t, n, o, i, a) {
|
|
834
834
|
var u = ce(e), c = ce(t), l = u ? on : te(e), d = c ? on : te(t);
|
|
835
835
|
l = l == rn ? He : l, d = d == rn ? He : d;
|
|
836
836
|
var b = l == He, T = d == He, y = l == d;
|
|
@@ -840,73 +840,73 @@ function cs(e, t, n, o, i, a) {
|
|
|
840
840
|
u = !0, b = !1;
|
|
841
841
|
}
|
|
842
842
|
if (y && !b)
|
|
843
|
-
return a || (a = new de()), u || Dn(e) ? Yn(e, t, n, o, i, a) :
|
|
844
|
-
if (!(n &
|
|
845
|
-
var h = b && an.call(e, "__wrapped__"),
|
|
846
|
-
if (h ||
|
|
847
|
-
var C = h ? e.value() : e, s =
|
|
843
|
+
return a || (a = new de()), u || Dn(e) ? Yn(e, t, n, o, i, a) : os(e, t, l, n, o, i, a);
|
|
844
|
+
if (!(n & us)) {
|
|
845
|
+
var h = b && an.call(e, "__wrapped__"), f = T && an.call(t, "__wrapped__");
|
|
846
|
+
if (h || f) {
|
|
847
|
+
var C = h ? e.value() : e, s = f ? t.value() : t;
|
|
848
848
|
return a || (a = new de()), i(C, s, n, o, a);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
return y ? (a || (a = new de()),
|
|
851
|
+
return y ? (a || (a = new de()), ds(e, t, n, o, i, a)) : !1;
|
|
852
852
|
}
|
|
853
853
|
function Xn(e, t, n, o, i) {
|
|
854
|
-
return e === t ? !0 : e == null || t == null || !ue(e) && !ue(t) ? e !== e && t !== t :
|
|
854
|
+
return e === t ? !0 : e == null || t == null || !ue(e) && !ue(t) ? e !== e && t !== t : fs(e, t, n, o, Xn, i);
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function ps(e) {
|
|
857
857
|
var t = e == null ? 0 : e.length;
|
|
858
858
|
return t ? e[t - 1] : void 0;
|
|
859
859
|
}
|
|
860
|
-
function ps(e, t) {
|
|
861
|
-
return t.length < 2 ? e : na(e, pa(t, 0, -1));
|
|
862
|
-
}
|
|
863
860
|
function ms(e, t) {
|
|
864
|
-
return
|
|
861
|
+
return t.length < 2 ? e : ia(e, ma(t, 0, -1));
|
|
865
862
|
}
|
|
866
863
|
function gs(e, t) {
|
|
867
|
-
return
|
|
864
|
+
return Xn(e, t);
|
|
865
|
+
}
|
|
866
|
+
function bs(e, t) {
|
|
867
|
+
return t = xt(t, e), e = ms(e, t), e == null || delete e[Nn(ps(t))];
|
|
868
868
|
}
|
|
869
|
-
function
|
|
870
|
-
return
|
|
869
|
+
function ys(e) {
|
|
870
|
+
return pa(e) ? void 0 : e;
|
|
871
871
|
}
|
|
872
|
-
var
|
|
872
|
+
var _s = 1, vs = 2, hs = 4, Ts = la(function(e, t) {
|
|
873
873
|
var n = {};
|
|
874
874
|
if (e == null)
|
|
875
875
|
return n;
|
|
876
876
|
var o = !1;
|
|
877
877
|
t = Cn(t, function(a) {
|
|
878
878
|
return a = xt(a, e), o || (o = a.length > 1), a;
|
|
879
|
-
}),
|
|
879
|
+
}), Ir(e, Wn(e), n), o && (n = We(n, _s | vs | hs, ys));
|
|
880
880
|
for (var i = t.length; i--; )
|
|
881
|
-
|
|
881
|
+
bs(n, t[i]);
|
|
882
882
|
return n;
|
|
883
883
|
});
|
|
884
884
|
const z = [];
|
|
885
885
|
for (let e = 0; e < 256; ++e)
|
|
886
886
|
z.push((e + 256).toString(16).slice(1));
|
|
887
|
-
function
|
|
887
|
+
function ws(e, t = 0) {
|
|
888
888
|
return (z[e[t + 0]] + z[e[t + 1]] + z[e[t + 2]] + z[e[t + 3]] + "-" + z[e[t + 4]] + z[e[t + 5]] + "-" + z[e[t + 6]] + z[e[t + 7]] + "-" + z[e[t + 8]] + z[e[t + 9]] + "-" + z[e[t + 10]] + z[e[t + 11]] + z[e[t + 12]] + z[e[t + 13]] + z[e[t + 14]] + z[e[t + 15]]).toLowerCase();
|
|
889
889
|
}
|
|
890
890
|
let ct;
|
|
891
|
-
const
|
|
892
|
-
function
|
|
891
|
+
const Ss = new Uint8Array(16);
|
|
892
|
+
function Es() {
|
|
893
893
|
if (!ct) {
|
|
894
894
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
895
895
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
896
896
|
ct = crypto.getRandomValues.bind(crypto);
|
|
897
897
|
}
|
|
898
|
-
return ct(
|
|
898
|
+
return ct(Ss);
|
|
899
899
|
}
|
|
900
|
-
const
|
|
901
|
-
function
|
|
900
|
+
const Cs = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ln = { randomUUID: Cs };
|
|
901
|
+
function Os(e, t, n) {
|
|
902
902
|
var i;
|
|
903
903
|
if (ln.randomUUID && !e)
|
|
904
904
|
return ln.randomUUID();
|
|
905
905
|
e = e || {};
|
|
906
|
-
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ??
|
|
906
|
+
const o = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? Es();
|
|
907
907
|
if (o.length < 16)
|
|
908
908
|
throw new Error("Random bytes length must be >= 16");
|
|
909
|
-
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128,
|
|
909
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, ws(o);
|
|
910
910
|
}
|
|
911
911
|
const Zn = {
|
|
912
912
|
ip: "127.0.0.1",
|
|
@@ -936,13 +936,13 @@ const Zn = {
|
|
|
936
936
|
cluster_max_redirections: 0,
|
|
937
937
|
connection_is_proxied: !1,
|
|
938
938
|
timeout: 2e3
|
|
939
|
-
},
|
|
939
|
+
}, Kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
940
940
|
__proto__: null,
|
|
941
941
|
DEFAULT_CLUSTER_NODE: Zn,
|
|
942
942
|
DEFAULT_FIELDS: ti,
|
|
943
943
|
DEFAULT_REDIS_TYPE: $e,
|
|
944
944
|
DEFAULT_SENTINEL_NODE: ei
|
|
945
|
-
}, Symbol.toStringTag, { value: "Module" })), De = (e) => ({ ...e, id:
|
|
945
|
+
}, Symbol.toStringTag, { value: "Module" })), De = (e) => ({ ...e, id: Os() }), Tt = (e) => {
|
|
946
946
|
const { id: t, ...n } = e;
|
|
947
947
|
return n;
|
|
948
948
|
}, ni = () => De(ei), ii = () => De(Zn), Ue = (e) => {
|
|
@@ -985,7 +985,7 @@ const Zn = {
|
|
|
985
985
|
arrayToString(e, t = ", ") {
|
|
986
986
|
return e ? e.join(t) : "";
|
|
987
987
|
}
|
|
988
|
-
},
|
|
988
|
+
}, Hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
989
989
|
__proto__: null,
|
|
990
990
|
genDefaultClusterNode: ii,
|
|
991
991
|
genDefaultSentinelNode: ni,
|
|
@@ -1013,7 +1013,7 @@ const Zn = {
|
|
|
1013
1013
|
konnect: `${ze}/partials/{id}/links`,
|
|
1014
1014
|
kongManager: `${qe}/partials/{id}/links`
|
|
1015
1015
|
}
|
|
1016
|
-
},
|
|
1016
|
+
}, Is = (e) => {
|
|
1017
1017
|
const { partialId: t, config: n, defaultRedisType: o = $e } = e, i = !!t, { axiosInstance: a } = St(n.axiosRequestConfig), { getMessageFromError: u } = bn(), c = H(() => t ? lt.Edit : lt.Create), l = un({
|
|
1018
1018
|
fields: {
|
|
1019
1019
|
name: "",
|
|
@@ -1029,7 +1029,7 @@ const Zn = {
|
|
|
1029
1029
|
});
|
|
1030
1030
|
const y = H(() => {
|
|
1031
1031
|
var _, I;
|
|
1032
|
-
if (i &&
|
|
1032
|
+
if (i && gs(d.value, h.value) || !((_ = l.fields.name) != null && _.length))
|
|
1033
1033
|
return !1;
|
|
1034
1034
|
const { config: m } = l.fields;
|
|
1035
1035
|
switch (b.value) {
|
|
@@ -1155,7 +1155,7 @@ const Zn = {
|
|
|
1155
1155
|
default:
|
|
1156
1156
|
throw new Error("Invalid redis type");
|
|
1157
1157
|
}
|
|
1158
|
-
}),
|
|
1158
|
+
}), f = H(() => {
|
|
1159
1159
|
let m = `${n.apiBaseUrl}${ke.form[n.app][c.value]}`;
|
|
1160
1160
|
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;
|
|
1161
1161
|
}), C = H(() => {
|
|
@@ -1178,7 +1178,7 @@ const Zn = {
|
|
|
1178
1178
|
return n.app === "konnect" && (m = {
|
|
1179
1179
|
...m,
|
|
1180
1180
|
config: E.removeNullValues(m.config)
|
|
1181
|
-
}), c.value === lt.Create ? await a.post(
|
|
1181
|
+
}), c.value === lt.Create ? await a.post(f.value, m) : n.app === "konnect" ? await a.put(f.value, m) : await a.patch(f.value, m);
|
|
1182
1182
|
} catch (m) {
|
|
1183
1183
|
throw l.errorMessage = u(m), l.readonly = !1, m;
|
|
1184
1184
|
}
|
|
@@ -1192,7 +1192,7 @@ const Zn = {
|
|
|
1192
1192
|
), l.fields.config.sentinel_nodes = E.addIdToSentinelNodes(m.config.sentinel_nodes ?? []), l.fields.config.cluster_nodes = E.addIdToClusterNodes(m.config.cluster_nodes ?? []), l.fields.name = m.name, l.fields.type = m.type, l.fields.tags = E.arrayToString(m.tags), b.value = Ue(m), d.value = JSON.parse(JSON.stringify(h.value));
|
|
1193
1193
|
}
|
|
1194
1194
|
};
|
|
1195
|
-
},
|
|
1195
|
+
}, xs = { class: "array-card-container" }, Rs = /* @__PURE__ */ Q({
|
|
1196
1196
|
__name: "FieldArrayCardContainer",
|
|
1197
1197
|
props: {
|
|
1198
1198
|
model: {
|
|
@@ -1216,7 +1216,7 @@ const Zn = {
|
|
|
1216
1216
|
setup(e) {
|
|
1217
1217
|
return (t, n) => {
|
|
1218
1218
|
const o = j("KCard"), i = j("KButton");
|
|
1219
|
-
return R(), J("div",
|
|
1219
|
+
return R(), J("div", xs, [
|
|
1220
1220
|
g(o, { class: "card" }, {
|
|
1221
1221
|
default: S(() => [
|
|
1222
1222
|
fi(t.$slots, "default", {}, void 0, !0)
|
|
@@ -1230,7 +1230,7 @@ const Zn = {
|
|
|
1230
1230
|
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1231
1231
|
}, {
|
|
1232
1232
|
default: S(() => [
|
|
1233
|
-
g(r(
|
|
1233
|
+
g(r(Vi))
|
|
1234
1234
|
]),
|
|
1235
1235
|
_: 1
|
|
1236
1236
|
}, 8, ["disabled"])
|
|
@@ -1242,7 +1242,7 @@ const Zn = {
|
|
|
1242
1242
|
for (const [o, i] of t)
|
|
1243
1243
|
n[o] = i;
|
|
1244
1244
|
return n;
|
|
1245
|
-
}, ri = /* @__PURE__ */ ie(
|
|
1245
|
+
}, ri = /* @__PURE__ */ ie(Rs, [["__scopeId", "data-v-a0b2e4fb"]]), $s = {
|
|
1246
1246
|
create: "New Redis Configuration",
|
|
1247
1247
|
copy_id: "Copy ID",
|
|
1248
1248
|
copy_json: "Copy JSON",
|
|
@@ -1253,21 +1253,21 @@ const Zn = {
|
|
|
1253
1253
|
loading: "Loading...",
|
|
1254
1254
|
view_plugin: "View Plugin",
|
|
1255
1255
|
close: "Close"
|
|
1256
|
-
},
|
|
1256
|
+
}, Ps = {
|
|
1257
1257
|
placeholder: "Filter by name",
|
|
1258
1258
|
placeholder_for_exact_match: "Filter by exact ID",
|
|
1259
1259
|
no_results: "No results found"
|
|
1260
|
-
},
|
|
1260
|
+
}, ks = {
|
|
1261
1261
|
placeholder: "Select a Redis configuration",
|
|
1262
1262
|
empty_state: "No Redis configurations available",
|
|
1263
1263
|
create_new: "Create new Redis configuration"
|
|
1264
|
-
},
|
|
1264
|
+
}, As = {
|
|
1265
1265
|
copy: "Failed to copy to clipboard",
|
|
1266
1266
|
general: "Redis configuration could not be retrieved",
|
|
1267
1267
|
delete: "The redis configuration could not be deleted at this time."
|
|
1268
|
-
}, As = {
|
|
1269
|
-
success: "Copied {val} to clipboard"
|
|
1270
1268
|
}, Vs = {
|
|
1269
|
+
success: "Copied {val} to clipboard"
|
|
1270
|
+
}, Ms = {
|
|
1271
1271
|
redis_partial_modal_title: "Create Redis Configuration",
|
|
1272
1272
|
partial_created_success_message: "Redis configuration created successfully",
|
|
1273
1273
|
sections: {
|
|
@@ -1449,19 +1449,19 @@ const Zn = {
|
|
|
1449
1449
|
plugin_count: "{count} plugin(s)",
|
|
1450
1450
|
confirm: "Confirm"
|
|
1451
1451
|
}
|
|
1452
|
-
},
|
|
1452
|
+
}, Ls = {
|
|
1453
1453
|
title: "Associated plugins ({count})",
|
|
1454
1454
|
headers: {
|
|
1455
1455
|
plugin: "Plugin",
|
|
1456
1456
|
instance_name: "Name"
|
|
1457
1457
|
}
|
|
1458
|
-
},
|
|
1458
|
+
}, Ds = {
|
|
1459
1459
|
title: "Redis Configurations",
|
|
1460
1460
|
empty_state: {
|
|
1461
1461
|
title: "Configure a Redis Configuration",
|
|
1462
1462
|
description: "Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."
|
|
1463
1463
|
}
|
|
1464
|
-
},
|
|
1464
|
+
}, js = {
|
|
1465
1465
|
action: "New configuration",
|
|
1466
1466
|
table_headers: {
|
|
1467
1467
|
name: "Name",
|
|
@@ -1480,33 +1480,33 @@ const Zn = {
|
|
|
1480
1480
|
description: "Edits to your configuration will be cascaded automatically to all associated plugins."
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
|
-
},
|
|
1484
|
-
actions:
|
|
1485
|
-
search:
|
|
1486
|
-
selector:
|
|
1483
|
+
}, Us = {
|
|
1484
|
+
actions: $s,
|
|
1485
|
+
search: Ps,
|
|
1486
|
+
selector: ks,
|
|
1487
1487
|
delete: {
|
|
1488
1488
|
title: "Delete Redis configuration",
|
|
1489
1489
|
description: "You’re about to delete this item. Are you sure you want to proceed?",
|
|
1490
1490
|
warning: "To delete this configuration, first remove it from all associated plugins."
|
|
1491
1491
|
},
|
|
1492
|
-
errors:
|
|
1493
|
-
copy:
|
|
1494
|
-
form:
|
|
1495
|
-
linked_plugins_modal:
|
|
1496
|
-
redis:
|
|
1497
|
-
list:
|
|
1492
|
+
errors: As,
|
|
1493
|
+
copy: Vs,
|
|
1494
|
+
form: Ms,
|
|
1495
|
+
linked_plugins_modal: Ls,
|
|
1496
|
+
redis: Ds,
|
|
1497
|
+
list: js
|
|
1498
1498
|
};
|
|
1499
1499
|
function it() {
|
|
1500
|
-
const e =
|
|
1500
|
+
const e = ji("en-us", Us);
|
|
1501
1501
|
return {
|
|
1502
1502
|
i18n: e,
|
|
1503
|
-
i18nT:
|
|
1503
|
+
i18nT: Ui(e)
|
|
1504
1504
|
// Translation component <i18n-t>
|
|
1505
1505
|
};
|
|
1506
1506
|
}
|
|
1507
1507
|
const be = {
|
|
1508
1508
|
useI18n: it
|
|
1509
|
-
},
|
|
1509
|
+
}, Ns = { class: "cluster-node-items" }, Bs = /* @__PURE__ */ Q({
|
|
1510
1510
|
__name: "ClusterNodes",
|
|
1511
1511
|
props: /* @__PURE__ */ cn({
|
|
1512
1512
|
readonly: { type: Boolean }
|
|
@@ -1542,7 +1542,7 @@ const be = {
|
|
|
1542
1542
|
onRemoveItem: (y) => i(T)
|
|
1543
1543
|
}, {
|
|
1544
1544
|
default: S(() => [
|
|
1545
|
-
F("div",
|
|
1545
|
+
F("div", Ns, [
|
|
1546
1546
|
g(l, {
|
|
1547
1547
|
modelValue: b.ip,
|
|
1548
1548
|
"onUpdate:modelValue": (y) => b.ip = y,
|
|
@@ -1588,7 +1588,7 @@ const be = {
|
|
|
1588
1588
|
]);
|
|
1589
1589
|
};
|
|
1590
1590
|
}
|
|
1591
|
-
}),
|
|
1591
|
+
}), Fs = /* @__PURE__ */ ie(Bs, [["__scopeId", "data-v-776a626d"]]), Ks = { class: "sentinel-node-items" }, Hs = /* @__PURE__ */ Q({
|
|
1592
1592
|
__name: "SentinelNodes",
|
|
1593
1593
|
props: /* @__PURE__ */ cn({
|
|
1594
1594
|
readonly: { type: Boolean }
|
|
@@ -1624,7 +1624,7 @@ const be = {
|
|
|
1624
1624
|
onRemoveItem: (y) => i(T)
|
|
1625
1625
|
}, {
|
|
1626
1626
|
default: S(() => [
|
|
1627
|
-
F("div",
|
|
1627
|
+
F("div", Ks, [
|
|
1628
1628
|
g(l, {
|
|
1629
1629
|
modelValue: b.host,
|
|
1630
1630
|
"onUpdate:modelValue": (y) => b.host = y,
|
|
@@ -1670,9 +1670,9 @@ const be = {
|
|
|
1670
1670
|
]);
|
|
1671
1671
|
};
|
|
1672
1672
|
}
|
|
1673
|
-
}),
|
|
1673
|
+
}), zs = /* @__PURE__ */ ie(Hs, [["__scopeId", "data-v-cd1c07e2"]]);
|
|
1674
1674
|
var ft = /* @__PURE__ */ new WeakMap(), sn = 0;
|
|
1675
|
-
function
|
|
1675
|
+
function qs(e) {
|
|
1676
1676
|
if (!e.length)
|
|
1677
1677
|
return "";
|
|
1678
1678
|
for (var t = "arg", n = 0; n < e.length; ++n) {
|
|
@@ -1681,14 +1681,14 @@ function zs(e) {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
return t;
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function Ws(e) {
|
|
1685
1685
|
if (typeof e == "function")
|
|
1686
1686
|
try {
|
|
1687
1687
|
e = e();
|
|
1688
1688
|
} catch {
|
|
1689
1689
|
e = "";
|
|
1690
1690
|
}
|
|
1691
|
-
return Array.isArray(e) ? e =
|
|
1691
|
+
return Array.isArray(e) ? e = qs(e) : e = String(e || ""), e;
|
|
1692
1692
|
}
|
|
1693
1693
|
var Pt = (
|
|
1694
1694
|
/** @class */
|
|
@@ -1697,7 +1697,7 @@ var Pt = (
|
|
|
1697
1697
|
t === void 0 && (t = 0), this.items = /* @__PURE__ */ new Map(), this.ttl = t;
|
|
1698
1698
|
}
|
|
1699
1699
|
return e.prototype.serializeKey = function(t) {
|
|
1700
|
-
return
|
|
1700
|
+
return Ws(t);
|
|
1701
1701
|
}, e.prototype.get = function(t) {
|
|
1702
1702
|
var n = this.serializeKey(t);
|
|
1703
1703
|
return this.items.get(n);
|
|
@@ -1719,21 +1719,21 @@ var Pt = (
|
|
|
1719
1719
|
}, e;
|
|
1720
1720
|
}()
|
|
1721
1721
|
);
|
|
1722
|
-
function
|
|
1722
|
+
function Gs() {
|
|
1723
1723
|
return typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function Js() {
|
|
1726
1726
|
return typeof document < "u" && typeof document.visibilityState < "u" ? document.visibilityState !== "hidden" : !0;
|
|
1727
1727
|
}
|
|
1728
|
-
var
|
|
1728
|
+
var Qs = function(e) {
|
|
1729
1729
|
return fetch(e).then(function(t) {
|
|
1730
1730
|
return t.json();
|
|
1731
1731
|
});
|
|
1732
1732
|
};
|
|
1733
1733
|
const pt = {
|
|
1734
|
-
isOnline:
|
|
1735
|
-
isDocumentVisible:
|
|
1736
|
-
fetcher:
|
|
1734
|
+
isOnline: Gs,
|
|
1735
|
+
isDocumentVisible: Js,
|
|
1736
|
+
fetcher: Qs
|
|
1737
1737
|
};
|
|
1738
1738
|
var se = function() {
|
|
1739
1739
|
return se = Object.assign || function(e) {
|
|
@@ -1828,7 +1828,7 @@ var se = function() {
|
|
|
1828
1828
|
if (d[0] & 5) throw d[1];
|
|
1829
1829
|
return { value: d[0] ? d[1] : void 0, done: !0 };
|
|
1830
1830
|
}
|
|
1831
|
-
},
|
|
1831
|
+
}, Ys = function(e, t) {
|
|
1832
1832
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
1833
1833
|
if (!n) return e;
|
|
1834
1834
|
var o = n.call(e), i, a = [], u;
|
|
@@ -1844,7 +1844,7 @@ var se = function() {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
1846
|
return a;
|
|
1847
|
-
},
|
|
1847
|
+
}, Xs = function(e, t, n) {
|
|
1848
1848
|
if (n || arguments.length === 2) for (var o = 0, i = t.length, a; o < i; o++)
|
|
1849
1849
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
1850
1850
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
@@ -1863,7 +1863,7 @@ var se = function() {
|
|
|
1863
1863
|
isOnline: pt.isOnline,
|
|
1864
1864
|
isDocumentVisible: pt.isDocumentVisible
|
|
1865
1865
|
};
|
|
1866
|
-
function
|
|
1866
|
+
function Zs(e, t, n) {
|
|
1867
1867
|
var o = Ze.get(e);
|
|
1868
1868
|
if (o)
|
|
1869
1869
|
o.data.push(t);
|
|
@@ -1872,7 +1872,7 @@ function Xs(e, t, n) {
|
|
|
1872
1872
|
Ze.set(e, [t], n > 0 ? n + i : n);
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
|
-
function
|
|
1875
|
+
function ed(e, t, n) {
|
|
1876
1876
|
if (n.isDocumentVisible() && !(n.errorRetryCount !== void 0 && t > n.errorRetryCount)) {
|
|
1877
1877
|
var o = Math.min(t || 0, n.errorRetryCount), i = o * n.errorRetryInterval;
|
|
1878
1878
|
setTimeout(function() {
|
|
@@ -1886,7 +1886,7 @@ var dn = function(e, t, n, o) {
|
|
|
1886
1886
|
return Re(this, function(T) {
|
|
1887
1887
|
switch (T.label) {
|
|
1888
1888
|
case 0:
|
|
1889
|
-
if (!
|
|
1889
|
+
if (!nd(t)) return [3, 5];
|
|
1890
1890
|
T.label = 1;
|
|
1891
1891
|
case 1:
|
|
1892
1892
|
return T.trys.push([1, 3, , 4]), [4, t];
|
|
@@ -1909,14 +1909,14 @@ var dn = function(e, t, n, o) {
|
|
|
1909
1909
|
return y.key === e;
|
|
1910
1910
|
}), b.forEach(function(y, h) {
|
|
1911
1911
|
typeof l.data < "u" && (y.data = l.data), y.error = l.error, y.isValidating = l.isValidating, y.isLoading = l.isValidating;
|
|
1912
|
-
var
|
|
1913
|
-
|
|
1912
|
+
var f = h === b.length - 1;
|
|
1913
|
+
f || delete b[h];
|
|
1914
1914
|
}), b = b.filter(Boolean)), [2, l];
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
1917
1917
|
});
|
|
1918
1918
|
};
|
|
1919
|
-
function
|
|
1919
|
+
function td() {
|
|
1920
1920
|
for (var e = this, t = [], n = 0; n < arguments.length; n++)
|
|
1921
1921
|
t[n] = arguments[n];
|
|
1922
1922
|
var o, i, a = se({}, ai), u = !1, c = !1, l = pi(), d = (l == null ? void 0 : l.proxy) || l;
|
|
@@ -1934,7 +1934,7 @@ function ed() {
|
|
|
1934
1934
|
isLoading: !0,
|
|
1935
1935
|
key: null
|
|
1936
1936
|
}));
|
|
1937
|
-
var
|
|
1937
|
+
var f = function(m, _) {
|
|
1938
1938
|
return xe(e, void 0, void 0, function() {
|
|
1939
1939
|
var I, P, W, re, ye, le, X, _e = this;
|
|
1940
1940
|
return Re(this, function(Z) {
|
|
@@ -1952,7 +1952,7 @@ function ed() {
|
|
|
1952
1952
|
return Re(this, function(me) {
|
|
1953
1953
|
switch (me.label) {
|
|
1954
1954
|
case 0:
|
|
1955
|
-
return ee = mt.get(P), ee ? [3, 2] : (ve = Array.isArray(P) ? P : [P], he = ye.apply(void 0,
|
|
1955
|
+
return ee = mt.get(P), ee ? [3, 2] : (ve = Array.isArray(P) ? P : [P], he = ye.apply(void 0, Xs([], Ys(ve), !1)), mt.set(P, he, a.dedupingInterval), [4, dn(P, he, a.cache, T)]);
|
|
1956
1956
|
case 1:
|
|
1957
1957
|
return me.sent(), [3, 4];
|
|
1958
1958
|
case 2:
|
|
@@ -1960,7 +1960,7 @@ function ed() {
|
|
|
1960
1960
|
case 3:
|
|
1961
1961
|
me.sent(), me.label = 4;
|
|
1962
1962
|
case 4:
|
|
1963
|
-
return h.isValidating = !1, h.isLoading = !1, mt.delete(P), h.error !== void 0 && (Oe = !u && a.shouldRetryOnError && (_ ? _.shouldRetryOnError : !0), Oe &&
|
|
1963
|
+
return h.isValidating = !1, h.isLoading = !1, mt.delete(P), h.error !== void 0 && (Oe = !u && a.shouldRetryOnError && (_ ? _.shouldRetryOnError : !0), Oe && ed(f, _ ? _.errorRetryCount : 1, a)), [
|
|
1964
1964
|
2
|
|
1965
1965
|
/*return*/
|
|
1966
1966
|
];
|
|
@@ -2002,7 +2002,7 @@ function ed() {
|
|
|
2002
2002
|
}, C = function() {
|
|
2003
2003
|
return xe(e, void 0, void 0, function() {
|
|
2004
2004
|
return Re(this, function(m) {
|
|
2005
|
-
return [2,
|
|
2005
|
+
return [2, f(null, { shouldRetryOnError: !1 })];
|
|
2006
2006
|
});
|
|
2007
2007
|
});
|
|
2008
2008
|
}, s = null;
|
|
@@ -2012,7 +2012,7 @@ function ed() {
|
|
|
2012
2012
|
return Re(this, function(_) {
|
|
2013
2013
|
switch (_.label) {
|
|
2014
2014
|
case 0:
|
|
2015
|
-
return !h.error && a.isOnline() ? [4,
|
|
2015
|
+
return !h.error && a.isOnline() ? [4, f()] : [3, 2];
|
|
2016
2016
|
case 1:
|
|
2017
2017
|
return _.sent(), [3, 3];
|
|
2018
2018
|
case 2:
|
|
@@ -2036,18 +2036,18 @@ function ed() {
|
|
|
2036
2036
|
});
|
|
2037
2037
|
try {
|
|
2038
2038
|
Te(y, function(m) {
|
|
2039
|
-
bi(y) || (y.value = m), h.key = m, h.isValidating = !!m,
|
|
2039
|
+
bi(y) || (y.value = m), h.key = m, h.isValidating = !!m, Zs(y.value, h, T), !b && !c && y.value && f(), c = !1;
|
|
2040
2040
|
}, {
|
|
2041
2041
|
immediate: !0
|
|
2042
2042
|
});
|
|
2043
2043
|
} catch {
|
|
2044
2044
|
}
|
|
2045
2045
|
var k = se(se({}, yi(h)), { mutate: function(m, _) {
|
|
2046
|
-
return
|
|
2046
|
+
return f(m, se(se({}, _), { forceRevalidate: !0 }));
|
|
2047
2047
|
} });
|
|
2048
2048
|
return k;
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function nd(e) {
|
|
2051
2051
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
2052
2052
|
}
|
|
2053
2053
|
function li(e) {
|
|
@@ -2068,7 +2068,7 @@ const Ne = (e) => {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
};
|
|
2070
2070
|
}, si = (e) => {
|
|
2071
|
-
const { partialId: t, config: n } = e, { fetcher: o } = Ne(n), i = $([]), { data: a } =
|
|
2071
|
+
const { partialId: t, config: n } = e, { fetcher: o } = Ne(n), i = $([]), { data: a } = td(
|
|
2072
2072
|
li(t),
|
|
2073
2073
|
() => o({ partialId: t }),
|
|
2074
2074
|
{
|
|
@@ -2079,7 +2079,7 @@ const Ne = (e) => {
|
|
|
2079
2079
|
var u;
|
|
2080
2080
|
i.value = ((u = a.value) == null ? void 0 : u.data) ?? [];
|
|
2081
2081
|
}), i;
|
|
2082
|
-
},
|
|
2082
|
+
}, id = { class: "kong-ui-entities-redis-configurations-form" }, rd = /* @__PURE__ */ Q({
|
|
2083
2083
|
__name: "RedisConfigurationForm",
|
|
2084
2084
|
props: {
|
|
2085
2085
|
config: {
|
|
@@ -2155,7 +2155,7 @@ const Ne = (e) => {
|
|
|
2155
2155
|
{ label: i("form.options.sentinel_role.master"), value: "master" },
|
|
2156
2156
|
{ label: i("form.options.sentinel_role.slave"), value: "slave" },
|
|
2157
2157
|
{ label: i("form.options.sentinel_role.any"), value: "any" }
|
|
2158
|
-
],
|
|
2158
|
+
], f = (U) => {
|
|
2159
2159
|
const v = U.value === w.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
2160
2160
|
return `${U.label}${v}`;
|
|
2161
2161
|
}, C = () => n.disabledPartialType && Xe($e) === n.disabledPartialType ? n.disabledPartialType === G.REDIS_CE ? w.HOST_PORT_EE : w.HOST_PORT_CE : $e, {
|
|
@@ -2168,12 +2168,12 @@ const Ne = (e) => {
|
|
|
2168
2168
|
fetchUrl: W,
|
|
2169
2169
|
submit: re,
|
|
2170
2170
|
setInitialFormValues: ye
|
|
2171
|
-
} =
|
|
2171
|
+
} = Is({
|
|
2172
2172
|
partialId: n.partialId,
|
|
2173
2173
|
defaultRedisType: C(),
|
|
2174
2174
|
config: n.config
|
|
2175
2175
|
}), { fetcher: le } = Ne(n.config), X = $(!1), _e = $(!1), Z = $(0), ee = H(() => d.value === "terraform" ? {
|
|
2176
|
-
[m.value.type.replaceAll("-", "_")]:
|
|
2176
|
+
[m.value.type.replaceAll("-", "_")]: Ts(m.value, ["type"])
|
|
2177
2177
|
} : m.value), ve = async () => {
|
|
2178
2178
|
try {
|
|
2179
2179
|
if (_ && !_e.value) {
|
|
@@ -2207,8 +2207,8 @@ const Ne = (e) => {
|
|
|
2207
2207
|
}), (U, v) => {
|
|
2208
2208
|
const ot = j("KAlert"), Ie = j("KSelect"), B = j("KInput"), O = j("KCheckbox"), x = j("KModal");
|
|
2209
2209
|
return R(), J(je, null, [
|
|
2210
|
-
F("div",
|
|
2211
|
-
g(r(
|
|
2210
|
+
F("div", id, [
|
|
2211
|
+
g(r(Si), {
|
|
2212
2212
|
"action-teleport-target": e.actionTeleportTarget,
|
|
2213
2213
|
"can-submit": r(k),
|
|
2214
2214
|
config: e.config,
|
|
@@ -2220,7 +2220,7 @@ const Ne = (e) => {
|
|
|
2220
2220
|
"is-readonly": r(s).readonly,
|
|
2221
2221
|
"slidout-top-offset": e.slidoutTopOffset,
|
|
2222
2222
|
onCancel: Oe,
|
|
2223
|
-
onCodeBlockTabChange: v[29] || (v[29] = (
|
|
2223
|
+
onCodeBlockTabChange: v[29] || (v[29] = (p) => d.value = p),
|
|
2224
2224
|
"onFetch:error": rt,
|
|
2225
2225
|
"onFetch:success": Be,
|
|
2226
2226
|
onLoading: me,
|
|
@@ -2254,7 +2254,7 @@ const Ne = (e) => {
|
|
|
2254
2254
|
default: S(() => [
|
|
2255
2255
|
g(Ie, {
|
|
2256
2256
|
modelValue: r(I),
|
|
2257
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
2257
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => _i(I) ? I.value = p : null),
|
|
2258
2258
|
"data-testid": "redis-type-select",
|
|
2259
2259
|
disabled: r(_) && r(I) === r(w).HOST_PORT_CE,
|
|
2260
2260
|
items: y.value,
|
|
@@ -2263,8 +2263,8 @@ const Ne = (e) => {
|
|
|
2263
2263
|
readonly: r(s).readonly,
|
|
2264
2264
|
required: ""
|
|
2265
2265
|
}, {
|
|
2266
|
-
"selected-item-template": S(({ item:
|
|
2267
|
-
ne(N(p
|
|
2266
|
+
"selected-item-template": S(({ item: p }) => [
|
|
2267
|
+
ne(N(f(p)), 1)
|
|
2268
2268
|
]),
|
|
2269
2269
|
_: 1
|
|
2270
2270
|
}, 8, ["modelValue", "disabled", "items", "label", "readonly"])
|
|
@@ -2279,7 +2279,7 @@ const Ne = (e) => {
|
|
|
2279
2279
|
default: S(() => [
|
|
2280
2280
|
g(B, {
|
|
2281
2281
|
modelValue: r(s).fields.name,
|
|
2282
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
2282
|
+
"onUpdate:modelValue": v[1] || (v[1] = (p) => r(s).fields.name = p),
|
|
2283
2283
|
modelModifiers: { trim: !0 },
|
|
2284
2284
|
"data-testid": "redis-name-input",
|
|
2285
2285
|
disabled: r(_),
|
|
@@ -2290,7 +2290,7 @@ const Ne = (e) => {
|
|
|
2290
2290
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
2291
2291
|
g(B, {
|
|
2292
2292
|
modelValue: r(s).fields.tags,
|
|
2293
|
-
"onUpdate:modelValue": v[2] || (v[2] = (
|
|
2293
|
+
"onUpdate:modelValue": v[2] || (v[2] = (p) => r(s).fields.tags = p),
|
|
2294
2294
|
modelModifiers: { trim: !0 },
|
|
2295
2295
|
"data-testid": "redis-tags-input",
|
|
2296
2296
|
help: r(i)("form.fields.tags.help"),
|
|
@@ -2314,7 +2314,7 @@ const Ne = (e) => {
|
|
|
2314
2314
|
default: S(() => [
|
|
2315
2315
|
g(B, {
|
|
2316
2316
|
modelValue: r(s).fields.config.sentinel_master,
|
|
2317
|
-
"onUpdate:modelValue": v[3] || (v[3] = (
|
|
2317
|
+
"onUpdate:modelValue": v[3] || (v[3] = (p) => r(s).fields.config.sentinel_master = p),
|
|
2318
2318
|
"data-testid": "redis-sentinel-master-input",
|
|
2319
2319
|
label: r(i)("form.fields.sentinel_master.label"),
|
|
2320
2320
|
"label-attributes": {
|
|
@@ -2326,7 +2326,7 @@ const Ne = (e) => {
|
|
|
2326
2326
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2327
2327
|
g(Ie, {
|
|
2328
2328
|
modelValue: r(s).fields.config.sentinel_role,
|
|
2329
|
-
"onUpdate:modelValue": v[4] || (v[4] = (
|
|
2329
|
+
"onUpdate:modelValue": v[4] || (v[4] = (p) => r(s).fields.config.sentinel_role = p),
|
|
2330
2330
|
"data-testid": "redis-sentinel-role-select",
|
|
2331
2331
|
items: h,
|
|
2332
2332
|
"kpop-attributes": { "data-testid": "redis-sentinel-role-select-popover" },
|
|
@@ -2338,14 +2338,14 @@ const Ne = (e) => {
|
|
|
2338
2338
|
readonly: r(s).readonly,
|
|
2339
2339
|
required: ""
|
|
2340
2340
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2341
|
-
g(
|
|
2341
|
+
g(zs, {
|
|
2342
2342
|
modelValue: r(s).fields.config.sentinel_nodes,
|
|
2343
|
-
"onUpdate:modelValue": v[5] || (v[5] = (
|
|
2343
|
+
"onUpdate:modelValue": v[5] || (v[5] = (p) => r(s).fields.config.sentinel_nodes = p),
|
|
2344
2344
|
readonly: r(s).readonly
|
|
2345
2345
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2346
2346
|
g(B, {
|
|
2347
2347
|
modelValue: r(s).fields.config.sentinel_username,
|
|
2348
|
-
"onUpdate:modelValue": v[6] || (v[6] = (
|
|
2348
|
+
"onUpdate:modelValue": v[6] || (v[6] = (p) => r(s).fields.config.sentinel_username = p),
|
|
2349
2349
|
modelModifiers: { trim: !0 },
|
|
2350
2350
|
label: r(i)("form.fields.sentinel_username.label"),
|
|
2351
2351
|
"label-attributes": {
|
|
@@ -2357,13 +2357,13 @@ const Ne = (e) => {
|
|
|
2357
2357
|
g(r(Ke), {
|
|
2358
2358
|
class: "secret-picker-provider",
|
|
2359
2359
|
disabled: r(s).readonly,
|
|
2360
|
-
update: (
|
|
2360
|
+
update: (p) => r(s).fields.config.sentinel_username = p,
|
|
2361
2361
|
value: r(s).fields.config.sentinel_username,
|
|
2362
|
-
onOpen: v[7] || (v[7] = (
|
|
2362
|
+
onOpen: v[7] || (v[7] = (p, K) => b(p, K))
|
|
2363
2363
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2364
2364
|
g(B, {
|
|
2365
2365
|
modelValue: r(s).fields.config.sentinel_password,
|
|
2366
|
-
"onUpdate:modelValue": v[8] || (v[8] = (
|
|
2366
|
+
"onUpdate:modelValue": v[8] || (v[8] = (p) => r(s).fields.config.sentinel_password = p),
|
|
2367
2367
|
modelModifiers: { trim: !0 },
|
|
2368
2368
|
label: r(i)("form.fields.sentinel_password.label"),
|
|
2369
2369
|
"label-attributes": {
|
|
@@ -2377,9 +2377,9 @@ const Ne = (e) => {
|
|
|
2377
2377
|
g(r(Ke), {
|
|
2378
2378
|
class: "secret-picker-provider",
|
|
2379
2379
|
disabled: r(s).readonly,
|
|
2380
|
-
update: (
|
|
2380
|
+
update: (p) => r(s).fields.config.sentinel_password = p,
|
|
2381
2381
|
value: r(s).fields.config.sentinel_password,
|
|
2382
|
-
onOpen: v[9] || (v[9] = (
|
|
2382
|
+
onOpen: v[9] || (v[9] = (p, K) => b(p, K))
|
|
2383
2383
|
}, null, 8, ["disabled", "update", "value"])
|
|
2384
2384
|
]),
|
|
2385
2385
|
_: 1
|
|
@@ -2391,14 +2391,14 @@ const Ne = (e) => {
|
|
|
2391
2391
|
title: r(i)("form.sections.cluster.title")
|
|
2392
2392
|
}, {
|
|
2393
2393
|
default: S(() => [
|
|
2394
|
-
g(
|
|
2394
|
+
g(Fs, {
|
|
2395
2395
|
modelValue: r(s).fields.config.cluster_nodes,
|
|
2396
|
-
"onUpdate:modelValue": v[10] || (v[10] = (
|
|
2396
|
+
"onUpdate:modelValue": v[10] || (v[10] = (p) => r(s).fields.config.cluster_nodes = p),
|
|
2397
2397
|
readonly: r(s).readonly
|
|
2398
2398
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2399
2399
|
g(B, {
|
|
2400
2400
|
modelValue: r(s).fields.config.cluster_max_redirections,
|
|
2401
|
-
"onUpdate:modelValue": v[11] || (v[11] = (
|
|
2401
|
+
"onUpdate:modelValue": v[11] || (v[11] = (p) => r(s).fields.config.cluster_max_redirections = p),
|
|
2402
2402
|
"data-testid": "redis-cluster-max-redirections-input",
|
|
2403
2403
|
label: r(i)("form.fields.cluster_max_redirections.label"),
|
|
2404
2404
|
"label-attributes": {
|
|
@@ -2420,7 +2420,7 @@ const Ne = (e) => {
|
|
|
2420
2420
|
r(I) === r(w).HOST_PORT_CE || r(I) === r(w).HOST_PORT_EE ? (R(), q(B, {
|
|
2421
2421
|
key: 0,
|
|
2422
2422
|
modelValue: r(s).fields.config.host,
|
|
2423
|
-
"onUpdate:modelValue": v[12] || (v[12] = (
|
|
2423
|
+
"onUpdate:modelValue": v[12] || (v[12] = (p) => r(s).fields.config.host = p),
|
|
2424
2424
|
modelModifiers: { trim: !0 },
|
|
2425
2425
|
"data-testid": "redis-host-input",
|
|
2426
2426
|
label: r(i)("form.fields.host.label"),
|
|
@@ -2433,7 +2433,7 @@ const Ne = (e) => {
|
|
|
2433
2433
|
r(I) === r(w).HOST_PORT_CE || r(I) === r(w).HOST_PORT_EE ? (R(), q(B, {
|
|
2434
2434
|
key: 1,
|
|
2435
2435
|
modelValue: r(s).fields.config.port,
|
|
2436
|
-
"onUpdate:modelValue": v[13] || (v[13] = (
|
|
2436
|
+
"onUpdate:modelValue": v[13] || (v[13] = (p) => r(s).fields.config.port = p),
|
|
2437
2437
|
modelModifiers: { trim: !0 },
|
|
2438
2438
|
"data-testid": "redis-port-input",
|
|
2439
2439
|
label: r(i)("form.fields.port.label"),
|
|
@@ -2447,7 +2447,7 @@ const Ne = (e) => {
|
|
|
2447
2447
|
r(I) === r(w).HOST_PORT_EE ? (R(), q(O, {
|
|
2448
2448
|
key: 2,
|
|
2449
2449
|
modelValue: r(s).fields.config.connection_is_proxied,
|
|
2450
|
-
"onUpdate:modelValue": v[14] || (v[14] = (
|
|
2450
|
+
"onUpdate:modelValue": v[14] || (v[14] = (p) => r(s).fields.config.connection_is_proxied = p),
|
|
2451
2451
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2452
2452
|
disabled: r(s).readonly,
|
|
2453
2453
|
label: r(i)("form.fields.connection_is_proxied.label"),
|
|
@@ -2459,7 +2459,7 @@ const Ne = (e) => {
|
|
|
2459
2459
|
r(I) === r(w).HOST_PORT_CE ? (R(), q(B, {
|
|
2460
2460
|
key: 3,
|
|
2461
2461
|
modelValue: r(s).fields.config.timeout,
|
|
2462
|
-
"onUpdate:modelValue": v[15] || (v[15] = (
|
|
2462
|
+
"onUpdate:modelValue": v[15] || (v[15] = (p) => r(s).fields.config.timeout = p),
|
|
2463
2463
|
modelModifiers: { trim: !0 },
|
|
2464
2464
|
"data-testid": "redis-timeout-input",
|
|
2465
2465
|
label: r(i)("form.fields.timeout.label"),
|
|
@@ -2472,7 +2472,7 @@ const Ne = (e) => {
|
|
|
2472
2472
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : oe("", !0),
|
|
2473
2473
|
g(B, {
|
|
2474
2474
|
modelValue: r(s).fields.config.database,
|
|
2475
|
-
"onUpdate:modelValue": v[16] || (v[16] = (
|
|
2475
|
+
"onUpdate:modelValue": v[16] || (v[16] = (p) => r(s).fields.config.database = p),
|
|
2476
2476
|
modelModifiers: { trim: !0 },
|
|
2477
2477
|
"data-testid": "redis-database-input",
|
|
2478
2478
|
label: r(i)("form.fields.database.label"),
|
|
@@ -2485,7 +2485,7 @@ const Ne = (e) => {
|
|
|
2485
2485
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2486
2486
|
g(B, {
|
|
2487
2487
|
modelValue: r(s).fields.config.username,
|
|
2488
|
-
"onUpdate:modelValue": v[17] || (v[17] = (
|
|
2488
|
+
"onUpdate:modelValue": v[17] || (v[17] = (p) => r(s).fields.config.username = p),
|
|
2489
2489
|
modelModifiers: { trim: !0 },
|
|
2490
2490
|
"data-testid": "redis-username-input",
|
|
2491
2491
|
label: r(i)("form.fields.username.label"),
|
|
@@ -2498,13 +2498,13 @@ const Ne = (e) => {
|
|
|
2498
2498
|
g(r(Ke), {
|
|
2499
2499
|
class: "secret-picker-provider",
|
|
2500
2500
|
disabled: r(s).readonly,
|
|
2501
|
-
update: (
|
|
2501
|
+
update: (p) => r(s).fields.config.username = p,
|
|
2502
2502
|
value: r(s).fields.config.username,
|
|
2503
|
-
onOpen: v[18] || (v[18] = (
|
|
2503
|
+
onOpen: v[18] || (v[18] = (p, K) => b(p, K))
|
|
2504
2504
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2505
2505
|
g(B, {
|
|
2506
2506
|
modelValue: r(s).fields.config.password,
|
|
2507
|
-
"onUpdate:modelValue": v[19] || (v[19] = (
|
|
2507
|
+
"onUpdate:modelValue": v[19] || (v[19] = (p) => r(s).fields.config.password = p),
|
|
2508
2508
|
modelModifiers: { trim: !0 },
|
|
2509
2509
|
"data-testid": "redis-password-input",
|
|
2510
2510
|
label: r(i)("form.fields.password.label"),
|
|
@@ -2519,9 +2519,9 @@ const Ne = (e) => {
|
|
|
2519
2519
|
g(r(Ke), {
|
|
2520
2520
|
class: "secret-picker-provider",
|
|
2521
2521
|
disabled: r(s).readonly,
|
|
2522
|
-
update: (
|
|
2522
|
+
update: (p) => r(s).fields.config.password = p,
|
|
2523
2523
|
value: r(s).fields.config.password,
|
|
2524
|
-
onOpen: v[20] || (v[20] = (
|
|
2524
|
+
onOpen: v[20] || (v[20] = (p, K) => b(p, K))
|
|
2525
2525
|
}, null, 8, ["disabled", "update", "value"])
|
|
2526
2526
|
]),
|
|
2527
2527
|
_: 1
|
|
@@ -2534,7 +2534,7 @@ const Ne = (e) => {
|
|
|
2534
2534
|
default: S(() => [
|
|
2535
2535
|
g(O, {
|
|
2536
2536
|
modelValue: r(s).fields.config.ssl,
|
|
2537
|
-
"onUpdate:modelValue": v[21] || (v[21] = (
|
|
2537
|
+
"onUpdate:modelValue": v[21] || (v[21] = (p) => r(s).fields.config.ssl = p),
|
|
2538
2538
|
"data-testid": "redis-ssl-checkbox",
|
|
2539
2539
|
description: r(i)("form.fields.ssl.description"),
|
|
2540
2540
|
disabled: r(s).readonly,
|
|
@@ -2546,7 +2546,7 @@ const Ne = (e) => {
|
|
|
2546
2546
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2547
2547
|
g(O, {
|
|
2548
2548
|
modelValue: r(s).fields.config.ssl_verify,
|
|
2549
|
-
"onUpdate:modelValue": v[22] || (v[22] = (
|
|
2549
|
+
"onUpdate:modelValue": v[22] || (v[22] = (p) => r(s).fields.config.ssl_verify = p),
|
|
2550
2550
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2551
2551
|
description: r(i)("form.fields.ssl_verify.description"),
|
|
2552
2552
|
disabled: r(s).readonly,
|
|
@@ -2558,7 +2558,7 @@ const Ne = (e) => {
|
|
|
2558
2558
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2559
2559
|
g(B, {
|
|
2560
2560
|
modelValue: r(s).fields.config.server_name,
|
|
2561
|
-
"onUpdate:modelValue": v[23] || (v[23] = (
|
|
2561
|
+
"onUpdate:modelValue": v[23] || (v[23] = (p) => r(s).fields.config.server_name = p),
|
|
2562
2562
|
modelModifiers: { trim: !0 },
|
|
2563
2563
|
label: r(i)("form.fields.server_name.label"),
|
|
2564
2564
|
"label-attributes": {
|
|
@@ -2579,7 +2579,7 @@ const Ne = (e) => {
|
|
|
2579
2579
|
default: S(() => [
|
|
2580
2580
|
g(B, {
|
|
2581
2581
|
modelValue: r(s).fields.config.keepalive_backlog,
|
|
2582
|
-
"onUpdate:modelValue": v[24] || (v[24] = (
|
|
2582
|
+
"onUpdate:modelValue": v[24] || (v[24] = (p) => r(s).fields.config.keepalive_backlog = p),
|
|
2583
2583
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2584
2584
|
label: r(i)("form.fields.keepalive_backlog.label"),
|
|
2585
2585
|
"label-attributes": {
|
|
@@ -2591,7 +2591,7 @@ const Ne = (e) => {
|
|
|
2591
2591
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2592
2592
|
g(B, {
|
|
2593
2593
|
modelValue: r(s).fields.config.keepalive_pool_size,
|
|
2594
|
-
"onUpdate:modelValue": v[25] || (v[25] = (
|
|
2594
|
+
"onUpdate:modelValue": v[25] || (v[25] = (p) => r(s).fields.config.keepalive_pool_size = p),
|
|
2595
2595
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2596
2596
|
label: r(i)("form.fields.keepalive_pool_size.label"),
|
|
2597
2597
|
"label-attributes": {
|
|
@@ -2613,7 +2613,7 @@ const Ne = (e) => {
|
|
|
2613
2613
|
default: S(() => [
|
|
2614
2614
|
g(B, {
|
|
2615
2615
|
modelValue: r(s).fields.config.read_timeout,
|
|
2616
|
-
"onUpdate:modelValue": v[26] || (v[26] = (
|
|
2616
|
+
"onUpdate:modelValue": v[26] || (v[26] = (p) => r(s).fields.config.read_timeout = p),
|
|
2617
2617
|
"data-testid": "redis-read-timeout-input",
|
|
2618
2618
|
label: r(i)("form.fields.read_timeout.label"),
|
|
2619
2619
|
"label-attributes": {
|
|
@@ -2625,7 +2625,7 @@ const Ne = (e) => {
|
|
|
2625
2625
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2626
2626
|
g(B, {
|
|
2627
2627
|
modelValue: r(s).fields.config.send_timeout,
|
|
2628
|
-
"onUpdate:modelValue": v[27] || (v[27] = (
|
|
2628
|
+
"onUpdate:modelValue": v[27] || (v[27] = (p) => r(s).fields.config.send_timeout = p),
|
|
2629
2629
|
"data-testid": "redis-send-timeout-input",
|
|
2630
2630
|
label: r(i)("form.fields.send_timeout.label"),
|
|
2631
2631
|
"label-attributes": {
|
|
@@ -2637,7 +2637,7 @@ const Ne = (e) => {
|
|
|
2637
2637
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2638
2638
|
g(B, {
|
|
2639
2639
|
modelValue: r(s).fields.config.connect_timeout,
|
|
2640
|
-
"onUpdate:modelValue": v[28] || (v[28] = (
|
|
2640
|
+
"onUpdate:modelValue": v[28] || (v[28] = (p) => r(s).fields.config.connect_timeout = p),
|
|
2641
2641
|
"data-testid": "redis-connect-timeout-input",
|
|
2642
2642
|
label: r(i)("form.fields.connect_timeout.label"),
|
|
2643
2643
|
"label-attributes": {
|
|
@@ -2654,7 +2654,7 @@ const Ne = (e) => {
|
|
|
2654
2654
|
_: 1
|
|
2655
2655
|
}, 8, ["action-teleport-target", "can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "slidout-top-offset"])
|
|
2656
2656
|
]),
|
|
2657
|
-
g(r(
|
|
2657
|
+
g(r(Ai), {
|
|
2658
2658
|
config: n.config,
|
|
2659
2659
|
setup: c.value,
|
|
2660
2660
|
onCancel: v[30] || (v[30] = () => c.value = !1),
|
|
@@ -2667,7 +2667,7 @@ const Ne = (e) => {
|
|
|
2667
2667
|
"max-width": "640",
|
|
2668
2668
|
title: r(i)("form.edit_warning_modal.title"),
|
|
2669
2669
|
visible: X.value,
|
|
2670
|
-
onCancel: v[31] || (v[31] = (
|
|
2670
|
+
onCancel: v[31] || (v[31] = (p) => X.value = !1),
|
|
2671
2671
|
onProceed: he
|
|
2672
2672
|
}, {
|
|
2673
2673
|
default: S(() => [
|
|
@@ -2686,10 +2686,10 @@ const Ne = (e) => {
|
|
|
2686
2686
|
], 64);
|
|
2687
2687
|
};
|
|
2688
2688
|
}
|
|
2689
|
-
}),
|
|
2689
|
+
}), od = /* @__PURE__ */ ie(rd, [["__scopeId", "data-v-dd883631"]]), ad = {
|
|
2690
2690
|
class: "linked-plugins",
|
|
2691
2691
|
"data-testid": "linked-plugins-inline"
|
|
2692
|
-
}, gt = 7,
|
|
2692
|
+
}, gt = 7, ld = /* @__PURE__ */ Q({
|
|
2693
2693
|
__name: "LinkedPluginsInline",
|
|
2694
2694
|
props: {
|
|
2695
2695
|
config: {
|
|
@@ -2709,7 +2709,7 @@ const Ne = (e) => {
|
|
|
2709
2709
|
});
|
|
2710
2710
|
return (o, i) => {
|
|
2711
2711
|
const a = j("KBadge");
|
|
2712
|
-
return R(), J("div",
|
|
2712
|
+
return R(), J("div", ad, [
|
|
2713
2713
|
(R(!0), J(je, null, wt(r(n).slice(0, gt), (u) => (R(), q(r(Tn), {
|
|
2714
2714
|
key: u.id,
|
|
2715
2715
|
name: u.name,
|
|
@@ -2727,13 +2727,13 @@ const Ne = (e) => {
|
|
|
2727
2727
|
]);
|
|
2728
2728
|
};
|
|
2729
2729
|
}
|
|
2730
|
-
}),
|
|
2730
|
+
}), sd = /* @__PURE__ */ ie(ld, [["__scopeId", "data-v-c39556bc"]]), dd = { class: "plugin-item" }, ud = /* @__PURE__ */ Q({
|
|
2731
2731
|
__name: "PluginItem",
|
|
2732
2732
|
props: {
|
|
2733
2733
|
pluginName: {}
|
|
2734
2734
|
},
|
|
2735
2735
|
setup(e) {
|
|
2736
|
-
return (t, n) => (R(), J("div",
|
|
2736
|
+
return (t, n) => (R(), J("div", dd, [
|
|
2737
2737
|
g(r(Tn), {
|
|
2738
2738
|
name: e.pluginName,
|
|
2739
2739
|
size: 24
|
|
@@ -2741,7 +2741,7 @@ const Ne = (e) => {
|
|
|
2741
2741
|
F("span", null, N(e.pluginName), 1)
|
|
2742
2742
|
]));
|
|
2743
2743
|
}
|
|
2744
|
-
}),
|
|
2744
|
+
}), cd = /* @__PURE__ */ ie(ud, [["__scopeId", "data-v-de964dc4"]]), fd = { class: "toolbar-container" }, pd = /* @__PURE__ */ Q({
|
|
2745
2745
|
__name: "LinkedPluginList",
|
|
2746
2746
|
props: {
|
|
2747
2747
|
config: {
|
|
@@ -2772,15 +2772,15 @@ const Ne = (e) => {
|
|
|
2772
2772
|
{ key: "instance_name", label: i("linked_plugins_modal.headers.instance_name") },
|
|
2773
2773
|
{ key: "actions", hideLabel: !0 }
|
|
2774
2774
|
], { fetcher: u } = Ne(n.config), c = $(0), l = async (y) => {
|
|
2775
|
-
const { data: h, count:
|
|
2775
|
+
const { data: h, count: f } = await u({
|
|
2776
2776
|
partialId: n.partialId,
|
|
2777
2777
|
size: y.pageSize,
|
|
2778
2778
|
offset: y.offset,
|
|
2779
2779
|
query: y.query
|
|
2780
2780
|
});
|
|
2781
|
-
c.value =
|
|
2781
|
+
c.value = f;
|
|
2782
2782
|
const C = {
|
|
2783
|
-
total:
|
|
2783
|
+
total: f,
|
|
2784
2784
|
data: h
|
|
2785
2785
|
};
|
|
2786
2786
|
return o("load", C), C;
|
|
@@ -2794,7 +2794,7 @@ const Ne = (e) => {
|
|
|
2794
2794
|
o("view-plugin", { id: y.id, plugin: y.name });
|
|
2795
2795
|
};
|
|
2796
2796
|
return (y, h) => {
|
|
2797
|
-
const
|
|
2797
|
+
const f = j("KDropdownItem"), C = j("KTableData");
|
|
2798
2798
|
return R(), q(C, {
|
|
2799
2799
|
"cache-identifier": r(li)(e.partialId),
|
|
2800
2800
|
fetcher: l,
|
|
@@ -2804,10 +2804,10 @@ const Ne = (e) => {
|
|
|
2804
2804
|
"search-input": d.value
|
|
2805
2805
|
}, mn({
|
|
2806
2806
|
name: S(({ rowValue: s }) => [
|
|
2807
|
-
g(
|
|
2807
|
+
g(cd, { "plugin-name": s }, null, 8, ["plugin-name"])
|
|
2808
2808
|
]),
|
|
2809
2809
|
"action-items": S(({ row: s }) => [
|
|
2810
|
-
g(
|
|
2810
|
+
g(f, {
|
|
2811
2811
|
onClick: (k) => T(s)
|
|
2812
2812
|
}, {
|
|
2813
2813
|
default: S(() => [
|
|
@@ -2821,7 +2821,7 @@ const Ne = (e) => {
|
|
|
2821
2821
|
e.filterBarEnabled ? {
|
|
2822
2822
|
name: "toolbar",
|
|
2823
2823
|
fn: S(() => [
|
|
2824
|
-
F("div",
|
|
2824
|
+
F("div", fd, [
|
|
2825
2825
|
g(r(_n), {
|
|
2826
2826
|
modelValue: d.value,
|
|
2827
2827
|
"onUpdate:modelValue": h[0] || (h[0] = (s) => d.value = s),
|
|
@@ -2834,10 +2834,10 @@ const Ne = (e) => {
|
|
|
2834
2834
|
]), 1032, ["cache-identifier", "pagination-attributes", "search-input"]);
|
|
2835
2835
|
};
|
|
2836
2836
|
}
|
|
2837
|
-
}),
|
|
2837
|
+
}), md = /* @__PURE__ */ ie(pd, [["__scopeId", "data-v-50856d03"]]), gd = {
|
|
2838
2838
|
class: "linked-plugins-modal",
|
|
2839
2839
|
"data-testid": "linked-plugins-modal"
|
|
2840
|
-
},
|
|
2840
|
+
}, bd = /* @__PURE__ */ Q({
|
|
2841
2841
|
__name: "LinkedPluginListModal",
|
|
2842
2842
|
props: {
|
|
2843
2843
|
config: {
|
|
@@ -2864,7 +2864,7 @@ const Ne = (e) => {
|
|
|
2864
2864
|
};
|
|
2865
2865
|
return (l, d) => {
|
|
2866
2866
|
const b = j("KModal");
|
|
2867
|
-
return R(), J("div",
|
|
2867
|
+
return R(), J("div", gd, [
|
|
2868
2868
|
g(b, {
|
|
2869
2869
|
"action-button-text": r(o)("actions.done"),
|
|
2870
2870
|
"hide-cancel-button": "",
|
|
@@ -2874,7 +2874,7 @@ const Ne = (e) => {
|
|
|
2874
2874
|
onProceed: c
|
|
2875
2875
|
}, {
|
|
2876
2876
|
default: S(() => [
|
|
2877
|
-
g(
|
|
2877
|
+
g(md, {
|
|
2878
2878
|
config: e.config,
|
|
2879
2879
|
"partial-id": e.redisConfigurationId,
|
|
2880
2880
|
onLoad: d[0] || (d[0] = ({ total: T }) => i.value = T),
|
|
@@ -2886,7 +2886,7 @@ const Ne = (e) => {
|
|
|
2886
2886
|
]);
|
|
2887
2887
|
};
|
|
2888
2888
|
}
|
|
2889
|
-
}),
|
|
2889
|
+
}), yd = /* @__PURE__ */ ie(bd, [["__scopeId", "data-v-6148b8bd"]]), _d = /* @__PURE__ */ Q({
|
|
2890
2890
|
__name: "DeleteWarningModal",
|
|
2891
2891
|
props: {
|
|
2892
2892
|
visible: {
|
|
@@ -2918,7 +2918,7 @@ const Ne = (e) => {
|
|
|
2918
2918
|
}, 8, ["action-button-text", "title", "visible"]);
|
|
2919
2919
|
};
|
|
2920
2920
|
}
|
|
2921
|
-
}),
|
|
2921
|
+
}), vd = { class: "kong-ui-entities-partials-list" }, hd = 1e3, Td = /* @__PURE__ */ Q({
|
|
2922
2922
|
__name: "RedisConfigurationList",
|
|
2923
2923
|
props: {
|
|
2924
2924
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2966,13 +2966,13 @@ const Ne = (e) => {
|
|
|
2966
2966
|
setup(e, { emit: t }) {
|
|
2967
2967
|
var B;
|
|
2968
2968
|
const n = t, o = e, i = H(() => {
|
|
2969
|
-
var x,
|
|
2969
|
+
var x, p;
|
|
2970
2970
|
let O = `${o.config.apiBaseUrl}${ke.list[o.config.app]}`;
|
|
2971
|
-
return o.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((x = o.config) == null ? void 0 : x.controlPlaneId) || "") : o.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (
|
|
2972
|
-
}), a = $(!1), u = $(""), c = $(null), l = $(void 0), d = $(!1), b = $(!1), T = $(""), y = $(!1), h =
|
|
2971
|
+
return o.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((x = o.config) == null ? void 0 : x.controlPlaneId) || "") : o.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (p = o.config) != null && p.workspace ? `/${o.config.workspace}` : "")), O;
|
|
2972
|
+
}), a = $(!1), u = $(""), c = $(null), l = $(void 0), d = $(!1), b = $(!1), T = $(""), y = $(!1), h = Ei(o.config, i.value), f = $(1), C = H(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: s, fetcherState: k } = Ci(o.config, i);
|
|
2973
2973
|
async function m(O) {
|
|
2974
|
-
const x = await s({ ...O, pageSize:
|
|
2975
|
-
return x.data = x.data.filter((
|
|
2974
|
+
const x = await s({ ...O, pageSize: hd });
|
|
2975
|
+
return x.data = x.data.filter((p) => p.type === G.REDIS_CE || p.type === G.REDIS_EE), x;
|
|
2976
2976
|
}
|
|
2977
2977
|
const { i18n: { t: _ } } = be.useI18n(), { axiosInstance: I } = St((B = o.config) == null ? void 0 : B.axiosRequestConfig), P = vn(), W = $(""), re = H(() => {
|
|
2978
2978
|
const O = o.config.app === "konnect" || o.config.isExactMatch;
|
|
@@ -3011,26 +3011,26 @@ const Ne = (e) => {
|
|
|
3011
3011
|
}, ve = () => {
|
|
3012
3012
|
W.value = "";
|
|
3013
3013
|
}, he = async (O) => {
|
|
3014
|
-
var
|
|
3015
|
-
await ((
|
|
3014
|
+
var p;
|
|
3015
|
+
await ((p = o.canRetrieve) == null ? void 0 : p.call(o, O)) && P.push(o.config.getViewRoute(O.id));
|
|
3016
3016
|
}, Oe = () => {
|
|
3017
3017
|
d.value = !1;
|
|
3018
3018
|
}, me = (O) => {
|
|
3019
3019
|
u.value = O, a.value = !0;
|
|
3020
3020
|
}, rt = async () => {
|
|
3021
|
-
var O, x,
|
|
3021
|
+
var O, x, p;
|
|
3022
3022
|
if ((O = l.value) != null && O.id) {
|
|
3023
3023
|
b.value = !0;
|
|
3024
3024
|
try {
|
|
3025
3025
|
await I.delete(h(l.value.id)), b.value = !1, d.value = !1, Be(), n("delete:success", l.value);
|
|
3026
3026
|
} catch (K) {
|
|
3027
|
-
T.value = ((
|
|
3027
|
+
T.value = ((p = (x = K.response) == null ? void 0 : x.data) == null ? void 0 : p.message) || K.message || _("errors.delete"), n("error", K);
|
|
3028
3028
|
} finally {
|
|
3029
3029
|
b.value = !1;
|
|
3030
3030
|
}
|
|
3031
3031
|
}
|
|
3032
3032
|
}, Be = () => {
|
|
3033
|
-
|
|
3033
|
+
f.value++;
|
|
3034
3034
|
}, U = (O) => {
|
|
3035
3035
|
switch (Ue(O)) {
|
|
3036
3036
|
case w.HOST_PORT_CE:
|
|
@@ -3045,8 +3045,8 @@ const Ne = (e) => {
|
|
|
3045
3045
|
}, v = () => {
|
|
3046
3046
|
P.push(o.config.createRoute);
|
|
3047
3047
|
}, ot = async (O, x) => {
|
|
3048
|
-
const
|
|
3049
|
-
if (!await x(
|
|
3048
|
+
const p = O.id;
|
|
3049
|
+
if (!await x(p)) {
|
|
3050
3050
|
n("copy:error", {
|
|
3051
3051
|
entity: O,
|
|
3052
3052
|
field: "id",
|
|
@@ -3057,15 +3057,15 @@ const Ne = (e) => {
|
|
|
3057
3057
|
n("copy:success", {
|
|
3058
3058
|
entity: O,
|
|
3059
3059
|
field: "id",
|
|
3060
|
-
message: _("copy.success", { val:
|
|
3060
|
+
message: _("copy.success", { val: p })
|
|
3061
3061
|
});
|
|
3062
3062
|
};
|
|
3063
3063
|
Te(k, (O) => {
|
|
3064
|
-
var x,
|
|
3065
|
-
if (O.status ===
|
|
3064
|
+
var x, p, K;
|
|
3065
|
+
if (O.status === Oi.Error) {
|
|
3066
3066
|
c.value = {
|
|
3067
3067
|
title: _("errors.general")
|
|
3068
|
-
}, (K = (
|
|
3068
|
+
}, (K = (p = (x = O.error) == null ? void 0 : x.response) == null ? void 0 : p.data) != null && K.message && (c.value.message = O.error.response.data.message), n("error", O.error);
|
|
3069
3069
|
return;
|
|
3070
3070
|
}
|
|
3071
3071
|
c.value = null;
|
|
@@ -3076,16 +3076,16 @@ const Ne = (e) => {
|
|
|
3076
3076
|
}, {
|
|
3077
3077
|
immediate: !0
|
|
3078
3078
|
}), (O, x) => {
|
|
3079
|
-
const
|
|
3080
|
-
return R(), J("div",
|
|
3081
|
-
g(r(
|
|
3079
|
+
const p = j("KButton"), K = j("KDropdownItem"), ui = j("KClipboardProvider"), ci = j("KEmptyState");
|
|
3080
|
+
return R(), J("div", vd, [
|
|
3081
|
+
g(r(Ii), {
|
|
3082
3082
|
"cache-identifier": e.cacheIdentifier,
|
|
3083
3083
|
"disable-sorting": C.value,
|
|
3084
3084
|
"empty-state-options": le.value,
|
|
3085
3085
|
"enable-entity-actions": "",
|
|
3086
3086
|
"error-message": c.value,
|
|
3087
3087
|
fetcher: m,
|
|
3088
|
-
"fetcher-cache-key":
|
|
3088
|
+
"fetcher-cache-key": f.value,
|
|
3089
3089
|
"pagination-type": "offset",
|
|
3090
3090
|
"preferences-storage-key": "kong-ui-entities-redis-configuration-list",
|
|
3091
3091
|
query: W.value,
|
|
@@ -3108,7 +3108,7 @@ const Ne = (e) => {
|
|
|
3108
3108
|
}, [
|
|
3109
3109
|
g(r(Fe), { "auth-function": e.canCreate }, {
|
|
3110
3110
|
default: S(() => [
|
|
3111
|
-
g(
|
|
3111
|
+
g(p, {
|
|
3112
3112
|
appearance: "primary",
|
|
3113
3113
|
"data-testid": "toolbar-add-redis-configuration",
|
|
3114
3114
|
size: "large",
|
|
@@ -3132,10 +3132,10 @@ const Ne = (e) => {
|
|
|
3132
3132
|
ne(N(U(V)), 1)
|
|
3133
3133
|
]),
|
|
3134
3134
|
tags: S(({ rowValue: V }) => [
|
|
3135
|
-
g(r(
|
|
3135
|
+
g(r(xi), { tags: V }, null, 8, ["tags"])
|
|
3136
3136
|
]),
|
|
3137
3137
|
plugins: S(({ row: V }) => [
|
|
3138
|
-
g(
|
|
3138
|
+
g(sd, {
|
|
3139
3139
|
config: e.config,
|
|
3140
3140
|
"partial-id": V.id,
|
|
3141
3141
|
onClick: vi((at) => me(V.id), ["stop"])
|
|
@@ -3146,7 +3146,7 @@ const Ne = (e) => {
|
|
|
3146
3146
|
default: S(({ copyToClipboard: at }) => [
|
|
3147
3147
|
g(K, {
|
|
3148
3148
|
"data-testid": "action-entity-copy-id",
|
|
3149
|
-
onClick: (
|
|
3149
|
+
onClick: (kd) => ot(V, at)
|
|
3150
3150
|
}, {
|
|
3151
3151
|
default: S(() => [
|
|
3152
3152
|
ne(N(r(_)("actions.copy_id")), 1)
|
|
@@ -3221,13 +3221,13 @@ const Ne = (e) => {
|
|
|
3221
3221
|
onClickAction: v
|
|
3222
3222
|
}, {
|
|
3223
3223
|
icon: S(() => [
|
|
3224
|
-
g(r(
|
|
3224
|
+
g(r(Di), { decorative: "" })
|
|
3225
3225
|
]),
|
|
3226
3226
|
"feature-icon-feature-1": S(() => [
|
|
3227
|
-
g(r(
|
|
3227
|
+
g(r(Li))
|
|
3228
3228
|
]),
|
|
3229
3229
|
"feature-icon-feature-2": S(() => [
|
|
3230
|
-
g(r(
|
|
3230
|
+
g(r(Mi))
|
|
3231
3231
|
]),
|
|
3232
3232
|
"action-button-icon": S(() => [
|
|
3233
3233
|
g(r(bt), { decorative: "" })
|
|
@@ -3237,15 +3237,15 @@ const Ne = (e) => {
|
|
|
3237
3237
|
]),
|
|
3238
3238
|
_: 1
|
|
3239
3239
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher-cache-key", "query"]),
|
|
3240
|
-
g(
|
|
3240
|
+
g(_d, {
|
|
3241
3241
|
visible: y.value,
|
|
3242
3242
|
onClose: x[2] || (x[2] = (V) => y.value = !1)
|
|
3243
3243
|
}, null, 8, ["visible"]),
|
|
3244
|
-
g(r(
|
|
3244
|
+
g(r(Ri), {
|
|
3245
3245
|
"action-pending": b.value,
|
|
3246
3246
|
description: r(_)("delete.description"),
|
|
3247
3247
|
"entity-name": l.value && (l.value.name || l.value.id),
|
|
3248
|
-
"entity-type": r(
|
|
3248
|
+
"entity-type": r($i).RedisConfiguration,
|
|
3249
3249
|
error: T.value,
|
|
3250
3250
|
"need-confirmation": !0,
|
|
3251
3251
|
title: r(_)("delete.title"),
|
|
@@ -3253,7 +3253,7 @@ const Ne = (e) => {
|
|
|
3253
3253
|
onCancel: Oe,
|
|
3254
3254
|
onProceed: rt
|
|
3255
3255
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
3256
|
-
g(
|
|
3256
|
+
g(yd, {
|
|
3257
3257
|
config: e.config,
|
|
3258
3258
|
"redis-configuration-id": u.value,
|
|
3259
3259
|
visible: a.value,
|
|
@@ -3264,7 +3264,7 @@ const Ne = (e) => {
|
|
|
3264
3264
|
]);
|
|
3265
3265
|
};
|
|
3266
3266
|
}
|
|
3267
|
-
}),
|
|
3267
|
+
}), zd = /* @__PURE__ */ ie(Td, [["__scopeId", "data-v-4e5be541"]]), wd = { class: "kong-ui-consumer-group-entity-config-card" }, qd = /* @__PURE__ */ Q({
|
|
3268
3268
|
__name: "RedisConfigurationConfigCard",
|
|
3269
3269
|
props: {
|
|
3270
3270
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3291,10 +3291,10 @@ const Ne = (e) => {
|
|
|
3291
3291
|
},
|
|
3292
3292
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
3293
3293
|
setup(e, { emit: t }) {
|
|
3294
|
-
const n = e, o = t, { i18n: { t: i } } = be.useI18n(), a = H(() => ke.form[n.config.app].edit), u = $($e), c = (
|
|
3295
|
-
u.value = Ue(
|
|
3294
|
+
const n = e, o = t, { i18n: { t: i } } = be.useI18n(), a = H(() => ke.form[n.config.app].edit), u = $($e), c = (f) => {
|
|
3295
|
+
u.value = Ue(f), o("fetch:success", f);
|
|
3296
3296
|
}, l = H(() => {
|
|
3297
|
-
const
|
|
3297
|
+
const f = u.value === w.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
3298
3298
|
let C = "";
|
|
3299
3299
|
switch (u.value) {
|
|
3300
3300
|
case w.HOST_PORT_CE:
|
|
@@ -3310,19 +3310,19 @@ const Ne = (e) => {
|
|
|
3310
3310
|
C = i("form.options.type.sentinel");
|
|
3311
3311
|
break;
|
|
3312
3312
|
}
|
|
3313
|
-
return `${C}${
|
|
3314
|
-
}), d = (
|
|
3315
|
-
id:
|
|
3316
|
-
name:
|
|
3317
|
-
tags:
|
|
3318
|
-
created_at:
|
|
3319
|
-
updated_at:
|
|
3320
|
-
type:
|
|
3321
|
-
...
|
|
3322
|
-
}), b = (
|
|
3323
|
-
if (!
|
|
3313
|
+
return `${C}${f}`;
|
|
3314
|
+
}), d = (f) => ({
|
|
3315
|
+
id: f.id,
|
|
3316
|
+
name: f.name,
|
|
3317
|
+
tags: f.tags,
|
|
3318
|
+
created_at: f.created_at,
|
|
3319
|
+
updated_at: f.updated_at,
|
|
3320
|
+
type: f.type,
|
|
3321
|
+
...f.config
|
|
3322
|
+
}), b = (f, C) => {
|
|
3323
|
+
if (!f || Object.keys(f).length === 0)
|
|
3324
3324
|
return {};
|
|
3325
|
-
const { id: s, name: k, created_at: m, updated_at: _, type: I, tags: P, ...W } =
|
|
3325
|
+
const { id: s, name: k, created_at: m, updated_at: _, type: I, tags: P, ...W } = f;
|
|
3326
3326
|
return C === "terraform" ? {
|
|
3327
3327
|
[I.replaceAll("-", "_")]: {
|
|
3328
3328
|
id: s,
|
|
@@ -3492,23 +3492,23 @@ const Ne = (e) => {
|
|
|
3492
3492
|
label: i("form.fields.username.label"),
|
|
3493
3493
|
tooltip: i("form.fields.username.tooltip")
|
|
3494
3494
|
}
|
|
3495
|
-
}, y = (
|
|
3495
|
+
}, y = (f) => {
|
|
3496
3496
|
const C = {}, s = Object.keys(T);
|
|
3497
3497
|
for (const k of s)
|
|
3498
|
-
|
|
3498
|
+
f.includes(k) ? C[k] = {
|
|
3499
3499
|
...T[k],
|
|
3500
|
-
order:
|
|
3500
|
+
order: f.indexOf(k) + 1
|
|
3501
3501
|
} : C[k] = {
|
|
3502
3502
|
...T[k],
|
|
3503
3503
|
hidden: !0
|
|
3504
3504
|
};
|
|
3505
3505
|
return C;
|
|
3506
3506
|
}, h = H(() => {
|
|
3507
|
-
const
|
|
3507
|
+
const f = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3508
3508
|
switch (u.value) {
|
|
3509
3509
|
case w.HOST_PORT_CE:
|
|
3510
3510
|
return y([
|
|
3511
|
-
...
|
|
3511
|
+
...f,
|
|
3512
3512
|
"host",
|
|
3513
3513
|
"port",
|
|
3514
3514
|
"timeout",
|
|
@@ -3521,7 +3521,7 @@ const Ne = (e) => {
|
|
|
3521
3521
|
]);
|
|
3522
3522
|
case w.HOST_PORT_EE:
|
|
3523
3523
|
return y([
|
|
3524
|
-
...
|
|
3524
|
+
...f,
|
|
3525
3525
|
"host",
|
|
3526
3526
|
"port",
|
|
3527
3527
|
"connection_is_proxied",
|
|
@@ -3539,7 +3539,7 @@ const Ne = (e) => {
|
|
|
3539
3539
|
]);
|
|
3540
3540
|
case w.CLUSTER:
|
|
3541
3541
|
return y([
|
|
3542
|
-
...
|
|
3542
|
+
...f,
|
|
3543
3543
|
"cluster_nodes",
|
|
3544
3544
|
"cluster_max_redirections",
|
|
3545
3545
|
"database",
|
|
@@ -3556,7 +3556,7 @@ const Ne = (e) => {
|
|
|
3556
3556
|
]);
|
|
3557
3557
|
case w.SENTINEL:
|
|
3558
3558
|
return y([
|
|
3559
|
-
...
|
|
3559
|
+
...f,
|
|
3560
3560
|
"sentinel_master",
|
|
3561
3561
|
"sentinel_role",
|
|
3562
3562
|
"sentinel_nodes",
|
|
@@ -3578,8 +3578,8 @@ const Ne = (e) => {
|
|
|
3578
3578
|
throw new Error("Invalid Redis type");
|
|
3579
3579
|
}
|
|
3580
3580
|
});
|
|
3581
|
-
return (
|
|
3582
|
-
g(r(
|
|
3581
|
+
return (f, C) => (R(), J("div", wd, [
|
|
3582
|
+
g(r(Pi), {
|
|
3583
3583
|
"code-block-record-formatter": b,
|
|
3584
3584
|
config: e.config,
|
|
3585
3585
|
"config-card-doc": e.configCardDoc,
|
|
@@ -3588,9 +3588,9 @@ const Ne = (e) => {
|
|
|
3588
3588
|
"fetch-url": a.value,
|
|
3589
3589
|
"hide-title": e.hideTitle,
|
|
3590
3590
|
"record-resolver": d,
|
|
3591
|
-
"onFetch:error": C[0] || (C[0] = (s) =>
|
|
3591
|
+
"onFetch:error": C[0] || (C[0] = (s) => f.$emit("fetch:error", s)),
|
|
3592
3592
|
"onFetch:success": c,
|
|
3593
|
-
onLoading: C[1] || (C[1] = (s) =>
|
|
3593
|
+
onLoading: C[1] || (C[1] = (s) => f.$emit("loading", s))
|
|
3594
3594
|
}, {
|
|
3595
3595
|
type: S(() => [
|
|
3596
3596
|
F("div", null, N(l.value), 1)
|
|
@@ -3599,7 +3599,7 @@ const Ne = (e) => {
|
|
|
3599
3599
|
}, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
3600
3600
|
]));
|
|
3601
3601
|
}
|
|
3602
|
-
}),
|
|
3602
|
+
}), Sd = "12px";
|
|
3603
3603
|
function di(e) {
|
|
3604
3604
|
const {
|
|
3605
3605
|
redisType: t = "redis-ce"
|
|
@@ -3612,7 +3612,7 @@ function di(e) {
|
|
|
3612
3612
|
error: c,
|
|
3613
3613
|
loadItems: l,
|
|
3614
3614
|
results: d
|
|
3615
|
-
} =
|
|
3615
|
+
} = ki(o, ke.list[o.app], n, {
|
|
3616
3616
|
fetchedItemsKey: "data",
|
|
3617
3617
|
searchKeys: ["id", "name"]
|
|
3618
3618
|
}), b = (y) => {
|
|
@@ -3637,7 +3637,7 @@ function di(e) {
|
|
|
3637
3637
|
loadItems: l
|
|
3638
3638
|
};
|
|
3639
3639
|
}
|
|
3640
|
-
const
|
|
3640
|
+
const Ed = ["id"], Cd = /* @__PURE__ */ Q({
|
|
3641
3641
|
__name: "RedisConfigurationFormModal",
|
|
3642
3642
|
props: {
|
|
3643
3643
|
visible: { type: Boolean },
|
|
@@ -3657,16 +3657,16 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3657
3657
|
default:
|
|
3658
3658
|
return;
|
|
3659
3659
|
}
|
|
3660
|
-
}), d = $(!1), b = $(), T = (
|
|
3660
|
+
}), d = $(!1), b = $(), T = (f) => {
|
|
3661
3661
|
n("toast", {
|
|
3662
|
-
message: u(
|
|
3662
|
+
message: u(f),
|
|
3663
3663
|
appearance: "danger"
|
|
3664
3664
|
});
|
|
3665
|
-
}, y = (
|
|
3665
|
+
}, y = (f) => {
|
|
3666
3666
|
n("toast", {
|
|
3667
3667
|
message: o("form.partial_created_success_message"),
|
|
3668
3668
|
appearance: "success"
|
|
3669
|
-
}), h(), n("created",
|
|
3669
|
+
}), h(), n("created", f);
|
|
3670
3670
|
}, h = () => {
|
|
3671
3671
|
b.value = void 0, n("modal-close"), kt(() => {
|
|
3672
3672
|
d.value = !1;
|
|
@@ -3674,15 +3674,15 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3674
3674
|
};
|
|
3675
3675
|
return Te(
|
|
3676
3676
|
() => e.visible,
|
|
3677
|
-
(
|
|
3678
|
-
|
|
3677
|
+
(f) => {
|
|
3678
|
+
f && (d.value = !0, kt(() => {
|
|
3679
3679
|
b.value = `#redis-modal-footer-${c}`;
|
|
3680
3680
|
}));
|
|
3681
3681
|
}
|
|
3682
|
-
), (
|
|
3682
|
+
), (f, C) => {
|
|
3683
3683
|
const s = j("KModal");
|
|
3684
3684
|
return R(), q(s, {
|
|
3685
|
-
class: "redis-
|
|
3685
|
+
class: "plugin-redis-partial-form",
|
|
3686
3686
|
"data-testid": "redis-partial-form-modal",
|
|
3687
3687
|
"full-screen": "",
|
|
3688
3688
|
title: r(o)("form.redis_partial_modal_title"),
|
|
@@ -3693,10 +3693,10 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3693
3693
|
F("div", {
|
|
3694
3694
|
id: `redis-modal-footer-${r(c)}`,
|
|
3695
3695
|
class: "redis-modal-footer"
|
|
3696
|
-
}, null, 8,
|
|
3696
|
+
}, null, 8, Ed)
|
|
3697
3697
|
]),
|
|
3698
3698
|
default: S(() => [
|
|
3699
|
-
g(
|
|
3699
|
+
g(od, {
|
|
3700
3700
|
"action-teleport-target": b.value,
|
|
3701
3701
|
config: a.value,
|
|
3702
3702
|
"disabled-partial-type": l.value,
|
|
@@ -3710,13 +3710,14 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3710
3710
|
}, 8, ["title", "visible"]);
|
|
3711
3711
|
};
|
|
3712
3712
|
}
|
|
3713
|
-
}),
|
|
3713
|
+
}), Od = /* @__PURE__ */ ie(Cd, [["__scopeId", "data-v-280b73f4"]]), Id = { class: "selected-redis-config" }, xd = ["data-testid"], Rd = {
|
|
3714
3714
|
class: "select-item-name",
|
|
3715
3715
|
"data-testid": "selected-redis-config"
|
|
3716
|
-
},
|
|
3716
|
+
}, $d = {
|
|
3717
3717
|
class: "empty-redis-config",
|
|
3718
3718
|
"data-testid": "empty-redis-config"
|
|
3719
|
-
},
|
|
3719
|
+
}, Pd = /* @__PURE__ */ Q({
|
|
3720
|
+
inheritAttrs: !1,
|
|
3720
3721
|
__name: "RedisConfigurationSelector",
|
|
3721
3722
|
props: {
|
|
3722
3723
|
modelValue: {},
|
|
@@ -3726,7 +3727,7 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3726
3727
|
showCreateButton: { type: Boolean, default: !0 },
|
|
3727
3728
|
createButtonText: {}
|
|
3728
3729
|
},
|
|
3729
|
-
emits: ["update:modelValue", "change", "create-new", "error", "modal-close"],
|
|
3730
|
+
emits: ["update:modelValue", "change", "create-new", "error-change", "modal-close", "toast"],
|
|
3730
3731
|
setup(e, { emit: t }) {
|
|
3731
3732
|
const n = t, { i18n: { t: o } } = it(), {
|
|
3732
3733
|
items: i,
|
|
@@ -3736,45 +3737,46 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3736
3737
|
loadItems: l
|
|
3737
3738
|
} = di({
|
|
3738
3739
|
redisType: e.redisType
|
|
3739
|
-
}), d = $(!1), b = (
|
|
3740
|
-
const C =
|
|
3741
|
-
n("update:modelValue", C), n("change",
|
|
3740
|
+
}), d = $(!1), b = (f) => {
|
|
3741
|
+
const C = f == null ? void 0 : f.value;
|
|
3742
|
+
n("update:modelValue", C), n("change", f);
|
|
3742
3743
|
}, T = () => {
|
|
3743
3744
|
d.value = !0;
|
|
3744
3745
|
}, y = () => {
|
|
3745
3746
|
d.value = !1, n("modal-close");
|
|
3746
|
-
}, h = (
|
|
3747
|
+
}, h = (f) => {
|
|
3747
3748
|
d.value = !1, l(), b({
|
|
3748
|
-
name:
|
|
3749
|
-
value:
|
|
3750
|
-
label:
|
|
3749
|
+
name: f.name,
|
|
3750
|
+
value: f.id,
|
|
3751
|
+
label: f.name
|
|
3751
3752
|
});
|
|
3752
3753
|
};
|
|
3753
|
-
return Te(c, (
|
|
3754
|
-
|
|
3755
|
-
}), (
|
|
3754
|
+
return Te(c, (f) => {
|
|
3755
|
+
n("error-change", f ? new Error(String(f)) : null);
|
|
3756
|
+
}), (f, C) => {
|
|
3756
3757
|
const s = j("KBadge"), k = j("KSelect");
|
|
3757
3758
|
return R(), J(je, null, [
|
|
3758
|
-
g(k, {
|
|
3759
|
+
g(k, wi({
|
|
3759
3760
|
class: "redis-config-select-trigger",
|
|
3760
3761
|
"enable-filtering": "",
|
|
3761
3762
|
"filter-function": () => !0,
|
|
3762
3763
|
items: r(i),
|
|
3763
3764
|
loading: r(a),
|
|
3764
3765
|
"model-value": e.modelValue,
|
|
3765
|
-
placeholder: e.placeholder || r(o)("selector.placeholder")
|
|
3766
|
+
placeholder: e.placeholder || r(o)("selector.placeholder")
|
|
3767
|
+
}, f.$attrs, {
|
|
3766
3768
|
onChange: b,
|
|
3767
3769
|
onQueryChange: r(u)
|
|
3768
|
-
}, mn({
|
|
3770
|
+
}), mn({
|
|
3769
3771
|
"selected-item-template": S(({ item: m }) => [
|
|
3770
|
-
F("div",
|
|
3772
|
+
F("div", Id, N(m.name), 1)
|
|
3771
3773
|
]),
|
|
3772
3774
|
"item-template": S(({ item: m }) => [
|
|
3773
3775
|
F("div", {
|
|
3774
3776
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
3775
3777
|
"data-testid": `redis-configuration-dropdown-item-${m.name}`
|
|
3776
3778
|
}, [
|
|
3777
|
-
F("span",
|
|
3779
|
+
F("span", Rd, N(m.name), 1),
|
|
3778
3780
|
g(s, {
|
|
3779
3781
|
appearance: "info",
|
|
3780
3782
|
class: "select-item-label"
|
|
@@ -3784,10 +3786,10 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3784
3786
|
]),
|
|
3785
3787
|
_: 2
|
|
3786
3788
|
}, 1024)
|
|
3787
|
-
], 8,
|
|
3789
|
+
], 8, xd)
|
|
3788
3790
|
]),
|
|
3789
3791
|
empty: S(() => [
|
|
3790
|
-
F("div",
|
|
3792
|
+
F("div", $d, N(e.emptyStateText || r(o)("selector.empty_state")), 1)
|
|
3791
3793
|
]),
|
|
3792
3794
|
_: 2
|
|
3793
3795
|
}, [
|
|
@@ -3799,38 +3801,39 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3799
3801
|
"data-testid": "new-redis-config-area",
|
|
3800
3802
|
onClick: T
|
|
3801
3803
|
}, [
|
|
3802
|
-
g(r(bt), { size: r(
|
|
3804
|
+
g(r(bt), { size: r(Sd) }, null, 8, ["size"]),
|
|
3803
3805
|
F("span", null, N(e.createButtonText || r(o)("selector.create_new")), 1)
|
|
3804
3806
|
])
|
|
3805
3807
|
]),
|
|
3806
3808
|
key: "0"
|
|
3807
3809
|
} : void 0
|
|
3808
|
-
]),
|
|
3809
|
-
g(
|
|
3810
|
+
]), 1040, ["items", "loading", "model-value", "placeholder", "onQueryChange"]),
|
|
3811
|
+
g(Od, {
|
|
3810
3812
|
"partial-type": e.redisType,
|
|
3811
3813
|
visible: d.value,
|
|
3812
3814
|
onCreated: h,
|
|
3813
|
-
onModalClose: y
|
|
3815
|
+
onModalClose: y,
|
|
3816
|
+
onToast: C[0] || (C[0] = (m) => n("toast", m))
|
|
3814
3817
|
}, null, 8, ["partial-type", "visible"])
|
|
3815
3818
|
], 64);
|
|
3816
3819
|
};
|
|
3817
3820
|
}
|
|
3818
|
-
}),
|
|
3821
|
+
}), Wd = /* @__PURE__ */ ie(Pd, [["__scopeId", "data-v-3c6e44d3"]]), Gd = {
|
|
3819
3822
|
useLinkedPlugins: si,
|
|
3820
3823
|
useLinkedPluginsFetcher: Ne,
|
|
3821
3824
|
useRedisConfigurationSelector: di
|
|
3822
3825
|
};
|
|
3823
3826
|
export {
|
|
3824
|
-
|
|
3825
|
-
|
|
3827
|
+
_d as DeleteWarningModal,
|
|
3828
|
+
md as LinkedPlugins,
|
|
3826
3829
|
G as PartialType,
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3830
|
+
qd as RedisConfigurationConfigCard,
|
|
3831
|
+
od as RedisConfigurationForm,
|
|
3832
|
+
Od as RedisConfigurationFormModal,
|
|
3833
|
+
zd as RedisConfigurationList,
|
|
3834
|
+
Wd as RedisConfigurationSelector,
|
|
3832
3835
|
w as RedisType,
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
+
Gd as composables,
|
|
3837
|
+
Kd as constants,
|
|
3838
|
+
Hd as helpers
|
|
3836
3839
|
};
|