@a2simcode/dui 0.0.20 → 0.0.21
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/dui.es.js +683 -685
- package/dist/dui.umd.js +3 -3
- package/package.json +1 -1
package/dist/dui.es.js
CHANGED
|
@@ -57,7 +57,7 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
57
57
|
copyComponent: S,
|
|
58
58
|
activedComponent: _,
|
|
59
59
|
top: g
|
|
60
|
-
} = _t("d-drag-design-provide", {}), w = [], A = de(!1), $ = de(!1), F = de(!1),
|
|
60
|
+
} = _t("d-drag-design-provide", {}), w = [], A = de(!1), $ = de(!1), F = de(!1), W = de(!1), G = de(!1), E = { id: "", type: "" }, k = de(!1), C = de(!1);
|
|
61
61
|
let H = "", b = null;
|
|
62
62
|
const N = (X) => {
|
|
63
63
|
if (H === X)
|
|
@@ -95,7 +95,7 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
95
95
|
if (!$.value) {
|
|
96
96
|
if (l(s), a !== 0) {
|
|
97
97
|
const X = t.value.getBoundingClientRect(), te = u();
|
|
98
|
-
X.top - te.top < 22 ?
|
|
98
|
+
X.top - te.top < 22 ? W.value = !0 : W.value = !1;
|
|
99
99
|
}
|
|
100
100
|
$.value = !0, je("dragClick", {
|
|
101
101
|
id: s
|
|
@@ -125,7 +125,7 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
125
125
|
se > 0 && s === w[se - 1] ? A.value = !0 : A.value = !1;
|
|
126
126
|
},
|
|
127
127
|
dragAciveChild: ({ type: X, id: te }) => {
|
|
128
|
-
te === s ? X === "top" ? (
|
|
128
|
+
te === s ? X === "top" ? (k.value = !0, C.value = !1) : (C.value = !0, k.value = !1) : (C.value = !1, k.value = !1);
|
|
129
129
|
},
|
|
130
130
|
// 广播点击事件
|
|
131
131
|
dragClick({ id: X, isAgain: te }) {
|
|
@@ -140,7 +140,7 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
140
140
|
const ie = N(se);
|
|
141
141
|
return v(X, te, ie);
|
|
142
142
|
};
|
|
143
|
-
const
|
|
143
|
+
const q = {
|
|
144
144
|
// 判断是否在当前容器里
|
|
145
145
|
isInContainer({ x: X, y: te, id: se, moveId: ie }) {
|
|
146
146
|
if (s === se || d(se, s))
|
|
@@ -225,8 +225,8 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
225
225
|
return mt(() => {
|
|
226
226
|
(!i || n !== "container") && Object.keys(V).forEach((X) => {
|
|
227
227
|
Q[X] = Is(X, V[X]);
|
|
228
|
-
}), n === "container" && Object.keys(
|
|
229
|
-
Q[X] = Is(X,
|
|
228
|
+
}), n === "container" && Object.keys(q).forEach((X) => {
|
|
229
|
+
Q[X] = Is(X, q[X]);
|
|
230
230
|
}), e.isNewAdd && Ge(() => {
|
|
231
231
|
D(), delete e.isNewAdd;
|
|
232
232
|
});
|
|
@@ -242,12 +242,12 @@ const bn = (t, e) => (t.install = (n) => {
|
|
|
242
242
|
deleteComponentByClick: z,
|
|
243
243
|
copyComponent: S,
|
|
244
244
|
getParentComponents: m,
|
|
245
|
-
isBottomToolBar:
|
|
245
|
+
isBottomToolBar: W,
|
|
246
246
|
isHover: A,
|
|
247
247
|
isSelect: $,
|
|
248
248
|
isToContainer: F,
|
|
249
249
|
isMoveingInTopLevel: G,
|
|
250
|
-
isTopActive:
|
|
250
|
+
isTopActive: k,
|
|
251
251
|
isBottomActive: C
|
|
252
252
|
};
|
|
253
253
|
}, ul = (t, e) => {
|
|
@@ -979,7 +979,7 @@ function fd(t, e, n, o) {
|
|
|
979
979
|
$.status === "pending" && ($.status = "aborted");
|
|
980
980
|
}), f = [];
|
|
981
981
|
}
|
|
982
|
-
function w($, F,
|
|
982
|
+
function w($, F, W) {
|
|
983
983
|
const G = F !== "success";
|
|
984
984
|
switch (f = f.filter((E) => E !== $), u) {
|
|
985
985
|
case "pending":
|
|
@@ -992,11 +992,11 @@ function fd(t, e, n, o) {
|
|
|
992
992
|
return;
|
|
993
993
|
}
|
|
994
994
|
if (F === "abort") {
|
|
995
|
-
c =
|
|
995
|
+
c = W, _();
|
|
996
996
|
return;
|
|
997
997
|
}
|
|
998
998
|
if (G) {
|
|
999
|
-
c =
|
|
999
|
+
c = W, f.length || (s.length ? A() : _());
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
1002
1002
|
if (m(), g(), !t.random) {
|
|
@@ -1004,7 +1004,7 @@ function fd(t, e, n, o) {
|
|
|
1004
1004
|
E !== -1 && E !== t.index && (t.index = E);
|
|
1005
1005
|
}
|
|
1006
1006
|
u = "completed", h.forEach((E) => {
|
|
1007
|
-
E(
|
|
1007
|
+
E(W);
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
function A() {
|
|
@@ -1025,8 +1025,8 @@ function fd(t, e, n, o) {
|
|
|
1025
1025
|
const F = {
|
|
1026
1026
|
status: "pending",
|
|
1027
1027
|
resource: $,
|
|
1028
|
-
callback: (
|
|
1029
|
-
w(F,
|
|
1028
|
+
callback: (W, G) => {
|
|
1029
|
+
w(F, W, G);
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
1032
|
f.push(F), l++, d = setTimeout(A, t.rotate), n($, e, F.callback);
|
|
@@ -2992,46 +2992,46 @@ function Hh() {
|
|
|
2992
2992
|
}
|
|
2993
2993
|
function y(w, A) {
|
|
2994
2994
|
if (t.call(this, w, A)) {
|
|
2995
|
-
var $ = w.changedTouches, F = e.call(this, w, A),
|
|
2996
|
-
for (G = 0; G <
|
|
2995
|
+
var $ = w.changedTouches, F = e.call(this, w, A), W = $.length, G, E;
|
|
2996
|
+
for (G = 0; G < W; ++G)
|
|
2997
2997
|
(E = g(this, F, w, A, $[G].identifier, $[G])) && (tr(w), E("start", w, $[G]));
|
|
2998
2998
|
}
|
|
2999
2999
|
}
|
|
3000
3000
|
function S(w) {
|
|
3001
|
-
var A = w.changedTouches, $ = A.length, F,
|
|
3001
|
+
var A = w.changedTouches, $ = A.length, F, W;
|
|
3002
3002
|
for (F = 0; F < $; ++F)
|
|
3003
|
-
(
|
|
3003
|
+
(W = i[A[F].identifier]) && (Tn(w), W("drag", w, A[F]));
|
|
3004
3004
|
}
|
|
3005
3005
|
function _(w) {
|
|
3006
|
-
var A = w.changedTouches, $ = A.length, F,
|
|
3006
|
+
var A = w.changedTouches, $ = A.length, F, W;
|
|
3007
3007
|
for (c && clearTimeout(c), c = setTimeout(function() {
|
|
3008
3008
|
c = null;
|
|
3009
3009
|
}, 500), F = 0; F < $; ++F)
|
|
3010
|
-
(
|
|
3010
|
+
(W = i[A[F].identifier]) && (tr(w), W("end", w, A[F]));
|
|
3011
3011
|
}
|
|
3012
|
-
function g(w, A, $, F,
|
|
3013
|
-
var E = r.copy(),
|
|
3012
|
+
function g(w, A, $, F, W, G) {
|
|
3013
|
+
var E = r.copy(), k = kt(G || $, A), C, H, b;
|
|
3014
3014
|
if ((b = n.call(w, new Ir("beforestart", {
|
|
3015
3015
|
sourceEvent: $,
|
|
3016
3016
|
target: f,
|
|
3017
|
-
identifier:
|
|
3017
|
+
identifier: W,
|
|
3018
3018
|
active: s,
|
|
3019
|
-
x:
|
|
3020
|
-
y:
|
|
3019
|
+
x: k[0],
|
|
3020
|
+
y: k[1],
|
|
3021
3021
|
dx: 0,
|
|
3022
3022
|
dy: 0,
|
|
3023
3023
|
dispatch: E
|
|
3024
3024
|
}), F)) != null)
|
|
3025
|
-
return C = b.x -
|
|
3026
|
-
var z =
|
|
3025
|
+
return C = b.x - k[0] || 0, H = b.y - k[1] || 0, function N(v, x, D) {
|
|
3026
|
+
var z = k, R;
|
|
3027
3027
|
switch (v) {
|
|
3028
3028
|
case "start":
|
|
3029
|
-
i[
|
|
3029
|
+
i[W] = N, R = s++;
|
|
3030
3030
|
break;
|
|
3031
3031
|
case "end":
|
|
3032
|
-
delete i[
|
|
3032
|
+
delete i[W], --s;
|
|
3033
3033
|
case "drag":
|
|
3034
|
-
|
|
3034
|
+
k = kt(D || x, A), R = s;
|
|
3035
3035
|
break;
|
|
3036
3036
|
}
|
|
3037
3037
|
E.call(
|
|
@@ -3041,12 +3041,12 @@ function Hh() {
|
|
|
3041
3041
|
sourceEvent: x,
|
|
3042
3042
|
subject: b,
|
|
3043
3043
|
target: f,
|
|
3044
|
-
identifier:
|
|
3044
|
+
identifier: W,
|
|
3045
3045
|
active: R,
|
|
3046
|
-
x:
|
|
3047
|
-
y:
|
|
3048
|
-
dx:
|
|
3049
|
-
dy:
|
|
3046
|
+
x: k[0] + C,
|
|
3047
|
+
y: k[1] + H,
|
|
3048
|
+
dx: k[0] - z[0],
|
|
3049
|
+
dy: k[1] - z[1],
|
|
3050
3050
|
dispatch: E
|
|
3051
3051
|
}),
|
|
3052
3052
|
F
|
|
@@ -3556,11 +3556,11 @@ const qo = (function t(e, n, o) {
|
|
|
3556
3556
|
else {
|
|
3557
3557
|
var _ = Math.sqrt(p), g = (f * f - l * l + o * p) / (2 * l * n * _), w = (f * f - l * l - o * p) / (2 * f * n * _), A = Math.log(Math.sqrt(g * g + 1) - g), $ = Math.log(Math.sqrt(w * w + 1) - w);
|
|
3558
3558
|
S = ($ - A) / e, y = function(F) {
|
|
3559
|
-
var
|
|
3559
|
+
var W = F * S, G = ia(A), E = l / (n * _) * (G * hg(e * W + A) - fg(A));
|
|
3560
3560
|
return [
|
|
3561
3561
|
a + E * h,
|
|
3562
3562
|
u + E * m,
|
|
3563
|
-
l * G / ia(e *
|
|
3563
|
+
l * G / ia(e * W + A)
|
|
3564
3564
|
];
|
|
3565
3565
|
};
|
|
3566
3566
|
}
|
|
@@ -4264,7 +4264,7 @@ function Ip(t, e, n) {
|
|
|
4264
4264
|
function Mp() {
|
|
4265
4265
|
var t = Dp, e = Np, n = Ip, o = Tp, i = kp, r = [0, 1 / 0], s = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, u = qo, l = Bi("start", "zoom", "end"), c, d, f, h = 500, m = 150, p = 0, y = 10;
|
|
4266
4266
|
function S(b) {
|
|
4267
|
-
b.property("__zoom", ca).on("wheel.zoom",
|
|
4267
|
+
b.property("__zoom", ca).on("wheel.zoom", W, { passive: !1 }).on("mousedown.zoom", G).on("dblclick.zoom", E).filter(i).on("touchstart.zoom", k).on("touchmove.zoom", C).on("touchend.zoom touchcancel.zoom", H).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
4268
4268
|
}
|
|
4269
4269
|
S.transform = function(b, N, v, x) {
|
|
4270
4270
|
var D = b.selection ? b.selection() : b;
|
|
@@ -4313,10 +4313,10 @@ function Mp() {
|
|
|
4313
4313
|
}).on("interrupt.zoom end.zoom", function() {
|
|
4314
4314
|
$(this, arguments).event(x).end();
|
|
4315
4315
|
}).tween("zoom", function() {
|
|
4316
|
-
var D = this, z = arguments, R = $(D, z).event(x), M = e.apply(D, z), O = v == null ? w(M) : typeof v == "function" ? v.apply(D, z) : v, L = Math.max(M[1][0] - M[0][0], M[1][1] - M[0][1]), V = D.__zoom,
|
|
4316
|
+
var D = this, z = arguments, R = $(D, z).event(x), M = e.apply(D, z), O = v == null ? w(M) : typeof v == "function" ? v.apply(D, z) : v, L = Math.max(M[1][0] - M[0][0], M[1][1] - M[0][1]), V = D.__zoom, q = typeof N == "function" ? N.apply(D, z) : N, Q = u(V.invert(O).concat(L / V.k), q.invert(O).concat(L / q.k));
|
|
4317
4317
|
return function(X) {
|
|
4318
4318
|
if (X === 1)
|
|
4319
|
-
X =
|
|
4319
|
+
X = q;
|
|
4320
4320
|
else {
|
|
4321
4321
|
var te = Q(X), se = L / te[2];
|
|
4322
4322
|
X = new Yt(se, O[0] - te[0] * se, O[1] - te[1] * se);
|
|
@@ -4359,7 +4359,7 @@ function Mp() {
|
|
|
4359
4359
|
);
|
|
4360
4360
|
}
|
|
4361
4361
|
};
|
|
4362
|
-
function
|
|
4362
|
+
function W(b, ...N) {
|
|
4363
4363
|
if (!t.apply(this, arguments))
|
|
4364
4364
|
return;
|
|
4365
4365
|
var v = $(this, N).event(b), x = this.__zoom, D = Math.max(r[0], Math.min(r[1], x.k * Math.pow(2, o.apply(this, arguments)))), z = kt(b);
|
|
@@ -4382,8 +4382,8 @@ function Mp() {
|
|
|
4382
4382
|
Vl(b.view), ir(b), x.mouse = [z, this.__zoom.invert(z)], Jo(this), x.start();
|
|
4383
4383
|
function O(V) {
|
|
4384
4384
|
if (Wn(V), !x.moved) {
|
|
4385
|
-
var
|
|
4386
|
-
x.moved =
|
|
4385
|
+
var q = V.clientX - R, Q = V.clientY - M;
|
|
4386
|
+
x.moved = q * q + Q * Q > p;
|
|
4387
4387
|
}
|
|
4388
4388
|
x.event(V).zoom("mouse", n(g(x.that.__zoom, x.mouse[0] = kt(V, v), x.mouse[1]), x.extent, s));
|
|
4389
4389
|
}
|
|
@@ -4397,7 +4397,7 @@ function Mp() {
|
|
|
4397
4397
|
Wn(b), a > 0 ? St(this).transition().duration(a).call(A, R, x, b) : St(this).call(S.transform, R, x, b);
|
|
4398
4398
|
}
|
|
4399
4399
|
}
|
|
4400
|
-
function
|
|
4400
|
+
function k(b, ...N) {
|
|
4401
4401
|
if (t.apply(this, arguments)) {
|
|
4402
4402
|
var v = b.touches, x = v.length, D = $(this, N, b.changedTouches.length === x).event(b), z, R, M, O;
|
|
4403
4403
|
for (ir(b), R = 0; R < x; ++R)
|
|
@@ -4413,8 +4413,8 @@ function Mp() {
|
|
|
4413
4413
|
for (Wn(b), z = 0; z < D; ++z)
|
|
4414
4414
|
R = x[z], M = kt(R, this), v.touch0 && v.touch0[2] === R.identifier ? v.touch0[0] = M : v.touch1 && v.touch1[2] === R.identifier && (v.touch1[0] = M);
|
|
4415
4415
|
if (R = v.that.__zoom, v.touch1) {
|
|
4416
|
-
var L = v.touch0[0], V = v.touch0[1],
|
|
4417
|
-
R = _(R, Math.sqrt(X / te)), M = [(L[0] +
|
|
4416
|
+
var L = v.touch0[0], V = v.touch0[1], q = v.touch1[0], Q = v.touch1[1], X = (X = q[0] - L[0]) * X + (X = q[1] - L[1]) * X, te = (te = Q[0] - V[0]) * te + (te = Q[1] - V[1]) * te;
|
|
4417
|
+
R = _(R, Math.sqrt(X / te)), M = [(L[0] + q[0]) / 2, (L[1] + q[1]) / 2], O = [(V[0] + Q[0]) / 2, (V[1] + Q[1]) / 2];
|
|
4418
4418
|
} else if (v.touch0)
|
|
4419
4419
|
M = v.touch0[0], O = v.touch0[1];
|
|
4420
4420
|
else
|
|
@@ -5297,7 +5297,7 @@ function Ca(t, {
|
|
|
5297
5297
|
toHandle: null
|
|
5298
5298
|
};
|
|
5299
5299
|
if (g) {
|
|
5300
|
-
const A = yc(void 0, g), $ = g.getAttribute("data-nodeid"), F = g.getAttribute("data-handleid"),
|
|
5300
|
+
const A = yc(void 0, g), $ = g.getAttribute("data-nodeid"), F = g.getAttribute("data-handleid"), W = g.classList.contains("connectable"), G = g.classList.contains("connectableend");
|
|
5301
5301
|
if (!$ || !A)
|
|
5302
5302
|
return w;
|
|
5303
5303
|
const E = {
|
|
@@ -5307,7 +5307,7 @@ function Ca(t, {
|
|
|
5307
5307
|
targetHandle: m ? i : F
|
|
5308
5308
|
};
|
|
5309
5309
|
w.connection = E;
|
|
5310
|
-
const C =
|
|
5310
|
+
const C = W && G && (n === Kt.Strict ? m && A === "source" || !m && A === "target" : $ !== o || F !== i);
|
|
5311
5311
|
w.isValid = C && l(E, {
|
|
5312
5312
|
nodes: d,
|
|
5313
5313
|
edges: c,
|
|
@@ -5500,9 +5500,9 @@ function Cc(t) {
|
|
|
5500
5500
|
addSelectedNodes: _,
|
|
5501
5501
|
updateNodePositions: g,
|
|
5502
5502
|
emits: w
|
|
5503
|
-
} = Re(), { onStart: A, onDrag: $, onStop: F, onClick:
|
|
5503
|
+
} = Re(), { onStart: A, onDrag: $, onStop: F, onClick: W, el: G, disabled: E, id: k, selectable: C, dragHandle: H } = t, b = $t(!1);
|
|
5504
5504
|
let N = [], v, x = null, D = { x: void 0, y: void 0 }, z = { x: 0, y: 0 }, R = null, M = !1, O = !1, L = 0, V = !1;
|
|
5505
|
-
const
|
|
5505
|
+
const q = pm(), Q = ({ x: re, y: ae }) => {
|
|
5506
5506
|
D = { x: re, y: ae };
|
|
5507
5507
|
let P = !1;
|
|
5508
5508
|
if (N = N.map((I) => {
|
|
@@ -5516,7 +5516,7 @@ function Cc(t) {
|
|
|
5516
5516
|
return P = P || I.position.x !== U.x || I.position.y !== U.y, I.position = U, I;
|
|
5517
5517
|
}), O = O || P, !!P && (g(N, !0, !0), b.value = !0, R)) {
|
|
5518
5518
|
const [I, B] = sr({
|
|
5519
|
-
id:
|
|
5519
|
+
id: k,
|
|
5520
5520
|
dragItems: N,
|
|
5521
5521
|
findNode: h
|
|
5522
5522
|
});
|
|
@@ -5536,7 +5536,7 @@ function Cc(t) {
|
|
|
5536
5536
|
L = requestAnimationFrame(X);
|
|
5537
5537
|
}, te = (re, ae) => {
|
|
5538
5538
|
M = !0;
|
|
5539
|
-
const P = h(
|
|
5539
|
+
const P = h(k);
|
|
5540
5540
|
!y.value && !m.value && P && (P.selected || S()), P && Ie(C) && y.value && Br(
|
|
5541
5541
|
P,
|
|
5542
5542
|
m.value,
|
|
@@ -5546,10 +5546,10 @@ function Cc(t) {
|
|
|
5546
5546
|
!1,
|
|
5547
5547
|
ae
|
|
5548
5548
|
);
|
|
5549
|
-
const I =
|
|
5550
|
-
if (D = I, N = Xp(r.value, d.value, I,
|
|
5549
|
+
const I = q(re.sourceEvent);
|
|
5550
|
+
if (D = I, N = Xp(r.value, d.value, I, k), N.length) {
|
|
5551
5551
|
const [B, U] = sr({
|
|
5552
|
-
id:
|
|
5552
|
+
id: k,
|
|
5553
5553
|
dragItems: N,
|
|
5554
5554
|
findNode: h
|
|
5555
5555
|
});
|
|
@@ -5557,9 +5557,9 @@ function Cc(t) {
|
|
|
5557
5557
|
}
|
|
5558
5558
|
}, se = (re, ae) => {
|
|
5559
5559
|
var P;
|
|
5560
|
-
re.sourceEvent.type === "touchmove" && re.sourceEvent.touches.length > 1 || (O = !1, a.value === 0 && te(re, ae), D =
|
|
5560
|
+
re.sourceEvent.type === "touchmove" && re.sourceEvent.touches.length > 1 || (O = !1, a.value === 0 && te(re, ae), D = q(re.sourceEvent), x = ((P = e.value) == null ? void 0 : P.getBoundingClientRect()) || null, z = Mt(re.sourceEvent, x));
|
|
5561
5561
|
}, ie = (re, ae) => {
|
|
5562
|
-
const P =
|
|
5562
|
+
const P = q(re.sourceEvent);
|
|
5563
5563
|
if (!V && M && l.value && (V = !0, X()), !M) {
|
|
5564
5564
|
const I = P.xSnapped - (D.x ?? 0), B = P.ySnapped - (D.y ?? 0);
|
|
5565
5565
|
Math.sqrt(I * I + B * B) > a.value && te(re, ae);
|
|
@@ -5568,13 +5568,13 @@ function Cc(t) {
|
|
|
5568
5568
|
}, ge = (re) => {
|
|
5569
5569
|
let ae = !1;
|
|
5570
5570
|
if (!M && !b.value && !m.value) {
|
|
5571
|
-
const P = re.sourceEvent, I =
|
|
5572
|
-
|
|
5571
|
+
const P = re.sourceEvent, I = q(P), B = I.xSnapped - (D.x ?? 0), U = I.ySnapped - (D.y ?? 0), T = Math.sqrt(B * B + U * U);
|
|
5572
|
+
T !== 0 && T <= a.value && (W?.(P), ae = !0);
|
|
5573
5573
|
}
|
|
5574
5574
|
if (N.length && !ae) {
|
|
5575
5575
|
O && (g(N, !1, !1), O = !1);
|
|
5576
5576
|
const [P, I] = sr({
|
|
5577
|
-
id:
|
|
5577
|
+
id: k,
|
|
5578
5578
|
dragItems: N,
|
|
5579
5579
|
findNode: h
|
|
5580
5580
|
});
|
|
@@ -5586,8 +5586,8 @@ function Cc(t) {
|
|
|
5586
5586
|
if (ae) {
|
|
5587
5587
|
const B = St(ae);
|
|
5588
5588
|
re || (v = Hh().on("start", (U) => se(U, ae)).on("drag", (U) => ie(U, ae)).on("end", (U) => ge(U)).filter((U) => {
|
|
5589
|
-
const
|
|
5590
|
-
return !U.button && (!i.value || !_a(
|
|
5589
|
+
const T = U.target, Y = Ie(H);
|
|
5590
|
+
return !U.button && (!i.value || !_a(T, `.${i.value}`, ae) && (!Y || _a(T, Y, ae)));
|
|
5591
5591
|
}), B.call(v)), I(() => {
|
|
5592
5592
|
B.on(".drag", null), v && (v.on("start", null), v.on("drag", null), v.on("end", null));
|
|
5593
5593
|
});
|
|
@@ -5683,11 +5683,11 @@ function Ec({
|
|
|
5683
5683
|
emits: A,
|
|
5684
5684
|
viewport: $,
|
|
5685
5685
|
edges: F,
|
|
5686
|
-
nodes:
|
|
5686
|
+
nodes: W,
|
|
5687
5687
|
isValidConnection: G,
|
|
5688
5688
|
nodeLookup: E
|
|
5689
5689
|
} = Re();
|
|
5690
|
-
let
|
|
5690
|
+
let k = null, C = !1, H = null;
|
|
5691
5691
|
function b(v) {
|
|
5692
5692
|
var x;
|
|
5693
5693
|
const D = Ie(n) === "target", z = ds(v), R = da(v.target), M = v.currentTarget;
|
|
@@ -5707,28 +5707,28 @@ function Ec({
|
|
|
5707
5707
|
fromNodeId: Ie(e),
|
|
5708
5708
|
fromHandleId: Ie(t),
|
|
5709
5709
|
fromType: D ? "target" : "source",
|
|
5710
|
-
isValidConnection:
|
|
5710
|
+
isValidConnection: q,
|
|
5711
5711
|
doc: R,
|
|
5712
5712
|
lib: "vue",
|
|
5713
5713
|
flowId: a,
|
|
5714
5714
|
nodeLookup: E.value
|
|
5715
5715
|
},
|
|
5716
5716
|
F.value,
|
|
5717
|
-
|
|
5717
|
+
W.value,
|
|
5718
5718
|
y,
|
|
5719
5719
|
E.value
|
|
5720
5720
|
);
|
|
5721
|
-
H = ne.handleDomNode,
|
|
5721
|
+
H = ne.handleDomNode, k = ne.connection, C = am(!!Q, ne.isValid);
|
|
5722
5722
|
const ye = {
|
|
5723
5723
|
// from stays the same
|
|
5724
|
-
...
|
|
5724
|
+
...K,
|
|
5725
5725
|
isValid: C,
|
|
5726
5726
|
to: ne.toHandle && C ? mo({ x: ne.toHandle.x, y: ne.toHandle.y }, $.value) : P,
|
|
5727
5727
|
toHandle: ne.toHandle,
|
|
5728
5728
|
toPosition: C && ne.toHandle ? ne.toHandle.position : Hr[U.position],
|
|
5729
5729
|
toNode: ne.toHandle ? E.value.get(ne.toHandle.nodeId) : null
|
|
5730
5730
|
};
|
|
5731
|
-
if (C && Q &&
|
|
5731
|
+
if (C && Q && K?.toHandle && ye.toHandle && K.toHandle.type === ye.toHandle.type && K.toHandle.nodeId === ye.toHandle.nodeId && K.toHandle.id === ye.toHandle.id && K.to.x === ye.to.x && K.to.y === ye.to.y)
|
|
5732
5732
|
return;
|
|
5733
5733
|
const _e = Q ?? ne.toHandle;
|
|
5734
5734
|
if (g(
|
|
@@ -5741,15 +5741,15 @@ function Ec({
|
|
|
5741
5741
|
) : P,
|
|
5742
5742
|
_e,
|
|
5743
5743
|
sm(!!_e, C)
|
|
5744
|
-
),
|
|
5744
|
+
), K = ye, !Q && !C && !H)
|
|
5745
5745
|
return ar(ae);
|
|
5746
|
-
|
|
5746
|
+
k && k.source !== k.target && H && (ar(ae), ae = H, H.classList.add("connecting", "vue-flow__handle-connecting"), H.classList.toggle("valid", !!C), H.classList.toggle("vue-flow__handle-valid", !!C));
|
|
5747
5747
|
}, L = function(oe) {
|
|
5748
|
-
"touches" in oe && oe.touches.length > 0 || ((Q || H) &&
|
|
5748
|
+
"touches" in oe && oe.touches.length > 0 || ((Q || H) && k && C && (r ? r(oe, k) : A.connect(k)), A.connectEnd(oe), i && s?.(oe), ar(ae), cancelAnimationFrame(X), w(oe), I = !1, C = !1, k = null, H = null, R.removeEventListener("mousemove", O), R.removeEventListener("mouseup", L), R.removeEventListener("touchmove", O), R.removeEventListener("touchend", L));
|
|
5749
5749
|
};
|
|
5750
5750
|
const V = y(Ie(e));
|
|
5751
|
-
let
|
|
5752
|
-
!
|
|
5751
|
+
let q = Ie(o) || G.value || Po;
|
|
5752
|
+
!q && V && (q = (D ? V.isValidSourcePos : V.isValidTargetPos) || Po);
|
|
5753
5753
|
let Q, X = 0;
|
|
5754
5754
|
const { x: te, y: se } = Mt(v), ie = yc(Ie(i), M), ge = (x = u.value) == null ? void 0 : x.getBoundingClientRect();
|
|
5755
5755
|
if (!ge || !ie)
|
|
@@ -5768,13 +5768,13 @@ function Ec({
|
|
|
5768
5768
|
nodeId: Ie(e),
|
|
5769
5769
|
type: ie,
|
|
5770
5770
|
position: re.position
|
|
5771
|
-
},
|
|
5771
|
+
}, T = E.value.get(Ie(e)), j = {
|
|
5772
5772
|
inProgress: !0,
|
|
5773
5773
|
isValid: null,
|
|
5774
|
-
from: Hn(
|
|
5774
|
+
from: Hn(T, U, me.Left, !0),
|
|
5775
5775
|
fromHandle: U,
|
|
5776
5776
|
fromPosition: U.position,
|
|
5777
|
-
fromNode:
|
|
5777
|
+
fromNode: T,
|
|
5778
5778
|
to: P,
|
|
5779
5779
|
toHandle: null,
|
|
5780
5780
|
toPosition: Hr[U.position],
|
|
@@ -5793,7 +5793,7 @@ function Ec({
|
|
|
5793
5793
|
y: se - ge.top
|
|
5794
5794
|
}
|
|
5795
5795
|
), A.connectStart({ event: v, nodeId: Ie(e), handleId: Ie(t), handleType: ie });
|
|
5796
|
-
let
|
|
5796
|
+
let K = j;
|
|
5797
5797
|
R.addEventListener("mousemove", O), R.addEventListener("mouseup", L), R.addEventListener("touchmove", O), R.addEventListener("touchend", L);
|
|
5798
5798
|
}
|
|
5799
5799
|
}
|
|
@@ -5841,7 +5841,7 @@ function Ec({
|
|
|
5841
5841
|
nodeLookup: E.value
|
|
5842
5842
|
},
|
|
5843
5843
|
F.value,
|
|
5844
|
-
|
|
5844
|
+
W.value,
|
|
5845
5845
|
y,
|
|
5846
5846
|
E.value
|
|
5847
5847
|
), V = ((x = L.connection) == null ? void 0 : x.source) === ((D = L.connection) == null ? void 0 : D.target);
|
|
@@ -6438,8 +6438,8 @@ function Nm(t, e, n) {
|
|
|
6438
6438
|
t.hooks.updateNodeInternals.trigger(I);
|
|
6439
6439
|
}, r = (P) => Fp(P, t.nodes, t.edges), s = (P) => Lp(P, t.nodes, t.edges), a = (P) => gc(P, t.edges), u = ({ id: P, type: I, nodeId: B }) => {
|
|
6440
6440
|
var U;
|
|
6441
|
-
const
|
|
6442
|
-
return Array.from(((U = t.connectionLookup.get(`${B}${
|
|
6441
|
+
const T = P ? `-${I}-${P}` : `-${I}`;
|
|
6442
|
+
return Array.from(((U = t.connectionLookup.get(`${B}${T}`)) == null ? void 0 : U.values()) ?? []);
|
|
6443
6443
|
}, l = (P) => {
|
|
6444
6444
|
if (P)
|
|
6445
6445
|
return e.value.get(P);
|
|
@@ -6447,40 +6447,40 @@ function Nm(t, e, n) {
|
|
|
6447
6447
|
if (P)
|
|
6448
6448
|
return n.value.get(P);
|
|
6449
6449
|
}, d = (P, I, B) => {
|
|
6450
|
-
var U,
|
|
6451
|
-
const
|
|
6450
|
+
var U, T;
|
|
6451
|
+
const Y = [];
|
|
6452
6452
|
for (const j of P) {
|
|
6453
|
-
const
|
|
6453
|
+
const K = {
|
|
6454
6454
|
id: j.id,
|
|
6455
6455
|
type: "position",
|
|
6456
6456
|
dragging: B,
|
|
6457
6457
|
from: j.from
|
|
6458
6458
|
};
|
|
6459
|
-
if (I && (
|
|
6459
|
+
if (I && (K.position = j.position, j.parentNode)) {
|
|
6460
6460
|
const oe = l(j.parentNode);
|
|
6461
|
-
|
|
6462
|
-
x:
|
|
6463
|
-
y:
|
|
6461
|
+
K.position = {
|
|
6462
|
+
x: K.position.x - (((U = oe?.computedPosition) == null ? void 0 : U.x) ?? 0),
|
|
6463
|
+
y: K.position.y - (((T = oe?.computedPosition) == null ? void 0 : T.y) ?? 0)
|
|
6464
6464
|
};
|
|
6465
6465
|
}
|
|
6466
|
-
|
|
6466
|
+
Y.push(K);
|
|
6467
6467
|
}
|
|
6468
|
-
|
|
6468
|
+
Y?.length && t.hooks.nodesChange.trigger(Y);
|
|
6469
6469
|
}, f = (P) => {
|
|
6470
6470
|
if (!t.vueFlowRef)
|
|
6471
6471
|
return;
|
|
6472
6472
|
const I = t.vueFlowRef.querySelector(".vue-flow__transformationpane");
|
|
6473
6473
|
if (!I)
|
|
6474
6474
|
return;
|
|
6475
|
-
const B = window.getComputedStyle(I), { m22: U } = new window.DOMMatrixReadOnly(B.transform),
|
|
6476
|
-
for (const
|
|
6477
|
-
const j =
|
|
6478
|
-
if (
|
|
6475
|
+
const B = window.getComputedStyle(I), { m22: U } = new window.DOMMatrixReadOnly(B.transform), T = [];
|
|
6476
|
+
for (const Y of P) {
|
|
6477
|
+
const j = Y, K = l(j.id);
|
|
6478
|
+
if (K) {
|
|
6479
6479
|
const oe = Gi(j.nodeElement);
|
|
6480
|
-
if (!!(oe.width && oe.height && (
|
|
6480
|
+
if (!!(oe.width && oe.height && (K.dimensions.width !== oe.width || K.dimensions.height !== oe.height || j.forceUpdate))) {
|
|
6481
6481
|
const ye = j.nodeElement.getBoundingClientRect();
|
|
6482
|
-
|
|
6483
|
-
id:
|
|
6482
|
+
K.dimensions = oe, K.handleBounds.source = Ea("source", j.nodeElement, ye, U, K.id), K.handleBounds.target = Ea("target", j.nodeElement, ye, U, K.id), T.push({
|
|
6483
|
+
id: K.id,
|
|
6484
6484
|
type: "dimensions",
|
|
6485
6485
|
dimensions: oe
|
|
6486
6486
|
});
|
|
@@ -6489,19 +6489,19 @@ function Nm(t, e, n) {
|
|
|
6489
6489
|
}
|
|
6490
6490
|
!t.fitViewOnInitDone && t.fitViewOnInit && o.value.fitView().then(() => {
|
|
6491
6491
|
t.fitViewOnInitDone = !0;
|
|
6492
|
-
}),
|
|
6492
|
+
}), T.length && t.hooks.nodesChange.trigger(T);
|
|
6493
6493
|
}, h = (P, I) => {
|
|
6494
6494
|
const B = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Set();
|
|
6495
6495
|
for (const j of P)
|
|
6496
6496
|
pn(j) ? B.add(j.id) : an(j) && U.add(j.id);
|
|
6497
|
-
const
|
|
6497
|
+
const T = nn(e.value, B, !0), Y = nn(n.value, U);
|
|
6498
6498
|
if (t.multiSelectionActive) {
|
|
6499
6499
|
for (const j of B)
|
|
6500
|
-
|
|
6500
|
+
T.push(tn(j, I));
|
|
6501
6501
|
for (const j of U)
|
|
6502
|
-
|
|
6502
|
+
Y.push(tn(j, I));
|
|
6503
6503
|
}
|
|
6504
|
-
|
|
6504
|
+
T.length && t.hooks.nodesChange.trigger(T), Y.length && t.hooks.edgesChange.trigger(Y);
|
|
6505
6505
|
}, m = (P) => {
|
|
6506
6506
|
if (t.multiSelectionActive) {
|
|
6507
6507
|
const I = P.map((B) => tn(B.id, !0));
|
|
@@ -6529,8 +6529,8 @@ function Nm(t, e, n) {
|
|
|
6529
6529
|
return h([], !1);
|
|
6530
6530
|
const I = P.reduce(
|
|
6531
6531
|
(B, U) => {
|
|
6532
|
-
const
|
|
6533
|
-
return pn(U) ? B.nodes.push(
|
|
6532
|
+
const T = tn(U.id, !1);
|
|
6533
|
+
return pn(U) ? B.nodes.push(T) : B.edges.push(T), B;
|
|
6534
6534
|
},
|
|
6535
6535
|
{ nodes: [], edges: [] }
|
|
6536
6536
|
);
|
|
@@ -6546,7 +6546,7 @@ function Nm(t, e, n) {
|
|
|
6546
6546
|
(I = t.d3Zoom) == null || I.translateExtent(P), t.translateExtent = P;
|
|
6547
6547
|
}, F = (P) => {
|
|
6548
6548
|
t.nodeExtent = P, i();
|
|
6549
|
-
},
|
|
6549
|
+
}, W = (P) => {
|
|
6550
6550
|
var I;
|
|
6551
6551
|
(I = t.d3Zoom) == null || I.clickDistance(P);
|
|
6552
6552
|
}, G = (P) => {
|
|
@@ -6554,7 +6554,7 @@ function Nm(t, e, n) {
|
|
|
6554
6554
|
}, E = (P) => {
|
|
6555
6555
|
const I = P instanceof Function ? P(t.nodes) : P;
|
|
6556
6556
|
!t.initialized && !I.length || (t.nodes = Sa(I, l, t.hooks.error.trigger));
|
|
6557
|
-
},
|
|
6557
|
+
}, k = (P) => {
|
|
6558
6558
|
const I = P instanceof Function ? P(t.edges) : P;
|
|
6559
6559
|
if (!t.initialized && !I.length)
|
|
6560
6560
|
return;
|
|
@@ -6571,13 +6571,13 @@ function Nm(t, e, n) {
|
|
|
6571
6571
|
lr(t.connectionLookup, n.value, B), t.edges = B;
|
|
6572
6572
|
}, C = (P) => {
|
|
6573
6573
|
const I = P instanceof Function ? P([...t.nodes, ...t.edges]) : P;
|
|
6574
|
-
!t.initialized && !I.length || (E(I.filter(pn)),
|
|
6574
|
+
!t.initialized && !I.length || (E(I.filter(pn)), k(I.filter(an)));
|
|
6575
6575
|
}, H = (P) => {
|
|
6576
6576
|
let I = P instanceof Function ? P(t.nodes) : P;
|
|
6577
6577
|
I = Array.isArray(I) ? I : [I];
|
|
6578
6578
|
const B = Sa(I, l, t.hooks.error.trigger), U = [];
|
|
6579
|
-
for (const
|
|
6580
|
-
U.push(ma(
|
|
6579
|
+
for (const T of B)
|
|
6580
|
+
U.push(ma(T));
|
|
6581
6581
|
U.length && t.hooks.nodesChange.trigger(U);
|
|
6582
6582
|
}, b = (P) => {
|
|
6583
6583
|
let I = P instanceof Function ? P(t.edges) : P;
|
|
@@ -6592,12 +6592,12 @@ function Nm(t, e, n) {
|
|
|
6592
6592
|
t.nodes,
|
|
6593
6593
|
t.edges
|
|
6594
6594
|
), U = [];
|
|
6595
|
-
for (const
|
|
6596
|
-
U.push(ma(
|
|
6595
|
+
for (const T of B)
|
|
6596
|
+
U.push(ma(T));
|
|
6597
6597
|
U.length && t.hooks.edgesChange.trigger(U);
|
|
6598
6598
|
}, N = (P, I = !0, B = !1) => {
|
|
6599
|
-
const U = P instanceof Function ? P(t.nodes) : P,
|
|
6600
|
-
function
|
|
6599
|
+
const U = P instanceof Function ? P(t.nodes) : P, T = Array.isArray(U) ? U : [U], Y = [], j = [];
|
|
6600
|
+
function K(ne) {
|
|
6601
6601
|
const ye = a(ne);
|
|
6602
6602
|
for (const _e of ye)
|
|
6603
6603
|
(!qe(_e.deletable) || _e.deletable) && j.push(ya(_e.id, _e.source, _e.target, _e.sourceHandle, _e.targetHandle));
|
|
@@ -6608,28 +6608,28 @@ function Nm(t, e, n) {
|
|
|
6608
6608
|
_e.parentNode === ne && ye.push(_e);
|
|
6609
6609
|
if (ye.length) {
|
|
6610
6610
|
for (const _e of ye)
|
|
6611
|
-
|
|
6612
|
-
I &&
|
|
6611
|
+
Y.push(va(_e.id));
|
|
6612
|
+
I && K(ye);
|
|
6613
6613
|
for (const _e of ye)
|
|
6614
6614
|
oe(_e.id);
|
|
6615
6615
|
}
|
|
6616
6616
|
}
|
|
6617
|
-
for (const ne of
|
|
6617
|
+
for (const ne of T) {
|
|
6618
6618
|
const ye = typeof ne == "string" ? l(ne) : ne;
|
|
6619
|
-
ye && (qe(ye.deletable) && !ye.deletable || (
|
|
6619
|
+
ye && (qe(ye.deletable) && !ye.deletable || (Y.push(va(ye.id)), I && K([ye]), B && oe(ye.id)));
|
|
6620
6620
|
}
|
|
6621
|
-
j.length && t.hooks.edgesChange.trigger(j),
|
|
6621
|
+
j.length && t.hooks.edgesChange.trigger(j), Y.length && t.hooks.nodesChange.trigger(Y);
|
|
6622
6622
|
}, v = (P) => {
|
|
6623
6623
|
const I = P instanceof Function ? P(t.edges) : P, B = Array.isArray(I) ? I : [I], U = [];
|
|
6624
|
-
for (const
|
|
6625
|
-
const
|
|
6626
|
-
|
|
6624
|
+
for (const T of B) {
|
|
6625
|
+
const Y = typeof T == "string" ? c(T) : T;
|
|
6626
|
+
Y && (qe(Y.deletable) && !Y.deletable || U.push(
|
|
6627
6627
|
ya(
|
|
6628
|
-
typeof
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6628
|
+
typeof T == "string" ? T : T.id,
|
|
6629
|
+
Y.source,
|
|
6630
|
+
Y.target,
|
|
6631
|
+
Y.sourceHandle,
|
|
6632
|
+
Y.targetHandle
|
|
6633
6633
|
)
|
|
6634
6634
|
));
|
|
6635
6635
|
}
|
|
@@ -6638,10 +6638,10 @@ function Nm(t, e, n) {
|
|
|
6638
6638
|
const U = c(P.id);
|
|
6639
6639
|
if (!U)
|
|
6640
6640
|
return !1;
|
|
6641
|
-
const
|
|
6642
|
-
if (
|
|
6641
|
+
const T = t.edges.indexOf(U), Y = um(P, I, U, B, t.hooks.error.trigger);
|
|
6642
|
+
if (Y) {
|
|
6643
6643
|
const [j] = cr(
|
|
6644
|
-
[
|
|
6644
|
+
[Y],
|
|
6645
6645
|
t.isValidConnection,
|
|
6646
6646
|
l,
|
|
6647
6647
|
c,
|
|
@@ -6650,15 +6650,15 @@ function Nm(t, e, n) {
|
|
|
6650
6650
|
t.nodes,
|
|
6651
6651
|
t.edges
|
|
6652
6652
|
);
|
|
6653
|
-
return t.edges = t.edges.map((
|
|
6653
|
+
return t.edges = t.edges.map((K, oe) => oe === T ? j : K), lr(t.connectionLookup, n.value, [j]), j;
|
|
6654
6654
|
}
|
|
6655
6655
|
return !1;
|
|
6656
6656
|
}, D = (P, I, B = { replace: !1 }) => {
|
|
6657
6657
|
const U = c(P);
|
|
6658
6658
|
if (!U)
|
|
6659
6659
|
return;
|
|
6660
|
-
const
|
|
6661
|
-
U.data = B.replace ?
|
|
6660
|
+
const T = typeof I == "function" ? I(U) : I;
|
|
6661
|
+
U.data = B.replace ? T : { ...U.data, ...T };
|
|
6662
6662
|
}, z = (P) => pa(P, t.nodes), R = (P) => {
|
|
6663
6663
|
const I = pa(P, t.edges);
|
|
6664
6664
|
return lr(t.connectionLookup, n.value, I), I;
|
|
@@ -6666,50 +6666,50 @@ function Nm(t, e, n) {
|
|
|
6666
6666
|
const U = l(P);
|
|
6667
6667
|
if (!U)
|
|
6668
6668
|
return;
|
|
6669
|
-
const
|
|
6670
|
-
B.replace ? t.nodes.splice(t.nodes.indexOf(U), 1,
|
|
6669
|
+
const T = typeof I == "function" ? I(U) : I;
|
|
6670
|
+
B.replace ? t.nodes.splice(t.nodes.indexOf(U), 1, T) : Object.assign(U, T);
|
|
6671
6671
|
}, O = (P, I, B = { replace: !1 }) => {
|
|
6672
6672
|
const U = l(P);
|
|
6673
6673
|
if (!U)
|
|
6674
6674
|
return;
|
|
6675
|
-
const
|
|
6676
|
-
U.data = B.replace ?
|
|
6675
|
+
const T = typeof I == "function" ? I(U) : I;
|
|
6676
|
+
U.data = B.replace ? T : { ...U.data, ...T };
|
|
6677
6677
|
}, L = (P, I, B = !1) => {
|
|
6678
6678
|
B ? t.connectionClickStartHandle = P : t.connectionStartHandle = P, t.connectionEndHandle = null, t.connectionStatus = null, I && (t.connectionPosition = I);
|
|
6679
6679
|
}, V = (P, I = null, B = null) => {
|
|
6680
6680
|
t.connectionStartHandle && (t.connectionPosition = P, t.connectionEndHandle = I, t.connectionStatus = B);
|
|
6681
|
-
},
|
|
6681
|
+
}, q = (P, I) => {
|
|
6682
6682
|
t.connectionPosition = { x: Number.NaN, y: Number.NaN }, t.connectionEndHandle = null, t.connectionStatus = null, I ? t.connectionClickStartHandle = null : t.connectionStartHandle = null;
|
|
6683
6683
|
}, Q = (P) => {
|
|
6684
6684
|
const I = Hp(P), B = I ? null : Xn(P) ? P : l(P.id);
|
|
6685
6685
|
return !I && !B ? [null, null, I] : [I ? P : Si(B), B, I];
|
|
6686
6686
|
}, X = (P, I = !0, B = t.nodes) => {
|
|
6687
|
-
const [U,
|
|
6687
|
+
const [U, T, Y] = Q(P);
|
|
6688
6688
|
if (!U)
|
|
6689
6689
|
return [];
|
|
6690
6690
|
const j = [];
|
|
6691
|
-
for (const
|
|
6692
|
-
if (!
|
|
6691
|
+
for (const K of B || t.nodes) {
|
|
6692
|
+
if (!Y && (K.id === T.id || !K.computedPosition))
|
|
6693
6693
|
continue;
|
|
6694
|
-
const oe = Si(
|
|
6695
|
-
(I && ne > 0 || ne >= oe.width * oe.height || ne >= Number(U.width) * Number(U.height)) && j.push(
|
|
6694
|
+
const oe = Si(K), ne = Di(oe, U);
|
|
6695
|
+
(I && ne > 0 || ne >= oe.width * oe.height || ne >= Number(U.width) * Number(U.height)) && j.push(K);
|
|
6696
6696
|
}
|
|
6697
6697
|
return j;
|
|
6698
6698
|
}, te = (P, I, B = !0) => {
|
|
6699
6699
|
const [U] = Q(P);
|
|
6700
6700
|
if (!U)
|
|
6701
6701
|
return !1;
|
|
6702
|
-
const
|
|
6703
|
-
return B &&
|
|
6702
|
+
const T = Di(U, I);
|
|
6703
|
+
return B && T > 0 || T >= Number(U.width) * Number(U.height);
|
|
6704
6704
|
}, se = (P) => {
|
|
6705
|
-
const { viewport: I, dimensions: B, d3Zoom: U, d3Selection:
|
|
6706
|
-
if (!U || !
|
|
6705
|
+
const { viewport: I, dimensions: B, d3Zoom: U, d3Selection: T, translateExtent: Y } = t;
|
|
6706
|
+
if (!U || !T || !P.x && !P.y)
|
|
6707
6707
|
return !1;
|
|
6708
|
-
const j = Rn.translate(I.x + P.x, I.y + P.y).scale(I.zoom),
|
|
6708
|
+
const j = Rn.translate(I.x + P.x, I.y + P.y).scale(I.zoom), K = [
|
|
6709
6709
|
[0, 0],
|
|
6710
6710
|
[B.width, B.height]
|
|
6711
|
-
], oe = U.constrain()(j,
|
|
6712
|
-
return U.transform(
|
|
6711
|
+
], oe = U.constrain()(j, K, Y), ne = t.viewport.x !== oe.x || t.viewport.y !== oe.y || t.viewport.zoom !== oe.k;
|
|
6712
|
+
return U.transform(T, oe), ne;
|
|
6713
6713
|
}, ie = (P) => {
|
|
6714
6714
|
const I = P instanceof Function ? P(t) : P, B = [
|
|
6715
6715
|
"d3Zoom",
|
|
@@ -6723,21 +6723,21 @@ function Nm(t, e, n) {
|
|
|
6723
6723
|
qe(I.defaultEdgeOptions) && (t.defaultEdgeOptions = I.defaultEdgeOptions);
|
|
6724
6724
|
const U = I.modelValue || I.nodes || I.edges ? [] : void 0;
|
|
6725
6725
|
U && (I.modelValue && U.push(...I.modelValue), I.nodes && U.push(...I.nodes), I.edges && U.push(...I.edges), C(U));
|
|
6726
|
-
const
|
|
6726
|
+
const T = () => {
|
|
6727
6727
|
qe(I.maxZoom) && A(I.maxZoom), qe(I.minZoom) && w(I.minZoom), qe(I.translateExtent) && $(I.translateExtent);
|
|
6728
6728
|
};
|
|
6729
|
-
for (const
|
|
6730
|
-
const j =
|
|
6731
|
-
![...Dm, ...B].includes(j) && qe(
|
|
6729
|
+
for (const Y of Object.keys(I)) {
|
|
6730
|
+
const j = Y, K = I[j];
|
|
6731
|
+
![...Dm, ...B].includes(j) && qe(K) && (t[j] = K);
|
|
6732
6732
|
}
|
|
6733
|
-
Tr(() => t.d3Zoom).not.toBeNull().then(
|
|
6733
|
+
Tr(() => t.d3Zoom).not.toBeNull().then(T), t.initialized || (t.initialized = !0);
|
|
6734
6734
|
};
|
|
6735
6735
|
return {
|
|
6736
6736
|
updateNodePositions: d,
|
|
6737
6737
|
updateNodeDimensions: f,
|
|
6738
6738
|
setElements: C,
|
|
6739
6739
|
setNodes: E,
|
|
6740
|
-
setEdges:
|
|
6740
|
+
setEdges: k,
|
|
6741
6741
|
addNodes: H,
|
|
6742
6742
|
addEdges: b,
|
|
6743
6743
|
removeNodes: N,
|
|
@@ -6757,13 +6757,13 @@ function Nm(t, e, n) {
|
|
|
6757
6757
|
setMaxZoom: A,
|
|
6758
6758
|
setTranslateExtent: $,
|
|
6759
6759
|
setNodeExtent: F,
|
|
6760
|
-
setPaneClickDistance:
|
|
6760
|
+
setPaneClickDistance: W,
|
|
6761
6761
|
removeSelectedElements: g,
|
|
6762
6762
|
removeSelectedNodes: S,
|
|
6763
6763
|
removeSelectedEdges: _,
|
|
6764
6764
|
startConnection: L,
|
|
6765
6765
|
updateConnection: V,
|
|
6766
|
-
endConnection:
|
|
6766
|
+
endConnection: q,
|
|
6767
6767
|
setInteractive: G,
|
|
6768
6768
|
setState: ie,
|
|
6769
6769
|
getIntersectingNodes: X,
|
|
@@ -6791,10 +6791,10 @@ function Nm(t, e, n) {
|
|
|
6791
6791
|
for (const B of t.nodes) {
|
|
6792
6792
|
const {
|
|
6793
6793
|
computedPosition: U,
|
|
6794
|
-
handleBounds:
|
|
6795
|
-
selected:
|
|
6794
|
+
handleBounds: T,
|
|
6795
|
+
selected: Y,
|
|
6796
6796
|
dimensions: j,
|
|
6797
|
-
isParent:
|
|
6797
|
+
isParent: K,
|
|
6798
6798
|
resizing: oe,
|
|
6799
6799
|
dragging: ne,
|
|
6800
6800
|
events: ye,
|
|
@@ -6803,8 +6803,8 @@ function Nm(t, e, n) {
|
|
|
6803
6803
|
P.push(_e);
|
|
6804
6804
|
}
|
|
6805
6805
|
for (const B of t.edges) {
|
|
6806
|
-
const { selected: U, sourceNode:
|
|
6807
|
-
I.push(
|
|
6806
|
+
const { selected: U, sourceNode: T, targetNode: Y, events: j, ...K } = B;
|
|
6807
|
+
I.push(K);
|
|
6808
6808
|
}
|
|
6809
6809
|
return JSON.parse(
|
|
6810
6810
|
JSON.stringify({
|
|
@@ -6817,14 +6817,14 @@ function Nm(t, e, n) {
|
|
|
6817
6817
|
);
|
|
6818
6818
|
},
|
|
6819
6819
|
fromObject: (P) => new Promise((I) => {
|
|
6820
|
-
const { nodes: B, edges: U, position:
|
|
6821
|
-
B && E(B), U &&
|
|
6822
|
-
const [
|
|
6823
|
-
if (
|
|
6824
|
-
const ne = j?.zoom ||
|
|
6820
|
+
const { nodes: B, edges: U, position: T, zoom: Y, viewport: j } = P;
|
|
6821
|
+
B && E(B), U && k(U);
|
|
6822
|
+
const [K, oe] = j?.x && j?.y ? [j.x, j.y] : T ?? [null, null];
|
|
6823
|
+
if (K && oe) {
|
|
6824
|
+
const ne = j?.zoom || Y || t.viewport.zoom;
|
|
6825
6825
|
return Tr(() => o.value.viewportInitialized).toBe(!0).then(() => {
|
|
6826
6826
|
o.value.setViewport({
|
|
6827
|
-
x:
|
|
6827
|
+
x: K,
|
|
6828
6828
|
y: oe,
|
|
6829
6829
|
zoom: ne
|
|
6830
6830
|
}).then(() => {
|
|
@@ -6842,8 +6842,8 @@ function Nm(t, e, n) {
|
|
|
6842
6842
|
const I = Rn.translate(P.defaultViewport.x ?? 0, P.defaultViewport.y ?? 0).scale(yn(P.defaultViewport.zoom ?? 1, P.minZoom, P.maxZoom)), B = t.viewportRef.getBoundingClientRect(), U = [
|
|
6843
6843
|
[0, 0],
|
|
6844
6844
|
[B.width, B.height]
|
|
6845
|
-
],
|
|
6846
|
-
t.d3Zoom.transform(t.d3Selection,
|
|
6845
|
+
], T = t.d3Zoom.constrain()(I, U, P.translateExtent);
|
|
6846
|
+
t.d3Zoom.transform(t.d3Selection, T);
|
|
6847
6847
|
}
|
|
6848
6848
|
ie(P);
|
|
6849
6849
|
},
|
|
@@ -6877,31 +6877,31 @@ const Tm = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], km = {
|
|
|
6877
6877
|
noPanClassName: f
|
|
6878
6878
|
} = Re(), { id: h, node: m, nodeEl: p, connectedEdges: y } = Sc(), S = de(), _ = ze(() => typeof t.connectableStart < "u" ? t.connectableStart : !0), g = ze(() => typeof t.connectableEnd < "u" ? t.connectableEnd : !0), w = ze(
|
|
6879
6879
|
() => {
|
|
6880
|
-
var
|
|
6881
|
-
return ((
|
|
6880
|
+
var k, C, H, b, N, v;
|
|
6881
|
+
return ((k = s.value) == null ? void 0 : k.nodeId) === h && ((C = s.value) == null ? void 0 : C.id) === t.id && ((H = s.value) == null ? void 0 : H.type) === o.value || ((b = u.value) == null ? void 0 : b.nodeId) === h && ((N = u.value) == null ? void 0 : N.id) === t.id && ((v = u.value) == null ? void 0 : v.type) === o.value;
|
|
6882
6882
|
}
|
|
6883
6883
|
), A = ze(
|
|
6884
6884
|
() => {
|
|
6885
|
-
var
|
|
6886
|
-
return ((
|
|
6885
|
+
var k, C, H;
|
|
6886
|
+
return ((k = a.value) == null ? void 0 : k.nodeId) === h && ((C = a.value) == null ? void 0 : C.id) === t.id && ((H = a.value) == null ? void 0 : H.type) === o.value;
|
|
6887
6887
|
}
|
|
6888
6888
|
), { handlePointerDown: $, handleClick: F } = Ec({
|
|
6889
6889
|
nodeId: h,
|
|
6890
6890
|
handleId: t.id,
|
|
6891
6891
|
isValidConnection: i,
|
|
6892
6892
|
type: o
|
|
6893
|
-
}),
|
|
6894
|
-
const C =
|
|
6895
|
-
return
|
|
6896
|
-
}) : typeof t.connectable == "number" ? y.value.filter((
|
|
6897
|
-
const C =
|
|
6898
|
-
return
|
|
6893
|
+
}), W = fe(() => typeof t.connectable == "string" && t.connectable === "single" ? !y.value.some((k) => {
|
|
6894
|
+
const C = k[`${o.value}Handle`];
|
|
6895
|
+
return k[o.value] !== h ? !1 : C ? C === t.id : !0;
|
|
6896
|
+
}) : typeof t.connectable == "number" ? y.value.filter((k) => {
|
|
6897
|
+
const C = k[`${o.value}Handle`];
|
|
6898
|
+
return k[o.value] !== h ? !1 : C ? C === t.id : !0;
|
|
6899
6899
|
}).length < t.connectable : typeof t.connectable == "function" ? t.connectable(m, y.value) : qe(t.connectable) ? t.connectable : c.value);
|
|
6900
6900
|
mt(() => {
|
|
6901
|
-
var
|
|
6901
|
+
var k;
|
|
6902
6902
|
if (!m.dimensions.width || !m.dimensions.height)
|
|
6903
6903
|
return;
|
|
6904
|
-
const C = (
|
|
6904
|
+
const C = (k = m.handleBounds[o.value]) == null ? void 0 : k.find((z) => z.id === t.id);
|
|
6905
6905
|
if (!l.value || C)
|
|
6906
6906
|
return;
|
|
6907
6907
|
const H = l.value.querySelector(".vue-flow__transformationpane");
|
|
@@ -6918,44 +6918,44 @@ const Tm = ["data-id", "data-handleid", "data-nodeid", "data-handlepos"], km = {
|
|
|
6918
6918
|
};
|
|
6919
6919
|
m.handleBounds[o.value] = [...m.handleBounds[o.value] ?? [], D];
|
|
6920
6920
|
});
|
|
6921
|
-
function G(
|
|
6922
|
-
const C = ds(
|
|
6923
|
-
|
|
6921
|
+
function G(k) {
|
|
6922
|
+
const C = ds(k);
|
|
6923
|
+
W.value && _.value && (C && k.button === 0 || !C) && $(k);
|
|
6924
6924
|
}
|
|
6925
|
-
function E(
|
|
6926
|
-
!h || !a.value && !_.value ||
|
|
6925
|
+
function E(k) {
|
|
6926
|
+
!h || !a.value && !_.value || W.value && F(k);
|
|
6927
6927
|
}
|
|
6928
6928
|
return e({
|
|
6929
6929
|
handleClick: F,
|
|
6930
6930
|
handlePointerDown: $,
|
|
6931
6931
|
onClick: E,
|
|
6932
6932
|
onPointerDown: G
|
|
6933
|
-
}), (
|
|
6933
|
+
}), (k, C) => (ee(), ue("div", {
|
|
6934
6934
|
ref_key: "handle",
|
|
6935
6935
|
ref: S,
|
|
6936
6936
|
"data-id": `${J(r)}-${J(h)}-${t.id}-${o.value}`,
|
|
6937
6937
|
"data-handleid": t.id,
|
|
6938
6938
|
"data-nodeid": J(h),
|
|
6939
|
-
"data-handlepos":
|
|
6939
|
+
"data-handlepos": k.position,
|
|
6940
6940
|
class: bt(["vue-flow__handle", [
|
|
6941
|
-
`vue-flow__handle-${
|
|
6941
|
+
`vue-flow__handle-${k.position}`,
|
|
6942
6942
|
`vue-flow__handle-${t.id}`,
|
|
6943
6943
|
J(d),
|
|
6944
6944
|
J(f),
|
|
6945
6945
|
o.value,
|
|
6946
6946
|
{
|
|
6947
|
-
connectable:
|
|
6947
|
+
connectable: W.value,
|
|
6948
6948
|
connecting: A.value,
|
|
6949
6949
|
connectablestart: _.value,
|
|
6950
6950
|
connectableend: g.value,
|
|
6951
|
-
connectionindicator:
|
|
6951
|
+
connectionindicator: W.value && (_.value && !w.value || g.value && w.value)
|
|
6952
6952
|
}
|
|
6953
6953
|
]]),
|
|
6954
6954
|
onMousedown: G,
|
|
6955
6955
|
onTouchstartPassive: G,
|
|
6956
6956
|
onClick: E
|
|
6957
6957
|
}, [
|
|
6958
|
-
Pe(
|
|
6958
|
+
Pe(k.$slots, "default", { id: k.id })
|
|
6959
6959
|
], 42, Tm));
|
|
6960
6960
|
}
|
|
6961
6961
|
}), Yi = function({
|
|
@@ -7304,14 +7304,14 @@ function Vm({
|
|
|
7304
7304
|
const F = [
|
|
7305
7305
|
{ x: m, y: u.y },
|
|
7306
7306
|
{ x: m, y: l.y }
|
|
7307
|
-
],
|
|
7307
|
+
], W = [
|
|
7308
7308
|
{ x: u.x, y: p },
|
|
7309
7309
|
{ x: l.x, y: p }
|
|
7310
7310
|
];
|
|
7311
|
-
s[d] === f ? h = d === "x" ? F :
|
|
7311
|
+
s[d] === f ? h = d === "x" ? F : W : h = d === "x" ? W : F;
|
|
7312
7312
|
} else {
|
|
7313
|
-
const F = [{ x: u.x, y: l.y }],
|
|
7314
|
-
if (d === "x" ? h = s.x === f ?
|
|
7313
|
+
const F = [{ x: u.x, y: l.y }], W = [{ x: l.x, y: u.y }];
|
|
7314
|
+
if (d === "x" ? h = s.x === f ? W : F : h = s.y === f ? F : W, e === o) {
|
|
7315
7315
|
const H = Math.abs(t[d] - n[d]);
|
|
7316
7316
|
if (H <= r) {
|
|
7317
7317
|
const b = Math.min(r - 1, r - H);
|
|
@@ -7320,10 +7320,10 @@ function Vm({
|
|
|
7320
7320
|
}
|
|
7321
7321
|
if (e !== o) {
|
|
7322
7322
|
const H = d === "x" ? "y" : "x", b = s[d] === a[H], N = u[H] > l[H], v = u[H] < l[H];
|
|
7323
|
-
(s[d] === 1 && (!b && N || b && v) || s[d] !== 1 && (!b && v || b && N)) && (h = d === "x" ? F :
|
|
7323
|
+
(s[d] === 1 && (!b && N || b && v) || s[d] !== 1 && (!b && v || b && N)) && (h = d === "x" ? F : W);
|
|
7324
7324
|
}
|
|
7325
|
-
const G = { x: u.x + y.x, y: u.y + y.y }, E = { x: l.x + S.x, y: l.y + S.y },
|
|
7326
|
-
|
|
7325
|
+
const G = { x: u.x + y.x, y: u.y + y.y }, E = { x: l.x + S.x, y: l.y + S.y }, k = Math.max(Math.abs(G.x - h[0].x), Math.abs(E.x - h[0].x)), C = Math.max(Math.abs(G.y - h[0].y), Math.abs(E.y - h[0].y));
|
|
7326
|
+
k >= C ? (m = (G.x + E.x) / 2, p = h[0].y) : (m = h[0].x, p = (G.y + E.y) / 2);
|
|
7327
7327
|
}
|
|
7328
7328
|
return [[
|
|
7329
7329
|
t,
|
|
@@ -7863,43 +7863,43 @@ const uv = {
|
|
|
7863
7863
|
defaultEdgeOptions: A,
|
|
7864
7864
|
connectionStartHandle: $,
|
|
7865
7865
|
panOnDrag: F
|
|
7866
|
-
} = Re(),
|
|
7866
|
+
} = Re(), W = $t(null), G = $t(/* @__PURE__ */ new Set()), E = $t(/* @__PURE__ */ new Set()), k = $t(null), C = ze(() => u.value && (t.isSelecting || r.value)), H = ze(() => $.value !== null);
|
|
7867
7867
|
let b = !1, N = !1;
|
|
7868
7868
|
const v = to(p, { actInsideInputWithModifier: !1 }), x = to(y);
|
|
7869
|
-
Ne(v, (
|
|
7870
|
-
|
|
7871
|
-
}), Ne(x, (
|
|
7872
|
-
S.value =
|
|
7869
|
+
Ne(v, (q) => {
|
|
7870
|
+
q && (f(d.value), h(c.value), l.value = !1);
|
|
7871
|
+
}), Ne(x, (q) => {
|
|
7872
|
+
S.value = q;
|
|
7873
7873
|
});
|
|
7874
|
-
function D(
|
|
7874
|
+
function D(q, Q) {
|
|
7875
7875
|
return (X) => {
|
|
7876
|
-
X.target === Q &&
|
|
7876
|
+
X.target === Q && q?.(X);
|
|
7877
7877
|
};
|
|
7878
7878
|
}
|
|
7879
|
-
function z(
|
|
7879
|
+
function z(q) {
|
|
7880
7880
|
if (b || H.value) {
|
|
7881
7881
|
b = !1;
|
|
7882
7882
|
return;
|
|
7883
7883
|
}
|
|
7884
|
-
i.paneClick(
|
|
7884
|
+
i.paneClick(q), s(), l.value = !1;
|
|
7885
7885
|
}
|
|
7886
|
-
function R(
|
|
7886
|
+
function R(q) {
|
|
7887
7887
|
var Q;
|
|
7888
7888
|
if (Array.isArray(F.value) && ((Q = F.value) != null && Q.includes(2))) {
|
|
7889
|
-
|
|
7889
|
+
q.preventDefault();
|
|
7890
7890
|
return;
|
|
7891
7891
|
}
|
|
7892
|
-
i.paneContextMenu(
|
|
7892
|
+
i.paneContextMenu(q);
|
|
7893
7893
|
}
|
|
7894
|
-
function M(
|
|
7895
|
-
i.paneScroll(
|
|
7894
|
+
function M(q) {
|
|
7895
|
+
i.paneScroll(q);
|
|
7896
7896
|
}
|
|
7897
|
-
function O(
|
|
7897
|
+
function O(q) {
|
|
7898
7898
|
var Q, X, te;
|
|
7899
|
-
if (
|
|
7899
|
+
if (k.value = ((Q = e.value) == null ? void 0 : Q.getBoundingClientRect()) ?? null, !u.value || !t.isSelecting || q.button !== 0 || q.target !== W.value || !k.value)
|
|
7900
7900
|
return;
|
|
7901
|
-
(te = (X =
|
|
7902
|
-
const { x: se, y: ie } = cv(
|
|
7901
|
+
(te = (X = q.target) == null ? void 0 : X.setPointerCapture) == null || te.call(X, q.pointerId);
|
|
7902
|
+
const { x: se, y: ie } = cv(q, k.value);
|
|
7903
7903
|
N = !0, b = !1, s(), a.value = {
|
|
7904
7904
|
width: 0,
|
|
7905
7905
|
height: 0,
|
|
@@ -7907,14 +7907,14 @@ const uv = {
|
|
|
7907
7907
|
startY: ie,
|
|
7908
7908
|
x: se,
|
|
7909
7909
|
y: ie
|
|
7910
|
-
}, i.selectionStart(
|
|
7910
|
+
}, i.selectionStart(q);
|
|
7911
7911
|
}
|
|
7912
|
-
function L(
|
|
7912
|
+
function L(q) {
|
|
7913
7913
|
var Q;
|
|
7914
|
-
if (!
|
|
7914
|
+
if (!k.value || !a.value)
|
|
7915
7915
|
return;
|
|
7916
7916
|
b = !0;
|
|
7917
|
-
const { x: X, y: te } = Mt(
|
|
7917
|
+
const { x: X, y: te } = Mt(q, k.value), { startX: se = 0, startY: ie = 0 } = a.value, ge = {
|
|
7918
7918
|
startX: se,
|
|
7919
7919
|
startY: ie,
|
|
7920
7920
|
x: X < se ? X : se,
|
|
@@ -7932,8 +7932,8 @@ const uv = {
|
|
|
7932
7932
|
const B = w.value.get(I);
|
|
7933
7933
|
if (B)
|
|
7934
7934
|
for (const { edgeId: U } of B.values()) {
|
|
7935
|
-
const
|
|
7936
|
-
|
|
7935
|
+
const T = _.value.get(U);
|
|
7936
|
+
T && (T.selectable ?? P) && E.value.add(U);
|
|
7937
7937
|
}
|
|
7938
7938
|
}
|
|
7939
7939
|
if (!Na(re, G.value)) {
|
|
@@ -7946,24 +7946,24 @@ const uv = {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
a.value = ge, r.value = !0, l.value = !1;
|
|
7948
7948
|
}
|
|
7949
|
-
function V(
|
|
7949
|
+
function V(q) {
|
|
7950
7950
|
var Q;
|
|
7951
|
-
|
|
7951
|
+
q.button !== 0 || !N || ((Q = q.target) == null || Q.releasePointerCapture(q.pointerId), !r.value && a.value && q.target === W.value && z(q), r.value = !1, a.value = null, l.value = G.value.size > 0, i.selectionEnd(q), t.selectionKeyPressed && (b = !1), N = !1);
|
|
7952
7952
|
}
|
|
7953
|
-
return (
|
|
7953
|
+
return (q, Q) => (ee(), ue("div", {
|
|
7954
7954
|
ref_key: "container",
|
|
7955
|
-
ref:
|
|
7956
|
-
class: bt(["vue-flow__pane vue-flow__container", { selection:
|
|
7957
|
-
onClick: Q[0] || (Q[0] = (X) => C.value ? void 0 : D(z,
|
|
7958
|
-
onContextmenu: Q[1] || (Q[1] = (X) => D(R,
|
|
7959
|
-
onWheelPassive: Q[2] || (Q[2] = (X) => D(M,
|
|
7955
|
+
ref: W,
|
|
7956
|
+
class: bt(["vue-flow__pane vue-flow__container", { selection: q.isSelecting }]),
|
|
7957
|
+
onClick: Q[0] || (Q[0] = (X) => C.value ? void 0 : D(z, W.value)(X)),
|
|
7958
|
+
onContextmenu: Q[1] || (Q[1] = (X) => D(R, W.value)(X)),
|
|
7959
|
+
onWheelPassive: Q[2] || (Q[2] = (X) => D(M, W.value)(X)),
|
|
7960
7960
|
onPointerenter: Q[3] || (Q[3] = (X) => C.value ? void 0 : J(i).paneMouseEnter(X)),
|
|
7961
7961
|
onPointerdown: Q[4] || (Q[4] = (X) => C.value ? O(X) : J(i).paneMouseMove(X)),
|
|
7962
7962
|
onPointermove: Q[5] || (Q[5] = (X) => C.value ? L(X) : J(i).paneMouseMove(X)),
|
|
7963
7963
|
onPointerup: Q[6] || (Q[6] = (X) => C.value ? V(X) : void 0),
|
|
7964
7964
|
onPointerleave: Q[7] || (Q[7] = (X) => J(i).paneMouseLeave(X))
|
|
7965
7965
|
}, [
|
|
7966
|
-
Pe(
|
|
7966
|
+
Pe(q.$slots, "default"),
|
|
7967
7967
|
J(r) && J(a) ? (ee(), Te(rv, {
|
|
7968
7968
|
key: 0,
|
|
7969
7969
|
"user-selection-rect": J(a)
|
|
@@ -8015,10 +8015,10 @@ const uv = {
|
|
|
8015
8015
|
paneDragging: A,
|
|
8016
8016
|
d3Zoom: $,
|
|
8017
8017
|
d3Selection: F,
|
|
8018
|
-
d3ZoomHandler:
|
|
8018
|
+
d3ZoomHandler: W,
|
|
8019
8019
|
viewport: G,
|
|
8020
8020
|
viewportRef: E,
|
|
8021
|
-
paneClickDistance:
|
|
8021
|
+
paneClickDistance: k
|
|
8022
8022
|
} = Re();
|
|
8023
8023
|
ov(E);
|
|
8024
8024
|
const C = $t(!1), H = $t(!1);
|
|
@@ -8031,50 +8031,50 @@ const uv = {
|
|
|
8031
8031
|
() => (!z.value || z.value && s.value === !0) && (D.value || d.value)
|
|
8032
8032
|
), O = ze(() => D.value || u.value), L = ze(() => s.value === !0 && M.value !== !0), V = ze(
|
|
8033
8033
|
() => z.value && s.value !== !0 || w.value || L.value
|
|
8034
|
-
),
|
|
8034
|
+
), q = ze(() => g.value !== null);
|
|
8035
8035
|
mt(() => {
|
|
8036
8036
|
if (!E.value) {
|
|
8037
8037
|
Eo("Viewport element is missing");
|
|
8038
8038
|
return;
|
|
8039
8039
|
}
|
|
8040
|
-
const ie = E.value, ge = ie.getBoundingClientRect(), re = Mp().clickDistance(
|
|
8040
|
+
const ie = E.value, ge = ie.getBoundingClientRect(), re = Mp().clickDistance(k.value).scaleExtent([e.value, n.value]).translateExtent(i.value), ae = St(ie).call(re), P = ae.on("wheel.zoom"), I = Rn.translate(o.value.x ?? 0, o.value.y ?? 0).scale(yn(o.value.zoom ?? 1, e.value, n.value)), B = [
|
|
8041
8041
|
[0, 0],
|
|
8042
8042
|
[ge.width, ge.height]
|
|
8043
8043
|
], U = re.constrain()(I, B, i.value);
|
|
8044
|
-
re.transform(ae, U), re.wheelDelta(ha), $.value = re, F.value = ae,
|
|
8045
|
-
var
|
|
8046
|
-
if (!
|
|
8044
|
+
re.transform(ae, U), re.wheelDelta(ha), $.value = re, F.value = ae, W.value = P, G.value = { x: U.x, y: U.y, zoom: U.k }, re.on("start", (T) => {
|
|
8045
|
+
var Y;
|
|
8046
|
+
if (!T.sourceEvent)
|
|
8047
8047
|
return null;
|
|
8048
|
-
v =
|
|
8049
|
-
const j = te(
|
|
8050
|
-
((
|
|
8051
|
-
}), re.on("end", (
|
|
8052
|
-
if (!
|
|
8048
|
+
v = T.sourceEvent.button, C.value = !0;
|
|
8049
|
+
const j = te(T.transform);
|
|
8050
|
+
((Y = T.sourceEvent) == null ? void 0 : Y.type) === "mousedown" && (A.value = !0), x = j, _.viewportChangeStart(j), _.moveStart({ event: T, flowTransform: j });
|
|
8051
|
+
}), re.on("end", (T) => {
|
|
8052
|
+
if (!T.sourceEvent)
|
|
8053
8053
|
return null;
|
|
8054
|
-
if (C.value = !1, A.value = !1, Q(M.value, v ?? 0) && !N && _.paneContextMenu(
|
|
8055
|
-
const
|
|
8056
|
-
x =
|
|
8054
|
+
if (C.value = !1, A.value = !1, Q(M.value, v ?? 0) && !N && _.paneContextMenu(T.sourceEvent), N = !1, X(x, T.transform)) {
|
|
8055
|
+
const Y = te(T.transform);
|
|
8056
|
+
x = Y, _.viewportChangeEnd(Y), _.moveEnd({ event: T, flowTransform: Y });
|
|
8057
8057
|
}
|
|
8058
|
-
}), re.filter((
|
|
8059
|
-
var
|
|
8060
|
-
const j = R.value || m.value,
|
|
8061
|
-
if (oe === 1 &&
|
|
8058
|
+
}), re.filter((T) => {
|
|
8059
|
+
var Y;
|
|
8060
|
+
const j = R.value || m.value, K = h.value && T.ctrlKey, oe = T.button, ne = T.type === "wheel";
|
|
8061
|
+
if (oe === 1 && T.type === "mousedown" && (se(T, "vue-flow__node") || se(T, "vue-flow__edge")))
|
|
8062
8062
|
return !0;
|
|
8063
|
-
if (!M.value && !j && !O.value && !f.value && !h.value || w.value ||
|
|
8063
|
+
if (!M.value && !j && !O.value && !f.value && !h.value || w.value || q.value && !ne || !f.value && T.type === "dblclick" || se(T, y.value) && ne || se(T, S.value) && (!ne || O.value && ne && !R.value) || !h.value && T.ctrlKey && ne || !j && !O.value && !K && ne)
|
|
8064
8064
|
return !1;
|
|
8065
|
-
if (!h &&
|
|
8066
|
-
return
|
|
8067
|
-
if (!M.value && (
|
|
8065
|
+
if (!h && T.type === "touchstart" && ((Y = T.touches) == null ? void 0 : Y.length) > 1)
|
|
8066
|
+
return T.preventDefault(), !1;
|
|
8067
|
+
if (!M.value && (T.type === "mousedown" || T.type === "touchstart") || L.value && Array.isArray(d.value) && d.value.includes(0) && oe === 0 || Array.isArray(d.value) && !d.value.includes(oe) && (T.type === "mousedown" || T.type === "touchstart"))
|
|
8068
8068
|
return !1;
|
|
8069
8069
|
const ye = Array.isArray(d.value) && d.value.includes(oe) || s.value === !0 && Array.isArray(d.value) && !d.value.includes(0) || !oe || oe <= 1;
|
|
8070
|
-
return (!
|
|
8070
|
+
return (!T.ctrlKey || D.value || ne) && ye;
|
|
8071
8071
|
}), Ne(
|
|
8072
8072
|
[w, M],
|
|
8073
8073
|
() => {
|
|
8074
|
-
w.value && !C.value ? re.on("zoom", null) : w.value || re.on("zoom", (
|
|
8075
|
-
G.value = { x:
|
|
8076
|
-
const
|
|
8077
|
-
N = Q(M.value, v ?? 0), _.viewportChange(
|
|
8074
|
+
w.value && !C.value ? re.on("zoom", null) : w.value || re.on("zoom", (T) => {
|
|
8075
|
+
G.value = { x: T.transform.x, y: T.transform.y, zoom: T.transform.k };
|
|
8076
|
+
const Y = te(T.transform);
|
|
8077
|
+
N = Q(M.value, v ?? 0), _.viewportChange(Y), _.move({ event: T, flowTransform: Y });
|
|
8078
8078
|
});
|
|
8079
8079
|
},
|
|
8080
8080
|
{ immediate: !0 }
|
|
@@ -8083,39 +8083,39 @@ const uv = {
|
|
|
8083
8083
|
() => {
|
|
8084
8084
|
O.value && !R.value && !w.value ? ae.on(
|
|
8085
8085
|
"wheel.zoom",
|
|
8086
|
-
(
|
|
8087
|
-
if (se(
|
|
8086
|
+
(T) => {
|
|
8087
|
+
if (se(T, y.value))
|
|
8088
8088
|
return !1;
|
|
8089
|
-
const
|
|
8090
|
-
if (!(!p.value || O.value ||
|
|
8089
|
+
const Y = R.value || m.value, j = h.value && T.ctrlKey;
|
|
8090
|
+
if (!(!p.value || O.value || Y || j))
|
|
8091
8091
|
return !1;
|
|
8092
|
-
|
|
8092
|
+
T.preventDefault(), T.stopImmediatePropagation();
|
|
8093
8093
|
const oe = ae.property("__zoom").k || 1, ne = Ni();
|
|
8094
|
-
if (!D.value &&
|
|
8095
|
-
const vt = kt(
|
|
8096
|
-
re.scaleTo(ae, Bt, vt,
|
|
8094
|
+
if (!D.value && T.ctrlKey && h.value && ne) {
|
|
8095
|
+
const vt = kt(T), He = ha(T), Bt = oe * 2 ** He;
|
|
8096
|
+
re.scaleTo(ae, Bt, vt, T);
|
|
8097
8097
|
return;
|
|
8098
8098
|
}
|
|
8099
|
-
const ye =
|
|
8100
|
-
let _e = l.value === eo.Vertical ? 0 :
|
|
8101
|
-
!ne &&
|
|
8099
|
+
const ye = T.deltaMode === 1 ? 20 : 1;
|
|
8100
|
+
let _e = l.value === eo.Vertical ? 0 : T.deltaX * ye, Ye = l.value === eo.Horizontal ? 0 : T.deltaY * ye;
|
|
8101
|
+
!ne && T.shiftKey && l.value !== eo.Vertical && !_e && Ye && (_e = Ye, Ye = 0), re.translateBy(
|
|
8102
8102
|
ae,
|
|
8103
8103
|
-(_e / oe) * c.value,
|
|
8104
8104
|
-(Ye / oe) * c.value
|
|
8105
8105
|
);
|
|
8106
8106
|
const Ue = te(ae.property("__zoom"));
|
|
8107
|
-
b && clearTimeout(b), H.value ? (_.move({ event:
|
|
8108
|
-
_.moveEnd({ event:
|
|
8109
|
-
}, 150)) : (H.value = !0, _.moveStart({ event:
|
|
8107
|
+
b && clearTimeout(b), H.value ? (_.move({ event: T, flowTransform: Ue }), _.viewportChange(Ue), b = setTimeout(() => {
|
|
8108
|
+
_.moveEnd({ event: T, flowTransform: Ue }), _.viewportChangeEnd(Ue), H.value = !1;
|
|
8109
|
+
}, 150)) : (H.value = !0, _.moveStart({ event: T, flowTransform: Ue }), _.viewportChangeStart(Ue));
|
|
8110
8110
|
},
|
|
8111
8111
|
{ passive: !1 }
|
|
8112
8112
|
) : typeof P < "u" && ae.on(
|
|
8113
8113
|
"wheel.zoom",
|
|
8114
|
-
function(
|
|
8115
|
-
const j = !p.value &&
|
|
8116
|
-
if (!
|
|
8114
|
+
function(T, Y) {
|
|
8115
|
+
const j = !p.value && T.type === "wheel" && !T.ctrlKey, K = R.value || m.value, oe = h.value && T.ctrlKey;
|
|
8116
|
+
if (!K && !u.value && !oe && T.type === "wheel" || j || se(T, y.value))
|
|
8117
8117
|
return null;
|
|
8118
|
-
|
|
8118
|
+
T.preventDefault(), P.call(this, T, Y);
|
|
8119
8119
|
},
|
|
8120
8120
|
{ passive: !1 }
|
|
8121
8121
|
);
|
|
@@ -8148,7 +8148,7 @@ const uv = {
|
|
|
8148
8148
|
"is-selecting": V.value,
|
|
8149
8149
|
"selection-key-pressed": J(z),
|
|
8150
8150
|
class: bt({
|
|
8151
|
-
connecting:
|
|
8151
|
+
connecting: q.value,
|
|
8152
8152
|
dragging: J(A),
|
|
8153
8153
|
draggable: J(d) === !0 || Array.isArray(J(d)) && J(d).includes(0)
|
|
8154
8154
|
})
|
|
@@ -8250,7 +8250,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8250
8250
|
edgesUpdatable: y,
|
|
8251
8251
|
edgesFocusable: S,
|
|
8252
8252
|
hooks: _
|
|
8253
|
-
} = Re(), g = fe(() => c(t.id)), { emit: w, on: A } = gm(g.value, r), $ = _t(Wi), F = Fn(),
|
|
8253
|
+
} = Re(), g = fe(() => c(t.id)), { emit: w, on: A } = gm(g.value, r), $ = _t(Wi), F = Fn(), W = de(!1), G = de(!1), E = de(""), k = de(null), C = de("source"), H = de(null), b = ze(
|
|
8254
8254
|
() => typeof g.value.selectable > "u" ? p.value : g.value.selectable
|
|
8255
8255
|
), N = ze(() => typeof g.value.updatable > "u" ? y.value : g.value.updatable), v = ze(() => typeof g.value.focusable > "u" ? S.value : g.value.focusable);
|
|
8256
8256
|
zt(dm, t.id), zt(fm, H);
|
|
@@ -8260,13 +8260,13 @@ const Aa = hs, Ev = Ee({
|
|
|
8260
8260
|
return B;
|
|
8261
8261
|
let U = g.value.template ?? u.value[I];
|
|
8262
8262
|
if (typeof U == "string" && F) {
|
|
8263
|
-
const
|
|
8264
|
-
|
|
8263
|
+
const T = Object.keys(F.appContext.components);
|
|
8264
|
+
T && T.includes(I) && (U = De(I, !1));
|
|
8265
8265
|
}
|
|
8266
8266
|
return U && typeof U != "string" ? U : (r.error(new Je(Ze.EDGE_TYPE_MISSING, U)), !1);
|
|
8267
8267
|
}), { handlePointerDown: R } = Ec({
|
|
8268
8268
|
nodeId: E,
|
|
8269
|
-
handleId:
|
|
8269
|
+
handleId: k,
|
|
8270
8270
|
type: C,
|
|
8271
8271
|
isValidConnection: f,
|
|
8272
8272
|
edgeUpdaterType: C,
|
|
@@ -8283,12 +8283,12 @@ const Aa = hs, Ev = Ee({
|
|
|
8283
8283
|
return r.error(new Je(Ze.EDGE_TARGET_MISSING, g.value.id, g.value.target)), null;
|
|
8284
8284
|
if (!g.value || g.value.hidden || I.hidden || B.hidden)
|
|
8285
8285
|
return null;
|
|
8286
|
-
let
|
|
8287
|
-
o.value === Kt.Strict ?
|
|
8288
|
-
const
|
|
8286
|
+
let T;
|
|
8287
|
+
o.value === Kt.Strict ? T = I.handleBounds.source : T = [...I.handleBounds.source || [], ...I.handleBounds.target || []];
|
|
8288
|
+
const Y = wa(T, g.value.sourceHandle);
|
|
8289
8289
|
let j;
|
|
8290
8290
|
o.value === Kt.Strict ? j = B.handleBounds.target : j = [...B.handleBounds.target || [], ...B.handleBounds.source || []];
|
|
8291
|
-
const
|
|
8291
|
+
const K = wa(j, g.value.targetHandle), oe = Y?.position || me.Bottom, ne = K?.position || me.Top, { x: ye, y: _e } = Hn(I, Y, oe), { x: Ye, y: Ue } = Hn(B, K, ne);
|
|
8292
8292
|
return g.value.sourceX = ye, g.value.sourceY = _e, g.value.targetX = Ye, g.value.targetY = Ue, Ae(
|
|
8293
8293
|
"g",
|
|
8294
8294
|
{
|
|
@@ -8301,7 +8301,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8301
8301
|
a.value,
|
|
8302
8302
|
x.value,
|
|
8303
8303
|
{
|
|
8304
|
-
updating:
|
|
8304
|
+
updating: W.value,
|
|
8305
8305
|
selected: g.value.selected,
|
|
8306
8306
|
animated: g.value.animated,
|
|
8307
8307
|
inactive: !b.value && !_.value.edgeClick.hasListeners()
|
|
@@ -8396,10 +8396,10 @@ const Aa = hs, Ev = Ee({
|
|
|
8396
8396
|
);
|
|
8397
8397
|
};
|
|
8398
8398
|
function M() {
|
|
8399
|
-
|
|
8399
|
+
W.value = !0;
|
|
8400
8400
|
}
|
|
8401
8401
|
function O() {
|
|
8402
|
-
|
|
8402
|
+
W.value = !1;
|
|
8403
8403
|
}
|
|
8404
8404
|
function L(I, B) {
|
|
8405
8405
|
w.update({ event: I, edge: g.value, connection: B });
|
|
@@ -8407,8 +8407,8 @@ const Aa = hs, Ev = Ee({
|
|
|
8407
8407
|
function V(I) {
|
|
8408
8408
|
w.updateEnd({ event: I, edge: g.value }), G.value = !1;
|
|
8409
8409
|
}
|
|
8410
|
-
function
|
|
8411
|
-
I.button === 0 && (G.value = !0, E.value = B ? g.value.target : g.value.source,
|
|
8410
|
+
function q(I, B) {
|
|
8411
|
+
I.button === 0 && (G.value = !0, E.value = B ? g.value.target : g.value.source, k.value = (B ? g.value.targetHandle : g.value.sourceHandle) ?? null, C.value = B ? "target" : "source", w.updateStart({ event: I, edge: g.value }), R(I));
|
|
8412
8412
|
}
|
|
8413
8413
|
function Q(I) {
|
|
8414
8414
|
var B;
|
|
@@ -8431,10 +8431,10 @@ const Aa = hs, Ev = Ee({
|
|
|
8431
8431
|
w.mouseLeave({ event: I, edge: g.value });
|
|
8432
8432
|
}
|
|
8433
8433
|
function re(I) {
|
|
8434
|
-
|
|
8434
|
+
q(I, !0);
|
|
8435
8435
|
}
|
|
8436
8436
|
function ae(I) {
|
|
8437
|
-
|
|
8437
|
+
q(I, !1);
|
|
8438
8438
|
}
|
|
8439
8439
|
function P(I) {
|
|
8440
8440
|
var B;
|
|
@@ -8477,14 +8477,14 @@ const Aa = hs, Ev = Ee({
|
|
|
8477
8477
|
if (!h.value || !o.value)
|
|
8478
8478
|
return null;
|
|
8479
8479
|
const A = o.value.id, $ = o.value.type, F = h.value.handleBounds;
|
|
8480
|
-
let
|
|
8480
|
+
let W = F?.[$] ?? [];
|
|
8481
8481
|
if (n.value === Kt.Loose) {
|
|
8482
8482
|
const D = F?.[$ === "source" ? "target" : "source"] ?? [];
|
|
8483
|
-
|
|
8483
|
+
W = [...W, ...D];
|
|
8484
8484
|
}
|
|
8485
|
-
if (!
|
|
8485
|
+
if (!W)
|
|
8486
8486
|
return null;
|
|
8487
|
-
const G = (A ?
|
|
8487
|
+
const G = (A ? W.find((D) => D.id === A) : W[0]) ?? null, E = G?.position ?? me.Top, { x: k, y: C } = Hn(h.value, G, E);
|
|
8488
8488
|
let H = null;
|
|
8489
8489
|
m.value && (n.value === Kt.Strict ? H = ((_ = m.value.handleBounds[$ === "source" ? "target" : "source"]) == null ? void 0 : _.find(
|
|
8490
8490
|
(D) => {
|
|
@@ -8503,7 +8503,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8503
8503
|
const N = s.value ?? u.value.type ?? dn.Bezier;
|
|
8504
8504
|
let v = "";
|
|
8505
8505
|
const x = {
|
|
8506
|
-
sourceX:
|
|
8506
|
+
sourceX: k,
|
|
8507
8507
|
sourceY: C,
|
|
8508
8508
|
sourcePosition: E,
|
|
8509
8509
|
targetX: p.value.x,
|
|
@@ -8513,14 +8513,14 @@ const Aa = hs, Ev = Ee({
|
|
|
8513
8513
|
return N === dn.Bezier ? [v] = fs(x) : N === dn.Step ? [v] = Lr({
|
|
8514
8514
|
...x,
|
|
8515
8515
|
borderRadius: 0
|
|
8516
|
-
}) : N === dn.SmoothStep ? [v] = Lr(x) : N === dn.SimpleBezier ? [v] = Ic(x) : v = `M${
|
|
8516
|
+
}) : N === dn.SmoothStep ? [v] = Lr(x) : N === dn.SimpleBezier ? [v] = Ic(x) : v = `M${k},${C} ${p.value.x},${p.value.y}`, Ae(
|
|
8517
8517
|
"svg",
|
|
8518
8518
|
{ class: "vue-flow__edges vue-flow__connectionline vue-flow__container" },
|
|
8519
8519
|
Ae(
|
|
8520
8520
|
"g",
|
|
8521
8521
|
{ class: "vue-flow__connection" },
|
|
8522
8522
|
f ? Ae(f, {
|
|
8523
|
-
sourceX:
|
|
8523
|
+
sourceX: k,
|
|
8524
8524
|
sourceY: C,
|
|
8525
8525
|
sourcePosition: E,
|
|
8526
8526
|
targetX: p.value.x,
|
|
@@ -8687,23 +8687,23 @@ const Aa = hs, Ev = Ee({
|
|
|
8687
8687
|
nodesConnectable: A,
|
|
8688
8688
|
nodesFocusable: $,
|
|
8689
8689
|
hooks: F
|
|
8690
|
-
} = Re(),
|
|
8691
|
-
zt(xc,
|
|
8692
|
-
const G = _t(Wi), E = Fn(),
|
|
8690
|
+
} = Re(), W = de(null);
|
|
8691
|
+
zt(xc, W), zt(wc, t.id);
|
|
8692
|
+
const G = _t(Wi), E = Fn(), k = Dc(), { node: C, parentNode: H } = Sc(t.id), { emit: b, on: N } = ym(C, s), v = ze(() => typeof C.draggable > "u" ? g.value : C.draggable), x = ze(() => typeof C.selectable > "u" ? w.value : C.selectable), D = ze(() => typeof C.connectable > "u" ? A.value : C.connectable), z = ze(() => typeof C.focusable > "u" ? $.value : C.focusable), R = fe(
|
|
8693
8693
|
() => x.value || v.value || F.value.nodeClick.hasListeners() || F.value.nodeDoubleClick.hasListeners() || F.value.nodeMouseEnter.hasListeners() || F.value.nodeMouseMove.hasListeners() || F.value.nodeMouseLeave.hasListeners()
|
|
8694
8694
|
), M = ze(() => !!C.dimensions.width && !!C.dimensions.height), O = fe(() => {
|
|
8695
8695
|
const B = C.type || "default", U = G?.[`node-${B}`];
|
|
8696
8696
|
if (U)
|
|
8697
8697
|
return U;
|
|
8698
|
-
let
|
|
8699
|
-
if (typeof
|
|
8700
|
-
const
|
|
8701
|
-
|
|
8698
|
+
let T = C.template || d.value[B];
|
|
8699
|
+
if (typeof T == "string" && E) {
|
|
8700
|
+
const Y = Object.keys(E.appContext.components);
|
|
8701
|
+
Y && Y.includes(B) && (T = De(B, !1));
|
|
8702
8702
|
}
|
|
8703
|
-
return
|
|
8703
|
+
return T && typeof T != "string" ? T : (s.error(new Je(Ze.NODE_TYPE_MISSING, T)), !1);
|
|
8704
8704
|
}), L = Cc({
|
|
8705
8705
|
id: t.id,
|
|
8706
|
-
el:
|
|
8706
|
+
el: W,
|
|
8707
8707
|
disabled: () => !v.value,
|
|
8708
8708
|
selectable: x,
|
|
8709
8709
|
dragHandle: () => C.dragHandle,
|
|
@@ -8719,25 +8719,25 @@ const Aa = hs, Ev = Ee({
|
|
|
8719
8719
|
onClick(B) {
|
|
8720
8720
|
P(B);
|
|
8721
8721
|
}
|
|
8722
|
-
}), V = fe(() => C.class instanceof Function ? C.class(C) : C.class),
|
|
8723
|
-
const B = (C.style instanceof Function ? C.style(C) : C.style) || {}, U = C.width instanceof Function ? C.width(C) : C.width,
|
|
8724
|
-
return !B.width && U && (B.width = typeof U == "string" ? U : `${U}px`), !B.height &&
|
|
8725
|
-
}), Q = ze(() => Number(C.zIndex ??
|
|
8722
|
+
}), V = fe(() => C.class instanceof Function ? C.class(C) : C.class), q = fe(() => {
|
|
8723
|
+
const B = (C.style instanceof Function ? C.style(C) : C.style) || {}, U = C.width instanceof Function ? C.width(C) : C.width, T = C.height instanceof Function ? C.height(C) : C.height;
|
|
8724
|
+
return !B.width && U && (B.width = typeof U == "string" ? U : `${U}px`), !B.height && T && (B.height = typeof T == "string" ? T : `${T}px`), B;
|
|
8725
|
+
}), Q = ze(() => Number(C.zIndex ?? q.value.zIndex ?? 0));
|
|
8726
8726
|
return c((B) => {
|
|
8727
8727
|
(B.includes(t.id) || !B.length) && te();
|
|
8728
8728
|
}), mt(() => {
|
|
8729
8729
|
Ne(
|
|
8730
8730
|
() => C.hidden,
|
|
8731
|
-
(B = !1, U,
|
|
8732
|
-
!B &&
|
|
8733
|
-
|
|
8731
|
+
(B = !1, U, T) => {
|
|
8732
|
+
!B && W.value && (t.resizeObserver.observe(W.value), T(() => {
|
|
8733
|
+
W.value && t.resizeObserver.unobserve(W.value);
|
|
8734
8734
|
}));
|
|
8735
8735
|
},
|
|
8736
8736
|
{ immediate: !0, flush: "post" }
|
|
8737
8737
|
);
|
|
8738
8738
|
}), Ne([() => C.type, () => C.sourcePosition, () => C.targetPosition], () => {
|
|
8739
8739
|
Ge(() => {
|
|
8740
|
-
l([{ id: t.id, nodeElement:
|
|
8740
|
+
l([{ id: t.id, nodeElement: W.value, forceUpdate: !0 }]);
|
|
8741
8741
|
});
|
|
8742
8742
|
}), Ne(
|
|
8743
8743
|
[
|
|
@@ -8768,21 +8768,21 @@ const Aa = hs, Ev = Ee({
|
|
|
8768
8768
|
return (B = H.value) == null ? void 0 : B.dimensions.width;
|
|
8769
8769
|
}
|
|
8770
8770
|
],
|
|
8771
|
-
([B, U,
|
|
8771
|
+
([B, U, T, Y, j, K]) => {
|
|
8772
8772
|
const oe = {
|
|
8773
8773
|
x: B,
|
|
8774
8774
|
y: U,
|
|
8775
|
-
z:
|
|
8775
|
+
z: K + (h.value && C.selected ? 1e3 : 0)
|
|
8776
8776
|
};
|
|
8777
|
-
typeof
|
|
8777
|
+
typeof T < "u" && typeof Y < "u" ? C.computedPosition = Up({ x: T, y: Y, z: j }, oe) : C.computedPosition = oe;
|
|
8778
8778
|
},
|
|
8779
8779
|
{ flush: "post", immediate: !0 }
|
|
8780
|
-
), Ne([() => C.extent, f], ([B, U], [
|
|
8781
|
-
(B !==
|
|
8780
|
+
), Ne([() => C.extent, f], ([B, U], [T, Y]) => {
|
|
8781
|
+
(B !== T || U !== Y) && X();
|
|
8782
8782
|
}), C.extent === "parent" || typeof C.extent == "object" && "range" in C.extent && C.extent.range === "parent" ? Tr(() => M).toBe(!0).then(X) : X(), () => C.hidden ? null : Ae(
|
|
8783
8783
|
"div",
|
|
8784
8784
|
{
|
|
8785
|
-
ref:
|
|
8785
|
+
ref: W,
|
|
8786
8786
|
"data-id": C.id,
|
|
8787
8787
|
class: [
|
|
8788
8788
|
"vue-flow__node",
|
|
@@ -8802,7 +8802,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8802
8802
|
zIndex: C.computedPosition.z ?? Q.value,
|
|
8803
8803
|
transform: `translate(${C.computedPosition.x}px,${C.computedPosition.y}px)`,
|
|
8804
8804
|
pointerEvents: R.value ? "all" : "none",
|
|
8805
|
-
...
|
|
8805
|
+
...q.value
|
|
8806
8806
|
},
|
|
8807
8807
|
tabIndex: z.value ? 0 : void 0,
|
|
8808
8808
|
role: z.value ? "group" : void 0,
|
|
@@ -8844,17 +8844,17 @@ const Aa = hs, Ev = Ee({
|
|
|
8844
8844
|
]
|
|
8845
8845
|
);
|
|
8846
8846
|
function X() {
|
|
8847
|
-
const B = C.computedPosition, { computedPosition: U, position:
|
|
8847
|
+
const B = C.computedPosition, { computedPosition: U, position: T } = us(
|
|
8848
8848
|
C,
|
|
8849
8849
|
y.value ? ji(B, S.value) : B,
|
|
8850
8850
|
s.error,
|
|
8851
8851
|
f.value,
|
|
8852
8852
|
H.value
|
|
8853
8853
|
);
|
|
8854
|
-
(C.computedPosition.x !== U.x || C.computedPosition.y !== U.y) && (C.computedPosition = { ...C.computedPosition, ...U }), (C.position.x !==
|
|
8854
|
+
(C.computedPosition.x !== U.x || C.computedPosition.y !== U.y) && (C.computedPosition = { ...C.computedPosition, ...U }), (C.position.x !== T.x || C.position.y !== T.y) && (C.position = T);
|
|
8855
8855
|
}
|
|
8856
8856
|
function te() {
|
|
8857
|
-
|
|
8857
|
+
W.value && l([{ id: t.id, nodeElement: W.value, forceUpdate: !0 }]);
|
|
8858
8858
|
}
|
|
8859
8859
|
function se(B) {
|
|
8860
8860
|
L?.value || b.mouseEnter({ event: B, node: C });
|
|
@@ -8879,7 +8879,7 @@ const Aa = hs, Ev = Ee({
|
|
|
8879
8879
|
a,
|
|
8880
8880
|
i,
|
|
8881
8881
|
!1,
|
|
8882
|
-
|
|
8882
|
+
W.value
|
|
8883
8883
|
), b.click({ event: B, node: C });
|
|
8884
8884
|
}
|
|
8885
8885
|
function I(B) {
|
|
@@ -8893,9 +8893,9 @@ const Aa = hs, Ev = Ee({
|
|
|
8893
8893
|
a,
|
|
8894
8894
|
i,
|
|
8895
8895
|
U,
|
|
8896
|
-
|
|
8896
|
+
W.value
|
|
8897
8897
|
);
|
|
8898
|
-
} else v.value && C.selected && In[B.key] && (B.preventDefault(), p.value = `Moved selected node ${B.key.replace("Arrow", "").toLowerCase()}. New position, x: ${~~C.position.x}, y: ${~~C.position.y}`,
|
|
8898
|
+
} else v.value && C.selected && In[B.key] && (B.preventDefault(), p.value = `Moved selected node ${B.key.replace("Arrow", "").toLowerCase()}. New position, x: ${~~C.position.x}, y: ${~~C.position.y}`, k(
|
|
8899
8899
|
{
|
|
8900
8900
|
x: In[B.key].x,
|
|
8901
8901
|
y: In[B.key].y
|
|
@@ -9449,7 +9449,7 @@ const $y = { render: My }, Ay = {
|
|
|
9449
9449
|
return !0;
|
|
9450
9450
|
return !1;
|
|
9451
9451
|
}, A = (H) => _.value ? (_.value = !1, !1) : w(H.source, H.target) ? !1 : H.source !== H.target && H.sourceHandle !== H.targetHandle && H.sourceHandle.indexOf("s") !== -1 && H.targetHandle.indexOf("t") !== -1, $ = () => {
|
|
9452
|
-
|
|
9452
|
+
k(), Object.keys(m.value).forEach((H) => {
|
|
9453
9453
|
m.value[H] = !1;
|
|
9454
9454
|
});
|
|
9455
9455
|
}, F = () => {
|
|
@@ -9466,21 +9466,21 @@ const $y = { render: My }, Ay = {
|
|
|
9466
9466
|
}), s(() => {
|
|
9467
9467
|
$();
|
|
9468
9468
|
});
|
|
9469
|
-
const
|
|
9469
|
+
const W = de(), G = de({
|
|
9470
9470
|
top: 0,
|
|
9471
9471
|
left: 0,
|
|
9472
9472
|
bottom: 0,
|
|
9473
9473
|
right: 0
|
|
9474
9474
|
}), E = de({
|
|
9475
9475
|
getBoundingClientRect: () => G.value
|
|
9476
|
-
}),
|
|
9477
|
-
|
|
9476
|
+
}), k = () => {
|
|
9477
|
+
W.value?.handleClose();
|
|
9478
9478
|
}, C = (H) => {
|
|
9479
9479
|
const { clientX: b, clientY: N } = H;
|
|
9480
9480
|
G.value = DOMRect.fromRect({
|
|
9481
9481
|
x: b,
|
|
9482
9482
|
y: N
|
|
9483
|
-
}), H.preventDefault(),
|
|
9483
|
+
}), H.preventDefault(), W.value?.handleOpen();
|
|
9484
9484
|
};
|
|
9485
9485
|
return (H, b) => {
|
|
9486
9486
|
const N = De("el-popover"), v = De("el-tooltip"), x = De("el-dropdown-item"), D = De("el-dropdown-menu"), z = De("el-dropdown");
|
|
@@ -9616,7 +9616,7 @@ const $y = { render: My }, Ay = {
|
|
|
9616
9616
|
}),
|
|
9617
9617
|
he(z, {
|
|
9618
9618
|
ref_key: "dropdownRef",
|
|
9619
|
-
ref:
|
|
9619
|
+
ref: W,
|
|
9620
9620
|
"popper-class": "d-flow-step-dropdown",
|
|
9621
9621
|
"virtual-ref": E.value,
|
|
9622
9622
|
"show-arrow": !1,
|
|
@@ -9874,8 +9874,8 @@ const $y = { render: My }, Ay = {
|
|
|
9874
9874
|
};
|
|
9875
9875
|
if (o.flowInit) {
|
|
9876
9876
|
const V = o.flowInit(L.data.type);
|
|
9877
|
-
V && Object.keys(V).forEach((
|
|
9878
|
-
L.data[
|
|
9877
|
+
V && Object.keys(V).forEach((q) => {
|
|
9878
|
+
L.data[q] = V[q];
|
|
9879
9879
|
});
|
|
9880
9880
|
}
|
|
9881
9881
|
r(L), M.indexOf("t") === -1 ? s({
|
|
@@ -9942,7 +9942,7 @@ const $y = { render: My }, Ay = {
|
|
|
9942
9942
|
c((z) => {
|
|
9943
9943
|
console.log("onConnect", z), z.type = "button", z.markerEnd = Gt.Arrow, s(z), i("connect", z);
|
|
9944
9944
|
});
|
|
9945
|
-
const
|
|
9945
|
+
const W = () => o.components || [], G = de(), E = fe(
|
|
9946
9946
|
() => G.value ? y.value[G.value.data.type] : void 0
|
|
9947
9947
|
);
|
|
9948
9948
|
d((z) => {
|
|
@@ -9952,7 +9952,7 @@ const $y = { render: My }, Ay = {
|
|
|
9952
9952
|
}), h((z) => {
|
|
9953
9953
|
G.value = void 0, i("edgeClick", z.edge);
|
|
9954
9954
|
});
|
|
9955
|
-
const
|
|
9955
|
+
const k = (z) => {
|
|
9956
9956
|
G.value?.id === z && (G.value = void 0);
|
|
9957
9957
|
}, C = (z) => {
|
|
9958
9958
|
G.value && l([G.value]), G.value = m.value.find((R) => R.id === z), G.value && (N(), setTimeout(() => {
|
|
@@ -9990,10 +9990,10 @@ const $y = { render: My }, Ay = {
|
|
|
9990
9990
|
});
|
|
9991
9991
|
};
|
|
9992
9992
|
return zt("d_flow_design_provide", {
|
|
9993
|
-
getFlowComponents:
|
|
9993
|
+
getFlowComponents: W,
|
|
9994
9994
|
addNode: A,
|
|
9995
9995
|
addNodeByLine: F,
|
|
9996
|
-
onRemoveNode:
|
|
9996
|
+
onRemoveNode: k,
|
|
9997
9997
|
getFlowComponentMap: y
|
|
9998
9998
|
}), e({
|
|
9999
9999
|
/** 获取数据 */
|
|
@@ -13799,20 +13799,20 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13799
13799
|
top: "auto",
|
|
13800
13800
|
bottom: Qe(-S.value, "", o.isPt)
|
|
13801
13801
|
})), F = fe(() => {
|
|
13802
|
-
const
|
|
13802
|
+
const q = 8 * S.value;
|
|
13803
13803
|
return {
|
|
13804
|
-
width: Qe(
|
|
13805
|
-
height: Qe(
|
|
13804
|
+
width: Qe(q, "", o.isPt),
|
|
13805
|
+
height: Qe(q, "", o.isPt)
|
|
13806
13806
|
};
|
|
13807
|
-
}),
|
|
13807
|
+
}), W = fe(() => ({ fontSize: Qe(16 * S.value, "", o.isPt) })), G = fe(
|
|
13808
13808
|
() => Object.assign(
|
|
13809
13809
|
(() => {
|
|
13810
13810
|
if (p.value) {
|
|
13811
|
-
const
|
|
13811
|
+
const q = {
|
|
13812
13812
|
zIndex: 9999,
|
|
13813
13813
|
..._.value
|
|
13814
13814
|
};
|
|
13815
|
-
return o.isActiveBgTransparent && (p.value || h.value) && !o.readonly && !o.disabled && (
|
|
13815
|
+
return o.isActiveBgTransparent && (p.value || h.value) && !o.readonly && !o.disabled && (q.backgroundColor = "color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"), q;
|
|
13816
13816
|
}
|
|
13817
13817
|
return { zIndex: o.zIndex };
|
|
13818
13818
|
})(),
|
|
@@ -13828,51 +13828,51 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13828
13828
|
);
|
|
13829
13829
|
Ne(
|
|
13830
13830
|
() => o.width,
|
|
13831
|
-
(
|
|
13832
|
-
a.value = it(
|
|
13831
|
+
(q) => {
|
|
13832
|
+
a.value = it(k(q)) || (d.value?.offsetWidth ?? 0);
|
|
13833
13833
|
}
|
|
13834
13834
|
), Ne(
|
|
13835
13835
|
() => o.height,
|
|
13836
|
-
(
|
|
13837
|
-
u.value = it(
|
|
13836
|
+
(q) => {
|
|
13837
|
+
u.value = it(k(q)) || (d.value?.offsetHeight ?? 0);
|
|
13838
13838
|
},
|
|
13839
13839
|
{ deep: !0 }
|
|
13840
13840
|
), Ne(
|
|
13841
13841
|
() => o.left,
|
|
13842
|
-
(
|
|
13843
|
-
l.value = it(
|
|
13842
|
+
(q) => {
|
|
13843
|
+
l.value = it(k(q));
|
|
13844
13844
|
}
|
|
13845
13845
|
), Ne(
|
|
13846
13846
|
() => o.top,
|
|
13847
|
-
(
|
|
13848
|
-
c.value = it(
|
|
13847
|
+
(q) => {
|
|
13848
|
+
c.value = it(k(q));
|
|
13849
13849
|
}
|
|
13850
|
-
), Ne(a, (
|
|
13851
|
-
r.value && (r.value.style.width = Qe(
|
|
13852
|
-
}), Ne(u, (
|
|
13853
|
-
r.value && (r.value.style.height = Qe(
|
|
13850
|
+
), Ne(a, (q) => {
|
|
13851
|
+
r.value && (r.value.style.width = Qe(q, "", o.isPt), o.resize && d.value?.style && (d.value.style.width = Qe(q, "", o.isPt)));
|
|
13852
|
+
}), Ne(u, (q) => {
|
|
13853
|
+
r.value && (r.value.style.height = Qe(q, "", o.isPt), o.resize && d.value?.style && (d.value.style.height = Qe(q, "", o.isPt)));
|
|
13854
13854
|
}), Ne(
|
|
13855
13855
|
() => o.activeFlag,
|
|
13856
|
-
(
|
|
13857
|
-
E(
|
|
13856
|
+
(q) => {
|
|
13857
|
+
E(q);
|
|
13858
13858
|
}
|
|
13859
13859
|
);
|
|
13860
|
-
const E = (
|
|
13861
|
-
p.value =
|
|
13862
|
-
},
|
|
13863
|
-
s.value && s.value.firstChild && (d.value = s.value.firstChild, a.value = it(
|
|
13864
|
-
}, H = (
|
|
13865
|
-
l.value =
|
|
13866
|
-
}, b = (
|
|
13867
|
-
c.value =
|
|
13868
|
-
}, N = (
|
|
13860
|
+
const E = (q) => {
|
|
13861
|
+
p.value = q;
|
|
13862
|
+
}, k = (q) => q === void 0 ? 0 : o.isPt ? l0(q) : q, C = () => {
|
|
13863
|
+
s.value && s.value.firstChild && (d.value = s.value.firstChild, a.value = it(k(o.width)) || (d.value?.offsetWidth ?? 0), u.value = it(k(o.height)) || (d.value?.offsetHeight ?? 0), l.value = it(k(o.left)), c.value = it(k(o.top)), E(o.activeFlag));
|
|
13864
|
+
}, H = (q) => {
|
|
13865
|
+
l.value = q;
|
|
13866
|
+
}, b = (q) => {
|
|
13867
|
+
c.value = q;
|
|
13868
|
+
}, N = (q) => {
|
|
13869
13869
|
const Q = 8 * S.value / 2, X = {};
|
|
13870
|
-
return
|
|
13870
|
+
return q.split("-").forEach((se) => {
|
|
13871
13871
|
X[se] = Qe(-Q, "", o.isPt);
|
|
13872
13872
|
}), X;
|
|
13873
|
-
}, v = (
|
|
13874
|
-
h.value =
|
|
13875
|
-
}, x = (
|
|
13873
|
+
}, v = (q) => {
|
|
13874
|
+
h.value = q;
|
|
13875
|
+
}, x = (q) => o.isPt ? a0(q) : q, D = () => {
|
|
13876
13876
|
f.value = !0, i("focus", {
|
|
13877
13877
|
index: o.index,
|
|
13878
13878
|
width: x(a.value),
|
|
@@ -13892,21 +13892,21 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13892
13892
|
document.onmouseup = () => {
|
|
13893
13893
|
document.onmousemove = null, document.onmouseup = null, z();
|
|
13894
13894
|
};
|
|
13895
|
-
}, M = (
|
|
13895
|
+
}, M = (q, Q) => {
|
|
13896
13896
|
if (o.disabled || o.readonly) return;
|
|
13897
13897
|
let X, te, se, ie, ge, re;
|
|
13898
13898
|
m.value = !0, D();
|
|
13899
|
-
let ae =
|
|
13899
|
+
let ae = q.clientX, P = q.clientY;
|
|
13900
13900
|
document.onmousemove = (I) => {
|
|
13901
13901
|
f.value = !0, Q === "right" ? (X = !0, te = !1) : Q === "left" ? (X = !0, se = !0, ge = !0, te = !1) : Q === "top" ? (X = !1, te = !0, ie = !0, re = !0) : Q === "bottom" ? (X = !1, te = !0) : Q === "bottom-right" ? (X = !0, te = !0) : Q === "bottom-left" ? (X = !0, te = !0, se = !0, ge = !0) : Q === "top-right" ? (X = !0, te = !0, ie = !0, re = !0) : Q === "top-left" && (X = !0, te = !0, se = !0, ge = !0, ie = !0, re = !0);
|
|
13902
13902
|
const B = I.clientX - ae, U = I.clientY - P;
|
|
13903
13903
|
if (ae = I.clientX, P = I.clientY, X) {
|
|
13904
|
-
let
|
|
13905
|
-
ge && (
|
|
13904
|
+
let T = B * o.step;
|
|
13905
|
+
ge && (T = -T), se && (l.value = it(l.value - T)), a.value = it(a.value + T);
|
|
13906
13906
|
}
|
|
13907
13907
|
if (te) {
|
|
13908
|
-
let
|
|
13909
|
-
re && (
|
|
13908
|
+
let T = U * o.step;
|
|
13909
|
+
re && (T = -T), ie && (c.value = it(c.value - T)), u.value = it(u.value + T);
|
|
13910
13910
|
}
|
|
13911
13911
|
}, R();
|
|
13912
13912
|
}, O = () => {
|
|
@@ -13925,10 +13925,10 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13925
13925
|
left: x(l.value),
|
|
13926
13926
|
top: x(c.value)
|
|
13927
13927
|
}));
|
|
13928
|
-
}, V = (
|
|
13928
|
+
}, V = (q) => {
|
|
13929
13929
|
if (o.disabled || o.readonly) return;
|
|
13930
13930
|
p.value = !0, D();
|
|
13931
|
-
let Q =
|
|
13931
|
+
let Q = q.clientX, X = q.clientY;
|
|
13932
13932
|
document.onmousemove = (te) => {
|
|
13933
13933
|
const se = te.clientX - Q, ie = te.clientY - X;
|
|
13934
13934
|
Q = te.clientX, X = te.clientY, l.value = it(l.value + se * o.step), c.value = it(c.value + ie * o.step);
|
|
@@ -13941,7 +13941,7 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
13941
13941
|
setLeft: H,
|
|
13942
13942
|
setTop: b,
|
|
13943
13943
|
setOverActive: v
|
|
13944
|
-
}), (
|
|
13944
|
+
}), (q, Q) => (ee(), ue("div", {
|
|
13945
13945
|
class: bt([
|
|
13946
13946
|
"d-draggable",
|
|
13947
13947
|
{ "d-draggable--active": (p.value || h.value) && !t.readonly && !t.disabled },
|
|
@@ -14012,7 +14012,7 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
14012
14012
|
], 64)) : (ee(), ue("div", {
|
|
14013
14013
|
key: 0,
|
|
14014
14014
|
class: "d-draggable__line d-draggable__line--label",
|
|
14015
|
-
style: Oe(
|
|
14015
|
+
style: Oe(W.value)
|
|
14016
14016
|
}, lt(l.value) + "," + lt(c.value), 5))
|
|
14017
14017
|
], 64)) : $e("", !0),
|
|
14018
14018
|
!t.readonly && !t.disabled ? (ee(!0), ue(Be, { key: 1 }, gt(y.value, (X, te) => (ee(), ue(Be, { key: te }, [
|
|
@@ -14028,7 +14028,7 @@ const o0 = { class: "d-layout" }, i0 = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h",
|
|
|
14028
14028
|
ref_key: "item",
|
|
14029
14029
|
ref: s
|
|
14030
14030
|
}, [
|
|
14031
|
-
Pe(
|
|
14031
|
+
Pe(q.$slots, "default")
|
|
14032
14032
|
], 512),
|
|
14033
14033
|
!t.disabled && t.mask ? (ee(), ue("div", u0)) : $e("", !0)
|
|
14034
14034
|
], 512)
|
|
@@ -14256,7 +14256,7 @@ function b0() {
|
|
|
14256
14256
|
return b === void 0;
|
|
14257
14257
|
} }, A = "en", $ = {};
|
|
14258
14258
|
$[A] = _;
|
|
14259
|
-
var F = "$isDayjsObject",
|
|
14259
|
+
var F = "$isDayjsObject", W = function(b) {
|
|
14260
14260
|
return b instanceof C || !(!b || !b[F]);
|
|
14261
14261
|
}, G = function b(N, v, x) {
|
|
14262
14262
|
var D;
|
|
@@ -14272,11 +14272,11 @@ function b0() {
|
|
|
14272
14272
|
}
|
|
14273
14273
|
return !x && D && (A = D), D || !x && A;
|
|
14274
14274
|
}, E = function(b, N) {
|
|
14275
|
-
if (
|
|
14275
|
+
if (W(b)) return b.clone();
|
|
14276
14276
|
var v = typeof N == "object" ? N : {};
|
|
14277
14277
|
return v.date = b, v.args = arguments, new C(v);
|
|
14278
|
-
},
|
|
14279
|
-
|
|
14278
|
+
}, k = w;
|
|
14279
|
+
k.l = G, k.i = W, k.w = function(b, N) {
|
|
14280
14280
|
return E(b, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
|
|
14281
14281
|
};
|
|
14282
14282
|
var C = (function() {
|
|
@@ -14288,7 +14288,7 @@ function b0() {
|
|
|
14288
14288
|
this.$d = (function(x) {
|
|
14289
14289
|
var D = x.date, z = x.utc;
|
|
14290
14290
|
if (D === null) return /* @__PURE__ */ new Date(NaN);
|
|
14291
|
-
if (
|
|
14291
|
+
if (k.u(D)) return /* @__PURE__ */ new Date();
|
|
14292
14292
|
if (D instanceof Date) return new Date(D);
|
|
14293
14293
|
if (typeof D == "string" && !/Z$/i.test(D)) {
|
|
14294
14294
|
var R = D.match(y);
|
|
@@ -14303,7 +14303,7 @@ function b0() {
|
|
|
14303
14303
|
var v = this.$d;
|
|
14304
14304
|
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
14305
14305
|
}, N.$utils = function() {
|
|
14306
|
-
return
|
|
14306
|
+
return k;
|
|
14307
14307
|
}, N.isValid = function() {
|
|
14308
14308
|
return this.$d.toString() !== p;
|
|
14309
14309
|
}, N.isSame = function(v, x) {
|
|
@@ -14314,18 +14314,18 @@ function b0() {
|
|
|
14314
14314
|
}, N.isBefore = function(v, x) {
|
|
14315
14315
|
return this.endOf(x) < E(v);
|
|
14316
14316
|
}, N.$g = function(v, x, D) {
|
|
14317
|
-
return
|
|
14317
|
+
return k.u(v) ? this[x] : this.set(D, v);
|
|
14318
14318
|
}, N.unix = function() {
|
|
14319
14319
|
return Math.floor(this.valueOf() / 1e3);
|
|
14320
14320
|
}, N.valueOf = function() {
|
|
14321
14321
|
return this.$d.getTime();
|
|
14322
14322
|
}, N.startOf = function(v, x) {
|
|
14323
|
-
var D = this, z = !!
|
|
14324
|
-
var ge =
|
|
14323
|
+
var D = this, z = !!k.u(x) || x, R = k.p(v), M = function(se, ie) {
|
|
14324
|
+
var ge = k.w(D.$u ? Date.UTC(D.$y, ie, se) : new Date(D.$y, ie, se), D);
|
|
14325
14325
|
return z ? ge : ge.endOf(l);
|
|
14326
14326
|
}, O = function(se, ie) {
|
|
14327
|
-
return
|
|
14328
|
-
}, L = this.$W, V = this.$M,
|
|
14327
|
+
return k.w(D.toDate()[se].apply(D.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), D);
|
|
14328
|
+
}, L = this.$W, V = this.$M, q = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
14329
14329
|
switch (R) {
|
|
14330
14330
|
case h:
|
|
14331
14331
|
return z ? M(1, 0) : M(31, 11);
|
|
@@ -14333,7 +14333,7 @@ function b0() {
|
|
|
14333
14333
|
return z ? M(1, V) : M(0, V + 1);
|
|
14334
14334
|
case c:
|
|
14335
14335
|
var X = this.$locale().weekStart || 0, te = (L < X ? L + 7 : L) - X;
|
|
14336
|
-
return M(z ?
|
|
14336
|
+
return M(z ? q - te : q + (6 - te), V);
|
|
14337
14337
|
case l:
|
|
14338
14338
|
case m:
|
|
14339
14339
|
return O(Q + "Hours", 0);
|
|
@@ -14349,7 +14349,7 @@ function b0() {
|
|
|
14349
14349
|
}, N.endOf = function(v) {
|
|
14350
14350
|
return this.startOf(v, !1);
|
|
14351
14351
|
}, N.$set = function(v, x) {
|
|
14352
|
-
var D, z =
|
|
14352
|
+
var D, z = k.p(v), R = "set" + (this.$u ? "UTC" : ""), M = (D = {}, D[l] = R + "Date", D[m] = R + "Date", D[d] = R + "Month", D[h] = R + "FullYear", D[u] = R + "Hours", D[a] = R + "Minutes", D[s] = R + "Seconds", D[r] = R + "Milliseconds", D)[z], O = z === l ? this.$D + (x - this.$W) : x;
|
|
14353
14353
|
if (z === d || z === h) {
|
|
14354
14354
|
var L = this.clone().set(m, 1);
|
|
14355
14355
|
L.$d[M](O), L.init(), this.$d = L.set(m, Math.min(this.$D, L.daysInMonth())).$d;
|
|
@@ -14358,29 +14358,29 @@ function b0() {
|
|
|
14358
14358
|
}, N.set = function(v, x) {
|
|
14359
14359
|
return this.clone().$set(v, x);
|
|
14360
14360
|
}, N.get = function(v) {
|
|
14361
|
-
return this[
|
|
14361
|
+
return this[k.p(v)]();
|
|
14362
14362
|
}, N.add = function(v, x) {
|
|
14363
14363
|
var D, z = this;
|
|
14364
14364
|
v = Number(v);
|
|
14365
|
-
var R =
|
|
14366
|
-
var
|
|
14367
|
-
return
|
|
14365
|
+
var R = k.p(x), M = function(V) {
|
|
14366
|
+
var q = E(z);
|
|
14367
|
+
return k.w(q.date(q.date() + Math.round(V * v)), z);
|
|
14368
14368
|
};
|
|
14369
14369
|
if (R === d) return this.set(d, this.$M + v);
|
|
14370
14370
|
if (R === h) return this.set(h, this.$y + v);
|
|
14371
14371
|
if (R === l) return M(1);
|
|
14372
14372
|
if (R === c) return M(7);
|
|
14373
14373
|
var O = (D = {}, D[a] = o, D[u] = i, D[s] = n, D)[R] || 1, L = this.$d.getTime() + v * O;
|
|
14374
|
-
return
|
|
14374
|
+
return k.w(L, this);
|
|
14375
14375
|
}, N.subtract = function(v, x) {
|
|
14376
14376
|
return this.add(-1 * v, x);
|
|
14377
14377
|
}, N.format = function(v) {
|
|
14378
14378
|
var x = this, D = this.$locale();
|
|
14379
14379
|
if (!this.isValid()) return D.invalidDate || p;
|
|
14380
|
-
var z = v || "YYYY-MM-DDTHH:mm:ssZ", R =
|
|
14380
|
+
var z = v || "YYYY-MM-DDTHH:mm:ssZ", R = k.z(this), M = this.$H, O = this.$m, L = this.$M, V = D.weekdays, q = D.months, Q = D.meridiem, X = function(ie, ge, re, ae) {
|
|
14381
14381
|
return ie && (ie[ge] || ie(x, z)) || re[ge].slice(0, ae);
|
|
14382
14382
|
}, te = function(ie) {
|
|
14383
|
-
return
|
|
14383
|
+
return k.s(M % 12 || 12, ie, "0");
|
|
14384
14384
|
}, se = Q || function(ie, ge, re) {
|
|
14385
14385
|
var ae = ie < 12 ? "AM" : "PM";
|
|
14386
14386
|
return re ? ae.toLowerCase() : ae;
|
|
@@ -14391,19 +14391,19 @@ function b0() {
|
|
|
14391
14391
|
case "YY":
|
|
14392
14392
|
return String(x.$y).slice(-2);
|
|
14393
14393
|
case "YYYY":
|
|
14394
|
-
return
|
|
14394
|
+
return k.s(x.$y, 4, "0");
|
|
14395
14395
|
case "M":
|
|
14396
14396
|
return L + 1;
|
|
14397
14397
|
case "MM":
|
|
14398
|
-
return
|
|
14398
|
+
return k.s(L + 1, 2, "0");
|
|
14399
14399
|
case "MMM":
|
|
14400
|
-
return X(D.monthsShort, L,
|
|
14400
|
+
return X(D.monthsShort, L, q, 3);
|
|
14401
14401
|
case "MMMM":
|
|
14402
|
-
return X(
|
|
14402
|
+
return X(q, L);
|
|
14403
14403
|
case "D":
|
|
14404
14404
|
return x.$D;
|
|
14405
14405
|
case "DD":
|
|
14406
|
-
return
|
|
14406
|
+
return k.s(x.$D, 2, "0");
|
|
14407
14407
|
case "d":
|
|
14408
14408
|
return String(x.$W);
|
|
14409
14409
|
case "dd":
|
|
@@ -14415,7 +14415,7 @@ function b0() {
|
|
|
14415
14415
|
case "H":
|
|
14416
14416
|
return String(M);
|
|
14417
14417
|
case "HH":
|
|
14418
|
-
return
|
|
14418
|
+
return k.s(M, 2, "0");
|
|
14419
14419
|
case "h":
|
|
14420
14420
|
return te(1);
|
|
14421
14421
|
case "hh":
|
|
@@ -14427,13 +14427,13 @@ function b0() {
|
|
|
14427
14427
|
case "m":
|
|
14428
14428
|
return String(O);
|
|
14429
14429
|
case "mm":
|
|
14430
|
-
return
|
|
14430
|
+
return k.s(O, 2, "0");
|
|
14431
14431
|
case "s":
|
|
14432
14432
|
return String(x.$s);
|
|
14433
14433
|
case "ss":
|
|
14434
|
-
return
|
|
14434
|
+
return k.s(x.$s, 2, "0");
|
|
14435
14435
|
case "SSS":
|
|
14436
|
-
return
|
|
14436
|
+
return k.s(x.$ms, 3, "0");
|
|
14437
14437
|
case "Z":
|
|
14438
14438
|
return R;
|
|
14439
14439
|
}
|
|
@@ -14443,18 +14443,18 @@ function b0() {
|
|
|
14443
14443
|
}, N.utcOffset = function() {
|
|
14444
14444
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
14445
14445
|
}, N.diff = function(v, x, D) {
|
|
14446
|
-
var z, R = this, M =
|
|
14447
|
-
return
|
|
14446
|
+
var z, R = this, M = k.p(x), O = E(v), L = (O.utcOffset() - this.utcOffset()) * o, V = this - O, q = function() {
|
|
14447
|
+
return k.m(R, O);
|
|
14448
14448
|
};
|
|
14449
14449
|
switch (M) {
|
|
14450
14450
|
case h:
|
|
14451
|
-
z =
|
|
14451
|
+
z = q() / 12;
|
|
14452
14452
|
break;
|
|
14453
14453
|
case d:
|
|
14454
|
-
z =
|
|
14454
|
+
z = q();
|
|
14455
14455
|
break;
|
|
14456
14456
|
case f:
|
|
14457
|
-
z =
|
|
14457
|
+
z = q() / 3;
|
|
14458
14458
|
break;
|
|
14459
14459
|
case c:
|
|
14460
14460
|
z = (V - L) / 6048e5;
|
|
@@ -14474,7 +14474,7 @@ function b0() {
|
|
|
14474
14474
|
default:
|
|
14475
14475
|
z = V;
|
|
14476
14476
|
}
|
|
14477
|
-
return D ? z :
|
|
14477
|
+
return D ? z : k.a(z);
|
|
14478
14478
|
}, N.daysInMonth = function() {
|
|
14479
14479
|
return this.endOf(d).$D;
|
|
14480
14480
|
}, N.$locale = function() {
|
|
@@ -14484,7 +14484,7 @@ function b0() {
|
|
|
14484
14484
|
var D = this.clone(), z = G(v, x, !0);
|
|
14485
14485
|
return z && (D.$L = z), D;
|
|
14486
14486
|
}, N.clone = function() {
|
|
14487
|
-
return
|
|
14487
|
+
return k.w(this.$d, this);
|
|
14488
14488
|
}, N.toDate = function() {
|
|
14489
14489
|
return new Date(this.valueOf());
|
|
14490
14490
|
}, N.toJSON = function() {
|
|
@@ -14501,7 +14501,7 @@ function b0() {
|
|
|
14501
14501
|
};
|
|
14502
14502
|
})), E.extend = function(b, N) {
|
|
14503
14503
|
return b.$i || (b(N, C, E), b.$i = !0), E;
|
|
14504
|
-
}, E.locale = G, E.isDayjs =
|
|
14504
|
+
}, E.locale = G, E.isDayjs = W, E.unix = function(b) {
|
|
14505
14505
|
return E(1e3 * b);
|
|
14506
14506
|
}, E.en = $[A], E.Ls = $, E.p = {}, E;
|
|
14507
14507
|
}));
|
|
@@ -14683,8 +14683,8 @@ function wt() {
|
|
|
14683
14683
|
var g = this.words, w = _.words, A = this.sigBytes, $ = _.sigBytes;
|
|
14684
14684
|
if (this.clamp(), A % 4)
|
|
14685
14685
|
for (var F = 0; F < $; F++) {
|
|
14686
|
-
var
|
|
14687
|
-
g[A + F >>> 2] |=
|
|
14686
|
+
var W = w[F >>> 2] >>> 24 - F % 4 * 8 & 255;
|
|
14687
|
+
g[A + F >>> 2] |= W << 24 - (A + F) % 4 * 8;
|
|
14688
14688
|
}
|
|
14689
14689
|
else
|
|
14690
14690
|
for (var G = 0; G < $; G += 4)
|
|
@@ -14887,15 +14887,15 @@ function wt() {
|
|
|
14887
14887
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
14888
14888
|
*/
|
|
14889
14889
|
_process: function(_) {
|
|
14890
|
-
var g, w = this._data, A = w.words, $ = w.sigBytes, F = this.blockSize,
|
|
14890
|
+
var g, w = this._data, A = w.words, $ = w.sigBytes, F = this.blockSize, W = F * 4, G = $ / W;
|
|
14891
14891
|
_ ? G = o.ceil(G) : G = o.max((G | 0) - this._minBufferSize, 0);
|
|
14892
|
-
var E = G * F,
|
|
14892
|
+
var E = G * F, k = o.min(E * 4, $);
|
|
14893
14893
|
if (E) {
|
|
14894
14894
|
for (var C = 0; C < E; C += F)
|
|
14895
14895
|
this._doProcessBlock(A, C);
|
|
14896
|
-
g = A.splice(0, E), w.sigBytes -=
|
|
14896
|
+
g = A.splice(0, E), w.sigBytes -= k;
|
|
14897
14897
|
}
|
|
14898
|
-
return new d.init(g,
|
|
14898
|
+
return new d.init(g, k);
|
|
14899
14899
|
},
|
|
14900
14900
|
/**
|
|
14901
14901
|
* Creates a copy of this object.
|
|
@@ -15119,8 +15119,8 @@ function Hc() {
|
|
|
15119
15119
|
var _ = y + S, g = p[_];
|
|
15120
15120
|
p[_] = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
15121
15121
|
}
|
|
15122
|
-
var w = this._hash.words, A = p[y + 0], $ = p[y + 1], F = p[y + 2],
|
|
15123
|
-
M = d(M, O, L, V, A, 7, l[0]), V = d(V, M, O, L, $, 12, l[1]), L = d(L, V, M, O, F, 17, l[2]), O = d(O, L, V, M,
|
|
15122
|
+
var w = this._hash.words, A = p[y + 0], $ = p[y + 1], F = p[y + 2], W = p[y + 3], G = p[y + 4], E = p[y + 5], k = p[y + 6], C = p[y + 7], H = p[y + 8], b = p[y + 9], N = p[y + 10], v = p[y + 11], x = p[y + 12], D = p[y + 13], z = p[y + 14], R = p[y + 15], M = w[0], O = w[1], L = w[2], V = w[3];
|
|
15123
|
+
M = d(M, O, L, V, A, 7, l[0]), V = d(V, M, O, L, $, 12, l[1]), L = d(L, V, M, O, F, 17, l[2]), O = d(O, L, V, M, W, 22, l[3]), M = d(M, O, L, V, G, 7, l[4]), V = d(V, M, O, L, E, 12, l[5]), L = d(L, V, M, O, k, 17, l[6]), O = d(O, L, V, M, C, 22, l[7]), M = d(M, O, L, V, H, 7, l[8]), V = d(V, M, O, L, b, 12, l[9]), L = d(L, V, M, O, N, 17, l[10]), O = d(O, L, V, M, v, 22, l[11]), M = d(M, O, L, V, x, 7, l[12]), V = d(V, M, O, L, D, 12, l[13]), L = d(L, V, M, O, z, 17, l[14]), O = d(O, L, V, M, R, 22, l[15]), M = f(M, O, L, V, $, 5, l[16]), V = f(V, M, O, L, k, 9, l[17]), L = f(L, V, M, O, v, 14, l[18]), O = f(O, L, V, M, A, 20, l[19]), M = f(M, O, L, V, E, 5, l[20]), V = f(V, M, O, L, N, 9, l[21]), L = f(L, V, M, O, R, 14, l[22]), O = f(O, L, V, M, G, 20, l[23]), M = f(M, O, L, V, b, 5, l[24]), V = f(V, M, O, L, z, 9, l[25]), L = f(L, V, M, O, W, 14, l[26]), O = f(O, L, V, M, H, 20, l[27]), M = f(M, O, L, V, D, 5, l[28]), V = f(V, M, O, L, F, 9, l[29]), L = f(L, V, M, O, C, 14, l[30]), O = f(O, L, V, M, x, 20, l[31]), M = h(M, O, L, V, E, 4, l[32]), V = h(V, M, O, L, H, 11, l[33]), L = h(L, V, M, O, v, 16, l[34]), O = h(O, L, V, M, z, 23, l[35]), M = h(M, O, L, V, $, 4, l[36]), V = h(V, M, O, L, G, 11, l[37]), L = h(L, V, M, O, C, 16, l[38]), O = h(O, L, V, M, N, 23, l[39]), M = h(M, O, L, V, D, 4, l[40]), V = h(V, M, O, L, A, 11, l[41]), L = h(L, V, M, O, W, 16, l[42]), O = h(O, L, V, M, k, 23, l[43]), M = h(M, O, L, V, b, 4, l[44]), V = h(V, M, O, L, x, 11, l[45]), L = h(L, V, M, O, R, 16, l[46]), O = h(O, L, V, M, F, 23, l[47]), M = m(M, O, L, V, A, 6, l[48]), V = m(V, M, O, L, C, 10, l[49]), L = m(L, V, M, O, z, 15, l[50]), O = m(O, L, V, M, E, 21, l[51]), M = m(M, O, L, V, x, 6, l[52]), V = m(V, M, O, L, W, 10, l[53]), L = m(L, V, M, O, N, 15, l[54]), O = m(O, L, V, M, $, 21, l[55]), M = m(M, O, L, V, H, 6, l[56]), V = m(V, M, O, L, R, 10, l[57]), L = m(L, V, M, O, k, 15, l[58]), O = m(O, L, V, M, D, 21, l[59]), M = m(M, O, L, V, G, 6, l[60]), V = m(V, M, O, L, v, 10, l[61]), L = m(L, V, M, O, F, 15, l[62]), O = m(O, L, V, M, b, 21, l[63]), w[0] = w[0] + M | 0, w[1] = w[1] + O | 0, w[2] = w[2] + L | 0, w[3] = w[3] + V | 0;
|
|
15124
15124
|
},
|
|
15125
15125
|
_doFinalize: function() {
|
|
15126
15126
|
var p = this._data, y = p.words, S = this._nDataBytes * 8, _ = p.sigBytes * 8;
|
|
@@ -15128,8 +15128,8 @@ function Hc() {
|
|
|
15128
15128
|
var g = o.floor(S / 4294967296), w = S;
|
|
15129
15129
|
y[(_ + 64 >>> 9 << 4) + 15] = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360, y[(_ + 64 >>> 9 << 4) + 14] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, p.sigBytes = (y.length + 1) * 4, this._process();
|
|
15130
15130
|
for (var A = this._hash, $ = A.words, F = 0; F < 4; F++) {
|
|
15131
|
-
var
|
|
15132
|
-
$[F] = (
|
|
15131
|
+
var W = $[F];
|
|
15132
|
+
$[F] = (W << 8 | W >>> 24) & 16711935 | (W << 24 | W >>> 8) & 4278255360;
|
|
15133
15133
|
}
|
|
15134
15134
|
return A;
|
|
15135
15135
|
},
|
|
@@ -15374,8 +15374,8 @@ function Lc() {
|
|
|
15374
15374
|
*
|
|
15375
15375
|
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
15376
15376
|
*/
|
|
15377
|
-
createEncryptor: function(E,
|
|
15378
|
-
return this.create(this._ENC_XFORM_MODE, E,
|
|
15377
|
+
createEncryptor: function(E, k) {
|
|
15378
|
+
return this.create(this._ENC_XFORM_MODE, E, k);
|
|
15379
15379
|
},
|
|
15380
15380
|
/**
|
|
15381
15381
|
* Creates this cipher in decryption mode.
|
|
@@ -15391,8 +15391,8 @@ function Lc() {
|
|
|
15391
15391
|
*
|
|
15392
15392
|
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
15393
15393
|
*/
|
|
15394
|
-
createDecryptor: function(E,
|
|
15395
|
-
return this.create(this._DEC_XFORM_MODE, E,
|
|
15394
|
+
createDecryptor: function(E, k) {
|
|
15395
|
+
return this.create(this._DEC_XFORM_MODE, E, k);
|
|
15396
15396
|
},
|
|
15397
15397
|
/**
|
|
15398
15398
|
* Initializes a newly created cipher.
|
|
@@ -15405,8 +15405,8 @@ function Lc() {
|
|
|
15405
15405
|
*
|
|
15406
15406
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
15407
15407
|
*/
|
|
15408
|
-
init: function(E,
|
|
15409
|
-
this.cfg = this.cfg.extend(C), this._xformMode = E, this._key =
|
|
15408
|
+
init: function(E, k, C) {
|
|
15409
|
+
this.cfg = this.cfg.extend(C), this._xformMode = E, this._key = k, this.reset();
|
|
15410
15410
|
},
|
|
15411
15411
|
/**
|
|
15412
15412
|
* Resets this cipher to its initial state.
|
|
@@ -15449,8 +15449,8 @@ function Lc() {
|
|
|
15449
15449
|
*/
|
|
15450
15450
|
finalize: function(E) {
|
|
15451
15451
|
E && this._append(E);
|
|
15452
|
-
var
|
|
15453
|
-
return
|
|
15452
|
+
var k = this._doFinalize();
|
|
15453
|
+
return k;
|
|
15454
15454
|
},
|
|
15455
15455
|
keySize: 128 / 32,
|
|
15456
15456
|
ivSize: 128 / 32,
|
|
@@ -15470,16 +15470,16 @@ function Lc() {
|
|
|
15470
15470
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
15471
15471
|
*/
|
|
15472
15472
|
_createHelper: /* @__PURE__ */ (function() {
|
|
15473
|
-
function E(
|
|
15474
|
-
return typeof
|
|
15473
|
+
function E(k) {
|
|
15474
|
+
return typeof k == "string" ? G : $;
|
|
15475
15475
|
}
|
|
15476
|
-
return function(
|
|
15476
|
+
return function(k) {
|
|
15477
15477
|
return {
|
|
15478
15478
|
encrypt: function(C, H, b) {
|
|
15479
|
-
return E(H).encrypt(
|
|
15479
|
+
return E(H).encrypt(k, C, H, b);
|
|
15480
15480
|
},
|
|
15481
15481
|
decrypt: function(C, H, b) {
|
|
15482
|
-
return E(H).decrypt(
|
|
15482
|
+
return E(H).decrypt(k, C, H, b);
|
|
15483
15483
|
}
|
|
15484
15484
|
};
|
|
15485
15485
|
};
|
|
@@ -15505,8 +15505,8 @@ function Lc() {
|
|
|
15505
15505
|
*
|
|
15506
15506
|
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
15507
15507
|
*/
|
|
15508
|
-
createEncryptor: function(E,
|
|
15509
|
-
return this.Encryptor.create(E,
|
|
15508
|
+
createEncryptor: function(E, k) {
|
|
15509
|
+
return this.Encryptor.create(E, k);
|
|
15510
15510
|
},
|
|
15511
15511
|
/**
|
|
15512
15512
|
* Creates this mode for decryption.
|
|
@@ -15520,8 +15520,8 @@ function Lc() {
|
|
|
15520
15520
|
*
|
|
15521
15521
|
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
15522
15522
|
*/
|
|
15523
|
-
createDecryptor: function(E,
|
|
15524
|
-
return this.Decryptor.create(E,
|
|
15523
|
+
createDecryptor: function(E, k) {
|
|
15524
|
+
return this.Decryptor.create(E, k);
|
|
15525
15525
|
},
|
|
15526
15526
|
/**
|
|
15527
15527
|
* Initializes a newly created mode.
|
|
@@ -15533,8 +15533,8 @@ function Lc() {
|
|
|
15533
15533
|
*
|
|
15534
15534
|
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
15535
15535
|
*/
|
|
15536
|
-
init: function(E,
|
|
15537
|
-
this._cipher = E, this._iv =
|
|
15536
|
+
init: function(E, k) {
|
|
15537
|
+
this._cipher = E, this._iv = k;
|
|
15538
15538
|
}
|
|
15539
15539
|
}), y = m.CBC = (function() {
|
|
15540
15540
|
var E = p.extend();
|
|
@@ -15551,7 +15551,7 @@ function Lc() {
|
|
|
15551
15551
|
*/
|
|
15552
15552
|
processBlock: function(C, H) {
|
|
15553
15553
|
var b = this._cipher, N = b.blockSize;
|
|
15554
|
-
|
|
15554
|
+
k.call(this, C, H, N), b.encryptBlock(C, H), this._prevBlock = C.slice(H, H + N);
|
|
15555
15555
|
}
|
|
15556
15556
|
}), E.Decryptor = E.extend({
|
|
15557
15557
|
/**
|
|
@@ -15566,10 +15566,10 @@ function Lc() {
|
|
|
15566
15566
|
*/
|
|
15567
15567
|
processBlock: function(C, H) {
|
|
15568
15568
|
var b = this._cipher, N = b.blockSize, v = C.slice(H, H + N);
|
|
15569
|
-
b.decryptBlock(C, H),
|
|
15569
|
+
b.decryptBlock(C, H), k.call(this, C, H, N), this._prevBlock = v;
|
|
15570
15570
|
}
|
|
15571
15571
|
});
|
|
15572
|
-
function
|
|
15572
|
+
function k(C, H, b) {
|
|
15573
15573
|
var N, v = this._iv;
|
|
15574
15574
|
v ? (N = v, this._iv = o) : N = this._prevBlock;
|
|
15575
15575
|
for (var x = 0; x < b; x++)
|
|
@@ -15589,8 +15589,8 @@ function Lc() {
|
|
|
15589
15589
|
*
|
|
15590
15590
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
15591
15591
|
*/
|
|
15592
|
-
pad: function(E,
|
|
15593
|
-
for (var C =
|
|
15592
|
+
pad: function(E, k) {
|
|
15593
|
+
for (var C = k * 4, H = C - E.sigBytes % C, b = H << 24 | H << 16 | H << 8 | H, N = [], v = 0; v < H; v += 4)
|
|
15594
15594
|
N.push(b);
|
|
15595
15595
|
var x = a.create(N, H);
|
|
15596
15596
|
E.concat(x);
|
|
@@ -15607,8 +15607,8 @@ function Lc() {
|
|
|
15607
15607
|
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
15608
15608
|
*/
|
|
15609
15609
|
unpad: function(E) {
|
|
15610
|
-
var
|
|
15611
|
-
E.sigBytes -=
|
|
15610
|
+
var k = E.words[E.sigBytes - 1 >>> 2] & 255;
|
|
15611
|
+
E.sigBytes -= k;
|
|
15612
15612
|
}
|
|
15613
15613
|
};
|
|
15614
15614
|
r.BlockCipher = h.extend({
|
|
@@ -15625,15 +15625,15 @@ function Lc() {
|
|
|
15625
15625
|
reset: function() {
|
|
15626
15626
|
var E;
|
|
15627
15627
|
h.reset.call(this);
|
|
15628
|
-
var
|
|
15628
|
+
var k = this.cfg, C = k.iv, H = k.mode;
|
|
15629
15629
|
this._xformMode == this._ENC_XFORM_MODE ? E = H.createEncryptor : (E = H.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == E ? this._mode.init(this, C && C.words) : (this._mode = E.call(H, this, C && C.words), this._mode.__creator = E);
|
|
15630
15630
|
},
|
|
15631
|
-
_doProcessBlock: function(E,
|
|
15632
|
-
this._mode.processBlock(E,
|
|
15631
|
+
_doProcessBlock: function(E, k) {
|
|
15632
|
+
this._mode.processBlock(E, k);
|
|
15633
15633
|
},
|
|
15634
15634
|
_doFinalize: function() {
|
|
15635
|
-
var E,
|
|
15636
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (
|
|
15635
|
+
var E, k = this.cfg.padding;
|
|
15636
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (k.pad(this._data, this.blockSize), E = this._process(!0)) : (E = this._process(!0), k.unpad(E)), E;
|
|
15637
15637
|
},
|
|
15638
15638
|
blockSize: 128 / 32
|
|
15639
15639
|
});
|
|
@@ -15693,8 +15693,8 @@ function Lc() {
|
|
|
15693
15693
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
15694
15694
|
*/
|
|
15695
15695
|
stringify: function(E) {
|
|
15696
|
-
var
|
|
15697
|
-
return H ?
|
|
15696
|
+
var k, C = E.ciphertext, H = E.salt;
|
|
15697
|
+
return H ? k = a.create([1398893684, 1701076831]).concat(H).concat(C) : k = C, k.toString(c);
|
|
15698
15698
|
},
|
|
15699
15699
|
/**
|
|
15700
15700
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -15710,8 +15710,8 @@ function Lc() {
|
|
|
15710
15710
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
15711
15711
|
*/
|
|
15712
15712
|
parse: function(E) {
|
|
15713
|
-
var
|
|
15714
|
-
return H[0] == 1398893684 && H[1] == 1701076831 && (
|
|
15713
|
+
var k, C = c.parse(E), H = C.words;
|
|
15714
|
+
return H[0] == 1398893684 && H[1] == 1701076831 && (k = a.create(H.slice(2, 4)), H.splice(0, 4), C.sigBytes -= 16), g.create({ ciphertext: C, salt: k });
|
|
15715
15715
|
}
|
|
15716
15716
|
}, $ = r.SerializableCipher = s.extend({
|
|
15717
15717
|
/**
|
|
@@ -15740,9 +15740,9 @@ function Lc() {
|
|
|
15740
15740
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
15741
15741
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
15742
15742
|
*/
|
|
15743
|
-
encrypt: function(E,
|
|
15743
|
+
encrypt: function(E, k, C, H) {
|
|
15744
15744
|
H = this.cfg.extend(H);
|
|
15745
|
-
var b = E.createEncryptor(C, H), N = b.finalize(
|
|
15745
|
+
var b = E.createEncryptor(C, H), N = b.finalize(k), v = b.cfg;
|
|
15746
15746
|
return g.create({
|
|
15747
15747
|
ciphertext: N,
|
|
15748
15748
|
key: C,
|
|
@@ -15771,9 +15771,9 @@ function Lc() {
|
|
|
15771
15771
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
15772
15772
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
15773
15773
|
*/
|
|
15774
|
-
decrypt: function(E,
|
|
15775
|
-
H = this.cfg.extend(H),
|
|
15776
|
-
var b = E.createDecryptor(C, H).finalize(
|
|
15774
|
+
decrypt: function(E, k, C, H) {
|
|
15775
|
+
H = this.cfg.extend(H), k = this._parse(k, H.format);
|
|
15776
|
+
var b = E.createDecryptor(C, H).finalize(k.ciphertext);
|
|
15777
15777
|
return b;
|
|
15778
15778
|
},
|
|
15779
15779
|
/**
|
|
@@ -15791,10 +15791,10 @@ function Lc() {
|
|
|
15791
15791
|
*
|
|
15792
15792
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
15793
15793
|
*/
|
|
15794
|
-
_parse: function(E,
|
|
15795
|
-
return typeof E == "string" ?
|
|
15794
|
+
_parse: function(E, k) {
|
|
15795
|
+
return typeof E == "string" ? k.parse(E, this) : E;
|
|
15796
15796
|
}
|
|
15797
|
-
}), F = i.kdf = {},
|
|
15797
|
+
}), F = i.kdf = {}, W = F.OpenSSL = {
|
|
15798
15798
|
/**
|
|
15799
15799
|
* Derives a key and IV from a password.
|
|
15800
15800
|
*
|
|
@@ -15812,13 +15812,13 @@ function Lc() {
|
|
|
15812
15812
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
15813
15813
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
15814
15814
|
*/
|
|
15815
|
-
execute: function(E,
|
|
15815
|
+
execute: function(E, k, C, H, b) {
|
|
15816
15816
|
if (H || (H = a.random(64 / 8)), b)
|
|
15817
|
-
var N = f.create({ keySize:
|
|
15817
|
+
var N = f.create({ keySize: k + C, hasher: b }).compute(E, H);
|
|
15818
15818
|
else
|
|
15819
|
-
var N = f.create({ keySize:
|
|
15820
|
-
var v = a.create(N.words.slice(
|
|
15821
|
-
return N.sigBytes =
|
|
15819
|
+
var N = f.create({ keySize: k + C }).compute(E, H);
|
|
15820
|
+
var v = a.create(N.words.slice(k), C * 4);
|
|
15821
|
+
return N.sigBytes = k * 4, g.create({ key: N, iv: v, salt: H });
|
|
15822
15822
|
}
|
|
15823
15823
|
}, G = r.PasswordBasedCipher = $.extend({
|
|
15824
15824
|
/**
|
|
@@ -15827,7 +15827,7 @@ function Lc() {
|
|
|
15827
15827
|
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
15828
15828
|
*/
|
|
15829
15829
|
cfg: $.cfg.extend({
|
|
15830
|
-
kdf:
|
|
15830
|
+
kdf: W
|
|
15831
15831
|
}),
|
|
15832
15832
|
/**
|
|
15833
15833
|
* Encrypts a message using a password.
|
|
@@ -15846,11 +15846,11 @@ function Lc() {
|
|
|
15846
15846
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
15847
15847
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
15848
15848
|
*/
|
|
15849
|
-
encrypt: function(E,
|
|
15849
|
+
encrypt: function(E, k, C, H) {
|
|
15850
15850
|
H = this.cfg.extend(H);
|
|
15851
15851
|
var b = H.kdf.execute(C, E.keySize, E.ivSize, H.salt, H.hasher);
|
|
15852
15852
|
H.iv = b.iv;
|
|
15853
|
-
var N = $.encrypt.call(this, E,
|
|
15853
|
+
var N = $.encrypt.call(this, E, k, b.key, H);
|
|
15854
15854
|
return N.mixIn(b), N;
|
|
15855
15855
|
},
|
|
15856
15856
|
/**
|
|
@@ -15870,11 +15870,11 @@ function Lc() {
|
|
|
15870
15870
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
15871
15871
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
15872
15872
|
*/
|
|
15873
|
-
decrypt: function(E,
|
|
15874
|
-
H = this.cfg.extend(H),
|
|
15875
|
-
var b = H.kdf.execute(C, E.keySize, E.ivSize,
|
|
15873
|
+
decrypt: function(E, k, C, H) {
|
|
15874
|
+
H = this.cfg.extend(H), k = this._parse(k, H.format);
|
|
15875
|
+
var b = H.kdf.execute(C, E.keySize, E.ivSize, k.salt, H.hasher);
|
|
15876
15876
|
H.iv = b.iv;
|
|
15877
|
-
var N = $.decrypt.call(this, E,
|
|
15877
|
+
var N = $.decrypt.call(this, E, k, b.key, H);
|
|
15878
15878
|
return N;
|
|
15879
15879
|
}
|
|
15880
15880
|
});
|
|
@@ -15896,25 +15896,25 @@ function P0() {
|
|
|
15896
15896
|
for (var A = 0, $ = 0, w = 0; w < 256; w++) {
|
|
15897
15897
|
var F = $ ^ $ << 1 ^ $ << 2 ^ $ << 3 ^ $ << 4;
|
|
15898
15898
|
F = F >>> 8 ^ F & 255 ^ 99, a[A] = F, u[F] = A;
|
|
15899
|
-
var
|
|
15900
|
-
l[A] =
|
|
15901
|
-
var
|
|
15902
|
-
h[F] =
|
|
15899
|
+
var W = g[A], G = g[W], E = g[G], k = g[F] * 257 ^ F * 16843008;
|
|
15900
|
+
l[A] = k << 24 | k >>> 8, c[A] = k << 16 | k >>> 16, d[A] = k << 8 | k >>> 24, f[A] = k;
|
|
15901
|
+
var k = E * 16843009 ^ G * 65537 ^ W * 257 ^ A * 16843008;
|
|
15902
|
+
h[F] = k << 24 | k >>> 8, m[F] = k << 16 | k >>> 16, p[F] = k << 8 | k >>> 24, y[F] = k, A ? (A = W ^ g[g[g[E ^ W]]], $ ^= g[g[$]]) : A = $ = 1;
|
|
15903
15903
|
}
|
|
15904
15904
|
})();
|
|
15905
15905
|
var S = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], _ = s.AES = r.extend({
|
|
15906
15906
|
_doReset: function() {
|
|
15907
15907
|
var g;
|
|
15908
15908
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
15909
|
-
for (var w = this._keyPriorReset = this._key, A = w.words, $ = w.sigBytes / 4, F = this._nRounds = $ + 6,
|
|
15909
|
+
for (var w = this._keyPriorReset = this._key, A = w.words, $ = w.sigBytes / 4, F = this._nRounds = $ + 6, W = (F + 1) * 4, G = this._keySchedule = [], E = 0; E < W; E++)
|
|
15910
15910
|
E < $ ? G[E] = A[E] : (g = G[E - 1], E % $ ? $ > 6 && E % $ == 4 && (g = a[g >>> 24] << 24 | a[g >>> 16 & 255] << 16 | a[g >>> 8 & 255] << 8 | a[g & 255]) : (g = g << 8 | g >>> 24, g = a[g >>> 24] << 24 | a[g >>> 16 & 255] << 16 | a[g >>> 8 & 255] << 8 | a[g & 255], g ^= S[E / $ | 0] << 24), G[E] = G[E - $] ^ g);
|
|
15911
|
-
for (var
|
|
15912
|
-
var E =
|
|
15911
|
+
for (var k = this._invKeySchedule = [], C = 0; C < W; C++) {
|
|
15912
|
+
var E = W - C;
|
|
15913
15913
|
if (C % 4)
|
|
15914
15914
|
var g = G[E];
|
|
15915
15915
|
else
|
|
15916
15916
|
var g = G[E - 4];
|
|
15917
|
-
C < 4 || E <= 4 ?
|
|
15917
|
+
C < 4 || E <= 4 ? k[C] = g : k[C] = h[a[g >>> 24]] ^ m[a[g >>> 16 & 255]] ^ p[a[g >>> 8 & 255]] ^ y[a[g & 255]];
|
|
15918
15918
|
}
|
|
15919
15919
|
}
|
|
15920
15920
|
},
|
|
@@ -15927,9 +15927,9 @@ function P0() {
|
|
|
15927
15927
|
var A = g[w + 1];
|
|
15928
15928
|
g[w + 1] = g[w + 3], g[w + 3] = A;
|
|
15929
15929
|
},
|
|
15930
|
-
_doCryptBlock: function(g, w, A, $, F,
|
|
15931
|
-
for (var
|
|
15932
|
-
var D = $[C >>> 24] ^ F[H >>> 16 & 255] ^
|
|
15930
|
+
_doCryptBlock: function(g, w, A, $, F, W, G, E) {
|
|
15931
|
+
for (var k = this._nRounds, C = g[w] ^ A[0], H = g[w + 1] ^ A[1], b = g[w + 2] ^ A[2], N = g[w + 3] ^ A[3], v = 4, x = 1; x < k; x++) {
|
|
15932
|
+
var D = $[C >>> 24] ^ F[H >>> 16 & 255] ^ W[b >>> 8 & 255] ^ G[N & 255] ^ A[v++], z = $[H >>> 24] ^ F[b >>> 16 & 255] ^ W[N >>> 8 & 255] ^ G[C & 255] ^ A[v++], R = $[b >>> 24] ^ F[N >>> 16 & 255] ^ W[C >>> 8 & 255] ^ G[H & 255] ^ A[v++], M = $[N >>> 24] ^ F[C >>> 16 & 255] ^ W[H >>> 8 & 255] ^ G[b & 255] ^ A[v++];
|
|
15933
15933
|
C = D, H = z, b = R, N = M;
|
|
15934
15934
|
}
|
|
15935
15935
|
var D = (E[C >>> 24] << 24 | E[H >>> 16 & 255] << 16 | E[b >>> 8 & 255] << 8 | E[N & 255]) ^ A[v++], z = (E[H >>> 24] << 24 | E[b >>> 16 & 255] << 16 | E[N >>> 8 & 255] << 8 | E[C & 255]) ^ A[v++], R = (E[b >>> 24] << 24 | E[N >>> 16 & 255] << 16 | E[C >>> 8 & 255] << 8 | E[H & 255]) ^ A[v++], M = (E[N >>> 24] << 24 | E[C >>> 16 & 255] << 16 | E[H >>> 8 & 255] << 8 | E[b & 255]) ^ A[v++];
|
|
@@ -15995,14 +15995,14 @@ function j0() {
|
|
|
15995
15995
|
this._hash = new s.init(l.slice(0));
|
|
15996
15996
|
},
|
|
15997
15997
|
_doProcessBlock: function(h, m) {
|
|
15998
|
-
for (var p = this._hash.words, y = p[0], S = p[1], _ = p[2], g = p[3], w = p[4], A = p[5], $ = p[6], F = p[7],
|
|
15999
|
-
if (
|
|
16000
|
-
d[
|
|
15998
|
+
for (var p = this._hash.words, y = p[0], S = p[1], _ = p[2], g = p[3], w = p[4], A = p[5], $ = p[6], F = p[7], W = 0; W < 64; W++) {
|
|
15999
|
+
if (W < 16)
|
|
16000
|
+
d[W] = h[m + W] | 0;
|
|
16001
16001
|
else {
|
|
16002
|
-
var G = d[
|
|
16003
|
-
d[
|
|
16002
|
+
var G = d[W - 15], E = (G << 25 | G >>> 7) ^ (G << 14 | G >>> 18) ^ G >>> 3, k = d[W - 2], C = (k << 15 | k >>> 17) ^ (k << 13 | k >>> 19) ^ k >>> 10;
|
|
16003
|
+
d[W] = E + d[W - 7] + C + d[W - 16];
|
|
16004
16004
|
}
|
|
16005
|
-
var H = w & A ^ ~w & $, b = y & S ^ y & _ ^ S & _, N = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), v = (w << 26 | w >>> 6) ^ (w << 21 | w >>> 11) ^ (w << 7 | w >>> 25), x = F + v + H + c[
|
|
16005
|
+
var H = w & A ^ ~w & $, b = y & S ^ y & _ ^ S & _, N = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), v = (w << 26 | w >>> 6) ^ (w << 21 | w >>> 11) ^ (w << 7 | w >>> 25), x = F + v + H + c[W] + d[W], D = N + b;
|
|
16006
16006
|
F = $, $ = A, A = w, w = g + x | 0, g = _, _ = S, S = y, y = x + D | 0;
|
|
16007
16007
|
}
|
|
16008
16008
|
p[0] = p[0] + y | 0, p[1] = p[1] + S | 0, p[2] = p[2] + _ | 0, p[3] = p[3] + g | 0, p[4] = p[4] + w | 0, p[5] = p[5] + A | 0, p[6] = p[6] + $ | 0, p[7] = p[7] + F | 0;
|
|
@@ -16363,18 +16363,18 @@ function X0() {
|
|
|
16363
16363
|
]);
|
|
16364
16364
|
},
|
|
16365
16365
|
_doProcessBlock: function(m, p) {
|
|
16366
|
-
for (var y = this._hash.words, S = y[0], _ = y[1], g = y[2], w = y[3], A = y[4], $ = y[5], F = y[6],
|
|
16367
|
-
var oe, ne, ye = f[
|
|
16368
|
-
if (
|
|
16369
|
-
ne = ye.high = m[p +
|
|
16366
|
+
for (var y = this._hash.words, S = y[0], _ = y[1], g = y[2], w = y[3], A = y[4], $ = y[5], F = y[6], W = y[7], G = S.high, E = S.low, k = _.high, C = _.low, H = g.high, b = g.low, N = w.high, v = w.low, x = A.high, D = A.low, z = $.high, R = $.low, M = F.high, O = F.low, L = W.high, V = W.low, q = G, Q = E, X = k, te = C, se = H, ie = b, ge = N, re = v, ae = x, P = D, I = z, B = R, U = M, T = O, Y = L, j = V, K = 0; K < 80; K++) {
|
|
16367
|
+
var oe, ne, ye = f[K];
|
|
16368
|
+
if (K < 16)
|
|
16369
|
+
ne = ye.high = m[p + K * 2] | 0, oe = ye.low = m[p + K * 2 + 1] | 0;
|
|
16370
16370
|
else {
|
|
16371
|
-
var _e = f[
|
|
16371
|
+
var _e = f[K - 15], Ye = _e.high, Ue = _e.low, vt = (Ye >>> 1 | Ue << 31) ^ (Ye >>> 8 | Ue << 24) ^ Ye >>> 7, He = (Ue >>> 1 | Ye << 31) ^ (Ue >>> 8 | Ye << 24) ^ (Ue >>> 7 | Ye << 25), Bt = f[K - 2], Lt = Bt.high, Ft = Bt.low, Zi = (Lt >>> 19 | Ft << 13) ^ (Lt << 3 | Ft >>> 29) ^ Lt >>> 6, ws = (Ft >>> 19 | Lt << 13) ^ (Ft << 3 | Lt >>> 29) ^ (Ft >>> 6 | Lt << 26), xs = f[K - 7], ru = xs.high, su = xs.low, Cs = f[K - 16], au = Cs.high, Es = Cs.low;
|
|
16372
16372
|
oe = He + su, ne = vt + ru + (oe >>> 0 < He >>> 0 ? 1 : 0), oe = oe + ws, ne = ne + Zi + (oe >>> 0 < ws >>> 0 ? 1 : 0), oe = oe + Es, ne = ne + au + (oe >>> 0 < Es >>> 0 ? 1 : 0), ye.high = ne, ye.low = oe;
|
|
16373
16373
|
}
|
|
16374
|
-
var lu = ae & I ^ ~ae & U, Ss = P & B ^ ~P &
|
|
16375
|
-
|
|
16374
|
+
var lu = ae & I ^ ~ae & U, Ss = P & B ^ ~P & T, cu = q & X ^ q & se ^ X & se, uu = Q & te ^ Q & ie ^ te & ie, du = (q >>> 28 | Q << 4) ^ (q << 30 | Q >>> 2) ^ (q << 25 | Q >>> 7), Ds = (Q >>> 28 | q << 4) ^ (Q << 30 | q >>> 2) ^ (Q << 25 | q >>> 7), fu = (ae >>> 14 | P << 18) ^ (ae >>> 18 | P << 14) ^ (ae << 23 | P >>> 9), hu = (P >>> 14 | ae << 18) ^ (P >>> 18 | ae << 14) ^ (P << 23 | ae >>> 9), Ns = d[K], gu = Ns.high, Ts = Ns.low, ct = j + hu, Qt = Y + fu + (ct >>> 0 < j >>> 0 ? 1 : 0), ct = ct + Ss, Qt = Qt + lu + (ct >>> 0 < Ss >>> 0 ? 1 : 0), ct = ct + Ts, Qt = Qt + gu + (ct >>> 0 < Ts >>> 0 ? 1 : 0), ct = ct + oe, Qt = Qt + ne + (ct >>> 0 < oe >>> 0 ? 1 : 0), ks = Ds + uu, pu = du + cu + (ks >>> 0 < Ds >>> 0 ? 1 : 0);
|
|
16375
|
+
Y = U, j = T, U = I, T = B, I = ae, B = P, P = re + ct | 0, ae = ge + Qt + (P >>> 0 < re >>> 0 ? 1 : 0) | 0, ge = se, re = ie, se = X, ie = te, X = q, te = Q, Q = ct + ks | 0, q = Qt + pu + (Q >>> 0 < ct >>> 0 ? 1 : 0) | 0;
|
|
16376
16376
|
}
|
|
16377
|
-
E = S.low = E + Q, S.high = G +
|
|
16377
|
+
E = S.low = E + Q, S.high = G + q + (E >>> 0 < Q >>> 0 ? 1 : 0), C = _.low = C + te, _.high = k + X + (C >>> 0 < te >>> 0 ? 1 : 0), b = g.low = b + ie, g.high = H + se + (b >>> 0 < ie >>> 0 ? 1 : 0), v = w.low = v + re, w.high = N + ge + (v >>> 0 < re >>> 0 ? 1 : 0), D = A.low = D + P, A.high = x + ae + (D >>> 0 < P >>> 0 ? 1 : 0), R = $.low = R + B, $.high = z + I + (R >>> 0 < B >>> 0 ? 1 : 0), O = F.low = O + T, F.high = M + U + (O >>> 0 < T >>> 0 ? 1 : 0), V = W.low = V + j, W.high = L + Y + (V >>> 0 < j >>> 0 ? 1 : 0);
|
|
16378
16378
|
},
|
|
16379
16379
|
_doFinalize: function() {
|
|
16380
16380
|
var m = this._data, p = m.words, y = this._nDataBytes * 8, S = m.sigBytes * 8;
|
|
@@ -17253,8 +17253,8 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
17253
17253
|
return S(), n.insertBefore(ce, A), Ve = n, g(), _(!0);
|
|
17254
17254
|
} else if (o.parentNode === n) {
|
|
17255
17255
|
r = Ke(o);
|
|
17256
|
-
var $ = 0, F,
|
|
17257
|
-
Cn !== o && (F = r[E], so = !1, Bo = !G && a.invertSwap ||
|
|
17256
|
+
var $ = 0, F, W = ce.parentNode !== n, G = !ub(ce.animated && ce.toRect || i, o.animated && o.toRect || r, h), E = h ? "top" : "left", k = Qa(o, "top", "top") || Qa(ce, "top", "top"), C = k ? k.scrollTop : void 0;
|
|
17257
|
+
Cn !== o && (F = r[E], so = !1, Bo = !G && a.invertSwap || W), $ = vb(e, o, r, h, G ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Bo, Cn === o);
|
|
17258
17258
|
var H;
|
|
17259
17259
|
if ($ !== 0) {
|
|
17260
17260
|
var b = yt(ce);
|
|
@@ -17269,7 +17269,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
17269
17269
|
v = $ === 1;
|
|
17270
17270
|
var x = Fo(Le, n, ce, i, o, r, e, v);
|
|
17271
17271
|
if (x !== !1)
|
|
17272
|
-
return (x === 1 || x === -1) && (v = x === 1), jr = !0, setTimeout(gb, 30), S(), v && !N ? n.appendChild(ce) : o.parentNode.insertBefore(ce, v ? N : o),
|
|
17272
|
+
return (x === 1 || x === -1) && (v = x === 1), jr = !0, setTimeout(gb, 30), S(), v && !N ? n.appendChild(ce) : o.parentNode.insertBefore(ce, v ? N : o), k && Yc(k, 0, C - k.scrollTop), Ve = ce.parentNode, F !== void 0 && !Bo && (gi = Math.abs(F - Ke(o)[E])), g(), _(!0);
|
|
17273
17273
|
}
|
|
17274
17274
|
if (n.contains(ce))
|
|
17275
17275
|
return _(!1);
|
|
@@ -17602,9 +17602,9 @@ var wr = Wc(function(t, e, n, o) {
|
|
|
17602
17602
|
Yr !== n && (Yr = n, mi(), Kn = e.scroll, c = e.scrollFn, Kn === !0 && (Kn = sn(n, !0)));
|
|
17603
17603
|
var d = 0, f = Kn;
|
|
17604
17604
|
do {
|
|
17605
|
-
var h = f, m = Ke(h), p = m.top, y = m.bottom, S = m.left, _ = m.right, g = m.width, w = m.height, A = void 0, $ = void 0, F = h.scrollWidth,
|
|
17606
|
-
h === u ? (A = g < F && (G.overflowX === "auto" || G.overflowX === "scroll" || G.overflowX === "visible"), $ = w <
|
|
17607
|
-
var C = A && (Math.abs(_ - i) <= s && E + g < F) - (Math.abs(S - i) <= s && !!E), H = $ && (Math.abs(y - r) <= s &&
|
|
17605
|
+
var h = f, m = Ke(h), p = m.top, y = m.bottom, S = m.left, _ = m.right, g = m.width, w = m.height, A = void 0, $ = void 0, F = h.scrollWidth, W = h.scrollHeight, G = we(h), E = h.scrollLeft, k = h.scrollTop;
|
|
17606
|
+
h === u ? (A = g < F && (G.overflowX === "auto" || G.overflowX === "scroll" || G.overflowX === "visible"), $ = w < W && (G.overflowY === "auto" || G.overflowY === "scroll" || G.overflowY === "visible")) : (A = g < F && (G.overflowX === "auto" || G.overflowX === "scroll"), $ = w < W && (G.overflowY === "auto" || G.overflowY === "scroll"));
|
|
17607
|
+
var C = A && (Math.abs(_ - i) <= s && E + g < F) - (Math.abs(S - i) <= s && !!E), H = $ && (Math.abs(y - r) <= s && k + w < W) - (Math.abs(p - r) <= s && !!k);
|
|
17608
17608
|
if (!Xe[d])
|
|
17609
17609
|
for (var b = 0; b <= d; b++)
|
|
17610
17610
|
Xe[b] || (Xe[b] = {});
|
|
@@ -17717,7 +17717,7 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17717
17717
|
);
|
|
17718
17718
|
}
|
|
17719
17719
|
return !1;
|
|
17720
|
-
}, w = ({ name: v, type: x, dragType: D, isInput: z, componentName: R, runtimeType: M }, O, L, V,
|
|
17720
|
+
}, w = ({ name: v, type: x, dragType: D, isInput: z, componentName: R, runtimeType: M }, O, L, V, q = !1) => {
|
|
17721
17721
|
const Q = _(x);
|
|
17722
17722
|
if (Q.id = An(), Q.span = 24, Q.componentType = x, A(O, Q.componentType))
|
|
17723
17723
|
return;
|
|
@@ -17733,7 +17733,7 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17733
17733
|
isInput: !!z,
|
|
17734
17734
|
level: l[O] ? l[O].level + 1 : 1,
|
|
17735
17735
|
config: Q,
|
|
17736
|
-
isNewAdd: !
|
|
17736
|
+
isNewAdd: !q,
|
|
17737
17737
|
groupId: V
|
|
17738
17738
|
};
|
|
17739
17739
|
return X.dragType === "container" && (X.children = []), l[X.id] = X, p(O).children?.splice(L, 0, X), X;
|
|
@@ -17766,11 +17766,11 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17766
17766
|
v.config,
|
|
17767
17767
|
M
|
|
17768
17768
|
) && (H(), h(v.id));
|
|
17769
|
-
},
|
|
17769
|
+
}, W = (v) => {
|
|
17770
17770
|
let x = "";
|
|
17771
17771
|
const D = p(v);
|
|
17772
17772
|
return D && (D.children && D.children.length > 0 && D.children.forEach((z) => {
|
|
17773
|
-
|
|
17773
|
+
W(z.id);
|
|
17774
17774
|
}), x = $(D.containerId, v, !0) || "", delete l[v]), u.value && u.value.id === v && (u.value = null, e.value.init([])), x;
|
|
17775
17775
|
}, G = (v, x = []) => {
|
|
17776
17776
|
const D = p(v);
|
|
@@ -17779,15 +17779,15 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17779
17779
|
D.children.forEach((R) => {
|
|
17780
17780
|
R.groupId && x.includes(R.groupId) && z.push(R.id);
|
|
17781
17781
|
}), z.forEach((R) => {
|
|
17782
|
-
|
|
17782
|
+
W(R), delete l[R];
|
|
17783
17783
|
});
|
|
17784
17784
|
}
|
|
17785
17785
|
}, E = (v, x) => {
|
|
17786
17786
|
const D = p(v);
|
|
17787
17787
|
D && (D.children && D.children.length > 0 && D.children.forEach((z) => {
|
|
17788
|
-
z.groupId === x &&
|
|
17788
|
+
z.groupId === x && W(z.id);
|
|
17789
17789
|
}), delete l[v]);
|
|
17790
|
-
},
|
|
17790
|
+
}, k = (v) => {
|
|
17791
17791
|
const x = xr(p(v));
|
|
17792
17792
|
x.id = An(), x.config.id = x.id, l[x.id] = x;
|
|
17793
17793
|
const D = p(x.containerId).children, z = D?.findIndex((R) => R.id === v) || 0;
|
|
@@ -17802,7 +17802,7 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17802
17802
|
}), u.value = null, e.value.init([]));
|
|
17803
17803
|
}, b = (v) => {
|
|
17804
17804
|
const x = u.value, D = p(x.containerId).children, z = D?.findIndex((R) => R.id === x.id) || 0;
|
|
17805
|
-
|
|
17805
|
+
W(x.id), Ge(() => {
|
|
17806
17806
|
const R = s[v], M = _(v);
|
|
17807
17807
|
M.id = x.id, M.span = x.config.span, M.componentType = v, M.table = x.config.table, M.field = x.config.field, x.config.isSubTable && (M.isSubTable = x.config.isSubTable);
|
|
17808
17808
|
const O = {
|
|
@@ -17832,8 +17832,8 @@ const tu = (t, e, n, o, i, r, s, a) => {
|
|
|
17832
17832
|
isMyChildComponent: S,
|
|
17833
17833
|
selectComponent: h,
|
|
17834
17834
|
addComponent: w,
|
|
17835
|
-
deleteComponent:
|
|
17836
|
-
copyComponent:
|
|
17835
|
+
deleteComponent: W,
|
|
17836
|
+
copyComponent: k,
|
|
17837
17837
|
removeComponentFromContainer: $,
|
|
17838
17838
|
addComponentToContainer: F,
|
|
17839
17839
|
top: n,
|
|
@@ -18080,21 +18080,21 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18080
18080
|
isInput: !1,
|
|
18081
18081
|
config: {}
|
|
18082
18082
|
}), a = de([]), u = n.components.length;
|
|
18083
|
-
for (let
|
|
18084
|
-
a.value.push(
|
|
18083
|
+
for (let T = 0; T < u; T++)
|
|
18084
|
+
a.value.push(T);
|
|
18085
18085
|
n.componentInit && (s.config = n.componentInit("form") || {});
|
|
18086
18086
|
const l = de([]), c = fe(
|
|
18087
|
-
() => l.value.map((
|
|
18088
|
-
label:
|
|
18089
|
-
value:
|
|
18087
|
+
() => l.value.map((T) => ({
|
|
18088
|
+
label: T.comment ? `${T.name}(${T.comment})` : T.name,
|
|
18089
|
+
value: T.name
|
|
18090
18090
|
}))
|
|
18091
18091
|
), d = fe(() => {
|
|
18092
18092
|
if ($.value) {
|
|
18093
|
-
const
|
|
18094
|
-
if (
|
|
18095
|
-
const
|
|
18096
|
-
if (
|
|
18097
|
-
return
|
|
18093
|
+
const T = A.value.getFormData(!1);
|
|
18094
|
+
if (T.table) {
|
|
18095
|
+
const Y = l.value.find((j) => j.name === T.table);
|
|
18096
|
+
if (Y)
|
|
18097
|
+
return Y.columns.map((j) => ({
|
|
18098
18098
|
value: j.name,
|
|
18099
18099
|
label: j.coment ? `${j.name}(${j.coment})` : j.name,
|
|
18100
18100
|
coment: j.coment
|
|
@@ -18102,35 +18102,35 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18102
18102
|
}
|
|
18103
18103
|
}
|
|
18104
18104
|
return [];
|
|
18105
|
-
}), f = (
|
|
18106
|
-
l.value =
|
|
18105
|
+
}), f = (T) => {
|
|
18106
|
+
l.value = T;
|
|
18107
18107
|
}, h = {}, m = [];
|
|
18108
|
-
n.components.forEach(({ children:
|
|
18109
|
-
|
|
18110
|
-
h[
|
|
18111
|
-
label:
|
|
18112
|
-
value:
|
|
18108
|
+
n.components.forEach(({ children: T }) => {
|
|
18109
|
+
T.forEach((Y) => {
|
|
18110
|
+
h[Y.type] = Y, Y.dragType = Y.dragType || "component", Y.isInput !== !1 && (Y.isInput = !0, m.push({
|
|
18111
|
+
label: Y.name,
|
|
18112
|
+
value: Y.type
|
|
18113
18113
|
}));
|
|
18114
18114
|
});
|
|
18115
18115
|
});
|
|
18116
|
-
const p = (
|
|
18117
|
-
|
|
18118
|
-
|
|
18119
|
-
n.flowComponentConfigInit && (j.designComponents =
|
|
18120
|
-
},
|
|
18116
|
+
const p = (T) => {
|
|
18117
|
+
T.forEach((Y) => {
|
|
18118
|
+
Y.type === "d-input-flow" && (Y.config = Y.config || {}, Y.config.flowComponents = n.flowComponents, Y.config.flowInit = n.flowInit, Y.config.flowComponentConfigInit = (j) => {
|
|
18119
|
+
n.flowComponentConfigInit && (j.designComponents = k.value, j.component = $.value, n.flowComponentConfigInit(j));
|
|
18120
|
+
}, Y.config.flowComponentConfigs = n.flowComponentConfigs, Y.config.flowComponentConfigChange = n.flowComponentConfigChange), Y.children && p(Y.children);
|
|
18121
18121
|
});
|
|
18122
18122
|
}, y = {};
|
|
18123
|
-
Object.keys(n.componentConfigs || {}).forEach((
|
|
18123
|
+
Object.keys(n.componentConfigs || {}).forEach((T) => {
|
|
18124
18124
|
const {
|
|
18125
|
-
hasBase:
|
|
18125
|
+
hasBase: Y,
|
|
18126
18126
|
isInput: j,
|
|
18127
|
-
hasTwoPlaceholder:
|
|
18127
|
+
hasTwoPlaceholder: K,
|
|
18128
18128
|
hasPlaceholder: oe,
|
|
18129
18129
|
hasSpan: ne,
|
|
18130
18130
|
hasLabel: ye,
|
|
18131
18131
|
bindTable: _e,
|
|
18132
18132
|
labelTitle: Ye
|
|
18133
|
-
} = h[
|
|
18133
|
+
} = h[T] || { hasBase: !1 }, Ue = [
|
|
18134
18134
|
{
|
|
18135
18135
|
id: "id",
|
|
18136
18136
|
type: "j-input",
|
|
@@ -18185,7 +18185,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18185
18185
|
id: "placeholder",
|
|
18186
18186
|
type: "j-input",
|
|
18187
18187
|
config: {
|
|
18188
|
-
display: j && !
|
|
18188
|
+
display: j && !K && oe !== !1,
|
|
18189
18189
|
label: "占位提示"
|
|
18190
18190
|
}
|
|
18191
18191
|
},
|
|
@@ -18193,7 +18193,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18193
18193
|
id: "startPlaceholder",
|
|
18194
18194
|
type: "j-input",
|
|
18195
18195
|
config: {
|
|
18196
|
-
display: !!
|
|
18196
|
+
display: !!K,
|
|
18197
18197
|
label: "开始占位"
|
|
18198
18198
|
}
|
|
18199
18199
|
},
|
|
@@ -18201,7 +18201,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18201
18201
|
id: "endPlaceholder",
|
|
18202
18202
|
type: "j-input",
|
|
18203
18203
|
config: {
|
|
18204
|
-
display: !!
|
|
18204
|
+
display: !!K,
|
|
18205
18205
|
label: "结束占位"
|
|
18206
18206
|
}
|
|
18207
18207
|
},
|
|
@@ -18300,43 +18300,42 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18300
18300
|
},
|
|
18301
18301
|
children: []
|
|
18302
18302
|
};
|
|
18303
|
-
|
|
18303
|
+
Y !== !1 && (vt.children?.push({
|
|
18304
18304
|
config: {
|
|
18305
18305
|
label: "基础信息"
|
|
18306
18306
|
},
|
|
18307
18307
|
children: [...Ue]
|
|
18308
|
-
}), vt.config?.defaultValue.push("_collapse0")), vt.children?.push(...n.componentConfigs[
|
|
18308
|
+
}), vt.config?.defaultValue.push("_collapse0")), vt.children?.push(...n.componentConfigs[T]), p(vt.children || []), y[T] = [vt];
|
|
18309
18309
|
});
|
|
18310
|
-
const S = (
|
|
18311
|
-
const { value:
|
|
18312
|
-
|
|
18310
|
+
const S = (T) => {
|
|
18311
|
+
const { value: Y } = T || {};
|
|
18312
|
+
T.id === "componentType" && W(Y), $.value && n.componentConfigChange && (T.id === "field" && T.data?.coment && ($.value.config.label = T.data?.coment), n.componentConfigChange($.value.type, {
|
|
18313
18313
|
configRef: A,
|
|
18314
|
-
component: k,
|
|
18315
18314
|
configData: $.value.config,
|
|
18316
|
-
...
|
|
18317
|
-
})),
|
|
18318
|
-
|
|
18315
|
+
...T
|
|
18316
|
+
})), T.id === "table" && $.value && $.value.type === "gridtable" && ($.value.children || []).forEach((j) => {
|
|
18317
|
+
j.isInput && (j.config.table = Y);
|
|
18319
18318
|
});
|
|
18320
|
-
}, _ = (
|
|
18321
|
-
h[
|
|
18319
|
+
}, _ = (T, Y) => {
|
|
18320
|
+
h[T]?.isInput && (n.notBindTable && (Y.configData.csType || A.value.setFormData({
|
|
18322
18321
|
main: {
|
|
18323
|
-
csType: h[
|
|
18324
|
-
fieldLen: h[
|
|
18322
|
+
csType: h[T]?.csType,
|
|
18323
|
+
fieldLen: h[T]?.fieldLen
|
|
18325
18324
|
}
|
|
18326
18325
|
})), c.value.length === 1 && A.value.setFormData({
|
|
18327
18326
|
main: { table: c.value[0].value }
|
|
18328
|
-
})), n.componentConfigInit && n.componentConfigInit(
|
|
18329
|
-
}, g = (
|
|
18330
|
-
let
|
|
18331
|
-
const oe = h[
|
|
18332
|
-
return
|
|
18327
|
+
})), n.componentConfigInit && n.componentConfigInit(T, { configRef: A, ...Y, notBindTable: n.notBindTable });
|
|
18328
|
+
}, g = (T, Y, j) => {
|
|
18329
|
+
let K = !1;
|
|
18330
|
+
const oe = h[T];
|
|
18331
|
+
return Y.container.type === "gridtable" ? (!Y.configData.isSubTable || j) && (Y.configData.isSubTable = !0, oe.isInput && (Y.configData.table = Y.container.config.table, Y.configData.field = ""), K = !0) : Y.configData.isSubTable && (K = !0, Y.configData.isSubTable = !1, oe.isInput && (Y.configData.table = "")), n.containerAddComponent && n.containerAddComponent(T, Y), K;
|
|
18333
18332
|
}, w = de(), A = de(), {
|
|
18334
18333
|
activedComponent: $,
|
|
18335
18334
|
clearComponents: F,
|
|
18336
|
-
changeComponent:
|
|
18335
|
+
changeComponent: W,
|
|
18337
18336
|
schemaComponentDic: G,
|
|
18338
18337
|
addComponentByTable: E,
|
|
18339
|
-
designComponentList:
|
|
18338
|
+
designComponentList: k
|
|
18340
18339
|
} = tu(
|
|
18341
18340
|
w,
|
|
18342
18341
|
A,
|
|
@@ -18357,11 +18356,11 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18357
18356
|
}, b = () => {
|
|
18358
18357
|
n.componentInit && (s.config = n.componentInit("form") || {}), F();
|
|
18359
18358
|
}, N = () => {
|
|
18360
|
-
let
|
|
18361
|
-
const
|
|
18359
|
+
let T = 0;
|
|
18360
|
+
const Y = dr(s.config, s.children || []);
|
|
18362
18361
|
if (n.notBindTable) {
|
|
18363
18362
|
const j = {};
|
|
18364
|
-
|
|
18363
|
+
Y.components.forEach((ne) => {
|
|
18365
18364
|
const { isInput: ye, bindTable: _e } = h[ne.type] || {};
|
|
18366
18365
|
ye && _e !== !1 ? ne.config.table && !j.main && (j.main = {
|
|
18367
18366
|
name: ne.config.table,
|
|
@@ -18369,47 +18368,47 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18369
18368
|
type: "main",
|
|
18370
18369
|
pKey: "J_Id"
|
|
18371
18370
|
}) : _e && (j[ne.id] = {
|
|
18372
|
-
name: ne.config.table || "t" + (/* @__PURE__ */ new Date()).getTime() +
|
|
18371
|
+
name: ne.config.table || "t" + (/* @__PURE__ */ new Date()).getTime() + T,
|
|
18373
18372
|
comment: `子表${ne.config.label}`,
|
|
18374
18373
|
type: "chlid",
|
|
18375
18374
|
field: "J_PId",
|
|
18376
18375
|
relationField: "J_Id",
|
|
18377
18376
|
pKey: "J_Id"
|
|
18378
18377
|
// relationName: 'j_parent',
|
|
18379
|
-
}, ne.config.table = j[ne.id].name,
|
|
18378
|
+
}, ne.config.table = j[ne.id].name, T++);
|
|
18380
18379
|
}), j.main || (j.main = {
|
|
18381
|
-
name: "t" + (/* @__PURE__ */ new Date()).getTime() +
|
|
18380
|
+
name: "t" + (/* @__PURE__ */ new Date()).getTime() + T,
|
|
18382
18381
|
comment: "主表",
|
|
18383
18382
|
type: "main",
|
|
18384
18383
|
pKey: "J_Id"
|
|
18385
|
-
},
|
|
18386
|
-
let
|
|
18387
|
-
|
|
18384
|
+
}, T++);
|
|
18385
|
+
let K = 0;
|
|
18386
|
+
Y.components.forEach((ne) => {
|
|
18388
18387
|
const { isInput: ye, bindTable: _e } = h[ne.type] || {};
|
|
18389
|
-
!ne.config.isNotSave && ye && _e !== !1 && (ne.config.csType || (ne.config.csType = h[ne.type]?.csType, ne.config.fieldLen = h[ne.type]?.fieldLen), ne.config.isSubTable ? ne.config.table = j[ne.containerId].name : ne.config.table = j.main.name, ne.config.field = ne.config.field || `f${Math.floor(Date.now() / 1e3)}${
|
|
18388
|
+
!ne.config.isNotSave && ye && _e !== !1 && (ne.config.csType || (ne.config.csType = h[ne.type]?.csType, ne.config.fieldLen = h[ne.type]?.fieldLen), ne.config.isSubTable ? ne.config.table = j[ne.containerId].name : ne.config.table = j.main.name, ne.config.field = ne.config.field || `f${Math.floor(Date.now() / 1e3)}${K}`, K++);
|
|
18390
18389
|
});
|
|
18391
18390
|
const oe = [];
|
|
18392
18391
|
Object.keys(j).forEach((ne) => {
|
|
18393
18392
|
j[ne].type === "chlid" && (j[ne].relationName = j.main.name, j[ne].comment += `,关联主表${j.main.name}`), oe.push(j[ne]);
|
|
18394
|
-
}),
|
|
18393
|
+
}), Y.db = oe;
|
|
18395
18394
|
} else {
|
|
18396
18395
|
const j = {};
|
|
18397
|
-
l.value.forEach((
|
|
18398
|
-
|
|
18399
|
-
j[`${
|
|
18396
|
+
l.value.forEach((K) => {
|
|
18397
|
+
K.columns.forEach((oe) => {
|
|
18398
|
+
j[`${K.name}_${oe.name}`] = oe.csType;
|
|
18400
18399
|
});
|
|
18401
|
-
}),
|
|
18402
|
-
|
|
18400
|
+
}), Y.components.forEach((K) => {
|
|
18401
|
+
K.config.table && K.config.field && (K.config.csType = j[`${K.config.table}_${K.config.field}`]);
|
|
18403
18402
|
});
|
|
18404
18403
|
}
|
|
18405
|
-
return n.notBindTable ?
|
|
18406
|
-
if (!
|
|
18404
|
+
return n.notBindTable ? Y.db.forEach((j) => {
|
|
18405
|
+
if (!Y.components.find(
|
|
18407
18406
|
(oe) => oe.config.table === j.name && oe.config.field === "J_Id"
|
|
18408
18407
|
)) {
|
|
18409
|
-
const oe =
|
|
18408
|
+
const oe = Y.components.find(
|
|
18410
18409
|
(ne) => ne.config.table === j.name && ne.config.field
|
|
18411
18410
|
);
|
|
18412
|
-
oe &&
|
|
18411
|
+
oe && Y.components.push({
|
|
18413
18412
|
id: j.name + "_J_Id",
|
|
18414
18413
|
name: j.name + "_J_Id",
|
|
18415
18414
|
type: "pkey",
|
|
@@ -18421,85 +18420,85 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18421
18420
|
});
|
|
18422
18421
|
}
|
|
18423
18422
|
}) : l.value.forEach((j) => {
|
|
18424
|
-
j.columns.forEach((
|
|
18425
|
-
if (
|
|
18426
|
-
(ne) => ne.config.table === j.name && ne.config.field ===
|
|
18423
|
+
j.columns.forEach((K) => {
|
|
18424
|
+
if (K.isPrimary && !Y.components.find(
|
|
18425
|
+
(ne) => ne.config.table === j.name && ne.config.field === K.name
|
|
18427
18426
|
)) {
|
|
18428
|
-
const ne =
|
|
18427
|
+
const ne = Y.components.find(
|
|
18429
18428
|
(ye) => ye.config.table === j.name && ye.config.field
|
|
18430
18429
|
);
|
|
18431
|
-
ne &&
|
|
18432
|
-
id: j.name + "_" +
|
|
18433
|
-
name: j.name + "_" +
|
|
18430
|
+
ne && Y.components.push({
|
|
18431
|
+
id: j.name + "_" + K.name,
|
|
18432
|
+
name: j.name + "_" + K.name,
|
|
18434
18433
|
type: "pkey",
|
|
18435
18434
|
runtimeType: "j-input",
|
|
18436
18435
|
groupId: "",
|
|
18437
18436
|
config: {
|
|
18438
18437
|
display: !1,
|
|
18439
18438
|
table: j.name,
|
|
18440
|
-
field:
|
|
18441
|
-
label: "主键" +
|
|
18442
|
-
isIdentity:
|
|
18439
|
+
field: K.name,
|
|
18440
|
+
label: "主键" + K.name,
|
|
18441
|
+
isIdentity: K.isIdentity
|
|
18443
18442
|
},
|
|
18444
18443
|
containerId: ne.containerId,
|
|
18445
18444
|
level: ne.level
|
|
18446
18445
|
});
|
|
18447
18446
|
}
|
|
18448
18447
|
});
|
|
18449
|
-
}),
|
|
18450
|
-
}, v = (
|
|
18451
|
-
const
|
|
18452
|
-
s.config =
|
|
18453
|
-
G[j] =
|
|
18448
|
+
}), Y;
|
|
18449
|
+
}, v = (T) => {
|
|
18450
|
+
const Y = g0(T, h);
|
|
18451
|
+
s.config = Y.formConfig, s.children?.push(...Y.componentList), Object.keys(Y.componentDic).forEach((j) => {
|
|
18452
|
+
G[j] = Y.componentDic[j];
|
|
18454
18453
|
});
|
|
18455
18454
|
}, x = () => {
|
|
18456
|
-
const
|
|
18457
|
-
return z(
|
|
18458
|
-
}, D = (
|
|
18459
|
-
const { isInput:
|
|
18460
|
-
if (!
|
|
18455
|
+
const T = dr(s.config, s.children || []), Y = {}, j = {};
|
|
18456
|
+
return z(T.components, Y, j);
|
|
18457
|
+
}, D = (T) => {
|
|
18458
|
+
const { isInput: Y, bindTable: j } = h[T] || {};
|
|
18459
|
+
if (!Y && j)
|
|
18461
18460
|
return !0;
|
|
18462
|
-
}, z = (
|
|
18461
|
+
}, z = (T, Y, j) => {
|
|
18463
18462
|
if (!n.notBindTable)
|
|
18464
|
-
for (const
|
|
18465
|
-
const { isInput: oe, bindTable: ne } = h[
|
|
18466
|
-
if (!
|
|
18463
|
+
for (const K of T) {
|
|
18464
|
+
const { isInput: oe, bindTable: ne } = h[K.type] || {};
|
|
18465
|
+
if (!K.config.isNotSave && K.type !== "pkey") {
|
|
18467
18466
|
if (oe && ne !== !1) {
|
|
18468
|
-
if (jo(
|
|
18469
|
-
return r && r(`请【${
|
|
18470
|
-
if (!
|
|
18471
|
-
if (j[
|
|
18467
|
+
if (jo(K.config.table))
|
|
18468
|
+
return r && r(`请【${K.config.label}】绑定数据表!`), !1;
|
|
18469
|
+
if (!K.config.isSubTable) {
|
|
18470
|
+
if (j[K.config.table] && D(j[K.config.table].type))
|
|
18472
18471
|
return r && r(
|
|
18473
|
-
`【${
|
|
18472
|
+
`【${K.config.label}】和【${j[K.config.table].config.label}】重复绑定【${K.config.table}】表!`
|
|
18474
18473
|
), !1;
|
|
18475
|
-
|
|
18474
|
+
K.config.table && (j[K.config.table] = K);
|
|
18476
18475
|
}
|
|
18477
18476
|
} else if (ne) {
|
|
18478
|
-
if (jo(
|
|
18479
|
-
return r && r(`【${
|
|
18480
|
-
if (j[
|
|
18477
|
+
if (jo(K.config.table))
|
|
18478
|
+
return r && r(`【${K.config.label}】请绑定数据表!`), !1;
|
|
18479
|
+
if (j[K.config.table])
|
|
18481
18480
|
return r && r(
|
|
18482
|
-
`【${
|
|
18481
|
+
`【${K.config.label}】和【${j[K.config.table].config.label}】重复绑定【${K.config.table}】表!`
|
|
18483
18482
|
), !1;
|
|
18484
|
-
|
|
18483
|
+
K.config.table && (j[K.config.table] = K);
|
|
18485
18484
|
}
|
|
18486
18485
|
}
|
|
18487
18486
|
}
|
|
18488
|
-
for (const
|
|
18487
|
+
for (const K of T) {
|
|
18489
18488
|
if (!n.notBindTable) {
|
|
18490
|
-
const { isInput: oe, bindTable: ne } = h[
|
|
18491
|
-
if (!
|
|
18492
|
-
if (jo(
|
|
18493
|
-
return r && r(`请【${
|
|
18494
|
-
if (
|
|
18489
|
+
const { isInput: oe, bindTable: ne } = h[K.type] || {};
|
|
18490
|
+
if (!K.config.isNotSave && oe && ne !== !1) {
|
|
18491
|
+
if (jo(K.config.field))
|
|
18492
|
+
return r && r(`请【${K.config.label}】绑定表字段!`), !1;
|
|
18493
|
+
if (Y[`${K.config.table}-${K.config.field}`])
|
|
18495
18494
|
return r && r(
|
|
18496
|
-
`【${
|
|
18495
|
+
`【${K.config.label}】和【${Y[`${K.config.table}-${K.config.field}`].config.label}】重复绑定【${K.config.field}】字段!`
|
|
18497
18496
|
), !1;
|
|
18498
|
-
|
|
18497
|
+
Y[`${K.config.table}-${K.config.field}`] = K;
|
|
18499
18498
|
}
|
|
18500
18499
|
}
|
|
18501
|
-
if (n.componentConfigValidate && !n.componentConfigValidate(
|
|
18502
|
-
configData:
|
|
18500
|
+
if (n.componentConfigValidate && !n.componentConfigValidate(K.type, {
|
|
18501
|
+
configData: K.config,
|
|
18503
18502
|
errorTip: r
|
|
18504
18503
|
}))
|
|
18505
18504
|
return !1;
|
|
@@ -18511,78 +18510,78 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18511
18510
|
formConfig: {}
|
|
18512
18511
|
});
|
|
18513
18512
|
let L = 0;
|
|
18514
|
-
const V = (
|
|
18513
|
+
const V = (T) => {
|
|
18515
18514
|
if (M.value)
|
|
18516
|
-
L = 0, M.value.init(
|
|
18515
|
+
L = 0, M.value.init(T || []);
|
|
18517
18516
|
else {
|
|
18518
18517
|
if (L > 600) {
|
|
18519
18518
|
console.warn("表单组件加载超时");
|
|
18520
18519
|
return;
|
|
18521
18520
|
}
|
|
18522
18521
|
L++, setTimeout(() => {
|
|
18523
|
-
V(
|
|
18522
|
+
V(T);
|
|
18524
18523
|
}, 100);
|
|
18525
18524
|
}
|
|
18526
|
-
},
|
|
18525
|
+
}, q = () => {
|
|
18527
18526
|
}, Q = () => {
|
|
18528
18527
|
}, X = () => {
|
|
18529
|
-
const
|
|
18530
|
-
O.width =
|
|
18531
|
-
const { formConfig:
|
|
18532
|
-
O.formConfig =
|
|
18528
|
+
const T = dr(s.config, s.children || []);
|
|
18529
|
+
O.width = T.form.width || 800, O.height = T.form.height || 600, R.value.open("表单预览", T.form.layerType), Ge(() => {
|
|
18530
|
+
const { formConfig: Y, componentList: j } = h0(T);
|
|
18531
|
+
O.formConfig = Y, V(j);
|
|
18533
18532
|
});
|
|
18534
18533
|
}, te = de(), se = de(), ie = () => {
|
|
18535
18534
|
te.value.open("快速添加组件");
|
|
18536
18535
|
}, ge = () => {
|
|
18537
|
-
const { addList:
|
|
18536
|
+
const { addList: T, table: Y } = se.value?.ok() || {
|
|
18538
18537
|
addList: []
|
|
18539
18538
|
};
|
|
18540
|
-
if (
|
|
18539
|
+
if (T.length <= 0)
|
|
18541
18540
|
i && i("请选择字段!");
|
|
18542
18541
|
else {
|
|
18543
18542
|
if ($.value?.config.componentType === "gridtable" || $.value?.config.isSubTable)
|
|
18544
18543
|
if ($.value.config.table) {
|
|
18545
|
-
if ($.value.config.table !==
|
|
18544
|
+
if ($.value.config.table !== Y) {
|
|
18546
18545
|
i && i("请设置相同的表和子表!");
|
|
18547
18546
|
return;
|
|
18548
18547
|
}
|
|
18549
18548
|
} else {
|
|
18550
18549
|
let j = $.value;
|
|
18551
|
-
$.value.config.isSubTable && (j = G[$.value.containerId]), j.config.table =
|
|
18552
|
-
|
|
18550
|
+
$.value.config.isSubTable && (j = G[$.value.containerId]), j.config.table = Y, (j.children || []).forEach((K) => {
|
|
18551
|
+
K.isInput && (K.config.table = Y);
|
|
18553
18552
|
}), A.value.setFormData({
|
|
18554
|
-
main: { table:
|
|
18553
|
+
main: { table: Y }
|
|
18555
18554
|
});
|
|
18556
18555
|
}
|
|
18557
|
-
|
|
18558
|
-
const
|
|
18559
|
-
|
|
18560
|
-
table:
|
|
18556
|
+
T.forEach((j) => {
|
|
18557
|
+
const K = Vr(h[j.type]);
|
|
18558
|
+
K.config = {
|
|
18559
|
+
table: Y,
|
|
18561
18560
|
field: j.value,
|
|
18562
18561
|
label: j.label
|
|
18563
|
-
}, E(
|
|
18562
|
+
}, E(K);
|
|
18564
18563
|
}), te.value.close();
|
|
18565
18564
|
}
|
|
18566
18565
|
}, re = () => {
|
|
18567
18566
|
se.value?.closed();
|
|
18568
18567
|
};
|
|
18569
18568
|
return e({
|
|
18570
|
-
setTables: (
|
|
18571
|
-
f(
|
|
18569
|
+
setTables: (T) => {
|
|
18570
|
+
f(T);
|
|
18572
18571
|
},
|
|
18573
18572
|
getSchema: () => N(),
|
|
18574
|
-
setSchema: (
|
|
18573
|
+
setSchema: (T) => v(T),
|
|
18575
18574
|
reset: () => b(),
|
|
18576
18575
|
validate: () => x()
|
|
18577
|
-
}), (
|
|
18578
|
-
const j = De("j-icon"),
|
|
18576
|
+
}), (T, Y) => {
|
|
18577
|
+
const j = De("j-icon"), K = De("d-drag-tool"), oe = De("el-collapse-item"), ne = De("el-collapse"), ye = De("j-button"), _e = De("d-drag-form-list"), Ye = De("el-row"), Ue = De("d-drag-container"), vt = De("j-form"), He = De("j-layer");
|
|
18579
18578
|
return ee(), ue("div", Tb, [
|
|
18580
18579
|
le("div", kb, [
|
|
18581
|
-
|
|
18580
|
+
Y[1] || (Y[1] = le("div", { class: "d-form-design-panel-title" }, "组件库", -1)),
|
|
18582
18581
|
le("div", Ib, [
|
|
18583
18582
|
he(ne, {
|
|
18584
18583
|
modelValue: a.value,
|
|
18585
|
-
"onUpdate:modelValue":
|
|
18584
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (Bt) => a.value = Bt)
|
|
18586
18585
|
}, {
|
|
18587
18586
|
default: Ce(() => [
|
|
18588
18587
|
(ee(!0), ue(Be, null, gt(t.components, (Bt, Lt) => (ee(), Te(oe, {
|
|
@@ -18591,7 +18590,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18591
18590
|
name: Lt
|
|
18592
18591
|
}, {
|
|
18593
18592
|
default: Ce(() => [
|
|
18594
|
-
(ee(!0), ue(Be, null, gt(Bt.children, (Ft, Zi) => (ee(), Te(
|
|
18593
|
+
(ee(!0), ue(Be, null, gt(Bt.children, (Ft, Zi) => (ee(), Te(K, {
|
|
18595
18594
|
key: Zi,
|
|
18596
18595
|
config: Ft
|
|
18597
18596
|
}, {
|
|
@@ -18644,7 +18643,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18644
18643
|
"component-data": s
|
|
18645
18644
|
}, {
|
|
18646
18645
|
default: Ce(() => [
|
|
18647
|
-
!s.children || s.children.length === 0 ? (ee(), ue("div", zb, [...
|
|
18646
|
+
!s.children || s.children.length === 0 ? (ee(), ue("div", zb, [...Y[2] || (Y[2] = [
|
|
18648
18647
|
le("div", null, "请从左侧拖拽组件到此处", -1)
|
|
18649
18648
|
])])) : (ee(), Te(Ye, { key: 1 }, {
|
|
18650
18649
|
default: Ce(() => [
|
|
@@ -18685,7 +18684,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18685
18684
|
ref: R,
|
|
18686
18685
|
width: O.width,
|
|
18687
18686
|
height: O.height,
|
|
18688
|
-
onOk:
|
|
18687
|
+
onOk: q,
|
|
18689
18688
|
onClosed: Q
|
|
18690
18689
|
}, {
|
|
18691
18690
|
default: Ce(() => [
|
|
@@ -18955,12 +18954,11 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18955
18954
|
children: [...D]
|
|
18956
18955
|
}), z.config?.defaultValue.push("_collapse0")), z.children?.push(...o.componentConfigs[v]), i(z.children || []), u[v] = [z];
|
|
18957
18956
|
});
|
|
18958
|
-
const l = (v
|
|
18957
|
+
const l = (v) => {
|
|
18959
18958
|
h.value && o.componentConfigChange && o.componentConfigChange(h.value.type, {
|
|
18960
18959
|
configRef: f,
|
|
18961
|
-
component: v,
|
|
18962
18960
|
configData: h.value.config,
|
|
18963
|
-
...
|
|
18961
|
+
...v
|
|
18964
18962
|
});
|
|
18965
18963
|
}, c = (v, x) => {
|
|
18966
18964
|
o.componentConfigInit && o.componentConfigInit(v, { configRef: f, ...x });
|
|
@@ -18985,7 +18983,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18985
18983
|
m();
|
|
18986
18984
|
}, A = () => {
|
|
18987
18985
|
o.componentInit && (r.config = o.componentInit("indexPage") || {}), m();
|
|
18988
|
-
}, $ = () => (console.log("pValidate"), !0), F = () => rl(r.config, r.children || []),
|
|
18986
|
+
}, $ = () => (console.log("pValidate"), !0), F = () => rl(r.config, r.children || []), W = (v) => {
|
|
18989
18987
|
const x = Wb(v, s);
|
|
18990
18988
|
r.config = x.pageConfig, r.children?.push(...x.componentList), Object.keys(x.componentDic).forEach((D) => {
|
|
18991
18989
|
p[D] = x.componentDic[D];
|
|
@@ -18994,16 +18992,16 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
18994
18992
|
de(""), $n({
|
|
18995
18993
|
formConfig: {}
|
|
18996
18994
|
});
|
|
18997
|
-
let
|
|
18995
|
+
let k = 0;
|
|
18998
18996
|
const C = (v) => {
|
|
18999
18997
|
if (E.value)
|
|
19000
|
-
|
|
18998
|
+
k = 0, E.value.init(v);
|
|
19001
18999
|
else {
|
|
19002
|
-
if (
|
|
19000
|
+
if (k > 600) {
|
|
19003
19001
|
console.warn("组件加载超时");
|
|
19004
19002
|
return;
|
|
19005
19003
|
}
|
|
19006
|
-
|
|
19004
|
+
k++, setTimeout(() => {
|
|
19007
19005
|
C(v);
|
|
19008
19006
|
}, 100);
|
|
19009
19007
|
}
|
|
@@ -19019,9 +19017,9 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
19019
19017
|
reset: A,
|
|
19020
19018
|
validate: $,
|
|
19021
19019
|
getSchema: F,
|
|
19022
|
-
setSchema:
|
|
19020
|
+
setSchema: W
|
|
19023
19021
|
}), (v, x) => {
|
|
19024
|
-
const D = De("j-icon"), z = De("d-drag-tool"), R = De("el-collapse-item"), M = De("el-collapse"), O = De("j-button"), L = De("el-tooltip"), V = De("el-divider"),
|
|
19022
|
+
const D = De("j-icon"), z = De("d-drag-tool"), R = De("el-collapse-item"), M = De("el-collapse"), O = De("j-button"), L = De("el-tooltip"), V = De("el-divider"), q = De("el-empty"), Q = De("d-drag-index-list"), X = De("d-drag-container"), te = De("j-form"), se = De("j-page"), ie = De("j-layer");
|
|
19025
19023
|
return ee(), ue("div", Yb, [
|
|
19026
19024
|
le("div", Ub, [
|
|
19027
19025
|
x[1] || (x[1] = le("div", { class: "d-index-design-panel-title" }, "组件库", -1)),
|
|
@@ -19103,7 +19101,7 @@ const nu = /* @__PURE__ */ Db(Sb, [["render", Nb]]), Tb = { class: "d-form-desig
|
|
|
19103
19101
|
}, {
|
|
19104
19102
|
default: Ce(() => [
|
|
19105
19103
|
!r.children || r.children.length === 0 ? (ee(), ue("div", e_, [
|
|
19106
|
-
he(
|
|
19104
|
+
he(q, {
|
|
19107
19105
|
description: J(n)("请从左侧拖拽组件到此处"),
|
|
19108
19106
|
"image-size": 100
|
|
19109
19107
|
}, null, 8, ["description"])
|