@kong-ui-public/entities-plugins 8.12.13 → 8.12.14

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.
@@ -1,7 +1,7 @@
1
1
  var Ur = Object.defineProperty;
2
2
  var Lr = (e, t, n) => t in e ? Ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Oe = (e, t, n) => Lr(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as Q, resolveComponent as z, openBlock as p, createElementBlock as w, createBlock as j, resolveDynamicComponent as Ve, withCtx as E, Fragment as de, renderList as ye, createCommentVNode as ne, createSlots as Yt, renderSlot as Rt, normalizeClass as Me, createTextVNode as fe, toDisplayString as K, createVNode as G, createElementVNode as v, normalizeProps as Pr, guardReactiveProps as Dr, defineComponent as Ce, provide as In, useSlots as Jn, computed as X, onMounted as Mn, unref as m, nextTick as En, mergeProps as pt, pushScopeId as Kt, popScopeId as zt, toRefs as rn, isRef as Zn, inject as ds, onBeforeMount as on, Transition as Yr, resolveDirective as Ri, withDirectives as Ne, vModelText as nn, vModelCheckbox as jr, vModelSelect as ps, vModelDynamic as Hr, vModelRadio as Vr, vShow as As, watch as ct, reactive as gn, Teleport as gs, withModifiers as $t, onUnmounted as ms, normalizeStyle as fs, mergeModels as na, useModel as Nr } from "vue";
4
+ import { ref as Q, resolveComponent as z, openBlock as p, createElementBlock as w, createBlock as j, resolveDynamicComponent as Ve, withCtx as E, Fragment as de, renderList as ye, createCommentVNode as ne, createSlots as Yt, renderSlot as Rt, normalizeClass as Me, createTextVNode as fe, toDisplayString as K, createVNode as G, createElementVNode as v, normalizeProps as Pr, guardReactiveProps as Dr, defineComponent as Ce, provide as rn, useSlots as Jn, computed as X, onMounted as Mn, unref as m, nextTick as wn, mergeProps as pt, pushScopeId as Kt, popScopeId as zt, toRefs as on, isRef as Zn, inject as ds, onBeforeMount as ln, Transition as Yr, resolveDirective as Ri, withDirectives as Ne, vModelText as nn, vModelCheckbox as jr, vModelSelect as ps, vModelDynamic as Hr, vModelRadio as Vr, vShow as As, watch as ct, reactive as mn, Teleport as gs, withModifiers as $t, onUnmounted as ms, normalizeStyle as fs, mergeModels as na, useModel as Nr } from "vue";
5
5
  import { useStringHelpers as ki, ConfigurationSchemaType as ze, useAxios as Xt, useDebouncedFilter as ia, useHelpers as Wn, useErrors as _n, EntityBaseFormType as Ut, EntityBaseForm as Fr, SupportedEntityType as yi, JsonCodeBlock as Kr, YamlCodeBlock as zr, TerraformCodeBlock as Xr, useGatewayFeatureSupported as qr, useFetcher as Qr, useDeleteUrlBuilder as Jr, FetcherStatus as Zr, EntityBaseTable as Wr, EntityFilter as _r, PermissionsWrapper as Lt, EntityToggleModal as $r, EntityDeleteModal as hs, EntityTypes as vs, ConfigurationSchemaSection as Wt, EntityBaseConfigCard as eo, InternalLinkItem as Pn } from "@kong-ui-public/entities-shared";
6
6
  import { useRouter as $n, useRoute as to } from "vue-router";
7
7
  import { createI18n as Rn, i18nTComponent as no } from "@kong-ui-public/i18n";
@@ -60,7 +60,7 @@ function sa(e) {
60
60
  }
61
61
  return e;
62
62
  }
63
- const mn = { exec: () => null };
63
+ const fn = { exec: () => null };
64
64
  function ra(e, t) {
65
65
  const n = e.replace(/\|/g, (a, r, o) => {
66
66
  let c = !1, d = r;
@@ -79,7 +79,7 @@ function ra(e, t) {
79
79
  i[s] = i[s].trim().replace(/\\\|/g, "|");
80
80
  return i;
81
81
  }
82
- function dn(e, t, n) {
82
+ function pn(e, t, n) {
83
83
  const i = e.length;
84
84
  if (i === 0)
85
85
  return "";
@@ -170,7 +170,7 @@ class Vn {
170
170
  type: "code",
171
171
  raw: n[0],
172
172
  codeBlockStyle: "indented",
173
- text: this.options.pedantic ? i : dn(i, `
173
+ text: this.options.pedantic ? i : pn(i, `
174
174
  `)
175
175
  };
176
176
  }
@@ -192,7 +192,7 @@ class Vn {
192
192
  if (n) {
193
193
  let i = n[2].trim();
194
194
  if (/#$/.test(i)) {
195
- const s = dn(i, "#");
195
+ const s = pn(i, "#");
196
196
  (this.options.pedantic || !s || / $/.test(s)) && (i = s.trim());
197
197
  }
198
198
  return {
@@ -209,14 +209,14 @@ class Vn {
209
209
  if (n)
210
210
  return {
211
211
  type: "hr",
212
- raw: dn(n[0], `
212
+ raw: pn(n[0], `
213
213
  `)
214
214
  };
215
215
  }
216
216
  blockquote(t) {
217
217
  const n = this.rules.block.blockquote.exec(t);
218
218
  if (n) {
219
- let i = dn(n[0], `
219
+ let i = pn(n[0], `
220
220
  `).split(`
221
221
  `), s = "", a = "";
222
222
  const r = [];
@@ -454,7 +454,7 @@ ${A}` : A;
454
454
  if (!this.options.pedantic && /^</.test(i)) {
455
455
  if (!/>$/.test(i))
456
456
  return;
457
- const r = dn(i.slice(0, -1), "\\");
457
+ const r = pn(i.slice(0, -1), "\\");
458
458
  if ((i.length - r.length) % 2 === 0)
459
459
  return;
460
460
  } else {
@@ -634,7 +634,7 @@ const po = /^(?:[ \t]*(?:\n|$))+/, Ao = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*
634
634
  list: vo,
635
635
  newline: po,
636
636
  paragraph: Bs,
637
- table: mn,
637
+ table: fn,
638
638
  text: fo
639
639
  }, la = we("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Sn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ei).getRegex(), Eo = {
640
640
  ...Li,
@@ -645,20 +645,20 @@ const po = /^(?:[ \t]*(?:\n|$))+/, Ao = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*
645
645
  html: we(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Ui).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
646
646
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
647
647
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
648
- fences: mn,
648
+ fences: fn,
649
649
  // fences not supported
650
650
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
651
651
  paragraph: we(xi).replace("hr", Sn).replace("heading", ` *#{1,6} *[^
652
652
  ]`).replace("lheading", Cs).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
653
653
  }, Os = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Co = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Is = /^( {2,}|\\)\n(?!\s*$)/, Bo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Tn = "\\p{P}\\p{S}", Oo = we(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Tn).getRegex(), Io = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Mo = we(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Tn).getRegex(), Ro = we("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Tn).getRegex(), ko = we("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Tn).getRegex(), So = we(/\\([punct])/, "gu").replace(/punct/g, Tn).getRegex(), To = we(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), xo = we(Ui).replace("(?:-->|$)", "-->").getRegex(), Go = we("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", xo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Nn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Uo = we(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Nn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Ms = we(/^!?\[(label)\]\[(ref)\]/).replace("label", Nn).replace("ref", Gi).getRegex(), Rs = we(/^!?\[(ref)\](?:\[\])?/).replace("ref", Gi).getRegex(), Lo = we("reflink|nolink(?!\\()", "g").replace("reflink", Ms).replace("nolink", Rs).getRegex(), Pi = {
654
- _backpedal: mn,
654
+ _backpedal: fn,
655
655
  // only used for GFM url
656
656
  anyPunctuation: So,
657
657
  autolink: To,
658
658
  blockSkip: Io,
659
659
  br: Is,
660
660
  code: Co,
661
- del: mn,
661
+ del: fn,
662
662
  emStrongLDelim: Mo,
663
663
  emStrongRDelimAst: Ro,
664
664
  emStrongRDelimUnd: ko,
@@ -670,7 +670,7 @@ const po = /^(?:[ \t]*(?:\n|$))+/, Ao = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*
670
670
  reflinkSearch: Lo,
671
671
  tag: Go,
672
672
  text: Bo,
673
- url: mn
673
+ url: fn
674
674
  }, Po = {
675
675
  ...Pi,
676
676
  link: we(/^!?\[(label)\]\((.*?)\)/).replace("label", Nn).getRegex(),
@@ -690,7 +690,7 @@ const po = /^(?:[ \t]*(?:\n|$))+/, Ao = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*
690
690
  normal: Li,
691
691
  gfm: Eo,
692
692
  pedantic: wo
693
- }, pn = {
693
+ }, An = {
694
694
  normal: Pi,
695
695
  gfm: bi,
696
696
  breaks: Do,
@@ -710,9 +710,9 @@ class tt {
710
710
  };
711
711
  const n = {
712
712
  block: Dn.normal,
713
- inline: pn.normal
713
+ inline: An.normal
714
714
  };
715
- this.options.pedantic ? (n.block = Dn.pedantic, n.inline = pn.pedantic) : this.options.gfm && (n.block = Dn.gfm, this.options.breaks ? n.inline = pn.breaks : n.inline = pn.gfm), this.tokenizer.rules = n;
715
+ this.options.pedantic ? (n.block = Dn.pedantic, n.inline = An.pedantic) : this.options.gfm && (n.block = Dn.gfm, this.options.breaks ? n.inline = An.breaks : n.inline = An.gfm), this.tokenizer.rules = n;
716
716
  }
717
717
  /**
718
718
  * Expose Rules
@@ -720,7 +720,7 @@ class tt {
720
720
  static get rules() {
721
721
  return {
722
722
  block: Dn,
723
- inline: pn
723
+ inline: An
724
724
  };
725
725
  }
726
726
  /**
@@ -1244,7 +1244,7 @@ class nt {
1244
1244
  return i;
1245
1245
  }
1246
1246
  }
1247
- class fn {
1247
+ class hn {
1248
1248
  constructor(t) {
1249
1249
  Oe(this, "options");
1250
1250
  Oe(this, "block");
@@ -1281,7 +1281,7 @@ class fn {
1281
1281
  return this.block ? nt.parse : nt.parseInline;
1282
1282
  }
1283
1283
  }
1284
- Oe(fn, "passThroughHooks", /* @__PURE__ */ new Set([
1284
+ Oe(hn, "passThroughHooks", /* @__PURE__ */ new Set([
1285
1285
  "preprocess",
1286
1286
  "postprocess",
1287
1287
  "processAllTokens"
@@ -1297,7 +1297,7 @@ class Yo {
1297
1297
  Oe(this, "TextRenderer", Di);
1298
1298
  Oe(this, "Lexer", tt);
1299
1299
  Oe(this, "Tokenizer", Vn);
1300
- Oe(this, "Hooks", fn);
1300
+ Oe(this, "Hooks", hn);
1301
1301
  this.use(...t);
1302
1302
  }
1303
1303
  /**
@@ -1384,14 +1384,14 @@ class Yo {
1384
1384
  s.tokenizer = a;
1385
1385
  }
1386
1386
  if (i.hooks) {
1387
- const a = this.defaults.hooks || new fn();
1387
+ const a = this.defaults.hooks || new hn();
1388
1388
  for (const r in i.hooks) {
1389
1389
  if (!(r in a))
1390
1390
  throw new Error(`hook '${r}' does not exist`);
1391
1391
  if (["options", "block"].includes(r))
1392
1392
  continue;
1393
1393
  const o = r, c = i.hooks[o], d = a[o];
1394
- fn.passThroughHooks.has(r) ? a[o] = (u) => {
1394
+ hn.passThroughHooks.has(r) ? a[o] = (u) => {
1395
1395
  if (this.defaults.async)
1396
1396
  return Promise.resolve(c.call(a, u)).then((g) => d.call(a, g));
1397
1397
  const A = c.call(a, u);
@@ -1482,7 +1482,7 @@ be.TextRenderer = Di;
1482
1482
  be.Lexer = tt;
1483
1483
  be.lexer = tt.lex;
1484
1484
  be.Tokenizer = Vn;
1485
- be.Hooks = fn;
1485
+ be.Hooks = hn;
1486
1486
  be.parse = be;
1487
1487
  be.options;
1488
1488
  be.setOptions;
@@ -3671,16 +3671,16 @@ function uu(e, t) {
3671
3671
  i[n] = t(n);
3672
3672
  return i;
3673
3673
  }
3674
- var Ts = typeof global == "object" && global && global.Object === Object && global, du = typeof self == "object" && self && self.Object === Object && self, st = Ts || du || Function("return this")(), gt = st.Symbol, xs = Object.prototype, pu = xs.hasOwnProperty, Au = xs.toString, An = gt ? gt.toStringTag : void 0;
3674
+ var Ts = typeof global == "object" && global && global.Object === Object && global, du = typeof self == "object" && self && self.Object === Object && self, st = Ts || du || Function("return this")(), gt = st.Symbol, xs = Object.prototype, pu = xs.hasOwnProperty, Au = xs.toString, gn = gt ? gt.toStringTag : void 0;
3675
3675
  function gu(e) {
3676
- var t = pu.call(e, An), n = e[An];
3676
+ var t = pu.call(e, gn), n = e[gn];
3677
3677
  try {
3678
- e[An] = void 0;
3678
+ e[gn] = void 0;
3679
3679
  var i = !0;
3680
3680
  } catch {
3681
3681
  }
3682
3682
  var s = Au.call(e);
3683
- return i && (t ? e[An] = n : delete e[An]), s;
3683
+ return i && (t ? e[gn] = n : delete e[gn]), s;
3684
3684
  }
3685
3685
  var mu = Object.prototype, fu = mu.toString;
3686
3686
  function hu(e) {
@@ -3725,9 +3725,9 @@ function Hi(e) {
3725
3725
  return e(t);
3726
3726
  };
3727
3727
  }
3728
- var Ps = typeof exports == "object" && exports && !exports.nodeType && exports, hn = Ps && typeof module == "object" && module && !module.nodeType && module, ed = hn && hn.exports === Ps, ui = ed && Ts.process, sn = function() {
3728
+ var Ps = typeof exports == "object" && exports && !exports.nodeType && exports, vn = Ps && typeof module == "object" && module && !module.nodeType && module, ed = vn && vn.exports === Ps, ui = ed && Ts.process, sn = function() {
3729
3729
  try {
3730
- var e = hn && hn.require && hn.require("util").types;
3730
+ var e = vn && vn.require && vn.require("util").types;
3731
3731
  return e || ui && ui.binding && ui.binding("util");
3732
3732
  } catch {
3733
3733
  }
@@ -3775,11 +3775,11 @@ function Se(e) {
3775
3775
  function Gn(e) {
3776
3776
  return e != null && ji(e.length) && !Se(e);
3777
3777
  }
3778
- function ln(e) {
3778
+ function cn(e) {
3779
3779
  return Gn(e) ? Ys(e) : od(e);
3780
3780
  }
3781
3781
  function pd(e, t) {
3782
- return e && cu(e, t, ln);
3782
+ return e && cu(e, t, cn);
3783
3783
  }
3784
3784
  function Ad(e, t) {
3785
3785
  return function(n, i) {
@@ -3851,9 +3851,9 @@ function Jt(e, t) {
3851
3851
  var n = Sd(e, t);
3852
3852
  return kd(n) ? n : void 0;
3853
3853
  }
3854
- var wn = Jt(Object, "create");
3854
+ var Cn = Jt(Object, "create");
3855
3855
  function Td() {
3856
- this.__data__ = wn ? wn(null) : {}, this.size = 0;
3856
+ this.__data__ = Cn ? Cn(null) : {}, this.size = 0;
3857
3857
  }
3858
3858
  function xd(e) {
3859
3859
  var t = this.has(e) && delete this.__data__[e];
@@ -3862,7 +3862,7 @@ function xd(e) {
3862
3862
  var Gd = "__lodash_hash_undefined__", Ud = Object.prototype, Ld = Ud.hasOwnProperty;
3863
3863
  function Pd(e) {
3864
3864
  var t = this.__data__;
3865
- if (wn) {
3865
+ if (Cn) {
3866
3866
  var n = t[e];
3867
3867
  return n === Gd ? void 0 : n;
3868
3868
  }
@@ -3871,12 +3871,12 @@ function Pd(e) {
3871
3871
  var Dd = Object.prototype, Yd = Dd.hasOwnProperty;
3872
3872
  function jd(e) {
3873
3873
  var t = this.__data__;
3874
- return wn ? t[e] !== void 0 : Yd.call(t, e);
3874
+ return Cn ? t[e] !== void 0 : Yd.call(t, e);
3875
3875
  }
3876
3876
  var Hd = "__lodash_hash_undefined__";
3877
3877
  function Vd(e, t) {
3878
3878
  var n = this.__data__;
3879
- return this.size += this.has(e) ? 0 : 1, n[e] = wn && t === void 0 ? Hd : t, this;
3879
+ return this.size += this.has(e) ? 0 : 1, n[e] = Cn && t === void 0 ? Hd : t, this;
3880
3880
  }
3881
3881
  function Ht(e) {
3882
3882
  var t = -1, n = e == null ? 0 : e.length;
@@ -3933,11 +3933,11 @@ vt.prototype.delete = zd;
3933
3933
  vt.prototype.get = Xd;
3934
3934
  vt.prototype.has = qd;
3935
3935
  vt.prototype.set = Qd;
3936
- var Cn = Jt(st, "Map");
3936
+ var Bn = Jt(st, "Map");
3937
3937
  function Jd() {
3938
3938
  this.size = 0, this.__data__ = {
3939
3939
  hash: new Ht(),
3940
- map: new (Cn || vt)(),
3940
+ map: new (Bn || vt)(),
3941
3941
  string: new Ht()
3942
3942
  };
3943
3943
  }
@@ -4063,7 +4063,7 @@ function mp(e, t) {
4063
4063
  var n = this.__data__;
4064
4064
  if (n instanceof vt) {
4065
4065
  var i = n.__data__;
4066
- if (!Cn || i.length < gp - 1)
4066
+ if (!Bn || i.length < gp - 1)
4067
4067
  return i.push([e, t]), this.size = ++n.size, this;
4068
4068
  n = this.__data__ = new yt(i);
4069
4069
  }
@@ -4108,7 +4108,7 @@ function oi(e, t, n, i) {
4108
4108
  return n;
4109
4109
  }
4110
4110
  function vp(e, t) {
4111
- return e && oi(t, ln(t), e);
4111
+ return e && oi(t, cn(t), e);
4112
4112
  }
4113
4113
  function yp(e) {
4114
4114
  var t = [];
@@ -4181,13 +4181,13 @@ function Ws(e, t, n) {
4181
4181
  return it(e) ? i : Qs(i, n(e));
4182
4182
  }
4183
4183
  function Ei(e) {
4184
- return Ws(e, ln, Ki);
4184
+ return Ws(e, cn, Ki);
4185
4185
  }
4186
4186
  function Gp(e) {
4187
4187
  return Ws(e, li, Zs);
4188
4188
  }
4189
- var wi = Jt(st, "DataView"), Ci = Jt(st, "Promise"), an = Jt(st, "Set"), Bi = Jt(st, "WeakMap"), Ma = "[object Map]", Up = "[object Object]", Ra = "[object Promise]", ka = "[object Set]", Sa = "[object WeakMap]", Ta = "[object DataView]", Lp = Qt(wi), Pp = Qt(Cn), Dp = Qt(Ci), Yp = Qt(an), jp = Qt(Bi), lt = Tt;
4190
- (wi && lt(new wi(new ArrayBuffer(1))) != Ta || Cn && lt(new Cn()) != Ma || Ci && lt(Ci.resolve()) != Ra || an && lt(new an()) != ka || Bi && lt(new Bi()) != Sa) && (lt = function(e) {
4189
+ var wi = Jt(st, "DataView"), Ci = Jt(st, "Promise"), an = Jt(st, "Set"), Bi = Jt(st, "WeakMap"), Ma = "[object Map]", Up = "[object Object]", Ra = "[object Promise]", ka = "[object Set]", Sa = "[object WeakMap]", Ta = "[object DataView]", Lp = Qt(wi), Pp = Qt(Bn), Dp = Qt(Ci), Yp = Qt(an), jp = Qt(Bi), lt = Tt;
4190
+ (wi && lt(new wi(new ArrayBuffer(1))) != Ta || Bn && lt(new Bn()) != Ma || Ci && lt(Ci.resolve()) != Ra || an && lt(new an()) != ka || Bi && lt(new Bi()) != Sa) && (lt = function(e) {
4191
4191
  var t = Tt(e), n = t == Up ? e.constructor : void 0, i = n ? Qt(n) : "";
4192
4192
  if (i)
4193
4193
  switch (i) {
@@ -4292,7 +4292,7 @@ function bA(e) {
4292
4292
  var Pa = sn && sn.isSet, EA = Pa ? Hi(Pa) : bA, wA = 1, CA = 2, BA = 4, _s = "[object Arguments]", OA = "[object Array]", IA = "[object Boolean]", MA = "[object Date]", RA = "[object Error]", $s = "[object Function]", kA = "[object GeneratorFunction]", SA = "[object Map]", TA = "[object Number]", er = "[object Object]", xA = "[object RegExp]", GA = "[object Set]", UA = "[object String]", LA = "[object Symbol]", PA = "[object WeakMap]", DA = "[object ArrayBuffer]", YA = "[object DataView]", jA = "[object Float32Array]", HA = "[object Float64Array]", VA = "[object Int8Array]", NA = "[object Int16Array]", FA = "[object Int32Array]", KA = "[object Uint8Array]", zA = "[object Uint8ClampedArray]", XA = "[object Uint16Array]", qA = "[object Uint32Array]", Ie = {};
4293
4293
  Ie[_s] = Ie[OA] = Ie[DA] = Ie[YA] = Ie[IA] = Ie[MA] = Ie[jA] = Ie[HA] = Ie[VA] = Ie[NA] = Ie[FA] = Ie[SA] = Ie[TA] = Ie[er] = Ie[xA] = Ie[GA] = Ie[UA] = Ie[LA] = Ie[KA] = Ie[zA] = Ie[XA] = Ie[qA] = !0;
4294
4294
  Ie[RA] = Ie[$s] = Ie[PA] = !1;
4295
- function vn(e, t, n, i, s, a) {
4295
+ function yn(e, t, n, i, s, a) {
4296
4296
  var r, o = t & wA, c = t & CA, d = t & BA;
4297
4297
  if (r !== void 0)
4298
4298
  return r;
@@ -4320,18 +4320,18 @@ function vn(e, t, n, i, s, a) {
4320
4320
  if (I)
4321
4321
  return I;
4322
4322
  a.set(e, r), EA(e) ? e.forEach(function(T) {
4323
- r.add(vn(T, t, n, T, e, a));
4323
+ r.add(yn(T, t, n, T, e, a));
4324
4324
  }) : vA(e) && e.forEach(function(T, U) {
4325
- r.set(U, vn(T, t, n, U, e, a));
4325
+ r.set(U, yn(T, t, n, U, e, a));
4326
4326
  });
4327
- var R = d ? c ? Gp : Ei : c ? li : ln, y = u ? void 0 : R(e);
4327
+ var R = d ? c ? Gp : Ei : c ? li : cn, y = u ? void 0 : R(e);
4328
4328
  return Ss(y || e, function(T, U) {
4329
- y && (U = T, T = e[U]), zs(r, U, vn(T, t, n, U, e, a));
4329
+ y && (U = T, T = e[U]), zs(r, U, yn(T, t, n, U, e, a));
4330
4330
  }), r;
4331
4331
  }
4332
4332
  var QA = 1, JA = 4;
4333
4333
  function ht(e) {
4334
- return vn(e, QA | JA);
4334
+ return yn(e, QA | JA);
4335
4335
  }
4336
4336
  const Xi = (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, ""), Da = (e = "") => e.toString().trim().replace(/ /g, "-").replace(/-{2,}/g, "-").replace(/^-+|-+$/g, "").replace(/([^a-zA-Z0-9-_/./:]+)/g, "");
4337
4337
  var ZA = "[object String]";
@@ -4402,7 +4402,7 @@ function Oi(e) {
4402
4402
  return n || ig.test(e) ? ag(e.slice(2), n ? 2 : 8) : tg.test(e) ? Ya : +e;
4403
4403
  }
4404
4404
  var sg = "Expected a function", rg = Math.max, og = Math.min;
4405
- function Bn(e, t, n) {
4405
+ function On(e, t, n) {
4406
4406
  var i, s, a, r, o, c, d = 0, u = !1, A = !1, g = !0;
4407
4407
  if (typeof e != "function")
4408
4408
  throw new TypeError(sg);
@@ -4456,13 +4456,13 @@ function cg(e) {
4456
4456
  function ug(e) {
4457
4457
  return this.__data__.has(e);
4458
4458
  }
4459
- function On(e) {
4459
+ function In(e) {
4460
4460
  var t = -1, n = e == null ? 0 : e.length;
4461
4461
  for (this.__data__ = new yt(); ++t < n; )
4462
4462
  this.add(e[t]);
4463
4463
  }
4464
- On.prototype.add = On.prototype.push = cg;
4465
- On.prototype.has = ug;
4464
+ In.prototype.add = In.prototype.push = cg;
4465
+ In.prototype.has = ug;
4466
4466
  function nr(e, t, n, i) {
4467
4467
  for (var s = e.length, a = n + -1; ++a < s; )
4468
4468
  if (t(e[a], a, e))
@@ -4505,7 +4505,7 @@ function yg(e, t, n) {
4505
4505
  var d = hg(e);
4506
4506
  if (d)
4507
4507
  return qi(d);
4508
- r = !1, s = ir, c = new On();
4508
+ r = !1, s = ir, c = new In();
4509
4509
  } else
4510
4510
  c = o;
4511
4511
  e:
@@ -4621,7 +4621,7 @@ var jg = "[object Number]";
4621
4621
  function Ii(e) {
4622
4622
  return typeof e == "number" || mt(e) && Tt(e) == jg;
4623
4623
  }
4624
- var lr = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Mt = "\\d\\d?", Ot = "\\d\\d", Hg = "\\d{3}", Vg = "\\d{4}", yn = "[^\\s]+", cr = /\[([^]*?)\]/gm;
4624
+ var lr = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g, Mt = "\\d\\d?", Ot = "\\d\\d", Hg = "\\d{3}", Vg = "\\d{4}", bn = "[^\\s]+", cr = /\[([^]*?)\]/gm;
4625
4625
  function ur(e, t) {
4626
4626
  for (var n = [], i = 0, s = e.length; i < s; i++)
4627
4627
  n.push(e[i].substr(0, t));
@@ -4772,9 +4772,9 @@ var dr = [
4772
4772
  }
4773
4773
  }, Fa = function(e) {
4774
4774
  return +e - 1;
4775
- }, Ka = [null, Mt], za = [null, yn], Xa = [
4775
+ }, Ka = [null, Mt], za = [null, bn], Xa = [
4776
4776
  "isPm",
4777
- yn,
4777
+ bn,
4778
4778
  function(e, t) {
4779
4779
  var n = e.toLowerCase();
4780
4780
  return n === t.amPm[0] ? 0 : n === t.amPm[1] ? 1 : null;
@@ -4793,7 +4793,7 @@ var dr = [
4793
4793
  ], Xg = {
4794
4794
  D: ["day", Mt],
4795
4795
  DD: ["day", Ot],
4796
- Do: ["day", Mt + yn, function(e) {
4796
+ Do: ["day", Mt + bn, function(e) {
4797
4797
  return parseInt(e, 10);
4798
4798
  }],
4799
4799
  M: ["month", Mt, Fa],
@@ -4826,8 +4826,8 @@ var dr = [
4826
4826
  dd: Ka,
4827
4827
  ddd: za,
4828
4828
  dddd: za,
4829
- MMM: ["month", yn, Va("monthNamesShort")],
4830
- MMMM: ["month", yn, Va("monthNames")],
4829
+ MMM: ["month", bn, Va("monthNamesShort")],
4830
+ MMMM: ["month", bn, Va("monthNames")],
4831
4831
  a: Xa,
4832
4832
  A: Xa,
4833
4833
  ZZ: qa,
@@ -5135,7 +5135,7 @@ const ut = {
5135
5135
  return t ? Promise.all(n).then(i) : i(n);
5136
5136
  },
5137
5137
  debouncedValidate() {
5138
- Se(this.debouncedValidateFunc) || (this.debouncedValidateFunc = Bn(
5138
+ Se(this.debouncedValidateFunc) || (this.debouncedValidateFunc = On(
5139
5139
  this.validate.bind(this),
5140
5140
  Ee(this.schema, "validateDebounceTime", Ee(this.formOptions, "validateDebounceTime", 500))
5141
5141
  )), this.debouncedValidateFunc();
@@ -5251,11 +5251,15 @@ const em = /* @__PURE__ */ Re(Zg, [["render", $g], ["__scopeId", "data-v-6f4089b
5251
5251
  schema: {
5252
5252
  type: Object,
5253
5253
  default: () => null
5254
+ },
5255
+ index: {
5256
+ type: Number,
5257
+ default: void 0
5254
5258
  }
5255
5259
  },
5256
5260
  emits: ["remove-item"],
5257
5261
  setup(e) {
5258
- return (t, n) => {
5262
+ return rn("vfg-array-item-index", e.index), (t, n) => {
5259
5263
  const i = z("KCard"), s = z("KButton");
5260
5264
  return p(), w("div", tm, [
5261
5265
  G(i, { class: "card" }, {
@@ -5277,7 +5281,7 @@ const em = /* @__PURE__ */ Re(Zg, [["render", $g], ["__scopeId", "data-v-6f4089b
5277
5281
  ]);
5278
5282
  };
5279
5283
  }
5280
- }), gr = /* @__PURE__ */ Re(nm, [["__scopeId", "data-v-7fbbde2b"]]), im = { class: "array-item-wrapper" }, am = { class: "array-item" }, sm = { class: "array-item-after" }, rm = /* @__PURE__ */ Ce({
5284
+ }), gr = /* @__PURE__ */ Re(nm, [["__scopeId", "data-v-96055692"]]), im = { class: "array-item-wrapper" }, am = { class: "array-item" }, sm = { class: "array-item-after" }, rm = /* @__PURE__ */ Ce({
5281
5285
  __name: "FieldArrayItem",
5282
5286
  props: {
5283
5287
  model: {
@@ -5397,7 +5401,7 @@ const gm = {
5397
5401
  },
5398
5402
  methods: {
5399
5403
  onQueryChange(e) {
5400
- e.trim().length === 0 && (this.items = [], this.message = "Type something to search"), typeof this.performSearch != "function" && (this.performSearch = Bn(
5404
+ e.trim().length === 0 && (this.items = [], this.message = "Type something to search"), typeof this.performSearch != "function" && (this.performSearch = On(
5401
5405
  this.search,
5402
5406
  500
5403
5407
  )), this.performSearch(e);
@@ -5548,7 +5552,7 @@ function bm(e) {
5548
5552
  };
5549
5553
  return F ? Promise.all(B).then(S) : S(B);
5550
5554
  }, r = () => {
5551
- Se(n.value) ? n.value() : n.value = Bn(
5555
+ Se(n.value) ? n.value() : n.value = On(
5552
5556
  a,
5553
5557
  Ee(e.schema, "validateDebounceTime", Ee(e.formOptions, "validateDebounceTime", 500))
5554
5558
  );
@@ -5587,7 +5591,7 @@ function bm(e) {
5587
5591
  updateModelValue: o
5588
5592
  };
5589
5593
  }
5590
- const cn = {
5594
+ const un = {
5591
5595
  useAbstractFields: bm
5592
5596
  }, Em = { class: "form-field-wrapper" }, wm = /* @__PURE__ */ Ce({
5593
5597
  __name: "FieldInput",
@@ -5629,7 +5633,7 @@ const cn = {
5629
5633
  },
5630
5634
  emits: ["modelUpdated"],
5631
5635
  setup(e, { expose: t, emit: n }) {
5632
- const i = e, s = n, a = rn(i), r = ds(at, void 0), { updateModelValue: o, getFieldID: c, clearValidationErrors: d, value: u } = cn.useAbstractFields({
5636
+ const i = e, s = n, a = on(i), r = ds(at, void 0), { updateModelValue: o, getFieldID: c, clearValidationErrors: d, value: u } = un.useAbstractFields({
5633
5637
  model: a.model,
5634
5638
  schema: i.schema,
5635
5639
  formOptions: i.formOptions,
@@ -5674,7 +5678,7 @@ const cn = {
5674
5678
  switch (A.value) {
5675
5679
  case "number":
5676
5680
  case "range":
5677
- U.value = Bn(
5681
+ U.value = On(
5678
5682
  (B, S) => {
5679
5683
  R(B, S);
5680
5684
  },
@@ -5688,7 +5692,7 @@ const cn = {
5688
5692
  case "date":
5689
5693
  case "datetime":
5690
5694
  case "datetime-local":
5691
- U.value = Bn(
5695
+ U.value = On(
5692
5696
  (B, S) => {
5693
5697
  I(B, S);
5694
5698
  },
@@ -5700,7 +5704,7 @@ const cn = {
5700
5704
  );
5701
5705
  break;
5702
5706
  }
5703
- }), on(() => {
5707
+ }), ln(() => {
5704
5708
  A.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : A.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : A.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
5705
5709
  }), (B, S) => {
5706
5710
  const h = z("KInput");
@@ -6113,7 +6117,7 @@ const wr = /* @__PURE__ */ Re(Nm, [["render", nf], ["__scopeId", "data-v-3a00058
6113
6117
  },
6114
6118
  emits: ["modelUpdated"],
6115
6119
  setup(e, { expose: t, emit: n }) {
6116
- const i = e, s = n, a = rn(i), { updateModelValue: r, value: o, clearValidationErrors: c } = cn.useAbstractFields({
6120
+ const i = e, s = n, a = on(i), { updateModelValue: r, value: o, clearValidationErrors: c } = un.useAbstractFields({
6117
6121
  model: a.model,
6118
6122
  schema: i.schema,
6119
6123
  formOptions: i.formOptions,
@@ -6159,7 +6163,7 @@ function Br(e, t, n, i, s, a) {
6159
6163
  var d = a.get(e), u = a.get(t);
6160
6164
  if (d && u)
6161
6165
  return d == t && u == e;
6162
- var A = -1, g = !0, I = n & lf ? new On() : void 0;
6166
+ var A = -1, g = !0, I = n & lf ? new In() : void 0;
6163
6167
  for (a.set(e, t), a.set(t, e); ++A < o; ) {
6164
6168
  var R = e[A], y = t[A];
6165
6169
  if (i)
@@ -6311,7 +6315,7 @@ function Or(e) {
6311
6315
  return e === e && !qe(e);
6312
6316
  }
6313
6317
  function Uf(e) {
6314
- for (var t = ln(e), n = t.length; n--; ) {
6318
+ for (var t = cn(e), n = t.length; n--; ) {
6315
6319
  var i = t[n], s = e[i];
6316
6320
  t[n] = [i, s, Or(s)];
6317
6321
  }
@@ -6372,7 +6376,7 @@ function zf(e) {
6372
6376
  var s = Object(t);
6373
6377
  if (!Gn(t)) {
6374
6378
  var a = Mr(n);
6375
- t = ln(t), n = function(o) {
6379
+ t = cn(t), n = function(o) {
6376
6380
  return a(s[o], o, s);
6377
6381
  };
6378
6382
  }
@@ -6555,6 +6559,7 @@ function oh(e, t, n, i, s, a) {
6555
6559
  }, [
6556
6560
  e.schema.items && e.schema.itemContainerComponent ? (p(), j(Ve(e.schema.itemContainerComponent), {
6557
6561
  key: 0,
6562
+ index: u,
6558
6563
  model: d,
6559
6564
  schema: a.generateSchema(e.value, e.schema.items, u),
6560
6565
  onRemoveItem: (A) => a.removeElement(u)
@@ -6568,7 +6573,7 @@ function oh(e, t, n, i, s, a) {
6568
6573
  }, null, 40, ["form-options", "model", "schema", "onModelUpdated"]))
6569
6574
  ]),
6570
6575
  _: 2
6571
- }, 1064, ["model", "schema", "onRemoveItem"])) : e.schema.items ? (p(), w("span", ah, [
6576
+ }, 1064, ["index", "model", "schema", "onRemoveItem"])) : e.schema.items ? (p(), w("span", ah, [
6572
6577
  (p(), j(Ve(a.getFieldType(e.schema.items)), {
6573
6578
  "form-options": e.formOptions,
6574
6579
  model: d,
@@ -6660,7 +6665,7 @@ function oh(e, t, n, i, s, a) {
6660
6665
  }, 8, ["class", "data-testid", "onClick"])
6661
6666
  ], 10, ih)) : ne("", !0);
6662
6667
  }
6663
- const lh = /* @__PURE__ */ Re(nh, [["render", oh], ["__scopeId", "data-v-fb8e1bc9"]]), ch = { class: "form-field-wrapper field-checkbox" }, uh = /* @__PURE__ */ Ce({
6668
+ const lh = /* @__PURE__ */ Re(nh, [["render", oh], ["__scopeId", "data-v-058198ca"]]), ch = { class: "form-field-wrapper field-checkbox" }, uh = /* @__PURE__ */ Ce({
6664
6669
  __name: "FieldCheckbox",
6665
6670
  props: {
6666
6671
  disabled: {
@@ -6700,7 +6705,7 @@ const lh = /* @__PURE__ */ Re(nh, [["render", oh], ["__scopeId", "data-v-fb8e1bc
6700
6705
  },
6701
6706
  emits: ["modelUpdated"],
6702
6707
  setup(e, { expose: t, emit: n }) {
6703
- const i = e, s = n, a = rn(i), { getFieldID: r, value: o, clearValidationErrors: c } = cn.useAbstractFields({
6708
+ const i = e, s = n, a = on(i), { getFieldID: r, value: o, clearValidationErrors: c } = un.useAbstractFields({
6704
6709
  model: a.model,
6705
6710
  schema: i.schema,
6706
6711
  formOptions: i.formOptions,
@@ -6732,7 +6737,7 @@ const lh = /* @__PURE__ */ Re(nh, [["render", oh], ["__scopeId", "data-v-fb8e1bc
6732
6737
  }), dh = /* @__PURE__ */ Re(uh, [["__scopeId", "data-v-6b4ee1cd"]]);
6733
6738
  var ph = 4;
6734
6739
  function $a(e) {
6735
- return vn(e, ph);
6740
+ return yn(e, ph);
6736
6741
  }
6737
6742
  const Ah = { class: "wrapper" }, gh = ["disabled"], mh = ["id", "checked", "disabled", "onChange", "name"], fh = ["disabled"], hh = { class: "info" }, vh = /* @__PURE__ */ v("div", { class: "arrow" }, null, -1), yh = { class: "dropList" }, bh = ["id", "checked", "disabled", "onChange", "name"];
6738
6743
  function Eh(e, t, n, i, s, a) {
@@ -7003,7 +7008,7 @@ const Th = /* @__PURE__ */ Re(Bh, [["render", Sh], ["__scopeId", "data-v-70998d5
7003
7008
  }
7004
7009
  },
7005
7010
  setup(e) {
7006
- const t = e, n = rn(t), { getFieldID: i, value: s } = cn.useAbstractFields({
7011
+ const t = e, n = on(t), { getFieldID: i, value: s } = un.useAbstractFields({
7007
7012
  model: n.model,
7008
7013
  schema: t.schema,
7009
7014
  formOptions: t.formOptions
@@ -7283,7 +7288,7 @@ const Xh = /* @__PURE__ */ Re(Dh, [["render", zh], ["__scopeId", "data-v-0aaaf59
7283
7288
  },
7284
7289
  emits: ["modelUpdated"],
7285
7290
  setup(e, { expose: t, emit: n }) {
7286
- const i = e, s = n, { t: a } = Rn("en-us", ci), r = (g) => g != null && i.schema.valueOn ? g === i.schema.valueOn : g, o = (g) => g != null && i.schema.valueOn ? g ? i.schema.valueOn : i.schema.valueOff : g, c = rn(i), { getFieldID: d, value: u, clearValidationErrors: A } = cn.useAbstractFields({
7291
+ const i = e, s = n, { t: a } = Rn("en-us", ci), r = (g) => g != null && i.schema.valueOn ? g === i.schema.valueOn : g, o = (g) => g != null && i.schema.valueOn ? g ? i.schema.valueOn : i.schema.valueOff : g, c = on(i), { getFieldID: d, value: u, clearValidationErrors: A } = un.useAbstractFields({
7287
7292
  model: c.model,
7288
7293
  schema: i.schema,
7289
7294
  formOptions: i.formOptions,
@@ -7351,7 +7356,7 @@ const Xh = /* @__PURE__ */ Re(Dh, [["render", zh], ["__scopeId", "data-v-0aaaf59
7351
7356
  },
7352
7357
  emits: ["modelUpdated"],
7353
7358
  setup(e, { expose: t, emit: n }) {
7354
- const i = e, s = n, a = rn(i), r = ds(at, void 0), { updateModelValue: o, getFieldID: c, clearValidationErrors: d, value: u } = cn.useAbstractFields({
7359
+ const i = e, s = n, a = on(i), r = ds(at, void 0), { updateModelValue: o, getFieldID: c, clearValidationErrors: d, value: u } = un.useAbstractFields({
7355
7360
  model: a.model,
7356
7361
  schema: i.schema,
7357
7362
  formOptions: i.formOptions,
@@ -7417,6 +7422,11 @@ const Xh = /* @__PURE__ */ Re(Dh, [["render", zh], ["__scopeId", "data-v-0aaaf59
7417
7422
  name: "FormGroup",
7418
7423
  components: tv,
7419
7424
  mixins: [tr],
7425
+ inject: {
7426
+ "vfg-array-item-index": {
7427
+ default: void 0
7428
+ }
7429
+ },
7420
7430
  props: {
7421
7431
  vfg: {
7422
7432
  type: Object,
@@ -7449,6 +7459,24 @@ const Xh = /* @__PURE__ */ Re(Dh, [["render", zh], ["__scopeId", "data-v-0aaaf59
7449
7459
  child: Q()
7450
7460
  };
7451
7461
  },
7462
+ computed: {
7463
+ schema() {
7464
+ var e;
7465
+ if (!((e = this.field) != null && e.schema) || !Array.isArray(this.field.schema.fields))
7466
+ return this.field;
7467
+ const t = this["vfg-array-item-index"];
7468
+ return typeof t != "number" || Number.isNaN(t) ? this.field : {
7469
+ ...this.field,
7470
+ schema: {
7471
+ ...this.field.schema,
7472
+ fields: this.field.schema.fields.map((n) => ({
7473
+ ...n,
7474
+ ...n.id ? { id: `${n.id}-${t}` } : void 0
7475
+ }))
7476
+ }
7477
+ };
7478
+ }
7479
+ },
7452
7480
  methods: {
7453
7481
  // Should field type have a label?
7454
7482
  fieldTypeHasLabel(e) {
@@ -7510,7 +7538,7 @@ const Xh = /* @__PURE__ */ Re(Dh, [["render", zh], ["__scopeId", "data-v-0aaaf59
7510
7538
  return e ? e.replace(/^[cC]onfig\./, "") : "";
7511
7539
  }
7512
7540
  }
7513
- }, iv = (e) => (Kt("data-v-3cb920d4"), e = e(), zt(), e), av = ["innerHTML"], sv = { class: "icon-wrapper" }, rv = ["innerHTML"], ov = {
7541
+ }, iv = (e) => (Kt("data-v-49edac88"), e = e(), zt(), e), av = ["innerHTML"], sv = { class: "icon-wrapper" }, rv = ["innerHTML"], ov = {
7514
7542
  key: 0,
7515
7543
  class: "link-wrapper"
7516
7544
  }, lv = /* @__PURE__ */ iv(() => /* @__PURE__ */ v("span", { class: "section-header" }, "More info", -1)), cv = { class: "field-wrap" }, uv = {
@@ -7573,7 +7601,7 @@ function mv(e, t, n, i, s, a) {
7573
7601
  "form-options": n.options,
7574
7602
  hint: n.field.hint && a.getFieldType(n.field) === "field-input" ? a.fieldHint(n.field) : void 0,
7575
7603
  model: n.model,
7576
- schema: n.field,
7604
+ schema: a.schema,
7577
7605
  vfg: n.vfg,
7578
7606
  onModelUpdated: a.onModelUpdated,
7579
7607
  onValidated: a.onFieldValidated
@@ -7601,7 +7629,7 @@ function mv(e, t, n, i, s, a) {
7601
7629
  ])) : ne("", !0)
7602
7630
  ], 2);
7603
7631
  }
7604
- const fv = /* @__PURE__ */ Re(nv, [["render", mv], ["__scopeId", "data-v-3cb920d4"]]), hv = {
7632
+ const fv = /* @__PURE__ */ Re(nv, [["render", mv], ["__scopeId", "data-v-49edac88"]]), hv = {
7605
7633
  name: "FormGenerator",
7606
7634
  components: { formGroup: fv },
7607
7635
  mixins: [tr],
@@ -8089,7 +8117,7 @@ const _e = /* @__PURE__ */ Re(hv, [["render", bv]]), es = /* @__PURE__ */ new Se
8089
8117
  this.formModel["config-auth_methods"] = this.getAuthMethodsValue(t, e), this.onModelUpdated();
8090
8118
  }
8091
8119
  }
8092
- }, un = (e) => (Kt("data-v-bb72c68e"), e = e(), zt(), e), wv = { class: "general-settings" }, Cv = { class: "link-wrapper" }, Bv = /* @__PURE__ */ un(() => /* @__PURE__ */ v("span", { class: "section-header" }, "Common Configuration Settings", -1)), Ov = /* @__PURE__ */ un(() => /* @__PURE__ */ v("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)), Iv = { class: "auth-method-container" }, Mv = { class: "general-settings" }, Rv = { class: "link-wrapper" }, kv = /* @__PURE__ */ un(() => /* @__PURE__ */ v("span", { class: "section-header" }, "Authorization Configuration Settings", -1)), Sv = /* @__PURE__ */ un(() => /* @__PURE__ */ v("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)), Tv = { class: "general-settings" }, xv = { class: "link-wrapper" }, Gv = /* @__PURE__ */ un(() => /* @__PURE__ */ v("span", { class: "section-header" }, "Advanced Configuration Settings", -1)), Uv = /* @__PURE__ */ un(() => /* @__PURE__ */ v("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1));
8120
+ }, dn = (e) => (Kt("data-v-bb72c68e"), e = e(), zt(), e), wv = { class: "general-settings" }, Cv = { class: "link-wrapper" }, Bv = /* @__PURE__ */ dn(() => /* @__PURE__ */ v("span", { class: "section-header" }, "Common Configuration Settings", -1)), Ov = /* @__PURE__ */ dn(() => /* @__PURE__ */ v("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)), Iv = { class: "auth-method-container" }, Mv = { class: "general-settings" }, Rv = { class: "link-wrapper" }, kv = /* @__PURE__ */ dn(() => /* @__PURE__ */ v("span", { class: "section-header" }, "Authorization Configuration Settings", -1)), Sv = /* @__PURE__ */ dn(() => /* @__PURE__ */ v("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)), Tv = { class: "general-settings" }, xv = { class: "link-wrapper" }, Gv = /* @__PURE__ */ dn(() => /* @__PURE__ */ v("span", { class: "section-header" }, "Advanced Configuration Settings", -1)), Uv = /* @__PURE__ */ dn(() => /* @__PURE__ */ v("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1));
8093
8121
  function Lv(e, t, n, i, s, a) {
8094
8122
  const r = z("VueFormGenerator"), o = z("KExternalLink"), c = z("KLabel"), d = z("KCheckbox"), u = z("KInputSwitch"), A = z("KTabs");
8095
8123
  return p(), w("div", null, [
@@ -8227,7 +8255,7 @@ const Pv = /* @__PURE__ */ Re(Ev, [["render", Lv], ["__scopeId", "data-v-bb72c68
8227
8255
  },
8228
8256
  setup(e) {
8229
8257
  var t;
8230
- In(at, (t = Jn()) == null ? void 0 : t[kt]);
8258
+ rn(at, (t = Jn()) == null ? void 0 : t[kt]);
8231
8259
  const { t: n, te: i } = Rn("en-us", ci), s = e, a = X(() => s.formModel.id && s.isEditing || !s.isEditing), r = X(() => {
8232
8260
  const o = s.formSchema;
8233
8261
  return o.fields.map((c) => {
@@ -8270,7 +8298,7 @@ const Pv = /* @__PURE__ */ Re(Ev, [["render", Lv], ["__scopeId", "data-v-bb72c68
8270
8298
  },
8271
8299
  setup(e) {
8272
8300
  var t;
8273
- In(at, (t = Jn()) == null ? void 0 : t[kt]);
8301
+ rn(at, (t = Jn()) == null ? void 0 : t[kt]);
8274
8302
  const { t: n, te: i } = Rn("en-us", ci), s = e, a = X(() => s.formModel.id && s.isEditing || !s.isEditing), r = X(() => {
8275
8303
  const o = s.formSchema;
8276
8304
  return o.fields.map((c) => {
@@ -8407,7 +8435,7 @@ const Pv = /* @__PURE__ */ Re(Ev, [["render", Lv], ["__scopeId", "data-v-bb72c68
8407
8435
  },
8408
8436
  setup(e) {
8409
8437
  var t;
8410
- In(at, (t = Jn()) == null ? void 0 : t[kt]);
8438
+ rn(at, (t = Jn()) == null ? void 0 : t[kt]);
8411
8439
  const n = e, i = Q("zeroSsl"), s = Q("shm"), a = X(() => {
8412
8440
  var f;
8413
8441
  const C = {};
@@ -8619,7 +8647,7 @@ const Pv = /* @__PURE__ */ Re(Ev, [["render", Lv], ["__scopeId", "data-v-bb72c68
8619
8647
  },
8620
8648
  setup(e) {
8621
8649
  var t;
8622
- In(at, (t = Jn()) == null ? void 0 : t[kt]);
8650
+ rn(at, (t = Jn()) == null ? void 0 : t[kt]);
8623
8651
  const n = {
8624
8652
  fixed: [
8625
8653
  {
@@ -8753,12 +8781,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
8753
8781
  }
8754
8782
  ), S = (P, H) => {
8755
8783
  if (H === g.value) {
8756
- r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"), En(() => {
8784
+ r.onModelUpdated([], "config-limit"), r.onModelUpdated([], "config-window_size"), wn(() => {
8757
8785
  g.value = void 0;
8758
8786
  });
8759
8787
  return;
8760
8788
  }
8761
- r.onModelUpdated([P.config.limit], "config-limit"), r.onModelUpdated([P.config.window_size], "config-window_size"), En(() => {
8789
+ r.onModelUpdated([P.config.limit], "config-limit"), r.onModelUpdated([P.config.window_size], "config-window_size"), wn(() => {
8762
8790
  g.value = H;
8763
8791
  });
8764
8792
  }, h = (P) => {
@@ -9229,7 +9257,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9229
9257
  placeholder: "Select valid protocols for the plugin",
9230
9258
  styleClasses: "plugin-protocols-select"
9231
9259
  }
9232
- }, bn = {
9260
+ }, En = {
9233
9261
  type: "array",
9234
9262
  valueType: "string",
9235
9263
  valueArrayType: "array",
@@ -9952,11 +9980,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9952
9980
  fields: [{
9953
9981
  schema: {
9954
9982
  fields: [{
9955
- ...bn,
9983
+ ...En,
9956
9984
  model: h.model,
9957
9985
  valueArrayType: f === "integer" ? "number" : f || "string",
9958
9986
  inputAttributes: {
9959
- ...bn.inputAttributes,
9987
+ ...En.inputAttributes,
9960
9988
  type: f === "integer" ? "number" : "text",
9961
9989
  inputMode: f === "integer" ? "numeric" : "text"
9962
9990
  }
@@ -10316,7 +10344,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10316
10344
  }
10317
10345
  } else
10318
10346
  b = ee.secretId ?? "", Y = ee.optionalSecretKey ?? "";
10319
- await En(() => {
10347
+ await wn(() => {
10320
10348
  o.value = V, u.value = x, c.value = b, d.value = Y;
10321
10349
  });
10322
10350
  } catch (x) {
@@ -10545,7 +10573,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10545
10573
  let V = `${i.config.apiBaseUrl}${je.form[i.config.app].entityGetAll}`;
10546
10574
  return i.config.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), V = V.replace(/{entity}/gi, x), V;
10547
10575
  };
10548
- In(It, {
10576
+ rn(It, {
10549
10577
  getOne: (x, V) => {
10550
10578
  const b = g(x, V);
10551
10579
  return s.get(b);
@@ -10562,7 +10590,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10562
10590
  }) : s.get(b, { params: V });
10563
10591
  }
10564
10592
  });
10565
- const T = Q(""), U = Q(null), F = Q({}), B = gn({}), S = gn({}), h = X(() => {
10593
+ const T = Q(""), U = Q(null), F = Q({}), B = mn({}), S = mn({}), h = X(() => {
10566
10594
  var x;
10567
10595
  return (x = U.value) == null ? void 0 : x.options;
10568
10596
  }), f = Q(!1), C = Q(), M = (x, V) => {
@@ -10722,7 +10750,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10722
10750
  Object.assign(S, b.model), F.value = {
10723
10751
  fields: (ee = (Y = F.value) == null ? void 0 : Y.fields) == null ? void 0 : ee.map((O) => ({ ...O, disabled: O.disabled || !1 }))
10724
10752
  }, Object.assign(B, JSON.parse(JSON.stringify(b.model))), T.value = Sr(b.model.name), ce();
10725
- }, { immediate: !0, deep: !0 }), on(() => {
10753
+ }, { immediate: !0, deep: !0 }), ln(() => {
10726
10754
  var x, V;
10727
10755
  U.value = a(i.schema), Object.assign(S, ((x = U.value) == null ? void 0 : x.model) || {}), F.value = ((V = U.value) == null ? void 0 : V.schema) || {}, ce();
10728
10756
  }), (x, V) => {
@@ -10883,11 +10911,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10883
10911
  emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated"],
10884
10912
  setup(e, { emit: t }) {
10885
10913
  var oe;
10886
- const n = t, i = e, s = $n(), { i18n: { t: a } } = xe.useI18n(), { customSchemas: r, typedefs: o } = xe.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = xe.usePluginHelpers(), { getMessageFromError: d } = _n(), { capitalize: u } = ki(), { objectsAreEqual: A } = Wn(), { axiosInstance: g } = Xt((oe = i.config) == null ? void 0 : oe.axiosRequestConfig), I = Q(!1), R = X(() => !!i.pluginId), y = X(() => i.pluginId ? Ut.Edit : Ut.Create), T = Q(null), U = X(() => !!(i.credential && i.config.entityId)), F = Q(null), B = Q({}), S = Q(!1), h = Q(null), f = gn({
10914
+ const n = t, i = e, s = $n(), { i18n: { t: a } } = xe.useI18n(), { customSchemas: r, typedefs: o } = xe.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = xe.usePluginHelpers(), { getMessageFromError: d } = _n(), { capitalize: u } = ki(), { objectsAreEqual: A } = Wn(), { axiosInstance: g } = Xt((oe = i.config) == null ? void 0 : oe.axiosRequestConfig), I = Q(!1), R = X(() => !!i.pluginId), y = X(() => i.pluginId ? Ut.Edit : Ut.Create), T = Q(null), U = X(() => !!(i.credential && i.config.entityId)), F = Q(null), B = Q({}), S = Q(!1), h = Q(null), f = mn({
10887
10915
  enabled: !0,
10888
10916
  protocols: [],
10889
10917
  tags: []
10890
- }), C = gn({
10918
+ }), C = mn({
10891
10919
  fields: {
10892
10920
  enabled: !0,
10893
10921
  protocols: [],
@@ -10954,7 +10982,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10954
10982
  id: i.config.entityId,
10955
10983
  idField: _t[i.config.entityType.substring(0, i.config.entityType.length - 1).toUpperCase()]
10956
10984
  }), ue;
10957
- }), $ = gn({
10985
+ }), $ = mn({
10958
10986
  // this is a required field that the user cannot set, it's always the name of the plugin
10959
10987
  // ex. 'acl'
10960
10988
  name: {
@@ -11068,11 +11096,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
11068
11096
  fields: [{
11069
11097
  schema: {
11070
11098
  fields: [{
11071
- ...bn,
11099
+ ...En,
11072
11100
  model: q,
11073
11101
  valueArrayType: ve === "integer" ? "number" : ve || "string",
11074
11102
  inputAttributes: {
11075
- ...bn.inputAttributes,
11103
+ ...En.inputAttributes,
11076
11104
  type: ve === "integer" ? "number" : "text",
11077
11105
  inputMode: ve === "integer" ? "numeric" : "text"
11078
11106
  }
@@ -11107,7 +11135,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
11107
11135
  }), Z.elements && Z.type === "array") {
11108
11136
  const ve = Z.elements;
11109
11137
  if (k[q].referenceable = ve.referenceable, (ve.type === "string" || ve.type === "integer") && !ve.one_of) {
11110
- const { id: ot, help: De, label: Be, hint: Qe, values: xt, referenceable: Bt } = k[q], { inputAttributes: Gt, ...Gr } = JSON.parse(JSON.stringify(bn));
11138
+ const { id: ot, help: De, label: Be, hint: Qe, values: xt, referenceable: Bt } = k[q], { inputAttributes: Gt, ...Gr } = JSON.parse(JSON.stringify(En));
11111
11139
  Gt.type = ve.type === "integer" ? "number" : "text", k[q] = { id: ot, help: De, label: Be, hint: Qe, values: xt, referenceable: Bt, inputAttributes: Gt, ...Gr };
11112
11140
  }
11113
11141
  }
@@ -11305,7 +11333,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
11305
11333
  N && (Ye.value = !0);
11306
11334
  });
11307
11335
  const wt = Q(""), D = Q(!1), te = Q("");
11308
- return on(async () => {
11336
+ return ln(async () => {
11309
11337
  var N, ae, k;
11310
11338
  D.value = !0;
11311
11339
  try {
@@ -11757,7 +11785,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
11757
11785
  message: `${a("plugins.list.empty_state.description")}${s.config.additionMessageForEmptyState ? ` ${s.config.additionMessageForEmptyState}` : ""}`,
11758
11786
  title: a("plugins.title")
11759
11787
  });
11760
- return on(async () => {
11788
+ return ln(async () => {
11761
11789
  await s.canCreate() && (Et.value.title = a("plugins.list.empty_state.title"), Et.value.ctaText = a("actions.create"));
11762
11790
  }), (D, te) => {
11763
11791
  const oe = z("KButton"), N = z("KBadge"), ae = z("KTruncate"), k = z("KInputSwitch"), pe = z("KDropdownItem"), ue = z("KClipboardProvider");
@@ -12341,7 +12369,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
12341
12369
  (h = T.value) != null && h.length && (F.value = r(y.value, (f = T.value) == null ? void 0 : f.length));
12342
12370
  };
12343
12371
  return Mn(async () => {
12344
- await En(), R.value = a(T.value), S(), window == null || window.addEventListener("resize", B);
12372
+ await wn(), R.value = a(T.value), S(), window == null || window.addEventListener("resize", B);
12345
12373
  }), ms(() => {
12346
12374
  window == null || window.removeEventListener("resize", B);
12347
12375
  }), (h, f) => {
@@ -12458,7 +12486,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
12458
12486
  (y = u.value) != null && y.length && (g.value = o(d.value, (T = u.value) == null ? void 0 : T.length));
12459
12487
  };
12460
12488
  return Mn(async () => {
12461
- await En(), c.value = r(u.value), R(), window == null || window.addEventListener("resize", I);
12489
+ await wn(), c.value = r(u.value), R(), window == null || window.addEventListener("resize", I);
12462
12490
  }), ms(() => {
12463
12491
  window == null || window.removeEventListener("resize", I);
12464
12492
  }), (y, T) => {
@@ -12760,7 +12788,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
12760
12788
  i("loading", b);
12761
12789
  });
12762
12790
  const ce = Q(!1), Ae = Q(!1), _ = Q(!1);
12763
- return on(async () => {
12791
+ return ln(async () => {
12764
12792
  ce.value = await n.canCreateCustomPlugin(), Ae.value = await n.canEditCustomPlugin(), _.value = await n.canDeleteCustomPlugin();
12765
12793
  }), Mn(async () => {
12766
12794
  try {
@@ -13021,7 +13049,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
13021
13049
  let B = `${i.config.apiBaseUrl}${je.form[i.config.app].pluginSchema}`;
13022
13050
  return i.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((S = i.config) == null ? void 0 : S.controlPlaneId) || "") : i.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (h = i.config) != null && h.workspace ? `/${i.config.workspace}` : "")), B = B.replace(/{plugin}/gi, i.config.pluginType), B;
13023
13051
  }), y = Q({}), T = Q(!1), U = Q("");
13024
- return on(async () => {
13052
+ return ln(async () => {
13025
13053
  T.value = !0;
13026
13054
  try {
13027
13055
  const { data: B } = await I.get(R.value);