@kong-ui-public/forms 4.13.6-pr.2214.d38dbc326.0 → 4.13.6-pr.2214.df01ad6ca.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/forms.es.js +538 -536
- package/dist/forms.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/fields/FieldArray.vue.d.ts +3 -3
- package/dist/types/components/fields/FieldAutoSuggest.vue.d.ts +2 -2
- package/dist/types/components/fields/FieldObjectAdvanced.vue.d.ts +1 -1
- package/dist/types/components/forms/OIDCForm.vue.d.ts +2 -1
- package/dist/types/external-links.d.ts +2 -1
- package/dist/types/external-links.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/forms.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as g, createElementVNode as f, toDisplayString as $, normalizeClass as W, createVNode as C, defineComponent as re, provide as it, resolveComponent as F, withCtx as I, renderSlot as Oe, unref as w, createTextVNode as te, createBlock as A, resolveDynamicComponent as ie, Fragment as K, renderList as J, ref as ue, computed as L, toRefs as Le, inject as
|
|
1
|
+
import { openBlock as u, createElementBlock as g, createElementVNode as f, toDisplayString as $, normalizeClass as W, createVNode as C, defineComponent as re, provide as it, resolveComponent as F, withCtx as I, renderSlot as Oe, unref as w, createTextVNode as te, createBlock as A, resolveDynamicComponent as ie, Fragment as K, renderList as J, ref as ue, computed as L, toRefs as Le, inject as ot, onMounted as Fn, onBeforeMount as Ut, mergeProps as Ie, Transition as Ai, createCommentVNode as R, resolveDirective as kn, withDirectives as de, vModelText as Ze, vModelCheckbox as Ei, vModelSelect as Fi, vModelDynamic as Un, isRef as He, toRef as ki, vModelRadio as Ui, vShow as $i, createSlots as $n, watch as $t, normalizeProps as Vi, guardReactiveProps as ji, useSlots as ft, nextTick as Dt } from "vue";
|
|
2
2
|
import { createI18n as ge } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as at, AddIcon as Vt, RemoveIcon as Ri } from "@kong/icons";
|
|
4
4
|
import { useStringHelpers as Pi, useErrors as Ni, useDebouncedFilter as Li, useAxios as qi } from "@kong-ui-public/entities-shared";
|
|
5
5
|
function Vn(e, t) {
|
|
6
|
-
for (var n = -1,
|
|
6
|
+
for (var n = -1, i = e == null ? 0 : e.length; ++n < i && t(e[n], n, e) !== !1; )
|
|
7
7
|
;
|
|
8
8
|
return e;
|
|
9
9
|
}
|
|
10
10
|
function Ki(e) {
|
|
11
|
-
return function(t, n,
|
|
12
|
-
for (var
|
|
13
|
-
var l = s[++
|
|
11
|
+
return function(t, n, i) {
|
|
12
|
+
for (var a = -1, r = Object(t), s = i(t), o = s.length; o--; ) {
|
|
13
|
+
var l = s[++a];
|
|
14
14
|
if (n(r[l], l, r) === !1)
|
|
15
15
|
break;
|
|
16
16
|
}
|
|
@@ -19,20 +19,20 @@ function Ki(e) {
|
|
|
19
19
|
}
|
|
20
20
|
var Di = Ki();
|
|
21
21
|
function Bi(e, t) {
|
|
22
|
-
for (var n = -1,
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
for (var n = -1, i = Array(e); ++n < e; )
|
|
23
|
+
i[n] = t(n);
|
|
24
|
+
return i;
|
|
25
25
|
}
|
|
26
26
|
var jn = typeof global == "object" && global && global.Object === Object && global, zi = typeof self == "object" && self && self.Object === Object && self, pe = jn || zi || Function("return this")(), Ae = pe.Symbol, Rn = Object.prototype, Yi = Rn.hasOwnProperty, Hi = Rn.toString, We = Ae ? Ae.toStringTag : void 0;
|
|
27
27
|
function xi(e) {
|
|
28
28
|
var t = Yi.call(e, We), n = e[We];
|
|
29
29
|
try {
|
|
30
30
|
e[We] = void 0;
|
|
31
|
-
var
|
|
31
|
+
var i = !0;
|
|
32
32
|
} catch {
|
|
33
33
|
}
|
|
34
|
-
var
|
|
35
|
-
return
|
|
34
|
+
var a = Hi.call(e);
|
|
35
|
+
return i && (t ? e[We] = n : delete e[We]), a;
|
|
36
36
|
}
|
|
37
37
|
var Gi = Object.prototype, Wi = Gi.toString;
|
|
38
38
|
function Zi(e) {
|
|
@@ -77,19 +77,19 @@ function jt(e) {
|
|
|
77
77
|
return e(t);
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
var Dn = typeof exports == "object" && exports && !exports.nodeType && exports, Je = Dn && typeof module == "object" && module && !module.nodeType && module, Va = Je && Je.exports === Dn,
|
|
80
|
+
var Dn = typeof exports == "object" && exports && !exports.nodeType && exports, Je = Dn && typeof module == "object" && module && !module.nodeType && module, Va = Je && Je.exports === Dn, St = Va && jn.process, Ye = function() {
|
|
81
81
|
try {
|
|
82
82
|
var e = Je && Je.require && Je.require("util").types;
|
|
83
|
-
return e ||
|
|
83
|
+
return e || St && St.binding && St.binding("util");
|
|
84
84
|
} catch {
|
|
85
85
|
}
|
|
86
86
|
}(), xt = Ye && Ye.isTypedArray, ja = xt ? jt(xt) : $a, Ra = Object.prototype, Pa = Ra.hasOwnProperty;
|
|
87
87
|
function Bn(e, t) {
|
|
88
|
-
var n = ke(e),
|
|
88
|
+
var n = ke(e), i = !n && na(e), a = !n && !i && Ln(e), r = !n && !i && !a && ja(e), s = n || i || a || r, o = s ? Bi(e.length, String) : [], l = o.length;
|
|
89
89
|
for (var d in e)
|
|
90
90
|
(t || Pa.call(e, d)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
91
91
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
92
|
-
|
|
92
|
+
a && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
93
93
|
r && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
|
|
94
94
|
qn(d, l))) && o.push(d);
|
|
95
95
|
return o;
|
|
@@ -124,22 +124,22 @@ function z(e) {
|
|
|
124
124
|
var t = Ee(e);
|
|
125
125
|
return t == za || t == Ya || t == Ba || t == Ha;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ht(e) {
|
|
128
128
|
return e != null && Kn(e.length) && !z(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function pt(e) {
|
|
131
|
+
return ht(e) ? Bn(e) : Da(e);
|
|
132
132
|
}
|
|
133
133
|
function xa(e, t) {
|
|
134
|
-
return e && Di(e, t,
|
|
134
|
+
return e && Di(e, t, pt);
|
|
135
135
|
}
|
|
136
136
|
function Ga(e, t) {
|
|
137
|
-
return function(n,
|
|
137
|
+
return function(n, i) {
|
|
138
138
|
if (n == null)
|
|
139
139
|
return n;
|
|
140
|
-
if (!
|
|
141
|
-
return e(n,
|
|
142
|
-
for (var
|
|
140
|
+
if (!ht(n))
|
|
141
|
+
return e(n, i);
|
|
142
|
+
for (var a = n.length, r = -1, s = Object(n); ++r < a && i(s[r], r, s) !== !1; )
|
|
143
143
|
;
|
|
144
144
|
return n;
|
|
145
145
|
};
|
|
@@ -156,7 +156,7 @@ function le(e, t) {
|
|
|
156
156
|
return n(e, Za(t));
|
|
157
157
|
}
|
|
158
158
|
var Ja = "[object Symbol]";
|
|
159
|
-
function
|
|
159
|
+
function gt(e) {
|
|
160
160
|
return typeof e == "symbol" || Fe(e) && Ee(e) == Ja;
|
|
161
161
|
}
|
|
162
162
|
var Qa = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Xa = /^\w*$/;
|
|
@@ -164,10 +164,10 @@ function er(e, t) {
|
|
|
164
164
|
if (ke(e))
|
|
165
165
|
return !1;
|
|
166
166
|
var n = typeof e;
|
|
167
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
167
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || gt(e) ? !0 : Xa.test(e) || !Qa.test(e) || t != null && e in Object(t);
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
var e = /[^.]+$/.exec(
|
|
169
|
+
var Tt = pe["__core-js_shared__"], Gt = function() {
|
|
170
|
+
var e = /[^.]+$/.exec(Tt && Tt.keys && Tt.keys.IE_PROTO || "");
|
|
171
171
|
return e ? "Symbol(src)_1." + e : "";
|
|
172
172
|
}();
|
|
173
173
|
function tr(e) {
|
|
@@ -233,8 +233,8 @@ function Sr(e, t) {
|
|
|
233
233
|
function je(e) {
|
|
234
234
|
var t = -1, n = e == null ? 0 : e.length;
|
|
235
235
|
for (this.clear(); ++t < n; ) {
|
|
236
|
-
var
|
|
237
|
-
this.set(
|
|
236
|
+
var i = e[t];
|
|
237
|
+
this.set(i[0], i[1]);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
je.prototype.clear = fr;
|
|
@@ -245,39 +245,39 @@ je.prototype.set = Sr;
|
|
|
245
245
|
function Tr() {
|
|
246
246
|
this.__data__ = [], this.size = 0;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function vt(e, t) {
|
|
249
249
|
return e === t || e !== e && t !== t;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function bt(e, t) {
|
|
252
252
|
for (var n = e.length; n--; )
|
|
253
|
-
if (
|
|
253
|
+
if (vt(e[n][0], t))
|
|
254
254
|
return n;
|
|
255
255
|
return -1;
|
|
256
256
|
}
|
|
257
257
|
var Cr = Array.prototype, Ir = Cr.splice;
|
|
258
258
|
function Or(e) {
|
|
259
|
-
var t = this.__data__, n =
|
|
259
|
+
var t = this.__data__, n = bt(t, e);
|
|
260
260
|
if (n < 0)
|
|
261
261
|
return !1;
|
|
262
|
-
var
|
|
263
|
-
return n ==
|
|
262
|
+
var i = t.length - 1;
|
|
263
|
+
return n == i ? t.pop() : Ir.call(t, n, 1), --this.size, !0;
|
|
264
264
|
}
|
|
265
265
|
function Ar(e) {
|
|
266
|
-
var t = this.__data__, n =
|
|
266
|
+
var t = this.__data__, n = bt(t, e);
|
|
267
267
|
return n < 0 ? void 0 : t[n][1];
|
|
268
268
|
}
|
|
269
269
|
function Er(e) {
|
|
270
|
-
return
|
|
270
|
+
return bt(this.__data__, e) > -1;
|
|
271
271
|
}
|
|
272
272
|
function Fr(e, t) {
|
|
273
|
-
var n = this.__data__,
|
|
274
|
-
return
|
|
273
|
+
var n = this.__data__, i = bt(n, e);
|
|
274
|
+
return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
|
|
275
275
|
}
|
|
276
276
|
function Me(e) {
|
|
277
277
|
var t = -1, n = e == null ? 0 : e.length;
|
|
278
278
|
for (this.clear(); ++t < n; ) {
|
|
279
|
-
var
|
|
280
|
-
this.set(
|
|
279
|
+
var i = e[t];
|
|
280
|
+
this.set(i[0], i[1]);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
Me.prototype.clear = Tr;
|
|
@@ -297,29 +297,29 @@ function Ur(e) {
|
|
|
297
297
|
var t = typeof e;
|
|
298
298
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function yt(e, t) {
|
|
301
301
|
var n = e.__data__;
|
|
302
302
|
return Ur(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
303
303
|
}
|
|
304
304
|
function $r(e) {
|
|
305
|
-
var t =
|
|
305
|
+
var t = yt(this, e).delete(e);
|
|
306
306
|
return this.size -= t ? 1 : 0, t;
|
|
307
307
|
}
|
|
308
308
|
function Vr(e) {
|
|
309
|
-
return
|
|
309
|
+
return yt(this, e).get(e);
|
|
310
310
|
}
|
|
311
311
|
function jr(e) {
|
|
312
|
-
return
|
|
312
|
+
return yt(this, e).has(e);
|
|
313
313
|
}
|
|
314
314
|
function Rr(e, t) {
|
|
315
|
-
var n =
|
|
316
|
-
return n.set(e, t), this.size += n.size ==
|
|
315
|
+
var n = yt(this, e), i = n.size;
|
|
316
|
+
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
317
317
|
}
|
|
318
318
|
function Se(e) {
|
|
319
319
|
var t = -1, n = e == null ? 0 : e.length;
|
|
320
320
|
for (this.clear(); ++t < n; ) {
|
|
321
|
-
var
|
|
322
|
-
this.set(
|
|
321
|
+
var i = e[t];
|
|
322
|
+
this.set(i[0], i[1]);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
Se.prototype.clear = kr;
|
|
@@ -332,32 +332,32 @@ function Nt(e, t) {
|
|
|
332
332
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
333
333
|
throw new TypeError(Pr);
|
|
334
334
|
var n = function() {
|
|
335
|
-
var
|
|
336
|
-
if (r.has(
|
|
337
|
-
return r.get(
|
|
338
|
-
var s = e.apply(this,
|
|
339
|
-
return n.cache = r.set(
|
|
335
|
+
var i = arguments, a = t ? t.apply(this, i) : i[0], r = n.cache;
|
|
336
|
+
if (r.has(a))
|
|
337
|
+
return r.get(a);
|
|
338
|
+
var s = e.apply(this, i);
|
|
339
|
+
return n.cache = r.set(a, s) || r, s;
|
|
340
340
|
};
|
|
341
341
|
return n.cache = new (Nt.Cache || Se)(), n;
|
|
342
342
|
}
|
|
343
343
|
Nt.Cache = Se;
|
|
344
344
|
var Nr = 500;
|
|
345
345
|
function Lr(e) {
|
|
346
|
-
var t = Nt(e, function(
|
|
347
|
-
return n.size === Nr && n.clear(),
|
|
346
|
+
var t = Nt(e, function(i) {
|
|
347
|
+
return n.size === Nr && n.clear(), i;
|
|
348
348
|
}), n = t.cache;
|
|
349
349
|
return t;
|
|
350
350
|
}
|
|
351
351
|
var qr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Kr = /\\(\\)?/g, Dr = Lr(function(e) {
|
|
352
352
|
var t = [];
|
|
353
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(qr, function(n,
|
|
354
|
-
t.push(
|
|
353
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(qr, function(n, i, a, r) {
|
|
354
|
+
t.push(a ? r.replace(Kr, "$1") : i || n);
|
|
355
355
|
}), t;
|
|
356
356
|
});
|
|
357
357
|
function Br(e, t) {
|
|
358
|
-
for (var n = -1,
|
|
359
|
-
|
|
360
|
-
return
|
|
358
|
+
for (var n = -1, i = e == null ? 0 : e.length, a = Array(i); ++n < i; )
|
|
359
|
+
a[n] = t(e[n], n, e);
|
|
360
|
+
return a;
|
|
361
361
|
}
|
|
362
362
|
var zr = 1 / 0, Wt = Ae ? Ae.prototype : void 0, Zt = Wt ? Wt.toString : void 0;
|
|
363
363
|
function Yn(e) {
|
|
@@ -365,7 +365,7 @@ function Yn(e) {
|
|
|
365
365
|
return e;
|
|
366
366
|
if (ke(e))
|
|
367
367
|
return Br(e, Yn) + "";
|
|
368
|
-
if (
|
|
368
|
+
if (gt(e))
|
|
369
369
|
return Zt ? Zt.call(e) : "";
|
|
370
370
|
var t = e + "";
|
|
371
371
|
return t == "0" && 1 / e == -zr ? "-0" : t;
|
|
@@ -378,20 +378,20 @@ function Yr(e, t) {
|
|
|
378
378
|
}
|
|
379
379
|
var Hr = 1 / 0;
|
|
380
380
|
function xr(e) {
|
|
381
|
-
if (typeof e == "string" ||
|
|
381
|
+
if (typeof e == "string" || gt(e))
|
|
382
382
|
return e;
|
|
383
383
|
var t = e + "";
|
|
384
384
|
return t == "0" && 1 / e == -Hr ? "-0" : t;
|
|
385
385
|
}
|
|
386
386
|
function Gr(e, t) {
|
|
387
387
|
t = Yr(t, e);
|
|
388
|
-
for (var n = 0,
|
|
388
|
+
for (var n = 0, i = t.length; e != null && n < i; )
|
|
389
389
|
e = e[xr(t[n++])];
|
|
390
|
-
return n && n ==
|
|
390
|
+
return n && n == i ? e : void 0;
|
|
391
391
|
}
|
|
392
392
|
function B(e, t, n) {
|
|
393
|
-
var
|
|
394
|
-
return
|
|
393
|
+
var i = e == null ? void 0 : Gr(e, t);
|
|
394
|
+
return i === void 0 ? n : i;
|
|
395
395
|
}
|
|
396
396
|
function X(e) {
|
|
397
397
|
return e == null;
|
|
@@ -414,10 +414,10 @@ var to = 200;
|
|
|
414
414
|
function no(e, t) {
|
|
415
415
|
var n = this.__data__;
|
|
416
416
|
if (n instanceof Me) {
|
|
417
|
-
var
|
|
418
|
-
if (!tt ||
|
|
419
|
-
return
|
|
420
|
-
n = this.__data__ = new Se(
|
|
417
|
+
var i = n.__data__;
|
|
418
|
+
if (!tt || i.length < to - 1)
|
|
419
|
+
return i.push([e, t]), this.size = ++n.size, this;
|
|
420
|
+
n = this.__data__ = new Se(i);
|
|
421
421
|
}
|
|
422
422
|
return n.set(e, t), this.size = n.size, this;
|
|
423
423
|
}
|
|
@@ -430,7 +430,7 @@ Ge.prototype.delete = Qr;
|
|
|
430
430
|
Ge.prototype.get = Xr;
|
|
431
431
|
Ge.prototype.has = eo;
|
|
432
432
|
Ge.prototype.set = no;
|
|
433
|
-
var
|
|
433
|
+
var st = function() {
|
|
434
434
|
try {
|
|
435
435
|
var e = Ke(Object, "defineProperty");
|
|
436
436
|
return e({}, "", {}), e;
|
|
@@ -438,7 +438,7 @@ var ot = function() {
|
|
|
438
438
|
}
|
|
439
439
|
}();
|
|
440
440
|
function xn(e, t, n) {
|
|
441
|
-
t == "__proto__" &&
|
|
441
|
+
t == "__proto__" && st ? st(e, t, {
|
|
442
442
|
configurable: !0,
|
|
443
443
|
enumerable: !0,
|
|
444
444
|
value: n,
|
|
@@ -447,20 +447,20 @@ function xn(e, t, n) {
|
|
|
447
447
|
}
|
|
448
448
|
var io = Object.prototype, ao = io.hasOwnProperty;
|
|
449
449
|
function Gn(e, t, n) {
|
|
450
|
-
var
|
|
451
|
-
(!(ao.call(e, t) &&
|
|
450
|
+
var i = e[t];
|
|
451
|
+
(!(ao.call(e, t) && vt(i, n)) || n === void 0 && !(t in e)) && xn(e, t, n);
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
var
|
|
453
|
+
function _t(e, t, n, i) {
|
|
454
|
+
var a = !n;
|
|
455
455
|
n || (n = {});
|
|
456
456
|
for (var r = -1, s = t.length; ++r < s; ) {
|
|
457
457
|
var o = t[r], l = void 0;
|
|
458
|
-
l === void 0 && (l = e[o]),
|
|
458
|
+
l === void 0 && (l = e[o]), a ? xn(n, o, l) : Gn(n, o, l);
|
|
459
459
|
}
|
|
460
460
|
return n;
|
|
461
461
|
}
|
|
462
462
|
function ro(e, t) {
|
|
463
|
-
return e &&
|
|
463
|
+
return e && _t(t, pt(t), e);
|
|
464
464
|
}
|
|
465
465
|
function oo(e) {
|
|
466
466
|
var t = [];
|
|
@@ -474,33 +474,33 @@ function uo(e) {
|
|
|
474
474
|
if (!me(e))
|
|
475
475
|
return oo(e);
|
|
476
476
|
var t = Rt(e), n = [];
|
|
477
|
-
for (var
|
|
478
|
-
|
|
477
|
+
for (var i in e)
|
|
478
|
+
i == "constructor" && (t || !lo.call(e, i)) || n.push(i);
|
|
479
479
|
return n;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
481
|
+
function wt(e) {
|
|
482
|
+
return ht(e) ? Bn(e, !0) : uo(e);
|
|
483
483
|
}
|
|
484
484
|
function co(e, t) {
|
|
485
|
-
return e &&
|
|
485
|
+
return e && _t(t, wt(t), e);
|
|
486
486
|
}
|
|
487
487
|
var Wn = typeof exports == "object" && exports && !exports.nodeType && exports, Jt = Wn && typeof module == "object" && module && !module.nodeType && module, mo = Jt && Jt.exports === Wn, Qt = mo ? pe.Buffer : void 0, Xt = Qt ? Qt.allocUnsafe : void 0;
|
|
488
488
|
function fo(e, t) {
|
|
489
489
|
if (t)
|
|
490
490
|
return e.slice();
|
|
491
|
-
var n = e.length,
|
|
492
|
-
return e.copy(
|
|
491
|
+
var n = e.length, i = Xt ? Xt(n) : new e.constructor(n);
|
|
492
|
+
return e.copy(i), i;
|
|
493
493
|
}
|
|
494
494
|
function ho(e, t) {
|
|
495
|
-
var n = -1,
|
|
496
|
-
for (t || (t = Array(
|
|
495
|
+
var n = -1, i = e.length;
|
|
496
|
+
for (t || (t = Array(i)); ++n < i; )
|
|
497
497
|
t[n] = e[n];
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
500
|
function po(e, t) {
|
|
501
|
-
for (var n = -1,
|
|
501
|
+
for (var n = -1, i = e == null ? 0 : e.length, a = 0, r = []; ++n < i; ) {
|
|
502
502
|
var s = e[n];
|
|
503
|
-
t(s, n, e) && (r[
|
|
503
|
+
t(s, n, e) && (r[a++] = s);
|
|
504
504
|
}
|
|
505
505
|
return r;
|
|
506
506
|
}
|
|
@@ -513,11 +513,11 @@ var go = Object.prototype, vo = go.propertyIsEnumerable, en = Object.getOwnPrope
|
|
|
513
513
|
}));
|
|
514
514
|
} : Zn;
|
|
515
515
|
function bo(e, t) {
|
|
516
|
-
return
|
|
516
|
+
return _t(e, Lt(e), t);
|
|
517
517
|
}
|
|
518
518
|
function Jn(e, t) {
|
|
519
|
-
for (var n = -1,
|
|
520
|
-
e[
|
|
519
|
+
for (var n = -1, i = t.length, a = e.length; ++n < i; )
|
|
520
|
+
e[a + n] = t[n];
|
|
521
521
|
return e;
|
|
522
522
|
}
|
|
523
523
|
var Qn = zn(Object.getPrototypeOf, Object), yo = Object.getOwnPropertySymbols, Xn = yo ? function(e) {
|
|
@@ -526,23 +526,23 @@ var Qn = zn(Object.getPrototypeOf, Object), yo = Object.getOwnPropertySymbols, X
|
|
|
526
526
|
return t;
|
|
527
527
|
} : Zn;
|
|
528
528
|
function _o(e, t) {
|
|
529
|
-
return
|
|
529
|
+
return _t(e, Xn(e), t);
|
|
530
530
|
}
|
|
531
531
|
function ei(e, t, n) {
|
|
532
|
-
var
|
|
533
|
-
return ke(e) ?
|
|
532
|
+
var i = t(e);
|
|
533
|
+
return ke(e) ? i : Jn(i, n(e));
|
|
534
534
|
}
|
|
535
535
|
function wo(e) {
|
|
536
|
-
return ei(e,
|
|
536
|
+
return ei(e, pt, Lt);
|
|
537
537
|
}
|
|
538
538
|
function Mo(e) {
|
|
539
|
-
return ei(e,
|
|
539
|
+
return ei(e, wt, Xn);
|
|
540
540
|
}
|
|
541
541
|
var At = Ke(pe, "DataView"), Et = Ke(pe, "Promise"), ze = Ke(pe, "Set"), Ft = Ke(pe, "WeakMap"), tn = "[object Map]", So = "[object Object]", nn = "[object Promise]", an = "[object Set]", rn = "[object WeakMap]", on = "[object DataView]", To = qe(At), Co = qe(tt), Io = qe(Et), Oo = qe(ze), Ao = qe(Ft), _e = Ee;
|
|
542
542
|
(At && _e(new At(new ArrayBuffer(1))) != on || tt && _e(new tt()) != tn || Et && _e(Et.resolve()) != nn || ze && _e(new ze()) != an || Ft && _e(new Ft()) != rn) && (_e = function(e) {
|
|
543
|
-
var t = Ee(e), n = t == So ? e.constructor : void 0,
|
|
544
|
-
if (
|
|
545
|
-
switch (
|
|
543
|
+
var t = Ee(e), n = t == So ? e.constructor : void 0, i = n ? qe(n) : "";
|
|
544
|
+
if (i)
|
|
545
|
+
switch (i) {
|
|
546
546
|
case To:
|
|
547
547
|
return on;
|
|
548
548
|
case Co:
|
|
@@ -585,13 +585,13 @@ function Ro(e, t) {
|
|
|
585
585
|
}
|
|
586
586
|
var Po = "[object Boolean]", No = "[object Date]", Lo = "[object Map]", qo = "[object Number]", Ko = "[object RegExp]", Do = "[object Set]", Bo = "[object String]", zo = "[object Symbol]", Yo = "[object ArrayBuffer]", Ho = "[object DataView]", xo = "[object Float32Array]", Go = "[object Float64Array]", Wo = "[object Int8Array]", Zo = "[object Int16Array]", Jo = "[object Int32Array]", Qo = "[object Uint8Array]", Xo = "[object Uint8ClampedArray]", es = "[object Uint16Array]", ts = "[object Uint32Array]";
|
|
587
587
|
function ns(e, t, n) {
|
|
588
|
-
var
|
|
588
|
+
var i = e.constructor;
|
|
589
589
|
switch (t) {
|
|
590
590
|
case Yo:
|
|
591
591
|
return qt(e);
|
|
592
592
|
case Po:
|
|
593
593
|
case No:
|
|
594
|
-
return new
|
|
594
|
+
return new i(+e);
|
|
595
595
|
case Ho:
|
|
596
596
|
return Uo(e, n);
|
|
597
597
|
case xo:
|
|
@@ -605,14 +605,14 @@ function ns(e, t, n) {
|
|
|
605
605
|
case ts:
|
|
606
606
|
return Ro(e, n);
|
|
607
607
|
case Lo:
|
|
608
|
-
return new
|
|
608
|
+
return new i();
|
|
609
609
|
case qo:
|
|
610
610
|
case Bo:
|
|
611
|
-
return new
|
|
611
|
+
return new i(e);
|
|
612
612
|
case Ko:
|
|
613
613
|
return Vo(e);
|
|
614
614
|
case Do:
|
|
615
|
-
return new
|
|
615
|
+
return new i();
|
|
616
616
|
case zo:
|
|
617
617
|
return jo(e);
|
|
618
618
|
}
|
|
@@ -644,7 +644,7 @@ function ds(e) {
|
|
|
644
644
|
var mn = Ye && Ye.isSet, us = mn ? jt(mn) : ds, cs = 1, ms = 2, fs = 4, ti = "[object Arguments]", hs = "[object Array]", ps = "[object Boolean]", gs = "[object Date]", vs = "[object Error]", ni = "[object Function]", bs = "[object GeneratorFunction]", ys = "[object Map]", _s = "[object Number]", ii = "[object Object]", ws = "[object RegExp]", Ms = "[object Set]", Ss = "[object String]", Ts = "[object Symbol]", Cs = "[object WeakMap]", Is = "[object ArrayBuffer]", Os = "[object DataView]", As = "[object Float32Array]", Es = "[object Float64Array]", Fs = "[object Int8Array]", ks = "[object Int16Array]", Us = "[object Int32Array]", $s = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", js = "[object Uint16Array]", Rs = "[object Uint32Array]", H = {};
|
|
645
645
|
H[ti] = H[hs] = H[Is] = H[Os] = H[ps] = H[gs] = H[As] = H[Es] = H[Fs] = H[ks] = H[Us] = H[ys] = H[_s] = H[ii] = H[ws] = H[Ms] = H[Ss] = H[Ts] = H[$s] = H[Vs] = H[js] = H[Rs] = !0;
|
|
646
646
|
H[vs] = H[ni] = H[Cs] = !1;
|
|
647
|
-
function Qe(e, t, n,
|
|
647
|
+
function Qe(e, t, n, i, a, r) {
|
|
648
648
|
var s, o = t & cs, l = t & ms, d = t & fs;
|
|
649
649
|
if (s !== void 0)
|
|
650
650
|
return s;
|
|
@@ -658,12 +658,12 @@ function Qe(e, t, n, a, i, r) {
|
|
|
658
658
|
var m = _e(e), p = m == ni || m == bs;
|
|
659
659
|
if (Ln(e))
|
|
660
660
|
return fo(e, o);
|
|
661
|
-
if (m == ii || m == ti || p && !
|
|
661
|
+
if (m == ii || m == ti || p && !a) {
|
|
662
662
|
if (s = l || p ? {} : as(e), !o)
|
|
663
663
|
return l ? _o(e, co(s, e)) : bo(e, ro(s, e));
|
|
664
664
|
} else {
|
|
665
665
|
if (!H[m])
|
|
666
|
-
return
|
|
666
|
+
return a ? e : {};
|
|
667
667
|
s = ns(e, m, o);
|
|
668
668
|
}
|
|
669
669
|
}
|
|
@@ -676,7 +676,7 @@ function Qe(e, t, n, a, i, r) {
|
|
|
676
676
|
}) : ss(e) && e.forEach(function(M, T) {
|
|
677
677
|
s.set(T, Qe(M, t, n, T, e, r));
|
|
678
678
|
});
|
|
679
|
-
var N = d ? l ? Mo : wo : l ?
|
|
679
|
+
var N = d ? l ? Mo : wo : l ? wt : pt, c = h ? void 0 : N(e);
|
|
680
680
|
return Vn(c || e, function(M, T) {
|
|
681
681
|
c && (T = M, M = e[T]), Gn(s, T, Qe(M, t, n, T, e, r));
|
|
682
682
|
}), s;
|
|
@@ -702,7 +702,7 @@ const ai = {
|
|
|
702
702
|
featured: this.fieldFeatured(e),
|
|
703
703
|
required: this.fieldRequired(e)
|
|
704
704
|
};
|
|
705
|
-
return Array.isArray(e.styleClasses) ? le(e.styleClasses, (
|
|
705
|
+
return Array.isArray(e.styleClasses) ? le(e.styleClasses, (i) => n[i] = !0) : Re(e.styleClasses) && (n[e.styleClasses] = !0), X(e.type) || (n["field-" + e.type] = !0), n;
|
|
706
706
|
},
|
|
707
707
|
fieldErrors(e) {
|
|
708
708
|
return this.errors.filter((n) => n.field.fieldName === e.fieldName).map((n) => n.error);
|
|
@@ -725,7 +725,7 @@ const ai = {
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
|
-
var
|
|
728
|
+
var Ct = function() {
|
|
729
729
|
return pe.Date.now();
|
|
730
730
|
}, qs = /\s/;
|
|
731
731
|
function Ks(e) {
|
|
@@ -741,7 +741,7 @@ var hn = NaN, zs = /^[-+]0x[0-9a-f]+$/i, Ys = /^0b[01]+$/i, Hs = /^0o[0-7]+$/i,
|
|
|
741
741
|
function kt(e) {
|
|
742
742
|
if (typeof e == "number")
|
|
743
743
|
return e;
|
|
744
|
-
if (
|
|
744
|
+
if (gt(e))
|
|
745
745
|
return hn;
|
|
746
746
|
if (me(e)) {
|
|
747
747
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -755,13 +755,13 @@ function kt(e) {
|
|
|
755
755
|
}
|
|
756
756
|
var Gs = "Expected a function", Ws = Math.max, Zs = Math.min;
|
|
757
757
|
function nt(e, t, n) {
|
|
758
|
-
var
|
|
758
|
+
var i, a, r, s, o, l, d = 0, h = !1, m = !1, p = !0;
|
|
759
759
|
if (typeof e != "function")
|
|
760
760
|
throw new TypeError(Gs);
|
|
761
761
|
t = kt(t) || 0, me(n) && (h = !!n.leading, m = "maxWait" in n, r = m ? Ws(kt(n.maxWait) || 0, t) : r, p = "trailing" in n ? !!n.trailing : p);
|
|
762
762
|
function E(_) {
|
|
763
|
-
var v =
|
|
764
|
-
return
|
|
763
|
+
var v = i, j = a;
|
|
764
|
+
return i = a = void 0, d = _, s = e.apply(j, v), s;
|
|
765
765
|
}
|
|
766
766
|
function N(_) {
|
|
767
767
|
return d = _, o = setTimeout(T, t), h ? E(_) : s;
|
|
@@ -775,23 +775,23 @@ function nt(e, t, n) {
|
|
|
775
775
|
return l === void 0 || v >= t || v < 0 || m && j >= r;
|
|
776
776
|
}
|
|
777
777
|
function T() {
|
|
778
|
-
var _ =
|
|
778
|
+
var _ = Ct();
|
|
779
779
|
if (M(_))
|
|
780
780
|
return U(_);
|
|
781
781
|
o = setTimeout(T, c(_));
|
|
782
782
|
}
|
|
783
783
|
function U(_) {
|
|
784
|
-
return o = void 0, p &&
|
|
784
|
+
return o = void 0, p && i ? E(_) : (i = a = void 0, s);
|
|
785
785
|
}
|
|
786
786
|
function b() {
|
|
787
|
-
o !== void 0 && clearTimeout(o), d = 0,
|
|
787
|
+
o !== void 0 && clearTimeout(o), d = 0, i = l = a = o = void 0;
|
|
788
788
|
}
|
|
789
789
|
function O() {
|
|
790
|
-
return o === void 0 ? s : U(
|
|
790
|
+
return o === void 0 ? s : U(Ct());
|
|
791
791
|
}
|
|
792
792
|
function k() {
|
|
793
|
-
var _ =
|
|
794
|
-
if (
|
|
793
|
+
var _ = Ct(), v = M(_);
|
|
794
|
+
if (i = arguments, a = this, l = _, v) {
|
|
795
795
|
if (o === void 0)
|
|
796
796
|
return N(l);
|
|
797
797
|
if (m)
|
|
@@ -808,15 +808,15 @@ function Qs(e) {
|
|
|
808
808
|
function Xs(e) {
|
|
809
809
|
return this.__data__.has(e);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function lt(e) {
|
|
812
812
|
var t = -1, n = e == null ? 0 : e.length;
|
|
813
813
|
for (this.__data__ = new Se(); ++t < n; )
|
|
814
814
|
this.add(e[t]);
|
|
815
815
|
}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
function el(e, t, n,
|
|
819
|
-
for (var
|
|
816
|
+
lt.prototype.add = lt.prototype.push = Qs;
|
|
817
|
+
lt.prototype.has = Xs;
|
|
818
|
+
function el(e, t, n, i) {
|
|
819
|
+
for (var a = e.length, r = n + -1; ++r < a; )
|
|
820
820
|
if (t(e[r], r, e))
|
|
821
821
|
return r;
|
|
822
822
|
return -1;
|
|
@@ -825,9 +825,9 @@ function tl(e) {
|
|
|
825
825
|
return e !== e;
|
|
826
826
|
}
|
|
827
827
|
function nl(e, t, n) {
|
|
828
|
-
for (var
|
|
829
|
-
if (e[
|
|
830
|
-
return
|
|
828
|
+
for (var i = n - 1, a = e.length; ++i < a; )
|
|
829
|
+
if (e[i] === t)
|
|
830
|
+
return i;
|
|
831
831
|
return -1;
|
|
832
832
|
}
|
|
833
833
|
function il(e, t, n) {
|
|
@@ -844,31 +844,31 @@ function ol() {
|
|
|
844
844
|
}
|
|
845
845
|
function ri(e) {
|
|
846
846
|
var t = -1, n = Array(e.size);
|
|
847
|
-
return e.forEach(function(
|
|
848
|
-
n[++t] =
|
|
847
|
+
return e.forEach(function(i) {
|
|
848
|
+
n[++t] = i;
|
|
849
849
|
}), n;
|
|
850
850
|
}
|
|
851
851
|
var sl = 1 / 0, ll = ze && 1 / ri(new ze([, -0]))[1] == sl ? function(e) {
|
|
852
852
|
return new ze(e);
|
|
853
853
|
} : ol, dl = 200;
|
|
854
854
|
function ul(e, t, n) {
|
|
855
|
-
var
|
|
855
|
+
var i = -1, a = al, r = e.length, s = !0, o = [], l = o;
|
|
856
856
|
if (r >= dl) {
|
|
857
857
|
var d = ll(e);
|
|
858
858
|
if (d)
|
|
859
859
|
return ri(d);
|
|
860
|
-
s = !1,
|
|
860
|
+
s = !1, a = rl, l = new lt();
|
|
861
861
|
} else
|
|
862
862
|
l = o;
|
|
863
863
|
e:
|
|
864
|
-
for (; ++
|
|
865
|
-
var h = e[
|
|
864
|
+
for (; ++i < r; ) {
|
|
865
|
+
var h = e[i], m = h;
|
|
866
866
|
if (h = h !== 0 ? h : 0, s && m === m) {
|
|
867
867
|
for (var p = l.length; p--; )
|
|
868
868
|
if (l[p] === m)
|
|
869
869
|
continue e;
|
|
870
870
|
o.push(h);
|
|
871
|
-
} else
|
|
871
|
+
} else a(l, m, n) || (l !== o && l.push(m), o.push(h));
|
|
872
872
|
}
|
|
873
873
|
return o;
|
|
874
874
|
}
|
|
@@ -882,23 +882,23 @@ function si(e) {
|
|
|
882
882
|
}
|
|
883
883
|
var li = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Ce = "\\d\\d?", Te = "\\d\\d", ml = "\\d{3}", fl = "\\d{4}", Xe = "[^\\s]+", di = /\[([^]*?)\]/gm;
|
|
884
884
|
function ui(e, t) {
|
|
885
|
-
for (var n = [],
|
|
886
|
-
n.push(e[
|
|
885
|
+
for (var n = [], i = 0, a = e.length; i < a; i++)
|
|
886
|
+
n.push(e[i].substr(0, t));
|
|
887
887
|
return n;
|
|
888
888
|
}
|
|
889
889
|
var pn = function(e) {
|
|
890
890
|
return function(t, n) {
|
|
891
|
-
var
|
|
891
|
+
var i = n[e].map(function(r) {
|
|
892
892
|
return r.toLowerCase();
|
|
893
|
-
}),
|
|
894
|
-
return
|
|
893
|
+
}), a = i.indexOf(t.toLowerCase());
|
|
894
|
+
return a > -1 ? a : null;
|
|
895
895
|
};
|
|
896
896
|
};
|
|
897
897
|
function Pe(e) {
|
|
898
898
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
899
899
|
t[n - 1] = arguments[n];
|
|
900
|
-
for (var
|
|
901
|
-
var r = i
|
|
900
|
+
for (var i = 0, a = t; i < a.length; i++) {
|
|
901
|
+
var r = a[i];
|
|
902
902
|
for (var s in r)
|
|
903
903
|
e[s] = r[s];
|
|
904
904
|
}
|
|
@@ -934,8 +934,8 @@ var ci = [
|
|
|
934
934
|
DoFn: function(e) {
|
|
935
935
|
return e + ["th", "st", "nd", "rd"][e % 10 > 3 ? 0 : (e - e % 10 !== 10 ? 1 : 0) * e % 10];
|
|
936
936
|
}
|
|
937
|
-
},
|
|
938
|
-
return
|
|
937
|
+
}, dt = Pe({}, fi), gl = function(e) {
|
|
938
|
+
return dt = Pe(dt, e);
|
|
939
939
|
}, gn = function(e) {
|
|
940
940
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
941
941
|
}, ce = function(e, t) {
|
|
@@ -1091,7 +1091,7 @@ var ci = [
|
|
|
1091
1091
|
A: _n,
|
|
1092
1092
|
ZZ: wn,
|
|
1093
1093
|
Z: wn
|
|
1094
|
-
},
|
|
1094
|
+
}, ut = {
|
|
1095
1095
|
default: "ddd MMM DD YYYY HH:mm:ss",
|
|
1096
1096
|
shortDate: "M/D/YY",
|
|
1097
1097
|
mediumDate: "MMM D, YYYY",
|
|
@@ -1103,29 +1103,29 @@ var ci = [
|
|
|
1103
1103
|
mediumTime: "HH:mm:ss",
|
|
1104
1104
|
longTime: "HH:mm:ss.SSS"
|
|
1105
1105
|
}, yl = function(e) {
|
|
1106
|
-
return Pe(
|
|
1106
|
+
return Pe(ut, e);
|
|
1107
1107
|
}, _l = function(e, t, n) {
|
|
1108
|
-
if (t === void 0 && (t =
|
|
1108
|
+
if (t === void 0 && (t = ut.default), n === void 0 && (n = {}), typeof e == "number" && (e = new Date(e)), Object.prototype.toString.call(e) !== "[object Date]" || isNaN(e.getTime()))
|
|
1109
1109
|
throw new Error("Invalid Date pass to format");
|
|
1110
|
-
t =
|
|
1111
|
-
var
|
|
1110
|
+
t = ut[t] || t;
|
|
1111
|
+
var i = [];
|
|
1112
1112
|
t = t.replace(di, function(r, s) {
|
|
1113
|
-
return
|
|
1113
|
+
return i.push(s), "@@@";
|
|
1114
1114
|
});
|
|
1115
|
-
var
|
|
1115
|
+
var a = Pe(Pe({}, dt), n);
|
|
1116
1116
|
return t = t.replace(li, function(r) {
|
|
1117
|
-
return vl[r](e,
|
|
1117
|
+
return vl[r](e, a);
|
|
1118
1118
|
}), t.replace(/@@@/g, function() {
|
|
1119
|
-
return
|
|
1119
|
+
return i.shift();
|
|
1120
1120
|
});
|
|
1121
1121
|
};
|
|
1122
1122
|
function wl(e, t, n) {
|
|
1123
1123
|
if (n === void 0 && (n = {}), typeof t != "string")
|
|
1124
1124
|
throw new Error("Invalid format in fecha parse");
|
|
1125
|
-
if (t =
|
|
1125
|
+
if (t = ut[t] || t, e.length > 1e3)
|
|
1126
1126
|
return null;
|
|
1127
|
-
var
|
|
1128
|
-
year:
|
|
1127
|
+
var i = /* @__PURE__ */ new Date(), a = {
|
|
1128
|
+
year: i.getFullYear(),
|
|
1129
1129
|
month: 0,
|
|
1130
1130
|
day: 1,
|
|
1131
1131
|
hour: 0,
|
|
@@ -1151,16 +1151,16 @@ function wl(e, t, n) {
|
|
|
1151
1151
|
var h = e.match(new RegExp(o, "i"));
|
|
1152
1152
|
if (!h)
|
|
1153
1153
|
return null;
|
|
1154
|
-
for (var m = Pe(Pe({},
|
|
1154
|
+
for (var m = Pe(Pe({}, dt), n), p = 1; p < h.length; p++) {
|
|
1155
1155
|
var E = r[p - 1], N = E[0], c = E[2], M = c ? c(h[p], m) : +h[p];
|
|
1156
1156
|
if (M == null)
|
|
1157
1157
|
return null;
|
|
1158
|
-
|
|
1158
|
+
a[N] = M;
|
|
1159
1159
|
}
|
|
1160
|
-
|
|
1160
|
+
a.isPm === 1 && a.hour != null && +a.hour != 12 ? a.hour = +a.hour + 12 : a.isPm === 0 && +a.hour == 12 && (a.hour = 0);
|
|
1161
1161
|
var T;
|
|
1162
|
-
if (
|
|
1163
|
-
T = new Date(
|
|
1162
|
+
if (a.timezoneOffset == null) {
|
|
1163
|
+
T = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
|
|
1164
1164
|
for (var U = [
|
|
1165
1165
|
["month", "getMonth"],
|
|
1166
1166
|
["day", "getDate"],
|
|
@@ -1168,9 +1168,9 @@ function wl(e, t, n) {
|
|
|
1168
1168
|
["minute", "getMinutes"],
|
|
1169
1169
|
["second", "getSeconds"]
|
|
1170
1170
|
], p = 0, b = U.length; p < b; p++)
|
|
1171
|
-
if (l[U[p][0]] &&
|
|
1171
|
+
if (l[U[p][0]] && a[U[p][0]] !== T[U[p][1]]())
|
|
1172
1172
|
return null;
|
|
1173
|
-
} else if (T = new Date(Date.UTC(
|
|
1173
|
+
} else if (T = new Date(Date.UTC(a.year, a.month, a.day, a.hour, a.minute - a.timezoneOffset, a.second, a.millisecond)), a.month > 11 || a.month < 0 || a.day > 31 || a.day < 1 || a.hour > 23 || a.hour < 0 || a.minute > 59 || a.minute < 0 || a.second > 59 || a.second < 0)
|
|
1174
1174
|
return null;
|
|
1175
1175
|
return T;
|
|
1176
1176
|
}
|
|
@@ -1197,11 +1197,11 @@ function Ml(e, t, n) {
|
|
|
1197
1197
|
var Mn = Math.max;
|
|
1198
1198
|
function Sl(e, t, n) {
|
|
1199
1199
|
return t = Mn(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
1200
|
-
for (var
|
|
1201
|
-
s[
|
|
1202
|
-
|
|
1203
|
-
for (var o = Array(t + 1); ++
|
|
1204
|
-
o[
|
|
1200
|
+
for (var i = arguments, a = -1, r = Mn(i.length - t, 0), s = Array(r); ++a < r; )
|
|
1201
|
+
s[a] = i[t + a];
|
|
1202
|
+
a = -1;
|
|
1203
|
+
for (var o = Array(t + 1); ++a < t; )
|
|
1204
|
+
o[a] = i[a];
|
|
1205
1205
|
return o[t] = n(s), Ml(e, this, o);
|
|
1206
1206
|
};
|
|
1207
1207
|
}
|
|
@@ -1210,8 +1210,8 @@ function Tl(e) {
|
|
|
1210
1210
|
return e;
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
var Cl =
|
|
1214
|
-
return
|
|
1213
|
+
var Cl = st ? function(e, t) {
|
|
1214
|
+
return st(e, "toString", {
|
|
1215
1215
|
configurable: !0,
|
|
1216
1216
|
enumerable: !1,
|
|
1217
1217
|
value: Tl(t),
|
|
@@ -1221,8 +1221,8 @@ var Cl = ot ? function(e, t) {
|
|
|
1221
1221
|
function El(e) {
|
|
1222
1222
|
var t = 0, n = 0;
|
|
1223
1223
|
return function() {
|
|
1224
|
-
var
|
|
1225
|
-
if (n =
|
|
1224
|
+
var i = Al(), a = Ol - (i - n);
|
|
1225
|
+
if (n = i, a > 0) {
|
|
1226
1226
|
if (++t >= Il)
|
|
1227
1227
|
return arguments[0];
|
|
1228
1228
|
} else
|
|
@@ -1237,16 +1237,16 @@ function kl(e, t) {
|
|
|
1237
1237
|
function Ul(e, t, n) {
|
|
1238
1238
|
if (!me(n))
|
|
1239
1239
|
return !1;
|
|
1240
|
-
var
|
|
1241
|
-
return (
|
|
1240
|
+
var i = typeof t;
|
|
1241
|
+
return (i == "number" ? ht(n) && qn(t, n.length) : i == "string" && t in n) ? vt(n[t], e) : !1;
|
|
1242
1242
|
}
|
|
1243
1243
|
var hi = Object.prototype, $l = hi.hasOwnProperty, Vl = kl(function(e, t) {
|
|
1244
1244
|
e = Object(e);
|
|
1245
|
-
var n = -1,
|
|
1246
|
-
for (
|
|
1247
|
-
for (var r = t[n], s =
|
|
1245
|
+
var n = -1, i = t.length, a = i > 2 ? t[2] : void 0;
|
|
1246
|
+
for (a && Ul(t[0], t[1], a) && (i = 1); ++n < i; )
|
|
1247
|
+
for (var r = t[n], s = wt(r), o = -1, l = s.length; ++o < l; ) {
|
|
1248
1248
|
var d = s[o], h = e[d];
|
|
1249
|
-
(h === void 0 ||
|
|
1249
|
+
(h === void 0 || vt(h, hi[d]) && !$l.call(e, d)) && (e[d] = r[d]);
|
|
1250
1250
|
}
|
|
1251
1251
|
return e;
|
|
1252
1252
|
}), jl = pe.isFinite;
|
|
@@ -1271,7 +1271,7 @@ function ql(e) {
|
|
|
1271
1271
|
return typeof e == "number" && e == Ll(e);
|
|
1272
1272
|
}
|
|
1273
1273
|
var Kl = "[object Number]";
|
|
1274
|
-
function
|
|
1274
|
+
function ct(e) {
|
|
1275
1275
|
return typeof e == "number" || Fe(e) && Ee(e) == Kl;
|
|
1276
1276
|
}
|
|
1277
1277
|
const Dl = {
|
|
@@ -1478,98 +1478,98 @@ const Dl = {
|
|
|
1478
1478
|
e = e.replace("{" + (n - 1) + "}", String(t[n] || ""));
|
|
1479
1479
|
return e;
|
|
1480
1480
|
}, fe = (e, t, n = oe) => X(e) || e === "" ? t ? [Z(n.fieldIsRequired)] : [] : null, Ne = {
|
|
1481
|
-
required: (e, t, n,
|
|
1482
|
-
number: (e, t, n,
|
|
1483
|
-
let
|
|
1484
|
-
return
|
|
1481
|
+
required: (e, t, n, i = oe) => fe(e, t.required, i) || [],
|
|
1482
|
+
number: (e, t, n, i = oe) => {
|
|
1483
|
+
let a = fe(e, t.required, i);
|
|
1484
|
+
return a != null || (a = [], Rl(e) ? (!X(t.min) && e < t.min, (i = oe) && a.push(Z(i.numberTooSmall, t.min)), !X(t.max) && e > t.max, (i = oe) && a.push(Z(i.numberTooBig, t.max))) : a.push(Z(i.invalidNumber))), a;
|
|
1485
1485
|
},
|
|
1486
|
-
integer: (e, t, n,
|
|
1487
|
-
let
|
|
1488
|
-
return
|
|
1486
|
+
integer: (e, t, n, i = oe) => {
|
|
1487
|
+
let a = fe(e, t.required, i);
|
|
1488
|
+
return a != null || (a = [], a.concat(Ne.number(e, t, n, i)), ql(e) || a.push(Z(i.invalidInteger))), a;
|
|
1489
1489
|
},
|
|
1490
|
-
double: (e, t, n,
|
|
1491
|
-
const
|
|
1492
|
-
return
|
|
1490
|
+
double: (e, t, n, i = oe) => {
|
|
1491
|
+
const a = fe(e, t.required, i);
|
|
1492
|
+
return a ?? (!ct(e) || isNaN(e) ? [Z(i.invalidNumber)] : []);
|
|
1493
1493
|
},
|
|
1494
|
-
string: (e, t, n,
|
|
1495
|
-
let
|
|
1496
|
-
return
|
|
1494
|
+
string: (e, t, n, i = oe) => {
|
|
1495
|
+
let a = fe(e, t.required, i);
|
|
1496
|
+
return a != null || (a = [], Re(e) ? (!X(t.min) && e.length < t.min && a.push(Z(i.textTooSmall, e.length, t.min)), !X(t.max) && e.length > t.max && a.push(Z(i.textTooBig, e.length, t.max))) : a.push(Z(i.thisNotText))), a;
|
|
1497
1497
|
},
|
|
1498
|
-
array: (e, t, n,
|
|
1498
|
+
array: (e, t, n, i = oe) => {
|
|
1499
1499
|
if (t.required) {
|
|
1500
1500
|
if (!Array.isArray(e))
|
|
1501
|
-
return [Z(
|
|
1501
|
+
return [Z(i.thisNotArray)];
|
|
1502
1502
|
if (e.length === 0)
|
|
1503
|
-
return [Z(
|
|
1503
|
+
return [Z(i.fieldIsRequired)];
|
|
1504
1504
|
}
|
|
1505
1505
|
if (!X(e)) {
|
|
1506
1506
|
if (!X(t.min) && e.length < t.min)
|
|
1507
|
-
return [Z(
|
|
1507
|
+
return [Z(i.selectMinItems, t.min)];
|
|
1508
1508
|
if (!X(t.max) && e.length > t.max)
|
|
1509
|
-
return [Z(
|
|
1509
|
+
return [Z(i.selectMaxItems, t.max)];
|
|
1510
1510
|
}
|
|
1511
1511
|
return [];
|
|
1512
1512
|
},
|
|
1513
|
-
date: (e, t, n,
|
|
1514
|
-
let
|
|
1515
|
-
if (
|
|
1516
|
-
|
|
1513
|
+
date: (e, t, n, i = oe) => {
|
|
1514
|
+
let a = fe(e, t.required, i);
|
|
1515
|
+
if (a != null) return a;
|
|
1516
|
+
a = [];
|
|
1517
1517
|
const r = new Date(e);
|
|
1518
1518
|
if (isNaN(r.getDate()))
|
|
1519
|
-
return [Z(
|
|
1519
|
+
return [Z(i.invalidDate)];
|
|
1520
1520
|
if (!X(t.min)) {
|
|
1521
1521
|
const s = new Date(t.min);
|
|
1522
|
-
r.valueOf() < s.valueOf() &&
|
|
1522
|
+
r.valueOf() < s.valueOf() && a.push(Z(i.dateIsEarly, Be.format(r), Be.format(s)));
|
|
1523
1523
|
}
|
|
1524
1524
|
if (!X(t.max)) {
|
|
1525
1525
|
const s = new Date(t.max);
|
|
1526
|
-
r.valueOf() > s.valueOf() &&
|
|
1526
|
+
r.valueOf() > s.valueOf() && a.push(Z(i.dateIsLate, Be.format(r), Be.format(s)));
|
|
1527
1527
|
}
|
|
1528
|
-
return
|
|
1528
|
+
return a;
|
|
1529
1529
|
},
|
|
1530
|
-
regexp: (e, t, n,
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
1530
|
+
regexp: (e, t, n, i = oe) => {
|
|
1531
|
+
const a = fe(e, t.required, i);
|
|
1532
|
+
return a ?? (!X(t.pattern) && !new RegExp(t.pattern).test(e) ? [Z(i.invalidFormat)] : []);
|
|
1533
1533
|
},
|
|
1534
|
-
email: (e, t, n,
|
|
1535
|
-
const
|
|
1536
|
-
return
|
|
1534
|
+
email: (e, t, n, i = oe) => {
|
|
1535
|
+
const a = fe(e, t.required, i);
|
|
1536
|
+
return a ?? (/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e) ? [] : [Z(i.invalidEmail)]);
|
|
1537
1537
|
},
|
|
1538
|
-
url: (e, t, n,
|
|
1539
|
-
const
|
|
1540
|
-
return
|
|
1538
|
+
url: (e, t, n, i = oe) => {
|
|
1539
|
+
const a = fe(e, t.required, i);
|
|
1540
|
+
return a ?? (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(e) ? [] : [Z(i.invalidURL)]);
|
|
1541
1541
|
},
|
|
1542
|
-
creditCard: (e, t, n,
|
|
1543
|
-
const
|
|
1544
|
-
if (
|
|
1542
|
+
creditCard: (e, t, n, i = oe) => {
|
|
1543
|
+
const a = fe(e, t.required, i);
|
|
1544
|
+
if (a != null) return a;
|
|
1545
1545
|
const r = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, s = e.replace(/[^0-9]+/g, "");
|
|
1546
1546
|
if (!r.test(s))
|
|
1547
|
-
return [Z(
|
|
1547
|
+
return [Z(i.invalidCard)];
|
|
1548
1548
|
let o = 0, l, d, h;
|
|
1549
1549
|
for (let m = s.length - 1; m >= 0; m--)
|
|
1550
1550
|
l = s.substring(m, m + 1), d = parseInt(l, 10), h ? (d *= 2, d >= 10 ? o += d % 10 + 1 : o += d) : o += d, h = !h;
|
|
1551
|
-
return o % 10 === 0 && s ? [] : [Z(
|
|
1551
|
+
return o % 10 === 0 && s ? [] : [Z(i.invalidCardNumber)];
|
|
1552
1552
|
},
|
|
1553
|
-
alpha: (e, t, n,
|
|
1554
|
-
const
|
|
1555
|
-
return
|
|
1553
|
+
alpha: (e, t, n, i = oe) => {
|
|
1554
|
+
const a = fe(e, t.required, i);
|
|
1555
|
+
return a ?? (/^[a-zA-Z]*$/.test(e) ? [] : [Z(i.invalidTextContainNumber)]);
|
|
1556
1556
|
},
|
|
1557
|
-
alphaNumeric: (e, t, n,
|
|
1558
|
-
const
|
|
1559
|
-
return
|
|
1557
|
+
alphaNumeric: (e, t, n, i = oe) => {
|
|
1558
|
+
const a = fe(e, t.required, i);
|
|
1559
|
+
return a ?? (/^[a-zA-Z0-9]*$/.test(e) ? [] : [Z(i.invalidTextContainSpec)]);
|
|
1560
1560
|
}
|
|
1561
1561
|
};
|
|
1562
1562
|
Object.keys(Ne).forEach((e) => {
|
|
1563
1563
|
const t = Ne[e];
|
|
1564
|
-
z(t) && (t.locale = (n) => (
|
|
1564
|
+
z(t) && (t.locale = (n) => (i, a, r) => t(i, a, r, Vl(n, oe)));
|
|
1565
1565
|
});
|
|
1566
1566
|
function Tn(e) {
|
|
1567
1567
|
return Re(e) ? Ne[e] != null ? Ne[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1570
|
-
let
|
|
1571
|
-
const
|
|
1572
|
-
Re(
|
|
1569
|
+
function It(e, t, n) {
|
|
1570
|
+
let i = B(n.context, "schema.attributes", {});
|
|
1571
|
+
const a = t.value || "input";
|
|
1572
|
+
Re(a) && (i = B(i, a) || i), le(i, (r, s) => {
|
|
1573
1573
|
e.setAttribute(s, r);
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
@@ -1586,9 +1586,9 @@ const be = {
|
|
|
1586
1586
|
},
|
|
1587
1587
|
directives: {
|
|
1588
1588
|
attributes: {
|
|
1589
|
-
beforeMount:
|
|
1590
|
-
updated:
|
|
1591
|
-
componentUpdated:
|
|
1589
|
+
beforeMount: It,
|
|
1590
|
+
updated: It,
|
|
1591
|
+
componentUpdated: It
|
|
1592
1592
|
}
|
|
1593
1593
|
},
|
|
1594
1594
|
computed: {
|
|
@@ -1610,10 +1610,10 @@ const be = {
|
|
|
1610
1610
|
const t = B(this.formOptions, "validateAsync", !1);
|
|
1611
1611
|
let n = [];
|
|
1612
1612
|
if (this.schema.validator && this.schema.readonly !== !0 && this.disabled !== !0) {
|
|
1613
|
-
const
|
|
1613
|
+
const a = [];
|
|
1614
1614
|
Array.isArray(this.schema.validator) ? le(this.schema.validator, (r) => {
|
|
1615
|
-
|
|
1616
|
-
}) :
|
|
1615
|
+
a.push(Tn(r).bind(this));
|
|
1616
|
+
}) : a.push(Tn(this.schema.validator).bind(this)), le(a, (r) => {
|
|
1617
1617
|
if (t)
|
|
1618
1618
|
n.push(r(this.value, this.schema, this.model));
|
|
1619
1619
|
else {
|
|
@@ -1626,15 +1626,15 @@ const be = {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
});
|
|
1628
1628
|
}
|
|
1629
|
-
const
|
|
1629
|
+
const i = (a) => {
|
|
1630
1630
|
let r = [];
|
|
1631
|
-
le(oi(
|
|
1631
|
+
le(oi(a), (o) => {
|
|
1632
1632
|
Array.isArray(o) && o.length > 0 ? r = r.concat(o) : Re(o) && r.push(o);
|
|
1633
1633
|
}), z(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, r, this.schema);
|
|
1634
1634
|
const s = r.length === 0;
|
|
1635
1635
|
return e || this.$emit("validated", s, r, this), this.errors = r, r;
|
|
1636
1636
|
};
|
|
1637
|
-
return t ? Promise.all(n).then(
|
|
1637
|
+
return t ? Promise.all(n).then(i) : i(n);
|
|
1638
1638
|
},
|
|
1639
1639
|
debouncedValidate() {
|
|
1640
1640
|
z(this.debouncedValidateFunc) || (this.debouncedValidateFunc = nt(
|
|
@@ -1652,16 +1652,16 @@ const be = {
|
|
|
1652
1652
|
setModelValueByPath(e, t) {
|
|
1653
1653
|
let n = e.replace(/\[(\w+)\]/g, ".$1");
|
|
1654
1654
|
n = n.replace(/^\./, "");
|
|
1655
|
-
let
|
|
1656
|
-
const
|
|
1655
|
+
let i = this.model;
|
|
1656
|
+
const a = n.split(".");
|
|
1657
1657
|
let r = 0;
|
|
1658
|
-
const s =
|
|
1658
|
+
const s = a.length;
|
|
1659
1659
|
for (; r < s; ) {
|
|
1660
|
-
const o =
|
|
1660
|
+
const o = a[r];
|
|
1661
1661
|
if (r < s - 1)
|
|
1662
|
-
|
|
1662
|
+
i[o] !== void 0 || (i[o] = {}), i = i[o];
|
|
1663
1663
|
else {
|
|
1664
|
-
|
|
1664
|
+
i[o] = t;
|
|
1665
1665
|
return;
|
|
1666
1666
|
}
|
|
1667
1667
|
++r;
|
|
@@ -1689,8 +1689,8 @@ const be = {
|
|
|
1689
1689
|
default: be
|
|
1690
1690
|
}, Symbol.toStringTag, { value: "Module" })), Y = (e, t) => {
|
|
1691
1691
|
const n = e.__vccOpts || e;
|
|
1692
|
-
for (const [
|
|
1693
|
-
n[
|
|
1692
|
+
for (const [i, a] of t)
|
|
1693
|
+
n[i] = a;
|
|
1694
1694
|
return n;
|
|
1695
1695
|
}, xl = {
|
|
1696
1696
|
class: "advanced-field-dropdown-wrapper",
|
|
@@ -1730,7 +1730,7 @@ const be = {
|
|
|
1730
1730
|
f("button", {
|
|
1731
1731
|
class: "advanced-field-title",
|
|
1732
1732
|
type: "button",
|
|
1733
|
-
onClick: n[0] || (n[0] = (...
|
|
1733
|
+
onClick: n[0] || (n[0] = (...i) => t.handleOpen && t.handleOpen(...i))
|
|
1734
1734
|
}, [
|
|
1735
1735
|
f("i", Gl, $(t.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
1736
1736
|
f("span", null, $(t.titleText), 1)
|
|
@@ -1765,10 +1765,10 @@ const be = {
|
|
|
1765
1765
|
},
|
|
1766
1766
|
emits: ["remove-item"],
|
|
1767
1767
|
setup(e) {
|
|
1768
|
-
return it("vfg-array-item-index", e.index), (n,
|
|
1769
|
-
const
|
|
1768
|
+
return it("vfg-array-item-index", e.index), (n, i) => {
|
|
1769
|
+
const a = F("KCard"), r = F("KButton");
|
|
1770
1770
|
return u(), g("div", Ql, [
|
|
1771
|
-
C(
|
|
1771
|
+
C(a, { class: "card" }, {
|
|
1772
1772
|
default: I(() => [
|
|
1773
1773
|
Oe(n.$slots, "default", {}, void 0, !0)
|
|
1774
1774
|
]),
|
|
@@ -1777,7 +1777,7 @@ const be = {
|
|
|
1777
1777
|
C(r, {
|
|
1778
1778
|
appearance: "tertiary",
|
|
1779
1779
|
class: "array-card-remove-button",
|
|
1780
|
-
onClick:
|
|
1780
|
+
onClick: i[0] || (i[0] = (s) => n.$emit("remove-item"))
|
|
1781
1781
|
}, {
|
|
1782
1782
|
default: I(() => [
|
|
1783
1783
|
C(w(at))
|
|
@@ -1798,14 +1798,14 @@ const be = {
|
|
|
1798
1798
|
emits: ["remove-item"],
|
|
1799
1799
|
setup(e) {
|
|
1800
1800
|
return (t, n) => {
|
|
1801
|
-
const
|
|
1801
|
+
const i = F("KButton");
|
|
1802
1802
|
return u(), g("div", ed, [
|
|
1803
1803
|
f("div", td, [
|
|
1804
1804
|
Oe(t.$slots, "default", {}, void 0, !0),
|
|
1805
|
-
C(
|
|
1805
|
+
C(i, {
|
|
1806
1806
|
appearance: "tertiary",
|
|
1807
1807
|
class: "delete",
|
|
1808
|
-
onClick: n[0] || (n[0] = (
|
|
1808
|
+
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1809
1809
|
}, {
|
|
1810
1810
|
default: I(() => [
|
|
1811
1811
|
C(w(at))
|
|
@@ -1824,13 +1824,13 @@ const be = {
|
|
|
1824
1824
|
emits: ["remove-item"],
|
|
1825
1825
|
setup(e) {
|
|
1826
1826
|
return (t, n) => {
|
|
1827
|
-
const
|
|
1827
|
+
const i = F("KButton");
|
|
1828
1828
|
return u(), g("div", ad, [
|
|
1829
1829
|
Oe(t.$slots, "default", {}, void 0, !0),
|
|
1830
|
-
C(
|
|
1830
|
+
C(i, {
|
|
1831
1831
|
appearance: "danger",
|
|
1832
1832
|
class: "delete",
|
|
1833
|
-
onClick: n[0] || (n[0] = (
|
|
1833
|
+
onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
|
|
1834
1834
|
}, {
|
|
1835
1835
|
default: I(() => n[1] || (n[1] = [
|
|
1836
1836
|
te(" - Remove Field ")
|
|
@@ -1841,7 +1841,7 @@ const be = {
|
|
|
1841
1841
|
]);
|
|
1842
1842
|
};
|
|
1843
1843
|
}
|
|
1844
|
-
}), vi = /* @__PURE__ */ Y(rd, [["__scopeId", "data-v-b4fcf731"]]), od = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", sd = (e) => e ? e.length === 36 && new RegExp(`^${od}$`).test(e) : !1,
|
|
1844
|
+
}), vi = /* @__PURE__ */ Y(rd, [["__scopeId", "data-v-b4fcf731"]]), od = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", sd = (e) => e ? e.length === 36 && new RegExp(`^${od}$`).test(e) : !1, Ot = 50, Ve = {
|
|
1845
1845
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
1846
1846
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
1847
1847
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
@@ -1921,13 +1921,13 @@ const dd = {
|
|
|
1921
1921
|
if (e.trim().length === 0)
|
|
1922
1922
|
return;
|
|
1923
1923
|
this.loading = !0;
|
|
1924
|
-
const t = [], n = [],
|
|
1925
|
-
sd(e) &&
|
|
1924
|
+
const t = [], n = [], i = this.getInputFields(), a = /* @__PURE__ */ new Set();
|
|
1925
|
+
sd(e) && i.includes("id") ? n.push((async () => {
|
|
1926
1926
|
const r = await this.fetchExact(e);
|
|
1927
1927
|
t.push({ ...r, label: this.getSuggestionLabel(r), value: r.id });
|
|
1928
|
-
})()) : n.push(...
|
|
1928
|
+
})()) : n.push(...i.filter((r) => r !== "id").map(async (r) => {
|
|
1929
1929
|
(await this.fetchSuggestions(e, r)).forEach((o) => {
|
|
1930
|
-
|
|
1930
|
+
a.has(o.id) || (a.add(o.id), t.push({ ...o, label: this.getSuggestionLabel(o), value: o.id }));
|
|
1931
1931
|
});
|
|
1932
1932
|
})), await Promise.all(n), this.items = t, this.items.length === 0 && (this.message = "No results"), this.loading = !1;
|
|
1933
1933
|
},
|
|
@@ -1939,15 +1939,15 @@ const dd = {
|
|
|
1939
1939
|
let n = null;
|
|
1940
1940
|
if (!this[$e])
|
|
1941
1941
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
1942
|
-
for (; t.length <
|
|
1943
|
-
const
|
|
1944
|
-
size:
|
|
1942
|
+
for (; t.length < Ot; ) {
|
|
1943
|
+
const i = await this[$e].getAll(this.entity, {
|
|
1944
|
+
size: Ot,
|
|
1945
1945
|
offset: n,
|
|
1946
1946
|
...e
|
|
1947
1947
|
});
|
|
1948
|
-
if (t.push(...
|
|
1948
|
+
if (t.push(...i.data.data), n = i.data.offset, !n) break;
|
|
1949
1949
|
}
|
|
1950
|
-
return t.slice(0,
|
|
1950
|
+
return t.slice(0, Ot);
|
|
1951
1951
|
},
|
|
1952
1952
|
async fetchSuggestions(e, t) {
|
|
1953
1953
|
return this.fetchUntilLimit({ [t]: e });
|
|
@@ -1976,25 +1976,25 @@ const dd = {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
1978
|
}, ud = ["data-testid", "data-testlabel"], cd = ["data-testid"], md = { class: "autosuggest__results_message" };
|
|
1979
|
-
function fd(e, t, n,
|
|
1979
|
+
function fd(e, t, n, i, a, r) {
|
|
1980
1980
|
const s = F("KSelect");
|
|
1981
1981
|
return u(), A(ie(e.schema.disabled ? "k-tooltip" : "div"), {
|
|
1982
1982
|
class: "field-wrap autosuggest",
|
|
1983
1983
|
"max-width": "300",
|
|
1984
|
-
text:
|
|
1984
|
+
text: i.t("general.disable_source_scope_change", { scope: r.scope })
|
|
1985
1985
|
}, {
|
|
1986
1986
|
default: I(() => [
|
|
1987
1987
|
C(s, {
|
|
1988
1988
|
id: e.schema.model,
|
|
1989
1989
|
ref: "suggestion",
|
|
1990
|
-
modelValue:
|
|
1991
|
-
"onUpdate:modelValue": t[0] || (t[0] = (o) =>
|
|
1990
|
+
modelValue: a.idValue,
|
|
1991
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => a.idValue = o),
|
|
1992
1992
|
clearable: "",
|
|
1993
1993
|
disabled: e.schema.disabled,
|
|
1994
1994
|
"enable-filtering": "",
|
|
1995
1995
|
"filter-function": () => !0,
|
|
1996
|
-
items:
|
|
1997
|
-
loading:
|
|
1996
|
+
items: a.items,
|
|
1997
|
+
loading: a.loading,
|
|
1998
1998
|
placeholder: e.schema.placeholder,
|
|
1999
1999
|
width: "100%",
|
|
2000
2000
|
onChange: r.onSelected,
|
|
@@ -2014,7 +2014,7 @@ function fd(e, t, n, a, i, r) {
|
|
|
2014
2014
|
]),
|
|
2015
2015
|
empty: I(() => [
|
|
2016
2016
|
f("div", md, [
|
|
2017
|
-
f("span", null, $(
|
|
2017
|
+
f("span", null, $(a.message), 1)
|
|
2018
2018
|
])
|
|
2019
2019
|
]),
|
|
2020
2020
|
_: 1
|
|
@@ -2025,14 +2025,14 @@ function fd(e, t, n, a, i, r) {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
const bi = /* @__PURE__ */ Y(dd, [["render", fd], ["__scopeId", "data-v-40a272a2"]]);
|
|
2027
2027
|
function hd(e) {
|
|
2028
|
-
const t = ue([]), n = ue(null),
|
|
2028
|
+
const t = ue([]), n = ue(null), i = (c) => Re(c) ? Ne[c] != null ? Ne[c] : (console.warn(`'${c}' is not a validator function!`), null) : c, a = L({
|
|
2029
2029
|
get() {
|
|
2030
2030
|
var M, T;
|
|
2031
2031
|
let c;
|
|
2032
2032
|
return z(B(e.schema, "get")) ? c = e.schema.get((M = e.model) == null ? void 0 : M.value) : c = B((T = e.model) == null ? void 0 : T.value, e.schema.model), E(c);
|
|
2033
2033
|
},
|
|
2034
2034
|
set(c) {
|
|
2035
|
-
const M =
|
|
2035
|
+
const M = a;
|
|
2036
2036
|
c = N(c), z(c) ? c(c, M) : o(c, M);
|
|
2037
2037
|
}
|
|
2038
2038
|
}), r = (c) => {
|
|
@@ -2043,13 +2043,13 @@ function hd(e) {
|
|
|
2043
2043
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2044
2044
|
const O = [], k = (b = e.schema) == null ? void 0 : b.validator;
|
|
2045
2045
|
k && (Array.isArray(k) ? le(k, (_) => {
|
|
2046
|
-
O.push(
|
|
2047
|
-
}) : O.push(
|
|
2046
|
+
O.push(i(_));
|
|
2047
|
+
}) : O.push(i(k))), z(e.externalValidator) && O.push(e.externalValidator), le(O, (_) => {
|
|
2048
2048
|
var v, j;
|
|
2049
2049
|
if (M)
|
|
2050
|
-
T.push(_(
|
|
2050
|
+
T.push(_(a.value, e.schema, (v = e.model) == null ? void 0 : v.value));
|
|
2051
2051
|
else {
|
|
2052
|
-
const x = _(
|
|
2052
|
+
const x = _(a.value, e.schema, (j = e.model) == null ? void 0 : j.value);
|
|
2053
2053
|
x && z(x.then) ? x.then((y) => {
|
|
2054
2054
|
y && (t.value = t.value.concat(y));
|
|
2055
2055
|
const S = t.value.length === 0;
|
|
@@ -2102,7 +2102,7 @@ function hd(e) {
|
|
|
2102
2102
|
return Kt(c, T) + (M ? "-" + si() : "");
|
|
2103
2103
|
}, m = (c) => `${h(c)}-label`, p = () => B(e.schema, "fieldClasses", []), E = (c) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(c) : c, N = (c) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(c) : c;
|
|
2104
2104
|
return {
|
|
2105
|
-
value:
|
|
2105
|
+
value: a,
|
|
2106
2106
|
clearValidationErrors: l,
|
|
2107
2107
|
getFieldID: h,
|
|
2108
2108
|
getLabelId: m,
|
|
@@ -2111,15 +2111,15 @@ function hd(e) {
|
|
|
2111
2111
|
};
|
|
2112
2112
|
}
|
|
2113
2113
|
function pd(e) {
|
|
2114
|
-
const t = [], n = (
|
|
2115
|
-
const
|
|
2116
|
-
for (const r of
|
|
2117
|
-
if (
|
|
2114
|
+
const t = [], n = (i) => {
|
|
2115
|
+
const a = ["cluster-cache", "cluster_cache"];
|
|
2116
|
+
for (const r of a)
|
|
2117
|
+
if (i.model.includes(r))
|
|
2118
2118
|
return !1;
|
|
2119
|
-
return new RegExp("(?<=-redis-).*").test(
|
|
2119
|
+
return new RegExp("(?<=-redis-).*").test(i.model);
|
|
2120
2120
|
};
|
|
2121
|
-
return e.fields.forEach((
|
|
2122
|
-
n(
|
|
2121
|
+
return e.fields.forEach((i) => {
|
|
2122
|
+
n(i) && t.push(i);
|
|
2123
2123
|
}), {
|
|
2124
2124
|
redis: {
|
|
2125
2125
|
id: "_redis",
|
|
@@ -2128,16 +2128,16 @@ function pd(e) {
|
|
|
2128
2128
|
redisType: e._supported_redis_partial_type,
|
|
2129
2129
|
redisPath: e._redis_partial_path
|
|
2130
2130
|
},
|
|
2131
|
-
redisModels: t.map((
|
|
2131
|
+
redisModels: t.map((i) => i.model)
|
|
2132
2132
|
};
|
|
2133
2133
|
}
|
|
2134
2134
|
function gd(e, t) {
|
|
2135
|
-
const n = new RegExp("(?<=config-redis-).*"),
|
|
2135
|
+
const n = new RegExp("(?<=config-redis-).*"), i = /Config\.Redis.*/;
|
|
2136
2136
|
return t.filter((r) => {
|
|
2137
2137
|
const s = r.model.match(n);
|
|
2138
2138
|
return s && !Object.keys(e).includes(s[0]);
|
|
2139
2139
|
}).map((r) => {
|
|
2140
|
-
const s = r.label.match(
|
|
2140
|
+
const s = r.label.match(i);
|
|
2141
2141
|
return {
|
|
2142
2142
|
label: s ? s[0] : r.label,
|
|
2143
2143
|
key: r.model,
|
|
@@ -2190,12 +2190,12 @@ const ye = {
|
|
|
2190
2190
|
},
|
|
2191
2191
|
emits: ["modelUpdated"],
|
|
2192
2192
|
setup(e, { expose: t, emit: n }) {
|
|
2193
|
-
const
|
|
2193
|
+
const i = e, a = n, r = Le(i), s = ot(he, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: d, value: h } = ye.useAbstractFields({
|
|
2194
2194
|
model: r.model,
|
|
2195
|
-
schema:
|
|
2196
|
-
formOptions:
|
|
2195
|
+
schema: i.schema,
|
|
2196
|
+
formOptions: i.formOptions,
|
|
2197
2197
|
emitModelUpdated: (b) => {
|
|
2198
|
-
|
|
2198
|
+
a("modelUpdated", b.value, b.model);
|
|
2199
2199
|
}
|
|
2200
2200
|
});
|
|
2201
2201
|
t({
|
|
@@ -2203,7 +2203,7 @@ const ye = {
|
|
|
2203
2203
|
});
|
|
2204
2204
|
const m = L(() => {
|
|
2205
2205
|
var O;
|
|
2206
|
-
const b = (O =
|
|
2206
|
+
const b = (O = i.schema) == null ? void 0 : O.inputType.toLowerCase();
|
|
2207
2207
|
switch (b) {
|
|
2208
2208
|
case "string":
|
|
2209
2209
|
return "text";
|
|
@@ -2220,15 +2220,15 @@ const ye = {
|
|
|
2220
2220
|
var j, x;
|
|
2221
2221
|
let k = b;
|
|
2222
2222
|
const _ = p[m.value] || "", v = Be.parse(b, _);
|
|
2223
|
-
v && ((j =
|
|
2223
|
+
v && ((j = i.schema) != null && j.format ? k = Be.format(v, (x = i.schema) == null ? void 0 : x.format) : k = v.valueOf()), o(k, O);
|
|
2224
2224
|
}, N = (b, O) => {
|
|
2225
|
-
|
|
2225
|
+
ct(b) || (b = NaN), o(b, O);
|
|
2226
2226
|
}, c = (b) => {
|
|
2227
2227
|
let O = b;
|
|
2228
2228
|
switch (m.value) {
|
|
2229
2229
|
case "number":
|
|
2230
2230
|
case "range":
|
|
2231
|
-
|
|
2231
|
+
ct(parseFloat(b)) && (O = parseFloat(b));
|
|
2232
2232
|
break;
|
|
2233
2233
|
}
|
|
2234
2234
|
h.value = O, o(O, b);
|
|
@@ -2246,7 +2246,7 @@ const ye = {
|
|
|
2246
2246
|
(b, O) => {
|
|
2247
2247
|
N(b, O);
|
|
2248
2248
|
},
|
|
2249
|
-
parseInt(B(
|
|
2249
|
+
parseInt(B(i.schema, "debounceFormatTimeout", 1e3)),
|
|
2250
2250
|
{
|
|
2251
2251
|
trailing: !0,
|
|
2252
2252
|
leading: !1
|
|
@@ -2260,7 +2260,7 @@ const ye = {
|
|
|
2260
2260
|
(b, O) => {
|
|
2261
2261
|
E(b, O);
|
|
2262
2262
|
},
|
|
2263
|
-
parseInt(B(
|
|
2263
|
+
parseInt(B(i.schema, "debounceFormatTimeout", 1e3)),
|
|
2264
2264
|
{
|
|
2265
2265
|
trailing: !0,
|
|
2266
2266
|
leading: !1
|
|
@@ -2317,21 +2317,21 @@ const ye = {
|
|
|
2317
2317
|
key: 0,
|
|
2318
2318
|
class: "content"
|
|
2319
2319
|
};
|
|
2320
|
-
function wd(e, t, n,
|
|
2320
|
+
function wd(e, t, n, i, a, r) {
|
|
2321
2321
|
const s = F("AddIcon"), o = F("TrashIcon"), l = F("KButton");
|
|
2322
2322
|
return u(), g("div", {
|
|
2323
|
-
class: W(["field-dropdown", { active:
|
|
2323
|
+
class: W(["field-dropdown", { active: a.contentVisible }])
|
|
2324
2324
|
}, [
|
|
2325
2325
|
f("div", {
|
|
2326
2326
|
class: "title",
|
|
2327
|
-
onClick: t[0] || (t[0] = (d) =>
|
|
2327
|
+
onClick: t[0] || (t[0] = (d) => a.contentVisible = !a.contentVisible)
|
|
2328
2328
|
}, [
|
|
2329
2329
|
te($(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
2330
2330
|
C(s, { class: "metric-add-icon" })
|
|
2331
2331
|
]),
|
|
2332
2332
|
C(Ai, { name: "slide-fade" }, {
|
|
2333
2333
|
default: I(() => [
|
|
2334
|
-
|
|
2334
|
+
a.contentVisible ? (u(), g("div", _d, [
|
|
2335
2335
|
Oe(e.$slots, "default"),
|
|
2336
2336
|
C(l, {
|
|
2337
2337
|
appearance: "tertiary",
|
|
@@ -2368,8 +2368,8 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2368
2368
|
if (!this.value) return;
|
|
2369
2369
|
const e = Object.keys(this.value), t = {};
|
|
2370
2370
|
for (let n = 0; n < e.length; n++) {
|
|
2371
|
-
const
|
|
2372
|
-
t[
|
|
2371
|
+
const i = e[n];
|
|
2372
|
+
t[i] = typeof this.value[i];
|
|
2373
2373
|
}
|
|
2374
2374
|
this.keyTypes = t;
|
|
2375
2375
|
},
|
|
@@ -2391,7 +2391,7 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2391
2391
|
__name: "FieldObject",
|
|
2392
2392
|
setup(e) {
|
|
2393
2393
|
return (t, n) => {
|
|
2394
|
-
const
|
|
2394
|
+
const i = kn("attributes");
|
|
2395
2395
|
return de((u(), g("div", Md, [
|
|
2396
2396
|
t.schema.schema ? (u(), A(ee, {
|
|
2397
2397
|
key: 0,
|
|
@@ -2404,7 +2404,7 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2404
2404
|
id: t.getFieldID(t.schema),
|
|
2405
2405
|
class: W(t.schema.fieldClasses)
|
|
2406
2406
|
}, [
|
|
2407
|
-
(u(!0), g(K, null, J(t.value, (
|
|
2407
|
+
(u(!0), g(K, null, J(t.value, (a, r) => (u(), g("tr", { key: r }, [
|
|
2408
2408
|
f("td", null, $(r), 1),
|
|
2409
2409
|
t.keyTypes[r] === "string" ? (u(), g("td", Cd, [
|
|
2410
2410
|
de(f("input", {
|
|
@@ -2440,7 +2440,7 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2440
2440
|
]))), 128))
|
|
2441
2441
|
], 10, Td),
|
|
2442
2442
|
de(f("select", {
|
|
2443
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2443
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyType = a)
|
|
2444
2444
|
}, n[3] || (n[3] = [
|
|
2445
2445
|
f("option", { value: "string" }, " String ", -1),
|
|
2446
2446
|
f("option", { value: "number" }, " Number ", -1),
|
|
@@ -2449,7 +2449,7 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2449
2449
|
[Fi, t.newKeyType]
|
|
2450
2450
|
]),
|
|
2451
2451
|
de(f("input", {
|
|
2452
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
2452
|
+
"onUpdate:modelValue": n[1] || (n[1] = (a) => t.newKeyName = a),
|
|
2453
2453
|
type: "text"
|
|
2454
2454
|
}, null, 512), [
|
|
2455
2455
|
[Ze, t.newKeyName]
|
|
@@ -2457,11 +2457,11 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2457
2457
|
f("input", {
|
|
2458
2458
|
type: "button",
|
|
2459
2459
|
value: "Add key",
|
|
2460
|
-
onClick: n[2] || (n[2] = (...
|
|
2460
|
+
onClick: n[2] || (n[2] = (...a) => t.addKey && t.addKey(...a))
|
|
2461
2461
|
})
|
|
2462
2462
|
]))
|
|
2463
2463
|
])), [
|
|
2464
|
-
[
|
|
2464
|
+
[i, t.attributes]
|
|
2465
2465
|
]);
|
|
2466
2466
|
};
|
|
2467
2467
|
}
|
|
@@ -2538,32 +2538,32 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2538
2538
|
* }
|
|
2539
2539
|
*/
|
|
2540
2540
|
transformMapModelValuesToObject(e, t, n) {
|
|
2541
|
-
let
|
|
2541
|
+
let i = {};
|
|
2542
2542
|
try {
|
|
2543
|
-
|
|
2543
|
+
i = JSON.parse(JSON.stringify(e ?? {}))[n] ?? {};
|
|
2544
2544
|
} catch {
|
|
2545
2545
|
}
|
|
2546
|
-
return Object.keys(e).map((
|
|
2547
|
-
const r =
|
|
2546
|
+
return Object.keys(e).map((a) => {
|
|
2547
|
+
const r = a.indexOf(n + "-");
|
|
2548
2548
|
if (r > -1 && Array.isArray(t))
|
|
2549
2549
|
if (t.length > 0) {
|
|
2550
|
-
const o =
|
|
2551
|
-
o.length ?
|
|
2552
|
-
...
|
|
2553
|
-
[o]: e[
|
|
2554
|
-
} : a
|
|
2550
|
+
const o = a.split("-").filter((d) => t.find((h) => h.model === d)), l = a.split(`-${o}`)[0].split(`${n}-`)[1];
|
|
2551
|
+
o.length ? i[l] = {
|
|
2552
|
+
...i[l],
|
|
2553
|
+
[o]: e[a]
|
|
2554
|
+
} : i[a.substring(r + `${n}-`.length)] = e[a];
|
|
2555
2555
|
} else
|
|
2556
|
-
a
|
|
2556
|
+
i[a.substring(`${n}-`.length)] = e[a];
|
|
2557
2557
|
else {
|
|
2558
|
-
const o =
|
|
2559
|
-
l && (
|
|
2558
|
+
const o = a.split("-").filter((d) => d === this.schema.model), l = a.split(`-${o}`)[0].split(`${n}-`)[1];
|
|
2559
|
+
l && (i[l] = e[a]);
|
|
2560
2560
|
}
|
|
2561
|
-
return
|
|
2562
|
-
}),
|
|
2561
|
+
return a;
|
|
2562
|
+
}), i;
|
|
2563
2563
|
},
|
|
2564
2564
|
addKey() {
|
|
2565
|
-
var
|
|
2566
|
-
const e = this.subSchema && Array.isArray(this.subSchema.fields) && this.subSchema.fields.length === 1 && this.subSchema.fields[0].type === "array", t = ((
|
|
2565
|
+
var i;
|
|
2566
|
+
const e = this.subSchema && Array.isArray(this.subSchema.fields) && this.subSchema.fields.length === 1 && this.subSchema.fields[0].type === "array", t = ((i = this.schema.values) == null ? void 0 : i.default) ?? (this.valueInputType === "number" ? 0 : ""), n = this.subSchema ? e ? [""] : {} : t;
|
|
2567
2567
|
this.value[this.newKeyName] = n, this.newKeyName = "";
|
|
2568
2568
|
},
|
|
2569
2569
|
updateModel(e, t) {
|
|
@@ -2574,12 +2574,12 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2574
2574
|
__name: "FieldObjectAdvanced",
|
|
2575
2575
|
setup(e) {
|
|
2576
2576
|
return (t, n) => {
|
|
2577
|
-
const
|
|
2577
|
+
const i = F("KButton");
|
|
2578
2578
|
return u(), g("div", {
|
|
2579
2579
|
id: t.getFieldID(t.schema),
|
|
2580
2580
|
class: W(["object-advanced-wrapper", t.schema.fieldClasses])
|
|
2581
2581
|
}, [
|
|
2582
|
-
(u(!0), g(K, null, J(t.value, (
|
|
2582
|
+
(u(!0), g(K, null, J(t.value, (a, r) => (u(), g("div", {
|
|
2583
2583
|
key: r,
|
|
2584
2584
|
"data-testid": `field-object-key-${r}`
|
|
2585
2585
|
}, [
|
|
@@ -2588,7 +2588,7 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2588
2588
|
f("div", Pd, [
|
|
2589
2589
|
f("strong", null, $(r), 1),
|
|
2590
2590
|
f("div", null, [
|
|
2591
|
-
C(
|
|
2591
|
+
C(i, {
|
|
2592
2592
|
appearance: "tertiary",
|
|
2593
2593
|
class: "delete",
|
|
2594
2594
|
icon: "",
|
|
@@ -2636,7 +2636,7 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2636
2636
|
}, [
|
|
2637
2637
|
f("div", Dd, [
|
|
2638
2638
|
de(f("input", {
|
|
2639
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2639
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyName = a),
|
|
2640
2640
|
class: "form-control",
|
|
2641
2641
|
"data-testid": "keyname-input",
|
|
2642
2642
|
placeholder: t.schema.placeholder,
|
|
@@ -2644,7 +2644,7 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2644
2644
|
}, null, 8, Bd), [
|
|
2645
2645
|
[Ze, t.newKeyName]
|
|
2646
2646
|
]),
|
|
2647
|
-
C(
|
|
2647
|
+
C(i, {
|
|
2648
2648
|
appearance: "tertiary",
|
|
2649
2649
|
"data-testid": "add-key",
|
|
2650
2650
|
disabled: !t.newKeyName,
|
|
@@ -2701,12 +2701,12 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2701
2701
|
},
|
|
2702
2702
|
emits: ["modelUpdated"],
|
|
2703
2703
|
setup(e, { expose: t, emit: n }) {
|
|
2704
|
-
const
|
|
2704
|
+
const i = e, a = n, r = Le(i), { updateModelValue: s, value: o, clearValidationErrors: l } = ye.useAbstractFields({
|
|
2705
2705
|
model: r.model,
|
|
2706
|
-
schema:
|
|
2707
|
-
formOptions:
|
|
2706
|
+
schema: i.schema,
|
|
2707
|
+
formOptions: i.formOptions,
|
|
2708
2708
|
emitModelUpdated: (h) => {
|
|
2709
|
-
|
|
2709
|
+
a("modelUpdated", h.value, h.model);
|
|
2710
2710
|
}
|
|
2711
2711
|
});
|
|
2712
2712
|
t({
|
|
@@ -2714,7 +2714,7 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2714
2714
|
});
|
|
2715
2715
|
const d = (h) => {
|
|
2716
2716
|
let m = h;
|
|
2717
|
-
typeof h == "string" && (m = h.split(","),
|
|
2717
|
+
typeof h == "string" && (m = h.split(","), i.schema.array || (m = m.toString())), s(m, h);
|
|
2718
2718
|
};
|
|
2719
2719
|
return (h, m) => {
|
|
2720
2720
|
const p = F("KRadio");
|
|
@@ -2774,21 +2774,21 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2774
2774
|
},
|
|
2775
2775
|
emits: ["modelUpdated"],
|
|
2776
2776
|
setup(e, { expose: t, emit: n }) {
|
|
2777
|
-
const
|
|
2777
|
+
const i = e, a = n, r = L(() => i.schema.selectOptions || {}), s = (c) => X(c) ? null : c, o = Le(i), { getFieldID: l, clearValidationErrors: d, value: h } = ye.useAbstractFields({
|
|
2778
2778
|
model: o.model,
|
|
2779
|
-
schema:
|
|
2780
|
-
formOptions:
|
|
2779
|
+
schema: i.schema,
|
|
2780
|
+
formOptions: i.formOptions,
|
|
2781
2781
|
formatValueToField: s,
|
|
2782
2782
|
emitModelUpdated: (c) => {
|
|
2783
|
-
|
|
2783
|
+
a("modelUpdated", c.value, c.model);
|
|
2784
2784
|
}
|
|
2785
2785
|
});
|
|
2786
2786
|
t({
|
|
2787
2787
|
clearValidationErrors: d
|
|
2788
2788
|
});
|
|
2789
2789
|
const m = L(() => {
|
|
2790
|
-
const c =
|
|
2791
|
-
return p(typeof c == "function" ? c.apply(this, [
|
|
2790
|
+
const c = i.schema.values;
|
|
2791
|
+
return p(typeof c == "function" ? c.apply(this, [i.model, i.schema]) : c);
|
|
2792
2792
|
}), p = (c) => {
|
|
2793
2793
|
const M = [];
|
|
2794
2794
|
return c.forEach((T) => {
|
|
@@ -2871,10 +2871,10 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2871
2871
|
emits: ["refreshModel"],
|
|
2872
2872
|
methods: {
|
|
2873
2873
|
generateSchema(e, t, n) {
|
|
2874
|
-
var
|
|
2875
|
-
let
|
|
2876
|
-
return t && (
|
|
2877
|
-
...
|
|
2874
|
+
var a, r, s;
|
|
2875
|
+
let i;
|
|
2876
|
+
return t && (i = JSON.parse(JSON.stringify(t)), (s = (r = (a = i.schema) == null ? void 0 : a.fields) == null ? void 0 : r.map) == null || s.call(r, (o) => (o.id = `${o.id || o.model}-${n}`, o))), {
|
|
2877
|
+
...i,
|
|
2878
2878
|
set(o, l) {
|
|
2879
2879
|
e[n] = l;
|
|
2880
2880
|
},
|
|
@@ -2897,13 +2897,13 @@ const _i = /* @__PURE__ */ Y(yd, [["render", wd]]), Md = { class: "field-object-
|
|
|
2897
2897
|
this.$emit("refreshModel");
|
|
2898
2898
|
},
|
|
2899
2899
|
handleInput(e, t) {
|
|
2900
|
-
var
|
|
2900
|
+
var i, a;
|
|
2901
2901
|
let n = e;
|
|
2902
|
-
((
|
|
2902
|
+
((a = (i = this.schema) == null ? void 0 : i.inputAttributes) == null ? void 0 : a.type) === "number" && ct(parseFloat(e)) && (n = parseFloat(e)), this.value = this.value.map((r, s) => s === t ? n : r);
|
|
2903
2903
|
}
|
|
2904
2904
|
}
|
|
2905
2905
|
}, Zd = ["id"], Jd = { key: 1 }, Qd = ["onUpdate:modelValue", "aria-labelledby", "type"], Xd = ["onUpdate:modelValue", "aria-labelledby"];
|
|
2906
|
-
function eu(e, t, n,
|
|
2906
|
+
function eu(e, t, n, i, a, r) {
|
|
2907
2907
|
const s = F("KTextArea"), o = F("KInput"), l = F("KButton");
|
|
2908
2908
|
return e.schema ? (u(), g("div", {
|
|
2909
2909
|
key: 0,
|
|
@@ -3065,12 +3065,12 @@ const tu = /* @__PURE__ */ Y(Wd, [["render", eu], ["__scopeId", "data-v-27efd618
|
|
|
3065
3065
|
},
|
|
3066
3066
|
emits: ["modelUpdated"],
|
|
3067
3067
|
setup(e, { expose: t, emit: n }) {
|
|
3068
|
-
const
|
|
3068
|
+
const i = e, a = n, r = Le(i), { getFieldID: s, value: o, clearValidationErrors: l } = ye.useAbstractFields({
|
|
3069
3069
|
model: r.model,
|
|
3070
|
-
schema:
|
|
3071
|
-
formOptions:
|
|
3070
|
+
schema: i.schema,
|
|
3071
|
+
formOptions: i.formOptions,
|
|
3072
3072
|
emitModelUpdated: (d) => {
|
|
3073
|
-
|
|
3073
|
+
a("modelUpdated", d.value, d.model);
|
|
3074
3074
|
}
|
|
3075
3075
|
});
|
|
3076
3076
|
return t({
|
|
@@ -3100,7 +3100,7 @@ function Cn(e) {
|
|
|
3100
3100
|
return Qe(e, ru);
|
|
3101
3101
|
}
|
|
3102
3102
|
const ou = { class: "wrapper" }, su = ["disabled"], lu = ["id", "checked", "disabled", "onChange", "name"], du = ["disabled"], uu = { class: "info" }, cu = { class: "dropList" }, mu = ["id", "checked", "disabled", "onChange", "name"];
|
|
3103
|
-
function fu(e, t, n,
|
|
3103
|
+
function fu(e, t, n, i, a, r) {
|
|
3104
3104
|
const s = kn("attributes");
|
|
3105
3105
|
return de((u(), g("div", ou, [
|
|
3106
3106
|
e.schema.listBox ? (u(), g("div", {
|
|
@@ -3132,14 +3132,14 @@ function fu(e, t, n, a, i, r) {
|
|
|
3132
3132
|
disabled: e.disabled || null
|
|
3133
3133
|
}, [
|
|
3134
3134
|
f("div", {
|
|
3135
|
-
class: W(["mainRow", { expanded:
|
|
3135
|
+
class: W(["mainRow", { expanded: a.comboExpanded }]),
|
|
3136
3136
|
onClick: t[0] || (t[0] = (...o) => r.onExpandCombo && r.onExpandCombo(...o))
|
|
3137
3137
|
}, [
|
|
3138
3138
|
f("div", uu, $(r.selectedCount) + " selected", 1),
|
|
3139
3139
|
t[1] || (t[1] = f("div", { class: "arrow" }, null, -1))
|
|
3140
3140
|
], 2),
|
|
3141
3141
|
f("div", cu, [
|
|
3142
|
-
|
|
3142
|
+
a.comboExpanded ? (u(!0), g(K, { key: 0 }, J(r.items, (o) => (u(), g("div", {
|
|
3143
3143
|
class: W(["list-row", { "is-checked": r.isItemChecked(o) }])
|
|
3144
3144
|
}, [
|
|
3145
3145
|
f("label", null, [
|
|
@@ -3245,10 +3245,10 @@ const hu = {
|
|
|
3245
3245
|
var t, n;
|
|
3246
3246
|
this.value || (this.value = {});
|
|
3247
3247
|
const e = ((n = this.model) == null ? void 0 : n[(t = this.schema) == null ? void 0 : t.model]) ?? {};
|
|
3248
|
-
Object.keys(e).forEach((
|
|
3248
|
+
Object.keys(e).forEach((i) => {
|
|
3249
3249
|
this.pairs.push({
|
|
3250
|
-
key:
|
|
3251
|
-
value: e[
|
|
3250
|
+
key: i,
|
|
3251
|
+
value: e[i]
|
|
3252
3252
|
});
|
|
3253
3253
|
});
|
|
3254
3254
|
},
|
|
@@ -3273,10 +3273,10 @@ const hu = {
|
|
|
3273
3273
|
}
|
|
3274
3274
|
}
|
|
3275
3275
|
}, vu = { class: "key-value-pairs-editor" }, bu = { class: "pair-item-cell" }, yu = ["data-testid", "placeholder", "value", "onInput"], _u = { class: "pair-item-cell" }, wu = ["data-testid", "placeholder", "value", "onInput"];
|
|
3276
|
-
function Mu(e, t, n,
|
|
3276
|
+
function Mu(e, t, n, i, a, r) {
|
|
3277
3277
|
const s = F("TrashIcon"), o = F("KButton");
|
|
3278
3278
|
return u(), g("div", vu, [
|
|
3279
|
-
(u(!0), g(K, null, J(
|
|
3279
|
+
(u(!0), g(K, null, J(a.pairs, (l, d) => (u(), g("div", {
|
|
3280
3280
|
key: d,
|
|
3281
3281
|
class: "pair-item"
|
|
3282
3282
|
}, [
|
|
@@ -3368,7 +3368,7 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3368
3368
|
}
|
|
3369
3369
|
},
|
|
3370
3370
|
setup(e) {
|
|
3371
|
-
const t = e, n = Le(t), { getFieldID:
|
|
3371
|
+
const t = e, n = Le(t), { getFieldID: i, value: a } = ye.useAbstractFields({
|
|
3372
3372
|
model: n.model,
|
|
3373
3373
|
schema: t.schema,
|
|
3374
3374
|
formOptions: t.formOptions
|
|
@@ -3379,10 +3379,10 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3379
3379
|
class: W(["field-label", e.schema.fieldClasses])
|
|
3380
3380
|
}, [
|
|
3381
3381
|
C(o, {
|
|
3382
|
-
id: w(
|
|
3382
|
+
id: w(i)(e.schema)
|
|
3383
3383
|
}, {
|
|
3384
3384
|
default: I(() => [
|
|
3385
|
-
te($(w(
|
|
3385
|
+
te($(w(a)), 1)
|
|
3386
3386
|
]),
|
|
3387
3387
|
_: 1
|
|
3388
3388
|
}, 8, ["id"])
|
|
@@ -3429,12 +3429,12 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3429
3429
|
},
|
|
3430
3430
|
emits: ["modelUpdated"],
|
|
3431
3431
|
setup(e, { expose: t, emit: n }) {
|
|
3432
|
-
const
|
|
3432
|
+
const i = e, a = n, r = ki(i, "model"), { getLabelId: s, getFieldID: o, clearValidationErrors: l, value: d } = ye.useAbstractFields({
|
|
3433
3433
|
model: r,
|
|
3434
|
-
schema:
|
|
3435
|
-
formOptions:
|
|
3434
|
+
schema: i.schema,
|
|
3435
|
+
formOptions: i.formOptions,
|
|
3436
3436
|
emitModelUpdated: (m) => {
|
|
3437
|
-
|
|
3437
|
+
a("modelUpdated", m.value, m.model);
|
|
3438
3438
|
}
|
|
3439
3439
|
});
|
|
3440
3440
|
t({
|
|
@@ -3442,7 +3442,7 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3442
3442
|
});
|
|
3443
3443
|
const h = L(() => {
|
|
3444
3444
|
var m, p;
|
|
3445
|
-
return
|
|
3445
|
+
return i.schema.values ? i.schema.values : (p = (m = i.schema.elements) == null ? void 0 : m.one_of) != null && p.length ? i.schema.elements.one_of.map((E) => ({ label: String(E), value: String(E) })) : [];
|
|
3446
3446
|
});
|
|
3447
3447
|
return (m, p) => {
|
|
3448
3448
|
const E = F("KMultiselect");
|
|
@@ -3484,16 +3484,16 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3484
3484
|
this.fieldModel = { ...this.model };
|
|
3485
3485
|
return;
|
|
3486
3486
|
}
|
|
3487
|
-
const n = this.schema.fields[e].fields,
|
|
3488
|
-
|
|
3487
|
+
const n = this.schema.fields[e].fields, i = this.schema.fields[t].fields;
|
|
3488
|
+
i && i.forEach((a) => this.updateModel("", a.model)), n && n.forEach((a) => this.updateModel(this.fieldModel[a.model], a.model));
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
3491
|
},
|
|
3492
3492
|
async created() {
|
|
3493
3493
|
await this.$nextTick(), this.schema.fields.forEach((e, t) => {
|
|
3494
3494
|
e.fields && e.fields.forEach((n) => {
|
|
3495
|
-
var
|
|
3496
|
-
this.model[n.model] && (this.checkedGroup = t, this.fieldSchema.push(n.model), this.scope = (
|
|
3495
|
+
var i;
|
|
3496
|
+
this.model[n.model] && (this.checkedGroup = t, this.fieldSchema.push(n.model), this.scope = (i = n.label) == null ? void 0 : i.toLowerCase());
|
|
3497
3497
|
});
|
|
3498
3498
|
}), this.checkedGroup === null && (this.checkedGroup = 0);
|
|
3499
3499
|
},
|
|
@@ -3506,7 +3506,7 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3506
3506
|
__name: "FieldSelectionGroup",
|
|
3507
3507
|
setup(e) {
|
|
3508
3508
|
const { t } = ge("en-us", ve);
|
|
3509
|
-
return (n,
|
|
3509
|
+
return (n, i) => (u(), g("div", Ou, [
|
|
3510
3510
|
(u(), A(ie(n.$props.disabled ? "k-tooltip" : "div"), {
|
|
3511
3511
|
"max-width": "300",
|
|
3512
3512
|
text: w(t)("general.disable_global_radio", { scope: n.scope })
|
|
@@ -3514,15 +3514,15 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3514
3514
|
default: I(() => [
|
|
3515
3515
|
f("div", Au, [
|
|
3516
3516
|
f("div", Eu, [
|
|
3517
|
-
(u(!0), g(K, null, J(n.schema.fields, (
|
|
3517
|
+
(u(!0), g(K, null, J(n.schema.fields, (a, r) => (u(), g("div", {
|
|
3518
3518
|
key: r,
|
|
3519
3519
|
class: W(["option-group", { "radio-disabled": n.$props.disabled }])
|
|
3520
3520
|
}, [
|
|
3521
3521
|
f("label", {
|
|
3522
|
-
class: W(["k-label", `${
|
|
3522
|
+
class: W(["k-label", `${a.label}-check`])
|
|
3523
3523
|
}, [
|
|
3524
3524
|
de(f("input", {
|
|
3525
|
-
"onUpdate:modelValue":
|
|
3525
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => n.checkedGroup = s),
|
|
3526
3526
|
class: "k-input",
|
|
3527
3527
|
disabled: n.$props.disabled,
|
|
3528
3528
|
type: "radio",
|
|
@@ -3530,8 +3530,8 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3530
3530
|
}, null, 8, Fu), [
|
|
3531
3531
|
[Ui, n.checkedGroup]
|
|
3532
3532
|
]),
|
|
3533
|
-
te(" " + $(
|
|
3534
|
-
f("div", ku, $(
|
|
3533
|
+
te(" " + $(a.label) + " ", 1),
|
|
3534
|
+
f("div", ku, $(a.description), 1)
|
|
3535
3535
|
], 2)
|
|
3536
3536
|
], 2))), 128))
|
|
3537
3537
|
])
|
|
@@ -3539,7 +3539,7 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3539
3539
|
]),
|
|
3540
3540
|
_: 1
|
|
3541
3541
|
}, 8, ["text"])),
|
|
3542
|
-
(u(!0), g(K, null, J(n.schema.fields, (
|
|
3542
|
+
(u(!0), g(K, null, J(n.schema.fields, (a, r) => (u(), g("div", {
|
|
3543
3543
|
key: r,
|
|
3544
3544
|
class: "option-group"
|
|
3545
3545
|
}, [
|
|
@@ -3548,12 +3548,12 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3548
3548
|
C(ee, {
|
|
3549
3549
|
model: n.model,
|
|
3550
3550
|
options: { helpAsHtml: !0 },
|
|
3551
|
-
schema: { fields:
|
|
3551
|
+
schema: { fields: a.fields },
|
|
3552
3552
|
onModelUpdated: n.updateModel
|
|
3553
3553
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
3554
3554
|
])
|
|
3555
3555
|
], 512), [
|
|
3556
|
-
[$i,
|
|
3556
|
+
[$i, a.fields && n.checkedGroup === r]
|
|
3557
3557
|
])
|
|
3558
3558
|
]))), 128))
|
|
3559
3559
|
]));
|
|
@@ -3598,14 +3598,14 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3598
3598
|
},
|
|
3599
3599
|
emits: ["modelUpdated"],
|
|
3600
3600
|
setup(e, { expose: t, emit: n }) {
|
|
3601
|
-
const
|
|
3601
|
+
const i = e, a = n, { t: r } = ge("en-us", ve), s = (p) => p != null && i.schema.valueOn ? p === i.schema.valueOn : p, o = (p) => p != null && i.schema.valueOn ? p ? i.schema.valueOn : i.schema.valueOff : p, l = Le(i), { getFieldID: d, value: h, clearValidationErrors: m } = ye.useAbstractFields({
|
|
3602
3602
|
model: l.model,
|
|
3603
|
-
schema:
|
|
3604
|
-
formOptions:
|
|
3603
|
+
schema: i.schema,
|
|
3604
|
+
formOptions: i.formOptions,
|
|
3605
3605
|
formatValueToField: s,
|
|
3606
3606
|
formatValueToModel: o,
|
|
3607
3607
|
emitModelUpdated: (p) => {
|
|
3608
|
-
|
|
3608
|
+
a("modelUpdated", p.value, p.model);
|
|
3609
3609
|
}
|
|
3610
3610
|
});
|
|
3611
3611
|
return t({
|
|
@@ -3668,12 +3668,12 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3668
3668
|
},
|
|
3669
3669
|
emits: ["modelUpdated"],
|
|
3670
3670
|
setup(e, { expose: t, emit: n }) {
|
|
3671
|
-
const
|
|
3671
|
+
const i = e, a = n, r = Le(i), s = ot(he, void 0), { updateModelValue: o, getFieldID: l, clearValidationErrors: d, value: h } = ye.useAbstractFields({
|
|
3672
3672
|
model: r.model,
|
|
3673
|
-
schema:
|
|
3674
|
-
formOptions:
|
|
3673
|
+
schema: i.schema,
|
|
3674
|
+
formOptions: i.formOptions,
|
|
3675
3675
|
emitModelUpdated: (p) => {
|
|
3676
|
-
|
|
3676
|
+
a("modelUpdated", p.value, p.model);
|
|
3677
3677
|
}
|
|
3678
3678
|
});
|
|
3679
3679
|
t({
|
|
@@ -3866,7 +3866,7 @@ const Su = /* @__PURE__ */ Y(gu, [["render", Mu], ["__scopeId", "data-v-70998d5b
|
|
|
3866
3866
|
key: 2,
|
|
3867
3867
|
class: "errors help-block"
|
|
3868
3868
|
}, Xu = ["innerHTML"];
|
|
3869
|
-
function ec(e, t, n,
|
|
3869
|
+
function ec(e, t, n, i, a, r) {
|
|
3870
3870
|
const s = F("KExternalLink"), o = F("KLabel");
|
|
3871
3871
|
return u(), g("div", {
|
|
3872
3872
|
class: W(["form-group", e.getFieldRowClasses(n.field)])
|
|
@@ -3949,13 +3949,13 @@ function ec(e, t, n, a, i, r) {
|
|
|
3949
3949
|
], 2);
|
|
3950
3950
|
}
|
|
3951
3951
|
const Ci = /* @__PURE__ */ Y(Bu, [["render", ec], ["__scopeId", "data-v-172f268b"]]), tc = "12px";
|
|
3952
|
-
var
|
|
3952
|
+
var mt = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(mt || {});
|
|
3953
3953
|
const nc = (e) => {
|
|
3954
3954
|
var t, n;
|
|
3955
|
-
return e.type ===
|
|
3955
|
+
return e.type === mt.REDIS_CE ? "Host/Port" : (t = e.config.sentinel_nodes) != null && t.length ? "Sentinel" : (n = e.config.cluster_nodes) != null && n.length ? "Cluster" : "Host/Port";
|
|
3956
3956
|
}, ic = {
|
|
3957
|
-
[
|
|
3958
|
-
[
|
|
3957
|
+
[mt.REDIS_CE]: "open source",
|
|
3958
|
+
[mt.REDIS_EE]: "enterprise"
|
|
3959
3959
|
}, In = (e) => ic[e] ?? "", ac = { class: "partial-config-card" }, rc = { class: "config-card-row-label" }, oc = { class: "label-text" }, sc = ["data-testid"], lc = ["data-testid"], dc = { key: 1 }, uc = ["data-testid"], cc = ["data-testid"], mc = /* @__PURE__ */ re({
|
|
3960
3960
|
__name: "RedisConfigCard",
|
|
3961
3961
|
props: {
|
|
@@ -3969,7 +3969,7 @@ const nc = (e) => {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
},
|
|
3971
3971
|
setup(e) {
|
|
3972
|
-
const { t, formatUnixTimeStamp: n } = ge("en-us", ve),
|
|
3972
|
+
const { t, formatUnixTimeStamp: n } = ge("en-us", ve), i = {
|
|
3973
3973
|
id: {
|
|
3974
3974
|
order: 1
|
|
3975
3975
|
},
|
|
@@ -3991,17 +3991,17 @@ const nc = (e) => {
|
|
|
3991
3991
|
formatter: n,
|
|
3992
3992
|
order: 3
|
|
3993
3993
|
}
|
|
3994
|
-
},
|
|
3994
|
+
}, a = e, r = (m) => m != null, s = (m, p) => r(p) && ["password", "sentinel_password"].includes(m) ? "password" : "text", { convertKeyToTitle: o } = Pi(), l = L(() => Object.entries(a.configFields).map(([m, p]) => {
|
|
3995
3995
|
var E, N, c, M;
|
|
3996
3996
|
return {
|
|
3997
3997
|
key: m,
|
|
3998
|
-
label: ((E =
|
|
3999
|
-
value: (N =
|
|
4000
|
-
type: ((c =
|
|
4001
|
-
order: ((M =
|
|
3998
|
+
label: ((E = i[m]) == null ? void 0 : E.label) ?? o(m),
|
|
3999
|
+
value: (N = i[m]) != null && N.formatter ? i[m].formatter(p) : p,
|
|
4000
|
+
type: ((c = i[m]) == null ? void 0 : c.type) ?? s(m, p),
|
|
4001
|
+
order: ((M = i[m]) == null ? void 0 : M.order) ?? 100
|
|
4002
4002
|
// attrs: value.attrs,
|
|
4003
4003
|
};
|
|
4004
|
-
}).sort((m, p) => m.order - p.order).filter((m) => m.type !== "hidden")), d = ye.useRedisNonStandardFields(
|
|
4004
|
+
}).sort((m, p) => m.order - p.order).filter((m) => m.type !== "hidden")), d = ye.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), h = L(() => l.value.concat(d));
|
|
4005
4005
|
return (m, p) => {
|
|
4006
4006
|
const E = F("KCopy");
|
|
4007
4007
|
return u(), g("div", ac, [
|
|
@@ -4078,7 +4078,7 @@ const nc = (e) => {
|
|
|
4078
4078
|
},
|
|
4079
4079
|
emits: ["showNewPartialModal"],
|
|
4080
4080
|
setup(e) {
|
|
4081
|
-
const { t } = ge("en-us", ve), n =
|
|
4081
|
+
const { t } = ge("en-us", ve), n = ot(Zr), i = {
|
|
4082
4082
|
konnect: {
|
|
4083
4083
|
getOne: "/v2/control-planes/{controlPlaneId}/core-entities/partials/{id}",
|
|
4084
4084
|
getAll: "/v2/control-planes/{controlPlaneId}/core-entities/partials"
|
|
@@ -4087,25 +4087,25 @@ const nc = (e) => {
|
|
|
4087
4087
|
getOne: "/{workspace}/partials/{id}",
|
|
4088
4088
|
getAll: "/{workspace}/partials"
|
|
4089
4089
|
}
|
|
4090
|
-
},
|
|
4090
|
+
}, a = e, r = ue(null), { getMessageFromError: s } = Ni(), o = ot(Wr), {
|
|
4091
4091
|
debouncedQueryChange: l,
|
|
4092
4092
|
loading: d,
|
|
4093
4093
|
error: h,
|
|
4094
4094
|
loadItems: m,
|
|
4095
4095
|
results: p
|
|
4096
|
-
} = Li(o,
|
|
4096
|
+
} = Li(o, i[o.app].getAll, void 0, {
|
|
4097
4097
|
fetchedItemsKey: "data",
|
|
4098
4098
|
searchKeys: ["id", "name"]
|
|
4099
4099
|
}), E = L(() => h.value ? s(h.value) : ""), N = (U) => {
|
|
4100
|
-
let b = `${o.apiBaseUrl}${
|
|
4100
|
+
let b = `${o.apiBaseUrl}${i[o.app].getOne}`;
|
|
4101
4101
|
return o.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (o == null ? void 0 : o.controlPlaneId) || "") : o.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, o != null && o.workspace ? `/${o.workspace}` : "")), b = b.replace(/{id}/gi, String(U)), b;
|
|
4102
4102
|
}, c = L(() => {
|
|
4103
4103
|
var b;
|
|
4104
4104
|
const U = ((b = p.value) == null ? void 0 : b.map((O) => ({ label: O.id, name: O.name, value: O.id, type: O.type, tag: nc(O) }))) || [];
|
|
4105
|
-
return
|
|
4105
|
+
return a.redisType !== "all" ? U.filter((O) => O.type === a.redisType) : U;
|
|
4106
4106
|
}), { axiosInstance: M } = qi(o == null ? void 0 : o.axiosRequestConfig), T = async (U) => {
|
|
4107
4107
|
if (U) {
|
|
4108
|
-
|
|
4108
|
+
a.updateRedisModel(U);
|
|
4109
4109
|
try {
|
|
4110
4110
|
const b = await M.get(N(U));
|
|
4111
4111
|
if (b.data.config) {
|
|
@@ -4120,7 +4120,7 @@ const nc = (e) => {
|
|
|
4120
4120
|
return $t(() => n == null ? void 0 : n.value, async (U) => {
|
|
4121
4121
|
U && await m();
|
|
4122
4122
|
}), Ut(() => {
|
|
4123
|
-
m(),
|
|
4123
|
+
m(), a.defaultRedisConfigItem && T(a.defaultRedisConfigItem);
|
|
4124
4124
|
}), (U, b) => {
|
|
4125
4125
|
const O = F("KLabel"), k = F("KBadge"), _ = F("KSelect");
|
|
4126
4126
|
return u(), g(K, null, [
|
|
@@ -4195,7 +4195,7 @@ const nc = (e) => {
|
|
|
4195
4195
|
], 64);
|
|
4196
4196
|
};
|
|
4197
4197
|
}
|
|
4198
|
-
}), On = /* @__PURE__ */ Y(_c, [["__scopeId", "data-v-
|
|
4198
|
+
}), On = /* @__PURE__ */ Y(_c, [["__scopeId", "data-v-ec7085df"]]), wc = { key: 0 }, Mc = {
|
|
4199
4199
|
class: "redis-config-radio-group",
|
|
4200
4200
|
"data-testid": "redis-config-radio-group"
|
|
4201
4201
|
}, Sc = {
|
|
@@ -4252,17 +4252,17 @@ const nc = (e) => {
|
|
|
4252
4252
|
},
|
|
4253
4253
|
emits: ["modelUpdated", "partialToggled", "showNewPartialModal", "refreshModel", "validated"],
|
|
4254
4254
|
setup(e, { emit: t }) {
|
|
4255
|
-
const n = e,
|
|
4256
|
-
|
|
4255
|
+
const n = e, i = t, { t: a } = ge("en-us", ve), r = L(() => n.field.pluginType === "custom"), s = ue(!n.isEditing), o = ue(), l = ue({}), d = ue(), h = (c) => z(c.visible) ? c.visible.call(this, n.model, c, this) : X(c.visible) ? !0 : c.visible, m = async (c) => {
|
|
4256
|
+
i("modelUpdated", [{ id: c, path: n.redisPath }], "partials"), d.value = [{ id: c, path: n.redisPath }], o.value = c;
|
|
4257
4257
|
}, p = (c, M) => {
|
|
4258
|
-
l.value = { ...l.value, [M]: c },
|
|
4258
|
+
l.value = { ...l.value, [M]: c }, i("modelUpdated", c, M);
|
|
4259
4259
|
}, E = () => {
|
|
4260
|
-
|
|
4260
|
+
i("refreshModel");
|
|
4261
4261
|
}, N = (c, M, T) => {
|
|
4262
|
-
|
|
4262
|
+
i("validated", c, M, T);
|
|
4263
4263
|
};
|
|
4264
4264
|
return $t(() => s.value, (c) => {
|
|
4265
|
-
c ? d.value &&
|
|
4265
|
+
c ? d.value && i("partialToggled", "redis", { partials: d.value }) : i("partialToggled", "partials", l.value);
|
|
4266
4266
|
}), Ut(() => {
|
|
4267
4267
|
var c, M, T;
|
|
4268
4268
|
if (n.model && (l.value = n.field.fields.reduce((U, b) => (Object.keys(n.model).includes(b.model) && (U[b.model] = n.model[b.model]), U), {})), (T = (M = (c = n == null ? void 0 : n.model) == null ? void 0 : c.partials) == null ? void 0 : M[0]) != null && T.id) {
|
|
@@ -4275,7 +4275,7 @@ const nc = (e) => {
|
|
|
4275
4275
|
r.value ? (u(), g("div", wc, [
|
|
4276
4276
|
C(T, {
|
|
4277
4277
|
"data-testid": "custom-plugin-redis-config-note",
|
|
4278
|
-
message: w(
|
|
4278
|
+
message: w(a)("redis.custom_plugin.alert")
|
|
4279
4279
|
}, null, 8, ["message"]),
|
|
4280
4280
|
C(On, {
|
|
4281
4281
|
"default-redis-config-item": o.value,
|
|
@@ -4288,7 +4288,7 @@ const nc = (e) => {
|
|
|
4288
4288
|
key: 1,
|
|
4289
4289
|
class: "redis-config-card",
|
|
4290
4290
|
"data-testid": "redis-config-card",
|
|
4291
|
-
title: w(
|
|
4291
|
+
title: w(a)("redis.title")
|
|
4292
4292
|
}, {
|
|
4293
4293
|
default: I(() => [
|
|
4294
4294
|
f("div", Mc, [
|
|
@@ -4298,14 +4298,14 @@ const nc = (e) => {
|
|
|
4298
4298
|
card: "",
|
|
4299
4299
|
"card-orientation": "horizontal",
|
|
4300
4300
|
"data-testid": "shared-redis-config-radio",
|
|
4301
|
-
description: w(
|
|
4302
|
-
label: w(
|
|
4301
|
+
description: w(a)("redis.shared_configuration.description"),
|
|
4302
|
+
label: w(a)("redis.shared_configuration.label"),
|
|
4303
4303
|
"selected-value": !0
|
|
4304
4304
|
}, {
|
|
4305
4305
|
default: I(() => [
|
|
4306
4306
|
C(U, { appearance: "success" }, {
|
|
4307
4307
|
default: I(() => [
|
|
4308
|
-
te($(w(
|
|
4308
|
+
te($(w(a)("redis.shared_configuration.badge")), 1)
|
|
4309
4309
|
]),
|
|
4310
4310
|
_: 1
|
|
4311
4311
|
})
|
|
@@ -4318,8 +4318,8 @@ const nc = (e) => {
|
|
|
4318
4318
|
card: "",
|
|
4319
4319
|
"card-orientation": "horizontal",
|
|
4320
4320
|
"data-testid": "dedicated-redis-config-radio",
|
|
4321
|
-
description: w(
|
|
4322
|
-
label: w(
|
|
4321
|
+
description: w(a)("redis.dedicated_configuration.description"),
|
|
4322
|
+
label: w(a)("redis.dedicated_configuration.label"),
|
|
4323
4323
|
"selected-value": !1
|
|
4324
4324
|
}, null, 8, ["modelValue", "description", "label"])
|
|
4325
4325
|
]),
|
|
@@ -4332,7 +4332,7 @@ const nc = (e) => {
|
|
|
4332
4332
|
onShowNewPartialModal: M[3] || (M[3] = (k) => c.$emit("showNewPartialModal"))
|
|
4333
4333
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
|
|
4334
4334
|
])) : (u(), g("div", Tc, [
|
|
4335
|
-
f("div", Cc, $(w(
|
|
4335
|
+
f("div", Cc, $(w(a)("redis.dedicated_configuration.title")), 1),
|
|
4336
4336
|
(u(), A(ie(e.tag), null, {
|
|
4337
4337
|
default: I(() => [
|
|
4338
4338
|
(u(!0), g(K, null, J(e.field.fields, (k) => (u(), g(K, {
|
|
@@ -4479,14 +4479,14 @@ const nc = (e) => {
|
|
|
4479
4479
|
},
|
|
4480
4480
|
// Child field executed validation
|
|
4481
4481
|
onFieldValidated(e, t, n) {
|
|
4482
|
-
this.errors = this.errors.filter((
|
|
4482
|
+
this.errors = this.errors.filter((a) => a.field.fieldName !== n.schema.fieldName), !e && t && t.length > 0 && le(t, (a) => {
|
|
4483
4483
|
this.errors.push({
|
|
4484
4484
|
field: n.schema,
|
|
4485
|
-
error:
|
|
4485
|
+
error: a
|
|
4486
4486
|
});
|
|
4487
4487
|
});
|
|
4488
|
-
const
|
|
4489
|
-
this.$emit("validated",
|
|
4488
|
+
const i = this.errors.length === 0;
|
|
4489
|
+
this.$emit("validated", i, this.errors, this);
|
|
4490
4490
|
},
|
|
4491
4491
|
onRefreshModel() {
|
|
4492
4492
|
this.$emit("refreshModel");
|
|
@@ -4501,12 +4501,12 @@ const nc = (e) => {
|
|
|
4501
4501
|
validate(e = null) {
|
|
4502
4502
|
e === null && (e = B(this.options, "validateAsync", !1)), this.clearValidationErrors();
|
|
4503
4503
|
const t = [], n = [];
|
|
4504
|
-
le(this.$refs.children, (
|
|
4505
|
-
z(
|
|
4504
|
+
le(this.$refs.children, (a) => {
|
|
4505
|
+
z(a.validate) && (t.push(a.$refs.child), n.push(a.$refs.child.validate(!0)));
|
|
4506
4506
|
});
|
|
4507
|
-
const
|
|
4507
|
+
const i = (a) => {
|
|
4508
4508
|
const r = [];
|
|
4509
|
-
le(
|
|
4509
|
+
le(a, (o, l) => {
|
|
4510
4510
|
Array.isArray(o) && o.length > 0 && le(o, (d) => {
|
|
4511
4511
|
r.push({
|
|
4512
4512
|
field: t[l].schema,
|
|
@@ -4517,7 +4517,7 @@ const nc = (e) => {
|
|
|
4517
4517
|
const s = r.length === 0;
|
|
4518
4518
|
return this.$emit("validated", s, r, this), e ? r : s;
|
|
4519
4519
|
};
|
|
4520
|
-
return e ? Promise.all(n).then(
|
|
4520
|
+
return e ? Promise.all(n).then(i) : i(n);
|
|
4521
4521
|
},
|
|
4522
4522
|
// Clear validation errors
|
|
4523
4523
|
clearValidationErrors() {
|
|
@@ -4530,7 +4530,7 @@ const nc = (e) => {
|
|
|
4530
4530
|
key: 0,
|
|
4531
4531
|
class: "vue-form-generator"
|
|
4532
4532
|
}, Fc = { key: 0 };
|
|
4533
|
-
function kc(e, t, n,
|
|
4533
|
+
function kc(e, t, n, i, a, r) {
|
|
4534
4534
|
const s = F("form-redis"), o = F("form-group"), l = F("KCollapse");
|
|
4535
4535
|
return n.schema != null ? (u(), g("div", Ec, [
|
|
4536
4536
|
n.schema.fields ? (u(), A(ie(n.tag), { key: 0 }, {
|
|
@@ -4540,13 +4540,13 @@ function kc(e, t, n, a, i, r) {
|
|
|
4540
4540
|
}, [
|
|
4541
4541
|
d.model === "__redis_partial" && n.enableRedisPartial ? (u(), A(s, {
|
|
4542
4542
|
key: 0,
|
|
4543
|
-
errors:
|
|
4543
|
+
errors: a.errors,
|
|
4544
4544
|
field: d,
|
|
4545
4545
|
"is-editing": n.isEditing,
|
|
4546
4546
|
model: n.model,
|
|
4547
4547
|
options: n.options,
|
|
4548
4548
|
tag: n.tag,
|
|
4549
|
-
vfg:
|
|
4549
|
+
vfg: a.vfg,
|
|
4550
4550
|
onModelUpdated: r.onModelUpdated,
|
|
4551
4551
|
onPartialToggled: r.onPartialToggled,
|
|
4552
4552
|
onShowNewPartialModal: (h) => e.$emit("showNewPartialModal", d.redisType),
|
|
@@ -4555,11 +4555,11 @@ function kc(e, t, n, a, i, r) {
|
|
|
4555
4555
|
key: 1,
|
|
4556
4556
|
ref_for: !0,
|
|
4557
4557
|
ref: "children",
|
|
4558
|
-
errors:
|
|
4558
|
+
errors: a.errors,
|
|
4559
4559
|
field: d,
|
|
4560
4560
|
model: n.model,
|
|
4561
4561
|
options: n.options,
|
|
4562
|
-
vfg:
|
|
4562
|
+
vfg: a.vfg,
|
|
4563
4563
|
onModelUpdated: r.onModelUpdated,
|
|
4564
4564
|
onRefreshModel: r.onRefreshModel,
|
|
4565
4565
|
onValidated: r.onFieldValidated
|
|
@@ -4593,11 +4593,11 @@ function kc(e, t, n, a, i, r) {
|
|
|
4593
4593
|
key: 0,
|
|
4594
4594
|
ref_for: !0,
|
|
4595
4595
|
ref: "children",
|
|
4596
|
-
errors:
|
|
4596
|
+
errors: a.errors,
|
|
4597
4597
|
field: c,
|
|
4598
4598
|
model: n.model,
|
|
4599
4599
|
options: n.options,
|
|
4600
|
-
vfg:
|
|
4600
|
+
vfg: a.vfg,
|
|
4601
4601
|
onModelUpdated: r.onModelUpdated,
|
|
4602
4602
|
onRefreshModel: r.onRefreshModel,
|
|
4603
4603
|
onValidated: r.onFieldValidated
|
|
@@ -4609,10 +4609,10 @@ function kc(e, t, n, a, i, r) {
|
|
|
4609
4609
|
d.collapsible !== !0 && d.collapsible.nestedCollapsible && d.collapsible.nestedCollapsible.fields.length > 0 ? (u(), A(l, {
|
|
4610
4610
|
key: 3,
|
|
4611
4611
|
class: "nested-collapse",
|
|
4612
|
-
"model-value":
|
|
4612
|
+
"model-value": a.collapseStates[`group-${h}-nested`] ?? !0,
|
|
4613
4613
|
"trigger-alignment": "leading",
|
|
4614
|
-
"trigger-label":
|
|
4615
|
-
"onUpdate:modelValue": (c) =>
|
|
4614
|
+
"trigger-label": a.collapseStates[`group-${h}-nested`] ?? !0 ? d.collapsible.nestedCollapsible.triggerLabel.expand : d.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
4615
|
+
"onUpdate:modelValue": (c) => a.collapseStates[`group-${h}-nested`] = c
|
|
4616
4616
|
}, {
|
|
4617
4617
|
default: I(() => [
|
|
4618
4618
|
(u(), A(ie(n.tag), {
|
|
@@ -4624,13 +4624,13 @@ function kc(e, t, n, a, i, r) {
|
|
|
4624
4624
|
}, [
|
|
4625
4625
|
c.model === "__redis_partial" && n.enableRedisPartial ? (u(), A(s, {
|
|
4626
4626
|
key: 0,
|
|
4627
|
-
errors:
|
|
4627
|
+
errors: a.errors,
|
|
4628
4628
|
field: c,
|
|
4629
4629
|
"is-editing": n.isEditing,
|
|
4630
4630
|
model: n.model,
|
|
4631
4631
|
options: n.options,
|
|
4632
4632
|
tag: n.tag,
|
|
4633
|
-
vfg:
|
|
4633
|
+
vfg: a.vfg,
|
|
4634
4634
|
onModelUpdated: r.onModelUpdated,
|
|
4635
4635
|
onPartialToggled: r.onPartialToggled,
|
|
4636
4636
|
onShowNewPartialModal: (M) => e.$emit("showNewPartialModal", c.redisType),
|
|
@@ -4639,11 +4639,11 @@ function kc(e, t, n, a, i, r) {
|
|
|
4639
4639
|
key: 1,
|
|
4640
4640
|
ref_for: !0,
|
|
4641
4641
|
ref: "children",
|
|
4642
|
-
errors:
|
|
4642
|
+
errors: a.errors,
|
|
4643
4643
|
field: c,
|
|
4644
4644
|
model: n.model,
|
|
4645
4645
|
options: n.options,
|
|
4646
|
-
vfg:
|
|
4646
|
+
vfg: a.vfg,
|
|
4647
4647
|
onModelUpdated: r.onModelUpdated,
|
|
4648
4648
|
onRefreshModel: r.onRefreshModel,
|
|
4649
4649
|
onValidated: r.onFieldValidated
|
|
@@ -4679,11 +4679,11 @@ function kc(e, t, n, a, i, r) {
|
|
|
4679
4679
|
key: 0,
|
|
4680
4680
|
ref_for: !0,
|
|
4681
4681
|
ref: "children",
|
|
4682
|
-
errors:
|
|
4682
|
+
errors: a.errors,
|
|
4683
4683
|
field: m,
|
|
4684
4684
|
model: n.model,
|
|
4685
4685
|
options: n.options,
|
|
4686
|
-
vfg:
|
|
4686
|
+
vfg: a.vfg,
|
|
4687
4687
|
onModelUpdated: r.onModelUpdated,
|
|
4688
4688
|
onRefreshModel: r.onRefreshModel,
|
|
4689
4689
|
onValidated: r.onFieldValidated
|
|
@@ -4695,8 +4695,9 @@ function kc(e, t, n, a, i, r) {
|
|
|
4695
4695
|
], 64))), 128))
|
|
4696
4696
|
])) : R("", !0);
|
|
4697
4697
|
}
|
|
4698
|
-
const ee = /* @__PURE__ */ Y(Ac, [["render", kc]]),
|
|
4699
|
-
|
|
4698
|
+
const ee = /* @__PURE__ */ Y(Ac, [["render", kc]]), rt = {
|
|
4699
|
+
openIdConnectJWKDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-client-jwk",
|
|
4700
|
+
openIdConnectClusterNodesDocs: "https://developer.konghq.com/plugins/openid-connect/reference/#schema--config-redis-cluster-nodes",
|
|
4700
4701
|
openIdConfigurationDocs: "https://developer.konghq.com/plugins/openid-connect/reference/",
|
|
4701
4702
|
openIdAuthorizationDocs: "https://developer.konghq.com/plugins/openid-connect/#authorization"
|
|
4702
4703
|
}, An = /* @__PURE__ */ new Set([
|
|
@@ -4766,9 +4767,10 @@ const ee = /* @__PURE__ */ Y(Ac, [["render", kc]]), Ot = {
|
|
|
4766
4767
|
globalFields: null,
|
|
4767
4768
|
commonFieldsSchema: null,
|
|
4768
4769
|
authFieldsSchema: null,
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4770
|
+
openIdConnectJWKLink: rt.openIdConnectJWKDocs,
|
|
4771
|
+
openIdConnectClusterNodesLink: rt.openIdConnectClusterNodesDocs,
|
|
4772
|
+
openIdConfigurationDocs: rt.openIdConfigurationDocs,
|
|
4773
|
+
openIdAuthorizationDocs: rt.openIdAuthorizationDocs,
|
|
4772
4774
|
advancedFieldsSchema: {
|
|
4773
4775
|
fields: []
|
|
4774
4776
|
},
|
|
@@ -4809,45 +4811,45 @@ const ee = /* @__PURE__ */ Y(Ac, [["render", kc]]), Ot = {
|
|
|
4809
4811
|
var e;
|
|
4810
4812
|
if (!this.init) {
|
|
4811
4813
|
this.init = !0, this.globalFields = {
|
|
4812
|
-
fields: this.formSchema.fields.filter((
|
|
4814
|
+
fields: this.formSchema.fields.filter((a) => !a.model.startsWith("config") && a.model !== "tags")
|
|
4813
4815
|
};
|
|
4814
|
-
const t = this.formSchema.fields.reduce((
|
|
4816
|
+
const t = this.formSchema.fields.reduce((a, r) => (a[r.model] = r, a), {});
|
|
4815
4817
|
this.commonFieldsSchema = {
|
|
4816
|
-
fields: Array.from(An).reduce((
|
|
4818
|
+
fields: Array.from(An).reduce((a, r) => (t[r] && a.push(t[r]), a), [])
|
|
4817
4819
|
}, this.authFieldsSchema = {
|
|
4818
|
-
fields: Array.from(En).reduce((
|
|
4820
|
+
fields: Array.from(En).reduce((a, r) => (t[r] && a.push(t[r]), a), [])
|
|
4819
4821
|
};
|
|
4820
|
-
const { redis: n, redisModels:
|
|
4822
|
+
const { redis: n, redisModels: i } = ye.useRedisPartial(this.formSchema);
|
|
4821
4823
|
this.advancedFieldsSchema = {
|
|
4822
4824
|
fields: this.formSchema.fields.filter(
|
|
4823
|
-
(
|
|
4824
|
-
).reduce((
|
|
4825
|
+
(a) => a.model.startsWith("config") && a.model !== "config-auth_methods" && !An.has(a.model) && !En.has(a.model) && (!this.enableRedisPartial || !i.includes(a.model)) || a.model === "tags"
|
|
4826
|
+
).reduce((a, r) => {
|
|
4825
4827
|
var s, o, l, d;
|
|
4826
4828
|
switch (r.model) {
|
|
4827
4829
|
case "config-client_jwk": {
|
|
4828
4830
|
if (Array.isArray((o = (s = r.items) == null ? void 0 : s.schema) == null ? void 0 : o.fields))
|
|
4829
4831
|
for (const h of r.items.schema.fields)
|
|
4830
4832
|
h.label = h.model;
|
|
4831
|
-
|
|
4833
|
+
a.push({
|
|
4832
4834
|
...r,
|
|
4833
|
-
link: this.
|
|
4835
|
+
link: this.openIdConnectJWKLink,
|
|
4834
4836
|
newElementButtonLabel: "+ Add Client JWK",
|
|
4835
4837
|
...Array.isArray((d = (l = r.items) == null ? void 0 : l.schema) == null ? void 0 : d.fields) && r.items.schema.fields.map((h) => ({ ...h, label: h.model }))
|
|
4836
4838
|
});
|
|
4837
4839
|
break;
|
|
4838
4840
|
}
|
|
4839
4841
|
case "config-session_redis_cluster_nodes": {
|
|
4840
|
-
|
|
4842
|
+
a.push({
|
|
4841
4843
|
...r,
|
|
4842
|
-
link: this.
|
|
4844
|
+
link: this.openIdConnectClusterNodesLink,
|
|
4843
4845
|
newElementButtonLabel: "+ Add Cluster Node"
|
|
4844
4846
|
});
|
|
4845
4847
|
break;
|
|
4846
4848
|
}
|
|
4847
4849
|
default:
|
|
4848
|
-
|
|
4850
|
+
a.push(r);
|
|
4849
4851
|
}
|
|
4850
|
-
return
|
|
4852
|
+
return a;
|
|
4851
4853
|
}, [])
|
|
4852
4854
|
}, this.enableRedisPartial && this.advancedFieldsSchema.fields.unshift(n), this.sessionManagement = this.formModel["config-auth_methods"].includes("session"), this.authMethods = [
|
|
4853
4855
|
{
|
|
@@ -4899,8 +4901,8 @@ const ee = /* @__PURE__ */ Y(Ac, [["render", kc]]), Ot = {
|
|
|
4899
4901
|
prop: this.formModel["config-auth_methods"].includes("refresh_token")
|
|
4900
4902
|
}
|
|
4901
4903
|
];
|
|
4902
|
-
for (const
|
|
4903
|
-
for (const r of
|
|
4904
|
+
for (const a of [this.commonFieldsSchema, this.authFieldsSchema, this.advancedFieldsSchema])
|
|
4905
|
+
for (const r of a.fields) {
|
|
4904
4906
|
const s = (e = t[r.model]) == null ? void 0 : e.help;
|
|
4905
4907
|
r.help === void 0 && typeof s == "string" && (r.help = s);
|
|
4906
4908
|
}
|
|
@@ -4908,8 +4910,8 @@ const ee = /* @__PURE__ */ Y(Ac, [["render", kc]]), Ot = {
|
|
|
4908
4910
|
},
|
|
4909
4911
|
getAuthMethodsValue(e, t) {
|
|
4910
4912
|
const n = [];
|
|
4911
|
-
for (let
|
|
4912
|
-
this.authMethods[
|
|
4913
|
+
for (let i = 0; i < this.authMethods.length; i++)
|
|
4914
|
+
this.authMethods[i].prop && this.authMethods[i].value !== e && n.push(this.authMethods[i].value);
|
|
4913
4915
|
return this.sessionManagement && e && n.push("session"), t && (e ? n.push(e) : n.push("session")), n;
|
|
4914
4916
|
},
|
|
4915
4917
|
handleUpdate(e, t) {
|
|
@@ -4917,7 +4919,7 @@ const ee = /* @__PURE__ */ Y(Ac, [["render", kc]]), Ot = {
|
|
|
4917
4919
|
}
|
|
4918
4920
|
}
|
|
4919
4921
|
}, $c = { class: "general-settings" }, Vc = { class: "link-wrapper" }, jc = { class: "auth-method-container" }, Rc = { class: "general-settings" }, Pc = { class: "link-wrapper" }, Nc = { class: "general-settings" }, Lc = { class: "link-wrapper" };
|
|
4920
|
-
function qc(e, t, n,
|
|
4922
|
+
function qc(e, t, n, i, a, r) {
|
|
4921
4923
|
const s = F("VueFormGenerator"), o = F("KExternalLink"), l = F("KLabel"), d = F("KCheckbox"), h = F("KInputSwitch"), m = F("KTabs");
|
|
4922
4924
|
return u(), g("div", null, [
|
|
4923
4925
|
n.formModel.id && n.isEditing || !n.isEditing ? (u(), A(s, {
|
|
@@ -4925,14 +4927,14 @@ function qc(e, t, n, a, i, r) {
|
|
|
4925
4927
|
class: "global-fields",
|
|
4926
4928
|
model: n.formModel,
|
|
4927
4929
|
options: n.formOptions,
|
|
4928
|
-
schema:
|
|
4930
|
+
schema: a.globalFields,
|
|
4929
4931
|
onModelUpdated: n.onModelUpdated
|
|
4930
4932
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
4931
|
-
C(m, { tabs:
|
|
4933
|
+
C(m, { tabs: a.tabs }, {
|
|
4932
4934
|
common: I(() => [
|
|
4933
4935
|
f("div", $c, [
|
|
4934
4936
|
f("div", Vc, [
|
|
4935
|
-
C(o, { href:
|
|
4937
|
+
C(o, { href: a.openIdConfigurationDocs }, {
|
|
4936
4938
|
default: I(() => t[2] || (t[2] = [
|
|
4937
4939
|
f("span", { class: "section-header" }, "Common Configuration Settings", -1)
|
|
4938
4940
|
])),
|
|
@@ -4944,7 +4946,7 @@ function qc(e, t, n, a, i, r) {
|
|
|
4944
4946
|
key: 0,
|
|
4945
4947
|
model: n.formModel,
|
|
4946
4948
|
options: n.formOptions,
|
|
4947
|
-
schema:
|
|
4949
|
+
schema: a.commonFieldsSchema,
|
|
4948
4950
|
onModelUpdated: n.onModelUpdated
|
|
4949
4951
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
4950
4952
|
C(l, null, {
|
|
@@ -4954,7 +4956,7 @@ function qc(e, t, n, a, i, r) {
|
|
|
4954
4956
|
_: 1
|
|
4955
4957
|
}),
|
|
4956
4958
|
f("div", jc, [
|
|
4957
|
-
(u(!0), g(K, null, J(
|
|
4959
|
+
(u(!0), g(K, null, J(a.authMethods, (p) => (u(), g("div", {
|
|
4958
4960
|
key: p.value,
|
|
4959
4961
|
class: "auth-method"
|
|
4960
4962
|
}, [
|
|
@@ -4971,8 +4973,8 @@ function qc(e, t, n, a, i, r) {
|
|
|
4971
4973
|
]))), 128))
|
|
4972
4974
|
]),
|
|
4973
4975
|
C(h, {
|
|
4974
|
-
modelValue:
|
|
4975
|
-
"onUpdate:modelValue": t[0] || (t[0] = (p) =>
|
|
4976
|
+
modelValue: a.sessionManagement,
|
|
4977
|
+
"onUpdate:modelValue": t[0] || (t[0] = (p) => a.sessionManagement = p),
|
|
4976
4978
|
label: "Enable Session Management",
|
|
4977
4979
|
onChange: r.handleUpdate
|
|
4978
4980
|
}, null, 8, ["modelValue", "onChange"])
|
|
@@ -4981,7 +4983,7 @@ function qc(e, t, n, a, i, r) {
|
|
|
4981
4983
|
authorization: I(() => [
|
|
4982
4984
|
f("div", Rc, [
|
|
4983
4985
|
f("div", Pc, [
|
|
4984
|
-
C(o, { href:
|
|
4986
|
+
C(o, { href: a.openIdAuthorizationDocs }, {
|
|
4985
4987
|
default: I(() => t[5] || (t[5] = [
|
|
4986
4988
|
f("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
4987
4989
|
])),
|
|
@@ -4993,7 +4995,7 @@ function qc(e, t, n, a, i, r) {
|
|
|
4993
4995
|
key: 0,
|
|
4994
4996
|
model: n.formModel,
|
|
4995
4997
|
options: n.formOptions,
|
|
4996
|
-
schema:
|
|
4998
|
+
schema: a.authFieldsSchema,
|
|
4997
4999
|
onModelUpdated: n.onModelUpdated
|
|
4998
5000
|
}, {
|
|
4999
5001
|
"autofill-provider": I((p) => [
|
|
@@ -5006,7 +5008,7 @@ function qc(e, t, n, a, i, r) {
|
|
|
5006
5008
|
advanced: I(() => [
|
|
5007
5009
|
f("div", Nc, [
|
|
5008
5010
|
f("div", Lc, [
|
|
5009
|
-
C(o, { href:
|
|
5011
|
+
C(o, { href: e.openIdConnectLink }, {
|
|
5010
5012
|
default: I(() => t[7] || (t[7] = [
|
|
5011
5013
|
f("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
|
|
5012
5014
|
])),
|
|
@@ -5020,7 +5022,7 @@ function qc(e, t, n, a, i, r) {
|
|
|
5020
5022
|
"is-editing": n.isEditing,
|
|
5021
5023
|
model: n.formModel,
|
|
5022
5024
|
options: n.formOptions,
|
|
5023
|
-
schema:
|
|
5025
|
+
schema: a.advancedFieldsSchema,
|
|
5024
5026
|
onModelUpdated: n.onModelUpdated,
|
|
5025
5027
|
onPartialToggled: n.onPartialToggled,
|
|
5026
5028
|
onShowNewPartialModal: t[1] || (t[1] = () => n.showNewPartialModal(n.formSchema._supported_redis_partial_type))
|
|
@@ -5031,7 +5033,7 @@ function qc(e, t, n, a, i, r) {
|
|
|
5031
5033
|
}, 8, ["tabs"])
|
|
5032
5034
|
]);
|
|
5033
5035
|
}
|
|
5034
|
-
const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-
|
|
5036
|
+
const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-9575ff1b"]]), Dc = /* @__PURE__ */ re({
|
|
5035
5037
|
__name: "PostFunction",
|
|
5036
5038
|
props: {
|
|
5037
5039
|
formModel: {
|
|
@@ -5058,15 +5060,15 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5058
5060
|
},
|
|
5059
5061
|
setup(e) {
|
|
5060
5062
|
var s;
|
|
5061
|
-
it(he, (s =
|
|
5062
|
-
const { t, te: n } = ge("en-us", ve),
|
|
5063
|
-
const o =
|
|
5063
|
+
it(he, (s = ft()) == null ? void 0 : s[xe]);
|
|
5064
|
+
const { t, te: n } = ge("en-us", ve), i = e, a = L(() => i.formModel.id && i.isEditing || !i.isEditing), r = L(() => {
|
|
5065
|
+
const o = i.formSchema;
|
|
5064
5066
|
return o.fields.map((l) => {
|
|
5065
5067
|
const d = `post-function.${l.model}`;
|
|
5066
5068
|
return l.hint = n(`${d}.hint`) && t(`${d}.hint`) || l.hint, l.help = n(`${d}.help`) && t(`${d}.help`) || l.help, l.newElementButtonLabel = n(`${d}.newElementButtonLabel`) && t(`${d}.newElementButtonLabel`) || l.newElementButtonLabel, l.model !== "tags" && (l.valueType === "array" || l.type === "array") && (l.type = "array", l.valueArrayType = "array", l.itemContainerComponent = "FieldArrayItem", l.fieldClasses = "post-function-array-item-container", l.fieldItemsClasses = "post-function-array-item", l.inputAttributes = { ...l.inputAttributes, type: "textarea" }), l;
|
|
5067
5069
|
}), o;
|
|
5068
5070
|
});
|
|
5069
|
-
return (o, l) =>
|
|
5071
|
+
return (o, l) => a.value ? (u(), A(ee, {
|
|
5070
5072
|
key: 0,
|
|
5071
5073
|
model: e.formModel,
|
|
5072
5074
|
options: e.formOptions,
|
|
@@ -5101,15 +5103,15 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5101
5103
|
},
|
|
5102
5104
|
setup(e) {
|
|
5103
5105
|
var s;
|
|
5104
|
-
it(he, (s =
|
|
5105
|
-
const { t, te: n } = ge("en-us", ve),
|
|
5106
|
-
const o =
|
|
5106
|
+
it(he, (s = ft()) == null ? void 0 : s[xe]);
|
|
5107
|
+
const { t, te: n } = ge("en-us", ve), i = e, a = L(() => i.formModel.id && i.isEditing || !i.isEditing), r = L(() => {
|
|
5108
|
+
const o = i.formSchema;
|
|
5107
5109
|
return o.fields.map((l) => {
|
|
5108
5110
|
const d = `exit-transformer.${l.model}`;
|
|
5109
5111
|
return l.hint = n(`${d}.hint`) && t(`${d}.hint`) || l.hint, l.help = n(`${d}.help`) && t(`${d}.help`) || l.help, l.newElementButtonLabel = n(`${d}.newElementButtonLabel`) && t(`${d}.newElementButtonLabel`) || l.newElementButtonLabel, l.model !== "tags" && (l.valueType === "array" || l.type === "array") && (l.type = "array", l.valueArrayType = "array", l.itemContainerComponent = "FieldArrayItem", l.fieldClasses = "exit-transformer-array-item-container", l.fieldItemsClasses = "exit-transformer-array-item", l.inputAttributes = { ...l.inputAttributes, type: "textarea" }), l;
|
|
5110
5112
|
}), o;
|
|
5111
5113
|
});
|
|
5112
|
-
return (o, l) =>
|
|
5114
|
+
return (o, l) => a.value ? (u(), A(ee, {
|
|
5113
5115
|
key: 0,
|
|
5114
5116
|
model: e.formModel,
|
|
5115
5117
|
options: e.formOptions,
|
|
@@ -5232,8 +5234,8 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5232
5234
|
},
|
|
5233
5235
|
setup(e) {
|
|
5234
5236
|
var k;
|
|
5235
|
-
it(he, (k =
|
|
5236
|
-
const t = e, n = ue("zeroSsl"),
|
|
5237
|
+
it(he, (k = ft()) == null ? void 0 : k[xe]);
|
|
5238
|
+
const t = e, n = ue("zeroSsl"), i = ue("shm"), a = L(() => {
|
|
5237
5239
|
var v;
|
|
5238
5240
|
const _ = {};
|
|
5239
5241
|
if ((v = t.formSchema) != null && v.fields)
|
|
@@ -5244,7 +5246,7 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5244
5246
|
var v;
|
|
5245
5247
|
const _ = we(Hc);
|
|
5246
5248
|
for (const j of _.fields) {
|
|
5247
|
-
const x = (v =
|
|
5249
|
+
const x = (v = a.value[j.model]) == null ? void 0 : v.help;
|
|
5248
5250
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
5249
5251
|
}
|
|
5250
5252
|
return _;
|
|
@@ -5252,7 +5254,7 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5252
5254
|
var v;
|
|
5253
5255
|
const _ = we(xc);
|
|
5254
5256
|
for (const j of _.fields) {
|
|
5255
|
-
const x = (v =
|
|
5257
|
+
const x = (v = a.value[j.model]) == null ? void 0 : v.help;
|
|
5256
5258
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
5257
5259
|
}
|
|
5258
5260
|
return _;
|
|
@@ -5260,7 +5262,7 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5260
5262
|
var v;
|
|
5261
5263
|
const _ = we(Gc);
|
|
5262
5264
|
for (const j of _.fields) {
|
|
5263
|
-
const x = (v =
|
|
5265
|
+
const x = (v = a.value[j.model]) == null ? void 0 : v.help;
|
|
5264
5266
|
j.help === void 0 && typeof x == "string" && (j.help = x);
|
|
5265
5267
|
}
|
|
5266
5268
|
return _;
|
|
@@ -5316,7 +5318,7 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5316
5318
|
const b = (_) => {
|
|
5317
5319
|
n.value = _.value, (_.value === "zeroSsl" || _.value === "other") && (_.value === "zeroSsl" ? t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90" : t.formModel["config-api_uri"] = "https://acme.example.com/", t.formModel["config-tos_accepted"] = !1), _.value === "letsEncrypt" && (t.formModel["config-api_uri"] = "https://acme-v02.api.letsencrypt.org/directory", t.formModel["config-eab_hmac_key"] = "", t.formModel["config-eab_kid"] = ""), t.onModelUpdated();
|
|
5318
5320
|
}, O = (_, v) => {
|
|
5319
|
-
v === "config-storage" && (
|
|
5321
|
+
v === "config-storage" && (i.value = _), t.onModelUpdated();
|
|
5320
5322
|
};
|
|
5321
5323
|
return (_, v) => {
|
|
5322
5324
|
const j = F("KSelect"), x = F("KTabs");
|
|
@@ -5382,28 +5384,28 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5382
5384
|
onModelUpdated: O
|
|
5383
5385
|
}, null, 8, ["model", "options", "schema"])) : R("", !0),
|
|
5384
5386
|
f("div", Qc, [
|
|
5385
|
-
|
|
5387
|
+
i.value === "consul" ? (u(), A(ee, {
|
|
5386
5388
|
key: 0,
|
|
5387
5389
|
model: e.formModel,
|
|
5388
5390
|
options: e.formOptions,
|
|
5389
5391
|
schema: m.value,
|
|
5390
5392
|
onModelUpdated: e.onModelUpdated
|
|
5391
5393
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5392
|
-
|
|
5394
|
+
i.value === "redis" ? (u(), A(ee, {
|
|
5393
5395
|
key: 1,
|
|
5394
5396
|
model: e.formModel,
|
|
5395
5397
|
options: e.formOptions,
|
|
5396
5398
|
schema: p.value,
|
|
5397
5399
|
onModelUpdated: e.onModelUpdated
|
|
5398
5400
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5399
|
-
|
|
5401
|
+
i.value === "shm" ? (u(), A(ee, {
|
|
5400
5402
|
key: 2,
|
|
5401
5403
|
model: e.formModel,
|
|
5402
5404
|
options: e.formOptions,
|
|
5403
5405
|
schema: E.value,
|
|
5404
5406
|
onModelUpdated: e.onModelUpdated
|
|
5405
5407
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : R("", !0),
|
|
5406
|
-
|
|
5408
|
+
i.value === "vault" ? (u(), A(ee, {
|
|
5407
5409
|
key: 3,
|
|
5408
5410
|
model: e.formModel,
|
|
5409
5411
|
options: e.formOptions,
|
|
@@ -5453,7 +5455,7 @@ const Kc = /* @__PURE__ */ Y(Uc, [["render", qc], ["__scopeId", "data-v-cca342d8
|
|
|
5453
5455
|
},
|
|
5454
5456
|
setup(e) {
|
|
5455
5457
|
var x;
|
|
5456
|
-
it(he, (x =
|
|
5458
|
+
it(he, (x = ft()) == null ? void 0 : x[xe]);
|
|
5457
5459
|
const t = {
|
|
5458
5460
|
fixed: [
|
|
5459
5461
|
{
|
|
@@ -5514,19 +5516,19 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5514
5516
|
"selectionGroup",
|
|
5515
5517
|
"enabled",
|
|
5516
5518
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((y) => `config-${y}`)
|
|
5517
|
-
]),
|
|
5519
|
+
]), i = (y) => y === void 0 ? !1 : n.has(y), { t: a } = ge("en-us", ve), r = e, s = L(() => {
|
|
5518
5520
|
var V, P, D;
|
|
5519
5521
|
const y = (P = (V = r.formSchema) == null ? void 0 : V.fields) == null ? void 0 : P.find((se) => se.type === "selectionGroup" && se.model === "selectionGroup");
|
|
5520
5522
|
return { fields: [(D = r.formSchema) == null ? void 0 : D.fields.find((se) => se.model === "enabled"), y].filter(Boolean) };
|
|
5521
5523
|
}), o = L(() => {
|
|
5522
5524
|
var se, Ue;
|
|
5523
|
-
const y = ((Ue = (se = r.formSchema) == null ? void 0 : se.fields) == null ? void 0 : Ue.filter((ae) => !
|
|
5525
|
+
const y = ((Ue = (se = r.formSchema) == null ? void 0 : se.fields) == null ? void 0 : Ue.filter((ae) => !i(ae.model))) ?? [], S = [], V = [], P = [];
|
|
5524
5526
|
let D = !1;
|
|
5525
5527
|
for (const ae of y) {
|
|
5526
5528
|
const De = ae.model;
|
|
5527
5529
|
if (De !== void 0) {
|
|
5528
5530
|
if (De.startsWith("config-redis-")) {
|
|
5529
|
-
(ae.model === "config-redis-cluster_addresses" || ae.model === "config-redis-sentinel_addresses") && (ae.inputAttributes.help =
|
|
5531
|
+
(ae.model === "config-redis-cluster_addresses" || ae.model === "config-redis-sentinel_addresses") && (ae.inputAttributes.help = a("rla.redis.address_example")), V.push(ae);
|
|
5530
5532
|
continue;
|
|
5531
5533
|
}
|
|
5532
5534
|
D ? P.push(ae) : S.push(ae), ae.model === "config-strategy" && (D = !0);
|
|
@@ -5547,7 +5549,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5547
5549
|
() => {
|
|
5548
5550
|
var y, S, V;
|
|
5549
5551
|
return (((V = (S = (y = r.formSchema) == null ? void 0 : y.fields) == null ? void 0 : S.find((P) => P.model === "config-identifier")) == null ? void 0 : V.values) ?? []).map((P) => ({
|
|
5550
|
-
label:
|
|
5552
|
+
label: a(`rla.identifiers.options.${P}`),
|
|
5551
5553
|
value: P
|
|
5552
5554
|
}));
|
|
5553
5555
|
}
|
|
@@ -5640,11 +5642,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5640
5642
|
required: ""
|
|
5641
5643
|
}, {
|
|
5642
5644
|
default: I(() => [
|
|
5643
|
-
te($(w(
|
|
5645
|
+
te($(w(a)("rla.request_limits.title")), 1)
|
|
5644
5646
|
]),
|
|
5645
5647
|
_: 1
|
|
5646
5648
|
}),
|
|
5647
|
-
f("div", im, $(w(
|
|
5649
|
+
f("div", im, $(w(a)("rla.request_limits.subtitle")), 1)
|
|
5648
5650
|
]),
|
|
5649
5651
|
default: I(() => [
|
|
5650
5652
|
f("div", am, [
|
|
@@ -5658,11 +5660,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5658
5660
|
}, {
|
|
5659
5661
|
tooltip: I(() => [
|
|
5660
5662
|
f("div", {
|
|
5661
|
-
innerHTML: w(
|
|
5663
|
+
innerHTML: w(a)("rla.window_type.help")
|
|
5662
5664
|
}, null, 8, om)
|
|
5663
5665
|
]),
|
|
5664
5666
|
default: I(() => [
|
|
5665
|
-
te($(w(
|
|
5667
|
+
te($(w(a)("rla.window_type.label")) + " ", 1)
|
|
5666
5668
|
]),
|
|
5667
5669
|
_: 1
|
|
5668
5670
|
}),
|
|
@@ -5675,7 +5677,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5675
5677
|
"onUpdate:modelValue": O
|
|
5676
5678
|
}, {
|
|
5677
5679
|
default: I(() => [
|
|
5678
|
-
te($(w(
|
|
5680
|
+
te($(w(a)(`rla.window_type.options.${q}`)), 1)
|
|
5679
5681
|
]),
|
|
5680
5682
|
_: 2
|
|
5681
5683
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
@@ -5689,7 +5691,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5689
5691
|
for: `rla-form-request-limits-item-${ne}-legend`
|
|
5690
5692
|
}, {
|
|
5691
5693
|
default: I(() => [
|
|
5692
|
-
te($(w(
|
|
5694
|
+
te($(w(a)("rla.request_limits.label_index", { index: ne + 1 })), 1)
|
|
5693
5695
|
]),
|
|
5694
5696
|
_: 2
|
|
5695
5697
|
}, 1032, ["for"]),
|
|
@@ -5700,18 +5702,18 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5700
5702
|
}, [
|
|
5701
5703
|
C(D, {
|
|
5702
5704
|
"model-value": q.limit && q.limit.toString(),
|
|
5703
|
-
placeholder: w(
|
|
5705
|
+
placeholder: w(a)("rla.request_limits.request_number"),
|
|
5704
5706
|
type: "number",
|
|
5705
|
-
"onUpdate:modelValue": (
|
|
5707
|
+
"onUpdate:modelValue": (Mt) => k(ne, Number.parseInt(Mt))
|
|
5706
5708
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5707
|
-
f("div", null, $(w(
|
|
5709
|
+
f("div", null, $(w(a)("rla.request_limits.interval_determiner")), 1),
|
|
5708
5710
|
C(D, {
|
|
5709
5711
|
"model-value": q.windowSize && q.windowSize.toString(),
|
|
5710
|
-
placeholder: w(
|
|
5712
|
+
placeholder: w(a)("rla.request_limits.time_interval"),
|
|
5711
5713
|
type: "number",
|
|
5712
|
-
"onUpdate:modelValue": (
|
|
5714
|
+
"onUpdate:modelValue": (Mt) => _(ne, Number.parseInt(Mt))
|
|
5713
5715
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
5714
|
-
f("div", null, $(w(
|
|
5716
|
+
f("div", null, $(w(a)("rla.request_limits.seconds")), 1)
|
|
5715
5717
|
], 8, um),
|
|
5716
5718
|
f("div", cm, [
|
|
5717
5719
|
C(se, {
|
|
@@ -5738,7 +5740,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5738
5740
|
]))), 128))
|
|
5739
5741
|
]),
|
|
5740
5742
|
l.value.length > 0 ? (u(), g("div", mm, [
|
|
5741
|
-
f("div", null, $(w(
|
|
5743
|
+
f("div", null, $(w(a)("rla.start_with_a_use_case")), 1),
|
|
5742
5744
|
f("div", fm, [
|
|
5743
5745
|
(u(!0), g(K, null, J(l.value, (q, ne) => (u(), A(ae, {
|
|
5744
5746
|
key: `use-case-${ne}`,
|
|
@@ -5747,8 +5749,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5747
5749
|
content: I(() => [
|
|
5748
5750
|
f("div", null, $(q.description), 1),
|
|
5749
5751
|
S[10] || (S[10] = f("br", null, null, -1)),
|
|
5750
|
-
f("div", null, $(w(
|
|
5751
|
-
f("div", null, $(w(
|
|
5752
|
+
f("div", null, $(w(a)("rla.request_limits.label")) + ": " + $(q.config.limit), 1),
|
|
5753
|
+
f("div", null, $(w(a)("rla.request_limits.time_interval")) + ": " + $(q.config.window_size), 1)
|
|
5752
5754
|
]),
|
|
5753
5755
|
default: I(() => [
|
|
5754
5756
|
C(Ue, {
|
|
@@ -5775,7 +5777,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5775
5777
|
"onUpdate:modelValue": S[1] || (S[1] = (q) => M.value = q),
|
|
5776
5778
|
class: "rla-form-identifiers",
|
|
5777
5779
|
items: h.value,
|
|
5778
|
-
label: w(
|
|
5780
|
+
label: w(a)("rla.identifiers.label"),
|
|
5779
5781
|
"label-attributes": {
|
|
5780
5782
|
tooltipAttributes: {
|
|
5781
5783
|
maxWidth: "300",
|
|
@@ -5795,7 +5797,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5795
5797
|
f("div", null, [
|
|
5796
5798
|
C(V, {
|
|
5797
5799
|
for: "rla-form-error-legend",
|
|
5798
|
-
info: w(
|
|
5800
|
+
info: w(a)("rla.error_message.help"),
|
|
5799
5801
|
required: "",
|
|
5800
5802
|
"tooltip-attributes": {
|
|
5801
5803
|
maxWidth: "300",
|
|
@@ -5803,7 +5805,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5803
5805
|
}
|
|
5804
5806
|
}, {
|
|
5805
5807
|
default: I(() => [
|
|
5806
|
-
te($(w(
|
|
5808
|
+
te($(w(a)("rla.error_message.label")), 1)
|
|
5807
5809
|
]),
|
|
5808
5810
|
_: 1
|
|
5809
5811
|
}, 8, ["info"]),
|
|
@@ -5811,14 +5813,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5811
5813
|
C(D, {
|
|
5812
5814
|
class: "input-error-code",
|
|
5813
5815
|
"model-value": T.value && T.value.toString(),
|
|
5814
|
-
placeholder: w(
|
|
5816
|
+
placeholder: w(a)("rla.error_message.code_placeholder"),
|
|
5815
5817
|
type: "number",
|
|
5816
5818
|
"onUpdate:modelValue": S[3] || (S[3] = (q) => y.onModelUpdated(Number.parseInt(q), "config-error_code"))
|
|
5817
5819
|
}, null, 8, ["model-value", "placeholder"]),
|
|
5818
5820
|
S[11] || (S[11] = f("div", null, ":", -1)),
|
|
5819
5821
|
C(D, {
|
|
5820
5822
|
"model-value": U.value,
|
|
5821
|
-
placeholder: w(
|
|
5823
|
+
placeholder: w(a)("rla.error_message.message_placeholder"),
|
|
5822
5824
|
"onUpdate:modelValue": S[4] || (S[4] = (q) => y.onModelUpdated(q, "config-error_message"))
|
|
5823
5825
|
}, null, 8, ["model-value", "placeholder"])
|
|
5824
5826
|
])
|
|
@@ -5827,7 +5829,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5827
5829
|
C(Oi, {
|
|
5828
5830
|
modelValue: p.value,
|
|
5829
5831
|
"onUpdate:modelValue": S[9] || (S[9] = (q) => p.value = q),
|
|
5830
|
-
"trigger-label": w(
|
|
5832
|
+
"trigger-label": w(a)("rla.view_advanced_fields")
|
|
5831
5833
|
}, {
|
|
5832
5834
|
default: I(() => [
|
|
5833
5835
|
C(ee, {
|
|
@@ -5839,7 +5841,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
5839
5841
|
y.formModel["config-strategy"] === "redis" ? (u(), A(ie(y.enableRedisPartial ? "div" : "KCard"), {
|
|
5840
5842
|
key: 0,
|
|
5841
5843
|
class: "rla-form-redis-card",
|
|
5842
|
-
title: w(
|
|
5844
|
+
title: w(a)("rla.redis.title")
|
|
5843
5845
|
}, {
|
|
5844
5846
|
default: I(() => [
|
|
5845
5847
|
C(ee, {
|
|
@@ -5894,7 +5896,7 @@ export {
|
|
|
5894
5896
|
xe as AUTOFILL_SLOT_NAME,
|
|
5895
5897
|
$e as FORMS_API_KEY,
|
|
5896
5898
|
Wr as FORMS_CONFIG,
|
|
5897
|
-
|
|
5899
|
+
mt as PartialType,
|
|
5898
5900
|
Zr as REDIS_PARTIAL_FETCHER_KEY,
|
|
5899
5901
|
Mm as REDIS_PARTIAL_INFO,
|
|
5900
5902
|
ee as VueFormGenerator,
|