@kong-ui-public/entities-plugins 9.170.1 → 9.170.2

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.
@@ -2,10 +2,10 @@ var sp = Object.defineProperty;
2
2
  var lp = (e, t, n) => t in e ? sp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var wt = (e, t, n) => lp(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { defineComponent as de, useModel as Mi, inject as yt, ref as X, computed as T, onMounted as wn, resolveComponent as oe, openBlock as _, createBlock as L, toRef as rt, createElementBlock as G, createVNode as C, isRef as Ur, unref as l, markRaw as up, provide as Kt, createElementVNode as D, toDisplayString as H, Fragment as Fe, createTextVNode as ye, createCommentVNode as ue, withCtx as A, renderList as Je, Transition as cp, renderSlot as et, toValue as it, readonly as qu, watch as ze, onBeforeUnmount as Vu, reactive as Fi, useSlots as Xt, toRaw as vo, onUnmounted as Br, useAttrs as Jn, mergeProps as Ye, createSlots as ot, normalizeProps as ln, guardReactiveProps as Xn, createPropsRestProxy as Zt, withDirectives as St, resolveDynamicComponent as bt, vShow as Ot, useCssVars as xa, useTemplateRef as ut, normalizeClass as at, withModifiers as vt, nextTick as Wt, mergeModels as ua, withKeys as qs, useId as Aa, onBeforeMount as gi, shallowRef as nn, watchEffect as Uu, warn as dp, onScopeDispose as fp, normalizeStyle as si, Teleport as yo } from "vue";
5
- import { useStringHelpers as _o, ConfigurationSchemaType as jt, useAxios as Fn, useErrors as hi, EntityFormBlock as Na, useHelpers as Ia, FEATURE_FLAGS as pp, EntityBaseFormType as Qn, EntityBaseForm as mp, SupportedEntityType as Ba, DeckCodeBlock as gp, TerraformCodeBlock as hp, YamlCodeBlock as vp, JsonCodeBlock as yp, useTableState as _p, useGatewayFeatureSupported as bp, useFetcher as wp, useDeleteUrlBuilder as kp, FetcherStatus as Cp, EntityBaseTable as Ep, PermissionsWrapper as ei, TableTags as xp, EntityFilter as Ap, EntityToggleModal as Ip, EntityDeleteModal as Bu, EntityTypes as Gu, ConfigCardItem as Tp, ConfigurationSchemaSection as Ei, useSchemaProvider as Sp, EntityBaseConfigCard as Op, InternalLinkItem as Ji } from "@kong-ui-public/entities-shared";
5
+ import { useStringHelpers as _o, ConfigurationSchemaType as jt, useAxios as Fn, useErrors as hi, EntityFormBlock as Pa, useHelpers as Ia, FEATURE_FLAGS as pp, EntityBaseFormType as Qn, EntityBaseForm as mp, SupportedEntityType as Ba, DeckCodeBlock as gp, TerraformCodeBlock as hp, YamlCodeBlock as vp, JsonCodeBlock as yp, useTableState as _p, useGatewayFeatureSupported as bp, useFetcher as wp, useDeleteUrlBuilder as kp, FetcherStatus as Cp, EntityBaseTable as Ep, PermissionsWrapper as ei, TableTags as xp, EntityFilter as Ap, EntityToggleModal as Ip, EntityDeleteModal as Bu, EntityTypes as Gu, ConfigCardItem as Tp, ConfigurationSchemaSection as Ei, useSchemaProvider as Sp, EntityBaseConfigCard as Op, InternalLinkItem as Ji } from "@kong-ui-public/entities-shared";
6
6
  import { marked as Ga } from "marked";
7
- import { onBeforeRouteLeave as $p, useRouter as Ta, useRoute as Pp } from "vue-router";
8
- import { createI18n as $t, i18nTComponent as Np } from "@kong-ui-public/i18n";
7
+ import { onBeforeRouteLeave as $p, useRouter as Ta, useRoute as Np } from "vue-router";
8
+ import { createI18n as $t, i18nTComponent as Pp } from "@kong-ui-public/i18n";
9
9
  import { PluginGroup as He, PLUGIN_GROUP_AND_SCOPE_MAP as le, PluginScope as pt, GATEWAY_VERSION_TIMESTAMP_MAP as Fp } from "@kong-ui-public/entities-plugins-metadata";
10
10
  import { PluginGroup as HM, PluginScope as WM } from "@kong-ui-public/entities-plugins-metadata";
11
11
  import { FORMS_CONFIG as Ui, composables as Rp, getSharedFormName as zu, customFields as ur, AUTOFILL_SLOT as kn, FORMS_API_KEY as Hu, FieldScopedEntitySelect as Mp, AUTOFILL_SLOT_NAME as yn, sharedForms as Vs, VueFormGenerator as Lp } from "@kong-ui-public/forms";
@@ -13,14 +13,14 @@ import { VaultSecretPicker as Wu, VaultSecretPickerProvider as Vo } from "@kong-
13
13
  import "@kong-ui-public/entities-vaults/dist/style.css";
14
14
  import { KTextArea as jp, KInput as Kp, KCheckbox as Dp, KCard as cr, KMultiselect as qp, KSelect as Vp, KLabel as Gn, KCollapse as Up, KInputSwitch as Bp, KTooltip as un, KRadio as dr, KAlert as Gp, KButton as On, KModal as zp, KDropdown as Yu, KDropdownItem as za, KSlideout as Hp, KSegmentedControl as Wp } from "@kong/kongponents";
15
15
  import { AddIcon as on, CloseIcon as bo, TrashIcon as Ju, ChevronRightIcon as Yp, InfoIcon as Jp, RemoveIcon as Gr, SparklesIcon as Xp, KeyIcon as Xu, CloudIcon as Fa, CodeIcon as Zp, DataObjectIcon as Qp, CachedIcon as em, ArrowSplitIcon as Zu, DeployIcon as Qu, StackIcon as tm, GatewayIcon as nm, CodeblockIcon as zr, NetworkIcon as im, WarningIcon as am, MoreIcon as Bi, UnfoldMoreIcon as Us, UnfoldLessIcon as Bs, FullscreenIcon as om, AutoLayoutIcon as rm, ChevronDownIcon as Gs, ArrowLeftIcon as sm, ChevronDoubleLeftIcon as lm, ChevronDoubleRightIcon as um, UndoIcon as cm, RedoIcon as dm, ExternalLinkIcon as fm, DatabaseIcon as pm, ExpandIcon as mm, DesignIcon as gm, BookIcon as zs, PlugIcon as hm, TransformationIcon as vm, TrafficIcon as ym, RuntimeServerlessIcon as _m, SecurityIcon as bm, ServiceDocumentIcon as wm, LockIcon as km, AnalyticsIcon as Cm, BotIcon as Em, PopularIcon as xm, GridIcon as Am, ListIcon as Im } from "@kong/icons";
16
- import { createInjectionState as Hr, useManualRefHistory as Tm, createGlobalState as Sm, useLocalStorage as Ha, useEventListener as ca, createSharedComposable as Om, useElementBounding as ni, useDraggable as $m, useScrollLock as Pm } from "@vueuse/core";
16
+ import { createInjectionState as Hr, useManualRefHistory as Tm, createGlobalState as Sm, useLocalStorage as Ha, useEventListener as ca, createSharedComposable as Om, useElementBounding as ni, useDraggable as $m, useScrollLock as Nm } from "@vueuse/core";
17
17
  import { RedisConfigurationSelector as ec } from "@kong-ui-public/entities-redis-configurations";
18
18
  import "@kong-ui-public/entities-redis-configurations/dist/style.css";
19
19
  import * as Wa from "monaco-editor";
20
20
  import { MonacoEditor as tc } from "@kong-ui-public/monaco-editor";
21
21
  import "@kong-ui-public/monaco-editor/dist/runtime/style.css";
22
22
  import { useVueFlow as Li, MarkerType as nc, Position as hn, Handle as Ii, VueFlow as ic } from "@vue-flow/core";
23
- import { Background as Nm } from "@vue-flow/background";
23
+ import { Background as Pm } from "@vue-flow/background";
24
24
  import { Controls as Fm, ControlButton as Rm } from "@vue-flow/controls";
25
25
  import "@vue-flow/controls/dist/style.css";
26
26
  import "@vue-flow/core/dist/style.css";
@@ -31,7 +31,7 @@ import { PluginIcon as Sa } from "@kong-ui-public/entities-plugins-icon";
31
31
  import { PluginIcon as JM, getPluginIconURL as XM } from "@kong-ui-public/entities-plugins-icon";
32
32
  const Lm = {
33
33
  cancel: "Cancel",
34
- view_configuration: "View Configuration",
34
+ view_configuration: "View configuration",
35
35
  create: "New plugin",
36
36
  create_custom: "Create",
37
37
  configure: "Configure",
@@ -43,9 +43,9 @@ const Lm = {
43
43
  delete: "Delete",
44
44
  disabled: "Disabled",
45
45
  confirm_delete: "Yes, delete",
46
- view: "View Details",
47
- configure_dynamic_ordering: "Configure Dynamic Ordering",
48
- go_to_plugins: "Go to Plugins",
46
+ view: "View details",
47
+ configure_dynamic_ordering: "Configure dynamic ordering",
48
+ go_to_plugins: "Go to plugins",
49
49
  save: "Save",
50
50
  add_entity: "Add {entity}",
51
51
  remove_entity: "Remove {entity}",
@@ -91,17 +91,17 @@ const Lm = {
91
91
  new_plugin: "New plugin"
92
92
  },
93
93
  table_headers: {
94
- applied_to: "Applied To",
94
+ applied_to: "Applied to",
95
95
  applied_to_badges: {
96
96
  consumer: "Consumer",
97
97
  global: "Global",
98
98
  route: "Route",
99
99
  service: "Service",
100
- consumer_group: "Consumer Group"
100
+ consumer_group: "Consumer group"
101
101
  },
102
102
  id: "ID",
103
103
  name: "Name",
104
- instance_name: "Instance Name",
104
+ instance_name: "Instance name",
105
105
  ordering: "Ordering",
106
106
  ordering_badge: {
107
107
  dynamic: "Dynamic",
@@ -111,7 +111,7 @@ const Lm = {
111
111
  tags: "Tags"
112
112
  },
113
113
  empty_state: {
114
- title: "Configure a New Plugin",
114
+ title: "Configure a new plugin",
115
115
  description: "Plugins are used to extend Kong functionality."
116
116
  },
117
117
  empty_state_v2: {
@@ -611,18 +611,18 @@ const Lm = {
611
611
  service: "Service ID",
612
612
  route: "Route ID",
613
613
  consumer: "Consumer ID",
614
- consumer_group: "Consumer Group ID"
614
+ consumer_group: "Consumer group ID"
615
615
  },
616
616
  select: {
617
617
  custom_badge_text: "This plugin is data plane node specific",
618
618
  unavailable_tooltip: "This plugin is not available",
619
619
  already_exists: "This plugin is already applied to this resource",
620
- misc_plugins: "Other Plugins",
620
+ misc_plugins: "Other plugins",
621
621
  show_all: "Show all",
622
622
  view_more: "View more",
623
623
  view_less: "View less",
624
624
  filter: {
625
- title: "Filter Plugins",
625
+ title: "Filter plugins",
626
626
  featured: "Featured",
627
627
  type: "Type",
628
628
  clear: "Clear"
@@ -635,25 +635,25 @@ const Lm = {
635
635
  },
636
636
  tabs: {
637
637
  kong: {
638
- title: "Kong Plugins",
638
+ title: "Kong plugins",
639
639
  description: "Kong plugins are bundled by default with Kong Gateway and are available across all control planes.",
640
- empty_title: "No Plugins",
640
+ empty_title: "No plugins",
641
641
  empty_description: "No plugins are available."
642
642
  },
643
643
  custom: {
644
- title: "Custom Plugins",
644
+ title: "Custom plugins",
645
645
  description: "Custom plugins will be available in this control plane only.",
646
- disabled_tooltip: "Custom Plugins are not available with this Gateway. Create a Hybrid or Dedicated Cloud Gateway to leverage Custom Plugins.",
647
- empty_title: "No Custom Plugins",
648
- empty_description: "No custom plugins have been added to this Control Plane.",
646
+ disabled_tooltip: "Custom plugins are not available with this gateway. Create a hybrid or dedicated cloud gateway to leverage custom plugins.",
647
+ empty_title: "No custom plugins",
648
+ empty_description: "No custom plugins have been added to this control plane.",
649
649
  create: {
650
- name: "Custom Plugin",
650
+ name: "Custom plugin",
651
651
  description: "Upload schema file to create custom plugin"
652
652
  }
653
653
  }
654
654
  },
655
655
  highlighted_plugins: {
656
- title: "Highlighted Plugins"
656
+ title: "Highlighted plugins"
657
657
  }
658
658
  },
659
659
  form: {
@@ -663,8 +663,8 @@ const Lm = {
663
663
  fields: {
664
664
  enabled: {
665
665
  label: "Enabled",
666
- on_text: "This plugin is Enabled",
667
- off_text: "This plugin is Disabled"
666
+ on_text: "This plugin is enabled",
667
+ off_text: "This plugin is disabled"
668
668
  },
669
669
  plugin_status: {
670
670
  label: "Plugin status",
@@ -700,39 +700,39 @@ const Lm = {
700
700
  scoping: {
701
701
  label: "Scoped",
702
702
  placeholder: "Search by name or UUID",
703
- disable_global_radio: "The plugin is set to 'Scoped' by default. To apply a plugin globally, please navigate to the global plugin list page.",
703
+ disable_global_radio: "The plugin is set to 'scoped' by default. To apply a plugin globally, please navigate to the global plugin list page.",
704
704
  global: {
705
705
  label: "Global",
706
706
  help: "All services, routes, and consumers"
707
707
  },
708
708
  gateway_service: {
709
709
  label: "Select a gateway service",
710
- help: "The Gateway Service to which this plugin configuration will apply",
711
- placeholder: "Select a Gateway Service",
712
- plural: "Gateway Services"
710
+ help: "The gateway service to which this plugin configuration will apply",
711
+ placeholder: "Select a gateway service",
712
+ plural: "Gateway services"
713
713
  },
714
714
  route: {
715
715
  label: "Select a route",
716
- help: "The Route that this Plugin configuration will target",
717
- placeholder: "Select a Route",
716
+ help: "The route that this plugin configuration will target",
717
+ placeholder: "Select a route",
718
718
  plural: "Routes"
719
719
  },
720
720
  consumer: {
721
721
  label: "Select a consumer",
722
- help: "The Consumer that this plugin configuration will target",
723
- placeholder: "Select a Consumer",
722
+ help: "The consumer that this plugin configuration will target",
723
+ placeholder: "Select a consumer",
724
724
  plural: "Consumers"
725
725
  },
726
726
  consumer_group: {
727
727
  label: "Select a consumer group",
728
- help: "The Consumer Group that this plugin configuration will target",
729
- placeholder: "Select a Consumer Group",
730
- plural: "Consumer Groups"
728
+ help: "The consumer group that this plugin configuration will target",
729
+ placeholder: "Select a consumer group",
730
+ plural: "Consumer groups"
731
731
  }
732
732
  },
733
733
  grouping: {
734
734
  plugin_configuration: {
735
- title: "Plugin Configuration",
735
+ title: "Plugin configuration",
736
736
  description: "Configuration parameters for this plugin. View advanced parameters for extended configuration.",
737
737
  empty: "This plugin does not have required parameters."
738
738
  },
@@ -1012,11 +1012,11 @@ const Lm = {
1012
1012
  foreign_placeholder: "Enter a UUID of {entity}"
1013
1013
  }
1014
1014
  }, Bm = {
1015
- title: "Redis Configuration",
1015
+ title: "Redis configuration",
1016
1016
  shared_configuration: {
1017
1017
  label: "Shared configuration",
1018
1018
  description: "Select an existing shared Redis configuration or create a new one. Changes to this configuration automatically apply to all associated plugins.",
1019
- title: "Shared Redis Configuration",
1019
+ title: "Shared Redis configuration",
1020
1020
  error: "Fetching shared Redis configurations failed."
1021
1021
  },
1022
1022
  dedicated_configuration: {
@@ -1026,21 +1026,21 @@ const Lm = {
1026
1026
  config_card: {
1027
1027
  common_fields: {
1028
1028
  created_at_label: "Created at",
1029
- updated_at_label: "Last Updated at",
1030
- type_label: "Redis Type"
1029
+ updated_at_label: "Last updated at",
1030
+ type_label: "Redis type"
1031
1031
  }
1032
1032
  }
1033
1033
  }, Gm = {
1034
1034
  plugin: "plugin"
1035
1035
  }, zm = {
1036
1036
  key_auth_identity_realms: {
1037
- cp_label: "Current Control Plane",
1038
- cp_group_label: "Control Plane",
1039
- realm_group_label: "Realms (Can only select one)"
1037
+ cp_label: "Current control plane",
1038
+ cp_group_label: "Control plane",
1039
+ realm_group_label: "Realms (can only select one)"
1040
1040
  }
1041
1041
  }, Hm = {
1042
1042
  window_type: {
1043
- label: "Rate Limit Window Type",
1043
+ label: "Rate limit window type",
1044
1044
  help: "Sets the time window type to either <code>sliding</code> (default) or <code>fixed</code>.<br><ul><li>Sliding windows apply the rate limiting logic while taking into account previous hit rates (from the window that immediately precedes the current) using a dynamic weight.</li><li>Fixed windows consist of buckets that are statically assigned to a definitive time range, each request is mapped to only one fixed window based on its timestamp and will affect only that window&#39;s counters.</li></ul>",
1045
1045
  options: {
1046
1046
  fixed: "Fixed",
@@ -1048,7 +1048,7 @@ const Lm = {
1048
1048
  }
1049
1049
  },
1050
1050
  request_limits: {
1051
- title: "Request Limits",
1051
+ title: "Request limits",
1052
1052
  subtitle: "Set one or more limits on the number of API requests allowed within a defined timeframe.",
1053
1053
  label: "Limit",
1054
1054
  label_index: "Limit {index}",
@@ -1096,16 +1096,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
1096
1096
  }
1097
1097
  }
1098
1098
  }
1099
- }, Pt = {
1099
+ }, Nt = {
1100
1100
  actions: Lm,
1101
1101
  view_configuration: jm,
1102
1102
  delete: {
1103
- title: "Delete a Plugin",
1103
+ title: "Delete a plugin",
1104
1104
  custom_title: "Delete {name}",
1105
- custom_plugin: "Custom Plugin",
1105
+ custom_plugin: "Custom plugin",
1106
1106
  description: "This action cannot be reversed.",
1107
1107
  description_custom: "Please ensure this plugin is not in use. This action cannot be reversed.",
1108
- plugin_schema_in_use_title: "Unable to Delete Custom Plugin",
1108
+ plugin_schema_in_use_title: "Unable to delete custom plugin",
1109
1109
  plugin_schema_in_use_message: "The custom plugin schema {name} is being used in this control plane, please delete any existing instances before you delete this schema.",
1110
1110
  confirmModalText1: "Are you sure you want to delete",
1111
1111
  confirmModalText2: "Please ensure this plugin is not in use. This delete action cannot be reversed.",
@@ -1123,10 +1123,10 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
1123
1123
  sp: Hm
1124
1124
  };
1125
1125
  function Xe() {
1126
- const e = $t("en-us", Pt);
1126
+ const e = $t("en-us", Nt);
1127
1127
  return {
1128
1128
  i18n: e,
1129
- i18nT: Np(e)
1129
+ i18nT: Pp(e)
1130
1130
  // Translation component <i18n-t>
1131
1131
  };
1132
1132
  }
@@ -3065,7 +3065,7 @@ const ii = (e) => {
3065
3065
  "config-locations": {
3066
3066
  type: "multiselect"
3067
3067
  }
3068
- }, Pg = {
3068
+ }, Ng = {
3069
3069
  "config-api_specification": {
3070
3070
  label: "Config.API Specification",
3071
3071
  placeholder: "Enter an API spec",
@@ -3073,7 +3073,7 @@ const ii = (e) => {
3073
3073
  rows: 10,
3074
3074
  max: !1
3075
3075
  }
3076
- }, Ng = {
3076
+ }, Pg = {
3077
3077
  "config-api_spec": {
3078
3078
  label: "Config.API Spec",
3079
3079
  placeholder: "Enter an API spec",
@@ -3649,14 +3649,14 @@ function Oh(e, t, n) {
3649
3649
  function $h(e, t, n) {
3650
3650
  return t === t ? Oh(e, t, n) : Th(e, Sh, n);
3651
3651
  }
3652
- function Ph(e, t) {
3652
+ function Nh(e, t) {
3653
3653
  var n = e == null ? 0 : e.length;
3654
3654
  return !!n && $h(e, t, 0) > -1;
3655
3655
  }
3656
- var Nh = 9007199254740991, Fh = /^(?:0|[1-9]\d*)$/;
3656
+ var Ph = 9007199254740991, Fh = /^(?:0|[1-9]\d*)$/;
3657
3657
  function Jr(e, t) {
3658
3658
  var n = typeof e;
3659
- return t = t ?? Nh, !!t && (n == "number" || n != "symbol" && Fh.test(e)) && e > -1 && e % 1 == 0 && e < t;
3659
+ return t = t ?? Ph, !!t && (n == "number" || n != "symbol" && Fh.test(e)) && e > -1 && e % 1 == 0 && e < t;
3660
3660
  }
3661
3661
  function pc(e, t, n) {
3662
3662
  t == "__proto__" && Xa ? Xa(e, t, {
@@ -3801,16 +3801,16 @@ var pa = bi(Object, "create");
3801
3801
  function $v() {
3802
3802
  this.__data__ = pa ? pa(null) : {}, this.size = 0;
3803
3803
  }
3804
- function Pv(e) {
3804
+ function Nv(e) {
3805
3805
  var t = this.has(e) && delete this.__data__[e];
3806
3806
  return this.size -= t ? 1 : 0, t;
3807
3807
  }
3808
- var Nv = "__lodash_hash_undefined__", Fv = Object.prototype, Rv = Fv.hasOwnProperty;
3808
+ var Pv = "__lodash_hash_undefined__", Fv = Object.prototype, Rv = Fv.hasOwnProperty;
3809
3809
  function Mv(e) {
3810
3810
  var t = this.__data__;
3811
3811
  if (pa) {
3812
3812
  var n = t[e];
3813
- return n === Nv ? void 0 : n;
3813
+ return n === Pv ? void 0 : n;
3814
3814
  }
3815
3815
  return Rv.call(t, e) ? t[e] : void 0;
3816
3816
  }
@@ -3832,7 +3832,7 @@ function ui(e) {
3832
3832
  }
3833
3833
  }
3834
3834
  ui.prototype.clear = $v;
3835
- ui.prototype.delete = Pv;
3835
+ ui.prototype.delete = Nv;
3836
3836
  ui.prototype.get = Mv;
3837
3837
  ui.prototype.has = Kv;
3838
3838
  ui.prototype.set = qv;
@@ -4019,7 +4019,7 @@ function Ec(e) {
4019
4019
  function xy(e) {
4020
4020
  return e.split("");
4021
4021
  }
4022
- var xc = "\\ud800-\\udfff", Ay = "\\u0300-\\u036f", Iy = "\\ufe20-\\ufe2f", Ty = "\\u20d0-\\u20ff", Sy = Ay + Iy + Ty, Oy = "\\ufe0e\\ufe0f", $y = "[" + xc + "]", hr = "[" + Sy + "]", vr = "\\ud83c[\\udffb-\\udfff]", Py = "(?:" + hr + "|" + vr + ")", Ac = "[^" + xc + "]", Ic = "(?:\\ud83c[\\udde6-\\uddff]){2}", Tc = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ny = "\\u200d", Sc = Py + "?", Oc = "[" + Oy + "]?", Fy = "(?:" + Ny + "(?:" + [Ac, Ic, Tc].join("|") + ")" + Oc + Sc + ")*", Ry = Oc + Sc + Fy, My = "(?:" + [Ac + hr + "?", hr, Ic, Tc, $y].join("|") + ")", Ly = RegExp(vr + "(?=" + vr + ")|" + My + Ry, "g");
4022
+ var xc = "\\ud800-\\udfff", Ay = "\\u0300-\\u036f", Iy = "\\ufe20-\\ufe2f", Ty = "\\u20d0-\\u20ff", Sy = Ay + Iy + Ty, Oy = "\\ufe0e\\ufe0f", $y = "[" + xc + "]", hr = "[" + Sy + "]", vr = "\\ud83c[\\udffb-\\udfff]", Ny = "(?:" + hr + "|" + vr + ")", Ac = "[^" + xc + "]", Ic = "(?:\\ud83c[\\udde6-\\uddff]){2}", Tc = "[\\ud800-\\udbff][\\udc00-\\udfff]", Py = "\\u200d", Sc = Ny + "?", Oc = "[" + Oy + "]?", Fy = "(?:" + Py + "(?:" + [Ac, Ic, Tc].join("|") + ")" + Oc + Sc + ")*", Ry = Oc + Sc + Fy, My = "(?:" + [Ac + hr + "?", hr, Ic, Tc, $y].join("|") + ")", Ly = RegExp(vr + "(?=" + vr + ")|" + My + Ry, "g");
4023
4023
  function jy(e) {
4024
4024
  return e.match(Ly) || [];
4025
4025
  }
@@ -4063,15 +4063,15 @@ function Wy(e, t) {
4063
4063
  }
4064
4064
  return n.set(e, t), this.size = n.size, this;
4065
4065
  }
4066
- function Pn(e) {
4066
+ function Nn(e) {
4067
4067
  var t = this.__data__ = new Rn(e);
4068
4068
  this.size = t.size;
4069
4069
  }
4070
- Pn.prototype.clear = Uy;
4071
- Pn.prototype.delete = By;
4072
- Pn.prototype.get = Gy;
4073
- Pn.prototype.has = zy;
4074
- Pn.prototype.set = Wy;
4070
+ Nn.prototype.clear = Uy;
4071
+ Nn.prototype.delete = By;
4072
+ Nn.prototype.get = Gy;
4073
+ Nn.prototype.has = zy;
4074
+ Nn.prototype.set = Wy;
4075
4075
  function Yy(e, t) {
4076
4076
  return e && Oa(t, ns(t), e);
4077
4077
  }
@@ -4092,24 +4092,24 @@ function Qy(e, t) {
4092
4092
  }
4093
4093
  return o;
4094
4094
  }
4095
- function Pc() {
4095
+ function Nc() {
4096
4096
  return [];
4097
4097
  }
4098
4098
  var e_ = Object.prototype, t_ = e_.propertyIsEnumerable, gl = Object.getOwnPropertySymbols, ls = gl ? function(e) {
4099
4099
  return e == null ? [] : (e = Object(e), Qy(gl(e), function(t) {
4100
4100
  return t_.call(e, t);
4101
4101
  }));
4102
- } : Pc;
4102
+ } : Nc;
4103
4103
  function n_(e, t) {
4104
4104
  return Oa(e, ls(e), t);
4105
4105
  }
4106
- var i_ = Object.getOwnPropertySymbols, Nc = i_ ? function(e) {
4106
+ var i_ = Object.getOwnPropertySymbols, Pc = i_ ? function(e) {
4107
4107
  for (var t = []; e; )
4108
4108
  rs(t, ls(e)), e = ss(e);
4109
4109
  return t;
4110
- } : Pc;
4110
+ } : Nc;
4111
4111
  function a_(e, t) {
4112
- return Oa(e, Nc(e), t);
4112
+ return Oa(e, Pc(e), t);
4113
4113
  }
4114
4114
  function Fc(e, t, n) {
4115
4115
  var i = t(e);
@@ -4119,7 +4119,7 @@ function yr(e) {
4119
4119
  return Fc(e, ns, ls);
4120
4120
  }
4121
4121
  function Rc(e) {
4122
- return Fc(e, is, Nc);
4122
+ return Fc(e, is, Pc);
4123
4123
  }
4124
4124
  var _r = bi(Cn, "DataView"), br = bi(Cn, "Promise"), wr = bi(Cn, "Set"), hl = "[object Map]", o_ = "[object Object]", vl = "[object Promise]", yl = "[object Set]", _l = "[object WeakMap]", bl = "[object DataView]", r_ = _i(_r), s_ = _i(ma), l_ = _i(br), u_ = _i(wr), c_ = _i(gr), tn = yi;
4125
4125
  (_r && tn(new _r(new ArrayBuffer(1))) != bl || ma && tn(new ma()) != hl || br && tn(br.resolve()) != vl || wr && tn(new wr()) != yl || gr && tn(new gr()) != _l) && (tn = function(e) {
@@ -4166,7 +4166,7 @@ function y_(e, t) {
4166
4166
  var n = t ? us(e.buffer) : e.buffer;
4167
4167
  return new e.constructor(n, e.byteOffset, e.length);
4168
4168
  }
4169
- var __ = "[object Boolean]", b_ = "[object Date]", w_ = "[object Map]", k_ = "[object Number]", C_ = "[object RegExp]", E_ = "[object Set]", x_ = "[object String]", A_ = "[object Symbol]", I_ = "[object ArrayBuffer]", T_ = "[object DataView]", S_ = "[object Float32Array]", O_ = "[object Float64Array]", $_ = "[object Int8Array]", P_ = "[object Int16Array]", N_ = "[object Int32Array]", F_ = "[object Uint8Array]", R_ = "[object Uint8ClampedArray]", M_ = "[object Uint16Array]", L_ = "[object Uint32Array]";
4169
+ var __ = "[object Boolean]", b_ = "[object Date]", w_ = "[object Map]", k_ = "[object Number]", C_ = "[object RegExp]", E_ = "[object Set]", x_ = "[object String]", A_ = "[object Symbol]", I_ = "[object ArrayBuffer]", T_ = "[object DataView]", S_ = "[object Float32Array]", O_ = "[object Float64Array]", $_ = "[object Int8Array]", N_ = "[object Int16Array]", P_ = "[object Int32Array]", F_ = "[object Uint8Array]", R_ = "[object Uint8ClampedArray]", M_ = "[object Uint16Array]", L_ = "[object Uint32Array]";
4170
4170
  function j_(e, t, n) {
4171
4171
  var i = e.constructor;
4172
4172
  switch (t) {
@@ -4180,8 +4180,8 @@ function j_(e, t, n) {
4180
4180
  case S_:
4181
4181
  case O_:
4182
4182
  case $_:
4183
- case P_:
4184
4183
  case N_:
4184
+ case P_:
4185
4185
  case F_:
4186
4186
  case R_:
4187
4187
  case M_:
@@ -4237,7 +4237,7 @@ function aa(e, t, n, i, a, o) {
4237
4237
  r = j_(e, c, s);
4238
4238
  }
4239
4239
  }
4240
- o || (o = new Pn());
4240
+ o || (o = new Nn());
4241
4241
  var m = o.get(e);
4242
4242
  if (m)
4243
4243
  return m;
@@ -4324,7 +4324,7 @@ function Ib(e) {
4324
4324
  n[++t] = i;
4325
4325
  }), n;
4326
4326
  }
4327
- var Tb = 1, Sb = 2, Ob = "[object Boolean]", $b = "[object Date]", Pb = "[object Error]", Nb = "[object Map]", Fb = "[object Number]", Rb = "[object RegExp]", Mb = "[object Set]", Lb = "[object String]", jb = "[object Symbol]", Kb = "[object ArrayBuffer]", Db = "[object DataView]", xl = rn ? rn.prototype : void 0, Go = xl ? xl.valueOf : void 0;
4327
+ var Tb = 1, Sb = 2, Ob = "[object Boolean]", $b = "[object Date]", Nb = "[object Error]", Pb = "[object Map]", Fb = "[object Number]", Rb = "[object RegExp]", Mb = "[object Set]", Lb = "[object String]", jb = "[object Symbol]", Kb = "[object ArrayBuffer]", Db = "[object DataView]", xl = rn ? rn.prototype : void 0, Go = xl ? xl.valueOf : void 0;
4328
4328
  function qb(e, t, n, i, a, o, r) {
4329
4329
  switch (n) {
4330
4330
  case Db:
@@ -4337,12 +4337,12 @@ function qb(e, t, n, i, a, o, r) {
4337
4337
  case $b:
4338
4338
  case Fb:
4339
4339
  return Xr(+e, +t);
4340
- case Pb:
4340
+ case Nb:
4341
4341
  return e.name == t.name && e.message == t.message;
4342
4342
  case Rb:
4343
4343
  case Lb:
4344
4344
  return e == t + "";
4345
- case Nb:
4345
+ case Pb:
4346
4346
  var s = Ab;
4347
4347
  case Mb:
4348
4348
  var u = i & Tb;
@@ -4403,15 +4403,15 @@ function Wb(e, t, n, i, a, o) {
4403
4403
  r = !0, p = !1;
4404
4404
  }
4405
4405
  if (f && !p)
4406
- return o || (o = new Pn()), r || ts(e) ? Kc(e, t, n, i, a, o) : qb(e, t, u, n, i, a, o);
4406
+ return o || (o = new Nn()), r || ts(e) ? Kc(e, t, n, i, a, o) : qb(e, t, u, n, i, a, o);
4407
4407
  if (!(n & zb)) {
4408
4408
  var m = p && Tl.call(e, "__wrapped__"), g = c && Tl.call(t, "__wrapped__");
4409
4409
  if (m || g) {
4410
4410
  var y = m ? e.value() : e, h = g ? t.value() : t;
4411
- return o || (o = new Pn()), a(y, h, n, i, o);
4411
+ return o || (o = new Nn()), a(y, h, n, i, o);
4412
4412
  }
4413
4413
  }
4414
- return f ? (o || (o = new Pn()), Gb(e, t, n, i, a, o)) : !1;
4414
+ return f ? (o || (o = new Nn()), Gb(e, t, n, i, a, o)) : !1;
4415
4415
  }
4416
4416
  function Dc(e, t, n, i, a) {
4417
4417
  return e === t ? !0 : e == null || t == null || !bn(e) && !bn(t) ? e !== e && t !== t : Wb(e, t, n, i, Dc, a);
@@ -4458,7 +4458,7 @@ function Qa(e, t) {
4458
4458
  }
4459
4459
  var rw = Math.min;
4460
4460
  function sw(e, t, n) {
4461
- for (var i = Ph, a = e[0].length, o = e.length, r = o, s = Array(o), u = 1 / 0, d = []; r--; ) {
4461
+ for (var i = Nh, a = e[0].length, o = e.length, r = o, s = Array(o), u = 1 / 0, d = []; r--; ) {
4462
4462
  var p = e[r];
4463
4463
  u = rw(p.length, u), s[r] = a >= 120 && p.length >= 120 ? new ga(r && p) : void 0;
4464
4464
  }
@@ -4648,7 +4648,7 @@ const Ow = {
4648
4648
  var t;
4649
4649
  di((t = e.config) == null ? void 0 : t.schema_registry);
4650
4650
  }
4651
- }, Pw = {
4651
+ }, Nw = {
4652
4652
  "config-message_by_lua_functions": {
4653
4653
  ...tt,
4654
4654
  inputAttributes: {
@@ -4666,7 +4666,7 @@ const Ow = {
4666
4666
  di(a == null ? void 0 : a.schema_registry);
4667
4667
  });
4668
4668
  }
4669
- }, Nw = {
4669
+ }, Pw = {
4670
4670
  "config-message_by_lua_functions": {
4671
4671
  ...tt,
4672
4672
  inputAttributes: {
@@ -4866,7 +4866,7 @@ const qw = {
4866
4866
  }, Gw = (e, t) => {
4867
4867
  const n = e.model.startsWith("config-"), i = t.model.startsWith("config-");
4868
4868
  return n && !i ? 1 : !n && i ? -1 : 0;
4869
- }, Wc = (e, t) => (e.order ?? 0) - (t.order ?? 0), Pl = (e, t) => Gw(e, t) || Wc(e, t) || e.model.localeCompare(t.model), zw = (e) => {
4869
+ }, Wc = (e, t) => (e.order ?? 0) - (t.order ?? 0), Nl = (e, t) => Gw(e, t) || Wc(e, t) || e.model.localeCompare(t.model), zw = (e) => {
4870
4870
  const { capitalize: t } = _o(), { convertToDotNotation: n } = ac(), { i18n: { t: i } } = Xe(), a = fs(), o = {
4871
4871
  "application-registration": {
4872
4872
  overwriteDefault: !0,
@@ -4916,10 +4916,10 @@ const qw = {
4916
4916
  ...Gg
4917
4917
  },
4918
4918
  "oas-validation": {
4919
- ...Ng
4919
+ ...Pg
4920
4920
  },
4921
4921
  mocking: {
4922
- ...Pg
4922
+ ...Ng
4923
4923
  },
4924
4924
  "rate-limiting": {
4925
4925
  ...Ra
@@ -4978,10 +4978,10 @@ const qw = {
4978
4978
  ...$w
4979
4979
  },
4980
4980
  "confluent-consume": {
4981
- ...Pw
4981
+ ...Nw
4982
4982
  },
4983
4983
  "kafka-consume": {
4984
- ...Nw
4984
+ ...Pw
4985
4985
  },
4986
4986
  "kafka-log": {
4987
4987
  ...Fw
@@ -4999,14 +4999,14 @@ const qw = {
4999
4999
  ...Bw
5000
5000
  }
5001
5001
  }, r = () => ["created_at", "updated_at", "id", "_isCustomPlugin", "_supported_redis_partial_type", "_redis_partial_path"], s = (w, I, $, K) => {
5002
- let N = {};
5003
- (I || w) && (N = I || (w.fields ? w.fields : w));
5004
- const P = r().concat(w.blacklist ? w.blacklist : []), F = Object.keys(N).filter((B) => !P.includes(B)), J = F.indexOf("comparator");
5002
+ let P = {};
5003
+ (I || w) && (P = I || (w.fields ? w.fields : w));
5004
+ const N = r().concat(w.blacklist ? w.blacklist : []), F = Object.keys(P).filter((B) => !N.includes(B)), J = F.indexOf("comparator");
5005
5005
  J > -1 && F.splice(J, 1);
5006
5006
  let q = { fields: [] };
5007
5007
  const U = {};
5008
5008
  F.forEach((B) => {
5009
- d(N[B], B, N, U, q, $);
5009
+ d(P[B], B, P, U, q, $);
5010
5010
  });
5011
5011
  const ee = U.name, ne = en[ee], V = [], O = (B) => {
5012
5012
  const S = ["cluster-cache"];
@@ -5078,12 +5078,12 @@ const qw = {
5078
5078
  B.length > 0 && te.push({
5079
5079
  fields: B.sort(Wc)
5080
5080
  }), (S.length > 0 || z.length > 0) && te.push({
5081
- fields: S.sort(Pl),
5081
+ fields: S.sort(Nl),
5082
5082
  collapsible: {
5083
5083
  title: i("plugins.form.grouping.plugin_configuration.title"),
5084
5084
  description: i("plugins.form.grouping.plugin_configuration.description"),
5085
5085
  nestedCollapsible: {
5086
- fields: z.sort(Pl),
5086
+ fields: z.sort(Nl),
5087
5087
  triggerLabel: {
5088
5088
  expand: i("plugins.form.grouping.advanced_parameters.view"),
5089
5089
  collapse: i("plugins.form.grouping.advanced_parameters.hide")
@@ -5106,14 +5106,14 @@ const qw = {
5106
5106
  helpAsHtml: !0
5107
5107
  }
5108
5108
  };
5109
- }, u = (w) => Array.isArray(w.default) || w.default != null && typeof w.default != "object" && w.default !== "function", d = (w, I, $, K, N, P) => {
5109
+ }, u = (w) => Array.isArray(w.default) || w.default != null && typeof w.default != "object" && w.default !== "function", d = (w, I, $, K, P, N) => {
5110
5110
  const F = u(w);
5111
- return K[I] = F ? w.default : null, w.id = I, w.model = I, w.fields && w.type === "record" ? c(w, I, $, K, N, P) : ($[I] = w, E(w, K), P && P[I] && p($[I], P[I]), N.fields.push(w)), $;
5112
- }, p = (w, I) => (I && (Object.assign(w, I), I.label && (w.label = I.label)), w), c = (w, I, $, K, N, P) => {
5111
+ return K[I] = F ? w.default : null, w.id = I, w.model = I, w.fields && w.type === "record" ? c(w, I, $, K, P, N) : ($[I] = w, E(w, K), N && N[I] && p($[I], N[I]), P.fields.push(w)), $;
5112
+ }, p = (w, I) => (I && (Object.assign(w, I), I.label && (w.label = I.label)), w), c = (w, I, $, K, P, N) => {
5113
5113
  w.fields.forEach((F) => {
5114
5114
  Object.keys(F).forEach((J) => {
5115
5115
  const q = F[J];
5116
- $ = d(q, I + "-" + J, $, K, N, P);
5116
+ $ = d(q, I + "-" + J, $, K, P, N);
5117
5117
  });
5118
5118
  });
5119
5119
  }, f = (w, I) => {
@@ -5174,9 +5174,9 @@ const qw = {
5174
5174
  return;
5175
5175
  const $ = v(w);
5176
5176
  ur.forEach((K) => {
5177
- Object.keys($).forEach((N) => {
5178
- const P = u($[N]);
5179
- I[N] = P ? $[N].default : null;
5177
+ Object.keys($).forEach((P) => {
5178
+ const N = u($[P]);
5179
+ I[P] = N ? $[P].default : null;
5180
5180
  }), delete I[K];
5181
5181
  });
5182
5182
  }, x = (w, I) => w.inputType === "hidden" ? "" : n(t(w.label || I.replace(/_/g, " "))), E = (w, I) => {
@@ -5207,10 +5207,10 @@ const qw = {
5207
5207
  return w;
5208
5208
  const $ = {};
5209
5209
  for (const K of I.fields) {
5210
- const N = Object.keys(K)[0], P = K[N];
5211
- P.type === "record" ? $[N] = b(w[N], P) : P.type === "array" && Array.isArray(w[N]) && P.elements.type === "record" ? $[N] = w[N].map(
5212
- (F) => b(F, P.elements)
5213
- ) : $[N] = w[N];
5210
+ const P = Object.keys(K)[0], N = K[P];
5211
+ N.type === "record" ? $[P] = b(w[P], N) : N.type === "array" && Array.isArray(w[P]) && N.elements.type === "record" ? $[P] = w[P].map(
5212
+ (F) => b(F, N.elements)
5213
+ ) : $[P] = w[P];
5214
5214
  }
5215
5215
  return $;
5216
5216
  }
@@ -5248,11 +5248,11 @@ const qw = {
5248
5248
  },
5249
5249
  ...(t == null ? void 0 : t[0]) != null ? { default: t[0] } : {}
5250
5250
  }
5251
- }), Nt = "/v2/control-planes/{controlPlaneId}/core-entities", qt = "/{workspace}", mt = {
5251
+ }), Pt = "/v2/control-planes/{controlPlaneId}/core-entities", qt = "/{workspace}", mt = {
5252
5252
  list: {
5253
5253
  konnect: {
5254
- all: `${Nt}/plugins`,
5255
- forEntity: `${Nt}/{entityType}/{entityId}/plugins`
5254
+ all: `${Pt}/plugins`,
5255
+ forEntity: `${Pt}/{entityType}/{entityId}/plugins`
5256
5256
  },
5257
5257
  kongManager: {
5258
5258
  all: `${qt}/plugins`,
@@ -5261,10 +5261,10 @@ const qw = {
5261
5261
  },
5262
5262
  select: {
5263
5263
  konnect: {
5264
- availablePlugins: `${Nt}/v1/available-plugins`,
5265
- streamingCustomPlugins: `${Nt}/custom-plugins`,
5266
- schemaCustomPluginItem: `${Nt}/plugin-schemas/{pluginId}`,
5267
- streamingCustomPluginItem: `${Nt}/custom-plugins/{pluginId}`
5264
+ availablePlugins: `${Pt}/v1/available-plugins`,
5265
+ streamingCustomPlugins: `${Pt}/custom-plugins`,
5266
+ schemaCustomPluginItem: `${Pt}/plugin-schemas/{pluginId}`,
5267
+ streamingCustomPluginItem: `${Pt}/custom-plugins/{pluginId}`
5268
5268
  },
5269
5269
  kongManager: {
5270
5270
  availablePlugins: `${qt}/kong`,
@@ -5274,23 +5274,23 @@ const qw = {
5274
5274
  form: {
5275
5275
  konnect: {
5276
5276
  create: {
5277
- all: `${Nt}/plugins`,
5278
- forEntity: `${Nt}/{entityType}/{entityId}/plugins`
5277
+ all: `${Pt}/plugins`,
5278
+ forEntity: `${Pt}/{entityType}/{entityId}/plugins`
5279
5279
  },
5280
5280
  edit: {
5281
- all: `${Nt}/plugins/{id}`,
5282
- forEntity: `${Nt}/{entityType}/{entityId}/plugins/{id}`
5281
+ all: `${Pt}/plugins/{id}`,
5282
+ forEntity: `${Pt}/{entityType}/{entityId}/plugins/{id}`
5283
5283
  },
5284
5284
  pluginSchema: "/v2/control-planes/{controlPlaneId}/schemas/core-entities/plugins/{plugin}",
5285
5285
  credential: {
5286
- create: `${Nt}/{resourceEndpoint}`,
5287
- edit: `${Nt}/{resourceEndpoint}/{id}`
5286
+ create: `${Pt}/{resourceEndpoint}`,
5287
+ edit: `${Pt}/{resourceEndpoint}/{id}`
5288
5288
  },
5289
5289
  credentialSchema: "/v2/control-planes/{controlPlaneId}/schemas/core-entities/{plugin}",
5290
5290
  // VFG endpoints24
5291
- entityGetOne: `${Nt}/{entity}/{id}`,
5292
- entityGetAll: `${Nt}/{entity}`,
5293
- entityPeek: `${Nt}/{entity}?size={amount}`
5291
+ entityGetOne: `${Pt}/{entity}/{id}`,
5292
+ entityGetAll: `${Pt}/{entity}`,
5293
+ entityPeek: `${Pt}/{entity}?size={amount}`
5294
5294
  },
5295
5295
  kongManager: {
5296
5296
  create: {
@@ -5314,8 +5314,8 @@ const qw = {
5314
5314
  },
5315
5315
  item: {
5316
5316
  konnect: {
5317
- all: `${Nt}/plugins/{id}`,
5318
- forEntity: `${Nt}/{entityType}/{entityId}/plugins/{id}`
5317
+ all: `${Pt}/plugins/{id}`,
5318
+ forEntity: `${Pt}/{entityType}/{entityId}/plugins/{id}`
5319
5319
  },
5320
5320
  kongManager: {
5321
5321
  all: `${qt}/plugins/{id}`,
@@ -5357,7 +5357,7 @@ const qw = {
5357
5357
  ], 64))
5358
5358
  ]));
5359
5359
  }
5360
- }), Nl = /* @__PURE__ */ Te(Jw, [["__scopeId", "data-v-c9200dc3"]]), Xw = { key: 0 }, Zw = /* @__PURE__ */ de({
5360
+ }), Pl = /* @__PURE__ */ Te(Jw, [["__scopeId", "data-v-c9200dc3"]]), Xw = { key: 0 }, Zw = /* @__PURE__ */ de({
5361
5361
  __name: "PluginFieldRuleAlerts",
5362
5362
  props: {
5363
5363
  rules: {}
@@ -5386,7 +5386,7 @@ const qw = {
5386
5386
  }, [
5387
5387
  C(l(i), { keypath: u }, {
5388
5388
  parameters: A(() => [
5389
- (_(!0), G(Fe, null, Je(d, (c, f) => (_(), L(Nl, {
5389
+ (_(!0), G(Fe, null, Je(d, (c, f) => (_(), L(Pl, {
5390
5390
  key: `alert-field-${c}`,
5391
5391
  field: c,
5392
5392
  "is-last": f === d.length - 1
@@ -5404,7 +5404,7 @@ const qw = {
5404
5404
  (_(!0), G(Fe, null, Je(u, (p, c) => (_(), G("li", {
5405
5405
  key: `only-one-mutually-alert-${d}-combination-${c}`
5406
5406
  }, [
5407
- (_(!0), G(Fe, null, Je(p, (f, m) => (_(), L(Nl, {
5407
+ (_(!0), G(Fe, null, Je(p, (f, m) => (_(), L(Pl, {
5408
5408
  key: `only-one-mutually-field-${f}`,
5409
5409
  field: f,
5410
5410
  "is-last": m === p.length - 1
@@ -5881,10 +5881,10 @@ ${I}`
5881
5881
  () => it(k)
5882
5882
  ],
5883
5883
  ([E, b, w, I]) => {
5884
- !b || !E || Object.entries(b).forEach(([$, [K, N]]) => {
5884
+ !b || !E || Object.entries(b).forEach(([$, [K, P]]) => {
5885
5885
  if (I != null && I.includes($)) return;
5886
- const P = So(E, K), F = w ? bk(gt(w, $)) : $;
5887
- if (dn(P, N)) {
5886
+ const N = So(E, K), F = w ? bk(gt(w, $)) : $;
5887
+ if (dn(N, P)) {
5888
5888
  n.value.delete(F), e();
5889
5889
  return;
5890
5890
  }
@@ -6029,7 +6029,7 @@ function Lt(e) {
6029
6029
  error: new Error(`path '${a.value}' is not found in schema.`)
6030
6030
  };
6031
6031
  }
6032
- function Pa(e) {
6032
+ function Na(e) {
6033
6033
  const { getSchema: t } = st(), n = Jn();
6034
6034
  return T(() => {
6035
6035
  var a;
@@ -6070,7 +6070,7 @@ function $k(e, t) {
6070
6070
  window[Zi] && delete window[Zi][t];
6071
6071
  });
6072
6072
  }
6073
- const Pk = {
6073
+ const Nk = {
6074
6074
  ip: "IP",
6075
6075
  ssl: "SSL",
6076
6076
  ttl: "TTL",
@@ -6095,12 +6095,12 @@ const Pk = {
6095
6095
  cookie: "Cookie"
6096
6096
  };
6097
6097
  function ad(e) {
6098
- return Pk[e.toLocaleLowerCase()] ?? e;
6098
+ return Nk[e.toLocaleLowerCase()] ?? e;
6099
6099
  }
6100
6100
  function od(e) {
6101
6101
  return e.split("_").map(ad).join(" ");
6102
6102
  }
6103
- function Nk(e, t) {
6103
+ function Pk(e, t) {
6104
6104
  const n = yt(Ll, {
6105
6105
  parentPath: null,
6106
6106
  isolate: !1
@@ -6137,7 +6137,7 @@ function rd(e) {
6137
6137
  return Ht(e).map((n) => n.split("_").map(ad).join(" ")).map(qy).join(" › ");
6138
6138
  }
6139
6139
  function Fk(e, t) {
6140
- const n = it(e), i = wi(n), { config: a, getSchema: o } = st(), r = Nk(i, t), s = ed(e);
6140
+ const n = it(e), i = wi(n), { config: a, getSchema: o } = st(), r = Pk(i, t), s = ed(e);
6141
6141
  return T(() => {
6142
6142
  var f;
6143
6143
  const u = r.value ?? i, d = (f = s.value.parent) != null && f.path ? o(s.value.parent.path) : null, c = (d == null ? void 0 : d.type) === "array" ? "" : rd(u);
@@ -6223,7 +6223,7 @@ const fi = /* @__PURE__ */ de({
6223
6223
  }), m = yt(kn, void 0), g = T(() => {
6224
6224
  var k;
6225
6225
  return e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!((k = u.schema.value) != null && k.referenceable);
6226
- }), y = T(() => ({ referenceable: g.value })), h = Pa(u.ancestors), v = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
6226
+ }), y = T(() => ({ referenceable: g.value })), h = Na(u.ancestors), v = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
6227
6227
  return (k, x) => {
6228
6228
  var b;
6229
6229
  const E = oe("KAlert");
@@ -6352,7 +6352,7 @@ const fi = /* @__PURE__ */ de({
6352
6352
  const v = f(h), k = !v.length && d.value ? null : v;
6353
6353
  o.value = k, a("update:modelValue", k);
6354
6354
  }
6355
- const g = Pa(s.ancestors), y = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
6355
+ const g = Na(s.ancestors), y = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
6356
6356
  return ze(o, (h) => {
6357
6357
  const v = h ? c(h) : "";
6358
6358
  c(f(p.value)) !== v && (p.value = v);
@@ -6392,7 +6392,7 @@ const fi = /* @__PURE__ */ de({
6392
6392
  ]);
6393
6393
  };
6394
6394
  }
6395
- }), Po = /* @__PURE__ */ Te(qk, [["__scopeId", "data-v-5195e71a"]]), Vk = ["data-appearance", "data-testid"], Uk = ["data-testid"], Bk = ["innerHTML"], Gk = ["data-testid"], zk = { class: "ff-array-field-item-content" }, Hk = ["data-index", "data-testid"], Wk = /* @__PURE__ */ de({
6395
+ }), No = /* @__PURE__ */ Te(qk, [["__scopeId", "data-v-5195e71a"]]), Vk = ["data-appearance", "data-testid"], Uk = ["data-testid"], Bk = ["innerHTML"], Gk = ["data-testid"], zk = { class: "ff-array-field-item-content" }, Hk = ["data-index", "data-testid"], Wk = /* @__PURE__ */ de({
6396
6396
  __name: "ArrayField",
6397
6397
  props: {
6398
6398
  name: {},
@@ -6406,45 +6406,45 @@ const fi = /* @__PURE__ */ de({
6406
6406
  emits: ["add", "remove"],
6407
6407
  setup(e, { emit: t }) {
6408
6408
  var K;
6409
- xa((N) => ({
6409
+ xa((P) => ({
6410
6410
  v3c0f22aa: $.value
6411
6411
  }));
6412
6412
  const n = e, i = t, { i18n: { t: a } } = Xe(), { getDefault: o, getSchema: r } = st(), { value: s, hide: u, ...d } = Lt(rt(n, "name")), p = Jt(d.path, rt({ ...n, ...Jn() })), c = T(() => {
6413
6413
  if (!d.path) throw new Error("Field path is required for sub-schema retrieval");
6414
- const N = r(d.path.value);
6415
- if (!N) throw new Error(`Schema not found for path: ${d.path.value}`);
6416
- return N.elements;
6414
+ const P = r(d.path.value);
6415
+ if (!P) throw new Error(`Schema not found for path: ${d.path.value}`);
6416
+ return P.elements;
6417
6417
  }), f = T(() => {
6418
6418
  if (!d.path) return "";
6419
- const N = wi(d.path.value);
6420
- return od(N);
6419
+ const P = wi(d.path.value);
6420
+ return od(P);
6421
6421
  }), m = T(() => n.items ?? it(s) ?? []), { getKey: g } = id("ff-array-field", m), y = T(() => n.appearance ? n.appearance : c.value.type === "record" ? "card" : "default"), h = T(() => y.value === "card" ? cr : "div");
6422
- function v(N, P) {
6423
- return typeof n.itemLabel == "function" ? n.itemLabel(N, P) : n.itemLabel || p.value.label || `Item #${P}`;
6422
+ function v(P, N) {
6423
+ return typeof n.itemLabel == "function" ? n.itemLabel(P, N) : n.itemLabel || p.value.label || `Item #${N}`;
6424
6424
  }
6425
- const k = T(() => m.value.map((N, P) => ({
6426
- hash: `#${g(N, P)}`,
6425
+ const k = T(() => m.value.map((P, N) => ({
6426
+ hash: `#${g(P, N)}`,
6427
6427
  title: ""
6428
6428
  }))), x = X((K = k.value[0]) == null ? void 0 : K.hash), E = async () => {
6429
- var P;
6430
- const N = o(gt(d.path.value, gs));
6431
- Array.isArray(s.value) || (s.value = []), s.value.push(N), i("add"), n.appearance === "tabs" && (await Wt(), x.value = (P = k.value[k.value.length - 1]) == null ? void 0 : P.hash), await Wt(), I(m.value.length + 1);
6432
- }, b = async (N) => {
6433
- var P;
6434
- Array.isArray(s.value) && s.value.splice(N, 1), i("remove", N), n.appearance === "tabs" && (x.value = (P = k.value[Math.max(0, N - 1)]) == null ? void 0 : P.hash);
6429
+ var N;
6430
+ const P = o(gt(d.path.value, gs));
6431
+ Array.isArray(s.value) || (s.value = []), s.value.push(P), i("add"), n.appearance === "tabs" && (await Wt(), x.value = (N = k.value[k.value.length - 1]) == null ? void 0 : N.hash), await Wt(), I(m.value.length + 1);
6432
+ }, b = async (P) => {
6433
+ var N;
6434
+ Array.isArray(s.value) && s.value.splice(P, 1), i("remove", P), n.appearance === "tabs" && (x.value = (N = k.value[Math.max(0, P - 1)]) == null ? void 0 : N.hash);
6435
6435
  }, w = ut("root");
6436
- function I(N) {
6436
+ function I(P) {
6437
6437
  var F;
6438
6438
  if (!w.value)
6439
6439
  return;
6440
- const P = Math.max(0, Math.min(N, m.value.length - 1));
6441
- (F = w.value.querySelector(`[data-index="${P}"] [data-autofocus]`)) == null || F.focus();
6440
+ const N = Math.max(0, Math.min(P, m.value.length - 1));
6441
+ (F = w.value.querySelector(`[data-index="${N}"] [data-autofocus]`)) == null || F.focus();
6442
6442
  }
6443
6443
  const $ = T(() => {
6444
- const { appearance: N, stickyTabs: P } = n;
6445
- return N !== "tabs" || P == null || P === !1 ? null : typeof P == "number" ? `${n.stickyTabs}px` : typeof P == "string" ? P : "0";
6444
+ const { appearance: P, stickyTabs: N } = n;
6445
+ return P !== "tabs" || N == null || N === !1 ? null : typeof N == "number" ? `${n.stickyTabs}px` : typeof N == "string" ? N : "0";
6446
6446
  });
6447
- return (N, P) => {
6447
+ return (P, N) => {
6448
6448
  var ne;
6449
6449
  const F = oe("KAlert"), J = oe("KLabel"), q = oe("KButton"), U = oe("KTooltip"), ee = oe("KTabs");
6450
6450
  return d.error ? (_(), L(F, {
@@ -6478,7 +6478,7 @@ const fi = /* @__PURE__ */ de({
6478
6478
  (ne = l(p).labelAttributes) != null && ne.info ? {
6479
6479
  name: "tooltip",
6480
6480
  fn: A(() => [
6481
- et(N.$slots, "tooltip", {}, () => [
6481
+ et(P.$slots, "tooltip", {}, () => [
6482
6482
  D("div", {
6483
6483
  innerHTML: l(p).labelAttributes.info
6484
6484
  }, null, 8, Bk)
@@ -6514,12 +6514,12 @@ const fi = /* @__PURE__ */ de({
6514
6514
  }, {
6515
6515
  default: A(() => [
6516
6516
  D("div", zk, [
6517
- N.$slots.item ? et(N.$slots, "item", {
6517
+ P.$slots.item ? et(P.$slots, "item", {
6518
6518
  key: 0,
6519
6519
  fieldName: String(O),
6520
6520
  index: O
6521
6521
  }, void 0, !0) : ue("", !0),
6522
- c.value.type === "array" && c.value.elements.type === "string" ? (_(), L(Po, {
6522
+ c.value.type === "array" && c.value.elements.type === "string" ? (_(), L(No, {
6523
6523
  key: 1,
6524
6524
  help: l(a)("plugins.free-form.tag_helper"),
6525
6525
  name: String(O)
@@ -6573,7 +6573,7 @@ const fi = /* @__PURE__ */ de({
6573
6573
  default: A(() => [
6574
6574
  C(ee, {
6575
6575
  modelValue: x.value,
6576
- "onUpdate:modelValue": P[0] || (P[0] = (V) => x.value = V),
6576
+ "onUpdate:modelValue": N[0] || (N[0] = (V) => x.value = V),
6577
6577
  "data-testid": `ff-array-tabs-${d.path.value}`,
6578
6578
  tabs: k.value
6579
6579
  }, ot({ _: 2 }, [
@@ -6585,7 +6585,7 @@ const fi = /* @__PURE__ */ de({
6585
6585
  "data-index": O,
6586
6586
  "data-testid": `ff-array-item-${d.path.value}.${O}`
6587
6587
  }, [
6588
- N.$slots.item ? et(N.$slots, "item", {
6588
+ P.$slots.item ? et(P.$slots, "item", {
6589
6589
  key: 0,
6590
6590
  fieldName: String(O),
6591
6591
  index: O
@@ -6676,7 +6676,7 @@ const fi = /* @__PURE__ */ de({
6676
6676
  const b = Number(E);
6677
6677
  return Number.isFinite(b) ? b : v.value ? x : null;
6678
6678
  }
6679
- const g = Pa(o.ancestors), y = yt(kn, void 0), h = T(() => ({ referenceable: v.value })), v = T(() => {
6679
+ const g = Na(o.ancestors), y = yt(kn, void 0), h = T(() => ({ referenceable: v.value })), v = T(() => {
6680
6680
  var x;
6681
6681
  return e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!((x = o.schema.value) != null && x.referenceable);
6682
6682
  }), k = T(() => v.value ? "text" : "number");
@@ -6820,7 +6820,7 @@ const fi = /* @__PURE__ */ de({
6820
6820
  };
6821
6821
  }
6822
6822
  }), an = /* @__PURE__ */ Te(Qk, [["__scopeId", "data-v-3b4bfe42"]]);
6823
- function No(e, t, n = !0) {
6823
+ function Po(e, t, n = !0) {
6824
6824
  const { value: i, emptyOrDefaultValue: a, ...o } = Lt(rt(e, "name")), r = Jt(o.path, rt({ ...e, ...Jn() })), s = X(p(
6825
6825
  e.initialValue ?? it(i),
6826
6826
  e.keyOrder
@@ -6948,7 +6948,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
6948
6948
  setValue: p,
6949
6949
  labelAttrs: c,
6950
6950
  field: f
6951
- } = No(i, o), m = T(() => {
6951
+ } = Po(i, o), m = T(() => {
6952
6952
  if (!f.path) return "";
6953
6953
  const I = wi(f.path.value);
6954
6954
  return od(I);
@@ -6966,8 +6966,8 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
6966
6966
  h(I === -1 ? r.value.length - 1 : I);
6967
6967
  }
6968
6968
  function k(I, $) {
6969
- var K, N;
6970
- (N = (K = i.appearance) == null ? void 0 : K.string) != null && N.multiline || (I.preventDefault(), $ === r.value.length - 1 && s(), h($ + 1));
6969
+ var K, P;
6970
+ (P = (K = i.appearance) == null ? void 0 : K.string) != null && P.multiline || (I.preventDefault(), $ === r.value.length - 1 && s(), h($ + 1));
6971
6971
  }
6972
6972
  const x = yt(kn, void 0), E = T(() => {
6973
6973
  var I, $;
@@ -6981,7 +6981,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
6981
6981
  setValue: p
6982
6982
  }), (I, $) => {
6983
6983
  var J;
6984
- const K = oe("KAlert"), N = oe("KLabel"), P = oe("KButton"), F = oe("KTooltip");
6984
+ const K = oe("KAlert"), P = oe("KLabel"), N = oe("KButton"), F = oe("KTooltip");
6985
6985
  return l(f).error ? (_(), L(K, {
6986
6986
  key: 0,
6987
6987
  appearance: "danger",
@@ -6997,7 +6997,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
6997
6997
  class: "ff-kv-field-header",
6998
6998
  "data-testid": `ff-kv-header-${l(f).path.value}`
6999
6999
  }, [
7000
- C(N, Ye({ class: "ff-kv-field-label" }, l(c), {
7000
+ C(P, Ye({ class: "ff-kv-field-label" }, l(c), {
7001
7001
  "data-testid": `ff-label-${l(f).path.value}`,
7002
7002
  "tooltip-attributes": l(c).labelAttributes.tooltipAttributes
7003
7003
  }), ot({
@@ -7073,7 +7073,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7073
7073
  text: l(a).t("actions.remove_entity", { entity: m.value })
7074
7074
  }, {
7075
7075
  default: A(() => [
7076
- C(P, {
7076
+ C(N, {
7077
7077
  appearance: "tertiary",
7078
7078
  "aria-label": l(a).t("actions.remove_entity", { entity: m.value }),
7079
7079
  "data-testid": `ff-kv-remove-btn-${l(f).path.value}.${U}`,
@@ -7093,7 +7093,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7093
7093
  _: 2
7094
7094
  }, 1032, ["class", "data-testid"]);
7095
7095
  }), 128)),
7096
- C(P, {
7096
+ C(N, {
7097
7097
  appearance: "tertiary",
7098
7098
  "aria-label": l(a).t("actions.add_entity", { entity: m.value }),
7099
7099
  class: "ff-kv-field-add-entry-btn",
@@ -7131,7 +7131,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7131
7131
  }
7132
7132
  o.value = g, a("update:modelValue", g);
7133
7133
  }
7134
- const c = Pa(s.ancestors), f = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
7134
+ const c = Na(s.ancestors), f = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
7135
7135
  return ze(o, (m) => {
7136
7136
  if (m && typeof m == "object") {
7137
7137
  try {
@@ -7209,7 +7209,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7209
7209
  function m(h) {
7210
7210
  p !== void 0 && h === "" && h !== p ? (r.value = null, o("update:modelValue", null)) : (r.value = { id: h.trim() }, o("update:modelValue", r.value));
7211
7211
  }
7212
- const g = Pa(u.ancestors), y = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
7212
+ const g = Na(u.ancestors), y = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : wi(e.name) === "name");
7213
7213
  return (h, v) => {
7214
7214
  var k;
7215
7215
  return St((_(), L(fi, Ye(l(d), {
@@ -7261,7 +7261,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7261
7261
  case "array":
7262
7262
  return va;
7263
7263
  case "set":
7264
- return kk(n.schema) ? Po : an;
7264
+ return kk(n.schema) ? No : an;
7265
7265
  case "record":
7266
7266
  return Gt;
7267
7267
  case "map":
@@ -7546,7 +7546,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7546
7546
  hideGeneralFields: { type: Boolean }
7547
7547
  },
7548
7548
  setup(e) {
7549
- const { t } = $t("en-us", Pt), { getSchema: n } = st(), i = X(!0);
7549
+ const { t } = $t("en-us", Nt), { getSchema: n } = st(), i = X(!0);
7550
7550
  return (a, o) => (_(), L(l(Up), {
7551
7551
  modelValue: i.value,
7552
7552
  "onUpdate:modelValue": o[0] || (o[0] = (r) => i.value = r),
@@ -7564,7 +7564,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7564
7564
  key: 1,
7565
7565
  name: "protocols"
7566
7566
  })) : ue("", !0),
7567
- l(n)("tags") ? (_(), L(Po, {
7567
+ l(n)("tags") ? (_(), L(No, {
7568
7568
  key: 2,
7569
7569
  help: "e.g. tag1, tag2, tag3",
7570
7570
  name: "tags",
@@ -7810,7 +7810,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7810
7810
  ]);
7811
7811
  };
7812
7812
  }
7813
- }), P0 = /* @__PURE__ */ Te($0, [["__scopeId", "data-v-33b4fa01"]]), Hn = /* @__PURE__ */ de({
7813
+ }), N0 = /* @__PURE__ */ Te($0, [["__scopeId", "data-v-33b4fa01"]]), Hn = /* @__PURE__ */ de({
7814
7814
  __name: "FieldRenderer",
7815
7815
  props: {
7816
7816
  match: { type: Function },
@@ -7820,7 +7820,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7820
7820
  const t = e, { default: n } = Xt(), { fieldRendererRegistry: i } = st();
7821
7821
  return n && i.set(t.match, n), (a, o) => null;
7822
7822
  }
7823
- }), Ro = /* @__PURE__ */ Symbol("redis-partial-info"), N0 = {
7823
+ }), Ro = /* @__PURE__ */ Symbol("redis-partial-info"), P0 = {
7824
7824
  konnect: {
7825
7825
  getOne: "/v2/control-planes/{controlPlaneId}/core-entities/partials/{id}",
7826
7826
  getAll: "/v2/control-planes/{controlPlaneId}/core-entities/partials"
@@ -7836,7 +7836,7 @@ const e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = { cla
7836
7836
  pluginRedisFields: {}
7837
7837
  },
7838
7838
  setup(e) {
7839
- const { t, formatUnixTimeStamp: n } = $t("en-us", Pt), i = {
7839
+ const { t, formatUnixTimeStamp: n } = $t("en-us", Nt), i = {
7840
7840
  id: {
7841
7841
  order: 1
7842
7842
  },
@@ -7930,8 +7930,8 @@ const B0 = {
7930
7930
  redisPath: {}
7931
7931
  },
7932
7932
  setup(e) {
7933
- var N;
7934
- const { t } = $t("en-us", Pt), n = [
7933
+ var P;
7934
+ const { t } = $t("en-us", Nt), n = [
7935
7935
  "host",
7936
7936
  "port",
7937
7937
  "database",
@@ -7971,21 +7971,21 @@ const B0 = {
7971
7971
  "cloud_authentication.azure_tenant_id": ["cloud_authentication.auth_provider", "azure"]
7972
7972
  }
7973
7973
  }, a = e, o = ys(), r = yt(Ro), s = (r == null ? void 0 : r.isEditing) || !1, u = T(() => {
7974
- var P;
7975
- return a.redisPath ? a.redisPath : (P = r == null ? void 0 : r.redisPath) != null && P.value ? "$." + r.redisPath.value : "$.config.redis";
7976
- }), d = a.redisType || ((N = r == null ? void 0 : r.redisType) == null ? void 0 : N.value), p = T(() => {
7977
- var P;
7978
- return !!((P = r == null ? void 0 : r.redisType) != null && P.value);
7979
- }), c = X(null), f = X(!s), { getMessageFromError: m } = hi(), g = X(a.defaultRedisConfigItem), y = X({}), h = X(), { value: v } = nd("$.partials"), { value: k, hide: x } = Lt(u), E = yt(Ui), b = X(null), w = (P) => {
7980
- let F = `${E.apiBaseUrl}${N0[E.app].getOne}`;
7981
- return E.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, (E == null ? void 0 : E.controlPlaneId) || "") : E.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, E != null && E.workspace ? `/${E.workspace}` : "")), F = F.replace(/{id}/gi, String(P)), F;
7974
+ var N;
7975
+ return a.redisPath ? a.redisPath : (N = r == null ? void 0 : r.redisPath) != null && N.value ? "$." + r.redisPath.value : "$.config.redis";
7976
+ }), d = a.redisType || ((P = r == null ? void 0 : r.redisType) == null ? void 0 : P.value), p = T(() => {
7977
+ var N;
7978
+ return !!((N = r == null ? void 0 : r.redisType) != null && N.value);
7979
+ }), c = X(null), f = X(!s), { getMessageFromError: m } = hi(), g = X(a.defaultRedisConfigItem), y = X({}), h = X(), { value: v } = nd("$.partials"), { value: k, hide: x } = Lt(u), E = yt(Ui), b = X(null), w = (N) => {
7980
+ let F = `${E.apiBaseUrl}${P0[E.app].getOne}`;
7981
+ return E.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, (E == null ? void 0 : E.controlPlaneId) || "") : E.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, E != null && E.workspace ? `/${E.workspace}` : "")), F = F.replace(/{id}/gi, String(N)), F;
7982
7982
  }, { axiosInstance: I } = Fn(E == null ? void 0 : E.axiosRequestConfig), $ = () => {
7983
7983
  f.value ? (h.value && (v.value = h.value, g.value = h.value[0].id, k.value = void 0), k != null && k.value && (y.value = k.value)) : (Object.keys(y.value).length && (k.value = y.value), v != null && v.value && (h.value = v.value), v.value = s ? null : void 0);
7984
- }, K = async (P) => {
7985
- if (P) {
7986
- g.value = P, v.value = [{ id: P }], h.value = [{ id: P }], k.value = void 0;
7984
+ }, K = async (N) => {
7985
+ if (N) {
7986
+ g.value = N, v.value = [{ id: N }], h.value = [{ id: N }], k.value = void 0;
7987
7987
  try {
7988
- const F = await I.get(w(P));
7988
+ const F = await I.get(w(N));
7989
7989
  if (F.data.config) {
7990
7990
  const J = Object.assign(F.data, F.data.config);
7991
7991
  delete J.config, c.value = J;
@@ -7998,14 +7998,14 @@ const B0 = {
7998
7998
  return ze(() => f.value, () => {
7999
7999
  $();
8000
8000
  }), gi(() => {
8001
- var P;
8001
+ var N;
8002
8002
  if (a.defaultRedisConfigItem || v != null && v.value) {
8003
- const F = a.defaultRedisConfigItem || ((P = v == null ? void 0 : v.value) == null ? void 0 : P[0].id);
8003
+ const F = a.defaultRedisConfigItem || ((N = v == null ? void 0 : v.value) == null ? void 0 : N[0].id);
8004
8004
  K(F), f.value = !0;
8005
8005
  } else k != null && k.value && (y.value = k.value);
8006
- }), ze(() => x == null ? void 0 : x.value, (P) => {
8007
- f.value && (P && v.value ? v.value = s ? null : void 0 : P || h.value && (v.value = h.value, K(h.value[0].id)));
8008
- }), (P, F) => {
8006
+ }), ze(() => x == null ? void 0 : x.value, (N) => {
8007
+ f.value && (N && v.value ? v.value = s ? null : void 0 : N || h.value && (v.value = h.value, K(h.value[0].id)));
8008
+ }), (N, F) => {
8009
8009
  const J = oe("KRadio"), q = oe("KCard");
8010
8010
  return p.value ? St((_(), L(q, {
8011
8011
  key: 0,
@@ -8503,10 +8503,10 @@ var bd = new Mt("tag:yaml.org,2002:float", {
8503
8503
  ), Ed = new RegExp(
8504
8504
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
8505
8505
  );
8506
- function P1(e) {
8506
+ function N1(e) {
8507
8507
  return e === null ? !1 : Cd.exec(e) !== null || Ed.exec(e) !== null;
8508
8508
  }
8509
- function N1(e) {
8509
+ function P1(e) {
8510
8510
  var t, n, i, a, o, r, s, u = 0, d = null, p, c, f;
8511
8511
  if (t = Cd.exec(e), t === null && (t = Ed.exec(e)), t === null) throw new Error("Date resolve error");
8512
8512
  if (n = +t[1], i = +t[2] - 1, a = +t[3], !t[4])
@@ -8523,8 +8523,8 @@ function F1(e) {
8523
8523
  }
8524
8524
  var xd = new Mt("tag:yaml.org,2002:timestamp", {
8525
8525
  kind: "scalar",
8526
- resolve: P1,
8527
- construct: N1,
8526
+ resolve: N1,
8527
+ construct: P1,
8528
8528
  instanceOf: Date,
8529
8529
  represent: F1
8530
8530
  });
@@ -8638,7 +8638,7 @@ var Od = new Mt("tag:yaml.org,2002:set", {
8638
8638
  Sd,
8639
8639
  Od
8640
8640
  ]
8641
- }), Wn = Object.prototype.hasOwnProperty, to = 1, $d = 2, Pd = 3, no = 4, Wo = 1, J1 = 2, Dl = 3, X1 = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Z1 = /[\x85\u2028\u2029]/, Q1 = /[,\[\]\{\}]/, Nd = /^(?:!|!!|![a-z\-]+!)$/i, Fd = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
8641
+ }), Wn = Object.prototype.hasOwnProperty, to = 1, $d = 2, Nd = 3, no = 4, Wo = 1, J1 = 2, Dl = 3, X1 = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Z1 = /[\x85\u2028\u2029]/, Q1 = /[,\[\]\{\}]/, Pd = /^(?:!|!!|![a-z\-]+!)$/i, Fd = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
8642
8642
  function ql(e) {
8643
8643
  return Object.prototype.toString.call(e);
8644
8644
  }
@@ -8712,7 +8712,7 @@ var Ul = {
8712
8712
  },
8713
8713
  TAG: function(t, n, i) {
8714
8714
  var a, o;
8715
- i.length !== 2 && qe(t, "TAG directive accepts exactly two arguments"), a = i[0], o = i[1], Nd.test(a) || qe(t, "ill-formed tag handle (first argument) of the TAG directive"), Wn.call(t.tagMap, a) && qe(t, 'there is a previously declared suffix for "' + a + '" tag handle'), Fd.test(o) || qe(t, "ill-formed tag prefix (second argument) of the TAG directive");
8715
+ i.length !== 2 && qe(t, "TAG directive accepts exactly two arguments"), a = i[0], o = i[1], Pd.test(a) || qe(t, "ill-formed tag handle (first argument) of the TAG directive"), Wn.call(t.tagMap, a) && qe(t, 'there is a previously declared suffix for "' + a + '" tag handle'), Fd.test(o) || qe(t, "ill-formed tag prefix (second argument) of the TAG directive");
8716
8716
  try {
8717
8717
  o = decodeURIComponent(o);
8718
8718
  } catch {
@@ -8736,7 +8736,7 @@ function Bl(e, t, n, i) {
8736
8736
  for (At.isObject(n) || qe(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(n), r = 0, s = a.length; r < s; r += 1)
8737
8737
  o = a[r], Wn.call(t, o) || (Rd(t, o, n[o]), i[o] = !0);
8738
8738
  }
8739
- function Pi(e, t, n, i, a, o, r, s, u) {
8739
+ function Ni(e, t, n, i, a, o, r, s, u) {
8740
8740
  var d, p;
8741
8741
  if (Array.isArray(a))
8742
8742
  for (a = Array.prototype.slice.call(a), d = 0, p = a.length; d < p; d += 1)
@@ -8853,7 +8853,7 @@ function lC(e, t) {
8853
8853
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), k = e.input.charCodeAt(++e.position); k !== 0; ) {
8854
8854
  if (kt(e, !0, t), k = e.input.charCodeAt(e.position), k === p)
8855
8855
  return e.position++, e.tag = r, e.anchor = u, e.kind = m ? "mapping" : "sequence", e.result = s, !0;
8856
- n ? k === 44 && qe(e, "expected the node content, but found ','") : qe(e, "missed comma between flow collection entries"), h = y = v = null, c = f = !1, k === 63 && (d = e.input.charCodeAt(e.position + 1), zt(d) && (c = f = !0, e.position++, kt(e, !0, t))), i = e.line, a = e.lineStart, o = e.position, Di(e, t, to, !1, !0), h = e.tag, y = e.result, kt(e, !0, t), k = e.input.charCodeAt(e.position), (f || e.line === i) && k === 58 && (c = !0, k = e.input.charCodeAt(++e.position), kt(e, !0, t), Di(e, t, to, !1, !0), v = e.result), m ? Pi(e, s, g, h, y, v, i, a, o) : c ? s.push(Pi(e, null, g, h, y, v, i, a, o)) : s.push(y), kt(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
8856
+ n ? k === 44 && qe(e, "expected the node content, but found ','") : qe(e, "missed comma between flow collection entries"), h = y = v = null, c = f = !1, k === 63 && (d = e.input.charCodeAt(e.position + 1), zt(d) && (c = f = !0, e.position++, kt(e, !0, t))), i = e.line, a = e.lineStart, o = e.position, Di(e, t, to, !1, !0), h = e.tag, y = e.result, kt(e, !0, t), k = e.input.charCodeAt(e.position), (f || e.line === i) && k === 58 && (c = !0, k = e.input.charCodeAt(++e.position), kt(e, !0, t), Di(e, t, to, !1, !0), v = e.result), m ? Ni(e, s, g, h, y, v, i, a, o) : c ? s.push(Ni(e, null, g, h, y, v, i, a, o)) : s.push(y), kt(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
8857
8857
  }
8858
8858
  qe(e, "unexpected end of the stream within a flow collection");
8859
8859
  }
@@ -8912,7 +8912,7 @@ function Gl(e, t) {
8912
8912
  o.push(null), u = e.input.charCodeAt(e.position);
8913
8913
  continue;
8914
8914
  }
8915
- if (n = e.line, Di(e, t, Pd, !1, !0), o.push(e.result), kt(e, !0, -1), u = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && u !== 0)
8915
+ if (n = e.line, Di(e, t, Nd, !1, !0), o.push(e.result), kt(e, !0, -1), u = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && u !== 0)
8916
8916
  qe(e, "bad indentation of a sequence entry");
8917
8917
  else if (e.lineIndent < t)
8918
8918
  break;
@@ -8924,7 +8924,7 @@ function cC(e, t, n) {
8924
8924
  if (e.firstTabInLine !== -1) return !1;
8925
8925
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), k = e.input.charCodeAt(e.position); k !== 0; ) {
8926
8926
  if (!h && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, qe(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && zt(i))
8927
- k === 63 ? (h && (Pi(e, c, f, m, g, null, r, s, u), m = g = y = null), v = !0, h = !0, a = !0) : h ? (h = !1, a = !0) : qe(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = i;
8927
+ k === 63 ? (h && (Ni(e, c, f, m, g, null, r, s, u), m = g = y = null), v = !0, h = !0, a = !0) : h ? (h = !1, a = !0) : qe(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = i;
8928
8928
  else {
8929
8929
  if (r = e.line, s = e.lineStart, u = e.position, !Di(e, n, $d, !1, !0))
8930
8930
  break;
@@ -8932,7 +8932,7 @@ function cC(e, t, n) {
8932
8932
  for (k = e.input.charCodeAt(e.position); ri(k); )
8933
8933
  k = e.input.charCodeAt(++e.position);
8934
8934
  if (k === 58)
8935
- k = e.input.charCodeAt(++e.position), zt(k) || qe(e, "a whitespace character is expected after the key-value separator within a block mapping"), h && (Pi(e, c, f, m, g, null, r, s, u), m = g = y = null), v = !0, h = !1, a = !1, m = e.tag, g = e.result;
8935
+ k = e.input.charCodeAt(++e.position), zt(k) || qe(e, "a whitespace character is expected after the key-value separator within a block mapping"), h && (Ni(e, c, f, m, g, null, r, s, u), m = g = y = null), v = !0, h = !1, a = !1, m = e.tag, g = e.result;
8936
8936
  else if (v)
8937
8937
  qe(e, "can not read an implicit mapping pair; a colon is missed");
8938
8938
  else
@@ -8942,12 +8942,12 @@ function cC(e, t, n) {
8942
8942
  else
8943
8943
  return e.tag = d, e.anchor = p, !0;
8944
8944
  }
8945
- if ((e.line === o || e.lineIndent > t) && (h && (r = e.line, s = e.lineStart, u = e.position), Di(e, t, no, !0, a) && (h ? g = e.result : y = e.result), h || (Pi(e, c, f, m, g, y, r, s, u), m = g = y = null), kt(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && k !== 0)
8945
+ if ((e.line === o || e.lineIndent > t) && (h && (r = e.line, s = e.lineStart, u = e.position), Di(e, t, no, !0, a) && (h ? g = e.result : y = e.result), h || (Ni(e, c, f, m, g, y, r, s, u), m = g = y = null), kt(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && k !== 0)
8946
8946
  qe(e, "bad indentation of a mapping entry");
8947
8947
  else if (e.lineIndent < t)
8948
8948
  break;
8949
8949
  }
8950
- return h && Pi(e, c, f, m, g, null, r, s, u), v && (e.tag = d, e.anchor = p, e.kind = "mapping", e.result = c), v;
8950
+ return h && Ni(e, c, f, m, g, null, r, s, u), v && (e.tag = d, e.anchor = p, e.kind = "mapping", e.result = c), v;
8951
8951
  }
8952
8952
  function dC(e) {
8953
8953
  var t, n = !1, i = !1, a, o, r;
@@ -8959,7 +8959,7 @@ function dC(e) {
8959
8959
  e.position < e.length ? (o = e.input.slice(t, e.position), r = e.input.charCodeAt(++e.position)) : qe(e, "unexpected end of the stream within a verbatim tag");
8960
8960
  } else {
8961
8961
  for (; r !== 0 && !zt(r); )
8962
- r === 33 && (i ? qe(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Nd.test(a) || qe(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), r = e.input.charCodeAt(++e.position);
8962
+ r === 33 && (i ? qe(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Pd.test(a) || qe(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), r = e.input.charCodeAt(++e.position);
8963
8963
  o = e.input.slice(t, e.position), Q1.test(o) && qe(e, "tag suffix cannot contain flow indicator characters");
8964
8964
  }
8965
8965
  o && !Fd.test(o) && qe(e, "tag name cannot contain such characters: " + o);
@@ -8986,7 +8986,7 @@ function pC(e) {
8986
8986
  }
8987
8987
  function Di(e, t, n, i, a) {
8988
8988
  var o, r, s, u = 1, d = !1, p = !1, c, f, m, g, y, h;
8989
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = s = no === n || Pd === n, i && kt(e, !0, -1) && (d = !0, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)), u === 1)
8989
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = s = no === n || Nd === n, i && kt(e, !0, -1) && (d = !0, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)), u === 1)
8990
8990
  for (; dC(e) || fC(e); )
8991
8991
  kt(e, !0, -1) ? (d = !0, s = o, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)) : s = !1;
8992
8992
  if (s && (s = d || a), (u === 1 || no === n) && (to === n || $d === n ? y = t : y = t + 1, h = e.position - e.lineStart, u === 1 ? s && (Gl(e, h) || cC(e, h, y)) || lC(e, y) ? p = !0 : (r && uC(e, y) || rC(e, y) || sC(e, y) ? p = !0 : pC(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && qe(e, "alias node should not have any properties")) : oC(e, y, to === n) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : u === 0 && (p = s && Gl(e, h))), e.tag === null)
@@ -9069,7 +9069,7 @@ function hC(e, t) {
9069
9069
  var vC = gC, yC = hC, Dd = {
9070
9070
  loadAll: vC,
9071
9071
  load: yC
9072
- }, qd = Object.prototype.toString, Vd = Object.prototype.hasOwnProperty, Cs = 65279, _C = 9, _a = 10, bC = 13, wC = 32, kC = 33, CC = 34, Ir = 35, EC = 37, xC = 38, AC = 39, IC = 42, Ud = 44, TC = 45, ao = 58, SC = 61, OC = 62, $C = 63, PC = 64, Bd = 91, Gd = 93, NC = 96, zd = 123, FC = 124, Hd = 125, Dt = {};
9072
+ }, qd = Object.prototype.toString, Vd = Object.prototype.hasOwnProperty, Cs = 65279, _C = 9, _a = 10, bC = 13, wC = 32, kC = 33, CC = 34, Ir = 35, EC = 37, xC = 38, AC = 39, IC = 42, Ud = 44, TC = 45, ao = 58, SC = 61, OC = 62, $C = 63, NC = 64, Bd = 91, Gd = 93, PC = 96, zd = 123, FC = 124, Hd = 125, Dt = {};
9073
9073
  Dt[0] = "\\0";
9074
9074
  Dt[7] = "\\a";
9075
9075
  Dt[8] = "\\b";
@@ -9164,7 +9164,7 @@ function Wl(e, t, n) {
9164
9164
  );
9165
9165
  }
9166
9166
  function VC(e) {
9167
- return wa(e) && e !== Cs && !oo(e) && e !== TC && e !== $C && e !== ao && e !== Ud && e !== Bd && e !== Gd && e !== zd && e !== Hd && e !== Ir && e !== xC && e !== IC && e !== kC && e !== FC && e !== SC && e !== OC && e !== AC && e !== CC && e !== EC && e !== PC && e !== NC;
9167
+ return wa(e) && e !== Cs && !oo(e) && e !== TC && e !== $C && e !== ao && e !== Ud && e !== Bd && e !== Gd && e !== zd && e !== Hd && e !== Ir && e !== xC && e !== IC && e !== kC && e !== FC && e !== SC && e !== OC && e !== AC && e !== CC && e !== EC && e !== NC && e !== PC;
9168
9168
  }
9169
9169
  function UC(e) {
9170
9170
  return !oo(e) && e !== ao;
@@ -9276,19 +9276,19 @@ function HC(e) {
9276
9276
  function WC(e, t, n) {
9277
9277
  var i = "", a = e.tag, o, r, s;
9278
9278
  for (o = 0, r = n.length; o < r; o += 1)
9279
- s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (Nn(e, t, s, !1, !1) || typeof s > "u" && Nn(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
9279
+ s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (Pn(e, t, s, !1, !1) || typeof s > "u" && Pn(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
9280
9280
  e.tag = a, e.dump = "[" + i + "]";
9281
9281
  }
9282
9282
  function Zl(e, t, n, i) {
9283
9283
  var a = "", o = e.tag, r, s, u;
9284
9284
  for (r = 0, s = n.length; r < s; r += 1)
9285
- u = n[r], e.replacer && (u = e.replacer.call(n, String(r), u)), (Nn(e, t + 1, u, !0, !0, !1, !0) || typeof u > "u" && Nn(e, t + 1, null, !0, !0, !1, !0)) && ((!i || a !== "") && (a += Tr(e, t)), e.dump && _a === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
9285
+ u = n[r], e.replacer && (u = e.replacer.call(n, String(r), u)), (Pn(e, t + 1, u, !0, !0, !1, !0) || typeof u > "u" && Pn(e, t + 1, null, !0, !0, !1, !0)) && ((!i || a !== "") && (a += Tr(e, t)), e.dump && _a === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
9286
9286
  e.tag = o, e.dump = a || "[]";
9287
9287
  }
9288
9288
  function YC(e, t, n) {
9289
9289
  var i = "", a = e.tag, o = Object.keys(n), r, s, u, d, p;
9290
9290
  for (r = 0, s = o.length; r < s; r += 1)
9291
- p = "", i !== "" && (p += ", "), e.condenseFlow && (p += '"'), u = o[r], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), Nn(e, t, u, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Nn(e, t, d, !1, !1) && (p += e.dump, i += p));
9291
+ p = "", i !== "" && (p += ", "), e.condenseFlow && (p += '"'), u = o[r], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), Pn(e, t, u, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Pn(e, t, d, !1, !1) && (p += e.dump, i += p));
9292
9292
  e.tag = a, e.dump = "{" + i + "}";
9293
9293
  }
9294
9294
  function JC(e, t, n, i) {
@@ -9300,7 +9300,7 @@ function JC(e, t, n, i) {
9300
9300
  else if (e.sortKeys)
9301
9301
  throw new Vt("sortKeys must be a boolean or a function");
9302
9302
  for (s = 0, u = r.length; s < u; s += 1)
9303
- f = "", (!i || a !== "") && (f += Tr(e, t)), d = r[s], p = n[d], e.replacer && (p = e.replacer.call(n, d, p)), Nn(e, t + 1, d, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && _a === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, c && (f += Tr(e, t)), Nn(e, t + 1, p, !0, c) && (e.dump && _a === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, a += f));
9303
+ f = "", (!i || a !== "") && (f += Tr(e, t)), d = r[s], p = n[d], e.replacer && (p = e.replacer.call(n, d, p)), Pn(e, t + 1, d, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && _a === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, c && (f += Tr(e, t)), Pn(e, t + 1, p, !0, c) && (e.dump && _a === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, a += f));
9304
9304
  e.tag = o, e.dump = a || "{}";
9305
9305
  }
9306
9306
  function Ql(e, t, n) {
@@ -9320,7 +9320,7 @@ function Ql(e, t, n) {
9320
9320
  }
9321
9321
  return !1;
9322
9322
  }
9323
- function Nn(e, t, n, i, a, o, r) {
9323
+ function Pn(e, t, n, i, a, o, r) {
9324
9324
  e.tag = null, e.dump = n, Ql(e, n, !1) || Ql(e, n, !0);
9325
9325
  var s = qd.call(e.dump), u = i, d;
9326
9326
  i && (i = e.flowLevel < 0 || e.flowLevel > t);
@@ -9369,7 +9369,7 @@ function ZC(e, t) {
9369
9369
  var n = new DC(t);
9370
9370
  n.noRefs || XC(e, n);
9371
9371
  var i = e;
9372
- return n.replacer && (i = n.replacer.call({ "": i }, "", i)), Nn(n, 0, i, !0, !0) ? n.dump + `
9372
+ return n.replacer && (i = n.replacer.call({ "": i }, "", i)), Pn(n, 0, i, !0, !0) ? n.dump + `
9373
9373
  ` : "";
9374
9374
  }
9375
9375
  var QC = ZC, eE = {
@@ -9705,14 +9705,14 @@ const mE = {
9705
9705
  $ = !1;
9706
9706
  });
9707
9707
  }
9708
- function N(U) {
9709
- if ($ || P(U), e.editorMode === "code") {
9708
+ function P(U) {
9709
+ if ($ || N(U), e.editorMode === "code") {
9710
9710
  const ee = E.value.some((ne) => F(U[ne]));
9711
9711
  ee !== w.value && (w.value = ee);
9712
9712
  }
9713
9713
  a.onFormChange(U, t);
9714
9714
  }
9715
- function P(U) {
9715
+ function N(U) {
9716
9716
  E.value.forEach((ee) => {
9717
9717
  const ne = U[ee];
9718
9718
  Qa(ne, "id") && ne.id != null ? b.value[ee] = ne : b.value[ee] = null;
@@ -9746,7 +9746,7 @@ const mE = {
9746
9746
  "render-rules": e.renderRules,
9747
9747
  schema: h.value,
9748
9748
  tag: "div",
9749
- onChange: N
9749
+ onChange: P
9750
9750
  }, {
9751
9751
  [l(Hi)]: A(() => [
9752
9752
  C(Hn, {
@@ -9764,7 +9764,7 @@ const mE = {
9764
9764
  ]),
9765
9765
  default: A(() => [
9766
9766
  e.editorMode === "form" ? (_(), G(Fe, { key: 0 }, [
9767
- C(l(Na), {
9767
+ C(l(Pa), {
9768
9768
  "data-testid": "form-section-plugin-scope",
9769
9769
  description: e.generalInfoDescription ?? l(i)("plugins.form.sections.plugin_scope.description"),
9770
9770
  step: 1,
@@ -9805,7 +9805,7 @@ const mE = {
9805
9805
  _: 1
9806
9806
  }, 16)),
9807
9807
  f.value ? St((_(), G("div", kE, [
9808
- (_(!0), G(Fe, null, Je(m.value, (O) => (_(), L(P0, {
9808
+ (_(!0), G(Fe, null, Je(m.value, (O) => (_(), L(N0, {
9809
9809
  key: O.name,
9810
9810
  disabled: O.disabled,
9811
9811
  "disabled-tooltip": O.disabledTooltip,
@@ -9846,7 +9846,7 @@ const mE = {
9846
9846
  key: "2"
9847
9847
  } : void 0
9848
9848
  ]), 1032, ["description", "title"]),
9849
- C(l(Na), {
9849
+ C(l(Pa), {
9850
9850
  "data-testid": "form-section-plugin-config",
9851
9851
  description: e.pluginConfigDescription ?? l(i)("plugins.form.sections.plugin_config.description"),
9852
9852
  step: 2,
@@ -9879,7 +9879,7 @@ const mE = {
9879
9879
  key: "2"
9880
9880
  } : void 0
9881
9881
  ]), 1032, ["description", "title"]),
9882
- C(l(Na), {
9882
+ C(l(Pa), {
9883
9883
  "data-testid": "form-section-general-info",
9884
9884
  description: l(i)("plugins.form.sections.plugin_general_info.description"),
9885
9885
  step: 3,
@@ -9899,7 +9899,7 @@ const mE = {
9899
9899
  name: "instance_name",
9900
9900
  placeholder: l(i)("plugins.form.fields.instance_name.placeholder")
9901
9901
  }, null, 8, ["label", "placeholder"])) : ue("", !0),
9902
- v.value.has("tags") ? (_(), L(Po, {
9902
+ v.value.has("tags") ? (_(), L(No, {
9903
9903
  key: 2,
9904
9904
  help: l(i)("plugins.form.fields.tags.help"),
9905
9905
  name: "tags",
@@ -9925,7 +9925,7 @@ const mE = {
9925
9925
  _: 1
9926
9926
  }, 8, ["description", "title"])
9927
9927
  ], 64)) : ue("", !0),
9928
- e.editorMode === "code" ? (_(), L(l(Na), {
9928
+ e.editorMode === "code" ? (_(), L(l(Pa), {
9929
9929
  key: 1,
9930
9930
  description: l(i)("plugins.form.sections.code_mode.description"),
9931
9931
  title: l(i)("plugins.form.sections.code_mode.title")
@@ -10212,7 +10212,7 @@ const ra = /* @__PURE__ */ Symbol(), AE = /* @__PURE__ */ de({
10212
10212
  _: 1
10213
10213
  }, 16));
10214
10214
  }
10215
- }), OE = /* @__PURE__ */ Te(SE, [["__scopeId", "data-v-957a190f"]]), $E = { key: 1 }, PE = ["innerHTML"], NE = { class: "horizontal-container" }, FE = /* @__PURE__ */ de({
10215
+ }), OE = /* @__PURE__ */ Te(SE, [["__scopeId", "data-v-957a190f"]]), $E = { key: 1 }, NE = ["innerHTML"], PE = { class: "horizontal-container" }, FE = /* @__PURE__ */ de({
10216
10216
  __name: "RadioField",
10217
10217
  props: {
10218
10218
  labelAttributes: {},
@@ -10245,12 +10245,12 @@ const ra = /* @__PURE__ */ Symbol(), AE = /* @__PURE__ */ de({
10245
10245
  fn: A(() => [
10246
10246
  D("div", {
10247
10247
  innerHTML: l(r).labelAttributes.info
10248
- }, null, 8, PE)
10248
+ }, null, 8, NE)
10249
10249
  ]),
10250
10250
  key: "0"
10251
10251
  } : void 0
10252
10252
  ]), 1040),
10253
- D("div", NE, [
10253
+ D("div", PE, [
10254
10254
  (_(!0), G(Fe, null, Je(s.value, (g) => (_(), L(l(dr), {
10255
10255
  key: g.value,
10256
10256
  "model-value": l(o).value.value,
@@ -10275,7 +10275,7 @@ const ra = /* @__PURE__ */ Symbol(), AE = /* @__PURE__ */ de({
10275
10275
  __name: "RequestLimitsForm",
10276
10276
  setup(e) {
10277
10277
  var h;
10278
- const { t } = $t("en-us", Pt), { formData: n, getSelectItems: i, getSchema: a } = st(), o = T(() => {
10278
+ const { t } = $t("en-us", Nt), { formData: n, getSelectItems: i, getSchema: a } = st(), o = T(() => {
10279
10279
  var k, x;
10280
10280
  const v = (x = (k = n.config) == null ? void 0 : k.limit) == null ? void 0 : x.map((E, b) => {
10281
10281
  var w, I;
@@ -10474,7 +10474,7 @@ const ra = /* @__PURE__ */ Symbol(), AE = /* @__PURE__ */ de({
10474
10474
  }, HE = /* @__PURE__ */ de({
10475
10475
  __name: "ErrorMessageForm",
10476
10476
  setup(e) {
10477
- const { t } = $t("en-us", Pt);
10477
+ const { t } = $t("en-us", Nt);
10478
10478
  return (n, i) => {
10479
10479
  const a = oe("KLabel");
10480
10480
  return _(), G("div", null, [
@@ -10819,7 +10819,7 @@ const ix = {
10819
10819
  },
10820
10820
  emits: ["change", "error"],
10821
10821
  setup(e, { expose: t, emit: n }) {
10822
- const { t: i } = $t("en-us", Pt), { formData: a, setValue: o } = st(), r = n, { getMessageFromError: s } = hi(), u = nn(null);
10822
+ const { t: i } = $t("en-us", Nt), { formData: a, setValue: o } = st(), r = n, { getMessageFromError: s } = hi(), u = nn(null);
10823
10823
  function d(b) {
10824
10824
  return vn.dump(vo(b), {
10825
10825
  schema: Vn,
@@ -10848,13 +10848,13 @@ const ix = {
10848
10848
  return;
10849
10849
  Wa.editor.setModelMarkers(w, Jo, []), o(I), r("change", I);
10850
10850
  } catch (I) {
10851
- const { message: $, mark: K } = I, { line: N, column: P } = K || { line: 0, column: 0 }, F = $.split(`
10851
+ const { message: $, mark: K } = I, { line: P, column: N } = K || { line: 0, column: 0 }, F = $.split(`
10852
10852
  `)[0], J = [
10853
10853
  {
10854
- startLineNumber: N + 1,
10855
- startColumn: P + 1,
10856
- endLineNumber: N + 1,
10857
- endColumn: P + 2,
10854
+ startLineNumber: P + 1,
10855
+ startColumn: N + 1,
10856
+ endLineNumber: P + 1,
10857
+ endColumn: N + 2,
10858
10858
  message: F,
10859
10859
  severity: Wa.MarkerSeverity.Error,
10860
10860
  source: Jo
@@ -10866,10 +10866,10 @@ const ix = {
10866
10866
  const $ = b.getModel();
10867
10867
  if (!$) return;
10868
10868
  const K = $.getValueInRange(I.range);
10869
- for (const N of rx) {
10870
- const P = N.extract(K);
10871
- if (P) {
10872
- y.value = P, h.value = N.name, g.value = !0;
10869
+ for (const P of rx) {
10870
+ const N = P.extract(K);
10871
+ if (N) {
10872
+ y.value = N, h.value = P.name, g.value = !0;
10873
10873
  return;
10874
10874
  }
10875
10875
  }
@@ -11063,7 +11063,7 @@ const ix = {
11063
11063
  response: {
11064
11064
  icon: Fa
11065
11065
  }
11066
- }, { t: xs } = $t("en-us", Pt);
11066
+ }, { t: xs } = $t("en-us", Nt);
11067
11067
  function Ut(e) {
11068
11068
  return xs(`plugins.free-form.datakit.flow_editor.node_types.${e}.description`);
11069
11069
  }
@@ -11287,11 +11287,11 @@ const As = {
11287
11287
  ...Ft.vault,
11288
11288
  hidden: !0
11289
11289
  }
11290
- }, Is = Object.keys(Lo), Ts = (e) => Is.includes(e), fx = (e) => [...Is, ...tf].includes(e), Bt = (e) => Is.includes(e), Pr = (e) => Bt(e.type), Ss = (e) => !!(e != null && e.startsWith("node:")), Qi = (e) => Object.prototype.hasOwnProperty.call(e, "ownerId");
11290
+ }, Is = Object.keys(Lo), Ts = (e) => Is.includes(e), fx = (e) => [...Is, ...tf].includes(e), Bt = (e) => Is.includes(e), Nr = (e) => Bt(e.type), Ss = (e) => !!(e != null && e.startsWith("node:")), Qi = (e) => Object.prototype.hasOwnProperty.call(e, "ownerId");
11291
11291
  function Tn(e) {
11292
11292
  return ci(e);
11293
11293
  }
11294
- function Nr(e, t) {
11294
+ function Pr(e, t) {
11295
11295
  if (e.length !== t.length) return !1;
11296
11296
  if (e.length === 0) return !0;
11297
11297
  const n = new Set(t);
@@ -11423,87 +11423,87 @@ function Zo(e, t) {
11423
11423
  }
11424
11424
  function vx({ state: e, groupMapById: t, getNodeById: n, history: i }) {
11425
11425
  const a = T(() => {
11426
- const P = /* @__PURE__ */ new Map();
11426
+ const N = /* @__PURE__ */ new Map();
11427
11427
  for (const F of e.value.groups)
11428
11428
  for (const J of F.memberIds)
11429
- P.set(J, { ownerId: F.ownerId, branch: F.branch });
11430
- return P;
11429
+ N.set(J, { ownerId: F.ownerId, branch: F.branch });
11430
+ return N;
11431
11431
  }), o = T(() => {
11432
- const P = /* @__PURE__ */ new Map();
11432
+ const N = /* @__PURE__ */ new Map();
11433
11433
  for (const F of e.value.groups)
11434
11434
  for (const J of F.memberIds)
11435
- P.set(J, F);
11436
- return P;
11435
+ N.set(J, F);
11436
+ return N;
11437
11437
  }), r = T(() => {
11438
- const P = /* @__PURE__ */ new Map();
11438
+ const N = /* @__PURE__ */ new Map();
11439
11439
  for (const F of e.value.groups)
11440
- P.has(F.ownerId) || P.set(F.ownerId, []), P.get(F.ownerId).push(F);
11441
- return P;
11440
+ N.has(F.ownerId) || N.set(F.ownerId, []), N.get(F.ownerId).push(F);
11441
+ return N;
11442
11442
  }), s = T(() => rf(e.value.edges, e.value.groups)), u = T(() => so(s.value));
11443
- function d(P, F) {
11444
- return P ? Ca(P.type).includes(F) : !1;
11443
+ function d(N, F) {
11444
+ return N ? Ca(N.type).includes(F) : !1;
11445
11445
  }
11446
- function p(P, F) {
11447
- if (F === P.id) return !1;
11446
+ function p(N, F) {
11447
+ if (F === N.id) return !1;
11448
11448
  const J = n(F);
11449
- return !(!J || Bt(J.type) || J.phase !== P.phase);
11449
+ return !(!J || Bt(J.type) || J.phase !== N.phase);
11450
11450
  }
11451
- function c(P, F) {
11451
+ function c(N, F) {
11452
11452
  const J = [], q = /* @__PURE__ */ new Set();
11453
11453
  for (const U of F)
11454
- q.has(U) || (q.add(U), p(P, U) && J.push(U));
11454
+ q.has(U) || (q.add(U), p(N, U) && J.push(U));
11455
11455
  return J;
11456
11456
  }
11457
- function f(P, F, J) {
11458
- const q = n(P);
11457
+ function f(N, F, J) {
11458
+ const q = n(N);
11459
11459
  return d(q, F) ? c(q, J) : [];
11460
11460
  }
11461
- function m(P, F, J) {
11462
- const q = Fr(P.id, F), U = t.value.get(q);
11463
- J.length > 0 ? U ? (U.phase !== P.phase && (U.phase = P.phase), Nr(U.memberIds, J) || (U.position = void 0, U.dimensions = void 0, U.memberIds = [...J])) : e.value.groups.push(of(P.id, F, P.phase, J)) : U && (e.value.groups = e.value.groups.filter((ee) => ee.id !== q));
11461
+ function m(N, F, J) {
11462
+ const q = Fr(N.id, F), U = t.value.get(q);
11463
+ J.length > 0 ? U ? (U.phase !== N.phase && (U.phase = N.phase), Pr(U.memberIds, J) || (U.position = void 0, U.dimensions = void 0, U.memberIds = [...J])) : e.value.groups.push(of(N.id, F, N.phase, J)) : U && (e.value.groups = e.value.groups.filter((ee) => ee.id !== q));
11464
11464
  }
11465
- function g(P, F, J, q = {}) {
11466
- const U = n(P);
11465
+ function g(N, F, J, q = {}) {
11466
+ const U = n(N);
11467
11467
  if (!d(U, F)) return !1;
11468
11468
  const ee = c(U, J), ne = Zo(U, F);
11469
- if (Nr(ne, ee)) return !1;
11469
+ if (Pr(ne, ee)) return !1;
11470
11470
  const V = U.config ?? (U.config = {});
11471
11471
  return ee.length > 0 ? V[F] = [...ee] : (delete V[F], Object.keys(V).length === 0 && delete U.config), m(U, F, ee), (q.commit ?? !0) && i.commit(q.tag), !0;
11472
11472
  }
11473
- function y(P, F = {}) {
11474
- const J = e.value.groups.filter((q) => q.ownerId !== P);
11473
+ function y(N, F = {}) {
11474
+ const J = e.value.groups.filter((q) => q.ownerId !== N);
11475
11475
  return J.length === e.value.groups.length ? !1 : (e.value.groups = J, (F.commit ?? !0) && i.commit(F.tag), !0);
11476
11476
  }
11477
- function h(P, F) {
11478
- const J = t.value.get(Fr(P, F));
11477
+ function h(N, F) {
11478
+ const J = t.value.get(Fr(N, F));
11479
11479
  if (J)
11480
11480
  return [...J.memberIds];
11481
- const q = n(P);
11481
+ const q = n(N);
11482
11482
  return q ? Zo(q, F) : [];
11483
11483
  }
11484
- function v(P) {
11485
- return a.value.get(P);
11484
+ function v(N) {
11485
+ return a.value.get(N);
11486
11486
  }
11487
- function k(P) {
11487
+ function k(N) {
11488
11488
  const F = [];
11489
- let J = o.value.get(P);
11489
+ let J = o.value.get(N);
11490
11490
  for (; J; )
11491
11491
  F.push(J.id), J = o.value.get(J.ownerId);
11492
11492
  return F;
11493
11493
  }
11494
- function x(P, F) {
11494
+ function x(N, F) {
11495
11495
  const J = k(F);
11496
11496
  if (J.length === 0) return !1;
11497
- const q = new Set(k(P));
11497
+ const q = new Set(k(N));
11498
11498
  return q.size === 0 ? !0 : J.some((U) => !q.has(U));
11499
11499
  }
11500
- function E(P, F) {
11501
- if (P === F) return !0;
11500
+ function E(N, F) {
11501
+ if (N === F) return !0;
11502
11502
  const J = /* @__PURE__ */ new Set(), q = [F];
11503
11503
  for (; q.length > 0; ) {
11504
11504
  const U = q.pop();
11505
11505
  if (J.has(U)) continue;
11506
- if (J.add(U), U === P) return !0;
11506
+ if (J.add(U), U === N) return !0;
11507
11507
  const ee = u.value.get(U);
11508
11508
  if (ee)
11509
11509
  for (const ne of ee)
@@ -11511,39 +11511,39 @@ function vx({ state: e, groupMapById: t, getNodeById: n, history: i }) {
11511
11511
  }
11512
11512
  return !1;
11513
11513
  }
11514
- function b(P, F, J) {
11515
- const q = n(P);
11516
- return !(!d(q, F) || !p(q, J) || E(P, J));
11514
+ function b(N, F, J) {
11515
+ const q = n(N);
11516
+ return !(!d(q, F) || !p(q, J) || E(N, J));
11517
11517
  }
11518
- function w(P, F, J, q = {}) {
11519
- const U = n(P);
11520
- if (!U || !b(P, F, J)) return !1;
11518
+ function w(N, F, J, q = {}) {
11519
+ const U = n(N);
11520
+ if (!U || !b(N, F, J)) return !1;
11521
11521
  const ee = Zo(U, F);
11522
11522
  if (ee.includes(J)) return !1;
11523
11523
  I(J, { commit: !1 });
11524
11524
  const ne = [...ee, J];
11525
- return g(P, F, ne, { commit: !1 }) ? ((q.commit ?? !0) && i.commit(q.tag), !0) : !1;
11525
+ return g(N, F, ne, { commit: !1 }) ? ((q.commit ?? !0) && i.commit(q.tag), !0) : !1;
11526
11526
  }
11527
- function I(P, F = {}) {
11528
- const J = v(P);
11527
+ function I(N, F = {}) {
11528
+ const J = v(N);
11529
11529
  if (!J) return !1;
11530
- const q = h(J.ownerId, J.branch), U = q.filter((ee) => ee !== P);
11530
+ const q = h(J.ownerId, J.branch), U = q.filter((ee) => ee !== N);
11531
11531
  return U.length === q.length ? !1 : g(J.ownerId, J.branch, U, F);
11532
11532
  }
11533
- function $(P) {
11533
+ function $(N) {
11534
11534
  let F = 0;
11535
11535
  const J = /* @__PURE__ */ new Set();
11536
- let q = o.value.get(P);
11536
+ let q = o.value.get(N);
11537
11537
  for (; q && !J.has(q.id); )
11538
11538
  F += 1, J.add(q.id), q = o.value.get(q.ownerId);
11539
11539
  return F;
11540
11540
  }
11541
- function K(P) {
11542
- const F = t.value.get(P);
11541
+ function K(N) {
11542
+ const F = t.value.get(N);
11543
11543
  return F ? $(F.ownerId) : 0;
11544
11544
  }
11545
- function N(P) {
11546
- return P ? t.value.has(P) : !1;
11545
+ function P(N) {
11546
+ return N ? t.value.has(N) : !1;
11547
11547
  }
11548
11548
  return {
11549
11549
  memberGroupMap: o,
@@ -11558,7 +11558,7 @@ function vx({ state: e, groupMapById: t, getNodeById: n, history: i }) {
11558
11558
  clear: y,
11559
11559
  getNodeDepth: $,
11560
11560
  getGroupDepth: K,
11561
- isGroupId: N,
11561
+ isGroupId: P,
11562
11562
  isEdgeEnteringGroup: x,
11563
11563
  canAddMember: b
11564
11564
  };
@@ -11645,10 +11645,10 @@ function au(e, t) {
11645
11645
  ), s = [], u = [], d = /* @__PURE__ */ new Map(), p = [], c = [], f = /* @__PURE__ */ new Map(), m = (I) => {
11646
11646
  const $ = /* @__PURE__ */ new Set(), K = [...I];
11647
11647
  for (; K.length > 0; ) {
11648
- const N = K.shift();
11649
- if (!$.has(N) && ($.add(N), Ts(N) || (d.get(N).phase = "request"), !!f.has(N)))
11650
- for (const P of f.get(N))
11651
- $.has(P) || K.push(P);
11648
+ const P = K.shift();
11649
+ if (!$.has(P) && ($.add(P), Ts(P) || (d.get(P).phase = "request"), !!f.has(P)))
11650
+ for (const N of f.get(P))
11651
+ $.has(N) || K.push(N);
11652
11652
  }
11653
11653
  };
11654
11654
  let g = !1;
@@ -11669,27 +11669,27 @@ function au(e, t) {
11669
11669
  continue;
11670
11670
  const K = I.config;
11671
11671
  if (K)
11672
- for (const N of $) {
11673
- const P = K[N];
11674
- if (!Array.isArray(P)) {
11675
- r.has(Ya(I.name, N)) && (g = !0);
11672
+ for (const P of $) {
11673
+ const N = K[P];
11674
+ if (!Array.isArray(N)) {
11675
+ r.has(Ya(I.name, P)) && (g = !0);
11676
11676
  continue;
11677
11677
  }
11678
11678
  const F = [];
11679
- for (const J of P) {
11679
+ for (const J of N) {
11680
11680
  if (typeof J != "string")
11681
11681
  continue;
11682
11682
  const q = d.get(J);
11683
11683
  q && !Bt(q.type) && F.push(q.id);
11684
11684
  }
11685
11685
  if (F.length) {
11686
- K[N] = F;
11687
- const J = Ya(I.name, N), q = r.get(J), U = q ? {
11686
+ K[P] = F;
11687
+ const J = Ya(I.name, P), q = r.get(J), U = q ? {
11688
11688
  position: Tn(q.position)
11689
- } : void 0, ee = of(I.id, N, I.phase, F, U);
11689
+ } : void 0, ee = of(I.id, P, I.phase, F, U);
11690
11690
  p.push(ee), !q && !g && (g = !0);
11691
11691
  } else
11692
- delete K[N], r.has(Ya(I.name, N)) && (g = !0);
11692
+ delete K[P], r.has(Ya(I.name, P)) && (g = !0);
11693
11693
  }
11694
11694
  }
11695
11695
  for (const I of Wi)
@@ -11964,14 +11964,14 @@ const [lf, Tx] = Hr(
11964
11964
  )
11965
11965
  ), E = T(
11966
11966
  () => new Set(i.value.nodes.map((j) => j.name))
11967
- ), b = vx({ state: i, groupMapById: x, getNodeById: P, history: u }), {
11967
+ ), b = vx({ state: i, groupMapById: x, getNodeById: N, history: u }), {
11968
11968
  canonicalizeConnection: w,
11969
11969
  validateConnection: I,
11970
11970
  validateGraph: $,
11971
11971
  isValidConnection: K,
11972
- isValidVueFlowConnection: N
11972
+ isValidVueFlowConnection: P
11973
11973
  } = Ix(i);
11974
- function P(j) {
11974
+ function N(j) {
11975
11975
  return g.value.get(j);
11976
11976
  }
11977
11977
  function F(j) {
@@ -11996,7 +11996,7 @@ const [lf, Tx] = Hr(
11996
11996
  return q(j).filter(((Y) => Y.source === j));
11997
11997
  }
11998
11998
  const ne = T(
11999
- () => a.value ? P(a.value) : void 0
11999
+ () => a.value ? N(a.value) : void 0
12000
12000
  );
12001
12001
  function V(j) {
12002
12002
  a.value = j;
@@ -12023,7 +12023,7 @@ const [lf, Tx] = Hr(
12023
12023
  return i.value.nodes.push(R), Y && u.commit(), d.value = !0, R.id;
12024
12024
  }
12025
12025
  function z(j, Y, R = !0) {
12026
- const me = P(j);
12026
+ const me = N(j);
12027
12027
  if (!me || Bt(me.type)) return;
12028
12028
  const Z = {
12029
12029
  ...Tn(me),
@@ -12042,7 +12042,7 @@ const [lf, Tx] = Hr(
12042
12042
  return i.value.nodes.push(Z), R && u.commit(), d.value = !0, Z.id;
12043
12043
  }
12044
12044
  function Q(j, Y = !0) {
12045
- if (!P(j)) return;
12045
+ if (!N(j)) return;
12046
12046
  i.value.edges = i.value.edges.filter(
12047
12047
  (Z) => Z.source !== j && Z.target !== j
12048
12048
  ), b.clear(j, { commit: !1 }), b.removeMember(j, { commit: !1 }), i.value.nodes = i.value.nodes.filter(
@@ -12052,7 +12052,7 @@ const [lf, Tx] = Hr(
12052
12052
  me.ok || console.warn("[removeNode] topology invalid:", me.errors.join("; ")), Y && u.commit();
12053
12053
  }
12054
12054
  function ce(j, Y, R = !0, me) {
12055
- const Z = P(j);
12055
+ const Z = N(j);
12056
12056
  if (!Z) return;
12057
12057
  if (Ts(Z.name)) {
12058
12058
  console.warn("[renameNode] implicit node name is reserved.");
@@ -12061,7 +12061,7 @@ const [lf, Tx] = Hr(
12061
12061
  Z.name !== Y && (Z.name = Y, R && u.commit(me));
12062
12062
  }
12063
12063
  function W(j, Y, R = !0) {
12064
- const me = P(j);
12064
+ const me = N(j);
12065
12065
  me && (me.position = { ...Y }, R && u.commit());
12066
12066
  }
12067
12067
  function te(j, Y, R = !0) {
@@ -12077,17 +12077,17 @@ const [lf, Tx] = Hr(
12077
12077
  return Ke && ke ? !1 : (me.position = Z, me.dimensions = ge, R && u.commit(), !0);
12078
12078
  }
12079
12079
  function Ae(j, Y, R, me = !0, Z) {
12080
- const ge = P(j);
12080
+ const ge = N(j);
12081
12081
  if (!ge) return;
12082
12082
  const Ke = R ?? !ge.expanded[Y];
12083
12083
  Ke !== !!ge.expanded[Y] && (ge.expanded[Y] = Ke, me && u.commit(Z ?? `toggle:${j}:${Y}`));
12084
12084
  }
12085
12085
  function je(j, Y, R = !0, me) {
12086
- const Z = P(j);
12086
+ const Z = N(j);
12087
12087
  Z && (Z.config = Tn(Y), R && u.commit(me));
12088
12088
  }
12089
- function Ne(j, Y, R, me = !0) {
12090
- const Z = P(j);
12089
+ function Pe(j, Y, R, me = !0) {
12090
+ const Z = N(j);
12091
12091
  if (!Z) return;
12092
12092
  const ge = Z.fields[Y];
12093
12093
  if (ge.some((Ke) => Ke.name === R)) {
@@ -12096,14 +12096,14 @@ const [lf, Tx] = Hr(
12096
12096
  }
12097
12097
  ge.push({ id: Ri("field"), name: R }), Y === "input" ? Z.fields.input = ge : Z.fields.output = ge, me && u.commit();
12098
12098
  }
12099
- function Pe(j, Y, R, me = !0) {
12100
- const Z = P(j);
12099
+ function Ne(j, Y, R, me = !0) {
12100
+ const Z = N(j);
12101
12101
  if (!Z) return;
12102
12102
  const ge = Z.fields.input, Ke = Z.fields.output, ke = ge.find((De) => De.id === Y) ?? Ke.find((De) => De.id === Y);
12103
12103
  ke && (ke.name = R, me && u.commit());
12104
12104
  }
12105
12105
  function se(j, Y, R = !0, me = !0) {
12106
- const Z = P(j);
12106
+ const Z = N(j);
12107
12107
  if (!Z) return;
12108
12108
  const ge = Z.fields.input, Ke = Z.fields.output, ke = ge.findIndex((pe) => pe.id === Y);
12109
12109
  ke >= 0 && ge.splice(ke, 1);
@@ -12175,14 +12175,14 @@ const [lf, Tx] = Hr(
12175
12175
  let Ge;
12176
12176
  const pe = {};
12177
12177
  for (const It of i.value.edges.filter((ae) => ae.target === Ke.id)) {
12178
- const ae = P(It.source);
12178
+ const ae = N(It.source);
12179
12179
  if (!ae)
12180
12180
  continue;
12181
12181
  const Oe = (Y = Un(ae, "output", It.sourceField)) == null ? void 0 : Y.name, xe = Oe ? `${ae.name}.${Oe}` : ae.name, Ie = (R = Un(Ke, "input", It.targetField)) == null ? void 0 : R.name;
12182
12182
  Ie ? De[Ie] = xe : ke === void 0 && (ke = xe);
12183
12183
  }
12184
12184
  for (const It of i.value.edges.filter((ae) => ae.source === Ke.id)) {
12185
- const ae = P(It.target);
12185
+ const ae = N(It.target);
12186
12186
  if (!ae)
12187
12187
  continue;
12188
12188
  const Oe = ae.type;
@@ -12203,7 +12203,7 @@ const [lf, Tx] = Hr(
12203
12203
  continue;
12204
12204
  const Oe = [];
12205
12205
  for (const xe of ae) {
12206
- const Ie = P(xe);
12206
+ const Ie = N(xe);
12207
12207
  Ie && Oe.push(Ie.name);
12208
12208
  }
12209
12209
  Oe.length ? fe[It] = Array.from(new Set(Oe)) : delete fe[It];
@@ -12242,7 +12242,7 @@ const [lf, Tx] = Hr(
12242
12242
  function we() {
12243
12243
  const j = [];
12244
12244
  for (const Y of i.value.groups) {
12245
- const R = P(Y.ownerId);
12245
+ const R = N(Y.ownerId);
12246
12246
  if (!R) continue;
12247
12247
  const me = Y.position;
12248
12248
  me && j.push({
@@ -12277,7 +12277,7 @@ const [lf, Tx] = Hr(
12277
12277
  edgeMapById: v,
12278
12278
  edgeIdMapByNodeId: k,
12279
12279
  groupMapById: x,
12280
- getNodeById: P,
12280
+ getNodeById: N,
12281
12281
  getNodeByName: F,
12282
12282
  getEdgeById: J,
12283
12283
  getEdgesByNodeId: q,
@@ -12299,8 +12299,8 @@ const [lf, Tx] = Hr(
12299
12299
  replaceConfig: je,
12300
12300
  branchGroups: b,
12301
12301
  // field ops
12302
- addField: Ne,
12303
- renameField: Pe,
12302
+ addField: Pe,
12303
+ renameField: Ne,
12304
12304
  removeField: se,
12305
12305
  // edge ops
12306
12306
  connectEdge: re,
@@ -12325,7 +12325,7 @@ const [lf, Tx] = Hr(
12325
12325
  revert: u.revert,
12326
12326
  // validation helpers for UI
12327
12327
  isValidConnection: K,
12328
- isValidVueFlowConnection: N,
12328
+ isValidVueFlowConnection: P,
12329
12329
  validateGraph: () => $(),
12330
12330
  // layout & viewport helpers
12331
12331
  clearPendingLayout: c,
@@ -12339,7 +12339,7 @@ function _t() {
12339
12339
  throw new Error("Editor state is not provided. Ensure you are using provideEditorStore in a parent component.");
12340
12340
  return e;
12341
12341
  }
12342
- const { t: Sx } = $t("en-us", Pt), jo = Sm(() => {
12342
+ const { t: Sx } = $t("en-us", Nt), jo = Sm(() => {
12343
12343
  const e = Ha("datakit-editor-mode", "flow"), t = Ha(
12344
12344
  "datakit-editor-sidebar-expanded",
12345
12345
  !0
@@ -12359,13 +12359,13 @@ function Ox({
12359
12359
  }
12360
12360
  const $x = ["undo", "redo", "duplicate", "cut", "copy", "paste"], uf = () => {
12361
12361
  };
12362
- function Px(e) {
12362
+ function Nx(e) {
12363
12363
  const t = e;
12364
12364
  return t ? !!t.closest(
12365
12365
  'input, textarea, [contenteditable]:not([contenteditable="false"])'
12366
12366
  ) : !1;
12367
12367
  }
12368
- function Nx(e) {
12368
+ function Px(e) {
12369
12369
  if (!(e.metaKey || e.ctrlKey)) return;
12370
12370
  switch (e.key.toLowerCase()) {
12371
12371
  case "z":
@@ -12387,8 +12387,8 @@ const Fx = Om(() => {
12387
12387
  ca(
12388
12388
  "keydown",
12389
12389
  (n) => {
12390
- if (Px(n.target)) return;
12391
- const i = Nx(n);
12390
+ if (Nx(n.target)) return;
12391
+ const i = Px(n);
12392
12392
  if (i)
12393
12393
  for (const a of e) {
12394
12394
  if (!it(a.enabled)) continue;
@@ -12421,7 +12421,7 @@ function cf(e = {}) {
12421
12421
  const t = Fx().subscribe(e);
12422
12422
  return fp(t), t;
12423
12423
  }
12424
- const df = 44, Rx = 220, ff = 366, Mx = 1e3, Lx = df + parseFloat(Jc), lo = 1, jx = 0, Kx = 1, Dx = 2, qx = 3, Ni = parseInt(yk, 10), sa = "application/x-datakit+json", uo = {
12424
+ const df = 44, Rx = 220, ff = 366, Mx = 1e3, Lx = df + parseFloat(Jc), lo = 1, jx = 0, Kx = 1, Dx = 2, qx = 3, Pi = parseInt(yk, 10), sa = "application/x-datakit+json", uo = {
12425
12425
  delete: ["Delete"],
12426
12426
  undo: ["Mod", "Z"],
12427
12427
  redo: {
@@ -13365,13 +13365,13 @@ var IA = wf, TA = SA;
13365
13365
  function SA(e, t) {
13366
13366
  return IA(e, t, "post");
13367
13367
  }
13368
- var OA = wf, $A = PA;
13369
- function PA(e, t) {
13368
+ var OA = wf, $A = NA;
13369
+ function NA(e, t) {
13370
13370
  return OA(e, t, "pre");
13371
13371
  }
13372
- var NA = $s, FA = hf, RA = MA;
13372
+ var PA = $s, FA = hf, RA = MA;
13373
13373
  function MA(e, t) {
13374
- var n = new NA(), i = {}, a = new FA(), o;
13374
+ var n = new PA(), i = {}, a = new FA(), o;
13375
13375
  function r(u) {
13376
13376
  var d = u.v === o ? u.w : u.v, p = a.priority(d);
13377
13377
  if (p !== void 0) {
@@ -13522,7 +13522,7 @@ var Et = {
13522
13522
  successorWeights: XA,
13523
13523
  time: rI,
13524
13524
  uniqueId: If,
13525
- zipObject: Ps
13525
+ zipObject: Ns
13526
13526
  };
13527
13527
  function Ef(e, t, n, i) {
13528
13528
  for (var a = i; e.hasNode(a); )
@@ -13554,7 +13554,7 @@ function XA(e) {
13554
13554
  i[a.w] = (i[a.w] || 0) + e.edge(a).weight;
13555
13555
  }), i;
13556
13556
  });
13557
- return Ps(e.nodes(), t);
13557
+ return Ns(e.nodes(), t);
13558
13558
  }
13559
13559
  function ZA(e) {
13560
13560
  let t = e.nodes().map((n) => {
@@ -13563,7 +13563,7 @@ function ZA(e) {
13563
13563
  i[a.v] = (i[a.v] || 0) + e.edge(a).weight;
13564
13564
  }), i;
13565
13565
  });
13566
- return Ps(e.nodes(), t);
13566
+ return Ns(e.nodes(), t);
13567
13567
  }
13568
13568
  function QA(e, t) {
13569
13569
  let n = e.x, i = e.y, a = t.x - n, o = t.y - i, r = e.width / 2, s = e.height / 2;
@@ -13671,7 +13671,7 @@ function cI(e, t) {
13671
13671
  let n = t;
13672
13672
  return typeof t == "string" && (n = (i) => i[t]), Object.entries(e).reduce((i, [a, o]) => (i[a] = n(o, a), i), {});
13673
13673
  }
13674
- function Ps(e, t) {
13674
+ function Ns(e, t) {
13675
13675
  return e.reduce((n, i, a) => (n[i] = t[a], n), {});
13676
13676
  }
13677
13677
  let dI = UA, fI = Et.uniqueId;
@@ -13784,22 +13784,22 @@ function TI(e, t) {
13784
13784
  function SI(e, t, n) {
13785
13785
  e.nodes().forEach((i) => t.node(i).rank += n);
13786
13786
  }
13787
- var OI = Sf, fu = qo.slack, $I = qo.longestPath, PI = pn.alg.preorder, NI = pn.alg.postorder, FI = Et.simplify, RI = ki;
13787
+ var OI = Sf, fu = qo.slack, $I = qo.longestPath, NI = pn.alg.preorder, PI = pn.alg.postorder, FI = Et.simplify, RI = ki;
13788
13788
  ki.initLowLimValues = Fs;
13789
- ki.initCutValues = Ns;
13789
+ ki.initCutValues = Ps;
13790
13790
  ki.calcCutValue = Of;
13791
- ki.leaveEdge = Pf;
13792
- ki.enterEdge = Nf;
13791
+ ki.leaveEdge = Nf;
13792
+ ki.enterEdge = Pf;
13793
13793
  ki.exchangeEdges = Ff;
13794
13794
  function ki(e) {
13795
13795
  e = FI(e), $I(e);
13796
13796
  var t = OI(e);
13797
- Fs(t), Ns(t, e);
13798
- for (var n, i; n = Pf(t); )
13799
- i = Nf(t, e, n), Ff(t, e, n, i);
13797
+ Fs(t), Ps(t, e);
13798
+ for (var n, i; n = Nf(t); )
13799
+ i = Pf(t, e, n), Ff(t, e, n, i);
13800
13800
  }
13801
- function Ns(e, t) {
13802
- var n = NI(e, e.nodes());
13801
+ function Ps(e, t) {
13802
+ var n = PI(e, e.nodes());
13803
13803
  n = n.slice(0, n.length - 1), n.forEach((i) => MI(e, t, i));
13804
13804
  }
13805
13805
  function MI(e, t, n) {
@@ -13828,10 +13828,10 @@ function $f(e, t, n, i, a) {
13828
13828
  Object.hasOwn(t, s) || (n = $f(e, t, n, s, i));
13829
13829
  }), r.low = o, r.lim = n++, a ? r.parent = a : delete r.parent, n;
13830
13830
  }
13831
- function Pf(e) {
13831
+ function Nf(e) {
13832
13832
  return e.edges().find((t) => e.edge(t).cutvalue < 0);
13833
13833
  }
13834
- function Nf(e, t, n) {
13834
+ function Pf(e, t, n) {
13835
13835
  var i = n.v, a = n.w;
13836
13836
  t.hasEdge(i, a) || (i = n.w, a = n.v);
13837
13837
  var o = e.node(i), r = e.node(a), s = o, u = !1;
@@ -13841,10 +13841,10 @@ function Nf(e, t, n) {
13841
13841
  }
13842
13842
  function Ff(e, t, n, i) {
13843
13843
  var a = n.v, o = n.w;
13844
- e.removeEdge(a, o), e.setEdge(i.v, i.w, {}), Fs(e), Ns(e, t), LI(e, t);
13844
+ e.removeEdge(a, o), e.setEdge(i.v, i.w, {}), Fs(e), Ps(e, t), LI(e, t);
13845
13845
  }
13846
13846
  function LI(e, t) {
13847
- var n = e.nodes().find((a) => !t.node(a).parent), i = PI(e, n);
13847
+ var n = e.nodes().find((a) => !t.node(a).parent), i = NI(e, n);
13848
13848
  i = i.slice(1), i.forEach((a) => {
13849
13849
  var o = e.node(a).parent, r = t.edge(a, o), s = !1;
13850
13850
  r || (r = t.edge(o, a), s = !0), t.node(a).rank = t.node(o).rank + (s ? r.minlen : -r.minlen);
@@ -14173,11 +14173,11 @@ function OT(e, t) {
14173
14173
  function $T(e, t) {
14174
14174
  e.barycenter !== void 0 ? (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight) : (e.barycenter = t.barycenter, e.weight = t.weight);
14175
14175
  }
14176
- let PT = pn.Graph, NT = Et;
14176
+ let NT = pn.Graph, PT = Et;
14177
14177
  var FT = RT;
14178
14178
  function RT(e, t, n, i) {
14179
14179
  i || (i = e.nodes());
14180
- let a = MT(e), o = new PT({ compound: !0 }).setGraph({ root: a }).setDefaultNodeLabel((r) => e.node(r));
14180
+ let a = MT(e), o = new NT({ compound: !0 }).setGraph({ root: a }).setDefaultNodeLabel((r) => e.node(r));
14181
14181
  return i.forEach((r) => {
14182
14182
  let s = e.node(r), u = e.parent(r);
14183
14183
  (s.rank === t || s.minRank <= t && t <= s.maxRank) && (o.setNode(r), o.setParent(r, u || a), e[n](r).forEach((d) => {
@@ -14190,7 +14190,7 @@ function RT(e, t, n, i) {
14190
14190
  }), o;
14191
14191
  }
14192
14192
  function MT(e) {
14193
- for (var t; e.hasNode(t = NT.uniqueId("_root")); ) ;
14193
+ for (var t; e.hasNode(t = PT.uniqueId("_root")); ) ;
14194
14194
  return t;
14195
14195
  }
14196
14196
  var LT = jT;
@@ -14467,7 +14467,7 @@ function wS(e, t) {
14467
14467
  });
14468
14468
  }
14469
14469
  function kS(e, t, n) {
14470
- t(" makeSpaceForEdgeLabels", () => PS(e)), t(" removeSelfEdges", () => qS(e)), t(" acyclic", () => wu.run(e)), t(" nestingGraph.run", () => Cu.run(e)), t(" rank", () => fS(sn.asNonCompoundGraph(e))), t(" injectEdgeLabelProxies", () => NS(e)), t(" removeEmptyRanks", () => gS(e)), t(" nestingGraph.cleanup", () => Cu.cleanup(e)), t(" normalizeRanks", () => pS(e)), t(" assignRankMinMax", () => FS(e)), t(" removeEdgeLabelProxies", () => RS(e)), t(" normalize.run", () => ku.run(e)), t(" parentDummyChains", () => mS(e)), t(" addBorderSegments", () => hS(e)), t(" order", () => vS(e, n)), t(" insertSelfEdges", () => VS(e)), t(" adjustCoordinateSystem", () => Eu.adjust(e)), t(" position", () => yS(e)), t(" positionSelfEdges", () => US(e)), t(" removeBorderNodes", () => DS(e)), t(" normalize.undo", () => ku.undo(e)), t(" fixupEdgeLabelCoords", () => jS(e)), t(" undoCoordinateSystem", () => Eu.undo(e)), t(" translateGraph", () => MS(e)), t(" assignNodeIntersects", () => LS(e)), t(" reversePoints", () => KS(e)), t(" acyclic.undo", () => wu.undo(e));
14470
+ t(" makeSpaceForEdgeLabels", () => NS(e)), t(" removeSelfEdges", () => qS(e)), t(" acyclic", () => wu.run(e)), t(" nestingGraph.run", () => Cu.run(e)), t(" rank", () => fS(sn.asNonCompoundGraph(e))), t(" injectEdgeLabelProxies", () => PS(e)), t(" removeEmptyRanks", () => gS(e)), t(" nestingGraph.cleanup", () => Cu.cleanup(e)), t(" normalizeRanks", () => pS(e)), t(" assignRankMinMax", () => FS(e)), t(" removeEdgeLabelProxies", () => RS(e)), t(" normalize.run", () => ku.run(e)), t(" parentDummyChains", () => mS(e)), t(" addBorderSegments", () => hS(e)), t(" order", () => vS(e, n)), t(" insertSelfEdges", () => VS(e)), t(" adjustCoordinateSystem", () => Eu.adjust(e)), t(" position", () => yS(e)), t(" positionSelfEdges", () => US(e)), t(" removeBorderNodes", () => DS(e)), t(" normalize.undo", () => ku.undo(e)), t(" fixupEdgeLabelCoords", () => jS(e)), t(" undoCoordinateSystem", () => Eu.undo(e)), t(" translateGraph", () => MS(e)), t(" assignNodeIntersects", () => LS(e)), t(" reversePoints", () => KS(e)), t(" acyclic.undo", () => wu.undo(e));
14471
14471
  }
14472
14472
  function CS(e, t) {
14473
14473
  e.nodes().forEach((n) => {
@@ -14509,14 +14509,14 @@ function $S(e) {
14509
14509
  ));
14510
14510
  }), t;
14511
14511
  }
14512
- function PS(e) {
14512
+ function NS(e) {
14513
14513
  let t = e.graph();
14514
14514
  t.ranksep /= 2, e.edges().forEach((n) => {
14515
14515
  let i = e.edge(n);
14516
14516
  i.minlen *= 2, i.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? i.width += i.labeloffset : i.height += i.labeloffset);
14517
14517
  });
14518
14518
  }
14519
- function NS(e) {
14519
+ function PS(e) {
14520
14520
  e.edges().forEach((t) => {
14521
14521
  let n = e.edge(t);
14522
14522
  if (n.width && n.height) {
@@ -14719,54 +14719,54 @@ function JS(e) {
14719
14719
  } else throw new Error(`Cannot find source node '${te}' for edge '${W.id}' via findNode`);
14720
14720
  if (O(Ae) === O(je))
14721
14721
  continue;
14722
- let Ne = Ae, Pe = je, se = V(Ne.id), re = V(Pe.id);
14722
+ let Pe = Ae, Ne = je, se = V(Pe.id), re = V(Ne.id);
14723
14723
  for (; se !== re; )
14724
14724
  if (se > re) {
14725
- const _e = O(Ne);
14725
+ const _e = O(Pe);
14726
14726
  if (!_e)
14727
- throw new Error(`Expected node '${Ne.id}' to have parent, but it does not`);
14727
+ throw new Error(`Expected node '${Pe.id}' to have parent, but it does not`);
14728
14728
  const he = ee(_e);
14729
14729
  if (!he)
14730
- throw new Error(`Cannot find parent node '${_e}' for node '${Ne.id}' via findNode`);
14731
- Ne = he, se--;
14730
+ throw new Error(`Cannot find parent node '${_e}' for node '${Pe.id}' via findNode`);
14731
+ Pe = he, se--;
14732
14732
  } else if (re > se) {
14733
- const _e = O(Pe);
14733
+ const _e = O(Ne);
14734
14734
  if (!_e)
14735
- throw new Error(`Expected node '${Pe.id}' to have parent, but it does not`);
14735
+ throw new Error(`Expected node '${Ne.id}' to have parent, but it does not`);
14736
14736
  const he = ee(_e);
14737
14737
  if (!he)
14738
- throw new Error(`Cannot find parent node '${_e}' for node '${Pe.id}' via findNode`);
14739
- Pe = he, re--;
14738
+ throw new Error(`Cannot find parent node '${_e}' for node '${Ne.id}' via findNode`);
14739
+ Ne = he, re--;
14740
14740
  }
14741
14741
  for (; se >= 0; ) {
14742
- const _e = O(Ne), he = O(Pe);
14742
+ const _e = O(Pe), he = O(Ne);
14743
14743
  if (_e === he) {
14744
14744
  q.has(se) || q.set(se, []), q.get(se).push({
14745
- v: Ne.id,
14746
- w: Pe.id
14745
+ v: Pe.id,
14746
+ w: Ne.id
14747
14747
  });
14748
14748
  break;
14749
14749
  }
14750
14750
  if (_e) {
14751
14751
  if (!he) {
14752
- const Qe = `Expected node '${Pe.id}' to have parent, but it does not`;
14753
- throw console.error(Qe, Pe), new Error(Qe);
14752
+ const Qe = `Expected node '${Ne.id}' to have parent, but it does not`;
14753
+ throw console.error(Qe, Ne), new Error(Qe);
14754
14754
  }
14755
14755
  } else {
14756
- const Qe = `Expected node '${Ne.id}' to have parent, but it does not`;
14757
- throw console.error(Qe, Ne), new Error(Qe);
14756
+ const Qe = `Expected node '${Pe.id}' to have parent, but it does not`;
14757
+ throw console.error(Qe, Pe), new Error(Qe);
14758
14758
  }
14759
14759
  const Re = ee(_e), be = ee(he);
14760
14760
  if (Re) {
14761
14761
  if (!be)
14762
- throw new Error(`Cannot find parent node '${he}' for node '${Pe.id}' via findNode`);
14763
- } else throw new Error(`Cannot find parent node '${_e}' for node '${Ne.id}' via findNode`);
14764
- Ne = Re, Pe = be, se--, re--;
14762
+ throw new Error(`Cannot find parent node '${he}' for node '${Ne.id}' via findNode`);
14763
+ } else throw new Error(`Cannot find parent node '${_e}' for node '${Pe.id}' via findNode`);
14764
+ Pe = Re, Ne = be, se--, re--;
14765
14765
  }
14766
14766
  }
14767
14767
  const B = s.value.groups.toSorted((W, te) => V(te.ownerId) - V(W.ownerId));
14768
14768
  for (const W of B)
14769
- N(
14769
+ P(
14770
14770
  W.memberIds.reduce((te, ie) => {
14771
14771
  const Ae = d(ie);
14772
14772
  if (!Ae)
@@ -14789,16 +14789,16 @@ function JS(e) {
14789
14789
  const te = g.value.get(W.id);
14790
14790
  te && S.push(...te);
14791
14791
  }
14792
- const { autoNodes: z, leftNode: Q, rightNode: ce } = P(S);
14793
- N(z, {
14792
+ const { autoNodes: z, leftNode: Q, rightNode: ce } = N(S);
14793
+ P(z, {
14794
14794
  leftNode: Q,
14795
14795
  rightNode: ce,
14796
14796
  virtualEdges: q.get(0),
14797
14797
  cachedFindNode: ee
14798
14798
  }), F && c();
14799
14799
  }
14800
- function N(F, J) {
14801
- var Ne, Pe, se, re, _e;
14800
+ function P(F, J) {
14801
+ var Pe, Ne, se, re, _e;
14802
14802
  const { leftNode: q, rightNode: U, virtualEdges: ee, cachedFindNode: ne } = J || {}, V = q ? (ne ?? r)(q.id) : void 0, O = U ? (ne ?? r)(U.id) : void 0;
14803
14803
  let B;
14804
14804
  if (F.length > 0) {
@@ -14835,14 +14835,14 @@ function JS(e) {
14835
14835
  S.push(be), Qi(he) ? v(
14836
14836
  he.id,
14837
14837
  be,
14838
- be.x + Ni,
14839
- be.y + Ni
14838
+ be.x + Pi,
14839
+ be.y + Pi
14840
14840
  ) : p(he.id, { x: be.x, y: be.y }, !1);
14841
14841
  }
14842
14842
  }
14843
14843
  const Q = S.length > 0 ? gf(S) : { x: 0, y: 0, width: 0, height: 0 }, ce = Q.width, W = Q.height, te = Q.x, ie = Q.x + Q.width, Ae = Math.max(
14844
14844
  0,
14845
- Math.min(it(x == null ? void 0 : x.width) ?? Number.POSITIVE_INFINITY, Vx) - ce - 2 * w - (((Ne = V == null ? void 0 : V.dimensions) == null ? void 0 : Ne.width) ?? 0) - (((Pe = O == null ? void 0 : O.dimensions) == null ? void 0 : Pe.width) ?? 0) - 2 * E
14845
+ Math.min(it(x == null ? void 0 : x.width) ?? Number.POSITIVE_INFINITY, Vx) - ce - 2 * w - (((Pe = V == null ? void 0 : V.dimensions) == null ? void 0 : Pe.width) ?? 0) - (((Ne = O == null ? void 0 : O.dimensions) == null ? void 0 : Ne.width) ?? 0) - 2 * E
14846
14846
  ), je = Q.y + W / 2;
14847
14847
  q && p(q.id, {
14848
14848
  x: te - w - Ae / 2 - (((se = V == null ? void 0 : V.dimensions) == null ? void 0 : se.width) ?? 0),
@@ -14852,7 +14852,7 @@ function JS(e) {
14852
14852
  y: je - (((_e = O == null ? void 0 : O.dimensions) == null ? void 0 : _e.height) ?? 0) / 2
14853
14853
  }, !1);
14854
14854
  }
14855
- function P(F) {
14855
+ function N(F) {
14856
14856
  let J, q;
14857
14857
  const U = [];
14858
14858
  for (const ee of F) {
@@ -15047,24 +15047,24 @@ function ZS({
15047
15047
  O.push(ce);
15048
15048
  }
15049
15049
  return O;
15050
- }), K = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
15051
- let P;
15050
+ }), K = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
15051
+ let N;
15052
15052
  function F(O, B = !0) {
15053
15053
  if (O.phase !== e) return;
15054
15054
  const S = x(O).filter((te) => te.phase === e && !te.hidden);
15055
15055
  if (!S.length) return;
15056
15056
  const z = [];
15057
15057
  for (const te of S) {
15058
- const ie = a(te.id), Ae = ie == null ? void 0 : ie.dimensions, je = (Ae == null ? void 0 : Ae.width) ?? 0, Ne = (Ae == null ? void 0 : Ae.height) ?? 0;
15059
- if (je <= 0 || Ne <= 0)
15058
+ const ie = a(te.id), Ae = ie == null ? void 0 : ie.dimensions, je = (Ae == null ? void 0 : Ae.width) ?? 0, Pe = (Ae == null ? void 0 : Ae.height) ?? 0;
15059
+ if (je <= 0 || Pe <= 0)
15060
15060
  return;
15061
15061
  z.push({
15062
15062
  ...te.position,
15063
15063
  width: je,
15064
- height: Ne
15064
+ height: Pe
15065
15065
  });
15066
- const Pe = y.value.get(te.id) ?? [];
15067
- for (const se of Pe) {
15066
+ const Ne = y.value.get(te.id) ?? [];
15067
+ for (const se of Ne) {
15068
15068
  if (se.phase !== e) continue;
15069
15069
  const re = K.get(se.id), _e = (re == null ? void 0 : re.position) ?? se.position, he = (re == null ? void 0 : re.dimensions) ?? se.dimensions;
15070
15070
  !_e || !he || z.push({
@@ -15075,11 +15075,11 @@ function ZS({
15075
15075
  });
15076
15076
  }
15077
15077
  }
15078
- const Q = gf(z), ce = Q.width + Ni * 2, W = Q.height + Ni * 2;
15078
+ const Q = gf(z), ce = Q.width + Pi * 2, W = Q.height + Pi * 2;
15079
15079
  return {
15080
15080
  position: {
15081
- x: Math.round(Q.x - Ni),
15082
- y: Math.round(Q.y - Ni)
15081
+ x: Math.round(Q.x - Pi),
15082
+ y: Math.round(Q.y - Pi)
15083
15083
  },
15084
15084
  dimensions: {
15085
15085
  width: Math.round(ce),
@@ -15090,7 +15090,7 @@ function ZS({
15090
15090
  }
15091
15091
  function J() {
15092
15092
  if (K.size === 0) {
15093
- P = void 0;
15093
+ N = void 0;
15094
15094
  return;
15095
15095
  }
15096
15096
  const O = [];
@@ -15098,24 +15098,24 @@ function ZS({
15098
15098
  K.forEach((S, z) => {
15099
15099
  const Q = c(z, S, !1);
15100
15100
  O.push({ id: z, changed: Q, commit: S.commit }), S.commit && Q && !B && (B = !0);
15101
- }), K.clear(), P = void 0;
15101
+ }), K.clear(), N = void 0;
15102
15102
  for (const { id: S, changed: z, commit: Q } of O) {
15103
15103
  if (!z) continue;
15104
15104
  const ce = s.value.get(S);
15105
15105
  if (!ce) continue;
15106
15106
  const W = E.value.get(ce.ownerId);
15107
- W && N.set(W.id, { commit: Q });
15107
+ W && P.set(W.id, { commit: Q });
15108
15108
  }
15109
- if (N.size > 0) {
15110
- const S = Array.from(N);
15111
- N.clear();
15109
+ if (P.size > 0) {
15110
+ const S = Array.from(P);
15111
+ P.clear();
15112
15112
  for (const [z, { commit: Q }] of S)
15113
15113
  U(z, Q);
15114
15114
  }
15115
15115
  B && f("*");
15116
15116
  }
15117
15117
  function q() {
15118
- K.size !== 0 && (P || (P = Wt().then(J)));
15118
+ K.size !== 0 && (N || (N = Wt().then(J)));
15119
15119
  }
15120
15120
  function U(O, B = !0) {
15121
15121
  const S = s.value.get(O);
@@ -15139,14 +15139,14 @@ function ZS({
15139
15139
  for (; ce.length; ) {
15140
15140
  const ie = ce.shift(), Ae = s.value.get(ie);
15141
15141
  if (!Ae) continue;
15142
- const je = x(Ae).filter((Ne) => Ne.phase === e && !Ne.hidden);
15143
- for (const Ne of je) {
15144
- te.has(Ne.id) || (d(Ne.id, {
15145
- x: Ne.position.x + S,
15146
- y: Ne.position.y + z
15147
- }, !1), te.add(Ne.id));
15148
- const Pe = b.value.get(Ne.id) ?? [];
15149
- for (const se of Pe) {
15142
+ const je = x(Ae).filter((Pe) => Pe.phase === e && !Pe.hidden);
15143
+ for (const Pe of je) {
15144
+ te.has(Pe.id) || (d(Pe.id, {
15145
+ x: Pe.position.x + S,
15146
+ y: Pe.position.y + z
15147
+ }, !1), te.add(Pe.id));
15148
+ const Ne = b.value.get(Pe.id) ?? [];
15149
+ for (const se of Ne) {
15150
15150
  if (W.has(se.id)) continue;
15151
15151
  const re = s.value.get(se.id);
15152
15152
  re != null && re.position && p(se.id, {
@@ -15203,7 +15203,7 @@ function ZS({
15203
15203
  translateGroupTree: ee,
15204
15204
  getNodeDepth: h,
15205
15205
  maxGroupDepth: I,
15206
- waitForLayoutFlush: () => P ?? Promise.resolve()
15206
+ waitForLayoutFlush: () => N ?? Promise.resolve()
15207
15207
  };
15208
15208
  }
15209
15209
  function QS(e) {
@@ -15281,8 +15281,8 @@ const [nO, iO] = Hr(
15281
15281
  onEdgeMouseEnter: I,
15282
15282
  onEdgeMouseLeave: $,
15283
15283
  getNodes: K,
15284
- setNodes: N,
15285
- setEdges: P,
15284
+ setNodes: P,
15285
+ setEdges: N,
15286
15286
  addSelectedNodes: F,
15287
15287
  screenToFlowCoordinate: J
15288
15288
  } = d;
@@ -15301,9 +15301,9 @@ const [nO, iO] = Hr(
15301
15301
  commit: ce,
15302
15302
  reset: W,
15303
15303
  groupMapById: te
15304
- } = p, { isGroupId: ie, canAddMember: Ae } = Q, je = nn(), Ne = (ae) => {
15304
+ } = p, { isGroupId: ie, canAddMember: Ae } = Q, je = nn(), Pe = (ae) => {
15305
15305
  je.value = ae;
15306
- }, Pe = qu(je);
15306
+ }, Ne = qu(je);
15307
15307
  function se(ae, Oe) {
15308
15308
  const xe = O(ae.source), Ie = O(ae.target);
15309
15309
  return !!(xe && Ie && xe.phase === Oe && Ie.phase === Oe);
@@ -15312,7 +15312,7 @@ const [nO, iO] = Hr(
15312
15312
  phase: t,
15313
15313
  readonly: a,
15314
15314
  flowId: n,
15315
- draggingId: Pe
15315
+ draggingId: Ne
15316
15316
  }), {
15317
15317
  memberGroupMap: _e,
15318
15318
  groupNodes: he,
@@ -15332,7 +15332,7 @@ const [nO, iO] = Hr(
15332
15332
  groupMapById: te,
15333
15333
  getNodeDepth: Ee,
15334
15334
  canAddMember: Ae,
15335
- draggingId: Pe
15335
+ draggingId: Ne
15336
15336
  }), R = T(
15337
15337
  () => q.value.nodes.filter((ae) => ae.phase === t && !ae.hidden).map((ae) => {
15338
15338
  const Oe = _e.value.get(ae.id), xe = Oe == null ? void 0 : Oe.position, Ie = Oe == null ? void 0 : Oe.dimensions, Ce = Oe && xe && Ie ? {
@@ -15344,7 +15344,7 @@ const [nO, iO] = Hr(
15344
15344
  type: "flow",
15345
15345
  position: Ce,
15346
15346
  data: ae,
15347
- deletable: !Pr(ae),
15347
+ deletable: !Nr(ae),
15348
15348
  parentNode: Ue ? Oe.id : void 0,
15349
15349
  zIndex: $e * lo + qx
15350
15350
  };
@@ -15386,7 +15386,7 @@ const [nO, iO] = Hr(
15386
15386
  readonly: a,
15387
15387
  flowId: n
15388
15388
  }), ze([R, he, Z], ([ae, Oe, xe]) => {
15389
- N([...Oe, ...ae]), P(xe);
15389
+ P([...Oe, ...ae]), N(xe);
15390
15390
  }, { immediate: !0 });
15391
15391
  const Ke = T(() => ({
15392
15392
  // Padding in VueFlow is a ratio
@@ -15468,7 +15468,7 @@ const [nO, iO] = Hr(
15468
15468
  if (!ae) return;
15469
15469
  if (ie(ae.id)) {
15470
15470
  const Ve = ae.id;
15471
- Ne(Ve), j(void 0);
15471
+ Pe(Ve), j(void 0);
15472
15472
  const nt = te.value.get(Ve);
15473
15473
  if (!nt) return;
15474
15474
  const We = nt.position ?? { ...ae.position }, ft = ae.position.x - We.x, An = ae.position.y - We.y;
@@ -15478,7 +15478,7 @@ const [nO, iO] = Hr(
15478
15478
  return;
15479
15479
  }
15480
15480
  const xe = ae.id;
15481
- Se("canvas"), Ne(xe);
15481
+ Se("canvas"), Pe(xe);
15482
15482
  const Ie = ae.parentNode;
15483
15483
  let Ce = { ...ae.position };
15484
15484
  if (Ie && ie(Ie)) {
@@ -15488,7 +15488,7 @@ const [nO, iO] = Hr(
15488
15488
  y: Ve.position.y + ae.position.y
15489
15489
  });
15490
15490
  }
15491
- if (ee(xe, Ce, !1), !Pr(O(xe))) {
15491
+ if (ee(xe, Ce, !1), !Nr(O(xe))) {
15492
15492
  const Ve = {
15493
15493
  x: Ce.x,
15494
15494
  y: Ce.y,
@@ -15505,7 +15505,7 @@ const [nO, iO] = Hr(
15505
15505
  }), k(({ node: ae }) => {
15506
15506
  var Le;
15507
15507
  if (!ae) return;
15508
- if (Ne(void 0), ie(ae.id)) {
15508
+ if (Pe(void 0), ie(ae.id)) {
15509
15509
  U();
15510
15510
  return;
15511
15511
  }
@@ -15523,7 +15523,7 @@ const [nO, iO] = Hr(
15523
15523
  Ce && Qe(Ce, !1), xn(Oe), Y(), U();
15524
15524
  }), b((ae) => {
15525
15525
  ae.filter((Ie) => Ie.type === "select").sort((Ie, Ce) => Ie.selected === Ce.selected ? 0 : Ie.selected ? 1 : -1).forEach((Ie) => {
15526
- be(Ie.id) || (Bf = Ie.selected ? Ie.id : void 0, P((Ce) => Ce.map((Le) => Le.id !== Ie.id || !Le.markerEnd ? Le : Da({
15526
+ be(Ie.id) || (Bf = Ie.selected ? Ie.id : void 0, N((Ce) => Ce.map((Le) => Le.id !== Ie.id || !Le.markerEnd ? Le : Da({
15527
15527
  ...Le,
15528
15528
  zIndex: Ie.selected ? 1 : void 0
15529
15529
  }))));
@@ -15536,9 +15536,9 @@ const [nO, iO] = Hr(
15536
15536
  }
15537
15537
  }), xe && !De && (De = !0, queueMicrotask(Ge));
15538
15538
  }), I(({ edge: ae }) => {
15539
- be(ae.id) || (qr = ae.id, P((Oe) => Oe.map((xe) => xe.id !== ae.id ? xe : Da(xe))));
15539
+ be(ae.id) || (qr = ae.id, N((Oe) => Oe.map((xe) => xe.id !== ae.id ? xe : Da(xe))));
15540
15540
  }), $(({ edge: ae }) => {
15541
- be(ae.id) || (qr = void 0, P((Oe) => Oe.map((xe) => xe.id !== ae.id ? xe : Da(xe))));
15541
+ be(ae.id) || (qr = void 0, N((Oe) => Oe.map((xe) => xe.id !== ae.id ? xe : Da(xe))));
15542
15542
  }), w(({ edge: ae, connection: Oe }) => {
15543
15543
  be(ae.id) || (S(ae.id, !1), ke(Oe));
15544
15544
  });
@@ -15851,7 +15851,7 @@ const uO = {
15851
15851
  readonly: { type: Boolean }
15852
15852
  },
15853
15853
  setup(e) {
15854
- const { t } = $t("en-us", Pt), n = iO(), {
15854
+ const { t } = $t("en-us", Nt), n = iO(), {
15855
15855
  getInEdgesByNodeId: i,
15856
15856
  getOutEdgesByNodeId: a,
15857
15857
  getNodeById: o,
@@ -15881,7 +15881,7 @@ const uO = {
15881
15881
  return Os(Q);
15882
15882
  }
15883
15883
  return (z = c.value.io) == null ? void 0 : z.output;
15884
- }), I = T(() => Pr(e.data)), $ = T(() => e.data.phase === "response"), K = T(() => e.data.phase === "request" ? hn.Left : hn.Right), N = T(() => e.data.phase === "request" ? hn.Right : hn.Left), P = T(() => e.data.phase === "request" ? hn.Right : hn.Left), F = T(() => I.value ? t(`plugins.free-form.datakit.flow_editor.node_types.${e.data.type}.name`) : e.data.name), J = T(() => I.value ? nk : Cr);
15884
+ }), I = T(() => Nr(e.data)), $ = T(() => e.data.phase === "response"), K = T(() => e.data.phase === "request" ? hn.Left : hn.Right), P = T(() => e.data.phase === "request" ? hn.Right : hn.Left), N = T(() => e.data.phase === "request" ? hn.Right : hn.Left), F = T(() => I.value ? t(`plugins.free-form.datakit.flow_editor.node_types.${e.data.type}.name`) : e.data.name), J = T(() => I.value ? nk : Cr);
15885
15885
  function q(S) {
15886
15886
  return S === "input" ? $.value : !$.value;
15887
15887
  }
@@ -15891,20 +15891,20 @@ const uO = {
15891
15891
  const W = o(S === "input" ? ce.source : ce.target);
15892
15892
  if (!W) continue;
15893
15893
  if (S === "input") {
15894
- const Ne = W.type === "vault", Pe = W.phase !== e.data.phase, se = p.isEdgeEnteringGroup(W.id, e.data.id);
15895
- if (!(Ne || Pe || se)) continue;
15894
+ const Pe = W.type === "vault", Ne = W.phase !== e.data.phase, se = p.isEdgeEnteringGroup(W.id, e.data.id);
15895
+ if (!(Pe || Ne || se)) continue;
15896
15896
  } else {
15897
- const Ne = W.phase !== e.data.phase, Pe = p.isEdgeEnteringGroup(e.data.id, W.id);
15898
- if (!(Ne || Pe)) continue;
15897
+ const Pe = W.phase !== e.data.phase, Ne = p.isEdgeEnteringGroup(e.data.id, W.id);
15898
+ if (!(Pe || Ne)) continue;
15899
15899
  }
15900
15900
  const te = S === "input" ? ce.targetField || "input" : ce.sourceField || "output";
15901
15901
  let ie;
15902
15902
  if (S === "input" && ce.sourceField) {
15903
- const Ne = W.fields.output.find((Pe) => Pe.id === ce.sourceField);
15904
- ie = Ne == null ? void 0 : Ne.name;
15903
+ const Pe = W.fields.output.find((Ne) => Ne.id === ce.sourceField);
15904
+ ie = Pe == null ? void 0 : Pe.name;
15905
15905
  } else if (S === "output" && ce.targetField) {
15906
- const Ne = W.fields.input.find((Pe) => Pe.id === ce.targetField);
15907
- ie = Ne == null ? void 0 : Ne.name;
15906
+ const Pe = W.fields.input.find((Ne) => Ne.id === ce.targetField);
15907
+ ie = Pe == null ? void 0 : Pe.name;
15908
15908
  }
15909
15909
  const Ae = {
15910
15910
  edgeId: ce.id,
@@ -16126,13 +16126,13 @@ const uO = {
16126
16126
  m.value && v.value ? (_(), L(Va, {
16127
16127
  key: 0,
16128
16128
  color: J.value,
16129
- position: N.value,
16129
+ position: P.value,
16130
16130
  type: "bar"
16131
16131
  }, null, 8, ["color", "position"])) : ue("", !0)
16132
16132
  ]),
16133
16133
  C(l(Ii), {
16134
16134
  id: "output",
16135
- position: N.value,
16135
+ position: P.value,
16136
16136
  type: "source"
16137
16137
  }, null, 8, ["position"]),
16138
16138
  ne.value.has("output") ? (_(), L(qa, {
@@ -16150,13 +16150,13 @@ const uO = {
16150
16150
  D("div", IO, H(Q.name), 1),
16151
16151
  C(Va, {
16152
16152
  color: J.value,
16153
- position: N.value,
16153
+ position: P.value,
16154
16154
  type: ce < e.data.fields.output.length - 1 ? "trident" : "corner"
16155
16155
  }, null, 8, ["color", "position", "type"])
16156
16156
  ]),
16157
16157
  C(l(Ii), {
16158
16158
  id: `outputs@${Q.id}`,
16159
- position: N.value,
16159
+ position: P.value,
16160
16160
  type: "source"
16161
16161
  }, null, 8, ["id", "position"]),
16162
16162
  ne.value.has(Q.id) ? (_(), L(qa, {
@@ -16178,7 +16178,7 @@ const uO = {
16178
16178
  C(l(Ii), {
16179
16179
  id: `branch@${Q}`,
16180
16180
  connectable: !1,
16181
- position: P.value,
16181
+ position: N.value,
16182
16182
  type: "source"
16183
16183
  }, null, 8, ["id", "position"])
16184
16184
  ]))), 128))
@@ -16186,7 +16186,7 @@ const uO = {
16186
16186
  ], 2)
16187
16187
  ], 2));
16188
16188
  }
16189
- }), zf = /* @__PURE__ */ Te($O, [["__scopeId", "data-v-c0706d4a"]]), PO = /* @__PURE__ */ de({
16189
+ }), zf = /* @__PURE__ */ Te($O, [["__scopeId", "data-v-c0706d4a"]]), NO = /* @__PURE__ */ de({
16190
16190
  __name: "GroupNode",
16191
16191
  props: {
16192
16192
  data: {},
@@ -16205,7 +16205,7 @@ const uO = {
16205
16205
  }, null, 8, ["position"])
16206
16206
  ], 2));
16207
16207
  }
16208
- }), NO = /* @__PURE__ */ Te(PO, [["__scopeId", "data-v-61116224"]]), FO = /* @__PURE__ */ de({
16208
+ }), PO = /* @__PURE__ */ Te(NO, [["__scopeId", "data-v-61116224"]]), FO = /* @__PURE__ */ de({
16209
16209
  __name: "FlowCanvas",
16210
16210
  props: {
16211
16211
  flowId: {},
@@ -16234,7 +16234,7 @@ const uO = {
16234
16234
  }
16235
16235
  },
16236
16236
  readonly: e.mode !== "edit"
16237
- }), { addNode: h, propertiesPanelOpen: v, invalidConfigNodeIds: k, selectedNode: x, duplicateNode: E, commit: b, selectPortalEdge: w } = u, { screenToFlowCoordinate: I, zoomIn: $, zoomOut: K, viewport: N, maxZoom: P, minZoom: F } = s, {
16237
+ }), { addNode: h, propertiesPanelOpen: v, invalidConfigNodeIds: k, selectedNode: x, duplicateNode: E, commit: b, selectPortalEdge: w } = u, { screenToFlowCoordinate: I, zoomIn: $, zoomOut: K, viewport: P, maxZoom: N, minZoom: F } = s, {
16238
16238
  activeGroupId: J,
16239
16239
  startPanelDrag: q,
16240
16240
  endPanelDrag: U,
@@ -16268,14 +16268,14 @@ const uO = {
16268
16268
  W.preventDefault();
16269
16269
  const ie = JSON.parse(te);
16270
16270
  if (ie.action !== "create-node") return;
16271
- const Ae = I({ x: W.clientX, y: W.clientY }), { type: je, anchor: Ne } = ie.data, Pe = {
16271
+ const Ae = I({ x: W.clientX, y: W.clientY }), { type: je, anchor: Pe } = ie.data, Ne = {
16272
16272
  type: je,
16273
16273
  phase: e.phase,
16274
16274
  position: {
16275
- x: Ae.x - Ne.offsetX,
16276
- y: Ae.y - Ne.offsetY
16275
+ x: Ae.x - Pe.offsetX,
16276
+ y: Ae.y - Pe.offsetY
16277
16277
  }
16278
- }, se = h(Pe, !1);
16278
+ }, se = h(Ne, !1);
16279
16279
  if (!se) {
16280
16280
  U();
16281
16281
  return;
@@ -16288,8 +16288,8 @@ const uO = {
16288
16288
  const Q = T(() => {
16289
16289
  if (e.mode === "preview") return [];
16290
16290
  const W = [
16291
- { name: "zoom_in", icon: on, action: $, disabled: N.value.zoom >= P.value },
16292
- { name: "zoom_out", icon: Gr, action: K, disabled: N.value.zoom <= F.value },
16291
+ { name: "zoom_in", icon: on, action: $, disabled: P.value.zoom >= N.value },
16292
+ { name: "zoom_out", icon: Gr, action: K, disabled: P.value.zoom <= F.value },
16293
16293
  { name: "fit_view", icon: om, action: c }
16294
16294
  ];
16295
16295
  return e.mode === "edit" && W.push({ name: "auto_layout", icon: rm, action: z }), W;
@@ -16342,13 +16342,13 @@ const uO = {
16342
16342
  }, null, 8, ["data", "error", "readonly"])
16343
16343
  ]),
16344
16344
  "node-group": A(({ data: ie }) => [
16345
- C(NO, {
16345
+ C(PO, {
16346
16346
  active: l(J) === ie.id,
16347
16347
  data: ie
16348
16348
  }, null, 8, ["active", "data"])
16349
16349
  ]),
16350
16350
  default: A(() => [
16351
- C(l(Nm)),
16351
+ C(l(Pm)),
16352
16352
  C(l(Fm), {
16353
16353
  "fit-view-params": l(p),
16354
16354
  position: "bottom-left",
@@ -16391,9 +16391,9 @@ const uO = {
16391
16391
  resizable: { type: Boolean }
16392
16392
  },
16393
16393
  setup(e) {
16394
- const { t } = $t("en-us", Pt), n = X(!1), i = X(!1), { responsePanelCollapsed: a } = jo(), { state: o, configNodeCounts: r, clearPendingLayout: s, setPendingFitView: u, commit: d, clear: p, portalSelection: c } = _t(), f = Aa(), m = `${f}-request`, g = `${f}-response`, y = Li(m), h = Li(g);
16395
- function v(Pe, se) {
16396
- const { onPaneClick: re, onNodesChange: _e, onEdgesChange: he, getSelectedNodes: Re, getSelectedEdges: be } = Pe, { removeSelectedElements: Qe } = se;
16394
+ const { t } = $t("en-us", Nt), n = X(!1), i = X(!1), { responsePanelCollapsed: a } = jo(), { state: o, configNodeCounts: r, clearPendingLayout: s, setPendingFitView: u, commit: d, clear: p, portalSelection: c } = _t(), f = Aa(), m = `${f}-request`, g = `${f}-response`, y = Li(m), h = Li(g);
16395
+ function v(Ne, se) {
16396
+ const { onPaneClick: re, onNodesChange: _e, onEdgesChange: he, getSelectedNodes: Re, getSelectedEdges: be } = Ne, { removeSelectedElements: Qe } = se;
16397
16397
  function ve(Ee) {
16398
16398
  if (!Ee) {
16399
16399
  Qe();
@@ -16403,40 +16403,40 @@ const uO = {
16403
16403
  }
16404
16404
  _e(ve), he(ve), re(() => ve());
16405
16405
  }
16406
- v(y, h), v(h, y), ze(c, (Pe) => {
16407
- Pe && (y.removeSelectedElements(), h.removeSelectedElements());
16406
+ v(y, h), v(h, y), ze(c, (Ne) => {
16407
+ Ne && (y.removeSelectedElements(), h.removeSelectedElements());
16408
16408
  });
16409
- const k = ut("flowPanels"), x = ut("requestLabel"), E = ut("requestCanvasContainer"), b = ut("requestFlow"), w = ut("resizeHandle"), I = ut("responseLabel"), $ = ut("responseCanvasContainer"), K = ut("responseFlow"), N = ni(k), P = ni(x), F = ni(E), J = ni(w), q = ni(I), U = ni($), ee = T(() => Math.max(KO, N.height.value * or)), ne = T(
16410
- () => N.height.value - P.height.value - J.height.value - q.height.value
16409
+ const k = ut("flowPanels"), x = ut("requestLabel"), E = ut("requestCanvasContainer"), b = ut("requestFlow"), w = ut("resizeHandle"), I = ut("responseLabel"), $ = ut("responseCanvasContainer"), K = ut("responseFlow"), P = ni(k), N = ni(x), F = ni(E), J = ni(w), q = ni(I), U = ni($), ee = T(() => Math.max(KO, P.height.value * or)), ne = T(
16410
+ () => P.height.value - N.height.value - J.height.value - q.height.value
16411
16411
  ), V = T(() => {
16412
- const Pe = ne.value;
16413
- return Pe ? Math.max(or, ee.value / Pe) : or;
16412
+ const Ne = ne.value;
16413
+ return Ne ? Math.max(or, ee.value / Ne) : or;
16414
16414
  }), O = X(Ou), B = T(() => `${O.value * 100}%`), S = T(() => `${(1 - O.value) * 100}%`), z = T(() => O.value <= V.value), Q = T(() => 1 - O.value <= V.value);
16415
- function ce(Pe, { persist: se = !0 } = {}) {
16416
- const re = Math.min(1, Math.max(0, Pe));
16415
+ function ce(Ne, { persist: se = !0 } = {}) {
16416
+ const re = Math.min(1, Math.max(0, Ne));
16417
16417
  O.value = re, se && e.mode === "edit" && (a.value = Q.value);
16418
16418
  }
16419
- function W(Pe, se = !0) {
16420
- ce(Pe ? 1 : Ou, { persist: se });
16419
+ function W(Ne, se = !0) {
16420
+ ce(Ne ? 1 : Ou, { persist: se });
16421
16421
  }
16422
- function te(Pe = !0) {
16423
- ce(0, { persist: Pe });
16422
+ function te(Ne = !0) {
16423
+ ce(0, { persist: Ne });
16424
16424
  }
16425
16425
  if (e.mode === "edit") {
16426
- const Pe = r.value.response === 0, se = a.value;
16427
- W(Pe || se, !1);
16426
+ const Ne = r.value.response === 0, se = a.value;
16427
+ W(Ne || se, !1);
16428
16428
  } else
16429
- ze(() => r.value.response, (Pe) => {
16430
- W(Pe === 0, !1);
16429
+ ze(() => r.value.response, (Ne) => {
16430
+ W(Ne === 0, !1);
16431
16431
  }, { immediate: !0 });
16432
16432
  const ie = () => {
16433
16433
  e.resizable && (z.value ? W(!1) : te());
16434
16434
  }, Ae = () => {
16435
16435
  e.resizable && W(!Q.value);
16436
16436
  }, { isDragging: je } = $m(w, {
16437
- onMove(Pe) {
16437
+ onMove(Ne) {
16438
16438
  if (!e.resizable) return;
16439
- const se = Math.max(0, Pe.y - F.top.value), re = Math.min(
16439
+ const se = Math.max(0, Ne.y - F.top.value), re = Math.min(
16440
16440
  1,
16441
16441
  Math.max(
16442
16442
  0,
@@ -16449,21 +16449,21 @@ const uO = {
16449
16449
  e.resizable && (F.height.value < ee.value ? te() : U.height.value < ee.value ? W(!0) : ce(O.value));
16450
16450
  }
16451
16451
  });
16452
- function Ne() {
16452
+ function Pe() {
16453
16453
  Wt(() => {
16454
- var Pe, se;
16455
- (Pe = b.value) == null || Pe.fitView(), (se = K.value) == null || se.fitView();
16454
+ var Ne, se;
16455
+ (Ne = b.value) == null || Ne.fitView(), (se = K.value) == null || se.fitView();
16456
16456
  });
16457
16457
  }
16458
16458
  return ze(
16459
16459
  [n, i, () => o.value.pendingLayout, () => o.value.pendingFitView],
16460
- ([Pe, se, re, _e]) => {
16461
- e.inactive || !Pe || !se || !re && !_e || (re && s(), _e && u(!1), setTimeout(async () => {
16460
+ ([Ne, se, re, _e]) => {
16461
+ e.inactive || !Ne || !se || !re && !_e || (re && s(), _e && u(!1), setTimeout(async () => {
16462
16462
  var he, Re;
16463
- re && (await ((he = b.value) == null ? void 0 : he.autoLayout(!1)), await ((Re = K.value) == null ? void 0 : Re.autoLayout(!1)), d("*"), re === "clearHistory" && p()), _e && setTimeout(() => Ne(), 0);
16463
+ re && (await ((he = b.value) == null ? void 0 : he.autoLayout(!1)), await ((Re = K.value) == null ? void 0 : Re.autoLayout(!1)), d("*"), re === "clearHistory" && p()), _e && setTimeout(() => Pe(), 0);
16464
16464
  }, 0));
16465
16465
  }
16466
- ), (Pe, se) => (_(), G("div", {
16466
+ ), (Ne, se) => (_(), G("div", {
16467
16467
  ref_key: "flowPanels",
16468
16468
  ref: k,
16469
16469
  class: "flow-panels"
@@ -16616,7 +16616,7 @@ const uO = {
16616
16616
  __name: "EditorNav",
16617
16617
  emits: ["back"],
16618
16618
  setup(e, { emit: t }) {
16619
- const { t: n } = $t("en-us", Pt), i = t, a = [
16619
+ const { t: n } = $t("en-us", Nt), i = t, a = [
16620
16620
  {
16621
16621
  label: n("plugins.free-form.datakit.flow_editor.return_to_config"),
16622
16622
  icon: sm,
@@ -16699,7 +16699,7 @@ const uO = {
16699
16699
  }, t$ = /* @__PURE__ */ de({
16700
16700
  __name: "EditorMain",
16701
16701
  setup(e) {
16702
- const { t } = $t("en-us", Pt), { modalOpen: n, undo: i, redo: a, canUndo: o, canRedo: r, load: s } = _t();
16702
+ const { t } = $t("en-us", Nt), { modalOpen: n, undo: i, redo: a, canUndo: o, canRedo: r, load: s } = _t();
16703
16703
  function u(c) {
16704
16704
  const f = ro[c], m = vn.load(f, {
16705
16705
  schema: Vn,
@@ -16889,7 +16889,7 @@ const uO = {
16889
16889
  hideTitle: { type: Boolean }
16890
16890
  },
16891
16891
  setup(e) {
16892
- const { t } = $t("en-us", Pt), { createNode: n } = _t(), i = `dk-drag-preview-${Aa()}`, a = nn(), o = T(() => a.value ? [
16892
+ const { t } = $t("en-us", Nt), { createNode: n } = _t(), i = `dk-drag-preview-${Aa()}`, a = nn(), o = T(() => a.value ? [
16893
16893
  {
16894
16894
  id: "preview",
16895
16895
  type: "flow",
@@ -16897,7 +16897,7 @@ const uO = {
16897
16897
  position: { x: 0, y: 0 }
16898
16898
  }
16899
16899
  ] : []), r = async (s, u) => {
16900
- var $, K, N;
16900
+ var $, K, P;
16901
16901
  const d = s.currentTarget, { left: p, top: c, width: f, height: m } = d.getBoundingClientRect(), g = s.clientX - p, y = s.clientY - c;
16902
16902
  a.value = n({ type: u }), await Wt();
16903
16903
  const h = document.querySelector(`#${i}`) || d, v = h.cloneNode(!0);
@@ -16917,7 +16917,7 @@ const uO = {
16917
16917
  anchor: w
16918
16918
  }
16919
16919
  };
16920
- ($ = s.dataTransfer) == null || $.setData(sa, JSON.stringify(I)), (K = s.dataTransfer) == null || K.setData(`${sa}/${u}`, u), (N = s.dataTransfer) == null || N.setDragImage(
16920
+ ($ = s.dataTransfer) == null || $.setData(sa, JSON.stringify(I)), (K = s.dataTransfer) == null || K.setData(`${sa}/${u}`, u), (P = s.dataTransfer) == null || P.setDragImage(
16921
16921
  v,
16922
16922
  w.offsetX,
16923
16923
  w.offsetY
@@ -17104,7 +17104,7 @@ const v$ = /* @__PURE__ */ de({
17104
17104
  entries: a,
17105
17105
  addEntry: o,
17106
17106
  removeEntry: r
17107
- } = No(n, i), s = X(null), u = X(null), { i18n: { t: d } } = Ze.useI18n(), p = T(() => new Set(a.value.map((v) => v.key))), c = () => {
17107
+ } = Po(n, i), s = X(null), u = X(null), { i18n: { t: d } } = Ze.useI18n(), p = T(() => new Set(a.value.map((v) => v.key))), c = () => {
17108
17108
  const v = o();
17109
17109
  u.value = v, s.value = v;
17110
17110
  }, f = () => {
@@ -17237,7 +17237,7 @@ function A$() {
17237
17237
  const I$ = { class: "dk-cache-panel" }, T$ = { class: "title" }, S$ = {
17238
17238
  key: 0,
17239
17239
  class: "cache-item"
17240
- }, O$ = { class: "cache-item-key" }, $$ = { class: "cache-item-key-text" }, P$ = { class: "dk-resource-cache-form" }, N$ = { key: 1 }, F$ = {
17240
+ }, O$ = { class: "cache-item-key" }, $$ = { class: "cache-item-key-text" }, N$ = { class: "dk-resource-cache-form" }, P$ = { key: 1 }, F$ = {
17241
17241
  key: 2,
17242
17242
  class: "dk-cache-inline-redis"
17243
17243
  }, R$ = /* @__PURE__ */ de({
@@ -17345,9 +17345,9 @@ const I$ = { class: "dk-cache-panel" }, T$ = { class: "title" }, S$ = {
17345
17345
  onProceed: y
17346
17346
  }, {
17347
17347
  default: A(() => {
17348
- var N, P;
17348
+ var P, N;
17349
17349
  return [
17350
- D("div", P$, [
17350
+ D("div", N$, [
17351
17351
  C(Qd, {
17352
17352
  items: [
17353
17353
  { label: l(s)("plugins.free-form.datakit.flow_editor.panel_segments.resources.cache.strategy_options.memory"), value: "memory" },
@@ -17360,7 +17360,7 @@ const I$ = { class: "dk-cache-panel" }, T$ = { class: "title" }, S$ = {
17360
17360
  key: 0,
17361
17361
  name: "memory.dictionary_name"
17362
17362
  })) : ue("", !0),
17363
- d.value === "redis" ? (_(), G("div", N$, [
17363
+ d.value === "redis" ? (_(), G("div", P$, [
17364
17364
  C(I, null, {
17365
17365
  default: A(() => [
17366
17366
  ye(H(l(s)("plugins.free-form.datakit.flow_editor.panel_segments.resources.cache.select_redis_configuration")), 1)
@@ -17368,12 +17368,12 @@ const I$ = { class: "dk-cache-panel" }, T$ = { class: "title" }, S$ = {
17368
17368
  _: 1
17369
17369
  }),
17370
17370
  C(l(ec), {
17371
- "model-value": (N = l(a).cache) == null ? void 0 : N.partial_id,
17371
+ "model-value": (P = l(a).cache) == null ? void 0 : P.partial_id,
17372
17372
  "redis-type": "redis-ee",
17373
17373
  "onUpdate:modelValue": x[0] || (x[0] = (F) => l(a).cache.partial_id = F)
17374
17374
  }, null, 8, ["model-value"])
17375
17375
  ])) : ue("", !0),
17376
- d.value === "redis" && !((P = l(a).cache) != null && P.partial_id) && p.value ? (_(), G("div", F$, [
17376
+ d.value === "redis" && !((N = l(a).cache) != null && N.partial_id) && p.value ? (_(), G("div", F$, [
17377
17377
  D("div", null, H(l(s)("plugins.free-form.datakit.flow_editor.panel_segments.resources.cache.inline_config_preview")), 1),
17378
17378
  C($, {
17379
17379
  id: "dk-cache-redis-configuration",
@@ -17453,7 +17453,7 @@ const I$ = { class: "dk-cache-panel" }, T$ = { class: "title" }, S$ = {
17453
17453
  }), K$ = /* @__PURE__ */ Te(j$, [["__scopeId", "data-v-3a9010b8"]]), D$ = { class: "header" }, q$ = { class: "title" }, V$ = { class: "body" }, U$ = { class: "panel" }, B$ = /* @__PURE__ */ de({
17454
17454
  __name: "SidePanel",
17455
17455
  setup(e) {
17456
- const { t } = $t("en-us", Pt), { sidePanelExpanded: n } = jo(), { propertiesPanelOpen: i, selectedNode: a } = _t(), o = X("nodes");
17456
+ const { t } = $t("en-us", Nt), { sidePanelExpanded: n } = jo(), { propertiesPanelOpen: i, selectedNode: a } = _t(), o = X("nodes");
17457
17457
  function r() {
17458
17458
  i.value = !1;
17459
17459
  }
@@ -17582,7 +17582,7 @@ function Wf(e, t, n) {
17582
17582
  }
17583
17583
  });
17584
17584
  }
17585
- const Y$ = M.enum(ef), J$ = M.enum(Wi), Yf = (e) => Wi.includes(e), Ms = M.enum(tf), Pu = Ms.options;
17585
+ const Y$ = M.enum(ef), J$ = M.enum(Wi), Yf = (e) => Wi.includes(e), Ms = M.enum(tf), Nu = Ms.options;
17586
17586
  M.union([
17587
17587
  Ms,
17588
17588
  Y$
@@ -17595,13 +17595,13 @@ const X$ = /^[A-Za-z_][A-Za-z0-9_-]{0,254}$/, Jf = M.string().min(1).max(255).re
17595
17595
  Jf
17596
17596
  ]), Z$ = M.string().min(1).brand(), Q$ = ["then", "else"];
17597
17597
  M.enum(Q$);
17598
- const eP = M.string().min(1).max(255).refine((e) => {
17598
+ const eN = M.string().min(1).max(255).refine((e) => {
17599
17599
  if (go.safeParse(e).success) return !0;
17600
17600
  const t = e.match(/^([^.]+)\.([^.]+)$/);
17601
17601
  if (!t) return !1;
17602
17602
  const [, n, i] = t;
17603
17603
  return go.safeParse(n).success && Z$.safeParse(i).success;
17604
- }, 'Invalid connection, expected "NODE" or "NODE.FIELD"'), ct = eP.nullish(), tP = M.object({
17604
+ }, 'Invalid connection, expected "NODE" or "NODE.FIELD"'), ct = eN.nullish(), tN = M.object({
17605
17605
  body: ct,
17606
17606
  headers: ct,
17607
17607
  http_proxy: ct,
@@ -17610,10 +17610,10 @@ const eP = M.string().min(1).max(255).refine((e) => {
17610
17610
  proxy_auth_username: ct,
17611
17611
  query: ct,
17612
17612
  url: ct
17613
- }).partial().strict(), nP = M.object({
17613
+ }).partial().strict(), nN = M.object({
17614
17614
  headers: ct,
17615
17615
  body: ct
17616
- }).partial().strict(), iP = M.object({
17616
+ }).partial().strict(), iN = M.object({
17617
17617
  data: ct,
17618
17618
  key: ct,
17619
17619
  ttl: ct
@@ -17626,21 +17626,21 @@ const eP = M.string().min(1).max(255).refine((e) => {
17626
17626
  outputs: M.record(M.string().min(1).max(255), ct).nullish()
17627
17627
  }).loose().superRefine((e, t) => {
17628
17628
  Hf(e, t);
17629
- }), aP = M.object({ type: M.string(), name: M.string() }).loose().superRefine((e, t) => {
17629
+ }), aN = M.object({ type: M.string(), name: M.string() }).loose().superRefine((e, t) => {
17630
17630
  const n = e.type, i = e.name;
17631
17631
  (typeof i != "string" || i.length === 0 || i.includes(".")) && t.addIssue({
17632
17632
  code: "custom",
17633
17633
  path: ["name"],
17634
17634
  message: "invalid node name",
17635
17635
  fatal: !1
17636
- }), Pu.includes(n) || t.addIssue({
17636
+ }), Nu.includes(n) || t.addIssue({
17637
17637
  code: "custom",
17638
17638
  path: ["type"],
17639
- message: `unknown node type "${n}", expected one of: ${Pu.join(
17639
+ message: `unknown node type "${n}", expected one of: ${Nu.join(
17640
17640
  ", "
17641
17641
  )}`
17642
17642
  });
17643
- }), oP = Ln.safeExtend({
17643
+ }), oN = Ln.safeExtend({
17644
17644
  type: M.literal("call"),
17645
17645
  /**
17646
17646
  * A string representing an HTTP method, such as GET, POST, PUT, or DELETE.
@@ -17661,14 +17661,14 @@ const eP = M.string().min(1).max(255).refine((e) => {
17661
17661
  * https://example.com/path/to/resource?q=search
17662
17662
  */
17663
17663
  url: M.url().nullish(),
17664
- inputs: tP.nullish(),
17664
+ inputs: tN.nullish(),
17665
17665
  outputs: M.object({
17666
17666
  body: ct,
17667
17667
  headers: ct,
17668
17668
  raw_body: ct,
17669
17669
  status: ct
17670
17670
  }).partial().nullish()
17671
- }).strict(), rP = Ln.safeExtend({
17671
+ }).strict(), rN = Ln.safeExtend({
17672
17672
  type: M.literal("exit"),
17673
17673
  /**
17674
17674
  * HTTP status code.
@@ -17677,10 +17677,10 @@ const eP = M.string().min(1).max(255).refine((e) => {
17677
17677
  status: M.number().int().min(200).max(599).default(200).nullish(),
17678
17678
  /** When true, warn if headers have been sent already. */
17679
17679
  warn_headers_sent: M.boolean().nullish(),
17680
- inputs: nP.nullish(),
17680
+ inputs: nN.nullish(),
17681
17681
  output: M.never().nullish(),
17682
17682
  outputs: M.never().nullish()
17683
- }).strict(), sP = Ln.safeExtend({
17683
+ }).strict(), sN = Ln.safeExtend({
17684
17684
  type: M.literal("jq"),
17685
17685
  /**
17686
17686
  * The jq filter text. Refer to https://jqlang.org/manual/ for full documentation.
@@ -17688,7 +17688,7 @@ const eP = M.string().min(1).max(255).refine((e) => {
17688
17688
  */
17689
17689
  jq: M.string().min(1).max(10240),
17690
17690
  outputs: M.never().nullish()
17691
- }).strict(), lP = Ln.safeExtend({
17691
+ }).strict(), lN = Ln.safeExtend({
17692
17692
  type: M.literal("xml_to_json"),
17693
17693
  /**
17694
17694
  * Automatically detect primitive types (numbers, booleans) when converting.
@@ -17720,7 +17720,7 @@ const eP = M.string().min(1).max(255).refine((e) => {
17720
17720
  path: ["attributes_name_prefix"],
17721
17721
  message: "At least one of attributes_block_name or attributes_name_prefix is required"
17722
17722
  }));
17723
- }), uP = Ln.safeExtend({
17723
+ }), uN = Ln.safeExtend({
17724
17724
  type: M.literal("json_to_xml"),
17725
17725
  attributes_block_name: M.string().min(1).max(32).nullish(),
17726
17726
  attributes_name_prefix: M.string().min(1).max(32).nullish(),
@@ -17738,7 +17738,7 @@ const eP = M.string().min(1).max(255).refine((e) => {
17738
17738
  path: ["attributes_name_prefix"],
17739
17739
  message: "At least one of attributes_block_name or attributes_name_prefix is required"
17740
17740
  }));
17741
- }), cP = Ln.safeExtend({
17741
+ }), cN = Ln.safeExtend({
17742
17742
  type: M.literal("property"),
17743
17743
  /**
17744
17744
  * The expected MIME type of the property value. When set to `application/json`,
@@ -17750,17 +17750,17 @@ const eP = M.string().min(1).max(255).refine((e) => {
17750
17750
  property: M.string().min(1),
17751
17751
  inputs: M.never().nullish(),
17752
17752
  outputs: M.never().nullish()
17753
- }).strict(), dP = Ln.safeExtend({
17753
+ }).strict(), dN = Ln.safeExtend({
17754
17754
  type: M.literal("static"),
17755
17755
  /** An object with string keys and free-form values. */
17756
17756
  values: M.record(M.string(), M.unknown()),
17757
17757
  input: M.never().nullish(),
17758
17758
  inputs: M.never().nullish()
17759
- }).strict(), fP = Ln.safeExtend({
17759
+ }).strict(), fN = Ln.safeExtend({
17760
17760
  type: M.literal("cache"),
17761
17761
  /** When true, skip cache errors and continue execution. */
17762
17762
  bypass_on_error: M.boolean().nullish(),
17763
- inputs: iP.nullish(),
17763
+ inputs: iN.nullish(),
17764
17764
  outputs: M.object({
17765
17765
  data: ct,
17766
17766
  hit: ct,
@@ -17769,34 +17769,34 @@ const eP = M.string().min(1).max(255).refine((e) => {
17769
17769
  }).partial().nullish(),
17770
17770
  /** Cache entry time-to-live in seconds. */
17771
17771
  ttl: M.number().int().gt(0).nullish()
17772
- }).strict(), pP = Ln.safeExtend({
17772
+ }).strict(), pN = Ln.safeExtend({
17773
17773
  type: M.literal("branch"),
17774
17774
  then: M.array(go).nullish(),
17775
17775
  else: M.array(go).nullish()
17776
- }).strict(), mP = aP.pipe(
17776
+ }).strict(), mN = aN.pipe(
17777
17777
  M.discriminatedUnion("type", [
17778
- oP,
17779
- rP,
17780
- sP,
17781
- lP,
17782
- uP,
17783
- cP,
17784
- dP,
17785
- fP,
17786
- pP
17778
+ oN,
17779
+ rN,
17780
+ sN,
17781
+ lN,
17782
+ uN,
17783
+ cN,
17784
+ dN,
17785
+ fN,
17786
+ pN
17787
17787
  ])
17788
- ), gP = M.record(
17788
+ ), gN = M.record(
17789
17789
  M.string().regex(/^[A-Za-z_][A-Za-z0-9_-]*$/).min(1).max(255),
17790
17790
  M.string().min(1).max(4095)
17791
- ), hP = M.object({
17791
+ ), hN = M.object({
17792
17792
  dictionary_name: M.string().nullish().default("kong_db_cache")
17793
- }), vP = M.object({
17793
+ }), vN = M.object({
17794
17794
  host: M.string().default("127.0.0.1"),
17795
17795
  port: M.number().int().min(0).max(65535).default(6379)
17796
- }), yP = M.object({
17796
+ }), yN = M.object({
17797
17797
  ip: M.string().default("127.0.0.1"),
17798
17798
  port: M.number().int().min(0).max(65535).default(6379)
17799
- }), _P = M.object({
17799
+ }), _N = M.object({
17800
17800
  host: M.string().nullish().default("127.0.0.1"),
17801
17801
  port: M.number().int().min(0).max(65535).nullish().default(6379),
17802
17802
  connect_timeout: M.number().int().min(0).max(2147483646).nullish().default(2e3),
@@ -17811,8 +17811,8 @@ const eP = M.string().min(1).max(255).refine((e) => {
17811
17811
  keepalive_backlog: M.number().int().min(0).max(2147483646).nullish(),
17812
17812
  sentinel_master: M.string().nullish(),
17813
17813
  sentinel_role: M.enum(["master", "slave", "any"]).nullish(),
17814
- sentinel_nodes: M.array(vP).min(1, { message: "sentinel_nodes must contain at least 1 item" }).nullish(),
17815
- cluster_nodes: M.array(yP).min(1, { message: "cluster_nodes must contain at least 1 item" }).nullish(),
17814
+ sentinel_nodes: M.array(vN).min(1, { message: "sentinel_nodes must contain at least 1 item" }).nullish(),
17815
+ cluster_nodes: M.array(yN).min(1, { message: "cluster_nodes must contain at least 1 item" }).nullish(),
17816
17816
  ssl: M.boolean().default(!1).nullish(),
17817
17817
  ssl_verify: M.boolean().default(!1).nullish(),
17818
17818
  server_name: M.string().nullish(),
@@ -17858,23 +17858,23 @@ const eP = M.string().min(1).max(255).refine((e) => {
17858
17858
  message: "host is required when connection_is_proxied is true (host/port should point to the proxy)",
17859
17859
  path: ["host"]
17860
17860
  });
17861
- }), bP = M.object({
17861
+ }), bN = M.object({
17862
17862
  strategy: M.enum(["memory", "redis"]).nullish(),
17863
- memory: hP,
17864
- redis: _P
17865
- }), wP = M.object({
17866
- vault: gP.nullish(),
17867
- cache: bP.nullish()
17863
+ memory: hN,
17864
+ redis: _N
17865
+ }), wN = M.object({
17866
+ vault: gN.nullish(),
17867
+ cache: bN.nullish()
17868
17868
  });
17869
17869
  M.array(M.object({ id: M.string() }));
17870
17870
  M.object({
17871
- nodes: M.array(mP).min(1, "At least one node is required").max(64),
17871
+ nodes: M.array(mN).min(1, "At least one node is required").max(64),
17872
17872
  debug: M.boolean().default(!1).nullish(),
17873
- resources: wP.nullish()
17873
+ resources: wN.nullish()
17874
17874
  }).strict().superRefine((e, t) => {
17875
17875
  Wf(e, Wi, t);
17876
17876
  });
17877
- const Nu = Ms.options, Vr = M.string().min(1).refine((e) => !e.includes("."), "Invalid node name").refine(
17877
+ const Pu = Ms.options, Vr = M.string().min(1).refine((e) => !e.includes("."), "Invalid node name").refine(
17878
17878
  (e) => !Yf(e),
17879
17879
  "Node name conflicts with reserved implicit node"
17880
17880
  ), Ct = M.string().refine((e) => {
@@ -17894,13 +17894,13 @@ const Nu = Ms.options, Vr = M.string().min(1).refine((e) => !e.includes("."), "I
17894
17894
  data: Ct.nullish(),
17895
17895
  key: Ct.nullish(),
17896
17896
  ttl: Ct.nullish()
17897
- }).partial().strict(), kP = {
17897
+ }).partial().strict(), kN = {
17898
17898
  call: Zf,
17899
17899
  exit: Qf,
17900
17900
  cache: ep
17901
17901
  };
17902
- function CP(e) {
17903
- const t = kP[e];
17902
+ function CN(e) {
17903
+ const t = kN[e];
17904
17904
  return t ? Object.keys(t.shape) : null;
17905
17905
  }
17906
17906
  const jn = M.object({
@@ -17912,21 +17912,21 @@ const jn = M.object({
17912
17912
  outputs: M.record(M.string(), Ct.nullish()).nullish()
17913
17913
  }).loose().superRefine((e, t) => {
17914
17914
  Hf(e, t);
17915
- }), EP = M.object({ type: M.string(), name: M.string() }).loose().superRefine((e, t) => {
17915
+ }), EN = M.object({ type: M.string(), name: M.string() }).loose().superRefine((e, t) => {
17916
17916
  const n = e.type, i = e.name;
17917
17917
  (typeof i != "string" || i.length === 0 || i.includes(".")) && t.addIssue({
17918
17918
  code: "custom",
17919
17919
  path: ["name"],
17920
17920
  message: "Invalid node name",
17921
17921
  fatal: !1
17922
- }), Nu.includes(n) || t.addIssue({
17922
+ }), Pu.includes(n) || t.addIssue({
17923
17923
  code: "custom",
17924
17924
  path: ["type"],
17925
- message: `unknown node type "${n}", expected one of: ${Nu.join(
17925
+ message: `unknown node type "${n}", expected one of: ${Pu.join(
17926
17926
  ", "
17927
17927
  )}`
17928
17928
  });
17929
- }), xP = jn.safeExtend({
17929
+ }), xN = jn.safeExtend({
17930
17930
  type: M.literal("call"),
17931
17931
  method: Xf.nullish(),
17932
17932
  ssl_server_name: M.string().nullish(),
@@ -17939,18 +17939,18 @@ const jn = M.object({
17939
17939
  headers: Ct.nullish(),
17940
17940
  status: Ct.nullish()
17941
17941
  }).partial().nullish()
17942
- }).strict(), AP = jn.safeExtend({
17942
+ }).strict(), AN = jn.safeExtend({
17943
17943
  type: M.literal("exit"),
17944
17944
  status: M.union([M.number(), M.string()]).nullish(),
17945
17945
  warn_headers_sent: M.boolean().nullish(),
17946
17946
  inputs: Qf.nullish(),
17947
17947
  output: M.never().nullish(),
17948
17948
  outputs: M.never().nullish()
17949
- }).strict(), IP = jn.safeExtend({
17949
+ }).strict(), IN = jn.safeExtend({
17950
17950
  type: M.literal("jq"),
17951
17951
  jq: M.string().nullish(),
17952
17952
  outputs: M.never().nullish()
17953
- }).strict(), TP = jn.safeExtend({
17953
+ }).strict(), TN = jn.safeExtend({
17954
17954
  type: M.literal("xml_to_json"),
17955
17955
  recognize_type: M.boolean().nullish(),
17956
17956
  attributes_block_name: M.string().nullish(),
@@ -17960,7 +17960,7 @@ const jn = M.object({
17960
17960
  xpath: M.string().nullish(),
17961
17961
  inputs: M.never().nullish(),
17962
17962
  outputs: M.never().nullish()
17963
- }).strict(), SP = jn.safeExtend({
17963
+ }).strict(), SN = jn.safeExtend({
17964
17964
  type: M.literal("json_to_xml"),
17965
17965
  attributes_block_name: M.string().nullish(),
17966
17966
  attributes_name_prefix: M.string().nullish(),
@@ -17968,18 +17968,18 @@ const jn = M.object({
17968
17968
  text_block_name: M.string().nullish(),
17969
17969
  inputs: M.record(M.string(), Ct.nullish()).nullish(),
17970
17970
  outputs: M.never().nullish()
17971
- }).strict(), OP = jn.safeExtend({
17971
+ }).strict(), ON = jn.safeExtend({
17972
17972
  type: M.literal("property"),
17973
17973
  content_type: M.string().nullish(),
17974
17974
  property: M.string().nullish(),
17975
17975
  inputs: M.never().nullish(),
17976
17976
  outputs: M.never().nullish()
17977
- }).strict(), $P = jn.safeExtend({
17977
+ }).strict(), $N = jn.safeExtend({
17978
17978
  type: M.literal("static"),
17979
17979
  values: M.record(M.string(), M.unknown()).nullish(),
17980
17980
  input: M.never().nullish(),
17981
17981
  inputs: M.never().nullish()
17982
- }).strict(), PP = jn.safeExtend({
17982
+ }).strict(), NN = jn.safeExtend({
17983
17983
  type: M.literal("cache"),
17984
17984
  bypass_on_error: M.boolean().nullish(),
17985
17985
  inputs: ep.nullish(),
@@ -17990,35 +17990,35 @@ const jn = M.object({
17990
17990
  stored: Ct.nullish()
17991
17991
  }).partial().nullish(),
17992
17992
  ttl: M.union([M.number(), M.string()]).nullish()
17993
- }).strict(), NP = jn.safeExtend({
17993
+ }).strict(), PN = jn.safeExtend({
17994
17994
  type: M.literal("branch"),
17995
17995
  then: M.array(Vr).nullish(),
17996
17996
  else: M.array(Vr).nullish()
17997
- }).strict(), FP = EP.pipe(
17997
+ }).strict(), FN = EN.pipe(
17998
17998
  M.discriminatedUnion("type", [
17999
- xP,
18000
- AP,
18001
- IP,
18002
- TP,
18003
- SP,
18004
- OP,
18005
- $P,
18006
- PP,
18007
- NP
17999
+ xN,
18000
+ AN,
18001
+ IN,
18002
+ TN,
18003
+ SN,
18004
+ ON,
18005
+ $N,
18006
+ NN,
18007
+ PN
18008
18008
  ])
18009
- ), RP = M.record(M.string(), M.string()), MP = M.object({
18009
+ ), RN = M.record(M.string(), M.string()), MN = M.object({
18010
18010
  dictionary_name: M.string().nullish()
18011
- }), LP = M.object(), jP = M.object({
18011
+ }), LN = M.object(), jN = M.object({
18012
18012
  strategy: M.enum(["memory", "redis"]).nullish(),
18013
- memory: MP.nullish(),
18014
- redis: LP.nullish()
18015
- }), KP = M.object({
18016
- vault: RP.nullish(),
18017
- cache: jP.nullish()
18013
+ memory: MN.nullish(),
18014
+ redis: LN.nullish()
18015
+ }), KN = M.object({
18016
+ vault: RN.nullish(),
18017
+ cache: jN.nullish()
18018
18018
  }), tp = M.object({
18019
- nodes: M.array(FP).nullish(),
18019
+ nodes: M.array(FN).nullish(),
18020
18020
  debug: M.boolean().nullish(),
18021
- resources: KP.nullish()
18021
+ resources: KN.nullish()
18022
18022
  }).strict().superRefine((e, t) => {
18023
18023
  !e || !Array.isArray(e.nodes) || Wf(e, Wi, t);
18024
18024
  }).nullish(), Fu = /* @__PURE__ */ de({
@@ -18037,7 +18037,7 @@ const jn = M.object({
18037
18037
  const o = a.fields.map((s) => Object.keys(s)[0]);
18038
18038
  if (Bt(e.nodeType))
18039
18039
  return o;
18040
- const r = CP(e.nodeType);
18040
+ const r = CN(e.nodeType);
18041
18041
  return r === null ? o : r.length === 0 ? [] : uw(o, r);
18042
18042
  });
18043
18043
  return (a, o) => (_(), L(Gt, {
@@ -18067,7 +18067,7 @@ const jn = M.object({
18067
18067
  _: 3
18068
18068
  }, 8, ["name"]));
18069
18069
  }
18070
- }), DP = ["data-testid"], qP = { class: "dk-inputs-map-field-entry-body" }, VP = { class: "dk-inputs-map-field-entry-content" }, UP = /* @__PURE__ */ de({
18070
+ }), DN = ["data-testid"], qN = { class: "dk-inputs-map-field-entry-body" }, VN = { class: "dk-inputs-map-field-entry-content" }, UN = /* @__PURE__ */ de({
18071
18071
  __name: "InputsMapField",
18072
18072
  props: {
18073
18073
  items: {},
@@ -18091,7 +18091,7 @@ const jn = M.object({
18091
18091
  addEntry: o,
18092
18092
  removeEntry: r,
18093
18093
  field: s
18094
- } = No(n, i), { i18n: { t: u } } = Xe(), d = ut("root"), p = X(null), c = X({});
18094
+ } = Po(n, i), { i18n: { t: u } } = Xe(), d = ut("root"), p = X(null), c = X({});
18095
18095
  let f;
18096
18096
  async function m(b, w = "key") {
18097
18097
  var I;
@@ -18138,7 +18138,7 @@ const jn = M.object({
18138
18138
  return ze(() => a.value, (b) => {
18139
18139
  p.value && (b.find(({ id: w }) => w === p.value) || (p.value = null));
18140
18140
  }), (b, w) => {
18141
- const I = oe("KAlert"), $ = oe("KLabel"), K = oe("KInput"), N = oe("KSelect"), P = oe("KButton");
18141
+ const I = oe("KAlert"), $ = oe("KLabel"), K = oe("KInput"), P = oe("KSelect"), N = oe("KButton");
18142
18142
  return l(s).error ? (_(), L(I, {
18143
18143
  key: 0,
18144
18144
  appearance: "danger",
@@ -18162,8 +18162,8 @@ const jn = M.object({
18162
18162
  ]),
18163
18163
  _: 1
18164
18164
  }, 8, ["for"]),
18165
- D("div", qP, [
18166
- D("div", VP, [
18165
+ D("div", qN, [
18166
+ D("div", VN, [
18167
18167
  C(K, {
18168
18168
  id: `ff-kv-entry-key-${l(s).path.value}.${J}`,
18169
18169
  modelValue: F.key,
@@ -18179,7 +18179,7 @@ const jn = M.object({
18179
18179
  onChange: (q) => v(F),
18180
18180
  onFocus: (q) => h(F)
18181
18181
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "data-key-input", "data-testid", "error", "error-message", "placeholder", "onBlur", "onChange", "onFocus"]),
18182
- C(N, {
18182
+ C(P, {
18183
18183
  modelValue: F.value,
18184
18184
  "onUpdate:modelValue": (q) => F.value = q,
18185
18185
  class: "ff-kv-field-entry-value",
@@ -18200,7 +18200,7 @@ const jn = M.object({
18200
18200
  } : void 0
18201
18201
  ]), 1032, ["modelValue", "onUpdate:modelValue", "data-testid", "items", "label", "placeholder", "onChange"])
18202
18202
  ]),
18203
- C(P, {
18203
+ C(N, {
18204
18204
  appearance: "tertiary",
18205
18205
  class: "dk-inputs-map-field-remove-btn",
18206
18206
  "data-testid": `ff-kv-remove-btn-${l(s).path.value}.${J}`,
@@ -18213,8 +18213,8 @@ const jn = M.object({
18213
18213
  _: 1
18214
18214
  }, 8, ["data-testid", "onClick"])
18215
18215
  ])
18216
- ], 8, DP))), 128)),
18217
- C(P, {
18216
+ ], 8, DN))), 128)),
18217
+ C(N, {
18218
18218
  appearance: "tertiary",
18219
18219
  "data-testid": `ff-kv-add-btn-${l(s).path.value}`,
18220
18220
  disabled: !!p.value,
@@ -18229,13 +18229,13 @@ const jn = M.object({
18229
18229
  ], 512));
18230
18230
  };
18231
18231
  }
18232
- }), BP = /* @__PURE__ */ Te(UP, [["__scopeId", "data-v-dda8b239"]]), GP = { class: "dk-source-item" }, zP = /* @__PURE__ */ de({
18232
+ }), BN = /* @__PURE__ */ Te(UN, [["__scopeId", "data-v-dda8b239"]]), GN = { class: "dk-source-item" }, zN = /* @__PURE__ */ de({
18233
18233
  __name: "SourceItem",
18234
18234
  props: {
18235
18235
  item: {}
18236
18236
  },
18237
18237
  setup(e) {
18238
- return (t, n) => (_(), G("span", GP, [
18238
+ return (t, n) => (_(), G("span", GN, [
18239
18239
  (_(), L(bt(l(Ft)[e.item.type].icon), {
18240
18240
  color: l(zi),
18241
18241
  size: l(oa)
@@ -18243,10 +18243,10 @@ const jn = M.object({
18243
18243
  ye(" " + H(e.item.label), 1)
18244
18244
  ]));
18245
18245
  }
18246
- }), ho = /* @__PURE__ */ Te(zP, [["__scopeId", "data-v-78ea8dff"]]), HP = {
18246
+ }), ho = /* @__PURE__ */ Te(zN, [["__scopeId", "data-v-78ea8dff"]]), HN = {
18247
18247
  key: 1,
18248
18248
  class: "dk-inputs-field-or"
18249
- }, WP = /* @__PURE__ */ de({
18249
+ }, WN = /* @__PURE__ */ de({
18250
18250
  __name: "InputsField",
18251
18251
  props: {
18252
18252
  items: {},
@@ -18256,7 +18256,7 @@ const jn = M.object({
18256
18256
  },
18257
18257
  emits: ["change:input", "change:inputs", "add:field", "remove:field", "rename:field"],
18258
18258
  setup(e, { emit: t }) {
18259
- const n = t, { getSchema: i } = st(), { i18n: { t: a } } = Xe(), o = T(() => i("inputs")), r = T(() => o.value ? o.value.type === "record" ? Fu : BP : null);
18259
+ const n = t, { getSchema: i } = st(), { i18n: { t: a } } = Xe(), o = T(() => i("inputs")), r = T(() => o.value ? o.value.type === "record" ? Fu : BN : null);
18260
18260
  function s(f) {
18261
18261
  n("change:input", f ? f.value : null);
18262
18262
  }
@@ -18303,7 +18303,7 @@ const jn = M.object({
18303
18303
  ]),
18304
18304
  _: 3
18305
18305
  }, 8, ["items", "label", "placeholder"])) : ue("", !0),
18306
- r.value ? (_(), G("div", HP, [
18306
+ r.value ? (_(), G("div", HN, [
18307
18307
  D("span", null, H(l(a)("plugins.free-form.datakit.flow_editor.node_properties.input.or")), 1)
18308
18308
  ])) : ue("", !0),
18309
18309
  r.value ? (_(), L(l(Gn), {
@@ -18333,7 +18333,7 @@ const jn = M.object({
18333
18333
  }, 16, ["items", "key-order"])) : ue("", !0)
18334
18334
  ], 64));
18335
18335
  }
18336
- }), En = /* @__PURE__ */ Te(WP, [["__scopeId", "data-v-f80a82e6"]]), YP = {
18336
+ }), En = /* @__PURE__ */ Te(WN, [["__scopeId", "data-v-f80a82e6"]]), YN = {
18337
18337
  fields: [
18338
18338
  {
18339
18339
  input: {
@@ -18410,7 +18410,7 @@ const jn = M.object({
18410
18410
  }
18411
18411
  ],
18412
18412
  type: "record"
18413
- }, JP = {
18413
+ }, JN = {
18414
18414
  fields: [
18415
18415
  {
18416
18416
  input: {
@@ -18472,7 +18472,7 @@ const jn = M.object({
18472
18472
  ],
18473
18473
  type: "record"
18474
18474
  };
18475
- function XP(e) {
18475
+ function XN(e) {
18476
18476
  const t = Number(e);
18477
18477
  return !isNaN(t) && isFinite(t);
18478
18478
  }
@@ -18527,7 +18527,7 @@ function $n(e = 0, t = 1 / 0, n) {
18527
18527
  function ip(e) {
18528
18528
  const { i18n: { t } } = Xe();
18529
18529
  return function(i) {
18530
- if (!XP(i))
18530
+ if (!XN(i))
18531
18531
  return e ? typeof e == "string" ? e : t("plugins.free-form.datakit.flow_editor.node_properties.errors.not_number", e) : "Value must be a number";
18532
18532
  };
18533
18533
  }
@@ -18567,14 +18567,14 @@ function js(e = -1 / 0, t = 1 / 0, n) {
18567
18567
  }) : `Value must be between ${e} and ${t}`;
18568
18568
  };
18569
18569
  }
18570
- function ZP(e, t) {
18570
+ function ZN(e, t) {
18571
18571
  const { state: n } = _t(), { i18n: { t: i } } = Xe();
18572
18572
  return function(o) {
18573
18573
  if (n.value.nodes.some((r) => r.name === o && r.id !== e))
18574
18574
  return t ? typeof t == "string" ? t : i("plugins.free-form.datakit.flow_editor.node_properties.errors.not_unique", t) : "Name must be unique.";
18575
18575
  };
18576
18576
  }
18577
- function QP(e, t, n) {
18577
+ function QN(e, t, n) {
18578
18578
  const { i18n: { t: i } } = Xe();
18579
18579
  return function(o) {
18580
18580
  if (!t) return;
@@ -18584,7 +18584,7 @@ function QP(e, t, n) {
18584
18584
  }
18585
18585
  };
18586
18586
  }
18587
- function eN() {
18587
+ function eP() {
18588
18588
  const { i18n: { t: e } } = Xe();
18589
18589
  return function(n) {
18590
18590
  if (Ts(n))
@@ -18596,11 +18596,11 @@ function ap(e) {
18596
18596
  return fn(
18597
18597
  Vi(n),
18598
18598
  np("identifier", n),
18599
- eN(),
18600
- ZP(e, n)
18599
+ eP(),
18600
+ ZN(e, n)
18601
18601
  );
18602
18602
  }
18603
- function tN(e) {
18603
+ function tP(e) {
18604
18604
  const { i18n: { t } } = Xe(), { getNodeById: n } = _t();
18605
18605
  return function(a, o, r) {
18606
18606
  const s = {
@@ -18608,11 +18608,11 @@ function tN(e) {
18608
18608
  };
18609
18609
  return fn(
18610
18610
  Vi(s),
18611
- QP(a, n(e), r)
18611
+ QN(a, n(e), r)
18612
18612
  )(o);
18613
18613
  };
18614
18614
  }
18615
- function nN(e) {
18615
+ function nP(e) {
18616
18616
  const t = X({}), n = T(
18617
18617
  () => Object.values(t.value).every((r) => !r)
18618
18618
  ), i = {};
@@ -18655,7 +18655,7 @@ function Ci(e) {
18655
18655
  validationConfig: t,
18656
18656
  getValidationData: n,
18657
18657
  toggleNodeValid: i
18658
- } = e, { skipValidation: a } = _t(), o = T(() => typeof t == "function" ? t() : t), r = T(() => nN(o.value)), s = T(() => r.value.fields), u = T(() => r.value.isValid.value);
18658
+ } = e, { skipValidation: a } = _t(), o = T(() => typeof t == "function" ? t() : t), r = T(() => nP(o.value)), s = T(() => r.value.fields), u = T(() => r.value.isValid.value);
18659
18659
  function d() {
18660
18660
  const c = n(), f = r.value.validate(c), m = {};
18661
18661
  for (const g in o.value)
@@ -18740,18 +18740,18 @@ function mn(e, t) {
18740
18740
  return B;
18741
18741
  }, b = (V, O, B) => {
18742
18742
  const S = !!B;
18743
- o(e, V, O, !S), S && N(O, B);
18743
+ o(e, V, O, !S), S && P(O, B);
18744
18744
  }, w = (V, O, B) => {
18745
18745
  const S = E(V, O).id;
18746
18746
  r(e, S, B);
18747
18747
  }, I = (V, O) => {
18748
18748
  const B = E(V, O).id;
18749
18749
  s(e, B);
18750
- }, $ = T(() => n.value.edges.filter((V) => V.target === e && !V.targetField)[0]), K = T(() => n.value.edges.filter((V) => V.target === e && V.targetField)), N = async (V, O) => {
18750
+ }, $ = T(() => n.value.edges.filter((V) => V.target === e && !V.targetField)[0]), K = T(() => n.value.edges.filter((V) => V.target === e && V.targetField)), P = async (V, O) => {
18751
18751
  const B = O == null, S = E("input", V).id;
18752
18752
  if (B) {
18753
- const Ne = K.value.find((Pe) => Pe.targetField === S);
18754
- Ne && d(Ne.id);
18753
+ const Pe = K.value.find((Ne) => Ne.targetField === S);
18754
+ Pe && d(Pe.id);
18755
18755
  return;
18756
18756
  }
18757
18757
  const {
@@ -18759,7 +18759,7 @@ function mn(e, t) {
18759
18759
  fieldId: Q
18760
18760
  } = eu(O), ce = E("input", V).id, W = [];
18761
18761
  $.value && (W.push(la($.value, a)), d($.value.id, !1));
18762
- const te = K.value.find((Ne) => Ne.targetField === S);
18762
+ const te = K.value.find((Pe) => Pe.targetField === S);
18763
18763
  te && (W.push(la(te, a)), d(te.id, !1)), p({
18764
18764
  source: z,
18765
18765
  sourceField: Q,
@@ -18780,7 +18780,7 @@ function mn(e, t) {
18780
18780
  [ie],
18781
18781
  W
18782
18782
  ) || m();
18783
- }, P = async (V) => {
18783
+ }, N = async (V) => {
18784
18784
  if (V == null) {
18785
18785
  $.value && d($.value.id);
18786
18786
  return;
@@ -18835,7 +18835,7 @@ function mn(e, t) {
18835
18835
  function U(V) {
18836
18836
  c.value.delete(e), V || c.value.add(e);
18837
18837
  }
18838
- const ee = tN(e);
18838
+ const ee = tP(e);
18839
18839
  function ne(V, O, B) {
18840
18840
  const S = a(e);
18841
18841
  if (!S) throw new Error("Node not found when validating field name");
@@ -18858,8 +18858,8 @@ function mn(e, t) {
18858
18858
  renameFieldByName: w,
18859
18859
  removeFieldByName: I,
18860
18860
  // input(s) ops
18861
- setInputs: N,
18862
- setInput: P,
18861
+ setInputs: P,
18862
+ setInput: N,
18863
18863
  nameValidator: ap(e),
18864
18864
  fieldNameValidator: ne,
18865
18865
  toggleNodeValid: U
@@ -18871,9 +18871,9 @@ function gn(e) {
18871
18871
  if (Bt(e))
18872
18872
  switch (e) {
18873
18873
  case "response":
18874
- return JP;
18874
+ return JN;
18875
18875
  case "service_request":
18876
- return YP;
18876
+ return YN;
18877
18877
  }
18878
18878
  try {
18879
18879
  const i = t().fields.find((d) => Qa(d, "config"));
@@ -18930,7 +18930,7 @@ const Kn = /* @__PURE__ */ de({
18930
18930
  }, null, 8, ["model-value", "error", "error-message", "label"]);
18931
18931
  };
18932
18932
  }
18933
- }), iN = /* @__PURE__ */ de({
18933
+ }), iP = /* @__PURE__ */ de({
18934
18934
  __name: "NodeFormCall",
18935
18935
  props: {
18936
18936
  nodeId: {}
@@ -19024,7 +19024,7 @@ const Kn = /* @__PURE__ */ de({
19024
19024
  }, 8, ["data", "schema"]);
19025
19025
  };
19026
19026
  }
19027
- }), aN = /* @__PURE__ */ de({
19027
+ }), aP = /* @__PURE__ */ de({
19028
19028
  __name: "NodeFormServiceRequest",
19029
19029
  props: {
19030
19030
  nodeId: {}
@@ -19056,7 +19056,7 @@ const Kn = /* @__PURE__ */ de({
19056
19056
  _: 1
19057
19057
  }, 8, ["data", "schema"]));
19058
19058
  }
19059
- }), oN = /* @__PURE__ */ de({
19059
+ }), oP = /* @__PURE__ */ de({
19060
19060
  __name: "NodeFormResponse",
19061
19061
  props: {
19062
19062
  nodeId: {}
@@ -19088,7 +19088,7 @@ const Kn = /* @__PURE__ */ de({
19088
19088
  _: 1
19089
19089
  }, 8, ["data", "schema"]));
19090
19090
  }
19091
- }), rN = /* @__PURE__ */ de({
19091
+ }), rP = /* @__PURE__ */ de({
19092
19092
  __name: "NodeFormJq",
19093
19093
  props: {
19094
19094
  nodeId: {}
@@ -19133,7 +19133,7 @@ const Kn = /* @__PURE__ */ de({
19133
19133
  toggleNodeValid: h
19134
19134
  }), I = w("jq", () => s("jq"));
19135
19135
  return ($, K) => {
19136
- const N = oe("KLabel"), P = oe("KExternalLink");
19136
+ const P = oe("KLabel"), N = oe("KExternalLink");
19137
19137
  return _(), L(Yt, {
19138
19138
  ref: "form",
19139
19139
  data: l(o),
@@ -19145,7 +19145,7 @@ const Kn = /* @__PURE__ */ de({
19145
19145
  validate: l(y),
19146
19146
  onUpdate: l(r)
19147
19147
  }, null, 8, ["name", "validate", "onUpdate"]),
19148
- C(N, { class: "dk-node-configuration-label" }, {
19148
+ C(P, { class: "dk-node-configuration-label" }, {
19149
19149
  default: A(() => [
19150
19150
  ye(H(l(t)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
19151
19151
  ]),
@@ -19166,7 +19166,7 @@ const Kn = /* @__PURE__ */ de({
19166
19166
  help: A(() => [
19167
19167
  C(l(n), { keypath: "plugins.free-form.datakit.flow_editor.node_properties.jq.help" }, {
19168
19168
  link: A(() => [
19169
- C(P, {
19169
+ C(N, {
19170
19170
  "hide-icon": "",
19171
19171
  href: l($r).jqlang
19172
19172
  }, {
@@ -19197,7 +19197,7 @@ const Kn = /* @__PURE__ */ de({
19197
19197
  }, 8, ["data", "schema"]);
19198
19198
  };
19199
19199
  }
19200
- }), sN = /* @__PURE__ */ de({
19200
+ }), sP = /* @__PURE__ */ de({
19201
19201
  __name: "OutputValueField",
19202
19202
  props: {
19203
19203
  fieldNameValidator: {},
@@ -19220,7 +19220,7 @@ const Kn = /* @__PURE__ */ de({
19220
19220
  addEntry: r,
19221
19221
  removeEntry: s,
19222
19222
  field: u
19223
- } = No(n, i, !1), { i18n: d } = Xe(), p = ut("root"), c = X(null);
19223
+ } = Po(n, i, !1), { i18n: d } = Xe(), p = ut("root"), c = X(null);
19224
19224
  let f;
19225
19225
  async function m(b, w = "key") {
19226
19226
  var I;
@@ -19272,7 +19272,7 @@ const Kn = /* @__PURE__ */ de({
19272
19272
  return Uu(() => {
19273
19273
  c.value && !o.value.some((b) => b.id === c.value.id) && o.value.push(c.value);
19274
19274
  }), (b, w) => {
19275
- const I = oe("KAlert"), $ = oe("KLabel"), K = oe("KButton"), N = oe("KInput"), P = oe("KCard");
19275
+ const I = oe("KAlert"), $ = oe("KLabel"), K = oe("KButton"), P = oe("KInput"), N = oe("KCard");
19276
19276
  return l(u).error ? (_(), L(I, {
19277
19277
  key: 0,
19278
19278
  appearance: "danger",
@@ -19289,7 +19289,7 @@ const Kn = /* @__PURE__ */ de({
19289
19289
  ]),
19290
19290
  _: 1
19291
19291
  }),
19292
- (_(!0), G(Fe, null, Je(l(o), (F, J) => (_(), L(P, {
19292
+ (_(!0), G(Fe, null, Je(l(o), (F, J) => (_(), L(N, {
19293
19293
  key: F.id,
19294
19294
  class: "dk-output-value-field-entry",
19295
19295
  "data-testid": `ff-kv-container-${l(u).path.value}.${J}`
@@ -19308,7 +19308,7 @@ const Kn = /* @__PURE__ */ de({
19308
19308
  }, 8, ["data-testid", "onClick"])
19309
19309
  ]),
19310
19310
  default: A(() => [
19311
- C(N, {
19311
+ C(P, {
19312
19312
  id: `ff-kv-entry-key-${l(u).path.value}.${J}`,
19313
19313
  modelValue: F.key,
19314
19314
  "onUpdate:modelValue": [(q) => F.key = q, (q) => x(F)],
@@ -19324,7 +19324,7 @@ const Kn = /* @__PURE__ */ de({
19324
19324
  onChange: (q) => v(F),
19325
19325
  onFocus: (q) => h(F)
19326
19326
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "data-key-input", "data-testid", "error", "error-message", "label", "onBlur", "onChange", "onFocus"]),
19327
- C(N, {
19327
+ C(P, {
19328
19328
  modelValue: F.value,
19329
19329
  "onUpdate:modelValue": (q) => F.value = q,
19330
19330
  modelModifiers: { trim: !0 },
@@ -19351,8 +19351,8 @@ const Kn = /* @__PURE__ */ de({
19351
19351
  ], 512));
19352
19352
  };
19353
19353
  }
19354
- }), lN = /* @__PURE__ */ Te(sN, [["__scopeId", "data-v-5e17f8cb"]]);
19355
- function uN(e) {
19354
+ }), lP = /* @__PURE__ */ Te(sP, [["__scopeId", "data-v-5e17f8cb"]]);
19355
+ function uP(e) {
19356
19356
  const t = {};
19357
19357
  for (const [n, i] of Object.entries(e))
19358
19358
  typeof i == "object" && i !== null ? t[n] = JSON.stringify(i) : t[n] = String(i);
@@ -19370,13 +19370,13 @@ function Ua(e) {
19370
19370
  }
19371
19371
  return t;
19372
19372
  }
19373
- function cN(e, t, n) {
19373
+ function cP(e, t, n) {
19374
19374
  const i = {};
19375
19375
  for (const a of Object.keys(e))
19376
19376
  a === t ? i[n] = e[t] : i[a] = e[a];
19377
19377
  return i;
19378
19378
  }
19379
- const dN = /* @__PURE__ */ de({
19379
+ const dP = /* @__PURE__ */ de({
19380
19380
  __name: "NodeFormStatic",
19381
19381
  props: {
19382
19382
  nodeId: {}
@@ -19402,20 +19402,20 @@ const dN = /* @__PURE__ */ de({
19402
19402
  var K;
19403
19403
  if (!c.value)
19404
19404
  return {};
19405
- const x = ((K = c.value.config) == null ? void 0 : K.values) ?? {}, E = {}, b = n(c.value.id).map((N) => N.sourceField).filter(Boolean).map((N) => Un(c.value, "output", N)).map((N) => N == null ? void 0 : N.name).filter(Boolean), w = c.value.fields.output.map((N) => N.name), I = Object.keys(x);
19405
+ const x = ((K = c.value.config) == null ? void 0 : K.values) ?? {}, E = {}, b = n(c.value.id).map((P) => P.sourceField).filter(Boolean).map((P) => Un(c.value, "output", P)).map((P) => P == null ? void 0 : P.name).filter(Boolean), w = c.value.fields.output.map((P) => P.name), I = Object.keys(x);
19406
19406
  return (/* @__PURE__ */ new Set([
19407
19407
  ...I,
19408
19408
  ...b,
19409
19409
  ...w
19410
- ])).forEach((N) => {
19411
- if (N in x) {
19412
- E[N] = x[N];
19410
+ ])).forEach((P) => {
19411
+ if (P in x) {
19412
+ E[P] = x[P];
19413
19413
  return;
19414
19414
  }
19415
- E[N] = "";
19415
+ E[P] = "";
19416
19416
  }), {
19417
19417
  name: c.value.name,
19418
- values: uN(E)
19418
+ values: uP(E)
19419
19419
  };
19420
19420
  });
19421
19421
  function y(x, E) {
@@ -19433,7 +19433,7 @@ const dN = /* @__PURE__ */ de({
19433
19433
  const b = Yn(c.value, "output", x);
19434
19434
  if (!b) throw new Error("No field found to rename");
19435
19435
  const w = {
19436
- values: Ua(cN(g.value.values ?? {}, x, E))
19436
+ values: Ua(cP(g.value.values ?? {}, x, E))
19437
19437
  };
19438
19438
  r(e.nodeId, w, !1), a(e.nodeId, b.id, E);
19439
19439
  }
@@ -19470,7 +19470,7 @@ const dN = /* @__PURE__ */ de({
19470
19470
  validate: l(p),
19471
19471
  onUpdate: m
19472
19472
  }, null, 8, ["name", "validate"]),
19473
- C(lN, {
19473
+ C(lP, {
19474
19474
  "field-name-validator": l(u),
19475
19475
  "key-order": f.value,
19476
19476
  name: "values",
@@ -19484,7 +19484,7 @@ const dN = /* @__PURE__ */ de({
19484
19484
  _: 1
19485
19485
  }, 8, ["data", "schema"]));
19486
19486
  }
19487
- }), fN = { class: "dk-kong-property-item" }, pN = { class: "property-type" }, mN = { class: "property-badges" }, gN = /* @__PURE__ */ de({
19487
+ }), fP = { class: "dk-kong-property-item" }, pP = { class: "property-type" }, mP = { class: "property-badges" }, gP = /* @__PURE__ */ de({
19488
19488
  __name: "PropertiesField",
19489
19489
  props: {
19490
19490
  validators: {}
@@ -19532,12 +19532,12 @@ const dN = /* @__PURE__ */ de({
19532
19532
  onChange: f
19533
19533
  }, {
19534
19534
  "item-template": A(({ item: k }) => [
19535
- D("div", fN, [
19535
+ D("div", fP, [
19536
19536
  D("div", null, [
19537
19537
  D("div", null, H(k.label), 1),
19538
- D("div", pN, H(l(ai)[k.value].dataType), 1)
19538
+ D("div", pP, H(l(ai)[k.value].dataType), 1)
19539
19539
  ]),
19540
- D("div", mN, [
19540
+ D("div", mP, [
19541
19541
  l(ai)[k.value].readable ? (_(), L(y, {
19542
19542
  key: 0,
19543
19543
  appearance: "info"
@@ -19577,7 +19577,7 @@ const dN = /* @__PURE__ */ de({
19577
19577
  ], 64);
19578
19578
  };
19579
19579
  }
19580
- }), hN = /* @__PURE__ */ Te(gN, [["__scopeId", "data-v-0ab1be87"]]), vN = /* @__PURE__ */ de({
19580
+ }), hP = /* @__PURE__ */ Te(gP, [["__scopeId", "data-v-0ab1be87"]]), vP = /* @__PURE__ */ de({
19581
19581
  __name: "NodeFormProperty",
19582
19582
  props: {
19583
19583
  nodeId: {}
@@ -19634,7 +19634,7 @@ const dN = /* @__PURE__ */ de({
19634
19634
  name: "content_type",
19635
19635
  onUpdate: E[0] || (E[0] = (b) => l(u)())
19636
19636
  }),
19637
- C(hN, {
19637
+ C(hP, {
19638
19638
  validators: l(k),
19639
19639
  "onUpdate:modelValue": v,
19640
19640
  "onUpdate:propertyKey": E[1] || (E[1] = (b) => l(u)("property-key"))
@@ -19652,7 +19652,7 @@ const dN = /* @__PURE__ */ de({
19652
19652
  _: 1
19653
19653
  }, 8, ["data", "schema"]));
19654
19654
  }
19655
- }), yN = /* @__PURE__ */ de({
19655
+ }), yP = /* @__PURE__ */ de({
19656
19656
  __name: "NodeFormExit",
19657
19657
  props: {
19658
19658
  nodeId: {}
@@ -19718,7 +19718,7 @@ const dN = /* @__PURE__ */ de({
19718
19718
  }, 8, ["data", "schema"]));
19719
19719
  }
19720
19720
  });
19721
- function _N(e) {
19721
+ function _P(e) {
19722
19722
  const t = mn(e), {
19723
19723
  state: n,
19724
19724
  getNodeById: i,
@@ -19750,7 +19750,7 @@ function _N(e) {
19750
19750
  const $ = a.findMembership(I);
19751
19751
  if (!$ || $.ownerId === v && $.branch === k)
19752
19752
  continue;
19753
- const K = a.getMembers($.ownerId, $.branch).filter((N) => N !== I);
19753
+ const K = a.getMembers($.ownerId, $.branch).filter((P) => P !== I);
19754
19754
  w.push({
19755
19755
  ownerId: $.ownerId,
19756
19756
  branch: $.branch,
@@ -19767,13 +19767,13 @@ function _N(e) {
19767
19767
  }
19768
19768
  async function y(v, k) {
19769
19769
  const x = t.currentNode.value, E = c(k), b = a.prepareMembers(x.id, v, E), w = a.getMembers(x.id, v);
19770
- if (Nr(w, b))
19770
+ if (Pr(w, b))
19771
19771
  return !0;
19772
19772
  const I = b.filter((F) => !w.includes(F));
19773
19773
  for (const F of I)
19774
19774
  if (f(x.id, F))
19775
19775
  return !1;
19776
- const { conflictUpdates: $, addedAssignments: K, removedAssignments: N } = m(
19776
+ const { conflictUpdates: $, addedAssignments: K, removedAssignments: P } = m(
19777
19777
  x.id,
19778
19778
  v,
19779
19779
  I
@@ -19781,7 +19781,7 @@ function _N(e) {
19781
19781
  return $.length > 0 && !await s(
19782
19782
  r("plugins.free-form.datakit.flow_editor.confirm.message.branch_replace"),
19783
19783
  K,
19784
- N
19784
+ P
19785
19785
  ) ? !1 : (g(x.id, v, b, $) && o(), !0);
19786
19786
  }
19787
19787
  const h = T(() => {
@@ -19797,7 +19797,7 @@ function _N(e) {
19797
19797
  updateBranchMembers: y
19798
19798
  };
19799
19799
  }
19800
- const bN = /* @__PURE__ */ de({
19800
+ const bP = /* @__PURE__ */ de({
19801
19801
  __name: "NodeFormBranch",
19802
19802
  props: {
19803
19803
  nodeId: {}
@@ -19814,7 +19814,7 @@ const bN = /* @__PURE__ */ de({
19814
19814
  inputsFieldNames: c,
19815
19815
  fieldNameValidator: f,
19816
19816
  updateBranchMembers: m
19817
- } = _N(e.nodeId);
19817
+ } = _P(e.nodeId);
19818
19818
  async function g(y, h) {
19819
19819
  await m(y, h) || (i.value += 1);
19820
19820
  }
@@ -19871,7 +19871,7 @@ const bN = /* @__PURE__ */ de({
19871
19871
  _: 1
19872
19872
  }, 8, ["data", "schema"]));
19873
19873
  }
19874
- }), wN = /* @__PURE__ */ de({
19874
+ }), wP = /* @__PURE__ */ de({
19875
19875
  __name: "NodeFormCache",
19876
19876
  props: {
19877
19877
  nodeId: {}
@@ -19942,7 +19942,7 @@ const bN = /* @__PURE__ */ de({
19942
19942
  _: 1
19943
19943
  }, 8, ["data", "schema"]));
19944
19944
  }
19945
- }), kN = /* @__PURE__ */ de({
19945
+ }), kP = /* @__PURE__ */ de({
19946
19946
  __name: "NodeFormXmlToJson",
19947
19947
  props: {
19948
19948
  nodeId: {}
@@ -20013,7 +20013,7 @@ const bN = /* @__PURE__ */ de({
20013
20013
  }),
20014
20014
  C(pi, {
20015
20015
  name: "recognize_type",
20016
- "onUpdate:modelValue": K[0] || (K[0] = (N) => l(r)("recognize_type"))
20016
+ "onUpdate:modelValue": K[0] || (K[0] = (P) => l(r)("recognize_type"))
20017
20017
  }),
20018
20018
  C(Tt, {
20019
20019
  error: l(v).error,
@@ -20038,7 +20038,7 @@ const bN = /* @__PURE__ */ de({
20038
20038
  }, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
20039
20039
  C(pi, {
20040
20040
  name: "text_as_property",
20041
- "onUpdate:modelValue": K[1] || (K[1] = (N) => l(r)("text_as_property"))
20041
+ "onUpdate:modelValue": K[1] || (K[1] = (P) => l(r)("text_as_property"))
20042
20042
  }),
20043
20043
  C(Tt, {
20044
20044
  error: l(E).error,
@@ -20059,7 +20059,7 @@ const bN = /* @__PURE__ */ de({
20059
20059
  _: 1
20060
20060
  }, 8, ["data", "schema"]));
20061
20061
  }
20062
- }), CN = /* @__PURE__ */ de({
20062
+ }), CP = /* @__PURE__ */ de({
20063
20063
  __name: "NodeFormJsonToXml",
20064
20064
  props: {
20065
20065
  nodeId: {}
@@ -20108,10 +20108,10 @@ const bN = /* @__PURE__ */ de({
20108
20108
  function K() {
20109
20109
  E.value.update(), b.value.validate();
20110
20110
  }
20111
- function N() {
20111
+ function P() {
20112
20112
  b.value.update(), E.value.validate();
20113
20113
  }
20114
- function P(q, U) {
20114
+ function N(q, U) {
20115
20115
  p("input", q, U);
20116
20116
  }
20117
20117
  function F(q) {
@@ -20149,7 +20149,7 @@ const bN = /* @__PURE__ */ de({
20149
20149
  "error-message": l(b).errorMessage,
20150
20150
  name: "attributes_name_prefix",
20151
20151
  onBlur: $,
20152
- "onUpdate:modelValue": N
20152
+ "onUpdate:modelValue": P
20153
20153
  }, null, 8, ["error", "error-message"]),
20154
20154
  C(Tt, {
20155
20155
  error: l(w).error,
@@ -20170,7 +20170,7 @@ const bN = /* @__PURE__ */ de({
20170
20170
  "field-names": l(m),
20171
20171
  items: l(s),
20172
20172
  "node-type": "json_to_xml",
20173
- "onAdd:field": P,
20173
+ "onAdd:field": N,
20174
20174
  "onChange:input": l(d),
20175
20175
  "onChange:inputs": l(u),
20176
20176
  "onRemove:field": F,
@@ -20180,10 +20180,10 @@ const bN = /* @__PURE__ */ de({
20180
20180
  _: 1
20181
20181
  }, 8, ["data", "schema"]));
20182
20182
  }
20183
- }), EN = ["innerHTML"], xN = {
20183
+ }), EP = ["innerHTML"], xP = {
20184
20184
  key: 1,
20185
20185
  class: "branch-note"
20186
- }, AN = { class: "branch-label" }, IN = { class: "branch-text" }, TN = /* @__PURE__ */ de({
20186
+ }, AP = { class: "branch-label" }, IP = { class: "branch-text" }, TP = /* @__PURE__ */ de({
20187
20187
  __name: "NodePropertiesPanel",
20188
20188
  props: {
20189
20189
  maxWidth: { default: `${ff}px` },
@@ -20193,7 +20193,7 @@ const bN = /* @__PURE__ */ de({
20193
20193
  },
20194
20194
  emits: ["close"],
20195
20195
  setup(e) {
20196
- const { t } = $t("en-us", Pt), { getNodeById: n, branchGroups: i } = _t(), a = T(() => e.nodeId && n(e.nodeId)), o = T(() => {
20196
+ const { t } = $t("en-us", Nt), { getNodeById: n, branchGroups: i } = _t(), a = T(() => e.nodeId && n(e.nodeId)), o = T(() => {
20197
20197
  if (e.nodeId)
20198
20198
  return i.findMembership(e.nodeId);
20199
20199
  }), r = T(() => {
@@ -20208,27 +20208,27 @@ const bN = /* @__PURE__ */ de({
20208
20208
  var d;
20209
20209
  switch ((d = a.value) == null ? void 0 : d.type) {
20210
20210
  case "call":
20211
- return iN;
20211
+ return iP;
20212
20212
  case "service_request":
20213
- return aN;
20213
+ return aP;
20214
20214
  case "response":
20215
- return oN;
20215
+ return oP;
20216
20216
  case "jq":
20217
- return rN;
20217
+ return rP;
20218
20218
  case "static":
20219
- return dN;
20219
+ return dP;
20220
20220
  case "property":
20221
- return vN;
20221
+ return vP;
20222
20222
  case "exit":
20223
- return yN;
20223
+ return yP;
20224
20224
  case "branch":
20225
- return bN;
20225
+ return bP;
20226
20226
  case "cache":
20227
- return wN;
20227
+ return wP;
20228
20228
  case "xml_to_json":
20229
- return kN;
20229
+ return kP;
20230
20230
  case "json_to_xml":
20231
- return CN;
20231
+ return CP;
20232
20232
  default:
20233
20233
  return null;
20234
20234
  }
@@ -20248,14 +20248,14 @@ const bN = /* @__PURE__ */ de({
20248
20248
  key: 0,
20249
20249
  class: "dk-node-properties-panel-desc",
20250
20250
  innerHTML: l(Ut)(a.value.type)
20251
- }, null, 8, EN)) : ue("", !0),
20252
- o.value ? (_(), G("div", xN, [
20253
- D("span", AN, [
20251
+ }, null, 8, EP)) : ue("", !0),
20252
+ o.value ? (_(), G("div", xP, [
20253
+ D("span", AP, [
20254
20254
  C(l(Zu), {
20255
20255
  color: l(zi),
20256
20256
  size: l(oa)
20257
20257
  }, null, 8, ["color", "size"]),
20258
- D("span", IN, H(r.value), 1)
20258
+ D("span", IP, H(r.value), 1)
20259
20259
  ]),
20260
20260
  C(l(un), {
20261
20261
  placement: "top",
@@ -20298,7 +20298,7 @@ const bN = /* @__PURE__ */ de({
20298
20298
  } : void 0
20299
20299
  ]), 1032, ["max-width", "offset-top", "visible", "z-index"]));
20300
20300
  }
20301
- }), SN = /* @__PURE__ */ Te(TN, [["__scopeId", "data-v-6b2b83cd"]]), ON = { class: "dk-editor-content" }, $N = { class: "main" }, PN = /* @__PURE__ */ de({
20301
+ }), SP = /* @__PURE__ */ Te(TP, [["__scopeId", "data-v-6b2b83cd"]]), OP = { class: "dk-editor-content" }, $P = { class: "main" }, NP = /* @__PURE__ */ de({
20302
20302
  __name: "EditorContent",
20303
20303
  setup(e) {
20304
20304
  const { propertiesPanelOpen: t, selectedNode: n } = _t();
@@ -20313,12 +20313,12 @@ const bN = /* @__PURE__ */ de({
20313
20313
  a.value = !0;
20314
20314
  }), (o, r) => {
20315
20315
  var s;
20316
- return _(), G("div", ON, [
20316
+ return _(), G("div", OP, [
20317
20317
  C(l(G$)),
20318
- D("div", $N, [
20318
+ D("div", $P, [
20319
20319
  C(n$)
20320
20320
  ]),
20321
- C(SN, {
20321
+ C(SP, {
20322
20322
  "node-id": (s = l(n)) == null ? void 0 : s.id,
20323
20323
  visible: l(t),
20324
20324
  onClose: i
@@ -20326,10 +20326,10 @@ const bN = /* @__PURE__ */ de({
20326
20326
  ]);
20327
20327
  };
20328
20328
  }
20329
- }), NN = /* @__PURE__ */ Te(PN, [["__scopeId", "data-v-8f04afa6"]]), FN = {
20329
+ }), PP = /* @__PURE__ */ Te(NP, [["__scopeId", "data-v-8f04afa6"]]), FP = {
20330
20330
  key: 0,
20331
20331
  class: "dk-editor-modal"
20332
- }, RN = /* @__PURE__ */ de({
20332
+ }, RP = /* @__PURE__ */ de({
20333
20333
  __name: "EditorModal",
20334
20334
  props: {
20335
20335
  open: { type: Boolean },
@@ -20347,19 +20347,19 @@ const bN = /* @__PURE__ */ de({
20347
20347
  const u = await i.value.open(...s);
20348
20348
  return n.value = !1, u;
20349
20349
  });
20350
- const o = Pm(document);
20350
+ const o = Nm(document);
20351
20351
  ze(t, (s) => {
20352
20352
  o.value = !!s, s || a();
20353
20353
  }, { immediate: !0 });
20354
20354
  function r() {
20355
20355
  t.value = !1;
20356
20356
  }
20357
- return (s, u) => t.value ? (_(), G("div", FN, [
20357
+ return (s, u) => t.value ? (_(), G("div", FP, [
20358
20358
  C(YO, {
20359
20359
  class: "nav",
20360
20360
  onBack: r
20361
20361
  }),
20362
- C(NN, {
20362
+ C(PP, {
20363
20363
  ref: "content",
20364
20364
  class: "content",
20365
20365
  tabindex: "0"
@@ -20367,14 +20367,14 @@ const bN = /* @__PURE__ */ de({
20367
20367
  C(BO, { ref: "confirm-modal" }, null, 512)
20368
20368
  ])) : ue("", !0);
20369
20369
  }
20370
- }), MN = /* @__PURE__ */ Te(RN, [["__scopeId", "data-v-abbb8dba"]]), LN = { class: "dk-flow-editor" }, jN = { class: "flow-panels-container" }, KN = { class: "overlay" }, DN = /* @__PURE__ */ de({
20370
+ }), MP = /* @__PURE__ */ Te(RP, [["__scopeId", "data-v-abbb8dba"]]), LP = { class: "dk-flow-editor" }, jP = { class: "flow-panels-container" }, KP = { class: "overlay" }, DP = /* @__PURE__ */ de({
20371
20371
  __name: "FlowEditor",
20372
20372
  props: {
20373
20373
  isEditing: { type: Boolean }
20374
20374
  },
20375
20375
  emits: ["change", "error"],
20376
20376
  setup(e, { emit: t }) {
20377
- const { t: n } = $t("en-us", Pt), { formData: i } = st(), a = t;
20377
+ const { t: n } = $t("en-us", Nt), { formData: i } = st(), a = t;
20378
20378
  function o(u, d, p, c) {
20379
20379
  const f = { ...i.config, nodes: u };
20380
20380
  p !== void 0 && (f.resources = p);
@@ -20392,13 +20392,13 @@ const bN = /* @__PURE__ */ de({
20392
20392
  s(!0);
20393
20393
  }, { flush: "post" }), Ox({ enabled: r }), (u, d) => {
20394
20394
  const p = oe("KButton");
20395
- return _(), G("div", LN, [
20396
- D("div", jN, [
20395
+ return _(), G("div", LP, [
20396
+ D("div", jP, [
20397
20397
  C(Rs, {
20398
20398
  inactive: l(r),
20399
20399
  mode: "preview"
20400
20400
  }, null, 8, ["inactive"]),
20401
- D("div", KN, [
20401
+ D("div", KP, [
20402
20402
  C(p, {
20403
20403
  appearance: "secondary",
20404
20404
  class: "button-open-editor",
@@ -20412,14 +20412,14 @@ const bN = /* @__PURE__ */ de({
20412
20412
  })
20413
20413
  ])
20414
20414
  ]),
20415
- C(MN, {
20415
+ C(MP, {
20416
20416
  open: l(r),
20417
20417
  "onUpdate:open": d[1] || (d[1] = (c) => Ur(r) ? r.value = c : null)
20418
20418
  }, null, 8, ["open"])
20419
20419
  ]);
20420
20420
  };
20421
20421
  }
20422
- }), qN = /* @__PURE__ */ Te(DN, [["__scopeId", "data-v-82ca6e78"]]), VN = ["innerHTML"], UN = { class: "dk-option-label" }, BN = ["innerHTML"], GN = /* @__PURE__ */ de({
20422
+ }), qP = /* @__PURE__ */ Te(DP, [["__scopeId", "data-v-82ca6e78"]]), VP = ["innerHTML"], UP = { class: "dk-option-label" }, BP = ["innerHTML"], GP = /* @__PURE__ */ de({
20423
20423
  __name: "DatakitForm",
20424
20424
  props: {
20425
20425
  generalInfoTitle: {},
@@ -20439,7 +20439,7 @@ const bN = /* @__PURE__ */ de({
20439
20439
  pluginName: {}
20440
20440
  },
20441
20441
  setup(e) {
20442
- const { t } = $t("en-us", Pt), n = e, i = yt(Ui), a = X(!1);
20442
+ const { t } = $t("en-us", Nt), n = e, i = yt(Ui), a = X(!1);
20443
20443
  wn(() => {
20444
20444
  a.value = !!document.querySelector("#plugin-form-page-actions");
20445
20445
  });
@@ -20530,10 +20530,10 @@ const bN = /* @__PURE__ */ de({
20530
20530
  disabled: d.value || w.value !== "flow"
20531
20531
  }, {
20532
20532
  content: A(() => [
20533
- D("div", { innerHTML: m.value }, null, 8, VN)
20533
+ D("div", { innerHTML: m.value }, null, 8, VP)
20534
20534
  ]),
20535
20535
  default: A(() => [
20536
- D("div", UN, [
20536
+ D("div", UP, [
20537
20537
  (_(), L(bt(u[w.value]))),
20538
20538
  ye(" " + H(w.label), 1)
20539
20539
  ])
@@ -20560,10 +20560,10 @@ const bN = /* @__PURE__ */ de({
20560
20560
  ye(H(l(t)("plugins.free-form.datakit.flow_editor.mode")), 1)
20561
20561
  ]),
20562
20562
  "plugin-config-description": A(() => [
20563
- D("span", { innerHTML: f.value }, null, 8, BN)
20563
+ D("span", { innerHTML: f.value }, null, 8, BP)
20564
20564
  ]),
20565
20565
  default: A(() => [
20566
- r.value === "flow" ? (_(), L(qN, {
20566
+ r.value === "flow" ? (_(), L(qP, {
20567
20567
  key: 0,
20568
20568
  "is-editing": n.isEditing,
20569
20569
  onChange: y
@@ -20573,7 +20573,7 @@ const bN = /* @__PURE__ */ de({
20573
20573
  }, 16, ["editor-mode"])
20574
20574
  ], 64));
20575
20575
  }
20576
- }), zN = /* @__PURE__ */ Te(GN, [["__scopeId", "data-v-673cc067"]]), Ru = (e) => {
20576
+ }), zP = /* @__PURE__ */ Te(GP, [["__scopeId", "data-v-673cc067"]]), Ru = (e) => {
20577
20577
  if (!(!e || typeof e != "object"))
20578
20578
  for (const [t, n] of Object.entries(e))
20579
20579
  typeof n == "string" && (e[t] = n.split(/\s*,\s*/).filter(Boolean));
@@ -20581,7 +20581,7 @@ const bN = /* @__PURE__ */ de({
20581
20581
  if (!(!e || typeof e != "object"))
20582
20582
  for (const [t, n] of Object.entries(e))
20583
20583
  Array.isArray(n) && (e[t] = n.join(", "));
20584
- }, HN = /* @__PURE__ */ de({
20584
+ }, HP = /* @__PURE__ */ de({
20585
20585
  __name: "AIMcpProxyForm",
20586
20586
  props: {
20587
20587
  generalInfoTitle: {},
@@ -20670,7 +20670,7 @@ const bN = /* @__PURE__ */ de({
20670
20670
  _: 1
20671
20671
  }, 16));
20672
20672
  }
20673
- }), WN = /* @__PURE__ */ de({
20673
+ }), WP = /* @__PURE__ */ de({
20674
20674
  __name: "UpstreamOauthForm",
20675
20675
  props: {
20676
20676
  generalInfoTitle: {},
@@ -20711,7 +20711,7 @@ const bN = /* @__PURE__ */ de({
20711
20711
  _: 1
20712
20712
  }, 16));
20713
20713
  }
20714
- }), YN = { "data-testid": "ff-identity-realms-field" }, JN = ["innerHTML"], XN = /* @__PURE__ */ de({
20714
+ }), YP = { "data-testid": "ff-identity-realms-field" }, JP = ["innerHTML"], XP = /* @__PURE__ */ de({
20715
20715
  __name: "FreeFormAdapter",
20716
20716
  props: {
20717
20717
  name: {},
@@ -20729,7 +20729,7 @@ const bN = /* @__PURE__ */ de({
20729
20729
  return (r, s) => {
20730
20730
  var d;
20731
20731
  const u = oe("KLabel");
20732
- return _(), G("div", YN, [
20732
+ return _(), G("div", YP, [
20733
20733
  C(u, Ye({ class: "ff-array-field-label" }, l(o), {
20734
20734
  "data-testid": `ff-label-${l(a)}`,
20735
20735
  "tooltip-attributes": l(o).labelAttributes.tooltipAttributes
@@ -20745,7 +20745,7 @@ const bN = /* @__PURE__ */ de({
20745
20745
  et(r.$slots, "tooltip", {}, () => [
20746
20746
  D("div", {
20747
20747
  innerHTML: l(o).labelAttributes.info
20748
- }, null, 8, JN)
20748
+ }, null, 8, JP)
20749
20749
  ])
20750
20750
  ]),
20751
20751
  key: "0"
@@ -20758,10 +20758,10 @@ const bN = /* @__PURE__ */ de({
20758
20758
  ]);
20759
20759
  };
20760
20760
  }
20761
- }), ZN = {
20761
+ }), ZP = {
20762
20762
  key: 1,
20763
20763
  hidden: ""
20764
- }, QN = /* @__PURE__ */ de({
20764
+ }, QP = /* @__PURE__ */ de({
20765
20765
  __name: "KeyAuthForm",
20766
20766
  props: {
20767
20767
  generalInfoTitle: {},
@@ -20790,7 +20790,7 @@ const bN = /* @__PURE__ */ de({
20790
20790
  match: ({ path: s }) => s === "config.identity_realms"
20791
20791
  }, {
20792
20792
  default: A((s) => [
20793
- a.value ? (_(), L(XN, ln(Ye({ key: 0 }, s)), null, 16)) : (_(), G("span", ZN))
20793
+ a.value ? (_(), L(XP, ln(Ye({ key: 0 }, s)), null, 16)) : (_(), G("span", ZP))
20794
20794
  ]),
20795
20795
  _: 1
20796
20796
  }, 8, ["match"])
@@ -20865,13 +20865,13 @@ const bN = /* @__PURE__ */ de({
20865
20865
  }), Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20866
20866
  __proto__: null,
20867
20867
  AICustomGuardrailForm: EE,
20868
- AIMcpProxyForm: HN,
20868
+ AIMcpProxyForm: HP,
20869
20869
  CommonForm: eF,
20870
- DatakitForm: zN,
20871
- KeyAuthForm: QN,
20870
+ DatakitForm: zP,
20871
+ KeyAuthForm: QP,
20872
20872
  RequestCalloutForm: OE,
20873
20873
  ServiceProtectionForm: XE,
20874
- UpstreamOauthForm: WN
20874
+ UpstreamOauthForm: WP
20875
20875
  }, Symbol.toStringTag, { value: "Module" }));
20876
20876
  function tF(e) {
20877
20877
  if (e.length === 0) return "";
@@ -21094,14 +21094,14 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
21094
21094
  },
21095
21095
  emits: ["loading", "model-updated", "showNewPartialModal", "globalAction", "validity-change"],
21096
21096
  setup(e, { emit: t }) {
21097
- var Ne, Pe;
21097
+ var Pe, Ne;
21098
21098
  const n = Object.keys(Vs), i = Object.keys(Lu);
21099
21099
  if ((/* @__PURE__ */ new Set([...n, ...i])).size !== n.length + i.length)
21100
21100
  throw new Error(
21101
21101
  "Duplicate form component names found in `sharedForms` and `freeForm`"
21102
21102
  );
21103
- const a = t, o = e, r = yt(ds.KM_2306_CONDITION_FIELD_314, !1), { axiosInstance: s } = Fn((Ne = o.config) == null ? void 0 : Ne.axiosRequestConfig), { parseSchema: u } = Ze.useSchemas({
21104
- entityId: ((Pe = o.entityMap.focusedEntity) == null ? void 0 : Pe.id) || void 0,
21103
+ const a = t, o = e, r = yt(ds.KM_2306_CONDITION_FIELD_314, !1), { axiosInstance: s } = Fn((Pe = o.config) == null ? void 0 : Pe.axiosRequestConfig), { parseSchema: u } = Ze.useSchemas({
21104
+ entityId: ((Ne = o.entityMap.focusedEntity) == null ? void 0 : Ne.id) || void 0,
21105
21105
  credential: o.credential,
21106
21106
  enableRedisPartial: o.enableRedisPartial,
21107
21107
  experimentalRenders: o.config.app === "konnect" ? o.config.experimentalRenders : void 0
@@ -21172,9 +21172,9 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
21172
21172
  });
21173
21173
  }
21174
21174
  }), Kt(Ui, o.config);
21175
- const K = X(""), N = X(""), P = X(null), F = X({}), J = Fi({}), q = Fi({}), U = T(() => {
21175
+ const K = X(""), P = X(""), N = X(null), F = X({}), J = Fi({}), q = Fi({}), U = T(() => {
21176
21176
  var se;
21177
- return (se = P.value) == null ? void 0 : se.options;
21177
+ return (se = N.value) == null ? void 0 : se.options;
21178
21178
  }), ee = T(() => {
21179
21179
  const se = sF(
21180
21180
  q.name,
@@ -21265,7 +21265,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
21265
21265
  j !== void 0 && Se === "" && Se !== j ? be[ge] = R === "object" ? {} : null : Me.type === "checklist" && Se === "" ? be[ge] = [] : Se !== "" && (be[ge] = Se), be[ge] = Z ? Z(Se) : be[ge], m(ge, be);
21266
21266
  });
21267
21267
  const Qe = p(be);
21268
- if (N.value) {
21268
+ if (P.value) {
21269
21269
  if (se && se.length)
21270
21270
  for (const we of se)
21271
21271
  delete Qe[we];
@@ -21346,7 +21346,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
21346
21346
  route_id: o.record.route_id || o.record.route,
21347
21347
  consumer_id: o.record.consumer_id || o.record.consumer,
21348
21348
  consumer_group_id: o.record.consumer_group_id || o.record.consumer_group
21349
- }), o.record.partials && z("redis", { partials: o.record.partials }), N.value ? ie(o.record) : W(o.record.config, "config"))), Object.keys(o.entityMap).length && !o.entityMap.global && o.schema) {
21349
+ }), o.record.partials && z("redis", { partials: o.record.partials }), P.value ? ie(o.record) : W(o.record.config, "config"))), Object.keys(o.entityMap).length && !o.entityMap.global && o.schema) {
21350
21350
  const re = {};
21351
21351
  for (const _e in o.entityMap) {
21352
21352
  const he = o.entityMap[_e].id, Re = o.entityMap[_e].idField, be = Re === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(Re).replace("_", "-"));
@@ -21369,10 +21369,10 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
21369
21369
  const _e = u(se, void 0, void 0, o.engine);
21370
21370
  Object.assign(q, _e.model), F.value = {
21371
21371
  fields: (Re = (he = F.value) == null ? void 0 : he.fields) == null ? void 0 : Re.map((be) => ({ ...be, disabled: be.disabled || !1 }))
21372
- }, Object.assign(J, JSON.parse(JSON.stringify(_e.model))), N.value = g(_e.model.name, o.engine) ? y(_e.model.name) : void 0, K.value = zu(_e.model.name), je();
21372
+ }, Object.assign(J, JSON.parse(JSON.stringify(_e.model))), P.value = g(_e.model.name, o.engine) ? y(_e.model.name) : void 0, K.value = zu(_e.model.name), je();
21373
21373
  }, { immediate: !0, deep: !0 }), gi(() => {
21374
21374
  var se, re;
21375
- P.value = u(o.schema, void 0, void 0, o.engine), Object.assign(q, ((se = P.value) == null ? void 0 : se.model) || {}), F.value = ((re = P.value) == null ? void 0 : re.schema) || {}, je();
21375
+ N.value = u(o.schema, void 0, void 0, o.engine), Object.assign(q, ((se = N.value) == null ? void 0 : se.model) || {}), F.value = ((re = N.value) == null ? void 0 : re.schema) || {}, je();
21376
21376
  }), (se, re) => {
21377
21377
  var he, Re;
21378
21378
  const _e = oe("KSkeleton");
@@ -21382,7 +21382,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
21382
21382
  key: 0,
21383
21383
  type: "form"
21384
21384
  })) : q.id && e.editing || !e.editing ? (_(), G("div", cF, [
21385
- N.value ? (_(), L(bt(Lu[N.value]), {
21385
+ P.value ? (_(), L(bt(Lu[P.value]), {
21386
21386
  key: 0,
21387
21387
  "form-model": q,
21388
21388
  "form-schema": F.value,
@@ -21597,7 +21597,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
21597
21597
  redisPath: K,
21598
21598
  isEditing: v.value
21599
21599
  });
21600
- const N = X(!1), P = Fi({
21600
+ const P = X(!1), N = Fi({
21601
21601
  enabled: !0,
21602
21602
  protocols: [],
21603
21603
  tags: []
@@ -22038,17 +22038,17 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22038
22038
  }), V.selectionGroup.fields[1].fields = De;
22039
22039
  }
22040
22040
  u[o.pluginType] && u[o.pluginType].overwriteDefault && Object.hasOwnProperty.call(u[o.pluginType], "formSchema") && Object.assign(V, u[o.pluginType].formSchema);
22041
- }, Q = T(() => !g(F.fields, P, !0)), ce = T(() => !we.value && !N.value && (k.value === Qn.Create || Q.value)), W = X(!1), te = X(), ie = (j) => {
22042
- o.credential && j.password && (j.password = ""), F.fields.id = (j == null ? void 0 : j.id) || void 0, te.value = j == null ? void 0 : j.ordering, Object.assign(P, F.fields), w.value = j, W.value = !0;
22041
+ }, Q = T(() => !g(F.fields, N, !0)), ce = T(() => !we.value && !P.value && (k.value === Qn.Create || Q.value)), W = X(!1), te = X(), ie = (j) => {
22042
+ o.credential && j.password && (j.password = ""), F.fields.id = (j == null ? void 0 : j.id) || void 0, te.value = j == null ? void 0 : j.ordering, Object.assign(N, F.fields), w.value = j, W.value = !0;
22043
22043
  }, Ae = X({}), je = (j) => {
22044
22044
  var Y;
22045
- F.fields = j.model, F.fields.id = ((Y = w.value) == null ? void 0 : Y.id) || void 0, Object.assign(P, j.originalModel), Ae.value = j.data, o.isWizardStep && a("model-updated", {
22045
+ F.fields = j.model, F.fields.id = ((Y = w.value) == null ? void 0 : Y.id) || void 0, Object.assign(N, j.originalModel), Ae.value = j.data, o.isWizardStep && a("model-updated", {
22046
22046
  model: F.fields,
22047
22047
  data: j.data,
22048
22048
  resourceEndpoint: O.value
22049
22049
  });
22050
- }, Ne = X(/* @__PURE__ */ new Map()), Pe = T(() => [F.clientErrorMessage, F.serverErrorMessage].filter(Boolean).join("; ")), se = (j) => {
22051
- j.valid ? Ne.value.delete(j.model) : Ne.value.set(j.model, j.error), F.clientErrorMessage = [...Ne.value.entries()].map(([Y, R]) => `${Y}: ${typeof R == "string" ? R : f(R)}`).join("; "), F.clientErrorMessage && (F.serverErrorMessage = "");
22050
+ }, Pe = X(/* @__PURE__ */ new Map()), Ne = T(() => [F.clientErrorMessage, F.serverErrorMessage].filter(Boolean).join("; ")), se = (j) => {
22051
+ j.valid ? Pe.value.delete(j.model) : Pe.value.set(j.model, j.error), F.clientErrorMessage = [...Pe.value.entries()].map(([Y, R]) => `${Y}: ${typeof R == "string" ? R : f(R)}`).join("; "), F.clientErrorMessage && (F.serverErrorMessage = "");
22052
22052
  };
22053
22053
  ze([ne, W], (j, Y) => {
22054
22054
  const R = j[0] !== Y[0], me = j[1], Z = Y[1];
@@ -22083,11 +22083,11 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22083
22083
  let j;
22084
22084
  const Y = JSON.parse(JSON.stringify(Re.value)), R = u[o.pluginType];
22085
22085
  typeof (R == null ? void 0 : R.shamefullyTransformPayload) == "function" && R.shamefullyTransformPayload({
22086
- originalModel: P,
22086
+ originalModel: N,
22087
22087
  model: F.fields,
22088
22088
  payload: Y,
22089
22089
  schema: E.value
22090
- }), k.value === "create" ? j = await y.post(_e.value, Y) : k.value === "edit" && (j = o.config.app === "konnect" || $.value && Y.partials ? await y.put(_e.value, Object.assign({ ordering: te.value }, Y)) : await y.patch(_e.value, Y)), Object.assign(P, F.fields), a("update", j == null ? void 0 : j.data);
22090
+ }), k.value === "create" ? j = await y.post(_e.value, Y) : k.value === "edit" && (j = o.config.app === "konnect" || $.value && Y.partials ? await y.put(_e.value, Object.assign({ ordering: te.value }, Y)) : await y.patch(_e.value, Y)), Object.assign(N, F.fields), a("update", j == null ? void 0 : j.data);
22091
22091
  } catch (j) {
22092
22092
  F.serverErrorMessage = f(j), a("error", j);
22093
22093
  } finally {
@@ -22156,7 +22156,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22156
22156
  config: e.config,
22157
22157
  "edit-id": e.pluginId,
22158
22158
  "entity-type": l(Ba).Plugin,
22159
- "error-message": Pe.value,
22159
+ "error-message": Ne.value,
22160
22160
  "fetch-url": U.value,
22161
22161
  "form-fields": Re.value,
22162
22162
  "is-readonly": F.isReadonly,
@@ -22231,7 +22231,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22231
22231
  record: w.value,
22232
22232
  schema: E.value,
22233
22233
  onGlobalAction: Y[0] || (Y[0] = (ke, De) => j.$emit("globalAction", ke, De)),
22234
- onLoading: Y[1] || (Y[1] = (ke) => N.value = ke),
22234
+ onLoading: Y[1] || (Y[1] = (ke) => P.value = ke),
22235
22235
  onModelUpdated: je,
22236
22236
  onShowNewPartialModal: Y[2] || (Y[2] = (ke) => j.$emit("showNewPartialModal", ke)),
22237
22237
  onValidityChange: se
@@ -22418,7 +22418,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22418
22418
  x.value = "";
22419
22419
  }, K = () => {
22420
22420
  I.value++;
22421
- }, N = X(null), P = (ve) => {
22421
+ }, P = X(null), N = (ve) => {
22422
22422
  var we, Me, Se, j;
22423
22423
  const Ee = [];
22424
22424
  return ((we = ve.route) != null && we.id || ve.route_id) && Ee.push({ type: "route", badgeText: o("plugins.list.table_headers.applied_to_badges.route") }), ((Me = ve.service) != null && Me.id || ve.service_id) && Ee.push({ type: "service", badgeText: o("plugins.list.table_headers.applied_to_badges.service") }), ((Se = ve.consumer) != null && Se.id || ve.consumer_id) && Ee.push({ type: "consumer", badgeText: o("plugins.list.table_headers.applied_to_badges.consumer") }), ((j = ve.consumer_group) != null && j.id || ve.consumer_group_id) && Ee.push({ type: "consumer_group", badgeText: o("plugins.list.table_headers.applied_to_badges.consumer_group") }), Ee.length ? Ee : [{ type: null, badgeText: o("plugins.list.table_headers.applied_to_badges.global") }];
@@ -22514,7 +22514,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22514
22514
  }), W = (ve) => ({
22515
22515
  label: o("actions.configure_dynamic_ordering"),
22516
22516
  to: a.config.getConfigureDynamicOrderingRoute(ve)
22517
- }), te = X(void 0), ie = X(!1), Ae = X(!1), je = X(""), Ne = kp(a.config, k.value), Pe = (ve) => {
22517
+ }), te = X(void 0), ie = X(!1), Ae = X(!1), je = X(""), Pe = kp(a.config, k.value), Ne = (ve) => {
22518
22518
  te.value = ve, ie.value = !0;
22519
22519
  }, se = () => {
22520
22520
  ie.value = !1;
@@ -22523,7 +22523,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22523
22523
  if ((ve = te.value) != null && ve.id) {
22524
22524
  Ae.value = !0;
22525
22525
  try {
22526
- await s.delete(Ne(te.value.id)), Ae.value = !1, ie.value = !1, I.value++, i("delete:success", te.value);
22526
+ await s.delete(Pe(te.value.id)), Ae.value = !1, ie.value = !1, I.value++, i("delete:success", te.value);
22527
22527
  } catch (Me) {
22528
22528
  je.value = ((we = (Ee = Me.response) == null ? void 0 : Ee.data) == null ? void 0 : we.message) || Me.message || o("errors.delete"), i("error", Me);
22529
22529
  } finally {
@@ -22536,12 +22536,12 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22536
22536
  ze(w, (ve) => {
22537
22537
  var Ee, we, Me;
22538
22538
  if (ve.status === Cp.Error) {
22539
- N.value = {
22539
+ P.value = {
22540
22540
  title: o("errors.general")
22541
- }, (Me = (we = (Ee = ve.error) == null ? void 0 : Ee.response) == null ? void 0 : we.data) != null && Me.message && (N.value.message = ve.error.response.data.message), i("error", ve.error);
22541
+ }, (Me = (we = (Ee = ve.error) == null ? void 0 : Ee.response) == null ? void 0 : we.data) != null && Me.message && (P.value.message = ve.error.response.data.message), i("error", ve.error);
22542
22542
  return;
22543
22543
  }
22544
- N.value = null;
22544
+ P.value = null;
22545
22545
  });
22546
22546
  const he = X({
22547
22547
  ctaPath: a.config.createRoute,
@@ -22559,7 +22559,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22559
22559
  "disable-sorting": y.value,
22560
22560
  "empty-state-options": he.value,
22561
22561
  "enable-entity-actions": "",
22562
- "error-message": N.value,
22562
+ "error-message": P.value,
22563
22563
  fetcher: l(b),
22564
22564
  "fetcher-cache-key": l(I),
22565
22565
  "pagination-type": "offset",
@@ -22635,9 +22635,9 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22635
22635
  ])
22636
22636
  ]),
22637
22637
  appliedTo: A(({ row: Z }) => [
22638
- P(Z).length > 0 ? (_(), L(j, { key: 0 }, {
22638
+ N(Z).length > 0 ? (_(), L(j, { key: 0 }, {
22639
22639
  default: A(() => [
22640
- (_(!0), G(Fe, null, Je(P(Z), (ge) => (_(), L(l(ei), {
22640
+ (_(!0), G(Fe, null, Je(N(Z), (ge) => (_(), L(l(ei), {
22641
22641
  key: ge.badgeText,
22642
22642
  "auth-function": () => F(ge.type, Z),
22643
22643
  "force-show": ""
@@ -22769,7 +22769,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22769
22769
  danger: "",
22770
22770
  "data-testid": "action-entity-delete",
22771
22771
  "has-divider": "",
22772
- onClick: (ge) => Pe(Z)
22772
+ onClick: (ge) => Ne(Z)
22773
22773
  }, {
22774
22774
  default: A(() => [
22775
22775
  ye(H(l(o)("actions.delete")), 1)
@@ -22859,10 +22859,10 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22859
22859
  ]);
22860
22860
  };
22861
22861
  }
22862
- }), KM = /* @__PURE__ */ Te(IF, [["__scopeId", "data-v-25799614"]]), TF = { class: "plugin-select-card-wrapper" }, SF = ["data-testid"], OF = { class: "plugin-card-header" }, $F = { class: "plugin-card-title" }, PF = {
22862
+ }), KM = /* @__PURE__ */ Te(IF, [["__scopeId", "data-v-25799614"]]), TF = { class: "plugin-select-card-wrapper" }, SF = ["data-testid"], OF = { class: "plugin-card-header" }, $F = { class: "plugin-card-title" }, NF = {
22863
22863
  key: 0,
22864
22864
  class: "plugin-card-actions"
22865
- }, NF = ["data-testid", "title"], FF = {
22865
+ }, PF = ["data-testid", "title"], FF = {
22866
22866
  key: 0,
22867
22867
  class: "plugin-card-text"
22868
22868
  }, RF = { key: 0 }, MF = ["title"], LF = /* @__PURE__ */ de({
@@ -22935,7 +22935,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
22935
22935
  class: at({ "non-custom-title": !m.value })
22936
22936
  }, H(e.plugin.name), 3)
22937
22937
  ]),
22938
- u.value ? (_(), G("div", PF, [
22938
+ u.value ? (_(), G("div", NF, [
22939
22939
  C(b, {
22940
22940
  "data-testid": "custom-plugin-actions",
22941
22941
  "kpop-attributes": { placement: "bottom-end" },
@@ -23003,7 +23003,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23003
23003
  title: e.plugin.description
23004
23004
  }, H(e.plugin.description), 9, MF)) : ue("", !0)
23005
23005
  ])) : ue("", !0)
23006
- ], 10, NF),
23006
+ ], 10, PF),
23007
23007
  D("div", {
23008
23008
  class: "plugin-card-footer",
23009
23009
  onClick: h
@@ -23213,8 +23213,8 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23213
23213
  class: "plugin-card-container",
23214
23214
  style: si(v.value)
23215
23215
  }, [
23216
- (_(!0), G(Fe, null, Je(d.value, (K, N) => (_(), L(rp, {
23217
- key: `plugin-card-${N}`,
23216
+ (_(!0), G(Fe, null, Je(d.value, (K, P) => (_(), L(rp, {
23217
+ key: `plugin-card-${P}`,
23218
23218
  ref_for: !0,
23219
23219
  ref_key: "pluginCardRef",
23220
23220
  ref: h,
@@ -23223,7 +23223,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23223
23223
  config: e.config,
23224
23224
  "navigate-on-click": e.navigateOnClick,
23225
23225
  plugin: K,
23226
- onCustomPluginDelete: (P) => f(K),
23226
+ onCustomPluginDelete: (N) => f(K),
23227
23227
  onPluginClicked: u
23228
23228
  }, null, 8, ["can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin", "onCustomPluginDelete"]))), 128))
23229
23229
  ], 4)
@@ -23538,7 +23538,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23538
23538
  emits: ["loading", "plugin-clicked", "delete-custom:success"],
23539
23539
  setup(e, { emit: t }) {
23540
23540
  var B;
23541
- const n = e, i = t, a = Pp(), o = Ta(), { i18n: { t: r } } = Ze.useI18n(), { pluginMetaData: s } = Ze.usePluginMetaData(), { getMessageFromError: u } = hi(), { sortAlpha: d, objectsAreEqual: p } = Ia(), c = X(""), f = X(!0), m = X(!1), g = X(""), y = X([]), h = X([]), v = X({}), k = X([]), { axiosInstance: x } = Fn((B = n.config) == null ? void 0 : B.axiosRequestConfig), E = T(() => v.value ? Object.entries(v.value).filter(([S]) => S !== He.CUSTOM_PLUGINS).reduce((S, [, z]) => {
23541
+ const n = e, i = t, a = Np(), o = Ta(), { i18n: { t: r } } = Ze.useI18n(), { pluginMetaData: s } = Ze.usePluginMetaData(), { getMessageFromError: u } = hi(), { sortAlpha: d, objectsAreEqual: p } = Ia(), c = X(""), f = X(!0), m = X(!1), g = X(""), y = X([]), h = X([]), v = X({}), k = X([]), { axiosInstance: x } = Fn((B = n.config) == null ? void 0 : B.axiosRequestConfig), E = T(() => v.value ? Object.entries(v.value).filter(([S]) => S !== He.CUSTOM_PLUGINS).reduce((S, [, z]) => {
23542
23542
  for (const Q of z ?? [])
23543
23543
  S[Q.id] = Q;
23544
23544
  return S;
@@ -23565,11 +23565,11 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23565
23565
  title: r("plugins.select.tabs.custom.title"),
23566
23566
  disabled: ["none", "disabled"].includes(n.customPluginSupport)
23567
23567
  }
23568
- ] : []), N = T(() => {
23568
+ ] : []), P = T(() => {
23569
23569
  var z;
23570
23570
  let S = K.value.length && ((a == null ? void 0 : a.hash) || ((z = K.value[0]) == null ? void 0 : z.hash)) || "";
23571
23571
  return S === "#custom" && ["none", "disabled"].includes(n.customPluginSupport) && (S = "#kong"), S;
23572
- }), P = () => [.../* @__PURE__ */ new Set(
23572
+ }), N = () => [.../* @__PURE__ */ new Set(
23573
23573
  [
23574
23574
  ...Object.keys({ ...n.availableOnServer ? {} : s }),
23575
23575
  ...y.value
@@ -23608,9 +23608,9 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23608
23608
  o.replace({ hash: S, query: a.query });
23609
23609
  };
23610
23610
  ze(() => n.disabledPlugins, (S, z) => {
23611
- !p(S, z) && !f.value && (v.value = P());
23611
+ !p(S, z) && !f.value && (v.value = N());
23612
23612
  }), ze(() => n.ignoredPlugins, (S, z) => {
23613
- !p(S, z) && !f.value && (v.value = P());
23613
+ !p(S, z) && !f.value && (v.value = N());
23614
23614
  }), ze(f, (S) => {
23615
23615
  i("loading", S);
23616
23616
  });
@@ -23646,7 +23646,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23646
23646
  }
23647
23647
  } catch {
23648
23648
  }
23649
- m.value || (v.value = P()), f.value = !1;
23649
+ m.value || (v.value = N()), f.value = !1;
23650
23650
  }), (S, z) => {
23651
23651
  const Q = oe("KInput"), ce = oe("KSkeletonBox"), W = oe("KSkeleton"), te = oe("KEmptyState"), ie = oe("KTooltip"), Ae = oe("KTabs");
23652
23652
  return _(), G("div", WF, [
@@ -23695,8 +23695,8 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23695
23695
  })) : (_(), G("section", XF, [
23696
23696
  K.value.length && e.customPluginSupport !== "none" ? (_(), L(Ae, {
23697
23697
  key: 0,
23698
- modelValue: N.value,
23699
- "onUpdate:modelValue": z[5] || (z[5] = (je) => N.value = je),
23698
+ modelValue: P.value,
23699
+ "onUpdate:modelValue": z[5] || (z[5] = (je) => P.value = je),
23700
23700
  "data-testid": "plugins-tabs",
23701
23701
  tabs: K.value,
23702
23702
  onChange: U
@@ -23728,7 +23728,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
23728
23728
  "plugin-list": b.value,
23729
23729
  "onDelete:success": z[2] || (z[2] = (je) => S.$emit("delete-custom:success", je)),
23730
23730
  onPluginClicked: z[3] || (z[3] = (je) => S.$emit("plugin-clicked", je)),
23731
- onRevalidate: z[4] || (z[4] = () => v.value = P())
23731
+ onRevalidate: z[4] || (z[4] = () => v.value = N())
23732
23732
  }, null, 8, ["can-create-custom-plugin", "can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin-list"])
23733
23733
  ])
23734
23734
  ]),
@@ -24111,14 +24111,14 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24111
24111
  }, x = (E) => {
24112
24112
  const { sortColumnKey: b, sortColumnOrder: w } = E;
24113
24113
  b === "name" && (c.value = [...c.value].sort((I, $) => {
24114
- const K = (I[b] || "").toLowerCase(), N = ($[b] || "").toLowerCase();
24115
- return K < N ? w === "asc" ? -1 : 1 : K > N ? w === "asc" ? 1 : -1 : 0;
24114
+ const K = (I[b] || "").toLowerCase(), P = ($[b] || "").toLowerCase();
24115
+ return K < P ? w === "asc" ? -1 : 1 : K > P ? w === "asc" ? 1 : -1 : 0;
24116
24116
  }));
24117
24117
  };
24118
24118
  return (E, b) => {
24119
- const w = oe("KButton"), I = oe("KDropdownItem"), $ = oe("KDropdown"), K = oe("KTableView"), N = oe("KCard");
24119
+ const w = oe("KButton"), I = oe("KDropdownItem"), $ = oe("KDropdown"), K = oe("KTableView"), P = oe("KCard");
24120
24120
  return _(), G(Fe, null, [
24121
- C(N, { "data-testid": "plugin-catalog-list-view-card" }, {
24121
+ C(P, { "data-testid": "plugin-catalog-list-view-card" }, {
24122
24122
  default: A(() => [
24123
24123
  (_(), L(K, {
24124
24124
  key: u.value,
@@ -24139,34 +24139,34 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24139
24139
  onPageSizeChange: k,
24140
24140
  onSort: x
24141
24141
  }, {
24142
- name: A(({ row: P }) => [
24142
+ name: A(({ row: N }) => [
24143
24143
  D("span", AR, [
24144
24144
  C(l(Sa), {
24145
- "data-testid": `plugin-catalog-list-view-${P.plugin.id}-icon`,
24146
- name: P.plugin.id,
24145
+ "data-testid": `plugin-catalog-list-view-${N.plugin.id}-icon`,
24146
+ name: N.plugin.id,
24147
24147
  size: 20
24148
24148
  }, null, 8, ["data-testid", "name"]),
24149
24149
  D("span", {
24150
24150
  class: "plugin-name-text",
24151
24151
  "data-testid": "plugin-catalog-list-view-name-text",
24152
- title: P.name
24153
- }, H(P.name), 9, IR)
24152
+ title: N.name
24153
+ }, H(N.name), 9, IR)
24154
24154
  ])
24155
24155
  ]),
24156
- description: A(({ row: P }) => [
24156
+ description: A(({ row: N }) => [
24157
24157
  D("span", {
24158
24158
  class: "plugin-description-cell",
24159
24159
  "data-testid": "plugin-catalog-list-view-description",
24160
- title: P.description
24161
- }, H(P.description), 9, TR)
24160
+ title: N.description
24161
+ }, H(N.description), 9, TR)
24162
24162
  ]),
24163
- action: A(({ row: P }) => [
24163
+ action: A(({ row: N }) => [
24164
24164
  D("div", SR, [
24165
24165
  C(w, {
24166
24166
  appearance: "tertiary",
24167
24167
  "data-testid": "plugin-catalog-list-view-configure-btn",
24168
24168
  size: "small",
24169
- to: i.config.getCreateRoute(P.id)
24169
+ to: i.config.getCreateRoute(N.id)
24170
24170
  }, {
24171
24171
  default: A(() => [
24172
24172
  ye(H(l(a)("actions.configure")), 1)
@@ -24175,10 +24175,10 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24175
24175
  }, 8, ["to"])
24176
24176
  ])
24177
24177
  ]),
24178
- "more-actions": A(({ row: P }) => {
24178
+ "more-actions": A(({ row: N }) => {
24179
24179
  var F;
24180
24180
  return [
24181
- (F = P.plugin) != null && F.customPluginType ? (_(), G("div", OR, [
24181
+ (F = N.plugin) != null && F.customPluginType ? (_(), G("div", OR, [
24182
24182
  C($, {
24183
24183
  appearance: "tertiary",
24184
24184
  class: "actions-trigger",
@@ -24191,7 +24191,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24191
24191
  return [
24192
24192
  C(I, {
24193
24193
  "data-testid": "edit-plugin-schema",
24194
- item: { label: l(a)("actions.edit"), to: (q = (J = e.config).getCustomEditRoute) == null ? void 0 : q.call(J, P.plugin.name, P.plugin.customPluginType) }
24194
+ item: { label: l(a)("actions.edit"), to: (q = (J = e.config).getCustomEditRoute) == null ? void 0 : q.call(J, N.plugin.name, N.plugin.customPluginType) }
24195
24195
  }, {
24196
24196
  default: A(() => [
24197
24197
  ye(H(l(a)("actions.edit")), 1)
@@ -24202,7 +24202,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24202
24202
  danger: "",
24203
24203
  "data-testid": "delete-plugin-schema",
24204
24204
  "has-divider": "",
24205
- onClick: () => g(P.plugin)
24205
+ onClick: () => g(N.plugin)
24206
24206
  }, {
24207
24207
  default: A(() => [
24208
24208
  ye(H(l(a)("actions.delete")), 1)
@@ -24232,12 +24232,12 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24232
24232
  config: e.config,
24233
24233
  plugin: m.value,
24234
24234
  onClosed: y,
24235
- onProceed: b[0] || (b[0] = (P) => y(!0))
24235
+ onProceed: b[0] || (b[0] = (N) => y(!0))
24236
24236
  }, null, 8, ["config", "plugin"])) : ue("", !0)
24237
24237
  ], 64);
24238
24238
  };
24239
24239
  }
24240
- }), PR = /* @__PURE__ */ Te($R, [["__scopeId", "data-v-fff2eb7f"]]), NR = {
24240
+ }), NR = /* @__PURE__ */ Te($R, [["__scopeId", "data-v-fff2eb7f"]]), PR = {
24241
24241
  class: "plugin-catalog",
24242
24242
  "data-testid": "plugin-catalog"
24243
24243
  }, FR = {
@@ -24269,13 +24269,13 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24269
24269
  return ne = ne.replace(/{controlPlaneId}/gi, u.config.controlPlaneId || ""), ne;
24270
24270
  }
24271
24271
  return null;
24272
- }), N = T(() => {
24272
+ }), P = T(() => {
24273
24273
  if (u.config.entityType && u.config.entityId) {
24274
24274
  let ne = `${u.config.apiBaseUrl}${mt.list[u.config.app].forEntity}`;
24275
24275
  return u.config.app === "konnect" ? ne = ne.replace(/{controlPlaneId}/gi, u.config.controlPlaneId || "") : u.config.app === "kongManager" && (ne = ne.replace(/\/{workspace}/gi, u.config.workspace ? `/${u.config.workspace}` : "")), ne.replace(/{entityType}/gi, u.config.entityType || "").replace(/{entityId}/gi, u.config.entityId || "");
24276
24276
  }
24277
24277
  return "";
24278
- }), P = T(() => {
24278
+ }), N = T(() => {
24279
24279
  var Q;
24280
24280
  if (!E.value)
24281
24281
  return {};
@@ -24300,7 +24300,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24300
24300
  S.reduce((ce, W) => (ce.has(W.id) || ce.set(W.id, W), ce), /* @__PURE__ */ new Map()).values()
24301
24301
  );
24302
24302
  return z.length ? { "Query Result": z } : {};
24303
- }), F = T(() => Object.keys(P.value).length > 0), J = T(() => Object.keys(E.value).length > 0 && !F.value), q = () => {
24303
+ }), F = T(() => Object.keys(N.value).length > 0), J = T(() => Object.keys(E.value).length > 0 && !F.value), q = () => {
24304
24304
  Object.keys(g.value).forEach((ne) => {
24305
24305
  g.value[ne] = !1;
24306
24306
  });
@@ -24360,9 +24360,9 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24360
24360
  } catch (O) {
24361
24361
  h.value = !0, v.value = o(O);
24362
24362
  }
24363
- if (N.value)
24363
+ if (P.value)
24364
24364
  try {
24365
- const { data: { data: O } } = await d.get(N.value);
24365
+ const { data: { data: O } } = await d.get(P.value);
24366
24366
  if (O != null && O.length) {
24367
24367
  const B = O.reduce((S, z) => (z.name && S.push(z.name), S), []);
24368
24368
  b.value = b.value.concat(B);
@@ -24372,7 +24372,7 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24372
24372
  h.value || (E.value = U()), y.value = !1;
24373
24373
  }), (ne, V) => {
24374
24374
  const O = oe("KButton"), B = oe("KCheckbox"), S = oe("KBadge"), z = oe("KCollapse"), Q = oe("KInput"), ce = oe("KSkeletonBox"), W = oe("KSkeleton"), te = oe("KEmptyState");
24375
- return _(), G("div", NR, [
24375
+ return _(), G("div", PR, [
24376
24376
  D("div", FR, [
24377
24377
  D("div", RR, [
24378
24378
  ye(H(l(i)("plugins.select.filter.title")) + " ", 1),
@@ -24511,15 +24511,15 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24511
24511
  ]),
24512
24512
  _: 1
24513
24513
  })) : (_(), G("section", zR, [
24514
- w.value ? (_(), L(PR, {
24514
+ w.value ? (_(), L(NR, {
24515
24515
  key: 0,
24516
24516
  config: e.config,
24517
- "plugin-list": P.value,
24517
+ "plugin-list": N.value,
24518
24518
  "onDelete:success": V[4] || (V[4] = (ie) => ne.$emit("delete-custom:success", ie))
24519
24519
  }, null, 8, ["config", "plugin-list"])) : (_(), L(xR, {
24520
24520
  key: 1,
24521
24521
  config: e.config,
24522
- "plugin-list": P.value,
24522
+ "plugin-list": N.value,
24523
24523
  "onDelete:success": V[5] || (V[5] = (ie) => ne.$emit("delete-custom:success", ie)),
24524
24524
  onPluginClicked: V[6] || (V[6] = (ie) => ne.$emit("plugin-clicked", ie))
24525
24525
  }, null, 8, ["config", "plugin-list"]))
@@ -24635,8 +24635,8 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24635
24635
  var I, $;
24636
24636
  const b = {}, w = ((I = v.value) == null ? void 0 : I.fields) || [];
24637
24637
  for (let K = 0; K < w.length; K++) {
24638
- const N = v.value.fields[K], P = ($ = Object.keys(N)) == null ? void 0 : $[0];
24639
- r(b, P, N[P]);
24638
+ const P = v.value.fields[K], N = ($ = Object.keys(P)) == null ? void 0 : $[0];
24639
+ r(b, N, P[N]);
24640
24640
  }
24641
24641
  return {
24642
24642
  ...b,
@@ -24675,8 +24675,8 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24675
24675
  if (!((w = v.value) != null && w.fields))
24676
24676
  return [];
24677
24677
  const b = (I = v.value.fields) == null ? void 0 : I.find((K) => {
24678
- var P;
24679
- return ((P = Object.keys(K)) == null ? void 0 : P[0]) === lr;
24678
+ var N;
24679
+ return ((N = Object.keys(K)) == null ? void 0 : N[0]) === lr;
24680
24680
  });
24681
24681
  return (($ = b == null ? void 0 : b[lr]) == null ? void 0 : $.fields) || [];
24682
24682
  }), c = T(() => {
@@ -24685,10 +24685,10 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24685
24685
  if (!p.value)
24686
24686
  return b;
24687
24687
  for (let $ = 0; $ < ((w = p.value) == null ? void 0 : w.length); $++) {
24688
- const K = p.value[$], N = (I = Object.keys(K)) == null ? void 0 : I[0], P = K[N];
24689
- P.required && (b[N] = {
24688
+ const K = p.value[$], P = (I = Object.keys(K)) == null ? void 0 : I[0], N = K[P];
24689
+ N.required && (b[P] = {
24690
24690
  order: 1
24691
- }), r(b, N, P);
24691
+ }), r(b, P, N);
24692
24692
  }
24693
24693
  return b;
24694
24694
  }), f = (b) => {
@@ -24741,103 +24741,103 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24741
24741
  "plugin-config-key": lr,
24742
24742
  "plugin-config-schema": c.value,
24743
24743
  "record-resolver": f,
24744
- "onFetch:error": w[0] || (w[0] = (N) => b.$emit("fetch:error", N)),
24745
- "onFetch:success": w[1] || (w[1] = (N) => b.$emit("fetch:success", N)),
24746
- onLoading: w[2] || (w[2] = (N) => b.$emit("loading", N))
24744
+ "onFetch:error": w[0] || (w[0] = (P) => b.$emit("fetch:error", P)),
24745
+ "onFetch:success": w[1] || (w[1] = (P) => b.$emit("fetch:success", P)),
24746
+ onLoading: w[2] || (w[2] = (P) => b.$emit("loading", P))
24747
24747
  }, ot({
24748
- name: A((N) => [
24748
+ name: A((P) => [
24749
24749
  D("div", tM, [
24750
24750
  C(l(Sa), {
24751
24751
  class: "plugin-icon",
24752
- name: l(s)("rowValue", N),
24752
+ name: l(s)("rowValue", P),
24753
24753
  size: 24
24754
24754
  }, null, 8, ["name"]),
24755
- D("span", nM, H(l(o).getDisplayName(l(s)("rowValue", N))), 1)
24755
+ D("span", nM, H(l(o).getDisplayName(l(s)("rowValue", P))), 1)
24756
24756
  ])
24757
24757
  ]),
24758
- consumer: A((N) => [
24759
- l(s)("rowValue", N) ? e.showIdAsLink ? (_(), L(l(Ji), {
24758
+ consumer: A((P) => [
24759
+ l(s)("rowValue", P) ? e.showIdAsLink ? (_(), L(l(Ji), {
24760
24760
  key: 1,
24761
24761
  item: {
24762
- key: l(s)("rowValue", N).id,
24763
- value: l(s)("rowValue", N).id,
24762
+ key: l(s)("rowValue", P).id,
24763
+ value: l(s)("rowValue", P).id,
24764
24764
  type: l(jt).LinkInternal
24765
24765
  },
24766
- onNavigationClick: () => b.$emit("navigation-click", l(s)("rowValue", N).id, "consumer")
24766
+ onNavigationClick: () => b.$emit("navigation-click", l(s)("rowValue", P).id, "consumer")
24767
24767
  }, null, 8, ["item", "onNavigationClick"])) : (_(), L(K, {
24768
24768
  key: 2,
24769
- "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", N).label }),
24769
+ "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", P).label }),
24770
24770
  "data-testid": "consumer-copy-uuid",
24771
- text: l(s)("rowValue", N).id
24771
+ text: l(s)("rowValue", P).id
24772
24772
  }, null, 8, ["copy-tooltip", "text"])) : (_(), G("span", iM, "–"))
24773
24773
  ]),
24774
- route: A((N) => [
24775
- l(s)("rowValue", N) ? e.showIdAsLink ? (_(), L(l(Ji), {
24774
+ route: A((P) => [
24775
+ l(s)("rowValue", P) ? e.showIdAsLink ? (_(), L(l(Ji), {
24776
24776
  key: 1,
24777
24777
  item: {
24778
- key: l(s)("rowValue", N).id,
24779
- value: l(s)("rowValue", N).id,
24778
+ key: l(s)("rowValue", P).id,
24779
+ value: l(s)("rowValue", P).id,
24780
24780
  type: l(jt).LinkInternal
24781
24781
  },
24782
- onNavigationClick: () => b.$emit("navigation-click", l(s)("rowValue", N).id, "route")
24782
+ onNavigationClick: () => b.$emit("navigation-click", l(s)("rowValue", P).id, "route")
24783
24783
  }, null, 8, ["item", "onNavigationClick"])) : (_(), L(K, {
24784
24784
  key: 2,
24785
- "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", N).label }),
24785
+ "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", P).label }),
24786
24786
  "data-testid": "route-copy-uuid",
24787
- text: l(s)("rowValue", N).id
24787
+ text: l(s)("rowValue", P).id
24788
24788
  }, null, 8, ["copy-tooltip", "text"])) : (_(), G("span", aM, "–"))
24789
24789
  ]),
24790
- service: A((N) => [
24791
- l(s)("rowValue", N) ? e.showIdAsLink ? (_(), L(l(Ji), {
24790
+ service: A((P) => [
24791
+ l(s)("rowValue", P) ? e.showIdAsLink ? (_(), L(l(Ji), {
24792
24792
  key: 1,
24793
24793
  item: {
24794
- key: l(s)("rowValue", N).id,
24795
- value: l(s)("rowValue", N).id,
24794
+ key: l(s)("rowValue", P).id,
24795
+ value: l(s)("rowValue", P).id,
24796
24796
  type: l(jt).LinkInternal
24797
24797
  },
24798
- onNavigationClick: () => b.$emit("navigation-click", l(s)("rowValue", N).id, "service")
24798
+ onNavigationClick: () => b.$emit("navigation-click", l(s)("rowValue", P).id, "service")
24799
24799
  }, null, 8, ["item", "onNavigationClick"])) : (_(), L(K, {
24800
24800
  key: 2,
24801
- "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", N).label }),
24801
+ "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", P).label }),
24802
24802
  "data-testid": "service-copy-uuid",
24803
- text: l(s)("rowValue", N).id
24803
+ text: l(s)("rowValue", P).id
24804
24804
  }, null, 8, ["copy-tooltip", "text"])) : (_(), G("span", oM, "–"))
24805
24805
  ]),
24806
- consumer_group: A((N) => [
24807
- l(s)("rowValue", N) ? e.showIdAsLink ? (_(), L(l(Ji), {
24806
+ consumer_group: A((P) => [
24807
+ l(s)("rowValue", P) ? e.showIdAsLink ? (_(), L(l(Ji), {
24808
24808
  key: 1,
24809
24809
  item: {
24810
- key: l(s)("rowValue", N).id,
24811
- value: l(s)("rowValue", N).id,
24810
+ key: l(s)("rowValue", P).id,
24811
+ value: l(s)("rowValue", P).id,
24812
24812
  type: l(jt).LinkInternal
24813
24813
  },
24814
- onNavigationClick: () => b.$emit("navigation-click", l(s)("rowValue", N).id, "consumer_group")
24814
+ onNavigationClick: () => b.$emit("navigation-click", l(s)("rowValue", P).id, "consumer_group")
24815
24815
  }, null, 8, ["item", "onNavigationClick"])) : (_(), L(K, {
24816
24816
  key: 2,
24817
- "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", N).label }),
24817
+ "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", P).label }),
24818
24818
  "data-testid": "consumer-group-copy-uuid",
24819
- text: l(s)("rowValue", N).id
24819
+ text: l(s)("rowValue", P).id
24820
24820
  }, null, 8, ["copy-tooltip", "text"])) : (_(), G("span", rM, "–"))
24821
24821
  ]),
24822
- partials: A((N) => {
24823
- var P, F, J, q, U, ee, ne, V, O;
24822
+ partials: A((P) => {
24823
+ var N, F, J, q, U, ee, ne, V, O;
24824
24824
  return [
24825
- l(s)("rowValue", N) ? e.showIdAsLink ? (_(), L(l(Ji), {
24825
+ l(s)("rowValue", P) ? e.showIdAsLink ? (_(), L(l(Ji), {
24826
24826
  key: 1,
24827
24827
  item: {
24828
- key: (F = (P = l(s)("rowValue", N)) == null ? void 0 : P[0]) == null ? void 0 : F.id,
24829
- value: ((q = (J = l(s)("rowValue", N)) == null ? void 0 : J[0]) == null ? void 0 : q.id) + ((ee = (U = l(s)("rowValue", N)) == null ? void 0 : U[0]) != null && ee.name ? "/" + ((V = (ne = l(s)("rowValue", N)) == null ? void 0 : ne[0]) == null ? void 0 : V.name) : ""),
24828
+ key: (F = (N = l(s)("rowValue", P)) == null ? void 0 : N[0]) == null ? void 0 : F.id,
24829
+ value: ((q = (J = l(s)("rowValue", P)) == null ? void 0 : J[0]) == null ? void 0 : q.id) + ((ee = (U = l(s)("rowValue", P)) == null ? void 0 : U[0]) != null && ee.name ? "/" + ((V = (ne = l(s)("rowValue", P)) == null ? void 0 : ne[0]) == null ? void 0 : V.name) : ""),
24830
24830
  type: l(jt).LinkInternal
24831
24831
  },
24832
24832
  onNavigationClick: () => {
24833
24833
  var B, S;
24834
- return b.$emit("navigation-click", (S = (B = l(s)("rowValue", N)) == null ? void 0 : B[0]) == null ? void 0 : S.id, "partial");
24834
+ return b.$emit("navigation-click", (S = (B = l(s)("rowValue", P)) == null ? void 0 : B[0]) == null ? void 0 : S.id, "partial");
24835
24835
  }
24836
24836
  }, null, 8, ["item", "onNavigationClick"])) : (_(), L(K, {
24837
24837
  key: 2,
24838
- "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", N).label }),
24838
+ "copy-tooltip": l(a)("copy.tooltip", { label: l(s)("row", P).label }),
24839
24839
  "data-testid": "partial-copy-uuid",
24840
- text: (O = l(s)("rowValue", N)) == null ? void 0 : O[0].id
24840
+ text: (O = l(s)("rowValue", P)) == null ? void 0 : O[0].id
24841
24841
  }, null, 8, ["copy-tooltip", "text"])) : (_(), G("span", sM, "–"))
24842
24842
  ];
24843
24843
  }),
@@ -24845,10 +24845,10 @@ const uF = { class: "kong-ui-entities-plugin-form" }, cF = {
24845
24845
  }, [
24846
24846
  e.config.pluginType === "datakit" && e.config.app === "konnect" ? {
24847
24847
  name: "config-card-item-nodes",
24848
- fn: A((N) => [
24848
+ fn: A((P) => [
24849
24849
  C(QR, {
24850
- item: N.row,
24851
- "plugin-data": N.record
24850
+ item: P.row,
24851
+ "plugin-data": P.record
24852
24852
  }, null, 8, ["item", "plugin-data"])
24853
24853
  ]),
24854
24854
  key: "0"