@kong-ui-public/entities-plugins 9.210.2 → 9.210.3-pr.3422.a572f8d7d.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 +129 -119
- package/dist/entities-plugins.umd.js +7 -7
- package/dist/types/components/free-form/plugins/datakit/flow-editor/FlowEditor.vue.d.ts +2 -0
- package/dist/types/components/free-form/plugins/datakit/flow-editor/FlowEditor.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/flow-editor/node-forms/NodeFormProperty.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/schema/compat.d.ts +1 -0
- package/dist/types/components/free-form/plugins/datakit/schema/compat.d.ts.map +1 -1
- package/dist/types/components/free-form/plugins/datakit/schema/strict.d.ts +3 -0
- package/dist/types/components/free-form/plugins/datakit/schema/strict.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as _e, useModel as Di, inject as At, ref as ae, computed as D, onMounted as ii, watch as We, resolveComponent as he, openBlock as A, createBlock as X, mergeModels as Ki, toRef as xt, createElementBlock as te, createVNode as E, isRef as vu, unref as u, markRaw as ry, toValue as kt, readonly as Jf, onBeforeUnmount as xs, reactive as Yi, useSlots as On, provide as Xt, toRaw as As, onUnmounted as _u, useAttrs as ma, mergeProps as Be, createSlots as St, renderList as Xe, withCtx as N, renderSlot as at, normalizeProps as mi, guardReactiveProps as qi, createPropsRestProxy as oi, withDirectives as fn, createElementVNode as J, resolveDynamicComponent as Vt, createCommentVNode as fe, Fragment as Fe, vShow as pn, useCssVars as mr, useTemplateRef as Ot, normalizeClass as mt, createTextVNode as xe, toDisplayString as ie, withModifiers as qt, nextTick as kn, Transition as sy, useId as gr, onBeforeMount as ko, withKeys as $c, shallowRef as Un, Teleport as Ts, warn as ly, onScopeDispose as uy, normalizeStyle as go, watchEffect as Xf } from "vue";
|
|
2
|
-
import { ConfigurationSchemaType as wn, useAxios as
|
|
3
|
-
import { AddIcon as
|
|
4
|
-
import { KTextArea as cv, KInput as dv, KCheckbox as fv, KCard as ns, KLabel as
|
|
2
|
+
import { ConfigurationSchemaType as wn, useAxios as Vn, useStringHelpers as bu, useErrors as io, EntityFormBlock as _i, PLUGIN_FORM_LAYOUT_STATE as wu, SupportedEntityType as wi, EntityBaseForm as Zf, useHelpers as hr, EntityBaseFormType as ao, useBaseFormDeckOptions as cy, DeckCodeBlock as dy, TerraformCodeBlock as fy, YamlCodeBlock as py, JsonCodeBlock as my, useTableState as gy, useGatewayFeatureSupported as hy, useFetcher as yy, useDeleteUrlBuilder as vy, FetcherStatus as _y, EntityBaseTable as by, PermissionsWrapper as ro, TableTags as wy, EntityFilter as ky, EntityToggleModal as Ey, EntityDeleteModal as Qf, EntityTypes as ep, ConfigCardItem as Cy, ConfigurationSchemaSection as No, useSchemaProvider as xy, EntityBaseConfigCard as Ay, InternalLinkItem as Ia } from "@kong-ui-public/entities-shared";
|
|
3
|
+
import { AddIcon as zn, CloseIcon as Ss, TrashIcon as tp, ChevronRightIcon as np, InfoIcon as Ty, TeamIcon as Sy, AccountTreeIcon as Iy, KeyIcon as ku, SparklesIcon as Oy, NetworkIcon as Ny, CachedIcon as $y, ArrowSplitIcon as ip, GatewayIcon as Py, CodeblockIcon as Eu, DataObjectIcon as Ry, CodeIcon as My, StackIcon as Ly, DeployIcon as op, EditSquareIcon as Fy, CloudIcon as Sr, WarningIcon as Dy, MoreIcon as ga, UnfoldMoreIcon as Pc, UnfoldLessIcon as Rc, RemoveIcon as Is, FullscreenIcon as Ky, AutoLayoutIcon as jy, ChevronDownIcon as Mc, ArrowLeftIcon as qy, ChevronDoubleLeftIcon as Uy, ChevronDoubleRightIcon as By, UndoIcon as Vy, RedoIcon as zy, ExternalLinkIcon as Gy, DatabaseIcon as Hy, ExpandIcon as Wy, DesignIcon as Yy, ClearIcon as Ir, CheckCircleIcon as Jy, BookIcon as Lc, PlugIcon as Xy, TransformationIcon as Zy, TrafficIcon as Qy, RuntimeServerlessIcon as ev, SecurityIcon as tv, MoneyIcon as nv, ServiceDocumentIcon as iv, LockIcon as ov, AnalyticsIcon as av, BotIcon as rv, PopularIcon as sv, GridIcon as lv, ListIcon as uv } from "@kong/icons";
|
|
4
|
+
import { KTextArea as cv, KInput as dv, KCheckbox as fv, KCard as ns, KLabel as Gn, KMultiselect as pv, KSelect as mv, KInputSwitch as gv, KTooltip as di, KSegmentedControl as ap, KRadio as Ji, KCollapse as hv, KAlert as yv, KButton as $i, KModal as vv, KDropdown as rp, KDropdownItem as Hr, KSlideout as _v, KExternalLink as Fc } from "@kong/kongponents";
|
|
5
5
|
import { PluginIcon as ho } from "@kong-ui-public/entities-plugins-icon";
|
|
6
6
|
import { PluginIcon as u8, getPluginIconURL as c8 } from "@kong-ui-public/entities-plugins-icon";
|
|
7
7
|
import { createI18n as mn, i18nTComponent as bv } from "@kong-ui-public/i18n";
|
|
8
8
|
import { PluginGroup as Je, PLUGIN_GROUP_AND_SCOPE_MAP as be, PluginScope as Kt, GATEWAY_VERSION_TIMESTAMP_MAP as wv } from "@kong-ui-public/entities-plugins-metadata";
|
|
9
9
|
import { PluginGroup as f8, PluginScope as p8 } from "@kong-ui-public/entities-plugins-metadata";
|
|
10
|
-
import { FORMS_CONFIG as gi, composables as kv, AUTOFILL_SLOT as hi, FORMS_API_KEY as sp, FieldScopedEntitySelect as Ev, AUTOFILL_SLOT_NAME as
|
|
10
|
+
import { FORMS_CONFIG as gi, composables as kv, AUTOFILL_SLOT as hi, FORMS_API_KEY as sp, FieldScopedEntitySelect as Ev, AUTOFILL_SLOT_NAME as Zn, getSharedFormName as lp, customFields as Ml, sharedForms as Cv, VueFormGenerator as xv } from "@kong-ui-public/forms";
|
|
11
11
|
import { createInjectionState as Cu, useLocalStorage as Wr, useManualRefHistory as Av, createGlobalState as Tv, useEventListener as Ja, createSharedComposable as Sv, useElementBounding as so, useDraggable as Iv, useScrollLock as Ov } from "@vueuse/core";
|
|
12
12
|
import { marked as Yr } from "marked";
|
|
13
13
|
import { RedisConfigurationSelector as up } from "@kong-ui-public/entities-redis-configurations";
|
|
@@ -1735,7 +1735,7 @@ const lo = (e) => {
|
|
|
1735
1735
|
value: "current-cp",
|
|
1736
1736
|
label: o("custom_field.key_auth_identity_realms.cp_label"),
|
|
1737
1737
|
group: o("custom_field.key_auth_identity_realms.cp_group_label")
|
|
1738
|
-
}, r = At(gi), { axiosInstance: s } =
|
|
1738
|
+
}, r = At(gi), { axiosInstance: s } = Vn(r == null ? void 0 : r.axiosRequestConfig), l = () => {
|
|
1739
1739
|
if ((r == null ? void 0 : r.app) === "konnect") {
|
|
1740
1740
|
const g = /\b(us|eu|au|me|in|sg)\b/.exec((r == null ? void 0 : r.apiBaseUrl) || "");
|
|
1741
1741
|
if (g)
|
|
@@ -2299,7 +2299,7 @@ const lo = (e) => {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
], K_ = {
|
|
2301
2301
|
fields: D_
|
|
2302
|
-
},
|
|
2302
|
+
}, Yn = {
|
|
2303
2303
|
"basic-auth": {
|
|
2304
2304
|
descriptionKey: "plugins.meta.basic-auth.description",
|
|
2305
2305
|
nameKey: "plugins.meta.basic-auth.name",
|
|
@@ -3044,7 +3044,7 @@ const lo = (e) => {
|
|
|
3044
3044
|
jwt_secrets: R_
|
|
3045
3045
|
}, bp = () => {
|
|
3046
3046
|
const { i18n: { t: e } } = He(), t = {}, n = {};
|
|
3047
|
-
for (const [o, a] of Object.entries(
|
|
3047
|
+
for (const [o, a] of Object.entries(Yn))
|
|
3048
3048
|
t[o] = {
|
|
3049
3049
|
...a,
|
|
3050
3050
|
name: e(a.nameKey),
|
|
@@ -4625,8 +4625,8 @@ function Ul(e) {
|
|
|
4625
4625
|
function cm(e) {
|
|
4626
4626
|
return um(e, Mu, lm);
|
|
4627
4627
|
}
|
|
4628
|
-
var Bl = To(Ti, "DataView"), Vl = To(Ti, "Promise"), zl = To(Ti, "Set"), md = "[object Map]", f1 = "[object Object]", gd = "[object Promise]", hd = "[object Set]", yd = "[object WeakMap]", vd = "[object DataView]", p1 = Ao(Bl), m1 = Ao(er), g1 = Ao(Vl), h1 = Ao(zl), y1 = Ao(Kl),
|
|
4629
|
-
(Bl &&
|
|
4628
|
+
var Bl = To(Ti, "DataView"), Vl = To(Ti, "Promise"), zl = To(Ti, "Set"), md = "[object Map]", f1 = "[object Object]", gd = "[object Promise]", hd = "[object Set]", yd = "[object WeakMap]", vd = "[object DataView]", p1 = Ao(Bl), m1 = Ao(er), g1 = Ao(Vl), h1 = Ao(zl), y1 = Ao(Kl), Jn = xo;
|
|
4629
|
+
(Bl && Jn(new Bl(new ArrayBuffer(1))) != vd || er && Jn(new er()) != md || Vl && Jn(Vl.resolve()) != gd || zl && Jn(new zl()) != hd || Kl && Jn(new Kl()) != yd) && (Jn = function(e) {
|
|
4630
4630
|
var t = xo(e), n = t == f1 ? e.constructor : void 0, i = n ? Ao(n) : "";
|
|
4631
4631
|
if (i)
|
|
4632
4632
|
switch (i) {
|
|
@@ -4709,11 +4709,11 @@ function G1(e) {
|
|
|
4709
4709
|
}
|
|
4710
4710
|
var H1 = "[object Map]";
|
|
4711
4711
|
function W1(e) {
|
|
4712
|
-
return xi(e) &&
|
|
4712
|
+
return xi(e) && Jn(e) == H1;
|
|
4713
4713
|
}
|
|
4714
4714
|
var wd = sa && sa.isMap, Y1 = wd ? $u(wd) : W1, J1 = "[object Set]";
|
|
4715
4715
|
function X1(e) {
|
|
4716
|
-
return xi(e) &&
|
|
4716
|
+
return xi(e) && Jn(e) == J1;
|
|
4717
4717
|
}
|
|
4718
4718
|
var kd = sa && sa.isSet, Z1 = kd ? $u(kd) : X1, Q1 = 1, eE = 2, tE = 4, dm = "[object Arguments]", nE = "[object Array]", iE = "[object Boolean]", oE = "[object Date]", aE = "[object Error]", fm = "[object Function]", rE = "[object GeneratorFunction]", sE = "[object Map]", lE = "[object Number]", pm = "[object Object]", uE = "[object RegExp]", cE = "[object Set]", dE = "[object String]", fE = "[object Symbol]", pE = "[object WeakMap]", mE = "[object ArrayBuffer]", gE = "[object DataView]", hE = "[object Float32Array]", yE = "[object Float64Array]", vE = "[object Int8Array]", _E = "[object Int16Array]", bE = "[object Int32Array]", wE = "[object Uint8Array]", kE = "[object Uint8ClampedArray]", EE = "[object Uint16Array]", CE = "[object Uint32Array]", Mt = {};
|
|
4719
4719
|
Mt[dm] = Mt[nE] = Mt[mE] = Mt[gE] = Mt[iE] = Mt[oE] = Mt[hE] = Mt[yE] = Mt[vE] = Mt[_E] = Mt[bE] = Mt[sE] = Mt[lE] = Mt[pm] = Mt[uE] = Mt[cE] = Mt[dE] = Mt[fE] = Mt[wE] = Mt[kE] = Mt[EE] = Mt[CE] = !0;
|
|
@@ -4729,7 +4729,7 @@ function Ba(e, t, n, i, o, a) {
|
|
|
4729
4729
|
if (r = b1(e), !s)
|
|
4730
4730
|
return Kb(e, r);
|
|
4731
4731
|
} else {
|
|
4732
|
-
var d =
|
|
4732
|
+
var d = Jn(e), f = d == fm || d == rE;
|
|
4733
4733
|
if (Za(e))
|
|
4734
4734
|
return a1(e, s);
|
|
4735
4735
|
if (d == pm || d == dm || f && !o) {
|
|
@@ -4898,7 +4898,7 @@ function ZE(e, t, n, i, o, a) {
|
|
|
4898
4898
|
}
|
|
4899
4899
|
var QE = 1, Cd = "[object Arguments]", xd = "[object Array]", $r = "[object Object]", eC = Object.prototype, Ad = eC.hasOwnProperty;
|
|
4900
4900
|
function tC(e, t, n, i, o, a) {
|
|
4901
|
-
var r = fi(e), s = fi(t), l = r ? xd :
|
|
4901
|
+
var r = fi(e), s = fi(t), l = r ? xd : Jn(e), c = s ? xd : Jn(t);
|
|
4902
4902
|
l = l == Cd ? $r : l, c = c == Cd ? $r : c;
|
|
4903
4903
|
var p = l == $r, d = c == $r, f = l == c;
|
|
4904
4904
|
if (f && Za(e)) {
|
|
@@ -4998,7 +4998,7 @@ function Td(e) {
|
|
|
4998
4998
|
return !0;
|
|
4999
4999
|
if (Ns(e) && (fi(e) || typeof e == "string" || typeof e.splice == "function" || Za(e) || Pu(e) || Ps(e)))
|
|
5000
5000
|
return !e.length;
|
|
5001
|
-
var t =
|
|
5001
|
+
var t = Jn(e);
|
|
5002
5002
|
if (t == vC || t == _C)
|
|
5003
5003
|
return !e.size;
|
|
5004
5004
|
if ($s(e))
|
|
@@ -5735,8 +5735,8 @@ function Tm() {
|
|
|
5735
5735
|
if (cn && bt) {
|
|
5736
5736
|
const en = cn.length;
|
|
5737
5737
|
for (let $n = en - 1; $n >= 0; --$n) {
|
|
5738
|
-
const
|
|
5739
|
-
bt.insertBefore(
|
|
5738
|
+
const Wn = y(cn[$n], !0);
|
|
5739
|
+
bt.insertBefore(Wn, v(ne));
|
|
5740
5740
|
}
|
|
5741
5741
|
}
|
|
5742
5742
|
}
|
|
@@ -5791,7 +5791,7 @@ function Tm() {
|
|
|
5791
5791
|
};
|
|
5792
5792
|
let bt = Ae.length;
|
|
5793
5793
|
for (; bt--; ) {
|
|
5794
|
-
const cn = Ae[bt], en = cn.name, $n = cn.namespaceURI,
|
|
5794
|
+
const cn = Ae[bt], en = cn.name, $n = cn.namespaceURI, Wn = cn.value, li = ke(en), nl = Wn;
|
|
5795
5795
|
let dn = en === "value" ? nl : ax(nl);
|
|
5796
5796
|
if (Ke.attrName = li, Ke.attrValue = dn, Ke.keepAttr = !0, Ke.forceKeepAttr = void 0, Ye(R.uponSanitizeAttribute, ne, Ke), dn = Ke.attrValue, Z && (li === "id" || li === "name") && Fd(dn, se) !== 0 && (qn(en, ne), dn = se + dn), qe && yn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, dn)) {
|
|
5797
5797
|
qn(en, ne);
|
|
@@ -5866,9 +5866,9 @@ function Tm() {
|
|
|
5866
5866
|
if (!t.isSupported)
|
|
5867
5867
|
return ze;
|
|
5868
5868
|
if (st || Pt(ne), t.removed = [], typeof ze == "string" && (we = !1), we) {
|
|
5869
|
-
const
|
|
5870
|
-
if (typeof
|
|
5871
|
-
const li = ke(
|
|
5869
|
+
const Wn = ze.nodeName;
|
|
5870
|
+
if (typeof Wn == "string") {
|
|
5871
|
+
const li = ke(Wn);
|
|
5872
5872
|
if (!U[li] || ee[li])
|
|
5873
5873
|
throw Pr("root node is forbidden and cannot be sanitized in-place");
|
|
5874
5874
|
}
|
|
@@ -5891,10 +5891,10 @@ function Tm() {
|
|
|
5891
5891
|
if (le) {
|
|
5892
5892
|
if (Ne) {
|
|
5893
5893
|
Ae.normalize();
|
|
5894
|
-
let
|
|
5894
|
+
let Wn = Ae.innerHTML;
|
|
5895
5895
|
$o([M, W, H], (li) => {
|
|
5896
|
-
|
|
5897
|
-
}), Ae.innerHTML =
|
|
5896
|
+
Wn = Ro(Wn, li, " ");
|
|
5897
|
+
}), Ae.innerHTML = Wn;
|
|
5898
5898
|
}
|
|
5899
5899
|
if (ve)
|
|
5900
5900
|
for (cn = S.call(Ae.ownerDocument); Ae.firstChild; )
|
|
@@ -5905,8 +5905,8 @@ function Tm() {
|
|
|
5905
5905
|
}
|
|
5906
5906
|
let $n = Ue ? Ae.outerHTML : Ae.innerHTML;
|
|
5907
5907
|
return Ue && U["!doctype"] && Ae.ownerDocument && Ae.ownerDocument.doctype && Ae.ownerDocument.doctype.name && yn(wx, Ae.ownerDocument.doctype.name) && ($n = "<!DOCTYPE " + Ae.ownerDocument.doctype.name + `>
|
|
5908
|
-
` + $n), Ne && $o([M, W, H], (
|
|
5909
|
-
$n = Ro($n,
|
|
5908
|
+
` + $n), Ne && $o([M, W, H], (Wn) => {
|
|
5909
|
+
$n = Ro($n, Wn, " ");
|
|
5910
5910
|
}), k && $e ? k.createHTML($n) : $n;
|
|
5911
5911
|
}, t.setConfig = function() {
|
|
5912
5912
|
let ze = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -6884,7 +6884,7 @@ const va = /* @__PURE__ */ _e({
|
|
|
6884
6884
|
]);
|
|
6885
6885
|
};
|
|
6886
6886
|
}
|
|
6887
|
-
}),
|
|
6887
|
+
}), Bn = /* @__PURE__ */ Me(Gx, [["__scopeId", "data-v-a1c08c7f"]]), Hx = ["data-testid"], Wx = ["innerHTML"], Yx = /* @__PURE__ */ _e({
|
|
6888
6888
|
inheritAttrs: !1,
|
|
6889
6889
|
__name: "StringArrayField",
|
|
6890
6890
|
props: {
|
|
@@ -7063,7 +7063,7 @@ const va = /* @__PURE__ */ _e({
|
|
|
7063
7063
|
onClick: b
|
|
7064
7064
|
}, {
|
|
7065
7065
|
default: N(() => [
|
|
7066
|
-
E(u(
|
|
7066
|
+
E(u(zn))
|
|
7067
7067
|
]),
|
|
7068
7068
|
_: 1
|
|
7069
7069
|
}, 8, ["aria-label", "data-testid"])) : fe("", !0)
|
|
@@ -7130,7 +7130,7 @@ const va = /* @__PURE__ */ _e({
|
|
|
7130
7130
|
onClick: b
|
|
7131
7131
|
}, {
|
|
7132
7132
|
default: N(() => [
|
|
7133
|
-
E(u(
|
|
7133
|
+
E(u(zn)),
|
|
7134
7134
|
xe(" " + ie(u(o)("actions.add_entity", { entity: f.value })), 1)
|
|
7135
7135
|
]),
|
|
7136
7136
|
_: 1
|
|
@@ -7448,7 +7448,7 @@ const va = /* @__PURE__ */ _e({
|
|
|
7448
7448
|
size: u(ci)
|
|
7449
7449
|
}, null, 8, ["class", "data-testid", "size"])
|
|
7450
7450
|
], 8, cA),
|
|
7451
|
-
m.value ? fe("", !0) : (A(), X(u(
|
|
7451
|
+
m.value ? fe("", !0) : (A(), X(u(Gn), Be({
|
|
7452
7452
|
key: 0,
|
|
7453
7453
|
class: "ff-object-field-label",
|
|
7454
7454
|
"data-testid": `ff-label-${a.path.value}`
|
|
@@ -8001,7 +8001,7 @@ const va = /* @__PURE__ */ _e({
|
|
|
8001
8001
|
onClick: b
|
|
8002
8002
|
}, {
|
|
8003
8003
|
default: N(() => [
|
|
8004
|
-
E(u(
|
|
8004
|
+
E(u(zn)),
|
|
8005
8005
|
xe(" " + ie(u(n).t("actions.add_entity", { entity: u(p) })), 1)
|
|
8006
8006
|
]),
|
|
8007
8007
|
_: 1
|
|
@@ -8027,7 +8027,7 @@ const va = /* @__PURE__ */ _e({
|
|
|
8027
8027
|
case "string":
|
|
8028
8028
|
return "one_of" in n.schema.value ? Jt : gt;
|
|
8029
8029
|
case "boolean":
|
|
8030
|
-
return "one_of" in n.schema.value ? Jt :
|
|
8030
|
+
return "one_of" in n.schema.value ? Jt : Bn;
|
|
8031
8031
|
case "number":
|
|
8032
8032
|
case "integer":
|
|
8033
8033
|
return "one_of" in n.schema.value ? Jt : ln;
|
|
@@ -8219,7 +8219,7 @@ const va = /* @__PURE__ */ _e({
|
|
|
8219
8219
|
class: "ff-scope-entity-field",
|
|
8220
8220
|
"data-testid": `ff-${a.path.value}`
|
|
8221
8221
|
}, [
|
|
8222
|
-
u(r).label ? (A(), X(u(
|
|
8222
|
+
u(r).label ? (A(), X(u(Gn), mi(Be({ key: 0 }, u(r).labelAttributes)), {
|
|
8223
8223
|
default: N(() => [
|
|
8224
8224
|
xe(ie(u(r).label), 1)
|
|
8225
8225
|
]),
|
|
@@ -8431,7 +8431,7 @@ const JA = {
|
|
|
8431
8431
|
}, M = (B) => {
|
|
8432
8432
|
let $ = `${b.apiBaseUrl}${KA[b.app].getOne}`;
|
|
8433
8433
|
return b.app === "konnect" && ($ = $.replace(/{controlPlaneId}/gi, (b == null ? void 0 : b.controlPlaneId) || "")), $ = $.replace(/\/{workspace}/gi, b != null && b.workspace ? `/${b.workspace}` : "").replace(/{id}/gi, String(B)), $;
|
|
8434
|
-
}, { axiosInstance: W } =
|
|
8434
|
+
}, { axiosInstance: W } = Vn(b == null ? void 0 : b.axiosRequestConfig), H = () => {
|
|
8435
8435
|
f.value ? (y.value && (_.value = y.value, g.value = y.value[0].id, v.value = void 0), v != null && v.value && (h.value = v.value)) : (Object.keys(h.value).length && (v.value = h.value), _ != null && _.value && (y.value = _.value), _.value = s ? null : void 0);
|
|
8436
8436
|
}, Y = async (B) => {
|
|
8437
8437
|
if (B) {
|
|
@@ -11187,7 +11187,7 @@ function fo(e, t) {
|
|
|
11187
11187
|
if (zt(i) && (i.key === t || i.key === n || Nt(i.key) && i.key.value === n))
|
|
11188
11188
|
return i;
|
|
11189
11189
|
}
|
|
11190
|
-
class
|
|
11190
|
+
class Xn extends Tg {
|
|
11191
11191
|
static get tagName() {
|
|
11192
11192
|
return "tag:yaml.org,2002:map";
|
|
11193
11193
|
}
|
|
@@ -11279,12 +11279,12 @@ class Jn extends Tg {
|
|
|
11279
11279
|
const Ca = {
|
|
11280
11280
|
collection: "map",
|
|
11281
11281
|
default: !0,
|
|
11282
|
-
nodeClass:
|
|
11282
|
+
nodeClass: Xn,
|
|
11283
11283
|
tag: "tag:yaml.org,2002:map",
|
|
11284
11284
|
resolve(e, t) {
|
|
11285
11285
|
return wa(e) || t("Expected a mapping for this tag"), e;
|
|
11286
11286
|
},
|
|
11287
|
-
createNode: (e, t, n) =>
|
|
11287
|
+
createNode: (e, t, n) => Xn.from(e, t, n)
|
|
11288
11288
|
};
|
|
11289
11289
|
class bo extends Tg {
|
|
11290
11290
|
static get tagName() {
|
|
@@ -11652,7 +11652,7 @@ const cc = {
|
|
|
11652
11652
|
};
|
|
11653
11653
|
class ia extends bo {
|
|
11654
11654
|
constructor() {
|
|
11655
|
-
super(), this.add =
|
|
11655
|
+
super(), this.add = Xn.prototype.add.bind(this), this.delete = Xn.prototype.delete.bind(this), this.get = Xn.prototype.get.bind(this), this.has = Xn.prototype.has.bind(this), this.set = Xn.prototype.set.bind(this), this.tag = ia.tag;
|
|
11656
11656
|
}
|
|
11657
11657
|
/**
|
|
11658
11658
|
* If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
|
|
@@ -11801,7 +11801,7 @@ const QI = {
|
|
|
11801
11801
|
resolve: (e, t, n) => Ys(e, 2, 16, n),
|
|
11802
11802
|
stringify: (e) => fc(e, 16, "0x")
|
|
11803
11803
|
};
|
|
11804
|
-
let es = class Gg extends
|
|
11804
|
+
let es = class Gg extends Xn {
|
|
11805
11805
|
constructor(t) {
|
|
11806
11806
|
super(t), this.tag = Gg.tag;
|
|
11807
11807
|
}
|
|
@@ -12403,7 +12403,7 @@ function Xg(e, t, n) {
|
|
|
12403
12403
|
const hf = "All mapping items must start at the same column";
|
|
12404
12404
|
function sO({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
12405
12405
|
var r;
|
|
12406
|
-
const s = (a == null ? void 0 : a.nodeClass) ??
|
|
12406
|
+
const s = (a == null ? void 0 : a.nodeClass) ?? Xn, l = new s(n.schema);
|
|
12407
12407
|
n.atRoot && (n.atRoot = !1);
|
|
12408
12408
|
let c = i.offset, p = null;
|
|
12409
12409
|
for (const d of i.items) {
|
|
@@ -12504,7 +12504,7 @@ function Cr(e, t, n, i) {
|
|
|
12504
12504
|
const bl = "Block collections are not allowed within flow collections", wl = (e) => e && (e.type === "block-map" || e.type === "block-seq");
|
|
12505
12505
|
function uO({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
12506
12506
|
var r;
|
|
12507
|
-
const s = i.start.source === "{", l = s ? "flow map" : "flow sequence", c = (a == null ? void 0 : a.nodeClass) ?? (s ?
|
|
12507
|
+
const s = i.start.source === "{", l = s ? "flow map" : "flow sequence", c = (a == null ? void 0 : a.nodeClass) ?? (s ? Xn : bo), p = new c(n.schema);
|
|
12508
12508
|
p.flow = !0;
|
|
12509
12509
|
const d = n.atRoot;
|
|
12510
12510
|
d && (n.atRoot = !1), n.atKey && (n.atKey = !1);
|
|
@@ -12591,7 +12591,7 @@ function uO({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
12591
12591
|
const R = p;
|
|
12592
12592
|
Xg(n, R.items, K) && o(O, "DUPLICATE_KEY", "Map keys must be unique"), R.items.push(P);
|
|
12593
12593
|
} else {
|
|
12594
|
-
const R = new
|
|
12594
|
+
const R = new Xn(n.schema);
|
|
12595
12595
|
R.flow = !0, R.items.push(P);
|
|
12596
12596
|
const M = (x ?? K).range;
|
|
12597
12597
|
R.range = [K.range[0], M[1], M[2]], p.items.push(R);
|
|
@@ -12627,7 +12627,7 @@ function cO(e, t, n, i, o) {
|
|
|
12627
12627
|
h && (!g || g.offset < h.offset) && o(h, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
12628
12628
|
}
|
|
12629
12629
|
const l = n.type === "block-map" ? "map" : n.type === "block-seq" ? "seq" : n.start.source === "{" ? "map" : "seq";
|
|
12630
|
-
if (!r || !s || s === "!" || s ===
|
|
12630
|
+
if (!r || !s || s === "!" || s === Xn.tagName && l === "map" || s === bo.tagName && l === "seq")
|
|
12631
12631
|
return kl(e, t, n, o, s);
|
|
12632
12632
|
let c = t.schema.tags.find((m) => m.tag === s && m.collection === l);
|
|
12633
12633
|
if (!c) {
|
|
@@ -14738,7 +14738,7 @@ function Ef(e) {
|
|
|
14738
14738
|
}));
|
|
14739
14739
|
}
|
|
14740
14740
|
function JO(e, t) {
|
|
14741
|
-
const n = `kong.entities-plugins.codeEditor.command.${BO()}`, i = `${n}.copy`, o = `${n}.viewEntity`, { axiosInstance: a } =
|
|
14741
|
+
const n = `kong.entities-plugins.codeEditor.command.${BO()}`, i = `${n}.copy`, o = `${n}.viewEntity`, { axiosInstance: a } = Vn(t ?? e.axiosRequestConfig), r = Eo(), { i18n: { t: s } } = He(), { getSchemaMap: l } = ht(), c = GO();
|
|
14742
14742
|
function p(f, m) {
|
|
14743
14743
|
const g = /* @__PURE__ */ new Map(), h = new Pv(), y = `${n}.${f}.reloadCodeLensProvider`, _ = yc(m ?? [f], async (b, k) => {
|
|
14744
14744
|
const w = b == null ? void 0 : b.id;
|
|
@@ -15558,7 +15558,7 @@ const XO = {
|
|
|
15558
15558
|
},
|
|
15559
15559
|
setup(e) {
|
|
15560
15560
|
const t = e, n = On();
|
|
15561
|
-
return Xt(hi, n == null ? void 0 : n[
|
|
15561
|
+
return Xt(hi, n == null ? void 0 : n[Zn]), (i, o) => (A(), X(Si, mi(qi(t)), {
|
|
15562
15562
|
default: N(() => [
|
|
15563
15563
|
E(uN),
|
|
15564
15564
|
E(nn, {
|
|
@@ -15702,7 +15702,7 @@ const XO = {
|
|
|
15702
15702
|
},
|
|
15703
15703
|
setup(e) {
|
|
15704
15704
|
const t = e, n = On();
|
|
15705
|
-
return Xt(hi, n == null ? void 0 : n[
|
|
15705
|
+
return Xt(hi, n == null ? void 0 : n[Zn]), (i, o) => (A(), X(Si, mi(qi(t)), {
|
|
15706
15706
|
default: N(() => [
|
|
15707
15707
|
E(lh)
|
|
15708
15708
|
]),
|
|
@@ -15753,7 +15753,7 @@ const mN = dt({
|
|
|
15753
15753
|
},
|
|
15754
15754
|
setup(e) {
|
|
15755
15755
|
const t = e, n = On();
|
|
15756
|
-
Xt(hi, n == null ? void 0 : n[
|
|
15756
|
+
Xt(hi, n == null ? void 0 : n[Zn]);
|
|
15757
15757
|
const { i18n: { t: i } } = rt.useI18n();
|
|
15758
15758
|
return (o, a) => (A(), X(Si, mi(qi(t)), {
|
|
15759
15759
|
"field-renderers": N(() => [
|
|
@@ -15849,7 +15849,7 @@ const mN = dt({
|
|
|
15849
15849
|
}
|
|
15850
15850
|
}
|
|
15851
15851
|
return (g, h) => (A(), te("div", _N, [
|
|
15852
|
-
E(u(
|
|
15852
|
+
E(u(Gn), { "data-testid": "ff-kong-identity-label" }, {
|
|
15853
15853
|
default: N(() => [
|
|
15854
15854
|
xe(ie(u(i)("custom_field.kong_identity.title")), 1)
|
|
15855
15855
|
]),
|
|
@@ -15912,7 +15912,7 @@ const mN = dt({
|
|
|
15912
15912
|
}), CN = /* @__PURE__ */ Me(EN, [["__scopeId", "data-v-bc741fbb"]]), ch = Symbol("fetched-realms"), xN = /* @__PURE__ */ _e({
|
|
15913
15913
|
__name: "ConfigFormContent",
|
|
15914
15914
|
setup(e) {
|
|
15915
|
-
const t = At(gi), n = D(() => (t == null ? void 0 : t.app) === "konnect"), { axiosInstance: i } =
|
|
15915
|
+
const t = At(gi), n = D(() => (t == null ? void 0 : t.app) === "konnect"), { axiosInstance: i } = Vn(t == null ? void 0 : t.axiosRequestConfig), { formData: o, getSchema: a } = ht(), r = ae([]), s = ae(!1);
|
|
15916
15916
|
ii(async () => {
|
|
15917
15917
|
var y;
|
|
15918
15918
|
if (!((t == null ? void 0 : t.app) !== "konnect" || !c.value))
|
|
@@ -16004,7 +16004,7 @@ const mN = dt({
|
|
|
16004
16004
|
},
|
|
16005
16005
|
setup(e) {
|
|
16006
16006
|
const t = e, n = On();
|
|
16007
|
-
return Xt(hi, n == null ? void 0 : n[
|
|
16007
|
+
return Xt(hi, n == null ? void 0 : n[Zn]), (i, o) => (A(), X(Si, mi(qi(t)), {
|
|
16008
16008
|
default: N(() => [
|
|
16009
16009
|
E(AN)
|
|
16010
16010
|
]),
|
|
@@ -21644,7 +21644,7 @@ const IP = {
|
|
|
21644
21644
|
const U = D(() => {
|
|
21645
21645
|
if (e.mode === "preview") return [];
|
|
21646
21646
|
const I = [
|
|
21647
|
-
{ name: "zoom_in", icon:
|
|
21647
|
+
{ name: "zoom_in", icon: zn, action: O, disabled: S.value.zoom >= x.value },
|
|
21648
21648
|
{ name: "zoom_out", icon: Is, action: K, disabled: S.value.zoom <= P.value },
|
|
21649
21649
|
{ name: "fit_view", icon: Ky, action: d }
|
|
21650
21650
|
];
|
|
@@ -21951,7 +21951,7 @@ const IP = {
|
|
|
21951
21951
|
key: `${y}-${_}`,
|
|
21952
21952
|
class: "connection"
|
|
21953
21953
|
}, [
|
|
21954
|
-
E(u(
|
|
21954
|
+
E(u(zn), { color: u(Vv) }, null, 8, ["color"]),
|
|
21955
21955
|
xe(" " + ie(y) + " → " + ie(_), 1)
|
|
21956
21956
|
]))), 128)),
|
|
21957
21957
|
(A(!0), te(Fe, null, Xe(l.value ?? [], ([y, _]) => (A(), te("div", {
|
|
@@ -22138,7 +22138,7 @@ const IP = {
|
|
|
22138
22138
|
}),
|
|
22139
22139
|
m[0] || (m[0] = J("div", { class: "divider" }, null, -1)),
|
|
22140
22140
|
J("div", _R, [
|
|
22141
|
-
E(
|
|
22141
|
+
E(Bn, {
|
|
22142
22142
|
label: u(t)("plugins.free-form.datakit.flow_editor.debug.label"),
|
|
22143
22143
|
"label-attributes": {
|
|
22144
22144
|
info: u(t)("plugins.free-form.datakit.flow_editor.debug.description"),
|
|
@@ -22513,7 +22513,7 @@ const KR = /* @__PURE__ */ _e({
|
|
|
22513
22513
|
onClick: h
|
|
22514
22514
|
}, {
|
|
22515
22515
|
default: N(() => [
|
|
22516
|
-
E(u(
|
|
22516
|
+
E(u(zn)),
|
|
22517
22517
|
xe(" " + ie(u(m)("plugins.free-form.datakit.flow_editor.panel_segments.resources.vault.add_button")), 1)
|
|
22518
22518
|
]),
|
|
22519
22519
|
_: 1
|
|
@@ -22757,7 +22757,7 @@ const YR = { key: 1 }, JR = ["innerHTML"], XR = { class: "horizontal-container"
|
|
|
22757
22757
|
onClick: g
|
|
22758
22758
|
}, {
|
|
22759
22759
|
default: N(() => [
|
|
22760
|
-
E(u(
|
|
22760
|
+
E(u(zn)),
|
|
22761
22761
|
xe(" " + ie(u(s)("plugins.free-form.datakit.flow_editor.panel_segments.resources.cache.add_button")), 1)
|
|
22762
22762
|
]),
|
|
22763
22763
|
_: 1
|
|
@@ -23218,6 +23218,11 @@ const AM = z.string().min(1).max(255).refine((e) => {
|
|
|
23218
23218
|
content_type: z.enum(["application/json", "text/plain", "application/octet-stream"]).nullish(),
|
|
23219
23219
|
/** The property name to get/set. */
|
|
23220
23220
|
property: z.string().min(1).max(255),
|
|
23221
|
+
/**
|
|
23222
|
+
* When true, the property value must exist: in SET mode, input must not be
|
|
23223
|
+
* nil/null; in GET mode, output must not be nil/null.
|
|
23224
|
+
*/
|
|
23225
|
+
non_nil: z.boolean().default(!1).nullish(),
|
|
23221
23226
|
inputs: z.never().nullish(),
|
|
23222
23227
|
outputs: z.never().nullish()
|
|
23223
23228
|
}).strict(), UM = ai.safeExtend({
|
|
@@ -23452,6 +23457,7 @@ const ri = z.object({
|
|
|
23452
23457
|
}).strict(), sL = ri.safeExtend({
|
|
23453
23458
|
type: z.literal("property"),
|
|
23454
23459
|
content_type: z.string().nullish(),
|
|
23460
|
+
non_nil: z.boolean().nullish(),
|
|
23455
23461
|
property: z.string().nullish(),
|
|
23456
23462
|
inputs: z.never().nullish(),
|
|
23457
23463
|
outputs: z.never().nullish()
|
|
@@ -23766,7 +23772,7 @@ const ri = z.object({
|
|
|
23766
23772
|
onClick: C
|
|
23767
23773
|
}, {
|
|
23768
23774
|
default: N(() => [
|
|
23769
|
-
E(u(
|
|
23775
|
+
E(u(zn)),
|
|
23770
23776
|
xe(" " + ie(u(d)("plugins.free-form.datakit.flow_editor.node_properties.input.add_button")), 1)
|
|
23771
23777
|
]),
|
|
23772
23778
|
_: 1
|
|
@@ -23818,7 +23824,7 @@ const ri = z.object({
|
|
|
23818
23824
|
n("rename:field", f, m);
|
|
23819
23825
|
}
|
|
23820
23826
|
return (f, m) => (A(), te(Fe, null, [
|
|
23821
|
-
E(u(
|
|
23827
|
+
E(u(Gn), {
|
|
23822
23828
|
class: "dk-inputs-field-h1",
|
|
23823
23829
|
info: u(o)("plugins.free-form.datakit.flow_editor.node_properties.input.tooltip")
|
|
23824
23830
|
}, {
|
|
@@ -23851,7 +23857,7 @@ const ri = z.object({
|
|
|
23851
23857
|
r.value ? (A(), te("div", TL, [
|
|
23852
23858
|
J("span", null, ie(u(o)("plugins.free-form.datakit.flow_editor.node_properties.input.or")), 1)
|
|
23853
23859
|
])) : fe("", !0),
|
|
23854
|
-
r.value ? (A(), X(u(
|
|
23860
|
+
r.value ? (A(), X(u(Gn), {
|
|
23855
23861
|
key: 2,
|
|
23856
23862
|
class: "dk-inputs-field-h2 dk-margin-0"
|
|
23857
23863
|
}, {
|
|
@@ -23878,7 +23884,7 @@ const ri = z.object({
|
|
|
23878
23884
|
}, 16, ["items", "key-order"])) : fe("", !0)
|
|
23879
23885
|
], 64));
|
|
23880
23886
|
}
|
|
23881
|
-
}),
|
|
23887
|
+
}), Hn = /* @__PURE__ */ Me(SL, [["__scopeId", "data-v-4f1ce4e7"]]), IL = {}, OL = { class: "dk-node-form-divider" };
|
|
23882
23888
|
function NL(e, t) {
|
|
23883
23889
|
return A(), te("hr", OL);
|
|
23884
23890
|
}
|
|
@@ -24556,12 +24562,12 @@ const si = /* @__PURE__ */ _e({
|
|
|
24556
24562
|
name: "ssl_server_name",
|
|
24557
24563
|
"onUpdate:modelValue": v[1] || (v[1] = (b) => u(r)("ssl_server_name"))
|
|
24558
24564
|
}),
|
|
24559
|
-
E(
|
|
24565
|
+
E(Bn, {
|
|
24560
24566
|
name: "ssl_verify",
|
|
24561
24567
|
"onUpdate:modelValue": v[2] || (v[2] = (b) => u(r)("ssl_verify"))
|
|
24562
24568
|
}),
|
|
24563
24569
|
E(vi),
|
|
24564
|
-
E(
|
|
24570
|
+
E(Hn, {
|
|
24565
24571
|
"field-name-validator": u(m),
|
|
24566
24572
|
"field-names": u(p),
|
|
24567
24573
|
items: u(s),
|
|
@@ -24594,7 +24600,7 @@ const si = /* @__PURE__ */ _e({
|
|
|
24594
24600
|
schema: u(n)
|
|
24595
24601
|
}, {
|
|
24596
24602
|
default: N(() => [
|
|
24597
|
-
E(
|
|
24603
|
+
E(Hn, {
|
|
24598
24604
|
"field-name-validator": u(l),
|
|
24599
24605
|
"field-names": u(s),
|
|
24600
24606
|
items: u(o),
|
|
@@ -24626,7 +24632,7 @@ const si = /* @__PURE__ */ _e({
|
|
|
24626
24632
|
schema: u(n)
|
|
24627
24633
|
}, {
|
|
24628
24634
|
default: N(() => [
|
|
24629
|
-
E(
|
|
24635
|
+
E(Hn, {
|
|
24630
24636
|
"field-name-validator": u(l),
|
|
24631
24637
|
"field-names": u(s),
|
|
24632
24638
|
items: u(o),
|
|
@@ -24732,7 +24738,7 @@ const si = /* @__PURE__ */ _e({
|
|
|
24732
24738
|
_: 1
|
|
24733
24739
|
}, 8, ["error", "error-message", "label", "onBlur", "onUpdate:modelValue"]),
|
|
24734
24740
|
E(vi),
|
|
24735
|
-
E(
|
|
24741
|
+
E(Hn, {
|
|
24736
24742
|
"field-name-validator": u(_),
|
|
24737
24743
|
"field-names": u(g),
|
|
24738
24744
|
items: u(l),
|
|
@@ -24925,7 +24931,7 @@ const si = /* @__PURE__ */ _e({
|
|
|
24925
24931
|
onClick: C
|
|
24926
24932
|
}, {
|
|
24927
24933
|
default: N(() => [
|
|
24928
|
-
E(u(
|
|
24934
|
+
E(u(zn)),
|
|
24929
24935
|
xe(" " + ie(u(s).t("plugins.free-form.datakit.flow_editor.node_properties.output_value.add_button")), 1)
|
|
24930
24936
|
]),
|
|
24931
24937
|
_: 1
|
|
@@ -25220,8 +25226,12 @@ const WL = /* @__PURE__ */ _e({
|
|
|
25220
25226
|
"onUpdate:modelValue": _,
|
|
25221
25227
|
"onUpdate:propertyKey": b[1] || (b[1] = (k) => u(l)("property-key"))
|
|
25222
25228
|
}, null, 8, ["validators"]),
|
|
25229
|
+
E(Bn, {
|
|
25230
|
+
name: "non_nil",
|
|
25231
|
+
"onUpdate:modelValue": b[2] || (b[2] = (k) => u(l)("non_nil"))
|
|
25232
|
+
}),
|
|
25223
25233
|
y.value ? (A(), X(vi, { key: 0 })) : fe("", !0),
|
|
25224
|
-
y.value ? (A(), X(
|
|
25234
|
+
y.value ? (A(), X(Hn, {
|
|
25225
25235
|
key: 1,
|
|
25226
25236
|
"field-name-validator": u(h),
|
|
25227
25237
|
"field-names": u(f),
|
|
@@ -25283,12 +25293,12 @@ const WL = /* @__PURE__ */ _e({
|
|
|
25283
25293
|
onBlur: u(g).validate,
|
|
25284
25294
|
"onUpdate:modelValue": u(g).update
|
|
25285
25295
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25286
|
-
E(
|
|
25296
|
+
E(Bn, {
|
|
25287
25297
|
name: "warn_headers_sent",
|
|
25288
25298
|
"onUpdate:modelValue": y[0] || (y[0] = (_) => u(a)())
|
|
25289
25299
|
}),
|
|
25290
25300
|
E(vi),
|
|
25291
|
-
E(
|
|
25301
|
+
E(Hn, {
|
|
25292
25302
|
"field-name-validator": u(f),
|
|
25293
25303
|
"field-names": u(c),
|
|
25294
25304
|
items: u(r),
|
|
@@ -25412,7 +25422,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25412
25422
|
validate: u(l),
|
|
25413
25423
|
onUpdate: u(a)
|
|
25414
25424
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25415
|
-
E(u(
|
|
25425
|
+
E(u(Gn), { class: "dk-node-configuration-label" }, {
|
|
25416
25426
|
default: N(() => [
|
|
25417
25427
|
xe(ie(u(t)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25418
25428
|
]),
|
|
@@ -25443,7 +25453,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25443
25453
|
_: 1
|
|
25444
25454
|
}, 8, ["items"]),
|
|
25445
25455
|
E(vi),
|
|
25446
|
-
E(
|
|
25456
|
+
E(Hn, {
|
|
25447
25457
|
"field-name-validator": u(f),
|
|
25448
25458
|
"field-names": u(d),
|
|
25449
25459
|
items: u(r),
|
|
@@ -25497,13 +25507,13 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25497
25507
|
validate: u(d),
|
|
25498
25508
|
onUpdate: u(a)
|
|
25499
25509
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25500
|
-
E(u(
|
|
25510
|
+
E(u(Gn), { class: "dk-node-configuration-label" }, {
|
|
25501
25511
|
default: N(() => [
|
|
25502
25512
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25503
25513
|
]),
|
|
25504
25514
|
_: 1
|
|
25505
25515
|
}),
|
|
25506
|
-
E(
|
|
25516
|
+
E(Bn, {
|
|
25507
25517
|
name: "bypass_on_error",
|
|
25508
25518
|
"onUpdate:modelValue": _[0] || (_[0] = (v) => u(r)("bypass_on_error"))
|
|
25509
25519
|
}),
|
|
@@ -25515,7 +25525,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25515
25525
|
"onUpdate:modelValue": u(h).update
|
|
25516
25526
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25517
25527
|
E(vi),
|
|
25518
|
-
E(
|
|
25528
|
+
E(Hn, {
|
|
25519
25529
|
"field-name-validator": u(m),
|
|
25520
25530
|
"field-names": u(p),
|
|
25521
25531
|
items: u(s),
|
|
@@ -25590,13 +25600,13 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25590
25600
|
validate: u(d),
|
|
25591
25601
|
onUpdate: u(a)
|
|
25592
25602
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25593
|
-
E(u(
|
|
25603
|
+
E(u(Gn), { class: "dk-node-configuration-label" }, {
|
|
25594
25604
|
default: N(() => [
|
|
25595
25605
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25596
25606
|
]),
|
|
25597
25607
|
_: 1
|
|
25598
25608
|
}),
|
|
25599
|
-
E(
|
|
25609
|
+
E(Bn, {
|
|
25600
25610
|
name: "recognize_type",
|
|
25601
25611
|
"onUpdate:modelValue": K[0] || (K[0] = (S) => u(r)("recognize_type"))
|
|
25602
25612
|
}),
|
|
@@ -25621,7 +25631,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25621
25631
|
onBlur: u(C).validate,
|
|
25622
25632
|
"onUpdate:modelValue": u(C).update
|
|
25623
25633
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25624
|
-
E(
|
|
25634
|
+
E(Bn, {
|
|
25625
25635
|
name: "text_as_property",
|
|
25626
25636
|
"onUpdate:modelValue": K[1] || (K[1] = (S) => u(r)("text_as_property"))
|
|
25627
25637
|
}),
|
|
@@ -25633,7 +25643,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25633
25643
|
"onUpdate:modelValue": u(b).update
|
|
25634
25644
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25635
25645
|
E(vi),
|
|
25636
|
-
E(
|
|
25646
|
+
E(Hn, {
|
|
25637
25647
|
"field-name-validator": u(m),
|
|
25638
25648
|
"field-names": u(p),
|
|
25639
25649
|
items: u(s),
|
|
@@ -25717,7 +25727,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25717
25727
|
validate: u(g),
|
|
25718
25728
|
onUpdate: u(a)
|
|
25719
25729
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25720
|
-
E(u(
|
|
25730
|
+
E(u(Gn), { class: "dk-node-configuration-label" }, {
|
|
25721
25731
|
default: N(() => [
|
|
25722
25732
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25723
25733
|
]),
|
|
@@ -25752,7 +25762,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25752
25762
|
"onUpdate:modelValue": u(T).update
|
|
25753
25763
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25754
25764
|
E(vi),
|
|
25755
|
-
E(
|
|
25765
|
+
E(Hn, {
|
|
25756
25766
|
"field-name-validator": u(y),
|
|
25757
25767
|
"field-names": u(m),
|
|
25758
25768
|
items: u(s),
|
|
@@ -25795,7 +25805,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25795
25805
|
onUpdate: u(o)
|
|
25796
25806
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25797
25807
|
E(vi),
|
|
25798
|
-
E(
|
|
25808
|
+
E(Hn, {
|
|
25799
25809
|
"field-name-validator": u(p),
|
|
25800
25810
|
"field-names": u(l),
|
|
25801
25811
|
items: u(a),
|
|
@@ -25859,7 +25869,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25859
25869
|
validate: u(d),
|
|
25860
25870
|
onUpdate: u(a)
|
|
25861
25871
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25862
|
-
E(u(
|
|
25872
|
+
E(u(Gn), { class: "dk-node-configuration-label" }, {
|
|
25863
25873
|
default: N(() => [
|
|
25864
25874
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25865
25875
|
]),
|
|
@@ -25898,7 +25908,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25898
25908
|
onLegacyValueChange: C[2] || (C[2] = (b) => u(r)("static_claims"))
|
|
25899
25909
|
}, null, 8, ["label"]),
|
|
25900
25910
|
E(vi),
|
|
25901
|
-
E(
|
|
25911
|
+
E(Hn, {
|
|
25902
25912
|
"field-name-validator": u(m),
|
|
25903
25913
|
"field-names": u(p),
|
|
25904
25914
|
items: u(s),
|
|
@@ -25952,7 +25962,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25952
25962
|
validate: u(d),
|
|
25953
25963
|
onUpdate: u(a)
|
|
25954
25964
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25955
|
-
E(u(
|
|
25965
|
+
E(u(Gn), { class: "dk-node-configuration-label" }, {
|
|
25956
25966
|
default: N(() => [
|
|
25957
25967
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25958
25968
|
]),
|
|
@@ -26013,16 +26023,16 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26013
26023
|
onBlur: u(h).validate,
|
|
26014
26024
|
"onUpdate:modelValue": u(h).update
|
|
26015
26025
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
26016
|
-
E(
|
|
26026
|
+
E(Bn, {
|
|
26017
26027
|
name: "validate_exp",
|
|
26018
26028
|
"onUpdate:modelValue": _[10] || (_[10] = (v) => u(r)("validate_exp"))
|
|
26019
26029
|
}),
|
|
26020
|
-
E(
|
|
26030
|
+
E(Bn, {
|
|
26021
26031
|
name: "validate_nbf",
|
|
26022
26032
|
"onUpdate:modelValue": _[11] || (_[11] = (v) => u(r)("validate_nbf"))
|
|
26023
26033
|
}),
|
|
26024
26034
|
E(vi),
|
|
26025
|
-
E(
|
|
26035
|
+
E(Hn, {
|
|
26026
26036
|
"field-name-validator": u(m),
|
|
26027
26037
|
"field-names": u(p),
|
|
26028
26038
|
items: u(s),
|
|
@@ -26560,7 +26570,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26560
26570
|
["config.channel_token_signing", "config.channel_token_upstream_header", "config.channel_token_keyset"]
|
|
26561
26571
|
]
|
|
26562
26572
|
}, i = On();
|
|
26563
|
-
return Xt(hi, i == null ? void 0 : i[
|
|
26573
|
+
return Xt(hi, i == null ? void 0 : i[Zn]), (o, a) => (A(), X(Si, Be(t, { "render-rules": n }), {
|
|
26564
26574
|
"field-renderers": N(() => [
|
|
26565
26575
|
E(Bt, {
|
|
26566
26576
|
match: ({ path: r }) => r === "config.access_token_keyset"
|
|
@@ -26677,7 +26687,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26677
26687
|
size: u(ci)
|
|
26678
26688
|
}, null, 8, ["class", "size"])
|
|
26679
26689
|
]),
|
|
26680
|
-
E(u(
|
|
26690
|
+
E(u(Gn), { class: "ff-collapsible-section-label" }, {
|
|
26681
26691
|
default: N(() => [
|
|
26682
26692
|
xe(ie(e.label), 1)
|
|
26683
26693
|
]),
|
|
@@ -26720,7 +26730,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26720
26730
|
},
|
|
26721
26731
|
setup(e) {
|
|
26722
26732
|
const t = e, n = On();
|
|
26723
|
-
Xt(hi, n == null ? void 0 : n[
|
|
26733
|
+
Xt(hi, n == null ? void 0 : n[Zn]);
|
|
26724
26734
|
const { i18n: { t: i } } = He(), o = At(gi), a = D(() => {
|
|
26725
26735
|
const p = o == null ? void 0 : o.geoApiServerUrl, d = p ? new URL(p).hostname.split(".")[0] : null;
|
|
26726
26736
|
return d ? `https://${d}.api.konghq.com/v3/openmeter/events` : "https://{{region}}.api.konghq.com/v3/openmeter/events";
|
|
@@ -26743,7 +26753,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26743
26753
|
match: ({ path: f }) => f === "config.meter_api_requests"
|
|
26744
26754
|
}, {
|
|
26745
26755
|
default: N((f) => [
|
|
26746
|
-
E(
|
|
26756
|
+
E(Bn, Be(f, {
|
|
26747
26757
|
description: u(i)("plugins.free-form.metering-and-billing.fields.meter_api_requests.description")
|
|
26748
26758
|
}), null, 16, ["description"])
|
|
26749
26759
|
]),
|
|
@@ -26753,7 +26763,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26753
26763
|
match: ({ path: f }) => f === "config.meter_ai_token_usage"
|
|
26754
26764
|
}, {
|
|
26755
26765
|
default: N((f) => [
|
|
26756
|
-
E(
|
|
26766
|
+
E(Bn, Be(f, {
|
|
26757
26767
|
description: u(i)("plugins.free-form.metering-and-billing.fields.meter_ai_token_usage.description")
|
|
26758
26768
|
}), null, 16, ["description"])
|
|
26759
26769
|
]),
|
|
@@ -26763,7 +26773,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26763
26773
|
match: ({ path: f }) => f === "config.ssl_verify"
|
|
26764
26774
|
}, {
|
|
26765
26775
|
default: N((f) => [
|
|
26766
|
-
E(
|
|
26776
|
+
E(Bn, Be(f, {
|
|
26767
26777
|
description: u(i)("plugins.free-form.metering-and-billing.fields.ssl_verify.description"),
|
|
26768
26778
|
label: u(i)("plugins.free-form.metering-and-billing.fields.ssl_verify.label")
|
|
26769
26779
|
}), null, 16, ["description", "label"])
|
|
@@ -26939,7 +26949,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26939
26949
|
}, {
|
|
26940
26950
|
default: N(() => [
|
|
26941
26951
|
J("div", tF, [
|
|
26942
|
-
E(u(
|
|
26952
|
+
E(u(Gn), { class: "ff-mb-queue-label" }, {
|
|
26943
26953
|
default: N(() => [
|
|
26944
26954
|
xe(ie(u(i)("plugins.free-form.metering-and-billing.sections.queue.title")), 1)
|
|
26945
26955
|
]),
|
|
@@ -27167,7 +27177,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
27167
27177
|
onClick: () => s(K)
|
|
27168
27178
|
}, {
|
|
27169
27179
|
default: N(() => [
|
|
27170
|
-
E(u(
|
|
27180
|
+
E(u(zn))
|
|
27171
27181
|
]),
|
|
27172
27182
|
_: 1
|
|
27173
27183
|
}, 8, ["onClick"])
|
|
@@ -27345,7 +27355,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
27345
27355
|
},
|
|
27346
27356
|
setup(e) {
|
|
27347
27357
|
const t = e, n = On();
|
|
27348
|
-
Xt(hi, n == null ? void 0 : n[
|
|
27358
|
+
Xt(hi, n == null ? void 0 : n[Zn]);
|
|
27349
27359
|
function i(o, a) {
|
|
27350
27360
|
var r;
|
|
27351
27361
|
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace, t.onFormChange(o, a);
|
|
@@ -27522,7 +27532,7 @@ const Ya = "_callout_id", NF = /* @__PURE__ */ _e({
|
|
|
27522
27532
|
},
|
|
27523
27533
|
setup(e) {
|
|
27524
27534
|
const t = e, n = On();
|
|
27525
|
-
Xt(hi, n == null ? void 0 : n[
|
|
27535
|
+
Xt(hi, n == null ? void 0 : n[Zn]);
|
|
27526
27536
|
const { i18n: { t: i } } = He();
|
|
27527
27537
|
function o(l, c = !1) {
|
|
27528
27538
|
return l.reduce((p, { [Ya]: d, name: f }) => (c ? p[f] = d : p[d] = f, p), {});
|
|
@@ -27785,7 +27795,7 @@ const Ya = "_callout_id", NF = /* @__PURE__ */ _e({
|
|
|
27785
27795
|
onClick: () => s(K)
|
|
27786
27796
|
}, {
|
|
27787
27797
|
default: N(() => [
|
|
27788
|
-
E(u(
|
|
27798
|
+
E(u(zn))
|
|
27789
27799
|
]),
|
|
27790
27800
|
_: 1
|
|
27791
27801
|
}, 8, ["onClick"])
|
|
@@ -27948,7 +27958,7 @@ const Ya = "_callout_id", NF = /* @__PURE__ */ _e({
|
|
|
27948
27958
|
},
|
|
27949
27959
|
setup(e) {
|
|
27950
27960
|
const t = e, n = On();
|
|
27951
|
-
Xt(hi, n == null ? void 0 : n[
|
|
27961
|
+
Xt(hi, n == null ? void 0 : n[Zn]);
|
|
27952
27962
|
function i(o, a) {
|
|
27953
27963
|
var r;
|
|
27954
27964
|
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace, t.onFormChange(o, a);
|
|
@@ -28368,7 +28378,7 @@ const ty = (e) => {
|
|
|
28368
28378
|
P.forEach((q) => {
|
|
28369
28379
|
c(S[q], q, S, W, M, O);
|
|
28370
28380
|
});
|
|
28371
|
-
const H = W.name, Y = w._sourcePlugin || H, V =
|
|
28381
|
+
const H = W.name, Y = w._sourcePlugin || H, V = Yn[Y], B = [], $ = (q) => {
|
|
28372
28382
|
const Q = ["cluster-cache"];
|
|
28373
28383
|
for (const U of Q)
|
|
28374
28384
|
if (q.model.includes(U))
|
|
@@ -28739,7 +28749,7 @@ const rt = {
|
|
|
28739
28749
|
"response-transformer",
|
|
28740
28750
|
"route-by-header",
|
|
28741
28751
|
"tcp-log"
|
|
28742
|
-
], i = ["installed", "streamed", "cloned"], o = e, a = t, { i18n: { t: r }, i18nT: s } = rt.useI18n(), l = Eo(), { getMessageFromError: c } = io(), { axiosInstance: p } =
|
|
28752
|
+
], i = ["installed", "streamed", "cloned"], o = e, a = t, { i18n: { t: r }, i18nT: s } = rt.useI18n(), l = Eo(), { getMessageFromError: c } = io(), { axiosInstance: p } = Vn((me = o.config) == null ? void 0 : me.axiosRequestConfig), {
|
|
28743
28753
|
createInstalledPlugin: d,
|
|
28744
28754
|
updateInstalledPlugin: f,
|
|
28745
28755
|
createStreamedPlugin: m,
|
|
@@ -28833,7 +28843,7 @@ const rt = {
|
|
|
28833
28843
|
if (re.length === 0) return [];
|
|
28834
28844
|
const ce = {};
|
|
28835
28845
|
re.forEach((Ne) => {
|
|
28836
|
-
const qe =
|
|
28846
|
+
const qe = Yn[Ne], Ue = qe == null ? void 0 : qe.group;
|
|
28837
28847
|
Ue ? (ce[Ue] || (ce[Ue] = []), ce[Ue].push({
|
|
28838
28848
|
label: Q(Ne),
|
|
28839
28849
|
value: Ne
|
|
@@ -29574,7 +29584,7 @@ function bK(e) {
|
|
|
29574
29584
|
return oy(n), t.fields = n.fields, t;
|
|
29575
29585
|
}
|
|
29576
29586
|
function wK(e, t) {
|
|
29577
|
-
const n =
|
|
29587
|
+
const n = Yn[e];
|
|
29578
29588
|
if (!n || !n.fieldRules)
|
|
29579
29589
|
return t;
|
|
29580
29590
|
const i = kK(n.fieldRules), o = { ...t };
|
|
@@ -29722,7 +29732,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
29722
29732
|
if (i.config.app !== "konnect") return !1;
|
|
29723
29733
|
const ue = i.config;
|
|
29724
29734
|
return !!ue.isKonnectManagedRedisEnabled && ue.isCloudGateway === !0;
|
|
29725
|
-
}), a = At(ta.KM_2306_CONDITION_FIELD_314, !1), { axiosInstance: r } =
|
|
29735
|
+
}), a = At(ta.KM_2306_CONDITION_FIELD_314, !1), { axiosInstance: r } = Vn((Ue = i.config) == null ? void 0 : Ue.axiosRequestConfig), { parseSchema: s } = rt.useSchemas({
|
|
29726
29736
|
entityId: ((st = i.entityMap.focusedEntity) == null ? void 0 : st.id) || void 0,
|
|
29727
29737
|
credential: i.credential,
|
|
29728
29738
|
enableRedisPartial: i.enableRedisPartial,
|
|
@@ -30070,7 +30080,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30070
30080
|
onGlobalAction: le[0] || (le[0] = (se, ge) => ue.$emit("globalAction", se, ge))
|
|
30071
30081
|
}, St({ _: 2 }, [
|
|
30072
30082
|
e.enableVaultSecretPicker ? {
|
|
30073
|
-
name: u(
|
|
30083
|
+
name: u(Zn),
|
|
30074
30084
|
fn: N((se) => [
|
|
30075
30085
|
se.schema.referenceable ? (A(), X(u(ol), Be({ key: 0 }, se, { onOpen: q }), null, 16)) : fe("", !0)
|
|
30076
30086
|
]),
|
|
@@ -30089,7 +30099,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30089
30099
|
"show-new-partial-modal": (se) => ue.$emit("showNewPartialModal", se)
|
|
30090
30100
|
}, St({ _: 2 }, [
|
|
30091
30101
|
e.enableVaultSecretPicker ? {
|
|
30092
|
-
name: u(
|
|
30102
|
+
name: u(Zn),
|
|
30093
30103
|
fn: N((se) => [
|
|
30094
30104
|
se.schema.referenceable ? (A(), X(u(ol), Be({ key: 0 }, se, { onOpen: q }), null, 16)) : fe("", !0)
|
|
30095
30105
|
]),
|
|
@@ -30113,17 +30123,17 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30113
30123
|
]),
|
|
30114
30124
|
_: 2
|
|
30115
30125
|
}, [
|
|
30116
|
-
(Z = u(
|
|
30126
|
+
(Z = u(Yn)[H.name]) != null && Z.fieldRules && (i.config.isNewOtelSchema || H.name !== "opentelemetry") ? {
|
|
30117
30127
|
name: "plugin-config-before-content",
|
|
30118
30128
|
fn: N(() => [
|
|
30119
30129
|
E(mK, {
|
|
30120
|
-
rules: u(
|
|
30130
|
+
rules: u(Yn)[H.name].fieldRules
|
|
30121
30131
|
}, null, 8, ["rules"])
|
|
30122
30132
|
]),
|
|
30123
30133
|
key: "0"
|
|
30124
30134
|
} : void 0,
|
|
30125
30135
|
e.enableVaultSecretPicker ? {
|
|
30126
|
-
name: u(
|
|
30136
|
+
name: u(Zn),
|
|
30127
30137
|
fn: N((se) => [
|
|
30128
30138
|
se.schema.referenceable ? (A(), X(u(ol), Be({ key: 0 }, se, { onOpen: q }), null, 16)) : fe("", !0)
|
|
30129
30139
|
]),
|
|
@@ -30272,8 +30282,8 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30272
30282
|
app: r.config.app,
|
|
30273
30283
|
credential: r.credential,
|
|
30274
30284
|
experimentalRenders: r.config.app === "konnect" ? r.config.experimentalRenders : void 0
|
|
30275
|
-
}), { formatPluginFieldLabel: d } = rt.usePluginHelpers(), { shouldUseFreeForm: f } = rt.useFreeFormResolver(), { getMessageFromError: m } = io(), { capitalize: g } = bu(), { objectsAreEqual: h } = hr(), { axiosInstance: y } =
|
|
30276
|
-
axiosInstance:
|
|
30285
|
+
}), { formatPluginFieldLabel: d } = rt.usePluginHelpers(), { shouldUseFreeForm: f } = rt.useFreeFormResolver(), { getMessageFromError: m } = io(), { capitalize: g } = bu(), { objectsAreEqual: h } = hr(), { axiosInstance: y } = Vn((Ft = r.config) == null ? void 0 : Ft.axiosRequestConfig), { getClonedPlugin: _ } = rt.useCustomPluginApi({
|
|
30286
|
+
axiosInstance: Vn({
|
|
30277
30287
|
...((sn = r.config) == null ? void 0 : sn.axiosRequestConfig) ?? {},
|
|
30278
30288
|
konnect: { bypassGlobal404Handler: !0 }
|
|
30279
30289
|
// force bypassGlobal404Handler for this call
|
|
@@ -30338,7 +30348,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30338
30348
|
return G = G.replace(/{resourceEndpoint}/gi, re.value), G;
|
|
30339
30349
|
}
|
|
30340
30350
|
let Ee;
|
|
30341
|
-
return r.config.entityType && r.config.entityId ? Ee = et.form[r.config.app].edit.forEntity.replace(/{entityType}/gi, r.config.entityType).replace(/{entityId}/gi, r.config.entityId) : Ee = et.form[r.config.app].edit.all, r.config.app === "konnect" && ((Ie =
|
|
30351
|
+
return r.config.entityType && r.config.entityId ? Ee = et.form[r.config.app].edit.forEntity.replace(/{entityType}/gi, r.config.entityType).replace(/{entityId}/gi, r.config.entityId) : Ee = et.form[r.config.app].edit.all, r.config.app === "konnect" && ((Ie = Yn[r.pluginType]) != null && Ie.useUIData) ? `${Ee}?__ui_data=true` : Ee;
|
|
30342
30352
|
}), ee = () => {
|
|
30343
30353
|
v.value = !v.value;
|
|
30344
30354
|
}, pe = D(() => {
|
|
@@ -30640,7 +30650,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30640
30650
|
}), G;
|
|
30641
30651
|
}, Le = () => {
|
|
30642
30652
|
var ct, vt, Pt, Nn, It, Qt, hn, qn, nt, Ht, Tt, lt;
|
|
30643
|
-
const Ee = M.value && R.value ? R.value : r.pluginType, Ie = ((ct =
|
|
30653
|
+
const Ee = M.value && R.value ? R.value : r.pluginType, Ie = ((ct = Yn[Ee]) == null ? void 0 : ct.scope.includes(Kt.SERVICE)) ?? !0, G = ((vt = Yn[Ee]) == null ? void 0 : vt.scope.includes(Kt.ROUTE)) ?? !0, Re = ((Pt = Yn[Ee]) == null ? void 0 : Pt.scope.includes(Kt.CONSUMER)) ?? !0, Te = r.config.disableConsumerGroupScope ? !1 : ((Nn = Yn[Ee]) == null ? void 0 : Nn.scope.includes(Kt.CONSUMER_GROUP)) ?? !0, Pe = r.config.entityType === "consumers" && !!r.config.entityId || !!((Qt = (It = O.value) == null ? void 0 : It.consumer) != null && Qt.id), je = r.config.entityType === "consumer_groups" && !!r.config.entityId || !!((qn = (hn = O.value) == null ? void 0 : hn.consumer_group) != null && qn.id), De = r.config.entityType === "services" && !!r.config.entityId || !!((Ht = (nt = O.value) == null ? void 0 : nt.service) != null && Ht.id), ft = r.config.entityType === "routes" && !!r.config.entityId || !!((lt = (Tt = O.value) == null ? void 0 : Tt.route) != null && lt.id), Ge = [], ke = (Ye, wt, _t) => Ye ? l("plugins.form.disable_source_scope_change", { scope: _t }) : wt ? l("plugins.form.disable_data_retrieving", { scope: _t }) : "", ye = (Ye) => {
|
|
30644
30654
|
var wt, _t;
|
|
30645
30655
|
return ((_t = (wt = r.scopedEntitiesPermissions) == null ? void 0 : wt[Ye]) == null ? void 0 : _t.canRetrieve) === !1;
|
|
30646
30656
|
};
|
|
@@ -30767,7 +30777,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30767
30777
|
const Ee = r.config.entityType && r.config.entityId && !r.developer, Ie = T.value ? et.form[r.config.app].credential[b.value] : et.form[r.config.app][b.value][Ee ? "forEntity" : "all"];
|
|
30768
30778
|
let G = `${r.config.apiBaseUrl}${Ie}`;
|
|
30769
30779
|
return r.config.app === "konnect" && (G = G.replace(/{controlPlaneId}/gi, r.config.controlPlaneId || "")), G = G.replace(/\/{workspace}/gi, r.config.workspace ? `/${r.config.workspace}` : ""), G = G.replace(/{resourceEndpoint}/gi, re.value), G = G.replace(/{id}/gi, r.pluginId ?? ""), G = G.replace(/{entityType}/gi, r.config.entityType || ""), G = G.replace(/{entityId}/gi, r.config.entityId || ""), G;
|
|
30770
|
-
}), we = D(() => !Object.keys(
|
|
30780
|
+
}), we = D(() => !Object.keys(Yn).includes(r.pluginType)), de = D(() => {
|
|
30771
30781
|
const Ee = le.value;
|
|
30772
30782
|
if (T.value) {
|
|
30773
30783
|
for (const Ie in Kt) {
|
|
@@ -31114,7 +31124,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
31114
31124
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
31115
31125
|
setup(e, { emit: t }) {
|
|
31116
31126
|
var Ue, st;
|
|
31117
|
-
const n = rt.usePluginMetaData(), i = t, o = e, { i18n: { t: a } } = rt.useI18n(), r = Eo(), { axiosInstance: s } =
|
|
31127
|
+
const n = rt.usePluginMetaData(), i = t, o = e, { i18n: { t: a } } = rt.useI18n(), r = Eo(), { axiosInstance: s } = Vn((Ue = o.config) == null ? void 0 : Ue.axiosRequestConfig), { hasRecords: l, handleStateChange: c } = gy(() => C.value), p = D(() => l.value && o.config.app === "konnect"), d = D(() => !!o.config.entityId), f = D(() => {
|
|
31118
31128
|
var ue;
|
|
31119
31129
|
return ((ue = o.config) == null ? void 0 : ue.entityType) === "consumers";
|
|
31120
31130
|
}), m = D(() => {
|
|
@@ -31351,7 +31361,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
31351
31361
|
to: e.config.createRoute
|
|
31352
31362
|
}, {
|
|
31353
31363
|
default: N(() => [
|
|
31354
|
-
E(u(
|
|
31364
|
+
E(u(zn)),
|
|
31355
31365
|
xe(" " + ie(u(a)("plugins.list.toolbar_actions.new_plugin")), 1)
|
|
31356
31366
|
]),
|
|
31357
31367
|
_: 1
|
|
@@ -31544,7 +31554,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
31544
31554
|
onClick: Le
|
|
31545
31555
|
}, {
|
|
31546
31556
|
default: N(() => [
|
|
31547
|
-
E(u(
|
|
31557
|
+
E(u(zn), { decorative: "" }),
|
|
31548
31558
|
xe(" " + ie(u(a)("plugins.list.empty_state_v2.create_cta")), 1)
|
|
31549
31559
|
]),
|
|
31550
31560
|
_: 1
|
|
@@ -31800,7 +31810,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
31800
31810
|
emits: ["closed", "proceed"],
|
|
31801
31811
|
setup(e, { emit: t }) {
|
|
31802
31812
|
var m;
|
|
31803
|
-
const n = e, i = t, { i18n: { t: o } } = rt.useI18n(), { getMessageFromError: a } = io(), { axiosInstance: r } =
|
|
31813
|
+
const n = e, i = t, { i18n: { t: o } } = rt.useI18n(), { getMessageFromError: a } = io(), { axiosInstance: r } = Vn((m = n.config) == null ? void 0 : m.axiosRequestConfig), s = D(() => {
|
|
31804
31814
|
var g;
|
|
31805
31815
|
return p.value ? o("delete.plugin_schema_in_use_title") : o("delete.title", { name: ((g = n.plugin) == null ? void 0 : g.name) || o("delete.custom_plugin") });
|
|
31806
31816
|
}), l = ae(!1), c = ae(""), p = ae(!1), d = D(() => {
|
|
@@ -32406,7 +32416,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
32406
32416
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
32407
32417
|
setup(e, { emit: t }) {
|
|
32408
32418
|
var $e;
|
|
32409
|
-
const n = e, i = t, o = Mv(), a = Eo(), { i18n: { t: r } } = rt.useI18n(), { pluginMetaData: s } = rt.usePluginMetaData(), { getMessageFromError: l } = io(), { sortAlpha: c, objectsAreEqual: p } = hr(), d = ae(""), f = ae(!0), m = ae(!1), g = ae(""), h = ae(""), y = ae([]), _ = ae([]), v = ae([]), C = ae({}), b = ae([]), k = ae(null), w = ae(!1), { axiosInstance: T } =
|
|
32419
|
+
const n = e, i = t, o = Mv(), a = Eo(), { i18n: { t: r } } = rt.useI18n(), { pluginMetaData: s } = rt.usePluginMetaData(), { getMessageFromError: l } = io(), { sortAlpha: c, objectsAreEqual: p } = hr(), d = ae(""), f = ae(!0), m = ae(!1), g = ae(""), h = ae(""), y = ae([]), _ = ae([]), v = ae([]), C = ae({}), b = ae([]), k = ae(null), w = ae(!1), { axiosInstance: T } = Vn(($e = n.config) == null ? void 0 : $e.axiosRequestConfig), O = (oe) => oe === "none" || oe === "disabled" ? /* @__PURE__ */ new Set() : new Set(Array.isArray(oe) ? oe : [oe]), K = D(() => O(n.customPluginSupport)), S = D(() => [...K.value].sort().join("|")), x = D(() => n.customPluginSupport === "disabled"), P = D(() => x.value || K.value.size > 0), R = D(() => K.value.has("streaming")), M = D(() => K.value.has("cloned")), W = (oe) => ja(oe) && oe.code === "ERR_CANCELED", H = (oe) => l(oe).toLowerCase().includes("requires a license"), Y = D(() => C.value ? Object.entries(C.value).filter(([oe]) => oe !== Je.CUSTOM_PLUGINS).reduce((oe, [, Z]) => {
|
|
32410
32420
|
for (const se of Z ?? [])
|
|
32411
32421
|
oe[se.id] = se;
|
|
32412
32422
|
return oe;
|
|
@@ -33247,7 +33257,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
33247
33257
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
33248
33258
|
setup(e, { emit: t }) {
|
|
33249
33259
|
var H;
|
|
33250
|
-
const n = t, { i18n: { t: i } } = rt.useI18n(), { pluginMetaData: o } = rt.usePluginMetaData(), { getMessageFromError: a } = io(), { sortAlpha: r, objectsAreEqual: s } = hr(), l = e, { axiosInstance: c } =
|
|
33260
|
+
const n = t, { i18n: { t: i } } = rt.useI18n(), { pluginMetaData: o } = rt.usePluginMetaData(), { getMessageFromError: a } = io(), { sortAlpha: r, objectsAreEqual: s } = hr(), l = e, { axiosInstance: c } = Vn((H = l.config) == null ? void 0 : H.axiosRequestConfig), p = Ot("filter-input"), d = ae(""), f = ae(!1), m = ae(!1), g = ae(Object.fromEntries(Fl.concat(Dl).map((Y) => [Y, !1]))), h = ae(!0), y = ae(!1), _ = ae(""), v = ae([]), C = ae([]), b = ae({}), k = ae([]), w = ae(!1), T = D(() => w.value ? lv : uv), O = D(() => {
|
|
33251
33261
|
var V;
|
|
33252
33262
|
let Y = `${l.config.apiBaseUrl}${et.select[l.config.app].availablePlugins}`;
|
|
33253
33263
|
if (l.config.app === "konnect")
|
|
@@ -33685,7 +33695,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
33685
33695
|
var T;
|
|
33686
33696
|
const w = (T = a.pluginMetaData[i.config.pluginType]) == null ? void 0 : T.scope;
|
|
33687
33697
|
return w ? Object.fromEntries(Object.entries(k).filter(([O, K]) => K ? !0 : !(O === "service" && !w.includes(Kt.SERVICE) || O === "route" && !w.includes(Kt.ROUTE) || O === "consumer" && !w.includes(Kt.CONSUMER) || O === "consumer_group" && !w.includes(Kt.CONSUMER_GROUP)))) : k;
|
|
33688
|
-
}, m = (k) => eo(k, "__ui_data"), { getMessageFromError: g } = io(), { axiosInstance: h } =
|
|
33698
|
+
}, m = (k) => eo(k, "__ui_data"), { getMessageFromError: g } = io(), { axiosInstance: h } = Vn((b = i.config) == null ? void 0 : b.axiosRequestConfig), y = D(() => {
|
|
33689
33699
|
var w, T;
|
|
33690
33700
|
let k = `${i.config.apiBaseUrl}${et.form[i.config.app].pluginSchema}`;
|
|
33691
33701
|
return i.config.app === "konnect" && (k = k.replace(/{controlPlaneId}/gi, ((w = i.config) == null ? void 0 : w.controlPlaneId) || "")), k.replace(/\/{workspace}/gi, (T = i.config) != null && T.workspace ? `/${i.config.workspace}` : "").replace(/{plugin}/gi, i.config.pluginType);
|