gz-ui-web 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gz-ui-web-lib/{ValuationLogDataChart-BqcetrGP.cjs → ValuationLogDataChart-D7bsKVgw.cjs} +10 -0
- package/gz-ui-web-lib/{ValuationLogDataChart-UvUtEgAU.js → ValuationLogDataChart-p81GFhgO.js} +132 -122
- package/gz-ui-web-lib/business-components/pcs/index.cjs +1 -1
- package/gz-ui-web-lib/business-components/pcs/index.js +1 -1
- package/gz-ui-web-lib/index.cjs +1 -1
- package/gz-ui-web-lib/index.js +2 -2
- package/package.json +1 -1
package/gz-ui-web-lib/{ValuationLogDataChart-UvUtEgAU.js → ValuationLogDataChart-p81GFhgO.js}
RENAMED
|
@@ -80,7 +80,7 @@ const Wu = ue((t, e) => {
|
|
|
80
80
|
Wu.displayName = "GZApp";
|
|
81
81
|
const lu = Wu;
|
|
82
82
|
Object.assign(lu, Pu);
|
|
83
|
-
const
|
|
83
|
+
const xe = ue((t, e) => {
|
|
84
84
|
const u = Y.c(9);
|
|
85
85
|
let r, n, o;
|
|
86
86
|
u[0] !== t ? ({
|
|
@@ -92,7 +92,7 @@ const Te = ue((t, e) => {
|
|
|
92
92
|
let s;
|
|
93
93
|
return u[4] !== r || u[5] !== e || u[6] !== n || u[7] !== a ? (s = /* @__PURE__ */ g($t, { ref: e, type: a, ...n, children: r }), u[4] = r, u[5] = e, u[6] = n, u[7] = a, u[8] = s) : s = u[8], s;
|
|
94
94
|
});
|
|
95
|
-
|
|
95
|
+
xe.displayName = "GZButton";
|
|
96
96
|
const Hu = (t) => {
|
|
97
97
|
const e = Y.c(2);
|
|
98
98
|
let u;
|
|
@@ -1025,6 +1025,16 @@ const Xt = (t) => {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
|
+
.ag-text-field-input-wrapper .ag-input-field-input.ag-text-field-input {
|
|
1029
|
+
border: 1px solid var(--gz-color-border) !important;
|
|
1030
|
+
cursor: pointer;
|
|
1031
|
+
transition: border-color 0.3s ease-in-out;
|
|
1032
|
+
|
|
1033
|
+
&:hover {
|
|
1034
|
+
border-color: var(--gz-color-primary-hover) !important;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1028
1038
|
.ag-paging-panel-content{
|
|
1029
1039
|
padding: 0 !important;
|
|
1030
1040
|
}
|
|
@@ -1144,7 +1154,7 @@ const Xt = (t) => {
|
|
|
1144
1154
|
I.classList.remove("gz-table-ping-left", "gz-table-ping-right");
|
|
1145
1155
|
}, []), v = pe((h) => {
|
|
1146
1156
|
h.direction === "horizontal" && L(h.api), t.onBodyScroll && t.onBodyScroll(h), n?.onBodyScroll && n.onBodyScroll(h);
|
|
1147
|
-
}, [L, t.onBodyScroll, n?.onBodyScroll]),
|
|
1157
|
+
}, [L, t.onBodyScroll, n?.onBodyScroll]), x = pe((h) => {
|
|
1148
1158
|
L(h.api), t.onGridReady && t.onGridReady(h), n?.onGridReady && n.onGridReady(h);
|
|
1149
1159
|
}, [L, t.onGridReady, n?.onGridReady]), f = pe((h) => {
|
|
1150
1160
|
L(h.api), t.onGridSizeChanged && t.onGridSizeChanged(h), n?.onGridSizeChanged && n.onGridSizeChanged(h);
|
|
@@ -1199,8 +1209,8 @@ const Xt = (t) => {
|
|
|
1199
1209
|
flexDirection: "column"
|
|
1200
1210
|
}, children: /* @__PURE__ */ g(It, { modules: rr, licenseKey: ur, children: /* @__PURE__ */ g(Pt, { ref: e, ...t, gridOptions: m, ...y === void 0 ? {} : {
|
|
1201
1211
|
theme: y
|
|
1202
|
-
}, className: M || void 0, defaultColDef: k, localeText: D, getContextMenuItems: b, onBodyScroll: v, onGridReady:
|
|
1203
|
-
}), or = "_root_fdyzl_1", ar = "_section_fdyzl_16", ir = "_sectionTitle_fdyzl_22", lr = "_contextForm_fdyzl_29", sr = "_fixedSingle_fdyzl_35", cr = "_multiple_fdyzl_40", dr = "_contextFormItem_fdyzl_45", mr = "_contextFormLabel_fdyzl_54", Er = "_contextFormLabelText_fdyzl_67", Fr = "_contextFormContent_fdyzl_73", Cr = "_selectPopup_fdyzl_77", fr = "_selectPopupListItem_fdyzl_80", gr = "_resourceIssues_fdyzl_96", pr = "_limitAlert_fdyzl_100", vr = "_fixedGrid_fdyzl_103", hr = "_multipleGrid_fdyzl_104", Dr = "_fieldCell_fdyzl_148", Br = "_negativeValue_fdyzl_153", yr = "_gridErrorAlert_fdyzl_156", br = "_gridErrorIcon_fdyzl_168", Ar = "_gridErrorSection_fdyzl_171", Sr = "_gridErrorMessage_fdyzl_175",
|
|
1212
|
+
}, className: M || void 0, defaultColDef: k, localeText: D, getContextMenuItems: b, onBodyScroll: v, onGridReady: x, onGridSizeChanged: f, onModelUpdated: B, onDisplayedColumnsChanged: S }) }) });
|
|
1213
|
+
}), or = "_root_fdyzl_1", ar = "_section_fdyzl_16", ir = "_sectionTitle_fdyzl_22", lr = "_contextForm_fdyzl_29", sr = "_fixedSingle_fdyzl_35", cr = "_multiple_fdyzl_40", dr = "_contextFormItem_fdyzl_45", mr = "_contextFormLabel_fdyzl_54", Er = "_contextFormLabelText_fdyzl_67", Fr = "_contextFormContent_fdyzl_73", Cr = "_selectPopup_fdyzl_77", fr = "_selectPopupListItem_fdyzl_80", gr = "_resourceIssues_fdyzl_96", pr = "_limitAlert_fdyzl_100", vr = "_fixedGrid_fdyzl_103", hr = "_multipleGrid_fdyzl_104", Dr = "_fieldCell_fdyzl_148", Br = "_negativeValue_fdyzl_153", yr = "_gridErrorAlert_fdyzl_156", br = "_gridErrorIcon_fdyzl_168", Ar = "_gridErrorSection_fdyzl_171", Sr = "_gridErrorMessage_fdyzl_175", xr = "_mergedErrorGridCell_fdyzl_182", Tr = "_mergedErrorCell_fdyzl_190", wr = "_mergedErrorText_fdyzl_205", Mr = "_emptyState_fdyzl_211", _r = "_footer_fdyzl_219", H = {
|
|
1204
1214
|
root: or,
|
|
1205
1215
|
section: ar,
|
|
1206
1216
|
sectionTitle: ir,
|
|
@@ -1224,8 +1234,8 @@ const Xt = (t) => {
|
|
|
1224
1234
|
gridErrorIcon: br,
|
|
1225
1235
|
gridErrorSection: Ar,
|
|
1226
1236
|
gridErrorMessage: Sr,
|
|
1227
|
-
mergedErrorGridCell:
|
|
1228
|
-
mergedErrorCell:
|
|
1237
|
+
mergedErrorGridCell: xr,
|
|
1238
|
+
mergedErrorCell: Tr,
|
|
1229
1239
|
mergedErrorText: wr,
|
|
1230
1240
|
emptyState: Mr,
|
|
1231
1241
|
footer: _r
|
|
@@ -1422,7 +1432,7 @@ function Lr() {
|
|
|
1422
1432
|
(function(u, r) {
|
|
1423
1433
|
t.exports = r();
|
|
1424
1434
|
})(Pr, (function() {
|
|
1425
|
-
var u = 1e3, r = 6e4, n = 36e5, o = "millisecond", a = "second", s = "minute", p = "hour", F = "day", y = "week", m = "month", D = "quarter", M = "year", k = "date", L = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
1435
|
+
var u = 1e3, r = 6e4, n = 36e5, o = "millisecond", a = "second", s = "minute", p = "hour", F = "day", y = "week", m = "month", D = "quarter", M = "year", k = "date", L = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, f = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(l) {
|
|
1426
1436
|
var i = ["th", "st", "nd", "rd"], c = l % 100;
|
|
1427
1437
|
return "[" + l + (i[(c - 20) % 10] || i[c] || i[0]) + "]";
|
|
1428
1438
|
} }, B = function(l, i, c) {
|
|
@@ -1433,8 +1443,8 @@ function Lr() {
|
|
|
1433
1443
|
return (i <= 0 ? "+" : "-") + B(C, 2, "0") + ":" + B(E, 2, "0");
|
|
1434
1444
|
}, m: function l(i, c) {
|
|
1435
1445
|
if (i.date() < c.date()) return -l(c, i);
|
|
1436
|
-
var C = 12 * (c.year() - i.year()) + (c.month() - i.month()), E = i.clone().add(C, m),
|
|
1437
|
-
return +(-(C + (c - E) / (
|
|
1446
|
+
var C = 12 * (c.year() - i.year()) + (c.month() - i.month()), E = i.clone().add(C, m), T = c - E < 0, A = i.clone().add(C + (T ? -1 : 1), m);
|
|
1447
|
+
return +(-(C + (c - E) / (T ? E - A : A - E)) || 0);
|
|
1438
1448
|
}, a: function(l) {
|
|
1439
1449
|
return l < 0 ? Math.ceil(l) || 0 : Math.floor(l);
|
|
1440
1450
|
}, p: function(l) {
|
|
@@ -1449,8 +1459,8 @@ function Lr() {
|
|
|
1449
1459
|
var E;
|
|
1450
1460
|
if (!i) return R;
|
|
1451
1461
|
if (typeof i == "string") {
|
|
1452
|
-
var
|
|
1453
|
-
b[
|
|
1462
|
+
var T = i.toLowerCase();
|
|
1463
|
+
b[T] && (E = T), c && (b[T] = c, E = T);
|
|
1454
1464
|
var A = i.split("-");
|
|
1455
1465
|
if (!E && A.length > 1) return l(A[0]);
|
|
1456
1466
|
} else {
|
|
@@ -1473,7 +1483,7 @@ function Lr() {
|
|
|
1473
1483
|
var i = l.prototype;
|
|
1474
1484
|
return i.parse = function(c) {
|
|
1475
1485
|
this.$d = (function(C) {
|
|
1476
|
-
var E = C.date,
|
|
1486
|
+
var E = C.date, T = C.utc;
|
|
1477
1487
|
if (E === null) return /* @__PURE__ */ new Date(NaN);
|
|
1478
1488
|
if (w.u(E)) return /* @__PURE__ */ new Date();
|
|
1479
1489
|
if (E instanceof Date) return new Date(E);
|
|
@@ -1481,7 +1491,7 @@ function Lr() {
|
|
|
1481
1491
|
var A = E.match(v);
|
|
1482
1492
|
if (A) {
|
|
1483
1493
|
var _ = A[2] - 1 || 0, N = (A[7] || "0").substring(0, 3);
|
|
1484
|
-
return
|
|
1494
|
+
return T ? new Date(Date.UTC(A[1], _, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, N)) : new Date(A[1], _, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, N);
|
|
1485
1495
|
}
|
|
1486
1496
|
}
|
|
1487
1497
|
return new Date(E);
|
|
@@ -1507,20 +1517,20 @@ function Lr() {
|
|
|
1507
1517
|
}, i.valueOf = function() {
|
|
1508
1518
|
return this.$d.getTime();
|
|
1509
1519
|
}, i.startOf = function(c, C) {
|
|
1510
|
-
var E = this,
|
|
1520
|
+
var E = this, T = !!w.u(C) || C, A = w.p(c), _ = function(q, G) {
|
|
1511
1521
|
var U = w.w(E.$u ? Date.UTC(E.$y, G, q) : new Date(E.$y, G, q), E);
|
|
1512
|
-
return
|
|
1522
|
+
return T ? U : U.endOf(F);
|
|
1513
1523
|
}, N = function(q, G) {
|
|
1514
|
-
return w.w(E.toDate()[q].apply(E.toDate("s"), (
|
|
1524
|
+
return w.w(E.toDate()[q].apply(E.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), E);
|
|
1515
1525
|
}, z = this.$W, V = this.$M, W = this.$D, Z = "set" + (this.$u ? "UTC" : "");
|
|
1516
1526
|
switch (A) {
|
|
1517
1527
|
case M:
|
|
1518
|
-
return
|
|
1528
|
+
return T ? _(1, 0) : _(31, 11);
|
|
1519
1529
|
case m:
|
|
1520
|
-
return
|
|
1530
|
+
return T ? _(1, V) : _(0, V + 1);
|
|
1521
1531
|
case y:
|
|
1522
1532
|
var X = this.$locale().weekStart || 0, j = (z < X ? z + 7 : z) - X;
|
|
1523
|
-
return _(
|
|
1533
|
+
return _(T ? W - j : W + (6 - j), V);
|
|
1524
1534
|
case F:
|
|
1525
1535
|
case k:
|
|
1526
1536
|
return N(Z + "Hours", 0);
|
|
@@ -1536,8 +1546,8 @@ function Lr() {
|
|
|
1536
1546
|
}, i.endOf = function(c) {
|
|
1537
1547
|
return this.startOf(c, !1);
|
|
1538
1548
|
}, i.$set = function(c, C) {
|
|
1539
|
-
var E,
|
|
1540
|
-
if (
|
|
1549
|
+
var E, T = w.p(c), A = "set" + (this.$u ? "UTC" : ""), _ = (E = {}, E[F] = A + "Date", E[k] = A + "Date", E[m] = A + "Month", E[M] = A + "FullYear", E[p] = A + "Hours", E[s] = A + "Minutes", E[a] = A + "Seconds", E[o] = A + "Milliseconds", E)[T], N = T === F ? this.$D + (C - this.$W) : C;
|
|
1550
|
+
if (T === m || T === M) {
|
|
1541
1551
|
var z = this.clone().set(k, 1);
|
|
1542
1552
|
z.$d[_](N), z.init(), this.$d = z.set(k, Math.min(this.$D, z.daysInMonth())).$d;
|
|
1543
1553
|
} else _ && this.$d[_](N);
|
|
@@ -1547,11 +1557,11 @@ function Lr() {
|
|
|
1547
1557
|
}, i.get = function(c) {
|
|
1548
1558
|
return this[w.p(c)]();
|
|
1549
1559
|
}, i.add = function(c, C) {
|
|
1550
|
-
var E,
|
|
1560
|
+
var E, T = this;
|
|
1551
1561
|
c = Number(c);
|
|
1552
1562
|
var A = w.p(C), _ = function(V) {
|
|
1553
|
-
var W = $(
|
|
1554
|
-
return w.w(W.date(W.date() + Math.round(V * c)),
|
|
1563
|
+
var W = $(T);
|
|
1564
|
+
return w.w(W.date(W.date() + Math.round(V * c)), T);
|
|
1555
1565
|
};
|
|
1556
1566
|
if (A === m) return this.set(m, this.$M + c);
|
|
1557
1567
|
if (A === M) return this.set(M, this.$y + c);
|
|
@@ -1564,15 +1574,15 @@ function Lr() {
|
|
|
1564
1574
|
}, i.format = function(c) {
|
|
1565
1575
|
var C = this, E = this.$locale();
|
|
1566
1576
|
if (!this.isValid()) return E.invalidDate || L;
|
|
1567
|
-
var
|
|
1568
|
-
return G && (G[U] || G(C,
|
|
1577
|
+
var T = c || "YYYY-MM-DDTHH:mm:ssZ", A = w.z(this), _ = this.$H, N = this.$m, z = this.$M, V = E.weekdays, W = E.months, Z = E.meridiem, X = function(G, U, K, J) {
|
|
1578
|
+
return G && (G[U] || G(C, T)) || K[U].slice(0, J);
|
|
1569
1579
|
}, j = function(G) {
|
|
1570
1580
|
return w.s(_ % 12 || 12, G, "0");
|
|
1571
1581
|
}, q = Z || function(G, U, K) {
|
|
1572
1582
|
var J = G < 12 ? "AM" : "PM";
|
|
1573
1583
|
return K ? J.toLowerCase() : J;
|
|
1574
1584
|
};
|
|
1575
|
-
return
|
|
1585
|
+
return T.replace(x, (function(G, U) {
|
|
1576
1586
|
return U || (function(K) {
|
|
1577
1587
|
switch (K) {
|
|
1578
1588
|
case "YY":
|
|
@@ -1630,46 +1640,46 @@ function Lr() {
|
|
|
1630
1640
|
}, i.utcOffset = function() {
|
|
1631
1641
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1632
1642
|
}, i.diff = function(c, C, E) {
|
|
1633
|
-
var
|
|
1643
|
+
var T, A = this, _ = w.p(C), N = $(c), z = (N.utcOffset() - this.utcOffset()) * r, V = this - N, W = function() {
|
|
1634
1644
|
return w.m(A, N);
|
|
1635
1645
|
};
|
|
1636
1646
|
switch (_) {
|
|
1637
1647
|
case M:
|
|
1638
|
-
|
|
1648
|
+
T = W() / 12;
|
|
1639
1649
|
break;
|
|
1640
1650
|
case m:
|
|
1641
|
-
|
|
1651
|
+
T = W();
|
|
1642
1652
|
break;
|
|
1643
1653
|
case D:
|
|
1644
|
-
|
|
1654
|
+
T = W() / 3;
|
|
1645
1655
|
break;
|
|
1646
1656
|
case y:
|
|
1647
|
-
|
|
1657
|
+
T = (V - z) / 6048e5;
|
|
1648
1658
|
break;
|
|
1649
1659
|
case F:
|
|
1650
|
-
|
|
1660
|
+
T = (V - z) / 864e5;
|
|
1651
1661
|
break;
|
|
1652
1662
|
case p:
|
|
1653
|
-
|
|
1663
|
+
T = V / n;
|
|
1654
1664
|
break;
|
|
1655
1665
|
case s:
|
|
1656
|
-
|
|
1666
|
+
T = V / r;
|
|
1657
1667
|
break;
|
|
1658
1668
|
case a:
|
|
1659
|
-
|
|
1669
|
+
T = V / u;
|
|
1660
1670
|
break;
|
|
1661
1671
|
default:
|
|
1662
|
-
|
|
1672
|
+
T = V;
|
|
1663
1673
|
}
|
|
1664
|
-
return E ?
|
|
1674
|
+
return E ? T : w.a(T);
|
|
1665
1675
|
}, i.daysInMonth = function() {
|
|
1666
1676
|
return this.endOf(m).$D;
|
|
1667
1677
|
}, i.$locale = function() {
|
|
1668
1678
|
return b[this.$L];
|
|
1669
1679
|
}, i.locale = function(c, C) {
|
|
1670
1680
|
if (!c) return this.$L;
|
|
1671
|
-
var E = this.clone(),
|
|
1672
|
-
return
|
|
1681
|
+
var E = this.clone(), T = d(c, C, !0);
|
|
1682
|
+
return T && (E.$L = T), E;
|
|
1673
1683
|
}, i.clone = function() {
|
|
1674
1684
|
return w.w(this.$d, this);
|
|
1675
1685
|
}, i.toDate = function() {
|
|
@@ -1705,26 +1715,26 @@ function Or() {
|
|
|
1705
1715
|
var u = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, o = /\d\d/, a = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, p = {}, F = function(v) {
|
|
1706
1716
|
return (v = +v) + (v > 68 ? 1900 : 2e3);
|
|
1707
1717
|
}, y = function(v) {
|
|
1708
|
-
return function(
|
|
1709
|
-
this[v] = +
|
|
1718
|
+
return function(x) {
|
|
1719
|
+
this[v] = +x;
|
|
1710
1720
|
};
|
|
1711
1721
|
}, m = [/[+-]\d\d:?(\d\d)?|Z/, function(v) {
|
|
1712
|
-
(this.zone || (this.zone = {})).offset = (function(
|
|
1713
|
-
if (!
|
|
1714
|
-
var f =
|
|
1722
|
+
(this.zone || (this.zone = {})).offset = (function(x) {
|
|
1723
|
+
if (!x || x === "Z") return 0;
|
|
1724
|
+
var f = x.match(/([+-]|\d\d)/g), B = 60 * f[1] + (+f[2] || 0);
|
|
1715
1725
|
return B === 0 ? 0 : f[0] === "+" ? -B : B;
|
|
1716
1726
|
})(v);
|
|
1717
1727
|
}], D = function(v) {
|
|
1718
|
-
var
|
|
1719
|
-
return
|
|
1720
|
-
}, M = function(v,
|
|
1728
|
+
var x = p[v];
|
|
1729
|
+
return x && (x.indexOf ? x : x.s.concat(x.f));
|
|
1730
|
+
}, M = function(v, x) {
|
|
1721
1731
|
var f, B = p.meridiem;
|
|
1722
1732
|
if (B) {
|
|
1723
|
-
for (var S = 1; S <= 24; S += 1) if (v.indexOf(B(S, 0,
|
|
1733
|
+
for (var S = 1; S <= 24; S += 1) if (v.indexOf(B(S, 0, x)) > -1) {
|
|
1724
1734
|
f = S > 12;
|
|
1725
1735
|
break;
|
|
1726
1736
|
}
|
|
1727
|
-
} else f = v === (
|
|
1737
|
+
} else f = v === (x ? "pm" : "PM");
|
|
1728
1738
|
return f;
|
|
1729
1739
|
}, k = { A: [s, function(v) {
|
|
1730
1740
|
this.afternoon = M(v, !1);
|
|
@@ -1739,25 +1749,25 @@ function Or() {
|
|
|
1739
1749
|
}], SSS: [/\d{3}/, function(v) {
|
|
1740
1750
|
this.milliseconds = +v;
|
|
1741
1751
|
}], s: [a, y("seconds")], ss: [a, y("seconds")], m: [a, y("minutes")], mm: [a, y("minutes")], H: [a, y("hours")], h: [a, y("hours")], HH: [a, y("hours")], hh: [a, y("hours")], D: [a, y("day")], DD: [o, y("day")], Do: [s, function(v) {
|
|
1742
|
-
var
|
|
1743
|
-
if (this.day = f[0],
|
|
1752
|
+
var x = p.ordinal, f = v.match(/\d+/);
|
|
1753
|
+
if (this.day = f[0], x) for (var B = 1; B <= 31; B += 1) x(B).replace(/\[|\]/g, "") === v && (this.day = B);
|
|
1744
1754
|
}], w: [a, y("week")], ww: [o, y("week")], M: [a, y("month")], MM: [o, y("month")], MMM: [s, function(v) {
|
|
1745
|
-
var
|
|
1755
|
+
var x = D("months"), f = (D("monthsShort") || x.map((function(B) {
|
|
1746
1756
|
return B.slice(0, 3);
|
|
1747
1757
|
}))).indexOf(v) + 1;
|
|
1748
1758
|
if (f < 1) throw new Error();
|
|
1749
1759
|
this.month = f % 12 || f;
|
|
1750
1760
|
}], MMMM: [s, function(v) {
|
|
1751
|
-
var
|
|
1752
|
-
if (
|
|
1753
|
-
this.month =
|
|
1761
|
+
var x = D("months").indexOf(v) + 1;
|
|
1762
|
+
if (x < 1) throw new Error();
|
|
1763
|
+
this.month = x % 12 || x;
|
|
1754
1764
|
}], Y: [/[+-]?\d+/, y("year")], YY: [o, function(v) {
|
|
1755
1765
|
this.year = F(v);
|
|
1756
1766
|
}], YYYY: [/\d{4}/, y("year")], Z: m, ZZ: m };
|
|
1757
1767
|
function L(v) {
|
|
1758
|
-
var
|
|
1759
|
-
|
|
1760
|
-
for (var B = (v =
|
|
1768
|
+
var x, f;
|
|
1769
|
+
x = v, f = p && p.formats;
|
|
1770
|
+
for (var B = (v = x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function($, w, P) {
|
|
1761
1771
|
var O = P && P.toUpperCase();
|
|
1762
1772
|
return w || f[P] || u[P] || f[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(l, i, c) {
|
|
1763
1773
|
return i || c.slice(1);
|
|
@@ -1775,31 +1785,31 @@ function Or() {
|
|
|
1775
1785
|
c.call(w, E), $ = $.replace(E, "");
|
|
1776
1786
|
}
|
|
1777
1787
|
}
|
|
1778
|
-
return (function(
|
|
1779
|
-
var A =
|
|
1788
|
+
return (function(T) {
|
|
1789
|
+
var A = T.afternoon;
|
|
1780
1790
|
if (A !== void 0) {
|
|
1781
|
-
var _ =
|
|
1782
|
-
A ? _ < 12 && (
|
|
1791
|
+
var _ = T.hours;
|
|
1792
|
+
A ? _ < 12 && (T.hours += 12) : _ === 12 && (T.hours = 0), delete T.afternoon;
|
|
1783
1793
|
}
|
|
1784
1794
|
})(w), w;
|
|
1785
1795
|
};
|
|
1786
1796
|
}
|
|
1787
|
-
return function(v,
|
|
1797
|
+
return function(v, x, f) {
|
|
1788
1798
|
f.p.customParseFormat = !0, v && v.parseTwoDigitYear && (F = v.parseTwoDigitYear);
|
|
1789
|
-
var B =
|
|
1799
|
+
var B = x.prototype, S = B.parse;
|
|
1790
1800
|
B.parse = function(R) {
|
|
1791
1801
|
var b = R.date, h = R.utc, I = R.args;
|
|
1792
1802
|
this.$u = h;
|
|
1793
1803
|
var d = I[1];
|
|
1794
1804
|
if (typeof d == "string") {
|
|
1795
1805
|
var $ = I[2] === !0, w = I[3] === !0, P = $ || w, O = I[2];
|
|
1796
|
-
w && (O = I[2]), p = this.$locale(), !$ && O && (p = f.Ls[O]), this.$d = (function(C, E,
|
|
1806
|
+
w && (O = I[2]), p = this.$locale(), !$ && O && (p = f.Ls[O]), this.$d = (function(C, E, T, A) {
|
|
1797
1807
|
try {
|
|
1798
1808
|
if (["x", "X"].indexOf(E) > -1) return new Date((E === "X" ? 1e3 : 1) * C);
|
|
1799
1809
|
var _ = L(E)(C), N = _.year, z = _.month, V = _.day, W = _.hours, Z = _.minutes, X = _.seconds, j = _.milliseconds, q = _.zone, G = _.week, U = /* @__PURE__ */ new Date(), K = V || (N || z ? 1 : U.getDate()), J = N || U.getFullYear(), te = 0;
|
|
1800
1810
|
N && !z || (te = z > 0 ? z - 1 : U.getMonth());
|
|
1801
1811
|
var re, ne = W || 0, se = Z || 0, ce = X || 0, oe = j || 0;
|
|
1802
|
-
return q ? new Date(Date.UTC(J, te, K, ne, se, ce, oe + 60 * q.offset * 1e3)) :
|
|
1812
|
+
return q ? new Date(Date.UTC(J, te, K, ne, se, ce, oe + 60 * q.offset * 1e3)) : T ? new Date(Date.UTC(J, te, K, ne, se, ce, oe)) : (re = new Date(J, te, K, ne, se, ce, oe), G && (re = A(re).week(G).toDate()), re);
|
|
1803
1813
|
} catch {
|
|
1804
1814
|
return /* @__PURE__ */ new Date("");
|
|
1805
1815
|
}
|
|
@@ -1946,8 +1956,8 @@ function qr(t) {
|
|
|
1946
1956
|
o.current = f.api, D(f.api);
|
|
1947
1957
|
}, e[9] = D, e[10] = L) : L = e[10];
|
|
1948
1958
|
const v = L;
|
|
1949
|
-
let
|
|
1950
|
-
return e[11] !== n || e[12] !== v || e[13] !== p ? (
|
|
1959
|
+
let x;
|
|
1960
|
+
return e[11] !== n || e[12] !== v || e[13] !== p ? (x = /* @__PURE__ */ g("div", { className: H.fixedGrid, "aria-label": "单笔合约定价结果", children: /* @__PURE__ */ g(du, { rowData: p, columnDefs: y, onGridReady: v, getRowId: jr, isFullWidthRow: Wr, fullWidthCellRenderer: Hr, getRowHeight: Zr, headerHeight: 32, rowHeight: 32, autoSizeStrategy: Ur, autoSizePadding: 16, suppressColumnVirtualisation: !0, tooltipShowMode: "whenTruncated", tooltipShowDelay: 0, domLayout: "autoHeight", pagination: !1, loading: n, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[11] = n, e[12] = v, e[13] = p, e[14] = x) : x = e[14], x;
|
|
1951
1961
|
}
|
|
1952
1962
|
function Zr(t) {
|
|
1953
1963
|
return t.data?.kind === "error" ? 28 : 32;
|
|
@@ -2048,8 +2058,8 @@ function Jr(t) {
|
|
|
2048
2058
|
o.current = f.api, D(f.api);
|
|
2049
2059
|
}, e[11] = D, e[12] = L) : L = e[12];
|
|
2050
2060
|
const v = L;
|
|
2051
|
-
let
|
|
2052
|
-
return e[13] !== y || e[14] !== n || e[15] !== v || e[16] !== s ? (
|
|
2061
|
+
let x;
|
|
2062
|
+
return e[13] !== y || e[14] !== n || e[15] !== v || e[16] !== s ? (x = /* @__PURE__ */ g("div", { className: H.multipleGrid, "aria-label": "多笔合约定价结果", children: /* @__PURE__ */ g(du, { rowData: s, columnDefs: y, onGridReady: v, getRowId: Kr, headerHeight: 32, rowHeight: 28, domLayout: "autoHeight", pagination: !1, loading: n, enableCellSpan: !0, suppressCellFocus: !0, suppressDragLeaveHidesColumns: !0 }) }), e[13] = y, e[14] = n, e[15] = v, e[16] = s, e[17] = x) : x = e[17], x;
|
|
2053
2063
|
}
|
|
2054
2064
|
function Kr(t) {
|
|
2055
2065
|
return t.data.id;
|
|
@@ -2219,10 +2229,10 @@ const on = ue((t, e) => {
|
|
|
2219
2229
|
const u = Y.c(3), r = e;
|
|
2220
2230
|
let n;
|
|
2221
2231
|
return u[0] !== t || u[1] !== r ? (n = /* @__PURE__ */ g(ou, { ref: r, ...t }), u[0] = t, u[1] = r, u[2] = n) : n = u[2], n;
|
|
2222
|
-
}),
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2232
|
+
}), Te = on;
|
|
2233
|
+
Te.Option = vt;
|
|
2234
|
+
Te.OptGroup = ht;
|
|
2235
|
+
Te.displayName = "GZSelect";
|
|
2226
2236
|
function Au(t, e) {
|
|
2227
2237
|
if (t?.source !== "custom" || !e) return;
|
|
2228
2238
|
const u = t.executeDay ? Fu(t.executeDay) : void 0;
|
|
@@ -2307,19 +2317,19 @@ function sn(t) {
|
|
|
2307
2317
|
listItem: H.selectPopupListItem
|
|
2308
2318
|
}
|
|
2309
2319
|
}, e[2] = v) : v = e[2];
|
|
2310
|
-
const
|
|
2320
|
+
const x = u === "fixedSingle" ? 420 : 432;
|
|
2311
2321
|
let f;
|
|
2312
|
-
e[3] !==
|
|
2322
|
+
e[3] !== x ? (f = {
|
|
2313
2323
|
popupMatchSelectWidth: !1,
|
|
2314
2324
|
classNames: v,
|
|
2315
2325
|
styles: {
|
|
2316
2326
|
popup: {
|
|
2317
2327
|
root: {
|
|
2318
|
-
maxWidth:
|
|
2328
|
+
maxWidth: x
|
|
2319
2329
|
}
|
|
2320
2330
|
}
|
|
2321
2331
|
}
|
|
2322
|
-
}, e[3] =
|
|
2332
|
+
}, e[3] = x, e[4] = f) : f = e[4];
|
|
2323
2333
|
const B = f;
|
|
2324
2334
|
let S, R;
|
|
2325
2335
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
@@ -2345,7 +2355,7 @@ function sn(t) {
|
|
|
2345
2355
|
let O;
|
|
2346
2356
|
e[17] !== D ? (O = () => D("pricingEnvironment", null), e[17] = D, e[18] = O) : O = e[18];
|
|
2347
2357
|
let l;
|
|
2348
|
-
e[19] !== m || e[20] !== k || e[21] !== p || e[22] !== B || e[23] !== $ || e[24] !== w || e[25] !== P || e[26] !== O ? (l = /* @__PURE__ */ g(
|
|
2358
|
+
e[19] !== m || e[20] !== k || e[21] !== p || e[22] !== B || e[23] !== $ || e[24] !== w || e[25] !== P || e[26] !== O ? (l = /* @__PURE__ */ g(Te, { ...B, "aria-label": "定价环境", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: p, disabled: m, placeholder: "请选择定价环境", options: k, value: $, labelRender: w, onChange: P, onClear: O }), e[19] = m, e[20] = k, e[21] = p, e[22] = B, e[23] = $, e[24] = w, e[25] = P, e[26] = O, e[27] = l) : l = e[27];
|
|
2349
2359
|
let i;
|
|
2350
2360
|
e[28] !== l || e[29] !== d ? (i = /* @__PURE__ */ g(Ce.Item, { className: H.contextFormItem, label: I, required: !0, ...d, children: l }), e[28] = l, e[29] = d, e[30] = i) : i = e[30];
|
|
2351
2361
|
let c;
|
|
@@ -2354,7 +2364,7 @@ function sn(t) {
|
|
|
2354
2364
|
e[32] !== r.carbonForwardCurve || e[33] !== r.valuationDate ? (C = Au(r.carbonForwardCurve, r.valuationDate), e[32] = r.carbonForwardCurve, e[33] = r.valuationDate, e[34] = C) : C = e[34];
|
|
2355
2365
|
let E;
|
|
2356
2366
|
e[35] !== n.carbonForwardCurve ? (E = Le(n.carbonForwardCurve), e[35] = n.carbonForwardCurve, e[36] = E) : E = e[36];
|
|
2357
|
-
const
|
|
2367
|
+
const T = m || y;
|
|
2358
2368
|
let A;
|
|
2359
2369
|
e[37] !== s ? (A = L(s), e[37] = s, e[38] = A) : A = e[38];
|
|
2360
2370
|
const _ = r.carbonForwardCurve?.key;
|
|
@@ -2365,7 +2375,7 @@ function sn(t) {
|
|
|
2365
2375
|
let V;
|
|
2366
2376
|
e[44] !== D ? (V = () => D("carbonForwardCurve", null), e[44] = D, e[45] = V) : V = e[45];
|
|
2367
2377
|
let W;
|
|
2368
|
-
e[46] !== F || e[47] !== B || e[48] !==
|
|
2378
|
+
e[46] !== F || e[47] !== B || e[48] !== T || e[49] !== A || e[50] !== _ || e[51] !== N || e[52] !== z || e[53] !== V ? (W = /* @__PURE__ */ g(Te, { ...B, "aria-label": "碳金融远期价格曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: F, disabled: T, placeholder: "请选择碳金融远期价格曲线", options: A, value: _, labelRender: N, onChange: z, onClear: V }), e[46] = F, e[47] = B, e[48] = T, e[49] = A, e[50] = _, e[51] = N, e[52] = z, e[53] = V, e[54] = W) : W = e[54];
|
|
2369
2379
|
let Z;
|
|
2370
2380
|
e[55] !== C || e[56] !== E || e[57] !== W ? (Z = /* @__PURE__ */ g(Ce.Item, { className: H.contextFormItem, label: c, required: !0, extra: C, ...E, children: W }), e[55] = C, e[56] = E, e[57] = W, e[58] = Z) : Z = e[58];
|
|
2371
2381
|
let X;
|
|
@@ -2385,7 +2395,7 @@ function sn(t) {
|
|
|
2385
2395
|
let re;
|
|
2386
2396
|
e[72] !== D ? (re = () => D("discountCurve", null), e[72] = D, e[73] = re) : re = e[73];
|
|
2387
2397
|
let ne;
|
|
2388
|
-
e[74] !== F || e[75] !== B || e[76] !== G || e[77] !== U || e[78] !== K || e[79] !== J || e[80] !== te || e[81] !== re ? (ne = /* @__PURE__ */ g(
|
|
2398
|
+
e[74] !== F || e[75] !== B || e[76] !== G || e[77] !== U || e[78] !== K || e[79] !== J || e[80] !== te || e[81] !== re ? (ne = /* @__PURE__ */ g(Te, { ...B, "aria-label": "无风险利率曲线", allowClear: !0, showSearch: !0, optionFilterProp: "label", loading: F, disabled: G, placeholder: "请选择无风险利率曲线利率曲线", options: U, value: K, labelRender: J, onChange: te, onClear: re }), e[74] = F, e[75] = B, e[76] = G, e[77] = U, e[78] = K, e[79] = J, e[80] = te, e[81] = re, e[82] = ne) : ne = e[82];
|
|
2389
2399
|
let se;
|
|
2390
2400
|
e[83] !== j || e[84] !== q || e[85] !== ne ? (se = /* @__PURE__ */ g(Ce.Item, { className: H.contextFormItem, label: X, required: !0, extra: j, ...q, children: ne }), e[83] = j, e[84] = q, e[85] = ne, e[86] = se) : se = e[86];
|
|
2391
2401
|
let ce;
|
|
@@ -2437,12 +2447,12 @@ function En(t) {
|
|
|
2437
2447
|
onCalculate: p
|
|
2438
2448
|
} = t, F = r || o;
|
|
2439
2449
|
let y;
|
|
2440
|
-
e[0] !== a || e[1] !== F ? (y = /* @__PURE__ */ g(
|
|
2450
|
+
e[0] !== a || e[1] !== F ? (y = /* @__PURE__ */ g(xe, { disabled: F, onClick: a, children: "重置" }), e[0] = a, e[1] = F, e[2] = y) : y = e[2];
|
|
2441
2451
|
let m;
|
|
2442
|
-
e[3] !== r || e[4] !== u || e[5] !== s || e[6] !== o ? (m = u === "fixedSingle" ? /* @__PURE__ */ g(
|
|
2452
|
+
e[3] !== r || e[4] !== u || e[5] !== s || e[6] !== o ? (m = u === "fixedSingle" ? /* @__PURE__ */ g(xe, { disabled: r || o || !s, onClick: s, children: "转定价界面" }) : null, e[3] = r, e[4] = u, e[5] = s, e[6] = o, e[7] = m) : m = e[7];
|
|
2443
2453
|
const D = r || n;
|
|
2444
2454
|
let M;
|
|
2445
|
-
e[8] !== p || e[9] !== o || e[10] !== D ? (M = /* @__PURE__ */ g(
|
|
2455
|
+
e[8] !== p || e[9] !== o || e[10] !== D ? (M = /* @__PURE__ */ g(xe, { type: "primary", loading: o, disabled: D, onClick: p, children: "计算" }), e[8] = p, e[9] = o, e[10] = D, e[11] = M) : M = e[11];
|
|
2446
2456
|
let k;
|
|
2447
2457
|
return e[12] !== y || e[13] !== m || e[14] !== M ? (k = /* @__PURE__ */ ve("div", { className: H.footer, children: [
|
|
2448
2458
|
y,
|
|
@@ -2473,7 +2483,7 @@ function Cn(t) {
|
|
|
2473
2483
|
let p;
|
|
2474
2484
|
return e[5] !== s || e[6] !== r || e[7] !== u ? (p = /* @__PURE__ */ g("div", { className: H.resourceIssues, "aria-label": "资源加载异常", children: s.map((F) => {
|
|
2475
2485
|
const y = u[F], m = y.attempts >= Je;
|
|
2476
|
-
return /* @__PURE__ */ g($e, { type: "error", showIcon: !0, title: `${Fn[F]}加载失败`, description: m ? `${y.error ?? "未知错误"}(已达到 3 次尝试上限)` : y.error, action: /* @__PURE__ */ g(
|
|
2486
|
+
return /* @__PURE__ */ g($e, { type: "error", showIcon: !0, title: `${Fn[F]}加载失败`, description: m ? `${y.error ?? "未知错误"}(已达到 3 次尝试上限)` : y.error, action: /* @__PURE__ */ g(xe, { size: "small", disabled: m, onClick: () => r(F), children: "重试" }) }, F);
|
|
2477
2487
|
}) }), e[5] = s, e[6] = r, e[7] = u, e[8] = p) : p = e[8], p;
|
|
2478
2488
|
}
|
|
2479
2489
|
function _e(t) {
|
|
@@ -2727,7 +2737,7 @@ function Sn(t) {
|
|
|
2727
2737
|
source: "custom"
|
|
2728
2738
|
});
|
|
2729
2739
|
}
|
|
2730
|
-
function
|
|
2740
|
+
function xu(t, e) {
|
|
2731
2741
|
const u = String(t.curveId);
|
|
2732
2742
|
return {
|
|
2733
2743
|
id: u,
|
|
@@ -2739,19 +2749,19 @@ function Tu(t, e) {
|
|
|
2739
2749
|
requestMapping: e.requestMapping(u)
|
|
2740
2750
|
};
|
|
2741
2751
|
}
|
|
2742
|
-
function
|
|
2752
|
+
function xn(t) {
|
|
2743
2753
|
if (t === null) return null;
|
|
2744
2754
|
if (Dn(t)) return t;
|
|
2745
2755
|
if (!Array.isArray(t)) return null;
|
|
2746
2756
|
const e = t.find((r) => String(r.curveType) === pn), u = t.find((r) => String(r.curveType) === vn);
|
|
2747
2757
|
return !e?.curveId || !u?.curveId ? null : {
|
|
2748
|
-
discountCurve:
|
|
2758
|
+
discountCurve: xu(e, {
|
|
2749
2759
|
kind: "discount",
|
|
2750
2760
|
requestMapping: (r) => ({
|
|
2751
2761
|
disCurveDefId: r
|
|
2752
2762
|
})
|
|
2753
2763
|
}),
|
|
2754
|
-
carbonForwardCurve:
|
|
2764
|
+
carbonForwardCurve: xu(u, {
|
|
2755
2765
|
kind: "carbonForward",
|
|
2756
2766
|
requestMapping: (r) => ({
|
|
2757
2767
|
comCurveDefId: r
|
|
@@ -2759,7 +2769,7 @@ function Tn(t) {
|
|
|
2759
2769
|
})
|
|
2760
2770
|
};
|
|
2761
2771
|
}
|
|
2762
|
-
function
|
|
2772
|
+
function Tu(t) {
|
|
2763
2773
|
return {
|
|
2764
2774
|
disCurveDefId: "disCurveDefId" in t ? t.disCurveDefId : "",
|
|
2765
2775
|
disCurveId: "disCurveId" in t ? t.disCurveId : "",
|
|
@@ -2767,7 +2777,7 @@ function xu(t) {
|
|
|
2767
2777
|
comCurveId: "comCurveId" in t ? t.comCurveId : ""
|
|
2768
2778
|
};
|
|
2769
2779
|
}
|
|
2770
|
-
function
|
|
2780
|
+
function Tn(t, e) {
|
|
2771
2781
|
const {
|
|
2772
2782
|
pricingEnvironment: u,
|
|
2773
2783
|
discountCurve: r,
|
|
@@ -2776,7 +2786,7 @@ function xn(t, e) {
|
|
|
2776
2786
|
} = e;
|
|
2777
2787
|
if (!u || !r || !n || !o)
|
|
2778
2788
|
return [];
|
|
2779
|
-
const a =
|
|
2789
|
+
const a = Tu(r.requestMapping), s = Tu(n.requestMapping), p = {
|
|
2780
2790
|
valDate: ot(o),
|
|
2781
2791
|
disCurveDefId: a.disCurveDefId,
|
|
2782
2792
|
disCurveId: a.disCurveId,
|
|
@@ -2951,9 +2961,9 @@ function $n(t) {
|
|
|
2951
2961
|
error: c instanceof Error ? c.message : wu[l]
|
|
2952
2962
|
});
|
|
2953
2963
|
}
|
|
2954
|
-
}, [r, o.resources]),
|
|
2964
|
+
}, [r, o.resources]), x = ee(!1);
|
|
2955
2965
|
Ee(() => {
|
|
2956
|
-
|
|
2966
|
+
x.current || (x.current = !0, Promise.allSettled(Object.keys(wu).map((l) => v(l))));
|
|
2957
2967
|
}, [v]);
|
|
2958
2968
|
const f = Se(() => [...o.resources.discountDefinitions.data, ...o.resources.customDiscountCurves.data, ...o.resources.carbonDefinitions.data, ...o.resources.customCarbonCurves.data], [o.resources]), B = Se(() => f.filter((l) => l.kind === "discount"), [f]), S = Se(() => f.filter((l) => l.kind === "carbonForward"), [f]), R = ee(f);
|
|
2959
2969
|
Ee(() => {
|
|
@@ -2979,7 +2989,7 @@ function $n(t) {
|
|
|
2979
2989
|
productType: u
|
|
2980
2990
|
}, {
|
|
2981
2991
|
signal: l.signal
|
|
2982
|
-
}).then((E) =>
|
|
2992
|
+
}).then((E) => xn(ye("getEnvironmentCurveSelection", E))), L.current.set(c, C)), C.then((E) => {
|
|
2983
2993
|
!s.current || i !== p.current || a({
|
|
2984
2994
|
type: "environment-curves/success",
|
|
2985
2995
|
discountCurve: E ? b(E.discountCurve, h.currency) : null,
|
|
@@ -3037,9 +3047,9 @@ function $n(t) {
|
|
|
3037
3047
|
return {
|
|
3038
3048
|
kind: "invalid"
|
|
3039
3049
|
};
|
|
3040
|
-
const C =
|
|
3050
|
+
const C = Tn(e, l);
|
|
3041
3051
|
console.info("511: 计算--请求参数", C);
|
|
3042
|
-
const E = o.inputVersion,
|
|
3052
|
+
const E = o.inputVersion, T = ++F.current;
|
|
3043
3053
|
y.current?.abort();
|
|
3044
3054
|
const A = new AbortController();
|
|
3045
3055
|
y.current = A, a({
|
|
@@ -3050,7 +3060,7 @@ function $n(t) {
|
|
|
3050
3060
|
const _ = ye("calculate", await r.calculate(C, {
|
|
3051
3061
|
signal: A.signal
|
|
3052
3062
|
}));
|
|
3053
|
-
if (!s.current ||
|
|
3063
|
+
if (!s.current || T !== F.current)
|
|
3054
3064
|
return {
|
|
3055
3065
|
kind: "requestError"
|
|
3056
3066
|
};
|
|
@@ -3064,7 +3074,7 @@ function $n(t) {
|
|
|
3064
3074
|
hasExtraItems: N.length > e.length
|
|
3065
3075
|
};
|
|
3066
3076
|
} catch (_) {
|
|
3067
|
-
if (!s.current ||
|
|
3077
|
+
if (!s.current || T !== F.current)
|
|
3068
3078
|
return {
|
|
3069
3079
|
kind: "requestError"
|
|
3070
3080
|
};
|
|
@@ -3124,7 +3134,7 @@ function $o(t) {
|
|
|
3124
3134
|
const [L] = we(k);
|
|
3125
3135
|
let v;
|
|
3126
3136
|
e[3] !== n.length ? (v = () => n.length, e[3] = n.length, e[4] = v) : v = e[4];
|
|
3127
|
-
const [
|
|
3137
|
+
const [x] = we(v), f = m === "multiple" && x > Zt;
|
|
3128
3138
|
let B;
|
|
3129
3139
|
e[5] !== L || e[6] !== f ? (B = f ? [] : L, e[5] = L, e[6] = f, e[7] = B) : B = e[7];
|
|
3130
3140
|
const S = B;
|
|
@@ -3145,10 +3155,10 @@ function $o(t) {
|
|
|
3145
3155
|
S.length === 0 && !f && !$.current && ($.current = !0, M.warning("请先选择一笔合约"));
|
|
3146
3156
|
}, O = [S.length, M, f], e[13] = S.length, e[14] = M, e[15] = f, e[16] = P, e[17] = O) : (P = e[16], O = e[17]), Ee(P, O);
|
|
3147
3157
|
const l = S.length === 0 || f, i = !b.initialized || d.submitting || d.environmentCurvesStatus === "loading", c = [d.resources.discountDefinitions.status, d.resources.customDiscountCurves.status, d.resources.carbonDefinitions.status, d.resources.customCarbonCurves.status].some(kn), C = d.environmentCurvesStatus === "loading";
|
|
3148
|
-
let E,
|
|
3158
|
+
let E, T;
|
|
3149
3159
|
e[18] !== D || e[19] !== h || e[20] !== S.length || e[21] !== I || e[22] !== f || e[23] !== d.context || e[24] !== d.environmentCurvesStatus || e[25] !== d.submitting ? (E = () => {
|
|
3150
3160
|
!D || w.current || S.length === 0 || f || !I || d.environmentCurvesStatus === "loading" || d.submitting || Object.values(d.context).some(Rn) || (w.current = !0, h());
|
|
3151
|
-
},
|
|
3161
|
+
}, T = [D, h, S.length, I, f, d.context, d.environmentCurvesStatus, d.submitting], e[18] = D, e[19] = h, e[20] = S.length, e[21] = I, e[22] = f, e[23] = d.context, e[24] = d.environmentCurvesStatus, e[25] = d.submitting, e[26] = E, e[27] = T) : (E = e[26], T = e[27]), Ee(E, T);
|
|
3152
3162
|
let A;
|
|
3153
3163
|
e[28] !== h || e[29] !== M ? (A = async () => {
|
|
3154
3164
|
const ie = await h();
|
|
@@ -3184,7 +3194,7 @@ function $o(t) {
|
|
|
3184
3194
|
let j;
|
|
3185
3195
|
e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ g("h3", { className: H.sectionTitle, children: "定价要素" }), e[44] = j) : j = e[44];
|
|
3186
3196
|
let q;
|
|
3187
|
-
e[45] !== f || e[46] !==
|
|
3197
|
+
e[45] !== f || e[46] !== x ? (q = f ? /* @__PURE__ */ g($e, { className: H.limitAlert, type: "error", showIcon: !0, title: `最多支持1000笔,当前${x}笔,请返回重新选择` }) : null, e[45] = f, e[46] = x, e[47] = q) : q = e[47];
|
|
3188
3198
|
let G;
|
|
3189
3199
|
e[48] !== b ? (G = (ie) => {
|
|
3190
3200
|
b.retryResource(ie);
|
|
@@ -3192,7 +3202,7 @@ function $o(t) {
|
|
|
3192
3202
|
let U;
|
|
3193
3203
|
e[50] !== d.resources || e[51] !== G ? (U = /* @__PURE__ */ g(Cn, { resources: d.resources, onRetry: G }), e[50] = d.resources, e[51] = G, e[52] = U) : U = e[52];
|
|
3194
3204
|
let K;
|
|
3195
|
-
e[53] !== b.retryEnvironmentCurves || e[54] !== d.environmentCurvesAttempts || e[55] !== d.environmentCurvesError || e[56] !== d.environmentCurvesStatus ? (K = d.environmentCurvesStatus === "error" ? /* @__PURE__ */ g($e, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: d.environmentCurvesError, action: /* @__PURE__ */ g(
|
|
3205
|
+
e[53] !== b.retryEnvironmentCurves || e[54] !== d.environmentCurvesAttempts || e[55] !== d.environmentCurvesError || e[56] !== d.environmentCurvesStatus ? (K = d.environmentCurvesStatus === "error" ? /* @__PURE__ */ g($e, { type: "error", showIcon: !0, title: "环境关联曲线加载失败", description: d.environmentCurvesError, action: /* @__PURE__ */ g(xe, { size: "small", disabled: d.environmentCurvesAttempts >= 3, onClick: b.retryEnvironmentCurves, children: "重试" }) }) : null, e[53] = b.retryEnvironmentCurves, e[54] = d.environmentCurvesAttempts, e[55] = d.environmentCurvesError, e[56] = d.environmentCurvesStatus, e[57] = K) : K = e[57];
|
|
3196
3206
|
const J = d.resources.environments.status === "loading", te = c || C;
|
|
3197
3207
|
let re;
|
|
3198
3208
|
e[58] !== b.carbonForwardCurves || e[59] !== b.discountCurves || e[60] !== b.setContext || e[61] !== C || e[62] !== m || e[63] !== d.context || e[64] !== d.contextErrors || e[65] !== d.resources.environments.data || e[66] !== d.submitting || e[67] !== J || e[68] !== te ? (re = /* @__PURE__ */ g(sn, { mode: m, value: d.context, errors: d.contextErrors, environments: d.resources.environments.data, discountCurves: b.discountCurves, carbonForwardCurves: b.carbonForwardCurves, environmentsLoading: J, curvesLoading: te, curvesDisabled: C, disabled: d.submitting, onChange: b.setContext }), e[58] = b.carbonForwardCurves, e[59] = b.discountCurves, e[60] = b.setContext, e[61] = C, e[62] = m, e[63] = d.context, e[64] = d.contextErrors, e[65] = d.resources.environments.data, e[66] = d.submitting, e[67] = J, e[68] = te, e[69] = re) : re = e[69];
|
|
@@ -3347,12 +3357,12 @@ function Yn(t) {
|
|
|
3347
3357
|
const e = /^(\d{4})-(\d{2})-(\d{2})/.exec(t);
|
|
3348
3358
|
return e ? `${e[1].slice(2)}-${e[2]}-${e[3]}` : t;
|
|
3349
3359
|
}
|
|
3350
|
-
const _u = 0.05,
|
|
3351
|
-
function
|
|
3360
|
+
const _u = 0.05, xt = 7, Gn = [8, 8];
|
|
3361
|
+
function Tt(t) {
|
|
3352
3362
|
return t.filter((e) => typeof e == "number" && Number.isFinite(e));
|
|
3353
3363
|
}
|
|
3354
3364
|
function Un(t) {
|
|
3355
|
-
const e =
|
|
3365
|
+
const e = Tt(t);
|
|
3356
3366
|
if (e.length === 0) return {};
|
|
3357
3367
|
const u = Math.min(...e), r = Math.max(...e), n = r - u, o = n > 0 ? n * _u : r !== 0 ? Math.abs(r) * _u : 1, a = u - o, s = r + o;
|
|
3358
3368
|
return u >= 0 ? {
|
|
@@ -3367,7 +3377,7 @@ function Un(t) {
|
|
|
3367
3377
|
};
|
|
3368
3378
|
}
|
|
3369
3379
|
function Wn(t) {
|
|
3370
|
-
const e =
|
|
3380
|
+
const e = Tt(t);
|
|
3371
3381
|
if (e.length === 0)
|
|
3372
3382
|
return {
|
|
3373
3383
|
position: "bottom",
|
|
@@ -3383,7 +3393,7 @@ function Ye(t, e) {
|
|
|
3383
3393
|
return Number(t.toFixed(Math.min(Math.max(e, 0), 20)));
|
|
3384
3394
|
}
|
|
3385
3395
|
function Hn(t, e) {
|
|
3386
|
-
const u = (e - t) /
|
|
3396
|
+
const u = (e - t) / xt, r = Math.floor(Math.log10(u)), n = 10 ** r, o = u / n, a = o < 1.5 ? 1 : o < 2.5 ? 2 : o < 4 ? 3 : o < 7 ? 5 : 10;
|
|
3387
3397
|
return Ye(a * n, -r);
|
|
3388
3398
|
}
|
|
3389
3399
|
function qn({
|
|
@@ -3509,7 +3519,7 @@ function Zn({
|
|
|
3509
3519
|
// 应用根据绘图值及 5% 留白计算出的固定上下限。
|
|
3510
3520
|
...p,
|
|
3511
3521
|
// 期望约分为 7 段,实际刻度数和间隔仍由 ECharts 取易读值。
|
|
3512
|
-
splitNumber:
|
|
3522
|
+
splitNumber: xt,
|
|
3513
3523
|
// 纵轴通过网格线表达刻度,不额外显示刻度短线。
|
|
3514
3524
|
axisTick: {
|
|
3515
3525
|
// 隐藏纵轴刻度短线。
|
|
@@ -3632,12 +3642,12 @@ function co(t) {
|
|
|
3632
3642
|
i?.disconnect(), window.removeEventListener("resize", l), O.dispose(), y.current = null;
|
|
3633
3643
|
};
|
|
3634
3644
|
}, v = [], e[6] = L, e[7] = v) : (L = e[6], v = e[7]), fu(L, v);
|
|
3635
|
-
let
|
|
3636
|
-
e[8] !== k ? (
|
|
3645
|
+
let x, f;
|
|
3646
|
+
e[8] !== k ? (x = () => {
|
|
3637
3647
|
y.current?.setOption(k, {
|
|
3638
3648
|
notMerge: !0
|
|
3639
3649
|
});
|
|
3640
|
-
}, f = [k], e[8] = k, e[9] =
|
|
3650
|
+
}, f = [k], e[8] = k, e[9] = x, e[10] = f) : (x = e[9], f = e[10]), Ee(x, f);
|
|
3641
3651
|
let B, S;
|
|
3642
3652
|
e[11] !== m ? (B = () => {
|
|
3643
3653
|
const P = p.current;
|
|
@@ -3722,7 +3732,7 @@ function Ro(t) {
|
|
|
3722
3732
|
data: Xe
|
|
3723
3733
|
}), e[0] = u, e[1] = r, e[2] = p) : p = e[2];
|
|
3724
3734
|
const [F, y] = we(p), [m, D] = we("price"), M = F.adapter === u && F.allVarCodeSnum === r, k = M ? F.status : "loading", L = M ? F.data : Xe;
|
|
3725
|
-
let v,
|
|
3735
|
+
let v, x;
|
|
3726
3736
|
e[3] !== u || e[4] !== r || e[5] !== a ? (v = () => {
|
|
3727
3737
|
const G = new AbortController();
|
|
3728
3738
|
let U = !0;
|
|
@@ -3753,7 +3763,7 @@ function Ro(t) {
|
|
|
3753
3763
|
}), () => {
|
|
3754
3764
|
U = !1, G.abort();
|
|
3755
3765
|
};
|
|
3756
|
-
},
|
|
3766
|
+
}, x = [u, r, a], e[3] = u, e[4] = r, e[5] = a, e[6] = v, e[7] = x) : (v = e[6], x = e[7]), Ee(v, x);
|
|
3757
3767
|
let f;
|
|
3758
3768
|
e[8] !== L ? (f = At(L, "descending").map(ho), e[8] = L, e[9] = f) : f = e[9];
|
|
3759
3769
|
const B = f, S = L[0]?.currency || Eo;
|
|
@@ -3825,9 +3835,9 @@ function Ro(t) {
|
|
|
3825
3835
|
const c = k === "loading";
|
|
3826
3836
|
let C;
|
|
3827
3837
|
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ g("h2", { className: le.title, children: "估值日志(最大展示30条日志数据)" }), e[31] = C) : C = e[31];
|
|
3828
|
-
const E = k === "loading",
|
|
3838
|
+
const E = k === "loading", T = B.length > 10;
|
|
3829
3839
|
let A;
|
|
3830
|
-
e[32] !== w || e[33] !==
|
|
3840
|
+
e[32] !== w || e[33] !== T || e[34] !== B ? (A = /* @__PURE__ */ g("div", { className: le.tablePanel, "aria-label": "估值日志表格", children: /* @__PURE__ */ g(du, { className: le.table, rowData: B, columnDefs: w, getRowId: go, headerHeight: 32, rowHeight: 28, pagination: !1, noRowsOverlayComponent: Co, suppressMovableColumns: !0, suppressCellFocus: !0, suppressContextMenu: !0, alwaysShowVerticalScroll: T }) }), e[32] = w, e[33] = T, e[34] = B, e[35] = A) : A = e[35];
|
|
3831
3841
|
let _;
|
|
3832
3842
|
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ g("h3", { className: le.chartTitle, children: "结果图形展示" }), e[36] = _) : _ = e[36];
|
|
3833
3843
|
let N, z;
|
|
@@ -3893,7 +3903,7 @@ function ho(t, e) {
|
|
|
3893
3903
|
};
|
|
3894
3904
|
}
|
|
3895
3905
|
export {
|
|
3896
|
-
|
|
3906
|
+
xe as B,
|
|
3897
3907
|
ju as G,
|
|
3898
3908
|
$o as I,
|
|
3899
3909
|
$e as T,
|
|
@@ -3905,7 +3915,7 @@ export {
|
|
|
3905
3915
|
Ce as e,
|
|
3906
3916
|
We as f,
|
|
3907
3917
|
Vu as g,
|
|
3908
|
-
|
|
3918
|
+
Te as h,
|
|
3909
3919
|
su as i,
|
|
3910
3920
|
du as j,
|
|
3911
3921
|
mu as k,
|