@kong-ui-public/entities-plugins 9.83.1 → 9.83.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Jg = Object.defineProperty;
|
|
2
2
|
var Qg = (e, t, n) => t in e ? Jg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ut = (e, t, n) => Qg(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { defineComponent as ve, toRef as Le, inject as it, ref as oe, computed as M, watch as Te, onMounted as It, resolveComponent as we, createElementBlock as te, openBlock as E, createVNode as P, markRaw as Si, provide as ot, createBlock as H, withCtx as F, createElementVNode as U, createCommentVNode as Ee, Fragment as Ke, renderList as qe, toDisplayString as he, unref as p, toValue as Oe, useAttrs as
|
|
5
|
-
import { useStringHelpers as Jr, ConfigurationSchemaType as kt, useAxios as
|
|
4
|
+
import { defineComponent as ve, toRef as Le, inject as it, ref as oe, computed as M, watch as Te, onMounted as It, resolveComponent as we, createElementBlock as te, openBlock as E, createVNode as P, markRaw as Si, provide as ot, createBlock as H, withCtx as F, createElementVNode as U, createCommentVNode as Ee, Fragment as Ke, renderList as qe, toDisplayString as he, unref as p, toValue as Oe, useAttrs as Ln, useSlots as Gt, mergeProps as ze, createSlots as et, renderSlot as Me, normalizeProps as un, guardReactiveProps as En, createPropsRestProxy as Yt, resolveDynamicComponent as mt, Transition as eh, mergeModels as fs, useModel as Cr, onBeforeMount as xn, createTextVNode as De, normalizeClass as Ye, isRef as jo, useTemplateRef as st, withKeys as ou, withModifiers as Ft, nextTick as tt, useCssVars as il, reactive as Wn, toRaw as Sr, watchEffect as Ud, shallowRef as ei, onBeforeUnmount as Zr, getCurrentScope as Hd, effectScope as Gd, getCurrentInstance as Bo, onScopeDispose as hr, toRefs as th, customRef as nh, h as Ge, normalizeStyle as At, onUnmounted as ol, isMemoSame as ih, readonly as oh, useId as Yd, Teleport as Wd } from "vue";
|
|
5
|
+
import { useStringHelpers as Jr, ConfigurationSchemaType as kt, useAxios as Kn, useErrors as Ui, useDebouncedFilter as rh, EntityFormBlock as ru, useHelpers as Qr, EntityBaseFormType as jn, EntityBaseForm as ah, SupportedEntityType as ps, TerraformCodeBlock as sh, YamlCodeBlock as lh, JsonCodeBlock as uh, useTableState as ch, useGatewayFeatureSupported as dh, useFetcher as fh, useDeleteUrlBuilder as ph, FetcherStatus as mh, EntityBaseTable as gh, PermissionsWrapper as Bn, TableTags as hh, EntityFilter as vh, EntityToggleModal as yh, EntityDeleteModal as Xd, EntityTypes as Zd, ConfigurationSchemaSection as gi, useSchemaProvider as _h, EntityBaseConfigCard as bh, InternalLinkItem as no } from "@kong-ui-public/entities-shared";
|
|
6
6
|
import { marked as vr } from "marked";
|
|
7
7
|
import { useRouter as ea, useRoute as wh } from "vue-router";
|
|
8
8
|
import { createI18n as vt, i18nTComponent as Eh } from "@kong-ui-public/i18n";
|
|
@@ -16,7 +16,7 @@ import { KTextArea as Kh, KInput as jh, KCheckbox as Bh, KLabel as Vh, KButton a
|
|
|
16
16
|
import { PartialType as Zo, RedisConfigurationForm as Yh } from "@kong-ui-public/entities-redis-configurations";
|
|
17
17
|
import "@kong-ui-public/entities-redis-configurations/dist/style.css";
|
|
18
18
|
import * as Jo from "monaco-editor";
|
|
19
|
-
import { useManualRefHistory as Wh, createInjectionState as rf, createGlobalState as Xh, useLocalStorage as pu, useElementBounding as
|
|
19
|
+
import { useManualRefHistory as Wh, createInjectionState as rf, createGlobalState as Xh, useLocalStorage as pu, useElementBounding as qn, useDraggable as Zh, useEventListener as Jh, useScrollLock as Qh } from "@vueuse/core";
|
|
20
20
|
import { z as _e } from "zod";
|
|
21
21
|
import { PluginIcon as rl } from "@kong-ui-public/entities-plugins-icon";
|
|
22
22
|
import { PluginIcon as ij, getPluginIconURL as oj } from "@kong-ui-public/entities-plugins-icon";
|
|
@@ -1109,7 +1109,7 @@ const cv = [
|
|
|
1109
1109
|
[He.CUSTOM_PLUGINS]: !1
|
|
1110
1110
|
};
|
|
1111
1111
|
var yi = /* @__PURE__ */ ((e) => (e.SERVICE = "service_id", e.ROUTE = "route_id", e.CONSUMER = "consumer_id", e.CONSUMER_GROUP = "consumer_group_id", e))(yi || {});
|
|
1112
|
-
const
|
|
1112
|
+
const zn = (e) => {
|
|
1113
1113
|
const t = Object.fromEntries(e.fields.map((n) => Object.entries(n)[0]));
|
|
1114
1114
|
return "id" in t || (t.id = {}), t;
|
|
1115
1115
|
}, li = {
|
|
@@ -1151,7 +1151,7 @@ const Un = (e) => {
|
|
|
1151
1151
|
};
|
|
1152
1152
|
}
|
|
1153
1153
|
}, Ti = {
|
|
1154
|
-
getColumnFields:
|
|
1154
|
+
getColumnFields: zn,
|
|
1155
1155
|
tags: li,
|
|
1156
1156
|
id: fv,
|
|
1157
1157
|
enabled: pv,
|
|
@@ -1296,7 +1296,7 @@ const Un = (e) => {
|
|
|
1296
1296
|
value: "current-cp",
|
|
1297
1297
|
label: l("custom_field.key_auth_identity_realms.cp_label"),
|
|
1298
1298
|
group: l("custom_field.key_auth_identity_realms.cp_group_label")
|
|
1299
|
-
}, c = it(ta), { axiosInstance: d } =
|
|
1299
|
+
}, c = it(ta), { axiosInstance: d } = Kn(c == null ? void 0 : c.axiosRequestConfig), f = () => {
|
|
1300
1300
|
if ((c == null ? void 0 : c.app) === "konnect") {
|
|
1301
1301
|
const b = /\b(us|eu|au|me|in)\b/.exec((c == null ? void 0 : c.apiBaseUrl) || "");
|
|
1302
1302
|
if (b)
|
|
@@ -2594,7 +2594,7 @@ const Un = (e) => {
|
|
|
2594
2594
|
nameKey: "plugins.meta.acl.credential_name",
|
|
2595
2595
|
endpoint: "/acls",
|
|
2596
2596
|
schemaEndpoint: "acls",
|
|
2597
|
-
fields:
|
|
2597
|
+
fields: zn(mu),
|
|
2598
2598
|
applyCredentialButtonText: "Add group to consumer"
|
|
2599
2599
|
},
|
|
2600
2600
|
"basic-auth": {
|
|
@@ -2604,7 +2604,7 @@ const Un = (e) => {
|
|
|
2604
2604
|
nameKey: "plugins.meta.basic-auth.credential_name",
|
|
2605
2605
|
endpoint: "/basic-auth",
|
|
2606
2606
|
schemaEndpoint: "basicauth_credentials",
|
|
2607
|
-
fields:
|
|
2607
|
+
fields: zn(gu)
|
|
2608
2608
|
},
|
|
2609
2609
|
"key-auth": {
|
|
2610
2610
|
titleKey: "plugins.meta.key-auth.name",
|
|
@@ -2613,7 +2613,7 @@ const Un = (e) => {
|
|
|
2613
2613
|
nameKey: "plugins.meta.key-auth.credential_name",
|
|
2614
2614
|
endpoint: "/key-auth",
|
|
2615
2615
|
schemaEndpoint: "keyauth_credentials",
|
|
2616
|
-
fields:
|
|
2616
|
+
fields: zn(hu)
|
|
2617
2617
|
},
|
|
2618
2618
|
"key-auth-enc": {
|
|
2619
2619
|
titleKey: "plugins.meta.key-auth-enc.name",
|
|
@@ -2622,7 +2622,7 @@ const Un = (e) => {
|
|
|
2622
2622
|
nameKey: "plugins.meta.key-auth-enc.credential_name",
|
|
2623
2623
|
endpoint: "/key-auth-enc",
|
|
2624
2624
|
schemaEndpoint: "keyauth_enc_credentials",
|
|
2625
|
-
fields:
|
|
2625
|
+
fields: zn(_u)
|
|
2626
2626
|
},
|
|
2627
2627
|
oauth2: {
|
|
2628
2628
|
titleKey: "plugins.meta.oauth2.name",
|
|
@@ -2631,7 +2631,7 @@ const Un = (e) => {
|
|
|
2631
2631
|
nameKey: "plugins.meta.oauth2.credential_name",
|
|
2632
2632
|
endpoint: "/oauth2",
|
|
2633
2633
|
schemaEndpoint: "oauth2_credentials",
|
|
2634
|
-
fields:
|
|
2634
|
+
fields: zn(yu)
|
|
2635
2635
|
},
|
|
2636
2636
|
"hmac-auth": {
|
|
2637
2637
|
titleKey: "plugins.meta.hmac-auth.name",
|
|
@@ -2640,7 +2640,7 @@ const Un = (e) => {
|
|
|
2640
2640
|
nameKey: "plugins.meta.hmac-auth.credential_name",
|
|
2641
2641
|
endpoint: "/hmac-auth",
|
|
2642
2642
|
schemaEndpoint: "hmacauth_credentials",
|
|
2643
|
-
fields:
|
|
2643
|
+
fields: zn(vu)
|
|
2644
2644
|
},
|
|
2645
2645
|
jwt: {
|
|
2646
2646
|
titleKey: "plugins.meta.jwt.name",
|
|
@@ -3348,12 +3348,12 @@ var py = "[object Null]", my = "[object Undefined]", wu = jt ? jt.toStringTag :
|
|
|
3348
3348
|
function ui(e) {
|
|
3349
3349
|
return e == null ? e === void 0 ? my : py : wu && wu in Object(e) ? uy(e) : fy(e);
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3351
|
+
function kn(e) {
|
|
3352
3352
|
return e != null && typeof e == "object";
|
|
3353
3353
|
}
|
|
3354
3354
|
var gy = "[object Symbol]";
|
|
3355
3355
|
function al(e) {
|
|
3356
|
-
return typeof e == "symbol" ||
|
|
3356
|
+
return typeof e == "symbol" || kn(e) && ui(e) == gy;
|
|
3357
3357
|
}
|
|
3358
3358
|
function cf(e, t) {
|
|
3359
3359
|
for (var n = -1, i = e == null ? 0 : e.length, o = Array(i); ++n < i; )
|
|
@@ -3551,12 +3551,12 @@ function Zy(e, t) {
|
|
|
3551
3551
|
}
|
|
3552
3552
|
var Jy = "[object Arguments]";
|
|
3553
3553
|
function Au(e) {
|
|
3554
|
-
return
|
|
3554
|
+
return kn(e) && ui(e) == Jy;
|
|
3555
3555
|
}
|
|
3556
3556
|
var pf = Object.prototype, Qy = pf.hasOwnProperty, e_ = pf.propertyIsEnumerable, oa = Au(/* @__PURE__ */ function() {
|
|
3557
3557
|
return arguments;
|
|
3558
3558
|
}()) ? Au : function(e) {
|
|
3559
|
-
return
|
|
3559
|
+
return kn(e) && Qy.call(e, "callee") && !e_.call(e, "callee");
|
|
3560
3560
|
};
|
|
3561
3561
|
function t_() {
|
|
3562
3562
|
return !1;
|
|
@@ -3565,7 +3565,7 @@ var mf = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
3565
3565
|
Qe[__] = Qe[b_] = Qe[w_] = Qe[E_] = Qe[k_] = Qe[C_] = Qe[S_] = Qe[x_] = Qe[A_] = !0;
|
|
3566
3566
|
Qe[o_] = Qe[r_] = Qe[v_] = Qe[a_] = Qe[y_] = Qe[s_] = Qe[l_] = Qe[u_] = Qe[c_] = Qe[d_] = Qe[f_] = Qe[p_] = Qe[m_] = Qe[g_] = Qe[h_] = !1;
|
|
3567
3567
|
function I_(e) {
|
|
3568
|
-
return
|
|
3568
|
+
return kn(e) && cl(e.length) && !!Qe[ui(e)];
|
|
3569
3569
|
}
|
|
3570
3570
|
function fl(e) {
|
|
3571
3571
|
return function(t) {
|
|
@@ -3699,23 +3699,23 @@ function rb(e, t) {
|
|
|
3699
3699
|
var n = this.__data__, i = ra(n, e);
|
|
3700
3700
|
return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
|
|
3701
3701
|
}
|
|
3702
|
-
function
|
|
3702
|
+
function An(e) {
|
|
3703
3703
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3704
3704
|
for (this.clear(); ++t < n; ) {
|
|
3705
3705
|
var i = e[t];
|
|
3706
3706
|
this.set(i[0], i[1]);
|
|
3707
3707
|
}
|
|
3708
3708
|
}
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3709
|
+
An.prototype.clear = Q_;
|
|
3710
|
+
An.prototype.delete = nb;
|
|
3711
|
+
An.prototype.get = ib;
|
|
3712
|
+
An.prototype.has = ob;
|
|
3713
|
+
An.prototype.set = rb;
|
|
3714
3714
|
var Ao = di(dn, "Map");
|
|
3715
3715
|
function ab() {
|
|
3716
3716
|
this.size = 0, this.__data__ = {
|
|
3717
3717
|
hash: new ni(),
|
|
3718
|
-
map: new (Ao ||
|
|
3718
|
+
map: new (Ao || An)(),
|
|
3719
3719
|
string: new ni()
|
|
3720
3720
|
};
|
|
3721
3721
|
}
|
|
@@ -3741,18 +3741,18 @@ function db(e, t) {
|
|
|
3741
3741
|
var n = aa(this, e), i = n.size;
|
|
3742
3742
|
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
3743
3743
|
}
|
|
3744
|
-
function
|
|
3744
|
+
function In(e) {
|
|
3745
3745
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3746
3746
|
for (this.clear(); ++t < n; ) {
|
|
3747
3747
|
var i = e[t];
|
|
3748
3748
|
this.set(i[0], i[1]);
|
|
3749
3749
|
}
|
|
3750
3750
|
}
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3751
|
+
In.prototype.clear = ab;
|
|
3752
|
+
In.prototype.delete = lb;
|
|
3753
|
+
In.prototype.get = ub;
|
|
3754
|
+
In.prototype.has = cb;
|
|
3755
|
+
In.prototype.set = db;
|
|
3756
3756
|
var fb = "Expected a function";
|
|
3757
3757
|
function hl(e, t) {
|
|
3758
3758
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
@@ -3764,9 +3764,9 @@ function hl(e, t) {
|
|
|
3764
3764
|
var a = e.apply(this, i);
|
|
3765
3765
|
return n.cache = r.set(o, a) || r, a;
|
|
3766
3766
|
};
|
|
3767
|
-
return n.cache = new (hl.Cache ||
|
|
3767
|
+
return n.cache = new (hl.Cache || In)(), n;
|
|
3768
3768
|
}
|
|
3769
|
-
hl.Cache =
|
|
3769
|
+
hl.Cache = In;
|
|
3770
3770
|
var pb = 500;
|
|
3771
3771
|
function mb(e) {
|
|
3772
3772
|
var t = hl(e, function(i) {
|
|
@@ -3828,7 +3828,7 @@ function bf(e) {
|
|
|
3828
3828
|
}
|
|
3829
3829
|
var _l = vf(Object.getPrototypeOf, Object), wb = "[object Object]", Eb = Function.prototype, kb = Object.prototype, wf = Eb.toString, Cb = kb.hasOwnProperty, Sb = wf.call(Object);
|
|
3830
3830
|
function xb(e) {
|
|
3831
|
-
if (!
|
|
3831
|
+
if (!kn(e) || ui(e) != wb)
|
|
3832
3832
|
return !1;
|
|
3833
3833
|
var t = _l(e);
|
|
3834
3834
|
if (t === null)
|
|
@@ -3873,7 +3873,7 @@ function Qb(e) {
|
|
|
3873
3873
|
return Jb(sa(e).toLowerCase());
|
|
3874
3874
|
}
|
|
3875
3875
|
function e0() {
|
|
3876
|
-
this.__data__ = new
|
|
3876
|
+
this.__data__ = new An(), this.size = 0;
|
|
3877
3877
|
}
|
|
3878
3878
|
function t0(e) {
|
|
3879
3879
|
var t = this.__data__, n = t.delete(e);
|
|
@@ -3888,23 +3888,23 @@ function i0(e) {
|
|
|
3888
3888
|
var o0 = 200;
|
|
3889
3889
|
function r0(e, t) {
|
|
3890
3890
|
var n = this.__data__;
|
|
3891
|
-
if (n instanceof
|
|
3891
|
+
if (n instanceof An) {
|
|
3892
3892
|
var i = n.__data__;
|
|
3893
3893
|
if (!Ao || i.length < o0 - 1)
|
|
3894
3894
|
return i.push([e, t]), this.size = ++n.size, this;
|
|
3895
|
-
n = this.__data__ = new
|
|
3895
|
+
n = this.__data__ = new In(i);
|
|
3896
3896
|
}
|
|
3897
3897
|
return n.set(e, t), this.size = n.size, this;
|
|
3898
3898
|
}
|
|
3899
|
-
function
|
|
3900
|
-
var t = this.__data__ = new
|
|
3899
|
+
function wn(e) {
|
|
3900
|
+
var t = this.__data__ = new An(e);
|
|
3901
3901
|
this.size = t.size;
|
|
3902
3902
|
}
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3903
|
+
wn.prototype.clear = e0;
|
|
3904
|
+
wn.prototype.delete = t0;
|
|
3905
|
+
wn.prototype.get = n0;
|
|
3906
|
+
wn.prototype.has = i0;
|
|
3907
|
+
wn.prototype.set = r0;
|
|
3908
3908
|
function a0(e, t) {
|
|
3909
3909
|
return e && Vo(t, ml(t), e);
|
|
3910
3910
|
}
|
|
@@ -4038,11 +4038,11 @@ function X0(e) {
|
|
|
4038
4038
|
}
|
|
4039
4039
|
var Z0 = "[object Map]";
|
|
4040
4040
|
function J0(e) {
|
|
4041
|
-
return
|
|
4041
|
+
return kn(e) && Kt(e) == Z0;
|
|
4042
4042
|
}
|
|
4043
4043
|
var qu = $i && $i.isMap, Q0 = qu ? fl(qu) : J0, ew = "[object Set]";
|
|
4044
4044
|
function tw(e) {
|
|
4045
|
-
return
|
|
4045
|
+
return kn(e) && Kt(e) == ew;
|
|
4046
4046
|
}
|
|
4047
4047
|
var zu = $i && $i.isSet, nw = zu ? fl(zu) : tw, iw = 1, ow = 2, rw = 4, Ff = "[object Arguments]", aw = "[object Array]", sw = "[object Boolean]", lw = "[object Date]", uw = "[object Error]", Rf = "[object Function]", cw = "[object GeneratorFunction]", dw = "[object Map]", fw = "[object Number]", Df = "[object Object]", pw = "[object RegExp]", mw = "[object Set]", gw = "[object String]", hw = "[object Symbol]", vw = "[object WeakMap]", yw = "[object ArrayBuffer]", _w = "[object DataView]", bw = "[object Float32Array]", ww = "[object Float64Array]", Ew = "[object Int8Array]", kw = "[object Int16Array]", Cw = "[object Int32Array]", Sw = "[object Uint8Array]", xw = "[object Uint8ClampedArray]", Aw = "[object Uint16Array]", Iw = "[object Uint32Array]", Je = {};
|
|
4048
4048
|
Je[Ff] = Je[aw] = Je[yw] = Je[_w] = Je[sw] = Je[lw] = Je[bw] = Je[ww] = Je[Ew] = Je[kw] = Je[Cw] = Je[dw] = Je[fw] = Je[Df] = Je[pw] = Je[mw] = Je[gw] = Je[hw] = Je[Sw] = Je[xw] = Je[Aw] = Je[Iw] = !0;
|
|
@@ -4070,7 +4070,7 @@ function yo(e, t, n, i, o, r) {
|
|
|
4070
4070
|
a = W0(e, d, s);
|
|
4071
4071
|
}
|
|
4072
4072
|
}
|
|
4073
|
-
r || (r = new
|
|
4073
|
+
r || (r = new wn());
|
|
4074
4074
|
var m = r.get(e);
|
|
4075
4075
|
if (m)
|
|
4076
4076
|
return m;
|
|
@@ -4097,7 +4097,7 @@ function Pw(e) {
|
|
|
4097
4097
|
}
|
|
4098
4098
|
function $r(e) {
|
|
4099
4099
|
var t = -1, n = e == null ? 0 : e.length;
|
|
4100
|
-
for (this.__data__ = new
|
|
4100
|
+
for (this.__data__ = new In(); ++t < n; )
|
|
4101
4101
|
this.add(e[t]);
|
|
4102
4102
|
}
|
|
4103
4103
|
$r.prototype.add = $r.prototype.push = Ow;
|
|
@@ -4236,18 +4236,18 @@ function a1(e, t, n, i, o, r) {
|
|
|
4236
4236
|
a = !0, c = !1;
|
|
4237
4237
|
}
|
|
4238
4238
|
if (f && !c)
|
|
4239
|
-
return r || (r = new
|
|
4239
|
+
return r || (r = new wn()), a || pl(e) ? Lf(e, t, n, i, o, r) : Qw(e, t, l, n, i, o, r);
|
|
4240
4240
|
if (!(n & o1)) {
|
|
4241
4241
|
var m = c && Yu.call(e, "__wrapped__"), h = d && Yu.call(t, "__wrapped__");
|
|
4242
4242
|
if (m || h) {
|
|
4243
4243
|
var v = m ? e.value() : e, g = h ? t.value() : t;
|
|
4244
|
-
return r || (r = new
|
|
4244
|
+
return r || (r = new wn()), o(v, g, n, i, r);
|
|
4245
4245
|
}
|
|
4246
4246
|
}
|
|
4247
|
-
return f ? (r || (r = new
|
|
4247
|
+
return f ? (r || (r = new wn()), i1(e, t, n, i, o, r)) : !1;
|
|
4248
4248
|
}
|
|
4249
4249
|
function Kf(e, t, n, i, o) {
|
|
4250
|
-
return e === t ? !0 : e == null || t == null || !
|
|
4250
|
+
return e === t ? !0 : e == null || t == null || !kn(e) && !kn(t) ? e !== e && t !== t : a1(e, t, n, i, Kf, o);
|
|
4251
4251
|
}
|
|
4252
4252
|
function s1(e, t) {
|
|
4253
4253
|
return e != null && t in Object(e);
|
|
@@ -5229,7 +5229,7 @@ function Lt(e) {
|
|
|
5229
5229
|
};
|
|
5230
5230
|
}
|
|
5231
5231
|
function zo(e) {
|
|
5232
|
-
const { getSchema: t } = rt(), n =
|
|
5232
|
+
const { getSchema: t } = rt(), n = Ln();
|
|
5233
5233
|
return M(() => {
|
|
5234
5234
|
var o;
|
|
5235
5235
|
if (n["data-autofocus"] !== void 0)
|
|
@@ -5241,46 +5241,26 @@ function zo(e) {
|
|
|
5241
5241
|
});
|
|
5242
5242
|
}
|
|
5243
5243
|
function tp(e, t) {
|
|
5244
|
-
const n =
|
|
5244
|
+
const n = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map();
|
|
5245
5245
|
function o() {
|
|
5246
5246
|
return ua(`${e}-`);
|
|
5247
5247
|
}
|
|
5248
|
-
function r(s) {
|
|
5249
|
-
if (
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
return
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
return n.get(u);
|
|
5263
|
-
if (i.has(l)) {
|
|
5264
|
-
const d = i.get(l);
|
|
5265
|
-
return n.set(u, d), d;
|
|
5266
|
-
}
|
|
5267
|
-
const c = o();
|
|
5268
|
-
return n.set(u, c), i.set(l, c), c;
|
|
5269
|
-
}
|
|
5270
|
-
return Te(t, (s) => {
|
|
5271
|
-
const l = Oe(s), u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
|
5272
|
-
l.forEach((d, f) => {
|
|
5273
|
-
if (d != null && typeof d == "object") {
|
|
5274
|
-
const m = r(d);
|
|
5275
|
-
u.add(m);
|
|
5276
|
-
}
|
|
5277
|
-
c.add(f);
|
|
5278
|
-
}), Array.from(n.keys()).forEach((d) => {
|
|
5279
|
-
u.has(d) || n.delete(d);
|
|
5280
|
-
}), Array.from(i.keys()).forEach((d) => {
|
|
5281
|
-
c.has(d) || i.delete(d);
|
|
5248
|
+
function r(a, s) {
|
|
5249
|
+
if (a == null || typeof a != "object")
|
|
5250
|
+
return `${e}-${s}`;
|
|
5251
|
+
if (n.has(a))
|
|
5252
|
+
return n.get(a);
|
|
5253
|
+
const l = i.has(s) ? i.get(s) : o();
|
|
5254
|
+
return i.set(s, l), n.set(a, l), l;
|
|
5255
|
+
}
|
|
5256
|
+
return Te(t, (a) => {
|
|
5257
|
+
const s = Oe(a), l = /* @__PURE__ */ new Set();
|
|
5258
|
+
s.forEach((u, c) => {
|
|
5259
|
+
l.add(c);
|
|
5260
|
+
}), Array.from(i.keys()).forEach((u) => {
|
|
5261
|
+
l.has(u) || i.delete(u);
|
|
5282
5262
|
});
|
|
5283
|
-
}, { immediate: !0, deep: !0 }), { getKey:
|
|
5263
|
+
}, { immediate: !0, deep: !0 }), { getKey: r };
|
|
5284
5264
|
}
|
|
5285
5265
|
const tE = "__request_callout_";
|
|
5286
5266
|
function np() {
|
|
@@ -5312,7 +5292,7 @@ const oi = /* @__PURE__ */ ve({
|
|
|
5312
5292
|
qe(Gt(), (d, f) => ({
|
|
5313
5293
|
name: f,
|
|
5314
5294
|
fn: F((m) => [
|
|
5315
|
-
Me(u.$slots, f, un(
|
|
5295
|
+
Me(u.$slots, f, un(En(m)))
|
|
5316
5296
|
])
|
|
5317
5297
|
}))
|
|
5318
5298
|
]), 1040, ["model-value", "resizable"]));
|
|
@@ -5339,7 +5319,7 @@ const oi = /* @__PURE__ */ ve({
|
|
|
5339
5319
|
},
|
|
5340
5320
|
emits: ["update:modelValue"],
|
|
5341
5321
|
setup(e, { emit: t }) {
|
|
5342
|
-
const n =
|
|
5322
|
+
const n = Ln(), { i18n: i } = Ue(), o = Yt(e, ["showVaultSecretPicker", "showPasswordMaskToggle", "name"]), r = t, { value: a, ...s } = Lt(Le(() => e.name)), l = Wt(s.path, Le({ ...o, ...n })), u = a == null ? void 0 : a.value;
|
|
5343
5323
|
function c(y) {
|
|
5344
5324
|
u !== void 0 && y === "" && y !== u ? (a.value = null, r("update:modelValue", null)) : (a.value = y.trim(), r("update:modelValue", y.trim()));
|
|
5345
5325
|
}
|
|
@@ -5558,7 +5538,7 @@ const oi = /* @__PURE__ */ ve({
|
|
|
5558
5538
|
}
|
|
5559
5539
|
return Te(f, (g) => {
|
|
5560
5540
|
e.collapsible && (s.value = g);
|
|
5561
|
-
}),
|
|
5541
|
+
}), xn(() => {
|
|
5562
5542
|
a.value = !!(n != null && n.value);
|
|
5563
5543
|
}), (g, y) => {
|
|
5564
5544
|
var _;
|
|
@@ -5785,7 +5765,7 @@ const oi = /* @__PURE__ */ ve({
|
|
|
5785
5765
|
}
|
|
5786
5766
|
}), an = /* @__PURE__ */ Fe(vE, [["__scopeId", "data-v-8b105573"]]);
|
|
5787
5767
|
function Il(e, t, n = !0) {
|
|
5788
|
-
const { value: i, ...o } = Lt(Le(e, "name")), r = Wt(o.path, Le({ ...e, ...
|
|
5768
|
+
const { value: i, ...o } = Lt(Le(e, "name")), r = Wt(o.path, Le({ ...e, ...Ln() })), a = oe(u(
|
|
5789
5769
|
e.initialValue ?? Oe(i) ?? {},
|
|
5790
5770
|
e.keyOrder
|
|
5791
5771
|
));
|
|
@@ -6050,7 +6030,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
6050
6030
|
},
|
|
6051
6031
|
emits: ["update:modelValue"],
|
|
6052
6032
|
setup(e, { emit: t }) {
|
|
6053
|
-
const n =
|
|
6033
|
+
const n = Ln(), i = Yt(e, ["name"]), o = t, { value: r, ...a } = Lt(Le(() => e.name)), s = Wt(a.path, Le({ ...i, ...n })), l = M(() => {
|
|
6054
6034
|
var v, g;
|
|
6055
6035
|
return ((g = (v = a.schema) == null ? void 0 : v.value) == null ? void 0 : g.len_min) && a.schema.value.len_min > 0;
|
|
6056
6036
|
}), u = oe("");
|
|
@@ -6112,7 +6092,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
6112
6092
|
},
|
|
6113
6093
|
emits: ["update:modelValue"],
|
|
6114
6094
|
setup(e, { emit: t }) {
|
|
6115
|
-
const n =
|
|
6095
|
+
const n = Ln(), i = Yt(e, ["name"]), o = t, { value: r, ...a } = Lt(Le(() => e.name)), s = Wt(a.path, Le({ ...i, ...n })), l = oe("");
|
|
6116
6096
|
function u(f) {
|
|
6117
6097
|
l.value = f;
|
|
6118
6098
|
let m = f || null;
|
|
@@ -6189,7 +6169,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
6189
6169
|
},
|
|
6190
6170
|
emits: ["update:modelValue"],
|
|
6191
6171
|
setup(e, { emit: t }) {
|
|
6192
|
-
const n =
|
|
6172
|
+
const n = Ln(), { i18n: { t: i } } = Ue(), o = Yt(e, ["showPasswordMaskToggle", "name"]), r = t, { value: a, ...s } = Lt(Le(() => e.name));
|
|
6193
6173
|
if (s.error)
|
|
6194
6174
|
throw new Error(s.error.message);
|
|
6195
6175
|
const l = Wt(s.path, Le({ ...o, ...n })), u = a.value ? a.value.id : null, c = M(() => {
|
|
@@ -6305,7 +6285,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
6305
6285
|
il((N) => ({
|
|
6306
6286
|
"3e1c9ee2": x.value
|
|
6307
6287
|
}));
|
|
6308
|
-
const n = e, i = t, { i18n: { t: o } } = Ue(), { getDefault: r, getSchema: a } = rt(), { value: s, ...l } = Lt(Le(n, "name")), u = Wt(l.path, Le({ ...n, ...
|
|
6288
|
+
const n = e, i = t, { i18n: { t: o } } = Ue(), { getDefault: r, getSchema: a } = rt(), { value: s, ...l } = Lt(Le(n, "name")), u = Wt(l.path, Le({ ...n, ...Ln() })), c = M(() => {
|
|
6309
6289
|
if (!l.path) throw new Error("Field path is required for sub-schema retrieval");
|
|
6310
6290
|
const N = a(l.path.value);
|
|
6311
6291
|
if (!N) throw new Error(`Schema not found for path: ${l.path.value}`);
|
|
@@ -6603,7 +6583,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
6603
6583
|
}) : m;
|
|
6604
6584
|
});
|
|
6605
6585
|
let l = !1;
|
|
6606
|
-
const u =
|
|
6586
|
+
const u = Wn({});
|
|
6607
6587
|
ot(Wf, u), ot(As, Bf(o, "default", Pi)), ot(Nr, /* @__PURE__ */ new Map()), ot(Zf, e.config ?? {}), Te(u, (m) => {
|
|
6608
6588
|
l && i("change", Oe(m));
|
|
6609
6589
|
}, { deep: !0, immediate: !0 });
|
|
@@ -6617,7 +6597,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
6617
6597
|
let h;
|
|
6618
6598
|
!m || !a(Oe(m)) ? h = r.getDefault() : h = Ni(Oe(m)), Ar((v = e.config) == null ? void 0 : v.prepareFormData) ? d(e.config.prepareFormData(h)) : d(h), l = !0;
|
|
6619
6599
|
}
|
|
6620
|
-
return
|
|
6600
|
+
return xn(() => {
|
|
6621
6601
|
f(e.data);
|
|
6622
6602
|
}), Te(() => e.data, (m) => {
|
|
6623
6603
|
f(m);
|
|
@@ -6903,9 +6883,9 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
6903
6883
|
},
|
|
6904
6884
|
setup(e) {
|
|
6905
6885
|
const t = e, n = Gt();
|
|
6906
|
-
return ot(Hi, n == null ? void 0 : n[Xn]), (i, o) => (E(), H($l, un(
|
|
6886
|
+
return ot(Hi, n == null ? void 0 : n[Xn]), (i, o) => (E(), H($l, un(En(t)), {
|
|
6907
6887
|
default: F((r) => [
|
|
6908
|
-
P(HE, un(
|
|
6888
|
+
P(HE, un(En(r)), null, 16)
|
|
6909
6889
|
]),
|
|
6910
6890
|
_: 1
|
|
6911
6891
|
}, 16));
|
|
@@ -6932,7 +6912,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
6932
6912
|
appearance: "danger",
|
|
6933
6913
|
message: p(r).error.message
|
|
6934
6914
|
}, null, 8, ["message"])) : (E(), te("div", ZE, [
|
|
6935
|
-
P(f, un(
|
|
6915
|
+
P(f, un(En(p(a).labelAttributes)), et({
|
|
6936
6916
|
default: F(() => [
|
|
6937
6917
|
De(he(p(a).label) + " ", 1)
|
|
6938
6918
|
]),
|
|
@@ -7436,7 +7416,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
7436
7416
|
}, Y = M(() => {
|
|
7437
7417
|
const J = (O.value || []).map((Z) => ({ label: Z.id, name: Z.name, value: Z.id, type: Z.type, tag: j1(Z) })).filter((Z) => Z.type === "redis-ce" || Z.type === "redis-ee");
|
|
7438
7418
|
return l !== "all" ? J.filter((Z) => Z.type === l) : J;
|
|
7439
|
-
}), { axiosInstance: T } =
|
|
7419
|
+
}), { axiosInstance: T } = Kn(_ == null ? void 0 : _.axiosRequestConfig), re = () => {
|
|
7440
7420
|
f.value ? (g.value && (y.value = g.value, h.value = g.value[0].id, b.value = void 0), b != null && b.value && (v.value = b.value)) : (Object.keys(v.value).length && (b.value = v.value), y != null && y.value && (g.value = y.value), y.value = a ? null : void 0);
|
|
7441
7421
|
}, $ = (J) => {
|
|
7442
7422
|
N(), n("globalAction", "notify", J);
|
|
@@ -7458,7 +7438,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
7458
7438
|
};
|
|
7459
7439
|
return Te(() => f.value, () => {
|
|
7460
7440
|
re();
|
|
7461
|
-
}),
|
|
7441
|
+
}), xn(() => {
|
|
7462
7442
|
var J;
|
|
7463
7443
|
if (N(), o.defaultRedisConfigItem || y != null && y.value) {
|
|
7464
7444
|
const Z = o.defaultRedisConfigItem || ((J = y == null ? void 0 : y.value) == null ? void 0 : J[0].id);
|
|
@@ -7672,7 +7652,7 @@ const yE = ["data-testid"], _E = ["data-testid"], bE = ["innerHTML"], wE = ["dat
|
|
|
7672
7652
|
emits: ["globalAction"],
|
|
7673
7653
|
setup(e) {
|
|
7674
7654
|
const t = e, n = Gt();
|
|
7675
|
-
return ot(Hi, n == null ? void 0 : n[Xn]), (i, o) => (E(), H($l, un(
|
|
7655
|
+
return ot(Hi, n == null ? void 0 : n[Xn]), (i, o) => (E(), H($l, un(En(t)), {
|
|
7676
7656
|
default: F((r) => [
|
|
7677
7657
|
P(Wk, ze(r, {
|
|
7678
7658
|
onGlobalAction: o[0] || (o[0] = (...a) => i.$emit("globalAction", ...a))
|
|
@@ -8421,7 +8401,7 @@ var Ap = new bt("tag:yaml.org,2002:set", {
|
|
|
8421
8401
|
xp,
|
|
8422
8402
|
Ap
|
|
8423
8403
|
]
|
|
8424
|
-
}),
|
|
8404
|
+
}), Fn = Object.prototype.hasOwnProperty, Or = 1, Ip = 2, Tp = 3, Pr = 4, Va = 1, nS = 2, ac = 3, iS = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, oS = /[\x85\u2028\u2029]/, rS = /[,\[\]\{\}]/, $p = /^(?:!|!!|![a-z\-]+!)$/i, Np = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
8425
8405
|
function sc(e) {
|
|
8426
8406
|
return Object.prototype.toString.call(e);
|
|
8427
8407
|
}
|
|
@@ -8487,7 +8467,7 @@ var uc = {
|
|
|
8487
8467
|
},
|
|
8488
8468
|
TAG: function(t, n, i) {
|
|
8489
8469
|
var o, r;
|
|
8490
|
-
i.length !== 2 && Pe(t, "TAG directive accepts exactly two arguments"), o = i[0], r = i[1], $p.test(o) || Pe(t, "ill-formed tag handle (first argument) of the TAG directive"),
|
|
8470
|
+
i.length !== 2 && Pe(t, "TAG directive accepts exactly two arguments"), o = i[0], r = i[1], $p.test(o) || Pe(t, "ill-formed tag handle (first argument) of the TAG directive"), Fn.call(t.tagMap, o) && Pe(t, 'there is a previously declared suffix for "' + o + '" tag handle'), Np.test(r) || Pe(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
8491
8471
|
try {
|
|
8492
8472
|
r = decodeURIComponent(r);
|
|
8493
8473
|
} catch {
|
|
@@ -8496,7 +8476,7 @@ var uc = {
|
|
|
8496
8476
|
t.tagMap[o] = r;
|
|
8497
8477
|
}
|
|
8498
8478
|
};
|
|
8499
|
-
function
|
|
8479
|
+
function Mn(e, t, n, i) {
|
|
8500
8480
|
var o, r, a, s;
|
|
8501
8481
|
if (t < n) {
|
|
8502
8482
|
if (s = e.input.slice(t, n), i)
|
|
@@ -8509,7 +8489,7 @@ function Fn(e, t, n, i) {
|
|
|
8509
8489
|
function cc(e, t, n, i) {
|
|
8510
8490
|
var o, r, a, s;
|
|
8511
8491
|
for (gt.isObject(n) || Pe(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(n), a = 0, s = o.length; a < s; a += 1)
|
|
8512
|
-
r = o[a],
|
|
8492
|
+
r = o[a], Fn.call(t, r) || (t[r] = n[r], i[r] = !0);
|
|
8513
8493
|
}
|
|
8514
8494
|
function ki(e, t, n, i, o, r, a, s, l) {
|
|
8515
8495
|
var u, c;
|
|
@@ -8523,7 +8503,7 @@ function ki(e, t, n, i, o, r, a, s, l) {
|
|
|
8523
8503
|
else
|
|
8524
8504
|
cc(e, t, r, n);
|
|
8525
8505
|
else
|
|
8526
|
-
!e.json && !
|
|
8506
|
+
!e.json && !Fn.call(n, o) && Fn.call(t, o) && (e.line = a || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, Pe(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(t, o, {
|
|
8527
8507
|
configurable: !0,
|
|
8528
8508
|
enumerable: !0,
|
|
8529
8509
|
writable: !0,
|
|
@@ -8582,9 +8562,9 @@ function dS(e, t, n) {
|
|
|
8582
8562
|
break;
|
|
8583
8563
|
}
|
|
8584
8564
|
}
|
|
8585
|
-
s && (
|
|
8565
|
+
s && (Mn(e, r, a, !1), Ml(e, e.line - l), r = a = e.position, s = !1), Zn(m) || (a = e.position + 1), m = e.input.charCodeAt(++e.position);
|
|
8586
8566
|
}
|
|
8587
|
-
return
|
|
8567
|
+
return Mn(e, r, a, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
8588
8568
|
}
|
|
8589
8569
|
function fS(e, t) {
|
|
8590
8570
|
var n, i, o;
|
|
@@ -8592,11 +8572,11 @@ function fS(e, t) {
|
|
|
8592
8572
|
return !1;
|
|
8593
8573
|
for (e.kind = "scalar", e.result = "", e.position++, i = o = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
|
|
8594
8574
|
if (n === 39)
|
|
8595
|
-
if (
|
|
8575
|
+
if (Mn(e, i, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
|
|
8596
8576
|
i = e.position, e.position++, o = e.position;
|
|
8597
8577
|
else
|
|
8598
8578
|
return !0;
|
|
8599
|
-
else sn(n) ? (
|
|
8579
|
+
else sn(n) ? (Mn(e, i, o, !0), Ml(e, dt(e, !1, t)), i = o = e.position) : e.position === e.lineStart && fa(e) ? Pe(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
|
|
8600
8580
|
Pe(e, "unexpected end of the stream within a single quoted scalar");
|
|
8601
8581
|
}
|
|
8602
8582
|
function pS(e, t) {
|
|
@@ -8605,9 +8585,9 @@ function pS(e, t) {
|
|
|
8605
8585
|
return !1;
|
|
8606
8586
|
for (e.kind = "scalar", e.result = "", e.position++, n = i = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
8607
8587
|
if (s === 34)
|
|
8608
|
-
return
|
|
8588
|
+
return Mn(e, n, e.position, !0), e.position++, !0;
|
|
8609
8589
|
if (s === 92) {
|
|
8610
|
-
if (
|
|
8590
|
+
if (Mn(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), sn(s))
|
|
8611
8591
|
dt(e, !1, t);
|
|
8612
8592
|
else if (s < 256 && Op[s])
|
|
8613
8593
|
e.result += Pp[s], e.position++;
|
|
@@ -8618,7 +8598,7 @@ function pS(e, t) {
|
|
|
8618
8598
|
} else
|
|
8619
8599
|
Pe(e, "unknown escape sequence");
|
|
8620
8600
|
n = i = e.position;
|
|
8621
|
-
} else sn(s) ? (
|
|
8601
|
+
} else sn(s) ? (Mn(e, n, i, !0), Ml(e, dt(e, !1, t)), n = i = e.position) : e.position === e.lineStart && fa(e) ? Pe(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
8622
8602
|
}
|
|
8623
8603
|
Pe(e, "unexpected end of the stream within a double quoted scalar");
|
|
8624
8604
|
}
|
|
@@ -8680,7 +8660,7 @@ function gS(e, t) {
|
|
|
8680
8660
|
`, l) : e.result += gt.repeat(`
|
|
8681
8661
|
`, r ? 1 + l : l), r = !0, a = !0, l = 0, n = e.position; !sn(d) && d !== 0; )
|
|
8682
8662
|
d = e.input.charCodeAt(++e.position);
|
|
8683
|
-
|
|
8663
|
+
Mn(e, n, e.position, !1);
|
|
8684
8664
|
}
|
|
8685
8665
|
return !0;
|
|
8686
8666
|
}
|
|
@@ -8748,7 +8728,7 @@ function vS(e) {
|
|
|
8748
8728
|
} catch {
|
|
8749
8729
|
Pe(e, "tag name is malformed: " + r);
|
|
8750
8730
|
}
|
|
8751
|
-
return n ? e.tag = r :
|
|
8731
|
+
return n ? e.tag = r : Fn.call(e.tagMap, o) ? e.tag = e.tagMap[o] + r : o === "!" ? e.tag = "!" + r : o === "!!" ? e.tag = "tag:yaml.org,2002:" + r : Pe(e, 'undeclared tag handle "' + o + '"'), !0;
|
|
8752
8732
|
}
|
|
8753
8733
|
function yS(e) {
|
|
8754
8734
|
var t, n;
|
|
@@ -8762,7 +8742,7 @@ function _S(e) {
|
|
|
8762
8742
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
8763
8743
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !Ot(i) && !Ei(i); )
|
|
8764
8744
|
i = e.input.charCodeAt(++e.position);
|
|
8765
|
-
return e.position === t && Pe(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position),
|
|
8745
|
+
return e.position === t && Pe(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Fn.call(e.anchorMap, n) || Pe(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], dt(e, !0, -1), !0;
|
|
8766
8746
|
}
|
|
8767
8747
|
function Ri(e, t, n, i, o) {
|
|
8768
8748
|
var r, a, s, l = 1, u = !1, c = !1, d, f, m, h, v, g;
|
|
@@ -8778,7 +8758,7 @@ function Ri(e, t, n, i, o) {
|
|
|
8778
8758
|
break;
|
|
8779
8759
|
}
|
|
8780
8760
|
} else if (e.tag !== "!") {
|
|
8781
|
-
if (
|
|
8761
|
+
if (Fn.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
8782
8762
|
h = e.typeMap[e.kind || "fallback"][e.tag];
|
|
8783
8763
|
else
|
|
8784
8764
|
for (h = null, m = e.typeMap.multi[e.kind || "fallback"], d = 0, f = m.length; d < f; d += 1)
|
|
@@ -8809,7 +8789,7 @@ function bS(e) {
|
|
|
8809
8789
|
a = e.input.charCodeAt(++e.position);
|
|
8810
8790
|
o.push(e.input.slice(n, e.position));
|
|
8811
8791
|
}
|
|
8812
|
-
a !== 0 && Pl(e),
|
|
8792
|
+
a !== 0 && Pl(e), Fn.call(uc, i) ? uc[i](e, i, o) : Mr(e, 'unknown document directive "' + i + '"');
|
|
8813
8793
|
}
|
|
8814
8794
|
if (dt(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, dt(e, !0, -1)) : r && Pe(e, "directives end mark is expected"), Ri(e, e.lineIndent - 1, Pr, !1, !0), dt(e, !0, -1), e.checkLineBreaks && oS.test(e.input.slice(t, e.position)) && Mr(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && fa(e)) {
|
|
8815
8795
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, dt(e, !0, -1));
|
|
@@ -9056,19 +9036,19 @@ function QS(e) {
|
|
|
9056
9036
|
function ex(e, t, n) {
|
|
9057
9037
|
var i = "", o = e.tag, r, a, s;
|
|
9058
9038
|
for (r = 0, a = n.length; r < a; r += 1)
|
|
9059
|
-
s = n[r], e.replacer && (s = e.replacer.call(n, String(r), s)), (
|
|
9039
|
+
s = n[r], e.replacer && (s = e.replacer.call(n, String(r), s)), (Cn(e, t, s, !1, !1) || typeof s > "u" && Cn(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
9060
9040
|
e.tag = o, e.dump = "[" + i + "]";
|
|
9061
9041
|
}
|
|
9062
9042
|
function yc(e, t, n, i) {
|
|
9063
9043
|
var o = "", r = e.tag, a, s, l;
|
|
9064
9044
|
for (a = 0, s = n.length; a < s; a += 1)
|
|
9065
|
-
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (
|
|
9045
|
+
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (Cn(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && Cn(e, t + 1, null, !0, !0, !1, !0)) && ((!i || o !== "") && (o += Ns(e, t)), e.dump && To === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
9066
9046
|
e.tag = r, e.dump = o || "[]";
|
|
9067
9047
|
}
|
|
9068
9048
|
function tx(e, t, n) {
|
|
9069
9049
|
var i = "", o = e.tag, r = Object.keys(n), a, s, l, u, c;
|
|
9070
9050
|
for (a = 0, s = r.length; a < s; a += 1)
|
|
9071
|
-
c = "", i !== "" && (c += ", "), e.condenseFlow && (c += '"'), l = r[a], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)),
|
|
9051
|
+
c = "", i !== "" && (c += ", "), e.condenseFlow && (c += '"'), l = r[a], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Cn(e, t, l, !1, !1) && (e.dump.length > 1024 && (c += "? "), c += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Cn(e, t, u, !1, !1) && (c += e.dump, i += c));
|
|
9072
9052
|
e.tag = o, e.dump = "{" + i + "}";
|
|
9073
9053
|
}
|
|
9074
9054
|
function nx(e, t, n, i) {
|
|
@@ -9080,7 +9060,7 @@ function nx(e, t, n, i) {
|
|
|
9080
9060
|
else if (e.sortKeys)
|
|
9081
9061
|
throw new xt("sortKeys must be a boolean or a function");
|
|
9082
9062
|
for (s = 0, l = a.length; s < l; s += 1)
|
|
9083
|
-
f = "", (!i || o !== "") && (f += Ns(e, t)), u = a[s], c = n[u], e.replacer && (c = e.replacer.call(n, u, c)),
|
|
9063
|
+
f = "", (!i || o !== "") && (f += Ns(e, t)), u = a[s], c = n[u], e.replacer && (c = e.replacer.call(n, u, c)), Cn(e, t + 1, u, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && To === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += Ns(e, t)), Cn(e, t + 1, c, !0, d) && (e.dump && To === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, o += f));
|
|
9084
9064
|
e.tag = r, e.dump = o || "{}";
|
|
9085
9065
|
}
|
|
9086
9066
|
function _c(e, t, n) {
|
|
@@ -9100,7 +9080,7 @@ function _c(e, t, n) {
|
|
|
9100
9080
|
}
|
|
9101
9081
|
return !1;
|
|
9102
9082
|
}
|
|
9103
|
-
function
|
|
9083
|
+
function Cn(e, t, n, i, o, r, a) {
|
|
9104
9084
|
e.tag = null, e.dump = n, _c(e, n, !1) || _c(e, n, !0);
|
|
9105
9085
|
var s = Dp.call(e.dump), l = i, u;
|
|
9106
9086
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
@@ -9149,7 +9129,7 @@ function ox(e, t) {
|
|
|
9149
9129
|
var n = new HS(t);
|
|
9150
9130
|
n.noRefs || ix(e, n);
|
|
9151
9131
|
var i = e;
|
|
9152
|
-
return n.replacer && (i = n.replacer.call({ "": i }, "", i)),
|
|
9132
|
+
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), Cn(n, 0, i, !0, !0) ? n.dump + `
|
|
9153
9133
|
` : "";
|
|
9154
9134
|
}
|
|
9155
9135
|
var rx = ox, ax = {
|
|
@@ -9535,7 +9515,7 @@ function Di(e, t, n) {
|
|
|
9535
9515
|
if (n)
|
|
9536
9516
|
return e.fields[t].find((i) => i.name === n);
|
|
9537
9517
|
}
|
|
9538
|
-
function
|
|
9518
|
+
function On(e, t, n) {
|
|
9539
9519
|
if (n)
|
|
9540
9520
|
return e.fields[t].find((i) => i.id === n);
|
|
9541
9521
|
}
|
|
@@ -10049,7 +10029,7 @@ const [Vx, qx] = rf(
|
|
|
10049
10029
|
const ce = N(ke.source);
|
|
10050
10030
|
if (!ce)
|
|
10051
10031
|
continue;
|
|
10052
|
-
const Ne = (w =
|
|
10032
|
+
const Ne = (w = On(ce, "output", ke.sourceField)) == null ? void 0 : w.name, je = Ne ? `${ce.name}.${Ne}` : ce.name, be = (S = On(L, "input", ke.targetField)) == null ? void 0 : S.name;
|
|
10053
10033
|
be ? D[be] = je : ie === void 0 && (ie = je);
|
|
10054
10034
|
}
|
|
10055
10035
|
for (const ke of o.value.edges.filter((ce) => ce.source === L.id)) {
|
|
@@ -10059,7 +10039,7 @@ const [Vx, qx] = rf(
|
|
|
10059
10039
|
const Ne = ce.type;
|
|
10060
10040
|
if (!yn(Ne) || !((I = ma[Ne].io) != null && I.input))
|
|
10061
10041
|
continue;
|
|
10062
|
-
const je = (A =
|
|
10042
|
+
const je = (A = On(ce, "input", ke.targetField)) == null ? void 0 : A.name, be = je ? `${ce.name}.${je}` : ce.name, ye = (G = On(L, "output", ke.sourceField)) == null ? void 0 : G.name;
|
|
10063
10043
|
ye ? K[ye] = be : Q === void 0 && (Q = be);
|
|
10064
10044
|
}
|
|
10065
10045
|
const Ce = {
|
|
@@ -11498,10 +11478,10 @@ ql(Pt, js, vm(Ho, {
|
|
|
11498
11478
|
toString: Rc
|
|
11499
11479
|
}));
|
|
11500
11480
|
function Fc() {
|
|
11501
|
-
return `#${
|
|
11481
|
+
return `#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}`;
|
|
11502
11482
|
}
|
|
11503
11483
|
function eT() {
|
|
11504
|
-
return `#${
|
|
11484
|
+
return `#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}${Gn((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
11505
11485
|
}
|
|
11506
11486
|
function Rc() {
|
|
11507
11487
|
const e = Kr(this.opacity);
|
|
@@ -11513,7 +11493,7 @@ function Kr(e) {
|
|
|
11513
11493
|
function Jn(e) {
|
|
11514
11494
|
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
11515
11495
|
}
|
|
11516
|
-
function
|
|
11496
|
+
function Gn(e) {
|
|
11517
11497
|
return e = Jn(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
11518
11498
|
}
|
|
11519
11499
|
function Dc(e, t, n, i) {
|
|
@@ -12121,7 +12101,7 @@ function JT(e) {
|
|
|
12121
12101
|
for (var t = this._groups, n = t.length, i = new Array(n), o = 0; o < n; ++o)
|
|
12122
12102
|
for (var r = t[o], a = r.length, s = i[o] = [], l, u = 0; u < a; ++u)
|
|
12123
12103
|
(l = r[u]) && e.call(l, l.__data__, u, r) && s.push(l);
|
|
12124
|
-
return new
|
|
12104
|
+
return new Sn(i, this._parents, this._name, this._id);
|
|
12125
12105
|
}
|
|
12126
12106
|
function QT(e) {
|
|
12127
12107
|
if (e._id !== this._id)
|
|
@@ -12131,7 +12111,7 @@ function QT(e) {
|
|
|
12131
12111
|
(f = l[m] || u[m]) && (d[m] = f);
|
|
12132
12112
|
for (; s < i; ++s)
|
|
12133
12113
|
a[s] = t[s];
|
|
12134
|
-
return new
|
|
12114
|
+
return new Sn(a, this._parents, this._name, this._id);
|
|
12135
12115
|
}
|
|
12136
12116
|
function e$(e) {
|
|
12137
12117
|
return (e + "").trim().split(/^|\s+/).every(function(t) {
|
|
@@ -12168,7 +12148,7 @@ function r$(e) {
|
|
|
12168
12148
|
for (var i = this._groups, o = i.length, r = new Array(o), a = 0; a < o; ++a)
|
|
12169
12149
|
for (var s = i[a], l = s.length, u = r[a] = new Array(l), c, d, f = 0; f < l; ++f)
|
|
12170
12150
|
(c = s[f]) && (d = e.call(c, c.__data__, f, s)) && ("__data__" in c && (d.__data__ = c.__data__), u[f] = d, wa(u[f], t, n, f, u, Xt(c, n)));
|
|
12171
|
-
return new
|
|
12151
|
+
return new Sn(r, this._parents, t, n);
|
|
12172
12152
|
}
|
|
12173
12153
|
function a$(e) {
|
|
12174
12154
|
var t = this._name, n = this._id;
|
|
@@ -12180,7 +12160,7 @@ function a$(e) {
|
|
|
12180
12160
|
(m = f[v]) && wa(m, t, n, v, f, h);
|
|
12181
12161
|
r.push(f), a.push(c);
|
|
12182
12162
|
}
|
|
12183
|
-
return new
|
|
12163
|
+
return new Sn(r, a, t, n);
|
|
12184
12164
|
}
|
|
12185
12165
|
var s$ = Uo.prototype.constructor;
|
|
12186
12166
|
function l$() {
|
|
@@ -12295,7 +12275,7 @@ function k$() {
|
|
|
12295
12275
|
ease: c.ease
|
|
12296
12276
|
});
|
|
12297
12277
|
}
|
|
12298
|
-
return new
|
|
12278
|
+
return new Sn(i, this._parents, e, n);
|
|
12299
12279
|
}
|
|
12300
12280
|
function C$() {
|
|
12301
12281
|
var e, t, n = this, i = n._id, o = n.size();
|
|
@@ -12310,15 +12290,15 @@ function C$() {
|
|
|
12310
12290
|
});
|
|
12311
12291
|
}
|
|
12312
12292
|
var S$ = 0;
|
|
12313
|
-
function
|
|
12293
|
+
function Sn(e, t, n, i) {
|
|
12314
12294
|
this._groups = e, this._parents = t, this._name = n, this._id = i;
|
|
12315
12295
|
}
|
|
12316
12296
|
function Tm() {
|
|
12317
12297
|
return ++S$;
|
|
12318
12298
|
}
|
|
12319
12299
|
var mn = Uo.prototype;
|
|
12320
|
-
|
|
12321
|
-
constructor:
|
|
12300
|
+
Sn.prototype = {
|
|
12301
|
+
constructor: Sn,
|
|
12322
12302
|
select: r$,
|
|
12323
12303
|
selectAll: a$,
|
|
12324
12304
|
selectChild: mn.selectChild,
|
|
@@ -12367,11 +12347,11 @@ function I$(e, t) {
|
|
|
12367
12347
|
}
|
|
12368
12348
|
function T$(e) {
|
|
12369
12349
|
var t, n;
|
|
12370
|
-
e instanceof
|
|
12350
|
+
e instanceof Sn ? (t = e._id, e = e._name) : (t = Tm(), (n = A$).time = Ul(), e = e == null ? null : e + "");
|
|
12371
12351
|
for (var i = this._groups, o = i.length, r = 0; r < o; ++r)
|
|
12372
12352
|
for (var a = i[r], s = a.length, l, u = 0; u < s; ++u)
|
|
12373
12353
|
(l = a[u]) && wa(l, e, t, u, a, n || I$(l, t));
|
|
12374
|
-
return new
|
|
12354
|
+
return new Sn(i, this._parents, e, t);
|
|
12375
12355
|
}
|
|
12376
12356
|
Uo.prototype.interrupt = xT;
|
|
12377
12357
|
Uo.prototype.transition = T$;
|
|
@@ -12663,7 +12643,7 @@ function R$() {
|
|
|
12663
12643
|
return arguments.length ? (g = +$, y) : g;
|
|
12664
12644
|
}, y;
|
|
12665
12645
|
}
|
|
12666
|
-
var Ie = /* @__PURE__ */ ((e) => (e.Left = "left", e.Top = "top", e.Right = "right", e.Bottom = "bottom", e))(Ie || {}), Yl = /* @__PURE__ */ ((e) => (e.Partial = "partial", e.Full = "full", e))(Yl || {}),
|
|
12646
|
+
var Ie = /* @__PURE__ */ ((e) => (e.Left = "left", e.Top = "top", e.Right = "right", e.Bottom = "bottom", e))(Ie || {}), Yl = /* @__PURE__ */ ((e) => (e.Partial = "partial", e.Full = "full", e))(Yl || {}), Un = /* @__PURE__ */ ((e) => (e.Bezier = "default", e.SimpleBezier = "simple-bezier", e.Straight = "straight", e.Step = "step", e.SmoothStep = "smoothstep", e))(Un || {}), Rn = /* @__PURE__ */ ((e) => (e.Strict = "strict", e.Loose = "loose", e))(Rn || {}), zr = /* @__PURE__ */ ((e) => (e.Arrow = "arrow", e.ArrowClosed = "arrowclosed", e))(zr || {}), wo = /* @__PURE__ */ ((e) => (e.Free = "free", e.Vertical = "vertical", e.Horizontal = "horizontal", e))(wo || {}), $m = /* @__PURE__ */ ((e) => (e.TopLeft = "top-left", e.TopCenter = "top-center", e.TopRight = "top-right", e.BottomLeft = "bottom-left", e.BottomCenter = "bottom-center", e.BottomRight = "bottom-right", e))($m || {});
|
|
12667
12647
|
const D$ = ["INPUT", "SELECT", "TEXTAREA"], L$ = typeof document < "u" ? document : null;
|
|
12668
12648
|
function Hs(e) {
|
|
12669
12649
|
var t, n;
|
|
@@ -12779,11 +12759,11 @@ function Gc(e) {
|
|
|
12779
12759
|
const t = e.getRootNode();
|
|
12780
12760
|
return "elementFromPoint" in t ? t : window.document;
|
|
12781
12761
|
}
|
|
12782
|
-
function
|
|
12762
|
+
function Dn(e) {
|
|
12783
12763
|
return e && typeof e == "object" && "id" in e && "source" in e && "target" in e;
|
|
12784
12764
|
}
|
|
12785
12765
|
function Qn(e) {
|
|
12786
|
-
return e && typeof e == "object" && "id" in e && "position" in e && !
|
|
12766
|
+
return e && typeof e == "object" && "id" in e && "position" in e && !Dn(e);
|
|
12787
12767
|
}
|
|
12788
12768
|
function po(e) {
|
|
12789
12769
|
return Qn(e) && "computedPosition" in e;
|
|
@@ -12861,7 +12841,7 @@ function U$(...e) {
|
|
|
12861
12841
|
return Rm(r, a, s, "target");
|
|
12862
12842
|
}
|
|
12863
12843
|
const [t, n] = e, i = typeof t == "string" ? t : t.id;
|
|
12864
|
-
return n.filter((r) =>
|
|
12844
|
+
return n.filter((r) => Dn(r) && r.source === i).map((r) => n.find((a) => Qn(a) && a.id === r.target));
|
|
12865
12845
|
}
|
|
12866
12846
|
function H$(...e) {
|
|
12867
12847
|
if (e.length === 3) {
|
|
@@ -12869,14 +12849,14 @@ function H$(...e) {
|
|
|
12869
12849
|
return Rm(r, a, s, "source");
|
|
12870
12850
|
}
|
|
12871
12851
|
const [t, n] = e, i = typeof t == "string" ? t : t.id;
|
|
12872
|
-
return n.filter((r) =>
|
|
12852
|
+
return n.filter((r) => Dn(r) && r.target === i).map((r) => n.find((a) => Qn(a) && a.id === r.source));
|
|
12873
12853
|
}
|
|
12874
12854
|
function Dm({ source: e, sourceHandle: t, target: n, targetHandle: i }) {
|
|
12875
12855
|
return `vueflow__edge-${e}${t ?? ""}-${n}${i ?? ""}`;
|
|
12876
12856
|
}
|
|
12877
12857
|
function G$(e, t) {
|
|
12878
12858
|
return t.some(
|
|
12879
|
-
(n) =>
|
|
12859
|
+
(n) => Dn(n) && n.source === e.source && n.target === e.target && (n.sourceHandle === e.sourceHandle || !n.sourceHandle && !e.sourceHandle) && (n.targetHandle === e.targetHandle || !n.targetHandle && !e.targetHandle)
|
|
12880
12860
|
);
|
|
12881
12861
|
}
|
|
12882
12862
|
function Gs({ x: e, y: t }, { x: n, y: i, zoom: o }) {
|
|
@@ -13073,7 +13053,7 @@ function Xc(e, t) {
|
|
|
13073
13053
|
}
|
|
13074
13054
|
return t;
|
|
13075
13055
|
}
|
|
13076
|
-
function
|
|
13056
|
+
function $n(e, t) {
|
|
13077
13057
|
return {
|
|
13078
13058
|
id: e,
|
|
13079
13059
|
type: "select",
|
|
@@ -13102,11 +13082,11 @@ function Qc(e, t, n, i, o) {
|
|
|
13102
13082
|
type: "remove"
|
|
13103
13083
|
};
|
|
13104
13084
|
}
|
|
13105
|
-
function
|
|
13085
|
+
function Nn(e, t = /* @__PURE__ */ new Set(), n = !1) {
|
|
13106
13086
|
const i = [];
|
|
13107
13087
|
for (const [o, r] of e) {
|
|
13108
13088
|
const a = t.has(o);
|
|
13109
|
-
!(r.selected === void 0 && !a) && r.selected !== a && (n && (r.selected = a), i.push(
|
|
13089
|
+
!(r.selected === void 0 && !a) && r.selected !== a && (n && (r.selected = a), i.push($n(r.id, a)));
|
|
13110
13090
|
}
|
|
13111
13091
|
return i;
|
|
13112
13092
|
}
|
|
@@ -13435,7 +13415,7 @@ function id(e, {
|
|
|
13435
13415
|
targetHandle: m ? o : k
|
|
13436
13416
|
};
|
|
13437
13417
|
_.connection = B;
|
|
13438
|
-
const Y = N && O && (n ===
|
|
13418
|
+
const Y = N && O && (n === Rn.Strict ? m && C === "source" || !m && C === "target" : x !== i || k !== o);
|
|
13439
13419
|
_.isValid = Y && u(B, {
|
|
13440
13420
|
nodes: d,
|
|
13441
13421
|
edges: c,
|
|
@@ -13461,7 +13441,7 @@ function dN(e, t, n, i, o, r = !1) {
|
|
|
13461
13441
|
const u = i.get(e);
|
|
13462
13442
|
if (!u)
|
|
13463
13443
|
return null;
|
|
13464
|
-
const c = o ===
|
|
13444
|
+
const c = o === Rn.Strict ? (a = u.handleBounds) == null ? void 0 : a[t] : [...((s = u.handleBounds) == null ? void 0 : s.source) ?? [], ...((l = u.handleBounds) == null ? void 0 : l.target) ?? []], d = (n ? c == null ? void 0 : c.find((f) => f.id === n) : c == null ? void 0 : c[0]) ?? null;
|
|
13465
13445
|
return d && r ? { ...d, ...Bi(u, d, d.position, !0) } : d;
|
|
13466
13446
|
}
|
|
13467
13447
|
const Ys = {
|
|
@@ -13503,7 +13483,7 @@ function pN(e, t, n, i) {
|
|
|
13503
13483
|
if (!e || !e.source || !e.target)
|
|
13504
13484
|
return n(new ht(ft.EDGE_INVALID, (e == null ? void 0 : e.id) ?? "[ID UNKNOWN]")), !1;
|
|
13505
13485
|
let o;
|
|
13506
|
-
return
|
|
13486
|
+
return Dn(e) ? o = e : o = {
|
|
13507
13487
|
...e,
|
|
13508
13488
|
id: Dm(e)
|
|
13509
13489
|
}, o = Fm(o, void 0, i), G$(o, t) ? !1 : o;
|
|
@@ -13571,7 +13551,7 @@ function sd(e, t) {
|
|
|
13571
13551
|
function es(e, t, n, i, o, r, a, s) {
|
|
13572
13552
|
const l = [];
|
|
13573
13553
|
for (const u of e) {
|
|
13574
|
-
const c =
|
|
13554
|
+
const c = Dn(u) ? u : pN(u, s, o, r);
|
|
13575
13555
|
if (!c)
|
|
13576
13556
|
continue;
|
|
13577
13557
|
const d = n(c.source), f = n(c.target);
|
|
@@ -14062,21 +14042,21 @@ function Jm() {
|
|
|
14062
14042
|
};
|
|
14063
14043
|
}
|
|
14064
14044
|
const ts = 0.1, kN = (e) => ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
14065
|
-
function
|
|
14045
|
+
function Tn() {
|
|
14066
14046
|
return Ca("Viewport not initialized yet."), Promise.resolve(!1);
|
|
14067
14047
|
}
|
|
14068
14048
|
const CN = {
|
|
14069
|
-
zoomIn:
|
|
14070
|
-
zoomOut:
|
|
14071
|
-
zoomTo:
|
|
14072
|
-
fitView:
|
|
14073
|
-
setCenter:
|
|
14074
|
-
fitBounds:
|
|
14049
|
+
zoomIn: Tn,
|
|
14050
|
+
zoomOut: Tn,
|
|
14051
|
+
zoomTo: Tn,
|
|
14052
|
+
fitView: Tn,
|
|
14053
|
+
setCenter: Tn,
|
|
14054
|
+
fitBounds: Tn,
|
|
14075
14055
|
project: (e) => e,
|
|
14076
14056
|
screenToFlowCoordinate: (e) => e,
|
|
14077
14057
|
flowToScreenCoordinate: (e) => e,
|
|
14078
|
-
setViewport:
|
|
14079
|
-
setTransform:
|
|
14058
|
+
setViewport: Tn,
|
|
14059
|
+
setTransform: Tn,
|
|
14080
14060
|
getViewport: () => ({ x: 0, y: 0, zoom: 1 }),
|
|
14081
14061
|
getTransform: () => ({ x: 0, y: 0, zoom: 1 }),
|
|
14082
14062
|
viewportInitialized: !1
|
|
@@ -14432,7 +14412,7 @@ function AN() {
|
|
|
14432
14412
|
};
|
|
14433
14413
|
}
|
|
14434
14414
|
function IN(e, t) {
|
|
14435
|
-
|
|
14415
|
+
xn(() => {
|
|
14436
14416
|
for (const [n, i] of Object.entries(t.value)) {
|
|
14437
14417
|
const o = (r) => {
|
|
14438
14418
|
e(n, r);
|
|
@@ -14492,10 +14472,10 @@ function Qm() {
|
|
|
14492
14472
|
connectionLineStyle: {},
|
|
14493
14473
|
connectionLineType: null,
|
|
14494
14474
|
connectionLineOptions: {
|
|
14495
|
-
type:
|
|
14475
|
+
type: Un.Bezier,
|
|
14496
14476
|
style: {}
|
|
14497
14477
|
},
|
|
14498
|
-
connectionMode:
|
|
14478
|
+
connectionMode: Rn.Loose,
|
|
14499
14479
|
connectionStartHandle: null,
|
|
14500
14480
|
connectionEndHandle: null,
|
|
14501
14481
|
connectionClickStartHandle: null,
|
|
@@ -14612,43 +14592,43 @@ function $N(e, t, n) {
|
|
|
14612
14592
|
}, m = (w, S) => {
|
|
14613
14593
|
const I = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set();
|
|
14614
14594
|
for (const ie of w)
|
|
14615
|
-
Qn(ie) ? I.add(ie.id) :
|
|
14616
|
-
const G =
|
|
14595
|
+
Qn(ie) ? I.add(ie.id) : Dn(ie) && A.add(ie.id);
|
|
14596
|
+
const G = Nn(t.value, I, !0), L = Nn(n.value, A);
|
|
14617
14597
|
if (e.multiSelectionActive) {
|
|
14618
14598
|
for (const ie of I)
|
|
14619
|
-
G.push(
|
|
14599
|
+
G.push($n(ie, S));
|
|
14620
14600
|
for (const ie of A)
|
|
14621
|
-
L.push(
|
|
14601
|
+
L.push($n(ie, S));
|
|
14622
14602
|
}
|
|
14623
14603
|
G.length && e.hooks.nodesChange.trigger(G), L.length && e.hooks.edgesChange.trigger(L);
|
|
14624
14604
|
}, h = (w) => {
|
|
14625
14605
|
if (e.multiSelectionActive) {
|
|
14626
|
-
const S = w.map((I) =>
|
|
14606
|
+
const S = w.map((I) => $n(I.id, !0));
|
|
14627
14607
|
e.hooks.nodesChange.trigger(S);
|
|
14628
14608
|
return;
|
|
14629
14609
|
}
|
|
14630
|
-
e.hooks.nodesChange.trigger(
|
|
14610
|
+
e.hooks.nodesChange.trigger(Nn(t.value, new Set(w.map((S) => S.id)), !0)), e.hooks.edgesChange.trigger(Nn(n.value));
|
|
14631
14611
|
}, v = (w) => {
|
|
14632
14612
|
if (e.multiSelectionActive) {
|
|
14633
|
-
const S = w.map((I) =>
|
|
14613
|
+
const S = w.map((I) => $n(I.id, !0));
|
|
14634
14614
|
e.hooks.edgesChange.trigger(S);
|
|
14635
14615
|
return;
|
|
14636
14616
|
}
|
|
14637
|
-
e.hooks.edgesChange.trigger(
|
|
14617
|
+
e.hooks.edgesChange.trigger(Nn(n.value, new Set(w.map((S) => S.id)))), e.hooks.nodesChange.trigger(Nn(t.value, /* @__PURE__ */ new Set(), !0));
|
|
14638
14618
|
}, g = (w) => {
|
|
14639
14619
|
m(w, !0);
|
|
14640
14620
|
}, y = (w) => {
|
|
14641
|
-
const I = (w || e.nodes).map((A) => (A.selected = !1,
|
|
14621
|
+
const I = (w || e.nodes).map((A) => (A.selected = !1, $n(A.id, !1)));
|
|
14642
14622
|
e.hooks.nodesChange.trigger(I);
|
|
14643
14623
|
}, b = (w) => {
|
|
14644
|
-
const I = (w || e.edges).map((A) => (A.selected = !1,
|
|
14624
|
+
const I = (w || e.edges).map((A) => (A.selected = !1, $n(A.id, !1)));
|
|
14645
14625
|
e.hooks.edgesChange.trigger(I);
|
|
14646
14626
|
}, _ = (w) => {
|
|
14647
14627
|
if (!w || !w.length)
|
|
14648
14628
|
return m([], !1);
|
|
14649
14629
|
const S = w.reduce(
|
|
14650
14630
|
(I, A) => {
|
|
14651
|
-
const G =
|
|
14631
|
+
const G = $n(A.id, !1);
|
|
14652
14632
|
return Qn(A) ? I.nodes.push(G) : I.edges.push(G), I;
|
|
14653
14633
|
},
|
|
14654
14634
|
{ nodes: [], edges: [] }
|
|
@@ -14690,7 +14670,7 @@ function $N(e, t, n) {
|
|
|
14690
14670
|
Qa(e.connectionLookup, n.value, I), e.edges = I;
|
|
14691
14671
|
}, T = (w) => {
|
|
14692
14672
|
const S = w instanceof Function ? w([...e.nodes, ...e.edges]) : w;
|
|
14693
|
-
!e.initialized && !S.length || (W(S.filter(Qn)), Y(S.filter(
|
|
14673
|
+
!e.initialized && !S.length || (W(S.filter(Qn)), Y(S.filter(Dn)));
|
|
14694
14674
|
}, re = (w) => {
|
|
14695
14675
|
let S = w instanceof Function ? w(e.nodes) : w;
|
|
14696
14676
|
S = Array.isArray(S) ? S : [S];
|
|
@@ -14971,7 +14951,7 @@ function $N(e, t, n) {
|
|
|
14971
14951
|
const NN = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], ON = {
|
|
14972
14952
|
name: "Handle",
|
|
14973
14953
|
compatConfig: { MODE: 3 }
|
|
14974
|
-
},
|
|
14954
|
+
}, Pn = /* @__PURE__ */ ve({
|
|
14975
14955
|
...ON,
|
|
14976
14956
|
props: {
|
|
14977
14957
|
id: { default: null },
|
|
@@ -15086,9 +15066,9 @@ const NN = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], ON = {
|
|
|
15086
15066
|
}) {
|
|
15087
15067
|
const s = a.label ?? n;
|
|
15088
15068
|
return [
|
|
15089
|
-
Ge(
|
|
15069
|
+
Ge(Pn, { type: "target", position: t, connectable: i, isValidConnection: o }),
|
|
15090
15070
|
typeof s != "string" && s ? Ge(s) : Ge(Ke, [s]),
|
|
15091
|
-
Ge(
|
|
15071
|
+
Ge(Pn, { type: "source", position: e, connectable: i, isValidConnection: r })
|
|
15092
15072
|
];
|
|
15093
15073
|
};
|
|
15094
15074
|
xa.props = ["sourcePosition", "targetPosition", "label", "isValidTargetPos", "isValidSourcePos", "connectable", "data"];
|
|
@@ -15103,7 +15083,7 @@ const PN = xa, Aa = function({
|
|
|
15103
15083
|
}) {
|
|
15104
15084
|
const r = o.label ?? t;
|
|
15105
15085
|
return [
|
|
15106
|
-
Ge(
|
|
15086
|
+
Ge(Pn, { type: "target", position: e, connectable: n, isValidConnection: i }),
|
|
15107
15087
|
typeof r != "string" && r ? Ge(r) : Ge(Ke, [r])
|
|
15108
15088
|
];
|
|
15109
15089
|
};
|
|
@@ -15120,7 +15100,7 @@ const MN = Aa, Ia = function({
|
|
|
15120
15100
|
const r = o.label ?? t;
|
|
15121
15101
|
return [
|
|
15122
15102
|
typeof r != "string" && r ? Ge(r) : Ge(Ke, [r]),
|
|
15123
|
-
Ge(
|
|
15103
|
+
Ge(Pn, { type: "source", position: e, connectable: n, isValidConnection: i })
|
|
15124
15104
|
];
|
|
15125
15105
|
};
|
|
15126
15106
|
Ia.props = ["sourcePosition", "label", "isValidSourcePos", "connectable", "data"];
|
|
@@ -15203,7 +15183,7 @@ const FN = Ia, RN = ["transform"], DN = ["width", "height", "x", "y", "rx", "ry"
|
|
|
15203
15183
|
labelBgBorderRadius: {}
|
|
15204
15184
|
},
|
|
15205
15185
|
setup(e, { expose: t }) {
|
|
15206
|
-
const n = oe(null), i = oe(null), o = oe(null), r =
|
|
15186
|
+
const n = oe(null), i = oe(null), o = oe(null), r = Ln();
|
|
15207
15187
|
return t({
|
|
15208
15188
|
pathEl: n,
|
|
15209
15189
|
interactionEl: i,
|
|
@@ -15752,14 +15732,14 @@ function rO(e, t, n) {
|
|
|
15752
15732
|
areNodesInitialized: h
|
|
15753
15733
|
};
|
|
15754
15734
|
}
|
|
15755
|
-
class
|
|
15735
|
+
class Hn {
|
|
15756
15736
|
constructor() {
|
|
15757
15737
|
this.currentId = 0, this.flows = /* @__PURE__ */ new Map();
|
|
15758
15738
|
}
|
|
15759
15739
|
static getInstance() {
|
|
15760
15740
|
var t;
|
|
15761
|
-
const n = (t = Bo()) == null ? void 0 : t.appContext.app, i = (n == null ? void 0 : n.config.globalProperties.$vueFlowStorage) ??
|
|
15762
|
-
return
|
|
15741
|
+
const n = (t = Bo()) == null ? void 0 : t.appContext.app, i = (n == null ? void 0 : n.config.globalProperties.$vueFlowStorage) ?? Hn.instance;
|
|
15742
|
+
return Hn.instance = i ?? new Hn(), n && (n.config.globalProperties.$vueFlowStorage = Hn.instance), Hn.instance;
|
|
15763
15743
|
}
|
|
15764
15744
|
set(t, n) {
|
|
15765
15745
|
return this.flows.set(t, n);
|
|
@@ -15771,7 +15751,7 @@ class Gn {
|
|
|
15771
15751
|
return this.flows.delete(t);
|
|
15772
15752
|
}
|
|
15773
15753
|
create(t, n) {
|
|
15774
|
-
const i = Qm(), o =
|
|
15754
|
+
const i = Qm(), o = Wn(i), r = {};
|
|
15775
15755
|
for (const [f, m] of Object.entries(o.hooks)) {
|
|
15776
15756
|
const h = `on${f.charAt(0).toUpperCase() + f.slice(1)}`;
|
|
15777
15757
|
r[h] = m.on;
|
|
@@ -15812,7 +15792,7 @@ class Gn {
|
|
|
15812
15792
|
}
|
|
15813
15793
|
}
|
|
15814
15794
|
function We(e) {
|
|
15815
|
-
const t =
|
|
15795
|
+
const t = Hn.getInstance(), n = Hd(), i = typeof e == "object", o = i ? e : { id: e }, r = o.id, a = r ?? (n == null ? void 0 : n.vueFlowId);
|
|
15816
15796
|
let s;
|
|
15817
15797
|
if (n) {
|
|
15818
15798
|
const l = it(ld, null);
|
|
@@ -16047,11 +16027,11 @@ const pO = {
|
|
|
16047
16027
|
}
|
|
16048
16028
|
}
|
|
16049
16029
|
if (!sd(X, O.value)) {
|
|
16050
|
-
const w =
|
|
16030
|
+
const w = Nn(_.value, O.value, !0);
|
|
16051
16031
|
o.nodesChange(w);
|
|
16052
16032
|
}
|
|
16053
16033
|
if (!sd(ae, B.value)) {
|
|
16054
|
-
const w =
|
|
16034
|
+
const w = Nn(b.value, B.value);
|
|
16055
16035
|
o.edgesChange(w);
|
|
16056
16036
|
}
|
|
16057
16037
|
s.value = de, r.value = !0, u.value = !1;
|
|
@@ -16396,10 +16376,10 @@ const pd = Zl, AO = ve({
|
|
|
16396
16376
|
if (!_.value || _.value.hidden || S.hidden || I.hidden)
|
|
16397
16377
|
return null;
|
|
16398
16378
|
let G;
|
|
16399
|
-
i.value ===
|
|
16379
|
+
i.value === Rn.Strict ? G = S.handleBounds.source : G = [...S.handleBounds.source || [], ...S.handleBounds.target || []];
|
|
16400
16380
|
const L = td(G, _.value.sourceHandle);
|
|
16401
16381
|
let ie;
|
|
16402
|
-
i.value ===
|
|
16382
|
+
i.value === Rn.Strict ? ie = I.handleBounds.target : ie = [...I.handleBounds.target || [], ...I.handleBounds.source || []];
|
|
16403
16383
|
const D = td(ie, _.value.targetHandle), Q = (L == null ? void 0 : L.position) || Ie.Bottom, K = (D == null ? void 0 : D.position) || Ie.Top, { x: Ce, y: ge } = Bi(S, L, Q), { x: $e, y: ke } = Bi(I, D, K);
|
|
16404
16384
|
return _.value.sourceX = Ce, _.value.sourceY = ge, _.value.targetX = $e, _.value.targetY = ke, Ge(
|
|
16405
16385
|
"g",
|
|
@@ -16590,7 +16570,7 @@ const pd = Zl, AO = ve({
|
|
|
16590
16570
|
return null;
|
|
16591
16571
|
const x = i.value.id, k = i.value.type, N = m.value.handleBounds;
|
|
16592
16572
|
let O = (N == null ? void 0 : N[k]) ?? [];
|
|
16593
|
-
if (n.value ===
|
|
16573
|
+
if (n.value === Rn.Loose) {
|
|
16594
16574
|
const J = (N == null ? void 0 : N[k === "source" ? "target" : "source"]) ?? [];
|
|
16595
16575
|
O = [...O, ...J];
|
|
16596
16576
|
}
|
|
@@ -16598,7 +16578,7 @@ const pd = Zl, AO = ve({
|
|
|
16598
16578
|
return null;
|
|
16599
16579
|
const B = (x ? O.find((J) => J.id === x) : O[0]) ?? null, W = (B == null ? void 0 : B.position) ?? Ie.Top, { x: Y, y: T } = Bi(m.value, B, W);
|
|
16600
16580
|
let re = null;
|
|
16601
|
-
h.value && (n.value ===
|
|
16581
|
+
h.value && (n.value === Rn.Strict ? re = ((b = h.value.handleBounds[k === "source" ? "target" : "source"]) == null ? void 0 : b.find(
|
|
16602
16582
|
(J) => {
|
|
16603
16583
|
var Z;
|
|
16604
16584
|
return J.id === ((Z = o.value) == null ? void 0 : Z.id);
|
|
@@ -16612,7 +16592,7 @@ const pd = Zl, AO = ve({
|
|
|
16612
16592
|
const $ = ((C = o.value) == null ? void 0 : C.position) ?? (W ? Ys[W] : null);
|
|
16613
16593
|
if (!W || !$)
|
|
16614
16594
|
return null;
|
|
16615
|
-
const V = a.value ?? l.value.type ??
|
|
16595
|
+
const V = a.value ?? l.value.type ?? Un.Bezier;
|
|
16616
16596
|
let j = "";
|
|
16617
16597
|
const le = {
|
|
16618
16598
|
sourceX: Y,
|
|
@@ -16622,10 +16602,10 @@ const pd = Zl, AO = ve({
|
|
|
16622
16602
|
targetY: v.value.y,
|
|
16623
16603
|
targetPosition: $
|
|
16624
16604
|
};
|
|
16625
|
-
return V ===
|
|
16605
|
+
return V === Un.Bezier ? [j] = ng(le) : V === Un.Step ? [j] = Xs({
|
|
16626
16606
|
...le,
|
|
16627
16607
|
borderRadius: 0
|
|
16628
|
-
}) : V ===
|
|
16608
|
+
}) : V === Un.SmoothStep ? [j] = Xs(le) : V === Un.SimpleBezier ? [j] = ig(le) : j = `M${Y},${T} ${v.value.x},${v.value.y}`, Ge(
|
|
16629
16609
|
"svg",
|
|
16630
16610
|
{ class: "vue-flow__edges vue-flow__connectionline vue-flow__container" },
|
|
16631
16611
|
Ge(
|
|
@@ -17455,7 +17435,7 @@ const NP = { render: $P }, OP = {
|
|
|
17455
17435
|
edges: 80,
|
|
17456
17436
|
ranks: 40
|
|
17457
17437
|
}
|
|
17458
|
-
}, MP = 1600, FP = 1.2, RP = 0, lg = Symbol("confirm-modal"), Vi = "{key}",
|
|
17438
|
+
}, MP = 1600, FP = 1.2, RP = 0, lg = Symbol("confirm-modal"), Vi = "{key}", Yn = {
|
|
17459
17439
|
"kong.client.consumer": {
|
|
17460
17440
|
dataType: "object",
|
|
17461
17441
|
writable: !1,
|
|
@@ -17596,7 +17576,7 @@ const NP = { render: $P }, OP = {
|
|
|
17596
17576
|
writable: !0,
|
|
17597
17577
|
readable: !0
|
|
17598
17578
|
}
|
|
17599
|
-
}, $a = Object.keys(
|
|
17579
|
+
}, $a = Object.keys(Yn).filter((e) => e.includes(Vi)).map((e) => e.replace(Vi, ""));
|
|
17600
17580
|
function Zs(e) {
|
|
17601
17581
|
if (!e || !Ko(e)) return;
|
|
17602
17582
|
const t = $a.find((n) => e.startsWith(n));
|
|
@@ -17618,18 +17598,18 @@ function Jl(e) {
|
|
|
17618
17598
|
var n;
|
|
17619
17599
|
if (!e) return !1;
|
|
17620
17600
|
const t = ug(e);
|
|
17621
|
-
return t ? ((n =
|
|
17601
|
+
return t ? ((n = Yn[t]) == null ? void 0 : n.readable) ?? !1 : !1;
|
|
17622
17602
|
}
|
|
17623
17603
|
function Js(e) {
|
|
17624
17604
|
var n;
|
|
17625
17605
|
if (!e) return !1;
|
|
17626
17606
|
const t = ug(e);
|
|
17627
|
-
return t ? ((n =
|
|
17607
|
+
return t ? ((n = Yn[t]) == null ? void 0 : n.writable) ?? !1 : !1;
|
|
17628
17608
|
}
|
|
17629
17609
|
function DP(e) {
|
|
17630
17610
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
17631
17611
|
}
|
|
17632
|
-
var LP = "\0",
|
|
17612
|
+
var LP = "\0", Vn = "\0", md = "";
|
|
17633
17613
|
let KP = class {
|
|
17634
17614
|
constructor(t) {
|
|
17635
17615
|
ut(this, "_isDirected", !0);
|
|
@@ -17663,7 +17643,7 @@ let KP = class {
|
|
|
17663
17643
|
ut(this, "_edgeCount", 0);
|
|
17664
17644
|
ut(this, "_parent");
|
|
17665
17645
|
ut(this, "_children");
|
|
17666
|
-
t && (this._isDirected = Object.hasOwn(t, "directed") ? t.directed : !0, this._isMultigraph = Object.hasOwn(t, "multigraph") ? t.multigraph : !1, this._isCompound = Object.hasOwn(t, "compound") ? t.compound : !1), this._isCompound && (this._parent = {}, this._children = {}, this._children[
|
|
17646
|
+
t && (this._isDirected = Object.hasOwn(t, "directed") ? t.directed : !0, this._isMultigraph = Object.hasOwn(t, "multigraph") ? t.multigraph : !1, this._isCompound = Object.hasOwn(t, "compound") ? t.compound : !1), this._isCompound && (this._parent = {}, this._children = {}, this._children[Vn] = {});
|
|
17667
17647
|
}
|
|
17668
17648
|
/* === Graph functions ========= */
|
|
17669
17649
|
/**
|
|
@@ -17755,7 +17735,7 @@ let KP = class {
|
|
|
17755
17735
|
* Complexity: O(1).
|
|
17756
17736
|
*/
|
|
17757
17737
|
setNode(t, n) {
|
|
17758
|
-
return Object.hasOwn(this._nodes, t) ? (arguments.length > 1 && (this._nodes[t] = n), this) : (this._nodes[t] = arguments.length > 1 ? n : this._defaultNodeLabelFn(t), this._isCompound && (this._parent[t] =
|
|
17738
|
+
return Object.hasOwn(this._nodes, t) ? (arguments.length > 1 && (this._nodes[t] = n), this) : (this._nodes[t] = arguments.length > 1 ? n : this._defaultNodeLabelFn(t), this._isCompound && (this._parent[t] = Vn, this._children[t] = {}, this._children[Vn][t] = !0), this._in[t] = {}, this._preds[t] = {}, this._out[t] = {}, this._sucs[t] = {}, ++this._nodeCount, this);
|
|
17759
17739
|
}
|
|
17760
17740
|
/**
|
|
17761
17741
|
* Gets the label of node with specified name.
|
|
@@ -17796,7 +17776,7 @@ let KP = class {
|
|
|
17796
17776
|
if (!this._isCompound)
|
|
17797
17777
|
throw new Error("Cannot set parent in a non-compound graph");
|
|
17798
17778
|
if (n === void 0)
|
|
17799
|
-
n =
|
|
17779
|
+
n = Vn;
|
|
17800
17780
|
else {
|
|
17801
17781
|
n += "";
|
|
17802
17782
|
for (var i = n; i !== void 0; i = this.parent(i))
|
|
@@ -17816,7 +17796,7 @@ let KP = class {
|
|
|
17816
17796
|
parent(t) {
|
|
17817
17797
|
if (this._isCompound) {
|
|
17818
17798
|
var n = this._parent[t];
|
|
17819
|
-
if (n !==
|
|
17799
|
+
if (n !== Vn)
|
|
17820
17800
|
return n;
|
|
17821
17801
|
}
|
|
17822
17802
|
}
|
|
@@ -17824,13 +17804,13 @@ let KP = class {
|
|
|
17824
17804
|
* Gets list of direct children of node v.
|
|
17825
17805
|
* Complexity: O(1).
|
|
17826
17806
|
*/
|
|
17827
|
-
children(t =
|
|
17807
|
+
children(t = Vn) {
|
|
17828
17808
|
if (this._isCompound) {
|
|
17829
17809
|
var n = this._children[t];
|
|
17830
17810
|
if (n)
|
|
17831
17811
|
return Object.keys(n);
|
|
17832
17812
|
} else {
|
|
17833
|
-
if (t ===
|
|
17813
|
+
if (t === Vn)
|
|
17834
17814
|
return this.nodes();
|
|
17835
17815
|
if (this.hasNode(t))
|
|
17836
17816
|
return [];
|
|
@@ -19642,7 +19622,7 @@ function BR() {
|
|
|
19642
19622
|
return (n) => t(n);
|
|
19643
19623
|
}
|
|
19644
19624
|
function Xr(e, t, n) {
|
|
19645
|
-
const i = t ?
|
|
19625
|
+
const i = t ? On(e, n, t) : void 0;
|
|
19646
19626
|
return `${e.name}${i ? `.${i.name}` : ""}`;
|
|
19647
19627
|
}
|
|
19648
19628
|
function ko(e, t) {
|
|
@@ -20103,7 +20083,7 @@ const [HR, GR] = rf(
|
|
|
20103
20083
|
U("div", QR, [
|
|
20104
20084
|
d.value ? (E(), te(Ke, { key: 0 }, [
|
|
20105
20085
|
U("div", eD, [
|
|
20106
|
-
P(p(
|
|
20086
|
+
P(p(Pn), {
|
|
20107
20087
|
id: "input",
|
|
20108
20088
|
position: v.value,
|
|
20109
20089
|
type: "target"
|
|
@@ -20144,7 +20124,7 @@ const [HR, GR] = rf(
|
|
|
20144
20124
|
key: `inputs-${k.id}`,
|
|
20145
20125
|
class: "handle indented"
|
|
20146
20126
|
}, [
|
|
20147
|
-
P(p(
|
|
20127
|
+
P(p(Pn), {
|
|
20148
20128
|
id: `inputs@${k.id}`,
|
|
20149
20129
|
position: v.value,
|
|
20150
20130
|
type: "target"
|
|
@@ -20194,7 +20174,7 @@ const [HR, GR] = rf(
|
|
|
20194
20174
|
type: "bar"
|
|
20195
20175
|
}, null, 8, ["color", "position"])) : Ee("", !0)
|
|
20196
20176
|
]),
|
|
20197
|
-
P(p(
|
|
20177
|
+
P(p(Pn), {
|
|
20198
20178
|
id: "output",
|
|
20199
20179
|
position: g.value,
|
|
20200
20180
|
type: "source"
|
|
@@ -20212,7 +20192,7 @@ const [HR, GR] = rf(
|
|
|
20212
20192
|
type: N < C.data.fields.output.length - 1 ? "trident" : "corner"
|
|
20213
20193
|
}, null, 8, ["color", "position", "type"])
|
|
20214
20194
|
]),
|
|
20215
|
-
P(p(
|
|
20195
|
+
P(p(Pn), {
|
|
20216
20196
|
id: `outputs@${k.id}`,
|
|
20217
20197
|
position: g.value,
|
|
20218
20198
|
type: "source"
|
|
@@ -20232,7 +20212,7 @@ const [HR, GR] = rf(
|
|
|
20232
20212
|
},
|
|
20233
20213
|
emits: ["initialized"],
|
|
20234
20214
|
setup(e, { expose: t, emit: n }) {
|
|
20235
|
-
const i = n, o = st("flowCanvas"), r =
|
|
20215
|
+
const i = n, o = st("flowCanvas"), r = qn(o), {
|
|
20236
20216
|
vueFlowStore: a,
|
|
20237
20217
|
editorStore: s,
|
|
20238
20218
|
nodes: l,
|
|
@@ -20359,7 +20339,7 @@ const [HR, GR] = rf(
|
|
|
20359
20339
|
fe(de), me(de), ee(() => de());
|
|
20360
20340
|
}
|
|
20361
20341
|
f(c, d), f(d, c);
|
|
20362
|
-
const m = st("flowPanels"), h = st("requestLabel"), v = st("requestCanvasContainer"), g = st("requestFlow"), y = st("resizeHandle"), b = st("responseLabel"), _ = st("responseCanvasContainer"), C = st("responseFlow"), x =
|
|
20342
|
+
const m = st("flowPanels"), h = st("requestLabel"), v = st("requestCanvasContainer"), g = st("requestFlow"), y = st("resizeHandle"), b = st("responseLabel"), _ = st("responseCanvasContainer"), C = st("responseFlow"), x = qn(m), k = qn(h), N = qn(v), O = qn(y), B = qn(b), W = qn(_), Y = M(() => Math.max(30, x.height.value * 0.03)), T = M(() => N.height.value < Y.value), re = M(() => W.height.value < Y.value), $ = oe("50%"), V = oe("50%"), j = () => {
|
|
20363
20343
|
e.resizable && (T.value ? ($.value = "50%", V.value = "50%") : ($.value = "0", V.value = "100%"));
|
|
20364
20344
|
}, le = () => {
|
|
20365
20345
|
e.resizable && (re.value ? ($.value = "50%", V.value = "50%") : ($.value = "100%", V.value = "0"));
|
|
@@ -21494,7 +21474,7 @@ function pi(e, t) {
|
|
|
21494
21474
|
}), _ = M(() => {
|
|
21495
21475
|
const ne = n.value.edges.filter((se) => se.target === e).reduce((se, ee) => {
|
|
21496
21476
|
var ue, de;
|
|
21497
|
-
const fe = o(ee.source), me = (ue =
|
|
21477
|
+
const fe = o(ee.source), me = (ue = On(fe, "output", ee.sourceField)) == null ? void 0 : ue.id, Se = (de = On(b.value, "input", ee.targetField)) == null ? void 0 : de.name, xe = fe.id + (me ? `.${me}` : "");
|
|
21498
21478
|
return Se ? se.inputs = { ...se.inputs, [Se]: xe } : se.input = xe, se;
|
|
21499
21479
|
}, {});
|
|
21500
21480
|
return b.value.fields.input.forEach((se) => {
|
|
@@ -22149,7 +22129,7 @@ const mL = /* @__PURE__ */ ve({
|
|
|
22149
22129
|
var B;
|
|
22150
22130
|
if (!d.value)
|
|
22151
22131
|
return {};
|
|
22152
|
-
const _ = ((B = d.value.config) == null ? void 0 : B.values) ?? {}, C = {}, x = n(d.value.id).map((W) => W.sourceField).filter(Boolean).map((W) =>
|
|
22132
|
+
const _ = ((B = d.value.config) == null ? void 0 : B.values) ?? {}, C = {}, x = n(d.value.id).map((W) => W.sourceField).filter(Boolean).map((W) => On(d.value, "output", W)).map((W) => W == null ? void 0 : W.name).filter(Boolean), k = d.value.fields.output.map((W) => W.name), N = Object.keys(_);
|
|
22153
22133
|
return (/* @__PURE__ */ new Set([
|
|
22154
22134
|
...N,
|
|
22155
22135
|
...x,
|
|
@@ -22238,7 +22218,7 @@ const mL = /* @__PURE__ */ ve({
|
|
|
22238
22218
|
},
|
|
22239
22219
|
emits: ["update:model-value", "update:property-key"],
|
|
22240
22220
|
setup(e, { emit: t }) {
|
|
22241
|
-
const { i18n: { t: n } } = Ue(), i = e, o = t, { formData: r } = rt(), a = oe(mo(r.property)), s = M(() => Ko(r.property)), l = oe(Zs(r.property)), u = M(() => r.property ?? ""), c = M(() => Object.entries(
|
|
22221
|
+
const { i18n: { t: n } } = Ue(), i = e, o = t, { formData: r } = rt(), a = oe(mo(r.property)), s = M(() => Ko(r.property)), l = oe(Zs(r.property)), u = M(() => r.property ?? ""), c = M(() => Object.entries(Yn).map(([m]) => {
|
|
22242
22222
|
var g;
|
|
22243
22223
|
const h = Ko(m) ? (g = r.property) == null ? void 0 : g.startsWith(m.replace(Vi, "")) : r.property === m;
|
|
22244
22224
|
return {
|
|
@@ -22282,10 +22262,10 @@ const mL = /* @__PURE__ */ ve({
|
|
|
22282
22262
|
U("div", gL, [
|
|
22283
22263
|
U("div", null, [
|
|
22284
22264
|
U("div", null, he(b.label), 1),
|
|
22285
|
-
U("div", hL, he(p(
|
|
22265
|
+
U("div", hL, he(p(Yn)[b.value].dataType), 1)
|
|
22286
22266
|
]),
|
|
22287
22267
|
U("div", vL, [
|
|
22288
|
-
p(
|
|
22268
|
+
p(Yn)[b.value].readable ? (E(), H(v, {
|
|
22289
22269
|
key: 0,
|
|
22290
22270
|
appearance: "info"
|
|
22291
22271
|
}, {
|
|
@@ -22294,7 +22274,7 @@ const mL = /* @__PURE__ */ ve({
|
|
|
22294
22274
|
]),
|
|
22295
22275
|
_: 1
|
|
22296
22276
|
})) : Ee("", !0),
|
|
22297
|
-
p(
|
|
22277
|
+
p(Yn)[b.value].writable ? (E(), H(v, {
|
|
22298
22278
|
key: 1,
|
|
22299
22279
|
appearance: "warning"
|
|
22300
22280
|
}, {
|
|
@@ -23143,9 +23123,9 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23143
23123
|
},
|
|
23144
23124
|
setup(e) {
|
|
23145
23125
|
const t = e, n = Gt();
|
|
23146
|
-
return ot(Hi, n == null ? void 0 : n[Xn]), (i, o) => (E(), H($l, un(
|
|
23126
|
+
return ot(Hi, n == null ? void 0 : n[Xn]), (i, o) => (E(), H($l, un(En(t)), {
|
|
23147
23127
|
default: F((r) => [
|
|
23148
|
-
P(hK, un(
|
|
23128
|
+
P(hK, un(En(r)), null, 16)
|
|
23149
23129
|
]),
|
|
23150
23130
|
_: 1
|
|
23151
23131
|
}, 16));
|
|
@@ -23219,9 +23199,9 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23219
23199
|
},
|
|
23220
23200
|
setup(e) {
|
|
23221
23201
|
const t = e, n = Gt();
|
|
23222
|
-
return ot(Hi, n == null ? void 0 : n[Xn]), (i, o) => (E(), H(ap, un(
|
|
23202
|
+
return ot(Hi, n == null ? void 0 : n[Xn]), (i, o) => (E(), H(ap, un(En(t)), {
|
|
23223
23203
|
default: F((r) => [
|
|
23224
|
-
P(_K, un(
|
|
23204
|
+
P(_K, un(En(r)), null, 16)
|
|
23225
23205
|
]),
|
|
23226
23206
|
_: 1
|
|
23227
23207
|
}, 16));
|
|
@@ -23310,7 +23290,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23310
23290
|
throw new Error(
|
|
23311
23291
|
"Duplicate form component names found in `sharedForms` and `freeForm`"
|
|
23312
23292
|
);
|
|
23313
|
-
const o = t, r = e, { axiosInstance: a } =
|
|
23293
|
+
const o = t, r = e, { axiosInstance: a } = Kn((Se = r.config) == null ? void 0 : Se.axiosRequestConfig), { parseSchema: s } = nt.useSchemas({
|
|
23314
23294
|
entityId: ((xe = r.entityMap.focusedEntity) == null ? void 0 : xe.id) || void 0,
|
|
23315
23295
|
credential: r.credential,
|
|
23316
23296
|
enableRedisPartial: r.enableRedisPartial,
|
|
@@ -23382,7 +23362,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23382
23362
|
});
|
|
23383
23363
|
}
|
|
23384
23364
|
}), ot(ta, r.config);
|
|
23385
|
-
const N = oe(""), O = oe(""), B = oe(null), W = oe({}), Y =
|
|
23365
|
+
const N = oe(""), O = oe(""), B = oe(null), W = oe({}), Y = Wn({}), T = Wn({}), re = M(() => {
|
|
23386
23366
|
var ue;
|
|
23387
23367
|
return (ue = B.value) == null ? void 0 : ue.options;
|
|
23388
23368
|
}), $ = oe(!1), V = oe(), j = (ue, de) => {
|
|
@@ -23562,7 +23542,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23562
23542
|
Object.assign(T, X.model), W.value = {
|
|
23563
23543
|
fields: (R = (ae = W.value) == null ? void 0 : ae.fields) == null ? void 0 : R.map((w) => ({ ...w, disabled: w.disabled || !1 }))
|
|
23564
23544
|
}, Object.assign(Y, JSON.parse(JSON.stringify(X.model))), O.value = qf(X.model.name, m), N.value = Jd(X.model.name), me();
|
|
23565
|
-
}, { immediate: !0, deep: !0 }),
|
|
23545
|
+
}, { immediate: !0, deep: !0 }), xn(() => {
|
|
23566
23546
|
var ue, de;
|
|
23567
23547
|
B.value = s(r.schema), Object.assign(T, ((ue = B.value) == null ? void 0 : ue.model) || {}), W.value = ((de = B.value) == null ? void 0 : de.schema) || {}, me();
|
|
23568
23548
|
}), (ue, de) => {
|
|
@@ -23775,17 +23755,17 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23775
23755
|
app: i.config.app,
|
|
23776
23756
|
credential: i.credential,
|
|
23777
23757
|
experimentalRenders: i.config.app === "konnect" ? i.config.experimentalRenders : void 0
|
|
23778
|
-
}), { formatPluginFieldLabel: l } = nt.usePluginHelpers(), { getMessageFromError: u } = Ui(), { capitalize: c } = Jr(), { objectsAreEqual: d } = Qr(), { axiosInstance: f } =
|
|
23758
|
+
}), { formatPluginFieldLabel: l } = nt.usePluginHelpers(), { getMessageFromError: u } = Ui(), { capitalize: c } = Jr(), { objectsAreEqual: d } = Qr(), { axiosInstance: f } = Kn((ie = i.config) == null ? void 0 : ie.axiosRequestConfig), m = oe(!1), h = M(() => !!i.pluginId), v = M(() => i.pluginId ? jn.Edit : jn.Create), g = oe(void 0), y = oe(void 0), b = M(() => !!(i.credential && i.config.entityId)), _ = oe(void 0), C = oe({}), x = oe(), k = oe();
|
|
23779
23759
|
ot(rp, {
|
|
23780
23760
|
redisType: x,
|
|
23781
23761
|
redisPath: k,
|
|
23782
23762
|
isEditing: h.value
|
|
23783
23763
|
});
|
|
23784
|
-
const N = oe(!1), O =
|
|
23764
|
+
const N = oe(!1), O = Wn({
|
|
23785
23765
|
enabled: !0,
|
|
23786
23766
|
protocols: [],
|
|
23787
23767
|
tags: []
|
|
23788
|
-
}), B =
|
|
23768
|
+
}), B = Wn({
|
|
23789
23769
|
fields: {
|
|
23790
23770
|
enabled: !0,
|
|
23791
23771
|
protocols: [],
|
|
@@ -23855,7 +23835,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23855
23835
|
id: i.config.entityId,
|
|
23856
23836
|
idField: yi[i.config.entityType.substring(0, i.config.entityType.length - 1).toUpperCase()]
|
|
23857
23837
|
}), ge;
|
|
23858
|
-
}), V =
|
|
23838
|
+
}), V = Wn({
|
|
23859
23839
|
// this is a required field that the user cannot set, it's always the name of the plugin
|
|
23860
23840
|
// ex. 'acl'
|
|
23861
23841
|
name: {
|
|
@@ -23878,7 +23858,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
23878
23858
|
},
|
|
23879
23859
|
// plugin scoping
|
|
23880
23860
|
selectionGroup: {
|
|
23881
|
-
type: i.hideScopeSelection && (i.hideScopeSelection || v.value ===
|
|
23861
|
+
type: i.hideScopeSelection && (i.hideScopeSelection || v.value === jn.Create && i.config.entityId) ? "foreign" : "selectionGroup",
|
|
23882
23862
|
disabled: i.disableScopeSelection,
|
|
23883
23863
|
inputType: "hidden",
|
|
23884
23864
|
styleClasses: "hide-label",
|
|
@@ -24189,7 +24169,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24189
24169
|
}), V.selectionGroup.fields[1].fields = Ne;
|
|
24190
24170
|
}
|
|
24191
24171
|
a[i.pluginType] && a[i.pluginType].overwriteDefault && Object.hasOwnProperty.call(a[i.pluginType], "formSchema") && Object.assign(V, a[i.pluginType].formSchema);
|
|
24192
|
-
}, q = M(() => !d(B.fields, O, !0)), z = M(() => !G.value && !N.value && (v.value ===
|
|
24172
|
+
}, q = M(() => !d(B.fields, O, !0)), z = M(() => !G.value && !N.value && (v.value === jn.Create || q.value)), ne = oe(!1), se = oe(), ee = (D) => {
|
|
24193
24173
|
i.credential && D.password && (D.password = ""), B.fields.id = (D == null ? void 0 : D.id) || void 0, se.value = D == null ? void 0 : D.ordering, Object.assign(O, B.fields), _.value = D, ne.value = !0;
|
|
24194
24174
|
}, fe = oe({}), me = (D) => {
|
|
24195
24175
|
var Q;
|
|
@@ -24203,7 +24183,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24203
24183
|
};
|
|
24204
24184
|
Te([$, ne], (D, Q) => {
|
|
24205
24185
|
const K = D[0] !== Q[0], Ce = D[1], ge = Q[1];
|
|
24206
|
-
if (!b.value && v.value ===
|
|
24186
|
+
if (!b.value && v.value === jn.Edit && (K || Ce && Ce !== ge)) {
|
|
24207
24187
|
const $e = J("config", C.value, V);
|
|
24208
24188
|
R.value && ($e._isCustomPlugin = !0), x.value && ($e._supported_redis_partial_type = x.value), y.value = $e;
|
|
24209
24189
|
}
|
|
@@ -24250,7 +24230,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24250
24230
|
let K = `${i.config.apiBaseUrl}${Q}`;
|
|
24251
24231
|
return i.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, i.config.controlPlaneId || "") : i.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, i.config.workspace ? `/${i.config.workspace}` : "")), K = K.replace(/{plugin}/gi, D), K;
|
|
24252
24232
|
}), A = oe(""), G = oe(!1), L = oe("");
|
|
24253
|
-
return
|
|
24233
|
+
return xn(async () => {
|
|
24254
24234
|
var D, Q, K, Ce;
|
|
24255
24235
|
G.value = !0;
|
|
24256
24236
|
try {
|
|
@@ -24272,7 +24252,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24272
24252
|
protocols: ce.join(", ")
|
|
24273
24253
|
}) : r("plugins.form.fields.protocols.placeholder"), (Ce = Ne.one_of) != null && Ce.length && (V.protocols.values = Ne.one_of.map((je) => ({ label: je, value: je })));
|
|
24274
24254
|
}
|
|
24275
|
-
if (ne.value || v.value ===
|
|
24255
|
+
if (ne.value || v.value === jn.Create) {
|
|
24276
24256
|
const ce = J("config", C.value, V);
|
|
24277
24257
|
x.value && (ce._supported_redis_partial_type = x.value), R.value && (ce._isCustomPlugin = !0), y.value = ce;
|
|
24278
24258
|
}
|
|
@@ -24371,7 +24351,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24371
24351
|
P(SK, {
|
|
24372
24352
|
config: e.config,
|
|
24373
24353
|
credential: b.value,
|
|
24374
|
-
editing: v.value === p(
|
|
24354
|
+
editing: v.value === p(jn).Edit,
|
|
24375
24355
|
"enable-redis-partial": e.enableRedisPartial,
|
|
24376
24356
|
"enable-vault-secret-picker": i.enableVaultSecretPicker,
|
|
24377
24357
|
"entity-map": $.value,
|
|
@@ -24510,7 +24490,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24510
24490
|
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle-enabled"],
|
|
24511
24491
|
setup(e, { emit: t }) {
|
|
24512
24492
|
var A, G;
|
|
24513
|
-
const n = nt.usePluginMetaData(), i = t, o = e, { i18n: { t: r } } = nt.useI18n(), a = ea(), { axiosInstance: s } =
|
|
24493
|
+
const n = nt.usePluginMetaData(), i = t, o = e, { i18n: { t: r } } = nt.useI18n(), a = ea(), { axiosInstance: s } = Kn((A = o.config) == null ? void 0 : A.axiosRequestConfig), { hasRecords: l, handleStateChange: u } = ch(() => _.value), c = M(() => l.value && o.config.app === "konnect"), d = M(() => !!o.config.entityId), f = M(() => {
|
|
24514
24494
|
var L;
|
|
24515
24495
|
return ((L = o.config) == null ? void 0 : L.entityType) === "consumers";
|
|
24516
24496
|
}), m = M(() => {
|
|
@@ -24683,7 +24663,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24683
24663
|
message: `${r("plugins.list.empty_state.description")}${o.config.additionMessageForEmptyState ? ` ${o.config.additionMessageForEmptyState}` : ""}`,
|
|
24684
24664
|
title: r("plugins.title")
|
|
24685
24665
|
}), I = oe(!1);
|
|
24686
|
-
return
|
|
24666
|
+
return xn(async () => {
|
|
24687
24667
|
I.value = await o.canCreate(), I.value && (S.value.title = r("plugins.list.empty_state.title"), S.value.ctaText = r("actions.create"));
|
|
24688
24668
|
}), (L, ie) => {
|
|
24689
24669
|
const D = we("KButton"), Q = we("KEmptyState"), K = we("KBadge"), Ce = we("KTruncate"), ge = we("KInputSwitch"), $e = we("KDropdownItem"), ke = we("KClipboardProvider");
|
|
@@ -24733,7 +24713,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24733
24713
|
]),
|
|
24734
24714
|
_: 1
|
|
24735
24715
|
})) : Ee("", !0),
|
|
24736
|
-
P(p(
|
|
24716
|
+
P(p(Bn), {
|
|
24737
24717
|
"auth-function": () => e.canCreate()
|
|
24738
24718
|
}, {
|
|
24739
24719
|
default: F(() => [
|
|
@@ -24771,7 +24751,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24771
24751
|
appliedTo: F(({ row: ce }) => [
|
|
24772
24752
|
Y(ce).length > 0 ? (E(), H(Ce, { key: 0 }, {
|
|
24773
24753
|
default: F(() => [
|
|
24774
|
-
(E(!0), te(Ke, null, qe(Y(ce), (Ne) => (E(), H(p(
|
|
24754
|
+
(E(!0), te(Ke, null, qe(Y(ce), (Ne) => (E(), H(p(Bn), {
|
|
24775
24755
|
key: Ne.badgeText,
|
|
24776
24756
|
"auth-function": () => T(Ne.type, ce),
|
|
24777
24757
|
"force-show": ""
|
|
@@ -24794,7 +24774,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24794
24774
|
}, 1024)) : (E(), te("span", KK, "-"))
|
|
24795
24775
|
]),
|
|
24796
24776
|
enabled: F(({ row: ce }) => [
|
|
24797
|
-
P(p(
|
|
24777
|
+
P(p(Bn), {
|
|
24798
24778
|
"auth-function": async () => !!(await e.canEdit(ce) && await e.canToggle(ce)),
|
|
24799
24779
|
"force-show": ""
|
|
24800
24780
|
}, {
|
|
@@ -24859,7 +24839,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24859
24839
|
]),
|
|
24860
24840
|
_: 2
|
|
24861
24841
|
}, 1024),
|
|
24862
|
-
P(p(
|
|
24842
|
+
P(p(Bn), {
|
|
24863
24843
|
"auth-function": () => e.canRetrieve(ce)
|
|
24864
24844
|
}, {
|
|
24865
24845
|
default: F(() => [
|
|
@@ -24871,7 +24851,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24871
24851
|
]),
|
|
24872
24852
|
_: 2
|
|
24873
24853
|
}, 1032, ["auth-function"]),
|
|
24874
|
-
P(p(
|
|
24854
|
+
P(p(Bn), {
|
|
24875
24855
|
"auth-function": () => e.canEdit(ce)
|
|
24876
24856
|
}, {
|
|
24877
24857
|
default: F(() => [
|
|
@@ -24882,7 +24862,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24882
24862
|
]),
|
|
24883
24863
|
_: 2
|
|
24884
24864
|
}, 1032, ["auth-function"]),
|
|
24885
|
-
!f.value && !m.value && p(h) ? (E(), H(p(
|
|
24865
|
+
!f.value && !m.value && p(h) ? (E(), H(p(Bn), {
|
|
24886
24866
|
key: 0,
|
|
24887
24867
|
"auth-function": () => e.canConfigureDynamicOrdering(ce)
|
|
24888
24868
|
}, {
|
|
@@ -24895,7 +24875,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
24895
24875
|
]),
|
|
24896
24876
|
_: 2
|
|
24897
24877
|
}, 1032, ["auth-function"])) : Ee("", !0),
|
|
24898
|
-
P(p(
|
|
24878
|
+
P(p(Bn), {
|
|
24899
24879
|
"auth-function": () => e.canDelete(ce)
|
|
24900
24880
|
}, {
|
|
24901
24881
|
default: F(() => [
|
|
@@ -25166,7 +25146,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25166
25146
|
emits: ["closed", "proceed"],
|
|
25167
25147
|
setup(e, { emit: t }) {
|
|
25168
25148
|
var h;
|
|
25169
|
-
const n = e, i = t, { i18nT: o, i18n: { t: r } } = nt.useI18n(), { getMessageFromError: a } = Ui(), { axiosInstance: s } =
|
|
25149
|
+
const n = e, i = t, { i18nT: o, i18n: { t: r } } = nt.useI18n(), { getMessageFromError: a } = Ui(), { axiosInstance: s } = Kn((h = n.config) == null ? void 0 : h.axiosRequestConfig), l = M(() => {
|
|
25170
25150
|
var v;
|
|
25171
25151
|
return d.value ? r("delete.plugin_schema_in_use_title") : r("delete.title", { name: ((v = n.plugin) == null ? void 0 : v.name) || r("delete.custom_plugin") });
|
|
25172
25152
|
}), u = oe(!1), c = oe(""), d = oe(!1), f = M(() => {
|
|
@@ -25672,7 +25652,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25672
25652
|
emits: ["loading", "plugin-clicked", "delete-custom:success"],
|
|
25673
25653
|
setup(e, { emit: t }) {
|
|
25674
25654
|
var Z;
|
|
25675
|
-
const n = e, i = t, o = wh(), r = ea(), { i18n: { t: a } } = nt.useI18n(), { pluginMetaData: s } = nt.usePluginMetaData(), { getMessageFromError: l } = Ui(), { sortAlpha: u, objectsAreEqual: c } = Qr(), d = oe(""), f = oe(!0), m = oe(!1), h = oe(""), v = oe([]), g = oe([]), y = oe({}), b = oe([]), { axiosInstance: _ } =
|
|
25655
|
+
const n = e, i = t, o = wh(), r = ea(), { i18n: { t: a } } = nt.useI18n(), { pluginMetaData: s } = nt.usePluginMetaData(), { getMessageFromError: l } = Ui(), { sortAlpha: u, objectsAreEqual: c } = Qr(), d = oe(""), f = oe(!0), m = oe(!1), h = oe(""), v = oe([]), g = oe([]), y = oe({}), b = oe([]), { axiosInstance: _ } = Kn((Z = n.config) == null ? void 0 : Z.axiosRequestConfig), C = M(() => y.value ? Object.entries(y.value).filter(([q]) => q !== He.CUSTOM_PLUGINS).reduce((q, [, z]) => {
|
|
25676
25656
|
for (const ne of z)
|
|
25677
25657
|
q[ne.id] = ne;
|
|
25678
25658
|
return q;
|
|
@@ -25749,7 +25729,7 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
25749
25729
|
i("loading", q);
|
|
25750
25730
|
});
|
|
25751
25731
|
const j = oe(!1), le = oe(!1), J = oe(!1);
|
|
25752
|
-
return
|
|
25732
|
+
return xn(async () => {
|
|
25753
25733
|
j.value = await n.canCreateCustomPlugin(), le.value = await n.canEditCustomPlugin(), J.value = await n.canDeleteCustomPlugin();
|
|
25754
25734
|
}), It(async () => {
|
|
25755
25735
|
try {
|
|
@@ -26005,14 +25985,14 @@ const Kd = iu.options, iK = _e.string().min(1).refine((e) => !e.includes("."), "
|
|
|
26005
25985
|
}), a(_, O, B);
|
|
26006
25986
|
}
|
|
26007
25987
|
return _;
|
|
26008
|
-
}), { getMessageFromError: f } = Ui(), { axiosInstance: m } =
|
|
25988
|
+
}), { getMessageFromError: f } = Ui(), { axiosInstance: m } = Kn((b = i.config) == null ? void 0 : b.axiosRequestConfig), h = M(() => {
|
|
26009
25989
|
var C, x;
|
|
26010
25990
|
let _ = `${i.config.apiBaseUrl}${lt.form[i.config.app].pluginSchema}`;
|
|
26011
25991
|
return i.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((C = i.config) == null ? void 0 : C.controlPlaneId) || "") : i.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (x = i.config) != null && x.workspace ? `/${i.config.workspace}` : "")), _ = _.replace(/{plugin}/gi, i.config.pluginType), _;
|
|
26012
25992
|
}), v = oe({});
|
|
26013
25993
|
_h(v);
|
|
26014
25994
|
const g = oe(!1), y = oe("");
|
|
26015
|
-
return
|
|
25995
|
+
return xn(async () => {
|
|
26016
25996
|
g.value = !0;
|
|
26017
25997
|
try {
|
|
26018
25998
|
const { data: _ } = await m.get(h.value);
|