@kong-ui-public/entities-plugins 9.210.3-pr.3422.a572f8d7d.0 → 9.210.3
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 +119 -129
- package/dist/entities-plugins.umd.js +7 -7
- package/dist/types/components/free-form/plugins/datakit/flow-editor/FlowEditor.vue.d.ts +0 -2
- 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 +0 -1
- 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 +0 -3
- package/dist/types/components/free-form/plugins/datakit/schema/strict.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -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 Bn, 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 Vn, 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 zn, 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 Xn, 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 } = Bn(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
|
+
}, Wn = {
|
|
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(Wn))
|
|
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), Yn = xo;
|
|
4629
|
+
(Bl && Yn(new Bl(new ArrayBuffer(1))) != vd || er && Yn(new er()) != md || Vl && Yn(Vl.resolve()) != gd || zl && Yn(new zl()) != hd || Kl && Yn(new Kl()) != yd) && (Yn = 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) && Yn(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) && Yn(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 = Yn(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 : Yn(e), c = s ? xd : Yn(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 = Yn(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 Hn = y(cn[$n], !0);
|
|
5739
|
+
bt.insertBefore(Hn, 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, Hn = cn.value, li = ke(en), nl = Hn;
|
|
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 Hn = ze.nodeName;
|
|
5870
|
+
if (typeof Hn == "string") {
|
|
5871
|
+
const li = ke(Hn);
|
|
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 Hn = Ae.innerHTML;
|
|
5895
5895
|
$o([M, W, H], (li) => {
|
|
5896
|
-
|
|
5897
|
-
}), Ae.innerHTML =
|
|
5896
|
+
Hn = Ro(Hn, li, " ");
|
|
5897
|
+
}), Ae.innerHTML = Hn;
|
|
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], (Hn) => {
|
|
5909
|
+
$n = Ro($n, Hn, " ");
|
|
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
|
+
}), Zn = /* @__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(Vn))
|
|
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(Vn)),
|
|
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(zn), 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(Vn)),
|
|
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 : Zn;
|
|
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(zn), 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 } = Bn(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 Jn extends Tg {
|
|
11191
11191
|
static get tagName() {
|
|
11192
11192
|
return "tag:yaml.org,2002:map";
|
|
11193
11193
|
}
|
|
@@ -11279,12 +11279,12 @@ class Xn extends Tg {
|
|
|
11279
11279
|
const Ca = {
|
|
11280
11280
|
collection: "map",
|
|
11281
11281
|
default: !0,
|
|
11282
|
-
nodeClass:
|
|
11282
|
+
nodeClass: Jn,
|
|
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) => Jn.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 = Jn.prototype.add.bind(this), this.delete = Jn.prototype.delete.bind(this), this.get = Jn.prototype.get.bind(this), this.has = Jn.prototype.has.bind(this), this.set = Jn.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 Jn {
|
|
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) ?? Jn, 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 ? Jn : 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 Jn(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 === Jn.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 } = Bn(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[Xn]), (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[Xn]), (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[Xn]);
|
|
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(zn), { "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 } = Bn(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[Xn]), (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: Vn, 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(Vn), { 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(Zn, {
|
|
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(Vn)),
|
|
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(Vn)),
|
|
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,11 +23218,6 @@ 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(),
|
|
23226
23221
|
inputs: z.never().nullish(),
|
|
23227
23222
|
outputs: z.never().nullish()
|
|
23228
23223
|
}).strict(), UM = ai.safeExtend({
|
|
@@ -23457,7 +23452,6 @@ const ri = z.object({
|
|
|
23457
23452
|
}).strict(), sL = ri.safeExtend({
|
|
23458
23453
|
type: z.literal("property"),
|
|
23459
23454
|
content_type: z.string().nullish(),
|
|
23460
|
-
non_nil: z.boolean().nullish(),
|
|
23461
23455
|
property: z.string().nullish(),
|
|
23462
23456
|
inputs: z.never().nullish(),
|
|
23463
23457
|
outputs: z.never().nullish()
|
|
@@ -23772,7 +23766,7 @@ const ri = z.object({
|
|
|
23772
23766
|
onClick: C
|
|
23773
23767
|
}, {
|
|
23774
23768
|
default: N(() => [
|
|
23775
|
-
E(u(
|
|
23769
|
+
E(u(Vn)),
|
|
23776
23770
|
xe(" " + ie(u(d)("plugins.free-form.datakit.flow_editor.node_properties.input.add_button")), 1)
|
|
23777
23771
|
]),
|
|
23778
23772
|
_: 1
|
|
@@ -23824,7 +23818,7 @@ const ri = z.object({
|
|
|
23824
23818
|
n("rename:field", f, m);
|
|
23825
23819
|
}
|
|
23826
23820
|
return (f, m) => (A(), te(Fe, null, [
|
|
23827
|
-
E(u(
|
|
23821
|
+
E(u(zn), {
|
|
23828
23822
|
class: "dk-inputs-field-h1",
|
|
23829
23823
|
info: u(o)("plugins.free-form.datakit.flow_editor.node_properties.input.tooltip")
|
|
23830
23824
|
}, {
|
|
@@ -23857,7 +23851,7 @@ const ri = z.object({
|
|
|
23857
23851
|
r.value ? (A(), te("div", TL, [
|
|
23858
23852
|
J("span", null, ie(u(o)("plugins.free-form.datakit.flow_editor.node_properties.input.or")), 1)
|
|
23859
23853
|
])) : fe("", !0),
|
|
23860
|
-
r.value ? (A(), X(u(
|
|
23854
|
+
r.value ? (A(), X(u(zn), {
|
|
23861
23855
|
key: 2,
|
|
23862
23856
|
class: "dk-inputs-field-h2 dk-margin-0"
|
|
23863
23857
|
}, {
|
|
@@ -23884,7 +23878,7 @@ const ri = z.object({
|
|
|
23884
23878
|
}, 16, ["items", "key-order"])) : fe("", !0)
|
|
23885
23879
|
], 64));
|
|
23886
23880
|
}
|
|
23887
|
-
}),
|
|
23881
|
+
}), Gn = /* @__PURE__ */ Me(SL, [["__scopeId", "data-v-4f1ce4e7"]]), IL = {}, OL = { class: "dk-node-form-divider" };
|
|
23888
23882
|
function NL(e, t) {
|
|
23889
23883
|
return A(), te("hr", OL);
|
|
23890
23884
|
}
|
|
@@ -24562,12 +24556,12 @@ const si = /* @__PURE__ */ _e({
|
|
|
24562
24556
|
name: "ssl_server_name",
|
|
24563
24557
|
"onUpdate:modelValue": v[1] || (v[1] = (b) => u(r)("ssl_server_name"))
|
|
24564
24558
|
}),
|
|
24565
|
-
E(
|
|
24559
|
+
E(Zn, {
|
|
24566
24560
|
name: "ssl_verify",
|
|
24567
24561
|
"onUpdate:modelValue": v[2] || (v[2] = (b) => u(r)("ssl_verify"))
|
|
24568
24562
|
}),
|
|
24569
24563
|
E(vi),
|
|
24570
|
-
E(
|
|
24564
|
+
E(Gn, {
|
|
24571
24565
|
"field-name-validator": u(m),
|
|
24572
24566
|
"field-names": u(p),
|
|
24573
24567
|
items: u(s),
|
|
@@ -24600,7 +24594,7 @@ const si = /* @__PURE__ */ _e({
|
|
|
24600
24594
|
schema: u(n)
|
|
24601
24595
|
}, {
|
|
24602
24596
|
default: N(() => [
|
|
24603
|
-
E(
|
|
24597
|
+
E(Gn, {
|
|
24604
24598
|
"field-name-validator": u(l),
|
|
24605
24599
|
"field-names": u(s),
|
|
24606
24600
|
items: u(o),
|
|
@@ -24632,7 +24626,7 @@ const si = /* @__PURE__ */ _e({
|
|
|
24632
24626
|
schema: u(n)
|
|
24633
24627
|
}, {
|
|
24634
24628
|
default: N(() => [
|
|
24635
|
-
E(
|
|
24629
|
+
E(Gn, {
|
|
24636
24630
|
"field-name-validator": u(l),
|
|
24637
24631
|
"field-names": u(s),
|
|
24638
24632
|
items: u(o),
|
|
@@ -24738,7 +24732,7 @@ const si = /* @__PURE__ */ _e({
|
|
|
24738
24732
|
_: 1
|
|
24739
24733
|
}, 8, ["error", "error-message", "label", "onBlur", "onUpdate:modelValue"]),
|
|
24740
24734
|
E(vi),
|
|
24741
|
-
E(
|
|
24735
|
+
E(Gn, {
|
|
24742
24736
|
"field-name-validator": u(_),
|
|
24743
24737
|
"field-names": u(g),
|
|
24744
24738
|
items: u(l),
|
|
@@ -24931,7 +24925,7 @@ const si = /* @__PURE__ */ _e({
|
|
|
24931
24925
|
onClick: C
|
|
24932
24926
|
}, {
|
|
24933
24927
|
default: N(() => [
|
|
24934
|
-
E(u(
|
|
24928
|
+
E(u(Vn)),
|
|
24935
24929
|
xe(" " + ie(u(s).t("plugins.free-form.datakit.flow_editor.node_properties.output_value.add_button")), 1)
|
|
24936
24930
|
]),
|
|
24937
24931
|
_: 1
|
|
@@ -25226,12 +25220,8 @@ const WL = /* @__PURE__ */ _e({
|
|
|
25226
25220
|
"onUpdate:modelValue": _,
|
|
25227
25221
|
"onUpdate:propertyKey": b[1] || (b[1] = (k) => u(l)("property-key"))
|
|
25228
25222
|
}, null, 8, ["validators"]),
|
|
25229
|
-
E(Bn, {
|
|
25230
|
-
name: "non_nil",
|
|
25231
|
-
"onUpdate:modelValue": b[2] || (b[2] = (k) => u(l)("non_nil"))
|
|
25232
|
-
}),
|
|
25233
25223
|
y.value ? (A(), X(vi, { key: 0 })) : fe("", !0),
|
|
25234
|
-
y.value ? (A(), X(
|
|
25224
|
+
y.value ? (A(), X(Gn, {
|
|
25235
25225
|
key: 1,
|
|
25236
25226
|
"field-name-validator": u(h),
|
|
25237
25227
|
"field-names": u(f),
|
|
@@ -25293,12 +25283,12 @@ const WL = /* @__PURE__ */ _e({
|
|
|
25293
25283
|
onBlur: u(g).validate,
|
|
25294
25284
|
"onUpdate:modelValue": u(g).update
|
|
25295
25285
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25296
|
-
E(
|
|
25286
|
+
E(Zn, {
|
|
25297
25287
|
name: "warn_headers_sent",
|
|
25298
25288
|
"onUpdate:modelValue": y[0] || (y[0] = (_) => u(a)())
|
|
25299
25289
|
}),
|
|
25300
25290
|
E(vi),
|
|
25301
|
-
E(
|
|
25291
|
+
E(Gn, {
|
|
25302
25292
|
"field-name-validator": u(f),
|
|
25303
25293
|
"field-names": u(c),
|
|
25304
25294
|
items: u(r),
|
|
@@ -25422,7 +25412,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25422
25412
|
validate: u(l),
|
|
25423
25413
|
onUpdate: u(a)
|
|
25424
25414
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25425
|
-
E(u(
|
|
25415
|
+
E(u(zn), { class: "dk-node-configuration-label" }, {
|
|
25426
25416
|
default: N(() => [
|
|
25427
25417
|
xe(ie(u(t)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25428
25418
|
]),
|
|
@@ -25453,7 +25443,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25453
25443
|
_: 1
|
|
25454
25444
|
}, 8, ["items"]),
|
|
25455
25445
|
E(vi),
|
|
25456
|
-
E(
|
|
25446
|
+
E(Gn, {
|
|
25457
25447
|
"field-name-validator": u(f),
|
|
25458
25448
|
"field-names": u(d),
|
|
25459
25449
|
items: u(r),
|
|
@@ -25507,13 +25497,13 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25507
25497
|
validate: u(d),
|
|
25508
25498
|
onUpdate: u(a)
|
|
25509
25499
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25510
|
-
E(u(
|
|
25500
|
+
E(u(zn), { class: "dk-node-configuration-label" }, {
|
|
25511
25501
|
default: N(() => [
|
|
25512
25502
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25513
25503
|
]),
|
|
25514
25504
|
_: 1
|
|
25515
25505
|
}),
|
|
25516
|
-
E(
|
|
25506
|
+
E(Zn, {
|
|
25517
25507
|
name: "bypass_on_error",
|
|
25518
25508
|
"onUpdate:modelValue": _[0] || (_[0] = (v) => u(r)("bypass_on_error"))
|
|
25519
25509
|
}),
|
|
@@ -25525,7 +25515,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25525
25515
|
"onUpdate:modelValue": u(h).update
|
|
25526
25516
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25527
25517
|
E(vi),
|
|
25528
|
-
E(
|
|
25518
|
+
E(Gn, {
|
|
25529
25519
|
"field-name-validator": u(m),
|
|
25530
25520
|
"field-names": u(p),
|
|
25531
25521
|
items: u(s),
|
|
@@ -25600,13 +25590,13 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25600
25590
|
validate: u(d),
|
|
25601
25591
|
onUpdate: u(a)
|
|
25602
25592
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25603
|
-
E(u(
|
|
25593
|
+
E(u(zn), { class: "dk-node-configuration-label" }, {
|
|
25604
25594
|
default: N(() => [
|
|
25605
25595
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25606
25596
|
]),
|
|
25607
25597
|
_: 1
|
|
25608
25598
|
}),
|
|
25609
|
-
E(
|
|
25599
|
+
E(Zn, {
|
|
25610
25600
|
name: "recognize_type",
|
|
25611
25601
|
"onUpdate:modelValue": K[0] || (K[0] = (S) => u(r)("recognize_type"))
|
|
25612
25602
|
}),
|
|
@@ -25631,7 +25621,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25631
25621
|
onBlur: u(C).validate,
|
|
25632
25622
|
"onUpdate:modelValue": u(C).update
|
|
25633
25623
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25634
|
-
E(
|
|
25624
|
+
E(Zn, {
|
|
25635
25625
|
name: "text_as_property",
|
|
25636
25626
|
"onUpdate:modelValue": K[1] || (K[1] = (S) => u(r)("text_as_property"))
|
|
25637
25627
|
}),
|
|
@@ -25643,7 +25633,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25643
25633
|
"onUpdate:modelValue": u(b).update
|
|
25644
25634
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25645
25635
|
E(vi),
|
|
25646
|
-
E(
|
|
25636
|
+
E(Gn, {
|
|
25647
25637
|
"field-name-validator": u(m),
|
|
25648
25638
|
"field-names": u(p),
|
|
25649
25639
|
items: u(s),
|
|
@@ -25727,7 +25717,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25727
25717
|
validate: u(g),
|
|
25728
25718
|
onUpdate: u(a)
|
|
25729
25719
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25730
|
-
E(u(
|
|
25720
|
+
E(u(zn), { class: "dk-node-configuration-label" }, {
|
|
25731
25721
|
default: N(() => [
|
|
25732
25722
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25733
25723
|
]),
|
|
@@ -25762,7 +25752,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25762
25752
|
"onUpdate:modelValue": u(T).update
|
|
25763
25753
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
25764
25754
|
E(vi),
|
|
25765
|
-
E(
|
|
25755
|
+
E(Gn, {
|
|
25766
25756
|
"field-name-validator": u(y),
|
|
25767
25757
|
"field-names": u(m),
|
|
25768
25758
|
items: u(s),
|
|
@@ -25805,7 +25795,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25805
25795
|
onUpdate: u(o)
|
|
25806
25796
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25807
25797
|
E(vi),
|
|
25808
|
-
E(
|
|
25798
|
+
E(Gn, {
|
|
25809
25799
|
"field-name-validator": u(p),
|
|
25810
25800
|
"field-names": u(l),
|
|
25811
25801
|
items: u(a),
|
|
@@ -25869,7 +25859,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25869
25859
|
validate: u(d),
|
|
25870
25860
|
onUpdate: u(a)
|
|
25871
25861
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25872
|
-
E(u(
|
|
25862
|
+
E(u(zn), { class: "dk-node-configuration-label" }, {
|
|
25873
25863
|
default: N(() => [
|
|
25874
25864
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25875
25865
|
]),
|
|
@@ -25908,7 +25898,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25908
25898
|
onLegacyValueChange: C[2] || (C[2] = (b) => u(r)("static_claims"))
|
|
25909
25899
|
}, null, 8, ["label"]),
|
|
25910
25900
|
E(vi),
|
|
25911
|
-
E(
|
|
25901
|
+
E(Gn, {
|
|
25912
25902
|
"field-name-validator": u(m),
|
|
25913
25903
|
"field-names": u(p),
|
|
25914
25904
|
items: u(s),
|
|
@@ -25962,7 +25952,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
25962
25952
|
validate: u(d),
|
|
25963
25953
|
onUpdate: u(a)
|
|
25964
25954
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
25965
|
-
E(u(
|
|
25955
|
+
E(u(zn), { class: "dk-node-configuration-label" }, {
|
|
25966
25956
|
default: N(() => [
|
|
25967
25957
|
xe(ie(u(i)("plugins.free-form.datakit.flow_editor.node_properties.configuration")), 1)
|
|
25968
25958
|
]),
|
|
@@ -26023,16 +26013,16 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26023
26013
|
onBlur: u(h).validate,
|
|
26024
26014
|
"onUpdate:modelValue": u(h).update
|
|
26025
26015
|
}, null, 8, ["error", "error-message", "onBlur", "onUpdate:modelValue"]),
|
|
26026
|
-
E(
|
|
26016
|
+
E(Zn, {
|
|
26027
26017
|
name: "validate_exp",
|
|
26028
26018
|
"onUpdate:modelValue": _[10] || (_[10] = (v) => u(r)("validate_exp"))
|
|
26029
26019
|
}),
|
|
26030
|
-
E(
|
|
26020
|
+
E(Zn, {
|
|
26031
26021
|
name: "validate_nbf",
|
|
26032
26022
|
"onUpdate:modelValue": _[11] || (_[11] = (v) => u(r)("validate_nbf"))
|
|
26033
26023
|
}),
|
|
26034
26024
|
E(vi),
|
|
26035
|
-
E(
|
|
26025
|
+
E(Gn, {
|
|
26036
26026
|
"field-name-validator": u(m),
|
|
26037
26027
|
"field-names": u(p),
|
|
26038
26028
|
items: u(s),
|
|
@@ -26570,7 +26560,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26570
26560
|
["config.channel_token_signing", "config.channel_token_upstream_header", "config.channel_token_keyset"]
|
|
26571
26561
|
]
|
|
26572
26562
|
}, i = On();
|
|
26573
|
-
return Xt(hi, i == null ? void 0 : i[
|
|
26563
|
+
return Xt(hi, i == null ? void 0 : i[Xn]), (o, a) => (A(), X(Si, Be(t, { "render-rules": n }), {
|
|
26574
26564
|
"field-renderers": N(() => [
|
|
26575
26565
|
E(Bt, {
|
|
26576
26566
|
match: ({ path: r }) => r === "config.access_token_keyset"
|
|
@@ -26687,7 +26677,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26687
26677
|
size: u(ci)
|
|
26688
26678
|
}, null, 8, ["class", "size"])
|
|
26689
26679
|
]),
|
|
26690
|
-
E(u(
|
|
26680
|
+
E(u(zn), { class: "ff-collapsible-section-label" }, {
|
|
26691
26681
|
default: N(() => [
|
|
26692
26682
|
xe(ie(e.label), 1)
|
|
26693
26683
|
]),
|
|
@@ -26730,7 +26720,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26730
26720
|
},
|
|
26731
26721
|
setup(e) {
|
|
26732
26722
|
const t = e, n = On();
|
|
26733
|
-
Xt(hi, n == null ? void 0 : n[
|
|
26723
|
+
Xt(hi, n == null ? void 0 : n[Xn]);
|
|
26734
26724
|
const { i18n: { t: i } } = He(), o = At(gi), a = D(() => {
|
|
26735
26725
|
const p = o == null ? void 0 : o.geoApiServerUrl, d = p ? new URL(p).hostname.split(".")[0] : null;
|
|
26736
26726
|
return d ? `https://${d}.api.konghq.com/v3/openmeter/events` : "https://{{region}}.api.konghq.com/v3/openmeter/events";
|
|
@@ -26753,7 +26743,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26753
26743
|
match: ({ path: f }) => f === "config.meter_api_requests"
|
|
26754
26744
|
}, {
|
|
26755
26745
|
default: N((f) => [
|
|
26756
|
-
E(
|
|
26746
|
+
E(Zn, Be(f, {
|
|
26757
26747
|
description: u(i)("plugins.free-form.metering-and-billing.fields.meter_api_requests.description")
|
|
26758
26748
|
}), null, 16, ["description"])
|
|
26759
26749
|
]),
|
|
@@ -26763,7 +26753,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26763
26753
|
match: ({ path: f }) => f === "config.meter_ai_token_usage"
|
|
26764
26754
|
}, {
|
|
26765
26755
|
default: N((f) => [
|
|
26766
|
-
E(
|
|
26756
|
+
E(Zn, Be(f, {
|
|
26767
26757
|
description: u(i)("plugins.free-form.metering-and-billing.fields.meter_ai_token_usage.description")
|
|
26768
26758
|
}), null, 16, ["description"])
|
|
26769
26759
|
]),
|
|
@@ -26773,7 +26763,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26773
26763
|
match: ({ path: f }) => f === "config.ssl_verify"
|
|
26774
26764
|
}, {
|
|
26775
26765
|
default: N((f) => [
|
|
26776
|
-
E(
|
|
26766
|
+
E(Zn, Be(f, {
|
|
26777
26767
|
description: u(i)("plugins.free-form.metering-and-billing.fields.ssl_verify.description"),
|
|
26778
26768
|
label: u(i)("plugins.free-form.metering-and-billing.fields.ssl_verify.label")
|
|
26779
26769
|
}), null, 16, ["description", "label"])
|
|
@@ -26949,7 +26939,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
26949
26939
|
}, {
|
|
26950
26940
|
default: N(() => [
|
|
26951
26941
|
J("div", tF, [
|
|
26952
|
-
E(u(
|
|
26942
|
+
E(u(zn), { class: "ff-mb-queue-label" }, {
|
|
26953
26943
|
default: N(() => [
|
|
26954
26944
|
xe(ie(u(i)("plugins.free-form.metering-and-billing.sections.queue.title")), 1)
|
|
26955
26945
|
]),
|
|
@@ -27177,7 +27167,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
27177
27167
|
onClick: () => s(K)
|
|
27178
27168
|
}, {
|
|
27179
27169
|
default: N(() => [
|
|
27180
|
-
E(u(
|
|
27170
|
+
E(u(Vn))
|
|
27181
27171
|
]),
|
|
27182
27172
|
_: 1
|
|
27183
27173
|
}, 8, ["onClick"])
|
|
@@ -27355,7 +27345,7 @@ const i2 = /* @__PURE__ */ _e({
|
|
|
27355
27345
|
},
|
|
27356
27346
|
setup(e) {
|
|
27357
27347
|
const t = e, n = On();
|
|
27358
|
-
Xt(hi, n == null ? void 0 : n[
|
|
27348
|
+
Xt(hi, n == null ? void 0 : n[Xn]);
|
|
27359
27349
|
function i(o, a) {
|
|
27360
27350
|
var r;
|
|
27361
27351
|
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace, t.onFormChange(o, a);
|
|
@@ -27532,7 +27522,7 @@ const Ya = "_callout_id", NF = /* @__PURE__ */ _e({
|
|
|
27532
27522
|
},
|
|
27533
27523
|
setup(e) {
|
|
27534
27524
|
const t = e, n = On();
|
|
27535
|
-
Xt(hi, n == null ? void 0 : n[
|
|
27525
|
+
Xt(hi, n == null ? void 0 : n[Xn]);
|
|
27536
27526
|
const { i18n: { t: i } } = He();
|
|
27537
27527
|
function o(l, c = !1) {
|
|
27538
27528
|
return l.reduce((p, { [Ya]: d, name: f }) => (c ? p[f] = d : p[d] = f, p), {});
|
|
@@ -27795,7 +27785,7 @@ const Ya = "_callout_id", NF = /* @__PURE__ */ _e({
|
|
|
27795
27785
|
onClick: () => s(K)
|
|
27796
27786
|
}, {
|
|
27797
27787
|
default: N(() => [
|
|
27798
|
-
E(u(
|
|
27788
|
+
E(u(Vn))
|
|
27799
27789
|
]),
|
|
27800
27790
|
_: 1
|
|
27801
27791
|
}, 8, ["onClick"])
|
|
@@ -27958,7 +27948,7 @@ const Ya = "_callout_id", NF = /* @__PURE__ */ _e({
|
|
|
27958
27948
|
},
|
|
27959
27949
|
setup(e) {
|
|
27960
27950
|
const t = e, n = On();
|
|
27961
|
-
Xt(hi, n == null ? void 0 : n[
|
|
27951
|
+
Xt(hi, n == null ? void 0 : n[Xn]);
|
|
27962
27952
|
function i(o, a) {
|
|
27963
27953
|
var r;
|
|
27964
27954
|
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace, t.onFormChange(o, a);
|
|
@@ -28378,7 +28368,7 @@ const ty = (e) => {
|
|
|
28378
28368
|
P.forEach((q) => {
|
|
28379
28369
|
c(S[q], q, S, W, M, O);
|
|
28380
28370
|
});
|
|
28381
|
-
const H = W.name, Y = w._sourcePlugin || H, V =
|
|
28371
|
+
const H = W.name, Y = w._sourcePlugin || H, V = Wn[Y], B = [], $ = (q) => {
|
|
28382
28372
|
const Q = ["cluster-cache"];
|
|
28383
28373
|
for (const U of Q)
|
|
28384
28374
|
if (q.model.includes(U))
|
|
@@ -28749,7 +28739,7 @@ const rt = {
|
|
|
28749
28739
|
"response-transformer",
|
|
28750
28740
|
"route-by-header",
|
|
28751
28741
|
"tcp-log"
|
|
28752
|
-
], i = ["installed", "streamed", "cloned"], o = e, a = t, { i18n: { t: r }, i18nT: s } = rt.useI18n(), l = Eo(), { getMessageFromError: c } = io(), { axiosInstance: p } =
|
|
28742
|
+
], i = ["installed", "streamed", "cloned"], o = e, a = t, { i18n: { t: r }, i18nT: s } = rt.useI18n(), l = Eo(), { getMessageFromError: c } = io(), { axiosInstance: p } = Bn((me = o.config) == null ? void 0 : me.axiosRequestConfig), {
|
|
28753
28743
|
createInstalledPlugin: d,
|
|
28754
28744
|
updateInstalledPlugin: f,
|
|
28755
28745
|
createStreamedPlugin: m,
|
|
@@ -28843,7 +28833,7 @@ const rt = {
|
|
|
28843
28833
|
if (re.length === 0) return [];
|
|
28844
28834
|
const ce = {};
|
|
28845
28835
|
re.forEach((Ne) => {
|
|
28846
|
-
const qe =
|
|
28836
|
+
const qe = Wn[Ne], Ue = qe == null ? void 0 : qe.group;
|
|
28847
28837
|
Ue ? (ce[Ue] || (ce[Ue] = []), ce[Ue].push({
|
|
28848
28838
|
label: Q(Ne),
|
|
28849
28839
|
value: Ne
|
|
@@ -29584,7 +29574,7 @@ function bK(e) {
|
|
|
29584
29574
|
return oy(n), t.fields = n.fields, t;
|
|
29585
29575
|
}
|
|
29586
29576
|
function wK(e, t) {
|
|
29587
|
-
const n =
|
|
29577
|
+
const n = Wn[e];
|
|
29588
29578
|
if (!n || !n.fieldRules)
|
|
29589
29579
|
return t;
|
|
29590
29580
|
const i = kK(n.fieldRules), o = { ...t };
|
|
@@ -29732,7 +29722,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
29732
29722
|
if (i.config.app !== "konnect") return !1;
|
|
29733
29723
|
const ue = i.config;
|
|
29734
29724
|
return !!ue.isKonnectManagedRedisEnabled && ue.isCloudGateway === !0;
|
|
29735
|
-
}), a = At(ta.KM_2306_CONDITION_FIELD_314, !1), { axiosInstance: r } =
|
|
29725
|
+
}), a = At(ta.KM_2306_CONDITION_FIELD_314, !1), { axiosInstance: r } = Bn((Ue = i.config) == null ? void 0 : Ue.axiosRequestConfig), { parseSchema: s } = rt.useSchemas({
|
|
29736
29726
|
entityId: ((st = i.entityMap.focusedEntity) == null ? void 0 : st.id) || void 0,
|
|
29737
29727
|
credential: i.credential,
|
|
29738
29728
|
enableRedisPartial: i.enableRedisPartial,
|
|
@@ -30080,7 +30070,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30080
30070
|
onGlobalAction: le[0] || (le[0] = (se, ge) => ue.$emit("globalAction", se, ge))
|
|
30081
30071
|
}, St({ _: 2 }, [
|
|
30082
30072
|
e.enableVaultSecretPicker ? {
|
|
30083
|
-
name: u(
|
|
30073
|
+
name: u(Xn),
|
|
30084
30074
|
fn: N((se) => [
|
|
30085
30075
|
se.schema.referenceable ? (A(), X(u(ol), Be({ key: 0 }, se, { onOpen: q }), null, 16)) : fe("", !0)
|
|
30086
30076
|
]),
|
|
@@ -30099,7 +30089,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30099
30089
|
"show-new-partial-modal": (se) => ue.$emit("showNewPartialModal", se)
|
|
30100
30090
|
}, St({ _: 2 }, [
|
|
30101
30091
|
e.enableVaultSecretPicker ? {
|
|
30102
|
-
name: u(
|
|
30092
|
+
name: u(Xn),
|
|
30103
30093
|
fn: N((se) => [
|
|
30104
30094
|
se.schema.referenceable ? (A(), X(u(ol), Be({ key: 0 }, se, { onOpen: q }), null, 16)) : fe("", !0)
|
|
30105
30095
|
]),
|
|
@@ -30123,17 +30113,17 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30123
30113
|
]),
|
|
30124
30114
|
_: 2
|
|
30125
30115
|
}, [
|
|
30126
|
-
(Z = u(
|
|
30116
|
+
(Z = u(Wn)[H.name]) != null && Z.fieldRules && (i.config.isNewOtelSchema || H.name !== "opentelemetry") ? {
|
|
30127
30117
|
name: "plugin-config-before-content",
|
|
30128
30118
|
fn: N(() => [
|
|
30129
30119
|
E(mK, {
|
|
30130
|
-
rules: u(
|
|
30120
|
+
rules: u(Wn)[H.name].fieldRules
|
|
30131
30121
|
}, null, 8, ["rules"])
|
|
30132
30122
|
]),
|
|
30133
30123
|
key: "0"
|
|
30134
30124
|
} : void 0,
|
|
30135
30125
|
e.enableVaultSecretPicker ? {
|
|
30136
|
-
name: u(
|
|
30126
|
+
name: u(Xn),
|
|
30137
30127
|
fn: N((se) => [
|
|
30138
30128
|
se.schema.referenceable ? (A(), X(u(ol), Be({ key: 0 }, se, { onOpen: q }), null, 16)) : fe("", !0)
|
|
30139
30129
|
]),
|
|
@@ -30282,8 +30272,8 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30282
30272
|
app: r.config.app,
|
|
30283
30273
|
credential: r.credential,
|
|
30284
30274
|
experimentalRenders: r.config.app === "konnect" ? r.config.experimentalRenders : void 0
|
|
30285
|
-
}), { formatPluginFieldLabel: d } = rt.usePluginHelpers(), { shouldUseFreeForm: f } = rt.useFreeFormResolver(), { getMessageFromError: m } = io(), { capitalize: g } = bu(), { objectsAreEqual: h } = hr(), { axiosInstance: y } =
|
|
30286
|
-
axiosInstance:
|
|
30275
|
+
}), { formatPluginFieldLabel: d } = rt.usePluginHelpers(), { shouldUseFreeForm: f } = rt.useFreeFormResolver(), { getMessageFromError: m } = io(), { capitalize: g } = bu(), { objectsAreEqual: h } = hr(), { axiosInstance: y } = Bn((Ft = r.config) == null ? void 0 : Ft.axiosRequestConfig), { getClonedPlugin: _ } = rt.useCustomPluginApi({
|
|
30276
|
+
axiosInstance: Bn({
|
|
30287
30277
|
...((sn = r.config) == null ? void 0 : sn.axiosRequestConfig) ?? {},
|
|
30288
30278
|
konnect: { bypassGlobal404Handler: !0 }
|
|
30289
30279
|
// force bypassGlobal404Handler for this call
|
|
@@ -30348,7 +30338,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30348
30338
|
return G = G.replace(/{resourceEndpoint}/gi, re.value), G;
|
|
30349
30339
|
}
|
|
30350
30340
|
let Ee;
|
|
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 =
|
|
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 = Wn[r.pluginType]) != null && Ie.useUIData) ? `${Ee}?__ui_data=true` : Ee;
|
|
30352
30342
|
}), ee = () => {
|
|
30353
30343
|
v.value = !v.value;
|
|
30354
30344
|
}, pe = D(() => {
|
|
@@ -30650,7 +30640,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30650
30640
|
}), G;
|
|
30651
30641
|
}, Le = () => {
|
|
30652
30642
|
var ct, vt, Pt, Nn, It, Qt, hn, qn, nt, Ht, Tt, lt;
|
|
30653
|
-
const Ee = M.value && R.value ? R.value : r.pluginType, Ie = ((ct =
|
|
30643
|
+
const Ee = M.value && R.value ? R.value : r.pluginType, Ie = ((ct = Wn[Ee]) == null ? void 0 : ct.scope.includes(Kt.SERVICE)) ?? !0, G = ((vt = Wn[Ee]) == null ? void 0 : vt.scope.includes(Kt.ROUTE)) ?? !0, Re = ((Pt = Wn[Ee]) == null ? void 0 : Pt.scope.includes(Kt.CONSUMER)) ?? !0, Te = r.config.disableConsumerGroupScope ? !1 : ((Nn = Wn[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) => {
|
|
30654
30644
|
var wt, _t;
|
|
30655
30645
|
return ((_t = (wt = r.scopedEntitiesPermissions) == null ? void 0 : wt[Ye]) == null ? void 0 : _t.canRetrieve) === !1;
|
|
30656
30646
|
};
|
|
@@ -30777,7 +30767,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
30777
30767
|
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"];
|
|
30778
30768
|
let G = `${r.config.apiBaseUrl}${Ie}`;
|
|
30779
30769
|
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;
|
|
30780
|
-
}), we = D(() => !Object.keys(
|
|
30770
|
+
}), we = D(() => !Object.keys(Wn).includes(r.pluginType)), de = D(() => {
|
|
30781
30771
|
const Ee = le.value;
|
|
30782
30772
|
if (T.value) {
|
|
30783
30773
|
for (const Ie in Kt) {
|
|
@@ -31124,7 +31114,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
31124
31114
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
31125
31115
|
setup(e, { emit: t }) {
|
|
31126
31116
|
var Ue, st;
|
|
31127
|
-
const n = rt.usePluginMetaData(), i = t, o = e, { i18n: { t: a } } = rt.useI18n(), r = Eo(), { axiosInstance: s } =
|
|
31117
|
+
const n = rt.usePluginMetaData(), i = t, o = e, { i18n: { t: a } } = rt.useI18n(), r = Eo(), { axiosInstance: s } = Bn((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(() => {
|
|
31128
31118
|
var ue;
|
|
31129
31119
|
return ((ue = o.config) == null ? void 0 : ue.entityType) === "consumers";
|
|
31130
31120
|
}), m = D(() => {
|
|
@@ -31361,7 +31351,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
31361
31351
|
to: e.config.createRoute
|
|
31362
31352
|
}, {
|
|
31363
31353
|
default: N(() => [
|
|
31364
|
-
E(u(
|
|
31354
|
+
E(u(Vn)),
|
|
31365
31355
|
xe(" " + ie(u(a)("plugins.list.toolbar_actions.new_plugin")), 1)
|
|
31366
31356
|
]),
|
|
31367
31357
|
_: 1
|
|
@@ -31554,7 +31544,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
31554
31544
|
onClick: Le
|
|
31555
31545
|
}, {
|
|
31556
31546
|
default: N(() => [
|
|
31557
|
-
E(u(
|
|
31547
|
+
E(u(Vn), { decorative: "" }),
|
|
31558
31548
|
xe(" " + ie(u(a)("plugins.list.empty_state_v2.create_cta")), 1)
|
|
31559
31549
|
]),
|
|
31560
31550
|
_: 1
|
|
@@ -31810,7 +31800,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
31810
31800
|
emits: ["closed", "proceed"],
|
|
31811
31801
|
setup(e, { emit: t }) {
|
|
31812
31802
|
var m;
|
|
31813
|
-
const n = e, i = t, { i18n: { t: o } } = rt.useI18n(), { getMessageFromError: a } = io(), { axiosInstance: r } =
|
|
31803
|
+
const n = e, i = t, { i18n: { t: o } } = rt.useI18n(), { getMessageFromError: a } = io(), { axiosInstance: r } = Bn((m = n.config) == null ? void 0 : m.axiosRequestConfig), s = D(() => {
|
|
31814
31804
|
var g;
|
|
31815
31805
|
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") });
|
|
31816
31806
|
}), l = ae(!1), c = ae(""), p = ae(!1), d = D(() => {
|
|
@@ -32416,7 +32406,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
32416
32406
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
32417
32407
|
setup(e, { emit: t }) {
|
|
32418
32408
|
var $e;
|
|
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 } =
|
|
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 } = Bn(($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]) => {
|
|
32420
32410
|
for (const se of Z ?? [])
|
|
32421
32411
|
oe[se.id] = se;
|
|
32422
32412
|
return oe;
|
|
@@ -33257,7 +33247,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
33257
33247
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
33258
33248
|
setup(e, { emit: t }) {
|
|
33259
33249
|
var H;
|
|
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 } =
|
|
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 } = Bn((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(() => {
|
|
33261
33251
|
var V;
|
|
33262
33252
|
let Y = `${l.config.apiBaseUrl}${et.select[l.config.app].availablePlugins}`;
|
|
33263
33253
|
if (l.config.app === "konnect")
|
|
@@ -33695,7 +33685,7 @@ const EK = { class: "kong-ui-entities-plugin-form" }, CK = {
|
|
|
33695
33685
|
var T;
|
|
33696
33686
|
const w = (T = a.pluginMetaData[i.config.pluginType]) == null ? void 0 : T.scope;
|
|
33697
33687
|
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;
|
|
33698
|
-
}, m = (k) => eo(k, "__ui_data"), { getMessageFromError: g } = io(), { axiosInstance: h } =
|
|
33688
|
+
}, m = (k) => eo(k, "__ui_data"), { getMessageFromError: g } = io(), { axiosInstance: h } = Bn((b = i.config) == null ? void 0 : b.axiosRequestConfig), y = D(() => {
|
|
33699
33689
|
var w, T;
|
|
33700
33690
|
let k = `${i.config.apiBaseUrl}${et.form[i.config.app].pluginSchema}`;
|
|
33701
33691
|
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);
|