@kong-ui-public/entities-redis-configurations 1.4.7 → 1.4.8

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