@kong-ui-public/forms 4.33.13 → 4.33.14-pr.3643.d418d704d.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 +139 -139
- package/dist/forms.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/components/forms/RLAForm.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/forms.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as _, createElementVNode as c, toDisplayString as V, normalizeClass as ee, createVNode as S, defineComponent as ye, provide as rn, resolveComponent as k, withCtx as A, renderSlot as Se, unref as U, createTextVNode as Z, useModel as Ps, createBlock as F, createSlots as Qe, mergeModels as na, inject as an, ref as oe, onMounted as
|
|
1
|
+
import { openBlock as d, createElementBlock as _, createElementVNode as c, toDisplayString as V, normalizeClass as ee, createVNode as S, defineComponent as ye, provide as rn, resolveComponent as k, withCtx as A, renderSlot as Se, unref as U, createTextVNode as Z, useModel as Ps, createBlock as F, createSlots as Qe, mergeModels as na, inject as an, ref as oe, onMounted as _i, watch as ln, resolveDynamicComponent as se, Fragment as G, renderList as ae, computed as x, toRefs as Tt, onBeforeMount as Si, mergeProps as et, Transition as Ds, createCommentVNode as K, resolveDirective as ro, withDirectives as ke, vModelText as Jt, vModelCheckbox as Vs, vModelSelect as Ks, vModelDynamic as lo, isRef as Vt, toRef as co, vModelRadio as js, vShow as xs, withModifiers as ia, normalizeProps as zs, guardReactiveProps as $s, useSlots as An, nextTick as aa } from "vue";
|
|
2
2
|
import { createI18n as Pe } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as Kt, SearchIcon as qs, AddIcon as wn, WorldIcon as Bs, KeyIcon as Hs, CloseIcon as Gs, BookIcon as Ys, RemoveIcon as Ws } from "@kong/icons";
|
|
4
4
|
import { isAxiosError as Zs } from "axios";
|
|
5
|
-
import { useStringHelpers as Xs, useErrors as Js, useDebouncedFilter as Qs, useAxios as
|
|
5
|
+
import { useStringHelpers as Xs, useErrors as Js, useDebouncedFilter as Qs, useAxios as mi } from "@kong-ui-public/entities-shared";
|
|
6
6
|
function uo(e, t) {
|
|
7
7
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o && t(e[n], n, e) !== !1; )
|
|
8
8
|
;
|
|
@@ -73,18 +73,18 @@ ie[Tr] = ie[Mr] = ie[Lr] = ie[Ar] = ie[Pr] = ie[wr] = ie[Er] = ie[Ir] = ie[Cr] =
|
|
|
73
73
|
function Hr(e) {
|
|
74
74
|
return ft(e) && vo(e.length) && !!ie[mt(e)];
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ti(e) {
|
|
77
77
|
return function(t) {
|
|
78
78
|
return e(t);
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
var bo = typeof exports == "object" && exports && !exports.nodeType && exports, Qt = bo && typeof module == "object" && module && !module.nodeType && module, Gr = Qt && Qt.exports === bo,
|
|
81
|
+
var bo = typeof exports == "object" && exports && !exports.nodeType && exports, Qt = bo && typeof module == "object" && module && !module.nodeType && module, Gr = Qt && Qt.exports === bo, ei = Gr && mo.process, Pt = (function() {
|
|
82
82
|
try {
|
|
83
83
|
var e = Qt && Qt.require && Qt.require("util").types;
|
|
84
|
-
return e ||
|
|
84
|
+
return e || ei && ei.binding && ei.binding("util");
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
|
-
})(), da = Pt && Pt.isTypedArray, Yr = da ?
|
|
87
|
+
})(), da = Pt && Pt.isTypedArray, Yr = da ? Ti(da) : Hr, Wr = Object.prototype, Zr = Wr.hasOwnProperty;
|
|
88
88
|
function _o(e, t) {
|
|
89
89
|
var n = ht(e), o = !n && pr(e), a = !n && !o && go(e), i = !n && !o && !a && Yr(e), l = n || o || a || i, r = l ? nr(e.length, String) : [], f = r.length;
|
|
90
90
|
for (var u in e)
|
|
@@ -96,7 +96,7 @@ function _o(e, t) {
|
|
|
96
96
|
return r;
|
|
97
97
|
}
|
|
98
98
|
var Xr = Object.prototype;
|
|
99
|
-
function
|
|
99
|
+
function Mi(e) {
|
|
100
100
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Xr;
|
|
101
101
|
return e === n;
|
|
102
102
|
}
|
|
@@ -107,7 +107,7 @@ function So(e, t) {
|
|
|
107
107
|
}
|
|
108
108
|
var Jr = So(Object.keys, Object), Qr = Object.prototype, el = Qr.hasOwnProperty;
|
|
109
109
|
function tl(e) {
|
|
110
|
-
if (!
|
|
110
|
+
if (!Mi(e))
|
|
111
111
|
return Jr(e);
|
|
112
112
|
var t = [];
|
|
113
113
|
for (var n in Object(e))
|
|
@@ -146,11 +146,11 @@ function rl(e, t) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
var ll = rl(sl);
|
|
149
|
-
function
|
|
149
|
+
function Ai(e) {
|
|
150
150
|
return e;
|
|
151
151
|
}
|
|
152
152
|
function dl(e) {
|
|
153
|
-
return typeof e == "function" ? e :
|
|
153
|
+
return typeof e == "function" ? e : Ai;
|
|
154
154
|
}
|
|
155
155
|
function Oe(e, t) {
|
|
156
156
|
var n = ht(e) ? uo : ll;
|
|
@@ -167,8 +167,8 @@ function fl(e, t) {
|
|
|
167
167
|
var n = typeof e;
|
|
168
168
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || Cn(e) ? !0 : ml.test(e) || !ul.test(e) || t != null && e in Object(t);
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
var e = /[^.]+$/.exec(
|
|
170
|
+
var ti = je["__core-js_shared__"], ca = (function() {
|
|
171
|
+
var e = /[^.]+$/.exec(ti && ti.keys && ti.keys.IE_PROTO || "");
|
|
172
172
|
return e ? "Symbol(src)_1." + e : "";
|
|
173
173
|
})();
|
|
174
174
|
function hl(e) {
|
|
@@ -329,7 +329,7 @@ nt.prototype.get = Gl;
|
|
|
329
329
|
nt.prototype.has = Yl;
|
|
330
330
|
nt.prototype.set = Wl;
|
|
331
331
|
var Zl = "Expected a function";
|
|
332
|
-
function
|
|
332
|
+
function wi(e, t) {
|
|
333
333
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
334
334
|
throw new TypeError(Zl);
|
|
335
335
|
var n = function() {
|
|
@@ -339,12 +339,12 @@ function Ai(e, t) {
|
|
|
339
339
|
var l = e.apply(this, o);
|
|
340
340
|
return n.cache = i.set(a, l) || i, l;
|
|
341
341
|
};
|
|
342
|
-
return n.cache = new (
|
|
342
|
+
return n.cache = new (wi.Cache || nt)(), n;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
wi.Cache = nt;
|
|
345
345
|
var Xl = 500;
|
|
346
346
|
function Jl(e) {
|
|
347
|
-
var t =
|
|
347
|
+
var t = wi(e, function(o) {
|
|
348
348
|
return n.size === Xl && n.clear(), o;
|
|
349
349
|
}), n = t.cache;
|
|
350
350
|
return t;
|
|
@@ -396,7 +396,7 @@ function Q(e, t, n) {
|
|
|
396
396
|
function ge(e) {
|
|
397
397
|
return e == null;
|
|
398
398
|
}
|
|
399
|
-
const Ke = "kong-ui-forms-api",
|
|
399
|
+
const Ke = "kong-ui-forms-api", Ei = "kong-ui-forms-config", sd = "redis-partial-list-fetcher-key", wy = "redis-partial-info", jt = "autofill", Le = "autofillSlot", We = {
|
|
400
400
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
401
401
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
402
402
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
@@ -443,37 +443,37 @@ function md(e, t) {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
const Ao = Object.entries, ha = Object.setPrototypeOf, fd = Object.isFrozen, hd = Object.getPrototypeOf, pd = Object.getOwnPropertyDescriptor;
|
|
446
|
-
let Me = Object.freeze, Ae = Object.seal, Ft = Object.create, wo = typeof Reflect < "u" && Reflect,
|
|
446
|
+
let Me = Object.freeze, Ae = Object.seal, Ft = Object.create, wo = typeof Reflect < "u" && Reflect, fi = wo.apply, hi = wo.construct;
|
|
447
447
|
Me || (Me = function(t) {
|
|
448
448
|
return t;
|
|
449
449
|
});
|
|
450
450
|
Ae || (Ae = function(t) {
|
|
451
451
|
return t;
|
|
452
452
|
});
|
|
453
|
-
|
|
453
|
+
fi || (fi = function(t, n) {
|
|
454
454
|
for (var o = arguments.length, a = new Array(o > 2 ? o - 2 : 0), i = 2; i < o; i++)
|
|
455
455
|
a[i - 2] = arguments[i];
|
|
456
456
|
return t.apply(n, a);
|
|
457
457
|
});
|
|
458
|
-
|
|
458
|
+
hi || (hi = function(t) {
|
|
459
459
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
460
460
|
o[a - 1] = arguments[a];
|
|
461
461
|
return new t(...o);
|
|
462
462
|
});
|
|
463
|
-
const kt = ve(Array.prototype.forEach), gd = ve(Array.prototype.lastIndexOf), pa = ve(Array.prototype.pop), Rt = ve(Array.prototype.push), yd = ve(Array.prototype.splice), ct = Array.isArray, Xt = ve(String.prototype.toLowerCase),
|
|
463
|
+
const kt = ve(Array.prototype.forEach), gd = ve(Array.prototype.lastIndexOf), pa = ve(Array.prototype.pop), Rt = ve(Array.prototype.push), yd = ve(Array.prototype.splice), ct = Array.isArray, Xt = ve(String.prototype.toLowerCase), ni = ve(String.prototype.toString), ga = ve(String.prototype.match), Yt = ve(String.prototype.replace), ya = ve(String.prototype.indexOf), vd = ve(String.prototype.trim), bd = ve(Number.prototype.toString), _d = ve(Boolean.prototype.toString), va = typeof BigInt > "u" ? null : ve(BigInt.prototype.toString), ba = typeof Symbol > "u" ? null : ve(Symbol.prototype.toString), _e = ve(Object.prototype.hasOwnProperty), Wt = ve(Object.prototype.toString), be = ve(RegExp.prototype.test), yt = Sd(TypeError);
|
|
464
464
|
function ve(e) {
|
|
465
465
|
return function(t) {
|
|
466
466
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
467
467
|
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
468
468
|
o[a - 1] = arguments[a];
|
|
469
|
-
return
|
|
469
|
+
return fi(e, t, o);
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
472
|
function Sd(e) {
|
|
473
473
|
return function() {
|
|
474
474
|
for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
|
|
475
475
|
n[o] = arguments[o];
|
|
476
|
-
return
|
|
476
|
+
return hi(e, n);
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
function X(e, t) {
|
|
@@ -557,7 +557,7 @@ function Ad(e) {
|
|
|
557
557
|
return !1;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
const _a = Me(["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"]),
|
|
560
|
+
const _a = Me(["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"]), ii = Me(["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"]), ai = Me(["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"]), wd = Me(["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"]), oi = Me(["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"]), Ed = Me(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Sa = Me(["#text"]), Ta = Me(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "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"]), si = Me(["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", "dominant-baseline", "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-orientation", "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"]), Ma = Me(["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"]), vn = Me(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Id = Ae(/{{[\w\W]*|^[\w\W]*}}/g), Cd = Ae(/<%[\w\W]*|^[\w\W]*%>/g), Od = Ae(/\${[\w\W]*/g), kd = Ae(/^data-[\-\w.\u00B7-\uFFFF]+$/), Rd = Ae(/^aria-[\-\w]+$/), Aa = Ae(
|
|
561
561
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
562
562
|
// eslint-disable-line no-useless-escape
|
|
563
563
|
), Fd = Ae(/^(?:\w+script|data):/i), Nd = Ae(
|
|
@@ -650,14 +650,14 @@ function Eo() {
|
|
|
650
650
|
}
|
|
651
651
|
}, Ee = function() {
|
|
652
652
|
return E || (H = Kd(m, a), E = !0), H;
|
|
653
|
-
}, Ze = n, zt = Ze.implementation, dn = Ze.createNodeIterator,
|
|
653
|
+
}, Ze = n, zt = Ze.implementation, dn = Ze.createNodeIterator, Ln = Ze.createDocumentFragment, Pn = Ze.getElementsByTagName, W = o.importNode;
|
|
654
654
|
let B = Ia();
|
|
655
655
|
t.isSupported = typeof Ao == "function" && typeof N == "function" && zt && zt.createHTMLDocument !== void 0;
|
|
656
656
|
const $t = Id, hs = Cd, ps = Od, gs = kd, ys = Rd, vs = Fd, Ri = Nd, bs = Ld;
|
|
657
657
|
let Fi = Aa, ce = null;
|
|
658
|
-
const Ni = X({}, [..._a, ...
|
|
658
|
+
const Ni = X({}, [..._a, ...ii, ...ai, ...oi, ...Sa]);
|
|
659
659
|
let ue = null;
|
|
660
|
-
const Ui = X({}, [...Ta, ...
|
|
660
|
+
const Ui = X({}, [...Ta, ...si, ...Ma, ...vn]);
|
|
661
661
|
let me = Object.seal(Ft(null, {
|
|
662
662
|
tagNameCheck: {
|
|
663
663
|
writable: !0,
|
|
@@ -692,10 +692,10 @@ function Eo() {
|
|
|
692
692
|
value: null
|
|
693
693
|
}
|
|
694
694
|
}));
|
|
695
|
-
let Pi = !0,
|
|
695
|
+
let Pi = !0, Dn = !0, Di = !1, Vi = !0, at = !1, ot = !0, pt = !1, Vn = !1, Kn = null, jn = null, xn = !1, wt = !1, cn = !1, un = !1, Ki = !0, ji = !1;
|
|
696
696
|
const xi = "user-content-";
|
|
697
|
-
let
|
|
698
|
-
const
|
|
697
|
+
let zn = !0, $n = !1, Et = {}, Be = null;
|
|
698
|
+
const qn = X({}, [
|
|
699
699
|
"annotation-xml",
|
|
700
700
|
"audio",
|
|
701
701
|
"colgroup",
|
|
@@ -734,45 +734,45 @@ function Eo() {
|
|
|
734
734
|
]);
|
|
735
735
|
let zi = null;
|
|
736
736
|
const $i = X({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
737
|
-
let
|
|
737
|
+
let Bn = null;
|
|
738
738
|
const qi = X({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), mn = "http://www.w3.org/1998/Math/MathML", fn = "http://www.w3.org/2000/svg", He = "http://www.w3.org/1999/xhtml";
|
|
739
|
-
let It = He,
|
|
740
|
-
const _s = X({}, [mn, fn, He],
|
|
741
|
-
let
|
|
739
|
+
let It = He, Hn = !1, Gn = null;
|
|
740
|
+
const _s = X({}, [mn, fn, He], ni), Bi = Me(["mi", "mo", "mn", "ms", "mtext"]);
|
|
741
|
+
let Yn = X({}, Bi);
|
|
742
742
|
const Hi = Me(["annotation-xml"]);
|
|
743
|
-
let
|
|
743
|
+
let Wn = X({}, Hi);
|
|
744
744
|
const Ss = X({}, ["title", "style", "font", "a", "script"]);
|
|
745
745
|
let Bt = null;
|
|
746
746
|
const Ts = ["application/xhtml+xml", "text/html"], Ms = "text/html";
|
|
747
747
|
let le = null, Ct = null;
|
|
748
748
|
const As = n.createElement("form"), Gi = function(s) {
|
|
749
749
|
return s instanceof RegExp || s instanceof Function;
|
|
750
|
-
},
|
|
750
|
+
}, Zn = function() {
|
|
751
751
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
752
752
|
if (Ct && Ct === s)
|
|
753
753
|
return;
|
|
754
754
|
(!s || typeof s != "object") && (s = {}), s = Ce(s), Bt = // eslint-disable-next-line unicorn/prefer-includes
|
|
755
|
-
Ts.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Ms : s.PARSER_MEDIA_TYPE, le = Bt === "application/xhtml+xml" ?
|
|
755
|
+
Ts.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? Ms : s.PARSER_MEDIA_TYPE, le = Bt === "application/xhtml+xml" ? ni : Xt, ce = rt(s, "ALLOWED_TAGS", Ni, {
|
|
756
756
|
transform: le
|
|
757
757
|
}), ue = rt(s, "ALLOWED_ATTR", Ui, {
|
|
758
758
|
transform: le
|
|
759
|
-
}),
|
|
760
|
-
transform:
|
|
761
|
-
}),
|
|
759
|
+
}), Gn = rt(s, "ALLOWED_NAMESPACES", _s, {
|
|
760
|
+
transform: ni
|
|
761
|
+
}), Bn = rt(s, "ADD_URI_SAFE_ATTR", qi, {
|
|
762
762
|
transform: le,
|
|
763
763
|
base: qi
|
|
764
764
|
}), zi = rt(s, "ADD_DATA_URI_TAGS", $i, {
|
|
765
765
|
transform: le,
|
|
766
766
|
base: $i
|
|
767
|
-
}), Be = rt(s, "FORBID_CONTENTS",
|
|
767
|
+
}), Be = rt(s, "FORBID_CONTENTS", qn, {
|
|
768
768
|
transform: le
|
|
769
769
|
}), qt = rt(s, "FORBID_TAGS", Ce({}), {
|
|
770
770
|
transform: le
|
|
771
771
|
}), Li = rt(s, "FORBID_ATTR", Ce({}), {
|
|
772
772
|
transform: le
|
|
773
|
-
}), Et = _e(s, "USE_PROFILES") ? s.USE_PROFILES && typeof s.USE_PROFILES == "object" ? Ce(s.USE_PROFILES) : s.USE_PROFILES : !1, Pi = s.ALLOW_ARIA_ATTR !== !1,
|
|
773
|
+
}), Et = _e(s, "USE_PROFILES") ? s.USE_PROFILES && typeof s.USE_PROFILES == "object" ? Ce(s.USE_PROFILES) : s.USE_PROFILES : !1, Pi = s.ALLOW_ARIA_ATTR !== !1, Dn = s.ALLOW_DATA_ATTR !== !1, Di = s.ALLOW_UNKNOWN_PROTOCOLS || !1, Vi = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, at = s.SAFE_FOR_TEMPLATES || !1, ot = s.SAFE_FOR_XML !== !1, pt = s.WHOLE_DOCUMENT || !1, wt = s.RETURN_DOM || !1, cn = s.RETURN_DOM_FRAGMENT || !1, un = s.RETURN_TRUSTED_TYPE || !1, xn = s.FORCE_BODY || !1, Ki = s.SANITIZE_DOM !== !1, ji = s.SANITIZE_NAMED_PROPS || !1, zn = s.KEEP_CONTENT !== !1, $n = s.IN_PLACE || !1, Fi = Ad(s.ALLOWED_URI_REGEXP) ? s.ALLOWED_URI_REGEXP : Aa, It = typeof s.NAMESPACE == "string" ? s.NAMESPACE : He, Yn = _e(s, "MATHML_TEXT_INTEGRATION_POINTS") && s.MATHML_TEXT_INTEGRATION_POINTS && typeof s.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Ce(s.MATHML_TEXT_INTEGRATION_POINTS) : X({}, Bi), Wn = _e(s, "HTML_INTEGRATION_POINTS") && s.HTML_INTEGRATION_POINTS && typeof s.HTML_INTEGRATION_POINTS == "object" ? Ce(s.HTML_INTEGRATION_POINTS) : X({}, Hi);
|
|
774
774
|
const h = _e(s, "CUSTOM_ELEMENT_HANDLING") && s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING == "object" ? Ce(s.CUSTOM_ELEMENT_HANDLING) : Ft(null);
|
|
775
|
-
if (me = Ft(null), _e(h, "tagNameCheck") && Gi(h.tagNameCheck) && (me.tagNameCheck = h.tagNameCheck), _e(h, "attributeNameCheck") && Gi(h.attributeNameCheck) && (me.attributeNameCheck = h.attributeNameCheck), _e(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (me.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), Ae(me), at && (
|
|
775
|
+
if (me = Ft(null), _e(h, "tagNameCheck") && Gi(h.tagNameCheck) && (me.tagNameCheck = h.tagNameCheck), _e(h, "attributeNameCheck") && Gi(h.attributeNameCheck) && (me.attributeNameCheck = h.attributeNameCheck), _e(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (me.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), Ae(me), at && (Dn = !1), cn && (wt = !0), Et && (ce = X({}, Sa), ue = Ft(null), Et.html === !0 && (X(ce, _a), X(ue, Ta)), Et.svg === !0 && (X(ce, ii), X(ue, si), X(ue, vn)), Et.svgFilters === !0 && (X(ce, ai), X(ue, si), X(ue, vn)), Et.mathMl === !0 && (X(ce, oi), X(ue, Ma), X(ue, vn))), it.tagCheck = null, it.attributeCheck = null, _e(s, "ADD_TAGS") && (typeof s.ADD_TAGS == "function" ? it.tagCheck = s.ADD_TAGS : ct(s.ADD_TAGS) && (ce === Ni && (ce = Ce(ce)), X(ce, s.ADD_TAGS, le))), _e(s, "ADD_ATTR") && (typeof s.ADD_ATTR == "function" ? it.attributeCheck = s.ADD_ATTR : ct(s.ADD_ATTR) && (ue === Ui && (ue = Ce(ue)), X(ue, s.ADD_ATTR, le))), _e(s, "ADD_URI_SAFE_ATTR") && ct(s.ADD_URI_SAFE_ATTR) && X(Bn, s.ADD_URI_SAFE_ATTR, le), _e(s, "FORBID_CONTENTS") && ct(s.FORBID_CONTENTS) && (Be === qn && (Be = Ce(Be)), X(Be, s.FORBID_CONTENTS, le)), _e(s, "ADD_FORBID_CONTENTS") && ct(s.ADD_FORBID_CONTENTS) && (Be === qn && (Be = Ce(Be)), X(Be, s.ADD_FORBID_CONTENTS, le)), zn && (ce["#text"] = !0), pt && X(ce, ["html", "head", "body"]), ce.table && (X(ce, ["tbody"]), delete qt.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
776
776
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
777
777
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
778
778
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -786,12 +786,12 @@ function Eo() {
|
|
|
786
786
|
}
|
|
787
787
|
} else s.TRUSTED_TYPES_POLICY === null ? (p = void 0, j = "") : (p === void 0 && (p = Ee()), p && typeof j == "string" && (j = $("")));
|
|
788
788
|
Me && Me(s), Ct = s;
|
|
789
|
-
}, Yi = X({}, [...
|
|
790
|
-
return h.namespaceURI === He ? s === "svg" : h.namespaceURI === mn ? s === "svg" && (w === "annotation-xml" ||
|
|
789
|
+
}, Yi = X({}, [...ii, ...ai, ...wd]), Wi = X({}, [...oi, ...Ed]), ws = function(s, h, w) {
|
|
790
|
+
return h.namespaceURI === He ? s === "svg" : h.namespaceURI === mn ? s === "svg" && (w === "annotation-xml" || Yn[w]) : !!Yi[s];
|
|
791
791
|
}, Es = function(s, h, w) {
|
|
792
|
-
return h.namespaceURI === He ? s === "math" : h.namespaceURI === fn ? s === "math" &&
|
|
792
|
+
return h.namespaceURI === He ? s === "math" : h.namespaceURI === fn ? s === "math" && Wn[w] : !!Wi[s];
|
|
793
793
|
}, Is = function(s, h, w) {
|
|
794
|
-
return h.namespaceURI === fn && !
|
|
794
|
+
return h.namespaceURI === fn && !Wn[w] || h.namespaceURI === mn && !Yn[w] ? !1 : !Wi[s] && (Ss[s] || !Yi[s]);
|
|
795
795
|
}, Cs = function(s) {
|
|
796
796
|
let h = N(s);
|
|
797
797
|
(!h || !h.tagName) && (h = {
|
|
@@ -799,7 +799,7 @@ function Eo() {
|
|
|
799
799
|
tagName: "template"
|
|
800
800
|
});
|
|
801
801
|
const w = Xt(s.tagName), P = Xt(h.tagName);
|
|
802
|
-
return
|
|
802
|
+
return Gn[s.namespaceURI] ? s.namespaceURI === fn ? ws(w, h, P) : s.namespaceURI === mn ? Es(w, h, P) : s.namespaceURI === He ? Is(w, h, P) : !!(Bt === "application/xhtml+xml" && Gn[s.namespaceURI]) : !1;
|
|
803
803
|
}, st = function(s) {
|
|
804
804
|
Rt(t.removed, {
|
|
805
805
|
element: s
|
|
@@ -811,7 +811,7 @@ function Eo() {
|
|
|
811
811
|
throw yt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
812
812
|
}
|
|
813
813
|
}, hn = function(s) {
|
|
814
|
-
|
|
814
|
+
Xn(s);
|
|
815
815
|
const h = L(s);
|
|
816
816
|
if (h) {
|
|
817
817
|
const P = [];
|
|
@@ -868,7 +868,7 @@ function Eo() {
|
|
|
868
868
|
} catch {
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
},
|
|
871
|
+
}, Xn = function(s) {
|
|
872
872
|
const h = [s];
|
|
873
873
|
for (; h.length > 0; ) {
|
|
874
874
|
const w = h.pop();
|
|
@@ -905,7 +905,7 @@ function Eo() {
|
|
|
905
905
|
}
|
|
906
906
|
}, Zi = function(s) {
|
|
907
907
|
let h = null, w = null;
|
|
908
|
-
if (
|
|
908
|
+
if (xn)
|
|
909
909
|
s = "<remove></remove>" + s;
|
|
910
910
|
else {
|
|
911
911
|
const q = ga(s, /^[\r\n\t ]+/);
|
|
@@ -921,12 +921,12 @@ function Eo() {
|
|
|
921
921
|
if (!h || !h.documentElement) {
|
|
922
922
|
h = zt.createDocument(It, "template", null);
|
|
923
923
|
try {
|
|
924
|
-
h.documentElement.innerHTML =
|
|
924
|
+
h.documentElement.innerHTML = Hn ? j : P;
|
|
925
925
|
} catch {
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
928
|
const z = h.body || h.documentElement;
|
|
929
|
-
return s && w && z.insertBefore(n.createTextNode(w), z.childNodes[0] || null), It === He ?
|
|
929
|
+
return s && w && z.insertBefore(n.createTextNode(w), z.childNodes[0] || null), It === He ? Pn.call(h, pt ? "html" : "body")[0] : pt ? h.documentElement : z;
|
|
930
930
|
}, Xi = function(s) {
|
|
931
931
|
return dn.call(
|
|
932
932
|
s.ownerDocument || s,
|
|
@@ -937,7 +937,7 @@ function Eo() {
|
|
|
937
937
|
);
|
|
938
938
|
}, pn = function(s) {
|
|
939
939
|
return s = Yt(s, $t, " "), s = Yt(s, hs, " "), s = Yt(s, ps, " "), s;
|
|
940
|
-
},
|
|
940
|
+
}, Jn = function(s) {
|
|
941
941
|
var h;
|
|
942
942
|
s.normalize();
|
|
943
943
|
const w = dn.call(
|
|
@@ -952,7 +952,7 @@ function Eo() {
|
|
|
952
952
|
P.data = pn(P.data), P = w.nextNode();
|
|
953
953
|
const z = (h = s.querySelectorAll) === null || h === void 0 ? void 0 : h.call(s, "template");
|
|
954
954
|
z && kt(z, (q) => {
|
|
955
|
-
Ot(q.content) &&
|
|
955
|
+
Ot(q.content) && Jn(q.content);
|
|
956
956
|
});
|
|
957
957
|
}, gn = function(s) {
|
|
958
958
|
const h = v ? v(s) : null;
|
|
@@ -1007,12 +1007,12 @@ function Eo() {
|
|
|
1007
1007
|
}, Fs = function(s, h) {
|
|
1008
1008
|
if (!qt[h] && ea(h) && (me.tagNameCheck instanceof RegExp && be(me.tagNameCheck, h) || me.tagNameCheck instanceof Function && me.tagNameCheck(h)))
|
|
1009
1009
|
return !1;
|
|
1010
|
-
if (
|
|
1010
|
+
if (zn && !Be[h]) {
|
|
1011
1011
|
const w = N(s), P = L(s);
|
|
1012
1012
|
if (P && w) {
|
|
1013
1013
|
const z = P.length;
|
|
1014
1014
|
for (let q = z - 1; q >= 0; --q) {
|
|
1015
|
-
const fe =
|
|
1015
|
+
const fe = $n ? P[q] : I(P[q], !0);
|
|
1016
1016
|
w.insertBefore(fe, T(s));
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
@@ -1048,10 +1048,10 @@ function Eo() {
|
|
|
1048
1048
|
if (Li[h] || ot && h === "patchsrc" || ot && h === "for" && s !== "label" && s !== "output" || Ki && (h === "id" || h === "name") && (w in n || w in As))
|
|
1049
1049
|
return !1;
|
|
1050
1050
|
const P = ue[h] || it.attributeCheck instanceof Function && it.attributeCheck(h, s);
|
|
1051
|
-
if (!(
|
|
1051
|
+
if (!(Dn && be(gs, h))) {
|
|
1052
1052
|
if (!(Pi && be(ys, h))) {
|
|
1053
1053
|
if (P) {
|
|
1054
|
-
if (!
|
|
1054
|
+
if (!Bn[h]) {
|
|
1055
1055
|
if (!be(Fi, Yt(w, Ri, ""))) {
|
|
1056
1056
|
if (!((h === "src" || h === "xlink:href" || h === "href") && s !== "script" && ya(w, "data:") === 0 && zi[s])) {
|
|
1057
1057
|
if (!(Di && !be(vs, Yt(w, Ri, "")))) {
|
|
@@ -1137,10 +1137,10 @@ function Eo() {
|
|
|
1137
1137
|
for (Ge(B.beforeSanitizeShadowDOM, s, null); h = w.nextNode(); )
|
|
1138
1138
|
if (Ge(B.uponSanitizeShadowNode, h, null), Ji(h, s), ta(h), Ot(h.content) && yn(h.content), (M ? M(h) : h.nodeType) === Ne.element) {
|
|
1139
1139
|
const z = Y(h);
|
|
1140
|
-
Ot(z) && (
|
|
1140
|
+
Ot(z) && (Qn(z), yn(z));
|
|
1141
1141
|
}
|
|
1142
1142
|
Ge(B.afterSanitizeShadowDOM, s, null);
|
|
1143
|
-
},
|
|
1143
|
+
}, Qn = function(s) {
|
|
1144
1144
|
const h = [{
|
|
1145
1145
|
node: s,
|
|
1146
1146
|
shadow: null
|
|
@@ -1182,12 +1182,12 @@ function Eo() {
|
|
|
1182
1182
|
};
|
|
1183
1183
|
return t.sanitize = function(O) {
|
|
1184
1184
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = null, w = null, P = null, z = null;
|
|
1185
|
-
if (
|
|
1185
|
+
if (Hn = !O, Hn && (O = "<!-->"), typeof O != "string" && !Ht(O) && (O = Md(O), typeof O != "string"))
|
|
1186
1186
|
throw yt("dirty is not a string, aborting");
|
|
1187
1187
|
if (!t.isSupported)
|
|
1188
1188
|
return O;
|
|
1189
|
-
|
|
1190
|
-
const q =
|
|
1189
|
+
Vn ? (ce = Kn, ue = jn) : Zn(s), (B.uponSanitizeElement.length > 0 || B.uponSanitizeAttribute.length > 0) && (ce = Ce(ce)), B.uponSanitizeAttribute.length > 0 && (ue = Ce(ue)), t.removed = [];
|
|
1190
|
+
const q = $n && typeof O != "string" && Ht(O);
|
|
1191
1191
|
if (q) {
|
|
1192
1192
|
ks(O);
|
|
1193
1193
|
const Re = v ? v(O) : O.nodeName;
|
|
@@ -1199,12 +1199,12 @@ function Eo() {
|
|
|
1199
1199
|
if (gn(O))
|
|
1200
1200
|
throw hn(O), yt("root node is clobbered and cannot be sanitized in-place");
|
|
1201
1201
|
try {
|
|
1202
|
-
|
|
1202
|
+
Qn(O);
|
|
1203
1203
|
} catch (ze) {
|
|
1204
1204
|
throw hn(O), ze;
|
|
1205
1205
|
}
|
|
1206
1206
|
} else if (Ht(O))
|
|
1207
|
-
h = Zi("<!---->"), w = h.ownerDocument.importNode(O, !0), w.nodeType === Ne.element && w.nodeName === "BODY" || w.nodeName === "HTML" ? h = w : h.appendChild(w),
|
|
1207
|
+
h = Zi("<!---->"), w = h.ownerDocument.importNode(O, !0), w.nodeType === Ne.element && w.nodeName === "BODY" || w.nodeName === "HTML" ? h = w : h.appendChild(w), Qn(w);
|
|
1208
1208
|
else {
|
|
1209
1209
|
if (!wt && !at && !pt && // eslint-disable-next-line unicorn/prefer-includes
|
|
1210
1210
|
O.indexOf("<") === -1)
|
|
@@ -1212,23 +1212,23 @@ function Eo() {
|
|
|
1212
1212
|
if (h = Zi(O), !h)
|
|
1213
1213
|
return wt ? null : un ? j : "";
|
|
1214
1214
|
}
|
|
1215
|
-
h &&
|
|
1215
|
+
h && xn && st(h.firstChild);
|
|
1216
1216
|
const fe = q ? O : h, we = Xi(fe);
|
|
1217
1217
|
try {
|
|
1218
1218
|
for (; P = we.nextNode(); )
|
|
1219
1219
|
Ji(P, fe), ta(P), Ot(P.content) && yn(P.content);
|
|
1220
1220
|
} catch (Re) {
|
|
1221
1221
|
throw q && (hn(O), kt(t.removed, (ze) => {
|
|
1222
|
-
ze.element &&
|
|
1222
|
+
ze.element && Xn(ze.element);
|
|
1223
1223
|
})), Re;
|
|
1224
1224
|
}
|
|
1225
1225
|
if (q)
|
|
1226
1226
|
return kt(t.removed, (Re) => {
|
|
1227
|
-
Re.element &&
|
|
1228
|
-
}), at &&
|
|
1227
|
+
Re.element && Xn(Re.element);
|
|
1228
|
+
}), at && Jn(O), O;
|
|
1229
1229
|
if (wt) {
|
|
1230
|
-
if (at &&
|
|
1231
|
-
for (z =
|
|
1230
|
+
if (at && Jn(h), cn)
|
|
1231
|
+
for (z = Ln.call(h.ownerDocument); h.firstChild; )
|
|
1232
1232
|
z.appendChild(h.firstChild);
|
|
1233
1233
|
else
|
|
1234
1234
|
z = h;
|
|
@@ -1239,11 +1239,11 @@ function Eo() {
|
|
|
1239
1239
|
` + xe), at && (xe = pn(xe)), p && un ? $(xe) : xe;
|
|
1240
1240
|
}, t.setConfig = function() {
|
|
1241
1241
|
let O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1242
|
-
|
|
1242
|
+
Zn(O), Vn = !0, Kn = ce, jn = ue;
|
|
1243
1243
|
}, t.clearConfig = function() {
|
|
1244
|
-
Ct = null,
|
|
1244
|
+
Ct = null, Vn = !1, Kn = null, jn = null, p = H, j = "";
|
|
1245
1245
|
}, t.isValidAttribute = function(O, s, h) {
|
|
1246
|
-
Ct ||
|
|
1246
|
+
Ct || Zn({});
|
|
1247
1247
|
const w = le(O), P = le(s);
|
|
1248
1248
|
return Qi(w, P, h);
|
|
1249
1249
|
}, t.addHook = function(O, s) {
|
|
@@ -1262,7 +1262,7 @@ function Eo() {
|
|
|
1262
1262
|
B = Ia();
|
|
1263
1263
|
}, t;
|
|
1264
1264
|
}
|
|
1265
|
-
var
|
|
1265
|
+
var Fn = Eo();
|
|
1266
1266
|
function jd() {
|
|
1267
1267
|
this.__data__ = new tt(), this.size = 0;
|
|
1268
1268
|
}
|
|
@@ -1316,7 +1316,7 @@ function Co(e, t, n) {
|
|
|
1316
1316
|
var o = e[t];
|
|
1317
1317
|
(!(Gd.call(e, t) && On(o, n)) || n === void 0 && !(t in e)) && Io(e, t, n);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Nn(e, t, n, o) {
|
|
1320
1320
|
var a = !n;
|
|
1321
1321
|
n || (n = {});
|
|
1322
1322
|
for (var i = -1, l = t.length; ++i < l; ) {
|
|
@@ -1326,7 +1326,7 @@ function Fn(e, t, n, o) {
|
|
|
1326
1326
|
return n;
|
|
1327
1327
|
}
|
|
1328
1328
|
function Yd(e, t) {
|
|
1329
|
-
return e &&
|
|
1329
|
+
return e && Nn(t, In(t), e);
|
|
1330
1330
|
}
|
|
1331
1331
|
function Wd(e) {
|
|
1332
1332
|
var t = [];
|
|
@@ -1339,16 +1339,16 @@ var Zd = Object.prototype, Xd = Zd.hasOwnProperty;
|
|
|
1339
1339
|
function Jd(e) {
|
|
1340
1340
|
if (!Ue(e))
|
|
1341
1341
|
return Wd(e);
|
|
1342
|
-
var t =
|
|
1342
|
+
var t = Mi(e), n = [];
|
|
1343
1343
|
for (var o in e)
|
|
1344
1344
|
o == "constructor" && (t || !Xd.call(e, o)) || n.push(o);
|
|
1345
1345
|
return n;
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Un(e) {
|
|
1348
1348
|
return En(e) ? _o(e, !0) : Jd(e);
|
|
1349
1349
|
}
|
|
1350
1350
|
function Qd(e, t) {
|
|
1351
|
-
return e &&
|
|
1351
|
+
return e && Nn(t, Un(t), e);
|
|
1352
1352
|
}
|
|
1353
1353
|
var Oo = typeof exports == "object" && exports && !exports.nodeType && exports, Ca = Oo && typeof module == "object" && module && !module.nodeType && module, ec = Ca && Ca.exports === Oo, Oa = ec ? je.Buffer : void 0, ka = Oa ? Oa.allocUnsafe : void 0;
|
|
1354
1354
|
function tc(e, t) {
|
|
@@ -1379,7 +1379,7 @@ var ac = Object.prototype, oc = ac.propertyIsEnumerable, Ra = Object.getOwnPrope
|
|
|
1379
1379
|
}));
|
|
1380
1380
|
} : ko;
|
|
1381
1381
|
function sc(e, t) {
|
|
1382
|
-
return
|
|
1382
|
+
return Nn(e, Ii(e), t);
|
|
1383
1383
|
}
|
|
1384
1384
|
function Ro(e, t) {
|
|
1385
1385
|
for (var n = -1, o = t.length, a = e.length; ++n < o; )
|
|
@@ -1392,7 +1392,7 @@ var Fo = So(Object.getPrototypeOf, Object), rc = Object.getOwnPropertySymbols, N
|
|
|
1392
1392
|
return t;
|
|
1393
1393
|
} : ko;
|
|
1394
1394
|
function lc(e, t) {
|
|
1395
|
-
return
|
|
1395
|
+
return Nn(e, No(e), t);
|
|
1396
1396
|
}
|
|
1397
1397
|
function Uo(e, t, n) {
|
|
1398
1398
|
var o = t(e);
|
|
@@ -1402,10 +1402,10 @@ function dc(e) {
|
|
|
1402
1402
|
return Uo(e, In, Ii);
|
|
1403
1403
|
}
|
|
1404
1404
|
function cc(e) {
|
|
1405
|
-
return Uo(e,
|
|
1405
|
+
return Uo(e, Un, No);
|
|
1406
1406
|
}
|
|
1407
|
-
var
|
|
1408
|
-
(
|
|
1407
|
+
var pi = At(je, "DataView"), gi = At(je, "Promise"), Ut = At(je, "Set"), yi = At(je, "WeakMap"), Fa = "[object Map]", uc = "[object Object]", Na = "[object Promise]", Ua = "[object Set]", La = "[object WeakMap]", Pa = "[object DataView]", mc = Mt(pi), fc = Mt(sn), hc = Mt(gi), pc = Mt(Ut), gc = Mt(yi), Xe = mt;
|
|
1408
|
+
(pi && Xe(new pi(new ArrayBuffer(1))) != Pa || sn && Xe(new sn()) != Fa || gi && Xe(gi.resolve()) != Na || Ut && Xe(new Ut()) != Ua || yi && Xe(new yi()) != La) && (Xe = function(e) {
|
|
1409
1409
|
var t = mt(e), n = t == uc ? e.constructor : void 0, o = n ? Mt(n) : "";
|
|
1410
1410
|
if (o)
|
|
1411
1411
|
switch (o) {
|
|
@@ -1497,17 +1497,17 @@ var ja = Object.create, Bc = /* @__PURE__ */ (function() {
|
|
|
1497
1497
|
};
|
|
1498
1498
|
})();
|
|
1499
1499
|
function Hc(e) {
|
|
1500
|
-
return typeof e.constructor == "function" && !
|
|
1500
|
+
return typeof e.constructor == "function" && !Mi(e) ? Bc(Fo(e)) : {};
|
|
1501
1501
|
}
|
|
1502
1502
|
var Gc = "[object Map]";
|
|
1503
1503
|
function Yc(e) {
|
|
1504
1504
|
return ft(e) && Xe(e) == Gc;
|
|
1505
1505
|
}
|
|
1506
|
-
var xa = Pt && Pt.isMap, Wc = xa ?
|
|
1506
|
+
var xa = Pt && Pt.isMap, Wc = xa ? Ti(xa) : Yc, Zc = "[object Set]";
|
|
1507
1507
|
function Xc(e) {
|
|
1508
1508
|
return ft(e) && Xe(e) == Zc;
|
|
1509
1509
|
}
|
|
1510
|
-
var za = Pt && Pt.isSet, Jc = za ?
|
|
1510
|
+
var za = Pt && Pt.isSet, Jc = za ? Ti(za) : Xc, Qc = 1, eu = 2, tu = 4, Lo = "[object Arguments]", nu = "[object Array]", iu = "[object Boolean]", au = "[object Date]", ou = "[object Error]", Po = "[object Function]", su = "[object GeneratorFunction]", ru = "[object Map]", lu = "[object Number]", Do = "[object Object]", du = "[object RegExp]", cu = "[object Set]", uu = "[object String]", mu = "[object Symbol]", fu = "[object WeakMap]", hu = "[object ArrayBuffer]", pu = "[object DataView]", gu = "[object Float32Array]", yu = "[object Float64Array]", vu = "[object Int8Array]", bu = "[object Int16Array]", _u = "[object Int32Array]", Su = "[object Uint8Array]", Tu = "[object Uint8ClampedArray]", Mu = "[object Uint16Array]", Au = "[object Uint32Array]", ne = {};
|
|
1511
1511
|
ne[Lo] = ne[nu] = ne[hu] = ne[pu] = ne[iu] = ne[au] = ne[gu] = ne[yu] = ne[vu] = ne[bu] = ne[_u] = ne[ru] = ne[lu] = ne[Do] = ne[du] = ne[cu] = ne[uu] = ne[mu] = ne[Su] = ne[Tu] = ne[Mu] = ne[Au] = !0;
|
|
1512
1512
|
ne[ou] = ne[Po] = ne[fu] = !1;
|
|
1513
1513
|
function en(e, t, n, o, a, i) {
|
|
@@ -1542,7 +1542,7 @@ function en(e, t, n, o, a, i) {
|
|
|
1542
1542
|
}) : Wc(e) && e.forEach(function(L, N) {
|
|
1543
1543
|
l.set(N, en(L, t, n, N, e, i));
|
|
1544
1544
|
});
|
|
1545
|
-
var C = u ? f ? cc : dc : f ?
|
|
1545
|
+
var C = u ? f ? cc : dc : f ? Un : In, T = b ? void 0 : C(e);
|
|
1546
1546
|
return uo(T || e, function(L, N) {
|
|
1547
1547
|
T && (N = L, L = e[N]), Co(l, N, en(L, t, n, N, e, i));
|
|
1548
1548
|
}), l;
|
|
@@ -1591,7 +1591,7 @@ const Vo = {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
};
|
|
1594
|
-
var
|
|
1594
|
+
var ri = function() {
|
|
1595
1595
|
return je.Date.now();
|
|
1596
1596
|
}, Cu = /\s/;
|
|
1597
1597
|
function Ou(e) {
|
|
@@ -1604,7 +1604,7 @@ function Ru(e) {
|
|
|
1604
1604
|
return e && e.slice(0, Ou(e) + 1).replace(ku, "");
|
|
1605
1605
|
}
|
|
1606
1606
|
var qa = NaN, Fu = /^[-+]0x[0-9a-f]+$/i, Nu = /^0b[01]+$/i, Uu = /^0o[0-7]+$/i, Lu = parseInt;
|
|
1607
|
-
function
|
|
1607
|
+
function vi(e) {
|
|
1608
1608
|
if (typeof e == "number")
|
|
1609
1609
|
return e;
|
|
1610
1610
|
if (Cn(e))
|
|
@@ -1624,7 +1624,7 @@ function Dt(e, t, n) {
|
|
|
1624
1624
|
var o, a, i, l, r, f, u = 0, b = !1, m = !1, y = !0;
|
|
1625
1625
|
if (typeof e != "function")
|
|
1626
1626
|
throw new TypeError(Pu);
|
|
1627
|
-
t =
|
|
1627
|
+
t = vi(t) || 0, Ue(n) && (b = !!n.leading, m = "maxWait" in n, i = m ? Du(vi(n.maxWait) || 0, t) : i, y = "trailing" in n ? !!n.trailing : y);
|
|
1628
1628
|
function I(p) {
|
|
1629
1629
|
var j = o, H = a;
|
|
1630
1630
|
return o = a = void 0, u = p, l = e.apply(H, j), l;
|
|
@@ -1641,7 +1641,7 @@ function Dt(e, t, n) {
|
|
|
1641
1641
|
return f === void 0 || j >= t || j < 0 || m && H >= i;
|
|
1642
1642
|
}
|
|
1643
1643
|
function N() {
|
|
1644
|
-
var p =
|
|
1644
|
+
var p = ri();
|
|
1645
1645
|
if (L(p))
|
|
1646
1646
|
return Y(p);
|
|
1647
1647
|
r = setTimeout(N, T(p));
|
|
@@ -1653,10 +1653,10 @@ function Dt(e, t, n) {
|
|
|
1653
1653
|
r !== void 0 && clearTimeout(r), u = 0, o = f = a = r = void 0;
|
|
1654
1654
|
}
|
|
1655
1655
|
function M() {
|
|
1656
|
-
return r === void 0 ? l : Y(
|
|
1656
|
+
return r === void 0 ? l : Y(ri());
|
|
1657
1657
|
}
|
|
1658
1658
|
function v() {
|
|
1659
|
-
var p =
|
|
1659
|
+
var p = ri(), j = L(p);
|
|
1660
1660
|
if (o = arguments, a = this, f = p, j) {
|
|
1661
1661
|
if (r === void 0)
|
|
1662
1662
|
return C(f);
|
|
@@ -2083,7 +2083,7 @@ var fm = bn ? function(e, t) {
|
|
|
2083
2083
|
value: mm(t),
|
|
2084
2084
|
writable: !0
|
|
2085
2085
|
});
|
|
2086
|
-
} :
|
|
2086
|
+
} : Ai, hm = 800, pm = 16, gm = Date.now;
|
|
2087
2087
|
function ym(e) {
|
|
2088
2088
|
var t = 0, n = 0;
|
|
2089
2089
|
return function() {
|
|
@@ -2098,7 +2098,7 @@ function ym(e) {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
var vm = ym(fm);
|
|
2100
2100
|
function bm(e, t) {
|
|
2101
|
-
return vm(um(e, t,
|
|
2101
|
+
return vm(um(e, t, Ai), e + "");
|
|
2102
2102
|
}
|
|
2103
2103
|
function _m(e, t, n) {
|
|
2104
2104
|
if (!Ue(n))
|
|
@@ -2110,7 +2110,7 @@ var Yo = Object.prototype, Sm = Yo.hasOwnProperty, Tm = bm(function(e, t) {
|
|
|
2110
2110
|
e = Object(e);
|
|
2111
2111
|
var n = -1, o = t.length, a = o > 2 ? t[2] : void 0;
|
|
2112
2112
|
for (a && _m(t[0], t[1], a) && (o = 1); ++n < o; )
|
|
2113
|
-
for (var i = t[n], l =
|
|
2113
|
+
for (var i = t[n], l = Un(i), r = -1, f = l.length; ++r < f; ) {
|
|
2114
2114
|
var u = l[r], b = e[u];
|
|
2115
2115
|
(b === void 0 || On(b, Yo[u]) && !Sm.call(e, u)) && (e[u] = i[u]);
|
|
2116
2116
|
}
|
|
@@ -2123,7 +2123,7 @@ var Qa = 1 / 0, Am = 17976931348623157e292;
|
|
|
2123
2123
|
function wm(e) {
|
|
2124
2124
|
if (!e)
|
|
2125
2125
|
return e === 0 ? e : 0;
|
|
2126
|
-
if (e =
|
|
2126
|
+
if (e = vi(e), e === Qa || e === -Qa) {
|
|
2127
2127
|
var t = e < 0 ? -1 : 1;
|
|
2128
2128
|
return t * Am;
|
|
2129
2129
|
}
|
|
@@ -2265,7 +2265,7 @@ Object.keys(St).forEach((e) => {
|
|
|
2265
2265
|
function eo(e) {
|
|
2266
2266
|
return bt(e) ? St[e] != null ? St[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function li(e, t, n) {
|
|
2269
2269
|
let o = Q(n.context, "schema.attributes", {});
|
|
2270
2270
|
const a = t.value || "input";
|
|
2271
2271
|
bt(a) && (o = Q(o, a) || o), Oe(o, (i, l) => {
|
|
@@ -2285,9 +2285,9 @@ const $e = {
|
|
|
2285
2285
|
},
|
|
2286
2286
|
directives: {
|
|
2287
2287
|
attributes: {
|
|
2288
|
-
beforeMount:
|
|
2289
|
-
updated:
|
|
2290
|
-
componentUpdated:
|
|
2288
|
+
beforeMount: li,
|
|
2289
|
+
updated: li,
|
|
2290
|
+
componentUpdated: li
|
|
2291
2291
|
}
|
|
2292
2292
|
},
|
|
2293
2293
|
computed: {
|
|
@@ -2613,7 +2613,7 @@ const Wm = "#6c7489", Qo = "12px", Zm = "16px", es = "20px", Xm = ["data-testid"
|
|
|
2613
2613
|
]), 1032, ["id", "modelValue", "disabled", "error", "help", "items", "loading", "placeholder"]);
|
|
2614
2614
|
};
|
|
2615
2615
|
}
|
|
2616
|
-
}), tf = /* @__PURE__ */ J(ef, [["__scopeId", "data-v-1e9151dd"]]), nf = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
|
|
2616
|
+
}), tf = /* @__PURE__ */ J(ef, [["__scopeId", "data-v-1e9151dd"]]), nf = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", bi = (e) => e ? e.length === 36 && new RegExp(`^${nf}$`).test(e) : !1, af = { class: "selected-entity-item" }, of = { class: "selected-entity-label" }, sf = { class: "entity-suggestion-item" }, rf = { class: "entity-label" }, lf = { class: "entity-id" }, df = 500, cf = 50, uf = 1e3, mf = /* @__PURE__ */ ye({
|
|
2617
2617
|
__name: "FieldScopedEntitySelect",
|
|
2618
2618
|
props: {
|
|
2619
2619
|
transformItem: { type: Function },
|
|
@@ -2691,16 +2691,16 @@ const Wm = "#6c7489", Qo = "12px", Zm = "16px", es = "20px", Xm = ["data-testid"
|
|
|
2691
2691
|
group: I("fields.auto_suggest.recently_created", { entity: e.entity })
|
|
2692
2692
|
})), g;
|
|
2693
2693
|
}, M = async (g) => [await a(g)], v = (g, R) => {
|
|
2694
|
-
|
|
2694
|
+
bi(g) && e.allowUuidSearch ? L(async () => await M(g)) : L(async () => await Y(g, R.signal), R.signal);
|
|
2695
2695
|
}, p = (g) => {
|
|
2696
2696
|
let R = [];
|
|
2697
2697
|
R = j(y.value), g?.trim() ? b.value = R.filter(($) => e.fields.some((re) => ($[re] || "").includes(g))) : b.value = R;
|
|
2698
2698
|
}, j = (g) => e.selectedItem ? g.some((R) => R.value === e.selectedItem.value) ? g : [e.selectedItem, ...g] : g, H = (g) => {
|
|
2699
2699
|
b.value = y.value.filter((R) => R.id === g);
|
|
2700
2700
|
}, E = (g) => {
|
|
2701
|
-
|
|
2701
|
+
bi(g) && e.allowUuidSearch ? H(g) : p(g);
|
|
2702
2702
|
};
|
|
2703
|
-
return
|
|
2703
|
+
return _i(async () => {
|
|
2704
2704
|
await L(D);
|
|
2705
2705
|
const g = ln(() => e.selectedItem, (R) => {
|
|
2706
2706
|
R && (b.value = j(y.value)), g();
|
|
@@ -2891,7 +2891,7 @@ function pf(e, t, n, o, a, i) {
|
|
|
2891
2891
|
_: 1
|
|
2892
2892
|
}, 8, ["text"]);
|
|
2893
2893
|
}
|
|
2894
|
-
const ns = /* @__PURE__ */ J(hf, [["render", pf], ["__scopeId", "data-v-2e8d29f1"]]),
|
|
2894
|
+
const ns = /* @__PURE__ */ J(hf, [["render", pf], ["__scopeId", "data-v-2e8d29f1"]]), di = 50, gf = {
|
|
2895
2895
|
mixins: [$e],
|
|
2896
2896
|
inject: [Ke],
|
|
2897
2897
|
emits: ["model-updated"],
|
|
@@ -2971,7 +2971,7 @@ const ns = /* @__PURE__ */ J(hf, [["render", pf], ["__scopeId", "data-v-2e8d29f1
|
|
|
2971
2971
|
return;
|
|
2972
2972
|
this.loading = !0;
|
|
2973
2973
|
const t = [], n = [], o = this.getInputFields(), a = /* @__PURE__ */ new Set();
|
|
2974
|
-
|
|
2974
|
+
bi(e) && o.includes("id") ? n.push((async () => {
|
|
2975
2975
|
const i = await this.fetchExact(e);
|
|
2976
2976
|
t.push({ ...i, label: this.getSuggestionLabel(i), value: i.id });
|
|
2977
2977
|
})()) : n.push(...o.filter((i) => i !== "id").map(async (i) => {
|
|
@@ -2988,15 +2988,15 @@ const ns = /* @__PURE__ */ J(hf, [["render", pf], ["__scopeId", "data-v-2e8d29f1
|
|
|
2988
2988
|
let n = null;
|
|
2989
2989
|
if (!this[Ke])
|
|
2990
2990
|
return console.warn("[@kong-ui-public/forms] No API service provided"), [];
|
|
2991
|
-
for (; t.length <
|
|
2991
|
+
for (; t.length < di; ) {
|
|
2992
2992
|
const o = await this[Ke].getAll(this.entity, {
|
|
2993
|
-
size:
|
|
2993
|
+
size: di,
|
|
2994
2994
|
offset: n,
|
|
2995
2995
|
...e
|
|
2996
2996
|
});
|
|
2997
2997
|
if (t.push(...o.data.data), n = o.data.offset, !n) break;
|
|
2998
2998
|
}
|
|
2999
|
-
return t.slice(0,
|
|
2999
|
+
return t.slice(0, di);
|
|
3000
3000
|
},
|
|
3001
3001
|
async fetchSuggestions(e, t) {
|
|
3002
3002
|
return this.fetchUntilLimit({ [t]: e });
|
|
@@ -3280,7 +3280,7 @@ const qe = {
|
|
|
3280
3280
|
}, N = oe(null), Y = () => {
|
|
3281
3281
|
te(N.value) && N.value?.flush();
|
|
3282
3282
|
};
|
|
3283
|
-
return
|
|
3283
|
+
return _i(() => {
|
|
3284
3284
|
switch (m.value) {
|
|
3285
3285
|
case "number":
|
|
3286
3286
|
case "range":
|
|
@@ -3310,7 +3310,7 @@ const qe = {
|
|
|
3310
3310
|
);
|
|
3311
3311
|
break;
|
|
3312
3312
|
}
|
|
3313
|
-
}),
|
|
3313
|
+
}), Si(() => {
|
|
3314
3314
|
m.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : m.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : m.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
3315
3315
|
}), (D, M) => {
|
|
3316
3316
|
const v = k("KInput");
|
|
@@ -4202,7 +4202,7 @@ const uh = /* @__PURE__ */ J(ah, [["render", ch], ["__scopeId", "data-v-64e1f575
|
|
|
4202
4202
|
emitModelUpdated: (m) => {
|
|
4203
4203
|
a("modelUpdated", m.value, m.model);
|
|
4204
4204
|
}
|
|
4205
|
-
}), u = x(() => o.schema.help ?
|
|
4205
|
+
}), u = x(() => o.schema.help ? Fn.sanitize(o.schema.help.replace(/<\/?p>/g, "").trim()) : ""), b = x(() => {
|
|
4206
4206
|
const m = o.schema.checkboxDescription;
|
|
4207
4207
|
return typeof m == "function" ? m(o.model) || void 0 : m || void 0;
|
|
4208
4208
|
});
|
|
@@ -4938,7 +4938,7 @@ const Nh = /* @__PURE__ */ J(Eh, [["render", Fh], ["__scopeId", "data-v-be99d00c
|
|
|
4938
4938
|
},
|
|
4939
4939
|
methods: {
|
|
4940
4940
|
sanitize(e) {
|
|
4941
|
-
return
|
|
4941
|
+
return Fn.sanitize(e);
|
|
4942
4942
|
},
|
|
4943
4943
|
// Should field type have a label?
|
|
4944
4944
|
fieldTypeHasLabel(e) {
|
|
@@ -5239,7 +5239,7 @@ const hp = { class: "partial-config-card" }, pp = { class: "config-card-row-labe
|
|
|
5239
5239
|
getOne: "/{workspace}/partials/{id}",
|
|
5240
5240
|
getAll: "/{workspace}/partials"
|
|
5241
5241
|
}
|
|
5242
|
-
}, a = e, i = oe(null), { getMessageFromError: l } = Js(), r = an(
|
|
5242
|
+
}, a = e, i = oe(null), { getMessageFromError: l } = Js(), r = an(Ei), {
|
|
5243
5243
|
debouncedQueryChange: f,
|
|
5244
5244
|
loading: u,
|
|
5245
5245
|
error: b,
|
|
@@ -5287,7 +5287,7 @@ const hp = { class: "partial-config-card" }, pp = { class: "config-card-row-labe
|
|
|
5287
5287
|
label: t("redis.managed_ui.groups.self_managed"),
|
|
5288
5288
|
items: g
|
|
5289
5289
|
}), R;
|
|
5290
|
-
}), { axiosInstance: p } =
|
|
5290
|
+
}), { axiosInstance: p } = mi(r?.axiosRequestConfig), j = async (H) => {
|
|
5291
5291
|
if (H) {
|
|
5292
5292
|
a.updateRedisModel(H);
|
|
5293
5293
|
try {
|
|
@@ -5303,7 +5303,7 @@ const hp = { class: "partial-config-card" }, pp = { class: "config-card-row-labe
|
|
|
5303
5303
|
};
|
|
5304
5304
|
return ln(() => n?.value, async (H) => {
|
|
5305
5305
|
H && await m();
|
|
5306
|
-
}),
|
|
5306
|
+
}), Si(() => {
|
|
5307
5307
|
m(), a.defaultRedisConfigItem && j(a.defaultRedisConfigItem);
|
|
5308
5308
|
}), (H, E) => {
|
|
5309
5309
|
const g = k("KLabel"), R = k("KBadge"), $ = k("KSelect");
|
|
@@ -5470,7 +5470,7 @@ const hp = { class: "partial-config-card" }, pp = { class: "config-card-row-labe
|
|
|
5470
5470
|
};
|
|
5471
5471
|
return ln(() => m.value, (M) => {
|
|
5472
5472
|
M ? C.value && o("partialToggled", "redis", { partials: C.value }) : o("partialToggled", "partials", I.value);
|
|
5473
|
-
}),
|
|
5473
|
+
}), Si(() => {
|
|
5474
5474
|
if (n.model && (I.value = n.field.fields.reduce((M, v) => (Object.keys(n.model).includes(v.model) && (M[v.model] = n.model[v.model]), M), {})), n?.model?.partials?.[0]?.id) {
|
|
5475
5475
|
const M = n.model.partials[0].id;
|
|
5476
5476
|
m.value = !0, y.value = M;
|
|
@@ -6176,15 +6176,15 @@ function eg(e, t, n, o, a, i) {
|
|
|
6176
6176
|
_: 3
|
|
6177
6177
|
});
|
|
6178
6178
|
}
|
|
6179
|
-
const tg = /* @__PURE__ */ J(Bp, [["render", eg], ["__scopeId", "data-v-41092dbd"]]), nn = "kong-identity", fs = "external", ng = "/v1/auth-servers/_computed", ig = "identity.konghq", ag = (e) => typeof e == "string" && e.includes(ig),
|
|
6179
|
+
const tg = /* @__PURE__ */ J(Bp, [["render", eg], ["__scopeId", "data-v-41092dbd"]]), nn = "kong-identity", fs = "external", ng = "/v1/auth-servers/_computed", ig = "identity.konghq", ag = (e) => typeof e == "string" && e.includes(ig), ci = { major: 3, minor: 15 }, og = (e) => {
|
|
6180
6180
|
const [t, n] = e.split(".").map(Number);
|
|
6181
|
-
return Number.isNaN(t) || Number.isNaN(n) ? !1 : t !==
|
|
6181
|
+
return Number.isNaN(t) || Number.isNaN(n) ? !1 : t !== ci.major ? t < ci.major : n < ci.minor;
|
|
6182
6182
|
}, sg = (e, t) => t ? ag(e["config-issuer"]) ? nn : fs : nn, rg = {
|
|
6183
6183
|
name: "OIDCPrincipals",
|
|
6184
6184
|
components: { VueFormGenerator: he, PrincipalLookupSettings: tg, AddIcon: wn, BookIcon: Ys, CloseIcon: Gs, KeyIcon: Hs, WorldIcon: Bs },
|
|
6185
6185
|
inject: {
|
|
6186
6186
|
formsConfig: {
|
|
6187
|
-
from:
|
|
6187
|
+
from: Ei,
|
|
6188
6188
|
default: () => ({})
|
|
6189
6189
|
},
|
|
6190
6190
|
autofillSlot: {
|
|
@@ -6322,7 +6322,7 @@ const tg = /* @__PURE__ */ J(Bp, [["render", eg], ["__scopeId", "data-v-41092dbd
|
|
|
6322
6322
|
if (this.formsConfig?.isKongIdentityAuthServersAvailable !== !1)
|
|
6323
6323
|
try {
|
|
6324
6324
|
this.kongIdentityServersLoading = !0;
|
|
6325
|
-
const { axiosInstance: e } =
|
|
6325
|
+
const { axiosInstance: e } = mi(this.formsConfig?.axiosRequestConfig), t = `${this.formsConfig.apiBaseUrl}${ng}`, n = await e.get(t);
|
|
6326
6326
|
this.kongIdentityServers = n.data?.data ?? [];
|
|
6327
6327
|
const o = this.formModel["config-issuer"];
|
|
6328
6328
|
if (o && !this.selectedServer) {
|
|
@@ -6338,7 +6338,7 @@ const tg = /* @__PURE__ */ J(Bp, [["render", eg], ["__scopeId", "data-v-41092dbd
|
|
|
6338
6338
|
async fetchClients(e) {
|
|
6339
6339
|
try {
|
|
6340
6340
|
this.clientsLoading = !0;
|
|
6341
|
-
const { axiosInstance: t } =
|
|
6341
|
+
const { axiosInstance: t } = mi(this.formsConfig?.axiosRequestConfig), n = `${this.formsConfig.apiBaseUrl}/v1/auth-servers/${e}/clients`, o = await t.get(n);
|
|
6342
6342
|
this.clients = o.data?.data ?? [];
|
|
6343
6343
|
} catch {
|
|
6344
6344
|
this.clients = [];
|
|
@@ -6387,7 +6387,7 @@ const tg = /* @__PURE__ */ J(Bp, [["render", eg], ["__scopeId", "data-v-41092dbd
|
|
|
6387
6387
|
// Mirrors FormGroup.vue's sanitize() — used to render schema help text (raw HTML) via
|
|
6388
6388
|
// v-html when formOptions.helpAsHtml is set.
|
|
6389
6389
|
sanitize(e) {
|
|
6390
|
-
return
|
|
6390
|
+
return Fn.sanitize(e);
|
|
6391
6391
|
},
|
|
6392
6392
|
handleUsePrincipalLookupChange(e) {
|
|
6393
6393
|
this.updateField("config-principals-enabled", e);
|
|
@@ -6899,7 +6899,7 @@ const Rg = /* @__PURE__ */ J(Eg, [["render", kg], ["__scopeId", "data-v-8c1cdc7c
|
|
|
6899
6899
|
"config-groups_claim",
|
|
6900
6900
|
"config-groups_required",
|
|
6901
6901
|
"config-authenticated_groups_claim"
|
|
6902
|
-
]),
|
|
6902
|
+
]), ui = ["bearer", "client_credentials", "introspection", "userinfo"], Fg = "identity.konghq", Ng = (e) => typeof e == "string" && e.includes(Fg), Ug = {
|
|
6903
6903
|
name: "OIDCForm",
|
|
6904
6904
|
components: { VueFormGenerator: he, OIDCPrincipals: wg, OIDCAuthMethods: Rg },
|
|
6905
6905
|
provide() {
|
|
@@ -6909,7 +6909,7 @@ const Rg = /* @__PURE__ */ J(Eg, [["render", kg], ["__scopeId", "data-v-8c1cdc7c
|
|
|
6909
6909
|
},
|
|
6910
6910
|
inject: {
|
|
6911
6911
|
formsConfig: {
|
|
6912
|
-
from:
|
|
6912
|
+
from: Ei,
|
|
6913
6913
|
default: () => ({})
|
|
6914
6914
|
}
|
|
6915
6915
|
},
|
|
@@ -7015,7 +7015,7 @@ const Rg = /* @__PURE__ */ J(Eg, [["render", kg], ["__scopeId", "data-v-8c1cdc7c
|
|
|
7015
7015
|
return this.isKonnect;
|
|
7016
7016
|
},
|
|
7017
7017
|
authMethodItems() {
|
|
7018
|
-
return ((this.principalsMode !== null ? this.principalsMode === "kong-identity" : Ng(this.formModel["config-issuer"])) ? this.authMethods.filter((n) =>
|
|
7018
|
+
return ((this.principalsMode !== null ? this.principalsMode === "kong-identity" : Ng(this.formModel["config-issuer"])) ? this.authMethods.filter((n) => ui.includes(n.value)) : this.authMethods).map((n) => ({
|
|
7019
7019
|
label: n.label,
|
|
7020
7020
|
value: n.value
|
|
7021
7021
|
}));
|
|
@@ -7174,8 +7174,8 @@ const Rg = /* @__PURE__ */ J(Eg, [["render", kg], ["__scopeId", "data-v-8c1cdc7c
|
|
|
7174
7174
|
if (this.principalsMode = e, e === "kong-identity") {
|
|
7175
7175
|
this.isEditing || (this.sessionManagement = !0);
|
|
7176
7176
|
for (const n of this.authMethods)
|
|
7177
|
-
n.prop =
|
|
7178
|
-
const t = [...
|
|
7177
|
+
n.prop = ui.includes(n.value);
|
|
7178
|
+
const t = [...ui];
|
|
7179
7179
|
this.sessionManagement && t.push("session"), this.formModel["config-auth_methods"] = t, this.onModelUpdated();
|
|
7180
7180
|
} else {
|
|
7181
7181
|
this.sessionManagement = !0;
|
|
@@ -7611,7 +7611,7 @@ const $g = /* @__PURE__ */ J(Ug, [["render", zg], ["__scopeId", "data-v-e20914ca
|
|
|
7611
7611
|
value: "other"
|
|
7612
7612
|
}
|
|
7613
7613
|
];
|
|
7614
|
-
|
|
7614
|
+
_i(() => {
|
|
7615
7615
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
7616
7616
|
});
|
|
7617
7617
|
const D = (v) => {
|
|
@@ -7895,7 +7895,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
7895
7895
|
return ln(() => i.formModel["config-strategy"], (E) => {
|
|
7896
7896
|
E !== "redis" && i.formModel.partials && i.onModelUpdated(void 0, "partials");
|
|
7897
7897
|
}), (E, g) => {
|
|
7898
|
-
const R = k("KLabel"), $ = k("KRadio"), re = k("KInput"), Ee = k("KButton"), Ze = k("KBadge"), zt = k("KTooltip"), dn = k("KCard"),
|
|
7898
|
+
const R = k("KLabel"), $ = k("KRadio"), re = k("KInput"), Ee = k("KButton"), Ze = k("KBadge"), zt = k("KTooltip"), dn = k("KCard"), Ln = k("KSelect"), Pn = k("KCollapse");
|
|
7899
7899
|
return d(), _(G, null, [
|
|
7900
7900
|
c("div", ay, [
|
|
7901
7901
|
S(he, {
|
|
@@ -8042,7 +8042,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8042
8042
|
]),
|
|
8043
8043
|
_: 1
|
|
8044
8044
|
}),
|
|
8045
|
-
S(
|
|
8045
|
+
S(Ln, {
|
|
8046
8046
|
modelValue: L.value,
|
|
8047
8047
|
"onUpdate:modelValue": g[1] || (g[1] = (W) => L.value = W),
|
|
8048
8048
|
class: "rla-form-identifiers",
|
|
@@ -8059,7 +8059,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8059
8059
|
}, {
|
|
8060
8060
|
"label-tooltip": A(() => [
|
|
8061
8061
|
c("div", {
|
|
8062
|
-
innerHTML: u.value
|
|
8062
|
+
innerHTML: u.value?.help ? U(Fn).sanitize(u.value.help) : void 0
|
|
8063
8063
|
}, null, 8, gy)
|
|
8064
8064
|
]),
|
|
8065
8065
|
_: 1
|
|
@@ -8096,7 +8096,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8096
8096
|
])
|
|
8097
8097
|
])
|
|
8098
8098
|
]),
|
|
8099
|
-
S(
|
|
8099
|
+
S(Pn, {
|
|
8100
8100
|
modelValue: y.value,
|
|
8101
8101
|
"onUpdate:modelValue": g[9] || (g[9] = (W) => y.value = W),
|
|
8102
8102
|
"data-testid": "view-advanced",
|
|
@@ -8142,7 +8142,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8142
8142
|
], 64);
|
|
8143
8143
|
};
|
|
8144
8144
|
}
|
|
8145
|
-
}), by = /* @__PURE__ */ J(vy, [["__scopeId", "data-v-
|
|
8145
|
+
}), by = /* @__PURE__ */ J(vy, [["__scopeId", "data-v-f3692286"]]), Iy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8146
8146
|
__proto__: null,
|
|
8147
8147
|
ACMEForm: iy,
|
|
8148
8148
|
ExitTransformer: Gg,
|
|
@@ -8169,7 +8169,7 @@ export {
|
|
|
8169
8169
|
rd as EMPTY_VALUE_PLACEHOLDER,
|
|
8170
8170
|
We as FIELD_STATES,
|
|
8171
8171
|
Ke as FORMS_API_KEY,
|
|
8172
|
-
|
|
8172
|
+
Ei as FORMS_CONFIG,
|
|
8173
8173
|
ff as FieldScopedEntitySelect,
|
|
8174
8174
|
Mn as PartialType,
|
|
8175
8175
|
sd as REDIS_PARTIAL_FETCHER_KEY,
|