caplink-saas-ui-shared-component-library 1.2.0 → 1.2.1
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/index.es.js +196 -196
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3866,7 +3866,7 @@ const Xr = ha(480), Jr = ha(80), L1 = 36, Lt = 26, UT = 48, tp = 10, ZT = 5, _i
|
|
|
3866
3866
|
function KT(e) {
|
|
3867
3867
|
return e.map((t, n) => {
|
|
3868
3868
|
const r = j1(t.name) || 0;
|
|
3869
|
-
let o = ha(r, { rightIcon: !0 }) +
|
|
3869
|
+
let o = ha(r, { rightIcon: !0 }) + 4;
|
|
3870
3870
|
return o = o < Jr ? Jr : o, o > Xr && (o = Xr), {
|
|
3871
3871
|
...t,
|
|
3872
3872
|
id: `spreadsheet__column__id__${t.id || t.name}`,
|
|
@@ -12332,7 +12332,7 @@ function Q3(e, t) {
|
|
|
12332
12332
|
this.setAttributeNS(e.space, e.local, t.call(this, n));
|
|
12333
12333
|
};
|
|
12334
12334
|
}
|
|
12335
|
-
function
|
|
12335
|
+
function e4(e, t) {
|
|
12336
12336
|
var n, r;
|
|
12337
12337
|
function o() {
|
|
12338
12338
|
var s = t.apply(this, arguments);
|
|
@@ -12340,7 +12340,7 @@ function eD(e, t) {
|
|
|
12340
12340
|
}
|
|
12341
12341
|
return o._value = t, o;
|
|
12342
12342
|
}
|
|
12343
|
-
function
|
|
12343
|
+
function t4(e, t) {
|
|
12344
12344
|
var n, r;
|
|
12345
12345
|
function o() {
|
|
12346
12346
|
var s = t.apply(this, arguments);
|
|
@@ -12348,71 +12348,71 @@ function tD(e, t) {
|
|
|
12348
12348
|
}
|
|
12349
12349
|
return o._value = t, o;
|
|
12350
12350
|
}
|
|
12351
|
-
function
|
|
12351
|
+
function n4(e, t) {
|
|
12352
12352
|
var n = "attr." + e;
|
|
12353
12353
|
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
|
|
12354
12354
|
if (t == null) return this.tween(n, null);
|
|
12355
12355
|
if (typeof t != "function") throw new Error();
|
|
12356
12356
|
var r = Oa(e);
|
|
12357
|
-
return this.tween(n, (r.local ?
|
|
12357
|
+
return this.tween(n, (r.local ? e4 : t4)(r, t));
|
|
12358
12358
|
}
|
|
12359
|
-
function
|
|
12359
|
+
function r4(e, t) {
|
|
12360
12360
|
return function() {
|
|
12361
12361
|
Pm(this, e).delay = +t.apply(this, arguments);
|
|
12362
12362
|
};
|
|
12363
12363
|
}
|
|
12364
|
-
function
|
|
12364
|
+
function o4(e, t) {
|
|
12365
12365
|
return t = +t, function() {
|
|
12366
12366
|
Pm(this, e).delay = t;
|
|
12367
12367
|
};
|
|
12368
12368
|
}
|
|
12369
|
-
function
|
|
12369
|
+
function s4(e) {
|
|
12370
12370
|
var t = this._id;
|
|
12371
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
12371
|
+
return arguments.length ? this.each((typeof e == "function" ? r4 : o4)(t, e)) : Bt(this.node(), t).delay;
|
|
12372
12372
|
}
|
|
12373
|
-
function
|
|
12373
|
+
function i4(e, t) {
|
|
12374
12374
|
return function() {
|
|
12375
12375
|
nn(this, e).duration = +t.apply(this, arguments);
|
|
12376
12376
|
};
|
|
12377
12377
|
}
|
|
12378
|
-
function
|
|
12378
|
+
function a4(e, t) {
|
|
12379
12379
|
return t = +t, function() {
|
|
12380
12380
|
nn(this, e).duration = t;
|
|
12381
12381
|
};
|
|
12382
12382
|
}
|
|
12383
|
-
function
|
|
12383
|
+
function c4(e) {
|
|
12384
12384
|
var t = this._id;
|
|
12385
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
12385
|
+
return arguments.length ? this.each((typeof e == "function" ? i4 : a4)(t, e)) : Bt(this.node(), t).duration;
|
|
12386
12386
|
}
|
|
12387
|
-
function
|
|
12387
|
+
function l4(e, t) {
|
|
12388
12388
|
if (typeof t != "function") throw new Error();
|
|
12389
12389
|
return function() {
|
|
12390
12390
|
nn(this, e).ease = t;
|
|
12391
12391
|
};
|
|
12392
12392
|
}
|
|
12393
|
-
function
|
|
12393
|
+
function u4(e) {
|
|
12394
12394
|
var t = this._id;
|
|
12395
|
-
return arguments.length ? this.each(
|
|
12395
|
+
return arguments.length ? this.each(l4(t, e)) : Bt(this.node(), t).ease;
|
|
12396
12396
|
}
|
|
12397
|
-
function
|
|
12397
|
+
function d4(e, t) {
|
|
12398
12398
|
return function() {
|
|
12399
12399
|
var n = t.apply(this, arguments);
|
|
12400
12400
|
if (typeof n != "function") throw new Error();
|
|
12401
12401
|
nn(this, e).ease = n;
|
|
12402
12402
|
};
|
|
12403
12403
|
}
|
|
12404
|
-
function
|
|
12404
|
+
function f4(e) {
|
|
12405
12405
|
if (typeof e != "function") throw new Error();
|
|
12406
|
-
return this.each(
|
|
12406
|
+
return this.each(d4(this._id, e));
|
|
12407
12407
|
}
|
|
12408
|
-
function
|
|
12408
|
+
function h4(e) {
|
|
12409
12409
|
typeof e != "function" && (e = kS(e));
|
|
12410
12410
|
for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o)
|
|
12411
12411
|
for (var s = t[o], i = s.length, a = r[o] = [], c, l = 0; l < i; ++l)
|
|
12412
12412
|
(c = s[l]) && e.call(c, c.__data__, l, s) && a.push(c);
|
|
12413
12413
|
return new wn(r, this._parents, this._name, this._id);
|
|
12414
12414
|
}
|
|
12415
|
-
function
|
|
12415
|
+
function p4(e) {
|
|
12416
12416
|
if (e._id !== this._id) throw new Error();
|
|
12417
12417
|
for (var t = this._groups, n = e._groups, r = t.length, o = n.length, s = Math.min(r, o), i = new Array(r), a = 0; a < s; ++a)
|
|
12418
12418
|
for (var c = t[a], l = n[a], u = c.length, d = i[a] = new Array(u), f, h = 0; h < u; ++h)
|
|
@@ -12421,34 +12421,34 @@ function pD(e) {
|
|
|
12421
12421
|
i[a] = t[a];
|
|
12422
12422
|
return new wn(i, this._parents, this._name, this._id);
|
|
12423
12423
|
}
|
|
12424
|
-
function
|
|
12424
|
+
function m4(e) {
|
|
12425
12425
|
return (e + "").trim().split(/^|\s+/).every(function(t) {
|
|
12426
12426
|
var n = t.indexOf(".");
|
|
12427
12427
|
return n >= 0 && (t = t.slice(0, n)), !t || t === "start";
|
|
12428
12428
|
});
|
|
12429
12429
|
}
|
|
12430
|
-
function
|
|
12431
|
-
var r, o, s =
|
|
12430
|
+
function g4(e, t, n) {
|
|
12431
|
+
var r, o, s = m4(t) ? Pm : nn;
|
|
12432
12432
|
return function() {
|
|
12433
12433
|
var i = s(this, e), a = i.on;
|
|
12434
12434
|
a !== r && (o = (r = a).copy()).on(t, n), i.on = o;
|
|
12435
12435
|
};
|
|
12436
12436
|
}
|
|
12437
|
-
function
|
|
12437
|
+
function v4(e, t) {
|
|
12438
12438
|
var n = this._id;
|
|
12439
|
-
return arguments.length < 2 ? Bt(this.node(), n).on.on(e) : this.each(
|
|
12439
|
+
return arguments.length < 2 ? Bt(this.node(), n).on.on(e) : this.each(g4(n, e, t));
|
|
12440
12440
|
}
|
|
12441
|
-
function
|
|
12441
|
+
function y4(e) {
|
|
12442
12442
|
return function() {
|
|
12443
12443
|
var t = this.parentNode;
|
|
12444
12444
|
for (var n in this.__transition) if (+n !== e) return;
|
|
12445
12445
|
t && t.removeChild(this);
|
|
12446
12446
|
};
|
|
12447
12447
|
}
|
|
12448
|
-
function
|
|
12449
|
-
return this.on("end.remove",
|
|
12448
|
+
function x4() {
|
|
12449
|
+
return this.on("end.remove", y4(this._id));
|
|
12450
12450
|
}
|
|
12451
|
-
function
|
|
12451
|
+
function b4(e) {
|
|
12452
12452
|
var t = this._name, n = this._id;
|
|
12453
12453
|
typeof e != "function" && (e = km(e));
|
|
12454
12454
|
for (var r = this._groups, o = r.length, s = new Array(o), i = 0; i < o; ++i)
|
|
@@ -12456,7 +12456,7 @@ function bD(e) {
|
|
|
12456
12456
|
(u = a[f]) && (d = e.call(u, u.__data__, f, a)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, Da(l[f], t, n, f, l, Bt(u, n)));
|
|
12457
12457
|
return new wn(s, this._parents, t, n);
|
|
12458
12458
|
}
|
|
12459
|
-
function
|
|
12459
|
+
function w4(e) {
|
|
12460
12460
|
var t = this._name, n = this._id;
|
|
12461
12461
|
typeof e != "function" && (e = TS(e));
|
|
12462
12462
|
for (var r = this._groups, o = r.length, s = [], i = [], a = 0; a < o; ++a)
|
|
@@ -12468,11 +12468,11 @@ function wD(e) {
|
|
|
12468
12468
|
}
|
|
12469
12469
|
return new wn(s, i, t, n);
|
|
12470
12470
|
}
|
|
12471
|
-
var
|
|
12472
|
-
function
|
|
12473
|
-
return new
|
|
12471
|
+
var _4 = $s.prototype.constructor;
|
|
12472
|
+
function C4() {
|
|
12473
|
+
return new _4(this._groups, this._parents);
|
|
12474
12474
|
}
|
|
12475
|
-
function
|
|
12475
|
+
function S4(e, t) {
|
|
12476
12476
|
var n, r, o;
|
|
12477
12477
|
return function() {
|
|
12478
12478
|
var s = no(this, e), i = (this.style.removeProperty(e), no(this, e));
|
|
@@ -12484,86 +12484,86 @@ function QS(e) {
|
|
|
12484
12484
|
this.style.removeProperty(e);
|
|
12485
12485
|
};
|
|
12486
12486
|
}
|
|
12487
|
-
function
|
|
12487
|
+
function E4(e, t, n) {
|
|
12488
12488
|
var r, o = n + "", s;
|
|
12489
12489
|
return function() {
|
|
12490
12490
|
var i = no(this, e);
|
|
12491
12491
|
return i === o ? null : i === r ? s : s = t(r = i, n);
|
|
12492
12492
|
};
|
|
12493
12493
|
}
|
|
12494
|
-
function
|
|
12494
|
+
function N4(e, t, n) {
|
|
12495
12495
|
var r, o, s;
|
|
12496
12496
|
return function() {
|
|
12497
12497
|
var i = no(this, e), a = n(this), c = a + "";
|
|
12498
12498
|
return a == null && (c = a = (this.style.removeProperty(e), no(this, e))), i === c ? null : i === r && c === o ? s : (o = c, s = t(r = i, a));
|
|
12499
12499
|
};
|
|
12500
12500
|
}
|
|
12501
|
-
function
|
|
12501
|
+
function R4(e, t) {
|
|
12502
12502
|
var n, r, o, s = "style." + t, i = "end." + s, a;
|
|
12503
12503
|
return function() {
|
|
12504
12504
|
var c = nn(this, e), l = c.on, u = c.value[s] == null ? a || (a = QS(t)) : void 0;
|
|
12505
12505
|
(l !== n || o !== u) && (r = (n = l).copy()).on(i, o = u), c.on = r;
|
|
12506
12506
|
};
|
|
12507
12507
|
}
|
|
12508
|
-
function
|
|
12508
|
+
function T4(e, t, n) {
|
|
12509
12509
|
var r = (e += "") == "transform" ? T3 : JS;
|
|
12510
|
-
return t == null ? this.styleTween(e,
|
|
12510
|
+
return t == null ? this.styleTween(e, S4(e, r)).on("end.style." + e, QS(e)) : typeof t == "function" ? this.styleTween(e, N4(e, r, Om(this, "style." + e, t))).each(R4(this._id, e)) : this.styleTween(e, E4(e, r, t), n).on("end.style." + e, null);
|
|
12511
12511
|
}
|
|
12512
|
-
function
|
|
12512
|
+
function k4(e, t, n) {
|
|
12513
12513
|
return function(r) {
|
|
12514
12514
|
this.style.setProperty(e, t.call(this, r), n);
|
|
12515
12515
|
};
|
|
12516
12516
|
}
|
|
12517
|
-
function
|
|
12517
|
+
function I4(e, t, n) {
|
|
12518
12518
|
var r, o;
|
|
12519
12519
|
function s() {
|
|
12520
12520
|
var i = t.apply(this, arguments);
|
|
12521
|
-
return i !== o && (r = (o = i) &&
|
|
12521
|
+
return i !== o && (r = (o = i) && k4(e, i, n)), r;
|
|
12522
12522
|
}
|
|
12523
12523
|
return s._value = t, s;
|
|
12524
12524
|
}
|
|
12525
|
-
function
|
|
12525
|
+
function A4(e, t, n) {
|
|
12526
12526
|
var r = "style." + (e += "");
|
|
12527
12527
|
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
12528
12528
|
if (t == null) return this.tween(r, null);
|
|
12529
12529
|
if (typeof t != "function") throw new Error();
|
|
12530
|
-
return this.tween(r,
|
|
12530
|
+
return this.tween(r, I4(e, t, n ?? ""));
|
|
12531
12531
|
}
|
|
12532
|
-
function
|
|
12532
|
+
function M4(e) {
|
|
12533
12533
|
return function() {
|
|
12534
12534
|
this.textContent = e;
|
|
12535
12535
|
};
|
|
12536
12536
|
}
|
|
12537
|
-
function
|
|
12537
|
+
function P4(e) {
|
|
12538
12538
|
return function() {
|
|
12539
12539
|
var t = e(this);
|
|
12540
12540
|
this.textContent = t ?? "";
|
|
12541
12541
|
};
|
|
12542
12542
|
}
|
|
12543
|
-
function
|
|
12544
|
-
return this.tween("text", typeof e == "function" ?
|
|
12543
|
+
function O4(e) {
|
|
12544
|
+
return this.tween("text", typeof e == "function" ? P4(Om(this, "text", e)) : M4(e == null ? "" : e + ""));
|
|
12545
12545
|
}
|
|
12546
|
-
function
|
|
12546
|
+
function j4(e) {
|
|
12547
12547
|
return function(t) {
|
|
12548
12548
|
this.textContent = e.call(this, t);
|
|
12549
12549
|
};
|
|
12550
12550
|
}
|
|
12551
|
-
function
|
|
12551
|
+
function D4(e) {
|
|
12552
12552
|
var t, n;
|
|
12553
12553
|
function r() {
|
|
12554
12554
|
var o = e.apply(this, arguments);
|
|
12555
|
-
return o !== n && (t = (n = o) &&
|
|
12555
|
+
return o !== n && (t = (n = o) && j4(o)), t;
|
|
12556
12556
|
}
|
|
12557
12557
|
return r._value = e, r;
|
|
12558
12558
|
}
|
|
12559
|
-
function
|
|
12559
|
+
function L4(e) {
|
|
12560
12560
|
var t = "text";
|
|
12561
12561
|
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
|
|
12562
12562
|
if (e == null) return this.tween(t, null);
|
|
12563
12563
|
if (typeof e != "function") throw new Error();
|
|
12564
|
-
return this.tween(t,
|
|
12564
|
+
return this.tween(t, D4(e));
|
|
12565
12565
|
}
|
|
12566
|
-
function $
|
|
12566
|
+
function $4() {
|
|
12567
12567
|
for (var e = this._name, t = this._id, n = eE(), r = this._groups, o = r.length, s = 0; s < o; ++s)
|
|
12568
12568
|
for (var i = r[s], a = i.length, c, l = 0; l < a; ++l)
|
|
12569
12569
|
if (c = i[l]) {
|
|
@@ -12577,7 +12577,7 @@ function $D() {
|
|
|
12577
12577
|
}
|
|
12578
12578
|
return new wn(r, this._parents, e, n);
|
|
12579
12579
|
}
|
|
12580
|
-
function
|
|
12580
|
+
function F4() {
|
|
12581
12581
|
var e, t, n = this, r = n._id, o = n.size();
|
|
12582
12582
|
return new Promise(function(s, i) {
|
|
12583
12583
|
var a = { value: i }, c = { value: function() {
|
|
@@ -12589,74 +12589,74 @@ function FD() {
|
|
|
12589
12589
|
}), o === 0 && s();
|
|
12590
12590
|
});
|
|
12591
12591
|
}
|
|
12592
|
-
var
|
|
12592
|
+
var q4 = 0;
|
|
12593
12593
|
function wn(e, t, n, r) {
|
|
12594
12594
|
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
12595
12595
|
}
|
|
12596
12596
|
function eE() {
|
|
12597
|
-
return ++
|
|
12597
|
+
return ++q4;
|
|
12598
12598
|
}
|
|
12599
12599
|
var un = $s.prototype;
|
|
12600
12600
|
wn.prototype = {
|
|
12601
12601
|
constructor: wn,
|
|
12602
|
-
select:
|
|
12603
|
-
selectAll:
|
|
12602
|
+
select: b4,
|
|
12603
|
+
selectAll: w4,
|
|
12604
12604
|
selectChild: un.selectChild,
|
|
12605
12605
|
selectChildren: un.selectChildren,
|
|
12606
|
-
filter:
|
|
12607
|
-
merge:
|
|
12608
|
-
selection:
|
|
12609
|
-
transition: $
|
|
12606
|
+
filter: h4,
|
|
12607
|
+
merge: p4,
|
|
12608
|
+
selection: C4,
|
|
12609
|
+
transition: $4,
|
|
12610
12610
|
call: un.call,
|
|
12611
12611
|
nodes: un.nodes,
|
|
12612
12612
|
node: un.node,
|
|
12613
12613
|
size: un.size,
|
|
12614
12614
|
empty: un.empty,
|
|
12615
12615
|
each: un.each,
|
|
12616
|
-
on:
|
|
12616
|
+
on: v4,
|
|
12617
12617
|
attr: X3,
|
|
12618
|
-
attrTween:
|
|
12619
|
-
style:
|
|
12620
|
-
styleTween:
|
|
12621
|
-
text:
|
|
12622
|
-
textTween:
|
|
12623
|
-
remove:
|
|
12618
|
+
attrTween: n4,
|
|
12619
|
+
style: T4,
|
|
12620
|
+
styleTween: A4,
|
|
12621
|
+
text: O4,
|
|
12622
|
+
textTween: L4,
|
|
12623
|
+
remove: x4,
|
|
12624
12624
|
tween: H3,
|
|
12625
|
-
delay:
|
|
12626
|
-
duration:
|
|
12627
|
-
ease:
|
|
12628
|
-
easeVarying:
|
|
12629
|
-
end:
|
|
12625
|
+
delay: s4,
|
|
12626
|
+
duration: c4,
|
|
12627
|
+
ease: u4,
|
|
12628
|
+
easeVarying: f4,
|
|
12629
|
+
end: F4,
|
|
12630
12630
|
[Symbol.iterator]: un[Symbol.iterator]
|
|
12631
12631
|
};
|
|
12632
|
-
function
|
|
12632
|
+
function V4(e) {
|
|
12633
12633
|
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
12634
12634
|
}
|
|
12635
|
-
var
|
|
12635
|
+
var B4 = {
|
|
12636
12636
|
time: null,
|
|
12637
12637
|
// Set on use.
|
|
12638
12638
|
delay: 0,
|
|
12639
12639
|
duration: 250,
|
|
12640
|
-
ease:
|
|
12640
|
+
ease: V4
|
|
12641
12641
|
};
|
|
12642
|
-
function
|
|
12642
|
+
function z4(e, t) {
|
|
12643
12643
|
for (var n; !(n = e.__transition) || !(n = n[t]); )
|
|
12644
12644
|
if (!(e = e.parentNode))
|
|
12645
12645
|
throw new Error(`transition ${t} not found`);
|
|
12646
12646
|
return n;
|
|
12647
12647
|
}
|
|
12648
|
-
function
|
|
12648
|
+
function H4(e) {
|
|
12649
12649
|
var t, n;
|
|
12650
|
-
e instanceof wn ? (t = e._id, e = e._name) : (t = eE(), (n =
|
|
12650
|
+
e instanceof wn ? (t = e._id, e = e._name) : (t = eE(), (n = B4).time = Mm(), e = e == null ? null : e + "");
|
|
12651
12651
|
for (var r = this._groups, o = r.length, s = 0; s < o; ++s)
|
|
12652
12652
|
for (var i = r[s], a = i.length, c, l = 0; l < a; ++l)
|
|
12653
|
-
(c = i[l]) && Da(c, e, t, l, i, n ||
|
|
12653
|
+
(c = i[l]) && Da(c, e, t, l, i, n || z4(c, t));
|
|
12654
12654
|
return new wn(r, this._parents, e, t);
|
|
12655
12655
|
}
|
|
12656
12656
|
$s.prototype.interrupt = V3;
|
|
12657
|
-
$s.prototype.transition =
|
|
12657
|
+
$s.prototype.transition = H4;
|
|
12658
12658
|
const hi = (e) => () => e;
|
|
12659
|
-
function
|
|
12659
|
+
function W4(e, {
|
|
12660
12660
|
sourceEvent: t,
|
|
12661
12661
|
target: n,
|
|
12662
12662
|
transform: r,
|
|
@@ -12721,23 +12721,23 @@ function Hc(e) {
|
|
|
12721
12721
|
function jo(e) {
|
|
12722
12722
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
12723
12723
|
}
|
|
12724
|
-
function
|
|
12724
|
+
function G4(e) {
|
|
12725
12725
|
return (!e.ctrlKey || e.type === "wheel") && !e.button;
|
|
12726
12726
|
}
|
|
12727
|
-
function
|
|
12727
|
+
function U4() {
|
|
12728
12728
|
var e = this;
|
|
12729
12729
|
return e instanceof SVGElement ? (e = e.ownerSVGElement || e, e.hasAttribute("viewBox") ? (e = e.viewBox.baseVal, [[e.x, e.y], [e.x + e.width, e.y + e.height]]) : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]]) : [[0, 0], [e.clientWidth, e.clientHeight]];
|
|
12730
12730
|
}
|
|
12731
12731
|
function _v() {
|
|
12732
12732
|
return this.__zoom || La;
|
|
12733
12733
|
}
|
|
12734
|
-
function
|
|
12734
|
+
function Z4(e) {
|
|
12735
12735
|
return -e.deltaY * (e.deltaMode === 1 ? 0.05 : e.deltaMode ? 1 : 2e-3) * (e.ctrlKey ? 10 : 1);
|
|
12736
12736
|
}
|
|
12737
|
-
function
|
|
12737
|
+
function K4() {
|
|
12738
12738
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
12739
12739
|
}
|
|
12740
|
-
function
|
|
12740
|
+
function Y4(e, t, n) {
|
|
12741
12741
|
var r = e.invertX(t[0][0]) - n[0][0], o = e.invertX(t[1][0]) - n[1][0], s = e.invertY(t[0][1]) - n[0][1], i = e.invertY(t[1][1]) - n[1][1];
|
|
12742
12742
|
return e.translate(
|
|
12743
12743
|
o > r ? (r + o) / 2 : Math.min(0, r) || Math.max(0, o),
|
|
@@ -12745,7 +12745,7 @@ function YD(e, t, n) {
|
|
|
12745
12745
|
);
|
|
12746
12746
|
}
|
|
12747
12747
|
function nE() {
|
|
12748
|
-
var e =
|
|
12748
|
+
var e = G4, t = U4, n = Y4, r = Z4, o = K4, s = [0, 1 / 0], i = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, c = P3, l = Pa("start", "zoom", "end"), u, d, f, h = 500, p = 150, m = 0, v = 10;
|
|
12749
12749
|
function y(C) {
|
|
12750
12750
|
C.property("__zoom", _v).on("wheel.zoom", R, { passive: !1 }).on("mousedown.zoom", M).on("dblclick.zoom", P).filter(o).on("touchstart.zoom", D).on("touchmove.zoom", L).on("touchend.zoom touchcancel.zoom", $).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
12751
12751
|
}
|
|
@@ -12831,7 +12831,7 @@ function nE() {
|
|
|
12831
12831
|
l.call(
|
|
12832
12832
|
C,
|
|
12833
12833
|
this.that,
|
|
12834
|
-
new
|
|
12834
|
+
new W4(C, {
|
|
12835
12835
|
sourceEvent: this.sourceEvent,
|
|
12836
12836
|
target: y,
|
|
12837
12837
|
type: C,
|
|
@@ -13001,7 +13001,7 @@ const Cv = {
|
|
|
13001
13001
|
[ie.Top]: ie.Bottom,
|
|
13002
13002
|
[ie.Bottom]: ie.Top
|
|
13003
13003
|
};
|
|
13004
|
-
function
|
|
13004
|
+
function X4(e, t) {
|
|
13005
13005
|
if (!e && !t)
|
|
13006
13006
|
return !0;
|
|
13007
13007
|
if (!e || !t || e.size !== t.size)
|
|
@@ -13024,13 +13024,13 @@ function Sv(e, t, n) {
|
|
|
13024
13024
|
function sE(e) {
|
|
13025
13025
|
return e === null ? null : e ? "valid" : "invalid";
|
|
13026
13026
|
}
|
|
13027
|
-
const iE = (e) => "id" in e && "source" in e && "target" in e,
|
|
13027
|
+
const iE = (e) => "id" in e && "source" in e && "target" in e, J4 = (e) => "id" in e && "position" in e && !("source" in e) && !("target" in e), jm = (e) => "id" in e && "internals" in e && !("source" in e) && !("target" in e), qs = (e, t = [0, 0]) => {
|
|
13028
13028
|
const { width: n, height: r } = Sn(e), o = e.origin ?? t, s = n * o[0], i = r * o[1];
|
|
13029
13029
|
return {
|
|
13030
13030
|
x: e.position.x - s,
|
|
13031
13031
|
y: e.position.y - i
|
|
13032
13032
|
};
|
|
13033
|
-
},
|
|
13033
|
+
}, Q4 = (e, t = { nodeOrigin: [0, 0], nodeLookup: void 0 }) => {
|
|
13034
13034
|
if (process.env.NODE_ENV === "development" && !t.nodeLookup && console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows."), e.length === 0)
|
|
13035
13035
|
return { x: 0, y: 0, width: 0, height: 0 };
|
|
13036
13036
|
const n = e.reduce((r, o) => {
|
|
@@ -13065,7 +13065,7 @@ const iE = (e) => "id" in e && "source" in e && "target" in e, JD = (e) => "id"
|
|
|
13065
13065
|
(!l.internals.handleBounds || y || m >= v || l.dragging) && c.push(l);
|
|
13066
13066
|
}
|
|
13067
13067
|
return c;
|
|
13068
|
-
},
|
|
13068
|
+
}, eD = (e, t) => {
|
|
13069
13069
|
const n = /* @__PURE__ */ new Set();
|
|
13070
13070
|
return e.forEach((r) => {
|
|
13071
13071
|
n.add(r.id);
|
|
@@ -13109,7 +13109,7 @@ function cE({ nodeId: e, nextPosition: t, nodeLookup: n, nodeOrigin: r = [0, 0],
|
|
|
13109
13109
|
positionAbsolute: f
|
|
13110
13110
|
};
|
|
13111
13111
|
}
|
|
13112
|
-
async function
|
|
13112
|
+
async function tD({ nodesToRemove: e = [], edgesToRemove: t = [], nodes: n, edges: r, onBeforeDelete: o }) {
|
|
13113
13113
|
const s = new Set(e.map((f) => f.id)), i = [];
|
|
13114
13114
|
for (const f of n) {
|
|
13115
13115
|
if (f.deletable === !1)
|
|
@@ -13117,7 +13117,7 @@ async function t4({ nodesToRemove: e = [], edgesToRemove: t = [], nodes: n, edge
|
|
|
13117
13117
|
const h = s.has(f.id), p = !h && f.parentId && i.find((m) => m.id === f.parentId);
|
|
13118
13118
|
(h || p) && i.push(f);
|
|
13119
13119
|
}
|
|
13120
|
-
const a = new Set(t.map((f) => f.id)), c = r.filter((f) => f.deletable !== !1), u =
|
|
13120
|
+
const a = new Set(t.map((f) => f.id)), c = r.filter((f) => f.deletable !== !1), u = eD(i, c);
|
|
13121
13121
|
for (const f of c)
|
|
13122
13122
|
a.has(f.id) && !u.find((p) => p.id === f.id) && u.push(f);
|
|
13123
13123
|
if (!o)
|
|
@@ -13232,10 +13232,10 @@ function Ko(e, { snapGrid: t = [0, 0], snapToGrid: n = !1, transform: r }) {
|
|
|
13232
13232
|
const Va = (e) => ({
|
|
13233
13233
|
width: e.offsetWidth,
|
|
13234
13234
|
height: e.offsetHeight
|
|
13235
|
-
}), gE = (e) => e.getRootNode?.() || window?.document,
|
|
13235
|
+
}), gE = (e) => e.getRootNode?.() || window?.document, nD = ["INPUT", "SELECT", "TEXTAREA"];
|
|
13236
13236
|
function Pp(e) {
|
|
13237
13237
|
const t = e.composedPath?.()?.[0] || e.target;
|
|
13238
|
-
return
|
|
13238
|
+
return nD.includes(t?.nodeName) || t?.hasAttribute("contenteditable") || !!t?.closest(".nokey");
|
|
13239
13239
|
}
|
|
13240
13240
|
const vE = (e) => "clientX" in e, yn = (e, t) => {
|
|
13241
13241
|
const n = vE(e), r = n ? e.clientX : e.touches?.[0].clientX, o = n ? e.clientY : e.touches?.[0].clientY;
|
|
@@ -13314,13 +13314,13 @@ function bE({ sourceX: e, sourceY: t, targetX: n, targetY: r }) {
|
|
|
13314
13314
|
const o = Math.abs(n - e) / 2, s = n < e ? n + o : n - o, i = Math.abs(r - t) / 2, a = r < t ? r + i : r - i;
|
|
13315
13315
|
return [s, a, o, i];
|
|
13316
13316
|
}
|
|
13317
|
-
function
|
|
13317
|
+
function rD({ sourceNode: e, targetNode: t, selected: n = !1, zIndex: r = 0, elevateOnSelect: o = !1 }) {
|
|
13318
13318
|
if (!o)
|
|
13319
13319
|
return r;
|
|
13320
13320
|
const s = n || t.selected || e.selected, i = Math.max(e.internals.z || 0, t.internals.z || 0, 1e3);
|
|
13321
13321
|
return r + (s ? i : 0);
|
|
13322
13322
|
}
|
|
13323
|
-
function
|
|
13323
|
+
function oD({ sourceNode: e, targetNode: t, width: n, height: r, transform: o }) {
|
|
13324
13324
|
const s = $a(Yi(e), Yi(t));
|
|
13325
13325
|
s.x === s.x2 && (s.x2 += 1), s.y === s.y2 && (s.y2 += 1);
|
|
13326
13326
|
const i = {
|
|
@@ -13331,14 +13331,14 @@ function o4({ sourceNode: e, targetNode: t, width: n, height: r, transform: o })
|
|
|
13331
13331
|
};
|
|
13332
13332
|
return gs(i, Fa(s)) > 0;
|
|
13333
13333
|
}
|
|
13334
|
-
const
|
|
13334
|
+
const sD = ({ source: e, sourceHandle: t, target: n, targetHandle: r }) => `xy-edge__${e}${t || ""}-${n}${r || ""}`, iD = (e, t) => t.some((n) => n.source === e.source && n.target === e.target && (n.sourceHandle === e.sourceHandle || !n.sourceHandle && !e.sourceHandle) && (n.targetHandle === e.targetHandle || !n.targetHandle && !e.targetHandle)), wE = (e, t) => {
|
|
13335
13335
|
if (!e.source || !e.target)
|
|
13336
13336
|
return fE("006", kt.error006()), t;
|
|
13337
13337
|
let n;
|
|
13338
13338
|
return iE(e) ? n = { ...e } : n = {
|
|
13339
13339
|
...e,
|
|
13340
|
-
id:
|
|
13341
|
-
},
|
|
13340
|
+
id: sD(e)
|
|
13341
|
+
}, iD(n, t) ? t : (n.sourceHandle === null && delete n.sourceHandle, n.targetHandle === null && delete n.targetHandle, t.concat(n));
|
|
13342
13342
|
};
|
|
13343
13343
|
function _E({ sourceX: e, sourceY: t, targetX: n, targetY: r }) {
|
|
13344
13344
|
const [o, s, i, a] = bE({
|
|
@@ -13354,9 +13354,9 @@ const kv = {
|
|
|
13354
13354
|
[ie.Right]: { x: 1, y: 0 },
|
|
13355
13355
|
[ie.Top]: { x: 0, y: -1 },
|
|
13356
13356
|
[ie.Bottom]: { x: 0, y: 1 }
|
|
13357
|
-
},
|
|
13358
|
-
function
|
|
13359
|
-
const i = kv[t], a = kv[r], c = { x: e.x + i.x * s, y: e.y + i.y * s }, l = { x: n.x + a.x * s, y: n.y + a.y * s }, u =
|
|
13357
|
+
}, aD = ({ source: e, sourcePosition: t = ie.Bottom, target: n }) => t === ie.Left || t === ie.Right ? e.x < n.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : e.y < n.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, Iv = (e, t) => Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
|
|
13358
|
+
function cD({ source: e, sourcePosition: t = ie.Bottom, target: n, targetPosition: r = ie.Top, center: o, offset: s }) {
|
|
13359
|
+
const i = kv[t], a = kv[r], c = { x: e.x + i.x * s, y: e.y + i.y * s }, l = { x: n.x + a.x * s, y: n.y + a.y * s }, u = aD({
|
|
13360
13360
|
source: c,
|
|
13361
13361
|
sourcePosition: t,
|
|
13362
13362
|
target: l
|
|
@@ -13402,7 +13402,7 @@ function c4({ source: e, sourcePosition: t = ie.Bottom, target: n, targetPositio
|
|
|
13402
13402
|
n
|
|
13403
13403
|
], p, m, x, N];
|
|
13404
13404
|
}
|
|
13405
|
-
function
|
|
13405
|
+
function lD(e, t, n, r) {
|
|
13406
13406
|
const o = Math.min(Iv(e, t) / 2, Iv(t, n) / 2, r), { x: s, y: i } = t;
|
|
13407
13407
|
if (e.x === s && s === n.x || e.y === i && i === n.y)
|
|
13408
13408
|
return `L${s} ${i}`;
|
|
@@ -13414,7 +13414,7 @@ function l4(e, t, n, r) {
|
|
|
13414
13414
|
return `L ${s},${i + o * c}Q ${s},${i} ${s + o * a},${i}`;
|
|
13415
13415
|
}
|
|
13416
13416
|
function Ji({ sourceX: e, sourceY: t, sourcePosition: n = ie.Bottom, targetX: r, targetY: o, targetPosition: s = ie.Top, borderRadius: i = 5, centerX: a, centerY: c, offset: l = 20 }) {
|
|
13417
|
-
const [u, d, f, h, p] =
|
|
13417
|
+
const [u, d, f, h, p] = cD({
|
|
13418
13418
|
source: { x: e, y: t },
|
|
13419
13419
|
sourcePosition: n,
|
|
13420
13420
|
target: { x: r, y: o },
|
|
@@ -13424,13 +13424,13 @@ function Ji({ sourceX: e, sourceY: t, sourcePosition: n = ie.Bottom, targetX: r,
|
|
|
13424
13424
|
});
|
|
13425
13425
|
return [u.reduce((v, y, b) => {
|
|
13426
13426
|
let w = "";
|
|
13427
|
-
return b > 0 && b < u.length - 1 ? w =
|
|
13427
|
+
return b > 0 && b < u.length - 1 ? w = lD(u[b - 1], y, u[b + 1], i) : w = `${b === 0 ? "M" : "L"}${y.x} ${y.y}`, v += w, v;
|
|
13428
13428
|
}, ""), d, f, h, p];
|
|
13429
13429
|
}
|
|
13430
13430
|
function Av(e) {
|
|
13431
13431
|
return e && !!(e.internals.handleBounds || e.handles?.length) && !!(e.measured.width || e.width || e.initialWidth);
|
|
13432
13432
|
}
|
|
13433
|
-
function
|
|
13433
|
+
function uD(e) {
|
|
13434
13434
|
const { sourceNode: t, targetNode: n } = e;
|
|
13435
13435
|
if (!Av(t) || !Av(n))
|
|
13436
13436
|
return null;
|
|
@@ -13487,7 +13487,7 @@ function Pv(e, t) {
|
|
|
13487
13487
|
function Op(e, t) {
|
|
13488
13488
|
return e ? typeof e == "string" ? e : `${t ? `${t}__` : ""}${Object.keys(e).sort().map((r) => `${r}=${e[r]}`).join("&")}` : "";
|
|
13489
13489
|
}
|
|
13490
|
-
function
|
|
13490
|
+
function dD(e, { id: t, defaultColor: n, defaultMarkerStart: r, defaultMarkerEnd: o }) {
|
|
13491
13491
|
const s = /* @__PURE__ */ new Set();
|
|
13492
13492
|
return e.reduce((i, a) => ([a.markerStart || r, a.markerEnd || o].forEach((c) => {
|
|
13493
13493
|
if (c && typeof c == "object") {
|
|
@@ -13501,7 +13501,7 @@ const Lm = {
|
|
|
13501
13501
|
nodeExtent: ps,
|
|
13502
13502
|
elevateNodesOnSelect: !0,
|
|
13503
13503
|
defaults: {}
|
|
13504
|
-
},
|
|
13504
|
+
}, fD = {
|
|
13505
13505
|
...Lm,
|
|
13506
13506
|
checkEquality: !0
|
|
13507
13507
|
};
|
|
@@ -13511,7 +13511,7 @@ function $m(e, t) {
|
|
|
13511
13511
|
t[r] !== void 0 && (n[r] = t[r]);
|
|
13512
13512
|
return n;
|
|
13513
13513
|
}
|
|
13514
|
-
function
|
|
13514
|
+
function hD(e, t, n) {
|
|
13515
13515
|
const r = $m(Lm, n);
|
|
13516
13516
|
for (const o of e.values())
|
|
13517
13517
|
if (o.parentId)
|
|
@@ -13522,7 +13522,7 @@ function h4(e, t, n) {
|
|
|
13522
13522
|
}
|
|
13523
13523
|
}
|
|
13524
13524
|
function jp(e, t, n, r) {
|
|
13525
|
-
const o = $m(
|
|
13525
|
+
const o = $m(fD, r), s = new Map(t), i = o?.elevateNodesOnSelect ? 1e3 : 0;
|
|
13526
13526
|
t.clear(), n.clear();
|
|
13527
13527
|
for (const a of e) {
|
|
13528
13528
|
let c = s.get(a.id);
|
|
@@ -13549,7 +13549,7 @@ function jp(e, t, n, r) {
|
|
|
13549
13549
|
a.parentId && Fm(c, t, n, r);
|
|
13550
13550
|
}
|
|
13551
13551
|
}
|
|
13552
|
-
function
|
|
13552
|
+
function pD(e, t) {
|
|
13553
13553
|
if (!e.parentId)
|
|
13554
13554
|
return;
|
|
13555
13555
|
const n = t.get(e.parentId);
|
|
@@ -13561,8 +13561,8 @@ function Fm(e, t, n, r) {
|
|
|
13561
13561
|
console.warn(`Parent node ${a} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);
|
|
13562
13562
|
return;
|
|
13563
13563
|
}
|
|
13564
|
-
|
|
13565
|
-
const l = o ? 1e3 : 0, { x: u, y: d, z: f } =
|
|
13564
|
+
pD(e, n);
|
|
13565
|
+
const l = o ? 1e3 : 0, { x: u, y: d, z: f } = mD(e, c, s, i, l), { positionAbsolute: h } = e.internals, p = u !== h.x || d !== h.y;
|
|
13566
13566
|
(p || f !== e.internals.z) && (e.internals = {
|
|
13567
13567
|
...e.internals,
|
|
13568
13568
|
positionAbsolute: p ? { x: u, y: d } : h,
|
|
@@ -13572,7 +13572,7 @@ function Fm(e, t, n, r) {
|
|
|
13572
13572
|
function CE(e, t) {
|
|
13573
13573
|
return (jt(e.zIndex) ? e.zIndex : 0) + (e.selected ? t : 0);
|
|
13574
13574
|
}
|
|
13575
|
-
function
|
|
13575
|
+
function mD(e, t, n, r, o) {
|
|
13576
13576
|
const { x: s, y: i } = t.internals.positionAbsolute, a = Sn(e), c = qs(e, n), l = io(e.extent) ? Cr(c, e.extent, a) : c;
|
|
13577
13577
|
let u = Cr({ x: s + l.x, y: i + l.y }, r, a);
|
|
13578
13578
|
e.extent === "parent" && (u = lE(u, a, t));
|
|
@@ -13621,7 +13621,7 @@ function qm(e, t, n, r = [0, 0]) {
|
|
|
13621
13621
|
});
|
|
13622
13622
|
}), o;
|
|
13623
13623
|
}
|
|
13624
|
-
function
|
|
13624
|
+
function gD(e, t, n, r, o, s) {
|
|
13625
13625
|
const i = r?.querySelector(".xyflow__viewport");
|
|
13626
13626
|
let a = !1;
|
|
13627
13627
|
if (!i)
|
|
@@ -13665,7 +13665,7 @@ function g4(e, t, n, r, o, s) {
|
|
|
13665
13665
|
}
|
|
13666
13666
|
return { changes: c, updatedInternals: a };
|
|
13667
13667
|
}
|
|
13668
|
-
async function
|
|
13668
|
+
async function vD({ delta: e, panZoom: t, transform: n, translateExtent: r, width: o, height: s }) {
|
|
13669
13669
|
if (!t || !e.x && !e.y)
|
|
13670
13670
|
return Promise.resolve(!1);
|
|
13671
13671
|
const i = await t.setViewportConstrained({
|
|
@@ -13702,7 +13702,7 @@ function Ov(e, t, n) {
|
|
|
13702
13702
|
} while (r);
|
|
13703
13703
|
return !1;
|
|
13704
13704
|
}
|
|
13705
|
-
function
|
|
13705
|
+
function yD(e, t, n, r) {
|
|
13706
13706
|
const o = /* @__PURE__ */ new Map();
|
|
13707
13707
|
for (const [s, i] of e)
|
|
13708
13708
|
if ((i.selected || i.id === r) && (!i.parentId || !EE(i, e)) && (i.draggable || t && typeof i.draggable > "u")) {
|
|
@@ -13751,7 +13751,7 @@ function Wc({ nodeId: e, dragItems: t, nodeLookup: n, dragging: r = !0 }) {
|
|
|
13751
13751
|
o
|
|
13752
13752
|
];
|
|
13753
13753
|
}
|
|
13754
|
-
function
|
|
13754
|
+
function xD({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, onDragStop: o }) {
|
|
13755
13755
|
let s = { x: null, y: null }, i = 0, a = /* @__PURE__ */ new Map(), c = !1, l = { x: 0, y: 0 }, u = null, d = !1, f = null, h = !1;
|
|
13756
13756
|
function p({ noDragClassName: v, handleSelector: y, domNode: b, isSelectable: w, nodeId: x, nodeClickDistance: N = 0 }) {
|
|
13757
13757
|
f = bt(b);
|
|
@@ -13808,7 +13808,7 @@ function x4({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
|
|
|
13808
13808
|
const { nodeLookup: D, multiSelectionActive: L, nodesDraggable: $, transform: C, snapGrid: O, snapToGrid: S, selectNodesOnDrag: I, onNodeDragStart: A, onSelectionDragStart: k, unselectNodesAndEdges: F } = t();
|
|
13809
13809
|
d = !0, (!I || !w) && !L && x && (D.get(x)?.selected || F()), w && I && x && e?.(x);
|
|
13810
13810
|
const q = Ko(P.sourceEvent, { transform: C, snapGrid: O, snapToGrid: S });
|
|
13811
|
-
if (s = q, a =
|
|
13811
|
+
if (s = q, a = yD(D, $, q, x), a.size > 0 && (n || A || !x && k)) {
|
|
13812
13812
|
const [B, Y] = Wc({
|
|
13813
13813
|
nodeId: x,
|
|
13814
13814
|
dragItems: a,
|
|
@@ -13857,7 +13857,7 @@ function x4({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
|
|
|
13857
13857
|
destroy: m
|
|
13858
13858
|
};
|
|
13859
13859
|
}
|
|
13860
|
-
function
|
|
13860
|
+
function bD(e, t, n) {
|
|
13861
13861
|
const r = [], o = {
|
|
13862
13862
|
x: e.x - n,
|
|
13863
13863
|
y: e.y - n,
|
|
@@ -13868,10 +13868,10 @@ function b4(e, t, n) {
|
|
|
13868
13868
|
gs(o, so(s)) > 0 && r.push(s);
|
|
13869
13869
|
return r;
|
|
13870
13870
|
}
|
|
13871
|
-
const
|
|
13872
|
-
function
|
|
13871
|
+
const wD = 250;
|
|
13872
|
+
function _D(e, t, n, r) {
|
|
13873
13873
|
let o = [], s = 1 / 0;
|
|
13874
|
-
const i =
|
|
13874
|
+
const i = bD(e, n, t + wD);
|
|
13875
13875
|
for (const a of i) {
|
|
13876
13876
|
const c = [...a.internals.handleBounds?.source ?? [], ...a.internals.handleBounds?.target ?? []];
|
|
13877
13877
|
for (const l of c) {
|
|
@@ -13899,12 +13899,12 @@ function NE(e, t, n, r, o, s = !1) {
|
|
|
13899
13899
|
function RE(e, t) {
|
|
13900
13900
|
return e || (t?.classList.contains("target") ? "target" : t?.classList.contains("source") ? "source" : null);
|
|
13901
13901
|
}
|
|
13902
|
-
function
|
|
13902
|
+
function CD(e, t) {
|
|
13903
13903
|
let n = null;
|
|
13904
13904
|
return t ? n = !0 : e && !t && (n = !1), n;
|
|
13905
13905
|
}
|
|
13906
13906
|
const TE = () => !0;
|
|
13907
|
-
function
|
|
13907
|
+
function SD(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o, edgeUpdaterType: s, isTarget: i, domNode: a, nodeLookup: c, lib: l, autoPanOnConnect: u, flowId: d, panBy: f, cancelConnection: h, onConnectStart: p, onConnect: m, onConnectEnd: v, isValidConnection: y = TE, onReconnectEnd: b, updateConnection: w, getTransform: x, getFromHandle: N, autoPanSpeed: T }) {
|
|
13908
13908
|
const E = gE(e.target);
|
|
13909
13909
|
let R = 0, M;
|
|
13910
13910
|
const { x: P, y: D } = yn(e), L = E?.elementFromPoint(P, D), $ = RE(s, L), C = a?.getBoundingClientRect();
|
|
@@ -13946,7 +13946,7 @@ function S4(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
|
|
|
13946
13946
|
return;
|
|
13947
13947
|
}
|
|
13948
13948
|
const re = x();
|
|
13949
|
-
S = yn(oe, C), M =
|
|
13949
|
+
S = yn(oe, C), M = _D(Bs(S, re, !1, [1, 1]), n, c, B), I || (q(), I = !0);
|
|
13950
13950
|
const se = kE(oe, {
|
|
13951
13951
|
handle: M,
|
|
13952
13952
|
connectionMode: t,
|
|
@@ -13959,7 +13959,7 @@ function S4(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
|
|
|
13959
13959
|
flowId: d,
|
|
13960
13960
|
nodeLookup: c
|
|
13961
13961
|
});
|
|
13962
|
-
F = se.handleDomNode, A = se.connection, k =
|
|
13962
|
+
F = se.handleDomNode, A = se.connection, k = CD(!!M, se.isValid);
|
|
13963
13963
|
const K = {
|
|
13964
13964
|
// from stays the same
|
|
13965
13965
|
...Z,
|
|
@@ -14005,10 +14005,10 @@ function kE(e, { handle: t, connectionMode: n, fromNodeId: r, fromHandleId: o, f
|
|
|
14005
14005
|
return y;
|
|
14006
14006
|
}
|
|
14007
14007
|
const Dp = {
|
|
14008
|
-
onPointerDown:
|
|
14008
|
+
onPointerDown: SD,
|
|
14009
14009
|
isValid: kE
|
|
14010
14010
|
};
|
|
14011
|
-
function
|
|
14011
|
+
function ED({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) {
|
|
14012
14012
|
const o = bt(e);
|
|
14013
14013
|
function s({ translateExtent: a, width: c, height: l, zoomStep: u = 10, pannable: d = !0, zoomable: f = !0, inversePan: h = !1 }) {
|
|
14014
14014
|
const p = (w) => {
|
|
@@ -14057,7 +14057,7 @@ function E4({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) {
|
|
|
14057
14057
|
pointer: Pt
|
|
14058
14058
|
};
|
|
14059
14059
|
}
|
|
14060
|
-
const
|
|
14060
|
+
const ND = (e, t) => e.x !== t.x || e.y !== t.y || e.zoom !== t.k, Ba = (e) => ({
|
|
14061
14061
|
x: e.x,
|
|
14062
14062
|
y: e.y,
|
|
14063
14063
|
zoom: e.k
|
|
@@ -14069,7 +14069,7 @@ const N4 = (e, t) => e.x !== t.x || e.y !== t.y || e.zoom !== t.k, Ba = (e) => (
|
|
|
14069
14069
|
const t = e.ctrlKey && Xi() ? 10 : 1;
|
|
14070
14070
|
return -e.deltaY * (e.deltaMode === 1 ? 0.05 : e.deltaMode ? 1 : 2e-3) * t;
|
|
14071
14071
|
};
|
|
14072
|
-
function
|
|
14072
|
+
function RD({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r, panOnScrollMode: o, panOnScrollSpeed: s, zoomOnPinch: i, onPanZoomStart: a, onPanZoom: c, onPanZoomEnd: l }) {
|
|
14073
14073
|
return (u) => {
|
|
14074
14074
|
if (qr(u, t))
|
|
14075
14075
|
return !1;
|
|
@@ -14095,14 +14095,14 @@ function R4({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r,
|
|
|
14095
14095
|
}, 150));
|
|
14096
14096
|
};
|
|
14097
14097
|
}
|
|
14098
|
-
function
|
|
14098
|
+
function TD({ noWheelClassName: e, preventScrolling: t, d3ZoomHandler: n }) {
|
|
14099
14099
|
return function(r, o) {
|
|
14100
14100
|
if (!t && r.type === "wheel" && !r.ctrlKey || qr(r, e))
|
|
14101
14101
|
return null;
|
|
14102
14102
|
r.preventDefault(), n.call(this, r, o);
|
|
14103
14103
|
};
|
|
14104
14104
|
}
|
|
14105
|
-
function
|
|
14105
|
+
function kD({ zoomPanValues: e, onDraggingChange: t, onPanZoomStart: n }) {
|
|
14106
14106
|
return (r) => {
|
|
14107
14107
|
if (r.sourceEvent?.internal)
|
|
14108
14108
|
return;
|
|
@@ -14110,14 +14110,14 @@ function k4({ zoomPanValues: e, onDraggingChange: t, onPanZoomStart: n }) {
|
|
|
14110
14110
|
e.mouseButton = r.sourceEvent?.button || 0, e.isZoomingOrPanning = !0, e.prevViewport = o, r.sourceEvent?.type === "mousedown" && t(!0), n && n?.(r.sourceEvent, o);
|
|
14111
14111
|
};
|
|
14112
14112
|
}
|
|
14113
|
-
function
|
|
14113
|
+
function ID({ zoomPanValues: e, panOnDrag: t, onPaneContextMenu: n, onTransformChange: r, onPanZoom: o }) {
|
|
14114
14114
|
return (s) => {
|
|
14115
14115
|
e.usedRightMouseButton = !!(n && IE(t, e.mouseButton ?? 0)), s.sourceEvent?.sync || r([s.transform.x, s.transform.y, s.transform.k]), o && !s.sourceEvent?.internal && o?.(s.sourceEvent, Ba(s.transform));
|
|
14116
14116
|
};
|
|
14117
14117
|
}
|
|
14118
|
-
function
|
|
14118
|
+
function AD({ zoomPanValues: e, panOnDrag: t, panOnScroll: n, onDraggingChange: r, onPanZoomEnd: o, onPaneContextMenu: s }) {
|
|
14119
14119
|
return (i) => {
|
|
14120
|
-
if (!i.sourceEvent?.internal && (e.isZoomingOrPanning = !1, s && IE(t, e.mouseButton ?? 0) && !e.usedRightMouseButton && i.sourceEvent && s(i.sourceEvent), e.usedRightMouseButton = !1, r(!1), o &&
|
|
14120
|
+
if (!i.sourceEvent?.internal && (e.isZoomingOrPanning = !1, s && IE(t, e.mouseButton ?? 0) && !e.usedRightMouseButton && i.sourceEvent && s(i.sourceEvent), e.usedRightMouseButton = !1, r(!1), o && ND(e.prevViewport, i.transform))) {
|
|
14121
14121
|
const a = Ba(i.transform);
|
|
14122
14122
|
e.prevViewport = a, clearTimeout(e.timerId), e.timerId = setTimeout(
|
|
14123
14123
|
() => {
|
|
@@ -14129,7 +14129,7 @@ function A4({ zoomPanValues: e, panOnDrag: t, panOnScroll: n, onDraggingChange:
|
|
|
14129
14129
|
}
|
|
14130
14130
|
};
|
|
14131
14131
|
}
|
|
14132
|
-
function
|
|
14132
|
+
function MD({ zoomActivationKeyPressed: e, zoomOnScroll: t, zoomOnPinch: n, panOnDrag: r, panOnScroll: o, zoomOnDoubleClick: s, userSelectionActive: i, noWheelClassName: a, noPanClassName: c, lib: l }) {
|
|
14133
14133
|
return (u) => {
|
|
14134
14134
|
const d = e || t, f = n && u.ctrlKey;
|
|
14135
14135
|
if (u.button === 1 && u.type === "mousedown" && (qr(u, `${l}-flow__node`) || qr(u, `${l}-flow__edge`)))
|
|
@@ -14144,7 +14144,7 @@ function M4({ zoomActivationKeyPressed: e, zoomOnScroll: t, zoomOnPinch: n, panO
|
|
|
14144
14144
|
return (!u.ctrlKey || u.type === "wheel") && h;
|
|
14145
14145
|
};
|
|
14146
14146
|
}
|
|
14147
|
-
function
|
|
14147
|
+
function PD({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translateExtent: o, viewport: s, onPanZoom: i, onPanZoomStart: a, onPanZoomEnd: c, onDraggingChange: l }) {
|
|
14148
14148
|
const u = {
|
|
14149
14149
|
isZoomingOrPanning: !1,
|
|
14150
14150
|
usedRightMouseButton: !1,
|
|
@@ -14171,7 +14171,7 @@ function P4({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translat
|
|
|
14171
14171
|
}
|
|
14172
14172
|
function y({ noWheelClassName: L, noPanClassName: $, onPaneContextMenu: C, userSelectionActive: O, panOnScroll: S, panOnDrag: I, panOnScrollMode: A, panOnScrollSpeed: k, preventScrolling: F, zoomOnPinch: q, zoomOnScroll: B, zoomOnDoubleClick: Y, zoomActivationKeyPressed: X, lib: U, onTransformChange: Z }) {
|
|
14173
14173
|
O && !u.isZoomingOrPanning && b();
|
|
14174
|
-
const z = S && !X && !O ?
|
|
14174
|
+
const z = S && !X && !O ? RD({
|
|
14175
14175
|
zoomPanValues: u,
|
|
14176
14176
|
noWheelClassName: L,
|
|
14177
14177
|
d3Selection: h,
|
|
@@ -14182,19 +14182,19 @@ function P4({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translat
|
|
|
14182
14182
|
onPanZoomStart: a,
|
|
14183
14183
|
onPanZoom: i,
|
|
14184
14184
|
onPanZoomEnd: c
|
|
14185
|
-
}) :
|
|
14185
|
+
}) : TD({
|
|
14186
14186
|
noWheelClassName: L,
|
|
14187
14187
|
preventScrolling: F,
|
|
14188
14188
|
d3ZoomHandler: p
|
|
14189
14189
|
});
|
|
14190
14190
|
if (h.on("wheel.zoom", z, { passive: !1 }), !O) {
|
|
14191
|
-
const re =
|
|
14191
|
+
const re = kD({
|
|
14192
14192
|
zoomPanValues: u,
|
|
14193
14193
|
onDraggingChange: l,
|
|
14194
14194
|
onPanZoomStart: a
|
|
14195
14195
|
});
|
|
14196
14196
|
f.on("start", re);
|
|
14197
|
-
const se =
|
|
14197
|
+
const se = ID({
|
|
14198
14198
|
zoomPanValues: u,
|
|
14199
14199
|
panOnDrag: I,
|
|
14200
14200
|
onPaneContextMenu: !!C,
|
|
@@ -14202,7 +14202,7 @@ function P4({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translat
|
|
|
14202
14202
|
onTransformChange: Z
|
|
14203
14203
|
});
|
|
14204
14204
|
f.on("zoom", se);
|
|
14205
|
-
const K =
|
|
14205
|
+
const K = AD({
|
|
14206
14206
|
zoomPanValues: u,
|
|
14207
14207
|
panOnDrag: I,
|
|
14208
14208
|
panOnScroll: S,
|
|
@@ -14212,7 +14212,7 @@ function P4({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translat
|
|
|
14212
14212
|
});
|
|
14213
14213
|
f.on("end", K);
|
|
14214
14214
|
}
|
|
14215
|
-
const oe =
|
|
14215
|
+
const oe = MD({
|
|
14216
14216
|
zoomActivationKeyPressed: X,
|
|
14217
14217
|
panOnDrag: I,
|
|
14218
14218
|
zoomOnScroll: B,
|
|
@@ -14285,11 +14285,11 @@ var Yo;
|
|
|
14285
14285
|
(function(e) {
|
|
14286
14286
|
e.Line = "line", e.Handle = "handle";
|
|
14287
14287
|
})(Yo || (Yo = {}));
|
|
14288
|
-
function
|
|
14288
|
+
function OD({ width: e, prevWidth: t, height: n, prevHeight: r, affectsX: o, affectsY: s }) {
|
|
14289
14289
|
const i = e - t, a = n - r, c = [i > 0 ? 1 : i < 0 ? -1 : 0, a > 0 ? 1 : a < 0 ? -1 : 0];
|
|
14290
14290
|
return i && o && (c[0] = c[0] * -1), a && s && (c[1] = c[1] * -1), c;
|
|
14291
14291
|
}
|
|
14292
|
-
function
|
|
14292
|
+
function jD(e) {
|
|
14293
14293
|
const t = e.includes("right") || e.includes("left"), n = e.includes("bottom") || e.includes("top"), r = e.includes("left"), o = e.includes("top");
|
|
14294
14294
|
return {
|
|
14295
14295
|
isHorizontal: t,
|
|
@@ -14310,7 +14310,7 @@ function mi(e, t, n) {
|
|
|
14310
14310
|
function jv(e, t) {
|
|
14311
14311
|
return e ? !t : t;
|
|
14312
14312
|
}
|
|
14313
|
-
function
|
|
14313
|
+
function DD(e, t, n, r, o, s, i, a) {
|
|
14314
14314
|
let { affectsX: c, affectsY: l } = t;
|
|
14315
14315
|
const { isHorizontal: u, isVertical: d } = t, f = u && d, { xSnapped: h, ySnapped: p } = n, { minWidth: m, maxWidth: v, minHeight: y, maxHeight: b } = r, { x: w, y: x, width: N, height: T, aspectRatio: E } = e;
|
|
14316
14316
|
let R = Math.floor(u ? h - e.pointerX : 0), M = Math.floor(d ? p - e.pointerY : 0);
|
|
@@ -14357,30 +14357,30 @@ function D4(e, t, n, r, o, s, i, a) {
|
|
|
14357
14357
|
y: s[1] * M * (l ? -1 : 1) + I
|
|
14358
14358
|
};
|
|
14359
14359
|
}
|
|
14360
|
-
const ME = { width: 0, height: 0, x: 0, y: 0 },
|
|
14360
|
+
const ME = { width: 0, height: 0, x: 0, y: 0 }, LD = {
|
|
14361
14361
|
...ME,
|
|
14362
14362
|
pointerX: 0,
|
|
14363
14363
|
pointerY: 0,
|
|
14364
14364
|
aspectRatio: 1
|
|
14365
14365
|
};
|
|
14366
|
-
function $
|
|
14366
|
+
function $D(e) {
|
|
14367
14367
|
return [
|
|
14368
14368
|
[0, 0],
|
|
14369
14369
|
[e.measured.width, e.measured.height]
|
|
14370
14370
|
];
|
|
14371
14371
|
}
|
|
14372
|
-
function
|
|
14372
|
+
function FD(e, t, n) {
|
|
14373
14373
|
const r = t.position.x + e.position.x, o = t.position.y + e.position.y, s = e.measured.width ?? 0, i = e.measured.height ?? 0, a = n[0] * s, c = n[1] * i;
|
|
14374
14374
|
return [
|
|
14375
14375
|
[r - a, o - c],
|
|
14376
14376
|
[r + s - a, o + i - c]
|
|
14377
14377
|
];
|
|
14378
14378
|
}
|
|
14379
|
-
function
|
|
14379
|
+
function qD({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o }) {
|
|
14380
14380
|
const s = bt(e);
|
|
14381
14381
|
function i({ controlPosition: c, boundaries: l, keepAspectRatio: u, onResizeStart: d, onResize: f, onResizeEnd: h, shouldResize: p }) {
|
|
14382
|
-
let m = { ...ME }, v = { ...
|
|
14383
|
-
const y =
|
|
14382
|
+
let m = { ...ME }, v = { ...LD };
|
|
14383
|
+
const y = jD(c);
|
|
14384
14384
|
let b, w = [], x, N, T;
|
|
14385
14385
|
const E = VS().on("start", (R) => {
|
|
14386
14386
|
const { nodeLookup: M, transform: P, snapGrid: D, snapToGrid: L, nodeOrigin: $ } = n();
|
|
@@ -14397,14 +14397,14 @@ function q4({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o })
|
|
|
14397
14397
|
pointerX: C,
|
|
14398
14398
|
pointerY: O,
|
|
14399
14399
|
aspectRatio: m.width / m.height
|
|
14400
|
-
}, x = void 0, b.parentId && (b.extent === "parent" || b.expandParent) && (x = M.get(b.parentId), N = x && b.extent === "parent" ? $
|
|
14400
|
+
}, x = void 0, b.parentId && (b.extent === "parent" || b.expandParent) && (x = M.get(b.parentId), N = x && b.extent === "parent" ? $D(x) : void 0), w = [], T = void 0;
|
|
14401
14401
|
for (const [S, I] of M)
|
|
14402
14402
|
if (I.parentId === t && (w.push({
|
|
14403
14403
|
id: S,
|
|
14404
14404
|
position: { ...I.position },
|
|
14405
14405
|
extent: I.extent
|
|
14406
14406
|
}), I.extent === "parent" || I.expandParent)) {
|
|
14407
|
-
const A =
|
|
14407
|
+
const A = FD(I, b, I.origin ?? $);
|
|
14408
14408
|
T ? T = [
|
|
14409
14409
|
[Math.min(A[0][0], T[0][0]), Math.min(A[0][1], T[0][1])],
|
|
14410
14410
|
[Math.max(A[1][0], T[1][0]), Math.max(A[1][1], T[1][1])]
|
|
@@ -14415,7 +14415,7 @@ function q4({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o })
|
|
|
14415
14415
|
const { transform: M, snapGrid: P, snapToGrid: D, nodeOrigin: L } = n(), $ = Ko(R.sourceEvent, { transform: M, snapGrid: P, snapToGrid: D }), C = [];
|
|
14416
14416
|
if (!b)
|
|
14417
14417
|
return;
|
|
14418
|
-
const { x: O, y: S, width: I, height: A } = m, k = {}, F = b.origin ?? L, { width: q, height: B, x: Y, y: X } =
|
|
14418
|
+
const { x: O, y: S, width: I, height: A } = m, k = {}, F = b.origin ?? L, { width: q, height: B, x: Y, y: X } = DD(v, y, $, l, u, F, N, T), U = q !== I, Z = B !== A, V = Y !== O && U, z = X !== S && Z;
|
|
14419
14419
|
if (!V && !z && !U && !Z)
|
|
14420
14420
|
return;
|
|
14421
14421
|
if ((V || z || F[0] === 1 || F[1] === 1) && (k.x = V ? Y : m.x, k.y = z ? X : m.y, m.x = k.x, m.y = k.y, w.length > 0)) {
|
|
@@ -14432,7 +14432,7 @@ function q4({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o })
|
|
|
14432
14432
|
const he = F[1] * (k.height ?? 0);
|
|
14433
14433
|
k.y && k.y < he && (m.y = he, v.y = v.y - (k.y - he));
|
|
14434
14434
|
}
|
|
14435
|
-
const oe =
|
|
14435
|
+
const oe = OD({
|
|
14436
14436
|
width: m.width,
|
|
14437
14437
|
prevWidth: I,
|
|
14438
14438
|
height: m.height,
|
|
@@ -14465,7 +14465,7 @@ var Lp = { exports: {} }, Zc = {}, gi = { exports: {} }, Kc = {};
|
|
|
14465
14465
|
* LICENSE file in the root directory of this source tree.
|
|
14466
14466
|
*/
|
|
14467
14467
|
var Dv;
|
|
14468
|
-
function
|
|
14468
|
+
function VD() {
|
|
14469
14469
|
if (Dv) return Kc;
|
|
14470
14470
|
Dv = 1;
|
|
14471
14471
|
var e = Ue;
|
|
@@ -14510,7 +14510,7 @@ var Yc = {};
|
|
|
14510
14510
|
* LICENSE file in the root directory of this source tree.
|
|
14511
14511
|
*/
|
|
14512
14512
|
var Lv;
|
|
14513
|
-
function
|
|
14513
|
+
function BD() {
|
|
14514
14514
|
return Lv || (Lv = 1, process.env.NODE_ENV !== "production" && function() {
|
|
14515
14515
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
14516
14516
|
var e = Ue, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -14582,7 +14582,7 @@ function B4() {
|
|
|
14582
14582
|
}
|
|
14583
14583
|
var $v;
|
|
14584
14584
|
function PE() {
|
|
14585
|
-
return $v || ($v = 1, process.env.NODE_ENV === "production" ? gi.exports =
|
|
14585
|
+
return $v || ($v = 1, process.env.NODE_ENV === "production" ? gi.exports = VD() : gi.exports = BD()), gi.exports;
|
|
14586
14586
|
}
|
|
14587
14587
|
/**
|
|
14588
14588
|
* @license React
|
|
@@ -14594,7 +14594,7 @@ function PE() {
|
|
|
14594
14594
|
* LICENSE file in the root directory of this source tree.
|
|
14595
14595
|
*/
|
|
14596
14596
|
var Fv;
|
|
14597
|
-
function
|
|
14597
|
+
function zD() {
|
|
14598
14598
|
if (Fv) return Zc;
|
|
14599
14599
|
Fv = 1;
|
|
14600
14600
|
var e = Ue, t = PE();
|
|
@@ -14645,7 +14645,7 @@ var Xc = {};
|
|
|
14645
14645
|
* LICENSE file in the root directory of this source tree.
|
|
14646
14646
|
*/
|
|
14647
14647
|
var qv;
|
|
14648
|
-
function
|
|
14648
|
+
function HD() {
|
|
14649
14649
|
return qv || (qv = 1, process.env.NODE_ENV !== "production" && function() {
|
|
14650
14650
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
14651
14651
|
var e = Ue, t = PE();
|
|
@@ -14690,9 +14690,9 @@ function H4() {
|
|
|
14690
14690
|
Xc.useSyncExternalStoreWithSelector = l, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
14691
14691
|
}()), Xc;
|
|
14692
14692
|
}
|
|
14693
|
-
process.env.NODE_ENV === "production" ? Lp.exports =
|
|
14694
|
-
var
|
|
14695
|
-
const
|
|
14693
|
+
process.env.NODE_ENV === "production" ? Lp.exports = zD() : Lp.exports = HD();
|
|
14694
|
+
var WD = Lp.exports;
|
|
14695
|
+
const GD = /* @__PURE__ */ _1(WD), UD = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Vv = (e) => {
|
|
14696
14696
|
let t;
|
|
14697
14697
|
const n = /* @__PURE__ */ new Set(), r = (u, d) => {
|
|
14698
14698
|
const f = typeof u == "function" ? u(t) : u;
|
|
@@ -14701,26 +14701,26 @@ const G4 = /* @__PURE__ */ _1(W4), U4 = { BASE_URL: "/", DEV: !1, MODE: "product
|
|
|
14701
14701
|
t = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, t, f), n.forEach((p) => p(t, h));
|
|
14702
14702
|
}
|
|
14703
14703
|
}, o = () => t, c = { setState: r, getState: o, getInitialState: () => l, subscribe: (u) => (n.add(u), () => n.delete(u)), destroy: () => {
|
|
14704
|
-
(
|
|
14704
|
+
(UD ? "production" : void 0) !== "production" && console.warn(
|
|
14705
14705
|
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
14706
14706
|
), n.clear();
|
|
14707
14707
|
} }, l = t = e(r, o, c);
|
|
14708
14708
|
return c;
|
|
14709
|
-
},
|
|
14710
|
-
function OE(e, t =
|
|
14711
|
-
const r =
|
|
14709
|
+
}, ZD = (e) => e ? Vv(e) : Vv, { useDebugValue: KD } = Ue, { useSyncExternalStoreWithSelector: YD } = GD, XD = (e) => e;
|
|
14710
|
+
function OE(e, t = XD, n) {
|
|
14711
|
+
const r = YD(
|
|
14712
14712
|
e.subscribe,
|
|
14713
14713
|
e.getState,
|
|
14714
14714
|
e.getServerState || e.getInitialState,
|
|
14715
14715
|
t,
|
|
14716
14716
|
n
|
|
14717
14717
|
);
|
|
14718
|
-
return
|
|
14718
|
+
return KD(r), r;
|
|
14719
14719
|
}
|
|
14720
14720
|
const Bv = (e, t) => {
|
|
14721
|
-
const n =
|
|
14721
|
+
const n = ZD(e), r = (o, s = t) => OE(n, o, s);
|
|
14722
14722
|
return Object.assign(r, n), r;
|
|
14723
|
-
},
|
|
14723
|
+
}, JD = (e, t) => e ? Bv(e, t) : Bv;
|
|
14724
14724
|
function Ze(e, t) {
|
|
14725
14725
|
if (Object.is(e, t))
|
|
14726
14726
|
return !0;
|
|
@@ -14748,7 +14748,7 @@ function Ze(e, t) {
|
|
|
14748
14748
|
return !1;
|
|
14749
14749
|
return !0;
|
|
14750
14750
|
}
|
|
14751
|
-
const za = fo(null),
|
|
14751
|
+
const za = fo(null), QD = za.Provider, jE = kt.error001();
|
|
14752
14752
|
function Ie(e, t) {
|
|
14753
14753
|
const n = rr(za);
|
|
14754
14754
|
if (n === null)
|
|
@@ -15126,7 +15126,7 @@ function Xv(e) {
|
|
|
15126
15126
|
type: "remove"
|
|
15127
15127
|
};
|
|
15128
15128
|
}
|
|
15129
|
-
const Jv = (e) =>
|
|
15129
|
+
const Jv = (e) => J4(e), x9 = (e) => iE(e);
|
|
15130
15130
|
function BE(e) {
|
|
15131
15131
|
return Rt(e);
|
|
15132
15132
|
}
|
|
@@ -15248,7 +15248,7 @@ function ar() {
|
|
|
15248
15248
|
};
|
|
15249
15249
|
},
|
|
15250
15250
|
deleteElements: async ({ nodes: d = [], edges: f = [] }) => {
|
|
15251
|
-
const { nodes: h, edges: p, onNodesDelete: m, onEdgesDelete: v, triggerNodeChanges: y, triggerEdgeChanges: b, onDelete: w, onBeforeDelete: x } = t.getState(), { nodes: N, edges: T } = await
|
|
15251
|
+
const { nodes: h, edges: p, onNodesDelete: m, onEdgesDelete: v, triggerNodeChanges: y, triggerEdgeChanges: b, onDelete: w, onBeforeDelete: x } = t.getState(), { nodes: N, edges: T } = await tD({
|
|
15252
15252
|
nodesToRemove: d,
|
|
15253
15253
|
edgesToRemove: f,
|
|
15254
15254
|
nodes: h,
|
|
@@ -15298,7 +15298,7 @@ function ar() {
|
|
|
15298
15298
|
},
|
|
15299
15299
|
getNodesBounds: (d) => {
|
|
15300
15300
|
const { nodeLookup: f, nodeOrigin: h } = t.getState();
|
|
15301
|
-
return
|
|
15301
|
+
return Q4(d, { nodeLookup: f, nodeOrigin: h });
|
|
15302
15302
|
},
|
|
15303
15303
|
getHandleConnections: ({ type: d, id: f, nodeId: h }) => Array.from(t.getState().connectionLookup.get(`${h}-${d}-${f ?? null}`)?.values() ?? [])
|
|
15304
15304
|
};
|
|
@@ -15357,7 +15357,7 @@ function I9({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
15357
15357
|
}, [y, b]);
|
|
15358
15358
|
return de(() => {
|
|
15359
15359
|
if (N.current) {
|
|
15360
|
-
M.current =
|
|
15360
|
+
M.current = PD({
|
|
15361
15361
|
domNode: N.current,
|
|
15362
15362
|
minZoom: u,
|
|
15363
15363
|
maxZoom: d,
|
|
@@ -15530,7 +15530,7 @@ function $p({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
|
|
|
15530
15530
|
function HE({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: r, nodeId: o, isSelectable: s, nodeClickDistance: i }) {
|
|
15531
15531
|
const a = ze(), [c, l] = ke(!1), u = ue();
|
|
15532
15532
|
return de(() => {
|
|
15533
|
-
u.current =
|
|
15533
|
+
u.current = xD({
|
|
15534
15534
|
getStoreItems: () => a.getState(),
|
|
15535
15535
|
onNodeMouseDown: (d) => {
|
|
15536
15536
|
$p({
|
|
@@ -15924,7 +15924,7 @@ function rL(e) {
|
|
|
15924
15924
|
if (n.width && n.height)
|
|
15925
15925
|
for (const o of n.edges) {
|
|
15926
15926
|
const s = n.nodeLookup.get(o.source), i = n.nodeLookup.get(o.target);
|
|
15927
|
-
s && i &&
|
|
15927
|
+
s && i && oD({
|
|
15928
15928
|
sourceNode: s,
|
|
15929
15929
|
targetNode: i,
|
|
15930
15930
|
width: n.width,
|
|
@@ -15954,7 +15954,7 @@ const aL = ({ id: e, type: t, color: n, width: r = 12.5, height: o = 12.5, marke
|
|
|
15954
15954
|
const c = iL(t);
|
|
15955
15955
|
return c ? g.jsx("marker", { className: "react-flow__arrowhead", id: e, markerWidth: `${r}`, markerHeight: `${o}`, viewBox: "-10 -10 20 20", markerUnits: s, orient: a, refX: "0", refY: "0", children: g.jsx(c, { color: n, strokeWidth: i }) }) : null;
|
|
15956
15956
|
}, ZE = ({ defaultColor: e, rfId: t }) => {
|
|
15957
|
-
const n = Ie((s) => s.edges), r = Ie((s) => s.defaultEdgeOptions), o = ye(() =>
|
|
15957
|
+
const n = Ie((s) => s.edges), r = Ie((s) => s.defaultEdgeOptions), o = ye(() => dD(n, {
|
|
15958
15958
|
id: t,
|
|
15959
15959
|
defaultColor: e,
|
|
15960
15960
|
defaultMarkerStart: r?.markerStart,
|
|
@@ -16151,7 +16151,7 @@ function vL({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
16151
16151
|
zIndex: w.zIndex,
|
|
16152
16152
|
...iy
|
|
16153
16153
|
};
|
|
16154
|
-
const pe =
|
|
16154
|
+
const pe = uD({
|
|
16155
16155
|
id: e,
|
|
16156
16156
|
sourceNode: he,
|
|
16157
16157
|
targetNode: Te,
|
|
@@ -16161,7 +16161,7 @@ function vL({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
16161
16161
|
onError: y
|
|
16162
16162
|
});
|
|
16163
16163
|
return {
|
|
16164
|
-
zIndex:
|
|
16164
|
+
zIndex: rD({
|
|
16165
16165
|
selected: w.selected,
|
|
16166
16166
|
zIndex: w.zIndex,
|
|
16167
16167
|
sourceNode: he,
|
|
@@ -16396,7 +16396,7 @@ const ML = rt(lN), uy = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r,
|
|
|
16396
16396
|
lib: "react",
|
|
16397
16397
|
debug: !1
|
|
16398
16398
|
};
|
|
16399
|
-
}, PL = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: s, fitView: i, nodeOrigin: a, nodeExtent: c }) =>
|
|
16399
|
+
}, PL = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: s, fitView: i, nodeOrigin: a, nodeExtent: c }) => JD((l, u) => ({
|
|
16400
16400
|
...uy({ nodes: e, edges: t, width: o, height: s, fitView: i, nodeOrigin: a, nodeExtent: c, defaultNodes: n, defaultEdges: r }),
|
|
16401
16401
|
setNodes: (d) => {
|
|
16402
16402
|
const { nodeLookup: f, parentLookup: h, nodeOrigin: p, elevateNodesOnSelect: m } = u();
|
|
@@ -16425,9 +16425,9 @@ const ML = rt(lN), uy = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r,
|
|
|
16425
16425
|
// changes its dimensions, this function is called to measure the
|
|
16426
16426
|
// new dimensions and update the nodes.
|
|
16427
16427
|
updateNodeInternals: (d, f = { triggerFitView: !0 }) => {
|
|
16428
|
-
const { triggerNodeChanges: h, nodeLookup: p, parentLookup: m, fitViewOnInit: v, fitViewDone: y, fitViewOnInitOptions: b, domNode: w, nodeOrigin: x, nodeExtent: N, debug: T, fitViewSync: E } = u(), { changes: R, updatedInternals: M } =
|
|
16428
|
+
const { triggerNodeChanges: h, nodeLookup: p, parentLookup: m, fitViewOnInit: v, fitViewDone: y, fitViewOnInitOptions: b, domNode: w, nodeOrigin: x, nodeExtent: N, debug: T, fitViewSync: E } = u(), { changes: R, updatedInternals: M } = gD(d, p, m, w, x, N);
|
|
16429
16429
|
if (M) {
|
|
16430
|
-
if (
|
|
16430
|
+
if (hD(p, m, { nodeOrigin: x, nodeExtent: N }), f.triggerFitView) {
|
|
16431
16431
|
let P = y;
|
|
16432
16432
|
!y && v && (P = E({
|
|
16433
16433
|
...b,
|
|
@@ -16534,7 +16534,7 @@ const ML = rt(lN), uy = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r,
|
|
|
16534
16534
|
},
|
|
16535
16535
|
panBy: (d) => {
|
|
16536
16536
|
const { transform: f, width: h, height: p, panZoom: m, translateExtent: v } = u();
|
|
16537
|
-
return
|
|
16537
|
+
return vD({ delta: d, panZoom: m, transform: f, translateExtent: v, width: h, height: p });
|
|
16538
16538
|
},
|
|
16539
16539
|
fitView: (d) => {
|
|
16540
16540
|
const { panZoom: f, width: h, height: p, minZoom: m, maxZoom: v, nodeLookup: y } = u();
|
|
@@ -16588,7 +16588,7 @@ function uN({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: r
|
|
|
16588
16588
|
nodeOrigin: a,
|
|
16589
16589
|
nodeExtent: c
|
|
16590
16590
|
}));
|
|
16591
|
-
return g.jsx(
|
|
16591
|
+
return g.jsx(QD, { value: u, children: g.jsx(_9, { children: l }) });
|
|
16592
16592
|
}
|
|
16593
16593
|
function OL({ children: e, nodes: t, edges: n, defaultNodes: r, defaultEdges: o, width: s, height: i, fitView: a, nodeOrigin: c, nodeExtent: l }) {
|
|
16594
16594
|
return rr(za) ? g.jsx(g.Fragment, { children: e }) : g.jsx(uN, { initialNodes: t, initialEdges: n, defaultNodes: r, defaultEdges: o, initialWidth: s, initialHeight: i, fitView: a, nodeOrigin: c, nodeExtent: l, children: e });
|
|
@@ -16618,7 +16618,7 @@ function qL(e) {
|
|
|
16618
16618
|
return [t, n, r];
|
|
16619
16619
|
}
|
|
16620
16620
|
function dN({ type: e, id: t = null, nodeId: n, onConnect: r, onDisconnect: o }) {
|
|
16621
|
-
const s = zm(), i = n ?? s, a = ue(null), c = Ie((l) => l.connectionLookup.get(`${i}-${e}-${t}`),
|
|
16621
|
+
const s = zm(), i = n ?? s, a = ue(null), c = Ie((l) => l.connectionLookup.get(`${i}-${e}-${t}`), X4);
|
|
16622
16622
|
return de(() => {
|
|
16623
16623
|
if (a.current && a.current !== c) {
|
|
16624
16624
|
const l = c ?? /* @__PURE__ */ new Map();
|
|
@@ -16801,7 +16801,7 @@ function pN({
|
|
|
16801
16801
|
const N = ze(), T = ue(null), { boundingRect: E, viewBB: R, rfId: M, panZoom: P, translateExtent: D, flowWidth: L, flowHeight: $ } = Ie(i6, Ze), C = e?.width ?? o6, O = e?.height ?? s6, S = E.width / C, I = E.height / O, A = Math.max(S, I), k = A * C, F = A * O, q = x * A, B = E.x - (k - E.width) / 2 - q, Y = E.y - (F - E.height) / 2 - q, X = k + q * 2, U = F + q * 2, Z = `${a6}-${M}`, V = ue(0), z = ue();
|
|
16802
16802
|
V.current = A, de(() => {
|
|
16803
16803
|
if (T.current && P)
|
|
16804
|
-
return z.current =
|
|
16804
|
+
return z.current = ED({
|
|
16805
16805
|
domNode: T.current,
|
|
16806
16806
|
panZoom: P,
|
|
16807
16807
|
getTransform: () => N.getState().transform,
|
|
@@ -16845,7 +16845,7 @@ function c6({ nodeId: e, position: t, variant: n = Yo.Handle, className: r, styl
|
|
|
16845
16845
|
const v = zm(), y = typeof e == "string" ? e : v, b = ze(), w = ue(null), x = n === Yo.Line ? "right" : "bottom-right", N = t ?? x, T = ue(null);
|
|
16846
16846
|
de(() => {
|
|
16847
16847
|
if (!(!w.current || !y))
|
|
16848
|
-
return T.current || (T.current =
|
|
16848
|
+
return T.current || (T.current = qD({
|
|
16849
16849
|
domNode: w.current,
|
|
16850
16850
|
nodeId: y,
|
|
16851
16851
|
getStoreItems: () => {
|