@funcd-dev/ui 0.3.1 → 0.4.0
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 +896 -831
- package/dist/index.umd.js +2 -2
- package/dist/molecules/data-grid/hm/progress-cell.d.ts +8 -0
- package/dist/molecules/data-grid/hm/use-data-gri-parser.hook.d.ts +110 -22
- package/dist/molecules/data-grid/index.d.ts +1 -0
- package/dist/molecules/index.d.ts +1 -0
- package/dist/molecules/stat-card/index.d.ts +1 -0
- package/dist/molecules/stat-card/stat-card.d.ts +11 -0
- package/dist/types/object-utils.d.ts +5 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -25,8 +25,8 @@ var wt = (e, t) => {
|
|
|
25
25
|
}, Tt = (e, t, n = {}, r = 0) => {
|
|
26
26
|
if (r += 1, r > 5) throw Error("object is too deep, maximum authorized level is 5");
|
|
27
27
|
for (let i of Object.keys(e)) {
|
|
28
|
-
let a = t ? `${t}.${i}` : i;
|
|
29
|
-
|
|
28
|
+
let a = t ? `${t}.${i}` : i, o = e[i];
|
|
29
|
+
o !== null && typeof e[i] == "object" && !Array.isArray(e[i]) && !(o instanceof Date) ? Tt(e[i], a, n, r) : n[a] = e[i];
|
|
30
30
|
}
|
|
31
31
|
return n;
|
|
32
32
|
}, Et = (e) => e.data !== void 0, Dt = (e) => ({
|
|
@@ -1440,20 +1440,60 @@ var Fn = {
|
|
|
1440
1440
|
children: n
|
|
1441
1441
|
})] })] })
|
|
1442
1442
|
});
|
|
1443
|
+
}, Jn = {
|
|
1444
|
+
root: "_root_1ogkv_2",
|
|
1445
|
+
value: "_value_1ogkv_12"
|
|
1446
|
+
}, Yn = (e) => {
|
|
1447
|
+
let { label: t, value: n, hint: i, color: a = "primary", icon: o, ...s } = e;
|
|
1448
|
+
return /* @__PURE__ */ U(r, {
|
|
1449
|
+
p: "md",
|
|
1450
|
+
className: Jn.root,
|
|
1451
|
+
...s,
|
|
1452
|
+
children: [
|
|
1453
|
+
/* @__PURE__ */ U(p, {
|
|
1454
|
+
justify: "space-between",
|
|
1455
|
+
wrap: "nowrap",
|
|
1456
|
+
gap: "xs",
|
|
1457
|
+
children: [/* @__PURE__ */ H(O, {
|
|
1458
|
+
c: "dimmed",
|
|
1459
|
+
fw: 700,
|
|
1460
|
+
size: "xs",
|
|
1461
|
+
tt: "uppercase",
|
|
1462
|
+
children: t
|
|
1463
|
+
}), o && /* @__PURE__ */ H(oe, {
|
|
1464
|
+
variant: "light",
|
|
1465
|
+
color: a,
|
|
1466
|
+
size: "md",
|
|
1467
|
+
radius: "md",
|
|
1468
|
+
children: o
|
|
1469
|
+
})]
|
|
1470
|
+
}),
|
|
1471
|
+
/* @__PURE__ */ H(O, {
|
|
1472
|
+
className: Jn.value,
|
|
1473
|
+
fw: 700,
|
|
1474
|
+
children: n
|
|
1475
|
+
}),
|
|
1476
|
+
i && /* @__PURE__ */ H(O, {
|
|
1477
|
+
c: "dimmed",
|
|
1478
|
+
size: "sm",
|
|
1479
|
+
children: i
|
|
1480
|
+
})
|
|
1481
|
+
]
|
|
1482
|
+
});
|
|
1443
1483
|
};
|
|
1444
1484
|
//#endregion
|
|
1445
1485
|
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
1446
|
-
function
|
|
1486
|
+
function Xn(e) {
|
|
1447
1487
|
var t, n, r = "";
|
|
1448
1488
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1449
1489
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1450
1490
|
var i = e.length;
|
|
1451
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
1491
|
+
for (t = 0; t < i; t++) e[t] && (n = Xn(e[t])) && (r && (r += " "), r += n);
|
|
1452
1492
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
1453
1493
|
return r;
|
|
1454
1494
|
}
|
|
1455
|
-
function
|
|
1456
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
1495
|
+
function Zn() {
|
|
1496
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Xn(e)) && (r && (r += " "), r += t);
|
|
1457
1497
|
return r;
|
|
1458
1498
|
}
|
|
1459
1499
|
//#endregion
|
|
@@ -1462,16 +1502,16 @@ function X(e, t, n) {
|
|
|
1462
1502
|
let r = typeof e.colSpan == "function" ? e.colSpan(n) : 1;
|
|
1463
1503
|
if (Number.isInteger(r) && r > 1 && (!e.frozen || e.idx + r - 1 <= t)) return r;
|
|
1464
1504
|
}
|
|
1465
|
-
function
|
|
1505
|
+
function Qn(e) {
|
|
1466
1506
|
e.stopPropagation();
|
|
1467
1507
|
}
|
|
1468
|
-
function
|
|
1508
|
+
function $n(e) {
|
|
1469
1509
|
e?.scrollIntoView({
|
|
1470
1510
|
inline: "nearest",
|
|
1471
1511
|
block: "nearest"
|
|
1472
1512
|
});
|
|
1473
1513
|
}
|
|
1474
|
-
function
|
|
1514
|
+
function er(e) {
|
|
1475
1515
|
let t = !1, n = {
|
|
1476
1516
|
...e,
|
|
1477
1517
|
preventGridDefault() {
|
|
@@ -1483,20 +1523,20 @@ function Qn(e) {
|
|
|
1483
1523
|
};
|
|
1484
1524
|
return Object.setPrototypeOf(n, Object.getPrototypeOf(e)), n;
|
|
1485
1525
|
}
|
|
1486
|
-
var
|
|
1487
|
-
function
|
|
1526
|
+
var tr = /* @__PURE__ */ new Set(/* @__PURE__ */ "Unidentified.Alt.AltGraph.CapsLock.Control.Fn.FnLock.Meta.NumLock.ScrollLock.Shift.Tab.ArrowDown.ArrowLeft.ArrowRight.ArrowUp.End.Home.PageDown.PageUp.Insert.ContextMenu.Escape.Pause.Play.PrintScreen.F1.F3.F4.F5.F6.F7.F8.F9.F10.F11.F12".split("."));
|
|
1527
|
+
function nr(e) {
|
|
1488
1528
|
return (e.ctrlKey || e.metaKey) && e.key !== "Control";
|
|
1489
1529
|
}
|
|
1490
|
-
function
|
|
1491
|
-
return
|
|
1530
|
+
function rr(e) {
|
|
1531
|
+
return nr(e) && e.keyCode !== 86 ? !1 : !tr.has(e.key);
|
|
1492
1532
|
}
|
|
1493
|
-
function
|
|
1533
|
+
function ir({ key: e, target: t }) {
|
|
1494
1534
|
return e === "Tab" && (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || t instanceof HTMLSelectElement) && t.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length === 1;
|
|
1495
1535
|
}
|
|
1496
|
-
var
|
|
1497
|
-
function
|
|
1536
|
+
var ar = "mlln6zg7-0-0-beta-46";
|
|
1537
|
+
function or(e) {
|
|
1498
1538
|
return e.map(({ key: e, idx: t, minWidth: n, maxWidth: r }) => /*#__PURE__*/ H("div", {
|
|
1499
|
-
className:
|
|
1539
|
+
className: ar,
|
|
1500
1540
|
style: {
|
|
1501
1541
|
gridColumnStart: t + 1,
|
|
1502
1542
|
minWidth: n,
|
|
@@ -1505,14 +1545,14 @@ function ir(e) {
|
|
|
1505
1545
|
"data-measuring-cell-key": e
|
|
1506
1546
|
}, e));
|
|
1507
1547
|
}
|
|
1508
|
-
function
|
|
1548
|
+
function sr({ selectedPosition: e, columns: t, rows: n }) {
|
|
1509
1549
|
let r = t[e.idx], i = n[e.rowIdx];
|
|
1510
|
-
return
|
|
1550
|
+
return cr(r, i);
|
|
1511
1551
|
}
|
|
1512
|
-
function
|
|
1552
|
+
function cr(e, t) {
|
|
1513
1553
|
return e.renderEditCell != null && (typeof e.editable == "function" ? e.editable(t) : e.editable) !== !1;
|
|
1514
1554
|
}
|
|
1515
|
-
function
|
|
1555
|
+
function lr({ rows: e, topSummaryRows: t, bottomSummaryRows: n, rowIdx: r, mainHeaderRowIdx: i, lastFrozenColumnIndex: a, column: o }) {
|
|
1516
1556
|
let s = t?.length ?? 0;
|
|
1517
1557
|
if (r === i) return X(o, a, { type: "HEADER" });
|
|
1518
1558
|
if (t && r > i && r <= s + i) return X(o, a, {
|
|
@@ -1531,12 +1571,12 @@ function sr({ rows: e, topSummaryRows: t, bottomSummaryRows: n, rowIdx: r, mainH
|
|
|
1531
1571
|
row: n[r - e.length]
|
|
1532
1572
|
});
|
|
1533
1573
|
}
|
|
1534
|
-
function
|
|
1574
|
+
function ur({ moveUp: e, moveNext: t, cellNavigationMode: n, columns: r, colSpanColumns: i, rows: a, topSummaryRows: o, bottomSummaryRows: s, minRowIdx: c, mainHeaderRowIdx: l, maxRowIdx: u, currentPosition: { idx: d, rowIdx: f }, nextPosition: p, lastFrozenColumnIndex: m, isCellWithinBounds: h }) {
|
|
1535
1575
|
let { idx: g, rowIdx: _ } = p, v = r.length, y = (e) => {
|
|
1536
1576
|
for (let t of i) {
|
|
1537
1577
|
let n = t.idx;
|
|
1538
1578
|
if (n > g) break;
|
|
1539
|
-
let r =
|
|
1579
|
+
let r = lr({
|
|
1540
1580
|
rows: a,
|
|
1541
1581
|
topSummaryRows: o,
|
|
1542
1582
|
bottomSummaryRows: s,
|
|
@@ -1586,14 +1626,14 @@ function cr({ moveUp: e, moveNext: t, cellNavigationMode: n, columns: r, colSpan
|
|
|
1586
1626
|
rowIdx: _
|
|
1587
1627
|
};
|
|
1588
1628
|
}
|
|
1589
|
-
function
|
|
1629
|
+
function dr({ maxColIdx: e, minRowIdx: t, maxRowIdx: n, selectedPosition: { rowIdx: r, idx: i }, shiftKey: a }) {
|
|
1590
1630
|
return a ? i === 0 && r === t : i === e && r === n;
|
|
1591
1631
|
}
|
|
1592
|
-
var
|
|
1593
|
-
function
|
|
1632
|
+
var fr = "rdg-cell cj343x07-0-0-beta-46", pr = "rdg-cell-frozen csofj7r7-0-0-beta-46";
|
|
1633
|
+
function mr(e) {
|
|
1594
1634
|
return { "--rdg-grid-row-start": e };
|
|
1595
1635
|
}
|
|
1596
|
-
function
|
|
1636
|
+
function hr(e, t, n) {
|
|
1597
1637
|
let r = t + 1, i = `calc(${n - 1} * var(--rdg-header-row-height))`;
|
|
1598
1638
|
return e.parent === void 0 ? {
|
|
1599
1639
|
insetBlockStart: 0,
|
|
@@ -1607,7 +1647,7 @@ function pr(e, t, n) {
|
|
|
1607
1647
|
paddingBlockStart: i
|
|
1608
1648
|
};
|
|
1609
1649
|
}
|
|
1610
|
-
function
|
|
1650
|
+
function gr(e, t = 1) {
|
|
1611
1651
|
let n = e.idx + 1;
|
|
1612
1652
|
return {
|
|
1613
1653
|
gridColumnStart: n,
|
|
@@ -1615,47 +1655,47 @@ function mr(e, t = 1) {
|
|
|
1615
1655
|
insetInlineStart: e.frozen ? `var(--rdg-frozen-left-${e.idx})` : void 0
|
|
1616
1656
|
};
|
|
1617
1657
|
}
|
|
1618
|
-
function
|
|
1619
|
-
return
|
|
1658
|
+
function _r(e, ...t) {
|
|
1659
|
+
return Zn(fr, ...t, e.frozen && pr);
|
|
1620
1660
|
}
|
|
1621
|
-
var { min:
|
|
1622
|
-
function
|
|
1661
|
+
var { min: vr, max: yr, floor: br, sign: xr, abs: Sr } = Math;
|
|
1662
|
+
function Cr(e) {
|
|
1623
1663
|
if (typeof e != "function") throw Error("Please specify the rowKeyGetter prop to use selection");
|
|
1624
1664
|
}
|
|
1625
|
-
function
|
|
1626
|
-
return e =
|
|
1665
|
+
function wr(e, { minWidth: t, maxWidth: n }) {
|
|
1666
|
+
return e = yr(e, t), typeof n == "number" && n >= t ? vr(e, n) : e;
|
|
1627
1667
|
}
|
|
1628
|
-
function
|
|
1668
|
+
function Tr(e, t) {
|
|
1629
1669
|
return e.parent === void 0 ? t : e.level - e.parent.level;
|
|
1630
1670
|
}
|
|
1631
|
-
var
|
|
1632
|
-
function
|
|
1671
|
+
var Er = "c1bn88vv7-0-0-beta-46", Dr = "rdg-checkbox-input c1qt073l7-0-0-beta-46";
|
|
1672
|
+
function Or({ onChange: e, ...t }) {
|
|
1633
1673
|
function n(t) {
|
|
1634
1674
|
e(t.target.checked, t.nativeEvent.shiftKey);
|
|
1635
1675
|
}
|
|
1636
1676
|
return /*#__PURE__*/ H("div", {
|
|
1637
|
-
className:
|
|
1677
|
+
className: Er,
|
|
1638
1678
|
children: /*#__PURE__*/ H("input", {
|
|
1639
1679
|
type: "checkbox",
|
|
1640
1680
|
...t,
|
|
1641
|
-
className:
|
|
1681
|
+
className: Dr,
|
|
1642
1682
|
onChange: n
|
|
1643
1683
|
})
|
|
1644
1684
|
});
|
|
1645
1685
|
}
|
|
1646
|
-
function
|
|
1686
|
+
function kr(e) {
|
|
1647
1687
|
try {
|
|
1648
1688
|
return e.row[e.column.key];
|
|
1649
1689
|
} catch {
|
|
1650
1690
|
return null;
|
|
1651
1691
|
}
|
|
1652
1692
|
}
|
|
1653
|
-
var
|
|
1654
|
-
function
|
|
1655
|
-
return _e(
|
|
1693
|
+
var Ar = /*#__PURE__*/ pe(void 0), jr = Ar.Provider;
|
|
1694
|
+
function Mr() {
|
|
1695
|
+
return _e(Ar);
|
|
1656
1696
|
}
|
|
1657
|
-
function
|
|
1658
|
-
let o =
|
|
1697
|
+
function Nr({ value: e, tabIndex: t, disabled: n, onChange: r, "aria-label": i, "aria-labelledby": a }) {
|
|
1698
|
+
let o = Mr().renderCheckbox;
|
|
1659
1699
|
return o({
|
|
1660
1700
|
"aria-label": i,
|
|
1661
1701
|
"aria-labelledby": a,
|
|
@@ -1665,16 +1705,16 @@ function jr({ value: e, tabIndex: t, disabled: n, onChange: r, "aria-label": i,
|
|
|
1665
1705
|
onChange: r
|
|
1666
1706
|
});
|
|
1667
1707
|
}
|
|
1668
|
-
var
|
|
1669
|
-
function
|
|
1670
|
-
let e = _e(
|
|
1708
|
+
var Pr = /*#__PURE__*/ pe(void 0), Fr = Pr.Provider, Ir = /*#__PURE__*/ pe(void 0), Lr = Ir.Provider;
|
|
1709
|
+
function Rr() {
|
|
1710
|
+
let e = _e(Pr), t = _e(Ir);
|
|
1671
1711
|
if (e === void 0 || t === void 0) throw Error("useRowSelection must be used within DataGrid cells");
|
|
1672
1712
|
return [e, t];
|
|
1673
1713
|
}
|
|
1674
|
-
var
|
|
1675
|
-
function
|
|
1676
|
-
let [t, n] =
|
|
1677
|
-
return /*#__PURE__*/ H(
|
|
1714
|
+
var zr = "select-row";
|
|
1715
|
+
function Br(e) {
|
|
1716
|
+
let [t, n] = Rr();
|
|
1717
|
+
return /*#__PURE__*/ H(Nr, {
|
|
1678
1718
|
"aria-label": "Select All",
|
|
1679
1719
|
tabIndex: e.tabIndex,
|
|
1680
1720
|
value: t,
|
|
@@ -1686,9 +1726,9 @@ function Rr(e) {
|
|
|
1686
1726
|
}
|
|
1687
1727
|
});
|
|
1688
1728
|
}
|
|
1689
|
-
function
|
|
1690
|
-
let [t, n] =
|
|
1691
|
-
return /*#__PURE__*/ H(
|
|
1729
|
+
function Vr(e) {
|
|
1730
|
+
let [t, n] = Rr();
|
|
1731
|
+
return /*#__PURE__*/ H(Nr, {
|
|
1692
1732
|
"aria-label": "Select",
|
|
1693
1733
|
tabIndex: e.tabIndex,
|
|
1694
1734
|
value: t,
|
|
@@ -1702,9 +1742,9 @@ function zr(e) {
|
|
|
1702
1742
|
}
|
|
1703
1743
|
});
|
|
1704
1744
|
}
|
|
1705
|
-
function
|
|
1706
|
-
let [t, n] =
|
|
1707
|
-
return /*#__PURE__*/ H(
|
|
1745
|
+
function Hr(e) {
|
|
1746
|
+
let [t, n] = Rr();
|
|
1747
|
+
return /*#__PURE__*/ H(Nr, {
|
|
1708
1748
|
"aria-label": "Select Group",
|
|
1709
1749
|
tabIndex: e.tabIndex,
|
|
1710
1750
|
value: t,
|
|
@@ -1718,8 +1758,8 @@ function Br(e) {
|
|
|
1718
1758
|
}
|
|
1719
1759
|
});
|
|
1720
1760
|
}
|
|
1721
|
-
var
|
|
1722
|
-
key:
|
|
1761
|
+
var Ur = {
|
|
1762
|
+
key: zr,
|
|
1723
1763
|
name: "",
|
|
1724
1764
|
width: 35,
|
|
1725
1765
|
minWidth: 35,
|
|
@@ -1728,17 +1768,17 @@ var Vr = {
|
|
|
1728
1768
|
sortable: !1,
|
|
1729
1769
|
frozen: !0,
|
|
1730
1770
|
renderHeaderCell(e) {
|
|
1731
|
-
return /*#__PURE__*/ H(
|
|
1771
|
+
return /*#__PURE__*/ H(Br, { ...e });
|
|
1732
1772
|
},
|
|
1733
1773
|
renderCell(e) {
|
|
1734
|
-
return /*#__PURE__*/ H(
|
|
1774
|
+
return /*#__PURE__*/ H(Vr, { ...e });
|
|
1735
1775
|
},
|
|
1736
1776
|
renderGroupCell(e) {
|
|
1737
|
-
return /*#__PURE__*/ H(
|
|
1777
|
+
return /*#__PURE__*/ H(Hr, { ...e });
|
|
1738
1778
|
}
|
|
1739
|
-
},
|
|
1740
|
-
function
|
|
1741
|
-
let o = t?.width ??
|
|
1779
|
+
}, Wr = "auto", Gr = 50;
|
|
1780
|
+
function Kr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewportWidth: r, scrollLeft: i, enableVirtualization: a }) {
|
|
1781
|
+
let o = t?.width ?? Wr, s = t?.minWidth ?? Gr, c = t?.maxWidth ?? void 0, l = t?.renderCell ?? kr, u = t?.sortable ?? !1, d = t?.resizable ?? !1, f = t?.draggable ?? !1, { columns: p, colSpanColumns: m, lastFrozenColumnIndex: h, headerRowsCount: g } = L(() => {
|
|
1742
1782
|
let t = -1, n = 1, r = [];
|
|
1743
1783
|
i(e, 1);
|
|
1744
1784
|
function i(e, a, p) {
|
|
@@ -1775,7 +1815,7 @@ function Wr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1775
1815
|
r.sort(({ key: e, frozen: t }, { key: n, frozen: r }) => e === "select-row" ? -1 : n === "select-row" ? 1 : t ? r ? 0 : -1 : +!!r);
|
|
1776
1816
|
let a = [];
|
|
1777
1817
|
return r.forEach((e, t) => {
|
|
1778
|
-
e.idx = t,
|
|
1818
|
+
e.idx = t, qr(e, t, 0), e.colSpan != null && a.push(e);
|
|
1779
1819
|
}), {
|
|
1780
1820
|
columns: r,
|
|
1781
1821
|
colSpanColumns: a,
|
|
@@ -1795,7 +1835,7 @@ function Wr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1795
1835
|
let e = /* @__PURE__ */ new Map(), t = 0, r = 0, i = [];
|
|
1796
1836
|
for (let r of p) {
|
|
1797
1837
|
let a = n(r);
|
|
1798
|
-
a = typeof a == "number" ?
|
|
1838
|
+
a = typeof a == "number" ? wr(a, r) : r.minWidth, i.push(`${a}px`), e.set(r, {
|
|
1799
1839
|
width: a,
|
|
1800
1840
|
left: t
|
|
1801
1841
|
}), t += a;
|
|
@@ -1821,7 +1861,7 @@ function Wr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1821
1861
|
h
|
|
1822
1862
|
]), [x, S] = L(() => {
|
|
1823
1863
|
if (!a) return [0, p.length - 1];
|
|
1824
|
-
let e = i + y, t = i + r, n = p.length - 1, o =
|
|
1864
|
+
let e = i + y, t = i + r, n = p.length - 1, o = vr(h + 1, n);
|
|
1825
1865
|
if (e >= t) return [o, o];
|
|
1826
1866
|
let s = o;
|
|
1827
1867
|
for (; s < n;) {
|
|
@@ -1835,7 +1875,7 @@ function Wr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1835
1875
|
if (e + n >= t) break;
|
|
1836
1876
|
c++;
|
|
1837
1877
|
}
|
|
1838
|
-
return [
|
|
1878
|
+
return [yr(o, s - 1), vr(n, c + 1)];
|
|
1839
1879
|
}, [
|
|
1840
1880
|
b,
|
|
1841
1881
|
p,
|
|
@@ -1857,25 +1897,25 @@ function Wr({ rawColumns: e, defaultColumnOptions: t, getColumnWidth: n, viewpor
|
|
|
1857
1897
|
totalFrozenColumnWidth: y
|
|
1858
1898
|
};
|
|
1859
1899
|
}
|
|
1860
|
-
function
|
|
1900
|
+
function qr(e, t, n) {
|
|
1861
1901
|
if (n < e.level && (e.level = n), e.parent !== void 0) {
|
|
1862
1902
|
let { parent: r } = e;
|
|
1863
|
-
r.idx === -1 && (r.idx = t), r.colSpan += 1,
|
|
1903
|
+
r.idx === -1 && (r.idx = t), r.colSpan += 1, qr(r, t, n - 1);
|
|
1864
1904
|
}
|
|
1865
1905
|
}
|
|
1866
|
-
var
|
|
1867
|
-
function
|
|
1906
|
+
var Jr = typeof window > "u" ? I : be;
|
|
1907
|
+
function Yr(e, t, n, r, i, a, o, s, c, l) {
|
|
1868
1908
|
let u = R(i), d = e.length === t.length, f = d && i !== u.current, p = [...n], m = [];
|
|
1869
1909
|
for (let { key: e, idx: n, width: r } of t) typeof r == "string" && (f || !o.has(e)) && !a.has(e) && (p[n] = r, m.push(e));
|
|
1870
1910
|
let h = p.join(" ");
|
|
1871
|
-
|
|
1911
|
+
Jr(() => {
|
|
1872
1912
|
u.current = i, g(m);
|
|
1873
1913
|
});
|
|
1874
1914
|
function g(e) {
|
|
1875
1915
|
e.length !== 0 && c((t) => {
|
|
1876
1916
|
let n = new Map(t), i = !1;
|
|
1877
1917
|
for (let a of e) {
|
|
1878
|
-
let e =
|
|
1918
|
+
let e = Xr(r, a);
|
|
1879
1919
|
i ||= e !== t.get(a), e === void 0 ? n.delete(a) : n.set(a, e);
|
|
1880
1920
|
}
|
|
1881
1921
|
return i ? n : t;
|
|
@@ -1885,7 +1925,7 @@ function qr(e, t, n, r, i, a, o, s, c, l) {
|
|
|
1885
1925
|
let { key: o } = e, c = [...n], u = [];
|
|
1886
1926
|
for (let { key: e, idx: n, width: r } of t) o === e ? c[n] = typeof i == "number" ? `${i}px` : i : d && typeof r == "string" && !a.has(e) && (c[n] = r, u.push(e));
|
|
1887
1927
|
r.current.style.gridTemplateColumns = c.join(" ");
|
|
1888
|
-
let f = typeof i == "number" ? i :
|
|
1928
|
+
let f = typeof i == "number" ? i : Xr(r, o);
|
|
1889
1929
|
at(() => {
|
|
1890
1930
|
s((e) => {
|
|
1891
1931
|
let t = new Map(e);
|
|
@@ -1898,13 +1938,13 @@ function qr(e, t, n, r, i, a, o, s, c, l) {
|
|
|
1898
1938
|
handleColumnResize: _
|
|
1899
1939
|
};
|
|
1900
1940
|
}
|
|
1901
|
-
function
|
|
1941
|
+
function Xr(e, t) {
|
|
1902
1942
|
let n = `[data-measuring-cell-key="${CSS.escape(t)}"]`;
|
|
1903
1943
|
return (e.current?.querySelector(n))?.getBoundingClientRect().width;
|
|
1904
1944
|
}
|
|
1905
|
-
function
|
|
1945
|
+
function Zr() {
|
|
1906
1946
|
let e = R(null), [t, n] = z(1), [r, i] = z(1), [a, o] = z(0);
|
|
1907
|
-
return
|
|
1947
|
+
return Jr(() => {
|
|
1908
1948
|
let { ResizeObserver: t } = window;
|
|
1909
1949
|
if (t == null) return;
|
|
1910
1950
|
let { clientWidth: r, clientHeight: a, offsetWidth: s, offsetHeight: c } = e.current, { width: l, height: u } = e.current.getBoundingClientRect(), d = c - a, f = l - s + r, p = u - d;
|
|
@@ -1935,7 +1975,7 @@ function Z(e) {
|
|
|
1935
1975
|
}, []);
|
|
1936
1976
|
return e && n;
|
|
1937
1977
|
}
|
|
1938
|
-
function
|
|
1978
|
+
function Qr(e) {
|
|
1939
1979
|
let [t, n] = z(!1);
|
|
1940
1980
|
t && !e && n(!1);
|
|
1941
1981
|
function r(e) {
|
|
@@ -1947,7 +1987,7 @@ function Xr(e) {
|
|
|
1947
1987
|
onFocus: e ? r : void 0
|
|
1948
1988
|
};
|
|
1949
1989
|
}
|
|
1950
|
-
function
|
|
1990
|
+
function $r({ columns: e, colSpanColumns: t, rows: n, topSummaryRows: r, bottomSummaryRows: i, colOverscanStartIdx: a, colOverscanEndIdx: o, lastFrozenColumnIndex: s, rowOverscanStartIdx: c, rowOverscanEndIdx: l }) {
|
|
1951
1991
|
let u = L(() => {
|
|
1952
1992
|
if (a === 0) return 0;
|
|
1953
1993
|
let e = a, o = (t, n) => n !== void 0 && t + n > a ? (e = t, !0) : !1;
|
|
@@ -1998,14 +2038,14 @@ function Zr({ columns: e, colSpanColumns: t, rows: n, topSummaryRows: r, bottomS
|
|
|
1998
2038
|
e
|
|
1999
2039
|
]);
|
|
2000
2040
|
}
|
|
2001
|
-
function
|
|
2041
|
+
function ei({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtualization: i }) {
|
|
2002
2042
|
let { totalRowHeight: a, gridTemplateRows: o, getRowTop: s, getRowHeight: c, findRowIdx: l } = L(() => {
|
|
2003
2043
|
if (typeof t == "number") return {
|
|
2004
2044
|
totalRowHeight: t * e.length,
|
|
2005
2045
|
gridTemplateRows: ` repeat(${e.length}, ${t}px)`,
|
|
2006
2046
|
getRowTop: (e) => e * t,
|
|
2007
2047
|
getRowHeight: () => t,
|
|
2008
|
-
findRowIdx: (e) =>
|
|
2048
|
+
findRowIdx: (e) => br(e / t)
|
|
2009
2049
|
};
|
|
2010
2050
|
let n = 0, r = " ", i = e.map((e) => {
|
|
2011
2051
|
let i = t(e), a = {
|
|
@@ -2013,7 +2053,7 @@ function Qr({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtua
|
|
|
2013
2053
|
height: i
|
|
2014
2054
|
};
|
|
2015
2055
|
return r += `${i}px `, n += i, a;
|
|
2016
|
-
}), a = (t) =>
|
|
2056
|
+
}), a = (t) => yr(0, vr(e.length - 1, t));
|
|
2017
2057
|
return {
|
|
2018
2058
|
totalRowHeight: n,
|
|
2019
2059
|
gridTemplateRows: r,
|
|
@@ -2022,7 +2062,7 @@ function Qr({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtua
|
|
|
2022
2062
|
findRowIdx(e) {
|
|
2023
2063
|
let t = 0, n = i.length - 1;
|
|
2024
2064
|
for (; t <= n;) {
|
|
2025
|
-
let r = t +
|
|
2065
|
+
let r = t + br((n - t) / 2), a = i[r].top;
|
|
2026
2066
|
if (a === e) return r;
|
|
2027
2067
|
if (a < e ? t = r + 1 : a > e && (n = r - 1), t > n) return n;
|
|
2028
2068
|
}
|
|
@@ -2032,7 +2072,7 @@ function Qr({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtua
|
|
|
2032
2072
|
}, [t, e]), u = 0, d = e.length - 1;
|
|
2033
2073
|
if (i) {
|
|
2034
2074
|
let t = l(r), i = l(r + n);
|
|
2035
|
-
u =
|
|
2075
|
+
u = yr(0, t - 4), d = vr(e.length - 1, i + 4);
|
|
2036
2076
|
}
|
|
2037
2077
|
return {
|
|
2038
2078
|
rowOverscanStartIdx: u,
|
|
@@ -2044,8 +2084,8 @@ function Qr({ rows: e, rowHeight: t, clientHeight: n, scrollTop: r, enableVirtua
|
|
|
2044
2084
|
findRowIdx: l
|
|
2045
2085
|
};
|
|
2046
2086
|
}
|
|
2047
|
-
var
|
|
2048
|
-
function
|
|
2087
|
+
var ti = "c1w9bbhr7-0-0-beta-46", ni = "c1creorc7-0-0-beta-46", ri = `rdg-cell-drag-handle ${ti}`;
|
|
2088
|
+
function ii({ gridRowStart: e, rows: t, column: n, columnWidth: r, maxColIdx: i, isLastRow: a, selectedPosition: o, latestDraggedOverRowIdx: s, isCellEditable: c, onRowsChange: l, onFill: u, onClick: d, setDragging: f, setDraggedOverRowIdx: p }) {
|
|
2049
2089
|
let { idx: m, rowIdx: h } = o;
|
|
2050
2090
|
function g(e) {
|
|
2051
2091
|
if (e.preventDefault(), e.buttons !== 1) return;
|
|
@@ -2086,7 +2126,7 @@ function ni({ gridRowStart: e, rows: t, column: n, columnWidth: r, maxColIdx: i,
|
|
|
2086
2126
|
let o = n.colSpan?.({
|
|
2087
2127
|
type: "ROW",
|
|
2088
2128
|
row: t[h]
|
|
2089
|
-
}) ?? 1, { insetInlineStart: s, ...c } =
|
|
2129
|
+
}) ?? 1, { insetInlineStart: s, ...c } = gr(n, o), l = "calc(var(--rdg-drag-handle-size) * -0.5 + 1px)", u = n.idx + o - 1 === i;
|
|
2090
2130
|
return {
|
|
2091
2131
|
...c,
|
|
2092
2132
|
gridRowStart: e,
|
|
@@ -2097,14 +2137,14 @@ function ni({ gridRowStart: e, rows: t, column: n, columnWidth: r, maxColIdx: i,
|
|
|
2097
2137
|
}
|
|
2098
2138
|
return /*#__PURE__*/ H("div", {
|
|
2099
2139
|
style: b(),
|
|
2100
|
-
className:
|
|
2140
|
+
className: Zn(ri, n.frozen && ni),
|
|
2101
2141
|
onClick: d,
|
|
2102
2142
|
onMouseDown: g,
|
|
2103
2143
|
onDoubleClick: v
|
|
2104
2144
|
});
|
|
2105
2145
|
}
|
|
2106
|
-
var
|
|
2107
|
-
function
|
|
2146
|
+
var ai = "cis5rrm7-0-0-beta-46";
|
|
2147
|
+
function oi({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEditor: a, onKeyDown: o, navigate: s }) {
|
|
2108
2148
|
let c = R(void 0), l = e.editorOptions?.commitOnOutsideClick !== !1, u = Z(() => {
|
|
2109
2149
|
p(!0, !1);
|
|
2110
2150
|
});
|
|
@@ -2122,7 +2162,7 @@ function ii({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEdi
|
|
|
2122
2162
|
}
|
|
2123
2163
|
function f(t) {
|
|
2124
2164
|
if (o) {
|
|
2125
|
-
let i =
|
|
2165
|
+
let i = er(t);
|
|
2126
2166
|
if (o({
|
|
2127
2167
|
mode: "EDIT",
|
|
2128
2168
|
row: n,
|
|
@@ -2134,7 +2174,7 @@ function ii({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEdi
|
|
|
2134
2174
|
onClose: p
|
|
2135
2175
|
}, i), i.isGridDefaultPrevented()) return;
|
|
2136
2176
|
}
|
|
2137
|
-
t.key === "Escape" ? p() : t.key === "Enter" ? p(!0) :
|
|
2177
|
+
t.key === "Escape" ? p() : t.key === "Enter" ? p(!0) : ir(t) && s(t);
|
|
2138
2178
|
}
|
|
2139
2179
|
function p(e = !1, t = !0) {
|
|
2140
2180
|
e ? i(n, !0, t) : a(t);
|
|
@@ -2142,14 +2182,14 @@ function ii({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEdi
|
|
|
2142
2182
|
function m(e, t = !1) {
|
|
2143
2183
|
i(e, t, t);
|
|
2144
2184
|
}
|
|
2145
|
-
let { cellClass: h } = e, g =
|
|
2185
|
+
let { cellClass: h } = e, g = _r(e, "rdg-editor-container", typeof h == "function" ? h(n) : h, !e.editorOptions?.displayCellContent && ai);
|
|
2146
2186
|
return /*#__PURE__*/ H("div", {
|
|
2147
2187
|
role: "gridcell",
|
|
2148
2188
|
"aria-colindex": e.idx + 1,
|
|
2149
2189
|
"aria-colspan": t,
|
|
2150
2190
|
"aria-selected": !0,
|
|
2151
2191
|
className: g,
|
|
2152
|
-
style:
|
|
2192
|
+
style: gr(e, t),
|
|
2153
2193
|
onKeyDown: f,
|
|
2154
2194
|
onMouseDownCapture: d,
|
|
2155
2195
|
children: e.renderEditCell != null && /*#__PURE__*/ U(V, { children: [e.renderEditCell({
|
|
@@ -2168,8 +2208,8 @@ function ii({ column: e, colSpan: t, row: n, rowIdx: r, onRowChange: i, closeEdi
|
|
|
2168
2208
|
})] })
|
|
2169
2209
|
});
|
|
2170
2210
|
}
|
|
2171
|
-
function
|
|
2172
|
-
let { tabIndex: i, onFocus: a } =
|
|
2211
|
+
function si({ column: e, rowIdx: t, isCellSelected: n, selectCell: r }) {
|
|
2212
|
+
let { tabIndex: i, onFocus: a } = Qr(n), { colSpan: o } = e, s = Tr(e, t), c = e.idx + 1;
|
|
2173
2213
|
function l() {
|
|
2174
2214
|
r({
|
|
2175
2215
|
idx: e.idx,
|
|
@@ -2183,9 +2223,9 @@ function ai({ column: e, rowIdx: t, isCellSelected: n, selectCell: r }) {
|
|
|
2183
2223
|
"aria-rowspan": s,
|
|
2184
2224
|
"aria-selected": n,
|
|
2185
2225
|
tabIndex: i,
|
|
2186
|
-
className:
|
|
2226
|
+
className: Zn(fr, e.headerCellClass),
|
|
2187
2227
|
style: {
|
|
2188
|
-
...
|
|
2228
|
+
...hr(e, t, s),
|
|
2189
2229
|
gridColumnStart: c,
|
|
2190
2230
|
gridColumnEnd: c + o
|
|
2191
2231
|
},
|
|
@@ -2194,20 +2234,20 @@ function ai({ column: e, rowIdx: t, isCellSelected: n, selectCell: r }) {
|
|
|
2194
2234
|
children: e.name
|
|
2195
2235
|
});
|
|
2196
2236
|
}
|
|
2197
|
-
var
|
|
2198
|
-
function
|
|
2199
|
-
return e.sortable ? /*#__PURE__*/ H(
|
|
2237
|
+
var ci = "h44jtk67-0-0-beta-46", li = "rdg-header-sort-name hcgkhxz7-0-0-beta-46";
|
|
2238
|
+
function ui({ column: e, sortDirection: t, priority: n }) {
|
|
2239
|
+
return e.sortable ? /*#__PURE__*/ H(di, {
|
|
2200
2240
|
sortDirection: t,
|
|
2201
2241
|
priority: n,
|
|
2202
2242
|
children: e.name
|
|
2203
2243
|
}) : e.name;
|
|
2204
2244
|
}
|
|
2205
|
-
function
|
|
2206
|
-
let r =
|
|
2245
|
+
function di({ sortDirection: e, priority: t, children: n }) {
|
|
2246
|
+
let r = Mr().renderSortStatus;
|
|
2207
2247
|
return /*#__PURE__*/ U("span", {
|
|
2208
|
-
className:
|
|
2248
|
+
className: ci,
|
|
2209
2249
|
children: [/*#__PURE__*/ H("span", {
|
|
2210
|
-
className:
|
|
2250
|
+
className: li,
|
|
2211
2251
|
children: n
|
|
2212
2252
|
}), /*#__PURE__*/ H("span", { children: r({
|
|
2213
2253
|
sortDirection: e,
|
|
@@ -2215,16 +2255,16 @@ function li({ sortDirection: e, priority: t, children: n }) {
|
|
|
2215
2255
|
}) })]
|
|
2216
2256
|
});
|
|
2217
2257
|
}
|
|
2218
|
-
var
|
|
2219
|
-
function
|
|
2220
|
-
let [f, p] = z(!1), [m, h] = z(!1), g = u === "rtl", _ =
|
|
2258
|
+
var fi = "c6l2wv17-0-0-beta-46", pi = "rdg-cell-resizable c1kqdw7y7-0-0-beta-46", mi = "r1y6ywlx7-0-0-beta-46", hi = "rdg-cell-draggable", gi = "rdg-cell-dragging c1bezg5o7-0-0-beta-46", _i = "rdg-cell-drag-over c1vc96037-0-0-beta-46";
|
|
2259
|
+
function vi({ column: e, colSpan: t, rowIdx: n, isCellSelected: r, onColumnResize: i, onColumnsReorder: a, sortColumns: o, onSortColumnsChange: s, selectCell: c, shouldFocusGrid: l, direction: u, dragDropKey: d }) {
|
|
2260
|
+
let [f, p] = z(!1), [m, h] = z(!1), g = u === "rtl", _ = Tr(e, n), { tabIndex: v, childTabIndex: y, onFocus: b } = Qr(r), x = o?.findIndex((t) => t.columnKey === e.key), S = x !== void 0 && x > -1 ? o[x] : void 0, C = S?.direction, ee = S !== void 0 && o.length > 1 ? x + 1 : void 0, te = C && !ee ? C === "ASC" ? "ascending" : "descending" : void 0, { sortable: w, resizable: ne, draggable: re } = e, T = _r(e, e.headerCellClass, w && fi, ne && pi, re && hi, f && gi, m && _i), ie = e.renderHeaderCell ?? ui;
|
|
2221
2261
|
function E(t) {
|
|
2222
2262
|
if (t.pointerType === "mouse" && t.buttons !== 1) return;
|
|
2223
2263
|
t.preventDefault();
|
|
2224
2264
|
let { currentTarget: n, pointerId: r } = t, a = n.parentElement, { right: o, left: s } = a.getBoundingClientRect(), c = g ? t.clientX - s : o - t.clientX;
|
|
2225
2265
|
function l(t) {
|
|
2226
2266
|
let { right: n, left: r } = a.getBoundingClientRect(), o = g ? n + c - t.clientX : t.clientX + c - r;
|
|
2227
|
-
o > 0 && i(e,
|
|
2267
|
+
o > 0 && i(e, wr(o, e));
|
|
2228
2268
|
}
|
|
2229
2269
|
function u() {
|
|
2230
2270
|
n.removeEventListener("pointermove", l), n.removeEventListener("lostpointercapture", u);
|
|
@@ -2285,10 +2325,10 @@ function gi({ column: e, colSpan: t, rowIdx: n, isCellSelected: r, onColumnResiz
|
|
|
2285
2325
|
}
|
|
2286
2326
|
}
|
|
2287
2327
|
function A(e) {
|
|
2288
|
-
|
|
2328
|
+
yi(e) && h(!0);
|
|
2289
2329
|
}
|
|
2290
2330
|
function j(e) {
|
|
2291
|
-
|
|
2331
|
+
yi(e) && h(!1);
|
|
2292
2332
|
}
|
|
2293
2333
|
let M;
|
|
2294
2334
|
return re && (M = {
|
|
@@ -2309,8 +2349,8 @@ function gi({ column: e, colSpan: t, rowIdx: n, isCellSelected: r, onColumnResiz
|
|
|
2309
2349
|
tabIndex: l ? 0 : v,
|
|
2310
2350
|
className: T,
|
|
2311
2351
|
style: {
|
|
2312
|
-
...
|
|
2313
|
-
...
|
|
2352
|
+
...hr(e, n, _),
|
|
2353
|
+
...gr(e, t)
|
|
2314
2354
|
},
|
|
2315
2355
|
onFocus: ae,
|
|
2316
2356
|
onClick: O,
|
|
@@ -2322,23 +2362,23 @@ function gi({ column: e, colSpan: t, rowIdx: n, isCellSelected: r, onColumnResiz
|
|
|
2322
2362
|
priority: ee,
|
|
2323
2363
|
tabIndex: y
|
|
2324
2364
|
}), ne && /*#__PURE__*/ H("div", {
|
|
2325
|
-
className:
|
|
2326
|
-
onClick:
|
|
2365
|
+
className: mi,
|
|
2366
|
+
onClick: Qn,
|
|
2327
2367
|
onDoubleClick: k,
|
|
2328
2368
|
onPointerDown: E
|
|
2329
2369
|
})]
|
|
2330
2370
|
});
|
|
2331
2371
|
}
|
|
2332
|
-
function
|
|
2372
|
+
function yi(e) {
|
|
2333
2373
|
let t = e.relatedTarget;
|
|
2334
2374
|
return !e.currentTarget.contains(t);
|
|
2335
2375
|
}
|
|
2336
|
-
var
|
|
2337
|
-
function
|
|
2376
|
+
var bi = "rdg-row r1upfr807-0-0-beta-46", xi = "r190mhd37-0-0-beta-46", Si = "rdg-row-selected", Ci = "r139qu9m7-0-0-beta-46", wi = "rdg-top-summary-row", Ti = "rdg-bottom-summary-row", Ei = "rdg-header-row h10tskcx7-0-0-beta-46";
|
|
2377
|
+
function Di({ rowIdx: e, columns: t, onColumnResize: n, onColumnsReorder: r, sortColumns: i, onSortColumnsChange: a, lastFrozenColumnIndex: o, selectedCellIdx: s, selectCell: c, shouldFocusGrid: l, direction: u }) {
|
|
2338
2378
|
let d = ve(), f = [];
|
|
2339
2379
|
for (let p = 0; p < t.length; p++) {
|
|
2340
2380
|
let m = t[p], h = X(m, o, { type: "HEADER" });
|
|
2341
|
-
h !== void 0 && (p += h - 1), f.push(/*#__PURE__*/ H(
|
|
2381
|
+
h !== void 0 && (p += h - 1), f.push(/*#__PURE__*/ H(vi, {
|
|
2342
2382
|
column: m,
|
|
2343
2383
|
colSpan: h,
|
|
2344
2384
|
rowIdx: e,
|
|
@@ -2356,12 +2396,12 @@ function Ti({ rowIdx: e, columns: t, onColumnResize: n, onColumnsReorder: r, sor
|
|
|
2356
2396
|
return /*#__PURE__*/ H("div", {
|
|
2357
2397
|
role: "row",
|
|
2358
2398
|
"aria-rowindex": e,
|
|
2359
|
-
className:
|
|
2399
|
+
className: Zn(Ei, s === -1 && Si),
|
|
2360
2400
|
children: f
|
|
2361
2401
|
});
|
|
2362
2402
|
}
|
|
2363
|
-
var
|
|
2364
|
-
function
|
|
2403
|
+
var Oi = /*#__PURE__*/ ge(Di);
|
|
2404
|
+
function ki({ rowIdx: e, level: t, columns: n, selectedCellIdx: r, selectCell: i }) {
|
|
2365
2405
|
let a = [], o = /* @__PURE__ */ new Set();
|
|
2366
2406
|
for (let s of n) {
|
|
2367
2407
|
let { parent: n } = s;
|
|
@@ -2370,7 +2410,7 @@ function Di({ rowIdx: e, level: t, columns: n, selectedCellIdx: r, selectCell: i
|
|
|
2370
2410
|
if (n.level === t && !o.has(n)) {
|
|
2371
2411
|
o.add(n);
|
|
2372
2412
|
let { idx: t } = n;
|
|
2373
|
-
a.push(/*#__PURE__*/ H(
|
|
2413
|
+
a.push(/*#__PURE__*/ H(si, {
|
|
2374
2414
|
column: n,
|
|
2375
2415
|
rowIdx: e,
|
|
2376
2416
|
isCellSelected: r === t,
|
|
@@ -2382,13 +2422,13 @@ function Di({ rowIdx: e, level: t, columns: n, selectedCellIdx: r, selectCell: i
|
|
|
2382
2422
|
return /*#__PURE__*/ H("div", {
|
|
2383
2423
|
role: "row",
|
|
2384
2424
|
"aria-rowindex": e,
|
|
2385
|
-
className:
|
|
2425
|
+
className: Ei,
|
|
2386
2426
|
children: a
|
|
2387
2427
|
});
|
|
2388
2428
|
}
|
|
2389
|
-
var
|
|
2390
|
-
function
|
|
2391
|
-
let { tabIndex: p, childTabIndex: m, onFocus: h } =
|
|
2429
|
+
var Ai = /*#__PURE__*/ ge(ki), ji = "rdg-cell-copied c6ra8a37-0-0-beta-46", Mi = "rdg-cell-dragged-over cq910m07-0-0-beta-46";
|
|
2430
|
+
function Ni({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOver: i, row: a, rowIdx: o, onClick: s, onDoubleClick: c, onContextMenu: l, onRowChange: u, selectCell: d, ...f }) {
|
|
2431
|
+
let { tabIndex: p, childTabIndex: m, onFocus: h } = Qr(n), { cellClass: g } = e, _ = _r(e, typeof g == "function" ? g(a) : g, r && ji, i && Mi), v = cr(e, a);
|
|
2392
2432
|
function y(t) {
|
|
2393
2433
|
d({
|
|
2394
2434
|
rowIdx: o,
|
|
@@ -2397,7 +2437,7 @@ function ji({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2397
2437
|
}
|
|
2398
2438
|
function b(t) {
|
|
2399
2439
|
if (s) {
|
|
2400
|
-
let n =
|
|
2440
|
+
let n = er(t);
|
|
2401
2441
|
if (s({
|
|
2402
2442
|
row: a,
|
|
2403
2443
|
column: e,
|
|
@@ -2408,7 +2448,7 @@ function ji({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2408
2448
|
}
|
|
2409
2449
|
function x(t) {
|
|
2410
2450
|
if (l) {
|
|
2411
|
-
let n =
|
|
2451
|
+
let n = er(t);
|
|
2412
2452
|
if (l({
|
|
2413
2453
|
row: a,
|
|
2414
2454
|
column: e,
|
|
@@ -2419,7 +2459,7 @@ function ji({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2419
2459
|
}
|
|
2420
2460
|
function S(t) {
|
|
2421
2461
|
if (c) {
|
|
2422
|
-
let n =
|
|
2462
|
+
let n = er(t);
|
|
2423
2463
|
if (c({
|
|
2424
2464
|
row: a,
|
|
2425
2465
|
column: e,
|
|
@@ -2439,7 +2479,7 @@ function ji({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2439
2479
|
"aria-readonly": !v || void 0,
|
|
2440
2480
|
tabIndex: p,
|
|
2441
2481
|
className: _,
|
|
2442
|
-
style:
|
|
2482
|
+
style: gr(e, t),
|
|
2443
2483
|
onClick: b,
|
|
2444
2484
|
onDoubleClick: S,
|
|
2445
2485
|
onContextMenu: x,
|
|
@@ -2455,15 +2495,15 @@ function ji({ column: e, colSpan: t, isCellSelected: n, isCopied: r, isDraggedOv
|
|
|
2455
2495
|
})
|
|
2456
2496
|
});
|
|
2457
2497
|
}
|
|
2458
|
-
var
|
|
2459
|
-
function
|
|
2498
|
+
var Pi = /*#__PURE__*/ ge(Ni);
|
|
2499
|
+
function Fi({ className: e, rowIdx: t, gridRowStart: n, selectedCellIdx: r, isRowSelected: i, copiedCellIdx: a, draggedOverCellIdx: o, lastFrozenColumnIndex: s, row: c, viewportColumns: l, selectedCellEditor: u, onCellClick: d, onCellDoubleClick: f, onCellContextMenu: p, rowClass: m, setDraggedOverRowIdx: h, onMouseEnter: g, onRowChange: _, selectCell: v, ...y }, b) {
|
|
2460
2500
|
let x = Z((e, n) => {
|
|
2461
2501
|
_(e, t, n);
|
|
2462
2502
|
});
|
|
2463
2503
|
function S(e) {
|
|
2464
2504
|
h?.(t), g?.(e);
|
|
2465
2505
|
}
|
|
2466
|
-
e =
|
|
2506
|
+
e = Zn(bi, `rdg-row-${t % 2 == 0 ? "even" : "odd"}`, m?.(c, t), e, r === -1 && Si);
|
|
2467
2507
|
let C = [];
|
|
2468
2508
|
for (let e = 0; e < l.length; e++) {
|
|
2469
2509
|
let n = l[e], { idx: i } = n, m = X(n, s, {
|
|
@@ -2472,7 +2512,7 @@ function Ni({ className: e, rowIdx: t, gridRowStart: n, selectedCellIdx: r, isRo
|
|
|
2472
2512
|
});
|
|
2473
2513
|
m !== void 0 && (e += m - 1);
|
|
2474
2514
|
let h = r === i;
|
|
2475
|
-
h && u ? C.push(u) : C.push(/*#__PURE__*/ H(
|
|
2515
|
+
h && u ? C.push(u) : C.push(/*#__PURE__*/ H(Pi, {
|
|
2476
2516
|
column: n,
|
|
2477
2517
|
colSpan: m,
|
|
2478
2518
|
row: c,
|
|
@@ -2487,28 +2527,28 @@ function Ni({ className: e, rowIdx: t, gridRowStart: n, selectedCellIdx: r, isRo
|
|
|
2487
2527
|
selectCell: v
|
|
2488
2528
|
}, n.key));
|
|
2489
2529
|
}
|
|
2490
|
-
return /*#__PURE__*/ H(
|
|
2530
|
+
return /*#__PURE__*/ H(Fr, {
|
|
2491
2531
|
value: i,
|
|
2492
2532
|
children: /*#__PURE__*/ H("div", {
|
|
2493
2533
|
role: "row",
|
|
2494
2534
|
ref: b,
|
|
2495
2535
|
className: e,
|
|
2496
2536
|
onMouseEnter: S,
|
|
2497
|
-
style:
|
|
2537
|
+
style: mr(n),
|
|
2498
2538
|
...y,
|
|
2499
2539
|
children: C
|
|
2500
2540
|
})
|
|
2501
2541
|
});
|
|
2502
2542
|
}
|
|
2503
|
-
var
|
|
2504
|
-
function
|
|
2505
|
-
return /*#__PURE__*/ H(
|
|
2543
|
+
var Ii = /*#__PURE__*/ ge(/*#__PURE__*/ P(Fi));
|
|
2544
|
+
function Li(e, t) {
|
|
2545
|
+
return /*#__PURE__*/ H(Ii, { ...t }, e);
|
|
2506
2546
|
}
|
|
2507
|
-
function
|
|
2547
|
+
function Ri({ scrollToPosition: { idx: e, rowIdx: t }, gridElement: n, setScrollToCellPosition: r }) {
|
|
2508
2548
|
let i = R(null);
|
|
2509
|
-
return
|
|
2510
|
-
|
|
2511
|
-
}),
|
|
2549
|
+
return Jr(() => {
|
|
2550
|
+
$n(i.current);
|
|
2551
|
+
}), Jr(() => {
|
|
2512
2552
|
function e() {
|
|
2513
2553
|
r(null);
|
|
2514
2554
|
}
|
|
@@ -2527,26 +2567,26 @@ function Ii({ scrollToPosition: { idx: e, rowIdx: t }, gridElement: n, setScroll
|
|
|
2527
2567
|
}
|
|
2528
2568
|
});
|
|
2529
2569
|
}
|
|
2530
|
-
var
|
|
2531
|
-
function
|
|
2532
|
-
return /*#__PURE__*/ U(V, { children: [
|
|
2570
|
+
var zi = "rdg-sort-arrow a3ejtar7-0-0-beta-46";
|
|
2571
|
+
function Bi({ sortDirection: e, priority: t }) {
|
|
2572
|
+
return /*#__PURE__*/ U(V, { children: [Vi({ sortDirection: e }), Hi({ priority: t })] });
|
|
2533
2573
|
}
|
|
2534
|
-
function
|
|
2574
|
+
function Vi({ sortDirection: e }) {
|
|
2535
2575
|
return e === void 0 ? null : /*#__PURE__*/ H("svg", {
|
|
2536
2576
|
viewBox: "0 0 12 8",
|
|
2537
2577
|
width: "12",
|
|
2538
2578
|
height: "8",
|
|
2539
|
-
className:
|
|
2579
|
+
className: zi,
|
|
2540
2580
|
"aria-hidden": !0,
|
|
2541
2581
|
children: /*#__PURE__*/ H("path", { d: e === "ASC" ? "M0 8 6 0 12 8" : "M0 0 6 8 12 0" })
|
|
2542
2582
|
});
|
|
2543
2583
|
}
|
|
2544
|
-
function
|
|
2584
|
+
function Hi({ priority: e }) {
|
|
2545
2585
|
return e;
|
|
2546
2586
|
}
|
|
2547
|
-
var
|
|
2548
|
-
function
|
|
2549
|
-
let { tabIndex: o, childTabIndex: s, onFocus: c } =
|
|
2587
|
+
var Ui = "rdg rnvodz57-0-0-beta-46", Wi = "rdg-viewport-dragging vlqv91k7-0-0-beta-46", Gi = "f1lsfrzw7-0-0-beta-46", Ki = "f1cte0lg7-0-0-beta-46", qi = "s8wc6fl7-0-0-beta-46";
|
|
2588
|
+
function Ji({ column: e, colSpan: t, row: n, rowIdx: r, isCellSelected: i, selectCell: a }) {
|
|
2589
|
+
let { tabIndex: o, childTabIndex: s, onFocus: c } = Qr(i), { summaryCellClass: l } = e, u = _r(e, qi, typeof l == "function" ? l(n) : l);
|
|
2550
2590
|
function d() {
|
|
2551
2591
|
a({
|
|
2552
2592
|
rowIdx: r,
|
|
@@ -2560,7 +2600,7 @@ function Ki({ column: e, colSpan: t, row: n, rowIdx: r, isCellSelected: i, selec
|
|
|
2560
2600
|
"aria-selected": i,
|
|
2561
2601
|
tabIndex: o,
|
|
2562
2602
|
className: u,
|
|
2563
|
-
style:
|
|
2603
|
+
style: gr(e, t),
|
|
2564
2604
|
onClick: d,
|
|
2565
2605
|
onFocus: c,
|
|
2566
2606
|
children: e.renderSummaryCell?.({
|
|
@@ -2570,8 +2610,8 @@ function Ki({ column: e, colSpan: t, row: n, rowIdx: r, isCellSelected: i, selec
|
|
|
2570
2610
|
})
|
|
2571
2611
|
});
|
|
2572
2612
|
}
|
|
2573
|
-
var
|
|
2574
|
-
function
|
|
2613
|
+
var Yi = /*#__PURE__*/ ge(Ji), Xi = "skuhp557-0-0-beta-46", Zi = "tf8l5ub7-0-0-beta-46", Qi = `rdg-summary-row ${Xi}`;
|
|
2614
|
+
function $i({ rowIdx: e, gridRowStart: t, row: n, viewportColumns: r, top: i, bottom: a, lastFrozenColumnIndex: o, selectedCellIdx: s, isTop: c, selectCell: l, "aria-rowindex": u }) {
|
|
2575
2615
|
let d = [];
|
|
2576
2616
|
for (let t = 0; t < r.length; t++) {
|
|
2577
2617
|
let i = r[t], a = X(i, o, {
|
|
@@ -2580,7 +2620,7 @@ function Zi({ rowIdx: e, gridRowStart: t, row: n, viewportColumns: r, top: i, bo
|
|
|
2580
2620
|
});
|
|
2581
2621
|
a !== void 0 && (t += a - 1);
|
|
2582
2622
|
let c = s === i.idx;
|
|
2583
|
-
d.push(/*#__PURE__*/ H(
|
|
2623
|
+
d.push(/*#__PURE__*/ H(Yi, {
|
|
2584
2624
|
column: i,
|
|
2585
2625
|
colSpan: a,
|
|
2586
2626
|
row: n,
|
|
@@ -2592,18 +2632,18 @@ function Zi({ rowIdx: e, gridRowStart: t, row: n, viewportColumns: r, top: i, bo
|
|
|
2592
2632
|
return /*#__PURE__*/ H("div", {
|
|
2593
2633
|
role: "row",
|
|
2594
2634
|
"aria-rowindex": u,
|
|
2595
|
-
className:
|
|
2635
|
+
className: Zn(bi, `rdg-row-${e % 2 == 0 ? "even" : "odd"}`, Qi, c ? `${wi} ${Zi}` : Ti, s === -1 && Si),
|
|
2596
2636
|
style: {
|
|
2597
|
-
...
|
|
2637
|
+
...mr(t),
|
|
2598
2638
|
"--rdg-summary-row-top": i === void 0 ? void 0 : `${i}px`,
|
|
2599
2639
|
"--rdg-summary-row-bottom": a === void 0 ? void 0 : `${a}px`
|
|
2600
2640
|
},
|
|
2601
2641
|
children: d
|
|
2602
2642
|
});
|
|
2603
2643
|
}
|
|
2604
|
-
var
|
|
2605
|
-
function
|
|
2606
|
-
let { columns: n, rows: r, topSummaryRows: i, bottomSummaryRows: a, rowKeyGetter: o, onRowsChange: s, rowHeight: c, headerRowHeight: l, summaryRowHeight: u, selectedRows: d, onSelectedRowsChange: f, sortColumns: p, onSortColumnsChange: m, defaultColumnOptions: h, onCellClick: g, onCellDoubleClick: _, onCellContextMenu: v, onCellKeyDown: y, onSelectedCellChange: b, onScroll: x, onColumnResize: S, onColumnsReorder: C, onFill: ee, onCopy: te, onPaste: w, enableVirtualization: ne, renderers: re, className: T, style: ie, rowClass: E, direction: D, role: O, "aria-label": k, "aria-labelledby": ae, "aria-describedby": oe, "aria-rowcount": se, "data-testid": ce } = e, le =
|
|
2644
|
+
var ea = /*#__PURE__*/ ge($i);
|
|
2645
|
+
function ta(e, t) {
|
|
2646
|
+
let { columns: n, rows: r, topSummaryRows: i, bottomSummaryRows: a, rowKeyGetter: o, onRowsChange: s, rowHeight: c, headerRowHeight: l, summaryRowHeight: u, selectedRows: d, onSelectedRowsChange: f, sortColumns: p, onSortColumnsChange: m, defaultColumnOptions: h, onCellClick: g, onCellDoubleClick: _, onCellContextMenu: v, onCellKeyDown: y, onSelectedCellChange: b, onScroll: x, onColumnResize: S, onColumnsReorder: C, onFill: ee, onCopy: te, onPaste: w, enableVirtualization: ne, renderers: re, className: T, style: ie, rowClass: E, direction: D, role: O, "aria-label": k, "aria-labelledby": ae, "aria-describedby": oe, "aria-rowcount": se, "data-testid": ce } = e, le = Mr(), ue = O ?? "grid", A = c ?? 35, j = l ?? (typeof A == "number" ? A : 35), M = u ?? (typeof A == "number" ? A : 35), N = re?.renderRow ?? le?.renderRow ?? Li, de = re?.renderSortStatus ?? le?.renderSortStatus ?? Bi, fe = re?.renderCheckbox ?? le?.renderCheckbox ?? Or, pe = re?.noRowsFallback ?? le?.noRowsFallback, me = ne ?? !0, P = D ?? "ltr", [he, ge] = z(0), [_e, I] = z(0), [ve, be] = z(() => /* @__PURE__ */ new Map()), [B, xe] = z(() => /* @__PURE__ */ new Map()), [Se, Ce] = z(null), [we, Te] = z(!1), [Ee, De] = z(void 0), [Oe, ke] = z(null), Ae = F((e) => ve.get(e.key) ?? B.get(e.key) ?? e.width, [B, ve]), [je, Me, Ne, Pe] = Zr(), { columns: W, colSpanColumns: Fe, lastFrozenColumnIndex: G, headerRowsCount: Ie, colOverscanStartIdx: Le, colOverscanEndIdx: Re, templateColumns: ze, layoutCssVars: Be, totalFrozenColumnWidth: Ve } = Kr({
|
|
2607
2647
|
rawColumns: n,
|
|
2608
2648
|
defaultColumnOptions: h,
|
|
2609
2649
|
getColumnWidth: Ae,
|
|
@@ -2624,13 +2664,13 @@ function $i(e, t) {
|
|
|
2624
2664
|
r,
|
|
2625
2665
|
d,
|
|
2626
2666
|
o
|
|
2627
|
-
]), { rowOverscanStartIdx: ft, rowOverscanEndIdx: pt, totalRowHeight: mt, gridTemplateRows: ht, getRowTop: gt, getRowHeight: _t, findRowIdx: vt } =
|
|
2667
|
+
]), { rowOverscanStartIdx: ft, rowOverscanEndIdx: pt, totalRowHeight: mt, gridTemplateRows: ht, getRowTop: gt, getRowHeight: _t, findRowIdx: vt } = ei({
|
|
2628
2668
|
rows: r,
|
|
2629
2669
|
rowHeight: A,
|
|
2630
2670
|
clientHeight: rt,
|
|
2631
2671
|
scrollTop: he,
|
|
2632
2672
|
enableVirtualization: me
|
|
2633
|
-
}), yt =
|
|
2673
|
+
}), yt = $r({
|
|
2634
2674
|
columns: W,
|
|
2635
2675
|
colSpanColumns: Fe,
|
|
2636
2676
|
colOverscanStartIdx: Le,
|
|
@@ -2641,19 +2681,19 @@ function $i(e, t) {
|
|
|
2641
2681
|
rows: r,
|
|
2642
2682
|
topSummaryRows: i,
|
|
2643
2683
|
bottomSummaryRows: a
|
|
2644
|
-
}), { gridTemplateColumns: bt, handleColumnResize: xt } =
|
|
2684
|
+
}), { gridTemplateColumns: bt, handleColumnResize: xt } = Yr(W, yt, ze, je, Me, ve, B, be, xe, S), St = et ? -1 : 0, Ct = W.length - 1, wt = qt(J), Tt = Yt(J), Et = j + mt + nt + Pe, Dt = Z(xt), Ot = Z(C), kt = Z(m), At = Z(g), jt = Z(_), Mt = Z(v), Nt = Z(Lt), Pt = Z(Bt), Y = Z(Zt), Ft = Z(({ idx: e, rowIdx: t }) => {
|
|
2645
2685
|
Zt({
|
|
2646
2686
|
rowIdx: K + t - 1,
|
|
2647
2687
|
idx: e
|
|
2648
2688
|
});
|
|
2649
2689
|
});
|
|
2650
|
-
|
|
2651
|
-
if (!wt ||
|
|
2690
|
+
Jr(() => {
|
|
2691
|
+
if (!wt || ra(J, Ye.current)) {
|
|
2652
2692
|
Ye.current = J;
|
|
2653
2693
|
return;
|
|
2654
2694
|
}
|
|
2655
|
-
Ye.current = J, J.idx === -1 && (Qe.current.focus({ preventScroll: !0 }),
|
|
2656
|
-
}),
|
|
2695
|
+
Ye.current = J, J.idx === -1 && (Qe.current.focus({ preventScroll: !0 }), $n(Qe.current));
|
|
2696
|
+
}), Jr(() => {
|
|
2657
2697
|
$e.current && ($e.current = !1, tn());
|
|
2658
2698
|
}), ye(t, () => ({
|
|
2659
2699
|
element: je.current,
|
|
@@ -2671,7 +2711,7 @@ function $i(e, t) {
|
|
|
2671
2711
|
}, []);
|
|
2672
2712
|
function Lt(e) {
|
|
2673
2713
|
if (!f) return;
|
|
2674
|
-
if (
|
|
2714
|
+
if (Cr(o), e.type === "HEADER") {
|
|
2675
2715
|
let t = new Set(d);
|
|
2676
2716
|
for (let n of r) {
|
|
2677
2717
|
let r = o(n);
|
|
@@ -2682,7 +2722,7 @@ function $i(e, t) {
|
|
|
2682
2722
|
}
|
|
2683
2723
|
let { row: t, checked: n, isShiftClick: i } = e, a = new Set(d), s = o(t), c = Ze.current, l = r.indexOf(t);
|
|
2684
2724
|
if (Ze.current = l, n ? a.add(s) : a.delete(s), i && c !== -1 && c !== l && c < r.length) {
|
|
2685
|
-
let e =
|
|
2725
|
+
let e = xr(l - c);
|
|
2686
2726
|
for (let t = c + e; t !== l; t += e) {
|
|
2687
2727
|
let e = r[t];
|
|
2688
2728
|
n ? a.add(o(e)) : a.delete(o(e));
|
|
@@ -2694,7 +2734,7 @@ function $i(e, t) {
|
|
|
2694
2734
|
let { idx: t, rowIdx: n, mode: i } = J;
|
|
2695
2735
|
if (i === "EDIT") return;
|
|
2696
2736
|
if (y && Kt(n)) {
|
|
2697
|
-
let i = r[n], a =
|
|
2737
|
+
let i = r[n], a = er(e);
|
|
2698
2738
|
if (y({
|
|
2699
2739
|
mode: "SELECT",
|
|
2700
2740
|
row: i,
|
|
@@ -2707,7 +2747,7 @@ function $i(e, t) {
|
|
|
2707
2747
|
let a = e.target.closest(".rdg-cell") !== null, o = et && e.target === Qe.current;
|
|
2708
2748
|
if (!a && !o) return;
|
|
2709
2749
|
let { keyCode: s } = e;
|
|
2710
|
-
if (Tt && (w != null || te != null) &&
|
|
2750
|
+
if (Tt && (w != null || te != null) && nr(e)) {
|
|
2711
2751
|
if (s === 67) {
|
|
2712
2752
|
if (window.getSelection()?.isCollapsed === !1) return;
|
|
2713
2753
|
Ht();
|
|
@@ -2741,7 +2781,7 @@ function $i(e, t) {
|
|
|
2741
2781
|
function zt(e) {
|
|
2742
2782
|
let { scrollTop: t, scrollLeft: n } = e.currentTarget;
|
|
2743
2783
|
at(() => {
|
|
2744
|
-
ge(t), I(
|
|
2784
|
+
ge(t), I(Sr(n));
|
|
2745
2785
|
}), x?.(e);
|
|
2746
2786
|
}
|
|
2747
2787
|
function Bt(e, t, n) {
|
|
@@ -2779,7 +2819,7 @@ function $i(e, t) {
|
|
|
2779
2819
|
if (!Tt) return;
|
|
2780
2820
|
let t = r[J.rowIdx], { key: n, shiftKey: i } = e;
|
|
2781
2821
|
if (it && i && n === " ") {
|
|
2782
|
-
|
|
2822
|
+
Cr(o);
|
|
2783
2823
|
let n = o(t);
|
|
2784
2824
|
Lt({
|
|
2785
2825
|
type: "ROW",
|
|
@@ -2789,7 +2829,7 @@ function $i(e, t) {
|
|
|
2789
2829
|
}), e.preventDefault();
|
|
2790
2830
|
return;
|
|
2791
2831
|
}
|
|
2792
|
-
Xt(J) &&
|
|
2832
|
+
Xt(J) && rr(e) && Je(({ idx: e, rowIdx: n }) => ({
|
|
2793
2833
|
idx: e,
|
|
2794
2834
|
rowIdx: n,
|
|
2795
2835
|
mode: "EDIT",
|
|
@@ -2813,7 +2853,7 @@ function $i(e, t) {
|
|
|
2813
2853
|
return Kt(t) && Gt(e);
|
|
2814
2854
|
}
|
|
2815
2855
|
function Xt(e) {
|
|
2816
|
-
return Jt(e) &&
|
|
2856
|
+
return Jt(e) && sr({
|
|
2817
2857
|
columns: W,
|
|
2818
2858
|
rows: r,
|
|
2819
2859
|
selectedPosition: e
|
|
@@ -2822,13 +2862,13 @@ function $i(e, t) {
|
|
|
2822
2862
|
function Zt(e, t) {
|
|
2823
2863
|
if (!qt(e)) return;
|
|
2824
2864
|
Vt();
|
|
2825
|
-
let n = r[e.rowIdx], i =
|
|
2865
|
+
let n = r[e.rowIdx], i = ra(J, e);
|
|
2826
2866
|
t && Xt(e) ? Je({
|
|
2827
2867
|
...e,
|
|
2828
2868
|
mode: "EDIT",
|
|
2829
2869
|
row: n,
|
|
2830
2870
|
originalRow: n
|
|
2831
|
-
}) : i ?
|
|
2871
|
+
}) : i ? $n(na(je.current)) : ($e.current = !0, Je({
|
|
2832
2872
|
...e,
|
|
2833
2873
|
mode: "SELECT"
|
|
2834
2874
|
})), b && !i && b({
|
|
@@ -2896,7 +2936,7 @@ function $i(e, t) {
|
|
|
2896
2936
|
function $t(e) {
|
|
2897
2937
|
let { key: t, shiftKey: n } = e, o = "NONE";
|
|
2898
2938
|
if (t === "Tab") {
|
|
2899
|
-
if (
|
|
2939
|
+
if (dr({
|
|
2900
2940
|
shiftKey: n,
|
|
2901
2941
|
maxColIdx: Ct,
|
|
2902
2942
|
minRowIdx: K,
|
|
@@ -2909,8 +2949,8 @@ function $i(e, t) {
|
|
|
2909
2949
|
o = "CHANGE_ROW";
|
|
2910
2950
|
}
|
|
2911
2951
|
e.preventDefault();
|
|
2912
|
-
let s = Qt(t,
|
|
2913
|
-
|
|
2952
|
+
let s = Qt(t, nr(e), n);
|
|
2953
|
+
ra(J, s) || Zt(ur({
|
|
2914
2954
|
moveUp: t === "ArrowUp",
|
|
2915
2955
|
moveNext: t === ct || t === "Tab" && !n,
|
|
2916
2956
|
columns: W,
|
|
@@ -2934,15 +2974,15 @@ function $i(e, t) {
|
|
|
2934
2974
|
return (t < Ee ? t < e && e <= Ee : t > e && e >= Ee) ? J.idx : void 0;
|
|
2935
2975
|
}
|
|
2936
2976
|
function tn() {
|
|
2937
|
-
let e =
|
|
2938
|
-
e !== null && (
|
|
2977
|
+
let e = na(je.current);
|
|
2978
|
+
e !== null && ($n(e), (e.querySelector("[tabindex=\"0\"]") ?? e).focus({ preventScroll: !0 }));
|
|
2939
2979
|
}
|
|
2940
2980
|
function nn() {
|
|
2941
2981
|
if (ee == null || J.mode === "EDIT" || !Yt(J)) return;
|
|
2942
2982
|
let { idx: e, rowIdx: t } = J, n = W[e];
|
|
2943
2983
|
if (n.renderEditCell == null || n.editable === !1) return;
|
|
2944
2984
|
let i = Ae(n);
|
|
2945
|
-
return /*#__PURE__*/ H(
|
|
2985
|
+
return /*#__PURE__*/ H(ii, {
|
|
2946
2986
|
gridRowStart: Ge + t + 1,
|
|
2947
2987
|
rows: r,
|
|
2948
2988
|
column: n,
|
|
@@ -2971,7 +3011,7 @@ function $i(e, t) {
|
|
|
2971
3011
|
mode: "SELECT"
|
|
2972
3012
|
}));
|
|
2973
3013
|
};
|
|
2974
|
-
return r[J.rowIdx] !== J.originalRow && o(!1), /*#__PURE__*/ H(
|
|
3014
|
+
return r[J.rowIdx] !== J.originalRow && o(!1), /*#__PURE__*/ H(oi, {
|
|
2975
3015
|
column: i,
|
|
2976
3016
|
colSpan: a,
|
|
2977
3017
|
row: n,
|
|
@@ -3043,7 +3083,7 @@ function $i(e, t) {
|
|
|
3043
3083
|
"aria-multiselectable": it ? !0 : void 0,
|
|
3044
3084
|
"aria-colcount": W.length,
|
|
3045
3085
|
"aria-rowcount": lt,
|
|
3046
|
-
className:
|
|
3086
|
+
className: Zn(Ui, T, we && Wi),
|
|
3047
3087
|
style: {
|
|
3048
3088
|
...ie,
|
|
3049
3089
|
scrollPaddingInlineStart: J.idx > G || Oe?.idx !== void 0 ? `${Ve}px` : void 0,
|
|
@@ -3060,19 +3100,19 @@ function $i(e, t) {
|
|
|
3060
3100
|
onKeyDown: Rt,
|
|
3061
3101
|
"data-testid": ce,
|
|
3062
3102
|
children: [
|
|
3063
|
-
/*#__PURE__*/ H(
|
|
3103
|
+
/*#__PURE__*/ H(jr, {
|
|
3064
3104
|
value: ut,
|
|
3065
|
-
children: /*#__PURE__*/ U(
|
|
3105
|
+
children: /*#__PURE__*/ U(Lr, {
|
|
3066
3106
|
value: Nt,
|
|
3067
|
-
children: [/*#__PURE__*/ U(
|
|
3107
|
+
children: [/*#__PURE__*/ U(Fr, {
|
|
3068
3108
|
value: dt,
|
|
3069
|
-
children: [Array.from({ length: Ke }, (e, t) => /*#__PURE__*/ H(
|
|
3109
|
+
children: [Array.from({ length: Ke }, (e, t) => /*#__PURE__*/ H(Ai, {
|
|
3070
3110
|
rowIdx: t + 1,
|
|
3071
3111
|
level: -Ke + t,
|
|
3072
3112
|
columns: an(K + t),
|
|
3073
3113
|
selectedCellIdx: J.rowIdx === K + t ? J.idx : void 0,
|
|
3074
3114
|
selectCell: Ft
|
|
3075
|
-
}, t)), /*#__PURE__*/ H(
|
|
3115
|
+
}, t)), /*#__PURE__*/ H(Oi, {
|
|
3076
3116
|
rowIdx: Ie,
|
|
3077
3117
|
columns: an(qe),
|
|
3078
3118
|
onColumnResize: Dt,
|
|
@@ -3088,7 +3128,7 @@ function $i(e, t) {
|
|
|
3088
3128
|
}), r.length === 0 && pe ? pe : /*#__PURE__*/ U(V, { children: [
|
|
3089
3129
|
i?.map((e, t) => {
|
|
3090
3130
|
let n = Ie + 1 + t, r = qe + 1 + t, i = J.rowIdx === r;
|
|
3091
|
-
return /*#__PURE__*/ H(
|
|
3131
|
+
return /*#__PURE__*/ H(ea, {
|
|
3092
3132
|
"aria-rowindex": n,
|
|
3093
3133
|
rowIdx: r,
|
|
3094
3134
|
gridRowStart: n,
|
|
@@ -3105,7 +3145,7 @@ function $i(e, t) {
|
|
|
3105
3145
|
on(),
|
|
3106
3146
|
a?.map((e, t) => {
|
|
3107
3147
|
let n = Ge + r.length + t + 1, i = r.length + t, o = J.rowIdx === i, s = rt > mt ? Ne - M * (a.length - t) : void 0, c = s === void 0 ? M * (a.length - 1 - t) : void 0;
|
|
3108
|
-
return /*#__PURE__*/ H(
|
|
3148
|
+
return /*#__PURE__*/ H(ea, {
|
|
3109
3149
|
"aria-rowindex": lt - Ue + t + 1,
|
|
3110
3150
|
rowIdx: i,
|
|
3111
3151
|
gridRowStart: n,
|
|
@@ -3123,14 +3163,14 @@ function $i(e, t) {
|
|
|
3123
3163
|
})
|
|
3124
3164
|
}),
|
|
3125
3165
|
nn(),
|
|
3126
|
-
|
|
3166
|
+
or(yt),
|
|
3127
3167
|
et && /*#__PURE__*/ H("div", {
|
|
3128
3168
|
ref: Qe,
|
|
3129
3169
|
tabIndex: cn ? 0 : -1,
|
|
3130
|
-
className:
|
|
3170
|
+
className: Zn(Gi, cn && [xi, G !== -1 && Ci], !Kt(J.rowIdx) && Ki),
|
|
3131
3171
|
style: { gridRowStart: J.rowIdx + Ge + 1 }
|
|
3132
3172
|
}),
|
|
3133
|
-
Oe !== null && /*#__PURE__*/ H(
|
|
3173
|
+
Oe !== null && /*#__PURE__*/ H(Ri, {
|
|
3134
3174
|
scrollToPosition: Oe,
|
|
3135
3175
|
setScrollToCellPosition: ke,
|
|
3136
3176
|
gridElement: je.current
|
|
@@ -3138,29 +3178,29 @@ function $i(e, t) {
|
|
|
3138
3178
|
]
|
|
3139
3179
|
});
|
|
3140
3180
|
}
|
|
3141
|
-
function
|
|
3181
|
+
function na(e) {
|
|
3142
3182
|
return e.querySelector(":scope > [role=\"row\"] > [tabindex=\"0\"]");
|
|
3143
3183
|
}
|
|
3144
|
-
function
|
|
3184
|
+
function ra(e, t) {
|
|
3145
3185
|
return e.idx === t.idx && e.rowIdx === t.rowIdx;
|
|
3146
3186
|
}
|
|
3147
|
-
var
|
|
3187
|
+
var ia = /*#__PURE__*/ P(ta), aa = { root: "_root_k4sin_2" }, oa = {
|
|
3148
3188
|
list: "_list_1rpm1_1",
|
|
3149
3189
|
root: "_root_1rpm1_6",
|
|
3150
3190
|
header: "_header_1rpm1_41",
|
|
3151
3191
|
selectedText: "_selectedText_1rpm1_61",
|
|
3152
3192
|
footer: "_footer_1rpm1_67"
|
|
3153
|
-
},
|
|
3193
|
+
}, sa = (e) => {
|
|
3154
3194
|
let { children: t, theme: n, selectedRowCount: a = 0, selectionActions: o, selectedText: s = (e) => `${e} selected`, clearText: c = "Clear", onClearSelection: l, footer: u, ...d } = e;
|
|
3155
3195
|
return /* @__PURE__ */ U(b, {
|
|
3156
3196
|
radius: "var(--mantine-grid-border-radius)",
|
|
3157
|
-
classNames: { root:
|
|
3197
|
+
classNames: { root: oa.root },
|
|
3158
3198
|
...d,
|
|
3159
3199
|
children: [
|
|
3160
3200
|
a ? /* @__PURE__ */ U(r, {
|
|
3161
|
-
className:
|
|
3201
|
+
className: oa.header,
|
|
3162
3202
|
children: [/* @__PURE__ */ H(O, {
|
|
3163
|
-
className:
|
|
3203
|
+
className: oa.selectedText,
|
|
3164
3204
|
children: s(a)
|
|
3165
3205
|
}), /* @__PURE__ */ U(p, {
|
|
3166
3206
|
gap: "xs",
|
|
@@ -3173,33 +3213,33 @@ var na = /*#__PURE__*/ P($i), ra = { root: "_root_k4sin_2" }, ia = {
|
|
|
3173
3213
|
})]
|
|
3174
3214
|
}) : null,
|
|
3175
3215
|
/* @__PURE__ */ H(r, {
|
|
3176
|
-
className:
|
|
3216
|
+
className: oa.list,
|
|
3177
3217
|
children: t
|
|
3178
3218
|
}),
|
|
3179
3219
|
/* @__PURE__ */ H(r, {
|
|
3180
|
-
className:
|
|
3220
|
+
className: oa.footer,
|
|
3181
3221
|
children: u
|
|
3182
3222
|
})
|
|
3183
3223
|
]
|
|
3184
3224
|
});
|
|
3185
|
-
},
|
|
3225
|
+
}, ca = {
|
|
3186
3226
|
root: "_root_6ifly_2",
|
|
3187
3227
|
text: "_text_6ifly_12"
|
|
3188
|
-
},
|
|
3228
|
+
}, la = (e) => {
|
|
3189
3229
|
let { icon: t = /* @__PURE__ */ H(je, { size: 24 }), text: n = "Nothing to show" } = e;
|
|
3190
3230
|
return /* @__PURE__ */ U(r, {
|
|
3191
|
-
className:
|
|
3231
|
+
className: ca.root,
|
|
3192
3232
|
children: [/* @__PURE__ */ H(oe, {
|
|
3193
3233
|
variant: "light",
|
|
3194
3234
|
size: 48,
|
|
3195
3235
|
radius: "50%",
|
|
3196
3236
|
children: t
|
|
3197
3237
|
}), /* @__PURE__ */ H(r, {
|
|
3198
|
-
className:
|
|
3238
|
+
className: ca.text,
|
|
3199
3239
|
children: n
|
|
3200
3240
|
})]
|
|
3201
3241
|
});
|
|
3202
|
-
},
|
|
3242
|
+
}, ua = ({ onChange: e, ...t }) => {
|
|
3203
3243
|
if (!e) return;
|
|
3204
3244
|
let n = (t) => {
|
|
3205
3245
|
e(t.target.checked, t.nativeEvent.shiftKey);
|
|
@@ -3210,9 +3250,9 @@ var na = /*#__PURE__*/ P($i), ra = { root: "_root_k4sin_2" }, ia = {
|
|
|
3210
3250
|
radius: "sm",
|
|
3211
3251
|
onChange: n
|
|
3212
3252
|
});
|
|
3213
|
-
},
|
|
3253
|
+
}, da = /* @__PURE__ */ function(e) {
|
|
3214
3254
|
return e[e.small = 20] = "small", e[e.standard = 36] = "standard", e[e.big = 45] = "big", e;
|
|
3215
|
-
}({}),
|
|
3255
|
+
}({}), fa = (e) => {
|
|
3216
3256
|
let { components: t, columns: n, withSorting: r, withColumnResizing: i, withRowSelection: a, rowHeight: o, headerRowHeight: s, rows: c, rowKeyGetter: l, onRowClick: u, sortColumns: d, onSort: f, setSortColumns: p, selectedRows: m, onSelectedRowsChange: h } = e, g = (e) => {
|
|
3217
3257
|
let t = (t) => e.render({
|
|
3218
3258
|
row: t.row,
|
|
@@ -3253,8 +3293,8 @@ var na = /*#__PURE__*/ P($i), ra = { root: "_root_k4sin_2" }, ia = {
|
|
|
3253
3293
|
selectedRows: m,
|
|
3254
3294
|
renderers: { renderCheckbox: t ? (e) => t.DGSelectComponent(e) : void 0 }
|
|
3255
3295
|
};
|
|
3256
|
-
return a && (v.columns = [
|
|
3257
|
-
},
|
|
3296
|
+
return a && (v.columns = [Ur, ...v.columns]), v;
|
|
3297
|
+
}, pa = (e, t) => {
|
|
3258
3298
|
switch (typeof e) {
|
|
3259
3299
|
case "number": return (e, n) => e[t] - n[t];
|
|
3260
3300
|
case "string":
|
|
@@ -3269,8 +3309,8 @@ var na = /*#__PURE__*/ P($i), ra = { root: "_root_k4sin_2" }, ia = {
|
|
|
3269
3309
|
};
|
|
3270
3310
|
//#endregion
|
|
3271
3311
|
//#region src/molecules/data-grid/hm/use-data-gri-parser.hook.ts
|
|
3272
|
-
function
|
|
3273
|
-
let [t, n] = z([]), r = L(() =>
|
|
3312
|
+
function ma(e) {
|
|
3313
|
+
let [t, n] = z([]), r = L(() => fa({
|
|
3274
3314
|
...e,
|
|
3275
3315
|
setSortColumns: n,
|
|
3276
3316
|
sortColumns: t
|
|
@@ -3282,7 +3322,7 @@ function fa(e) {
|
|
|
3282
3322
|
]);
|
|
3283
3323
|
return r.rows = L(() => t.length === 0 ? r.rows : [...r.rows].sort((e, n) => {
|
|
3284
3324
|
for (let r of t) {
|
|
3285
|
-
let { columnKey: t } = r, i = e[t], a =
|
|
3325
|
+
let { columnKey: t } = r, i = e[t], a = pa(i, r.columnKey)(e, n);
|
|
3286
3326
|
if (a !== 0) return r.direction === "ASC" ? a : -a;
|
|
3287
3327
|
}
|
|
3288
3328
|
return 0;
|
|
@@ -3294,7 +3334,7 @@ function fa(e) {
|
|
|
3294
3334
|
}
|
|
3295
3335
|
//#endregion
|
|
3296
3336
|
//#region src/molecules/data-grid/hm/render-row.tsx
|
|
3297
|
-
var
|
|
3337
|
+
var ha = {
|
|
3298
3338
|
text: (e) => /* @__PURE__ */ H(V, { children: String(e) }),
|
|
3299
3339
|
checkbox: (e) => /* @__PURE__ */ H(s, {
|
|
3300
3340
|
radius: "sm",
|
|
@@ -3305,14 +3345,14 @@ var pa = {
|
|
|
3305
3345
|
};
|
|
3306
3346
|
//#endregion
|
|
3307
3347
|
//#region src/molecules/data-grid/hm/use-render-row.hook.tsx
|
|
3308
|
-
function
|
|
3348
|
+
function ga(e) {
|
|
3309
3349
|
return L(() => {
|
|
3310
3350
|
let { columns: t, rows: n } = e, r = n ? n[0] : void 0;
|
|
3311
3351
|
if (!r) return e;
|
|
3312
3352
|
let i = n.map((e) => Tt(e)), a = (e, t, n) => ({
|
|
3313
3353
|
...t,
|
|
3314
3354
|
render: (t) => {
|
|
3315
|
-
let r = n, i = t.row[r], a =
|
|
3355
|
+
let r = n, i = t.row[r], a = ha[e];
|
|
3316
3356
|
return a(i);
|
|
3317
3357
|
}
|
|
3318
3358
|
}), o = t.map((e) => {
|
|
@@ -3340,8 +3380,8 @@ function ma(e) {
|
|
|
3340
3380
|
}
|
|
3341
3381
|
//#endregion
|
|
3342
3382
|
//#region src/molecules/data-grid/hm-data-grid.tsx
|
|
3343
|
-
var
|
|
3344
|
-
let t = N(), { columns: n, components: r = { DGSelectComponent:
|
|
3383
|
+
var _a = (e) => {
|
|
3384
|
+
let t = N(), { columns: n, components: r = { DGSelectComponent: ua }, onRowsChange: i, rows: a, selectedRows: o, headerRowHeight: s, rowHeight: c = da.standard, maxRows: l, onRowClick: u, onSelectedRowsChange: d, onSort: f, rowKeyGetter: p = (e) => e.id, withColumnResizing: m = !1, withRowSelection: h = !1, withSorting: g = !1, withFill: _ = !1, footer: v, emptyIcon: y, emptyText: b, withCellOutline: x = !1, selectionActions: S, selectedText: C, clearText: ee } = e, te = j("light"), w = ma(ga({
|
|
3345
3385
|
components: r,
|
|
3346
3386
|
columns: n,
|
|
3347
3387
|
rows: a,
|
|
@@ -3357,9 +3397,9 @@ var ha = (e) => {
|
|
|
3357
3397
|
withRowSelection: h,
|
|
3358
3398
|
withSorting: g
|
|
3359
3399
|
}));
|
|
3360
|
-
return /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H(
|
|
3400
|
+
return /* @__PURE__ */ H(V, { children: /* @__PURE__ */ H(sa, {
|
|
3361
3401
|
theme: t,
|
|
3362
|
-
className:
|
|
3402
|
+
className: aa.root,
|
|
3363
3403
|
selectedRowCount: o?.size ?? 0,
|
|
3364
3404
|
selectionActions: S,
|
|
3365
3405
|
selectedText: C,
|
|
@@ -3375,88 +3415,113 @@ var ha = (e) => {
|
|
|
3375
3415
|
"--data-grid-row-height": A(c),
|
|
3376
3416
|
"--data-grid-max-rows": l
|
|
3377
3417
|
},
|
|
3378
|
-
children: /* @__PURE__ */ H(
|
|
3418
|
+
children: /* @__PURE__ */ H(ia, {
|
|
3379
3419
|
...w,
|
|
3380
3420
|
className: te === "dark" ? "rdg-dark" : "rdg-light",
|
|
3381
3421
|
renderers: {
|
|
3382
3422
|
...w.renderers,
|
|
3383
|
-
noRowsFallback: /* @__PURE__ */ H(
|
|
3423
|
+
noRowsFallback: /* @__PURE__ */ H(la, {
|
|
3384
3424
|
icon: y,
|
|
3385
3425
|
text: b
|
|
3386
3426
|
})
|
|
3387
3427
|
}
|
|
3388
3428
|
})
|
|
3389
3429
|
}) });
|
|
3390
|
-
},
|
|
3430
|
+
}, va = { root: "_root_1nvb8_2" }, ya = (e) => {
|
|
3391
3431
|
let { label: t, icon: n, ...i } = e;
|
|
3392
3432
|
return /* @__PURE__ */ U(r, {
|
|
3393
|
-
className:
|
|
3433
|
+
className: va.root,
|
|
3394
3434
|
...i,
|
|
3395
3435
|
children: [n, t]
|
|
3396
3436
|
});
|
|
3397
|
-
},
|
|
3437
|
+
}, ba = {
|
|
3438
|
+
root: "_root_1ux1t_2",
|
|
3439
|
+
track: "_track_1ux1t_9",
|
|
3440
|
+
bar: "_bar_1ux1t_20",
|
|
3441
|
+
value: "_value_1ux1t_27"
|
|
3442
|
+
}, xa = (e) => {
|
|
3443
|
+
let { value: t, color: n, ...i } = e, a = Math.min(Math.max(t, 0), 100);
|
|
3444
|
+
return /* @__PURE__ */ U(r, {
|
|
3445
|
+
className: ba.root,
|
|
3446
|
+
style: { "--progress-color": `var(--mantine-color-${n}-6)` },
|
|
3447
|
+
...i,
|
|
3448
|
+
children: [/* @__PURE__ */ H(r, {
|
|
3449
|
+
component: "span",
|
|
3450
|
+
className: ba.track,
|
|
3451
|
+
children: /* @__PURE__ */ H(r, {
|
|
3452
|
+
component: "span",
|
|
3453
|
+
className: ba.bar,
|
|
3454
|
+
style: { width: `${a}%` }
|
|
3455
|
+
})
|
|
3456
|
+
}), /* @__PURE__ */ U(r, {
|
|
3457
|
+
component: "span",
|
|
3458
|
+
className: ba.value,
|
|
3459
|
+
children: [t.toFixed(1), "%"]
|
|
3460
|
+
})]
|
|
3461
|
+
});
|
|
3462
|
+
}, Sa = {
|
|
3398
3463
|
root: "_root_a970n_2",
|
|
3399
3464
|
dot: "_dot_a970n_11"
|
|
3400
|
-
},
|
|
3465
|
+
}, Ca = (e) => {
|
|
3401
3466
|
let { label: t, color: n, ...i } = e;
|
|
3402
3467
|
return /* @__PURE__ */ U(r, {
|
|
3403
|
-
className:
|
|
3468
|
+
className: Sa.root,
|
|
3404
3469
|
style: { "--status-color": `var(--mantine-color-${n}-6)` },
|
|
3405
3470
|
...i,
|
|
3406
3471
|
children: [/* @__PURE__ */ H(r, {
|
|
3407
3472
|
component: "span",
|
|
3408
|
-
className:
|
|
3473
|
+
className: Sa.dot
|
|
3409
3474
|
}), t]
|
|
3410
3475
|
});
|
|
3411
|
-
},
|
|
3476
|
+
}, wa = { root: "_root_1spj2_2" };
|
|
3412
3477
|
//#endregion
|
|
3413
3478
|
//#region src/molecules/data-grid/hm/time-ago-cell.tsx
|
|
3414
3479
|
ot.extend(st);
|
|
3415
|
-
var
|
|
3480
|
+
var Ta = (e) => {
|
|
3416
3481
|
let { date: t, ...n } = e;
|
|
3417
3482
|
return /* @__PURE__ */ H(ce, {
|
|
3418
3483
|
label: ot(t).format("YYYY-MM-DD | HH:mm"),
|
|
3419
3484
|
withArrow: !0,
|
|
3420
3485
|
children: /* @__PURE__ */ H(r, {
|
|
3421
3486
|
component: "span",
|
|
3422
|
-
className:
|
|
3487
|
+
className: wa.root,
|
|
3423
3488
|
...n,
|
|
3424
3489
|
children: ot(t).fromNow()
|
|
3425
3490
|
})
|
|
3426
3491
|
});
|
|
3427
|
-
},
|
|
3492
|
+
}, Ea = {
|
|
3428
3493
|
root: "_root_1tvl9_2",
|
|
3429
3494
|
leftIcon: "_leftIcon_1tvl9_9",
|
|
3430
3495
|
leftImage: "_leftImage_1tvl9_10",
|
|
3431
3496
|
text: "_text_1tvl9_25",
|
|
3432
3497
|
title: "_title_1tvl9_30",
|
|
3433
3498
|
subtitle: "_subtitle_1tvl9_35"
|
|
3434
|
-
},
|
|
3499
|
+
}, Da = (e) => {
|
|
3435
3500
|
let { title: t, subtitle: n, leftIcon: i, leftImage: a, ...o } = e;
|
|
3436
3501
|
return /* @__PURE__ */ U(r, {
|
|
3437
|
-
className:
|
|
3502
|
+
className: Ea.root,
|
|
3438
3503
|
...o,
|
|
3439
3504
|
children: [i ? /* @__PURE__ */ H(r, {
|
|
3440
|
-
className:
|
|
3505
|
+
className: Ea.leftIcon,
|
|
3441
3506
|
children: i
|
|
3442
3507
|
}) : a ? /* @__PURE__ */ H(h, {
|
|
3443
3508
|
src: a,
|
|
3444
3509
|
alt: t,
|
|
3445
|
-
className:
|
|
3510
|
+
className: Ea.leftImage
|
|
3446
3511
|
}) : null, /* @__PURE__ */ U(r, {
|
|
3447
|
-
className:
|
|
3512
|
+
className: Ea.text,
|
|
3448
3513
|
children: [/* @__PURE__ */ H(O, {
|
|
3449
|
-
className:
|
|
3514
|
+
className: Ea.title,
|
|
3450
3515
|
truncate: !0,
|
|
3451
3516
|
children: t
|
|
3452
3517
|
}), n && /* @__PURE__ */ H(O, {
|
|
3453
|
-
className:
|
|
3518
|
+
className: Ea.subtitle,
|
|
3454
3519
|
truncate: !0,
|
|
3455
3520
|
children: n
|
|
3456
3521
|
})]
|
|
3457
3522
|
})]
|
|
3458
3523
|
});
|
|
3459
|
-
},
|
|
3524
|
+
}, Oa = {
|
|
3460
3525
|
root: "_root_12tc0_1",
|
|
3461
3526
|
inner: "_inner_12tc0_24",
|
|
3462
3527
|
rightSection: "_rightSection_12tc0_36",
|
|
@@ -3465,35 +3530,35 @@ var xa = (e) => {
|
|
|
3465
3530
|
leftIcon: "_leftIcon_12tc0_58",
|
|
3466
3531
|
leftImageRoot: "_leftImageRoot_12tc0_74",
|
|
3467
3532
|
leftImage: "_leftImage_12tc0_74"
|
|
3468
|
-
},
|
|
3533
|
+
}, ka = (t) => {
|
|
3469
3534
|
let { flowName: n, subtitle: i, lastUpdated: o, leftIcon: s, leftImage: c, withRightSection: l = !0, onClick: u, onDelete: d, ...f } = t, p = o ? ot(o).format("YYYY-MM-DD | HH:mm") : "";
|
|
3470
3535
|
return /* @__PURE__ */ H(a, {
|
|
3471
3536
|
padding: 0,
|
|
3472
|
-
className:
|
|
3537
|
+
className: Oa.root,
|
|
3473
3538
|
...f,
|
|
3474
3539
|
children: /* @__PURE__ */ U(r, {
|
|
3475
|
-
className:
|
|
3540
|
+
className: Oa.inner,
|
|
3476
3541
|
children: [/* @__PURE__ */ H(a.Section, {
|
|
3477
3542
|
onClick: u,
|
|
3478
3543
|
children: /* @__PURE__ */ U(r, {
|
|
3479
|
-
className:
|
|
3544
|
+
className: Oa.rightSection,
|
|
3480
3545
|
children: [s ? /* @__PURE__ */ H(r, {
|
|
3481
|
-
className:
|
|
3546
|
+
className: Oa.leftIcon,
|
|
3482
3547
|
children: s
|
|
3483
3548
|
}) : c ? /* @__PURE__ */ H(r, {
|
|
3484
|
-
className:
|
|
3549
|
+
className: Oa.leftImageRoot,
|
|
3485
3550
|
children: /* @__PURE__ */ H(h, {
|
|
3486
3551
|
src: c,
|
|
3487
3552
|
alt: c
|
|
3488
3553
|
})
|
|
3489
3554
|
}) : null, /* @__PURE__ */ U(r, { children: [/* @__PURE__ */ H(r, {
|
|
3490
|
-
className:
|
|
3555
|
+
className: Oa.flowName,
|
|
3491
3556
|
children: n
|
|
3492
3557
|
}), i ? /* @__PURE__ */ H(r, {
|
|
3493
|
-
className:
|
|
3558
|
+
className: Oa.subtitle,
|
|
3494
3559
|
children: i
|
|
3495
3560
|
}) : /* @__PURE__ */ U(r, {
|
|
3496
|
-
className:
|
|
3561
|
+
className: Oa.subtitle,
|
|
3497
3562
|
children: [
|
|
3498
3563
|
/* @__PURE__ */ H(Ae, {}),
|
|
3499
3564
|
" ",
|
|
@@ -3511,13 +3576,13 @@ var xa = (e) => {
|
|
|
3511
3576
|
}) })]
|
|
3512
3577
|
})
|
|
3513
3578
|
});
|
|
3514
|
-
},
|
|
3579
|
+
}, Aa = {
|
|
3515
3580
|
root: "_root_1pu9q_1",
|
|
3516
3581
|
navbar: "_navbar_1pu9q_10",
|
|
3517
3582
|
bottomMenu: "_bottomMenu_1pu9q_31",
|
|
3518
3583
|
logo: "_logo_1pu9q_35",
|
|
3519
3584
|
link: "_link_1pu9q_41"
|
|
3520
|
-
},
|
|
3585
|
+
}, ja = (e) => {
|
|
3521
3586
|
let { label: t, onClick: n, color: r, to: i, children: a } = e, [o, s] = z(!1);
|
|
3522
3587
|
return /* @__PURE__ */ H(Vn, {
|
|
3523
3588
|
to: i,
|
|
@@ -3533,22 +3598,22 @@ var xa = (e) => {
|
|
|
3533
3598
|
variant: "subtle",
|
|
3534
3599
|
onClick: n,
|
|
3535
3600
|
mod: [{ active: o }],
|
|
3536
|
-
className:
|
|
3601
|
+
className: Aa.link,
|
|
3537
3602
|
children: a
|
|
3538
3603
|
})
|
|
3539
3604
|
})
|
|
3540
3605
|
});
|
|
3541
|
-
},
|
|
3606
|
+
}, Ma = (e) => {
|
|
3542
3607
|
let { modules: t, ...n } = e, i = F((e) => e.filter((e) => e.isIndex)[0], [t]), a = F((e) => e.filter((e) => !e.isBottom), [t]), s = F((e) => e.filter((e) => e.isBottom).sort((e, t) => e.label.localeCompare(t.label)), [t]);
|
|
3543
3608
|
return i(t), /* @__PURE__ */ H(r, {
|
|
3544
|
-
className:
|
|
3609
|
+
className: Aa.root,
|
|
3545
3610
|
component: "nav",
|
|
3546
3611
|
...n,
|
|
3547
3612
|
children: /* @__PURE__ */ U(r, {
|
|
3548
|
-
className:
|
|
3613
|
+
className: Aa.navbar,
|
|
3549
3614
|
children: [
|
|
3550
3615
|
/* @__PURE__ */ H(o, { children: /* @__PURE__ */ H(p, {
|
|
3551
|
-
className:
|
|
3616
|
+
className: Aa.logo,
|
|
3552
3617
|
children: /* @__PURE__ */ H(Rn, {})
|
|
3553
3618
|
}) }),
|
|
3554
3619
|
/* @__PURE__ */ H(p, {
|
|
@@ -3558,7 +3623,7 @@ var xa = (e) => {
|
|
|
3558
3623
|
children: /* @__PURE__ */ H(T, {
|
|
3559
3624
|
justify: "center",
|
|
3560
3625
|
gap: "sm",
|
|
3561
|
-
children: a(t).map((e) => /* @__PURE__ */ H(
|
|
3626
|
+
children: a(t).map((e) => /* @__PURE__ */ H(ja, {
|
|
3562
3627
|
to: e.to ?? "",
|
|
3563
3628
|
color: e.color,
|
|
3564
3629
|
label: e.label,
|
|
@@ -3569,12 +3634,12 @@ var xa = (e) => {
|
|
|
3569
3634
|
/* @__PURE__ */ H(p, {
|
|
3570
3635
|
grow: !0,
|
|
3571
3636
|
component: "section",
|
|
3572
|
-
className:
|
|
3637
|
+
className: Aa.bottomMenu,
|
|
3573
3638
|
children: /* @__PURE__ */ H(T, {
|
|
3574
3639
|
justify: "flex-end",
|
|
3575
3640
|
align: "stretch",
|
|
3576
3641
|
gap: "sm",
|
|
3577
|
-
children: s(t).map((e) => /* @__PURE__ */ H(
|
|
3642
|
+
children: s(t).map((e) => /* @__PURE__ */ H(ja, {
|
|
3578
3643
|
to: e.to ?? "",
|
|
3579
3644
|
color: e.color,
|
|
3580
3645
|
label: e.label,
|
|
@@ -3585,11 +3650,11 @@ var xa = (e) => {
|
|
|
3585
3650
|
]
|
|
3586
3651
|
})
|
|
3587
3652
|
});
|
|
3588
|
-
},
|
|
3653
|
+
}, Na = {
|
|
3589
3654
|
bottombar: "_bottombar_13qxs_1",
|
|
3590
3655
|
list: "_list_13qxs_23",
|
|
3591
3656
|
link: "_link_13qxs_57"
|
|
3592
|
-
},
|
|
3657
|
+
}, Pa = (e) => {
|
|
3593
3658
|
let { icon: t, label: n, onClick: r, color: i, to: a } = e, [o, s] = z(!1);
|
|
3594
3659
|
return /* @__PURE__ */ H(Vn, {
|
|
3595
3660
|
to: a,
|
|
@@ -3604,27 +3669,27 @@ var xa = (e) => {
|
|
|
3604
3669
|
children: /* @__PURE__ */ H(le, {
|
|
3605
3670
|
onClick: r,
|
|
3606
3671
|
mod: [{ active: o }],
|
|
3607
|
-
className:
|
|
3672
|
+
className: Na.link,
|
|
3608
3673
|
children: /* @__PURE__ */ H(t, { stroke: 1.5 })
|
|
3609
3674
|
})
|
|
3610
3675
|
})
|
|
3611
3676
|
});
|
|
3612
|
-
},
|
|
3613
|
-
|
|
3614
|
-
var
|
|
3677
|
+
}, Fa = document.createElement("div"), Ia = "#hm-overlay-bottom";
|
|
3678
|
+
Fa.id = Ia;
|
|
3679
|
+
var La = (e) => {
|
|
3615
3680
|
let { modules: t, visible: n } = e;
|
|
3616
|
-
I(() => (n && document.body.appendChild(
|
|
3681
|
+
I(() => (n && document.body.appendChild(Fa), () => document.getElementById(Ia)?.remove()), [n]);
|
|
3617
3682
|
let i = F((e) => e.filter((e) => !e.isBottom), [t]), a = F((e) => e.filter((e) => e.isBottom).sort((e, t) => e.label.localeCompare(t.label)), [t]);
|
|
3618
3683
|
return /* @__PURE__ */ H(S, {
|
|
3619
|
-
target:
|
|
3684
|
+
target: Fa,
|
|
3620
3685
|
children: /* @__PURE__ */ H(r, {
|
|
3621
3686
|
component: "nav",
|
|
3622
|
-
className:
|
|
3687
|
+
className: Na.bottombar,
|
|
3623
3688
|
children: /* @__PURE__ */ H(p, {
|
|
3624
3689
|
grow: !0,
|
|
3625
3690
|
component: "section",
|
|
3626
|
-
className:
|
|
3627
|
-
children: [...i(t), ...a(t)].map((e) => /* @__PURE__ */ H(
|
|
3691
|
+
className: Na.list,
|
|
3692
|
+
children: [...i(t), ...a(t)].map((e) => /* @__PURE__ */ H(Pa, {
|
|
3628
3693
|
to: e.to ?? "",
|
|
3629
3694
|
color: e.color,
|
|
3630
3695
|
label: e.label,
|
|
@@ -3633,29 +3698,29 @@ var Na = (e) => {
|
|
|
3633
3698
|
})
|
|
3634
3699
|
})
|
|
3635
3700
|
});
|
|
3636
|
-
},
|
|
3701
|
+
}, Ra = {
|
|
3637
3702
|
header: "_header_145xe_2",
|
|
3638
3703
|
featureBar: "_featureBar_145xe_24",
|
|
3639
3704
|
title: "_title_145xe_44",
|
|
3640
3705
|
searchBar: "_searchBar_145xe_52"
|
|
3641
|
-
},
|
|
3642
|
-
|
|
3643
|
-
var
|
|
3706
|
+
}, za = document.createElement("div"), Ba = "#hm-overlay-header";
|
|
3707
|
+
za.id = Ba;
|
|
3708
|
+
var Va = (e) => {
|
|
3644
3709
|
let { moduleName: t, imageSrc: i, offset: a = 0 } = e;
|
|
3645
|
-
return I(() => (document.body.appendChild(
|
|
3646
|
-
target:
|
|
3710
|
+
return I(() => (document.body.appendChild(za), () => document.getElementById(Ba)?.remove()), []), /* @__PURE__ */ H(S, {
|
|
3711
|
+
target: za,
|
|
3647
3712
|
children: /* @__PURE__ */ U(r, {
|
|
3648
3713
|
component: "header",
|
|
3649
|
-
className:
|
|
3714
|
+
className: Ra.header,
|
|
3650
3715
|
children: [/* @__PURE__ */ H(se, {
|
|
3651
3716
|
size: "h1",
|
|
3652
|
-
className:
|
|
3717
|
+
className: Ra.title,
|
|
3653
3718
|
children: t
|
|
3654
3719
|
}), /* @__PURE__ */ U(r, {
|
|
3655
|
-
className:
|
|
3720
|
+
className: Ra.featureBar,
|
|
3656
3721
|
children: [
|
|
3657
3722
|
/* @__PURE__ */ H(Hn, {
|
|
3658
|
-
className:
|
|
3723
|
+
className: Ra.searchBar,
|
|
3659
3724
|
onClick: () => ct.open()
|
|
3660
3725
|
}),
|
|
3661
3726
|
/* @__PURE__ */ H(Un, {}),
|
|
@@ -3669,10 +3734,10 @@ var La = (e) => {
|
|
|
3669
3734
|
})]
|
|
3670
3735
|
})
|
|
3671
3736
|
});
|
|
3672
|
-
},
|
|
3737
|
+
}, Ha = {
|
|
3673
3738
|
mainParent: "_mainParent_tqzon_1",
|
|
3674
3739
|
main: "_main_tqzon_1"
|
|
3675
|
-
},
|
|
3740
|
+
}, Ua = (e) => {
|
|
3676
3741
|
let { modules: t, imageSrc: n, offset: i, withHeader: a = !0, headerMatches: o, ...s } = e, c = $e(), [l, u] = z(""), d = it(`(min-width: ${N().breakpoints.sm})`);
|
|
3677
3742
|
return I(() => {
|
|
3678
3743
|
let e = o?.find(({ matchPath: e }) => c.pathname.startsWith(e));
|
|
@@ -3688,14 +3753,14 @@ var La = (e) => {
|
|
|
3688
3753
|
]), /* @__PURE__ */ H(r, {
|
|
3689
3754
|
...s,
|
|
3690
3755
|
children: /* @__PURE__ */ U(f, { children: [
|
|
3691
|
-
a && /* @__PURE__ */ H(f.Col, { children: /* @__PURE__ */ H(
|
|
3756
|
+
a && /* @__PURE__ */ H(f.Col, { children: /* @__PURE__ */ H(Va, {
|
|
3692
3757
|
moduleName: l,
|
|
3693
3758
|
imageSrc: n,
|
|
3694
3759
|
offset: d ? 80 : void 0
|
|
3695
3760
|
}) }),
|
|
3696
3761
|
/* @__PURE__ */ H(f.Col, {
|
|
3697
3762
|
span: "content",
|
|
3698
|
-
children: d ? /* @__PURE__ */ H(
|
|
3763
|
+
children: d ? /* @__PURE__ */ H(Ma, { modules: t }) : /* @__PURE__ */ H(La, {
|
|
3699
3764
|
modules: t,
|
|
3700
3765
|
visible: !0
|
|
3701
3766
|
})
|
|
@@ -3703,25 +3768,25 @@ var La = (e) => {
|
|
|
3703
3768
|
/* @__PURE__ */ H(f.Col, {
|
|
3704
3769
|
span: "auto",
|
|
3705
3770
|
mod: { header: !a },
|
|
3706
|
-
className:
|
|
3771
|
+
className: Ha.mainParent,
|
|
3707
3772
|
children: /* @__PURE__ */ H(r, {
|
|
3708
3773
|
component: "main",
|
|
3709
|
-
className:
|
|
3774
|
+
className: Ha.main,
|
|
3710
3775
|
children: /* @__PURE__ */ H(Qe, {})
|
|
3711
3776
|
})
|
|
3712
3777
|
})
|
|
3713
3778
|
] })
|
|
3714
3779
|
});
|
|
3715
|
-
},
|
|
3780
|
+
}, Wa = {
|
|
3716
3781
|
root: "_root_yh1ks_1",
|
|
3717
3782
|
header: "_header_yh1ks_8"
|
|
3718
|
-
},
|
|
3783
|
+
}, Ga = (e) => {
|
|
3719
3784
|
let { header: t, itemMinWidth: n = 280, children: i, ...a } = e;
|
|
3720
3785
|
return /* @__PURE__ */ U(r, {
|
|
3721
|
-
className:
|
|
3786
|
+
className: Wa.root,
|
|
3722
3787
|
...a,
|
|
3723
3788
|
children: [t && /* @__PURE__ */ H(r, {
|
|
3724
|
-
className:
|
|
3789
|
+
className: Wa.header,
|
|
3725
3790
|
children: t
|
|
3726
3791
|
}), /* @__PURE__ */ H(ne, {
|
|
3727
3792
|
minColWidth: A(n),
|
|
@@ -3730,15 +3795,15 @@ var La = (e) => {
|
|
|
3730
3795
|
children: i
|
|
3731
3796
|
})]
|
|
3732
3797
|
});
|
|
3733
|
-
},
|
|
3798
|
+
}, Ka = {
|
|
3734
3799
|
root: "_root_1ba37_3",
|
|
3735
3800
|
body: "_body_1ba37_11",
|
|
3736
3801
|
main: "_main_1ba37_23",
|
|
3737
3802
|
aside: "_aside_1ba37_24"
|
|
3738
|
-
},
|
|
3803
|
+
}, qa = (e) => {
|
|
3739
3804
|
let { header: t, aside: n, headerItemMinWidth: i = 220, children: a, ...o } = e;
|
|
3740
3805
|
return /* @__PURE__ */ U(r, {
|
|
3741
|
-
className:
|
|
3806
|
+
className: Ka.root,
|
|
3742
3807
|
...o,
|
|
3743
3808
|
children: [t && /* @__PURE__ */ H(ne, {
|
|
3744
3809
|
minColWidth: A(i),
|
|
@@ -3746,55 +3811,55 @@ var La = (e) => {
|
|
|
3746
3811
|
spacing: "md",
|
|
3747
3812
|
children: t
|
|
3748
3813
|
}), /* @__PURE__ */ U(r, {
|
|
3749
|
-
className:
|
|
3814
|
+
className: Ka.body,
|
|
3750
3815
|
mod: { "with-aside": !!n },
|
|
3751
3816
|
children: [/* @__PURE__ */ H(r, {
|
|
3752
|
-
className:
|
|
3817
|
+
className: Ka.main,
|
|
3753
3818
|
children: a
|
|
3754
3819
|
}), n && /* @__PURE__ */ H(r, {
|
|
3755
3820
|
component: "aside",
|
|
3756
|
-
className:
|
|
3821
|
+
className: Ka.aside,
|
|
3757
3822
|
children: n
|
|
3758
3823
|
})]
|
|
3759
3824
|
})]
|
|
3760
3825
|
});
|
|
3761
|
-
},
|
|
3826
|
+
}, Ja = {
|
|
3762
3827
|
root: "_root_t2qit_4",
|
|
3763
3828
|
grid: "_grid_t2qit_9",
|
|
3764
3829
|
side: "_side_t2qit_20",
|
|
3765
3830
|
detail: "_detail_t2qit_28"
|
|
3766
|
-
},
|
|
3831
|
+
}, Ya = (e) => {
|
|
3767
3832
|
let { side: t, sideWidth: n = 320, sidePosition: i = "left", children: a, ...o } = e;
|
|
3768
3833
|
return /* @__PURE__ */ H(r, {
|
|
3769
|
-
className:
|
|
3834
|
+
className: Ja.root,
|
|
3770
3835
|
mod: { "side-position": i },
|
|
3771
3836
|
style: { "--split-side-width": A(n) },
|
|
3772
3837
|
...o,
|
|
3773
3838
|
children: /* @__PURE__ */ U(r, {
|
|
3774
|
-
className:
|
|
3839
|
+
className: Ja.grid,
|
|
3775
3840
|
children: [/* @__PURE__ */ H(r, {
|
|
3776
|
-
className:
|
|
3841
|
+
className: Ja.side,
|
|
3777
3842
|
children: t
|
|
3778
3843
|
}), /* @__PURE__ */ H(r, {
|
|
3779
|
-
className:
|
|
3844
|
+
className: Ja.detail,
|
|
3780
3845
|
children: a
|
|
3781
3846
|
})]
|
|
3782
3847
|
})
|
|
3783
3848
|
});
|
|
3784
|
-
},
|
|
3849
|
+
}, Xa = pe({}), Za = ({ theme: e, children: t }) => /* @__PURE__ */ H(Xa.Provider, {
|
|
3785
3850
|
value: e,
|
|
3786
3851
|
children: t
|
|
3787
|
-
}),
|
|
3852
|
+
}), Qa = { root: "_root_v8d1j_1" }, $a = {
|
|
3788
3853
|
root: "_root_yctbq_1",
|
|
3789
3854
|
list: "_list_yctbq_12",
|
|
3790
3855
|
tab: "_tab_yctbq_47"
|
|
3791
|
-
},
|
|
3856
|
+
}, eo = { root: "_root_m2ekt_1" }, to = {
|
|
3792
3857
|
xs: "36em",
|
|
3793
3858
|
sm: "48em",
|
|
3794
3859
|
md: "62em",
|
|
3795
3860
|
lg: "75em",
|
|
3796
3861
|
xl: "88em"
|
|
3797
|
-
},
|
|
3862
|
+
}, no = [
|
|
3798
3863
|
"#eeeffe",
|
|
3799
3864
|
"#dee0fd",
|
|
3800
3865
|
"#ced0fc",
|
|
@@ -3814,17 +3879,17 @@ var La = (e) => {
|
|
|
3814
3879
|
"#0d0a28",
|
|
3815
3880
|
"#040313",
|
|
3816
3881
|
"#000003"
|
|
3817
|
-
],
|
|
3882
|
+
], ro = (e, t, n) => {
|
|
3818
3883
|
let r = (e) => [
|
|
3819
3884
|
1,
|
|
3820
3885
|
3,
|
|
3821
3886
|
5
|
|
3822
3887
|
].map((t) => parseInt(e.slice(t, t + 2), 16)), [i, a] = [r(e), r(t)];
|
|
3823
3888
|
return `#${i.map((e, t) => Math.round(e + (a[t] - e) * n).toString(16).padStart(2, "0")).join("")}`;
|
|
3824
|
-
},
|
|
3889
|
+
}, io = ue({
|
|
3825
3890
|
fontFamily: "Roboto, sans-serif",
|
|
3826
3891
|
colors: {
|
|
3827
|
-
primary:
|
|
3892
|
+
primary: no,
|
|
3828
3893
|
secondary: [
|
|
3829
3894
|
"#ffedeb",
|
|
3830
3895
|
"#ffdad7",
|
|
@@ -3940,7 +4005,7 @@ var La = (e) => {
|
|
|
3940
4005
|
["#181818", .08],
|
|
3941
4006
|
["#101010", .08],
|
|
3942
4007
|
["#0a0a0a", .07]
|
|
3943
|
-
].map(([e, t]) =>
|
|
4008
|
+
].map(([e, t]) => ro(e, no[9], t)),
|
|
3944
4009
|
gray: [
|
|
3945
4010
|
["#f8f8f8", .03],
|
|
3946
4011
|
["#f1f1f1", .04],
|
|
@@ -3952,9 +4017,9 @@ var La = (e) => {
|
|
|
3952
4017
|
["#494949", .12],
|
|
3953
4018
|
["#343434", .12],
|
|
3954
4019
|
["#212121", .12]
|
|
3955
|
-
].map(([e, t]) =>
|
|
4020
|
+
].map(([e, t]) => ro(e, no[9], t))
|
|
3956
4021
|
},
|
|
3957
|
-
breakpoints:
|
|
4022
|
+
breakpoints: to,
|
|
3958
4023
|
primaryColor: "primary",
|
|
3959
4024
|
primaryShade: 9,
|
|
3960
4025
|
radius: {
|
|
@@ -3974,7 +4039,7 @@ var La = (e) => {
|
|
|
3974
4039
|
},
|
|
3975
4040
|
components: {
|
|
3976
4041
|
Button: i.extend({
|
|
3977
|
-
classNames:
|
|
4042
|
+
classNames: eo,
|
|
3978
4043
|
defaultProps: {
|
|
3979
4044
|
variant: "filled",
|
|
3980
4045
|
mod: { color: "primary" },
|
|
@@ -3982,7 +4047,7 @@ var La = (e) => {
|
|
|
3982
4047
|
}
|
|
3983
4048
|
}),
|
|
3984
4049
|
ActionIcon: e.extend({
|
|
3985
|
-
classNames:
|
|
4050
|
+
classNames: Qa,
|
|
3986
4051
|
defaultProps: {
|
|
3987
4052
|
variant: "filled",
|
|
3988
4053
|
mod: { color: "primary" },
|
|
@@ -3990,11 +4055,11 @@ var La = (e) => {
|
|
|
3990
4055
|
}
|
|
3991
4056
|
}),
|
|
3992
4057
|
Tabs: D.extend({
|
|
3993
|
-
classNames:
|
|
4058
|
+
classNames: $a,
|
|
3994
4059
|
defaultProps: { variant: "pills" }
|
|
3995
4060
|
})
|
|
3996
4061
|
}
|
|
3997
|
-
}),
|
|
4062
|
+
}), ao = (e) => ({
|
|
3998
4063
|
variables: {
|
|
3999
4064
|
"--mantine-header-offset": e.other.headerOffset,
|
|
4000
4065
|
"--mantine-bar-border-radius": `var(--mantine-radius-${e.other.barBorderRadius})`,
|
|
@@ -4004,28 +4069,28 @@ var La = (e) => {
|
|
|
4004
4069
|
},
|
|
4005
4070
|
light: {},
|
|
4006
4071
|
dark: {}
|
|
4007
|
-
}),
|
|
4072
|
+
}), oo = {
|
|
4008
4073
|
root: "_root_1a5we_1",
|
|
4009
4074
|
input: "_input_1a5we_30"
|
|
4010
|
-
},
|
|
4075
|
+
}, so = pe({}), co = (e) => {
|
|
4011
4076
|
let { children: t, deps: n } = e;
|
|
4012
|
-
return /* @__PURE__ */ H(
|
|
4077
|
+
return /* @__PURE__ */ H(so.Provider, {
|
|
4013
4078
|
value: { deps: n },
|
|
4014
4079
|
children: t
|
|
4015
4080
|
});
|
|
4016
|
-
},
|
|
4081
|
+
}, lo = pe({}), uo = (e) => {
|
|
4017
4082
|
let { children: t, nodeTypes: n } = e;
|
|
4018
|
-
return /* @__PURE__ */ H(
|
|
4083
|
+
return /* @__PURE__ */ H(lo.Provider, {
|
|
4019
4084
|
value: { nodeTypes: n },
|
|
4020
4085
|
children: t
|
|
4021
4086
|
});
|
|
4022
|
-
},
|
|
4087
|
+
}, fo = (e) => {
|
|
4023
4088
|
let { children: t } = e;
|
|
4024
|
-
return /* @__PURE__ */ H(_t, { children: /* @__PURE__ */ H(
|
|
4089
|
+
return /* @__PURE__ */ H(_t, { children: /* @__PURE__ */ H(uo, {
|
|
4025
4090
|
...e,
|
|
4026
4091
|
children: t
|
|
4027
4092
|
}) });
|
|
4028
|
-
},
|
|
4093
|
+
}, po = (e) => {
|
|
4029
4094
|
let { reactFlowWrapper: t, setDrawerOpened: n, setCurrentTab: r } = e, { screenToFlowPosition: i, toObject: a, setViewport: o } = St(), [s, c] = z(null);
|
|
4030
4095
|
return {
|
|
4031
4096
|
clickedPosition: s,
|
|
@@ -4039,34 +4104,34 @@ var La = (e) => {
|
|
|
4039
4104
|
};
|
|
4040
4105
|
}, Q = [];
|
|
4041
4106
|
for (let e = 0; e < 256; ++e) Q.push((e + 256).toString(16).slice(1));
|
|
4042
|
-
function
|
|
4107
|
+
function mo(e, t = 0) {
|
|
4043
4108
|
return (Q[e[t + 0]] + Q[e[t + 1]] + Q[e[t + 2]] + Q[e[t + 3]] + "-" + Q[e[t + 4]] + Q[e[t + 5]] + "-" + Q[e[t + 6]] + Q[e[t + 7]] + "-" + Q[e[t + 8]] + Q[e[t + 9]] + "-" + Q[e[t + 10]] + Q[e[t + 11]] + Q[e[t + 12]] + Q[e[t + 13]] + Q[e[t + 14]] + Q[e[t + 15]]).toLowerCase();
|
|
4044
4109
|
}
|
|
4045
4110
|
//#endregion
|
|
4046
4111
|
//#region node_modules/uuid/dist/rng.js
|
|
4047
|
-
var
|
|
4048
|
-
function
|
|
4049
|
-
return crypto.getRandomValues(
|
|
4112
|
+
var ho = /* @__PURE__ */ new Uint8Array(16);
|
|
4113
|
+
function go() {
|
|
4114
|
+
return crypto.getRandomValues(ho);
|
|
4050
4115
|
}
|
|
4051
4116
|
//#endregion
|
|
4052
4117
|
//#region node_modules/uuid/dist/v4.js
|
|
4053
|
-
function
|
|
4054
|
-
return !t && !e && crypto.randomUUID ? crypto.randomUUID() :
|
|
4118
|
+
function _o(e, t, n) {
|
|
4119
|
+
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : vo(e, t, n);
|
|
4055
4120
|
}
|
|
4056
|
-
function
|
|
4121
|
+
function vo(e, t, n) {
|
|
4057
4122
|
e ||= {};
|
|
4058
|
-
let r = e.random ?? e.rng?.() ??
|
|
4123
|
+
let r = e.random ?? e.rng?.() ?? go();
|
|
4059
4124
|
if (r.length < 16) throw Error("Random bytes length must be >= 16");
|
|
4060
4125
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
4061
4126
|
if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
|
|
4062
4127
|
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
4063
4128
|
return t;
|
|
4064
4129
|
}
|
|
4065
|
-
return
|
|
4130
|
+
return mo(r);
|
|
4066
4131
|
}
|
|
4067
4132
|
//#endregion
|
|
4068
4133
|
//#region src/hm-flow/utils.ts
|
|
4069
|
-
var
|
|
4134
|
+
var yo = (e, t, n, r) => {
|
|
4070
4135
|
let i = r[t] || 0, a = `${e}-${i}`, o = i;
|
|
4071
4136
|
for (; n.some((e) => e.data.label === a);) o++, a = `${e}-${o}`;
|
|
4072
4137
|
let s = {
|
|
@@ -4077,11 +4142,11 @@ var ho = (e, t, n, r) => {
|
|
|
4077
4142
|
name: a,
|
|
4078
4143
|
updatedCounters: s
|
|
4079
4144
|
};
|
|
4080
|
-
},
|
|
4145
|
+
}, bo = (e) => {
|
|
4081
4146
|
let { defaultActions: t } = e, n = F((e) => {
|
|
4082
4147
|
let { node: t, deps: n } = e, { nodes: r, stateJoinsNode: i, nodeCounters: a, clickedPosition: o, setDrawerOpened: s, currentNode: c, setEdges: l, setNodeCounters: u, setNodes: d, setStateJoinsNode: f } = n;
|
|
4083
4148
|
if (!t) return;
|
|
4084
|
-
let { name: p, updatedCounters: m } =
|
|
4149
|
+
let { name: p, updatedCounters: m } = yo(t.data.label, t.id, r, a);
|
|
4085
4150
|
if (c && i) {
|
|
4086
4151
|
if (!c || !c.position) {
|
|
4087
4152
|
console.error("Source node is invalid or missing position.");
|
|
@@ -4091,7 +4156,7 @@ var ho = (e, t, n, r) => {
|
|
|
4091
4156
|
x: c.position.x + 150,
|
|
4092
4157
|
y: c.position.y
|
|
4093
4158
|
}, n = {
|
|
4094
|
-
id:
|
|
4159
|
+
id: _o(),
|
|
4095
4160
|
type: t.type,
|
|
4096
4161
|
position: e,
|
|
4097
4162
|
data: {
|
|
@@ -4104,13 +4169,13 @@ var ho = (e, t, n, r) => {
|
|
|
4104
4169
|
}
|
|
4105
4170
|
};
|
|
4106
4171
|
d((e) => [...e, n]), u(m), l((e) => [...e, {
|
|
4107
|
-
id:
|
|
4172
|
+
id: _o(),
|
|
4108
4173
|
source: c.id,
|
|
4109
4174
|
target: n.id
|
|
4110
4175
|
}]), s(!1), f(!1);
|
|
4111
4176
|
} else if (o) {
|
|
4112
4177
|
let e = {
|
|
4113
|
-
id:
|
|
4178
|
+
id: _o(),
|
|
4114
4179
|
type: t.type,
|
|
4115
4180
|
position: {
|
|
4116
4181
|
x: o.x,
|
|
@@ -4135,10 +4200,10 @@ var ho = (e, t, n, r) => {
|
|
|
4135
4200
|
o((e) => {
|
|
4136
4201
|
let t = e.find((e) => e.id === r);
|
|
4137
4202
|
if (!t) return e;
|
|
4138
|
-
let n = t.data.label, o = t.data.name, { name: s, updatedCounters: c } =
|
|
4203
|
+
let n = t.data.label, o = t.data.name, { name: s, updatedCounters: c } = yo(n, o, e, i), l = {
|
|
4139
4204
|
x: t.position.x + 70,
|
|
4140
4205
|
y: t.position.y + 70
|
|
4141
|
-
}, u =
|
|
4206
|
+
}, u = _o(), d = {
|
|
4142
4207
|
...t,
|
|
4143
4208
|
id: u,
|
|
4144
4209
|
position: l,
|
|
@@ -4218,7 +4283,7 @@ var ho = (e, t, n, r) => {
|
|
|
4218
4283
|
onUpdateNode: c,
|
|
4219
4284
|
searchNode: l
|
|
4220
4285
|
};
|
|
4221
|
-
},
|
|
4286
|
+
}, xo = (e) => {
|
|
4222
4287
|
let { onHmflowSave: t, onHmflowRun: n, onHmflowDelete: r, headerActions: i, bottomActions: a, defaultHmFlowMetadata: o = {
|
|
4223
4288
|
name: "default",
|
|
4224
4289
|
description: "",
|
|
@@ -4289,25 +4354,25 @@ var ho = (e, t, n, r) => {
|
|
|
4289
4354
|
};
|
|
4290
4355
|
}) : []
|
|
4291
4356
|
};
|
|
4292
|
-
},
|
|
4357
|
+
}, So = Object.defineProperty, Co = (e, t, n) => t in e ? So(e, t, {
|
|
4293
4358
|
enumerable: !0,
|
|
4294
4359
|
configurable: !0,
|
|
4295
4360
|
writable: !0,
|
|
4296
4361
|
value: n
|
|
4297
|
-
}) : e[t] = n,
|
|
4298
|
-
for (var n in t)
|
|
4362
|
+
}) : e[t] = n, wo = (e, t) => {
|
|
4363
|
+
for (var n in t) So(e, n, {
|
|
4299
4364
|
get: t[n],
|
|
4300
4365
|
enumerable: !0
|
|
4301
4366
|
});
|
|
4302
|
-
},
|
|
4303
|
-
|
|
4367
|
+
}, To = (e, t, n) => Co(e, typeof t == "symbol" ? t : t + "", n), Eo = {};
|
|
4368
|
+
wo(Eo, {
|
|
4304
4369
|
Graph: () => $,
|
|
4305
|
-
alg: () =>
|
|
4306
|
-
json: () =>
|
|
4307
|
-
version: () =>
|
|
4370
|
+
alg: () => Bo,
|
|
4371
|
+
json: () => Fo,
|
|
4372
|
+
version: () => Po
|
|
4308
4373
|
});
|
|
4309
|
-
var
|
|
4310
|
-
for (var n in t)
|
|
4374
|
+
var Do = Object.defineProperty, Oo = (e, t) => {
|
|
4375
|
+
for (var n in t) Do(e, n, {
|
|
4311
4376
|
get: t[n],
|
|
4312
4377
|
enumerable: !0
|
|
4313
4378
|
});
|
|
@@ -4446,15 +4511,15 @@ var Co = Object.defineProperty, wo = (e, t) => {
|
|
|
4446
4511
|
setEdge(e, t, n, r) {
|
|
4447
4512
|
let i, a, o, s, c = !1;
|
|
4448
4513
|
typeof e == "object" && e && "v" in e ? (i = e.v, a = e.w, o = e.name, arguments.length === 2 && (s = t, c = !0)) : (i = e, a = t, o = r, arguments.length > 2 && (s = n, c = !0)), i = "" + i, a = "" + a, o !== void 0 && (o = "" + o);
|
|
4449
|
-
let l =
|
|
4514
|
+
let l = jo(this._isDirected, i, a, o);
|
|
4450
4515
|
if (l in this._edgeLabels) return c && (this._edgeLabels[l] = s), this;
|
|
4451
4516
|
if (o !== void 0 && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
|
|
4452
4517
|
this.setNode(i), this.setNode(a), this._edgeLabels[l] = c ? s : this._defaultEdgeLabelFn(i, a, o);
|
|
4453
|
-
let u =
|
|
4454
|
-
return i = u.v, a = u.w, Object.freeze(u), this._edgeObjs[l] = u,
|
|
4518
|
+
let u = Mo(this._isDirected, i, a, o);
|
|
4519
|
+
return i = u.v, a = u.w, Object.freeze(u), this._edgeObjs[l] = u, ko(this._preds[a], i), ko(this._sucs[i], a), this._in[a][l] = u, this._out[i][l] = u, this._edgeCount++, this;
|
|
4455
4520
|
}
|
|
4456
4521
|
edge(e, t, n) {
|
|
4457
|
-
let r = arguments.length === 1 ?
|
|
4522
|
+
let r = arguments.length === 1 ? No(this._isDirected, e) : jo(this._isDirected, e, t, n);
|
|
4458
4523
|
return this._edgeLabels[r];
|
|
4459
4524
|
}
|
|
4460
4525
|
edgeAsObj(e, t, n) {
|
|
@@ -4462,13 +4527,13 @@ var Co = Object.defineProperty, wo = (e, t) => {
|
|
|
4462
4527
|
return typeof r == "object" ? r : { label: r };
|
|
4463
4528
|
}
|
|
4464
4529
|
hasEdge(e, t, n) {
|
|
4465
|
-
return (arguments.length === 1 ?
|
|
4530
|
+
return (arguments.length === 1 ? No(this._isDirected, e) : jo(this._isDirected, e, t, n)) in this._edgeLabels;
|
|
4466
4531
|
}
|
|
4467
4532
|
removeEdge(e, t, n) {
|
|
4468
|
-
let r = arguments.length === 1 ?
|
|
4533
|
+
let r = arguments.length === 1 ? No(this._isDirected, e) : jo(this._isDirected, e, t, n), i = this._edgeObjs[r];
|
|
4469
4534
|
if (i) {
|
|
4470
4535
|
let e = i.v, t = i.w;
|
|
4471
|
-
delete this._edgeLabels[r], delete this._edgeObjs[r],
|
|
4536
|
+
delete this._edgeLabels[r], delete this._edgeObjs[r], Ao(this._preds[t], e), Ao(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--;
|
|
4472
4537
|
}
|
|
4473
4538
|
return this;
|
|
4474
4539
|
}
|
|
@@ -4493,13 +4558,13 @@ var Co = Object.defineProperty, wo = (e, t) => {
|
|
|
4493
4558
|
return n ? r.filter((e) => e.v === t && e.w === n || e.v === n && e.w === t) : r;
|
|
4494
4559
|
}
|
|
4495
4560
|
};
|
|
4496
|
-
function
|
|
4561
|
+
function ko(e, t) {
|
|
4497
4562
|
e[t] ? e[t]++ : e[t] = 1;
|
|
4498
4563
|
}
|
|
4499
|
-
function
|
|
4564
|
+
function Ao(e, t) {
|
|
4500
4565
|
e[t] !== void 0 && !--e[t] && delete e[t];
|
|
4501
4566
|
}
|
|
4502
|
-
function
|
|
4567
|
+
function jo(e, t, n, r) {
|
|
4503
4568
|
let i = "" + t, a = "" + n;
|
|
4504
4569
|
if (!e && i > a) {
|
|
4505
4570
|
let e = i;
|
|
@@ -4507,7 +4572,7 @@ function Do(e, t, n, r) {
|
|
|
4507
4572
|
}
|
|
4508
4573
|
return i + "" + a + "" + (r === void 0 ? "\0" : r);
|
|
4509
4574
|
}
|
|
4510
|
-
function
|
|
4575
|
+
function Mo(e, t, n, r) {
|
|
4511
4576
|
let i = "" + t, a = "" + n;
|
|
4512
4577
|
if (!e && i > a) {
|
|
4513
4578
|
let e = i;
|
|
@@ -4519,33 +4584,33 @@ function Oo(e, t, n, r) {
|
|
|
4519
4584
|
};
|
|
4520
4585
|
return r && (o.name = r), o;
|
|
4521
4586
|
}
|
|
4522
|
-
function
|
|
4523
|
-
return
|
|
4587
|
+
function No(e, t) {
|
|
4588
|
+
return jo(e, t.v, t.w, t.name);
|
|
4524
4589
|
}
|
|
4525
|
-
var
|
|
4526
|
-
|
|
4527
|
-
read: () =>
|
|
4528
|
-
write: () =>
|
|
4590
|
+
var Po = "4.0.1", Fo = {};
|
|
4591
|
+
Oo(Fo, {
|
|
4592
|
+
read: () => zo,
|
|
4593
|
+
write: () => Io
|
|
4529
4594
|
});
|
|
4530
|
-
function
|
|
4595
|
+
function Io(e) {
|
|
4531
4596
|
let t = {
|
|
4532
4597
|
options: {
|
|
4533
4598
|
directed: e.isDirected(),
|
|
4534
4599
|
multigraph: e.isMultigraph(),
|
|
4535
4600
|
compound: e.isCompound()
|
|
4536
4601
|
},
|
|
4537
|
-
nodes:
|
|
4538
|
-
edges:
|
|
4602
|
+
nodes: Lo(e),
|
|
4603
|
+
edges: Ro(e)
|
|
4539
4604
|
}, n = e.graph();
|
|
4540
4605
|
return n !== void 0 && (t.value = structuredClone(n)), t;
|
|
4541
4606
|
}
|
|
4542
|
-
function
|
|
4607
|
+
function Lo(e) {
|
|
4543
4608
|
return e.nodes().map((t) => {
|
|
4544
4609
|
let n = e.node(t), r = e.parent(t), i = { v: t };
|
|
4545
4610
|
return n !== void 0 && (i.value = n), r !== void 0 && (i.parent = r), i;
|
|
4546
4611
|
});
|
|
4547
4612
|
}
|
|
4548
|
-
function
|
|
4613
|
+
function Ro(e) {
|
|
4549
4614
|
return e.edges().map((t) => {
|
|
4550
4615
|
let n = e.edge(t), r = {
|
|
4551
4616
|
v: t.v,
|
|
@@ -4554,7 +4619,7 @@ function Po(e) {
|
|
|
4554
4619
|
return t.name !== void 0 && (r.name = t.name), n !== void 0 && (r.value = n), r;
|
|
4555
4620
|
});
|
|
4556
4621
|
}
|
|
4557
|
-
function
|
|
4622
|
+
function zo(e) {
|
|
4558
4623
|
let t = new $(e.options);
|
|
4559
4624
|
return e.value !== void 0 && t.setGraph(e.value), e.nodes.forEach((e) => {
|
|
4560
4625
|
t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent);
|
|
@@ -4566,30 +4631,30 @@ function Fo(e) {
|
|
|
4566
4631
|
}, e.value);
|
|
4567
4632
|
}), t;
|
|
4568
4633
|
}
|
|
4569
|
-
var
|
|
4570
|
-
|
|
4571
|
-
CycleException: () =>
|
|
4572
|
-
bellmanFord: () =>
|
|
4573
|
-
components: () =>
|
|
4574
|
-
dijkstra: () =>
|
|
4575
|
-
dijkstraAll: () =>
|
|
4576
|
-
findCycles: () =>
|
|
4577
|
-
floydWarshall: () =>
|
|
4578
|
-
isAcyclic: () =>
|
|
4579
|
-
postorder: () =>
|
|
4580
|
-
preorder: () =>
|
|
4581
|
-
prim: () =>
|
|
4582
|
-
shortestPaths: () =>
|
|
4583
|
-
tarjan: () =>
|
|
4584
|
-
topsort: () =>
|
|
4634
|
+
var Bo = {};
|
|
4635
|
+
Oo(Bo, {
|
|
4636
|
+
CycleException: () => ts,
|
|
4637
|
+
bellmanFord: () => Ho,
|
|
4638
|
+
components: () => Wo,
|
|
4639
|
+
dijkstra: () => qo,
|
|
4640
|
+
dijkstraAll: () => Yo,
|
|
4641
|
+
findCycles: () => Zo,
|
|
4642
|
+
floydWarshall: () => $o,
|
|
4643
|
+
isAcyclic: () => rs,
|
|
4644
|
+
postorder: () => ss,
|
|
4645
|
+
preorder: () => cs,
|
|
4646
|
+
prim: () => ls,
|
|
4647
|
+
shortestPaths: () => us,
|
|
4648
|
+
tarjan: () => Xo,
|
|
4649
|
+
topsort: () => ns
|
|
4585
4650
|
});
|
|
4586
|
-
var
|
|
4587
|
-
function
|
|
4588
|
-
return
|
|
4651
|
+
var Vo = () => 1;
|
|
4652
|
+
function Ho(e, t, n, r) {
|
|
4653
|
+
return Uo(e, String(t), n || Vo, r || function(t) {
|
|
4589
4654
|
return e.outEdges(t);
|
|
4590
4655
|
});
|
|
4591
4656
|
}
|
|
4592
|
-
function
|
|
4657
|
+
function Uo(e, t, n, r) {
|
|
4593
4658
|
let i = {}, a, o = 0, s = e.nodes(), c = function(e) {
|
|
4594
4659
|
let t = n(e);
|
|
4595
4660
|
i[e.v].distance + t < i[e.w].distance && (i[e.w] = {
|
|
@@ -4618,7 +4683,7 @@ function zo(e, t, n, r) {
|
|
|
4618
4683
|
if (o === u - 1 && (a = !1, l(), a)) throw Error("The graph contains a negative weight cycle");
|
|
4619
4684
|
return i;
|
|
4620
4685
|
}
|
|
4621
|
-
function
|
|
4686
|
+
function Wo(e) {
|
|
4622
4687
|
let t = {}, n = [], r;
|
|
4623
4688
|
function i(n) {
|
|
4624
4689
|
n in t || (t[n] = !0, r.push(n), e.successors(n).forEach(i), e.predecessors(n).forEach(i));
|
|
@@ -4627,7 +4692,7 @@ function Bo(e) {
|
|
|
4627
4692
|
r = [], i(e), r.length && n.push(r);
|
|
4628
4693
|
}), n;
|
|
4629
4694
|
}
|
|
4630
|
-
var
|
|
4695
|
+
var Go = class {
|
|
4631
4696
|
constructor() {
|
|
4632
4697
|
this._arr = [], this._keyIndices = {};
|
|
4633
4698
|
}
|
|
@@ -4683,14 +4748,14 @@ var Vo = class {
|
|
|
4683
4748
|
let n = this._arr, r = this._keyIndices, i = n[e], a = n[t];
|
|
4684
4749
|
n[e] = a, n[t] = i, r[a.key] = e, r[i.key] = t;
|
|
4685
4750
|
}
|
|
4686
|
-
},
|
|
4687
|
-
function
|
|
4688
|
-
return
|
|
4751
|
+
}, Ko = () => 1;
|
|
4752
|
+
function qo(e, t, n, r) {
|
|
4753
|
+
return Jo(e, String(t), n || Ko, r || function(t) {
|
|
4689
4754
|
return e.outEdges(t);
|
|
4690
4755
|
});
|
|
4691
4756
|
}
|
|
4692
|
-
function
|
|
4693
|
-
let i = {}, a = new
|
|
4757
|
+
function Jo(e, t, n, r) {
|
|
4758
|
+
let i = {}, a = new Go(), o, s, c = function(e) {
|
|
4694
4759
|
let t = e.v === o ? e.w : e.v, r = i[t], c = n(e), l = s.distance + c;
|
|
4695
4760
|
if (c < 0) throw Error("dijkstra does not allow negative edge weights. Bad edge: " + e + " Weight: " + c);
|
|
4696
4761
|
l < r.distance && (r.distance = l, r.predecessor = o, a.decrease(t, l));
|
|
@@ -4704,12 +4769,12 @@ function Wo(e, t, n, r) {
|
|
|
4704
4769
|
}); a.size() > 0 && (o = a.removeMin(), s = i[o], s.distance !== Infinity);) r(o).forEach(c);
|
|
4705
4770
|
return i;
|
|
4706
4771
|
}
|
|
4707
|
-
function
|
|
4772
|
+
function Yo(e, t, n) {
|
|
4708
4773
|
return e.nodes().reduce(function(r, i) {
|
|
4709
|
-
return r[i] =
|
|
4774
|
+
return r[i] = qo(e, i, t, n), r;
|
|
4710
4775
|
}, {});
|
|
4711
4776
|
}
|
|
4712
|
-
function
|
|
4777
|
+
function Xo(e) {
|
|
4713
4778
|
let t = 0, n = [], r = {}, i = [];
|
|
4714
4779
|
function a(o) {
|
|
4715
4780
|
let s = r[o] = {
|
|
@@ -4731,18 +4796,18 @@ function Ko(e) {
|
|
|
4731
4796
|
e in r || a(e);
|
|
4732
4797
|
}), i;
|
|
4733
4798
|
}
|
|
4734
|
-
function
|
|
4735
|
-
return
|
|
4799
|
+
function Zo(e) {
|
|
4800
|
+
return Xo(e).filter(function(t) {
|
|
4736
4801
|
return t.length > 1 || t.length === 1 && e.hasEdge(t[0], t[0]);
|
|
4737
4802
|
});
|
|
4738
4803
|
}
|
|
4739
|
-
var
|
|
4740
|
-
function
|
|
4741
|
-
return
|
|
4804
|
+
var Qo = () => 1;
|
|
4805
|
+
function $o(e, t, n) {
|
|
4806
|
+
return es(e, t || Qo, n || function(t) {
|
|
4742
4807
|
return e.outEdges(t);
|
|
4743
4808
|
});
|
|
4744
4809
|
}
|
|
4745
|
-
function
|
|
4810
|
+
function es(e, t, n) {
|
|
4746
4811
|
let r = {}, i = e.nodes();
|
|
4747
4812
|
return i.forEach(function(e) {
|
|
4748
4813
|
r[e] = {}, r[e][e] = {
|
|
@@ -4771,55 +4836,55 @@ function Xo(e, t, n) {
|
|
|
4771
4836
|
});
|
|
4772
4837
|
}), r;
|
|
4773
4838
|
}
|
|
4774
|
-
var
|
|
4839
|
+
var ts = class extends Error {
|
|
4775
4840
|
constructor(...e) {
|
|
4776
4841
|
super(...e);
|
|
4777
4842
|
}
|
|
4778
4843
|
};
|
|
4779
|
-
function
|
|
4844
|
+
function ns(e) {
|
|
4780
4845
|
let t = {}, n = {}, r = [];
|
|
4781
4846
|
function i(a) {
|
|
4782
|
-
if (a in n) throw new
|
|
4847
|
+
if (a in n) throw new ts();
|
|
4783
4848
|
a in t || (n[a] = !0, t[a] = !0, e.predecessors(a).forEach(i), delete n[a], r.push(a));
|
|
4784
4849
|
}
|
|
4785
|
-
if (e.sinks().forEach(i), Object.keys(t).length !== e.nodeCount()) throw new
|
|
4850
|
+
if (e.sinks().forEach(i), Object.keys(t).length !== e.nodeCount()) throw new ts();
|
|
4786
4851
|
return r;
|
|
4787
4852
|
}
|
|
4788
|
-
function
|
|
4853
|
+
function rs(e) {
|
|
4789
4854
|
try {
|
|
4790
|
-
|
|
4855
|
+
ns(e);
|
|
4791
4856
|
} catch (e) {
|
|
4792
|
-
if (e instanceof
|
|
4857
|
+
if (e instanceof ts) return !1;
|
|
4793
4858
|
throw e;
|
|
4794
4859
|
}
|
|
4795
4860
|
return !0;
|
|
4796
4861
|
}
|
|
4797
|
-
function
|
|
4862
|
+
function is(e, t, n, r, i) {
|
|
4798
4863
|
Array.isArray(t) || (t = [t]);
|
|
4799
4864
|
let a = ((t) => (e.isDirected() ? e.successors(t) : e.neighbors(t)) ?? []), o = {};
|
|
4800
4865
|
return t.forEach(function(t) {
|
|
4801
4866
|
if (!e.hasNode(t)) throw Error("Graph does not have node: " + t);
|
|
4802
|
-
i =
|
|
4867
|
+
i = as(e, t, n === "post", o, a, r, i);
|
|
4803
4868
|
}), i;
|
|
4804
4869
|
}
|
|
4805
|
-
function
|
|
4870
|
+
function as(e, t, n, r, i, a, o) {
|
|
4806
4871
|
return t in r || (r[t] = !0, n || (o = a(o, t)), i(t).forEach(function(t) {
|
|
4807
|
-
o =
|
|
4872
|
+
o = as(e, t, n, r, i, a, o);
|
|
4808
4873
|
}), n && (o = a(o, t))), o;
|
|
4809
4874
|
}
|
|
4810
|
-
function
|
|
4811
|
-
return
|
|
4875
|
+
function os(e, t, n) {
|
|
4876
|
+
return is(e, t, n, function(e, t) {
|
|
4812
4877
|
return e.push(t), e;
|
|
4813
4878
|
}, []);
|
|
4814
4879
|
}
|
|
4815
|
-
function
|
|
4816
|
-
return
|
|
4880
|
+
function ss(e, t) {
|
|
4881
|
+
return os(e, t, "post");
|
|
4817
4882
|
}
|
|
4818
|
-
function
|
|
4819
|
-
return
|
|
4883
|
+
function cs(e, t) {
|
|
4884
|
+
return os(e, t, "pre");
|
|
4820
4885
|
}
|
|
4821
|
-
function
|
|
4822
|
-
let n = new $(), r = {}, i = new
|
|
4886
|
+
function ls(e, t) {
|
|
4887
|
+
let n = new $(), r = {}, i = new Go(), a;
|
|
4823
4888
|
function o(e) {
|
|
4824
4889
|
let n = e.v === a ? e.w : e.v, o = i.priority(n);
|
|
4825
4890
|
if (o !== void 0) {
|
|
@@ -4842,11 +4907,11 @@ function as(e, t) {
|
|
|
4842
4907
|
}
|
|
4843
4908
|
return n;
|
|
4844
4909
|
}
|
|
4845
|
-
function
|
|
4846
|
-
return
|
|
4910
|
+
function us(e, t, n, r) {
|
|
4911
|
+
return ds(e, t, n, r ?? ((t) => e.outEdges(t) ?? []));
|
|
4847
4912
|
}
|
|
4848
|
-
function
|
|
4849
|
-
if (n === void 0) return
|
|
4913
|
+
function ds(e, t, n, r) {
|
|
4914
|
+
if (n === void 0) return qo(e, t, n, r);
|
|
4850
4915
|
let i = !1, a = e.nodes();
|
|
4851
4916
|
for (let o = 0; o < a.length; o++) {
|
|
4852
4917
|
let s = r(a[o]);
|
|
@@ -4857,16 +4922,16 @@ function ss(e, t, n, r) {
|
|
|
4857
4922
|
w: r === t.v ? t.w : t.v
|
|
4858
4923
|
}) < 0 && (i = !0);
|
|
4859
4924
|
}
|
|
4860
|
-
if (i) return
|
|
4925
|
+
if (i) return Ho(e, t, n, r);
|
|
4861
4926
|
}
|
|
4862
|
-
return
|
|
4927
|
+
return qo(e, t, n, r);
|
|
4863
4928
|
}
|
|
4864
|
-
function
|
|
4929
|
+
function fs(e, t, n, r) {
|
|
4865
4930
|
let i = r;
|
|
4866
|
-
for (; e.hasNode(i);) i =
|
|
4931
|
+
for (; e.hasNode(i);) i = Os(r);
|
|
4867
4932
|
return n.dummy = t, e.setNode(i, n), i;
|
|
4868
4933
|
}
|
|
4869
|
-
function
|
|
4934
|
+
function ps(e) {
|
|
4870
4935
|
let t = new $().setGraph(e.graph());
|
|
4871
4936
|
return e.nodes().forEach((n) => t.setNode(n, e.node(n))), e.edges().forEach((n) => {
|
|
4872
4937
|
let r = t.edge(n.v, n.w) || {
|
|
@@ -4879,7 +4944,7 @@ function ls(e) {
|
|
|
4879
4944
|
});
|
|
4880
4945
|
}), t;
|
|
4881
4946
|
}
|
|
4882
|
-
function
|
|
4947
|
+
function ms(e) {
|
|
4883
4948
|
let t = new $({ multigraph: e.isMultigraph() }).setGraph(e.graph());
|
|
4884
4949
|
return e.nodes().forEach((n) => {
|
|
4885
4950
|
e.children(n).length || t.setNode(n, e.node(n));
|
|
@@ -4887,7 +4952,7 @@ function us(e) {
|
|
|
4887
4952
|
t.setEdge(n, e.edge(n));
|
|
4888
4953
|
}), t;
|
|
4889
4954
|
}
|
|
4890
|
-
function
|
|
4955
|
+
function hs(e, t) {
|
|
4891
4956
|
let n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2;
|
|
4892
4957
|
if (!i && !a) throw Error("Not possible to find intersection inside of the rectangle");
|
|
4893
4958
|
let c, l;
|
|
@@ -4896,25 +4961,25 @@ function ds(e, t) {
|
|
|
4896
4961
|
y: r + l
|
|
4897
4962
|
};
|
|
4898
4963
|
}
|
|
4899
|
-
function
|
|
4900
|
-
let t =
|
|
4964
|
+
function gs(e) {
|
|
4965
|
+
let t = ks(Cs(e) + 1).map(() => []);
|
|
4901
4966
|
return e.nodes().forEach((n) => {
|
|
4902
4967
|
let r = e.node(n), i = r.rank;
|
|
4903
4968
|
i !== void 0 && (t[i] || (t[i] = []), t[i][r.order] = n);
|
|
4904
4969
|
}), t;
|
|
4905
4970
|
}
|
|
4906
|
-
function
|
|
4971
|
+
function _s(e) {
|
|
4907
4972
|
let t = e.nodes().map((t) => {
|
|
4908
4973
|
let n = e.node(t).rank;
|
|
4909
4974
|
return n === void 0 ? Number.MAX_VALUE : n;
|
|
4910
|
-
}), n =
|
|
4975
|
+
}), n = Ss(Math.min, t);
|
|
4911
4976
|
e.nodes().forEach((t) => {
|
|
4912
4977
|
let r = e.node(t);
|
|
4913
4978
|
Object.hasOwn(r, "rank") && (r.rank -= n);
|
|
4914
4979
|
});
|
|
4915
4980
|
}
|
|
4916
|
-
function
|
|
4917
|
-
let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n =
|
|
4981
|
+
function vs(e) {
|
|
4982
|
+
let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n = Ss(Math.min, t), r = [];
|
|
4918
4983
|
e.nodes().forEach((t) => {
|
|
4919
4984
|
let i = e.node(t).rank - n;
|
|
4920
4985
|
r[i] || (r[i] = []), r[i].push(t);
|
|
@@ -4924,14 +4989,14 @@ function ms(e) {
|
|
|
4924
4989
|
t === void 0 && n % a !== 0 ? --i : t !== void 0 && i && t.forEach((t) => e.node(t).rank += i);
|
|
4925
4990
|
});
|
|
4926
4991
|
}
|
|
4927
|
-
function
|
|
4992
|
+
function ys(e, t, n, r) {
|
|
4928
4993
|
let i = {
|
|
4929
4994
|
width: 0,
|
|
4930
4995
|
height: 0
|
|
4931
4996
|
};
|
|
4932
|
-
return arguments.length >= 4 && (i.rank = n, i.order = r),
|
|
4997
|
+
return arguments.length >= 4 && (i.rank = n, i.order = r), fs(e, "border", i, t);
|
|
4933
4998
|
}
|
|
4934
|
-
function
|
|
4999
|
+
function bs(e, t = xs) {
|
|
4935
5000
|
let n = [];
|
|
4936
5001
|
for (let r = 0; r < e.length; r += t) {
|
|
4937
5002
|
let i = e.slice(r, r + t);
|
|
@@ -4939,18 +5004,18 @@ function gs(e, t = _s) {
|
|
|
4939
5004
|
}
|
|
4940
5005
|
return n;
|
|
4941
5006
|
}
|
|
4942
|
-
var
|
|
4943
|
-
function
|
|
4944
|
-
return t.length >
|
|
5007
|
+
var xs = 65535;
|
|
5008
|
+
function Ss(e, t) {
|
|
5009
|
+
return t.length > xs ? e(...bs(t).map((t) => e(...t))) : e(...t);
|
|
4945
5010
|
}
|
|
4946
|
-
function
|
|
5011
|
+
function Cs(e) {
|
|
4947
5012
|
let t = e.nodes().map((t) => {
|
|
4948
5013
|
let n = e.node(t).rank;
|
|
4949
5014
|
return n === void 0 ? Number.MIN_VALUE : n;
|
|
4950
5015
|
});
|
|
4951
|
-
return
|
|
5016
|
+
return Ss(Math.max, t);
|
|
4952
5017
|
}
|
|
4953
|
-
function
|
|
5018
|
+
function ws(e, t) {
|
|
4954
5019
|
let n = {
|
|
4955
5020
|
lhs: [],
|
|
4956
5021
|
rhs: []
|
|
@@ -4959,7 +5024,7 @@ function bs(e, t) {
|
|
|
4959
5024
|
t(e) ? n.lhs.push(e) : n.rhs.push(e);
|
|
4960
5025
|
}), n;
|
|
4961
5026
|
}
|
|
4962
|
-
function
|
|
5027
|
+
function Ts(e, t) {
|
|
4963
5028
|
let n = Date.now();
|
|
4964
5029
|
try {
|
|
4965
5030
|
return t();
|
|
@@ -4967,14 +5032,14 @@ function xs(e, t) {
|
|
|
4967
5032
|
console.log(e + " time: " + (Date.now() - n) + "ms");
|
|
4968
5033
|
}
|
|
4969
5034
|
}
|
|
4970
|
-
function
|
|
5035
|
+
function Es(e, t) {
|
|
4971
5036
|
return t();
|
|
4972
5037
|
}
|
|
4973
|
-
var
|
|
4974
|
-
function
|
|
4975
|
-
return e + ("" + ++
|
|
5038
|
+
var Ds = 0;
|
|
5039
|
+
function Os(e) {
|
|
5040
|
+
return e + ("" + ++Ds);
|
|
4976
5041
|
}
|
|
4977
|
-
function
|
|
5042
|
+
function ks(e, t, n = 1) {
|
|
4978
5043
|
t ?? (t = e, e = 0);
|
|
4979
5044
|
let r = (e) => e < t;
|
|
4980
5045
|
n < 0 && (r = (e) => t < e);
|
|
@@ -4982,78 +5047,78 @@ function Ts(e, t, n = 1) {
|
|
|
4982
5047
|
for (let t = e; r(t); t += n) i.push(t);
|
|
4983
5048
|
return i;
|
|
4984
5049
|
}
|
|
4985
|
-
function
|
|
5050
|
+
function As(e, t) {
|
|
4986
5051
|
let n = {};
|
|
4987
5052
|
for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
4988
5053
|
return n;
|
|
4989
5054
|
}
|
|
4990
|
-
function
|
|
5055
|
+
function js(e, t) {
|
|
4991
5056
|
let n;
|
|
4992
5057
|
return n = typeof t == "string" ? (e) => e[t] : t, Object.entries(e).reduce((e, [t, r]) => (e[t] = n(r, t), e), {});
|
|
4993
5058
|
}
|
|
4994
|
-
function
|
|
5059
|
+
function Ms(e, t) {
|
|
4995
5060
|
return e.reduce((e, n, r) => (e[n] = t[r], e), {});
|
|
4996
5061
|
}
|
|
4997
|
-
var
|
|
5062
|
+
var Ns = "\0", Ps = "3.0.0", Fs = class {
|
|
4998
5063
|
constructor() {
|
|
4999
|
-
|
|
5064
|
+
To(this, "_sentinel");
|
|
5000
5065
|
let e = {};
|
|
5001
5066
|
e._next = e._prev = e, this._sentinel = e;
|
|
5002
5067
|
}
|
|
5003
5068
|
dequeue() {
|
|
5004
5069
|
let e = this._sentinel, t = e._prev;
|
|
5005
|
-
if (t !== e) return
|
|
5070
|
+
if (t !== e) return Is(t), t;
|
|
5006
5071
|
}
|
|
5007
5072
|
enqueue(e) {
|
|
5008
5073
|
let t = this._sentinel;
|
|
5009
|
-
e._prev && e._next &&
|
|
5074
|
+
e._prev && e._next && Is(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
|
|
5010
5075
|
}
|
|
5011
5076
|
toString() {
|
|
5012
5077
|
let e = [], t = this._sentinel, n = t._prev;
|
|
5013
|
-
for (; n !== t;) e.push(JSON.stringify(n,
|
|
5078
|
+
for (; n !== t;) e.push(JSON.stringify(n, Ls)), n = n._prev;
|
|
5014
5079
|
return "[" + e.join(", ") + "]";
|
|
5015
5080
|
}
|
|
5016
5081
|
};
|
|
5017
|
-
function
|
|
5082
|
+
function Is(e) {
|
|
5018
5083
|
e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
|
|
5019
5084
|
}
|
|
5020
|
-
function
|
|
5085
|
+
function Ls(e, t) {
|
|
5021
5086
|
if (e !== "_next" && e !== "_prev") return t;
|
|
5022
5087
|
}
|
|
5023
|
-
var
|
|
5024
|
-
function
|
|
5088
|
+
var Rs = Fs, zs = () => 1;
|
|
5089
|
+
function Bs(e, t) {
|
|
5025
5090
|
if (e.nodeCount() <= 1) return [];
|
|
5026
|
-
let n =
|
|
5027
|
-
return
|
|
5091
|
+
let n = Us(e, t || zs);
|
|
5092
|
+
return Vs(n.graph, n.buckets, n.zeroIdx).flatMap((t) => e.outEdges(t.v, t.w) || []);
|
|
5028
5093
|
}
|
|
5029
|
-
function
|
|
5094
|
+
function Vs(e, t, n) {
|
|
5030
5095
|
let r = [], i = t[t.length - 1], a = t[0], o;
|
|
5031
5096
|
for (; e.nodeCount();) {
|
|
5032
|
-
for (; o = a.dequeue();)
|
|
5033
|
-
for (; o = i.dequeue();)
|
|
5097
|
+
for (; o = a.dequeue();) Hs(e, t, n, o);
|
|
5098
|
+
for (; o = i.dequeue();) Hs(e, t, n, o);
|
|
5034
5099
|
if (e.nodeCount()) {
|
|
5035
5100
|
for (let i = t.length - 2; i > 0; --i) if (o = t[i]?.dequeue(), o) {
|
|
5036
|
-
r = r.concat(
|
|
5101
|
+
r = r.concat(Hs(e, t, n, o, !0) || []);
|
|
5037
5102
|
break;
|
|
5038
5103
|
}
|
|
5039
5104
|
}
|
|
5040
5105
|
}
|
|
5041
5106
|
return r;
|
|
5042
5107
|
}
|
|
5043
|
-
function
|
|
5108
|
+
function Hs(e, t, n, r, i) {
|
|
5044
5109
|
let a = [], o = i ? a : void 0;
|
|
5045
5110
|
return (e.inEdges(r.v) || []).forEach((r) => {
|
|
5046
5111
|
let o = e.edge(r), s = e.node(r.v);
|
|
5047
5112
|
i && a.push({
|
|
5048
5113
|
v: r.v,
|
|
5049
5114
|
w: r.w
|
|
5050
|
-
}), s.out -= o,
|
|
5115
|
+
}), s.out -= o, Ws(t, n, s);
|
|
5051
5116
|
}), (e.outEdges(r.v) || []).forEach((r) => {
|
|
5052
5117
|
let i = e.edge(r), a = r.w, o = e.node(a);
|
|
5053
|
-
o.in -= i,
|
|
5118
|
+
o.in -= i, Ws(t, n, o);
|
|
5054
5119
|
}), e.removeNode(r.v), o;
|
|
5055
5120
|
}
|
|
5056
|
-
function
|
|
5121
|
+
function Us(e, t) {
|
|
5057
5122
|
let n = new $(), r = 0, i = 0;
|
|
5058
5123
|
e.nodes().forEach((e) => {
|
|
5059
5124
|
n.setNode(e, {
|
|
@@ -5067,34 +5132,34 @@ function zs(e, t) {
|
|
|
5067
5132
|
let c = n.node(e.v), l = n.node(e.w);
|
|
5068
5133
|
i = Math.max(i, c.out += o), r = Math.max(r, l.in += o);
|
|
5069
5134
|
});
|
|
5070
|
-
let a =
|
|
5135
|
+
let a = Gs(i + r + 3).map(() => new Rs()), o = r + 1;
|
|
5071
5136
|
return n.nodes().forEach((e) => {
|
|
5072
|
-
|
|
5137
|
+
Ws(a, o, n.node(e));
|
|
5073
5138
|
}), {
|
|
5074
5139
|
graph: n,
|
|
5075
5140
|
buckets: a,
|
|
5076
5141
|
zeroIdx: o
|
|
5077
5142
|
};
|
|
5078
5143
|
}
|
|
5079
|
-
function
|
|
5144
|
+
function Ws(e, t, n) {
|
|
5080
5145
|
var r, i, a;
|
|
5081
5146
|
n.out ? n.in ? (a = e[n.out - n.in + t]) == null || a.enqueue(n) : (i = e[e.length - 1]) == null || i.enqueue(n) : (r = e[0]) == null || r.enqueue(n);
|
|
5082
5147
|
}
|
|
5083
|
-
function
|
|
5148
|
+
function Gs(e) {
|
|
5084
5149
|
let t = [];
|
|
5085
5150
|
for (let n = 0; n < e; n++) t.push(n);
|
|
5086
5151
|
return t;
|
|
5087
5152
|
}
|
|
5088
|
-
function
|
|
5089
|
-
(e.graph().acyclicer === "greedy" ?
|
|
5153
|
+
function Ks(e) {
|
|
5154
|
+
(e.graph().acyclicer === "greedy" ? Bs(e, t(e)) : qs(e)).forEach((t) => {
|
|
5090
5155
|
let n = e.edge(t);
|
|
5091
|
-
e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n,
|
|
5156
|
+
e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, Os("rev"));
|
|
5092
5157
|
});
|
|
5093
5158
|
function t(e) {
|
|
5094
5159
|
return (t) => e.edge(t).weight;
|
|
5095
5160
|
}
|
|
5096
5161
|
}
|
|
5097
|
-
function
|
|
5162
|
+
function qs(e) {
|
|
5098
5163
|
let t = [], n = {}, r = {};
|
|
5099
5164
|
function i(a) {
|
|
5100
5165
|
Object.hasOwn(r, a) || (r[a] = !0, n[a] = !0, e.outEdges(a).forEach((e) => {
|
|
@@ -5103,7 +5168,7 @@ function Us(e) {
|
|
|
5103
5168
|
}
|
|
5104
5169
|
return e.nodes().forEach(i), t;
|
|
5105
5170
|
}
|
|
5106
|
-
function
|
|
5171
|
+
function Js(e) {
|
|
5107
5172
|
e.edges().forEach((t) => {
|
|
5108
5173
|
let n = e.edge(t);
|
|
5109
5174
|
if (n.reversed) {
|
|
@@ -5113,10 +5178,10 @@ function Ws(e) {
|
|
|
5113
5178
|
}
|
|
5114
5179
|
});
|
|
5115
5180
|
}
|
|
5116
|
-
function
|
|
5117
|
-
e.graph().dummyChains = [], e.edges().forEach((t) =>
|
|
5181
|
+
function Ys(e) {
|
|
5182
|
+
e.graph().dummyChains = [], e.edges().forEach((t) => Xs(e, t));
|
|
5118
5183
|
}
|
|
5119
|
-
function
|
|
5184
|
+
function Xs(e, t) {
|
|
5120
5185
|
let n = t.v, r = e.node(n).rank, i = t.w, a = e.node(i).rank, o = t.name, s = e.edge(t), c = s.labelRank;
|
|
5121
5186
|
if (a === r + 1) return;
|
|
5122
5187
|
e.removeEdge(t);
|
|
@@ -5127,10 +5192,10 @@ function Ks(e, t) {
|
|
|
5127
5192
|
edgeLabel: s,
|
|
5128
5193
|
edgeObj: t,
|
|
5129
5194
|
rank: r
|
|
5130
|
-
}, l =
|
|
5195
|
+
}, l = fs(e, "edge", u, "_d"), r === c && (u.width = s.width, u.height = s.height, u.dummy = "edge-label", u.labelpos = s.labelpos), e.setEdge(n, l, { weight: s.weight }, o), d === 0 && e.graph().dummyChains.push(l), n = l;
|
|
5131
5196
|
e.setEdge(n, i, { weight: s.weight }, o);
|
|
5132
5197
|
}
|
|
5133
|
-
function
|
|
5198
|
+
function Zs(e) {
|
|
5134
5199
|
e.graph().dummyChains.forEach((t) => {
|
|
5135
5200
|
let n = e.node(t), r = n.edgeLabel, i;
|
|
5136
5201
|
for (e.setEdge(n.edgeObj, r); n.dummy;) i = e.successors(t)[0], e.removeNode(t), r.points.push({
|
|
@@ -5139,67 +5204,67 @@ function qs(e) {
|
|
|
5139
5204
|
}), n.dummy === "edge-label" && (r.x = n.x, r.y = n.y, r.width = n.width, r.height = n.height), t = i, n = e.node(t);
|
|
5140
5205
|
});
|
|
5141
5206
|
}
|
|
5142
|
-
function
|
|
5207
|
+
function Qs(e) {
|
|
5143
5208
|
let t = {};
|
|
5144
5209
|
function n(r) {
|
|
5145
5210
|
let i = e.node(r);
|
|
5146
5211
|
if (Object.hasOwn(t, r)) return i.rank;
|
|
5147
5212
|
t[r] = !0;
|
|
5148
|
-
let a = e.outEdges(r), o = a ? a.map((t) => t == null ? Infinity : n(t.w) - e.edge(t).minlen) : [], s =
|
|
5213
|
+
let a = e.outEdges(r), o = a ? a.map((t) => t == null ? Infinity : n(t.w) - e.edge(t).minlen) : [], s = Ss(Math.min, o);
|
|
5149
5214
|
return s === Infinity && (s = 0), i.rank = s;
|
|
5150
5215
|
}
|
|
5151
5216
|
e.sources().forEach(n);
|
|
5152
5217
|
}
|
|
5153
|
-
function
|
|
5218
|
+
function $s(e, t) {
|
|
5154
5219
|
return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
|
|
5155
5220
|
}
|
|
5156
|
-
var
|
|
5157
|
-
function
|
|
5221
|
+
var ec = tc;
|
|
5222
|
+
function tc(e) {
|
|
5158
5223
|
let t = new $({ directed: !1 }), n = e.nodes();
|
|
5159
5224
|
if (n.length === 0) throw Error("Graph must have at least one node");
|
|
5160
5225
|
let r = n[0], i = e.nodeCount();
|
|
5161
5226
|
t.setNode(r, {});
|
|
5162
5227
|
let a, o;
|
|
5163
|
-
for (;
|
|
5228
|
+
for (; nc(t, e) < i && (a = rc(t, e), a);) o = t.hasNode(a.v) ? $s(e, a) : -$s(e, a), ic(t, e, o);
|
|
5164
5229
|
return t;
|
|
5165
5230
|
}
|
|
5166
|
-
function
|
|
5231
|
+
function nc(e, t) {
|
|
5167
5232
|
function n(r) {
|
|
5168
5233
|
let i = t.nodeEdges(r);
|
|
5169
5234
|
i && i.forEach((i) => {
|
|
5170
5235
|
let a = i.v, o = r === a ? i.w : a;
|
|
5171
|
-
!e.hasNode(o) &&
|
|
5236
|
+
!e.hasNode(o) && !$s(t, i) && (e.setNode(o, {}), e.setEdge(r, o, {}), n(o));
|
|
5172
5237
|
});
|
|
5173
5238
|
}
|
|
5174
5239
|
return e.nodes().forEach(n), e.nodeCount();
|
|
5175
5240
|
}
|
|
5176
|
-
function
|
|
5241
|
+
function rc(e, t) {
|
|
5177
5242
|
return t.edges().reduce((n, r) => {
|
|
5178
5243
|
let i = Infinity;
|
|
5179
|
-
return e.hasNode(r.v) !== e.hasNode(r.w) && (i =
|
|
5244
|
+
return e.hasNode(r.v) !== e.hasNode(r.w) && (i = $s(t, r)), i < n[0] ? [i, r] : n;
|
|
5180
5245
|
}, [Infinity, null])[1];
|
|
5181
5246
|
}
|
|
5182
|
-
function
|
|
5247
|
+
function ic(e, t, n) {
|
|
5183
5248
|
e.nodes().forEach((e) => t.node(e).rank += n);
|
|
5184
5249
|
}
|
|
5185
|
-
var { preorder:
|
|
5186
|
-
|
|
5187
|
-
function
|
|
5188
|
-
e =
|
|
5189
|
-
let t =
|
|
5190
|
-
|
|
5250
|
+
var { preorder: ac, postorder: oc } = Bo, sc = cc;
|
|
5251
|
+
cc.initLowLimValues = fc, cc.initCutValues = lc, cc.calcCutValue = dc, cc.leaveEdge = mc, cc.enterEdge = hc, cc.exchangeEdges = gc;
|
|
5252
|
+
function cc(e) {
|
|
5253
|
+
e = ps(e), Qs(e);
|
|
5254
|
+
let t = ec(e);
|
|
5255
|
+
fc(t), lc(t, e);
|
|
5191
5256
|
let n, r;
|
|
5192
|
-
for (; n =
|
|
5257
|
+
for (; n = mc(t);) r = hc(t, e, n), gc(t, e, n, r);
|
|
5193
5258
|
}
|
|
5194
|
-
function
|
|
5195
|
-
let n =
|
|
5196
|
-
n = n.slice(0, n.length - 1), n.forEach((n) =>
|
|
5259
|
+
function lc(e, t) {
|
|
5260
|
+
let n = oc(e, e.nodes());
|
|
5261
|
+
n = n.slice(0, n.length - 1), n.forEach((n) => uc(e, t, n));
|
|
5197
5262
|
}
|
|
5198
|
-
function
|
|
5263
|
+
function uc(e, t, n) {
|
|
5199
5264
|
let r = e.node(n).parent, i = e.edge(n, r);
|
|
5200
|
-
i.cutvalue =
|
|
5265
|
+
i.cutvalue = dc(e, t, n);
|
|
5201
5266
|
}
|
|
5202
|
-
function
|
|
5267
|
+
function dc(e, t, n) {
|
|
5203
5268
|
let r = e.node(n).parent, i = !0, a = t.edge(n, r), o = 0;
|
|
5204
5269
|
a ||= (i = !1, t.edge(r, n)), o = a.weight;
|
|
5205
5270
|
let s = t.nodeEdges(n);
|
|
@@ -5207,82 +5272,82 @@ function sc(e, t, n) {
|
|
|
5207
5272
|
let s = a.v === n, c = s ? a.w : a.v;
|
|
5208
5273
|
if (c !== r) {
|
|
5209
5274
|
let r = s === i, l = t.edge(a).weight;
|
|
5210
|
-
if (o += r ? l : -l,
|
|
5275
|
+
if (o += r ? l : -l, vc(e, n, c)) {
|
|
5211
5276
|
let t = e.edge(n, c).cutvalue;
|
|
5212
5277
|
o += r ? -t : t;
|
|
5213
5278
|
}
|
|
5214
5279
|
}
|
|
5215
5280
|
}), o;
|
|
5216
5281
|
}
|
|
5217
|
-
function
|
|
5218
|
-
arguments.length < 2 && (t = e.nodes()[0]),
|
|
5282
|
+
function fc(e, t) {
|
|
5283
|
+
arguments.length < 2 && (t = e.nodes()[0]), pc(e, {}, 1, t);
|
|
5219
5284
|
}
|
|
5220
|
-
function
|
|
5285
|
+
function pc(e, t, n, r, i) {
|
|
5221
5286
|
let a = n, o = e.node(r);
|
|
5222
5287
|
t[r] = !0;
|
|
5223
5288
|
let s = e.neighbors(r);
|
|
5224
5289
|
return s && s.forEach((i) => {
|
|
5225
|
-
Object.hasOwn(t, i) || (n =
|
|
5290
|
+
Object.hasOwn(t, i) || (n = pc(e, t, n, i, r));
|
|
5226
5291
|
}), o.low = a, o.lim = n++, i ? o.parent = i : delete o.parent, n;
|
|
5227
5292
|
}
|
|
5228
|
-
function
|
|
5293
|
+
function mc(e) {
|
|
5229
5294
|
return e.edges().find((t) => e.edge(t).cutvalue < 0);
|
|
5230
5295
|
}
|
|
5231
|
-
function
|
|
5296
|
+
function hc(e, t, n) {
|
|
5232
5297
|
let r = n.v, i = n.w;
|
|
5233
5298
|
t.hasEdge(r, i) || (r = n.w, i = n.v);
|
|
5234
5299
|
let a = e.node(r), o = e.node(i), s = a, c = !1;
|
|
5235
|
-
return a.lim > o.lim && (s = o, c = !0), t.edges().filter((t) => c ===
|
|
5300
|
+
return a.lim > o.lim && (s = o, c = !0), t.edges().filter((t) => c === yc(e, e.node(t.v), s) && c !== yc(e, e.node(t.w), s)).reduce((e, n) => $s(t, n) < $s(t, e) ? n : e);
|
|
5236
5301
|
}
|
|
5237
|
-
function
|
|
5302
|
+
function gc(e, t, n, r) {
|
|
5238
5303
|
let i = n.v, a = n.w;
|
|
5239
|
-
e.removeEdge(i, a), e.setEdge(r.v, r.w, {}),
|
|
5304
|
+
e.removeEdge(i, a), e.setEdge(r.v, r.w, {}), fc(e), lc(e, t), _c(e, t);
|
|
5240
5305
|
}
|
|
5241
|
-
function
|
|
5306
|
+
function _c(e, t) {
|
|
5242
5307
|
let n = e.nodes().find((t) => !e.node(t).parent);
|
|
5243
5308
|
if (!n) return;
|
|
5244
|
-
let r =
|
|
5309
|
+
let r = ac(e, [n]);
|
|
5245
5310
|
r = r.slice(1), r.forEach((n) => {
|
|
5246
5311
|
let r = e.node(n).parent, i = t.edge(n, r), a = !1;
|
|
5247
5312
|
i || (i = t.edge(r, n), a = !0), t.node(n).rank = t.node(r).rank + (a ? i.minlen : -i.minlen);
|
|
5248
5313
|
});
|
|
5249
5314
|
}
|
|
5250
|
-
function
|
|
5315
|
+
function vc(e, t, n) {
|
|
5251
5316
|
return e.hasEdge(t, n);
|
|
5252
5317
|
}
|
|
5253
|
-
function
|
|
5318
|
+
function yc(e, t, n) {
|
|
5254
5319
|
return n.low <= t.lim && t.lim <= n.lim;
|
|
5255
5320
|
}
|
|
5256
|
-
var
|
|
5257
|
-
function
|
|
5321
|
+
var bc = xc;
|
|
5322
|
+
function xc(e) {
|
|
5258
5323
|
let t = e.graph().ranker;
|
|
5259
5324
|
if (typeof t == "function") return t(e);
|
|
5260
5325
|
switch (t) {
|
|
5261
5326
|
case "network-simplex":
|
|
5262
|
-
|
|
5327
|
+
wc(e);
|
|
5263
5328
|
break;
|
|
5264
5329
|
case "tight-tree":
|
|
5265
|
-
|
|
5330
|
+
Cc(e);
|
|
5266
5331
|
break;
|
|
5267
5332
|
case "longest-path":
|
|
5268
|
-
|
|
5333
|
+
Sc(e);
|
|
5269
5334
|
break;
|
|
5270
5335
|
case "none": break;
|
|
5271
|
-
default:
|
|
5336
|
+
default: wc(e);
|
|
5272
5337
|
}
|
|
5273
5338
|
}
|
|
5274
|
-
var
|
|
5275
|
-
function
|
|
5276
|
-
|
|
5339
|
+
var Sc = Qs;
|
|
5340
|
+
function Cc(e) {
|
|
5341
|
+
Qs(e), ec(e);
|
|
5277
5342
|
}
|
|
5278
|
-
function
|
|
5279
|
-
|
|
5343
|
+
function wc(e) {
|
|
5344
|
+
sc(e);
|
|
5280
5345
|
}
|
|
5281
|
-
var
|
|
5282
|
-
function
|
|
5283
|
-
let t =
|
|
5346
|
+
var Tc = Ec;
|
|
5347
|
+
function Ec(e) {
|
|
5348
|
+
let t = Oc(e);
|
|
5284
5349
|
e.graph().dummyChains.forEach((n) => {
|
|
5285
|
-
let r = e.node(n), i = r.edgeObj, a =
|
|
5350
|
+
let r = e.node(n), i = r.edgeObj, a = Dc(e, t, i.v, i.w), o = a.path, s = a.lca, c = 0, l = o[c], u = !0;
|
|
5286
5351
|
for (; n !== i.w;) {
|
|
5287
5352
|
if (r = e.node(n), u) {
|
|
5288
5353
|
for (; (l = o[c]) !== s && e.node(l).maxRank < r.rank;) c++;
|
|
@@ -5296,7 +5361,7 @@ function Sc(e) {
|
|
|
5296
5361
|
}
|
|
5297
5362
|
});
|
|
5298
5363
|
}
|
|
5299
|
-
function
|
|
5364
|
+
function Dc(e, t, n, r) {
|
|
5300
5365
|
let i = [], a = [], o = Math.min(t[n].low, t[r].low), s = Math.max(t[n].lim, t[r].lim), c;
|
|
5301
5366
|
c = n;
|
|
5302
5367
|
do
|
|
@@ -5309,7 +5374,7 @@ function Cc(e, t, n, r) {
|
|
|
5309
5374
|
lca: l
|
|
5310
5375
|
};
|
|
5311
5376
|
}
|
|
5312
|
-
function
|
|
5377
|
+
function Oc(e) {
|
|
5313
5378
|
let t = {}, n = 0;
|
|
5314
5379
|
function r(i) {
|
|
5315
5380
|
let a = n;
|
|
@@ -5318,15 +5383,15 @@ function wc(e) {
|
|
|
5318
5383
|
lim: n++
|
|
5319
5384
|
};
|
|
5320
5385
|
}
|
|
5321
|
-
return e.children(
|
|
5386
|
+
return e.children(Ns).forEach(r), t;
|
|
5322
5387
|
}
|
|
5323
|
-
function
|
|
5324
|
-
let t =
|
|
5388
|
+
function kc(e) {
|
|
5389
|
+
let t = fs(e, "root", {}, "_root"), n = jc(e), r = Object.values(n), i = Ss(Math.max, r) - 1, a = 2 * i + 1;
|
|
5325
5390
|
e.graph().nestingRoot = t, e.edges().forEach((t) => e.edge(t).minlen *= a);
|
|
5326
|
-
let o =
|
|
5327
|
-
e.children(
|
|
5391
|
+
let o = Mc(e) + 1;
|
|
5392
|
+
e.children(Ns).forEach((r) => Ac(e, t, a, o, i, n, r)), e.graph().nodeRankFactor = a;
|
|
5328
5393
|
}
|
|
5329
|
-
function
|
|
5394
|
+
function Ac(e, t, n, r, i, a, o) {
|
|
5330
5395
|
let s = e.children(o);
|
|
5331
5396
|
if (!s.length) {
|
|
5332
5397
|
o !== t && e.setEdge(t, o, {
|
|
@@ -5335,9 +5400,9 @@ function Ec(e, t, n, r, i, a, o) {
|
|
|
5335
5400
|
});
|
|
5336
5401
|
return;
|
|
5337
5402
|
}
|
|
5338
|
-
let c =
|
|
5403
|
+
let c = ys(e, "_bt"), l = ys(e, "_bb"), u = e.node(o);
|
|
5339
5404
|
e.setParent(c, o), u.borderTop = c, e.setParent(l, o), u.borderBottom = l, s.forEach((s) => {
|
|
5340
|
-
|
|
5405
|
+
Ac(e, t, n, r, i, a, s);
|
|
5341
5406
|
let u = e.node(s), d = u.borderTop ? u.borderTop : s, f = u.borderBottom ? u.borderBottom : s, p = u.borderTop ? r : 2 * r, m = d === f ? i - (a[o] ?? 0) + 1 : 1;
|
|
5342
5407
|
e.setEdge(c, d, {
|
|
5343
5408
|
weight: p,
|
|
@@ -5353,81 +5418,81 @@ function Ec(e, t, n, r, i, a, o) {
|
|
|
5353
5418
|
minlen: i + (a[o] ?? 0)
|
|
5354
5419
|
});
|
|
5355
5420
|
}
|
|
5356
|
-
function
|
|
5421
|
+
function jc(e) {
|
|
5357
5422
|
let t = {};
|
|
5358
5423
|
function n(r, i) {
|
|
5359
5424
|
let a = e.children(r);
|
|
5360
5425
|
a && a.length && a.forEach((e) => n(e, i + 1)), t[r] = i;
|
|
5361
5426
|
}
|
|
5362
|
-
return e.children(
|
|
5427
|
+
return e.children(Ns).forEach((e) => n(e, 1)), t;
|
|
5363
5428
|
}
|
|
5364
|
-
function
|
|
5429
|
+
function Mc(e) {
|
|
5365
5430
|
return e.edges().reduce((t, n) => t + e.edge(n).weight, 0);
|
|
5366
5431
|
}
|
|
5367
|
-
function
|
|
5432
|
+
function Nc(e) {
|
|
5368
5433
|
let t = e.graph();
|
|
5369
5434
|
e.removeNode(t.nestingRoot), delete t.nestingRoot, e.edges().forEach((t) => {
|
|
5370
5435
|
e.edge(t).nestingEdge && e.removeEdge(t);
|
|
5371
5436
|
});
|
|
5372
5437
|
}
|
|
5373
|
-
var
|
|
5374
|
-
function
|
|
5438
|
+
var Pc = Fc;
|
|
5439
|
+
function Fc(e) {
|
|
5375
5440
|
function t(n) {
|
|
5376
5441
|
let r = e.children(n), i = e.node(n);
|
|
5377
5442
|
if (r.length && r.forEach(t), Object.hasOwn(i, "minRank")) {
|
|
5378
5443
|
i.borderLeft = [], i.borderRight = [];
|
|
5379
|
-
for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t)
|
|
5444
|
+
for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t) Ic(e, "borderLeft", "_bl", n, i, t), Ic(e, "borderRight", "_br", n, i, t);
|
|
5380
5445
|
}
|
|
5381
5446
|
}
|
|
5382
|
-
e.children(
|
|
5447
|
+
e.children(Ns).forEach(t);
|
|
5383
5448
|
}
|
|
5384
|
-
function
|
|
5449
|
+
function Ic(e, t, n, r, i, a) {
|
|
5385
5450
|
let o = {
|
|
5386
5451
|
width: 0,
|
|
5387
5452
|
height: 0,
|
|
5388
5453
|
rank: a,
|
|
5389
5454
|
borderType: t
|
|
5390
|
-
}, s = i[t][a - 1], c =
|
|
5455
|
+
}, s = i[t][a - 1], c = fs(e, "border", o, n);
|
|
5391
5456
|
i[t][a] = c, e.setParent(c, r), s && e.setEdge(s, c, { weight: 1 });
|
|
5392
5457
|
}
|
|
5393
|
-
function
|
|
5458
|
+
function Lc(e) {
|
|
5394
5459
|
let t = e.graph().rankdir?.toLowerCase();
|
|
5395
|
-
(t === "lr" || t === "rl") &&
|
|
5460
|
+
(t === "lr" || t === "rl") && zc(e);
|
|
5396
5461
|
}
|
|
5397
|
-
function
|
|
5462
|
+
function Rc(e) {
|
|
5398
5463
|
let t = e.graph().rankdir?.toLowerCase();
|
|
5399
|
-
(t === "bt" || t === "rl") &&
|
|
5464
|
+
(t === "bt" || t === "rl") && Vc(e), (t === "lr" || t === "rl") && (Uc(e), zc(e));
|
|
5400
5465
|
}
|
|
5401
|
-
function
|
|
5402
|
-
e.nodes().forEach((t) =>
|
|
5466
|
+
function zc(e) {
|
|
5467
|
+
e.nodes().forEach((t) => Bc(e.node(t))), e.edges().forEach((t) => Bc(e.edge(t)));
|
|
5403
5468
|
}
|
|
5404
|
-
function
|
|
5469
|
+
function Bc(e) {
|
|
5405
5470
|
let t = e.width;
|
|
5406
5471
|
e.width = e.height, e.height = t;
|
|
5407
5472
|
}
|
|
5408
|
-
function
|
|
5409
|
-
e.nodes().forEach((t) =>
|
|
5473
|
+
function Vc(e) {
|
|
5474
|
+
e.nodes().forEach((t) => Hc(e.node(t))), e.edges().forEach((t) => {
|
|
5410
5475
|
var n;
|
|
5411
5476
|
let r = e.edge(t);
|
|
5412
|
-
(n = r.points) == null || n.forEach(
|
|
5477
|
+
(n = r.points) == null || n.forEach(Hc), Object.hasOwn(r, "y") && Hc(r);
|
|
5413
5478
|
});
|
|
5414
5479
|
}
|
|
5415
|
-
function
|
|
5480
|
+
function Hc(e) {
|
|
5416
5481
|
e.y = -e.y;
|
|
5417
5482
|
}
|
|
5418
|
-
function
|
|
5419
|
-
e.nodes().forEach((t) =>
|
|
5483
|
+
function Uc(e) {
|
|
5484
|
+
e.nodes().forEach((t) => Wc(e.node(t))), e.edges().forEach((t) => {
|
|
5420
5485
|
var n;
|
|
5421
5486
|
let r = e.edge(t);
|
|
5422
|
-
(n = r.points) == null || n.forEach(
|
|
5487
|
+
(n = r.points) == null || n.forEach(Wc), Object.hasOwn(r, "x") && Wc(r);
|
|
5423
5488
|
});
|
|
5424
5489
|
}
|
|
5425
|
-
function
|
|
5490
|
+
function Wc(e) {
|
|
5426
5491
|
let t = e.x;
|
|
5427
5492
|
e.x = e.y, e.y = t;
|
|
5428
5493
|
}
|
|
5429
|
-
function
|
|
5430
|
-
let t = {}, n = e.nodes().filter((t) => !e.children(t).length), r = n.map((t) => e.node(t).rank), i =
|
|
5494
|
+
function Gc(e) {
|
|
5495
|
+
let t = {}, n = e.nodes().filter((t) => !e.children(t).length), r = n.map((t) => e.node(t).rank), i = ks(Ss(Math.max, r) + 1).map(() => []);
|
|
5431
5496
|
function a(n) {
|
|
5432
5497
|
if (t[n]) return;
|
|
5433
5498
|
t[n] = !0;
|
|
@@ -5438,13 +5503,13 @@ function Vc(e) {
|
|
|
5438
5503
|
}
|
|
5439
5504
|
return n.sort((t, n) => e.node(t).rank - e.node(n).rank).forEach(a), i;
|
|
5440
5505
|
}
|
|
5441
|
-
function
|
|
5506
|
+
function Kc(e, t) {
|
|
5442
5507
|
let n = 0;
|
|
5443
|
-
for (let r = 1; r < t.length; ++r) n +=
|
|
5508
|
+
for (let r = 1; r < t.length; ++r) n += qc(e, t[r - 1], t[r]);
|
|
5444
5509
|
return n;
|
|
5445
5510
|
}
|
|
5446
|
-
function
|
|
5447
|
-
let r =
|
|
5511
|
+
function qc(e, t, n) {
|
|
5512
|
+
let r = Ms(n, n.map((e, t) => t)), i = t.flatMap((t) => {
|
|
5448
5513
|
let n = e.outEdges(t);
|
|
5449
5514
|
return n ? n.map((t) => ({
|
|
5450
5515
|
pos: r[t.w],
|
|
@@ -5463,7 +5528,7 @@ function Uc(e, t, n) {
|
|
|
5463
5528
|
c += e.weight * n;
|
|
5464
5529
|
}), c;
|
|
5465
5530
|
}
|
|
5466
|
-
function
|
|
5531
|
+
function Jc(e, t = []) {
|
|
5467
5532
|
return t.map((t) => {
|
|
5468
5533
|
let n = e.inEdges(t);
|
|
5469
5534
|
if (!n || !n.length) return { v: t };
|
|
@@ -5486,7 +5551,7 @@ function Wc(e, t = []) {
|
|
|
5486
5551
|
}
|
|
5487
5552
|
});
|
|
5488
5553
|
}
|
|
5489
|
-
function
|
|
5554
|
+
function Yc(e, t) {
|
|
5490
5555
|
let n = {};
|
|
5491
5556
|
return e.forEach((e, t) => {
|
|
5492
5557
|
let r = {
|
|
@@ -5500,13 +5565,13 @@ function Gc(e, t) {
|
|
|
5500
5565
|
}), t.edges().forEach((e) => {
|
|
5501
5566
|
let t = n[e.v], r = n[e.w];
|
|
5502
5567
|
t !== void 0 && r !== void 0 && (r.indegree++, t.out.push(r));
|
|
5503
|
-
}),
|
|
5568
|
+
}), Xc(Object.values(n).filter((e) => !e.indegree));
|
|
5504
5569
|
}
|
|
5505
|
-
function
|
|
5570
|
+
function Xc(e) {
|
|
5506
5571
|
let t = [];
|
|
5507
5572
|
function n(e) {
|
|
5508
5573
|
return (t) => {
|
|
5509
|
-
t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) &&
|
|
5574
|
+
t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && Zc(e, t);
|
|
5510
5575
|
};
|
|
5511
5576
|
}
|
|
5512
5577
|
function r(t) {
|
|
@@ -5518,46 +5583,46 @@ function Kc(e) {
|
|
|
5518
5583
|
let i = e.pop();
|
|
5519
5584
|
t.push(i), i.in.reverse().forEach(n(i)), i.out.forEach(r(i));
|
|
5520
5585
|
}
|
|
5521
|
-
return t.filter((e) => !e.merged).map((e) =>
|
|
5586
|
+
return t.filter((e) => !e.merged).map((e) => As(e, [
|
|
5522
5587
|
"vs",
|
|
5523
5588
|
"i",
|
|
5524
5589
|
"barycenter",
|
|
5525
5590
|
"weight"
|
|
5526
5591
|
]));
|
|
5527
5592
|
}
|
|
5528
|
-
function
|
|
5593
|
+
function Zc(e, t) {
|
|
5529
5594
|
let n = 0, r = 0;
|
|
5530
5595
|
e.weight && (n += e.barycenter * e.weight, r += e.weight), t.weight && (n += t.barycenter * t.weight, r += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = n / r, e.weight = r, e.i = Math.min(t.i, e.i), t.merged = !0;
|
|
5531
5596
|
}
|
|
5532
|
-
function
|
|
5533
|
-
let n =
|
|
5534
|
-
r.sort(
|
|
5535
|
-
c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c =
|
|
5597
|
+
function Qc(e, t) {
|
|
5598
|
+
let n = ws(e, (e) => Object.hasOwn(e, "barycenter")), r = n.lhs, i = n.rhs.sort((e, t) => t.i - e.i), a = [], o = 0, s = 0, c = 0;
|
|
5599
|
+
r.sort(el(!!t)), c = $c(a, i, c), r.forEach((e) => {
|
|
5600
|
+
c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = $c(a, i, c);
|
|
5536
5601
|
});
|
|
5537
5602
|
let l = { vs: a.flat(1) };
|
|
5538
5603
|
return s && (l.barycenter = o / s, l.weight = s), l;
|
|
5539
5604
|
}
|
|
5540
|
-
function
|
|
5605
|
+
function $c(e, t, n) {
|
|
5541
5606
|
let r;
|
|
5542
5607
|
for (; t.length && (r = t[t.length - 1]).i <= n;) t.pop(), e.push(r.vs), n++;
|
|
5543
5608
|
return n;
|
|
5544
5609
|
}
|
|
5545
|
-
function
|
|
5610
|
+
function el(e) {
|
|
5546
5611
|
return (t, n) => t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
|
|
5547
5612
|
}
|
|
5548
|
-
function
|
|
5613
|
+
function tl(e, t, n, r) {
|
|
5549
5614
|
let i = e.children(t), a = e.node(t), o = a ? a.borderLeft : void 0, s = a ? a.borderRight : void 0, c = {};
|
|
5550
5615
|
o && (i = i.filter((e) => e !== o && e !== s));
|
|
5551
|
-
let l =
|
|
5616
|
+
let l = Jc(e, i);
|
|
5552
5617
|
l.forEach((t) => {
|
|
5553
5618
|
if (e.children(t.v).length) {
|
|
5554
|
-
let i =
|
|
5555
|
-
c[t.v] = i, Object.hasOwn(i, "barycenter") &&
|
|
5619
|
+
let i = tl(e, t.v, n, r);
|
|
5620
|
+
c[t.v] = i, Object.hasOwn(i, "barycenter") && rl(t, i);
|
|
5556
5621
|
}
|
|
5557
5622
|
});
|
|
5558
|
-
let u =
|
|
5559
|
-
|
|
5560
|
-
let d =
|
|
5623
|
+
let u = Yc(l, n);
|
|
5624
|
+
nl(u, c);
|
|
5625
|
+
let d = Qc(u, r);
|
|
5561
5626
|
if (o && s) {
|
|
5562
5627
|
d.vs = [
|
|
5563
5628
|
o,
|
|
@@ -5572,17 +5637,17 @@ function Zc(e, t, n, r) {
|
|
|
5572
5637
|
}
|
|
5573
5638
|
return d;
|
|
5574
5639
|
}
|
|
5575
|
-
function
|
|
5640
|
+
function nl(e, t) {
|
|
5576
5641
|
e.forEach((e) => {
|
|
5577
5642
|
e.vs = e.vs.flatMap((e) => t[e] ? t[e].vs : e);
|
|
5578
5643
|
});
|
|
5579
5644
|
}
|
|
5580
|
-
function
|
|
5645
|
+
function rl(e, t) {
|
|
5581
5646
|
e.barycenter === void 0 ? (e.barycenter = t.barycenter, e.weight = t.weight) : (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight);
|
|
5582
5647
|
}
|
|
5583
|
-
function
|
|
5648
|
+
function il(e, t, n, r) {
|
|
5584
5649
|
r ||= e.nodes();
|
|
5585
|
-
let i =
|
|
5650
|
+
let i = al(e), a = new $({ compound: !0 }).setGraph({ root: i }).setDefaultNodeLabel((t) => e.node(t));
|
|
5586
5651
|
return r.forEach((r) => {
|
|
5587
5652
|
let o = e.node(r), s = e.parent(r);
|
|
5588
5653
|
if (o.rank === t || o.minRank <= t && t <= o.maxRank) {
|
|
@@ -5598,12 +5663,12 @@ function el(e, t, n, r) {
|
|
|
5598
5663
|
}
|
|
5599
5664
|
}), a;
|
|
5600
5665
|
}
|
|
5601
|
-
function
|
|
5666
|
+
function al(e) {
|
|
5602
5667
|
let t;
|
|
5603
|
-
for (; e.hasNode(t =
|
|
5668
|
+
for (; e.hasNode(t = Os("_root")););
|
|
5604
5669
|
return t;
|
|
5605
5670
|
}
|
|
5606
|
-
function
|
|
5671
|
+
function ol(e, t, n) {
|
|
5607
5672
|
let r = {}, i;
|
|
5608
5673
|
n.forEach((n) => {
|
|
5609
5674
|
let a = e.parent(n), o, s;
|
|
@@ -5616,22 +5681,22 @@ function nl(e, t, n) {
|
|
|
5616
5681
|
}
|
|
5617
5682
|
});
|
|
5618
5683
|
}
|
|
5619
|
-
function
|
|
5684
|
+
function sl(e, t = {}) {
|
|
5620
5685
|
if (typeof t.customOrder == "function") {
|
|
5621
|
-
t.customOrder(e,
|
|
5686
|
+
t.customOrder(e, sl);
|
|
5622
5687
|
return;
|
|
5623
5688
|
}
|
|
5624
|
-
let n =
|
|
5625
|
-
if (
|
|
5689
|
+
let n = Cs(e), r = cl(e, ks(1, n + 1), "inEdges"), i = cl(e, ks(n - 1, -1, -1), "outEdges"), a = Gc(e);
|
|
5690
|
+
if (ul(e, a), t.disableOptimalOrderHeuristic) return;
|
|
5626
5691
|
let o = Infinity, s, c = t.constraints || [];
|
|
5627
5692
|
for (let t = 0, n = 0; n < 4; ++t, ++n) {
|
|
5628
|
-
|
|
5629
|
-
let l =
|
|
5693
|
+
ll(t % 2 ? r : i, t % 4 >= 2, c), a = gs(e);
|
|
5694
|
+
let l = Kc(e, a);
|
|
5630
5695
|
l < o ? (n = 0, s = Object.assign({}, a), o = l) : l === o && (s = structuredClone(a));
|
|
5631
5696
|
}
|
|
5632
|
-
|
|
5697
|
+
ul(e, s);
|
|
5633
5698
|
}
|
|
5634
|
-
function
|
|
5699
|
+
function cl(e, t, n) {
|
|
5635
5700
|
let r = /* @__PURE__ */ new Map(), i = (e, t) => {
|
|
5636
5701
|
r.has(e) || r.set(e, []), r.get(e).push(t);
|
|
5637
5702
|
};
|
|
@@ -5640,48 +5705,48 @@ function il(e, t, n) {
|
|
|
5640
5705
|
if (typeof n.rank == "number" && i(n.rank, t), typeof n.minRank == "number" && typeof n.maxRank == "number") for (let e = n.minRank; e <= n.maxRank; e++) e !== n.rank && i(e, t);
|
|
5641
5706
|
}
|
|
5642
5707
|
return t.map(function(t) {
|
|
5643
|
-
return
|
|
5708
|
+
return il(e, t, n, r.get(t) || []);
|
|
5644
5709
|
});
|
|
5645
5710
|
}
|
|
5646
|
-
function
|
|
5711
|
+
function ll(e, t, n) {
|
|
5647
5712
|
let r = new $();
|
|
5648
5713
|
e.forEach(function(e) {
|
|
5649
5714
|
n.forEach((e) => r.setEdge(e.left, e.right));
|
|
5650
|
-
let i = e.graph().root, a =
|
|
5651
|
-
a.vs.forEach((t, n) => e.node(t).order = n),
|
|
5715
|
+
let i = e.graph().root, a = tl(e, i, r, t);
|
|
5716
|
+
a.vs.forEach((t, n) => e.node(t).order = n), ol(e, r, a.vs);
|
|
5652
5717
|
});
|
|
5653
5718
|
}
|
|
5654
|
-
function
|
|
5719
|
+
function ul(e, t) {
|
|
5655
5720
|
Object.values(t).forEach((t) => t.forEach((t, n) => e.node(t).order = n));
|
|
5656
5721
|
}
|
|
5657
|
-
function
|
|
5722
|
+
function dl(e, t) {
|
|
5658
5723
|
let n = {};
|
|
5659
5724
|
function r(t, r) {
|
|
5660
5725
|
let i = 0, a = 0, o = t.length, s = r[r.length - 1];
|
|
5661
5726
|
return r.forEach((t, c) => {
|
|
5662
|
-
let l =
|
|
5727
|
+
let l = pl(e, t), u = l ? e.node(l).order : o;
|
|
5663
5728
|
(l || t === s) && (r.slice(a, c + 1).forEach((t) => {
|
|
5664
5729
|
let r = e.predecessors(t);
|
|
5665
5730
|
r && r.forEach((r) => {
|
|
5666
5731
|
let a = e.node(r), o = a.order;
|
|
5667
|
-
(o < i || u < o) && !(a.dummy && e.node(t).dummy) &&
|
|
5732
|
+
(o < i || u < o) && !(a.dummy && e.node(t).dummy) && ml(n, r, t);
|
|
5668
5733
|
});
|
|
5669
5734
|
}), a = c + 1, i = u);
|
|
5670
5735
|
}), r;
|
|
5671
5736
|
}
|
|
5672
5737
|
return t.length && t.reduce(r), n;
|
|
5673
5738
|
}
|
|
5674
|
-
function
|
|
5739
|
+
function fl(e, t) {
|
|
5675
5740
|
let n = {};
|
|
5676
5741
|
function r(t, r, i, a, o) {
|
|
5677
|
-
|
|
5742
|
+
ks(r, i).forEach((r) => {
|
|
5678
5743
|
let i = t[r];
|
|
5679
5744
|
if (i !== void 0 && e.node(i).dummy) {
|
|
5680
5745
|
let t = e.predecessors(i);
|
|
5681
5746
|
t && t.forEach((t) => {
|
|
5682
5747
|
if (t === void 0) return;
|
|
5683
5748
|
let r = e.node(t);
|
|
5684
|
-
r.dummy && (r.order < a || r.order > o) &&
|
|
5749
|
+
r.dummy && (r.order < a || r.order > o) && ml(n, t, i);
|
|
5685
5750
|
});
|
|
5686
5751
|
}
|
|
5687
5752
|
});
|
|
@@ -5702,13 +5767,13 @@ function cl(e, t) {
|
|
|
5702
5767
|
}
|
|
5703
5768
|
return t.length && t.reduce(i), n;
|
|
5704
5769
|
}
|
|
5705
|
-
function
|
|
5770
|
+
function pl(e, t) {
|
|
5706
5771
|
if (e.node(t).dummy) {
|
|
5707
5772
|
let n = e.predecessors(t);
|
|
5708
5773
|
if (n) return n.find((t) => e.node(t).dummy);
|
|
5709
5774
|
}
|
|
5710
5775
|
}
|
|
5711
|
-
function
|
|
5776
|
+
function ml(e, t, n) {
|
|
5712
5777
|
if (t > n) {
|
|
5713
5778
|
let e = t;
|
|
5714
5779
|
t = n, n = e;
|
|
@@ -5716,7 +5781,7 @@ function ul(e, t, n) {
|
|
|
5716
5781
|
let r = e[t];
|
|
5717
5782
|
r || (e[t] = r = {}), r[n] = !0;
|
|
5718
5783
|
}
|
|
5719
|
-
function
|
|
5784
|
+
function hl(e, t, n) {
|
|
5720
5785
|
if (t > n) {
|
|
5721
5786
|
let e = t;
|
|
5722
5787
|
t = n, n = e;
|
|
@@ -5724,7 +5789,7 @@ function dl(e, t, n) {
|
|
|
5724
5789
|
let r = e[t];
|
|
5725
5790
|
return r !== void 0 && Object.hasOwn(r, n);
|
|
5726
5791
|
}
|
|
5727
|
-
function
|
|
5792
|
+
function gl(e, t, n, r) {
|
|
5728
5793
|
let i = {}, a = {}, o = {};
|
|
5729
5794
|
return t.forEach((e) => {
|
|
5730
5795
|
e.forEach((e, t) => {
|
|
@@ -5743,7 +5808,7 @@ function fl(e, t, n, r) {
|
|
|
5743
5808
|
let c = r[s];
|
|
5744
5809
|
if (c === void 0) continue;
|
|
5745
5810
|
let l = o[c];
|
|
5746
|
-
if (l !== void 0 && a[e] === e && t < l && !
|
|
5811
|
+
if (l !== void 0 && a[e] === e && t < l && !hl(n, e, c)) {
|
|
5747
5812
|
let n = i[c];
|
|
5748
5813
|
n !== void 0 && (a[c] = e, a[e] = i[e] = n, t = l);
|
|
5749
5814
|
}
|
|
@@ -5755,8 +5820,8 @@ function fl(e, t, n, r) {
|
|
|
5755
5820
|
align: a
|
|
5756
5821
|
};
|
|
5757
5822
|
}
|
|
5758
|
-
function
|
|
5759
|
-
let a = {}, o =
|
|
5823
|
+
function _l(e, t, n, r, i = !1) {
|
|
5824
|
+
let a = {}, o = vl(e, t, n, i), s = i ? "borderLeft" : "borderRight";
|
|
5760
5825
|
function c(e, t) {
|
|
5761
5826
|
let n = o.nodes().slice(), r = {}, i = n.pop();
|
|
5762
5827
|
for (; i;) {
|
|
@@ -5795,8 +5860,8 @@ function pl(e, t, n, r, i = !1) {
|
|
|
5795
5860
|
t !== void 0 && (a[e] = a[t] ?? 0);
|
|
5796
5861
|
}), a;
|
|
5797
5862
|
}
|
|
5798
|
-
function
|
|
5799
|
-
let i = new $(), a = e.graph(), o =
|
|
5863
|
+
function vl(e, t, n, r) {
|
|
5864
|
+
let i = new $(), a = e.graph(), o = Cl(a.nodesep, a.edgesep, r);
|
|
5800
5865
|
return t.forEach((t) => {
|
|
5801
5866
|
let r;
|
|
5802
5867
|
t.forEach((t) => {
|
|
@@ -5814,31 +5879,31 @@ function ml(e, t, n, r) {
|
|
|
5814
5879
|
});
|
|
5815
5880
|
}), i;
|
|
5816
5881
|
}
|
|
5817
|
-
function
|
|
5882
|
+
function yl(e, t) {
|
|
5818
5883
|
return Object.values(t).reduce((t, n) => {
|
|
5819
5884
|
let r = -Infinity, i = Infinity;
|
|
5820
5885
|
Object.entries(n).forEach(([t, n]) => {
|
|
5821
|
-
let a =
|
|
5886
|
+
let a = wl(e, t) / 2;
|
|
5822
5887
|
r = Math.max(n + a, r), i = Math.min(n - a, i);
|
|
5823
5888
|
});
|
|
5824
5889
|
let a = r - i;
|
|
5825
5890
|
return a < t[0] && (t = [a, n]), t;
|
|
5826
5891
|
}, [Infinity, null])[1];
|
|
5827
5892
|
}
|
|
5828
|
-
function
|
|
5829
|
-
let n = Object.values(t), r =
|
|
5893
|
+
function bl(e, t) {
|
|
5894
|
+
let n = Object.values(t), r = Ss(Math.min, n), i = Ss(Math.max, n);
|
|
5830
5895
|
["u", "d"].forEach((n) => {
|
|
5831
5896
|
["l", "r"].forEach((a) => {
|
|
5832
5897
|
let o = n + a, s = e[o];
|
|
5833
5898
|
if (!s || s === t) return;
|
|
5834
|
-
let c = Object.values(s), l = r -
|
|
5835
|
-
a !== "l" && (l = i -
|
|
5899
|
+
let c = Object.values(s), l = r - Ss(Math.min, c);
|
|
5900
|
+
a !== "l" && (l = i - Ss(Math.max, c)), l && (e[o] = js(s, (e) => e + l));
|
|
5836
5901
|
});
|
|
5837
5902
|
});
|
|
5838
5903
|
}
|
|
5839
|
-
function
|
|
5904
|
+
function xl(e, t = void 0) {
|
|
5840
5905
|
let n = e.ul;
|
|
5841
|
-
return n ?
|
|
5906
|
+
return n ? js(n, (n, r) => {
|
|
5842
5907
|
if (t) {
|
|
5843
5908
|
let n = e[t.toLowerCase()];
|
|
5844
5909
|
if (n && n[r] !== void 0) return n[r];
|
|
@@ -5850,17 +5915,17 @@ function _l(e, t = void 0) {
|
|
|
5850
5915
|
return ((i[1] ?? 0) + (i[2] ?? 0)) / 2;
|
|
5851
5916
|
}) : {};
|
|
5852
5917
|
}
|
|
5853
|
-
function
|
|
5854
|
-
let t =
|
|
5918
|
+
function Sl(e) {
|
|
5919
|
+
let t = gs(e), n = Object.assign(dl(e, t), fl(e, t)), r = {}, i;
|
|
5855
5920
|
return ["u", "d"].forEach((a) => {
|
|
5856
5921
|
i = a === "u" ? t : Object.values(t).reverse(), ["l", "r"].forEach((t) => {
|
|
5857
5922
|
t === "r" && (i = i.map((e) => Object.values(e).reverse()));
|
|
5858
|
-
let o =
|
|
5859
|
-
t === "r" && (s =
|
|
5923
|
+
let o = gl(e, i, n, (t) => (a === "u" ? e.predecessors(t) : e.successors(t)) || []), s = _l(e, i, o.root, o.align, t === "r");
|
|
5924
|
+
t === "r" && (s = js(s, (e) => -e)), r[a + t] = s;
|
|
5860
5925
|
});
|
|
5861
|
-
}),
|
|
5926
|
+
}), bl(r, yl(e, r)), xl(r, e.graph().align);
|
|
5862
5927
|
}
|
|
5863
|
-
function
|
|
5928
|
+
function Cl(e, t, n) {
|
|
5864
5929
|
return (r, i, a) => {
|
|
5865
5930
|
let o = r.node(i), s = r.node(a), c = 0, l;
|
|
5866
5931
|
if (c += o.width / 2, Object.hasOwn(o, "labelpos")) switch (o.labelpos.toLowerCase()) {
|
|
@@ -5882,14 +5947,14 @@ function yl(e, t, n) {
|
|
|
5882
5947
|
return l && (c += n ? l : -l), c;
|
|
5883
5948
|
};
|
|
5884
5949
|
}
|
|
5885
|
-
function
|
|
5950
|
+
function wl(e, t) {
|
|
5886
5951
|
return e.node(t).width;
|
|
5887
5952
|
}
|
|
5888
|
-
function
|
|
5889
|
-
e =
|
|
5953
|
+
function Tl(e) {
|
|
5954
|
+
e = ms(e), El(e), Object.entries(Sl(e)).forEach(([t, n]) => e.node(t).x = n);
|
|
5890
5955
|
}
|
|
5891
|
-
function
|
|
5892
|
-
let t =
|
|
5956
|
+
function El(e) {
|
|
5957
|
+
let t = gs(e), n = e.graph(), r = n.ranksep, i = n.rankalign, a = 0;
|
|
5893
5958
|
t.forEach((t) => {
|
|
5894
5959
|
let n = t.reduce((t, n) => {
|
|
5895
5960
|
let r = e.node(n).height ?? 0;
|
|
@@ -5901,17 +5966,17 @@ function Sl(e) {
|
|
|
5901
5966
|
}), a += n + r;
|
|
5902
5967
|
});
|
|
5903
5968
|
}
|
|
5904
|
-
function
|
|
5905
|
-
let n = t.debugTiming ?
|
|
5969
|
+
function Dl(e, t = {}) {
|
|
5970
|
+
let n = t.debugTiming ? Ts : Es;
|
|
5906
5971
|
return n("layout", () => {
|
|
5907
|
-
let r = n(" buildLayoutGraph", () =>
|
|
5908
|
-
return n(" runLayout", () =>
|
|
5972
|
+
let r = n(" buildLayoutGraph", () => Rl(e));
|
|
5973
|
+
return n(" runLayout", () => Ol(r, n, t)), n(" updateInputGraph", () => kl(e, r)), r;
|
|
5909
5974
|
});
|
|
5910
5975
|
}
|
|
5911
|
-
function
|
|
5912
|
-
t(" makeSpaceForEdgeLabels", () =>
|
|
5976
|
+
function Ol(e, t, n) {
|
|
5977
|
+
t(" makeSpaceForEdgeLabels", () => zl(e)), t(" removeSelfEdges", () => Jl(e)), t(" acyclic", () => Ks(e)), t(" nestingGraph.run", () => kc(e)), t(" rank", () => bc(ms(e))), t(" injectEdgeLabelProxies", () => Bl(e)), t(" removeEmptyRanks", () => vs(e)), t(" nestingGraph.cleanup", () => Nc(e)), t(" normalizeRanks", () => _s(e)), t(" assignRankMinMax", () => Vl(e)), t(" removeEdgeLabelProxies", () => Hl(e)), t(" normalize.run", () => Ys(e)), t(" parentDummyChains", () => Tc(e)), t(" addBorderSegments", () => Pc(e)), t(" order", () => sl(e, n)), t(" insertSelfEdges", () => Yl(e)), t(" adjustCoordinateSystem", () => Lc(e)), t(" position", () => Tl(e)), t(" positionSelfEdges", () => Xl(e)), t(" removeBorderNodes", () => ql(e)), t(" normalize.undo", () => Zs(e)), t(" fixupEdgeLabelCoords", () => Gl(e)), t(" undoCoordinateSystem", () => Rc(e)), t(" translateGraph", () => Ul(e)), t(" assignNodeIntersects", () => Wl(e)), t(" reversePoints", () => Kl(e)), t(" acyclic.undo", () => Js(e));
|
|
5913
5978
|
}
|
|
5914
|
-
function
|
|
5979
|
+
function kl(e, t) {
|
|
5915
5980
|
e.nodes().forEach((n) => {
|
|
5916
5981
|
let r = e.node(n), i = t.node(n);
|
|
5917
5982
|
r && (r.x = i.x, r.y = i.y, r.order = i.order, r.rank = i.rank, t.children(n).length && (r.width = i.width, r.height = i.height));
|
|
@@ -5920,89 +5985,89 @@ function Tl(e, t) {
|
|
|
5920
5985
|
r.points = i.points, Object.hasOwn(i, "x") && (r.x = i.x, r.y = i.y);
|
|
5921
5986
|
}), e.graph().width = t.graph().width, e.graph().height = t.graph().height;
|
|
5922
5987
|
}
|
|
5923
|
-
var
|
|
5988
|
+
var Al = [
|
|
5924
5989
|
"nodesep",
|
|
5925
5990
|
"edgesep",
|
|
5926
5991
|
"ranksep",
|
|
5927
5992
|
"marginx",
|
|
5928
5993
|
"marginy"
|
|
5929
|
-
],
|
|
5994
|
+
], jl = {
|
|
5930
5995
|
ranksep: 50,
|
|
5931
5996
|
edgesep: 20,
|
|
5932
5997
|
nodesep: 50,
|
|
5933
5998
|
rankdir: "TB",
|
|
5934
5999
|
rankalign: "center"
|
|
5935
|
-
},
|
|
6000
|
+
}, Ml = [
|
|
5936
6001
|
"acyclicer",
|
|
5937
6002
|
"ranker",
|
|
5938
6003
|
"rankdir",
|
|
5939
6004
|
"align",
|
|
5940
6005
|
"rankalign"
|
|
5941
|
-
],
|
|
6006
|
+
], Nl = [
|
|
5942
6007
|
"width",
|
|
5943
6008
|
"height",
|
|
5944
6009
|
"rank"
|
|
5945
|
-
],
|
|
6010
|
+
], Pl = {
|
|
5946
6011
|
width: 0,
|
|
5947
6012
|
height: 0
|
|
5948
|
-
},
|
|
6013
|
+
}, Fl = [
|
|
5949
6014
|
"minlen",
|
|
5950
6015
|
"weight",
|
|
5951
6016
|
"width",
|
|
5952
6017
|
"height",
|
|
5953
6018
|
"labeloffset"
|
|
5954
|
-
],
|
|
6019
|
+
], Il = {
|
|
5955
6020
|
minlen: 1,
|
|
5956
6021
|
weight: 1,
|
|
5957
6022
|
width: 0,
|
|
5958
6023
|
height: 0,
|
|
5959
6024
|
labeloffset: 10,
|
|
5960
6025
|
labelpos: "r"
|
|
5961
|
-
},
|
|
5962
|
-
function
|
|
6026
|
+
}, Ll = ["labelpos"];
|
|
6027
|
+
function Rl(e) {
|
|
5963
6028
|
let t = new $({
|
|
5964
6029
|
multigraph: !0,
|
|
5965
6030
|
compound: !0
|
|
5966
|
-
}), n =
|
|
5967
|
-
return t.setGraph(Object.assign({},
|
|
5968
|
-
let r =
|
|
5969
|
-
Object.keys(
|
|
5970
|
-
r[e] === void 0 && (r[e] =
|
|
6031
|
+
}), n = Ql(e.graph());
|
|
6032
|
+
return t.setGraph(Object.assign({}, jl, Zl(n, Al), As(n, Ml))), e.nodes().forEach((n) => {
|
|
6033
|
+
let r = Zl(Ql(e.node(n)), Nl);
|
|
6034
|
+
Object.keys(Pl).forEach((e) => {
|
|
6035
|
+
r[e] === void 0 && (r[e] = Pl[e]);
|
|
5971
6036
|
}), t.setNode(n, r);
|
|
5972
6037
|
let i = e.parent(n);
|
|
5973
6038
|
i !== void 0 && t.setParent(n, i);
|
|
5974
6039
|
}), e.edges().forEach((n) => {
|
|
5975
|
-
let r =
|
|
5976
|
-
t.setEdge(n, Object.assign({},
|
|
6040
|
+
let r = Ql(e.edge(n));
|
|
6041
|
+
t.setEdge(n, Object.assign({}, Il, Zl(r, Fl), As(r, Ll)));
|
|
5977
6042
|
}), t;
|
|
5978
6043
|
}
|
|
5979
|
-
function
|
|
6044
|
+
function zl(e) {
|
|
5980
6045
|
let t = e.graph();
|
|
5981
6046
|
t.ranksep /= 2, e.edges().forEach((n) => {
|
|
5982
6047
|
let r = e.edge(n);
|
|
5983
6048
|
r.minlen *= 2, r.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? r.width += r.labeloffset : r.height += r.labeloffset);
|
|
5984
6049
|
});
|
|
5985
6050
|
}
|
|
5986
|
-
function
|
|
6051
|
+
function Bl(e) {
|
|
5987
6052
|
e.edges().forEach((t) => {
|
|
5988
6053
|
let n = e.edge(t);
|
|
5989
6054
|
if (n.width && n.height) {
|
|
5990
6055
|
let n = e.node(t.v);
|
|
5991
|
-
|
|
6056
|
+
fs(e, "edge-proxy", {
|
|
5992
6057
|
rank: (e.node(t.w).rank - n.rank) / 2 + n.rank,
|
|
5993
6058
|
e: t
|
|
5994
6059
|
}, "_ep");
|
|
5995
6060
|
}
|
|
5996
6061
|
});
|
|
5997
6062
|
}
|
|
5998
|
-
function
|
|
6063
|
+
function Vl(e) {
|
|
5999
6064
|
let t = 0;
|
|
6000
6065
|
e.nodes().forEach((n) => {
|
|
6001
6066
|
let r = e.node(n);
|
|
6002
6067
|
r.borderTop && (r.minRank = e.node(r.borderTop).rank, r.maxRank = e.node(r.borderBottom).rank, t = Math.max(t, r.maxRank));
|
|
6003
6068
|
}), e.graph().maxRank = t;
|
|
6004
6069
|
}
|
|
6005
|
-
function
|
|
6070
|
+
function Hl(e) {
|
|
6006
6071
|
e.nodes().forEach((t) => {
|
|
6007
6072
|
let n = e.node(t);
|
|
6008
6073
|
if (n.dummy === "edge-proxy") {
|
|
@@ -6011,7 +6076,7 @@ function Rl(e) {
|
|
|
6011
6076
|
}
|
|
6012
6077
|
});
|
|
6013
6078
|
}
|
|
6014
|
-
function
|
|
6079
|
+
function Ul(e) {
|
|
6015
6080
|
let t = Infinity, n = 0, r = Infinity, i = 0, a = e.graph(), o = a.marginx || 0, s = a.marginy || 0;
|
|
6016
6081
|
function c(e) {
|
|
6017
6082
|
let a = e.x, o = e.y, s = e.width, c = e.height;
|
|
@@ -6030,13 +6095,13 @@ function zl(e) {
|
|
|
6030
6095
|
}), Object.hasOwn(i, "x") && (i.x -= t), Object.hasOwn(i, "y") && (i.y -= r);
|
|
6031
6096
|
}), a.width = n - t + o, a.height = i - r + s;
|
|
6032
6097
|
}
|
|
6033
|
-
function
|
|
6098
|
+
function Wl(e) {
|
|
6034
6099
|
e.edges().forEach((t) => {
|
|
6035
6100
|
let n = e.edge(t), r = e.node(t.v), i = e.node(t.w), a, o;
|
|
6036
|
-
n.points ? (a = n.points[0], o = n.points[n.points.length - 1]) : (n.points = [], a = i, o = r), n.points.unshift(
|
|
6101
|
+
n.points ? (a = n.points[0], o = n.points[n.points.length - 1]) : (n.points = [], a = i, o = r), n.points.unshift(hs(r, a)), n.points.push(hs(i, o));
|
|
6037
6102
|
});
|
|
6038
6103
|
}
|
|
6039
|
-
function
|
|
6104
|
+
function Gl(e) {
|
|
6040
6105
|
e.edges().forEach((t) => {
|
|
6041
6106
|
let n = e.edge(t);
|
|
6042
6107
|
if (Object.hasOwn(n, "x")) switch ((n.labelpos === "l" || n.labelpos === "r") && (n.width -= n.labeloffset), n.labelpos) {
|
|
@@ -6049,13 +6114,13 @@ function Vl(e) {
|
|
|
6049
6114
|
}
|
|
6050
6115
|
});
|
|
6051
6116
|
}
|
|
6052
|
-
function
|
|
6117
|
+
function Kl(e) {
|
|
6053
6118
|
e.edges().forEach((t) => {
|
|
6054
6119
|
let n = e.edge(t);
|
|
6055
6120
|
n.reversed && n.points.reverse();
|
|
6056
6121
|
});
|
|
6057
6122
|
}
|
|
6058
|
-
function
|
|
6123
|
+
function ql(e) {
|
|
6059
6124
|
e.nodes().forEach((t) => {
|
|
6060
6125
|
if (e.children(t).length) {
|
|
6061
6126
|
let n = e.node(t), r = e.node(n.borderTop), i = e.node(n.borderBottom), a = e.node(n.borderLeft[n.borderLeft.length - 1]), o = e.node(n.borderRight[n.borderRight.length - 1]);
|
|
@@ -6065,7 +6130,7 @@ function Ul(e) {
|
|
|
6065
6130
|
e.node(t).dummy === "border" && e.removeNode(t);
|
|
6066
6131
|
});
|
|
6067
6132
|
}
|
|
6068
|
-
function
|
|
6133
|
+
function Jl(e) {
|
|
6069
6134
|
e.edges().forEach((t) => {
|
|
6070
6135
|
if (t.v === t.w) {
|
|
6071
6136
|
let n = e.node(t.v);
|
|
@@ -6076,13 +6141,13 @@ function Wl(e) {
|
|
|
6076
6141
|
}
|
|
6077
6142
|
});
|
|
6078
6143
|
}
|
|
6079
|
-
function
|
|
6080
|
-
|
|
6144
|
+
function Yl(e) {
|
|
6145
|
+
gs(e).forEach((t) => {
|
|
6081
6146
|
let n = 0;
|
|
6082
6147
|
t.forEach((t, r) => {
|
|
6083
6148
|
let i = e.node(t);
|
|
6084
6149
|
i.order = r + n, (i.selfEdges || []).forEach((t) => {
|
|
6085
|
-
|
|
6150
|
+
fs(e, "selfedge", {
|
|
6086
6151
|
width: t.label.width,
|
|
6087
6152
|
height: t.label.height,
|
|
6088
6153
|
rank: i.rank,
|
|
@@ -6094,7 +6159,7 @@ function Gl(e) {
|
|
|
6094
6159
|
});
|
|
6095
6160
|
});
|
|
6096
6161
|
}
|
|
6097
|
-
function
|
|
6162
|
+
function Xl(e) {
|
|
6098
6163
|
e.nodes().forEach((t) => {
|
|
6099
6164
|
let n = e.node(t);
|
|
6100
6165
|
if (n.dummy === "selfedge") {
|
|
@@ -6124,17 +6189,17 @@ function Kl(e) {
|
|
|
6124
6189
|
}
|
|
6125
6190
|
});
|
|
6126
6191
|
}
|
|
6127
|
-
function
|
|
6128
|
-
return
|
|
6192
|
+
function Zl(e, t) {
|
|
6193
|
+
return js(As(e, t), Number);
|
|
6129
6194
|
}
|
|
6130
|
-
function
|
|
6195
|
+
function Ql(e) {
|
|
6131
6196
|
let t = {};
|
|
6132
6197
|
return e && Object.entries(e).forEach(([e, n]) => {
|
|
6133
6198
|
typeof e == "string" && (e = e.toLowerCase()), t[e] = n;
|
|
6134
6199
|
}), t;
|
|
6135
6200
|
}
|
|
6136
|
-
function
|
|
6137
|
-
let t =
|
|
6201
|
+
function $l(e) {
|
|
6202
|
+
let t = gs(e), n = new $({
|
|
6138
6203
|
compound: !0,
|
|
6139
6204
|
multigraph: !0
|
|
6140
6205
|
}).setGraph({});
|
|
@@ -6145,26 +6210,26 @@ function Yl(e) {
|
|
|
6145
6210
|
n.setNode(r, { rank: "same" }), e.reduce((e, t) => (n.setEdge(e, t, { style: "invis" }), t));
|
|
6146
6211
|
}), n;
|
|
6147
6212
|
}
|
|
6148
|
-
var
|
|
6149
|
-
graphlib:
|
|
6150
|
-
version:
|
|
6151
|
-
layout:
|
|
6152
|
-
debug:
|
|
6213
|
+
var eu = {
|
|
6214
|
+
graphlib: Eo,
|
|
6215
|
+
version: Ps,
|
|
6216
|
+
layout: Dl,
|
|
6217
|
+
debug: $l,
|
|
6153
6218
|
util: {
|
|
6154
|
-
time:
|
|
6155
|
-
notime:
|
|
6219
|
+
time: Ts,
|
|
6220
|
+
notime: Es
|
|
6156
6221
|
}
|
|
6157
|
-
},
|
|
6222
|
+
}, tu = 172, nu = 36, ru = (e) => {
|
|
6158
6223
|
let { initialData: t } = e, n = F((e, t, n = "TB") => {
|
|
6159
|
-
let r = new
|
|
6224
|
+
let r = new eu.graphlib.Graph().setDefaultEdgeLabel(() => ({})), i = n === "LR";
|
|
6160
6225
|
return r.setGraph({ rankdir: n }), e.forEach((e) => {
|
|
6161
6226
|
r.setNode(e.id, {
|
|
6162
|
-
width:
|
|
6163
|
-
height:
|
|
6227
|
+
width: tu,
|
|
6228
|
+
height: nu
|
|
6164
6229
|
});
|
|
6165
6230
|
}), t.forEach((e) => {
|
|
6166
6231
|
r.setEdge(e.source, e.target);
|
|
6167
|
-
}),
|
|
6232
|
+
}), eu.layout(r), {
|
|
6168
6233
|
nodes: e.map((e) => {
|
|
6169
6234
|
let t = r.node(e.id);
|
|
6170
6235
|
return {
|
|
@@ -6172,8 +6237,8 @@ var Xl = {
|
|
|
6172
6237
|
targetPosition: i ? "left" : "top",
|
|
6173
6238
|
sourcePosition: i ? "right" : "bottom",
|
|
6174
6239
|
position: {
|
|
6175
|
-
x: t.x -
|
|
6176
|
-
y: t.y -
|
|
6240
|
+
x: t.x - tu / 2,
|
|
6241
|
+
y: t.y - nu / 2
|
|
6177
6242
|
}
|
|
6178
6243
|
};
|
|
6179
6244
|
}),
|
|
@@ -6215,7 +6280,7 @@ var Xl = {
|
|
|
6215
6280
|
}
|
|
6216
6281
|
p((t) => vt({
|
|
6217
6282
|
...e,
|
|
6218
|
-
id:
|
|
6283
|
+
id: _o()
|
|
6219
6284
|
}, t));
|
|
6220
6285
|
}, [p]),
|
|
6221
6286
|
onLayout: F((e) => {
|
|
@@ -6229,16 +6294,16 @@ var Xl = {
|
|
|
6229
6294
|
n
|
|
6230
6295
|
])
|
|
6231
6296
|
};
|
|
6232
|
-
},
|
|
6233
|
-
let e = _e(
|
|
6297
|
+
}, iu = () => {
|
|
6298
|
+
let e = _e(lo);
|
|
6234
6299
|
if (!e) throw Error("useHmFlow must be used within a HmFlowProvider");
|
|
6235
6300
|
return e;
|
|
6236
|
-
},
|
|
6237
|
-
let e = _e(
|
|
6301
|
+
}, au = () => {
|
|
6302
|
+
let e = _e(so);
|
|
6238
6303
|
if (!e) throw Error("HmFlowChildrenDepsContext is not defined");
|
|
6239
6304
|
return e;
|
|
6240
|
-
},
|
|
6241
|
-
let { initialData: t, canvasConfig: n = {}, sideBarComponent: r, modalComponent: i, bottomComponent: a, headerComponent: o, onCanvasDoubleClick: s, onCanvasDoubleClicked: c, onNodeDoubleClick: l } = e, { miniMap: u = !1, controls: d = !1, background: f = !1, colorMode: p = "light" } = n || {}, [m, h] = z(!1), [g, _] = z(!1), [v, y] = z(null), [b, x] = z(null), [S, C] = z(!1), [ee, te] = z({}), { nodeTypes: w } =
|
|
6305
|
+
}, ou = (e) => {
|
|
6306
|
+
let { initialData: t, canvasConfig: n = {}, sideBarComponent: r, modalComponent: i, bottomComponent: a, headerComponent: o, onCanvasDoubleClick: s, onCanvasDoubleClicked: c, onNodeDoubleClick: l } = e, { miniMap: u = !1, controls: d = !1, background: f = !1, colorMode: p = "light" } = n || {}, [m, h] = z(!1), [g, _] = z(!1), [v, y] = z(null), [b, x] = z(null), [S, C] = z(!1), [ee, te] = z({}), { nodeTypes: w } = iu(), { nodes: ne, setNodes: re, selectedNodes: T, currentNode: ie, setCurrentNode: E, edges: D, setEdges: O, onNodesChange: k, onEdgesChange: ae, onConnect: oe, onLayout: se } = ru({ initialData: t }), ce = R(null), { clickedPosition: le, setClickedPosition: ue, screenToFlowPosition: A, toObject: j, setViewport: M } = po({
|
|
6242
6307
|
reactFlowWrapper: ce,
|
|
6243
6308
|
setDrawerOpened: h,
|
|
6244
6309
|
setCurrentTab: y
|
|
@@ -6325,10 +6390,10 @@ var Xl = {
|
|
|
6325
6390
|
s,
|
|
6326
6391
|
c
|
|
6327
6392
|
]), ge = F((e, t) => l(e, t, P), [l, P]);
|
|
6328
|
-
return /* @__PURE__ */ H(
|
|
6393
|
+
return /* @__PURE__ */ H(co, {
|
|
6329
6394
|
deps: P,
|
|
6330
6395
|
children: /* @__PURE__ */ U("div", {
|
|
6331
|
-
className:
|
|
6396
|
+
className: oo.root,
|
|
6332
6397
|
ref: ce,
|
|
6333
6398
|
onDoubleClick: he,
|
|
6334
6399
|
children: [
|
|
@@ -6371,20 +6436,20 @@ var Xl = {
|
|
|
6371
6436
|
]
|
|
6372
6437
|
})
|
|
6373
6438
|
});
|
|
6374
|
-
},
|
|
6439
|
+
}, su = {
|
|
6375
6440
|
root: "_root_1l21o_1",
|
|
6376
6441
|
status: "_status_1l21o_21",
|
|
6377
6442
|
inner: "_inner_1l21o_63",
|
|
6378
6443
|
title: "_title_1l21o_86"
|
|
6379
|
-
},
|
|
6380
|
-
let { title: n, textStatus: i, color: a = "green", actions: o } = t, { deps: s } =
|
|
6444
|
+
}, cu = (t) => {
|
|
6445
|
+
let { title: n, textStatus: i, color: a = "green", actions: o } = t, { deps: s } = au(), c = L(() => o.find((e) => e.type === "edit"), [o]), l = F((e) => () => {
|
|
6381
6446
|
e.onClick({ deps: s });
|
|
6382
6447
|
}, [s]);
|
|
6383
6448
|
return /* @__PURE__ */ H("div", {
|
|
6384
|
-
className:
|
|
6449
|
+
className: su.root,
|
|
6385
6450
|
"data-status": a,
|
|
6386
6451
|
children: /* @__PURE__ */ U("div", {
|
|
6387
|
-
className:
|
|
6452
|
+
className: su.inner,
|
|
6388
6453
|
children: [
|
|
6389
6454
|
c && /* @__PURE__ */ H(e, {
|
|
6390
6455
|
variant: "subtle",
|
|
@@ -6392,30 +6457,30 @@ var Xl = {
|
|
|
6392
6457
|
children: c.icon
|
|
6393
6458
|
}),
|
|
6394
6459
|
/* @__PURE__ */ H("h2", {
|
|
6395
|
-
className:
|
|
6460
|
+
className: su.title,
|
|
6396
6461
|
children: n
|
|
6397
6462
|
}),
|
|
6398
6463
|
/* @__PURE__ */ H(r, {
|
|
6399
|
-
className:
|
|
6464
|
+
className: su.status,
|
|
6400
6465
|
"data-status": a,
|
|
6401
6466
|
children: i
|
|
6402
6467
|
})
|
|
6403
6468
|
]
|
|
6404
6469
|
})
|
|
6405
6470
|
});
|
|
6406
|
-
},
|
|
6471
|
+
}, lu = (e) => {
|
|
6407
6472
|
let { items: t } = e;
|
|
6408
6473
|
return /* @__PURE__ */ H("div", { children: t.map((e) => {
|
|
6409
6474
|
let { component: t, name: n } = e;
|
|
6410
6475
|
return /* @__PURE__ */ H(t, {}, n);
|
|
6411
6476
|
}) });
|
|
6412
|
-
},
|
|
6477
|
+
}, uu = (e) => {
|
|
6413
6478
|
let { items: t } = e;
|
|
6414
6479
|
return /* @__PURE__ */ H("div", { children: t.map((e) => {
|
|
6415
6480
|
let { component: t, name: n } = e;
|
|
6416
6481
|
return /* @__PURE__ */ H(t, {}, n);
|
|
6417
6482
|
}) });
|
|
6418
|
-
},
|
|
6483
|
+
}, du = (e) => {
|
|
6419
6484
|
let { modalOpened: t, items: n, currentModalTab: r, testMode: i = !1, setModalOpened: a } = e;
|
|
6420
6485
|
return /* @__PURE__ */ H(_, {
|
|
6421
6486
|
radius: "lg",
|
|
@@ -6442,7 +6507,7 @@ var Xl = {
|
|
|
6442
6507
|
})]
|
|
6443
6508
|
})
|
|
6444
6509
|
});
|
|
6445
|
-
},
|
|
6510
|
+
}, fu = (e) => {
|
|
6446
6511
|
let { drawerOpened: t, items: n, onDrawerClose: r, currentTab: i, testMode: a = !1 } = e, [o, s] = z(i);
|
|
6447
6512
|
return /* @__PURE__ */ H(l, {
|
|
6448
6513
|
opened: t,
|
|
@@ -6472,14 +6537,14 @@ var Xl = {
|
|
|
6472
6537
|
})]
|
|
6473
6538
|
})
|
|
6474
6539
|
});
|
|
6475
|
-
},
|
|
6540
|
+
}, pu = {
|
|
6476
6541
|
editor: "_editor_5cxze_1",
|
|
6477
6542
|
icon: "_icon_5cxze_5",
|
|
6478
6543
|
label: "_label_5cxze_11",
|
|
6479
6544
|
input: "_input_5cxze_18",
|
|
6480
6545
|
dropdown: "_dropdown_5cxze_22"
|
|
6481
|
-
},
|
|
6482
|
-
let { onUpdateNode: t } = e, { deps: n } =
|
|
6546
|
+
}, mu = (e) => {
|
|
6547
|
+
let { onUpdateNode: t } = e, { deps: n } = au(), { setCurrentNode: i, currentNode: a } = n, [o, s] = z(a?.data || {});
|
|
6483
6548
|
if (I(() => {
|
|
6484
6549
|
s(a?.data || {});
|
|
6485
6550
|
}, [a?.data]), !a || !a.data) return console.warn("currentNode ou ses données ne sont pas disponibles."), null;
|
|
@@ -6497,7 +6562,7 @@ var Xl = {
|
|
|
6497
6562
|
...o.parameters,
|
|
6498
6563
|
[e]: {
|
|
6499
6564
|
...o.parameters[e],
|
|
6500
|
-
value:
|
|
6565
|
+
value: hu(o.parameters[e].type, t)
|
|
6501
6566
|
}
|
|
6502
6567
|
}, r = {
|
|
6503
6568
|
...o,
|
|
@@ -6518,18 +6583,18 @@ var Xl = {
|
|
|
6518
6583
|
}
|
|
6519
6584
|
};
|
|
6520
6585
|
return /* @__PURE__ */ U(r, {
|
|
6521
|
-
className:
|
|
6586
|
+
className: pu.nodeEditor,
|
|
6522
6587
|
children: [/* @__PURE__ */ H(p, {
|
|
6523
6588
|
gap: 8,
|
|
6524
|
-
className:
|
|
6589
|
+
className: pu.label,
|
|
6525
6590
|
children: /* @__PURE__ */ H(g, {
|
|
6526
6591
|
leftSection: /* @__PURE__ */ H(h, {
|
|
6527
6592
|
src: o.icon,
|
|
6528
6593
|
alt: o.label,
|
|
6529
|
-
className:
|
|
6594
|
+
className: pu.icon
|
|
6530
6595
|
}),
|
|
6531
6596
|
value: o.label,
|
|
6532
|
-
classNames: { input:
|
|
6597
|
+
classNames: { input: pu.input },
|
|
6533
6598
|
onChange: (e) => c(e.currentTarget.value),
|
|
6534
6599
|
onBlur: u,
|
|
6535
6600
|
placeholder: "Enter node label",
|
|
@@ -6553,7 +6618,7 @@ var Xl = {
|
|
|
6553
6618
|
}, e))
|
|
6554
6619
|
})]
|
|
6555
6620
|
});
|
|
6556
|
-
},
|
|
6621
|
+
}, hu = (e, t) => {
|
|
6557
6622
|
switch (e) {
|
|
6558
6623
|
case "number": return Number(t);
|
|
6559
6624
|
case "string": return String(t);
|
|
@@ -6571,23 +6636,23 @@ var Xl = {
|
|
|
6571
6636
|
}
|
|
6572
6637
|
default: return t;
|
|
6573
6638
|
}
|
|
6574
|
-
},
|
|
6639
|
+
}, gu = {
|
|
6575
6640
|
icon: "_icon_xqktb_1",
|
|
6576
6641
|
inner: "_inner_xqktb_7",
|
|
6577
6642
|
nodeItem: "_nodeItem_xqktb_11",
|
|
6578
6643
|
label: "_label_xqktb_26"
|
|
6579
|
-
},
|
|
6580
|
-
className:
|
|
6644
|
+
}, _u = ({ img: e, label: t, onSelect: n }) => /* @__PURE__ */ U(p, {
|
|
6645
|
+
className: gu.nodeItem,
|
|
6581
6646
|
onClick: () => n(t),
|
|
6582
6647
|
children: [/* @__PURE__ */ H(h, {
|
|
6583
6648
|
src: e,
|
|
6584
|
-
className:
|
|
6649
|
+
className: gu.icon
|
|
6585
6650
|
}), /* @__PURE__ */ H("p", {
|
|
6586
|
-
className:
|
|
6651
|
+
className: gu.label,
|
|
6587
6652
|
children: t
|
|
6588
6653
|
})]
|
|
6589
|
-
}),
|
|
6590
|
-
let { searchItems: t, actions: n } = e, { deps: r } =
|
|
6654
|
+
}), vu = (e) => {
|
|
6655
|
+
let { searchItems: t, actions: n } = e, { deps: r } = au(), [i, a] = z(""), o = L(() => {
|
|
6591
6656
|
let e = i.trim().toLowerCase();
|
|
6592
6657
|
return t.filter((t) => t.data.label.toLowerCase().includes(e));
|
|
6593
6658
|
}, [t, i]), s = F((e) => {
|
|
@@ -6603,18 +6668,18 @@ var Xl = {
|
|
|
6603
6668
|
className: "space-y-0",
|
|
6604
6669
|
children: o.map((e) => {
|
|
6605
6670
|
let { id: t, data: { icon: n, label: i } } = e;
|
|
6606
|
-
return /* @__PURE__ */ H(
|
|
6671
|
+
return /* @__PURE__ */ H(_u, {
|
|
6607
6672
|
img: n,
|
|
6608
6673
|
label: i,
|
|
6609
6674
|
onSelect: () => s({
|
|
6610
|
-
node:
|
|
6675
|
+
node: Su(e),
|
|
6611
6676
|
deps: r
|
|
6612
6677
|
})
|
|
6613
6678
|
}, t);
|
|
6614
6679
|
})
|
|
6615
6680
|
})] });
|
|
6616
|
-
},
|
|
6617
|
-
let { meta: t, submitButtonText: n, defaultValues: a, onSubmit: o } = e, { deps: s } =
|
|
6681
|
+
}, yu = (e) => {
|
|
6682
|
+
let { meta: t, submitButtonText: n, defaultValues: a, onSubmit: o } = e, { deps: s } = au(), c = Ce({
|
|
6618
6683
|
mode: "onSubmit",
|
|
6619
6684
|
reValidateMode: "onSubmit",
|
|
6620
6685
|
defaultValues: a
|
|
@@ -6638,7 +6703,7 @@ var Xl = {
|
|
|
6638
6703
|
})]
|
|
6639
6704
|
})
|
|
6640
6705
|
}) });
|
|
6641
|
-
},
|
|
6706
|
+
}, bu = {
|
|
6642
6707
|
root: "_root_qhu9s_1",
|
|
6643
6708
|
inner: "_inner_qhu9s_8",
|
|
6644
6709
|
rightActions: "_rightActions_qhu9s_15",
|
|
@@ -6646,23 +6711,23 @@ var Xl = {
|
|
|
6646
6711
|
mainAction: "_mainAction_qhu9s_38",
|
|
6647
6712
|
execute: "_execute_qhu9s_1",
|
|
6648
6713
|
mainInner: "_mainInner_qhu9s_64"
|
|
6649
|
-
},
|
|
6650
|
-
let { actions: n } = t, { deps: i } =
|
|
6714
|
+
}, xu = (t) => {
|
|
6715
|
+
let { actions: n } = t, { deps: i } = au(), a = F((e) => () => {
|
|
6651
6716
|
e.onClick({ deps: i });
|
|
6652
6717
|
}, [i]), o = L(() => n.filter((e) => e.position === "right"), [n]), s = L(() => n.find((e) => e.position === "main"), [n]);
|
|
6653
6718
|
return /* @__PURE__ */ U("div", {
|
|
6654
|
-
className:
|
|
6719
|
+
className: bu.root,
|
|
6655
6720
|
children: [s && /* @__PURE__ */ H("div", {
|
|
6656
|
-
className:
|
|
6721
|
+
className: bu.mainAction,
|
|
6657
6722
|
children: /* @__PURE__ */ H("div", {
|
|
6658
|
-
className:
|
|
6723
|
+
className: bu.mainInner,
|
|
6659
6724
|
onClick: a(s),
|
|
6660
6725
|
children: s.icon
|
|
6661
6726
|
})
|
|
6662
6727
|
}, s.name), /* @__PURE__ */ H("div", {
|
|
6663
|
-
className:
|
|
6728
|
+
className: bu.inner,
|
|
6664
6729
|
children: /* @__PURE__ */ H(r, {
|
|
6665
|
-
className:
|
|
6730
|
+
className: bu.rightActions,
|
|
6666
6731
|
children: o.map((t) => /* @__PURE__ */ H(e, {
|
|
6667
6732
|
size: 40,
|
|
6668
6733
|
radius: 800,
|
|
@@ -6674,7 +6739,7 @@ var Xl = {
|
|
|
6674
6739
|
})
|
|
6675
6740
|
})]
|
|
6676
6741
|
});
|
|
6677
|
-
},
|
|
6742
|
+
}, Su = (e) => ({
|
|
6678
6743
|
...e,
|
|
6679
6744
|
dragging: !1,
|
|
6680
6745
|
isConnectable: !0,
|
|
@@ -6685,7 +6750,7 @@ var Xl = {
|
|
|
6685
6750
|
deletable: !0,
|
|
6686
6751
|
selected: !1,
|
|
6687
6752
|
draggable: !0
|
|
6688
|
-
}),
|
|
6753
|
+
}), Cu = {
|
|
6689
6754
|
root: "_root_1ec6v_1",
|
|
6690
6755
|
main: "_main_1ec6v_5",
|
|
6691
6756
|
inner: "_inner_1ec6v_18",
|
|
@@ -6695,8 +6760,8 @@ var Xl = {
|
|
|
6695
6760
|
handle: "_handle_1ec6v_62",
|
|
6696
6761
|
dropdown: "_dropdown_1ec6v_74",
|
|
6697
6762
|
add: "_add_1ec6v_85"
|
|
6698
|
-
},
|
|
6699
|
-
let { id: n, selected: i, data: a, ...o } = t, { actions: s, ...c } = a, { deps: l } =
|
|
6763
|
+
}, wu = (t) => {
|
|
6764
|
+
let { id: n, selected: i, data: a, ...o } = t, { actions: s, ...c } = a, { deps: l } = au(), u = ["add", "selectSearchItem"], d = Ct((e) => e.edges), f = L(() => d.some((e) => e.source === n), [d, n]), g = F((e) => {
|
|
6700
6765
|
let t = s.find((e) => e.type === "add");
|
|
6701
6766
|
t && t.onClick(e);
|
|
6702
6767
|
}, [s]), _ = F((e) => {
|
|
@@ -6707,24 +6772,24 @@ var Xl = {
|
|
|
6707
6772
|
});
|
|
6708
6773
|
}, []);
|
|
6709
6774
|
return /* @__PURE__ */ U("div", {
|
|
6710
|
-
className:
|
|
6775
|
+
className: Cu.root,
|
|
6711
6776
|
children: [
|
|
6712
6777
|
/* @__PURE__ */ H(m, {
|
|
6713
|
-
classNames: { dropdown:
|
|
6778
|
+
classNames: { dropdown: Cu.dropdown },
|
|
6714
6779
|
radius: 400,
|
|
6715
6780
|
shadow: "md",
|
|
6716
6781
|
children: /* @__PURE__ */ H("div", {
|
|
6717
|
-
className:
|
|
6782
|
+
className: Cu.main,
|
|
6718
6783
|
children: /* @__PURE__ */ U("div", {
|
|
6719
|
-
className:
|
|
6784
|
+
className: Cu.inner,
|
|
6720
6785
|
children: [
|
|
6721
6786
|
/* @__PURE__ */ H(m.Target, { children: /* @__PURE__ */ H(r, {
|
|
6722
6787
|
mod: { "data-selected": i },
|
|
6723
|
-
className:
|
|
6788
|
+
className: Cu.section,
|
|
6724
6789
|
style: { "--hover-color": c.color },
|
|
6725
6790
|
children: /* @__PURE__ */ H(h, {
|
|
6726
6791
|
src: c.icon,
|
|
6727
|
-
className:
|
|
6792
|
+
className: Cu.icon
|
|
6728
6793
|
})
|
|
6729
6794
|
}) }),
|
|
6730
6795
|
/* @__PURE__ */ H(m.Dropdown, { children: s && /* @__PURE__ */ H(p, {
|
|
@@ -6744,7 +6809,7 @@ var Xl = {
|
|
|
6744
6809
|
}, r))
|
|
6745
6810
|
}) }),
|
|
6746
6811
|
/* @__PURE__ */ H("h3", {
|
|
6747
|
-
className:
|
|
6812
|
+
className: Cu.label,
|
|
6748
6813
|
children: c.label
|
|
6749
6814
|
})
|
|
6750
6815
|
]
|
|
@@ -6752,7 +6817,7 @@ var Xl = {
|
|
|
6752
6817
|
})
|
|
6753
6818
|
}),
|
|
6754
6819
|
!f && /* @__PURE__ */ H("button", {
|
|
6755
|
-
className:
|
|
6820
|
+
className: Cu.add,
|
|
6756
6821
|
onClick: () => {
|
|
6757
6822
|
g({
|
|
6758
6823
|
node: t,
|
|
@@ -6762,7 +6827,7 @@ var Xl = {
|
|
|
6762
6827
|
children: /* @__PURE__ */ H(Fe, { size: 200 })
|
|
6763
6828
|
}),
|
|
6764
6829
|
/* @__PURE__ */ H("div", {
|
|
6765
|
-
className:
|
|
6830
|
+
className: Cu.handle,
|
|
6766
6831
|
children: /* @__PURE__ */ H(ft, {
|
|
6767
6832
|
type: "source",
|
|
6768
6833
|
position: ht.Right,
|
|
@@ -6770,7 +6835,7 @@ var Xl = {
|
|
|
6770
6835
|
})
|
|
6771
6836
|
}),
|
|
6772
6837
|
/* @__PURE__ */ H("div", {
|
|
6773
|
-
className:
|
|
6838
|
+
className: Cu.handle,
|
|
6774
6839
|
children: /* @__PURE__ */ H(ft, {
|
|
6775
6840
|
type: "target",
|
|
6776
6841
|
position: ht.Left,
|
|
@@ -6780,7 +6845,7 @@ var Xl = {
|
|
|
6780
6845
|
})
|
|
6781
6846
|
]
|
|
6782
6847
|
});
|
|
6783
|
-
},
|
|
6848
|
+
}, Tu = (e) => {
|
|
6784
6849
|
let { NodeType: t, actions: n, data: r, ...i } = e;
|
|
6785
6850
|
return /* @__PURE__ */ H(t, {
|
|
6786
6851
|
data: {
|
|
@@ -6789,7 +6854,7 @@ var Xl = {
|
|
|
6789
6854
|
},
|
|
6790
6855
|
...i
|
|
6791
6856
|
});
|
|
6792
|
-
},
|
|
6857
|
+
}, Eu = [
|
|
6793
6858
|
{
|
|
6794
6859
|
label: "Edit",
|
|
6795
6860
|
type: "edit",
|
|
@@ -6851,7 +6916,7 @@ var Xl = {
|
|
|
6851
6916
|
console.log("add");
|
|
6852
6917
|
}
|
|
6853
6918
|
}
|
|
6854
|
-
],
|
|
6919
|
+
], Du = [
|
|
6855
6920
|
{
|
|
6856
6921
|
name: "Execute",
|
|
6857
6922
|
type: "run",
|
|
@@ -6888,7 +6953,7 @@ var Xl = {
|
|
|
6888
6953
|
console.log("trash");
|
|
6889
6954
|
}
|
|
6890
6955
|
}
|
|
6891
|
-
],
|
|
6956
|
+
], Ou = [{
|
|
6892
6957
|
name: "Edit Canvas Config",
|
|
6893
6958
|
type: "edit",
|
|
6894
6959
|
icon: /* @__PURE__ */ H(Pe, {
|
|
@@ -6896,7 +6961,7 @@ var Xl = {
|
|
|
6896
6961
|
stroke: 1.5
|
|
6897
6962
|
}),
|
|
6898
6963
|
onClick: () => {}
|
|
6899
|
-
}],
|
|
6964
|
+
}], ku = [{
|
|
6900
6965
|
name: "Flow Metadata",
|
|
6901
6966
|
fields: [
|
|
6902
6967
|
{
|
|
@@ -6921,35 +6986,35 @@ var Xl = {
|
|
|
6921
6986
|
}
|
|
6922
6987
|
}
|
|
6923
6988
|
]
|
|
6924
|
-
}],
|
|
6925
|
-
let { searchItems: t, defaultHmFlowData: n, canvasConfig: r = {}, textStatus: i, color: a, onHmflowSave: o, onHmflowRun: s, onCanvasDoubleClicked: c, onHmflowDelete: l } = e, { actions: u, onNodeDoubleClick: d, onUpdateNode: f, searchNode: p } =
|
|
6926
|
-
bottomActions:
|
|
6927
|
-
headerActions:
|
|
6989
|
+
}], Au = (e) => {
|
|
6990
|
+
let { searchItems: t, defaultHmFlowData: n, canvasConfig: r = {}, textStatus: i, color: a, onHmflowSave: o, onHmflowRun: s, onCanvasDoubleClicked: c, onHmflowDelete: l } = e, { actions: u, onNodeDoubleClick: d, onUpdateNode: f, searchNode: p } = bo({ defaultActions: Eu }), { bottomAction: m, headerAction: h, hmflowData: g } = xo({
|
|
6991
|
+
bottomActions: Du,
|
|
6992
|
+
headerActions: Ou,
|
|
6928
6993
|
onHmflowSave: o,
|
|
6929
6994
|
onHmflowRun: s,
|
|
6930
6995
|
onHmflowDelete: l,
|
|
6931
6996
|
defaultHmFlowMetadata: n.metadata
|
|
6932
|
-
}), _ = L(() => ({ pyNode: (e) => /* @__PURE__ */ H(
|
|
6997
|
+
}), _ = L(() => ({ pyNode: (e) => /* @__PURE__ */ H(Tu, {
|
|
6933
6998
|
...e,
|
|
6934
|
-
NodeType:
|
|
6999
|
+
NodeType: wu,
|
|
6935
7000
|
actions: u
|
|
6936
7001
|
}) }), [u]), v = [{
|
|
6937
7002
|
name: "nodesSearch",
|
|
6938
|
-
component: () => /* @__PURE__ */ H(
|
|
7003
|
+
component: () => /* @__PURE__ */ H(vu, {
|
|
6939
7004
|
searchItems: t,
|
|
6940
7005
|
actions: u
|
|
6941
7006
|
})
|
|
6942
7007
|
}, {
|
|
6943
7008
|
name: "flowFormMetadata",
|
|
6944
|
-
component: () => /* @__PURE__ */ H(
|
|
7009
|
+
component: () => /* @__PURE__ */ H(yu, {
|
|
6945
7010
|
submitButtonText: "Update",
|
|
6946
|
-
meta:
|
|
7011
|
+
meta: ku,
|
|
6947
7012
|
defaultValues: g.current.metadata,
|
|
6948
7013
|
onSubmit: (e) => g.current.metadata = e
|
|
6949
7014
|
})
|
|
6950
7015
|
}], y = L(() => [{
|
|
6951
7016
|
name: "headerStatus",
|
|
6952
|
-
component: () => /* @__PURE__ */ H(
|
|
7017
|
+
component: () => /* @__PURE__ */ H(cu, {
|
|
6953
7018
|
title: g.current.metadata.name,
|
|
6954
7019
|
textStatus: i,
|
|
6955
7020
|
color: a,
|
|
@@ -6961,14 +7026,14 @@ var Xl = {
|
|
|
6961
7026
|
h
|
|
6962
7027
|
]), b = L(() => [{
|
|
6963
7028
|
name: "toolbar",
|
|
6964
|
-
component: () => /* @__PURE__ */ H(
|
|
7029
|
+
component: () => /* @__PURE__ */ H(xu, { actions: m })
|
|
6965
7030
|
}], [m]), x = [{
|
|
6966
7031
|
name: "nodeEditor",
|
|
6967
|
-
component: () => /* @__PURE__ */ H(
|
|
6968
|
-
}], S = F(() => /* @__PURE__ */ H(
|
|
6969
|
-
return /* @__PURE__ */ H(
|
|
7032
|
+
component: () => /* @__PURE__ */ H(mu, { onUpdateNode: f })
|
|
7033
|
+
}], S = F(() => /* @__PURE__ */ H(uu, { items: y }), [y]), C = F(() => /* @__PURE__ */ H(lu, { items: b }), [b]);
|
|
7034
|
+
return /* @__PURE__ */ H(fo, {
|
|
6970
7035
|
nodeTypes: _,
|
|
6971
|
-
children: /* @__PURE__ */ H(
|
|
7036
|
+
children: /* @__PURE__ */ H(ou, {
|
|
6972
7037
|
initialData: L(() => ({
|
|
6973
7038
|
edges: n.edges,
|
|
6974
7039
|
nodes: n.nodes
|
|
@@ -6977,26 +7042,26 @@ var Xl = {
|
|
|
6977
7042
|
onCanvasDoubleClicked: c,
|
|
6978
7043
|
onCanvasDoubleClick: p,
|
|
6979
7044
|
onNodeDoubleClick: d,
|
|
6980
|
-
sideBarComponent: ({ ...e }) => /* @__PURE__ */ H(
|
|
7045
|
+
sideBarComponent: ({ ...e }) => /* @__PURE__ */ H(fu, {
|
|
6981
7046
|
...e,
|
|
6982
7047
|
items: v
|
|
6983
7048
|
}),
|
|
6984
7049
|
headerComponent: S,
|
|
6985
7050
|
bottomComponent: C,
|
|
6986
|
-
modalComponent: ({ ...e }) => /* @__PURE__ */ H(
|
|
7051
|
+
modalComponent: ({ ...e }) => /* @__PURE__ */ H(du, {
|
|
6987
7052
|
...e,
|
|
6988
7053
|
items: x
|
|
6989
7054
|
})
|
|
6990
7055
|
})
|
|
6991
7056
|
});
|
|
6992
|
-
},
|
|
7057
|
+
}, ju = {
|
|
6993
7058
|
dots: ut.Dots,
|
|
6994
7059
|
cross: ut.Cross,
|
|
6995
7060
|
lines: ut.Lines
|
|
6996
|
-
},
|
|
7061
|
+
}, Mu = {
|
|
6997
7062
|
parameterRoot: "_parameterRoot_1e1qy_1",
|
|
6998
7063
|
fieldset: "_fieldset_1e1qy_7"
|
|
6999
|
-
},
|
|
7064
|
+
}, Nu = [
|
|
7000
7065
|
{
|
|
7001
7066
|
value: "string",
|
|
7002
7067
|
label: "string"
|
|
@@ -7021,12 +7086,12 @@ var Xl = {
|
|
|
7021
7086
|
value: "object",
|
|
7022
7087
|
label: "object"
|
|
7023
7088
|
}
|
|
7024
|
-
],
|
|
7025
|
-
className:
|
|
7089
|
+
], Pu = ({ index: e, param: t, onUpdate: n, onDelete: a }) => /* @__PURE__ */ H(r, {
|
|
7090
|
+
className: Mu.parameterRoot,
|
|
7026
7091
|
mt: "md",
|
|
7027
7092
|
children: /* @__PURE__ */ U(u, {
|
|
7028
7093
|
legend: `Parameter ${e + 1}`,
|
|
7029
|
-
className:
|
|
7094
|
+
className: Mu.fieldset,
|
|
7030
7095
|
children: [
|
|
7031
7096
|
/* @__PURE__ */ U(T, {
|
|
7032
7097
|
gap: 6,
|
|
@@ -7047,7 +7112,7 @@ var Xl = {
|
|
|
7047
7112
|
label: "Type parameter",
|
|
7048
7113
|
placeholder: "Select type",
|
|
7049
7114
|
radius: "md",
|
|
7050
|
-
data:
|
|
7115
|
+
data: Nu,
|
|
7051
7116
|
value: t.type,
|
|
7052
7117
|
onChange: (t) => n(e, "type", t || "")
|
|
7053
7118
|
}),
|
|
@@ -7095,15 +7160,15 @@ var Xl = {
|
|
|
7095
7160
|
})
|
|
7096
7161
|
]
|
|
7097
7162
|
})
|
|
7098
|
-
}),
|
|
7163
|
+
}), Fu = {
|
|
7099
7164
|
name: "",
|
|
7100
7165
|
label: "",
|
|
7101
7166
|
icon: null,
|
|
7102
7167
|
color: "",
|
|
7103
7168
|
version: "",
|
|
7104
7169
|
description: ""
|
|
7105
|
-
},
|
|
7106
|
-
let [e, t] = z(
|
|
7170
|
+
}, Iu = () => {
|
|
7171
|
+
let [e, t] = z(Fu), [n, r] = z([]), [i, a] = z(null);
|
|
7107
7172
|
return {
|
|
7108
7173
|
formValues: e,
|
|
7109
7174
|
updateFormValue: (e, n) => {
|
|
@@ -7134,11 +7199,11 @@ var Xl = {
|
|
|
7134
7199
|
wasmFile: i,
|
|
7135
7200
|
setWasmFile: a,
|
|
7136
7201
|
resetForm: () => {
|
|
7137
|
-
t(
|
|
7202
|
+
t(Fu), r([]), a(null);
|
|
7138
7203
|
}
|
|
7139
7204
|
};
|
|
7140
|
-
},
|
|
7141
|
-
let { wasmFile: n, parameters: a, formValues: o, updateFormValue: s, addParameter: l, updateParameter: u, deleteParameter: f, setWasmFile: p } =
|
|
7205
|
+
}, Lu = ({ submitButtonText: e, onSubmit: t }) => {
|
|
7206
|
+
let { wasmFile: n, parameters: a, formValues: o, updateFormValue: s, addParameter: l, updateParameter: u, deleteParameter: f, setWasmFile: p } = Iu(), [m, h] = z("");
|
|
7142
7207
|
return I(() => {
|
|
7143
7208
|
if (!o.icon) return;
|
|
7144
7209
|
let e = URL.createObjectURL(o.icon);
|
|
@@ -7210,7 +7275,7 @@ var Xl = {
|
|
|
7210
7275
|
mt: "md",
|
|
7211
7276
|
children: "Add Parameter"
|
|
7212
7277
|
}),
|
|
7213
|
-
a.map((e, t) => /* @__PURE__ */ H(
|
|
7278
|
+
a.map((e, t) => /* @__PURE__ */ H(Pu, {
|
|
7214
7279
|
index: t,
|
|
7215
7280
|
param: e,
|
|
7216
7281
|
onUpdate: u,
|
|
@@ -7228,4 +7293,4 @@ var Xl = {
|
|
|
7228
7293
|
});
|
|
7229
7294
|
};
|
|
7230
7295
|
//#endregion
|
|
7231
|
-
export {
|
|
7296
|
+
export { Ua as AppLayout, La as BottomBar, Rn as CNDIcon, Ga as CardGridLayout, Fn as ChartBuilder, bn as ChartContainer, qa as ContentLayout, Lu as CreateNodeForm, ka as FlowCard, $t as FormBuilder, zn as FuncdLogo, Bn as FuncdWordmark, vn as HMChart, _a as HMDataGrid, Wn as HMDrawer, Za as HMThemeProvider, Au as HmFlow, ju as HmFlowBackgroundVariant, ou as HmFlowBase, fo as HmFlowProvider, ya as IconLabelCell, Vn as NavBarLink, Tu as NodeWrapper, xa as ProgressCell, wu as PyNode, It as ReactiveAutocomplete, En as ReactiveBarChart, Lt as ReactiveCheckbox, Ln as ReactiveDashboard, ln as ReactiveForm, Dn as ReactiveLineChart, rn as ReactiveListField, Ft as ReactiveMultiSelect, Rt as ReactiveNumberField, zt as ReactivePasswordField, On as ReactivePieChart, Bt as ReactiveRadio, Vt as ReactiveRange, Ht as ReactiveSelect, Ut as ReactiveSwitch, Wt as ReactiveTextField, Gt as ReactiveTextareaField, da as RowHeight, Hn as SearchBar, Ma as SideBar, Ya as SplitLayout, Yn as StatCard, qn as StatsRing, Ca as StatusCell, Ta as TimeAgoCell, Da as TitleCell, Un as ToggleThemeMode, ao as cssVarResolver, Eu as defaultActions, kt as errorParser, Dt as errorResponse, Pt as errorsArrayToObject, jt as fieldRegex, Tt as flattenObj, xn as getChartAxisType, Nt as getError, Y as getMantineError, wt as getValuePath, Fu as initialFormValues, Et as isResolved, Mt as keepEnterInDropdown, Cn as mergeChartOptions, Su as pyNodeToNodeProps, io as pyTheme, Ot as response, Tn as useChartRows, Iu as useCreateNodeForm, iu as useHmFlow, au as useHmFlowChildrenDeps, po as useHmFlowInteractions, xo as useHmFlowService, ru as useNodeAndEdgeHandlers, bo as useNodesService, At as wait };
|