@kong-ui-public/entities-plugins 9.12.4 → 9.12.5

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 er = (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) => er(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 kt, renderSlot as ft, normalizeClass as Ce, createTextVNode as he, toDisplayString as X, createVNode as G, createElementVNode as v, normalizeProps as tr, guardReactiveProps as nr, defineComponent as ye, provide as gn, useSlots as ni, computed as J, onMounted as Dn, unref as g, nextTick as Pn, mergeProps as gt, toRefs as Zt, isRef as mn, toRef as ir, inject as Os, onBeforeMount as fn, Transition as ar, resolveDirective as Ms, withDirectives as $e, vModelText as Bn, vModelCheckbox as sr, vModelSelect as or, vModelDynamic as Rs, vModelRadio as rr, vShow as lr, watch as mt, reactive as In, Teleport as ki, withModifiers as On, onUnmounted as ks, normalizeStyle as Ss, mergeModels as ra, useModel as cr } 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 kt, renderSlot as ft, normalizeClass as be, createTextVNode as he, toDisplayString as X, createVNode as G, createElementVNode as v, normalizeProps as tr, guardReactiveProps as nr, defineComponent as ye, provide as gn, useSlots as ni, computed as J, onMounted as Dn, unref as g, nextTick as Pn, mergeProps as gt, toRefs as Zt, isRef as mn, toRef as ir, inject as Os, onBeforeMount as fn, Transition as ar, resolveDirective as Ms, withDirectives as $e, vModelText as Bn, vModelCheckbox as sr, vModelSelect as or, vModelDynamic as Rs, vModelRadio as rr, vShow as lr, watch as mt, reactive as In, Teleport as ki, withModifiers as On, onUnmounted as ks, normalizeStyle as Ss, mergeModels as ra, useModel as cr } from "vue";
5
5
  import { useStringHelpers as Fi, ConfigurationSchemaType as We, useAxios as Wt, useDebouncedFilter as la, useHelpers as ii, useErrors as ai, EntityBaseFormType as Ht, EntityBaseForm as ur, SupportedEntityType as Si, JsonCodeBlock as dr, YamlCodeBlock as pr, TerraformCodeBlock as Ar, useTableState as gr, useGatewayFeatureSupported as mr, useFetcher as fr, useDeleteUrlBuilder as hr, FetcherStatus as vr, EntityBaseTable as yr, EntityFilter as br, PermissionsWrapper as Vt, TableTags as Er, EntityEmptyState as wr, EntityToggleModal as Cr, EntityDeleteModal as Ts, EntityTypes as xs, ConfigurationSchemaSection as on, useSchemaProvider as Br, EntityBaseConfigCard as Ir, InternalLinkItem as Kn } from "@kong-ui-public/entities-shared";
6
6
  import { useRouter as si, useRoute as Or } from "vue-router";
7
7
  import { createI18n as Et, i18nTComponent as Ps } from "@kong-ui-public/i18n";
@@ -4351,7 +4351,7 @@ function Yp(e, t) {
4351
4351
  e = e[jp(t[n++])];
4352
4352
  return n && n == i ? e : void 0;
4353
4353
  }
4354
- function we(e, t, n) {
4354
+ function Ce(e, t, n) {
4355
4355
  var i = e == null ? void 0 : Yp(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
- [we(this.options, "validationErrorClass", "error")]: t,
4661
- [we(this.options, "validationSuccessClass", "valid")]: !t,
4660
+ [Ce(this.options, "validationErrorClass", "error")]: t,
4661
+ [Ce(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 = we(n.context, "schema.attributes", {});
5478
+ let i = Ce(n.context, "schema.attributes", {});
5479
5479
  const a = t.value || "input";
5480
- qt(a) && (i = we(i, a) || i), _e(i, (s, o) => {
5480
+ qt(a) && (i = Ce(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(we(this.schema, "get")) ? e = this.schema.get(this.model) : e = we(this.model, this.schema.model), this.formatValueToField(e);
5507
+ return Ge(Ce(this.schema, "get")) ? e = this.schema.get(this.model) : e = Ce(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 = we(this.formOptions, "validateAsync", !1);
5518
+ const t = Ce(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
- we(this.schema, "validateDebounceTime", we(this.formOptions, "validateDebounceTime", 500))
5550
+ Ce(this.schema, "validateDebounceTime", Ce(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), we(this.formOptions, "validateAfterChanged", !1) === !0 && (we(this.schema, "validateDebounceTime", we(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), Ce(this.formOptions, "validateAfterChanged", !1) === !0 && (Ce(this.schema, "validateDebounceTime", Ce(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 = we(this.formOptions, "fieldIdPrefix", "");
5579
+ const n = Ce(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 we(this.schema, "fieldClasses", []);
5586
+ return Ce(this.schema, "fieldClasses", []);
5587
5587
  },
5588
5588
  formatValueToField(e) {
5589
5589
  return e;
@@ -5640,7 +5640,7 @@ function Dm(e, t, n, i, a, s) {
5640
5640
  v("span", null, X(s.titleText), 1)
5641
5641
  ]),
5642
5642
  v("div", {
5643
- class: Ce(["advanced-field-dropdown", s.openClass])
5643
+ class: be(["advanced-field-dropdown", s.openClass])
5644
5644
  }, [
5645
5645
  G(o, {
5646
5646
  model: e.model,
@@ -5933,7 +5933,7 @@ function tf(e) {
5933
5933
  get() {
5934
5934
  var y, S;
5935
5935
  let 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);
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);
5937
5937
  },
5938
5938
  set(y) {
5939
5939
  const S = a;
@@ -5942,7 +5942,7 @@ function tf(e) {
5942
5942
  }), s = (y) => {
5943
5943
  var S;
5944
5944
  c();
5945
- const O = (S = e.schema) == null ? void 0 : S.validator, Q = we(e.formOptions, "validateAsync", !1);
5945
+ const O = (S = e.schema) == null ? void 0 : S.validator, Q = Ce(e.formOptions, "validateAsync", !1);
5946
5946
  let E = [];
5947
5947
  if (O && e.schema.readonly !== !0 && e.disabled !== !0) {
5948
5948
  const C = [];
@@ -5977,12 +5977,12 @@ function tf(e) {
5977
5977
  }, o = () => {
5978
5978
  Ge(n.value) ? n.value() : n.value = Ln(
5979
5979
  s,
5980
- we(e.schema, "validateDebounceTime", we(e.formOptions, "validateDebounceTime", 500))
5980
+ Ce(e.schema, "validateDebounceTime", Ce(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), we(e.formOptions, "validateAfterChanged", !1) === !0 && (we(e.schema, "validateDebounceTime", we(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), Ce(e.formOptions, "validateAfterChanged", !1) === !0 && (Ce(e.schema, "validateDebounceTime", Ce(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 tf(e) {
6002
6002
  ++f;
6003
6003
  }
6004
6004
  }, u = (y, S = !1) => {
6005
- const O = we(e.formOptions, "fieldIdPrefix", "");
6005
+ const O = Ce(e.formOptions, "fieldIdPrefix", "");
6006
6006
  return aa(y, O) + (S ? "-" + yo() : "");
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;
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;
6008
6008
  return {
6009
6009
  value: a,
6010
6010
  clearValidationErrors: c,
@@ -6112,7 +6112,7 @@ const Ut = {
6112
6112
  (E, f) => {
6113
6113
  D(E, f);
6114
6114
  },
6115
- parseInt(we(i.schema, "debounceFormatTimeout", 1e3)),
6115
+ parseInt(Ce(i.schema, "debounceFormatTimeout", 1e3)),
6116
6116
  {
6117
6117
  trailing: !0,
6118
6118
  leading: !1
@@ -6126,7 +6126,7 @@ const Ut = {
6126
6126
  (E, f) => {
6127
6127
  I(E, f);
6128
6128
  },
6129
- parseInt(we(i.schema, "debounceFormatTimeout", 1e3)),
6129
+ parseInt(Ce(i.schema, "debounceFormatTimeout", 1e3)),
6130
6130
  {
6131
6131
  trailing: !0,
6132
6132
  leading: !1
@@ -6186,7 +6186,7 @@ const Ut = {
6186
6186
  function rf(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: Ce(["field-dropdown", { active: a.contentVisible }])
6189
+ class: be(["field-dropdown", { active: a.contentVisible }])
6190
6190
  }, [
6191
6191
  v("div", {
6192
6192
  class: "title",
@@ -6265,7 +6265,7 @@ function yf(e, t, n, i, a, s) {
6265
6265
  }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (p(), B("div", uf, [
6266
6266
  v("table", {
6267
6267
  id: e.getFieldID(e.schema),
6268
- class: Ce(e.schema.fieldClasses)
6268
+ class: be(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),
@@ -6439,7 +6439,7 @@ function xf(e, t, n, i, a, s) {
6439
6439
  const o = q("TrashIcon"), r = q("KButton"), c = q("vue-form-generator");
6440
6440
  return p(), B("div", {
6441
6441
  id: e.getFieldID(e.schema),
6442
- class: Ce(["object-advanced-wrapper", e.schema.fieldClasses])
6442
+ class: be(["object-advanced-wrapper", e.schema.fieldClasses])
6443
6443
  }, [
6444
6444
  (p(!0), B(ge, null, Oe(e.value, (d, u) => (p(), B("div", {
6445
6445
  key: u,
@@ -6494,7 +6494,7 @@ function xf(e, t, n, i, a, s) {
6494
6494
  ])
6495
6495
  ], 8, wf))), 128)),
6496
6496
  v("div", {
6497
- class: Ce(["input-wrapper", { indent: s.hasObjectKeys }])
6497
+ class: be(["input-wrapper", { indent: s.hasObjectKeys }])
6498
6498
  }, [
6499
6499
  v("div", kf, [
6500
6500
  $e(v("input", {
@@ -6685,7 +6685,7 @@ const Go = /* @__PURE__ */ Ue(bf, [["render", xf], ["__scopeId", "data-v-9c0cacf
6685
6685
  id: g(c)(e.schema),
6686
6686
  modelValue: g(u),
6687
6687
  "onUpdate:modelValue": S[0] || (S[0] = (Q) => mn(u) ? u.value = Q : null),
6688
- class: Ce(e.schema.fieldClasses),
6688
+ class: be(e.schema.fieldClasses),
6689
6689
  clearable: !e.schema.required,
6690
6690
  disabled: e.disabled || void 0,
6691
6691
  items: A.value,
@@ -6767,11 +6767,11 @@ function Hf(e, t, n, i, a, s) {
6767
6767
  return e.schema ? (p(), B("div", {
6768
6768
  key: 0,
6769
6769
  id: e.getFieldID(e.schema),
6770
- class: Ce(e.schema.fieldClasses)
6770
+ class: be(e.schema.fieldClasses)
6771
6771
  }, [
6772
6772
  (p(!0), B(ge, null, Oe(e.value, (d, u) => (p(), B("div", {
6773
6773
  key: u,
6774
- class: Ce(e.schema.fieldItemsClasses)
6774
+ class: be(e.schema.fieldItemsClasses)
6775
6775
  }, [
6776
6776
  e.schema.items && e.schema.itemContainerComponent ? (p(), L(Ke(e.schema.itemContainerComponent), {
6777
6777
  key: 0,
@@ -6872,7 +6872,7 @@ function Hf(e, t, n, i, a, s) {
6872
6872
  ], 2))), 128)),
6873
6873
  G(c, {
6874
6874
  appearance: "tertiary",
6875
- class: Ce(e.schema.newElementButtonLabelClasses),
6875
+ class: be(e.schema.newElementButtonLabelClasses),
6876
6876
  "data-testid": `add-${e.getFieldID(e.schema)}`,
6877
6877
  type: "button",
6878
6878
  onClick: s.newElement
@@ -6968,7 +6968,7 @@ function $f(e, t, n, i, a, s) {
6968
6968
  disabled: e.disabled || null
6969
6969
  }, [
6970
6970
  (p(!0), B(ge, null, Oe(s.items, (r) => (p(), B("div", {
6971
- class: Ce(["list-row", { "is-checked": s.isItemChecked(r) }])
6971
+ class: be(["list-row", { "is-checked": s.isItemChecked(r) }])
6972
6972
  }, [
6973
6973
  v("label", null, [
6974
6974
  $e(v("input", {
@@ -6991,7 +6991,7 @@ function $f(e, t, n, i, a, s) {
6991
6991
  disabled: e.disabled || null
6992
6992
  }, [
6993
6993
  v("div", {
6994
- class: Ce(["mainRow", { expanded: a.comboExpanded }]),
6994
+ class: be(["mainRow", { expanded: a.comboExpanded }]),
6995
6995
  onClick: t[0] || (t[0] = (...r) => s.onExpandCombo && s.onExpandCombo(...r))
6996
6996
  }, [
6997
6997
  v("div", Zf, X(s.selectedCount) + " selected", 1),
@@ -6999,7 +6999,7 @@ function $f(e, t, n, i, a, s) {
6999
6999
  ], 2),
7000
7000
  v("div", Wf, [
7001
7001
  a.comboExpanded ? (p(!0), B(ge, { key: 0 }, Oe(s.items, (r) => (p(), B("div", {
7002
- class: Ce(["list-row", { "is-checked": s.isItemChecked(r) }])
7002
+ class: be(["list-row", { "is-checked": s.isItemChecked(r) }])
7003
7003
  }, [
7004
7004
  v("label", null, [
7005
7005
  $e(v("input", {
@@ -7188,7 +7188,7 @@ function lh(e, t, n, i, a, s) {
7188
7188
  ]))), 128)),
7189
7189
  G(r, {
7190
7190
  appearance: "tertiary",
7191
- class: Ce(e.schema.newElementButtonLabelClasses),
7191
+ class: be(e.schema.newElementButtonLabelClasses),
7192
7192
  "data-testid": `${e.getFieldID(e.schema)}-add-pair`,
7193
7193
  type: "button",
7194
7194
  onClick: s.addPair
@@ -7235,7 +7235,7 @@ const ch = /* @__PURE__ */ Ue(nh, [["render", lh], ["__scopeId", "data-v-70998d5
7235
7235
  return (s, o) => {
7236
7236
  const r = q("KLabel");
7237
7237
  return p(), B("span", {
7238
- class: Ce(["field-label", e.schema.fieldClasses])
7238
+ class: be(["field-label", e.schema.fieldClasses])
7239
7239
  }, [
7240
7240
  G(r, {
7241
7241
  id: g(i)(e.schema)
@@ -7310,7 +7310,7 @@ const ch = /* @__PURE__ */ Ue(nh, [["render", lh], ["__scopeId", "data-v-70998d5
7310
7310
  modelValue: g(d),
7311
7311
  "onUpdate:modelValue": m[0] || (m[0] = (D) => mn(d) ? d.value = D : null),
7312
7312
  "aria-labelledby": g(o)(e.schema),
7313
- class: Ce(e.schema.fieldClasses),
7313
+ class: be(e.schema.fieldClasses),
7314
7314
  "data-testid": "field-multiselect",
7315
7315
  disabled: e.disabled || void 0,
7316
7316
  items: u.value,
@@ -7379,10 +7379,10 @@ function Eh(e, t, n, i, a, s) {
7379
7379
  v("div", fh, [
7380
7380
  (p(!0), B(ge, null, Oe(e.schema.fields, (r, c) => (p(), B("div", {
7381
7381
  key: c,
7382
- class: Ce(["option-group", { "radio-disabled": e.$props.disabled }])
7382
+ class: be(["option-group", { "radio-disabled": e.$props.disabled }])
7383
7383
  }, [
7384
7384
  v("label", {
7385
- class: Ce(["k-label", `${r.label}-check`])
7385
+ class: be(["k-label", `${r.label}-check`])
7386
7386
  }, [
7387
7387
  $e(v("input", {
7388
7388
  "onUpdate:modelValue": t[0] || (t[0] = (d) => a.checkedGroup = d),
@@ -7481,7 +7481,7 @@ const wh = /* @__PURE__ */ Ue(Ah, [["render", Eh], ["__scopeId", "data-v-56d57ed
7481
7481
  modelValue: g(u),
7482
7482
  "onUpdate:modelValue": I[0] || (I[0] = (y) => mn(u) ? u.value = y : null),
7483
7483
  autocomplete: e.schema.autocomplete,
7484
- class: Ce(e.schema.fieldClasses),
7484
+ class: be(e.schema.fieldClasses),
7485
7485
  disabled: e.disabled || void 0,
7486
7486
  label: g(u) ? e.schema.textOn || g(s)("vfg.labels.on") : e.schema.textOff || g(s)("vfg.labels.off"),
7487
7487
  "label-attributes": { info: e.schema.help },
@@ -7669,7 +7669,7 @@ const wh = /* @__PURE__ */ Ue(Ah, [["render", Eh], ["__scopeId", "data-v-56d57ed
7669
7669
  }
7670
7670
  },
7671
7671
  getFieldID(e) {
7672
- const t = we(this.options, "fieldIdPrefix", "");
7672
+ const t = Ce(this.options, "fieldIdPrefix", "");
7673
7673
  return aa(e, t);
7674
7674
  },
7675
7675
  getTooltipId(e) {
@@ -7681,7 +7681,7 @@ const wh = /* @__PURE__ */ Ue(Ah, [["render", Eh], ["__scopeId", "data-v-56d57ed
7681
7681
  },
7682
7682
  // Get type of button, default to 'button'
7683
7683
  getButtonType(e) {
7684
- return we(e, "type", "button");
7684
+ return Ce(e, "type", "button");
7685
7685
  },
7686
7686
  // Child field executed validation
7687
7687
  onFieldValidated(e, t, n) {
@@ -7731,12 +7731,12 @@ const wh = /* @__PURE__ */ Ue(Ah, [["render", Eh], ["__scopeId", "data-v-56d57ed
7731
7731
  function Hh(e, t, n, i, a, s) {
7732
7732
  const o = q("KExternalLink"), r = q("KLabel");
7733
7733
  return p(), B("div", {
7734
- class: Ce(["form-group", e.getFieldRowClasses(n.field)])
7734
+ class: be(["form-group", e.getFieldRowClasses(n.field)])
7735
7735
  }, [
7736
7736
  s.fieldTypeHasLabel(n.field) ? (p(), L(r, {
7737
7737
  key: 0,
7738
7738
  "aria-describedby": n.field.help ? s.getTooltipId(n.field) : void 0,
7739
- class: Ce([n.field.labelClasses, "form-group-label"]),
7739
+ class: be([n.field.labelClasses, "form-group-label"]),
7740
7740
  for: s.getFieldID(n.field),
7741
7741
  info: !n.options.helpAsHtml && n.field.help ? n.field.help : void 0,
7742
7742
  "tooltip-attributes": n.field.help ? {
@@ -7790,7 +7790,7 @@ function Hh(e, t, n, i, a, s) {
7790
7790
  s.buttonVisibility(n.field) ? (p(), B("div", Uh, [
7791
7791
  (p(!0), B(ge, null, Oe(n.field.buttons, (c, d) => (p(), B("button", {
7792
7792
  key: d,
7793
- class: Ce(c.classes),
7793
+ class: be(c.classes),
7794
7794
  type: s.getButtonType(c),
7795
7795
  onClick: (u) => s.buttonClickHandler(c, n.field, u),
7796
7796
  textContent: X(c.label)
@@ -7936,7 +7936,7 @@ const Vh = /* @__PURE__ */ Ue(kh, [["render", Hh], ["__scopeId", "data-v-0cb2e22
7936
7936
  },
7937
7937
  // Validating the model properties
7938
7938
  validate(e = null) {
7939
- e === null && (e = we(this.options, "validateAsync", !1)), this.clearValidationErrors();
7939
+ e === null && (e = Ce(this.options, "validateAsync", !1)), this.clearValidationErrors();
7940
7940
  const t = [], n = [];
7941
7941
  _e(this.$refs.children, (a) => {
7942
7942
  Ge(a.validate) && (t.push(a.$refs.child), n.push(a.$refs.child.validate(!0)));
@@ -8007,7 +8007,7 @@ function zh(e, t, n, i, a, s) {
8007
8007
  (u = c.slots) != null && u.beforeContent ? ft(e.$slots, (A = c.slots) == null ? void 0 : A.beforeContent, { key: 0 }) : ie("", !0),
8008
8008
  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), {
8009
8009
  key: 2,
8010
- class: Ce(e.getFieldRowClasses(c))
8010
+ class: be(e.getFieldRowClasses(c))
8011
8011
  }, {
8012
8012
  default: b(() => [
8013
8013
  (p(!0), B(ge, null, Oe(c.fields, (D) => (p(), B(ge, {
@@ -8040,7 +8040,7 @@ function zh(e, t, n, i, a, s) {
8040
8040
  }, {
8041
8041
  default: b(() => [
8042
8042
  (p(), L(Ke(n.tag), {
8043
- class: Ce(e.getFieldRowClasses(c))
8043
+ class: be(e.getFieldRowClasses(c))
8044
8044
  }, {
8045
8045
  default: b(() => [
8046
8046
  (p(!0), B(ge, null, Oe(c.collapsible.nestedCollapsible.fields, (D) => (p(), B(ge, {
@@ -8079,7 +8079,7 @@ function zh(e, t, n, i, a, s) {
8079
8079
  } : void 0
8080
8080
  ]), 1032, ["title"])) : (p(), L(Ke(n.tag), {
8081
8081
  key: 1,
8082
- class: Ce(e.getFieldRowClasses(c))
8082
+ class: be(e.getFieldRowClasses(c))
8083
8083
  }, {
8084
8084
  default: b(() => [
8085
8085
  c.legend ? (p(), B("legend", Kh, X(c.legend), 1)) : ie("", !0),
@@ -9232,7 +9232,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
9232
9232
  _: 1
9233
9233
  }, 8, ["title"])) : ie("", !0),
9234
9234
  G(_, {
9235
- class: Ce({ "rla-last-vfg": j.formModel["config-strategy"] !== "redis" }),
9235
+ class: be({ "rla-last-vfg": j.formModel["config-strategy"] !== "redis" }),
9236
9236
  model: j.formModel,
9237
9237
  options: j.formOptions,
9238
9238
  schema: c.value.afterStrategy,
@@ -10739,6 +10739,9 @@ const Ho = {
10739
10739
  __name: "VaultSecretPickerProvider",
10740
10740
  props: {
10741
10741
  value: {},
10742
+ disabled: {
10743
+ type: Boolean
10744
+ },
10742
10745
  update: {
10743
10746
  type: Function
10744
10747
  }
@@ -10758,13 +10761,16 @@ const Ho = {
10758
10761
  scope: "global"
10759
10762
  }, {
10760
10763
  cta: b(() => [v("span", {
10761
- class: "vault-secret-picker-provider-action",
10762
- onClick: r[0] || (r[0] = () => i("open", n.value, n.update))
10763
- }, X(g(a)("vault_secret_picker.provider.cta")), 1)]),
10764
+ class: be({
10765
+ "vault-secret-picker-provider-action": !0,
10766
+ disabled: n.disabled
10767
+ }),
10768
+ onClick: r[0] || (r[0] = () => !n.disabled && i("open", n.value, n.update))
10769
+ }, X(g(a)("vault_secret_picker.provider.cta")), 3)]),
10764
10770
  _: 1
10765
10771
  })]));
10766
10772
  }
10767
- }), us = /* @__PURE__ */ Vo(gy, [["__scopeId", "data-v-200e7f4d"]]), my = (e) => {
10773
+ }), us = /* @__PURE__ */ Vo(gy, [["__scopeId", "data-v-66a1e406"]]), my = (e) => {
10768
10774
  let t = e.trim();
10769
10775
  if (!t.startsWith("{") || !t.endsWith("}"))
10770
10776
  throw new Error("Invalid secret reference: must be enclosed in curly braces");
@@ -11187,18 +11193,18 @@ const Ho = {
11187
11193
  if (et && Re !== et)
11188
11194
  switch (et) {
11189
11195
  case "array":
11190
- Re === "string" && ae.length && (ae = ae.split(",").map((be) => {
11191
- if (be = be.trim(), It === "string")
11192
- return String(be);
11196
+ Re === "string" && ae.length && (ae = ae.split(",").map((Ee) => {
11197
+ if (Ee = Ee.trim(), It === "string")
11198
+ return String(Ee);
11193
11199
  if (It === "number")
11194
- return Number(be);
11200
+ return Number(Ee);
11195
11201
  if (It === "boolean") {
11196
- if (typeof be == "string")
11197
- return be.toLowerCase() === "true" || be === "1";
11198
- if (typeof be == "number")
11199
- return be === 1;
11202
+ if (typeof Ee == "string")
11203
+ return Ee.toLowerCase() === "true" || Ee === "1";
11204
+ if (typeof Ee == "number")
11205
+ return Ee === 1;
11200
11206
  }
11201
- return be;
11207
+ return Ee;
11202
11208
  })), (!ae || !ae.length) && (ae = de.submitWhenNull ? null : []);
11203
11209
  break;
11204
11210
  case "number":
@@ -11211,29 +11217,29 @@ const Ho = {
11211
11217
  ae = ae == null ? "" : String(ae);
11212
11218
  break;
11213
11219
  }
11214
- else et === "array" && (!ae || !ae.length ? ae = de.submitWhenNull ? null : [] : ((jt = de.inputAttributes) == null ? void 0 : jt.type) === "number" && (ae = ae.map((be) => Number(be))));
11220
+ else et === "array" && (!ae || !ae.length ? ae = de.submitWhenNull ? null : [] : ((jt = de.inputAttributes) == null ? void 0 : jt.type) === "number" && (ae = ae.map((Ee) => Number(Ee))));
11215
11221
  if (de.type === "array" && de.nestedFields) {
11216
- const be = (K) => {
11222
+ const Ee = (K) => {
11217
11223
  Object.keys(K).forEach((se) => {
11218
- K[se] && typeof K[se] == "object" && !Array.isArray(K[se]) && 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];
11224
+ K[se] && typeof K[se] == "object" && !Array.isArray(K[se]) && 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];
11219
11225
  });
11220
11226
  };
11221
- ae && typeof ae == "object" && be(ae);
11227
+ ae && typeof ae == "object" && Ee(ae);
11222
11228
  }
11223
- de.type === "object-advanced" && de.fields && ae !== null && (Object.entries(ae).length === 0 ? ae = null : Object.keys(ae).forEach((be) => {
11224
- Array.isArray(ae[be]) || (ae[be] = ae[be].split(","));
11229
+ de.type === "object-advanced" && de.fields && ae !== null && (Object.entries(ae).length === 0 ? ae = null : Object.keys(ae).forEach((Ee) => {
11230
+ Array.isArray(ae[Ee]) || (ae[Ee] = ae[Ee].split(","));
11225
11231
  }));
11226
11232
  }
11227
11233
  let Le = o(pe);
11228
11234
  if (de.fieldNameHasDashes) {
11229
- const [be, ...K] = Le.split(".").reverse();
11230
- Le = [be.replace(/_/g, "-"), ...K].reverse().join(".");
11235
+ const [Ee, ...K] = Le.split(".").reverse();
11236
+ Le = [Ee.replace(/_/g, "-"), ...K].reverse().join(".");
11231
11237
  }
11232
11238
  if (et === "object-expand") {
11233
- let be;
11234
- [Le, be] = Le.split(".");
11239
+ let Ee;
11240
+ [Le, Ee] = Le.split(".");
11235
11241
  let K = {};
11236
- R[Le] && (K = R[Le]), K[be] = ae, ae = K;
11242
+ R[Le] && (K = R[Le]), K[Ee] = ae, ae = K;
11237
11243
  }
11238
11244
  ze !== void 0 && ae === "" && ae !== ze ? R[Le] = et === "object" ? {} : null : de.type === "checklist" && ae === "" ? R[Le] = [] : ae !== "" && (R[Le] = ae), R[Le] = Dt ? Dt(ae) : R[Le], d(Le, R);
11239
11245
  }), r(R);
@@ -11489,8 +11495,8 @@ const Ho = {
11489
11495
  },
11490
11496
  emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated"],
11491
11497
  setup(e, { emit: t }) {
11492
- var be;
11493
- const n = t, i = e, a = si(), { i18n: { t: s } } = Ye.useI18n(), { customSchemas: o, typedefs: r } = Ye.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = Ye.usePluginHelpers(), { getMessageFromError: d } = ai(), { capitalize: u } = Fi(), { objectsAreEqual: A } = ii(), { 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({
11498
+ var Ee;
11499
+ const n = t, i = e, a = si(), { i18n: { t: s } } = Ye.useI18n(), { customSchemas: o, typedefs: r } = Ye.useSchemas({ app: i.config.app, credential: i.credential }), { formatPluginFieldLabel: c } = Ye.usePluginHelpers(), { getMessageFromError: d } = ai(), { capitalize: u } = Fi(), { objectsAreEqual: A } = ii(), { 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({
11494
11500
  enabled: !0,
11495
11501
  protocols: [],
11496
11502
  tags: []
@@ -11525,8 +11531,8 @@ const Ho = {
11525
11531
  }), j = () => {
11526
11532
  I.value = !I.value;
11527
11533
  }, V = J(() => {
11528
- var ne, oe, Ae, Ee, Be, z, F, re;
11529
- 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);
11534
+ var ne, oe, Ae, we, Be, z, F, re;
11535
+ 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 || ((we = (Ae = Q.value) == null ? void 0 : Ae.consumer_group) == null ? void 0 : we.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);
11530
11536
  if (!(K || se || T || fe))
11531
11537
  return {
11532
11538
  global: {
@@ -11633,9 +11639,9 @@ const Ho = {
11633
11639
  const se = Array.from(new Set(K.map((T) => typeof T)));
11634
11640
  return se.length > 1 ? "string" : se[0];
11635
11641
  }, ue = (K, se, T, fe) => {
11636
- var Ae, Ee;
11642
+ var Ae, we;
11637
11643
  let N = se && se.fields || [];
11638
- const ne = o[i.pluginType], oe = (Ee = (Ae = ln[i.pluginType]) == null ? void 0 : Ae.schema) == null ? void 0 : Ee.fields;
11644
+ const ne = o[i.pluginType], oe = (we = (Ae = ln[i.pluginType]) == null ? void 0 : Ae.schema) == null ? void 0 : we.fields;
11639
11645
  return Array.isArray(N) && (N = N.reduce((Be, z) => {
11640
11646
  const F = Object.keys(z)[0];
11641
11647
  return F.match(/-/g) ? Be[F.replace(/-/g, "_")] = {
@@ -11789,8 +11795,8 @@ const Ho = {
11789
11795
  }), T;
11790
11796
  }, ee = () => {
11791
11797
  var Be, z, F, re, De, Qe, it, sn, vn, yn, me, tt;
11792
- 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 = [];
11793
- if (K && Ee.push({
11798
+ 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), we = [];
11799
+ if (K && we.push({
11794
11800
  id: "service-id",
11795
11801
  model: "service-id",
11796
11802
  label: s("plugins.form.scoping.gateway_service.label"),
@@ -11803,7 +11809,7 @@ const Ho = {
11803
11809
  help: s("plugins.form.scoping.gateway_service.help"),
11804
11810
  disabled: oe && i.disableScopeSelection
11805
11811
  // disable service selection if the plugin is already scoped under service
11806
- }), se && Ee.push({
11812
+ }), se && we.push({
11807
11813
  id: "route-id",
11808
11814
  model: "route-id",
11809
11815
  label: s("plugins.form.scoping.route.label"),
@@ -11816,7 +11822,7 @@ const Ho = {
11816
11822
  },
11817
11823
  help: s("plugins.form.scoping.route.help"),
11818
11824
  disabled: Ae && i.disableScopeSelection
11819
- }), T && Ee.push({
11825
+ }), T && we.push({
11820
11826
  model: "consumer-id",
11821
11827
  label: s("plugins.form.scoping.consumer.label"),
11822
11828
  placeholder: s("plugins.form.scoping.consumer.placeholder"),
@@ -11828,7 +11834,7 @@ const Ho = {
11828
11834
  },
11829
11835
  help: s("plugins.form.scoping.consumer.help"),
11830
11836
  disabled: N && i.disableScopeSelection
11831
- }), fe && Ee.push({
11837
+ }), fe && we.push({
11832
11838
  model: "consumer_group-id",
11833
11839
  label: s("plugins.form.scoping.consumer_group.label"),
11834
11840
  placeholder: s("plugins.form.scoping.consumer_group.placeholder"),
@@ -11841,7 +11847,7 @@ const Ho = {
11841
11847
  },
11842
11848
  help: s("plugins.form.scoping.consumer_group.help"),
11843
11849
  disabled: ne && i.disableScopeSelection
11844
- }), Ee.length) {
11850
+ }), we.length) {
11845
11851
  const Te = [
11846
11852
  ...K ? ["service"] : [],
11847
11853
  ...se ? ["route"] : [],
@@ -11860,7 +11866,7 @@ const Ho = {
11860
11866
  label: s("plugins.form.scoping.label"),
11861
11867
  description: vt,
11862
11868
  fields: []
11863
- }), _.selectionGroup.fields[1].fields = Ee;
11869
+ }), _.selectionGroup.fields[1].fields = we;
11864
11870
  }
11865
11871
  o[i.pluginType] && o[i.pluginType].overwriteDefault && Object.hasOwnProperty.call(o[i.pluginType], "formSchema") && Object.assign(_, o[i.pluginType].formSchema);
11866
11872
  }, U = J(() => !A(h.fields, C, !0)), Y = J(() => !Le.value && !f.value && (y.value === Ht.Create || U.value)), Z = $(!1), M = $(), R = (K) => {
@@ -11939,7 +11945,7 @@ const Ho = {
11939
11945
  const { default: oe = [], elements: Ae = {} } = ne;
11940
11946
  _.protocols.default = oe, _.protocols.placeholder = i.config.app === "konnect" ? s("plugins.form.fields.protocols.placeholderWithDefaultValues", {
11941
11947
  protocols: oe.join(", ")
11942
- }) : s("plugins.form.fields.protocols.placeholder"), (T = Ae.one_of) != null && T.length && (_.protocols.values = Ae.one_of.map((Ee) => ({ label: Ee, value: Ee })));
11948
+ }) : s("plugins.form.fields.protocols.placeholder"), (T = Ae.one_of) != null && T.length && (_.protocols.values = Ae.one_of.map((we) => ({ label: we, value: we })));
11943
11949
  }
11944
11950
  (Z.value || y.value === Ht.Create) && (S.value = ue("config", E.value, _));
11945
11951
  }
@@ -12389,9 +12395,9 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12389
12395
  };
12390
12396
  (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 };
12391
12397
  const Q = O, E = J(() => {
12392
- var ne, oe, Ae, Ee;
12398
+ var ne, oe, Ae, we;
12393
12399
  let N = a.config.entityType ? `${a.config.apiBaseUrl}${Ne.list[a.config.app].forEntity}` : `${a.config.apiBaseUrl}${Ne.list[a.config.app].all}`;
12394
- 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) || "");
12400
+ 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, ((we = a.config) == null ? void 0 : we.entityId) || "");
12395
12401
  }), f = $(""), C = J(() => a.config.app === "konnect" || a.config.isExactMatch ? {
12396
12402
  isExactMatch: !0,
12397
12403
  fields: {
@@ -12417,21 +12423,21 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12417
12423
  }, j = () => {
12418
12424
  x.value++;
12419
12425
  }, V = $(null), _ = (N) => {
12420
- var oe, Ae, Ee, Be;
12426
+ var oe, Ae, we, Be;
12421
12427
  const ne = [];
12422
- 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") }];
12428
+ 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") }), ((we = N.consumer) != null && we.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") }];
12423
12429
  }, te = async (N, ne) => {
12424
12430
  var oe;
12425
12431
  return N === null ? !1 : await ((oe = a.canRetrieveScopedEntity) == null ? void 0 : oe.call(a, N, ne.id));
12426
12432
  }, le = (N, ne) => {
12427
- var Ae, Ee, Be, z, F;
12433
+ var Ae, we, Be, z, F;
12428
12434
  let oe = null;
12429
12435
  switch (N) {
12430
12436
  case "route":
12431
12437
  oe = (Ae = ne.route) == null ? void 0 : Ae.id;
12432
12438
  break;
12433
12439
  case "service":
12434
- oe = (Ee = ne.service) == null ? void 0 : Ee.id;
12440
+ oe = (we = ne.service) == null ? void 0 : we.id;
12435
12441
  break;
12436
12442
  case "consumer":
12437
12443
  oe = (Be = ne.consumer) == null ? void 0 : Be.id;
@@ -12457,10 +12463,10 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12457
12463
  }, Z = () => {
12458
12464
  ue.value = !1, ee.value = null;
12459
12465
  }, M = async () => {
12460
- var Ae, Ee, Be, z, F, re, De, Qe;
12466
+ var Ae, we, Be, z, F, re, De, Qe;
12461
12467
  if (!await ((Ae = a.canEdit) == null ? void 0 : Ae.call(a, ee.value)) || !ee.value)
12462
12468
  return;
12463
- 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 || "");
12469
+ 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, ((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 || "");
12464
12470
  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}` : ""));
12465
12471
  const oe = !ee.value.enabled;
12466
12472
  try {
@@ -12513,7 +12519,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12513
12519
  ze.value = N, Re.value = !0;
12514
12520
  }, jt = () => {
12515
12521
  Re.value = !1;
12516
- }, be = async () => {
12522
+ }, Ee = async () => {
12517
12523
  var N, ne, oe;
12518
12524
  if ((N = ze.value) != null && N.id) {
12519
12525
  et.value = !0;
@@ -12547,7 +12553,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12547
12553
  return fn(async () => {
12548
12554
  await a.canCreate() && (se.value.title = s("plugins.list.empty_state.title"), se.value.ctaText = s("actions.create"));
12549
12555
  }), (N, ne) => {
12550
- const oe = q("KButton"), Ae = q("KBadge"), Ee = q("KTruncate"), Be = q("KInputSwitch"), z = q("KDropdownItem"), F = q("KClipboardProvider");
12556
+ const oe = q("KButton"), Ae = q("KBadge"), we = q("KTruncate"), Be = q("KInputSwitch"), z = q("KDropdownItem"), F = q("KClipboardProvider");
12551
12557
  return p(), B("div", vE, [
12552
12558
  G(g(yr), {
12553
12559
  "cache-identifier": e.cacheIdentifier,
@@ -12630,7 +12636,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12630
12636
  ])
12631
12637
  ]),
12632
12638
  appliedTo: b(({ row: re }) => [
12633
- _(re).length > 0 ? (p(), L(Ee, { key: 0 }, {
12639
+ _(re).length > 0 ? (p(), L(we, { key: 0 }, {
12634
12640
  default: b(() => [
12635
12641
  (p(!0), B(ge, null, Oe(_(re), (De) => (p(), L(g(Vt), {
12636
12642
  key: De.badgeText,
@@ -12639,7 +12645,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12639
12645
  }, {
12640
12646
  default: b(({ isAllowed: Qe }) => [
12641
12647
  G(Ae, {
12642
- class: Ce(Qe || "disabled"),
12648
+ class: be(Qe || "disabled"),
12643
12649
  onClick: On((it) => Qe && De.type && le(De.type, re), ["stop"])
12644
12650
  }, {
12645
12651
  default: b(() => [
@@ -12847,7 +12853,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12847
12853
  title: g(s)("delete.title"),
12848
12854
  visible: Re.value,
12849
12855
  onCancel: jt,
12850
- onProceed: be
12856
+ onProceed: Ee
12851
12857
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
12852
12858
  ]);
12853
12859
  };
@@ -12917,7 +12923,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12917
12923
  }, {
12918
12924
  default: b(() => [
12919
12925
  v("a", {
12920
- class: Ce(["plugin-select-card", { disabled: r.value }]),
12926
+ class: be(["plugin-select-card", { disabled: r.value }]),
12921
12927
  "data-testid": `${e.plugin.id}-card`,
12922
12928
  role: "button",
12923
12929
  onClick: Q[1] || (Q[1] = (k) => r.value || I.value ? void 0 : u())
@@ -12925,7 +12931,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12925
12931
  v("div", SE, [
12926
12932
  v("div", TE, [
12927
12933
  v("span", {
12928
- class: Ce({ "non-custom-title": !I.value })
12934
+ class: be({ "non-custom-title": !I.value })
12929
12935
  }, X(e.plugin.name), 3)
12930
12936
  ]),
12931
12937
  c.value ? (p(), B("div", xE, [
@@ -12977,7 +12983,7 @@ const mE = "#00abd2", fE = "16px", hE = "24px", vE = { class: "kong-ui-entities-
12977
12983
  ])) : ie("", !0)
12978
12984
  ]),
12979
12985
  v("div", {
12980
- class: Ce(["plugin-card-body", { "custom-plugin": I.value }]),
12986
+ class: be(["plugin-card-body", { "custom-plugin": I.value }]),
12981
12987
  "data-testid": e.plugin.name,
12982
12988
  title: e.plugin.available ? e.plugin.name : g(s)("plugins.select.unavailable_tooltip"),
12983
12989
  onClick: S