@kong-ui-public/forms 4.23.32 → 4.23.33-pr.3042.b98e4535d.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 +303 -303
- package/dist/forms.umd.js +3 -3
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigSelect.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/forms.es.js
CHANGED
|
@@ -39,9 +39,9 @@ var pr = Object.prototype, gr = pr.toString;
|
|
|
39
39
|
function yr(e) {
|
|
40
40
|
return gr.call(e);
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var br = "[object Null]", vr = "[object Undefined]", $i = ot ? ot.toStringTag : void 0;
|
|
43
43
|
function rt(e) {
|
|
44
|
-
return e == null ? e === void 0 ?
|
|
44
|
+
return e == null ? e === void 0 ? vr : br : $i && $i in Object(e) ? hr(e) : yr(e);
|
|
45
45
|
}
|
|
46
46
|
function st(e) {
|
|
47
47
|
return e != null && typeof e == "object";
|
|
@@ -156,16 +156,16 @@ function we(e, t) {
|
|
|
156
156
|
var n = lt(e) ? Va : gs;
|
|
157
157
|
return n(e, ys(t));
|
|
158
158
|
}
|
|
159
|
-
var
|
|
160
|
-
function
|
|
161
|
-
return typeof e == "symbol" || st(e) && rt(e) ==
|
|
159
|
+
var bs = "[object Symbol]";
|
|
160
|
+
function bn(e) {
|
|
161
|
+
return typeof e == "symbol" || st(e) && rt(e) == bs;
|
|
162
162
|
}
|
|
163
|
-
var
|
|
163
|
+
var vs = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, _s = /^\w*$/;
|
|
164
164
|
function Ts(e, t) {
|
|
165
165
|
if (lt(e))
|
|
166
166
|
return !1;
|
|
167
167
|
var n = typeof e;
|
|
168
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
168
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || bn(e) ? !0 : _s.test(e) || !vs.test(e) || t != null && e in Object(t);
|
|
169
169
|
}
|
|
170
170
|
var jn = je["__core-js_shared__"], qi = function() {
|
|
171
171
|
var e = /[^.]+$/.exec(jn && jn.keys && jn.keys.IE_PROTO || "");
|
|
@@ -200,11 +200,11 @@ function ks(e) {
|
|
|
200
200
|
function Ns(e, t) {
|
|
201
201
|
return e == null ? void 0 : e[t];
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function bt(e, t) {
|
|
204
204
|
var n = Ns(e, t);
|
|
205
205
|
return ks(n) ? n : void 0;
|
|
206
206
|
}
|
|
207
|
-
var Xt =
|
|
207
|
+
var Xt = bt(Object, "create");
|
|
208
208
|
function Us() {
|
|
209
209
|
this.__data__ = Xt ? Xt(null) : {}, this.size = 0;
|
|
210
210
|
}
|
|
@@ -246,12 +246,12 @@ mt.prototype.set = Bs;
|
|
|
246
246
|
function zs() {
|
|
247
247
|
this.__data__ = [], this.size = 0;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function vn(e, t) {
|
|
250
250
|
return e === t || e !== e && t !== t;
|
|
251
251
|
}
|
|
252
252
|
function _n(e, t) {
|
|
253
253
|
for (var n = e.length; n--; )
|
|
254
|
-
if (
|
|
254
|
+
if (vn(e[n][0], t))
|
|
255
255
|
return n;
|
|
256
256
|
return -1;
|
|
257
257
|
}
|
|
@@ -286,7 +286,7 @@ et.prototype.delete = Ys;
|
|
|
286
286
|
et.prototype.get = Ws;
|
|
287
287
|
et.prototype.has = Zs;
|
|
288
288
|
et.prototype.set = Xs;
|
|
289
|
-
var Jt =
|
|
289
|
+
var Jt = bt(je, "Map");
|
|
290
290
|
function Js() {
|
|
291
291
|
this.size = 0, this.__data__ = {
|
|
292
292
|
hash: new mt(),
|
|
@@ -366,7 +366,7 @@ function Za(e) {
|
|
|
366
366
|
return e;
|
|
367
367
|
if (lt(e))
|
|
368
368
|
return ul(e, Za) + "";
|
|
369
|
-
if (
|
|
369
|
+
if (bn(e))
|
|
370
370
|
return zi ? zi.call(e) : "";
|
|
371
371
|
var t = e + "";
|
|
372
372
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -378,7 +378,7 @@ function cl(e, t) {
|
|
|
378
378
|
return lt(e) ? e : Ts(e, t) ? [e] : dl(Xa(e));
|
|
379
379
|
}
|
|
380
380
|
function ml(e) {
|
|
381
|
-
if (typeof e == "string" ||
|
|
381
|
+
if (typeof e == "string" || bn(e))
|
|
382
382
|
return e;
|
|
383
383
|
var t = e + "";
|
|
384
384
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -407,8 +407,8 @@ const {
|
|
|
407
407
|
entries: Ja,
|
|
408
408
|
setPrototypeOf: Hi,
|
|
409
409
|
isFrozen: yl,
|
|
410
|
-
getPrototypeOf:
|
|
411
|
-
getOwnPropertyDescriptor:
|
|
410
|
+
getPrototypeOf: bl,
|
|
411
|
+
getOwnPropertyDescriptor: vl
|
|
412
412
|
} = Object;
|
|
413
413
|
let {
|
|
414
414
|
freeze: Ie,
|
|
@@ -507,14 +507,14 @@ function Il(e) {
|
|
|
507
507
|
}
|
|
508
508
|
function wt(e, t) {
|
|
509
509
|
for (; e !== null; ) {
|
|
510
|
-
const i =
|
|
510
|
+
const i = vl(e, t);
|
|
511
511
|
if (i) {
|
|
512
512
|
if (i.get)
|
|
513
513
|
return ye(i.get);
|
|
514
514
|
if (typeof i.value == "function")
|
|
515
515
|
return ye(i.value);
|
|
516
516
|
}
|
|
517
|
-
e =
|
|
517
|
+
e = bl(e);
|
|
518
518
|
}
|
|
519
519
|
function n() {
|
|
520
520
|
return null;
|
|
@@ -607,7 +607,7 @@ function to() {
|
|
|
607
607
|
HTMLFormElement: f,
|
|
608
608
|
DOMParser: p,
|
|
609
609
|
trustedTypes: S
|
|
610
|
-
} = e, F = d.prototype,
|
|
610
|
+
} = e, F = d.prototype, b = wt(F, "cloneNode"), U = wt(F, "remove"), k = wt(F, "nextSibling"), H = wt(F, "childNodes"), P = wt(F, "parentNode");
|
|
611
611
|
if (typeof s == "function") {
|
|
612
612
|
const K = n.createElement("template");
|
|
613
613
|
K.content && K.content.ownerDocument && (n = K.content.ownerDocument);
|
|
@@ -617,7 +617,7 @@ function to() {
|
|
|
617
617
|
implementation: E,
|
|
618
618
|
createNodeIterator: T,
|
|
619
619
|
createDocumentFragment: I,
|
|
620
|
-
getElementsByTagName:
|
|
620
|
+
getElementsByTagName: N
|
|
621
621
|
} = n, {
|
|
622
622
|
importNode: m
|
|
623
623
|
} = i;
|
|
@@ -627,7 +627,7 @@ function to() {
|
|
|
627
627
|
MUSTACHE_EXPR: A,
|
|
628
628
|
ERB_EXPR: L,
|
|
629
629
|
TMPLIT_EXPR: G,
|
|
630
|
-
DATA_ATTR:
|
|
630
|
+
DATA_ATTR: ve,
|
|
631
631
|
ARIA_ATTR: Ye,
|
|
632
632
|
IS_SCRIPT_OR_DATA: pe,
|
|
633
633
|
ATTR_WHITESPACE: We,
|
|
@@ -673,7 +673,7 @@ function to() {
|
|
|
673
673
|
value: null
|
|
674
674
|
}
|
|
675
675
|
}));
|
|
676
|
-
let pi = !0, wn = !0, gi = !1, yi = !0, dt = !1, Dt = !0, ut = !1, Mn = !1, In = !1,
|
|
676
|
+
let pi = !0, wn = !0, gi = !1, yi = !0, dt = !1, Dt = !0, ut = !1, Mn = !1, In = !1, vt = !1, an = !1, on = !1, bi = !0, vi = !1;
|
|
677
677
|
const _i = "user-content-";
|
|
678
678
|
let On = !0, Pt = !1, _t = {}, ze = null;
|
|
679
679
|
const Cn = z({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -687,7 +687,7 @@ function to() {
|
|
|
687
687
|
const xo = z({}, ["title", "style", "font", "a", "script"]);
|
|
688
688
|
let $t = null;
|
|
689
689
|
const Ko = ["application/xhtml+xml", "text/html"], qo = "text/html";
|
|
690
|
-
let
|
|
690
|
+
let be = null, St = null;
|
|
691
691
|
const Bo = n.createElement("form"), Ai = function(r) {
|
|
692
692
|
return r instanceof RegExp || r instanceof Function;
|
|
693
693
|
}, Ln = function() {
|
|
@@ -695,9 +695,9 @@ function to() {
|
|
|
695
695
|
if (St && St === r)
|
|
696
696
|
return;
|
|
697
697
|
(!r || typeof r != "object") && (r = {}), r = Re(r), $t = // eslint-disable-next-line unicorn/prefer-includes
|
|
698
|
-
Ko.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? qo : r.PARSER_MEDIA_TYPE,
|
|
699
|
-
const
|
|
700
|
-
if (le = At(null), re(
|
|
698
|
+
Ko.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? qo : r.PARSER_MEDIA_TYPE, be = $t === "application/xhtml+xml" ? xn : zt, x = re(r, "ALLOWED_TAGS") && Ae(r.ALLOWED_TAGS) ? z({}, r.ALLOWED_TAGS, be) : ie, se = re(r, "ALLOWED_ATTR") && Ae(r.ALLOWED_ATTR) ? z({}, r.ALLOWED_ATTR, be) : hi, kn = re(r, "ALLOWED_NAMESPACES") && Ae(r.ALLOWED_NAMESPACES) ? z({}, r.ALLOWED_NAMESPACES, xn) : jo, Rn = re(r, "ADD_URI_SAFE_ATTR") && Ae(r.ADD_URI_SAFE_ATTR) ? z(Re(Ei), r.ADD_URI_SAFE_ATTR, be) : Ei, Ti = re(r, "ADD_DATA_URI_TAGS") && Ae(r.ADD_DATA_URI_TAGS) ? z(Re(Si), r.ADD_DATA_URI_TAGS, be) : Si, ze = re(r, "FORBID_CONTENTS") && Ae(r.FORBID_CONTENTS) ? z({}, r.FORBID_CONTENTS, be) : Cn, Lt = re(r, "FORBID_TAGS") && Ae(r.FORBID_TAGS) ? z({}, r.FORBID_TAGS, be) : Re({}), nn = re(r, "FORBID_ATTR") && Ae(r.FORBID_ATTR) ? z({}, r.FORBID_ATTR, be) : Re({}), _t = re(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? Re(r.USE_PROFILES) : r.USE_PROFILES : !1, pi = r.ALLOW_ARIA_ATTR !== !1, wn = r.ALLOW_DATA_ATTR !== !1, gi = r.ALLOW_UNKNOWN_PROTOCOLS || !1, yi = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, dt = r.SAFE_FOR_TEMPLATES || !1, Dt = r.SAFE_FOR_XML !== !1, ut = r.WHOLE_DOCUMENT || !1, vt = r.RETURN_DOM || !1, an = r.RETURN_DOM_FRAGMENT || !1, on = r.RETURN_TRUSTED_TYPE || !1, In = r.FORCE_BODY || !1, bi = r.SANITIZE_DOM !== !1, vi = r.SANITIZE_NAMED_PROPS || !1, On = r.KEEP_CONTENT !== !1, Pt = r.IN_PLACE || !1, tn = Ol(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : Qa, Tt = typeof r.NAMESPACE == "string" ? r.NAMESPACE : He, Nn = re(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Re(r.MATHML_TEXT_INTEGRATION_POINTS) : z({}, ["mi", "mo", "mn", "ms", "mtext"]), Un = re(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? Re(r.HTML_INTEGRATION_POINTS) : z({}, ["annotation-xml"]);
|
|
699
|
+
const v = re(r, "CUSTOM_ELEMENT_HANDLING") && r.CUSTOM_ELEMENT_HANDLING && typeof r.CUSTOM_ELEMENT_HANDLING == "object" ? Re(r.CUSTOM_ELEMENT_HANDLING) : At(null);
|
|
700
|
+
if (le = At(null), re(v, "tagNameCheck") && Ai(v.tagNameCheck) && (le.tagNameCheck = v.tagNameCheck), re(v, "attributeNameCheck") && Ai(v.attributeNameCheck) && (le.attributeNameCheck = v.attributeNameCheck), re(v, "allowCustomizedBuiltInElements") && typeof v.allowCustomizedBuiltInElements == "boolean" && (le.allowCustomizedBuiltInElements = v.allowCustomizedBuiltInElements), dt && (wn = !1), an && (vt = !0), _t && (x = z({}, Qi), se = At(null), _t.html === !0 && (z(x, Ji), z(se, ea)), _t.svg === !0 && (z(x, Kn), z(se, zn), z(se, dn)), _t.svgFilters === !0 && (z(x, qn), z(se, zn), z(se, dn)), _t.mathMl === !0 && (z(x, Bn), z(se, ta), z(se, dn))), nt.tagCheck = null, nt.attributeCheck = null, re(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? nt.tagCheck = r.ADD_TAGS : Ae(r.ADD_TAGS) && (x === ie && (x = Re(x)), z(x, r.ADD_TAGS, be))), re(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? nt.attributeCheck = r.ADD_ATTR : Ae(r.ADD_ATTR) && (se === hi && (se = Re(se)), z(se, r.ADD_ATTR, be))), re(r, "ADD_URI_SAFE_ATTR") && Ae(r.ADD_URI_SAFE_ATTR) && z(Rn, r.ADD_URI_SAFE_ATTR, be), re(r, "FORBID_CONTENTS") && Ae(r.FORBID_CONTENTS) && (ze === Cn && (ze = Re(ze)), z(ze, r.FORBID_CONTENTS, be)), re(r, "ADD_FORBID_CONTENTS") && Ae(r.ADD_FORBID_CONTENTS) && (ze === Cn && (ze = Re(ze)), z(ze, r.ADD_FORBID_CONTENTS, be)), On && (x["#text"] = !0), ut && z(x, ["html", "head", "body"]), x.table && (z(x, ["tbody"]), delete Lt.tbody), r.TRUSTED_TYPES_POLICY) {
|
|
701
701
|
if (typeof r.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
702
702
|
throw ln('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
703
703
|
if (typeof r.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -707,13 +707,13 @@ function to() {
|
|
|
707
707
|
w === void 0 && (w = jl(S, a)), w !== null && typeof C == "string" && (C = w.createHTML(""));
|
|
708
708
|
Ie && Ie(r), St = r;
|
|
709
709
|
}, wi = z({}, [...Kn, ...qn, ...Cl]), Mi = z({}, [...Bn, ...Rl]), zo = function(r) {
|
|
710
|
-
let
|
|
711
|
-
(!
|
|
710
|
+
let v = P(r);
|
|
711
|
+
(!v || !v.tagName) && (v = {
|
|
712
712
|
namespaceURI: Tt,
|
|
713
713
|
tagName: "template"
|
|
714
714
|
});
|
|
715
|
-
const D = zt(r.tagName), te = zt(
|
|
716
|
-
return kn[r.namespaceURI] ? r.namespaceURI === sn ?
|
|
715
|
+
const D = zt(r.tagName), te = zt(v.tagName);
|
|
716
|
+
return kn[r.namespaceURI] ? r.namespaceURI === sn ? v.namespaceURI === He ? D === "svg" : v.namespaceURI === rn ? D === "svg" && (te === "annotation-xml" || Nn[te]) : !!wi[D] : r.namespaceURI === rn ? v.namespaceURI === He ? D === "math" : v.namespaceURI === sn ? D === "math" && Un[te] : !!Mi[D] : r.namespaceURI === He ? v.namespaceURI === sn && !Un[te] || v.namespaceURI === rn && !Nn[te] ? !1 : !Mi[D] && (xo[D] || !wi[D]) : !!($t === "application/xhtml+xml" && kn[r.namespaceURI]) : !1;
|
|
717
717
|
}, xe = function(r) {
|
|
718
718
|
xt(t.removed, {
|
|
719
719
|
element: r
|
|
@@ -723,31 +723,31 @@ function to() {
|
|
|
723
723
|
} catch {
|
|
724
724
|
U(r);
|
|
725
725
|
}
|
|
726
|
-
}, ct = function(r,
|
|
726
|
+
}, ct = function(r, v) {
|
|
727
727
|
try {
|
|
728
728
|
xt(t.removed, {
|
|
729
|
-
attribute:
|
|
730
|
-
from:
|
|
729
|
+
attribute: v.getAttributeNode(r),
|
|
730
|
+
from: v
|
|
731
731
|
});
|
|
732
732
|
} catch {
|
|
733
733
|
xt(t.removed, {
|
|
734
734
|
attribute: null,
|
|
735
|
-
from:
|
|
735
|
+
from: v
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
|
-
if (
|
|
739
|
-
if (
|
|
738
|
+
if (v.removeAttribute(r), r === "is")
|
|
739
|
+
if (vt || an)
|
|
740
740
|
try {
|
|
741
|
-
xe(
|
|
741
|
+
xe(v);
|
|
742
742
|
} catch {
|
|
743
743
|
}
|
|
744
744
|
else
|
|
745
745
|
try {
|
|
746
|
-
|
|
746
|
+
v.setAttribute(r, "");
|
|
747
747
|
} catch {
|
|
748
748
|
}
|
|
749
749
|
}, Ii = function(r) {
|
|
750
|
-
let
|
|
750
|
+
let v = null, D = null;
|
|
751
751
|
if (In)
|
|
752
752
|
r = "<remove></remove>" + r;
|
|
753
753
|
else {
|
|
@@ -758,18 +758,18 @@ function to() {
|
|
|
758
758
|
const te = w ? w.createHTML(r) : r;
|
|
759
759
|
if (Tt === He)
|
|
760
760
|
try {
|
|
761
|
-
|
|
761
|
+
v = new p().parseFromString(te, $t);
|
|
762
762
|
} catch {
|
|
763
763
|
}
|
|
764
|
-
if (!
|
|
765
|
-
|
|
764
|
+
if (!v || !v.documentElement) {
|
|
765
|
+
v = E.createDocument(Tt, "template", null);
|
|
766
766
|
try {
|
|
767
|
-
|
|
767
|
+
v.documentElement.innerHTML = Fn ? C : te;
|
|
768
768
|
} catch {
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
const Ee =
|
|
772
|
-
return r && D && Ee.insertBefore(n.createTextNode(D), Ee.childNodes[0] || null), Tt === He ?
|
|
771
|
+
const Ee = v.body || v.documentElement;
|
|
772
|
+
return r && D && Ee.insertBefore(n.createTextNode(D), Ee.childNodes[0] || null), Tt === He ? N.call(v, ut ? "html" : "body")[0] : ut ? v.documentElement : Ee;
|
|
773
773
|
}, Oi = function(r) {
|
|
774
774
|
return T.call(
|
|
775
775
|
r.ownerDocument || r,
|
|
@@ -783,16 +783,16 @@ function to() {
|
|
|
783
783
|
}, Pn = function(r) {
|
|
784
784
|
return typeof l == "function" && r instanceof l;
|
|
785
785
|
};
|
|
786
|
-
function Ze(K, r,
|
|
786
|
+
function Ze(K, r, v) {
|
|
787
787
|
jt(K, (D) => {
|
|
788
|
-
D.call(t, r,
|
|
788
|
+
D.call(t, r, v, St);
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
791
|
const Ci = function(r) {
|
|
792
|
-
let
|
|
792
|
+
let v = null;
|
|
793
793
|
if (Ze(g.beforeSanitizeElements, r, null), Dn(r))
|
|
794
794
|
return xe(r), !0;
|
|
795
|
-
const D =
|
|
795
|
+
const D = be(r.nodeName);
|
|
796
796
|
if (Ze(g.uponSanitizeElement, r, {
|
|
797
797
|
tagName: D,
|
|
798
798
|
allowedTags: x
|
|
@@ -806,36 +806,36 @@ function to() {
|
|
|
806
806
|
if (Ee && te) {
|
|
807
807
|
const ge = Ee.length;
|
|
808
808
|
for (let Oe = ge - 1; Oe >= 0; --Oe) {
|
|
809
|
-
const Le =
|
|
810
|
-
te.insertBefore(Le,
|
|
809
|
+
const Le = b(Ee[Oe], !0);
|
|
810
|
+
te.insertBefore(Le, k(r));
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
return xe(r), !0;
|
|
815
815
|
}
|
|
816
|
-
return r instanceof d && !zo(r) || (D === "noscript" || D === "noembed" || D === "noframes") && Te(/<\/no(script|embed|frames)/i, r.innerHTML) ? (xe(r), !0) : (dt && r.nodeType === qt.text && (
|
|
817
|
-
|
|
818
|
-
}), r.textContent !==
|
|
816
|
+
return r instanceof d && !zo(r) || (D === "noscript" || D === "noembed" || D === "noframes") && Te(/<\/no(script|embed|frames)/i, r.innerHTML) ? (xe(r), !0) : (dt && r.nodeType === qt.text && (v = r.textContent, jt([A, L, G], (te) => {
|
|
817
|
+
v = Et(v, te, " ");
|
|
818
|
+
}), r.textContent !== v && (xt(t.removed, {
|
|
819
819
|
element: r.cloneNode()
|
|
820
|
-
}), r.textContent =
|
|
821
|
-
}, Ri = function(r,
|
|
822
|
-
if (nn[
|
|
820
|
+
}), r.textContent = v)), Ze(g.afterSanitizeElements, r, null), !1);
|
|
821
|
+
}, Ri = function(r, v, D) {
|
|
822
|
+
if (nn[v] || bi && (v === "id" || v === "name") && (D in n || D in Bo))
|
|
823
823
|
return !1;
|
|
824
|
-
if (!(wn && !nn[
|
|
825
|
-
if (!(pi && Te(Ye,
|
|
826
|
-
if (!(nt.attributeCheck instanceof Function && nt.attributeCheck(
|
|
827
|
-
if (!se[
|
|
824
|
+
if (!(wn && !nn[v] && Te(ve, v))) {
|
|
825
|
+
if (!(pi && Te(Ye, v))) {
|
|
826
|
+
if (!(nt.attributeCheck instanceof Function && nt.attributeCheck(v, r))) {
|
|
827
|
+
if (!se[v] || nn[v]) {
|
|
828
828
|
if (
|
|
829
829
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
830
830
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
831
831
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
832
|
-
!(Fi(r) && (le.tagNameCheck instanceof RegExp && Te(le.tagNameCheck, r) || le.tagNameCheck instanceof Function && le.tagNameCheck(r)) && (le.attributeNameCheck instanceof RegExp && Te(le.attributeNameCheck,
|
|
832
|
+
!(Fi(r) && (le.tagNameCheck instanceof RegExp && Te(le.tagNameCheck, r) || le.tagNameCheck instanceof Function && le.tagNameCheck(r)) && (le.attributeNameCheck instanceof RegExp && Te(le.attributeNameCheck, v) || le.attributeNameCheck instanceof Function && le.attributeNameCheck(v, r)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
833
833
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
834
|
-
|
|
834
|
+
v === "is" && le.allowCustomizedBuiltInElements && (le.tagNameCheck instanceof RegExp && Te(le.tagNameCheck, D) || le.tagNameCheck instanceof Function && le.tagNameCheck(D)))
|
|
835
835
|
) return !1;
|
|
836
|
-
} else if (!Rn[
|
|
836
|
+
} else if (!Rn[v]) {
|
|
837
837
|
if (!Te(tn, Et(D, We, ""))) {
|
|
838
|
-
if (!((
|
|
838
|
+
if (!((v === "src" || v === "xlink:href" || v === "href") && r !== "script" && Wi(D, "data:") === 0 && Ti[r])) {
|
|
839
839
|
if (!(gi && !Te(pe, Et(D, We, "")))) {
|
|
840
840
|
if (D)
|
|
841
841
|
return !1;
|
|
@@ -852,9 +852,9 @@ function to() {
|
|
|
852
852
|
}, ki = function(r) {
|
|
853
853
|
Ze(g.beforeSanitizeAttributes, r, null);
|
|
854
854
|
const {
|
|
855
|
-
attributes:
|
|
855
|
+
attributes: v
|
|
856
856
|
} = r;
|
|
857
|
-
if (!
|
|
857
|
+
if (!v || Dn(r))
|
|
858
858
|
return;
|
|
859
859
|
const D = {
|
|
860
860
|
attrName: "",
|
|
@@ -863,15 +863,15 @@ function to() {
|
|
|
863
863
|
allowedAttributes: se,
|
|
864
864
|
forceKeepAttr: void 0
|
|
865
865
|
};
|
|
866
|
-
let te =
|
|
866
|
+
let te = v.length;
|
|
867
867
|
for (; te--; ) {
|
|
868
|
-
const Ee =
|
|
868
|
+
const Ee = v[te], {
|
|
869
869
|
name: ge,
|
|
870
870
|
namespaceURI: Oe,
|
|
871
871
|
value: Le
|
|
872
|
-
} = Ee, Ke =
|
|
872
|
+
} = Ee, Ke = be(ge), $n = Le;
|
|
873
873
|
let _e = ge === "value" ? $n : Sl($n);
|
|
874
|
-
if (D.attrName = Ke, D.attrValue = _e, D.keepAttr = !0, D.forceKeepAttr = void 0, Ze(g.uponSanitizeAttribute, r, D), _e = D.attrValue,
|
|
874
|
+
if (D.attrName = Ke, D.attrValue = _e, D.keepAttr = !0, D.forceKeepAttr = void 0, Ze(g.uponSanitizeAttribute, r, D), _e = D.attrValue, vi && (Ke === "id" || Ke === "name") && Wi(_e, _i) !== 0 && (ct(ge, r), _e = _i + _e), Dt && Te(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, _e)) {
|
|
875
875
|
ct(ge, r);
|
|
876
876
|
continue;
|
|
877
877
|
}
|
|
@@ -892,7 +892,7 @@ function to() {
|
|
|
892
892
|
dt && jt([A, L, G], (Li) => {
|
|
893
893
|
_e = Et(_e, Li, " ");
|
|
894
894
|
});
|
|
895
|
-
const Ui =
|
|
895
|
+
const Ui = be(r.nodeName);
|
|
896
896
|
if (!Ri(Ui, Ke, _e)) {
|
|
897
897
|
ct(ge, r);
|
|
898
898
|
continue;
|
|
@@ -917,14 +917,14 @@ function to() {
|
|
|
917
917
|
}
|
|
918
918
|
Ze(g.afterSanitizeAttributes, r, null);
|
|
919
919
|
}, Ni = function(r) {
|
|
920
|
-
let
|
|
920
|
+
let v = null;
|
|
921
921
|
const D = Oi(r);
|
|
922
|
-
for (Ze(g.beforeSanitizeShadowDOM, r, null);
|
|
923
|
-
Ze(g.uponSanitizeShadowNode,
|
|
922
|
+
for (Ze(g.beforeSanitizeShadowDOM, r, null); v = D.nextNode(); )
|
|
923
|
+
Ze(g.uponSanitizeShadowNode, v, null), Ci(v), ki(v), v.content instanceof o && Ni(v.content);
|
|
924
924
|
Ze(g.afterSanitizeShadowDOM, r, null);
|
|
925
925
|
};
|
|
926
926
|
return t.sanitize = function(K) {
|
|
927
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
927
|
+
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, D = null, te = null, Ee = null;
|
|
928
928
|
if (Fn = !K, Fn && (K = "<!-->"), typeof K != "string" && !Pn(K) && (K = Il(K), typeof K != "string"))
|
|
929
929
|
throw ln("dirty is not a string, aborting");
|
|
930
930
|
if (!t.isSupported)
|
|
@@ -932,42 +932,42 @@ function to() {
|
|
|
932
932
|
if (Mn || Ln(r), t.removed = [], typeof K == "string" && (Pt = !1), Pt) {
|
|
933
933
|
const Le = K.nodeName;
|
|
934
934
|
if (typeof Le == "string") {
|
|
935
|
-
const Ke =
|
|
935
|
+
const Ke = be(Le);
|
|
936
936
|
if (!x[Ke] || Lt[Ke])
|
|
937
937
|
throw ln("root node is forbidden and cannot be sanitized in-place");
|
|
938
938
|
}
|
|
939
939
|
} else if (K instanceof l)
|
|
940
|
-
|
|
940
|
+
v = Ii("<!---->"), D = v.ownerDocument.importNode(K, !0), D.nodeType === qt.element && D.nodeName === "BODY" || D.nodeName === "HTML" ? v = D : v.appendChild(D);
|
|
941
941
|
else {
|
|
942
|
-
if (!
|
|
942
|
+
if (!vt && !dt && !ut && // eslint-disable-next-line unicorn/prefer-includes
|
|
943
943
|
K.indexOf("<") === -1)
|
|
944
944
|
return w && on ? w.createHTML(K) : K;
|
|
945
|
-
if (
|
|
946
|
-
return
|
|
945
|
+
if (v = Ii(K), !v)
|
|
946
|
+
return vt ? null : on ? C : "";
|
|
947
947
|
}
|
|
948
|
-
|
|
949
|
-
const ge = Oi(Pt ? K :
|
|
948
|
+
v && In && xe(v.firstChild);
|
|
949
|
+
const ge = Oi(Pt ? K : v);
|
|
950
950
|
for (; te = ge.nextNode(); )
|
|
951
951
|
Ci(te), ki(te), te.content instanceof o && Ni(te.content);
|
|
952
952
|
if (Pt)
|
|
953
953
|
return K;
|
|
954
|
-
if (
|
|
954
|
+
if (vt) {
|
|
955
955
|
if (dt) {
|
|
956
|
-
|
|
957
|
-
let Le =
|
|
956
|
+
v.normalize();
|
|
957
|
+
let Le = v.innerHTML;
|
|
958
958
|
jt([A, L, G], (Ke) => {
|
|
959
959
|
Le = Et(Le, Ke, " ");
|
|
960
|
-
}),
|
|
960
|
+
}), v.innerHTML = Le;
|
|
961
961
|
}
|
|
962
962
|
if (an)
|
|
963
|
-
for (Ee = I.call(
|
|
964
|
-
Ee.appendChild(
|
|
963
|
+
for (Ee = I.call(v.ownerDocument); v.firstChild; )
|
|
964
|
+
Ee.appendChild(v.firstChild);
|
|
965
965
|
else
|
|
966
|
-
Ee =
|
|
966
|
+
Ee = v;
|
|
967
967
|
return (se.shadowroot || se.shadowrootmode) && (Ee = m.call(i, Ee, !0)), Ee;
|
|
968
968
|
}
|
|
969
|
-
let Oe = ut ?
|
|
970
|
-
return ut && x["!doctype"] &&
|
|
969
|
+
let Oe = ut ? v.outerHTML : v.innerHTML;
|
|
970
|
+
return ut && x["!doctype"] && v.ownerDocument && v.ownerDocument.doctype && v.ownerDocument.doctype.name && Te(eo, v.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + v.ownerDocument.doctype.name + `>
|
|
971
971
|
` + Oe), dt && jt([A, L, G], (Le) => {
|
|
972
972
|
Oe = Et(Oe, Le, " ");
|
|
973
973
|
}), w && on ? w.createHTML(Oe) : Oe;
|
|
@@ -976,16 +976,16 @@ function to() {
|
|
|
976
976
|
Ln(K), Mn = !0;
|
|
977
977
|
}, t.clearConfig = function() {
|
|
978
978
|
St = null, Mn = !1;
|
|
979
|
-
}, t.isValidAttribute = function(K, r,
|
|
979
|
+
}, t.isValidAttribute = function(K, r, v) {
|
|
980
980
|
St || Ln({});
|
|
981
|
-
const D =
|
|
982
|
-
return Ri(D, te,
|
|
981
|
+
const D = be(K), te = be(r);
|
|
982
|
+
return Ri(D, te, v);
|
|
983
983
|
}, t.addHook = function(K, r) {
|
|
984
984
|
typeof r == "function" && xt(g[K], r);
|
|
985
985
|
}, t.removeHook = function(K, r) {
|
|
986
986
|
if (r !== void 0) {
|
|
987
|
-
const
|
|
988
|
-
return
|
|
987
|
+
const v = _l(g[K], r);
|
|
988
|
+
return v === -1 ? void 0 : Tl(g[K], v, 1)[0];
|
|
989
989
|
}
|
|
990
990
|
return Gi(g[K]);
|
|
991
991
|
}, t.removeHooks = function(K) {
|
|
@@ -1030,7 +1030,7 @@ Ut.prototype.has = zl;
|
|
|
1030
1030
|
Ut.prototype.set = Gl;
|
|
1031
1031
|
var un = function() {
|
|
1032
1032
|
try {
|
|
1033
|
-
var e =
|
|
1033
|
+
var e = bt(Object, "defineProperty");
|
|
1034
1034
|
return e({}, "", {}), e;
|
|
1035
1035
|
} catch {
|
|
1036
1036
|
}
|
|
@@ -1046,7 +1046,7 @@ function no(e, t, n) {
|
|
|
1046
1046
|
var Yl = Object.prototype, Wl = Yl.hasOwnProperty;
|
|
1047
1047
|
function io(e, t, n) {
|
|
1048
1048
|
var i = e[t];
|
|
1049
|
-
(!(Wl.call(e, t) &&
|
|
1049
|
+
(!(Wl.call(e, t) && vn(i, n)) || n === void 0 && !(t in e)) && no(e, t, n);
|
|
1050
1050
|
}
|
|
1051
1051
|
function Sn(e, t, n, i) {
|
|
1052
1052
|
var a = !n;
|
|
@@ -1136,7 +1136,7 @@ function cd(e) {
|
|
|
1136
1136
|
function md(e) {
|
|
1137
1137
|
return uo(e, En, lo);
|
|
1138
1138
|
}
|
|
1139
|
-
var Xn =
|
|
1139
|
+
var Xn = bt(je, "DataView"), Jn = bt(je, "Promise"), It = bt(je, "Set"), Qn = bt(je, "WeakMap"), la = "[object Map]", fd = "[object Object]", da = "[object Promise]", ua = "[object Set]", ca = "[object WeakMap]", ma = "[object DataView]", hd = yt(Xn), pd = yt(Jt), gd = yt(Jn), yd = yt(It), bd = yt(Qn), Xe = rt;
|
|
1140
1140
|
(Xn && Xe(new Xn(new ArrayBuffer(1))) != ma || Jt && Xe(new Jt()) != la || Jn && Xe(Jn.resolve()) != da || It && Xe(new It()) != ua || Qn && Xe(new Qn()) != ca) && (Xe = function(e) {
|
|
1141
1141
|
var t = rt(e), n = t == fd ? e.constructor : void 0, i = n ? yt(n) : "";
|
|
1142
1142
|
if (i)
|
|
@@ -1149,12 +1149,12 @@ var Xn = vt(je, "DataView"), Jn = vt(je, "Promise"), It = vt(je, "Set"), Qn = vt
|
|
|
1149
1149
|
return da;
|
|
1150
1150
|
case yd:
|
|
1151
1151
|
return ua;
|
|
1152
|
-
case
|
|
1152
|
+
case bd:
|
|
1153
1153
|
return ca;
|
|
1154
1154
|
}
|
|
1155
1155
|
return t;
|
|
1156
1156
|
});
|
|
1157
|
-
var
|
|
1157
|
+
var vd = Object.prototype, _d = vd.hasOwnProperty;
|
|
1158
1158
|
function Td(e) {
|
|
1159
1159
|
var t = e.length, n = new e.constructor(t);
|
|
1160
1160
|
return t && typeof e[0] == "string" && _d.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
@@ -1239,8 +1239,8 @@ var ya = Ct && Ct.isMap, Xd = ya ? ri(ya) : Zd, Jd = "[object Set]";
|
|
|
1239
1239
|
function Qd(e) {
|
|
1240
1240
|
return st(e) && Xe(e) == Jd;
|
|
1241
1241
|
}
|
|
1242
|
-
var
|
|
1243
|
-
J[co] = J[au] = J[gu] = J[yu] = J[ou] = J[ru] = J[
|
|
1242
|
+
var ba = Ct && Ct.isSet, eu = ba ? ri(ba) : Qd, tu = 1, nu = 2, iu = 4, co = "[object Arguments]", au = "[object Array]", ou = "[object Boolean]", ru = "[object Date]", su = "[object Error]", mo = "[object Function]", lu = "[object GeneratorFunction]", du = "[object Map]", uu = "[object Number]", fo = "[object Object]", cu = "[object RegExp]", mu = "[object Set]", fu = "[object String]", hu = "[object Symbol]", pu = "[object WeakMap]", gu = "[object ArrayBuffer]", yu = "[object DataView]", bu = "[object Float32Array]", vu = "[object Float64Array]", _u = "[object Int8Array]", Tu = "[object Int16Array]", Su = "[object Int32Array]", Eu = "[object Uint8Array]", Au = "[object Uint8ClampedArray]", wu = "[object Uint16Array]", Mu = "[object Uint32Array]", J = {};
|
|
1243
|
+
J[co] = J[au] = J[gu] = J[yu] = J[ou] = J[ru] = J[bu] = J[vu] = J[_u] = J[Tu] = J[Su] = J[du] = J[uu] = J[fo] = J[cu] = J[mu] = J[fu] = J[hu] = J[Eu] = J[Au] = J[wu] = J[Mu] = !0;
|
|
1244
1244
|
J[su] = J[mo] = J[pu] = !1;
|
|
1245
1245
|
function Yt(e, t, n, i, a, o) {
|
|
1246
1246
|
var s, l = t & tu, d = t & nu, u = t & iu;
|
|
@@ -1271,19 +1271,19 @@ function Yt(e, t, n, i, a, o) {
|
|
|
1271
1271
|
return S;
|
|
1272
1272
|
o.set(e, s), eu(e) ? e.forEach(function(U) {
|
|
1273
1273
|
s.add(Yt(U, t, n, U, e, o));
|
|
1274
|
-
}) : Xd(e) && e.forEach(function(U,
|
|
1275
|
-
s.set(
|
|
1274
|
+
}) : Xd(e) && e.forEach(function(U, k) {
|
|
1275
|
+
s.set(k, Yt(U, t, n, k, e, o));
|
|
1276
1276
|
});
|
|
1277
|
-
var F = u ? d ? md : cd : d ? En : yn,
|
|
1278
|
-
return Va(
|
|
1279
|
-
|
|
1277
|
+
var F = u ? d ? md : cd : d ? En : yn, b = y ? void 0 : F(e);
|
|
1278
|
+
return Va(b || e, function(U, k) {
|
|
1279
|
+
b && (k = U, U = e[k]), io(s, k, Yt(U, t, n, k, e, o));
|
|
1280
1280
|
}), s;
|
|
1281
1281
|
}
|
|
1282
1282
|
var Iu = 1, Ou = 4;
|
|
1283
1283
|
function Je(e) {
|
|
1284
1284
|
return Yt(e, Iu | Ou);
|
|
1285
1285
|
}
|
|
1286
|
-
const mi = (e, t = "") => typeof e.id < "u" ? t + e.id + "" : t + (e.inputName || e.label || e.model || "").toString().trim().toLowerCase().replace(/ |_/g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-]+)/g, ""),
|
|
1286
|
+
const mi = (e, t = "") => typeof e.id < "u" ? t + e.id + "" : t + (e.inputName || e.label || e.model || "").toString().trim().toLowerCase().replace(/ |_/g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-]+)/g, ""), va = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
|
|
1287
1287
|
var Cu = "[object String]";
|
|
1288
1288
|
function ft(e) {
|
|
1289
1289
|
return typeof e == "string" || !lt(e) && st(e) && rt(e) == Cu;
|
|
@@ -1339,7 +1339,7 @@ var _a = NaN, Uu = /^[-+]0x[0-9a-f]+$/i, Lu = /^0b[01]+$/i, Du = /^0o[0-7]+$/i,
|
|
|
1339
1339
|
function ei(e) {
|
|
1340
1340
|
if (typeof e == "number")
|
|
1341
1341
|
return e;
|
|
1342
|
-
if (
|
|
1342
|
+
if (bn(e))
|
|
1343
1343
|
return _a;
|
|
1344
1344
|
if (ke(e)) {
|
|
1345
1345
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -1362,21 +1362,21 @@ function Rt(e, t, n) {
|
|
|
1362
1362
|
return i = a = void 0, u = E, s = e.apply(I, T), s;
|
|
1363
1363
|
}
|
|
1364
1364
|
function F(E) {
|
|
1365
|
-
return u = E, l = setTimeout(
|
|
1365
|
+
return u = E, l = setTimeout(k, t), y ? S(E) : s;
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1368
|
-
var T = E - d, I = E - u,
|
|
1369
|
-
return f ? ju(
|
|
1367
|
+
function b(E) {
|
|
1368
|
+
var T = E - d, I = E - u, N = t - T;
|
|
1369
|
+
return f ? ju(N, o - I) : N;
|
|
1370
1370
|
}
|
|
1371
1371
|
function U(E) {
|
|
1372
1372
|
var T = E - d, I = E - u;
|
|
1373
1373
|
return d === void 0 || T >= t || T < 0 || f && I >= o;
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function k() {
|
|
1376
1376
|
var E = Hn();
|
|
1377
1377
|
if (U(E))
|
|
1378
1378
|
return H(E);
|
|
1379
|
-
l = setTimeout(
|
|
1379
|
+
l = setTimeout(k, b(E));
|
|
1380
1380
|
}
|
|
1381
1381
|
function H(E) {
|
|
1382
1382
|
return l = void 0, p && i ? S(E) : (i = a = void 0, s);
|
|
@@ -1393,9 +1393,9 @@ function Rt(e, t, n) {
|
|
|
1393
1393
|
if (l === void 0)
|
|
1394
1394
|
return F(d);
|
|
1395
1395
|
if (f)
|
|
1396
|
-
return clearTimeout(l), l = setTimeout(
|
|
1396
|
+
return clearTimeout(l), l = setTimeout(k, t), S(d);
|
|
1397
1397
|
}
|
|
1398
|
-
return l === void 0 && (l = setTimeout(
|
|
1398
|
+
return l === void 0 && (l = setTimeout(k, t)), s;
|
|
1399
1399
|
}
|
|
1400
1400
|
return C.cancel = P, C.flush = w, C;
|
|
1401
1401
|
}
|
|
@@ -1478,7 +1478,7 @@ function yo(e) {
|
|
|
1478
1478
|
var t = ++tc;
|
|
1479
1479
|
return Xa(e) + t;
|
|
1480
1480
|
}
|
|
1481
|
-
var
|
|
1481
|
+
var bo = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, at = "\\d\\d?", it = "\\d\\d", nc = "\\d{3}", ic = "\\d{4}", Wt = "[^\\s]+", vo = /\[([^]*?)\]/gm;
|
|
1482
1482
|
function _o(e, t) {
|
|
1483
1483
|
for (var n = [], i = 0, a = e.length; i < a; i++)
|
|
1484
1484
|
n.push(e[i].substr(0, t));
|
|
@@ -1707,11 +1707,11 @@ var To = [
|
|
|
1707
1707
|
throw new Error("Invalid Date pass to format");
|
|
1708
1708
|
t = fn[t] || t;
|
|
1709
1709
|
var i = [];
|
|
1710
|
-
t = t.replace(
|
|
1710
|
+
t = t.replace(vo, function(o, s) {
|
|
1711
1711
|
return i.push(s), "@@@";
|
|
1712
1712
|
});
|
|
1713
1713
|
var a = ht(ht({}, mn), n);
|
|
1714
|
-
return t = t.replace(
|
|
1714
|
+
return t = t.replace(bo, function(o) {
|
|
1715
1715
|
return sc[o](e, a);
|
|
1716
1716
|
}), t.replace(/@@@/g, function() {
|
|
1717
1717
|
return i.shift();
|
|
@@ -1732,10 +1732,10 @@ function cc(e, t, n) {
|
|
|
1732
1732
|
millisecond: 0,
|
|
1733
1733
|
isPm: null,
|
|
1734
1734
|
timezoneOffset: null
|
|
1735
|
-
}, o = [], s = [], l = t.replace(
|
|
1735
|
+
}, o = [], s = [], l = t.replace(vo, function(w, C) {
|
|
1736
1736
|
return s.push(Sa(C)), "@@@";
|
|
1737
1737
|
}), d = {}, u = {};
|
|
1738
|
-
l = Sa(l).replace(
|
|
1738
|
+
l = Sa(l).replace(bo, function(w) {
|
|
1739
1739
|
var C = lc[w], E = C[0], T = C[1], I = C[3];
|
|
1740
1740
|
if (d[E])
|
|
1741
1741
|
throw new Error("Invalid format. " + E + " specified twice in format");
|
|
@@ -1750,15 +1750,15 @@ function cc(e, t, n) {
|
|
|
1750
1750
|
if (!y)
|
|
1751
1751
|
return null;
|
|
1752
1752
|
for (var f = ht(ht({}, mn), n), p = 1; p < y.length; p++) {
|
|
1753
|
-
var S = o[p - 1], F = S[0],
|
|
1753
|
+
var S = o[p - 1], F = S[0], b = S[2], U = b ? b(y[p], f) : +y[p];
|
|
1754
1754
|
if (U == null)
|
|
1755
1755
|
return null;
|
|
1756
1756
|
a[F] = U;
|
|
1757
1757
|
}
|
|
1758
1758
|
a.isPm === 1 && a.hour != null && +a.hour != 12 ? a.hour = +a.hour + 12 : a.isPm === 0 && +a.hour == 12 && (a.hour = 0);
|
|
1759
|
-
var
|
|
1759
|
+
var k;
|
|
1760
1760
|
if (a.timezoneOffset == null) {
|
|
1761
|
-
|
|
1761
|
+
k = new Date(a.year, a.month, a.day, a.hour, a.minute, a.second, a.millisecond);
|
|
1762
1762
|
for (var H = [
|
|
1763
1763
|
["month", "getMonth"],
|
|
1764
1764
|
["day", "getDate"],
|
|
@@ -1766,11 +1766,11 @@ function cc(e, t, n) {
|
|
|
1766
1766
|
["minute", "getMinutes"],
|
|
1767
1767
|
["second", "getSeconds"]
|
|
1768
1768
|
], p = 0, P = H.length; p < P; p++)
|
|
1769
|
-
if (d[H[p][0]] && a[H[p][0]] !==
|
|
1769
|
+
if (d[H[p][0]] && a[H[p][0]] !== k[H[p][1]]())
|
|
1770
1770
|
return null;
|
|
1771
|
-
} else if (
|
|
1771
|
+
} else if (k = 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)
|
|
1772
1772
|
return null;
|
|
1773
|
-
return
|
|
1773
|
+
return k;
|
|
1774
1774
|
}
|
|
1775
1775
|
var Mt = {
|
|
1776
1776
|
format: uc,
|
|
@@ -1815,11 +1815,11 @@ var pc = un ? function(e, t) {
|
|
|
1815
1815
|
value: hc(t),
|
|
1816
1816
|
writable: !0
|
|
1817
1817
|
});
|
|
1818
|
-
} : li, gc = 800, yc = 16,
|
|
1819
|
-
function
|
|
1818
|
+
} : li, gc = 800, yc = 16, bc = Date.now;
|
|
1819
|
+
function vc(e) {
|
|
1820
1820
|
var t = 0, n = 0;
|
|
1821
1821
|
return function() {
|
|
1822
|
-
var i =
|
|
1822
|
+
var i = bc(), a = yc - (i - n);
|
|
1823
1823
|
if (n = i, a > 0) {
|
|
1824
1824
|
if (++t >= gc)
|
|
1825
1825
|
return arguments[0];
|
|
@@ -1828,7 +1828,7 @@ function bc(e) {
|
|
|
1828
1828
|
return e.apply(void 0, arguments);
|
|
1829
1829
|
};
|
|
1830
1830
|
}
|
|
1831
|
-
var _c =
|
|
1831
|
+
var _c = vc(pc);
|
|
1832
1832
|
function Tc(e, t) {
|
|
1833
1833
|
return _c(fc(e, t, li), e + "");
|
|
1834
1834
|
}
|
|
@@ -1836,7 +1836,7 @@ function Sc(e, t, n) {
|
|
|
1836
1836
|
if (!ke(n))
|
|
1837
1837
|
return !1;
|
|
1838
1838
|
var i = typeof t;
|
|
1839
|
-
return (i == "number" ? gn(n) && za(t, n.length) : i == "string" && t in n) ?
|
|
1839
|
+
return (i == "number" ? gn(n) && za(t, n.length) : i == "string" && t in n) ? vn(n[t], e) : !1;
|
|
1840
1840
|
}
|
|
1841
1841
|
var Ao = Object.prototype, Ec = Ao.hasOwnProperty, Ac = Tc(function(e, t) {
|
|
1842
1842
|
e = Object(e);
|
|
@@ -1844,7 +1844,7 @@ var Ao = Object.prototype, Ec = Ao.hasOwnProperty, Ac = Tc(function(e, t) {
|
|
|
1844
1844
|
for (a && Sc(t[0], t[1], a) && (i = 1); ++n < i; )
|
|
1845
1845
|
for (var o = t[n], s = En(o), l = -1, d = s.length; ++l < d; ) {
|
|
1846
1846
|
var u = s[l], y = e[u];
|
|
1847
|
-
(y === void 0 ||
|
|
1847
|
+
(y === void 0 || vn(y, Ao[u]) && !Ec.call(e, u)) && (e[u] = o[u]);
|
|
1848
1848
|
}
|
|
1849
1849
|
return e;
|
|
1850
1850
|
}), wc = je.isFinite;
|
|
@@ -2582,10 +2582,10 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
|
|
|
2582
2582
|
label: m[e.labelField],
|
|
2583
2583
|
value: m.id
|
|
2584
2584
|
})), s = ne(""), l = ne(!1), d = ne(!1), u = ne(""), y = ne([]), f = ne([]), p = ne([]), { t: S } = Ne("en-us", Ue), F = ne(null);
|
|
2585
|
-
let
|
|
2585
|
+
let b = null;
|
|
2586
2586
|
const U = async (m, g) => {
|
|
2587
2587
|
if (!e.fieldDisabled) {
|
|
2588
|
-
clearTimeout(
|
|
2588
|
+
clearTimeout(b), b = setTimeout(() => {
|
|
2589
2589
|
l.value = !0;
|
|
2590
2590
|
}, 1500);
|
|
2591
2591
|
try {
|
|
@@ -2600,10 +2600,10 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
|
|
|
2600
2600
|
}
|
|
2601
2601
|
s.value = A.message;
|
|
2602
2602
|
} finally {
|
|
2603
|
-
clearTimeout(
|
|
2603
|
+
clearTimeout(b), l.value = !1;
|
|
2604
2604
|
}
|
|
2605
2605
|
}
|
|
2606
|
-
},
|
|
2606
|
+
}, k = Rt((m) => {
|
|
2607
2607
|
if (m = m || "", u.value = m, !m.trim() && !d.value) {
|
|
2608
2608
|
y.value = T(p.value);
|
|
2609
2609
|
return;
|
|
@@ -2611,7 +2611,7 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
|
|
|
2611
2611
|
F.value && F.value.abort();
|
|
2612
2612
|
const g = new AbortController();
|
|
2613
2613
|
if (F.value = g, d.value) {
|
|
2614
|
-
|
|
2614
|
+
N(m);
|
|
2615
2615
|
return;
|
|
2616
2616
|
}
|
|
2617
2617
|
C(m, g);
|
|
@@ -2628,7 +2628,7 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
|
|
|
2628
2628
|
g = T(p.value), m != null && m.trim() ? y.value = g.filter((A) => e.fields.some((L) => (A[L] || "").includes(m))) : y.value = g;
|
|
2629
2629
|
}, T = (m) => e.selectedItem ? m.some((g) => g.value === e.selectedItem.value) ? m : [e.selectedItem, ...m] : m, I = (m) => {
|
|
2630
2630
|
y.value = p.value.filter((g) => g.id === m);
|
|
2631
|
-
},
|
|
2631
|
+
}, N = (m) => {
|
|
2632
2632
|
ti(m) && e.allowUuidSearch ? I(m) : E(m);
|
|
2633
2633
|
};
|
|
2634
2634
|
return ii(async () => {
|
|
@@ -2648,7 +2648,7 @@ const Xc = "#6c7489", Jc = "12px", Qc = "20px", em = ["data-testid", "data-testl
|
|
|
2648
2648
|
readonly: e.disabled,
|
|
2649
2649
|
suggestions: y.value,
|
|
2650
2650
|
onChange: g[0] || (g[0] = (A) => m.$emit("change", A)),
|
|
2651
|
-
onQueryChange: R(
|
|
2651
|
+
onQueryChange: R(k)
|
|
2652
2652
|
}, {
|
|
2653
2653
|
before: M(() => [
|
|
2654
2654
|
Fe(m.$slots, "before", {}, () => [
|
|
@@ -2818,7 +2818,7 @@ function ym(e, t, n, i, a, o) {
|
|
|
2818
2818
|
_: 1
|
|
2819
2819
|
}, 8, ["text"]);
|
|
2820
2820
|
}
|
|
2821
|
-
const Ro = /* @__PURE__ */ W(gm, [["render", ym], ["__scopeId", "data-v-9ab50e80"]]), Yn = 50,
|
|
2821
|
+
const Ro = /* @__PURE__ */ W(gm, [["render", ym], ["__scopeId", "data-v-9ab50e80"]]), Yn = 50, bm = {
|
|
2822
2822
|
mixins: [qe],
|
|
2823
2823
|
inject: [Pe],
|
|
2824
2824
|
emits: ["model-updated"],
|
|
@@ -2943,7 +2943,7 @@ const Ro = /* @__PURE__ */ W(gm, [["render", ym], ["__scopeId", "data-v-9ab50e80
|
|
|
2943
2943
|
return t ? e[t] : e.id;
|
|
2944
2944
|
}
|
|
2945
2945
|
}
|
|
2946
|
-
},
|
|
2946
|
+
}, vm = ["data-testid", "data-testlabel"], _m = ["data-testid"], Tm = { class: "autosuggest__results_message" };
|
|
2947
2947
|
function Sm(e, t, n, i, a, o) {
|
|
2948
2948
|
const s = j("KSelect");
|
|
2949
2949
|
return c(), $(fe(e.schema.disabled ? "k-tooltip" : "div"), {
|
|
@@ -2973,7 +2973,7 @@ function Sm(e, t, n, i, a, o) {
|
|
|
2973
2973
|
class: "first-part",
|
|
2974
2974
|
"data-testid": l.id && `${l.id}-0`,
|
|
2975
2975
|
"data-testlabel": l.label
|
|
2976
|
-
}, V(o.getSuggestionLabel(l).split(" - ")[0]), 9,
|
|
2976
|
+
}, V(o.getSuggestionLabel(l).split(" - ")[0]), 9, vm),
|
|
2977
2977
|
(c(!0), _(Y, null, oe(o.getSuggestionLabel(l).split(" - ").slice(1), (d, u) => (c(), _("span", {
|
|
2978
2978
|
key: u,
|
|
2979
2979
|
class: "field-span",
|
|
@@ -2991,23 +2991,23 @@ function Sm(e, t, n, i, a, o) {
|
|
|
2991
2991
|
_: 1
|
|
2992
2992
|
}, 8, ["text"]);
|
|
2993
2993
|
}
|
|
2994
|
-
const Fo = /* @__PURE__ */ W(
|
|
2994
|
+
const Fo = /* @__PURE__ */ W(bm, [["render", Sm], ["__scopeId", "data-v-433129a3"]]);
|
|
2995
2995
|
function Em(e) {
|
|
2996
|
-
const t = ne([]), n = ne(null), i = (
|
|
2996
|
+
const t = ne([]), n = ne(null), i = (b) => ft(b) ? pt[b] != null ? pt[b] : (console.warn(`'${b}' is not a validator function!`), null) : b, a = q({
|
|
2997
2997
|
get() {
|
|
2998
|
-
var U,
|
|
2999
|
-
let
|
|
3000
|
-
return X(Z(e.schema, "get")) ?
|
|
2998
|
+
var U, k;
|
|
2999
|
+
let b;
|
|
3000
|
+
return X(Z(e.schema, "get")) ? b = e.schema.get((U = e.model) == null ? void 0 : U.value) : b = Z((k = e.model) == null ? void 0 : k.value, e.schema.model), S(b);
|
|
3001
3001
|
},
|
|
3002
|
-
set(
|
|
3002
|
+
set(b) {
|
|
3003
3003
|
const U = a;
|
|
3004
|
-
|
|
3004
|
+
b = F(b), X(b) ? b(b, U) : l(b, U);
|
|
3005
3005
|
}
|
|
3006
|
-
}), o = (
|
|
3006
|
+
}), o = (b) => {
|
|
3007
3007
|
var P;
|
|
3008
3008
|
d();
|
|
3009
3009
|
const U = Z(e.formOptions, "validateAsync", !1);
|
|
3010
|
-
let
|
|
3010
|
+
let k = [];
|
|
3011
3011
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
3012
3012
|
const w = [], C = (P = e.schema) == null ? void 0 : P.validator;
|
|
3013
3013
|
C && (Array.isArray(C) ? we(C, (E) => {
|
|
@@ -3015,14 +3015,14 @@ function Em(e) {
|
|
|
3015
3015
|
}) : w.push(i(C))), X(e.externalValidator) && w.push(e.externalValidator), we(w, (E) => {
|
|
3016
3016
|
var T, I;
|
|
3017
3017
|
if (U)
|
|
3018
|
-
|
|
3018
|
+
k.push(E(a.value, e.schema, (T = e.model) == null ? void 0 : T.value));
|
|
3019
3019
|
else {
|
|
3020
|
-
const
|
|
3021
|
-
|
|
3020
|
+
const N = E(a.value, e.schema, (I = e.model) == null ? void 0 : I.value);
|
|
3021
|
+
N && X(N.then) ? N.then((m) => {
|
|
3022
3022
|
m && (t.value = t.value.concat(m));
|
|
3023
3023
|
const g = t.value.length === 0;
|
|
3024
3024
|
e.emitValidated && e.emitValidated({ isValid: g, errors: t.value, field: e.schema });
|
|
3025
|
-
}) :
|
|
3025
|
+
}) : N && (k = k.concat(N));
|
|
3026
3026
|
}
|
|
3027
3027
|
});
|
|
3028
3028
|
}
|
|
@@ -3031,30 +3031,30 @@ function Em(e) {
|
|
|
3031
3031
|
let C = [];
|
|
3032
3032
|
if (we(go(w), (I) => {
|
|
3033
3033
|
Array.isArray(I) && I.length > 0 ? C = C.concat(I) : ft(I) && C.push(I);
|
|
3034
|
-
}), X((E = e.schema) == null ? void 0 : E.onValidated) && e.schema.onValidated((T = e.model) == null ? void 0 : T.value, C, e.schema), !
|
|
3034
|
+
}), X((E = e.schema) == null ? void 0 : E.onValidated) && e.schema.onValidated((T = e.model) == null ? void 0 : T.value, C, e.schema), !b) {
|
|
3035
3035
|
const I = C.length === 0;
|
|
3036
3036
|
e.emitValidated && e.emitValidated({ isValid: I, errors: C, field: e.schema });
|
|
3037
3037
|
}
|
|
3038
3038
|
return w = C, C;
|
|
3039
3039
|
};
|
|
3040
|
-
return U ? Promise.all(
|
|
3040
|
+
return U ? Promise.all(k).then(H) : H(k);
|
|
3041
3041
|
}, s = () => {
|
|
3042
3042
|
X(n.value) ? n.value() : n.value = Rt(
|
|
3043
3043
|
o,
|
|
3044
3044
|
Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 500))
|
|
3045
3045
|
);
|
|
3046
|
-
}, l = (
|
|
3046
|
+
}, l = (b, U) => {
|
|
3047
3047
|
var H, P, w;
|
|
3048
|
-
let
|
|
3049
|
-
X(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value,
|
|
3048
|
+
let k = !1;
|
|
3049
|
+
X(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value, b), k = !0) : e.schema.model && (u(e.schema.model, b), k = !0), k && (e.emitModelUpdated && ((P = e.model) != null && P.value) && e.emitModelUpdated({ value: b, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((w = e.model) == null ? void 0 : w.value, b, U, e.schema), Z(e.formOptions, "validateAfterChanged", !1) === !0 && (Z(e.schema, "validateDebounceTime", Z(e.formOptions, "validateDebounceTime", 0)) > 0 ? s() : o()));
|
|
3050
3050
|
}, d = () => {
|
|
3051
3051
|
t.value.splice(0);
|
|
3052
|
-
}, u = (
|
|
3052
|
+
}, u = (b, U) => {
|
|
3053
3053
|
var E;
|
|
3054
|
-
let
|
|
3055
|
-
|
|
3054
|
+
let k = b.replace(/\[(\w+)\]/g, ".$1");
|
|
3055
|
+
k = k.replace(/^\./, "");
|
|
3056
3056
|
let H = ((E = e.model) == null ? void 0 : E.value) || {}, P = 0;
|
|
3057
|
-
const w =
|
|
3057
|
+
const w = k.split("."), C = w.length;
|
|
3058
3058
|
for (; P < C; ) {
|
|
3059
3059
|
const T = w[P];
|
|
3060
3060
|
if (P < C - 1)
|
|
@@ -3065,10 +3065,10 @@ function Em(e) {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
++P;
|
|
3067
3067
|
}
|
|
3068
|
-
}, y = (
|
|
3069
|
-
const
|
|
3070
|
-
return mi(
|
|
3071
|
-
}, f = (
|
|
3068
|
+
}, y = (b, U = !1) => {
|
|
3069
|
+
const k = Z(e.formOptions, "fieldIdPrefix", "");
|
|
3070
|
+
return mi(b, k) + (U ? "-" + yo() : "");
|
|
3071
|
+
}, f = (b) => `${y(b)}-label`, p = () => Z(e.schema, "fieldClasses", []), S = (b) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(b) : b, F = (b) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(b) : b;
|
|
3072
3072
|
return {
|
|
3073
3073
|
value: a,
|
|
3074
3074
|
clearValidationErrors: d,
|
|
@@ -3187,13 +3187,13 @@ const Be = {
|
|
|
3187
3187
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3188
3188
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
3189
3189
|
}, S = (P, w) => {
|
|
3190
|
-
var I,
|
|
3190
|
+
var I, N;
|
|
3191
3191
|
let C = P;
|
|
3192
3192
|
const E = p[f.value] || "", T = Mt.parse(P, E);
|
|
3193
|
-
T && ((I = i.schema) != null && I.format ? C = Mt.format(T, (
|
|
3193
|
+
T && ((I = i.schema) != null && I.format ? C = Mt.format(T, (N = i.schema) == null ? void 0 : N.format) : C = T.valueOf()), l(C, w);
|
|
3194
3194
|
}, F = (P, w) => {
|
|
3195
3195
|
fi(P) || (P = NaN), l(P, w);
|
|
3196
|
-
},
|
|
3196
|
+
}, b = (P) => {
|
|
3197
3197
|
let w = P;
|
|
3198
3198
|
switch (i.schema.inputType) {
|
|
3199
3199
|
case "number":
|
|
@@ -3204,15 +3204,15 @@ const Be = {
|
|
|
3204
3204
|
y.value = w, l(w, P);
|
|
3205
3205
|
}, U = (P) => {
|
|
3206
3206
|
y.value = P, l(P, P);
|
|
3207
|
-
},
|
|
3207
|
+
}, k = ne(null), H = () => {
|
|
3208
3208
|
var P;
|
|
3209
|
-
X(
|
|
3209
|
+
X(k.value) && ((P = k.value) == null || P.flush());
|
|
3210
3210
|
};
|
|
3211
3211
|
return ii(() => {
|
|
3212
3212
|
switch (f.value) {
|
|
3213
3213
|
case "number":
|
|
3214
3214
|
case "range":
|
|
3215
|
-
|
|
3215
|
+
k.value = Rt(
|
|
3216
3216
|
(P, w) => {
|
|
3217
3217
|
F(P, w);
|
|
3218
3218
|
},
|
|
@@ -3226,7 +3226,7 @@ const Be = {
|
|
|
3226
3226
|
case "date":
|
|
3227
3227
|
case "datetime":
|
|
3228
3228
|
case "datetime-local":
|
|
3229
|
-
|
|
3229
|
+
k.value = Rt(
|
|
3230
3230
|
(P, w) => {
|
|
3231
3231
|
S(P, w);
|
|
3232
3232
|
},
|
|
@@ -3263,7 +3263,7 @@ const Be = {
|
|
|
3263
3263
|
type: f.value,
|
|
3264
3264
|
width: e.schema.width,
|
|
3265
3265
|
onBlur: H,
|
|
3266
|
-
"onUpdate:modelValue":
|
|
3266
|
+
"onUpdate:modelValue": b
|
|
3267
3267
|
}), null, 16, ["id", "autocomplete", "class", "disabled", "help", "max", "maxlength", "min", "minlength", "model-value", "name", "pattern", "placeholder", "readonly", "required", "show-password-mask-toggle", "type", "width"]),
|
|
3268
3268
|
(c(), $(fe(R(s)), {
|
|
3269
3269
|
schema: e.schema,
|
|
@@ -3693,7 +3693,7 @@ const No = /* @__PURE__ */ W(Om, [["render", Rm]]), Fm = { class: "field-object-
|
|
|
3693
3693
|
id: e.schema.name + "-" + F,
|
|
3694
3694
|
key: S.value,
|
|
3695
3695
|
modelValue: R(l),
|
|
3696
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
3696
|
+
"onUpdate:modelValue": f[0] || (f[0] = (b) => Ft(l) ? l.value = b : null),
|
|
3697
3697
|
label: S.name,
|
|
3698
3698
|
"label-attributes": { info: e.schema.help },
|
|
3699
3699
|
name: e.schema.name,
|
|
@@ -3744,53 +3744,53 @@ const No = /* @__PURE__ */ W(Om, [["render", Rm]]), Fm = { class: "field-object-
|
|
|
3744
3744
|
},
|
|
3745
3745
|
emits: ["modelUpdated"],
|
|
3746
3746
|
setup(e, { expose: t, emit: n }) {
|
|
3747
|
-
const i = e, a = n, o = q(() => i.schema.selectOptions || {}), s = (
|
|
3747
|
+
const i = e, a = n, o = q(() => i.schema.selectOptions || {}), s = (b) => ue(b) ? null : b, l = gt(i), { getFieldID: d, clearValidationErrors: u, value: y } = Be.useAbstractFields({
|
|
3748
3748
|
model: l.model,
|
|
3749
3749
|
schema: i.schema,
|
|
3750
3750
|
formOptions: i.formOptions,
|
|
3751
3751
|
formatValueToField: s,
|
|
3752
|
-
emitModelUpdated: (
|
|
3753
|
-
a("modelUpdated",
|
|
3752
|
+
emitModelUpdated: (b) => {
|
|
3753
|
+
a("modelUpdated", b.value, b.model);
|
|
3754
3754
|
}
|
|
3755
3755
|
});
|
|
3756
3756
|
t({
|
|
3757
3757
|
clearValidationErrors: u
|
|
3758
3758
|
});
|
|
3759
3759
|
const f = q(() => {
|
|
3760
|
-
const
|
|
3761
|
-
return p(typeof
|
|
3762
|
-
}), p = (
|
|
3760
|
+
const b = i.schema.values;
|
|
3761
|
+
return p(typeof b == "function" ? b.apply(this, [i.model, i.schema]) : b);
|
|
3762
|
+
}), p = (b) => {
|
|
3763
3763
|
const U = [];
|
|
3764
|
-
return
|
|
3764
|
+
return b.forEach((k) => {
|
|
3765
3765
|
U.push({
|
|
3766
|
-
label: F(
|
|
3767
|
-
value: S(
|
|
3768
|
-
disabled: typeof
|
|
3769
|
-
group: typeof
|
|
3766
|
+
label: F(k),
|
|
3767
|
+
value: S(k),
|
|
3768
|
+
disabled: typeof k == "object" && k.disabled || void 0,
|
|
3769
|
+
group: typeof k == "object" && String(k.group || "").toUpperCase() || void 0
|
|
3770
3770
|
});
|
|
3771
3771
|
}), U;
|
|
3772
|
-
}, S = (
|
|
3773
|
-
if (ke(
|
|
3772
|
+
}, S = (b) => {
|
|
3773
|
+
if (ke(b)) {
|
|
3774
3774
|
if (o.value && typeof o.value.value < "u")
|
|
3775
|
-
return
|
|
3776
|
-
if (typeof
|
|
3777
|
-
return String(
|
|
3775
|
+
return b[o.value.value];
|
|
3776
|
+
if (typeof b.id < "u")
|
|
3777
|
+
return String(b.id);
|
|
3778
3778
|
throw new Error("`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
|
|
3779
3779
|
} else
|
|
3780
|
-
return
|
|
3781
|
-
}, F = (
|
|
3782
|
-
if (ke(
|
|
3780
|
+
return b;
|
|
3781
|
+
}, F = (b) => {
|
|
3782
|
+
if (ke(b)) {
|
|
3783
3783
|
if (o.value && typeof o.value.name < "u")
|
|
3784
|
-
return
|
|
3785
|
-
if (typeof
|
|
3786
|
-
return String(
|
|
3784
|
+
return b[o.value.name];
|
|
3785
|
+
if (typeof b.name < "u")
|
|
3786
|
+
return String(b.name);
|
|
3787
3787
|
throw new Error("`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
|
|
3788
3788
|
} else
|
|
3789
|
-
return String(
|
|
3789
|
+
return String(b);
|
|
3790
3790
|
};
|
|
3791
|
-
return (
|
|
3792
|
-
const
|
|
3793
|
-
return c(), $(
|
|
3791
|
+
return (b, U) => {
|
|
3792
|
+
const k = j("KSelect");
|
|
3793
|
+
return c(), $(k, {
|
|
3794
3794
|
id: R(d)(e.schema),
|
|
3795
3795
|
modelValue: R(y),
|
|
3796
3796
|
"onUpdate:modelValue": U[0] || (U[0] = (H) => Ft(y) ? y.value = H : null),
|
|
@@ -3843,9 +3843,9 @@ const No = /* @__PURE__ */ W(Om, [["render", Rm]]), Fm = { class: "field-object-
|
|
|
3843
3843
|
const F = S ? y(S) : "";
|
|
3844
3844
|
y(f(u.value)) !== F && (u.value = F);
|
|
3845
3845
|
}, { immediate: !0 }), (S, F) => {
|
|
3846
|
-
const
|
|
3846
|
+
const b = j("KInput");
|
|
3847
3847
|
return c(), _("div", of, [
|
|
3848
|
-
O(
|
|
3848
|
+
O(b, Qe(S.$attrs, {
|
|
3849
3849
|
id: R(o)(e.schema),
|
|
3850
3850
|
"aria-labelledby": R(s)(e.schema),
|
|
3851
3851
|
class: e.schema.fieldClasses,
|
|
@@ -4156,10 +4156,10 @@ const hf = /* @__PURE__ */ W(sf, [["render", ff], ["__scopeId", "data-v-7633b3a8
|
|
|
4156
4156
|
]);
|
|
4157
4157
|
};
|
|
4158
4158
|
}
|
|
4159
|
-
}), yf = /* @__PURE__ */ W(gf, [["__scopeId", "data-v-6811d435"]]),
|
|
4159
|
+
}), yf = /* @__PURE__ */ W(gf, [["__scopeId", "data-v-6811d435"]]), bf = { class: "wrapper" }, vf = ["disabled"], _f = ["id", "checked", "disabled", "onChange", "name"], Tf = ["disabled"], Sf = { class: "info" }, Ef = { class: "dropList" }, Af = ["id", "checked", "disabled", "onChange", "name"];
|
|
4160
4160
|
function wf(e, t, n, i, a, o) {
|
|
4161
4161
|
const s = Da("attributes");
|
|
4162
|
-
return Me((c(), _("div",
|
|
4162
|
+
return Me((c(), _("div", bf, [
|
|
4163
4163
|
e.schema.listBox ? (c(), _("div", {
|
|
4164
4164
|
key: 0,
|
|
4165
4165
|
class: "listbox form-control",
|
|
@@ -4182,7 +4182,7 @@ function wf(e, t, n, i, a, o) {
|
|
|
4182
4182
|
me(V(o.getItemName(l)), 1)
|
|
4183
4183
|
])
|
|
4184
4184
|
], 2))), 256))
|
|
4185
|
-
], 8,
|
|
4185
|
+
], 8, vf)) : B("", !0),
|
|
4186
4186
|
e.schema.listBox ? B("", !0) : (c(), _("div", {
|
|
4187
4187
|
key: 1,
|
|
4188
4188
|
class: "combobox form-control",
|
|
@@ -4237,7 +4237,7 @@ const Mf = {
|
|
|
4237
4237
|
},
|
|
4238
4238
|
methods: {
|
|
4239
4239
|
getInputName(e) {
|
|
4240
|
-
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ?
|
|
4240
|
+
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ? va(this.schema.inputName + "_" + this.getItemValue(e)) : va(this.getItemValue(e));
|
|
4241
4241
|
},
|
|
4242
4242
|
getItemValue(e) {
|
|
4243
4243
|
if (ke(e)) {
|
|
@@ -4683,7 +4683,7 @@ const Lf = /* @__PURE__ */ W(Of, [["render", Uf], ["__scopeId", "data-v-be99d00c
|
|
|
4683
4683
|
O(F, {
|
|
4684
4684
|
id: R(u)(e.schema),
|
|
4685
4685
|
modelValue: R(y),
|
|
4686
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
4686
|
+
"onUpdate:modelValue": S[0] || (S[0] = (b) => Ft(y) ? y.value = b : null),
|
|
4687
4687
|
autocomplete: e.schema.autocomplete,
|
|
4688
4688
|
class: ee(e.schema.fieldClasses),
|
|
4689
4689
|
disabled: e.disabled || void 0,
|
|
@@ -4755,7 +4755,7 @@ const Lf = /* @__PURE__ */ W(Of, [["render", Uf], ["__scopeId", "data-v-be99d00c
|
|
|
4755
4755
|
O(F, Qe(p.$attrs, {
|
|
4756
4756
|
id: R(d)(e.schema),
|
|
4757
4757
|
modelValue: R(y),
|
|
4758
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
4758
|
+
"onUpdate:modelValue": S[0] || (S[0] = (b) => Ft(y) ? y.value = b : null),
|
|
4759
4759
|
autosize: "",
|
|
4760
4760
|
"character-limit": e.schema.max ?? !1,
|
|
4761
4761
|
class: e.schema.fieldClasses,
|
|
@@ -5030,7 +5030,7 @@ function hh(e) {
|
|
|
5030
5030
|
const n = (Array.isArray(e.tags) ? e.tags : []).filter((i) => typeof i == "string").map((i) => i.toLowerCase());
|
|
5031
5031
|
return n.includes(Ot.KONNECT_MANAGED) || n.includes(fh) ? Ot.KONNECT_MANAGED : Ot.SELF_MANAGED;
|
|
5032
5032
|
}
|
|
5033
|
-
const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-label" }, yh = { class: "label-text" },
|
|
5033
|
+
const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-label" }, yh = { class: "label-text" }, bh = ["data-testid"], vh = ["data-testid"], _h = { key: 1 }, Th = ["data-testid"], Sh = ["data-testid"], Eh = /* @__PURE__ */ he({
|
|
5034
5034
|
__name: "RedisConfigCard",
|
|
5035
5035
|
props: {
|
|
5036
5036
|
configFields: {
|
|
@@ -5066,12 +5066,12 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5066
5066
|
order: 3
|
|
5067
5067
|
}
|
|
5068
5068
|
}, a = e, o = (f) => f != null, s = (f, p) => o(p) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: l } = ar(), d = q(() => Object.entries(a.configFields).map(([f, p]) => {
|
|
5069
|
-
var S, F,
|
|
5069
|
+
var S, F, b, U;
|
|
5070
5070
|
return {
|
|
5071
5071
|
key: f,
|
|
5072
5072
|
label: ((S = i[f]) == null ? void 0 : S.label) ?? l(f),
|
|
5073
5073
|
value: (F = i[f]) != null && F.formatter ? i[f].formatter(p) : p,
|
|
5074
|
-
type: ((
|
|
5074
|
+
type: ((b = i[f]) == null ? void 0 : b.type) ?? s(f, p),
|
|
5075
5075
|
order: ((U = i[f]) == null ? void 0 : U.order) ?? 100
|
|
5076
5076
|
// attrs: value.attrs,
|
|
5077
5077
|
};
|
|
@@ -5079,19 +5079,19 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5079
5079
|
return (f, p) => {
|
|
5080
5080
|
const S = j("KCopy");
|
|
5081
5081
|
return c(), _("div", ph, [
|
|
5082
|
-
(c(!0), _(Y, null, oe(y.value, ({ key: F, label:
|
|
5082
|
+
(c(!0), _(Y, null, oe(y.value, ({ key: F, label: b, value: U, type: k }) => (c(), _("div", {
|
|
5083
5083
|
key: F,
|
|
5084
5084
|
class: "partial-config-card-row"
|
|
5085
5085
|
}, [
|
|
5086
5086
|
h("div", gh, [
|
|
5087
|
-
h("div", yh, V(
|
|
5087
|
+
h("div", yh, V(b), 1)
|
|
5088
5088
|
]),
|
|
5089
5089
|
h("div", {
|
|
5090
5090
|
class: "config-card-row-value",
|
|
5091
5091
|
"data-testid": `${F}-property-value`
|
|
5092
5092
|
}, [
|
|
5093
5093
|
o(U) ? (c(), _("div", _h, [
|
|
5094
|
-
|
|
5094
|
+
k === "password" ? (c(), _("div", {
|
|
5095
5095
|
key: 0,
|
|
5096
5096
|
"data-testid": `${F}-copy-password`
|
|
5097
5097
|
}, [
|
|
@@ -5106,8 +5106,8 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5106
5106
|
])) : (c(), _("div", {
|
|
5107
5107
|
key: 0,
|
|
5108
5108
|
"data-testid": `${F}-no-value`
|
|
5109
|
-
}, " – ", 8,
|
|
5110
|
-
], 8,
|
|
5109
|
+
}, " – ", 8, vh))
|
|
5110
|
+
], 8, bh)
|
|
5111
5111
|
]))), 128))
|
|
5112
5112
|
]);
|
|
5113
5113
|
};
|
|
@@ -5159,8 +5159,8 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5159
5159
|
setup(e) {
|
|
5160
5160
|
const { t } = Ne("en-us", Ue), n = Zt(pl), i = {
|
|
5161
5161
|
konnect: {
|
|
5162
|
-
getOne: "/v2/control-planes/{controlPlaneId}/core-entities/partials/{id}",
|
|
5163
|
-
getAll: "/v2/control-planes/{controlPlaneId}/core-entities/partials"
|
|
5162
|
+
getOne: "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}/partials/{id}",
|
|
5163
|
+
getAll: "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}/partials"
|
|
5164
5164
|
},
|
|
5165
5165
|
kongManager: {
|
|
5166
5166
|
getOne: "/{workspace}/partials/{id}",
|
|
@@ -5177,39 +5177,39 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5177
5177
|
searchKeys: ["id", "name"]
|
|
5178
5178
|
}), S = q(() => y.value ? s(y.value) : ""), F = q(
|
|
5179
5179
|
() => a.isCustomPlugin ? t("redis.custom_plugin.tooltip") : t("redis.shared_configuration.tooltip", { type: ka(a.redisType) })
|
|
5180
|
-
),
|
|
5180
|
+
), b = q(
|
|
5181
5181
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.title") : t("redis.shared_configuration.title")
|
|
5182
5182
|
), U = q(
|
|
5183
5183
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.selector.placeholder") : t("redis.shared_configuration.selector.placeholder")
|
|
5184
|
-
),
|
|
5184
|
+
), k = q(
|
|
5185
5185
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.create_new_configuration") : t("redis.shared_configuration.create_new_configuration", { type: ka(a.redisType) })
|
|
5186
5186
|
), H = q(
|
|
5187
5187
|
() => S.value || t("redis.shared_configuration.error")
|
|
5188
5188
|
), P = (I) => {
|
|
5189
|
-
let
|
|
5190
|
-
return l.app === "konnect"
|
|
5189
|
+
let N = `${l.apiBaseUrl}${i[l.app].getOne}`;
|
|
5190
|
+
return l.app === "konnect" && (N = N.replace(/{controlPlaneId}/gi, (l == null ? void 0 : l.controlPlaneId) || "")), N = N.replace(/\/{workspace}/gi, l != null && l.workspace ? `/${l.workspace}` : "").replace(/{id}/gi, String(I)), N;
|
|
5191
5191
|
}, w = q(() => {
|
|
5192
|
-
const I = (p.value || []).map((
|
|
5193
|
-
const m =
|
|
5192
|
+
const I = (p.value || []).map((N) => {
|
|
5193
|
+
const m = N, g = a.isKonnectManagedRedisEnabled ? hh(m) : void 0, A = g === Ot.KONNECT_MANAGED;
|
|
5194
5194
|
return {
|
|
5195
5195
|
...a.isKonnectManagedRedisEnabled && g ? { source: g } : {},
|
|
5196
5196
|
// only attach `source` in managed mode
|
|
5197
|
-
label:
|
|
5198
|
-
name:
|
|
5199
|
-
value:
|
|
5200
|
-
type:
|
|
5197
|
+
label: N.id,
|
|
5198
|
+
name: N.name,
|
|
5199
|
+
value: N.id,
|
|
5200
|
+
type: N.type,
|
|
5201
5201
|
tag: a.isKonnectManagedRedisEnabled && A ? void 0 : ch(m)
|
|
5202
5202
|
};
|
|
5203
|
-
}).filter((
|
|
5204
|
-
return a.redisType !== "all" ? I.filter((
|
|
5203
|
+
}).filter((N) => N.type === "redis-ce" || N.type === "redis-ee");
|
|
5204
|
+
return a.redisType !== "all" ? I.filter((N) => N.type === a.redisType) : I;
|
|
5205
5205
|
}), C = q(() => {
|
|
5206
5206
|
const I = w.value;
|
|
5207
5207
|
if (!a.isKonnectManagedRedisEnabled)
|
|
5208
5208
|
return I;
|
|
5209
|
-
const
|
|
5210
|
-
return
|
|
5209
|
+
const N = I.filter((A) => A.source === Ot.KONNECT_MANAGED), m = I.filter((A) => A.source === Ot.SELF_MANAGED), g = [];
|
|
5210
|
+
return N.length > 0 && g.push({
|
|
5211
5211
|
label: t("redis.managed_ui.groups.konnect_managed"),
|
|
5212
|
-
items:
|
|
5212
|
+
items: N
|
|
5213
5213
|
}), m.length > 0 && g.push({
|
|
5214
5214
|
label: t("redis.managed_ui.groups.self_managed"),
|
|
5215
5215
|
items: m
|
|
@@ -5218,13 +5218,13 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5218
5218
|
if (I) {
|
|
5219
5219
|
a.updateRedisModel(I);
|
|
5220
5220
|
try {
|
|
5221
|
-
const
|
|
5222
|
-
if (
|
|
5223
|
-
const m = Object.assign(
|
|
5221
|
+
const N = await E.get(P(I));
|
|
5222
|
+
if (N.data.config) {
|
|
5223
|
+
const m = Object.assign(N.data, N.data.config);
|
|
5224
5224
|
delete m.config, o.value = m;
|
|
5225
5225
|
}
|
|
5226
|
-
} catch (
|
|
5227
|
-
console.error(
|
|
5226
|
+
} catch (N) {
|
|
5227
|
+
console.error(N);
|
|
5228
5228
|
}
|
|
5229
5229
|
}
|
|
5230
5230
|
};
|
|
@@ -5232,7 +5232,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5232
5232
|
I && await f();
|
|
5233
5233
|
}), ai(() => {
|
|
5234
5234
|
f(), a.defaultRedisConfigItem && T(a.defaultRedisConfigItem);
|
|
5235
|
-
}), (I,
|
|
5235
|
+
}), (I, N) => {
|
|
5236
5236
|
const m = j("KLabel"), g = j("KBadge"), A = j("KSelect");
|
|
5237
5237
|
return c(), _(Y, null, [
|
|
5238
5238
|
h("div", wh, [
|
|
@@ -5244,11 +5244,11 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5244
5244
|
}
|
|
5245
5245
|
}, {
|
|
5246
5246
|
default: M(() => [
|
|
5247
|
-
me(V(
|
|
5247
|
+
me(V(b.value), 1)
|
|
5248
5248
|
]),
|
|
5249
5249
|
_: 1
|
|
5250
5250
|
}, 8, ["info"]),
|
|
5251
|
-
|
|
5251
|
+
N[2] || (N[2] = h("div", { class: "shared-redis-config-title" }, null, -1)),
|
|
5252
5252
|
O(A, {
|
|
5253
5253
|
class: "redis-config-select-trigger",
|
|
5254
5254
|
"data-testid": "redis-config-select-trigger",
|
|
@@ -5258,7 +5258,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5258
5258
|
loading: R(u),
|
|
5259
5259
|
"model-value": e.defaultRedisConfigItem,
|
|
5260
5260
|
placeholder: U.value,
|
|
5261
|
-
onChange:
|
|
5261
|
+
onChange: N[1] || (N[1] = (L) => T(L == null ? void 0 : L.value)),
|
|
5262
5262
|
onQueryChange: R(d)
|
|
5263
5263
|
}, {
|
|
5264
5264
|
"selected-item-template": M(({ item: L }) => [
|
|
@@ -5289,10 +5289,10 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5289
5289
|
h("div", {
|
|
5290
5290
|
class: "new-redis-config-area",
|
|
5291
5291
|
"data-testid": "new-redis-config-area",
|
|
5292
|
-
onClick:
|
|
5292
|
+
onClick: N[0] || (N[0] = (L) => I.$emit("showNewPartialModal"))
|
|
5293
5293
|
}, [
|
|
5294
5294
|
O(R(oi), { size: R(Jc) }, null, 8, ["size"]),
|
|
5295
|
-
h("span", null, V(
|
|
5295
|
+
h("span", null, V(k.value), 1)
|
|
5296
5296
|
])
|
|
5297
5297
|
]),
|
|
5298
5298
|
_: 1
|
|
@@ -5307,7 +5307,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5307
5307
|
], 64);
|
|
5308
5308
|
};
|
|
5309
5309
|
}
|
|
5310
|
-
}), Na = /* @__PURE__ */ W(kh, [["__scopeId", "data-v-
|
|
5310
|
+
}), Na = /* @__PURE__ */ W(kh, [["__scopeId", "data-v-3b12e969"]]), Nh = { key: 0 }, Uh = {
|
|
5311
5311
|
class: "redis-config-radio-group",
|
|
5312
5312
|
"data-testid": "redis-config-radio-group"
|
|
5313
5313
|
}, Lh = {
|
|
@@ -5379,9 +5379,9 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5379
5379
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.description") : a("redis.dedicated_configuration.description")
|
|
5380
5380
|
), u = q(
|
|
5381
5381
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.label") : a("redis.dedicated_configuration.label")
|
|
5382
|
-
), y = q(() => n.field.pluginType === "custom"), f = ne(!n.isEditing), p = ne(), S = ne({}), F = ne(),
|
|
5382
|
+
), y = q(() => n.field.pluginType === "custom"), f = ne(!n.isEditing), p = ne(), S = ne({}), F = ne(), b = (w) => X(w.visible) ? w.visible.call(this, n.model, w, this) : ue(w.visible) ? !0 : w.visible, U = async (w) => {
|
|
5383
5383
|
i("modelUpdated", [{ id: w, path: n.redisPath }], "partials"), F.value = [{ id: w, path: n.redisPath }], p.value = w;
|
|
5384
|
-
},
|
|
5384
|
+
}, k = (w, C) => {
|
|
5385
5385
|
S.value = { ...S.value, [C]: w }, i("modelUpdated", w, C);
|
|
5386
5386
|
}, H = () => {
|
|
5387
5387
|
i("refreshModel");
|
|
@@ -5397,7 +5397,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5397
5397
|
f.value = !0, p.value = T;
|
|
5398
5398
|
}
|
|
5399
5399
|
}), (w, C) => {
|
|
5400
|
-
const E = j("KAlert"), T = j("KBadge"), I = j("KRadio"),
|
|
5400
|
+
const E = j("KAlert"), T = j("KBadge"), I = j("KRadio"), N = j("KCard");
|
|
5401
5401
|
return c(), _("div", null, [
|
|
5402
5402
|
y.value ? (c(), _("div", Nh, [
|
|
5403
5403
|
O(E, {
|
|
@@ -5412,7 +5412,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5412
5412
|
"update-redis-model": U,
|
|
5413
5413
|
onShowNewPartialModal: C[0] || (C[0] = (m) => w.$emit("showNewPartialModal"))
|
|
5414
5414
|
}, null, 8, ["default-redis-config-item", "is-konnect-managed-redis-enabled", "plugin-redis-fields"])
|
|
5415
|
-
])) : (c(), $(
|
|
5415
|
+
])) : (c(), $(N, {
|
|
5416
5416
|
key: 1,
|
|
5417
5417
|
class: "redis-config-card",
|
|
5418
5418
|
"data-testid": "redis-config-card",
|
|
@@ -5470,7 +5470,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5470
5470
|
(c(!0), _(Y, null, oe(e.field.fields, (m) => (c(), _(Y, {
|
|
5471
5471
|
key: m.model
|
|
5472
5472
|
}, [
|
|
5473
|
-
|
|
5473
|
+
b(m) ? (c(), $(Vo, {
|
|
5474
5474
|
key: 0,
|
|
5475
5475
|
ref_for: !0,
|
|
5476
5476
|
ref: "children",
|
|
@@ -5479,7 +5479,7 @@ const ph = { class: "partial-config-card" }, gh = { class: "config-card-row-labe
|
|
|
5479
5479
|
model: e.model,
|
|
5480
5480
|
options: e.options,
|
|
5481
5481
|
vfg: e.vfg,
|
|
5482
|
-
onModelUpdated:
|
|
5482
|
+
onModelUpdated: k,
|
|
5483
5483
|
onRefreshModel: H,
|
|
5484
5484
|
onValidated: P
|
|
5485
5485
|
}, null, 8, ["errors", "field", "model", "options", "vfg"])) : B("", !0)
|
|
@@ -5724,15 +5724,15 @@ function qh(e, t, n, i, a, o) {
|
|
|
5724
5724
|
class: ee(e.getFieldRowClasses(u))
|
|
5725
5725
|
}, {
|
|
5726
5726
|
default: M(() => [
|
|
5727
|
-
(c(!0), _(Y, null, oe(u.fields, (
|
|
5728
|
-
key:
|
|
5727
|
+
(c(!0), _(Y, null, oe(u.fields, (b) => (c(), _(Y, {
|
|
5728
|
+
key: b.model
|
|
5729
5729
|
}, [
|
|
5730
|
-
o.fieldVisible(
|
|
5730
|
+
o.fieldVisible(b) ? (c(), $(l, {
|
|
5731
5731
|
key: 0,
|
|
5732
5732
|
ref_for: !0,
|
|
5733
5733
|
ref: "children",
|
|
5734
5734
|
errors: a.errors,
|
|
5735
|
-
field:
|
|
5735
|
+
field: b,
|
|
5736
5736
|
model: n.model,
|
|
5737
5737
|
options: n.options,
|
|
5738
5738
|
vfg: a.vfg,
|
|
@@ -5750,20 +5750,20 @@ function qh(e, t, n, i, a, o) {
|
|
|
5750
5750
|
"model-value": a.collapseStates[`group-${y}-nested`] ?? !0,
|
|
5751
5751
|
"trigger-alignment": "leading",
|
|
5752
5752
|
"trigger-label": a.collapseStates[`group-${y}-nested`] ?? !0 ? u.collapsible.nestedCollapsible.triggerLabel.expand : u.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
5753
|
-
"onUpdate:modelValue": (
|
|
5753
|
+
"onUpdate:modelValue": (b) => a.collapseStates[`group-${y}-nested`] = b
|
|
5754
5754
|
}, {
|
|
5755
5755
|
default: M(() => [
|
|
5756
5756
|
(c(), $(fe(n.tag), {
|
|
5757
5757
|
class: ee(e.getFieldRowClasses(u))
|
|
5758
5758
|
}, {
|
|
5759
5759
|
default: M(() => [
|
|
5760
|
-
(c(!0), _(Y, null, oe(u.collapsible.nestedCollapsible.fields, (
|
|
5761
|
-
key:
|
|
5760
|
+
(c(!0), _(Y, null, oe(u.collapsible.nestedCollapsible.fields, (b) => (c(), _(Y, {
|
|
5761
|
+
key: b.model
|
|
5762
5762
|
}, [
|
|
5763
|
-
|
|
5763
|
+
b.model === "__redis_partial" && n.enableRedisPartial ? (c(), $(s, {
|
|
5764
5764
|
key: 0,
|
|
5765
5765
|
errors: a.errors,
|
|
5766
|
-
field:
|
|
5766
|
+
field: b,
|
|
5767
5767
|
"is-editing": n.isEditing,
|
|
5768
5768
|
"is-konnect-managed-redis-enabled": n.isKonnectManagedRedisEnabled,
|
|
5769
5769
|
model: n.model,
|
|
@@ -5772,14 +5772,14 @@ function qh(e, t, n, i, a, o) {
|
|
|
5772
5772
|
vfg: a.vfg,
|
|
5773
5773
|
onModelUpdated: o.onModelUpdated,
|
|
5774
5774
|
onPartialToggled: o.onPartialToggled,
|
|
5775
|
-
onShowNewPartialModal: (U) => e.$emit("showNewPartialModal",
|
|
5775
|
+
onShowNewPartialModal: (U) => e.$emit("showNewPartialModal", b.redisType),
|
|
5776
5776
|
onValidated: o.onFieldValidated
|
|
5777
|
-
}, null, 8, ["errors", "field", "is-editing", "is-konnect-managed-redis-enabled", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(
|
|
5777
|
+
}, null, 8, ["errors", "field", "is-editing", "is-konnect-managed-redis-enabled", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : o.fieldVisible(b) ? (c(), $(l, {
|
|
5778
5778
|
key: 1,
|
|
5779
5779
|
ref_for: !0,
|
|
5780
5780
|
ref: "children",
|
|
5781
5781
|
errors: a.errors,
|
|
5782
|
-
field:
|
|
5782
|
+
field: b,
|
|
5783
5783
|
model: n.model,
|
|
5784
5784
|
options: n.options,
|
|
5785
5785
|
vfg: a.vfg,
|
|
@@ -6397,24 +6397,24 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
|
|
|
6397
6397
|
var T;
|
|
6398
6398
|
const E = Je(ap);
|
|
6399
6399
|
for (const I of E.fields) {
|
|
6400
|
-
const
|
|
6401
|
-
I.help === void 0 && typeof
|
|
6400
|
+
const N = (T = a.value[I.model]) == null ? void 0 : T.help;
|
|
6401
|
+
I.help === void 0 && typeof N == "string" && (I.help = N);
|
|
6402
6402
|
}
|
|
6403
6403
|
return E;
|
|
6404
6404
|
}), s = q(() => {
|
|
6405
6405
|
var T;
|
|
6406
6406
|
const E = Je(op);
|
|
6407
6407
|
for (const I of E.fields) {
|
|
6408
|
-
const
|
|
6409
|
-
I.help === void 0 && typeof
|
|
6408
|
+
const N = (T = a.value[I.model]) == null ? void 0 : T.help;
|
|
6409
|
+
I.help === void 0 && typeof N == "string" && (I.help = N);
|
|
6410
6410
|
}
|
|
6411
6411
|
return E;
|
|
6412
6412
|
}), l = q(() => {
|
|
6413
6413
|
var T;
|
|
6414
6414
|
const E = Je(rp);
|
|
6415
6415
|
for (const I of E.fields) {
|
|
6416
|
-
const
|
|
6417
|
-
I.help === void 0 && typeof
|
|
6416
|
+
const N = (T = a.value[I.model]) == null ? void 0 : T.help;
|
|
6417
|
+
I.help === void 0 && typeof N == "string" && (I.help = N);
|
|
6418
6418
|
}
|
|
6419
6419
|
return E;
|
|
6420
6420
|
}), d = q(() => ({
|
|
@@ -6433,9 +6433,9 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
|
|
|
6433
6433
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-shm"))
|
|
6434
6434
|
})), F = q(() => ({
|
|
6435
6435
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-vault"))
|
|
6436
|
-
})),
|
|
6436
|
+
})), b = q(() => ({
|
|
6437
6437
|
fields: t.formSchema.fields.filter((E) => E.model.startsWith("config") && !u.value.fields.filter((T) => T.model === E.model).length && !y.value.fields.filter((T) => T.model === E.model).length || E.model === "tags")
|
|
6438
|
-
})), U = q(() => t.formModel.id && t.isEditing || !t.isEditing),
|
|
6438
|
+
})), U = q(() => t.formModel.id && t.isEditing || !t.isEditing), k = [
|
|
6439
6439
|
{
|
|
6440
6440
|
hash: "#general",
|
|
6441
6441
|
title: "General"
|
|
@@ -6472,7 +6472,7 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
|
|
|
6472
6472
|
T === "config-storage" && (i.value = E), t.onModelUpdated();
|
|
6473
6473
|
};
|
|
6474
6474
|
return (E, T) => {
|
|
6475
|
-
const I = j("KSelect"),
|
|
6475
|
+
const I = j("KSelect"), N = j("KTabs");
|
|
6476
6476
|
return c(), _("div", null, [
|
|
6477
6477
|
e.formModel.id && e.isEditing || !e.isEditing ? (c(), $(ce, {
|
|
6478
6478
|
key: 0,
|
|
@@ -6482,7 +6482,7 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
|
|
|
6482
6482
|
schema: d.value,
|
|
6483
6483
|
onModelUpdated: e.onModelUpdated
|
|
6484
6484
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6485
|
-
O(
|
|
6485
|
+
O(N, { tabs: k }, {
|
|
6486
6486
|
general: M(() => [
|
|
6487
6487
|
h("div", sp, [
|
|
6488
6488
|
T[0] || (T[0] = h("div", { class: "header-wrapper" }, [
|
|
@@ -6576,7 +6576,7 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
|
|
|
6576
6576
|
key: 0,
|
|
6577
6577
|
model: e.formModel,
|
|
6578
6578
|
options: e.formOptions,
|
|
6579
|
-
schema:
|
|
6579
|
+
schema: b.value,
|
|
6580
6580
|
onModelUpdated: e.onModelUpdated
|
|
6581
6581
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0)
|
|
6582
6582
|
])
|
|
@@ -6586,7 +6586,7 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
|
|
|
6586
6586
|
]);
|
|
6587
6587
|
};
|
|
6588
6588
|
}
|
|
6589
|
-
}), fp = /* @__PURE__ */ W(mp, [["__scopeId", "data-v-07cecf5b"]]), hp = { class: "rla-form-basic-fields" }, pp = { class: "rla-form-request-limits-subtitle" }, gp = { class: "rla-form-request-limits-content" }, yp = { class: "rla-form-window-type" },
|
|
6589
|
+
}), fp = /* @__PURE__ */ W(mp, [["__scopeId", "data-v-07cecf5b"]]), hp = { class: "rla-form-basic-fields" }, pp = { class: "rla-form-request-limits-subtitle" }, gp = { class: "rla-form-request-limits-content" }, yp = { class: "rla-form-window-type" }, bp = ["innerHTML"], vp = { class: "rla-form-window-type-radios" }, _p = { class: "rla-form-request-limits-items" }, Tp = { class: "rla-form-request-limits-row" }, Sp = ["id"], Ep = { class: "rla-form-request-limits-actions" }, Ap = {
|
|
6590
6590
|
key: 0,
|
|
6591
6591
|
class: "rla-form-request-limits-examples"
|
|
6592
6592
|
}, wp = { class: "rla-form-request-limits-examples-badges" }, Mp = ["innerHTML"], Ip = {
|
|
@@ -6606,8 +6606,8 @@ const Qh = /* @__PURE__ */ W(Bh, [["render", Jh], ["__scopeId", "data-v-681792ad
|
|
|
6606
6606
|
isKonnectManagedRedisEnabled: { type: Boolean }
|
|
6607
6607
|
},
|
|
6608
6608
|
setup(e) {
|
|
6609
|
-
var
|
|
6610
|
-
Qt($e, (
|
|
6609
|
+
var N;
|
|
6610
|
+
Qt($e, (N = pn()) == null ? void 0 : N[Nt]);
|
|
6611
6611
|
const t = {
|
|
6612
6612
|
fixed: [
|
|
6613
6613
|
{
|
|
@@ -6670,11 +6670,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6670
6670
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((m) => `config-${m}`)
|
|
6671
6671
|
]), i = (m) => m === void 0 ? !1 : n.has(m), { t: a } = Ne("en-us", Ue), o = e, s = q(() => {
|
|
6672
6672
|
var A, L, G;
|
|
6673
|
-
const m = (L = (A = o.formSchema) == null ? void 0 : A.fields) == null ? void 0 : L.find((
|
|
6674
|
-
return { fields: [(G = o.formSchema) == null ? void 0 : G.fields.find((
|
|
6673
|
+
const m = (L = (A = o.formSchema) == null ? void 0 : A.fields) == null ? void 0 : L.find((ve) => ve.type === "selectionGroup" && ve.model === "selectionGroup");
|
|
6674
|
+
return { fields: [(G = o.formSchema) == null ? void 0 : G.fields.find((ve) => ve.model === "enabled"), m].filter(Boolean) };
|
|
6675
6675
|
}), l = q(() => {
|
|
6676
|
-
var
|
|
6677
|
-
const m = ((Ye = (
|
|
6676
|
+
var ve, Ye;
|
|
6677
|
+
const m = ((Ye = (ve = o.formSchema) == null ? void 0 : ve.fields) == null ? void 0 : Ye.filter((pe) => !i(pe.model))) ?? [], g = [], A = [], L = [];
|
|
6678
6678
|
let G = !1;
|
|
6679
6679
|
for (const pe of m) {
|
|
6680
6680
|
const We = pe.model;
|
|
@@ -6711,16 +6711,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6711
6711
|
return o.formModel["config-window_type"] ?? ((A = (g = (m = o.formSchema) == null ? void 0 : m.fields) == null ? void 0 : g.find((L) => L.model === "config-window_type")) == null ? void 0 : A.default);
|
|
6712
6712
|
}
|
|
6713
6713
|
), F = q(() => {
|
|
6714
|
-
var g, A, L, G,
|
|
6714
|
+
var g, A, L, G, ve, Ye;
|
|
6715
6715
|
const m = (L = (A = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : A.find((pe) => pe.model === "config-window_type")) == null ? void 0 : L.default;
|
|
6716
|
-
return (((Ye = (
|
|
6717
|
-
}),
|
|
6716
|
+
return (((Ye = (ve = (G = o.formSchema) == null ? void 0 : G.fields) == null ? void 0 : ve.find((pe) => pe.model === "config-window_type")) == null ? void 0 : Ye.values) ?? []).sort((pe, We) => pe === m ? -1 : We === m ? 1 : 0);
|
|
6717
|
+
}), b = q(() => {
|
|
6718
6718
|
var g;
|
|
6719
6719
|
const m = (g = o.formModel["config-limit"]) == null ? void 0 : g.map((A, L) => {
|
|
6720
|
-
var G,
|
|
6720
|
+
var G, ve;
|
|
6721
6721
|
return {
|
|
6722
6722
|
limit: A,
|
|
6723
|
-
windowSize: (
|
|
6723
|
+
windowSize: (ve = (G = o.formModel) == null ? void 0 : G["config-window_size"]) == null ? void 0 : ve[L]
|
|
6724
6724
|
};
|
|
6725
6725
|
});
|
|
6726
6726
|
return !Array.isArray(m) || m.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : m;
|
|
@@ -6729,7 +6729,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6729
6729
|
var m, g, A, L;
|
|
6730
6730
|
return ((m = o.formModel) == null ? void 0 : m["config-identifier"]) ?? ((L = (A = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : A.find((G) => G.model === "config-identifier")) == null ? void 0 : L.default);
|
|
6731
6731
|
}
|
|
6732
|
-
),
|
|
6732
|
+
), k = q(
|
|
6733
6733
|
() => {
|
|
6734
6734
|
var m, g, A, L;
|
|
6735
6735
|
return ((m = o.formModel) == null ? void 0 : m["config-error_code"]) ?? ((L = (A = (g = o.formSchema) == null ? void 0 : g.fields) == null ? void 0 : A.find((G) => G.model === "config-error_code")) == null ? void 0 : L.default);
|
|
@@ -6768,7 +6768,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6768
6768
|
g.length === 0 && g.push(void 0), A.length === 0 && A.push(void 0), g.splice(m + 1, 0, void 0), A.splice(m + 1, 0, void 0), o.onModelUpdated(g, "config-limit"), o.onModelUpdated(A, "config-window_size");
|
|
6769
6769
|
}, I = (m) => {
|
|
6770
6770
|
var g, A;
|
|
6771
|
-
if (
|
|
6771
|
+
if (b.value.length > 1) {
|
|
6772
6772
|
f.value !== void 0 && (f.value = void 0);
|
|
6773
6773
|
const L = Je(((g = o.formModel) == null ? void 0 : g["config-limit"]) ?? []), G = Je(((A = o.formModel) == null ? void 0 : A["config-window_size"]) ?? []);
|
|
6774
6774
|
L.length === 0 && L.push(void 0), G.length === 0 && G.push(void 0), L.splice(m, 1), G.splice(m, 1), o.onModelUpdated(L, "config-limit"), o.onModelUpdated(G, "config-window_size");
|
|
@@ -6777,7 +6777,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6777
6777
|
return en(() => o.formModel["config-strategy"], (m) => {
|
|
6778
6778
|
m !== "redis" && o.formModel.partials && o.onModelUpdated(void 0, "partials");
|
|
6779
6779
|
}), (m, g) => {
|
|
6780
|
-
const A = j("KLabel"), L = j("KRadio"), G = j("KInput"),
|
|
6780
|
+
const A = j("KLabel"), L = j("KRadio"), G = j("KInput"), ve = j("KButton"), Ye = j("KBadge"), pe = j("KTooltip"), We = j("KCard"), An = j("KSelect"), tn = j("KCollapse");
|
|
6781
6781
|
return c(), _(Y, null, [
|
|
6782
6782
|
h("div", hp, [
|
|
6783
6783
|
O(ce, {
|
|
@@ -6813,14 +6813,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6813
6813
|
tooltip: M(() => [
|
|
6814
6814
|
h("div", {
|
|
6815
6815
|
innerHTML: R(a)("rla.window_type.help")
|
|
6816
|
-
}, null, 8,
|
|
6816
|
+
}, null, 8, bp)
|
|
6817
6817
|
]),
|
|
6818
6818
|
default: M(() => [
|
|
6819
6819
|
me(V(R(a)("rla.window_type.label")) + " ", 1)
|
|
6820
6820
|
]),
|
|
6821
6821
|
_: 1
|
|
6822
6822
|
}),
|
|
6823
|
-
h("div",
|
|
6823
|
+
h("div", vp, [
|
|
6824
6824
|
(c(!0), _(Y, null, oe(F.value, (x) => (c(), $(L, {
|
|
6825
6825
|
key: `window-type-${x}`,
|
|
6826
6826
|
"model-value": S.value,
|
|
@@ -6836,7 +6836,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6836
6836
|
])
|
|
6837
6837
|
]),
|
|
6838
6838
|
h("div", _p, [
|
|
6839
|
-
(c(!0), _(Y, null, oe(
|
|
6839
|
+
(c(!0), _(Y, null, oe(b.value, (x, ie) => (c(), _("div", {
|
|
6840
6840
|
key: ie.toString()
|
|
6841
6841
|
}, [
|
|
6842
6842
|
O(A, {
|
|
@@ -6868,9 +6868,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6868
6868
|
h("div", null, V(R(a)("rla.request_limits.seconds")), 1)
|
|
6869
6869
|
], 8, Sp),
|
|
6870
6870
|
h("div", Ep, [
|
|
6871
|
-
O(
|
|
6871
|
+
O(ve, {
|
|
6872
6872
|
appearance: "tertiary",
|
|
6873
|
-
disabled:
|
|
6873
|
+
disabled: b.value.length <= 1,
|
|
6874
6874
|
onClick: () => I(ie)
|
|
6875
6875
|
}, {
|
|
6876
6876
|
default: M(() => [
|
|
@@ -6878,7 +6878,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6878
6878
|
]),
|
|
6879
6879
|
_: 1
|
|
6880
6880
|
}, 8, ["disabled", "onClick"]),
|
|
6881
|
-
O(
|
|
6881
|
+
O(ve, {
|
|
6882
6882
|
appearance: "tertiary",
|
|
6883
6883
|
onClick: () => T(ie)
|
|
6884
6884
|
}, {
|
|
@@ -6964,7 +6964,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6964
6964
|
h("legend", Ip, [
|
|
6965
6965
|
O(G, {
|
|
6966
6966
|
class: "input-error-code",
|
|
6967
|
-
"model-value":
|
|
6967
|
+
"model-value": k.value && k.value.toString(),
|
|
6968
6968
|
placeholder: R(a)("rla.error_message.code_placeholder"),
|
|
6969
6969
|
type: "number",
|
|
6970
6970
|
"onUpdate:modelValue": g[3] || (g[3] = (x) => e.onModelUpdated(Number.parseInt(x), "config-error_code"))
|