@kong-ui-public/forms 4.29.3-pr.3512.406a7510d.0 → 4.29.3
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 +464 -465
- package/dist/forms.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/forms/OIDCForm.vue.d.ts +3 -3
- package/dist/types/components/forms/OIDCPrincipals.vue.d.ts +3 -3
- package/dist/types/components/forms/PrincipalLookupSettings.vue.d.ts +3 -3
- package/dist/types/components/forms/PrincipalLookupSettings.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as c, createElementBlock as M, createElementVNode as m, toDisplayString as x, normalizeClass as te, createVNode as w, defineComponent as
|
|
1
|
+
import { openBlock as c, createElementBlock as M, createElementVNode as m, toDisplayString as x, normalizeClass as te, createVNode as w, defineComponent as be, provide as rn, resolveComponent as k, withCtx as E, renderSlot as we, unref as V, createTextVNode as Z, useModel as Fs, createBlock as P, createSlots as Mn, mergeModels as ea, inject as an, ref as se, onMounted as yi, watch as ln, resolveDynamicComponent as re, Fragment as Y, renderList as oe, computed as B, toRefs as Tt, onBeforeMount as vi, mergeProps as et, Transition as Us, createCommentVNode as q, resolveDirective as ao, withDirectives as Fe, vModelText as Qt, vModelCheckbox as Ns, vModelSelect as Ls, vModelDynamic as oo, isRef as Vt, toRef as so, vModelRadio as Ds, vShow as Ps, withModifiers as ta, normalizeProps as Vs, guardReactiveProps as Ks, useSlots as wn, nextTick as na } from "vue";
|
|
2
2
|
import { createI18n as De } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as Kt, SearchIcon as js, AddIcon as En, WorldIcon as $s, KeyIcon as xs, CloseIcon as zs, BookIcon as qs, RemoveIcon as Bs } from "@kong/icons";
|
|
4
4
|
import { isAxiosError as Hs } from "axios";
|
|
@@ -67,13 +67,13 @@ var yr = 9007199254740991;
|
|
|
67
67
|
function po(e) {
|
|
68
68
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= yr;
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
ae[
|
|
72
|
-
ae[
|
|
70
|
+
var vr = "[object Arguments]", br = "[object Array]", _r = "[object Boolean]", Sr = "[object Date]", Tr = "[object Error]", Mr = "[object Function]", wr = "[object Map]", Er = "[object Number]", Ar = "[object Object]", Ir = "[object RegExp]", Cr = "[object Set]", Or = "[object String]", kr = "[object WeakMap]", Rr = "[object ArrayBuffer]", Fr = "[object DataView]", Ur = "[object Float32Array]", Nr = "[object Float64Array]", Lr = "[object Int8Array]", Dr = "[object Int16Array]", Pr = "[object Int32Array]", Vr = "[object Uint8Array]", Kr = "[object Uint8ClampedArray]", jr = "[object Uint16Array]", $r = "[object Uint32Array]", ae = {};
|
|
71
|
+
ae[Ur] = ae[Nr] = ae[Lr] = ae[Dr] = ae[Pr] = ae[Vr] = ae[Kr] = ae[jr] = ae[$r] = !0;
|
|
72
|
+
ae[vr] = ae[br] = ae[Rr] = ae[_r] = ae[Fr] = ae[Sr] = ae[Tr] = ae[Mr] = ae[wr] = ae[Er] = ae[Ar] = ae[Ir] = ae[Cr] = ae[Or] = ae[kr] = !1;
|
|
73
73
|
function xr(e) {
|
|
74
74
|
return ft(e) && po(e.length) && !!ae[mt(e)];
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function bi(e) {
|
|
77
77
|
return function(t) {
|
|
78
78
|
return e(t);
|
|
79
79
|
};
|
|
@@ -84,7 +84,7 @@ var go = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
84
84
|
return e || Qn && Qn.binding && Qn.binding("util");
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
|
-
}(), ra = Dt && Dt.isTypedArray, qr = ra ?
|
|
87
|
+
}(), ra = Dt && Dt.isTypedArray, qr = ra ? bi(ra) : xr, Br = Object.prototype, Hr = Br.hasOwnProperty;
|
|
88
88
|
function yo(e, t) {
|
|
89
89
|
var n = ht(e), o = !n && ur(e), a = !n && !o && fo(e), i = !n && !o && !a && qr(e), r = n || o || a || i, l = r ? Js(e.length, String) : [], d = l.length;
|
|
90
90
|
for (var u in e)
|
|
@@ -100,12 +100,12 @@ function _i(e) {
|
|
|
100
100
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Gr;
|
|
101
101
|
return e === n;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function vo(e, t) {
|
|
104
104
|
return function(n) {
|
|
105
105
|
return e(t(n));
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
var Yr =
|
|
108
|
+
var Yr = vo(Object.keys, Object), Wr = Object.prototype, Zr = Wr.hasOwnProperty;
|
|
109
109
|
function Xr(e) {
|
|
110
110
|
if (!_i(e))
|
|
111
111
|
return Yr(e);
|
|
@@ -114,13 +114,13 @@ function Xr(e) {
|
|
|
114
114
|
Zr.call(e, n) && n != "constructor" && t.push(n);
|
|
115
115
|
return t;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Ne(e) {
|
|
118
118
|
var t = typeof e;
|
|
119
119
|
return e != null && (t == "object" || t == "function");
|
|
120
120
|
}
|
|
121
121
|
var Jr = "[object AsyncFunction]", Qr = "[object Function]", el = "[object GeneratorFunction]", tl = "[object Proxy]";
|
|
122
122
|
function ne(e) {
|
|
123
|
-
if (!
|
|
123
|
+
if (!Ne(e))
|
|
124
124
|
return !1;
|
|
125
125
|
var t = mt(e);
|
|
126
126
|
return t == Qr || t == el || t == Jr || t == tl;
|
|
@@ -188,13 +188,13 @@ function Mt(e) {
|
|
|
188
188
|
}
|
|
189
189
|
return "";
|
|
190
190
|
}
|
|
191
|
-
var fl = /[\\^$.*+?()[\]{}|]/g, hl = /^\[object .+?Constructor\]$/, pl = Function.prototype, gl = Object.prototype, yl = pl.toString,
|
|
192
|
-
"^" + yl.call(
|
|
191
|
+
var fl = /[\\^$.*+?()[\]{}|]/g, hl = /^\[object .+?Constructor\]$/, pl = Function.prototype, gl = Object.prototype, yl = pl.toString, vl = gl.hasOwnProperty, bl = RegExp(
|
|
192
|
+
"^" + yl.call(vl).replace(fl, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
193
193
|
);
|
|
194
194
|
function _l(e) {
|
|
195
|
-
if (!
|
|
195
|
+
if (!Ne(e) || cl(e))
|
|
196
196
|
return !1;
|
|
197
|
-
var t = ne(e) ?
|
|
197
|
+
var t = ne(e) ? bl : hl;
|
|
198
198
|
return t.test(Mt(e));
|
|
199
199
|
}
|
|
200
200
|
function Sl(e, t) {
|
|
@@ -231,19 +231,19 @@ function Fl(e, t) {
|
|
|
231
231
|
var n = this.__data__;
|
|
232
232
|
return this.size += this.has(e) ? 0 : 1, n[e] = on && t === void 0 ? Rl : t, this;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function vt(e) {
|
|
235
235
|
var t = -1, n = e == null ? 0 : e.length;
|
|
236
236
|
for (this.clear(); ++t < n; ) {
|
|
237
237
|
var o = e[t];
|
|
238
238
|
this.set(o[0], o[1]);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
function
|
|
241
|
+
vt.prototype.clear = Tl;
|
|
242
|
+
vt.prototype.delete = Ml;
|
|
243
|
+
vt.prototype.get = Il;
|
|
244
|
+
vt.prototype.has = kl;
|
|
245
|
+
vt.prototype.set = Fl;
|
|
246
|
+
function Ul() {
|
|
247
247
|
this.__data__ = [], this.size = 0;
|
|
248
248
|
}
|
|
249
249
|
function On(e, t) {
|
|
@@ -255,7 +255,7 @@ function kn(e, t) {
|
|
|
255
255
|
return n;
|
|
256
256
|
return -1;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var Nl = Array.prototype, Ll = Nl.splice;
|
|
259
259
|
function Dl(e) {
|
|
260
260
|
var t = this.__data__, n = kn(t, e);
|
|
261
261
|
if (n < 0)
|
|
@@ -281,7 +281,7 @@ function tt(e) {
|
|
|
281
281
|
this.set(o[0], o[1]);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
tt.prototype.clear =
|
|
284
|
+
tt.prototype.clear = Ul;
|
|
285
285
|
tt.prototype.delete = Dl;
|
|
286
286
|
tt.prototype.get = Pl;
|
|
287
287
|
tt.prototype.has = Vl;
|
|
@@ -289,9 +289,9 @@ tt.prototype.set = Kl;
|
|
|
289
289
|
var sn = wt($e, "Map");
|
|
290
290
|
function jl() {
|
|
291
291
|
this.size = 0, this.__data__ = {
|
|
292
|
-
hash: new
|
|
292
|
+
hash: new vt(),
|
|
293
293
|
map: new (sn || tt)(),
|
|
294
|
-
string: new
|
|
294
|
+
string: new vt()
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
function $l(e) {
|
|
@@ -361,18 +361,18 @@ function Jl(e, t) {
|
|
|
361
361
|
return a;
|
|
362
362
|
}
|
|
363
363
|
var da = ut ? ut.prototype : void 0, ca = da ? da.toString : void 0;
|
|
364
|
-
function
|
|
364
|
+
function bo(e) {
|
|
365
365
|
if (typeof e == "string")
|
|
366
366
|
return e;
|
|
367
367
|
if (ht(e))
|
|
368
|
-
return Jl(e,
|
|
368
|
+
return Jl(e, bo) + "";
|
|
369
369
|
if (Cn(e))
|
|
370
370
|
return ca ? ca.call(e) : "";
|
|
371
371
|
var t = e + "";
|
|
372
372
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
373
373
|
}
|
|
374
374
|
function _o(e) {
|
|
375
|
-
return e == null ? "" :
|
|
375
|
+
return e == null ? "" : bo(e);
|
|
376
376
|
}
|
|
377
377
|
function Ql(e, t) {
|
|
378
378
|
return ht(e) ? e : dl(e, t) ? [e] : Xl(_o(e));
|
|
@@ -393,10 +393,10 @@ function ee(e, t, n) {
|
|
|
393
393
|
var o = e == null ? void 0 : td(e, t);
|
|
394
394
|
return o === void 0 ? n : o;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function ve(e) {
|
|
397
397
|
return e == null;
|
|
398
398
|
}
|
|
399
|
-
const je = "kong-ui-forms-api", Mi = "kong-ui-forms-config", nd = "redis-partial-list-fetcher-key",
|
|
399
|
+
const je = "kong-ui-forms-api", Mi = "kong-ui-forms-config", nd = "redis-partial-list-fetcher-key", by = "redis-partial-info", jt = "autofill", Le = "autofillSlot", Ze = {
|
|
400
400
|
CREATE_NOT_FROM_ENTITY: "CREATE_NOT_FROM_ENTITY",
|
|
401
401
|
CREATE_FROM_ENTITY: "CREATE_FROM_ENTITY",
|
|
402
402
|
UPDATE_ENTITY: "UPDATE_ENTITY",
|
|
@@ -492,7 +492,7 @@ function W(e, t) {
|
|
|
492
492
|
}
|
|
493
493
|
return e;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function vd(e) {
|
|
496
496
|
for (let t = 0; t < e.length; t++)
|
|
497
497
|
Me(e, t) || (e[t] = null);
|
|
498
498
|
return e;
|
|
@@ -502,11 +502,11 @@ function ke(e) {
|
|
|
502
502
|
for (const o of So(e)) {
|
|
503
503
|
var n = rd(o, 2);
|
|
504
504
|
const a = n[0], i = n[1];
|
|
505
|
-
Me(e, a) && (ct(i) ? t[a] =
|
|
505
|
+
Me(e, a) && (ct(i) ? t[a] = vd(i) : i && typeof i == "object" && i.constructor === Object ? t[a] = ke(i) : t[a] = i);
|
|
506
506
|
}
|
|
507
507
|
return t;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function bd(e) {
|
|
510
510
|
switch (typeof e) {
|
|
511
511
|
case "string":
|
|
512
512
|
return e;
|
|
@@ -558,13 +558,13 @@ function _d(e) {
|
|
|
558
558
|
return !1;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
const
|
|
561
|
+
const va = Ie(["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"]), ni = Ie(["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"]), ii = Ie(["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"]), Sd = Ie(["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"]), ai = Ie(["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"]), Td = Ie(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ba = Ie(["#text"]), _a = Ie(["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"]), oi = Ie(["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"]), Sa = Ie(["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"]), gn = Ie(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Md = Ce(/{{[\w\W]*|^[\w\W]*}}/g), wd = Ce(/<%[\w\W]*|^[\w\W]*%>/g), Ed = Ce(/\${[\w\W]*/g), Ad = Ce(/^data-[\-\w.\u00B7-\uFFFF]+$/), Id = Ce(/^aria-[\-\w]+$/), Ta = Ce(
|
|
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
564
|
), Cd = Ce(/^(?:\w+script|data):/i), Od = Ce(
|
|
565
565
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
566
566
|
// eslint-disable-line no-control-regex
|
|
567
|
-
), kd = Ce(/^html$/i), Rd = Ce(/^[a-z][.\w]*(-[.\w]+)+$/i), Ma = Ce(/<[/\w!]/g), Fd = Ce(/<[/\w]/g),
|
|
567
|
+
), kd = Ce(/^html$/i), Rd = Ce(/^[a-z][.\w]*(-[.\w]+)+$/i), Ma = Ce(/<[/\w!]/g), Fd = Ce(/<[/\w]/g), Ud = Ce(/<\/no(script|embed|frames)/i), Nd = Ce(/\/>/i), Ye = {
|
|
568
568
|
element: 1,
|
|
569
569
|
attribute: 2,
|
|
570
570
|
text: 3,
|
|
@@ -618,7 +618,7 @@ const ba = Ie(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
618
618
|
};
|
|
619
619
|
function Mo() {
|
|
620
620
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ld();
|
|
621
|
-
const t = (
|
|
621
|
+
const t = (U) => Mo(U);
|
|
622
622
|
if (t.version = "3.4.11", t.removed = [], !e || !e.document || e.document.nodeType !== Ye.document || !e.Element)
|
|
623
623
|
return t.isSupported = !1, t;
|
|
624
624
|
let n = e.document;
|
|
@@ -626,12 +626,12 @@ function Mo() {
|
|
|
626
626
|
e.DocumentFragment;
|
|
627
627
|
const i = e.HTMLTemplateElement, r = e.Node, l = e.Element, d = e.NodeFilter, u = e.NamedNodeMap;
|
|
628
628
|
u === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
629
|
-
const y = e.DOMParser, f = e.trustedTypes, p = l.prototype,
|
|
629
|
+
const y = e.DOMParser, f = e.trustedTypes, p = l.prototype, b = We(p, "cloneNode"), A = We(p, "remove"), v = We(p, "nextSibling"), F = We(p, "childNodes"), L = We(p, "parentNode"), H = We(p, "shadowRoot"), K = We(p, "attributes"), O = r && r.prototype ? We(r.prototype, "nodeType") : null, C = r && r.prototype ? We(r.prototype, "nodeName") : null;
|
|
630
630
|
if (typeof i == "function") {
|
|
631
|
-
const
|
|
632
|
-
|
|
631
|
+
const U = n.createElement("template");
|
|
632
|
+
U.content && U.content.ownerDocument && (n = U.content.ownerDocument);
|
|
633
633
|
}
|
|
634
|
-
let _, T = "",
|
|
634
|
+
let _, T = "", N, D = !1, g = 0;
|
|
635
635
|
const S = function() {
|
|
636
636
|
if (g > 0)
|
|
637
637
|
throw yt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
@@ -650,13 +650,13 @@ function Mo() {
|
|
|
650
650
|
g--;
|
|
651
651
|
}
|
|
652
652
|
}, Q = function() {
|
|
653
|
-
return D || (
|
|
654
|
-
}, pe = n, xe = pe.implementation, ge = pe.createNodeIterator, it = pe.createDocumentFragment,
|
|
653
|
+
return D || (N = Dd(f, a), D = !0), N;
|
|
654
|
+
}, pe = n, xe = pe.implementation, ge = pe.createNodeIterator, it = pe.createDocumentFragment, Nn = pe.getElementsByTagName, Ln = o.importNode;
|
|
655
655
|
let z = wa();
|
|
656
656
|
t.isSupported = typeof So == "function" && typeof L == "function" && xe && xe.createHTMLDocument !== void 0;
|
|
657
657
|
const de = Md, xt = wd, us = Ed, ms = Ad, fs = Id, hs = Cd, Ci = Od, ps = Rd;
|
|
658
658
|
let Oi = Ta, ce = null;
|
|
659
|
-
const ki = W({}, [...
|
|
659
|
+
const ki = W({}, [...va, ...ni, ...ii, ...ai, ...ba]);
|
|
660
660
|
let ue = null;
|
|
661
661
|
const Ri = W({}, [..._a, ...oi, ...Sa, ...gn]);
|
|
662
662
|
let me = Object.seal(Rt(null, {
|
|
@@ -693,7 +693,7 @@ function Mo() {
|
|
|
693
693
|
value: null
|
|
694
694
|
}
|
|
695
695
|
}));
|
|
696
|
-
let
|
|
696
|
+
let Ui = !0, Dn = !0, Ni = !1, Li = !0, ot = !1, qt = !0, pt = !1, Pn = !1, Vn = null, Kn = null, jn = !1, Et = !1, dn = !1, cn = !1, Di = !0, Pi = !1;
|
|
697
697
|
const Vi = "user-content-";
|
|
698
698
|
let $n = !0, xn = !1, At = {}, He = null;
|
|
699
699
|
const zn = W({}, [
|
|
@@ -744,7 +744,7 @@ function Mo() {
|
|
|
744
744
|
let Yn = W({}, zi);
|
|
745
745
|
const ys = W({}, ["title", "style", "font", "a", "script"]);
|
|
746
746
|
let Bt = null;
|
|
747
|
-
const
|
|
747
|
+
const vs = ["application/xhtml+xml", "text/html"], bs = "text/html";
|
|
748
748
|
let fe = null, Ct = null;
|
|
749
749
|
const _s = n.createElement("form"), qi = function(s) {
|
|
750
750
|
return s instanceof RegExp || s instanceof Function;
|
|
@@ -753,7 +753,7 @@ function Mo() {
|
|
|
753
753
|
if (Ct && Ct === s)
|
|
754
754
|
return;
|
|
755
755
|
(!s || typeof s != "object") && (s = {}), s = ke(s), Bt = // eslint-disable-next-line unicorn/prefer-includes
|
|
756
|
-
|
|
756
|
+
vs.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? bs : s.PARSER_MEDIA_TYPE, fe = Bt === "application/xhtml+xml" ? ti : Jt, ce = rt(s, "ALLOWED_TAGS", ki, {
|
|
757
757
|
transform: fe
|
|
758
758
|
}), ue = rt(s, "ALLOWED_ATTR", Ri, {
|
|
759
759
|
transform: fe
|
|
@@ -771,9 +771,9 @@ function Mo() {
|
|
|
771
771
|
transform: fe
|
|
772
772
|
}), Fi = rt(s, "FORBID_ATTR", ke({}), {
|
|
773
773
|
transform: fe
|
|
774
|
-
}), At = Me(s, "USE_PROFILES") ? s.USE_PROFILES && typeof s.USE_PROFILES == "object" ? ke(s.USE_PROFILES) : s.USE_PROFILES : !1,
|
|
774
|
+
}), At = Me(s, "USE_PROFILES") ? s.USE_PROFILES && typeof s.USE_PROFILES == "object" ? ke(s.USE_PROFILES) : s.USE_PROFILES : !1, Ui = s.ALLOW_ARIA_ATTR !== !1, Dn = s.ALLOW_DATA_ATTR !== !1, Ni = s.ALLOW_UNKNOWN_PROTOCOLS || !1, Li = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ot = s.SAFE_FOR_TEMPLATES || !1, qt = s.SAFE_FOR_XML !== !1, pt = s.WHOLE_DOCUMENT || !1, Et = s.RETURN_DOM || !1, dn = s.RETURN_DOM_FRAGMENT || !1, cn = s.RETURN_TRUSTED_TYPE || !1, jn = s.FORCE_BODY || !1, Di = s.SANITIZE_DOM !== !1, Pi = s.SANITIZE_NAMED_PROPS || !1, $n = s.KEEP_CONTENT !== !1, xn = s.IN_PLACE || !1, Oi = _d(s.ALLOWED_URI_REGEXP) ? s.ALLOWED_URI_REGEXP : Ta, It = typeof s.NAMESPACE == "string" ? s.NAMESPACE : Ge, Gn = Me(s, "MATHML_TEXT_INTEGRATION_POINTS") && s.MATHML_TEXT_INTEGRATION_POINTS && typeof s.MATHML_TEXT_INTEGRATION_POINTS == "object" ? ke(s.MATHML_TEXT_INTEGRATION_POINTS) : W({}, xi), Yn = Me(s, "HTML_INTEGRATION_POINTS") && s.HTML_INTEGRATION_POINTS && typeof s.HTML_INTEGRATION_POINTS == "object" ? ke(s.HTML_INTEGRATION_POINTS) : W({}, zi);
|
|
775
775
|
const h = Me(s, "CUSTOM_ELEMENT_HANDLING") && s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING == "object" ? ke(s.CUSTOM_ELEMENT_HANDLING) : Rt(null);
|
|
776
|
-
if (me = Rt(null), Me(h, "tagNameCheck") && qi(h.tagNameCheck) && (me.tagNameCheck = h.tagNameCheck), Me(h, "attributeNameCheck") && qi(h.attributeNameCheck) && (me.attributeNameCheck = h.attributeNameCheck), Me(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (me.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), Ce(me), ot && (Dn = !1), dn && (Et = !0), At && (ce = W({},
|
|
776
|
+
if (me = Rt(null), Me(h, "tagNameCheck") && qi(h.tagNameCheck) && (me.tagNameCheck = h.tagNameCheck), Me(h, "attributeNameCheck") && qi(h.attributeNameCheck) && (me.attributeNameCheck = h.attributeNameCheck), Me(h, "allowCustomizedBuiltInElements") && typeof h.allowCustomizedBuiltInElements == "boolean" && (me.allowCustomizedBuiltInElements = h.allowCustomizedBuiltInElements), Ce(me), ot && (Dn = !1), dn && (Et = !0), At && (ce = W({}, ba), ue = Rt(null), At.html === !0 && (W(ce, va), W(ue, _a)), At.svg === !0 && (W(ce, ni), W(ue, oi), W(ue, gn)), At.svgFilters === !0 && (W(ce, ii), W(ue, oi), W(ue, gn)), At.mathMl === !0 && (W(ce, ai), W(ue, Sa), W(ue, gn))), at.tagCheck = null, at.attributeCheck = null, Me(s, "ADD_TAGS") && (typeof s.ADD_TAGS == "function" ? at.tagCheck = s.ADD_TAGS : ct(s.ADD_TAGS) && (ce === ki && (ce = ke(ce)), W(ce, s.ADD_TAGS, fe))), Me(s, "ADD_ATTR") && (typeof s.ADD_ATTR == "function" ? at.attributeCheck = s.ADD_ATTR : ct(s.ADD_ATTR) && (ue === Ri && (ue = ke(ue)), W(ue, s.ADD_ATTR, fe))), Me(s, "ADD_URI_SAFE_ATTR") && ct(s.ADD_URI_SAFE_ATTR) && W(qn, s.ADD_URI_SAFE_ATTR, fe), Me(s, "FORBID_CONTENTS") && ct(s.FORBID_CONTENTS) && (He === zn && (He = ke(He)), W(He, s.FORBID_CONTENTS, fe)), Me(s, "ADD_FORBID_CONTENTS") && ct(s.ADD_FORBID_CONTENTS) && (He === zn && (He = ke(He)), W(He, s.ADD_FORBID_CONTENTS, fe)), $n && (ce["#text"] = !0), pt && W(ce, ["html", "head", "body"]), ce.table && (W(ce, ["tbody"]), delete zt.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
777
777
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
778
778
|
throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
779
779
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -901,7 +901,7 @@ function Mo() {
|
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
const G = h.body || h.documentElement;
|
|
904
|
-
return s && R && G.insertBefore(n.createTextNode(R), G.childNodes[0] || null), It === Ge ?
|
|
904
|
+
return s && R && G.insertBefore(n.createTextNode(R), G.childNodes[0] || null), It === Ge ? Nn.call(h, pt ? "html" : "body")[0] : pt ? h.documentElement : G;
|
|
905
905
|
}, Wi = function(s) {
|
|
906
906
|
return ge.call(
|
|
907
907
|
s.ownerDocument || s,
|
|
@@ -972,8 +972,8 @@ function Mo() {
|
|
|
972
972
|
return !1;
|
|
973
973
|
}
|
|
974
974
|
};
|
|
975
|
-
function Xe(
|
|
976
|
-
|
|
975
|
+
function Xe(U, s, h) {
|
|
976
|
+
U.length !== 0 && Yt(U, (R) => {
|
|
977
977
|
R.call(t, s, h, Ct);
|
|
978
978
|
});
|
|
979
979
|
}
|
|
@@ -987,8 +987,8 @@ function Mo() {
|
|
|
987
987
|
if ($ && R) {
|
|
988
988
|
const G = $.length;
|
|
989
989
|
for (let J = G - 1; J >= 0; --J) {
|
|
990
|
-
const Te = xn ? $[J] :
|
|
991
|
-
R.insertBefore(Te,
|
|
990
|
+
const Te = xn ? $[J] : b($[J], !0);
|
|
991
|
+
R.insertBefore(Te, v(s));
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
}
|
|
@@ -1004,7 +1004,7 @@ function Mo() {
|
|
|
1004
1004
|
return st(s), !0;
|
|
1005
1005
|
if (zt[h] || !(at.tagCheck instanceof Function && at.tagCheck(h)) && !ce[h])
|
|
1006
1006
|
return Cs(s, h);
|
|
1007
|
-
if ((O ? O(s) : s.nodeType) === Ye.element && !ws(s) || (h === "noscript" || h === "noembed" || h === "noframes") && Ee(
|
|
1007
|
+
if ((O ? O(s) : s.nodeType) === Ye.element && !ws(s) || (h === "noscript" || h === "noembed" || h === "noframes") && Ee(Ud, s.innerHTML))
|
|
1008
1008
|
return st(s), !0;
|
|
1009
1009
|
if (ot && s.nodeType === Ye.text) {
|
|
1010
1010
|
const $ = fn(s.textContent);
|
|
@@ -1018,12 +1018,12 @@ function Mo() {
|
|
|
1018
1018
|
return !1;
|
|
1019
1019
|
const $ = ue[h] || at.attributeCheck instanceof Function && at.attributeCheck(h, s);
|
|
1020
1020
|
if (!(Dn && Ee(ms, h))) {
|
|
1021
|
-
if (!(
|
|
1021
|
+
if (!(Ui && Ee(fs, h))) {
|
|
1022
1022
|
if ($) {
|
|
1023
1023
|
if (!qn[h]) {
|
|
1024
1024
|
if (!Ee(Oi, Wt(R, Ci, ""))) {
|
|
1025
1025
|
if (!((h === "src" || h === "xlink:href" || h === "href") && s !== "script" && pa(R, "data:") === 0 && Ki[s])) {
|
|
1026
|
-
if (!(
|
|
1026
|
+
if (!(Ni && !Ee(hs, Wt(R, Ci, "")))) {
|
|
1027
1027
|
if (R)
|
|
1028
1028
|
return !1;
|
|
1029
1029
|
}
|
|
@@ -1088,7 +1088,7 @@ function Mo() {
|
|
|
1088
1088
|
gt(Te, s);
|
|
1089
1089
|
continue;
|
|
1090
1090
|
}
|
|
1091
|
-
if (!Li && Ee(
|
|
1091
|
+
if (!Li && Ee(Nd, Oe)) {
|
|
1092
1092
|
gt(Te, s);
|
|
1093
1093
|
continue;
|
|
1094
1094
|
}
|
|
@@ -1149,49 +1149,49 @@ function Mo() {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
1151
|
};
|
|
1152
|
-
return t.sanitize = function(
|
|
1152
|
+
return t.sanitize = function(U) {
|
|
1153
1153
|
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = null, R = null, $ = null, G = null;
|
|
1154
|
-
if (Bn = !
|
|
1154
|
+
if (Bn = !U, Bn && (U = "<!-->"), typeof U != "string" && !Ht(U) && (U = bd(U), typeof U != "string"))
|
|
1155
1155
|
throw yt("dirty is not a string, aborting");
|
|
1156
1156
|
if (!t.isSupported)
|
|
1157
|
-
return
|
|
1157
|
+
return U;
|
|
1158
1158
|
Pn ? (ce = Vn, ue = Kn) : Wn(s), (z.uponSanitizeElement.length > 0 || z.uponSanitizeAttribute.length > 0) && (ce = ke(ce)), z.uponSanitizeAttribute.length > 0 && (ue = ke(ue)), t.removed = [];
|
|
1159
|
-
const J = xn && typeof
|
|
1159
|
+
const J = xn && typeof U != "string" && Ht(U);
|
|
1160
1160
|
if (J) {
|
|
1161
|
-
const Ve = C ? C(
|
|
1161
|
+
const Ve = C ? C(U) : U.nodeName;
|
|
1162
1162
|
if (typeof Ve == "string") {
|
|
1163
1163
|
const ze = fe(Ve);
|
|
1164
1164
|
if (!ce[ze] || zt[ze])
|
|
1165
1165
|
throw yt("root node is forbidden and cannot be sanitized in-place");
|
|
1166
1166
|
}
|
|
1167
|
-
if (hn(
|
|
1167
|
+
if (hn(U))
|
|
1168
1168
|
throw yt("root node is clobbered and cannot be sanitized in-place");
|
|
1169
1169
|
try {
|
|
1170
|
-
Xn(
|
|
1170
|
+
Xn(U);
|
|
1171
1171
|
} catch (ze) {
|
|
1172
|
-
throw Gi(
|
|
1172
|
+
throw Gi(U), ze;
|
|
1173
1173
|
}
|
|
1174
|
-
} else if (Ht(
|
|
1175
|
-
h = Yi("<!---->"), R = h.ownerDocument.importNode(
|
|
1174
|
+
} else if (Ht(U))
|
|
1175
|
+
h = Yi("<!---->"), R = h.ownerDocument.importNode(U, !0), R.nodeType === Ye.element && R.nodeName === "BODY" || R.nodeName === "HTML" ? h = R : h.appendChild(R), Xn(R);
|
|
1176
1176
|
else {
|
|
1177
1177
|
if (!Et && !ot && !pt && // eslint-disable-next-line unicorn/prefer-includes
|
|
1178
|
-
|
|
1179
|
-
return _ && cn ? I(
|
|
1180
|
-
if (h = Yi(
|
|
1178
|
+
U.indexOf("<") === -1)
|
|
1179
|
+
return _ && cn ? I(U) : U;
|
|
1180
|
+
if (h = Yi(U), !h)
|
|
1181
1181
|
return Et ? null : cn ? T : "";
|
|
1182
1182
|
}
|
|
1183
1183
|
h && jn && st(h.firstChild);
|
|
1184
|
-
const Te = Wi(J ?
|
|
1184
|
+
const Te = Wi(J ? U : h);
|
|
1185
1185
|
try {
|
|
1186
1186
|
for (; $ = Te.nextNode(); )
|
|
1187
1187
|
Zi($), Qi($), Ot($.content) && pn($.content);
|
|
1188
1188
|
} catch (Ve) {
|
|
1189
|
-
throw J && Gi(
|
|
1189
|
+
throw J && Gi(U), Ve;
|
|
1190
1190
|
}
|
|
1191
1191
|
if (J)
|
|
1192
1192
|
return Yt(t.removed, (Ve) => {
|
|
1193
1193
|
Ve.element && As(Ve.element);
|
|
1194
|
-
}), ot && Zn(
|
|
1194
|
+
}), ot && Zn(U), U;
|
|
1195
1195
|
if (Et) {
|
|
1196
1196
|
if (ot && Zn(h), dn)
|
|
1197
1197
|
for (G = it.call(h.ownerDocument); h.firstChild; )
|
|
@@ -1204,26 +1204,26 @@ function Mo() {
|
|
|
1204
1204
|
return pt && ce["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && Ee(kd, h.ownerDocument.doctype.name) && (_e = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
|
|
1205
1205
|
` + _e), ot && (_e = fn(_e)), _ && cn ? I(_e) : _e;
|
|
1206
1206
|
}, t.setConfig = function() {
|
|
1207
|
-
let
|
|
1208
|
-
Wn(
|
|
1207
|
+
let U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1208
|
+
Wn(U), Pn = !0, Vn = ce, Kn = ue;
|
|
1209
1209
|
}, t.clearConfig = function() {
|
|
1210
|
-
Ct = null, Pn = !1, Vn = null, Kn = null, _ =
|
|
1211
|
-
}, t.isValidAttribute = function(
|
|
1210
|
+
Ct = null, Pn = !1, Vn = null, Kn = null, _ = N, T = "";
|
|
1211
|
+
}, t.isValidAttribute = function(U, s, h) {
|
|
1212
1212
|
Ct || Wn({});
|
|
1213
|
-
const R = fe(
|
|
1213
|
+
const R = fe(U), $ = fe(s);
|
|
1214
1214
|
return Xi(R, $, h);
|
|
1215
|
-
}, t.addHook = function(
|
|
1216
|
-
typeof s == "function" && Me(z,
|
|
1217
|
-
}, t.removeHook = function(
|
|
1218
|
-
if (Me(z,
|
|
1215
|
+
}, t.addHook = function(U, s) {
|
|
1216
|
+
typeof s == "function" && Me(z, U) && kt(z[U], s);
|
|
1217
|
+
}, t.removeHook = function(U, s) {
|
|
1218
|
+
if (Me(z, U)) {
|
|
1219
1219
|
if (s !== void 0) {
|
|
1220
|
-
const h = md(z[
|
|
1221
|
-
return h === -1 ? void 0 : fd(z[
|
|
1220
|
+
const h = md(z[U], s);
|
|
1221
|
+
return h === -1 ? void 0 : fd(z[U], h, 1)[0];
|
|
1222
1222
|
}
|
|
1223
|
-
return fa(z[
|
|
1223
|
+
return fa(z[U]);
|
|
1224
1224
|
}
|
|
1225
|
-
}, t.removeHooks = function(
|
|
1226
|
-
Me(z,
|
|
1225
|
+
}, t.removeHooks = function(U) {
|
|
1226
|
+
Me(z, U) && (z[U] = []);
|
|
1227
1227
|
}, t.removeAllHooks = function() {
|
|
1228
1228
|
z = wa();
|
|
1229
1229
|
}, t;
|
|
@@ -1262,7 +1262,7 @@ $t.prototype.delete = Vd;
|
|
|
1262
1262
|
$t.prototype.get = Kd;
|
|
1263
1263
|
$t.prototype.has = jd;
|
|
1264
1264
|
$t.prototype.set = xd;
|
|
1265
|
-
var
|
|
1265
|
+
var vn = function() {
|
|
1266
1266
|
try {
|
|
1267
1267
|
var e = wt(Object, "defineProperty");
|
|
1268
1268
|
return e({}, "", {}), e;
|
|
@@ -1270,7 +1270,7 @@ var bn = function() {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
}();
|
|
1272
1272
|
function Eo(e, t, n) {
|
|
1273
|
-
t == "__proto__" &&
|
|
1273
|
+
t == "__proto__" && vn ? vn(e, t, {
|
|
1274
1274
|
configurable: !0,
|
|
1275
1275
|
enumerable: !0,
|
|
1276
1276
|
value: n,
|
|
@@ -1303,18 +1303,18 @@ function Hd(e) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
var Gd = Object.prototype, Yd = Gd.hasOwnProperty;
|
|
1305
1305
|
function Wd(e) {
|
|
1306
|
-
if (!
|
|
1306
|
+
if (!Ne(e))
|
|
1307
1307
|
return Hd(e);
|
|
1308
1308
|
var t = _i(e), n = [];
|
|
1309
1309
|
for (var o in e)
|
|
1310
1310
|
o == "constructor" && (t || !Yd.call(e, o)) || n.push(o);
|
|
1311
1311
|
return n;
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Un(e) {
|
|
1314
1314
|
return An(e) ? yo(e, !0) : Wd(e);
|
|
1315
1315
|
}
|
|
1316
1316
|
function Zd(e, t) {
|
|
1317
|
-
return e && Fn(t,
|
|
1317
|
+
return e && Fn(t, Un(t), e);
|
|
1318
1318
|
}
|
|
1319
1319
|
var Io = typeof exports == "object" && exports && !exports.nodeType && exports, Ea = Io && typeof module == "object" && module && !module.nodeType && module, Xd = Ea && Ea.exports === Io, Aa = Xd ? $e.Buffer : void 0, Ia = Aa ? Aa.allocUnsafe : void 0;
|
|
1320
1320
|
function Jd(e, t) {
|
|
@@ -1352,7 +1352,7 @@ function Oo(e, t) {
|
|
|
1352
1352
|
e[a + n] = t[n];
|
|
1353
1353
|
return e;
|
|
1354
1354
|
}
|
|
1355
|
-
var ko =
|
|
1355
|
+
var ko = vo(Object.getPrototypeOf, Object), ac = Object.getOwnPropertySymbols, Ro = ac ? function(e) {
|
|
1356
1356
|
for (var t = []; e; )
|
|
1357
1357
|
Oo(t, wi(e)), e = ko(e);
|
|
1358
1358
|
return t;
|
|
@@ -1368,15 +1368,15 @@ function sc(e) {
|
|
|
1368
1368
|
return Fo(e, In, wi);
|
|
1369
1369
|
}
|
|
1370
1370
|
function rc(e) {
|
|
1371
|
-
return Fo(e,
|
|
1371
|
+
return Fo(e, Un, Ro);
|
|
1372
1372
|
}
|
|
1373
|
-
var mi = wt($e, "DataView"), fi = wt($e, "Promise"),
|
|
1374
|
-
(mi && Je(new mi(new ArrayBuffer(1))) !=
|
|
1373
|
+
var mi = wt($e, "DataView"), fi = wt($e, "Promise"), Nt = wt($e, "Set"), hi = wt($e, "WeakMap"), Oa = "[object Map]", lc = "[object Object]", ka = "[object Promise]", Ra = "[object Set]", Fa = "[object WeakMap]", Ua = "[object DataView]", dc = Mt(mi), cc = Mt(sn), uc = Mt(fi), mc = Mt(Nt), fc = Mt(hi), Je = mt;
|
|
1374
|
+
(mi && Je(new mi(new ArrayBuffer(1))) != Ua || sn && Je(new sn()) != Oa || fi && Je(fi.resolve()) != ka || Nt && Je(new Nt()) != Ra || hi && Je(new hi()) != Fa) && (Je = function(e) {
|
|
1375
1375
|
var t = mt(e), n = t == lc ? e.constructor : void 0, o = n ? Mt(n) : "";
|
|
1376
1376
|
if (o)
|
|
1377
1377
|
switch (o) {
|
|
1378
1378
|
case dc:
|
|
1379
|
-
return
|
|
1379
|
+
return Ua;
|
|
1380
1380
|
case cc:
|
|
1381
1381
|
return Oa;
|
|
1382
1382
|
case uc:
|
|
@@ -1393,18 +1393,18 @@ function gc(e) {
|
|
|
1393
1393
|
var t = e.length, n = new e.constructor(t);
|
|
1394
1394
|
return t && typeof e[0] == "string" && pc.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
1395
1395
|
}
|
|
1396
|
-
var
|
|
1396
|
+
var Na = $e.Uint8Array;
|
|
1397
1397
|
function Ei(e) {
|
|
1398
1398
|
var t = new e.constructor(e.byteLength);
|
|
1399
|
-
return new
|
|
1399
|
+
return new Na(t).set(new Na(e)), t;
|
|
1400
1400
|
}
|
|
1401
1401
|
function yc(e, t) {
|
|
1402
1402
|
var n = t ? Ei(e.buffer) : e.buffer;
|
|
1403
1403
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
1404
1404
|
}
|
|
1405
|
-
var
|
|
1406
|
-
function
|
|
1407
|
-
var t = new e.constructor(e.source,
|
|
1405
|
+
var vc = /\w*$/;
|
|
1406
|
+
function bc(e) {
|
|
1407
|
+
var t = new e.constructor(e.source, vc.exec(e));
|
|
1408
1408
|
return t.lastIndex = e.lastIndex, t;
|
|
1409
1409
|
}
|
|
1410
1410
|
var La = ut ? ut.prototype : void 0, Da = La ? La.valueOf : void 0;
|
|
@@ -1415,7 +1415,7 @@ function Sc(e, t) {
|
|
|
1415
1415
|
var n = t ? Ei(e.buffer) : e.buffer;
|
|
1416
1416
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
1417
1417
|
}
|
|
1418
|
-
var Tc = "[object Boolean]", Mc = "[object Date]", wc = "[object Map]", Ec = "[object Number]", Ac = "[object RegExp]", Ic = "[object Set]", Cc = "[object String]", Oc = "[object Symbol]", kc = "[object ArrayBuffer]", Rc = "[object DataView]", Fc = "[object Float32Array]",
|
|
1418
|
+
var Tc = "[object Boolean]", Mc = "[object Date]", wc = "[object Map]", Ec = "[object Number]", Ac = "[object RegExp]", Ic = "[object Set]", Cc = "[object String]", Oc = "[object Symbol]", kc = "[object ArrayBuffer]", Rc = "[object DataView]", Fc = "[object Float32Array]", Uc = "[object Float64Array]", Nc = "[object Int8Array]", Lc = "[object Int16Array]", Dc = "[object Int32Array]", Pc = "[object Uint8Array]", Vc = "[object Uint8ClampedArray]", Kc = "[object Uint16Array]", jc = "[object Uint32Array]";
|
|
1419
1419
|
function $c(e, t, n) {
|
|
1420
1420
|
var o = e.constructor;
|
|
1421
1421
|
switch (t) {
|
|
@@ -1427,8 +1427,8 @@ function $c(e, t, n) {
|
|
|
1427
1427
|
case Rc:
|
|
1428
1428
|
return yc(e, n);
|
|
1429
1429
|
case Fc:
|
|
1430
|
-
case Nc:
|
|
1431
1430
|
case Uc:
|
|
1431
|
+
case Nc:
|
|
1432
1432
|
case Lc:
|
|
1433
1433
|
case Dc:
|
|
1434
1434
|
case Pc:
|
|
@@ -1442,7 +1442,7 @@ function $c(e, t, n) {
|
|
|
1442
1442
|
case Cc:
|
|
1443
1443
|
return new o(e);
|
|
1444
1444
|
case Ac:
|
|
1445
|
-
return
|
|
1445
|
+
return bc(e);
|
|
1446
1446
|
case Ic:
|
|
1447
1447
|
return new o();
|
|
1448
1448
|
case Oc:
|
|
@@ -1453,7 +1453,7 @@ var Pa = Object.create, xc = /* @__PURE__ */ function() {
|
|
|
1453
1453
|
function e() {
|
|
1454
1454
|
}
|
|
1455
1455
|
return function(t) {
|
|
1456
|
-
if (!
|
|
1456
|
+
if (!Ne(t))
|
|
1457
1457
|
return {};
|
|
1458
1458
|
if (Pa)
|
|
1459
1459
|
return Pa(t);
|
|
@@ -1469,28 +1469,28 @@ var qc = "[object Map]";
|
|
|
1469
1469
|
function Bc(e) {
|
|
1470
1470
|
return ft(e) && Je(e) == qc;
|
|
1471
1471
|
}
|
|
1472
|
-
var Va = Dt && Dt.isMap, Hc = Va ?
|
|
1472
|
+
var Va = Dt && Dt.isMap, Hc = Va ? bi(Va) : Bc, Gc = "[object Set]";
|
|
1473
1473
|
function Yc(e) {
|
|
1474
1474
|
return ft(e) && Je(e) == Gc;
|
|
1475
1475
|
}
|
|
1476
|
-
var Ka = Dt && Dt.isSet, Wc = Ka ?
|
|
1477
|
-
ie[
|
|
1478
|
-
ie[nu] = ie[
|
|
1476
|
+
var Ka = Dt && Dt.isSet, Wc = Ka ? bi(Ka) : Yc, Zc = 1, Xc = 2, Jc = 4, Uo = "[object Arguments]", Qc = "[object Array]", eu = "[object Boolean]", tu = "[object Date]", nu = "[object Error]", No = "[object Function]", iu = "[object GeneratorFunction]", au = "[object Map]", ou = "[object Number]", Lo = "[object Object]", su = "[object RegExp]", ru = "[object Set]", lu = "[object String]", du = "[object Symbol]", cu = "[object WeakMap]", uu = "[object ArrayBuffer]", mu = "[object DataView]", fu = "[object Float32Array]", hu = "[object Float64Array]", pu = "[object Int8Array]", gu = "[object Int16Array]", yu = "[object Int32Array]", vu = "[object Uint8Array]", bu = "[object Uint8ClampedArray]", _u = "[object Uint16Array]", Su = "[object Uint32Array]", ie = {};
|
|
1477
|
+
ie[Uo] = ie[Qc] = ie[uu] = ie[mu] = ie[eu] = ie[tu] = ie[fu] = ie[hu] = ie[pu] = ie[gu] = ie[yu] = ie[au] = ie[ou] = ie[Lo] = ie[su] = ie[ru] = ie[lu] = ie[du] = ie[vu] = ie[bu] = ie[_u] = ie[Su] = !0;
|
|
1478
|
+
ie[nu] = ie[No] = ie[cu] = !1;
|
|
1479
1479
|
function tn(e, t, n, o, a, i) {
|
|
1480
1480
|
var r, l = t & Zc, d = t & Xc, u = t & Jc;
|
|
1481
1481
|
if (r !== void 0)
|
|
1482
1482
|
return r;
|
|
1483
|
-
if (!
|
|
1483
|
+
if (!Ne(e))
|
|
1484
1484
|
return e;
|
|
1485
1485
|
var y = ht(e);
|
|
1486
1486
|
if (y) {
|
|
1487
1487
|
if (r = gc(e), !l)
|
|
1488
1488
|
return Qd(e, r);
|
|
1489
1489
|
} else {
|
|
1490
|
-
var f = Je(e), p = f ==
|
|
1490
|
+
var f = Je(e), p = f == No || f == iu;
|
|
1491
1491
|
if (fo(e))
|
|
1492
1492
|
return Jd(e, l);
|
|
1493
|
-
if (f == Lo || f ==
|
|
1493
|
+
if (f == Lo || f == Uo || p && !a) {
|
|
1494
1494
|
if (r = d || p ? {} : zc(e), !l)
|
|
1495
1495
|
return d ? oc(e, Zd(r, e)) : ic(e, Bd(r, e));
|
|
1496
1496
|
} else {
|
|
@@ -1500,17 +1500,17 @@ function tn(e, t, n, o, a, i) {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
i || (i = new $t());
|
|
1503
|
-
var
|
|
1504
|
-
if (
|
|
1505
|
-
return
|
|
1503
|
+
var b = i.get(e);
|
|
1504
|
+
if (b)
|
|
1505
|
+
return b;
|
|
1506
1506
|
i.set(e, r), Wc(e) ? e.forEach(function(F) {
|
|
1507
1507
|
r.add(tn(F, t, n, F, e, i));
|
|
1508
1508
|
}) : Hc(e) && e.forEach(function(F, L) {
|
|
1509
1509
|
r.set(L, tn(F, t, n, L, e, i));
|
|
1510
1510
|
});
|
|
1511
|
-
var A = u ? d ? rc : sc : d ?
|
|
1512
|
-
return ro(
|
|
1513
|
-
|
|
1511
|
+
var A = u ? d ? rc : sc : d ? Un : In, v = y ? void 0 : A(e);
|
|
1512
|
+
return ro(v || e, function(F, L) {
|
|
1513
|
+
v && (L = F, F = e[L]), Ao(r, L, tn(F, t, n, L, e, i));
|
|
1514
1514
|
}), r;
|
|
1515
1515
|
}
|
|
1516
1516
|
var Tu = 1, Mu = 4;
|
|
@@ -1519,7 +1519,7 @@ function Qe(e) {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
const Ai = (e, t = "") => typeof e.id < "u" ? t + e.id + "" : t + (e.inputName || e.label || e.model || "").toString().trim().toLowerCase().replace(/ |_/g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-]+)/g, ""), ja = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
|
|
1521
1521
|
var wu = "[object String]";
|
|
1522
|
-
function
|
|
1522
|
+
function bt(e) {
|
|
1523
1523
|
return typeof e == "string" || !ht(e) && ft(e) && mt(e) == wu;
|
|
1524
1524
|
}
|
|
1525
1525
|
const Do = {
|
|
@@ -1534,26 +1534,26 @@ const Do = {
|
|
|
1534
1534
|
featured: this.fieldFeatured(e),
|
|
1535
1535
|
required: this.fieldRequired(e)
|
|
1536
1536
|
};
|
|
1537
|
-
return Array.isArray(e.styleClasses) ? Re(e.styleClasses, (o) => n[o] = !0) :
|
|
1537
|
+
return Array.isArray(e.styleClasses) ? Re(e.styleClasses, (o) => n[o] = !0) : bt(e.styleClasses) && (n[e.styleClasses] = !0), ve(e.type) || (n["field-" + e.type] = !0), n;
|
|
1538
1538
|
},
|
|
1539
1539
|
fieldErrors(e) {
|
|
1540
1540
|
return this.errors.filter((n) => n.field.fieldName === e.fieldName).map((n) => n.error);
|
|
1541
1541
|
},
|
|
1542
1542
|
// Get disabled attr of field
|
|
1543
1543
|
fieldDisabled(e) {
|
|
1544
|
-
return ne(e.disabled) ? e.disabled.call(this, this.model, e, this) :
|
|
1544
|
+
return ne(e.disabled) ? e.disabled.call(this, this.model, e, this) : ve(e.disabled) ? !1 : e.disabled;
|
|
1545
1545
|
},
|
|
1546
1546
|
// Get readonly prop of field
|
|
1547
1547
|
fieldReadonly(e) {
|
|
1548
|
-
return ne(e.readonly) ? e.readonly.call(this, this.model, e, this) :
|
|
1548
|
+
return ne(e.readonly) ? e.readonly.call(this, this.model, e, this) : ve(e.readonly) ? !1 : e.readonly;
|
|
1549
1549
|
},
|
|
1550
1550
|
// Get featured prop of field
|
|
1551
1551
|
fieldFeatured(e) {
|
|
1552
|
-
return ne(e.featured) ? e.featured.call(this, this.model, e, this) :
|
|
1552
|
+
return ne(e.featured) ? e.featured.call(this, this.model, e, this) : ve(e.featured) ? !1 : e.featured;
|
|
1553
1553
|
},
|
|
1554
1554
|
// Get required prop of field
|
|
1555
1555
|
fieldRequired(e) {
|
|
1556
|
-
return ne(e.required) ? e.required.call(this, this.model, e, this) :
|
|
1556
|
+
return ne(e.required) ? e.required.call(this, this.model, e, this) : ve(e.required) ? !1 : e.required;
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
1559
|
};
|
|
@@ -1575,9 +1575,9 @@ function pi(e) {
|
|
|
1575
1575
|
return e;
|
|
1576
1576
|
if (Cn(e))
|
|
1577
1577
|
return $a;
|
|
1578
|
-
if (
|
|
1578
|
+
if (Ne(e)) {
|
|
1579
1579
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1580
|
-
e =
|
|
1580
|
+
e = Ne(t) ? t + "" : t;
|
|
1581
1581
|
}
|
|
1582
1582
|
if (typeof e != "string")
|
|
1583
1583
|
return e === 0 ? e : +e;
|
|
@@ -1585,35 +1585,35 @@ function pi(e) {
|
|
|
1585
1585
|
var n = ku.test(e);
|
|
1586
1586
|
return n || Ru.test(e) ? Fu(e.slice(2), n ? 2 : 8) : Ou.test(e) ? $a : +e;
|
|
1587
1587
|
}
|
|
1588
|
-
var
|
|
1588
|
+
var Uu = "Expected a function", Nu = Math.max, Lu = Math.min;
|
|
1589
1589
|
function Pt(e, t, n) {
|
|
1590
1590
|
var o, a, i, r, l, d, u = 0, y = !1, f = !1, p = !0;
|
|
1591
1591
|
if (typeof e != "function")
|
|
1592
|
-
throw new TypeError(
|
|
1593
|
-
t = pi(t) || 0,
|
|
1594
|
-
function
|
|
1595
|
-
var T = o,
|
|
1596
|
-
return o = a = void 0, u = _, r = e.apply(
|
|
1592
|
+
throw new TypeError(Uu);
|
|
1593
|
+
t = pi(t) || 0, Ne(n) && (y = !!n.leading, f = "maxWait" in n, i = f ? Nu(pi(n.maxWait) || 0, t) : i, p = "trailing" in n ? !!n.trailing : p);
|
|
1594
|
+
function b(_) {
|
|
1595
|
+
var T = o, N = a;
|
|
1596
|
+
return o = a = void 0, u = _, r = e.apply(N, T), r;
|
|
1597
1597
|
}
|
|
1598
1598
|
function A(_) {
|
|
1599
|
-
return u = _, l = setTimeout(L, t), y ?
|
|
1599
|
+
return u = _, l = setTimeout(L, t), y ? b(_) : r;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1602
|
-
var T = _ - d,
|
|
1603
|
-
return f ? Lu(D, i -
|
|
1601
|
+
function v(_) {
|
|
1602
|
+
var T = _ - d, N = _ - u, D = t - T;
|
|
1603
|
+
return f ? Lu(D, i - N) : D;
|
|
1604
1604
|
}
|
|
1605
1605
|
function F(_) {
|
|
1606
|
-
var T = _ - d,
|
|
1607
|
-
return d === void 0 || T >= t || T < 0 || f &&
|
|
1606
|
+
var T = _ - d, N = _ - u;
|
|
1607
|
+
return d === void 0 || T >= t || T < 0 || f && N >= i;
|
|
1608
1608
|
}
|
|
1609
1609
|
function L() {
|
|
1610
1610
|
var _ = si();
|
|
1611
1611
|
if (F(_))
|
|
1612
1612
|
return H(_);
|
|
1613
|
-
l = setTimeout(L,
|
|
1613
|
+
l = setTimeout(L, v(_));
|
|
1614
1614
|
}
|
|
1615
1615
|
function H(_) {
|
|
1616
|
-
return l = void 0, p && o ?
|
|
1616
|
+
return l = void 0, p && o ? b(_) : (o = a = void 0, r);
|
|
1617
1617
|
}
|
|
1618
1618
|
function K() {
|
|
1619
1619
|
l !== void 0 && clearTimeout(l), u = 0, o = d = a = l = void 0;
|
|
@@ -1627,7 +1627,7 @@ function Pt(e, t, n) {
|
|
|
1627
1627
|
if (l === void 0)
|
|
1628
1628
|
return A(d);
|
|
1629
1629
|
if (f)
|
|
1630
|
-
return clearTimeout(l), l = setTimeout(L, t),
|
|
1630
|
+
return clearTimeout(l), l = setTimeout(L, t), b(d);
|
|
1631
1631
|
}
|
|
1632
1632
|
return l === void 0 && (l = setTimeout(L, t)), r;
|
|
1633
1633
|
}
|
|
@@ -1640,13 +1640,13 @@ function Pu(e) {
|
|
|
1640
1640
|
function Vu(e) {
|
|
1641
1641
|
return this.__data__.has(e);
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function bn(e) {
|
|
1644
1644
|
var t = -1, n = e == null ? 0 : e.length;
|
|
1645
1645
|
for (this.__data__ = new nt(); ++t < n; )
|
|
1646
1646
|
this.add(e[t]);
|
|
1647
1647
|
}
|
|
1648
|
-
|
|
1649
|
-
|
|
1648
|
+
bn.prototype.add = bn.prototype.push = Pu;
|
|
1649
|
+
bn.prototype.has = Vu;
|
|
1650
1650
|
function Ku(e, t, n, o) {
|
|
1651
1651
|
for (var a = e.length, i = n + -1; ++i < a; )
|
|
1652
1652
|
if (t(e[i], i, e))
|
|
@@ -1680,8 +1680,8 @@ function Po(e) {
|
|
|
1680
1680
|
n[++t] = o;
|
|
1681
1681
|
}), n;
|
|
1682
1682
|
}
|
|
1683
|
-
var Hu = 1 / 0, Gu =
|
|
1684
|
-
return new
|
|
1683
|
+
var Hu = 1 / 0, Gu = Nt && 1 / Po(new Nt([, -0]))[1] == Hu ? function(e) {
|
|
1684
|
+
return new Nt(e);
|
|
1685
1685
|
} : Bu, Yu = 200;
|
|
1686
1686
|
function Wu(e, t, n) {
|
|
1687
1687
|
var o = -1, a = zu, i = e.length, r = !0, l = [], d = l;
|
|
@@ -1689,7 +1689,7 @@ function Wu(e, t, n) {
|
|
|
1689
1689
|
var u = Gu(e);
|
|
1690
1690
|
if (u)
|
|
1691
1691
|
return Po(u);
|
|
1692
|
-
r = !1, a = qu, d = new
|
|
1692
|
+
r = !1, a = qu, d = new bn();
|
|
1693
1693
|
} else
|
|
1694
1694
|
d = l;
|
|
1695
1695
|
e:
|
|
@@ -1770,7 +1770,7 @@ var zo = [
|
|
|
1770
1770
|
return _n = _t(_n, e);
|
|
1771
1771
|
}, za = function(e) {
|
|
1772
1772
|
return e.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
|
|
1773
|
-
},
|
|
1773
|
+
}, Ue = function(e, t) {
|
|
1774
1774
|
for (t === void 0 && (t = 2), e = String(e); e.length < t; )
|
|
1775
1775
|
e = "0" + e;
|
|
1776
1776
|
return e;
|
|
@@ -1779,7 +1779,7 @@ var zo = [
|
|
|
1779
1779
|
return String(e.getDate());
|
|
1780
1780
|
},
|
|
1781
1781
|
DD: function(e) {
|
|
1782
|
-
return
|
|
1782
|
+
return Ue(e.getDate());
|
|
1783
1783
|
},
|
|
1784
1784
|
Do: function(e, t) {
|
|
1785
1785
|
return t.DoFn(e.getDate());
|
|
@@ -1788,7 +1788,7 @@ var zo = [
|
|
|
1788
1788
|
return String(e.getDay());
|
|
1789
1789
|
},
|
|
1790
1790
|
dd: function(e) {
|
|
1791
|
-
return
|
|
1791
|
+
return Ue(e.getDay());
|
|
1792
1792
|
},
|
|
1793
1793
|
ddd: function(e, t) {
|
|
1794
1794
|
return t.dayNamesShort[e.getDay()];
|
|
@@ -1800,7 +1800,7 @@ var zo = [
|
|
|
1800
1800
|
return String(e.getMonth() + 1);
|
|
1801
1801
|
},
|
|
1802
1802
|
MM: function(e) {
|
|
1803
|
-
return
|
|
1803
|
+
return Ue(e.getMonth() + 1);
|
|
1804
1804
|
},
|
|
1805
1805
|
MMM: function(e, t) {
|
|
1806
1806
|
return t.monthNamesShort[e.getMonth()];
|
|
@@ -1809,43 +1809,43 @@ var zo = [
|
|
|
1809
1809
|
return t.monthNames[e.getMonth()];
|
|
1810
1810
|
},
|
|
1811
1811
|
YY: function(e) {
|
|
1812
|
-
return
|
|
1812
|
+
return Ue(String(e.getFullYear()), 4).substr(2);
|
|
1813
1813
|
},
|
|
1814
1814
|
YYYY: function(e) {
|
|
1815
|
-
return
|
|
1815
|
+
return Ue(e.getFullYear(), 4);
|
|
1816
1816
|
},
|
|
1817
1817
|
h: function(e) {
|
|
1818
1818
|
return String(e.getHours() % 12 || 12);
|
|
1819
1819
|
},
|
|
1820
1820
|
hh: function(e) {
|
|
1821
|
-
return
|
|
1821
|
+
return Ue(e.getHours() % 12 || 12);
|
|
1822
1822
|
},
|
|
1823
1823
|
H: function(e) {
|
|
1824
1824
|
return String(e.getHours());
|
|
1825
1825
|
},
|
|
1826
1826
|
HH: function(e) {
|
|
1827
|
-
return
|
|
1827
|
+
return Ue(e.getHours());
|
|
1828
1828
|
},
|
|
1829
1829
|
m: function(e) {
|
|
1830
1830
|
return String(e.getMinutes());
|
|
1831
1831
|
},
|
|
1832
1832
|
mm: function(e) {
|
|
1833
|
-
return
|
|
1833
|
+
return Ue(e.getMinutes());
|
|
1834
1834
|
},
|
|
1835
1835
|
s: function(e) {
|
|
1836
1836
|
return String(e.getSeconds());
|
|
1837
1837
|
},
|
|
1838
1838
|
ss: function(e) {
|
|
1839
|
-
return
|
|
1839
|
+
return Ue(e.getSeconds());
|
|
1840
1840
|
},
|
|
1841
1841
|
S: function(e) {
|
|
1842
1842
|
return String(Math.round(e.getMilliseconds() / 100));
|
|
1843
1843
|
},
|
|
1844
1844
|
SS: function(e) {
|
|
1845
|
-
return
|
|
1845
|
+
return Ue(Math.round(e.getMilliseconds() / 10), 2);
|
|
1846
1846
|
},
|
|
1847
1847
|
SSS: function(e) {
|
|
1848
|
-
return
|
|
1848
|
+
return Ue(e.getMilliseconds(), 3);
|
|
1849
1849
|
},
|
|
1850
1850
|
a: function(e, t) {
|
|
1851
1851
|
return e.getHours() < 12 ? t.amPm[0] : t.amPm[1];
|
|
@@ -1855,11 +1855,11 @@ var zo = [
|
|
|
1855
1855
|
},
|
|
1856
1856
|
ZZ: function(e) {
|
|
1857
1857
|
var t = e.getTimezoneOffset();
|
|
1858
|
-
return (t > 0 ? "-" : "+") +
|
|
1858
|
+
return (t > 0 ? "-" : "+") + Ue(Math.floor(Math.abs(t) / 60) * 100 + Math.abs(t) % 60, 4);
|
|
1859
1859
|
},
|
|
1860
1860
|
Z: function(e) {
|
|
1861
1861
|
var t = e.getTimezoneOffset();
|
|
1862
|
-
return (t > 0 ? "-" : "+") +
|
|
1862
|
+
return (t > 0 ? "-" : "+") + Ue(Math.floor(Math.abs(t) / 60), 2) + ":" + Ue(Math.abs(t) % 60, 2);
|
|
1863
1863
|
}
|
|
1864
1864
|
}, qa = function(e) {
|
|
1865
1865
|
return +e - 1;
|
|
@@ -1970,10 +1970,10 @@ function sm(e, t, n) {
|
|
|
1970
1970
|
return r.push(za(C)), "@@@";
|
|
1971
1971
|
}), d = {}, u = {};
|
|
1972
1972
|
l = za(l).replace(jo, function(O) {
|
|
1973
|
-
var C = im[O], _ = C[0], T = C[1],
|
|
1973
|
+
var C = im[O], _ = C[0], T = C[1], N = C[3];
|
|
1974
1974
|
if (d[_])
|
|
1975
1975
|
throw new Error("Invalid format. " + _ + " specified twice in format");
|
|
1976
|
-
return d[_] = !0,
|
|
1976
|
+
return d[_] = !0, N && (u[N] = !0), i.push(C), "(" + T + ")";
|
|
1977
1977
|
}), Object.keys(u).forEach(function(O) {
|
|
1978
1978
|
if (!d[O])
|
|
1979
1979
|
throw new Error("Invalid format. " + O + " is required in specified format");
|
|
@@ -1984,7 +1984,7 @@ function sm(e, t, n) {
|
|
|
1984
1984
|
if (!y)
|
|
1985
1985
|
return null;
|
|
1986
1986
|
for (var f = _t(_t({}, _n), n), p = 1; p < y.length; p++) {
|
|
1987
|
-
var
|
|
1987
|
+
var b = i[p - 1], A = b[0], v = b[2], F = v ? v(y[p], f) : +y[p];
|
|
1988
1988
|
if (F == null)
|
|
1989
1989
|
return null;
|
|
1990
1990
|
a[A] = F;
|
|
@@ -2042,8 +2042,8 @@ function dm(e) {
|
|
|
2042
2042
|
return e;
|
|
2043
2043
|
};
|
|
2044
2044
|
}
|
|
2045
|
-
var cm =
|
|
2046
|
-
return
|
|
2045
|
+
var cm = vn ? function(e, t) {
|
|
2046
|
+
return vn(e, "toString", {
|
|
2047
2047
|
configurable: !0,
|
|
2048
2048
|
enumerable: !1,
|
|
2049
2049
|
value: dm(t),
|
|
@@ -2067,18 +2067,18 @@ function gm(e, t) {
|
|
|
2067
2067
|
return pm(lm(e, t, Si), e + "");
|
|
2068
2068
|
}
|
|
2069
2069
|
function ym(e, t, n) {
|
|
2070
|
-
if (!
|
|
2070
|
+
if (!Ne(n))
|
|
2071
2071
|
return !1;
|
|
2072
2072
|
var o = typeof t;
|
|
2073
2073
|
return (o == "number" ? An(n) && ho(t, n.length) : o == "string" && t in n) ? On(n[t], e) : !1;
|
|
2074
2074
|
}
|
|
2075
|
-
var Ho = Object.prototype,
|
|
2075
|
+
var Ho = Object.prototype, vm = Ho.hasOwnProperty, bm = gm(function(e, t) {
|
|
2076
2076
|
e = Object(e);
|
|
2077
2077
|
var n = -1, o = t.length, a = o > 2 ? t[2] : void 0;
|
|
2078
2078
|
for (a && ym(t[0], t[1], a) && (o = 1); ++n < o; )
|
|
2079
|
-
for (var i = t[n], r =
|
|
2079
|
+
for (var i = t[n], r = Un(i), l = -1, d = r.length; ++l < d; ) {
|
|
2080
2080
|
var u = r[l], y = e[u];
|
|
2081
|
-
(y === void 0 || On(y, Ho[u]) && !
|
|
2081
|
+
(y === void 0 || On(y, Ho[u]) && !vm.call(e, u)) && (e[u] = i[u]);
|
|
2082
2082
|
}
|
|
2083
2083
|
return e;
|
|
2084
2084
|
}), _m = $e.isFinite;
|
|
@@ -2341,11 +2341,11 @@ const Am = {
|
|
|
2341
2341
|
for (let n = 0; n < t.length; n++)
|
|
2342
2342
|
e = e.replace("{" + (n - 1) + "}", String(t[n] || ""));
|
|
2343
2343
|
return e;
|
|
2344
|
-
}, Ke = (e, t, n = Ae) =>
|
|
2344
|
+
}, Ke = (e, t, n = Ae) => ve(e) || e === "" ? t ? [le(n.fieldIsRequired)] : [] : null, St = {
|
|
2345
2345
|
required: (e, t, n, o = Ae) => Ke(e, t.required, o) || [],
|
|
2346
2346
|
number: (e, t, n, o = Ae) => {
|
|
2347
2347
|
let a = Ke(e, t.required, o);
|
|
2348
|
-
return a != null || (a = [], Go(e) ? (!
|
|
2348
|
+
return a != null || (a = [], Go(e) ? (!ve(t.min) && e < t.min, (o = Ae) && a.push(le(o.numberTooSmall, t.min)), !ve(t.max) && e > t.max, (o = Ae) && a.push(le(o.numberTooBig, t.max))) : a.push(le(o.invalidNumber))), a;
|
|
2349
2349
|
},
|
|
2350
2350
|
integer: (e, t, n, o = Ae) => {
|
|
2351
2351
|
let a = Ke(e, t.required, o);
|
|
@@ -2357,7 +2357,7 @@ const Am = {
|
|
|
2357
2357
|
},
|
|
2358
2358
|
string: (e, t, n, o = Ae) => {
|
|
2359
2359
|
let a = Ke(e, t.required, o);
|
|
2360
|
-
return a != null || (a = [],
|
|
2360
|
+
return a != null || (a = [], bt(e) ? (!ve(t.min) && e.length < t.min && a.push(le(o.textTooSmall, e.length, t.min)), !ve(t.max) && e.length > t.max && a.push(le(o.textTooBig, e.length, t.max))) : a.push(le(o.thisNotText))), a;
|
|
2361
2361
|
},
|
|
2362
2362
|
array: (e, t, n, o = Ae) => {
|
|
2363
2363
|
if (t.required) {
|
|
@@ -2366,10 +2366,10 @@ const Am = {
|
|
|
2366
2366
|
if (e.length === 0)
|
|
2367
2367
|
return [le(o.fieldIsRequired)];
|
|
2368
2368
|
}
|
|
2369
|
-
if (!
|
|
2370
|
-
if (!
|
|
2369
|
+
if (!ve(e)) {
|
|
2370
|
+
if (!ve(t.min) && e.length < t.min)
|
|
2371
2371
|
return [le(o.selectMinItems, t.min)];
|
|
2372
|
-
if (!
|
|
2372
|
+
if (!ve(t.max) && e.length > t.max)
|
|
2373
2373
|
return [le(o.selectMaxItems, t.max)];
|
|
2374
2374
|
}
|
|
2375
2375
|
return [];
|
|
@@ -2381,11 +2381,11 @@ const Am = {
|
|
|
2381
2381
|
const i = new Date(e);
|
|
2382
2382
|
if (isNaN(i.getDate()))
|
|
2383
2383
|
return [le(o.invalidDate)];
|
|
2384
|
-
if (!
|
|
2384
|
+
if (!ve(t.min)) {
|
|
2385
2385
|
const r = new Date(t.min);
|
|
2386
2386
|
i.valueOf() < r.valueOf() && a.push(le(o.dateIsEarly, Ft.format(i), Ft.format(r)));
|
|
2387
2387
|
}
|
|
2388
|
-
if (!
|
|
2388
|
+
if (!ve(t.max)) {
|
|
2389
2389
|
const r = new Date(t.max);
|
|
2390
2390
|
i.valueOf() > r.valueOf() && a.push(le(o.dateIsLate, Ft.format(i), Ft.format(r)));
|
|
2391
2391
|
}
|
|
@@ -2393,7 +2393,7 @@ const Am = {
|
|
|
2393
2393
|
},
|
|
2394
2394
|
regexp: (e, t, n, o = Ae) => {
|
|
2395
2395
|
const a = Ke(e, t.required, o);
|
|
2396
|
-
return a ?? (!
|
|
2396
|
+
return a ?? (!ve(t.pattern) && !new RegExp(t.pattern).test(e) ? [le(o.invalidFormat)] : []);
|
|
2397
2397
|
},
|
|
2398
2398
|
email: (e, t, n, o = Ae) => {
|
|
2399
2399
|
const a = Ke(e, t.required, o);
|
|
@@ -2425,15 +2425,15 @@ const Am = {
|
|
|
2425
2425
|
};
|
|
2426
2426
|
Object.keys(St).forEach((e) => {
|
|
2427
2427
|
const t = St[e];
|
|
2428
|
-
ne(t) && (t.locale = (n) => (o, a, i) => t(o, a, i,
|
|
2428
|
+
ne(t) && (t.locale = (n) => (o, a, i) => t(o, a, i, bm(n, Ae)));
|
|
2429
2429
|
});
|
|
2430
2430
|
function Xa(e) {
|
|
2431
|
-
return
|
|
2431
|
+
return bt(e) ? St[e] != null ? St[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
|
|
2432
2432
|
}
|
|
2433
2433
|
function ri(e, t, n) {
|
|
2434
2434
|
let o = ee(n.context, "schema.attributes", {});
|
|
2435
2435
|
const a = t.value || "input";
|
|
2436
|
-
|
|
2436
|
+
bt(a) && (o = ee(o, a) || o), Re(o, (i, r) => {
|
|
2437
2437
|
e.setAttribute(r, i);
|
|
2438
2438
|
});
|
|
2439
2439
|
}
|
|
@@ -2493,7 +2493,7 @@ const qe = {
|
|
|
2493
2493
|
const o = (a) => {
|
|
2494
2494
|
let i = [];
|
|
2495
2495
|
Re(Vo(a), (l) => {
|
|
2496
|
-
Array.isArray(l) && l.length > 0 ? i = i.concat(l) :
|
|
2496
|
+
Array.isArray(l) && l.length > 0 ? i = i.concat(l) : bt(l) && i.push(l);
|
|
2497
2497
|
}), ne(this.schema.onValidated) && this.schema.onValidated.call(this, this.model, i, this.schema);
|
|
2498
2498
|
const r = i.length === 0;
|
|
2499
2499
|
return e || this.$emit("validated", r, i, this), this.errors = i, i;
|
|
@@ -2559,7 +2559,7 @@ const qe = {
|
|
|
2559
2559
|
}, Fm = {
|
|
2560
2560
|
class: "advanced-field-dropdown-wrapper",
|
|
2561
2561
|
"data-testid": "advanced-field-dropdown-wrapper"
|
|
2562
|
-
},
|
|
2562
|
+
}, Um = { class: "material-icons" }, Nm = {
|
|
2563
2563
|
mixins: [qe],
|
|
2564
2564
|
emits: ["model-updated"],
|
|
2565
2565
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
@@ -2587,7 +2587,7 @@ const qe = {
|
|
|
2587
2587
|
this.$emit("model-updated", e, t);
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
|
-
}, Lm = /* @__PURE__ */ Object.assign(
|
|
2590
|
+
}, Lm = /* @__PURE__ */ Object.assign(Nm, {
|
|
2591
2591
|
__name: "FieldAdvanced",
|
|
2592
2592
|
setup(e) {
|
|
2593
2593
|
return (t, n) => (c(), M("div", Fm, [
|
|
@@ -2596,7 +2596,7 @@ const qe = {
|
|
|
2596
2596
|
type: "button",
|
|
2597
2597
|
onClick: n[0] || (n[0] = (...o) => t.handleOpen && t.handleOpen(...o))
|
|
2598
2598
|
}, [
|
|
2599
|
-
m("i",
|
|
2599
|
+
m("i", Um, x(t.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
2600
2600
|
m("span", null, x(t.titleText), 1)
|
|
2601
2601
|
]),
|
|
2602
2602
|
m("div", {
|
|
@@ -2611,7 +2611,7 @@ const qe = {
|
|
|
2611
2611
|
], 2)
|
|
2612
2612
|
]));
|
|
2613
2613
|
}
|
|
2614
|
-
}), Dm = /* @__PURE__ */ X(Lm, [["__scopeId", "data-v-e8f66c8a"]]), Pm = { class: "array-card-container" }, Vm = /* @__PURE__ */
|
|
2614
|
+
}), Dm = /* @__PURE__ */ X(Lm, [["__scopeId", "data-v-e8f66c8a"]]), Pm = { class: "array-card-container" }, Vm = /* @__PURE__ */ be({
|
|
2615
2615
|
__name: "FieldArrayCardContainer",
|
|
2616
2616
|
props: {
|
|
2617
2617
|
model: {
|
|
@@ -2651,7 +2651,7 @@ const qe = {
|
|
|
2651
2651
|
]);
|
|
2652
2652
|
};
|
|
2653
2653
|
}
|
|
2654
|
-
}), Yo = /* @__PURE__ */ X(Vm, [["__scopeId", "data-v-a8366ec5"]]), Km = { class: "array-item-wrapper" }, jm = { class: "array-item" }, $m = { class: "array-item-after" }, xm = /* @__PURE__ */
|
|
2654
|
+
}), Yo = /* @__PURE__ */ X(Vm, [["__scopeId", "data-v-a8366ec5"]]), Km = { class: "array-item-wrapper" }, jm = { class: "array-item" }, $m = { class: "array-item-after" }, xm = /* @__PURE__ */ be({
|
|
2655
2655
|
__name: "FieldArrayItem",
|
|
2656
2656
|
props: {
|
|
2657
2657
|
model: {
|
|
@@ -2683,7 +2683,7 @@ const qe = {
|
|
|
2683
2683
|
]);
|
|
2684
2684
|
};
|
|
2685
2685
|
}
|
|
2686
|
-
}), Wo = /* @__PURE__ */ X(xm, [["__scopeId", "data-v-e6b6837c"]]), zm = { class: "multi-item-wrapper" }, qm = /* @__PURE__ */
|
|
2686
|
+
}), Wo = /* @__PURE__ */ X(xm, [["__scopeId", "data-v-e6b6837c"]]), zm = { class: "multi-item-wrapper" }, qm = /* @__PURE__ */ be({
|
|
2687
2687
|
__name: "FieldArrayMultiItem",
|
|
2688
2688
|
emits: ["remove-item"],
|
|
2689
2689
|
setup(e) {
|
|
@@ -2710,7 +2710,7 @@ var Bm = 4;
|
|
|
2710
2710
|
function Ja(e) {
|
|
2711
2711
|
return tn(e, Bm);
|
|
2712
2712
|
}
|
|
2713
|
-
const Hm = "#6c7489", Xo = "12px", Gm = "16px", Jo = "20px", Ym = ["data-testid", "data-testlabel"], Wm = { class: "item-label" }, Zm = { class: "autosuggest__results_message" }, Xm = /* @__PURE__ */
|
|
2713
|
+
const Hm = "#6c7489", Xo = "12px", Gm = "16px", Jo = "20px", Ym = ["data-testid", "data-testlabel"], Wm = { class: "item-label" }, Zm = { class: "autosuggest__results_message" }, Xm = /* @__PURE__ */ be({
|
|
2714
2714
|
__name: "AutoSuggest",
|
|
2715
2715
|
props: /* @__PURE__ */ ea({
|
|
2716
2716
|
placeholder: { default: "" },
|
|
@@ -2778,7 +2778,7 @@ const Hm = "#6c7489", Xo = "12px", Gm = "16px", Jo = "20px", Ym = ["data-testid"
|
|
|
2778
2778
|
]), 1032, ["id", "modelValue", "disabled", "error", "help", "items", "loading", "placeholder"]);
|
|
2779
2779
|
};
|
|
2780
2780
|
}
|
|
2781
|
-
}), Jm = /* @__PURE__ */ X(Xm, [["__scopeId", "data-v-1e9151dd"]]), Qm = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", gi = (e) => e ? e.length === 36 && new RegExp(`^${Qm}$`).test(e) : !1, ef = { class: "selected-entity-item" }, tf = { class: "selected-entity-label" }, nf = { class: "entity-suggestion-item" }, af = { class: "entity-label" }, of = { class: "entity-id" }, sf = 500, rf = 50, lf = 1e3, df = /* @__PURE__ */
|
|
2781
|
+
}), Jm = /* @__PURE__ */ X(Xm, [["__scopeId", "data-v-1e9151dd"]]), Qm = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", gi = (e) => e ? e.length === 36 && new RegExp(`^${Qm}$`).test(e) : !1, ef = { class: "selected-entity-item" }, tf = { class: "selected-entity-label" }, nf = { class: "entity-suggestion-item" }, af = { class: "entity-label" }, of = { class: "entity-id" }, sf = 500, rf = 50, lf = 1e3, df = /* @__PURE__ */ be({
|
|
2782
2782
|
__name: "FieldScopedEntitySelect",
|
|
2783
2783
|
props: {
|
|
2784
2784
|
transformItem: { type: Function },
|
|
@@ -2815,11 +2815,11 @@ const Hm = "#6c7489", Xo = "12px", Gm = "16px", Jo = "20px", Ym = ["data-testid"
|
|
|
2815
2815
|
...g,
|
|
2816
2816
|
label: g[e.labelField],
|
|
2817
2817
|
value: g.id
|
|
2818
|
-
})), r = se(""), l = se(!1), d = se(!1), u = se(""), y = se([]), f = se([]), p = se([]), { t:
|
|
2819
|
-
let
|
|
2818
|
+
})), r = se(""), l = se(!1), d = se(!1), u = se(""), y = se([]), f = se([]), p = se([]), { t: b } = De("en-us", Pe), A = se(null);
|
|
2819
|
+
let v = null;
|
|
2820
2820
|
const F = async (g, S) => {
|
|
2821
2821
|
if (!e.fieldDisabled) {
|
|
2822
|
-
clearTimeout(
|
|
2822
|
+
clearTimeout(v), v = setTimeout(() => {
|
|
2823
2823
|
l.value = !0;
|
|
2824
2824
|
}, 1500);
|
|
2825
2825
|
try {
|
|
@@ -2834,7 +2834,7 @@ const Hm = "#6c7489", Xo = "12px", Gm = "16px", Jo = "20px", Ym = ["data-testid"
|
|
|
2834
2834
|
}
|
|
2835
2835
|
r.value = I.message;
|
|
2836
2836
|
} finally {
|
|
2837
|
-
clearTimeout(
|
|
2837
|
+
clearTimeout(v), l.value = !1;
|
|
2838
2838
|
}
|
|
2839
2839
|
}
|
|
2840
2840
|
}, L = Pt((g) => {
|
|
@@ -2853,17 +2853,17 @@ const Hm = "#6c7489", Xo = "12px", Gm = "16px", Jo = "20px", Ym = ["data-testid"
|
|
|
2853
2853
|
const { data: { data: g, next: S, offset: I } } = await o(rf);
|
|
2854
2854
|
return (!S || !I) && (d.value = !0), f.value = g, p.value = g.map((j) => ({
|
|
2855
2855
|
...i(j),
|
|
2856
|
-
group:
|
|
2856
|
+
group: b("fields.auto_suggest.recently_created", { entity: e.entity })
|
|
2857
2857
|
})), g;
|
|
2858
2858
|
}, O = async (g) => [await a(g)], C = (g, S) => {
|
|
2859
2859
|
gi(g) && e.allowUuidSearch ? F(async () => await O(g)) : F(async () => await H(g, S.signal), S.signal);
|
|
2860
2860
|
}, _ = (g) => {
|
|
2861
2861
|
let S = [];
|
|
2862
2862
|
S = T(p.value), g != null && g.trim() ? y.value = S.filter((I) => e.fields.some((j) => (I[j] || "").includes(g))) : y.value = S;
|
|
2863
|
-
}, T = (g) => e.selectedItem ? g.some((S) => S.value === e.selectedItem.value) ? g : [e.selectedItem, ...g] : g,
|
|
2863
|
+
}, T = (g) => e.selectedItem ? g.some((S) => S.value === e.selectedItem.value) ? g : [e.selectedItem, ...g] : g, N = (g) => {
|
|
2864
2864
|
y.value = p.value.filter((S) => S.id === g);
|
|
2865
2865
|
}, D = (g) => {
|
|
2866
|
-
gi(g) && e.allowUuidSearch ?
|
|
2866
|
+
gi(g) && e.allowUuidSearch ? N(g) : _(g);
|
|
2867
2867
|
};
|
|
2868
2868
|
return yi(async () => {
|
|
2869
2869
|
await F(K);
|
|
@@ -3226,18 +3226,18 @@ function yf(e, t, n, o, a, i) {
|
|
|
3226
3226
|
}, 8, ["text"]);
|
|
3227
3227
|
}
|
|
3228
3228
|
const ts = /* @__PURE__ */ X(ff, [["render", yf], ["__scopeId", "data-v-433129a3"]]);
|
|
3229
|
-
function
|
|
3230
|
-
const t = se([]), n = se(null), o = (
|
|
3229
|
+
function vf(e) {
|
|
3230
|
+
const t = se([]), n = se(null), o = (v) => bt(v) ? St[v] != null ? St[v] : (console.warn(`'${v}' is not a validator function!`), null) : v, a = B({
|
|
3231
3231
|
get() {
|
|
3232
3232
|
var F, L;
|
|
3233
|
-
let
|
|
3234
|
-
return ne(ee(e.schema, "get")) ?
|
|
3233
|
+
let v;
|
|
3234
|
+
return ne(ee(e.schema, "get")) ? v = e.schema.get((F = e.model) == null ? void 0 : F.value) : v = ee((L = e.model) == null ? void 0 : L.value, e.schema.model), b(v);
|
|
3235
3235
|
},
|
|
3236
|
-
set(
|
|
3236
|
+
set(v) {
|
|
3237
3237
|
const F = a;
|
|
3238
|
-
|
|
3238
|
+
v = A(v), ne(v) ? v(v, F) : l(v, F);
|
|
3239
3239
|
}
|
|
3240
|
-
}), i = (
|
|
3240
|
+
}), i = (v) => {
|
|
3241
3241
|
var K;
|
|
3242
3242
|
d();
|
|
3243
3243
|
const F = ee(e.formOptions, "validateAsync", !1);
|
|
@@ -3247,11 +3247,11 @@ function bf(e) {
|
|
|
3247
3247
|
C && (Array.isArray(C) ? Re(C, (_) => {
|
|
3248
3248
|
O.push(o(_));
|
|
3249
3249
|
}) : O.push(o(C))), ne(e.externalValidator) && O.push(e.externalValidator), Re(O, (_) => {
|
|
3250
|
-
var T,
|
|
3250
|
+
var T, N;
|
|
3251
3251
|
if (F)
|
|
3252
3252
|
L.push(_(a.value, e.schema, (T = e.model) == null ? void 0 : T.value));
|
|
3253
3253
|
else {
|
|
3254
|
-
const D = _(a.value, e.schema, (
|
|
3254
|
+
const D = _(a.value, e.schema, (N = e.model) == null ? void 0 : N.value);
|
|
3255
3255
|
D && ne(D.then) ? D.then((g) => {
|
|
3256
3256
|
g && (t.value = t.value.concat(g));
|
|
3257
3257
|
const S = t.value.length === 0;
|
|
@@ -3263,11 +3263,11 @@ function bf(e) {
|
|
|
3263
3263
|
const H = (O) => {
|
|
3264
3264
|
var _, T;
|
|
3265
3265
|
let C = [];
|
|
3266
|
-
if (Re(Vo(O), (
|
|
3267
|
-
Array.isArray(
|
|
3268
|
-
}), ne((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((T = e.model) == null ? void 0 : T.value, C, e.schema), !
|
|
3269
|
-
const
|
|
3270
|
-
e.emitValidated && e.emitValidated({ isValid:
|
|
3266
|
+
if (Re(Vo(O), (N) => {
|
|
3267
|
+
Array.isArray(N) && N.length > 0 ? C = C.concat(N) : bt(N) && C.push(N);
|
|
3268
|
+
}), ne((_ = e.schema) == null ? void 0 : _.onValidated) && e.schema.onValidated((T = e.model) == null ? void 0 : T.value, C, e.schema), !v) {
|
|
3269
|
+
const N = C.length === 0;
|
|
3270
|
+
e.emitValidated && e.emitValidated({ isValid: N, errors: C, field: e.schema });
|
|
3271
3271
|
}
|
|
3272
3272
|
return O = C, C;
|
|
3273
3273
|
};
|
|
@@ -3277,15 +3277,15 @@ function bf(e) {
|
|
|
3277
3277
|
i,
|
|
3278
3278
|
ee(e.schema, "validateDebounceTime", ee(e.formOptions, "validateDebounceTime", 500))
|
|
3279
3279
|
);
|
|
3280
|
-
}, l = (
|
|
3280
|
+
}, l = (v, F) => {
|
|
3281
3281
|
var H, K, O;
|
|
3282
3282
|
let L = !1;
|
|
3283
|
-
ne(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value,
|
|
3283
|
+
ne(e.schema.set) ? (e.schema.set((H = e.model) == null ? void 0 : H.value, v), L = !0) : e.schema.model && (u(e.schema.model, v), L = !0), L && (e.emitModelUpdated && ((K = e.model) != null && K.value) && e.emitModelUpdated({ value: v, model: e.schema.model }), ne(e.schema.onChanged) && e.schema.onChanged((O = e.model) == null ? void 0 : O.value, v, F, e.schema), ee(e.formOptions, "validateAfterChanged", !1) === !0 && (ee(e.schema, "validateDebounceTime", ee(e.formOptions, "validateDebounceTime", 0)) > 0 ? r() : i()));
|
|
3284
3284
|
}, d = () => {
|
|
3285
3285
|
t.value.splice(0);
|
|
3286
|
-
}, u = (
|
|
3286
|
+
}, u = (v, F) => {
|
|
3287
3287
|
var _;
|
|
3288
|
-
let L =
|
|
3288
|
+
let L = v.replace(/\[(\w+)\]/g, ".$1");
|
|
3289
3289
|
L = L.replace(/^\./, "");
|
|
3290
3290
|
let H = ((_ = e.model) == null ? void 0 : _.value) || {}, K = 0;
|
|
3291
3291
|
const O = L.split("."), C = O.length;
|
|
@@ -3299,10 +3299,10 @@ function bf(e) {
|
|
|
3299
3299
|
}
|
|
3300
3300
|
++K;
|
|
3301
3301
|
}
|
|
3302
|
-
}, y = (
|
|
3302
|
+
}, y = (v, F = !1) => {
|
|
3303
3303
|
const L = ee(e.formOptions, "fieldIdPrefix", "");
|
|
3304
|
-
return Ai(
|
|
3305
|
-
}, f = (
|
|
3304
|
+
return Ai(v, L) + (F ? "-" + Ko() : "");
|
|
3305
|
+
}, f = (v) => `${y(v)}-label`, p = () => ee(e.schema, "fieldClasses", []), b = (v) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(v) : v, A = (v) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(v) : v;
|
|
3306
3306
|
return {
|
|
3307
3307
|
value: a,
|
|
3308
3308
|
clearValidationErrors: d,
|
|
@@ -3312,7 +3312,7 @@ function bf(e) {
|
|
|
3312
3312
|
updateModelValue: l
|
|
3313
3313
|
};
|
|
3314
3314
|
}
|
|
3315
|
-
function
|
|
3315
|
+
function bf(e) {
|
|
3316
3316
|
const t = [], n = (o) => {
|
|
3317
3317
|
const a = ["cluster-cache", "cluster_cache"];
|
|
3318
3318
|
for (const i of a)
|
|
@@ -3349,10 +3349,10 @@ function _f(e, t) {
|
|
|
3349
3349
|
});
|
|
3350
3350
|
}
|
|
3351
3351
|
const Be = {
|
|
3352
|
-
useAbstractFields:
|
|
3353
|
-
useRedisPartial:
|
|
3352
|
+
useAbstractFields: vf,
|
|
3353
|
+
useRedisPartial: bf,
|
|
3354
3354
|
useRedisNonStandardFields: _f
|
|
3355
|
-
}, Sf = { class: "form-field-wrapper" }, Tf = /* @__PURE__ */
|
|
3355
|
+
}, Sf = { class: "form-field-wrapper" }, Tf = /* @__PURE__ */ be({
|
|
3356
3356
|
__name: "FieldInput",
|
|
3357
3357
|
props: {
|
|
3358
3358
|
disabled: {
|
|
@@ -3420,14 +3420,14 @@ const Be = {
|
|
|
3420
3420
|
date: "YYYY-MM-DD",
|
|
3421
3421
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3422
3422
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
3423
|
-
},
|
|
3424
|
-
var
|
|
3423
|
+
}, b = (K, O) => {
|
|
3424
|
+
var N, D;
|
|
3425
3425
|
let C = K;
|
|
3426
3426
|
const _ = p[f.value] || "", T = Ft.parse(K, _);
|
|
3427
|
-
T && ((
|
|
3427
|
+
T && ((N = o.schema) != null && N.format ? C = Ft.format(T, (D = o.schema) == null ? void 0 : D.format) : C = T.valueOf()), l(C, O);
|
|
3428
3428
|
}, A = (K, O) => {
|
|
3429
3429
|
Ii(K) || (K = NaN), l(K, O);
|
|
3430
|
-
},
|
|
3430
|
+
}, v = (K) => {
|
|
3431
3431
|
let O = K;
|
|
3432
3432
|
switch (o.schema.inputType) {
|
|
3433
3433
|
case "number":
|
|
@@ -3462,7 +3462,7 @@ const Be = {
|
|
|
3462
3462
|
case "datetime-local":
|
|
3463
3463
|
L.value = Pt(
|
|
3464
3464
|
(K, O) => {
|
|
3465
|
-
|
|
3465
|
+
b(K, O);
|
|
3466
3466
|
},
|
|
3467
3467
|
parseInt(ee(o.schema, "debounceFormatTimeout", 1e3)),
|
|
3468
3468
|
{
|
|
@@ -3472,7 +3472,7 @@ const Be = {
|
|
|
3472
3472
|
);
|
|
3473
3473
|
break;
|
|
3474
3474
|
}
|
|
3475
|
-
}),
|
|
3475
|
+
}), vi(() => {
|
|
3476
3476
|
f.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : f.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : f.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
3477
3477
|
}), (K, O) => {
|
|
3478
3478
|
const C = k("KInput");
|
|
@@ -3497,7 +3497,7 @@ const Be = {
|
|
|
3497
3497
|
type: f.value,
|
|
3498
3498
|
width: e.schema.width,
|
|
3499
3499
|
onBlur: H,
|
|
3500
|
-
"onUpdate:modelValue":
|
|
3500
|
+
"onUpdate:modelValue": v
|
|
3501
3501
|
}), null, 16, ["id", "autocomplete", "class", "disabled", "help", "max", "maxlength", "min", "minlength", "model-value", "name", "pattern", "placeholder", "readonly", "required", "show-password-mask-toggle", "type", "width"]),
|
|
3502
3502
|
(c(), P(re(V(r)), {
|
|
3503
3503
|
schema: e.schema,
|
|
@@ -3533,7 +3533,7 @@ function Ef(e, t, n, o, a, i) {
|
|
|
3533
3533
|
Z(x(e.model.name ? e.model.name : "New Item") + " ", 1),
|
|
3534
3534
|
w(r, { class: "metric-add-icon" })
|
|
3535
3535
|
]),
|
|
3536
|
-
w(
|
|
3536
|
+
w(Us, { name: "slide-fade" }, {
|
|
3537
3537
|
default: E(() => [
|
|
3538
3538
|
a.contentVisible ? (c(), M("div", wf, [
|
|
3539
3539
|
we(e.$slots, "default"),
|
|
@@ -3553,7 +3553,7 @@ function Ef(e, t, n, o, a, i) {
|
|
|
3553
3553
|
})
|
|
3554
3554
|
], 2);
|
|
3555
3555
|
}
|
|
3556
|
-
const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-container" }, If = { key: 1 }, Cf = ["id"], Of = { key: 0 }, kf = ["onUpdate:modelValue"], Rf = { key: 1 }, Ff = ["onUpdate:modelValue"],
|
|
3556
|
+
const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-container" }, If = { key: 1 }, Cf = ["id"], Of = { key: 0 }, kf = ["onUpdate:modelValue"], Rf = { key: 1 }, Ff = ["onUpdate:modelValue"], Uf = { key: 2 }, Nf = ["onUpdate:modelValue"], Lf = ["onClick"], Df = {
|
|
3557
3557
|
mixins: [qe],
|
|
3558
3558
|
emits: ["modelUpdated"],
|
|
3559
3559
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
@@ -3623,14 +3623,14 @@ const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-
|
|
|
3623
3623
|
"onUpdate:modelValue": (r) => t.value[i] = r,
|
|
3624
3624
|
type: "checkbox"
|
|
3625
3625
|
}, null, 8, Ff), [
|
|
3626
|
-
[
|
|
3626
|
+
[Ns, t.value[i]]
|
|
3627
3627
|
])
|
|
3628
3628
|
])) : q("", !0),
|
|
3629
|
-
t.keyTypes[i] === "number" ? (c(), M("td",
|
|
3629
|
+
t.keyTypes[i] === "number" ? (c(), M("td", Uf, [
|
|
3630
3630
|
Fe(m("input", {
|
|
3631
3631
|
"onUpdate:modelValue": (r) => t.value[i] = r,
|
|
3632
3632
|
type: "number"
|
|
3633
|
-
}, null, 8,
|
|
3633
|
+
}, null, 8, Nf), [
|
|
3634
3634
|
[Qt, t.value[i]]
|
|
3635
3635
|
])
|
|
3636
3636
|
])) : q("", !0),
|
|
@@ -3865,7 +3865,7 @@ const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-
|
|
|
3865
3865
|
], 10, Vf);
|
|
3866
3866
|
};
|
|
3867
3867
|
}
|
|
3868
|
-
}), os = /* @__PURE__ */ X(Zf, [["__scopeId", "data-v-0faeec4d"]]), Xf = { class: "radio-selection-group" }, Jf = /* @__PURE__ */
|
|
3868
|
+
}), os = /* @__PURE__ */ X(Zf, [["__scopeId", "data-v-0faeec4d"]]), Xf = { class: "radio-selection-group" }, Jf = /* @__PURE__ */ be({
|
|
3869
3869
|
__name: "FieldRadio",
|
|
3870
3870
|
props: {
|
|
3871
3871
|
disabled: {
|
|
@@ -3923,22 +3923,22 @@ const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-
|
|
|
3923
3923
|
return (y, f) => {
|
|
3924
3924
|
const p = k("KRadio");
|
|
3925
3925
|
return c(), M("div", Xf, [
|
|
3926
|
-
(c(!0), M(Y, null, oe(e.schema.values, (
|
|
3926
|
+
(c(!0), M(Y, null, oe(e.schema.values, (b, A) => (c(), P(p, {
|
|
3927
3927
|
id: e.schema.name + "-" + A,
|
|
3928
|
-
key:
|
|
3928
|
+
key: b.value,
|
|
3929
3929
|
modelValue: V(l),
|
|
3930
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
3931
|
-
label:
|
|
3930
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => Vt(l) ? l.value = v : null),
|
|
3931
|
+
label: b.name,
|
|
3932
3932
|
"label-attributes": { info: e.schema.help },
|
|
3933
3933
|
name: e.schema.name,
|
|
3934
3934
|
required: e.schema.required || void 0,
|
|
3935
|
-
"selected-value":
|
|
3935
|
+
"selected-value": b.value,
|
|
3936
3936
|
onChange: u
|
|
3937
3937
|
}, null, 8, ["id", "modelValue", "label", "label-attributes", "name", "required", "selected-value"]))), 128))
|
|
3938
3938
|
]);
|
|
3939
3939
|
};
|
|
3940
3940
|
}
|
|
3941
|
-
}), ss = /* @__PURE__ */ X(Jf, [["__scopeId", "data-v-a070103e"]]), rs = /* @__PURE__ */
|
|
3941
|
+
}), ss = /* @__PURE__ */ X(Jf, [["__scopeId", "data-v-a070103e"]]), rs = /* @__PURE__ */ be({
|
|
3942
3942
|
__name: "FieldSelect",
|
|
3943
3943
|
props: {
|
|
3944
3944
|
disabled: {
|
|
@@ -3978,51 +3978,51 @@ const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-
|
|
|
3978
3978
|
},
|
|
3979
3979
|
emits: ["modelUpdated"],
|
|
3980
3980
|
setup(e, { expose: t, emit: n }) {
|
|
3981
|
-
const o = e, a = n, i = B(() => o.schema.selectOptions || {}), r = (
|
|
3981
|
+
const o = e, a = n, i = B(() => o.schema.selectOptions || {}), r = (v) => ve(v) ? null : v, l = Tt(o), { getFieldID: d, clearValidationErrors: u, value: y } = Be.useAbstractFields({
|
|
3982
3982
|
model: l.model,
|
|
3983
3983
|
schema: o.schema,
|
|
3984
3984
|
formOptions: o.formOptions,
|
|
3985
3985
|
formatValueToField: r,
|
|
3986
|
-
emitModelUpdated: (
|
|
3987
|
-
a("modelUpdated",
|
|
3986
|
+
emitModelUpdated: (v) => {
|
|
3987
|
+
a("modelUpdated", v.value, v.model);
|
|
3988
3988
|
}
|
|
3989
3989
|
});
|
|
3990
3990
|
t({
|
|
3991
3991
|
clearValidationErrors: u
|
|
3992
3992
|
});
|
|
3993
3993
|
const f = B(() => {
|
|
3994
|
-
const
|
|
3995
|
-
return p(typeof
|
|
3996
|
-
}), p = (
|
|
3994
|
+
const v = o.schema.values;
|
|
3995
|
+
return p(typeof v == "function" ? v.apply(this, [o.model, o.schema]) : v);
|
|
3996
|
+
}), p = (v) => {
|
|
3997
3997
|
const F = [];
|
|
3998
|
-
return
|
|
3998
|
+
return v.forEach((L) => {
|
|
3999
3999
|
F.push({
|
|
4000
4000
|
label: A(L),
|
|
4001
|
-
value:
|
|
4001
|
+
value: b(L),
|
|
4002
4002
|
disabled: typeof L == "object" && L.disabled || void 0,
|
|
4003
4003
|
group: typeof L == "object" && String(L.group || "").toUpperCase() || void 0
|
|
4004
4004
|
});
|
|
4005
4005
|
}), F;
|
|
4006
|
-
},
|
|
4007
|
-
if (
|
|
4006
|
+
}, b = (v) => {
|
|
4007
|
+
if (Ne(v)) {
|
|
4008
4008
|
if (i.value && typeof i.value.value < "u")
|
|
4009
|
-
return
|
|
4010
|
-
if (typeof
|
|
4011
|
-
return String(
|
|
4009
|
+
return v[i.value.value];
|
|
4010
|
+
if (typeof v.id < "u")
|
|
4011
|
+
return String(v.id);
|
|
4012
4012
|
throw new Error("`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
|
|
4013
4013
|
} else
|
|
4014
|
-
return
|
|
4015
|
-
}, A = (
|
|
4016
|
-
if (
|
|
4014
|
+
return v;
|
|
4015
|
+
}, A = (v) => {
|
|
4016
|
+
if (Ne(v)) {
|
|
4017
4017
|
if (i.value && typeof i.value.name < "u")
|
|
4018
|
-
return
|
|
4019
|
-
if (typeof
|
|
4020
|
-
return String(
|
|
4018
|
+
return v[i.value.name];
|
|
4019
|
+
if (typeof v.name < "u")
|
|
4020
|
+
return String(v.name);
|
|
4021
4021
|
throw new Error("`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items");
|
|
4022
4022
|
} else
|
|
4023
|
-
return String(
|
|
4023
|
+
return String(v);
|
|
4024
4024
|
};
|
|
4025
|
-
return (
|
|
4025
|
+
return (v, F) => {
|
|
4026
4026
|
const L = k("KSelect");
|
|
4027
4027
|
return c(), P(L, {
|
|
4028
4028
|
id: V(d)(e.schema),
|
|
@@ -4041,7 +4041,7 @@ const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-
|
|
|
4041
4041
|
}, null, 8, ["id", "modelValue", "class", "clearable", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
|
|
4042
4042
|
};
|
|
4043
4043
|
}
|
|
4044
|
-
}), Qf = { class: "field-string-array" }, eh = /* @__PURE__ */
|
|
4044
|
+
}), Qf = { class: "field-string-array" }, eh = /* @__PURE__ */ be({
|
|
4045
4045
|
__name: "FieldStringArray",
|
|
4046
4046
|
props: {
|
|
4047
4047
|
formOptions: {},
|
|
@@ -4054,32 +4054,32 @@ const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-
|
|
|
4054
4054
|
model: so(() => e.model),
|
|
4055
4055
|
schema: e.schema,
|
|
4056
4056
|
formOptions: e.formOptions,
|
|
4057
|
-
emitModelUpdated: (
|
|
4058
|
-
o("modelUpdated",
|
|
4057
|
+
emitModelUpdated: (b) => {
|
|
4058
|
+
o("modelUpdated", b.value, b.model);
|
|
4059
4059
|
}
|
|
4060
4060
|
});
|
|
4061
4061
|
t({
|
|
4062
4062
|
clearValidationErrors: l
|
|
4063
4063
|
});
|
|
4064
4064
|
const u = se("");
|
|
4065
|
-
function y(
|
|
4066
|
-
return Array.isArray(
|
|
4065
|
+
function y(b) {
|
|
4066
|
+
return Array.isArray(b) ? b.map((A) => String(A).trim()).filter(Boolean).join(", ") : "";
|
|
4067
4067
|
}
|
|
4068
|
-
function f(
|
|
4069
|
-
return
|
|
4068
|
+
function f(b) {
|
|
4069
|
+
return b ? b.trim().split(",").map((A) => A.trim()).filter(Boolean) : [];
|
|
4070
4070
|
}
|
|
4071
|
-
function p(
|
|
4072
|
-
u.value =
|
|
4073
|
-
const A = f(
|
|
4071
|
+
function p(b) {
|
|
4072
|
+
u.value = b;
|
|
4073
|
+
const A = f(b);
|
|
4074
4074
|
a(A, d.value);
|
|
4075
4075
|
}
|
|
4076
|
-
return ln(d, (
|
|
4077
|
-
const A =
|
|
4076
|
+
return ln(d, (b) => {
|
|
4077
|
+
const A = b ? y(b) : "";
|
|
4078
4078
|
y(f(u.value)) !== A && (u.value = A);
|
|
4079
|
-
}, { immediate: !0 }), (
|
|
4080
|
-
const
|
|
4079
|
+
}, { immediate: !0 }), (b, A) => {
|
|
4080
|
+
const v = k("KInput");
|
|
4081
4081
|
return c(), M("div", Qf, [
|
|
4082
|
-
w(
|
|
4082
|
+
w(v, et(b.$attrs, {
|
|
4083
4083
|
id: V(i)(e.schema),
|
|
4084
4084
|
"aria-labelledby": V(r)(e.schema),
|
|
4085
4085
|
class: e.schema.fieldClasses,
|
|
@@ -4132,9 +4132,9 @@ const is = /* @__PURE__ */ X(Mf, [["render", Ef]]), Af = { class: "field-object-
|
|
|
4132
4132
|
var a, i, r, l, d, u, y;
|
|
4133
4133
|
let o;
|
|
4134
4134
|
return t && (o = JSON.parse(JSON.stringify(t)), (a = t.schema) != null && a.fields && ((l = (r = (i = o.schema) == null ? void 0 : i.fields) == null ? void 0 : r.forEach) == null || l.call(r, (f, p) => {
|
|
4135
|
-
const
|
|
4136
|
-
|
|
4137
|
-
typeof
|
|
4135
|
+
const b = t.schema.fields[p];
|
|
4136
|
+
b && Object.keys(b).forEach((A) => {
|
|
4137
|
+
typeof b[A] == "function" && (f[A] = b[A]);
|
|
4138
4138
|
});
|
|
4139
4139
|
})), (y = (u = (d = o.schema) == null ? void 0 : d.fields) == null ? void 0 : u.map) == null || y.call(u, (f) => (f.id = `${f.id || f.model}-${n}`, f))), {
|
|
4140
4140
|
...o,
|
|
@@ -4204,13 +4204,13 @@ function rh(e, t, n, o, a, i) {
|
|
|
4204
4204
|
"form-options": e.formOptions,
|
|
4205
4205
|
model: e.value,
|
|
4206
4206
|
schema: i.generateStringArraySchema(p),
|
|
4207
|
-
onModelUpdated: (
|
|
4207
|
+
onModelUpdated: (b) => i.handleStringArrayUpdate(b, p)
|
|
4208
4208
|
}, null, 8, ["form-options", "model", "schema", "onModelUpdated"]),
|
|
4209
4209
|
w(d, {
|
|
4210
4210
|
appearance: "tertiary",
|
|
4211
4211
|
class: "string-array-remove-btn",
|
|
4212
4212
|
icon: "",
|
|
4213
|
-
onClick: (
|
|
4213
|
+
onClick: (b) => i.removeElement(p)
|
|
4214
4214
|
}, {
|
|
4215
4215
|
default: E(() => [
|
|
4216
4216
|
w(l, { decorative: "" })
|
|
@@ -4222,7 +4222,7 @@ function rh(e, t, n, o, a, i) {
|
|
|
4222
4222
|
index: p,
|
|
4223
4223
|
model: f,
|
|
4224
4224
|
schema: i.generateSchema(e.value, e.schema.items, p),
|
|
4225
|
-
onRemoveItem: (
|
|
4225
|
+
onRemoveItem: (b) => i.removeElement(p)
|
|
4226
4226
|
}, {
|
|
4227
4227
|
default: E(() => [
|
|
4228
4228
|
(c(), P(re(i.getFieldComponent(e.schema.items)), {
|
|
@@ -4245,17 +4245,17 @@ function rh(e, t, n, o, a, i) {
|
|
|
4245
4245
|
"data-testid": `${e.getFieldID(e.schema)}-item-${p}`,
|
|
4246
4246
|
model: f,
|
|
4247
4247
|
schema: i.generateSchema(e.value, e.schema.items, p),
|
|
4248
|
-
onRemoveItem: (
|
|
4248
|
+
onRemoveItem: (b) => i.removeElement(p)
|
|
4249
4249
|
}, {
|
|
4250
4250
|
after: E(() => [
|
|
4251
4251
|
(c(), P(re(i.autofillSlot), {
|
|
4252
4252
|
schema: e.schema,
|
|
4253
|
-
update: (
|
|
4253
|
+
update: (b) => e.value[p] = b,
|
|
4254
4254
|
value: e.value[p]
|
|
4255
4255
|
}, null, 8, ["schema", "update", "value"]))
|
|
4256
4256
|
]),
|
|
4257
4257
|
default: E(() => {
|
|
4258
|
-
var
|
|
4258
|
+
var b;
|
|
4259
4259
|
return [
|
|
4260
4260
|
e.schema.inputAttributes && e.schema.inputAttributes.type === "textarea" ? (c(), P(u, et({
|
|
4261
4261
|
key: 0,
|
|
@@ -4290,7 +4290,7 @@ function rh(e, t, n, o, a, i) {
|
|
|
4290
4290
|
"onUpdate:modelValue": (A) => e.value[p] = A,
|
|
4291
4291
|
"aria-labelledby": e.getLabelId(e.schema)
|
|
4292
4292
|
}, { ref_for: !0 }, e.schema.inputAttributes, {
|
|
4293
|
-
type: ((
|
|
4293
|
+
type: ((b = e.schema.inputAttributes) == null ? void 0 : b.type) || "text"
|
|
4294
4294
|
}), null, 16, oh)), [
|
|
4295
4295
|
[oo, e.value[p]]
|
|
4296
4296
|
])
|
|
@@ -4299,7 +4299,7 @@ function rh(e, t, n, o, a, i) {
|
|
|
4299
4299
|
_: 2
|
|
4300
4300
|
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (c(), M(Y, { key: 4 }, [
|
|
4301
4301
|
Fe(m("input", et({ ref_for: !0 }, e.schema.inputAttributes, {
|
|
4302
|
-
"onUpdate:modelValue": (
|
|
4302
|
+
"onUpdate:modelValue": (b) => e.value[p] = b,
|
|
4303
4303
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
4304
4304
|
type: "text"
|
|
4305
4305
|
}), null, 16, sh), [
|
|
@@ -4307,7 +4307,7 @@ function rh(e, t, n, o, a, i) {
|
|
|
4307
4307
|
]),
|
|
4308
4308
|
(c(), P(re(i.autofillSlot), {
|
|
4309
4309
|
schema: e.schema,
|
|
4310
|
-
update: (
|
|
4310
|
+
update: (b) => e.value[p] = b,
|
|
4311
4311
|
value: e.value[p]
|
|
4312
4312
|
}, null, 8, ["schema", "update", "value"]))
|
|
4313
4313
|
], 64))
|
|
@@ -4326,7 +4326,7 @@ function rh(e, t, n, o, a, i) {
|
|
|
4326
4326
|
}, 8, ["class", "data-testid", "onClick"])
|
|
4327
4327
|
], 10, nh)) : q("", !0);
|
|
4328
4328
|
}
|
|
4329
|
-
const lh = /* @__PURE__ */ X(th, [["render", rh], ["__scopeId", "data-v-64e1f575"]]), dh = { class: "form-field-wrapper field-checkbox" }, ch = ["innerHTML"], uh = /* @__PURE__ */
|
|
4329
|
+
const lh = /* @__PURE__ */ X(th, [["render", rh], ["__scopeId", "data-v-64e1f575"]]), dh = { class: "form-field-wrapper field-checkbox" }, ch = ["innerHTML"], uh = /* @__PURE__ */ be({
|
|
4330
4330
|
__name: "FieldCheckbox",
|
|
4331
4331
|
props: {
|
|
4332
4332
|
disabled: {
|
|
@@ -4380,9 +4380,9 @@ const lh = /* @__PURE__ */ X(th, [["render", rh], ["__scopeId", "data-v-64e1f575
|
|
|
4380
4380
|
return t({
|
|
4381
4381
|
clearValidationErrors: d
|
|
4382
4382
|
}), (f, p) => {
|
|
4383
|
-
const
|
|
4383
|
+
const b = k("KCheckbox");
|
|
4384
4384
|
return c(), M("div", dh, [
|
|
4385
|
-
w(
|
|
4385
|
+
w(b, et(f.$attrs, {
|
|
4386
4386
|
id: V(r)(e.schema),
|
|
4387
4387
|
modelValue: V(l),
|
|
4388
4388
|
"onUpdate:modelValue": p[0] || (p[0] = (A) => Vt(l) ? l.value = A : null),
|
|
@@ -4409,7 +4409,7 @@ const lh = /* @__PURE__ */ X(th, [["render", rh], ["__scopeId", "data-v-64e1f575
|
|
|
4409
4409
|
]);
|
|
4410
4410
|
};
|
|
4411
4411
|
}
|
|
4412
|
-
}), mh = /* @__PURE__ */ X(uh, [["__scopeId", "data-v-39c92a17"]]), fh = { class: "wrapper" }, hh = ["disabled"], ph = ["id", "checked", "disabled", "onChange", "name"], gh = ["disabled"], yh = { class: "info" },
|
|
4412
|
+
}), mh = /* @__PURE__ */ X(uh, [["__scopeId", "data-v-39c92a17"]]), fh = { class: "wrapper" }, hh = ["disabled"], ph = ["id", "checked", "disabled", "onChange", "name"], gh = ["disabled"], yh = { class: "info" }, vh = { class: "dropList" }, bh = ["id", "checked", "disabled", "onChange", "name"];
|
|
4413
4413
|
function _h(e, t, n, o, a, i) {
|
|
4414
4414
|
const r = ao("attributes");
|
|
4415
4415
|
return Fe((c(), M("div", fh, [
|
|
@@ -4448,7 +4448,7 @@ function _h(e, t, n, o, a, i) {
|
|
|
4448
4448
|
m("div", yh, x(i.selectedCount) + " selected", 1),
|
|
4449
4449
|
t[1] || (t[1] = m("div", { class: "arrow" }, null, -1))
|
|
4450
4450
|
], 2),
|
|
4451
|
-
m("div",
|
|
4451
|
+
m("div", vh, [
|
|
4452
4452
|
a.comboExpanded ? (c(!0), M(Y, { key: 0 }, oe(i.items, (l) => (c(), M("div", {
|
|
4453
4453
|
class: te(["list-row", { "is-checked": i.isItemChecked(l) }])
|
|
4454
4454
|
}, [
|
|
@@ -4460,7 +4460,7 @@ function _h(e, t, n, o, a, i) {
|
|
|
4460
4460
|
disabled: e.disabled || null,
|
|
4461
4461
|
onChange: (d) => i.onChanged(d, l),
|
|
4462
4462
|
name: i.getInputName(l)
|
|
4463
|
-
}, null, 40,
|
|
4463
|
+
}, null, 40, bh), [
|
|
4464
4464
|
[r, "input"]
|
|
4465
4465
|
]),
|
|
4466
4466
|
Z(x(i.getItemName(l)), 1)
|
|
@@ -4493,7 +4493,7 @@ const Sh = {
|
|
|
4493
4493
|
return this.schema && this.schema.inputName && this.schema.inputName.length > 0 ? ja(this.schema.inputName + "_" + this.getItemValue(e)) : ja(this.getItemValue(e));
|
|
4494
4494
|
},
|
|
4495
4495
|
getItemValue(e) {
|
|
4496
|
-
if (
|
|
4496
|
+
if (Ne(e)) {
|
|
4497
4497
|
if (typeof this.schema.checklistOptions < "u" && typeof this.schema.checklistOptions.value < "u")
|
|
4498
4498
|
return e[this.schema.checklistOptions.value];
|
|
4499
4499
|
if (typeof e.value < "u")
|
|
@@ -4503,7 +4503,7 @@ const Sh = {
|
|
|
4503
4503
|
return e;
|
|
4504
4504
|
},
|
|
4505
4505
|
getItemName(e) {
|
|
4506
|
-
if (
|
|
4506
|
+
if (Ne(e)) {
|
|
4507
4507
|
if (typeof this.schema.checklistOptions < "u" && typeof this.schema.checklistOptions.name < "u")
|
|
4508
4508
|
return e[this.schema.checklistOptions.name];
|
|
4509
4509
|
if (typeof e.name < "u")
|
|
@@ -4516,7 +4516,7 @@ const Sh = {
|
|
|
4516
4516
|
return this.value && this.value.indexOf(this.getItemValue(e)) !== -1;
|
|
4517
4517
|
},
|
|
4518
4518
|
onChanged(e, t) {
|
|
4519
|
-
if ((
|
|
4519
|
+
if ((ve(this.value) || !Array.isArray(this.value)) && (this.value = []), e.target.checked) {
|
|
4520
4520
|
const n = Ja(this.value);
|
|
4521
4521
|
n.push(this.getItemValue(t)), this.value = n;
|
|
4522
4522
|
} else {
|
|
@@ -4651,7 +4651,7 @@ function Oh(e, t, n, o, a, i) {
|
|
|
4651
4651
|
}, 8, ["class", "data-testid", "onClick"])
|
|
4652
4652
|
]);
|
|
4653
4653
|
}
|
|
4654
|
-
const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c"]]), Rh = /* @__PURE__ */
|
|
4654
|
+
const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c"]]), Rh = /* @__PURE__ */ be({
|
|
4655
4655
|
__name: "FieldLabel",
|
|
4656
4656
|
props: {
|
|
4657
4657
|
disabled: {
|
|
@@ -4699,7 +4699,7 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
4699
4699
|
], 2);
|
|
4700
4700
|
};
|
|
4701
4701
|
}
|
|
4702
|
-
}), Fh = /* @__PURE__ */ X(Rh, [["__scopeId", "data-v-e3423a11"]]),
|
|
4702
|
+
}), Fh = /* @__PURE__ */ X(Rh, [["__scopeId", "data-v-e3423a11"]]), Uh = /* @__PURE__ */ be({
|
|
4703
4703
|
__name: "FieldMultiselect",
|
|
4704
4704
|
props: {
|
|
4705
4705
|
disabled: {
|
|
@@ -4752,11 +4752,11 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
4752
4752
|
});
|
|
4753
4753
|
const y = B(() => {
|
|
4754
4754
|
var f, p;
|
|
4755
|
-
return o.schema.values ? o.schema.values : (p = (f = o.schema.elements) == null ? void 0 : f.one_of) != null && p.length ? o.schema.elements.one_of.map((
|
|
4755
|
+
return o.schema.values ? o.schema.values : (p = (f = o.schema.elements) == null ? void 0 : f.one_of) != null && p.length ? o.schema.elements.one_of.map((b) => ({ label: String(b), value: String(b) })) : [];
|
|
4756
4756
|
});
|
|
4757
4757
|
return (f, p) => {
|
|
4758
|
-
const
|
|
4759
|
-
return c(), P(
|
|
4758
|
+
const b = k("KMultiselect");
|
|
4759
|
+
return c(), P(b, {
|
|
4760
4760
|
id: V(l)(e.schema),
|
|
4761
4761
|
modelValue: V(u),
|
|
4762
4762
|
"onUpdate:modelValue": p[0] || (p[0] = (A) => Vt(u) ? u.value = A : null),
|
|
@@ -4774,7 +4774,7 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
4774
4774
|
}, null, 8, ["id", "modelValue", "aria-labelledby", "class", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
|
|
4775
4775
|
};
|
|
4776
4776
|
}
|
|
4777
|
-
}),
|
|
4777
|
+
}), Nh = { class: "selection-group" }, Lh = { class: "form-group horizontal-radios" }, Dh = { class: "radio-group" }, Ph = ["disabled", "value"], Vh = { class: "control-help" }, Kh = {
|
|
4778
4778
|
key: 0,
|
|
4779
4779
|
class: "option-field"
|
|
4780
4780
|
}, jh = { class: "option-field-container" }, $h = {
|
|
@@ -4826,7 +4826,7 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
4826
4826
|
__name: "FieldSelectionGroup",
|
|
4827
4827
|
setup(e) {
|
|
4828
4828
|
const { t } = De("en-us", Pe);
|
|
4829
|
-
return (n, o) => (c(), M("div",
|
|
4829
|
+
return (n, o) => (c(), M("div", Nh, [
|
|
4830
4830
|
(c(), P(re(n.$props.disabled ? "k-tooltip" : "div"), {
|
|
4831
4831
|
"max-width": "300",
|
|
4832
4832
|
text: V(t)("general.disable_global_radio", { scope: n.scope })
|
|
@@ -4878,7 +4878,7 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
4878
4878
|
]))), 128))
|
|
4879
4879
|
]));
|
|
4880
4880
|
}
|
|
4881
|
-
}), zh = /* @__PURE__ */ X(xh, [["__scopeId", "data-v-0b44571b"]]), qh = { class: "form-field-wrapper" }, Bh = /* @__PURE__ */
|
|
4881
|
+
}), zh = /* @__PURE__ */ X(xh, [["__scopeId", "data-v-0b44571b"]]), qh = { class: "form-field-wrapper" }, Bh = /* @__PURE__ */ be({
|
|
4882
4882
|
__name: "FieldSwitch",
|
|
4883
4883
|
props: {
|
|
4884
4884
|
disabled: {
|
|
@@ -4930,13 +4930,13 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
4930
4930
|
});
|
|
4931
4931
|
return t({
|
|
4932
4932
|
clearValidationErrors: f
|
|
4933
|
-
}), (p,
|
|
4933
|
+
}), (p, b) => {
|
|
4934
4934
|
const A = k("KInputSwitch");
|
|
4935
4935
|
return c(), M("div", qh, [
|
|
4936
4936
|
w(A, {
|
|
4937
4937
|
id: V(u)(e.schema),
|
|
4938
4938
|
modelValue: V(y),
|
|
4939
|
-
"onUpdate:modelValue":
|
|
4939
|
+
"onUpdate:modelValue": b[0] || (b[0] = (v) => Vt(y) ? y.value = v : null),
|
|
4940
4940
|
autocomplete: e.schema.autocomplete,
|
|
4941
4941
|
class: te(e.schema.fieldClasses),
|
|
4942
4942
|
disabled: e.disabled || void 0,
|
|
@@ -4948,7 +4948,7 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
4948
4948
|
]);
|
|
4949
4949
|
};
|
|
4950
4950
|
}
|
|
4951
|
-
}), Hh = { class: "field-textarea" }, Gh = /* @__PURE__ */
|
|
4951
|
+
}), Hh = { class: "field-textarea" }, Gh = /* @__PURE__ */ be({
|
|
4952
4952
|
__name: "FieldTextArea",
|
|
4953
4953
|
props: {
|
|
4954
4954
|
disabled: {
|
|
@@ -5002,13 +5002,13 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
5002
5002
|
const f = (p) => {
|
|
5003
5003
|
y.value = p, l(p, p);
|
|
5004
5004
|
};
|
|
5005
|
-
return (p,
|
|
5005
|
+
return (p, b) => {
|
|
5006
5006
|
const A = k("KTextArea");
|
|
5007
5007
|
return c(), M("div", Hh, [
|
|
5008
5008
|
w(A, et(p.$attrs, {
|
|
5009
5009
|
id: V(d)(e.schema),
|
|
5010
5010
|
modelValue: V(y),
|
|
5011
|
-
"onUpdate:modelValue":
|
|
5011
|
+
"onUpdate:modelValue": b[0] || (b[0] = (v) => Vt(y) ? y.value = v : null),
|
|
5012
5012
|
autosize: "",
|
|
5013
5013
|
"character-limit": e.schema.max ?? !1,
|
|
5014
5014
|
class: e.schema.fieldClasses,
|
|
@@ -5045,7 +5045,7 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
5045
5045
|
FieldKeyValuePairs: kh,
|
|
5046
5046
|
FieldLabel: Fh,
|
|
5047
5047
|
FieldMetric: is,
|
|
5048
|
-
FieldMultiselect:
|
|
5048
|
+
FieldMultiselect: Uh,
|
|
5049
5049
|
FieldObject: as,
|
|
5050
5050
|
FieldObjectAdvanced: os,
|
|
5051
5051
|
FieldRadio: ss,
|
|
@@ -5119,7 +5119,7 @@ const kh = /* @__PURE__ */ X(Mh, [["render", Oh], ["__scopeId", "data-v-be99d00c
|
|
|
5119
5119
|
},
|
|
5120
5120
|
// Should field type have a label?
|
|
5121
5121
|
fieldTypeHasLabel(e) {
|
|
5122
|
-
if (
|
|
5122
|
+
if (ve(e.label)) return !1;
|
|
5123
5123
|
let t = "";
|
|
5124
5124
|
switch (e.type === "input" ? t = e.inputType : t = e.type, t) {
|
|
5125
5125
|
case "button":
|
|
@@ -5283,7 +5283,7 @@ function dp(e) {
|
|
|
5283
5283
|
const n = (Array.isArray(e.tags) ? e.tags : []).filter((o) => typeof o == "string").map((o) => o.toLowerCase());
|
|
5284
5284
|
return n.includes(Lt.KONNECT_MANAGED) || n.includes(lp) ? Lt.KONNECT_MANAGED : Lt.SELF_MANAGED;
|
|
5285
5285
|
}
|
|
5286
|
-
const cp = { class: "partial-config-card" }, up = { class: "config-card-row-label" }, mp = { class: "label-text" }, fp = ["data-testid"], hp = ["data-testid"], pp = { key: 1 }, gp = ["data-testid"], yp = ["data-testid"],
|
|
5286
|
+
const cp = { class: "partial-config-card" }, up = { class: "config-card-row-label" }, mp = { class: "label-text" }, fp = ["data-testid"], hp = ["data-testid"], pp = { key: 1 }, gp = ["data-testid"], yp = ["data-testid"], vp = /* @__PURE__ */ be({
|
|
5287
5287
|
__name: "RedisConfigCard",
|
|
5288
5288
|
props: {
|
|
5289
5289
|
configFields: {
|
|
@@ -5319,25 +5319,25 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5319
5319
|
order: 3
|
|
5320
5320
|
}
|
|
5321
5321
|
}, a = e, i = (f) => f != null, r = (f, p) => i(p) && ["password", "sentinel_password"].includes(f) ? "password" : "text", { convertKeyToTitle: l } = Gs(), d = B(() => Object.entries(a.configFields).map(([f, p]) => {
|
|
5322
|
-
var
|
|
5322
|
+
var b, A, v, F;
|
|
5323
5323
|
return {
|
|
5324
5324
|
key: f,
|
|
5325
|
-
label: ((
|
|
5325
|
+
label: ((b = o[f]) == null ? void 0 : b.label) ?? l(f),
|
|
5326
5326
|
value: (A = o[f]) != null && A.formatter ? o[f].formatter(p) : p,
|
|
5327
|
-
type: ((
|
|
5327
|
+
type: ((v = o[f]) == null ? void 0 : v.type) ?? r(f, p),
|
|
5328
5328
|
order: ((F = o[f]) == null ? void 0 : F.order) ?? 100
|
|
5329
5329
|
// attrs: value.attrs,
|
|
5330
5330
|
};
|
|
5331
5331
|
}).sort((f, p) => f.order - p.order).filter((f) => f.type !== "hidden")), u = Be.useRedisNonStandardFields(a.configFields, a.pluginRedisFields), y = B(() => d.value.concat(u));
|
|
5332
5332
|
return (f, p) => {
|
|
5333
|
-
const
|
|
5333
|
+
const b = k("KCopy");
|
|
5334
5334
|
return c(), M("div", cp, [
|
|
5335
|
-
(c(!0), M(Y, null, oe(y.value, ({ key: A, label:
|
|
5335
|
+
(c(!0), M(Y, null, oe(y.value, ({ key: A, label: v, value: F, type: L }) => (c(), M("div", {
|
|
5336
5336
|
key: A,
|
|
5337
5337
|
class: "partial-config-card-row"
|
|
5338
5338
|
}, [
|
|
5339
5339
|
m("div", up, [
|
|
5340
|
-
m("div", mp, x(
|
|
5340
|
+
m("div", mp, x(v), 1)
|
|
5341
5341
|
]),
|
|
5342
5342
|
m("div", {
|
|
5343
5343
|
class: "config-card-row-value",
|
|
@@ -5348,7 +5348,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5348
5348
|
key: 0,
|
|
5349
5349
|
"data-testid": `${A}-copy-password`
|
|
5350
5350
|
}, [
|
|
5351
|
-
w(
|
|
5351
|
+
w(b, {
|
|
5352
5352
|
format: "redacted",
|
|
5353
5353
|
text: String(F)
|
|
5354
5354
|
}, null, 8, ["text"])
|
|
@@ -5365,7 +5365,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5365
5365
|
]);
|
|
5366
5366
|
};
|
|
5367
5367
|
}
|
|
5368
|
-
}),
|
|
5368
|
+
}), bp = /* @__PURE__ */ X(vp, [["__scopeId", "data-v-57f78095"]]), _p = {
|
|
5369
5369
|
class: "redis-config-select",
|
|
5370
5370
|
"data-testid": "redis-config-select"
|
|
5371
5371
|
}, Sp = { class: "selected-redis-config" }, Tp = ["data-testid"], Mp = {
|
|
@@ -5378,7 +5378,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5378
5378
|
key: 1,
|
|
5379
5379
|
class: "redis-shared-config-error-message",
|
|
5380
5380
|
"data-testid": "redis-config-fetch-error"
|
|
5381
|
-
}, Ap = "1000", Ip = /* @__PURE__ */
|
|
5381
|
+
}, Ap = "1000", Ip = /* @__PURE__ */ be({
|
|
5382
5382
|
__name: "RedisConfigSelect",
|
|
5383
5383
|
props: {
|
|
5384
5384
|
defaultRedisConfigItem: {
|
|
@@ -5428,21 +5428,21 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5428
5428
|
} = Ws(l, o[l.app].getAll, Ap, {
|
|
5429
5429
|
fetchedItemsKey: "data",
|
|
5430
5430
|
searchKeys: ["id", "name"]
|
|
5431
|
-
}),
|
|
5431
|
+
}), b = B(() => y.value ? r(y.value) : ""), A = B(
|
|
5432
5432
|
() => a.isCustomPlugin ? t("redis.custom_plugin.tooltip") : t("redis.shared_configuration.tooltip", { type: Qa(a.redisType) })
|
|
5433
|
-
),
|
|
5433
|
+
), v = B(
|
|
5434
5434
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.title") : t("redis.shared_configuration.title")
|
|
5435
5435
|
), F = B(
|
|
5436
5436
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.selector.placeholder") : t("redis.shared_configuration.selector.placeholder")
|
|
5437
5437
|
), L = B(
|
|
5438
5438
|
() => a.isKonnectManagedRedisEnabled ? t("redis.managed_ui.shared_configuration.create_new_configuration") : t("redis.shared_configuration.create_new_configuration", { type: Qa(a.redisType) })
|
|
5439
5439
|
), H = B(
|
|
5440
|
-
() =>
|
|
5441
|
-
), K = (
|
|
5440
|
+
() => b.value || t("redis.shared_configuration.error")
|
|
5441
|
+
), K = (N) => {
|
|
5442
5442
|
let D = `${l.apiBaseUrl}${o[l.app].getOne}`;
|
|
5443
|
-
return l.app === "konnect" && (D = D.replace(/{controlPlaneId}/gi, (l == null ? void 0 : l.controlPlaneId) || "")), D = D.replace(/\/{workspace}/gi, l != null && l.workspace ? `/${l.workspace}` : "").replace(/{id}/gi, String(
|
|
5443
|
+
return l.app === "konnect" && (D = D.replace(/{controlPlaneId}/gi, (l == null ? void 0 : l.controlPlaneId) || "")), D = D.replace(/\/{workspace}/gi, l != null && l.workspace ? `/${l.workspace}` : "").replace(/{id}/gi, String(N)), D;
|
|
5444
5444
|
}, O = B(() => {
|
|
5445
|
-
const
|
|
5445
|
+
const N = (p.value || []).map((D) => {
|
|
5446
5446
|
const g = D, S = a.isKonnectManagedRedisEnabled ? dp(g) : void 0, I = S === Lt.KONNECT_MANAGED;
|
|
5447
5447
|
return {
|
|
5448
5448
|
...a.isKonnectManagedRedisEnabled && S ? { source: S } : {},
|
|
@@ -5454,12 +5454,12 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5454
5454
|
tag: a.isKonnectManagedRedisEnabled && I ? void 0 : sp(g)
|
|
5455
5455
|
};
|
|
5456
5456
|
}).filter((D) => D.type === "redis-ce" || D.type === "redis-ee");
|
|
5457
|
-
return a.redisType !== "all" ?
|
|
5457
|
+
return a.redisType !== "all" ? N.filter((D) => D.type === a.redisType) : N;
|
|
5458
5458
|
}), C = B(() => {
|
|
5459
|
-
const
|
|
5459
|
+
const N = O.value;
|
|
5460
5460
|
if (!a.isKonnectManagedRedisEnabled)
|
|
5461
|
-
return
|
|
5462
|
-
const D =
|
|
5461
|
+
return N;
|
|
5462
|
+
const D = N.filter((I) => I.source === Lt.KONNECT_MANAGED), g = N.filter((I) => I.source === Lt.SELF_MANAGED), S = [];
|
|
5463
5463
|
return D.length > 0 && S.push({
|
|
5464
5464
|
label: t("redis.managed_ui.groups.konnect_managed"),
|
|
5465
5465
|
items: D
|
|
@@ -5467,11 +5467,11 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5467
5467
|
label: t("redis.managed_ui.groups.self_managed"),
|
|
5468
5468
|
items: g
|
|
5469
5469
|
}), S;
|
|
5470
|
-
}), { axiosInstance: _ } = yn(l == null ? void 0 : l.axiosRequestConfig), T = async (
|
|
5471
|
-
if (
|
|
5472
|
-
a.updateRedisModel(
|
|
5470
|
+
}), { axiosInstance: _ } = yn(l == null ? void 0 : l.axiosRequestConfig), T = async (N) => {
|
|
5471
|
+
if (N) {
|
|
5472
|
+
a.updateRedisModel(N);
|
|
5473
5473
|
try {
|
|
5474
|
-
const D = await _.get(K(
|
|
5474
|
+
const D = await _.get(K(N));
|
|
5475
5475
|
if (D.data.config) {
|
|
5476
5476
|
const g = Object.assign(D.data, D.data.config);
|
|
5477
5477
|
delete g.config, i.value = g;
|
|
@@ -5481,11 +5481,11 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5481
5481
|
}
|
|
5482
5482
|
}
|
|
5483
5483
|
};
|
|
5484
|
-
return ln(() => n == null ? void 0 : n.value, async (
|
|
5485
|
-
|
|
5486
|
-
}),
|
|
5484
|
+
return ln(() => n == null ? void 0 : n.value, async (N) => {
|
|
5485
|
+
N && await f();
|
|
5486
|
+
}), vi(() => {
|
|
5487
5487
|
f(), a.defaultRedisConfigItem && T(a.defaultRedisConfigItem);
|
|
5488
|
-
}), (
|
|
5488
|
+
}), (N, D) => {
|
|
5489
5489
|
const g = k("KLabel"), S = k("KBadge"), I = k("KSelect");
|
|
5490
5490
|
return c(), M(Y, null, [
|
|
5491
5491
|
m("div", _p, [
|
|
@@ -5497,7 +5497,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5497
5497
|
}
|
|
5498
5498
|
}, {
|
|
5499
5499
|
default: E(() => [
|
|
5500
|
-
Z(x(
|
|
5500
|
+
Z(x(v.value), 1)
|
|
5501
5501
|
]),
|
|
5502
5502
|
_: 1
|
|
5503
5503
|
}, 8, ["info"]),
|
|
@@ -5542,7 +5542,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5542
5542
|
m("div", {
|
|
5543
5543
|
class: "new-redis-config-area",
|
|
5544
5544
|
"data-testid": "new-redis-config-area",
|
|
5545
|
-
onClick: D[0] || (D[0] = (j) =>
|
|
5545
|
+
onClick: D[0] || (D[0] = (j) => N.$emit("showNewPartialModal"))
|
|
5546
5546
|
}, [
|
|
5547
5547
|
w(V(En), {
|
|
5548
5548
|
size: `var(--kui-icon-size-20, ${V(Xo)})`
|
|
@@ -5553,12 +5553,12 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5553
5553
|
_: 1
|
|
5554
5554
|
}, 8, ["items", "loading", "model-value", "placeholder", "onQueryChange"])
|
|
5555
5555
|
]),
|
|
5556
|
-
i.value ? (c(), P(
|
|
5556
|
+
i.value ? (c(), P(bp, {
|
|
5557
5557
|
key: 0,
|
|
5558
5558
|
"config-fields": i.value,
|
|
5559
5559
|
"plugin-redis-fields": e.pluginRedisFields
|
|
5560
5560
|
}, null, 8, ["config-fields", "plugin-redis-fields"])) : q("", !0),
|
|
5561
|
-
|
|
5561
|
+
b.value ? (c(), M("p", Ep, x(H.value), 1)) : q("", !0)
|
|
5562
5562
|
], 64);
|
|
5563
5563
|
};
|
|
5564
5564
|
}
|
|
@@ -5571,7 +5571,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5571
5571
|
}, Rp = {
|
|
5572
5572
|
key: 1,
|
|
5573
5573
|
class: "dedicated-redis-config"
|
|
5574
|
-
}, Fp = { class: "dedicated-redis-config-title" },
|
|
5574
|
+
}, Fp = { class: "dedicated-redis-config-title" }, Up = /* @__PURE__ */ be({
|
|
5575
5575
|
__name: "FormRedis",
|
|
5576
5576
|
props: {
|
|
5577
5577
|
tag: {
|
|
@@ -5634,25 +5634,25 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5634
5634
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.description") : a("redis.dedicated_configuration.description")
|
|
5635
5635
|
), u = B(
|
|
5636
5636
|
() => n.isKonnectManagedRedisEnabled ? a("redis.managed_ui.dedicated_configuration.label") : a("redis.dedicated_configuration.label")
|
|
5637
|
-
), y = B(() => n.field.pluginType === "custom"), f = se(!n.isEditing), p = se(),
|
|
5637
|
+
), y = B(() => n.field.pluginType === "custom"), f = se(!n.isEditing), p = se(), b = se({}), A = se(), v = (O) => ne(O.visible) ? O.visible.call(this, n.model, O, this) : ve(O.visible) ? !0 : O.visible, F = async (O) => {
|
|
5638
5638
|
o("modelUpdated", [{ id: O, path: n.redisPath }], "partials"), A.value = [{ id: O, path: n.redisPath }], p.value = O;
|
|
5639
5639
|
}, L = (O, C) => {
|
|
5640
|
-
|
|
5640
|
+
b.value = { ...b.value, [C]: O }, o("modelUpdated", O, C);
|
|
5641
5641
|
}, H = () => {
|
|
5642
5642
|
o("refreshModel");
|
|
5643
5643
|
}, K = (O, C, _) => {
|
|
5644
5644
|
o("validated", O, C, _);
|
|
5645
5645
|
};
|
|
5646
5646
|
return ln(() => f.value, (O) => {
|
|
5647
|
-
O ? A.value && o("partialToggled", "redis", { partials: A.value }) : o("partialToggled", "partials",
|
|
5648
|
-
}),
|
|
5647
|
+
O ? A.value && o("partialToggled", "redis", { partials: A.value }) : o("partialToggled", "partials", b.value);
|
|
5648
|
+
}), vi(() => {
|
|
5649
5649
|
var O, C, _;
|
|
5650
|
-
if (n.model && (
|
|
5650
|
+
if (n.model && (b.value = n.field.fields.reduce((T, N) => (Object.keys(n.model).includes(N.model) && (T[N.model] = n.model[N.model]), T), {})), (_ = (C = (O = n == null ? void 0 : n.model) == null ? void 0 : O.partials) == null ? void 0 : C[0]) != null && _.id) {
|
|
5651
5651
|
const T = n.model.partials[0].id;
|
|
5652
5652
|
f.value = !0, p.value = T;
|
|
5653
5653
|
}
|
|
5654
5654
|
}), (O, C) => {
|
|
5655
|
-
const _ = k("KAlert"), T = k("KBadge"),
|
|
5655
|
+
const _ = k("KAlert"), T = k("KBadge"), N = k("KRadio"), D = k("KCard");
|
|
5656
5656
|
return c(), M("div", null, [
|
|
5657
5657
|
y.value ? (c(), M("div", Cp, [
|
|
5658
5658
|
w(_, {
|
|
@@ -5675,7 +5675,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5675
5675
|
}, {
|
|
5676
5676
|
default: E(() => [
|
|
5677
5677
|
m("div", Op, [
|
|
5678
|
-
w(
|
|
5678
|
+
w(N, {
|
|
5679
5679
|
modelValue: f.value,
|
|
5680
5680
|
"onUpdate:modelValue": C[1] || (C[1] = (g) => f.value = g),
|
|
5681
5681
|
card: "",
|
|
@@ -5698,7 +5698,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5698
5698
|
]),
|
|
5699
5699
|
_: 1
|
|
5700
5700
|
}, 8, ["modelValue", "description", "label"]),
|
|
5701
|
-
w(
|
|
5701
|
+
w(N, {
|
|
5702
5702
|
modelValue: f.value,
|
|
5703
5703
|
"onUpdate:modelValue": C[2] || (C[2] = (g) => f.value = g),
|
|
5704
5704
|
card: "",
|
|
@@ -5725,7 +5725,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5725
5725
|
(c(!0), M(Y, null, oe(e.field.fields, (g) => (c(), M(Y, {
|
|
5726
5726
|
key: g.model
|
|
5727
5727
|
}, [
|
|
5728
|
-
|
|
5728
|
+
v(g) ? (c(), P(ds, {
|
|
5729
5729
|
key: 0,
|
|
5730
5730
|
ref_for: !0,
|
|
5731
5731
|
ref: "children",
|
|
@@ -5749,9 +5749,9 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5749
5749
|
]);
|
|
5750
5750
|
};
|
|
5751
5751
|
}
|
|
5752
|
-
}),
|
|
5752
|
+
}), Np = /* @__PURE__ */ X(Up, [["__scopeId", "data-v-58023d89"]]), Lp = {
|
|
5753
5753
|
name: "VueFormGenerator",
|
|
5754
|
-
components: { formGroup: ds, formRedis:
|
|
5754
|
+
components: { formGroup: ds, formRedis: Np },
|
|
5755
5755
|
mixins: [Do],
|
|
5756
5756
|
inject: {
|
|
5757
5757
|
// Inject AUTOFILL_SLOT for provide()
|
|
@@ -5867,7 +5867,7 @@ const cp = { class: "partial-config-card" }, up = { class: "config-card-row-labe
|
|
|
5867
5867
|
methods: {
|
|
5868
5868
|
// Get visible prop of field
|
|
5869
5869
|
fieldVisible(e) {
|
|
5870
|
-
return ne(e.visible) ? e.visible.call(this, this.model, e, this) :
|
|
5870
|
+
return ne(e.visible) ? e.visible.call(this, this.model, e, this) : ve(e.visible) ? !0 : e.visible;
|
|
5871
5871
|
},
|
|
5872
5872
|
// Child field executed validation
|
|
5873
5873
|
onFieldValidated(e, t, n) {
|
|
@@ -5971,23 +5971,23 @@ function Vp(e, t, n, o, a, i) {
|
|
|
5971
5971
|
title: u.collapsible.title
|
|
5972
5972
|
}, Mn({
|
|
5973
5973
|
default: E(() => {
|
|
5974
|
-
var f, p,
|
|
5974
|
+
var f, p, b, A;
|
|
5975
5975
|
return [
|
|
5976
5976
|
(f = u.slots) != null && f.beforeContent ? we(e.$slots, (p = u.slots) == null ? void 0 : p.beforeContent, { key: 0 }) : q("", !0),
|
|
5977
|
-
u.fields.length === 0 && ((
|
|
5977
|
+
u.fields.length === 0 && ((b = u.slots) != null && b.emptyState) ? we(e.$slots, (A = u.slots) == null ? void 0 : A.emptyState, { key: 1 }) : (c(), P(re(n.tag), {
|
|
5978
5978
|
key: 2,
|
|
5979
5979
|
class: te(e.getFieldRowClasses(u))
|
|
5980
5980
|
}, {
|
|
5981
5981
|
default: E(() => [
|
|
5982
|
-
(c(!0), M(Y, null, oe(u.fields, (
|
|
5983
|
-
key:
|
|
5982
|
+
(c(!0), M(Y, null, oe(u.fields, (v) => (c(), M(Y, {
|
|
5983
|
+
key: v.model
|
|
5984
5984
|
}, [
|
|
5985
|
-
i.fieldVisible(
|
|
5985
|
+
i.fieldVisible(v) ? (c(), P(l, {
|
|
5986
5986
|
key: 0,
|
|
5987
5987
|
ref_for: !0,
|
|
5988
5988
|
ref: "children",
|
|
5989
5989
|
errors: a.errors,
|
|
5990
|
-
field:
|
|
5990
|
+
field: v,
|
|
5991
5991
|
model: n.model,
|
|
5992
5992
|
options: n.options,
|
|
5993
5993
|
vfg: a.vfg,
|
|
@@ -6005,20 +6005,20 @@ function Vp(e, t, n, o, a, i) {
|
|
|
6005
6005
|
"model-value": a.collapseStates[`group-${y}-nested`] ?? !0,
|
|
6006
6006
|
"trigger-alignment": "leading",
|
|
6007
6007
|
"trigger-label": a.collapseStates[`group-${y}-nested`] ?? !0 ? u.collapsible.nestedCollapsible.triggerLabel.expand : u.collapsible.nestedCollapsible.triggerLabel.collapse,
|
|
6008
|
-
"onUpdate:modelValue": (
|
|
6008
|
+
"onUpdate:modelValue": (v) => a.collapseStates[`group-${y}-nested`] = v
|
|
6009
6009
|
}, {
|
|
6010
6010
|
default: E(() => [
|
|
6011
6011
|
(c(), P(re(n.tag), {
|
|
6012
6012
|
class: te(e.getFieldRowClasses(u))
|
|
6013
6013
|
}, {
|
|
6014
6014
|
default: E(() => [
|
|
6015
|
-
(c(!0), M(Y, null, oe(u.collapsible.nestedCollapsible.fields, (
|
|
6016
|
-
key:
|
|
6015
|
+
(c(!0), M(Y, null, oe(u.collapsible.nestedCollapsible.fields, (v) => (c(), M(Y, {
|
|
6016
|
+
key: v.model
|
|
6017
6017
|
}, [
|
|
6018
|
-
|
|
6018
|
+
v.model === "__redis_partial" && n.enableRedisPartial ? (c(), P(r, {
|
|
6019
6019
|
key: 0,
|
|
6020
6020
|
errors: a.errors,
|
|
6021
|
-
field:
|
|
6021
|
+
field: v,
|
|
6022
6022
|
"is-editing": n.isEditing,
|
|
6023
6023
|
"is-konnect-managed-redis-enabled": n.isKonnectManagedRedisEnabled,
|
|
6024
6024
|
model: n.model,
|
|
@@ -6027,14 +6027,14 @@ function Vp(e, t, n, o, a, i) {
|
|
|
6027
6027
|
vfg: a.vfg,
|
|
6028
6028
|
onModelUpdated: i.onModelUpdated,
|
|
6029
6029
|
onPartialToggled: i.onPartialToggled,
|
|
6030
|
-
onShowNewPartialModal: (F) => e.$emit("showNewPartialModal",
|
|
6030
|
+
onShowNewPartialModal: (F) => e.$emit("showNewPartialModal", v.redisType),
|
|
6031
6031
|
onValidated: i.onFieldValidated
|
|
6032
|
-
}, null, 8, ["errors", "field", "is-editing", "is-konnect-managed-redis-enabled", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : i.fieldVisible(
|
|
6032
|
+
}, null, 8, ["errors", "field", "is-editing", "is-konnect-managed-redis-enabled", "model", "options", "tag", "vfg", "onModelUpdated", "onPartialToggled", "onShowNewPartialModal", "onValidated"])) : i.fieldVisible(v) ? (c(), P(l, {
|
|
6033
6033
|
key: 1,
|
|
6034
6034
|
ref_for: !0,
|
|
6035
6035
|
ref: "children",
|
|
6036
6036
|
errors: a.errors,
|
|
6037
|
-
field:
|
|
6037
|
+
field: v,
|
|
6038
6038
|
model: n.model,
|
|
6039
6039
|
options: n.options,
|
|
6040
6040
|
vfg: a.vfg,
|
|
@@ -6145,22 +6145,21 @@ const he = /* @__PURE__ */ X(Lp, [["render", Vp]]), Kp = [
|
|
|
6145
6145
|
return this.disabled || !this.lookupEnabled;
|
|
6146
6146
|
},
|
|
6147
6147
|
// principal_claim is the value source in both modes (default `sub`), but in
|
|
6148
|
-
// custom-identity mode that value is matched against the Custom
|
|
6148
|
+
// custom-identity mode that value is matched against the Custom Identity name,
|
|
6149
6149
|
// so call out the pairing there.
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
return this.selectedLookupMethod === "custom-identity" ? `The token claim whose value is matched against the Custom identity name. Defaults to the subject (sub) claim, but you can specify a different claim if needed. ${e}` : `Defaults to the subject (sub) claim, but you can specify a different token claim if needed. ${e}`;
|
|
6150
|
+
identifierClaimHelp() {
|
|
6151
|
+
return `${this.selectedLookupMethod === "custom-identity" ? "The token claim whose value is matched against the Custom Identity name below." : "The token claim used to look up the principal."} Leave empty to use the subject (sub) claim. Use dot notation for nested claims (for example, workload.id); escape literal periods with \\ (for example, workload\\.id).`;
|
|
6153
6152
|
}
|
|
6154
6153
|
},
|
|
6155
6154
|
methods: {
|
|
6156
6155
|
handleEnableToggle(e) {
|
|
6157
6156
|
this.onEnabledChange && this.onEnabledChange(e);
|
|
6158
6157
|
},
|
|
6159
|
-
|
|
6158
|
+
getIdentifierClaimInputValue() {
|
|
6160
6159
|
const e = this.formModel["config-principals-principal_claim"];
|
|
6161
|
-
return Array.isArray(e)
|
|
6160
|
+
return Array.isArray(e) ? e.map((t) => t.replace(/\./g, "\\.")).join(".") : e || "";
|
|
6162
6161
|
},
|
|
6163
|
-
|
|
6162
|
+
handleIdentifierClaimChange(e) {
|
|
6164
6163
|
const t = typeof e == "string" ? e.trim() : "";
|
|
6165
6164
|
if (!t) {
|
|
6166
6165
|
this.updateField("config-principals-principal_claim", []);
|
|
@@ -6212,35 +6211,35 @@ function Xp(e, t, n, o, a, i) {
|
|
|
6212
6211
|
placeholder: "Select a lookup method",
|
|
6213
6212
|
"onUpdate:modelValue": i.handleLookupMethodChange
|
|
6214
6213
|
}, {
|
|
6215
|
-
"item-template": E(({ item:
|
|
6214
|
+
"item-template": E(({ item: b }) => [
|
|
6216
6215
|
m("div", Bp, [
|
|
6217
|
-
m("div", Hp, x(
|
|
6218
|
-
m("div", Gp, x(
|
|
6216
|
+
m("div", Hp, x(b.label), 1),
|
|
6217
|
+
m("div", Gp, x(b.description), 1)
|
|
6219
6218
|
])
|
|
6220
6219
|
]),
|
|
6221
6220
|
_: 1
|
|
6222
6221
|
}, 8, ["disabled", "items", "model-value", "onUpdate:modelValue"]),
|
|
6222
|
+
w(d, {
|
|
6223
|
+
class: "principals-identifier-claim-input",
|
|
6224
|
+
"data-testid": "principals-identifier-claim",
|
|
6225
|
+
disabled: i.fieldsDisabled,
|
|
6226
|
+
help: i.identifierClaimHelp,
|
|
6227
|
+
label: "Identifier claim",
|
|
6228
|
+
"model-value": i.getIdentifierClaimInputValue(),
|
|
6229
|
+
placeholder: "e.g., user.employee_id",
|
|
6230
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => i.handleIdentifierClaimChange(b))
|
|
6231
|
+
}, null, 8, ["disabled", "help", "model-value"]),
|
|
6223
6232
|
a.selectedLookupMethod === "custom-identity" ? (c(), P(d, {
|
|
6224
6233
|
key: 0,
|
|
6225
6234
|
class: "principals-custom-identity-name-input",
|
|
6226
6235
|
"data-testid": "principals-custom-identity-name",
|
|
6227
6236
|
disabled: i.fieldsDisabled,
|
|
6228
6237
|
help: "Enter the custom identity name used to look up the principal. Kong matches the value from the token claim to a principal with the same custom identity name and value.",
|
|
6229
|
-
label: "Custom
|
|
6238
|
+
label: "Custom Identity name",
|
|
6230
6239
|
"model-value": n.formModel["config-principals-principal_by"],
|
|
6231
6240
|
placeholder: "e.g., Customer_ID",
|
|
6232
|
-
"onUpdate:modelValue": t[
|
|
6233
|
-
}, null, 8, ["disabled", "model-value"])) : q("", !0)
|
|
6234
|
-
w(d, {
|
|
6235
|
-
class: "principals-token-claim-input",
|
|
6236
|
-
"data-testid": "principals-token-claim",
|
|
6237
|
-
disabled: i.fieldsDisabled,
|
|
6238
|
-
help: i.tokenClaimHelp,
|
|
6239
|
-
label: "Token claim",
|
|
6240
|
-
"model-value": i.getTokenClaimInputValue(),
|
|
6241
|
-
placeholder: "e.g., user.employee_id",
|
|
6242
|
-
"onUpdate:modelValue": t[1] || (t[1] = (v) => i.handleTokenClaimChange(v))
|
|
6243
|
-
}, null, 8, ["disabled", "help", "model-value"])
|
|
6241
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => i.updateField("config-principals-principal_by", b))
|
|
6242
|
+
}, null, 8, ["disabled", "model-value"])) : q("", !0)
|
|
6244
6243
|
]),
|
|
6245
6244
|
m("div", Yp, [
|
|
6246
6245
|
w(u, null, {
|
|
@@ -6256,7 +6255,7 @@ function Xp(e, t, n, o, a, i) {
|
|
|
6256
6255
|
label: "Reject the request",
|
|
6257
6256
|
"model-value": n.formModel["config-principals-error_on_miss"],
|
|
6258
6257
|
"selected-value": !0,
|
|
6259
|
-
onChange: t[2] || (t[2] = (
|
|
6258
|
+
onChange: t[2] || (t[2] = (b) => i.updateField("config-principals-error_on_miss", !0))
|
|
6260
6259
|
}, null, 8, ["disabled", "model-value"]),
|
|
6261
6260
|
w(y, {
|
|
6262
6261
|
"data-testid": "principals-error-on-miss-false",
|
|
@@ -6265,7 +6264,7 @@ function Xp(e, t, n, o, a, i) {
|
|
|
6265
6264
|
label: "Continue without a principal",
|
|
6266
6265
|
"model-value": n.formModel["config-principals-error_on_miss"],
|
|
6267
6266
|
"selected-value": !1,
|
|
6268
|
-
onChange: t[3] || (t[3] = (
|
|
6267
|
+
onChange: t[3] || (t[3] = (b) => i.updateField("config-principals-error_on_miss", !1))
|
|
6269
6268
|
}, null, 8, ["disabled", "model-value"])
|
|
6270
6269
|
]),
|
|
6271
6270
|
m("div", Wp, [
|
|
@@ -6273,7 +6272,7 @@ function Xp(e, t, n, o, a, i) {
|
|
|
6273
6272
|
"data-testid": "principals-match-consumer",
|
|
6274
6273
|
disabled: i.fieldsDisabled,
|
|
6275
6274
|
"model-value": n.formModel["config-principals-match_consumer"],
|
|
6276
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
6275
|
+
"onUpdate:modelValue": t[4] || (t[4] = (b) => i.handleMatchConsumerChange(b))
|
|
6277
6276
|
}, {
|
|
6278
6277
|
description: E(() => [...t[7] || (t[7] = [
|
|
6279
6278
|
Z(" Use the consumer linked to the authenticated principal so existing consumer-based plugins and policies continue to work. ", -1),
|
|
@@ -6294,7 +6293,7 @@ function Xp(e, t, n, o, a, i) {
|
|
|
6294
6293
|
"data-testid": "principals-match-consumer-groups",
|
|
6295
6294
|
disabled: i.fieldsDisabled || !n.formModel["config-principals-match_consumer"],
|
|
6296
6295
|
"model-value": n.formModel["config-principals-match_consumer_groups"],
|
|
6297
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
6296
|
+
"onUpdate:modelValue": t[5] || (t[5] = (b) => i.updateField("config-principals-match_consumer_groups", b))
|
|
6298
6297
|
}, {
|
|
6299
6298
|
description: E(() => [...t[9] || (t[9] = [
|
|
6300
6299
|
Z(" Use consumer groups linked to the authenticated principal so existing consumer group policies and plugins continue to work. Consumer groups can be linked through principal metadata. ", -1),
|
|
@@ -6315,7 +6314,7 @@ function Xp(e, t, n, o, a, i) {
|
|
|
6315
6314
|
_: 3
|
|
6316
6315
|
});
|
|
6317
6316
|
}
|
|
6318
|
-
const Jp = /* @__PURE__ */ X(xp, [["render", Xp], ["__scopeId", "data-v-
|
|
6317
|
+
const Jp = /* @__PURE__ */ X(xp, [["render", Xp], ["__scopeId", "data-v-d97ad727"]]), Ut = "kong-identity", cs = "external", Qp = "/v1/auth-servers/_computed", eg = "identity.konghq", tg = (e) => typeof e == "string" && e.includes(eg), ng = (e, t) => t ? tg(e["config-issuer"]) ? Ut : cs : Ut, ig = {
|
|
6319
6318
|
name: "OIDCPrincipals",
|
|
6320
6319
|
components: { VueFormGenerator: he, PrincipalLookupSettings: Jp, AddIcon: En, BookIcon: qs, CloseIcon: zs, KeyIcon: xs, WorldIcon: $s },
|
|
6321
6320
|
inject: {
|
|
@@ -6357,7 +6356,7 @@ const Jp = /* @__PURE__ */ X(xp, [["render", Xp], ["__scopeId", "data-v-7255b7db
|
|
|
6357
6356
|
emits: ["mode-change", "click:learn-more", "click:create-entity"],
|
|
6358
6357
|
data() {
|
|
6359
6358
|
return {
|
|
6360
|
-
MODE_KONG_IDENTITY:
|
|
6359
|
+
MODE_KONG_IDENTITY: Ut,
|
|
6361
6360
|
MODE_EXTERNAL: cs,
|
|
6362
6361
|
KUI_ICON_SIZE_20: Xo,
|
|
6363
6362
|
KUI_ICON_SIZE_30: Gm,
|
|
@@ -6438,7 +6437,7 @@ const Jp = /* @__PURE__ */ X(xp, [["render", Xp], ["__scopeId", "data-v-7255b7db
|
|
|
6438
6437
|
}
|
|
6439
6438
|
},
|
|
6440
6439
|
mounted() {
|
|
6441
|
-
this.isEditing || (this.selectedMode ===
|
|
6440
|
+
this.isEditing || (this.selectedMode === Ut && (this.formModel["config-principals-enabled"] = !0), this.$nextTick(() => this.$emit("mode-change", this.selectedMode))), this.fetchKongIdentityServers(), this.fetchPrincipalsState({ setDirectory: !this.isEditing && this.selectedMode === Ut });
|
|
6442
6441
|
},
|
|
6443
6442
|
methods: {
|
|
6444
6443
|
// `setDirectory` is true on create/switch into Kong Identity (we adopt the directory
|
|
@@ -6544,7 +6543,7 @@ const Jp = /* @__PURE__ */ X(xp, [["render", Xp], ["__scopeId", "data-v-7255b7db
|
|
|
6544
6543
|
this.leavePromptType = null, e === "authServer" ? this.$emit("click:create-entity", { type: "auth-server" }) : e === "client" ? this.$emit("click:create-entity", { type: "client", authServerId: (t = this.selectedServer) == null ? void 0 : t.id }) : e === "principal" && this.$emit("click:create-entity", { type: "principal" });
|
|
6545
6544
|
},
|
|
6546
6545
|
handleModeChange(e) {
|
|
6547
|
-
e ===
|
|
6546
|
+
e === Ut ? (this.formModel["config-client_id"] = null, this.formModel["config-client_secret"] = null, this.formModel["config-issuer"] = null, this.formModel["config-principals-enabled"] = !0, this.formModel["config-principals-error_on_miss"] = !0, this.formModel["config-principals-match_consumer"] = !0, this.formModel["config-principals-match_consumer_groups"] = !0, this.fetchPrincipalsState({ setDirectory: !0 })) : (this.formModel["config-principals-enabled"] = !1, this.formModel["config-principals-directory"] = "default", this.formModel["config-principals-error_on_miss"] = !0, this.formModel["config-principals-match_consumer"] = !0, this.formModel["config-principals-match_consumer_groups"] = !0, this.formModel["config-client_id"] = null, this.formModel["config-client_secret"] = null, this.formModel["config-issuer"] = null, this.selectedServer = null, this.clients = []), this.onModelUpdated(), this.$emit("mode-change", e);
|
|
6548
6547
|
}
|
|
6549
6548
|
}
|
|
6550
6549
|
}, ag = {
|
|
@@ -6562,9 +6561,9 @@ const Jp = /* @__PURE__ */ X(xp, [["render", Xp], ["__scopeId", "data-v-7255b7db
|
|
|
6562
6561
|
class: "principals-create-guide",
|
|
6563
6562
|
"data-testid": "principals-create-guide"
|
|
6564
6563
|
}, yg = { class: "principals-create-guide-actions" };
|
|
6565
|
-
function
|
|
6564
|
+
function vg(e, t, n, o, a, i) {
|
|
6566
6565
|
var O;
|
|
6567
|
-
const r = k("KExternalLink"), l = k("KeyIcon"), d = k("KRadio"), u = k("WorldIcon"), y = k("KSkeleton"), f = k("AddIcon"), p = k("KButton"),
|
|
6566
|
+
const r = k("KExternalLink"), l = k("KeyIcon"), d = k("KRadio"), u = k("WorldIcon"), y = k("KSkeleton"), f = k("AddIcon"), p = k("KButton"), b = k("BookIcon"), A = k("KSelect"), v = k("KInput"), F = k("CloseIcon"), L = k("PrincipalLookupSettings"), H = k("VueFormGenerator"), K = k("KPrompt");
|
|
6568
6567
|
return c(), M("div", ag, [
|
|
6569
6568
|
t[27] || (t[27] = m("div", { class: "principals-header" }, " Who should manage authentication and credentials? ", -1)),
|
|
6570
6569
|
m("div", og, [
|
|
@@ -6643,7 +6642,7 @@ function bg(e, t, n, o, a, i) {
|
|
|
6643
6642
|
onClick: t[3] || (t[3] = (C) => e.$emit("click:learn-more", "kong-identity"))
|
|
6644
6643
|
}, {
|
|
6645
6644
|
default: E(() => [
|
|
6646
|
-
w(
|
|
6645
|
+
w(b, { decorative: "" }),
|
|
6647
6646
|
t[18] || (t[18] = Z(" Learn more ", -1))
|
|
6648
6647
|
]),
|
|
6649
6648
|
_: 1
|
|
@@ -6714,7 +6713,7 @@ function bg(e, t, n, o, a, i) {
|
|
|
6714
6713
|
_: 1
|
|
6715
6714
|
}, 8, ["disabled", "items", "label", "loading", "model-value", "onUpdate:modelValue"]),
|
|
6716
6715
|
m("div", ug, [
|
|
6717
|
-
w(
|
|
6716
|
+
w(v, {
|
|
6718
6717
|
class: "principals-client-secret",
|
|
6719
6718
|
"data-testid": "principals-client-secret",
|
|
6720
6719
|
disabled: !a.selectedServer,
|
|
@@ -6762,13 +6761,13 @@ function bg(e, t, n, o, a, i) {
|
|
|
6762
6761
|
}, 8, ["disabled", "form-model", "on-model-updated"])
|
|
6763
6762
|
], 64)) : (c(), M(Y, { key: 3 }, [
|
|
6764
6763
|
(c(!0), M(Y, null, oe(i.clientIdArray, (C, _) => {
|
|
6765
|
-
var T,
|
|
6764
|
+
var T, N;
|
|
6766
6765
|
return c(), M("div", {
|
|
6767
6766
|
key: _,
|
|
6768
6767
|
class: te(["client-row", { "client-row-with-label": _ === 0 }])
|
|
6769
6768
|
}, [
|
|
6770
6769
|
m("div", fg, [
|
|
6771
|
-
w(
|
|
6770
|
+
w(v, {
|
|
6772
6771
|
class: "external-client-input",
|
|
6773
6772
|
"data-testid": "external-client-id",
|
|
6774
6773
|
label: _ === 0 ? "Client id" : void 0,
|
|
@@ -6785,11 +6784,11 @@ function bg(e, t, n, o, a, i) {
|
|
|
6785
6784
|
}, null, 8, ["update", "value"])) : q("", !0)
|
|
6786
6785
|
]),
|
|
6787
6786
|
m("div", hg, [
|
|
6788
|
-
w(
|
|
6787
|
+
w(v, {
|
|
6789
6788
|
class: "external-client-input",
|
|
6790
6789
|
"data-testid": "external-client-secret",
|
|
6791
6790
|
label: _ === 0 ? "Client secret" : void 0,
|
|
6792
|
-
"label-attributes": { info: (
|
|
6791
|
+
"label-attributes": { info: (N = i.externalClientSecretField) == null ? void 0 : N.help },
|
|
6793
6792
|
"model-value": i.clientSecretArray[_],
|
|
6794
6793
|
placeholder: "e.g., your-client-secret",
|
|
6795
6794
|
"show-password-mask-toggle": "",
|
|
@@ -6861,7 +6860,7 @@ function bg(e, t, n, o, a, i) {
|
|
|
6861
6860
|
onClick: t[9] || (t[9] = (C) => e.$emit("click:learn-more", "kong-identity"))
|
|
6862
6861
|
}, {
|
|
6863
6862
|
default: E(() => [
|
|
6864
|
-
w(
|
|
6863
|
+
w(b, { decorative: "" }),
|
|
6865
6864
|
t[24] || (t[24] = Z(" Learn more ", -1))
|
|
6866
6865
|
]),
|
|
6867
6866
|
_: 1
|
|
@@ -6885,7 +6884,7 @@ function bg(e, t, n, o, a, i) {
|
|
|
6885
6884
|
}, null, 8, ["visible", "onProceed"])
|
|
6886
6885
|
]);
|
|
6887
6886
|
}
|
|
6888
|
-
const
|
|
6887
|
+
const bg = /* @__PURE__ */ X(ig, [["render", vg], ["__scopeId", "data-v-d7c0f1c8"]]), _g = {
|
|
6889
6888
|
name: "OIDCAuthMethods",
|
|
6890
6889
|
props: {
|
|
6891
6890
|
authMethodItems: {
|
|
@@ -6985,7 +6984,7 @@ const Eg = /* @__PURE__ */ X(_g, [["render", wg], ["__scopeId", "data-v-8c1cdc7c
|
|
|
6985
6984
|
"config-authenticated_groups_claim"
|
|
6986
6985
|
]), di = ["bearer", "client_credentials", "introspection", "userinfo"], Ag = "identity.konghq", Ig = (e) => typeof e == "string" && e.includes(Ag), Cg = {
|
|
6987
6986
|
name: "OIDCForm",
|
|
6988
|
-
components: { VueFormGenerator: he, OIDCPrincipals:
|
|
6987
|
+
components: { VueFormGenerator: he, OIDCPrincipals: bg, OIDCAuthMethods: Eg },
|
|
6989
6988
|
provide() {
|
|
6990
6989
|
var e;
|
|
6991
6990
|
return {
|
|
@@ -7141,22 +7140,22 @@ const Eg = /* @__PURE__ */ X(_g, [["render", wg], ["__scopeId", "data-v-8c1cdc7c
|
|
|
7141
7140
|
switch (r.model) {
|
|
7142
7141
|
case "config-client_jwk": {
|
|
7143
7142
|
if (Array.isArray((d = (l = r.items) == null ? void 0 : l.schema) == null ? void 0 : d.fields))
|
|
7144
|
-
for (const
|
|
7145
|
-
|
|
7143
|
+
for (const b of r.items.schema.fields)
|
|
7144
|
+
b.label = b.model;
|
|
7146
7145
|
i.push({
|
|
7147
7146
|
...r,
|
|
7148
7147
|
link: this.openIdConnectJWKLink,
|
|
7149
7148
|
newElementButtonLabel: "+ Add Client JWK",
|
|
7150
|
-
...Array.isArray((y = (u = r.items) == null ? void 0 : u.schema) == null ? void 0 : y.fields) && r.items.schema.fields.map((
|
|
7149
|
+
...Array.isArray((y = (u = r.items) == null ? void 0 : u.schema) == null ? void 0 : y.fields) && r.items.schema.fields.map((b) => ({ ...b, label: b.model }))
|
|
7151
7150
|
});
|
|
7152
7151
|
break;
|
|
7153
7152
|
}
|
|
7154
7153
|
case "config-token_exchange-subject_token_issuers": {
|
|
7155
7154
|
if (Array.isArray((p = (f = r.items) == null ? void 0 : f.schema) == null ? void 0 : p.fields)) {
|
|
7156
|
-
const
|
|
7157
|
-
if (A && (A.checkboxLabel = A.label, A.label = void 0, A.checkboxDescription = (F) => F.verify_signature === !0 ? "JSON Web Keys are automatically fetched from the issuer's well-known endpoint. Enter a JWKS URI below to override this." : void 0),
|
|
7158
|
-
const F =
|
|
7159
|
-
L !== F + 1 && (
|
|
7155
|
+
const b = r.items.schema.fields, A = b.find((F) => F.model === "verify_signature"), v = b.find((F) => F.model === "jwks_uri");
|
|
7156
|
+
if (A && (A.checkboxLabel = A.label, A.label = void 0, A.checkboxDescription = (F) => F.verify_signature === !0 ? "JSON Web Keys are automatically fetched from the issuer's well-known endpoint. Enter a JWKS URI below to override this." : void 0), v && (v.visible = (F) => F.verify_signature === !0), A && v) {
|
|
7157
|
+
const F = b.indexOf(A), L = b.indexOf(v);
|
|
7158
|
+
L !== F + 1 && (b.splice(L, 1), b.splice(F + 1, 0, v));
|
|
7160
7159
|
}
|
|
7161
7160
|
}
|
|
7162
7161
|
i.push(r);
|
|
@@ -7273,9 +7272,9 @@ const Eg = /* @__PURE__ */ X(_g, [["render", wg], ["__scopeId", "data-v-8c1cdc7c
|
|
|
7273
7272
|
}
|
|
7274
7273
|
}
|
|
7275
7274
|
}
|
|
7276
|
-
}, Og = { class: "general-settings" }, kg = { class: "link-wrapper" }, Rg = { class: "auth-method-container" }, Fg = { class: "general-settings" },
|
|
7275
|
+
}, Og = { class: "general-settings" }, kg = { class: "link-wrapper" }, Rg = { class: "auth-method-container" }, Fg = { class: "general-settings" }, Ug = { class: "link-wrapper" }, Ng = { class: "general-settings" }, Lg = { class: "link-wrapper" };
|
|
7277
7276
|
function Dg(e, t, n, o, a, i) {
|
|
7278
|
-
const r = k("VueFormGenerator"), l = k("KExternalLink"), d = k("OIDCAuthMethods"), u = k("OIDCPrincipals"), y = k("KLabel"), f = k("KCheckbox"), p = k("KInputSwitch"),
|
|
7277
|
+
const r = k("VueFormGenerator"), l = k("KExternalLink"), d = k("OIDCAuthMethods"), u = k("OIDCPrincipals"), y = k("KLabel"), f = k("KCheckbox"), p = k("KInputSwitch"), b = k("KTabs");
|
|
7279
7278
|
return c(), M("div", null, [
|
|
7280
7279
|
n.formModel.id && n.isEditing || !n.isEditing ? (c(), P(r, {
|
|
7281
7280
|
key: 0,
|
|
@@ -7285,7 +7284,7 @@ function Dg(e, t, n, o, a, i) {
|
|
|
7285
7284
|
schema: a.globalFields,
|
|
7286
7285
|
onModelUpdated: n.onModelUpdated
|
|
7287
7286
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : q("", !0),
|
|
7288
|
-
w(
|
|
7287
|
+
w(b, { tabs: a.tabs }, {
|
|
7289
7288
|
common: E(() => [
|
|
7290
7289
|
m("div", Og, [
|
|
7291
7290
|
m("div", kg, [
|
|
@@ -7350,9 +7349,9 @@ function Dg(e, t, n, o, a, i) {
|
|
|
7350
7349
|
}, [
|
|
7351
7350
|
w(f, {
|
|
7352
7351
|
modelValue: A.prop,
|
|
7353
|
-
"onUpdate:modelValue": (
|
|
7352
|
+
"onUpdate:modelValue": (v) => A.prop = v,
|
|
7354
7353
|
"data-testid": `auth-method-checkbox-${A.value}`,
|
|
7355
|
-
onChange: (
|
|
7354
|
+
onChange: (v) => i.handleUpdate(v, A.value)
|
|
7356
7355
|
}, {
|
|
7357
7356
|
default: E(() => [
|
|
7358
7357
|
Z(x(A.label), 1)
|
|
@@ -7374,7 +7373,7 @@ function Dg(e, t, n, o, a, i) {
|
|
|
7374
7373
|
]),
|
|
7375
7374
|
authorization: E(() => [
|
|
7376
7375
|
m("div", Fg, [
|
|
7377
|
-
m("div",
|
|
7376
|
+
m("div", Ug, [
|
|
7378
7377
|
w(l, { href: a.openIdAuthorizationDocs }, {
|
|
7379
7378
|
default: E(() => [...t[7] || (t[7] = [
|
|
7380
7379
|
m("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
@@ -7398,7 +7397,7 @@ function Dg(e, t, n, o, a, i) {
|
|
|
7398
7397
|
])
|
|
7399
7398
|
]),
|
|
7400
7399
|
advanced: E(() => [
|
|
7401
|
-
m("div",
|
|
7400
|
+
m("div", Ng, [
|
|
7402
7401
|
m("div", Lg, [
|
|
7403
7402
|
w(l, { href: a.openIdConnectLink }, {
|
|
7404
7403
|
default: E(() => [...t[9] || (t[9] = [
|
|
@@ -7426,7 +7425,7 @@ function Dg(e, t, n, o, a, i) {
|
|
|
7426
7425
|
}, 8, ["tabs"])
|
|
7427
7426
|
]);
|
|
7428
7427
|
}
|
|
7429
|
-
const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5"]]), Vg = /* @__PURE__ */
|
|
7428
|
+
const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5"]]), Vg = /* @__PURE__ */ be({
|
|
7430
7429
|
__name: "PostFunction",
|
|
7431
7430
|
props: {
|
|
7432
7431
|
formModel: {
|
|
@@ -7469,7 +7468,7 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7469
7468
|
onModelUpdated: e.onModelUpdated
|
|
7470
7469
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : q("", !0);
|
|
7471
7470
|
}
|
|
7472
|
-
}), Kg = /* @__PURE__ */ X(Vg, [["__scopeId", "data-v-f54f37ae"]]), jg = /* @__PURE__ */
|
|
7471
|
+
}), Kg = /* @__PURE__ */ X(Vg, [["__scopeId", "data-v-f54f37ae"]]), jg = /* @__PURE__ */ be({
|
|
7473
7472
|
__name: "ExitTransformer",
|
|
7474
7473
|
props: {
|
|
7475
7474
|
formModel: {
|
|
@@ -7600,7 +7599,7 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7600
7599
|
disabled: !1
|
|
7601
7600
|
}
|
|
7602
7601
|
]
|
|
7603
|
-
}, Bg = { class: "general-settings" }, Hg = { class: "sub-form" }, Gg = { class: "general-settings" }, Yg = { class: "sub-form" }, Wg = { class: "general-settings" }, Zg = /* @__PURE__ */
|
|
7602
|
+
}, Bg = { class: "general-settings" }, Hg = { class: "sub-form" }, Gg = { class: "general-settings" }, Yg = { class: "sub-form" }, Wg = { class: "general-settings" }, Zg = /* @__PURE__ */ be({
|
|
7604
7603
|
__name: "ACMEForm",
|
|
7605
7604
|
props: {
|
|
7606
7605
|
formModel: {
|
|
@@ -7632,38 +7631,38 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7632
7631
|
var T;
|
|
7633
7632
|
const _ = {};
|
|
7634
7633
|
if ((T = t.formSchema) != null && T.fields)
|
|
7635
|
-
for (const
|
|
7636
|
-
_[
|
|
7634
|
+
for (const N of t.formSchema.fields)
|
|
7635
|
+
_[N.model] = N;
|
|
7637
7636
|
return _;
|
|
7638
7637
|
}), i = B(() => {
|
|
7639
7638
|
var T;
|
|
7640
7639
|
const _ = Qe(xg);
|
|
7641
|
-
for (const
|
|
7642
|
-
const D = (T = a.value[
|
|
7643
|
-
|
|
7640
|
+
for (const N of _.fields) {
|
|
7641
|
+
const D = (T = a.value[N.model]) == null ? void 0 : T.help;
|
|
7642
|
+
N.help === void 0 && typeof D == "string" && (N.help = D);
|
|
7644
7643
|
}
|
|
7645
7644
|
return _;
|
|
7646
7645
|
}), r = B(() => {
|
|
7647
7646
|
var T;
|
|
7648
7647
|
const _ = Qe(zg);
|
|
7649
|
-
for (const
|
|
7650
|
-
const D = (T = a.value[
|
|
7651
|
-
|
|
7648
|
+
for (const N of _.fields) {
|
|
7649
|
+
const D = (T = a.value[N.model]) == null ? void 0 : T.help;
|
|
7650
|
+
N.help === void 0 && typeof D == "string" && (N.help = D);
|
|
7652
7651
|
}
|
|
7653
7652
|
return _;
|
|
7654
7653
|
}), l = B(() => {
|
|
7655
7654
|
var T;
|
|
7656
7655
|
const _ = Qe(qg);
|
|
7657
|
-
for (const
|
|
7658
|
-
const D = (T = a.value[
|
|
7659
|
-
|
|
7656
|
+
for (const N of _.fields) {
|
|
7657
|
+
const D = (T = a.value[N.model]) == null ? void 0 : T.help;
|
|
7658
|
+
N.help === void 0 && typeof D == "string" && (N.help = D);
|
|
7660
7659
|
}
|
|
7661
7660
|
return _;
|
|
7662
7661
|
}), d = B(() => ({
|
|
7663
7662
|
fields: t.formSchema.fields.filter((_) => !_.model.startsWith("config") && _.model !== "tags")
|
|
7664
7663
|
})), u = B(() => ({
|
|
7665
7664
|
fields: i.value.fields.filter(
|
|
7666
|
-
(T) => !r.value.fields.some((
|
|
7665
|
+
(T) => !r.value.fields.some((N) => N.model === T.model) && !l.value.fields.some((N) => N.model === T.model)
|
|
7667
7666
|
)
|
|
7668
7667
|
})), y = B(() => ({
|
|
7669
7668
|
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"))
|
|
@@ -7671,11 +7670,11 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7671
7670
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-consul"))
|
|
7672
7671
|
})), p = B(() => ({
|
|
7673
7672
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-redis"))
|
|
7674
|
-
})),
|
|
7673
|
+
})), b = B(() => ({
|
|
7675
7674
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-shm"))
|
|
7676
7675
|
})), A = B(() => ({
|
|
7677
7676
|
fields: t.formSchema.fields.filter((T) => T.model.startsWith("config-storage_config-vault"))
|
|
7678
|
-
})),
|
|
7677
|
+
})), v = B(() => ({
|
|
7679
7678
|
fields: t.formSchema.fields.filter((_) => _.model.startsWith("config") && !u.value.fields.filter((T) => T.model === _.model).length && !y.value.fields.filter((T) => T.model === _.model).length || _.model === "tags")
|
|
7680
7679
|
})), F = B(() => t.formModel.id && t.isEditing || !t.isEditing), L = [
|
|
7681
7680
|
{
|
|
@@ -7714,7 +7713,7 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7714
7713
|
T === "config-storage" && (o.value = _), t.onModelUpdated();
|
|
7715
7714
|
};
|
|
7716
7715
|
return (_, T) => {
|
|
7717
|
-
const
|
|
7716
|
+
const N = k("KSelect"), D = k("KTabs");
|
|
7718
7717
|
return c(), M("div", null, [
|
|
7719
7718
|
e.formModel.id && e.isEditing || !e.isEditing ? (c(), P(he, {
|
|
7720
7719
|
key: 0,
|
|
@@ -7739,7 +7738,7 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7739
7738
|
onModelUpdated: e.onModelUpdated
|
|
7740
7739
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : q("", !0),
|
|
7741
7740
|
T[2] || (T[2] = m("hr", null, null, -1)),
|
|
7742
|
-
w(
|
|
7741
|
+
w(N, {
|
|
7743
7742
|
class: "issuer-select",
|
|
7744
7743
|
items: H,
|
|
7745
7744
|
label: "Issuer",
|
|
@@ -7795,7 +7794,7 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7795
7794
|
key: 2,
|
|
7796
7795
|
model: e.formModel,
|
|
7797
7796
|
options: e.formOptions,
|
|
7798
|
-
schema:
|
|
7797
|
+
schema: b.value,
|
|
7799
7798
|
onModelUpdated: e.onModelUpdated
|
|
7800
7799
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : q("", !0),
|
|
7801
7800
|
o.value === "vault" ? (c(), P(he, {
|
|
@@ -7818,7 +7817,7 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7818
7817
|
key: 0,
|
|
7819
7818
|
model: e.formModel,
|
|
7820
7819
|
options: e.formOptions,
|
|
7821
|
-
schema:
|
|
7820
|
+
schema: v.value,
|
|
7822
7821
|
onModelUpdated: e.onModelUpdated
|
|
7823
7822
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : q("", !0)
|
|
7824
7823
|
])
|
|
@@ -7834,7 +7833,7 @@ const Pg = /* @__PURE__ */ X(Cg, [["render", Dg], ["__scopeId", "data-v-db66dea5
|
|
|
7834
7833
|
}, dy = { class: "rla-form-request-limits-examples-badges" }, cy = ["innerHTML"], uy = {
|
|
7835
7834
|
id: "rla-form-error-legend",
|
|
7836
7835
|
class: "rla-form-error-inputs"
|
|
7837
|
-
}, my = /* @__PURE__ */
|
|
7836
|
+
}, my = /* @__PURE__ */ be({
|
|
7838
7837
|
__name: "RLAForm",
|
|
7839
7838
|
props: {
|
|
7840
7839
|
formSchema: {},
|
|
@@ -7947,7 +7946,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
7947
7946
|
value: j
|
|
7948
7947
|
}));
|
|
7949
7948
|
}
|
|
7950
|
-
), f = se(), p = se(!0),
|
|
7949
|
+
), f = se(), p = se(!0), b = B(
|
|
7951
7950
|
() => {
|
|
7952
7951
|
var g, S, I;
|
|
7953
7952
|
return i.formModel["config-window_type"] ?? ((I = (S = (g = i.formSchema) == null ? void 0 : g.fields) == null ? void 0 : S.find((j) => j.model === "config-window_type")) == null ? void 0 : I.default);
|
|
@@ -7956,7 +7955,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
7956
7955
|
var S, I, j, Q, pe, xe;
|
|
7957
7956
|
const g = (j = (I = (S = i.formSchema) == null ? void 0 : S.fields) == null ? void 0 : I.find((ge) => ge.model === "config-window_type")) == null ? void 0 : j.default;
|
|
7958
7957
|
return (((xe = (pe = (Q = i.formSchema) == null ? void 0 : Q.fields) == null ? void 0 : pe.find((ge) => ge.model === "config-window_type")) == null ? void 0 : xe.values) ?? []).sort((ge, it) => ge === g ? -1 : it === g ? 1 : 0);
|
|
7959
|
-
}),
|
|
7958
|
+
}), v = B(() => {
|
|
7960
7959
|
var S;
|
|
7961
7960
|
const g = (S = i.formModel["config-limit"]) == null ? void 0 : S.map((I, j) => {
|
|
7962
7961
|
var Q, pe;
|
|
@@ -8008,9 +8007,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8008
8007
|
f.value !== void 0 && (f.value = void 0);
|
|
8009
8008
|
const S = Qe(((j = i.formModel) == null ? void 0 : j["config-limit"]) ?? []), I = Qe(((Q = i.formModel) == null ? void 0 : Q["config-window_size"]) ?? []);
|
|
8010
8009
|
S.length === 0 && S.push(void 0), I.length === 0 && I.push(void 0), S.splice(g + 1, 0, void 0), I.splice(g + 1, 0, void 0), i.onModelUpdated(S, "config-limit"), i.onModelUpdated(I, "config-window_size");
|
|
8011
|
-
},
|
|
8010
|
+
}, N = (g) => {
|
|
8012
8011
|
var S, I;
|
|
8013
|
-
if (
|
|
8012
|
+
if (v.value.length > 1) {
|
|
8014
8013
|
f.value !== void 0 && (f.value = void 0);
|
|
8015
8014
|
const j = Qe(((S = i.formModel) == null ? void 0 : S["config-limit"]) ?? []), Q = Qe(((I = i.formModel) == null ? void 0 : I["config-window_size"]) ?? []);
|
|
8016
8015
|
j.length === 0 && j.push(void 0), Q.length === 0 && Q.push(void 0), j.splice(g, 1), Q.splice(g, 1), i.onModelUpdated(j, "config-limit"), i.onModelUpdated(Q, "config-window_size");
|
|
@@ -8019,7 +8018,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8019
8018
|
return ln(() => i.formModel["config-strategy"], (g) => {
|
|
8020
8019
|
g !== "redis" && i.formModel.partials && i.onModelUpdated(void 0, "partials");
|
|
8021
8020
|
}), (g, S) => {
|
|
8022
|
-
const I = k("KLabel"), j = k("KRadio"), Q = k("KInput"), pe = k("KButton"), xe = k("KBadge"), ge = k("KTooltip"), it = k("KCard"),
|
|
8021
|
+
const I = k("KLabel"), j = k("KRadio"), Q = k("KInput"), pe = k("KButton"), xe = k("KBadge"), ge = k("KTooltip"), it = k("KCard"), Nn = k("KSelect"), Ln = k("KCollapse");
|
|
8023
8022
|
return c(), M(Y, null, [
|
|
8024
8023
|
m("div", Jg, [
|
|
8025
8024
|
w(he, {
|
|
@@ -8065,7 +8064,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8065
8064
|
m("div", iy, [
|
|
8066
8065
|
(c(!0), M(Y, null, oe(A.value, (z) => (c(), P(j, {
|
|
8067
8066
|
key: `window-type-${z}`,
|
|
8068
|
-
"model-value":
|
|
8067
|
+
"model-value": b.value,
|
|
8069
8068
|
name: z,
|
|
8070
8069
|
"selected-value": z,
|
|
8071
8070
|
"onUpdate:modelValue": O
|
|
@@ -8078,7 +8077,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8078
8077
|
])
|
|
8079
8078
|
]),
|
|
8080
8079
|
m("div", ay, [
|
|
8081
|
-
(c(!0), M(Y, null, oe(
|
|
8080
|
+
(c(!0), M(Y, null, oe(v.value, (z, de) => (c(), M("div", {
|
|
8082
8081
|
key: de.toString()
|
|
8083
8082
|
}, [
|
|
8084
8083
|
w(I, {
|
|
@@ -8112,8 +8111,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8112
8111
|
m("div", ry, [
|
|
8113
8112
|
w(pe, {
|
|
8114
8113
|
appearance: "tertiary",
|
|
8115
|
-
disabled:
|
|
8116
|
-
onClick: () =>
|
|
8114
|
+
disabled: v.value.length <= 1,
|
|
8115
|
+
onClick: () => N(de)
|
|
8117
8116
|
}, {
|
|
8118
8117
|
default: E(() => [
|
|
8119
8118
|
w(V(Bs))
|
|
@@ -8148,9 +8147,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8148
8147
|
]),
|
|
8149
8148
|
default: E(() => [
|
|
8150
8149
|
w(xe, {
|
|
8151
|
-
appearance: f.value === `${
|
|
8150
|
+
appearance: f.value === `${b.value}-${de}` ? "info" : "decorative",
|
|
8152
8151
|
class: "rla-form-request-limits-examples-badge",
|
|
8153
|
-
onClick: () => K(z, `${
|
|
8152
|
+
onClick: () => K(z, `${b.value}-${de}`)
|
|
8154
8153
|
}, {
|
|
8155
8154
|
default: E(() => [
|
|
8156
8155
|
Z(x(z.label), 1)
|
|
@@ -8166,7 +8165,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
8166
8165
|
]),
|
|
8167
8166
|
_: 1
|
|
8168
8167
|
}),
|
|
8169
|
-
w(
|
|
8168
|
+
w(Nn, {
|
|
8170
8169
|
modelValue: F.value,
|
|
8171
8170
|
"onUpdate:modelValue": S[1] || (S[1] = (z) => F.value = z),
|
|
8172
8171
|
class: "rla-form-identifiers",
|
|
@@ -8297,7 +8296,7 @@ export {
|
|
|
8297
8296
|
cf as FieldScopedEntitySelect,
|
|
8298
8297
|
Tn as PartialType,
|
|
8299
8298
|
nd as REDIS_PARTIAL_FETCHER_KEY,
|
|
8300
|
-
|
|
8299
|
+
by as REDIS_PARTIAL_INFO,
|
|
8301
8300
|
he as VueFormGenerator,
|
|
8302
8301
|
_y as abstractField,
|
|
8303
8302
|
Be as composables,
|