@kong-ui-public/forms 4.25.5 → 4.25.6-pr.3399.a60102b91.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 +151 -149
- package/dist/forms.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as c, createElementBlock as _, createElementVNode as h, toDisplayString as j, normalizeClass as te, createVNode as R, defineComponent as pe, provide as en, resolveComponent as $, withCtx as M, renderSlot as ke, unref as k, createTextVNode as de, useModel as Jo, createBlock as P, createSlots as oi, mergeModels as Vi, inject as Xt, ref as ne, onMounted as ri, watch as tn, resolveDynamicComponent as he, Fragment as W, renderList as oe, computed as
|
|
1
|
+
import { openBlock as c, createElementBlock as _, createElementVNode as h, toDisplayString as j, normalizeClass as te, createVNode as R, defineComponent as pe, provide as en, resolveComponent as $, withCtx as M, renderSlot as ke, unref as k, createTextVNode as de, useModel as Jo, createBlock as P, createSlots as oi, mergeModels as Vi, inject as Xt, ref as ne, onMounted as ri, watch as tn, resolveDynamicComponent as he, Fragment as W, renderList as oe, computed as K, toRefs as yt, onBeforeMount as si, mergeProps as Qe, Transition as Qo, createCommentVNode as q, resolveDirective as xa, withDirectives as Ie, vModelText as Gt, vModelCheckbox as er, vModelSelect as tr, vModelDynamic as Ka, isRef as Lt, toRef as qa, vModelRadio as nr, vShow as ir, normalizeProps as ar, guardReactiveProps as or, useSlots as yn, nextTick as ji } from "vue";
|
|
2
2
|
import { createI18n as Ue } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as Dt, SearchIcon as rr, AddIcon as li, RemoveIcon as sr } from "@kong/icons";
|
|
4
4
|
import { isAxiosError as lr } from "axios";
|
|
@@ -24,7 +24,7 @@ function pr(e, t) {
|
|
|
24
24
|
i[n] = t(n);
|
|
25
25
|
return i;
|
|
26
26
|
}
|
|
27
|
-
var za = typeof global == "object" && global && global.Object === Object && global, gr = typeof self == "object" && self && self.Object === Object && self,
|
|
27
|
+
var za = typeof global == "object" && global && global.Object === Object && global, gr = typeof self == "object" && self && self.Object === Object && self, Ke = za || gr || Function("return this")(), rt = Ke.Symbol, Ha = Object.prototype, yr = Ha.hasOwnProperty, br = Ha.toString, qt = rt ? rt.toStringTag : void 0;
|
|
28
28
|
function vr(e) {
|
|
29
29
|
var t = yr.call(e, qt), n = e[qt];
|
|
30
30
|
try {
|
|
@@ -39,26 +39,26 @@ var _r = Object.prototype, Tr = _r.toString;
|
|
|
39
39
|
function Sr(e) {
|
|
40
40
|
return Tr.call(e);
|
|
41
41
|
}
|
|
42
|
-
var Er = "[object Null]", wr = "[object Undefined]",
|
|
42
|
+
var Er = "[object Null]", wr = "[object Undefined]", xi = rt ? rt.toStringTag : void 0;
|
|
43
43
|
function st(e) {
|
|
44
|
-
return e == null ? e === void 0 ? wr : Er :
|
|
44
|
+
return e == null ? e === void 0 ? wr : Er : xi && xi in Object(e) ? vr(e) : Sr(e);
|
|
45
45
|
}
|
|
46
46
|
function lt(e) {
|
|
47
47
|
return e != null && typeof e == "object";
|
|
48
48
|
}
|
|
49
49
|
var Ar = "[object Arguments]";
|
|
50
|
-
function
|
|
50
|
+
function Ki(e) {
|
|
51
51
|
return lt(e) && st(e) == Ar;
|
|
52
52
|
}
|
|
53
|
-
var Ga = Object.prototype, Mr = Ga.hasOwnProperty, Ir = Ga.propertyIsEnumerable, Or =
|
|
53
|
+
var Ga = Object.prototype, Mr = Ga.hasOwnProperty, Ir = Ga.propertyIsEnumerable, Or = Ki(/* @__PURE__ */ function() {
|
|
54
54
|
return arguments;
|
|
55
|
-
}()) ?
|
|
55
|
+
}()) ? Ki : function(e) {
|
|
56
56
|
return lt(e) && Mr.call(e, "callee") && !Ir.call(e, "callee");
|
|
57
57
|
}, dt = Array.isArray;
|
|
58
58
|
function Cr() {
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
|
-
var Ya = typeof exports == "object" && exports && !exports.nodeType && exports, qi = Ya && typeof module == "object" && module && !module.nodeType && module, Rr = qi && qi.exports === Ya, Bi = Rr ?
|
|
61
|
+
var Ya = typeof exports == "object" && exports && !exports.nodeType && exports, qi = Ya && typeof module == "object" && module && !module.nodeType && module, Rr = qi && qi.exports === Ya, Bi = Rr ? Ke.Buffer : void 0, Fr = Bi ? Bi.isBuffer : void 0, Wa = Fr || Cr, kr = 9007199254740991, Nr = /^(?:0|[1-9]\d*)$/;
|
|
62
62
|
function Za(e, t) {
|
|
63
63
|
var n = typeof e;
|
|
64
64
|
return t = t ?? kr, !!t && (n == "number" || n != "symbol" && Nr.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
@@ -67,9 +67,9 @@ var Ur = 9007199254740991;
|
|
|
67
67
|
function Xa(e) {
|
|
68
68
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ur;
|
|
69
69
|
}
|
|
70
|
-
var Lr = "[object Arguments]", Dr = "[object Array]", Pr = "[object Boolean]", $r = "[object Date]", Vr = "[object Error]", jr = "[object Function]",
|
|
70
|
+
var Lr = "[object Arguments]", Dr = "[object Array]", Pr = "[object Boolean]", $r = "[object Date]", Vr = "[object Error]", jr = "[object Function]", xr = "[object Map]", Kr = "[object Number]", qr = "[object Object]", Br = "[object RegExp]", zr = "[object Set]", Hr = "[object String]", Gr = "[object WeakMap]", Yr = "[object ArrayBuffer]", Wr = "[object DataView]", Zr = "[object Float32Array]", Xr = "[object Float64Array]", Jr = "[object Int8Array]", Qr = "[object Int16Array]", es = "[object Int32Array]", ts = "[object Uint8Array]", ns = "[object Uint8ClampedArray]", is = "[object Uint16Array]", as = "[object Uint32Array]", ee = {};
|
|
71
71
|
ee[Zr] = ee[Xr] = ee[Jr] = ee[Qr] = ee[es] = ee[ts] = ee[ns] = ee[is] = ee[as] = !0;
|
|
72
|
-
ee[Lr] = ee[Dr] = ee[Yr] = ee[Pr] = ee[Wr] = ee[$r] = ee[Vr] = ee[jr] = ee[
|
|
72
|
+
ee[Lr] = ee[Dr] = ee[Yr] = ee[Pr] = ee[Wr] = ee[$r] = ee[Vr] = ee[jr] = ee[xr] = ee[Kr] = ee[qr] = ee[Br] = ee[zr] = ee[Hr] = ee[Gr] = !1;
|
|
73
73
|
function os(e) {
|
|
74
74
|
return lt(e) && Xa(e.length) && !!ee[st(e)];
|
|
75
75
|
}
|
|
@@ -78,10 +78,10 @@ function di(e) {
|
|
|
78
78
|
return e(t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
var Ja = typeof exports == "object" && exports && !exports.nodeType && exports, Yt = Ja && typeof module == "object" && module && !module.nodeType && module, rs = Yt && Yt.exports === Ja,
|
|
81
|
+
var Ja = typeof exports == "object" && exports && !exports.nodeType && exports, Yt = Ja && typeof module == "object" && module && !module.nodeType && module, rs = Yt && Yt.exports === Ja, Kn = rs && za.process, Nt = function() {
|
|
82
82
|
try {
|
|
83
83
|
var e = Yt && Yt.require && Yt.require("util").types;
|
|
84
|
-
return e ||
|
|
84
|
+
return e || Kn && Kn.binding && Kn.binding("util");
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
87
|
}(), zi = Nt && Nt.isTypedArray, ss = zi ? di(zi) : os, ls = Object.prototype, ds = ls.hasOwnProperty;
|
|
@@ -167,7 +167,7 @@ function Ms(e, t) {
|
|
|
167
167
|
var n = typeof e;
|
|
168
168
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || _n(e) ? !0 : As.test(e) || !ws.test(e) || t != null && e in Object(t);
|
|
169
169
|
}
|
|
170
|
-
var qn =
|
|
170
|
+
var qn = Ke["__core-js_shared__"], Hi = function() {
|
|
171
171
|
var e = /[^.]+$/.exec(qn && qn.keys && qn.keys.IE_PROTO || "");
|
|
172
172
|
return e ? "Symbol(src)_1." + e : "";
|
|
173
173
|
}();
|
|
@@ -212,12 +212,12 @@ function js(e) {
|
|
|
212
212
|
var t = this.has(e) && delete this.__data__[e];
|
|
213
213
|
return this.size -= t ? 1 : 0, t;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var xs = "__lodash_hash_undefined__", Ks = Object.prototype, qs = Ks.hasOwnProperty;
|
|
216
216
|
function Bs(e) {
|
|
217
217
|
var t = this.__data__;
|
|
218
218
|
if (Jt) {
|
|
219
219
|
var n = t[e];
|
|
220
|
-
return n ===
|
|
220
|
+
return n === xs ? void 0 : n;
|
|
221
221
|
}
|
|
222
222
|
return qs.call(t, e) ? t[e] : void 0;
|
|
223
223
|
}
|
|
@@ -286,7 +286,7 @@ et.prototype.delete = Qs;
|
|
|
286
286
|
et.prototype.get = el;
|
|
287
287
|
et.prototype.has = tl;
|
|
288
288
|
et.prototype.set = nl;
|
|
289
|
-
var Qt = vt(
|
|
289
|
+
var Qt = vt(Ke, "Map");
|
|
290
290
|
function il() {
|
|
291
291
|
this.size = 0, this.__data__ = {
|
|
292
292
|
hash: new ft(),
|
|
@@ -444,11 +444,11 @@ function Al(e, t) {
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
const ao = Object.entries, Zi = Object.setPrototypeOf, Ml = Object.isFrozen, Il = Object.getPrototypeOf, Ol = Object.getOwnPropertyDescriptor;
|
|
447
|
-
let Oe = Object.freeze,
|
|
447
|
+
let Oe = Object.freeze, xe = Object.seal, Ot = Object.create, oo = typeof Reflect < "u" && Reflect, Jn = oo.apply, Qn = oo.construct;
|
|
448
448
|
Oe || (Oe = function(t) {
|
|
449
449
|
return t;
|
|
450
450
|
});
|
|
451
|
-
|
|
451
|
+
xe || (xe = function(t) {
|
|
452
452
|
return t;
|
|
453
453
|
});
|
|
454
454
|
Jn || (Jn = function(t, n) {
|
|
@@ -558,13 +558,13 @@ function Pl(e) {
|
|
|
558
558
|
return !1;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
const na = Oe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zn = Oe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Hn = Oe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), $l = Oe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Gn = Oe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Vl = Oe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ia = Oe(["#text"]), aa = Oe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Yn = Oe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), oa = Oe(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), cn = Oe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), jl =
|
|
561
|
+
const na = Oe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zn = Oe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Hn = Oe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), $l = Oe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Gn = Oe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Vl = Oe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ia = Oe(["#text"]), aa = Oe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Yn = Oe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), oa = Oe(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), cn = Oe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), jl = xe(/{{[\w\W]*|^[\w\W]*}}/g), xl = xe(/<%[\w\W]*|^[\w\W]*%>/g), Kl = xe(/\${[\w\W]*/g), ql = xe(/^data-[\-\w.\u00B7-\uFFFF]+$/), Bl = xe(/^aria-[\-\w]+$/), ra = xe(
|
|
562
562
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
563
563
|
// eslint-disable-line no-useless-escape
|
|
564
|
-
), zl =
|
|
564
|
+
), zl = xe(/^(?:\w+script|data):/i), Hl = xe(
|
|
565
565
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
566
566
|
// eslint-disable-line no-control-regex
|
|
567
|
-
), Gl =
|
|
567
|
+
), Gl = xe(/^html$/i), Yl = xe(/^[a-z][.\w]*(-[.\w]+)+$/i), It = {
|
|
568
568
|
element: 1,
|
|
569
569
|
text: 3,
|
|
570
570
|
// Deprecated
|
|
@@ -607,20 +607,20 @@ const na = Oe(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
607
607
|
};
|
|
608
608
|
function ro() {
|
|
609
609
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Wl();
|
|
610
|
-
const t = (
|
|
610
|
+
const t = (x) => ro(x);
|
|
611
611
|
if (t.version = "3.4.3", t.removed = [], !e || !e.document || e.document.nodeType !== It.document || !e.Element)
|
|
612
612
|
return t.isSupported = !1, t;
|
|
613
613
|
let n = e.document;
|
|
614
614
|
const i = n, o = i.currentScript, a = e.DocumentFragment, s = e.HTMLTemplateElement, l = e.Node, d = e.Element, u = e.NodeFilter, g = e.NamedNodeMap, f = g === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : g, p = e.HTMLFormElement, S = e.DOMParser, F = e.trustedTypes, y = d.prototype, D = Ct(y, "cloneNode"), U = Ct(y, "remove"), z = Ct(y, "nextSibling"), V = Ct(y, "childNodes"), C = Ct(y, "parentNode");
|
|
615
615
|
if (typeof s == "function") {
|
|
616
|
-
const
|
|
617
|
-
|
|
616
|
+
const x = n.createElement("template");
|
|
617
|
+
x.content && x.content.ownerDocument && (n = x.content.ownerDocument);
|
|
618
618
|
}
|
|
619
619
|
let A, E = "";
|
|
620
620
|
const T = n, I = T.implementation, L = T.createNodeIterator, m = T.createDocumentFragment, b = T.getElementsByTagName, w = i.importNode;
|
|
621
621
|
let O = sa();
|
|
622
622
|
t.isSupported = typeof ao == "function" && typeof C == "function" && I && I.createHTMLDocument !== void 0;
|
|
623
|
-
const H = jl, ue =
|
|
623
|
+
const H = jl, ue = xl, De = Kl, ge = ql, nt = Bl, Mn = zl, nn = Hl, G = Yl;
|
|
624
624
|
let ie = ra, re = null;
|
|
625
625
|
const yi = B({}, [...na, ...zn, ...Hn, ...Gn, ...ia]);
|
|
626
626
|
let Se = null;
|
|
@@ -661,7 +661,7 @@ function ro() {
|
|
|
661
661
|
}));
|
|
662
662
|
let vi = !0, In = !0, _i = !1, Ti = !0, ut = !1, jt = !0, ct = !1, On = !1, Cn = !1, _t = !1, on = !1, rn = !1, Si = !0, Ei = !1;
|
|
663
663
|
const wi = "user-content-";
|
|
664
|
-
let Rn = !0,
|
|
664
|
+
let Rn = !0, xt = !1, Tt = {}, Ge = null;
|
|
665
665
|
const Fn = B({}, ["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"]);
|
|
666
666
|
let Ai = null;
|
|
667
667
|
const Mi = B({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
@@ -671,7 +671,7 @@ function ro() {
|
|
|
671
671
|
const zo = B({}, [sn, ln, Ye], Bn);
|
|
672
672
|
let Ln = B({}, ["mi", "mo", "mn", "ms", "mtext"]), Dn = B({}, ["annotation-xml"]);
|
|
673
673
|
const Ho = B({}, ["title", "style", "font", "a", "script"]);
|
|
674
|
-
let
|
|
674
|
+
let Kt = null;
|
|
675
675
|
const Go = ["application/xhtml+xml", "text/html"], Yo = "text/html";
|
|
676
676
|
let ve = null, Et = null;
|
|
677
677
|
const Wo = n.createElement("form"), Oi = function(r) {
|
|
@@ -680,8 +680,8 @@ function ro() {
|
|
|
680
680
|
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
681
681
|
if (Et && Et === r)
|
|
682
682
|
return;
|
|
683
|
-
(!r || typeof r != "object") && (r = {}), r = Fe(r),
|
|
684
|
-
Go.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? Yo : r.PARSER_MEDIA_TYPE, ve =
|
|
683
|
+
(!r || typeof r != "object") && (r = {}), r = Fe(r), Kt = // eslint-disable-next-line unicorn/prefer-includes
|
|
684
|
+
Go.indexOf(r.PARSER_MEDIA_TYPE) === -1 ? Yo : r.PARSER_MEDIA_TYPE, ve = Kt === "application/xhtml+xml" ? Bn : Ht, re = se(r, "ALLOWED_TAGS") && Ae(r.ALLOWED_TAGS) ? B({}, r.ALLOWED_TAGS, ve) : yi, Se = se(r, "ALLOWED_ATTR") && Ae(r.ALLOWED_ATTR) ? B({}, r.ALLOWED_ATTR, ve) : bi, Un = se(r, "ALLOWED_NAMESPACES") && Ae(r.ALLOWED_NAMESPACES) ? B({}, r.ALLOWED_NAMESPACES, Bn) : zo, kn = se(r, "ADD_URI_SAFE_ATTR") && Ae(r.ADD_URI_SAFE_ATTR) ? B(Fe(Ii), r.ADD_URI_SAFE_ATTR, ve) : Ii, Ai = se(r, "ADD_DATA_URI_TAGS") && Ae(r.ADD_DATA_URI_TAGS) ? B(Fe(Mi), r.ADD_DATA_URI_TAGS, ve) : Mi, Ge = se(r, "FORBID_CONTENTS") && Ae(r.FORBID_CONTENTS) ? B({}, r.FORBID_CONTENTS, ve) : Fn, Vt = se(r, "FORBID_TAGS") && Ae(r.FORBID_TAGS) ? B({}, r.FORBID_TAGS, ve) : Fe({}), an = se(r, "FORBID_ATTR") && Ae(r.FORBID_ATTR) ? B({}, r.FORBID_ATTR, ve) : Fe({}), Tt = se(r, "USE_PROFILES") ? r.USE_PROFILES && typeof r.USE_PROFILES == "object" ? Fe(r.USE_PROFILES) : r.USE_PROFILES : !1, vi = r.ALLOW_ARIA_ATTR !== !1, In = r.ALLOW_DATA_ATTR !== !1, _i = r.ALLOW_UNKNOWN_PROTOCOLS || !1, Ti = r.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ut = r.SAFE_FOR_TEMPLATES || !1, jt = r.SAFE_FOR_XML !== !1, ct = r.WHOLE_DOCUMENT || !1, _t = r.RETURN_DOM || !1, on = r.RETURN_DOM_FRAGMENT || !1, rn = r.RETURN_TRUSTED_TYPE || !1, Cn = r.FORCE_BODY || !1, Si = r.SANITIZE_DOM !== !1, Ei = r.SANITIZE_NAMED_PROPS || !1, Rn = r.KEEP_CONTENT !== !1, xt = r.IN_PLACE || !1, ie = Pl(r.ALLOWED_URI_REGEXP) ? r.ALLOWED_URI_REGEXP : ra, St = typeof r.NAMESPACE == "string" ? r.NAMESPACE : Ye, Ln = se(r, "MATHML_TEXT_INTEGRATION_POINTS") && r.MATHML_TEXT_INTEGRATION_POINTS && typeof r.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Fe(r.MATHML_TEXT_INTEGRATION_POINTS) : B({}, ["mi", "mo", "mn", "ms", "mtext"]), Dn = se(r, "HTML_INTEGRATION_POINTS") && r.HTML_INTEGRATION_POINTS && typeof r.HTML_INTEGRATION_POINTS == "object" ? Fe(r.HTML_INTEGRATION_POINTS) : B({}, ["annotation-xml"]);
|
|
685
685
|
const v = se(r, "CUSTOM_ELEMENT_HANDLING") && r.CUSTOM_ELEMENT_HANDLING && typeof r.CUSTOM_ELEMENT_HANDLING == "object" ? Fe(r.CUSTOM_ELEMENT_HANDLING) : Ot(null);
|
|
686
686
|
if (ce = Ot(null), se(v, "tagNameCheck") && Oi(v.tagNameCheck) && (ce.tagNameCheck = v.tagNameCheck), se(v, "attributeNameCheck") && Oi(v.attributeNameCheck) && (ce.attributeNameCheck = v.attributeNameCheck), se(v, "allowCustomizedBuiltInElements") && typeof v.allowCustomizedBuiltInElements == "boolean" && (ce.allowCustomizedBuiltInElements = v.allowCustomizedBuiltInElements), ut && (In = !1), on && (_t = !0), Tt && (re = B({}, ia), Se = Ot(null), Tt.html === !0 && (B(re, na), B(Se, aa)), Tt.svg === !0 && (B(re, zn), B(Se, Yn), B(Se, cn)), Tt.svgFilters === !0 && (B(re, Hn), B(Se, Yn), B(Se, cn)), Tt.mathMl === !0 && (B(re, Gn), B(Se, oa), B(Se, cn))), it.tagCheck = null, it.attributeCheck = null, se(r, "ADD_TAGS") && (typeof r.ADD_TAGS == "function" ? it.tagCheck = r.ADD_TAGS : Ae(r.ADD_TAGS) && (re === yi && (re = Fe(re)), B(re, r.ADD_TAGS, ve))), se(r, "ADD_ATTR") && (typeof r.ADD_ATTR == "function" ? it.attributeCheck = r.ADD_ATTR : Ae(r.ADD_ATTR) && (Se === bi && (Se = Fe(Se)), B(Se, r.ADD_ATTR, ve))), se(r, "ADD_URI_SAFE_ATTR") && Ae(r.ADD_URI_SAFE_ATTR) && B(kn, r.ADD_URI_SAFE_ATTR, ve), se(r, "FORBID_CONTENTS") && Ae(r.FORBID_CONTENTS) && (Ge === Fn && (Ge = Fe(Ge)), B(Ge, r.FORBID_CONTENTS, ve)), se(r, "ADD_FORBID_CONTENTS") && Ae(r.ADD_FORBID_CONTENTS) && (Ge === Fn && (Ge = Fe(Ge)), B(Ge, r.ADD_FORBID_CONTENTS, ve)), Rn && (re["#text"] = !0), ct && B(re, ["html", "head", "body"]), re.table && (B(re, ["tbody"]), delete Vt.tbody), r.TRUSTED_TYPES_POLICY) {
|
|
687
687
|
if (typeof r.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
@@ -699,7 +699,7 @@ function ro() {
|
|
|
699
699
|
tagName: "template"
|
|
700
700
|
});
|
|
701
701
|
const N = Ht(r.tagName), Y = Ht(v.tagName);
|
|
702
|
-
return Un[r.namespaceURI] ? r.namespaceURI === ln ? v.namespaceURI === Ye ? N === "svg" : v.namespaceURI === sn ? N === "svg" && (Y === "annotation-xml" || Ln[Y]) : !!Ci[N] : r.namespaceURI === sn ? v.namespaceURI === Ye ? N === "math" : v.namespaceURI === ln ? N === "math" && Dn[Y] : !!Ri[N] : r.namespaceURI === Ye ? v.namespaceURI === ln && !Dn[Y] || v.namespaceURI === sn && !Ln[Y] ? !1 : !Ri[N] && (Ho[N] || !Ci[N]) : !!(
|
|
702
|
+
return Un[r.namespaceURI] ? r.namespaceURI === ln ? v.namespaceURI === Ye ? N === "svg" : v.namespaceURI === sn ? N === "svg" && (Y === "annotation-xml" || Ln[Y]) : !!Ci[N] : r.namespaceURI === sn ? v.namespaceURI === Ye ? N === "math" : v.namespaceURI === ln ? N === "math" && Dn[Y] : !!Ri[N] : r.namespaceURI === Ye ? v.namespaceURI === ln && !Dn[Y] || v.namespaceURI === sn && !Ln[Y] ? !1 : !Ri[N] && (Ho[N] || !Ci[N]) : !!(Kt === "application/xhtml+xml" && Un[r.namespaceURI]) : !1;
|
|
703
703
|
}, qe = function(r) {
|
|
704
704
|
At(t.removed, {
|
|
705
705
|
element: r
|
|
@@ -740,11 +740,11 @@ function ro() {
|
|
|
740
740
|
const ye = Ji(r, /^[\r\n\t ]+/);
|
|
741
741
|
N = ye && ye[0];
|
|
742
742
|
}
|
|
743
|
-
|
|
743
|
+
Kt === "application/xhtml+xml" && St === Ye && (r = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + r + "</body></html>");
|
|
744
744
|
const Y = A ? A.createHTML(r) : r;
|
|
745
745
|
if (St === Ye)
|
|
746
746
|
try {
|
|
747
|
-
v = new S().parseFromString(Y,
|
|
747
|
+
v = new S().parseFromString(Y, Kt);
|
|
748
748
|
} catch {
|
|
749
749
|
}
|
|
750
750
|
if (!v || !v.documentElement) {
|
|
@@ -769,8 +769,8 @@ function ro() {
|
|
|
769
769
|
}, Vn = function(r) {
|
|
770
770
|
return typeof l == "function" && r instanceof l;
|
|
771
771
|
};
|
|
772
|
-
function Ze(
|
|
773
|
-
wt(
|
|
772
|
+
function Ze(x, r, v) {
|
|
773
|
+
wt(x, (N) => {
|
|
774
774
|
N.call(t, r, v, Et);
|
|
775
775
|
});
|
|
776
776
|
}
|
|
@@ -848,8 +848,8 @@ function ro() {
|
|
|
848
848
|
};
|
|
849
849
|
let Y = v.length;
|
|
850
850
|
for (; Y--; ) {
|
|
851
|
-
const _e = v[Y], ye = _e.name, Ce = _e.namespaceURI, Pe = _e.value, Be = ve(ye),
|
|
852
|
-
let Te = ye === "value" ?
|
|
851
|
+
const _e = v[Y], ye = _e.name, Ce = _e.namespaceURI, Pe = _e.value, Be = ve(ye), xn = Pe;
|
|
852
|
+
let Te = ye === "value" ? xn : Fl(xn);
|
|
853
853
|
if (N.attrName = Be, N.attrValue = Te, N.keepAttr = !0, N.forceKeepAttr = void 0, Ze(O.uponSanitizeAttribute, r, N), Te = N.attrValue, Ei && (Be === "id" || Be === "name") && Qi(Te, wi) !== 0 && (mt(ye, r), Te = wi + Te), jt && Ee(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Te)) {
|
|
854
854
|
mt(ye, r);
|
|
855
855
|
continue;
|
|
@@ -887,7 +887,7 @@ function ro() {
|
|
|
887
887
|
break;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
if (Te !==
|
|
890
|
+
if (Te !== xn)
|
|
891
891
|
try {
|
|
892
892
|
Ce ? r.setAttributeNS(Ce, ye, Te) : r.setAttribute(ye, Te), $n(r) ? qe(r) : Xi(t.removed);
|
|
893
893
|
} catch {
|
|
@@ -916,35 +916,35 @@ function ro() {
|
|
|
916
916
|
for (const Y of N)
|
|
917
917
|
dn(Y);
|
|
918
918
|
};
|
|
919
|
-
return t.sanitize = function(
|
|
919
|
+
return t.sanitize = function(x) {
|
|
920
920
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, v = null, N = null, Y = null, _e = null;
|
|
921
|
-
if (Nn = !
|
|
921
|
+
if (Nn = !x, Nn && (x = "<!-->"), typeof x != "string" && !Vn(x) && (x = Dl(x), typeof x != "string"))
|
|
922
922
|
throw un("dirty is not a string, aborting");
|
|
923
923
|
if (!t.isSupported)
|
|
924
|
-
return
|
|
925
|
-
if (On || Pn(r), t.removed = [], typeof
|
|
926
|
-
const Pe =
|
|
924
|
+
return x;
|
|
925
|
+
if (On || Pn(r), t.removed = [], typeof x == "string" && (xt = !1), xt) {
|
|
926
|
+
const Pe = x.nodeName;
|
|
927
927
|
if (typeof Pe == "string") {
|
|
928
928
|
const Be = ve(Pe);
|
|
929
929
|
if (!re[Be] || Vt[Be])
|
|
930
930
|
throw un("root node is forbidden and cannot be sanitized in-place");
|
|
931
931
|
}
|
|
932
|
-
dn(
|
|
933
|
-
} else if (
|
|
934
|
-
v = Fi("<!---->"), N = v.ownerDocument.importNode(
|
|
932
|
+
dn(x);
|
|
933
|
+
} else if (x instanceof l)
|
|
934
|
+
v = Fi("<!---->"), N = v.ownerDocument.importNode(x, !0), N.nodeType === It.element && N.nodeName === "BODY" || N.nodeName === "HTML" ? v = N : v.appendChild(N), dn(N);
|
|
935
935
|
else {
|
|
936
936
|
if (!_t && !ut && !ct && // eslint-disable-next-line unicorn/prefer-includes
|
|
937
|
-
|
|
938
|
-
return A && rn ? A.createHTML(
|
|
939
|
-
if (v = Fi(
|
|
937
|
+
x.indexOf("<") === -1)
|
|
938
|
+
return A && rn ? A.createHTML(x) : x;
|
|
939
|
+
if (v = Fi(x), !v)
|
|
940
940
|
return _t ? null : rn ? E : "";
|
|
941
941
|
}
|
|
942
942
|
v && Cn && qe(v.firstChild);
|
|
943
|
-
const ye = ki(
|
|
943
|
+
const ye = ki(xt ? x : v);
|
|
944
944
|
for (; Y = ye.nextNode(); )
|
|
945
945
|
Ni(Y), Di(Y), Y.content instanceof a && jn(Y.content);
|
|
946
|
-
if (
|
|
947
|
-
return
|
|
946
|
+
if (xt)
|
|
947
|
+
return x;
|
|
948
948
|
if (_t) {
|
|
949
949
|
if (ut) {
|
|
950
950
|
v.normalize();
|
|
@@ -966,24 +966,24 @@ function ro() {
|
|
|
966
966
|
Ce = Mt(Ce, Pe, " ");
|
|
967
967
|
}), A && rn ? A.createHTML(Ce) : Ce;
|
|
968
968
|
}, t.setConfig = function() {
|
|
969
|
-
let
|
|
970
|
-
Pn(
|
|
969
|
+
let x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
970
|
+
Pn(x), On = !0;
|
|
971
971
|
}, t.clearConfig = function() {
|
|
972
972
|
Et = null, On = !1;
|
|
973
|
-
}, t.isValidAttribute = function(
|
|
973
|
+
}, t.isValidAttribute = function(x, r, v) {
|
|
974
974
|
Et || Pn({});
|
|
975
|
-
const N = ve(
|
|
975
|
+
const N = ve(x), Y = ve(r);
|
|
976
976
|
return Ui(N, Y, v);
|
|
977
|
-
}, t.addHook = function(
|
|
978
|
-
typeof r == "function" && At(O[
|
|
979
|
-
}, t.removeHook = function(
|
|
977
|
+
}, t.addHook = function(x, r) {
|
|
978
|
+
typeof r == "function" && At(O[x], r);
|
|
979
|
+
}, t.removeHook = function(x, r) {
|
|
980
980
|
if (r !== void 0) {
|
|
981
|
-
const v = Cl(O[
|
|
982
|
-
return v === -1 ? void 0 : Rl(O[
|
|
981
|
+
const v = Cl(O[x], r);
|
|
982
|
+
return v === -1 ? void 0 : Rl(O[x], v, 1)[0];
|
|
983
983
|
}
|
|
984
|
-
return Xi(O[
|
|
985
|
-
}, t.removeHooks = function(
|
|
986
|
-
O[
|
|
984
|
+
return Xi(O[x]);
|
|
985
|
+
}, t.removeHooks = function(x) {
|
|
986
|
+
O[x] = [];
|
|
987
987
|
}, t.removeAllHooks = function() {
|
|
988
988
|
O = sa();
|
|
989
989
|
}, t;
|
|
@@ -1076,7 +1076,7 @@ function An(e) {
|
|
|
1076
1076
|
function cd(e, t) {
|
|
1077
1077
|
return e && wn(t, An(t), e);
|
|
1078
1078
|
}
|
|
1079
|
-
var uo = typeof exports == "object" && exports && !exports.nodeType && exports, la = uo && typeof module == "object" && module && !module.nodeType && module, md = la && la.exports === uo, da = md ?
|
|
1079
|
+
var uo = typeof exports == "object" && exports && !exports.nodeType && exports, la = uo && typeof module == "object" && module && !module.nodeType && module, md = la && la.exports === uo, da = md ? Ke.Buffer : void 0, ua = da ? da.allocUnsafe : void 0;
|
|
1080
1080
|
function fd(e, t) {
|
|
1081
1081
|
if (t)
|
|
1082
1082
|
return e.slice();
|
|
@@ -1130,7 +1130,7 @@ function Td(e) {
|
|
|
1130
1130
|
function Sd(e) {
|
|
1131
1131
|
return po(e, An, ho);
|
|
1132
1132
|
}
|
|
1133
|
-
var ei = vt(
|
|
1133
|
+
var ei = vt(Ke, "DataView"), ti = vt(Ke, "Promise"), Ft = vt(Ke, "Set"), ni = vt(Ke, "WeakMap"), ma = "[object Map]", Ed = "[object Object]", fa = "[object Promise]", ha = "[object Set]", pa = "[object WeakMap]", ga = "[object DataView]", wd = bt(ei), Ad = bt(Qt), Md = bt(ti), Id = bt(Ft), Od = bt(ni), Xe = st;
|
|
1134
1134
|
(ei && Xe(new ei(new ArrayBuffer(1))) != ga || Qt && Xe(new Qt()) != ma || ti && Xe(ti.resolve()) != fa || Ft && Xe(new Ft()) != ha || ni && Xe(new ni()) != pa) && (Xe = function(e) {
|
|
1135
1135
|
var t = st(e), n = t == Ed ? e.constructor : void 0, i = n ? bt(n) : "";
|
|
1136
1136
|
if (i)
|
|
@@ -1153,7 +1153,7 @@ function Fd(e) {
|
|
|
1153
1153
|
var t = e.length, n = new e.constructor(t);
|
|
1154
1154
|
return t && typeof e[0] == "string" && Rd.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1155
1155
|
}
|
|
1156
|
-
var ya =
|
|
1156
|
+
var ya = Ke.Uint8Array;
|
|
1157
1157
|
function hi(e) {
|
|
1158
1158
|
var t = new e.constructor(e.byteLength);
|
|
1159
1159
|
return new ya(t).set(new ya(e)), t;
|
|
@@ -1175,7 +1175,7 @@ function Dd(e, t) {
|
|
|
1175
1175
|
var n = t ? hi(e.buffer) : e.buffer;
|
|
1176
1176
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
1177
1177
|
}
|
|
1178
|
-
var Pd = "[object Boolean]", $d = "[object Date]", Vd = "[object Map]", jd = "[object Number]",
|
|
1178
|
+
var Pd = "[object Boolean]", $d = "[object Date]", Vd = "[object Map]", jd = "[object Number]", xd = "[object RegExp]", Kd = "[object Set]", qd = "[object String]", Bd = "[object Symbol]", zd = "[object ArrayBuffer]", Hd = "[object DataView]", Gd = "[object Float32Array]", Yd = "[object Float64Array]", Wd = "[object Int8Array]", Zd = "[object Int16Array]", Xd = "[object Int32Array]", Jd = "[object Uint8Array]", Qd = "[object Uint8ClampedArray]", eu = "[object Uint16Array]", tu = "[object Uint32Array]";
|
|
1179
1179
|
function nu(e, t, n) {
|
|
1180
1180
|
var i = e.constructor;
|
|
1181
1181
|
switch (t) {
|
|
@@ -1201,9 +1201,9 @@ function nu(e, t, n) {
|
|
|
1201
1201
|
case jd:
|
|
1202
1202
|
case qd:
|
|
1203
1203
|
return new i(e);
|
|
1204
|
-
case Kd:
|
|
1205
|
-
return Ud(e);
|
|
1206
1204
|
case xd:
|
|
1205
|
+
return Ud(e);
|
|
1206
|
+
case Kd:
|
|
1207
1207
|
return new i();
|
|
1208
1208
|
case Bd:
|
|
1209
1209
|
return Ld(e);
|
|
@@ -1318,16 +1318,16 @@ const vo = {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
};
|
|
1320
1320
|
var Wn = function() {
|
|
1321
|
-
return
|
|
1321
|
+
return Ke.Date.now();
|
|
1322
1322
|
}, ju = /\s/;
|
|
1323
|
-
function
|
|
1323
|
+
function xu(e) {
|
|
1324
1324
|
for (var t = e.length; t-- && ju.test(e.charAt(t)); )
|
|
1325
1325
|
;
|
|
1326
1326
|
return t;
|
|
1327
1327
|
}
|
|
1328
|
-
var
|
|
1328
|
+
var Ku = /^\s+/;
|
|
1329
1329
|
function qu(e) {
|
|
1330
|
-
return e && e.slice(0,
|
|
1330
|
+
return e && e.slice(0, xu(e) + 1).replace(Ku, "");
|
|
1331
1331
|
}
|
|
1332
1332
|
var wa = NaN, Bu = /^[-+]0x[0-9a-f]+$/i, zu = /^0b[01]+$/i, Hu = /^0o[0-7]+$/i, Gu = parseInt;
|
|
1333
1333
|
function ii(e) {
|
|
@@ -1841,7 +1841,7 @@ var Co = Object.prototype, Nc = Co.hasOwnProperty, Uc = Fc(function(e, t) {
|
|
|
1841
1841
|
(g === void 0 || Tn(g, Co[u]) && !Nc.call(e, u)) && (e[u] = a[u]);
|
|
1842
1842
|
}
|
|
1843
1843
|
return e;
|
|
1844
|
-
}), Lc =
|
|
1844
|
+
}), Lc = Ke.isFinite;
|
|
1845
1845
|
function Ro(e) {
|
|
1846
1846
|
return typeof e == "number" && Lc(e);
|
|
1847
1847
|
}
|
|
@@ -1866,11 +1866,11 @@ var jc = "[object Number]";
|
|
|
1866
1866
|
function gi(e) {
|
|
1867
1867
|
return typeof e == "number" || lt(e) && st(e) == jc;
|
|
1868
1868
|
}
|
|
1869
|
-
const
|
|
1869
|
+
const xc = {
|
|
1870
1870
|
packageName: "forms",
|
|
1871
1871
|
disable_global_radio: "The plugin is set to 'Scoped' by default when configured under a {scope}. To configure a global plugin, navigate to the global plugin list page.",
|
|
1872
1872
|
disable_source_scope_change: "Changing the {scope} is not allowed when configuring a plugin under it."
|
|
1873
|
-
},
|
|
1873
|
+
}, Kc = {
|
|
1874
1874
|
view_advanced: "View advanced parameters",
|
|
1875
1875
|
window_type: {
|
|
1876
1876
|
label: "Rate Limit Window Type",
|
|
@@ -2008,7 +2008,7 @@ const Kc = {
|
|
|
2008
2008
|
off: "Off"
|
|
2009
2009
|
}
|
|
2010
2010
|
}, Le = {
|
|
2011
|
-
general:
|
|
2011
|
+
general: xc,
|
|
2012
2012
|
"post-function": {
|
|
2013
2013
|
tags: {
|
|
2014
2014
|
hint: "e.g. tag1, tag2, tag3",
|
|
@@ -2069,7 +2069,7 @@ const Kc = {
|
|
|
2069
2069
|
newElementButtonLabel: "+ Add"
|
|
2070
2070
|
}
|
|
2071
2071
|
},
|
|
2072
|
-
rla:
|
|
2072
|
+
rla: Kc,
|
|
2073
2073
|
validators: qc,
|
|
2074
2074
|
redis: Bc,
|
|
2075
2075
|
fields: zc,
|
|
@@ -2647,8 +2647,8 @@ const sm = "#6c7489", lm = "12px", dm = "20px", um = ["data-testid", "data-testl
|
|
|
2647
2647
|
before: M(() => [
|
|
2648
2648
|
ke(m.$slots, "before", {}, () => [
|
|
2649
2649
|
R(k(rr), {
|
|
2650
|
-
color: k(sm)
|
|
2651
|
-
size: k(dm)
|
|
2650
|
+
color: `var(--kui-color-text-neutral, ${k(sm)})`,
|
|
2651
|
+
size: `var(--kui-icon-size-40, ${k(dm)})`
|
|
2652
2652
|
}, null, 8, ["color", "size"])
|
|
2653
2653
|
], !0)
|
|
2654
2654
|
]),
|
|
@@ -2670,7 +2670,7 @@ const sm = "#6c7489", lm = "12px", dm = "20px", um = ["data-testid", "data-testl
|
|
|
2670
2670
|
_: 3
|
|
2671
2671
|
}, 8, ["id", "disabled", "dom-id", "empty-message", "error", "loading", "placeholder", "readonly", "suggestions", "onQueryChange"]));
|
|
2672
2672
|
}
|
|
2673
|
-
}), Am = /* @__PURE__ */ Z(wm, [["__scopeId", "data-v-
|
|
2673
|
+
}), Am = /* @__PURE__ */ Z(wm, [["__scopeId", "data-v-d8027156"]]);
|
|
2674
2674
|
function Uo(e, t, n) {
|
|
2675
2675
|
return n ? We.SET_REFERRAL_VALUE : e && !t || !e && t ? We.UPDATE_ENTITY : e && t ? We.CREATE_FROM_ENTITY : We.CREATE_NOT_FROM_ENTITY;
|
|
2676
2676
|
}
|
|
@@ -2987,7 +2987,7 @@ function km(e, t, n, i, o, a) {
|
|
|
2987
2987
|
}
|
|
2988
2988
|
const Do = /* @__PURE__ */ Z(Om, [["render", km], ["__scopeId", "data-v-433129a3"]]);
|
|
2989
2989
|
function Nm(e) {
|
|
2990
|
-
const t = ne([]), n = ne(null), i = (y) => ht(y) ? gt[y] != null ? gt[y] : (console.warn(`'${y}' is not a validator function!`), null) : y, o =
|
|
2990
|
+
const t = ne([]), n = ne(null), i = (y) => ht(y) ? gt[y] != null ? gt[y] : (console.warn(`'${y}' is not a validator function!`), null) : y, o = K({
|
|
2991
2991
|
get() {
|
|
2992
2992
|
var D, U;
|
|
2993
2993
|
let y;
|
|
@@ -3163,7 +3163,7 @@ const He = {
|
|
|
3163
3163
|
t({
|
|
3164
3164
|
clearValidationErrors: u
|
|
3165
3165
|
});
|
|
3166
|
-
const f =
|
|
3166
|
+
const f = K(() => {
|
|
3167
3167
|
var C, A;
|
|
3168
3168
|
const V = (C = i.schema) == null ? void 0 : C.inputType.toLowerCase();
|
|
3169
3169
|
if (V === "number" && ((A = i.schema) == null ? void 0 : A.referenceable) === !0)
|
|
@@ -3313,7 +3313,7 @@ function jm(e, t, n, i, o, a) {
|
|
|
3313
3313
|
})
|
|
3314
3314
|
], 2);
|
|
3315
3315
|
}
|
|
3316
|
-
const $o = /* @__PURE__ */ Z($m, [["render", jm]]),
|
|
3316
|
+
const $o = /* @__PURE__ */ Z($m, [["render", jm]]), xm = { class: "field-object-container" }, Km = { key: 1 }, qm = ["id"], Bm = { key: 0 }, zm = ["onUpdate:modelValue"], Hm = { key: 1 }, Gm = ["onUpdate:modelValue"], Ym = { key: 2 }, Wm = ["onUpdate:modelValue"], Zm = ["onClick"], Xm = {
|
|
3317
3317
|
mixins: [ze],
|
|
3318
3318
|
emits: ["modelUpdated"],
|
|
3319
3319
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
@@ -3355,15 +3355,15 @@ const $o = /* @__PURE__ */ Z($m, [["render", jm]]), Km = { class: "field-object-
|
|
|
3355
3355
|
__name: "FieldObject",
|
|
3356
3356
|
setup(e) {
|
|
3357
3357
|
return (t, n) => {
|
|
3358
|
-
const i =
|
|
3359
|
-
return Ie((c(), _("div",
|
|
3358
|
+
const i = xa("attributes");
|
|
3359
|
+
return Ie((c(), _("div", xm, [
|
|
3360
3360
|
t.schema.schema ? (c(), P(le, {
|
|
3361
3361
|
key: 0,
|
|
3362
3362
|
model: t.value,
|
|
3363
3363
|
options: t.formOptions,
|
|
3364
3364
|
schema: t.schema.schema,
|
|
3365
3365
|
onModelUpdated: t.updateModel
|
|
3366
|
-
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (c(), _("div",
|
|
3366
|
+
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (c(), _("div", Km, [
|
|
3367
3367
|
h("table", {
|
|
3368
3368
|
id: t.getFieldID(t.schema),
|
|
3369
3369
|
class: te(t.schema.fieldClasses)
|
|
@@ -3582,7 +3582,7 @@ const $o = /* @__PURE__ */ Z($m, [["render", jm]]), Km = { class: "field-object-
|
|
|
3582
3582
|
type: t.valueInputType,
|
|
3583
3583
|
onInput: (s) => t.updateModel(t.value[a], t.model[t.schema.model])
|
|
3584
3584
|
}, null, 40, rf), [
|
|
3585
|
-
[
|
|
3585
|
+
[Ka, t.value[a]]
|
|
3586
3586
|
]),
|
|
3587
3587
|
t.schema.fields && t.schema.fields[0].schema.hint ? (c(), _("p", sf, j(t.schema.fields[0].schema.hint), 1)) : q("", !0),
|
|
3588
3588
|
(c(), P(he(t.autofillSlot), {
|
|
@@ -3698,7 +3698,7 @@ const $o = /* @__PURE__ */ Z($m, [["render", jm]]), Km = { class: "field-object-
|
|
|
3698
3698
|
]);
|
|
3699
3699
|
};
|
|
3700
3700
|
}
|
|
3701
|
-
}),
|
|
3701
|
+
}), xo = /* @__PURE__ */ Z(hf, [["__scopeId", "data-v-a070103e"]]), Ko = /* @__PURE__ */ pe({
|
|
3702
3702
|
__name: "FieldSelect",
|
|
3703
3703
|
props: {
|
|
3704
3704
|
disabled: {
|
|
@@ -3738,7 +3738,7 @@ const $o = /* @__PURE__ */ Z($m, [["render", jm]]), Km = { class: "field-object-
|
|
|
3738
3738
|
},
|
|
3739
3739
|
emits: ["modelUpdated"],
|
|
3740
3740
|
setup(e, { expose: t, emit: n }) {
|
|
3741
|
-
const i = e, o = n, a =
|
|
3741
|
+
const i = e, o = n, a = K(() => i.schema.selectOptions || {}), s = (y) => fe(y) ? null : y, l = yt(i), { getFieldID: d, clearValidationErrors: u, value: g } = He.useAbstractFields({
|
|
3742
3742
|
model: l.model,
|
|
3743
3743
|
schema: i.schema,
|
|
3744
3744
|
formOptions: i.formOptions,
|
|
@@ -3750,7 +3750,7 @@ const $o = /* @__PURE__ */ Z($m, [["render", jm]]), Km = { class: "field-object-
|
|
|
3750
3750
|
t({
|
|
3751
3751
|
clearValidationErrors: u
|
|
3752
3752
|
});
|
|
3753
|
-
const f =
|
|
3753
|
+
const f = K(() => {
|
|
3754
3754
|
const y = i.schema.values;
|
|
3755
3755
|
return p(typeof y == "function" ? y.apply(this, [i.model, i.schema]) : y);
|
|
3756
3756
|
}), p = (y) => {
|
|
@@ -3857,13 +3857,13 @@ const $o = /* @__PURE__ */ Z($m, [["render", jm]]), Km = { class: "field-object-
|
|
|
3857
3857
|
components: {
|
|
3858
3858
|
FieldArrayItem: ko,
|
|
3859
3859
|
FieldArrayMultiItem: No,
|
|
3860
|
-
FieldSelect:
|
|
3860
|
+
FieldSelect: Ko,
|
|
3861
3861
|
FieldMetric: $o,
|
|
3862
3862
|
FieldObject: Vo,
|
|
3863
3863
|
FieldObjectAdvanced: jo,
|
|
3864
3864
|
FieldAutoSuggest: Lo,
|
|
3865
3865
|
FieldAutoSuggestLegacy: Do,
|
|
3866
|
-
FieldRadio:
|
|
3866
|
+
FieldRadio: xo,
|
|
3867
3867
|
FieldArrayCardContainer: Fo,
|
|
3868
3868
|
FieldInput: Po,
|
|
3869
3869
|
FieldStringArray: qo,
|
|
@@ -4047,7 +4047,7 @@ function Ef(e, t, n, i, o, a) {
|
|
|
4047
4047
|
}, { ref_for: !0 }, e.schema.inputAttributes, {
|
|
4048
4048
|
type: ((S = e.schema.inputAttributes) == null ? void 0 : S.type) || "text"
|
|
4049
4049
|
}), null, 16, Tf)), [
|
|
4050
|
-
[
|
|
4050
|
+
[Ka, e.value[p]]
|
|
4051
4051
|
])
|
|
4052
4052
|
];
|
|
4053
4053
|
}),
|
|
@@ -4152,7 +4152,7 @@ const wf = /* @__PURE__ */ Z(yf, [["render", Ef], ["__scopeId", "data-v-7633b3a8
|
|
|
4152
4152
|
}
|
|
4153
4153
|
}), If = /* @__PURE__ */ Z(Mf, [["__scopeId", "data-v-6811d435"]]), Of = { class: "wrapper" }, Cf = ["disabled"], Rf = ["id", "checked", "disabled", "onChange", "name"], Ff = ["disabled"], kf = { class: "info" }, Nf = { class: "dropList" }, Uf = ["id", "checked", "disabled", "onChange", "name"];
|
|
4154
4154
|
function Lf(e, t, n, i, o, a) {
|
|
4155
|
-
const s =
|
|
4155
|
+
const s = xa("attributes");
|
|
4156
4156
|
return Ie((c(), _("div", Of, [
|
|
4157
4157
|
e.schema.listBox ? (c(), _("div", {
|
|
4158
4158
|
key: 0,
|
|
@@ -4323,7 +4323,7 @@ const Df = {
|
|
|
4323
4323
|
this.pairs.splice(e, 1);
|
|
4324
4324
|
}
|
|
4325
4325
|
}
|
|
4326
|
-
}, Vf = { class: "key-value-pairs-editor" }, jf = { class: "pair-item-cell" },
|
|
4326
|
+
}, Vf = { class: "key-value-pairs-editor" }, jf = { class: "pair-item-cell" }, xf = ["data-testid", "placeholder", "value", "onInput"], Kf = { class: "pair-item-cell" }, qf = ["data-testid", "placeholder", "value", "onInput"];
|
|
4327
4327
|
function Bf(e, t, n, i, o, a) {
|
|
4328
4328
|
const s = $("TrashIcon"), l = $("KButton");
|
|
4329
4329
|
return c(), _("div", Vf, [
|
|
@@ -4341,14 +4341,14 @@ function Bf(e, t, n, i, o, a) {
|
|
|
4341
4341
|
onInput: (g) => {
|
|
4342
4342
|
a.onInput(g, u, "key");
|
|
4343
4343
|
}
|
|
4344
|
-
}, null, 40,
|
|
4344
|
+
}, null, 40, xf),
|
|
4345
4345
|
(c(), P(he(a.autofillSlot), {
|
|
4346
4346
|
schema: e.schema,
|
|
4347
4347
|
update: (g) => a.onInput({ target: { value: g } }, u, "key"),
|
|
4348
4348
|
value: d.key
|
|
4349
4349
|
}, null, 8, ["schema", "update", "value"]))
|
|
4350
4350
|
]),
|
|
4351
|
-
h("div",
|
|
4351
|
+
h("div", Kf, [
|
|
4352
4352
|
h("input", {
|
|
4353
4353
|
class: "form-control",
|
|
4354
4354
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${u}`,
|
|
@@ -4491,7 +4491,7 @@ const zf = /* @__PURE__ */ Z($f, [["render", Bf], ["__scopeId", "data-v-be99d00c
|
|
|
4491
4491
|
t({
|
|
4492
4492
|
clearValidationErrors: d
|
|
4493
4493
|
});
|
|
4494
|
-
const g =
|
|
4494
|
+
const g = K(() => {
|
|
4495
4495
|
var f, p;
|
|
4496
4496
|
return i.schema.values ? i.schema.values : (p = (f = i.schema.elements) == null ? void 0 : f.one_of) != null && p.length ? i.schema.elements.one_of.map((S) => ({ label: String(S), value: String(S) })) : [];
|
|
4497
4497
|
});
|
|
@@ -4789,8 +4789,8 @@ const zf = /* @__PURE__ */ Z($f, [["render", Bf], ["__scopeId", "data-v-be99d00c
|
|
|
4789
4789
|
FieldMultiselect: Yf,
|
|
4790
4790
|
FieldObject: Vo,
|
|
4791
4791
|
FieldObjectAdvanced: jo,
|
|
4792
|
-
FieldRadio:
|
|
4793
|
-
FieldSelect:
|
|
4792
|
+
FieldRadio: xo,
|
|
4793
|
+
FieldSelect: Ko,
|
|
4794
4794
|
FieldSelectionGroup: ah,
|
|
4795
4795
|
FieldStringArray: qo,
|
|
4796
4796
|
FieldSwitch: rh,
|
|
@@ -5059,7 +5059,7 @@ const Ah = { class: "partial-config-card" }, Mh = { class: "config-card-row-labe
|
|
|
5059
5059
|
formatter: n,
|
|
5060
5060
|
order: 3
|
|
5061
5061
|
}
|
|
5062
|
-
}, o = e, a = (f) => f != null, s = (f, p) => a(p) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: l } = dr(), d =
|
|
5062
|
+
}, o = e, a = (f) => f != null, s = (f, p) => a(p) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: l } = dr(), d = K(() => Object.entries(o.configFields).map(([f, p]) => {
|
|
5063
5063
|
var S, F, y, D;
|
|
5064
5064
|
return {
|
|
5065
5065
|
key: f,
|
|
@@ -5069,7 +5069,7 @@ const Ah = { class: "partial-config-card" }, Mh = { class: "config-card-row-labe
|
|
|
5069
5069
|
order: ((D = i[f]) == null ? void 0 : D.order) ?? 100
|
|
5070
5070
|
// attrs: value.attrs,
|
|
5071
5071
|
};
|
|
5072
|
-
}).sort((f, p) => f.order - p.order).filter((f) => f.type !== "hidden")), u = He.useRedisNonStandardFields(o.configFields, o.pluginRedisFields), g =
|
|
5072
|
+
}).sort((f, p) => f.order - p.order).filter((f) => f.type !== "hidden")), u = He.useRedisNonStandardFields(o.configFields, o.pluginRedisFields), g = K(() => d.value.concat(u));
|
|
5073
5073
|
return (f, p) => {
|
|
5074
5074
|
const S = $("KCopy");
|
|
5075
5075
|
return c(), _("div", Ah, [
|
|
@@ -5119,7 +5119,7 @@ const Ah = { class: "partial-config-card" }, Mh = { class: "config-card-row-labe
|
|
|
5119
5119
|
key: 1,
|
|
5120
5120
|
class: "redis-shared-config-error-message",
|
|
5121
5121
|
"data-testid": "redis-config-fetch-error"
|
|
5122
|
-
},
|
|
5122
|
+
}, xh = "1000", Kh = /* @__PURE__ */ pe({
|
|
5123
5123
|
__name: "RedisConfigSelect",
|
|
5124
5124
|
props: {
|
|
5125
5125
|
defaultRedisConfigItem: {
|
|
@@ -5166,23 +5166,23 @@ const Ah = { class: "partial-config-card" }, Mh = { class: "config-card-row-labe
|
|
|
5166
5166
|
error: g,
|
|
5167
5167
|
loadItems: f,
|
|
5168
5168
|
results: p
|
|
5169
|
-
} = cr(l, i[l.app].getAll,
|
|
5169
|
+
} = cr(l, i[l.app].getAll, xh, {
|
|
5170
5170
|
fetchedItemsKey: "data",
|
|
5171
5171
|
searchKeys: ["id", "name"]
|
|
5172
|
-
}), S =
|
|
5172
|
+
}), S = K(() => g.value ? s(g.value) : ""), F = K(
|
|
5173
5173
|
() => o.isCustomPlugin ? t("redis.custom_plugin.tooltip") : t("redis.shared_configuration.tooltip", { type: Da(o.redisType) })
|
|
5174
|
-
), y =
|
|
5174
|
+
), y = K(
|
|
5175
5175
|
() => o.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.title") : t("redis.shared_configuration.title")
|
|
5176
|
-
), D =
|
|
5176
|
+
), D = K(
|
|
5177
5177
|
() => o.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.selector.placeholder") : t("redis.shared_configuration.selector.placeholder")
|
|
5178
|
-
), U =
|
|
5178
|
+
), U = K(
|
|
5179
5179
|
() => o.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.create_new_configuration") : t("redis.shared_configuration.create_new_configuration", { type: Da(o.redisType) })
|
|
5180
|
-
), z =
|
|
5180
|
+
), z = K(
|
|
5181
5181
|
() => S.value || t("redis.shared_configuration.error")
|
|
5182
5182
|
), V = (I) => {
|
|
5183
5183
|
let L = `${l.apiBaseUrl}${i[l.app].getOne}`;
|
|
5184
5184
|
return l.app === "konnect" && (L = L.replace(/{controlPlaneId}/gi, (l == null ? void 0 : l.controlPlaneId) || "")), L = L.replace(/\/{workspace}/gi, l != null && l.workspace ? `/${l.workspace}` : "").replace(/{id}/gi, String(I)), L;
|
|
5185
|
-
}, C =
|
|
5185
|
+
}, C = K(() => {
|
|
5186
5186
|
const I = (p.value || []).map((L) => {
|
|
5187
5187
|
const m = L, b = o.isKonnectManagedRedisEnabled ? wh(m) : void 0, w = b === kt.KONNECT_MANAGED;
|
|
5188
5188
|
return {
|
|
@@ -5196,7 +5196,7 @@ const Ah = { class: "partial-config-card" }, Mh = { class: "config-card-row-labe
|
|
|
5196
5196
|
};
|
|
5197
5197
|
}).filter((L) => L.type === "redis-ce" || L.type === "redis-ee");
|
|
5198
5198
|
return o.redisType !== "all" ? I.filter((L) => L.type === o.redisType) : I;
|
|
5199
|
-
}), A =
|
|
5199
|
+
}), A = K(() => {
|
|
5200
5200
|
const I = C.value;
|
|
5201
5201
|
if (!o.isKonnectManagedRedisEnabled)
|
|
5202
5202
|
return I;
|
|
@@ -5285,7 +5285,9 @@ const Ah = { class: "partial-config-card" }, Mh = { class: "config-card-row-labe
|
|
|
5285
5285
|
"data-testid": "new-redis-config-area",
|
|
5286
5286
|
onClick: L[0] || (L[0] = (O) => I.$emit("showNewPartialModal"))
|
|
5287
5287
|
}, [
|
|
5288
|
-
R(k(li), {
|
|
5288
|
+
R(k(li), {
|
|
5289
|
+
size: `var(--kui-icon-size-20, ${k(lm)})`
|
|
5290
|
+
}, null, 8, ["size"]),
|
|
5289
5291
|
h("span", null, j(U.value), 1)
|
|
5290
5292
|
])
|
|
5291
5293
|
]),
|
|
@@ -5301,7 +5303,7 @@ const Ah = { class: "partial-config-card" }, Mh = { class: "config-card-row-labe
|
|
|
5301
5303
|
], 64);
|
|
5302
5304
|
};
|
|
5303
5305
|
}
|
|
5304
|
-
}), Pa = /* @__PURE__ */ Z(
|
|
5306
|
+
}), Pa = /* @__PURE__ */ Z(Kh, [["__scopeId", "data-v-e7bec021"]]), qh = { key: 0 }, Bh = {
|
|
5305
5307
|
class: "redis-config-radio-group",
|
|
5306
5308
|
"data-testid": "redis-config-radio-group"
|
|
5307
5309
|
}, zh = {
|
|
@@ -5363,17 +5365,17 @@ const Ah = { class: "partial-config-card" }, Mh = { class: "config-card-row-labe
|
|
|
5363
5365
|
},
|
|
5364
5366
|
emits: ["modelUpdated", "partialToggled", "showNewPartialModal", "refreshModel", "validated"],
|
|
5365
5367
|
setup(e, { emit: t }) {
|
|
5366
|
-
const n = e, i = t, { t: o } = Ue("en-us", Le), a =
|
|
5368
|
+
const n = e, i = t, { t: o } = Ue("en-us", Le), a = K(
|
|
5367
5369
|
() => n.isKonnectManagedRedisEnabled ? o("redis.managed_ui.title") : o("redis.title")
|
|
5368
|
-
), s =
|
|
5370
|
+
), s = K(
|
|
5369
5371
|
() => n.isKonnectManagedRedisEnabled ? o("redis.managed_ui.shared_configuration.description") : o("redis.shared_configuration.description")
|
|
5370
|
-
), l =
|
|
5372
|
+
), l = K(
|
|
5371
5373
|
() => n.isKonnectManagedRedisEnabled ? o("redis.managed_ui.shared_configuration.label") : o("redis.shared_configuration.label")
|
|
5372
|
-
), d =
|
|
5374
|
+
), d = K(
|
|
5373
5375
|
() => n.isKonnectManagedRedisEnabled ? o("redis.managed_ui.dedicated_configuration.description") : o("redis.dedicated_configuration.description")
|
|
5374
|
-
), u =
|
|
5376
|
+
), u = K(
|
|
5375
5377
|
() => n.isKonnectManagedRedisEnabled ? o("redis.managed_ui.dedicated_configuration.label") : o("redis.dedicated_configuration.label")
|
|
5376
|
-
), g =
|
|
5378
|
+
), g = K(() => n.field.pluginType === "custom"), f = ne(!n.isEditing), p = ne(), S = ne({}), F = ne(), y = (C) => J(C.visible) ? C.visible.call(this, n.model, C, this) : fe(C.visible) ? !0 : C.visible, D = async (C) => {
|
|
5377
5379
|
i("modelUpdated", [{ id: C, path: n.redisPath }], "partials"), F.value = [{ id: C, path: n.redisPath }], p.value = C;
|
|
5378
5380
|
}, U = (C, A) => {
|
|
5379
5381
|
S.value = { ...S.value, [A]: C }, i("modelUpdated", C, A);
|
|
@@ -6298,7 +6300,7 @@ const hp = /* @__PURE__ */ Z(op, [["render", fp], ["__scopeId", "data-v-5cf4e4e3
|
|
|
6298
6300
|
setup(e) {
|
|
6299
6301
|
var s;
|
|
6300
6302
|
en(je, (s = yn()) == null ? void 0 : s[Pt]);
|
|
6301
|
-
const { t, te: n } = Ue("en-us", Le), i = e, o =
|
|
6303
|
+
const { t, te: n } = Ue("en-us", Le), i = e, o = K(() => i.formModel.id && i.isEditing || !i.isEditing), a = K(() => {
|
|
6302
6304
|
const l = i.formSchema;
|
|
6303
6305
|
return l.fields.map((d) => {
|
|
6304
6306
|
const u = `post-function.${d.model}`;
|
|
@@ -6341,7 +6343,7 @@ const hp = /* @__PURE__ */ Z(op, [["render", fp], ["__scopeId", "data-v-5cf4e4e3
|
|
|
6341
6343
|
setup(e) {
|
|
6342
6344
|
var s;
|
|
6343
6345
|
en(je, (s = yn()) == null ? void 0 : s[Pt]);
|
|
6344
|
-
const { t, te: n } = Ue("en-us", Le), i = e, o =
|
|
6346
|
+
const { t, te: n } = Ue("en-us", Le), i = e, o = K(() => i.formModel.id && i.isEditing || !i.isEditing), a = K(() => {
|
|
6345
6347
|
const l = i.formSchema;
|
|
6346
6348
|
return l.fields.map((d) => {
|
|
6347
6349
|
const u = `exit-transformer.${d.model}`;
|
|
@@ -6472,14 +6474,14 @@ const hp = /* @__PURE__ */ Z(op, [["render", fp], ["__scopeId", "data-v-5cf4e4e3
|
|
|
6472
6474
|
setup(e) {
|
|
6473
6475
|
var A;
|
|
6474
6476
|
en(je, (A = yn()) == null ? void 0 : A[Pt]);
|
|
6475
|
-
const t = e, n = ne("zeroSsl"), i = ne("shm"), o =
|
|
6477
|
+
const t = e, n = ne("zeroSsl"), i = ne("shm"), o = K(() => {
|
|
6476
6478
|
var T;
|
|
6477
6479
|
const E = {};
|
|
6478
6480
|
if ((T = t.formSchema) != null && T.fields)
|
|
6479
6481
|
for (const I of t.formSchema.fields)
|
|
6480
6482
|
E[I.model] = I;
|
|
6481
6483
|
return E;
|
|
6482
|
-
}), a =
|
|
6484
|
+
}), a = K(() => {
|
|
6483
6485
|
var T;
|
|
6484
6486
|
const E = Je(vp);
|
|
6485
6487
|
for (const I of E.fields) {
|
|
@@ -6487,7 +6489,7 @@ const hp = /* @__PURE__ */ Z(op, [["render", fp], ["__scopeId", "data-v-5cf4e4e3
|
|
|
6487
6489
|
I.help === void 0 && typeof L == "string" && (I.help = L);
|
|
6488
6490
|
}
|
|
6489
6491
|
return E;
|
|
6490
|
-
}), s =
|
|
6492
|
+
}), s = K(() => {
|
|
6491
6493
|
var T;
|
|
6492
6494
|
const E = Je(_p);
|
|
6493
6495
|
for (const I of E.fields) {
|
|
@@ -6495,7 +6497,7 @@ const hp = /* @__PURE__ */ Z(op, [["render", fp], ["__scopeId", "data-v-5cf4e4e3
|
|
|
6495
6497
|
I.help === void 0 && typeof L == "string" && (I.help = L);
|
|
6496
6498
|
}
|
|
6497
6499
|
return E;
|
|
6498
|
-
}), l =
|
|
6500
|
+
}), l = K(() => {
|
|
6499
6501
|
var T;
|
|
6500
6502
|
const E = Je(Tp);
|
|
6501
6503
|
for (const I of E.fields) {
|
|
@@ -6503,25 +6505,25 @@ const hp = /* @__PURE__ */ Z(op, [["render", fp], ["__scopeId", "data-v-5cf4e4e3
|
|
|
6503
6505
|
I.help === void 0 && typeof L == "string" && (I.help = L);
|
|
6504
6506
|
}
|
|
6505
6507
|
return E;
|
|
6506
|
-
}), d =
|
|
6508
|
+
}), d = K(() => ({
|
|
6507
6509
|
fields: t.formSchema.fields.filter((E) => !E.model.startsWith("config") && E.model !== "tags")
|
|
6508
|
-
})), u =
|
|
6510
|
+
})), u = K(() => ({
|
|
6509
6511
|
fields: a.value.fields.filter(
|
|
6510
6512
|
(T) => !s.value.fields.some((I) => I.model === T.model) && !l.value.fields.some((I) => I.model === T.model)
|
|
6511
6513
|
)
|
|
6512
|
-
})), g =
|
|
6514
|
+
})), g = K(() => ({
|
|
6513
6515
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage") && !T.model.startsWith("config-storage_config-consul") && !T.model.startsWith("config-storage_config-redis") && !T.model.startsWith("config-storage_config-shm") && !T.model.startsWith("config-storage_config-vault"))
|
|
6514
|
-
})), f =
|
|
6516
|
+
})), f = K(() => ({
|
|
6515
6517
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-consul"))
|
|
6516
|
-
})), p =
|
|
6518
|
+
})), p = K(() => ({
|
|
6517
6519
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-redis"))
|
|
6518
|
-
})), S =
|
|
6520
|
+
})), S = K(() => ({
|
|
6519
6521
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-shm"))
|
|
6520
|
-
})), F =
|
|
6522
|
+
})), F = K(() => ({
|
|
6521
6523
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-vault"))
|
|
6522
|
-
})), y =
|
|
6524
|
+
})), y = K(() => ({
|
|
6523
6525
|
fields: t.formSchema.fields.filter((E) => E.model.startsWith("config") && !u.value.fields.filter((T) => T.model === E.model).length && !g.value.fields.filter((T) => T.model === E.model).length || E.model === "tags")
|
|
6524
|
-
})), D =
|
|
6526
|
+
})), D = K(() => t.formModel.id && t.isEditing || !t.isEditing), U = [
|
|
6525
6527
|
{
|
|
6526
6528
|
hash: "#general",
|
|
6527
6529
|
title: "General"
|
|
@@ -6675,7 +6677,7 @@ const hp = /* @__PURE__ */ Z(op, [["render", fp], ["__scopeId", "data-v-5cf4e4e3
|
|
|
6675
6677
|
}), Op = /* @__PURE__ */ Z(Ip, [["__scopeId", "data-v-07cecf5b"]]), Cp = { class: "rla-form-basic-fields" }, Rp = { class: "rla-form-request-limits-subtitle" }, Fp = { class: "rla-form-request-limits-content" }, kp = { class: "rla-form-window-type" }, Np = ["innerHTML"], Up = { class: "rla-form-window-type-radios" }, Lp = { class: "rla-form-request-limits-items" }, Dp = { class: "rla-form-request-limits-row" }, Pp = ["id"], $p = { class: "rla-form-request-limits-actions" }, Vp = {
|
|
6676
6678
|
key: 0,
|
|
6677
6679
|
class: "rla-form-request-limits-examples"
|
|
6678
|
-
}, jp = { class: "rla-form-request-limits-examples-badges" },
|
|
6680
|
+
}, jp = { class: "rla-form-request-limits-examples-badges" }, xp = ["innerHTML"], Kp = {
|
|
6679
6681
|
id: "rla-form-error-legend",
|
|
6680
6682
|
class: "rla-form-error-inputs"
|
|
6681
6683
|
}, qp = /* @__PURE__ */ pe({
|
|
@@ -6754,11 +6756,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6754
6756
|
"selectionGroup",
|
|
6755
6757
|
"enabled",
|
|
6756
6758
|
...["identifier", "limit", "window_size", "error_code", "error_message"].map((m) => `config-${m}`)
|
|
6757
|
-
]), i = (m) => m === void 0 ? !1 : n.has(m), { t: o } = Ue("en-us", Le), a = e, s =
|
|
6759
|
+
]), i = (m) => m === void 0 ? !1 : n.has(m), { t: o } = Ue("en-us", Le), a = e, s = K(() => {
|
|
6758
6760
|
var w, O, H;
|
|
6759
6761
|
const m = (O = (w = a.formSchema) == null ? void 0 : w.fields) == null ? void 0 : O.find((ue) => ue.type === "selectionGroup" && ue.model === "selectionGroup");
|
|
6760
6762
|
return { fields: [(H = a.formSchema) == null ? void 0 : H.fields.find((ue) => ue.model === "enabled"), m].filter(Boolean) };
|
|
6761
|
-
}), l =
|
|
6763
|
+
}), l = K(() => {
|
|
6762
6764
|
var ue, De;
|
|
6763
6765
|
const m = ((De = (ue = a.formSchema) == null ? void 0 : ue.fields) == null ? void 0 : De.filter((ge) => !i(ge.model))) ?? [], b = [], w = [], O = [];
|
|
6764
6766
|
let H = !1;
|
|
@@ -6777,13 +6779,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6777
6779
|
redis: a.enableRedisPartial ? { fields: [{ fields: w, id: "_redis", model: "__redis_partial", redisType: a.formSchema._supported_redis_partial_type }] } : { fields: w },
|
|
6778
6780
|
afterStrategy: { fields: O }
|
|
6779
6781
|
};
|
|
6780
|
-
}), d =
|
|
6782
|
+
}), d = K(() => {
|
|
6781
6783
|
const m = a.formModel["config-window_type"];
|
|
6782
6784
|
return Object.prototype.hasOwnProperty.call(t, m) ? t[m] : [];
|
|
6783
|
-
}), u =
|
|
6785
|
+
}), u = K(() => {
|
|
6784
6786
|
var m, b;
|
|
6785
6787
|
return (b = (m = a.formSchema) == null ? void 0 : m.fields) == null ? void 0 : b.find((w) => w.model === "config-identifier");
|
|
6786
|
-
}), g =
|
|
6788
|
+
}), g = K(
|
|
6787
6789
|
() => {
|
|
6788
6790
|
var m, b, w;
|
|
6789
6791
|
return (((w = (b = (m = a.formSchema) == null ? void 0 : m.fields) == null ? void 0 : b.find((O) => O.model === "config-identifier")) == null ? void 0 : w.values) ?? []).map((O) => ({
|
|
@@ -6791,16 +6793,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6791
6793
|
value: O
|
|
6792
6794
|
}));
|
|
6793
6795
|
}
|
|
6794
|
-
), f = ne(), p = ne(!0), S =
|
|
6796
|
+
), f = ne(), p = ne(!0), S = K(
|
|
6795
6797
|
() => {
|
|
6796
6798
|
var m, b, w;
|
|
6797
6799
|
return a.formModel["config-window_type"] ?? ((w = (b = (m = a.formSchema) == null ? void 0 : m.fields) == null ? void 0 : b.find((O) => O.model === "config-window_type")) == null ? void 0 : w.default);
|
|
6798
6800
|
}
|
|
6799
|
-
), F =
|
|
6801
|
+
), F = K(() => {
|
|
6800
6802
|
var b, w, O, H, ue, De;
|
|
6801
6803
|
const m = (O = (w = (b = a.formSchema) == null ? void 0 : b.fields) == null ? void 0 : w.find((ge) => ge.model === "config-window_type")) == null ? void 0 : O.default;
|
|
6802
6804
|
return (((De = (ue = (H = a.formSchema) == null ? void 0 : H.fields) == null ? void 0 : ue.find((ge) => ge.model === "config-window_type")) == null ? void 0 : De.values) ?? []).sort((ge, nt) => ge === m ? -1 : nt === m ? 1 : 0);
|
|
6803
|
-
}), y =
|
|
6805
|
+
}), y = K(() => {
|
|
6804
6806
|
var b;
|
|
6805
6807
|
const m = (b = a.formModel["config-limit"]) == null ? void 0 : b.map((w, O) => {
|
|
6806
6808
|
var H, ue;
|
|
@@ -6810,17 +6812,17 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6810
6812
|
};
|
|
6811
6813
|
});
|
|
6812
6814
|
return !Array.isArray(m) || m.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : m;
|
|
6813
|
-
}), D =
|
|
6815
|
+
}), D = K(
|
|
6814
6816
|
() => {
|
|
6815
6817
|
var m, b, w, O;
|
|
6816
6818
|
return ((m = a.formModel) == null ? void 0 : m["config-identifier"]) ?? ((O = (w = (b = a.formSchema) == null ? void 0 : b.fields) == null ? void 0 : w.find((H) => H.model === "config-identifier")) == null ? void 0 : O.default);
|
|
6817
6819
|
}
|
|
6818
|
-
), U =
|
|
6820
|
+
), U = K(
|
|
6819
6821
|
() => {
|
|
6820
6822
|
var m, b, w, O;
|
|
6821
6823
|
return ((m = a.formModel) == null ? void 0 : m["config-error_code"]) ?? ((O = (w = (b = a.formSchema) == null ? void 0 : b.fields) == null ? void 0 : w.find((H) => H.model === "config-error_code")) == null ? void 0 : O.default);
|
|
6822
6824
|
}
|
|
6823
|
-
), z =
|
|
6825
|
+
), z = K(
|
|
6824
6826
|
() => {
|
|
6825
6827
|
var m, b, w, O;
|
|
6826
6828
|
return ((m = a.formModel) == null ? void 0 : m["config-error_message"]) ?? ((O = (w = (b = a.formSchema) == null ? void 0 : b.fields) == null ? void 0 : w.find((H) => H.model === "config-error_message")) == null ? void 0 : O.default);
|
|
@@ -7028,7 +7030,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
7028
7030
|
"label-tooltip": M(() => [
|
|
7029
7031
|
h("div", {
|
|
7030
7032
|
innerHTML: u.value && u.value.help
|
|
7031
|
-
}, null, 8,
|
|
7033
|
+
}, null, 8, xp)
|
|
7032
7034
|
]),
|
|
7033
7035
|
_: 1
|
|
7034
7036
|
}, 8, ["modelValue", "items", "label"]),
|
|
@@ -7047,7 +7049,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
7047
7049
|
]),
|
|
7048
7050
|
_: 1
|
|
7049
7051
|
}, 8, ["info"]),
|
|
7050
|
-
h("legend",
|
|
7052
|
+
h("legend", Kp, [
|
|
7051
7053
|
R(H, {
|
|
7052
7054
|
class: "input-error-code",
|
|
7053
7055
|
"model-value": U.value && U.value.toString(),
|