@kong-ui-public/entities-plugins 9.86.0 → 9.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  var nh = Object.defineProperty;
2
2
  var ih = (e, t, n) => t in e ? nh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ut = (e, t, n) => ih(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { defineComponent as he, toRef as Le, inject as it, ref as oe, computed as F, watch as Te, onMounted as Ct, resolveComponent as Ee, createElementBlock as te, openBlock as w, createVNode as P, markRaw as xi, provide as ot, createBlock as U, withCtx as M, createElementVNode as G, createCommentVNode as we, Fragment as Ke, renderList as ze, toDisplayString as ge, unref as p, toValue as Oe, useAttrs as Ln, useSlots as Gt, mergeProps as Ue, createSlots as et, renderSlot as Fe, normalizeProps as cn, guardReactiveProps as En, createPropsRestProxy as Yt, resolveDynamicComponent as mt, Transition as oh, mergeModels as ps, useModel as Ar, onBeforeMount as xn, createTextVNode as De, normalizeClass as Ve, isRef as qo, useTemplateRef as st, withKeys as lu, withModifiers as Ft, nextTick as tt, useCssVars as sl, reactive as Wn, toRaw as Ir, watchEffect as Yd, shallowRef as ei, onBeforeUnmount as zo, getCurrentScope as Wd, effectScope as Xd, getCurrentInstance as Uo, onScopeDispose as _r, toRefs as rh, customRef as ah, h as Ye, normalizeStyle as It, onUnmounted as ll, isMemoSame as sh, readonly as lh, useId as Zd, Teleport as Jd } from "vue";
4
+ import { defineComponent as he, toRef as Le, inject as it, ref as oe, computed as F, watch as Te, onMounted as Ct, resolveComponent as Ee, createElementBlock as te, openBlock as w, createVNode as P, markRaw as xi, provide as ot, createBlock as U, withCtx as M, createElementVNode as G, createCommentVNode as we, Fragment as Ke, renderList as ze, toDisplayString as ge, unref as p, toValue as Oe, useAttrs as Ln, useSlots as Gt, mergeProps as Ue, createSlots as et, renderSlot as Fe, normalizeProps as cn, guardReactiveProps as En, createPropsRestProxy as Yt, resolveDynamicComponent as mt, Transition as oh, mergeModels as ps, useModel as Ar, onBeforeMount as xn, createTextVNode as De, normalizeClass as Ve, isRef as qo, useTemplateRef as st, withKeys as lu, withModifiers as Ft, nextTick as tt, useCssVars as sl, reactive as Wn, toRaw as Ir, watchEffect as Yd, shallowRef as ei, onBeforeUnmount as zo, getCurrentScope as Wd, effectScope as Xd, getCurrentInstance as Uo, onScopeDispose as _r, toRefs as rh, customRef as ah, h as We, normalizeStyle as It, onUnmounted as ll, isMemoSame as sh, readonly as lh, useId as Zd, Teleport as Jd } from "vue";
5
5
  import { useStringHelpers as ea, ConfigurationSchemaType as kt, useAxios as Kn, useErrors as Hi, useDebouncedFilter as uh, EntityFormBlock as uu, useHelpers as ta, EntityBaseFormType as Bn, EntityBaseForm as ch, SupportedEntityType as ms, TerraformCodeBlock as dh, YamlCodeBlock as fh, JsonCodeBlock as ph, useTableState as mh, useGatewayFeatureSupported as gh, useFetcher as hh, useDeleteUrlBuilder as vh, FetcherStatus as yh, EntityBaseTable as _h, PermissionsWrapper as jn, TableTags as bh, EntityFilter as wh, EntityToggleModal as Eh, EntityDeleteModal as Qd, EntityTypes as ef, ConfigurationSchemaSection as gi, useSchemaProvider as kh, EntityBaseConfigCard as Ch, InternalLinkItem as io } from "@kong-ui-public/entities-shared";
6
6
  import { marked as br } from "marked";
7
7
  import { useRouter as na, useRoute as Sh } from "vue-router";
8
8
  import { createI18n as vt, i18nTComponent as xh } from "@kong-ui-public/i18n";
9
- import { PluginGroup as Ge, PLUGIN_GROUP_AND_SCOPE_MAP as pe, PluginScope as Et } from "@kong-ui-public/entities-plugins-metadata";
9
+ import { PluginGroup as Ye, PLUGIN_GROUP_AND_SCOPE_MAP as pe, PluginScope as Et } from "@kong-ui-public/entities-plugins-metadata";
10
10
  import { PluginGroup as uB, PluginScope as cB } from "@kong-ui-public/entities-plugins-metadata";
11
11
  import { composables as Ah, FORMS_CONFIG as ia, getSharedFormName as tf, customFields as gs, AUTOFILL_SLOT as Gi, VueFormGenerator as vo, AUTOFILL_SLOT_NAME as Xn, FORMS_API_KEY as Ih, sharedForms as cu } from "@kong-ui-public/forms";
12
12
  import { VaultSecretPickerProvider as Fa, VaultSecretPicker as Th } from "@kong-ui-public/entities-vaults";
@@ -1087,28 +1087,28 @@ function cf() {
1087
1087
  }
1088
1088
  var _s = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(_s || {});
1089
1089
  const gv = [
1090
- Ge.AUTHENTICATION,
1091
- Ge.AI,
1092
- Ge.SECURITY,
1093
- Ge.TRAFFIC_CONTROL,
1094
- Ge.SERVERLESS,
1095
- Ge.ANALYTICS_AND_MONITORING,
1096
- Ge.TRANSFORMATIONS,
1097
- Ge.LOGGING,
1098
- Ge.DEPLOYMENT,
1099
- Ge.WEBSOCKET,
1100
- Ge.CUSTOM_PLUGINS
1090
+ Ye.AUTHENTICATION,
1091
+ Ye.AI,
1092
+ Ye.SECURITY,
1093
+ Ye.TRAFFIC_CONTROL,
1094
+ Ye.SERVERLESS,
1095
+ Ye.ANALYTICS_AND_MONITORING,
1096
+ Ye.TRANSFORMATIONS,
1097
+ Ye.LOGGING,
1098
+ Ye.DEPLOYMENT,
1099
+ Ye.WEBSOCKET,
1100
+ Ye.CUSTOM_PLUGINS
1101
1101
  ], hv = {
1102
- [Ge.AUTHENTICATION]: !1,
1103
- [Ge.AI]: !1,
1104
- [Ge.SECURITY]: !1,
1105
- [Ge.TRAFFIC_CONTROL]: !1,
1106
- [Ge.SERVERLESS]: !1,
1107
- [Ge.ANALYTICS_AND_MONITORING]: !1,
1108
- [Ge.TRANSFORMATIONS]: !1,
1109
- [Ge.LOGGING]: !1,
1110
- [Ge.DEPLOYMENT]: !1,
1111
- [Ge.CUSTOM_PLUGINS]: !1
1102
+ [Ye.AUTHENTICATION]: !1,
1103
+ [Ye.AI]: !1,
1104
+ [Ye.SECURITY]: !1,
1105
+ [Ye.TRAFFIC_CONTROL]: !1,
1106
+ [Ye.SERVERLESS]: !1,
1107
+ [Ye.ANALYTICS_AND_MONITORING]: !1,
1108
+ [Ye.TRANSFORMATIONS]: !1,
1109
+ [Ye.LOGGING]: !1,
1110
+ [Ye.DEPLOYMENT]: !1,
1111
+ [Ye.CUSTOM_PLUGINS]: !1
1112
1112
  };
1113
1113
  var _i = /* @__PURE__ */ ((e) => (e.SERVICE = "service_id", e.ROUTE = "route_id", e.CONSUMER = "consumer_id", e.CONSUMER_GROUP = "consumer_group_id", e))(_i || {});
1114
1114
  const zn = (e) => {
@@ -2842,7 +2842,7 @@ const zn = (e) => {
2842
2842
  placeholder: "Select valid protocols for the plugin",
2843
2843
  styleClasses: "plugin-protocols-select"
2844
2844
  }
2845
- }, Ze = {
2845
+ }, Ge = {
2846
2846
  type: "array",
2847
2847
  valueType: "string",
2848
2848
  valueArrayType: "array",
@@ -3027,46 +3027,46 @@ const zn = (e) => {
3027
3027
  })
3028
3028
  }), ty), df = {
3029
3029
  "config-add-json": {
3030
- ...Ze,
3030
+ ...Ge,
3031
3031
  label: "Config.Add.Json",
3032
3032
  inputAttributes: {
3033
- ...Ze.inputAttributes,
3033
+ ...Ge.inputAttributes,
3034
3034
  type: "textarea",
3035
3035
  max: !1
3036
3036
  }
3037
3037
  },
3038
3038
  "config-append-json": {
3039
- ...Ze,
3039
+ ...Ge,
3040
3040
  label: "Config.Append.Json",
3041
3041
  inputAttributes: {
3042
- ...Ze.inputAttributes,
3042
+ ...Ge.inputAttributes,
3043
3043
  type: "textarea",
3044
3044
  max: !1
3045
3045
  }
3046
3046
  },
3047
3047
  "config-remove-json": {
3048
- ...Ze,
3048
+ ...Ge,
3049
3049
  label: "Config.Remove.Json",
3050
3050
  inputAttributes: {
3051
- ...Ze.inputAttributes,
3051
+ ...Ge.inputAttributes,
3052
3052
  type: "textarea",
3053
3053
  max: !1
3054
3054
  }
3055
3055
  },
3056
3056
  "config-rename-json": {
3057
- ...Ze,
3057
+ ...Ge,
3058
3058
  label: "Config.Rename.Json",
3059
3059
  inputAttributes: {
3060
- ...Ze.inputAttributes,
3060
+ ...Ge.inputAttributes,
3061
3061
  type: "textarea",
3062
3062
  max: !1
3063
3063
  }
3064
3064
  },
3065
3065
  "config-replace-json": {
3066
- ...Ze,
3066
+ ...Ge,
3067
3067
  label: "Config.Replace.Json",
3068
3068
  inputAttributes: {
3069
- ...Ze.inputAttributes,
3069
+ ...Ge.inputAttributes,
3070
3070
  type: "textarea",
3071
3071
  max: !1
3072
3072
  }
@@ -3074,10 +3074,10 @@ const zn = (e) => {
3074
3074
  }, iy = {
3075
3075
  ...df,
3076
3076
  "config-allow-json": {
3077
- ...Ze,
3077
+ ...Ge,
3078
3078
  label: "Config.Allow.Json",
3079
3079
  inputAttributes: {
3080
- ...Ze.inputAttributes,
3080
+ ...Ge.inputAttributes,
3081
3081
  type: "textarea",
3082
3082
  max: !1
3083
3083
  }
@@ -3088,19 +3088,19 @@ const zn = (e) => {
3088
3088
  max: !1
3089
3089
  },
3090
3090
  "config-transform-functions": {
3091
- ...Ze,
3091
+ ...Ge,
3092
3092
  label: "Config.Transform.Functions",
3093
3093
  inputAttributes: {
3094
- ...Ze.inputAttributes,
3094
+ ...Ge.inputAttributes,
3095
3095
  type: "textarea",
3096
3096
  max: !1
3097
3097
  }
3098
3098
  },
3099
3099
  "config-transform-json": {
3100
- ...Ze,
3100
+ ...Ge,
3101
3101
  label: "Config.Transform.Json",
3102
3102
  inputAttributes: {
3103
- ...Ze.inputAttributes,
3103
+ ...Ge.inputAttributes,
3104
3104
  type: "textarea",
3105
3105
  max: !1
3106
3106
  }
@@ -3155,9 +3155,9 @@ const zn = (e) => {
3155
3155
  }
3156
3156
  }, ay = {
3157
3157
  "config-flow-functions": {
3158
- ...Ze,
3158
+ ...Ge,
3159
3159
  inputAttributes: {
3160
- ...Ze.inputAttributes,
3160
+ ...Ge.inputAttributes,
3161
3161
  type: "textarea",
3162
3162
  max: !1
3163
3163
  }
@@ -4365,9 +4365,9 @@ const I1 = (e) => {
4365
4365
  t && !t.password && !t.username && delete e.confluent.authentication.basic;
4366
4366
  }, T1 = {
4367
4367
  "config-message_by_lua_functions": {
4368
- ...Ze,
4368
+ ...Ge,
4369
4369
  inputAttributes: {
4370
- ...Ze.inputAttributes,
4370
+ ...Ge.inputAttributes,
4371
4371
  type: "textarea",
4372
4372
  max: !1
4373
4373
  }
@@ -4381,9 +4381,9 @@ const I1 = (e) => {
4381
4381
  }
4382
4382
  }, $1 = {
4383
4383
  "config-message_by_lua_functions": {
4384
- ...Ze,
4384
+ ...Ge,
4385
4385
  inputAttributes: {
4386
- ...Ze.inputAttributes,
4386
+ ...Ge.inputAttributes,
4387
4387
  type: "textarea",
4388
4388
  max: !1
4389
4389
  }
@@ -4396,6 +4396,14 @@ const I1 = (e) => {
4396
4396
  ii((t = e.config) == null ? void 0 : t.schema_registry);
4397
4397
  }
4398
4398
  }, N1 = {
4399
+ "config-message_by_lua_functions": {
4400
+ ...Ge,
4401
+ inputAttributes: {
4402
+ ...Ge.inputAttributes,
4403
+ type: "textarea",
4404
+ max: !1
4405
+ }
4406
+ },
4399
4407
  // Clean up empty authentication fields in the payload before submission.
4400
4408
  // This removes the empty 'basic' authentication object
4401
4409
  // when both username and password are not provided.
@@ -4406,6 +4414,14 @@ const I1 = (e) => {
4406
4414
  });
4407
4415
  }
4408
4416
  }, O1 = {
4417
+ "config-message_by_lua_functions": {
4418
+ ...Ge,
4419
+ inputAttributes: {
4420
+ ...Ge.inputAttributes,
4421
+ type: "textarea",
4422
+ max: !1
4423
+ }
4424
+ },
4409
4425
  // Clean up empty authentication fields in the payload before submission.
4410
4426
  // This removes the empty 'basic' authentication object
4411
4427
  // when both username and password are not provided.
@@ -4726,11 +4742,11 @@ const K1 = (e, t) => {
4726
4742
  fields: [{
4727
4743
  schema: {
4728
4744
  fields: [{
4729
- ...Ze,
4745
+ ...Ge,
4730
4746
  model: k.model,
4731
4747
  valueArrayType: I === "integer" ? "number" : I || "string",
4732
4748
  inputAttributes: {
4733
- ...Ze.inputAttributes,
4749
+ ...Ge.inputAttributes,
4734
4750
  type: I === "integer" ? "number" : "text",
4735
4751
  inputMode: I === "integer" ? "numeric" : "text"
4736
4752
  }
@@ -13638,7 +13654,7 @@ function Jm(e) {
13638
13654
  addSelectedNodes: b,
13639
13655
  updateNodePositions: _,
13640
13656
  emits: x
13641
- } = We(), { onStart: S, onDrag: k, onStop: I, onClick: N, el: K, disabled: Y, id: W, selectable: O, dragHandle: re } = e, A = ei(!1);
13657
+ } = Xe(), { onStart: S, onDrag: k, onStop: I, onClick: N, el: K, disabled: Y, id: W, selectable: O, dragHandle: re } = e, A = ei(!1);
13642
13658
  let j = [], L, le = null, J = { x: void 0, y: void 0 }, Z = { x: 0, y: 0 }, q = null, z = !1, ne = 0, ae = !1;
13643
13659
  const Q = CN(), de = ({ x: X, y: se }) => {
13644
13660
  J = { x: X, y: se };
@@ -13780,7 +13796,7 @@ function kN(e, t) {
13780
13796
  );
13781
13797
  }
13782
13798
  function CN() {
13783
- const { viewport: e, snapGrid: t, snapToGrid: n, vueFlowRef: i } = We();
13799
+ const { viewport: e, snapGrid: t, snapToGrid: n, vueFlowRef: i } = Xe();
13784
13800
  return (o) => {
13785
13801
  var r;
13786
13802
  const a = ((r = i.value) == null ? void 0 : r.getBoundingClientRect()) ?? { left: 0, top: 0 }, s = lN(o) ? o.sourceEvent : o, { x: l, y: u } = rn(s, a), c = Bo({ x: l, y: u }, e.value), { x: d, y: f } = n.value ? Ca(c, t.value) : c;
@@ -13824,7 +13840,7 @@ function Qm({
13824
13840
  nodes: N,
13825
13841
  isValidConnection: K,
13826
13842
  nodeLookup: Y
13827
- } = We();
13843
+ } = Xe();
13828
13844
  let W = null, O = !1, re = null;
13829
13845
  function A(L) {
13830
13846
  var le;
@@ -13991,7 +14007,7 @@ function SN() {
13991
14007
  return it(Xm, "");
13992
14008
  }
13993
14009
  function eg(e) {
13994
- const t = e ?? SN() ?? "", n = it(Zm, oe(null)), { findNode: i, edges: o, emits: r } = We(), a = i(t);
14010
+ const t = e ?? SN() ?? "", n = it(Zm, oe(null)), { findNode: i, edges: o, emits: r } = Xe(), a = i(t);
13995
14011
  return a || r.error(new ht(ft.NODE_NOT_FOUND, t)), {
13996
14012
  id: t,
13997
14013
  nodeEl: n,
@@ -14048,7 +14064,7 @@ function AN(e, t) {
14048
14064
  );
14049
14065
  }
14050
14066
  function tg() {
14051
- const { getSelectedNodes: e, nodeExtent: t, updateNodePositions: n, findNode: i, snapGrid: o, snapToGrid: r, nodesDraggable: a, emits: s } = We();
14067
+ const { getSelectedNodes: e, nodeExtent: t, updateNodePositions: n, findNode: i, snapGrid: o, snapToGrid: r, nodesDraggable: a, emits: s } = Xe();
14052
14068
  return (l, u = !1) => {
14053
14069
  const c = r.value ? o.value[0] : 5, d = r.value ? o.value[1] : 5, f = u ? 4 : 1, m = l.x * c * f, h = l.y * d * f, v = [];
14054
14070
  for (const g of e.value)
@@ -15002,7 +15018,7 @@ const RN = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], DN = {
15002
15018
  nodesConnectable: c,
15003
15019
  noDragClassName: d,
15004
15020
  noPanClassName: f
15005
- } = We(), { id: m, node: h, nodeEl: v, connectedEdges: g } = eg(), y = oe(), b = Le(() => typeof e.connectableStart < "u" ? e.connectableStart : !0), _ = Le(() => typeof e.connectableEnd < "u" ? e.connectableEnd : !0), x = Le(
15021
+ } = Xe(), { id: m, node: h, nodeEl: v, connectedEdges: g } = eg(), y = oe(), b = Le(() => typeof e.connectableStart < "u" ? e.connectableStart : !0), _ = Le(() => typeof e.connectableEnd < "u" ? e.connectableEnd : !0), x = Le(
15006
15022
  () => {
15007
15023
  var W, O, re, A, j, L;
15008
15024
  return ((W = a.value) == null ? void 0 : W.nodeId) === m && ((O = a.value) == null ? void 0 : O.id) === e.id && ((re = a.value) == null ? void 0 : re.type) === i.value || ((A = l.value) == null ? void 0 : A.nodeId) === m && ((j = l.value) == null ? void 0 : j.id) === e.id && ((L = l.value) == null ? void 0 : L.type) === i.value;
@@ -15096,9 +15112,9 @@ const RN = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], DN = {
15096
15112
  }) {
15097
15113
  const s = a.label ?? n;
15098
15114
  return [
15099
- Ye(Pn, { type: "target", position: t, connectable: i, isValidConnection: o }),
15100
- typeof s != "string" && s ? Ye(s) : Ye(Ke, [s]),
15101
- Ye(Pn, { type: "source", position: e, connectable: i, isValidConnection: r })
15115
+ We(Pn, { type: "target", position: t, connectable: i, isValidConnection: o }),
15116
+ typeof s != "string" && s ? We(s) : We(Ke, [s]),
15117
+ We(Pn, { type: "source", position: e, connectable: i, isValidConnection: r })
15102
15118
  ];
15103
15119
  };
15104
15120
  Aa.props = ["sourcePosition", "targetPosition", "label", "isValidTargetPos", "isValidSourcePos", "connectable", "data"];
@@ -15113,8 +15129,8 @@ const LN = Aa, Ia = function({
15113
15129
  }) {
15114
15130
  const r = o.label ?? t;
15115
15131
  return [
15116
- Ye(Pn, { type: "target", position: e, connectable: n, isValidConnection: i }),
15117
- typeof r != "string" && r ? Ye(r) : Ye(Ke, [r])
15132
+ We(Pn, { type: "target", position: e, connectable: n, isValidConnection: i }),
15133
+ typeof r != "string" && r ? We(r) : We(Ke, [r])
15118
15134
  ];
15119
15135
  };
15120
15136
  Ia.props = ["targetPosition", "label", "isValidTargetPos", "connectable", "data"];
@@ -15129,8 +15145,8 @@ const KN = Ia, Ta = function({
15129
15145
  }) {
15130
15146
  const r = o.label ?? t;
15131
15147
  return [
15132
- typeof r != "string" && r ? Ye(r) : Ye(Ke, [r]),
15133
- Ye(Pn, { type: "source", position: e, connectable: n, isValidConnection: i })
15148
+ typeof r != "string" && r ? We(r) : We(Ke, [r]),
15149
+ We(Pn, { type: "source", position: e, connectable: n, isValidConnection: i })
15134
15150
  ];
15135
15151
  };
15136
15152
  Ta.props = ["sourcePosition", "label", "isValidSourcePos", "connectable", "data"];
@@ -15526,7 +15542,7 @@ const QN = he({
15526
15542
  setup(e, { attrs: t }) {
15527
15543
  return () => {
15528
15544
  const [n, i, o] = JN(e);
15529
- return Ye($a, {
15545
+ return We($a, {
15530
15546
  path: n,
15531
15547
  labelX: i,
15532
15548
  labelY: o,
@@ -15564,7 +15580,7 @@ const QN = he({
15564
15580
  sourcePosition: e.sourcePosition ?? Ie.Bottom,
15565
15581
  targetPosition: e.targetPosition ?? Ie.Top
15566
15582
  });
15567
- return Ye($a, {
15583
+ return We($a, {
15568
15584
  path: n,
15569
15585
  labelX: i,
15570
15586
  labelY: o,
@@ -15593,7 +15609,7 @@ const QN = he({
15593
15609
  "interactionWidth"
15594
15610
  ],
15595
15611
  setup(e, { attrs: t }) {
15596
- return () => Ye(sg, { ...e, ...t, borderRadius: 0 });
15612
+ return () => We(sg, { ...e, ...t, borderRadius: 0 });
15597
15613
  }
15598
15614
  }), iO = nO, oO = he({
15599
15615
  name: "BezierEdge",
@@ -15623,7 +15639,7 @@ const QN = he({
15623
15639
  sourcePosition: e.sourcePosition ?? Ie.Bottom,
15624
15640
  targetPosition: e.targetPosition ?? Ie.Top
15625
15641
  });
15626
- return Ye($a, {
15642
+ return We($a, {
15627
15643
  path: n,
15628
15644
  labelX: i,
15629
15645
  labelY: o,
@@ -15659,7 +15675,7 @@ const QN = he({
15659
15675
  sourcePosition: e.sourcePosition ?? Ie.Bottom,
15660
15676
  targetPosition: e.targetPosition ?? Ie.Top
15661
15677
  });
15662
- return Ye($a, {
15678
+ return We($a, {
15663
15679
  path: n,
15664
15680
  labelX: i,
15665
15681
  labelY: o,
@@ -15821,7 +15837,7 @@ class Hn {
15821
15837
  return `vue-flow-${this.currentId++}`;
15822
15838
  }
15823
15839
  }
15824
- function We(e) {
15840
+ function Xe(e) {
15825
15841
  const t = Hn.getInstance(), n = Wd(), i = typeof e == "object", o = i ? e : { id: e }, r = o.id, a = r ?? (n == null ? void 0 : n.vueFlowId);
15826
15842
  let s;
15827
15843
  if (n) {
@@ -15860,7 +15876,7 @@ function We(e) {
15860
15876
  return s;
15861
15877
  }
15862
15878
  function dO(e) {
15863
- const { emits: t, dimensions: n } = We();
15879
+ const { emits: t, dimensions: n } = Xe();
15864
15880
  let i;
15865
15881
  Ct(() => {
15866
15882
  const o = e.value, r = () => {
@@ -15898,7 +15914,7 @@ const fO = {
15898
15914
  }, hO = /* @__PURE__ */ he({
15899
15915
  ...gO,
15900
15916
  setup(e) {
15901
- const { emits: t, viewport: n, getSelectedNodes: i, noPanClassName: o, disableKeyboardA11y: r, userSelectionActive: a } = We(), s = tg(), l = oe(null), u = Jm({
15917
+ const { emits: t, viewport: n, getSelectedNodes: i, noPanClassName: o, disableKeyboardA11y: r, userSelectionActive: a } = Xe(), s = tg(), l = oe(null), u = Jm({
15902
15918
  el: l,
15903
15919
  onStart(h) {
15904
15920
  t.selectionDragStart(h);
@@ -15988,7 +16004,7 @@ const yO = {
15988
16004
  connectionLookup: x,
15989
16005
  defaultEdgeOptions: S,
15990
16006
  connectionStartHandle: k
15991
- } = We(), I = oe(null), N = oe(/* @__PURE__ */ new Set()), K = oe(/* @__PURE__ */ new Set()), Y = oe(), W = Le(() => l.value && (e.isSelecting || r.value)), O = Le(() => k.value !== null);
16007
+ } = Xe(), I = oe(null), N = oe(/* @__PURE__ */ new Set()), K = oe(/* @__PURE__ */ new Set()), Y = oe(), W = Le(() => l.value && (e.isSelecting || r.value)), O = Le(() => k.value !== null);
15992
16008
  let re = !1, A = !1;
15993
16009
  const j = Co(v, { actInsideInputWithModifier: !1 }), L = Co(g);
15994
16010
  Te(j, (Q) => {
@@ -16097,7 +16113,7 @@ const yO = {
16097
16113
  }, wO = /* @__PURE__ */ he({
16098
16114
  ...bO,
16099
16115
  setup(e) {
16100
- const { viewport: t, fitViewOnInit: n, fitViewOnInitDone: i } = We(), o = F(() => n.value ? !i.value : !1), r = F(() => `translate(${t.value.x}px,${t.value.y}px) scale(${t.value.zoom})`);
16116
+ const { viewport: t, fitViewOnInit: n, fitViewOnInitDone: i } = Xe(), o = F(() => n.value ? !i.value : !1), r = F(() => `translate(${t.value.x}px,${t.value.y}px) scale(${t.value.zoom})`);
16101
16117
  return (a, s) => (w(), te("div", {
16102
16118
  class: "vue-flow__transformationpane vue-flow__container",
16103
16119
  style: It({ transform: r.value, opacity: o.value ? 0 : void 0 })
@@ -16139,7 +16155,7 @@ const yO = {
16139
16155
  viewport: K,
16140
16156
  viewportRef: Y,
16141
16157
  paneClickDistance: W
16142
- } = We();
16158
+ } = Xe();
16143
16159
  dO(Y);
16144
16160
  const O = ei(!1), re = ei(!1);
16145
16161
  let A = null, j = !1, L = 0, le = {
@@ -16293,7 +16309,7 @@ const yO = {
16293
16309
  }, IO = /* @__PURE__ */ he({
16294
16310
  ...AO,
16295
16311
  setup(e) {
16296
- const { id: t, disableKeyboardA11y: n, ariaLiveMessage: i } = We();
16312
+ const { id: t, disableKeyboardA11y: n, ariaLiveMessage: i } = Xe();
16297
16313
  return (o, r) => (w(), te(Ke, null, [
16298
16314
  G("div", {
16299
16315
  id: `${p(Mm)}-${p(t)}`,
@@ -16314,7 +16330,7 @@ const yO = {
16314
16330
  }
16315
16331
  });
16316
16332
  function TO() {
16317
- const e = We();
16333
+ const e = Xe();
16318
16334
  Te(
16319
16335
  () => e.viewportHelper.value.viewportInitialized,
16320
16336
  (t) => {
@@ -16337,7 +16353,7 @@ const tu = function({
16337
16353
  position: i = Ie.Top,
16338
16354
  type: o
16339
16355
  }) {
16340
- return Ye("circle", {
16356
+ return We("circle", {
16341
16357
  class: `vue-flow__edgeupdater vue-flow__edgeupdater-${o}`,
16342
16358
  cx: $O(t, e, i),
16343
16359
  cy: NO(n, e, i),
@@ -16372,7 +16388,7 @@ const hd = tu, OO = he({
16372
16388
  edgesUpdatable: g,
16373
16389
  edgesFocusable: y,
16374
16390
  hooks: b
16375
- } = We(), _ = F(() => c(e.id)), { emit: x, on: S } = kN(_.value, r), k = it(xa), I = Uo(), N = oe(!1), K = oe(!1), Y = oe(""), W = oe(null), O = oe("source"), re = oe(null), A = Le(
16391
+ } = Xe(), _ = F(() => c(e.id)), { emit: x, on: S } = kN(_.value, r), k = it(xa), I = Uo(), N = oe(!1), K = oe(!1), Y = oe(""), W = oe(null), O = oe("source"), re = oe(null), A = Le(
16376
16392
  () => typeof _.value.selectable > "u" ? v.value : _.value.selectable
16377
16393
  ), j = Le(() => typeof _.value.updatable > "u" ? g.value : _.value.updatable), L = Le(() => typeof _.value.focusable > "u" ? y.value : _.value.focusable);
16378
16394
  ot(bN, e.id), ot(wN, re);
@@ -16411,7 +16427,7 @@ const hd = tu, OO = he({
16411
16427
  let ie;
16412
16428
  i.value === Rn.Strict ? ie = $.handleBounds.target : ie = [...$.handleBounds.target || [], ...$.handleBounds.source || []];
16413
16429
  const D = od(ie, _.value.targetHandle), ee = (B == null ? void 0 : B.position) || Ie.Bottom, V = (D == null ? void 0 : D.position) || Ie.Top, { x: Ce, y: ve } = Vi(C, B, ee), { x: $e, y: ke } = Vi($, D, V);
16414
- return _.value.sourceX = Ce, _.value.sourceY = ve, _.value.targetX = $e, _.value.targetY = ke, Ye(
16430
+ return _.value.sourceX = Ce, _.value.sourceY = ve, _.value.targetX = $e, _.value.targetY = ke, We(
16415
16431
  "g",
16416
16432
  {
16417
16433
  ref: re,
@@ -16444,7 +16460,7 @@ const hd = tu, OO = he({
16444
16460
  onKeyDown: L.value ? E : void 0
16445
16461
  },
16446
16462
  [
16447
- K.value ? null : Ye(Z.value === !1 ? l.value.default : Z.value, {
16463
+ K.value ? null : We(Z.value === !1 ? l.value.default : Z.value, {
16448
16464
  id: e.id,
16449
16465
  sourceNode: C,
16450
16466
  targetNode: $,
@@ -16478,14 +16494,14 @@ const hd = tu, OO = he({
16478
16494
  }),
16479
16495
  [
16480
16496
  j.value === "source" || j.value === !0 ? [
16481
- Ye(
16497
+ We(
16482
16498
  "g",
16483
16499
  {
16484
16500
  onMousedown: se,
16485
16501
  onMouseenter: z,
16486
16502
  onMouseout: ne
16487
16503
  },
16488
- Ye(hd, {
16504
+ We(hd, {
16489
16505
  position: ee,
16490
16506
  centerX: Ce,
16491
16507
  centerY: ve,
@@ -16496,14 +16512,14 @@ const hd = tu, OO = he({
16496
16512
  )
16497
16513
  ] : null,
16498
16514
  j.value === "target" || j.value === !0 ? [
16499
- Ye(
16515
+ We(
16500
16516
  "g",
16501
16517
  {
16502
16518
  onMousedown: R,
16503
16519
  onMouseenter: z,
16504
16520
  onMouseout: ne
16505
16521
  },
16506
- Ye(hd, {
16522
+ We(hd, {
16507
16523
  position: V,
16508
16524
  centerX: $e,
16509
16525
  centerY: ke,
@@ -16580,7 +16596,7 @@ const hd = tu, OO = he({
16580
16596
  connectionStatus: u,
16581
16597
  viewport: c,
16582
16598
  findNode: d
16583
- } = We(), f = (e = it(xa)) == null ? void 0 : e["connection-line"], m = F(() => {
16599
+ } = Xe(), f = (e = it(xa)) == null ? void 0 : e["connection-line"], m = F(() => {
16584
16600
  var b;
16585
16601
  return d((b = i.value) == null ? void 0 : b.nodeId);
16586
16602
  }), h = F(() => {
@@ -16635,13 +16651,13 @@ const hd = tu, OO = he({
16635
16651
  return j === Un.Bezier ? [L] = rg(le) : j === Un.Step ? [L] = Qs({
16636
16652
  ...le,
16637
16653
  borderRadius: 0
16638
- }) : j === Un.SmoothStep ? [L] = Qs(le) : j === Un.SimpleBezier ? [L] = ag(le) : L = `M${W},${O} ${v.value.x},${v.value.y}`, Ye(
16654
+ }) : j === Un.SmoothStep ? [L] = Qs(le) : j === Un.SimpleBezier ? [L] = ag(le) : L = `M${W},${O} ${v.value.x},${v.value.y}`, We(
16639
16655
  "svg",
16640
16656
  { class: "vue-flow__edges vue-flow__connectionline vue-flow__container" },
16641
- Ye(
16657
+ We(
16642
16658
  "g",
16643
16659
  { class: "vue-flow__connection" },
16644
- f ? Ye(f, {
16660
+ f ? We(f, {
16645
16661
  sourceX: W,
16646
16662
  sourceY: O,
16647
16663
  sourcePosition: Y,
@@ -16655,7 +16671,7 @@ const hd = tu, OO = he({
16655
16671
  markerEnd: y.value,
16656
16672
  markerStart: g.value,
16657
16673
  connectionStatus: u.value
16658
- }) : Ye("path", {
16674
+ }) : We("path", {
16659
16675
  d: L,
16660
16676
  class: [l.value.class, u, "vue-flow__connection-path"],
16661
16677
  style: {
@@ -16729,7 +16745,7 @@ const hd = tu, OO = he({
16729
16745
  }, jO = /* @__PURE__ */ he({
16730
16746
  ...BO,
16731
16747
  setup(e) {
16732
- const { id: t, edges: n, connectionLineOptions: i, defaultMarkerColor: o } = We(), r = F(() => {
16748
+ const { id: t, edges: n, connectionLineOptions: i, defaultMarkerColor: o } = Xe(), r = F(() => {
16733
16749
  const a = /* @__PURE__ */ new Set(), s = [], l = (u) => {
16734
16750
  if (u) {
16735
16751
  const c = jo(u, t);
@@ -16765,7 +16781,7 @@ const hd = tu, OO = he({
16765
16781
  }, qO = /* @__PURE__ */ he({
16766
16782
  ...VO,
16767
16783
  setup(e) {
16768
- const { findNode: t, getEdges: n, elevateEdgesOnSelect: i } = We();
16784
+ const { findNode: t, getEdges: n, elevateEdgesOnSelect: i } = Xe();
16769
16785
  return (o, r) => (w(), te(Ke, null, [
16770
16786
  P(jO),
16771
16787
  (w(!0), te(Ke, null, ze(p(n), (a) => (w(), te("svg", {
@@ -16809,7 +16825,7 @@ const hd = tu, OO = he({
16809
16825
  nodesConnectable: S,
16810
16826
  nodesFocusable: k,
16811
16827
  hooks: I
16812
- } = We(), N = oe(null);
16828
+ } = Xe(), N = oe(null);
16813
16829
  ot(Zm, N), ot(Xm, e.id);
16814
16830
  const K = it(xa), Y = Uo(), W = tg(), { node: O, parentNode: re } = eg(e.id), { emit: A, on: j } = AN(O, a), L = Le(() => typeof O.draggable > "u" ? _.value : O.draggable), le = Le(() => typeof O.selectable > "u" ? x.value : O.selectable), J = Le(() => typeof O.connectable > "u" ? S.value : O.connectable), Z = Le(() => typeof O.focusable > "u" ? k.value : O.focusable), q = F(
16815
16831
  () => le.value || L.value || I.value.nodeClick.hasListeners() || I.value.nodeDoubleClick.hasListeners() || I.value.nodeMouseEnter.hasListeners() || I.value.nodeMouseMove.hasListeners() || I.value.nodeMouseLeave.hasListeners()
@@ -16901,7 +16917,7 @@ const hd = tu, OO = he({
16901
16917
  { flush: "post", immediate: !0 }
16902
16918
  ), Te([() => O.extent, f], ([$, T], [H, B]) => {
16903
16919
  ($ !== H || T !== B) && Se();
16904
- }), O.extent === "parent" || typeof O.extent == "object" && "range" in O.extent && O.extent.range === "parent" ? Bs(() => z).toBe(!0).then(Se) : Se(), () => O.hidden ? null : Ye(
16920
+ }), O.extent === "parent" || typeof O.extent == "object" && "range" in O.extent && O.extent.range === "parent" ? Bs(() => z).toBe(!0).then(Se) : Se(), () => O.hidden ? null : We(
16905
16921
  "div",
16906
16922
  {
16907
16923
  ref: N,
@@ -16941,7 +16957,7 @@ const hd = tu, OO = he({
16941
16957
  onKeydown: C
16942
16958
  },
16943
16959
  [
16944
- Ye(ne.value === !1 ? d.value.default : ne.value, {
16960
+ We(ne.value === !1 ? d.value.default : ne.value, {
16945
16961
  id: O.id,
16946
16962
  type: O.type,
16947
16963
  data: O.data,
@@ -17028,7 +17044,7 @@ const hd = tu, OO = he({
17028
17044
  }
17029
17045
  }), UO = zO;
17030
17046
  function HO(e = { includeHiddenNodes: !1 }) {
17031
- const { nodes: t } = We();
17047
+ const { nodes: t } = Xe();
17032
17048
  return F(() => {
17033
17049
  if (t.value.length === 0)
17034
17050
  return !1;
@@ -17044,7 +17060,7 @@ const GO = { class: "vue-flow__nodes vue-flow__container" }, YO = {
17044
17060
  }, WO = /* @__PURE__ */ he({
17045
17061
  ...YO,
17046
17062
  setup(e) {
17047
- const { getNodes: t, updateNodeDimensions: n, emits: i } = We(), o = HO(), r = oe();
17063
+ const { getNodes: t, updateNodeDimensions: n, emits: i } = Xe(), o = HO(), r = oe();
17048
17064
  return Te(
17049
17065
  o,
17050
17066
  (a) => {
@@ -17081,7 +17097,7 @@ const GO = { class: "vue-flow__nodes vue-flow__container" }, YO = {
17081
17097
  }
17082
17098
  });
17083
17099
  function XO() {
17084
- const { emits: e } = We();
17100
+ const { emits: e } = Xe();
17085
17101
  Ct(() => {
17086
17102
  if (Wm()) {
17087
17103
  const t = document.querySelector(".vue-flow__pane");
@@ -17157,7 +17173,7 @@ const ZO = /* @__PURE__ */ G("div", { class: "vue-flow__edge-labels" }, null, -1
17157
17173
  },
17158
17174
  emits: ["nodesChange", "edgesChange", "nodesInitialized", "paneReady", "init", "updateNodeInternals", "error", "connect", "connectStart", "connectEnd", "clickConnectStart", "clickConnectEnd", "moveStart", "move", "moveEnd", "selectionDragStart", "selectionDrag", "selectionDragStop", "selectionContextMenu", "selectionStart", "selectionEnd", "viewportChangeStart", "viewportChange", "viewportChangeEnd", "paneScroll", "paneClick", "paneContextMenu", "paneMouseEnter", "paneMouseMove", "paneMouseLeave", "edgeUpdate", "edgeContextMenu", "edgeMouseEnter", "edgeMouseMove", "edgeMouseLeave", "edgeDoubleClick", "edgeClick", "edgeUpdateStart", "edgeUpdateEnd", "nodeContextMenu", "nodeMouseEnter", "nodeMouseMove", "nodeMouseLeave", "nodeDoubleClick", "nodeClick", "nodeDragStart", "nodeDrag", "nodeDragStop", "miniMapNodeClick", "miniMapNodeDoubleClick", "miniMapNodeMouseEnter", "miniMapNodeMouseMove", "miniMapNodeMouseLeave", "update:modelValue", "update:nodes", "update:edges"],
17159
17175
  setup(e, { expose: t, emit: n }) {
17160
- const i = e, o = Gt(), r = Ha(i, "modelValue", n), a = Ha(i, "nodes", n), s = Ha(i, "edges", n), l = We(i), u = NN({ modelValue: r, nodes: a, edges: s }, i, l);
17176
+ const i = e, o = Gt(), r = Ha(i, "modelValue", n), a = Ha(i, "nodes", n), s = Ha(i, "edges", n), l = Xe(i), u = NN({ modelValue: r, nodes: a, edges: s }, i, l);
17161
17177
  return PN(n, l.hooks), TO(), XO(), ot(xa, o), ll(() => {
17162
17178
  u();
17163
17179
  }), t(l), (c, d) => (w(), te("div", {
@@ -17186,7 +17202,7 @@ const ZO = /* @__PURE__ */ G("div", { class: "vue-flow__edge-labels" }, null, -1
17186
17202
  position: {}
17187
17203
  },
17188
17204
  setup(e) {
17189
- const t = e, { userSelectionActive: n } = We(), i = F(() => `${t.position}`.split("-"));
17205
+ const t = e, { userSelectionActive: n } = Xe(), i = F(() => `${t.position}`.split("-"));
17190
17206
  return (o, r) => (w(), te("div", {
17191
17207
  class: Ve(["vue-flow__panel", i.value]),
17192
17208
  style: It({ pointerEvents: p(n) ? "none" : "all" })
@@ -17197,13 +17213,13 @@ const ZO = /* @__PURE__ */ G("div", { class: "vue-flow__edge-labels" }, null, -1
17197
17213
  });
17198
17214
  var bn = /* @__PURE__ */ ((e) => (e.Lines = "lines", e.Dots = "dots", e))(bn || {});
17199
17215
  const ug = function({ dimensions: e, size: t, color: n }) {
17200
- return Ye("path", {
17216
+ return We("path", {
17201
17217
  stroke: n,
17202
17218
  "stroke-width": t,
17203
17219
  d: `M${e[0] / 2} 0 V${e[1]} M0 ${e[1] / 2} H${e[0]}`
17204
17220
  });
17205
17221
  }, cg = function({ radius: e, color: t }) {
17206
- return Ye("circle", { cx: e, cy: e, r: e, fill: t });
17222
+ return We("circle", { cx: e, cy: e, r: e, fill: t });
17207
17223
  };
17208
17224
  bn.Lines + "", bn.Dots + "";
17209
17225
  const tP = {
@@ -17234,7 +17250,7 @@ const tP = {
17234
17250
  offset: { default: 0 }
17235
17251
  },
17236
17252
  setup(e) {
17237
- const { id: t, viewport: n } = We(), i = F(() => {
17253
+ const { id: t, viewport: n } = Xe(), i = F(() => {
17238
17254
  const a = n.value.zoom, [s, l] = Array.isArray(e.gap) ? e.gap : [e.gap, e.gap], u = [s * a || 1, l * a || 1], c = e.size * a, [d, f] = Array.isArray(e.offset) ? e.offset : [e.offset, e.offset], m = [d * a || 1 + u[0] / 2, f * a || 1 + u[1] / 2];
17239
17255
  return {
17240
17256
  scaledGap: u,
@@ -17374,7 +17390,7 @@ const RP = { render: FP }, DP = {
17374
17390
  viewport: u,
17375
17391
  minZoom: c,
17376
17392
  maxZoom: d
17377
- } = We(), f = Le(() => n.value || i.value || o.value), m = Le(() => u.value.zoom <= c.value), h = Le(() => u.value.zoom >= d.value);
17393
+ } = Xe(), f = Le(() => n.value || i.value || o.value), m = Le(() => u.value.zoom <= c.value), h = Le(() => u.value.zoom >= d.value);
17378
17394
  function v() {
17379
17395
  a(), t("zoomIn");
17380
17396
  }
@@ -19731,7 +19747,7 @@ const [ZR, JR] = uf(
19731
19747
  nodes: l = lo.gaps.nodes,
19732
19748
  edges: u = lo.gaps.edges,
19733
19749
  ranks: c = lo.gaps.ranks
19734
- } = s, d = We(n), f = Rt(), m = Kg(), h = HR(), { i18n: { t: v } } = He(), {
19750
+ } = s, d = Xe(n), f = Rt(), m = Kg(), h = HR(), { i18n: { t: v } } = He(), {
19735
19751
  findNode: g,
19736
19752
  fitView: y,
19737
19753
  deleteKeyCode: b,
@@ -20492,7 +20508,7 @@ const rD = {
20492
20508
  resizable: { type: Boolean }
20493
20509
  },
20494
20510
  setup(e, { expose: t }) {
20495
- const n = oe([!1, !1]), { state: i, markAsLayoutCompleted: o, commit: r, clear: a } = Rt(), s = Zd(), l = `${s}-request`, u = `${s}-response`, c = We(l), d = We(u);
20511
+ const n = oe([!1, !1]), { state: i, markAsLayoutCompleted: o, commit: r, clear: a } = Rt(), s = Zd(), l = `${s}-request`, u = `${s}-response`, c = Xe(l), d = Xe(u);
20496
20512
  function f(ne, ae) {
20497
20513
  const { onPaneClick: Q, onNodesChange: de, onEdgesChange: me, getSelectedNodes: Se, getSelectedEdges: xe } = ne, { removeSelectedElements: ue } = ae;
20498
20514
  function fe(X) {
@@ -24123,11 +24139,11 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24123
24139
  fields: [{
24124
24140
  schema: {
24125
24141
  fields: [{
24126
- ...Ze,
24142
+ ...Ge,
24127
24143
  model: ye,
24128
24144
  valueArrayType: je === "integer" ? "number" : je || "string",
24129
24145
  inputAttributes: {
24130
- ...Ze.inputAttributes,
24146
+ ...Ge.inputAttributes,
24131
24147
  type: je === "integer" ? "number" : "text",
24132
24148
  inputMode: je === "integer" ? "numeric" : "text"
24133
24149
  }
@@ -24162,14 +24178,14 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24162
24178
  }), be.elements && be.type === "array") {
24163
24179
  const je = be.elements;
24164
24180
  if (V[ye].referenceable = je.referenceable, V[ye].elements = je, ["string", "integer", "number"].includes(je.type) && !je.one_of) {
24165
- const { id: $t, help: at, label: Re, hint: qe, values: Xe, referenceable: mn, model: Mt } = V[ye], { inputAttributes: er, ...th } = JSON.parse(JSON.stringify(Ze));
24166
- er.type = je.type === "string" ? "text" : "number", V[ye] = { id: $t, help: at, label: Re, hint: qe, values: Xe, referenceable: mn, model: Mt, inputAttributes: er, ...th };
24181
+ const { id: $t, help: at, label: Re, hint: qe, values: Ze, referenceable: mn, model: Mt } = V[ye], { inputAttributes: er, ...th } = JSON.parse(JSON.stringify(Ge));
24182
+ er.type = je.type === "string" ? "text" : "number", V[ye] = { id: $t, help: at, label: Re, hint: qe, values: Ze, referenceable: mn, model: Mt, inputAttributes: er, ...th };
24167
24183
  }
24168
24184
  }
24169
24185
  if (be.hint && (V[ye].hint = be.hint), $e && !$e.overwriteDefault && Object.keys($e).forEach((je) => {
24170
24186
  if (je === ye) {
24171
- const { help: $t, label: at, hint: Re, values: qe, referenceable: Xe, elements: mn } = V[ye], { help: Mt, ...er } = $e[je];
24172
- V[ye] = { help: $t, label: at, hint: Re, values: qe, referenceable: Xe, elements: mn, ...er }, typeof Mt == "string" && (V[ye].help = br.parse(Mt, { mangle: !1, headerIds: !1 }));
24187
+ const { help: $t, label: at, hint: Re, values: qe, referenceable: Ze, elements: mn } = V[ye], { help: Mt, ...er } = $e[je];
24188
+ V[ye] = { help: $t, label: at, hint: Re, values: qe, referenceable: Ze, elements: mn, ...er }, typeof Mt == "string" && (V[ye].help = br.parse(Mt, { mangle: !1, headerIds: !1 }));
24173
24189
  }
24174
24190
  }), be.type === "array" && ((Ji = be.elements) == null ? void 0 : Ji.type) === "record" && Array.isArray(be.elements.fields)) {
24175
24191
  let je = {};
@@ -24189,8 +24205,8 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24189
24205
  }, V[ye].items.schema.fields.forEach(
24190
24206
  (at) => {
24191
24207
  var Re, qe;
24192
- for (const Xe of be.elements.fields) {
24193
- const mn = Object.keys(Xe)[0], Mt = ((qe = (Re = at.id) == null ? void 0 : Re.split) == null ? void 0 : qe.call(Re, "-")) ?? [];
24208
+ for (const Ze of be.elements.fields) {
24209
+ const mn = Object.keys(Ze)[0], Mt = ((qe = (Re = at.id) == null ? void 0 : Re.split) == null ? void 0 : qe.call(Re, "-")) ?? [];
24194
24210
  if (Mt[Mt.length - 1] === mn) {
24195
24211
  at.model = mn, at.label = l(mn);
24196
24212
  break;
@@ -24206,8 +24222,8 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24206
24222
  const at = (Re, qe) => {
24207
24223
  if (Re.type === "object") {
24208
24224
  Re.model && (qe[Re.model] = {});
24209
- for (const Xe of Re.schema.fields)
24210
- at(Xe, Re.model ? qe[Re.model] : qe);
24225
+ for (const Ze of Re.schema.fields)
24226
+ at(Ze, Re.model ? qe[Re.model] : qe);
24211
24227
  } else Re.model && (qe[Re.model] = Re.default);
24212
24228
  };
24213
24229
  V[ye].items.default = () => {
@@ -24238,12 +24254,12 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24238
24254
  }), V;
24239
24255
  }, Z = () => {
24240
24256
  var ye, Tt, Xi, Zi, Ji, Qi, eo, to, no, je, $t, at;
24241
- const D = ((ye = Qt[i.pluginType]) == null ? void 0 : ye.scope.includes(Et.SERVICE)) ?? !0, ee = ((Tt = Qt[i.pluginType]) == null ? void 0 : Tt.scope.includes(Et.ROUTE)) ?? !0, V = ((Xi = Qt[i.pluginType]) == null ? void 0 : Xi.scope.includes(Et.CONSUMER)) ?? !0, Ce = i.config.disableConsumerGroupScope ? !1 : ((Zi = Qt[i.pluginType]) == null ? void 0 : Zi.scope.includes(Et.CONSUMER_GROUP)) ?? !0, ve = i.config.entityType === "consumers" && !!i.config.entityId || !!((Qi = (Ji = _.value) == null ? void 0 : Ji.consumer) != null && Qi.id), $e = i.config.entityType === "consumer_groups" && !!i.config.entityId || !!((to = (eo = _.value) == null ? void 0 : eo.consumer_group) != null && to.id), ke = i.config.entityType === "services" && !!i.config.entityId || !!((je = (no = _.value) == null ? void 0 : no.service) != null && je.id), ce = i.config.entityType === "routes" && !!i.config.entityId || !!((at = ($t = _.value) == null ? void 0 : $t.route) != null && at.id), Ne = [], Be = (Re, qe, Xe) => Re ? r("plugins.form.disable_source_scope_change", { scope: Xe }) : qe ? r("plugins.form.disable_data_retrieving", { scope: Xe }) : "", be = (Re) => {
24242
- var qe, Xe;
24243
- return ((Xe = (qe = i.scopedEntitiesPermissions) == null ? void 0 : qe[Re]) == null ? void 0 : Xe.canRetrieve) === !1;
24257
+ const D = ((ye = Qt[i.pluginType]) == null ? void 0 : ye.scope.includes(Et.SERVICE)) ?? !0, ee = ((Tt = Qt[i.pluginType]) == null ? void 0 : Tt.scope.includes(Et.ROUTE)) ?? !0, V = ((Xi = Qt[i.pluginType]) == null ? void 0 : Xi.scope.includes(Et.CONSUMER)) ?? !0, Ce = i.config.disableConsumerGroupScope ? !1 : ((Zi = Qt[i.pluginType]) == null ? void 0 : Zi.scope.includes(Et.CONSUMER_GROUP)) ?? !0, ve = i.config.entityType === "consumers" && !!i.config.entityId || !!((Qi = (Ji = _.value) == null ? void 0 : Ji.consumer) != null && Qi.id), $e = i.config.entityType === "consumer_groups" && !!i.config.entityId || !!((to = (eo = _.value) == null ? void 0 : eo.consumer_group) != null && to.id), ke = i.config.entityType === "services" && !!i.config.entityId || !!((je = (no = _.value) == null ? void 0 : no.service) != null && je.id), ce = i.config.entityType === "routes" && !!i.config.entityId || !!((at = ($t = _.value) == null ? void 0 : $t.route) != null && at.id), Ne = [], Be = (Re, qe, Ze) => Re ? r("plugins.form.disable_source_scope_change", { scope: Ze }) : qe ? r("plugins.form.disable_data_retrieving", { scope: Ze }) : "", be = (Re) => {
24258
+ var qe, Ze;
24259
+ return ((Ze = (qe = i.scopedEntitiesPermissions) == null ? void 0 : qe[Re]) == null ? void 0 : Ze.canRetrieve) === !1;
24244
24260
  };
24245
24261
  if (D) {
24246
- const Re = be("service"), qe = "services", Xe = ke && i.disableScopeSelection;
24262
+ const Re = be("service"), qe = "services", Ze = ke && i.disableScopeSelection;
24247
24263
  Ne.push({
24248
24264
  id: "service-id",
24249
24265
  model: "service-id",
@@ -24256,13 +24272,13 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24256
24272
  fields: ["name", "id"]
24257
24273
  },
24258
24274
  help: r("plugins.form.scoping.gateway_service.help"),
24259
- disabled: Xe || Re,
24275
+ disabled: Ze || Re,
24260
24276
  // disable service selection if the plugin is already scoped under service
24261
- disabledTooltip: Be(Xe, Re, qe)
24277
+ disabledTooltip: Be(Ze, Re, qe)
24262
24278
  });
24263
24279
  }
24264
24280
  if (ee) {
24265
- const Re = be("route"), qe = "routes", Xe = ce && i.disableScopeSelection;
24281
+ const Re = be("route"), qe = "routes", Ze = ce && i.disableScopeSelection;
24266
24282
  Ne.push({
24267
24283
  id: "route-id",
24268
24284
  model: "route-id",
@@ -24277,12 +24293,12 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24277
24293
  primaryField: "id"
24278
24294
  },
24279
24295
  help: r("plugins.form.scoping.route.help"),
24280
- disabled: Xe || Re,
24281
- disabledTooltip: Be(Xe, Re, qe)
24296
+ disabled: Ze || Re,
24297
+ disabledTooltip: Be(Ze, Re, qe)
24282
24298
  });
24283
24299
  }
24284
24300
  if (V) {
24285
- const Re = be("consumer"), qe = "consumers", Xe = ve && i.disableScopeSelection;
24301
+ const Re = be("consumer"), qe = "consumers", Ze = ve && i.disableScopeSelection;
24286
24302
  Ne.push({
24287
24303
  model: "consumer-id",
24288
24304
  label: r("plugins.form.scoping.consumer.label"),
@@ -24295,12 +24311,12 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24295
24311
  primaryField: "username"
24296
24312
  },
24297
24313
  help: r("plugins.form.scoping.consumer.help"),
24298
- disabled: Xe || Re,
24299
- disabledTooltip: Be(Xe, Re, qe)
24314
+ disabled: Ze || Re,
24315
+ disabledTooltip: Be(Ze, Re, qe)
24300
24316
  });
24301
24317
  }
24302
24318
  if (Ce) {
24303
- const Re = be("consumer_group"), qe = "consumer_groups", Xe = $e && i.disableScopeSelection;
24319
+ const Re = be("consumer_group"), qe = "consumer_groups", Ze = $e && i.disableScopeSelection;
24304
24320
  Ne.push({
24305
24321
  model: "consumer_group-id",
24306
24322
  label: r("plugins.form.scoping.consumer_group.label"),
@@ -24314,8 +24330,8 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24314
24330
  primaryField: "name"
24315
24331
  },
24316
24332
  help: r("plugins.form.scoping.consumer_group.help"),
24317
- disabled: Xe || Re,
24318
- disabledTooltip: Be(Xe, Re, qe)
24333
+ disabled: Ze || Re,
24334
+ disabledTooltip: Be(Ze, Re, qe)
24319
24335
  });
24320
24336
  }
24321
24337
  if (Ne.length) {
@@ -24324,13 +24340,13 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
24324
24340
  ...ee ? ["route"] : [],
24325
24341
  ...V ? ["consumer"] : [],
24326
24342
  ...Ce ? ["consumer_group"] : []
24327
- ], Xe = Re.splice(Re.length - 2, 2).map((Mt) => r(Mt === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${Mt}.plural`)).join(`${Re.length > 0 ? "," : ""} and/or `), mn = [
24343
+ ], Ze = Re.splice(Re.length - 2, 2).map((Mt) => r(Mt === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${Mt}.plural`)).join(`${Re.length > 0 ? "," : ""} and/or `), mn = [
24328
24344
  "Specific",
24329
24345
  [
24330
24346
  ...Re.length > 0 ? [Re.map(
24331
24347
  (Mt) => r(Mt === "service" ? "plugins.form.scoping.gateway_service.plural" : `plugins.form.scoping.${Mt}.plural`)
24332
24348
  ).join(", ")] : [],
24333
- Xe
24349
+ Ze
24334
24350
  ].join(", ")
24335
24351
  ].join(" ");
24336
24352
  j.selectionGroup.fields.push({
@@ -25190,7 +25206,7 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
25190
25206
  i.navigateOnClick ? u() : d();
25191
25207
  }, d = () => {
25192
25208
  n("plugin-clicked", i.plugin);
25193
- }, f = F(() => i.plugin.id === "custom-plugin-create"), m = F(() => i.config.app === "konnect" && i.plugin.group === Ge.CUSTOM_PLUGINS), h = () => {
25209
+ }, f = F(() => i.plugin.id === "custom-plugin-create"), m = F(() => i.config.app === "konnect" && i.plugin.group === Ye.CUSTOM_PLUGINS), h = () => {
25194
25210
  i.config.app === "konnect" && n("custom-plugin-delete");
25195
25211
  }, v = (y, b) => {
25196
25212
  const _ = i.config;
@@ -25449,12 +25465,12 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
25449
25465
  }, u = F(() => {
25450
25466
  if (n.config.app === "kongManager")
25451
25467
  return [];
25452
- const S = JSON.parse(JSON.stringify(n.pluginList))[Ge.CUSTOM_PLUGINS] || [];
25468
+ const S = JSON.parse(JSON.stringify(n.pluginList))[Ye.CUSTOM_PLUGINS] || [];
25453
25469
  return n.canCreateCustomPlugin && n.navigateOnClick && n.config.createCustomRoute ? [{
25454
25470
  id: "custom-plugin-create",
25455
25471
  name: o("plugins.select.tabs.custom.create.name"),
25456
25472
  available: !0,
25457
- group: Ge.CUSTOM_PLUGINS,
25473
+ group: Ye.CUSTOM_PLUGINS,
25458
25474
  description: o("plugins.select.tabs.custom.create.description")
25459
25475
  }].concat(S) : S;
25460
25476
  }), c = oe(!1), d = oe(null), f = (S) => {
@@ -25487,8 +25503,8 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
25487
25503
  modelValue: s.value,
25488
25504
  "onUpdate:modelValue": k[0] || (k[0] = (K) => s.value = K),
25489
25505
  class: "custom-plugins-collapse",
25490
- "data-testid": `${p(Ge).CUSTOM_PLUGINS}-collapse`,
25491
- title: p(Ge).CUSTOM_PLUGINS,
25506
+ "data-testid": `${p(Ye).CUSTOM_PLUGINS}-collapse`,
25507
+ title: p(Ye).CUSTOM_PLUGINS,
25492
25508
  "trigger-label": s.value ? p(o)("plugins.select.view_more") : p(o)("plugins.select.view_less")
25493
25509
  }, et({
25494
25510
  "visible-content": M(() => [
@@ -25689,7 +25705,7 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
25689
25705
  i("plugin-clicked", u);
25690
25706
  }, l = F(() => {
25691
25707
  const u = JSON.parse(JSON.stringify(n.pluginList));
25692
- return n.config.app === "konnect" && delete u[Ge.CUSTOM_PLUGINS], u;
25708
+ return n.config.app === "konnect" && delete u[Ye.CUSTOM_PLUGINS], u;
25693
25709
  });
25694
25710
  return (u, c) => {
25695
25711
  const d = Ee("KEmptyState");
@@ -25823,7 +25839,7 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
25823
25839
  emits: ["loading", "plugin-clicked", "delete-custom:success"],
25824
25840
  setup(e, { emit: t }) {
25825
25841
  var Z;
25826
- const n = e, i = t, o = Sh(), r = na(), { i18n: { t: a } } = nt.useI18n(), { pluginMetaData: s } = nt.usePluginMetaData(), { getMessageFromError: l } = Hi(), { sortAlpha: u, objectsAreEqual: c } = ta(), d = oe(""), f = oe(!0), m = oe(!1), h = oe(""), v = oe([]), g = oe([]), y = oe({}), b = oe([]), { axiosInstance: _ } = Kn((Z = n.config) == null ? void 0 : Z.axiosRequestConfig), x = F(() => y.value ? Object.entries(y.value).filter(([q]) => q !== Ge.CUSTOM_PLUGINS).reduce((q, [, z]) => {
25842
+ const n = e, i = t, o = Sh(), r = na(), { i18n: { t: a } } = nt.useI18n(), { pluginMetaData: s } = nt.usePluginMetaData(), { getMessageFromError: l } = Hi(), { sortAlpha: u, objectsAreEqual: c } = ta(), d = oe(""), f = oe(!0), m = oe(!1), h = oe(""), v = oe([]), g = oe([]), y = oe({}), b = oe([]), { axiosInstance: _ } = Kn((Z = n.config) == null ? void 0 : Z.axiosRequestConfig), x = F(() => y.value ? Object.entries(y.value).filter(([q]) => q !== Ye.CUSTOM_PLUGINS).reduce((q, [, z]) => {
25827
25843
  for (const ne of z)
25828
25844
  q[ne.id] = ne;
25829
25845
  return q;
@@ -25867,9 +25883,9 @@ const Vd = su.options, fK = _e.string().min(1).refine((e) => !e.includes("."), "
25867
25883
  name: ne,
25868
25884
  available: v.value.includes(z),
25869
25885
  disabledMessage: "",
25870
- group: ((me = s[z]) == null ? void 0 : me.group) || Ge.CUSTOM_PLUGINS
25886
+ group: ((me = s[z]) == null ? void 0 : me.group) || Ye.CUSTOM_PLUGINS
25871
25887
  };
25872
- ae.group === Ge.CUSTOM_PLUGINS && (ae.customPluginType = g.value.find((Se) => Se.name === z) ? "streaming" : "schema"), n.disabledPlugins && (ae.disabledMessage = n.disabledPlugins[z]);
25888
+ ae.group === Ye.CUSTOM_PLUGINS && (ae.customPluginType = g.value.find((Se) => Se.name === z) ? "streaming" : "schema"), n.disabledPlugins && (ae.disabledMessage = n.disabledPlugins[z]);
25873
25889
  const Q = ae.group || a("plugins.select.misc_plugins");
25874
25890
  let de = q[Q];
25875
25891
  return de || (de = []), de.push(ae), de.sort(u("name")), q[Q] = de, q;