@kong-ui-public/entities-plugins 9.12.0 → 9.12.1

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 _o = Object.defineProperty;
2
2
  var $o = (e, t, n) => t in e ? _o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ke = (e, t, n) => $o(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as $, resolveComponent as q, openBlock as p, createElementBlock as B, createBlock as L, resolveDynamicComponent as Ke, withCtx as b, Fragment as ge, renderList as Oe, createCommentVNode as ie, createSlots as St, renderSlot as ft, normalizeClass as Be, createTextVNode as fe, toDisplayString as X, createVNode as G, createElementVNode as v, normalizeProps as er, guardReactiveProps as tr, defineComponent as ye, provide as gn, useSlots as ti, computed as J, onMounted as Dn, unref as g, nextTick as Pn, mergeProps as gt, toRefs as Zt, isRef as mn, toRef as nr, inject as Os, onBeforeMount as fn, Transition as ir, resolveDirective as Ms, withDirectives as $e, vModelText as Bn, vModelCheckbox as ar, vModelSelect as sr, vModelDynamic as Rs, vModelRadio as or, vShow as rr, watch as mt, reactive as In, Teleport as ki, withModifiers as On, onUnmounted as ks, normalizeStyle as Ss, mergeModels as ra, useModel as lr } from "vue";
4
+ import { ref as $, resolveComponent as q, openBlock as p, createElementBlock as B, createBlock as L, resolveDynamicComponent as Ke, withCtx as b, Fragment as ge, renderList as Oe, createCommentVNode as ie, createSlots as St, renderSlot as ft, normalizeClass as Ce, createTextVNode as he, toDisplayString as X, createVNode as G, createElementVNode as v, normalizeProps as er, guardReactiveProps as tr, defineComponent as ye, provide as gn, useSlots as ti, computed as J, onMounted as Dn, unref as g, nextTick as Pn, mergeProps as gt, toRefs as Zt, isRef as mn, toRef as nr, inject as Os, onBeforeMount as fn, Transition as ir, resolveDirective as Ms, withDirectives as $e, vModelText as Bn, vModelCheckbox as ar, vModelSelect as sr, vModelDynamic as Rs, vModelRadio as or, vShow as rr, watch as mt, reactive as In, Teleport as ki, withModifiers as On, onUnmounted as ks, normalizeStyle as Ss, mergeModels as ra, useModel as lr } from "vue";
5
5
  import { useStringHelpers as Fi, ConfigurationSchemaType as We, useAxios as Wt, useDebouncedFilter as la, useHelpers as ni, useErrors as ii, EntityBaseFormType as Ht, EntityBaseForm as cr, SupportedEntityType as Si, JsonCodeBlock as ur, YamlCodeBlock as dr, TerraformCodeBlock as pr, useTableState as Ar, useGatewayFeatureSupported as gr, useFetcher as mr, useDeleteUrlBuilder as fr, FetcherStatus as hr, EntityBaseTable as vr, EntityFilter as yr, PermissionsWrapper as Vt, TableTags as br, EntityEmptyState as Er, EntityToggleModal as wr, EntityDeleteModal as Ts, EntityTypes as xs, ConfigurationSchemaSection as on, useSchemaProvider as Cr, EntityBaseConfigCard as Br, InternalLinkItem as Fn } from "@kong-ui-public/entities-shared";
6
6
  import { useRouter as ai, useRoute as Ir } from "vue-router";
7
7
  import { createI18n as Et, i18nTComponent as Ps } from "@kong-ui-public/i18n";
@@ -4351,7 +4351,7 @@ function jp(e, t) {
4351
4351
  e = e[Dp(t[n++])];
4352
4352
  return n && n == i ? e : void 0;
4353
4353
  }
4354
- function Ce(e, t, n) {
4354
+ function we(e, t, n) {
4355
4355
  var i = e == null ? void 0 : jp(e, t);
4356
4356
  return i === void 0 ? n : i;
4357
4357
  }
@@ -4657,8 +4657,8 @@ const fo = {
4657
4657
  // Get style classes of field
4658
4658
  getFieldRowClasses(e) {
4659
4659
  const t = this.fieldErrors(e).length > 0, n = {
4660
- [Ce(this.options, "validationErrorClass", "error")]: t,
4661
- [Ce(this.options, "validationSuccessClass", "valid")]: !t,
4660
+ [we(this.options, "validationErrorClass", "error")]: t,
4661
+ [we(this.options, "validationSuccessClass", "valid")]: !t,
4662
4662
  disabled: this.fieldDisabled(e),
4663
4663
  readonly: this.fieldReadonly(e),
4664
4664
  featured: this.fieldFeatured(e),
@@ -5475,9 +5475,9 @@ function ts(e) {
5475
5475
  return qt(e) ? Xt[e] != null ? Xt[e] : (console.warn(`'${e}' is not a validator function!`), null) : e;
5476
5476
  }
5477
5477
  function bi(e, t, n) {
5478
- let i = Ce(n.context, "schema.attributes", {});
5478
+ let i = we(n.context, "schema.attributes", {});
5479
5479
  const a = t.value || "input";
5480
- qt(a) && (i = Ce(i, a) || i), _e(i, (s, o) => {
5480
+ qt(a) && (i = we(i, a) || i), _e(i, (s, o) => {
5481
5481
  e.setAttribute(o, s);
5482
5482
  });
5483
5483
  }
@@ -5504,7 +5504,7 @@ const Bt = {
5504
5504
  cache: !1,
5505
5505
  get() {
5506
5506
  let e;
5507
- return Ge(Ce(this.schema, "get")) ? e = this.schema.get(this.model) : e = Ce(this.model, this.schema.model), this.formatValueToField(e);
5507
+ return Ge(we(this.schema, "get")) ? e = this.schema.get(this.model) : e = we(this.model, this.schema.model), this.formatValueToField(e);
5508
5508
  },
5509
5509
  set(e) {
5510
5510
  const t = this.value;
@@ -5515,7 +5515,7 @@ const Bt = {
5515
5515
  methods: {
5516
5516
  validate(e) {
5517
5517
  this.clearValidationErrors();
5518
- const t = Ce(this.formOptions, "validateAsync", !1);
5518
+ const t = we(this.formOptions, "validateAsync", !1);
5519
5519
  let n = [];
5520
5520
  if (this.schema.validator && this.schema.readonly !== !0 && this.disabled !== !0) {
5521
5521
  const a = [];
@@ -5547,12 +5547,12 @@ const Bt = {
5547
5547
  debouncedValidate() {
5548
5548
  Ge(this.debouncedValidateFunc) || (this.debouncedValidateFunc = Ln(
5549
5549
  this.validate.bind(this),
5550
- Ce(this.schema, "validateDebounceTime", Ce(this.formOptions, "validateDebounceTime", 500))
5550
+ we(this.schema, "validateDebounceTime", we(this.formOptions, "validateDebounceTime", 500))
5551
5551
  )), this.debouncedValidateFunc();
5552
5552
  },
5553
5553
  updateModelValue(e, t) {
5554
5554
  let n = !1;
5555
- Ge(this.schema.set) ? (this.schema.set(this.model, e), n = !0) : this.schema.model && (this.setModelValueByPath(this.schema.model, e), n = !0), n && (this.$emit("modelUpdated", e, this.schema.model), Ge(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, e, t, this.schema), Ce(this.formOptions, "validateAfterChanged", !1) === !0 && (Ce(this.schema, "validateDebounceTime", Ce(this.formOptions, "validateDebounceTime", 0)) > 0 ? this.debouncedValidate() : this.validate()));
5555
+ Ge(this.schema.set) ? (this.schema.set(this.model, e), n = !0) : this.schema.model && (this.setModelValueByPath(this.schema.model, e), n = !0), n && (this.$emit("modelUpdated", e, this.schema.model), Ge(this.schema.onChanged) && this.schema.onChanged.call(this, this.model, e, t, this.schema), we(this.formOptions, "validateAfterChanged", !1) === !0 && (we(this.schema, "validateDebounceTime", we(this.formOptions, "validateDebounceTime", 0)) > 0 ? this.debouncedValidate() : this.validate()));
5556
5556
  },
5557
5557
  clearValidationErrors() {
5558
5558
  this.errors.splice(0);
@@ -5576,14 +5576,14 @@ const Bt = {
5576
5576
  }
5577
5577
  },
5578
5578
  getFieldID(e, t = !1) {
5579
- const n = Ce(this.formOptions, "fieldIdPrefix", "");
5579
+ const n = we(this.formOptions, "fieldIdPrefix", "");
5580
5580
  return aa(e, n) + (t ? "-" + yo() : "");
5581
5581
  },
5582
5582
  getLabelId(e) {
5583
5583
  return `${this.getFieldID(e)}-label`;
5584
5584
  },
5585
5585
  getFieldClasses() {
5586
- return Ce(this.schema, "fieldClasses", []);
5586
+ return we(this.schema, "fieldClasses", []);
5587
5587
  },
5588
5588
  formatValueToField(e) {
5589
5589
  return e;
@@ -5640,7 +5640,7 @@ function Lm(e, t, n, i, a, s) {
5640
5640
  v("span", null, X(s.titleText), 1)
5641
5641
  ]),
5642
5642
  v("div", {
5643
- class: Be(["advanced-field-dropdown", s.openClass])
5643
+ class: Ce(["advanced-field-dropdown", s.openClass])
5644
5644
  }, [
5645
5645
  G(o, {
5646
5646
  model: e.model,
@@ -5737,7 +5737,7 @@ const Dm = /* @__PURE__ */ Ue(Pm, [["render", Lm], ["__scopeId", "data-v-acfccff
5737
5737
  onClick: n[0] || (n[0] = (a) => t.$emit("remove-item"))
5738
5738
  }, {
5739
5739
  default: b(() => n[1] || (n[1] = [
5740
- fe(" - Remove Field ")
5740
+ he(" - Remove Field ")
5741
5741
  ])),
5742
5742
  _: 1
5743
5743
  }),
@@ -5933,7 +5933,7 @@ function ef(e) {
5933
5933
  get() {
5934
5934
  var y, S;
5935
5935
  let O;
5936
- return Ge(Ce(e.schema, "get")) ? O = e.schema.get((y = e.model) == null ? void 0 : y.value) : O = Ce((S = e.model) == null ? void 0 : S.value, e.schema.model), I(O);
5936
+ return Ge(we(e.schema, "get")) ? O = e.schema.get((y = e.model) == null ? void 0 : y.value) : O = we((S = e.model) == null ? void 0 : S.value, e.schema.model), I(O);
5937
5937
  },
5938
5938
  set(y) {
5939
5939
  const S = a;
@@ -5942,7 +5942,7 @@ function ef(e) {
5942
5942
  }), s = (y) => {
5943
5943
  var S;
5944
5944
  c();
5945
- const O = (S = e.schema) == null ? void 0 : S.validator, Q = Ce(e.formOptions, "validateAsync", !1);
5945
+ const O = (S = e.schema) == null ? void 0 : S.validator, Q = we(e.formOptions, "validateAsync", !1);
5946
5946
  let E = [];
5947
5947
  if (O && e.schema.readonly !== !0 && e.disabled !== !0) {
5948
5948
  const C = [];
@@ -5956,8 +5956,8 @@ function ef(e) {
5956
5956
  const W = h(a.value, e.schema, (x = e.model) == null ? void 0 : x.value);
5957
5957
  W && Ge(W.then) ? W.then((j) => {
5958
5958
  j && (t.value = t.value.concat(j));
5959
- const N = t.value.length === 0;
5960
- e.emitValidated && e.emitValidated({ isValid: N, errors: t.value, field: e.schema });
5959
+ const V = t.value.length === 0;
5960
+ e.emitValidated && e.emitValidated({ isValid: V, errors: t.value, field: e.schema });
5961
5961
  }) : W && (E = E.concat(W));
5962
5962
  }
5963
5963
  });
@@ -5977,12 +5977,12 @@ function ef(e) {
5977
5977
  }, o = () => {
5978
5978
  Ge(n.value) ? n.value() : n.value = Ln(
5979
5979
  s,
5980
- Ce(e.schema, "validateDebounceTime", Ce(e.formOptions, "validateDebounceTime", 500))
5980
+ we(e.schema, "validateDebounceTime", we(e.formOptions, "validateDebounceTime", 500))
5981
5981
  );
5982
5982
  }, r = (y, S) => {
5983
5983
  var O, Q, E;
5984
5984
  let f = !1;
5985
- Ge(e.schema.set) ? (e.schema.set((O = e.model) == null ? void 0 : O.value, y), f = !0) : e.schema.model && (d(e.schema.model, y), f = !0), f && (e.emitModelUpdated && (Q = e.model) != null && Q.value && e.emitModelUpdated({ value: y, model: e.schema.model }), Ge(e.schema.onChanged) && e.schema.onChanged((E = e.model) == null ? void 0 : E.value, y, S, e.schema), Ce(e.formOptions, "validateAfterChanged", !1) === !0 && (Ce(e.schema, "validateDebounceTime", Ce(e.formOptions, "validateDebounceTime", 0)) > 0 ? o() : s()));
5985
+ Ge(e.schema.set) ? (e.schema.set((O = e.model) == null ? void 0 : O.value, y), f = !0) : e.schema.model && (d(e.schema.model, y), f = !0), f && (e.emitModelUpdated && (Q = e.model) != null && Q.value && e.emitModelUpdated({ value: y, model: e.schema.model }), Ge(e.schema.onChanged) && e.schema.onChanged((E = e.model) == null ? void 0 : E.value, y, S, e.schema), we(e.formOptions, "validateAfterChanged", !1) === !0 && (we(e.schema, "validateDebounceTime", we(e.formOptions, "validateDebounceTime", 0)) > 0 ? o() : s()));
5986
5986
  }, c = () => {
5987
5987
  t.value.splice(0);
5988
5988
  }, d = (y, S) => {
@@ -6002,9 +6002,9 @@ function ef(e) {
6002
6002
  ++f;
6003
6003
  }
6004
6004
  }, u = (y, S = !1) => {
6005
- const O = Ce(e.formOptions, "fieldIdPrefix", "");
6005
+ const O = we(e.formOptions, "fieldIdPrefix", "");
6006
6006
  return aa(y, O) + (S ? "-" + yo() : "");
6007
- }, A = (y) => `${u(y)}-label`, m = () => Ce(e.schema, "fieldClasses", []), I = (y) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(y) : y, D = (y) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(y) : y;
6007
+ }, A = (y) => `${u(y)}-label`, m = () => we(e.schema, "fieldClasses", []), I = (y) => e.formatValueToField && typeof e.formatValueToField == "function" ? e.formatValueToField(y) : y, D = (y) => e.formatValueToModel && typeof e.formatValueToModel == "function" ? e.formatValueToModel(y) : y;
6008
6008
  return {
6009
6009
  value: a,
6010
6010
  clearValidationErrors: c,
@@ -6112,7 +6112,7 @@ const Lt = {
6112
6112
  (E, f) => {
6113
6113
  D(E, f);
6114
6114
  },
6115
- parseInt(Ce(i.schema, "debounceFormatTimeout", 1e3)),
6115
+ parseInt(we(i.schema, "debounceFormatTimeout", 1e3)),
6116
6116
  {
6117
6117
  trailing: !0,
6118
6118
  leading: !1
@@ -6126,7 +6126,7 @@ const Lt = {
6126
6126
  (E, f) => {
6127
6127
  I(E, f);
6128
6128
  },
6129
- parseInt(Ce(i.schema, "debounceFormatTimeout", 1e3)),
6129
+ parseInt(we(i.schema, "debounceFormatTimeout", 1e3)),
6130
6130
  {
6131
6131
  trailing: !0,
6132
6132
  leading: !1
@@ -6186,13 +6186,13 @@ const Lt = {
6186
6186
  function of(e, t, n, i, a, s) {
6187
6187
  const o = q("AddIcon"), r = q("TrashIcon"), c = q("KButton");
6188
6188
  return p(), B("div", {
6189
- class: Be(["field-dropdown", { active: a.contentVisible }])
6189
+ class: Ce(["field-dropdown", { active: a.contentVisible }])
6190
6190
  }, [
6191
6191
  v("div", {
6192
6192
  class: "title",
6193
6193
  onClick: t[0] || (t[0] = (d) => a.contentVisible = !a.contentVisible)
6194
6194
  }, [
6195
- fe(X(e.model.name ? e.model.name : "New Item") + " ", 1),
6195
+ he(X(e.model.name ? e.model.name : "New Item") + " ", 1),
6196
6196
  G(o, { class: "metric-add-icon" })
6197
6197
  ]),
6198
6198
  G(ir, { name: "slide-fade" }, {
@@ -6265,7 +6265,7 @@ function vf(e, t, n, i, a, s) {
6265
6265
  }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (p(), B("div", cf, [
6266
6266
  v("table", {
6267
6267
  id: e.getFieldID(e.schema),
6268
- class: Be(e.schema.fieldClasses)
6268
+ class: Ce(e.schema.fieldClasses)
6269
6269
  }, [
6270
6270
  (p(!0), B(ge, null, Oe(e.value, (c, d) => (p(), B("tr", { key: d }, [
6271
6271
  v("td", null, X(d), 1),
@@ -6435,7 +6435,7 @@ function Tf(e, t, n, i, a, s) {
6435
6435
  const o = q("TrashIcon"), r = q("KButton"), c = q("vue-form-generator");
6436
6436
  return p(), B("div", {
6437
6437
  id: e.getFieldID(e.schema),
6438
- class: Be(["object-advanced-wrapper", e.schema.fieldClasses])
6438
+ class: Ce(["object-advanced-wrapper", e.schema.fieldClasses])
6439
6439
  }, [
6440
6440
  (p(!0), B(ge, null, Oe(e.value, (d, u) => (p(), B("div", {
6441
6441
  key: u,
@@ -6490,7 +6490,7 @@ function Tf(e, t, n, i, a, s) {
6490
6490
  ])
6491
6491
  ], 8, Ef))), 128)),
6492
6492
  v("div", {
6493
- class: Be(["input-wrapper", { indent: s.hasObjectKeys }])
6493
+ class: Ce(["input-wrapper", { indent: s.hasObjectKeys }])
6494
6494
  }, [
6495
6495
  v("div", Rf, [
6496
6496
  $e(v("input", {
@@ -6509,7 +6509,7 @@ function Tf(e, t, n, i, a, s) {
6509
6509
  onClick: s.addKey
6510
6510
  }, {
6511
6511
  default: b(() => [
6512
- fe(" + Add " + X(e.schema.buttonLabel || e.schema.label), 1)
6512
+ he(" + Add " + X(e.schema.buttonLabel || e.schema.label), 1)
6513
6513
  ]),
6514
6514
  _: 1
6515
6515
  }, 8, ["disabled", "onClick"])
@@ -6681,7 +6681,7 @@ const Go = /* @__PURE__ */ Ue(yf, [["render", Tf], ["__scopeId", "data-v-5b7aaee
6681
6681
  id: g(c)(e.schema),
6682
6682
  modelValue: g(u),
6683
6683
  "onUpdate:modelValue": S[0] || (S[0] = (Q) => mn(u) ? u.value = Q : null),
6684
- class: Be(e.schema.fieldClasses),
6684
+ class: Ce(e.schema.fieldClasses),
6685
6685
  clearable: !e.schema.required,
6686
6686
  disabled: e.disabled || void 0,
6687
6687
  items: A.value,
@@ -6763,11 +6763,11 @@ function Yf(e, t, n, i, a, s) {
6763
6763
  return e.schema ? (p(), B("div", {
6764
6764
  key: 0,
6765
6765
  id: e.getFieldID(e.schema),
6766
- class: Be(e.schema.fieldClasses)
6766
+ class: Ce(e.schema.fieldClasses)
6767
6767
  }, [
6768
6768
  (p(!0), B(ge, null, Oe(e.value, (d, u) => (p(), B("div", {
6769
6769
  key: u,
6770
- class: Be(e.schema.fieldItemsClasses)
6770
+ class: Ce(e.schema.fieldItemsClasses)
6771
6771
  }, [
6772
6772
  e.schema.items && e.schema.itemContainerComponent ? (p(), L(Ke(e.schema.itemContainerComponent), {
6773
6773
  key: 0,
@@ -6868,13 +6868,13 @@ function Yf(e, t, n, i, a, s) {
6868
6868
  ], 2))), 128)),
6869
6869
  G(c, {
6870
6870
  appearance: "tertiary",
6871
- class: Be(e.schema.newElementButtonLabelClasses),
6871
+ class: Ce(e.schema.newElementButtonLabelClasses),
6872
6872
  "data-testid": `add-${e.getFieldID(e.schema)}`,
6873
6873
  type: "button",
6874
6874
  onClick: s.newElement
6875
6875
  }, {
6876
6876
  default: b(() => [
6877
- fe(X(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
6877
+ he(X(e.schema.newElementButtonLabel || n.newElementButtonLabel), 1)
6878
6878
  ]),
6879
6879
  _: 1
6880
6880
  }, 8, ["class", "data-testid", "onClick"])
@@ -6964,7 +6964,7 @@ function _f(e, t, n, i, a, s) {
6964
6964
  disabled: e.disabled || null
6965
6965
  }, [
6966
6966
  (p(!0), B(ge, null, Oe(s.items, (r) => (p(), B("div", {
6967
- class: Be(["list-row", { "is-checked": s.isItemChecked(r) }])
6967
+ class: Ce(["list-row", { "is-checked": s.isItemChecked(r) }])
6968
6968
  }, [
6969
6969
  v("label", null, [
6970
6970
  $e(v("input", {
@@ -6977,7 +6977,7 @@ function _f(e, t, n, i, a, s) {
6977
6977
  }, null, 40, qf), [
6978
6978
  [o, "input"]
6979
6979
  ]),
6980
- fe(X(s.getItemName(r)), 1)
6980
+ he(X(s.getItemName(r)), 1)
6981
6981
  ])
6982
6982
  ], 2))), 256))
6983
6983
  ], 8, Jf)) : ie("", !0),
@@ -6987,7 +6987,7 @@ function _f(e, t, n, i, a, s) {
6987
6987
  disabled: e.disabled || null
6988
6988
  }, [
6989
6989
  v("div", {
6990
- class: Be(["mainRow", { expanded: a.comboExpanded }]),
6990
+ class: Ce(["mainRow", { expanded: a.comboExpanded }]),
6991
6991
  onClick: t[0] || (t[0] = (...r) => s.onExpandCombo && s.onExpandCombo(...r))
6992
6992
  }, [
6993
6993
  v("div", Xf, X(s.selectedCount) + " selected", 1),
@@ -6995,7 +6995,7 @@ function _f(e, t, n, i, a, s) {
6995
6995
  ], 2),
6996
6996
  v("div", Zf, [
6997
6997
  a.comboExpanded ? (p(!0), B(ge, { key: 0 }, Oe(s.items, (r) => (p(), B("div", {
6998
- class: Be(["list-row", { "is-checked": s.isItemChecked(r) }])
6998
+ class: Ce(["list-row", { "is-checked": s.isItemChecked(r) }])
6999
6999
  }, [
7000
7000
  v("label", null, [
7001
7001
  $e(v("input", {
@@ -7008,7 +7008,7 @@ function _f(e, t, n, i, a, s) {
7008
7008
  }, null, 40, Wf), [
7009
7009
  [o, "input"]
7010
7010
  ]),
7011
- fe(X(s.getItemName(r)), 1)
7011
+ he(X(s.getItemName(r)), 1)
7012
7012
  ])
7013
7013
  ], 2))), 256)) : ie("", !0)
7014
7014
  ])
@@ -7184,13 +7184,13 @@ function rh(e, t, n, i, a, s) {
7184
7184
  ]))), 128)),
7185
7185
  G(r, {
7186
7186
  appearance: "tertiary",
7187
- class: Be(e.schema.newElementButtonLabelClasses),
7187
+ class: Ce(e.schema.newElementButtonLabelClasses),
7188
7188
  "data-testid": `${e.getFieldID(e.schema)}-add-pair`,
7189
7189
  type: "button",
7190
7190
  onClick: s.addPair
7191
7191
  }, {
7192
7192
  default: b(() => [
7193
- fe(X(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
7193
+ he(X(e.schema.newElementButtonLabel ?? "+ Add Pair"), 1)
7194
7194
  ]),
7195
7195
  _: 1
7196
7196
  }, 8, ["class", "data-testid", "onClick"])
@@ -7231,13 +7231,13 @@ const lh = /* @__PURE__ */ Ue(th, [["render", rh], ["__scopeId", "data-v-70998d5
7231
7231
  return (s, o) => {
7232
7232
  const r = q("KLabel");
7233
7233
  return p(), B("span", {
7234
- class: Be(["field-label", e.schema.fieldClasses])
7234
+ class: Ce(["field-label", e.schema.fieldClasses])
7235
7235
  }, [
7236
7236
  G(r, {
7237
7237
  id: g(i)(e.schema)
7238
7238
  }, {
7239
7239
  default: b(() => [
7240
- fe(X(g(a)), 1)
7240
+ he(X(g(a)), 1)
7241
7241
  ]),
7242
7242
  _: 1
7243
7243
  }, 8, ["id"])
@@ -7306,7 +7306,7 @@ const lh = /* @__PURE__ */ Ue(th, [["render", rh], ["__scopeId", "data-v-70998d5
7306
7306
  modelValue: g(d),
7307
7307
  "onUpdate:modelValue": m[0] || (m[0] = (D) => mn(d) ? d.value = D : null),
7308
7308
  "aria-labelledby": g(o)(e.schema),
7309
- class: Be(e.schema.fieldClasses),
7309
+ class: Ce(e.schema.fieldClasses),
7310
7310
  "data-testid": "field-multiselect",
7311
7311
  disabled: e.disabled || void 0,
7312
7312
  items: u.value,
@@ -7375,10 +7375,10 @@ function bh(e, t, n, i, a, s) {
7375
7375
  v("div", mh, [
7376
7376
  (p(!0), B(ge, null, Oe(e.schema.fields, (r, c) => (p(), B("div", {
7377
7377
  key: c,
7378
- class: Be(["option-group", { "radio-disabled": e.$props.disabled }])
7378
+ class: Ce(["option-group", { "radio-disabled": e.$props.disabled }])
7379
7379
  }, [
7380
7380
  v("label", {
7381
- class: Be(["k-label", `${r.label}-check`])
7381
+ class: Ce(["k-label", `${r.label}-check`])
7382
7382
  }, [
7383
7383
  $e(v("input", {
7384
7384
  "onUpdate:modelValue": t[0] || (t[0] = (d) => a.checkedGroup = d),
@@ -7389,7 +7389,7 @@ function bh(e, t, n, i, a, s) {
7389
7389
  }, null, 8, fh), [
7390
7390
  [or, a.checkedGroup]
7391
7391
  ]),
7392
- fe(" " + X(r.label) + " ", 1),
7392
+ he(" " + X(r.label) + " ", 1),
7393
7393
  v("div", hh, X(r.description), 1)
7394
7394
  ], 2)
7395
7395
  ], 2))), 128))
@@ -7477,7 +7477,7 @@ const Eh = /* @__PURE__ */ Ue(ph, [["render", bh], ["__scopeId", "data-v-56d57ed
7477
7477
  modelValue: g(u),
7478
7478
  "onUpdate:modelValue": I[0] || (I[0] = (y) => mn(u) ? u.value = y : null),
7479
7479
  autocomplete: e.schema.autocomplete,
7480
- class: Be(e.schema.fieldClasses),
7480
+ class: Ce(e.schema.fieldClasses),
7481
7481
  disabled: e.disabled || void 0,
7482
7482
  label: g(u) ? e.schema.textOn || g(s)("vfg.labels.on") : e.schema.textOff || g(s)("vfg.labels.off"),
7483
7483
  "label-attributes": { info: e.schema.help },
@@ -7665,7 +7665,7 @@ const Eh = /* @__PURE__ */ Ue(ph, [["render", bh], ["__scopeId", "data-v-56d57ed
7665
7665
  }
7666
7666
  },
7667
7667
  getFieldID(e) {
7668
- const t = Ce(this.options, "fieldIdPrefix", "");
7668
+ const t = we(this.options, "fieldIdPrefix", "");
7669
7669
  return aa(e, t);
7670
7670
  },
7671
7671
  getTooltipId(e) {
@@ -7677,7 +7677,7 @@ const Eh = /* @__PURE__ */ Ue(ph, [["render", bh], ["__scopeId", "data-v-56d57ed
7677
7677
  },
7678
7678
  // Get type of button, default to 'button'
7679
7679
  getButtonType(e) {
7680
- return Ce(e, "type", "button");
7680
+ return we(e, "type", "button");
7681
7681
  },
7682
7682
  // Child field executed validation
7683
7683
  onFieldValidated(e, t, n) {
@@ -7727,12 +7727,12 @@ const Eh = /* @__PURE__ */ Ue(ph, [["render", bh], ["__scopeId", "data-v-56d57ed
7727
7727
  function Yh(e, t, n, i, a, s) {
7728
7728
  const o = q("KExternalLink"), r = q("KLabel");
7729
7729
  return p(), B("div", {
7730
- class: Be(["form-group", e.getFieldRowClasses(n.field)])
7730
+ class: Ce(["form-group", e.getFieldRowClasses(n.field)])
7731
7731
  }, [
7732
7732
  s.fieldTypeHasLabel(n.field) ? (p(), L(r, {
7733
7733
  key: 0,
7734
7734
  "aria-describedby": n.field.help ? s.getTooltipId(n.field) : void 0,
7735
- class: Be([n.field.labelClasses, "form-group-label"]),
7735
+ class: Ce([n.field.labelClasses, "form-group-label"]),
7736
7736
  for: s.getFieldID(n.field),
7737
7737
  info: !n.options.helpAsHtml && n.field.help ? n.field.help : void 0,
7738
7738
  "tooltip-attributes": n.field.help ? {
@@ -7786,7 +7786,7 @@ function Yh(e, t, n, i, a, s) {
7786
7786
  s.buttonVisibility(n.field) ? (p(), B("div", Gh, [
7787
7787
  (p(!0), B(ge, null, Oe(n.field.buttons, (c, d) => (p(), B("button", {
7788
7788
  key: d,
7789
- class: Be(c.classes),
7789
+ class: Ce(c.classes),
7790
7790
  type: s.getButtonType(c),
7791
7791
  onClick: (u) => s.buttonClickHandler(c, n.field, u),
7792
7792
  textContent: X(c.label)
@@ -7932,7 +7932,7 @@ const Hh = /* @__PURE__ */ Ue(Rh, [["render", Yh], ["__scopeId", "data-v-0cb2e22
7932
7932
  },
7933
7933
  // Validating the model properties
7934
7934
  validate(e = null) {
7935
- e === null && (e = Ce(this.options, "validateAsync", !1)), this.clearValidationErrors();
7935
+ e === null && (e = we(this.options, "validateAsync", !1)), this.clearValidationErrors();
7936
7936
  const t = [], n = [];
7937
7937
  _e(this.$refs.children, (a) => {
7938
7938
  Ge(a.validate) && (t.push(a.$refs.child), n.push(a.$refs.child.validate(!0)));
@@ -8003,7 +8003,7 @@ function Kh(e, t, n, i, a, s) {
8003
8003
  (u = c.slots) != null && u.beforeContent ? ft(e.$slots, (A = c.slots) == null ? void 0 : A.beforeContent, { key: 0 }) : ie("", !0),
8004
8004
  c.fields.length === 0 && (m = c.slots) != null && m.emptyState ? ft(e.$slots, (I = c.slots) == null ? void 0 : I.emptyState, { key: 1 }) : (p(), L(Ke(n.tag), {
8005
8005
  key: 2,
8006
- class: Be(e.getFieldRowClasses(c))
8006
+ class: Ce(e.getFieldRowClasses(c))
8007
8007
  }, {
8008
8008
  default: b(() => [
8009
8009
  (p(!0), B(ge, null, Oe(c.fields, (D) => (p(), B(ge, {
@@ -8036,7 +8036,7 @@ function Kh(e, t, n, i, a, s) {
8036
8036
  }, {
8037
8037
  default: b(() => [
8038
8038
  (p(), L(Ke(n.tag), {
8039
- class: Be(e.getFieldRowClasses(c))
8039
+ class: Ce(e.getFieldRowClasses(c))
8040
8040
  }, {
8041
8041
  default: b(() => [
8042
8042
  (p(!0), B(ge, null, Oe(c.collapsible.nestedCollapsible.fields, (D) => (p(), B(ge, {
@@ -8069,13 +8069,13 @@ function Kh(e, t, n, i, a, s) {
8069
8069
  c.collapsible.description ? {
8070
8070
  name: "visible-content",
8071
8071
  fn: b(() => [
8072
- fe(X(c.collapsible.description), 1)
8072
+ he(X(c.collapsible.description), 1)
8073
8073
  ]),
8074
8074
  key: "0"
8075
8075
  } : void 0
8076
8076
  ]), 1032, ["title"])) : (p(), L(Ke(n.tag), {
8077
8077
  key: 1,
8078
- class: Be(e.getFieldRowClasses(c))
8078
+ class: Ce(e.getFieldRowClasses(c))
8079
8079
  }, {
8080
8080
  default: b(() => [
8081
8081
  c.legend ? (p(), B("legend", Fh, X(c.legend), 1)) : ie("", !0),
@@ -8334,7 +8334,7 @@ function $h(e, t, n, i, a, s) {
8334
8334
  }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : ie("", !0),
8335
8335
  G(c, null, {
8336
8336
  default: b(() => t[2] || (t[2] = [
8337
- fe("Auth Methods")
8337
+ he("Auth Methods")
8338
8338
  ])),
8339
8339
  _: 1
8340
8340
  }),
@@ -8349,7 +8349,7 @@ function $h(e, t, n, i, a, s) {
8349
8349
  onChange: (I) => s.handleUpdate(I, m.value)
8350
8350
  }, {
8351
8351
  default: b(() => [
8352
- fe(X(m.label), 1)
8352
+ he(X(m.label), 1)
8353
8353
  ]),
8354
8354
  _: 2
8355
8355
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
@@ -8893,18 +8893,18 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
8893
8893
  "enabled",
8894
8894
  ...["identifier", "limit", "window_size", "error_code", "error_message"].map((j) => `config-${j}`)
8895
8895
  ]), a = (j) => j === void 0 ? !1 : i.has(j), { t: s } = Et("en-us", nn), o = e, r = J(() => {
8896
- var j, N, _;
8897
- const te = (N = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : N.find((re) => re.type === "selectionGroup" && re.model === "selectionGroup");
8898
- return { fields: [(_ = o.formSchema) == null ? void 0 : _.fields.find((re) => re.model === "enabled"), te].filter(Boolean) };
8896
+ var j, V, _;
8897
+ const te = (V = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : V.find((le) => le.type === "selectionGroup" && le.model === "selectionGroup");
8898
+ return { fields: [(_ = o.formSchema) == null ? void 0 : _.fields.find((le) => le.model === "enabled"), te].filter(Boolean) };
8899
8899
  }), c = J(() => {
8900
- var j, N;
8901
- const _ = ((N = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : N.filter((U) => !a(U.model))) ?? [], te = [], re = [], ue = [];
8900
+ var j, V;
8901
+ const _ = ((V = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : V.filter((U) => !a(U.model))) ?? [], te = [], le = [], ue = [];
8902
8902
  let ee = !1;
8903
8903
  for (const U of _) {
8904
8904
  const Y = U.model;
8905
8905
  if (Y !== void 0) {
8906
8906
  if (Y.startsWith("config-redis-")) {
8907
- (U.model === "config-redis-cluster_addresses" || U.model === "config-redis-sentinel_addresses") && (U.inputAttributes.help = s("rla.redis.address_example")), re.push(U);
8907
+ (U.model === "config-redis-cluster_addresses" || U.model === "config-redis-sentinel_addresses") && (U.inputAttributes.help = s("rla.redis.address_example")), le.push(U);
8908
8908
  continue;
8909
8909
  }
8910
8910
  ee ? ue.push(U) : te.push(U), U.model === "config-strategy" && (ee = !0);
@@ -8912,101 +8912,101 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
8912
8912
  }
8913
8913
  return {
8914
8914
  endsWithStrategy: { fields: te },
8915
- redis: { fields: re },
8915
+ redis: { fields: le },
8916
8916
  afterStrategy: { fields: ue }
8917
8917
  };
8918
8918
  }), d = J(() => {
8919
8919
  const j = o.formModel["config-window_type"];
8920
8920
  return Object.prototype.hasOwnProperty.call(n, j) ? n[j] : [];
8921
8921
  }), u = J(() => {
8922
- var j, N;
8923
- return (N = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : N.find((_) => _.model === "config-identifier");
8922
+ var j, V;
8923
+ return (V = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : V.find((_) => _.model === "config-identifier");
8924
8924
  }), A = J(
8925
8925
  () => {
8926
- var j, N, _;
8927
- return (((_ = (N = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : N.find((te) => te.model === "config-identifier")) == null ? void 0 : _.values) ?? []).map((te) => ({
8926
+ var j, V, _;
8927
+ return (((_ = (V = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : V.find((te) => te.model === "config-identifier")) == null ? void 0 : _.values) ?? []).map((te) => ({
8928
8928
  label: s(`rla.identifiers.options.${te}`),
8929
8929
  value: te
8930
8930
  }));
8931
8931
  }
8932
8932
  ), m = $(), I = $(!0), D = J(
8933
8933
  () => {
8934
- var j, N, _;
8935
- return o.formModel["config-window_type"] ?? ((_ = (N = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : N.find((te) => te.model === "config-window_type")) == null ? void 0 : _.default);
8934
+ var j, V, _;
8935
+ return o.formModel["config-window_type"] ?? ((_ = (V = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : V.find((te) => te.model === "config-window_type")) == null ? void 0 : _.default);
8936
8936
  }
8937
8937
  ), y = J(() => {
8938
- var j, N, _, te, re, ue;
8939
- const ee = (_ = (N = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : N.find((U) => U.model === "config-window_type")) == null ? void 0 : _.default;
8940
- return (((ue = (re = (te = o.formSchema) == null ? void 0 : te.fields) == null ? void 0 : re.find((U) => U.model === "config-window_type")) == null ? void 0 : ue.values) ?? []).sort((U, Y) => U === ee ? -1 : Y === ee ? 1 : 0);
8938
+ var j, V, _, te, le, ue;
8939
+ const ee = (_ = (V = (j = o.formSchema) == null ? void 0 : j.fields) == null ? void 0 : V.find((U) => U.model === "config-window_type")) == null ? void 0 : _.default;
8940
+ return (((ue = (le = (te = o.formSchema) == null ? void 0 : te.fields) == null ? void 0 : le.find((U) => U.model === "config-window_type")) == null ? void 0 : ue.values) ?? []).sort((U, Y) => U === ee ? -1 : Y === ee ? 1 : 0);
8941
8941
  }), S = J(() => {
8942
8942
  var j;
8943
- const N = (j = o.formModel["config-limit"]) == null ? void 0 : j.map((_, te) => {
8944
- var re, ue;
8943
+ const V = (j = o.formModel["config-limit"]) == null ? void 0 : j.map((_, te) => {
8944
+ var le, ue;
8945
8945
  return {
8946
8946
  limit: _,
8947
- windowSize: (ue = (re = o.formModel) == null ? void 0 : re["config-window_size"]) == null ? void 0 : ue[te]
8947
+ windowSize: (ue = (le = o.formModel) == null ? void 0 : le["config-window_size"]) == null ? void 0 : ue[te]
8948
8948
  };
8949
8949
  });
8950
- return !Array.isArray(N) || N.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : N;
8950
+ return !Array.isArray(V) || V.length === 0 ? [{ limit: void 0, windowSize: void 0 }] : V;
8951
8951
  }), O = J(
8952
8952
  () => {
8953
- var j, N, _, te;
8954
- return ((j = o.formModel) == null ? void 0 : j["config-identifier"]) ?? ((te = (_ = (N = o.formSchema) == null ? void 0 : N.fields) == null ? void 0 : _.find((re) => re.model === "config-identifier")) == null ? void 0 : te.default);
8953
+ var j, V, _, te;
8954
+ return ((j = o.formModel) == null ? void 0 : j["config-identifier"]) ?? ((te = (_ = (V = o.formSchema) == null ? void 0 : V.fields) == null ? void 0 : _.find((le) => le.model === "config-identifier")) == null ? void 0 : te.default);
8955
8955
  }
8956
8956
  ), Q = J(
8957
8957
  () => {
8958
- var j, N, _, te;
8959
- return ((j = o.formModel) == null ? void 0 : j["config-error_code"]) ?? ((te = (_ = (N = o.formSchema) == null ? void 0 : N.fields) == null ? void 0 : _.find((re) => re.model === "config-error_code")) == null ? void 0 : te.default);
8958
+ var j, V, _, te;
8959
+ return ((j = o.formModel) == null ? void 0 : j["config-error_code"]) ?? ((te = (_ = (V = o.formSchema) == null ? void 0 : V.fields) == null ? void 0 : _.find((le) => le.model === "config-error_code")) == null ? void 0 : te.default);
8960
8960
  }
8961
8961
  ), E = J(
8962
8962
  () => {
8963
- var j, N, _, te;
8964
- return ((j = o.formModel) == null ? void 0 : j["config-error_message"]) ?? ((te = (_ = (N = o.formSchema) == null ? void 0 : N.fields) == null ? void 0 : _.find((re) => re.model === "config-error_message")) == null ? void 0 : te.default);
8963
+ var j, V, _, te;
8964
+ return ((j = o.formModel) == null ? void 0 : j["config-error_message"]) ?? ((te = (_ = (V = o.formSchema) == null ? void 0 : V.fields) == null ? void 0 : _.find((le) => le.model === "config-error_message")) == null ? void 0 : te.default);
8965
8965
  }
8966
- ), f = (j, N) => {
8967
- if (N === m.value) {
8966
+ ), f = (j, V) => {
8967
+ if (V === m.value) {
8968
8968
  o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"), Pn(() => {
8969
8969
  m.value = void 0;
8970
8970
  });
8971
8971
  return;
8972
8972
  }
8973
8973
  o.onModelUpdated([j.config.limit], "config-limit"), o.onModelUpdated([j.config.window_size], "config-window_size"), Pn(() => {
8974
- m.value = N;
8974
+ m.value = V;
8975
8975
  });
8976
8976
  }, C = (j) => {
8977
8977
  m.value !== void 0 && (m.value = void 0), j !== null && o.onModelUpdated(j.toString(), "config-window_type");
8978
- }, h = (j, N) => {
8978
+ }, h = (j, V) => {
8979
8979
  var _;
8980
8980
  m.value !== void 0 && (m.value = void 0);
8981
8981
  const te = bt(((_ = o.formModel) == null ? void 0 : _["config-limit"]) ?? []);
8982
- te[j] = N, o.onModelUpdated(te, "config-limit");
8983
- }, k = (j, N) => {
8982
+ te[j] = V, o.onModelUpdated(te, "config-limit");
8983
+ }, k = (j, V) => {
8984
8984
  var _;
8985
8985
  m.value !== void 0 && (m.value = void 0);
8986
8986
  const te = bt(((_ = o.formModel) == null ? void 0 : _["config-window_size"]) ?? []);
8987
- te[j] = N, o.onModelUpdated(te, "config-window_size");
8987
+ te[j] = V, o.onModelUpdated(te, "config-window_size");
8988
8988
  }, x = (j) => {
8989
- var N, _;
8989
+ var V, _;
8990
8990
  m.value !== void 0 && (m.value = void 0);
8991
- const te = bt(((N = o.formModel) == null ? void 0 : N["config-limit"]) ?? []), re = bt(((_ = o.formModel) == null ? void 0 : _["config-window_size"]) ?? []);
8992
- te.length === 0 && te.push(void 0), re.length === 0 && re.push(void 0), te.splice(j + 1, 0, void 0), re.splice(j + 1, 0, void 0), o.onModelUpdated(te, "config-limit"), o.onModelUpdated(re, "config-window_size");
8991
+ const te = bt(((V = o.formModel) == null ? void 0 : V["config-limit"]) ?? []), le = bt(((_ = o.formModel) == null ? void 0 : _["config-window_size"]) ?? []);
8992
+ te.length === 0 && te.push(void 0), le.length === 0 && le.push(void 0), te.splice(j + 1, 0, void 0), le.splice(j + 1, 0, void 0), o.onModelUpdated(te, "config-limit"), o.onModelUpdated(le, "config-window_size");
8993
8993
  }, W = (j) => {
8994
- var N, _;
8994
+ var V, _;
8995
8995
  if (S.value.length > 1) {
8996
8996
  m.value !== void 0 && (m.value = void 0);
8997
- const te = bt(((N = o.formModel) == null ? void 0 : N["config-limit"]) ?? []), re = bt(((_ = o.formModel) == null ? void 0 : _["config-window_size"]) ?? []);
8998
- te.length === 0 && te.push(void 0), re.length === 0 && re.push(void 0), te.splice(j, 1), re.splice(j, 1), o.onModelUpdated(te, "config-limit"), o.onModelUpdated(re, "config-window_size");
8997
+ const te = bt(((V = o.formModel) == null ? void 0 : V["config-limit"]) ?? []), le = bt(((_ = o.formModel) == null ? void 0 : _["config-window_size"]) ?? []);
8998
+ te.length === 0 && te.push(void 0), le.length === 0 && le.push(void 0), te.splice(j, 1), le.splice(j, 1), o.onModelUpdated(te, "config-limit"), o.onModelUpdated(le, "config-window_size");
8999
8999
  }
9000
9000
  };
9001
- return (j, N) => {
9002
- const _ = q("VueFormGenerator"), te = q("KLabel"), re = q("KRadio"), ue = q("KInput"), ee = q("KButton"), U = q("KBadge"), Y = q("KTooltip"), Z = q("KCard"), M = q("KSelect"), R = q("KCollapse");
9001
+ return (j, V) => {
9002
+ const _ = q("VueFormGenerator"), te = q("KLabel"), le = q("KRadio"), ue = q("KInput"), ee = q("KButton"), U = q("KBadge"), Y = q("KTooltip"), Z = q("KCard"), M = q("KSelect"), R = q("KCollapse");
9003
9003
  return p(), B(ge, null, [
9004
9004
  v("div", mv, [
9005
9005
  G(_, {
9006
9006
  model: j.formModel,
9007
9007
  options: j.formOptions,
9008
9008
  schema: r.value,
9009
- onModelUpdated: N[0] || (N[0] = (P, ce) => j.onModelUpdated(P, ce))
9009
+ onModelUpdated: V[0] || (V[0] = (P, ce) => j.onModelUpdated(P, ce))
9010
9010
  }, null, 8, ["model", "options", "schema"]),
9011
9011
  G(Z, { class: "rla-form-request-limits" }, {
9012
9012
  title: b(() => [
@@ -9016,7 +9016,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9016
9016
  required: ""
9017
9017
  }, {
9018
9018
  default: b(() => [
9019
- fe(X(g(s)("rla.request_limits.title")), 1)
9019
+ he(X(g(s)("rla.request_limits.title")), 1)
9020
9020
  ]),
9021
9021
  _: 1
9022
9022
  }),
@@ -9038,12 +9038,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9038
9038
  }, null, 8, yv)
9039
9039
  ]),
9040
9040
  default: b(() => [
9041
- fe(X(g(s)("rla.window_type.label")) + " ", 1)
9041
+ he(X(g(s)("rla.window_type.label")) + " ", 1)
9042
9042
  ]),
9043
9043
  _: 1
9044
9044
  }),
9045
9045
  v("div", bv, [
9046
- (p(!0), B(ge, null, Oe(y.value, (P) => (p(), L(re, {
9046
+ (p(!0), B(ge, null, Oe(y.value, (P) => (p(), L(le, {
9047
9047
  key: `window-type-${P}`,
9048
9048
  "model-value": D.value,
9049
9049
  name: P,
@@ -9051,7 +9051,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9051
9051
  "onUpdate:modelValue": C
9052
9052
  }, {
9053
9053
  default: b(() => [
9054
- fe(X(g(s)(`rla.window_type.options.${P}`)), 1)
9054
+ he(X(g(s)(`rla.window_type.options.${P}`)), 1)
9055
9055
  ]),
9056
9056
  _: 2
9057
9057
  }, 1032, ["model-value", "name", "selected-value"]))), 128))
@@ -9065,7 +9065,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9065
9065
  for: `rla-form-request-limits-item-${ce}-legend`
9066
9066
  }, {
9067
9067
  default: b(() => [
9068
- fe(X(g(s)("rla.request_limits.label_index", { index: ce + 1 })), 1)
9068
+ he(X(g(s)("rla.request_limits.label_index", { index: ce + 1 })), 1)
9069
9069
  ]),
9070
9070
  _: 2
9071
9071
  }, 1032, ["for"]),
@@ -9078,14 +9078,14 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9078
9078
  "model-value": P.limit && P.limit.toString(),
9079
9079
  placeholder: g(s)("rla.request_limits.request_number"),
9080
9080
  type: "number",
9081
- "onUpdate:modelValue": (Ae) => h(ce, Number.parseInt(Ae))
9081
+ "onUpdate:modelValue": (pe) => h(ce, Number.parseInt(pe))
9082
9082
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
9083
9083
  v("div", null, X(g(s)("rla.request_limits.interval_determiner")), 1),
9084
9084
  G(ue, {
9085
9085
  "model-value": P.windowSize && P.windowSize.toString(),
9086
9086
  placeholder: g(s)("rla.request_limits.time_interval"),
9087
9087
  type: "number",
9088
- "onUpdate:modelValue": (Ae) => k(ce, Number.parseInt(Ae))
9088
+ "onUpdate:modelValue": (pe) => k(ce, Number.parseInt(pe))
9089
9089
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
9090
9090
  v("div", null, X(g(s)("rla.request_limits.seconds")), 1)
9091
9091
  ], 8, Cv),
@@ -9122,7 +9122,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9122
9122
  }, {
9123
9123
  content: b(() => [
9124
9124
  v("div", null, X(P.description), 1),
9125
- N[9] || (N[9] = v("br", null, null, -1)),
9125
+ V[9] || (V[9] = v("br", null, null, -1)),
9126
9126
  v("div", null, X(g(s)("rla.request_limits.label")) + ": " + X(P.config.limit), 1),
9127
9127
  v("div", null, X(g(s)("rla.request_limits.time_interval")) + ": " + X(P.config.window_size), 1)
9128
9128
  ]),
@@ -9133,7 +9133,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9133
9133
  onClick: () => f(P, `${D.value}-${ce}`)
9134
9134
  }, {
9135
9135
  default: b(() => [
9136
- fe(X(P.label), 1)
9136
+ he(X(P.label), 1)
9137
9137
  ]),
9138
9138
  _: 2
9139
9139
  }, 1032, ["appearance", "onClick"])
@@ -9148,7 +9148,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9148
9148
  }),
9149
9149
  G(M, {
9150
9150
  modelValue: O.value,
9151
- "onUpdate:modelValue": N[1] || (N[1] = (P) => O.value = P),
9151
+ "onUpdate:modelValue": V[1] || (V[1] = (P) => O.value = P),
9152
9152
  class: "rla-form-identifiers",
9153
9153
  items: A.value,
9154
9154
  label: g(s)("rla.identifiers.label"),
@@ -9159,7 +9159,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9159
9159
  }
9160
9160
  },
9161
9161
  required: "",
9162
- onSelected: N[2] || (N[2] = (P) => o.onModelUpdated(P.value, "config-identifier"))
9162
+ onSelected: V[2] || (V[2] = (P) => o.onModelUpdated(P.value, "config-identifier"))
9163
9163
  }, {
9164
9164
  "label-tooltip": b(() => [
9165
9165
  v("div", {
@@ -9179,7 +9179,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9179
9179
  }
9180
9180
  }, {
9181
9181
  default: b(() => [
9182
- fe(X(g(s)("rla.error_message.label")), 1)
9182
+ he(X(g(s)("rla.error_message.label")), 1)
9183
9183
  ]),
9184
9184
  _: 1
9185
9185
  }, 8, ["info"]),
@@ -9189,20 +9189,20 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9189
9189
  "model-value": Q.value && Q.value.toString(),
9190
9190
  placeholder: g(s)("rla.error_message.code_placeholder"),
9191
9191
  type: "number",
9192
- "onUpdate:modelValue": N[3] || (N[3] = (P) => j.onModelUpdated(Number.parseInt(P), "config-error_code"))
9192
+ "onUpdate:modelValue": V[3] || (V[3] = (P) => j.onModelUpdated(Number.parseInt(P), "config-error_code"))
9193
9193
  }, null, 8, ["model-value", "placeholder"]),
9194
- N[10] || (N[10] = v("div", null, ":", -1)),
9194
+ V[10] || (V[10] = v("div", null, ":", -1)),
9195
9195
  G(ue, {
9196
9196
  "model-value": E.value,
9197
9197
  placeholder: g(s)("rla.error_message.message_placeholder"),
9198
- "onUpdate:modelValue": N[4] || (N[4] = (P) => j.onModelUpdated(P, "config-error_message"))
9198
+ "onUpdate:modelValue": V[4] || (V[4] = (P) => j.onModelUpdated(P, "config-error_message"))
9199
9199
  }, null, 8, ["model-value", "placeholder"])
9200
9200
  ])
9201
9201
  ])
9202
9202
  ]),
9203
9203
  G(R, {
9204
9204
  modelValue: I.value,
9205
- "onUpdate:modelValue": N[8] || (N[8] = (P) => I.value = P),
9205
+ "onUpdate:modelValue": V[8] || (V[8] = (P) => I.value = P),
9206
9206
  "trigger-label": g(s)("rla.view_advanced_fields")
9207
9207
  }, {
9208
9208
  default: b(() => [
@@ -9210,7 +9210,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9210
9210
  model: j.formModel,
9211
9211
  options: j.formOptions,
9212
9212
  schema: c.value.endsWithStrategy,
9213
- onModelUpdated: N[5] || (N[5] = (P, ce) => j.onModelUpdated(P, ce))
9213
+ onModelUpdated: V[5] || (V[5] = (P, ce) => j.onModelUpdated(P, ce))
9214
9214
  }, null, 8, ["model", "options", "schema"]),
9215
9215
  j.formModel["config-strategy"] === "redis" ? (p(), L(Z, {
9216
9216
  key: 0,
@@ -9222,17 +9222,17 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9222
9222
  model: j.formModel,
9223
9223
  options: j.formOptions,
9224
9224
  schema: c.value.redis,
9225
- onModelUpdated: N[6] || (N[6] = (P, ce) => j.onModelUpdated(P, ce))
9225
+ onModelUpdated: V[6] || (V[6] = (P, ce) => j.onModelUpdated(P, ce))
9226
9226
  }, null, 8, ["model", "options", "schema"])
9227
9227
  ]),
9228
9228
  _: 1
9229
9229
  }, 8, ["title"])) : ie("", !0),
9230
9230
  G(_, {
9231
- class: Be({ "rla-last-vfg": j.formModel["config-strategy"] !== "redis" }),
9231
+ class: Ce({ "rla-last-vfg": j.formModel["config-strategy"] !== "redis" }),
9232
9232
  model: j.formModel,
9233
9233
  options: j.formOptions,
9234
9234
  schema: c.value.afterStrategy,
9235
- onModelUpdated: N[7] || (N[7] = (P, ce) => j.onModelUpdated(P, ce))
9235
+ onModelUpdated: V[7] || (V[7] = (P, ce) => j.onModelUpdated(P, ce))
9236
9236
  }, null, 8, ["class", "model", "options", "schema"])
9237
9237
  ]),
9238
9238
  _: 1
@@ -10057,30 +10057,30 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10057
10057
  (C || f) && (k = C || (f.fields ? f.fields : f));
10058
10058
  const x = s().concat(f.blacklist ? f.blacklist : []), W = Object.keys(k).filter((ue) => !x.includes(ue)), j = W.indexOf("comparator");
10059
10059
  j > -1 && W.splice(j, 1);
10060
- let N = { fields: [] };
10060
+ let V = { fields: [] };
10061
10061
  const _ = {};
10062
10062
  W.forEach((ue) => {
10063
- c(k[ue], ue, k, _, N, h);
10063
+ c(k[ue], ue, k, _, V, h);
10064
10064
  });
10065
- const te = _.name, re = At[te];
10066
- if (Do(te) || re != null && re.useLegacyForm || e != null && e.credential)
10067
- N.fields.sort((ue, ee) => (ue.order = ue.order || 0, ee.order = ee.order || 0, ue.order - ee.order));
10065
+ const te = _.name, le = At[te];
10066
+ if (Do(te) || le != null && le.useLegacyForm || e != null && e.credential)
10067
+ V.fields.sort((ue, ee) => (ue.order = ue.order || 0, ee.order = ee.order || 0, ue.order - ee.order));
10068
10068
  else {
10069
10069
  const ue = [], ee = [], U = [], Y = {};
10070
- if (re != null && re.fieldRules) {
10070
+ if (le != null && le.fieldRules) {
10071
10071
  const R = [
10072
- ...re.fieldRules.atLeastOneOf ?? [],
10073
- ...re.fieldRules.onlyOneOf ?? [],
10074
- ...re.fieldRules.mutuallyRequired ?? []
10072
+ ...le.fieldRules.atLeastOneOf ?? [],
10073
+ ...le.fieldRules.onlyOneOf ?? [],
10074
+ ...le.fieldRules.mutuallyRequired ?? []
10075
10075
  ];
10076
- if (re.fieldRules.onlyOneOfMutuallyRequired)
10077
- for (const P of re.fieldRules.onlyOneOfMutuallyRequired)
10076
+ if (le.fieldRules.onlyOneOfMutuallyRequired)
10077
+ for (const P of le.fieldRules.onlyOneOfMutuallyRequired)
10078
10078
  R.push(...P);
10079
10079
  for (const P of R)
10080
10080
  for (const ce of P)
10081
10081
  Y[ce.replace(/-/g, "_").replace(/\./g, "-")] = !1;
10082
10082
  }
10083
- for (const R of N.fields) {
10083
+ for (const R of V.fields) {
10084
10084
  if (R.pinned) {
10085
10085
  ue.push(R);
10086
10086
  continue;
@@ -10113,12 +10113,12 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10113
10113
  beforeContent: "plugin-config-before-content",
10114
10114
  emptyState: "plugin-config-empty-state"
10115
10115
  }
10116
- }), N = {
10116
+ }), V = {
10117
10117
  groups: M
10118
10118
  };
10119
10119
  }
10120
10120
  return {
10121
- schema: N,
10121
+ schema: V,
10122
10122
  model: _,
10123
10123
  options: {
10124
10124
  noneSelectedText: "Nothing Selected...",
@@ -10130,9 +10130,9 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
10130
10130
  return k[C] = j ? f.default : null, f.id = C, f.model = C, f.fields && f.type === "record" ? u(f, C, h, k, x, W) : (h[C] = f, E(f, k), W && W[C] && d(h[C], W[C]), x.fields.push(f)), h;
10131
10131
  }, d = (f, C) => (C && (Object.assign(f, C), C.label && (f.label = C.label)), f), u = (f, C, h, k, x, W) => {
10132
10132
  f.fields.forEach((j) => {
10133
- Object.keys(j).forEach((N) => {
10134
- const _ = j[N];
10135
- h = c(_, C + "-" + N, h, k, x, W);
10133
+ Object.keys(j).forEach((V) => {
10134
+ const _ = j[V];
10135
+ h = c(_, C + "-" + V, h, k, x, W);
10136
10136
  });
10137
10137
  });
10138
10138
  }, A = (f, C) => {
@@ -10855,11 +10855,11 @@ const Ho = {
10855
10855
  }), j = J(() => {
10856
10856
  var ee;
10857
10857
  return ((ee = A == null ? void 0 : A.value) == null ? void 0 : ee.name) === "konnect";
10858
- }), N = J(() => !!A.value && !!d.value), _ = (ee) => ee.label ? `${ee.label} - (${ee.vault.name} - ${ee.vault.id})` : ee.value, te = (ee) => {
10858
+ }), V = J(() => !!A.value && !!d.value), _ = (ee) => ee.label ? `${ee.label} - (${ee.vault.name} - ${ee.vault.id})` : ee.value, te = (ee) => {
10859
10859
  var U, Y;
10860
10860
  let Z = `${a.config.apiBaseUrl}${ls.form[a.config.app].edit}`;
10861
10861
  return a.config.app === "konnect" ? Z = Z.replace(/{controlPlaneId}/gi, ((U = a.config) == null ? void 0 : U.controlPlaneId) || "") : a.config.app === "kongManager" && (Z = Z.replace(/\/{workspace}/gi, (Y = a.config) != null && Y.workspace ? `/${a.config.workspace}` : "")), Z.replace(/{id}/gi, ee);
10862
- }, re = (ee, U) => {
10862
+ }, le = (ee, U) => {
10863
10863
  var Y;
10864
10864
  return a.config.app !== "konnect" ? "<not_applicable>" : `${a.config.apiBaseUrl}${cs.form[a.config.app].edit}`.replace(/{controlPlaneId}/gi, ((Y = a.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{id}/gi, U).replace(/{secretId}/gi, ee);
10865
10865
  }, ue = () => {
@@ -10880,7 +10880,7 @@ const Ho = {
10880
10880
  if (P != null && P.name)
10881
10881
  if (U = P, Y = R.vaultPrefix, U.name === "konnect") {
10882
10882
  if (R.secretId) {
10883
- const { data: ce } = await o.get(re(R.secretId, P.config.config_store_id));
10883
+ const { data: ce } = await o.get(le(R.secretId, P.config.config_store_id));
10884
10884
  ce.key === R.secretId && (Z = R.secretId, M = R.optionalSecretKey ?? "");
10885
10885
  }
10886
10886
  } else
@@ -10901,7 +10901,7 @@ const Ho = {
10901
10901
  }, { immediate: !0 }), (ee, U) => {
10902
10902
  const Y = q("KEmptyState"), Z = q("KSelect"), M = q("KInput"), R = q("KModal");
10903
10903
  return p(), L(R, {
10904
- "action-button-disabled": !N.value,
10904
+ "action-button-disabled": !V.value,
10905
10905
  "action-button-text": g(i)("vault_secret_picker.actions.use_key"),
10906
10906
  class: "vault-secret-picker",
10907
10907
  "data-testid": "vault-secret-picker-modal",
@@ -11143,7 +11143,7 @@ const Ho = {
11143
11143
  return i.config.app === "konnect" ? a.get(Z).then((M) => {
11144
11144
  const { data: { data: R } } = M;
11145
11145
  if (delete Y.size, delete Y.offset, R.length && Object.keys(Y).length === 1) {
11146
- const P = Object.keys(Y)[0], ce = R.filter((Ae) => Ae[P] ? !!Ae[P].toLowerCase().includes(Y[P].toLowerCase()) : !1);
11146
+ const P = Object.keys(Y)[0], ce = R.filter((pe) => pe[P] ? !!pe[P].toLowerCase().includes(Y[P].toLowerCase()) : !1);
11147
11147
  M.data.data = ce;
11148
11148
  }
11149
11149
  return M;
@@ -11162,40 +11162,40 @@ const Ho = {
11162
11162
  var P, ce;
11163
11163
  const U = { ...i.schema }, Y = f, Z = E, M = Object.keys(Y), R = {};
11164
11164
  if (!c(Q.value))
11165
- for (let Ae = 0; Ae < ((ce = (P = Q.value) == null ? void 0 : P.fields) == null ? void 0 : ce.length); Ae++)
11166
- U[Q.value.fields[Ae].model] = Q.value.fields[Ae];
11167
- return Di.forEach((Ae) => {
11168
- U[Ae] && (U[Ae].fields.forEach((pe) => {
11169
- pe.fields && pe.fields.forEach((ae) => {
11165
+ for (let pe = 0; pe < ((ce = (P = Q.value) == null ? void 0 : P.fields) == null ? void 0 : ce.length); pe++)
11166
+ U[Q.value.fields[pe].model] = Q.value.fields[pe];
11167
+ return Di.forEach((pe) => {
11168
+ U[pe] && (U[pe].fields.forEach((de) => {
11169
+ de.fields && de.fields.forEach((ae) => {
11170
11170
  U[ae.model] = ae;
11171
- }), pe.model && (U[pe.model] = pe);
11172
- }), delete U[Ae]);
11173
- }), M.forEach((Ae) => {
11171
+ }), de.model && (U[de.model] = de);
11172
+ }), delete U[pe]);
11173
+ }), M.forEach((pe) => {
11174
11174
  var Yt;
11175
- if (!U[Ae])
11175
+ if (!U[pe])
11176
11176
  return;
11177
- const pe = U[Ae];
11178
- let ae = Y[Ae];
11179
- const ze = Z[Ae], Re = Array.isArray(ae) ? "array" : typeof ae, et = pe ? pe.valueType : null, It = pe ? pe.valueArrayType : null, jt = pe ? pe.transform : null;
11180
- if (ae == null && ze == null && !pe.submitWhenNull)
11177
+ const de = U[pe];
11178
+ let ae = Y[pe];
11179
+ const ze = Z[pe], Re = Array.isArray(ae) ? "array" : typeof ae, et = de ? de.valueType : null, It = de ? de.valueArrayType : null, jt = de ? de.transform : null;
11180
+ if (ae == null && ze == null && !de.submitWhenNull)
11181
11181
  return;
11182
- if (pe) {
11182
+ if (de) {
11183
11183
  if (et && Re !== et)
11184
11184
  switch (et) {
11185
11185
  case "array":
11186
- Re === "string" && ae.length && (ae = ae.split(",").map((Ee) => {
11187
- if (Ee = Ee.trim(), It === "string")
11188
- return String(Ee);
11186
+ Re === "string" && ae.length && (ae = ae.split(",").map((be) => {
11187
+ if (be = be.trim(), It === "string")
11188
+ return String(be);
11189
11189
  if (It === "number")
11190
- return Number(Ee);
11190
+ return Number(be);
11191
11191
  if (It === "boolean") {
11192
- if (typeof Ee == "string")
11193
- return Ee.toLowerCase() === "true" || Ee === "1";
11194
- if (typeof Ee == "number")
11195
- return Ee === 1;
11192
+ if (typeof be == "string")
11193
+ return be.toLowerCase() === "true" || be === "1";
11194
+ if (typeof be == "number")
11195
+ return be === 1;
11196
11196
  }
11197
- return Ee;
11198
- })), (!ae || !ae.length) && (ae = pe.submitWhenNull ? null : []);
11197
+ return be;
11198
+ })), (!ae || !ae.length) && (ae = de.submitWhenNull ? null : []);
11199
11199
  break;
11200
11200
  case "number":
11201
11201
  ae = Number(ae);
@@ -11207,33 +11207,33 @@ const Ho = {
11207
11207
  ae = ae == null ? "" : String(ae);
11208
11208
  break;
11209
11209
  }
11210
- else et === "array" && (!ae || !ae.length ? ae = pe.submitWhenNull ? null : [] : ((Yt = pe.inputAttributes) == null ? void 0 : Yt.type) === "number" && (ae = ae.map((Ee) => Number(Ee))));
11211
- if (pe.type === "array" && pe.nestedFields) {
11212
- const Ee = (K) => {
11210
+ else et === "array" && (!ae || !ae.length ? ae = de.submitWhenNull ? null : [] : ((Yt = de.inputAttributes) == null ? void 0 : Yt.type) === "number" && (ae = ae.map((be) => Number(be))));
11211
+ if (de.type === "array" && de.nestedFields) {
11212
+ const be = (K) => {
11213
11213
  Object.keys(K).forEach((se) => {
11214
- K[se] && typeof K[se] == "object" && K[se] !== null ? Ee(K[se]) : (K[se] === void 0 || K[se] === null || typeof K[se] == "number" && isNaN(K[se]) || typeof K[se] == "string" && K[se].trim().length === 0) && delete K[se];
11214
+ K[se] && typeof K[se] == "object" && K[se] !== null ? be(K[se]) : (K[se] === void 0 || K[se] === null || typeof K[se] == "number" && isNaN(K[se]) || typeof K[se] == "string" && K[se].trim().length === 0) && delete K[se];
11215
11215
  });
11216
11216
  };
11217
- ae && typeof ae == "object" && Ee(ae);
11217
+ ae && typeof ae == "object" && be(ae);
11218
11218
  }
11219
- pe.type === "object-advanced" && pe.fields && ae !== null && (Object.entries(ae).length === 0 ? ae = null : Object.keys(ae).forEach((Ee) => {
11220
- Array.isArray(ae[Ee]) || (ae[Ee] = ae[Ee].split(","));
11219
+ de.type === "object-advanced" && de.fields && ae !== null && (Object.entries(ae).length === 0 ? ae = null : Object.keys(ae).forEach((be) => {
11220
+ Array.isArray(ae[be]) || (ae[be] = ae[be].split(","));
11221
11221
  }));
11222
11222
  }
11223
- let Le = o(Ae);
11224
- if (pe.fieldNameHasDashes) {
11225
- const [Ee, ...K] = Le.split(".").reverse();
11226
- Le = [Ee.replace(/_/g, "-"), ...K].reverse().join(".");
11223
+ let Le = o(pe);
11224
+ if (de.fieldNameHasDashes) {
11225
+ const [be, ...K] = Le.split(".").reverse();
11226
+ Le = [be.replace(/_/g, "-"), ...K].reverse().join(".");
11227
11227
  }
11228
11228
  if (et === "object-expand") {
11229
- let Ee;
11230
- [Le, Ee] = Le.split(".");
11229
+ let be;
11230
+ [Le, be] = Le.split(".");
11231
11231
  let K = {};
11232
- R[Le] && (K = R[Le]), K[Ee] = ae, ae = K;
11232
+ R[Le] && (K = R[Le]), K[be] = ae, ae = K;
11233
11233
  }
11234
- ze !== void 0 && ae === "" && ae !== ze ? R[Le] = et === "object" ? {} : null : pe.type === "checklist" && ae === "" ? R[Le] = [] : ae !== "" && (R[Le] = ae), R[Le] = jt ? jt(ae) : R[Le], d(Le, R);
11234
+ ze !== void 0 && ae === "" && ae !== ze ? R[Le] = et === "object" ? {} : null : de.type === "checklist" && ae === "" ? R[Le] = [] : ae !== "" && (R[Le] = ae), R[Le] = jt ? jt(ae) : R[Le], d(Le, R);
11235
11235
  }), r(R);
11236
- }, N = (U, Y) => {
11236
+ }, V = (U, Y) => {
11237
11237
  var R;
11238
11238
  const Z = { [Y]: U };
11239
11239
  typeof ((R = i.schema[Y]) == null ? void 0 : R.modelTransformer) == "function" && (Z[Y] = i.schema[Y].modelTransformer(U));
@@ -11245,11 +11245,11 @@ const Ho = {
11245
11245
  });
11246
11246
  }, _ = (U, Y) => {
11247
11247
  Object.keys(U).forEach((Z) => {
11248
- var Ae, pe;
11248
+ var pe, de;
11249
11249
  let M = Y ? `${Y}-${Z}` : Z, R = i.schema[M];
11250
11250
  if (!R) {
11251
11251
  const ae = Y ? `${Y}-${Z.replace(/-/g, "_")}` : Z.replace(/-/g, "_");
11252
- (Ae = i.schema[ae]) != null && Ae.fieldNameHasDashes && (M = ae, R = i.schema[M]), Y && ((pe = i.schema[Y]) == null ? void 0 : pe.keyFromObject) === Z && (M = Y, R = i.schema[M]);
11252
+ (pe = i.schema[ae]) != null && pe.fieldNameHasDashes && (M = ae, R = i.schema[M]), Y && ((de = i.schema[Y]) == null ? void 0 : de.keyFromObject) === Z && (M = Y, R = i.schema[M]);
11253
11253
  }
11254
11254
  const P = U[Z], ce = typeof P;
11255
11255
  if (R && R.type === "object-advanced" && !P) {
@@ -11272,7 +11272,7 @@ const Ho = {
11272
11272
  originalModel: E,
11273
11273
  data: j()
11274
11274
  });
11275
- }, te = $(!0), re = () => {
11275
+ }, te = $(!0), le = () => {
11276
11276
  var U;
11277
11277
  if (i.record && i.schema && (_({
11278
11278
  enabled: i.record.enabled ?? !0,
@@ -11309,10 +11309,10 @@ const Ho = {
11309
11309
  const Z = s(U);
11310
11310
  Object.assign(f, Z.model), Q.value = {
11311
11311
  fields: (R = (M = Q.value) == null ? void 0 : M.fields) == null ? void 0 : R.map((P) => ({ ...P, disabled: P.disabled || !1 }))
11312
- }, Object.assign(E, JSON.parse(JSON.stringify(Z.model))), S.value = Do(Z.model.name), re();
11312
+ }, Object.assign(E, JSON.parse(JSON.stringify(Z.model))), S.value = Do(Z.model.name), le();
11313
11313
  }, { immediate: !0, deep: !0 }), fn(() => {
11314
11314
  var U, Y;
11315
- O.value = s(i.schema), Object.assign(f, ((U = O.value) == null ? void 0 : U.model) || {}), Q.value = ((Y = O.value) == null ? void 0 : Y.schema) || {}, re();
11315
+ O.value = s(i.schema), Object.assign(f, ((U = O.value) == null ? void 0 : U.model) || {}), Q.value = ((Y = O.value) == null ? void 0 : Y.schema) || {}, le();
11316
11316
  }), (U, Y) => {
11317
11317
  var R;
11318
11318
  const Z = q("KSkeleton"), M = q("VueFormGenerator");
@@ -11328,13 +11328,13 @@ const Ho = {
11328
11328
  "form-options": C.value,
11329
11329
  "form-schema": Q.value,
11330
11330
  "is-editing": e.editing,
11331
- "on-model-updated": N
11331
+ "on-model-updated": V
11332
11332
  }, St({ _: 2 }, [
11333
11333
  e.enableVaultSecretPicker ? {
11334
11334
  name: g(xt),
11335
11335
  fn: b((P) => [
11336
11336
  P.schema.referenceable ? (p(), L(g(us), gt({ key: 0 }, P, {
11337
- onOpen: Y[0] || (Y[0] = (ce, Ae) => x(ce, Ae))
11337
+ onOpen: Y[0] || (Y[0] = (ce, pe) => x(ce, pe))
11338
11338
  }), null, 16)) : ie("", !0)
11339
11339
  ]),
11340
11340
  key: "0"
@@ -11345,7 +11345,7 @@ const Ho = {
11345
11345
  model: f,
11346
11346
  options: C.value,
11347
11347
  schema: Q.value,
11348
- onModelUpdated: N,
11348
+ onModelUpdated: V,
11349
11349
  onRefreshModel: j
11350
11350
  }, St({
11351
11351
  "plugin-config-empty-state": b(() => [
@@ -11366,7 +11366,7 @@ const Ho = {
11366
11366
  name: g(xt),
11367
11367
  fn: b((P) => [
11368
11368
  P.schema.referenceable ? (p(), L(g(us), gt({ key: 0 }, P, {
11369
- onOpen: Y[1] || (Y[1] = (ce, Ae) => x(ce, Ae))
11369
+ onOpen: Y[1] || (Y[1] = (ce, pe) => x(ce, pe))
11370
11370
  }), null, 16)) : ie("", !0)
11371
11371
  ]),
11372
11372
  key: "1"
@@ -11474,12 +11474,19 @@ const Ho = {
11474
11474
  enableVaultSecretPicker: {
11475
11475
  type: Boolean,
11476
11476
  default: !1
11477
+ },
11478
+ /**
11479
+ * Custom loaded schema for the plugin
11480
+ */
11481
+ schema: {
11482
+ type: Object,
11483
+ default: null
11477
11484
  }
11478
11485
  },
11479
11486
  emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated"],
11480
11487
  setup(e, { emit: t }) {
11481
- var Ee;
11482
- const n = t, i = e, a = ai(), { i18n: { t: s } } = Ye.useI18n(), { customSchemas: o, typedefs: r } = Ye.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = Ye.usePluginHelpers(), { getMessageFromError: d } = ii(), { capitalize: u } = Fi(), { objectsAreEqual: A } = ni(), { axiosInstance: m } = Wt((Ee = i.config) == null ? void 0 : Ee.axiosRequestConfig), I = $(!1), D = J(() => !!i.pluginId), y = J(() => i.pluginId ? Ht.Edit : Ht.Create), S = $(null), O = J(() => !!(i.credential && i.config.entityId)), Q = $(null), E = $({}), f = $(!1), C = In({
11488
+ var be;
11489
+ const n = t, i = e, a = ai(), { i18n: { t: s } } = Ye.useI18n(), { customSchemas: o, typedefs: r } = Ye.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = Ye.usePluginHelpers(), { getMessageFromError: d } = ii(), { capitalize: u } = Fi(), { objectsAreEqual: A } = ni(), { axiosInstance: m } = Wt((be = i.config) == null ? void 0 : be.axiosRequestConfig), I = $(!1), D = J(() => !!i.pluginId), y = J(() => i.pluginId ? Ht.Edit : Ht.Create), S = $(null), O = J(() => !!(i.credential && i.config.entityId)), Q = $(null), E = $({}), f = $(!1), C = In({
11483
11490
  enabled: !0,
11484
11491
  protocols: [],
11485
11492
  tags: []
@@ -11513,43 +11520,43 @@ const Ho = {
11513
11520
  return i.config.entityType && i.config.entityId ? Ne.form[i.config.app].edit.forEntity.replace(/{entityType}/gi, i.config.entityType).replace(/{entityId}/gi, i.config.entityId) : Ne.form[i.config.app].edit.all;
11514
11521
  }), j = () => {
11515
11522
  I.value = !I.value;
11516
- }, N = J(() => {
11517
- var ne, le, de, we, he, z, F, oe;
11518
- const K = i.config.entityType === "consumers" && i.config.entityId || ((le = (ne = Q.value) == null ? void 0 : ne.consumer) == null ? void 0 : le.id), se = i.config.entityType === "consumer_groups" && i.config.entityId || ((we = (de = Q.value) == null ? void 0 : de.consumer_group) == null ? void 0 : we.id), T = i.config.entityType === "services" && i.config.entityId || ((z = (he = Q.value) == null ? void 0 : he.service) == null ? void 0 : z.id), be = i.config.entityType === "routes" && i.config.entityId || ((oe = (F = Q.value) == null ? void 0 : F.route) == null ? void 0 : oe.id);
11519
- if (!(K || se || T || be))
11523
+ }, V = J(() => {
11524
+ var ne, oe, Ae, Ee, Be, z, F, re;
11525
+ const K = i.config.entityType === "consumers" && i.config.entityId || ((oe = (ne = Q.value) == null ? void 0 : ne.consumer) == null ? void 0 : oe.id), se = i.config.entityType === "consumer_groups" && i.config.entityId || ((Ee = (Ae = Q.value) == null ? void 0 : Ae.consumer_group) == null ? void 0 : Ee.id), T = i.config.entityType === "services" && i.config.entityId || ((z = (Be = Q.value) == null ? void 0 : Be.service) == null ? void 0 : z.id), fe = i.config.entityType === "routes" && i.config.entityId || ((re = (F = Q.value) == null ? void 0 : F.route) == null ? void 0 : re.id);
11526
+ if (!(K || se || T || fe))
11520
11527
  return {
11521
11528
  global: {
11522
11529
  entity: l.GLOBAL,
11523
11530
  entityEndpoint: "plugins"
11524
11531
  }
11525
11532
  };
11526
- const V = {};
11527
- return T && (V.service = {
11533
+ const N = {};
11534
+ return T && (N.service = {
11528
11535
  entity: l.SERVICE,
11529
11536
  entityEndpoint: "services",
11530
11537
  id: T,
11531
11538
  idField: rn.SERVICE
11532
- }), be && (V.route = {
11539
+ }), fe && (N.route = {
11533
11540
  entity: l.ROUTE,
11534
11541
  entityEndpoint: "routes",
11535
- id: be,
11542
+ id: fe,
11536
11543
  idField: rn.ROUTE
11537
- }), K && (V.consumer = {
11544
+ }), K && (N.consumer = {
11538
11545
  entity: l.CONSUMER,
11539
11546
  entityEndpoint: "consumers",
11540
11547
  id: K,
11541
11548
  idField: rn.CONSUMER
11542
- }), se && (V.consumer_group = {
11549
+ }), se && (N.consumer_group = {
11543
11550
  entity: l.CONSUMER_GROUP,
11544
11551
  entityEndpoint: "consumer_groups",
11545
11552
  id: se,
11546
11553
  idField: rn.CONSUMER_GROUP
11547
- }), i.config.entityType && (V.focusedEntity = {
11554
+ }), i.config.entityType && (N.focusedEntity = {
11548
11555
  entity: l[i.config.entityType.substring(0, i.config.entityType.length - 1).toUpperCase()],
11549
11556
  entityEndpoint: i.config.entityType,
11550
11557
  id: i.config.entityId,
11551
11558
  idField: rn[i.config.entityType.substring(0, i.config.entityType.length - 1).toUpperCase()]
11552
- }), V;
11559
+ }), N;
11553
11560
  }), _ = In({
11554
11561
  // this is a required field that the user cannot set, it's always the name of the plugin
11555
11562
  // ex. 'acl'
@@ -11618,45 +11625,45 @@ const Ho = {
11618
11625
  var T;
11619
11626
  const K = i.developer ? "developers" : "consumers", se = ((T = ln[i.pluginType]) == null ? void 0 : T.endpoint) || "/plugins";
11620
11627
  return `${K}/${i.config.entityId}${i.developer ? "/credentials" : ""}${se}`;
11621
- }), re = (K) => {
11628
+ }), le = (K) => {
11622
11629
  const se = Array.from(new Set(K.map((T) => typeof T)));
11623
11630
  return se.length > 1 ? "string" : se[0];
11624
- }, ue = (K, se, T, be) => {
11625
- var de, we;
11626
- let V = se && se.fields || [];
11627
- const ne = o[i.pluginType], le = (we = (de = ln[i.pluginType]) == null ? void 0 : de.schema) == null ? void 0 : we.fields;
11628
- return Array.isArray(V) && (V = V.reduce((he, z) => {
11631
+ }, ue = (K, se, T, fe) => {
11632
+ var Ae, Ee;
11633
+ let N = se && se.fields || [];
11634
+ const ne = o[i.pluginType], oe = (Ee = (Ae = ln[i.pluginType]) == null ? void 0 : Ae.schema) == null ? void 0 : Ee.fields;
11635
+ return Array.isArray(N) && (N = N.reduce((Be, z) => {
11629
11636
  const F = Object.keys(z)[0];
11630
- return F.match(/-/g) ? he[F.replace(/-/g, "_")] = {
11637
+ return F.match(/-/g) ? Be[F.replace(/-/g, "_")] = {
11631
11638
  ...z[F],
11632
11639
  // A flag to indicate the field name has dashes originally and they are replaced with underscores.
11633
11640
  // When submitting the form, the underscores should be replaced with dashes again
11634
11641
  fieldNameHasDashes: !0
11635
- } : he[F] = z[F], he;
11636
- }, {})), Object.keys(V).sort().forEach((he) => {
11642
+ } : Be[F] = z[F], Be;
11643
+ }, {})), Object.keys(N).sort().forEach((Be) => {
11637
11644
  var De, Qe, it, sn, vn, yn;
11638
- const z = V[he];
11645
+ const z = N[Be];
11639
11646
  z.type === "set" && (z.type = "array");
11640
- const F = K ? `${K}-${he}` : `${he}`;
11647
+ const F = K ? `${K}-${Be}` : `${Be}`;
11641
11648
  if (Object.prototype.hasOwnProperty.call(z, "overwrite") || z.hidden)
11642
11649
  return;
11643
11650
  if (z.type === "table")
11644
11651
  return ue(F, z.schema, T);
11645
11652
  if (z.fields)
11646
- return be && z.type === "record" ? (T[F] = {
11653
+ return fe && z.type === "record" ? (T[F] = {
11647
11654
  type: "object",
11648
- model: he,
11655
+ model: Be,
11649
11656
  schema: {
11650
11657
  fields: Object.values(ue(F, z, {}, !0))
11651
11658
  }
11652
11659
  }, T) : ue(F, z, T);
11653
- if (T[F] = { id: F, model: he }, T[F].type = z.type === "boolean" ? "checkbox" : "input", T[F].required = z.required, T[F].referenceable = z.referenceable, F.startsWith("config-"))
11654
- if (!be && z.type === "array" && (x.value = F), be && x.value && F.startsWith(x.value)) {
11660
+ if (T[F] = { id: F, model: Be }, T[F].type = z.type === "boolean" ? "checkbox" : "input", T[F].required = z.required, T[F].referenceable = z.referenceable, F.startsWith("config-"))
11661
+ if (!fe && z.type === "array" && (x.value = F), fe && x.value && F.startsWith(x.value)) {
11655
11662
  const me = F.slice(x.value.length + 1);
11656
11663
  T[F].label = me.split("-").map(c).join(".");
11657
11664
  } else
11658
11665
  T[F].label = c(F);
11659
- if ((K === "config" || K.startsWith("config-")) && (De = V[he]) != null && De.description && (T[F].help = ve.parse(V[he].description, { mangle: !1, headerIds: !1 })), z.type === "map") {
11666
+ if ((K === "config" || K.startsWith("config-")) && (De = N[Be]) != null && De.description && (T[F].help = ve.parse(N[Be].description, { mangle: !1, headerIds: !1 })), z.type === "map") {
11660
11667
  if (T[F].type = "object-advanced", T[F].values = z.values, z.values.type === "array") {
11661
11668
  const { type: me } = z.values.elements || {};
11662
11669
  T[F].schema = {
@@ -11756,12 +11763,12 @@ const Ho = {
11756
11763
  };
11757
11764
  }
11758
11765
  }
11759
- if (O.value && le) {
11760
- for (let me = 0; me < le.length; me++)
11761
- if (le[me][F]) {
11766
+ if (O.value && oe) {
11767
+ for (let me = 0; me < oe.length; me++)
11768
+ if (oe[me][F]) {
11762
11769
  T[F] = {
11763
11770
  ...T[F],
11764
- ...le[me][F]
11771
+ ...oe[me][F]
11765
11772
  };
11766
11773
  break;
11767
11774
  }
@@ -11773,13 +11780,13 @@ const Ho = {
11773
11780
  const { type: me } = z.elements || {};
11774
11781
  me && (T[F].valueArrayType = me === "integer" ? "number" : me), T[F].inputType = z.type === "array" || z.type === "string" ? z.encrypted ? "password" : "text" : z.type;
11775
11782
  }
11776
- let oe = "string";
11777
- z.enum ? oe = re(z.enum) : z.type === "boolean" ? oe = "boolean" : z.type === "number" || z.type === "integer" ? (oe = "number", T[F].inputType = "number") : z.type === "array" ? (oe = "array", T[F].default = z.default, z.len_min > 0 && (T[F].submitWhenNull = !0)) : z.type === "foreign" ? oe = "object" : z.default && Array.isArray(z.default) ? (oe = "array", T[F].valueArrayType = re(z.default)) : z.default && (oe = typeof z.default), T[F].valueType = oe, z.fieldNameHasDashes && (T[F].fieldNameHasDashes = !0);
11783
+ let re = "string";
11784
+ z.enum ? re = le(z.enum) : z.type === "boolean" ? re = "boolean" : z.type === "number" || z.type === "integer" ? (re = "number", T[F].inputType = "number") : z.type === "array" ? (re = "array", T[F].default = z.default, z.len_min > 0 && (T[F].submitWhenNull = !0)) : z.type === "foreign" ? re = "object" : z.default && Array.isArray(z.default) ? (re = "array", T[F].valueArrayType = le(z.default)) : z.default && (re = typeof z.default), T[F].valueType = re, z.fieldNameHasDashes && (T[F].fieldNameHasDashes = !0);
11778
11785
  }), T;
11779
11786
  }, ee = () => {
11780
- var he, z, F, oe, De, Qe, it, sn, vn, yn, me, tt;
11781
- const K = ((he = At[i.pluginType]) == null ? void 0 : he.scope.includes(l.SERVICE)) ?? !0, se = ((z = At[i.pluginType]) == null ? void 0 : z.scope.includes(l.ROUTE)) ?? !0, T = ((F = At[i.pluginType]) == null ? void 0 : F.scope.includes(l.CONSUMER)) ?? !0, be = i.config.disableConsumerGroupScope ? !1 : ((oe = At[i.pluginType]) == null ? void 0 : oe.scope.includes(l.CONSUMER_GROUP)) ?? !0, V = i.config.entityType === "consumers" && !!i.config.entityId || !!((Qe = (De = Q.value) == null ? void 0 : De.consumer) != null && Qe.id), ne = i.config.entityType === "consumer_groups" && !!i.config.entityId || !!((sn = (it = Q.value) == null ? void 0 : it.consumer_group) != null && sn.id), le = i.config.entityType === "services" && !!i.config.entityId || !!((yn = (vn = Q.value) == null ? void 0 : vn.service) != null && yn.id), de = i.config.entityType === "routes" && !!i.config.entityId || !!((tt = (me = Q.value) == null ? void 0 : me.route) != null && tt.id), we = [];
11782
- if (K && we.push({
11787
+ var Be, z, F, re, De, Qe, it, sn, vn, yn, me, tt;
11788
+ const K = ((Be = At[i.pluginType]) == null ? void 0 : Be.scope.includes(l.SERVICE)) ?? !0, se = ((z = At[i.pluginType]) == null ? void 0 : z.scope.includes(l.ROUTE)) ?? !0, T = ((F = At[i.pluginType]) == null ? void 0 : F.scope.includes(l.CONSUMER)) ?? !0, fe = i.config.disableConsumerGroupScope ? !1 : ((re = At[i.pluginType]) == null ? void 0 : re.scope.includes(l.CONSUMER_GROUP)) ?? !0, N = i.config.entityType === "consumers" && !!i.config.entityId || !!((Qe = (De = Q.value) == null ? void 0 : De.consumer) != null && Qe.id), ne = i.config.entityType === "consumer_groups" && !!i.config.entityId || !!((sn = (it = Q.value) == null ? void 0 : it.consumer_group) != null && sn.id), oe = i.config.entityType === "services" && !!i.config.entityId || !!((yn = (vn = Q.value) == null ? void 0 : vn.service) != null && yn.id), Ae = i.config.entityType === "routes" && !!i.config.entityId || !!((tt = (me = Q.value) == null ? void 0 : me.route) != null && tt.id), Ee = [];
11789
+ if (K && Ee.push({
11783
11790
  id: "service-id",
11784
11791
  model: "service-id",
11785
11792
  label: s("plugins.form.scoping.gateway_service.label"),
@@ -11790,9 +11797,9 @@ const Ho = {
11790
11797
  fields: ["name", "id"]
11791
11798
  },
11792
11799
  help: s("plugins.form.scoping.gateway_service.help"),
11793
- disabled: le && i.disableScopeSelection
11800
+ disabled: oe && i.disableScopeSelection
11794
11801
  // disable service selection if the plugin is already scoped under service
11795
- }), se && we.push({
11802
+ }), se && Ee.push({
11796
11803
  id: "route-id",
11797
11804
  model: "route-id",
11798
11805
  label: s("plugins.form.scoping.route.label"),
@@ -11804,8 +11811,8 @@ const Ho = {
11804
11811
  primaryField: "id"
11805
11812
  },
11806
11813
  help: s("plugins.form.scoping.route.help"),
11807
- disabled: de && i.disableScopeSelection
11808
- }), T && we.push({
11814
+ disabled: Ae && i.disableScopeSelection
11815
+ }), T && Ee.push({
11809
11816
  model: "consumer-id",
11810
11817
  label: s("plugins.form.scoping.consumer.label"),
11811
11818
  placeholder: s("plugins.form.scoping.consumer.placeholder"),
@@ -11816,8 +11823,8 @@ const Ho = {
11816
11823
  primaryField: "username"
11817
11824
  },
11818
11825
  help: s("plugins.form.scoping.consumer.help"),
11819
- disabled: V && i.disableScopeSelection
11820
- }), be && we.push({
11826
+ disabled: N && i.disableScopeSelection
11827
+ }), fe && Ee.push({
11821
11828
  model: "consumer_group-id",
11822
11829
  label: s("plugins.form.scoping.consumer_group.label"),
11823
11830
  placeholder: s("plugins.form.scoping.consumer_group.placeholder"),
@@ -11830,12 +11837,12 @@ const Ho = {
11830
11837
  },
11831
11838
  help: s("plugins.form.scoping.consumer_group.help"),
11832
11839
  disabled: ne && i.disableScopeSelection
11833
- }), we.length) {
11840
+ }), Ee.length) {
11834
11841
  const Te = [
11835
11842
  ...K ? ["service"] : [],
11836
11843
  ...se ? ["route"] : [],
11837
11844
  ...T ? ["consumer"] : [],
11838
- ...be ? ["consumer_group"] : []
11845
+ ...fe ? ["consumer_group"] : []
11839
11846
  ], Xe = Te.splice(Te.length - 2, 2).map((at) => s(at === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${at}.plural`)).join(`${Te.length > 0 ? "," : ""} and/or `), vt = [
11840
11847
  "Specific",
11841
11848
  [
@@ -11849,7 +11856,7 @@ const Ho = {
11849
11856
  label: s("plugins.form.scoping.label"),
11850
11857
  description: vt,
11851
11858
  fields: []
11852
- }), _.selectionGroup.fields[1].fields = we;
11859
+ }), _.selectionGroup.fields[1].fields = Ee;
11853
11860
  }
11854
11861
  o[i.pluginType] && o[i.pluginType].overwriteDefault && Object.hasOwnProperty.call(o[i.pluginType], "formSchema") && Object.assign(_, o[i.pluginType].formSchema);
11855
11862
  }, U = J(() => !A(h.fields, C, !0)), Y = J(() => !Le.value && !f.value && (y.value === Ht.Create || U.value)), Z = $(!1), M = $(), R = (K) => {
@@ -11862,13 +11869,13 @@ const Ho = {
11862
11869
  resourceEndpoint: te.value
11863
11870
  });
11864
11871
  };
11865
- mt([N, Z], (K, se) => {
11866
- const T = K[0] !== se[0], be = K[1], V = se[1];
11867
- !O.value && y.value === Ht.Edit && (T || be && be !== V) && (Le.value = !0, S.value = ue("config", E.value, _), Le.value = !1);
11872
+ mt([V, Z], (K, se) => {
11873
+ const T = K[0] !== se[0], fe = K[1], N = se[1];
11874
+ !O.value && y.value === Ht.Edit && (T || fe && fe !== N) && (Le.value = !0, S.value = ue("config", E.value, _), Le.value = !1);
11868
11875
  }, { deep: !0 });
11869
- const Ae = () => {
11876
+ const pe = () => {
11870
11877
  i.config.cancelRoute ? a.push(i.config.cancelRoute) : n("cancel");
11871
- }, pe = J(() => {
11878
+ }, de = J(() => {
11872
11879
  let K = `${i.config.apiBaseUrl}${Ne.form[i.config.app].validate}`;
11873
11880
  return i.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), K = K.replace(/{id}/gi, i.pluginId), K;
11874
11881
  }), ae = J(() => {
@@ -11896,15 +11903,15 @@ const Ho = {
11896
11903
  model: h.fields,
11897
11904
  payload: se,
11898
11905
  schema: S.value
11899
- }), !O.value && !ze.value && await m.post(pe.value, se), y.value === "create" ? K = await m.post(ae.value, se) : y.value === "edit" && (K = i.config.app === "konnect" ? await m.put(ae.value, Object.assign({ ordering: M.value }, se)) : await m.patch(ae.value, se)), Object.assign(C, h.fields), n("update", K == null ? void 0 : K.data);
11906
+ }), !O.value && !ze.value && await m.post(de.value, se), y.value === "create" ? K = await m.post(ae.value, se) : y.value === "edit" && (K = i.config.app === "konnect" ? await m.put(ae.value, Object.assign({ ordering: M.value }, se)) : await m.patch(ae.value, se)), Object.assign(C, h.fields), n("update", K == null ? void 0 : K.data);
11900
11907
  } catch (K) {
11901
11908
  h.errorMessage = d(K), n("error", K);
11902
11909
  } finally {
11903
11910
  h.isReadonly = !1;
11904
11911
  }
11905
11912
  }, It = J(() => {
11906
- var be;
11907
- const K = O.value ? (be = ln[i.pluginType]) == null ? void 0 : be.schemaEndpoint : i.pluginType, se = O.value ? Ne.form[i.config.app].credentialSchema : Ne.form[i.config.app].pluginSchema;
11913
+ var fe;
11914
+ const K = O.value ? (fe = ln[i.pluginType]) == null ? void 0 : fe.schemaEndpoint : i.pluginType, se = O.value ? Ne.form[i.config.app].credentialSchema : Ne.form[i.config.app].pluginSchema;
11908
11915
  let T = `${i.config.apiBaseUrl}${se}`;
11909
11916
  return i.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), T = T.replace(/{plugin}/gi, K), T;
11910
11917
  }), jt = $(""), Le = $(!1), Yt = $("");
@@ -11913,38 +11920,38 @@ const Ho = {
11913
11920
  Le.value = !0;
11914
11921
  try {
11915
11922
  if (O.value && i.config.app === "konnect") {
11916
- const be = (K = ln[i.pluginType]) == null ? void 0 : K.schemaEndpoint, V = Ru[be];
11917
- jt.value = be, S.value = ue("", V, {}), Le.value = !1;
11923
+ const fe = (K = ln[i.pluginType]) == null ? void 0 : K.schemaEndpoint, N = Ru[fe];
11924
+ jt.value = fe, S.value = ue("", N, {}), Le.value = !1;
11918
11925
  } else {
11919
- const be = await m.get(It.value), { data: V } = be;
11920
- if (V)
11926
+ const fe = i.schema ?? (await m.get(It.value)).data;
11927
+ if (fe)
11921
11928
  if (O.value)
11922
- S.value = ue("", V, {}), Le.value = !1;
11929
+ S.value = ue("", fe, {}), Le.value = !1;
11923
11930
  else {
11924
- const ne = V.fields.find((de) => de.config);
11925
- E.value = ne ? ne.config : be, ee();
11926
- const le = (se = V.fields.find((de) => de.protocols)) == null ? void 0 : se.protocols;
11927
- if (le) {
11928
- const { default: de = [], elements: we = {} } = le;
11929
- _.protocols.default = de, _.protocols.placeholder = i.config.app === "konnect" ? s("plugins.form.fields.protocols.placeholderWithDefaultValues", {
11930
- protocols: de.join(", ")
11931
- }) : s("plugins.form.fields.protocols.placeholder"), (T = we.one_of) != null && T.length && (_.protocols.values = we.one_of.map((he) => ({ label: he, value: he })));
11931
+ const N = fe.fields.find((oe) => oe.config);
11932
+ E.value = N ? N.config : fe, ee();
11933
+ const ne = (se = fe.fields.find((oe) => oe.protocols)) == null ? void 0 : se.protocols;
11934
+ if (ne) {
11935
+ const { default: oe = [], elements: Ae = {} } = ne;
11936
+ _.protocols.default = oe, _.protocols.placeholder = i.config.app === "konnect" ? s("plugins.form.fields.protocols.placeholderWithDefaultValues", {
11937
+ protocols: oe.join(", ")
11938
+ }) : s("plugins.form.fields.protocols.placeholder"), (T = Ae.one_of) != null && T.length && (_.protocols.values = Ae.one_of.map((Ee) => ({ label: Ee, value: Ee })));
11932
11939
  }
11933
11940
  (Z.value || y.value === Ht.Create) && (S.value = ue("config", E.value, _));
11934
11941
  }
11935
11942
  }
11936
- } catch (be) {
11937
- Yt.value = d(be), n("error:fetch-schema", be);
11943
+ } catch (fe) {
11944
+ Yt.value = d(fe), n("error:fetch-schema", fe);
11938
11945
  } finally {
11939
11946
  Le.value = !1;
11940
11947
  }
11941
11948
  }), (K, se) => {
11942
- const T = q("KSkeleton"), be = q("KEmptyState"), V = q("KButton"), ne = q("KTabs"), le = q("KSlideout");
11949
+ const T = q("KSkeleton"), fe = q("KEmptyState"), N = q("KButton"), ne = q("KTabs"), oe = q("KSlideout");
11943
11950
  return p(), B("div", Dy, [
11944
11951
  Le.value ? (p(), L(T, {
11945
11952
  key: 0,
11946
11953
  type: "form"
11947
- })) : Yt.value ? (p(), L(be, {
11954
+ })) : Yt.value ? (p(), L(fe, {
11948
11955
  key: 1,
11949
11956
  "action-button-visible": !1,
11950
11957
  "data-testid": "plugin-form-schema-error",
@@ -11966,10 +11973,10 @@ const Ho = {
11966
11973
  "is-readonly": h.isReadonly,
11967
11974
  "no-validate": "",
11968
11975
  "wrapper-component": e.noCardWrapper ? "div" : void 0,
11969
- onCancel: Ae,
11970
- "onFetch:error": se[2] || (se[2] = (de) => K.$emit("error", de)),
11976
+ onCancel: pe,
11977
+ "onFetch:error": se[2] || (se[2] = (Ae) => K.$emit("error", Ae)),
11971
11978
  "onFetch:success": R,
11972
- onLoading: se[3] || (se[3] = (de) => K.$emit("loading", de))
11979
+ onLoading: se[3] || (se[3] = (Ae) => K.$emit("loading", Ae))
11973
11980
  }, {
11974
11981
  "form-actions": b(() => [
11975
11982
  e.isWizardStep ? (p(), B("div", jy)) : (p(), L(Ly, {
@@ -11978,30 +11985,30 @@ const Ho = {
11978
11985
  }, {
11979
11986
  default: b(() => [
11980
11987
  v("div", Yy, [
11981
- e.hideViewConfigAction ? ie("", !0) : (p(), L(V, {
11988
+ e.hideViewConfigAction ? ie("", !0) : (p(), L(N, {
11982
11989
  key: 0,
11983
11990
  appearance: "tertiary",
11984
11991
  "data-testid": `plugin-${D.value ? "edit" : "create"}-form-view-configuration`,
11985
- onClick: se[1] || (se[1] = (de) => j())
11992
+ onClick: se[1] || (se[1] = (Ae) => j())
11986
11993
  }, {
11987
11994
  default: b(() => [
11988
- fe(X(g(s)("actions.view_configuration")), 1)
11995
+ he(X(g(s)("actions.view_configuration")), 1)
11989
11996
  ]),
11990
11997
  _: 1
11991
11998
  }, 8, ["data-testid"])),
11992
- G(V, {
11999
+ G(N, {
11993
12000
  appearance: "secondary",
11994
12001
  class: "form-action-button",
11995
12002
  "data-testid": `plugin-${D.value ? "edit" : "create"}-form-cancel`,
11996
12003
  disabled: h.isReadonly,
11997
- onClick: Ae
12004
+ onClick: pe
11998
12005
  }, {
11999
12006
  default: b(() => [
12000
- fe(X(g(s)("actions.cancel")), 1)
12007
+ he(X(g(s)("actions.cancel")), 1)
12001
12008
  ]),
12002
12009
  _: 1
12003
12010
  }, 8, ["data-testid", "disabled"]),
12004
- G(V, {
12011
+ G(N, {
12005
12012
  appearance: "primary",
12006
12013
  "data-testid": `plugin-${D.value ? "edit" : "create"}-form-submit`,
12007
12014
  disabled: !Y.value || h.isReadonly,
@@ -12009,7 +12016,7 @@ const Ho = {
12009
12016
  onClick: et
12010
12017
  }, {
12011
12018
  default: b(() => [
12012
- fe(X(g(s)("actions.save")), 1)
12019
+ he(X(g(s)("actions.save")), 1)
12013
12020
  ]),
12014
12021
  _: 1
12015
12022
  }, 8, ["data-testid", "disabled"])
@@ -12028,16 +12035,16 @@ const Ho = {
12028
12035
  credential: O.value,
12029
12036
  editing: y.value === g(Ht).Edit,
12030
12037
  "enable-vault-secret-picker": i.enableVaultSecretPicker,
12031
- "entity-map": N.value,
12038
+ "entity-map": V.value,
12032
12039
  record: Q.value || void 0,
12033
12040
  schema: S.value || {},
12034
- onLoading: se[0] || (se[0] = (de) => f.value = de),
12041
+ onLoading: se[0] || (se[0] = (Ae) => f.value = Ae),
12035
12042
  onModelUpdated: ce
12036
12043
  }, null, 8, ["config", "credential", "editing", "enable-vault-secret-picker", "entity-map", "record", "schema"])
12037
12044
  ]),
12038
12045
  _: 1
12039
12046
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "wrapper-component"])),
12040
- G(le, {
12047
+ G(oe, {
12041
12048
  "close-on-blur": !1,
12042
12049
  "data-testid": "form-view-configuration-slideout",
12043
12050
  "has-overlay": !1,
@@ -12078,7 +12085,7 @@ const Ho = {
12078
12085
  ]);
12079
12086
  };
12080
12087
  }
12081
- }), hw = /* @__PURE__ */ ht(Hy, [["__scopeId", "data-v-b9589a4b"]]), Vy = ["alt", "height", "src", "width"], sa = /* @__PURE__ */ ye({
12088
+ }), hw = /* @__PURE__ */ ht(Hy, [["__scopeId", "data-v-30d82451"]]), Vy = ["alt", "height", "src", "width"], sa = /* @__PURE__ */ ye({
12082
12089
  __name: "PluginIcon",
12083
12090
  props: {
12084
12091
  name: {
@@ -12359,13 +12366,13 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12359
12366
  },
12360
12367
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
12361
12368
  setup(e, { emit: t }) {
12362
- var T, be;
12369
+ var T, fe;
12363
12370
  const n = Ye.usePluginMetaData(), i = t, a = e, { i18n: { t: s } } = Ye.useI18n(), o = ai(), { axiosInstance: r } = Wt((T = a.config) == null ? void 0 : T.axiosRequestConfig), { hasRecords: c, handleStateChange: d } = Ar(() => f.value), u = J(() => c.value && a.config.app === "konnect"), A = J(() => !a.enableV2EmptyStates && a.config.app === "konnect"), m = J(() => !!a.config.entityId), I = J(() => {
12364
- var V;
12365
- return ((V = a.config) == null ? void 0 : V.entityType) === "consumers";
12371
+ var N;
12372
+ return ((N = a.config) == null ? void 0 : N.entityType) === "consumers";
12366
12373
  }), D = J(() => {
12367
- var V;
12368
- return ((V = a.config) == null ? void 0 : V.entityType) === "consumer_groups";
12374
+ var N;
12375
+ return ((N = a.config) == null ? void 0 : N.entityType) === "consumer_groups";
12369
12376
  }), y = a.config.app === "konnect" || gr({
12370
12377
  gatewayInfo: a.config.gatewayInfo,
12371
12378
  // dynamic ordering is not supported in Gateway Community Edition or before Gateway Enterprise Edition 3.0
@@ -12376,11 +12383,11 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12376
12383
  // the Name column is non-hidable
12377
12384
  name: { label: s("plugins.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 }
12378
12385
  };
12379
- (be = a.config) != null && be.entityId || (O.appliedTo = { label: s("plugins.list.table_headers.applied_to"), sortable: !1 }), O.enabled = { label: s("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, y && (O.ordering = { label: s("plugins.list.table_headers.ordering"), sortable: !0 }), O.tags = { label: s("plugins.list.table_headers.tags"), sortable: !1 };
12386
+ (fe = a.config) != null && fe.entityId || (O.appliedTo = { label: s("plugins.list.table_headers.applied_to"), sortable: !1 }), O.enabled = { label: s("plugins.list.table_headers.enabled"), searchable: !0, sortable: !0 }, y && (O.ordering = { label: s("plugins.list.table_headers.ordering"), sortable: !0 }), O.tags = { label: s("plugins.list.table_headers.tags"), sortable: !1 };
12380
12387
  const Q = O, E = J(() => {
12381
- var ne, le, de, we;
12382
- let V = a.config.entityType ? `${a.config.apiBaseUrl}${Ne.list[a.config.app].forEntity}` : `${a.config.apiBaseUrl}${Ne.list[a.config.app].all}`;
12383
- return a.config.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((ne = a.config) == null ? void 0 : ne.controlPlaneId) || "") : a.config.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, (le = a.config) != null && le.workspace ? `/${a.config.workspace}` : "")), V.replace(/{entityType}/gi, ((de = a.config) == null ? void 0 : de.entityType) || "").replace(/{entityId}/gi, ((we = a.config) == null ? void 0 : we.entityId) || "");
12388
+ var ne, oe, Ae, Ee;
12389
+ let N = a.config.entityType ? `${a.config.apiBaseUrl}${Ne.list[a.config.app].forEntity}` : `${a.config.apiBaseUrl}${Ne.list[a.config.app].all}`;
12390
+ return a.config.app === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((ne = a.config) == null ? void 0 : ne.controlPlaneId) || "") : a.config.app === "kongManager" && (N = N.replace(/\/{workspace}/gi, (oe = a.config) != null && oe.workspace ? `/${a.config.workspace}` : "")), N.replace(/{entityType}/gi, ((Ae = a.config) == null ? void 0 : Ae.entityType) || "").replace(/{entityId}/gi, ((Ee = a.config) == null ? void 0 : Ee.entityId) || "");
12384
12391
  }), f = $(""), C = J(() => a.config.app === "konnect" || a.config.isExactMatch ? {
12385
12392
  isExactMatch: !0,
12386
12393
  fields: {
@@ -12405,111 +12412,111 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12405
12412
  f.value = "";
12406
12413
  }, j = () => {
12407
12414
  x.value++;
12408
- }, N = $(null), _ = (V) => {
12409
- var le, de, we, he;
12415
+ }, V = $(null), _ = (N) => {
12416
+ var oe, Ae, Ee, Be;
12410
12417
  const ne = [];
12411
- return ((le = V.route) != null && le.id || V.route_id) && ne.push({ type: "route", badgeText: s("plugins.list.table_headers.applied_to_badges.route") }), ((de = V.service) != null && de.id || V.service_id) && ne.push({ type: "service", badgeText: s("plugins.list.table_headers.applied_to_badges.service") }), ((we = V.consumer) != null && we.id || V.consumer_id) && ne.push({ type: "consumer", badgeText: s("plugins.list.table_headers.applied_to_badges.consumer") }), ((he = V.consumer_group) != null && he.id || V.consumer_group_id) && ne.push({ type: "consumer_group", badgeText: s("plugins.list.table_headers.applied_to_badges.consumer_group") }), ne.length ? ne : [{ type: null, badgeText: s("plugins.list.table_headers.applied_to_badges.global") }];
12412
- }, te = async (V, ne) => {
12413
- var le;
12414
- return V === null ? !1 : await ((le = a.canRetrieveScopedEntity) == null ? void 0 : le.call(a, V, ne.id));
12415
- }, re = (V, ne) => {
12416
- var de, we, he, z, F;
12417
- let le = null;
12418
- switch (V) {
12418
+ return ((oe = N.route) != null && oe.id || N.route_id) && ne.push({ type: "route", badgeText: s("plugins.list.table_headers.applied_to_badges.route") }), ((Ae = N.service) != null && Ae.id || N.service_id) && ne.push({ type: "service", badgeText: s("plugins.list.table_headers.applied_to_badges.service") }), ((Ee = N.consumer) != null && Ee.id || N.consumer_id) && ne.push({ type: "consumer", badgeText: s("plugins.list.table_headers.applied_to_badges.consumer") }), ((Be = N.consumer_group) != null && Be.id || N.consumer_group_id) && ne.push({ type: "consumer_group", badgeText: s("plugins.list.table_headers.applied_to_badges.consumer_group") }), ne.length ? ne : [{ type: null, badgeText: s("plugins.list.table_headers.applied_to_badges.global") }];
12419
+ }, te = async (N, ne) => {
12420
+ var oe;
12421
+ return N === null ? !1 : await ((oe = a.canRetrieveScopedEntity) == null ? void 0 : oe.call(a, N, ne.id));
12422
+ }, le = (N, ne) => {
12423
+ var Ae, Ee, Be, z, F;
12424
+ let oe = null;
12425
+ switch (N) {
12419
12426
  case "route":
12420
- le = (de = ne.route) == null ? void 0 : de.id;
12427
+ oe = (Ae = ne.route) == null ? void 0 : Ae.id;
12421
12428
  break;
12422
12429
  case "service":
12423
- le = (we = ne.service) == null ? void 0 : we.id;
12430
+ oe = (Ee = ne.service) == null ? void 0 : Ee.id;
12424
12431
  break;
12425
12432
  case "consumer":
12426
- le = (he = ne.consumer) == null ? void 0 : he.id;
12433
+ oe = (Be = ne.consumer) == null ? void 0 : Be.id;
12427
12434
  break;
12428
12435
  case "consumer_group":
12429
- le = (z = ne.consumer_group) == null ? void 0 : z.id;
12436
+ oe = (z = ne.consumer_group) == null ? void 0 : z.id;
12430
12437
  break;
12431
12438
  }
12432
- le && ((F = a.config) != null && F.getScopedEntityViewRoute) && o.push(a.config.getScopedEntityViewRoute(V, le));
12439
+ oe && ((F = a.config) != null && F.getScopedEntityViewRoute) && o.push(a.config.getScopedEntityViewRoute(N, oe));
12433
12440
  }, ue = $(!1), ee = $(null), U = J(() => {
12434
- const V = {
12441
+ const N = {
12435
12442
  action: "disable",
12436
12443
  id: "",
12437
12444
  name: ""
12438
12445
  };
12439
12446
  if (ee.value) {
12440
- const { enabled: ne, id: le, name: de } = ee.value;
12441
- V.action = ne ? "disable" : "enable", V.id = le, V.name = n.getDisplayName(de) || le;
12447
+ const { enabled: ne, id: oe, name: Ae } = ee.value;
12448
+ N.action = ne ? "disable" : "enable", N.id = oe, N.name = n.getDisplayName(Ae) || oe;
12442
12449
  }
12443
- return V;
12444
- }), Y = (V) => {
12445
- ue.value = !0, ee.value = V;
12450
+ return N;
12451
+ }), Y = (N) => {
12452
+ ue.value = !0, ee.value = N;
12446
12453
  }, Z = () => {
12447
12454
  ue.value = !1, ee.value = null;
12448
12455
  }, M = async () => {
12449
- var de, we, he, z, F, oe, De, Qe;
12450
- if (!await ((de = a.canEdit) == null ? void 0 : de.call(a, ee.value)) || !ee.value)
12456
+ var Ae, Ee, Be, z, F, re, De, Qe;
12457
+ if (!await ((Ae = a.canEdit) == null ? void 0 : Ae.call(a, ee.value)) || !ee.value)
12451
12458
  return;
12452
- let ne = `${a.config.apiBaseUrl}${(F = Ne.item[a.config.app]) == null ? void 0 : F[(we = a.config) != null && we.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((he = a.config) == null ? void 0 : he.entityType) || "").replace(/{entityId}/gi, ((z = a.config) == null ? void 0 : z.entityId) || "")}`.replace(/{id}/gi, ee.value.id || "");
12453
- a.config.app === "konnect" ? ne = ne.replace(/{controlPlaneId}/gi, ((oe = a.config) == null ? void 0 : oe.controlPlaneId) || "") : a.config.app === "kongManager" && (ne = ne.replace(/\/{workspace}/gi, (De = a.config) != null && De.workspace ? `/${a.config.workspace}` : ""));
12454
- const le = !ee.value.enabled;
12459
+ let ne = `${a.config.apiBaseUrl}${(F = Ne.item[a.config.app]) == null ? void 0 : F[(Ee = a.config) != null && Ee.entityType ? "forEntity" : "all"].replace(/{entityType}/gi, ((Be = a.config) == null ? void 0 : Be.entityType) || "").replace(/{entityId}/gi, ((z = a.config) == null ? void 0 : z.entityId) || "")}`.replace(/{id}/gi, ee.value.id || "");
12460
+ a.config.app === "konnect" ? ne = ne.replace(/{controlPlaneId}/gi, ((re = a.config) == null ? void 0 : re.controlPlaneId) || "") : a.config.app === "kongManager" && (ne = ne.replace(/\/{workspace}/gi, (De = a.config) != null && De.workspace ? `/${a.config.workspace}` : ""));
12461
+ const oe = !ee.value.enabled;
12455
12462
  try {
12456
- const { data: it } = ((Qe = a.config) == null ? void 0 : Qe.app) === "konnect" ? await r.put(ne, { ...ee.value, enabled: le }, { timeout: 12e4 }) : await r.patch(ne, { ...ee.value, enabled: le }, { timeout: 12e4 });
12457
- i("toggle-enabled", le, it), ee.value.enabled = le;
12463
+ const { data: it } = ((Qe = a.config) == null ? void 0 : Qe.app) === "konnect" ? await r.put(ne, { ...ee.value, enabled: oe }, { timeout: 12e4 }) : await r.patch(ne, { ...ee.value, enabled: oe }, { timeout: 12e4 });
12464
+ i("toggle-enabled", oe, it), ee.value.enabled = oe;
12458
12465
  } catch (it) {
12459
12466
  i("error", it);
12460
12467
  }
12461
- }, R = (V, ne) => {
12462
- const le = V.id;
12463
- if (!ne(le)) {
12468
+ }, R = (N, ne) => {
12469
+ const oe = N.id;
12470
+ if (!ne(oe)) {
12464
12471
  i("copy:error", {
12465
- entity: V,
12472
+ entity: N,
12466
12473
  field: "id",
12467
12474
  message: s("errors.copy")
12468
12475
  });
12469
12476
  return;
12470
12477
  }
12471
12478
  i("copy:success", {
12472
- entity: V,
12479
+ entity: N,
12473
12480
  field: "id",
12474
- message: s("copy.success", { val: le })
12481
+ message: s("copy.success", { val: oe })
12475
12482
  });
12476
- }, P = (V, ne) => {
12477
- const le = JSON.stringify(V);
12478
- if (!ne(le)) {
12483
+ }, P = (N, ne) => {
12484
+ const oe = JSON.stringify(N);
12485
+ if (!ne(oe)) {
12479
12486
  i("copy:error", {
12480
- entity: V,
12487
+ entity: N,
12481
12488
  message: s("errors.copy")
12482
12489
  });
12483
12490
  return;
12484
12491
  }
12485
12492
  i("copy:success", {
12486
- entity: V,
12493
+ entity: N,
12487
12494
  message: s("copy.success_brief")
12488
12495
  });
12489
- }, ce = async (V) => {
12490
- var le;
12491
- await ((le = a.canRetrieve) == null ? void 0 : le.call(a, V)) && o.push(a.config.getViewRoute(V));
12492
- }, Ae = (V) => ({
12496
+ }, ce = async (N) => {
12497
+ var oe;
12498
+ await ((oe = a.canRetrieve) == null ? void 0 : oe.call(a, N)) && o.push(a.config.getViewRoute(N));
12499
+ }, pe = (N) => ({
12493
12500
  label: s("actions.view"),
12494
- to: a.config.getViewRoute(V)
12495
- }), pe = (V) => ({
12501
+ to: a.config.getViewRoute(N)
12502
+ }), de = (N) => ({
12496
12503
  label: s("actions.edit"),
12497
- to: a.config.getEditRoute(V)
12498
- }), ae = (V) => ({
12504
+ to: a.config.getEditRoute(N)
12505
+ }), ae = (N) => ({
12499
12506
  label: s("actions.configure_dynamic_ordering"),
12500
- to: a.config.getConfigureDynamicOrderingRoute(V)
12501
- }), ze = $(void 0), Re = $(!1), et = $(!1), It = $(""), jt = fr(a.config, E.value), Le = (V) => {
12502
- ze.value = V, Re.value = !0;
12507
+ to: a.config.getConfigureDynamicOrderingRoute(N)
12508
+ }), ze = $(void 0), Re = $(!1), et = $(!1), It = $(""), jt = fr(a.config, E.value), Le = (N) => {
12509
+ ze.value = N, Re.value = !0;
12503
12510
  }, Yt = () => {
12504
12511
  Re.value = !1;
12505
- }, Ee = async () => {
12506
- var V, ne, le;
12507
- if ((V = ze.value) != null && V.id) {
12512
+ }, be = async () => {
12513
+ var N, ne, oe;
12514
+ if ((N = ze.value) != null && N.id) {
12508
12515
  et.value = !0;
12509
12516
  try {
12510
12517
  await r.delete(jt(ze.value.id)), et.value = !1, Re.value = !1, x.value++, i("delete:success", ze.value);
12511
- } catch (de) {
12512
- It.value = ((le = (ne = de.response) == null ? void 0 : ne.data) == null ? void 0 : le.message) || de.message || s("errors.delete"), i("error", de);
12518
+ } catch (Ae) {
12519
+ It.value = ((oe = (ne = Ae.response) == null ? void 0 : ne.data) == null ? void 0 : oe.message) || Ae.message || s("errors.delete"), i("error", Ae);
12513
12520
  } finally {
12514
12521
  et.value = !1;
12515
12522
  }
@@ -12517,15 +12524,15 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12517
12524
  }, K = () => {
12518
12525
  o.push(a.config.createRoute);
12519
12526
  };
12520
- mt(k, (V) => {
12521
- var ne, le, de;
12522
- if (V.status === hr.Error) {
12523
- N.value = {
12527
+ mt(k, (N) => {
12528
+ var ne, oe, Ae;
12529
+ if (N.status === hr.Error) {
12530
+ V.value = {
12524
12531
  title: s("errors.general")
12525
- }, (de = (le = (ne = V.error) == null ? void 0 : ne.response) == null ? void 0 : le.data) != null && de.message && (N.value.message = V.error.response.data.message), i("error", V.error);
12532
+ }, (Ae = (oe = (ne = N.error) == null ? void 0 : ne.response) == null ? void 0 : oe.data) != null && Ae.message && (V.value.message = N.error.response.data.message), i("error", N.error);
12526
12533
  return;
12527
12534
  }
12528
- N.value = null;
12535
+ V.value = null;
12529
12536
  });
12530
12537
  const se = $({
12531
12538
  ctaPath: a.config.createRoute,
@@ -12535,15 +12542,15 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12535
12542
  });
12536
12543
  return fn(async () => {
12537
12544
  await a.canCreate() && (se.value.title = s("plugins.list.empty_state.title"), se.value.ctaText = s("actions.create"));
12538
- }), (V, ne) => {
12539
- const le = q("KButton"), de = q("KBadge"), we = q("KTruncate"), he = q("KInputSwitch"), z = q("KDropdownItem"), F = q("KClipboardProvider");
12545
+ }), (N, ne) => {
12546
+ const oe = q("KButton"), Ae = q("KBadge"), Ee = q("KTruncate"), Be = q("KInputSwitch"), z = q("KDropdownItem"), F = q("KClipboardProvider");
12540
12547
  return p(), B("div", hE, [
12541
12548
  G(g(vr), {
12542
12549
  "cache-identifier": e.cacheIdentifier,
12543
12550
  "disable-sorting": S.value,
12544
12551
  "empty-state-options": se.value,
12545
12552
  "enable-entity-actions": "",
12546
- "error-message": N.value,
12553
+ "error-message": V.value,
12547
12554
  fetcher: g(h),
12548
12555
  "fetcher-cache-key": g(x),
12549
12556
  "pagination-type": "offset",
@@ -12553,14 +12560,14 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12553
12560
  title: e.title,
12554
12561
  "title-tag": e.titleTag,
12555
12562
  onClearSearchInput: W,
12556
- "onClick:row": ne[5] || (ne[5] = (oe) => ce(oe)),
12563
+ "onClick:row": ne[5] || (ne[5] = (re) => ce(re)),
12557
12564
  onSort: j,
12558
12565
  onState: g(d)
12559
12566
  }, St({
12560
12567
  "toolbar-filter": b(() => [
12561
12568
  G(g(yr), {
12562
12569
  modelValue: f.value,
12563
- "onUpdate:modelValue": ne[0] || (ne[0] = (oe) => f.value = oe),
12570
+ "onUpdate:modelValue": ne[0] || (ne[0] = (re) => f.value = re),
12564
12571
  config: C.value
12565
12572
  }, null, 8, ["modelValue", "config"])
12566
12573
  ]),
@@ -12570,13 +12577,13 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12570
12577
  to: "#kong-ui-app-page-header-action-button"
12571
12578
  }, [
12572
12579
  v("div", vE, [
12573
- !m.value && u.value ? (p(), L(le, {
12580
+ !m.value && u.value ? (p(), L(oe, {
12574
12581
  key: 0,
12575
12582
  appearance: "secondary",
12576
12583
  class: "open-learning-hub",
12577
12584
  "data-testid": "plugins-learn-more-button",
12578
12585
  icon: "",
12579
- onClick: ne[1] || (ne[1] = (oe) => V.$emit("click:learn-more"))
12586
+ onClick: ne[1] || (ne[1] = (re) => N.$emit("click:learn-more"))
12580
12587
  }, {
12581
12588
  default: b(() => [
12582
12589
  G(g(ca), { decorative: "" })
@@ -12587,7 +12594,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12587
12594
  "auth-function": () => e.canCreate()
12588
12595
  }, {
12589
12596
  default: b(() => [
12590
- G(le, {
12597
+ G(oe, {
12591
12598
  appearance: "primary",
12592
12599
  "data-testid": "toolbar-add-plugin",
12593
12600
  size: e.useActionOutside ? "medium" : "large",
@@ -12595,7 +12602,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12595
12602
  }, {
12596
12603
  default: b(() => [
12597
12604
  G(g(Ki)),
12598
- fe(" " + X(g(s)("plugins.list.toolbar_actions.new_plugin")), 1)
12605
+ he(" " + X(g(s)("plugins.list.toolbar_actions.new_plugin")), 1)
12599
12606
  ]),
12600
12607
  _: 1
12601
12608
  }, 8, ["size", "to"])
@@ -12605,34 +12612,34 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12605
12612
  ])
12606
12613
  ], 8, ["disabled"]))
12607
12614
  ]),
12608
- name: b(({ row: oe }) => [
12615
+ name: b(({ row: re }) => [
12609
12616
  v("div", bE, [
12610
12617
  G(sa, {
12611
12618
  class: "plugin-icon",
12612
- name: oe.name,
12619
+ name: re.name,
12613
12620
  size: 24
12614
12621
  }, null, 8, ["name"]),
12615
12622
  v("div", EE, [
12616
- oe.instance_name ? (p(), B("span", wE, X(oe.instance_name), 1)) : (p(), B("span", CE, X(g(n).getDisplayName(oe.name)), 1)),
12617
- oe.instance_name ? (p(), B("span", BE, X(g(n).getDisplayName(oe.name)), 1)) : ie("", !0)
12623
+ re.instance_name ? (p(), B("span", wE, X(re.instance_name), 1)) : (p(), B("span", CE, X(g(n).getDisplayName(re.name)), 1)),
12624
+ re.instance_name ? (p(), B("span", BE, X(g(n).getDisplayName(re.name)), 1)) : ie("", !0)
12618
12625
  ])
12619
12626
  ])
12620
12627
  ]),
12621
- appliedTo: b(({ row: oe }) => [
12622
- _(oe).length > 0 ? (p(), L(we, { key: 0 }, {
12628
+ appliedTo: b(({ row: re }) => [
12629
+ _(re).length > 0 ? (p(), L(Ee, { key: 0 }, {
12623
12630
  default: b(() => [
12624
- (p(!0), B(ge, null, Oe(_(oe), (De) => (p(), L(g(Vt), {
12631
+ (p(!0), B(ge, null, Oe(_(re), (De) => (p(), L(g(Vt), {
12625
12632
  key: De.badgeText,
12626
- "auth-function": () => te(De.type, oe),
12633
+ "auth-function": () => te(De.type, re),
12627
12634
  "force-show": ""
12628
12635
  }, {
12629
12636
  default: b(({ isAllowed: Qe }) => [
12630
- G(de, {
12631
- class: Be(Qe || "disabled"),
12632
- onClick: On((it) => Qe && De.type && re(De.type, oe), ["stop"])
12637
+ G(Ae, {
12638
+ class: Ce(Qe || "disabled"),
12639
+ onClick: On((it) => Qe && De.type && le(De.type, re), ["stop"])
12633
12640
  }, {
12634
12641
  default: b(() => [
12635
- fe(X(De.badgeText), 1)
12642
+ he(X(De.badgeText), 1)
12636
12643
  ]),
12637
12644
  _: 2
12638
12645
  }, 1032, ["class", "onClick"])
@@ -12643,9 +12650,9 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12643
12650
  _: 2
12644
12651
  }, 1024)) : (p(), B("span", IE, "-"))
12645
12652
  ]),
12646
- enabled: b(({ row: oe }) => [
12653
+ enabled: b(({ row: re }) => [
12647
12654
  G(g(Vt), {
12648
- "auth-function": async () => !!(await e.canEdit(oe) && await e.canToggle(oe)),
12655
+ "auth-function": async () => !!(await e.canEdit(re) && await e.canToggle(re)),
12649
12656
  "force-show": ""
12650
12657
  }, {
12651
12658
  default: b(({ isAllowed: De }) => {
@@ -12655,11 +12662,11 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12655
12662
  onClick: ne[4] || (ne[4] = On(() => {
12656
12663
  }, ["stop"]))
12657
12664
  }, [
12658
- G(he, {
12665
+ G(Be, {
12659
12666
  disabled: !De,
12660
- "disabled-tooltip-text": !De && ((it = (Qe = e.config).getToggleDisabledTooltip) == null ? void 0 : it.call(Qe, oe)) || void 0,
12661
- "model-value": oe.enabled,
12662
- onClick: On((sn) => De && Y(oe), ["stop", "prevent"])
12667
+ "disabled-tooltip-text": !De && ((it = (Qe = e.config).getToggleDisabledTooltip) == null ? void 0 : it.call(Qe, re)) || void 0,
12668
+ "model-value": re.enabled,
12669
+ onClick: On((sn) => De && Y(re), ["stop", "prevent"])
12663
12670
  }, null, 8, ["disabled", "disabled-tooltip-text", "model-value", "onClick"])
12664
12671
  ])
12665
12672
  ];
@@ -12667,28 +12674,28 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12667
12674
  _: 2
12668
12675
  }, 1032, ["auth-function"])
12669
12676
  ]),
12670
- ordering: b(({ rowValue: oe }) => [
12671
- G(de, {
12672
- appearance: g(Cs)(oe) ? "info" : "warning"
12677
+ ordering: b(({ rowValue: re }) => [
12678
+ G(Ae, {
12679
+ appearance: g(Cs)(re) ? "info" : "warning"
12673
12680
  }, {
12674
12681
  default: b(() => [
12675
- fe(X(g(Cs)(oe) ? g(s)("plugins.list.table_headers.ordering_badge.static") : g(s)("plugins.list.table_headers.ordering_badge.dynamic")), 1)
12682
+ he(X(g(Cs)(re) ? g(s)("plugins.list.table_headers.ordering_badge.static") : g(s)("plugins.list.table_headers.ordering_badge.dynamic")), 1)
12676
12683
  ]),
12677
12684
  _: 2
12678
12685
  }, 1032, ["appearance"])
12679
12686
  ]),
12680
- tags: b(({ rowValue: oe }) => [
12681
- G(g(br), { tags: oe }, null, 8, ["tags"])
12687
+ tags: b(({ rowValue: re }) => [
12688
+ G(g(br), { tags: re }, null, 8, ["tags"])
12682
12689
  ]),
12683
- actions: b(({ row: oe }) => [
12690
+ actions: b(({ row: re }) => [
12684
12691
  G(F, null, {
12685
12692
  default: b(({ copyToClipboard: De }) => [
12686
12693
  G(z, {
12687
12694
  "data-testid": "action-entity-copy-id",
12688
- onClick: (Qe) => R(oe, De)
12695
+ onClick: (Qe) => R(re, De)
12689
12696
  }, {
12690
12697
  default: b(() => [
12691
- fe(X(g(s)("actions.copy_id")), 1)
12698
+ he(X(g(s)("actions.copy_id")), 1)
12692
12699
  ]),
12693
12700
  _: 2
12694
12701
  }, 1032, ["onClick"])
@@ -12699,10 +12706,10 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12699
12706
  default: b(({ copyToClipboard: De }) => [
12700
12707
  G(z, {
12701
12708
  "data-testid": "action-entity-copy-json",
12702
- onClick: (Qe) => P(oe, De)
12709
+ onClick: (Qe) => P(re, De)
12703
12710
  }, {
12704
12711
  default: b(() => [
12705
- fe(X(g(s)("actions.copy_json")), 1)
12712
+ he(X(g(s)("actions.copy_json")), 1)
12706
12713
  ]),
12707
12714
  _: 2
12708
12715
  }, 1032, ["onClick"])
@@ -12710,53 +12717,53 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12710
12717
  _: 2
12711
12718
  }, 1024),
12712
12719
  G(g(Vt), {
12713
- "auth-function": () => e.canRetrieve(oe)
12720
+ "auth-function": () => e.canRetrieve(re)
12714
12721
  }, {
12715
12722
  default: b(() => [
12716
12723
  G(z, {
12717
12724
  "data-testid": "action-entity-view",
12718
12725
  "has-divider": "",
12719
- item: Ae(oe)
12726
+ item: pe(re)
12720
12727
  }, null, 8, ["item"])
12721
12728
  ]),
12722
12729
  _: 2
12723
12730
  }, 1032, ["auth-function"]),
12724
12731
  G(g(Vt), {
12725
- "auth-function": () => e.canEdit(oe)
12732
+ "auth-function": () => e.canEdit(re)
12726
12733
  }, {
12727
12734
  default: b(() => [
12728
12735
  G(z, {
12729
12736
  "data-testid": "action-entity-edit",
12730
- item: pe(oe)
12737
+ item: de(re)
12731
12738
  }, null, 8, ["item"])
12732
12739
  ]),
12733
12740
  _: 2
12734
12741
  }, 1032, ["auth-function"]),
12735
12742
  !I.value && !D.value && g(y) ? (p(), L(g(Vt), {
12736
12743
  key: 0,
12737
- "auth-function": () => e.canConfigureDynamicOrdering(oe)
12744
+ "auth-function": () => e.canConfigureDynamicOrdering(re)
12738
12745
  }, {
12739
12746
  default: b(() => [
12740
- ae(oe) ? (p(), L(z, {
12747
+ ae(re) ? (p(), L(z, {
12741
12748
  key: 0,
12742
12749
  "data-testid": "action-entity-config-dyn-order",
12743
- item: ae(oe)
12750
+ item: ae(re)
12744
12751
  }, null, 8, ["item"])) : ie("", !0)
12745
12752
  ]),
12746
12753
  _: 2
12747
12754
  }, 1032, ["auth-function"])) : ie("", !0),
12748
12755
  G(g(Vt), {
12749
- "auth-function": () => e.canDelete(oe)
12756
+ "auth-function": () => e.canDelete(re)
12750
12757
  }, {
12751
12758
  default: b(() => [
12752
12759
  G(z, {
12753
12760
  danger: "",
12754
12761
  "data-testid": "action-entity-delete",
12755
12762
  "has-divider": "",
12756
- onClick: (De) => Le(oe)
12763
+ onClick: (De) => Le(re)
12757
12764
  }, {
12758
12765
  default: b(() => [
12759
- fe(X(g(s)("actions.delete")), 1)
12766
+ he(X(g(s)("actions.delete")), 1)
12760
12767
  ]),
12761
12768
  _: 2
12762
12769
  }, 1032, ["onClick"])
@@ -12773,12 +12780,12 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12773
12780
  disabled: !e.useActionOutside,
12774
12781
  to: "#kong-ui-app-page-header-action-button"
12775
12782
  }, [
12776
- G(le, {
12783
+ G(oe, {
12777
12784
  appearance: "secondary",
12778
12785
  class: "open-learning-hub",
12779
12786
  "data-testid": "plugins-learn-more-button",
12780
12787
  icon: "",
12781
- onClick: ne[2] || (ne[2] = (oe) => V.$emit("click:learn-more"))
12788
+ onClick: ne[2] || (ne[2] = (re) => N.$emit("click:learn-more"))
12782
12789
  }, {
12783
12790
  default: b(() => [
12784
12791
  G(g(ca), { decorative: "" })
@@ -12801,7 +12808,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12801
12808
  "learn-more": e.config.app === "konnect",
12802
12809
  title: g(s)("plugins.list.empty_state_v2.title"),
12803
12810
  "onClick:create": K,
12804
- "onClick:learnMore": ne[3] || (ne[3] = (oe) => V.$emit("click:learn-more"))
12811
+ "onClick:learnMore": ne[3] || (ne[3] = (re) => N.$emit("click:learn-more"))
12805
12812
  }, {
12806
12813
  image: b(() => [
12807
12814
  v("div", yE, [
@@ -12836,7 +12843,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12836
12843
  title: g(s)("delete.title"),
12837
12844
  visible: Re.value,
12838
12845
  onCancel: Yt,
12839
- onProceed: Ee
12846
+ onProceed: be
12840
12847
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
12841
12848
  ]);
12842
12849
  };
@@ -12906,7 +12913,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12906
12913
  }, {
12907
12914
  default: b(() => [
12908
12915
  v("a", {
12909
- class: Be(["plugin-select-card", { disabled: r.value }]),
12916
+ class: Ce(["plugin-select-card", { disabled: r.value }]),
12910
12917
  "data-testid": `${e.plugin.id}-card`,
12911
12918
  role: "button",
12912
12919
  onClick: Q[1] || (Q[1] = (k) => r.value || I.value ? void 0 : u())
@@ -12914,7 +12921,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12914
12921
  v("div", kE, [
12915
12922
  v("div", SE, [
12916
12923
  v("span", {
12917
- class: Be({ "non-custom-title": !I.value })
12924
+ class: Ce({ "non-custom-title": !I.value })
12918
12925
  }, X(e.plugin.name), 3)
12919
12926
  ]),
12920
12927
  c.value ? (p(), B("div", TE, [
@@ -12944,7 +12951,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12944
12951
  onClick: Q[0] || (Q[0] = On((k) => y(e.plugin.name, e.plugin.customPluginType), ["stop"]))
12945
12952
  }, {
12946
12953
  default: b(() => [
12947
- fe(X(g(s)("actions.edit")), 1)
12954
+ he(X(g(s)("actions.edit")), 1)
12948
12955
  ]),
12949
12956
  _: 1
12950
12957
  })) : ie("", !0),
@@ -12956,7 +12963,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12956
12963
  onClick: On(D, ["stop"])
12957
12964
  }, {
12958
12965
  default: b(() => [
12959
- fe(X(g(s)("actions.delete")), 1)
12966
+ he(X(g(s)("actions.delete")), 1)
12960
12967
  ]),
12961
12968
  _: 1
12962
12969
  })) : ie("", !0)
@@ -12966,7 +12973,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
12966
12973
  ])) : ie("", !0)
12967
12974
  ]),
12968
12975
  v("div", {
12969
- class: Be(["plugin-card-body", { "custom-plugin": I.value }]),
12976
+ class: Ce(["plugin-card-body", { "custom-plugin": I.value }]),
12970
12977
  "data-testid": e.plugin.name,
12971
12978
  title: e.plugin.available ? e.plugin.name : g(s)("plugins.select.unavailable_tooltip"),
12972
12979
  onClick: S
@@ -13083,7 +13090,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13083
13090
  onClick: S[1] || (S[1] = (E) => y.$emit("closed"))
13084
13091
  }, {
13085
13092
  default: b(() => [
13086
- fe(X(g(s)("actions.cancel")), 1)
13093
+ he(X(g(s)("actions.cancel")), 1)
13087
13094
  ]),
13088
13095
  _: 1
13089
13096
  })
@@ -13205,7 +13212,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13205
13212
  config: e.config,
13206
13213
  "navigate-on-click": e.navigateOnClick,
13207
13214
  plugin: W,
13208
- onCustomPluginDelete: (N) => m(W),
13215
+ onCustomPluginDelete: (V) => m(W),
13209
13216
  onPluginClicked: c
13210
13217
  }, null, 8, ["can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin", "onCustomPluginDelete"]))), 128))
13211
13218
  ], 4)
@@ -13215,7 +13222,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13215
13222
  Q.value ? void 0 : {
13216
13223
  name: "trigger",
13217
13224
  fn: b(() => [
13218
- h[2] || (h[2] = fe("   "))
13225
+ h[2] || (h[2] = he("   "))
13219
13226
  ]),
13220
13227
  key: "0"
13221
13228
  }
@@ -13327,7 +13334,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13327
13334
  m.value ? void 0 : {
13328
13335
  name: "trigger",
13329
13336
  fn: b(() => [
13330
- S[1] || (S[1] = fe("   "))
13337
+ S[1] || (S[1] = he("   "))
13331
13338
  ]),
13332
13339
  key: "0"
13333
13340
  }
@@ -13530,8 +13537,8 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13530
13537
  return {};
13531
13538
  const M = A.value.toLowerCase(), R = JSON.parse(JSON.stringify(O.value));
13532
13539
  for (const ce in O.value) {
13533
- const Ae = ((P = O.value[ce]) == null ? void 0 : P.filter((pe) => pe.name.toLowerCase().includes(M) || pe.id.toLowerCase().includes(M) || pe.group.toLowerCase().includes(M))) || [];
13534
- Ae.length ? R[ce] = Ae : delete R[ce];
13540
+ const pe = ((P = O.value[ce]) == null ? void 0 : P.filter((de) => de.name.toLowerCase().includes(M) || de.id.toLowerCase().includes(M) || de.group.toLowerCase().includes(M))) || [];
13541
+ pe.length ? R[ce] = pe : delete R[ce];
13535
13542
  }
13536
13543
  return R;
13537
13544
  }), h = J(() => n.highlightedPluginIds.reduce((M, R) => {
@@ -13551,7 +13558,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13551
13558
  var R;
13552
13559
  let M = W.value.length && ((a == null ? void 0 : a.hash) || ((R = W.value[0]) == null ? void 0 : R.hash)) || "";
13553
13560
  return M === "#custom" && ["none", "disabled"].includes(n.customPluginSupport) && (M = "#kong"), M;
13554
- }), N = () => [.../* @__PURE__ */ new Set(
13561
+ }), V = () => [.../* @__PURE__ */ new Set(
13555
13562
  [
13556
13563
  ...Object.keys({ ...n.availableOnServer ? {} : r }),
13557
13564
  ...y.value
@@ -13567,9 +13574,9 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13567
13574
  group: ((ae = r[R]) == null ? void 0 : ae.group) || w.CUSTOM_PLUGINS
13568
13575
  };
13569
13576
  ce.group === w.CUSTOM_PLUGINS && (ce.customPluginType = S.value.find((ze) => ze.name === R) ? "streaming" : "schema"), n.disabledPlugins && (ce.disabledMessage = n.disabledPlugins[R]);
13570
- const Ae = ce.group || o("plugins.select.misc_plugins");
13571
- let pe = M[Ae];
13572
- return pe || (pe = []), pe.push(ce), pe.sort(d("name")), M[Ae] = pe, M;
13577
+ const pe = ce.group || o("plugins.select.misc_plugins");
13578
+ let de = M[pe];
13579
+ return de || (de = []), de.push(ce), de.sort(d("name")), M[pe] = de, M;
13573
13580
  }, {}), _ = J(() => {
13574
13581
  var R;
13575
13582
  let M = `${n.config.apiBaseUrl}${Ne.select[n.config.app].availablePlugins}`;
@@ -13580,7 +13587,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13580
13587
  return M = M.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || ""), M;
13581
13588
  }
13582
13589
  return null;
13583
- }), re = J(() => {
13590
+ }), le = J(() => {
13584
13591
  if (n.config.entityType && n.config.entityId) {
13585
13592
  let M = `${n.config.apiBaseUrl}${Ne.list[n.config.app].forEntity}`;
13586
13593
  return n.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), M.replace(/{entityType}/gi, n.config.entityType || "").replace(/{entityId}/gi, n.config.entityId || "");
@@ -13590,9 +13597,9 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13590
13597
  s.replace({ hash: M, query: a.query });
13591
13598
  };
13592
13599
  mt(() => n.disabledPlugins, (M, R) => {
13593
- !u(M, R) && !m.value && (O.value = N());
13600
+ !u(M, R) && !m.value && (O.value = V());
13594
13601
  }), mt(() => n.ignoredPlugins, (M, R) => {
13595
- !u(M, R) && !m.value && (O.value = N());
13602
+ !u(M, R) && !m.value && (O.value = V());
13596
13603
  }), mt(m, (M) => {
13597
13604
  i("loading", M);
13598
13605
  });
@@ -13615,18 +13622,18 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13615
13622
  } catch (M) {
13616
13623
  I.value = !0, D.value = c(M);
13617
13624
  }
13618
- if (re.value)
13625
+ if (le.value)
13619
13626
  try {
13620
- const { data: { data: M } } = await E.get(re.value);
13627
+ const { data: { data: M } } = await E.get(le.value);
13621
13628
  if (M != null && M.length) {
13622
13629
  const R = M.reduce((P, ce) => (ce.name && P.push(ce.name), P), []);
13623
13630
  Q.value = Q.value.concat(R);
13624
13631
  }
13625
13632
  } catch {
13626
13633
  }
13627
- I.value || (O.value = N()), m.value = !1;
13634
+ I.value || (O.value = V()), m.value = !1;
13628
13635
  }), (M, R) => {
13629
- const P = q("KInput"), ce = q("KSkeletonBox"), Ae = q("KSkeleton"), pe = q("KEmptyState"), ae = q("KTooltip"), ze = q("KTabs");
13636
+ const P = q("KInput"), ce = q("KSkeletonBox"), pe = q("KSkeleton"), de = q("KEmptyState"), ae = q("KTooltip"), ze = q("KTabs");
13630
13637
  return p(), B("div", QE, [
13631
13638
  v("div", XE, [
13632
13639
  G(P, {
@@ -13644,12 +13651,12 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13644
13651
  class: "plugins-skeleton-title",
13645
13652
  width: "10"
13646
13653
  }),
13647
- G(Ae, {
13654
+ G(pe, {
13648
13655
  "card-count": 8,
13649
13656
  class: "plugins-skeleton-cards",
13650
13657
  type: "card"
13651
13658
  })
13652
- ])) : I.value ? (p(), L(pe, {
13659
+ ])) : I.value ? (p(), L(de, {
13653
13660
  key: 1,
13654
13661
  "action-button-visible": !1,
13655
13662
  "data-testid": "plugins-fetch-error",
@@ -13659,7 +13666,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13659
13666
  v("h3", null, X(D.value), 1)
13660
13667
  ]),
13661
13668
  _: 1
13662
- })) : x.value && A.value ? (p(), L(pe, {
13669
+ })) : x.value && A.value ? (p(), L(de, {
13663
13670
  key: 2,
13664
13671
  "action-button-visible": !1,
13665
13672
  "data-testid": "plugins-empty-state",
@@ -13704,7 +13711,7 @@ const gE = "#00abd2", mE = "16px", fE = "24px", hE = { class: "kong-ui-entities-
13704
13711
  "plugin-list": C.value,
13705
13712
  "onDelete:success": R[2] || (R[2] = (Re) => M.$emit("delete-custom:success", Re)),
13706
13713
  onPluginClicked: R[3] || (R[3] = (Re) => M.$emit("plugin-clicked", Re)),
13707
- onRevalidate: R[4] || (R[4] = () => O.value = N())
13714
+ onRevalidate: R[4] || (R[4] = () => O.value = V())
13708
13715
  }, null, 8, ["can-create-custom-plugin", "can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin-list"])
13709
13716
  ])
13710
13717
  ]),