@kong-ui-public/entities-plugins 9.100.1 → 9.100.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +488 -488
- package/dist/entities-plugins.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +11 -11
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var gh = Object.defineProperty;
|
|
2
2
|
var hh = (e, t, n) => t in e ? gh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var dt = (e, t, n) => hh(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as ve, toRef as je, inject as ot, ref as se, computed as R, watch as Ne, onMounted as $t, resolveComponent as ke, createElementBlock as te, openBlock as C, createVNode as P, markRaw as $o, provide as st, createBlock as Y, withCtx as M, createElementVNode as G, createCommentVNode as Ce, Fragment as Le, renderList as
|
|
5
|
-
import { useStringHelpers as sa, ConfigurationSchemaType as St, useAxios as Bn, useErrors as Jo, useDebouncedFilter as kh, EntityFormBlock as vu, useHelpers as la, EntityBaseFormType as
|
|
4
|
+
import { defineComponent as ve, toRef as je, inject as ot, ref as se, computed as R, watch as Ne, onMounted as $t, resolveComponent as ke, createElementBlock as te, openBlock as C, createVNode as P, markRaw as $o, provide as st, createBlock as Y, withCtx as M, createElementVNode as G, createCommentVNode as Ce, Fragment as Le, renderList as Ve, toDisplayString as me, unref as p, toValue as Oe, useAttrs as In, useSlots as Xt, mergeProps as Ge, createSlots as et, renderSlot as Re, normalizeProps as pn, guardReactiveProps as Cn, createPropsRestProxy as Zt, resolveDynamicComponent as mt, Transition as vh, mergeModels as ys, useModel as Nr, onBeforeMount as Tn, createTextVNode as Fe, normalizeClass as Ue, isRef as Yi, useTemplateRef as at, withKeys as hu, withModifiers as Rt, nextTick as rt, useCssVars as pl, reactive as Qn, toRaw as nf, watchEffect as of, shallowRef as io, onBeforeUnmount as aa, getCurrentScope as rf, effectScope as af, getCurrentInstance as Wi, onScopeDispose as Ei, toRefs as yh, customRef as _h, h as Xe, normalizeStyle as Tt, onUnmounted as ml, isMemoSame as bh, readonly as wh, warn as Eh, useId as sf, Teleport as lf } from "vue";
|
|
5
|
+
import { useStringHelpers as sa, ConfigurationSchemaType as St, useAxios as Bn, useErrors as Jo, useDebouncedFilter as kh, EntityFormBlock as vu, useHelpers as la, EntityBaseFormType as qn, EntityBaseForm as Ch, SupportedEntityType as _s, TerraformCodeBlock as Sh, YamlCodeBlock as xh, JsonCodeBlock as Ah, useTableState as Ih, useGatewayFeatureSupported as Th, useFetcher as $h, useDeleteUrlBuilder as Nh, FetcherStatus as Oh, EntityBaseTable as Ph, PermissionsWrapper as Vn, TableTags as Mh, EntityFilter as Rh, EntityToggleModal as Fh, EntityDeleteModal as uf, EntityTypes as cf, ConfigurationSchemaSection as bo, useSchemaProvider as Dh, EntityBaseConfigCard as Lh, InternalLinkItem as ui } from "@kong-ui-public/entities-shared";
|
|
6
6
|
import { marked as kr } from "marked";
|
|
7
7
|
import { useRouter as ua, useRoute as Kh } from "vue-router";
|
|
8
8
|
import { createI18n as bt, i18nTComponent as jh } from "@kong-ui-public/i18n";
|
|
9
9
|
import { PluginGroup as We, PLUGIN_GROUP_AND_SCOPE_MAP as pe, PluginScope as ft } from "@kong-ui-public/entities-plugins-metadata";
|
|
10
10
|
import { PluginGroup as Gj, PluginScope as Yj } from "@kong-ui-public/entities-plugins-metadata";
|
|
11
|
-
import { composables as Bh, FORMS_CONFIG as ca, getSharedFormName as df, customFields as bs, AUTOFILL_SLOT as Qo, VueFormGenerator as ki, AUTOFILL_SLOT_NAME as eo, FORMS_API_KEY as
|
|
12
|
-
import { VaultSecretPickerProvider as ja, VaultSecretPicker as
|
|
11
|
+
import { composables as Bh, FORMS_CONFIG as ca, getSharedFormName as df, customFields as bs, AUTOFILL_SLOT as Qo, VueFormGenerator as ki, AUTOFILL_SLOT_NAME as eo, FORMS_API_KEY as qh, sharedForms as yu } from "@kong-ui-public/forms";
|
|
12
|
+
import { VaultSecretPickerProvider as ja, VaultSecretPicker as Vh } from "@kong-ui-public/entities-vaults";
|
|
13
13
|
import "@kong-ui-public/entities-vaults/dist/style.css";
|
|
14
14
|
import { ChevronDownIcon as ws, TrashIcon as Or, AddIcon as Gt, RemoveIcon as gl, SparklesIcon as zh, KeyIcon as Uh, CloudIcon as _u, CachedIcon as Hh, ArrowSplitIcon as Gh, VitalsIcon as Yh, StackIcon as Wh, GatewayIcon as Xh, CodeblockIcon as ff, NetworkIcon as Zh, WarningIcon as Jh, MoreIcon as pf, UnfoldMoreIcon as bu, UnfoldLessIcon as wu, FullscreenIcon as Qh, AutoLayoutIcon as ev, ArrowLeftIcon as tv, ChevronDoubleLeftIcon as nv, ChevronDoubleRightIcon as ov, UndoIcon as iv, RedoIcon as rv, ExternalLinkIcon as av, CloseIcon as mf, ExpandIcon as sv, DesignIcon as lv, BookIcon as Eu, PlugIcon as uv } from "@kong/icons";
|
|
15
15
|
import { KTextArea as cv, KInput as dv, KCheckbox as fv, KLabel as Es, KButton as un, KMultiselect as pv, KSelect as mv, KCard as ku, KCollapse as gf, KRadio as ks, KAlert as gv, KTooltip as Ro, KDropdown as hf, KDropdownItem as Cs, KSlideout as hv, KSegmentedControl as vv } from "@kong/kongponents";
|
|
@@ -1202,7 +1202,7 @@ const Gn = (e) => {
|
|
|
1202
1202
|
tags: po
|
|
1203
1203
|
}
|
|
1204
1204
|
]
|
|
1205
|
-
},
|
|
1205
|
+
}, qv = [
|
|
1206
1206
|
{
|
|
1207
1207
|
id: {
|
|
1208
1208
|
uuid: !0,
|
|
@@ -1241,8 +1241,8 @@ const Gn = (e) => {
|
|
|
1241
1241
|
type: "set"
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
],
|
|
1245
|
-
fields:
|
|
1244
|
+
], Vv = {
|
|
1245
|
+
fields: qv
|
|
1246
1246
|
}, xu = {
|
|
1247
1247
|
fields: [
|
|
1248
1248
|
{
|
|
@@ -2574,7 +2574,7 @@ const Gn = (e) => {
|
|
|
2574
2574
|
}
|
|
2575
2575
|
}
|
|
2576
2576
|
}, ly = {
|
|
2577
|
-
acls:
|
|
2577
|
+
acls: Vv,
|
|
2578
2578
|
basicauth_credentials: Uv,
|
|
2579
2579
|
keyauth_credentials: Zv,
|
|
2580
2580
|
keyauth_enc_credentials: sy,
|
|
@@ -3256,7 +3256,7 @@ const Gn = (e) => {
|
|
|
3256
3256
|
keyFromObject: "id"
|
|
3257
3257
|
}
|
|
3258
3258
|
};
|
|
3259
|
-
var bf = typeof global == "object" && global && global.Object === Object && global, Oy = typeof self == "object" && self && self.Object === Object && self, mn = bf || Oy || Function("return this")(),
|
|
3259
|
+
var bf = typeof global == "object" && global && global.Object === Object && global, Oy = typeof self == "object" && self && self.Object === Object && self, mn = bf || Oy || Function("return this")(), qt = mn.Symbol, wf = Object.prototype, Py = wf.hasOwnProperty, My = wf.toString, ci = qt ? qt.toStringTag : void 0;
|
|
3260
3260
|
function Ry(e) {
|
|
3261
3261
|
var t = Py.call(e, ci), n = e[ci];
|
|
3262
3262
|
try {
|
|
@@ -3271,7 +3271,7 @@ var Fy = Object.prototype, Dy = Fy.toString;
|
|
|
3271
3271
|
function Ly(e) {
|
|
3272
3272
|
return Dy.call(e);
|
|
3273
3273
|
}
|
|
3274
|
-
var Ky = "[object Null]", jy = "[object Undefined]", Ou =
|
|
3274
|
+
var Ky = "[object Null]", jy = "[object Undefined]", Ou = qt ? qt.toStringTag : void 0;
|
|
3275
3275
|
function mo(e) {
|
|
3276
3276
|
return e == null ? e === void 0 ? jy : Ky : Ou && Ou in Object(e) ? Ry(e) : Ly(e);
|
|
3277
3277
|
}
|
|
@@ -3287,7 +3287,7 @@ function Ef(e, t) {
|
|
|
3287
3287
|
i[n] = t(e[n], n, e);
|
|
3288
3288
|
return i;
|
|
3289
3289
|
}
|
|
3290
|
-
var Yt = Array.isArray, Pu =
|
|
3290
|
+
var Yt = Array.isArray, Pu = qt ? qt.prototype : void 0, Mu = Pu ? Pu.toString : void 0;
|
|
3291
3291
|
function kf(e) {
|
|
3292
3292
|
if (typeof e == "string")
|
|
3293
3293
|
return e;
|
|
@@ -3302,15 +3302,15 @@ function ro(e) {
|
|
|
3302
3302
|
var t = typeof e;
|
|
3303
3303
|
return e != null && (t == "object" || t == "function");
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function qy(e) {
|
|
3306
3306
|
return e;
|
|
3307
3307
|
}
|
|
3308
|
-
var
|
|
3308
|
+
var Vy = "[object AsyncFunction]", zy = "[object Function]", Uy = "[object GeneratorFunction]", Hy = "[object Proxy]";
|
|
3309
3309
|
function Pr(e) {
|
|
3310
3310
|
if (!ro(e))
|
|
3311
3311
|
return !1;
|
|
3312
3312
|
var t = mo(e);
|
|
3313
|
-
return t == zy || t == Uy || t ==
|
|
3313
|
+
return t == zy || t == Uy || t == Vy || t == Hy;
|
|
3314
3314
|
}
|
|
3315
3315
|
var Ba = mn["__core-js_shared__"], Ru = function() {
|
|
3316
3316
|
var e = /[^.]+$/.exec(Ba && Ba.keys && Ba.keys.IE_PROTO || "");
|
|
@@ -3412,7 +3412,7 @@ var Mr = function() {
|
|
|
3412
3412
|
value: f_(t),
|
|
3413
3413
|
writable: !0
|
|
3414
3414
|
});
|
|
3415
|
-
} :
|
|
3415
|
+
} : qy, m_ = d_(p_);
|
|
3416
3416
|
function g_(e, t) {
|
|
3417
3417
|
for (var n = -1, o = e == null ? 0 : e.length; ++n < o && t(e[n], n, e) !== !1; )
|
|
3418
3418
|
;
|
|
@@ -3488,9 +3488,9 @@ var Sf = Object.prototype, S_ = Sf.hasOwnProperty, x_ = Sf.propertyIsEnumerable,
|
|
|
3488
3488
|
function A_() {
|
|
3489
3489
|
return !1;
|
|
3490
3490
|
}
|
|
3491
|
-
var xf = typeof exports == "object" && exports && !exports.nodeType && exports, Ku = xf && typeof module == "object" && module && !module.nodeType && module, I_ = Ku && Ku.exports === xf, ju = I_ ? mn.Buffer : void 0, T_ = ju ? ju.isBuffer : void 0, Pi = T_ || A_, $_ = "[object Arguments]", N_ = "[object Array]", O_ = "[object Boolean]", P_ = "[object Date]", M_ = "[object Error]", R_ = "[object Function]", F_ = "[object Map]", D_ = "[object Number]", L_ = "[object Object]", K_ = "[object RegExp]", j_ = "[object Set]", B_ = "[object String]",
|
|
3491
|
+
var xf = typeof exports == "object" && exports && !exports.nodeType && exports, Ku = xf && typeof module == "object" && module && !module.nodeType && module, I_ = Ku && Ku.exports === xf, ju = I_ ? mn.Buffer : void 0, T_ = ju ? ju.isBuffer : void 0, Pi = T_ || A_, $_ = "[object Arguments]", N_ = "[object Array]", O_ = "[object Boolean]", P_ = "[object Date]", M_ = "[object Error]", R_ = "[object Function]", F_ = "[object Map]", D_ = "[object Number]", L_ = "[object Object]", K_ = "[object RegExp]", j_ = "[object Set]", B_ = "[object String]", q_ = "[object WeakMap]", V_ = "[object ArrayBuffer]", z_ = "[object DataView]", U_ = "[object Float32Array]", H_ = "[object Float64Array]", G_ = "[object Int8Array]", Y_ = "[object Int16Array]", W_ = "[object Int32Array]", X_ = "[object Uint8Array]", Z_ = "[object Uint8ClampedArray]", J_ = "[object Uint16Array]", Q_ = "[object Uint32Array]", nt = {};
|
|
3492
3492
|
nt[U_] = nt[H_] = nt[G_] = nt[Y_] = nt[W_] = nt[X_] = nt[Z_] = nt[J_] = nt[Q_] = !0;
|
|
3493
|
-
nt[$_] = nt[N_] = nt[
|
|
3493
|
+
nt[$_] = nt[N_] = nt[V_] = nt[O_] = nt[z_] = nt[P_] = nt[M_] = nt[R_] = nt[F_] = nt[D_] = nt[L_] = nt[K_] = nt[j_] = nt[B_] = nt[q_] = !1;
|
|
3494
3494
|
function eb(e) {
|
|
3495
3495
|
return Sn(e) && wl(e.length) && !!nt[mo(e)];
|
|
3496
3496
|
}
|
|
@@ -3499,10 +3499,10 @@ function kl(e) {
|
|
|
3499
3499
|
return e(t);
|
|
3500
3500
|
};
|
|
3501
3501
|
}
|
|
3502
|
-
var Af = typeof exports == "object" && exports && !exports.nodeType && exports, Ci = Af && typeof module == "object" && module && !module.nodeType && module, tb = Ci && Ci.exports === Af,
|
|
3502
|
+
var Af = typeof exports == "object" && exports && !exports.nodeType && exports, Ci = Af && typeof module == "object" && module && !module.nodeType && module, tb = Ci && Ci.exports === Af, qa = tb && bf.process, Do = function() {
|
|
3503
3503
|
try {
|
|
3504
3504
|
var e = Ci && Ci.require && Ci.require("util").types;
|
|
3505
|
-
return e ||
|
|
3505
|
+
return e || qa && qa.binding && qa.binding("util");
|
|
3506
3506
|
} catch {
|
|
3507
3507
|
}
|
|
3508
3508
|
}(), Bu = Do && Do.isTypedArray, Cl = Bu ? kl(Bu) : eb, nb = Object.prototype, ob = nb.hasOwnProperty;
|
|
@@ -3701,17 +3701,17 @@ function jb(e) {
|
|
|
3701
3701
|
}), n = t.cache;
|
|
3702
3702
|
return t;
|
|
3703
3703
|
}
|
|
3704
|
-
var Bb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
|
|
3704
|
+
var Bb = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, qb = /\\(\\)?/g, Vb = jb(function(e) {
|
|
3705
3705
|
var t = [];
|
|
3706
3706
|
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Bb, function(n, o, i, r) {
|
|
3707
|
-
t.push(i ? r.replace(
|
|
3707
|
+
t.push(i ? r.replace(qb, "$1") : o || n);
|
|
3708
3708
|
}), t;
|
|
3709
3709
|
});
|
|
3710
3710
|
function Il(e) {
|
|
3711
3711
|
return e == null ? "" : kf(e);
|
|
3712
3712
|
}
|
|
3713
3713
|
function ei(e, t) {
|
|
3714
|
-
return Yt(e) ? e : pb(e, t) ? [e] :
|
|
3714
|
+
return Yt(e) ? e : pb(e, t) ? [e] : Vb(Il(e));
|
|
3715
3715
|
}
|
|
3716
3716
|
function ha(e) {
|
|
3717
3717
|
if (typeof e == "string" || vl(e))
|
|
@@ -3734,9 +3734,9 @@ function $l(e, t) {
|
|
|
3734
3734
|
e[i + n] = t[n];
|
|
3735
3735
|
return e;
|
|
3736
3736
|
}
|
|
3737
|
-
var
|
|
3737
|
+
var qu = qt ? qt.isConcatSpreadable : void 0;
|
|
3738
3738
|
function zb(e) {
|
|
3739
|
-
return Yt(e) || pa(e) || !!(
|
|
3739
|
+
return Yt(e) || pa(e) || !!(qu && e && e[qu]);
|
|
3740
3740
|
}
|
|
3741
3741
|
function Ub(e, t, n, o, i) {
|
|
3742
3742
|
var r = -1, a = e.length;
|
|
@@ -3835,7 +3835,7 @@ function N0(e, t) {
|
|
|
3835
3835
|
function O0(e, t) {
|
|
3836
3836
|
return e && Xi(t, xl(t), e);
|
|
3837
3837
|
}
|
|
3838
|
-
var
|
|
3838
|
+
var qf = typeof exports == "object" && exports && !exports.nodeType && exports, Vu = qf && typeof module == "object" && module && !module.nodeType && module, P0 = Vu && Vu.exports === qf, zu = P0 ? mn.Buffer : void 0, Uu = zu ? zu.allocUnsafe : void 0;
|
|
3839
3839
|
function M0(e, t) {
|
|
3840
3840
|
if (t)
|
|
3841
3841
|
return e.slice();
|
|
@@ -3849,14 +3849,14 @@ function R0(e, t) {
|
|
|
3849
3849
|
}
|
|
3850
3850
|
return r;
|
|
3851
3851
|
}
|
|
3852
|
-
function
|
|
3852
|
+
function Vf() {
|
|
3853
3853
|
return [];
|
|
3854
3854
|
}
|
|
3855
3855
|
var F0 = Object.prototype, D0 = F0.propertyIsEnumerable, Hu = Object.getOwnPropertySymbols, Ol = Hu ? function(e) {
|
|
3856
3856
|
return e == null ? [] : (e = Object(e), R0(Hu(e), function(t) {
|
|
3857
3857
|
return D0.call(e, t);
|
|
3858
3858
|
}));
|
|
3859
|
-
} :
|
|
3859
|
+
} : Vf;
|
|
3860
3860
|
function L0(e, t) {
|
|
3861
3861
|
return Xi(e, Ol(e), t);
|
|
3862
3862
|
}
|
|
@@ -3864,7 +3864,7 @@ var K0 = Object.getOwnPropertySymbols, zf = K0 ? function(e) {
|
|
|
3864
3864
|
for (var t = []; e; )
|
|
3865
3865
|
$l(t, Ol(e)), e = Nl(e);
|
|
3866
3866
|
return t;
|
|
3867
|
-
} :
|
|
3867
|
+
} : Vf;
|
|
3868
3868
|
function j0(e, t) {
|
|
3869
3869
|
return Xi(e, zf(e), t);
|
|
3870
3870
|
}
|
|
@@ -3878,14 +3878,14 @@ function Ts(e) {
|
|
|
3878
3878
|
function Hf(e) {
|
|
3879
3879
|
return Uf(e, xl, zf);
|
|
3880
3880
|
}
|
|
3881
|
-
var $s = ho(mn, "DataView"), Ns = ho(mn, "Promise"), Os = ho(mn, "Set"), Gu = "[object Map]", B0 = "[object Object]", Yu = "[object Promise]", Wu = "[object Set]", Xu = "[object WeakMap]", Zu = "[object DataView]",
|
|
3881
|
+
var $s = ho(mn, "DataView"), Ns = ho(mn, "Promise"), Os = ho(mn, "Set"), Gu = "[object Map]", B0 = "[object Object]", Yu = "[object Promise]", Wu = "[object Set]", Xu = "[object WeakMap]", Zu = "[object DataView]", q0 = go($s), V0 = go(Ri), z0 = go(Ns), U0 = go(Os), H0 = go(xs), Bt = mo;
|
|
3882
3882
|
($s && Bt(new $s(new ArrayBuffer(1))) != Zu || Ri && Bt(new Ri()) != Gu || Ns && Bt(Ns.resolve()) != Yu || Os && Bt(new Os()) != Wu || xs && Bt(new xs()) != Xu) && (Bt = function(e) {
|
|
3883
3883
|
var t = mo(e), n = t == B0 ? e.constructor : void 0, o = n ? go(n) : "";
|
|
3884
3884
|
if (o)
|
|
3885
3885
|
switch (o) {
|
|
3886
|
-
case V0:
|
|
3887
|
-
return Zu;
|
|
3888
3886
|
case q0:
|
|
3887
|
+
return Zu;
|
|
3888
|
+
case V0:
|
|
3889
3889
|
return Gu;
|
|
3890
3890
|
case z0:
|
|
3891
3891
|
return Yu;
|
|
@@ -3915,7 +3915,7 @@ function J0(e) {
|
|
|
3915
3915
|
var t = new e.constructor(e.source, Z0.exec(e));
|
|
3916
3916
|
return t.lastIndex = e.lastIndex, t;
|
|
3917
3917
|
}
|
|
3918
|
-
var Ju =
|
|
3918
|
+
var Ju = qt ? qt.prototype : void 0, Qu = Ju ? Ju.valueOf : void 0;
|
|
3919
3919
|
function Q0(e) {
|
|
3920
3920
|
return Qu ? Object(Qu.call(e)) : {};
|
|
3921
3921
|
}
|
|
@@ -3968,9 +3968,9 @@ var ec = Do && Do.isMap, Cw = ec ? kl(ec) : kw, Sw = "[object Set]";
|
|
|
3968
3968
|
function xw(e) {
|
|
3969
3969
|
return Sn(e) && Bt(e) == Sw;
|
|
3970
3970
|
}
|
|
3971
|
-
var tc = Do && Do.isSet, Aw = tc ? kl(tc) : xw, Iw = 1, Tw = 2, $w = 4, Gf = "[object Arguments]", Nw = "[object Array]", Ow = "[object Boolean]", Pw = "[object Date]", Mw = "[object Error]", Yf = "[object Function]", Rw = "[object GeneratorFunction]", Fw = "[object Map]", Dw = "[object Number]", Wf = "[object Object]", Lw = "[object RegExp]", Kw = "[object Set]", jw = "[object String]", Bw = "[object Symbol]",
|
|
3972
|
-
Qe[Gf] = Qe[Nw] = Qe[
|
|
3973
|
-
Qe[Mw] = Qe[Yf] = Qe[
|
|
3971
|
+
var tc = Do && Do.isSet, Aw = tc ? kl(tc) : xw, Iw = 1, Tw = 2, $w = 4, Gf = "[object Arguments]", Nw = "[object Array]", Ow = "[object Boolean]", Pw = "[object Date]", Mw = "[object Error]", Yf = "[object Function]", Rw = "[object GeneratorFunction]", Fw = "[object Map]", Dw = "[object Number]", Wf = "[object Object]", Lw = "[object RegExp]", Kw = "[object Set]", jw = "[object String]", Bw = "[object Symbol]", qw = "[object WeakMap]", Vw = "[object ArrayBuffer]", zw = "[object DataView]", Uw = "[object Float32Array]", Hw = "[object Float64Array]", Gw = "[object Int8Array]", Yw = "[object Int16Array]", Ww = "[object Int32Array]", Xw = "[object Uint8Array]", Zw = "[object Uint8ClampedArray]", Jw = "[object Uint16Array]", Qw = "[object Uint32Array]", Qe = {};
|
|
3972
|
+
Qe[Gf] = Qe[Nw] = Qe[Vw] = Qe[zw] = Qe[Ow] = Qe[Pw] = Qe[Uw] = Qe[Hw] = Qe[Gw] = Qe[Yw] = Qe[Ww] = Qe[Fw] = Qe[Dw] = Qe[Wf] = Qe[Lw] = Qe[Kw] = Qe[jw] = Qe[Bw] = Qe[Xw] = Qe[Zw] = Qe[Jw] = Qe[Qw] = !0;
|
|
3973
|
+
Qe[Mw] = Qe[Yf] = Qe[qw] = !1;
|
|
3974
3974
|
function Si(e, t, n, o, i, r) {
|
|
3975
3975
|
var a, s = t & Iw, l = t & Tw, u = t & $w;
|
|
3976
3976
|
if (n && (a = i ? n(e, o, i, r) : n(e)), a !== void 0)
|
|
@@ -4081,7 +4081,7 @@ function c1(e) {
|
|
|
4081
4081
|
n[++t] = o;
|
|
4082
4082
|
}), n;
|
|
4083
4083
|
}
|
|
4084
|
-
var d1 = 1, f1 = 2, p1 = "[object Boolean]", m1 = "[object Date]", g1 = "[object Error]", h1 = "[object Map]", v1 = "[object Number]", y1 = "[object RegExp]", _1 = "[object Set]", b1 = "[object String]", w1 = "[object Symbol]", E1 = "[object ArrayBuffer]", k1 = "[object DataView]", nc =
|
|
4084
|
+
var d1 = 1, f1 = 2, p1 = "[object Boolean]", m1 = "[object Date]", g1 = "[object Error]", h1 = "[object Map]", v1 = "[object Number]", y1 = "[object RegExp]", _1 = "[object Set]", b1 = "[object String]", w1 = "[object Symbol]", E1 = "[object ArrayBuffer]", k1 = "[object DataView]", nc = qt ? qt.prototype : void 0, Va = nc ? nc.valueOf : void 0;
|
|
4085
4085
|
function C1(e, t, n, o, i, r, a) {
|
|
4086
4086
|
switch (n) {
|
|
4087
4087
|
case k1:
|
|
@@ -4112,8 +4112,8 @@ function C1(e, t, n, o, i, r, a) {
|
|
|
4112
4112
|
var d = Xf(s(e), s(t), o, i, r, a);
|
|
4113
4113
|
return a.delete(e), d;
|
|
4114
4114
|
case w1:
|
|
4115
|
-
if (
|
|
4116
|
-
return
|
|
4115
|
+
if (Va)
|
|
4116
|
+
return Va.call(e) == Va.call(t);
|
|
4117
4117
|
}
|
|
4118
4118
|
return !1;
|
|
4119
4119
|
}
|
|
@@ -4221,14 +4221,14 @@ function Jf(e, t) {
|
|
|
4221
4221
|
function B1(e) {
|
|
4222
4222
|
return Jb(e) ? void 0 : e;
|
|
4223
4223
|
}
|
|
4224
|
-
var
|
|
4224
|
+
var q1 = 1, V1 = 2, z1 = 4, Ml = Of(function(e, t) {
|
|
4225
4225
|
var n = {};
|
|
4226
4226
|
if (e == null)
|
|
4227
4227
|
return n;
|
|
4228
4228
|
var o = !1;
|
|
4229
4229
|
t = Ef(t, function(r) {
|
|
4230
4230
|
return r = ei(r, e), o || (o = r.length > 1), r;
|
|
4231
|
-
}), Xi(e, Hf(e), n), o && (n = Si(n,
|
|
4231
|
+
}), Xi(e, Hf(e), n), o && (n = Si(n, q1 | V1 | z1, B1));
|
|
4232
4232
|
for (var i = t.length; i--; )
|
|
4233
4233
|
Jf(n, t[i]);
|
|
4234
4234
|
return n;
|
|
@@ -4548,9 +4548,9 @@ const lE = (e, t) => {
|
|
|
4548
4548
|
u(W[U], U, W, z, T, D);
|
|
4549
4549
|
});
|
|
4550
4550
|
const j = z.name, re = nn[j], X = [], J = (U) => {
|
|
4551
|
-
const
|
|
4552
|
-
for (const
|
|
4553
|
-
if (U.model.includes(
|
|
4551
|
+
const q = ["cluster-cache"];
|
|
4552
|
+
for (const V of q)
|
|
4553
|
+
if (U.model.includes(V))
|
|
4554
4554
|
return !1;
|
|
4555
4555
|
return new RegExp("(?<=-redis-).*").test(U.model);
|
|
4556
4556
|
};
|
|
@@ -4570,9 +4570,9 @@ const lE = (e, t) => {
|
|
|
4570
4570
|
redisPath: x._redis_partial_path
|
|
4571
4571
|
});
|
|
4572
4572
|
}
|
|
4573
|
-
T.fields.sort((U,
|
|
4573
|
+
T.fields.sort((U, q) => (U.order = U.order || 0, q.order = q.order || 0, U.order - q.order));
|
|
4574
4574
|
} else {
|
|
4575
|
-
const U = [],
|
|
4575
|
+
const U = [], q = [], V = [], oe = [], ee = {};
|
|
4576
4576
|
if (re != null && re.fieldRules) {
|
|
4577
4577
|
const be = [
|
|
4578
4578
|
...re.fieldRules.atLeastOneOf ?? [],
|
|
@@ -4596,12 +4596,12 @@ const lE = (e, t) => {
|
|
|
4596
4596
|
continue;
|
|
4597
4597
|
}
|
|
4598
4598
|
if (be.required || ee[be.model] !== void 0) {
|
|
4599
|
-
ee[be.model] === !1 && (ee[be.model] = !0),
|
|
4599
|
+
ee[be.model] === !1 && (ee[be.model] = !0), q.push(be);
|
|
4600
4600
|
continue;
|
|
4601
4601
|
}
|
|
4602
|
-
|
|
4602
|
+
V.push(be);
|
|
4603
4603
|
}
|
|
4604
|
-
oe.length &&
|
|
4604
|
+
oe.length && V.push({
|
|
4605
4605
|
id: "_redis",
|
|
4606
4606
|
fields: oe,
|
|
4607
4607
|
model: "__redis_partial",
|
|
@@ -4616,13 +4616,13 @@ const lE = (e, t) => {
|
|
|
4616
4616
|
const ge = [];
|
|
4617
4617
|
U.length > 0 && ge.push({
|
|
4618
4618
|
fields: U.sort(op)
|
|
4619
|
-
}), (
|
|
4620
|
-
fields:
|
|
4619
|
+
}), (q.length > 0 || V.length > 0) && ge.push({
|
|
4620
|
+
fields: q.sort(lc),
|
|
4621
4621
|
collapsible: {
|
|
4622
4622
|
title: o("plugins.form.grouping.plugin_configuration.title"),
|
|
4623
4623
|
description: o("plugins.form.grouping.plugin_configuration.description"),
|
|
4624
4624
|
nestedCollapsible: {
|
|
4625
|
-
fields:
|
|
4625
|
+
fields: V.sort(lc),
|
|
4626
4626
|
triggerLabel: {
|
|
4627
4627
|
expand: o("plugins.form.grouping.advanced_parameters.view"),
|
|
4628
4628
|
collapse: o("plugins.form.grouping.advanced_parameters.hide")
|
|
@@ -4869,16 +4869,16 @@ const lE = (e, t) => {
|
|
|
4869
4869
|
return C(), Y(u, { class: "plugin-field-rule-alerts" }, {
|
|
4870
4870
|
default: M(() => [
|
|
4871
4871
|
G("ul", null, [
|
|
4872
|
-
(C(!0), te(Le, null,
|
|
4872
|
+
(C(!0), te(Le, null, Ve(a.value, (d, c) => (C(), te("li", {
|
|
4873
4873
|
key: `simple-alert-${c}`
|
|
4874
4874
|
}, me(d), 1))), 128)),
|
|
4875
4875
|
t.rules.onlyOneOfMutuallyRequired && t.rules.onlyOneOfMutuallyRequired.length > 0 ? (C(), te("li", cE, [
|
|
4876
|
-
(C(!0), te(Le, null,
|
|
4876
|
+
(C(!0), te(Le, null, Ve(t.rules.onlyOneOfMutuallyRequired, (d, c) => (C(), te("div", {
|
|
4877
4877
|
key: `only-one-mutually-alert-${c}`
|
|
4878
4878
|
}, [
|
|
4879
4879
|
G("div", null, me(p(o)("plugins.form.field_rules.only_one_of_mutually_required")), 1),
|
|
4880
4880
|
G("ul", null, [
|
|
4881
|
-
(C(!0), te(Le, null,
|
|
4881
|
+
(C(!0), te(Le, null, Ve(d, (f, m) => (C(), te("li", {
|
|
4882
4882
|
key: `only-one-mutually-alert-${c}-combination-${m}`
|
|
4883
4883
|
}, me(i(f)), 1))), 128))
|
|
4884
4884
|
])
|
|
@@ -5237,7 +5237,7 @@ const lo = /* @__PURE__ */ ve({
|
|
|
5237
5237
|
onChange: d,
|
|
5238
5238
|
"onUpdate:modelValue": u
|
|
5239
5239
|
}), et({ _: 2 }, [
|
|
5240
|
-
|
|
5240
|
+
Ve(Xt(), (m, h) => ({
|
|
5241
5241
|
name: h,
|
|
5242
5242
|
fn: M((v) => [
|
|
5243
5243
|
Re(c.$slots, h, pn(Cn(v)))
|
|
@@ -5511,7 +5511,7 @@ const lo = /* @__PURE__ */ ve({
|
|
|
5511
5511
|
"data-testid": `ff-object-${o.path.value}`
|
|
5512
5512
|
}), [
|
|
5513
5513
|
Re(g.$slots, "default", {}, () => [
|
|
5514
|
-
(C(!0), te(Le, null,
|
|
5514
|
+
(C(!0), te(Le, null, Ve(h.value, (A) => (C(), Y(At, {
|
|
5515
5515
|
key: Object.keys(A)[0],
|
|
5516
5516
|
name: Object.keys(A)[0]
|
|
5517
5517
|
}, null, 8, ["name"]))), 128))
|
|
@@ -5591,7 +5591,7 @@ const lo = /* @__PURE__ */ ve({
|
|
|
5591
5591
|
"data-testid": `ff-object-content-${o.path.value}`
|
|
5592
5592
|
}, [
|
|
5593
5593
|
Re(g.$slots, "default", {}, () => [
|
|
5594
|
-
(C(!0), te(Le, null,
|
|
5594
|
+
(C(!0), te(Le, null, Ve(h.value, (A) => (C(), Y(At, {
|
|
5595
5595
|
key: Object.keys(A)[0],
|
|
5596
5596
|
name: Object.keys(A)[0]
|
|
5597
5597
|
}, null, 8, ["name"]))), 128))
|
|
@@ -5604,7 +5604,7 @@ const lo = /* @__PURE__ */ ve({
|
|
|
5604
5604
|
], 64);
|
|
5605
5605
|
};
|
|
5606
5606
|
}
|
|
5607
|
-
}), Ot = /* @__PURE__ */ Me(jE, [["__scopeId", "data-v-6f044592"]]), BE = ["innerHTML"],
|
|
5607
|
+
}), Ot = /* @__PURE__ */ Me(jE, [["__scopeId", "data-v-6f044592"]]), BE = ["innerHTML"], qE = /* @__PURE__ */ ve({
|
|
5608
5608
|
__name: "NumberField",
|
|
5609
5609
|
props: {
|
|
5610
5610
|
name: {},
|
|
@@ -5673,7 +5673,7 @@ const lo = /* @__PURE__ */ ve({
|
|
|
5673
5673
|
]), 1040, ["data-autofocus", "data-testid", "model-value"]));
|
|
5674
5674
|
};
|
|
5675
5675
|
}
|
|
5676
|
-
}),
|
|
5676
|
+
}), qo = /* @__PURE__ */ Me(qE, [["__scopeId", "data-v-00c065d4"]]), VE = ["innerHTML"], zE = /* @__PURE__ */ ve({
|
|
5677
5677
|
__name: "EnumField",
|
|
5678
5678
|
props: {
|
|
5679
5679
|
name: {},
|
|
@@ -5734,7 +5734,7 @@ const lo = /* @__PURE__ */ ve({
|
|
|
5734
5734
|
Re(c.$slots, "tooltip", {}, () => [
|
|
5735
5735
|
G("div", {
|
|
5736
5736
|
innerHTML: p(s).labelAttributes.info
|
|
5737
|
-
}, null, 8,
|
|
5737
|
+
}, null, 8, VE)
|
|
5738
5738
|
], !0)
|
|
5739
5739
|
]),
|
|
5740
5740
|
key: "0"
|
|
@@ -5943,7 +5943,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
5943
5943
|
_: 1
|
|
5944
5944
|
}, 8, ["data-testid"])
|
|
5945
5945
|
], 8, HE),
|
|
5946
|
-
(C(!0), te(Le, null,
|
|
5946
|
+
(C(!0), te(Le, null, Ve(p(a), (H, w) => (C(), te("div", {
|
|
5947
5947
|
key: H.id,
|
|
5948
5948
|
class: "ff-kv-field-entry",
|
|
5949
5949
|
"data-testid": `ff-kv-container-${p(f).path.value}.${w}`
|
|
@@ -6204,7 +6204,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
6204
6204
|
return "one_of" in n.schema.value ? cn : Kl;
|
|
6205
6205
|
case "number":
|
|
6206
6206
|
case "integer":
|
|
6207
|
-
return "one_of" in n.schema.value ? cn :
|
|
6207
|
+
return "one_of" in n.schema.value ? cn : qo;
|
|
6208
6208
|
case "array":
|
|
6209
6209
|
return ya;
|
|
6210
6210
|
case "set":
|
|
@@ -6356,7 +6356,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
6356
6356
|
class: "ff-array-field-container",
|
|
6357
6357
|
"data-testid": `ff-array-basic-container-${l.path.value}`
|
|
6358
6358
|
}, [
|
|
6359
|
-
(C(!0), te(Le, null,
|
|
6359
|
+
(C(!0), te(Le, null, Ve(c.value, (T, z) => (C(), Y(p(m), {
|
|
6360
6360
|
key: p(f)(T, z),
|
|
6361
6361
|
class: "ff-array-field-item",
|
|
6362
6362
|
"data-index": z,
|
|
@@ -6405,7 +6405,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
6405
6405
|
"data-testid": `ff-array-tabs-${l.path.value}`,
|
|
6406
6406
|
tabs: v.value
|
|
6407
6407
|
}, et({ _: 2 }, [
|
|
6408
|
-
|
|
6408
|
+
Ve(c.value, (T, z) => ({
|
|
6409
6409
|
name: p(f)(T, z),
|
|
6410
6410
|
fn: M(() => [
|
|
6411
6411
|
G("div", {
|
|
@@ -6424,7 +6424,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
6424
6424
|
], 8, fk)
|
|
6425
6425
|
])
|
|
6426
6426
|
})),
|
|
6427
|
-
|
|
6427
|
+
Ve(c.value, (T, z) => ({
|
|
6428
6428
|
name: `${p(f)(T, z)}-anchor`,
|
|
6429
6429
|
fn: M(() => [
|
|
6430
6430
|
Fe(me(h(T, z)) + " ", 1),
|
|
@@ -6586,7 +6586,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
6586
6586
|
default: M(() => [
|
|
6587
6587
|
(C(), Y(mt(p(i)[p(jo)]))),
|
|
6588
6588
|
Re(m.$slots, "default", {}, () => [
|
|
6589
|
-
(C(!0), te(Le, null,
|
|
6589
|
+
(C(!0), te(Le, null, Ve(s.value, (v) => (C(), Y(At, {
|
|
6590
6590
|
key: Object.keys(v)[0],
|
|
6591
6591
|
name: Object.keys(v)[0],
|
|
6592
6592
|
onGlobalAction: h[0] || (h[0] = (g, y) => o("globalAction", g, y))
|
|
@@ -6849,7 +6849,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
6849
6849
|
}, 8, ["modelValue"])
|
|
6850
6850
|
], 64));
|
|
6851
6851
|
}
|
|
6852
|
-
}),
|
|
6852
|
+
}), ql = /* @__PURE__ */ Me(Ek, [["__scopeId", "data-v-88b54620"]]), kk = /* @__PURE__ */ ve({
|
|
6853
6853
|
__name: "RequestCalloutForm",
|
|
6854
6854
|
props: {
|
|
6855
6855
|
schema: {},
|
|
@@ -6863,7 +6863,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
6863
6863
|
},
|
|
6864
6864
|
setup(e) {
|
|
6865
6865
|
const t = e, n = Xt();
|
|
6866
|
-
return st(Qo, n == null ? void 0 : n[eo]), (o, i) => (C(), Y(
|
|
6866
|
+
return st(Qo, n == null ? void 0 : n[eo]), (o, i) => (C(), Y(ql, pn(Cn(t)), {
|
|
6867
6867
|
default: M((r) => [
|
|
6868
6868
|
P(_k, pn(Cn(r)), null, 16)
|
|
6869
6869
|
]),
|
|
@@ -6909,7 +6909,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
6909
6909
|
} : void 0
|
|
6910
6910
|
]), 1040),
|
|
6911
6911
|
G("div", xk, [
|
|
6912
|
-
(C(!0), te(Le, null,
|
|
6912
|
+
(C(!0), te(Le, null, Ve(s.value, (h) => (C(), Y(p(ks), {
|
|
6913
6913
|
key: h.value,
|
|
6914
6914
|
"model-value": p(r).value.value,
|
|
6915
6915
|
"onUpdate:modelValue": [
|
|
@@ -7038,7 +7038,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7038
7038
|
}, null, 8, ["items", "label"])
|
|
7039
7039
|
]),
|
|
7040
7040
|
G("div", Ok, [
|
|
7041
|
-
(C(!0), te(Le, null,
|
|
7041
|
+
(C(!0), te(Le, null, Ve(r.value, (D, B) => (C(), te("div", {
|
|
7042
7042
|
key: p(a)(D, B)
|
|
7043
7043
|
}, [
|
|
7044
7044
|
P(b, {
|
|
@@ -7054,12 +7054,12 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7054
7054
|
id: `sp-form-request-limits-item-${B}-legend`,
|
|
7055
7055
|
class: "sp-form-request-limits-inputs"
|
|
7056
7056
|
}, [
|
|
7057
|
-
P(
|
|
7057
|
+
P(qo, {
|
|
7058
7058
|
name: `$.config.limit.${B}`,
|
|
7059
7059
|
placeholder: p(t)("sp.request_limits.request_number")
|
|
7060
7060
|
}, null, 8, ["name", "placeholder"]),
|
|
7061
7061
|
G("div", null, me(p(t)("sp.request_limits.interval_determiner")), 1),
|
|
7062
|
-
P(
|
|
7062
|
+
P(qo, {
|
|
7063
7063
|
name: `$.config.window_size.${B}`,
|
|
7064
7064
|
placeholder: p(t)("sp.request_limits.time_interval")
|
|
7065
7065
|
}, null, 8, ["name", "placeholder"]),
|
|
@@ -7092,7 +7092,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7092
7092
|
h.value.length > 0 ? (C(), te("div", Fk, [
|
|
7093
7093
|
G("div", null, me(p(t)("sp.start_with_a_use_case")), 1),
|
|
7094
7094
|
G("div", Dk, [
|
|
7095
|
-
(C(!0), te(Le, null,
|
|
7095
|
+
(C(!0), te(Le, null, Ve(h.value, (D, B) => (C(), Y(x, {
|
|
7096
7096
|
key: `use-case-${B}`,
|
|
7097
7097
|
"max-width": "300"
|
|
7098
7098
|
}, {
|
|
@@ -7149,7 +7149,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7149
7149
|
_: 1
|
|
7150
7150
|
}, 8, ["info"]),
|
|
7151
7151
|
G("legend", jk, [
|
|
7152
|
-
P(
|
|
7152
|
+
P(qo, {
|
|
7153
7153
|
class: "input-error-code",
|
|
7154
7154
|
label: "",
|
|
7155
7155
|
name: "error_code",
|
|
@@ -7166,7 +7166,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7166
7166
|
]);
|
|
7167
7167
|
};
|
|
7168
7168
|
}
|
|
7169
|
-
}),
|
|
7169
|
+
}), qk = /* @__PURE__ */ Me(Bk, [["__scopeId", "data-v-25eb297d"]]), Vk = { class: "partial-config-card" }, zk = { class: "config-card-row-label" }, Uk = { class: "label-text" }, Hk = ["data-testid"], Gk = ["data-testid"], Yk = { key: 1 }, Wk = ["data-testid"], Xk = ["data-testid"], Zk = /* @__PURE__ */ ve({
|
|
7170
7170
|
__name: "RedisConfigCard",
|
|
7171
7171
|
props: {
|
|
7172
7172
|
configFields: {},
|
|
@@ -7208,8 +7208,8 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7208
7208
|
}).sort((c, f) => c.order - f.order).filter((c) => c.type !== "hidden")), u = hE(i.configFields, i.pluginRedisFields || []), d = R(() => l.value.concat(u));
|
|
7209
7209
|
return (c, f) => {
|
|
7210
7210
|
const m = ke("KCopy");
|
|
7211
|
-
return C(), te("div",
|
|
7212
|
-
(C(!0), te(Le, null,
|
|
7211
|
+
return C(), te("div", Vk, [
|
|
7212
|
+
(C(!0), te(Le, null, Ve(d.value, ({ key: h, label: v, value: g, type: y }) => (C(), te("div", {
|
|
7213
7213
|
key: h,
|
|
7214
7214
|
class: "partial-config-card-row"
|
|
7215
7215
|
}, [
|
|
@@ -7425,7 +7425,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7425
7425
|
j(J), f.value = !0;
|
|
7426
7426
|
} else _ != null && _.value && (v.value = _.value);
|
|
7427
7427
|
}), (X, J) => {
|
|
7428
|
-
const U = ke("KBadge"),
|
|
7428
|
+
const U = ke("KBadge"), q = ke("KRadio"), V = ke("KSelect"), oe = ke("KCard");
|
|
7429
7429
|
return u.value ? (C(), Y(oe, {
|
|
7430
7430
|
key: 0,
|
|
7431
7431
|
class: "redis-config-card",
|
|
@@ -7434,7 +7434,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7434
7434
|
}, {
|
|
7435
7435
|
default: M(() => [
|
|
7436
7436
|
G("div", uC, [
|
|
7437
|
-
P(
|
|
7437
|
+
P(q, {
|
|
7438
7438
|
modelValue: f.value,
|
|
7439
7439
|
"onUpdate:modelValue": J[0] || (J[0] = (ee) => f.value = ee),
|
|
7440
7440
|
card: "",
|
|
@@ -7454,7 +7454,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7454
7454
|
]),
|
|
7455
7455
|
_: 1
|
|
7456
7456
|
}, 8, ["modelValue", "description", "label"]),
|
|
7457
|
-
P(
|
|
7457
|
+
P(q, {
|
|
7458
7458
|
modelValue: f.value,
|
|
7459
7459
|
"onUpdate:modelValue": J[1] || (J[1] = (ee) => f.value = ee),
|
|
7460
7460
|
card: "",
|
|
@@ -7468,7 +7468,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7468
7468
|
f.value ? (C(), te("div", cC, [
|
|
7469
7469
|
G("div", dC, me(p(o)("redis.shared_configuration.title")), 1),
|
|
7470
7470
|
G("div", fC, [
|
|
7471
|
-
P(
|
|
7471
|
+
P(V, {
|
|
7472
7472
|
class: "redis-config-select-trigger",
|
|
7473
7473
|
"data-testid": "redis-config-select-trigger",
|
|
7474
7474
|
"enable-filtering": "",
|
|
@@ -7593,7 +7593,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7593
7593
|
}, {
|
|
7594
7594
|
default: M(() => [
|
|
7595
7595
|
P(Kk),
|
|
7596
|
-
P(
|
|
7596
|
+
P(qk)
|
|
7597
7597
|
]),
|
|
7598
7598
|
_: 1
|
|
7599
7599
|
}),
|
|
@@ -7632,7 +7632,7 @@ const UE = ["data-testid"], HE = ["data-testid"], GE = ["innerHTML"], YE = ["dat
|
|
|
7632
7632
|
emits: ["globalAction"],
|
|
7633
7633
|
setup(e) {
|
|
7634
7634
|
const t = e, n = Xt();
|
|
7635
|
-
return st(Qo, n == null ? void 0 : n[eo]), (o, i) => (C(), Y(
|
|
7635
|
+
return st(Qo, n == null ? void 0 : n[eo]), (o, i) => (C(), Y(ql, pn(Cn(t)), {
|
|
7636
7636
|
default: M((r) => [
|
|
7637
7637
|
P(EC, Ge(r, {
|
|
7638
7638
|
onGlobalAction: i[0] || (i[0] = (...a) => o.$emit("globalAction", ...a))
|
|
@@ -7910,7 +7910,7 @@ function jC(e, t) {
|
|
|
7910
7910
|
`;
|
|
7911
7911
|
return s.replace(/\n$/, "");
|
|
7912
7912
|
}
|
|
7913
|
-
var BC = jC,
|
|
7913
|
+
var BC = jC, qC = [
|
|
7914
7914
|
"kind",
|
|
7915
7915
|
"multi",
|
|
7916
7916
|
"resolve",
|
|
@@ -7921,7 +7921,7 @@ var BC = jC, VC = [
|
|
|
7921
7921
|
"representName",
|
|
7922
7922
|
"defaultStyle",
|
|
7923
7923
|
"styleAliases"
|
|
7924
|
-
],
|
|
7924
|
+
], VC = [
|
|
7925
7925
|
"scalar",
|
|
7926
7926
|
"sequence",
|
|
7927
7927
|
"mapping"
|
|
@@ -7936,13 +7936,13 @@ function zC(e) {
|
|
|
7936
7936
|
}
|
|
7937
7937
|
function UC(e, t) {
|
|
7938
7938
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
7939
|
-
if (
|
|
7939
|
+
if (qC.indexOf(n) === -1)
|
|
7940
7940
|
throw new It('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
7941
7941
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
7942
7942
|
return !0;
|
|
7943
7943
|
}, this.construct = t.construct || function(n) {
|
|
7944
7944
|
return n;
|
|
7945
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = zC(t.styleAliases || null),
|
|
7945
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = zC(t.styleAliases || null), VC.indexOf(this.kind) === -1)
|
|
7946
7946
|
throw new It('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
7947
7947
|
}
|
|
7948
7948
|
var kt = UC;
|
|
@@ -8277,11 +8277,11 @@ function mS(e) {
|
|
|
8277
8277
|
var Rp = new kt("tag:yaml.org,2002:merge", {
|
|
8278
8278
|
kind: "scalar",
|
|
8279
8279
|
resolve: mS
|
|
8280
|
-
}),
|
|
8280
|
+
}), Vl = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8281
8281
|
\r`;
|
|
8282
8282
|
function gS(e) {
|
|
8283
8283
|
if (e === null) return !1;
|
|
8284
|
-
var t, n, o = 0, i = e.length, r =
|
|
8284
|
+
var t, n, o = 0, i = e.length, r = Vl;
|
|
8285
8285
|
for (n = 0; n < i; n++)
|
|
8286
8286
|
if (t = r.indexOf(e.charAt(n)), !(t > 64)) {
|
|
8287
8287
|
if (t < 0) return !1;
|
|
@@ -8290,13 +8290,13 @@ function gS(e) {
|
|
|
8290
8290
|
return o % 8 === 0;
|
|
8291
8291
|
}
|
|
8292
8292
|
function hS(e) {
|
|
8293
|
-
var t, n, o = e.replace(/[\r\n=]/g, ""), i = o.length, r =
|
|
8293
|
+
var t, n, o = e.replace(/[\r\n=]/g, ""), i = o.length, r = Vl, a = 0, s = [];
|
|
8294
8294
|
for (t = 0; t < i; t++)
|
|
8295
8295
|
t % 4 === 0 && t && (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)), a = a << 6 | r.indexOf(o.charAt(t));
|
|
8296
8296
|
return n = i % 4 * 6, n === 0 ? (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)) : n === 18 ? (s.push(a >> 10 & 255), s.push(a >> 2 & 255)) : n === 12 && s.push(a >> 4 & 255), new Uint8Array(s);
|
|
8297
8297
|
}
|
|
8298
8298
|
function vS(e) {
|
|
8299
|
-
var t = "", n = 0, o, i, r = e.length, a =
|
|
8299
|
+
var t = "", n = 0, o, i, r = e.length, a = Vl;
|
|
8300
8300
|
for (o = 0; o < r; o++)
|
|
8301
8301
|
o % 3 === 0 && o && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[o];
|
|
8302
8302
|
return i = r % 3, i === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : i === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : i === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
@@ -8381,7 +8381,7 @@ var Kp = new kt("tag:yaml.org,2002:set", {
|
|
|
8381
8381
|
Lp,
|
|
8382
8382
|
Kp
|
|
8383
8383
|
]
|
|
8384
|
-
}), Ln = Object.prototype.hasOwnProperty, Lr = 1, jp = 2, Bp = 3, Kr = 4, Ya = 1, TS = 2, vc = 3, $S = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, NS = /[\x85\u2028\u2029]/, OS = /[,\[\]\{\}]/,
|
|
8384
|
+
}), Ln = Object.prototype.hasOwnProperty, Lr = 1, jp = 2, Bp = 3, Kr = 4, Ya = 1, TS = 2, vc = 3, $S = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, NS = /[\x85\u2028\u2029]/, OS = /[,\[\]\{\}]/, qp = /^(?:!|!!|![a-z\-]+!)$/i, Vp = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
8385
8385
|
function yc(e) {
|
|
8386
8386
|
return Object.prototype.toString.call(e);
|
|
8387
8387
|
}
|
|
@@ -8447,7 +8447,7 @@ var bc = {
|
|
|
8447
8447
|
},
|
|
8448
8448
|
TAG: function(t, n, o) {
|
|
8449
8449
|
var i, r;
|
|
8450
|
-
o.length !== 2 && Pe(t, "TAG directive accepts exactly two arguments"), i = o[0], r = o[1],
|
|
8450
|
+
o.length !== 2 && Pe(t, "TAG directive accepts exactly two arguments"), i = o[0], r = o[1], qp.test(i) || Pe(t, "ill-formed tag handle (first argument) of the TAG directive"), Ln.call(t.tagMap, i) && Pe(t, 'there is a previously declared suffix for "' + i + '" tag handle'), Vp.test(r) || Pe(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
8451
8451
|
try {
|
|
8452
8452
|
r = decodeURIComponent(r);
|
|
8453
8453
|
} catch {
|
|
@@ -8593,11 +8593,11 @@ function BS(e, t) {
|
|
|
8593
8593
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), _ = e.input.charCodeAt(++e.position); _ !== 0; ) {
|
|
8594
8594
|
if (gt(e, !0, t), _ = e.input.charCodeAt(e.position), _ === d)
|
|
8595
8595
|
return e.position++, e.tag = a, e.anchor = l, e.kind = m ? "mapping" : "sequence", e.result = s, !0;
|
|
8596
|
-
n ? _ === 44 && Pe(e, "expected the node content, but found ','") : Pe(e, "missed comma between flow collection entries"), g = v = y = null, c = f = !1, _ === 63 && (u = e.input.charCodeAt(e.position + 1), Pt(u) && (c = f = !0, e.position++, gt(e, !0, t))), o = e.line, i = e.lineStart, r = e.position,
|
|
8596
|
+
n ? _ === 44 && Pe(e, "expected the node content, but found ','") : Pe(e, "missed comma between flow collection entries"), g = v = y = null, c = f = !1, _ === 63 && (u = e.input.charCodeAt(e.position + 1), Pt(u) && (c = f = !0, e.position++, gt(e, !0, t))), o = e.line, i = e.lineStart, r = e.position, Vo(e, t, Lr, !1, !0), g = e.tag, v = e.result, gt(e, !0, t), _ = e.input.charCodeAt(e.position), (f || e.line === o) && _ === 58 && (c = !0, _ = e.input.charCodeAt(++e.position), gt(e, !0, t), Vo(e, t, Lr, !1, !0), y = e.result), m ? To(e, s, h, g, v, y, o, i, r) : c ? s.push(To(e, null, h, g, v, y, o, i, r)) : s.push(v), gt(e, !0, t), _ = e.input.charCodeAt(e.position), _ === 44 ? (n = !0, _ = e.input.charCodeAt(++e.position)) : n = !1;
|
|
8597
8597
|
}
|
|
8598
8598
|
Pe(e, "unexpected end of the stream within a flow collection");
|
|
8599
8599
|
}
|
|
8600
|
-
function
|
|
8600
|
+
function qS(e, t) {
|
|
8601
8601
|
var n, o, i = Ya, r = !1, a = !1, s = t, l = 0, u = !1, d, c;
|
|
8602
8602
|
if (c = e.input.charCodeAt(e.position), c === 124)
|
|
8603
8603
|
o = !1;
|
|
@@ -8652,21 +8652,21 @@ function Ec(e, t) {
|
|
|
8652
8652
|
r.push(null), l = e.input.charCodeAt(e.position);
|
|
8653
8653
|
continue;
|
|
8654
8654
|
}
|
|
8655
|
-
if (n = e.line,
|
|
8655
|
+
if (n = e.line, Vo(e, t, Bp, !1, !0), r.push(e.result), gt(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && l !== 0)
|
|
8656
8656
|
Pe(e, "bad indentation of a sequence entry");
|
|
8657
8657
|
else if (e.lineIndent < t)
|
|
8658
8658
|
break;
|
|
8659
8659
|
}
|
|
8660
8660
|
return s ? (e.tag = o, e.anchor = i, e.kind = "sequence", e.result = r, !0) : !1;
|
|
8661
8661
|
}
|
|
8662
|
-
function
|
|
8662
|
+
function VS(e, t, n) {
|
|
8663
8663
|
var o, i, r, a, s, l, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), m = null, h = null, v = null, g = !1, y = !1, _;
|
|
8664
8664
|
if (e.firstTabInLine !== -1) return !1;
|
|
8665
8665
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), _ = e.input.charCodeAt(e.position); _ !== 0; ) {
|
|
8666
8666
|
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Pe(e, "tab characters must not be used in indentation")), o = e.input.charCodeAt(e.position + 1), r = e.line, (_ === 63 || _ === 58) && Pt(o))
|
|
8667
8667
|
_ === 63 ? (g && (To(e, c, f, m, h, null, a, s, l), m = h = v = null), y = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : Pe(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, _ = o;
|
|
8668
8668
|
else {
|
|
8669
|
-
if (a = e.line, s = e.lineStart, l = e.position, !
|
|
8669
|
+
if (a = e.line, s = e.lineStart, l = e.position, !Vo(e, n, jp, !1, !0))
|
|
8670
8670
|
break;
|
|
8671
8671
|
if (e.line === r) {
|
|
8672
8672
|
for (_ = e.input.charCodeAt(e.position); to(_); )
|
|
@@ -8682,7 +8682,7 @@ function qS(e, t, n) {
|
|
|
8682
8682
|
else
|
|
8683
8683
|
return e.tag = u, e.anchor = d, !0;
|
|
8684
8684
|
}
|
|
8685
|
-
if ((e.line === r || e.lineIndent > t) && (g && (a = e.line, s = e.lineStart, l = e.position),
|
|
8685
|
+
if ((e.line === r || e.lineIndent > t) && (g && (a = e.line, s = e.lineStart, l = e.position), Vo(e, t, Kr, !0, i) && (g ? h = e.result : v = e.result), g || (To(e, c, f, m, h, v, a, s, l), m = h = v = null), gt(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > t) && _ !== 0)
|
|
8686
8686
|
Pe(e, "bad indentation of a mapping entry");
|
|
8687
8687
|
else if (e.lineIndent < t)
|
|
8688
8688
|
break;
|
|
@@ -8699,10 +8699,10 @@ function zS(e) {
|
|
|
8699
8699
|
e.position < e.length ? (r = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : Pe(e, "unexpected end of the stream within a verbatim tag");
|
|
8700
8700
|
} else {
|
|
8701
8701
|
for (; a !== 0 && !Pt(a); )
|
|
8702
|
-
a === 33 && (o ? Pe(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1),
|
|
8702
|
+
a === 33 && (o ? Pe(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), qp.test(i) || Pe(e, "named tag handle cannot contain such characters"), o = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
8703
8703
|
r = e.input.slice(t, e.position), OS.test(r) && Pe(e, "tag suffix cannot contain flow indicator characters");
|
|
8704
8704
|
}
|
|
8705
|
-
r && !
|
|
8705
|
+
r && !Vp.test(r) && Pe(e, "tag name cannot contain such characters: " + r);
|
|
8706
8706
|
try {
|
|
8707
8707
|
r = decodeURIComponent(r);
|
|
8708
8708
|
} catch {
|
|
@@ -8724,12 +8724,12 @@ function HS(e) {
|
|
|
8724
8724
|
o = e.input.charCodeAt(++e.position);
|
|
8725
8725
|
return e.position === t && Pe(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Ln.call(e.anchorMap, n) || Pe(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], gt(e, !0, -1), !0;
|
|
8726
8726
|
}
|
|
8727
|
-
function
|
|
8727
|
+
function Vo(e, t, n, o, i) {
|
|
8728
8728
|
var r, a, s, l = 1, u = !1, d = !1, c, f, m, h, v, g;
|
|
8729
8729
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = a = s = Kr === n || Bp === n, o && gt(e, !0, -1) && (u = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
8730
8730
|
for (; zS(e) || US(e); )
|
|
8731
8731
|
gt(e, !0, -1) ? (u = !0, s = r, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
|
|
8732
|
-
if (s && (s = u || i), (l === 1 || Kr === n) && (Lr === n || jp === n ? v = t : v = t + 1, g = e.position - e.lineStart, l === 1 ? s && (Ec(e, g) ||
|
|
8732
|
+
if (s && (s = u || i), (l === 1 || Kr === n) && (Lr === n || jp === n ? v = t : v = t + 1, g = e.position - e.lineStart, l === 1 ? s && (Ec(e, g) || VS(e, g, v)) || BS(e, v) ? d = !0 : (a && qS(e, v) || KS(e, v) || jS(e, v) ? d = !0 : HS(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && Pe(e, "alias node should not have any properties")) : LS(e, v, Lr === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Ec(e, g))), e.tag === null)
|
|
8733
8733
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
8734
8734
|
else if (e.tag === "?") {
|
|
8735
8735
|
for (e.result !== null && e.kind !== "scalar" && Pe(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, f = e.implicitTypes.length; c < f; c += 1)
|
|
@@ -8771,7 +8771,7 @@ function GS(e) {
|
|
|
8771
8771
|
}
|
|
8772
8772
|
a !== 0 && Ul(e), Ln.call(bc, o) ? bc[o](e, o, i) : jr(e, 'unknown document directive "' + o + '"');
|
|
8773
8773
|
}
|
|
8774
|
-
if (gt(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, gt(e, !0, -1)) : r && Pe(e, "directives end mark is expected"),
|
|
8774
|
+
if (gt(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, gt(e, !0, -1)) : r && Pe(e, "directives end mark is expected"), Vo(e, e.lineIndent - 1, Kr, !1, !0), gt(e, !0, -1), e.checkLineBreaks && NS.test(e.input.slice(t, e.position)) && jr(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ba(e)) {
|
|
8775
8775
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, gt(e, !0, -1));
|
|
8776
8776
|
return;
|
|
8777
8777
|
}
|
|
@@ -8884,7 +8884,7 @@ function bx(e, t) {
|
|
|
8884
8884
|
return !0;
|
|
8885
8885
|
return !1;
|
|
8886
8886
|
}
|
|
8887
|
-
function
|
|
8887
|
+
function qr(e) {
|
|
8888
8888
|
return e === ex || e === JS;
|
|
8889
8889
|
}
|
|
8890
8890
|
function ji(e) {
|
|
@@ -8894,20 +8894,20 @@ function Cc(e) {
|
|
|
8894
8894
|
return ji(e) && e !== Gl && e !== QS && e !== Li;
|
|
8895
8895
|
}
|
|
8896
8896
|
function Sc(e, t, n) {
|
|
8897
|
-
var o = Cc(e), i = o && !
|
|
8897
|
+
var o = Cc(e), i = o && !qr(e);
|
|
8898
8898
|
return (
|
|
8899
8899
|
// ns-plain-safe
|
|
8900
8900
|
(n ? (
|
|
8901
8901
|
// c = flow-in
|
|
8902
8902
|
o
|
|
8903
|
-
) : o && e !== Zp && e !== Jp && e !== Qp && e !== em && e !== tm) && e !== Ks && !(t === Br && !i) || Cc(t) && !
|
|
8903
|
+
) : o && e !== Zp && e !== Jp && e !== Qp && e !== em && e !== tm) && e !== Ks && !(t === Br && !i) || Cc(t) && !qr(t) && e === Ks || t === Br && i
|
|
8904
8904
|
);
|
|
8905
8905
|
}
|
|
8906
8906
|
function wx(e) {
|
|
8907
|
-
return ji(e) && e !== Gl && !
|
|
8907
|
+
return ji(e) && e !== Gl && !qr(e) && e !== sx && e !== cx && e !== Br && e !== Zp && e !== Jp && e !== Qp && e !== em && e !== tm && e !== Ks && e !== ix && e !== ax && e !== tx && e !== px && e !== lx && e !== ux && e !== rx && e !== nx && e !== ox && e !== dx && e !== fx;
|
|
8908
8908
|
}
|
|
8909
8909
|
function Ex(e) {
|
|
8910
|
-
return !
|
|
8910
|
+
return !qr(e) && e !== Br;
|
|
8911
8911
|
}
|
|
8912
8912
|
function gi(e, t) {
|
|
8913
8913
|
var n = e.charCodeAt(t), o;
|
|
@@ -9088,21 +9088,21 @@ function xn(e, t, n, o, i, r, a) {
|
|
|
9088
9088
|
}
|
|
9089
9089
|
function $x(e, t) {
|
|
9090
9090
|
var n = [], o = [], i, r;
|
|
9091
|
-
for (
|
|
9091
|
+
for (qs(e, n, o), i = 0, r = o.length; i < r; i += 1)
|
|
9092
9092
|
t.duplicates.push(n[o[i]]);
|
|
9093
9093
|
t.usedDuplicates = new Array(r);
|
|
9094
9094
|
}
|
|
9095
|
-
function
|
|
9095
|
+
function qs(e, t, n) {
|
|
9096
9096
|
var o, i, r;
|
|
9097
9097
|
if (e !== null && typeof e == "object")
|
|
9098
9098
|
if (i = t.indexOf(e), i !== -1)
|
|
9099
9099
|
n.indexOf(i) === -1 && n.push(i);
|
|
9100
9100
|
else if (t.push(e), Array.isArray(e))
|
|
9101
9101
|
for (i = 0, r = e.length; i < r; i += 1)
|
|
9102
|
-
|
|
9102
|
+
qs(e[i], t, n);
|
|
9103
9103
|
else
|
|
9104
9104
|
for (o = Object.keys(e), i = 0, r = o.length; i < r; i += 1)
|
|
9105
|
-
|
|
9105
|
+
qs(e[o[i]], t, n);
|
|
9106
9106
|
}
|
|
9107
9107
|
function Nx(e, t) {
|
|
9108
9108
|
t = t || {};
|
|
@@ -9120,7 +9120,7 @@ function Yl(e, t) {
|
|
|
9120
9120
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
9121
9121
|
};
|
|
9122
9122
|
}
|
|
9123
|
-
var Mx = kt, Rx = wp, Fx = Sp,
|
|
9123
|
+
var Mx = kt, Rx = wp, Fx = Sp, Vr = $p, Dx = Np, Lx = zl, Kx = Yp.load, jx = Yp.loadAll, Bx = Px.dump, qx = It, Vx = {
|
|
9124
9124
|
binary: Fp,
|
|
9125
9125
|
float: Tp,
|
|
9126
9126
|
map: Cp,
|
|
@@ -9134,18 +9134,18 @@ var Mx = kt, Rx = wp, Fx = Sp, qr = $p, Dx = Np, Lx = zl, Kx = Yp.load, jx = Yp.
|
|
|
9134
9134
|
omap: Dp,
|
|
9135
9135
|
seq: kp,
|
|
9136
9136
|
str: Ep
|
|
9137
|
-
}, zx = Yl("safeLoad", "load"), Ux = Yl("safeLoadAll", "loadAll"), Hx = Yl("safeDump", "dump"),
|
|
9137
|
+
}, zx = Yl("safeLoad", "load"), Ux = Yl("safeLoadAll", "loadAll"), Hx = Yl("safeDump", "dump"), Vs = {
|
|
9138
9138
|
Type: Mx,
|
|
9139
9139
|
Schema: Rx,
|
|
9140
9140
|
FAILSAFE_SCHEMA: Fx,
|
|
9141
|
-
JSON_SCHEMA:
|
|
9141
|
+
JSON_SCHEMA: Vr,
|
|
9142
9142
|
CORE_SCHEMA: Dx,
|
|
9143
9143
|
DEFAULT_SCHEMA: Lx,
|
|
9144
9144
|
load: Kx,
|
|
9145
9145
|
loadAll: jx,
|
|
9146
9146
|
dump: Bx,
|
|
9147
|
-
YAMLException:
|
|
9148
|
-
types:
|
|
9147
|
+
YAMLException: qx,
|
|
9148
|
+
types: Vx,
|
|
9149
9149
|
safeLoad: zx,
|
|
9150
9150
|
safeLoadAll: Ux,
|
|
9151
9151
|
safeDump: Hx
|
|
@@ -9268,8 +9268,8 @@ const Gx = `nodes:
|
|
|
9268
9268
|
if (s.value = d, i.config && Object.keys(i.config).length > 0) {
|
|
9269
9269
|
const c = { ...i.config };
|
|
9270
9270
|
c.nodes && c.nodes.length === 0 && delete c.nodes;
|
|
9271
|
-
const f = Object.keys(c).length === 0 ? "" :
|
|
9272
|
-
schema:
|
|
9271
|
+
const f = Object.keys(c).length === 0 ? "" : Vs.dump(nf(c), {
|
|
9272
|
+
schema: Vr,
|
|
9273
9273
|
noArrayIndent: !0
|
|
9274
9274
|
});
|
|
9275
9275
|
d.setValue(f), u();
|
|
@@ -9277,8 +9277,8 @@ const Gx = `nodes:
|
|
|
9277
9277
|
d.onDidChangeModelContent(() => {
|
|
9278
9278
|
const c = d.getModel(), f = d.getValue() || "";
|
|
9279
9279
|
try {
|
|
9280
|
-
const m =
|
|
9281
|
-
schema:
|
|
9280
|
+
const m = Vs.load(f, {
|
|
9281
|
+
schema: Vr,
|
|
9282
9282
|
json: !0
|
|
9283
9283
|
});
|
|
9284
9284
|
sr.editor.setModelMarkers(c, Wa, []), i.config = m, r("change", m);
|
|
@@ -9311,7 +9311,7 @@ const Gx = `nodes:
|
|
|
9311
9311
|
default: M(() => [
|
|
9312
9312
|
G("div", Zx, [
|
|
9313
9313
|
Fe(me(p(o)("plugins.free-form.datakit.description_example")) + " ", 1),
|
|
9314
|
-
(C(), te(Le, null,
|
|
9314
|
+
(C(), te(Le, null, Ve(zs, (f, m) => P(p(un), {
|
|
9315
9315
|
key: m,
|
|
9316
9316
|
appearance: "secondary",
|
|
9317
9317
|
size: "small",
|
|
@@ -9998,13 +9998,13 @@ const [gm, mA] = vf(
|
|
|
9998
9998
|
const E = $(k);
|
|
9999
9999
|
E && (E.position = { ...S }, N && s.commit());
|
|
10000
10000
|
}
|
|
10001
|
-
function
|
|
10001
|
+
function q(k, S, N, E = !0, F) {
|
|
10002
10002
|
const O = $(k);
|
|
10003
10003
|
if (!O) return;
|
|
10004
10004
|
const Z = N ?? !O.expanded[S];
|
|
10005
10005
|
Z !== !!O.expanded[S] && (O.expanded[S] = Z, E && s.commit(F ?? `toggle:${k}:${S}`));
|
|
10006
10006
|
}
|
|
10007
|
-
function
|
|
10007
|
+
function V(k, S, N = !0, E) {
|
|
10008
10008
|
const F = $(k);
|
|
10009
10009
|
F && (F.config = Yn(S), N && s.commit(E));
|
|
10010
10010
|
}
|
|
@@ -10167,8 +10167,8 @@ const [gm, mA] = vf(
|
|
|
10167
10167
|
removeNode: X,
|
|
10168
10168
|
renameNode: J,
|
|
10169
10169
|
moveNode: U,
|
|
10170
|
-
toggleExpanded:
|
|
10171
|
-
replaceConfig:
|
|
10170
|
+
toggleExpanded: q,
|
|
10171
|
+
replaceConfig: V,
|
|
10172
10172
|
// field ops
|
|
10173
10173
|
addField: oe,
|
|
10174
10174
|
renameField: ee,
|
|
@@ -10645,17 +10645,17 @@ function jA() {
|
|
|
10645
10645
|
function BA(e) {
|
|
10646
10646
|
return this.select(e == null ? jA : KA(typeof e == "function" ? e : Em(e)));
|
|
10647
10647
|
}
|
|
10648
|
-
var
|
|
10649
|
-
function
|
|
10648
|
+
var qA = Array.prototype.filter;
|
|
10649
|
+
function VA() {
|
|
10650
10650
|
return Array.from(this.children);
|
|
10651
10651
|
}
|
|
10652
10652
|
function zA(e) {
|
|
10653
10653
|
return function() {
|
|
10654
|
-
return
|
|
10654
|
+
return qA.call(this.children, e);
|
|
10655
10655
|
};
|
|
10656
10656
|
}
|
|
10657
10657
|
function UA(e) {
|
|
10658
|
-
return this.selectAll(e == null ?
|
|
10658
|
+
return this.selectAll(e == null ? VA : zA(typeof e == "function" ? e : Em(e)));
|
|
10659
10659
|
}
|
|
10660
10660
|
function HA(e) {
|
|
10661
10661
|
typeof e != "function" && (e = wm(e));
|
|
@@ -10980,10 +10980,10 @@ function jI() {
|
|
|
10980
10980
|
function BI() {
|
|
10981
10981
|
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
10982
10982
|
}
|
|
10983
|
-
function
|
|
10983
|
+
function qI() {
|
|
10984
10984
|
return this.each(BI);
|
|
10985
10985
|
}
|
|
10986
|
-
function
|
|
10986
|
+
function VI(e) {
|
|
10987
10987
|
var t = typeof e == "function" ? e : _m(e);
|
|
10988
10988
|
return this.select(function() {
|
|
10989
10989
|
return this.appendChild(t.apply(this, arguments));
|
|
@@ -11129,8 +11129,8 @@ Lt.prototype = er.prototype = {
|
|
|
11129
11129
|
text: MI,
|
|
11130
11130
|
html: LI,
|
|
11131
11131
|
raise: jI,
|
|
11132
|
-
lower:
|
|
11133
|
-
append:
|
|
11132
|
+
lower: qI,
|
|
11133
|
+
append: VI,
|
|
11134
11134
|
insert: UI,
|
|
11135
11135
|
remove: GI,
|
|
11136
11136
|
clone: XI,
|
|
@@ -11332,7 +11332,7 @@ function Pm(e, t) {
|
|
|
11332
11332
|
}
|
|
11333
11333
|
function tr() {
|
|
11334
11334
|
}
|
|
11335
|
-
var
|
|
11335
|
+
var qi = 0.7, Hr = 1 / qi, Po = "\\s*([+-]?\\d+)\\s*", Vi = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", fn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", gT = /^#([0-9a-f]{3,8})$/, hT = new RegExp(`^rgb\\(${Po},${Po},${Po}\\)$`), vT = new RegExp(`^rgb\\(${fn},${fn},${fn}\\)$`), yT = new RegExp(`^rgba\\(${Po},${Po},${Po},${Vi}\\)$`), _T = new RegExp(`^rgba\\(${fn},${fn},${fn},${Vi}\\)$`), bT = new RegExp(`^hsl\\(${Vi},${fn},${fn}\\)$`), wT = new RegExp(`^hsla\\(${Vi},${fn},${fn},${Vi}\\)$`), Bc = {
|
|
11336
11336
|
aliceblue: 15792383,
|
|
11337
11337
|
antiquewhite: 16444375,
|
|
11338
11338
|
aqua: 65535,
|
|
@@ -11489,15 +11489,15 @@ eu(tr, uo, {
|
|
|
11489
11489
|
displayable() {
|
|
11490
11490
|
return this.rgb().displayable();
|
|
11491
11491
|
},
|
|
11492
|
-
hex:
|
|
11492
|
+
hex: qc,
|
|
11493
11493
|
// Deprecated! Use color.formatHex.
|
|
11494
|
-
formatHex:
|
|
11494
|
+
formatHex: qc,
|
|
11495
11495
|
formatHex8: ET,
|
|
11496
11496
|
formatHsl: kT,
|
|
11497
|
-
formatRgb:
|
|
11498
|
-
toString:
|
|
11497
|
+
formatRgb: Vc,
|
|
11498
|
+
toString: Vc
|
|
11499
11499
|
});
|
|
11500
|
-
function
|
|
11500
|
+
function qc() {
|
|
11501
11501
|
return this.rgb().formatHex();
|
|
11502
11502
|
}
|
|
11503
11503
|
function ET() {
|
|
@@ -11506,7 +11506,7 @@ function ET() {
|
|
|
11506
11506
|
function kT() {
|
|
11507
11507
|
return Mm(this).formatHsl();
|
|
11508
11508
|
}
|
|
11509
|
-
function
|
|
11509
|
+
function Vc() {
|
|
11510
11510
|
return this.rgb().formatRgb();
|
|
11511
11511
|
}
|
|
11512
11512
|
function uo(e) {
|
|
@@ -11533,7 +11533,7 @@ eu(Mt, Xs, Pm(tr, {
|
|
|
11533
11533
|
return e = e == null ? Hr : Math.pow(Hr, e), new Mt(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
11534
11534
|
},
|
|
11535
11535
|
darker(e) {
|
|
11536
|
-
return e = e == null ?
|
|
11536
|
+
return e = e == null ? qi : Math.pow(qi, e), new Mt(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
11537
11537
|
},
|
|
11538
11538
|
rgb() {
|
|
11539
11539
|
return this;
|
|
@@ -11595,7 +11595,7 @@ eu(Ht, xT, Pm(tr, {
|
|
|
11595
11595
|
return e = e == null ? Hr : Math.pow(Hr, e), new Ht(this.h, this.s, this.l * e, this.opacity);
|
|
11596
11596
|
},
|
|
11597
11597
|
darker(e) {
|
|
11598
|
-
return e = e == null ?
|
|
11598
|
+
return e = e == null ? qi : Math.pow(qi, e), new Ht(this.h, this.s, this.l * e, this.opacity);
|
|
11599
11599
|
},
|
|
11600
11600
|
rgb() {
|
|
11601
11601
|
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, o = n + (n < 0.5 ? n : 1 - n) * t, i = 2 * n - o;
|
|
@@ -11789,10 +11789,10 @@ var KT = Lm(DT, "px, ", "px)", "deg)"), jT = Lm(LT, ", ", ")", ")"), BT = 1e-12;
|
|
|
11789
11789
|
function Xc(e) {
|
|
11790
11790
|
return ((e = Math.exp(e)) + 1 / e) / 2;
|
|
11791
11791
|
}
|
|
11792
|
-
function
|
|
11792
|
+
function qT(e) {
|
|
11793
11793
|
return ((e = Math.exp(e)) - 1 / e) / 2;
|
|
11794
11794
|
}
|
|
11795
|
-
function
|
|
11795
|
+
function VT(e) {
|
|
11796
11796
|
return ((e = Math.exp(2 * e)) - 1) / (e + 1);
|
|
11797
11797
|
}
|
|
11798
11798
|
const Ar = function e(t, n, o) {
|
|
@@ -11809,7 +11809,7 @@ const Ar = function e(t, n, o) {
|
|
|
11809
11809
|
else {
|
|
11810
11810
|
var _ = Math.sqrt(v), b = (f * f - u * u + o * v) / (2 * u * n * _), A = (f * f - u * u - o * v) / (2 * f * n * _), I = Math.log(Math.sqrt(b * b + 1) - b), x = Math.log(Math.sqrt(A * A + 1) - A);
|
|
11811
11811
|
y = (x - I) / t, g = function($) {
|
|
11812
|
-
var D = $ * y, B = Xc(I), W = u / (n * _) * (B *
|
|
11812
|
+
var D = $ * y, B = Xc(I), W = u / (n * _) * (B * VT(t * D + I) - qT(I));
|
|
11813
11813
|
return [
|
|
11814
11814
|
s + W * m,
|
|
11815
11815
|
l + W * h,
|
|
@@ -11887,7 +11887,7 @@ function Jc(e, t, n) {
|
|
|
11887
11887
|
o.stop(), e(i + t);
|
|
11888
11888
|
}, t, n), o;
|
|
11889
11889
|
}
|
|
11890
|
-
var YT = Ca("start", "end", "cancel", "interrupt"), WT = [],
|
|
11890
|
+
var YT = Ca("start", "end", "cancel", "interrupt"), WT = [], qm = 0, Qc = 1, el = 2, Ir = 3, ed = 4, tl = 5, Tr = 6;
|
|
11891
11891
|
function Aa(e, t, n, o, i, r) {
|
|
11892
11892
|
var a = e.__transition;
|
|
11893
11893
|
if (!a)
|
|
@@ -11907,12 +11907,12 @@ function Aa(e, t, n, o, i, r) {
|
|
|
11907
11907
|
duration: r.duration,
|
|
11908
11908
|
ease: r.ease,
|
|
11909
11909
|
timer: null,
|
|
11910
|
-
state:
|
|
11910
|
+
state: qm
|
|
11911
11911
|
});
|
|
11912
11912
|
}
|
|
11913
11913
|
function ou(e, t) {
|
|
11914
11914
|
var n = Qt(e, t);
|
|
11915
|
-
if (n.state >
|
|
11915
|
+
if (n.state > qm)
|
|
11916
11916
|
throw new Error("too late; already scheduled");
|
|
11917
11917
|
return n;
|
|
11918
11918
|
}
|
|
@@ -12035,7 +12035,7 @@ function iu(e, t, n) {
|
|
|
12035
12035
|
return Qt(i, o).value[t];
|
|
12036
12036
|
};
|
|
12037
12037
|
}
|
|
12038
|
-
function
|
|
12038
|
+
function Vm(e, t) {
|
|
12039
12039
|
var n;
|
|
12040
12040
|
return (typeof t == "number" ? on : t instanceof uo ? Yr : (n = uo(t)) ? (t = n, Yr) : Fm)(e, t);
|
|
12041
12041
|
}
|
|
@@ -12078,7 +12078,7 @@ function a$(e, t, n) {
|
|
|
12078
12078
|
};
|
|
12079
12079
|
}
|
|
12080
12080
|
function s$(e, t) {
|
|
12081
|
-
var n = Sa(e), o = n === "transform" ? jT :
|
|
12081
|
+
var n = Sa(e), o = n === "transform" ? jT : Vm;
|
|
12082
12082
|
return this.attrTween(e, typeof t == "function" ? (n.local ? a$ : r$)(n, o, iu(this, "attr." + e, t)) : t == null ? (n.local ? n$ : t$)(n) : (n.local ? i$ : o$)(n, o, t));
|
|
12083
12083
|
}
|
|
12084
12084
|
function l$(e, t) {
|
|
@@ -12274,7 +12274,7 @@ function D$(e, t) {
|
|
|
12274
12274
|
};
|
|
12275
12275
|
}
|
|
12276
12276
|
function L$(e, t, n) {
|
|
12277
|
-
var o = (e += "") == "transform" ? KT :
|
|
12277
|
+
var o = (e += "") == "transform" ? KT : Vm;
|
|
12278
12278
|
return t == null ? this.styleTween(e, M$(e, o)).on("end.style." + e, zm(e)) : typeof t == "function" ? this.styleTween(e, F$(e, o, iu(this, "style." + e, t))).each(D$(this._id, e)) : this.styleTween(e, R$(e, o, t), n).on("end.style." + e, null);
|
|
12279
12279
|
}
|
|
12280
12280
|
function K$(e, t, n) {
|
|
@@ -12300,19 +12300,19 @@ function B$(e, t, n) {
|
|
|
12300
12300
|
throw new Error();
|
|
12301
12301
|
return this.tween(o, j$(e, t, n ?? ""));
|
|
12302
12302
|
}
|
|
12303
|
-
function
|
|
12303
|
+
function q$(e) {
|
|
12304
12304
|
return function() {
|
|
12305
12305
|
this.textContent = e;
|
|
12306
12306
|
};
|
|
12307
12307
|
}
|
|
12308
|
-
function
|
|
12308
|
+
function V$(e) {
|
|
12309
12309
|
return function() {
|
|
12310
12310
|
var t = e(this);
|
|
12311
12311
|
this.textContent = t ?? "";
|
|
12312
12312
|
};
|
|
12313
12313
|
}
|
|
12314
12314
|
function z$(e) {
|
|
12315
|
-
return this.tween("text", typeof e == "function" ?
|
|
12315
|
+
return this.tween("text", typeof e == "function" ? V$(iu(this, "text", e)) : q$(e == null ? "" : e + ""));
|
|
12316
12316
|
}
|
|
12317
12317
|
function U$(e) {
|
|
12318
12318
|
return function(t) {
|
|
@@ -12531,8 +12531,8 @@ function sN() {
|
|
|
12531
12531
|
}, j, re);
|
|
12532
12532
|
}, y.scaleTo = function(T, z, j, re) {
|
|
12533
12533
|
y.transform(T, function() {
|
|
12534
|
-
var X = t.apply(this, arguments), J = this.__zoom, U = j == null ? A(X) : typeof j == "function" ? j.apply(this, arguments) : j,
|
|
12535
|
-
return n(b(_(J,
|
|
12534
|
+
var X = t.apply(this, arguments), J = this.__zoom, U = j == null ? A(X) : typeof j == "function" ? j.apply(this, arguments) : j, q = J.invert(U), V = typeof z == "function" ? z.apply(this, arguments) : z;
|
|
12535
|
+
return n(b(_(J, V), U, q), X, a);
|
|
12536
12536
|
}, j, re);
|
|
12537
12537
|
}, y.translateBy = function(T, z, j, re) {
|
|
12538
12538
|
y.transform(T, function() {
|
|
@@ -12543,8 +12543,8 @@ function sN() {
|
|
|
12543
12543
|
}, null, re);
|
|
12544
12544
|
}, y.translateTo = function(T, z, j, re, X) {
|
|
12545
12545
|
y.transform(T, function() {
|
|
12546
|
-
var J = t.apply(this, arguments), U = this.__zoom,
|
|
12547
|
-
return n(Go.translate(
|
|
12546
|
+
var J = t.apply(this, arguments), U = this.__zoom, q = re == null ? A(J) : typeof re == "function" ? re.apply(this, arguments) : re;
|
|
12547
|
+
return n(Go.translate(q[0], q[1]).scale(U.k).translate(
|
|
12548
12548
|
typeof z == "function" ? -z.apply(this, arguments) : -z,
|
|
12549
12549
|
typeof j == "function" ? -j.apply(this, arguments) : -j
|
|
12550
12550
|
), J, a);
|
|
@@ -12566,13 +12566,13 @@ function sN() {
|
|
|
12566
12566
|
}).on("interrupt.zoom end.zoom", function() {
|
|
12567
12567
|
x(this, arguments).event(re).end();
|
|
12568
12568
|
}).tween("zoom", function() {
|
|
12569
|
-
var X = this, J = arguments, U = x(X, J).event(re),
|
|
12569
|
+
var X = this, J = arguments, U = x(X, J).event(re), q = t.apply(X, J), V = j == null ? A(q) : typeof j == "function" ? j.apply(X, J) : j, oe = Math.max(q[1][0] - q[0][0], q[1][1] - q[0][1]), ee = X.__zoom, de = typeof z == "function" ? z.apply(X, J) : z, ge = l(ee.invert(V).concat(oe / ee.k), de.invert(V).concat(oe / de.k));
|
|
12570
12570
|
return function(be) {
|
|
12571
12571
|
if (be === 1)
|
|
12572
12572
|
be = de;
|
|
12573
12573
|
else {
|
|
12574
12574
|
var Ie = ge(be), ie = oe / Ie[2];
|
|
12575
|
-
be = new wn(ie,
|
|
12575
|
+
be = new wn(ie, V[0] - Ie[0] * ie, V[1] - Ie[1] * ie);
|
|
12576
12576
|
}
|
|
12577
12577
|
U.zoom(null, be);
|
|
12578
12578
|
};
|
|
@@ -12631,11 +12631,11 @@ function sN() {
|
|
|
12631
12631
|
function B(T, ...z) {
|
|
12632
12632
|
if (f || !e.apply(this, arguments))
|
|
12633
12633
|
return;
|
|
12634
|
-
var j = T.currentTarget, re = x(this, z, !0).event(T), X = Ut(T.view).on("mousemove.zoom",
|
|
12634
|
+
var j = T.currentTarget, re = x(this, z, !0).event(T), X = Ut(T.view).on("mousemove.zoom", V, !0).on("mouseup.zoom", oe, !0), J = tn(T, j), U = T.clientX, q = T.clientY;
|
|
12635
12635
|
Nm(T.view), ts(T), re.mouse = [J, this.__zoom.invert(J)], $r(this), re.start();
|
|
12636
|
-
function
|
|
12636
|
+
function V(ee) {
|
|
12637
12637
|
if (fi(ee), !re.moved) {
|
|
12638
|
-
var de = ee.clientX - U, ge = ee.clientY -
|
|
12638
|
+
var de = ee.clientX - U, ge = ee.clientY - q;
|
|
12639
12639
|
re.moved = de * de + ge * ge > v;
|
|
12640
12640
|
}
|
|
12641
12641
|
re.event(ee).zoom("mouse", n(b(re.that.__zoom, re.mouse[0] = tn(ee, j), re.mouse[1]), re.extent, a));
|
|
@@ -12652,27 +12652,27 @@ function sN() {
|
|
|
12652
12652
|
}
|
|
12653
12653
|
function H(T, ...z) {
|
|
12654
12654
|
if (e.apply(this, arguments)) {
|
|
12655
|
-
var j = T.touches, re = j.length, X = x(this, z, T.changedTouches.length === re).event(T), J, U,
|
|
12655
|
+
var j = T.touches, re = j.length, X = x(this, z, T.changedTouches.length === re).event(T), J, U, q, V;
|
|
12656
12656
|
for (ts(T), U = 0; U < re; ++U)
|
|
12657
|
-
|
|
12658
|
-
d && (d = clearTimeout(d)), J && (X.taps < 2 && (c =
|
|
12657
|
+
q = j[U], V = tn(q, this), V = [V, this.__zoom.invert(V), q.identifier], X.touch0 ? !X.touch1 && X.touch0[2] !== V[2] && (X.touch1 = V, X.taps = 0) : (X.touch0 = V, J = !0, X.taps = 1 + !!d);
|
|
12658
|
+
d && (d = clearTimeout(d)), J && (X.taps < 2 && (c = V[0], d = setTimeout(function() {
|
|
12659
12659
|
d = null;
|
|
12660
12660
|
}, m)), $r(this), X.start());
|
|
12661
12661
|
}
|
|
12662
12662
|
}
|
|
12663
12663
|
function w(T, ...z) {
|
|
12664
12664
|
if (this.__zooming) {
|
|
12665
|
-
var j = x(this, z).event(T), re = T.changedTouches, X = re.length, J, U,
|
|
12665
|
+
var j = x(this, z).event(T), re = T.changedTouches, X = re.length, J, U, q, V;
|
|
12666
12666
|
for (fi(T), J = 0; J < X; ++J)
|
|
12667
|
-
U = re[J],
|
|
12667
|
+
U = re[J], q = tn(U, this), j.touch0 && j.touch0[2] === U.identifier ? j.touch0[0] = q : j.touch1 && j.touch1[2] === U.identifier && (j.touch1[0] = q);
|
|
12668
12668
|
if (U = j.that.__zoom, j.touch1) {
|
|
12669
12669
|
var oe = j.touch0[0], ee = j.touch0[1], de = j.touch1[0], ge = j.touch1[1], be = (be = de[0] - oe[0]) * be + (be = de[1] - oe[1]) * be, Ie = (Ie = ge[0] - ee[0]) * Ie + (Ie = ge[1] - ee[1]) * Ie;
|
|
12670
|
-
U = _(U, Math.sqrt(be / Ie)),
|
|
12670
|
+
U = _(U, Math.sqrt(be / Ie)), q = [(oe[0] + de[0]) / 2, (oe[1] + de[1]) / 2], V = [(ee[0] + ge[0]) / 2, (ee[1] + ge[1]) / 2];
|
|
12671
12671
|
} else if (j.touch0)
|
|
12672
|
-
|
|
12672
|
+
q = j.touch0[0], V = j.touch0[1];
|
|
12673
12673
|
else
|
|
12674
12674
|
return;
|
|
12675
|
-
j.zoom("touch", n(b(U,
|
|
12675
|
+
j.zoom("touch", n(b(U, q, V), j.extent, a));
|
|
12676
12676
|
}
|
|
12677
12677
|
}
|
|
12678
12678
|
function Q(T, ...z) {
|
|
@@ -12685,8 +12685,8 @@ function sN() {
|
|
|
12685
12685
|
if (j.touch1 && !j.touch0 && (j.touch0 = j.touch1, delete j.touch1), j.touch0)
|
|
12686
12686
|
j.touch0[1] = this.__zoom.invert(j.touch0[0]);
|
|
12687
12687
|
else if (j.end(), j.taps === 2 && (U = tn(U, this), Math.hypot(c[0] - U[0], c[1] - U[1]) < g)) {
|
|
12688
|
-
var
|
|
12689
|
-
|
|
12688
|
+
var q = Ut(this).on("dblclick.zoom");
|
|
12689
|
+
q && q.apply(this, arguments);
|
|
12690
12690
|
}
|
|
12691
12691
|
}
|
|
12692
12692
|
}
|
|
@@ -13683,7 +13683,7 @@ function dg(e) {
|
|
|
13683
13683
|
updateNodePositions: b,
|
|
13684
13684
|
emits: A
|
|
13685
13685
|
} = Ze(), { onStart: I, onDrag: x, onStop: $, onClick: D, el: B, disabled: W, id: H, selectable: w, dragHandle: Q } = e, T = io(!1);
|
|
13686
|
-
let z = [], j, re = null, X = { x: void 0, y: void 0 }, J = { x: 0, y: 0 }, U = null,
|
|
13686
|
+
let z = [], j, re = null, X = { x: void 0, y: void 0 }, J = { x: 0, y: 0 }, U = null, q = !1, V = 0, oe = !1;
|
|
13687
13687
|
const ee = zN(), de = ({ x: he, y: Ee }) => {
|
|
13688
13688
|
X = { x: he, y: Ee };
|
|
13689
13689
|
let _e = !1;
|
|
@@ -13715,9 +13715,9 @@ function dg(e) {
|
|
|
13715
13715
|
};
|
|
13716
13716
|
f({ x: he, y: Ee }) && de(_e);
|
|
13717
13717
|
}
|
|
13718
|
-
|
|
13718
|
+
V = requestAnimationFrame(ge);
|
|
13719
13719
|
}, be = (he, Ee) => {
|
|
13720
|
-
|
|
13720
|
+
q = !0;
|
|
13721
13721
|
const _e = m(H);
|
|
13722
13722
|
!g.value && !h.value && _e && (_e.selected || y()), _e && Oe(w) && g.value && rl(
|
|
13723
13723
|
_e,
|
|
@@ -13742,14 +13742,14 @@ function dg(e) {
|
|
|
13742
13742
|
he.sourceEvent.type === "touchmove" && he.sourceEvent.touches.length > 1 || (s.value === 0 && be(he, Ee), X = ee(he.sourceEvent), re = ((_e = t.value) == null ? void 0 : _e.getBoundingClientRect()) || null, J = ln(he.sourceEvent, re));
|
|
13743
13743
|
}, ie = (he, Ee) => {
|
|
13744
13744
|
const _e = ee(he.sourceEvent);
|
|
13745
|
-
if (!oe &&
|
|
13745
|
+
if (!oe && q && u.value && (oe = !0, ge()), !q) {
|
|
13746
13746
|
const k = _e.xSnapped - (X.x ?? 0), S = _e.ySnapped - (X.y ?? 0);
|
|
13747
13747
|
Math.sqrt(k * k + S * S) > s.value && be(he, Ee);
|
|
13748
13748
|
}
|
|
13749
|
-
(X.x !== _e.xSnapped || X.y !== _e.ySnapped) && z.length &&
|
|
13749
|
+
(X.x !== _e.xSnapped || X.y !== _e.ySnapped) && z.length && q && (U = he.sourceEvent, J = ln(he.sourceEvent, re), de(_e));
|
|
13750
13750
|
}, ue = (he) => {
|
|
13751
13751
|
let Ee = !1;
|
|
13752
|
-
if (!
|
|
13752
|
+
if (!q && !T.value && !h.value) {
|
|
13753
13753
|
const _e = he.sourceEvent, k = ee(_e), S = k.xSnapped - (X.x ?? 0), N = k.ySnapped - (X.y ?? 0), E = Math.sqrt(S * S + N * N);
|
|
13754
13754
|
E !== 0 && E <= s.value && (D == null || D(_e), Ee = !0);
|
|
13755
13755
|
}
|
|
@@ -13762,7 +13762,7 @@ function dg(e) {
|
|
|
13762
13762
|
});
|
|
13763
13763
|
$({ event: he.sourceEvent, node: _e, nodes: k });
|
|
13764
13764
|
}
|
|
13765
|
-
z = [], T.value = !1, oe = !1,
|
|
13765
|
+
z = [], T.value = !1, oe = !1, q = !1, X = { x: void 0, y: void 0 }, cancelAnimationFrame(V);
|
|
13766
13766
|
};
|
|
13767
13767
|
return Ne([() => Oe(W), B], ([he, Ee], _e, k) => {
|
|
13768
13768
|
if (Ee) {
|
|
@@ -13776,7 +13776,7 @@ function dg(e) {
|
|
|
13776
13776
|
}
|
|
13777
13777
|
}), T;
|
|
13778
13778
|
}
|
|
13779
|
-
function
|
|
13779
|
+
function qN() {
|
|
13780
13780
|
return {
|
|
13781
13781
|
doubleClick: Te(),
|
|
13782
13782
|
click: Te(),
|
|
@@ -13789,8 +13789,8 @@ function VN() {
|
|
|
13789
13789
|
updateEnd: Te()
|
|
13790
13790
|
};
|
|
13791
13791
|
}
|
|
13792
|
-
function
|
|
13793
|
-
const n =
|
|
13792
|
+
function VN(e, t) {
|
|
13793
|
+
const n = qN();
|
|
13794
13794
|
return n.doubleClick.on((o) => {
|
|
13795
13795
|
var i, r;
|
|
13796
13796
|
t.edgeDoubleClick(o), (r = (i = e.events) == null ? void 0 : i.doubleClick) == null || r.call(i, o);
|
|
@@ -13874,7 +13874,7 @@ function fg({
|
|
|
13874
13874
|
var re;
|
|
13875
13875
|
const X = Oe(n) === "target", J = su(j), U = od(j.target);
|
|
13876
13876
|
if (J && j.button === 0 || !J) {
|
|
13877
|
-
let
|
|
13877
|
+
let q = function(L) {
|
|
13878
13878
|
k = ln(L, he), de = PN(
|
|
13879
13879
|
Ui(k, x.value, !1, [1, 1]),
|
|
13880
13880
|
d.value,
|
|
@@ -13924,8 +13924,8 @@ function fg({
|
|
|
13924
13924
|
return is(_e);
|
|
13925
13925
|
H && H.source !== H.target && Q && (is(_e), _e = Q, Q.classList.add("connecting", "vue-flow__handle-connecting"), Q.classList.toggle("valid", !!w), Q.classList.toggle("vue-flow__handle-valid", !!w));
|
|
13926
13926
|
}
|
|
13927
|
-
},
|
|
13928
|
-
(de || Q) && H && w && (r ? r(L, H) : I.connect(H)), I.connectEnd(L), i && (a == null || a(L)), is(_e), cancelAnimationFrame(ge), A(L), S = !1, w = !1, H = null, Q = null, U.removeEventListener("mousemove",
|
|
13927
|
+
}, V = function(L) {
|
|
13928
|
+
(de || Q) && H && w && (r ? r(L, H) : I.connect(H)), I.connectEnd(L), i && (a == null || a(L)), is(_e), cancelAnimationFrame(ge), A(L), S = !1, w = !1, H = null, Q = null, U.removeEventListener("mousemove", q), U.removeEventListener("mouseup", V), U.removeEventListener("touchmove", q), U.removeEventListener("touchend", V);
|
|
13929
13929
|
};
|
|
13930
13930
|
const oe = g(Oe(t));
|
|
13931
13931
|
let ee = Oe(o) || B.value || vr;
|
|
@@ -13974,7 +13974,7 @@ function fg({
|
|
|
13974
13974
|
}
|
|
13975
13975
|
), I.connectStart({ event: j, nodeId: Oe(t), handleId: Oe(e), handleType: ue });
|
|
13976
13976
|
let ne = Z;
|
|
13977
|
-
U.addEventListener("mousemove",
|
|
13977
|
+
U.addEventListener("mousemove", q), U.addEventListener("mouseup", V), U.addEventListener("touchmove", q), U.addEventListener("touchend", V);
|
|
13978
13978
|
}
|
|
13979
13979
|
}
|
|
13980
13980
|
function z(j) {
|
|
@@ -13997,10 +13997,10 @@ function fg({
|
|
|
13997
13997
|
return;
|
|
13998
13998
|
}
|
|
13999
13999
|
let U = Oe(o) || B.value || vr;
|
|
14000
|
-
const
|
|
14001
|
-
if (!U &&
|
|
14000
|
+
const q = g(Oe(t));
|
|
14001
|
+
if (!U && q && (U = (J ? q.isValidSourcePos : q.isValidTargetPos) || vr), q && (typeof q.connectable > "u" ? m.value : q.connectable) === !1)
|
|
14002
14002
|
return;
|
|
14003
|
-
const
|
|
14003
|
+
const V = od(j.target), oe = pd(
|
|
14004
14004
|
j,
|
|
14005
14005
|
{
|
|
14006
14006
|
handle: {
|
|
@@ -14015,7 +14015,7 @@ function fg({
|
|
|
14015
14015
|
fromHandleId: f.value.id ?? null,
|
|
14016
14016
|
fromType: f.value.type,
|
|
14017
14017
|
isValidConnection: U,
|
|
14018
|
-
doc:
|
|
14018
|
+
doc: V,
|
|
14019
14019
|
lib: "vue",
|
|
14020
14020
|
flowId: s,
|
|
14021
14021
|
nodeLookup: W.value
|
|
@@ -14835,13 +14835,13 @@ function tO(e, t, n) {
|
|
|
14835
14835
|
}, J = (k) => ad(k, e.nodes), U = (k) => {
|
|
14836
14836
|
const S = ad(k, e.edges);
|
|
14837
14837
|
return rs(e.connectionLookup, n.value, S), S;
|
|
14838
|
-
},
|
|
14838
|
+
}, q = (k, S, N = { replace: !1 }) => {
|
|
14839
14839
|
const E = u(k);
|
|
14840
14840
|
if (!E)
|
|
14841
14841
|
return;
|
|
14842
14842
|
const F = typeof S == "function" ? S(E) : S;
|
|
14843
14843
|
N.replace ? e.nodes.splice(e.nodes.indexOf(E), 1, F) : Object.assign(E, F);
|
|
14844
|
-
},
|
|
14844
|
+
}, V = (k, S, N = { replace: !1 }) => {
|
|
14845
14845
|
const E = u(k);
|
|
14846
14846
|
if (!E)
|
|
14847
14847
|
return;
|
|
@@ -14919,8 +14919,8 @@ function tO(e, t, n) {
|
|
|
14919
14919
|
findEdge: d,
|
|
14920
14920
|
updateEdge: re,
|
|
14921
14921
|
updateEdgeData: X,
|
|
14922
|
-
updateNode:
|
|
14923
|
-
updateNodeData:
|
|
14922
|
+
updateNode: q,
|
|
14923
|
+
updateNodeData: V,
|
|
14924
14924
|
applyEdgeChanges: U,
|
|
14925
14925
|
applyNodeChanges: J,
|
|
14926
14926
|
addSelectedElements: g,
|
|
@@ -16058,7 +16058,7 @@ const LO = {
|
|
|
16058
16058
|
function U(ee) {
|
|
16059
16059
|
i.paneScroll(ee);
|
|
16060
16060
|
}
|
|
16061
|
-
function
|
|
16061
|
+
function q(ee) {
|
|
16062
16062
|
var de, ge, be;
|
|
16063
16063
|
if (W.value = (de = t.value) == null ? void 0 : de.getBoundingClientRect(), !l.value || !e.isSelecting || ee.button !== 0 || ee.target !== $.value || !W.value)
|
|
16064
16064
|
return;
|
|
@@ -16073,7 +16073,7 @@ const LO = {
|
|
|
16073
16073
|
y: ie
|
|
16074
16074
|
}, i.selectionStart(ee);
|
|
16075
16075
|
}
|
|
16076
|
-
function
|
|
16076
|
+
function V(ee) {
|
|
16077
16077
|
var de;
|
|
16078
16078
|
if (!W.value || !s.value)
|
|
16079
16079
|
return;
|
|
@@ -16122,8 +16122,8 @@ const LO = {
|
|
|
16122
16122
|
onContextmenu: de[1] || (de[1] = (ge) => re(J, $.value)(ge)),
|
|
16123
16123
|
onWheelPassive: de[2] || (de[2] = (ge) => re(U, $.value)(ge)),
|
|
16124
16124
|
onPointerenter: de[3] || (de[3] = (ge) => H.value ? void 0 : p(i).paneMouseEnter(ge)),
|
|
16125
|
-
onPointerdown: de[4] || (de[4] = (ge) => H.value ?
|
|
16126
|
-
onPointermove: de[5] || (de[5] = (ge) => H.value ?
|
|
16125
|
+
onPointerdown: de[4] || (de[4] = (ge) => H.value ? q(ge) : p(i).paneMouseMove(ge)),
|
|
16126
|
+
onPointermove: de[5] || (de[5] = (ge) => H.value ? V(ge) : p(i).paneMouseMove(ge)),
|
|
16127
16127
|
onPointerup: de[6] || (de[6] = (ge) => H.value ? oe(ge) : void 0),
|
|
16128
16128
|
onPointerleave: de[7] || (de[7] = (ge) => p(i).paneMouseLeave(ge))
|
|
16129
16129
|
}, [
|
|
@@ -16149,11 +16149,11 @@ const LO = {
|
|
|
16149
16149
|
Re(a.$slots, "default")
|
|
16150
16150
|
], 4));
|
|
16151
16151
|
}
|
|
16152
|
-
}),
|
|
16152
|
+
}), qO = {
|
|
16153
16153
|
name: "Viewport",
|
|
16154
16154
|
compatConfig: { MODE: 3 }
|
|
16155
|
-
},
|
|
16156
|
-
...
|
|
16155
|
+
}, VO = /* @__PURE__ */ ve({
|
|
16156
|
+
...qO,
|
|
16157
16157
|
setup(e) {
|
|
16158
16158
|
const {
|
|
16159
16159
|
minZoom: t,
|
|
@@ -16191,9 +16191,9 @@ const LO = {
|
|
|
16191
16191
|
y: 0,
|
|
16192
16192
|
zoom: 0
|
|
16193
16193
|
};
|
|
16194
|
-
const X = $i(s), J = $i(a), U = $i(r),
|
|
16194
|
+
const X = $i(s), J = $i(a), U = $i(r), q = je(
|
|
16195
16195
|
() => (!J.value || J.value && a.value === !0) && (X.value || c.value)
|
|
16196
|
-
),
|
|
16196
|
+
), V = je(() => X.value || l.value), oe = je(() => J.value || a.value === !0 && q.value !== !0);
|
|
16197
16197
|
$t(() => {
|
|
16198
16198
|
if (!W.value) {
|
|
16199
16199
|
$a("Viewport element is missing");
|
|
@@ -16213,7 +16213,7 @@ const LO = {
|
|
|
16213
16213
|
}), he.on("end", (E) => {
|
|
16214
16214
|
if (!E.sourceEvent)
|
|
16215
16215
|
return null;
|
|
16216
|
-
if (w.value = !1, I.value = !1, ee(
|
|
16216
|
+
if (w.value = !1, I.value = !1, ee(q.value, j ?? 0) && !z && _.paneContextMenu(E.sourceEvent), z = !1, ge(re, E.transform)) {
|
|
16217
16217
|
const F = be(E.transform);
|
|
16218
16218
|
re = F, _.viewportChangeEnd(F), _.moveEnd({ event: E, flowTransform: F });
|
|
16219
16219
|
}
|
|
@@ -16222,34 +16222,34 @@ const LO = {
|
|
|
16222
16222
|
const O = U.value || h.value, Z = m.value && E.ctrlKey, ne = E.button;
|
|
16223
16223
|
if (ne === 1 && E.type === "mousedown" && (Ie(E, "vue-flow__node") || Ie(E, "vue-flow__edge")))
|
|
16224
16224
|
return !0;
|
|
16225
|
-
if (!
|
|
16225
|
+
if (!q.value && !O && !V.value && !f.value && !m.value || A.value || !f.value && E.type === "dblclick" || Ie(E, g.value) && E.type === "wheel" || Ie(E, y.value) && (E.type !== "wheel" || V.value && E.type === "wheel" && !U.value) || !m.value && E.ctrlKey && E.type === "wheel" || !O && !V.value && !Z && E.type === "wheel")
|
|
16226
16226
|
return !1;
|
|
16227
16227
|
if (!m && E.type === "touchstart" && ((F = E.touches) == null ? void 0 : F.length) > 1)
|
|
16228
16228
|
return E.preventDefault(), !1;
|
|
16229
|
-
if (!
|
|
16229
|
+
if (!q.value && (E.type === "mousedown" || E.type === "touchstart") || a.value === !0 && Array.isArray(c.value) && c.value.includes(0) && ne === 0 || Array.isArray(c.value) && !c.value.includes(ne) && (E.type === "mousedown" || E.type === "touchstart"))
|
|
16230
16230
|
return !1;
|
|
16231
16231
|
const L = Array.isArray(c.value) && c.value.includes(ne) || a.value === !0 && Array.isArray(c.value) && !c.value.includes(0) || !ne || ne <= 1;
|
|
16232
16232
|
return (!E.ctrlKey || X.value || E.type === "wheel") && L;
|
|
16233
16233
|
}), Ne(
|
|
16234
|
-
[A,
|
|
16234
|
+
[A, q],
|
|
16235
16235
|
() => {
|
|
16236
16236
|
A.value && !w.value ? he.on("zoom", null) : A.value || he.on("zoom", (E) => {
|
|
16237
16237
|
B.value = { x: E.transform.x, y: E.transform.y, zoom: E.transform.k };
|
|
16238
16238
|
const F = be(E.transform);
|
|
16239
|
-
z = ee(
|
|
16239
|
+
z = ee(q.value, j ?? 0), _.viewportChange(F), _.move({ event: E, flowTransform: F });
|
|
16240
16240
|
});
|
|
16241
16241
|
},
|
|
16242
16242
|
{ immediate: !0 }
|
|
16243
16243
|
), Ne(
|
|
16244
|
-
[A,
|
|
16244
|
+
[A, V, u, U, m, v, g],
|
|
16245
16245
|
() => {
|
|
16246
|
-
|
|
16246
|
+
V.value && !U.value && !A.value ? Ee.on(
|
|
16247
16247
|
"wheel.zoom",
|
|
16248
16248
|
(E) => {
|
|
16249
16249
|
if (Ie(E, g.value))
|
|
16250
16250
|
return !1;
|
|
16251
16251
|
const F = U.value || h.value, O = m.value && E.ctrlKey;
|
|
16252
|
-
if (!(!v.value ||
|
|
16252
|
+
if (!(!v.value || V.value || F || O))
|
|
16253
16253
|
return !1;
|
|
16254
16254
|
E.preventDefault(), E.stopImmediatePropagation();
|
|
16255
16255
|
const ne = Ee.property("__zoom").k || 1, L = ta();
|
|
@@ -16416,7 +16416,7 @@ const kd = lu, JO = ve({
|
|
|
16416
16416
|
edgesUpdatable: g,
|
|
16417
16417
|
edgesFocusable: y,
|
|
16418
16418
|
hooks: _
|
|
16419
|
-
} = Ze(), b = R(() => d(e.id)), { emit: A, on: I } =
|
|
16419
|
+
} = Ze(), b = R(() => d(e.id)), { emit: A, on: I } = VN(b.value, r), x = ot(Na), $ = Wi(), D = se(!1), B = se(!1), W = se(""), H = se(null), w = se("source"), Q = se(null), T = je(
|
|
16420
16420
|
() => typeof b.value.selectable > "u" ? v.value : b.value.selectable
|
|
16421
16421
|
), z = je(() => typeof b.value.updatable > "u" ? g.value : b.value.updatable), j = je(() => typeof b.value.focusable > "u" ? y.value : b.value.focusable);
|
|
16422
16422
|
st(jN, e.id), st(BN, Q);
|
|
@@ -16526,8 +16526,8 @@ const kd = lu, JO = ve({
|
|
|
16526
16526
|
"g",
|
|
16527
16527
|
{
|
|
16528
16528
|
onMousedown: Ee,
|
|
16529
|
-
onMouseenter:
|
|
16530
|
-
onMouseout:
|
|
16529
|
+
onMouseenter: q,
|
|
16530
|
+
onMouseout: V
|
|
16531
16531
|
},
|
|
16532
16532
|
Xe(kd, {
|
|
16533
16533
|
position: L,
|
|
@@ -16544,8 +16544,8 @@ const kd = lu, JO = ve({
|
|
|
16544
16544
|
"g",
|
|
16545
16545
|
{
|
|
16546
16546
|
onMousedown: _e,
|
|
16547
|
-
onMouseenter:
|
|
16548
|
-
onMouseout:
|
|
16547
|
+
onMouseenter: q,
|
|
16548
|
+
onMouseout: V
|
|
16549
16549
|
},
|
|
16550
16550
|
Xe(kd, {
|
|
16551
16551
|
position: ae,
|
|
@@ -16561,10 +16561,10 @@ const kd = lu, JO = ve({
|
|
|
16561
16561
|
]
|
|
16562
16562
|
);
|
|
16563
16563
|
};
|
|
16564
|
-
function
|
|
16564
|
+
function q() {
|
|
16565
16565
|
D.value = !0;
|
|
16566
16566
|
}
|
|
16567
|
-
function
|
|
16567
|
+
function V() {
|
|
16568
16568
|
D.value = !1;
|
|
16569
16569
|
}
|
|
16570
16570
|
function oe(S, N) {
|
|
@@ -16789,7 +16789,7 @@ const kd = lu, JO = ve({
|
|
|
16789
16789
|
});
|
|
16790
16790
|
return (a, s) => (C(), te("svg", rP, [
|
|
16791
16791
|
G("defs", null, [
|
|
16792
|
-
(C(!0), te(Le, null,
|
|
16792
|
+
(C(!0), te(Le, null, Ve(r.value, (l) => (C(), Y(iP, {
|
|
16793
16793
|
id: l.id,
|
|
16794
16794
|
key: l.id,
|
|
16795
16795
|
type: l.type,
|
|
@@ -16812,7 +16812,7 @@ const kd = lu, JO = ve({
|
|
|
16812
16812
|
const { findNode: t, getEdges: n, elevateEdgesOnSelect: o } = Ze();
|
|
16813
16813
|
return (i, r) => (C(), te(Le, null, [
|
|
16814
16814
|
P(sP),
|
|
16815
|
-
(C(!0), te(Le, null,
|
|
16815
|
+
(C(!0), te(Le, null, Ve(p(n), (a) => (C(), te("svg", {
|
|
16816
16816
|
key: a.id,
|
|
16817
16817
|
class: "vue-flow__edges vue-flow__container",
|
|
16818
16818
|
style: Tt({ zIndex: p(AN)(a, p(t), p(o)) })
|
|
@@ -16857,7 +16857,7 @@ const kd = lu, JO = ve({
|
|
|
16857
16857
|
st(cg, D), st(ug, e.id);
|
|
16858
16858
|
const B = ot(Na), W = Wi(), H = mg(), { node: w, parentNode: Q } = pg(e.id), { emit: T, on: z } = GN(w, a), j = je(() => typeof w.draggable > "u" ? b.value : w.draggable), re = je(() => typeof w.selectable > "u" ? A.value : w.selectable), X = je(() => typeof w.connectable > "u" ? I.value : w.connectable), J = je(() => typeof w.focusable > "u" ? x.value : w.focusable), U = R(
|
|
16859
16859
|
() => re.value || j.value || $.value.nodeClick.hasListeners() || $.value.nodeDoubleClick.hasListeners() || $.value.nodeMouseEnter.hasListeners() || $.value.nodeMouseMove.hasListeners() || $.value.nodeMouseLeave.hasListeners()
|
|
16860
|
-
),
|
|
16860
|
+
), q = je(() => !!w.dimensions.width && !!w.dimensions.height), V = R(() => {
|
|
16861
16861
|
const N = w.type || "default", E = B == null ? void 0 : B[`node-${N}`];
|
|
16862
16862
|
if (E)
|
|
16863
16863
|
return E;
|
|
@@ -16945,14 +16945,14 @@ const kd = lu, JO = ve({
|
|
|
16945
16945
|
{ flush: "post", immediate: !0 }
|
|
16946
16946
|
), Ne([() => w.extent, f], ([N, E], [F, O]) => {
|
|
16947
16947
|
(N !== F || E !== O) && be();
|
|
16948
|
-
}), w.extent === "parent" || typeof w.extent == "object" && "range" in w.extent && w.extent.range === "parent" ? Gs(() =>
|
|
16948
|
+
}), w.extent === "parent" || typeof w.extent == "object" && "range" in w.extent && w.extent.range === "parent" ? Gs(() => q).toBe(!0).then(be) : be(), () => w.hidden ? null : Xe(
|
|
16949
16949
|
"div",
|
|
16950
16950
|
{
|
|
16951
16951
|
ref: D,
|
|
16952
16952
|
"data-id": w.id,
|
|
16953
16953
|
class: [
|
|
16954
16954
|
"vue-flow__node",
|
|
16955
|
-
`vue-flow__node-${
|
|
16955
|
+
`vue-flow__node-${V.value === !1 ? "default" : w.type || "default"}`,
|
|
16956
16956
|
{
|
|
16957
16957
|
[n.value]: j.value,
|
|
16958
16958
|
dragging: oe == null ? void 0 : oe.value,
|
|
@@ -16964,7 +16964,7 @@ const kd = lu, JO = ve({
|
|
|
16964
16964
|
ee.value
|
|
16965
16965
|
],
|
|
16966
16966
|
style: {
|
|
16967
|
-
visibility:
|
|
16967
|
+
visibility: q.value ? "visible" : "hidden",
|
|
16968
16968
|
zIndex: w.computedPosition.z ?? ge.value,
|
|
16969
16969
|
transform: `translate(${w.computedPosition.x}px,${w.computedPosition.y}px)`,
|
|
16970
16970
|
pointerEvents: U.value ? "all" : "none",
|
|
@@ -16985,7 +16985,7 @@ const kd = lu, JO = ve({
|
|
|
16985
16985
|
onKeydown: S
|
|
16986
16986
|
},
|
|
16987
16987
|
[
|
|
16988
|
-
Xe(
|
|
16988
|
+
Xe(V.value === !1 ? c.value.default : V.value, {
|
|
16989
16989
|
id: w.id,
|
|
16990
16990
|
type: w.type,
|
|
16991
16991
|
data: w.data,
|
|
@@ -17110,7 +17110,7 @@ const pP = { class: "vue-flow__nodes vue-flow__container" }, mP = {
|
|
|
17110
17110
|
var a;
|
|
17111
17111
|
return (a = r.value) == null ? void 0 : a.disconnect();
|
|
17112
17112
|
}), (a, s) => (C(), te("div", pP, [
|
|
17113
|
-
r.value ? (C(!0), te(Le, { key: 0 },
|
|
17113
|
+
r.value ? (C(!0), te(Le, { key: 0 }, Ve(p(t), (l, u, d, c) => {
|
|
17114
17114
|
const f = [l.id];
|
|
17115
17115
|
if (c && c.key === l.id && bh(c, f))
|
|
17116
17116
|
return c;
|
|
@@ -17208,7 +17208,7 @@ const vP = /* @__PURE__ */ G("div", { class: "vue-flow__edge-labels" }, null, -1
|
|
|
17208
17208
|
ref: p(l).vueFlowRef,
|
|
17209
17209
|
class: "vue-flow"
|
|
17210
17210
|
}, [
|
|
17211
|
-
P(
|
|
17211
|
+
P(VO, null, {
|
|
17212
17212
|
default: M(() => [
|
|
17213
17213
|
P(uP),
|
|
17214
17214
|
vP,
|
|
@@ -17366,14 +17366,14 @@ const FP = { render: RP }, DP = {
|
|
|
17366
17366
|
function jP(e, t) {
|
|
17367
17367
|
return C(), te("svg", DP, KP);
|
|
17368
17368
|
}
|
|
17369
|
-
const BP = { render: jP },
|
|
17369
|
+
const BP = { render: jP }, qP = {
|
|
17370
17370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17371
17371
|
viewBox: "0 0 32 30"
|
|
17372
|
-
},
|
|
17373
|
-
|
|
17372
|
+
}, VP = /* @__PURE__ */ G("path", { d: "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z" }, null, -1), zP = [
|
|
17373
|
+
VP
|
|
17374
17374
|
];
|
|
17375
17375
|
function UP(e, t) {
|
|
17376
|
-
return C(), te("svg",
|
|
17376
|
+
return C(), te("svg", qP, zP);
|
|
17377
17377
|
}
|
|
17378
17378
|
const HP = { render: UP }, GP = {
|
|
17379
17379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -18372,7 +18372,7 @@ function LM(e) {
|
|
|
18372
18372
|
}
|
|
18373
18373
|
var KM = BM, jM = () => 1;
|
|
18374
18374
|
function BM(e, t, n) {
|
|
18375
|
-
return
|
|
18375
|
+
return qM(
|
|
18376
18376
|
e,
|
|
18377
18377
|
t || jM,
|
|
18378
18378
|
n || function(o) {
|
|
@@ -18380,7 +18380,7 @@ function BM(e, t, n) {
|
|
|
18380
18380
|
}
|
|
18381
18381
|
);
|
|
18382
18382
|
}
|
|
18383
|
-
function
|
|
18383
|
+
function qM(e, t, n) {
|
|
18384
18384
|
var o = {}, i = e.nodes();
|
|
18385
18385
|
return i.forEach(function(r) {
|
|
18386
18386
|
o[r] = {}, o[r][r] = { distance: 0 }, i.forEach(function(a) {
|
|
@@ -18418,7 +18418,7 @@ class ul extends Error {
|
|
|
18418
18418
|
}
|
|
18419
18419
|
var Og = Ng;
|
|
18420
18420
|
Ng.CycleException = ul;
|
|
18421
|
-
var Ad = Og,
|
|
18421
|
+
var Ad = Og, VM = zM;
|
|
18422
18422
|
function zM(e) {
|
|
18423
18423
|
try {
|
|
18424
18424
|
Ad(e);
|
|
@@ -18497,7 +18497,7 @@ var i2 = {
|
|
|
18497
18497
|
dijkstraAll: PM,
|
|
18498
18498
|
findCycles: DM,
|
|
18499
18499
|
floydWarshall: KM,
|
|
18500
|
-
isAcyclic:
|
|
18500
|
+
isAcyclic: VM,
|
|
18501
18501
|
postorder: WM,
|
|
18502
18502
|
preorder: JM,
|
|
18503
18503
|
prim: n2,
|
|
@@ -18805,7 +18805,7 @@ function D2(e) {
|
|
|
18805
18805
|
let L2 = vt;
|
|
18806
18806
|
var K2 = {
|
|
18807
18807
|
run: j2,
|
|
18808
|
-
undo:
|
|
18808
|
+
undo: q2
|
|
18809
18809
|
};
|
|
18810
18810
|
function j2(e) {
|
|
18811
18811
|
e.graph().dummyChains = [], e.edges().forEach((t) => B2(e, t));
|
|
@@ -18825,14 +18825,14 @@ function B2(e, t) {
|
|
|
18825
18825
|
}, u = L2.addDummyNode(e, "edge", d, "_d"), o === l && (d.width = s.width, d.height = s.height, d.dummy = "edge-label", d.labelpos = s.labelpos), e.setEdge(n, u, { weight: s.weight }, a), c === 0 && e.graph().dummyChains.push(u), n = u;
|
|
18826
18826
|
e.setEdge(n, i, { weight: s.weight }, a);
|
|
18827
18827
|
}
|
|
18828
|
-
function
|
|
18828
|
+
function q2(e) {
|
|
18829
18829
|
e.graph().dummyChains.forEach((t) => {
|
|
18830
18830
|
let n = e.node(t), o = n.edgeLabel, i;
|
|
18831
18831
|
for (e.setEdge(n.edgeObj, o); n.dummy; )
|
|
18832
18832
|
i = e.successors(t)[0], e.removeNode(t), o.points.push({ x: n.x, y: n.y }), n.dummy === "edge-label" && (o.x = n.x, o.y = n.y, o.width = n.width, o.height = n.height), t = i, n = e.node(t);
|
|
18833
18833
|
});
|
|
18834
18834
|
}
|
|
18835
|
-
const { applyWithChunking:
|
|
18835
|
+
const { applyWithChunking: V2 } = vt;
|
|
18836
18836
|
var La = {
|
|
18837
18837
|
longestPath: z2,
|
|
18838
18838
|
slack: U2
|
|
@@ -18845,7 +18845,7 @@ function z2(e) {
|
|
|
18845
18845
|
return i.rank;
|
|
18846
18846
|
t[o] = !0;
|
|
18847
18847
|
let r = e.outEdges(o).map((s) => s == null ? Number.POSITIVE_INFINITY : n(s.w) - e.edge(s).minlen);
|
|
18848
|
-
var a =
|
|
18848
|
+
var a = V2(Math.min, r);
|
|
18849
18849
|
return a === Number.POSITIVE_INFINITY && (a = 0), i.rank = a;
|
|
18850
18850
|
}
|
|
18851
18851
|
e.sources().forEach(n);
|
|
@@ -18882,7 +18882,7 @@ function X2(e, t, n) {
|
|
|
18882
18882
|
var Z2 = Bg, $d = La.slack, J2 = La.longestPath, Q2 = en.alg.preorder, eR = en.alg.postorder, tR = vt.simplify, nR = vo;
|
|
18883
18883
|
vo.initLowLimValues = pu;
|
|
18884
18884
|
vo.initCutValues = fu;
|
|
18885
|
-
vo.calcCutValue =
|
|
18885
|
+
vo.calcCutValue = qg;
|
|
18886
18886
|
vo.leaveEdge = zg;
|
|
18887
18887
|
vo.enterEdge = Ug;
|
|
18888
18888
|
vo.exchangeEdges = Hg;
|
|
@@ -18899,9 +18899,9 @@ function fu(e, t) {
|
|
|
18899
18899
|
}
|
|
18900
18900
|
function oR(e, t, n) {
|
|
18901
18901
|
var o = e.node(n), i = o.parent;
|
|
18902
|
-
e.edge(n, i).cutvalue =
|
|
18902
|
+
e.edge(n, i).cutvalue = qg(e, t, n);
|
|
18903
18903
|
}
|
|
18904
|
-
function
|
|
18904
|
+
function qg(e, t, n) {
|
|
18905
18905
|
var o = e.node(n), i = o.parent, r = !0, a = t.edge(n, i), s = 0;
|
|
18906
18906
|
return a || (r = !1, a = t.edge(i, n)), s = a.weight, t.nodeEdges(n).forEach((l) => {
|
|
18907
18907
|
var u = l.v === n, d = u ? l.w : l.v;
|
|
@@ -18915,12 +18915,12 @@ function Vg(e, t, n) {
|
|
|
18915
18915
|
}), s;
|
|
18916
18916
|
}
|
|
18917
18917
|
function pu(e, t) {
|
|
18918
|
-
arguments.length < 2 && (t = e.nodes()[0]),
|
|
18918
|
+
arguments.length < 2 && (t = e.nodes()[0]), Vg(e, {}, 1, t);
|
|
18919
18919
|
}
|
|
18920
|
-
function
|
|
18920
|
+
function Vg(e, t, n, o, i) {
|
|
18921
18921
|
var r = n, a = e.node(o);
|
|
18922
18922
|
return t[o] = !0, e.neighbors(o).forEach((s) => {
|
|
18923
|
-
Object.hasOwn(t, s) || (n =
|
|
18923
|
+
Object.hasOwn(t, s) || (n = Vg(e, t, n, s, o));
|
|
18924
18924
|
}), a.low = r, a.lim = n++, i ? a.parent = i : delete a.parent, n;
|
|
18925
18925
|
}
|
|
18926
18926
|
function zg(e) {
|
|
@@ -19202,7 +19202,7 @@ function BR(e) {
|
|
|
19202
19202
|
let t = [];
|
|
19203
19203
|
function n(i) {
|
|
19204
19204
|
return (r) => {
|
|
19205
|
-
r.merged || (r.barycenter === void 0 || i.barycenter === void 0 || r.barycenter >= i.barycenter) &&
|
|
19205
|
+
r.merged || (r.barycenter === void 0 || i.barycenter === void 0 || r.barycenter >= i.barycenter) && qR(i, r);
|
|
19206
19206
|
};
|
|
19207
19207
|
}
|
|
19208
19208
|
function o(i) {
|
|
@@ -19216,14 +19216,14 @@ function BR(e) {
|
|
|
19216
19216
|
}
|
|
19217
19217
|
return t.filter((i) => !i.merged).map((i) => LR.pick(i, ["vs", "i", "barycenter", "weight"]));
|
|
19218
19218
|
}
|
|
19219
|
-
function
|
|
19219
|
+
function qR(e, t) {
|
|
19220
19220
|
let n = 0, o = 0;
|
|
19221
19221
|
e.weight && (n += e.barycenter * e.weight, o += e.weight), t.weight && (n += t.barycenter * t.weight, o += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = n / o, e.weight = o, e.i = Math.min(t.i, e.i), t.merged = !0;
|
|
19222
19222
|
}
|
|
19223
|
-
let
|
|
19223
|
+
let VR = vt;
|
|
19224
19224
|
var zR = UR;
|
|
19225
19225
|
function UR(e, t) {
|
|
19226
|
-
let n =
|
|
19226
|
+
let n = VR.partition(e, (d) => Object.hasOwn(d, "barycenter")), o = n.lhs, i = n.rhs.sort((d, c) => c.i - d.i), r = [], a = 0, s = 0, l = 0;
|
|
19227
19227
|
o.sort(HR(!!t)), l = Fd(r, i, l), o.forEach((d) => {
|
|
19228
19228
|
l += d.vs.length, r.push(d.vs), a += d.barycenter * d.weight, s += d.weight, l = Fd(r, i, l);
|
|
19229
19229
|
});
|
|
@@ -19542,17 +19542,17 @@ function OF(e) {
|
|
|
19542
19542
|
i.forEach((a) => e.node(a).y = o + r / 2), o += r + n;
|
|
19543
19543
|
});
|
|
19544
19544
|
}
|
|
19545
|
-
let Kd = M2, jd = K2, PF = uR, MF = vt.normalizeRanks, RF = pR, FF = vt.removeEmptyRanks, Bd = vR, DF = kR,
|
|
19546
|
-
var BF =
|
|
19547
|
-
function
|
|
19548
|
-
let n = t && t.debugTiming ?
|
|
19545
|
+
let Kd = M2, jd = K2, PF = uR, MF = vt.normalizeRanks, RF = pR, FF = vt.removeEmptyRanks, Bd = vR, DF = kR, qd = SR, LF = fF, KF = $F, Vt = vt, jF = en.Graph;
|
|
19546
|
+
var BF = qF;
|
|
19547
|
+
function qF(e, t) {
|
|
19548
|
+
let n = t && t.debugTiming ? Vt.time : Vt.notime;
|
|
19549
19549
|
n("layout", () => {
|
|
19550
19550
|
let o = n(" buildLayoutGraph", () => JF(e));
|
|
19551
|
-
n(" runLayout", () =>
|
|
19551
|
+
n(" runLayout", () => VF(o, n, t)), n(" updateInputGraph", () => zF(e, o));
|
|
19552
19552
|
});
|
|
19553
19553
|
}
|
|
19554
|
-
function
|
|
19555
|
-
t(" makeSpaceForEdgeLabels", () => QF(e)), t(" removeSelfEdges", () => lD(e)), t(" acyclic", () => Kd.run(e)), t(" nestingGraph.run", () => Bd.run(e)), t(" rank", () => PF(
|
|
19554
|
+
function VF(e, t, n) {
|
|
19555
|
+
t(" makeSpaceForEdgeLabels", () => QF(e)), t(" removeSelfEdges", () => lD(e)), t(" acyclic", () => Kd.run(e)), t(" nestingGraph.run", () => Bd.run(e)), t(" rank", () => PF(Vt.asNonCompoundGraph(e))), t(" injectEdgeLabelProxies", () => eD(e)), t(" removeEmptyRanks", () => FF(e)), t(" nestingGraph.cleanup", () => Bd.cleanup(e)), t(" normalizeRanks", () => MF(e)), t(" assignRankMinMax", () => tD(e)), t(" removeEdgeLabelProxies", () => nD(e)), t(" normalize.run", () => jd.run(e)), t(" parentDummyChains", () => RF(e)), t(" addBorderSegments", () => DF(e)), t(" order", () => LF(e, n)), t(" insertSelfEdges", () => uD(e)), t(" adjustCoordinateSystem", () => qd.adjust(e)), t(" position", () => KF(e)), t(" positionSelfEdges", () => cD(e)), t(" removeBorderNodes", () => sD(e)), t(" normalize.undo", () => jd.undo(e)), t(" fixupEdgeLabelCoords", () => rD(e)), t(" undoCoordinateSystem", () => qd.undo(e)), t(" translateGraph", () => oD(e)), t(" assignNodeIntersects", () => iD(e)), t(" reversePoints", () => aD(e)), t(" acyclic.undo", () => Kd.undo(e));
|
|
19556
19556
|
}
|
|
19557
19557
|
function zF(e, t) {
|
|
19558
19558
|
e.nodes().forEach((n) => {
|
|
@@ -19563,7 +19563,7 @@ function zF(e, t) {
|
|
|
19563
19563
|
o.points = i.points, Object.hasOwn(i, "x") && (o.x = i.x, o.y = i.y);
|
|
19564
19564
|
}), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
|
|
19565
19565
|
}
|
|
19566
|
-
let UF = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], HF = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, GF = ["acyclicer", "ranker", "rankdir", "align"], YF = ["width", "height", "rank"],
|
|
19566
|
+
let UF = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], HF = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, GF = ["acyclicer", "ranker", "rankdir", "align"], YF = ["width", "height", "rank"], Vd = { width: 0, height: 0 }, WF = ["minlen", "weight", "width", "height", "labeloffset"], XF = {
|
|
19567
19567
|
minlen: 1,
|
|
19568
19568
|
weight: 1,
|
|
19569
19569
|
width: 0,
|
|
@@ -19577,12 +19577,12 @@ function JF(e) {
|
|
|
19577
19577
|
{},
|
|
19578
19578
|
HF,
|
|
19579
19579
|
ps(n, UF),
|
|
19580
|
-
|
|
19580
|
+
Vt.pick(n, GF)
|
|
19581
19581
|
)), e.nodes().forEach((o) => {
|
|
19582
19582
|
let i = ms(e.node(o));
|
|
19583
19583
|
const r = ps(i, YF);
|
|
19584
|
-
Object.keys(
|
|
19585
|
-
r[a] === void 0 && (r[a] =
|
|
19584
|
+
Object.keys(Vd).forEach((a) => {
|
|
19585
|
+
r[a] === void 0 && (r[a] = Vd[a]);
|
|
19586
19586
|
}), t.setNode(o, r), t.setParent(o, e.parent(o));
|
|
19587
19587
|
}), e.edges().forEach((o) => {
|
|
19588
19588
|
let i = ms(e.edge(o));
|
|
@@ -19590,7 +19590,7 @@ function JF(e) {
|
|
|
19590
19590
|
{},
|
|
19591
19591
|
XF,
|
|
19592
19592
|
ps(i, WF),
|
|
19593
|
-
|
|
19593
|
+
Vt.pick(i, ZF)
|
|
19594
19594
|
));
|
|
19595
19595
|
}), t;
|
|
19596
19596
|
}
|
|
@@ -19606,7 +19606,7 @@ function eD(e) {
|
|
|
19606
19606
|
let n = e.edge(t);
|
|
19607
19607
|
if (n.width && n.height) {
|
|
19608
19608
|
let o = e.node(t.v), r = { rank: (e.node(t.w).rank - o.rank) / 2 + o.rank, e: t };
|
|
19609
|
-
|
|
19609
|
+
Vt.addDummyNode(e, "edge-proxy", r, "_ep");
|
|
19610
19610
|
}
|
|
19611
19611
|
});
|
|
19612
19612
|
}
|
|
@@ -19645,7 +19645,7 @@ function oD(e) {
|
|
|
19645
19645
|
function iD(e) {
|
|
19646
19646
|
e.edges().forEach((t) => {
|
|
19647
19647
|
let n = e.edge(t), o = e.node(t.v), i = e.node(t.w), r, a;
|
|
19648
|
-
n.points ? (r = n.points[0], a = n.points[n.points.length - 1]) : (n.points = [], r = i, a = o), n.points.unshift(
|
|
19648
|
+
n.points ? (r = n.points[0], a = n.points[n.points.length - 1]) : (n.points = [], r = i, a = o), n.points.unshift(Vt.intersectRect(o, r)), n.points.push(Vt.intersectRect(i, a));
|
|
19649
19649
|
});
|
|
19650
19650
|
}
|
|
19651
19651
|
function rD(e) {
|
|
@@ -19687,13 +19687,13 @@ function lD(e) {
|
|
|
19687
19687
|
});
|
|
19688
19688
|
}
|
|
19689
19689
|
function uD(e) {
|
|
19690
|
-
var t =
|
|
19690
|
+
var t = Vt.buildLayerMatrix(e);
|
|
19691
19691
|
t.forEach((n) => {
|
|
19692
19692
|
var o = 0;
|
|
19693
19693
|
n.forEach((i, r) => {
|
|
19694
19694
|
var a = e.node(i);
|
|
19695
19695
|
a.order = r + o, (a.selfEdges || []).forEach((s) => {
|
|
19696
|
-
|
|
19696
|
+
Vt.addDummyNode(e, "selfedge", {
|
|
19697
19697
|
width: s.label.width,
|
|
19698
19698
|
height: s.label.height,
|
|
19699
19699
|
rank: a.rank,
|
|
@@ -19721,7 +19721,7 @@ function cD(e) {
|
|
|
19721
19721
|
});
|
|
19722
19722
|
}
|
|
19723
19723
|
function ps(e, t) {
|
|
19724
|
-
return
|
|
19724
|
+
return Vt.mapValues(Vt.pick(e, t), Number);
|
|
19725
19725
|
}
|
|
19726
19726
|
function ms(e) {
|
|
19727
19727
|
var t = {};
|
|
@@ -19864,8 +19864,8 @@ const [ED, kD] = vf(
|
|
|
19864
19864
|
removeNode: X,
|
|
19865
19865
|
getNodeById: J,
|
|
19866
19866
|
connectEdge: U,
|
|
19867
|
-
disconnectEdge:
|
|
19868
|
-
getInEdgesByNodeId:
|
|
19867
|
+
disconnectEdge: q,
|
|
19868
|
+
getInEdgesByNodeId: V,
|
|
19869
19869
|
commit: oe,
|
|
19870
19870
|
reset: ee
|
|
19871
19871
|
} = f;
|
|
@@ -19916,18 +19916,18 @@ const [ED, kD] = vf(
|
|
|
19916
19916
|
const ne = Ud(F), L = Ud(Z);
|
|
19917
19917
|
if ((ne == null ? void 0 : ne.io) === "input" || (L == null ? void 0 : L.io) === "output" || F === "output" && Z === "output")
|
|
19918
19918
|
return;
|
|
19919
|
-
const ae =
|
|
19919
|
+
const ae = V(O);
|
|
19920
19920
|
let K = !1, Se = !1;
|
|
19921
19921
|
const Ae = [], xe = [], ce = (L == null ? void 0 : L.io) === "input" ? ae.filter((De) => !De.targetField) : ae.filter((De) => !!De.targetField);
|
|
19922
19922
|
ce.length > 0 && (K = !0, ce.forEach((De) => {
|
|
19923
|
-
xe.push(Ni(De, J)),
|
|
19923
|
+
xe.push(Ni(De, J)), q(De.id, !1);
|
|
19924
19924
|
}));
|
|
19925
19925
|
const we = (L == null ? void 0 : L.io) === "input" ? ae.filter((De) => De.targetField === L.field) : ae.filter((De) => !De.targetField);
|
|
19926
19926
|
if (we.length > 0) {
|
|
19927
19927
|
if (we.some((ye) => ye.source === E && ye.target === O && ye.targetField === (L == null ? void 0 : L.field) && ye.sourceField === (ne == null ? void 0 : ne.field)))
|
|
19928
19928
|
return;
|
|
19929
19929
|
Se = !0, we.forEach((ye) => {
|
|
19930
|
-
xe.push(Ni(ye, J)),
|
|
19930
|
+
xe.push(Ni(ye, J)), q(ye.id, !1);
|
|
19931
19931
|
});
|
|
19932
19932
|
}
|
|
19933
19933
|
if (!U({
|
|
@@ -19988,14 +19988,14 @@ const [ED, kD] = vf(
|
|
|
19988
19988
|
});
|
|
19989
19989
|
let O = !1;
|
|
19990
19990
|
E.forEach((Z) => {
|
|
19991
|
-
Z.type === "remove" && (O = !0,
|
|
19991
|
+
Z.type === "remove" && (O = !0, q(Z.id, !1));
|
|
19992
19992
|
}), O && !ue && (ue = !0, queueMicrotask(he));
|
|
19993
19993
|
}), D(({ edge: E }) => {
|
|
19994
19994
|
fl = E.id, w((F) => F.map((O) => O.id !== E.id ? O : br(O)));
|
|
19995
19995
|
}), B(({ edge: E }) => {
|
|
19996
19996
|
fl = void 0, w((F) => F.map((O) => O.id !== E.id ? O : br(O)));
|
|
19997
19997
|
}), $(({ edge: E, connection: F }) => {
|
|
19998
|
-
|
|
19998
|
+
q(E.id, !1), ie(F);
|
|
19999
19999
|
});
|
|
20000
20000
|
function Ee(E = !0) {
|
|
20001
20001
|
let F, O;
|
|
@@ -20294,7 +20294,7 @@ const ND = {
|
|
|
20294
20294
|
G("kbd", OD, me(p(t)), 1)
|
|
20295
20295
|
], 2));
|
|
20296
20296
|
}
|
|
20297
|
-
}), ra = /* @__PURE__ */ Me(PD, [["__scopeId", "data-v-cc70d56b"]]), MD = { class: "body" }, RD = { class: "name" }, FD = { class: "handle" }, DD = { class: "handle-label-wrapper" }, LD = { class: "handle-label-wrapper" }, KD = { class: "handle-label text" }, jD = { class: "handle" }, BD = { class: "handle-label-wrapper" },
|
|
20297
|
+
}), ra = /* @__PURE__ */ Me(PD, [["__scopeId", "data-v-cc70d56b"]]), MD = { class: "body" }, RD = { class: "name" }, FD = { class: "handle" }, DD = { class: "handle-label-wrapper" }, LD = { class: "handle-label-wrapper" }, KD = { class: "handle-label text" }, jD = { class: "handle" }, BD = { class: "handle-label-wrapper" }, qD = { class: "handle-label-wrapper" }, VD = { class: "handle-label text" }, zD = /* @__PURE__ */ ve({
|
|
20298
20298
|
__name: "FlowNode",
|
|
20299
20299
|
props: {
|
|
20300
20300
|
data: {},
|
|
@@ -20475,7 +20475,7 @@ const ND = {
|
|
|
20475
20475
|
}, null, 8, ["color", "position"])) : Ce("", !0)
|
|
20476
20476
|
])
|
|
20477
20477
|
]),
|
|
20478
|
-
d.value && h.value ? (C(!0), te(Le, { key: 0 },
|
|
20478
|
+
d.value && h.value ? (C(!0), te(Le, { key: 0 }, Ve(w.data.fields.input, (T, z) => (C(), te("div", {
|
|
20479
20479
|
key: `inputs-${T.id}`,
|
|
20480
20480
|
class: "handle indented"
|
|
20481
20481
|
}, [
|
|
@@ -20532,12 +20532,12 @@ const ND = {
|
|
|
20532
20532
|
type: "source"
|
|
20533
20533
|
}, null, 8, ["position"])
|
|
20534
20534
|
]),
|
|
20535
|
-
c.value && v.value ? (C(!0), te(Le, { key: 0 },
|
|
20535
|
+
c.value && v.value ? (C(!0), te(Le, { key: 0 }, Ve(w.data.fields.output, (T, z) => (C(), te("div", {
|
|
20536
20536
|
key: `outputs-${T.id}`,
|
|
20537
20537
|
class: "handle indented"
|
|
20538
20538
|
}, [
|
|
20539
|
-
G("div",
|
|
20540
|
-
G("div",
|
|
20539
|
+
G("div", qD, [
|
|
20540
|
+
G("div", VD, me(T.name), 1),
|
|
20541
20541
|
P(wr, {
|
|
20542
20542
|
color: $.value,
|
|
20543
20543
|
position: I.value,
|
|
@@ -20600,9 +20600,9 @@ const ND = {
|
|
|
20600
20600
|
X.preventDefault();
|
|
20601
20601
|
const U = JSON.parse(J);
|
|
20602
20602
|
if (U.action !== "create-node") return;
|
|
20603
|
-
const { top:
|
|
20604
|
-
x: X.clientX -
|
|
20605
|
-
y: X.clientY -
|
|
20603
|
+
const { top: q = 0, left: V = 0 } = ((ie = I.value) == null ? void 0 : ie.getBoundingClientRect()) || {}, oe = A({
|
|
20604
|
+
x: X.clientX - V,
|
|
20605
|
+
y: X.clientY - q
|
|
20606
20606
|
}), { type: ee, anchor: de } = U.data, ge = {
|
|
20607
20607
|
type: ee,
|
|
20608
20608
|
phase: e.phase,
|
|
@@ -20627,8 +20627,8 @@ const ND = {
|
|
|
20627
20627
|
});
|
|
20628
20628
|
if (e.phase === "response" && e.mode === "edit") {
|
|
20629
20629
|
Cr("dragstart", (J) => {
|
|
20630
|
-
var
|
|
20631
|
-
const U = (
|
|
20630
|
+
var V;
|
|
20631
|
+
const U = (V = J.dataTransfer) == null ? void 0 : V.types.find((oe) => oe.startsWith(`${Ai}/`));
|
|
20632
20632
|
if (!U) return;
|
|
20633
20633
|
U.replace(`${Ai}/`, "") === "call" && (H.value = !0);
|
|
20634
20634
|
});
|
|
@@ -20693,7 +20693,7 @@ const ND = {
|
|
|
20693
20693
|
"show-zoom": !1
|
|
20694
20694
|
}, {
|
|
20695
20695
|
default: M(() => [
|
|
20696
|
-
(C(!0), te(Le, null,
|
|
20696
|
+
(C(!0), te(Le, null, Ve(j.value, (U) => (C(), Y(p(Ro), {
|
|
20697
20697
|
key: U.name,
|
|
20698
20698
|
placement: "right",
|
|
20699
20699
|
text: p(a)(`plugins.free-form.datakit.flow_editor.actions.${U.name}`)
|
|
@@ -20729,8 +20729,8 @@ const ND = {
|
|
|
20729
20729
|
},
|
|
20730
20730
|
setup(e) {
|
|
20731
20731
|
const t = se(!1), n = se(!1), { state: o, clearPendingLayout: i, setPendingFitView: r, commit: a, clear: s } = Ft(), l = sf(), u = `${l}-request`, d = `${l}-response`, c = Ze(u), f = Ze(d);
|
|
20732
|
-
function m(
|
|
20733
|
-
const { onPaneClick: ee, onNodesChange: de, onEdgesChange: ge, getSelectedNodes: be, getSelectedEdges: Ie } =
|
|
20732
|
+
function m(V, oe) {
|
|
20733
|
+
const { onPaneClick: ee, onNodesChange: de, onEdgesChange: ge, getSelectedNodes: be, getSelectedEdges: Ie } = V, { removeSelectedElements: ie } = oe;
|
|
20734
20734
|
function ue(he) {
|
|
20735
20735
|
if (!he) {
|
|
20736
20736
|
ie();
|
|
@@ -20748,9 +20748,9 @@ const ND = {
|
|
|
20748
20748
|
}, J = R(
|
|
20749
20749
|
() => x.height.value - $.height.value - B.height.value - W.height.value
|
|
20750
20750
|
), { isDragging: U } = kv(_, {
|
|
20751
|
-
onMove(
|
|
20751
|
+
onMove(V) {
|
|
20752
20752
|
if (!e.resizable) return;
|
|
20753
|
-
const oe = Math.max(0,
|
|
20753
|
+
const oe = Math.max(0, V.y - D.top.value), ee = Math.min(
|
|
20754
20754
|
1,
|
|
20755
20755
|
Math.max(
|
|
20756
20756
|
0,
|
|
@@ -20763,21 +20763,21 @@ const ND = {
|
|
|
20763
20763
|
e.resizable && (D.height.value < w.value ? (z.value = "0", j.value = "100%") : H.height.value < w.value && (z.value = "100%", j.value = "0"));
|
|
20764
20764
|
}
|
|
20765
20765
|
});
|
|
20766
|
-
function
|
|
20766
|
+
function q() {
|
|
20767
20767
|
rt(() => {
|
|
20768
|
-
var
|
|
20769
|
-
(
|
|
20768
|
+
var V, oe;
|
|
20769
|
+
(V = y.value) == null || V.fitView(), (oe = I.value) == null || oe.fitView();
|
|
20770
20770
|
});
|
|
20771
20771
|
}
|
|
20772
20772
|
return Ne(
|
|
20773
20773
|
[t, n, () => o.value.pendingLayout, () => o.value.pendingFitView],
|
|
20774
|
-
([
|
|
20775
|
-
e.inactive || !
|
|
20774
|
+
([V, oe, ee, de]) => {
|
|
20775
|
+
e.inactive || !V || !oe || !ee && !de || (ee && i(), de && r(!1), setTimeout(() => {
|
|
20776
20776
|
var ge, be;
|
|
20777
|
-
ee && ((ge = y.value) == null || ge.autoLayout(!1), (be = I.value) == null || be.autoLayout(!1), a("*"), ee === "clearHistory" && s()), de &&
|
|
20777
|
+
ee && ((ge = y.value) == null || ge.autoLayout(!1), (be = I.value) == null || be.autoLayout(!1), a("*"), ee === "clearHistory" && s()), de && q();
|
|
20778
20778
|
}, 0));
|
|
20779
20779
|
}
|
|
20780
|
-
), (
|
|
20780
|
+
), (V, oe) => (C(), te("div", {
|
|
20781
20781
|
ref_key: "flowPanels",
|
|
20782
20782
|
ref: h,
|
|
20783
20783
|
class: "flow-panels"
|
|
@@ -20785,10 +20785,10 @@ const ND = {
|
|
|
20785
20785
|
G("div", {
|
|
20786
20786
|
ref_key: "requestLabel",
|
|
20787
20787
|
ref: v,
|
|
20788
|
-
class: Ue(["label request", { resizable:
|
|
20788
|
+
class: Ue(["label request", { resizable: V.resizable }]),
|
|
20789
20789
|
onClick: re
|
|
20790
20790
|
}, [
|
|
20791
|
-
|
|
20791
|
+
V.resizable ? (C(), Y(p(ws), {
|
|
20792
20792
|
key: 0,
|
|
20793
20793
|
class: Ue(["icon", { collapsed: Q.value }])
|
|
20794
20794
|
}, null, 8, ["class"])) : Ce("", !0),
|
|
@@ -20804,7 +20804,7 @@ const ND = {
|
|
|
20804
20804
|
ref_key: "requestFlow",
|
|
20805
20805
|
ref: y,
|
|
20806
20806
|
"flow-id": u,
|
|
20807
|
-
mode:
|
|
20807
|
+
mode: V.mode,
|
|
20808
20808
|
phase: "request",
|
|
20809
20809
|
onInitialized: oe[0] || (oe[0] = (ee) => t.value = !0),
|
|
20810
20810
|
onNodesChange: oe[1] || (oe[1] = (ee) => t.value = !1)
|
|
@@ -20813,15 +20813,15 @@ const ND = {
|
|
|
20813
20813
|
G("div", {
|
|
20814
20814
|
ref_key: "resizeHandle",
|
|
20815
20815
|
ref: _,
|
|
20816
|
-
class: Ue(["resize-handle", { resizable:
|
|
20816
|
+
class: Ue(["resize-handle", { resizable: V.resizable }])
|
|
20817
20817
|
}, null, 2),
|
|
20818
20818
|
G("div", {
|
|
20819
20819
|
ref_key: "responseLabel",
|
|
20820
20820
|
ref: b,
|
|
20821
|
-
class: Ue(["label response", { dragging: p(U), resizable:
|
|
20821
|
+
class: Ue(["label response", { dragging: p(U), resizable: V.resizable }]),
|
|
20822
20822
|
onClick: X
|
|
20823
20823
|
}, [
|
|
20824
|
-
|
|
20824
|
+
V.resizable ? (C(), Y(p(ws), {
|
|
20825
20825
|
key: 0,
|
|
20826
20826
|
class: Ue(["icon", { collapsed: T.value }])
|
|
20827
20827
|
}, null, 8, ["class"])) : Ce("", !0),
|
|
@@ -20837,7 +20837,7 @@ const ND = {
|
|
|
20837
20837
|
ref_key: "responseFlow",
|
|
20838
20838
|
ref: I,
|
|
20839
20839
|
"flow-id": d,
|
|
20840
|
-
mode:
|
|
20840
|
+
mode: V.mode,
|
|
20841
20841
|
phase: "response",
|
|
20842
20842
|
onInitialized: oe[2] || (oe[2] = (ee) => n.value = !0),
|
|
20843
20843
|
onNodesChange: oe[3] || (oe[3] = (ee) => n.value = !1)
|
|
@@ -20887,7 +20887,7 @@ const ND = {
|
|
|
20887
20887
|
G("p", null, me(a.value), 1),
|
|
20888
20888
|
G("p", null, me(p(o)("plugins.free-form.datakit.flow_editor.confirm.message.confirm")), 1),
|
|
20889
20889
|
G("div", WD, [
|
|
20890
|
-
(C(!0), te(Le, null,
|
|
20890
|
+
(C(!0), te(Le, null, Ve(s.value ?? [], ([g, y]) => (C(), te("div", {
|
|
20891
20891
|
key: `${g}-${y}`
|
|
20892
20892
|
}, [
|
|
20893
20893
|
P(p(Gt), { color: p(oC) }, null, 8, ["color"]),
|
|
@@ -20895,7 +20895,7 @@ const ND = {
|
|
|
20895
20895
|
h[0] || (h[0] = Fe(" → ", -1)),
|
|
20896
20896
|
G("span", null, me(y), 1)
|
|
20897
20897
|
]))), 128)),
|
|
20898
|
-
(C(!0), te(Le, null,
|
|
20898
|
+
(C(!0), te(Le, null, Ve(l.value ?? [], ([g, y]) => (C(), te("div", {
|
|
20899
20899
|
key: `${g}-${y}`
|
|
20900
20900
|
}, [
|
|
20901
20901
|
P(p(gl), { color: p(gp) }, null, 8, ["color"]),
|
|
@@ -20926,7 +20926,7 @@ const ND = {
|
|
|
20926
20926
|
}
|
|
20927
20927
|
return (u, d) => (C(), te("nav", JD, [
|
|
20928
20928
|
G("div", QD, [
|
|
20929
|
-
(C(), te(Le, null,
|
|
20929
|
+
(C(), te(Le, null, Ve(i, ({ label: c, to: f, icon: m, onClick: h }) => P(p(Ro), {
|
|
20930
20930
|
key: c,
|
|
20931
20931
|
"kpop-attributes": { offset: "10px" },
|
|
20932
20932
|
label: c,
|
|
@@ -20999,8 +20999,8 @@ const ND = {
|
|
|
20999
20999
|
setup(e) {
|
|
21000
21000
|
const { t } = bt("en-us", wt), { modalOpen: n, undo: o, redo: i, canUndo: r, canRedo: a, load: s } = Ft();
|
|
21001
21001
|
function l(c) {
|
|
21002
|
-
const f =
|
|
21003
|
-
schema:
|
|
21002
|
+
const f = Vs.load(c, {
|
|
21003
|
+
schema: Vr,
|
|
21004
21004
|
json: !0
|
|
21005
21005
|
});
|
|
21006
21006
|
if (typeof f != "object" || f === null)
|
|
@@ -21097,7 +21097,7 @@ const ND = {
|
|
|
21097
21097
|
"trigger-text": p(t)("plugins.free-form.datakit.flow_editor.examples")
|
|
21098
21098
|
}, {
|
|
21099
21099
|
items: M(() => [
|
|
21100
|
-
(C(), te(Le, null,
|
|
21100
|
+
(C(), te(Le, null, Ve(zs, (m, h) => P(p(Cs), {
|
|
21101
21101
|
key: h,
|
|
21102
21102
|
onClick: (v) => l(m)
|
|
21103
21103
|
}, {
|
|
@@ -21225,7 +21225,7 @@ const ND = {
|
|
|
21225
21225
|
}, 8, ["info"])
|
|
21226
21226
|
]),
|
|
21227
21227
|
G("div", _L, [
|
|
21228
|
-
(C(!0), te(Le, null,
|
|
21228
|
+
(C(!0), te(Le, null, Ve(Object.keys(p(wa)), (d) => (C(), Y(hL, {
|
|
21229
21229
|
key: d,
|
|
21230
21230
|
type: d,
|
|
21231
21231
|
onDragstart: a
|
|
@@ -21274,7 +21274,7 @@ const ND = {
|
|
|
21274
21274
|
"reset-label-path": "isolate"
|
|
21275
21275
|
}, {
|
|
21276
21276
|
default: M(() => [
|
|
21277
|
-
(C(!0), te(Le, null,
|
|
21277
|
+
(C(!0), te(Le, null, Ve(o.value, (a) => (C(), Y(cn, {
|
|
21278
21278
|
key: a,
|
|
21279
21279
|
clearable: "",
|
|
21280
21280
|
"enable-filtering": "",
|
|
@@ -21368,7 +21368,7 @@ const ND = {
|
|
|
21368
21368
|
ref: u,
|
|
21369
21369
|
class: "dk-inputs-map-field"
|
|
21370
21370
|
}, [
|
|
21371
|
-
(C(!0), te(Le, null,
|
|
21371
|
+
(C(!0), te(Le, null, Ve(p(i), (w, Q) => (C(), te("div", {
|
|
21372
21372
|
key: w.id,
|
|
21373
21373
|
class: "dk-inputs-map-field-entry",
|
|
21374
21374
|
"data-testid": `ff-kv-container-${p(s).path.value}.${Q}`
|
|
@@ -21899,44 +21899,44 @@ function yo(e, t) {
|
|
|
21899
21899
|
if (!U) throw new Error("Node not existed");
|
|
21900
21900
|
return U;
|
|
21901
21901
|
}), b = R(() => {
|
|
21902
|
-
const
|
|
21902
|
+
const q = o.value.edges.filter((V) => V.target === e).reduce((V, oe) => {
|
|
21903
21903
|
var Ie, ie;
|
|
21904
21904
|
const ee = r(oe.source), de = (Ie = Rn(ee, "output", oe.sourceField)) == null ? void 0 : Ie.id, ge = (ie = Rn(_.value, "input", oe.targetField)) == null ? void 0 : ie.name, be = ee.id + (de ? `.${de}` : "");
|
|
21905
|
-
return ge ?
|
|
21905
|
+
return ge ? V.inputs = { ...V.inputs, [ge]: be } : V.input = be, V;
|
|
21906
21906
|
}, {});
|
|
21907
|
-
return _.value.fields.input.forEach((
|
|
21908
|
-
|
|
21907
|
+
return _.value.fields.input.forEach((V) => {
|
|
21908
|
+
q.inputs || (q.inputs = {}), q.inputs[V.name] || (q.inputs[V.name] = null);
|
|
21909
21909
|
}), {
|
|
21910
21910
|
..._.value.config,
|
|
21911
|
-
...
|
|
21911
|
+
...q,
|
|
21912
21912
|
name: _.value.name
|
|
21913
21913
|
};
|
|
21914
21914
|
}), A = (U) => {
|
|
21915
21915
|
i(e, U ?? "", !0, `${e}:rename`);
|
|
21916
|
-
}, I = (U,
|
|
21916
|
+
}, I = (U, q = !0) => {
|
|
21917
21917
|
if (y) return;
|
|
21918
21918
|
if (!t) throw new Error("getFormInnerData is not defined");
|
|
21919
|
-
const
|
|
21920
|
-
u(e,
|
|
21921
|
-
}, x = (U,
|
|
21922
|
-
const
|
|
21923
|
-
if (!
|
|
21924
|
-
throw new Error(`Field with name "${
|
|
21925
|
-
return
|
|
21926
|
-
}, $ = (U,
|
|
21927
|
-
const oe = !!
|
|
21928
|
-
a(e, U,
|
|
21929
|
-
}, D = (U,
|
|
21919
|
+
const V = Ml(t(), ["name", "input", "inputs"]), oe = U ? `update:${e}:${U}` : void 0;
|
|
21920
|
+
u(e, V, q, oe);
|
|
21921
|
+
}, x = (U, q) => {
|
|
21922
|
+
const V = zo(_.value, U, q);
|
|
21923
|
+
if (!V)
|
|
21924
|
+
throw new Error(`Field with name "${q}" not found in node "${_.value.name}"`);
|
|
21925
|
+
return V;
|
|
21926
|
+
}, $ = (U, q, V) => {
|
|
21927
|
+
const oe = !!V;
|
|
21928
|
+
a(e, U, q, !oe), oe && w(q, V);
|
|
21929
|
+
}, D = (U, q, V) => {
|
|
21930
21930
|
if (y) return;
|
|
21931
|
-
const oe = x(U,
|
|
21932
|
-
s(e, oe,
|
|
21933
|
-
}, B = (U,
|
|
21934
|
-
const
|
|
21935
|
-
l(e,
|
|
21936
|
-
}, W = R(() => o.value.edges.filter((U) => U.target === e && !U.targetField)[0]), H = R(() => o.value.edges.filter((U) => U.target === e && U.targetField)), w = async (U,
|
|
21931
|
+
const oe = x(U, q).id;
|
|
21932
|
+
s(e, oe, V);
|
|
21933
|
+
}, B = (U, q) => {
|
|
21934
|
+
const V = x(U, q).id;
|
|
21935
|
+
l(e, V);
|
|
21936
|
+
}, W = R(() => o.value.edges.filter((U) => U.target === e && !U.targetField)[0]), H = R(() => o.value.edges.filter((U) => U.target === e && U.targetField)), w = async (U, q) => {
|
|
21937
21937
|
if (y) return;
|
|
21938
|
-
const
|
|
21939
|
-
if (
|
|
21938
|
+
const V = q == null, oe = x("input", U).id;
|
|
21939
|
+
if (V) {
|
|
21940
21940
|
const Ee = H.value.find((_e) => _e.targetField === oe);
|
|
21941
21941
|
Ee && d(Ee.id);
|
|
21942
21942
|
return;
|
|
@@ -21944,7 +21944,7 @@ function yo(e, t) {
|
|
|
21944
21944
|
const {
|
|
21945
21945
|
nodeId: ee,
|
|
21946
21946
|
fieldId: de
|
|
21947
|
-
} = Nc(
|
|
21947
|
+
} = Nc(q), ge = x("input", U).id, be = [];
|
|
21948
21948
|
W.value && (be.push(Ni(W.value, r)), d(W.value.id, !1));
|
|
21949
21949
|
const Ie = H.value.find((Ee) => Ee.targetField === oe);
|
|
21950
21950
|
Ie && (be.push(Ni(Ie, r)), d(Ie.id, !1)), c({
|
|
@@ -21973,9 +21973,9 @@ function yo(e, t) {
|
|
|
21973
21973
|
W.value && d(W.value.id);
|
|
21974
21974
|
return;
|
|
21975
21975
|
}
|
|
21976
|
-
const
|
|
21976
|
+
const V = [];
|
|
21977
21977
|
for (const be of H.value)
|
|
21978
|
-
|
|
21978
|
+
V.push(Ni(be, r)), d(be.id, !1);
|
|
21979
21979
|
W.value && d(W.value.id, !1);
|
|
21980
21980
|
const { nodeId: oe, fieldId: ee } = Nc(U);
|
|
21981
21981
|
c({
|
|
@@ -21992,24 +21992,24 @@ function yo(e, t) {
|
|
|
21992
21992
|
void 0,
|
|
21993
21993
|
r
|
|
21994
21994
|
);
|
|
21995
|
-
if (m(),
|
|
21995
|
+
if (m(), V.length === 0)
|
|
21996
21996
|
return;
|
|
21997
21997
|
await g(
|
|
21998
21998
|
v("plugins.free-form.datakit.flow_editor.confirm.message.switch"),
|
|
21999
21999
|
[de],
|
|
22000
|
-
|
|
22000
|
+
V
|
|
22001
22001
|
) || h();
|
|
22002
22002
|
}, T = (U) => {
|
|
22003
|
-
const
|
|
22003
|
+
const q = [
|
|
22004
22004
|
...o.value.edges,
|
|
22005
22005
|
{ source: U, target: e }
|
|
22006
22006
|
];
|
|
22007
|
-
return Us(Sr(
|
|
22007
|
+
return Us(Sr(q));
|
|
22008
22008
|
}, z = R(() => {
|
|
22009
|
-
var
|
|
22009
|
+
var q, V;
|
|
22010
22010
|
const U = [];
|
|
22011
22011
|
for (const oe of o.value.nodes)
|
|
22012
|
-
if (!(!n && oe.type === "vault" || !((
|
|
22012
|
+
if (!(!n && oe.type === "vault" || !((q = Qi(oe.type).io) != null && q.output)) && oe.fields.output && oe.id !== e && !(oe.type === "property" && !uu((V = oe.config) == null ? void 0 : V.property)) && !T(oe.id) && !(_.value.phase === "request" && oe.phase === "response")) {
|
|
22013
22013
|
U.push({ value: oe.id, label: oe.name });
|
|
22014
22014
|
for (const de of oe.fields.output)
|
|
22015
22015
|
U.push({
|
|
@@ -22023,11 +22023,11 @@ function yo(e, t) {
|
|
|
22023
22023
|
f.value.delete(e), U || f.value.add(e);
|
|
22024
22024
|
}
|
|
22025
22025
|
const X = KL(e);
|
|
22026
|
-
function J(U,
|
|
22026
|
+
function J(U, q, V) {
|
|
22027
22027
|
const oe = r(e);
|
|
22028
22028
|
if (!oe) throw new Error("Node not found when validating field name");
|
|
22029
|
-
const ee = zo(oe, U,
|
|
22030
|
-
return X(U,
|
|
22029
|
+
const ee = zo(oe, U, q);
|
|
22030
|
+
return X(U, V, ee == null ? void 0 : ee.id);
|
|
22031
22031
|
}
|
|
22032
22032
|
return {
|
|
22033
22033
|
// states
|
|
@@ -22177,7 +22177,7 @@ const nr = /* @__PURE__ */ ve({
|
|
|
22177
22177
|
name: "method",
|
|
22178
22178
|
onUpdate: _[0] || (_[0] = (A) => p(a)())
|
|
22179
22179
|
}),
|
|
22180
|
-
P(
|
|
22180
|
+
P(qo, {
|
|
22181
22181
|
error: p(g).error.value,
|
|
22182
22182
|
"error-message": p(g).errorMessage.value,
|
|
22183
22183
|
label: p(t)("plugins.free-form.datakit.flow_editor.node_properties.timeout.label"),
|
|
@@ -22201,7 +22201,7 @@ const nr = /* @__PURE__ */ ve({
|
|
|
22201
22201
|
}, 8, ["data", "schema"]);
|
|
22202
22202
|
};
|
|
22203
22203
|
}
|
|
22204
|
-
}),
|
|
22204
|
+
}), qL = /* @__PURE__ */ ve({
|
|
22205
22205
|
__name: "NodeFormServiceRequest",
|
|
22206
22206
|
props: {
|
|
22207
22207
|
nodeId: {}
|
|
@@ -22232,7 +22232,7 @@ const nr = /* @__PURE__ */ ve({
|
|
|
22232
22232
|
_: 1
|
|
22233
22233
|
}, 8, ["data", "schema"]));
|
|
22234
22234
|
}
|
|
22235
|
-
}),
|
|
22235
|
+
}), VL = /* @__PURE__ */ ve({
|
|
22236
22236
|
__name: "NodeFormResponse",
|
|
22237
22237
|
props: {
|
|
22238
22238
|
nodeId: {}
|
|
@@ -22464,7 +22464,7 @@ const nr = /* @__PURE__ */ ve({
|
|
|
22464
22464
|
]),
|
|
22465
22465
|
_: 1
|
|
22466
22466
|
}),
|
|
22467
|
-
(C(!0), te(Le, null,
|
|
22467
|
+
(C(!0), te(Le, null, Ve(p(r), (w, Q) => (C(), Y(H, {
|
|
22468
22468
|
key: w.id,
|
|
22469
22469
|
class: "dk-output-value-field-entry",
|
|
22470
22470
|
"data-testid": `ff-kv-container-${p(l).path.value}.${Q}`
|
|
@@ -22868,7 +22868,7 @@ const WL = /* @__PURE__ */ ve({
|
|
|
22868
22868
|
validate: p(d),
|
|
22869
22869
|
onUpdate: p(i)
|
|
22870
22870
|
}, null, 8, ["name", "validate", "onUpdate"]),
|
|
22871
|
-
P(
|
|
22871
|
+
P(qo, {
|
|
22872
22872
|
error: p(h).error.value,
|
|
22873
22873
|
"error-message": p(h).errorMessage.value,
|
|
22874
22874
|
name: "status",
|
|
@@ -22906,9 +22906,9 @@ const WL = /* @__PURE__ */ ve({
|
|
|
22906
22906
|
case "call":
|
|
22907
22907
|
return BL;
|
|
22908
22908
|
case "service_request":
|
|
22909
|
-
return VL;
|
|
22910
|
-
case "response":
|
|
22911
22909
|
return qL;
|
|
22910
|
+
case "response":
|
|
22911
|
+
return VL;
|
|
22912
22912
|
case "jq":
|
|
22913
22913
|
return zL;
|
|
22914
22914
|
case "static":
|
|
@@ -23323,19 +23323,19 @@ const AK = /^[A-Za-z_][A-Za-z0-9_-]{0,254}$/, dh = le.string().min(1).max(255).r
|
|
|
23323
23323
|
message: "host is required when connection_is_proxied is true (host/port should point to the proxy)",
|
|
23324
23324
|
path: ["host"]
|
|
23325
23325
|
});
|
|
23326
|
-
}),
|
|
23326
|
+
}), qK = le.object({
|
|
23327
23327
|
strategy: le.enum(["memory", "redis"]).optional(),
|
|
23328
23328
|
memory: LK,
|
|
23329
23329
|
redis: BK
|
|
23330
|
-
}),
|
|
23330
|
+
}), VK = le.object({
|
|
23331
23331
|
vault: DK.nullish(),
|
|
23332
|
-
cache:
|
|
23332
|
+
cache: qK.nullish()
|
|
23333
23333
|
});
|
|
23334
23334
|
le.array(le.object({ id: le.string() }));
|
|
23335
23335
|
le.object({
|
|
23336
23336
|
nodes: le.array(FK).min(1, "At least one node is required"),
|
|
23337
23337
|
debug: le.boolean().nullish(),
|
|
23338
|
-
resources:
|
|
23338
|
+
resources: VK.nullish()
|
|
23339
23339
|
}).strict().superRefine((e, t) => {
|
|
23340
23340
|
uh(e, ti, t);
|
|
23341
23341
|
});
|
|
@@ -23624,7 +23624,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23624
23624
|
},
|
|
23625
23625
|
setup(e) {
|
|
23626
23626
|
const t = e, n = Xt();
|
|
23627
|
-
return st(Qo, n == null ? void 0 : n[eo]), (o, i) => (C(), Y(
|
|
23627
|
+
return st(Qo, n == null ? void 0 : n[eo]), (o, i) => (C(), Y(ql, pn(Cn(t)), {
|
|
23628
23628
|
default: M((r) => [
|
|
23629
23629
|
P(o3, pn(Cn(r)), null, 16)
|
|
23630
23630
|
]),
|
|
@@ -23810,7 +23810,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23810
23810
|
let ue = `${r.config.apiBaseUrl}${ct.form[r.config.app].entityGetAll}`;
|
|
23811
23811
|
return ue = g(ue), ue = ue.replace(/{entity}/gi, ie), ue;
|
|
23812
23812
|
};
|
|
23813
|
-
st(
|
|
23813
|
+
st(qh, {
|
|
23814
23814
|
getOne: (ie, ue) => {
|
|
23815
23815
|
const he = y(ie, ue);
|
|
23816
23816
|
return a.get(he);
|
|
@@ -23973,9 +23973,9 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23973
23973
|
originalModel: H,
|
|
23974
23974
|
data: X()
|
|
23975
23975
|
});
|
|
23976
|
-
},
|
|
23976
|
+
}, q = (ie) => {
|
|
23977
23977
|
i("validity-change", ie);
|
|
23978
|
-
},
|
|
23978
|
+
}, V = (ie, ue) => {
|
|
23979
23979
|
Object.keys(ie).forEach((he) => {
|
|
23980
23980
|
var N, E;
|
|
23981
23981
|
let Ee = ue ? `${ue}-${he}` : he, _e = r.schema[Ee];
|
|
@@ -23993,7 +23993,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23993
23993
|
return;
|
|
23994
23994
|
}
|
|
23995
23995
|
if (S === "object" && k && !k.length)
|
|
23996
|
-
return
|
|
23996
|
+
return V(k, Ee);
|
|
23997
23997
|
if (S === "object" && k && k.length && _e.type === "input") {
|
|
23998
23998
|
w[Ee] = k.join(", "), H[Ee] = k.join(", ");
|
|
23999
23999
|
return;
|
|
@@ -24014,29 +24014,29 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24014
24014
|
});
|
|
24015
24015
|
}, de = se(!0), ge = () => {
|
|
24016
24016
|
var ie;
|
|
24017
|
-
if (r.record && r.schema && (
|
|
24017
|
+
if (r.record && r.schema && (V({
|
|
24018
24018
|
enabled: r.record.enabled ?? !0,
|
|
24019
24019
|
...r.record.instance_name && { instance_name: r.record.instance_name || "" },
|
|
24020
24020
|
...r.record.protocols && { protocols: r.record.protocols },
|
|
24021
24021
|
...r.record.tags && { tags: r.record.tags }
|
|
24022
|
-
}), r.credential ? ((r.record.consumer_id || r.record.consumer) &&
|
|
24022
|
+
}), r.credential ? ((r.record.consumer_id || r.record.consumer) && V({
|
|
24023
24023
|
consumer_id: r.record.consumer_id || r.record.consumer
|
|
24024
|
-
}),
|
|
24024
|
+
}), V(r.record)) : r.record.config && ((r.record.consumer_id || r.record.consumer || r.record.service_id || r.record.service || r.record.route_id || r.record.route || r.record.consumer_group_id || r.record.consumer_group) && V({
|
|
24025
24025
|
service_id: r.record.service_id || r.record.service,
|
|
24026
24026
|
route_id: r.record.route_id || r.record.route,
|
|
24027
24027
|
consumer_id: r.record.consumer_id || r.record.consumer,
|
|
24028
24028
|
consumer_group_id: r.record.consumer_group_id || r.record.consumer_group
|
|
24029
|
-
}), r.record.partials && J("redis", { partials: r.record.partials }), D.value ? ee(r.record) :
|
|
24029
|
+
}), r.record.partials && J("redis", { partials: r.record.partials }), D.value ? ee(r.record) : V(r.record.config, "config"))), Object.keys(r.entityMap).length && !r.entityMap.global && r.schema) {
|
|
24030
24030
|
const ue = {};
|
|
24031
24031
|
for (const he in r.entityMap) {
|
|
24032
24032
|
const Ee = r.entityMap[he].id, _e = r.entityMap[he].idField, k = _e === "consumer_group_id" ? "consumer_group-id" : JSON.parse(JSON.stringify(_e).replace("_", "-"));
|
|
24033
24033
|
Object.prototype.hasOwnProperty.call(w, k) && (ue[k] = Ee);
|
|
24034
24034
|
}
|
|
24035
|
-
|
|
24035
|
+
V(ue);
|
|
24036
24036
|
}
|
|
24037
24037
|
if ((ie = r.entityMap.consumer) != null && ie.id && r.schema && r.credential) {
|
|
24038
24038
|
const ue = {};
|
|
24039
|
-
Object.prototype.hasOwnProperty.call(w, "consumer") && (ue.consumer = r.entityMap.consumer.id),
|
|
24039
|
+
Object.prototype.hasOwnProperty.call(w, "consumer") && (ue.consumer = r.entityMap.consumer.id), V(ue);
|
|
24040
24040
|
}
|
|
24041
24041
|
de.value = !1;
|
|
24042
24042
|
};
|
|
@@ -24071,7 +24071,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24071
24071
|
model: e.record,
|
|
24072
24072
|
"on-form-change": ee,
|
|
24073
24073
|
"on-model-updated": U,
|
|
24074
|
-
"on-validity-change":
|
|
24074
|
+
"on-validity-change": q,
|
|
24075
24075
|
schema: e.rawSchema,
|
|
24076
24076
|
onGlobalAction: ue[0] || (ue[0] = (_e, k) => ie.$emit("globalAction", _e, k))
|
|
24077
24077
|
}, et({ _: 2 }, [
|
|
@@ -24136,7 +24136,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24136
24136
|
]), 1032, ["enable-redis-partial", "is-editing", "model", "options", "schema"]))
|
|
24137
24137
|
])) : Ce("", !0)
|
|
24138
24138
|
]),
|
|
24139
|
-
P(p(
|
|
24139
|
+
P(p(Vh), {
|
|
24140
24140
|
config: r.config,
|
|
24141
24141
|
setup: T.value,
|
|
24142
24142
|
onCancel: ue[2] || (ue[2] = () => T.value = !1),
|
|
@@ -24270,7 +24270,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24270
24270
|
app: o.config.app,
|
|
24271
24271
|
credential: o.credential,
|
|
24272
24272
|
experimentalRenders: o.config.app === "konnect" ? o.config.experimentalRenders : void 0
|
|
24273
|
-
}), { formatPluginFieldLabel: l } = it.usePluginHelpers(), { getMessageFromError: u } = Jo(), { capitalize: d } = sa(), { objectsAreEqual: c } = la(), { axiosInstance: f } = Bn((ne = o.config) == null ? void 0 : ne.axiosRequestConfig), m = se(!1), h = R(() => !!o.pluginId), v = R(() => o.pluginId ?
|
|
24273
|
+
}), { formatPluginFieldLabel: l } = it.usePluginHelpers(), { getMessageFromError: u } = Jo(), { capitalize: d } = sa(), { objectsAreEqual: c } = la(), { axiosInstance: f } = Bn((ne = o.config) == null ? void 0 : ne.axiosRequestConfig), m = se(!1), h = R(() => !!o.pluginId), v = R(() => o.pluginId ? qn.Edit : qn.Create), g = se(void 0), y = se(void 0), _ = R(() => !!(o.credential && o.config.entityId)), b = se(void 0), A = se({}), I = se(), x = se();
|
|
24274
24274
|
st(vp, {
|
|
24275
24275
|
redisType: I,
|
|
24276
24276
|
redisPath: x,
|
|
@@ -24373,7 +24373,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24373
24373
|
},
|
|
24374
24374
|
// plugin scoping
|
|
24375
24375
|
selectionGroup: {
|
|
24376
|
-
type: o.hideScopeSelection && (o.hideScopeSelection || v.value ===
|
|
24376
|
+
type: o.hideScopeSelection && (o.hideScopeSelection || v.value === qn.Create && o.config.entityId) ? "foreign" : "selectionGroup",
|
|
24377
24377
|
disabled: o.disableScopeSelection,
|
|
24378
24378
|
inputType: "hidden",
|
|
24379
24379
|
styleClasses: "hide-label",
|
|
@@ -24456,24 +24456,24 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24456
24456
|
}, K) : X(fe, ye, K);
|
|
24457
24457
|
if (K[fe] = { id: fe, model: De }, K[fe].type = ye.type === "boolean" ? "checkbox" : "input", K[fe].required = ye.required, K[fe].referenceable = ye.referenceable, fe.startsWith("config-"))
|
|
24458
24458
|
if (!Se && ye.type === "array" && (H.value = fe), Se && H.value && fe.startsWith(H.value)) {
|
|
24459
|
-
const
|
|
24460
|
-
K[fe].label =
|
|
24459
|
+
const qe = fe.slice(H.value.length + 1);
|
|
24460
|
+
K[fe].label = qe.split("-").map(l).join(".");
|
|
24461
24461
|
} else
|
|
24462
24462
|
K[fe].label = l(fe);
|
|
24463
24463
|
if ((L === "config" || L.startsWith("config-")) && (oi = Ae[De]) != null && oi.description && (K[fe].help = kr.parse(Ae[De].description, { mangle: !1, headerIds: !1 })), ye.type === "map") {
|
|
24464
24464
|
if (K[fe].type = "object-advanced", K[fe].values = ye.values, ye.values.type === "array") {
|
|
24465
|
-
const { type:
|
|
24465
|
+
const { type: qe } = ye.values.elements || {};
|
|
24466
24466
|
K[fe].schema = {
|
|
24467
24467
|
fields: [{
|
|
24468
24468
|
schema: {
|
|
24469
24469
|
fields: [{
|
|
24470
24470
|
...ze,
|
|
24471
24471
|
model: fe,
|
|
24472
|
-
valueArrayType:
|
|
24472
|
+
valueArrayType: qe === "integer" ? "number" : qe || "string",
|
|
24473
24473
|
inputAttributes: {
|
|
24474
24474
|
...ze.inputAttributes,
|
|
24475
|
-
type:
|
|
24476
|
-
inputMode:
|
|
24475
|
+
type: qe === "integer" ? "number" : "text",
|
|
24476
|
+
inputMode: qe === "integer" ? "numeric" : "text"
|
|
24477
24477
|
}
|
|
24478
24478
|
}]
|
|
24479
24479
|
}
|
|
@@ -24485,14 +24485,14 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24485
24485
|
type: "object",
|
|
24486
24486
|
model: "object",
|
|
24487
24487
|
schema: {
|
|
24488
|
-
fields: ye.values.fields.map((
|
|
24489
|
-
const Nt = Object.keys(
|
|
24488
|
+
fields: ye.values.fields.map((qe) => {
|
|
24489
|
+
const Nt = Object.keys(qe)[0];
|
|
24490
24490
|
return {
|
|
24491
24491
|
model: Nt,
|
|
24492
24492
|
type: "input",
|
|
24493
24493
|
label: d(Nt),
|
|
24494
24494
|
placeholder: Nt,
|
|
24495
|
-
inputType:
|
|
24495
|
+
inputType: qe[Nt].type
|
|
24496
24496
|
};
|
|
24497
24497
|
})
|
|
24498
24498
|
}
|
|
@@ -24504,25 +24504,25 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24504
24504
|
if (ye.enum && ye.type === "array" && (K[fe].type = "checklist", K[fe].values = ye.enum, K[fe].multi = !0, K[fe].multiSelect = !0), ye.one_of && ye.type !== "array" && (K[fe].type = "select", K[fe].values = ye.one_of, K[fe].selectOptions = {
|
|
24505
24505
|
noneSelectedText: r("plugins.form.no_selection")
|
|
24506
24506
|
}), ye.elements && ye.type === "array") {
|
|
24507
|
-
const
|
|
24508
|
-
if (K[fe].referenceable =
|
|
24507
|
+
const qe = ye.elements;
|
|
24508
|
+
if (K[fe].referenceable = qe.referenceable, K[fe].elements = qe, ["string", "integer", "number"].includes(qe.type) && !qe.one_of) {
|
|
24509
24509
|
const { id: Nt, help: ut, label: Ke, hint: He, values: Je, referenceable: vn, model: Dt } = K[fe], { inputAttributes: rr, ...mh } = JSON.parse(JSON.stringify(ze));
|
|
24510
|
-
rr.type =
|
|
24510
|
+
rr.type = qe.type === "string" ? "text" : "number", K[fe] = { id: Nt, help: ut, label: Ke, hint: He, values: Je, referenceable: vn, model: Dt, inputAttributes: rr, ...mh };
|
|
24511
24511
|
}
|
|
24512
24512
|
}
|
|
24513
|
-
if (ye.hint && (K[fe].hint = ye.hint), xe && !xe.overwriteDefault && Object.keys(xe).forEach((
|
|
24514
|
-
if (
|
|
24515
|
-
const { help: Nt, label: ut, hint: Ke, values: He, referenceable: Je, elements: vn } = K[fe], { help: Dt, ...rr } = xe[
|
|
24513
|
+
if (ye.hint && (K[fe].hint = ye.hint), xe && !xe.overwriteDefault && Object.keys(xe).forEach((qe) => {
|
|
24514
|
+
if (qe === fe) {
|
|
24515
|
+
const { help: Nt, label: ut, hint: Ke, values: He, referenceable: Je, elements: vn } = K[fe], { help: Dt, ...rr } = xe[qe];
|
|
24516
24516
|
K[fe] = { help: Nt, label: ut, hint: Ke, values: He, referenceable: Je, elements: vn, ...rr }, typeof Dt == "string" && (K[fe].help = kr.parse(Dt, { mangle: !1, headerIds: !1 }));
|
|
24517
24517
|
}
|
|
24518
24518
|
}), ye.type === "array" && ((ii = ye.elements) == null ? void 0 : ii.type) === "record" && Array.isArray(ye.elements.fields)) {
|
|
24519
|
-
let
|
|
24519
|
+
let qe = {};
|
|
24520
24520
|
for (const ut of ye.elements.fields)
|
|
24521
|
-
|
|
24521
|
+
qe = { ...qe, ...ut };
|
|
24522
24522
|
const Nt = (si = (ai = (ri = K[fe]) == null ? void 0 : ri.items) == null ? void 0 : ai.schema) == null ? void 0 : si.fields;
|
|
24523
24523
|
if (Array.isArray(Nt))
|
|
24524
24524
|
for (const ut of K[fe].items.schema.fields) {
|
|
24525
|
-
const Ke = (li =
|
|
24525
|
+
const Ke = (li = qe[ut.model]) == null ? void 0 : li.description;
|
|
24526
24526
|
ut.help === void 0 && typeof Ke == "string" && (ut.help = kr.parse(Ke, { mangle: !1, headerIds: !1 }));
|
|
24527
24527
|
}
|
|
24528
24528
|
if (Nt || (K[fe].type = "array", K[fe].newElementButtonLabelClasses = "kong-form-new-element-button-label", K[fe].fieldClasses = "array-card-container-wrapper", K[fe].itemContainerComponent = "FieldArrayCardContainer", K[fe].items = {
|
|
@@ -24561,11 +24561,11 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24561
24561
|
}
|
|
24562
24562
|
}
|
|
24563
24563
|
if (_.value && ce) {
|
|
24564
|
-
for (let
|
|
24565
|
-
if (ce[
|
|
24564
|
+
for (let qe = 0; qe < ce.length; qe++)
|
|
24565
|
+
if (ce[qe][fe]) {
|
|
24566
24566
|
K[fe] = {
|
|
24567
24567
|
...K[fe],
|
|
24568
|
-
...ce[
|
|
24568
|
+
...ce[qe][fe]
|
|
24569
24569
|
};
|
|
24570
24570
|
break;
|
|
24571
24571
|
}
|
|
@@ -24574,15 +24574,15 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24574
24574
|
hideNoneSelectedText: !0
|
|
24575
24575
|
}), ye.required && ye.type === "boolean" && (K[fe].default = ye.default ?? !1), ye.default != null && typeof ye.default != "object" && ye.default !== "function" && (K[fe].default = ye.default), K[fe].type === "input") {
|
|
24576
24576
|
["string", "number"].includes(typeof K[fe].default) && o.config.app === "konnect" && (K[fe].placeholder = `Default: ${K[fe].default === "" ? "<empty string>" : K[fe].default}`);
|
|
24577
|
-
const { type:
|
|
24578
|
-
|
|
24577
|
+
const { type: qe } = ye.elements || {};
|
|
24578
|
+
qe && (K[fe].valueArrayType = qe === "integer" ? "number" : qe), K[fe].inputType = ye.type === "array" || ye.type === "string" ? ye.encrypted ? "password" : "text" : ye.type;
|
|
24579
24579
|
}
|
|
24580
24580
|
let tt = "string";
|
|
24581
24581
|
ye.enum ? tt = re(ye.enum) : ye.type === "boolean" ? tt = "boolean" : ye.type === "number" || ye.type === "integer" ? (tt = "number", K[fe].inputType = "number") : ye.type === "array" ? (tt = "array", K[fe].default = ye.default, ye.len_min > 0 && (K[fe].submitWhenNull = !0)) : ye.type === "foreign" ? tt = "object" : ye.default && Array.isArray(ye.default) ? (tt = "array", K[fe].valueArrayType = re(ye.default)) : ye.default && (tt = typeof ye.default), K[fe].valueType = tt, ye.fieldNameHasDashes && (K[fe].fieldNameHasDashes = !0);
|
|
24582
24582
|
}), K;
|
|
24583
24583
|
}, J = () => {
|
|
24584
|
-
var fe, tt, hn, oi, ii, ri, ai, si, li,
|
|
24585
|
-
const L = ((fe = nn[o.pluginType]) == null ? void 0 : fe.scope.includes(ft.SERVICE)) ?? !0, ae = ((tt = nn[o.pluginType]) == null ? void 0 : tt.scope.includes(ft.ROUTE)) ?? !0, K = ((hn = nn[o.pluginType]) == null ? void 0 : hn.scope.includes(ft.CONSUMER)) ?? !0, Se = o.config.disableConsumerGroupScope ? !1 : ((oi = nn[o.pluginType]) == null ? void 0 : oi.scope.includes(ft.CONSUMER_GROUP)) ?? !0, Ae = o.config.entityType === "consumers" && !!o.config.entityId || !!((ri = (ii = b.value) == null ? void 0 : ii.consumer) != null && ri.id), xe = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((si = (ai = b.value) == null ? void 0 : ai.consumer_group) != null && si.id), ce = o.config.entityType === "services" && !!o.config.entityId || !!((
|
|
24584
|
+
var fe, tt, hn, oi, ii, ri, ai, si, li, qe, Nt, ut;
|
|
24585
|
+
const L = ((fe = nn[o.pluginType]) == null ? void 0 : fe.scope.includes(ft.SERVICE)) ?? !0, ae = ((tt = nn[o.pluginType]) == null ? void 0 : tt.scope.includes(ft.ROUTE)) ?? !0, K = ((hn = nn[o.pluginType]) == null ? void 0 : hn.scope.includes(ft.CONSUMER)) ?? !0, Se = o.config.disableConsumerGroupScope ? !1 : ((oi = nn[o.pluginType]) == null ? void 0 : oi.scope.includes(ft.CONSUMER_GROUP)) ?? !0, Ae = o.config.entityType === "consumers" && !!o.config.entityId || !!((ri = (ii = b.value) == null ? void 0 : ii.consumer) != null && ri.id), xe = o.config.entityType === "consumer_groups" && !!o.config.entityId || !!((si = (ai = b.value) == null ? void 0 : ai.consumer_group) != null && si.id), ce = o.config.entityType === "services" && !!o.config.entityId || !!((qe = (li = b.value) == null ? void 0 : li.service) != null && qe.id), we = o.config.entityType === "routes" && !!o.config.entityId || !!((ut = (Nt = b.value) == null ? void 0 : Nt.route) != null && ut.id), Be = [], De = (Ke, He, Je) => Ke ? r("plugins.form.disable_source_scope_change", { scope: Je }) : He ? r("plugins.form.disable_data_retrieving", { scope: Je }) : "", ye = (Ke) => {
|
|
24586
24586
|
var He, Je;
|
|
24587
24587
|
return ((Je = (He = o.scopedEntitiesPermissions) == null ? void 0 : He[Ke]) == null ? void 0 : Je.canRetrieve) === !1;
|
|
24588
24588
|
};
|
|
@@ -24593,7 +24593,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24593
24593
|
model: "service-id",
|
|
24594
24594
|
label: r("plugins.form.scoping.gateway_service.label"),
|
|
24595
24595
|
placeholder: r("plugins.form.scoping.placeholder"),
|
|
24596
|
-
type: "
|
|
24596
|
+
type: "AutoSuggest",
|
|
24597
24597
|
labelField: "name",
|
|
24598
24598
|
entity: He,
|
|
24599
24599
|
inputValues: {
|
|
@@ -24612,7 +24612,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24612
24612
|
model: "route-id",
|
|
24613
24613
|
label: r("plugins.form.scoping.route.label"),
|
|
24614
24614
|
placeholder: r("plugins.form.scoping.placeholder"),
|
|
24615
|
-
type: "
|
|
24615
|
+
type: "AutoSuggest",
|
|
24616
24616
|
entity: He,
|
|
24617
24617
|
labelField: "name",
|
|
24618
24618
|
// for rendering dropdown item label
|
|
@@ -24631,7 +24631,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24631
24631
|
model: "consumer-id",
|
|
24632
24632
|
label: r("plugins.form.scoping.consumer.label"),
|
|
24633
24633
|
placeholder: r("plugins.form.scoping.placeholder"),
|
|
24634
|
-
type: "
|
|
24634
|
+
type: "AutoSuggest",
|
|
24635
24635
|
entity: He,
|
|
24636
24636
|
labelField: "username",
|
|
24637
24637
|
inputValues: {
|
|
@@ -24649,7 +24649,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24649
24649
|
model: "consumer_group-id",
|
|
24650
24650
|
label: r("plugins.form.scoping.consumer_group.label"),
|
|
24651
24651
|
placeholder: r("plugins.form.scoping.placeholder"),
|
|
24652
|
-
type: "
|
|
24652
|
+
type: "AutoSuggest",
|
|
24653
24653
|
entity: He,
|
|
24654
24654
|
entityDataKey: "consumer_group",
|
|
24655
24655
|
labelField: "name",
|
|
@@ -24684,8 +24684,8 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24684
24684
|
}), z.selectionGroup.fields[1].fields = Be;
|
|
24685
24685
|
}
|
|
24686
24686
|
a[o.pluginType] && a[o.pluginType].overwriteDefault && Object.hasOwnProperty.call(a[o.pluginType], "formSchema") && Object.assign(z, a[o.pluginType].formSchema);
|
|
24687
|
-
}, U = R(() => !c(B.fields, D, !0)),
|
|
24688
|
-
o.credential && L.password && (L.password = ""), B.fields.id = (L == null ? void 0 : L.id) || void 0, oe.value = L == null ? void 0 : L.ordering, Object.assign(D, B.fields), b.value = L,
|
|
24687
|
+
}, U = R(() => !c(B.fields, D, !0)), q = R(() => !O.value && !$.value && (v.value === qn.Create || U.value)), V = se(!1), oe = se(), ee = (L) => {
|
|
24688
|
+
o.credential && L.password && (L.password = ""), B.fields.id = (L == null ? void 0 : L.id) || void 0, oe.value = L == null ? void 0 : L.ordering, Object.assign(D, B.fields), b.value = L, V.value = !0;
|
|
24689
24689
|
}, de = se({}), ge = (L) => {
|
|
24690
24690
|
var ae;
|
|
24691
24691
|
B.fields = L.model, B.fields.id = ((ae = b.value) == null ? void 0 : ae.id) || void 0, Object.assign(D, L.originalModel), de.value = L.data, o.isWizardStep && n("model-updated", {
|
|
@@ -24696,9 +24696,9 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24696
24696
|
}, be = se(/* @__PURE__ */ new Map()), Ie = R(() => [B.clientErrorMessage, B.serverErrorMessage].filter(Boolean).join("; ")), ie = (L) => {
|
|
24697
24697
|
L.valid ? be.value.delete(L.model) : be.value.set(L.model, L.error), B.clientErrorMessage = [...be.value.entries()].map(([ae, K]) => `${ae}: ${typeof K == "string" ? K : u(K)}`).join("; "), B.clientErrorMessage && (B.serverErrorMessage = "");
|
|
24698
24698
|
};
|
|
24699
|
-
Ne([T,
|
|
24699
|
+
Ne([T, V], (L, ae) => {
|
|
24700
24700
|
const K = L[0] !== ae[0], Se = L[1], Ae = ae[1];
|
|
24701
|
-
if (!_.value && v.value ===
|
|
24701
|
+
if (!_.value && v.value === qn.Edit && (K || Se && Se !== Ae)) {
|
|
24702
24702
|
const xe = X("config", A.value, z);
|
|
24703
24703
|
_e.value && (xe._isCustomPlugin = !0), I.value && (xe._supported_redis_partial_type = I.value), y.value = xe;
|
|
24704
24704
|
}
|
|
@@ -24770,7 +24770,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24770
24770
|
protocols: we.join(", ")
|
|
24771
24771
|
}) : r("plugins.form.fields.protocols.placeholder"), (Se = Be.one_of) != null && Se.length && (z.protocols.values = Be.one_of.map((De) => ({ label: De, value: De })));
|
|
24772
24772
|
}
|
|
24773
|
-
if (
|
|
24773
|
+
if (V.value || v.value === qn.Create) {
|
|
24774
24774
|
const we = X("config", A.value, z);
|
|
24775
24775
|
I.value && (we._supported_redis_partial_type = I.value), _e.value && (we._isCustomPlugin = !0), y.value = we;
|
|
24776
24776
|
}
|
|
@@ -24799,7 +24799,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24799
24799
|
_: 1
|
|
24800
24800
|
})) : (C(), Y(p(Ch), {
|
|
24801
24801
|
key: 2,
|
|
24802
|
-
"can-submit":
|
|
24802
|
+
"can-submit": q.value,
|
|
24803
24803
|
config: e.config,
|
|
24804
24804
|
"edit-id": e.pluginId,
|
|
24805
24805
|
"entity-type": p(_s).Plugin,
|
|
@@ -24847,7 +24847,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24847
24847
|
P(Ae, {
|
|
24848
24848
|
appearance: "primary",
|
|
24849
24849
|
"data-testid": `plugin-${h.value ? "edit" : "create"}-form-submit`,
|
|
24850
|
-
disabled: !
|
|
24850
|
+
disabled: !q.value || B.isReadonly,
|
|
24851
24851
|
type: "submit",
|
|
24852
24852
|
onClick: N
|
|
24853
24853
|
}, {
|
|
@@ -24869,7 +24869,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24869
24869
|
P(f3, {
|
|
24870
24870
|
config: e.config,
|
|
24871
24871
|
credential: _.value,
|
|
24872
|
-
editing: v.value === p(
|
|
24872
|
+
editing: v.value === p(qn).Edit,
|
|
24873
24873
|
"enable-redis-partial": e.enableRedisPartial,
|
|
24874
24874
|
"enable-vault-secret-picker": o.enableVaultSecretPicker,
|
|
24875
24875
|
engine: e.engine,
|
|
@@ -24927,7 +24927,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24927
24927
|
]);
|
|
24928
24928
|
};
|
|
24929
24929
|
}
|
|
24930
|
-
}), Kj = /* @__PURE__ */ Me(y3, [["__scopeId", "data-v-
|
|
24930
|
+
}), Kj = /* @__PURE__ */ Me(y3, [["__scopeId", "data-v-4e00808e"]]), _3 = { class: "kong-ui-entities-plugins-list" }, b3 = { class: "button-row" }, w3 = { class: "name-cell-wrapper" }, E3 = { class: "info-wrapper" }, k3 = {
|
|
24931
24931
|
key: 0,
|
|
24932
24932
|
class: "info-name"
|
|
24933
24933
|
}, C3 = {
|
|
@@ -25122,7 +25122,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25122
25122
|
field: "id",
|
|
25123
25123
|
message: r("copy.success", { val: ne })
|
|
25124
25124
|
});
|
|
25125
|
-
},
|
|
25125
|
+
}, q = async (O, Z) => {
|
|
25126
25126
|
const ne = JSON.stringify(O);
|
|
25127
25127
|
if (!await Z(ne)) {
|
|
25128
25128
|
o("copy:error", {
|
|
@@ -25135,7 +25135,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25135
25135
|
entity: O,
|
|
25136
25136
|
message: r("copy.success_brief")
|
|
25137
25137
|
});
|
|
25138
|
-
},
|
|
25138
|
+
}, V = async (O) => {
|
|
25139
25139
|
var ne;
|
|
25140
25140
|
await ((ne = i.canRetrieve) == null ? void 0 : ne.call(i, O)) && a.push(i.config.getViewRoute(O));
|
|
25141
25141
|
}, oe = (O) => ({
|
|
@@ -25202,7 +25202,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25202
25202
|
title: e.title,
|
|
25203
25203
|
"title-tag": e.titleTag,
|
|
25204
25204
|
onClearSearchInput: D,
|
|
25205
|
-
"onClick:row": Z[4] || (Z[4] = (ce) =>
|
|
25205
|
+
"onClick:row": Z[4] || (Z[4] = (ce) => V(ce)),
|
|
25206
25206
|
onSort: B,
|
|
25207
25207
|
onState: p(u)
|
|
25208
25208
|
}, et({
|
|
@@ -25232,7 +25232,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25232
25232
|
]),
|
|
25233
25233
|
_: 1
|
|
25234
25234
|
})) : Ce("", !0),
|
|
25235
|
-
P(p(
|
|
25235
|
+
P(p(Vn), {
|
|
25236
25236
|
"auth-function": () => e.canCreate()
|
|
25237
25237
|
}, {
|
|
25238
25238
|
default: M(() => [
|
|
@@ -25270,7 +25270,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25270
25270
|
appliedTo: M(({ row: ce }) => [
|
|
25271
25271
|
H(ce).length > 0 ? (C(), Y(K, { key: 0 }, {
|
|
25272
25272
|
default: M(() => [
|
|
25273
|
-
(C(!0), te(Le, null,
|
|
25273
|
+
(C(!0), te(Le, null, Ve(H(ce), (we) => (C(), Y(p(Vn), {
|
|
25274
25274
|
key: we.badgeText,
|
|
25275
25275
|
"auth-function": () => w(we.type, ce),
|
|
25276
25276
|
"force-show": ""
|
|
@@ -25293,7 +25293,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25293
25293
|
}, 1024)) : (C(), te("span", x3, "-"))
|
|
25294
25294
|
]),
|
|
25295
25295
|
enabled: M(({ row: ce }) => [
|
|
25296
|
-
P(p(
|
|
25296
|
+
P(p(Vn), {
|
|
25297
25297
|
"auth-function": async () => !!(await e.canEdit(ce) && await e.canToggle(ce)),
|
|
25298
25298
|
"force-show": ""
|
|
25299
25299
|
}, {
|
|
@@ -25348,7 +25348,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25348
25348
|
default: M(({ copyToClipboard: we }) => [
|
|
25349
25349
|
P(Ae, {
|
|
25350
25350
|
"data-testid": "action-entity-copy-json",
|
|
25351
|
-
onClick: (Be) =>
|
|
25351
|
+
onClick: (Be) => q(ce, we)
|
|
25352
25352
|
}, {
|
|
25353
25353
|
default: M(() => [
|
|
25354
25354
|
Fe(me(p(r)("actions.copy_json")), 1)
|
|
@@ -25358,7 +25358,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25358
25358
|
]),
|
|
25359
25359
|
_: 2
|
|
25360
25360
|
}, 1024),
|
|
25361
|
-
P(p(
|
|
25361
|
+
P(p(Vn), {
|
|
25362
25362
|
"auth-function": () => e.canRetrieve(ce)
|
|
25363
25363
|
}, {
|
|
25364
25364
|
default: M(() => [
|
|
@@ -25370,7 +25370,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25370
25370
|
]),
|
|
25371
25371
|
_: 2
|
|
25372
25372
|
}, 1032, ["auth-function"]),
|
|
25373
|
-
P(p(
|
|
25373
|
+
P(p(Vn), {
|
|
25374
25374
|
"auth-function": () => e.canEdit(ce)
|
|
25375
25375
|
}, {
|
|
25376
25376
|
default: M(() => [
|
|
@@ -25381,7 +25381,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25381
25381
|
]),
|
|
25382
25382
|
_: 2
|
|
25383
25383
|
}, 1032, ["auth-function"]),
|
|
25384
|
-
!f.value && !m.value && p(h) ? (C(), Y(p(
|
|
25384
|
+
!f.value && !m.value && p(h) ? (C(), Y(p(Vn), {
|
|
25385
25385
|
key: 0,
|
|
25386
25386
|
"auth-function": () => e.canConfigureDynamicOrdering(ce)
|
|
25387
25387
|
}, {
|
|
@@ -25394,7 +25394,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25394
25394
|
]),
|
|
25395
25395
|
_: 2
|
|
25396
25396
|
}, 1032, ["auth-function"])) : Ce("", !0),
|
|
25397
|
-
P(p(
|
|
25397
|
+
P(p(Vn), {
|
|
25398
25398
|
"auth-function": () => e.canDelete(ce)
|
|
25399
25399
|
}, {
|
|
25400
25400
|
default: M(() => [
|
|
@@ -25744,7 +25744,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25744
25744
|
}, 8, ["action-button-disabled", "title"])) : Ce("", !0);
|
|
25745
25745
|
};
|
|
25746
25746
|
}
|
|
25747
|
-
}), K3 = /* @__PURE__ */ Me(L3, [["__scopeId", "data-v-9e0dee7f"]]), j3 = { class: "custom-plugins-grid" }, B3 = { class: "empty-state-title" },
|
|
25747
|
+
}), K3 = /* @__PURE__ */ Me(L3, [["__scopeId", "data-v-9e0dee7f"]]), j3 = { class: "custom-plugins-grid" }, B3 = { class: "empty-state-title" }, q3 = { class: "empty-state-description" }, gs = 310, V3 = /* @__PURE__ */ ve({
|
|
25748
25748
|
__name: "PluginCustomGrid",
|
|
25749
25749
|
props: {
|
|
25750
25750
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -25846,7 +25846,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25846
25846
|
class: "plugin-card-container",
|
|
25847
25847
|
style: Tt(y.value)
|
|
25848
25848
|
}, [
|
|
25849
|
-
(C(!0), te(Le, null,
|
|
25849
|
+
(C(!0), te(Le, null, Ve(u.value, (B, W) => (C(), Y(ph, {
|
|
25850
25850
|
key: `plugin-card-${W}`,
|
|
25851
25851
|
ref_for: !0,
|
|
25852
25852
|
ref_key: "pluginCardRef",
|
|
@@ -25880,7 +25880,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25880
25880
|
G("span", B3, me(p(i)("plugins.select.tabs.custom.empty_title")), 1)
|
|
25881
25881
|
]),
|
|
25882
25882
|
default: M(() => [
|
|
25883
|
-
G("span",
|
|
25883
|
+
G("span", q3, me(p(i)("plugins.select.tabs.custom.empty_description")), 1)
|
|
25884
25884
|
]),
|
|
25885
25885
|
_: 1
|
|
25886
25886
|
})),
|
|
@@ -25894,7 +25894,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25894
25894
|
]);
|
|
25895
25895
|
};
|
|
25896
25896
|
}
|
|
25897
|
-
}), z3 = /* @__PURE__ */ Me(
|
|
25897
|
+
}), z3 = /* @__PURE__ */ Me(V3, [["__scopeId", "data-v-f4b90f47"]]), hs = 310, U3 = /* @__PURE__ */ ve({
|
|
25898
25898
|
__name: "PluginSelectGroup",
|
|
25899
25899
|
props: /* @__PURE__ */ ys({
|
|
25900
25900
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -25961,7 +25961,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25961
25961
|
class: "plugin-card-container",
|
|
25962
25962
|
style: Tt(c.value)
|
|
25963
25963
|
}, [
|
|
25964
|
-
(C(!0), te(Le, null,
|
|
25964
|
+
(C(!0), te(Le, null, Ve(o.plugins, (_) => (C(), Y(ph, {
|
|
25965
25965
|
key: `plugin-card-${_.id}`,
|
|
25966
25966
|
ref_for: !0,
|
|
25967
25967
|
ref_key: "pluginCardRef",
|
|
@@ -26067,7 +26067,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26067
26067
|
plugins: n.highlightedPlugins,
|
|
26068
26068
|
onPluginClicked: d[1] || (d[1] = (f) => s(f))
|
|
26069
26069
|
}, null, 8, ["modelValue", "config", "name", "navigate-on-click", "plugins"])) : Ce("", !0),
|
|
26070
|
-
(C(!0), te(Le, null,
|
|
26070
|
+
(C(!0), te(Le, null, Ve(p(Rv), (f) => (C(), te(Le, null, [
|
|
26071
26071
|
l.value[f] ? (C(), te("div", { key: f }, [
|
|
26072
26072
|
P(ef, {
|
|
26073
26073
|
modelValue: a.value[f],
|
|
@@ -26171,23 +26171,23 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26171
26171
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
26172
26172
|
setup(e, { emit: t }) {
|
|
26173
26173
|
var U;
|
|
26174
|
-
const n = e, o = t, i = Kh(), r = ua(), { i18n: { t: a } } = it.useI18n(), { pluginMetaData: s } = it.usePluginMetaData(), { getMessageFromError: l } = Jo(), { sortAlpha: u, objectsAreEqual: d } = la(), c = se(""), f = se(!0), m = se(!1), h = se(""), v = se([]), g = se([]), y = se({}), _ = se([]), { axiosInstance: b } = Bn((U = n.config) == null ? void 0 : U.axiosRequestConfig), A = R(() => y.value ? Object.entries(y.value).filter(([
|
|
26175
|
-
for (const oe of
|
|
26176
|
-
|
|
26177
|
-
return
|
|
26174
|
+
const n = e, o = t, i = Kh(), r = ua(), { i18n: { t: a } } = it.useI18n(), { pluginMetaData: s } = it.usePluginMetaData(), { getMessageFromError: l } = Jo(), { sortAlpha: u, objectsAreEqual: d } = la(), c = se(""), f = se(!0), m = se(!1), h = se(""), v = se([]), g = se([]), y = se({}), _ = se([]), { axiosInstance: b } = Bn((U = n.config) == null ? void 0 : U.axiosRequestConfig), A = R(() => y.value ? Object.entries(y.value).filter(([q]) => q !== We.CUSTOM_PLUGINS).reduce((q, [, V]) => {
|
|
26175
|
+
for (const oe of V)
|
|
26176
|
+
q[oe.id] = oe;
|
|
26177
|
+
return q;
|
|
26178
26178
|
}, {}) : {}), I = R(() => {
|
|
26179
26179
|
var oe;
|
|
26180
26180
|
if (!y.value)
|
|
26181
26181
|
return {};
|
|
26182
|
-
const
|
|
26182
|
+
const q = c.value.toLowerCase(), V = JSON.parse(JSON.stringify(y.value));
|
|
26183
26183
|
for (const ee in y.value) {
|
|
26184
|
-
const de = ((oe = y.value[ee]) == null ? void 0 : oe.filter((ge) => ge.name.toLowerCase().includes(
|
|
26185
|
-
de.length ?
|
|
26184
|
+
const de = ((oe = y.value[ee]) == null ? void 0 : oe.filter((ge) => ge.name.toLowerCase().includes(q) || ge.id.toLowerCase().includes(q) || ge.group.toLowerCase().includes(q))) || [];
|
|
26185
|
+
de.length ? V[ee] = de : delete V[ee];
|
|
26186
26186
|
}
|
|
26187
|
-
return
|
|
26188
|
-
}), x = R(() => n.highlightedPluginIds.reduce((
|
|
26189
|
-
const oe = A.value[
|
|
26190
|
-
return oe &&
|
|
26187
|
+
return V;
|
|
26188
|
+
}), x = R(() => n.highlightedPluginIds.reduce((q, V) => {
|
|
26189
|
+
const oe = A.value[V];
|
|
26190
|
+
return oe && q.push(oe), q;
|
|
26191
26191
|
}, [])), $ = R(() => Object.keys(I.value).length > 0), D = R(() => Object.keys(y.value).length > 0 && !$.value), B = R(() => n.config.app === "konnect" ? [
|
|
26192
26192
|
{
|
|
26193
26193
|
hash: "#kong",
|
|
@@ -26199,53 +26199,53 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26199
26199
|
disabled: ["none", "disabled"].includes(n.customPluginSupport)
|
|
26200
26200
|
}
|
|
26201
26201
|
] : []), W = R(() => {
|
|
26202
|
-
var
|
|
26203
|
-
let
|
|
26204
|
-
return
|
|
26202
|
+
var V;
|
|
26203
|
+
let q = B.value.length && ((i == null ? void 0 : i.hash) || ((V = B.value[0]) == null ? void 0 : V.hash)) || "";
|
|
26204
|
+
return q === "#custom" && ["none", "disabled"].includes(n.customPluginSupport) && (q = "#kong"), q;
|
|
26205
26205
|
}), H = () => [.../* @__PURE__ */ new Set(
|
|
26206
26206
|
[
|
|
26207
26207
|
...Object.keys({ ...n.availableOnServer ? {} : s }),
|
|
26208
26208
|
...v.value
|
|
26209
26209
|
]
|
|
26210
|
-
)].filter((
|
|
26210
|
+
)].filter((q) => !n.ignoredPlugins.includes(q)).filter((q) => n.config.entityType && (n.config.entityType === "services" && s[q] && !s[q].scope.includes(ft.SERVICE) || n.config.entityType === "routes" && s[q] && !s[q].scope.includes(ft.ROUTE) || n.config.entityType === "consumer_groups" && s[q] && !s[q].scope.includes(ft.CONSUMER_GROUP) || n.config.entityType === "consumers" && s[q] && !s[q].scope.includes(ft.CONSUMER)) ? !1 : q).reduce((q, V) => {
|
|
26211
26211
|
var be;
|
|
26212
|
-
const oe = s[
|
|
26213
|
-
...s[
|
|
26214
|
-
id:
|
|
26212
|
+
const oe = s[V] && s[V].name || V, ee = {
|
|
26213
|
+
...s[V],
|
|
26214
|
+
id: V,
|
|
26215
26215
|
name: oe,
|
|
26216
|
-
available: v.value.includes(
|
|
26216
|
+
available: v.value.includes(V),
|
|
26217
26217
|
disabledMessage: "",
|
|
26218
|
-
group: ((be = s[
|
|
26218
|
+
group: ((be = s[V]) == null ? void 0 : be.group) || We.CUSTOM_PLUGINS
|
|
26219
26219
|
};
|
|
26220
|
-
ee.group === We.CUSTOM_PLUGINS && (ee.customPluginType = g.value.find((Ie) => Ie.name ===
|
|
26220
|
+
ee.group === We.CUSTOM_PLUGINS && (ee.customPluginType = g.value.find((Ie) => Ie.name === V) ? "streaming" : "schema"), n.disabledPlugins && (ee.disabledMessage = n.disabledPlugins[V]);
|
|
26221
26221
|
const de = ee.group || a("plugins.select.misc_plugins");
|
|
26222
|
-
let ge =
|
|
26223
|
-
return ge || (ge = []), ge.push(ee), ge.sort(u("name")),
|
|
26222
|
+
let ge = q[de];
|
|
26223
|
+
return ge || (ge = []), ge.push(ee), ge.sort(u("name")), q[de] = ge, q;
|
|
26224
26224
|
}, {}), w = R(() => {
|
|
26225
|
-
var
|
|
26226
|
-
let
|
|
26227
|
-
return n.config.app === "konnect" ?
|
|
26225
|
+
var V;
|
|
26226
|
+
let q = `${n.config.apiBaseUrl}${ct.select[n.config.app].availablePlugins}`;
|
|
26227
|
+
return n.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (q = ((V = n.config.gatewayInfo) == null ? void 0 : V.edition) === "community" ? `${n.config.apiBaseUrl}${ct.select[n.config.app].availablePluginsForOss}` : q.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), q;
|
|
26228
26228
|
}), Q = R(() => {
|
|
26229
26229
|
if (n.config.app === "konnect" && n.customPluginSupport === "streaming") {
|
|
26230
|
-
let
|
|
26231
|
-
return
|
|
26230
|
+
let q = `${n.config.apiBaseUrl}${ct.select[n.config.app].streamingCustomPlugins}`;
|
|
26231
|
+
return q = q.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || ""), q;
|
|
26232
26232
|
}
|
|
26233
26233
|
return null;
|
|
26234
26234
|
}), T = R(() => {
|
|
26235
26235
|
if (n.config.entityType && n.config.entityId) {
|
|
26236
|
-
let
|
|
26237
|
-
return n.config.app === "konnect" ?
|
|
26236
|
+
let q = `${n.config.apiBaseUrl}${ct.list[n.config.app].forEntity}`;
|
|
26237
|
+
return n.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, n.config.controlPlaneId || "") : n.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, n.config.workspace ? `/${n.config.workspace}` : "")), q.replace(/{entityType}/gi, n.config.entityType || "").replace(/{entityId}/gi, n.config.entityId || "");
|
|
26238
26238
|
}
|
|
26239
26239
|
return "";
|
|
26240
|
-
}), z = (
|
|
26241
|
-
r.replace({ hash:
|
|
26240
|
+
}), z = (q) => {
|
|
26241
|
+
r.replace({ hash: q, query: i.query });
|
|
26242
26242
|
};
|
|
26243
|
-
Ne(() => n.disabledPlugins, (
|
|
26244
|
-
!d(
|
|
26245
|
-
}), Ne(() => n.ignoredPlugins, (
|
|
26246
|
-
!d(
|
|
26247
|
-
}), Ne(f, (
|
|
26248
|
-
o("loading",
|
|
26243
|
+
Ne(() => n.disabledPlugins, (q, V) => {
|
|
26244
|
+
!d(q, V) && !f.value && (y.value = H());
|
|
26245
|
+
}), Ne(() => n.ignoredPlugins, (q, V) => {
|
|
26246
|
+
!d(q, V) && !f.value && (y.value = H());
|
|
26247
|
+
}), Ne(f, (q) => {
|
|
26248
|
+
o("loading", q);
|
|
26249
26249
|
});
|
|
26250
26250
|
const j = se(!1), re = se(!1), X = se(!1);
|
|
26251
26251
|
Tn(async () => {
|
|
@@ -26253,8 +26253,8 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26253
26253
|
});
|
|
26254
26254
|
const J = at("filter-input");
|
|
26255
26255
|
return $t(async () => {
|
|
26256
|
-
var
|
|
26257
|
-
(
|
|
26256
|
+
var q, V;
|
|
26257
|
+
(V = (q = J.value) == null ? void 0 : q.input) == null || V.focus();
|
|
26258
26258
|
try {
|
|
26259
26259
|
const { data: oe } = await b.get(w.value);
|
|
26260
26260
|
if (n.config.app === "konnect") {
|
|
@@ -26280,14 +26280,14 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26280
26280
|
} catch {
|
|
26281
26281
|
}
|
|
26282
26282
|
m.value || (y.value = H()), f.value = !1;
|
|
26283
|
-
}), (
|
|
26283
|
+
}), (q, V) => {
|
|
26284
26284
|
const oe = ke("KInput"), ee = ke("KSkeletonBox"), de = ke("KSkeleton"), ge = ke("KEmptyState"), be = ke("KTooltip"), Ie = ke("KTabs");
|
|
26285
26285
|
return C(), te("div", W3, [
|
|
26286
26286
|
G("div", X3, [
|
|
26287
26287
|
P(oe, {
|
|
26288
26288
|
ref: "filter-input",
|
|
26289
26289
|
modelValue: c.value,
|
|
26290
|
-
"onUpdate:modelValue":
|
|
26290
|
+
"onUpdate:modelValue": V[0] || (V[0] = (ie) => c.value = ie),
|
|
26291
26291
|
modelModifiers: { trim: !0 },
|
|
26292
26292
|
class: "plugins-filter-input",
|
|
26293
26293
|
"data-testid": "plugins-filter",
|
|
@@ -26329,7 +26329,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26329
26329
|
B.value.length && e.customPluginSupport !== "none" ? (C(), Y(Ie, {
|
|
26330
26330
|
key: 0,
|
|
26331
26331
|
modelValue: W.value,
|
|
26332
|
-
"onUpdate:modelValue":
|
|
26332
|
+
"onUpdate:modelValue": V[5] || (V[5] = (ie) => W.value = ie),
|
|
26333
26333
|
"data-testid": "plugins-tabs",
|
|
26334
26334
|
tabs: B.value,
|
|
26335
26335
|
onChange: z
|
|
@@ -26344,13 +26344,13 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26344
26344
|
"highlighted-plugins-title": n.highlightedPluginsTitle,
|
|
26345
26345
|
"navigate-on-click": e.navigateOnClick,
|
|
26346
26346
|
"plugin-list": I.value,
|
|
26347
|
-
onPluginClicked:
|
|
26347
|
+
onPluginClicked: V[1] || (V[1] = (ie) => q.$emit("plugin-clicked", ie))
|
|
26348
26348
|
}, null, 8, ["config", "hide-highlighted-plugins", "highlighted-plugins", "highlighted-plugins-title", "navigate-on-click", "plugin-list"])
|
|
26349
26349
|
])
|
|
26350
26350
|
]),
|
|
26351
26351
|
custom: M(() => [
|
|
26352
26352
|
G("div", tj, [
|
|
26353
|
-
Re(
|
|
26353
|
+
Re(q.$slots, "before-custom-tab-content", {}, void 0, !0),
|
|
26354
26354
|
G("p", nj, me(p(a)("plugins.select.tabs.custom.description")), 1),
|
|
26355
26355
|
P(z3, {
|
|
26356
26356
|
"can-create-custom-plugin": j.value,
|
|
@@ -26359,9 +26359,9 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26359
26359
|
config: e.config,
|
|
26360
26360
|
"navigate-on-click": e.navigateOnClick,
|
|
26361
26361
|
"plugin-list": I.value,
|
|
26362
|
-
"onDelete:success":
|
|
26363
|
-
onPluginClicked:
|
|
26364
|
-
onRevalidate:
|
|
26362
|
+
"onDelete:success": V[2] || (V[2] = (ie) => q.$emit("delete-custom:success", ie)),
|
|
26363
|
+
onPluginClicked: V[3] || (V[3] = (ie) => q.$emit("plugin-clicked", ie)),
|
|
26364
|
+
onRevalidate: V[4] || (V[4] = () => y.value = H())
|
|
26365
26365
|
}, null, 8, ["can-create-custom-plugin", "can-delete-custom-plugin", "can-edit-custom-plugin", "config", "navigate-on-click", "plugin-list"])
|
|
26366
26366
|
])
|
|
26367
26367
|
]),
|
|
@@ -26390,7 +26390,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26390
26390
|
"highlighted-plugins-title": n.highlightedPluginsTitle,
|
|
26391
26391
|
"navigate-on-click": e.navigateOnClick,
|
|
26392
26392
|
"plugin-list": I.value,
|
|
26393
|
-
onPluginClicked:
|
|
26393
|
+
onPluginClicked: V[6] || (V[6] = (ie) => q.$emit("plugin-clicked", ie))
|
|
26394
26394
|
}, null, 8, ["config", "hide-highlighted-plugins", "highlighted-plugins", "highlighted-plugins-title", "navigate-on-click", "plugin-list"]))
|
|
26395
26395
|
]))
|
|
26396
26396
|
]);
|
|
@@ -26678,7 +26678,7 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26678
26678
|
}, null, 8, ["copy-tooltip", "text"])) : (C(), te("span", hj, "–"))
|
|
26679
26679
|
]),
|
|
26680
26680
|
partials: M((w) => {
|
|
26681
|
-
var Q, T, z, j, re, X, J, U,
|
|
26681
|
+
var Q, T, z, j, re, X, J, U, q;
|
|
26682
26682
|
return [
|
|
26683
26683
|
p(s)("rowValue", w) ? e.showIdAsLink ? (C(), Y(p(ui), {
|
|
26684
26684
|
key: 1,
|
|
@@ -26688,14 +26688,14 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26688
26688
|
type: p(St).LinkInternal
|
|
26689
26689
|
},
|
|
26690
26690
|
onNavigationClick: () => {
|
|
26691
|
-
var
|
|
26692
|
-
return $.$emit("navigation-click", (oe = (
|
|
26691
|
+
var V, oe;
|
|
26692
|
+
return $.$emit("navigation-click", (oe = (V = p(s)("rowValue", w)) == null ? void 0 : V[0]) == null ? void 0 : oe.id, "partial");
|
|
26693
26693
|
}
|
|
26694
26694
|
}, null, 8, ["item", "onNavigationClick"])) : (C(), Y(H, {
|
|
26695
26695
|
key: 2,
|
|
26696
26696
|
"copy-tooltip": p(i)("copy.tooltip", { label: p(s)("row", w).label }),
|
|
26697
26697
|
"data-testid": "partial-copy-uuid",
|
|
26698
|
-
text: (
|
|
26698
|
+
text: (q = p(s)("rowValue", w)) == null ? void 0 : q[0].id
|
|
26699
26699
|
}, null, 8, ["copy-tooltip", "text"])) : (C(), te("span", vj, "–"))
|
|
26700
26700
|
];
|
|
26701
26701
|
}),
|
|
@@ -26714,13 +26714,13 @@ const Xd = gu.options, zK = le.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26714
26714
|
]);
|
|
26715
26715
|
};
|
|
26716
26716
|
}
|
|
26717
|
-
}),
|
|
26717
|
+
}), qj = /* @__PURE__ */ Me(yj, [["__scopeId", "data-v-a5302acb"]]), { usePluginMetaData: Vj, useProvideExperimentalFreeForms: zj } = it;
|
|
26718
26718
|
export {
|
|
26719
26719
|
ep as EXPERIMENTAL_FREE_FORM_PROVIDER,
|
|
26720
26720
|
Co as EntityTypeIdField,
|
|
26721
26721
|
tp as FEATURE_FLAGS,
|
|
26722
26722
|
Fv as PLUGIN_GROUPS_COLLAPSE_STATUS,
|
|
26723
|
-
|
|
26723
|
+
qj as PluginConfigCard,
|
|
26724
26724
|
Kj as PluginForm,
|
|
26725
26725
|
Gj as PluginGroup,
|
|
26726
26726
|
Rv as PluginGroupArray,
|
|
@@ -26734,6 +26734,6 @@ export {
|
|
|
26734
26734
|
aE as TOASTER_PROVIDER,
|
|
26735
26735
|
Zj as getPluginIconURL,
|
|
26736
26736
|
ct as pluginEndpoints,
|
|
26737
|
-
|
|
26737
|
+
Vj as usePluginMetaData,
|
|
26738
26738
|
zj as useProvideExperimentalFreeForms
|
|
26739
26739
|
};
|