@kong-ui-public/entities-plugins 9.150.2 → 9.151.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +537 -525
- package/dist/entities-plugins.umd.js +1 -1
- package/dist/filler/cypress/index.js +217 -0
- package/dist/filler/cypress/types.d.ts +11 -0
- package/dist/filler/cypress/types.d.ts.map +1 -0
- package/dist/filler/field-walker-BbdVjVQ1.js +2389 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/create-filler.d.ts +10 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/create-filler.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/array.d.ts +3 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/array.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/boolean.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/boolean.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/enum.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/enum.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/foreign.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/foreign.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/index.d.ts +35 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/index.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/json.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/json.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/map.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/map.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/number.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/number.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/record.d.ts +3 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/record.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/string.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/string.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/tag.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/tag.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/types.d.ts +21 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/handlers/types.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/index.d.ts +3 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/cypress/index.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/create-filler.d.ts +14 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/create-filler.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/array.d.ts +3 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/array.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/boolean.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/boolean.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/enum.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/enum.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/foreign.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/foreign.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/index.d.ts +35 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/index.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/json.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/json.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/map.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/map.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/number.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/number.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/record.d.ts +3 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/record.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/string.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/string.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/tag.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/tag.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/types.d.ts +18 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/handlers/types.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/index.d.ts +3 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/playwright/index.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/field-walker.d.ts +36 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/field-walker.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/index.d.ts +4 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/index.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/schema-utils.d.ts +6 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/schema-utils.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/selectors.d.ts +30 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/filler/shared/selectors.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables.d.ts +174 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/types.d.ts +155 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/types.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/utils.d.ts +68 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/utils.d.ts.map +1 -0
- package/dist/filler/packages/entities/entities-plugins/src/types/plugins/form-schema.d.ts +132 -0
- package/dist/filler/packages/entities/entities-plugins/src/types/plugins/form-schema.d.ts.map +1 -0
- package/dist/filler/playwright/index.js +189 -0
- package/dist/style.css +1 -1
- package/dist/types/components/PluginEntityForm.vue.d.ts +1 -1
- package/dist/types/components/free-form/shared/ArrayField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/EnumField.vue.d.ts +9 -4
- package/dist/types/components/free-form/shared/EnumField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/FieldRenderer.vue.d.ts +1 -8
- package/dist/types/components/free-form/shared/FieldRenderer.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/composables.d.ts +5 -5
- package/dist/types/components/free-form/shared/composables.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/headless/useKeyValueField.d.ts +2 -2
- package/dist/types/components/free-form/shared/types.d.ts +9 -1
- package/dist/types/components/free-form/shared/types.d.ts.map +1 -1
- package/package.json +33 -10
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var ip = Object.defineProperty;
|
|
2
2
|
var ap = (e, t, n) => t in e ? ip(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var vt = (e, t, n) => ap(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as be, useModel as
|
|
5
|
-
import { useStringHelpers as fo, ConfigurationSchemaType as Rt, useAxios as On, useErrors as di, EntityFormBlock as
|
|
6
|
-
import { marked as
|
|
7
|
-
import { onBeforeRouteLeave as Ip, useRouter as
|
|
4
|
+
import { defineComponent as be, useModel as Ri, inject as $t, ref as Y, computed as T, onMounted as Tn, resolveComponent as re, createBlock as M, openBlock as w, toRef as it, createElementBlock as V, createVNode as C, unref as l, isRef as jr, markRaw as op, provide as Yt, withCtx as A, createElementVNode as j, createCommentVNode as fe, Fragment as Fe, renderList as Be, toDisplayString as W, toValue as Ye, reactive as Pi, useSlots as ln, watch as De, readonly as Lu, onBeforeUnmount as ju, useAttrs as Un, mergeProps as Qe, createSlots as et, renderSlot as Ge, normalizeProps as Ht, guardReactiveProps as Jt, createPropsRestProxy as un, withDirectives as Ft, resolveDynamicComponent as bt, vShow as Mt, Transition as rp, mergeModels as oa, useId as Kr, onBeforeMount as ci, withModifiers as pt, normalizeClass as Ze, createTextVNode as xe, useTemplateRef as rt, withKeys as Ms, nextTick as Wt, useCssVars as wa, toRaw as Ku, watchEffect as Du, shallowRef as gn, warn as sp, onScopeDispose as lp, normalizeStyle as Qn, Teleport as Dr, onUnmounted as qu } from "vue";
|
|
5
|
+
import { useStringHelpers as fo, ConfigurationSchemaType as Rt, useAxios as On, useErrors as di, EntityFormBlock as Ta, useHelpers as ka, FEATURE_FLAGS as up, EntityBaseFormType as Bn, EntityBaseForm as cp, SupportedEntityType as Da, DeckCodeBlock as dp, TerraformCodeBlock as fp, YamlCodeBlock as pp, JsonCodeBlock as mp, useTableState as gp, useGatewayFeatureSupported as hp, useFetcher as vp, useDeleteUrlBuilder as yp, FetcherStatus as _p, EntityBaseTable as bp, PermissionsWrapper as Gn, TableTags as wp, EntityFilter as kp, EntityToggleModal as Cp, EntityDeleteModal as Vu, EntityTypes as Uu, ConfigCardItem as Ep, ConfigurationSchemaSection as wi, useSchemaProvider as xp, EntityBaseConfigCard as Ap, InternalLinkItem as Hi } from "@kong-ui-public/entities-shared";
|
|
6
|
+
import { marked as qa } from "marked";
|
|
7
|
+
import { onBeforeRouteLeave as Ip, useRouter as Ca, useRoute as Sp } from "vue-router";
|
|
8
8
|
import { createI18n as kt, i18nTComponent as Tp } from "@kong-ui-public/i18n";
|
|
9
9
|
import { PluginGroup as qe, PLUGIN_GROUP_AND_SCOPE_MAP as se, PluginScope as ct, GATEWAY_VERSION_TIMESTAMP_MAP as Op } from "@kong-ui-public/entities-plugins-metadata";
|
|
10
10
|
import { PluginGroup as yM, PluginScope as _M } from "@kong-ui-public/entities-plugins-metadata";
|
|
11
|
-
import { FORMS_CONFIG as
|
|
11
|
+
import { FORMS_CONFIG as Ea, composables as $p, getSharedFormName as Bu, customFields as ar, AUTOFILL_SLOT as fi, VueFormGenerator as qr, AUTOFILL_SLOT_NAME as Jn, FORMS_API_KEY as Pp, sharedForms as Ls } from "@kong-ui-public/forms";
|
|
12
12
|
import { VaultSecretPicker as Gu, VaultSecretPickerProvider as Fo } from "@kong-ui-public/entities-vaults";
|
|
13
13
|
import "@kong-ui-public/entities-vaults/dist/style.css";
|
|
14
|
-
import { createInjectionState as Vr, useManualRefHistory as Np, createGlobalState as Rp, useLocalStorage as Mo, useEventListener as
|
|
15
|
-
import { ChevronRightIcon as jp, CloseIcon as po, AddIcon as tn, TrashIcon as zu, RemoveIcon as Ur, SparklesIcon as Kp, KeyIcon as Hu, CloudIcon as
|
|
16
|
-
import { KTextArea as hm, KInput as vm, KCheckbox as ym, KLabel as ei, KMultiselect as _m, KSelect as bm, KCard as Vs, KCollapse as Ju, KRadio as
|
|
14
|
+
import { createInjectionState as Vr, useManualRefHistory as Np, createGlobalState as Rp, useLocalStorage as Mo, useEventListener as ra, createSharedComposable as Fp, useElementBounding as Hn, useDraggable as Mp, useScrollLock as Lp } from "@vueuse/core";
|
|
15
|
+
import { ChevronRightIcon as jp, CloseIcon as po, AddIcon as tn, TrashIcon as zu, RemoveIcon as Ur, SparklesIcon as Kp, KeyIcon as Hu, CloudIcon as Oa, CodeIcon as Dp, DataObjectIcon as qp, CachedIcon as Vp, ArrowSplitIcon as Wu, DeployIcon as Yu, StackIcon as Up, GatewayIcon as Bp, CodeblockIcon as Br, NetworkIcon as Gp, WarningIcon as zp, MoreIcon as qi, UnfoldMoreIcon as js, UnfoldLessIcon as Ks, FullscreenIcon as Hp, AutoLayoutIcon as Wp, ChevronDownIcon as Ds, ArrowLeftIcon as Yp, ChevronDoubleLeftIcon as Jp, ChevronDoubleRightIcon as Xp, UndoIcon as Zp, RedoIcon as Qp, ExternalLinkIcon as em, DatabaseIcon as tm, ExpandIcon as nm, DesignIcon as im, BookIcon as qs, PlugIcon as am, TransformationIcon as om, TrafficIcon as rm, RuntimeServerlessIcon as sm, SecurityIcon as lm, ServiceDocumentIcon as um, LockIcon as cm, AnalyticsIcon as dm, BotIcon as fm, PopularIcon as pm, GridIcon as mm, ListIcon as gm } from "@kong/icons";
|
|
16
|
+
import { KTextArea as hm, KInput as vm, KCheckbox as ym, KLabel as ei, KMultiselect as _m, KSelect as bm, KCard as Vs, KCollapse as Ju, KRadio as or, KTooltip as vn, KAlert as wm, KButton as xn, KModal as km, KDropdown as Xu, KDropdownItem as Va, KSlideout as Cm, KSegmentedControl as Em } from "@kong/kongponents";
|
|
17
17
|
import { RedisConfigurationSelector as Zu } from "@kong-ui-public/entities-redis-configurations";
|
|
18
18
|
import "@kong-ui-public/entities-redis-configurations/dist/style.css";
|
|
19
19
|
import * as Lo from "monaco-editor";
|
|
20
20
|
import { MonacoEditor as xm } from "@kong-ui-public/monaco-editor";
|
|
21
21
|
import "@kong-ui-public/monaco-editor/dist/runtime/style.css";
|
|
22
|
-
import { useVueFlow as
|
|
22
|
+
import { useVueFlow as Fi, MarkerType as Qu, Position as mn, Handle as Ei, VueFlow as ec } from "@vue-flow/core";
|
|
23
23
|
import { Background as Am } from "@vue-flow/background";
|
|
24
24
|
import { Controls as Im, ControlButton as Sm } from "@vue-flow/controls";
|
|
25
25
|
import "@vue-flow/controls/dist/style.css";
|
|
@@ -27,7 +27,7 @@ import "@vue-flow/core/dist/style.css";
|
|
|
27
27
|
import "@vue-flow/core/dist/theme-default.css";
|
|
28
28
|
import { codeToHtml as Tm } from "shiki";
|
|
29
29
|
import { z as F } from "zod";
|
|
30
|
-
import { PluginIcon as
|
|
30
|
+
import { PluginIcon as xa } from "@kong-ui-public/entities-plugins-icon";
|
|
31
31
|
import { PluginIcon as wM, getPluginIconURL as kM } from "@kong-ui-public/entities-plugins-icon";
|
|
32
32
|
const Om = {
|
|
33
33
|
cancel: "Cancel",
|
|
@@ -1203,8 +1203,8 @@ function tc() {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
};
|
|
1205
1205
|
}
|
|
1206
|
-
var
|
|
1207
|
-
const
|
|
1206
|
+
var rr = /* @__PURE__ */ ((e) => (e.REDIS_CE = "redis-ce", e.REDIS_EE = "redis-ee", e))(rr || {});
|
|
1207
|
+
const sr = [
|
|
1208
1208
|
"Featured"
|
|
1209
1209
|
], qm = [
|
|
1210
1210
|
qe.AUTHENTICATION,
|
|
@@ -1218,7 +1218,7 @@ const lr = [
|
|
|
1218
1218
|
qe.DEPLOYMENT,
|
|
1219
1219
|
qe.WEBSOCKET,
|
|
1220
1220
|
qe.CUSTOM_PLUGINS
|
|
1221
|
-
],
|
|
1221
|
+
], lr = [
|
|
1222
1222
|
qe.AI,
|
|
1223
1223
|
qe.ANALYTICS_AND_MONITORING,
|
|
1224
1224
|
qe.AUTHENTICATION,
|
|
@@ -1284,7 +1284,7 @@ const Wn = (e) => {
|
|
|
1284
1284
|
...e
|
|
1285
1285
|
};
|
|
1286
1286
|
}
|
|
1287
|
-
},
|
|
1287
|
+
}, Mi = {
|
|
1288
1288
|
getColumnFields: Wn,
|
|
1289
1289
|
tags: pi,
|
|
1290
1290
|
id: Vm,
|
|
@@ -1417,11 +1417,11 @@ const Wn = (e) => {
|
|
|
1417
1417
|
},
|
|
1418
1418
|
emits: ["update:modelValue"],
|
|
1419
1419
|
setup(e) {
|
|
1420
|
-
const t =
|
|
1420
|
+
const t = Ri(e, "modelValue"), { i18n: n } = Je.useI18n(), { t: i } = n, a = {
|
|
1421
1421
|
value: "current-cp",
|
|
1422
1422
|
label: i("custom_field.key_auth_identity_realms.cp_label"),
|
|
1423
1423
|
group: i("custom_field.key_auth_identity_realms.cp_group_label")
|
|
1424
|
-
}, o = $t(
|
|
1424
|
+
}, o = $t(Ea), { axiosInstance: r } = On(o == null ? void 0 : o.axiosRequestConfig), s = () => {
|
|
1425
1425
|
if ((o == null ? void 0 : o.app) === "konnect") {
|
|
1426
1426
|
const m = /\b(us|eu|au|me|in)\b/.exec((o == null ? void 0 : o.apiBaseUrl) || "");
|
|
1427
1427
|
if (m)
|
|
@@ -1493,7 +1493,7 @@ const Wn = (e) => {
|
|
|
1493
1493
|
}), (s, u) => (w(), V("div", Xm, [
|
|
1494
1494
|
C(ic, {
|
|
1495
1495
|
modelValue: l(r),
|
|
1496
|
-
"onUpdate:modelValue": u[0] || (u[0] = (d) =>
|
|
1496
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => jr(r) ? r.value = d : null)
|
|
1497
1497
|
}, null, 8, ["modelValue"])
|
|
1498
1498
|
]));
|
|
1499
1499
|
}
|
|
@@ -1795,7 +1795,7 @@ const Wn = (e) => {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
},
|
|
1797
1797
|
{
|
|
1798
|
-
redirect_uris:
|
|
1798
|
+
redirect_uris: Mi.fields.arrayItems({
|
|
1799
1799
|
label: "Redirect URI(s)",
|
|
1800
1800
|
hint: `One or more URLs in your app where users will be sent after
|
|
1801
1801
|
authorization (RFC 6742 Section 3.1.2)`,
|
|
@@ -1806,7 +1806,7 @@ const Wn = (e) => {
|
|
|
1806
1806
|
})
|
|
1807
1807
|
},
|
|
1808
1808
|
{
|
|
1809
|
-
tags:
|
|
1809
|
+
tags: Mi.tags
|
|
1810
1810
|
}
|
|
1811
1811
|
]
|
|
1812
1812
|
}, lg = [
|
|
@@ -2748,7 +2748,7 @@ const Wn = (e) => {
|
|
|
2748
2748
|
var o;
|
|
2749
2749
|
return ((o = t[a]) == null ? void 0 : o.name) || a;
|
|
2750
2750
|
} };
|
|
2751
|
-
},
|
|
2751
|
+
}, sa = {
|
|
2752
2752
|
type: "array",
|
|
2753
2753
|
showRemoveButton: !1,
|
|
2754
2754
|
newElementButtonLabelClasses: "kong-form-new-element-button-label",
|
|
@@ -2756,7 +2756,7 @@ const Wn = (e) => {
|
|
|
2756
2756
|
fieldClasses: "array-card-container-wrapper"
|
|
2757
2757
|
}, gg = {
|
|
2758
2758
|
"config-prompts-prepend": {
|
|
2759
|
-
...
|
|
2759
|
+
...sa,
|
|
2760
2760
|
newElementButtonLabel: "+ Add Message",
|
|
2761
2761
|
items: {
|
|
2762
2762
|
type: "object",
|
|
@@ -2784,7 +2784,7 @@ const Wn = (e) => {
|
|
|
2784
2784
|
}
|
|
2785
2785
|
},
|
|
2786
2786
|
"config-prompts-append": {
|
|
2787
|
-
...
|
|
2787
|
+
...sa,
|
|
2788
2788
|
newElementButtonLabel: "+ Add Message",
|
|
2789
2789
|
items: {
|
|
2790
2790
|
type: "object",
|
|
@@ -2813,7 +2813,7 @@ const Wn = (e) => {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
}, hg = {
|
|
2815
2815
|
"config-templates": {
|
|
2816
|
-
...
|
|
2816
|
+
...sa,
|
|
2817
2817
|
newElementButtonLabel: "+ Add Template",
|
|
2818
2818
|
items: {
|
|
2819
2819
|
type: "object",
|
|
@@ -2894,7 +2894,7 @@ const Wn = (e) => {
|
|
|
2894
2894
|
},
|
|
2895
2895
|
help: "The Gateway Service that this plugin configuration will target"
|
|
2896
2896
|
},
|
|
2897
|
-
tags:
|
|
2897
|
+
tags: Mi.tags,
|
|
2898
2898
|
protocols: {
|
|
2899
2899
|
id: "protocols",
|
|
2900
2900
|
default: [],
|
|
@@ -3053,10 +3053,10 @@ const Wn = (e) => {
|
|
|
3053
3053
|
"config-rewrite"
|
|
3054
3054
|
].reduce((e, t) => ({
|
|
3055
3055
|
...e,
|
|
3056
|
-
[t]:
|
|
3056
|
+
[t]: Mi.fields.arrayItems({
|
|
3057
3057
|
newElementButtonLabel: "Add"
|
|
3058
3058
|
})
|
|
3059
|
-
}), Ig),
|
|
3059
|
+
}), Ig), $a = {
|
|
3060
3060
|
"config-strategy": {
|
|
3061
3061
|
label: "Config.Strategy",
|
|
3062
3062
|
type: "select",
|
|
@@ -3105,7 +3105,7 @@ const Wn = (e) => {
|
|
|
3105
3105
|
"config-allow-body"
|
|
3106
3106
|
].reduce((e, t) => ({
|
|
3107
3107
|
...e,
|
|
3108
|
-
[t]:
|
|
3108
|
+
[t]: Mi.fields.arrayItems({
|
|
3109
3109
|
newElementButtonLabel: "Add"
|
|
3110
3110
|
})
|
|
3111
3111
|
}), Sg), ac = {
|
|
@@ -3190,7 +3190,7 @@ const Wn = (e) => {
|
|
|
3190
3190
|
}
|
|
3191
3191
|
}, $g = {
|
|
3192
3192
|
"config-rules": {
|
|
3193
|
-
...
|
|
3193
|
+
...sa,
|
|
3194
3194
|
newElementButtonLabel: "+ Add Rule",
|
|
3195
3195
|
items: {
|
|
3196
3196
|
type: "object",
|
|
@@ -3217,7 +3217,7 @@ const Wn = (e) => {
|
|
|
3217
3217
|
}
|
|
3218
3218
|
}, Pg = {
|
|
3219
3219
|
"config-session_redis_cluster_nodes": {
|
|
3220
|
-
...
|
|
3220
|
+
...sa,
|
|
3221
3221
|
newElementButtonLabel: "+ Add Cluster Node",
|
|
3222
3222
|
items: {
|
|
3223
3223
|
type: "object",
|
|
@@ -3423,16 +3423,16 @@ const Wn = (e) => {
|
|
|
3423
3423
|
keyFromObject: "id"
|
|
3424
3424
|
}
|
|
3425
3425
|
};
|
|
3426
|
-
var oc = typeof global == "object" && global && global.Object === Object && global, Kg = typeof self == "object" && self && self.Object === Object && self, _n = oc || Kg || Function("return this")(), nn = _n.Symbol, rc = Object.prototype, Dg = rc.hasOwnProperty, qg = rc.toString,
|
|
3426
|
+
var oc = typeof global == "object" && global && global.Object === Object && global, Kg = typeof self == "object" && self && self.Object === Object && self, _n = oc || Kg || Function("return this")(), nn = _n.Symbol, rc = Object.prototype, Dg = rc.hasOwnProperty, qg = rc.toString, Wi = nn ? nn.toStringTag : void 0;
|
|
3427
3427
|
function Vg(e) {
|
|
3428
|
-
var t = Dg.call(e,
|
|
3428
|
+
var t = Dg.call(e, Wi), n = e[Wi];
|
|
3429
3429
|
try {
|
|
3430
|
-
e[
|
|
3430
|
+
e[Wi] = void 0;
|
|
3431
3431
|
var i = !0;
|
|
3432
3432
|
} catch {
|
|
3433
3433
|
}
|
|
3434
3434
|
var a = qg.call(e);
|
|
3435
|
-
return i && (t ? e[
|
|
3435
|
+
return i && (t ? e[Wi] = n : delete e[Wi]), a;
|
|
3436
3436
|
}
|
|
3437
3437
|
var Ug = Object.prototype, Bg = Ug.toString;
|
|
3438
3438
|
function Gg(e) {
|
|
@@ -3473,7 +3473,7 @@ function lc(e) {
|
|
|
3473
3473
|
return e;
|
|
3474
3474
|
}
|
|
3475
3475
|
var Yg = "[object AsyncFunction]", Jg = "[object Function]", Xg = "[object GeneratorFunction]", Zg = "[object Proxy]";
|
|
3476
|
-
function
|
|
3476
|
+
function Ba(e) {
|
|
3477
3477
|
if (!ti(e))
|
|
3478
3478
|
return !1;
|
|
3479
3479
|
var t = mi(e);
|
|
@@ -3506,7 +3506,7 @@ var nh = /[\\^$.*+?()[\]{}|]/g, ih = /^\[object .+?Constructor\]$/, ah = Functio
|
|
|
3506
3506
|
function uh(e) {
|
|
3507
3507
|
if (!ti(e) || Qg(e))
|
|
3508
3508
|
return !1;
|
|
3509
|
-
var t =
|
|
3509
|
+
var t = Ba(e) ? lh : ih;
|
|
3510
3510
|
return t.test(gi(e));
|
|
3511
3511
|
}
|
|
3512
3512
|
function ch(e, t) {
|
|
@@ -3516,7 +3516,7 @@ function hi(e, t) {
|
|
|
3516
3516
|
var n = ch(e, t);
|
|
3517
3517
|
return uh(n) ? n : void 0;
|
|
3518
3518
|
}
|
|
3519
|
-
var
|
|
3519
|
+
var ur = hi(_n, "WeakMap"), tl = Object.create, dh = /* @__PURE__ */ (function() {
|
|
3520
3520
|
function e() {
|
|
3521
3521
|
}
|
|
3522
3522
|
return function(t) {
|
|
@@ -3566,14 +3566,14 @@ function yh(e) {
|
|
|
3566
3566
|
return e;
|
|
3567
3567
|
};
|
|
3568
3568
|
}
|
|
3569
|
-
var
|
|
3569
|
+
var Ga = (function() {
|
|
3570
3570
|
try {
|
|
3571
3571
|
var e = hi(Object, "defineProperty");
|
|
3572
3572
|
return e({}, "", {}), e;
|
|
3573
3573
|
} catch {
|
|
3574
3574
|
}
|
|
3575
|
-
})(), _h =
|
|
3576
|
-
return
|
|
3575
|
+
})(), _h = Ga ? function(e, t) {
|
|
3576
|
+
return Ga(e, "toString", {
|
|
3577
3577
|
configurable: !0,
|
|
3578
3578
|
enumerable: !1,
|
|
3579
3579
|
value: yh(t),
|
|
@@ -3613,7 +3613,7 @@ function Hr(e, t) {
|
|
|
3613
3613
|
return t = t ?? Ah, !!t && (n == "number" || n != "symbol" && Ih.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
3614
3614
|
}
|
|
3615
3615
|
function cc(e, t, n) {
|
|
3616
|
-
t == "__proto__" &&
|
|
3616
|
+
t == "__proto__" && Ga ? Ga(e, t, {
|
|
3617
3617
|
configurable: !0,
|
|
3618
3618
|
enumerable: !0,
|
|
3619
3619
|
value: n,
|
|
@@ -3628,7 +3628,7 @@ function Yr(e, t, n) {
|
|
|
3628
3628
|
var i = e[t];
|
|
3629
3629
|
(!(Th.call(e, t) && Wr(i, n)) || n === void 0 && !(t in e)) && cc(e, t, n);
|
|
3630
3630
|
}
|
|
3631
|
-
function
|
|
3631
|
+
function Aa(e, t, n, i) {
|
|
3632
3632
|
var a = !n;
|
|
3633
3633
|
n || (n = {});
|
|
3634
3634
|
for (var o = -1, r = t.length; ++o < r; ) {
|
|
@@ -3656,7 +3656,7 @@ function Jr(e) {
|
|
|
3656
3656
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $h;
|
|
3657
3657
|
}
|
|
3658
3658
|
function go(e) {
|
|
3659
|
-
return e != null && Jr(e.length) && !
|
|
3659
|
+
return e != null && Jr(e.length) && !Ba(e);
|
|
3660
3660
|
}
|
|
3661
3661
|
var Ph = Object.prototype;
|
|
3662
3662
|
function ho(e) {
|
|
@@ -3680,7 +3680,7 @@ var fc = Object.prototype, Fh = fc.hasOwnProperty, Mh = fc.propertyIsEnumerable,
|
|
|
3680
3680
|
function Lh() {
|
|
3681
3681
|
return !1;
|
|
3682
3682
|
}
|
|
3683
|
-
var pc = typeof exports == "object" && exports && !exports.nodeType && exports, al = pc && typeof module == "object" && module && !module.nodeType && module, jh = al && al.exports === pc, ol = jh ? _n.Buffer : void 0, Kh = ol ? ol.isBuffer : void 0,
|
|
3683
|
+
var pc = typeof exports == "object" && exports && !exports.nodeType && exports, al = pc && typeof module == "object" && module && !module.nodeType && module, jh = al && al.exports === pc, ol = jh ? _n.Buffer : void 0, Kh = ol ? ol.isBuffer : void 0, la = Kh || Lh, Dh = "[object Arguments]", qh = "[object Array]", Vh = "[object Boolean]", Uh = "[object Date]", Bh = "[object Error]", Gh = "[object Function]", zh = "[object Map]", Hh = "[object Number]", Wh = "[object Object]", Yh = "[object RegExp]", Jh = "[object Set]", Xh = "[object String]", Zh = "[object WeakMap]", Qh = "[object ArrayBuffer]", ev = "[object DataView]", tv = "[object Float32Array]", nv = "[object Float64Array]", iv = "[object Int8Array]", av = "[object Int16Array]", ov = "[object Int32Array]", rv = "[object Uint8Array]", sv = "[object Uint8ClampedArray]", lv = "[object Uint16Array]", uv = "[object Uint32Array]", ut = {};
|
|
3684
3684
|
ut[tv] = ut[nv] = ut[iv] = ut[av] = ut[ov] = ut[rv] = ut[sv] = ut[lv] = ut[uv] = !0;
|
|
3685
3685
|
ut[Dh] = ut[qh] = ut[Qh] = ut[Vh] = ut[ev] = ut[Uh] = ut[Bh] = ut[Gh] = ut[zh] = ut[Hh] = ut[Wh] = ut[Yh] = ut[Jh] = ut[Xh] = ut[Zh] = !1;
|
|
3686
3686
|
function cv(e) {
|
|
@@ -3691,15 +3691,15 @@ function Xr(e) {
|
|
|
3691
3691
|
return e(t);
|
|
3692
3692
|
};
|
|
3693
3693
|
}
|
|
3694
|
-
var mc = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
3694
|
+
var mc = typeof exports == "object" && exports && !exports.nodeType && exports, Qi = mc && typeof module == "object" && module && !module.nodeType && module, dv = Qi && Qi.exports === mc, Ko = dv && oc.process, Li = (function() {
|
|
3695
3695
|
try {
|
|
3696
|
-
var e =
|
|
3696
|
+
var e = Qi && Qi.require && Qi.require("util").types;
|
|
3697
3697
|
return e || Ko && Ko.binding && Ko.binding("util");
|
|
3698
3698
|
} catch {
|
|
3699
3699
|
}
|
|
3700
|
-
})(), rl =
|
|
3700
|
+
})(), rl = Li && Li.isTypedArray, Zr = rl ? Xr(rl) : cv, fv = Object.prototype, pv = fv.hasOwnProperty;
|
|
3701
3701
|
function gc(e, t) {
|
|
3702
|
-
var n = rn(e), i = !n && vo(e), a = !n && !i &&
|
|
3702
|
+
var n = rn(e), i = !n && vo(e), a = !n && !i && la(e), o = !n && !i && !a && Zr(e), r = n || i || a || o, s = r ? Nh(e.length, String) : [], u = s.length;
|
|
3703
3703
|
for (var d in e)
|
|
3704
3704
|
(t || pv.call(e, d)) && !(r && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3705
3705
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -3751,9 +3751,9 @@ function Cv(e, t) {
|
|
|
3751
3751
|
var n = typeof e;
|
|
3752
3752
|
return n == "number" || n == "symbol" || n == "boolean" || e == null || Gr(e) ? !0 : kv.test(e) || !wv.test(e) || t != null && e in Object(t);
|
|
3753
3753
|
}
|
|
3754
|
-
var
|
|
3754
|
+
var ua = hi(Object, "create");
|
|
3755
3755
|
function Ev() {
|
|
3756
|
-
this.__data__ =
|
|
3756
|
+
this.__data__ = ua ? ua(null) : {}, this.size = 0;
|
|
3757
3757
|
}
|
|
3758
3758
|
function xv(e) {
|
|
3759
3759
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -3762,7 +3762,7 @@ function xv(e) {
|
|
|
3762
3762
|
var Av = "__lodash_hash_undefined__", Iv = Object.prototype, Sv = Iv.hasOwnProperty;
|
|
3763
3763
|
function Tv(e) {
|
|
3764
3764
|
var t = this.__data__;
|
|
3765
|
-
if (
|
|
3765
|
+
if (ua) {
|
|
3766
3766
|
var n = t[e];
|
|
3767
3767
|
return n === Av ? void 0 : n;
|
|
3768
3768
|
}
|
|
@@ -3771,12 +3771,12 @@ function Tv(e) {
|
|
|
3771
3771
|
var Ov = Object.prototype, $v = Ov.hasOwnProperty;
|
|
3772
3772
|
function Pv(e) {
|
|
3773
3773
|
var t = this.__data__;
|
|
3774
|
-
return
|
|
3774
|
+
return ua ? t[e] !== void 0 : $v.call(t, e);
|
|
3775
3775
|
}
|
|
3776
3776
|
var Nv = "__lodash_hash_undefined__";
|
|
3777
3777
|
function Rv(e, t) {
|
|
3778
3778
|
var n = this.__data__;
|
|
3779
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
3779
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = ua && t === void 0 ? Nv : t, this;
|
|
3780
3780
|
}
|
|
3781
3781
|
function ni(e) {
|
|
3782
3782
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -3830,11 +3830,11 @@ $n.prototype.delete = jv;
|
|
|
3830
3830
|
$n.prototype.get = Kv;
|
|
3831
3831
|
$n.prototype.has = Dv;
|
|
3832
3832
|
$n.prototype.set = qv;
|
|
3833
|
-
var
|
|
3833
|
+
var ca = hi(_n, "Map");
|
|
3834
3834
|
function Vv() {
|
|
3835
3835
|
this.size = 0, this.__data__ = {
|
|
3836
3836
|
hash: new ni(),
|
|
3837
|
-
map: new (
|
|
3837
|
+
map: new (ca || $n)(),
|
|
3838
3838
|
string: new ni()
|
|
3839
3839
|
};
|
|
3840
3840
|
}
|
|
@@ -3902,7 +3902,7 @@ var Xv = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
3902
3902
|
function bo(e) {
|
|
3903
3903
|
return e == null ? "" : sc(e);
|
|
3904
3904
|
}
|
|
3905
|
-
function
|
|
3905
|
+
function Vi(e, t) {
|
|
3906
3906
|
return rn(e) ? e : Cv(e, t) ? [e] : Qv(bo(e));
|
|
3907
3907
|
}
|
|
3908
3908
|
function wo(e) {
|
|
@@ -3912,7 +3912,7 @@ function wo(e) {
|
|
|
3912
3912
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
3913
3913
|
}
|
|
3914
3914
|
function ns(e, t) {
|
|
3915
|
-
t =
|
|
3915
|
+
t = Vi(t, e);
|
|
3916
3916
|
for (var n = 0, i = t.length; e != null && n < i; )
|
|
3917
3917
|
e = e[wo(t[n++])];
|
|
3918
3918
|
return n && n == i ? e : void 0;
|
|
@@ -3973,7 +3973,7 @@ function wc(e) {
|
|
|
3973
3973
|
function yy(e) {
|
|
3974
3974
|
return e.split("");
|
|
3975
3975
|
}
|
|
3976
|
-
var kc = "\\ud800-\\udfff", _y = "\\u0300-\\u036f", by = "\\ufe20-\\ufe2f", wy = "\\u20d0-\\u20ff", ky = _y + by + wy, Cy = "\\ufe0e\\ufe0f", Ey = "[" + kc + "]",
|
|
3976
|
+
var kc = "\\ud800-\\udfff", _y = "\\u0300-\\u036f", by = "\\ufe20-\\ufe2f", wy = "\\u20d0-\\u20ff", ky = _y + by + wy, Cy = "\\ufe0e\\ufe0f", Ey = "[" + kc + "]", cr = "[" + ky + "]", dr = "\\ud83c[\\udffb-\\udfff]", xy = "(?:" + cr + "|" + dr + ")", Cc = "[^" + kc + "]", Ec = "(?:\\ud83c[\\udde6-\\uddff]){2}", xc = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ay = "\\u200d", Ac = xy + "?", Ic = "[" + Cy + "]?", Iy = "(?:" + Ay + "(?:" + [Cc, Ec, xc].join("|") + ")" + Ic + Ac + ")*", Sy = Ic + Ac + Iy, Ty = "(?:" + [Cc + cr + "?", cr, Ec, xc, Ey].join("|") + ")", Oy = RegExp(dr + "(?=" + dr + ")|" + Ty + Sy, "g");
|
|
3977
3977
|
function $y(e) {
|
|
3978
3978
|
return e.match(Oy) || [];
|
|
3979
3979
|
}
|
|
@@ -4011,7 +4011,7 @@ function qy(e, t) {
|
|
|
4011
4011
|
var n = this.__data__;
|
|
4012
4012
|
if (n instanceof $n) {
|
|
4013
4013
|
var i = n.__data__;
|
|
4014
|
-
if (!
|
|
4014
|
+
if (!ca || i.length < Dy - 1)
|
|
4015
4015
|
return i.push([e, t]), this.size = ++n.size, this;
|
|
4016
4016
|
n = this.__data__ = new Pn(i);
|
|
4017
4017
|
}
|
|
@@ -4027,10 +4027,10 @@ In.prototype.get = jy;
|
|
|
4027
4027
|
In.prototype.has = Ky;
|
|
4028
4028
|
In.prototype.set = qy;
|
|
4029
4029
|
function Vy(e, t) {
|
|
4030
|
-
return e &&
|
|
4030
|
+
return e && Aa(t, Qr(t), e);
|
|
4031
4031
|
}
|
|
4032
4032
|
function Uy(e, t) {
|
|
4033
|
-
return e &&
|
|
4033
|
+
return e && Aa(t, es(t), e);
|
|
4034
4034
|
}
|
|
4035
4035
|
var Sc = typeof exports == "object" && exports && !exports.nodeType && exports, ll = Sc && typeof module == "object" && module && !module.nodeType && module, By = ll && ll.exports === Sc, ul = By ? _n.Buffer : void 0, cl = ul ? ul.allocUnsafe : void 0;
|
|
4036
4036
|
function Gy(e, t) {
|
|
@@ -4055,7 +4055,7 @@ var Hy = Object.prototype, Wy = Hy.propertyIsEnumerable, dl = Object.getOwnPrope
|
|
|
4055
4055
|
}));
|
|
4056
4056
|
} : Tc;
|
|
4057
4057
|
function Yy(e, t) {
|
|
4058
|
-
return
|
|
4058
|
+
return Aa(e, os(e), t);
|
|
4059
4059
|
}
|
|
4060
4060
|
var Jy = Object.getOwnPropertySymbols, Oc = Jy ? function(e) {
|
|
4061
4061
|
for (var t = []; e; )
|
|
@@ -4063,20 +4063,20 @@ var Jy = Object.getOwnPropertySymbols, Oc = Jy ? function(e) {
|
|
|
4063
4063
|
return t;
|
|
4064
4064
|
} : Tc;
|
|
4065
4065
|
function Xy(e, t) {
|
|
4066
|
-
return
|
|
4066
|
+
return Aa(e, Oc(e), t);
|
|
4067
4067
|
}
|
|
4068
4068
|
function $c(e, t, n) {
|
|
4069
4069
|
var i = t(e);
|
|
4070
4070
|
return rn(e) ? i : is(i, n(e));
|
|
4071
4071
|
}
|
|
4072
|
-
function
|
|
4072
|
+
function fr(e) {
|
|
4073
4073
|
return $c(e, Qr, os);
|
|
4074
4074
|
}
|
|
4075
4075
|
function Pc(e) {
|
|
4076
4076
|
return $c(e, es, Oc);
|
|
4077
4077
|
}
|
|
4078
|
-
var
|
|
4079
|
-
(
|
|
4078
|
+
var pr = hi(_n, "DataView"), mr = hi(_n, "Promise"), gr = hi(_n, "Set"), fl = "[object Map]", Zy = "[object Object]", pl = "[object Promise]", ml = "[object Set]", gl = "[object WeakMap]", hl = "[object DataView]", Qy = gi(pr), e_ = gi(ca), t_ = gi(mr), n_ = gi(gr), i_ = gi(ur), Qt = mi;
|
|
4079
|
+
(pr && Qt(new pr(new ArrayBuffer(1))) != hl || ca && Qt(new ca()) != fl || mr && Qt(mr.resolve()) != pl || gr && Qt(new gr()) != ml || ur && Qt(new ur()) != gl) && (Qt = function(e) {
|
|
4080
4080
|
var t = mi(e), n = t == Zy ? e.constructor : void 0, i = n ? gi(n) : "";
|
|
4081
4081
|
if (i)
|
|
4082
4082
|
switch (i) {
|
|
@@ -4098,10 +4098,10 @@ function r_(e) {
|
|
|
4098
4098
|
var t = e.length, n = new e.constructor(t);
|
|
4099
4099
|
return t && typeof e[0] == "string" && o_.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
4100
4100
|
}
|
|
4101
|
-
var
|
|
4101
|
+
var za = _n.Uint8Array;
|
|
4102
4102
|
function rs(e) {
|
|
4103
4103
|
var t = new e.constructor(e.byteLength);
|
|
4104
|
-
return new
|
|
4104
|
+
return new za(t).set(new za(e)), t;
|
|
4105
4105
|
}
|
|
4106
4106
|
function s_(e, t) {
|
|
4107
4107
|
var n = t ? rs(e.buffer) : e.buffer;
|
|
@@ -4161,14 +4161,14 @@ var N_ = "[object Map]";
|
|
|
4161
4161
|
function R_(e) {
|
|
4162
4162
|
return yn(e) && Qt(e) == N_;
|
|
4163
4163
|
}
|
|
4164
|
-
var _l =
|
|
4164
|
+
var _l = Li && Li.isMap, F_ = _l ? Xr(_l) : R_, M_ = "[object Set]";
|
|
4165
4165
|
function L_(e) {
|
|
4166
4166
|
return yn(e) && Qt(e) == M_;
|
|
4167
4167
|
}
|
|
4168
|
-
var bl =
|
|
4168
|
+
var bl = Li && Li.isSet, j_ = bl ? Xr(bl) : L_, K_ = 1, D_ = 2, q_ = 4, Nc = "[object Arguments]", V_ = "[object Array]", U_ = "[object Boolean]", B_ = "[object Date]", G_ = "[object Error]", Rc = "[object Function]", z_ = "[object GeneratorFunction]", H_ = "[object Map]", W_ = "[object Number]", Fc = "[object Object]", Y_ = "[object RegExp]", J_ = "[object Set]", X_ = "[object String]", Z_ = "[object Symbol]", Q_ = "[object WeakMap]", eb = "[object ArrayBuffer]", tb = "[object DataView]", nb = "[object Float32Array]", ib = "[object Float64Array]", ab = "[object Int8Array]", ob = "[object Int16Array]", rb = "[object Int32Array]", sb = "[object Uint8Array]", lb = "[object Uint8ClampedArray]", ub = "[object Uint16Array]", cb = "[object Uint32Array]", ot = {};
|
|
4169
4169
|
ot[Nc] = ot[V_] = ot[eb] = ot[tb] = ot[U_] = ot[B_] = ot[nb] = ot[ib] = ot[ab] = ot[ob] = ot[rb] = ot[H_] = ot[W_] = ot[Fc] = ot[Y_] = ot[J_] = ot[X_] = ot[Z_] = ot[sb] = ot[lb] = ot[ub] = ot[cb] = !0;
|
|
4170
4170
|
ot[G_] = ot[Rc] = ot[Q_] = !1;
|
|
4171
|
-
function
|
|
4171
|
+
function ea(e, t, n, i, a, o) {
|
|
4172
4172
|
var r, s = t & K_, u = t & D_, d = t & q_;
|
|
4173
4173
|
if (n && (r = a ? n(e, i, a, o) : n(e)), r !== void 0)
|
|
4174
4174
|
return r;
|
|
@@ -4180,7 +4180,7 @@ function Qi(e, t, n, i, a, o) {
|
|
|
4180
4180
|
return ph(e, r);
|
|
4181
4181
|
} else {
|
|
4182
4182
|
var c = Qt(e), f = c == Rc || c == z_;
|
|
4183
|
-
if (
|
|
4183
|
+
if (la(e))
|
|
4184
4184
|
return Gy(e, s);
|
|
4185
4185
|
if (c == Fc || c == Nc || f && !a) {
|
|
4186
4186
|
if (r = u || f ? {} : P_(e), !s)
|
|
@@ -4196,18 +4196,18 @@ function Qi(e, t, n, i, a, o) {
|
|
|
4196
4196
|
if (m)
|
|
4197
4197
|
return m;
|
|
4198
4198
|
o.set(e, r), j_(e) ? e.forEach(function(h) {
|
|
4199
|
-
r.add(
|
|
4199
|
+
r.add(ea(h, t, n, h, e, o));
|
|
4200
4200
|
}) : F_(e) && e.forEach(function(h, v) {
|
|
4201
|
-
r.set(v,
|
|
4201
|
+
r.set(v, ea(h, t, n, v, e, o));
|
|
4202
4202
|
});
|
|
4203
|
-
var g = d ? u ? Pc :
|
|
4203
|
+
var g = d ? u ? Pc : fr : u ? es : Qr, y = p ? void 0 : g(e);
|
|
4204
4204
|
return bh(y || e, function(h, v) {
|
|
4205
|
-
y && (v = h, h = e[v]), Yr(r, v,
|
|
4205
|
+
y && (v = h, h = e[v]), Yr(r, v, ea(h, t, n, v, e, o));
|
|
4206
4206
|
}), r;
|
|
4207
4207
|
}
|
|
4208
4208
|
var db = 1, fb = 4;
|
|
4209
4209
|
function ii(e) {
|
|
4210
|
-
return
|
|
4210
|
+
return ea(e, db | fb);
|
|
4211
4211
|
}
|
|
4212
4212
|
var pb = "__lodash_hash_undefined__";
|
|
4213
4213
|
function mb(e) {
|
|
@@ -4216,20 +4216,20 @@ function mb(e) {
|
|
|
4216
4216
|
function gb(e) {
|
|
4217
4217
|
return this.__data__.has(e);
|
|
4218
4218
|
}
|
|
4219
|
-
function
|
|
4219
|
+
function da(e) {
|
|
4220
4220
|
var t = -1, n = e == null ? 0 : e.length;
|
|
4221
4221
|
for (this.__data__ = new Pn(); ++t < n; )
|
|
4222
4222
|
this.add(e[t]);
|
|
4223
4223
|
}
|
|
4224
|
-
|
|
4225
|
-
|
|
4224
|
+
da.prototype.add = da.prototype.push = mb;
|
|
4225
|
+
da.prototype.has = gb;
|
|
4226
4226
|
function hb(e, t) {
|
|
4227
4227
|
for (var n = -1, i = e == null ? 0 : e.length; ++n < i; )
|
|
4228
4228
|
if (t(e[n], n, e))
|
|
4229
4229
|
return !0;
|
|
4230
4230
|
return !1;
|
|
4231
4231
|
}
|
|
4232
|
-
function
|
|
4232
|
+
function hr(e, t) {
|
|
4233
4233
|
return e.has(t);
|
|
4234
4234
|
}
|
|
4235
4235
|
var vb = 1, yb = 2;
|
|
@@ -4240,7 +4240,7 @@ function Mc(e, t, n, i, a, o) {
|
|
|
4240
4240
|
var d = o.get(e), p = o.get(t);
|
|
4241
4241
|
if (d && p)
|
|
4242
4242
|
return d == t && p == e;
|
|
4243
|
-
var c = -1, f = !0, m = n & yb ? new
|
|
4243
|
+
var c = -1, f = !0, m = n & yb ? new da() : void 0;
|
|
4244
4244
|
for (o.set(e, t), o.set(t, e); ++c < s; ) {
|
|
4245
4245
|
var g = e[c], y = t[c];
|
|
4246
4246
|
if (i)
|
|
@@ -4253,7 +4253,7 @@ function Mc(e, t, n, i, a, o) {
|
|
|
4253
4253
|
}
|
|
4254
4254
|
if (m) {
|
|
4255
4255
|
if (!hb(t, function(v, k) {
|
|
4256
|
-
if (!
|
|
4256
|
+
if (!hr(m, k) && (g === v || a(g, v, n, i, o)))
|
|
4257
4257
|
return m.push(k);
|
|
4258
4258
|
})) {
|
|
4259
4259
|
f = !1;
|
|
@@ -4286,7 +4286,7 @@ function Rb(e, t, n, i, a, o, r) {
|
|
|
4286
4286
|
return !1;
|
|
4287
4287
|
e = e.buffer, t = t.buffer;
|
|
4288
4288
|
case Pb:
|
|
4289
|
-
return !(e.byteLength != t.byteLength || !o(new
|
|
4289
|
+
return !(e.byteLength != t.byteLength || !o(new za(e), new za(t)));
|
|
4290
4290
|
case Cb:
|
|
4291
4291
|
case Eb:
|
|
4292
4292
|
case Ib:
|
|
@@ -4316,7 +4316,7 @@ function Rb(e, t, n, i, a, o, r) {
|
|
|
4316
4316
|
}
|
|
4317
4317
|
var Fb = 1, Mb = Object.prototype, Lb = Mb.hasOwnProperty;
|
|
4318
4318
|
function jb(e, t, n, i, a, o) {
|
|
4319
|
-
var r = n & Fb, s =
|
|
4319
|
+
var r = n & Fb, s = fr(e), u = s.length, d = fr(t), p = d.length;
|
|
4320
4320
|
if (u != p && !r)
|
|
4321
4321
|
return !1;
|
|
4322
4322
|
for (var c = u; c--; ) {
|
|
@@ -4346,13 +4346,13 @@ function jb(e, t, n, i, a, o) {
|
|
|
4346
4346
|
}
|
|
4347
4347
|
return o.delete(e), o.delete(t), y;
|
|
4348
4348
|
}
|
|
4349
|
-
var Kb = 1, kl = "[object Arguments]", Cl = "[object Array]",
|
|
4349
|
+
var Kb = 1, kl = "[object Arguments]", Cl = "[object Array]", Pa = "[object Object]", Db = Object.prototype, El = Db.hasOwnProperty;
|
|
4350
4350
|
function qb(e, t, n, i, a, o) {
|
|
4351
4351
|
var r = rn(e), s = rn(t), u = r ? Cl : Qt(e), d = s ? Cl : Qt(t);
|
|
4352
|
-
u = u == kl ?
|
|
4353
|
-
var p = u ==
|
|
4354
|
-
if (f &&
|
|
4355
|
-
if (!
|
|
4352
|
+
u = u == kl ? Pa : u, d = d == kl ? Pa : d;
|
|
4353
|
+
var p = u == Pa, c = d == Pa, f = u == d;
|
|
4354
|
+
if (f && la(e)) {
|
|
4355
|
+
if (!la(t))
|
|
4356
4356
|
return !1;
|
|
4357
4357
|
r = !0, p = !1;
|
|
4358
4358
|
}
|
|
@@ -4374,7 +4374,7 @@ function Vb(e, t) {
|
|
|
4374
4374
|
return e != null && t in Object(e);
|
|
4375
4375
|
}
|
|
4376
4376
|
function jc(e, t, n) {
|
|
4377
|
-
t =
|
|
4377
|
+
t = Vi(t, e);
|
|
4378
4378
|
for (var i = -1, a = t.length, o = !1; ++i < a; ) {
|
|
4379
4379
|
var r = wo(t[i]);
|
|
4380
4380
|
if (!(o = e != null && n(e, r)))
|
|
@@ -4407,24 +4407,24 @@ var Jb = Object.prototype, Xb = Jb.hasOwnProperty;
|
|
|
4407
4407
|
function Zb(e, t) {
|
|
4408
4408
|
return e != null && Xb.call(e, t);
|
|
4409
4409
|
}
|
|
4410
|
-
function
|
|
4410
|
+
function Ha(e, t) {
|
|
4411
4411
|
return e != null && jc(e, t, Zb);
|
|
4412
4412
|
}
|
|
4413
4413
|
var Qb = Math.min;
|
|
4414
4414
|
function ew(e, t, n) {
|
|
4415
4415
|
for (var i = xh, a = e[0].length, o = e.length, r = o, s = Array(o), u = 1 / 0, d = []; r--; ) {
|
|
4416
4416
|
var p = e[r];
|
|
4417
|
-
u = Qb(p.length, u), s[r] = a >= 120 && p.length >= 120 ? new
|
|
4417
|
+
u = Qb(p.length, u), s[r] = a >= 120 && p.length >= 120 ? new da(r && p) : void 0;
|
|
4418
4418
|
}
|
|
4419
4419
|
p = e[0];
|
|
4420
4420
|
var c = -1, f = s[0];
|
|
4421
4421
|
e:
|
|
4422
4422
|
for (; ++c < a && d.length < u; ) {
|
|
4423
4423
|
var m = p[c], g = m;
|
|
4424
|
-
if (m = m !== 0 ? m : 0, !(f ?
|
|
4424
|
+
if (m = m !== 0 ? m : 0, !(f ? hr(f, g) : i(d, g))) {
|
|
4425
4425
|
for (r = o; --r; ) {
|
|
4426
4426
|
var y = s[r];
|
|
4427
|
-
if (!(y ?
|
|
4427
|
+
if (!(y ? hr(y, g) : i(e[r], g)))
|
|
4428
4428
|
continue e;
|
|
4429
4429
|
}
|
|
4430
4430
|
f && f.push(g), d.push(m);
|
|
@@ -4446,7 +4446,7 @@ var aw = "[object Map]", ow = "[object Set]", rw = Object.prototype, sw = rw.has
|
|
|
4446
4446
|
function xl(e) {
|
|
4447
4447
|
if (e == null)
|
|
4448
4448
|
return !0;
|
|
4449
|
-
if (go(e) && (rn(e) || typeof e == "string" || typeof e.splice == "function" ||
|
|
4449
|
+
if (go(e) && (rn(e) || typeof e == "string" || typeof e.splice == "function" || la(e) || Zr(e) || vo(e)))
|
|
4450
4450
|
return !e.length;
|
|
4451
4451
|
var t = Qt(e);
|
|
4452
4452
|
if (t == aw || t == ow)
|
|
@@ -4463,7 +4463,7 @@ function ai(e, t) {
|
|
|
4463
4463
|
}
|
|
4464
4464
|
var lw = Object.prototype, uw = lw.hasOwnProperty;
|
|
4465
4465
|
function Dc(e, t) {
|
|
4466
|
-
t =
|
|
4466
|
+
t = Vi(t, e);
|
|
4467
4467
|
var n = -1, i = t.length;
|
|
4468
4468
|
if (!i)
|
|
4469
4469
|
return !0;
|
|
@@ -4491,8 +4491,8 @@ var dw = 1, fw = 2, pw = 4, oi = yc(function(e, t) {
|
|
|
4491
4491
|
return n;
|
|
4492
4492
|
var i = !1;
|
|
4493
4493
|
t = zr(t, function(o) {
|
|
4494
|
-
return o =
|
|
4495
|
-
}),
|
|
4494
|
+
return o = Vi(o, e), i || (i = o.length > 1), o;
|
|
4495
|
+
}), Aa(e, Pc(e), n), i && (n = ea(n, dw | fw | pw, cw));
|
|
4496
4496
|
for (var a = t.length; a--; )
|
|
4497
4497
|
Dc(n, t[a]);
|
|
4498
4498
|
return n;
|
|
@@ -4500,7 +4500,7 @@ var dw = 1, fw = 2, pw = 4, oi = yc(function(e, t) {
|
|
|
4500
4500
|
function qc(e, t, n, i) {
|
|
4501
4501
|
if (!ti(e))
|
|
4502
4502
|
return e;
|
|
4503
|
-
t =
|
|
4503
|
+
t = Vi(t, e);
|
|
4504
4504
|
for (var a = -1, o = t.length, r = o - 1, s = e; s != null && ++a < o; ) {
|
|
4505
4505
|
var u = wo(t[a]), d = n;
|
|
4506
4506
|
if (u === "__proto__" || u === "constructor" || u === "prototype")
|
|
@@ -4516,7 +4516,7 @@ function qc(e, t, n, i) {
|
|
|
4516
4516
|
function mw(e, t, n) {
|
|
4517
4517
|
for (var i = -1, a = t.length, o = {}; ++i < a; ) {
|
|
4518
4518
|
var r = t[i], s = ns(e, r);
|
|
4519
|
-
n(s, r) && qc(o,
|
|
4519
|
+
n(s, r) && qc(o, Vi(r, e), s);
|
|
4520
4520
|
}
|
|
4521
4521
|
return o;
|
|
4522
4522
|
}
|
|
@@ -4525,7 +4525,7 @@ function gw(e, t) {
|
|
|
4525
4525
|
return Ub(e, i);
|
|
4526
4526
|
});
|
|
4527
4527
|
}
|
|
4528
|
-
var
|
|
4528
|
+
var vr = yc(function(e, t) {
|
|
4529
4529
|
return e == null ? {} : gw(e, t);
|
|
4530
4530
|
});
|
|
4531
4531
|
function Vc(e, t, n) {
|
|
@@ -4682,7 +4682,7 @@ const Cw = {
|
|
|
4682
4682
|
"ai-mcp-proxy": "AIMcpProxyForm",
|
|
4683
4683
|
"jwt-signer": "CommonForm"
|
|
4684
4684
|
};
|
|
4685
|
-
function
|
|
4685
|
+
function yr(e, t) {
|
|
4686
4686
|
const n = Tw[e];
|
|
4687
4687
|
if (typeof n == "string")
|
|
4688
4688
|
return n;
|
|
@@ -4755,12 +4755,12 @@ const Pw = (e, t) => {
|
|
|
4755
4755
|
...xg
|
|
4756
4756
|
},
|
|
4757
4757
|
"rate-limiting": {
|
|
4758
|
-
|
|
4758
|
+
...$a
|
|
4759
4759
|
},
|
|
4760
4760
|
"rate-limiting-advanced": (e == null ? void 0 : e.app) === "kongManager" ? {
|
|
4761
|
-
"config-consumer_groups":
|
|
4761
|
+
"config-consumer_groups": $a["config-consumer_groups"]
|
|
4762
4762
|
} : {
|
|
4763
|
-
|
|
4763
|
+
...$a
|
|
4764
4764
|
},
|
|
4765
4765
|
"graphql-rate-limiting-advanced": {
|
|
4766
4766
|
...Cg
|
|
@@ -4769,7 +4769,7 @@ const Pw = (e, t) => {
|
|
|
4769
4769
|
...Eg
|
|
4770
4770
|
},
|
|
4771
4771
|
"response-ratelimiting": {
|
|
4772
|
-
|
|
4772
|
+
...$a
|
|
4773
4773
|
},
|
|
4774
4774
|
"pre-function": {
|
|
4775
4775
|
...Js
|
|
@@ -4836,7 +4836,7 @@ const Pw = (e, t) => {
|
|
|
4836
4836
|
return !1;
|
|
4837
4837
|
return new RegExp("(?<=-redis-).*").test(z.model);
|
|
4838
4838
|
};
|
|
4839
|
-
if (L._supported_redis_partial_type = _._supported_redis_partial_type, L._redis_partial_path = _._redis_partial_path, Bu(X) ||
|
|
4839
|
+
if (L._supported_redis_partial_type = _._supported_redis_partial_type, L._redis_partial_path = _._redis_partial_path, Bu(X) || yr(X, a) || ie != null && ie.useLegacyForm || e != null && e.credential || K === "freeform") {
|
|
4840
4840
|
if (ie != null && ie.useLegacyForm && (e != null && e.enableRedisPartial) && _._supported_redis_partial_type) {
|
|
4841
4841
|
for (const z of L.fields)
|
|
4842
4842
|
if (D(z)) {
|
|
@@ -4991,10 +4991,10 @@ const Pw = (e, t) => {
|
|
|
4991
4991
|
}, v = (_) => _.fields.reduce((I, R) => (R.fields && R.fields.forEach((K) => {
|
|
4992
4992
|
I[K.model] = K;
|
|
4993
4993
|
}), R.model && (I[R.model] = R), I), {}), k = (_, I) => {
|
|
4994
|
-
if (!
|
|
4994
|
+
if (!ar.includes(_.model))
|
|
4995
4995
|
return;
|
|
4996
4996
|
const R = v(_);
|
|
4997
|
-
|
|
4997
|
+
ar.forEach((K) => {
|
|
4998
4998
|
Object.keys(R).forEach(($) => {
|
|
4999
4999
|
const N = u(R[$]);
|
|
5000
5000
|
I[$] = N ? R[$].default : null;
|
|
@@ -5039,7 +5039,7 @@ const Pw = (e, t) => {
|
|
|
5039
5039
|
buildFormSchema: d,
|
|
5040
5040
|
parseSchema: s,
|
|
5041
5041
|
customSchemas: o,
|
|
5042
|
-
typedefs:
|
|
5042
|
+
typedefs: Mi,
|
|
5043
5043
|
pruneRecord: b
|
|
5044
5044
|
};
|
|
5045
5045
|
}, Je = {
|
|
@@ -5178,7 +5178,7 @@ const ls = "*", Xn = "$", Eo = ".";
|
|
|
5178
5178
|
function ft(...e) {
|
|
5179
5179
|
return e.join(Eo);
|
|
5180
5180
|
}
|
|
5181
|
-
function
|
|
5181
|
+
function _r(...e) {
|
|
5182
5182
|
return ft(Xn, ...e);
|
|
5183
5183
|
}
|
|
5184
5184
|
function Sl(e) {
|
|
@@ -5279,7 +5279,7 @@ const [Dw, qw] = Vr(
|
|
|
5279
5279
|
propsRenderRules: o,
|
|
5280
5280
|
propsConfig: r
|
|
5281
5281
|
} = t, s = Bw(n), u = /* @__PURE__ */ new Map(), d = Pi({}), p = it(() => r ?? {}), c = ln();
|
|
5282
|
-
Yt(
|
|
5282
|
+
Yt(br, oi(c, "default", yi));
|
|
5283
5283
|
const {
|
|
5284
5284
|
useCurrentRules: f,
|
|
5285
5285
|
createComputedRules: m,
|
|
@@ -5297,10 +5297,10 @@ const [Dw, qw] = Vr(
|
|
|
5297
5297
|
}
|
|
5298
5298
|
function k(b) {
|
|
5299
5299
|
let _;
|
|
5300
|
-
!b || !x(Ye(b)) ? _ = s.getDefault() : _ = ii(Ye(b)),
|
|
5300
|
+
!b || !x(Ye(b)) ? _ = s.getDefault() : _ = ii(Ye(b)), Ba(p.value.prepareFormData) ? v(p.value.prepareFormData(_)) : v(_);
|
|
5301
5301
|
}
|
|
5302
5302
|
function x(b) {
|
|
5303
|
-
return
|
|
5303
|
+
return Ba(p.value.hasValue) ? p.value.hasValue(b) : !!b;
|
|
5304
5304
|
}
|
|
5305
5305
|
function E() {
|
|
5306
5306
|
const b = Ye(d), _ = ii(b);
|
|
@@ -5332,7 +5332,7 @@ const [Dw, qw] = Vr(
|
|
|
5332
5332
|
isFieldHidden: y
|
|
5333
5333
|
};
|
|
5334
5334
|
}
|
|
5335
|
-
), Tl = /* @__PURE__ */ Symbol("free-form-field-path"),
|
|
5335
|
+
), Tl = /* @__PURE__ */ Symbol("free-form-field-path"), br = /* @__PURE__ */ Symbol("free-form-field-renderer-slots"), Ol = /* @__PURE__ */ Symbol("free-form-field-reset-label-path-setting"), yi = "free-form-field-renderers-slot", Vw = {
|
|
5336
5336
|
tooltipAttributes: {
|
|
5337
5337
|
maxWidth: "300px",
|
|
5338
5338
|
placement: "top"
|
|
@@ -5371,7 +5371,7 @@ function cs(e, t = "") {
|
|
|
5371
5371
|
}
|
|
5372
5372
|
return n;
|
|
5373
5373
|
}
|
|
5374
|
-
function
|
|
5374
|
+
function Wa(e) {
|
|
5375
5375
|
const t = zt(e).map((n) => /^\d+$/.test(n) ? ls : n);
|
|
5376
5376
|
return ft(...t);
|
|
5377
5377
|
}
|
|
@@ -5379,7 +5379,7 @@ function Bw(e) {
|
|
|
5379
5379
|
const t = Ye(e), n = T(() => t ? Uw(t) : {});
|
|
5380
5380
|
function i(f) {
|
|
5381
5381
|
var m;
|
|
5382
|
-
return f == null ? t : (m = n.value) == null ? void 0 : m[
|
|
5382
|
+
return f == null ? t : (m = n.value) == null ? void 0 : m[Wa(f)];
|
|
5383
5383
|
}
|
|
5384
5384
|
function a(f, m = !1) {
|
|
5385
5385
|
const g = i(f);
|
|
@@ -5398,7 +5398,7 @@ function Bw(e) {
|
|
|
5398
5398
|
return f ? a(f, !0) : o(i(), "");
|
|
5399
5399
|
}
|
|
5400
5400
|
function s(f) {
|
|
5401
|
-
const m = i(f), g = m != null && m.description ?
|
|
5401
|
+
const m = i(f), g = m != null && m.description ? qa.parse(m.description, { async: !1 }) : void 0;
|
|
5402
5402
|
return {
|
|
5403
5403
|
...Vw,
|
|
5404
5404
|
"data-testid": `ff-label-${f}`,
|
|
@@ -5454,22 +5454,22 @@ const Wc = (e) => {
|
|
|
5454
5454
|
const t = $t(Tl, T(() => "")), n = T(() => {
|
|
5455
5455
|
const i = Ye(e);
|
|
5456
5456
|
let a = i;
|
|
5457
|
-
return !Sl(i) && t.value && (a = ft(t.value, i)), Sl(i) && (a = a.slice(
|
|
5457
|
+
return !Sl(i) && t.value && (a = ft(t.value, i)), Sl(i) && (a = a.slice(_r("").length)), a;
|
|
5458
5458
|
});
|
|
5459
5459
|
return Yt(Tl, n), n;
|
|
5460
5460
|
}, Gw = (e) => {
|
|
5461
|
-
const { getSchema: t, fieldRendererRegistry: n } = at(), { default: i, ...a } = ln(), o = $t(
|
|
5461
|
+
const { getSchema: t, fieldRendererRegistry: n } = at(), { default: i, ...a } = ln(), o = $t(br), r = T(() => {
|
|
5462
5462
|
const u = Ye(o), d = Object.keys(a).filter((p) => p !== yi && p !== "item").reduce((p, c) => {
|
|
5463
|
-
const f =
|
|
5463
|
+
const f = Wa(ft(Ye(e), c));
|
|
5464
5464
|
return { ...p, [f]: a[c] };
|
|
5465
5465
|
}, {});
|
|
5466
5466
|
return u ? { ...u, ...d } : d;
|
|
5467
5467
|
});
|
|
5468
|
-
Yt(
|
|
5468
|
+
Yt(br, r);
|
|
5469
5469
|
const s = Ye(e);
|
|
5470
5470
|
return T(() => {
|
|
5471
5471
|
if (i) return;
|
|
5472
|
-
const u = r.value[
|
|
5472
|
+
const u = r.value[Wa(Ye(e))];
|
|
5473
5473
|
if (u) return u;
|
|
5474
5474
|
for (const [d, p] of n)
|
|
5475
5475
|
if (d({ path: s, schema: t(s) }))
|
|
@@ -5602,7 +5602,7 @@ function qt(e) {
|
|
|
5602
5602
|
error: new Error(`path '${a.value}' is not found in schema.`)
|
|
5603
5603
|
};
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5605
|
+
function Ia(e) {
|
|
5606
5606
|
const { getSchema: t } = at(), n = Un();
|
|
5607
5607
|
return T(() => {
|
|
5608
5608
|
var a;
|
|
@@ -5760,7 +5760,7 @@ ${I}`
|
|
|
5760
5760
|
function p(g) {
|
|
5761
5761
|
if (!g)
|
|
5762
5762
|
return d.value;
|
|
5763
|
-
const y =
|
|
5763
|
+
const y = Wa(g);
|
|
5764
5764
|
return d.value[y];
|
|
5765
5765
|
}
|
|
5766
5766
|
function c(g) {
|
|
@@ -5896,7 +5896,7 @@ const si = /* @__PURE__ */ be({
|
|
|
5896
5896
|
}), m = $t(fi, void 0), g = T(() => {
|
|
5897
5897
|
var k;
|
|
5898
5898
|
return e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!((k = u.schema.value) != null && k.referenceable);
|
|
5899
|
-
}), y = T(() => ({ referenceable: g.value })), h =
|
|
5899
|
+
}), y = T(() => ({ referenceable: g.value })), h = Ia(u.ancestors), v = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : vi(e.name) === "name");
|
|
5900
5900
|
return (k, x) => {
|
|
5901
5901
|
var b;
|
|
5902
5902
|
const E = re("KAlert");
|
|
@@ -5999,7 +5999,7 @@ const si = /* @__PURE__ */ be({
|
|
|
5999
5999
|
]);
|
|
6000
6000
|
};
|
|
6001
6001
|
}
|
|
6002
|
-
}), li = /* @__PURE__ */ Oe(tk, [["__scopeId", "data-v-a64714b1"]]), nk = "#ecfcff", ik = "#f1f0ff", ak = "#52596e",
|
|
6002
|
+
}), li = /* @__PURE__ */ Oe(tk, [["__scopeId", "data-v-a64714b1"]]), nk = "#ecfcff", ik = "#f1f0ff", ak = "#52596e", wr = "#e0e4ea", ok = "#007d60", rk = "#fffce0", sk = "#6c7489", lk = "#0044f4", uk = "#5f9aff", fa = "#000933", ds = "#d60027", ck = "#ffe5e5", dk = "#00abd2", fk = "#d60067", nd = "#6f28ff", $l = "#afb7c5", Ui = "#6c7489", pk = "#0044f4", mk = "#eefaff", gk = "#007d60", hk = "#ecfffb", vk = "#995c00", yk = "#306fff", Na = "12px", Sa = "16px", ta = "20px", _k = "2px", id = "8px", bk = "32px", wk = /* @__PURE__ */ be({
|
|
6003
6003
|
__name: "SlideTransition",
|
|
6004
6004
|
setup(e) {
|
|
6005
6005
|
const t = [
|
|
@@ -6129,7 +6129,7 @@ const si = /* @__PURE__ */ be({
|
|
|
6129
6129
|
}, Pk = /* @__PURE__ */ be({
|
|
6130
6130
|
inheritAttrs: !1,
|
|
6131
6131
|
__name: "ObjectField",
|
|
6132
|
-
props: /* @__PURE__ */
|
|
6132
|
+
props: /* @__PURE__ */ oa({
|
|
6133
6133
|
name: {},
|
|
6134
6134
|
label: {},
|
|
6135
6135
|
labelAttributes: {},
|
|
@@ -6161,7 +6161,7 @@ const si = /* @__PURE__ */ be({
|
|
|
6161
6161
|
rules: it(n, "renderRules"),
|
|
6162
6162
|
omittedFields: it(() => e.omit),
|
|
6163
6163
|
parentValue: i
|
|
6164
|
-
}), p =
|
|
6164
|
+
}), p = Ri(e, "added"), c = Ri(e, "expanded"), f = T(() => {
|
|
6165
6165
|
var x, E;
|
|
6166
6166
|
if ((x = o.ancestors) != null && x.value) {
|
|
6167
6167
|
const b = o.ancestors.value.parent;
|
|
@@ -6240,7 +6240,7 @@ const si = /* @__PURE__ */ be({
|
|
|
6240
6240
|
class: Ze(["ff-object-field-toggle-btn-trigger-icon", { "collapse-expanded": c.value }]),
|
|
6241
6241
|
"data-testid": `ff-object-toggle-trigger-icon-${o.path.value}`,
|
|
6242
6242
|
decorative: "",
|
|
6243
|
-
size: l(
|
|
6243
|
+
size: l(Sa)
|
|
6244
6244
|
}, null, 8, ["class", "data-testid", "size"])
|
|
6245
6245
|
], 8, Sk),
|
|
6246
6246
|
C(l(ei), Qe({
|
|
@@ -6363,7 +6363,7 @@ const si = /* @__PURE__ */ be({
|
|
|
6363
6363
|
const b = Number(E);
|
|
6364
6364
|
return Number.isFinite(b) ? b : v.value ? x : null;
|
|
6365
6365
|
}
|
|
6366
|
-
const g =
|
|
6366
|
+
const g = Ia(o.ancestors), y = $t(fi, void 0), h = T(() => ({ referenceable: v.value })), v = T(() => {
|
|
6367
6367
|
var x;
|
|
6368
6368
|
return e.showVaultSecretPicker !== void 0 ? e.showVaultSecretPicker : !!((x = o.schema.value) != null && x.referenceable);
|
|
6369
6369
|
}), k = T(() => v.value ? "text" : "number");
|
|
@@ -6417,7 +6417,7 @@ const si = /* @__PURE__ */ be({
|
|
|
6417
6417
|
}
|
|
6418
6418
|
}), ui = /* @__PURE__ */ Oe(Fk, [["__scopeId", "data-v-709884eb"]]), Mk = ["innerHTML"], Lk = /* @__PURE__ */ be({
|
|
6419
6419
|
__name: "EnumField",
|
|
6420
|
-
props: {
|
|
6420
|
+
props: /* @__PURE__ */ oa({
|
|
6421
6421
|
labelAttributes: {},
|
|
6422
6422
|
items: {},
|
|
6423
6423
|
placeholder: {},
|
|
@@ -6444,49 +6444,60 @@ const si = /* @__PURE__ */ be({
|
|
|
6444
6444
|
clearable: { type: Boolean },
|
|
6445
6445
|
reuseItemTemplate: { type: Boolean },
|
|
6446
6446
|
name: {}
|
|
6447
|
-
},
|
|
6448
|
-
|
|
6447
|
+
}, {
|
|
6448
|
+
modelValue: {
|
|
6449
|
+
// If multiple and value is null/undefined, return empty array for v-model
|
|
6450
|
+
},
|
|
6451
|
+
modelModifiers: {}
|
|
6452
|
+
}),
|
|
6453
|
+
emits: /* @__PURE__ */ oa(["update"], ["update:modelValue"]),
|
|
6449
6454
|
setup(e, { emit: t }) {
|
|
6450
6455
|
const n = t, i = un(e, ["name", "items", "multiple"]), { getSelectItems: a } = at(), { value: o, hide: r, ...s } = qt(
|
|
6451
6456
|
it(() => e.name)
|
|
6452
|
-
), u =
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6457
|
+
), u = Ri(e, "modelValue", {
|
|
6458
|
+
// If multiple and value is null/undefined, return empty array for v-model
|
|
6459
|
+
get: () => c.value && (o == null ? void 0 : o.value) == null ? [] : o.value,
|
|
6460
|
+
set: (m) => {
|
|
6461
|
+
o.value = m;
|
|
6462
|
+
}
|
|
6463
|
+
}), d = on(s.path, i), p = T(() => e.items ? e.items : s.path ? a(s.path.value) : []), c = T(() => {
|
|
6464
|
+
var m;
|
|
6465
|
+
return e.multiple !== void 0 ? e.multiple : ((m = s.schema.value) == null ? void 0 : m.type) === "set";
|
|
6466
|
+
}), f = T(() => c.value ? _m : bm);
|
|
6467
|
+
return (m, g) => {
|
|
6468
|
+
var h;
|
|
6469
|
+
const y = re("KAlert");
|
|
6470
|
+
return s.error ? (w(), M(y, {
|
|
6460
6471
|
key: 0,
|
|
6461
6472
|
appearance: "danger",
|
|
6462
6473
|
message: s.error.message
|
|
6463
|
-
}, null, 8, ["message"])) : Ft((w(), M(l(
|
|
6464
|
-
modelValue:
|
|
6474
|
+
}, null, 8, ["message"])) : Ft((w(), M(l(f), Qe({ key: 1 }, { ...i, ...l(d) }, {
|
|
6475
|
+
modelValue: u.value,
|
|
6465
6476
|
"onUpdate:modelValue": [
|
|
6466
|
-
|
|
6467
|
-
|
|
6477
|
+
g[0] || (g[0] = (v) => u.value = v),
|
|
6478
|
+
g[1] || (g[1] = (v) => n("update", v))
|
|
6468
6479
|
],
|
|
6469
6480
|
class: "ff-enum-field",
|
|
6470
|
-
clearable: !l(
|
|
6481
|
+
clearable: !l(d).required,
|
|
6471
6482
|
"data-testid": `ff-${s.path.value}`,
|
|
6472
|
-
items:
|
|
6473
|
-
"kpop-attributes": { "data-testid":
|
|
6483
|
+
items: p.value,
|
|
6484
|
+
"kpop-attributes": { "data-testid": `ff-enum-${s.path.value}-items` }
|
|
6474
6485
|
}), et({ _: 2 }, [
|
|
6475
|
-
"tooltip" in
|
|
6486
|
+
"tooltip" in m.$slots || (h = l(d).labelAttributes) != null && h.info ? {
|
|
6476
6487
|
name: "label-tooltip",
|
|
6477
6488
|
fn: A(() => [
|
|
6478
|
-
Ge(
|
|
6489
|
+
Ge(m.$slots, "tooltip", {}, () => [
|
|
6479
6490
|
j("div", {
|
|
6480
|
-
innerHTML: l(
|
|
6491
|
+
innerHTML: l(d).labelAttributes.info
|
|
6481
6492
|
}, null, 8, Mk)
|
|
6482
6493
|
], !0)
|
|
6483
6494
|
]),
|
|
6484
6495
|
key: "0"
|
|
6485
6496
|
} : void 0,
|
|
6486
|
-
|
|
6497
|
+
m.$slots["item-label"] ? {
|
|
6487
6498
|
name: "item-template",
|
|
6488
|
-
fn: A(({ item:
|
|
6489
|
-
Ge(
|
|
6499
|
+
fn: A(({ item: v }) => [
|
|
6500
|
+
Ge(m.$slots, "item-label", Ht(Jt(v)), void 0, !0)
|
|
6490
6501
|
]),
|
|
6491
6502
|
key: "1"
|
|
6492
6503
|
} : void 0
|
|
@@ -6495,7 +6506,7 @@ const si = /* @__PURE__ */ be({
|
|
|
6495
6506
|
]);
|
|
6496
6507
|
};
|
|
6497
6508
|
}
|
|
6498
|
-
}), en = /* @__PURE__ */ Oe(Lk, [["__scopeId", "data-v-
|
|
6509
|
+
}), en = /* @__PURE__ */ Oe(Lk, [["__scopeId", "data-v-3b4bfe42"]]);
|
|
6499
6510
|
function xo(e, t, n = !0) {
|
|
6500
6511
|
const { value: i, emptyOrDefaultValue: a, ...o } = qt(it(e, "name")), r = on(o.path, it({ ...e, ...Un() })), s = Y(p(
|
|
6501
6512
|
e.initialValue ?? Ye(i),
|
|
@@ -6795,7 +6806,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
6795
6806
|
const v = f(h), k = !v.length && d.value ? null : v;
|
|
6796
6807
|
o.value = k, a("update:modelValue", k);
|
|
6797
6808
|
}
|
|
6798
|
-
const g =
|
|
6809
|
+
const g = Ia(s.ancestors), y = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : vi(e.name) === "name");
|
|
6799
6810
|
return De(o, (h) => {
|
|
6800
6811
|
const v = h ? c(h) : "";
|
|
6801
6812
|
c(f(p.value)) !== v && (p.value = v);
|
|
@@ -6855,7 +6866,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
6855
6866
|
}
|
|
6856
6867
|
o.value = g, a("update:modelValue", g);
|
|
6857
6868
|
}
|
|
6858
|
-
const c =
|
|
6869
|
+
const c = Ia(s.ancestors), f = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : vi(e.name) === "name");
|
|
6859
6870
|
return De(o, (m) => {
|
|
6860
6871
|
if (m && typeof m == "object") {
|
|
6861
6872
|
try {
|
|
@@ -6933,7 +6944,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
6933
6944
|
function m(h) {
|
|
6934
6945
|
p !== void 0 && h === "" && h !== p ? (r.value = null, o("update:modelValue", null)) : (r.value = { id: h.trim() }, o("update:modelValue", r.value));
|
|
6935
6946
|
}
|
|
6936
|
-
const g =
|
|
6947
|
+
const g = Ia(u.ancestors), y = T(() => n["data-1p-ignore"] !== void 0 ? n["data-1p-ignore"] : vi(e.name) === "name");
|
|
6937
6948
|
return (h, v) => {
|
|
6938
6949
|
var k;
|
|
6939
6950
|
return Ft((w(), M(si, Qe(l(d), {
|
|
@@ -6983,7 +6994,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
6983
6994
|
case "integer":
|
|
6984
6995
|
return "one_of" in n.schema.value ? en : ui;
|
|
6985
6996
|
case "array":
|
|
6986
|
-
return
|
|
6997
|
+
return pa;
|
|
6987
6998
|
case "set":
|
|
6988
6999
|
return Kw(n.schema) ? Ao : en;
|
|
6989
7000
|
case "record":
|
|
@@ -7008,12 +7019,12 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7008
7019
|
message: l(n).error.message
|
|
7009
7020
|
}, null, 8, ["message"])) : l(n).renderer.value ? (w(), M(bt(l(n).renderer.value), {
|
|
7010
7021
|
key: 1,
|
|
7011
|
-
name:
|
|
7022
|
+
name: _r(l(n).path.value),
|
|
7012
7023
|
onGlobalAction: o[0] || (o[0] = (s, u) => a.$emit("globalAction", s, u))
|
|
7013
7024
|
}, null, 40, ["name"])) : (w(), V(Fe, { key: 2 }, [
|
|
7014
7025
|
i.value ? (w(), M(bt(i.value), {
|
|
7015
7026
|
key: 0,
|
|
7016
|
-
name:
|
|
7027
|
+
name: _r(l(n).path.value)
|
|
7017
7028
|
}, null, 8, ["name"])) : (w(), M(r, {
|
|
7018
7029
|
key: 1,
|
|
7019
7030
|
appearance: "warning",
|
|
@@ -7024,7 +7035,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7024
7035
|
], 64);
|
|
7025
7036
|
};
|
|
7026
7037
|
}
|
|
7027
|
-
}), e0 = ["data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = ["data-testid"], a0 = { class: "ff-array-field-item-content" }, o0 = ["data-index", "data-testid"], r0 = /* @__PURE__ */ be({
|
|
7038
|
+
}), e0 = ["data-appearance", "data-testid"], t0 = ["data-testid"], n0 = ["innerHTML"], i0 = ["data-testid"], a0 = { class: "ff-array-field-item-content" }, o0 = ["data-index", "data-testid"], r0 = /* @__PURE__ */ be({
|
|
7028
7039
|
__name: "ArrayField",
|
|
7029
7040
|
props: {
|
|
7030
7041
|
name: {},
|
|
@@ -7038,8 +7049,8 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7038
7049
|
emits: ["add", "remove"],
|
|
7039
7050
|
setup(e, { emit: t }) {
|
|
7040
7051
|
var K;
|
|
7041
|
-
|
|
7042
|
-
|
|
7052
|
+
wa(($) => ({
|
|
7053
|
+
v3c0f22aa: R.value
|
|
7043
7054
|
}));
|
|
7044
7055
|
const n = e, i = t, { i18n: { t: a } } = ze(), { getDefault: o, getSchema: r } = at(), { value: s, hide: u, ...d } = qt(it(n, "name")), p = on(d.path, it({ ...n, ...Un() })), c = T(() => {
|
|
7045
7056
|
if (!d.path) throw new Error("Field path is required for sub-schema retrieval");
|
|
@@ -7091,6 +7102,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7091
7102
|
[`ff-array-field-${y.value ?? "default"}`]: !0,
|
|
7092
7103
|
"ff-array-field-sticky-tabs": e.stickyTabs
|
|
7093
7104
|
}]),
|
|
7105
|
+
"data-appearance": y.value,
|
|
7094
7106
|
"data-testid": `ff-array-${d.path.value}`
|
|
7095
7107
|
}, [
|
|
7096
7108
|
j("header", {
|
|
@@ -7255,7 +7267,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7255
7267
|
]);
|
|
7256
7268
|
};
|
|
7257
7269
|
}
|
|
7258
|
-
}),
|
|
7270
|
+
}), pa = /* @__PURE__ */ Oe(r0, [["__scopeId", "data-v-28f4e09f"]]), na = /* @__PURE__ */ Symbol(), s0 = /* @__PURE__ */ be({
|
|
7259
7271
|
__name: "CalloutForm",
|
|
7260
7272
|
props: {
|
|
7261
7273
|
index: {},
|
|
@@ -7268,7 +7280,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7268
7280
|
var u;
|
|
7269
7281
|
return s && s !== ((u = r[t.index]) == null ? void 0 : u.name);
|
|
7270
7282
|
});
|
|
7271
|
-
}), a = T(() => i.value.map(({ [
|
|
7283
|
+
}), a = T(() => i.value.map(({ [na]: r, name: s }) => ({ value: r, label: s }))), o = T(() => n.config.callouts[t.index]);
|
|
7272
7284
|
return De(a, () => {
|
|
7273
7285
|
o.value.depends_on = o.value.depends_on.filter(
|
|
7274
7286
|
(r) => a.value.some((s) => s.value === r)
|
|
@@ -7310,9 +7322,9 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7310
7322
|
const { formData: t } = at();
|
|
7311
7323
|
function n() {
|
|
7312
7324
|
const i = t.config.callouts[t.config.callouts.length - 1];
|
|
7313
|
-
i && (i[
|
|
7325
|
+
i && (i[na] = td());
|
|
7314
7326
|
}
|
|
7315
|
-
return (i, a) => (w(), M(
|
|
7327
|
+
return (i, a) => (w(), M(pa, {
|
|
7316
7328
|
appearance: "tabs",
|
|
7317
7329
|
"item-label": (o) => o.name || "New callout",
|
|
7318
7330
|
name: "callouts",
|
|
@@ -7329,7 +7341,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7329
7341
|
_: 1
|
|
7330
7342
|
}, 8, ["item-label"]));
|
|
7331
7343
|
}
|
|
7332
|
-
}),
|
|
7344
|
+
}), Ya = /* @__PURE__ */ be({
|
|
7333
7345
|
__name: "FieldRenderer",
|
|
7334
7346
|
props: {
|
|
7335
7347
|
match: { type: Function },
|
|
@@ -7433,7 +7445,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7433
7445
|
hasValue: s
|
|
7434
7446
|
}, { i18n: { t: a } } = ze();
|
|
7435
7447
|
function o(d, p = !1) {
|
|
7436
|
-
return d.reduce((c, { [
|
|
7448
|
+
return d.reduce((c, { [na]: f, name: m }) => (p ? c[m] = f : c[f] = m, c), {});
|
|
7437
7449
|
}
|
|
7438
7450
|
function r(d) {
|
|
7439
7451
|
var m;
|
|
@@ -7442,7 +7454,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7442
7454
|
return p;
|
|
7443
7455
|
const { callouts: c } = p.config;
|
|
7444
7456
|
c.forEach((g) => {
|
|
7445
|
-
g.request.body.custom = g.request.body.custom ?? {}, g[
|
|
7457
|
+
g.request.body.custom = g.request.body.custom ?? {}, g[na] = td();
|
|
7446
7458
|
});
|
|
7447
7459
|
const f = o(c, !0);
|
|
7448
7460
|
return c.forEach((g) => {
|
|
@@ -7460,7 +7472,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7460
7472
|
throw new Error("data is not correct");
|
|
7461
7473
|
const c = o(p.config.callouts);
|
|
7462
7474
|
p.config.callouts = p.config.callouts.map((m) => {
|
|
7463
|
-
const { [
|
|
7475
|
+
const { [na]: g, depends_on: y, ...h } = m;
|
|
7464
7476
|
return {
|
|
7465
7477
|
depends_on: y.map((v) => c[v]).filter((v) => v != null),
|
|
7466
7478
|
...h
|
|
@@ -7476,7 +7488,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7476
7488
|
onChange: u
|
|
7477
7489
|
}, {
|
|
7478
7490
|
[l(yi)]: A(() => [
|
|
7479
|
-
C(
|
|
7491
|
+
C(Ya, {
|
|
7480
7492
|
match: ({ path: c }) => c.endsWith("by_lua")
|
|
7481
7493
|
}, {
|
|
7482
7494
|
default: A((c) => [
|
|
@@ -7489,11 +7501,11 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7489
7501
|
]),
|
|
7490
7502
|
_: 1
|
|
7491
7503
|
}, 8, ["match"]),
|
|
7492
|
-
C(
|
|
7504
|
+
C(Ya, {
|
|
7493
7505
|
match: ({ path: c }) => ["cluster_nodes", "sentinel_nodes"].some((f) => c.endsWith(f))
|
|
7494
7506
|
}, {
|
|
7495
7507
|
default: A((c) => [
|
|
7496
|
-
C(
|
|
7508
|
+
C(pa, Qe(c, { appearance: "card" }), null, 16)
|
|
7497
7509
|
]),
|
|
7498
7510
|
_: 1
|
|
7499
7511
|
}, 8, ["match"])
|
|
@@ -7603,7 +7615,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7603
7615
|
"tags",
|
|
7604
7616
|
"__ui_data"
|
|
7605
7617
|
];
|
|
7606
|
-
return
|
|
7618
|
+
return vr(n.model, p);
|
|
7607
7619
|
});
|
|
7608
7620
|
return (p, c) => (w(), V(Fe, null, [
|
|
7609
7621
|
j("div", p0, [
|
|
@@ -7700,7 +7712,7 @@ const jk = ["data-testid"], Kk = ["data-testid"], Dk = ["innerHTML"], qk = ["dat
|
|
|
7700
7712
|
} : void 0
|
|
7701
7713
|
]), 1040),
|
|
7702
7714
|
j("div", _0, [
|
|
7703
|
-
(w(!0), V(Fe, null, Be(s.value, (g) => (w(), M(l(
|
|
7715
|
+
(w(!0), V(Fe, null, Be(s.value, (g) => (w(), M(l(or), {
|
|
7704
7716
|
key: g.value,
|
|
7705
7717
|
"model-value": l(o).value.value,
|
|
7706
7718
|
"onUpdate:modelValue": [
|
|
@@ -8115,7 +8127,7 @@ const z0 = {
|
|
|
8115
8127
|
}), d = a.redisType || (($ = r == null ? void 0 : r.redisType) == null ? void 0 : $.value), p = T(() => {
|
|
8116
8128
|
var N;
|
|
8117
8129
|
return !!((N = r == null ? void 0 : r.redisType) != null && N.value);
|
|
8118
|
-
}), c = Y(null), f = Y(!s), { getMessageFromError: m } = di(), g = Y(a.defaultRedisConfigItem), y = Y({}), h = Y(), { value: v } = Qc("$.partials"), { value: k, hide: x } = qt(u), E = $t(
|
|
8130
|
+
}), c = Y(null), f = Y(!s), { getMessageFromError: m } = di(), g = Y(a.defaultRedisConfigItem), y = Y({}), h = Y(), { value: v } = Qc("$.partials"), { value: k, hide: x } = qt(u), E = $t(Ea), b = Y(null), _ = (N) => {
|
|
8119
8131
|
let S = `${E.apiBaseUrl}${G0[E.app].getOne}`;
|
|
8120
8132
|
return E.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, (E == null ? void 0 : E.controlPlaneId) || "") : E.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, E != null && E.workspace ? `/${E.workspace}` : "")), S = S.replace(/{id}/gi, String(N)), S;
|
|
8121
8133
|
}, { axiosInstance: I } = On(E == null ? void 0 : E.axiosRequestConfig), R = () => {
|
|
@@ -8378,7 +8390,7 @@ const z0 = {
|
|
|
8378
8390
|
]), 1040, ["data-testid", "tooltip-attributes"]),
|
|
8379
8391
|
C(ic, {
|
|
8380
8392
|
modelValue: l(i),
|
|
8381
|
-
"onUpdate:modelValue": s[0] || (s[0] = (p) =>
|
|
8393
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => jr(i) ? i.value = p : null)
|
|
8382
8394
|
}, null, 8, ["modelValue"])
|
|
8383
8395
|
]);
|
|
8384
8396
|
};
|
|
@@ -8528,11 +8540,11 @@ const z0 = {
|
|
|
8528
8540
|
else
|
|
8529
8541
|
throw new Error(`Unsupported VFG field type '${G.type}' for model '${G.model}'`);
|
|
8530
8542
|
}), S;
|
|
8531
|
-
}), h = T(() =>
|
|
8543
|
+
}), h = T(() => vr(i.model, t)), v = T(() => {
|
|
8532
8544
|
var S;
|
|
8533
8545
|
return ((S = f.value) == null ? void 0 : S.fields.map((q) => q.model)) ?? [];
|
|
8534
8546
|
}), k = T(() => v.value.map((S) => S.split("-")[0])), x = Y(
|
|
8535
|
-
i.isEditing ?
|
|
8547
|
+
i.isEditing ? vr(h.value, k.value) : N()
|
|
8536
8548
|
), E = Y(Object.values(x.value).some($)), b = rt("form");
|
|
8537
8549
|
let _ = !1;
|
|
8538
8550
|
function I() {
|
|
@@ -8556,11 +8568,11 @@ const z0 = {
|
|
|
8556
8568
|
function K(S) {
|
|
8557
8569
|
k.value.forEach((q) => {
|
|
8558
8570
|
const L = S[q];
|
|
8559
|
-
|
|
8571
|
+
Ha(L, "id") && L.id != null ? x.value[q] = L : x.value[q] = null;
|
|
8560
8572
|
});
|
|
8561
8573
|
}
|
|
8562
8574
|
function $(S) {
|
|
8563
|
-
return
|
|
8575
|
+
return Ha(S, "id") && S.id != null;
|
|
8564
8576
|
}
|
|
8565
8577
|
function N() {
|
|
8566
8578
|
const S = {};
|
|
@@ -8583,7 +8595,7 @@ const z0 = {
|
|
|
8583
8595
|
onChange: R
|
|
8584
8596
|
}, {
|
|
8585
8597
|
[l(yi)]: A(() => [
|
|
8586
|
-
C(
|
|
8598
|
+
C(Ya, {
|
|
8587
8599
|
match: ({ path: L }) => {
|
|
8588
8600
|
var G, X;
|
|
8589
8601
|
return L === ((X = (G = l(a)) == null ? void 0 : G.redisPath) == null ? void 0 : X.value);
|
|
@@ -8594,7 +8606,7 @@ const z0 = {
|
|
|
8594
8606
|
]),
|
|
8595
8607
|
_: 1
|
|
8596
8608
|
}, 8, ["match"]),
|
|
8597
|
-
C(
|
|
8609
|
+
C(Ya, {
|
|
8598
8610
|
match: ({ path: L }) => e.pluginName === "key-auth" && L === "config.identity_realms"
|
|
8599
8611
|
}, {
|
|
8600
8612
|
default: A((L) => [
|
|
@@ -8605,7 +8617,7 @@ const z0 = {
|
|
|
8605
8617
|
]),
|
|
8606
8618
|
default: A(() => [
|
|
8607
8619
|
e.editorMode === "form" ? (w(), V(Fe, { key: 0 }, [
|
|
8608
|
-
C(l(
|
|
8620
|
+
C(l(Ta), {
|
|
8609
8621
|
"data-testid": "form-section-plugin-scope",
|
|
8610
8622
|
description: e.generalInfoDescription ?? l(n)("plugins.form.sections.plugin_scope.description"),
|
|
8611
8623
|
step: 1,
|
|
@@ -8619,7 +8631,7 @@ const z0 = {
|
|
|
8619
8631
|
var G, X;
|
|
8620
8632
|
return [
|
|
8621
8633
|
j("div", a1, [
|
|
8622
|
-
C(l(
|
|
8634
|
+
C(l(or), Qe({
|
|
8623
8635
|
modelValue: E.value,
|
|
8624
8636
|
"onUpdate:modelValue": q[0] || (q[0] = (ie) => E.value = ie),
|
|
8625
8637
|
card: "",
|
|
@@ -8629,7 +8641,7 @@ const z0 = {
|
|
|
8629
8641
|
"selected-value": !1,
|
|
8630
8642
|
"onUpdate:modelValue": I
|
|
8631
8643
|
}), null, 16, ["modelValue", "disabled"]),
|
|
8632
|
-
c.value[1] ? (w(), M(l(
|
|
8644
|
+
c.value[1] ? (w(), M(l(or), Qe({
|
|
8633
8645
|
key: 0,
|
|
8634
8646
|
modelValue: E.value,
|
|
8635
8647
|
"onUpdate:modelValue": q[1] || (q[1] = (ie) => E.value = ie),
|
|
@@ -8679,7 +8691,7 @@ const z0 = {
|
|
|
8679
8691
|
key: "2"
|
|
8680
8692
|
} : void 0
|
|
8681
8693
|
]), 1032, ["description", "title"]),
|
|
8682
|
-
C(l(
|
|
8694
|
+
C(l(Ta), {
|
|
8683
8695
|
"data-testid": "form-section-plugin-config",
|
|
8684
8696
|
description: e.pluginConfigDescription ?? l(n)("plugins.form.sections.plugin_config.description"),
|
|
8685
8697
|
step: 2,
|
|
@@ -8712,7 +8724,7 @@ const z0 = {
|
|
|
8712
8724
|
key: "2"
|
|
8713
8725
|
} : void 0
|
|
8714
8726
|
]), 1032, ["description", "title"]),
|
|
8715
|
-
C(l(
|
|
8727
|
+
C(l(Ta), {
|
|
8716
8728
|
"data-testid": "form-section-general-info",
|
|
8717
8729
|
description: l(n)("plugins.form.sections.plugin_general_info.description"),
|
|
8718
8730
|
step: 3,
|
|
@@ -8742,7 +8754,7 @@ const z0 = {
|
|
|
8742
8754
|
]),
|
|
8743
8755
|
_: 1
|
|
8744
8756
|
}, 8, ["description", "title"])
|
|
8745
|
-
], 64)) : (w(), M(l(
|
|
8757
|
+
], 64)) : (w(), M(l(Ta), {
|
|
8746
8758
|
key: 1,
|
|
8747
8759
|
description: l(n)("plugins.form.sections.code_mode.description"),
|
|
8748
8760
|
title: l(n)("plugins.form.sections.code_mode.title")
|
|
@@ -8797,15 +8809,15 @@ function ud(e, t) {
|
|
|
8797
8809
|
|
|
8798
8810
|
` + e.mark.snippet), i + " " + n) : i;
|
|
8799
8811
|
}
|
|
8800
|
-
function
|
|
8812
|
+
function ma(e, t) {
|
|
8801
8813
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = ud(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
8802
8814
|
}
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8815
|
+
ma.prototype = Object.create(Error.prototype);
|
|
8816
|
+
ma.prototype.constructor = ma;
|
|
8817
|
+
ma.prototype.toString = function(t) {
|
|
8806
8818
|
return this.name + ": " + ud(this, t);
|
|
8807
8819
|
};
|
|
8808
|
-
var Kt =
|
|
8820
|
+
var Kt = ma;
|
|
8809
8821
|
function Vo(e, t, n, i, a) {
|
|
8810
8822
|
var o = "", r = "", s = Math.floor(a / 2) - 1;
|
|
8811
8823
|
return i - t > s && (o = " ... ", t = i - s + o.length), n - i > s && (r = " ...", n = i + s - r.length), {
|
|
@@ -8911,10 +8923,10 @@ function E1() {
|
|
|
8911
8923
|
arguments[t].forEach(i);
|
|
8912
8924
|
return e;
|
|
8913
8925
|
}
|
|
8914
|
-
function
|
|
8926
|
+
function kr(e) {
|
|
8915
8927
|
return this.extend(e);
|
|
8916
8928
|
}
|
|
8917
|
-
|
|
8929
|
+
kr.prototype.extend = function(t) {
|
|
8918
8930
|
var n = [], i = [];
|
|
8919
8931
|
if (t instanceof Ot)
|
|
8920
8932
|
i.push(t);
|
|
@@ -8935,10 +8947,10 @@ Cr.prototype.extend = function(t) {
|
|
|
8935
8947
|
if (!(o instanceof Ot))
|
|
8936
8948
|
throw new Kt("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
8937
8949
|
});
|
|
8938
|
-
var a = Object.create(
|
|
8950
|
+
var a = Object.create(kr.prototype);
|
|
8939
8951
|
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(i), a.compiledImplicit = Rl(a, "implicit"), a.compiledExplicit = Rl(a, "explicit"), a.compiledTypeMap = E1(a.compiledImplicit, a.compiledExplicit), a;
|
|
8940
8952
|
};
|
|
8941
|
-
var cd =
|
|
8953
|
+
var cd = kr, dd = new Ot("tag:yaml.org,2002:str", {
|
|
8942
8954
|
kind: "scalar",
|
|
8943
8955
|
construct: function(e) {
|
|
8944
8956
|
return e !== null ? e : "";
|
|
@@ -9317,7 +9329,7 @@ var Sd = new Ot("tag:yaml.org,2002:set", {
|
|
|
9317
9329
|
Id,
|
|
9318
9330
|
Sd
|
|
9319
9331
|
]
|
|
9320
|
-
}), qn = Object.prototype.hasOwnProperty,
|
|
9332
|
+
}), qn = Object.prototype.hasOwnProperty, Ja = 1, Td = 2, Od = 3, Xa = 4, Bo = 1, sC = 2, Fl = 3, lC = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, uC = /[\x85\u2028\u2029]/, cC = /[,\[\]\{\}]/, $d = /^(?:!|!!|![a-z\-]+!)$/i, Pd = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
9321
9333
|
function Ml(e) {
|
|
9322
9334
|
return Object.prototype.toString.call(e);
|
|
9323
9335
|
}
|
|
@@ -9381,13 +9393,13 @@ function Md(e, t) {
|
|
|
9381
9393
|
function Me(e, t) {
|
|
9382
9394
|
throw Md(e, t);
|
|
9383
9395
|
}
|
|
9384
|
-
function
|
|
9396
|
+
function Za(e, t) {
|
|
9385
9397
|
e.onWarning && e.onWarning.call(null, Md(e, t));
|
|
9386
9398
|
}
|
|
9387
9399
|
var jl = {
|
|
9388
9400
|
YAML: function(t, n, i) {
|
|
9389
9401
|
var a, o, r;
|
|
9390
|
-
t.version !== null && Me(t, "duplication of %YAML directive"), i.length !== 1 && Me(t, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), a === null && Me(t, "ill-formed argument of the YAML directive"), o = parseInt(a[1], 10), r = parseInt(a[2], 10), o !== 1 && Me(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = r < 2, r !== 1 && r !== 2 &&
|
|
9402
|
+
t.version !== null && Me(t, "duplication of %YAML directive"), i.length !== 1 && Me(t, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), a === null && Me(t, "ill-formed argument of the YAML directive"), o = parseInt(a[1], 10), r = parseInt(a[2], 10), o !== 1 && Me(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = r < 2, r !== 1 && r !== 2 && Za(t, "unsupported YAML version of the document");
|
|
9391
9403
|
},
|
|
9392
9404
|
TAG: function(t, n, i) {
|
|
9393
9405
|
var a, o;
|
|
@@ -9448,7 +9460,7 @@ function yt(e, t, n) {
|
|
|
9448
9460
|
else
|
|
9449
9461
|
break;
|
|
9450
9462
|
}
|
|
9451
|
-
return n !== -1 && i !== 0 && e.lineIndent < n &&
|
|
9463
|
+
return n !== -1 && i !== 0 && e.lineIndent < n && Za(e, "deficient indentation"), i;
|
|
9452
9464
|
}
|
|
9453
9465
|
function To(e) {
|
|
9454
9466
|
var t = e.position, n;
|
|
@@ -9532,7 +9544,7 @@ function _C(e, t) {
|
|
|
9532
9544
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), k = e.input.charCodeAt(++e.position); k !== 0; ) {
|
|
9533
9545
|
if (yt(e, !0, t), k = e.input.charCodeAt(e.position), k === p)
|
|
9534
9546
|
return e.position++, e.tag = r, e.anchor = u, e.kind = m ? "mapping" : "sequence", e.result = s, !0;
|
|
9535
|
-
n ? k === 44 && Me(e, "expected the node content, but found ','") : Me(e, "missed comma between flow collection entries"), h = y = v = null, c = f = !1, k === 63 && (d = e.input.charCodeAt(e.position + 1), Gt(d) && (c = f = !0, e.position++, yt(e, !0, t))), i = e.line, a = e.lineStart, o = e.position,
|
|
9547
|
+
n ? k === 44 && Me(e, "expected the node content, but found ','") : Me(e, "missed comma between flow collection entries"), h = y = v = null, c = f = !1, k === 63 && (d = e.input.charCodeAt(e.position + 1), Gt(d) && (c = f = !0, e.position++, yt(e, !0, t))), i = e.line, a = e.lineStart, o = e.position, ji(e, t, Ja, !1, !0), h = e.tag, y = e.result, yt(e, !0, t), k = e.input.charCodeAt(e.position), (f || e.line === i) && k === 58 && (c = !0, k = e.input.charCodeAt(++e.position), yt(e, !0, t), ji(e, t, Ja, !1, !0), v = e.result), m ? Ti(e, s, g, h, y, v, i, a, o) : c ? s.push(Ti(e, null, g, h, y, v, i, a, o)) : s.push(y), yt(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
|
|
9536
9548
|
}
|
|
9537
9549
|
Me(e, "unexpected end of the stream within a flow collection");
|
|
9538
9550
|
}
|
|
@@ -9591,7 +9603,7 @@ function Dl(e, t) {
|
|
|
9591
9603
|
o.push(null), u = e.input.charCodeAt(e.position);
|
|
9592
9604
|
continue;
|
|
9593
9605
|
}
|
|
9594
|
-
if (n = e.line,
|
|
9606
|
+
if (n = e.line, ji(e, t, Od, !1, !0), o.push(e.result), yt(e, !0, -1), u = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && u !== 0)
|
|
9595
9607
|
Me(e, "bad indentation of a sequence entry");
|
|
9596
9608
|
else if (e.lineIndent < t)
|
|
9597
9609
|
break;
|
|
@@ -9605,7 +9617,7 @@ function wC(e, t, n) {
|
|
|
9605
9617
|
if (!h && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Me(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && Gt(i))
|
|
9606
9618
|
k === 63 ? (h && (Ti(e, c, f, m, g, null, r, s, u), m = g = y = null), v = !0, h = !0, a = !0) : h ? (h = !1, a = !0) : Me(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = i;
|
|
9607
9619
|
else {
|
|
9608
|
-
if (r = e.line, s = e.lineStart, u = e.position, !
|
|
9620
|
+
if (r = e.line, s = e.lineStart, u = e.position, !ji(e, n, Td, !1, !0))
|
|
9609
9621
|
break;
|
|
9610
9622
|
if (e.line === o) {
|
|
9611
9623
|
for (k = e.input.charCodeAt(e.position); Zn(k); )
|
|
@@ -9621,7 +9633,7 @@ function wC(e, t, n) {
|
|
|
9621
9633
|
else
|
|
9622
9634
|
return e.tag = d, e.anchor = p, !0;
|
|
9623
9635
|
}
|
|
9624
|
-
if ((e.line === o || e.lineIndent > t) && (h && (r = e.line, s = e.lineStart, u = e.position),
|
|
9636
|
+
if ((e.line === o || e.lineIndent > t) && (h && (r = e.line, s = e.lineStart, u = e.position), ji(e, t, Xa, !0, a) && (h ? g = e.result : y = e.result), h || (Ti(e, c, f, m, g, y, r, s, u), m = g = y = null), yt(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && k !== 0)
|
|
9625
9637
|
Me(e, "bad indentation of a mapping entry");
|
|
9626
9638
|
else if (e.lineIndent < t)
|
|
9627
9639
|
break;
|
|
@@ -9663,12 +9675,12 @@ function EC(e) {
|
|
|
9663
9675
|
i = e.input.charCodeAt(++e.position);
|
|
9664
9676
|
return e.position === t && Me(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), qn.call(e.anchorMap, n) || Me(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], yt(e, !0, -1), !0;
|
|
9665
9677
|
}
|
|
9666
|
-
function
|
|
9678
|
+
function ji(e, t, n, i, a) {
|
|
9667
9679
|
var o, r, s, u = 1, d = !1, p = !1, c, f, m, g, y, h;
|
|
9668
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = s =
|
|
9680
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = s = Xa === n || Od === n, i && yt(e, !0, -1) && (d = !0, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)), u === 1)
|
|
9669
9681
|
for (; kC(e) || CC(e); )
|
|
9670
9682
|
yt(e, !0, -1) ? (d = !0, s = o, e.lineIndent > t ? u = 1 : e.lineIndent === t ? u = 0 : e.lineIndent < t && (u = -1)) : s = !1;
|
|
9671
|
-
if (s && (s = d || a), (u === 1 ||
|
|
9683
|
+
if (s && (s = d || a), (u === 1 || Xa === n) && (Ja === n || Td === n ? y = t : y = t + 1, h = e.position - e.lineStart, u === 1 ? s && (Dl(e, h) || wC(e, h, y)) || _C(e, y) ? p = !0 : (r && bC(e, y) || vC(e, y) || yC(e, y) ? p = !0 : EC(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && Me(e, "alias node should not have any properties")) : hC(e, y, Ja === n) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : u === 0 && (p = s && Dl(e, h))), e.tag === null)
|
|
9672
9684
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
9673
9685
|
else if (e.tag === "?") {
|
|
9674
9686
|
for (e.result !== null && e.kind !== "scalar" && Me(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, f = e.implicitTypes.length; c < f; c += 1)
|
|
@@ -9708,9 +9720,9 @@ function xC(e) {
|
|
|
9708
9720
|
r = e.input.charCodeAt(++e.position);
|
|
9709
9721
|
a.push(e.input.slice(n, e.position));
|
|
9710
9722
|
}
|
|
9711
|
-
r !== 0 && hs(e), qn.call(jl, i) ? jl[i](e, i, a) :
|
|
9723
|
+
r !== 0 && hs(e), qn.call(jl, i) ? jl[i](e, i, a) : Za(e, 'unknown document directive "' + i + '"');
|
|
9712
9724
|
}
|
|
9713
|
-
if (yt(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, yt(e, !0, -1)) : o && Me(e, "directives end mark is expected"),
|
|
9725
|
+
if (yt(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, yt(e, !0, -1)) : o && Me(e, "directives end mark is expected"), ji(e, e.lineIndent - 1, Xa, !1, !0), yt(e, !0, -1), e.checkLineBreaks && uC.test(e.input.slice(t, e.position)) && Za(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && To(e)) {
|
|
9714
9726
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, yt(e, !0, -1));
|
|
9715
9727
|
return;
|
|
9716
9728
|
}
|
|
@@ -9748,7 +9760,7 @@ function IC(e, t) {
|
|
|
9748
9760
|
var SC = AC, TC = IC, jd = {
|
|
9749
9761
|
loadAll: SC,
|
|
9750
9762
|
load: TC
|
|
9751
|
-
}, Kd = Object.prototype.toString, Dd = Object.prototype.hasOwnProperty, ys = 65279, OC = 9,
|
|
9763
|
+
}, Kd = Object.prototype.toString, Dd = Object.prototype.hasOwnProperty, ys = 65279, OC = 9, ga = 10, $C = 13, PC = 32, NC = 33, RC = 34, Cr = 35, FC = 37, MC = 38, LC = 39, jC = 42, qd = 44, KC = 45, Qa = 58, DC = 61, qC = 62, VC = 63, UC = 64, Vd = 91, Ud = 93, BC = 96, Bd = 123, GC = 124, Gd = 125, Lt = {};
|
|
9752
9764
|
Lt[0] = "\\0";
|
|
9753
9765
|
Lt[7] = "\\a";
|
|
9754
9766
|
Lt[8] = "\\b";
|
|
@@ -9801,9 +9813,9 @@ function YC(e) {
|
|
|
9801
9813
|
throw new Kt("code point within a string may not be greater than 0xFFFFFFFF");
|
|
9802
9814
|
return "\\" + n + Et.repeat("0", i - t.length) + t;
|
|
9803
9815
|
}
|
|
9804
|
-
var JC = 1,
|
|
9816
|
+
var JC = 1, ha = 2;
|
|
9805
9817
|
function XC(e) {
|
|
9806
|
-
this.schema = e.schema || gs, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Et.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = WC(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ?
|
|
9818
|
+
this.schema = e.schema || gs, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Et.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = WC(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? ha : JC, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
9807
9819
|
}
|
|
9808
9820
|
function ql(e, t) {
|
|
9809
9821
|
for (var n = Et.repeat(" ", t), i = 0, a = -1, o = "", r, s = e.length; i < s; )
|
|
@@ -9812,7 +9824,7 @@ function ql(e, t) {
|
|
|
9812
9824
|
` && (o += n), o += r;
|
|
9813
9825
|
return o;
|
|
9814
9826
|
}
|
|
9815
|
-
function
|
|
9827
|
+
function Er(e, t) {
|
|
9816
9828
|
return `
|
|
9817
9829
|
` + Et.repeat(" ", e.indent * t);
|
|
9818
9830
|
}
|
|
@@ -9823,32 +9835,32 @@ function ZC(e, t) {
|
|
|
9823
9835
|
return !0;
|
|
9824
9836
|
return !1;
|
|
9825
9837
|
}
|
|
9826
|
-
function
|
|
9838
|
+
function eo(e) {
|
|
9827
9839
|
return e === PC || e === OC;
|
|
9828
9840
|
}
|
|
9829
|
-
function
|
|
9841
|
+
function va(e) {
|
|
9830
9842
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ys || 65536 <= e && e <= 1114111;
|
|
9831
9843
|
}
|
|
9832
9844
|
function Vl(e) {
|
|
9833
|
-
return
|
|
9845
|
+
return va(e) && e !== ys && e !== $C && e !== ga;
|
|
9834
9846
|
}
|
|
9835
9847
|
function Ul(e, t, n) {
|
|
9836
|
-
var i = Vl(e), a = i && !
|
|
9848
|
+
var i = Vl(e), a = i && !eo(e);
|
|
9837
9849
|
return (
|
|
9838
9850
|
// ns-plain-safe
|
|
9839
9851
|
(n ? (
|
|
9840
9852
|
// c = flow-in
|
|
9841
9853
|
i
|
|
9842
|
-
) : i && e !== qd && e !== Vd && e !== Ud && e !== Bd && e !== Gd) && e !==
|
|
9854
|
+
) : i && e !== qd && e !== Vd && e !== Ud && e !== Bd && e !== Gd) && e !== Cr && !(t === Qa && !a) || Vl(t) && !eo(t) && e === Cr || t === Qa && a
|
|
9843
9855
|
);
|
|
9844
9856
|
}
|
|
9845
9857
|
function QC(e) {
|
|
9846
|
-
return
|
|
9858
|
+
return va(e) && e !== ys && !eo(e) && e !== KC && e !== VC && e !== Qa && e !== qd && e !== Vd && e !== Ud && e !== Bd && e !== Gd && e !== Cr && e !== MC && e !== jC && e !== NC && e !== GC && e !== DC && e !== qC && e !== LC && e !== RC && e !== FC && e !== UC && e !== BC;
|
|
9847
9859
|
}
|
|
9848
9860
|
function eE(e) {
|
|
9849
|
-
return !
|
|
9861
|
+
return !eo(e) && e !== Qa;
|
|
9850
9862
|
}
|
|
9851
|
-
function
|
|
9863
|
+
function Ji(e, t) {
|
|
9852
9864
|
var n = e.charCodeAt(t), i;
|
|
9853
9865
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
9854
9866
|
}
|
|
@@ -9856,34 +9868,34 @@ function zd(e) {
|
|
|
9856
9868
|
var t = /^\n* /;
|
|
9857
9869
|
return t.test(e);
|
|
9858
9870
|
}
|
|
9859
|
-
var Hd = 1,
|
|
9871
|
+
var Hd = 1, xr = 2, Wd = 3, Yd = 4, Ai = 5;
|
|
9860
9872
|
function tE(e, t, n, i, a, o, r, s) {
|
|
9861
|
-
var u, d = 0, p = null, c = !1, f = !1, m = i !== -1, g = -1, y = QC(
|
|
9873
|
+
var u, d = 0, p = null, c = !1, f = !1, m = i !== -1, g = -1, y = QC(Ji(e, 0)) && eE(Ji(e, e.length - 1));
|
|
9862
9874
|
if (t || r)
|
|
9863
9875
|
for (u = 0; u < e.length; d >= 65536 ? u += 2 : u++) {
|
|
9864
|
-
if (d =
|
|
9876
|
+
if (d = Ji(e, u), !va(d))
|
|
9865
9877
|
return Ai;
|
|
9866
9878
|
y = y && Ul(d, p, s), p = d;
|
|
9867
9879
|
}
|
|
9868
9880
|
else {
|
|
9869
9881
|
for (u = 0; u < e.length; d >= 65536 ? u += 2 : u++) {
|
|
9870
|
-
if (d =
|
|
9882
|
+
if (d = Ji(e, u), d === ga)
|
|
9871
9883
|
c = !0, m && (f = f || // Foldable line = too long, and not more-indented.
|
|
9872
9884
|
u - g - 1 > i && e[g + 1] !== " ", g = u);
|
|
9873
|
-
else if (!
|
|
9885
|
+
else if (!va(d))
|
|
9874
9886
|
return Ai;
|
|
9875
9887
|
y = y && Ul(d, p, s), p = d;
|
|
9876
9888
|
}
|
|
9877
9889
|
f = f || m && u - g - 1 > i && e[g + 1] !== " ";
|
|
9878
9890
|
}
|
|
9879
|
-
return !c && !f ? y && !r && !a(e) ? Hd : o ===
|
|
9891
|
+
return !c && !f ? y && !r && !a(e) ? Hd : o === ha ? Ai : xr : n > 9 && zd(e) ? Ai : r ? o === ha ? Ai : xr : f ? Yd : Wd;
|
|
9880
9892
|
}
|
|
9881
9893
|
function nE(e, t, n, i, a) {
|
|
9882
9894
|
e.dump = (function() {
|
|
9883
9895
|
if (t.length === 0)
|
|
9884
|
-
return e.quotingType ===
|
|
9896
|
+
return e.quotingType === ha ? '""' : "''";
|
|
9885
9897
|
if (!e.noCompatMode && (zC.indexOf(t) !== -1 || HC.test(t)))
|
|
9886
|
-
return e.quotingType ===
|
|
9898
|
+
return e.quotingType === ha ? '"' + t + '"' : "'" + t + "'";
|
|
9887
9899
|
var o = e.indent * Math.max(1, n), r = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), s = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
9888
9900
|
function u(d) {
|
|
9889
9901
|
return ZC(e, d);
|
|
@@ -9900,7 +9912,7 @@ function nE(e, t, n, i, a) {
|
|
|
9900
9912
|
)) {
|
|
9901
9913
|
case Hd:
|
|
9902
9914
|
return t;
|
|
9903
|
-
case
|
|
9915
|
+
case xr:
|
|
9904
9916
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
9905
9917
|
case Wd:
|
|
9906
9918
|
return "|" + Bl(t, e.indent) + Gl(ql(t, o));
|
|
@@ -9949,7 +9961,7 @@ function zl(e, t) {
|
|
|
9949
9961
|
}
|
|
9950
9962
|
function aE(e) {
|
|
9951
9963
|
for (var t = "", n = 0, i, a = 0; a < e.length; n >= 65536 ? a += 2 : a++)
|
|
9952
|
-
n =
|
|
9964
|
+
n = Ji(e, a), i = Lt[n], !i && va(n) ? (t += e[a], n >= 65536 && (t += e[a + 1])) : t += i || YC(n);
|
|
9953
9965
|
return t;
|
|
9954
9966
|
}
|
|
9955
9967
|
function oE(e, t, n) {
|
|
@@ -9961,7 +9973,7 @@ function oE(e, t, n) {
|
|
|
9961
9973
|
function Hl(e, t, n, i) {
|
|
9962
9974
|
var a = "", o = e.tag, r, s, u;
|
|
9963
9975
|
for (r = 0, s = n.length; r < s; r += 1)
|
|
9964
|
-
u = n[r], e.replacer && (u = e.replacer.call(n, String(r), u)), (Sn(e, t + 1, u, !0, !0, !1, !0) || typeof u > "u" && Sn(e, t + 1, null, !0, !0, !1, !0)) && ((!i || a !== "") && (a +=
|
|
9976
|
+
u = n[r], e.replacer && (u = e.replacer.call(n, String(r), u)), (Sn(e, t + 1, u, !0, !0, !1, !0) || typeof u > "u" && Sn(e, t + 1, null, !0, !0, !1, !0)) && ((!i || a !== "") && (a += Er(e, t)), e.dump && ga === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
|
|
9965
9977
|
e.tag = o, e.dump = a || "[]";
|
|
9966
9978
|
}
|
|
9967
9979
|
function rE(e, t, n) {
|
|
@@ -9979,7 +9991,7 @@ function sE(e, t, n, i) {
|
|
|
9979
9991
|
else if (e.sortKeys)
|
|
9980
9992
|
throw new Kt("sortKeys must be a boolean or a function");
|
|
9981
9993
|
for (s = 0, u = r.length; s < u; s += 1)
|
|
9982
|
-
f = "", (!i || a !== "") && (f +=
|
|
9994
|
+
f = "", (!i || a !== "") && (f += Er(e, t)), d = r[s], p = n[d], e.replacer && (p = e.replacer.call(n, d, p)), Sn(e, t + 1, d, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && ga === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, c && (f += Er(e, t)), Sn(e, t + 1, p, !0, c) && (e.dump && ga === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, a += f));
|
|
9983
9995
|
e.tag = o, e.dump = a || "{}";
|
|
9984
9996
|
}
|
|
9985
9997
|
function Wl(e, t, n) {
|
|
@@ -10027,21 +10039,21 @@ function Sn(e, t, n, i, a, o, r) {
|
|
|
10027
10039
|
}
|
|
10028
10040
|
function lE(e, t) {
|
|
10029
10041
|
var n = [], i = [], a, o;
|
|
10030
|
-
for (
|
|
10042
|
+
for (Ar(e, n, i), a = 0, o = i.length; a < o; a += 1)
|
|
10031
10043
|
t.duplicates.push(n[i[a]]);
|
|
10032
10044
|
t.usedDuplicates = new Array(o);
|
|
10033
10045
|
}
|
|
10034
|
-
function
|
|
10046
|
+
function Ar(e, t, n) {
|
|
10035
10047
|
var i, a, o;
|
|
10036
10048
|
if (e !== null && typeof e == "object")
|
|
10037
10049
|
if (a = t.indexOf(e), a !== -1)
|
|
10038
10050
|
n.indexOf(a) === -1 && n.push(a);
|
|
10039
10051
|
else if (t.push(e), Array.isArray(e))
|
|
10040
10052
|
for (a = 0, o = e.length; a < o; a += 1)
|
|
10041
|
-
|
|
10053
|
+
Ar(e[a], t, n);
|
|
10042
10054
|
else
|
|
10043
10055
|
for (i = Object.keys(e), a = 0, o = i.length; a < o; a += 1)
|
|
10044
|
-
|
|
10056
|
+
Ar(e[i[a]], t, n);
|
|
10045
10057
|
}
|
|
10046
10058
|
function uE(e, t) {
|
|
10047
10059
|
t = t || {};
|
|
@@ -10249,14 +10261,14 @@ nodes:
|
|
|
10249
10261
|
type: exit
|
|
10250
10262
|
input: API
|
|
10251
10263
|
status: 200
|
|
10252
|
-
`,
|
|
10264
|
+
`, to = {
|
|
10253
10265
|
authenticate: xE,
|
|
10254
10266
|
vault: AE,
|
|
10255
10267
|
combine: IE,
|
|
10256
10268
|
cache: SE,
|
|
10257
10269
|
manipulate: TE
|
|
10258
10270
|
};
|
|
10259
|
-
function
|
|
10271
|
+
function ya(e) {
|
|
10260
10272
|
return typeof e == "object" && !Array.isArray(e) && e !== null;
|
|
10261
10273
|
}
|
|
10262
10274
|
const OE = {
|
|
@@ -10264,8 +10276,8 @@ const OE = {
|
|
|
10264
10276
|
extract(e) {
|
|
10265
10277
|
try {
|
|
10266
10278
|
const t = jn.load(e);
|
|
10267
|
-
return
|
|
10268
|
-
(i) =>
|
|
10279
|
+
return ya(t) && Array.isArray(t.plugins) && t.plugins.find(
|
|
10280
|
+
(i) => ya(i) && i.name === "datakit"
|
|
10269
10281
|
) || null;
|
|
10270
10282
|
} catch {
|
|
10271
10283
|
return null;
|
|
@@ -10281,8 +10293,8 @@ const OE = {
|
|
|
10281
10293
|
n && (t = n[1] || n[2]);
|
|
10282
10294
|
try {
|
|
10283
10295
|
const i = jn.load(t);
|
|
10284
|
-
if (!
|
|
10285
|
-
const a =
|
|
10296
|
+
if (!ya(i)) return null;
|
|
10297
|
+
const a = ya(i.metadata) ? i.metadata : {}, o = i.plugin || a.name;
|
|
10286
10298
|
return (
|
|
10287
10299
|
// https://developer.konghq.com/kubernetes-ingress-controller/reference/custom-resources/#kongplugin
|
|
10288
10300
|
// https://developer.konghq.com/kubernetes-ingress-controller/reference/custom-resources/#kongclusterplugin
|
|
@@ -10306,7 +10318,7 @@ const OE = {
|
|
|
10306
10318
|
t[2] && (n = n.replace(/\\(["\\])/g, "$1"));
|
|
10307
10319
|
try {
|
|
10308
10320
|
const i = JSON.parse(n);
|
|
10309
|
-
return
|
|
10321
|
+
return ya(i) && i.name === "datakit" && i || null;
|
|
10310
10322
|
} catch {
|
|
10311
10323
|
return null;
|
|
10312
10324
|
}
|
|
@@ -10382,7 +10394,7 @@ const OE = {
|
|
|
10382
10394
|
y.value && (c.value = d(y.value), v());
|
|
10383
10395
|
}
|
|
10384
10396
|
function x(b) {
|
|
10385
|
-
const _ =
|
|
10397
|
+
const _ = to[b];
|
|
10386
10398
|
try {
|
|
10387
10399
|
const I = jn.load(c.value, {
|
|
10388
10400
|
schema: Oi,
|
|
@@ -10416,7 +10428,7 @@ const OE = {
|
|
|
10416
10428
|
default: A(() => [
|
|
10417
10429
|
j("div", FE, [
|
|
10418
10430
|
xe(W(l(i)("plugins.free-form.datakit.description_example")) + " ", 1),
|
|
10419
|
-
(w(!0), V(Fe, null, Be(l(
|
|
10431
|
+
(w(!0), V(Fe, null, Be(l(to), (I, R) => (w(), M(l(xn), {
|
|
10420
10432
|
key: R,
|
|
10421
10433
|
appearance: "secondary",
|
|
10422
10434
|
size: "small",
|
|
@@ -10462,7 +10474,7 @@ const OE = {
|
|
|
10462
10474
|
"service_response",
|
|
10463
10475
|
"response",
|
|
10464
10476
|
"vault"
|
|
10465
|
-
],
|
|
10477
|
+
], Bi = Jd, Xd = [
|
|
10466
10478
|
"call",
|
|
10467
10479
|
"jq",
|
|
10468
10480
|
"exit",
|
|
@@ -10536,31 +10548,31 @@ const OE = {
|
|
|
10536
10548
|
xml_to_json: {
|
|
10537
10549
|
icon: qp,
|
|
10538
10550
|
colors: {
|
|
10539
|
-
foreground:
|
|
10540
|
-
background:
|
|
10551
|
+
foreground: fa,
|
|
10552
|
+
background: wr
|
|
10541
10553
|
}
|
|
10542
10554
|
},
|
|
10543
10555
|
json_to_xml: {
|
|
10544
10556
|
icon: Dp,
|
|
10545
10557
|
colors: {
|
|
10546
|
-
foreground:
|
|
10547
|
-
background:
|
|
10558
|
+
foreground: fa,
|
|
10559
|
+
background: wr
|
|
10548
10560
|
}
|
|
10549
10561
|
},
|
|
10550
10562
|
vault: {
|
|
10551
10563
|
icon: Hu
|
|
10552
10564
|
},
|
|
10553
10565
|
request: {
|
|
10554
|
-
icon:
|
|
10566
|
+
icon: Oa
|
|
10555
10567
|
},
|
|
10556
10568
|
service_request: {
|
|
10557
|
-
icon:
|
|
10569
|
+
icon: Oa
|
|
10558
10570
|
},
|
|
10559
10571
|
service_response: {
|
|
10560
|
-
icon:
|
|
10572
|
+
icon: Oa
|
|
10561
10573
|
},
|
|
10562
10574
|
response: {
|
|
10563
|
-
icon:
|
|
10575
|
+
icon: Oa
|
|
10564
10576
|
}
|
|
10565
10577
|
}, { t: bs } = kt("en-us", Ct);
|
|
10566
10578
|
function Vt(e) {
|
|
@@ -10786,11 +10798,11 @@ const ws = {
|
|
|
10786
10798
|
...St.vault,
|
|
10787
10799
|
hidden: !0
|
|
10788
10800
|
}
|
|
10789
|
-
}, ks = Object.keys(Oo), Cs = (e) => ks.includes(e), KE = (e) => [...ks, ...Xd].includes(e), Ut = (e) => ks.includes(e),
|
|
10801
|
+
}, ks = Object.keys(Oo), Cs = (e) => ks.includes(e), KE = (e) => [...ks, ...Xd].includes(e), Ut = (e) => ks.includes(e), Ir = (e) => Ut(e.type), Es = (e) => !!(e != null && e.startsWith("node:")), Yi = (e) => Object.prototype.hasOwnProperty.call(e, "ownerId");
|
|
10790
10802
|
function Cn(e) {
|
|
10791
10803
|
return ii(e);
|
|
10792
10804
|
}
|
|
10793
|
-
function
|
|
10805
|
+
function Sr(e, t) {
|
|
10794
10806
|
if (e.length !== t.length) return !1;
|
|
10795
10807
|
if (e.length === 0) return !0;
|
|
10796
10808
|
const n = new Set(t);
|
|
@@ -10799,7 +10811,7 @@ function Tr(e, t) {
|
|
|
10799
10811
|
function Ni(e) {
|
|
10800
10812
|
return `${e}:${Co()}`;
|
|
10801
10813
|
}
|
|
10802
|
-
function
|
|
10814
|
+
function Ra(e) {
|
|
10803
10815
|
const [t, n] = e.split(".");
|
|
10804
10816
|
return { nodeName: t, fieldName: n };
|
|
10805
10817
|
}
|
|
@@ -10807,17 +10819,17 @@ function Yl(e) {
|
|
|
10807
10819
|
const [t, n] = e.split(".");
|
|
10808
10820
|
return { nodeId: t, fieldId: n };
|
|
10809
10821
|
}
|
|
10810
|
-
function
|
|
10822
|
+
function Gi(e) {
|
|
10811
10823
|
return Ut(e) ? Oo[e] : ws[e];
|
|
10812
10824
|
}
|
|
10813
10825
|
function Qd(e) {
|
|
10814
10826
|
var a, o, r, s;
|
|
10815
|
-
const t =
|
|
10827
|
+
const t = Gi(e), n = ((o = (a = t.io) == null ? void 0 : a.input) == null ? void 0 : o.fields.map(({ name: u }) => u)) ?? [], i = ((s = (r = t.io) == null ? void 0 : r.output) == null ? void 0 : s.fields.map(({ name: u }) => u)) ?? [];
|
|
10816
10828
|
return { input: n, output: i };
|
|
10817
10829
|
}
|
|
10818
|
-
function
|
|
10830
|
+
function _a(e) {
|
|
10819
10831
|
var n, i, a;
|
|
10820
|
-
return ((a = (i = (n =
|
|
10832
|
+
return ((a = (i = (n = Gi(e).io) == null ? void 0 : n.next) == null ? void 0 : i.branches) == null ? void 0 : a.map(({ name: o }) => o)) ?? [];
|
|
10821
10833
|
}
|
|
10822
10834
|
function Jl(e) {
|
|
10823
10835
|
return (e ?? []).map((t) => ({ id: Ni("field"), name: t }));
|
|
@@ -10854,7 +10866,7 @@ function Zl(e, t) {
|
|
|
10854
10866
|
if (!t.has(o)) return o;
|
|
10855
10867
|
}
|
|
10856
10868
|
}
|
|
10857
|
-
function
|
|
10869
|
+
function Tr(e, t) {
|
|
10858
10870
|
return `${e}:${t}`;
|
|
10859
10871
|
}
|
|
10860
10872
|
function qE(e) {
|
|
@@ -10864,12 +10876,12 @@ function qE(e) {
|
|
|
10864
10876
|
const n = e.slice(0, t), i = e.slice(t + 1);
|
|
10865
10877
|
return { nodeId: n, branch: i };
|
|
10866
10878
|
}
|
|
10867
|
-
function
|
|
10879
|
+
function Ua(e, t) {
|
|
10868
10880
|
return `${e}:${t}`;
|
|
10869
10881
|
}
|
|
10870
10882
|
function ef(e, t, n, i, a) {
|
|
10871
10883
|
return {
|
|
10872
|
-
id:
|
|
10884
|
+
id: Tr(e, t),
|
|
10873
10885
|
ownerId: e,
|
|
10874
10886
|
branch: t,
|
|
10875
10887
|
phase: n,
|
|
@@ -10894,13 +10906,13 @@ function tf(e, t) {
|
|
|
10894
10906
|
...UE(t)
|
|
10895
10907
|
];
|
|
10896
10908
|
}
|
|
10897
|
-
function
|
|
10909
|
+
function no(e, t) {
|
|
10898
10910
|
const n = /* @__PURE__ */ new Map();
|
|
10899
10911
|
for (const { source: i, target: a } of e)
|
|
10900
10912
|
n.has(i) || n.set(i, []), n.get(i).push(a), n.has(a) || n.set(a, []);
|
|
10901
10913
|
return t && (n.has(t.source) || n.set(t.source, []), n.get(t.source).push(t.target), n.has(t.target) || n.set(t.target, [])), n;
|
|
10902
10914
|
}
|
|
10903
|
-
function
|
|
10915
|
+
function Or(e) {
|
|
10904
10916
|
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
10905
10917
|
function i(a) {
|
|
10906
10918
|
if (n.has(a)) return !0;
|
|
@@ -10938,9 +10950,9 @@ function BE({ state: e, groupMapById: t, getNodeById: n, history: i }) {
|
|
|
10938
10950
|
for (const S of e.value.groups)
|
|
10939
10951
|
N.has(S.ownerId) || N.set(S.ownerId, []), N.get(S.ownerId).push(S);
|
|
10940
10952
|
return N;
|
|
10941
|
-
}), s = T(() => tf(e.value.edges, e.value.groups)), u = T(() =>
|
|
10953
|
+
}), s = T(() => tf(e.value.edges, e.value.groups)), u = T(() => no(s.value));
|
|
10942
10954
|
function d(N, S) {
|
|
10943
|
-
return N ?
|
|
10955
|
+
return N ? _a(N.type).includes(S) : !1;
|
|
10944
10956
|
}
|
|
10945
10957
|
function p(N, S) {
|
|
10946
10958
|
if (S === N.id) return !1;
|
|
@@ -10958,14 +10970,14 @@ function BE({ state: e, groupMapById: t, getNodeById: n, history: i }) {
|
|
|
10958
10970
|
return d(L, S) ? c(L, q) : [];
|
|
10959
10971
|
}
|
|
10960
10972
|
function m(N, S, q) {
|
|
10961
|
-
const L =
|
|
10962
|
-
q.length > 0 ? G ? (G.phase !== N.phase && (G.phase = N.phase),
|
|
10973
|
+
const L = Tr(N.id, S), G = t.value.get(L);
|
|
10974
|
+
q.length > 0 ? G ? (G.phase !== N.phase && (G.phase = N.phase), Sr(G.memberIds, q) || (G.position = void 0, G.dimensions = void 0, G.memberIds = [...q])) : e.value.groups.push(ef(N.id, S, N.phase, q)) : G && (e.value.groups = e.value.groups.filter((X) => X.id !== L));
|
|
10963
10975
|
}
|
|
10964
10976
|
function g(N, S, q, L = {}) {
|
|
10965
10977
|
const G = n(N);
|
|
10966
10978
|
if (!d(G, S)) return !1;
|
|
10967
10979
|
const X = c(G, q), ie = Ho(G, S);
|
|
10968
|
-
if (
|
|
10980
|
+
if (Sr(ie, X)) return !1;
|
|
10969
10981
|
const J = G.config ?? (G.config = {});
|
|
10970
10982
|
return X.length > 0 ? J[S] = [...X] : (delete J[S], Object.keys(J).length === 0 && delete G.config), m(G, S, X), (L.commit ?? !0) && i.commit(L.tag), !0;
|
|
10971
10983
|
}
|
|
@@ -10974,7 +10986,7 @@ function BE({ state: e, groupMapById: t, getNodeById: n, history: i }) {
|
|
|
10974
10986
|
return q.length === e.value.groups.length ? !1 : (e.value.groups = q, (S.commit ?? !0) && i.commit(S.tag), !0);
|
|
10975
10987
|
}
|
|
10976
10988
|
function h(N, S) {
|
|
10977
|
-
const q = t.value.get(
|
|
10989
|
+
const q = t.value.get(Tr(N, S));
|
|
10978
10990
|
if (q)
|
|
10979
10991
|
return [...q.memberIds];
|
|
10980
10992
|
const L = n(N);
|
|
@@ -11163,7 +11175,7 @@ function Ql(e, t) {
|
|
|
11163
11175
|
s.push(K), d.set(K.name, K);
|
|
11164
11176
|
}
|
|
11165
11177
|
for (const I of s) {
|
|
11166
|
-
const R =
|
|
11178
|
+
const R = _a(I.type);
|
|
11167
11179
|
if (!R.length)
|
|
11168
11180
|
continue;
|
|
11169
11181
|
const K = I.config;
|
|
@@ -11171,7 +11183,7 @@ function Ql(e, t) {
|
|
|
11171
11183
|
for (const $ of R) {
|
|
11172
11184
|
const N = K[$];
|
|
11173
11185
|
if (!Array.isArray(N)) {
|
|
11174
|
-
r.has(
|
|
11186
|
+
r.has(Ua(I.name, $)) && (g = !0);
|
|
11175
11187
|
continue;
|
|
11176
11188
|
}
|
|
11177
11189
|
const S = [];
|
|
@@ -11183,15 +11195,15 @@ function Ql(e, t) {
|
|
|
11183
11195
|
}
|
|
11184
11196
|
if (S.length) {
|
|
11185
11197
|
K[$] = S;
|
|
11186
|
-
const q =
|
|
11198
|
+
const q = Ua(I.name, $), L = r.get(q), G = L ? {
|
|
11187
11199
|
position: Cn(L.position)
|
|
11188
11200
|
} : void 0, X = ef(I.id, $, I.phase, S, G);
|
|
11189
11201
|
p.push(X), !L && !g && (g = !0);
|
|
11190
11202
|
} else
|
|
11191
|
-
delete K[$], r.has(
|
|
11203
|
+
delete K[$], r.has(Ua(I.name, $)) && (g = !0);
|
|
11192
11204
|
}
|
|
11193
11205
|
}
|
|
11194
|
-
for (const I of
|
|
11206
|
+
for (const I of Bi)
|
|
11195
11207
|
if (!d.has(I)) {
|
|
11196
11208
|
let R = o.get(I);
|
|
11197
11209
|
R || (g || (g = !0), R = DE(I));
|
|
@@ -11236,7 +11248,7 @@ function Ql(e, t) {
|
|
|
11236
11248
|
};
|
|
11237
11249
|
}
|
|
11238
11250
|
function nf(e) {
|
|
11239
|
-
const { type: t, name: n, phase: i, position: a, fields: o, config: r } = e, s = Qd(t), u =
|
|
11251
|
+
const { type: t, name: n, phase: i, position: a, fields: o, config: r } = e, s = Qd(t), u = Gi(t);
|
|
11240
11252
|
return {
|
|
11241
11253
|
id: Ni("node"),
|
|
11242
11254
|
type: t,
|
|
@@ -11287,13 +11299,13 @@ function JE(e) {
|
|
|
11287
11299
|
function XE(e, t) {
|
|
11288
11300
|
const n = e.name;
|
|
11289
11301
|
if (e.input) {
|
|
11290
|
-
const { nodeName: i, fieldName: a } =
|
|
11302
|
+
const { nodeName: i, fieldName: a } = Ra(e.input);
|
|
11291
11303
|
i && t.push({ source: i, sourceField: a, target: n });
|
|
11292
11304
|
}
|
|
11293
11305
|
if (e.inputs)
|
|
11294
11306
|
for (const [i, a] of Object.entries(e.inputs)) {
|
|
11295
11307
|
if (!a) continue;
|
|
11296
|
-
const { nodeName: o, fieldName: r } =
|
|
11308
|
+
const { nodeName: o, fieldName: r } = Ra(a);
|
|
11297
11309
|
o && t.push({
|
|
11298
11310
|
source: o,
|
|
11299
11311
|
sourceField: r,
|
|
@@ -11302,7 +11314,7 @@ function XE(e, t) {
|
|
|
11302
11314
|
});
|
|
11303
11315
|
}
|
|
11304
11316
|
if (e.output) {
|
|
11305
|
-
const { nodeName: i, fieldName: a } =
|
|
11317
|
+
const { nodeName: i, fieldName: a } = Ra(e.output);
|
|
11306
11318
|
i && t.push({ source: n, target: i, targetField: a });
|
|
11307
11319
|
}
|
|
11308
11320
|
if (e.outputs)
|
|
@@ -11310,7 +11322,7 @@ function XE(e, t) {
|
|
|
11310
11322
|
e.outputs
|
|
11311
11323
|
)) {
|
|
11312
11324
|
if (!a) continue;
|
|
11313
|
-
const { nodeName: o, fieldName: r } =
|
|
11325
|
+
const { nodeName: o, fieldName: r } = Ra(a);
|
|
11314
11326
|
o && t.push({
|
|
11315
11327
|
source: n,
|
|
11316
11328
|
sourceField: i,
|
|
@@ -11326,7 +11338,7 @@ function ZE({
|
|
|
11326
11338
|
pluginData: i
|
|
11327
11339
|
}) {
|
|
11328
11340
|
var s, u, d, p;
|
|
11329
|
-
const a =
|
|
11341
|
+
const a = Gi(e), o = a == null ? void 0 : a.io;
|
|
11330
11342
|
if (!o) return;
|
|
11331
11343
|
const r = {};
|
|
11332
11344
|
if ((s = o.input) != null && s.configurable && (t ? r.input = ((u = t.fields) == null ? void 0 : u.input) ?? [] : n != null && n.inputs && (r.input = Object.keys(n.inputs))), (d = o.output) != null && d.configurable) {
|
|
@@ -11355,7 +11367,7 @@ function ex(e) {
|
|
|
11355
11367
|
() => e.value.edges
|
|
11356
11368
|
), i = T(() => e.value.groups), a = T(() => tf(n.value, i.value));
|
|
11357
11369
|
function o(c) {
|
|
11358
|
-
return
|
|
11370
|
+
return no(
|
|
11359
11371
|
a.value,
|
|
11360
11372
|
c ? { source: c.source, target: c.target } : void 0
|
|
11361
11373
|
);
|
|
@@ -11386,17 +11398,17 @@ function ex(e) {
|
|
|
11386
11398
|
(x) => x.target === f.target && x.targetField === f.targetField
|
|
11387
11399
|
) && m.push("target field already connected"), !f.targetField && n.value.some((x) => x.target === f.target && !x.targetField) && m.push("target input already taken"), f.source === f.target && m.push("self-loop not allowed");
|
|
11388
11400
|
const k = o({ source: f.source, target: f.target });
|
|
11389
|
-
return
|
|
11401
|
+
return Or(k) && m.push("connection introduces a cycle"), m.length ? { ok: !1, errors: m } : { ok: !0 };
|
|
11390
11402
|
}
|
|
11391
11403
|
function u() {
|
|
11392
11404
|
const c = [];
|
|
11393
|
-
for (const f of
|
|
11405
|
+
for (const f of Bi)
|
|
11394
11406
|
[...t.value.values()].some((m) => m.name === f) || c.push(`missing implicit node "${f}"`);
|
|
11395
11407
|
for (const f of n.value) {
|
|
11396
11408
|
const m = t.value.get(f.source);
|
|
11397
11409
|
t.value.get(f.target).name === "request" && c.push(`edge "${f.id}" targets "request"`), m.name === "response" && c.push(`edge "${f.id}" sources from "response"`);
|
|
11398
11410
|
}
|
|
11399
|
-
return
|
|
11411
|
+
return Or(o()) && c.push("graph contains cycle"), c.length ? { ok: !1, errors: c } : { ok: !0 };
|
|
11400
11412
|
}
|
|
11401
11413
|
function d(c) {
|
|
11402
11414
|
return s(c).ok;
|
|
@@ -11415,7 +11427,7 @@ function ex(e) {
|
|
|
11415
11427
|
validateGraph: u,
|
|
11416
11428
|
isValidConnection: d,
|
|
11417
11429
|
isValidVueFlowConnection: p,
|
|
11418
|
-
buildAdjacency:
|
|
11430
|
+
buildAdjacency: no
|
|
11419
11431
|
};
|
|
11420
11432
|
}
|
|
11421
11433
|
const [af, tx] = Vr(
|
|
@@ -11532,7 +11544,7 @@ const [af, tx] = Vr(
|
|
|
11532
11544
|
x: me.position.x + 20,
|
|
11533
11545
|
y: me.position.y + 20
|
|
11534
11546
|
}
|
|
11535
|
-
}, ce =
|
|
11547
|
+
}, ce = _a(te.type);
|
|
11536
11548
|
if (ce.length && te.config) {
|
|
11537
11549
|
for (const Se of ce)
|
|
11538
11550
|
delete te.config[Se];
|
|
@@ -11694,7 +11706,7 @@ const [af, tx] = Vr(
|
|
|
11694
11706
|
...Cn(Se.config),
|
|
11695
11707
|
name: Se.name,
|
|
11696
11708
|
type: Se.type
|
|
11697
|
-
}, pn =
|
|
11709
|
+
}, pn = _a(Se.type);
|
|
11698
11710
|
if (pn.length)
|
|
11699
11711
|
for (const xt of pn) {
|
|
11700
11712
|
const ne = Nt[xt];
|
|
@@ -11745,7 +11757,7 @@ const [af, tx] = Vr(
|
|
|
11745
11757
|
if (!ee) continue;
|
|
11746
11758
|
const me = ae.position;
|
|
11747
11759
|
me && O.push({
|
|
11748
|
-
name:
|
|
11760
|
+
name: Ua(ee.name, ae.branch),
|
|
11749
11761
|
position: { ...me }
|
|
11750
11762
|
});
|
|
11751
11763
|
}
|
|
@@ -11852,7 +11864,7 @@ function ix({
|
|
|
11852
11864
|
enabled: e,
|
|
11853
11865
|
confirm: t
|
|
11854
11866
|
}) {
|
|
11855
|
-
Ip(() => Ye(e) ? t ? t() : window.confirm(nx("plugins.free-form.datakit.flow_editor.leave_confirm")) : !0),
|
|
11867
|
+
Ip(() => Ye(e) ? t ? t() : window.confirm(nx("plugins.free-form.datakit.flow_editor.leave_confirm")) : !0), ra("beforeunload", (i) => {
|
|
11856
11868
|
Ye(e) && i.preventDefault();
|
|
11857
11869
|
});
|
|
11858
11870
|
}
|
|
@@ -11883,7 +11895,7 @@ function rx(e) {
|
|
|
11883
11895
|
}
|
|
11884
11896
|
const sx = Fp(() => {
|
|
11885
11897
|
const e = /* @__PURE__ */ new Set();
|
|
11886
|
-
|
|
11898
|
+
ra(
|
|
11887
11899
|
"keydown",
|
|
11888
11900
|
(n) => {
|
|
11889
11901
|
if (ox(n.target)) return;
|
|
@@ -11920,7 +11932,7 @@ function rf(e = {}) {
|
|
|
11920
11932
|
const t = sx().subscribe(e);
|
|
11921
11933
|
return lp(t), t;
|
|
11922
11934
|
}
|
|
11923
|
-
const sf = 44, lx = 220, lf = 366, ux = 1e3, cx = sf + parseFloat(id),
|
|
11935
|
+
const sf = 44, lx = 220, lf = 366, ux = 1e3, cx = sf + parseFloat(id), io = 1, dx = 0, fx = 1, px = 2, mx = 3, $i = parseInt(bk, 10), ia = "application/x-datakit+json", ao = {
|
|
11924
11936
|
delete: ["Delete"],
|
|
11925
11937
|
undo: ["Mod", "Z"],
|
|
11926
11938
|
redo: {
|
|
@@ -11938,7 +11950,7 @@ const sf = 44, lx = 220, lf = 366, ux = 1e3, cx = sf + parseFloat(id), no = 1, d
|
|
|
11938
11950
|
edges: 80,
|
|
11939
11951
|
ranks: 60
|
|
11940
11952
|
}
|
|
11941
|
-
}, gx = 1600, hx = 1.2, vx = 0, yx = 200, uf = /* @__PURE__ */ Symbol("confirm-modal"),
|
|
11953
|
+
}, gx = 1600, hx = 1.2, vx = 0, yx = 200, uf = /* @__PURE__ */ Symbol("confirm-modal"), Ki = "{key}", Yn = {
|
|
11942
11954
|
"kong.client.consumer": {
|
|
11943
11955
|
dataType: "object",
|
|
11944
11956
|
writable: !1,
|
|
@@ -12079,23 +12091,23 @@ const sf = 44, lx = 220, lf = 366, ux = 1e3, cx = sf + parseFloat(id), no = 1, d
|
|
|
12079
12091
|
writable: !0,
|
|
12080
12092
|
readable: !0
|
|
12081
12093
|
}
|
|
12082
|
-
}, Po = Object.keys(Yn).filter((e) => e.includes(
|
|
12083
|
-
function
|
|
12084
|
-
if (!e || !
|
|
12094
|
+
}, Po = Object.keys(Yn).filter((e) => e.includes(Ki)).map((e) => e.replace(Ki, ""));
|
|
12095
|
+
function $r(e) {
|
|
12096
|
+
if (!e || !ba(e)) return;
|
|
12085
12097
|
const t = Po.find((n) => e.startsWith(n));
|
|
12086
12098
|
if (t)
|
|
12087
|
-
return e.slice(t.length).replace(
|
|
12099
|
+
return e.slice(t.length).replace(Ki, "");
|
|
12088
12100
|
}
|
|
12089
|
-
function
|
|
12101
|
+
function Xi(e) {
|
|
12090
12102
|
if (!e) return null;
|
|
12091
12103
|
const t = Po.find((n) => e.startsWith(n));
|
|
12092
12104
|
return t || e;
|
|
12093
12105
|
}
|
|
12094
|
-
function
|
|
12106
|
+
function ba(e) {
|
|
12095
12107
|
return e ? Po.some((t) => e.startsWith(t)) : !1;
|
|
12096
12108
|
}
|
|
12097
12109
|
function cf(e) {
|
|
12098
|
-
return e ?
|
|
12110
|
+
return e ? ba(e) ? Xi(e) + Ki : e : null;
|
|
12099
12111
|
}
|
|
12100
12112
|
function xs(e) {
|
|
12101
12113
|
var n;
|
|
@@ -12103,28 +12115,28 @@ function xs(e) {
|
|
|
12103
12115
|
const t = cf(e);
|
|
12104
12116
|
return t ? ((n = Yn[t]) == null ? void 0 : n.readable) ?? !1 : !1;
|
|
12105
12117
|
}
|
|
12106
|
-
function
|
|
12118
|
+
function Pr(e) {
|
|
12107
12119
|
var n;
|
|
12108
12120
|
if (!e) return !1;
|
|
12109
12121
|
const t = cf(e);
|
|
12110
12122
|
return t ? ((n = Yn[t]) == null ? void 0 : n.writable) ?? !1 : !1;
|
|
12111
12123
|
}
|
|
12112
|
-
function
|
|
12124
|
+
function oo(e, t, n) {
|
|
12113
12125
|
const i = t ? Kn(e, n, t) : void 0;
|
|
12114
12126
|
return `${e.name}${i ? `.${i.name}` : ""}`;
|
|
12115
12127
|
}
|
|
12116
|
-
function
|
|
12128
|
+
function aa(e, t) {
|
|
12117
12129
|
const n = t(e.source), i = t(e.target);
|
|
12118
12130
|
return [
|
|
12119
|
-
|
|
12120
|
-
|
|
12131
|
+
oo(n, e.sourceField, "output"),
|
|
12132
|
+
oo(i, e.targetField, "input")
|
|
12121
12133
|
];
|
|
12122
12134
|
}
|
|
12123
|
-
function
|
|
12135
|
+
function Nr(e, t, n, i, a) {
|
|
12124
12136
|
const o = a(e), r = a(n);
|
|
12125
12137
|
return [
|
|
12126
|
-
|
|
12127
|
-
|
|
12138
|
+
oo(o, t, "output"),
|
|
12139
|
+
oo(r, i, "input")
|
|
12128
12140
|
];
|
|
12129
12141
|
}
|
|
12130
12142
|
function df(e) {
|
|
@@ -12468,7 +12480,7 @@ let wx = class {
|
|
|
12468
12480
|
setEdge() {
|
|
12469
12481
|
var t, n, i, a, o = !1, r = arguments[0];
|
|
12470
12482
|
typeof r == "object" && r !== null && "v" in r ? (t = r.v, n = r.w, i = r.name, arguments.length === 2 && (a = arguments[1], o = !0)) : (t = r, n = arguments[1], i = arguments[3], arguments.length > 2 && (a = arguments[2], o = !0)), t = "" + t, n = "" + n, i !== void 0 && (i = "" + i);
|
|
12471
|
-
var s =
|
|
12483
|
+
var s = Zi(this._isDirected, t, n, i);
|
|
12472
12484
|
if (Object.hasOwn(this._edgeLabels, s))
|
|
12473
12485
|
return o && (this._edgeLabels[s] = a), this;
|
|
12474
12486
|
if (i !== void 0 && !this._isMultigraph)
|
|
@@ -12482,7 +12494,7 @@ let wx = class {
|
|
|
12482
12494
|
* Complexity: O(1).
|
|
12483
12495
|
*/
|
|
12484
12496
|
edge(t, n, i) {
|
|
12485
|
-
var a = arguments.length === 1 ? Wo(this._isDirected, arguments[0]) :
|
|
12497
|
+
var a = arguments.length === 1 ? Wo(this._isDirected, arguments[0]) : Zi(this._isDirected, t, n, i);
|
|
12486
12498
|
return this._edgeLabels[a];
|
|
12487
12499
|
}
|
|
12488
12500
|
/**
|
|
@@ -12498,7 +12510,7 @@ let wx = class {
|
|
|
12498
12510
|
* Complexity: O(1).
|
|
12499
12511
|
*/
|
|
12500
12512
|
hasEdge(t, n, i) {
|
|
12501
|
-
var a = arguments.length === 1 ? Wo(this._isDirected, arguments[0]) :
|
|
12513
|
+
var a = arguments.length === 1 ? Wo(this._isDirected, arguments[0]) : Zi(this._isDirected, t, n, i);
|
|
12502
12514
|
return Object.hasOwn(this._edgeLabels, a);
|
|
12503
12515
|
}
|
|
12504
12516
|
/**
|
|
@@ -12506,7 +12518,7 @@ let wx = class {
|
|
|
12506
12518
|
* Complexity: O(1).
|
|
12507
12519
|
*/
|
|
12508
12520
|
removeEdge(t, n, i) {
|
|
12509
|
-
var a = arguments.length === 1 ? Wo(this._isDirected, arguments[0]) :
|
|
12521
|
+
var a = arguments.length === 1 ? Wo(this._isDirected, arguments[0]) : Zi(this._isDirected, t, n, i), o = this._edgeObjs[a];
|
|
12510
12522
|
return o && (t = o.v, n = o.w, delete this._edgeLabels[a], delete this._edgeObjs[a], iu(this._preds[n], t), iu(this._sucs[t], n), delete this._in[n][a], delete this._out[t][a], this._edgeCount--), this;
|
|
12511
12523
|
}
|
|
12512
12524
|
/**
|
|
@@ -12550,7 +12562,7 @@ function nu(e, t) {
|
|
|
12550
12562
|
function iu(e, t) {
|
|
12551
12563
|
--e[t] || delete e[t];
|
|
12552
12564
|
}
|
|
12553
|
-
function
|
|
12565
|
+
function Zi(e, t, n, i) {
|
|
12554
12566
|
var a = "" + t, o = "" + n;
|
|
12555
12567
|
if (!e && a > o) {
|
|
12556
12568
|
var r = a;
|
|
@@ -12568,7 +12580,7 @@ function kx(e, t, n, i) {
|
|
|
12568
12580
|
return i && (s.name = i), s;
|
|
12569
12581
|
}
|
|
12570
12582
|
function Wo(e, t) {
|
|
12571
|
-
return
|
|
12583
|
+
return Zi(e, t.v, t.w, t.name);
|
|
12572
12584
|
}
|
|
12573
12585
|
var As = wx, Cx = "2.2.4", Ex = {
|
|
12574
12586
|
Graph: As,
|
|
@@ -12808,20 +12820,20 @@ function gf(e) {
|
|
|
12808
12820
|
var t = {}, n = {}, i = [];
|
|
12809
12821
|
function a(o) {
|
|
12810
12822
|
if (Object.hasOwn(n, o))
|
|
12811
|
-
throw new
|
|
12823
|
+
throw new Rr();
|
|
12812
12824
|
Object.hasOwn(t, o) || (n[o] = !0, t[o] = !0, e.predecessors(o).forEach(a), delete n[o], i.push(o));
|
|
12813
12825
|
}
|
|
12814
12826
|
if (e.sinks().forEach(a), Object.keys(t).length !== e.nodeCount())
|
|
12815
|
-
throw new
|
|
12827
|
+
throw new Rr();
|
|
12816
12828
|
return i;
|
|
12817
12829
|
}
|
|
12818
|
-
class
|
|
12830
|
+
class Rr extends Error {
|
|
12819
12831
|
constructor() {
|
|
12820
12832
|
super(...arguments);
|
|
12821
12833
|
}
|
|
12822
12834
|
}
|
|
12823
12835
|
var hf = gf;
|
|
12824
|
-
gf.CycleException =
|
|
12836
|
+
gf.CycleException = Rr;
|
|
12825
12837
|
var au = hf, Yx = Jx;
|
|
12826
12838
|
function Jx(e) {
|
|
12827
12839
|
try {
|
|
@@ -12972,10 +12984,10 @@ function Yo(e, t, n, i, a) {
|
|
|
12972
12984
|
let o = a ? [] : void 0;
|
|
12973
12985
|
return e.inEdges(i.v).forEach((r) => {
|
|
12974
12986
|
let s = e.edge(r), u = e.node(r.v);
|
|
12975
|
-
a && o.push({ v: r.v, w: r.w }), u.out -= s,
|
|
12987
|
+
a && o.push({ v: r.v, w: r.w }), u.out -= s, Fr(t, n, u);
|
|
12976
12988
|
}), e.outEdges(i.v).forEach((r) => {
|
|
12977
12989
|
let s = e.edge(r), u = r.w, d = e.node(u);
|
|
12978
|
-
d.in -= s,
|
|
12990
|
+
d.in -= s, Fr(t, n, d);
|
|
12979
12991
|
}), e.removeNode(i.v), o;
|
|
12980
12992
|
}
|
|
12981
12993
|
function bA(e, t) {
|
|
@@ -12988,10 +13000,10 @@ function bA(e, t) {
|
|
|
12988
13000
|
});
|
|
12989
13001
|
let o = wA(a + i + 3).map(() => new gA()), r = i + 1;
|
|
12990
13002
|
return n.nodes().forEach((s) => {
|
|
12991
|
-
|
|
13003
|
+
Fr(o, r, n.node(s));
|
|
12992
13004
|
}), { graph: n, buckets: o, zeroIdx: r };
|
|
12993
13005
|
}
|
|
12994
|
-
function
|
|
13006
|
+
function Fr(e, t, n) {
|
|
12995
13007
|
n.out ? n.in ? e[n.out - n.in + t].enqueue(n) : e[e.length - 1].enqueue(n) : e[0].enqueue(n);
|
|
12996
13008
|
}
|
|
12997
13009
|
function wA(e) {
|
|
@@ -13257,19 +13269,19 @@ function JA(e) {
|
|
|
13257
13269
|
function XA(e, t) {
|
|
13258
13270
|
return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
|
|
13259
13271
|
}
|
|
13260
|
-
var ZA = cn.Graph,
|
|
13272
|
+
var ZA = cn.Graph, ro = Ro.slack, xf = QA;
|
|
13261
13273
|
function QA(e) {
|
|
13262
13274
|
var t = new ZA({ directed: !1 }), n = e.nodes()[0], i = e.nodeCount();
|
|
13263
13275
|
t.setNode(n, {});
|
|
13264
13276
|
for (var a, o; eI(t, e) < i; )
|
|
13265
|
-
a = tI(t, e), o = t.hasNode(a.v) ?
|
|
13277
|
+
a = tI(t, e), o = t.hasNode(a.v) ? ro(e, a) : -ro(e, a), nI(t, e, o);
|
|
13266
13278
|
return t;
|
|
13267
13279
|
}
|
|
13268
13280
|
function eI(e, t) {
|
|
13269
13281
|
function n(i) {
|
|
13270
13282
|
t.nodeEdges(i).forEach((a) => {
|
|
13271
13283
|
var o = a.v, r = i === o ? a.w : o;
|
|
13272
|
-
!e.hasNode(r) && !
|
|
13284
|
+
!e.hasNode(r) && !ro(t, a) && (e.setNode(r, {}), e.setEdge(i, r, {}), n(r));
|
|
13273
13285
|
});
|
|
13274
13286
|
}
|
|
13275
13287
|
return e.nodes().forEach(n), e.nodeCount();
|
|
@@ -13277,7 +13289,7 @@ function eI(e, t) {
|
|
|
13277
13289
|
function tI(e, t) {
|
|
13278
13290
|
return t.edges().reduce((i, a) => {
|
|
13279
13291
|
let o = Number.POSITIVE_INFINITY;
|
|
13280
|
-
return e.hasNode(a.v) !== e.hasNode(a.w) && (o =
|
|
13292
|
+
return e.hasNode(a.v) !== e.hasNode(a.w) && (o = ro(t, a)), o < i[0] ? [o, a] : i;
|
|
13281
13293
|
}, [Number.POSITIVE_INFINITY, null])[1];
|
|
13282
13294
|
}
|
|
13283
13295
|
function nI(e, t, n) {
|
|
@@ -13421,13 +13433,13 @@ function kI(e) {
|
|
|
13421
13433
|
}
|
|
13422
13434
|
return e.children().forEach(i), t;
|
|
13423
13435
|
}
|
|
13424
|
-
let
|
|
13436
|
+
let so = wt;
|
|
13425
13437
|
var CI = {
|
|
13426
13438
|
run: EI,
|
|
13427
13439
|
cleanup: II
|
|
13428
13440
|
};
|
|
13429
13441
|
function EI(e) {
|
|
13430
|
-
let t =
|
|
13442
|
+
let t = so.addDummyNode(e, "root", {}, "_root"), n = xI(e), i = Object.values(n), a = so.applyWithChunking(Math.max, i) - 1, o = 2 * a + 1;
|
|
13431
13443
|
e.graph().nestingRoot = t, e.edges().forEach((s) => e.edge(s).minlen *= o);
|
|
13432
13444
|
let r = AI(e) + 1;
|
|
13433
13445
|
e.children().forEach((s) => Pf(e, t, o, r, a, n, s)), e.graph().nodeRankFactor = o;
|
|
@@ -13438,7 +13450,7 @@ function Pf(e, t, n, i, a, o, r) {
|
|
|
13438
13450
|
r !== t && e.setEdge(t, r, { weight: 0, minlen: n });
|
|
13439
13451
|
return;
|
|
13440
13452
|
}
|
|
13441
|
-
let u =
|
|
13453
|
+
let u = so.addBorderNode(e, "_bt"), d = so.addBorderNode(e, "_bb"), p = e.node(r);
|
|
13442
13454
|
e.setParent(u, r), p.borderTop = u, e.setParent(d, r), p.borderBottom = d, s.forEach((c) => {
|
|
13443
13455
|
Pf(e, t, n, i, a, o, c);
|
|
13444
13456
|
let f = e.node(c), m = f.borderTop ? f.borderTop : c, g = f.borderBottom ? f.borderBottom : c, y = f.borderTop ? i : 2 * i, h = m !== g ? 1 : a - o[r] + 1;
|
|
@@ -13706,19 +13718,19 @@ function dS(e, t, n) {
|
|
|
13706
13718
|
}
|
|
13707
13719
|
});
|
|
13708
13720
|
}
|
|
13709
|
-
let fS = MI, pS = KI, mS = nS, gS = sS, hS = cS, vS = cn.Graph,
|
|
13721
|
+
let fS = MI, pS = KI, mS = nS, gS = sS, hS = cS, vS = cn.Graph, Fa = wt;
|
|
13710
13722
|
var yS = Ff;
|
|
13711
13723
|
function Ff(e, t) {
|
|
13712
13724
|
if (t && typeof t.customOrder == "function") {
|
|
13713
13725
|
t.customOrder(e, Ff);
|
|
13714
13726
|
return;
|
|
13715
13727
|
}
|
|
13716
|
-
let n =
|
|
13728
|
+
let n = Fa.maxRank(e), i = mu(e, Fa.range(1, n + 1), "inEdges"), a = mu(e, Fa.range(n - 1, -1, -1), "outEdges"), o = fS(e);
|
|
13717
13729
|
if (gu(e, o), t && t.disableOptimalOrderHeuristic)
|
|
13718
13730
|
return;
|
|
13719
13731
|
let r = Number.POSITIVE_INFINITY, s;
|
|
13720
13732
|
for (let u = 0, d = 0; d < 4; ++u, ++d) {
|
|
13721
|
-
_S(u % 2 ? i : a, u % 4 >= 2), o =
|
|
13733
|
+
_S(u % 2 ? i : a, u % 4 >= 2), o = Fa.buildLayerMatrix(e);
|
|
13722
13734
|
let p = pS(e, o);
|
|
13723
13735
|
p < r && (d = 0, s = Object.assign({}, o), r = p);
|
|
13724
13736
|
}
|
|
@@ -14174,7 +14186,7 @@ function CT(e) {
|
|
|
14174
14186
|
layoutOptions: i,
|
|
14175
14187
|
nodes: a,
|
|
14176
14188
|
edges: o
|
|
14177
|
-
} = e, { findNode: r } =
|
|
14189
|
+
} = e, { findNode: r } = Fi(), { state: s, branchGroups: u, getNodeById: d, moveNode: p, commit: c } = mt(), { getNodeDepth: f, isGroupId: m, groupsByOwner: g } = u, {
|
|
14178
14190
|
isBranchEdgeId: y,
|
|
14179
14191
|
updateGroupLayout: h,
|
|
14180
14192
|
translateGroupTree: v,
|
|
@@ -14199,7 +14211,7 @@ function CT(e) {
|
|
|
14199
14211
|
let Z = ie.get(B);
|
|
14200
14212
|
return Z !== void 0 || (Z = f(B), ie.set(B, Z)), Z;
|
|
14201
14213
|
}, D = (B) => {
|
|
14202
|
-
if (!
|
|
14214
|
+
if (!Yi(B.data))
|
|
14203
14215
|
return B.parentNode;
|
|
14204
14216
|
const Z = X(B.data.ownerId);
|
|
14205
14217
|
if (!Z)
|
|
@@ -14284,7 +14296,7 @@ function CT(e) {
|
|
|
14284
14296
|
), await Wt(), h(B.id, !1), await k();
|
|
14285
14297
|
const P = q.values().toArray();
|
|
14286
14298
|
for (const B of P) {
|
|
14287
|
-
if (
|
|
14299
|
+
if (Yi(B) || B.type !== "branch") continue;
|
|
14288
14300
|
const Z = g.value.get(B.id);
|
|
14289
14301
|
Z && P.push(...Z);
|
|
14290
14302
|
}
|
|
@@ -14314,7 +14326,7 @@ function CT(e) {
|
|
|
14314
14326
|
console.warn(`Cannot find graph node '${je.id}' in ${n} phase`);
|
|
14315
14327
|
continue;
|
|
14316
14328
|
}
|
|
14317
|
-
pe.add(je.id),
|
|
14329
|
+
pe.add(je.id), Yi(je) ? z.setNode(je.id, { ...je.dimensions ?? Ue.dimensions }) : z.setNode(je.id, { ...Ue.dimensions });
|
|
14318
14330
|
}
|
|
14319
14331
|
for (const je of o.value)
|
|
14320
14332
|
!pe.has(je.source) || !pe.has(je.target) || z.setEdge(je.source, je.target, { points: [] });
|
|
@@ -14331,7 +14343,7 @@ function CT(e) {
|
|
|
14331
14343
|
throw new Error("Expected dagreGraph to be initialized");
|
|
14332
14344
|
for (const pe of S) {
|
|
14333
14345
|
const je = z.node(pe.id), Ue = U(je);
|
|
14334
|
-
P.push(Ue),
|
|
14346
|
+
P.push(Ue), Yi(pe) ? v(
|
|
14335
14347
|
pe.id,
|
|
14336
14348
|
Ue,
|
|
14337
14349
|
Ue.x + $i,
|
|
@@ -14355,7 +14367,7 @@ function CT(e) {
|
|
|
14355
14367
|
let q, L;
|
|
14356
14368
|
const G = [];
|
|
14357
14369
|
for (const X of S) {
|
|
14358
|
-
if (
|
|
14370
|
+
if (Yi(X)) {
|
|
14359
14371
|
G.push(X);
|
|
14360
14372
|
continue;
|
|
14361
14373
|
}
|
|
@@ -14451,7 +14463,7 @@ function xT({
|
|
|
14451
14463
|
flowId: n,
|
|
14452
14464
|
draggingId: i
|
|
14453
14465
|
}) {
|
|
14454
|
-
const { findNode: a } =
|
|
14466
|
+
const { findNode: a } = Fi(n), o = mt(), {
|
|
14455
14467
|
state: r,
|
|
14456
14468
|
groupMapById: s,
|
|
14457
14469
|
getNodeById: u,
|
|
@@ -14507,7 +14519,7 @@ function xT({
|
|
|
14507
14519
|
},
|
|
14508
14520
|
draggable: !t,
|
|
14509
14521
|
selectable: !1,
|
|
14510
|
-
zIndex: B *
|
|
14522
|
+
zIndex: B * io + dx
|
|
14511
14523
|
});
|
|
14512
14524
|
}
|
|
14513
14525
|
return D;
|
|
@@ -14541,7 +14553,7 @@ function xT({
|
|
|
14541
14553
|
branch: z.branch,
|
|
14542
14554
|
groupId: z.id
|
|
14543
14555
|
},
|
|
14544
|
-
zIndex: H *
|
|
14556
|
+
zIndex: H * io + px
|
|
14545
14557
|
};
|
|
14546
14558
|
D.push(ge);
|
|
14547
14559
|
}
|
|
@@ -14717,13 +14729,13 @@ function Kf() {
|
|
|
14717
14729
|
return e;
|
|
14718
14730
|
}
|
|
14719
14731
|
function IT(e) {
|
|
14720
|
-
const { readonly: t, flowId: n } = e, i =
|
|
14732
|
+
const { readonly: t, flowId: n } = e, i = Fi(n), { onNodesChange: a, onEdgesChange: o, onPaneClick: r, findEdge: s } = i, { disconnectEdge: u, commit: d, portalSelection: p, selectPortalEdge: c } = mt();
|
|
14721
14733
|
a((f) => {
|
|
14722
14734
|
f.some((m) => m.type === "select" && "selected" in m && m.selected) && c(void 0);
|
|
14723
14735
|
}), o((f) => {
|
|
14724
14736
|
const m = f.some((y) => y.type === "select" && "selected" in y && y.selected), g = p.value ? f.some((y) => y.type === "remove" && y.id === p.value) : !1;
|
|
14725
14737
|
(m || g) && c(void 0);
|
|
14726
|
-
}), r(() => c(void 0)),
|
|
14738
|
+
}), r(() => c(void 0)), ra(
|
|
14727
14739
|
"keydown",
|
|
14728
14740
|
(f) => {
|
|
14729
14741
|
if (t || f.key !== "Delete" && f.key !== "Backspace") return;
|
|
@@ -14745,9 +14757,9 @@ const ST = {
|
|
|
14745
14757
|
hover: uk,
|
|
14746
14758
|
selected: lk
|
|
14747
14759
|
};
|
|
14748
|
-
let Df,
|
|
14749
|
-
function
|
|
14750
|
-
const t = e.id === Df ? "selected" : e.id ===
|
|
14760
|
+
let Df, Mr;
|
|
14761
|
+
function Ma(e) {
|
|
14762
|
+
const t = e.id === Df ? "selected" : e.id === Mr ? "hover" : "default", n = ST[t], { markerEnd: i } = e, a = typeof i == "object" ? { ...i, color: n } : { type: i, color: n }, o = e.zIndex ?? 0, r = t === "selected" ? o + 2 : t === "hover" ? o + 1 : o;
|
|
14751
14763
|
return {
|
|
14752
14764
|
...e,
|
|
14753
14765
|
style: {
|
|
@@ -14767,7 +14779,7 @@ const [TT, OT] = Vr(
|
|
|
14767
14779
|
gaps: s = Ln.gaps
|
|
14768
14780
|
} = i, {
|
|
14769
14781
|
nodes: u = Ln.gaps.nodes
|
|
14770
|
-
} = s, d =
|
|
14782
|
+
} = s, d = Fi(n), p = mt(), c = jf(), f = ps(), { i18n: { t: m } } = ze(), {
|
|
14771
14783
|
findNode: g,
|
|
14772
14784
|
fitView: y,
|
|
14773
14785
|
deleteKeyCode: h,
|
|
@@ -14843,9 +14855,9 @@ const [TT, OT] = Vr(
|
|
|
14843
14855
|
type: "flow",
|
|
14844
14856
|
position: Pe,
|
|
14845
14857
|
data: ne,
|
|
14846
|
-
deletable: !
|
|
14858
|
+
deletable: !Ir(ne),
|
|
14847
14859
|
parentNode: Le ? Te.id : void 0,
|
|
14848
|
-
zIndex: Ve *
|
|
14860
|
+
zIndex: Ve * io + mx
|
|
14849
14861
|
};
|
|
14850
14862
|
})
|
|
14851
14863
|
), me = T(
|
|
@@ -14859,7 +14871,7 @@ const [TT, OT] = Vr(
|
|
|
14859
14871
|
throw Te || Pe.push(`source node "${ne.source}"`), ve || Pe.push(`target node "${ne.target}"`), new Error(`Missing ${Pe.join(" and ")} for edge "${ne.id}" in phase "${t}"`);
|
|
14860
14872
|
}
|
|
14861
14873
|
const Ie = Math.max(ke(ne.source), ke(ne.target)) + ye.value + 1;
|
|
14862
|
-
return
|
|
14874
|
+
return Ma({
|
|
14863
14875
|
id: ne.id,
|
|
14864
14876
|
source: ne.source,
|
|
14865
14877
|
target: ne.target,
|
|
@@ -14868,7 +14880,7 @@ const [TT, OT] = Vr(
|
|
|
14868
14880
|
markerEnd: Qu.ArrowClosed,
|
|
14869
14881
|
data: ne,
|
|
14870
14882
|
updatable: !a,
|
|
14871
|
-
zIndex: Ie *
|
|
14883
|
+
zIndex: Ie * io + fx
|
|
14872
14884
|
});
|
|
14873
14885
|
})
|
|
14874
14886
|
), te = T(() => [
|
|
@@ -14901,14 +14913,14 @@ const [TT, OT] = Vr(
|
|
|
14901
14913
|
let Ve = !1, gt = !1;
|
|
14902
14914
|
const He = [], lt = [], nt = (Ce == null ? void 0 : Ce.io) === "input" ? Le.filter((ht) => !ht.targetField) : Le.filter((ht) => !!ht.targetField);
|
|
14903
14915
|
nt.length > 0 && (Ve = !0, nt.forEach((ht) => {
|
|
14904
|
-
lt.push(
|
|
14916
|
+
lt.push(aa(ht, D)), P(ht.id, !1);
|
|
14905
14917
|
}));
|
|
14906
14918
|
const At = (Ce == null ? void 0 : Ce.io) === "input" ? Ce != null && Ce.field ? Le.filter((ht) => ht.targetField === Ce.field) : Le.filter((ht) => !!ht.targetField) : Le.filter((ht) => !ht.targetField);
|
|
14907
14919
|
if (At.length > 0) {
|
|
14908
14920
|
if (At.some((Xt) => Xt.source === ne && Xt.target === ve && Xt.targetField === (Ce == null ? void 0 : Ce.field) && Xt.sourceField === (Pe == null ? void 0 : Pe.field)))
|
|
14909
14921
|
return;
|
|
14910
14922
|
gt = !0, At.forEach((Xt) => {
|
|
14911
|
-
lt.push(
|
|
14923
|
+
lt.push(aa(Xt, D)), P(Xt.id, !1);
|
|
14912
14924
|
});
|
|
14913
14925
|
}
|
|
14914
14926
|
if (!z({
|
|
@@ -14924,7 +14936,7 @@ const [TT, OT] = Vr(
|
|
|
14924
14936
|
return;
|
|
14925
14937
|
}
|
|
14926
14938
|
if (He.push(
|
|
14927
|
-
|
|
14939
|
+
Nr(
|
|
14928
14940
|
ne,
|
|
14929
14941
|
Pe == null ? void 0 : Pe.field,
|
|
14930
14942
|
ve,
|
|
@@ -14970,8 +14982,8 @@ const [TT, OT] = Vr(
|
|
|
14970
14982
|
oe(He), O(void 0);
|
|
14971
14983
|
const lt = Z.value.get(He);
|
|
14972
14984
|
if (!lt) return;
|
|
14973
|
-
const nt = lt.position ?? { ...ne.position }, At = ne.position.x - nt.x,
|
|
14974
|
-
de(He, ne.position, At,
|
|
14985
|
+
const nt = lt.position ?? { ...ne.position }, At = ne.position.x - nt.x, zi = ne.position.y - nt.y;
|
|
14986
|
+
de(He, ne.position, At, zi);
|
|
14975
14987
|
const ht = $e.value.get(lt.ownerId);
|
|
14976
14988
|
ht && Xe(ht.id, !1);
|
|
14977
14989
|
return;
|
|
@@ -14987,7 +14999,7 @@ const [TT, OT] = Vr(
|
|
|
14987
14999
|
y: He.position.y + ne.position.y
|
|
14988
15000
|
});
|
|
14989
15001
|
}
|
|
14990
|
-
if (X(ve, Pe, !1), !
|
|
15002
|
+
if (X(ve, Pe, !1), !Ir(D(ve))) {
|
|
14991
15003
|
const He = {
|
|
14992
15004
|
x: Pe.x,
|
|
14993
15005
|
y: Pe.y,
|
|
@@ -15022,7 +15034,7 @@ const [TT, OT] = Vr(
|
|
|
15022
15034
|
Pe && Xe(Pe, !1), wn(Te), ae(), G();
|
|
15023
15035
|
}), b((ne) => {
|
|
15024
15036
|
ne.filter((Ie) => Ie.type === "select").sort((Ie, Pe) => Ie.selected === Pe.selected ? 0 : Ie.selected ? 1 : -1).forEach((Ie) => {
|
|
15025
|
-
Ue(Ie.id) || (Df = Ie.selected ? Ie.id : void 0, N((Pe) => Pe.map((Ce) => Ce.id !== Ie.id || !Ce.markerEnd ? Ce :
|
|
15037
|
+
Ue(Ie.id) || (Df = Ie.selected ? Ie.id : void 0, N((Pe) => Pe.map((Ce) => Ce.id !== Ie.id || !Ce.markerEnd ? Ce : Ma({
|
|
15026
15038
|
...Ce,
|
|
15027
15039
|
zIndex: Ie.selected ? 1 : void 0
|
|
15028
15040
|
}))));
|
|
@@ -15035,9 +15047,9 @@ const [TT, OT] = Vr(
|
|
|
15035
15047
|
}
|
|
15036
15048
|
}), ve && !_e && (_e = !0, queueMicrotask(we));
|
|
15037
15049
|
}), I(({ edge: ne }) => {
|
|
15038
|
-
Ue(ne.id) || (
|
|
15050
|
+
Ue(ne.id) || (Mr = ne.id, N((Te) => Te.map((ve) => ve.id !== ne.id ? ve : Ma(ve))));
|
|
15039
15051
|
}), R(({ edge: ne }) => {
|
|
15040
|
-
Ue(ne.id) || (
|
|
15052
|
+
Ue(ne.id) || (Mr = void 0, N((Te) => Te.map((ve) => ve.id !== ne.id ? ve : Ma(ve))));
|
|
15041
15053
|
}), _(({ edge: ne, connection: Te }) => {
|
|
15042
15054
|
Ue(ne.id) || (P(ne.id, !1), Re(Te));
|
|
15043
15055
|
});
|
|
@@ -15074,9 +15086,9 @@ const [TT, OT] = Vr(
|
|
|
15074
15086
|
const {
|
|
15075
15087
|
position: { x: ve },
|
|
15076
15088
|
dimensions: { width: Ie }
|
|
15077
|
-
} = Te, Pe = ve + Ie, { viewport: Ce, dimensions: Le, setViewport: Ve } = d, { x: gt, y: He, zoom: lt } = Ce.value, { width: nt } = Le.value, At = ve * lt + gt,
|
|
15078
|
-
if (
|
|
15079
|
-
let Xt = ht -
|
|
15089
|
+
} = Te, Pe = ve + Ie, { viewport: Ce, dimensions: Le, setViewport: Ve } = d, { x: gt, y: He, zoom: lt } = Ce.value, { width: nt } = Le.value, At = ve * lt + gt, zi = Pe * lt + gt, ht = nt - lf - u;
|
|
15090
|
+
if (zi <= ht) return;
|
|
15091
|
+
let Xt = ht - zi;
|
|
15080
15092
|
At + Xt < 0 && (Xt = -At), Xt !== 0 && Ve(
|
|
15081
15093
|
{ x: gt + Xt, y: He, zoom: lt },
|
|
15082
15094
|
{ duration: yx }
|
|
@@ -15187,7 +15199,7 @@ const MT = {
|
|
|
15187
15199
|
j("kbd", LT, W(l(t)), 1)
|
|
15188
15200
|
], 2));
|
|
15189
15201
|
}
|
|
15190
|
-
}),
|
|
15202
|
+
}), lo = /* @__PURE__ */ Oe(jT, [["__scopeId", "data-v-cc70d56b"]]), KT = ["onClick"], DT = {
|
|
15191
15203
|
key: 0,
|
|
15192
15204
|
class: "additional-count"
|
|
15193
15205
|
}, Cu = 24, qT = 16, VT = /* @__PURE__ */ be({
|
|
@@ -15265,7 +15277,7 @@ const MT = {
|
|
|
15265
15277
|
onClick: pt((k) => p(h.edgeId), ["stop"])
|
|
15266
15278
|
}, [
|
|
15267
15279
|
(w(), M(bt(h.icon), {
|
|
15268
|
-
color: l(
|
|
15280
|
+
color: l(Ui),
|
|
15269
15281
|
size: qT
|
|
15270
15282
|
}, null, 8, ["color"])),
|
|
15271
15283
|
v === 0 && m.value > 0 ? (w(), V("span", DT, " +" + W(m.value), 1)) : fe("", !0)
|
|
@@ -15276,7 +15288,7 @@ const MT = {
|
|
|
15276
15288
|
], 4)
|
|
15277
15289
|
], 34));
|
|
15278
15290
|
}
|
|
15279
|
-
}),
|
|
15291
|
+
}), La = /* @__PURE__ */ Oe(VT, [["__scopeId", "data-v-926821a3"]]), UT = /* @__PURE__ */ be({
|
|
15280
15292
|
__name: "HandleTwig",
|
|
15281
15293
|
props: {
|
|
15282
15294
|
color: {},
|
|
@@ -15285,7 +15297,7 @@ const MT = {
|
|
|
15285
15297
|
type: {}
|
|
15286
15298
|
},
|
|
15287
15299
|
setup(e) {
|
|
15288
|
-
|
|
15300
|
+
wa((n) => ({
|
|
15289
15301
|
v753622c4: n.color
|
|
15290
15302
|
}));
|
|
15291
15303
|
const t = T(() => ({
|
|
@@ -15297,7 +15309,7 @@ const MT = {
|
|
|
15297
15309
|
style: Qn(t.value)
|
|
15298
15310
|
}, null, 6));
|
|
15299
15311
|
}
|
|
15300
|
-
}),
|
|
15312
|
+
}), ja = /* @__PURE__ */ Oe(UT, [["__scopeId", "data-v-eb2bc3f2"]]), BT = /* @__PURE__ */ be({
|
|
15301
15313
|
__name: "NodeBadge",
|
|
15302
15314
|
props: {
|
|
15303
15315
|
type: {},
|
|
@@ -15305,7 +15317,7 @@ const MT = {
|
|
|
15305
15317
|
iconOnly: { type: Boolean }
|
|
15306
15318
|
},
|
|
15307
15319
|
setup(e) {
|
|
15308
|
-
|
|
15320
|
+
wa((i) => {
|
|
15309
15321
|
var a, o;
|
|
15310
15322
|
return {
|
|
15311
15323
|
b58c4842: (a = t.value.colors) == null ? void 0 : a.background,
|
|
@@ -15359,7 +15371,7 @@ const MT = {
|
|
|
15359
15371
|
removeNode: u,
|
|
15360
15372
|
propertiesPanelOpen: d,
|
|
15361
15373
|
branchGroups: p
|
|
15362
|
-
} = mt(), c = T(() =>
|
|
15374
|
+
} = mt(), c = T(() => Gi(e.data.type)), f = T(() => e.data.fields.input.length > 0), m = T(() => e.data.fields.output.length > 0), g = T(
|
|
15363
15375
|
() => f.value && i(e.data.id).every((P) => P.targetField === void 0)
|
|
15364
15376
|
), y = T(
|
|
15365
15377
|
() => m.value && a(e.data.id).every((P) => P.sourceField === void 0)
|
|
@@ -15370,7 +15382,7 @@ const MT = {
|
|
|
15370
15382
|
var P, U;
|
|
15371
15383
|
if (e.data.type === "property") {
|
|
15372
15384
|
const H = (P = e.data.config) == null ? void 0 : P.property;
|
|
15373
|
-
return
|
|
15385
|
+
return Pr(H);
|
|
15374
15386
|
}
|
|
15375
15387
|
return (U = c.value.io) == null ? void 0 : U.input;
|
|
15376
15388
|
}), _ = T(() => {
|
|
@@ -15380,7 +15392,7 @@ const MT = {
|
|
|
15380
15392
|
return xs(H);
|
|
15381
15393
|
}
|
|
15382
15394
|
return (U = c.value.io) == null ? void 0 : U.output;
|
|
15383
|
-
}), I = T(() =>
|
|
15395
|
+
}), I = T(() => Ir(e.data)), R = T(() => e.data.phase === "response"), K = T(() => e.data.phase === "request" ? mn.Left : mn.Right), $ = T(() => e.data.phase === "request" ? mn.Right : mn.Left), N = T(() => e.data.phase === "request" ? mn.Right : mn.Left), S = T(() => I.value ? t(`plugins.free-form.datakit.flow_editor.node_types.${e.data.type}.name`) : e.data.name), q = T(() => I.value ? ak : wr);
|
|
15384
15396
|
function L(P) {
|
|
15385
15397
|
return P === "input" ? R.value : !R.value;
|
|
15386
15398
|
}
|
|
@@ -15478,16 +15490,16 @@ const MT = {
|
|
|
15478
15490
|
}, ["stop"]))
|
|
15479
15491
|
}, {
|
|
15480
15492
|
items: A(() => [
|
|
15481
|
-
C(l(
|
|
15493
|
+
C(l(Va), { onClick: D }, {
|
|
15482
15494
|
default: A(() => [
|
|
15483
|
-
C(
|
|
15484
|
-
keys: l(
|
|
15495
|
+
C(lo, {
|
|
15496
|
+
keys: l(ao).duplicate,
|
|
15485
15497
|
label: l(t)("plugins.free-form.datakit.flow_editor.actions.duplicate")
|
|
15486
15498
|
}, null, 8, ["keys", "label"])
|
|
15487
15499
|
]),
|
|
15488
15500
|
_: 1
|
|
15489
15501
|
}),
|
|
15490
|
-
E.value ? (w(), M(l(
|
|
15502
|
+
E.value ? (w(), M(l(Va), {
|
|
15491
15503
|
key: 0,
|
|
15492
15504
|
onClick: z
|
|
15493
15505
|
}, {
|
|
@@ -15496,13 +15508,13 @@ const MT = {
|
|
|
15496
15508
|
]),
|
|
15497
15509
|
_: 1
|
|
15498
15510
|
})) : fe("", !0),
|
|
15499
|
-
C(l(
|
|
15511
|
+
C(l(Va), {
|
|
15500
15512
|
danger: "",
|
|
15501
15513
|
onClick: U[0] || (U[0] = (H) => l(u)(e.data.id))
|
|
15502
15514
|
}, {
|
|
15503
15515
|
default: A(() => [
|
|
15504
|
-
C(
|
|
15505
|
-
keys: l(
|
|
15516
|
+
C(lo, {
|
|
15517
|
+
keys: l(ao).delete,
|
|
15506
15518
|
label: l(t)("plugins.free-form.datakit.flow_editor.actions.delete")
|
|
15507
15519
|
}, null, 8, ["keys", "label"])
|
|
15508
15520
|
]),
|
|
@@ -15517,7 +15529,7 @@ const MT = {
|
|
|
15517
15529
|
size: "small"
|
|
15518
15530
|
}, {
|
|
15519
15531
|
default: A(() => [
|
|
15520
|
-
C(l(
|
|
15532
|
+
C(l(qi), { color: l(fa) }, null, 8, ["color"])
|
|
15521
15533
|
]),
|
|
15522
15534
|
_: 1
|
|
15523
15535
|
})
|
|
@@ -15538,7 +15550,7 @@ const MT = {
|
|
|
15538
15550
|
position: K.value,
|
|
15539
15551
|
type: "target"
|
|
15540
15552
|
}, null, 8, ["position"]),
|
|
15541
|
-
X.value.has("input") ? (w(), M(
|
|
15553
|
+
X.value.has("input") ? (w(), M(La, {
|
|
15542
15554
|
key: 0,
|
|
15543
15555
|
mode: "input",
|
|
15544
15556
|
reversed: L("input"),
|
|
@@ -15555,16 +15567,16 @@ const MT = {
|
|
|
15555
15567
|
f.value ? (w(), V(Fe, { key: 0 }, [
|
|
15556
15568
|
h.value ? fe("", !0) : (w(), M(l(js), {
|
|
15557
15569
|
key: 0,
|
|
15558
|
-
size: l(
|
|
15570
|
+
size: l(Na)
|
|
15559
15571
|
}, null, 8, ["size"])),
|
|
15560
15572
|
h.value ? (w(), M(l(Ks), {
|
|
15561
15573
|
key: 1,
|
|
15562
15574
|
color: g.value ? void 0 : l($l),
|
|
15563
|
-
size: l(
|
|
15575
|
+
size: l(Na)
|
|
15564
15576
|
}, null, 8, ["color", "size"])) : fe("", !0)
|
|
15565
15577
|
], 64)) : fe("", !0)
|
|
15566
15578
|
], 2),
|
|
15567
|
-
f.value && h.value ? (w(), M(
|
|
15579
|
+
f.value && h.value ? (w(), M(ja, {
|
|
15568
15580
|
key: 0,
|
|
15569
15581
|
color: q.value,
|
|
15570
15582
|
position: K.value,
|
|
@@ -15581,7 +15593,7 @@ const MT = {
|
|
|
15581
15593
|
position: K.value,
|
|
15582
15594
|
type: "target"
|
|
15583
15595
|
}, null, 8, ["id", "position"]),
|
|
15584
|
-
X.value.has(H.id) ? (w(), M(
|
|
15596
|
+
X.value.has(H.id) ? (w(), M(La, {
|
|
15585
15597
|
key: 0,
|
|
15586
15598
|
mode: "input",
|
|
15587
15599
|
reversed: L("input"),
|
|
@@ -15589,7 +15601,7 @@ const MT = {
|
|
|
15589
15601
|
}, null, 8, ["reversed", "targets"])) : fe("", !0),
|
|
15590
15602
|
j("div", YT, [
|
|
15591
15603
|
j("div", JT, W(H.name), 1),
|
|
15592
|
-
C(
|
|
15604
|
+
C(ja, {
|
|
15593
15605
|
color: q.value,
|
|
15594
15606
|
position: K.value,
|
|
15595
15607
|
type: ge < e.data.fields.input.length - 1 ? "trident" : "corner"
|
|
@@ -15613,16 +15625,16 @@ const MT = {
|
|
|
15613
15625
|
m.value ? (w(), V(Fe, { key: 0 }, [
|
|
15614
15626
|
v.value ? fe("", !0) : (w(), M(l(js), {
|
|
15615
15627
|
key: 0,
|
|
15616
|
-
size: l(
|
|
15628
|
+
size: l(Na)
|
|
15617
15629
|
}, null, 8, ["size"])),
|
|
15618
15630
|
v.value ? (w(), M(l(Ks), {
|
|
15619
15631
|
key: 1,
|
|
15620
15632
|
color: y.value ? void 0 : l($l),
|
|
15621
|
-
size: l(
|
|
15633
|
+
size: l(Na)
|
|
15622
15634
|
}, null, 8, ["color", "size"])) : fe("", !0)
|
|
15623
15635
|
], 64)) : fe("", !0)
|
|
15624
15636
|
], 2),
|
|
15625
|
-
m.value && v.value ? (w(), M(
|
|
15637
|
+
m.value && v.value ? (w(), M(ja, {
|
|
15626
15638
|
key: 0,
|
|
15627
15639
|
color: q.value,
|
|
15628
15640
|
position: $.value,
|
|
@@ -15634,7 +15646,7 @@ const MT = {
|
|
|
15634
15646
|
position: $.value,
|
|
15635
15647
|
type: "source"
|
|
15636
15648
|
}, null, 8, ["position"]),
|
|
15637
|
-
ie.value.has("output") ? (w(), M(
|
|
15649
|
+
ie.value.has("output") ? (w(), M(La, {
|
|
15638
15650
|
key: 0,
|
|
15639
15651
|
mode: "output",
|
|
15640
15652
|
reversed: L("output"),
|
|
@@ -15647,7 +15659,7 @@ const MT = {
|
|
|
15647
15659
|
}, [
|
|
15648
15660
|
j("div", QT, [
|
|
15649
15661
|
j("div", eO, W(H.name), 1),
|
|
15650
|
-
C(
|
|
15662
|
+
C(ja, {
|
|
15651
15663
|
color: q.value,
|
|
15652
15664
|
position: $.value,
|
|
15653
15665
|
type: ge < e.data.fields.output.length - 1 ? "trident" : "corner"
|
|
@@ -15658,7 +15670,7 @@ const MT = {
|
|
|
15658
15670
|
position: $.value,
|
|
15659
15671
|
type: "source"
|
|
15660
15672
|
}, null, 8, ["id", "position"]),
|
|
15661
|
-
ie.value.has(H.id) ? (w(), M(
|
|
15673
|
+
ie.value.has(H.id) ? (w(), M(La, {
|
|
15662
15674
|
key: 0,
|
|
15663
15675
|
mode: "output",
|
|
15664
15676
|
reversed: L("output"),
|
|
@@ -15742,9 +15754,9 @@ const MT = {
|
|
|
15742
15754
|
} = y;
|
|
15743
15755
|
function J(B) {
|
|
15744
15756
|
var he;
|
|
15745
|
-
const Z = (he = B.dataTransfer) == null ? void 0 : he.types.find((Ne) => Ne.startsWith(`${
|
|
15757
|
+
const Z = (he = B.dataTransfer) == null ? void 0 : he.types.find((Ne) => Ne.startsWith(`${ia}/`));
|
|
15746
15758
|
if (Z)
|
|
15747
|
-
return Z.replace(`${
|
|
15759
|
+
return Z.replace(`${ia}/`, "");
|
|
15748
15760
|
}
|
|
15749
15761
|
function D(B) {
|
|
15750
15762
|
var Z;
|
|
@@ -15762,7 +15774,7 @@ const MT = {
|
|
|
15762
15774
|
function P(B) {
|
|
15763
15775
|
var Ee;
|
|
15764
15776
|
if (e.mode !== "edit") return;
|
|
15765
|
-
const Z = (Ee = B.dataTransfer) == null ? void 0 : Ee.getData(
|
|
15777
|
+
const Z = (Ee = B.dataTransfer) == null ? void 0 : Ee.getData(ia);
|
|
15766
15778
|
if (!Z) return;
|
|
15767
15779
|
B.preventDefault();
|
|
15768
15780
|
const he = JSON.parse(Z);
|
|
@@ -15793,9 +15805,9 @@ const MT = {
|
|
|
15793
15805
|
];
|
|
15794
15806
|
return e.mode === "edit" && B.push({ name: "auto_layout", icon: Wp, action: U }), B;
|
|
15795
15807
|
});
|
|
15796
|
-
e.mode === "edit" && (
|
|
15808
|
+
e.mode === "edit" && (ra("dragstart", (B) => {
|
|
15797
15809
|
J(B) && L();
|
|
15798
|
-
}),
|
|
15810
|
+
}), ra("dragend", () => {
|
|
15799
15811
|
G();
|
|
15800
15812
|
}));
|
|
15801
15813
|
async function ge() {
|
|
@@ -15890,7 +15902,7 @@ const MT = {
|
|
|
15890
15902
|
resizable: { type: Boolean }
|
|
15891
15903
|
},
|
|
15892
15904
|
setup(e) {
|
|
15893
|
-
const { t } = kt("en-us", Ct), n = Y(!1), i = Y(!1), { responsePanelCollapsed: a } = $o(), { state: o, configNodeCounts: r, clearPendingLayout: s, setPendingFitView: u, commit: d, clear: p, portalSelection: c } = mt(), f = Kr(), m = `${f}-request`, g = `${f}-response`, y =
|
|
15905
|
+
const { t } = kt("en-us", Ct), n = Y(!1), i = Y(!1), { responsePanelCollapsed: a } = $o(), { state: o, configNodeCounts: r, clearPendingLayout: s, setPendingFitView: u, commit: d, clear: p, portalSelection: c } = mt(), f = Kr(), m = `${f}-request`, g = `${f}-response`, y = Fi(m), h = Fi(g);
|
|
15894
15906
|
function v(Q, le) {
|
|
15895
15907
|
const { onPaneClick: Ee, onNodesChange: $e, onEdgesChange: pe, getSelectedNodes: je, getSelectedEdges: Ue } = Q, { removeSelectedElements: Xe } = le;
|
|
15896
15908
|
function de(ke) {
|
|
@@ -16145,7 +16157,7 @@ const MT = {
|
|
|
16145
16157
|
default: A(() => [
|
|
16146
16158
|
(w(), M(bt(m), {
|
|
16147
16159
|
decorative: "",
|
|
16148
|
-
size: l(
|
|
16160
|
+
size: l(ta)
|
|
16149
16161
|
}, null, 8, ["size"]))
|
|
16150
16162
|
]),
|
|
16151
16163
|
_: 2
|
|
@@ -16176,11 +16188,11 @@ const MT = {
|
|
|
16176
16188
|
l(o) ? (w(), M(l(Jp), {
|
|
16177
16189
|
key: 0,
|
|
16178
16190
|
decorative: "",
|
|
16179
|
-
size: l(
|
|
16191
|
+
size: l(ta)
|
|
16180
16192
|
}, null, 8, ["size"])) : (w(), M(l(Xp), {
|
|
16181
16193
|
key: 1,
|
|
16182
16194
|
decorative: "",
|
|
16183
|
-
size: l(
|
|
16195
|
+
size: l(ta)
|
|
16184
16196
|
}, null, 8, ["size"]))
|
|
16185
16197
|
]),
|
|
16186
16198
|
_: 1
|
|
@@ -16200,7 +16212,7 @@ const MT = {
|
|
|
16200
16212
|
setup(e) {
|
|
16201
16213
|
const { t } = kt("en-us", Ct), { modalOpen: n, undo: i, redo: a, canUndo: o, canRedo: r, load: s } = mt();
|
|
16202
16214
|
function u(c) {
|
|
16203
|
-
const f =
|
|
16215
|
+
const f = to[c], m = jn.load(f, {
|
|
16204
16216
|
schema: Oi,
|
|
16205
16217
|
json: !0
|
|
16206
16218
|
});
|
|
@@ -16232,8 +16244,8 @@ const MT = {
|
|
|
16232
16244
|
j("div", xO, [
|
|
16233
16245
|
C(l(vn), { "z-index": 1e4 }, {
|
|
16234
16246
|
content: A(() => [
|
|
16235
|
-
C(
|
|
16236
|
-
keys: l(
|
|
16247
|
+
C(lo, {
|
|
16248
|
+
keys: l(ao).undo,
|
|
16237
16249
|
label: l(t)("plugins.free-form.datakit.flow_editor.actions.undo"),
|
|
16238
16250
|
reverse: ""
|
|
16239
16251
|
}, null, 8, ["keys", "label"])
|
|
@@ -16255,8 +16267,8 @@ const MT = {
|
|
|
16255
16267
|
}),
|
|
16256
16268
|
C(l(vn), { "z-index": 1e4 }, {
|
|
16257
16269
|
content: A(() => [
|
|
16258
|
-
C(
|
|
16259
|
-
keys: l(
|
|
16270
|
+
C(lo, {
|
|
16271
|
+
keys: l(ao).redo,
|
|
16260
16272
|
label: l(t)("plugins.free-form.datakit.flow_editor.actions.redo"),
|
|
16261
16273
|
reverse: ""
|
|
16262
16274
|
}, null, 8, ["keys", "label"])
|
|
@@ -16299,7 +16311,7 @@ const MT = {
|
|
|
16299
16311
|
width: 240
|
|
16300
16312
|
}, {
|
|
16301
16313
|
items: A(() => [
|
|
16302
|
-
(w(!0), V(Fe, null, Be(l(
|
|
16314
|
+
(w(!0), V(Fe, null, Be(l(to), (m, g) => (w(), M(l(Va), {
|
|
16303
16315
|
key: g,
|
|
16304
16316
|
onClick: (y) => u(g)
|
|
16305
16317
|
}, {
|
|
@@ -16346,7 +16358,7 @@ const MT = {
|
|
|
16346
16358
|
},
|
|
16347
16359
|
emits: ["dragstart"],
|
|
16348
16360
|
setup(e, { emit: t }) {
|
|
16349
|
-
|
|
16361
|
+
wa((u) => ({
|
|
16350
16362
|
f628e926: l(o),
|
|
16351
16363
|
v4a9b9f82: l(r)
|
|
16352
16364
|
}));
|
|
@@ -16416,7 +16428,7 @@ const MT = {
|
|
|
16416
16428
|
anchor: _
|
|
16417
16429
|
}
|
|
16418
16430
|
};
|
|
16419
|
-
(R = s.dataTransfer) == null || R.setData(
|
|
16431
|
+
(R = s.dataTransfer) == null || R.setData(ia, JSON.stringify(I)), (K = s.dataTransfer) == null || K.setData(`${ia}/${u}`, u), ($ = s.dataTransfer) == null || $.setDragImage(
|
|
16420
16432
|
v,
|
|
16421
16433
|
_.offsetX,
|
|
16422
16434
|
_.offsetY
|
|
@@ -16526,7 +16538,7 @@ const BO = /* @__PURE__ */ be({
|
|
|
16526
16538
|
},
|
|
16527
16539
|
emits: ["proceed", "cancel"],
|
|
16528
16540
|
setup(e, { emit: t }) {
|
|
16529
|
-
const n = t, { i18n: { t: i } } = Je.useI18n(), a = $t(
|
|
16541
|
+
const n = t, { i18n: { t: i } } = Je.useI18n(), a = $t(Ea), o = Y(e.secretName || ""), r = Y(""), s = T(() => o.value.trim() ? e.validateName(o.value.trim(), e.isEditing) === void 0 : !1), u = T(() => !s.value), d = () => {
|
|
16530
16542
|
const m = o.value.trim(), g = e.validateName(m, e.isEditing);
|
|
16531
16543
|
return r.value = g || "", g === void 0;
|
|
16532
16544
|
}, p = () => {
|
|
@@ -16651,7 +16663,7 @@ const BO = /* @__PURE__ */ be({
|
|
|
16651
16663
|
R.key ? (w(), V("div", WO, [
|
|
16652
16664
|
j("div", YO, [
|
|
16653
16665
|
C(l(Hu), {
|
|
16654
|
-
color: l(
|
|
16666
|
+
color: l(Ui),
|
|
16655
16667
|
size: 16
|
|
16656
16668
|
}, null, 8, ["color"]),
|
|
16657
16669
|
j("div", JO, W(R.key), 1)
|
|
@@ -16682,7 +16694,7 @@ const BO = /* @__PURE__ */ be({
|
|
|
16682
16694
|
icon: ""
|
|
16683
16695
|
}, {
|
|
16684
16696
|
default: A(() => [
|
|
16685
|
-
C(l(
|
|
16697
|
+
C(l(qi), { color: l(fa) }, null, 8, ["color"])
|
|
16686
16698
|
]),
|
|
16687
16699
|
_: 1
|
|
16688
16700
|
})
|
|
@@ -16784,8 +16796,8 @@ const e$ = { class: "dk-cache-panel" }, t$ = { class: "title" }, n$ = {
|
|
|
16784
16796
|
e.strategy ? (w(), V("div", n$, [
|
|
16785
16797
|
j("div", i$, [
|
|
16786
16798
|
C(l(tm), {
|
|
16787
|
-
color: l(
|
|
16788
|
-
size: l(
|
|
16799
|
+
color: l(Ui),
|
|
16800
|
+
size: l(Sa)
|
|
16789
16801
|
}, null, 8, ["color", "size"]),
|
|
16790
16802
|
j("div", a$, W(e.strategy), 1)
|
|
16791
16803
|
]),
|
|
@@ -16813,7 +16825,7 @@ const e$ = { class: "dk-cache-panel" }, t$ = { class: "title" }, n$ = {
|
|
|
16813
16825
|
icon: ""
|
|
16814
16826
|
}, {
|
|
16815
16827
|
default: A(() => [
|
|
16816
|
-
C(l(
|
|
16828
|
+
C(l(qi), { color: l(fa) }, null, 8, ["color"])
|
|
16817
16829
|
]),
|
|
16818
16830
|
_: 1
|
|
16819
16831
|
})
|
|
@@ -17080,7 +17092,7 @@ function Bf(e, t, n) {
|
|
|
17080
17092
|
}
|
|
17081
17093
|
});
|
|
17082
17094
|
}
|
|
17083
|
-
const k$ = F.enum(Jd), C$ = F.enum(
|
|
17095
|
+
const k$ = F.enum(Jd), C$ = F.enum(Bi), Gf = (e) => Bi.includes(e), $s = F.enum(Xd), Iu = $s.options;
|
|
17084
17096
|
F.union([
|
|
17085
17097
|
$s,
|
|
17086
17098
|
k$
|
|
@@ -17088,17 +17100,17 @@ F.union([
|
|
|
17088
17100
|
const E$ = /^[A-Za-z_][A-Za-z0-9_-]{0,254}$/, zf = F.string().min(1).max(255).regex(
|
|
17089
17101
|
E$,
|
|
17090
17102
|
"Invalid node name (snake_case / kebab-case only)"
|
|
17091
|
-
).refine((e) => !Gf(e), "Name clashes with reserved implicit node").brand(),
|
|
17103
|
+
).refine((e) => !Gf(e), "Name clashes with reserved implicit node").brand(), uo = F.union([
|
|
17092
17104
|
C$,
|
|
17093
17105
|
zf
|
|
17094
17106
|
]), x$ = F.string().min(1).brand(), A$ = ["then", "else"];
|
|
17095
17107
|
F.enum(A$);
|
|
17096
17108
|
const I$ = F.string().min(1).max(255).refine((e) => {
|
|
17097
|
-
if (
|
|
17109
|
+
if (uo.safeParse(e).success) return !0;
|
|
17098
17110
|
const t = e.match(/^([^.]+)\.([^.]+)$/);
|
|
17099
17111
|
if (!t) return !1;
|
|
17100
17112
|
const [, n, i] = t;
|
|
17101
|
-
return
|
|
17113
|
+
return uo.safeParse(n).success && x$.safeParse(i).success;
|
|
17102
17114
|
}, 'Invalid connection, expected "NODE" or "NODE.FIELD"'), st = I$.nullish(), S$ = F.object({
|
|
17103
17115
|
body: st,
|
|
17104
17116
|
headers: st,
|
|
@@ -17269,8 +17281,8 @@ const I$ = F.string().min(1).max(255).refine((e) => {
|
|
|
17269
17281
|
ttl: F.number().int().gt(0).nullish()
|
|
17270
17282
|
}).strict(), D$ = Nn.safeExtend({
|
|
17271
17283
|
type: F.literal("branch"),
|
|
17272
|
-
then: F.array(
|
|
17273
|
-
else: F.array(
|
|
17284
|
+
then: F.array(uo).nullish(),
|
|
17285
|
+
else: F.array(uo).nullish()
|
|
17274
17286
|
}).strict(), q$ = $$.pipe(
|
|
17275
17287
|
F.discriminatedUnion("type", [
|
|
17276
17288
|
P$,
|
|
@@ -17370,9 +17382,9 @@ F.object({
|
|
|
17370
17382
|
debug: F.boolean().default(!1).nullish(),
|
|
17371
17383
|
resources: W$.nullish()
|
|
17372
17384
|
}).strict().superRefine((e, t) => {
|
|
17373
|
-
Bf(e,
|
|
17385
|
+
Bf(e, Bi, t);
|
|
17374
17386
|
});
|
|
17375
|
-
const Su = $s.options,
|
|
17387
|
+
const Su = $s.options, Lr = F.string().min(1).refine((e) => !e.includes("."), "Invalid node name").refine(
|
|
17376
17388
|
(e) => !Gf(e),
|
|
17377
17389
|
"Node name conflicts with reserved implicit node"
|
|
17378
17390
|
), _t = F.string().refine((e) => {
|
|
@@ -17403,7 +17415,7 @@ function J$(e) {
|
|
|
17403
17415
|
}
|
|
17404
17416
|
const Rn = F.object({
|
|
17405
17417
|
type: F.string(),
|
|
17406
|
-
name:
|
|
17418
|
+
name: Lr,
|
|
17407
17419
|
input: _t.nullish(),
|
|
17408
17420
|
inputs: F.record(F.string(), _t.nullish()).nullish(),
|
|
17409
17421
|
output: _t.nullish(),
|
|
@@ -17490,8 +17502,8 @@ const Rn = F.object({
|
|
|
17490
17502
|
ttl: F.union([F.number(), F.string()]).nullish()
|
|
17491
17503
|
}).strict(), rP = Rn.safeExtend({
|
|
17492
17504
|
type: F.literal("branch"),
|
|
17493
|
-
then: F.array(
|
|
17494
|
-
else: F.array(
|
|
17505
|
+
then: F.array(Lr).nullish(),
|
|
17506
|
+
else: F.array(Lr).nullish()
|
|
17495
17507
|
}).strict(), sP = X$.pipe(
|
|
17496
17508
|
F.discriminatedUnion("type", [
|
|
17497
17509
|
Z$,
|
|
@@ -17518,7 +17530,7 @@ const Rn = F.object({
|
|
|
17518
17530
|
debug: F.boolean().nullish(),
|
|
17519
17531
|
resources: fP.nullish()
|
|
17520
17532
|
}).strict().superRefine((e, t) => {
|
|
17521
|
-
!e || !Array.isArray(e.nodes) || Bf(e,
|
|
17533
|
+
!e || !Array.isArray(e.nodes) || Bf(e, Bi, t);
|
|
17522
17534
|
}).nullish(), Tu = /* @__PURE__ */ be({
|
|
17523
17535
|
__name: "InputsRecordField",
|
|
17524
17536
|
props: {
|
|
@@ -17734,13 +17746,13 @@ const Rn = F.object({
|
|
|
17734
17746
|
setup(e) {
|
|
17735
17747
|
return (t, n) => (w(), V("span", yP, [
|
|
17736
17748
|
(w(), M(bt(l(St)[e.item.type].icon), {
|
|
17737
|
-
color: l(
|
|
17738
|
-
size: l(
|
|
17749
|
+
color: l(Ui),
|
|
17750
|
+
size: l(ta)
|
|
17739
17751
|
}, null, 8, ["color", "size"])),
|
|
17740
17752
|
xe(" " + W(e.item.label), 1)
|
|
17741
17753
|
]));
|
|
17742
17754
|
}
|
|
17743
|
-
}),
|
|
17755
|
+
}), co = /* @__PURE__ */ Oe(_P, [["__scopeId", "data-v-78ea8dff"]]), bP = {
|
|
17744
17756
|
key: 1,
|
|
17745
17757
|
class: "dk-inputs-field-or"
|
|
17746
17758
|
}, wP = /* @__PURE__ */ be({
|
|
@@ -17795,7 +17807,7 @@ const Rn = F.object({
|
|
|
17795
17807
|
}, {
|
|
17796
17808
|
"item-label": A((g) => [
|
|
17797
17809
|
Ge(f.$slots, "item-label", Ht(Jt(g)), () => [
|
|
17798
|
-
C(
|
|
17810
|
+
C(co, { item: g }, null, 8, ["item"])
|
|
17799
17811
|
], !0)
|
|
17800
17812
|
]),
|
|
17801
17813
|
_: 3
|
|
@@ -17824,7 +17836,7 @@ const Rn = F.object({
|
|
|
17824
17836
|
"onRename:field": c
|
|
17825
17837
|
}), {
|
|
17826
17838
|
"item-label": A((g) => [
|
|
17827
|
-
C(
|
|
17839
|
+
C(co, { item: g }, null, 8, ["item"])
|
|
17828
17840
|
]),
|
|
17829
17841
|
_: 1
|
|
17830
17842
|
}, 16, ["items", "key-order"])) : fe("", !0)
|
|
@@ -17981,7 +17993,7 @@ function sn(...e) {
|
|
|
17981
17993
|
}
|
|
17982
17994
|
};
|
|
17983
17995
|
}
|
|
17984
|
-
function
|
|
17996
|
+
function Di(e) {
|
|
17985
17997
|
const { i18n: { t } } = ze(), n = () => e ? typeof e == "string" ? e : t("plugins.free-form.datakit.flow_editor.node_properties.errors.not_empty", e) : "Field is required";
|
|
17986
17998
|
return function(a) {
|
|
17987
17999
|
if (a == null || typeof a == "string" && a.trim() === "") return n();
|
|
@@ -18091,7 +18103,7 @@ function IP() {
|
|
|
18091
18103
|
function ep(e) {
|
|
18092
18104
|
const { i18n: { t } } = ze(), n = { fieldName: t("plugins.free-form.datakit.flow_editor.node_properties.name") };
|
|
18093
18105
|
return sn(
|
|
18094
|
-
|
|
18106
|
+
Di(n),
|
|
18095
18107
|
Zf("identifier", n),
|
|
18096
18108
|
IP(),
|
|
18097
18109
|
xP(e, n)
|
|
@@ -18104,7 +18116,7 @@ function SP(e) {
|
|
|
18104
18116
|
fieldName: t(a === "input" ? "plugins.free-form.datakit.flow_editor.node_properties.input_name.label" : "plugins.free-form.datakit.flow_editor.node_properties.output_value.value_name")
|
|
18105
18117
|
};
|
|
18106
18118
|
return sn(
|
|
18107
|
-
|
|
18119
|
+
Di(s),
|
|
18108
18120
|
AP(a, n(e), r)
|
|
18109
18121
|
)(o);
|
|
18110
18122
|
};
|
|
@@ -18255,15 +18267,15 @@ function dn(e, t) {
|
|
|
18255
18267
|
nodeId: U,
|
|
18256
18268
|
fieldId: H
|
|
18257
18269
|
} = Yl(D), ge = E("input", J).id, B = [];
|
|
18258
|
-
R.value && (B.push(
|
|
18270
|
+
R.value && (B.push(aa(R.value, a)), d(R.value.id, !1));
|
|
18259
18271
|
const Z = K.value.find((oe) => oe.targetField === P);
|
|
18260
|
-
Z && (B.push(
|
|
18272
|
+
Z && (B.push(aa(Z, a)), d(Z.id, !1)), p({
|
|
18261
18273
|
source: U,
|
|
18262
18274
|
sourceField: H,
|
|
18263
18275
|
target: e,
|
|
18264
18276
|
targetField: ge
|
|
18265
18277
|
}, !1);
|
|
18266
|
-
const he =
|
|
18278
|
+
const he = Nr(
|
|
18267
18279
|
U,
|
|
18268
18280
|
H,
|
|
18269
18281
|
e,
|
|
@@ -18284,7 +18296,7 @@ function dn(e, t) {
|
|
|
18284
18296
|
}
|
|
18285
18297
|
const z = [];
|
|
18286
18298
|
for (const B of K.value)
|
|
18287
|
-
z.push(
|
|
18299
|
+
z.push(aa(B, a)), d(B.id, !1);
|
|
18288
18300
|
R.value && d(R.value.id, !1);
|
|
18289
18301
|
const { nodeId: P, fieldId: U } = Yl(J);
|
|
18290
18302
|
p({
|
|
@@ -18294,7 +18306,7 @@ function dn(e, t) {
|
|
|
18294
18306
|
targetField: void 0
|
|
18295
18307
|
// input does not have a field
|
|
18296
18308
|
}, !1);
|
|
18297
|
-
const H =
|
|
18309
|
+
const H = Nr(
|
|
18298
18310
|
P,
|
|
18299
18311
|
U,
|
|
18300
18312
|
e,
|
|
@@ -18313,12 +18325,12 @@ function dn(e, t) {
|
|
|
18313
18325
|
...n.value.edges,
|
|
18314
18326
|
{ source: J, target: e }
|
|
18315
18327
|
];
|
|
18316
|
-
return
|
|
18328
|
+
return Or(no(D));
|
|
18317
18329
|
}, q = T(() => {
|
|
18318
18330
|
var D, z;
|
|
18319
18331
|
const J = [];
|
|
18320
18332
|
for (const P of n.value.nodes)
|
|
18321
|
-
if ((D =
|
|
18333
|
+
if ((D = Gi(P.type).io) != null && D.output && P.fields.output && P.id !== e && !(P.type === "property" && !xs((z = P.config) == null ? void 0 : z.property)) && !S(P.id) && !(h.value.phase === "request" && P.phase === "response") && !(P.type === "vault" && P.fields.output.length === 0)) {
|
|
18322
18334
|
J.push({ value: P.id, label: P.name, type: P.type });
|
|
18323
18335
|
for (const H of P.fields.output)
|
|
18324
18336
|
J.push({
|
|
@@ -18373,10 +18385,10 @@ function fn(e) {
|
|
|
18373
18385
|
return kP;
|
|
18374
18386
|
}
|
|
18375
18387
|
try {
|
|
18376
|
-
const i = t().fields.find((d) =>
|
|
18388
|
+
const i = t().fields.find((d) => Ha(d, "config"));
|
|
18377
18389
|
if (!i)
|
|
18378
18390
|
throw new Error("Config field not found in schema.");
|
|
18379
|
-
const o = i.config.fields.find((d) =>
|
|
18391
|
+
const o = i.config.fields.find((d) => Ha(d, "nodes"));
|
|
18380
18392
|
if (!o)
|
|
18381
18393
|
throw new Error("Nodes field not found in config schema.");
|
|
18382
18394
|
const u = o.nodes.elements.subschema_definitions[e];
|
|
@@ -18449,7 +18461,7 @@ const Fn = /* @__PURE__ */ be({
|
|
|
18449
18461
|
} = bi({
|
|
18450
18462
|
validationConfig: {
|
|
18451
18463
|
url: sn(
|
|
18452
|
-
|
|
18464
|
+
Di({ fieldName: "URL" }),
|
|
18453
18465
|
Zf("url", { fieldName: "URL" })
|
|
18454
18466
|
),
|
|
18455
18467
|
timeout: sn(
|
|
@@ -18622,7 +18634,7 @@ const Fn = /* @__PURE__ */ be({
|
|
|
18622
18634
|
} = bi({
|
|
18623
18635
|
validationConfig: {
|
|
18624
18636
|
jq: sn(
|
|
18625
|
-
|
|
18637
|
+
Di({ fieldName: b }),
|
|
18626
18638
|
An(1, 10240, { fieldName: b })
|
|
18627
18639
|
)
|
|
18628
18640
|
},
|
|
@@ -18856,7 +18868,7 @@ function MP(e) {
|
|
|
18856
18868
|
typeof i == "object" && i !== null ? t[n] = JSON.stringify(i) : t[n] = String(i);
|
|
18857
18869
|
return t;
|
|
18858
18870
|
}
|
|
18859
|
-
function
|
|
18871
|
+
function Ka(e) {
|
|
18860
18872
|
const t = {};
|
|
18861
18873
|
for (const [n, i] of Object.entries(e))
|
|
18862
18874
|
if (i != null) {
|
|
@@ -18921,7 +18933,7 @@ const jP = /* @__PURE__ */ be({
|
|
|
18921
18933
|
const b = E !== void 0;
|
|
18922
18934
|
if (i(e.nodeId, "output", x, !b), b) {
|
|
18923
18935
|
const _ = {
|
|
18924
|
-
values:
|
|
18936
|
+
values: Ka({ ...g.value.values, [x]: E })
|
|
18925
18937
|
};
|
|
18926
18938
|
r(e.nodeId, _);
|
|
18927
18939
|
}
|
|
@@ -18931,7 +18943,7 @@ const jP = /* @__PURE__ */ be({
|
|
|
18931
18943
|
const b = Vn(c.value, "output", x);
|
|
18932
18944
|
if (!b) throw new Error("No field found to rename");
|
|
18933
18945
|
const _ = {
|
|
18934
|
-
values:
|
|
18946
|
+
values: Ka(LP(g.value.values ?? {}, x, E))
|
|
18935
18947
|
};
|
|
18936
18948
|
r(e.nodeId, _, !1), a(e.nodeId, b.id, E);
|
|
18937
18949
|
}
|
|
@@ -18942,7 +18954,7 @@ const jP = /* @__PURE__ */ be({
|
|
|
18942
18954
|
if (!E) throw new Error("No field found to delete");
|
|
18943
18955
|
o((_ = c.value) == null ? void 0 : _.id, E.id, !0, !1);
|
|
18944
18956
|
const b = {
|
|
18945
|
-
values:
|
|
18957
|
+
values: Ka({ ...g.value.values })
|
|
18946
18958
|
};
|
|
18947
18959
|
delete b.values[x], r(e.nodeId, b);
|
|
18948
18960
|
}
|
|
@@ -18951,7 +18963,7 @@ const jP = /* @__PURE__ */ be({
|
|
|
18951
18963
|
const b = { ...g.value.values };
|
|
18952
18964
|
b[x] = E;
|
|
18953
18965
|
const _ = {
|
|
18954
|
-
values:
|
|
18966
|
+
values: Ka(b)
|
|
18955
18967
|
};
|
|
18956
18968
|
r(e.nodeId, _);
|
|
18957
18969
|
}
|
|
@@ -18989,11 +19001,11 @@ const jP = /* @__PURE__ */ be({
|
|
|
18989
19001
|
},
|
|
18990
19002
|
emits: ["update:model-value", "update:property-key"],
|
|
18991
19003
|
setup(e, { emit: t }) {
|
|
18992
|
-
const { i18n: { t: n } } = ze(), i = e, a = t, { formData: o } = at(), r = Y(
|
|
19004
|
+
const { i18n: { t: n } } = ze(), i = e, a = t, { formData: o } = at(), r = Y(Xi(o.property)), s = T(() => ba(o.property)), u = Y($r(o.property)), d = T(() => o.property ?? ""), p = T(() => Object.entries(Yn).map(([m]) => {
|
|
18993
19005
|
var h;
|
|
18994
|
-
const g =
|
|
19006
|
+
const g = ba(m) ? (h = o.property) == null ? void 0 : h.startsWith(m.replace(Ki, "")) : o.property === m;
|
|
18995
19007
|
return {
|
|
18996
|
-
label: g && u.value ? m.replace(
|
|
19008
|
+
label: g && u.value ? m.replace(Ki, u.value) : m,
|
|
18997
19009
|
value: m,
|
|
18998
19010
|
selected: g
|
|
18999
19011
|
};
|
|
@@ -19006,10 +19018,10 @@ const jP = /* @__PURE__ */ be({
|
|
|
19006
19018
|
g && (o.property = g + m, i.validators.key.handleChange(o.property), a("update:property-key", o.property));
|
|
19007
19019
|
}
|
|
19008
19020
|
function f(m) {
|
|
19009
|
-
r.value !==
|
|
19021
|
+
r.value !== Xi(m == null ? void 0 : m.value) && (o.property = (m == null ? void 0 : m.value) || null, r.value = Xi(o.property), i.validators.property.handleBlur(() => o.property), a("update:model-value", o.property));
|
|
19010
19022
|
}
|
|
19011
19023
|
return De(() => o.property, (m) => {
|
|
19012
|
-
u.value =
|
|
19024
|
+
u.value = $r(m), r.value = Xi(m);
|
|
19013
19025
|
}), (m, g) => {
|
|
19014
19026
|
const y = re("KBadge"), h = re("KSelect"), v = re("KInput");
|
|
19015
19027
|
return w(), V(Fe, null, [
|
|
@@ -19092,28 +19104,28 @@ const jP = /* @__PURE__ */ be({
|
|
|
19092
19104
|
nameValidator: m,
|
|
19093
19105
|
toggleNodeValid: g,
|
|
19094
19106
|
fieldNameValidator: y
|
|
19095
|
-
} = dn(e.nodeId, () => t.value.getValue()), h = T(() =>
|
|
19107
|
+
} = dn(e.nodeId, () => t.value.getValue()), h = T(() => Pr(r.value.property));
|
|
19096
19108
|
function v(x) {
|
|
19097
19109
|
var b;
|
|
19098
19110
|
const E = (b = n.value) == null ? void 0 : b.id;
|
|
19099
19111
|
if (!E)
|
|
19100
19112
|
throw new Error("Expected selectedNode to be defined");
|
|
19101
|
-
xs(x) || a(E, !1),
|
|
19113
|
+
xs(x) || a(E, !1), Pr(x) || i(E, !1), u();
|
|
19102
19114
|
}
|
|
19103
19115
|
const {
|
|
19104
19116
|
fields: k
|
|
19105
19117
|
} = bi({
|
|
19106
19118
|
// Dynamic validation configuration - use function form
|
|
19107
19119
|
validationConfig: () => ({
|
|
19108
|
-
property:
|
|
19120
|
+
property: Di({ fieldName: "Property" }),
|
|
19109
19121
|
// Conditionally add key validation when property has key
|
|
19110
|
-
key:
|
|
19122
|
+
key: ba(r.value.property) ? Di({ fieldName: "Key" }) : () => {
|
|
19111
19123
|
}
|
|
19112
19124
|
// No validation when not needed
|
|
19113
19125
|
}),
|
|
19114
19126
|
getValidationData: () => ({
|
|
19115
19127
|
property: r.value.property,
|
|
19116
|
-
key:
|
|
19128
|
+
key: $r(r.value.property)
|
|
19117
19129
|
}),
|
|
19118
19130
|
toggleNodeValid: g
|
|
19119
19131
|
});
|
|
@@ -19224,7 +19236,7 @@ function zP(e) {
|
|
|
19224
19236
|
commit: o
|
|
19225
19237
|
} = mt(), { i18n: { t: r } } = ze(), s = Kf(), u = ps(), d = T(() => {
|
|
19226
19238
|
var x;
|
|
19227
|
-
const v = { ...t.formData.value }, k =
|
|
19239
|
+
const v = { ...t.formData.value }, k = _a(((x = t.currentNode.value) == null ? void 0 : x.type) || "branch");
|
|
19228
19240
|
for (const E of k)
|
|
19229
19241
|
(!(E in v) || v[E] == null) && (v[E] = []);
|
|
19230
19242
|
return v;
|
|
@@ -19265,7 +19277,7 @@ function zP(e) {
|
|
|
19265
19277
|
}
|
|
19266
19278
|
async function y(v, k) {
|
|
19267
19279
|
const x = t.currentNode.value, E = c(k), b = a.prepareMembers(x.id, v, E), _ = a.getMembers(x.id, v);
|
|
19268
|
-
if (
|
|
19280
|
+
if (Sr(_, b))
|
|
19269
19281
|
return !0;
|
|
19270
19282
|
const I = b.filter((S) => !_.includes(S));
|
|
19271
19283
|
for (const S of I)
|
|
@@ -19341,7 +19353,7 @@ const HP = /* @__PURE__ */ be({
|
|
|
19341
19353
|
onUpdate: h[0] || (h[0] = (v) => g("then", v))
|
|
19342
19354
|
}, {
|
|
19343
19355
|
"item-label": A((v) => [
|
|
19344
|
-
C(
|
|
19356
|
+
C(co, { item: v }, null, 8, ["item"])
|
|
19345
19357
|
]),
|
|
19346
19358
|
_: 1
|
|
19347
19359
|
}, 8, ["items"]),
|
|
@@ -19353,7 +19365,7 @@ const HP = /* @__PURE__ */ be({
|
|
|
19353
19365
|
onUpdate: h[1] || (h[1] = (v) => g("else", v))
|
|
19354
19366
|
}, {
|
|
19355
19367
|
"item-label": A((v) => [
|
|
19356
|
-
C(
|
|
19368
|
+
C(co, { item: v }, null, 8, ["item"])
|
|
19357
19369
|
]),
|
|
19358
19370
|
_: 1
|
|
19359
19371
|
}, 8, ["items"]),
|
|
@@ -19750,8 +19762,8 @@ const HP = /* @__PURE__ */ be({
|
|
|
19750
19762
|
o.value ? (w(), V("div", ZP, [
|
|
19751
19763
|
j("span", QP, [
|
|
19752
19764
|
C(l(Wu), {
|
|
19753
|
-
color: l(
|
|
19754
|
-
size: l(
|
|
19765
|
+
color: l(Ui),
|
|
19766
|
+
size: l(ta)
|
|
19755
19767
|
}, null, 8, ["color", "size"]),
|
|
19756
19768
|
j("span", eN, W(r.value), 1)
|
|
19757
19769
|
]),
|
|
@@ -19835,11 +19847,11 @@ const HP = /* @__PURE__ */ be({
|
|
|
19835
19847
|
},
|
|
19836
19848
|
emits: ["update:open"],
|
|
19837
19849
|
setup(e) {
|
|
19838
|
-
|
|
19850
|
+
wa((s) => ({
|
|
19839
19851
|
v8758bbfe: `${l(lx)}px`,
|
|
19840
19852
|
v30e03211: `${l(sf)}px`
|
|
19841
19853
|
}));
|
|
19842
|
-
const t =
|
|
19854
|
+
const t = Ri(e, "open"), n = Y(!1), i = rt("confirm-modal"), { clear: a } = mt();
|
|
19843
19855
|
AT(async (...s) => {
|
|
19844
19856
|
n.value = !0;
|
|
19845
19857
|
const u = await i.value.open(...s);
|
|
@@ -19912,7 +19924,7 @@ const HP = /* @__PURE__ */ be({
|
|
|
19912
19924
|
]),
|
|
19913
19925
|
C(uN, {
|
|
19914
19926
|
open: l(r),
|
|
19915
|
-
"onUpdate:open": d[1] || (d[1] = (c) =>
|
|
19927
|
+
"onUpdate:open": d[1] || (d[1] = (c) => jr(r) ? r.value = c : null)
|
|
19916
19928
|
}, null, 8, ["open"])
|
|
19917
19929
|
]);
|
|
19918
19930
|
};
|
|
@@ -19939,7 +19951,7 @@ const HP = /* @__PURE__ */ be({
|
|
|
19939
19951
|
pluginName: {}
|
|
19940
19952
|
},
|
|
19941
19953
|
setup(e) {
|
|
19942
|
-
const { t } = kt("en-us", Ct), n = e, i = $t(
|
|
19954
|
+
const { t } = kt("en-us", Ct), n = e, i = $t(Ea), a = Y(!1);
|
|
19943
19955
|
Tn(() => {
|
|
19944
19956
|
a.value = !!document.querySelector("#plugin-form-page-actions");
|
|
19945
19957
|
});
|
|
@@ -20120,7 +20132,7 @@ const HP = /* @__PURE__ */ be({
|
|
|
20120
20132
|
"reset-label-path": "reset"
|
|
20121
20133
|
}, {
|
|
20122
20134
|
default_acl: A(({ name: p }) => [
|
|
20123
|
-
C(
|
|
20135
|
+
C(pa, {
|
|
20124
20136
|
appearance: "tabs",
|
|
20125
20137
|
"item-label": (c, f) => l(i)("plugins.free-form.ai-mcp-proxy.default_acl_item_label", { index: f + 1 }),
|
|
20126
20138
|
name: p,
|
|
@@ -20128,7 +20140,7 @@ const HP = /* @__PURE__ */ be({
|
|
|
20128
20140
|
}, null, 8, ["item-label", "name"])
|
|
20129
20141
|
]),
|
|
20130
20142
|
tools: A(({ name: p }) => [
|
|
20131
|
-
C(
|
|
20143
|
+
C(pa, {
|
|
20132
20144
|
appearance: "tabs",
|
|
20133
20145
|
"item-label": (c, f) => l(i)("plugins.free-form.ai-mcp-proxy.tool_item_label", { index: f + 1 }),
|
|
20134
20146
|
name: p,
|
|
@@ -20497,7 +20509,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
20497
20509
|
credential: o.credential,
|
|
20498
20510
|
enableRedisPartial: o.enableRedisPartial,
|
|
20499
20511
|
experimentalRenders: o.config.app === "konnect" ? o.config.experimentalRenders : void 0
|
|
20500
|
-
}), { convertToDotNotation: u, unFlattenObject: d, dismissField: p, isObjectEmpty: c, unsetNullForeignKey: f } = Je.usePluginHelpers(), m = Je.useExperimentalFreeForms(), { objectsAreEqual: g } =
|
|
20512
|
+
}), { convertToDotNotation: u, unFlattenObject: d, dismissField: p, isObjectEmpty: c, unsetNullForeignKey: f } = Je.usePluginHelpers(), m = Je.useExperimentalFreeForms(), { objectsAreEqual: g } = ka(), { i18n: { t: y } } = ze(), h = (oe) => o.config.app === "konnect" ? oe.replace(/{controlPlaneId}/gi, o.config.controlPlaneId || "") : o.config.app === "kongManager" ? oe.replace(/\/{workspace}/gi, o.config.workspace ? `/${o.config.workspace}` : "") : oe, v = (oe, Q) => {
|
|
20501
20513
|
let le = `${o.config.apiBaseUrl}${dt.form[o.config.app].entityGetOne}`;
|
|
20502
20514
|
return le = h(le), le = le.replace(/{entity}/gi, oe), le = le.replace(/{id}/gi, Q), le;
|
|
20503
20515
|
}, k = (oe) => {
|
|
@@ -20563,7 +20575,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
20563
20575
|
}
|
|
20564
20576
|
});
|
|
20565
20577
|
}
|
|
20566
|
-
}), Yt(
|
|
20578
|
+
}), Yt(Ea, o.config);
|
|
20567
20579
|
const I = Y(""), R = Y(""), K = Y(null), $ = Y({}), N = Pi({}), S = Pi({}), q = T(() => {
|
|
20568
20580
|
var oe;
|
|
20569
20581
|
return (oe = K.value) == null ? void 0 : oe.options;
|
|
@@ -20584,7 +20596,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
20584
20596
|
if (!c($.value))
|
|
20585
20597
|
for (let de = 0; de < ((Xe = (Ue = $.value) == null ? void 0 : Ue.fields) == null ? void 0 : Xe.length); de++)
|
|
20586
20598
|
Q[$.value.fields[de].model] = $.value.fields[de];
|
|
20587
|
-
|
|
20599
|
+
ar.forEach((de) => {
|
|
20588
20600
|
Q[de] && (Q[de].fields.forEach((ke) => {
|
|
20589
20601
|
ke.fields && ke.fields.forEach((ye) => {
|
|
20590
20602
|
Q[ye.model] = ye;
|
|
@@ -20760,7 +20772,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
20760
20772
|
const le = s(oe, void 0, void 0, o.engine);
|
|
20761
20773
|
Object.assign(S, le.model), $.value = {
|
|
20762
20774
|
fields: ($e = (Ee = $.value) == null ? void 0 : Ee.fields) == null ? void 0 : $e.map((pe) => ({ ...pe, disabled: pe.disabled || !1 }))
|
|
20763
|
-
}, Object.assign(N, JSON.parse(JSON.stringify(le.model))), R.value = o.engine ? o.engine === "vfg" ? void 0 :
|
|
20775
|
+
}, Object.assign(N, JSON.parse(JSON.stringify(le.model))), R.value = o.engine ? o.engine === "vfg" ? void 0 : yr(le.model.name, m) || "CommonForm" : yr(le.model.name, m), I.value = Bu(le.model.name), he();
|
|
20764
20776
|
}, { immediate: !0, deep: !0 }), ci(() => {
|
|
20765
20777
|
var oe, Q;
|
|
20766
20778
|
K.value = s(o.schema, void 0, void 0, o.engine), Object.assign(S, ((oe = K.value) == null ? void 0 : oe.model) || {}), $.value = ((Q = K.value) == null ? void 0 : Q.schema) || {}, he();
|
|
@@ -20980,11 +20992,11 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
20980
20992
|
emits: ["cancel", "error:fetch-schema", "error", "loading", "update", "model-updated", "showNewPartialModal", "globalAction"],
|
|
20981
20993
|
setup(e, { emit: t }) {
|
|
20982
20994
|
var ye;
|
|
20983
|
-
const n = $t(up.KM_1948_PLUGIN_FORM_LAYOUT, T(() => !1)), i = t, a = e, o =
|
|
20995
|
+
const n = $t(up.KM_1948_PLUGIN_FORM_LAYOUT, T(() => !1)), i = t, a = e, o = Ca(), { i18n: { t: r } } = Je.useI18n(), { customSchemas: s, typedefs: u } = Je.useSchemas({
|
|
20984
20996
|
app: a.config.app,
|
|
20985
20997
|
credential: a.credential,
|
|
20986
20998
|
experimentalRenders: a.config.app === "konnect" ? a.config.experimentalRenders : void 0
|
|
20987
|
-
}), { formatPluginFieldLabel: d } = Je.usePluginHelpers(), { getMessageFromError: p } = di(), { capitalize: c } = fo(), { objectsAreEqual: f } =
|
|
20999
|
+
}), { formatPluginFieldLabel: d } = Je.usePluginHelpers(), { getMessageFromError: p } = di(), { capitalize: c } = fo(), { objectsAreEqual: f } = ka(), { axiosInstance: m } = On((ye = a.config) == null ? void 0 : ye.axiosRequestConfig), g = Y(!1), y = T(() => !!a.pluginId), h = T(() => a.pluginId ? Bn.Edit : Bn.Create), v = Y(void 0), k = Y(void 0), x = T(() => !!(a.credential && a.config.entityId)), E = Y(void 0), b = Y({}), _ = Y(), I = Y();
|
|
20988
21000
|
Yt(So, {
|
|
20989
21001
|
redisType: _,
|
|
20990
21002
|
redisPath: I,
|
|
@@ -21177,7 +21189,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21177
21189
|
O[we].label = ve.split("-").map(d).join(".");
|
|
21178
21190
|
} else
|
|
21179
21191
|
O[we].label = d(we);
|
|
21180
|
-
if ((ue === "config" || ue.startsWith("config-")) && (pn = ee[Re]) != null && pn.description && (O[we].help =
|
|
21192
|
+
if ((ue === "config" || ue.startsWith("config-")) && (pn = ee[Re]) != null && pn.description && (O[we].help = qa.parse(ee[Re].description, { mangle: !1, headerIds: !1 })), _e.type === "map") {
|
|
21181
21193
|
if (O[we].type = "object-advanced", O[we].values = _e.values, _e.values.type === "array") {
|
|
21182
21194
|
const { type: ve } = _e.values.elements || {};
|
|
21183
21195
|
O[we].schema = {
|
|
@@ -21230,7 +21242,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21230
21242
|
if (_e.hint && (O[we].hint = _e.hint), me && !me.overwriteDefault && Object.keys(me).forEach((ve) => {
|
|
21231
21243
|
if (ve === we) {
|
|
21232
21244
|
const { help: Ie, label: Pe, hint: Ce, values: Le, referenceable: Ve, elements: gt } = O[we], { help: He, ...lt } = me[ve];
|
|
21233
|
-
O[we] = { help: Ie, label: Pe, hint: Ce, values: Le, referenceable: Ve, elements: gt, ...lt }, typeof He == "string" && (O[we].help =
|
|
21245
|
+
O[we] = { help: Ie, label: Pe, hint: Ce, values: Le, referenceable: Ve, elements: gt, ...lt }, typeof He == "string" && (O[we].help = qa.parse(He, { mangle: !1, headerIds: !1 }));
|
|
21234
21246
|
}
|
|
21235
21247
|
}), _e.type === "array" && ((Mn = _e.elements) == null ? void 0 : Mn.type) === "record" && Array.isArray(_e.elements.fields)) {
|
|
21236
21248
|
let ve = {};
|
|
@@ -21240,7 +21252,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21240
21252
|
if (Array.isArray(Ie))
|
|
21241
21253
|
for (const Pe of O[we].items.schema.fields) {
|
|
21242
21254
|
const Ce = (Te = ve[Pe.model]) == null ? void 0 : Te.description;
|
|
21243
|
-
Pe.help === void 0 && typeof Ce == "string" && (Pe.help =
|
|
21255
|
+
Pe.help === void 0 && typeof Ce == "string" && (Pe.help = qa.parse(Ce, { mangle: !1, headerIds: !1 }));
|
|
21244
21256
|
}
|
|
21245
21257
|
if (Ie || (O[we].type = "array", O[we].newElementButtonLabelClasses = "kong-form-new-element-button-label", O[we].fieldClasses = "array-card-container-wrapper", O[we].itemContainerComponent = "FieldArrayCardContainer", O[we].items = {
|
|
21246
21258
|
type: "object",
|
|
@@ -21476,7 +21488,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21476
21488
|
k.value = D("", ee, {}), de.value = !1;
|
|
21477
21489
|
else {
|
|
21478
21490
|
const me = ee.fields.find((ce) => ce.config);
|
|
21479
|
-
b.value = me ? me.config : ee, ee.supported_partials && (_.value = Object.keys(ee.supported_partials).find((ce) => [
|
|
21491
|
+
b.value = me ? me.config : ee, ee.supported_partials && (_.value = Object.keys(ee.supported_partials).find((ce) => [rr.REDIS_CE, rr.REDIS_EE].includes(ce)), I.value = (Ae = ee.supported_partials[_.value]) == null ? void 0 : Ae[0]), z();
|
|
21480
21492
|
const te = (O = ee.fields.find((ce) => ce.protocols)) == null ? void 0 : O.protocols;
|
|
21481
21493
|
if (te) {
|
|
21482
21494
|
const { default: ce = [], elements: Se = {} } = te;
|
|
@@ -21518,7 +21530,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21518
21530
|
"can-submit": U.value,
|
|
21519
21531
|
config: e.config,
|
|
21520
21532
|
"edit-id": e.pluginId,
|
|
21521
|
-
"entity-type": l(
|
|
21533
|
+
"entity-type": l(Da).Plugin,
|
|
21522
21534
|
"error-message": Ke.value,
|
|
21523
21535
|
"fetch-url": q.value,
|
|
21524
21536
|
"form-fields": $e.value,
|
|
@@ -21632,7 +21644,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21632
21644
|
C(l(fp), {
|
|
21633
21645
|
"credential-type": Xe.value,
|
|
21634
21646
|
"entity-record": pe.value,
|
|
21635
|
-
"entity-type": l(
|
|
21647
|
+
"entity-type": l(Da).Plugin
|
|
21636
21648
|
}, null, 8, ["credential-type", "entity-record", "entity-type"])
|
|
21637
21649
|
]),
|
|
21638
21650
|
deck: A(() => [
|
|
@@ -21640,7 +21652,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21640
21652
|
app: e.config.app,
|
|
21641
21653
|
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
21642
21654
|
"entity-record": pe.value,
|
|
21643
|
-
"entity-type": l(
|
|
21655
|
+
"entity-type": l(Da).Plugin,
|
|
21644
21656
|
"geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0,
|
|
21645
21657
|
"kong-admin-api-url": e.config.app === "kongManager" ? e.config.apiBaseUrl : void 0,
|
|
21646
21658
|
workspace: e.config.app === "kongManager" ? e.config.workspace : void 0
|
|
@@ -21736,7 +21748,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21736
21748
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
21737
21749
|
setup(e, { emit: t }) {
|
|
21738
21750
|
var Ue, Xe;
|
|
21739
|
-
const n = Je.usePluginMetaData(), i = t, a = e, { i18n: { t: o } } = Je.useI18n(), r =
|
|
21751
|
+
const n = Je.usePluginMetaData(), i = t, a = e, { i18n: { t: o } } = Je.useI18n(), r = Ca(), { axiosInstance: s } = On((Ue = a.config) == null ? void 0 : Ue.axiosRequestConfig), { hasRecords: u, handleStateChange: d } = gp(() => x.value), p = T(() => u.value && a.config.app === "konnect"), c = T(() => !!a.config.entityId), f = T(() => {
|
|
21740
21752
|
var de;
|
|
21741
21753
|
return ((de = a.config) == null ? void 0 : de.entityType) === "consumers";
|
|
21742
21754
|
}), m = T(() => {
|
|
@@ -21986,7 +21998,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
21986
21998
|
]),
|
|
21987
21999
|
name: A(({ row: te }) => [
|
|
21988
22000
|
j("div", GN, [
|
|
21989
|
-
C(l(
|
|
22001
|
+
C(l(xa), {
|
|
21990
22002
|
class: "plugin-icon",
|
|
21991
22003
|
name: te.name,
|
|
21992
22004
|
size: 24
|
|
@@ -22262,7 +22274,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
22262
22274
|
},
|
|
22263
22275
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
22264
22276
|
setup(e, { emit: t }) {
|
|
22265
|
-
const n = t, i = e, a =
|
|
22277
|
+
const n = t, i = e, a = Ca(), { i18n: { t: o } } = Je.useI18n(), r = T(() => i.config.app === "konnect" ? i.config.controlPlaneId : ""), s = T(() => !!(!i.plugin.available || i.plugin.disabledMessage)), u = T(() => !!(m.value && !f.value && i.navigateOnClick && r.value && (i.canDeleteCustomPlugin || i.canEditCustomPlugin))), d = () => {
|
|
22266
22278
|
a.push(i.config.getCreateRoute(i.plugin.id));
|
|
22267
22279
|
}, p = () => {
|
|
22268
22280
|
i.navigateOnClick ? d() : c();
|
|
@@ -22313,7 +22325,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
22313
22325
|
size: "small"
|
|
22314
22326
|
}, {
|
|
22315
22327
|
default: A(() => [
|
|
22316
|
-
C(l(
|
|
22328
|
+
C(l(qi), { size: l(Sa) }, null, 8, ["size"])
|
|
22317
22329
|
]),
|
|
22318
22330
|
_: 1
|
|
22319
22331
|
})
|
|
@@ -22352,7 +22364,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
22352
22364
|
title: e.plugin.available ? e.plugin.name : l(o)("plugins.select.unavailable_tooltip"),
|
|
22353
22365
|
onClick: h
|
|
22354
22366
|
}, [
|
|
22355
|
-
C(l(
|
|
22367
|
+
C(l(xa), {
|
|
22356
22368
|
alt: e.plugin.name,
|
|
22357
22369
|
class: "plugin-card-icon",
|
|
22358
22370
|
name: e.plugin.id,
|
|
@@ -22626,7 +22638,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
22626
22638
|
}
|
|
22627
22639
|
}), pR = /* @__PURE__ */ Oe(fR, [["__scopeId", "data-v-f4b90f47"]]), nr = 310, mR = /* @__PURE__ */ be({
|
|
22628
22640
|
__name: "PluginSelectGroup",
|
|
22629
|
-
props: /* @__PURE__ */
|
|
22641
|
+
props: /* @__PURE__ */ oa({
|
|
22630
22642
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
22631
22643
|
config: {
|
|
22632
22644
|
type: Object,
|
|
@@ -22659,9 +22671,9 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
22659
22671
|
modelValue: { type: Boolean, required: !0 },
|
|
22660
22672
|
modelModifiers: {}
|
|
22661
22673
|
}),
|
|
22662
|
-
emits: /* @__PURE__ */
|
|
22674
|
+
emits: /* @__PURE__ */ oa(["plugin-clicked"], ["update:modelValue"]),
|
|
22663
22675
|
setup(e, { emit: t }) {
|
|
22664
|
-
const n =
|
|
22676
|
+
const n = Ri(e, "modelValue"), i = e, a = t, { i18n: { t: o } } = Je.useI18n(), { getTallestPluginCardHeight: r, getToggleVisibility: s } = Je.usePluginHelpers(), u = Y(nr), d = Y(null), p = Y(null), c = T(() => n.value ? {
|
|
22665
22677
|
overflowY: "hidden",
|
|
22666
22678
|
maxHeight: `${u.value}px`
|
|
22667
22679
|
} : {}), f = Y(!1), m = () => {
|
|
@@ -22901,7 +22913,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
22901
22913
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
22902
22914
|
setup(e, { emit: t }) {
|
|
22903
22915
|
var z;
|
|
22904
|
-
const n = e, i = t, a = Sp(), o =
|
|
22916
|
+
const n = e, i = t, a = Sp(), o = Ca(), { i18n: { t: r } } = Je.useI18n(), { pluginMetaData: s } = Je.usePluginMetaData(), { getMessageFromError: u } = di(), { sortAlpha: d, objectsAreEqual: p } = ka(), c = Y(""), f = Y(!0), m = Y(!1), g = Y(""), y = Y([]), h = Y([]), v = Y({}), k = Y([]), { axiosInstance: x } = On((z = n.config) == null ? void 0 : z.axiosRequestConfig), E = T(() => v.value ? Object.entries(v.value).filter(([P]) => P !== qe.CUSTOM_PLUGINS).reduce((P, [, U]) => {
|
|
22905
22917
|
for (const H of U ?? [])
|
|
22906
22918
|
P[H.id] = H;
|
|
22907
22919
|
return P;
|
|
@@ -23140,7 +23152,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23140
23152
|
},
|
|
23141
23153
|
emits: ["plugin-clicked", "custom-plugin-delete"],
|
|
23142
23154
|
setup(e, { emit: t }) {
|
|
23143
|
-
const n = t, i = e, a =
|
|
23155
|
+
const n = t, i = e, a = Ca(), { i18n: { t: o } } = Je.useI18n(), r = T(() => i.config.app === "konnect" ? i.config.controlPlaneId : ""), s = T(() => !!(!i.plugin.available || i.plugin.disabledMessage)), u = T(() => !!(c.value && !p.value && r.value)), d = T(() => {
|
|
23144
23156
|
if (s.value)
|
|
23145
23157
|
return {};
|
|
23146
23158
|
if (c.value) {
|
|
@@ -23170,7 +23182,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23170
23182
|
default: A(() => [
|
|
23171
23183
|
j("div", SR, [
|
|
23172
23184
|
j("div", TR, [
|
|
23173
|
-
C(l(
|
|
23185
|
+
C(l(xa), {
|
|
23174
23186
|
alt: e.plugin.name,
|
|
23175
23187
|
class: "plugin-card-icon",
|
|
23176
23188
|
name: e.plugin.id,
|
|
@@ -23197,7 +23209,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23197
23209
|
size: "small"
|
|
23198
23210
|
}, {
|
|
23199
23211
|
default: A(() => [
|
|
23200
|
-
C(l(
|
|
23212
|
+
C(l(qi), { size: l(Sa) }, null, 8, ["size"])
|
|
23201
23213
|
]),
|
|
23202
23214
|
_: 1
|
|
23203
23215
|
})
|
|
@@ -23361,7 +23373,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23361
23373
|
},
|
|
23362
23374
|
emits: ["plugin-clicked", "delete:success"],
|
|
23363
23375
|
setup(e, { emit: t }) {
|
|
23364
|
-
const n =
|
|
23376
|
+
const n = sr.concat(lr), i = t, { i18n: { t: a } } = Je.useI18n(), o = Y(nc), r = (s) => {
|
|
23365
23377
|
i("plugin-clicked", s);
|
|
23366
23378
|
};
|
|
23367
23379
|
return (s, u) => {
|
|
@@ -23504,7 +23516,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23504
23516
|
}, {
|
|
23505
23517
|
name: A(({ row: N }) => [
|
|
23506
23518
|
j("span", JR, [
|
|
23507
|
-
C(l(
|
|
23519
|
+
C(l(xa), {
|
|
23508
23520
|
"data-testid": `plugin-catalog-list-view-${N.plugin.id}-icon`,
|
|
23509
23521
|
name: N.plugin.id,
|
|
23510
23522
|
size: 20
|
|
@@ -23575,9 +23587,9 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23575
23587
|
];
|
|
23576
23588
|
}),
|
|
23577
23589
|
default: A(() => [
|
|
23578
|
-
C(l(
|
|
23579
|
-
color: l(
|
|
23580
|
-
size: l(
|
|
23590
|
+
C(l(qi), {
|
|
23591
|
+
color: l(Ui),
|
|
23592
|
+
size: l(Sa)
|
|
23581
23593
|
}, null, 8, ["color", "size"])
|
|
23582
23594
|
]),
|
|
23583
23595
|
_: 2
|
|
@@ -23622,7 +23634,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23622
23634
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
23623
23635
|
setup(e, { emit: t }) {
|
|
23624
23636
|
var G;
|
|
23625
|
-
const n = t, { i18n: { t: i } } = Je.useI18n(), { pluginMetaData: a } = Je.usePluginMetaData(), { getMessageFromError: o } = di(), { sortAlpha: r, objectsAreEqual: s } =
|
|
23637
|
+
const n = t, { i18n: { t: i } } = Je.useI18n(), { pluginMetaData: a } = Je.usePluginMetaData(), { getMessageFromError: o } = di(), { sortAlpha: r, objectsAreEqual: s } = ka(), u = e, { axiosInstance: d } = On((G = u.config) == null ? void 0 : G.axiosRequestConfig), p = rt("filter-input"), c = Y(""), f = Y(!1), m = Y(!1), g = Y(Object.fromEntries(sr.concat(lr).map((X) => [X, !1]))), y = Y(!0), h = Y(!1), v = Y(""), k = Y([]), x = Y([]), E = Y({}), b = Y([]), _ = Y(!1), I = T(() => _.value ? mm : gm), R = T(() => {
|
|
23626
23638
|
var ie;
|
|
23627
23639
|
let X = `${u.config.apiBaseUrl}${dt.select[u.config.app].availablePlugins}`;
|
|
23628
23640
|
return u.config.app === "konnect" ? X = X.replace(/{controlPlaneId}/gi, u.config.controlPlaneId || "") : u.config.app === "kongManager" && (X = ((ie = u.config.gatewayInfo) == null ? void 0 : ie.edition) === "community" ? `${u.config.apiBaseUrl}${dt.select[u.config.app].availablePluginsForOss}` : X.replace(/\/{workspace}/gi, u.config.workspace ? `/${u.config.workspace}` : "")), X;
|
|
@@ -23743,7 +23755,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23743
23755
|
]),
|
|
23744
23756
|
default: A(() => [
|
|
23745
23757
|
j("div", sF, [
|
|
23746
|
-
(w(!0), V(Fe, null, Be(l(
|
|
23758
|
+
(w(!0), V(Fe, null, Be(l(sr), (B) => (w(), V("div", {
|
|
23747
23759
|
key: B,
|
|
23748
23760
|
class: "plugin-filter-item",
|
|
23749
23761
|
"data-testid": `plugin-filter-item-${B}`
|
|
@@ -23776,7 +23788,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23776
23788
|
]),
|
|
23777
23789
|
default: A(() => [
|
|
23778
23790
|
j("div", cF, [
|
|
23779
|
-
(w(!0), V(Fe, null, Be(l(
|
|
23791
|
+
(w(!0), V(Fe, null, Be(l(lr), (B) => (w(), V("div", {
|
|
23780
23792
|
key: B,
|
|
23781
23793
|
class: "plugin-filter-item",
|
|
23782
23794
|
"data-testid": `plugin-filter-item-${B}`
|
|
@@ -23968,7 +23980,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
23968
23980
|
emits: ["loading", "fetch:error", "error:fetch-schema", "fetch:success", "navigation-click"],
|
|
23969
23981
|
setup(e, { emit: t }) {
|
|
23970
23982
|
var E;
|
|
23971
|
-
const n = t, i = e, { i18n: { t: a } } = Je.useI18n(), o = Je.usePluginMetaData(), { setFieldType: r } = Je.usePluginHelpers(), { getPropValue: s } =
|
|
23983
|
+
const n = t, i = e, { i18n: { t: a } } = Je.useI18n(), o = Je.usePluginMetaData(), { setFieldType: r } = Je.usePluginHelpers(), { getPropValue: s } = ka(), u = T(() => {
|
|
23972
23984
|
var _;
|
|
23973
23985
|
let b = (_ = dt.item[i.config.app]) == null ? void 0 : _[i.scopedEntityType ? "forEntity" : "all"].replace(/{entityType}/gi, i.scopedEntityType).replace(/{entityId}/gi, i.scopedEntityId).concat(i.expandPartial ? "?expand_partials=true" : "");
|
|
23974
23986
|
if (i.config.app === "konnect") {
|
|
@@ -24080,7 +24092,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
24080
24092
|
config: e.config,
|
|
24081
24093
|
"config-card-doc": e.configCardDoc,
|
|
24082
24094
|
"config-schema": d.value,
|
|
24083
|
-
"entity-type": l(
|
|
24095
|
+
"entity-type": l(Da).Plugin,
|
|
24084
24096
|
"fetch-url": u.value,
|
|
24085
24097
|
"hide-title": e.hideTitle,
|
|
24086
24098
|
"plugin-config-key": ir,
|
|
@@ -24092,7 +24104,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
24092
24104
|
}, et({
|
|
24093
24105
|
name: A(($) => [
|
|
24094
24106
|
j("div", xF, [
|
|
24095
|
-
C(l(
|
|
24107
|
+
C(l(xa), {
|
|
24096
24108
|
class: "plugin-icon",
|
|
24097
24109
|
name: l(s)("rowValue", $),
|
|
24098
24110
|
size: 24
|
|
@@ -24101,7 +24113,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
24101
24113
|
])
|
|
24102
24114
|
]),
|
|
24103
24115
|
consumer: A(($) => [
|
|
24104
|
-
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(
|
|
24116
|
+
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(Hi), {
|
|
24105
24117
|
key: 1,
|
|
24106
24118
|
item: {
|
|
24107
24119
|
key: l(s)("rowValue", $).id,
|
|
@@ -24117,7 +24129,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
24117
24129
|
}, null, 8, ["copy-tooltip", "text"])) : (w(), V("span", IF, "–"))
|
|
24118
24130
|
]),
|
|
24119
24131
|
route: A(($) => [
|
|
24120
|
-
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(
|
|
24132
|
+
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(Hi), {
|
|
24121
24133
|
key: 1,
|
|
24122
24134
|
item: {
|
|
24123
24135
|
key: l(s)("rowValue", $).id,
|
|
@@ -24133,7 +24145,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
24133
24145
|
}, null, 8, ["copy-tooltip", "text"])) : (w(), V("span", SF, "–"))
|
|
24134
24146
|
]),
|
|
24135
24147
|
service: A(($) => [
|
|
24136
|
-
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(
|
|
24148
|
+
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(Hi), {
|
|
24137
24149
|
key: 1,
|
|
24138
24150
|
item: {
|
|
24139
24151
|
key: l(s)("rowValue", $).id,
|
|
@@ -24149,7 +24161,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
24149
24161
|
}, null, 8, ["copy-tooltip", "text"])) : (w(), V("span", TF, "–"))
|
|
24150
24162
|
]),
|
|
24151
24163
|
consumer_group: A(($) => [
|
|
24152
|
-
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(
|
|
24164
|
+
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(Hi), {
|
|
24153
24165
|
key: 1,
|
|
24154
24166
|
item: {
|
|
24155
24167
|
key: l(s)("rowValue", $).id,
|
|
@@ -24167,7 +24179,7 @@ const NN = { class: "kong-ui-entities-plugin-form" }, RN = {
|
|
|
24167
24179
|
partials: A(($) => {
|
|
24168
24180
|
var N, S, q, L, G, X, ie, J, D;
|
|
24169
24181
|
return [
|
|
24170
|
-
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(
|
|
24182
|
+
l(s)("rowValue", $) ? e.showIdAsLink ? (w(), M(l(Hi), {
|
|
24171
24183
|
key: 1,
|
|
24172
24184
|
item: {
|
|
24173
24185
|
key: (S = (N = l(s)("rowValue", $)) == null ? void 0 : N[0]) == null ? void 0 : S.id,
|
|
@@ -24210,14 +24222,14 @@ export {
|
|
|
24210
24222
|
nc as PLUGIN_GROUPS_COLLAPSE_STATUS,
|
|
24211
24223
|
fM as PluginCatalog,
|
|
24212
24224
|
pM as PluginConfigCard,
|
|
24213
|
-
|
|
24225
|
+
sr as PluginFeaturedArray,
|
|
24214
24226
|
uM as PluginForm,
|
|
24215
24227
|
yM as PluginGroup,
|
|
24216
24228
|
qm as PluginGroupArray,
|
|
24217
|
-
|
|
24229
|
+
lr as PluginGroupArraySortedAlphabetically,
|
|
24218
24230
|
wM as PluginIcon,
|
|
24219
24231
|
cM as PluginList,
|
|
24220
|
-
|
|
24232
|
+
rr as PluginPartialType,
|
|
24221
24233
|
_M as PluginScope,
|
|
24222
24234
|
dM as PluginSelect,
|
|
24223
24235
|
np as PluginSelectCard,
|